@marimo-team/frontend 0.20.3-dev92 → 0.20.3-dev94
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CellStatus-8UvWjtiZ.js → CellStatus-DT32GPB2.js} +1 -1
- package/dist/assets/{JsonOutput-OHVAIP6T.js → JsonOutput-uf7OFaDU.js} +1 -1
- package/dist/assets/{MarimoErrorOutput-Bxrta8VX.js → MarimoErrorOutput-BJkHPKWK.js} +1 -1
- package/dist/assets/{RenderHTML-DIhjo_ta.js → RenderHTML-CjCJ1DT4.js} +1 -1
- package/dist/assets/{add-cell-with-ai-aX3jE5eE.js → add-cell-with-ai-DJ9tuL4g.js} +1 -1
- package/dist/assets/{add-database-form-BzZFhGKo.js → add-database-form-D06OUuSg.js} +1 -1
- package/dist/assets/{agent-panel-DpdJCgZV.js → agent-panel-DYFbOZ0f.js} +1 -1
- package/dist/assets/{ai-model-dropdown-ZWTWzd6H.js → ai-model-dropdown-BnQGs6GF.js} +1 -1
- package/dist/assets/{app-config-button-CntHQatu.js → app-config-button-Btys3Cin.js} +1 -1
- package/dist/assets/{cell-editor-CWvqoFib.js → cell-editor-BDJGt0PK.js} +1 -1
- package/dist/assets/{cell-link-Cqbep4Gr.js → cell-link-CiQrWiPA.js} +1 -1
- package/dist/assets/{cells-BLMrU2yT.js → cells-DD42bsu7.js} +39 -39
- package/dist/assets/{chat-display-jn1HDvEj.js → chat-display-DN0dzai8.js} +1 -1
- package/dist/assets/{chat-panel-NWyFQMlG.js → chat-panel--gsbOxYb.js} +1 -1
- package/dist/assets/{column-preview-C7tGDCpE.js → column-preview-BtKDi4j6.js} +1 -1
- package/dist/assets/{command-CwoFdrUt.js → command-2Li9iWG_.js} +1 -1
- package/dist/assets/{command-palette-DJxtiC8i.js → command-palette-Ce_7Eh4G.js} +1 -1
- package/dist/assets/{common-e99VdZde.js → common-BOraucV9.js} +1 -1
- package/dist/assets/{components-BiaTYPej.js → components-Bl0CtJtz.js} +1 -1
- package/dist/assets/{components-DLasuGcf.js → components-Dv0WjPQ-.js} +1 -1
- package/dist/assets/{context-aware-panel-B5mdLqFs.js → context-aware-panel-DMHGbB_b.js} +1 -1
- package/dist/assets/{datasource-Du0TuMEa.js → datasource-Cturxb4x.js} +1 -1
- package/dist/assets/{dependency-graph-panel-0r5Y3wCY.js → dependency-graph-panel-B8UpJDl-.js} +1 -1
- package/dist/assets/{documentation-panel-CKkbFSOa.js → documentation-panel-BuGA-sMW.js} +1 -1
- package/dist/assets/{download-BcxPm3qL.js → download-CmObLKP6.js} +1 -1
- package/dist/assets/{edit-page-CV9biTVQ.js → edit-page-BNA8A6Ux.js} +3 -3
- package/dist/assets/{error-panel-CQaNFEL1.js → error-panel-CK2L5ciF.js} +1 -1
- package/dist/assets/{file-explorer-panel-3TyNnGfS.js → file-explorer-panel-BeOWee6Z.js} +1 -1
- package/dist/assets/{floating-outline-lhpY7gel.js → floating-outline-BPv4P2vV.js} +1 -1
- package/dist/assets/{focus-DRLi18rJ.js → focus-DiPb_hn6.js} +1 -1
- package/dist/assets/{form-B6Dm4BQQ.js → form-ibH0eKd-.js} +1 -1
- package/dist/assets/{globals-C_25sJic.js → globals-Dk7VGE85.js} +1 -1
- package/dist/assets/{home-page-CjvlAi7I.js → home-page-Bs5_UsFC.js} +1 -1
- package/dist/assets/{html-to-image-CuwoSczP.js → html-to-image-CojwvW9z.js} +1 -1
- package/dist/assets/{index-BmiOJWBi.js → index-B-ghuCiq.js} +3 -3
- package/dist/assets/{kiosk-mode-CgrQnR3c.js → kiosk-mode-hbpM_a-j.js} +1 -1
- package/dist/assets/{layout-Dhkk-WXJ.js → layout-D1VtP7GQ.js} +1 -1
- package/dist/assets/{logs-panel-BuKFFIBf.js → logs-panel-CDBBW9DI.js} +1 -1
- package/dist/assets/{markdown-renderer-CFEhjnW8.js → markdown-renderer-YOedNAkc.js} +1 -1
- package/dist/assets/{name-cell-input-DW2lMrC3.js → name-cell-input-HEC8dShQ.js} +1 -1
- package/dist/assets/{outline-panel-5sWCspyw.js → outline-panel-DzWl_avL.js} +1 -1
- package/dist/assets/{packages-panel-BsgpzBV8.js → packages-panel-cSLWScXy.js} +1 -1
- package/dist/assets/{panels-Cgqc_xy4.js → panels-903Vandk.js} +1 -1
- package/dist/assets/{process-output-t4jYlRH7.js → process-output-B2WHFsM0.js} +1 -1
- package/dist/assets/{readonly-python-code-C4iitUlH.js → readonly-python-code-XphqxCq8.js} +1 -1
- package/dist/assets/{run-page-DCXZJWt4.js → run-page-DzsjMR6O.js} +1 -1
- package/dist/assets/{scratchpad-panel-DD3uTz94.js → scratchpad-panel-DA77C7Q0.js} +1 -1
- package/dist/assets/{session-panel-CN_GIT4Z.js → session-panel-DwTnfeqw.js} +1 -1
- package/dist/assets/{snippets-panel-8wuPZ5qp.js → snippets-panel-CLQT_rb9.js} +1 -1
- package/dist/assets/{state-wf63reZP.js → state-DRCtQIWh.js} +1 -1
- package/dist/assets/{switch-BPm2Fg9n.js → switch-CA8la81g.js} +1 -1
- package/dist/assets/{textarea-BNIM0Vlg.js → textarea-noyX_YEw.js} +1 -1
- package/dist/assets/{tracing-Bsx36NDe.js → tracing-Bdx3rdWM.js} +1 -1
- package/dist/assets/{tracing-panel-C-pXxaHo.js → tracing-panel-BNSSHFIf.js} +2 -2
- package/dist/assets/{types-p9kR1pnI.js → types-DYD6UxTH.js} +1 -1
- package/dist/assets/{useAddCell-BcEy-yRX.js → useAddCell-DVMY6vkv.js} +1 -1
- package/dist/assets/{useCellActionButton-BxsLH3DI.js → useCellActionButton-HNTLhSrv.js} +1 -1
- package/dist/assets/{useDeleteCell-_MCU13nP.js → useDeleteCell-CrSQfQw4.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-DmYsxKsG.js → useDependencyPanelTab-BqqmAAW7.js} +1 -1
- package/dist/assets/{useNotebookActions-BDm1_7O6.js → useNotebookActions-Bzt5O8Yy.js} +1 -1
- package/dist/assets/{useSplitCell-wKfedpRZ.js → useSplitCell-BL-Sir7Y.js} +1 -1
- package/dist/index.html +29 -29
- package/package.json +1 -1
- package/src/core/cells/__tests__/session.test.ts +1 -1
- package/src/plugins/core/__test__/sanitize.test.ts +47 -2
- package/src/plugins/core/sanitize.ts +4 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-
|
|
2
|
-
var c_=Object.defineProperty;var tv=Ae=>{throw TypeError(Ae)};var m_=(Ae,Pe,Qe)=>Pe in Ae?c_(Ae,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ae[Pe]=Qe;var Z=(Ae,Pe,Qe)=>m_(Ae,typeof Pe!="symbol"?Pe+"":Pe,Qe),Lu=(Ae,Pe,Qe)=>Pe.has(Ae)||tv("Cannot "+Qe);var K=(Ae,Pe,Qe)=>(Lu(Ae,Pe,"read from private field"),Qe?Qe.call(Ae):Pe.get(Ae)),He=(Ae,Pe,Qe)=>Pe.has(Ae)?tv("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(Ae):Pe.set(Ae,Qe),et=(Ae,Pe,Qe,jr)=>(Lu(Ae,Pe,"write to private field"),jr?jr.call(Ae,Qe):Pe.set(Ae,Qe),Qe),Hu=(Ae,Pe,Qe)=>(Lu(Ae,Pe,"access private method"),Qe);var av=(Ae,Pe,Qe,jr)=>({set _(Ll){et(Ae,Pe,Ll,Qe)},get _(){return K(Ae,Pe,jr)}});import{r as p_,s as Na,t as Wu}from"./chunk-LvLJmgfZ.js";import{c as ll,i as We,l as ci,n as Ue,s as sl,u as dl}from"./useEvent-WUlsM6MC.js";import{t as h_}from"./react-Bj1aDYRI.js";import{$r as f_,Di as rv,Ei as g_,Fr as x_,Ft as Uu,K as Ku,L as v_,Qn as y_,S as b_,Un as Zu,Wn as nv,Yn as iv,_i as ov,ai as w_,ar as lv,b as sv,bi as mi,cr as D_,ct as j_,di as dv,dt as C_,fi as qu,hi as Yu,it as k_,li as S_,nr as ul,oi as N_,or as E_,pi as __,rn as R_,st as T_,ti as A_,ui as I_,ur as P_,xi as M_,yi as F_,__tla as z_}from"./cells-BLMrU2yT.js";import{t as pi}from"./react-dom-CSu739Rf.js";import{A as tn,B as _e,C as Ut,E as V_,F as uv,I as Ct,J as O_,N as H,P as B,R as z,S as an,T as W,U as $_,V as Wa,a as cv,b as be,h as B_,i as mv,j as L_,k as Ze,n as pv,r as H_,s as Gu,t as Qu,v as W_,w as J,x as hv,z as ea}from"./zod-H_cgTO0M.js";import{t as ee}from"./compiler-runtime-B3qBwwSJ.js";import{t as U_}from"./get-6uJrSKbw.js";import{t as cl}from"./pick-BeVScbIo.js";import{t as Ua}from"./capitalize-irHJCpFh.js";import{i as K_,n as Z_,o as Ju,s as q_}from"./useLifecycle-BDXC6oVR.js";import{i as Y_,r as fv,t as G_}from"./tooltip-CcOqovrC.js";import{B as Q_,C as gv,E as J_,L as xv,M as Xu,N as hi,O as X_,P as eR,S as tR,T as aR,a as rR,b as vv,c as nR,d as yv,f as iR,g as rn,h as bv,m as Ka,n as wv,o as oR,p as lR,s as sR,v as dR,w as uR,x as cR,y as Dv,__tla as mR}from"./context-aware-panel-B5mdLqFs.js";import{G as fi,J as pR,K as hR,X as ml,Y as jv,Z as fR,at as Cv,et as kv,it as gR,nt as ec,q as xR,rt as pl,st as hl,tt as fl}from"./ai-model-dropdown-ZWTWzd6H.js";import{c as Za,h as qa,m as de,n as vR,r as Mt,t as tc}from"./useEventListener-CjXriKgk.js";import{t as nn}from"./invariant-awXiPaF0.js";import{A as yR,O as bR,S as wR,g as DR,i as jR,k as CR,l as kR,v as SR,y as NR}from"./utils-CORJ8yYa.js";import{r as ac}from"./constants-CdR60lKM.js";import{S as ER,_ as Sv,a as _R,h as Nv,i as Ev,r as rc,t as RR,x as _v,y as tt}from"./config-CBwelk8k.js";import{a as TR,d as AR,l as IR,o as PR,r as MR,t as FR,u as zR}from"./switch-BPm2Fg9n.js";import{t as VR}from"./globals-C_25sJic.js";import{t as gl}from"./ErrorBoundary-dVj6GVNE.js";import{t as OR}from"./jsx-runtime-CP2fAiZX.js";import{n as Ya,t as Se}from"./button-BmOH9agK.js";import{n as xl,t as q}from"./cn-d_A4rA-x.js";import{at as $R}from"./dist-DUY6xZX8.js";import{$ as BR,B as LR,C as Rv,E as HR,G as WR,H as UR,K as Tv,M as nc,N as ic,O as KR,S as ZR,T as qR,U as YR,V as Av,Y as gi,_ as GR,b as QR,c as JR,et as XR,g as eT,k as Iv,l as tT,nt as aT,q as rT,r as nT,s as iT,t as Pv,tt as oT,v as lT,w as oc,x as sT,y as lc,z as Mv,__tla as dT}from"./JsonOutput-OHVAIP6T.js";import{c as uT,n as Fv,p as cT,r as Ea,t as mT}from"./once-DRC4SgqY.js";import"./cjs-CVt8hZ5L.js";import"./main-Cmx6WhDY.js";import"./useNonce-BY4jV7Yb.js";import{n as pT}from"./requests-DZy_SQ_v.js";import{t as Ft}from"./createLucideIcon-BvP5LBIs.js";import{A as hT,C as zv,D as fT,O as gT,S as xT,_ as vT,a as Vv,b as yT,c as Ov,d as xi,f as $v,g as bT,h as wT,i as sc,k as DT,l as jT,m as Bv,n as CT,p as kT,r as _a,s as ST,t as NT,u as ha,v as ET,y as _T}from"./spec-CcvA_Vlj.js";import{F as RT,I as TT,N as AT,P as IT,R as PT,S as MT,h as FT,j as zT,n as VT,x as OT}from"./add-cell-with-ai-aX3jE5eE.js";import{t as $T,__tla as BT}from"./LazyAnyLanguageCodeMirror-DIzh1FyL.js";import{t as LT}from"./bot-message-square-BzawfL5p.js";import{a as HT,i as WT,n as UT,o as KT,t as Lv}from"./useBoolean-Den0ZqeZ.js";import{r as ZT,t as on}from"./x-yqLqiq5Q.js";import{h as vl,i as qT,l as YT}from"./download-BcxPm3qL.js";import{t as yl}from"./chevron-right-_z3dkNFy.js";import{i as GT,o as QT}from"./maps-8VTEe-0T.js";import"./markdown-renderer-CFEhjnW8.js";import{u as JT}from"./toDate-DDAiY7kz.js";import{P as Hv,a as dc,c as XT,i as e6,o as t6,p as Wv,r as Uv,t as Kv}from"./dropdown-menu-D9u7_h0R.js";import{t as a6}from"./code-xml-BMv1Dtd2.js";import{t as r6}from"./copy-CAR4dOiD.js";import{t as n6}from"./download-BG-iMGgV.js";import{i as i6}from"./file-video-camera-Fa5c_iPb.js";import{r as o6,t as l6}from"./types-p9kR1pnI.js";import{t as s6}from"./globe-B68kre4p.js";import{n as d6,t as u6}from"./square-DZpWT_hp.js";import{n as bl,t as vi}from"./spinner-Dt4SmUsI.js";import{i as c6,r as Zv,t as uc}from"./readonly-python-code-C4iitUlH.js";import{n as m6,t as wl}from"./types-CswNghXe.js";import{t as qv}from"./plus-C9B_qWUi.js";import{t as p6}from"./refresh-cw-fLeDriQe.js";import{$ as Yv,A as cc,C as h6,D as f6,E as mc,G as g6,H as x6,J as ln,K as Dl,L as pc,M as jl,N as Gv,O as Qv,P as Cl,Q as Ra,R as v6,T as kl,U as y6,W as Ga,X as Qa,Y as Ja,Z as Jv,_ as Sl,at as sn,b as b6,c as w6,ct as gt,d as Xv,et as ey,g as dn,h as yi,i as D6,it as j6,k as hc,l as C6,lt as k6,m as Nl,n as S6,nt as fc,o as gc,ot as N6,p as ty,q as ay,r as xc,rt as xr,s as E6,st as El,t as vc,tt as _l,u as Rl,v as yc,w as _6}from"./input-B49Srsl9.js";import{t as R6}from"./settings-DRfuuLRT.js";import{t as Tl}from"./square-function-DEp1ozoA.js";import{_ as it,a as xt,c as ct,d as vr,f as T6,g as ry,h as A6,i as I6,l as ft,n as P6,o as bi,p as ny,r as M6,t as F6,u as wt,v as fa}from"./textarea-BNIM0Vlg.js";import{a as z6,i as V6,r as O6,t as $6}from"./column-preview-C7tGDCpE.js";import{t as iy}from"./trash-2-CrA4LwJ2.js";import{r as Al}from"./azure-B7oWrJc_.js";import{i as oy,r as B6,t as L6}from"./es-DwwU_CO-.js";import{t as Rt}from"./preload-helper-BW0IMuFq.js";import"./dist-BOEbbZQx.js";import"./dist-DotE4D06.js";import"./dist-WaT7BL5t.js";import"./dist-BoFVJhwF.js";import"./dist-C4QdWMCE.js";import{n as H6,t as ta}from"./use-toast-Hc8CXlvz.js";import{n as ly,t as W6}from"./paths-D2lG83Oh.js";import{l as U6,r as K6,s as Z6}from"./session-Deuv0Lgh.js";import{r as un}from"./useTheme-CAolwY4Q.js";import{C as Il,E as bc,S as Pl,_ as Ge,d as q6,f as sy,g as aa,h as Y6,l as G6,m as Q6,p as J6,u as X6,v as wc,w as Re,x as wi}from"./Combination-BioTNpLP.js";import{a as eA,c as Xa,d as tA,f as aA,i as Kt,l as Dc,m as dy,n as er,o as Ml,p as uy,r as cn,s as yr,t as tr}from"./select-BRK_BOoG.js";import{l as rA,r as cy,t as nA}from"./dist-DsQvo-tW.js";import{a as jc,i as zt,n as Cc,o as kc,r as Sc,s as my,t as Zt}from"./tooltip-oM-h2ZN1.js";import{d as Fl,u as py}from"./menu-items-BpKTKw9I.js";import"./purify.es-DTgMcyNc.js";import"./dates-_ZWMvHpG.js";import{a as iA,c as oA,i as lA,l as sA,n as dA,s as uA,t as cA}from"./alert-dialog-DEeW2awP.js";import{C as mA,D as pA,E as hy,F as fy,I as gy,L as mn,N as hA,O as ot,R as xy,n as fA,s as zl,t as vy,x as gA,z as Ta}from"./usePress-DcdVsIfA.js";import{t as xA}from"./SSRProvider-CwqN9FWV.js";import{n as ra,r as vA,t as ga}from"./useDateFormatter-DfEfyPT1.js";import{n as yA,t as at}from"./context-CRApIvpB.js";import{t as bA}from"./useNumberFormatter-DQd-h5xR.js";import{a as wA,c as xa,i as DA,l as Di,r as yy,s as ji,t as by,u as va}from"./popover-C7N9RyXk.js";import{i as pn,r as jA}from"./numbers-CPeFd6mm.js";import{n as CA,t as wy}from"./useDebounce-S9zaMzrr.js";import{t as kA}from"./ImperativeModal-MjC9Owmv.js";import"./share-BpyH3qLa.js";import{n as Dy,r as jy,t as SA}from"./errors-0IrrdfSG.js";import"./vega-loader.browser-BJ9oKrvH.js";import"./defaultLocale-CuYNS33t.js";import"./defaultLocale-CGfP-Ye3.js";import{t as Vl}from"./copy-icon-HFU_6E8O.js";import{t as Oe}from"./RenderHTML-DIhjo_ta.js";import{a as Cy,c as NA,i as ky,l as EA,n as Nc,o as _A,r as Sy,s as RA}from"./multi-map-BHEewz4D.js";import{n as TA,r as Ec,t as Ol}from"./alert-Bs8tbZo_.js";import{n as hn,t as br}from"./error-banner-DsP3CCH3.js";import{n as Vt}from"./useAsyncData-CI3ntihq.js";import{a as AA,c as IA,o as PA,r as MA,s as FA,t as zA}from"./command-CwoFdrUt.js";import{__tla as VA}from"./chunk-5FQGJX7Z-CKJM3d7z.js";import"./katex-FSdXOW5Y.js";import"./html-to-image-CuwoSczP.js";import{a as OA,o as $A}from"./focus-DRLi18rJ.js";import{a as Ny,i as _c,n as Rc,o as fn,r as wr,t as Tc}from"./table-FXVKPW36.js";import{t as Ey}from"./renderShortcut-_nl5_jRy.js";import{t as Ci}from"./label-OL3StKg2.js";import{t as BA}from"./chat-display-jn1HDvEj.js";import"./esm-Dm5bJp7V.js";import{n as LA}from"./icons-B9sHgc9n.js";import{t as HA}from"./bundle.esm-_LzfhNmX.js";import{a as _y,c as WA,d as Ry,f as $l,i as UA,l as KA,n as Ty,o as ZA,p as Aa,r as qA,s as Ay,t as YA,u as se}from"./form-B6Dm4BQQ.js";import{a as GA,i as QA,n as JA,o as XA,t as Iy}from"./components-BiaTYPej.js";import"./react-resizable-panels.browser.esm-DDRqG5ui.js";import{t as Dr}from"./useDeepCompareMemoize-yyiB9aJX.js";import{a as eI,i as Py,n as My,t as Fy}from"./field-Cgpys-pp.js";import{i as tI,n as aI,r as rI}from"./floating-outline-lhpY7gel.js";Promise.all([(()=>{try{return z_}catch{}})(),(()=>{try{return mR}catch{}})(),(()=>{try{return dT}catch{}})(),(()=>{try{return BT}catch{}})(),(()=>{try{return VA}catch{}})()]).then(async()=>{var ht,ni,ke,Ye,Zr,qr,Yr,ii,oi,Fc,Gr,Nt,li,gr,Qr,si,Jr,di,Jo,Xo,el,tl,al,rl,X1;(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 Ae=Ft("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"}]]),Pe=Ft("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"}]]),Qe=Ft("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"}]]),jr=Ft("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"}]]),Ll=Ft("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"}]]),Vy=Ft("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"}]]),Oy=Ft("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"}]]),$y=Ft("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"}]]),By=Ft("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"}]]),Ly=Ft("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"}]]),zc=Ft("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"}]]),Hy=Ft("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"}]]),Vc=Ft("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"}]]),Wy=Na(rv(),1);const Ia={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function Uy(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 o=[],l=r,d=n;for(;l>0||d>0;)l>0&&d>0&&a(t[l-1],e[d-1])?(o.unshift({type:Ia.MATCH,position:l-1}),l--,d--):l>0&&d>0&&i[l][d]===i[l-1][d-1]+1?(o.unshift({type:Ia.SUBSTITUTE,position:l-1}),l--,d--):l>0&&i[l][d]===i[l-1][d]+1?(o.unshift({type:Ia.DELETE,position:l-1}),l--):d>0&&i[l][d]===i[l][d-1]+1&&(o.unshift({type:Ia.INSERT,position:l}),d--);return{distance:i[r][n],operations:o}}function Ky(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Ia.MATCH:r.push(t[n]),n++;break;case Ia.DELETE:n++;break;case Ia.INSERT:r.push(a);break;case Ia.SUBSTITUTE:r.push(a),n++;break}return r}function Zy(t,e,a,r){let n=Uy(t,e,a);return{merged:Ky(t,n.operations,r),edits:n}}var ki=0,Si="";function Hl(t){return t.id?t.id:t.name==="setup"?F_:Yu.create()}function qy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let l=(e==null?void 0:e.cells.map(d=>Hl(d)))||[];return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,null])),notebookCellData:new Map(l.map((d,u)=>[d,(e==null?void 0:e.cells[u])||Oc()]))}}if(!e){let l=t.cells.map(d=>Hl(d));return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(l.map(d=>[d,Oc()]))}}let{merged:n,edits:i}=Zy(t.cells,e.cells,(l,d)=>{let u=l.code_hash;return u?d.code_hash===u:!1},$c());i.distance>0&&de.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let l=0;l<e.cells.length;l++){let d=e.cells[l];if(d){let u=Hl(d);o.push(u);let c=n[l]||$c();c.id=u,a.set(u,c),r.set(u,d)}else de.warn("Merged notebook cell is null at index",l)}return{cellIds:o,sessionCellData:a,notebookCellData:r}}function Oc(){return{id:Yu.create(),name:Si,code:Si,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function $c(){return{id:Yu.create(),code_hash:null,console:[],outputs:[]}}function Yy(t,e){var a,r,n;return{id:t,name:e.name??Si,code:e.code??Si,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 Gy(t){let e=v_();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:ki};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:ki}}}let n=t.console||[];return{...e,outline:e.output?k_(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ki}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ki})}}function Qy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=qy(t,e);if(a.length===0)return null;let i={},o={};for(let l of a){let d=r.get(l),u=n.get(l);u&&(i[l]=Yy(l,u)),o[l]=Gy(d)}return{cellIds:f_.from([a]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var Jy=ee(),Bc=Object.freeze({left:0,top:0,width:16,height:16}),Ni=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),gn=Object.freeze({...Bc,...Ni}),Wl=Object.freeze({...gn,body:"",hidden:!1}),Xy=Object.freeze({width:null,height:null}),Lc=Object.freeze({...Xy,...Ni});function eb(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 tb=/[\s,]+/;function ab(t,e){e.split(tb).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var Hc={...Lc,preserveAspectRatio:""};function Wc(t){let e={...Hc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=eb(a("rotate","")),ab(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function rb(t,e){for(let a in Hc)if(t[a]!==e[a])return!0;return!1}var Uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,xn=(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 l=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:l};return e&&!Ei(u)?null:u}let i=n[0],o=i.split("-");if(o.length>1){let l={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!Ei(l)?null:l}if(a&&r===""){let l={provider:r,prefix:"",name:i};return e&&!Ei(l,a)?null:l}return null},Ei=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function nb(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 Kc(t,e){let a=nb(t,e);for(let r in Wl)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 ib(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(o){if(a[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=r[o]&&r[o].parent,d=l&&i(l);d&&(n[o]=[l].concat(d))}return n[o]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function ob(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function o(l){i=Kc(r[l]||n[l],i)}return o(e),a.forEach(o),Kc(t,i)}function Zc(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=ib(t);for(let n in r){let i=r[n];i&&(e(n,ob(t,n,i)),a.push(n))}return a}var lb={provider:"",aliases:{},not_found:{},...Bc};function Ul(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function qc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ul(t,lb))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!Ul(i,Wl))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],o=i.parent;if(!n||typeof o!="string"||!a[o]&&!r[o]||!Ul(i,Wl))return null}return e}var _i=Object.create(null);function sb(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function ya(t,e){let a=_i[t]||(_i[t]=Object.create(null));return a[e]||(a[e]=sb(t,e))}function Yc(t,e){return qc(e)?Zc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function db(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function ub(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(_i)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(_i[r]||{})).forEach(n=>{let i=ya(r,n);a=a.concat(Object.keys(i.icons).map(o=>(r===""?"":"@"+r+":")+n+":"+o))})}),a}var vn=!1;function Gc(t){return typeof t=="boolean"&&(vn=t),vn}function yn(t){let e=typeof t=="string"?xn(t,!0,vn):t;if(e){let a=ya(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function Qc(t,e){let a=xn(t,!0,vn);if(!a)return!1;let r=ya(a.provider,a.prefix);return e?db(r,a.name,e):(r.missing.add(a.name),!0)}function Jc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),vn&&!e&&!t.prefix){let r=!1;return qc(t)&&(t.prefix="",Zc(t,(n,i)=>{Qc(n,i)&&(r=!0)})),r}let a=t.prefix;return Ei({provider:e,prefix:a,name:"a"})?!!Yc(ya(e,a),t):!1}function Xc(t){return!!yn(t)}function cb(t){let e=yn(t);return e&&{...gn,...e}}function mb(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,o=n.prefix,l=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[o]||(d[o]=ya(i,o)),c;c=l in u.icons?e.loaded:o===""||u.missing.has(l)?e.missing:e.pending;let m={provider:i,prefix:o,name:l};c.push(m)}),e}function em(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function pb(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 o=i.icons,l=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])o.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))o.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),o.pending.length!==l&&(a||em([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var hb=0;function fb(t,e,a){let r=hb++,n=em.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),n}var Kl=Object.create(null);function tm(t,e){Kl[t]=e}function Zl(t){return Kl[t]||Kl[""]}function gb(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?xn(n,e,a):n;i&&r.push(i)}),r}var xb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vb(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,o;if(t.random){let S=t.resources.slice(0);for(o=[];S.length>1;){let N=Math.floor(Math.random()*S.length);o.push(S[N]),S=S.slice(0,N).concat(S.slice(N+1))}o=o.concat(S)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let l=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(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function v(S,N){N&&(h=[]),typeof S=="function"&&h.push(S)}function w(){return{startTime:l,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:v,abort:f}}function b(){d="failed",h.forEach(S=>{S(void 0,c)})}function D(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,N,y){let C=N!=="success";switch(p=p.filter(_=>_!==S),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=y,b();return}if(C){c=y,p.length||(o.length?k():b());return}if(g(),D(),!t.random){let _=t.resources.indexOf(S.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;g();let S=o.shift();if(S===void 0){if(p.length){m=setTimeout(()=>{g(),d==="pending"&&(D(),b())},t.timeout);return}b();return}let N={status:"pending",resource:S,callback:(y,C)=>{j(N,y,C)}};p.push(N),u++,m=setTimeout(k,t.rotate),a(S,e,N.callback)}return setTimeout(k),w}function am(t){let e={...xb,...t},a=[];function r(){a=a.filter(o=>o().status==="pending")}function n(o,l,d){let u=vb(e,o,l,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(o){return a.find(l=>o(l))||null}return{query:n,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:r}}function ql(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 Ri=Object.create(null),Ti=["https://api.simplesvg.com","https://api.unisvg.com"],Yl=[];Ti.length>0;)Ti.length===1||Math.random()>.5?Yl.push(Ti.shift()):Yl.push(Ti.pop());Ri[""]=ql({resources:["https://api.iconify.design"].concat(Yl)});function rm(t,e){let a=ql(e);return a===null?!1:(Ri[t]=a,!0)}function Ai(t){return Ri[t]}function yb(){return Object.keys(Ri)}function nm(){}var Gl=Object.create(null);function bb(t){if(!Gl[t]){let e=Ai(t);if(!e)return;Gl[t]={config:e,redundancy:am(e)}}return Gl[t]}function im(t,e,a){let r,n;if(typeof t=="string"){let i=Zl(t);if(!i)return a(void 0,424),nm;n=i.send;let o=bb(t);o&&(r=o.redundancy)}else{let i=ql(t);if(i){r=am(i);let o=Zl(t.resources?t.resources[0]:"");o&&(n=o.send)}}return!r||!n?(a(void 0,424),nm):r.query(e,n,a)().abort}function om(){}function wb(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,pb(t)}))}function Db(t){let e=[],a=[];return t.forEach(r=>{(r.match(Uc)?e:a).push(r)}),{valid:e,invalid:a}}function bn(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(!Yc(t,a).length){r();return}}catch(n){console.error(n)}r(),wb(t)}function lm(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function jb(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)){lm(t.loadIcons(n,r,a),u=>{bn(t,n,u)});return}if(i){n.forEach(u=>{lm(i(u,r,a),c=>{bn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:o,invalid:l}=Db(n);if(l.length&&bn(t,l,null),!o.length)return;let d=r.match(Uc)?Zl(a):null;if(!d){bn(t,o,null);return}d.prepare(a,r,o).forEach(u=>{im(a,u,c=>{bn(t,u.icons,c)})})}))}var Ql=(t,e)=>{let a=mb(gb(t,!0,Gc()));if(!a.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(a.loaded,a.missing,a.pending,om)}),()=>{l=!1}}let r=Object.create(null),n=[],i,o;return a.pending.forEach(l=>{let{provider:d,prefix:u}=l;if(u===o&&d===i)return;i=d,o=u,n.push(ya(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(l=>{let{provider:d,prefix:u,name:c}=l,m=ya(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(l=>{let d=r[l.provider][l.prefix];d.length&&jb(l,d)}),e?fb(e,a,n):om},Cb=t=>new Promise((e,a)=>{let r=typeof t=="string"?xn(t,!0):t;if(!r){a(t);return}Ql([r||t],n=>{if(n.length&&r){let i=yn(r);if(i){e({...gn,...i});return}}a(t)})});function sm(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function kb(t,e){if(typeof t=="object")return{data:sm(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=sm(t);if(n)return{data:n,value:t}}let a=xn(t,!0,!0);if(!a)return{value:t};let r=yn(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:Ql([a],()=>e(t,a,yn(a)))}}var dm=!1;try{dm=navigator.vendor.indexOf("Apple")===0}catch{}function Sb(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(dm||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Nb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Eb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jl(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(Nb);if(r===null||!r.length)return t;let n=[],i=r.shift(),o=Eb.test(i);for(;;){if(o){let l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");o=!o}}function _b(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 o=t.indexOf(">",i);if(o===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:a,content:t}}function Rb(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Tb(t,e,a){let r=_b(t);return Rb(r.defs,e+r.content+a)}var Ab=t=>t==="unset"||t==="undefined"||t==="none";function um(t,e){let a={...gn,...t},r={...Lc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let v=[],w=f.hFlip,b=f.vFlip,D=f.rotate;w?b?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):b&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.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,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.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)),v.length&&(i=Tb(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let o=r.width,l=r.height,d=n.width,u=n.height,c,m;o===null?(m=l===null?"1em":l==="auto"?u:l,c=Jl(m,d/u)):(c=o==="auto"?d:o,m=l===null?Jl(c,u/d):l==="auto"?u:l);let p={},h=(f,v)=>{Ab(v)||(p[f]=v.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 Xl(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 Ib(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Pb(t){return"data:image/svg+xml,"+Ib(t)}function cm(t){return'url("'+Pb(t)+'")'}var Ii=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Mb(t){Ii=t}function Fb(){return Ii}function zb(t,e){let a=Ai(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(o=>{n=Math.max(n,o.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function Vb(t){return t===404}var Ob=(t,e,a)=>{let r=[],n=zb(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},l=0;return a.forEach((d,u)=>{l+=d.length+1,l>=n&&u>0&&(r.push(o),o={type:i,provider:t,prefix:e,icons:[]},l=d.length),o.icons.push(d)}),r.push(o),r};function $b(t){if(typeof t=="string"){let e=Ai(t);if(e)return e.path}return"/"}var Bb={prepare:Ob,send:(t,e,a)=>{if(!Ii){a("abort",424);return}let r=$b(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),l=new URLSearchParams({icons:o});r+=i+".json?"+l.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;Ii(t+r).then(i=>{let o=i.status;if(o!==200){setTimeout(()=>{a(Vb(o)?"abort":"next",o)});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 Lb(t,e,a){ya(a||"",e).loadIcons=t}function Hb(t,e,a){ya(a||"",e).loadIcon=t}var es="data-style",mm="";function Wb(t){mm=t}function pm(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(es));a||(a=document.createElement("style"),a.setAttribute(es,es),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+mm}function hm(){tm("",Bb),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"||!Jc(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;rm(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:Xc,iconExists:Xc,getIcon:cb,listIcons:ub,addIcon:Qc,addCollection:Jc,calculateSize:Jl,buildIcon:um,iconToHTML:Xl,svgToURL:cm,loadIcons:Ql,loadIcon:Cb,addAPIProvider:rm,setCustomIconLoader:Hb,setCustomIconsLoader:Lb,appendCustomStyle:Wb,_api:{getAPIConfig:Ai,setAPIModule:tm,sendAPIQuery:im,setFetch:Mb,getFetch:Fb,listAPIProviders:yb}}}var ts={"background-color":"currentColor"},fm={"background-color":"transparent"},gm={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},xm={"-webkit-mask":ts,mask:ts,background:fm};for(let t in xm){let e=xm[t];for(let a in gm)e[t+"-"+a]=gm[a]}function vm(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Ub(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,o=cm(Xl(n,{...i,width:e.width+"",height:e.height+""})),l=r.style,d={"--svg":o,width:vm(i.width),height:vm(i.height),...a?ts:fm};for(let u in d)l.setProperty(u,d[u]);return r}var wn;function Kb(){try{wn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{wn=null}}function Zb(t){return wn===void 0&&Kb(),wn?wn.createHTML(t):t}function qb(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=Zb(Xl(t.body,a)),e.firstChild}function as(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function ym(t,e){let a=e.icon.data,r=e.customisations,n=um(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=qb(n):o=Ub(n,{...gn,...a},i==="mask");let l=as(t);l?o.tagName==="SPAN"&&l.tagName===o.tagName?l.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,l):t.appendChild(o)}function bm(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function Yb(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();Z(this,"_shadowRoot");Z(this,"_initialised",!1);Z(this,"_state");Z(this,"_checkQueued",!1);Z(this,"_connected",!1);Z(this,"_observer",null);Z(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");pm(d,u),this._state=bm({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,pm(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{}ym(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=Wc(this);(d.attrMode!==c||rb(d.customisations,m)||!as(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=kb(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=bm(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=as(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,Wc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Sb(d.data.body,c),p=this._state.inline;ym(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(l=>{l in i.prototype||Object.defineProperty(i.prototype,l,{get:function(){return this.getAttribute(l)},set:function(d){d===null?this.removeAttribute(l):this.setAttribute(l,d)}})});let o=hm();for(let l in o)i[l]=i.prototype[l]=o[l];return e.define(t,i),i}var{enableCache:nI,disableCache:iI,iconLoaded:oI,iconExists:lI,getIcon:sI,listIcons:dI,addIcon:uI,addCollection:cI,calculateSize:mI,buildIcon:pI,iconToHTML:hI,svgToURL:fI,loadIcons:gI,loadIcon:xI,setCustomIconLoader:vI,setCustomIconsLoader:yI,addAPIProvider:bI,_api:wI}=Yb()||hm(),x=Na(h_(),1),s=Na(OR(),1);const Gb=()=>((0,Jy.c)(1),null);var wm=ee();const Dm=(0,x.memo)(t=>{let e=(0,wm.c)(3),{children:a}=t,{theme:r}=un(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),document.body.dataset.theme=r,()=>{document.body.classList.remove(r,`${r}-theme`),delete document.body.dataset.theme}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Dm.displayName="ThemeProvider";const Qb=t=>{let e=(0,wm.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},Pi=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};var Jb=ee();const Xb=()=>{let t=(0,Jb.c)(25),[e,a]=ci(eR);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),ta({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{ta({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 o=i,l=ew,d;t[4]===o?d=t[5]:(d=D=>!D&&o(),t[4]=o,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(oA,{children:[(0,s.jsxs)(sA,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(D_,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(iA,{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)(r6,{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)(Se,{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)(Se,{variant:"outline",onClick:l,className:"flex items-center gap-2",children:[(0,s.jsx)(d6,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let v;t[17]===o?v=t[18]:(v=(0,s.jsxs)(uA,{children:[f,(0,s.jsx)(dA,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=v);let w;t[19]!==v||t[20]!==g?(w=(0,s.jsxs)(lA,{className:"max-w-2xl",children:[u,g,v]}),t[19]=v,t[20]=g,t[21]=w):w=t[21];let b;return t[22]!==w||t[23]!==d?(b=(0,s.jsx)(cA,{open:!0,onOpenChange:d,children:w}),t[22]=w,t[23]=d,t[24]=b):b=t[24],b};function ew(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function tw(){return window.ResizeObserver!==void 0}function Mi(t){let{ref:e,box:a,onResize:r}=t;(0,x.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(tw()){let i=new window.ResizeObserver(o=>{o.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 aw=pi();function rw(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return Ta(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),jm(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function nw(t,e){let[a,r]=(0,x.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 jm(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function jm(t,e,a){Ta(()=>{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,aw.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var na={top:"top",bottom:"top",left:"left",right:"left"},Fi={top:"bottom",bottom:"top",left:"right",right:"left"},iw={top:"left",left:"top"},rs={top:"height",left:"width"},Cm={width:"totalWidth",height:"totalHeight"},zi={},mt=typeof document<"u"?window.visualViewport:null;function km(t){let e=0,a=0,r=0,n=0,i=0,o=0,l={},d=((mt==null?void 0:mt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(mt==null?void 0:mt.width)??r,a=(mt==null?void 0:mt.height)??n,l.top=u.scrollTop||t.scrollTop,l.left=u.scrollLeft||t.scrollLeft,mt&&(i=mt.offsetTop,o=mt.offsetLeft)}else({width:e,height:a,top:i,left:o}=Cr(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,r=e,n=a;return gA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(l.top=0,l.left=0,i=(mt==null?void 0:mt.pageTop)??0,o=(mt==null?void 0:mt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:l,top:i,left:o}}function ow(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Sm(t,e,a,r,n,i,o){let l=n.scroll[t]??0,d=r[rs[t]],u=r.scroll[na[t]]+i,c=d+r.scroll[na[t]]-i,m=e-l+o[t]-r[na[t]],p=e-l+a+o[t]-r[na[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function lw(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 Nm(t){if(zi[t])return zi[t];let[e,a]=t.split(" "),r=na[e]||"right",n=iw[r];na[a]||(a="center");let i=rs[r],o=rs[n];return zi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:o},zi[t]}function ns(t,e,a,r,n,i,o,l,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:g,crossSize:f}=r,v={};v[h]=t[h]??0,m==="center"?v[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(v[h]+=(t[f]??0)-(a[f]??0)),v[h]+=i;let w=t[h]-a[f]+d+u,b=t[h]+t[f]-d-u;if(v[h]=fc(v[h],w,b),c===p){let D=l?o[g]:e[Cm[g]];v[Fi[p]]=Math.floor(D-t[p]+n)}else v[p]=Math.floor(t[p]+t[g]+n);return v}function sw(t,e,a,r,n,i,o,l){let d=r?a.height:e[Cm.height],u=t.top==null?a.top+(d-(t.bottom??0)-o):a.top+t.top,c=l==="top"?Math.max(0,u+o-(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 Em(t,e,a,r,n,i){let{placement:o,axis:l,size:d}=i;return o===l?Math.max(0,a[l]-t[l]-(t.scroll[l]??0)+e[l]-(r[l]??0)-r[Fi[l]]-n):Math.max(0,t[d]+t[l]+t.scroll[l]-e[l]-a[l]-a[d]-(r[l]??0)-r[Fi[l]]-n)}function dw(t,e,a,r,n,i,o,l,d,u,c,m,p,h,g,f){let v=Nm(t),{size:w,crossAxis:b,crossSize:D,placement:j,crossPlacement:k}=v,S=ns(e,l,a,v,c,m,u,p,g,f),N=c,y=Em(l,u,e,n,i+c,v);if(o&&r[w]>y){let V=Nm(`${Fi[j]} ${k}`),$=ns(e,l,a,V,c,m,u,p,g,f);Em(l,u,e,n,i+c,V)>y&&(v=V,S=$,N=c)}let C="bottom";v.axis==="top"?v.placement==="top"?C="top":v.placement==="bottom"&&(C="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?C="bottom":v.crossPlacement==="bottom"&&(C="top"));let _=Sm(b,S[b],a[D],l,d,i,u);S[b]+=_;let E=sw(S,l,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),S=ns(e,l,a,v,N,m,u,p,g,f),_=Sm(b,S[b],a[D],l,d,i,u),S[b]+=_;let A={},F=e[b]-S[b]-n[na[b]],T=F+.5*e[D],M=g/2+f,R=na[b]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),P=a[D]-R-g/2-f;A[b]=fc(fc(T,e[b]+g/2-(S[b]+n[na[b]]),e[b]+e[D]-g/2-(S[b]+n[na[b]])),M,P),{placement:j,crossPlacement:k}=v,g?F=A[b]:k==="right"?F+=e[D]:k==="center"&&(F+=e[D]/2);let I=j==="left"||j==="top"?a[w]:0,O={x:j==="top"||j==="bottom"?F:I,y:j==="left"||j==="right"?F:I};return{position:S,maxHeight:E,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:j,triggerAnchorPoint:O}}function uw(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:o,boundaryElement:l,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?cw(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,v=!!f&&f!=="static",w=g?Cr(a,!1):_m(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);w.top+=parseInt(y,10)||0,w.left+=parseInt(C,10)||0}let b=Cr(r,!0),D=lw(r);b.width+=(D.left??0)+(D.right??0),b.height+=(D.top??0)+(D.bottom??0);let j=ow(n),k=km(l),S=km(h),N=l.tagName==="BODY"?Cr(h,!1):_m(h,l,!1);return h.tagName==="HTML"&&l.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),dw(e,w,b,j,D,i,o,k,S,N,d,u,v,c,m,p)}function is(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 Cr(t,e){let{top:a,left:r,width:n,height:i}=is(t,e),{scrollTop:o,scrollLeft:l,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+o-d,left:r+l-u,width:n,height:i}}function _m(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=is(t,a);else{n=Cr(t,a);let i=Cr(e,a),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.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 cw(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Rm(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Rm(e);)e=e.parentElement;return e||document.documentElement}function Rm(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 mw=new WeakMap;function pw(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=r||mw.get(e.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function kr(t,e){return t-e*Math.floor(t/e)}var Tm=1721426;function ar(t,e,a,r){e=Dn(t,e);let n=e-1,i=-2;return a<=2?i=0:Pa(e)&&(i=-1),Tm-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Pa(t){return t%4==0&&(t%100!=0||t%400==0)}function Dn(t,e){return t==="BC"?1-e:e}function Vi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var hw={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]},kt=class{fromJulianDay(t){let e=t,a=e-Tm,r=Math.floor(a/146097),n=kr(a,146097),i=Math.floor(n/36524),o=kr(n,36524),l=Math.floor(o/1461),d=kr(o,1461),u=Math.floor(d/365),[c,m]=Vi(r*400+i*100+l*4+u+(i!==4&&u!==4?1:0)),p=e-ar(c,m,1,1),h=2;e<ar(c,m,3,1)?h=0:Pa(m)&&(h=1);let g=Math.floor(((p+h)*12+373)/367);return new pt(c,m,g,e-ar(c,m,g,1)+1)}toJulianDay(t){return ar(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return hw[Pa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Pa(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"}},fw={"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 Je(t,e){return e=$e(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function gw(t,e){return e=$e(e,t.calendar),t=rr(t),e=rr(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function os(t,e){return Oi(t.calendar,e.calendar)&&Je(t,e)}function Oi(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 Am(t,e){return Je(t,$i(e))}var xw={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function ls(t,e,a){let r=t.calendar.toJulianDay(t),n=a?xw[a]:jw(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Im(t){return wa(Date.now(),t)}function $i(t){return Dt(Im(t))}function Pm(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Mm(t,e){return Fm(t)-Fm(e)}function Fm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var zm=null;function Bi(){return zm??(zm=new Intl.DateTimeFormat().resolvedOptions().timeZone),zm}function rr(t){return t.subtract({days:t.day-1})}function Li(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function vw(t){return rr(t.subtract({months:t.month-1}))}function yw(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function bw(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function jn(t,e,a){let r=ls(t,e,a);return t.subtract({days:r})}function ww(t,e,a){return jn(t,e,a).add({days:6})}var Vm=new Map,ss=new Map;function Dw(t){if(Intl.Locale){let a=Vm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&Vm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function jw(t){let e=ss.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return ss.set(t,e),e.firstDay}let a=Dw(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&&fw[a]||0};ss.set(t,e)}return e.firstDay}function Cw(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((ls(rr(t),e,a)+r)/7)}function ds(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function us(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function Sr(t){return t=$e(t,new kt),Om(Dn(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function Om(t,e,a,r,n,i,o){let l=new Date;return l.setUTCHours(r,n,i,o),l.setUTCFullYear(t,e-1,a),l.getTime()}function cs(t,e){if(e==="UTC")return 0;if(t>0&&e===Bi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:o,second:l}=Bm(t,e);return Om(a,r,n,i,o,l,0)-Math.floor(t/1e3)*1e3}var $m=new Map;function Bm(t,e){let a=$m.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"}),$m.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 Lm=864e5;function kw(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Sw(t,e,n))}function Sw(t,e,a){let r=Bm(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 ba(t,e,a="compatible"){let r=ia(t);if(e==="UTC")return Sr(r);if(e===Bi()&&a==="compatible"){r=$e(r,new kt);let d=new Date,u=Dn(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=Sr(r),i=cs(n-Lm,e),o=cs(n+Lm,e),l=kw(r,e,n-i,n-o);if(l.length===1)return l[0];if(l.length>1)switch(a){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-o);case"compatible":case"later":return Math.max(n-i,n-o);case"reject":throw RangeError("No such absolute time found")}}function Hm(t,e,a="compatible"){return new Date(ba(t,e,a))}function wa(t,e){let a=cs(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate(),l=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new tp(n<1?"BC":"AD",n<1?-n+1:n,i,o,e,a,l,d,u,c)}function Dt(t){return new pt(t.calendar,t.era,t.year,t.month,t.day)}function ia(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 ep(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function $e(t,e){if(Oi(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,nr(r),r}function Nw(t,e,a){return t instanceof tp?t.timeZone===e?t:_w(t,e):wa(ba(t,e,a),e)}function Ew(t){let e=Sr(t)-t.offset;return new Date(e)}function _w(t,e){return $e(wa(Sr(t)-t.offset,e),t.calendar)}var Cn=36e5;function Hi(t,e){var l;let a=t.copy(),r="hour"in a?Zm(a,e):0;ms(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,ps(a),Wm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Rw(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=(l=(i=a.calendar).isInverseEra)==null?void 0:l.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 o=a.calendar.getMonthsInYear(a);return a.month>o&&(a.month=o,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function ms(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function ps(t){for(;t.month<1;)ms(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,ms(t,1)}function Rw(t){for(;t.day<1;)t.month--,ps(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,ps(t)}function Wm(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 nr(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Wm(t)}function hs(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function Um(t,e){return Hi(t,hs(e))}function fs(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),nr(a),a}function kn(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),Km(a),a}function Tw(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Wi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Wi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Wi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Wi(t.hour,24),e}function Km(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 Wi(t,e){let a=t%e;return a<0&&(a+=e),a}function Zm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Tw(t)}function qm(t,e){let a=t.copy();return Zm(a,e),a}function Aw(t,e){return qm(t,hs(e))}function gs(t,e,a,r){var o;let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=Da(d,a,0,l.length-1,r==null?void 0:r.round),n.era=l[d],nr(n);break}case"year":var i;(o=(i=n.calendar).isInverseEra)!=null&&o.call(i,n)&&(a=-a),n.year=Da(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=Da(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=Da(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),nr(n),n}function xs(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;o=d?12:0,l=d?23:11}n.hour=Da(i,a,o,l,r==null?void 0:r.round);break}case"minute":n.minute=Da(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=Da(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=Da(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function Da(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 Ym(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?ba(Hi(ia(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):Sr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,$e(wa(a,t.timeZone),t.calendar)}function Iw(t,e){return Ym(t,hs(e))}function Pw(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 o=ia(t),l=$e(kn(o,{hour:n}),new kt),d=[ba(l,t.timeZone,"earlier"),ba(l,t.timeZone,"later")].filter(g=>wa(g,t.timeZone).day===l.day)[0],u=$e(kn(o,{hour:i}),new kt),c=[ba(u,t.timeZone,"earlier"),ba(u,t.timeZone,"later")].filter(g=>wa(g,t.timeZone).day===u.day).pop(),m=Sr(t)-t.offset,p=Math.floor(m/Cn),h=m%Cn;return m=Da(p,a,Math.floor(d/Cn),Math.floor(c/Cn),r==null?void 0:r.round)*Cn+h,$e(wa(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return xs(t,e,a,r);case"era":case"year":case"month":case"day":return $e(wa(ba(gs(ia(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Mw(t,e,a){let r=ia(t),n=kn(fs(r,e),e);return n.compare(r)===0?t:$e(wa(ba(n,t.timeZone,a),t.timeZone),t.calendar)}var Fw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,zw=/^([+-]\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 Ma(t){let e=t.match(Fw);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 pt(oa(e[1],0,9999),oa(e[2],1,12),1);return a.day=oa(e[3],1,a.calendar.getDaysInMonth(a)),a}function Ui(t){let e=t.match(zw);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=oa(e[1],-9999,9999),r=new ep(a<1?"BC":"AD",a<1?-a+1:a,oa(e[2],1,12),1,e[4]?oa(e[4],0,23):0,e[5]?oa(e[5],0,59):0,e[6]?oa(e[6],0,59):0,e[7]?oa(e[7],0,1/0)*1e3:0);return r.day=oa(e[3],0,r.calendar.getDaysInMonth(r)),r}function oa(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function Qm(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 Jm(t){let e=$e(t,new kt),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 Xm(t){return`${Jm(t)}T${Qm(t)}`}function Vw(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 Ow(t){return`${Xm(t)}${Vw(t.offset)}[${t.timeZone}]`}function vs(t){let e=typeof t[0]=="object"?t.shift():new kt,a;if(typeof t[0]=="string")a=t.shift();else{let o=e.getEras();a=o[o.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var $w=new WeakMap,pt=class Ac{copy(){return this.era?new Ac(this.calendar,this.era,this.year,this.month,this.day):new Ac(this.calendar,this.year,this.month,this.day)}add(e){return Hi(this,e)}subtract(e){return Um(this,e)}set(e){return fs(this,e)}cycle(e,a,r){return gs(this,e,a,r)}toDate(e){return Hm(this,e)}toString(){return Jm(this)}compare(e){return Pm(this,e)}constructor(...e){zl(this,$w,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,nr(this)}},Bw=new WeakMap,Lw=class zy{copy(){return new zy(this.hour,this.minute,this.second,this.millisecond)}add(e){return qm(this,e)}subtract(e){return Aw(this,e)}set(e){return kn(this,e)}cycle(e,a,r){return xs(this,e,a,r)}toString(){return Qm(this)}compare(e){return Mm(this,e)}constructor(e=0,a=0,r=0,n=0){zl(this,Bw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,Km(this)}},Hw=new WeakMap,ep=class Ic{copy(){return this.era?new Ic(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ic(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Hi(this,e)}subtract(e){return Um(this,e)}set(e){return fs(kn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return gs(this,e,a,r);default:return xs(this,e,a,r)}}toDate(e,a){return Hm(this,e,a)}toString(){return Xm(this)}compare(e){let a=Pm(this,e);return a===0?Mm(this,ia(e)):a}constructor(...e){zl(this,Hw,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,nr(this)}},Ww=new WeakMap,tp=class Pc{copy(){return this.era?new Pc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Pc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ym(this,e)}subtract(e){return Iw(this,e)}set(e,a){return Mw(this,e,a)}cycle(e,a,r){return Pw(this,e,a,r)}toDate(){return Ew(this)}toString(){return Ow(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Nw(e,this.timeZone).toDate().getTime()}constructor(...e){zl(this,Ww,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e),l=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,nr(this)}},Nr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Uw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ki=[1867,1911,1925,1988,2018],Fa=["meiji","taisho","showa","heisei","reiwa"];function ap(t){let e=Nr.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?Nr.length-1:e===0?0:e-1}function ys(t){let e=Ki[Fa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new pt(t.year+e,t.month,t.day)}var Kw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ap(e);return new pt(this,Fa[a],e.year-Ki[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(ys(t))}balanceDate(t){let e=ys(t),a=ap(e);Fa[a]!==t.era&&(t.era=Fa[a],t.year=e.year-Ki[a]),this.constrainDate(t)}constrainDate(t){let e=Fa.indexOf(t.era),a=Uw[e];if(a!=null){let[r,n,i]=a,o=r-Ki[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(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]=Nr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Fa}getYearsInEra(t){let e=Fa.indexOf(t.era),a=Nr[e],r=Nr[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(ys(t))}getMinimumMonthInYear(t){let e=rp(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=rp(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function rp(t){if(t.year===1)return Nr[Fa.indexOf(t.era)]}var np=-543,Zw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=Dn(e.era,e.year);return new pt(this,a-np,e.month,e.day)}toJulianDay(t){return super.toJulianDay(ip(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ip(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function ip(t){let[e,a]=Vi(t.year+np);return new pt(e,a,t.month,t.day)}var Zi=1911;function op(t){return t.era==="minguo"?t.year+Zi:1-t.year+Zi}function lp(t){let e=t-Zi;return e>0?["minguo",e]:["before_minguo",1-e]}var qw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=lp(Dn(e.era,e.year));return new pt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(sp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=lp(op(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(sp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Zi}constructor(...t){super(...t),this.identifier="roc"}};function sp(t){let[e,a]=Vi(op(t));return new pt(e,a,t.month,t.day)}var dp=1948320,up=[0,31,62,93,124,155,186,216,246,276,306,336],Yw=class{fromJulianDay(t){let e=t-dp,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-up[n]+1;return new pt(this,a,n+1,i)}toJulianDay(t){let e=dp-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=up[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||kr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},bs=78,cp=80,Gw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-bs,r=t-ar(e.era,e.year,1,1),n;r<cp?(a--,n=Pa(e.year-1)?31:30,r+=n+155+90+10):(n=Pa(e.year)?31:30,r-=cp);let i,o;if(r<n)i=1,o=r+1;else{let l=r-n;l<155?(i=Math.floor(l/31)+2,o=l%31+1):(l-=155,i=Math.floor(l/30)+7,o=l%30+1)}return new pt(this,a,i,o)}toJulianDay(t){let[e,a]=Vi(t.year+bs),r,n;return Pa(a)?(r=31,n=ar(e,a,3,21)):(r=30,n=ar(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&&Pa(t.year+bs)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},qi=1948440,mp=1948439,Ot=1300,Er=1600,Qw=460322;function Yi(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function pp(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Yi(e,r,1,1)))/29.5)+1);return new pt(t,r,n,a-Yi(e,r,n,1)+1)}function hp(t){return(14+11*t)%30<11}var ws=class{fromJulianDay(t){return pp(this,qi,t)}toJulianDay(t){return Yi(qi,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&hp(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return hp(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},Jw=class extends ws{fromJulianDay(t){return pp(this,mp,t)}toJulianDay(t){return Yi(mp,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Xw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",fp,_r;function Gi(t){return Qw+_r[t-Ot]}function Sn(t,e){let a=t-Ot,r=1<<11-(e-1);return(fp[a]&r)===0?29:30}function gp(t,e){let a=Gi(t);for(let r=1;r<e;r++)a+=Sn(t,r);return a}function xp(t){return _r[t+1-Ot]-_r[t-Ot]}var e2=class extends ws{fromJulianDay(t){let e=t-qi,a=Gi(Ot),r=Gi(Er);if(e<a||e>r)return super.fromJulianDay(t);{let n=Ot-1,i=1,o=1;for(;o>0;){n++,o=e-Gi(n)+1;let l=xp(n);if(o===l){i=12;break}else if(o<l){let d=Sn(n,i);for(i=1;o>d;)o-=d,i++,d=Sn(n,i);break}}return new pt(this,n,i,e-gp(n,i)+1)}}toJulianDay(t){return t.year<Ot||t.year>Er?super.toJulianDay(t):qi+gp(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ot||t.year>Er?super.getDaysInMonth(t):Sn(t.year,t.month)}getDaysInYear(t){return t.year<Ot||t.year>Er?super.getDaysInYear(t):xp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",fp||(fp=new Uint16Array(Uint8Array.from(atob(Xw),t=>t.charCodeAt(0)).buffer)),!_r){_r=new Uint32Array(Er-Ot+1);let t=0;for(let e=Ot;e<=Er;e++){_r[e-Ot]=t;for(let a=1;a<=12;a++)t+=Sn(e,a)}}}},vp=347997,yp=1080,bp=24*yp,t2=29,a2=12*yp+793,r2=t2*bp+a2;function ir(t){return kr(t*7+1,19)<7}function Qi(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return kr(3*(r+1),7)<3&&(r+=1),r}function n2(t){let e=Qi(t-1),a=Qi(t);return Qi(t+1)-a===356?2:a-e===382?1:0}function Nn(t){return Qi(t)+n2(t)}function wp(t){return Nn(t+1)-Nn(t)}function i2(t){let e=wp(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ji(t,e){if(e>=6&&!ir(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=i2(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?ir(t)?30:0:30}var o2=class{fromJulianDay(t){let e=t-vp,a=e*bp/r2,r=Math.floor((19*a+234)/235)+1,n=Nn(r),i=Math.floor(e-n);for(;i<1;)r--,n=Nn(r),i=Math.floor(e-n);let o=1,l=0;for(;l<i;)l+=Ji(r,o),o++;o--,l-=Ji(r,o);let d=i-l;return new pt(this,r,o,d)}toJulianDay(t){let e=Nn(t.year);for(let a=1;a<t.month;a++)e+=Ji(t.year,a);return e+t.day+vp}getDaysInMonth(t){return Ji(t.year,t.month)}getMonthsInYear(t){return ir(t.year)?13:12}getDaysInYear(t){return wp(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(ir(e.year)&&!ir(t.year)&&e.month>6?t.month--:!ir(e.year)&&ir(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ds=1723856,Dp=1824665,js=5500;function Xi(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Cs(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Xi(t,a,1,1))/30);return[a,r,e+1-Xi(t,a,r,1)]}function jp(t){return Math.floor(t%4/3)}function Cp(t,e){return e%13==0?jp(t)+5:30}var ks=class{fromJulianDay(t){let[e,a,r]=Cs(Ds,t),n="AM";return e<=0&&(n="AA",e+=js),new pt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=js),Xi(Ds,e,t.month,t.day)}getDaysInMonth(t){return Cp(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+jp(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},l2=class extends ks{fromJulianDay(t){let[e,a,r]=Cs(Ds,t);return e+=js,new pt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},s2=class extends ks{fromJulianDay(t){let[e,a,r]=Cs(Dp,t),n="CE";return e<=0&&(n="BCE",e=1-e),new pt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Xi(Dp,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Cp(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 Ss(t){switch(t){case"buddhist":return new Zw;case"ethiopic":return new ks;case"ethioaa":return new l2;case"coptic":return new s2;case"hebrew":return new o2;case"indian":return new Gw;case"islamic-civil":return new ws;case"islamic-tbla":return new Jw;case"islamic-umalqura":return new e2;case"japanese":return new Kw;case"persian":return new Yw;case"roc":return new qw;default:return new kt}}function d2(t){let e=fR({usage:"search",...t}),a=(0,x.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(0,o.length),o)===0),[e]),r=(0,x.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(-o.length),o)===0),[e]),n=(0,x.useCallback)((i,o)=>{if(o.length===0)return!0;i=i.normalize("NFC"),o=o.normalize("NFC");let l=0,d=o.length;for(;l+d<=i.length;l++){let u=i.slice(l,l+d);if(e.compare(o,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Xe=typeof document<"u"?window.visualViewport:null;function u2(t){let{direction:e}=at(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:o=n,placement:l="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:v,arrowBoundaryOffset:w=0}=t,[b,D]=(0,x.useState)(null),j=[h,l,n.current,r.current,i==null?void 0:i.current,o.current,d,u,c,m,p,g,e,v,w,a],k=(0,x.useRef)(Xe==null?void 0:Xe.scale);(0,x.useEffect)(()=>{g&&(k.current=Xe==null?void 0:Xe.scale)},[g]);let S=(0,x.useCallback)(()=>{var A,F;if(h===!1||!g||!n.current||!r.current||!c||(Xe==null?void 0:Xe.scale)!==k.current)return;let C=null;if(o.current&&o.current.contains(document.activeElement)){let T=(A=document.activeElement)==null?void 0:A.getBoundingClientRect(),M=o.current.getBoundingClientRect();C={type:"top",offset:((T==null?void 0:T.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((T==null?void 0:T.bottom)??0)-M.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((F=window.visualViewport)==null?void 0:F.height)??window.innerHeight)+"px");let E=uw({placement:m2(l,e),overlayNode:n.current,targetNode:r.current,scrollNode:o.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:v,arrowSize:a??(i!=null&&i.current?is(i.current,!0).width:0),arrowBoundaryOffset:w});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(T=>_.style[T]=E.position[T]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&o.current){let T=document.activeElement.getBoundingClientRect(),M=o.current.getBoundingClientRect(),R=T[C.type]-M[C.type];o.current.scrollTop+=R-C.offset}D(E)}},j);Ta(S,j),c2(S),Mi({ref:n,onResize:S}),Mi({ref:r,onResize:S});let N=(0,x.useRef)(!1);Ta(()=>{let C,_=()=>{N.current=!0,clearTimeout(C),C=setTimeout(()=>{N.current=!1},500),S()},E=()=>{N.current&&_()};return Xe==null||Xe.addEventListener("resize",_),Xe==null||Xe.addEventListener("scroll",E),()=>{Xe==null||Xe.removeEventListener("resize",_),Xe==null||Xe.removeEventListener("scroll",E)}},[S]);let y=(0,x.useCallback)(()=>{N.current||(f==null||f())},[f,N]);return pw({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:b?"absolute":"fixed",top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b==null?void 0:b.position,maxHeight:(b==null?void 0:b.maxHeight)??"100vh"}},placement:(b==null?void 0:b.placement)??null,triggerAnchorPoint:(b==null?void 0:b.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:S}}function c2(t){Ta(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function m2(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function p2({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(fA.Provider,{value:e},t)}function h2(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=xy(d=>{a&&kp(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),l=xy(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=hA(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&kp(p,e)&&l(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("click",m,!0)}}},[e,r,o,l])}function kp(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 la=[];function f2(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=t;(0,x.useEffect)(()=>{if(n&&!la.includes(e))return la.push(e),()=>{let g=la.indexOf(e);g>=0&&la.splice(g,1)}},[n,e]);let d=()=>{la[la.length-1]===e&&a&&a()},u=g=>{(!l||l(g.target))&&la[la.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!l||l(g.target))&&(la[la.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!o&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};h2({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Cl({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||xR(g.relatedTarget)||(!l||l(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var En=typeof document<"u"&&window.visualViewport,eo=0,Sp;function g2(t={}){let{isDisabled:e}=t;Ta(()=>{if(!e)return eo++,eo===1&&(Sp=hy()?v2():x2()),()=>{eo--,eo===0&&Sp()}},[e])}function x2(){let t=window.innerWidth-document.documentElement.clientWidth;return fy(t>0&&("scrollbarGutter"in document.documentElement.style?Ns(document.documentElement,"scrollbarGutter","stable"):Ns(document.documentElement,"paddingRight",`${t}px`)),Ns(document.documentElement,"overflow","hidden"))}function v2(){let t,e=!1,a=d=>{let u=d.target;t=gR(u)?u:pl(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-Bs5_UsFC.js","./app-config-button-Btys3Cin.js","./ai-model-dropdown-BnQGs6GF.js","./cells-DD42bsu7.js","./preload-helper-BW0IMuFq.js","./badge-BUFDGZ04.js","./cn-d_A4rA-x.js","./clsx-A78R3nYl.js","./compiler-runtime-B3qBwwSJ.js","./react-Bj1aDYRI.js","./chunk-LvLJmgfZ.js","./jsx-runtime-CP2fAiZX.js","./button-BmOH9agK.js","./useEventListener-CjXriKgk.js","./Combination-BioTNpLP.js","./react-dom-CSu739Rf.js","./select-BRK_BOoG.js","./menu-items-BpKTKw9I.js","./dist-DsQvo-tW.js","./check-BnZGcuDh.js","./createLucideIcon-BvP5LBIs.js","./x-yqLqiq5Q.js","./tooltip-oM-h2ZN1.js","./use-toast-Hc8CXlvz.js","./utils-CORJ8yYa.js","./useEvent-WUlsM6MC.js","./_baseIsEqual-BU8KB_Ip.js","./_Uint8Array-BGESiCQL.js","./invariant-awXiPaF0.js","./merge-DnJbrtRQ.js","./isArrayLikeObject-BkJc8lDE.js","./zod-H_cgTO0M.js","./DeferredRequestRegistry-TekxUirp.js","./Deferred-BMfCOLaw.js","./uuid-ClFZlR7U.js","./config-CBwelk8k.js","./constants-CdR60lKM.js","./session-Deuv0Lgh.js","./requests-DZy_SQ_v.js","./useLifecycle-BDXC6oVR.js","./assertNever-Dw9aFN4h.js","./toString-DlRqgfqz.js","./isSymbol-BGkTcW3U.js","./_baseSlice-39dTX4Wi.js","./_hasUnicode-QS_pSfjY.js","./_arrayReduce-BKEr35uH.js","./useNonce-BY4jV7Yb.js","./useTheme-CAolwY4Q.js","./once-DRC4SgqY.js","./capabilities-CeYo4YI0.js","./createReducer-BcTiTw8T.js","./paths-D2lG83Oh.js","./dist-D89dID68.js","./dist-DUY6xZX8.js","./dist-CU-Ty5ht.js","./dist-BOEbbZQx.js","./dist-DotE4D06.js","./dist-WaT7BL5t.js","./dist-BoFVJhwF.js","./dist-C4QdWMCE.js","./dist-CEQIJ2pn.js","./stex-0ac7Aukl.js","./toDate-DDAiY7kz.js","./purify.es-DTgMcyNc.js","./cjs-CVt8hZ5L.js","./_baseProperty-DuoFhI7N.js","./debounce-D8CkpJG7.js","./toNumber-GB_lFVaq.js","./now-DIo_1hTm.js","./toInteger-Cl1doThW.js","./database-zap-B3efE3T2.js","./main-Cmx6WhDY.js","./cells-jmgGt1lS.css","./spinner-Dt4SmUsI.js","./renderShortcut-_nl5_jRy.js","./dropdown-menu-D9u7_h0R.js","./chevron-right-_z3dkNFy.js","./kbd-Rn7tWvNg.js","./multi-map-BHEewz4D.js","./alert-Bs8tbZo_.js","./card-WPBELA1S.js","./dialog-D_1x0b57.js","./alert-dialog-DEeW2awP.js","./textarea-noyX_YEw.js","./label-OL3StKg2.js","./dist-jtXWG2b1.js","./useDebounce-S9zaMzrr.js","./input-B49Srsl9.js","./numbers-CPeFd6mm.js","./useNumberFormatter-DQd-h5xR.js","./context-CRApIvpB.js","./SSRProvider-CwqN9FWV.js","./usePress-DcdVsIfA.js","./links-MkDbmF2p.js","./popover-C7N9RyXk.js","./switch-CA8la81g.js","./table-FXVKPW36.js","./useAsyncData-CI3ntihq.js","./error-banner-DsP3CCH3.js","./errors-0IrrdfSG.js","./copy-CgddLxfF.js","./get-6uJrSKbw.js","./memoize-BCOZVFBt.js","./capitalize-irHJCpFh.js","./copy-CAR4dOiD.js","./plus-C9B_qWUi.js","./refresh-cw-fLeDriQe.js","./trash-2-CrA4LwJ2.js","./azure-B7oWrJc_.js","./useInterval-C2RcswPt.js","./useInterval-CuKU-ENz.css","./ImperativeModal-MjC9Owmv.js","./settings-DRfuuLRT.js","./ErrorBoundary-dVj6GVNE.js","./icons-B9sHgc9n.js","./types-DYD6UxTH.js","./file-video-camera-Fa5c_iPb.js","./file-DVwc11C3.js","./dates-_ZWMvHpG.js","./en-US-k6sS5Nab.js","./isValid-CUXKlcrM.js","./links-cVjWsr05.js","./maps-8VTEe-0T.js","./tree-DKsPUdeu.js","./extends-B9D0JO9U.js","./chart-no-axes-column-F2DZENgf.js","./circle-play-n0LbT9bZ.js","./youtube-DfMgNU9-.js","./link-BmtFffTv.js","./refresh-ccw-B3lGEyQm.js","./run-page-DzsjMR6O.js","./panels-903Vandk.js","./JsonOutput-uf7OFaDU.js","./tooltip-CcOqovrC.js","./vega-loader.browser-BJ9oKrvH.js","./precisionRound-CCOoIlcP.js","./defaultLocale-CuYNS33t.js","./defaultLocale-CGfP-Ye3.js","./MarimoErrorOutput-BJkHPKWK.js","./useInstallPackage-chfmZzat.js","./cell-link-CiQrWiPA.js","./datasource-Cturxb4x.js","./state-DRCtQIWh.js","./copy-icon-HFU_6E8O.js","./markdown-renderer-YOedNAkc.js","./html-to-image-CojwvW9z.js","./focus-DiPb_hn6.js","./LazyAnyLanguageCodeMirror-DIzh1FyL.js","./chunk-5FQGJX7Z-CKJM3d7z.js","./katex-FSdXOW5Y.js","./markdown-renderer-DdDKmWlR.css","./command-2Li9iWG_.js","./download-CmObLKP6.js","./RenderHTML-CjCJ1DT4.js","./useIframeCapabilities-Ba0L-TQN.js","./formats-B4v3ZpGs.js","./emotion-is-prop-valid.esm-lG8j6oqk.js","./useDateFormatter-DfEfyPT1.js","./range-BGa3qZre.js","./table-CeILsq6V.js","./JsonOutput-B7vuddcd.css","./layout-D1VtP7GQ.js","./name-cell-input-HEC8dShQ.js","./esm-Dm5bJp7V.js","./objectWithoutPropertiesLoose-CboCOq4o.js","./name-cell-input-ujOhus_y.css","./floating-outline-BPv4P2vV.js","./readonly-python-code-XphqxCq8.js","./useAddCell-DVMY6vkv.js","./eye-off-DgTL09j7.js","./process-output-B2WHFsM0.js","./esm-CqpQNGcZ.js","./dist-DBYXupB9.js","./dist-CW4ZrmuX.js","./dist-DvNh3ph0.js","./dist-Vc8ZMKz4.js","./dist-DrewQ3CS.js","./dist-CLFvKo6g.js","./dist-C83X_psd.js","./dist-D-iyTPWR.js","./dist-DWi0RsIc.js","./dist-BfsJ2nor.js","./dist-CFJh28wG.js","./dist-Cr2srKZ5.js","./dist-CX4tr6LY.js","./dist-DkUBUEhC.js","./apl-Byte72fT.js","./asciiarmor-BU-VnG1Y.js","./asn1-hTvH3S4T.js","./brainfuck-C-q1Rv8J.js","./clike-BE-9Ct_H.js","./clojure-Co-TLeNo.js","./cmake-B-Nm_Opd.js","./cobol-BGdihAZT.js","./coffeescript-BUZXkMUO.js","./commonlisp-CFkPbxvX.js","./crystal-CqfqDl34.js","./css-DPEtZWJi.js","./cypher-B0t8FJvU.js","./d-DRa_XRSB.js","./diff-GLneonpD.js","./dtd-uVrZNVF0.js","./dylan-DkNeA4FZ.js","./ecl-CldUgvc9.js","./eiffel-CoMDRbRL.js","./elm-Cb5XC6ev.js","./erlang-8H3fTZ3L.js","./factor-C-_cRSDM.js","./simple-mode-CFlvn0Mm.js","./forth-B8kC4npz.js","./fortran-CNWGEL3c.js","./gas-DnZQNTHK.js","./gherkin-JfGcGvci.js","./groovy-D0FWiAVm.js","./haskell-wUB3uX-G.js","./haxe-g0JY6eL-.js","./idl-CV2cLkPc.js","./javascript-CT6okXEZ.js","./julia-CKC48ufo.js","./livescript-C43pZ6Ue.js","./lua-Cs2mb10K.js","./mathematica-B5FMK3ma.js","./mbox-36Zrn5Bd.js","./mirc-BKTAABSX.js","./mllike-DbuClUqc.js","./modelica-CKRvBm7N.js","./mscgen-B4BRgnCi.js","./mumps-BFiMcyFV.js","./nsis-BGZ5EB-j.js","./ntriples-QQAkJYAR.js","./octave-DsTphmGZ.js","./oz-CD9rr5Iz.js","./pascal-DdHEIlJE.js","./perl-DHPJBQ1u.js","./pig-Yz7ERgca.js","./powershell-CHPZ_bsU.js","./properties-CI9nc7K4.js","./protobuf-BYSIv2pY.js","./pug-CYW0agOo.js","./puppet-CEpLafZX.js","./python-BndVuwG1.js","./q-L_cetpiW.js","./r-Dd37AKWk.js","./rpm-CHrvhtlN.js","./ruby-BPOowfX6.js","./sas-BsEFSvEP.js","./scheme-B42INBu7.js","./shell-BPea12OI.js","./sieve-C-yPcLw5.js","./smalltalk-e7OO1ATb.js","./sparql-B4I2Ledx.js","./stylus-CBRbZwhN.js","./swift-B2hnU7ha.js","./tcl-BtyamtaZ.js","./textile-M9mhyNE9.js","./toml-YxyxhyRy.js","./troff-C7xpi05X.js","./ttcn-cfg-DlZ5vA9E.js","./ttcn-D3YytrJU.js","./turtle-BSHvAsUe.js","./vb-DdkIDLlO.js","./vbscript-DhYGmk_p.js","./velocity-DAXJNEw4.js","./verilog-jmuT_L3b.js","./vhdl-DcVQ97RU.js","./webidl-B-YB_4OQ.js","./xquery-DOmY3Oe8.js","./yacas-pL3kJRXV.js","./z80-VwVuI_MT.js","./code-xml-BMv1Dtd2.js","./ellipsis-CnEpKti0.js","./image-CBwHq93J.js","./play-CkqWG85-.js","./trash-ZGxZ3QGq.js","./prop-types-C638SUfx.js","./layout-BjXzDXoG.css","./context-aware-panel-DMHGbB_b.js","./toggle-MO7vjfkt.js","./globals-Dk7VGE85.js","./share-BpyH3qLa.js","./blob-DgooIGjS.js","./_baseSet-BEHvSeoM.js","./react-resizable-panels.browser.esm-DDRqG5ui.js","./types-D4wsSrXa.js","./requests-BtlCsvG4.js","./runs-DkRl4kcc.js","./request-registry-D-vPSm0g.js","./state-QwNqaRCk.js","./ws-Sb1KIggW.js","./panels-B4E3DsXP.css","./marimo-icons-DcMouEVW.js","./download-BG-iMGgV.js","./edit-page-BNA8A6Ux.js","./loro_wasm_bg-DNKZeVyM.js","./useDeleteCell-CrSQfQw4.js","./add-cell-with-ai-DJ9tuL4g.js","./cell-editor-BDJGt0PK.js","./useSplitCell-BL-Sir7Y.js","./dist-DgIBu6pZ.js","./circle-check-CceJVe3L.js","./save-C91FTnFa.js","./cell-editor-Iey559K_.css","./useNotebookActions-Bzt5O8Yy.js","./useCellActionButton-HNTLhSrv.js","./multi-icon-BFa-He80.js","./multi-icon-pwGWVz3d.css","./circle-plus-DfyUnSPr.js","./add-database-form-D06OUuSg.js","./write-secret-modal-CkhGEn3N.js","./field-Cgpys-pp.js","./form-ibH0eKd-.js","./_createAggregator-BjsxkJZj.js","./_baseEach-DKvBKtvu.js","./hasIn-Dzwrcr75.js","./file-plus-corner-BRwJx0yp.js","./globe-B68kre4p.js","./square-DZpWT_hp.js","./CellStatus-DT32GPB2.js","./workflow-DgZ_19fF.js","./CellStatus-2Psjnl5F.css","./useDependencyPanelTab-BqqmAAW7.js","./panel-context-D8PoMwqS.js","./kiosk-mode-hbpM_a-j.js","./useBoolean-Den0ZqeZ.js","./clipboard-paste-DVaOjTFK.js","./rotate-ccw-DgH8qERb.js","./square-function-DEp1ozoA.js","./edit-page-Dstp9NQ5.css","./gallery-page-Dwy7ttw7.js","./glide-data-editor-CfedLJF1.js","./types-CswNghXe.js","./click-outside-container-C9uindjY.js","./dist-DTVn6XkJ.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-BJPiMTXX.js","./spec-CcvA_Vlj.js","./react-vega-BYVwP1iN.js","./linear-S_2Z0W1R.js","./timer-CPT_vXom.js","./init-DsZRk2YA.js","./time-CoU4QCVK.js","./range-ClqUI25v.js","./treemap-DeGcO9km.js","./path-DvTahePH.js","./colors-BG8Z91CW.js","./ordinal-CIZb_ice.js","./arc-CWuN1tfc.js","./math-B-ZqhQTL.js","./array-CC7vZNGO.js","./step-D7xg1Moj.js","./line-x4bpd_8D.js","./isString-CqoLqJdS.js","./Plot-QylwdLbt.js","./vega-component-BYA7vCZO.js","./useDeepCompareMemoize-yyiB9aJX.js","./uniq-BcZ2NhGK.js","./_baseUniq-qwHSJi3M.js","./slides-component-Bf8iP5zM.js","./slides-component-BZCkobYT.css","./ImageComparisonComponent-LONRB2tR.js","./mermaid-Dq45ZTSR.js","./dist-DQ3_8QJg.js","./chunk-JA3XYJ7Z-DlWIdoh6.js","./src-D57-7XBB.js","./src-Bp_72rVO.js","./chunk-S3R3BYOJ-BXcnEOaZ.js","./chunk-ABZYJK2D-B_EusRlI.js","./isEmpty-9KlyX4nB.js","./chunk-ATLVNIR6-YSXtuHxk.js","./chunk-CVBHYZKI-DwNHftX6.js","./chunk-DR5Q36YT-DKTVLAfY.js","./chunk-EXTU4WIE-Dm7JTwJS.js","./chunk-HN2XXSSU-COpG_X4X.js","./chunk-JZLCHNYA-BjCNnsxN.js","./chunk-MI3HLSF2-D_z13ybc.js","./chunk-N4CR4FBY-DvejWNHh.js","./chunk-QXUST7PY-CPnoUHx5.js","./katex-BalO4WMU.js","./mhchem-DYHJI636.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
var c_=Object.defineProperty;var tv=Ae=>{throw TypeError(Ae)};var m_=(Ae,Pe,Qe)=>Pe in Ae?c_(Ae,Pe,{enumerable:!0,configurable:!0,writable:!0,value:Qe}):Ae[Pe]=Qe;var Z=(Ae,Pe,Qe)=>m_(Ae,typeof Pe!="symbol"?Pe+"":Pe,Qe),Lu=(Ae,Pe,Qe)=>Pe.has(Ae)||tv("Cannot "+Qe);var K=(Ae,Pe,Qe)=>(Lu(Ae,Pe,"read from private field"),Qe?Qe.call(Ae):Pe.get(Ae)),He=(Ae,Pe,Qe)=>Pe.has(Ae)?tv("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(Ae):Pe.set(Ae,Qe),et=(Ae,Pe,Qe,jr)=>(Lu(Ae,Pe,"write to private field"),jr?jr.call(Ae,Qe):Pe.set(Ae,Qe),Qe),Hu=(Ae,Pe,Qe)=>(Lu(Ae,Pe,"access private method"),Qe);var av=(Ae,Pe,Qe,jr)=>({set _(Ll){et(Ae,Pe,Ll,Qe)},get _(){return K(Ae,Pe,jr)}});import{r as p_,s as Na,t as Wu}from"./chunk-LvLJmgfZ.js";import{c as ll,i as We,l as ci,n as Ue,s as sl,u as dl}from"./useEvent-WUlsM6MC.js";import{t as h_}from"./react-Bj1aDYRI.js";import{$r as f_,Di as rv,Ei as g_,Fr as x_,Ft as Uu,K as Ku,L as v_,Qn as y_,S as b_,Un as Zu,Wn as nv,Yn as iv,_i as ov,ai as w_,ar as lv,b as sv,bi as mi,cr as D_,ct as j_,di as dv,dt as C_,fi as qu,hi as Yu,it as k_,li as S_,nr as ul,oi as N_,or as E_,pi as __,rn as R_,st as T_,ti as A_,ui as I_,ur as P_,xi as M_,yi as F_,__tla as z_}from"./cells-DD42bsu7.js";import{t as pi}from"./react-dom-CSu739Rf.js";import{A as tn,B as _e,C as Ut,E as V_,F as uv,I as Ct,J as O_,N as H,P as B,R as z,S as an,T as W,U as $_,V as Wa,a as cv,b as be,h as B_,i as mv,j as L_,k as Ze,n as pv,r as H_,s as Gu,t as Qu,v as W_,w as J,x as hv,z as ea}from"./zod-H_cgTO0M.js";import{t as ee}from"./compiler-runtime-B3qBwwSJ.js";import{t as U_}from"./get-6uJrSKbw.js";import{t as cl}from"./pick-BeVScbIo.js";import{t as Ua}from"./capitalize-irHJCpFh.js";import{i as K_,n as Z_,o as Ju,s as q_}from"./useLifecycle-BDXC6oVR.js";import{i as Y_,r as fv,t as G_}from"./tooltip-CcOqovrC.js";import{B as Q_,C as gv,E as J_,L as xv,M as Xu,N as hi,O as X_,P as eR,S as tR,T as aR,a as rR,b as vv,c as nR,d as yv,f as iR,g as rn,h as bv,m as Ka,n as wv,o as oR,p as lR,s as sR,v as dR,w as uR,x as cR,y as Dv,__tla as mR}from"./context-aware-panel-DMHGbB_b.js";import{G as fi,J as pR,K as hR,X as ml,Y as jv,Z as fR,at as Cv,et as kv,it as gR,nt as ec,q as xR,rt as pl,st as hl,tt as fl}from"./ai-model-dropdown-BnQGs6GF.js";import{c as Za,h as qa,m as de,n as vR,r as Mt,t as tc}from"./useEventListener-CjXriKgk.js";import{t as nn}from"./invariant-awXiPaF0.js";import{A as yR,O as bR,S as wR,g as DR,i as jR,k as CR,l as kR,v as SR,y as NR}from"./utils-CORJ8yYa.js";import{r as ac}from"./constants-CdR60lKM.js";import{S as ER,_ as Sv,a as _R,h as Nv,i as Ev,r as rc,t as RR,x as _v,y as tt}from"./config-CBwelk8k.js";import{a as TR,d as AR,l as IR,o as PR,r as MR,t as FR,u as zR}from"./switch-CA8la81g.js";import{t as VR}from"./globals-Dk7VGE85.js";import{t as gl}from"./ErrorBoundary-dVj6GVNE.js";import{t as OR}from"./jsx-runtime-CP2fAiZX.js";import{n as Ya,t as Se}from"./button-BmOH9agK.js";import{n as xl,t as q}from"./cn-d_A4rA-x.js";import{at as $R}from"./dist-DUY6xZX8.js";import{$ as BR,B as LR,C as Rv,E as HR,G as WR,H as UR,K as Tv,M as nc,N as ic,O as KR,S as ZR,T as qR,U as YR,V as Av,Y as gi,_ as GR,b as QR,c as JR,et as XR,g as eT,k as Iv,l as tT,nt as aT,q as rT,r as nT,s as iT,t as Pv,tt as oT,v as lT,w as oc,x as sT,y as lc,z as Mv,__tla as dT}from"./JsonOutput-uf7OFaDU.js";import{c as uT,n as Fv,p as cT,r as Ea,t as mT}from"./once-DRC4SgqY.js";import"./cjs-CVt8hZ5L.js";import"./main-Cmx6WhDY.js";import"./useNonce-BY4jV7Yb.js";import{n as pT}from"./requests-DZy_SQ_v.js";import{t as Ft}from"./createLucideIcon-BvP5LBIs.js";import{A as hT,C as zv,D as fT,O as gT,S as xT,_ as vT,a as Vv,b as yT,c as Ov,d as xi,f as $v,g as bT,h as wT,i as sc,k as DT,l as jT,m as Bv,n as CT,p as kT,r as _a,s as ST,t as NT,u as ha,v as ET,y as _T}from"./spec-CcvA_Vlj.js";import{F as RT,I as TT,N as AT,P as IT,R as PT,S as MT,h as FT,j as zT,n as VT,x as OT}from"./add-cell-with-ai-DJ9tuL4g.js";import{t as $T,__tla as BT}from"./LazyAnyLanguageCodeMirror-DIzh1FyL.js";import{t as LT}from"./bot-message-square-BzawfL5p.js";import{a as HT,i as WT,n as UT,o as KT,t as Lv}from"./useBoolean-Den0ZqeZ.js";import{r as ZT,t as on}from"./x-yqLqiq5Q.js";import{h as vl,i as qT,l as YT}from"./download-CmObLKP6.js";import{t as yl}from"./chevron-right-_z3dkNFy.js";import{i as GT,o as QT}from"./maps-8VTEe-0T.js";import"./markdown-renderer-YOedNAkc.js";import{u as JT}from"./toDate-DDAiY7kz.js";import{P as Hv,a as dc,c as XT,i as e6,o as t6,p as Wv,r as Uv,t as Kv}from"./dropdown-menu-D9u7_h0R.js";import{t as a6}from"./code-xml-BMv1Dtd2.js";import{t as r6}from"./copy-CAR4dOiD.js";import{t as n6}from"./download-BG-iMGgV.js";import{i as i6}from"./file-video-camera-Fa5c_iPb.js";import{r as o6,t as l6}from"./types-DYD6UxTH.js";import{t as s6}from"./globe-B68kre4p.js";import{n as d6,t as u6}from"./square-DZpWT_hp.js";import{n as bl,t as vi}from"./spinner-Dt4SmUsI.js";import{i as c6,r as Zv,t as uc}from"./readonly-python-code-XphqxCq8.js";import{n as m6,t as wl}from"./types-CswNghXe.js";import{t as qv}from"./plus-C9B_qWUi.js";import{t as p6}from"./refresh-cw-fLeDriQe.js";import{$ as Yv,A as cc,C as h6,D as f6,E as mc,G as g6,H as x6,J as ln,K as Dl,L as pc,M as jl,N as Gv,O as Qv,P as Cl,Q as Ra,R as v6,T as kl,U as y6,W as Ga,X as Qa,Y as Ja,Z as Jv,_ as Sl,at as sn,b as b6,c as w6,ct as gt,d as Xv,et as ey,g as dn,h as yi,i as D6,it as j6,k as hc,l as C6,lt as k6,m as Nl,n as S6,nt as fc,o as gc,ot as N6,p as ty,q as ay,r as xc,rt as xr,s as E6,st as El,t as vc,tt as _l,u as Rl,v as yc,w as _6}from"./input-B49Srsl9.js";import{t as R6}from"./settings-DRfuuLRT.js";import{t as Tl}from"./square-function-DEp1ozoA.js";import{_ as it,a as xt,c as ct,d as vr,f as T6,g as ry,h as A6,i as I6,l as ft,n as P6,o as bi,p as ny,r as M6,t as F6,u as wt,v as fa}from"./textarea-noyX_YEw.js";import{a as z6,i as V6,r as O6,t as $6}from"./column-preview-BtKDi4j6.js";import{t as iy}from"./trash-2-CrA4LwJ2.js";import{r as Al}from"./azure-B7oWrJc_.js";import{i as oy,r as B6,t as L6}from"./es-DwwU_CO-.js";import{t as Rt}from"./preload-helper-BW0IMuFq.js";import"./dist-BOEbbZQx.js";import"./dist-DotE4D06.js";import"./dist-WaT7BL5t.js";import"./dist-BoFVJhwF.js";import"./dist-C4QdWMCE.js";import{n as H6,t as ta}from"./use-toast-Hc8CXlvz.js";import{n as ly,t as W6}from"./paths-D2lG83Oh.js";import{l as U6,r as K6,s as Z6}from"./session-Deuv0Lgh.js";import{r as un}from"./useTheme-CAolwY4Q.js";import{C as Il,E as bc,S as Pl,_ as Ge,d as q6,f as sy,g as aa,h as Y6,l as G6,m as Q6,p as J6,u as X6,v as wc,w as Re,x as wi}from"./Combination-BioTNpLP.js";import{a as eA,c as Xa,d as tA,f as aA,i as Kt,l as Dc,m as dy,n as er,o as Ml,p as uy,r as cn,s as yr,t as tr}from"./select-BRK_BOoG.js";import{l as rA,r as cy,t as nA}from"./dist-DsQvo-tW.js";import{a as jc,i as zt,n as Cc,o as kc,r as Sc,s as my,t as Zt}from"./tooltip-oM-h2ZN1.js";import{d as Fl,u as py}from"./menu-items-BpKTKw9I.js";import"./purify.es-DTgMcyNc.js";import"./dates-_ZWMvHpG.js";import{a as iA,c as oA,i as lA,l as sA,n as dA,s as uA,t as cA}from"./alert-dialog-DEeW2awP.js";import{C as mA,D as pA,E as hy,F as fy,I as gy,L as mn,N as hA,O as ot,R as xy,n as fA,s as zl,t as vy,x as gA,z as Ta}from"./usePress-DcdVsIfA.js";import{t as xA}from"./SSRProvider-CwqN9FWV.js";import{n as ra,r as vA,t as ga}from"./useDateFormatter-DfEfyPT1.js";import{n as yA,t as at}from"./context-CRApIvpB.js";import{t as bA}from"./useNumberFormatter-DQd-h5xR.js";import{a as wA,c as xa,i as DA,l as Di,r as yy,s as ji,t as by,u as va}from"./popover-C7N9RyXk.js";import{i as pn,r as jA}from"./numbers-CPeFd6mm.js";import{n as CA,t as wy}from"./useDebounce-S9zaMzrr.js";import{t as kA}from"./ImperativeModal-MjC9Owmv.js";import"./share-BpyH3qLa.js";import{n as Dy,r as jy,t as SA}from"./errors-0IrrdfSG.js";import"./vega-loader.browser-BJ9oKrvH.js";import"./defaultLocale-CuYNS33t.js";import"./defaultLocale-CGfP-Ye3.js";import{t as Vl}from"./copy-icon-HFU_6E8O.js";import{t as Oe}from"./RenderHTML-CjCJ1DT4.js";import{a as Cy,c as NA,i as ky,l as EA,n as Nc,o as _A,r as Sy,s as RA}from"./multi-map-BHEewz4D.js";import{n as TA,r as Ec,t as Ol}from"./alert-Bs8tbZo_.js";import{n as hn,t as br}from"./error-banner-DsP3CCH3.js";import{n as Vt}from"./useAsyncData-CI3ntihq.js";import{a as AA,c as IA,o as PA,r as MA,s as FA,t as zA}from"./command-2Li9iWG_.js";import{__tla as VA}from"./chunk-5FQGJX7Z-CKJM3d7z.js";import"./katex-FSdXOW5Y.js";import"./html-to-image-CojwvW9z.js";import{a as OA,o as $A}from"./focus-DiPb_hn6.js";import{a as Ny,i as _c,n as Rc,o as fn,r as wr,t as Tc}from"./table-FXVKPW36.js";import{t as Ey}from"./renderShortcut-_nl5_jRy.js";import{t as Ci}from"./label-OL3StKg2.js";import{t as BA}from"./chat-display-DN0dzai8.js";import"./esm-Dm5bJp7V.js";import{n as LA}from"./icons-B9sHgc9n.js";import{t as HA}from"./bundle.esm-_LzfhNmX.js";import{a as _y,c as WA,d as Ry,f as $l,i as UA,l as KA,n as Ty,o as ZA,p as Aa,r as qA,s as Ay,t as YA,u as se}from"./form-ibH0eKd-.js";import{a as GA,i as QA,n as JA,o as XA,t as Iy}from"./components-Bl0CtJtz.js";import"./react-resizable-panels.browser.esm-DDRqG5ui.js";import{t as Dr}from"./useDeepCompareMemoize-yyiB9aJX.js";import{a as eI,i as Py,n as My,t as Fy}from"./field-Cgpys-pp.js";import{i as tI,n as aI,r as rI}from"./floating-outline-BPv4P2vV.js";Promise.all([(()=>{try{return z_}catch{}})(),(()=>{try{return mR}catch{}})(),(()=>{try{return dT}catch{}})(),(()=>{try{return BT}catch{}})(),(()=>{try{return VA}catch{}})()]).then(async()=>{var ht,ni,ke,Ye,Zr,qr,Yr,ii,oi,Fc,Gr,Nt,li,gr,Qr,si,Jr,di,Jo,Xo,el,tl,al,rl,X1;(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 Ae=Ft("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"}]]),Pe=Ft("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"}]]),Qe=Ft("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"}]]),jr=Ft("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"}]]),Ll=Ft("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"}]]),Vy=Ft("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"}]]),Oy=Ft("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"}]]),$y=Ft("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"}]]),By=Ft("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"}]]),Ly=Ft("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"}]]),zc=Ft("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"}]]),Hy=Ft("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"}]]),Vc=Ft("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"}]]),Wy=Na(rv(),1);const Ia={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function Uy(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 o=[],l=r,d=n;for(;l>0||d>0;)l>0&&d>0&&a(t[l-1],e[d-1])?(o.unshift({type:Ia.MATCH,position:l-1}),l--,d--):l>0&&d>0&&i[l][d]===i[l-1][d-1]+1?(o.unshift({type:Ia.SUBSTITUTE,position:l-1}),l--,d--):l>0&&i[l][d]===i[l-1][d]+1?(o.unshift({type:Ia.DELETE,position:l-1}),l--):d>0&&i[l][d]===i[l][d-1]+1&&(o.unshift({type:Ia.INSERT,position:l}),d--);return{distance:i[r][n],operations:o}}function Ky(t,e,a){let r=[],n=0;for(let i of e)switch(i.type){case Ia.MATCH:r.push(t[n]),n++;break;case Ia.DELETE:n++;break;case Ia.INSERT:r.push(a);break;case Ia.SUBSTITUTE:r.push(a),n++;break}return r}function Zy(t,e,a,r){let n=Uy(t,e,a);return{merged:Ky(t,n.operations,r),edits:n}}var ki=0,Si="";function Hl(t){return t.id?t.id:t.name==="setup"?F_:Yu.create()}function qy(t,e){let a=new Map,r=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:a,notebookCellData:r};if(!t){let l=(e==null?void 0:e.cells.map(d=>Hl(d)))||[];return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,null])),notebookCellData:new Map(l.map((d,u)=>[d,(e==null?void 0:e.cells[u])||Oc()]))}}if(!e){let l=t.cells.map(d=>Hl(d));return{cellIds:l,sessionCellData:new Map(l.map((d,u)=>[d,t.cells[u]])),notebookCellData:new Map(l.map(d=>[d,Oc()]))}}let{merged:n,edits:i}=Zy(t.cells,e.cells,(l,d)=>{let u=l.code_hash;return u?d.code_hash===u:!1},$c());i.distance>0&&de.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let l=0;l<e.cells.length;l++){let d=e.cells[l];if(d){let u=Hl(d);o.push(u);let c=n[l]||$c();c.id=u,a.set(u,c),r.set(u,d)}else de.warn("Merged notebook cell is null at index",l)}return{cellIds:o,sessionCellData:a,notebookCellData:r}}function Oc(){return{id:Yu.create(),name:Si,code:Si,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function $c(){return{id:Yu.create(),code_hash:null,console:[],outputs:[]}}function Yy(t,e){var a,r,n;return{id:t,name:e.name??Si,code:e.code??Si,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 Gy(t){let e=v_();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:ki};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:ki}}}let n=t.console||[];return{...e,outline:e.output?k_(e.output):null,consoleOutputs:n.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:ki}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:ki})}}function Qy(t,e){let{cellIds:a,sessionCellData:r,notebookCellData:n}=qy(t,e);if(a.length===0)return null;let i={},o={};for(let l of a){let d=r.get(l),u=n.get(l);u&&(i[l]=Yy(l,u)),o[l]=Gy(d)}return{cellIds:f_.from([a]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var Jy=ee(),Bc=Object.freeze({left:0,top:0,width:16,height:16}),Ni=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),gn=Object.freeze({...Bc,...Ni}),Wl=Object.freeze({...gn,body:"",hidden:!1}),Xy=Object.freeze({width:null,height:null}),Lc=Object.freeze({...Xy,...Ni});function eb(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 tb=/[\s,]+/;function ab(t,e){e.split(tb).forEach(a=>{switch(a.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var Hc={...Lc,preserveAspectRatio:""};function Wc(t){let e={...Hc},a=(r,n)=>t.getAttribute(r)||n;return e.width=a("width",null),e.height=a("height",null),e.rotate=eb(a("rotate","")),ab(e,a("flip","")),e.preserveAspectRatio=a("preserveAspectRatio",a("preserveaspectratio","")),e}function rb(t,e){for(let a in Hc)if(t[a]!==e[a])return!0;return!1}var Uc=/^[a-z0-9]+(-[a-z0-9]+)*$/,xn=(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 l=n.pop(),d=n.pop(),u={provider:n.length>0?n[0]:r,prefix:d,name:l};return e&&!Ei(u)?null:u}let i=n[0],o=i.split("-");if(o.length>1){let l={provider:r,prefix:o.shift(),name:o.join("-")};return e&&!Ei(l)?null:l}if(a&&r===""){let l={provider:r,prefix:"",name:i};return e&&!Ei(l,a)?null:l}return null},Ei=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function nb(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 Kc(t,e){let a=nb(t,e);for(let r in Wl)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 ib(t,e){let a=t.icons,r=t.aliases||Object.create(null),n=Object.create(null);function i(o){if(a[o])return n[o]=[];if(!(o in n)){n[o]=null;let l=r[o]&&r[o].parent,d=l&&i(l);d&&(n[o]=[l].concat(d))}return n[o]}return Object.keys(a).concat(Object.keys(r)).forEach(i),n}function ob(t,e,a){let r=t.icons,n=t.aliases||Object.create(null),i={};function o(l){i=Kc(r[l]||n[l],i)}return o(e),a.forEach(o),Kc(t,i)}function Zc(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=ib(t);for(let n in r){let i=r[n];i&&(e(n,ob(t,n,i)),a.push(n))}return a}var lb={provider:"",aliases:{},not_found:{},...Bc};function Ul(t,e){for(let a in e)if(a in t&&typeof t[a]!=typeof e[a])return!1;return!0}function qc(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!Ul(t,lb))return null;let a=e.icons;for(let n in a){let i=a[n];if(!n||typeof i.body!="string"||!Ul(i,Wl))return null}let r=e.aliases||Object.create(null);for(let n in r){let i=r[n],o=i.parent;if(!n||typeof o!="string"||!a[o]&&!r[o]||!Ul(i,Wl))return null}return e}var _i=Object.create(null);function sb(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function ya(t,e){let a=_i[t]||(_i[t]=Object.create(null));return a[e]||(a[e]=sb(t,e))}function Yc(t,e){return qc(e)?Zc(e,(a,r)=>{r?t.icons[a]=r:t.missing.add(a)}):[]}function db(t,e,a){try{if(typeof a.body=="string")return t.icons[e]={...a},!0}catch{}return!1}function ub(t,e){let a=[];return(typeof t=="string"?[t]:Object.keys(_i)).forEach(r=>{(typeof r=="string"&&typeof e=="string"?[e]:Object.keys(_i[r]||{})).forEach(n=>{let i=ya(r,n);a=a.concat(Object.keys(i.icons).map(o=>(r===""?"":"@"+r+":")+n+":"+o))})}),a}var vn=!1;function Gc(t){return typeof t=="boolean"&&(vn=t),vn}function yn(t){let e=typeof t=="string"?xn(t,!0,vn):t;if(e){let a=ya(e.provider,e.prefix),r=e.name;return a.icons[r]||(a.missing.has(r)?null:void 0)}}function Qc(t,e){let a=xn(t,!0,vn);if(!a)return!1;let r=ya(a.provider,a.prefix);return e?db(r,a.name,e):(r.missing.add(a.name),!0)}function Jc(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),vn&&!e&&!t.prefix){let r=!1;return qc(t)&&(t.prefix="",Zc(t,(n,i)=>{Qc(n,i)&&(r=!0)})),r}let a=t.prefix;return Ei({provider:e,prefix:a,name:"a"})?!!Yc(ya(e,a),t):!1}function Xc(t){return!!yn(t)}function cb(t){let e=yn(t);return e&&{...gn,...e}}function mb(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,o=n.prefix,l=n.name,d=a[i]||(a[i]=Object.create(null)),u=d[o]||(d[o]=ya(i,o)),c;c=l in u.icons?e.loaded:o===""||u.missing.has(l)?e.missing:e.pending;let m={provider:i,prefix:o,name:l};c.push(m)}),e}function em(t,e){t.forEach(a=>{let r=a.loaderCallbacks;r&&(a.loaderCallbacks=r.filter(n=>n.id!==e))})}function pb(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 o=i.icons,l=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==n)return!0;let u=d.name;if(t.icons[u])o.loaded.push({provider:r,prefix:n,name:u});else if(t.missing.has(u))o.missing.push({provider:r,prefix:n,name:u});else return a=!0,!0;return!1}),o.pending.length!==l&&(a||em([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var hb=0;function fb(t,e,a){let r=hb++,n=em.bind(null,a,r);if(!e.pending.length)return n;let i={id:r,icons:e,callback:t,abort:n};return a.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),n}var Kl=Object.create(null);function tm(t,e){Kl[t]=e}function Zl(t){return Kl[t]||Kl[""]}function gb(t,e=!0,a=!1){let r=[];return t.forEach(n=>{let i=typeof n=="string"?xn(n,e,a):n;i&&r.push(i)}),r}var xb={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function vb(t,e,a,r){let n=t.resources.length,i=t.random?Math.floor(Math.random()*n):t.index,o;if(t.random){let S=t.resources.slice(0);for(o=[];S.length>1;){let N=Math.floor(Math.random()*S.length);o.push(S[N]),S=S.slice(0,N).concat(S.slice(N+1))}o=o.concat(S)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let l=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(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function v(S,N){N&&(h=[]),typeof S=="function"&&h.push(S)}function w(){return{startTime:l,payload:e,status:d,queriesSent:u,queriesPending:p.length,subscribe:v,abort:f}}function b(){d="failed",h.forEach(S=>{S(void 0,c)})}function D(){p.forEach(S=>{S.status==="pending"&&(S.status="aborted")}),p=[]}function j(S,N,y){let C=N!=="success";switch(p=p.filter(_=>_!==S),d){case"pending":break;case"failed":if(C||!t.dataAfterTimeout)return;break;default:return}if(N==="abort"){c=y,b();return}if(C){c=y,p.length||(o.length?k():b());return}if(g(),D(),!t.random){let _=t.resources.indexOf(S.resource);_!==-1&&_!==t.index&&(t.index=_)}d="completed",h.forEach(_=>{_(y)})}function k(){if(d!=="pending")return;g();let S=o.shift();if(S===void 0){if(p.length){m=setTimeout(()=>{g(),d==="pending"&&(D(),b())},t.timeout);return}b();return}let N={status:"pending",resource:S,callback:(y,C)=>{j(N,y,C)}};p.push(N),u++,m=setTimeout(k,t.rotate),a(S,e,N.callback)}return setTimeout(k),w}function am(t){let e={...xb,...t},a=[];function r(){a=a.filter(o=>o().status==="pending")}function n(o,l,d){let u=vb(e,o,l,(c,m)=>{r(),d&&d(c,m)});return a.push(u),u}function i(o){return a.find(l=>o(l))||null}return{query:n,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:r}}function ql(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 Ri=Object.create(null),Ti=["https://api.simplesvg.com","https://api.unisvg.com"],Yl=[];Ti.length>0;)Ti.length===1||Math.random()>.5?Yl.push(Ti.shift()):Yl.push(Ti.pop());Ri[""]=ql({resources:["https://api.iconify.design"].concat(Yl)});function rm(t,e){let a=ql(e);return a===null?!1:(Ri[t]=a,!0)}function Ai(t){return Ri[t]}function yb(){return Object.keys(Ri)}function nm(){}var Gl=Object.create(null);function bb(t){if(!Gl[t]){let e=Ai(t);if(!e)return;Gl[t]={config:e,redundancy:am(e)}}return Gl[t]}function im(t,e,a){let r,n;if(typeof t=="string"){let i=Zl(t);if(!i)return a(void 0,424),nm;n=i.send;let o=bb(t);o&&(r=o.redundancy)}else{let i=ql(t);if(i){r=am(i);let o=Zl(t.resources?t.resources[0]:"");o&&(n=o.send)}}return!r||!n?(a(void 0,424),nm):r.query(e,n,a)().abort}function om(){}function wb(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,pb(t)}))}function Db(t){let e=[],a=[];return t.forEach(r=>{(r.match(Uc)?e:a).push(r)}),{valid:e,invalid:a}}function bn(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(!Yc(t,a).length){r();return}}catch(n){console.error(n)}r(),wb(t)}function lm(t,e){t instanceof Promise?t.then(a=>{e(a)}).catch(()=>{e(null)}):e(t)}function jb(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)){lm(t.loadIcons(n,r,a),u=>{bn(t,n,u)});return}if(i){n.forEach(u=>{lm(i(u,r,a),c=>{bn(t,[u],c?{prefix:r,icons:{[u]:c}}:null)})});return}let{valid:o,invalid:l}=Db(n);if(l.length&&bn(t,l,null),!o.length)return;let d=r.match(Uc)?Zl(a):null;if(!d){bn(t,o,null);return}d.prepare(a,r,o).forEach(u=>{im(a,u,c=>{bn(t,u.icons,c)})})}))}var Ql=(t,e)=>{let a=mb(gb(t,!0,Gc()));if(!a.pending.length){let l=!0;return e&&setTimeout(()=>{l&&e(a.loaded,a.missing,a.pending,om)}),()=>{l=!1}}let r=Object.create(null),n=[],i,o;return a.pending.forEach(l=>{let{provider:d,prefix:u}=l;if(u===o&&d===i)return;i=d,o=u,n.push(ya(d,u));let c=r[d]||(r[d]=Object.create(null));c[u]||(c[u]=[])}),a.pending.forEach(l=>{let{provider:d,prefix:u,name:c}=l,m=ya(d,u),p=m.pendingIcons||(m.pendingIcons=new Set);p.has(c)||(p.add(c),r[d][u].push(c))}),n.forEach(l=>{let d=r[l.provider][l.prefix];d.length&&jb(l,d)}),e?fb(e,a,n):om},Cb=t=>new Promise((e,a)=>{let r=typeof t=="string"?xn(t,!0):t;if(!r){a(t);return}Ql([r||t],n=>{if(n.length&&r){let i=yn(r);if(i){e({...gn,...i});return}}a(t)})});function sm(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function kb(t,e){if(typeof t=="object")return{data:sm(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let n=sm(t);if(n)return{data:n,value:t}}let a=xn(t,!0,!0);if(!a)return{value:t};let r=yn(a);return r!==void 0||!a.prefix?{value:t,name:a,data:r}:{value:t,name:a,loading:Ql([a],()=>e(t,a,yn(a)))}}var dm=!1;try{dm=navigator.vendor.indexOf("Apple")===0}catch{}function Sb(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(dm||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var Nb=/(-?[0-9.]*[0-9]+[0-9.]*)/g,Eb=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function Jl(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(Nb);if(r===null||!r.length)return t;let n=[],i=r.shift(),o=Eb.test(i);for(;;){if(o){let l=parseFloat(i);isNaN(l)?n.push(i):n.push(Math.ceil(l*e*a)/a)}else n.push(i);if(i=r.shift(),i===void 0)return n.join("");o=!o}}function _b(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 o=t.indexOf(">",i);if(o===-1)break;a+=t.slice(n+1,i).trim(),t=t.slice(0,r).trim()+t.slice(o+1)}return{defs:a,content:t}}function Rb(t,e){return t?"<defs>"+t+"</defs>"+e:e}function Tb(t,e,a){let r=_b(t);return Rb(r.defs,e+r.content+a)}var Ab=t=>t==="unset"||t==="undefined"||t==="none";function um(t,e){let a={...gn,...t},r={...Lc,...e},n={left:a.left,top:a.top,width:a.width,height:a.height},i=a.body;[a,r].forEach(f=>{let v=[],w=f.hFlip,b=f.vFlip,D=f.rotate;w?b?D+=2:(v.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),v.push("scale(-1 1)"),n.top=n.left=0):b&&(v.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),v.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,v.unshift("rotate(90 "+j.toString()+" "+j.toString()+")");break;case 2:v.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:j=n.width/2+n.left,v.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)),v.length&&(i=Tb(i,'<g transform="'+v.join(" ")+'">',"</g>"))});let o=r.width,l=r.height,d=n.width,u=n.height,c,m;o===null?(m=l===null?"1em":l==="auto"?u:l,c=Jl(m,d/u)):(c=o==="auto"?d:o,m=l===null?Jl(c,u/d):l==="auto"?u:l);let p={},h=(f,v)=>{Ab(v)||(p[f]=v.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 Xl(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 Ib(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Pb(t){return"data:image/svg+xml,"+Ib(t)}function cm(t){return'url("'+Pb(t)+'")'}var Ii=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Mb(t){Ii=t}function Fb(){return Ii}function zb(t,e){let a=Ai(t);if(!a)return 0;let r;if(!a.maxURL)r=0;else{let n=0;a.resources.forEach(o=>{n=Math.max(n,o.length)});let i=e+".json?icons=";r=a.maxURL-n-a.path.length-i.length}return r}function Vb(t){return t===404}var Ob=(t,e,a)=>{let r=[],n=zb(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},l=0;return a.forEach((d,u)=>{l+=d.length+1,l>=n&&u>0&&(r.push(o),o={type:i,provider:t,prefix:e,icons:[]},l=d.length),o.icons.push(d)}),r.push(o),r};function $b(t){if(typeof t=="string"){let e=Ai(t);if(e)return e.path}return"/"}var Bb={prepare:Ob,send:(t,e,a)=>{if(!Ii){a("abort",424);return}let r=$b(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),l=new URLSearchParams({icons:o});r+=i+".json?"+l.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;Ii(t+r).then(i=>{let o=i.status;if(o!==200){setTimeout(()=>{a(Vb(o)?"abort":"next",o)});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 Lb(t,e,a){ya(a||"",e).loadIcons=t}function Hb(t,e,a){ya(a||"",e).loadIcon=t}var es="data-style",mm="";function Wb(t){mm=t}function pm(t,e){let a=Array.from(t.childNodes).find(r=>r.hasAttribute&&r.hasAttribute(es));a||(a=document.createElement("style"),a.setAttribute(es,es),t.appendChild(a)),a.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+mm}function hm(){tm("",Bb),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"||!Jc(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;rm(a,n)||console.error(r)}catch{console.error(r)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:Xc,iconExists:Xc,getIcon:cb,listIcons:ub,addIcon:Qc,addCollection:Jc,calculateSize:Jl,buildIcon:um,iconToHTML:Xl,svgToURL:cm,loadIcons:Ql,loadIcon:Cb,addAPIProvider:rm,setCustomIconLoader:Hb,setCustomIconsLoader:Lb,appendCustomStyle:Wb,_api:{getAPIConfig:Ai,setAPIModule:tm,sendAPIQuery:im,setFetch:Mb,getFetch:Fb,listAPIProviders:yb}}}var ts={"background-color":"currentColor"},fm={"background-color":"transparent"},gm={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},xm={"-webkit-mask":ts,mask:ts,background:fm};for(let t in xm){let e=xm[t];for(let a in gm)e[t+"-"+a]=gm[a]}function vm(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Ub(t,e,a){let r=document.createElement("span"),n=t.body;n.indexOf("<a")!==-1&&(n+="<!-- "+Date.now()+" -->");let i=t.attributes,o=cm(Xl(n,{...i,width:e.width+"",height:e.height+""})),l=r.style,d={"--svg":o,width:vm(i.width),height:vm(i.height),...a?ts:fm};for(let u in d)l.setProperty(u,d[u]);return r}var wn;function Kb(){try{wn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{wn=null}}function Zb(t){return wn===void 0&&Kb(),wn?wn.createHTML(t):t}function qb(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=Zb(Xl(t.body,a)),e.firstChild}function as(t){return Array.from(t.childNodes).find(e=>{let a=e.tagName&&e.tagName.toUpperCase();return a==="SPAN"||a==="SVG"})}function ym(t,e){let a=e.icon.data,r=e.customisations,n=um(a,r);r.preserveAspectRatio&&(n.attributes.preserveAspectRatio=r.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=qb(n):o=Ub(n,{...gn,...a},i==="mask");let l=as(t);l?o.tagName==="SPAN"&&l.tagName===o.tagName?l.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,l):t.appendChild(o)}function bm(t,e,a){return{rendered:!1,inline:e,icon:t,lastRender:a&&(a.rendered?a:a.lastRender)}}function Yb(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();Z(this,"_shadowRoot");Z(this,"_initialised",!1);Z(this,"_state");Z(this,"_checkQueued",!1);Z(this,"_connected",!1);Z(this,"_observer",null);Z(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),u=this.hasAttribute("inline");pm(d,u),this._state=bm({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,pm(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{}ym(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=Wc(this);(d.attrMode!==c||rb(d.customisations,m)||!as(this._shadowRoot))&&this._renderIcon(d.icon,m,c)}_iconChanged(d){let u=kb(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=bm(u,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=as(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,Wc(this),this.getAttribute("mode"))}_renderIcon(d,u,c){let m=Sb(d.data.body,c),p=this._state.inline;ym(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(l=>{l in i.prototype||Object.defineProperty(i.prototype,l,{get:function(){return this.getAttribute(l)},set:function(d){d===null?this.removeAttribute(l):this.setAttribute(l,d)}})});let o=hm();for(let l in o)i[l]=i.prototype[l]=o[l];return e.define(t,i),i}var{enableCache:nI,disableCache:iI,iconLoaded:oI,iconExists:lI,getIcon:sI,listIcons:dI,addIcon:uI,addCollection:cI,calculateSize:mI,buildIcon:pI,iconToHTML:hI,svgToURL:fI,loadIcons:gI,loadIcon:xI,setCustomIconLoader:vI,setCustomIconsLoader:yI,addAPIProvider:bI,_api:wI}=Yb()||hm(),x=Na(h_(),1),s=Na(OR(),1);const Gb=()=>((0,Jy.c)(1),null);var wm=ee();const Dm=(0,x.memo)(t=>{let e=(0,wm.c)(3),{children:a}=t,{theme:r}=un(),n,i;return e[0]===r?(n=e[1],i=e[2]):(n=()=>(document.body.classList.add(r,`${r}-theme`),document.body.dataset.theme=r,()=>{document.body.classList.remove(r,`${r}-theme`),delete document.body.dataset.theme}),i=[r],e[0]=r,e[1]=n,e[2]=i),(0,x.useLayoutEffect)(n,i),a});Dm.displayName="ThemeProvider";const Qb=t=>{let e=(0,wm.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},Pi=t=>{let e=null,a=async()=>(e||(e=t()),e);return{preload:a,Component:x.lazy(()=>a())}};var Jb=ee();const Xb=()=>{let t=(0,Jb.c)(25),[e,a]=ci(eR);if(e===null)return null;let r;t[0]===e?r=t[1]:(r=async()=>{try{await navigator.clipboard.writeText(e),ta({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{ta({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 o=i,l=ew,d;t[4]===o?d=t[5]:(d=D=>!D&&o(),t[4]=o,t[5]=d);let u;t[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsxs)(oA,{children:[(0,s.jsxs)(sA,{className:"flex items-center gap-2 text-destructive",children:[(0,s.jsx)(D_,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,s.jsx)(iA,{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)(r6,{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)(Se,{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)(Se,{variant:"outline",onClick:l,className:"flex items-center gap-2",children:[(0,s.jsx)(d6,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=f):f=t[16];let v;t[17]===o?v=t[18]:(v=(0,s.jsxs)(uA,{children:[f,(0,s.jsx)(dA,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=v);let w;t[19]!==v||t[20]!==g?(w=(0,s.jsxs)(lA,{className:"max-w-2xl",children:[u,g,v]}),t[19]=v,t[20]=g,t[21]=w):w=t[21];let b;return t[22]!==w||t[23]!==d?(b=(0,s.jsx)(cA,{open:!0,onOpenChange:d,children:w}),t[22]=w,t[23]=d,t[24]=b):b=t[24],b};function ew(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}function tw(){return window.ResizeObserver!==void 0}function Mi(t){let{ref:e,box:a,onResize:r}=t;(0,x.useEffect)(()=>{let n=e==null?void 0:e.current;if(n)if(tw()){let i=new window.ResizeObserver(o=>{o.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 aw=pi();function rw(t,e=!0){let[a,r]=(0,x.useState)(!0),n=a&&e;return Ta(()=>{if(n&&t.current&&"getAnimations"in t.current)for(let i of t.current.getAnimations())i instanceof CSSTransition&&i.cancel()},[t,n]),jm(t,n,(0,x.useCallback)(()=>r(!1),[])),n}function nw(t,e){let[a,r]=(0,x.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 jm(t,n,(0,x.useCallback)(()=>{r(i=>i==="exiting"?"closed":i)},[])),n}function jm(t,e,a){Ta(()=>{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,aw.flushSync)(()=>{a()})}).catch(()=>{}),()=>{n=!0}}},[t,e,a])}var na={top:"top",bottom:"top",left:"left",right:"left"},Fi={top:"bottom",bottom:"top",left:"right",right:"left"},iw={top:"left",left:"top"},rs={top:"height",left:"width"},Cm={width:"totalWidth",height:"totalHeight"},zi={},mt=typeof document<"u"?window.visualViewport:null;function km(t){let e=0,a=0,r=0,n=0,i=0,o=0,l={},d=((mt==null?void 0:mt.scale)??1)>1;if(t.tagName==="BODY"){let u=document.documentElement;r=u.clientWidth,n=u.clientHeight,e=(mt==null?void 0:mt.width)??r,a=(mt==null?void 0:mt.height)??n,l.top=u.scrollTop||t.scrollTop,l.left=u.scrollLeft||t.scrollLeft,mt&&(i=mt.offsetTop,o=mt.offsetLeft)}else({width:e,height:a,top:i,left:o}=Cr(t,!1)),l.top=t.scrollTop,l.left=t.scrollLeft,r=e,n=a;return gA()&&(t.tagName==="BODY"||t.tagName==="HTML")&&d&&(l.top=0,l.left=0,i=(mt==null?void 0:mt.pageTop)??0,o=(mt==null?void 0:mt.pageLeft)??0),{width:e,height:a,totalWidth:r,totalHeight:n,scroll:l,top:i,left:o}}function ow(t){return{top:t.scrollTop,left:t.scrollLeft,width:t.scrollWidth,height:t.scrollHeight}}function Sm(t,e,a,r,n,i,o){let l=n.scroll[t]??0,d=r[rs[t]],u=r.scroll[na[t]]+i,c=d+r.scroll[na[t]]-i,m=e-l+o[t]-r[na[t]],p=e-l+a+o[t]-r[na[t]];return m<u?u-m:p>c?Math.max(c-p,u-m):0}function lw(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 Nm(t){if(zi[t])return zi[t];let[e,a]=t.split(" "),r=na[e]||"right",n=iw[r];na[a]||(a="center");let i=rs[r],o=rs[n];return zi[t]={placement:e,crossPlacement:a,axis:r,crossAxis:n,size:i,crossSize:o},zi[t]}function ns(t,e,a,r,n,i,o,l,d,u){let{placement:c,crossPlacement:m,axis:p,crossAxis:h,size:g,crossSize:f}=r,v={};v[h]=t[h]??0,m==="center"?v[h]+=((t[f]??0)-(a[f]??0))/2:m!==h&&(v[h]+=(t[f]??0)-(a[f]??0)),v[h]+=i;let w=t[h]-a[f]+d+u,b=t[h]+t[f]-d-u;if(v[h]=fc(v[h],w,b),c===p){let D=l?o[g]:e[Cm[g]];v[Fi[p]]=Math.floor(D-t[p]+n)}else v[p]=Math.floor(t[p]+t[g]+n);return v}function sw(t,e,a,r,n,i,o,l){let d=r?a.height:e[Cm.height],u=t.top==null?a.top+(d-(t.bottom??0)-o):a.top+t.top,c=l==="top"?Math.max(0,u+o-(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 Em(t,e,a,r,n,i){let{placement:o,axis:l,size:d}=i;return o===l?Math.max(0,a[l]-t[l]-(t.scroll[l]??0)+e[l]-(r[l]??0)-r[Fi[l]]-n):Math.max(0,t[d]+t[l]+t.scroll[l]-e[l]-a[l]-a[d]-(r[l]??0)-r[Fi[l]]-n)}function dw(t,e,a,r,n,i,o,l,d,u,c,m,p,h,g,f){let v=Nm(t),{size:w,crossAxis:b,crossSize:D,placement:j,crossPlacement:k}=v,S=ns(e,l,a,v,c,m,u,p,g,f),N=c,y=Em(l,u,e,n,i+c,v);if(o&&r[w]>y){let V=Nm(`${Fi[j]} ${k}`),$=ns(e,l,a,V,c,m,u,p,g,f);Em(l,u,e,n,i+c,V)>y&&(v=V,S=$,N=c)}let C="bottom";v.axis==="top"?v.placement==="top"?C="top":v.placement==="bottom"&&(C="bottom"):v.crossAxis==="top"&&(v.crossPlacement==="top"?C="bottom":v.crossPlacement==="bottom"&&(C="top"));let _=Sm(b,S[b],a[D],l,d,i,u);S[b]+=_;let E=sw(S,l,u,p,n,i,a.height,C);h&&h<E&&(E=h),a.height=Math.min(a.height,E),S=ns(e,l,a,v,N,m,u,p,g,f),_=Sm(b,S[b],a[D],l,d,i,u),S[b]+=_;let A={},F=e[b]-S[b]-n[na[b]],T=F+.5*e[D],M=g/2+f,R=na[b]==="left"?(n.left??0)+(n.right??0):(n.top??0)+(n.bottom??0),P=a[D]-R-g/2-f;A[b]=fc(fc(T,e[b]+g/2-(S[b]+n[na[b]]),e[b]+e[D]-g/2-(S[b]+n[na[b]])),M,P),{placement:j,crossPlacement:k}=v,g?F=A[b]:k==="right"?F+=e[D]:k==="center"&&(F+=e[D]/2);let I=j==="left"||j==="top"?a[w]:0,O={x:j==="top"||j==="bottom"?F:I,y:j==="left"||j==="right"?F:I};return{position:S,maxHeight:E,arrowOffsetLeft:A.left,arrowOffsetTop:A.top,placement:j,triggerAnchorPoint:O}}function uw(t){let{placement:e,targetNode:a,overlayNode:r,scrollNode:n,padding:i,shouldFlip:o,boundaryElement:l,offset:d,crossOffset:u,maxHeight:c,arrowSize:m=0,arrowBoundaryOffset:p=0}=t,h=r instanceof HTMLElement?cw(r):document.documentElement,g=h===document.documentElement,f=window.getComputedStyle(h).position,v=!!f&&f!=="static",w=g?Cr(a,!1):_m(a,h,!1);if(!g){let{marginTop:y,marginLeft:C}=window.getComputedStyle(a);w.top+=parseInt(y,10)||0,w.left+=parseInt(C,10)||0}let b=Cr(r,!0),D=lw(r);b.width+=(D.left??0)+(D.right??0),b.height+=(D.top??0)+(D.bottom??0);let j=ow(n),k=km(l),S=km(h),N=l.tagName==="BODY"?Cr(h,!1):_m(h,l,!1);return h.tagName==="HTML"&&l.tagName==="BODY"&&(S.scroll.top=0,S.scroll.left=0),dw(e,w,b,j,D,i,o,k,S,N,d,u,v,c,m,p)}function is(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 Cr(t,e){let{top:a,left:r,width:n,height:i}=is(t,e),{scrollTop:o,scrollLeft:l,clientTop:d,clientLeft:u}=document.documentElement;return{top:a+o-d,left:r+l-u,width:n,height:i}}function _m(t,e,a){let r=window.getComputedStyle(t),n;if(r.position==="fixed")n=is(t,a);else{n=Cr(t,a);let i=Cr(e,a),o=window.getComputedStyle(e);i.top+=(parseInt(o.borderTopWidth,10)||0)-e.scrollTop,i.left+=(parseInt(o.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 cw(t){let e=t.offsetParent;if(e&&e===document.body&&window.getComputedStyle(e).position==="static"&&!Rm(e)&&(e=document.documentElement),e==null)for(e=t.parentElement;e&&!Rm(e);)e=e.parentElement;return e||document.documentElement}function Rm(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 mw=new WeakMap;function pw(t){let{triggerRef:e,isOpen:a,onClose:r}=t;(0,x.useEffect)(()=>{if(!a||r===null)return;let n=i=>{let o=i.target;if(!e.current||o instanceof Node&&!o.contains(e.current)||i.target instanceof HTMLInputElement||i.target instanceof HTMLTextAreaElement)return;let l=r||mw.get(e.current);l&&l()};return window.addEventListener("scroll",n,!0),()=>{window.removeEventListener("scroll",n,!0)}},[a,r,e])}function kr(t,e){return t-e*Math.floor(t/e)}var Tm=1721426;function ar(t,e,a,r){e=Dn(t,e);let n=e-1,i=-2;return a<=2?i=0:Pa(e)&&(i=-1),Tm-1+365*n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400)+Math.floor((367*a-362)/12+i+r)}function Pa(t){return t%4==0&&(t%100!=0||t%400==0)}function Dn(t,e){return t==="BC"?1-e:e}function Vi(t){let e="AD";return t<=0&&(e="BC",t=1-t),[e,t]}var hw={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]},kt=class{fromJulianDay(t){let e=t,a=e-Tm,r=Math.floor(a/146097),n=kr(a,146097),i=Math.floor(n/36524),o=kr(n,36524),l=Math.floor(o/1461),d=kr(o,1461),u=Math.floor(d/365),[c,m]=Vi(r*400+i*100+l*4+u+(i!==4&&u!==4?1:0)),p=e-ar(c,m,1,1),h=2;e<ar(c,m,3,1)?h=0:Pa(m)&&(h=1);let g=Math.floor(((p+h)*12+373)/367);return new pt(c,m,g,e-ar(c,m,g,1)+1)}toJulianDay(t){return ar(t.era,t.year,t.month,t.day)}getDaysInMonth(t){return hw[Pa(t.year)?"leapyear":"standard"][t.month-1]}getMonthsInYear(t){return 12}getDaysInYear(t){return Pa(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"}},fw={"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 Je(t,e){return e=$e(e,t.calendar),t.era===e.era&&t.year===e.year&&t.month===e.month&&t.day===e.day}function gw(t,e){return e=$e(e,t.calendar),t=rr(t),e=rr(e),t.era===e.era&&t.year===e.year&&t.month===e.month}function os(t,e){return Oi(t.calendar,e.calendar)&&Je(t,e)}function Oi(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 Am(t,e){return Je(t,$i(e))}var xw={sun:0,mon:1,tue:2,wed:3,thu:4,fri:5,sat:6};function ls(t,e,a){let r=t.calendar.toJulianDay(t),n=a?xw[a]:jw(e),i=Math.ceil(r+1-n)%7;return i<0&&(i+=7),i}function Im(t){return wa(Date.now(),t)}function $i(t){return Dt(Im(t))}function Pm(t,e){return t.calendar.toJulianDay(t)-e.calendar.toJulianDay(e)}function Mm(t,e){return Fm(t)-Fm(e)}function Fm(t){return t.hour*36e5+t.minute*6e4+t.second*1e3+t.millisecond}var zm=null;function Bi(){return zm??(zm=new Intl.DateTimeFormat().resolvedOptions().timeZone),zm}function rr(t){return t.subtract({days:t.day-1})}function Li(t){return t.add({days:t.calendar.getDaysInMonth(t)-t.day})}function vw(t){return rr(t.subtract({months:t.month-1}))}function yw(t){return t.calendar.getMinimumMonthInYear?t.calendar.getMinimumMonthInYear(t):1}function bw(t){return t.calendar.getMinimumDayInMonth?t.calendar.getMinimumDayInMonth(t):1}function jn(t,e,a){let r=ls(t,e,a);return t.subtract({days:r})}function ww(t,e,a){return jn(t,e,a).add({days:6})}var Vm=new Map,ss=new Map;function Dw(t){if(Intl.Locale){let a=Vm.get(t);return a||(a=new Intl.Locale(t).maximize().region,a&&Vm.set(t,a)),a}let e=t.split("-")[1];return e==="u"?void 0:e}function jw(t){let e=ss.get(t);if(!e){if(Intl.Locale){let r=new Intl.Locale(t);if("getWeekInfo"in r&&(e=r.getWeekInfo(),e))return ss.set(t,e),e.firstDay}let a=Dw(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&&fw[a]||0};ss.set(t,e)}return e.firstDay}function Cw(t,e,a){let r=t.calendar.getDaysInMonth(t);return Math.ceil((ls(rr(t),e,a)+r)/7)}function ds(t,e){return t&&e?t.compare(e)<=0?t:e:t||e}function us(t,e){return t&&e?t.compare(e)>=0?t:e:t||e}function Sr(t){return t=$e(t,new kt),Om(Dn(t.era,t.year),t.month,t.day,t.hour,t.minute,t.second,t.millisecond)}function Om(t,e,a,r,n,i,o){let l=new Date;return l.setUTCHours(r,n,i,o),l.setUTCFullYear(t,e-1,a),l.getTime()}function cs(t,e){if(e==="UTC")return 0;if(t>0&&e===Bi())return new Date(t).getTimezoneOffset()*-6e4;let{year:a,month:r,day:n,hour:i,minute:o,second:l}=Bm(t,e);return Om(a,r,n,i,o,l,0)-Math.floor(t/1e3)*1e3}var $m=new Map;function Bm(t,e){let a=$m.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"}),$m.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 Lm=864e5;function kw(t,e,a,r){return(a===r?[a]:[a,r]).filter(n=>Sw(t,e,n))}function Sw(t,e,a){let r=Bm(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 ba(t,e,a="compatible"){let r=ia(t);if(e==="UTC")return Sr(r);if(e===Bi()&&a==="compatible"){r=$e(r,new kt);let d=new Date,u=Dn(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=Sr(r),i=cs(n-Lm,e),o=cs(n+Lm,e),l=kw(r,e,n-i,n-o);if(l.length===1)return l[0];if(l.length>1)switch(a){case"compatible":case"earlier":return l[0];case"later":return l[l.length-1];case"reject":throw RangeError("Multiple possible absolute times found")}switch(a){case"earlier":return Math.min(n-i,n-o);case"compatible":case"later":return Math.max(n-i,n-o);case"reject":throw RangeError("No such absolute time found")}}function Hm(t,e,a="compatible"){return new Date(ba(t,e,a))}function wa(t,e){let a=cs(t,e),r=new Date(t+a),n=r.getUTCFullYear(),i=r.getUTCMonth()+1,o=r.getUTCDate(),l=r.getUTCHours(),d=r.getUTCMinutes(),u=r.getUTCSeconds(),c=r.getUTCMilliseconds();return new tp(n<1?"BC":"AD",n<1?-n+1:n,i,o,e,a,l,d,u,c)}function Dt(t){return new pt(t.calendar,t.era,t.year,t.month,t.day)}function ia(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 ep(t.calendar,t.era,t.year,t.month,t.day,a,r,n,i)}function $e(t,e){if(Oi(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,nr(r),r}function Nw(t,e,a){return t instanceof tp?t.timeZone===e?t:_w(t,e):wa(ba(t,e,a),e)}function Ew(t){let e=Sr(t)-t.offset;return new Date(e)}function _w(t,e){return $e(wa(Sr(t)-t.offset,e),t.calendar)}var Cn=36e5;function Hi(t,e){var l;let a=t.copy(),r="hour"in a?Zm(a,e):0;ms(a,e.years||0),a.calendar.balanceYearMonth&&a.calendar.balanceYearMonth(a,t),a.month+=e.months||0,ps(a),Wm(a),a.day+=(e.weeks||0)*7,a.day+=e.days||0,a.day+=r,Rw(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=(l=(i=a.calendar).isInverseEra)==null?void 0:l.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 o=a.calendar.getMonthsInYear(a);return a.month>o&&(a.month=o,a.day=a.calendar.getDaysInMonth(a)),a.day=Math.max(1,Math.min(a.calendar.getDaysInMonth(a),a.day)),a}function ms(t,e){var r;var a;(r=(a=t.calendar).isInverseEra)!=null&&r.call(a,t)&&(e=-e),t.year+=e}function ps(t){for(;t.month<1;)ms(t,-1),t.month+=t.calendar.getMonthsInYear(t);let e=0;for(;t.month>(e=t.calendar.getMonthsInYear(t));)t.month-=e,ms(t,1)}function Rw(t){for(;t.day<1;)t.month--,ps(t),t.day+=t.calendar.getDaysInMonth(t);for(;t.day>t.calendar.getDaysInMonth(t);)t.day-=t.calendar.getDaysInMonth(t),t.month++,ps(t)}function Wm(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 nr(t){t.calendar.constrainDate&&t.calendar.constrainDate(t),t.year=Math.max(1,Math.min(t.calendar.getYearsInEra(t),t.year)),Wm(t)}function hs(t){let e={};for(let a in t)typeof t[a]=="number"&&(e[a]=-t[a]);return e}function Um(t,e){return Hi(t,hs(e))}function fs(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),nr(a),a}function kn(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),Km(a),a}function Tw(t){t.second+=Math.floor(t.millisecond/1e3),t.millisecond=Wi(t.millisecond,1e3),t.minute+=Math.floor(t.second/60),t.second=Wi(t.second,60),t.hour+=Math.floor(t.minute/60),t.minute=Wi(t.minute,60);let e=Math.floor(t.hour/24);return t.hour=Wi(t.hour,24),e}function Km(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 Wi(t,e){let a=t%e;return a<0&&(a+=e),a}function Zm(t,e){return t.hour+=e.hours||0,t.minute+=e.minutes||0,t.second+=e.seconds||0,t.millisecond+=e.milliseconds||0,Tw(t)}function qm(t,e){let a=t.copy();return Zm(a,e),a}function Aw(t,e){return qm(t,hs(e))}function gs(t,e,a,r){var o;let n=t.copy();switch(e){case"era":{let l=t.calendar.getEras(),d=l.indexOf(t.era);if(d<0)throw Error("Invalid era: "+t.era);d=Da(d,a,0,l.length-1,r==null?void 0:r.round),n.era=l[d],nr(n);break}case"year":var i;(o=(i=n.calendar).isInverseEra)!=null&&o.call(i,n)&&(a=-a),n.year=Da(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=Da(t.month,a,1,t.calendar.getMonthsInYear(t),r==null?void 0:r.round);break;case"day":n.day=Da(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),nr(n),n}function xs(t,e,a,r){let n=t.copy();switch(e){case"hour":{let i=t.hour,o=0,l=23;if((r==null?void 0:r.hourCycle)===12){let d=i>=12;o=d?12:0,l=d?23:11}n.hour=Da(i,a,o,l,r==null?void 0:r.round);break}case"minute":n.minute=Da(t.minute,a,0,59,r==null?void 0:r.round);break;case"second":n.second=Da(t.second,a,0,59,r==null?void 0:r.round);break;case"millisecond":n.millisecond=Da(t.millisecond,a,0,999,r==null?void 0:r.round);break;default:throw Error("Unsupported field "+e)}return n}function Da(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 Ym(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?ba(Hi(ia(t),{years:e.years,months:e.months,weeks:e.weeks,days:e.days}),t.timeZone):Sr(t)-t.offset,a+=e.milliseconds||0,a+=(e.seconds||0)*1e3,a+=(e.minutes||0)*6e4,a+=(e.hours||0)*36e5,$e(wa(a,t.timeZone),t.calendar)}function Iw(t,e){return Ym(t,hs(e))}function Pw(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 o=ia(t),l=$e(kn(o,{hour:n}),new kt),d=[ba(l,t.timeZone,"earlier"),ba(l,t.timeZone,"later")].filter(g=>wa(g,t.timeZone).day===l.day)[0],u=$e(kn(o,{hour:i}),new kt),c=[ba(u,t.timeZone,"earlier"),ba(u,t.timeZone,"later")].filter(g=>wa(g,t.timeZone).day===u.day).pop(),m=Sr(t)-t.offset,p=Math.floor(m/Cn),h=m%Cn;return m=Da(p,a,Math.floor(d/Cn),Math.floor(c/Cn),r==null?void 0:r.round)*Cn+h,$e(wa(m,t.timeZone),t.calendar)}case"minute":case"second":case"millisecond":return xs(t,e,a,r);case"era":case"year":case"month":case"day":return $e(wa(ba(gs(ia(t),e,a,r),t.timeZone),t.timeZone),t.calendar);default:throw Error("Unsupported field "+e)}}function Mw(t,e,a){let r=ia(t),n=kn(fs(r,e),e);return n.compare(r)===0?t:$e(wa(ba(n,t.timeZone,a),t.timeZone),t.calendar)}var Fw=/^([+-]\d{6}|\d{4})-(\d{2})-(\d{2})$/,zw=/^([+-]\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 Ma(t){let e=t.match(Fw);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 pt(oa(e[1],0,9999),oa(e[2],1,12),1);return a.day=oa(e[3],1,a.calendar.getDaysInMonth(a)),a}function Ui(t){let e=t.match(zw);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=oa(e[1],-9999,9999),r=new ep(a<1?"BC":"AD",a<1?-a+1:a,oa(e[2],1,12),1,e[4]?oa(e[4],0,23):0,e[5]?oa(e[5],0,59):0,e[6]?oa(e[6],0,59):0,e[7]?oa(e[7],0,1/0)*1e3:0);return r.day=oa(e[3],0,r.calendar.getDaysInMonth(r)),r}function oa(t,e,a){let r=Number(t);if(r<e||r>a)throw RangeError(`Value out of range: ${e} <= ${r} <= ${a}`);return r}function Qm(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 Jm(t){let e=$e(t,new kt),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 Xm(t){return`${Jm(t)}T${Qm(t)}`}function Vw(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 Ow(t){return`${Xm(t)}${Vw(t.offset)}[${t.timeZone}]`}function vs(t){let e=typeof t[0]=="object"?t.shift():new kt,a;if(typeof t[0]=="string")a=t.shift();else{let o=e.getEras();a=o[o.length-1]}let r=t.shift(),n=t.shift(),i=t.shift();return[e,a,r,n,i]}var $w=new WeakMap,pt=class Ac{copy(){return this.era?new Ac(this.calendar,this.era,this.year,this.month,this.day):new Ac(this.calendar,this.year,this.month,this.day)}add(e){return Hi(this,e)}subtract(e){return Um(this,e)}set(e){return fs(this,e)}cycle(e,a,r){return gs(this,e,a,r)}toDate(e){return Hm(this,e)}toString(){return Jm(this)}compare(e){return Pm(this,e)}constructor(...e){zl(this,$w,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,nr(this)}},Bw=new WeakMap,Lw=class zy{copy(){return new zy(this.hour,this.minute,this.second,this.millisecond)}add(e){return qm(this,e)}subtract(e){return Aw(this,e)}set(e){return kn(this,e)}cycle(e,a,r){return xs(this,e,a,r)}toString(){return Qm(this)}compare(e){return Mm(this,e)}constructor(e=0,a=0,r=0,n=0){zl(this,Bw,{writable:!0,value:void 0}),this.hour=e,this.minute=a,this.second=r,this.millisecond=n,Km(this)}},Hw=new WeakMap,ep=class Ic{copy(){return this.era?new Ic(this.calendar,this.era,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond):new Ic(this.calendar,this.year,this.month,this.day,this.hour,this.minute,this.second,this.millisecond)}add(e){return Hi(this,e)}subtract(e){return Um(this,e)}set(e){return fs(kn(this,e),e)}cycle(e,a,r){switch(e){case"era":case"year":case"month":case"day":return gs(this,e,a,r);default:return xs(this,e,a,r)}}toDate(e,a){return Hm(this,e,a)}toString(){return Xm(this)}compare(e){let a=Pm(this,e);return a===0?Mm(this,ia(e)):a}constructor(...e){zl(this,Hw,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e);this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,nr(this)}},Ww=new WeakMap,tp=class Pc{copy(){return this.era?new Pc(this.calendar,this.era,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond):new Pc(this.calendar,this.year,this.month,this.day,this.timeZone,this.offset,this.hour,this.minute,this.second,this.millisecond)}add(e){return Ym(this,e)}subtract(e){return Iw(this,e)}set(e,a){return Mw(this,e,a)}cycle(e,a,r){return Pw(this,e,a,r)}toDate(){return Ew(this)}toString(){return Ow(this)}toAbsoluteString(){return this.toDate().toISOString()}compare(e){return this.toDate().getTime()-Nw(e,this.timeZone).toDate().getTime()}constructor(...e){zl(this,Ww,{writable:!0,value:void 0});let[a,r,n,i,o]=vs(e),l=e.shift(),d=e.shift();this.calendar=a,this.era=r,this.year=n,this.month=i,this.day=o,this.timeZone=l,this.offset=d,this.hour=e.shift()||0,this.minute=e.shift()||0,this.second=e.shift()||0,this.millisecond=e.shift()||0,nr(this)}},Nr=[[1868,9,8],[1912,7,30],[1926,12,25],[1989,1,8],[2019,5,1]],Uw=[[1912,7,29],[1926,12,24],[1989,1,7],[2019,4,30]],Ki=[1867,1911,1925,1988,2018],Fa=["meiji","taisho","showa","heisei","reiwa"];function ap(t){let e=Nr.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?Nr.length-1:e===0?0:e-1}function ys(t){let e=Ki[Fa.indexOf(t.era)];if(!e)throw Error("Unknown era: "+t.era);return new pt(t.year+e,t.month,t.day)}var Kw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=ap(e);return new pt(this,Fa[a],e.year-Ki[a],e.month,e.day)}toJulianDay(t){return super.toJulianDay(ys(t))}balanceDate(t){let e=ys(t),a=ap(e);Fa[a]!==t.era&&(t.era=Fa[a],t.year=e.year-Ki[a]),this.constrainDate(t)}constrainDate(t){let e=Fa.indexOf(t.era),a=Uw[e];if(a!=null){let[r,n,i]=a,o=r-Ki[e];t.year=Math.max(1,Math.min(o,t.year)),t.year===o&&(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]=Nr[e];t.month=Math.max(r,t.month),t.month===r&&(t.day=Math.max(n,t.day))}}getEras(){return Fa}getYearsInEra(t){let e=Fa.indexOf(t.era),a=Nr[e],r=Nr[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(ys(t))}getMinimumMonthInYear(t){let e=rp(t);return e?e[1]:1}getMinimumDayInMonth(t){let e=rp(t);return e&&t.month===e[1]?e[2]:1}constructor(...t){super(...t),this.identifier="japanese"}};function rp(t){if(t.year===1)return Nr[Fa.indexOf(t.era)]}var np=-543,Zw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=Dn(e.era,e.year);return new pt(this,a-np,e.month,e.day)}toJulianDay(t){return super.toJulianDay(ip(t))}getEras(){return["BE"]}getDaysInMonth(t){return super.getDaysInMonth(ip(t))}balanceDate(){}constructor(...t){super(...t),this.identifier="buddhist"}};function ip(t){let[e,a]=Vi(t.year+np);return new pt(e,a,t.month,t.day)}var Zi=1911;function op(t){return t.era==="minguo"?t.year+Zi:1-t.year+Zi}function lp(t){let e=t-Zi;return e>0?["minguo",e]:["before_minguo",1-e]}var qw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),[a,r]=lp(Dn(e.era,e.year));return new pt(this,a,r,e.month,e.day)}toJulianDay(t){return super.toJulianDay(sp(t))}getEras(){return["before_minguo","minguo"]}balanceDate(t){let[e,a]=lp(op(t));t.era=e,t.year=a}isInverseEra(t){return t.era==="before_minguo"}getDaysInMonth(t){return super.getDaysInMonth(sp(t))}getYearsInEra(t){return t.era==="before_minguo"?9999:9999-Zi}constructor(...t){super(...t),this.identifier="roc"}};function sp(t){let[e,a]=Vi(op(t));return new pt(e,a,t.month,t.day)}var dp=1948320,up=[0,31,62,93,124,155,186,216,246,276,306,336],Yw=class{fromJulianDay(t){let e=t-dp,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-up[n]+1;return new pt(this,a,n+1,i)}toJulianDay(t){let e=dp-1+365*(t.year-1)+Math.floor((8*t.year+21)/33);return e+=up[t.month-1],e+=t.day,e}getMonthsInYear(){return 12}getDaysInMonth(t){return t.month<=6?31:t.month<=11||kr(25*t.year+11,33)<8?30:29}getEras(){return["AP"]}getYearsInEra(){return 9377}constructor(){this.identifier="persian"}},bs=78,cp=80,Gw=class extends kt{fromJulianDay(t){let e=super.fromJulianDay(t),a=e.year-bs,r=t-ar(e.era,e.year,1,1),n;r<cp?(a--,n=Pa(e.year-1)?31:30,r+=n+155+90+10):(n=Pa(e.year)?31:30,r-=cp);let i,o;if(r<n)i=1,o=r+1;else{let l=r-n;l<155?(i=Math.floor(l/31)+2,o=l%31+1):(l-=155,i=Math.floor(l/30)+7,o=l%30+1)}return new pt(this,a,i,o)}toJulianDay(t){let[e,a]=Vi(t.year+bs),r,n;return Pa(a)?(r=31,n=ar(e,a,3,21)):(r=30,n=ar(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&&Pa(t.year+bs)||t.month>=2&&t.month<=6?31:30}getYearsInEra(){return 9919}getEras(){return["saka"]}balanceDate(){}constructor(...t){super(...t),this.identifier="indian"}},qi=1948440,mp=1948439,Ot=1300,Er=1600,Qw=460322;function Yi(t,e,a,r){return r+Math.ceil(29.5*(a-1))+(e-1)*354+Math.floor((3+11*e)/30)+t-1}function pp(t,e,a){let r=Math.floor((30*(a-e)+10646)/10631),n=Math.min(12,Math.ceil((a-(29+Yi(e,r,1,1)))/29.5)+1);return new pt(t,r,n,a-Yi(e,r,n,1)+1)}function hp(t){return(14+11*t)%30<11}var ws=class{fromJulianDay(t){return pp(this,qi,t)}toJulianDay(t){return Yi(qi,t.year,t.month,t.day)}getDaysInMonth(t){let e=29+t.month%2;return t.month===12&&hp(t.year)&&e++,e}getMonthsInYear(){return 12}getDaysInYear(t){return hp(t.year)?355:354}getYearsInEra(){return 9665}getEras(){return["AH"]}constructor(){this.identifier="islamic-civil"}},Jw=class extends ws{fromJulianDay(t){return pp(this,mp,t)}toJulianDay(t){return Yi(mp,t.year,t.month,t.day)}constructor(...t){super(...t),this.identifier="islamic-tbla"}},Xw="qgpUDckO1AbqBmwDrQpVBakGkgepC9QF2gpcBS0NlQZKB1QLagutBa4ETwoXBYsGpQbVCtYCWwmdBE0KJg2VDawFtgm6AlsKKwWVCsoG6Qr0AnYJtgJWCcoKpAvSC9kF3AJtCU0FpQpSC6ULtAW2CVcFlwJLBaMGUgdlC2oFqworBZUMSg2lDcoF1gpXCasESwmlClILagt1BXYCtwhbBFUFqQW0BdoJ3QRuAjYJqgpUDbIN1QXaAlsJqwRVCkkLZAtxC7QFtQpVCiUNkg7JDtQG6QprCasEkwpJDaQNsg25CroEWworBZUKKgtVC1wFvQQ9Ah0JlQpKC1oLbQW2AjsJmwRVBqkGVAdqC2wFrQpVBSkLkgupC9QF2gpaBasKlQVJB2QHqgu1BbYCVgpNDiULUgtqC60FrgIvCZcESwalBqwG1gpdBZ0ETQoWDZUNqgW1BdoCWwmtBJUFygbkBuoK9QS2AlYJqgpUC9IL2QXqAm0JrQSVCkoLpQuyBbUJ1gSXCkcFkwZJB1ULagVrCisFiwpGDaMNygXWCtsEawJLCaUKUgtpC3UFdgG3CFsCKwVlBbQF2gntBG0BtgimClINqQ3UBdoKWwmrBFMGKQdiB6kLsgW1ClUFJQuSDckO0gbpCmsFqwRVCikNVA2qDbUJugQ7CpsETQqqCtUK2gJdCV4ELgqaDFUNsga5BroEXQotBZUKUguoC7QLuQXaAloJSgukDdEO6AZqC20FNQWVBkoNqA3UDdoGWwWdAisGFQtKC5ULqgWuCi4JjwwnBZUGqgbWCl0FnQI=",fp,_r;function Gi(t){return Qw+_r[t-Ot]}function Sn(t,e){let a=t-Ot,r=1<<11-(e-1);return(fp[a]&r)===0?29:30}function gp(t,e){let a=Gi(t);for(let r=1;r<e;r++)a+=Sn(t,r);return a}function xp(t){return _r[t+1-Ot]-_r[t-Ot]}var e2=class extends ws{fromJulianDay(t){let e=t-qi,a=Gi(Ot),r=Gi(Er);if(e<a||e>r)return super.fromJulianDay(t);{let n=Ot-1,i=1,o=1;for(;o>0;){n++,o=e-Gi(n)+1;let l=xp(n);if(o===l){i=12;break}else if(o<l){let d=Sn(n,i);for(i=1;o>d;)o-=d,i++,d=Sn(n,i);break}}return new pt(this,n,i,e-gp(n,i)+1)}}toJulianDay(t){return t.year<Ot||t.year>Er?super.toJulianDay(t):qi+gp(t.year,t.month)+(t.day-1)}getDaysInMonth(t){return t.year<Ot||t.year>Er?super.getDaysInMonth(t):Sn(t.year,t.month)}getDaysInYear(t){return t.year<Ot||t.year>Er?super.getDaysInYear(t):xp(t.year)}constructor(){if(super(),this.identifier="islamic-umalqura",fp||(fp=new Uint16Array(Uint8Array.from(atob(Xw),t=>t.charCodeAt(0)).buffer)),!_r){_r=new Uint32Array(Er-Ot+1);let t=0;for(let e=Ot;e<=Er;e++){_r[e-Ot]=t;for(let a=1;a<=12;a++)t+=Sn(e,a)}}}},vp=347997,yp=1080,bp=24*yp,t2=29,a2=12*yp+793,r2=t2*bp+a2;function ir(t){return kr(t*7+1,19)<7}function Qi(t){let e=Math.floor((235*t-234)/19),a=12084+13753*e,r=e*29+Math.floor(a/25920);return kr(3*(r+1),7)<3&&(r+=1),r}function n2(t){let e=Qi(t-1),a=Qi(t);return Qi(t+1)-a===356?2:a-e===382?1:0}function Nn(t){return Qi(t)+n2(t)}function wp(t){return Nn(t+1)-Nn(t)}function i2(t){let e=wp(t);switch(e>380&&(e-=30),e){case 353:return 0;case 354:return 1;case 355:return 2}}function Ji(t,e){if(e>=6&&!ir(t)&&e++,e===4||e===7||e===9||e===11||e===13)return 29;let a=i2(t);return e===2?a===2?30:29:e===3?a===0?29:30:e===6?ir(t)?30:0:30}var o2=class{fromJulianDay(t){let e=t-vp,a=e*bp/r2,r=Math.floor((19*a+234)/235)+1,n=Nn(r),i=Math.floor(e-n);for(;i<1;)r--,n=Nn(r),i=Math.floor(e-n);let o=1,l=0;for(;l<i;)l+=Ji(r,o),o++;o--,l-=Ji(r,o);let d=i-l;return new pt(this,r,o,d)}toJulianDay(t){let e=Nn(t.year);for(let a=1;a<t.month;a++)e+=Ji(t.year,a);return e+t.day+vp}getDaysInMonth(t){return Ji(t.year,t.month)}getMonthsInYear(t){return ir(t.year)?13:12}getDaysInYear(t){return wp(t.year)}getYearsInEra(){return 9999}getEras(){return["AM"]}balanceYearMonth(t,e){e.year!==t.year&&(ir(e.year)&&!ir(t.year)&&e.month>6?t.month--:!ir(e.year)&&ir(t.year)&&e.month>6&&t.month++)}constructor(){this.identifier="hebrew"}},Ds=1723856,Dp=1824665,js=5500;function Xi(t,e,a,r){return t+365*e+Math.floor(e/4)+30*(a-1)+r-1}function Cs(t,e){let a=Math.floor(4*(e-t)/1461),r=1+Math.floor((e-Xi(t,a,1,1))/30);return[a,r,e+1-Xi(t,a,r,1)]}function jp(t){return Math.floor(t%4/3)}function Cp(t,e){return e%13==0?jp(t)+5:30}var ks=class{fromJulianDay(t){let[e,a,r]=Cs(Ds,t),n="AM";return e<=0&&(n="AA",e+=js),new pt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="AA"&&(e-=js),Xi(Ds,e,t.month,t.day)}getDaysInMonth(t){return Cp(t.year,t.month)}getMonthsInYear(){return 13}getDaysInYear(t){return 365+jp(t.year)}getYearsInEra(t){return t.era==="AA"?9999:9991}getEras(){return["AA","AM"]}constructor(){this.identifier="ethiopic"}},l2=class extends ks{fromJulianDay(t){let[e,a,r]=Cs(Ds,t);return e+=js,new pt(this,"AA",e,a,r)}getEras(){return["AA"]}getYearsInEra(){return 9999}constructor(...t){super(...t),this.identifier="ethioaa"}},s2=class extends ks{fromJulianDay(t){let[e,a,r]=Cs(Dp,t),n="CE";return e<=0&&(n="BCE",e=1-e),new pt(this,n,e,a,r)}toJulianDay(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Xi(Dp,e,t.month,t.day)}getDaysInMonth(t){let e=t.year;return t.era==="BCE"&&(e=1-e),Cp(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 Ss(t){switch(t){case"buddhist":return new Zw;case"ethiopic":return new ks;case"ethioaa":return new l2;case"coptic":return new s2;case"hebrew":return new o2;case"indian":return new Gw;case"islamic-civil":return new ws;case"islamic-tbla":return new Jw;case"islamic-umalqura":return new e2;case"japanese":return new Kw;case"persian":return new Yw;case"roc":return new qw;default:return new kt}}function d2(t){let e=fR({usage:"search",...t}),a=(0,x.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(0,o.length),o)===0),[e]),r=(0,x.useCallback)((i,o)=>o.length===0?!0:(i=i.normalize("NFC"),o=o.normalize("NFC"),e.compare(i.slice(-o.length),o)===0),[e]),n=(0,x.useCallback)((i,o)=>{if(o.length===0)return!0;i=i.normalize("NFC"),o=o.normalize("NFC");let l=0,d=o.length;for(;l+d<=i.length;l++){let u=i.slice(l,l+d);if(e.compare(o,u)===0)return!0}return!1},[e]);return(0,x.useMemo)(()=>({startsWith:a,endsWith:r,contains:n}),[a,r,n])}var Xe=typeof document<"u"?window.visualViewport:null;function u2(t){let{direction:e}=at(),{arrowSize:a,targetRef:r,overlayRef:n,arrowRef:i,scrollRef:o=n,placement:l="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:v,arrowBoundaryOffset:w=0}=t,[b,D]=(0,x.useState)(null),j=[h,l,n.current,r.current,i==null?void 0:i.current,o.current,d,u,c,m,p,g,e,v,w,a],k=(0,x.useRef)(Xe==null?void 0:Xe.scale);(0,x.useEffect)(()=>{g&&(k.current=Xe==null?void 0:Xe.scale)},[g]);let S=(0,x.useCallback)(()=>{var A,F;if(h===!1||!g||!n.current||!r.current||!c||(Xe==null?void 0:Xe.scale)!==k.current)return;let C=null;if(o.current&&o.current.contains(document.activeElement)){let T=(A=document.activeElement)==null?void 0:A.getBoundingClientRect(),M=o.current.getBoundingClientRect();C={type:"top",offset:((T==null?void 0:T.top)??0)-M.top},C.offset>M.height/2&&(C.type="bottom",C.offset=((T==null?void 0:T.bottom)??0)-M.bottom)}let _=n.current;!v&&n.current&&(_.style.top="0px",_.style.bottom="",_.style.maxHeight=(((F=window.visualViewport)==null?void 0:F.height)??window.innerHeight)+"px");let E=uw({placement:m2(l,e),overlayNode:n.current,targetNode:r.current,scrollNode:o.current||n.current,padding:d,shouldFlip:u,boundaryElement:c,offset:m,crossOffset:p,maxHeight:v,arrowSize:a??(i!=null&&i.current?is(i.current,!0).width:0),arrowBoundaryOffset:w});if(E.position){if(_.style.top="",_.style.bottom="",_.style.left="",_.style.right="",Object.keys(E.position).forEach(T=>_.style[T]=E.position[T]+"px"),_.style.maxHeight=E.maxHeight==null?"":E.maxHeight+"px",C&&document.activeElement&&o.current){let T=document.activeElement.getBoundingClientRect(),M=o.current.getBoundingClientRect(),R=T[C.type]-M[C.type];o.current.scrollTop+=R-C.offset}D(E)}},j);Ta(S,j),c2(S),Mi({ref:n,onResize:S}),Mi({ref:r,onResize:S});let N=(0,x.useRef)(!1);Ta(()=>{let C,_=()=>{N.current=!0,clearTimeout(C),C=setTimeout(()=>{N.current=!1},500),S()},E=()=>{N.current&&_()};return Xe==null||Xe.addEventListener("resize",_),Xe==null||Xe.addEventListener("scroll",E),()=>{Xe==null||Xe.removeEventListener("resize",_),Xe==null||Xe.removeEventListener("scroll",E)}},[S]);let y=(0,x.useCallback)(()=>{N.current||(f==null||f())},[f,N]);return pw({triggerRef:r,isOpen:g,onClose:f&&y}),{overlayProps:{style:{position:b?"absolute":"fixed",top:b?void 0:0,left:b?void 0:0,zIndex:1e5,...b==null?void 0:b.position,maxHeight:(b==null?void 0:b.maxHeight)??"100vh"}},placement:(b==null?void 0:b.placement)??null,triggerAnchorPoint:(b==null?void 0:b.triggerAnchorPoint)??null,arrowProps:{"aria-hidden":"true",role:"presentation",style:{left:b==null?void 0:b.arrowOffsetLeft,top:b==null?void 0:b.arrowOffsetTop}},updatePosition:S}}function c2(t){Ta(()=>(window.addEventListener("resize",t,!1),()=>{window.removeEventListener("resize",t,!1)}),[t])}function m2(t,e){return e==="rtl"?t.replace("start","right").replace("end","left"):t.replace("start","left").replace("end","right")}function p2({children:t}){let e=(0,x.useMemo)(()=>({register:()=>{}}),[]);return x.createElement(fA.Provider,{value:e},t)}function h2(t){let{ref:e,onInteractOutside:a,isDisabled:r,onInteractOutsideStart:n}=t,i=(0,x.useRef)({isPointerDown:!1,ignoreEmulatedMouseEvents:!1}),o=xy(d=>{a&&kp(d,e)&&(n&&n(d),i.current.isPointerDown=!0)}),l=xy(d=>{a&&a(d)});(0,x.useEffect)(()=>{let d=i.current;if(r)return;let u=e.current,c=hA(u);if(typeof PointerEvent<"u"){let m=p=>{d.isPointerDown&&kp(p,e)&&l(p),d.isPointerDown=!1};return c.addEventListener("pointerdown",o,!0),c.addEventListener("click",m,!0),()=>{c.removeEventListener("pointerdown",o,!0),c.removeEventListener("click",m,!0)}}},[e,r,o,l])}function kp(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 la=[];function f2(t,e){let{onClose:a,shouldCloseOnBlur:r,isOpen:n,isDismissable:i=!1,isKeyboardDismissDisabled:o=!1,shouldCloseOnInteractOutside:l}=t;(0,x.useEffect)(()=>{if(n&&!la.includes(e))return la.push(e),()=>{let g=la.indexOf(e);g>=0&&la.splice(g,1)}},[n,e]);let d=()=>{la[la.length-1]===e&&a&&a()},u=g=>{(!l||l(g.target))&&la[la.length-1]===e&&(g.stopPropagation(),g.preventDefault())},c=g=>{(!l||l(g.target))&&(la[la.length-1]===e&&(g.stopPropagation(),g.preventDefault()),d())},m=g=>{g.key==="Escape"&&!o&&!g.nativeEvent.isComposing&&(g.stopPropagation(),g.preventDefault(),d())};h2({ref:e,onInteractOutside:i&&n?c:void 0,onInteractOutsideStart:u});let{focusWithinProps:p}=Cl({isDisabled:!r,onBlurWithin:g=>{!g.relatedTarget||xR(g.relatedTarget)||(!l||l(g.relatedTarget))&&(a==null||a())}}),h=g=>{g.target===g.currentTarget&&g.preventDefault()};return{overlayProps:{onKeyDown:m,...p},underlayProps:{onPointerDown:h}}}var En=typeof document<"u"&&window.visualViewport,eo=0,Sp;function g2(t={}){let{isDisabled:e}=t;Ta(()=>{if(!e)return eo++,eo===1&&(Sp=hy()?v2():x2()),()=>{eo--,eo===0&&Sp()}},[e])}function x2(){let t=window.innerWidth-document.documentElement.clientWidth;return fy(t>0&&("scrollbarGutter"in document.documentElement.style?Ns(document.documentElement,"scrollbarGutter","stable"):Ns(document.documentElement,"paddingRight",`${t}px`)),Ns(document.documentElement,"overflow","hidden"))}function v2(){let t,e=!1,a=d=>{let u=d.target;t=gR(u)?u:pl(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&&ec(c)?(c.focus({preventScroll:!0}),Np(c,ec(u))):c||((p=(m=u.parentElement)==null?void 0:m.closest("[tabindex]"))==null||p.focus({preventScroll:!0}))},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&ec(document.activeElement);o.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Np(this,u)};let l=fy(Es(document,"touchstart",a,{passive:!1,capture:!0}),Es(document,"touchmove",n,{passive:!1,capture:!0}),Es(document,"blur",i,!0));return()=>{l(),r.remove(),HTMLElement.prototype.focus=o}}function Ns(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Es(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Np(t,e){e||!En?Ep(t):En.addEventListener("resize",()=>Ep(t),{once:!0})}function Ep(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=pl(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 o=n.bottom;En&&(o=Math.min(o,En.offsetTop+En.height));let l=i.top-n.top-((o-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+l)),behavior:"smooth"})}}a=r.parentElement}}var y2=(0,x.createContext)({});function b2(){return(0,x.useContext)(y2)??{}}var _p={};_p={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Rp={};Rp={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Tp={};Tp={dismiss:"Odstranit"};var Ap={};Ap={dismiss:"Luk"};var Ip={};Ip={dismiss:"Schlie\xDFen"};var Pp={};Pp={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var Mp={};Mp={dismiss:"Dismiss"};var Fp={};Fp={dismiss:"Descartar"};var zp={};zp={dismiss:"L\xF5peta"};var Vp={};Vp={dismiss:"Hylk\xE4\xE4"};var Op={};Op={dismiss:"Rejeter"};var $p={};$p={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var Bp={};Bp={dismiss:"Odbaci"};var Lp={};Lp={dismiss:"Elutas\xEDt\xE1s"};var Hp={};Hp={dismiss:"Ignora"};var Wp={};Wp={dismiss:"\u9589\u3058\u308B"};var Up={};Up={dismiss:"\uBB34\uC2DC"};var Kp={};Kp={dismiss:"Atmesti"};var Zp={};Zp={dismiss:"Ner\u0101d\u012Bt"};var qp={};qp={dismiss:"Lukk"};var Yp={};Yp={dismiss:"Negeren"};var Gp={};Gp={dismiss:"Zignoruj"};var Qp={};Qp={dismiss:"Descartar"};var Jp={};Jp={dismiss:"Dispensar"};var Xp={};Xp={dismiss:"Revocare"};var eh={};eh={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var th={};th={dismiss:"Zru\u0161i\u0165"};var ah={};ah={dismiss:"Opusti"};var rh={};rh={dismiss:"Odbaci"};var nh={};nh={dismiss:"Avvisa"};var ih={};ih={dismiss:"Kapat"};var oh={};oh={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var lh={};lh={dismiss:"\u53D6\u6D88"};var sh={};sh={dismiss:"\u95DC\u9589"};var dh={};dh={"ar-AE":_p,"bg-BG":Rp,"cs-CZ":Tp,"da-DK":Ap,"de-DE":Ip,"el-GR":Pp,"en-US":Mp,"es-ES":Fp,"et-EE":zp,"fi-FI":Vp,"fr-FR":Op,"he-IL":$p,"hr-HR":Bp,"hu-HU":Lp,"it-IT":Hp,"ja-JP":Wp,"ko-KR":Up,"lt-LT":Kp,"lv-LV":Zp,"nb-NO":qp,"nl-NL":Yp,"pl-PL":Gp,"pt-BR":Qp,"pt-PT":Jp,"ro-RO":Xp,"ru-RU":eh,"sk-SK":th,"sl-SI":ah,"sr-SP":rh,"sv-SE":nh,"tr-TR":ih,"uk-UA":oh,"zh-CN":lh,"zh-TW":sh};function w2(t){return t&&t.__esModule?t.default:t}function uh(t){let{onDismiss:e,...a}=t,r=El(a,Ga(w2(dh),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return x.createElement(fi,null,x.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function D2(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:m}=f2({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},n??r),{overlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:f}=u2({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return g2({isDisabled:i||!e.isOpen}),(0,x.useEffect)(()=>{if(e.isOpen&&r.current)return i?WT((n==null?void 0:n.current)??r.current):HT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:ot(c,p),arrowProps:h,underlayProps:m,placement:g,triggerAnchorPoint:f}}var j2=Na(pi(),1),ch=x.createContext(null);function mh(t){let e=xA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:l}=b2();if(!t.portalContainer&&l&&(a=l()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=x.createElement(pR,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=x.createElement(ch.Provider,{value:o},x.createElement(p2,null,d)),j2.createPortal(d,a)}function C2(){var e;let t=(e=(0,x.useContext)(ch))==null?void 0:e.setContain;Ta(()=>{t==null||t(!0)},[t])}var ph={};ph={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 hh={};hh={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 fh={};fh={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 gh={};gh={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 xh={};xh={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 vh={};vh={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 yh={};yh={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 bh={};bh={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 wh={};wh={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 Dh={};Dh={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 jh={};jh={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 Ch={};Ch={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 kh={};kh={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 Sh={};Sh={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 Nh={};Nh={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 Eh={};Eh={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 _h={};_h={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 Rh={};Rh={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 Th={};Th={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 Ah={};Ah={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 Ih={};Ih={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 Ph={};Ph={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 Mh={};Mh={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 Fh={};Fh={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 zh={};zh={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 Vh={};Vh={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 Oh={};Oh={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 $h={};$h={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 Bh={};Bh={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 Lh={};Lh={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 Hh={};Hh={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 Wh={};Wh={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 Uh={};Uh={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 Kh={};Kh={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 _n={};_n={"ar-AE":ph,"bg-BG":hh,"cs-CZ":fh,"da-DK":gh,"de-DE":xh,"el-GR":vh,"en-US":yh,"es-ES":bh,"et-EE":wh,"fi-FI":Dh,"fr-FR":jh,"he-IL":Ch,"hr-HR":kh,"hu-HU":Sh,"it-IT":Nh,"ja-JP":Eh,"ko-KR":_h,"lt-LT":Rh,"lv-LV":Th,"nb-NO":Ah,"nl-NL":Ih,"pl-PL":Ph,"pt-BR":Mh,"pt-PT":Fh,"ro-RO":zh,"ru-RU":Vh,"sk-SK":Oh,"sl-SI":$h,"sr-SP":Bh,"sv-SE":Lh,"tr-TR":Hh,"uk-UA":Wh,"zh-CN":Uh,"zh-TW":Kh};function Zh(t){return t&&t.__esModule?t.default:t}var _s=new WeakMap;function Rn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function k2(t){let e=Ga(Zh(_n),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ga({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Rn(a)||Rn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,x.useMemo)(()=>{if(!i&&a&&r)if(Je(a,r)){let o=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:o})}else{let o=Ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:o})}return""},[a,r,i,t.timeZone,e,n])}function Rs(t,e,a,r){let n=Ga(Zh(_n),"@react-aria/calendar"),i=Rn(t)||Rn(e),o=ga({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),l=ga({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,x.useMemo)(()=>{if(Je(t,rr(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Je(e,Li(t)))return o.format(d.toDate(a));if(Je(e,Li(e)))return r?Ts(o,n,d,u,a):o.formatRange(d.toDate(a),u.toDate(a))}return r?Ts(l,n,t,e,a):l.formatRange(t.toDate(a),e.toDate(a))},[t,e,o,l,n,a,r])}function Ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),o=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let l="",d="";for(let u=0;u<i.length;u++)u<o?l+=i[u].value:u>o&&(d+=i[u].value);return e.format("dateRange",{startDate:l,endDate:d})}function S2(t){return t&&t.__esModule?t.default:t}function qh(t,e){let a=Ga(S2(_n),"@react-aria/calendar"),r=gt(t),n=Rs(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=Rs(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);Cv(()=>{e.isFocused||ay(i)},[i]);let o=k2(e);Cv(()=>{o&&ay(o,"polite",4e3)},[o]);let l=gy([!!t.errorMessage,t.isInvalid,t.validationState]);_s.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:l,selectedDateDescription:o});let[d,u]=(0,x.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[m,p]=(0,x.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&m&&(p(!1),e.setFocused(!0)),{calendarProps:ot(r,El({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:l},title:n}}function N2(t,e){return qh(t,e)}function E2(t,e,a){let r=qh(t,e),n=(0,x.useRef)(!1),i=(0,x.useRef)(typeof window<"u"?window:null);return sn(i,"pointerdown",o=>{n.current=o.width===0&&o.height===0}),sn(i,"pointerup",o=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let l=o.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(l)||!l.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=o=>{a.current&&(!o.relatedTarget||!a.current.contains(o.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},sn(a,"touchmove",o=>{e.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function _2(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=at(),o=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}},l=Rs(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=_s.get(e),c=El({"aria-label":[d,l].filter(Boolean).join(", "),"aria-labelledby":u}),m=ga({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:p}=at(),h=(0,x.useMemo)(()=>{let f=jn($i(e.timeZone),p,n);return[...Array(7).keys()].map(v=>{let w=f.add({days:v}).toDate(e.timeZone);return m.format(w)})},[p,e.timeZone,m,n]),g=Cw(a,p,n);return{gridProps:ot(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:o,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function R2(t){return t&&t.__esModule?t.default:t}function T2(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:o}=_s.get(e),l=Ga(R2(_n),"@react-aria/calendar"),d=ga({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Rn(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&&Je(e.value,r));h&&(u=!0),r=vA(r,os);let g=(0,x.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Am(r,e.timeZone),v=(0,x.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Je(r,e.value.start)||Je(r,e.value.end))&&(E=o+", "),E+=d.format(g),f?E=l.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=l.format("dateSelected",{date:E})),e.minValue&&Je(r,e.minValue)?E+=", "+l.format("minimumDate"):e.maxValue&&Je(r,e.maxValue)&&(E+=", "+l.format("maximumDate")),E},[d,g,l,u,f,r,e,o]),w="";"anchorDate"in e&&c&&!e.isReadOnly&&p&&(w=e.anchorDate?l.format("finishRangeSelectionPrompt"):l.format("startRangeSelectionPrompt"));let b=fl(w),D=(0,x.useRef)(!1),j=(0,x.useRef)(!1),k=(0,x.useRef)(void 0),{pressProps:S,isPressed:N}=vy({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(Je(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Je(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let A=()=>{e.setDragging(!0),k.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?k.current=setTimeout(A,200):A()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&k.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 A=r.add({days:1});e.isInvalid(A)&&(A=r.subtract({days:1})),e.isInvalid(A)||e.setFocusedDate(A)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Je(r,e.focusedDate)?0:-1),(0,x.useEffect)(()=>{c&&a.current&&(pA(a.current),v6()!=="pointer"&&document.activeElement===a.current&&kv(a.current,{containingElement:pl(a.current)}))},[c,a]);let C=ga({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,x.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:ot(S,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!p||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,b["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:N,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 Yh={};Yh={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 Qh={};Qh={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 Jh={};Jh={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 Xh={};Xh={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 ef={};ef={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 tf={};tf={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 af={};af={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 rf={};rf={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 nf={};nf={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 of={};of={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 lf={};lf={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 sf={};sf={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 df={};df={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 uf={};uf={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 cf={};cf={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 mf={};mf={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 pf={};pf={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 hf={};hf={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 ff={};ff={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 gf={};gf={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 xf={};xf={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 vf={};vf={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 yf={};yf={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 bf={};bf={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 wf={};wf={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 Df={};Df={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 jf={};jf={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 Cf={};Cf={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 kf={};kf={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 Sf={};Sf={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 Nf={};Nf={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 Ef={};Ef={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 _f={};_f={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 Tn={};Tn={"ar-AE":Yh,"bg-BG":Gh,"cs-CZ":Qh,"da-DK":Jh,"de-DE":Xh,"el-GR":ef,"en-US":tf,"es-ES":af,"et-EE":rf,"fi-FI":nf,"fr-FR":of,"he-IL":lf,"hr-HR":sf,"hu-HU":df,"it-IT":uf,"ja-JP":cf,"ko-KR":mf,"lt-LT":pf,"lv-LV":hf,"nb-NO":ff,"nl-NL":gf,"pl-PL":xf,"pt-BR":vf,"pt-PT":yf,"ro-RO":bf,"ru-RU":wf,"sk-SK":Df,"sl-SI":jf,"sr-SP":Cf,"sv-SE":kf,"tr-TR":Sf,"uk-UA":Nf,"zh-CN":Ef,"zh-TW":_f};function As(t,e,a){let{direction:r}=at(),n=(0,x.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=Rf(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=Rf(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},o=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=jv(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:l}=vy({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&o()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&o()}});return ot(l,{onKeyDown:i})}function Rf(t,e,a){let r=jv(t,{tabbable:!0}),n=r.nextNode(),i=null,o=1/0;for(;n;){let l=n.getBoundingClientRect().left-e,d=Math.abs(l);Math.sign(l)===a&&d<o&&(i=n,o=d),n=r.nextNode()}return i}function A2(t){return t&&t.__esModule?t.default:t}var Tf=new WeakMap,An="__role_"+Date.now(),Af="__focusManager_"+Date.now();function I2(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:u}=cc({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,x.useRef)(null),{focusWithinProps:m}=Cl({...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=Ga(A2(Tn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=fl(e.value?p.format(h,{[g]:e.formatValue({month:"long"})}):""),v=t[An]==="presentation"?l["aria-describedby"]:[f["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=t[Af],b=(0,x.useMemo)(()=>w||ml(a),[w,a]),D=As(e,a,t[An]==="presentation");Tf.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[o.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:b});let j=(0,x.useRef)(t.autoFocus),k;k=t[An]==="presentation"?{role:"presentation"}:ot(l,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":v}),(0,x.useEffect)(()=>{j.current&&b.focusFirst(),j.current=!1},[b]),j6(t.inputRef,e.defaultValue,e.setValue),_6({...t,focus(){b.focusFirst()}},e,t.inputRef);let S={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=t.isRequired,S.onChange=()=>{});let N=gt(t);return{labelProps:{...o,onClick:()=>{b.focusFirst()}},fieldProps:ot(N,k,D,m,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:S,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function P2(t){return t&&t.__esModule?t.default:t}function M2(t,e,a){let r=mn(),n=mn(),i=mn(),o=Ga(P2(Tn),"@react-aria/datepicker"),{isInvalid:l,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:m,descriptionProps:p,errorMessageProps:h}=cc({...t,labelElementType:"span",isInvalid:l,errorMessage:t.errorMessage||d}),g=As(e,a),f=m["aria-labelledby"]||m.id,{locale:v}=at(),w=e.formatValue(v,{month:"long"}),b=fl(w?o.format("selectedDateDescription",{date:w}):""),D=[b["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=gt(t),k=(0,x.useMemo)(()=>ml(a),[a]),S=(0,x.useRef)(!1),{focusWithinProps:N}=Cl({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;S.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!S.current){var C,_;S.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:ot(j,g,m,b,N,{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:()=>{k.focusFirst()}},fieldProps:{...m,id:i,[An]:"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,[mc]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:r,"aria-haspopup":"dialog","aria-label":o.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:l,validationErrors:d,validationDetails:u}}function F2(t){return t&&t.__esModule?t.default:t}function z2(){let{locale:t}=at(),e=y6(F2(Tn),"@react-aria/datepicker");return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new V2(t,e)}},[t,e])}var V2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function O2(t,e,a){let r=(0,x.useRef)(""),{locale:n,direction:i}=at(),o=z2(),{ariaLabel:l,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Tf.get(e),m=t.isPlaceholder?"":t.text,p=(0,x.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ga({month:"long",timeZone:p.timeZone}),g=ga({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(t.type==="month"&&!t.isPlaceholder){let I=h.format(e.dateValue);m=I===m?I:`${m} \u2013 ${I}`}else t.type==="hour"&&!t.isPlaceholder&&(m=g.format(e.dateValue));let{spinButtonProps:f}=b6({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)}}),v=(0,x.useMemo)(()=>new x6(n,{maximumFractionDigits:0}),[n]),w=()=>{if(t.text===t.placeholder&&c.focusPrevious(),v.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let I=t.text.slice(0,-1),O=v.parse(I);I=O===0?"":I,I.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=I}else t.type==="dayPeriod"&&e.clearSegment(t.type)},b=I=>{if(I.key==="a"&&(mA()?I.metaKey:I.ctrlKey)&&I.preventDefault(),!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey))switch(I.key){case"Backspace":case"Delete":I.preventDefault(),I.stopPropagation(),w();break}},{startsWith:D}=d2({sensitivity:"base"}),j=ga({hour:"numeric",hour12:!0}),k=(0,x.useMemo)(()=>{let I=new Date;return I.setHours(0),j.formatToParts(I).find(O=>O.type==="dayPeriod").value},[j]),S=(0,x.useMemo)(()=>{let I=new Date;return I.setHours(12),j.formatToParts(I).find(O=>O.type==="dayPeriod").value},[j]),N=ga({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,x.useMemo)(()=>{if(t.type!=="era")return[];let I=$e(new pt(1,1,1),e.calendar),O=e.calendar.getEras().map($=>{let Q=I.set({year:1,month:1,day:1,era:$}).toDate("UTC");return{era:$,formatted:N.formatToParts(Q).find(X=>X.type==="era").value}}),V=$2(O.map($=>$.formatted));if(V)for(let $ of O)$.formatted=$.formatted.slice(V);return O},[N,e.calendar,t.type]),C=I=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+I;switch(t.type){case"dayPeriod":if(D(k,I))e.setSegment("dayPeriod",0);else if(D(S,I))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let V=y.find($=>D($.formatted,I));V&&(e.setSegment("era",V.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(O))return;let V=v.parse(O),$=V,Q=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&($=v.parse(I));break;case"h12":Q=!1,V>12&&($=v.parse(I));break}t.value!==void 0&&t.value>=12&&V>1&&(V+=12)}else t.maxValue!==void 0&&V>t.maxValue&&($=v.parse(I));if(isNaN(V))return;let X=$!==0||Q;X&&e.setSegment(t.type,$),t.maxValue!==void 0&&(+(V+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",X&&c.focusNext()):r.current=O;break}}},_=()=>{var I;r.current="",a.current&&kv(a.current,{containingElement:pl(a.current)}),(I=window.getSelection())==null||I.collapse(a.current)};sn((0,x.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let I=window.getSelection();I!=null&&I.anchorNode&&((O=a.current)!=null&&O.contains(I==null?void 0:I.anchorNode))&&I.collapse(a.current)});let E=(0,x.useRef)("");sn(a,"beforeinput",I=>{if(a.current)switch(I.preventDefault(),I.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!e.isReadOnly&&w();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:I.data!=null&&C(I.data);break}}),sn(a,"input",I=>{let{inputType:O,data:V}=I;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),V!=null&&(D(k,V)||D(S,V))&&C(V))}),Ta(()=>{let I=a.current;return()=>{document.activeElement===I&&(c.focusPrevious()||c.focusNext())}},[a,c]);let A=hy()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,x.useMemo)(()=>e.segments.find(I=>I.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let F=mn(),T=!e.isDisabled&&!e.isReadOnly&&t.isEditable,M=t.type==="literal"?"":o.of(t.type),R=El({"aria-label":`${M}${l?`, ${l}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(i==="rtl"){P.unicodeBidi="embed";let I=p[t.type];(I==="numeric"||I==="2-digit")&&(P.direction="ltr")}return{segmentProps:ot(f,R,{id:F,...A,"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:T,suppressContentEditableWarning:T,spellCheck:T?"false":void 0,autoCorrect:T?"off":void 0,enterKeyHint:T?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!T?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:b,onFocus:_,style:P,onPointerDown(I){I.stopPropagation()},onMouseDown(I){I.stopPropagation()}})}}function $2(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 B2(t){return t&&t.__esModule?t.default:t}function L2(t,e,a){var A,F,T,M,R;let r=Ga(B2(Tn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:o}=e.displayValidation,{labelProps:l,fieldProps:d,descriptionProps:u,errorMessageProps:c}=cc({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),m=d["aria-labelledby"]||d.id,{locale:p}=at(),h=e.formatValue(p,{month:"long"}),g=fl(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":m},v={"aria-label":r.format("endDate"),"aria-labelledby":m},w=mn(),b=mn(),D=As(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=(0,x.useMemo)(()=>ml(a,{accept:P=>P.id!==w}),[a,w]),S={[Af]:k,[An]:"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},N=gt(t),y=(0,x.useRef)(!1),{focusWithinProps:C}=Cl({...t,isDisabled:e.isOpen,onBlurWithin:P=>{var V;if(!((V=document.getElementById(b))!=null&&V.contains(P.relatedTarget))){var I,O;y.current=!1,(I=t.onBlur)==null||I.call(t,P),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:P=>{if(!y.current){var I,O;y.current=!0,(I=t.onFocus)==null||I.call(t,P),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,x.useRef)(Qv),E=(0,x.useRef)(Qv);return{groupProps:ot(N,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(P){e.isOpen||t.onKeyDown&&t.onKeyDown(P)},onKeyUp(P){e.isOpen||t.onKeyUp&&t.onKeyUp(P)}}),labelProps:{...l,onClick:()=>{k.focusFirst()}},buttonProps:{...g,id:w,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${w} ${m}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${w} ${m}`},startFieldProps:{...f,...S,value:((A=e.value)==null?void 0:A.start)??null,defaultValue:(F=e.defaultValue)==null?void 0:F.start,onChange:P=>e.setDateTime("start",P),autoFocus:t.autoFocus,name:t.startName,form:t.form,[mc]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(P){_.current=P,e.updateValidation(kl(P,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...v,...S,value:((T=e.value)==null?void 0:T.end)??null,defaultValue:(M=e.defaultValue)==null?void 0:M.end,onChange:P=>e.setDateTime("end",P),name:t.endName,form:t.form,[mc]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(P){E.current=P,e.updateValidation(kl(_.current,P))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(R=e.dateRange)!=null&&R.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:o}}function H2(t,e){let{role:a="dialog"}=t,r=gy();r=t["aria-label"]?void 0:r;let n=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){pc(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),pc(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),C2(),{dialogProps:{...gt(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function Rr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function Is(t,e,a,r,n){let i={};for(let o in e)i[o]=Math.floor(e[o]/2),i[o]>0&&e[o]%2==0&&i[o]--;return In(t,or(t,e,a).subtract(i),e,a,r,n)}function or(t,e,a,r,n){let i=t;return e.years?i=vw(t):e.months?i=rr(t):e.weeks&&(i=jn(t,a)),In(t,i,e,a,r,n)}function Ps(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--,In(t,or(t,e,a).subtract(i),e,a,r,n)}function In(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let o=us(e,or(Dt(n),a,r));o&&(e=o)}if(i&&t.compare(i)<=0){let o=ds(e,Ps(Dt(i),a,r));o&&(e=o)}return e}function za(t,e,a){if(e){let r=us(t,Dt(e));r&&(t=r)}if(a){let r=ds(t,Dt(a));r&&(t=r)}return t}function If(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 Pf(t){let e=(0,x.useMemo)(()=>new ra(t.locale),[t.locale]),a=(0,x.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:o,maxValue:l,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:m}=t,p=(0,x.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=xr(t.value,t.defaultValue??null,t.onChange),f=(0,x.useMemo)(()=>h?$e(Dt(h),p):null,[h,p]),v=(0,x.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[w,b]=xr((0,x.useMemo)(()=>t.focusedValue?za($e(Dt(t.focusedValue),p),o,l):void 0,[t.focusedValue,p,o,l]),(0,x.useMemo)(()=>za(t.defaultFocusedValue?$e(Dt(t.defaultFocusedValue),p):f||$e($i(v),p),o,l),[t.defaultFocusedValue,f,v,p,o,l]),t.onFocusChange),[D,j]=(0,x.useState)(()=>{switch(d){case"start":return or(w,i,r,o,l);case"end":return Ps(w,i,r,o,l);default:return Is(w,i,r,o,l)}}),[k,S]=(0,x.useState)(t.autoFocus||!1),N=(0,x.useMemo)(()=>{let R={...i};return R.days?R.days--:R.days=-1,D.add(R)},[D,i]),[y,C]=(0,x.useState)(p);if(!Oi(p,y)){let R=$e(w,p);j(Is(R,i,r,o,l)),b(R),C(p)}Rr(w,o,l)?b(za(w,o,l)):w.compare(D)<0?j(Ps(w,i,r,o,l)):w.compare(N)>0&&j(or(w,i,r,o,l));function _(R){R=za(R,o,l),b(R)}function E(R){if(!t.isDisabled&&!t.isReadOnly){let P=R;if(P===null){g(null);return}if(P=za(P,o,l),P=If(P,D,u),!P)return;P=$e(P,(h==null?void 0:h.calendar)||new kt),h&&"hour"in h?g(h.set(P)):g(P)}}let A=(0,x.useMemo)(()=>f?u&&u(f)?!0:Rr(f,o,l):!1,[f,u,o,l]),F=t.isInvalid||t.validationState==="invalid"||A,T=F?"invalid":null,M=(0,x.useMemo)(()=>c==="visible"?i:Ms(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:N},minValue:o,maxValue:l,focusedDate:w,timeZone:v,validationState:T,isValueInvalid:F,setFocusedDate(R){_(R),S(!0)},focusNextDay(){_(w.add({days:1}))},focusPreviousDay(){_(w.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(w.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(w.subtract({weeks:1}))},focusNextPage(){let R=D.add(M);b(za(w.add(M),o,l)),j(or(In(w,R,M,r,o,l),M,r))},focusPreviousPage(){let R=D.subtract(M);b(za(w.subtract(M),o,l)),j(or(In(w,R,M,r,o,l),M,r))},focusSectionStart(){i.days?_(D):i.weeks?_(jn(w,r)):(i.months||i.years)&&_(rr(w))},focusSectionEnd(){i.days?_(N):i.weeks?_(ww(w,r)):(i.months||i.years)&&_(Li(w))},focusNextSection(R){if(!R&&!i.days){_(w.add(Ms(i)));return}i.days?this.focusNextPage():i.weeks?_(w.add({months:1})):(i.months||i.years)&&_(w.add({years:1}))},focusPreviousSection(R){if(!R&&!i.days){_(w.subtract(Ms(i)));return}i.days?this.focusPreviousPage():i.weeks?_(w.subtract({months:1})):(i.months||i.years)&&_(w.subtract({years:1}))},selectFocusedDate(){u&&u(w)||E(w)},selectDate(R){E(R)},isFocused:k,setFocused:S,isInvalid(R){return Rr(R,o,l)},isSelected(R){return f!=null&&Je(R,f)&&!this.isCellDisabled(R)&&!this.isCellUnavailable(R)},isCellFocused(R){return k&&w&&Je(R,w)},isCellDisabled(R){return t.isDisabled||R.compare(D)<0||R.compare(N)>0||this.isInvalid(R)},isCellUnavailable(R){return t.isDateUnavailable?t.isDateUnavailable(R):!1},isPreviousVisibleRangeInvalid(){let R=D.subtract({days:1});return Je(R,D)||this.isInvalid(R)},isNextVisibleRangeInvalid(){let R=N.add({days:1});return Je(R,N)||this.isInvalid(R)},getDatesInWeek(R,P=D){let I=P.add({weeks:R}),O=[];I=jn(I,r,m);let V=ls(I,r,m);for(let $=0;$<V;$++)O.push(null);for(;O.length<7;){O.push(I);let $=I.add({days:1});if(Je(I,$))break;I=$}for(;O.length<7;)O.push(null);return O}}}function Ms(t){let e={...t};for(let a in t)e[a]=1;return e}function W2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:o={months:1},minValue:l,maxValue:d,...u}=t,[c,m]=xr(e,a||null,r),[p,h]=(0,x.useState)(null),g="center";if(c&&c.start&&c.end){let P=Is(Dt(c.start),o,i,l,d).add(o).subtract({days:1});c.end.compare(P)>0&&(g="start")}let f=(0,x.useRef)(null),[v,w]=(0,x.useState)(null),b=(0,x.useMemo)(()=>us(l,v==null?void 0:v.start),[l,v]),D=(0,x.useMemo)(()=>ds(d,v==null?void 0:v.end),[d,v]),j=Pf({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:o,minValue:b,maxValue:D,selectionAlignment:t.selectionAlignment||g}),k=P=>{P&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:Ff(P,j,-1),end:Ff(P,j,1)},w(f.current)):(f.current=null,w(null))},[S,N]=(0,x.useState)(j.visibleRange);(!os(j.visibleRange.start,S.start)||!os(j.visibleRange.end,S.end))&&(k(p),N(j.visibleRange));let y=P=>{P?(h(P),k(P)):(h(null),k(null))},C=p?Fs(p,j.focusedDate):c&&Fs(c.start,c.end),_=P=>{if(t.isReadOnly)return;let I=If(za(P,b,D),j.visibleRange.start,t.isDateUnavailable);if(I)if(!p)y(I);else{let O=Fs(p,I);O&&m({start:Mf(O.start,c==null?void 0:c.start),end:Mf(O.end,c==null?void 0:c.end)}),y(null)}},[E,A]=(0,x.useState)(!1),{isDateUnavailable:F}=t,T=(0,x.useMemo)(()=>!c||p?!1:F&&(F(c.start)||F(c.end))?!0:Rr(c.start,l,d)||Rr(c.end,l,d),[F,c,p,l,d]),M=t.isInvalid||t.validationState==="invalid"||T;return{...j,value:c,setValue:m,anchorDate:p,setAnchorDate:y,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(P){p&&j.setFocusedDate(P)},isSelected(P){return!!(C&&P.compare(C.start)>=0&&P.compare(C.end)<=0&&!j.isCellDisabled(P)&&!j.isCellUnavailable(P))},isInvalid(P){var I,O;return j.isInvalid(P)||Rr(P,(I=f.current)==null?void 0:I.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:A}}function Fs(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:Dt(t),end:Dt(e)})}function Mf(t,e){return t=$e(t,(e==null?void 0:e.calendar)||new kt),e&&"hour"in e?e.set(t):t}function Ff(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 zs(t){let[e,a]=xr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,x.useCallback)(()=>{a(!0)},[a]),close:(0,x.useCallback)(()=>{a(!1)},[a]),toggle:(0,x.useCallback)(()=>{a(!e)},[a,e])}}var zf={};zf={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 Vf={};Vf={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 Of={};Of={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 $f={};$f={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 Bf={};Bf={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 Lf={};Lf={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 Hf={};Hf={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 Wf={};Wf={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 Uf={};Uf={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 Kf={};Kf={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 Zf={};Zf={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 qf={};qf={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 Yf={};Yf={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 Qf={};Qf={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 Jf={};Jf={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 Xf={};Xf={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 eg={};eg={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 tg={};tg={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 ag={};ag={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 rg={};rg={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 ng={};ng={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 ig={};ig={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 og={};og={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 lg={};lg={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 sg={};sg={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 dg={};dg={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 ug={};ug={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 cg={};cg={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 mg={};mg={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 pg={};pg={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 hg={};hg={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 fg={};fg={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 gg={};gg={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 xg={};xg={"ar-AE":zf,"bg-BG":Vf,"cs-CZ":Of,"da-DK":$f,"de-DE":Bf,"el-GR":Lf,"en-US":Hf,"es-ES":Wf,"et-EE":Uf,"fi-FI":Kf,"fr-FR":Zf,"he-IL":qf,"hr-HR":Yf,"hu-HU":Gf,"it-IT":Qf,"ja-JP":Jf,"ko-KR":Xf,"lt-LT":eg,"lv-LV":tg,"nb-NO":ag,"nl-NL":rg,"pl-PL":ng,"pt-BR":ig,"pt-PT":og,"ro-RO":lg,"ru-RU":sg,"sk-SK":dg,"sl-SI":ug,"sr-SP":cg,"sv-SE":mg,"tr-TR":pg,"uk-UA":hg,"zh-CN":fg,"zh-TW":gg};function U2(t){return t&&t.__esModule?t.default:t}var vg=new Dl(U2(xg));function yg(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function to(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,o=t!=null&&e!=null&&t.compare(e)<0,l=t!=null&&(r==null?void 0:r(t))||!1,d=i||o||l,u=[];if(d){let c=yg(),m=new g6(c,Dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||vg),p=new ra(c,ja({},n)),h=p.resolvedOptions().timeZone;o&&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))})),l&&u.push(m.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function K2(t,e,a,r,n){let i=kl(to((t==null?void 0:t.start)??null,e,a,r,n),to((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 o=Dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||vg;i=kl(i,{isInvalid:!0,validationErrors:[o.getStringForLocale("rangeReversed",yg())],validationDetails:{...f6,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var Z2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},q2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ja(t,e){t={...e.shouldForceLeadingZeros?q2:Z2,...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 o=r.slice(n,i+1).reduce((l,d)=>(l[d]=t[d],l),{});return e.hourCycle!=null&&(o.hour12=e.hourCycle===12),o.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(o.timeZoneName="short"),e.showEra&&n===0&&(o.era="short"),o}function Tr(t){return t&&"hour"in t?t:new Lw}function bg(t,e){if(t===null)return null;if(t)return $e(t,e)}function Pn(t,e,a,r){if(t)return bg(t,a);let n=$e(Im(r??Bi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?Dt(n):r?n:ia(n)}function Vs(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,x.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let o=t?a:n[1];return[e,o]}function Y2(t){let e=zs(t),[a,r]=xr(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),i=a||t.placeholderValue||null,[o,l]=Vs(i,t.granularity),d=a==null?null:a.toDate(l??"UTC"),u=o==="hour"||o==="minute"||o==="second",c=t.shouldCloseOnSelect??!0,[m,p]=(0,x.useState)(null),[h,g]=(0,x.useState)(null);if(a&&(m=a,"hour"in a&&(h=a)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",v=(0,x.useMemo)(()=>({granularity:o,timeZone:l,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[o,t.hourCycle,t.shouldForceLeadingZeros,l,t.hideTimeZone,f]),{minValue:w,maxValue:b,isDateUnavailable:D}=t,j=(0,x.useMemo)(()=>to(a,w,b,D,v),[a,w,b,D,v]),k=hc({...t,value:a,builtinValidation:j}),S=k.displayValidation.isInvalid,N=t.validationState||(S?"invalid":null),y=(E,A)=>{r("timeZone"in A?A.set(Dt(E)):ia(E,A)),p(null),g(null),k.commitValidation()},C=E=>{let A=typeof c=="function"?c():c;u?h||A?y(E,h||Tr(t.defaultValue||t.placeholderValue)):p(E):(r(E),k.commitValidation()),A&&e.setOpen(!1)},_=E=>{m&&E?y(m,E):g(E)};return{...k,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:m,timeValue:h,setDateValue:C,setTimeValue:_,granularity:o,hasTime:u,...e,setOpen(E){!E&&!a&&m&&u&&y(m,h||Tr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:N,isInvalid:S,formatValue(E,A){return d?new ra(E,ja(A,v)).format(d):""},getDateFormatter(E,A){return new ra(E,ja({},{...v,...A}))}}}var G2=new Dl({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 Q2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?G2.getStringForLocale(t,a):"\u2013\u2013"}var ao={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},wg={year:5,month:2,day:7,hour:2,minute:15,second:15},Dg={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function J2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:o=!1,minValue:l,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[m,p]=Vs(c,t.granularity),h=p||"UTC";if(c&&!(m in c))throw Error("Invalid granularity "+m+" for value "+c.toString());let g=(0,x.useMemo)(()=>new ra(e),[e]),f=(0,x.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[v,w]=xr(t.value,t.defaultValue??null,t.onChange),[b]=(0,x.useState)(v),D=(0,x.useMemo)(()=>bg(v,f)??null,[v,f]),[j,k]=(0,x.useState)(()=>Pn(t.placeholderValue,m,f,p)),S=D||j,N=f.identifier==="gregory"&&S.era==="BC",y=(0,x.useMemo)(()=>({granularity:m,maxGranularity:t.maxGranularity??"year",timeZone:p,hideTimeZone:r,hourCycle:t.hourCycle,showEra:N,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,m,t.hourCycle,t.shouldForceLeadingZeros,p,r,N]),C=(0,x.useMemo)(()=>ja({},y),[y]),_=(0,x.useMemo)(()=>new ra(e,C),[e,C]),E=(0,x.useMemo)(()=>_.resolvedOptions(),[_]),A=(0,x.useMemo)(()=>_.formatToParts(new Date).filter(Y=>ao[Y.type]).reduce((Y,L)=>(Y[Dg[L.type]||L.type]=!0,Y),{}),[_]),[F,T]=(0,x.useState)(()=>t.value||t.defaultValue?{...A}:{}),M=(0,x.useRef)(null),R=(0,x.useRef)(f);(0,x.useEffect)(()=>{Oi(f,R.current)||(R.current=f,k(Y=>Object.keys(F).length>0?$e(Y,f):Pn(t.placeholderValue,m,f,p)))},[f,m,F,p,t.placeholderValue]),v&&Object.keys(F).length<Object.keys(A).length&&(F={...A},T(F)),v==null&&Object.keys(F).length===Object.keys(A).length&&(F={},T(F),k(Pn(t.placeholderValue,m,f,p)));let P=D&&Object.keys(F).length>=Object.keys(A).length?D:j,I=Y=>{if(t.isDisabled||t.isReadOnly)return;let L=Object.keys(F),ne=Object.keys(A);Y==null?(w(null),k(Pn(t.placeholderValue,m,f,p)),T({})):L.length===0&&M.current==null||L.length>=ne.length||L.length===ne.length-1&&A.dayPeriod&&!F.dayPeriod&&M.current!=="dayPeriod"?(L.length===0&&(F={...A},T(F)),Y=$e(Y,(c==null?void 0:c.calendar)||new kt),w(Y)):k(Y),M.current=null},O=(0,x.useMemo)(()=>P.toDate(h),[P,h]),V=(0,x.useMemo)(()=>X2(O,F,_,E,P,f,e,m),[O,F,_,E,P,f,e,m]);A.era&&F.year&&!F.era?(F.era=!0,T({...F})):!A.era&&F.era&&(delete F.era,T({...F}));let $=Y=>{F[Y]=!0,Y==="year"&&A.era&&(F.era=!0),T({...F})},Q=(Y,L)=>{if(F[Y])I(e4(P,Y,L,E));else{$(Y);let ne=Object.keys(F),re=Object.keys(A);(ne.length>=re.length||ne.length===re.length-1&&A.dayPeriod&&!F.dayPeriod)&&I(P)}},X=(0,x.useMemo)(()=>to(v,l,d,u,y),[v,l,d,u,y]),ae=hc({...t,value:v,builtinValidation:X}),me=ae.displayValidation.isInvalid,le=t.validationState||(me?"invalid":null);return{...ae,value:D,defaultValue:t.defaultValue??b,dateValue:O,calendar:f,setValue:I,segments:V,dateFormatter:_,validationState:le,isInvalid:me,granularity:m,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:o,increment(Y){Q(Y,1)},decrement(Y){Q(Y,-1)},incrementPage(Y){Q(Y,wg[Y]||1)},decrementPage(Y){Q(Y,-(wg[Y]||1))},setSegment(Y,L){$(Y),I(t4(P,Y,L,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let Y=Object.keys(F),L=Object.keys(A);Y.length===L.length-1&&A.dayPeriod&&!F.dayPeriod&&(F={...A},T(F),I(P.copy()))},clearSegment(Y){delete F[Y],M.current=Y,T({...F});let L=Pn(t.placeholderValue,m,f,p),ne=P;if(Y==="dayPeriod"&&"hour"in P&&"hour"in L){let re=P.hour>=12,oe=L.hour>=12;re&&!oe?ne=P.set({hour:P.hour-12}):!re&&oe&&(ne=P.set({hour:P.hour+12}))}else Y==="hour"&&"hour"in P&&P.hour>=12&&F.dayPeriod?ne=P.set({hour:L.hour+12}):Y in P&&(ne=P.set({[Y]:L[Y]}));w(null),I(ne)},formatValue(Y){return D?new ra(e,ja(Y,y)).format(O):""},getDateFormatter(Y,L){return new ra(Y,ja({},{...y,...L}))}}}function X2(t,e,a,r,n,i,o,l){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let m of u){let p=Dg[m.type]||m.type,h=ao[p];p==="era"&&i.getEras().length===1&&(h=!1);let g=ao[p]&&!e[p],f=ao[p]?Q2(p,m.value,o):null,v={type:p,text:g?f:m.value,...ro(n,p,r),isPlaceholder:g,placeholder:f,isEditable:h};p==="hour"?(c.push({type:"literal",text:"\u2066",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(v),p===l&&c.push({type:"literal",text:"\u2069",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(p)&&p===l?(c.push(v),c.push({type:"literal",text:"\u2069",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(v)}return c}function ro(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:yw(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:bw(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 e4(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 t4(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 a4(t){var F,T;let e=zs(t),[a,r]=xr(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),[i,o]=(0,x.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},o(i));let l=a||i,d=M=>{l=M||{start:null,end:null},o(l),lr(l)?r(l):r(null)},[u,c]=Vs((l==null?void 0:l.start)||(l==null?void 0:l.end)||t.placeholderValue||null,t.granularity),m=u==="hour"||u==="minute"||u==="second",p=t.shouldCloseOnSelect??!0,[h,g]=(0,x.useState)(null),[f,v]=(0,x.useState)(null);l&&lr(l)&&(h=l,"hour"in l.start&&(f=l));let w=(M,R)=>{d({start:"timeZone"in R.start?R.start.set(Dt(M.start)):ia(M.start,R.start),end:"timeZone"in R.end?R.end.set(Dt(M.end)):ia(M.end,R.end)}),g(null),v(null),_.commitValidation()},b=M=>{let R=typeof p=="function"?p():p;m?lr(M)&&(R||f!=null&&f.start&&(f!=null&&f.end))?w(M,{start:(f==null?void 0:f.start)||Tr(t.placeholderValue),end:(f==null?void 0:f.end)||Tr(t.placeholderValue)}):g(M):lr(M)?(d(M),_.commitValidation()):g(M),R&&e.setOpen(!1)},D=M=>{lr(h)&&lr(M)?w(h,M):v(M)},j=((F=l==null?void 0:l.start)==null?void 0:F.calendar.identifier)==="gregory"&&l.start.era==="BC"||((T=l==null?void 0:l.end)==null?void 0:T.calendar.identifier)==="gregory"&&l.end.era==="BC",k=(0,x.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:S,maxValue:N,isDateUnavailable:y}=t,C=(0,x.useMemo)(()=>K2(l,S,N,y,k),[l,S,N,y,k]),_=hc({...t,value:a,name:(0,x.useMemo)(()=>[t.startName,t.endName].filter(M=>M!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,A=t.validationState||(E?"invalid":null);return{..._,value:l,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:m,setDate(M,R){b(M==="start"?{start:R,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:R})},setTime(M,R){D(M==="start"?{start:R,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:R})},setDateTime(M,R){d(M==="start"?{start:R,end:(l==null?void 0:l.end)??null}:{start:(l==null?void 0:l.start)??null,end:R})},setDateRange:b,setTimeRange:D,...e,setOpen(M){!M&&!(l!=null&&l.start&&(l!=null&&l.end))&&lr(h)&&m&&w(h,{start:(f==null?void 0:f.start)||Tr(t.placeholderValue),end:(f==null?void 0:f.end)||Tr(t.placeholderValue)}),e.setOpen(M)},validationState:A,isInvalid:E,formatValue(M,R){if(!l||!l.start||!l.end)return null;let P="timeZone"in l.start?l.start.timeZone:void 0,I=t.granularity||(l.start&&"minute"in l.start?"minute":"day"),O="timeZone"in l.end?l.end.timeZone:void 0,V=t.granularity||(l.end&&"minute"in l.end?"minute":"day"),$=ja(R,{granularity:I,timeZone:P,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Q=l.start.toDate(P||"UTC"),X=l.end.toDate(O||"UTC"),ae=new ra(M,$),me;if(P===O&&I===V&&l.start.compare(l.end)!==0){try{let le=ae.formatRangeToParts(Q,X),Y=-1;for(let re=0;re<le.length;re++){let oe=le[re];if(oe.source==="shared"&&oe.type==="literal")Y=re;else if(oe.source==="endRange")break}let L="",ne="";for(let re=0;re<le.length;re++)re<Y?L+=le[re].value:re>Y&&(ne+=le[re].value);return{start:L,end:ne}}catch{}me=ae}else me=new ra(M,ja(R,{granularity:V,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ae.format(Q),end:me.format(X)}},getDateFormatter(M,R){return new ra(M,ja({},{...k,...R}))}}}function lr(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var no=(0,x.createContext)(null),io=(0,x.createContext)(null),oo=(0,x.createContext)(null),Mn=(0,x.createContext)(null),r4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,no);let{locale:a}=at(),r=Pf({...t,locale:a,createCalendar:t.createCalendar||Ss}),{calendarProps:n,prevButtonProps:i,nextButtonProps:o,errorMessageProps:l,title:d}=N2(t,r),u=Qa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=gt(t,{global:!0});return x.createElement("div",{...ot(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(ln,{values:[[dn,{slots:{previous:i,next:o}}],[hl,{"aria-hidden":!0,level:2,children:d}],[oo,r],[no,t],[yi,{slots:{errorMessage:l}}]]},x.createElement(fi,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(fi,null,x.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),n4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,io);let{locale:a}=at(),r=W2({...t,locale:a,createCalendar:t.createCalendar||Ss}),{calendarProps:n,prevButtonProps:i,nextButtonProps:o,errorMessageProps:l,title:d}=E2(t,r,e),u=Qa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=gt(t,{global:!0});return x.createElement("div",{...ot(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(ln,{values:[[dn,{slots:{previous:i,next:o}}],[hl,{"aria-hidden":!0,level:2,children:d}],[Mn,r],[io,t],[yi,{slots:{errorMessage:l}}]]},x.createElement(fi,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(fi,null,x.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),lo=(0,x.createContext)(null),i4=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(oo),r=(0,x.useContext)(Mn),n=_l(no),i=_l(io),o=a??r,l=o.visibleRange.start;t.offset&&(l=l.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}=_2({startDate:l,endDate:Li(l),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),h=gt(t,{global:!0});return x.createElement(lo.Provider,{value:{headerProps:c,weekDays:m,startDate:l,weeksInMonth:p}},x.createElement("table",{...ot(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?x.createElement(x.Fragment,null,x.createElement(jg,null,g=>x.createElement(Cg,null,g)),x.createElement(kg,null,t.children)):t.children))});function o4(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:o}=(0,x.useContext)(lo),l=gt(t,{global:!0});return x.createElement("thead",{...ot(l,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},x.createElement("tr",null,o.map((d,u)=>x.cloneElement(a(d),{key:u}))))}var jg=(0,x.forwardRef)(o4);function l4(t,e){let{children:a,style:r,className:n}=t,i=gt(t,{global:!0});return x.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Cg=(0,x.forwardRef)(l4);function s4(t,e){let{children:a,style:r,className:n}=t,i=(0,x.useContext)(oo),o=(0,x.useContext)(Mn),l=i??o,{startDate:d,weeksInMonth:u}=(0,x.useContext)(lo),c=gt(t,{global:!0});return x.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(m=>x.createElement("tr",{key:m},l.getDatesInWeek(m,d).map((p,h)=>p?x.cloneElement(a(p),{key:h}):x.createElement("td",{key:h})))))}var kg=(0,x.forwardRef)(s4),d4=(0,x.forwardRef)(function({date:t,...e},a){let r=(0,x.useContext)(oo),n=(0,x.useContext)(Mn),i=r??n,{startDate:o}=(0,x.useContext)(lo)??{startDate:i.visibleRange.start},l=!gw(o,t),d=Am(t,i.timeZone),u=(0,x.useRef)(null),{cellProps:c,buttonProps:m,...p}=T2({date:t,isOutsideMonth:l},i,u),{hoverProps:h,isHovered:g}=Gv({...e,isDisabled:p.isDisabled}),{focusProps:f,isFocusVisible:v}=jl();v&&(v=p.isFocused);let w=!1,b=!1;"highlightedRange"in i&&i.highlightedRange&&(w=Je(t,i.highlightedRange.start),b=Je(t,i.highlightedRange.end));let D=Qa({...e,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:l,isFocusVisible:v,isSelectionStart:w,isSelectionEnd:b,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":v||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":l||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":w||void 0,"data-selection-end":b||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},k=gt(e,{global:!0});return x.createElement("td",{...c,ref:a},x.createElement("div",{...ot(k,m,f,h,j,D),ref:u}))}),u4=(0,x.createContext)({placement:"bottom"}),Os=(0,x.createContext)(null),Sg=(0,x.createContext)(null),c4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,Os);let a=(0,x.useContext)(so),r=zs(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=nw(e,n.isOpen)||t.isExiting||!1,o=h6(),{direction:l}=at();if(o){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,d)}return n&&!n.isOpen&&!i?null:x.createElement(m4,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:l})});function m4({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,x.useRef)(null),o=(0,x.useRef)(null),l=(0,x.useContext)(Sg),d=l&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:m,placement:p,triggerAnchorPoint:h}=D2({...n,offset:n.offset??8,arrowRef:i,groupRef:d?l:o},t),g=n.popoverRef,f=rw(g,!!p)||n.isEntering||!1,v=Qa({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:p,isEntering:f,isExiting:e}}),w=!n.isNonModal||n.trigger==="SubmenuTrigger",[b,D]=(0,x.useState)(!1);Ta(()=>{g.current&&D(w&&!g.current.querySelector("[role=dialog]"))},[g,w]),(0,x.useEffect)(()=>{b&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&pc(g.current)},[b,g,n.trigger]);let j=(0,x.useMemo)(()=>{let N=v.children;if(r)for(let y of r)N=x.createElement(y.Provider,{value:null},N);return N},[v.children,r]),k={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style},S=x.createElement("div",{...ot(gt(n,{global:!0}),u),...v,role:b?"dialog":void 0,tabIndex:b?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:k,dir:n.dir,"data-trigger":n.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&x.createElement(uh,{onDismiss:t.close}),x.createElement(u4.Provider,{value:{...m,placement:p,ref:i}},j),x.createElement(uh,{onDismiss:t.close}));return d?x.createElement(mh,{...n,shouldContainFocus:b,isExiting:e,portalContainer:a??(l==null?void 0:l.current)??void 0},S):x.createElement(mh,{...n,shouldContainFocus:b,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&x.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),x.createElement("div",{ref:o,style:{display:"contents"}},x.createElement(Sg.Provider,{value:o},S)))}var $s=(0,x.createContext)(null),so=(0,x.createContext)(null),p4=(0,x.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ja(t,e,$s);let{dialogProps:r,titleProps:n}=H2({...t,"aria-labelledby":a},e),i=(0,x.useContext)(so);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let o=Qa({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=gt(t,{global:!0});return x.createElement("section",{...ot(l,o,r),ref:e,slot:t.slot||void 0},x.createElement(ln,{values:[[hl,{slots:{[Yv]:{},title:{...n,level:2}}}],[dn,{slots:{[Yv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},o.children))}),h4=["day","month","year"],f4={hour:1,minute:2,second:3};function g4(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=hR({style:{position:"fixed",top:0,left:0}}),o=60;e.granularity==="second"?o=1:e.granularity==="hour"&&(o=3600);let l=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=f4[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:o,value:l,onChange:m=>{let p=m.target.value.toString();if(p)try{let h=Ui(p);if(e.granularity==="day"&&(h=Ma(p)),"setSegment"in e)for(let g in h)h4.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function x4(t){let{state:e}=t,{containerProps:a,inputProps:r}=g4({...t},e);return x.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},x.createElement("input",r))}var Bs=(0,x.createContext)(null),uo=(0,x.createContext)(null),Ls=(0,x.createContext)(null),v4=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(uo),r=(0,x.useContext)(Ls);return a||r?x.createElement(Ng,{...t,ref:e}):x.createElement(y4,{...t,ref:e})}),y4=(0,x.forwardRef)((t,e)=>{let[a,r]=Ja({slot:t.slot},e,Bs),{locale:n}=at(),i=J2({...a,locale:n,createCalendar:Ss}),o=(0,x.useRef)(null),{fieldProps:l,inputProps:d}=I2({...a,inputRef:o},i,r);return x.createElement(ln,{values:[[uo,i],[E6,{...d,ref:o}],[Rl,{...l,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},x.createElement(Ng,t))}),Ng=(0,x.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,x.useContext)(uo),i=(0,x.useContext)(Ls),o=n??i;return x.createElement(x.Fragment,null,x.createElement(C6,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((l,d)=>(0,x.cloneElement)(r(l),{key:d}))),x.createElement(w6,null))}),b4=(0,x.forwardRef)(function({segment:t,...e},a){let r=(0,x.useContext)(uo),n=(0,x.useContext)(Ls),i=r??n,o=N6(a),{segmentProps:l}=O2(t,i,o),{focusProps:d,isFocused:u,isFocusVisible:c}=jl(),{hoverProps:m,isHovered:p}=Gv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Qa({...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 x.createElement("span",{...ot(gt(e,{global:!0}),l,d,m),...h,style:l.style,ref:o,"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})}),w4=(0,x.createContext)(null),D4=(0,x.createContext)(null),j4=(0,x.createContext)(null),C4=(0,x.createContext)(null),Eg=[Rl,dn,yc,yi],k4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,w4);let{validationBehavior:a}=_l(Xv)||{},r=t.validationBehavior??a??"native",n=Y2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[o,l]=Jv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:m,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:f,...v}=M2({...ey(t),label:l,validationBehavior:r},n,i),[w,b]=(0,x.useState)(null);Mi({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&b(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:k}=jl({within:!0}),S=Qa({...t,values:{state:n,isFocusWithin:j,isFocusVisible:k,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),N=gt(t,{global:!0});return delete N.id,x.createElement(ln,{values:[[j4,n],[Rl,{...d,ref:i,isInvalid:n.isInvalid}],[Bs,c],[dn,{...m,isPressed:n.isOpen}],[yc,{...u,ref:o,elementType:"span"}],[no,h],[so,n],[Os,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:Eg}],[$s,p],[yi,{slots:{description:g,errorMessage:f}}],[ty,v]]},x.createElement("div",{...ot(N,S,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":k||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),x.createElement(x4,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),S4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,D4);let{validationBehavior:a}=_l(Xv)||{},r=t.validationBehavior??a??"native",n=a4({...t,validationBehavior:r}),i=(0,x.useRef)(null),[o,l]=Jv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:m,buttonProps:p,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:v,...w}=L2({...ey(t),label:l,validationBehavior:r},n,i),[b,D]=(0,x.useState)(null);Mi({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:k,isFocusVisible:S}=jl({within:!0}),N=Qa({...t,values:{state:n,isFocusWithin:k,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=gt(t,{global:!0});return delete y.id,x.createElement(ln,{values:[[C4,n],[Rl,{...d,ref:i,isInvalid:n.isInvalid}],[dn,{...p,isPressed:n.isOpen}],[yc,{...u,ref:o,elementType:"span"}],[io,g],[so,n],[Os,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:Eg}],[$s,h],[Bs,{slots:{start:c,end:m}}],[yi,{slots:{description:f,errorMessage:v}}],[ty,w]]},x.createElement("div",{...ot(y,N,j),ref:e,slot:t.slot||void 0,"data-focus-within":k||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}))}),N4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,hl);let{children:a,level:r=3,className:n,...i}=t,o=`h${r}`;return x.createElement(o,{...i,ref:e,className:n??"react-aria-Heading"},a)}),E4=Na(pi(),1),Hs="ToastProvider",[Ws,_4,R4]=Fl("Toast"),[_g,DI]=bc("Toast",[R4]),[T4,co]=_g(Hs),Rg=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:o}=t,[l,d]=x.useState(null),[u,c]=x.useState(0),m=x.useRef(!1),p=x.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hs}\`. Expected non-empty \`string\`.`),(0,s.jsx)(Ws.Provider,{scope:e,children:(0,s.jsx)(T4,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:d,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:p,children:o})})};Rg.displayName=Hs;var Tg="ToastViewport",A4=["F8"],Us="toast.viewportPause",Ks="toast.viewportResume",Ag=x.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=A4,label:n="Notifications ({hotkey})",...i}=t,o=co(Tg,a),l=_4(a),d=x.useRef(null),u=x.useRef(null),c=x.useRef(null),m=x.useRef(null),p=Mt(e,m,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;x.useEffect(()=>{let v=w=>{var b;r.length!==0&&r.every(D=>w[D]||w.code===D)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{let v=d.current,w=m.current;if(g&&v&&w){let b=()=>{if(!o.isClosePausedRef.current){let S=new CustomEvent(Us);w.dispatchEvent(S),o.isClosePausedRef.current=!0}},D=()=>{if(o.isClosePausedRef.current){let S=new CustomEvent(Ks);w.dispatchEvent(S),o.isClosePausedRef.current=!1}},j=S=>{v.contains(S.relatedTarget)||D()},k=()=>{v.contains(document.activeElement)||D()};return v.addEventListener("focusin",b),v.addEventListener("focusout",j),v.addEventListener("pointermove",b),v.addEventListener("pointerleave",k),window.addEventListener("blur",b),window.addEventListener("focus",D),()=>{v.removeEventListener("focusin",b),v.removeEventListener("focusout",j),v.removeEventListener("pointermove",b),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",b),window.removeEventListener("focus",D)}}},[g,o.isClosePausedRef]);let f=x.useCallback(({tabbingDirection:v})=>{let w=l().map(b=>{let D=b.ref.current,j=[D,...U4(D)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?w.reverse():w).flat()},[l]);return x.useEffect(()=>{let v=m.current;if(v){let w=b=>{var j,k,S;let D=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!D){let N=document.activeElement,y=b.shiftKey;if(b.target===v&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===N);Ys(C.slice(_+1))?b.preventDefault():y?(k=u.current)==null||k.focus():(S=c.current)==null||S.focus()}};return v.addEventListener("keydown",w),()=>v.removeEventListener("keydown",w)}},[l,f]),(0,s.jsxs)(J6,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(Zs,{ref:u,onFocusFromOutsideViewport:()=>{Ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(Ws.Slot,{scope:a,children:(0,s.jsx)(Ge.ol,{tabIndex:-1,...i,ref:p})}),g&&(0,s.jsx)(Zs,{ref:c,onFocusFromOutsideViewport:()=>{Ys(f({tabbingDirection:"backwards"}))}})]})});Ag.displayName=Tg;var Ig="ToastFocusProxy",Zs=x.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=co(Ig,a);return(0,s.jsx)(cy,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:o=>{var d;let l=o.relatedTarget;(d=i.viewport)!=null&&d.contains(l)||r()}})});Zs.displayName=Ig;var Fn="Toast",I4="toast.swipeStart",P4="toast.swipeMove",M4="toast.swipeCancel",F4="toast.swipeEnd",Pg=x.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...o}=t,[l,d]=Pl({prop:r,defaultProp:n??!0,onChange:i,caller:Fn});return(0,s.jsx)(wi,{present:a||l,children:(0,s.jsx)(O4,{open:l,...o,ref:e,onClose:()=>d(!1),onPause:aa(t.onPause),onResume:aa(t.onResume),onSwipeStart:Re(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(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:Re(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:Re(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)})})})});Pg.displayName=Fn;var[z4,V4]=_g(Fn,{onClose(){}}),O4=x.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:o,onEscapeKeyDown:l,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:m,onSwipeCancel:p,onSwipeEnd:h,...g}=t,f=co(Fn,a),[v,w]=x.useState(null),b=Mt(e,T=>w(T)),D=x.useRef(null),j=x.useRef(null),k=n||f.duration,S=x.useRef(0),N=x.useRef(k),y=x.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=aa(()=>{var T;v!=null&&v.contains(document.activeElement)&&((T=f.viewport)==null||T.focus()),o()}),A=x.useCallback(T=>{!T||T===1/0||(window.clearTimeout(y.current),S.current=new Date().getTime(),y.current=window.setTimeout(E,T))},[E]);x.useEffect(()=>{let T=f.viewport;if(T){let M=()=>{A(N.current),u==null||u()},R=()=>{let P=new Date().getTime()-S.current;N.current-=P,window.clearTimeout(y.current),d==null||d()};return T.addEventListener(Us,R),T.addEventListener(Ks,M),()=>{T.removeEventListener(Us,R),T.removeEventListener(Ks,M)}}},[f.viewport,k,d,u,A]),x.useEffect(()=>{i&&!f.isClosePausedRef.current&&A(k)},[i,k,f.isClosePausedRef,A]),x.useEffect(()=>(C(),()=>_()),[C,_]);let F=x.useMemo(()=>v?Bg(v):null,[v]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[F&&(0,s.jsx)($4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:F}),(0,s.jsx)(z4,{scope:a,onClose:E,children:E4.createPortal((0,s.jsx)(Ws.ItemSlot,{scope:a,children:(0,s.jsx)(Y6,{asChild:!0,onEscapeKeyDown:Re(l,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(Ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Re(t.onKeyDown,T=>{T.key==="Escape"&&(l==null||l(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Re(t.onPointerDown,T=>{T.button===0&&(D.current={x:T.clientX,y:T.clientY})}),onPointerMove:Re(t.onPointerMove,T=>{if(!D.current)return;let M=T.clientX-D.current.x,R=T.clientY-D.current.y,P=!!j.current,I=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,V=I?O(0,M):0,$=I?0:O(0,R),Q=T.pointerType==="touch"?10:2,X={x:V,y:$},ae={originalEvent:T,delta:X};P?(j.current=X,mo(P4,m,ae,{discrete:!1})):Lg(X,f.swipeDirection,Q)?(j.current=X,mo(I4,c,ae,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(M)>Q||Math.abs(R)>Q)&&(D.current=null)}),onPointerUp:Re(t.onPointerUp,T=>{let M=j.current,R=T.target;if(R.hasPointerCapture(T.pointerId)&&R.releasePointerCapture(T.pointerId),j.current=null,D.current=null,M){let P=T.currentTarget,I={originalEvent:T,delta:M};Lg(M,f.swipeDirection,f.swipeThreshold)?mo(F4,h,I,{discrete:!0}):mo(M4,p,I,{discrete:!0}),P.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),$4=t=>{let{__scopeToast:e,children:a,...r}=t,n=co(Fn,e),[i,o]=x.useState(!1),[l,d]=x.useState(!1);return H4(()=>o(!0)),x.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:(0,s.jsx)(q6,{asChild:!0,children:(0,s.jsx)(cy,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},B4="ToastTitle",Mg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ge.div,{...r,ref:e})});Mg.displayName=B4;var L4="ToastDescription",Fg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ge.div,{...r,ref:e})});Fg.displayName=L4;var zg="ToastAction",Vg=x.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)($g,{altText:a,asChild:!0,children:(0,s.jsx)(qs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${zg}\`. Expected non-empty \`string\`.`),null)});Vg.displayName=zg;var Og="ToastClose",qs=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=V4(Og,a);return(0,s.jsx)($g,{asChild:!0,children:(0,s.jsx)(Ge.button,{type:"button",...r,ref:e,onClick:Re(t.onClick,n.onClose)})})});qs.displayName=Og;var $g=x.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function Bg(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),W4(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(...Bg(a))}}),e}function mo(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?wc(n,i):n.dispatchEvent(i)}var Lg=(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 H4(t=()=>{}){let e=aa(t);Il(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function W4(t){return t.nodeType===t.ELEMENT_NODE}function U4(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 K4=Rg,Hg=Ag,Wg=Pg,Ug=Mg,Kg=Fg,Zg=Vg,qg=qs,Ar=ee(),Z4=K4,Yg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Hg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Yg.displayName=Hg.displayName;var q4=xl("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=x.forwardRef((t,e)=>{let a=(0,Ar.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 o=i||"default",l;a[4]!==r||a[5]!==o?(l=q(q4({variant:o}),"print:hidden",r),a[4]=r,a[5]=o,a[6]=l):l=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==l?(d=(0,s.jsx)(Wg,{ref:e,className:l,...n}),a[7]=n,a[8]=e,a[9]=l,a[10]=d):d=a[10],d});Gg.displayName=Wg.displayName;var Y4=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Zg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Y4.displayName=Zg.displayName;var Qg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;a[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(on,{className:"h-4 w-4"}),a[5]=o):o=a[5];let l;return a[6]!==n||a[7]!==e||a[8]!==i?(l=(0,s.jsx)(qg,{ref:e,className:i,"toast-close":"",...n,children:o}),a[6]=n,a[7]=e,a[8]=i,a[9]=l):l=a[9],l});Qg.displayName=qg.displayName;var Jg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("text-sm font-semibold",r),a[3]=r,a[4]=i);let o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Ug,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Jg.displayName=Ug.displayName;var Xg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("text-sm opacity-90",r),a[3]=r,a[4]=i);let o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Kg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Xg.displayName=Kg.displayName;var G4=ee();const Q4=()=>{let t=(0,G4.c)(5),{toasts:e}=H6(),a;t[0]===e?a=t[1]:(a=e.map(J4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(Yg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(Z4,{children:[a,r]}),t[3]=a,t[4]=n),n};function J4(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)(Jg,{children:a}),r&&(0,s.jsx)(Xg,{children:r})]}),n,(0,s.jsx)(Qg,{})]},e)}var X4=ee();const Gs=t=>{let e=(0,X4.c)(5),{children:a}=t,r=dl(DR),n;e[0]===r?n=e[1]:(n=eD(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(yA,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function eD(t){return t&&tD(t)?t:navigator.language}function tD(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var e0=ee(),t0=Pi(()=>Rt(()=>import("./home-page-CjvlAi7I.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,126,127,128,129]),import.meta.url)),a0=Pi(()=>Rt(()=>import("./run-page-DCXZJWt4.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([130,131,132,4,133,13,8,9,10,134,135,136,137,27,3,5,6,7,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,68,69,70,71,72,113,138,139,77,140,111,82,81,87,86,88,89,90,91,92,78,79,75,76,93,141,142,143,100,104,73,144,145,146,147,148,149,150,151,85,94,152,99,153,96,97,154,98,155,118,119,120,122,124,156,157,158,103,159,160,161,162,163,164,165,166,167,168,169,105,170,84,95,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,277,278,279,280,101,102,281,282,283,284,285,286,287,288,289,290,291]),import.meta.url)),r0=Pi(()=>Rt(()=>import("./edit-page-CV9biTVQ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([292,4,293,10,131,132,133,13,8,9,134,135,136,137,27,3,5,6,7,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,68,69,70,71,72,113,138,139,77,140,111,82,81,87,86,88,89,90,91,92,78,79,75,76,93,141,142,143,100,104,73,144,145,146,147,148,149,150,151,85,94,152,99,153,96,97,154,98,155,118,119,120,122,124,156,157,158,103,159,160,161,162,163,164,165,166,167,168,169,105,170,84,95,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,277,278,279,280,101,102,281,282,283,284,285,286,287,288,289,2,74,80,83,106,107,108,1,109,110,112,294,295,114,117,296,297,115,116,298,299,300,301,302,303,304,305,306,128,307,308,309,310,129,311,312,313,121,291,314,315,127,316,317,318,319,320,321,322,323,324,325,326,327]),import.meta.url)),n0=Pi(()=>Rt(()=>import("./gallery-page-Dwy7ttw7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([328,113,12,13,8,9,10,6,7,11,36,73,20,80,14,15,87,86,25,26,27,66,67,42,68,88,48,28,89,90,91,92,21,37,38,97,98,82,99,31,51]),import.meta.url));function aD(t){switch(t){case"home":t0.preload();break;case"gallery":n0.preload();break;case"read":a0.preload();break;default:r0.preload()}}const i0=(0,x.memo)(()=>{let t=(0,e0.c)(12),[e]=NR(),[a]=SR(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=rD(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=T_();return c==="home"?(0,s.jsx)(t0.Component,{}):c==="gallery"?(0,s.jsx)(n0.Component,{}):c==="read"?(0,s.jsx)(a0.Component,{appConfig:a}):(0,s.jsx)(r0.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let o=i,l;t[5]===n?l=t[6]:(l={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=l);let d;t[7]===o?d=t[8]:(d=(0,s.jsx)(Gs,{children:o()}),t[7]=o,t[8]=d);let u;return t[9]!==l||t[10]!==d?(u=(0,s.jsx)(o0,{children:(0,s.jsx)(Qb,{variables:l,children:d})}),t[9]=l,t[10]=d,t[11]=u):u=t[11],u});i0.displayName="MarimoApp";var o0=(0,x.memo)(t=>{let e=(0,e0.c)(5),{children:a}=t,r,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(Q4,{}),n=(0,s.jsx)(Gb,{}),i=(0,s.jsx)(Xb,{}),e[0]=r,e[1]=n,e[2]=i):(r=e[0],n=e[1],i=e[2]);let o;return e[3]===a?o=e[4]:(o=(0,s.jsx)(gl,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(zt,{children:(0,s.jsx)(xv,{controller:hi,children:(0,s.jsx)(Gs,{children:(0,s.jsxs)(kA,{children:[a,r,n,i]})})})})})}),e[3]=a,e[4]=o),o});o0.displayName="Providers";function rD(t){return`${t/16}rem`}function nD(){Z6(t=>{t.delete(ac.accessToken)})}var iD={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",listStorageEntries:"waitForConnectionOpen",downloadStorage:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function oD(t,e){let a=mT(async n=>{We.set(Nv,{state:_v.CONNECTING}),await n.init()});function r(n,i){let o=iD[i];return async(...l)=>{let d=e();if(!d.isLazy)return n(...l);switch(o){case"dropRequest":de.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Dy;case"waitForConnectionOpen":return await tt(),await Zv(),n(...l);case"startConnection":return await a(d),await tt(),i!=="sendInstantiate"&&await Zv(),n(...l);default:throw Error(`Unknown action for "${i}"`)}}}return Za.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:Be,handleResponseReturnNull:De}=TR;function lD(){let t=g_(()=>PR(rc())),e=()=>rc().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(De),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(De),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(De),syncCellIds:async r=>(await tt(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(De)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(De),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(De),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(De),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then(Be),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(De),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(De),sendRun:async r=>(await tt(),t().POST("/api/kernel/run",{body:r,params:a()}).then(De)),sendRunScratchpad:async r=>(await tt(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(De)),sendInstantiate:async r=>(await tt(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(De)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(De),sendCodeCompletionRequest:async r=>(await tt(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(De)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(De),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(De),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(De),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(De),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(De),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(De),readCode:async()=>(await tt(),t().POST("/api/kernel/read_code",{params:a()}).then(Be)),readSnippets:async()=>(await tt(),t().GET("/api/documentation/snippets",{params:a()}).then(Be)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(De),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(De),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(De),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(De),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(De),openFile:async r=>(await tt(),await t().POST("/api/files/open",{body:r}).then(De),null),getUsageStats:async()=>(await tt(),t().GET("/api/usage").then(Be)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(De),sendListFiles:async r=>(await tt(),t().POST("/api/files/list_files",{body:r}).then(Be)),sendSearchFiles:async r=>(await tt(),t().POST("/api/files/search",{body:r}).then(Be)),sendCreateFileOrFolder:async r=>(await tt(),t().POST("/api/files/create",{body:r}).then(Be)),sendDeleteFileOrFolder:async r=>(await tt(),t().POST("/api/files/delete",{body:r}).then(Be)),sendRenameFileOrFolder:async r=>(await tt(),t().POST("/api/files/move",{body:r}).then(Be)),sendUpdateFile:async r=>(await tt(),t().POST("/api/files/update",{body:r}).then(Be)),sendFileDetails:async r=>(await tt(),t().POST("/api/files/file_details",{body:r}).then(Be)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then(Be),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Be),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then(Be),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Be),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then(Be),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then(Be),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then(Be),exportAsPDF:async r=>t().POST("/api/export/pdf",{body:r,parseAs:"blob",params:a()}).then(Be),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(De),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(De),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(De),updateCellOutputs:async r=>t().POST("/api/export/update_cell_outputs",{body:r,params:a()}).then(De),addPackage:r=>t().POST("/api/packages/add",{body:r}).then(Be),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then(Be),getPackageList:async()=>(await tt(),t().GET("/api/packages/list").then(Be)),getDependencyTree:async()=>(await tt(),t().GET("/api/packages/tree").then(Be)),listSecretKeys:async r=>(await tt(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(De)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(De),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then(Be),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(De),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(De),listStorageEntries:r=>t().POST("/api/storage/list_entries",{body:r,params:a()}).then(De),downloadStorage:r=>t().POST("/api/storage/download",{body:r,params:a()}).then(De)}}function sD(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(ta({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),de.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(de.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(de.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(ta({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),de.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,listStorageEntries:t,downloadStorage:t}}var dD=ee();function uD(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:"",listStorageEntries:"Failed to list storage entries",downloadStorage:"Failed to download storage entry"},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...o)=>{try{return await n(...o)}catch(l){if(l instanceof Dy){if(We.get(Sv))return;let c=ta({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(cD,{onConnect:()=>c.dismiss()})});throw de.error(`Failed to handle request: ${r}`,l),l}let d=e[i],u=jy(l);throw d&&ta({title:d,description:u,variant:"danger"}),de.error(`Failed to handle request: ${r}`,l),l}}}return a}const cD=t=>{let e=(0,dD.c)(9),{onConnect:a}=t,r=_R(),n=dl(Sv),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 o;e[3]===n?o=e[4]:(o=n&&(0,s.jsx)(vi,{size:"small",className:"mr-1"}),e[3]=n,e[4]=o);let l;return e[5]!==n||e[6]!==i||e[7]!==o?(l=(0,s.jsxs)(Se,{size:"xs",onClick:i,disabled:n,children:[o,"Connect"]}),e[5]=n,e[6]=i,e[7]=o,e[8]=l):l=e[8],l};function mD(){let t;return t=ER()?J_.INSTANCE:gi()?sD():oD(lD(),()=>rc()),uD(t)}var pD=Na(pi(),1),sr="NavigationMenu",[Qs,l0,hD]=Fl(sr),[Js,fD,gD]=Fl(sr),[Xs,jI]=bc(sr,[hD,gD]),[xD,$t]=Xs(sr),[vD,yD]=Xs(sr),s0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:o=200,skipDelayDuration:l=300,orientation:d="horizontal",dir:u,...c}=t,[m,p]=x.useState(null),h=Mt(e,C=>p(C)),g=py(u),f=x.useRef(0),v=x.useRef(0),w=x.useRef(0),[b,D]=x.useState(!0),[j,k]=Pl({prop:r,onChange:C=>{let _=C!=="",E=l>0;_?(window.clearTimeout(w.current),E&&D(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>D(!0),l)),n==null||n(C)},defaultProp:i??"",caller:sr}),S=x.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>k(""),150)},[k]),N=x.useCallback(C=>{window.clearTimeout(v.current),k(C)},[k]),y=x.useCallback(C=>{j===C?window.clearTimeout(v.current):f.current=window.setTimeout(()=>{window.clearTimeout(v.current),k(C)},o)},[j,k,o]);return x.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(v.current),window.clearTimeout(w.current)},[]),(0,s.jsx)(d0,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:m,onTriggerEnter:C=>{window.clearTimeout(f.current),b?y(C):N(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),S()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:S,onItemSelect:C=>{k(_=>_===C?"":C)},onItemDismiss:()=>k(""),children:(0,s.jsx)(Ge.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});s0.displayName=sr;var ed="NavigationMenuSub",bD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:o="horizontal",...l}=t,d=$t(ed,a),[u,c]=Pl({prop:r,onChange:n,defaultProp:i??"",caller:ed});return(0,s.jsx)(d0,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:o,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:m=>c(m),onItemSelect:m=>c(m),onItemDismiss:()=>c(""),children:(0,s.jsx)(Ge.div,{"data-orientation":o,...l,ref:e})})});bD.displayName=ed;var d0=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:o,value:l,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:m,onContentEnter:p,onContentLeave:h}=t,[g,f]=x.useState(null),[v,w]=x.useState(new Map),[b,D]=x.useState(null);return(0,s.jsx)(xD,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:l,previousValue:dy(l),baseId:sy(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:b,onIndicatorTrackChange:D,onTriggerEnter:aa(c),onTriggerLeave:aa(m),onContentEnter:aa(p),onContentLeave:aa(h),onItemSelect:aa(d),onItemDismiss:aa(u),onViewportContentChange:x.useCallback((j,k)=>{w(S=>(S.set(j,k),new Map(S)))},[]),onViewportContentRemove:x.useCallback(j=>{w(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:(0,s.jsx)(Qs.Provider,{scope:e,children:(0,s.jsx)(vD,{scope:e,items:v,children:o})})})},u0="NavigationMenuList",c0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(u0,a),i=(0,s.jsx)(Ge.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(Ge.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Qs.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(D0,{asChild:!0,children:i}):i})})});c0.displayName=u0;var m0="NavigationMenuItem",[wD,p0]=Xs(m0),h0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=sy(),o=r||i||"LEGACY_REACT_AUTO_VALUE",l=x.useRef(null),d=x.useRef(null),u=x.useRef(null),c=x.useRef(()=>{}),m=x.useRef(!1),p=x.useCallback((g="start")=>{if(l.current){c.current();let f=nd(l.current);f.length&&id(g==="start"?f:f.reverse())}},[]),h=x.useCallback(()=>{if(l.current){let g=nd(l.current);g.length&&(c.current=ED(g))}},[]);return(0,s.jsx)(wD,{scope:a,value:o,triggerRef:d,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(Ge.li,{...n,ref:e})})});h0.displayName=m0;var td="NavigationMenuTrigger",f0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=$t(td,t.__scopeNavigationMenu),o=p0(td,t.__scopeNavigationMenu),l=x.useRef(null),d=Mt(l,o.triggerRef,e),u=k0(i.baseId,o.value),c=S0(i.baseId,o.value),m=x.useRef(!1),p=x.useRef(!1),h=o.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Qs.ItemSlot,{scope:a,value:o.value,children:(0,s.jsx)(C0,{asChild:!0,children:(0,s.jsx)(Ge.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":ld(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:Re(t.onPointerEnter,()=>{p.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:Re(t.onPointerMove,ho(()=>{r||p.current||o.wasEscapeCloseRef.current||m.current||(i.onTriggerEnter(o.value),m.current=!0)})),onPointerLeave:Re(t.onPointerLeave,ho(()=>{r||(i.onTriggerLeave(),m.current=!1)})),onClick:Re(t.onClick,()=>{i.onItemSelect(o.value),p.current=h}),onKeyDown:Re(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(o.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nA,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{let f=o.contentRef.current,v=g.relatedTarget,w=v===l.current,b=f==null?void 0:f.contains(v);(w||!b)&&o.onFocusProxyEnter(w?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});f0.displayName=td;var DD="NavigationMenuLink",g0="navigationMenu.linkSelect",x0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(C0,{asChild:!0,children:(0,s.jsx)(Ge.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:Re(t.onClick,o=>{let l=o.target,d=new CustomEvent(g0,{bubbles:!0,cancelable:!0});l.addEventListener(g0,u=>n==null?void 0:n(u),{once:!0}),wc(l,d),!d.defaultPrevented&&!o.metaKey&&wc(l,new CustomEvent(po,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});x0.displayName=DD;var ad="NavigationMenuIndicator",v0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=$t(ad,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?pD.createPortal((0,s.jsx)(wi,{present:a||i,children:(0,s.jsx)(jD,{...r,ref:e})}),n.indicatorTrack):null});v0.displayName=ad;var jD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(ad,a),i=l0(a),[o,l]=x.useState(null),[d,u]=x.useState(null),c=n.orientation==="horizontal",m=!!n.value;x.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&l(h)},[i,n.value]);let p=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return od(o,p),od(n.indicatorTrack,p),d?(0,s.jsx)(Ge.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}),Ir="NavigationMenuContent",y0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=$t(Ir,t.__scopeNavigationMenu),i=p0(Ir,t.__scopeNavigationMenu),o=Mt(i.contentRef,e),l=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)(CD,{forceMount:a,...d,ref:o}):(0,s.jsx)(wi,{present:a||l,children:(0,s.jsx)(b0,{"data-state":ld(l),...d,ref:o,onPointerEnter:Re(t.onPointerEnter,n.onContentEnter),onPointerLeave:Re(t.onPointerLeave,ho(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...d.style}})})});y0.displayName=Ir;var CD=x.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=$t(Ir,t.__scopeNavigationMenu);return Il(()=>{a(t.value,{ref:e,...t})},[t,e,a]),Il(()=>()=>r(t.value),[t.value,r]),null}),po="navigationMenu.rootContentDismiss",b0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:d,...u}=t,c=$t(Ir,a),m=x.useRef(null),p=Mt(m,e),h=k0(c.baseId,r),g=S0(c.baseId,r),f=l0(a),v=x.useRef(null),{onItemDismiss:w}=c;x.useEffect(()=>{let D=m.current;if(c.isRootMenu&&D){let j=()=>{var k;w(),l(),D.contains(document.activeElement)&&((k=n.current)==null||k.focus())};return D.addEventListener(po,j),()=>D.removeEventListener(po,j)}},[c.isRootMenu,t.value,n,w,l]);let b=x.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),k=D.indexOf(c.previousValue),S=r===c.value,N=k===D.indexOf(r);if(!S&&!N)return v.current;let y=(()=>{if(j!==k){if(S&&k!==-1)return j>k?"from-end":"from-start";if(N&&j!==-1)return j>k?"to-start":"to-end"}return null})();return v.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(D0,{asChild:!0,children:(0,s.jsx)(Q6,{id:g,"aria-labelledby":h,"data-motion":b,"data-orientation":c.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event(po,{bubbles:!0,cancelable:!0});(j=m.current)==null||j.dispatchEvent(D)},onFocusOutside:Re(t.onFocusOutside,D=>{var k;d();let j=D.target;(k=c.rootNavigationMenu)!=null&&k.contains(j)&&D.preventDefault()}),onPointerDownOutside:Re(t.onPointerDownOutside,D=>{var N;let j=D.target,k=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),S=c.isRootMenu&&((N=c.viewport)==null?void 0:N.contains(j));(k||S||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:Re(t.onKeyDown,D=>{var k;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let S=nd(D.currentTarget),N=document.activeElement,y=S.findIndex(C=>C===N);id(D.shiftKey?S.slice(0,y).reverse():S.slice(y+1,S.length))?D.preventDefault():(k=i.current)==null||k.focus()}}),onEscapeKeyDown:Re(t.onEscapeKeyDown,D=>{o.current=!0})})})}),rd="NavigationMenuViewport",w0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!$t(rd,t.__scopeNavigationMenu).value;return(0,s.jsx)(wi,{present:a||n,children:(0,s.jsx)(kD,{...r,ref:e})})});w0.displayName=rd;var kD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=$t(rd,a),o=Mt(e,i.onViewportChange),l=yD(Ir,t.__scopeNavigationMenu),[d,u]=x.useState(null),[c,m]=x.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 od(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(Ge.div,{"data-state":ld(g),"data-orientation":i.orientation,...n,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:Re(t.onPointerEnter,i.onContentEnter),onPointerLeave:Re(t.onPointerLeave,ho(i.onContentLeave)),children:Array.from(l.items).map(([v,{ref:w,forceMount:b,...D}])=>{let j=f===v;return(0,s.jsx)(wi,{present:b||j,children:(0,s.jsx)(b0,{...D,ref:vR(w,k=>{j&&k&&m(k)})})},v)})})}),SD="FocusGroup",D0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(SD,a);return(0,s.jsx)(Js.Provider,{scope:a,children:(0,s.jsx)(Js.Slot,{scope:a,children:(0,s.jsx)(Ge.div,{dir:n.dir,...r,ref:e})})})}),j0=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ND="FocusGroupItem",C0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=fD(a),i=$t(ND,a);return(0,s.jsx)(Js.ItemSlot,{scope:a,children:(0,s.jsx)(Ge.button,{...r,ref:e,onKeyDown:Re(t.onKeyDown,o=>{if(["Home","End",...j0].includes(o.key)){let l=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),j0.includes(o.key)){let d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>id(l)),o.preventDefault()}})})})});function nd(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 id(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 od(t,e){let a=aa(e);Il(()=>{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 ld(t){return t?"open":"closed"}function k0(t,e){return`${t}-trigger-${e}`}function S0(t,e){return`${t}-content-${e}`}function ho(t){return e=>e.pointerType==="mouse"?t(e):void 0}var N0=s0,E0=c0,_D=h0,_0=f0,RD=x0,R0=v0,T0=y0,A0=w0,Pr=ee(),sd=x.forwardRef((t,e)=>{let a=(0,Pr.c)(16),r,n,i,o;a[0]===t?(r=a[1],n=a[2],i=a[3],o=a[4]):({className:n,children:r,orientation:i,...o}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=o);let l=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==l||a[7]!==d?(u=q(l,d,"relative z-10",n),a[5]=n,a[6]=l,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(M0,{}),a[9]=c):c=a[9];let m;return a[10]!==r||a[11]!==i||a[12]!==o||a[13]!==e||a[14]!==u?(m=(0,s.jsxs)(N0,{ref:e,className:u,orientation:i,...o,children:[r,c]}),a[10]=r,a[11]=i,a[12]=o,a[13]=e,a[14]=u,a[15]=m):m=a[15],m});sd.displayName=N0.displayName;var TD=xl("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),fo=x.forwardRef((t,e)=>{let a=(0,Pr.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 o;a[4]!==r||a[5]!==n?(o=q(TD({orientation:n}),r),a[4]=r,a[5]=n,a[6]=o):o=a[6];let l;return a[7]!==i||a[8]!==e||a[9]!==o?(l=(0,s.jsx)(E0,{ref:e,className:o,...i}),a[7]=i,a[8]=e,a[9]=o,a[10]=l):l=a[10],l});fo.displayName=E0.displayName;var dd=_D,ud=xl("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"}}),I0=x.forwardRef((t,e)=>{let a=(0,Pr.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 o;a[4]===n?o=a[5]:(o=q(ud(),"group",n),a[4]=n,a[5]=o);let l;a[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(QT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=l):l=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==o?(d=(0,s.jsxs)(_0,{ref:e,className:o,...i,children:[r," ",l]}),a[7]=r,a[8]=i,a[9]=e,a[10]=o,a[11]=d):d=a[11],d});I0.displayName=_0.displayName;var P0=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(T0,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});P0.displayName=T0.displayName;var cd=RD,M0=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let o;a[4]===r?o=a[5]:(o=q("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]=o);let l;return a[6]!==n||a[7]!==e||a[8]!==o?(l=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(A0,{className:o,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=o,a[9]=l):l=a[9],l});M0.displayName=A0.displayName;var AD=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("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 o;a[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=o):o=a[5];let l;return a[6]!==n||a[7]!==e||a[8]!==i?(l=(0,s.jsx)(R0,{ref:e,className:i,...n,children:o}),a[6]=n,a[7]=e,a[8]=i,a[9]=l):l=a[9],l});AD.displayName=R0.displayName;var F0=ee(),ID=class{constructor(){Z(this,"tagName","marimo-nav-menu");Z(this,"menuItemValidator",B({label:z(),href:z(),description:z().nullish()}));Z(this,"menuItemGroupValidator",B({label:z(),items:J(this.menuItemValidator)}));Z(this,"validator",B({items:J(_e([this.menuItemValidator,this.menuItemGroupValidator])),orientation:be(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(PD,{...t.data})})}},PD=t=>{let e=(0,F0.c)(13),{items:a,orientation:r}=t,n=MD,i=FD,o=zD,l;e[0]===r?l=e[1]:(l=p=>"items"in p?r==="horizontal"?(0,s.jsx)(sd,{orientation:"horizontal",children:(0,s.jsx)(fo,{children:(0,s.jsxs)(dd,{children:[(0,s.jsx)(I0,{children:Oe({html:p.label})}),(0,s.jsx)(P0,{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)(z0,{label:h.label,href:o(h.href),target:i(h.href),children:h.description&&Oe({html:h.description})},h.label))})})]})})},p.label):(0,s.jsxs)(dd,{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:Oe({html:p.label})}),(0,s.jsx)(fo,{className:"ml-4 auto-collapse-nav",orientation:r,children:p.items.map(h=>(0,s.jsx)(x.Fragment,{children:n((0,s.jsx)(cd,{href:o(h.href),target:i(h.href),className:ud({orientation:r}),children:Oe({html:h.label})},h.label),h.description)},h.label))})]},p.label):(0,s.jsx)(dd,{children:(0,s.jsx)(cd,{href:o(p.href),target:i(p.href),className:ud({orientation:r}),children:Oe({html:p.label})})},p.label),e[0]=r,e[1]=l);let d=l,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)(fo,{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)(sd,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=m):m=e[12],m},z0=x.forwardRef((t,e)=>{let a=(0,F0.c)(19),r,n,i,o;a[0]===t?(r=a[1],n=a[2],i=a[3],o=a[4]):({className:n,label:i,children:r,...o}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=o);let l;a[5]===n?l=a[6]:(l=q("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]=l);let d;a[7]===i?d=a[8]:(d=Oe({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]!==o||a[14]!==e||a[15]!==l||a[16]!==u||a[17]!==c?(m=(0,s.jsx)("li",{children:(0,s.jsx)(cd,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:l,...o,children:[u,c]})})}),a[13]=o,a[14]=e,a[15]=l,a[16]=u,a[17]=c,a[18]=m):m=a[18],m});z0.displayName="ListItem";function MD(t,e){return e?(0,s.jsx)(Zt,{delayDuration:200,content:Oe({html:e}),children:t}):t}function FD(t){return t.startsWith("http")?"_blank":"_self"}function zD(t){return K6({href:t,queryParams:new URL(globalThis.location.href).search,keys:[ac.filePath]})}function VD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?uT(t,e):typeof t=="object"&&typeof e=="object"?OD(t,e):!1}function OD(t,e){return Object.keys(t).length===Object.keys(e).length&&Za.keys(t).every(a=>t[a]===e[a])}function md(t,e){if(!(window!=null&&window.customElements)){de.warn("Custom elements not supported");return}if(window.customElements.get(t)){de.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var $D=ee();const BD=t=>{let e=(0,$D.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof $_){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Ec,{children:"Bad Data"}),e[0]=o):o=e[0];let l;e[1]===a.issues?l=e[2]:(l=a.issues.map(HD),e[1]=a.issues,e[2]=l);let d;e[3]===l?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:l})}),e[3]=l,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(EA,{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)(Pv,{data:r}),e[6]=r,e[7]=c);let m;e[8]!==n||e[9]!==c?(m=(0,s.jsx)(_A,{type:"single",collapsible:!0,children:(0,s.jsxs)(NA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(RA,{className:"text-[0.84375rem]",children:(0,s.jsx)(Tv,{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)(Ol,{variant:"destructive",children:[o,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 LD(t,e,a){return(0,s.jsx)(BD,{error:t,badData:e,shadowRoot:a})}function HD(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 WD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,o]=(0,x.useState)(a),[l,d]=(0,x.useState)(r()),{theme:u}=un(),[c,m]=(0,x.useState)(()=>e.validator.safeParse(qu(t))),[p,h]=(0,x.useState)(0);(0,x.useImperativeHandle)(n,()=>({reset:()=>{d(r()),m(e.validator.safeParse(qu(t))),h(v=>v+1)},setChildren:v=>{o(v)}})),tc(t,dR.TYPE,v=>{v.detail.element===t&&d(v.detail.value)}),(0,x.useEffect)(()=>{let v=new MutationObserver(w=>{w.some(b=>{var D;return b.type==="attributes"&&((D=b.attributeName)==null?void 0:D.startsWith("data-"))})&&m(e.validator.safeParse(qu(t)))});return v.observe(t,{attributes:!0}),()=>{v.disconnect()}},[t,e.validator]);let g=Ue(v=>{d(w=>{let b=qa.asUpdater(v)(w);return VD(b,w)||t.dispatchEvent(Dv(b,t)),b})}),f=(0,x.useMemo)(()=>{if(!e.functions)return{};let v={};for(let[w,b]of Za.entries(e.functions)){let{input:D,output:j}=b;v[w]=async(...k)=>{var E;nn(k.length<=1,`Plugin functions only supports a single argument. Called ${w}`);let S=fd(t);nn(S,"Object ID should exist");let N=gi(),y=(E=ov.findElementThroughShadowDOMs(t))==null?void 0:E.id,C=y?ov.parse(y):null;if(C&&!N){let A=We.get(sv),F=A.cellRuntime[C],T=A.cellData[C];if(x_({executionTime:F.runElapsedTimeMs??T.lastExecutionTime,status:F.status,errored:F.errored,interrupted:F.interrupted,stopped:F.stopped}))throw new SA}else de.warn(`Cell ID ${C} cannot be found`);let _=await iR.request({args:B0(D,k[0]),functionName:w,namespace:S});if(_.status.code!=="ok")throw de.error(_.status),Error(_.status.message||"Unknown error");return B0(j,_.return_value)}}return v},[e.functions,t,p]);return c.success?(0,s.jsx)(X6,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:g,value:l,data:c.data,children:i,host:t,functions:f})})})}):LD(c.error,Za.mapValues(t.dataset,v=>typeof v=="string"?dv(v):v),t.shadowRoot)}var UD=x.forwardRef(WD),pd=new Map,V0="__custom_marimo_element__";function O0(t){let e=class extends HTMLElement{constructor(){super();Z(this,"mounted",!1);Z(this,"pluginRef",(0,x.createRef)());Z(this,"__type__",V0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.isLightDOMChildOfMarimoElement()||(this.mounted||(nn(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=Wy.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)}isLightDOMChildOfMarimoElement(){let r=this.parentElement;for(;r;){if(hd(r))return!0;r=r.parentElement}return!1}reset(){this.dispatchEvent(Dv(dv(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?Oe({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(x.Fragment,{children:Oe({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,nn(this.root,"Root must be defined"),this.root.render((0,s.jsx)(ll,{store:We,children:(0,s.jsx)(Gs,{children:(0,s.jsx)(UD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>__(this,lR.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(nn(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){de.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:$0(i));for(let i of n){let o=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(o&&!pd.has(o)){let l=new CSSStyleSheet;try{l.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&&ec(c)?(c.focus({preventScroll:!0}),Np(c,ec(u))):c||((p=(m=u.parentElement)==null?void 0:m.closest("[tabindex]"))==null||p.focus({preventScroll:!0}))},o=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(d){let u=document.activeElement!=null&&ec(document.activeElement);o.call(this,{...d,preventScroll:!0}),(!d||!d.preventScroll)&&Np(this,u)};let l=fy(Es(document,"touchstart",a,{passive:!1,capture:!0}),Es(document,"touchmove",n,{passive:!1,capture:!0}),Es(document,"blur",i,!0));return()=>{l(),r.remove(),HTMLElement.prototype.focus=o}}function Ns(t,e,a){let r=t.style[e];return t.style[e]=a,()=>{t.style[e]=r}}function Es(t,e,a,r){return t.addEventListener(e,a,r),()=>{t.removeEventListener(e,a,r)}}function Np(t,e){e||!En?Ep(t):En.addEventListener("resize",()=>Ep(t),{once:!0})}function Ep(t){let e=document.scrollingElement||document.documentElement,a=t;for(;a&&a!==e;){let r=pl(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 o=n.bottom;En&&(o=Math.min(o,En.offsetTop+En.height));let l=i.top-n.top-((o-n.top)/2-i.height/2);r.scrollTo({top:Math.max(0,Math.min(r.scrollHeight-r.clientHeight,r.scrollTop+l)),behavior:"smooth"})}}a=r.parentElement}}var y2=(0,x.createContext)({});function b2(){return(0,x.useContext)(y2)??{}}var _p={};_p={dismiss:"\u062A\u062C\u0627\u0647\u0644"};var Rp={};Rp={dismiss:"\u041E\u0442\u0445\u0432\u044A\u0440\u043B\u044F\u043D\u0435"};var Tp={};Tp={dismiss:"Odstranit"};var Ap={};Ap={dismiss:"Luk"};var Ip={};Ip={dismiss:"Schlie\xDFen"};var Pp={};Pp={dismiss:"\u0391\u03C0\u03CC\u03C1\u03C1\u03B9\u03C8\u03B7"};var Mp={};Mp={dismiss:"Dismiss"};var Fp={};Fp={dismiss:"Descartar"};var zp={};zp={dismiss:"L\xF5peta"};var Vp={};Vp={dismiss:"Hylk\xE4\xE4"};var Op={};Op={dismiss:"Rejeter"};var $p={};$p={dismiss:"\u05D4\u05EA\u05E2\u05DC\u05DD"};var Bp={};Bp={dismiss:"Odbaci"};var Lp={};Lp={dismiss:"Elutas\xEDt\xE1s"};var Hp={};Hp={dismiss:"Ignora"};var Wp={};Wp={dismiss:"\u9589\u3058\u308B"};var Up={};Up={dismiss:"\uBB34\uC2DC"};var Kp={};Kp={dismiss:"Atmesti"};var Zp={};Zp={dismiss:"Ner\u0101d\u012Bt"};var qp={};qp={dismiss:"Lukk"};var Yp={};Yp={dismiss:"Negeren"};var Gp={};Gp={dismiss:"Zignoruj"};var Qp={};Qp={dismiss:"Descartar"};var Jp={};Jp={dismiss:"Dispensar"};var Xp={};Xp={dismiss:"Revocare"};var eh={};eh={dismiss:"\u041F\u0440\u043E\u043F\u0443\u0441\u0442\u0438\u0442\u044C"};var th={};th={dismiss:"Zru\u0161i\u0165"};var ah={};ah={dismiss:"Opusti"};var rh={};rh={dismiss:"Odbaci"};var nh={};nh={dismiss:"Avvisa"};var ih={};ih={dismiss:"Kapat"};var oh={};oh={dismiss:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438"};var lh={};lh={dismiss:"\u53D6\u6D88"};var sh={};sh={dismiss:"\u95DC\u9589"};var dh={};dh={"ar-AE":_p,"bg-BG":Rp,"cs-CZ":Tp,"da-DK":Ap,"de-DE":Ip,"el-GR":Pp,"en-US":Mp,"es-ES":Fp,"et-EE":zp,"fi-FI":Vp,"fr-FR":Op,"he-IL":$p,"hr-HR":Bp,"hu-HU":Lp,"it-IT":Hp,"ja-JP":Wp,"ko-KR":Up,"lt-LT":Kp,"lv-LV":Zp,"nb-NO":qp,"nl-NL":Yp,"pl-PL":Gp,"pt-BR":Qp,"pt-PT":Jp,"ro-RO":Xp,"ru-RU":eh,"sk-SK":th,"sl-SI":ah,"sr-SP":rh,"sv-SE":nh,"tr-TR":ih,"uk-UA":oh,"zh-CN":lh,"zh-TW":sh};function w2(t){return t&&t.__esModule?t.default:t}function uh(t){let{onDismiss:e,...a}=t,r=El(a,Ga(w2(dh),"@react-aria/overlays").format("dismiss")),n=()=>{e&&e()};return x.createElement(fi,null,x.createElement("button",{...r,tabIndex:-1,onClick:n,style:{width:1,height:1}}))}function D2(t,e){let{triggerRef:a,popoverRef:r,groupRef:n,isNonModal:i,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l,...d}=t,u=d.trigger==="SubmenuTrigger",{overlayProps:c,underlayProps:m}=f2({isOpen:e.isOpen,onClose:e.close,shouldCloseOnBlur:!0,isDismissable:!i||u,isKeyboardDismissDisabled:o,shouldCloseOnInteractOutside:l},n??r),{overlayProps:p,arrowProps:h,placement:g,triggerAnchorPoint:f}=u2({...d,targetRef:a,overlayRef:r,isOpen:e.isOpen,onClose:i&&!u?e.close:null});return g2({isDisabled:i||!e.isOpen}),(0,x.useEffect)(()=>{if(e.isOpen&&r.current)return i?WT((n==null?void 0:n.current)??r.current):HT([(n==null?void 0:n.current)??r.current],{shouldUseInert:!0})},[i,e.isOpen,r,n]),{popoverProps:ot(c,p),arrowProps:h,underlayProps:m,placement:g,triggerAnchorPoint:f}}var j2=Na(pi(),1),ch=x.createContext(null);function mh(t){let e=xA(),{portalContainer:a=e?null:document.body,isExiting:r}=t,[n,i]=(0,x.useState)(!1),o=(0,x.useMemo)(()=>({contain:n,setContain:i}),[n,i]),{getContainer:l}=b2();if(!t.portalContainer&&l&&(a=l()),!a)return null;let d=t.children;return t.disableFocusManagement||(d=x.createElement(pR,{restoreFocus:!0,contain:(t.shouldContainFocus||n)&&!r},d)),d=x.createElement(ch.Provider,{value:o},x.createElement(p2,null,d)),j2.createPortal(d,a)}function C2(){var e;let t=(e=(0,x.useContext)(ch))==null?void 0:e.setContain;Ta(()=>{t==null||t(!0)},[t])}var ph={};ph={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 hh={};hh={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 fh={};fh={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 gh={};gh={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 xh={};xh={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 vh={};vh={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 yh={};yh={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 bh={};bh={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 wh={};wh={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 Dh={};Dh={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 jh={};jh={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 Ch={};Ch={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 kh={};kh={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 Sh={};Sh={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 Nh={};Nh={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 Eh={};Eh={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 _h={};_h={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 Rh={};Rh={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 Th={};Th={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 Ah={};Ah={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 Ih={};Ih={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 Ph={};Ph={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 Mh={};Mh={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 Fh={};Fh={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 zh={};zh={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 Vh={};Vh={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 Oh={};Oh={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 $h={};$h={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 Bh={};Bh={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 Lh={};Lh={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 Hh={};Hh={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 Wh={};Wh={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 Uh={};Uh={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 Kh={};Kh={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 _n={};_n={"ar-AE":ph,"bg-BG":hh,"cs-CZ":fh,"da-DK":gh,"de-DE":xh,"el-GR":vh,"en-US":yh,"es-ES":bh,"et-EE":wh,"fi-FI":Dh,"fr-FR":jh,"he-IL":Ch,"hr-HR":kh,"hu-HU":Sh,"it-IT":Nh,"ja-JP":Eh,"ko-KR":_h,"lt-LT":Rh,"lv-LV":Th,"nb-NO":Ah,"nl-NL":Ih,"pl-PL":Ph,"pt-BR":Mh,"pt-PT":Fh,"ro-RO":zh,"ru-RU":Vh,"sk-SK":Oh,"sl-SI":$h,"sr-SP":Bh,"sv-SE":Lh,"tr-TR":Hh,"uk-UA":Wh,"zh-CN":Uh,"zh-TW":Kh};function Zh(t){return t&&t.__esModule?t.default:t}var _s=new WeakMap;function Rn(t){return(t==null?void 0:t.calendar.identifier)==="gregory"&&t.era==="BC"?"short":void 0}function k2(t){let e=Ga(Zh(_n),"@react-aria/calendar"),a,r;"highlightedRange"in t?{start:a,end:r}=t.highlightedRange||{}:a=r=t.value??void 0;let n=ga({weekday:"long",month:"long",year:"numeric",day:"numeric",era:Rn(a)||Rn(r),timeZone:t.timeZone}),i="anchorDate"in t?t.anchorDate:null;return(0,x.useMemo)(()=>{if(!i&&a&&r)if(Je(a,r)){let o=n.format(a.toDate(t.timeZone));return e.format("selectedDateDescription",{date:o})}else{let o=Ts(n,e,a,r,t.timeZone);return e.format("selectedRangeDescription",{dateRange:o})}return""},[a,r,i,t.timeZone,e,n])}function Rs(t,e,a,r){let n=Ga(Zh(_n),"@react-aria/calendar"),i=Rn(t)||Rn(e),o=ga({month:"long",year:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a}),l=ga({month:"long",year:"numeric",day:"numeric",era:i,calendar:t.calendar.identifier,timeZone:a});return(0,x.useMemo)(()=>{if(Je(t,rr(t))){let d=t,u=e;if(t.calendar.getFormattableMonth&&(d=t.calendar.getFormattableMonth(t)),e.calendar.getFormattableMonth&&(u=e.calendar.getFormattableMonth(e)),Je(e,Li(t)))return o.format(d.toDate(a));if(Je(e,Li(e)))return r?Ts(o,n,d,u,a):o.formatRange(d.toDate(a),u.toDate(a))}return r?Ts(l,n,t,e,a):l.formatRange(t.toDate(a),e.toDate(a))},[t,e,o,l,n,a,r])}function Ts(t,e,a,r,n){let i=t.formatRangeToParts(a.toDate(n),r.toDate(n)),o=-1;for(let u=0;u<i.length;u++){let c=i[u];if(c.source==="shared"&&c.type==="literal")o=u;else if(c.source==="endRange")break}let l="",d="";for(let u=0;u<i.length;u++)u<o?l+=i[u].value:u>o&&(d+=i[u].value);return e.format("dateRange",{startDate:l,endDate:d})}function S2(t){return t&&t.__esModule?t.default:t}function qh(t,e){let a=Ga(S2(_n),"@react-aria/calendar"),r=gt(t),n=Rs(e.visibleRange.start,e.visibleRange.end,e.timeZone,!1),i=Rs(e.visibleRange.start,e.visibleRange.end,e.timeZone,!0);Cv(()=>{e.isFocused||ay(i)},[i]);let o=k2(e);Cv(()=>{o&&ay(o,"polite",4e3)},[o]);let l=gy([!!t.errorMessage,t.isInvalid,t.validationState]);_s.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:t["aria-labelledby"],errorMessageId:l,selectedDateDescription:o});let[d,u]=(0,x.useState)(!1),c=t.isDisabled||e.isNextVisibleRangeInvalid();c&&d&&(u(!1),e.setFocused(!0));let[m,p]=(0,x.useState)(!1),h=t.isDisabled||e.isPreviousVisibleRangeInvalid();return h&&m&&(p(!1),e.setFocused(!0)),{calendarProps:ot(r,El({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:l},title:n}}function N2(t,e){return qh(t,e)}function E2(t,e,a){let r=qh(t,e),n=(0,x.useRef)(!1),i=(0,x.useRef)(typeof window<"u"?window:null);return sn(i,"pointerdown",o=>{n.current=o.width===0&&o.height===0}),sn(i,"pointerup",o=>{if(n.current){n.current=!1;return}if(e.setDragging(!1),!e.anchorDate)return;let l=o.target;a.current&&a.current.contains(document.activeElement)&&(!a.current.contains(l)||!l.closest('button, [role="button"]'))&&e.selectFocusedDate()}),r.calendarProps.onBlur=o=>{a.current&&(!o.relatedTarget||!a.current.contains(o.relatedTarget))&&e.anchorDate&&e.selectFocusedDate()},sn(a,"touchmove",o=>{e.isDragging&&o.preventDefault()},{passive:!1,capture:!0}),r}function _2(t,e){let{startDate:a=e.visibleRange.start,endDate:r=e.visibleRange.end,firstDayOfWeek:n}=t,{direction:i}=at(),o=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}},l=Rs(a,r,e.timeZone,!0),{ariaLabel:d,ariaLabelledBy:u}=_s.get(e),c=El({"aria-label":[d,l].filter(Boolean).join(", "),"aria-labelledby":u}),m=ga({weekday:t.weekdayStyle||"narrow",timeZone:e.timeZone}),{locale:p}=at(),h=(0,x.useMemo)(()=>{let f=jn($i(e.timeZone),p,n);return[...Array(7).keys()].map(v=>{let w=f.add({days:v}).toDate(e.timeZone);return m.format(w)})},[p,e.timeZone,m,n]),g=Cw(a,p,n);return{gridProps:ot(c,{role:"grid","aria-readonly":e.isReadOnly||void 0,"aria-disabled":e.isDisabled||void 0,"aria-multiselectable":"highlightedRange"in e||void 0,onKeyDown:o,onFocus:()=>e.setFocused(!0),onBlur:()=>e.setFocused(!1)}),headerProps:{"aria-hidden":!0},weekDays:h,weeksInMonth:g}}function R2(t){return t&&t.__esModule?t.default:t}function T2(t,e,a){let{date:r,isDisabled:n}=t,{errorMessageId:i,selectedDateDescription:o}=_s.get(e),l=Ga(R2(_n),"@react-aria/calendar"),d=ga({weekday:"long",day:"numeric",month:"long",year:"numeric",era:Rn(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&&Je(e.value,r));h&&(u=!0),r=vA(r,os);let g=(0,x.useMemo)(()=>r.toDate(e.timeZone),[r,e.timeZone]),f=Am(r,e.timeZone),v=(0,x.useMemo)(()=>{let E="";return"highlightedRange"in e&&e.value&&!e.anchorDate&&(Je(r,e.value.start)||Je(r,e.value.end))&&(E=o+", "),E+=d.format(g),f?E=l.format(u?"todayDateSelected":"todayDate",{date:E}):u&&(E=l.format("dateSelected",{date:E})),e.minValue&&Je(r,e.minValue)?E+=", "+l.format("minimumDate"):e.maxValue&&Je(r,e.maxValue)&&(E+=", "+l.format("maximumDate")),E},[d,g,l,u,f,r,e,o]),w="";"anchorDate"in e&&c&&!e.isReadOnly&&p&&(w=e.anchorDate?l.format("finishRangeSelectionPrompt"):l.format("startRangeSelectionPrompt"));let b=fl(w),D=(0,x.useRef)(!1),j=(0,x.useRef)(!1),k=(0,x.useRef)(void 0),{pressProps:S,isPressed:N}=vy({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(Je(r,e.highlightedRange.start)){e.setAnchorDate(e.highlightedRange.end),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}else if(Je(r,e.highlightedRange.end)){e.setAnchorDate(e.highlightedRange.start),e.setFocusedDate(r),e.setDragging(!0),j.current=!0;return}}let A=()=>{e.setDragging(!0),k.current=void 0,e.selectDate(r),e.setFocusedDate(r),D.current=!0};E.pointerType==="touch"?k.current=setTimeout(A,200):A()}},onPressEnd(){j.current=!1,D.current=!1,clearTimeout(k.current),k.current=void 0},onPress(){!("anchorDate"in e)&&!e.isReadOnly&&(e.selectDate(r),e.setFocusedDate(r))},onPressUp(E){if(!e.isReadOnly&&("anchorDate"in e&&k.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 A=r.add({days:1});e.isInvalid(A)&&(A=r.subtract({days:1})),e.isInvalid(A)||e.setFocusedDate(A)}else E.pointerType==="virtual"&&(e.selectDate(r),e.setFocusedDate(r))}}),y;n||(y=Je(r,e.focusedDate)?0:-1),(0,x.useEffect)(()=>{c&&a.current&&(pA(a.current),v6()!=="pointer"&&document.activeElement===a.current&&kv(a.current,{containingElement:pl(a.current)}))},[c,a]);let C=ga({day:"numeric",timeZone:e.timeZone,calendar:r.calendar.identifier}),_=(0,x.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:ot(S,{onFocus(){n||e.setFocusedDate(r)},tabIndex:y,role:"button","aria-disabled":!p||void 0,"aria-label":v,"aria-invalid":h||void 0,"aria-describedby":[h?i:void 0,b["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:N,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 Yh={};Yh={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 Qh={};Qh={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 Jh={};Jh={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 Xh={};Xh={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 ef={};ef={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 tf={};tf={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 af={};af={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 rf={};rf={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 nf={};nf={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 of={};of={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 lf={};lf={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 sf={};sf={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 df={};df={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 uf={};uf={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 cf={};cf={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 mf={};mf={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 pf={};pf={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 hf={};hf={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 ff={};ff={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 gf={};gf={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 xf={};xf={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 vf={};vf={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 yf={};yf={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 bf={};bf={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 wf={};wf={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 Df={};Df={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 jf={};jf={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 Cf={};Cf={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 kf={};kf={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 Sf={};Sf={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 Nf={};Nf={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 Ef={};Ef={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 _f={};_f={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 Tn={};Tn={"ar-AE":Yh,"bg-BG":Gh,"cs-CZ":Qh,"da-DK":Jh,"de-DE":Xh,"el-GR":ef,"en-US":tf,"es-ES":af,"et-EE":rf,"fi-FI":nf,"fr-FR":of,"he-IL":lf,"hr-HR":sf,"hu-HU":df,"it-IT":uf,"ja-JP":cf,"ko-KR":mf,"lt-LT":pf,"lv-LV":hf,"nb-NO":ff,"nl-NL":gf,"pl-PL":xf,"pt-BR":vf,"pt-PT":yf,"ro-RO":bf,"ru-RU":wf,"sk-SK":Df,"sl-SI":jf,"sr-SP":Cf,"sv-SE":kf,"tr-TR":Sf,"uk-UA":Nf,"zh-CN":Ef,"zh-TW":_f};function As(t,e,a){let{direction:r}=at(),n=(0,x.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=Rf(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=Rf(e.current,u.getBoundingClientRect().left,1);c&&c.focus()}}else n.focusNext();break}},o=()=>{var c;if(!e.current)return;let d=(c=window.event)==null?void 0:c.target,u=jv(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:l}=vy({preventFocusOnPress:!0,allowTextSelectionOnPress:!0,onPressStart(d){d.pointerType==="mouse"&&o()},onPress(d){(d.pointerType==="touch"||d.pointerType==="pen")&&o()}});return ot(l,{onKeyDown:i})}function Rf(t,e,a){let r=jv(t,{tabbable:!0}),n=r.nextNode(),i=null,o=1/0;for(;n;){let l=n.getBoundingClientRect().left-e,d=Math.abs(l);Math.sign(l)===a&&d<o&&(i=n,o=d),n=r.nextNode()}return i}function A2(t){return t&&t.__esModule?t.default:t}var Tf=new WeakMap,An="__role_"+Date.now(),Af="__focusManager_"+Date.now();function I2(t,e,a){var y;let{isInvalid:r,validationErrors:n,validationDetails:i}=e.displayValidation,{labelProps:o,fieldProps:l,descriptionProps:d,errorMessageProps:u}=cc({...t,labelElementType:"span",isInvalid:r,errorMessage:t.errorMessage||n}),c=(0,x.useRef)(null),{focusWithinProps:m}=Cl({...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=Ga(A2(Tn),"@react-aria/datepicker"),h=e.maxGranularity==="hour"?"selectedTimeDescription":"selectedDateDescription",g=e.maxGranularity==="hour"?"time":"date",f=fl(e.value?p.format(h,{[g]:e.formatValue({month:"long"})}):""),v=t[An]==="presentation"?l["aria-describedby"]:[f["aria-describedby"],l["aria-describedby"]].filter(Boolean).join(" ")||void 0,w=t[Af],b=(0,x.useMemo)(()=>w||ml(a),[w,a]),D=As(e,a,t[An]==="presentation");Tf.set(e,{ariaLabel:t["aria-label"],ariaLabelledBy:[o.id,t["aria-labelledby"]].filter(Boolean).join(" ")||void 0,ariaDescribedBy:v,focusManager:b});let j=(0,x.useRef)(t.autoFocus),k;k=t[An]==="presentation"?{role:"presentation"}:ot(l,{role:"group","aria-disabled":t.isDisabled||void 0,"aria-describedby":v}),(0,x.useEffect)(()=>{j.current&&b.focusFirst(),j.current=!1},[b]),j6(t.inputRef,e.defaultValue,e.setValue),_6({...t,focus(){b.focusFirst()}},e,t.inputRef);let S={type:"hidden",name:t.name,form:t.form,value:((y=e.value)==null?void 0:y.toString())||"",disabled:t.isDisabled};t.validationBehavior==="native"&&(S.type="text",S.hidden=!0,S.required=t.isRequired,S.onChange=()=>{});let N=gt(t);return{labelProps:{...o,onClick:()=>{b.focusFirst()}},fieldProps:ot(N,k,D,m,{onKeyDown(C){t.onKeyDown&&t.onKeyDown(C)},onKeyUp(C){t.onKeyUp&&t.onKeyUp(C)},style:{unicodeBidi:"isolate"}}),inputProps:S,descriptionProps:d,errorMessageProps:u,isInvalid:r,validationErrors:n,validationDetails:i}}function P2(t){return t&&t.__esModule?t.default:t}function M2(t,e,a){let r=mn(),n=mn(),i=mn(),o=Ga(P2(Tn),"@react-aria/datepicker"),{isInvalid:l,validationErrors:d,validationDetails:u}=e.displayValidation,{labelProps:c,fieldProps:m,descriptionProps:p,errorMessageProps:h}=cc({...t,labelElementType:"span",isInvalid:l,errorMessage:t.errorMessage||d}),g=As(e,a),f=m["aria-labelledby"]||m.id,{locale:v}=at(),w=e.formatValue(v,{month:"long"}),b=fl(w?o.format("selectedDateDescription",{date:w}):""),D=[b["aria-describedby"],m["aria-describedby"]].filter(Boolean).join(" ")||void 0,j=gt(t),k=(0,x.useMemo)(()=>ml(a),[a]),S=(0,x.useRef)(!1),{focusWithinProps:N}=Cl({...t,isDisabled:e.isOpen,onBlurWithin:y=>{var E;if(!((E=document.getElementById(n))!=null&&E.contains(y.relatedTarget))){var C,_;S.current=!1,(C=t.onBlur)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!1)}},onFocusWithin:y=>{if(!S.current){var C,_;S.current=!0,(C=t.onFocus)==null||C.call(t,y),(_=t.onFocusChange)==null||_.call(t,!0)}}});return{groupProps:ot(j,g,m,b,N,{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:()=>{k.focusFirst()}},fieldProps:{...m,id:i,[An]:"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,[mc]:e,autoFocus:t.autoFocus,name:t.name,form:t.form},descriptionProps:p,errorMessageProps:h,buttonProps:{...b,id:r,"aria-haspopup":"dialog","aria-label":o.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:l,validationErrors:d,validationDetails:u}}function F2(t){return t&&t.__esModule?t.default:t}function z2(){let{locale:t}=at(),e=y6(F2(Tn),"@react-aria/datepicker");return(0,x.useMemo)(()=>{try{return new Intl.DisplayNames(t,{type:"dateTimeField"})}catch{return new V2(t,e)}},[t,e])}var V2=class{of(t){return this.dictionary.getStringForLocale(t,this.locale)}constructor(t,e){this.locale=t,this.dictionary=e}};function O2(t,e,a){let r=(0,x.useRef)(""),{locale:n,direction:i}=at(),o=z2(),{ariaLabel:l,ariaLabelledBy:d,ariaDescribedBy:u,focusManager:c}=Tf.get(e),m=t.isPlaceholder?"":t.text,p=(0,x.useMemo)(()=>e.dateFormatter.resolvedOptions(),[e.dateFormatter]),h=ga({month:"long",timeZone:p.timeZone}),g=ga({hour:"numeric",hour12:p.hour12,timeZone:p.timeZone});if(t.type==="month"&&!t.isPlaceholder){let I=h.format(e.dateValue);m=I===m?I:`${m} \u2013 ${I}`}else t.type==="hour"&&!t.isPlaceholder&&(m=g.format(e.dateValue));let{spinButtonProps:f}=b6({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)}}),v=(0,x.useMemo)(()=>new x6(n,{maximumFractionDigits:0}),[n]),w=()=>{if(t.text===t.placeholder&&c.focusPrevious(),v.isValidPartialNumber(t.text)&&!e.isReadOnly&&!t.isPlaceholder){let I=t.text.slice(0,-1),O=v.parse(I);I=O===0?"":I,I.length===0||O===0?e.clearSegment(t.type):e.setSegment(t.type,O),r.current=I}else t.type==="dayPeriod"&&e.clearSegment(t.type)},b=I=>{if(I.key==="a"&&(mA()?I.metaKey:I.ctrlKey)&&I.preventDefault(),!(I.ctrlKey||I.metaKey||I.shiftKey||I.altKey))switch(I.key){case"Backspace":case"Delete":I.preventDefault(),I.stopPropagation(),w();break}},{startsWith:D}=d2({sensitivity:"base"}),j=ga({hour:"numeric",hour12:!0}),k=(0,x.useMemo)(()=>{let I=new Date;return I.setHours(0),j.formatToParts(I).find(O=>O.type==="dayPeriod").value},[j]),S=(0,x.useMemo)(()=>{let I=new Date;return I.setHours(12),j.formatToParts(I).find(O=>O.type==="dayPeriod").value},[j]),N=ga({year:"numeric",era:"narrow",timeZone:"UTC"}),y=(0,x.useMemo)(()=>{if(t.type!=="era")return[];let I=$e(new pt(1,1,1),e.calendar),O=e.calendar.getEras().map($=>{let Q=I.set({year:1,month:1,day:1,era:$}).toDate("UTC");return{era:$,formatted:N.formatToParts(Q).find(X=>X.type==="era").value}}),V=$2(O.map($=>$.formatted));if(V)for(let $ of O)$.formatted=$.formatted.slice(V);return O},[N,e.calendar,t.type]),C=I=>{if(e.isDisabled||e.isReadOnly)return;let O=r.current+I;switch(t.type){case"dayPeriod":if(D(k,I))e.setSegment("dayPeriod",0);else if(D(S,I))e.setSegment("dayPeriod",12);else break;c.focusNext();break;case"era":{let V=y.find($=>D($.formatted,I));V&&(e.setSegment("era",V.era),c.focusNext());break}case"day":case"hour":case"minute":case"second":case"month":case"year":{if(!v.isValidPartialNumber(O))return;let V=v.parse(O),$=V,Q=t.minValue===0;if(t.type==="hour"&&e.dateFormatter.resolvedOptions().hour12){switch(e.dateFormatter.resolvedOptions().hourCycle){case"h11":V>11&&($=v.parse(I));break;case"h12":Q=!1,V>12&&($=v.parse(I));break}t.value!==void 0&&t.value>=12&&V>1&&(V+=12)}else t.maxValue!==void 0&&V>t.maxValue&&($=v.parse(I));if(isNaN(V))return;let X=$!==0||Q;X&&e.setSegment(t.type,$),t.maxValue!==void 0&&(+(V+"0")>t.maxValue||O.length>=String(t.maxValue).length)?(r.current="",X&&c.focusNext()):r.current=O;break}}},_=()=>{var I;r.current="",a.current&&kv(a.current,{containingElement:pl(a.current)}),(I=window.getSelection())==null||I.collapse(a.current)};sn((0,x.useRef)(typeof document<"u"?document:null),"selectionchange",()=>{var O;let I=window.getSelection();I!=null&&I.anchorNode&&((O=a.current)!=null&&O.contains(I==null?void 0:I.anchorNode))&&I.collapse(a.current)});let E=(0,x.useRef)("");sn(a,"beforeinput",I=>{if(a.current)switch(I.preventDefault(),I.inputType){case"deleteContentBackward":case"deleteContentForward":v.isValidPartialNumber(t.text)&&!e.isReadOnly&&w();break;case"insertCompositionText":E.current=a.current.textContent,a.current.textContent=a.current.textContent;break;default:I.data!=null&&C(I.data);break}}),sn(a,"input",I=>{let{inputType:O,data:V}=I;O==="insertCompositionText"&&(a.current&&(a.current.textContent=E.current),V!=null&&(D(k,V)||D(S,V))&&C(V))}),Ta(()=>{let I=a.current;return()=>{document.activeElement===I&&(c.focusPrevious()||c.focusNext())}},[a,c]);let A=hy()||t.type==="timeZoneName"?{role:"textbox","aria-valuemax":null,"aria-valuemin":null,"aria-valuetext":null,"aria-valuenow":null}:{};t!==(0,x.useMemo)(()=>e.segments.find(I=>I.isEditable),[e.segments])&&!e.isInvalid&&(u=void 0);let F=mn(),T=!e.isDisabled&&!e.isReadOnly&&t.isEditable,M=t.type==="literal"?"":o.of(t.type),R=El({"aria-label":`${M}${l?`, ${l}`:""}${d?", ":""}`,"aria-labelledby":d});if(t.type==="literal")return{segmentProps:{"aria-hidden":!0}};let P={caretColor:"transparent"};if(i==="rtl"){P.unicodeBidi="embed";let I=p[t.type];(I==="numeric"||I==="2-digit")&&(P.direction="ltr")}return{segmentProps:ot(f,R,{id:F,...A,"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:T,suppressContentEditableWarning:T,spellCheck:T?"false":void 0,autoCorrect:T?"off":void 0,enterKeyHint:T?"next":void 0,inputMode:e.isDisabled||t.type==="dayPeriod"||t.type==="era"||!T?void 0:"numeric",tabIndex:e.isDisabled?void 0:0,onKeyDown:b,onFocus:_,style:P,onPointerDown(I){I.stopPropagation()},onMouseDown(I){I.stopPropagation()}})}}function $2(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 B2(t){return t&&t.__esModule?t.default:t}function L2(t,e,a){var A,F,T,M,R;let r=Ga(B2(Tn),"@react-aria/datepicker"),{isInvalid:n,validationErrors:i,validationDetails:o}=e.displayValidation,{labelProps:l,fieldProps:d,descriptionProps:u,errorMessageProps:c}=cc({...t,labelElementType:"span",isInvalid:n,errorMessage:t.errorMessage||i}),m=d["aria-labelledby"]||d.id,{locale:p}=at(),h=e.formatValue(p,{month:"long"}),g=fl(h?r.format("selectedRangeDescription",{startDate:h.start,endDate:h.end}):""),f={"aria-label":r.format("startDate"),"aria-labelledby":m},v={"aria-label":r.format("endDate"),"aria-labelledby":m},w=mn(),b=mn(),D=As(e,a),j=[g["aria-describedby"],d["aria-describedby"]].filter(Boolean).join(" ")||void 0,k=(0,x.useMemo)(()=>ml(a,{accept:P=>P.id!==w}),[a,w]),S={[Af]:k,[An]:"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},N=gt(t),y=(0,x.useRef)(!1),{focusWithinProps:C}=Cl({...t,isDisabled:e.isOpen,onBlurWithin:P=>{var V;if(!((V=document.getElementById(b))!=null&&V.contains(P.relatedTarget))){var I,O;y.current=!1,(I=t.onBlur)==null||I.call(t,P),(O=t.onFocusChange)==null||O.call(t,!1)}},onFocusWithin:P=>{if(!y.current){var I,O;y.current=!0,(I=t.onFocus)==null||I.call(t,P),(O=t.onFocusChange)==null||O.call(t,!0)}}}),_=(0,x.useRef)(Qv),E=(0,x.useRef)(Qv);return{groupProps:ot(N,D,d,g,C,{role:"group","aria-disabled":t.isDisabled||null,"aria-describedby":j,onKeyDown(P){e.isOpen||t.onKeyDown&&t.onKeyDown(P)},onKeyUp(P){e.isOpen||t.onKeyUp&&t.onKeyUp(P)}}),labelProps:{...l,onClick:()=>{k.focusFirst()}},buttonProps:{...g,id:w,"aria-haspopup":"dialog","aria-label":r.format("calendar"),"aria-labelledby":`${w} ${m}`,"aria-describedby":j,"aria-expanded":e.isOpen,isDisabled:t.isDisabled||t.isReadOnly,onPress:()=>e.setOpen(!0)},dialogProps:{id:b,"aria-labelledby":`${w} ${m}`},startFieldProps:{...f,...S,value:((A=e.value)==null?void 0:A.start)??null,defaultValue:(F=e.defaultValue)==null?void 0:F.start,onChange:P=>e.setDateTime("start",P),autoFocus:t.autoFocus,name:t.startName,form:t.form,[mc]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(P){_.current=P,e.updateValidation(kl(P,E.current))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},endFieldProps:{...v,...S,value:((T=e.value)==null?void 0:T.end)??null,defaultValue:(M=e.defaultValue)==null?void 0:M.end,onChange:P=>e.setDateTime("end",P),name:t.endName,form:t.form,[mc]:{realtimeValidation:e.realtimeValidation,displayValidation:e.displayValidation,updateValidation(P){E.current=P,e.updateValidation(kl(_.current,P))},resetValidation:e.resetValidation,commitValidation:e.commitValidation}},descriptionProps:u,errorMessageProps:c,calendarProps:{autoFocus:!0,value:(R=e.dateRange)!=null&&R.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:o}}function H2(t,e){let{role:a="dialog"}=t,r=gy();r=t["aria-label"]?void 0:r;let n=(0,x.useRef)(!1);return(0,x.useEffect)(()=>{if(e.current&&!e.current.contains(document.activeElement)){pc(e.current);let i=setTimeout(()=>{(document.activeElement===e.current||document.activeElement===document.body)&&(n.current=!0,e.current&&(e.current.blur(),pc(e.current)),n.current=!1)},500);return()=>{clearTimeout(i)}}},[e]),C2(),{dialogProps:{...gt(t,{labelable:!0}),role:a,tabIndex:-1,"aria-labelledby":t["aria-labelledby"]||r,onBlur:i=>{n.current&&i.stopPropagation()}},titleProps:{id:r}}}function Rr(t,e,a){return e!=null&&t.compare(e)<0||a!=null&&t.compare(a)>0}function Is(t,e,a,r,n){let i={};for(let o in e)i[o]=Math.floor(e[o]/2),i[o]>0&&e[o]%2==0&&i[o]--;return In(t,or(t,e,a).subtract(i),e,a,r,n)}function or(t,e,a,r,n){let i=t;return e.years?i=vw(t):e.months?i=rr(t):e.weeks&&(i=jn(t,a)),In(t,i,e,a,r,n)}function Ps(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--,In(t,or(t,e,a).subtract(i),e,a,r,n)}function In(t,e,a,r,n,i){if(n&&t.compare(n)>=0){let o=us(e,or(Dt(n),a,r));o&&(e=o)}if(i&&t.compare(i)<=0){let o=ds(e,Ps(Dt(i),a,r));o&&(e=o)}return e}function za(t,e,a){if(e){let r=us(t,Dt(e));r&&(t=r)}if(a){let r=ds(t,Dt(a));r&&(t=r)}return t}function If(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 Pf(t){let e=(0,x.useMemo)(()=>new ra(t.locale),[t.locale]),a=(0,x.useMemo)(()=>e.resolvedOptions(),[e]),{locale:r,createCalendar:n,visibleDuration:i={months:1},minValue:o,maxValue:l,selectionAlignment:d,isDateUnavailable:u,pageBehavior:c="visible",firstDayOfWeek:m}=t,p=(0,x.useMemo)(()=>n(a.calendar),[n,a.calendar]),[h,g]=xr(t.value,t.defaultValue??null,t.onChange),f=(0,x.useMemo)(()=>h?$e(Dt(h),p):null,[h,p]),v=(0,x.useMemo)(()=>h&&"timeZone"in h?h.timeZone:a.timeZone,[h,a.timeZone]),[w,b]=xr((0,x.useMemo)(()=>t.focusedValue?za($e(Dt(t.focusedValue),p),o,l):void 0,[t.focusedValue,p,o,l]),(0,x.useMemo)(()=>za(t.defaultFocusedValue?$e(Dt(t.defaultFocusedValue),p):f||$e($i(v),p),o,l),[t.defaultFocusedValue,f,v,p,o,l]),t.onFocusChange),[D,j]=(0,x.useState)(()=>{switch(d){case"start":return or(w,i,r,o,l);case"end":return Ps(w,i,r,o,l);default:return Is(w,i,r,o,l)}}),[k,S]=(0,x.useState)(t.autoFocus||!1),N=(0,x.useMemo)(()=>{let R={...i};return R.days?R.days--:R.days=-1,D.add(R)},[D,i]),[y,C]=(0,x.useState)(p);if(!Oi(p,y)){let R=$e(w,p);j(Is(R,i,r,o,l)),b(R),C(p)}Rr(w,o,l)?b(za(w,o,l)):w.compare(D)<0?j(Ps(w,i,r,o,l)):w.compare(N)>0&&j(or(w,i,r,o,l));function _(R){R=za(R,o,l),b(R)}function E(R){if(!t.isDisabled&&!t.isReadOnly){let P=R;if(P===null){g(null);return}if(P=za(P,o,l),P=If(P,D,u),!P)return;P=$e(P,(h==null?void 0:h.calendar)||new kt),h&&"hour"in h?g(h.set(P)):g(P)}}let A=(0,x.useMemo)(()=>f?u&&u(f)?!0:Rr(f,o,l):!1,[f,u,o,l]),F=t.isInvalid||t.validationState==="invalid"||A,T=F?"invalid":null,M=(0,x.useMemo)(()=>c==="visible"?i:Ms(i),[c,i]);return{isDisabled:t.isDisabled??!1,isReadOnly:t.isReadOnly??!1,value:f,setValue:E,visibleRange:{start:D,end:N},minValue:o,maxValue:l,focusedDate:w,timeZone:v,validationState:T,isValueInvalid:F,setFocusedDate(R){_(R),S(!0)},focusNextDay(){_(w.add({days:1}))},focusPreviousDay(){_(w.subtract({days:1}))},focusNextRow(){i.days?this.focusNextPage():(i.weeks||i.months||i.years)&&_(w.add({weeks:1}))},focusPreviousRow(){i.days?this.focusPreviousPage():(i.weeks||i.months||i.years)&&_(w.subtract({weeks:1}))},focusNextPage(){let R=D.add(M);b(za(w.add(M),o,l)),j(or(In(w,R,M,r,o,l),M,r))},focusPreviousPage(){let R=D.subtract(M);b(za(w.subtract(M),o,l)),j(or(In(w,R,M,r,o,l),M,r))},focusSectionStart(){i.days?_(D):i.weeks?_(jn(w,r)):(i.months||i.years)&&_(rr(w))},focusSectionEnd(){i.days?_(N):i.weeks?_(ww(w,r)):(i.months||i.years)&&_(Li(w))},focusNextSection(R){if(!R&&!i.days){_(w.add(Ms(i)));return}i.days?this.focusNextPage():i.weeks?_(w.add({months:1})):(i.months||i.years)&&_(w.add({years:1}))},focusPreviousSection(R){if(!R&&!i.days){_(w.subtract(Ms(i)));return}i.days?this.focusPreviousPage():i.weeks?_(w.subtract({months:1})):(i.months||i.years)&&_(w.subtract({years:1}))},selectFocusedDate(){u&&u(w)||E(w)},selectDate(R){E(R)},isFocused:k,setFocused:S,isInvalid(R){return Rr(R,o,l)},isSelected(R){return f!=null&&Je(R,f)&&!this.isCellDisabled(R)&&!this.isCellUnavailable(R)},isCellFocused(R){return k&&w&&Je(R,w)},isCellDisabled(R){return t.isDisabled||R.compare(D)<0||R.compare(N)>0||this.isInvalid(R)},isCellUnavailable(R){return t.isDateUnavailable?t.isDateUnavailable(R):!1},isPreviousVisibleRangeInvalid(){let R=D.subtract({days:1});return Je(R,D)||this.isInvalid(R)},isNextVisibleRangeInvalid(){let R=N.add({days:1});return Je(R,N)||this.isInvalid(R)},getDatesInWeek(R,P=D){let I=P.add({weeks:R}),O=[];I=jn(I,r,m);let V=ls(I,r,m);for(let $=0;$<V;$++)O.push(null);for(;O.length<7;){O.push(I);let $=I.add({days:1});if(Je(I,$))break;I=$}for(;O.length<7;)O.push(null);return O}}}function Ms(t){let e={...t};for(let a in t)e[a]=1;return e}function W2(t){let{value:e,defaultValue:a,onChange:r,createCalendar:n,locale:i,visibleDuration:o={months:1},minValue:l,maxValue:d,...u}=t,[c,m]=xr(e,a||null,r),[p,h]=(0,x.useState)(null),g="center";if(c&&c.start&&c.end){let P=Is(Dt(c.start),o,i,l,d).add(o).subtract({days:1});c.end.compare(P)>0&&(g="start")}let f=(0,x.useRef)(null),[v,w]=(0,x.useState)(null),b=(0,x.useMemo)(()=>us(l,v==null?void 0:v.start),[l,v]),D=(0,x.useMemo)(()=>ds(d,v==null?void 0:v.end),[d,v]),j=Pf({...u,value:c&&c.start,createCalendar:n,locale:i,visibleDuration:o,minValue:b,maxValue:D,selectionAlignment:t.selectionAlignment||g}),k=P=>{P&&t.isDateUnavailable&&!t.allowsNonContiguousRanges?(f.current={start:Ff(P,j,-1),end:Ff(P,j,1)},w(f.current)):(f.current=null,w(null))},[S,N]=(0,x.useState)(j.visibleRange);(!os(j.visibleRange.start,S.start)||!os(j.visibleRange.end,S.end))&&(k(p),N(j.visibleRange));let y=P=>{P?(h(P),k(P)):(h(null),k(null))},C=p?Fs(p,j.focusedDate):c&&Fs(c.start,c.end),_=P=>{if(t.isReadOnly)return;let I=If(za(P,b,D),j.visibleRange.start,t.isDateUnavailable);if(I)if(!p)y(I);else{let O=Fs(p,I);O&&m({start:Mf(O.start,c==null?void 0:c.start),end:Mf(O.end,c==null?void 0:c.end)}),y(null)}},[E,A]=(0,x.useState)(!1),{isDateUnavailable:F}=t,T=(0,x.useMemo)(()=>!c||p?!1:F&&(F(c.start)||F(c.end))?!0:Rr(c.start,l,d)||Rr(c.end,l,d),[F,c,p,l,d]),M=t.isInvalid||t.validationState==="invalid"||T;return{...j,value:c,setValue:m,anchorDate:p,setAnchorDate:y,highlightedRange:C,validationState:M?"invalid":null,isValueInvalid:M,selectFocusedDate(){_(j.focusedDate)},selectDate:_,highlightDate(P){p&&j.setFocusedDate(P)},isSelected(P){return!!(C&&P.compare(C.start)>=0&&P.compare(C.end)<=0&&!j.isCellDisabled(P)&&!j.isCellUnavailable(P))},isInvalid(P){var I,O;return j.isInvalid(P)||Rr(P,(I=f.current)==null?void 0:I.start,(O=f.current)==null?void 0:O.end)},isDragging:E,setDragging:A}}function Fs(t,e){return!t||!e?null:(e.compare(t)<0&&([t,e]=[e,t]),{start:Dt(t),end:Dt(e)})}function Mf(t,e){return t=$e(t,(e==null?void 0:e.calendar)||new kt),e&&"hour"in e?e.set(t):t}function Ff(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 zs(t){let[e,a]=xr(t.isOpen,t.defaultOpen||!1,t.onOpenChange);return{isOpen:e,setOpen:a,open:(0,x.useCallback)(()=>{a(!0)},[a]),close:(0,x.useCallback)(()=>{a(!1)},[a]),toggle:(0,x.useCallback)(()=>{a(!e)},[a,e])}}var zf={};zf={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 Vf={};Vf={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 Of={};Of={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 $f={};$f={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 Bf={};Bf={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 Lf={};Lf={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 Hf={};Hf={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 Wf={};Wf={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 Uf={};Uf={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 Kf={};Kf={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 Zf={};Zf={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 qf={};qf={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 Yf={};Yf={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 Qf={};Qf={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 Jf={};Jf={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 Xf={};Xf={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 eg={};eg={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 tg={};tg={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 ag={};ag={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 rg={};rg={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 ng={};ng={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 ig={};ig={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 og={};og={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 lg={};lg={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 sg={};sg={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 dg={};dg={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 ug={};ug={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 cg={};cg={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 mg={};mg={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 pg={};pg={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 hg={};hg={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 fg={};fg={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 gg={};gg={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 xg={};xg={"ar-AE":zf,"bg-BG":Vf,"cs-CZ":Of,"da-DK":$f,"de-DE":Bf,"el-GR":Lf,"en-US":Hf,"es-ES":Wf,"et-EE":Uf,"fi-FI":Kf,"fr-FR":Zf,"he-IL":qf,"hr-HR":Yf,"hu-HU":Gf,"it-IT":Qf,"ja-JP":Jf,"ko-KR":Xf,"lt-LT":eg,"lv-LV":tg,"nb-NO":ag,"nl-NL":rg,"pl-PL":ng,"pt-BR":ig,"pt-PT":og,"ro-RO":lg,"ru-RU":sg,"sk-SK":dg,"sl-SI":ug,"sr-SP":cg,"sv-SE":mg,"tr-TR":pg,"uk-UA":hg,"zh-CN":fg,"zh-TW":gg};function U2(t){return t&&t.__esModule?t.default:t}var vg=new Dl(U2(xg));function yg(){let t=typeof navigator<"u"&&(navigator.language||navigator.userLanguage)||"en-US";try{Intl.DateTimeFormat.supportedLocalesOf([t])}catch{t="en-US"}return t}function to(t,e,a,r,n){let i=t!=null&&a!=null&&t.compare(a)>0,o=t!=null&&e!=null&&t.compare(e)<0,l=t!=null&&(r==null?void 0:r(t))||!1,d=i||o||l,u=[];if(d){let c=yg(),m=new g6(c,Dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||vg),p=new ra(c,ja({},n)),h=p.resolvedOptions().timeZone;o&&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))})),l&&u.push(m.format("unavailableDate"))}return{isInvalid:d,validationErrors:u,validationDetails:{badInput:l,customError:!1,patternMismatch:!1,rangeOverflow:i,rangeUnderflow:o,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1,valid:!d}}}function K2(t,e,a,r,n){let i=kl(to((t==null?void 0:t.start)??null,e,a,r,n),to((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 o=Dl.getGlobalDictionaryForPackage("@react-stately/datepicker")||vg;i=kl(i,{isInvalid:!0,validationErrors:[o.getStringForLocale("rangeReversed",yg())],validationDetails:{...f6,rangeUnderflow:!0,rangeOverflow:!0,valid:!1}})}return i}var Z2={year:"numeric",month:"numeric",day:"numeric",hour:"numeric",minute:"2-digit",second:"2-digit"},q2={year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"};function ja(t,e){t={...e.shouldForceLeadingZeros?q2:Z2,...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 o=r.slice(n,i+1).reduce((l,d)=>(l[d]=t[d],l),{});return e.hourCycle!=null&&(o.hour12=e.hourCycle===12),o.timeZone=e.timeZone||"UTC",(a==="hour"||a==="minute"||a==="second")&&e.timeZone&&!e.hideTimeZone&&(o.timeZoneName="short"),e.showEra&&n===0&&(o.era="short"),o}function Tr(t){return t&&"hour"in t?t:new Lw}function bg(t,e){if(t===null)return null;if(t)return $e(t,e)}function Pn(t,e,a,r){if(t)return bg(t,a);let n=$e(Im(r??Bi()).set({hour:0,minute:0,second:0,millisecond:0}),a);return e==="year"||e==="month"||e==="day"?Dt(n):r?n:ia(n)}function Vs(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,x.useState)([r,a]);t&&(n[0]!==r||n[1]!==a)&&i([r,a]),e||(e=t?r:n[0]);let o=t?a:n[1];return[e,o]}function Y2(t){let e=zs(t),[a,r]=xr(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),i=a||t.placeholderValue||null,[o,l]=Vs(i,t.granularity),d=a==null?null:a.toDate(l??"UTC"),u=o==="hour"||o==="minute"||o==="second",c=t.shouldCloseOnSelect??!0,[m,p]=(0,x.useState)(null),[h,g]=(0,x.useState)(null);if(a&&(m=a,"hour"in a&&(h=a)),i&&!(o in i))throw Error("Invalid granularity "+o+" for value "+i.toString());let f=(a==null?void 0:a.calendar.identifier)==="gregory"&&a.era==="BC",v=(0,x.useMemo)(()=>({granularity:o,timeZone:l,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,shouldForceLeadingZeros:t.shouldForceLeadingZeros,showEra:f}),[o,t.hourCycle,t.shouldForceLeadingZeros,l,t.hideTimeZone,f]),{minValue:w,maxValue:b,isDateUnavailable:D}=t,j=(0,x.useMemo)(()=>to(a,w,b,D,v),[a,w,b,D,v]),k=hc({...t,value:a,builtinValidation:j}),S=k.displayValidation.isInvalid,N=t.validationState||(S?"invalid":null),y=(E,A)=>{r("timeZone"in A?A.set(Dt(E)):ia(E,A)),p(null),g(null),k.commitValidation()},C=E=>{let A=typeof c=="function"?c():c;u?h||A?y(E,h||Tr(t.defaultValue||t.placeholderValue)):p(E):(r(E),k.commitValidation()),A&&e.setOpen(!1)},_=E=>{m&&E?y(m,E):g(E)};return{...k,value:a,defaultValue:t.defaultValue??n,setValue:r,dateValue:m,timeValue:h,setDateValue:C,setTimeValue:_,granularity:o,hasTime:u,...e,setOpen(E){!E&&!a&&m&&u&&y(m,h||Tr(t.defaultValue||t.placeholderValue)),e.setOpen(E)},validationState:N,isInvalid:S,formatValue(E,A){return d?new ra(E,ja(A,v)).format(d):""},getDateFormatter(E,A){return new ra(E,ja({},{...v,...A}))}}}var G2=new Dl({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 Q2(t,e,a){return t==="era"||t==="dayPeriod"?e:t==="year"||t==="month"||t==="day"?G2.getStringForLocale(t,a):"\u2013\u2013"}var ao={year:!0,month:!0,day:!0,hour:!0,minute:!0,second:!0,dayPeriod:!0,era:!0},wg={year:5,month:2,day:7,hour:2,minute:15,second:15},Dg={dayperiod:"dayPeriod",relatedYear:"year",yearName:"literal",unknown:"literal"};function J2(t){let{locale:e,createCalendar:a,hideTimeZone:r,isDisabled:n=!1,isReadOnly:i=!1,isRequired:o=!1,minValue:l,maxValue:d,isDateUnavailable:u}=t,c=t.value||t.defaultValue||t.placeholderValue||null,[m,p]=Vs(c,t.granularity),h=p||"UTC";if(c&&!(m in c))throw Error("Invalid granularity "+m+" for value "+c.toString());let g=(0,x.useMemo)(()=>new ra(e),[e]),f=(0,x.useMemo)(()=>a(g.resolvedOptions().calendar),[a,g]),[v,w]=xr(t.value,t.defaultValue??null,t.onChange),[b]=(0,x.useState)(v),D=(0,x.useMemo)(()=>bg(v,f)??null,[v,f]),[j,k]=(0,x.useState)(()=>Pn(t.placeholderValue,m,f,p)),S=D||j,N=f.identifier==="gregory"&&S.era==="BC",y=(0,x.useMemo)(()=>({granularity:m,maxGranularity:t.maxGranularity??"year",timeZone:p,hideTimeZone:r,hourCycle:t.hourCycle,showEra:N,shouldForceLeadingZeros:t.shouldForceLeadingZeros}),[t.maxGranularity,m,t.hourCycle,t.shouldForceLeadingZeros,p,r,N]),C=(0,x.useMemo)(()=>ja({},y),[y]),_=(0,x.useMemo)(()=>new ra(e,C),[e,C]),E=(0,x.useMemo)(()=>_.resolvedOptions(),[_]),A=(0,x.useMemo)(()=>_.formatToParts(new Date).filter(Y=>ao[Y.type]).reduce((Y,L)=>(Y[Dg[L.type]||L.type]=!0,Y),{}),[_]),[F,T]=(0,x.useState)(()=>t.value||t.defaultValue?{...A}:{}),M=(0,x.useRef)(null),R=(0,x.useRef)(f);(0,x.useEffect)(()=>{Oi(f,R.current)||(R.current=f,k(Y=>Object.keys(F).length>0?$e(Y,f):Pn(t.placeholderValue,m,f,p)))},[f,m,F,p,t.placeholderValue]),v&&Object.keys(F).length<Object.keys(A).length&&(F={...A},T(F)),v==null&&Object.keys(F).length===Object.keys(A).length&&(F={},T(F),k(Pn(t.placeholderValue,m,f,p)));let P=D&&Object.keys(F).length>=Object.keys(A).length?D:j,I=Y=>{if(t.isDisabled||t.isReadOnly)return;let L=Object.keys(F),ne=Object.keys(A);Y==null?(w(null),k(Pn(t.placeholderValue,m,f,p)),T({})):L.length===0&&M.current==null||L.length>=ne.length||L.length===ne.length-1&&A.dayPeriod&&!F.dayPeriod&&M.current!=="dayPeriod"?(L.length===0&&(F={...A},T(F)),Y=$e(Y,(c==null?void 0:c.calendar)||new kt),w(Y)):k(Y),M.current=null},O=(0,x.useMemo)(()=>P.toDate(h),[P,h]),V=(0,x.useMemo)(()=>X2(O,F,_,E,P,f,e,m),[O,F,_,E,P,f,e,m]);A.era&&F.year&&!F.era?(F.era=!0,T({...F})):!A.era&&F.era&&(delete F.era,T({...F}));let $=Y=>{F[Y]=!0,Y==="year"&&A.era&&(F.era=!0),T({...F})},Q=(Y,L)=>{if(F[Y])I(e4(P,Y,L,E));else{$(Y);let ne=Object.keys(F),re=Object.keys(A);(ne.length>=re.length||ne.length===re.length-1&&A.dayPeriod&&!F.dayPeriod)&&I(P)}},X=(0,x.useMemo)(()=>to(v,l,d,u,y),[v,l,d,u,y]),ae=hc({...t,value:v,builtinValidation:X}),me=ae.displayValidation.isInvalid,le=t.validationState||(me?"invalid":null);return{...ae,value:D,defaultValue:t.defaultValue??b,dateValue:O,calendar:f,setValue:I,segments:V,dateFormatter:_,validationState:le,isInvalid:me,granularity:m,maxGranularity:t.maxGranularity??"year",isDisabled:n,isReadOnly:i,isRequired:o,increment(Y){Q(Y,1)},decrement(Y){Q(Y,-1)},incrementPage(Y){Q(Y,wg[Y]||1)},decrementPage(Y){Q(Y,-(wg[Y]||1))},setSegment(Y,L){$(Y),I(t4(P,Y,L,E))},confirmPlaceholder(){if(t.isDisabled||t.isReadOnly)return;let Y=Object.keys(F),L=Object.keys(A);Y.length===L.length-1&&A.dayPeriod&&!F.dayPeriod&&(F={...A},T(F),I(P.copy()))},clearSegment(Y){delete F[Y],M.current=Y,T({...F});let L=Pn(t.placeholderValue,m,f,p),ne=P;if(Y==="dayPeriod"&&"hour"in P&&"hour"in L){let re=P.hour>=12,oe=L.hour>=12;re&&!oe?ne=P.set({hour:P.hour-12}):!re&&oe&&(ne=P.set({hour:P.hour+12}))}else Y==="hour"&&"hour"in P&&P.hour>=12&&F.dayPeriod?ne=P.set({hour:L.hour+12}):Y in P&&(ne=P.set({[Y]:L[Y]}));w(null),I(ne)},formatValue(Y){return D?new ra(e,ja(Y,y)).format(O):""},getDateFormatter(Y,L){return new ra(Y,ja({},{...y,...L}))}}}function X2(t,e,a,r,n,i,o,l){let d=["hour","minute","second"],u=a.formatToParts(t),c=[];for(let m of u){let p=Dg[m.type]||m.type,h=ao[p];p==="era"&&i.getEras().length===1&&(h=!1);let g=ao[p]&&!e[p],f=ao[p]?Q2(p,m.value,o):null,v={type:p,text:g?f:m.value,...ro(n,p,r),isPlaceholder:g,placeholder:f,isEditable:h};p==="hour"?(c.push({type:"literal",text:"\u2066",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1}),c.push(v),p===l&&c.push({type:"literal",text:"\u2069",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):d.includes(p)&&p===l?(c.push(v),c.push({type:"literal",text:"\u2069",...ro(n,"literal",r),isPlaceholder:!1,placeholder:"",isEditable:!1})):c.push(v)}return c}function ro(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:yw(t),maxValue:t.calendar.getMonthsInYear(t)};case"day":return{value:t.day,minValue:bw(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 e4(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 t4(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 a4(t){var F,T;let e=zs(t),[a,r]=xr(t.value,t.defaultValue||null,t.onChange),[n]=(0,x.useState)(a),[i,o]=(0,x.useState)(()=>a||{start:null,end:null});a==null&&i.start&&i.end&&(i={start:null,end:null},o(i));let l=a||i,d=M=>{l=M||{start:null,end:null},o(l),lr(l)?r(l):r(null)},[u,c]=Vs((l==null?void 0:l.start)||(l==null?void 0:l.end)||t.placeholderValue||null,t.granularity),m=u==="hour"||u==="minute"||u==="second",p=t.shouldCloseOnSelect??!0,[h,g]=(0,x.useState)(null),[f,v]=(0,x.useState)(null);l&&lr(l)&&(h=l,"hour"in l.start&&(f=l));let w=(M,R)=>{d({start:"timeZone"in R.start?R.start.set(Dt(M.start)):ia(M.start,R.start),end:"timeZone"in R.end?R.end.set(Dt(M.end)):ia(M.end,R.end)}),g(null),v(null),_.commitValidation()},b=M=>{let R=typeof p=="function"?p():p;m?lr(M)&&(R||f!=null&&f.start&&(f!=null&&f.end))?w(M,{start:(f==null?void 0:f.start)||Tr(t.placeholderValue),end:(f==null?void 0:f.end)||Tr(t.placeholderValue)}):g(M):lr(M)?(d(M),_.commitValidation()):g(M),R&&e.setOpen(!1)},D=M=>{lr(h)&&lr(M)?w(h,M):v(M)},j=((F=l==null?void 0:l.start)==null?void 0:F.calendar.identifier)==="gregory"&&l.start.era==="BC"||((T=l==null?void 0:l.end)==null?void 0:T.calendar.identifier)==="gregory"&&l.end.era==="BC",k=(0,x.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:S,maxValue:N,isDateUnavailable:y}=t,C=(0,x.useMemo)(()=>K2(l,S,N,y,k),[l,S,N,y,k]),_=hc({...t,value:a,name:(0,x.useMemo)(()=>[t.startName,t.endName].filter(M=>M!=null),[t.startName,t.endName]),builtinValidation:C}),E=_.displayValidation.isInvalid,A=t.validationState||(E?"invalid":null);return{..._,value:l,defaultValue:t.defaultValue??n,setValue:d,dateRange:h,timeRange:f,granularity:u,hasTime:m,setDate(M,R){b(M==="start"?{start:R,end:(h==null?void 0:h.end)??null}:{start:(h==null?void 0:h.start)??null,end:R})},setTime(M,R){D(M==="start"?{start:R,end:(f==null?void 0:f.end)??null}:{start:(f==null?void 0:f.start)??null,end:R})},setDateTime(M,R){d(M==="start"?{start:R,end:(l==null?void 0:l.end)??null}:{start:(l==null?void 0:l.start)??null,end:R})},setDateRange:b,setTimeRange:D,...e,setOpen(M){!M&&!(l!=null&&l.start&&(l!=null&&l.end))&&lr(h)&&m&&w(h,{start:(f==null?void 0:f.start)||Tr(t.placeholderValue),end:(f==null?void 0:f.end)||Tr(t.placeholderValue)}),e.setOpen(M)},validationState:A,isInvalid:E,formatValue(M,R){if(!l||!l.start||!l.end)return null;let P="timeZone"in l.start?l.start.timeZone:void 0,I=t.granularity||(l.start&&"minute"in l.start?"minute":"day"),O="timeZone"in l.end?l.end.timeZone:void 0,V=t.granularity||(l.end&&"minute"in l.end?"minute":"day"),$=ja(R,{granularity:I,timeZone:P,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle,showEra:l.start.calendar.identifier==="gregory"&&l.start.era==="BC"||l.end.calendar.identifier==="gregory"&&l.end.era==="BC"}),Q=l.start.toDate(P||"UTC"),X=l.end.toDate(O||"UTC"),ae=new ra(M,$),me;if(P===O&&I===V&&l.start.compare(l.end)!==0){try{let le=ae.formatRangeToParts(Q,X),Y=-1;for(let re=0;re<le.length;re++){let oe=le[re];if(oe.source==="shared"&&oe.type==="literal")Y=re;else if(oe.source==="endRange")break}let L="",ne="";for(let re=0;re<le.length;re++)re<Y?L+=le[re].value:re>Y&&(ne+=le[re].value);return{start:L,end:ne}}catch{}me=ae}else me=new ra(M,ja(R,{granularity:V,timeZone:O,hideTimeZone:t.hideTimeZone,hourCycle:t.hourCycle}));return{start:ae.format(Q),end:me.format(X)}},getDateFormatter(M,R){return new ra(M,ja({},{...k,...R}))}}}function lr(t){return(t==null?void 0:t.start)!=null&&t.end!=null}var no=(0,x.createContext)(null),io=(0,x.createContext)(null),oo=(0,x.createContext)(null),Mn=(0,x.createContext)(null),r4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,no);let{locale:a}=at(),r=Pf({...t,locale:a,createCalendar:t.createCalendar||Ss}),{calendarProps:n,prevButtonProps:i,nextButtonProps:o,errorMessageProps:l,title:d}=N2(t,r),u=Qa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-Calendar"}),c=gt(t,{global:!0});return x.createElement("div",{...ot(c,u,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(ln,{values:[[dn,{slots:{previous:i,next:o}}],[hl,{"aria-hidden":!0,level:2,children:d}],[oo,r],[no,t],[yi,{slots:{errorMessage:l}}]]},x.createElement(fi,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(fi,null,x.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),n4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,io);let{locale:a}=at(),r=W2({...t,locale:a,createCalendar:t.createCalendar||Ss}),{calendarProps:n,prevButtonProps:i,nextButtonProps:o,errorMessageProps:l,title:d}=E2(t,r,e),u=Qa({...t,values:{state:r,isDisabled:t.isDisabled||!1,isInvalid:r.isValueInvalid},defaultClassName:"react-aria-RangeCalendar"}),c=gt(t,{global:!0});return x.createElement("div",{...ot(u,c,n),ref:e,slot:t.slot||void 0,"data-disabled":t.isDisabled||void 0,"data-invalid":r.isValueInvalid||void 0},x.createElement(ln,{values:[[dn,{slots:{previous:i,next:o}}],[hl,{"aria-hidden":!0,level:2,children:d}],[Mn,r],[io,t],[yi,{slots:{errorMessage:l}}]]},x.createElement(fi,null,x.createElement("h2",null,n["aria-label"])),u.children,x.createElement(fi,null,x.createElement("button",{"aria-label":o["aria-label"],disabled:o.isDisabled,onClick:()=>r.focusNextPage(),tabIndex:-1}))))}),lo=(0,x.createContext)(null),i4=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(oo),r=(0,x.useContext)(Mn),n=_l(no),i=_l(io),o=a??r,l=o.visibleRange.start;t.offset&&(l=l.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}=_2({startDate:l,endDate:Li(l),weekdayStyle:t.weekdayStyle,firstDayOfWeek:d},o),h=gt(t,{global:!0});return x.createElement(lo.Provider,{value:{headerProps:c,weekDays:m,startDate:l,weeksInMonth:p}},x.createElement("table",{...ot(h,u),ref:e,style:t.style,cellPadding:0,className:t.className??"react-aria-CalendarGrid"},typeof t.children=="function"?x.createElement(x.Fragment,null,x.createElement(jg,null,g=>x.createElement(Cg,null,g)),x.createElement(kg,null,t.children)):t.children))});function o4(t,e){let{children:a,style:r,className:n}=t,{headerProps:i,weekDays:o}=(0,x.useContext)(lo),l=gt(t,{global:!0});return x.createElement("thead",{...ot(l,i),ref:e,style:r,className:n||"react-aria-CalendarGridHeader"},x.createElement("tr",null,o.map((d,u)=>x.cloneElement(a(d),{key:u}))))}var jg=(0,x.forwardRef)(o4);function l4(t,e){let{children:a,style:r,className:n}=t,i=gt(t,{global:!0});return x.createElement("th",{...i,ref:e,style:r,className:n||"react-aria-CalendarHeaderCell"},a)}var Cg=(0,x.forwardRef)(l4);function s4(t,e){let{children:a,style:r,className:n}=t,i=(0,x.useContext)(oo),o=(0,x.useContext)(Mn),l=i??o,{startDate:d,weeksInMonth:u}=(0,x.useContext)(lo),c=gt(t,{global:!0});return x.createElement("tbody",{...c,ref:e,style:r,className:n||"react-aria-CalendarGridBody"},[...Array(u).keys()].map(m=>x.createElement("tr",{key:m},l.getDatesInWeek(m,d).map((p,h)=>p?x.cloneElement(a(p),{key:h}):x.createElement("td",{key:h})))))}var kg=(0,x.forwardRef)(s4),d4=(0,x.forwardRef)(function({date:t,...e},a){let r=(0,x.useContext)(oo),n=(0,x.useContext)(Mn),i=r??n,{startDate:o}=(0,x.useContext)(lo)??{startDate:i.visibleRange.start},l=!gw(o,t),d=Am(t,i.timeZone),u=(0,x.useRef)(null),{cellProps:c,buttonProps:m,...p}=T2({date:t,isOutsideMonth:l},i,u),{hoverProps:h,isHovered:g}=Gv({...e,isDisabled:p.isDisabled}),{focusProps:f,isFocusVisible:v}=jl();v&&(v=p.isFocused);let w=!1,b=!1;"highlightedRange"in i&&i.highlightedRange&&(w=Je(t,i.highlightedRange.start),b=Je(t,i.highlightedRange.end));let D=Qa({...e,defaultChildren:p.formattedDate,defaultClassName:"react-aria-CalendarCell",values:{date:t,isHovered:g,isOutsideMonth:l,isFocusVisible:v,isSelectionStart:w,isSelectionEnd:b,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":v||void 0,"data-outside-visible-range":p.isOutsideVisibleRange||void 0,"data-outside-month":l||void 0,"data-selected":p.isSelected||void 0,"data-selection-start":w||void 0,"data-selection-end":b||void 0,"data-invalid":p.isInvalid||void 0,"data-today":d||void 0},k=gt(e,{global:!0});return x.createElement("td",{...c,ref:a},x.createElement("div",{...ot(k,m,f,h,j,D),ref:u}))}),u4=(0,x.createContext)({placement:"bottom"}),Os=(0,x.createContext)(null),Sg=(0,x.createContext)(null),c4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,Os);let a=(0,x.useContext)(so),r=zs(t),n=t.isOpen!=null||t.defaultOpen!=null||!a?r:a,i=nw(e,n.isOpen)||t.isExiting||!1,o=h6(),{direction:l}=at();if(o){let d=t.children;return typeof d=="function"&&(d=d({trigger:t.trigger||null,placement:"bottom",isEntering:!1,isExiting:!1,defaultChildren:null})),x.createElement(x.Fragment,null,d)}return n&&!n.isOpen&&!i?null:x.createElement(m4,{...t,triggerRef:t.triggerRef,state:n,popoverRef:e,isExiting:i,dir:l})});function m4({state:t,isExiting:e,UNSTABLE_portalContainer:a,clearContexts:r,...n}){let i=(0,x.useRef)(null),o=(0,x.useRef)(null),l=(0,x.useContext)(Sg),d=l&&n.trigger==="SubmenuTrigger",{popoverProps:u,underlayProps:c,arrowProps:m,placement:p,triggerAnchorPoint:h}=D2({...n,offset:n.offset??8,arrowRef:i,groupRef:d?l:o},t),g=n.popoverRef,f=rw(g,!!p)||n.isEntering||!1,v=Qa({...n,defaultClassName:"react-aria-Popover",values:{trigger:n.trigger||null,placement:p,isEntering:f,isExiting:e}}),w=!n.isNonModal||n.trigger==="SubmenuTrigger",[b,D]=(0,x.useState)(!1);Ta(()=>{g.current&&D(w&&!g.current.querySelector("[role=dialog]"))},[g,w]),(0,x.useEffect)(()=>{b&&n.trigger!=="SubmenuTrigger"&&g.current&&!g.current.contains(document.activeElement)&&pc(g.current)},[b,g,n.trigger]);let j=(0,x.useMemo)(()=>{let N=v.children;if(r)for(let y of r)N=x.createElement(y.Provider,{value:null},N);return N},[v.children,r]),k={...u.style,"--trigger-anchor-point":h?`${h.x}px ${h.y}px`:void 0,...v.style},S=x.createElement("div",{...ot(gt(n,{global:!0}),u),...v,role:b?"dialog":void 0,tabIndex:b?-1:void 0,"aria-label":n["aria-label"],"aria-labelledby":n["aria-labelledby"],ref:g,slot:n.slot||void 0,style:k,dir:n.dir,"data-trigger":n.trigger,"data-placement":p,"data-entering":f||void 0,"data-exiting":e||void 0},!n.isNonModal&&x.createElement(uh,{onDismiss:t.close}),x.createElement(u4.Provider,{value:{...m,placement:p,ref:i}},j),x.createElement(uh,{onDismiss:t.close}));return d?x.createElement(mh,{...n,shouldContainFocus:b,isExiting:e,portalContainer:a??(l==null?void 0:l.current)??void 0},S):x.createElement(mh,{...n,shouldContainFocus:b,isExiting:e,portalContainer:a},!n.isNonModal&&t.isOpen&&x.createElement("div",{"data-testid":"underlay",...c,style:{position:"fixed",inset:0}}),x.createElement("div",{ref:o,style:{display:"contents"}},x.createElement(Sg.Provider,{value:o},S)))}var $s=(0,x.createContext)(null),so=(0,x.createContext)(null),p4=(0,x.forwardRef)(function(t,e){let a=t["aria-labelledby"];[t,e]=Ja(t,e,$s);let{dialogProps:r,titleProps:n}=H2({...t,"aria-labelledby":a},e),i=(0,x.useContext)(so);!r["aria-label"]&&!r["aria-labelledby"]&&t["aria-labelledby"]&&(r["aria-labelledby"]=t["aria-labelledby"]);let o=Qa({defaultClassName:"react-aria-Dialog",className:t.className,style:t.style,children:t.children,values:{close:(i==null?void 0:i.close)||(()=>{})}}),l=gt(t,{global:!0});return x.createElement("section",{...ot(l,o,r),ref:e,slot:t.slot||void 0},x.createElement(ln,{values:[[hl,{slots:{[Yv]:{},title:{...n,level:2}}}],[dn,{slots:{[Yv]:{},close:{onPress:()=>i==null?void 0:i.close()}}}]]},o.children))}),h4=["day","month","year"],f4={hour:1,minute:2,second:3};function g4(t,e){let{autoComplete:a,isDisabled:r,name:n}=t,{visuallyHiddenProps:i}=hR({style:{position:"fixed",top:0,left:0}}),o=60;e.granularity==="second"?o=1:e.granularity==="hour"&&(o=3600);let l=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=f4[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:o,value:l,onChange:m=>{let p=m.target.value.toString();if(p)try{let h=Ui(p);if(e.granularity==="day"&&(h=Ma(p)),"setSegment"in e)for(let g in h)h4.includes(g)&&e.setSegment(g,h[g]),u.includes(g)&&e.setSegment(g,h[g]);e.setValue(h)}catch{}}}}}function x4(t){let{state:e}=t,{containerProps:a,inputProps:r}=g4({...t},e);return x.createElement("div",{...a,"data-testid":"hidden-dateinput-container"},x.createElement("input",r))}var Bs=(0,x.createContext)(null),uo=(0,x.createContext)(null),Ls=(0,x.createContext)(null),v4=(0,x.forwardRef)(function(t,e){let a=(0,x.useContext)(uo),r=(0,x.useContext)(Ls);return a||r?x.createElement(Ng,{...t,ref:e}):x.createElement(y4,{...t,ref:e})}),y4=(0,x.forwardRef)((t,e)=>{let[a,r]=Ja({slot:t.slot},e,Bs),{locale:n}=at(),i=J2({...a,locale:n,createCalendar:Ss}),o=(0,x.useRef)(null),{fieldProps:l,inputProps:d}=I2({...a,inputRef:o},i,r);return x.createElement(ln,{values:[[uo,i],[E6,{...d,ref:o}],[Rl,{...l,ref:r,isInvalid:i.isInvalid,isDisabled:i.isDisabled}]]},x.createElement(Ng,t))}),Ng=(0,x.forwardRef)((t,e)=>{let{className:a,children:r}=t,n=(0,x.useContext)(uo),i=(0,x.useContext)(Ls),o=n??i;return x.createElement(x.Fragment,null,x.createElement(C6,{...t,ref:e,slot:t.slot||void 0,className:a??"react-aria-DateInput",isReadOnly:o.isReadOnly,isInvalid:o.isInvalid,isDisabled:o.isDisabled},o.segments.map((l,d)=>(0,x.cloneElement)(r(l),{key:d}))),x.createElement(w6,null))}),b4=(0,x.forwardRef)(function({segment:t,...e},a){let r=(0,x.useContext)(uo),n=(0,x.useContext)(Ls),i=r??n,o=N6(a),{segmentProps:l}=O2(t,i,o),{focusProps:d,isFocused:u,isFocusVisible:c}=jl(),{hoverProps:m,isHovered:p}=Gv({...e,isDisabled:i.isDisabled||t.type==="literal"}),h=Qa({...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 x.createElement("span",{...ot(gt(e,{global:!0}),l,d,m),...h,style:l.style,ref:o,"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})}),w4=(0,x.createContext)(null),D4=(0,x.createContext)(null),j4=(0,x.createContext)(null),C4=(0,x.createContext)(null),Eg=[Rl,dn,yc,yi],k4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,w4);let{validationBehavior:a}=_l(Xv)||{},r=t.validationBehavior??a??"native",n=Y2({...t,validationBehavior:r}),i=(0,x.useRef)(null),[o,l]=Jv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,fieldProps:c,buttonProps:m,dialogProps:p,calendarProps:h,descriptionProps:g,errorMessageProps:f,...v}=M2({...ey(t),label:l,validationBehavior:r},n,i),[w,b]=(0,x.useState)(null);Mi({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&b(i.current.offsetWidth+"px")},[])});let{focusProps:D,isFocused:j,isFocusVisible:k}=jl({within:!0}),S=Qa({...t,values:{state:n,isFocusWithin:j,isFocusVisible:k,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DatePicker"}),N=gt(t,{global:!0});return delete N.id,x.createElement(ln,{values:[[j4,n],[Rl,{...d,ref:i,isInvalid:n.isInvalid}],[Bs,c],[dn,{...m,isPressed:n.isOpen}],[yc,{...u,ref:o,elementType:"span"}],[no,h],[so,n],[Os,{trigger:"DatePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":w},clearContexts:Eg}],[$s,p],[yi,{slots:{description:g,errorMessage:f}}],[ty,v]]},x.createElement("div",{...ot(N,S,D),ref:e,slot:t.slot||void 0,"data-focus-within":j||void 0,"data-invalid":n.isInvalid||void 0,"data-focus-visible":k||void 0,"data-disabled":t.isDisabled||void 0,"data-readonly":t.isReadOnly||void 0,"data-open":n.isOpen||void 0}),x.createElement(x4,{autoComplete:t.autoComplete,name:t.name,isDisabled:t.isDisabled,state:n}))}),S4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,D4);let{validationBehavior:a}=_l(Xv)||{},r=t.validationBehavior??a??"native",n=a4({...t,validationBehavior:r}),i=(0,x.useRef)(null),[o,l]=Jv(!t["aria-label"]&&!t["aria-labelledby"]),{groupProps:d,labelProps:u,startFieldProps:c,endFieldProps:m,buttonProps:p,dialogProps:h,calendarProps:g,descriptionProps:f,errorMessageProps:v,...w}=L2({...ey(t),label:l,validationBehavior:r},n,i),[b,D]=(0,x.useState)(null);Mi({ref:i,onResize:(0,x.useCallback)(()=>{i.current&&D(i.current.offsetWidth+"px")},[])});let{focusProps:j,isFocused:k,isFocusVisible:S}=jl({within:!0}),N=Qa({...t,values:{state:n,isFocusWithin:k,isFocusVisible:S,isDisabled:t.isDisabled||!1,isInvalid:n.isInvalid,isOpen:n.isOpen,isReadOnly:t.isReadOnly||!1},defaultClassName:"react-aria-DateRangePicker"}),y=gt(t,{global:!0});return delete y.id,x.createElement(ln,{values:[[C4,n],[Rl,{...d,ref:i,isInvalid:n.isInvalid}],[dn,{...p,isPressed:n.isOpen}],[yc,{...u,ref:o,elementType:"span"}],[io,g],[so,n],[Os,{trigger:"DateRangePicker",triggerRef:i,placement:"bottom start",style:{"--trigger-width":b},clearContexts:Eg}],[$s,h],[Bs,{slots:{start:c,end:m}}],[yi,{slots:{description:f,errorMessage:v}}],[ty,w]]},x.createElement("div",{...ot(y,N,j),ref:e,slot:t.slot||void 0,"data-focus-within":k||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}))}),N4=(0,x.forwardRef)(function(t,e){[t,e]=Ja(t,e,hl);let{children:a,level:r=3,className:n,...i}=t,o=`h${r}`;return x.createElement(o,{...i,ref:e,className:n??"react-aria-Heading"},a)}),E4=Na(pi(),1),Hs="ToastProvider",[Ws,_4,R4]=Fl("Toast"),[_g,DI]=bc("Toast",[R4]),[T4,co]=_g(Hs),Rg=t=>{let{__scopeToast:e,label:a="Notification",duration:r=5e3,swipeDirection:n="right",swipeThreshold:i=50,children:o}=t,[l,d]=x.useState(null),[u,c]=x.useState(0),m=x.useRef(!1),p=x.useRef(!1);return a.trim()||console.error(`Invalid prop \`label\` supplied to \`${Hs}\`. Expected non-empty \`string\`.`),(0,s.jsx)(Ws.Provider,{scope:e,children:(0,s.jsx)(T4,{scope:e,label:a,duration:r,swipeDirection:n,swipeThreshold:i,toastCount:u,viewport:l,onViewportChange:d,onToastAdd:x.useCallback(()=>c(h=>h+1),[]),onToastRemove:x.useCallback(()=>c(h=>h-1),[]),isFocusedToastEscapeKeyDownRef:m,isClosePausedRef:p,children:o})})};Rg.displayName=Hs;var Tg="ToastViewport",A4=["F8"],Us="toast.viewportPause",Ks="toast.viewportResume",Ag=x.forwardRef((t,e)=>{let{__scopeToast:a,hotkey:r=A4,label:n="Notifications ({hotkey})",...i}=t,o=co(Tg,a),l=_4(a),d=x.useRef(null),u=x.useRef(null),c=x.useRef(null),m=x.useRef(null),p=Mt(e,m,o.onViewportChange),h=r.join("+").replace(/Key/g,"").replace(/Digit/g,""),g=o.toastCount>0;x.useEffect(()=>{let v=w=>{var b;r.length!==0&&r.every(D=>w[D]||w.code===D)&&((b=m.current)==null||b.focus())};return document.addEventListener("keydown",v),()=>document.removeEventListener("keydown",v)},[r]),x.useEffect(()=>{let v=d.current,w=m.current;if(g&&v&&w){let b=()=>{if(!o.isClosePausedRef.current){let S=new CustomEvent(Us);w.dispatchEvent(S),o.isClosePausedRef.current=!0}},D=()=>{if(o.isClosePausedRef.current){let S=new CustomEvent(Ks);w.dispatchEvent(S),o.isClosePausedRef.current=!1}},j=S=>{v.contains(S.relatedTarget)||D()},k=()=>{v.contains(document.activeElement)||D()};return v.addEventListener("focusin",b),v.addEventListener("focusout",j),v.addEventListener("pointermove",b),v.addEventListener("pointerleave",k),window.addEventListener("blur",b),window.addEventListener("focus",D),()=>{v.removeEventListener("focusin",b),v.removeEventListener("focusout",j),v.removeEventListener("pointermove",b),v.removeEventListener("pointerleave",k),window.removeEventListener("blur",b),window.removeEventListener("focus",D)}}},[g,o.isClosePausedRef]);let f=x.useCallback(({tabbingDirection:v})=>{let w=l().map(b=>{let D=b.ref.current,j=[D,...U4(D)];return v==="forwards"?j:j.reverse()});return(v==="forwards"?w.reverse():w).flat()},[l]);return x.useEffect(()=>{let v=m.current;if(v){let w=b=>{var j,k,S;let D=b.altKey||b.ctrlKey||b.metaKey;if(b.key==="Tab"&&!D){let N=document.activeElement,y=b.shiftKey;if(b.target===v&&y){(j=u.current)==null||j.focus();return}let C=f({tabbingDirection:y?"backwards":"forwards"}),_=C.findIndex(E=>E===N);Ys(C.slice(_+1))?b.preventDefault():y?(k=u.current)==null||k.focus():(S=c.current)==null||S.focus()}};return v.addEventListener("keydown",w),()=>v.removeEventListener("keydown",w)}},[l,f]),(0,s.jsxs)(J6,{ref:d,role:"region","aria-label":n.replace("{hotkey}",h),tabIndex:-1,style:{pointerEvents:g?void 0:"none"},children:[g&&(0,s.jsx)(Zs,{ref:u,onFocusFromOutsideViewport:()=>{Ys(f({tabbingDirection:"forwards"}))}}),(0,s.jsx)(Ws.Slot,{scope:a,children:(0,s.jsx)(Ge.ol,{tabIndex:-1,...i,ref:p})}),g&&(0,s.jsx)(Zs,{ref:c,onFocusFromOutsideViewport:()=>{Ys(f({tabbingDirection:"backwards"}))}})]})});Ag.displayName=Tg;var Ig="ToastFocusProxy",Zs=x.forwardRef((t,e)=>{let{__scopeToast:a,onFocusFromOutsideViewport:r,...n}=t,i=co(Ig,a);return(0,s.jsx)(cy,{tabIndex:0,...n,ref:e,style:{position:"fixed"},onFocus:o=>{var d;let l=o.relatedTarget;(d=i.viewport)!=null&&d.contains(l)||r()}})});Zs.displayName=Ig;var Fn="Toast",I4="toast.swipeStart",P4="toast.swipeMove",M4="toast.swipeCancel",F4="toast.swipeEnd",Pg=x.forwardRef((t,e)=>{let{forceMount:a,open:r,defaultOpen:n,onOpenChange:i,...o}=t,[l,d]=Pl({prop:r,defaultProp:n??!0,onChange:i,caller:Fn});return(0,s.jsx)(wi,{present:a||l,children:(0,s.jsx)(O4,{open:l,...o,ref:e,onClose:()=>d(!1),onPause:aa(t.onPause),onResume:aa(t.onResume),onSwipeStart:Re(t.onSwipeStart,u=>{u.currentTarget.setAttribute("data-swipe","start")}),onSwipeMove:Re(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:Re(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:Re(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)})})})});Pg.displayName=Fn;var[z4,V4]=_g(Fn,{onClose(){}}),O4=x.forwardRef((t,e)=>{let{__scopeToast:a,type:r="foreground",duration:n,open:i,onClose:o,onEscapeKeyDown:l,onPause:d,onResume:u,onSwipeStart:c,onSwipeMove:m,onSwipeCancel:p,onSwipeEnd:h,...g}=t,f=co(Fn,a),[v,w]=x.useState(null),b=Mt(e,T=>w(T)),D=x.useRef(null),j=x.useRef(null),k=n||f.duration,S=x.useRef(0),N=x.useRef(k),y=x.useRef(0),{onToastAdd:C,onToastRemove:_}=f,E=aa(()=>{var T;v!=null&&v.contains(document.activeElement)&&((T=f.viewport)==null||T.focus()),o()}),A=x.useCallback(T=>{!T||T===1/0||(window.clearTimeout(y.current),S.current=new Date().getTime(),y.current=window.setTimeout(E,T))},[E]);x.useEffect(()=>{let T=f.viewport;if(T){let M=()=>{A(N.current),u==null||u()},R=()=>{let P=new Date().getTime()-S.current;N.current-=P,window.clearTimeout(y.current),d==null||d()};return T.addEventListener(Us,R),T.addEventListener(Ks,M),()=>{T.removeEventListener(Us,R),T.removeEventListener(Ks,M)}}},[f.viewport,k,d,u,A]),x.useEffect(()=>{i&&!f.isClosePausedRef.current&&A(k)},[i,k,f.isClosePausedRef,A]),x.useEffect(()=>(C(),()=>_()),[C,_]);let F=x.useMemo(()=>v?Bg(v):null,[v]);return f.viewport?(0,s.jsxs)(s.Fragment,{children:[F&&(0,s.jsx)($4,{__scopeToast:a,role:"status","aria-live":r==="foreground"?"assertive":"polite",children:F}),(0,s.jsx)(z4,{scope:a,onClose:E,children:E4.createPortal((0,s.jsx)(Ws.ItemSlot,{scope:a,children:(0,s.jsx)(Y6,{asChild:!0,onEscapeKeyDown:Re(l,()=>{f.isFocusedToastEscapeKeyDownRef.current||E(),f.isFocusedToastEscapeKeyDownRef.current=!1}),children:(0,s.jsx)(Ge.li,{tabIndex:0,"data-state":i?"open":"closed","data-swipe-direction":f.swipeDirection,...g,ref:b,style:{userSelect:"none",touchAction:"none",...t.style},onKeyDown:Re(t.onKeyDown,T=>{T.key==="Escape"&&(l==null||l(T.nativeEvent),T.nativeEvent.defaultPrevented||(f.isFocusedToastEscapeKeyDownRef.current=!0,E()))}),onPointerDown:Re(t.onPointerDown,T=>{T.button===0&&(D.current={x:T.clientX,y:T.clientY})}),onPointerMove:Re(t.onPointerMove,T=>{if(!D.current)return;let M=T.clientX-D.current.x,R=T.clientY-D.current.y,P=!!j.current,I=["left","right"].includes(f.swipeDirection),O=["left","up"].includes(f.swipeDirection)?Math.min:Math.max,V=I?O(0,M):0,$=I?0:O(0,R),Q=T.pointerType==="touch"?10:2,X={x:V,y:$},ae={originalEvent:T,delta:X};P?(j.current=X,mo(P4,m,ae,{discrete:!1})):Lg(X,f.swipeDirection,Q)?(j.current=X,mo(I4,c,ae,{discrete:!1}),T.target.setPointerCapture(T.pointerId)):(Math.abs(M)>Q||Math.abs(R)>Q)&&(D.current=null)}),onPointerUp:Re(t.onPointerUp,T=>{let M=j.current,R=T.target;if(R.hasPointerCapture(T.pointerId)&&R.releasePointerCapture(T.pointerId),j.current=null,D.current=null,M){let P=T.currentTarget,I={originalEvent:T,delta:M};Lg(M,f.swipeDirection,f.swipeThreshold)?mo(F4,h,I,{discrete:!0}):mo(M4,p,I,{discrete:!0}),P.addEventListener("click",O=>O.preventDefault(),{once:!0})}})})})}),f.viewport)})]}):null}),$4=t=>{let{__scopeToast:e,children:a,...r}=t,n=co(Fn,e),[i,o]=x.useState(!1),[l,d]=x.useState(!1);return H4(()=>o(!0)),x.useEffect(()=>{let u=window.setTimeout(()=>d(!0),1e3);return()=>window.clearTimeout(u)},[]),l?null:(0,s.jsx)(q6,{asChild:!0,children:(0,s.jsx)(cy,{...r,children:i&&(0,s.jsxs)(s.Fragment,{children:[n.label," ",a]})})})},B4="ToastTitle",Mg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ge.div,{...r,ref:e})});Mg.displayName=B4;var L4="ToastDescription",Fg=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t;return(0,s.jsx)(Ge.div,{...r,ref:e})});Fg.displayName=L4;var zg="ToastAction",Vg=x.forwardRef((t,e)=>{let{altText:a,...r}=t;return a.trim()?(0,s.jsx)($g,{altText:a,asChild:!0,children:(0,s.jsx)(qs,{...r,ref:e})}):(console.error(`Invalid prop \`altText\` supplied to \`${zg}\`. Expected non-empty \`string\`.`),null)});Vg.displayName=zg;var Og="ToastClose",qs=x.forwardRef((t,e)=>{let{__scopeToast:a,...r}=t,n=V4(Og,a);return(0,s.jsx)($g,{asChild:!0,children:(0,s.jsx)(Ge.button,{type:"button",...r,ref:e,onClick:Re(t.onClick,n.onClose)})})});qs.displayName=Og;var $g=x.forwardRef((t,e)=>{let{__scopeToast:a,altText:r,...n}=t;return(0,s.jsx)(Ge.div,{"data-radix-toast-announce-exclude":"","data-radix-toast-announce-alt":r||void 0,...n,ref:e})});function Bg(t){let e=[];return Array.from(t.childNodes).forEach(a=>{if(a.nodeType===a.TEXT_NODE&&a.textContent&&e.push(a.textContent),W4(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(...Bg(a))}}),e}function mo(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?wc(n,i):n.dispatchEvent(i)}var Lg=(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 H4(t=()=>{}){let e=aa(t);Il(()=>{let a=0,r=0;return a=window.requestAnimationFrame(()=>r=window.requestAnimationFrame(e)),()=>{window.cancelAnimationFrame(a),window.cancelAnimationFrame(r)}},[e])}function W4(t){return t.nodeType===t.ELEMENT_NODE}function U4(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 K4=Rg,Hg=Ag,Wg=Pg,Ug=Mg,Kg=Fg,Zg=Vg,qg=qs,Ar=ee(),Z4=K4,Yg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Hg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Yg.displayName=Hg.displayName;var q4=xl("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=x.forwardRef((t,e)=>{let a=(0,Ar.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 o=i||"default",l;a[4]!==r||a[5]!==o?(l=q(q4({variant:o}),"print:hidden",r),a[4]=r,a[5]=o,a[6]=l):l=a[6];let d;return a[7]!==n||a[8]!==e||a[9]!==l?(d=(0,s.jsx)(Wg,{ref:e,className:l,...n}),a[7]=n,a[8]=e,a[9]=l,a[10]=d):d=a[10],d});Gg.displayName=Wg.displayName;var Y4=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Zg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Y4.displayName=Zg.displayName;var Qg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("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 o;a[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(on,{className:"h-4 w-4"}),a[5]=o):o=a[5];let l;return a[6]!==n||a[7]!==e||a[8]!==i?(l=(0,s.jsx)(qg,{ref:e,className:i,"toast-close":"",...n,children:o}),a[6]=n,a[7]=e,a[8]=i,a[9]=l):l=a[9],l});Qg.displayName=qg.displayName;var Jg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("text-sm font-semibold",r),a[3]=r,a[4]=i);let o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Ug,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Jg.displayName=Ug.displayName;var Xg=x.forwardRef((t,e)=>{let a=(0,Ar.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=q("text-sm opacity-90",r),a[3]=r,a[4]=i);let o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(Kg,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});Xg.displayName=Kg.displayName;var G4=ee();const Q4=()=>{let t=(0,G4.c)(5),{toasts:e}=H6(),a;t[0]===e?a=t[1]:(a=e.map(J4),t[0]=e,t[1]=a);let r;t[2]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(Yg,{}),t[2]=r):r=t[2];let n;return t[3]===a?n=t[4]:(n=(0,s.jsxs)(Z4,{children:[a,r]}),t[3]=a,t[4]=n),n};function J4(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)(Jg,{children:a}),r&&(0,s.jsx)(Xg,{children:r})]}),n,(0,s.jsx)(Qg,{})]},e)}var X4=ee();const Gs=t=>{let e=(0,X4.c)(5),{children:a}=t,r=dl(DR),n;e[0]===r?n=e[1]:(n=eD(r),e[0]=r,e[1]=n);let i;return e[2]!==a||e[3]!==n?(i=(0,s.jsx)(yA,{locale:n,children:a}),e[2]=a,e[3]=n,e[4]=i):i=e[4],i};function eD(t){return t&&tD(t)?t:navigator.language}function tD(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var e0=ee(),t0=Pi(()=>Rt(()=>import("./home-page-Bs5_UsFC.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,126,127,128,129]),import.meta.url)),a0=Pi(()=>Rt(()=>import("./run-page-DzsjMR6O.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([130,131,132,4,133,13,8,9,10,134,135,136,137,27,3,5,6,7,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,68,69,70,71,72,113,138,139,77,140,111,82,81,87,86,88,89,90,91,92,78,79,75,76,93,141,142,143,100,104,73,144,145,146,147,148,149,150,151,85,94,152,99,153,96,97,154,98,155,118,119,120,122,124,156,157,158,103,159,160,161,162,163,164,165,166,167,168,169,105,170,84,95,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,277,278,279,280,101,102,281,282,283,284,285,286,287,288,289,290,291]),import.meta.url)),r0=Pi(()=>Rt(()=>import("./edit-page-BNA8A6Ux.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([292,4,293,10,131,132,133,13,8,9,134,135,136,137,27,3,5,6,7,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,68,69,70,71,72,113,138,139,77,140,111,82,81,87,86,88,89,90,91,92,78,79,75,76,93,141,142,143,100,104,73,144,145,146,147,148,149,150,151,85,94,152,99,153,96,97,154,98,155,118,119,120,122,124,156,157,158,103,159,160,161,162,163,164,165,166,167,168,169,105,170,84,95,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,277,278,279,280,101,102,281,282,283,284,285,286,287,288,289,2,74,80,83,106,107,108,1,109,110,112,294,295,114,117,296,297,115,116,298,299,300,301,302,303,304,305,306,128,307,308,309,310,129,311,312,313,121,291,314,315,127,316,317,318,319,320,321,322,323,324,325,326,327]),import.meta.url)),n0=Pi(()=>Rt(()=>import("./gallery-page-Dwy7ttw7.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([328,113,12,13,8,9,10,6,7,11,36,73,20,80,14,15,87,86,25,26,27,66,67,42,68,88,48,28,89,90,91,92,21,37,38,97,98,82,99,31,51]),import.meta.url));function aD(t){switch(t){case"home":t0.preload();break;case"gallery":n0.preload();break;case"read":a0.preload();break;default:r0.preload()}}const i0=(0,x.memo)(()=>{let t=(0,e0.c)(12),[e]=NR(),[a]=SR(),r;t[0]===e.display.code_editor_font_size?r=t[1]:(r=rD(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=T_();return c==="home"?(0,s.jsx)(t0.Component,{}):c==="gallery"?(0,s.jsx)(n0.Component,{}):c==="read"?(0,s.jsx)(a0.Component,{appConfig:a}):(0,s.jsx)(r0.Component,{userConfig:e,appConfig:a})},t[2]=a,t[3]=e,t[4]=i):i=t[4];let o=i,l;t[5]===n?l=t[6]:(l={"--marimo-code-editor-font-size":n},t[5]=n,t[6]=l);let d;t[7]===o?d=t[8]:(d=(0,s.jsx)(Gs,{children:o()}),t[7]=o,t[8]=d);let u;return t[9]!==l||t[10]!==d?(u=(0,s.jsx)(o0,{children:(0,s.jsx)(Qb,{variables:l,children:d})}),t[9]=l,t[10]=d,t[11]=u):u=t[11],u});i0.displayName="MarimoApp";var o0=(0,x.memo)(t=>{let e=(0,e0.c)(5),{children:a}=t,r,n,i;e[0]===Symbol.for("react.memo_cache_sentinel")?(r=(0,s.jsx)(Q4,{}),n=(0,s.jsx)(Gb,{}),i=(0,s.jsx)(Xb,{}),e[0]=r,e[1]=n,e[2]=i):(r=e[0],n=e[1],i=e[2]);let o;return e[3]===a?o=e[4]:(o=(0,s.jsx)(gl,{children:(0,s.jsx)(x.Suspense,{children:(0,s.jsx)(zt,{children:(0,s.jsx)(xv,{controller:hi,children:(0,s.jsx)(Gs,{children:(0,s.jsxs)(kA,{children:[a,r,n,i]})})})})})}),e[3]=a,e[4]=o),o});o0.displayName="Providers";function rD(t){return`${t/16}rem`}function nD(){Z6(t=>{t.delete(ac.accessToken)})}var iD={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",listStorageEntries:"waitForConnectionOpen",downloadStorage:"waitForConnectionOpen",syncCellIds:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function oD(t,e){let a=mT(async n=>{We.set(Nv,{state:_v.CONNECTING}),await n.init()});function r(n,i){let o=iD[i];return async(...l)=>{let d=e();if(!d.isLazy)return n(...l);switch(o){case"dropRequest":de.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Dy;case"waitForConnectionOpen":return await tt(),await Zv(),n(...l);case"startConnection":return await a(d),await tt(),i!=="sendInstantiate"&&await Zv(),n(...l);default:throw Error(`Unknown action for "${i}"`)}}}return Za.mapValues(t,(n,i)=>r(n,i))}var{handleResponse:Be,handleResponseReturnNull:De}=TR;function lD(){let t=g_(()=>PR(rc())),e=()=>rc().sessionHeaders(),a=()=>({header:e()});return{sendComponentValues:r=>t().POST("/api/kernel/set_ui_element_value",{body:r,params:a()}).then(De),sendModelValue:r=>t().POST("/api/kernel/set_model_value",{body:r,params:a()}).then(De),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:a()}).then(De),syncCellIds:async r=>(await tt(),t().POST("/api/kernel/sync/cell_ids",{body:r,params:a()}).then(De)),sendRename:r=>t().POST("/api/kernel/rename",{body:r,params:a()}).then(De),sendSave:r=>t().POST("/api/kernel/save",{body:r,parseAs:"text",params:a()}).then(De),sendCopy:r=>t().POST("/api/kernel/copy",{body:r,parseAs:"text",params:a()}).then(De),sendFormat:r=>t().POST("/api/kernel/format",{body:r}).then(Be),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:a()}).then(De),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(De),sendRun:async r=>(await tt(),t().POST("/api/kernel/run",{body:r,params:a()}).then(De)),sendRunScratchpad:async r=>(await tt(),t().POST("/api/kernel/scratchpad/run",{body:r,params:a()}).then(De)),sendInstantiate:async r=>(await tt(),t().POST("/api/kernel/instantiate",{body:r,params:a()}).then(De)),sendDeleteCell:r=>t().POST("/api/kernel/delete",{body:r,params:a()}).then(De),sendCodeCompletionRequest:async r=>(await tt(),t().POST("/api/kernel/code_autocomplete",{body:r,params:a()}).then(De)),saveUserConfig:r=>t().POST("/api/kernel/save_user_config",{body:r}).then(De),saveAppConfig:r=>t().POST("/api/kernel/save_app_config",{body:r,parseAs:"text",params:a()}).then(De),saveCellConfig:r=>t().POST("/api/kernel/set_cell_config",{body:r,params:a()}).then(De),sendFunctionRequest:r=>t().POST("/api/kernel/function_call",{body:r,params:a()}).then(De),sendStdin:r=>t().POST("/api/kernel/stdin",{body:r,params:a()}).then(De),sendInstallMissingPackages:r=>t().POST("/api/kernel/install_missing_packages",{body:r,params:a()}).then(De),readCode:async()=>(await tt(),t().POST("/api/kernel/read_code",{params:a()}).then(Be)),readSnippets:async()=>(await tt(),t().GET("/api/documentation/snippets",{params:a()}).then(Be)),previewDatasetColumn:r=>t().POST("/api/datasources/preview_column",{body:r,params:a()}).then(De),previewSQLTable:r=>t().POST("/api/datasources/preview_sql_table",{body:r,params:a()}).then(De),previewSQLTableList:r=>t().POST("/api/datasources/preview_sql_table_list",{body:r,params:a()}).then(De),previewDataSourceConnection:r=>t().POST("/api/datasources/preview_datasource_connection",{body:r,params:a()}).then(De),validateSQL:r=>t().POST("/api/sql/validate",{body:r,params:a()}).then(De),openFile:async r=>(await tt(),await t().POST("/api/files/open",{body:r}).then(De),null),getUsageStats:async()=>(await tt(),t().GET("/api/usage").then(Be)),sendPdb:r=>t().POST("/api/kernel/pdb/pm",{body:r,params:a()}).then(De),sendListFiles:async r=>(await tt(),t().POST("/api/files/list_files",{body:r}).then(Be)),sendSearchFiles:async r=>(await tt(),t().POST("/api/files/search",{body:r}).then(Be)),sendCreateFileOrFolder:async r=>(await tt(),t().POST("/api/files/create",{body:r}).then(Be)),sendDeleteFileOrFolder:async r=>(await tt(),t().POST("/api/files/delete",{body:r}).then(Be)),sendRenameFileOrFolder:async r=>(await tt(),t().POST("/api/files/move",{body:r}).then(Be)),sendUpdateFile:async r=>(await tt(),t().POST("/api/files/update",{body:r}).then(Be)),sendFileDetails:async r=>(await tt(),t().POST("/api/files/file_details",{body:r}).then(Be)),openTutorial:r=>t().POST("/api/home/tutorial/open",{body:r}).then(Be),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Be),getWorkspaceFiles:r=>t().POST("/api/home/workspace_files",{body:r}).then(Be),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Be),shutdownSession:r=>t().POST("/api/home/shutdown_session",{body:r}).then(Be),exportAsHTML:async r=>t().POST("/api/export/html",{body:r,parseAs:"text",params:a()}).then(Be),exportAsMarkdown:async r=>t().POST("/api/export/markdown",{body:r,parseAs:"text",params:a()}).then(Be),exportAsPDF:async r=>t().POST("/api/export/pdf",{body:r,parseAs:"blob",params:a()}).then(Be),autoExportAsHTML:async r=>t().POST("/api/export/auto_export/html",{body:r,params:a()}).then(De),autoExportAsMarkdown:async r=>t().POST("/api/export/auto_export/markdown",{body:r,params:a()}).then(De),autoExportAsIPYNB:async r=>t().POST("/api/export/auto_export/ipynb",{body:r,params:a()}).then(De),updateCellOutputs:async r=>t().POST("/api/export/update_cell_outputs",{body:r,params:a()}).then(De),addPackage:r=>t().POST("/api/packages/add",{body:r}).then(Be),removePackage:r=>t().POST("/api/packages/remove",{body:r}).then(Be),getPackageList:async()=>(await tt(),t().GET("/api/packages/list").then(Be)),getDependencyTree:async()=>(await tt(),t().GET("/api/packages/tree").then(Be)),listSecretKeys:async r=>(await tt(),t().POST("/api/secrets/keys",{body:r,params:a()}).then(De)),writeSecret:async r=>t().POST("/api/secrets/create",{body:r,params:a()}).then(De),invokeAiTool:async r=>t().POST("/api/ai/invoke_tool",{body:r,params:a()}).then(Be),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:a()}).then(De),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:a()}).then(De),listStorageEntries:r=>t().POST("/api/storage/list_entries",{body:r,params:a()}).then(De),downloadStorage:r=>t().POST("/api/storage/download",{body:r,params:a()}).then(De)}}function sD(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(ta({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),de.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(de.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(de.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(ta({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),de.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,listStorageEntries:t,downloadStorage:t}}var dD=ee();function uD(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:"",listStorageEntries:"Failed to list storage entries",downloadStorage:"Failed to download storage entry"},a={};for(let[r,n]of Object.entries(t)){let i=r;a[i]=async(...o)=>{try{return await n(...o)}catch(l){if(l instanceof Dy){if(We.get(Sv))return;let c=ta({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,s.jsx)(cD,{onConnect:()=>c.dismiss()})});throw de.error(`Failed to handle request: ${r}`,l),l}let d=e[i],u=jy(l);throw d&&ta({title:d,description:u,variant:"danger"}),de.error(`Failed to handle request: ${r}`,l),l}}}return a}const cD=t=>{let e=(0,dD.c)(9),{onConnect:a}=t,r=_R(),n=dl(Sv),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 o;e[3]===n?o=e[4]:(o=n&&(0,s.jsx)(vi,{size:"small",className:"mr-1"}),e[3]=n,e[4]=o);let l;return e[5]!==n||e[6]!==i||e[7]!==o?(l=(0,s.jsxs)(Se,{size:"xs",onClick:i,disabled:n,children:[o,"Connect"]}),e[5]=n,e[6]=i,e[7]=o,e[8]=l):l=e[8],l};function mD(){let t;return t=ER()?J_.INSTANCE:gi()?sD():oD(lD(),()=>rc()),uD(t)}var pD=Na(pi(),1),sr="NavigationMenu",[Qs,l0,hD]=Fl(sr),[Js,fD,gD]=Fl(sr),[Xs,jI]=bc(sr,[hD,gD]),[xD,$t]=Xs(sr),[vD,yD]=Xs(sr),s0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,delayDuration:o=200,skipDelayDuration:l=300,orientation:d="horizontal",dir:u,...c}=t,[m,p]=x.useState(null),h=Mt(e,C=>p(C)),g=py(u),f=x.useRef(0),v=x.useRef(0),w=x.useRef(0),[b,D]=x.useState(!0),[j,k]=Pl({prop:r,onChange:C=>{let _=C!=="",E=l>0;_?(window.clearTimeout(w.current),E&&D(!1)):(window.clearTimeout(w.current),w.current=window.setTimeout(()=>D(!0),l)),n==null||n(C)},defaultProp:i??"",caller:sr}),S=x.useCallback(()=>{window.clearTimeout(v.current),v.current=window.setTimeout(()=>k(""),150)},[k]),N=x.useCallback(C=>{window.clearTimeout(v.current),k(C)},[k]),y=x.useCallback(C=>{j===C?window.clearTimeout(v.current):f.current=window.setTimeout(()=>{window.clearTimeout(v.current),k(C)},o)},[j,k,o]);return x.useEffect(()=>()=>{window.clearTimeout(f.current),window.clearTimeout(v.current),window.clearTimeout(w.current)},[]),(0,s.jsx)(d0,{scope:a,isRootMenu:!0,value:j,dir:g,orientation:d,rootNavigationMenu:m,onTriggerEnter:C=>{window.clearTimeout(f.current),b?y(C):N(C)},onTriggerLeave:()=>{window.clearTimeout(f.current),S()},onContentEnter:()=>window.clearTimeout(v.current),onContentLeave:S,onItemSelect:C=>{k(_=>_===C?"":C)},onItemDismiss:()=>k(""),children:(0,s.jsx)(Ge.nav,{"aria-label":"Main","data-orientation":d,dir:g,...c,ref:h})})});s0.displayName=sr;var ed="NavigationMenuSub",bD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,onValueChange:n,defaultValue:i,orientation:o="horizontal",...l}=t,d=$t(ed,a),[u,c]=Pl({prop:r,onChange:n,defaultProp:i??"",caller:ed});return(0,s.jsx)(d0,{scope:a,isRootMenu:!1,value:u,dir:d.dir,orientation:o,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:m=>c(m),onItemSelect:m=>c(m),onItemDismiss:()=>c(""),children:(0,s.jsx)(Ge.div,{"data-orientation":o,...l,ref:e})})});bD.displayName=ed;var d0=t=>{let{scope:e,isRootMenu:a,rootNavigationMenu:r,dir:n,orientation:i,children:o,value:l,onItemSelect:d,onItemDismiss:u,onTriggerEnter:c,onTriggerLeave:m,onContentEnter:p,onContentLeave:h}=t,[g,f]=x.useState(null),[v,w]=x.useState(new Map),[b,D]=x.useState(null);return(0,s.jsx)(xD,{scope:e,isRootMenu:a,rootNavigationMenu:r,value:l,previousValue:dy(l),baseId:sy(),dir:n,orientation:i,viewport:g,onViewportChange:f,indicatorTrack:b,onIndicatorTrackChange:D,onTriggerEnter:aa(c),onTriggerLeave:aa(m),onContentEnter:aa(p),onContentLeave:aa(h),onItemSelect:aa(d),onItemDismiss:aa(u),onViewportContentChange:x.useCallback((j,k)=>{w(S=>(S.set(j,k),new Map(S)))},[]),onViewportContentRemove:x.useCallback(j=>{w(k=>k.has(j)?(k.delete(j),new Map(k)):k)},[]),children:(0,s.jsx)(Qs.Provider,{scope:e,children:(0,s.jsx)(vD,{scope:e,items:v,children:o})})})},u0="NavigationMenuList",c0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(u0,a),i=(0,s.jsx)(Ge.ul,{"data-orientation":n.orientation,...r,ref:e});return(0,s.jsx)(Ge.div,{style:{position:"relative"},ref:n.onIndicatorTrackChange,children:(0,s.jsx)(Qs.Slot,{scope:a,children:n.isRootMenu?(0,s.jsx)(D0,{asChild:!0,children:i}):i})})});c0.displayName=u0;var m0="NavigationMenuItem",[wD,p0]=Xs(m0),h0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,...n}=t,i=sy(),o=r||i||"LEGACY_REACT_AUTO_VALUE",l=x.useRef(null),d=x.useRef(null),u=x.useRef(null),c=x.useRef(()=>{}),m=x.useRef(!1),p=x.useCallback((g="start")=>{if(l.current){c.current();let f=nd(l.current);f.length&&id(g==="start"?f:f.reverse())}},[]),h=x.useCallback(()=>{if(l.current){let g=nd(l.current);g.length&&(c.current=ED(g))}},[]);return(0,s.jsx)(wD,{scope:a,value:o,triggerRef:d,contentRef:l,focusProxyRef:u,wasEscapeCloseRef:m,onEntryKeyDown:p,onFocusProxyEnter:p,onRootContentClose:h,onContentFocusOutside:h,children:(0,s.jsx)(Ge.li,{...n,ref:e})})});h0.displayName=m0;var td="NavigationMenuTrigger",f0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,disabled:r,...n}=t,i=$t(td,t.__scopeNavigationMenu),o=p0(td,t.__scopeNavigationMenu),l=x.useRef(null),d=Mt(l,o.triggerRef,e),u=k0(i.baseId,o.value),c=S0(i.baseId,o.value),m=x.useRef(!1),p=x.useRef(!1),h=o.value===i.value;return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(Qs.ItemSlot,{scope:a,value:o.value,children:(0,s.jsx)(C0,{asChild:!0,children:(0,s.jsx)(Ge.button,{id:u,disabled:r,"data-disabled":r?"":void 0,"data-state":ld(h),"aria-expanded":h,"aria-controls":c,...n,ref:d,onPointerEnter:Re(t.onPointerEnter,()=>{p.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:Re(t.onPointerMove,ho(()=>{r||p.current||o.wasEscapeCloseRef.current||m.current||(i.onTriggerEnter(o.value),m.current=!0)})),onPointerLeave:Re(t.onPointerLeave,ho(()=>{r||(i.onTriggerLeave(),m.current=!1)})),onClick:Re(t.onClick,()=>{i.onItemSelect(o.value),p.current=h}),onKeyDown:Re(t.onKeyDown,g=>{let f={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];h&&g.key===f&&(o.onEntryKeyDown(),g.preventDefault())})})})}),h&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(nA,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{let f=o.contentRef.current,v=g.relatedTarget,w=v===l.current,b=f==null?void 0:f.contains(v);(w||!b)&&o.onFocusProxyEnter(w?"start":"end")}}),i.viewport&&(0,s.jsx)("span",{"aria-owns":c})]})]})});f0.displayName=td;var DD="NavigationMenuLink",g0="navigationMenu.linkSelect",x0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,active:r,onSelect:n,...i}=t;return(0,s.jsx)(C0,{asChild:!0,children:(0,s.jsx)(Ge.a,{"data-active":r?"":void 0,"aria-current":r?"page":void 0,...i,ref:e,onClick:Re(t.onClick,o=>{let l=o.target,d=new CustomEvent(g0,{bubbles:!0,cancelable:!0});l.addEventListener(g0,u=>n==null?void 0:n(u),{once:!0}),wc(l,d),!d.defaultPrevented&&!o.metaKey&&wc(l,new CustomEvent(po,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});x0.displayName=DD;var ad="NavigationMenuIndicator",v0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=$t(ad,t.__scopeNavigationMenu),i=!!n.value;return n.indicatorTrack?pD.createPortal((0,s.jsx)(wi,{present:a||i,children:(0,s.jsx)(jD,{...r,ref:e})}),n.indicatorTrack):null});v0.displayName=ad;var jD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(ad,a),i=l0(a),[o,l]=x.useState(null),[d,u]=x.useState(null),c=n.orientation==="horizontal",m=!!n.value;x.useEffect(()=>{var g;let h=(g=i().find(f=>f.value===n.value))==null?void 0:g.ref.current;h&&l(h)},[i,n.value]);let p=()=>{o&&u({size:c?o.offsetWidth:o.offsetHeight,offset:c?o.offsetLeft:o.offsetTop})};return od(o,p),od(n.indicatorTrack,p),d?(0,s.jsx)(Ge.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}),Ir="NavigationMenuContent",y0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=$t(Ir,t.__scopeNavigationMenu),i=p0(Ir,t.__scopeNavigationMenu),o=Mt(i.contentRef,e),l=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)(CD,{forceMount:a,...d,ref:o}):(0,s.jsx)(wi,{present:a||l,children:(0,s.jsx)(b0,{"data-state":ld(l),...d,ref:o,onPointerEnter:Re(t.onPointerEnter,n.onContentEnter),onPointerLeave:Re(t.onPointerLeave,ho(n.onContentLeave)),style:{pointerEvents:!l&&n.isRootMenu?"none":void 0,...d.style}})})});y0.displayName=Ir;var CD=x.forwardRef((t,e)=>{let{onViewportContentChange:a,onViewportContentRemove:r}=$t(Ir,t.__scopeNavigationMenu);return Il(()=>{a(t.value,{ref:e,...t})},[t,e,a]),Il(()=>()=>r(t.value),[t.value,r]),null}),po="navigationMenu.rootContentDismiss",b0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,value:r,triggerRef:n,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:l,onContentFocusOutside:d,...u}=t,c=$t(Ir,a),m=x.useRef(null),p=Mt(m,e),h=k0(c.baseId,r),g=S0(c.baseId,r),f=l0(a),v=x.useRef(null),{onItemDismiss:w}=c;x.useEffect(()=>{let D=m.current;if(c.isRootMenu&&D){let j=()=>{var k;w(),l(),D.contains(document.activeElement)&&((k=n.current)==null||k.focus())};return D.addEventListener(po,j),()=>D.removeEventListener(po,j)}},[c.isRootMenu,t.value,n,w,l]);let b=x.useMemo(()=>{let D=f().map(C=>C.value);c.dir==="rtl"&&D.reverse();let j=D.indexOf(c.value),k=D.indexOf(c.previousValue),S=r===c.value,N=k===D.indexOf(r);if(!S&&!N)return v.current;let y=(()=>{if(j!==k){if(S&&k!==-1)return j>k?"from-end":"from-start";if(N&&j!==-1)return j>k?"to-start":"to-end"}return null})();return v.current=y,y},[c.previousValue,c.value,c.dir,f,r]);return(0,s.jsx)(D0,{asChild:!0,children:(0,s.jsx)(Q6,{id:g,"aria-labelledby":h,"data-motion":b,"data-orientation":c.orientation,...u,ref:p,disableOutsidePointerEvents:!1,onDismiss:()=>{var j;let D=new Event(po,{bubbles:!0,cancelable:!0});(j=m.current)==null||j.dispatchEvent(D)},onFocusOutside:Re(t.onFocusOutside,D=>{var k;d();let j=D.target;(k=c.rootNavigationMenu)!=null&&k.contains(j)&&D.preventDefault()}),onPointerDownOutside:Re(t.onPointerDownOutside,D=>{var N;let j=D.target,k=f().some(y=>{var C;return(C=y.ref.current)==null?void 0:C.contains(j)}),S=c.isRootMenu&&((N=c.viewport)==null?void 0:N.contains(j));(k||S||!c.isRootMenu)&&D.preventDefault()}),onKeyDown:Re(t.onKeyDown,D=>{var k;let j=D.altKey||D.ctrlKey||D.metaKey;if(D.key==="Tab"&&!j){let S=nd(D.currentTarget),N=document.activeElement,y=S.findIndex(C=>C===N);id(D.shiftKey?S.slice(0,y).reverse():S.slice(y+1,S.length))?D.preventDefault():(k=i.current)==null||k.focus()}}),onEscapeKeyDown:Re(t.onEscapeKeyDown,D=>{o.current=!0})})})}),rd="NavigationMenuViewport",w0=x.forwardRef((t,e)=>{let{forceMount:a,...r}=t,n=!!$t(rd,t.__scopeNavigationMenu).value;return(0,s.jsx)(wi,{present:a||n,children:(0,s.jsx)(kD,{...r,ref:e})})});w0.displayName=rd;var kD=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,children:r,...n}=t,i=$t(rd,a),o=Mt(e,i.onViewportChange),l=yD(Ir,t.__scopeNavigationMenu),[d,u]=x.useState(null),[c,m]=x.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 od(c,()=>{c&&u({width:c.offsetWidth,height:c.offsetHeight})}),(0,s.jsx)(Ge.div,{"data-state":ld(g),"data-orientation":i.orientation,...n,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":p,"--radix-navigation-menu-viewport-height":h,...n.style},onPointerEnter:Re(t.onPointerEnter,i.onContentEnter),onPointerLeave:Re(t.onPointerLeave,ho(i.onContentLeave)),children:Array.from(l.items).map(([v,{ref:w,forceMount:b,...D}])=>{let j=f===v;return(0,s.jsx)(wi,{present:b||j,children:(0,s.jsx)(b0,{...D,ref:vR(w,k=>{j&&k&&m(k)})})},v)})})}),SD="FocusGroup",D0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=$t(SD,a);return(0,s.jsx)(Js.Provider,{scope:a,children:(0,s.jsx)(Js.Slot,{scope:a,children:(0,s.jsx)(Ge.div,{dir:n.dir,...r,ref:e})})})}),j0=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],ND="FocusGroupItem",C0=x.forwardRef((t,e)=>{let{__scopeNavigationMenu:a,...r}=t,n=fD(a),i=$t(ND,a);return(0,s.jsx)(Js.ItemSlot,{scope:a,children:(0,s.jsx)(Ge.button,{...r,ref:e,onKeyDown:Re(t.onKeyDown,o=>{if(["Home","End",...j0].includes(o.key)){let l=n().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&l.reverse(),j0.includes(o.key)){let d=l.indexOf(o.currentTarget);l=l.slice(d+1)}setTimeout(()=>id(l)),o.preventDefault()}})})})});function nd(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 id(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 od(t,e){let a=aa(e);Il(()=>{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 ld(t){return t?"open":"closed"}function k0(t,e){return`${t}-trigger-${e}`}function S0(t,e){return`${t}-content-${e}`}function ho(t){return e=>e.pointerType==="mouse"?t(e):void 0}var N0=s0,E0=c0,_D=h0,_0=f0,RD=x0,R0=v0,T0=y0,A0=w0,Pr=ee(),sd=x.forwardRef((t,e)=>{let a=(0,Pr.c)(16),r,n,i,o;a[0]===t?(r=a[1],n=a[2],i=a[3],o=a[4]):({className:n,children:r,orientation:i,...o}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=o);let l=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",u;a[5]!==n||a[6]!==l||a[7]!==d?(u=q(l,d,"relative z-10",n),a[5]=n,a[6]=l,a[7]=d,a[8]=u):u=a[8];let c;a[9]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)(M0,{}),a[9]=c):c=a[9];let m;return a[10]!==r||a[11]!==i||a[12]!==o||a[13]!==e||a[14]!==u?(m=(0,s.jsxs)(N0,{ref:e,className:u,orientation:i,...o,children:[r,c]}),a[10]=r,a[11]=i,a[12]=o,a[13]=e,a[14]=u,a[15]=m):m=a[15],m});sd.displayName=N0.displayName;var TD=xl("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),fo=x.forwardRef((t,e)=>{let a=(0,Pr.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 o;a[4]!==r||a[5]!==n?(o=q(TD({orientation:n}),r),a[4]=r,a[5]=n,a[6]=o):o=a[6];let l;return a[7]!==i||a[8]!==e||a[9]!==o?(l=(0,s.jsx)(E0,{ref:e,className:o,...i}),a[7]=i,a[8]=e,a[9]=o,a[10]=l):l=a[10],l});fo.displayName=E0.displayName;var dd=_D,ud=xl("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"}}),I0=x.forwardRef((t,e)=>{let a=(0,Pr.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 o;a[4]===n?o=a[5]:(o=q(ud(),"group",n),a[4]=n,a[5]=o);let l;a[6]===Symbol.for("react.memo_cache_sentinel")?(l=(0,s.jsx)(QT,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),a[6]=l):l=a[6];let d;return a[7]!==r||a[8]!==i||a[9]!==e||a[10]!==o?(d=(0,s.jsxs)(_0,{ref:e,className:o,...i,children:[r," ",l]}),a[7]=r,a[8]=i,a[9]=e,a[10]=o,a[11]=d):d=a[11],d});I0.displayName=_0.displayName;var P0=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("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 o;return a[5]!==n||a[6]!==e||a[7]!==i?(o=(0,s.jsx)(T0,{ref:e,className:i,...n}),a[5]=n,a[6]=e,a[7]=i,a[8]=o):o=a[8],o});P0.displayName=T0.displayName;var cd=RD,M0=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("absolute left-0 top-full flex justify-center"),a[3]=i):i=a[3];let o;a[4]===r?o=a[5]:(o=q("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]=o);let l;return a[6]!==n||a[7]!==e||a[8]!==o?(l=(0,s.jsx)("div",{className:i,children:(0,s.jsx)(A0,{className:o,ref:e,...n})}),a[6]=n,a[7]=e,a[8]=o,a[9]=l):l=a[9],l});M0.displayName=A0.displayName;var AD=x.forwardRef((t,e)=>{let a=(0,Pr.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=q("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 o;a[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),a[5]=o):o=a[5];let l;return a[6]!==n||a[7]!==e||a[8]!==i?(l=(0,s.jsx)(R0,{ref:e,className:i,...n,children:o}),a[6]=n,a[7]=e,a[8]=i,a[9]=l):l=a[9],l});AD.displayName=R0.displayName;var F0=ee(),ID=class{constructor(){Z(this,"tagName","marimo-nav-menu");Z(this,"menuItemValidator",B({label:z(),href:z(),description:z().nullish()}));Z(this,"menuItemGroupValidator",B({label:z(),items:J(this.menuItemValidator)}));Z(this,"validator",B({items:J(_e([this.menuItemValidator,this.menuItemGroupValidator])),orientation:be(["horizontal","vertical"])}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(PD,{...t.data})})}},PD=t=>{let e=(0,F0.c)(13),{items:a,orientation:r}=t,n=MD,i=FD,o=zD,l;e[0]===r?l=e[1]:(l=p=>"items"in p?r==="horizontal"?(0,s.jsx)(sd,{orientation:"horizontal",children:(0,s.jsx)(fo,{children:(0,s.jsxs)(dd,{children:[(0,s.jsx)(I0,{children:Oe({html:p.label})}),(0,s.jsx)(P0,{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)(z0,{label:h.label,href:o(h.href),target:i(h.href),children:h.description&&Oe({html:h.description})},h.label))})})]})})},p.label):(0,s.jsxs)(dd,{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:Oe({html:p.label})}),(0,s.jsx)(fo,{className:"ml-4 auto-collapse-nav",orientation:r,children:p.items.map(h=>(0,s.jsx)(x.Fragment,{children:n((0,s.jsx)(cd,{href:o(h.href),target:i(h.href),className:ud({orientation:r}),children:Oe({html:h.label})},h.label),h.description)},h.label))})]},p.label):(0,s.jsx)(dd,{children:(0,s.jsx)(cd,{href:o(p.href),target:i(p.href),className:ud({orientation:r}),children:Oe({html:p.label})})},p.label),e[0]=r,e[1]=l);let d=l,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)(fo,{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)(sd,{orientation:r,children:c}),e[10]=r,e[11]=c,e[12]=m):m=e[12],m},z0=x.forwardRef((t,e)=>{let a=(0,F0.c)(19),r,n,i,o;a[0]===t?(r=a[1],n=a[2],i=a[3],o=a[4]):({className:n,label:i,children:r,...o}=t,a[0]=t,a[1]=r,a[2]=n,a[3]=i,a[4]=o);let l;a[5]===n?l=a[6]:(l=q("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]=l);let d;a[7]===i?d=a[8]:(d=Oe({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]!==o||a[14]!==e||a[15]!==l||a[16]!==u||a[17]!==c?(m=(0,s.jsx)("li",{children:(0,s.jsx)(cd,{asChild:!0,children:(0,s.jsxs)("a",{ref:e,className:l,...o,children:[u,c]})})}),a[13]=o,a[14]=e,a[15]=l,a[16]=u,a[17]=c,a[18]=m):m=a[18],m});z0.displayName="ListItem";function MD(t,e){return e?(0,s.jsx)(Zt,{delayDuration:200,content:Oe({html:e}),children:t}):t}function FD(t){return t.startsWith("http")?"_blank":"_self"}function zD(t){return K6({href:t,queryParams:new URL(globalThis.location.href).search,keys:[ac.filePath]})}function VD(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?uT(t,e):typeof t=="object"&&typeof e=="object"?OD(t,e):!1}function OD(t,e){return Object.keys(t).length===Object.keys(e).length&&Za.keys(t).every(a=>t[a]===e[a])}function md(t,e){if(!(window!=null&&window.customElements)){de.warn("Custom elements not supported");return}if(window.customElements.get(t)){de.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var $D=ee();const BD=t=>{let e=(0,$D.c)(16),{error:a,badData:r,shadowRoot:n}=t;if(a instanceof $_){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,s.jsx)(Ec,{children:"Bad Data"}),e[0]=o):o=e[0];let l;e[1]===a.issues?l=e[2]:(l=a.issues.map(HD),e[1]=a.issues,e[2]=l);let d;e[3]===l?d=e[4]:(d=(0,s.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,s.jsx)("ul",{children:l})}),e[3]=l,e[4]=d);let u;e[5]===Symbol.for("react.memo_cache_sentinel")?(u=(0,s.jsx)(EA,{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)(Pv,{data:r}),e[6]=r,e[7]=c);let m;e[8]!==n||e[9]!==c?(m=(0,s.jsx)(_A,{type:"single",collapsible:!0,children:(0,s.jsxs)(NA,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[u,(0,s.jsx)(RA,{className:"text-[0.84375rem]",children:(0,s.jsx)(Tv,{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)(Ol,{variant:"destructive",children:[o,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 LD(t,e,a){return(0,s.jsx)(BD,{error:t,badData:e,shadowRoot:a})}function HD(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 WD({hostElement:t,plugin:e,children:a,getInitialValue:r},n){let[i,o]=(0,x.useState)(a),[l,d]=(0,x.useState)(r()),{theme:u}=un(),[c,m]=(0,x.useState)(()=>e.validator.safeParse(qu(t))),[p,h]=(0,x.useState)(0);(0,x.useImperativeHandle)(n,()=>({reset:()=>{d(r()),m(e.validator.safeParse(qu(t))),h(v=>v+1)},setChildren:v=>{o(v)}})),tc(t,dR.TYPE,v=>{v.detail.element===t&&d(v.detail.value)}),(0,x.useEffect)(()=>{let v=new MutationObserver(w=>{w.some(b=>{var D;return b.type==="attributes"&&((D=b.attributeName)==null?void 0:D.startsWith("data-"))})&&m(e.validator.safeParse(qu(t)))});return v.observe(t,{attributes:!0}),()=>{v.disconnect()}},[t,e.validator]);let g=Ue(v=>{d(w=>{let b=qa.asUpdater(v)(w);return VD(b,w)||t.dispatchEvent(Dv(b,t)),b})}),f=(0,x.useMemo)(()=>{if(!e.functions)return{};let v={};for(let[w,b]of Za.entries(e.functions)){let{input:D,output:j}=b;v[w]=async(...k)=>{var E;nn(k.length<=1,`Plugin functions only supports a single argument. Called ${w}`);let S=fd(t);nn(S,"Object ID should exist");let N=gi(),y=(E=ov.findElementThroughShadowDOMs(t))==null?void 0:E.id,C=y?ov.parse(y):null;if(C&&!N){let A=We.get(sv),F=A.cellRuntime[C],T=A.cellData[C];if(x_({executionTime:F.runElapsedTimeMs??T.lastExecutionTime,status:F.status,errored:F.errored,interrupted:F.interrupted,stopped:F.stopped}))throw new SA}else de.warn(`Cell ID ${C} cannot be found`);let _=await iR.request({args:B0(D,k[0]),functionName:w,namespace:S});if(_.status.code!=="ok")throw de.error(_.status),Error(_.status.message||"Unknown error");return B0(j,_.return_value)}}return v},[e.functions,t,p]);return c.success?(0,s.jsx)(X6,{children:(0,s.jsx)("div",{className:`contents ${u}`,children:(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{}),children:e.render({setValue:g,value:l,data:c.data,children:i,host:t,functions:f})})})}):LD(c.error,Za.mapValues(t.dataset,v=>typeof v=="string"?dv(v):v),t.shadowRoot)}var UD=x.forwardRef(WD),pd=new Map,V0="__custom_marimo_element__";function O0(t){let e=class extends HTMLElement{constructor(){super();Z(this,"mounted",!1);Z(this,"pluginRef",(0,x.createRef)());Z(this,"__type__",V0);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var r;(r=this.pluginRef.current)==null||r.setChildren(this.getChildren())})}connectedCallback(){this.isLightDOMChildOfMarimoElement()||(this.mounted||(nn(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=Wy.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)}isLightDOMChildOfMarimoElement(){let r=this.parentElement;for(;r;){if(hd(r))return!0;r=r.parentElement}return!1}reset(){this.dispatchEvent(Dv(dv(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?Oe({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((r,n)=>(0,s.jsx)(x.Fragment,{children:Oe({html:r.outerHTML,alwaysSanitizeHtml:!1})},n))}async mountReactComponent(){this.mounted=!0,nn(this.root,"Root must be defined"),this.root.render((0,s.jsx)(ll,{store:We,children:(0,s.jsx)(Gs,{children:(0,s.jsx)(UD,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>__(this,lR.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let r=this.shadowRoot;if(nn(r,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){de.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:$0(i));for(let i of n){let o=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(o&&!pd.has(o)){let l=new CSSStyleSheet;try{l.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
|
|
7
7
|
`))}catch{}pd.set(o,l)}}if(r.adoptedStyleSheets=[...pd.values()],t.cssStyles){let i=new CSSStyleSheet;i.replaceSync(t.cssStyles.join(`
|
|
8
8
|
`)),r.adoptedStyleSheets=[...r.adoptedStyleSheets,i]}}copyStylesFallback(){let r=this.shadowRoot;nn(r,"Shadow root should exist"),de.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(!$0(i))return[];let o=document.createElement("style");try{o.textContent=Array.from(i.cssRules).map(l=>l.cssText).join(`
|
|
9
9
|
`)}catch{return[]}return[o]});if(r.append(...n),t.cssStyles){let i=document.createElement("style");i.textContent=t.cssStyles.join(`
|