@marimo-team/frontend 0.23.7-dev64 → 0.23.7-dev65

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/assets/{cell-editor-Cgyoqdi5.js → cell-editor-D_oiWxRl.js} +1 -1
  2. package/dist/assets/{command-palette-n_e11WBA.js → command-palette-mVKHqaan.js} +1 -1
  3. package/dist/assets/{edit-page-Dos8zz_9.js → edit-page-BgGLD5aB.js} +4 -4
  4. package/dist/assets/{hooks-7OHHugrQ.js → hooks-DZNVrVar.js} +1 -1
  5. package/dist/assets/index-5kQk2blA.css +2 -0
  6. package/dist/assets/{index-1EIgCVR_.js → index-DGkoEAWm.js} +3 -3
  7. package/dist/assets/layout-QNv3OC6l.js +9 -0
  8. package/dist/assets/{panels-DvIOAb34.js → panels-D7OK0dYk.js} +1 -1
  9. package/dist/assets/reveal-component-OLi7V7Sf.js +1069 -0
  10. package/dist/assets/{run-page-DJOwAe2z.js → run-page-vKjN7tOv.js} +1 -1
  11. package/dist/assets/{scratchpad-panel-CpM3jVv7.js → scratchpad-panel-H6R60n5E.js} +1 -1
  12. package/dist/assets/slides-MCbMDtlY.css +1 -0
  13. package/dist/assets/{useNotebookActions-DqlAe4Ea.js → useNotebookActions-BKENzoCk.js} +1 -1
  14. package/dist/index.html +2 -2
  15. package/package.json +1 -1
  16. package/src/components/editor/renderers/slides-layout/__tests__/compute-slide-cells.test.ts +5 -4
  17. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +55 -15
  18. package/src/components/editor/renderers/slides-layout/plugin.tsx +8 -25
  19. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +18 -5
  20. package/src/components/editor/renderers/slides-layout/types.ts +40 -31
  21. package/src/components/slides/__tests__/slide-notes.test.ts +131 -0
  22. package/src/components/slides/reveal-component.tsx +242 -147
  23. package/src/components/slides/slide-notes-editor.tsx +127 -0
  24. package/src/components/slides/slide-notes.ts +64 -0
  25. package/src/components/slides/slides.css +14 -0
  26. package/src/core/edit-app.tsx +1 -1
  27. package/dist/assets/index-8ta9aYoc.css +0 -2
  28. package/dist/assets/layout-DQGNHEpb.js +0 -9
  29. package/dist/assets/reveal-component-ClM8W-TD.js +0 -91
  30. package/dist/assets/slides-BVvo79ll.css +0 -1
  31. /package/dist/assets/{swiper-component-DXTq6N70.js → swiper-component-Da-gZjtJ.js} +0 -0
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-De1W6q6f.js","./app-config-button-CCs8Jepz.js","./ai-model-dropdown-CjhUqXgj.js","./cells-Dnu4nDoy.js","./preload-helper-DdZsAcJe.js","./badge-DOX1Xxa9.js","./cn-DCUzRj2J.js","./clsx-Dz_KRrWq.js","./compiler-runtime-B3qBwwSJ.js","./react-Bj1aDYRI.js","./chunk-LvLJmgfZ.js","./jsx-runtime-BqBOg78p.js","./button-BbCh-29a.js","./useEventListener-DvoEXWke.js","./fullscreen-eipL3i3Y.js","./react-dom-CSu739Rf.js","./menu-items-DcP01QzW.js","./select-DZcFyKFQ.js","./dist-BdyjRhEt.js","./check-BH35Ndha.js","./createLucideIcon-D5guW7EU.js","./x-C-6liIBr.js","./tooltip-DTV9tlSr.js","./use-toast-ERM44-k9.js","./utils-Wvjk_Y4h.js","./useEvent-D91BmmQi.js","./invariant-BUdrueMv.js","./merge-_9WLTEyt.js","./_baseFor-DKD1r8uL.js","./isObject-DvLSfCY5.js","./zod-H_cgTO0M.js","./DeferredRequestRegistry-CzVJLtsG.js","./Deferred-DWBqOhWa.js","./uuid-D_zLHhNi.js","./config-C2lTvbuU.js","./constants-DMpttj8Q.js","./session-DGdfs0bJ.js","./requests-DIwGYs0l.js","./useLifecycle-DieWOfXE.js","./useNonce-DfoVjkkH.js","./useTheme-Kwyx4PvL.js","./arrays-DYDL-3-i.js","./strings-wdPMRf6Z.js","./capabilities-A_KhFcGV.js","./once-DRroIaBz.js","./createReducer-CI9qeK_X.js","./paths-SFhaqGlE.js","./dist-HlsDto3K.js","./dist-BrR4M-k3.js","./dist-CHcznzB-.js","./dist-DCqxOggh.js","./dist-BZr6MMV-.js","./dist-BU26XwgJ.js","./dist-COs9gIu5.js","./dist-DkA__6UI.js","./dist-C9ZB41s2.js","./stex-lcoTi-7o.js","./toDate-B5A0DFEz.js","./purify.es-DvRMX74T.js","./cjs-BRGiG41H.js","./debounce-DhnxH9Rh.js","./now-CsYTPAhW.js","./isSymbol-BT6B8Bon.js","./database-zap-kIkTfzTX.js","./main-B0OX4z33.js","./cells-jmgGt1lS.css","./spinner-UuZAUjoP.js","./renderShortcut-DK-VjfaX.js","./dropdown-menu-CR7cnzLX.js","./chevron-right-CG5QYXYk.js","./kbd-BJB2rf7K.js","./multi-map-CUuNtzHt.js","./alert-DrHguQlr.js","./card-BFWJLptH.js","./dialog-DqOQT_n4.js","./alert-dialog-BqFLkbUc.js","./textarea-BBTcSr-i.js","./label-xHqFtfdz.js","./useDebounce-_BZcy6gx.js","./input-CVE-gIjt.js","./numbers-mY4EY0yG.js","./useNumberFormatter-CW4V-fpE.js","./context-C1Tm_47t.js","./SSRProvider-BIDQNg9Q.js","./usePress-jH2RfcUG.js","./links-B8WzCnbo.js","./popover-Bz_0Vkyf.js","./switch-BtkQp293.js","./table-DQE9hQzM.js","./useHotkey-C04CW11R.js","./useAsyncData-C5i0IRVM.js","./error-banner-CLO6LFll.js","./errors-iwK4b4VF.js","./copy-Ch48HVPK.js","./RSPContexts-Bk1r00gJ.js","./get-C-qh_et5.js","./memoize-Tp7rARFe.js","./copy-BwrPA9zQ.js","./plus-CxkHs8QM.js","./refresh-cw-a_9k9BK7.js","./trash-2-BJLYnZpG.js","./triangle-alert-CJ0ZIqcz.js","./azure-DBVzcmvx.js","./Inputs-COvM_tLq.js","./Inputs-CuKU-ENz.css","./ImperativeModal-DEC1mXgV.js","./settings-SnYErNWQ.js","./ErrorBoundary-DyYDV0HI.js","./icons-8tfAri2V.js","./file-icons-B6DaZdP0.js","./file-headphone-B3fuktN0.js","./file-HTLbeC2b.js","./image-BIibSXT6.js","./file-name-input-g2H2sY2h.js","./tree-actions-DY8FUp3V.js","./ellipsis-vertical-CkwWkOQL.js","./pathUtils-vgBYIo5B.js","./semaphore-X3ApuO41.js","./extends-Dqvpuc10.js","./marimo-icons-CUuBQ0ae.js","./useInterval-CSOniNAx.js","./dates-DI1TvEEK.js","./en-US-C7vnqfgk.js","./isValid-DdlR4-BY.js","./links-Av1BIe0O.js","./maps-n3GaPJwv.js","./react-icons.esm--O4lBTlZ.js","./chart-no-axes-column-nqk474t8.js","./circle-play-CYXX2xu3.js","./external-link-BTNxSavU.js","./github-raQvpeuZ.js","./youtube-3lRHw8NU.js","./link-CoJxTwWE.js","./package-B8oXOUM-.js","./refresh-ccw-DLc784Sj.js","./run-page-DJOwAe2z.js","./panels-DvIOAb34.js","./JsonOutput-BEbyS3oG.js","./utils-DQRuLEof.js","./vega-loader.browser-xq8miGHn.js","./precisionRound-NX56vp6K.js","./defaultLocale-DPBdGRrH.js","./defaultLocale-Lfi0pexn.js","./useInstallPackage-hKfTes-m.js","./MarimoErrorOutput-XWqnhvJ6.js","./cell-link-PQYiMZw1.js","./RenderHTML-B5r25cP5.js","./useRunCells-C0BPo9m1.js","./copy-icon-BdZPgXgo.js","./datasource-I-LOgxeP.js","./state-D9EoHCkz.js","./sparkles-CC9Bko6a.js","./markdown-renderer-BQ-BQLiJ.js","./html-to-image-D6SgvARi.js","./focus-BaOnnMs-.js","./LazyAnyLanguageCodeMirror-GdhQ07zA.js","./chunk-5FQGJX7Z-BSzccEgu.js","./micromark-factory-space-BUQpMdx2.js","./markdown-renderer-DdDKmWlR.css","./command-2NPJCYDa.js","./field-DNlzfMKW.js","./download-BO6T2USS.js","./useIframeCapabilities-DPVTppnD.js","./formats-BRq458WH.js","./emotion-is-prop-valid.esm-Dangy3Bv.js","./useDateFormatter-d3yglQmW.js","./table-6NxtGaCm.js","./ellipsis-KAhMaCIV.js","./message-circle-1YLdnr8A.js","./react-resizable-panels.browser.esm-Ce2ksurd.js","./JsonOutput-B7vuddcd.css","./layout-DQGNHEpb.js","./name-cell-input-bwfAyC0i.js","./esm-Cb2bnV6o.js","./objectWithoutPropertiesLoose-DoKw85w0.js","./name-cell-input-ujOhus_y.css","./radio-group-rsi1ibXY.js","./floating-outline-DbOtUfo-.js","./readonly-python-code-BKYj8PNf.js","./eye-off-BT-KOYV5.js","./process-output-9W-JyYdE.js","./esm-BGRsx_Fp.js","./dist-DGhKKgfN.js","./dist-Bm0v4xuz.js","./dist-CTvZbFwy.js","./dist-COz0Y8UW.js","./dist-CyKkoCYJ.js","./dist-Da-HT0I8.js","./dist-DxEuZTVa.js","./dist-Dc1gTRL9.js","./dist-EbJ2Bafg.js","./dist-BQxSimS-.js","./dist-CK56b5MF.js","./dist-DjGavUj4.js","./dist-Scx61XLd.js","./dist-FS1xQUNb.js","./apl-iXnrDoYq.js","./asciiarmor-CK-aFa78.js","./asn1-DWJdxrMP.js","./brainfuck-0bMZHpH_.js","./clike-5SQqmvx2.js","./clojure-B0kIwyv8.js","./cmake-CLXeINvH.js","./cobol-C9SsG--s.js","./coffeescript-UIQG6RnU.js","./commonlisp-BBPumpJY.js","./crystal-CGN1wsuY.js","./css-aQ-Krb7T.js","./cypher-DEE4_Yec.js","./d-CgJ8N-gL.js","./diff-B8e18dKs.js","./dtd-DtwMcoo9.js","./dylan-Be6i1K-V.js","./ecl-D5tlhe8s.js","./eiffel-8SQWO4xP.js","./elm-CtGe_7Jw.js","./erlang-CNwX3Z_M.js","./factor-DgyyQiBQ.js","./simple-mode-CZ1ts7NY.js","./forth-CaVwPSxM.js","./fortran-B28t9xoj.js","./gas-BSiJHAcz.js","./gherkin-1QurHPOF.js","./groovy-DFOLwJLv.js","./haskell-CUN2jxPH.js","./haxe-BYzKptPQ.js","./idl-cdmrQY5J.js","./javascript-l5LYdpfx.js","./julia-DxiTohY8.js","./livescript-BZkzGFkJ.js","./lua-rVV1vLen.js","./mathematica-DktJ0aJB.js","./mbox-Ch6IVA7h.js","./mirc-CdWws4At.js","./mllike-CB0tp4Bz.js","./modelica-DQGg_xsi.js","./mscgen-vDSxnAXy.js","./mumps-BzlVzIzl.js","./nsis-bDE8IZXy.js","./ntriples-BndMB6TK.js","./octave-DhnkL0CH.js","./oz-DbZmNL9y.js","./pascal-DhE1sEjD.js","./perl-BOZHK4Y3.js","./pig-eswHTOE9.js","./powershell-pm9G_Qg5.js","./properties-7VoeFdHR.js","./protobuf-BAsuCsmK.js","./pug-CcL3ml0F.js","./puppet-DUYPK8CV.js","./python-UQl3_T6H.js","./q-CnvA_jxT.js","./r-fM1OLzJB.js","./rpm-D62D_dq6.js","./ruby-DemvBD0m.js","./sas-CZjYQi4h.js","./scheme-nPNaP0Qp.js","./shell-BE2ANxN1.js","./sieve-DXFUN4C7.js","./smalltalk-DwXXlSAY.js","./sparql-CgejAdiJ.js","./stylus-CslB9TS3.js","./swift-5t7SQPo8.js","./tcl-Ddpe8YBc.js","./textile-D_Db33mq.js","./toml-CgkLq_pv.js","./troff-6nX9d05T.js","./ttcn-cfg-ByNDYolW.js","./ttcn-Dd4SMoHT.js","./turtle-LDF8uFGv.js","./vb-DaLxM60T.js","./vbscript-CwitZ57u.js","./velocity-D6bc4mrP.js","./verilog-CIyPdzYJ.js","./vhdl-DfyhlM4K.js","./webidl-C23hA3Le.js","./xquery-BAVQXrAf.js","./yacas-DrybVty2.js","./z80-8KI6AMtY.js","./code-xml-CZN6vNxu.js","./play-5vQl-hy9.js","./trash-wVOgGgQw.js","./prop-types-DVDiRdwc.js","./layout-BjXzDXoG.css","./types-DZmRsGZN.js","./state-BXNNuw9g.js","./events-CBm-hwqS.js","./globals-CpVAcN9Z.js","./share-oorMPghT.js","./blob-3_FN0u9S.js","./_baseSet-CxV9N1bc.js","./requests-DqJEWJ-Q.js","./runs-Cn-NiTzH.js","./request-registry-DKAymYdP.js","./state-dx303w7J.js","./ws-Cb8IUKlU.js","./panels-B4E3DsXP.css","./edit-page-Dos8zz_9.js","./loro_wasm_bg-C5TJxMR5.js","./useDeleteCell-DFahVcdW.js","./add-cell-with-ai-BbZkMqv2.js","./fileToBase64-BeYUTUzO.js","./cell-editor-Cgyoqdi5.js","./useSplitCell-BN53wD86.js","./hooks-7OHHugrQ.js","./dist-DP9Si-4r.js","./circle-check-C17zXg7L.js","./save-DZ5aail6.js","./cell-editor-Iey559K_.css","./useNotebookActions-DqlAe4Ea.js","./add-connection-dialog-Cw6_iYno.js","./write-secret-modal-Liv_9MXS.js","./form-CM8vYbSt.js","./circle-plus-BdiiIXu5.js","./useCellActionButton-CpNJthj4.js","./multi-icon-NVkxesVZ.js","./multi-icon-pwGWVz3d.css","./house-D2ldnAB9.js","./square-rACnnz-q.js","./CellStatus-DGBvmSvq.js","./ban-0fKnt00i.js","./workflow-CgnDnnoN.js","./CellStatus-2Psjnl5F.css","./RunButton-Dbak5hfa.js","./useDependencyPanelTab-BNbEyT1o.js","./panel-context-DQWeG2KK.js","./kiosk-mode-Czvj3vmL.js","./useBoolean-B8LMGUHl.js","./clipboard-paste-BPjPPEqD.js","./rotate-ccw-DoQtGgvU.js","./square-function-blYaQso8.js","./edit-page-Dstp9NQ5.css","./gallery-page-MrZHjySE.js","./chat-ui-D-Y7p_cT.js","./chat-display-DetTBnqK.js","./isEmpty-CXeoXbuc.js","./bot-message-square-DrbHk31W.js","./glide-data-editor-4Wql6uq7.js","./types-BYwxXaSY.js","./click-outside-container-C9uindjY.js","./dist-r-YlHvr1.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-D-boDGAP.js","./spec-D1ptWKg6.js","./react-vega-4VQqM03t.js","./linear-BHpZPQfO.js","./timer-B6DpdVnC.js","./init-DiAYA_Co.js","./time-Di7MbY-a.js","./range-Dk7lXDev.js","./treemap-Cli48Hv9.js","./path-D1tAOolS.js","./colors-CDxbWdyG.js","./ordinal-BKex0QZH.js","./arc-npelKso9.js","./math-CS811RUM.js","./array-DdrmtJsl.js","./step-vqKxn7TP.js","./line-BkpbatV-.js","./Plot-BDBiXfv_.js","./vega-component-C9fDGx86.js","./useDeepCompareMemoize-CWcgQCbT.js","./swiper-component-DXTq6N70.js","./swiper-component-a65-SW8d.css","./slides-BVvo79ll.css","./ImageComparisonComponent-nhywlX8O.js","./mermaid-CZhfODkT.js","./dist-DQ3_8QJg.js","./chunk-JA3XYJ7Z-2W_JmZ4z.js","./src-D57-7XBB.js","./src-CvyFXpBy.js","./chunk-S3R3BYOJ-EEhIeeuI.js","./chunk-ABZYJK2D-pjI0V9vG.js","./chunk-ATLVNIR6-DMcOYQJi.js","./chunk-CVBHYZKI-DwNHftX6.js","./chunk-DR5Q36YT-DKTVLAfY.js","./chunk-EXTU4WIE-C7TYTuus.js","./chunk-HN2XXSSU-COpG_X4X.js","./chunk-JZLCHNYA-DdjotIam.js","./chunk-MI3HLSF2-D_z13ybc.js","./chunk-N4CR4FBY-Y37VEUfx.js","./chunk-QXUST7PY-CU78e3vp.js","./katex-Bci6q_jh.js","./katex-CgXtp7UB.js","./mhchem-BKhnkPip.js"])))=>i.map(i=>d[i]);
2
- var F2=Object.defineProperty;var _p=_=>{throw TypeError(_)};var L2=(_,Pe,l)=>Pe in _?F2(_,Pe,{enumerable:!0,configurable:!0,writable:!0,value:l}):_[Pe]=l;var B=(_,Pe,l)=>L2(_,typeof Pe!="symbol"?Pe+"":Pe,l),Yo=(_,Pe,l)=>Pe.has(_)||_p("Cannot "+l);var $=(_,Pe,l)=>(Yo(_,Pe,"read from private field"),l?l.call(_):Pe.get(_)),Ge=(_,Pe,l)=>Pe.has(_)?_p("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(_):Pe.set(_,l),rt=(_,Pe,l,It)=>(Yo(_,Pe,"write to private field"),It?It.call(_,l):Pe.set(_,l),l),yr=(_,Pe,l)=>(Yo(_,Pe,"access private method"),l);var kp=(_,Pe,l,It)=>({set _(Nn){rt(_,Pe,Nn,l)},get _(){return $(_,Pe,It)}});import{r as O2,s as Br,t as Go}from"./chunk-LvLJmgfZ.js";import{c as fi,i as Ve,l as vn,n as Ue,s as gi,u as xi}from"./useEvent-D91BmmQi.js";import{t as V2}from"./react-Bj1aDYRI.js";import{$ as D2,Ai as Tp,Bi as H2,Bt as vi,Ci as B2,Hi as Wr,Ii as Np,J as W2,Mi as $2,Oi as U2,Pi as Ko,Q as q2,Qr as Y2,Ri as G2,S as K2,Si as Q2,Sr as X2,Ti as Z2,Vi as J2,X as ej,Y as tj,Z as rj,at as nj,b as Ap,br as aj,bt as ij,cr as Ip,dr as lj,et as oj,gi as sj,gr as wi,ji as Qo,ki as dj,nr as Xo,ot as cj,qi as Ep,rr as Rp,ut as uj,vi as pj,wi as mj,wr as hj,yr as zp,yt as fj,z as gj,zi as wn,__tla as xj}from"./cells-Dnu4nDoy.js";import{t as Mp}from"./react-dom-CSu739Rf.js";import{A as jr,B as Te,C as Yt,E as vj,F as Pp,I as pt,J as wj,N as O,O as bj,P as L,R as I,S as bn,T as V,U as yj,V as Cr,a as Fp,b as ye,h as jj,i as Lp,j as Cj,k as Ke,n as Op,r as Sj,s as Zo,t as Sr,v as _j,w as Q,x as Vp,z as Gt}from"./zod-H_cgTO0M.js";import{t as J}from"./compiler-runtime-B3qBwwSJ.js";import{t as kj}from"./get-C-qh_et5.js";import{t as bi}from"./pick-DqWUNly1.js";import{a as Tj,c as Nj,d as Jo,f as Aj,g as Ij,i as Ej,l as Rj,m as zj,o as _r,p as Mj,r as Dp,s as es,u as Hp,w as Pj,x as Fj,__tla as Lj}from"./state-BXNNuw9g.js";import{_ as ue,a as Oj,d as $r,o as Kt,t as ts,v as ur}from"./useEventListener-DvoEXWke.js";import{t as yn}from"./invariant-BUdrueMv.js";import{A as Vj,O as Dj,S as Hj,g as Bj,i as Wj,k as $j,l as Uj,t as qj,v as Yj,y as Gj}from"./utils-Wvjk_Y4h.js";import{r as rs}from"./constants-DMpttj8Q.js";import{S as dt,T as Kj,a as Qj,b as Bp,i as Wp,l as oa,r as ns,s as Xj,t as Zj,v as $p,w as Up}from"./config-C2lTvbuU.js";import{a as Jj,i as eC,n as tC,o as rC,r as nC,t as aC}from"./switch-BtkQp293.js";import{t as iC}from"./globals-CpVAcN9Z.js";import{t as yi}from"./ErrorBoundary-DyYDV0HI.js";import{n as as,t as ee}from"./cn-DCUzRj2J.js";import{t as lC}from"./jsx-runtime-BqBOg78p.js";import{C as ft,S as qp,_ as ji,a as oC,b as at,g as Yp,h as Ur,i as sC,p as dC,v as is,w as Gp,y as ls}from"./fullscreen-eipL3i3Y.js";import{o as cC,s as uC}from"./dist-BdyjRhEt.js";import{d as os,u as Kp}from"./menu-items-DcP01QzW.js";import{a as Qp,c as pC,i as Xp,l as mC,n as ss,o as hC,r as Zp,s as fC}from"./multi-map-CUuNtzHt.js";import{a as Jp,c as em,i as tm,l as rm,n as nm,s as am,t as im}from"./alert-dialog-BqFLkbUc.js";import{a as jn,c as rr,o as Ot,s as sa}from"./popover-Bz_0Vkyf.js";import{a as gC,c as kr,d as xC,f as vC,i as Vt,l as ds,m as lm,n as Tr,o as Ci,p as om,r as Cn,s as qr,t as Nr}from"./select-DZcFyKFQ.js";import{a as sm,c as wC,i as bC,m as dm,o as yC,p as jC,r as CC,t as SC}from"./dropdown-menu-CR7cnzLX.js";import{$ as cs,A as _C,C as kC,Ct as TC,E as NC,F as cm,G as um,I as us,J as AC,K as IC,L as EC,M as ps,N as RC,P as zC,R as MC,S as Yr,St as PC,T as FC,Tt as LC,X as OC,Y as VC,_ as DC,at as HC,bt as BC,ct as pm,et as ms,ft as hs,ht as mm,it as WC,j as $C,l as UC,lt as Si,mt as qC,nt as YC,pt as Gr,q as hm,r as GC,rt as fm,s as KC,st as QC,t as gm,tt as XC,u as ZC,ut as da,v as _i,w as JC,wt as e4,x as t4,y as pr,__tla as r4}from"./JsonOutput-BEbyS3oG.js";import{t as fs}from"./label-xHqFtfdz.js";import{h as xm,i as n4,l as a4,r as i4}from"./download-BO6T2USS.js";import{n as l4,t as o4}from"./radio-group-rsi1ibXY.js";import{a as gs,i as ca,n as xs,o as vs,r as ws,t as mr}from"./tooltip-DTV9tlSr.js";import{n as bs,t as Fe}from"./button-BbCh-29a.js";import{at as s4}from"./dist-BrR4M-k3.js";import{m as d4,o as c4,t as nr}from"./arrays-DYDL-3-i.js";import{n as ys,t as u4}from"./once-DRroIaBz.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{n as Ar,t as js}from"./strings-wdPMRf6Z.js";import{n as p4}from"./requests-DIwGYs0l.js";import{t as Dt}from"./createLucideIcon-D5guW7EU.js";import{A as m4,C as vm,D as h4,O as f4,S as g4,_ as x4,a as wm,b as v4,c as bm,d as ua,f as ym,g as w4,h as b4,i as Cs,k as y4,l as j4,m as jm,n as C4,p as S4,r as hr,s as _4,t as k4,u as ar,v as T4,y as N4}from"./spec-D1ptWKg6.js";import{n as A4,r as I4,t as E4}from"./fileToBase64-BeYUTUzO.js";import{t as R4,__tla as z4}from"./LazyAnyLanguageCodeMirror-GdhQ07zA.js";import{i as M4,n as P4,o as F4}from"./useLifecycle-DieWOfXE.js";import{i as L4,n as O4,t as Cm}from"./useBoolean-B8LMGUHl.js";import{r as Sm,t as ki}from"./x-C-6liIBr.js";import{t as Ss}from"./chevron-right-CG5QYXYk.js";import{__tla as V4}from"./markdown-renderer-BQ-BQLiJ.js";import{t as D4}from"./code-xml-CZN6vNxu.js";import{t as _m}from"./copy-BwrPA9zQ.js";import{n as H4}from"./file-headphone-B3fuktN0.js";import{r as B4,t as W4}from"./file-icons-B6DaZdP0.js";import{a as km,c as pe,i as $4,l as Tm,n as Nm,o as U4,r as q4,s as Am,t as Y4,u as G4}from"./form-CM8vYbSt.js";import{t as K4}from"./house-D2ldnAB9.js";import{n as Ti,t as Ni}from"./spinner-UuZAUjoP.js";import{i as Q4,r as Im,t as _s}from"./readonly-python-code-BKYj8PNf.js";import{n as X4,t as Ai}from"./types-BYwxXaSY.js";import{t as Em}from"./plus-CxkHs8QM.js";import{t as Z4}from"./refresh-cw-a_9k9BK7.js";import{i as J4,n as eS,o as Rm,r as tS,t as ks}from"./input-CVE-gIjt.js";import{t as Ii}from"./square-function-blYaQso8.js";import{_ as lt,a as mt,c as ct,d as Kr,f as rS,g as zm,h as nS,i as aS,l as ut,n as iS,o as pa,p as Mm,r as lS,t as oS,u as gt,v as ir}from"./textarea-BBTcSr-i.js";import{a as sS,i as dS,r as cS,t as uS}from"./column-preview-DA6nf5_Q.js";import{t as pS}from"./square-rACnnz-q.js";import{t as mS}from"./trash-2-BJLYnZpG.js";import{t as Ei}from"./triangle-alert-CJ0ZIqcz.js";import{n as Pm,t as hS}from"./es-au8YY-8E.js";import{t as yt}from"./preload-helper-DdZsAcJe.js";import"./dist-DCqxOggh.js";import"./dist-BZr6MMV-.js";import"./dist-BU26XwgJ.js";import"./dist-COs9gIu5.js";import"./dist-DkA__6UI.js";import{n as fS,t as At}from"./use-toast-ERM44-k9.js";import{n as Fm,t as gS}from"./paths-SFhaqGlE.js";import{l as xS,r as vS,s as wS}from"./session-DGdfs0bJ.js";import{r as Sn}from"./useTheme-Kwyx4PvL.js";import"./purify.es-DvRMX74T.js";import"./dates-DI1TvEEK.js";import{t as Ts}from"./copy-icon-BdZPgXgo.js";import{n as bS,t as Ir}from"./context-C1Tm_47t.js";import{t as yS}from"./useNumberFormatter-CW4V-fpE.js";import{t as qe}from"./RenderHTML-B5r25cP5.js";import{n as jS,t as Lm}from"./useDebounce-_BZcy6gx.js";import{i as _n,r as CS}from"./numbers-mY4EY0yG.js";import{t as SS}from"./ImperativeModal-DEC1mXgV.js";import"./share-oorMPghT.js";import{n as Om,r as Vm,t as _S}from"./errors-iwK4b4VF.js";import{a as Dm,n as kS,o as TS,r as NS,t as AS}from"./utils-DQRuLEof.js";import"./vega-loader.browser-xq8miGHn.js";import"./defaultLocale-DPBdGRrH.js";import"./defaultLocale-Lfi0pexn.js";import{a as IS}from"./react-icons.esm--O4lBTlZ.js";import{a as Hm,i as ES,n as kn,t as RS}from"./events-CBm-hwqS.js";import{n as zS,r as Ns,t as Ri}from"./alert-DrHguQlr.js";import{n as ma,t as Qr}from"./error-banner-CLO6LFll.js";import{n as Ht}from"./useAsyncData-C5i0IRVM.js";import{a as Bm,c as MS,o as PS,r as FS,s as LS,t as Wm}from"./command-2NPJCYDa.js";import{__tla as OS}from"./chunk-5FQGJX7Z-BSzccEgu.js";import"./html-to-image-D6SgvARi.js";import{a as VS,o as DS}from"./focus-BaOnnMs-.js";import{a as $m,i as As,n as Is,o as Tn,r as Xr,t as Es}from"./table-DQE9hQzM.js";import"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{t as Um}from"./renderShortcut-DK-VjfaX.js";import{t as HS}from"./bundle.esm-BXIlAZ6T.js";import{n as BS}from"./icons-8tfAri2V.js";import"./esm-Cb2bnV6o.js";import{a as WS,i as $S,n as US,o as qS,t as qm}from"./components-zB5yT_R8.js";import{t as Er}from"./useDeepCompareMemoize-CWcgQCbT.js";import{t as YS}from"./pathUtils-vgBYIo5B.js";import{i as GS,n as KS,r as QS}from"./floating-outline-DbOtUfo-.js";Promise.all([(()=>{try{return xj}catch{}})(),(()=>{try{return Lj}catch{}})(),(()=>{try{return r4}catch{}})(),(()=>{try{return z4}catch{}})(),(()=>{try{return V4}catch{}})(),(()=>{try{return OS}catch{}})()]).then(async()=>{var vt,ta,Ie,Oe,mn,hn,fn,ra,Ft,Mi,zs,Ms,Vr,wt,na,Dr,gn,aa,xn,ia,di,la,ci,ui,pi,mi,yp;(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(let a of n)if(a.type==="childList")for(let i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function e(n){let a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(n){if(n.ep)return;n.ep=!0;let a=e(n);fetch(n.href,a)}})();var _=Br(V2(),1),Pe=Br(Mp(),1),l=Br(lC(),1),It="NavigationMenu",[Nn,Ps,Ym]=os(It),[Pi,Gm,Km]=os(It),[Fi,XS]=qp(It,[Ym,Km]),[Qm,Et]=Fi(It),[Xm,Zm]=Fi(It),Fs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:a,defaultValue:i,delayDuration:o=200,skipDelayDuration:s=300,orientation:d="horizontal",dir:c,...u}=t,[p,m]=_.useState(null),f=Kt(e,T=>m(T)),g=Kp(c),x=_.useRef(0),w=_.useRef(0),b=_.useRef(0),[v,y]=_.useState(!0),[S,j]=is({prop:n,onChange:T=>{let N=T!=="",A=s>0;N?(window.clearTimeout(b.current),A&&y(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>y(!0),s)),a==null||a(T)},defaultProp:i??"",caller:It}),k=_.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>j(""),150)},[j]),C=_.useCallback(T=>{window.clearTimeout(w.current),j(T)},[j]),h=_.useCallback(T=>{S===T?window.clearTimeout(w.current):x.current=window.setTimeout(()=>{window.clearTimeout(w.current),j(T)},o)},[S,j,o]);return _.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(w.current),window.clearTimeout(b.current)},[]),(0,l.jsx)(Ls,{scope:r,isRootMenu:!0,value:S,dir:g,orientation:d,rootNavigationMenu:p,onTriggerEnter:T=>{window.clearTimeout(x.current),v?h(T):C(T)},onTriggerLeave:()=>{window.clearTimeout(x.current),k()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:k,onItemSelect:T=>{j(N=>N===T?"":T)},onItemDismiss:()=>j(""),children:(0,l.jsx)(ft.nav,{"aria-label":"Main","data-orientation":d,dir:g,...u,ref:f})})});Fs.displayName=It;var Li="NavigationMenuSub",Jm=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:a,defaultValue:i,orientation:o="horizontal",...s}=t,d=Et(Li,r),[c,u]=is({prop:n,onChange:a,defaultProp:i??"",caller:Li});return(0,l.jsx)(Ls,{scope:r,isRootMenu:!1,value:c,dir:d.dir,orientation:o,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>u(p),onItemSelect:p=>u(p),onItemDismiss:()=>u(""),children:(0,l.jsx)(ft.div,{"data-orientation":o,...s,ref:e})})});Jm.displayName=Li;var Ls=t=>{let{scope:e,isRootMenu:r,rootNavigationMenu:n,dir:a,orientation:i,children:o,value:s,onItemSelect:d,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:p,onContentEnter:m,onContentLeave:f}=t,[g,x]=_.useState(null),[w,b]=_.useState(new Map),[v,y]=_.useState(null);return(0,l.jsx)(Qm,{scope:e,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:lm(s),baseId:Yp(),dir:a,orientation:i,viewport:g,onViewportChange:x,indicatorTrack:v,onIndicatorTrackChange:y,onTriggerEnter:Ur(u),onTriggerLeave:Ur(p),onContentEnter:Ur(m),onContentLeave:Ur(f),onItemSelect:Ur(d),onItemDismiss:Ur(c),onViewportContentChange:_.useCallback((S,j)=>{b(k=>(k.set(S,j),new Map(k)))},[]),onViewportContentRemove:_.useCallback(S=>{b(j=>j.has(S)?(j.delete(S),new Map(j)):j)},[]),children:(0,l.jsx)(Nn.Provider,{scope:e,children:(0,l.jsx)(Xm,{scope:e,items:w,children:o})})})},Os="NavigationMenuList",Vs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(Os,r),i=(0,l.jsx)(ft.ul,{"data-orientation":a.orientation,...n,ref:e});return(0,l.jsx)(ft.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,l.jsx)(Nn.Slot,{scope:r,children:a.isRootMenu?(0,l.jsx)(Qs,{asChild:!0,children:i}):i})})});Vs.displayName=Os;var Ds="NavigationMenuItem",[eh,Hs]=Fi(Ds),Bs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,...a}=t,i=Yp(),o=n||i||"LEGACY_REACT_AUTO_VALUE",s=_.useRef(null),d=_.useRef(null),c=_.useRef(null),u=_.useRef(()=>{}),p=_.useRef(!1),m=_.useCallback((g="start")=>{if(s.current){u.current();let x=Hi(s.current);x.length&&Bi(g==="start"?x:x.reverse())}},[]),f=_.useCallback(()=>{if(s.current){let g=Hi(s.current);g.length&&(u.current=oh(g))}},[]);return(0,l.jsx)(eh,{scope:r,value:o,triggerRef:d,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:f,onContentFocusOutside:f,children:(0,l.jsx)(ft.li,{...a,ref:e})})});Bs.displayName=Ds;var Oi="NavigationMenuTrigger",Ws=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,disabled:n,...a}=t,i=Et(Oi,t.__scopeNavigationMenu),o=Hs(Oi,t.__scopeNavigationMenu),s=_.useRef(null),d=Kt(s,o.triggerRef,e),c=Js(i.baseId,o.value),u=ed(i.baseId,o.value),p=_.useRef(!1),m=_.useRef(!1),f=o.value===i.value;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Nn.ItemSlot,{scope:r,value:o.value,children:(0,l.jsx)(Zs,{asChild:!0,children:(0,l.jsx)(ft.button,{id:c,disabled:n,"data-disabled":n?"":void 0,"data-state":$i(f),"aria-expanded":f,"aria-controls":u,...a,ref:d,onPointerEnter:at(t.onPointerEnter,()=>{m.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:at(t.onPointerMove,fa(()=>{n||m.current||o.wasEscapeCloseRef.current||p.current||(i.onTriggerEnter(o.value),p.current=!0)})),onPointerLeave:at(t.onPointerLeave,fa(()=>{n||(i.onTriggerLeave(),p.current=!1)})),onClick:at(t.onClick,()=>{i.onItemSelect(o.value),m.current=f}),onKeyDown:at(t.onKeyDown,g=>{let x={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];f&&g.key===x&&(o.onEntryKeyDown(),g.preventDefault())})})})}),f&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(uC,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{let x=o.contentRef.current,w=g.relatedTarget,b=w===s.current,v=x==null?void 0:x.contains(w);(b||!v)&&o.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,l.jsx)("span",{"aria-owns":u})]})]})});Ws.displayName=Oi;var th="NavigationMenuLink",$s="navigationMenu.linkSelect",Us=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,active:n,onSelect:a,...i}=t;return(0,l.jsx)(Zs,{asChild:!0,children:(0,l.jsx)(ft.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...i,ref:e,onClick:at(t.onClick,o=>{let s=o.target,d=new CustomEvent($s,{bubbles:!0,cancelable:!0});s.addEventListener($s,c=>a==null?void 0:a(c),{once:!0}),Gp(s,d),!d.defaultPrevented&&!o.metaKey&&Gp(s,new CustomEvent(ha,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Us.displayName=th;var Vi="NavigationMenuIndicator",qs=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=Et(Vi,t.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?Pe.createPortal((0,l.jsx)(ji,{present:r||i,children:(0,l.jsx)(rh,{...n,ref:e})}),a.indicatorTrack):null});qs.displayName=Vi;var rh=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(Vi,r),i=Ps(r),[o,s]=_.useState(null),[d,c]=_.useState(null),u=a.orientation==="horizontal",p=!!a.value;_.useEffect(()=>{var g;let f=(g=i().find(x=>x.value===a.value))==null?void 0:g.ref.current;f&&s(f)},[i,a.value]);let m=()=>{o&&c({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return Wi(o,m),Wi(a.indicatorTrack,m),d?(0,l.jsx)(ft.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...n,ref:e,style:{position:"absolute",...u?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...n.style}}):null}),Zr="NavigationMenuContent",Ys=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=Et(Zr,t.__scopeNavigationMenu),i=Hs(Zr,t.__scopeNavigationMenu),o=Kt(i.contentRef,e),s=i.value===a.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...n};return a.viewport?(0,l.jsx)(nh,{forceMount:r,...d,ref:o}):(0,l.jsx)(ji,{present:r||s,children:(0,l.jsx)(Gs,{"data-state":$i(s),...d,ref:o,onPointerEnter:at(t.onPointerEnter,a.onContentEnter),onPointerLeave:at(t.onPointerLeave,fa(a.onContentLeave)),style:{pointerEvents:!s&&a.isRootMenu?"none":void 0,...d.style}})})});Ys.displayName=Zr;var nh=_.forwardRef((t,e)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=Et(Zr,t.__scopeNavigationMenu);return ls(()=>{r(t.value,{ref:e,...t})},[t,e,r]),ls(()=>()=>n(t.value),[t.value,n]),null}),ha="navigationMenu.rootContentDismiss",Gs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:d,...c}=t,u=Et(Zr,r),p=_.useRef(null),m=Kt(p,e),f=Js(u.baseId,n),g=ed(u.baseId,n),x=Ps(r),w=_.useRef(null),{onItemDismiss:b}=u;_.useEffect(()=>{let y=p.current;if(u.isRootMenu&&y){let S=()=>{var j;b(),s(),y.contains(document.activeElement)&&((j=a.current)==null||j.focus())};return y.addEventListener(ha,S),()=>y.removeEventListener(ha,S)}},[u.isRootMenu,t.value,a,b,s]);let v=_.useMemo(()=>{let y=x().map(T=>T.value);u.dir==="rtl"&&y.reverse();let S=y.indexOf(u.value),j=y.indexOf(u.previousValue),k=n===u.value,C=j===y.indexOf(n);if(!k&&!C)return w.current;let h=(()=>{if(S!==j){if(k&&j!==-1)return S>j?"from-end":"from-start";if(C&&S!==-1)return S>j?"to-start":"to-end"}return null})();return w.current=h,h},[u.previousValue,u.value,u.dir,x,n]);return(0,l.jsx)(Qs,{asChild:!0,children:(0,l.jsx)(dC,{id:g,"aria-labelledby":f,"data-motion":v,"data-orientation":u.orientation,...c,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;let y=new Event(ha,{bubbles:!0,cancelable:!0});(S=p.current)==null||S.dispatchEvent(y)},onFocusOutside:at(t.onFocusOutside,y=>{var j;d();let S=y.target;(j=u.rootNavigationMenu)!=null&&j.contains(S)&&y.preventDefault()}),onPointerDownOutside:at(t.onPointerDownOutside,y=>{var C;let S=y.target,j=x().some(h=>{var T;return(T=h.ref.current)==null?void 0:T.contains(S)}),k=u.isRootMenu&&((C=u.viewport)==null?void 0:C.contains(S));(j||k||!u.isRootMenu)&&y.preventDefault()}),onKeyDown:at(t.onKeyDown,y=>{var j;let S=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!S){let k=Hi(y.currentTarget),C=document.activeElement,h=k.findIndex(T=>T===C);Bi(y.shiftKey?k.slice(0,h).reverse():k.slice(h+1,k.length))?y.preventDefault():(j=i.current)==null||j.focus()}}),onEscapeKeyDown:at(t.onEscapeKeyDown,y=>{o.current=!0})})})}),Di="NavigationMenuViewport",Ks=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=!!Et(Di,t.__scopeNavigationMenu).value;return(0,l.jsx)(ji,{present:r||a,children:(0,l.jsx)(ah,{...n,ref:e})})});Ks.displayName=Di;var ah=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,children:n,...a}=t,i=Et(Di,r),o=Kt(e,i.onViewportChange),s=Zm(Zr,t.__scopeNavigationMenu),[d,c]=_.useState(null),[u,p]=_.useState(null),m=d?(d==null?void 0:d.width)+"px":void 0,f=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,x=g?i.value:i.previousValue;return Wi(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),(0,l.jsx)(ft.div,{"data-state":$i(g),"data-orientation":i.orientation,...a,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":f,...a.style},onPointerEnter:at(t.onPointerEnter,i.onContentEnter),onPointerLeave:at(t.onPointerLeave,fa(i.onContentLeave)),children:Array.from(s.items).map(([w,{ref:b,forceMount:v,...y}])=>{let S=x===w;return(0,l.jsx)(ji,{present:v||S,children:(0,l.jsx)(Gs,{...y,ref:Oj(b,j=>{S&&j&&p(j)})})},w)})})}),ih="FocusGroup",Qs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(ih,r);return(0,l.jsx)(Pi.Provider,{scope:r,children:(0,l.jsx)(Pi.Slot,{scope:r,children:(0,l.jsx)(ft.div,{dir:a.dir,...n,ref:e})})})}),Xs=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],lh="FocusGroupItem",Zs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Gm(r),i=Et(lh,r);return(0,l.jsx)(Pi.ItemSlot,{scope:r,children:(0,l.jsx)(ft.button,{...n,ref:e,onKeyDown:at(t.onKeyDown,o=>{if(["Home","End",...Xs].includes(o.key)){let s=a().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&s.reverse(),Xs.includes(o.key)){let d=s.indexOf(o.currentTarget);s=s.slice(d+1)}setTimeout(()=>Bi(s)),o.preventDefault()}})})})});function Hi(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Bi(t){let e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}function oh(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let r=e.dataset.tabindex;e.setAttribute("tabindex",r)})}}function Wi(t,e){let r=Ur(e);ls(()=>{let n=0;if(t){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(t),()=>{window.cancelAnimationFrame(n),a.unobserve(t)}}},[t,r])}function $i(t){return t?"open":"closed"}function Js(t,e){return`${t}-trigger-${e}`}function ed(t,e){return`${t}-content-${e}`}function fa(t){return e=>e.pointerType==="mouse"?t(e):void 0}var td=Fs,rd=Vs,sh=Bs,nd=Ws,dh=Us,ad=qs,id=Ys,ld=Ks,ch=O2({Range:()=>el,Root:()=>xa,Slider:()=>qi,SliderRange:()=>Ki,SliderThumb:()=>Xi,SliderTrack:()=>Yi,Thumb:()=>va,Track:()=>Ji,createSliderScope:()=>mh},1),od=["PageUp","PageDown"],sd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dd={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Jr="Slider",[Ui,uh,ph]=os(Jr),[cd,mh]=qp(Jr,[ph]),[hh,ga]=cd(Jr),qi=_.forwardRef((t,e)=>{let{name:r,min:n=0,max:a=100,step:i=1,orientation:o="horizontal",disabled:s=!1,minStepsBetweenThumbs:d=0,defaultValue:c=[n],value:u,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:f=!1,form:g,...x}=t,w=_.useRef(new Set),b=_.useRef(0),v=o==="horizontal"?fh:gh,[y=[],S]=is({prop:u,defaultProp:c,onChange:N=>{var A;(A=[...w.current][b.current])==null||A.focus(),p(N)}}),j=_.useRef(y);function k(N){T(N,yh(y,N))}function C(N){T(N,b.current)}function h(){let N=j.current[b.current];y[b.current]!==N&&m(y)}function T(N,A,{commit:R}={commit:!1}){let z=_h(i),E=om(kh(Math.round((N-n)/i)*i+n,z),[n,a]);S((P=[])=>{let M=wh(P,E,A);if(Sh(M,d*i)){b.current=M.indexOf(E);let F=String(M)!==String(P);return F&&R&&m(M),F?M:P}else return P})}return(0,l.jsx)(hh,{scope:t.__scopeSlider,name:r,disabled:s,min:n,max:a,valueIndexToChangeRef:b,thumbs:w.current,values:y,orientation:o,form:g,children:(0,l.jsx)(Ui.Provider,{scope:t.__scopeSlider,children:(0,l.jsx)(Ui.Slot,{scope:t.__scopeSlider,children:(0,l.jsx)(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...x,ref:e,onPointerDown:at(x.onPointerDown,()=>{s||(j.current=y)}),min:n,max:a,inverted:f,onSlideStart:s?void 0:k,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:h,onHomeKeyDown:()=>!s&&T(n,0,{commit:!0}),onEndKeyDown:()=>!s&&T(a,y.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:A})=>{if(!s){let R=od.includes(N.key)||N.shiftKey&&sd.includes(N.key)?10:1,z=b.current,E=y[z];T(E+i*R*A,z,{commit:!0})}}})})})})});qi.displayName=Jr;var[ud,pd]=cd(Jr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),fh=_.forwardRef((t,e)=>{let{min:r,max:n,dir:a,inverted:i,onSlideStart:o,onSlideMove:s,onSlideEnd:d,onStepKeyDown:c,...u}=t,[p,m]=_.useState(null),f=Kt(e,y=>m(y)),g=_.useRef(void 0),x=Kp(a),w=x==="ltr",b=w&&!i||!w&&i;function v(y){let S=g.current||p.getBoundingClientRect(),j=Zi([0,S.width],b?[r,n]:[n,r]);return g.current=S,j(y-S.left)}return(0,l.jsx)(ud,{scope:t.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,l.jsx)(md,{dir:x,"data-orientation":"horizontal",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{let S=v(y.clientX);o==null||o(S)},onSlideMove:y=>{let S=v(y.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,d==null||d()},onStepKeyDown:y=>{let S=dd[b?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:S?-1:1})}})})}),gh=_.forwardRef((t,e)=>{let{min:r,max:n,inverted:a,onSlideStart:i,onSlideMove:o,onSlideEnd:s,onStepKeyDown:d,...c}=t,u=_.useRef(null),p=Kt(e,u),m=_.useRef(void 0),f=!a;function g(x){let w=m.current||u.current.getBoundingClientRect(),b=Zi([0,w.height],f?[n,r]:[r,n]);return m.current=w,b(x-w.top)}return(0,l.jsx)(ud,{scope:t.__scopeSlider,startEdge:f?"bottom":"top",endEdge:f?"top":"bottom",size:"height",direction:f?1:-1,children:(0,l.jsx)(md,{"data-orientation":"vertical",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{let w=g(x.clientY);i==null||i(w)},onSlideMove:x=>{let w=g(x.clientY);o==null||o(w)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:x=>{let w=dd[f?"from-bottom":"from-top"].includes(x.key);d==null||d({event:x,direction:w?-1:1})}})})}),md=_.forwardRef((t,e)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:i,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:d,...c}=t,u=ga(Jr,r);return(0,l.jsx)(ft.span,{...c,ref:e,onKeyDown:at(t.onKeyDown,p=>{p.key==="Home"?(o(p),p.preventDefault()):p.key==="End"?(s(p),p.preventDefault()):od.concat(sd).includes(p.key)&&(d(p),p.preventDefault())}),onPointerDown:at(t.onPointerDown,p=>{let m=p.target;m.setPointerCapture(p.pointerId),p.preventDefault(),u.thumbs.has(m)?m.focus():n(p)}),onPointerMove:at(t.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&a(p)}),onPointerUp:at(t.onPointerUp,p=>{let m=p.target;m.hasPointerCapture(p.pointerId)&&(m.releasePointerCapture(p.pointerId),i(p))})})}),hd="SliderTrack",Yi=_.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,a=ga(hd,r);return(0,l.jsx)(ft.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:e})});Yi.displayName=hd;var Gi="SliderRange",Ki=_.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,a=ga(Gi,r),i=pd(Gi,r),o=Kt(e,_.useRef(null)),s=a.values.length,d=a.values.map(p=>gd(p,a.min,a.max)),c=s>1?Math.min(...d):0,u=100-Math.max(...d);return(0,l.jsx)(ft.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...n,ref:o,style:{...t.style,[i.startEdge]:c+"%",[i.endEdge]:u+"%"}})});Ki.displayName=Gi;var Qi="SliderThumb",Xi=_.forwardRef((t,e)=>{let r=uh(t.__scopeSlider),[n,a]=_.useState(null),i=Kt(e,s=>a(s)),o=_.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return(0,l.jsx)(xh,{...t,ref:i,index:o})}),xh=_.forwardRef((t,e)=>{let{__scopeSlider:r,index:n,name:a,...i}=t,o=ga(Qi,r),s=pd(Qi,r),[d,c]=_.useState(null),u=Kt(e,v=>c(v)),p=d?o.form||!!d.closest("form"):!0,m=cC(d),f=o.values[n],g=f===void 0?0:gd(f,o.min,o.max),x=bh(n,o.values.length),w=m==null?void 0:m[s.size],b=w?jh(w,g,s.direction):0;return _.useEffect(()=>{if(d)return o.thumbs.add(d),()=>{o.thumbs.delete(d)}},[d,o.thumbs]),(0,l.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[(0,l.jsx)(Ui.ItemSlot,{scope:t.__scopeSlider,children:(0,l.jsx)(ft.span,{role:"slider","aria-label":t["aria-label"]||x,"aria-valuemin":o.min,"aria-valuenow":f,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...i,ref:u,style:f===void 0?{display:"none"}:t.style,onFocus:at(t.onFocus,()=>{o.valueIndexToChangeRef.current=n})})}),p&&(0,l.jsx)(fd,{name:a??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:f},n)]})});Xi.displayName=Qi;var vh="RadioBubbleInput",fd=_.forwardRef(({__scopeSlider:t,value:e,...r},n)=>{let a=_.useRef(null),i=Kt(a,n),o=lm(e);return _.useEffect(()=>{let s=a.current;if(!s)return;let d=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==e&&c){let u=new Event("input",{bubbles:!0});c.call(s,e),s.dispatchEvent(u)}},[o,e]),(0,l.jsx)(ft.input,{style:{display:"none"},...r,ref:i,defaultValue:e})});fd.displayName=vh;function wh(t=[],e,r){let n=[...t];return n[r]=e,n.sort((a,i)=>a-i)}function gd(t,e,r){return om(100/(r-e)*(t-e),[0,100])}function bh(t,e){if(e>2)return`Value ${t+1} of ${e}`;if(e===2)return["Minimum","Maximum"][t]}function yh(t,e){if(t.length===1)return 0;let r=t.map(a=>Math.abs(a-e)),n=Math.min(...r);return r.indexOf(n)}function jh(t,e,r){let n=t/2;return(n-Zi([0,50],[0,n])(e)*r)*r}function Ch(t){return t.slice(0,-1).map((e,r)=>t[r+1]-e)}function Sh(t,e){if(e>0){let r=Ch(t);return Math.min(...r)>=e}return!0}function Zi(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];let n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function _h(t){return(String(t).split(".")[1]||"").length}function kh(t,e){let r=10**e;return Math.round(t*r)/r}var xa=qi,Ji=Yi,el=Ki,va=Xi,Th=Dt("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"}]]),Nh=Dt("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"}]]),Ah=Dt("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"}]]),Ih=Dt("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"}]]),Eh=Dt("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"}]]),Rh=Dt("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"}]]),zh=Dt("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"}]]),Mh=Dt("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"}]]),Ph=Dt("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"}]]),xd=Dt("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"}]]),Fh=Dt("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"}]]),vd=Dt("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"}]]),Lh=Br(Ep(),1);const fr={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function Oh(t,e,r){let n=t.length,a=e.length,i=Array.from({length:n+1},()=>Array.from({length:a+1}).fill(0));for(let c=0;c<=n;c++)i[c][0]=c;for(let c=0;c<=a;c++)i[0][c]=c;for(let c=1;c<=n;c++)for(let u=1;u<=a;u++)i[c][u]=r(t[c-1],e[u-1])?i[c-1][u-1]:1+Math.min(i[c-1][u],i[c][u-1],i[c-1][u-1]);let o=[],s=n,d=a;for(;s>0||d>0;)s>0&&d>0&&r(t[s-1],e[d-1])?(o.unshift({type:fr.MATCH,position:s-1}),s--,d--):s>0&&d>0&&i[s][d]===i[s-1][d-1]+1?(o.unshift({type:fr.SUBSTITUTE,position:s-1}),s--,d--):s>0&&i[s][d]===i[s-1][d]+1?(o.unshift({type:fr.DELETE,position:s-1}),s--):d>0&&i[s][d]===i[s][d-1]+1&&(o.unshift({type:fr.INSERT,position:s}),d--);return{distance:i[n][a],operations:o}}function Vh(t,e,r){let n=[],a=0;for(let i of e)switch(i.type){case fr.MATCH:n.push(t[a]),a++;break;case fr.DELETE:a++;break;case fr.INSERT:n.push(r);break;case fr.SUBSTITUTE:n.push(r),a++;break}return n}function Dh(t,e,r,n){let a=Oh(t,e,r);return{merged:Vh(t,a.operations,n),edits:a}}var wa=0,ba="";function tl(t){return t.id?t.id:t.name==="setup"?G2:Ko.create()}function Hh(t,e){let r=new Map,n=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:r,notebookCellData:n};if(!t){let s=(e==null?void 0:e.cells.map(d=>tl(d)))||[];return{cellIds:s,sessionCellData:new Map(s.map((d,c)=>[d,null])),notebookCellData:new Map(s.map((d,c)=>[d,(e==null?void 0:e.cells[c])||wd()]))}}if(!e){let s=t.cells.map(d=>tl(d));return{cellIds:s,sessionCellData:new Map(s.map((d,c)=>[d,t.cells[c]])),notebookCellData:new Map(s.map(d=>[d,wd()]))}}let{merged:a,edits:i}=Dh(t.cells,e.cells,(s,d)=>{let c=s.code_hash;return c?d.code_hash===c:!1},bd());i.distance>0&&ue.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let s=0;s<e.cells.length;s++){let d=e.cells[s];if(d){let c=tl(d);o.push(c);let u=a[s]||bd();u.id=c,r.set(c,u),n.set(c,d)}else ue.warn("Merged notebook cell is null at index",s)}return{cellIds:o,sessionCellData:r,notebookCellData:n}}function wd(){return{id:Ko.create(),name:ba,code:ba,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function bd(){return{id:Ko.create(),code_hash:null,console:[],outputs:[]}}function Bh(t,e){var r,n,a;return{id:t,name:e.name??ba,code:e.code??ba,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((r=e.config)==null?void 0:r.column)??null,disabled:((n=e.config)==null?void 0:n.disabled)??!1,hide_code:((a=e.config)==null?void 0:a.hide_code)??!1},serializedEditorState:null}}function Wh(t){let e=gj();if(!t)return e;let r=t.outputs||[],n=r.find(i=>i.type==="data")||r.find(i=>i.type==="error")||r[0];if(n){if(n.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:n.evalue}],mimetype:"application/vnd.marimo+error",timestamp:wa};else if(n.type==="data"){let i=Object.keys(n.data)[0];e.output={channel:"output",data:Object.values(n.data)[0],mimetype:i,timestamp:wa}}}let a=t.console||[];return{...e,outline:e.output?fj(e.output):null,consoleOutputs:a.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:wa}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:wa})}}function $h(t,e){let{cellIds:r,sessionCellData:n,notebookCellData:a}=Hh(t,e);if(r.length===0)return null;let i={},o={};for(let s of r){let d=n.get(s),c=a.get(s);c&&(i[s]=Bh(s,c)),o[s]=Wh(d)}return{cellIds:sj.from([r]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var Uh=J(),yd=Object.freeze({left:0,top:0,width:16,height:16}),ya=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),An=Object.freeze({...yd,...ya}),rl=Object.freeze({...An,body:"",hidden:!1}),qh=Object.freeze({width:null,height:null}),jd=Object.freeze({...qh,...ya});function Yh(t,e=0){let r=t.replace(/^-?[0-9.]*/,"");function n(a){for(;a<0;)a+=4;return a%4}if(r===""){let a=parseInt(t);return isNaN(a)?0:n(a)}else if(r!==t){let a=0;switch(r){case"%":a=25;break;case"deg":a=90}if(a){let i=parseFloat(t.slice(0,t.length-r.length));return isNaN(i)?0:(i/=a,i%1==0?n(i):0)}}return e}var Gh=/[\s,]+/;function Kh(t,e){e.split(Gh).forEach(r=>{switch(r.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var Cd={...jd,preserveAspectRatio:""};function Sd(t){let e={...Cd},r=(n,a)=>t.getAttribute(n)||a;return e.width=r("width",null),e.height=r("height",null),e.rotate=Yh(r("rotate","")),Kh(e,r("flip","")),e.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),e}function Qh(t,e){for(let r in Cd)if(t[r]!==e[r])return!0;return!1}var _d=/^[a-z0-9]+(-[a-z0-9]+)*$/,In=(t,e,r,n="")=>{let a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let s=a.pop(),d=a.pop(),c={provider:a.length>0?a[0]:n,prefix:d,name:s};return e&&!ja(c)?null:c}let i=a[0],o=i.split("-");if(o.length>1){let s={provider:n,prefix:o.shift(),name:o.join("-")};return e&&!ja(s)?null:s}if(r&&n===""){let s={provider:n,prefix:"",name:i};return e&&!ja(s,r)?null:s}return null},ja=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Xh(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function kd(t,e){let r=Xh(t,e);for(let n in rl)n in ya?n in t&&!(n in r)&&(r[n]=ya[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function Zh(t,e){let r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);function i(o){if(r[o])return a[o]=[];if(!(o in a)){a[o]=null;let s=n[o]&&n[o].parent,d=s&&i(s);d&&(a[o]=[s].concat(d))}return a[o]}return Object.keys(r).concat(Object.keys(n)).forEach(i),a}function Jh(t,e,r){let n=t.icons,a=t.aliases||Object.create(null),i={};function o(s){i=kd(n[s]||a[s],i)}return o(e),r.forEach(o),kd(t,i)}function Td(t,e){let r=[];if(typeof t!="object"||typeof t.icons!="object")return r;t.not_found instanceof Array&&t.not_found.forEach(a=>{e(a,null),r.push(a)});let n=Zh(t);for(let a in n){let i=n[a];i&&(e(a,Jh(t,a,i)),r.push(a))}return r}var ef={provider:"",aliases:{},not_found:{},...yd};function nl(t,e){for(let r in e)if(r in t&&typeof t[r]!=typeof e[r])return!1;return!0}function Nd(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!nl(t,ef))return null;let r=e.icons;for(let a in r){let i=r[a];if(!a||typeof i.body!="string"||!nl(i,rl))return null}let n=e.aliases||Object.create(null);for(let a in n){let i=n[a],o=i.parent;if(!a||typeof o!="string"||!r[o]&&!n[o]||!nl(i,rl))return null}return e}var Ca=Object.create(null);function tf(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function lr(t,e){let r=Ca[t]||(Ca[t]=Object.create(null));return r[e]||(r[e]=tf(t,e))}function Ad(t,e){return Nd(e)?Td(e,(r,n)=>{n?t.icons[r]=n:t.missing.add(r)}):[]}function rf(t,e,r){try{if(typeof r.body=="string")return t.icons[e]={...r},!0}catch{}return!1}function nf(t,e){let r=[];return(typeof t=="string"?[t]:Object.keys(Ca)).forEach(n=>{(typeof n=="string"&&typeof e=="string"?[e]:Object.keys(Ca[n]||{})).forEach(a=>{let i=lr(n,a);r=r.concat(Object.keys(i.icons).map(o=>(n===""?"":"@"+n+":")+a+":"+o))})}),r}var En=!1;function Id(t){return typeof t=="boolean"&&(En=t),En}function Rn(t){let e=typeof t=="string"?In(t,!0,En):t;if(e){let r=lr(e.provider,e.prefix),n=e.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Ed(t,e){let r=In(t,!0,En);if(!r)return!1;let n=lr(r.provider,r.prefix);return e?rf(n,r.name,e):(n.missing.add(r.name),!0)}function Rd(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),En&&!e&&!t.prefix){let n=!1;return Nd(t)&&(t.prefix="",Td(t,(a,i)=>{Ed(a,i)&&(n=!0)})),n}let r=t.prefix;return ja({provider:e,prefix:r,name:"a"})?!!Ad(lr(e,r),t):!1}function zd(t){return!!Rn(t)}function af(t){let e=Rn(t);return e&&{...An,...e}}function lf(t){let e={loaded:[],missing:[],pending:[]},r=Object.create(null);t.sort((a,i)=>a.provider===i.provider?a.prefix===i.prefix?a.name.localeCompare(i.name):a.prefix.localeCompare(i.prefix):a.provider.localeCompare(i.provider));let n={provider:"",prefix:"",name:""};return t.forEach(a=>{if(n.name===a.name&&n.prefix===a.prefix&&n.provider===a.provider)return;n=a;let i=a.provider,o=a.prefix,s=a.name,d=r[i]||(r[i]=Object.create(null)),c=d[o]||(d[o]=lr(i,o)),u;u=s in c.icons?e.loaded:o===""||c.missing.has(s)?e.missing:e.pending;let p={provider:i,prefix:o,name:s};u.push(p)}),e}function Md(t,e){t.forEach(r=>{let n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(a=>a.id!==e))})}function of(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let r=!1,n=t.provider,a=t.prefix;e.forEach(i=>{let o=i.icons,s=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==a)return!0;let c=d.name;if(t.icons[c])o.loaded.push({provider:n,prefix:a,name:c});else if(t.missing.has(c))o.missing.push({provider:n,prefix:a,name:c});else return r=!0,!0;return!1}),o.pending.length!==s&&(r||Md([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var sf=0;function df(t,e,r){let n=sf++,a=Md.bind(null,r,n);if(!e.pending.length)return a;let i={id:n,icons:e,callback:t,abort:a};return r.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),a}var al=Object.create(null);function Pd(t,e){al[t]=e}function il(t){return al[t]||al[""]}function cf(t,e=!0,r=!1){let n=[];return t.forEach(a=>{let i=typeof a=="string"?In(a,e,r):a;i&&n.push(i)}),n}var uf={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pf(t,e,r,n){let a=t.resources.length,i=t.random?Math.floor(Math.random()*a):t.index,o;if(t.random){let k=t.resources.slice(0);for(o=[];k.length>1;){let C=Math.floor(Math.random()*k.length);o.push(k[C]),k=k.slice(0,C).concat(k.slice(C+1))}o=o.concat(k)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let s=Date.now(),d="pending",c=0,u,p=null,m=[],f=[];typeof n=="function"&&f.push(n);function g(){p&&(p=(clearTimeout(p),null))}function x(){d==="pending"&&(d="aborted"),g(),m.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),m=[]}function w(k,C){C&&(f=[]),typeof k=="function"&&f.push(k)}function b(){return{startTime:s,payload:e,status:d,queriesSent:c,queriesPending:m.length,subscribe:w,abort:x}}function v(){d="failed",f.forEach(k=>{k(void 0,u)})}function y(){m.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),m=[]}function S(k,C,h){let T=C!=="success";switch(m=m.filter(N=>N!==k),d){case"pending":break;case"failed":if(T||!t.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=h,v();return}if(T){u=h,m.length||(o.length?j():v());return}if(g(),y(),!t.random){let N=t.resources.indexOf(k.resource);N!==-1&&N!==t.index&&(t.index=N)}d="completed",f.forEach(N=>{N(h)})}function j(){if(d!=="pending")return;g();let k=o.shift();if(k===void 0){if(m.length){p=setTimeout(()=>{g(),d==="pending"&&(y(),v())},t.timeout);return}v();return}let C={status:"pending",resource:k,callback:(h,T)=>{S(C,h,T)}};m.push(C),c++,p=setTimeout(j,t.rotate),r(k,e,C.callback)}return setTimeout(j),b}function Fd(t){let e={...uf,...t},r=[];function n(){r=r.filter(o=>o().status==="pending")}function a(o,s,d){let c=pf(e,o,s,(u,p)=>{n(),d&&d(u,p)});return r.push(c),c}function i(o){return r.find(s=>o(s))||null}return{query:a,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:n}}function ll(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 Sa=Object.create(null),_a=["https://api.simplesvg.com","https://api.unisvg.com"],ol=[];_a.length>0;)_a.length===1||Math.random()>.5?ol.push(_a.shift()):ol.push(_a.pop());Sa[""]=ll({resources:["https://api.iconify.design"].concat(ol)});function Ld(t,e){let r=ll(e);return r===null?!1:(Sa[t]=r,!0)}function ka(t){return Sa[t]}function mf(){return Object.keys(Sa)}function Od(){}var sl=Object.create(null);function hf(t){if(!sl[t]){let e=ka(t);if(!e)return;sl[t]={config:e,redundancy:Fd(e)}}return sl[t]}function Vd(t,e,r){let n,a;if(typeof t=="string"){let i=il(t);if(!i)return r(void 0,424),Od;a=i.send;let o=hf(t);o&&(n=o.redundancy)}else{let i=ll(t);if(i){n=Fd(i);let o=il(t.resources?t.resources[0]:"");o&&(a=o.send)}}return!n||!a?(r(void 0,424),Od):n.query(e,a,r)().abort}function Dd(){}function ff(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,of(t)}))}function gf(t){let e=[],r=[];return t.forEach(n=>{(n.match(_d)?e:r).push(n)}),{valid:e,invalid:r}}function zn(t,e,r){function n(){let a=t.pendingIcons;e.forEach(i=>{a&&a.delete(i),t.icons[i]||t.missing.add(i)})}if(r&&typeof r=="object")try{if(!Ad(t,r).length){n();return}}catch(a){console.error(a)}n(),ff(t)}function Hd(t,e){t instanceof Promise?t.then(r=>{e(r)}).catch(()=>{e(null)}):e(t)}function xf(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:r,prefix:n}=t,a=t.iconsToLoad;if(delete t.iconsToLoad,!a||!a.length)return;let i=t.loadIcon;if(t.loadIcons&&(a.length>1||!i)){Hd(t.loadIcons(a,n,r),c=>{zn(t,a,c)});return}if(i){a.forEach(c=>{Hd(i(c,n,r),u=>{zn(t,[c],u?{prefix:n,icons:{[c]:u}}:null)})});return}let{valid:o,invalid:s}=gf(a);if(s.length&&zn(t,s,null),!o.length)return;let d=n.match(_d)?il(r):null;if(!d){zn(t,o,null);return}d.prepare(r,n,o).forEach(c=>{Vd(r,c,u=>{zn(t,c.icons,u)})})}))}var dl=(t,e)=>{let r=lf(cf(t,!0,Id()));if(!r.pending.length){let s=!0;return e&&setTimeout(()=>{s&&e(r.loaded,r.missing,r.pending,Dd)}),()=>{s=!1}}let n=Object.create(null),a=[],i,o;return r.pending.forEach(s=>{let{provider:d,prefix:c}=s;if(c===o&&d===i)return;i=d,o=c,a.push(lr(d,c));let u=n[d]||(n[d]=Object.create(null));u[c]||(u[c]=[])}),r.pending.forEach(s=>{let{provider:d,prefix:c,name:u}=s,p=lr(d,c),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(u)||(m.add(u),n[d][c].push(u))}),a.forEach(s=>{let d=n[s.provider][s.prefix];d.length&&xf(s,d)}),e?df(e,r,a):Dd},vf=t=>new Promise((e,r)=>{let n=typeof t=="string"?In(t,!0):t;if(!n){r(t);return}dl([n||t],a=>{if(a.length&&n){let i=Rn(n);if(i){e({...An,...i});return}}r(t)})});function Bd(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function wf(t,e){if(typeof t=="object")return{data:Bd(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let a=Bd(t);if(a)return{data:a,value:t}}let r=In(t,!0,!0);if(!r)return{value:t};let n=Rn(r);return n!==void 0||!r.prefix?{value:t,name:r,data:n}:{value:t,name:r,loading:dl([r],()=>e(t,r,Rn(r)))}}var Wd=!1;try{Wd=navigator.vendor.indexOf("Apple")===0}catch{}function bf(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Wd||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var yf=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jf=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function cl(t,e,r){if(e===1)return t;if(r||(r=100),typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;let n=t.split(yf);if(n===null||!n.length)return t;let a=[],i=n.shift(),o=jf.test(i);for(;;){if(o){let s=parseFloat(i);isNaN(s)?a.push(i):a.push(Math.ceil(s*e*r)/r)}else a.push(i);if(i=n.shift(),i===void 0)return a.join("");o=!o}}function Cf(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let a=t.indexOf(">",n),i=t.indexOf("</"+e);if(a===-1||i===-1)break;let o=t.indexOf(">",i);if(o===-1)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}function Sf(t,e){return t?"<defs>"+t+"</defs>"+e:e}function _f(t,e,r){let n=Cf(t);return Sf(n.defs,e+n.content+r)}var kf=t=>t==="unset"||t==="undefined"||t==="none";function $d(t,e){let r={...An,...t},n={...jd,...e},a={left:r.left,top:r.top,width:r.width,height:r.height},i=r.body;[r,n].forEach(x=>{let w=[],b=x.hFlip,v=x.vFlip,y=x.rotate;b?v?y+=2:(w.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),w.push("scale(-1 1)"),a.top=a.left=0):v&&(w.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),w.push("scale(1 -1)"),a.top=a.left=0);let S;switch(y<0&&(y-=Math.floor(y/4)*4),y%=4,y){case 1:S=a.height/2+a.top,w.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:w.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,w.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}y%2==1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),w.length&&(i=_f(i,'<g transform="'+w.join(" ")+'">',"</g>"))});let o=n.width,s=n.height,d=a.width,c=a.height,u,p;o===null?(p=s===null?"1em":s==="auto"?c:s,u=cl(p,d/c)):(u=o==="auto"?d:o,p=s===null?cl(u,c/d):s==="auto"?c:s);let m={},f=(x,w)=>{kf(w)||(m[x]=w.toString())};f("width",u),f("height",p);let g=[a.left,a.top,d,c];return m.viewBox=g.join(" "),{attributes:m,viewBox:g,body:i}}function ul(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function Tf(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Nf(t){return"data:image/svg+xml,"+Tf(t)}function Ud(t){return'url("'+Nf(t)+'")'}var Ta=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Af(t){Ta=t}function If(){return Ta}function Ef(t,e){let r=ka(t);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let a=0;r.resources.forEach(o=>{a=Math.max(a,o.length)});let i=e+".json?icons=";n=r.maxURL-a-r.path.length-i.length}return n}function Rf(t){return t===404}var zf=(t,e,r)=>{let n=[],a=Ef(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},s=0;return r.forEach((d,c)=>{s+=d.length+1,s>=a&&c>0&&(n.push(o),o={type:i,provider:t,prefix:e,icons:[]},s=d.length),o.icons.push(d)}),n.push(o),n};function Mf(t){if(typeof t=="string"){let e=ka(t);if(e)return e.path}return"/"}var Pf={prepare:zf,send:(t,e,r)=>{if(!Ta){r("abort",424);return}let n=Mf(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),s=new URLSearchParams({icons:o});n+=i+".json?"+s.toString();break}case"custom":{let i=e.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let a=503;Ta(t+n).then(i=>{let o=i.status;if(o!==200){setTimeout(()=>{r(Rf(o)?"abort":"next",o)});return}return a=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?r("abort",i):r("next",a)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",a)})}};function Ff(t,e,r){lr(r||"",e).loadIcons=t}function Lf(t,e,r){lr(r||"",e).loadIcon=t}var pl="data-style",qd="";function Of(t){qd=t}function Yd(t,e){let r=Array.from(t.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(pl));r||(r=document.createElement("style"),r.setAttribute(pl,pl),t.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+qd}function Gd(){Pd("",Pf),Id(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(n=>{try{(typeof n!="object"||!n||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Rd(n))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let r in e){let n="IconifyProviders["+r+"] is invalid.";try{let a=e[r];if(typeof a!="object"||!a||a.resources===void 0)continue;Ld(r,a)||console.error(n)}catch{console.error(n)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:zd,iconExists:zd,getIcon:af,listIcons:nf,addIcon:Ed,addCollection:Rd,calculateSize:cl,buildIcon:$d,iconToHTML:ul,svgToURL:Ud,loadIcons:dl,loadIcon:vf,addAPIProvider:Ld,setCustomIconLoader:Lf,setCustomIconsLoader:Ff,appendCustomStyle:Of,_api:{getAPIConfig:ka,setAPIModule:Pd,sendAPIQuery:Vd,setFetch:Af,getFetch:If,listAPIProviders:mf}}}var ml={"background-color":"currentColor"},Kd={"background-color":"transparent"},Qd={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Xd={"-webkit-mask":ml,mask:ml,background:Kd};for(let t in Xd){let e=Xd[t];for(let r in Qd)e[t+"-"+r]=Qd[r]}function Zd(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Vf(t,e,r){let n=document.createElement("span"),a=t.body;a.indexOf("<a")!==-1&&(a+="<!-- "+Date.now()+" -->");let i=t.attributes,o=Ud(ul(a,{...i,width:e.width+"",height:e.height+""})),s=n.style,d={"--svg":o,width:Zd(i.width),height:Zd(i.height),...r?ml:Kd};for(let c in d)s.setProperty(c,d[c]);return n}var Mn;function Df(){try{Mn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{Mn=null}}function Hf(t){return Mn===void 0&&Df(),Mn?Mn.createHTML(t):t}function Bf(t){let e=document.createElement("span"),r=t.attributes,n="";return r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n),e.innerHTML=Hf(ul(t.body,r)),e.firstChild}function hl(t){return Array.from(t.childNodes).find(e=>{let r=e.tagName&&e.tagName.toUpperCase();return r==="SPAN"||r==="SVG"})}function Jd(t,e){let r=e.icon.data,n=e.customisations,a=$d(r,n);n.preserveAspectRatio&&(a.attributes.preserveAspectRatio=n.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=Bf(a):o=Vf(a,{...An,...r},i==="mask");let s=hl(t);s?o.tagName==="SPAN"&&s.tagName===o.tagName?s.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,s):t.appendChild(o)}function ec(t,e,r){return{rendered:!1,inline:e,icon:t,lastRender:r&&(r.rendered?r:r.lastRender)}}function Wf(t="iconify-icon"){let e,r;try{e=window.customElements,r=window.HTMLElement}catch{return}if(!e||!r)return;let n=e.get(t);if(n)return n;let a=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends r{constructor(){super();B(this,"_shadowRoot");B(this,"_initialised",!1);B(this,"_state");B(this,"_checkQueued",!1);B(this,"_connected",!1);B(this,"_observer",null);B(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),c=this.hasAttribute("inline");Yd(d,c),this._state=ec({value:""},c),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return a.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let c=this.hasAttribute("inline"),u=this._state;c!==u.inline&&(u.inline=c,Yd(this._shadowRoot,c));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 c=this._shadowRoot;if(d.renderedMode==="svg")try{c.lastChild.setCurrentTime(0);return}catch{}Jd(c,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,c=this.getAttribute("icon");if(c!==d.icon.value){this._iconChanged(c);return}if(!d.rendered||!this._visible)return;let u=this.getAttribute("mode"),p=Sd(this);(d.attrMode!==u||Qh(d.customisations,p)||!hl(this._shadowRoot))&&this._renderIcon(d.icon,p,u)}_iconChanged(d){let c=wf(d,(u,p,m)=>{let f=this._state;if(f.rendered||this.getAttribute("icon")!==u)return;let g={value:u,name:p,data:m};g.data?this._gotIconData(g):f.icon=g});c.data?this._gotIconData(c):this._state=ec(c,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=hl(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,Sd(this),this.getAttribute("mode"))}_renderIcon(d,c,u){let p=bf(d.data.body,u),m=this._state.inline;Jd(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:c,attrMode:u,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let c=d.some(u=>u.isIntersecting);c!==this._visible&&(this._visible=c,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())}};a.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(d){d===null?this.removeAttribute(s):this.setAttribute(s,d)}})});let o=Gd();for(let s in o)i[s]=i.prototype[s]=o[s];return e.define(t,i),i}var{enableCache:ZS,disableCache:JS,iconLoaded:e_,iconExists:t_,getIcon:r_,listIcons:n_,addIcon:a_,addCollection:i_,calculateSize:l_,buildIcon:o_,iconToHTML:s_,svgToURL:d_,loadIcons:c_,loadIcon:u_,setCustomIconLoader:p_,setCustomIconsLoader:m_,addAPIProvider:h_,_api:f_}=Wf()||Gd();const $f=()=>((0,Uh.c)(1),null);var tc=J();const rc=(0,_.memo)(t=>{let e=(0,tc.c)(3),{children:r}=t,{theme:n}=Sn(),a,i;return e[0]===n?(a=e[1],i=e[2]):(a=()=>(document.body.classList.add(n,`${n}-theme`),document.body.dataset.theme=n,()=>{document.body.classList.remove(n,`${n}-theme`),delete document.body.dataset.theme}),i=[n],e[0]=n,e[1]=a,e[2]=i),(0,_.useLayoutEffect)(a,i),r});rc.displayName="ThemeProvider";const Uf=t=>{let e=(0,tc.c)(3),{variables:r,children:n}=t,a;return e[0]!==n||e[1]!==r?(a=(0,l.jsx)("div",{className:"contents",style:r,children:n}),e[0]=n,e[1]=r,e[2]=a):a=e[2],a},Na=t=>{let e=null,r=async()=>(e||(e=t()),e);return{preload:r,Component:_.lazy(()=>r())}};var qf=J();const Yf=()=>{let t=(0,qf.c)(25),[e,r]=vn(Fj);if(e===null)return null;let n;t[0]===e?n=t[1]:(n=async()=>{try{await navigator.clipboard.writeText(e),At({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{At({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=n);let a=n,i;t[2]===r?i=t[3]:(i=()=>{r(null)},t[2]=r,t[3]=i);let o=i,s=Gf,d;t[4]===o?d=t[5]:(d=y=>!y&&o(),t[4]=o,t[5]=d);let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsxs)(em,{children:[(0,l.jsxs)(rm,{className:"flex items-center gap-2 text-destructive",children:[(0,l.jsx)(X2,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,l.jsx)(Jp,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=c):c=t[6];let u;t[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=u):u=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(_m,{className:"h-3 w-3"}),t[8]=p):p=t[8];let m;t[9]===a?m=t[10]:(m=(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[u,(0,l.jsxs)(Fe,{variant:"outline",size:"xs",onClick:a,className:"flex items-center gap-1",children:[p,"Copy"]})]}),t[9]=a,t[10]=m);let f;t[11]===e?f=t[12]:(f=(0,l.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]=f);let g;t[13]!==m||t[14]!==f?(g=(0,l.jsxs)("div",{className:"my-4 overflow-hidden",children:[m,f]}),t[13]=m,t[14]=f,t[15]=g):g=t[15];let x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsxs)(Fe,{variant:"outline",onClick:s,className:"flex items-center gap-2",children:[(0,l.jsx)(K4,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=x):x=t[16];let w;t[17]===o?w=t[18]:(w=(0,l.jsxs)(am,{children:[x,(0,l.jsx)(nm,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=w);let b;t[19]!==w||t[20]!==g?(b=(0,l.jsxs)(tm,{className:"max-w-2xl",children:[c,g,w]}),t[19]=w,t[20]=g,t[21]=b):b=t[21];let v;return t[22]!==b||t[23]!==d?(v=(0,l.jsx)(im,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=v):v=t[24],v};function Gf(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}var Kf=J();const Qf=t=>{let e=(0,Kf.c)(30),{isOpen:r,onClose:n,traceback:a,errorMessage:i}=t,o;e[0]===a?o=e[1]:(o=async()=>{let j=document.createElement("div");j.innerHTML=ij(a);let k=j.textContent||j.innerText||"";try{await navigator.clipboard.writeText(k),At({title:"Copied to clipboard",description:"Traceback has been copied to your clipboard."})}catch{At({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},e[0]=a,e[1]=o);let s=o,d;e[2]===n?d=e[3]:(d=j=>!j&&n(),e[2]=n,e[3]=d);let c;e[4]===i?c=e[5]:(c=(0,l.jsx)(rm,{className:"text-destructive",children:i}),e[4]=i,e[5]=c);let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(Jp,{children:"Click the traceback to select and copy."}),e[6]=u):u=e[6];let p;e[7]===c?p=e[8]:(p=(0,l.jsxs)(em,{children:[c,u]}),e[7]=c,e[8]=p);let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Traceback"}),e[9]=m):m=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,l.jsx)(_m,{className:"h-3 w-3"}),e[10]=f):f=e[10];let g;e[11]===s?g=e[12]:(g=(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[m,(0,l.jsxs)(Fe,{variant:"outline",size:"xs",onClick:s,className:"flex items-center gap-1",children:[f,"Copy"]})]}),e[11]=s,e[12]=g);let x;e[13]===a?x=e[14]:(x=qe({html:a}),e[13]=a,e[14]=x);let w;e[15]===x?w=e[16]:(w=(0,l.jsx)("div",{className:"font-code text-sm p-4 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",children:x}),e[15]=x,e[16]=w);let b;e[17]!==w||e[18]!==g?(b=(0,l.jsxs)("div",{className:"my-4 overflow-auto",children:[g,w]}),e[17]=w,e[18]=g,e[19]=b):b=e[19];let v;e[20]===n?v=e[21]:(v=(0,l.jsx)(am,{children:(0,l.jsx)(nm,{onClick:n,children:"Close"})}),e[20]=n,e[21]=v);let y;e[22]!==b||e[23]!==v||e[24]!==p?(y=(0,l.jsxs)(tm,{className:"max-w-4xl max-h-[80vh]",children:[p,b,v]}),e[22]=b,e[23]=v,e[24]=p,e[25]=y):y=e[25];let S;return e[26]!==r||e[27]!==y||e[28]!==d?(S=(0,l.jsx)(im,{open:r,onOpenChange:d,children:y}),e[26]=r,e[27]=y,e[28]=d,e[29]=S):S=e[29],S};var Xf=J();const Zf=()=>{let t=(0,Xf.c)(6),[e,r]=vn(oj);if(!e)return null;let n;t[0]===r?n=t[1]:(n=()=>r(null),t[0]=r,t[1]=n);let a;return t[2]!==n||t[3]!==e.errorMessage||t[4]!==e.traceback?(a=(0,l.jsx)(Qf,{isOpen:!0,onClose:n,traceback:e.traceback,errorMessage:e.errorMessage}),t[2]=n,t[3]=e.errorMessage,t[4]=e.traceback,t[5]=a):a=t[5],a};var Jf=J();const e0=()=>{let t=(0,Jf.c)(5),{toasts:e}=fS(),r;t[0]===e?r=t[1]:(r=e.map(t0),t[0]=e,t[1]=r);let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(D2,{}),t[2]=n):n=t[2];let a;return t[3]===r?a=t[4]:(a=(0,l.jsxs)(rj,{children:[r,n]}),t[3]=r,t[4]=a),a};function t0(t){let{id:e,title:r,description:n,action:a,...i}=t;return(0,l.jsxs)(W2,{...i,children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[r&&(0,l.jsx)(q2,{children:r}),n&&(0,l.jsx)(ej,{children:n})]}),a,(0,l.jsx)(tj,{})]},e)}var r0=J();const fl=t=>{let e=(0,r0.c)(5),{children:r}=t,n=xi(Bj),a;e[0]===n?a=e[1]:(a=n0(n),e[0]=n,e[1]=a);let i;return e[2]!==r||e[3]!==a?(i=(0,l.jsx)(bS,{locale:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i};function n0(t){return t&&a0(t)?t:navigator.language}function a0(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var nc=J(),ac=Na(()=>yt(()=>import("./home-page-De1W6q6f.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,130,131,132,133,134]),import.meta.url)),ic=Na(()=>yt(()=>import("./run-page-DJOwAe2z.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([135,136,137,4,138,13,8,9,10,11,139,140,141,142,3,5,6,7,12,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,107,143,70,144,145,105,75,74,79,78,80,81,82,83,84,71,72,68,69,85,146,147,148,93,97,149,150,133,151,66,152,153,154,90,155,156,157,158,159,160,86,161,92,88,162,91,163,121,122,123,125,118,164,165,126,94,166,167,129,168,100,169,170,171,172,173,174,175,176,177,178,179,98,180,77,87,89,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,112,280,281,282,283,284,285,286,287,288,289,95,96,290,291,292,293,294,295,296,119]),import.meta.url)),lc=Na(()=>yt(()=>import("./edit-page-Dos8zz_9.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([297,4,298,10,136,137,138,13,8,9,11,139,140,141,142,3,5,6,7,12,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,107,143,70,144,145,105,75,74,79,78,80,81,82,83,84,71,72,68,69,85,146,147,148,93,97,149,150,133,151,66,152,153,154,90,155,156,157,158,159,160,86,161,92,88,162,91,163,121,122,123,125,118,164,165,126,94,166,167,129,168,100,169,170,171,172,173,174,175,176,177,178,179,98,180,77,87,89,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,112,280,281,282,283,284,285,286,287,288,289,95,96,290,291,292,293,294,295,296,2,67,73,76,99,101,102,1,103,104,106,299,300,108,301,117,111,302,303,109,110,304,120,305,306,307,308,309,310,311,312,134,313,130,314,315,316,132,119,124,131,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331]),import.meta.url)),oc=Na(()=>yt(()=>import("./gallery-page-MrZHjySE.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([332,107,12,13,8,9,10,11,6,7,35,66,20,73,14,15,79,78,25,60,29,61,62,80,44,41,26,81,82,83,84,21,36,37,90,91,75,92,30,46]),import.meta.url));function i0(t){switch(t){case"home":ac.preload();break;case"gallery":oc.preload();break;case"read":ic.preload();break;default:lc.preload()}}const sc=(0,_.memo)(()=>{let t=(0,nc.c)(12),[e]=Gj(),[r]=Yj(),n;t[0]===e.display.code_editor_font_size?n=t[1]:(n=l0(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=n);let a=n,i;t[2]!==r||t[3]!==e?(i=()=>{let u=nj();return u==="home"?(0,l.jsx)(ac.Component,{}):u==="gallery"?(0,l.jsx)(oc.Component,{}):u==="read"?(0,l.jsx)(ic.Component,{appConfig:r}):(0,l.jsx)(lc.Component,{userConfig:e,appConfig:r})},t[2]=r,t[3]=e,t[4]=i):i=t[4];let o=i,s;t[5]===a?s=t[6]:(s={"--marimo-code-editor-font-size":a},t[5]=a,t[6]=s);let d;t[7]===o?d=t[8]:(d=(0,l.jsx)(fl,{children:o()}),t[7]=o,t[8]=d);let c;return t[9]!==s||t[10]!==d?(c=(0,l.jsx)(dc,{children:(0,l.jsx)(Uf,{variables:s,children:d})}),t[9]=s,t[10]=d,t[11]=c):c=t[11],c});sc.displayName="MarimoApp";var dc=(0,_.memo)(t=>{let e=(0,nc.c)(6),{children:r}=t,n,a,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(e0,{}),a=(0,l.jsx)($f,{}),i=(0,l.jsx)(Yf,{}),o=(0,l.jsx)(Zf,{}),e[0]=n,e[1]=a,e[2]=i,e[3]=o):(n=e[0],a=e[1],i=e[2],o=e[3]);let s;return e[4]===r?s=e[5]:(s=(0,l.jsx)(yi,{children:(0,l.jsx)(_.Suspense,{children:(0,l.jsx)(ca,{children:(0,l.jsx)(mm,{controller:da,children:(0,l.jsx)(fl,{children:(0,l.jsxs)(SS,{children:[r,n,a,i,o]})})})})})}),e[4]=r,e[5]=s),s});dc.displayName="Providers";function l0(t){return`${t/16}rem`}function o0(){wS(t=>{t.delete(rs.accessToken)})}var s0={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsIPYNB:"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",sendCopyFileOrFolder:"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",previewSQLSchemaList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",listStorageEntries:"waitForConnectionOpen",downloadStorage:"waitForConnectionOpen",sendDocumentTransaction:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function d0(t,e){let r=u4(async a=>{Ve.set($p,{state:Up.CONNECTING}),await a.init()});function n(a,i){let o=s0[i];return async(...s)=>{let d=e();if(!d.isLazy)return a(...s);switch(o){case"dropRequest":ue.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Om;case"waitForConnectionOpen":return await dt(),await Im(),a(...s);case"startConnection":return await r(d),await dt(),i!=="sendInstantiate"&&await Im(),a(...s);default:throw Error(`Unknown action for "${i}"`)}}}return $r.mapValues(t,(a,i)=>n(a,i))}function c0(t){return{body:t,bodySerializer:e=>e}}var{handleResponse:Le,handleResponseReturnNull:Ce}=tC;function u0(){let t=ys(()=>nC(ns())),e=()=>ns().sessionHeaders(),r=()=>({header:e()});return{sendComponentValues:n=>t().POST("/api/kernel/set_ui_element_value",{body:n,params:r()}).then(Ce),sendModelValue:n=>t().POST("/api/kernel/set_model_value",{body:n,params:r()}).then(Ce),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:r()}).then(Ce),sendDocumentTransaction:async n=>(await dt(),t().POST("/api/document/transaction",{body:n,params:r()}).then(Ce)),sendRename:n=>t().POST("/api/kernel/rename",{body:n,params:r()}).then(Ce),sendSave:n=>t().POST("/api/kernel/save",{body:n,parseAs:"text",params:r()}).then(Ce),sendCopy:n=>t().POST("/api/kernel/copy",{body:n,parseAs:"text",params:r()}).then(Ce),sendFormat:n=>t().POST("/api/kernel/format",{body:n}).then(Le),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:r()}).then(Ce),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(Ce),sendRun:async n=>(await dt(),t().POST("/api/kernel/run",{body:n,params:r()}).then(Ce)),sendRunScratchpad:async n=>(await dt(),t().POST("/api/kernel/scratchpad/run",{body:n,params:r()}).then(Ce)),sendInstantiate:async n=>(await dt(),t().POST("/api/kernel/instantiate",{body:n,params:r()}).then(Ce)),sendDeleteCell:n=>t().POST("/api/kernel/delete",{body:n,params:r()}).then(Ce),sendCodeCompletionRequest:async n=>(await dt(),t().POST("/api/kernel/code_autocomplete",{body:n,params:r()}).then(Ce)),saveUserConfig:n=>t().POST("/api/kernel/save_user_config",{body:n}).then(Ce),saveAppConfig:n=>t().POST("/api/kernel/save_app_config",{body:n,parseAs:"text",params:r()}).then(Ce),saveCellConfig:n=>t().POST("/api/kernel/set_cell_config",{body:n,params:r()}).then(Ce),sendFunctionRequest:n=>t().POST("/api/kernel/function_call",{body:n,params:r()}).then(Ce),sendStdin:n=>t().POST("/api/kernel/stdin",{body:n,params:r()}).then(Ce),sendInstallMissingPackages:n=>t().POST("/api/kernel/install_missing_packages",{body:n,params:r()}).then(Ce),readCode:async()=>(await dt(),t().POST("/api/kernel/read_code",{params:r()}).then(Le)),readSnippets:async()=>(await dt(),t().GET("/api/documentation/snippets",{params:r()}).then(Le)),previewDatasetColumn:n=>t().POST("/api/datasources/preview_column",{body:n,params:r()}).then(Ce),previewSQLTable:n=>t().POST("/api/datasources/preview_sql_table",{body:n,params:r()}).then(Ce),previewSQLTableList:n=>t().POST("/api/datasources/preview_sql_table_list",{body:n,params:r()}).then(Ce),previewSQLSchemaList:n=>t().POST("/api/datasources/preview_sql_schema_list",{body:n,params:r()}).then(Ce),previewDataSourceConnection:n=>t().POST("/api/datasources/preview_datasource_connection",{body:n,params:r()}).then(Ce),validateSQL:n=>t().POST("/api/sql/validate",{body:n,params:r()}).then(Ce),openFile:async n=>(await dt(),await t().POST("/api/files/open",{body:n}).then(Ce),null),getUsageStats:async()=>(await dt(),t().GET("/api/usage").then(Le)),sendPdb:n=>t().POST("/api/kernel/pdb/pm",{body:n,params:r()}).then(Ce),sendListFiles:async n=>(await dt(),t().POST("/api/files/list_files",{body:n}).then(Le)),sendSearchFiles:async n=>(await dt(),t().POST("/api/files/search",{body:n}).then(Le)),sendCreateFileOrFolder:async n=>{await dt();let a=new FormData;return a.append("path",n.path),a.append("type",n.type),a.append("name",n.name),n.file&&a.append("file",n.file,n.name),t().POST("/api/files/create",c0(a)).then(Le)},sendDeleteFileOrFolder:async n=>t().POST("/api/files/delete",{body:n}).then(Le),sendCopyFileOrFolder:async n=>t().POST("/api/files/copy",{body:n}).then(Le),sendRenameFileOrFolder:async n=>t().POST("/api/files/move",{body:n}).then(Le),sendUpdateFile:async n=>(await dt(),t().POST("/api/files/update",{body:n}).then(Le)),sendFileDetails:async n=>(await dt(),t().POST("/api/files/file_details",{body:n}).then(Le)),openTutorial:n=>t().POST("/api/home/tutorial/open",{body:n}).then(Le),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Le),getWorkspaceFiles:n=>t().POST("/api/home/workspace_files",{body:n}).then(Le),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Le),shutdownSession:n=>t().POST("/api/home/shutdown_session",{body:n}).then(Le),exportAsHTML:async n=>t().POST("/api/export/html",{body:n,parseAs:"text",params:r()}).then(Le),exportAsMarkdown:async n=>t().POST("/api/export/markdown",{body:n,parseAs:"text",params:r()}).then(Le),exportAsIPYNB:async n=>t().POST("/api/export/ipynb",{body:n,parseAs:"text",params:r()}).then(Le),exportAsPDF:async n=>t().POST("/api/export/pdf",{body:n,parseAs:"blob",params:r()}).then(Le),autoExportAsHTML:async n=>t().POST("/api/export/auto_export/html",{body:n,params:r()}).then(Ce),autoExportAsMarkdown:async n=>t().POST("/api/export/auto_export/markdown",{body:n,params:r()}).then(Ce),autoExportAsIPYNB:async n=>t().POST("/api/export/auto_export/ipynb",{body:n,params:r()}).then(Ce),updateCellOutputs:async n=>t().POST("/api/export/update_cell_outputs",{body:n,params:r()}).then(Ce),addPackage:n=>t().POST("/api/packages/add",{body:n}).then(Le),removePackage:n=>t().POST("/api/packages/remove",{body:n}).then(Le),getPackageList:async()=>(await dt(),t().GET("/api/packages/list").then(Le)),getDependencyTree:async()=>(await dt(),t().GET("/api/packages/tree").then(Le)),listSecretKeys:async n=>(await dt(),t().POST("/api/secrets/keys",{body:n,params:r()}).then(Ce)),writeSecret:async n=>t().POST("/api/secrets/create",{body:n,params:r()}).then(Ce),invokeAiTool:async n=>t().POST("/api/ai/invoke_tool",{body:n,params:r()}).then(Le),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:r()}).then(Ce),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:r()}).then(Ce),listStorageEntries:n=>t().POST("/api/storage/list_entries",{body:n,params:r()}).then(Ce),downloadStorage:n=>t().POST("/api/storage/download",{body:n,params:r()}).then(Ce)}}function p0(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(At({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),ue.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(ue.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(ue.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(At({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),ue.log("Function requests are not supported in static mode"),null),sendRestart:t,sendDocumentTransaction: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,previewSQLSchemaList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendCopyFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsIPYNB: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 m0=J();function h0(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",sendDocumentTransaction:"Failed to sync document transaction",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",previewSQLSchemaList:"Failed to fetch SQL schema 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",sendCopyFileOrFolder:"Failed to duplicate 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",exportAsIPYNB:"Failed to export ipynb",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"},r={};for(let[n,a]of Object.entries(t)){let i=n;r[i]=async(...o)=>{try{return await a(...o)}catch(s){if(s instanceof Om){if(Ve.get(Bp))return;let u=At({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,l.jsx)(f0,{onConnect:()=>u.dismiss()})});throw ue.error(`Failed to handle request: ${n}`,s),s}let d=e[i],c=Vm(s);throw d&&At({title:d,description:c,variant:"danger"}),ue.error(`Failed to handle request: ${n}`,s),s}}}return r}const f0=t=>{let e=(0,m0.c)(9),{onConnect:r}=t,n=Qj(),a=xi(Bp),i;e[0]!==n||e[1]!==r?(i=()=>{n(),setTimeout(()=>{r()},800)},e[0]=n,e[1]=r,e[2]=i):i=e[2];let o;e[3]===a?o=e[4]:(o=a&&(0,l.jsx)(Ni,{size:"small",className:"mr-1"}),e[3]=a,e[4]=o);let s;return e[5]!==a||e[6]!==i||e[7]!==o?(s=(0,l.jsxs)(Fe,{size:"xs",onClick:i,disabled:a,children:[o,"Connect"]}),e[5]=a,e[6]=i,e[7]=o,e[8]=s):s=e[8],s};function g0(){let t;return t=Kj()?zj.INSTANCE:oa()?p0():d0(u0(),()=>ns()),h0(t)}var en=J(),gl=_.forwardRef((t,e)=>{let r=(0,en.c)(16),n,a,i,o;r[0]===t?(n=r[1],a=r[2],i=r[3],o=r[4]):({className:a,children:n,orientation:i,...o}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i,r[4]=o);let s=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",c;r[5]!==a||r[6]!==s||r[7]!==d?(c=ee(s,d,"relative z-10",a),r[5]=a,r[6]=s,r[7]=d,r[8]=c):c=r[8];let u;r[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(pc,{}),r[9]=u):u=r[9];let p;return r[10]!==n||r[11]!==i||r[12]!==o||r[13]!==e||r[14]!==c?(p=(0,l.jsxs)(td,{ref:e,className:c,orientation:i,...o,children:[n,u]}),r[10]=n,r[11]=i,r[12]=o,r[13]=e,r[14]=c,r[15]=p):p=r[15],p});gl.displayName=td.displayName;var x0=as("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Aa=_.forwardRef((t,e)=>{let r=(0,en.c)(11),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:n,orientation:a,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let o;r[4]!==n||r[5]!==a?(o=ee(x0({orientation:a}),n),r[4]=n,r[5]=a,r[6]=o):o=r[6];let s;return r[7]!==i||r[8]!==e||r[9]!==o?(s=(0,l.jsx)(rd,{ref:e,className:o,...i}),r[7]=i,r[8]=e,r[9]=o,r[10]=s):s=r[10],s});Aa.displayName=rd.displayName;var xl=sh,vl=as("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"}}),cc=_.forwardRef((t,e)=>{let r=(0,en.c)(12),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:a,children:n,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let o;r[4]===a?o=r[5]:(o=ee(vl(),"group",a),r[4]=a,r[5]=o);let s;r[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(IS,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),r[6]=s):s=r[6];let d;return r[7]!==n||r[8]!==i||r[9]!==e||r[10]!==o?(d=(0,l.jsxs)(nd,{ref:e,className:o,...i,children:[n," ",s]}),r[7]=n,r[8]=i,r[9]=e,r[10]=o,r[11]=d):d=r[11],d});cc.displayName=nd.displayName;var uc=_.forwardRef((t,e)=>{let r=(0,en.c)(9),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===n?i=r[4]:(i=ee("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 ",n),r[3]=n,r[4]=i);let o;return r[5]!==a||r[6]!==e||r[7]!==i?(o=(0,l.jsx)(id,{ref:e,className:i,...a}),r[5]=a,r[6]=e,r[7]=i,r[8]=o):o=r[8],o});uc.displayName=id.displayName;var wl=dh,pc=_.forwardRef((t,e)=>{let r=(0,en.c)(10),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===Symbol.for("react.memo_cache_sentinel")?(i=ee("absolute left-0 top-full flex justify-center"),r[3]=i):i=r[3];let o;r[4]===n?o=r[5]:(o=ee("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)",n),r[4]=n,r[5]=o);let s;return r[6]!==a||r[7]!==e||r[8]!==o?(s=(0,l.jsx)("div",{className:i,children:(0,l.jsx)(ld,{className:o,ref:e,...a})}),r[6]=a,r[7]=e,r[8]=o,r[9]=s):s=r[9],s});pc.displayName=ld.displayName;var v0=_.forwardRef((t,e)=>{let r=(0,en.c)(10),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===n?i=r[4]:(i=ee("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",n),r[3]=n,r[4]=i);let o;r[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),r[5]=o):o=r[5];let s;return r[6]!==a||r[7]!==e||r[8]!==i?(s=(0,l.jsx)(ad,{ref:e,className:i,...a,children:o}),r[6]=a,r[7]=e,r[8]=i,r[9]=s):s=r[9],s});v0.displayName=ad.displayName;var mc=J(),w0=class{constructor(){B(this,"tagName","marimo-nav-menu");B(this,"menuItemValidator",L({label:I(),href:I(),description:I().nullish()}));B(this,"menuItemGroupValidator",L({label:I(),items:Q(this.menuItemValidator)}));B(this,"validator",L({items:Q(Te([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,l.jsx)(b0,{...t.data})}},b0=t=>{let e=(0,mc.c)(13),{items:r,orientation:n}=t,a=y0,i=j0,o=C0,s;e[0]===n?s=e[1]:(s=m=>"items"in m?n==="horizontal"?(0,l.jsx)(gl,{orientation:"horizontal",children:(0,l.jsx)(Aa,{children:(0,l.jsxs)(xl,{children:[(0,l.jsx)(cc,{children:qe({html:m.label})}),(0,l.jsx)(uc,{children:(0,l.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:m.items.map(f=>(0,l.jsx)(hc,{label:f.label,href:o(f.href),target:i(f.href),children:f.description&&qe({html:f.description})},f.label))})})]})})},m.label):(0,l.jsxs)(xl,{children:[(0,l.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:qe({html:m.label})}),(0,l.jsx)(Aa,{className:"ml-4 auto-collapse-nav",orientation:n,children:m.items.map(f=>(0,l.jsx)(_.Fragment,{children:a((0,l.jsx)(wl,{href:o(f.href),target:i(f.href),className:vl({orientation:n}),children:qe({html:f.label})},f.label),f.description)},f.label))})]},m.label):(0,l.jsx)(xl,{children:(0,l.jsx)(wl,{href:o(m.href),target:i(m.href),className:vl({orientation:n}),children:qe({html:m.label})})},m.label),e[0]=n,e[1]=s);let d=s,c;if(e[2]!==r||e[3]!==d){let m;e[5]===d?m=e[6]:(m=f=>d(f),e[5]=d,e[6]=m),c=r.map(m),e[2]=r,e[3]=d,e[4]=c}else c=e[4];let u;e[7]!==n||e[8]!==c?(u=(0,l.jsx)(Aa,{className:"auto-collapse-nav",orientation:n,children:c}),e[7]=n,e[8]=c,e[9]=u):u=e[9];let p;return e[10]!==n||e[11]!==u?(p=(0,l.jsx)(gl,{orientation:n,children:u}),e[10]=n,e[11]=u,e[12]=p):p=e[12],p},hc=_.forwardRef((t,e)=>{let r=(0,mc.c)(19),n,a,i,o;r[0]===t?(n=r[1],a=r[2],i=r[3],o=r[4]):({className:a,label:i,children:n,...o}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i,r[4]=o);let s;r[5]===a?s=r[6]:(s=ee("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",a),r[5]=a,r[6]=s);let d;r[7]===i?d=r[8]:(d=qe({html:i}),r[7]=i,r[8]=d);let c;r[9]===d?c=r[10]:(c=(0,l.jsx)("div",{className:"text-base font-medium leading-none",children:d}),r[9]=d,r[10]=c);let u;r[11]===n?u=r[12]:(u=n&&(0,l.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:n}),r[11]=n,r[12]=u);let p;return r[13]!==o||r[14]!==e||r[15]!==s||r[16]!==c||r[17]!==u?(p=(0,l.jsx)("li",{children:(0,l.jsx)(wl,{asChild:!0,children:(0,l.jsxs)("a",{ref:e,className:s,...o,children:[c,u]})})}),r[13]=o,r[14]=e,r[15]=s,r[16]=c,r[17]=u,r[18]=p):p=r[18],p});hc.displayName="ListItem";function y0(t,e){return e?(0,l.jsx)(mr,{delayDuration:200,content:qe({html:e}),children:t}):t}function j0(t){return t.startsWith("http")?"_blank":"_self"}function C0(t){return vS({href:t,queryParams:new URL(globalThis.location.href).search,keys:[rs.filePath]})}function S0(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?c4(t,e):typeof t=="object"&&typeof e=="object"?_0(t,e):!1}function _0(t,e){return Object.keys(t).length===Object.keys(e).length&&$r.keys(t).every(r=>t[r]===e[r])}function bl(t,e){if(!(window!=null&&window.customElements)){ue.warn("Custom elements not supported");return}if(window.customElements.get(t)){ue.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var k0=J(),T0=pC,N0=hC,A0=fC,I0=mC;const E0=t=>{let e=(0,k0.c)(16),{error:r,badData:n,shadowRoot:a}=t;if(r instanceof yj){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)(Ns,{children:"Bad Data"}),e[0]=o):o=e[0];let s;e[1]===r.issues?s=e[2]:(s=r.issues.map(z0),e[1]=r.issues,e[2]=s);let d;e[3]===s?d=e[4]:(d=(0,l.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,l.jsx)("ul",{children:s})}),e[3]=s,e[4]=d);let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(I0,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=c):c=e[5];let u;e[6]===n?u=e[7]:(u=(0,l.jsx)(gm,{data:n}),e[6]=n,e[7]=u);let p;e[8]!==a||e[9]!==u?(p=(0,l.jsx)(T0,{type:"single",collapsible:!0,children:(0,l.jsxs)(A0,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[c,(0,l.jsx)(N0,{className:"text-[0.84375rem]",children:(0,l.jsx)(pm,{container:a,children:u})})]})}),e[8]=a,e[9]=u,e[10]=p):p=e[10];let m;return e[11]!==d||e[12]!==p?(m=(0,l.jsxs)(Ri,{variant:"destructive",children:[o,d,p]}),e[11]=d,e[12]=p,e[13]=m):m=e[13],m}let i;return e[14]===r.message?i=e[15]:(i=(0,l.jsx)("div",{children:r.message}),e[14]=r.message,e[15]=i),i};function R0(t,e,r){return(0,l.jsx)(E0,{error:t,badData:e,shadowRoot:r})}function z0(t){let e=t.path.join(".");return(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function M0({hostElement:t,plugin:e,children:r,getInitialValue:n},a){let[i,o]=(0,_.useState)(r),[s,d]=(0,_.useState)(n()),{theme:c}=Sn(),[u,p]=(0,_.useState)(()=>e.validator.safeParse(Qo(t))),[m,f]=(0,_.useState)(0);(0,_.useImperativeHandle)(a,()=>({reset:()=>{d(n()),p(e.validator.safeParse(Qo(t))),f(w=>w+1)},setChildren:w=>{o(w)}})),ts(t,ES.TYPE,w=>{w.detail.element===t&&d(w.detail.value)}),(0,_.useEffect)(()=>{let w=new MutationObserver(b=>{b.some(v=>{var y;return v.type==="attributes"&&((y=v.attributeName)==null?void 0:y.startsWith("data-"))})&&p(e.validator.safeParse(Qo(t)))});return w.observe(t,{attributes:!0}),()=>{w.disconnect()}},[t,e.validator]);let g=Ue(w=>{d(b=>{let v=ur.asUpdater(w)(b);return S0(v,b)||t.dispatchEvent(Hm(v,t)),v})}),x=(0,_.useMemo)(()=>{if(!e.functions)return{};let w={};for(let[b,v]of $r.entries(e.functions)){let{input:y,output:S}=v;w[b]=async(...j)=>{var A;yn(j.length<=1,`Plugin functions only supports a single argument. Called ${b}`);let k=Cl(t);yn(k,"Object ID should exist");let C=oa(),h=(A=Np.findElementThroughShadowDOMs(t))==null?void 0:A.id,T=h?Np.parse(h):null;if(T&&!C){let R=Ve.get(Ap),z=R.cellRuntime[T],E=R.cellData[T];if(Y2({executionTime:z.runElapsedTimeMs??E.lastExecutionTime,status:z.status,errored:z.errored,interrupted:z.interrupted,stopped:z.stopped}))throw new _S}else ue.warn(`Cell ID ${T} cannot be found`);let N=await Ej.request({args:vc(y,j[0]),functionName:b,namespace:k});if(N.status.code!=="ok")throw ue.error(N.status),Error(N.status.message||"Unknown error");return vc(S,N.return_value)}}return w},[e.functions,t,m]);return u.success?(0,l.jsx)(oC,{children:(0,l.jsx)("div",{className:`contents ${c}`,children:(0,l.jsx)(_.Suspense,{fallback:(0,l.jsx)("div",{}),children:(0,l.jsx)(ca,{children:e.render({setValue:g,value:s,data:u.data,children:i,host:t,functions:x})})})})}):R0(u.error,$r.mapValues(t.dataset,w=>typeof w=="string"?Tp(w):w),t.shadowRoot)}var P0=_.forwardRef(M0),yl=new Map,fc="__custom_marimo_element__";function gc(t){let e=class extends HTMLElement{constructor(){super();B(this,"mounted",!1);B(this,"pluginRef",(0,_.createRef)());B(this,"__type__",fc);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var n;(n=this.pluginRef.current)==null||n.setChildren(this.getChildren())})}connectedCallback(){this.isLightDOMChildOfMarimoElement()||(this.mounted||(yn(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=Lh.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))}disconnectedCallback(){var n;this.observer.disconnect(),(n=this.root)==null||n.unmount(),this.mounted&&(this.mounted=!1)}isLightDOMChildOfMarimoElement(){let n=this.parentElement;for(;n;){if(jl(n))return!0;n=n.parentElement}return!1}reset(){this.dispatchEvent(Hm(Tp(this.dataset.initialValue),this)),this.rerender()}rerender(){var n;(n=this.pluginRef.current)==null||n.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?qe({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((n,a)=>(0,l.jsx)(_.Fragment,{children:qe({html:n.outerHTML,alwaysSanitizeHtml:!1})},a))}async mountReactComponent(){this.mounted=!0,yn(this.root,"Root must be defined"),this.root.render((0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(fl,{children:(0,l.jsx)(P0,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>$2(this,Tj.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let n=this.shadowRoot;if(yn(n,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){ue.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let a=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:xc(i));for(let i of a){let o=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(o&&!yl.has(o)){let s=new CSSStyleSheet;try{s.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./home-page-De1W6q6f.js","./app-config-button-CCs8Jepz.js","./ai-model-dropdown-CjhUqXgj.js","./cells-Dnu4nDoy.js","./preload-helper-DdZsAcJe.js","./badge-DOX1Xxa9.js","./cn-DCUzRj2J.js","./clsx-Dz_KRrWq.js","./compiler-runtime-B3qBwwSJ.js","./react-Bj1aDYRI.js","./chunk-LvLJmgfZ.js","./jsx-runtime-BqBOg78p.js","./button-BbCh-29a.js","./useEventListener-DvoEXWke.js","./fullscreen-eipL3i3Y.js","./react-dom-CSu739Rf.js","./menu-items-DcP01QzW.js","./select-DZcFyKFQ.js","./dist-BdyjRhEt.js","./check-BH35Ndha.js","./createLucideIcon-D5guW7EU.js","./x-C-6liIBr.js","./tooltip-DTV9tlSr.js","./use-toast-ERM44-k9.js","./utils-Wvjk_Y4h.js","./useEvent-D91BmmQi.js","./invariant-BUdrueMv.js","./merge-_9WLTEyt.js","./_baseFor-DKD1r8uL.js","./isObject-DvLSfCY5.js","./zod-H_cgTO0M.js","./DeferredRequestRegistry-CzVJLtsG.js","./Deferred-DWBqOhWa.js","./uuid-D_zLHhNi.js","./config-C2lTvbuU.js","./constants-DMpttj8Q.js","./session-DGdfs0bJ.js","./requests-DIwGYs0l.js","./useLifecycle-DieWOfXE.js","./useNonce-DfoVjkkH.js","./useTheme-Kwyx4PvL.js","./arrays-DYDL-3-i.js","./strings-wdPMRf6Z.js","./capabilities-A_KhFcGV.js","./once-DRroIaBz.js","./createReducer-CI9qeK_X.js","./paths-SFhaqGlE.js","./dist-HlsDto3K.js","./dist-BrR4M-k3.js","./dist-CHcznzB-.js","./dist-DCqxOggh.js","./dist-BZr6MMV-.js","./dist-BU26XwgJ.js","./dist-COs9gIu5.js","./dist-DkA__6UI.js","./dist-C9ZB41s2.js","./stex-lcoTi-7o.js","./toDate-B5A0DFEz.js","./purify.es-DvRMX74T.js","./cjs-BRGiG41H.js","./debounce-DhnxH9Rh.js","./now-CsYTPAhW.js","./isSymbol-BT6B8Bon.js","./database-zap-kIkTfzTX.js","./main-B0OX4z33.js","./cells-jmgGt1lS.css","./spinner-UuZAUjoP.js","./renderShortcut-DK-VjfaX.js","./dropdown-menu-CR7cnzLX.js","./chevron-right-CG5QYXYk.js","./kbd-BJB2rf7K.js","./multi-map-CUuNtzHt.js","./alert-DrHguQlr.js","./card-BFWJLptH.js","./dialog-DqOQT_n4.js","./alert-dialog-BqFLkbUc.js","./textarea-BBTcSr-i.js","./label-xHqFtfdz.js","./useDebounce-_BZcy6gx.js","./input-CVE-gIjt.js","./numbers-mY4EY0yG.js","./useNumberFormatter-CW4V-fpE.js","./context-C1Tm_47t.js","./SSRProvider-BIDQNg9Q.js","./usePress-jH2RfcUG.js","./links-B8WzCnbo.js","./popover-Bz_0Vkyf.js","./switch-BtkQp293.js","./table-DQE9hQzM.js","./useHotkey-C04CW11R.js","./useAsyncData-C5i0IRVM.js","./error-banner-CLO6LFll.js","./errors-iwK4b4VF.js","./copy-Ch48HVPK.js","./RSPContexts-Bk1r00gJ.js","./get-C-qh_et5.js","./memoize-Tp7rARFe.js","./copy-BwrPA9zQ.js","./plus-CxkHs8QM.js","./refresh-cw-a_9k9BK7.js","./trash-2-BJLYnZpG.js","./triangle-alert-CJ0ZIqcz.js","./azure-DBVzcmvx.js","./Inputs-COvM_tLq.js","./Inputs-CuKU-ENz.css","./ImperativeModal-DEC1mXgV.js","./settings-SnYErNWQ.js","./ErrorBoundary-DyYDV0HI.js","./icons-8tfAri2V.js","./file-icons-B6DaZdP0.js","./file-headphone-B3fuktN0.js","./file-HTLbeC2b.js","./image-BIibSXT6.js","./file-name-input-g2H2sY2h.js","./tree-actions-DY8FUp3V.js","./ellipsis-vertical-CkwWkOQL.js","./pathUtils-vgBYIo5B.js","./semaphore-X3ApuO41.js","./extends-Dqvpuc10.js","./marimo-icons-CUuBQ0ae.js","./useInterval-CSOniNAx.js","./dates-DI1TvEEK.js","./en-US-C7vnqfgk.js","./isValid-DdlR4-BY.js","./links-Av1BIe0O.js","./maps-n3GaPJwv.js","./react-icons.esm--O4lBTlZ.js","./chart-no-axes-column-nqk474t8.js","./circle-play-CYXX2xu3.js","./external-link-BTNxSavU.js","./github-raQvpeuZ.js","./youtube-3lRHw8NU.js","./link-CoJxTwWE.js","./package-B8oXOUM-.js","./refresh-ccw-DLc784Sj.js","./run-page-vKjN7tOv.js","./panels-D7OK0dYk.js","./JsonOutput-BEbyS3oG.js","./utils-DQRuLEof.js","./vega-loader.browser-xq8miGHn.js","./precisionRound-NX56vp6K.js","./defaultLocale-DPBdGRrH.js","./defaultLocale-Lfi0pexn.js","./useInstallPackage-hKfTes-m.js","./MarimoErrorOutput-XWqnhvJ6.js","./cell-link-PQYiMZw1.js","./RenderHTML-B5r25cP5.js","./useRunCells-C0BPo9m1.js","./copy-icon-BdZPgXgo.js","./datasource-I-LOgxeP.js","./state-D9EoHCkz.js","./sparkles-CC9Bko6a.js","./markdown-renderer-BQ-BQLiJ.js","./html-to-image-D6SgvARi.js","./focus-BaOnnMs-.js","./LazyAnyLanguageCodeMirror-GdhQ07zA.js","./chunk-5FQGJX7Z-BSzccEgu.js","./micromark-factory-space-BUQpMdx2.js","./markdown-renderer-DdDKmWlR.css","./command-2NPJCYDa.js","./field-DNlzfMKW.js","./download-BO6T2USS.js","./useIframeCapabilities-DPVTppnD.js","./formats-BRq458WH.js","./emotion-is-prop-valid.esm-Dangy3Bv.js","./useDateFormatter-d3yglQmW.js","./table-6NxtGaCm.js","./ellipsis-KAhMaCIV.js","./message-circle-1YLdnr8A.js","./react-resizable-panels.browser.esm-Ce2ksurd.js","./JsonOutput-B7vuddcd.css","./layout-QNv3OC6l.js","./name-cell-input-bwfAyC0i.js","./esm-Cb2bnV6o.js","./objectWithoutPropertiesLoose-DoKw85w0.js","./name-cell-input-ujOhus_y.css","./radio-group-rsi1ibXY.js","./floating-outline-DbOtUfo-.js","./readonly-python-code-BKYj8PNf.js","./eye-off-BT-KOYV5.js","./process-output-9W-JyYdE.js","./esm-BGRsx_Fp.js","./dist-DGhKKgfN.js","./dist-Bm0v4xuz.js","./dist-CTvZbFwy.js","./dist-COz0Y8UW.js","./dist-CyKkoCYJ.js","./dist-Da-HT0I8.js","./dist-DxEuZTVa.js","./dist-Dc1gTRL9.js","./dist-EbJ2Bafg.js","./dist-BQxSimS-.js","./dist-CK56b5MF.js","./dist-DjGavUj4.js","./dist-Scx61XLd.js","./dist-FS1xQUNb.js","./apl-iXnrDoYq.js","./asciiarmor-CK-aFa78.js","./asn1-DWJdxrMP.js","./brainfuck-0bMZHpH_.js","./clike-5SQqmvx2.js","./clojure-B0kIwyv8.js","./cmake-CLXeINvH.js","./cobol-C9SsG--s.js","./coffeescript-UIQG6RnU.js","./commonlisp-BBPumpJY.js","./crystal-CGN1wsuY.js","./css-aQ-Krb7T.js","./cypher-DEE4_Yec.js","./d-CgJ8N-gL.js","./diff-B8e18dKs.js","./dtd-DtwMcoo9.js","./dylan-Be6i1K-V.js","./ecl-D5tlhe8s.js","./eiffel-8SQWO4xP.js","./elm-CtGe_7Jw.js","./erlang-CNwX3Z_M.js","./factor-DgyyQiBQ.js","./simple-mode-CZ1ts7NY.js","./forth-CaVwPSxM.js","./fortran-B28t9xoj.js","./gas-BSiJHAcz.js","./gherkin-1QurHPOF.js","./groovy-DFOLwJLv.js","./haskell-CUN2jxPH.js","./haxe-BYzKptPQ.js","./idl-cdmrQY5J.js","./javascript-l5LYdpfx.js","./julia-DxiTohY8.js","./livescript-BZkzGFkJ.js","./lua-rVV1vLen.js","./mathematica-DktJ0aJB.js","./mbox-Ch6IVA7h.js","./mirc-CdWws4At.js","./mllike-CB0tp4Bz.js","./modelica-DQGg_xsi.js","./mscgen-vDSxnAXy.js","./mumps-BzlVzIzl.js","./nsis-bDE8IZXy.js","./ntriples-BndMB6TK.js","./octave-DhnkL0CH.js","./oz-DbZmNL9y.js","./pascal-DhE1sEjD.js","./perl-BOZHK4Y3.js","./pig-eswHTOE9.js","./powershell-pm9G_Qg5.js","./properties-7VoeFdHR.js","./protobuf-BAsuCsmK.js","./pug-CcL3ml0F.js","./puppet-DUYPK8CV.js","./python-UQl3_T6H.js","./q-CnvA_jxT.js","./r-fM1OLzJB.js","./rpm-D62D_dq6.js","./ruby-DemvBD0m.js","./sas-CZjYQi4h.js","./scheme-nPNaP0Qp.js","./shell-BE2ANxN1.js","./sieve-DXFUN4C7.js","./smalltalk-DwXXlSAY.js","./sparql-CgejAdiJ.js","./stylus-CslB9TS3.js","./swift-5t7SQPo8.js","./tcl-Ddpe8YBc.js","./textile-D_Db33mq.js","./toml-CgkLq_pv.js","./troff-6nX9d05T.js","./ttcn-cfg-ByNDYolW.js","./ttcn-Dd4SMoHT.js","./turtle-LDF8uFGv.js","./vb-DaLxM60T.js","./vbscript-CwitZ57u.js","./velocity-D6bc4mrP.js","./verilog-CIyPdzYJ.js","./vhdl-DfyhlM4K.js","./webidl-C23hA3Le.js","./xquery-BAVQXrAf.js","./yacas-DrybVty2.js","./z80-8KI6AMtY.js","./code-xml-CZN6vNxu.js","./play-5vQl-hy9.js","./trash-wVOgGgQw.js","./prop-types-DVDiRdwc.js","./layout-BjXzDXoG.css","./types-DZmRsGZN.js","./state-BXNNuw9g.js","./events-CBm-hwqS.js","./globals-CpVAcN9Z.js","./share-oorMPghT.js","./blob-3_FN0u9S.js","./_baseSet-CxV9N1bc.js","./requests-DqJEWJ-Q.js","./runs-Cn-NiTzH.js","./request-registry-DKAymYdP.js","./state-dx303w7J.js","./ws-Cb8IUKlU.js","./panels-B4E3DsXP.css","./edit-page-BgGLD5aB.js","./loro_wasm_bg-C5TJxMR5.js","./useDeleteCell-DFahVcdW.js","./add-cell-with-ai-BbZkMqv2.js","./fileToBase64-BeYUTUzO.js","./cell-editor-D_oiWxRl.js","./useSplitCell-BN53wD86.js","./hooks-DZNVrVar.js","./dist-DP9Si-4r.js","./circle-check-C17zXg7L.js","./save-DZ5aail6.js","./cell-editor-Iey559K_.css","./useNotebookActions-BKENzoCk.js","./add-connection-dialog-Cw6_iYno.js","./write-secret-modal-Liv_9MXS.js","./form-CM8vYbSt.js","./circle-plus-BdiiIXu5.js","./useCellActionButton-CpNJthj4.js","./multi-icon-NVkxesVZ.js","./multi-icon-pwGWVz3d.css","./house-D2ldnAB9.js","./square-rACnnz-q.js","./CellStatus-DGBvmSvq.js","./ban-0fKnt00i.js","./workflow-CgnDnnoN.js","./CellStatus-2Psjnl5F.css","./RunButton-Dbak5hfa.js","./useDependencyPanelTab-BNbEyT1o.js","./panel-context-DQWeG2KK.js","./kiosk-mode-Czvj3vmL.js","./useBoolean-B8LMGUHl.js","./clipboard-paste-BPjPPEqD.js","./rotate-ccw-DoQtGgvU.js","./square-function-blYaQso8.js","./edit-page-Dstp9NQ5.css","./gallery-page-MrZHjySE.js","./chat-ui-D-Y7p_cT.js","./chat-display-DetTBnqK.js","./isEmpty-CXeoXbuc.js","./bot-message-square-DrbHk31W.js","./glide-data-editor-4Wql6uq7.js","./types-BYwxXaSY.js","./click-outside-container-C9uindjY.js","./dist-r-YlHvr1.js","./glide-data-editor-BrZJn3-g.css","./ConnectedDataExplorerComponent-D-boDGAP.js","./spec-D1ptWKg6.js","./react-vega-4VQqM03t.js","./linear-BHpZPQfO.js","./timer-B6DpdVnC.js","./init-DiAYA_Co.js","./time-Di7MbY-a.js","./range-Dk7lXDev.js","./treemap-Cli48Hv9.js","./path-D1tAOolS.js","./colors-CDxbWdyG.js","./ordinal-BKex0QZH.js","./arc-npelKso9.js","./math-CS811RUM.js","./array-DdrmtJsl.js","./step-vqKxn7TP.js","./line-BkpbatV-.js","./Plot-BDBiXfv_.js","./vega-component-C9fDGx86.js","./useDeepCompareMemoize-CWcgQCbT.js","./swiper-component-Da-gZjtJ.js","./swiper-component-a65-SW8d.css","./slides-MCbMDtlY.css","./ImageComparisonComponent-nhywlX8O.js","./mermaid-CZhfODkT.js","./dist-DQ3_8QJg.js","./chunk-JA3XYJ7Z-2W_JmZ4z.js","./src-D57-7XBB.js","./src-CvyFXpBy.js","./chunk-S3R3BYOJ-EEhIeeuI.js","./chunk-ABZYJK2D-pjI0V9vG.js","./chunk-ATLVNIR6-DMcOYQJi.js","./chunk-CVBHYZKI-DwNHftX6.js","./chunk-DR5Q36YT-DKTVLAfY.js","./chunk-EXTU4WIE-C7TYTuus.js","./chunk-HN2XXSSU-COpG_X4X.js","./chunk-JZLCHNYA-DdjotIam.js","./chunk-MI3HLSF2-D_z13ybc.js","./chunk-N4CR4FBY-Y37VEUfx.js","./chunk-QXUST7PY-CU78e3vp.js","./katex-Bci6q_jh.js","./katex-CgXtp7UB.js","./mhchem-BKhnkPip.js"])))=>i.map(i=>d[i]);
2
+ var F2=Object.defineProperty;var _p=_=>{throw TypeError(_)};var L2=(_,Pe,l)=>Pe in _?F2(_,Pe,{enumerable:!0,configurable:!0,writable:!0,value:l}):_[Pe]=l;var B=(_,Pe,l)=>L2(_,typeof Pe!="symbol"?Pe+"":Pe,l),Yo=(_,Pe,l)=>Pe.has(_)||_p("Cannot "+l);var $=(_,Pe,l)=>(Yo(_,Pe,"read from private field"),l?l.call(_):Pe.get(_)),Ge=(_,Pe,l)=>Pe.has(_)?_p("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(_):Pe.set(_,l),rt=(_,Pe,l,It)=>(Yo(_,Pe,"write to private field"),It?It.call(_,l):Pe.set(_,l),l),yr=(_,Pe,l)=>(Yo(_,Pe,"access private method"),l);var kp=(_,Pe,l,It)=>({set _(Nn){rt(_,Pe,Nn,l)},get _(){return $(_,Pe,It)}});import{r as O2,s as Br,t as Go}from"./chunk-LvLJmgfZ.js";import{c as fi,i as Ve,l as vn,n as Ue,s as gi,u as xi}from"./useEvent-D91BmmQi.js";import{t as V2}from"./react-Bj1aDYRI.js";import{$ as D2,Ai as Tp,Bi as H2,Bt as vi,Ci as B2,Hi as Wr,Ii as Np,J as W2,Mi as $2,Oi as U2,Pi as Ko,Q as q2,Qr as Y2,Ri as G2,S as K2,Si as Q2,Sr as X2,Ti as Z2,Vi as J2,X as ej,Y as tj,Z as rj,at as nj,b as Ap,br as aj,bt as ij,cr as Ip,dr as lj,et as oj,gi as sj,gr as wi,ji as Qo,ki as dj,nr as Xo,ot as cj,qi as Ep,rr as Rp,ut as uj,vi as pj,wi as mj,wr as hj,yr as zp,yt as fj,z as gj,zi as wn,__tla as xj}from"./cells-Dnu4nDoy.js";import{t as Mp}from"./react-dom-CSu739Rf.js";import{A as jr,B as Te,C as Yt,E as vj,F as Pp,I as pt,J as wj,N as O,O as bj,P as L,R as I,S as bn,T as V,U as yj,V as Cr,a as Fp,b as ye,h as jj,i as Lp,j as Cj,k as Ke,n as Op,r as Sj,s as Zo,t as Sr,v as _j,w as Q,x as Vp,z as Gt}from"./zod-H_cgTO0M.js";import{t as J}from"./compiler-runtime-B3qBwwSJ.js";import{t as kj}from"./get-C-qh_et5.js";import{t as bi}from"./pick-DqWUNly1.js";import{a as Tj,c as Nj,d as Jo,f as Aj,g as Ij,i as Ej,l as Rj,m as zj,o as _r,p as Mj,r as Dp,s as es,u as Hp,w as Pj,x as Fj,__tla as Lj}from"./state-BXNNuw9g.js";import{_ as ue,a as Oj,d as $r,o as Kt,t as ts,v as ur}from"./useEventListener-DvoEXWke.js";import{t as yn}from"./invariant-BUdrueMv.js";import{A as Vj,O as Dj,S as Hj,g as Bj,i as Wj,k as $j,l as Uj,t as qj,v as Yj,y as Gj}from"./utils-Wvjk_Y4h.js";import{r as rs}from"./constants-DMpttj8Q.js";import{S as dt,T as Kj,a as Qj,b as Bp,i as Wp,l as oa,r as ns,s as Xj,t as Zj,v as $p,w as Up}from"./config-C2lTvbuU.js";import{a as Jj,i as eC,n as tC,o as rC,r as nC,t as aC}from"./switch-BtkQp293.js";import{t as iC}from"./globals-CpVAcN9Z.js";import{t as yi}from"./ErrorBoundary-DyYDV0HI.js";import{n as as,t as ee}from"./cn-DCUzRj2J.js";import{t as lC}from"./jsx-runtime-BqBOg78p.js";import{C as ft,S as qp,_ as ji,a as oC,b as at,g as Yp,h as Ur,i as sC,p as dC,v as is,w as Gp,y as ls}from"./fullscreen-eipL3i3Y.js";import{o as cC,s as uC}from"./dist-BdyjRhEt.js";import{d as os,u as Kp}from"./menu-items-DcP01QzW.js";import{a as Qp,c as pC,i as Xp,l as mC,n as ss,o as hC,r as Zp,s as fC}from"./multi-map-CUuNtzHt.js";import{a as Jp,c as em,i as tm,l as rm,n as nm,s as am,t as im}from"./alert-dialog-BqFLkbUc.js";import{a as jn,c as rr,o as Ot,s as sa}from"./popover-Bz_0Vkyf.js";import{a as gC,c as kr,d as xC,f as vC,i as Vt,l as ds,m as lm,n as Tr,o as Ci,p as om,r as Cn,s as qr,t as Nr}from"./select-DZcFyKFQ.js";import{a as sm,c as wC,i as bC,m as dm,o as yC,p as jC,r as CC,t as SC}from"./dropdown-menu-CR7cnzLX.js";import{$ as cs,A as _C,C as kC,Ct as TC,E as NC,F as cm,G as um,I as us,J as AC,K as IC,L as EC,M as ps,N as RC,P as zC,R as MC,S as Yr,St as PC,T as FC,Tt as LC,X as OC,Y as VC,_ as DC,at as HC,bt as BC,ct as pm,et as ms,ft as hs,ht as mm,it as WC,j as $C,l as UC,lt as Si,mt as qC,nt as YC,pt as Gr,q as hm,r as GC,rt as fm,s as KC,st as QC,t as gm,tt as XC,u as ZC,ut as da,v as _i,w as JC,wt as e4,x as t4,y as pr,__tla as r4}from"./JsonOutput-BEbyS3oG.js";import{t as fs}from"./label-xHqFtfdz.js";import{h as xm,i as n4,l as a4,r as i4}from"./download-BO6T2USS.js";import{n as l4,t as o4}from"./radio-group-rsi1ibXY.js";import{a as gs,i as ca,n as xs,o as vs,r as ws,t as mr}from"./tooltip-DTV9tlSr.js";import{n as bs,t as Fe}from"./button-BbCh-29a.js";import{at as s4}from"./dist-BrR4M-k3.js";import{m as d4,o as c4,t as nr}from"./arrays-DYDL-3-i.js";import{n as ys,t as u4}from"./once-DRroIaBz.js";import"./cjs-BRGiG41H.js";import"./main-B0OX4z33.js";import"./useNonce-DfoVjkkH.js";import{n as Ar,t as js}from"./strings-wdPMRf6Z.js";import{n as p4}from"./requests-DIwGYs0l.js";import{t as Dt}from"./createLucideIcon-D5guW7EU.js";import{A as m4,C as vm,D as h4,O as f4,S as g4,_ as x4,a as wm,b as v4,c as bm,d as ua,f as ym,g as w4,h as b4,i as Cs,k as y4,l as j4,m as jm,n as C4,p as S4,r as hr,s as _4,t as k4,u as ar,v as T4,y as N4}from"./spec-D1ptWKg6.js";import{n as A4,r as I4,t as E4}from"./fileToBase64-BeYUTUzO.js";import{t as R4,__tla as z4}from"./LazyAnyLanguageCodeMirror-GdhQ07zA.js";import{i as M4,n as P4,o as F4}from"./useLifecycle-DieWOfXE.js";import{i as L4,n as O4,t as Cm}from"./useBoolean-B8LMGUHl.js";import{r as Sm,t as ki}from"./x-C-6liIBr.js";import{t as Ss}from"./chevron-right-CG5QYXYk.js";import{__tla as V4}from"./markdown-renderer-BQ-BQLiJ.js";import{t as D4}from"./code-xml-CZN6vNxu.js";import{t as _m}from"./copy-BwrPA9zQ.js";import{n as H4}from"./file-headphone-B3fuktN0.js";import{r as B4,t as W4}from"./file-icons-B6DaZdP0.js";import{a as km,c as pe,i as $4,l as Tm,n as Nm,o as U4,r as q4,s as Am,t as Y4,u as G4}from"./form-CM8vYbSt.js";import{t as K4}from"./house-D2ldnAB9.js";import{n as Ti,t as Ni}from"./spinner-UuZAUjoP.js";import{i as Q4,r as Im,t as _s}from"./readonly-python-code-BKYj8PNf.js";import{n as X4,t as Ai}from"./types-BYwxXaSY.js";import{t as Em}from"./plus-CxkHs8QM.js";import{t as Z4}from"./refresh-cw-a_9k9BK7.js";import{i as J4,n as eS,o as Rm,r as tS,t as ks}from"./input-CVE-gIjt.js";import{t as Ii}from"./square-function-blYaQso8.js";import{_ as lt,a as mt,c as ct,d as Kr,f as rS,g as zm,h as nS,i as aS,l as ut,n as iS,o as pa,p as Mm,r as lS,t as oS,u as gt,v as ir}from"./textarea-BBTcSr-i.js";import{a as sS,i as dS,r as cS,t as uS}from"./column-preview-DA6nf5_Q.js";import{t as pS}from"./square-rACnnz-q.js";import{t as mS}from"./trash-2-BJLYnZpG.js";import{t as Ei}from"./triangle-alert-CJ0ZIqcz.js";import{n as Pm,t as hS}from"./es-au8YY-8E.js";import{t as yt}from"./preload-helper-DdZsAcJe.js";import"./dist-DCqxOggh.js";import"./dist-BZr6MMV-.js";import"./dist-BU26XwgJ.js";import"./dist-COs9gIu5.js";import"./dist-DkA__6UI.js";import{n as fS,t as At}from"./use-toast-ERM44-k9.js";import{n as Fm,t as gS}from"./paths-SFhaqGlE.js";import{l as xS,r as vS,s as wS}from"./session-DGdfs0bJ.js";import{r as Sn}from"./useTheme-Kwyx4PvL.js";import"./purify.es-DvRMX74T.js";import"./dates-DI1TvEEK.js";import{t as Ts}from"./copy-icon-BdZPgXgo.js";import{n as bS,t as Ir}from"./context-C1Tm_47t.js";import{t as yS}from"./useNumberFormatter-CW4V-fpE.js";import{t as qe}from"./RenderHTML-B5r25cP5.js";import{n as jS,t as Lm}from"./useDebounce-_BZcy6gx.js";import{i as _n,r as CS}from"./numbers-mY4EY0yG.js";import{t as SS}from"./ImperativeModal-DEC1mXgV.js";import"./share-oorMPghT.js";import{n as Om,r as Vm,t as _S}from"./errors-iwK4b4VF.js";import{a as Dm,n as kS,o as TS,r as NS,t as AS}from"./utils-DQRuLEof.js";import"./vega-loader.browser-xq8miGHn.js";import"./defaultLocale-DPBdGRrH.js";import"./defaultLocale-Lfi0pexn.js";import{a as IS}from"./react-icons.esm--O4lBTlZ.js";import{a as Hm,i as ES,n as kn,t as RS}from"./events-CBm-hwqS.js";import{n as zS,r as Ns,t as Ri}from"./alert-DrHguQlr.js";import{n as ma,t as Qr}from"./error-banner-CLO6LFll.js";import{n as Ht}from"./useAsyncData-C5i0IRVM.js";import{a as Bm,c as MS,o as PS,r as FS,s as LS,t as Wm}from"./command-2NPJCYDa.js";import{__tla as OS}from"./chunk-5FQGJX7Z-BSzccEgu.js";import"./html-to-image-D6SgvARi.js";import{a as VS,o as DS}from"./focus-BaOnnMs-.js";import{a as $m,i as As,n as Is,o as Tn,r as Xr,t as Es}from"./table-DQE9hQzM.js";import"./react-resizable-panels.browser.esm-Ce2ksurd.js";import{t as Um}from"./renderShortcut-DK-VjfaX.js";import{t as HS}from"./bundle.esm-BXIlAZ6T.js";import{n as BS}from"./icons-8tfAri2V.js";import"./esm-Cb2bnV6o.js";import{a as WS,i as $S,n as US,o as qS,t as qm}from"./components-zB5yT_R8.js";import{t as Er}from"./useDeepCompareMemoize-CWcgQCbT.js";import{t as YS}from"./pathUtils-vgBYIo5B.js";import{i as GS,n as KS,r as QS}from"./floating-outline-DbOtUfo-.js";Promise.all([(()=>{try{return xj}catch{}})(),(()=>{try{return Lj}catch{}})(),(()=>{try{return r4}catch{}})(),(()=>{try{return z4}catch{}})(),(()=>{try{return V4}catch{}})(),(()=>{try{return OS}catch{}})()]).then(async()=>{var vt,ta,Ie,Oe,mn,hn,fn,ra,Ft,Mi,zs,Ms,Vr,wt,na,Dr,gn,aa,xn,ia,di,la,ci,ui,pi,mi,yp;(function(){let t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(let n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(let a of n)if(a.type==="childList")for(let i of a.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function e(n){let a={};return n.integrity&&(a.integrity=n.integrity),n.referrerPolicy&&(a.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?a.credentials="include":n.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(n){if(n.ep)return;n.ep=!0;let a=e(n);fetch(n.href,a)}})();var _=Br(V2(),1),Pe=Br(Mp(),1),l=Br(lC(),1),It="NavigationMenu",[Nn,Ps,Ym]=os(It),[Pi,Gm,Km]=os(It),[Fi,XS]=qp(It,[Ym,Km]),[Qm,Et]=Fi(It),[Xm,Zm]=Fi(It),Fs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:a,defaultValue:i,delayDuration:o=200,skipDelayDuration:s=300,orientation:d="horizontal",dir:c,...u}=t,[p,m]=_.useState(null),f=Kt(e,T=>m(T)),g=Kp(c),x=_.useRef(0),w=_.useRef(0),b=_.useRef(0),[v,y]=_.useState(!0),[S,j]=is({prop:n,onChange:T=>{let N=T!=="",A=s>0;N?(window.clearTimeout(b.current),A&&y(!1)):(window.clearTimeout(b.current),b.current=window.setTimeout(()=>y(!0),s)),a==null||a(T)},defaultProp:i??"",caller:It}),k=_.useCallback(()=>{window.clearTimeout(w.current),w.current=window.setTimeout(()=>j(""),150)},[j]),C=_.useCallback(T=>{window.clearTimeout(w.current),j(T)},[j]),h=_.useCallback(T=>{S===T?window.clearTimeout(w.current):x.current=window.setTimeout(()=>{window.clearTimeout(w.current),j(T)},o)},[S,j,o]);return _.useEffect(()=>()=>{window.clearTimeout(x.current),window.clearTimeout(w.current),window.clearTimeout(b.current)},[]),(0,l.jsx)(Ls,{scope:r,isRootMenu:!0,value:S,dir:g,orientation:d,rootNavigationMenu:p,onTriggerEnter:T=>{window.clearTimeout(x.current),v?h(T):C(T)},onTriggerLeave:()=>{window.clearTimeout(x.current),k()},onContentEnter:()=>window.clearTimeout(w.current),onContentLeave:k,onItemSelect:T=>{j(N=>N===T?"":T)},onItemDismiss:()=>j(""),children:(0,l.jsx)(ft.nav,{"aria-label":"Main","data-orientation":d,dir:g,...u,ref:f})})});Fs.displayName=It;var Li="NavigationMenuSub",Jm=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,onValueChange:a,defaultValue:i,orientation:o="horizontal",...s}=t,d=Et(Li,r),[c,u]=is({prop:n,onChange:a,defaultProp:i??"",caller:Li});return(0,l.jsx)(Ls,{scope:r,isRootMenu:!1,value:c,dir:d.dir,orientation:o,rootNavigationMenu:d.rootNavigationMenu,onTriggerEnter:p=>u(p),onItemSelect:p=>u(p),onItemDismiss:()=>u(""),children:(0,l.jsx)(ft.div,{"data-orientation":o,...s,ref:e})})});Jm.displayName=Li;var Ls=t=>{let{scope:e,isRootMenu:r,rootNavigationMenu:n,dir:a,orientation:i,children:o,value:s,onItemSelect:d,onItemDismiss:c,onTriggerEnter:u,onTriggerLeave:p,onContentEnter:m,onContentLeave:f}=t,[g,x]=_.useState(null),[w,b]=_.useState(new Map),[v,y]=_.useState(null);return(0,l.jsx)(Qm,{scope:e,isRootMenu:r,rootNavigationMenu:n,value:s,previousValue:lm(s),baseId:Yp(),dir:a,orientation:i,viewport:g,onViewportChange:x,indicatorTrack:v,onIndicatorTrackChange:y,onTriggerEnter:Ur(u),onTriggerLeave:Ur(p),onContentEnter:Ur(m),onContentLeave:Ur(f),onItemSelect:Ur(d),onItemDismiss:Ur(c),onViewportContentChange:_.useCallback((S,j)=>{b(k=>(k.set(S,j),new Map(k)))},[]),onViewportContentRemove:_.useCallback(S=>{b(j=>j.has(S)?(j.delete(S),new Map(j)):j)},[]),children:(0,l.jsx)(Nn.Provider,{scope:e,children:(0,l.jsx)(Xm,{scope:e,items:w,children:o})})})},Os="NavigationMenuList",Vs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(Os,r),i=(0,l.jsx)(ft.ul,{"data-orientation":a.orientation,...n,ref:e});return(0,l.jsx)(ft.div,{style:{position:"relative"},ref:a.onIndicatorTrackChange,children:(0,l.jsx)(Nn.Slot,{scope:r,children:a.isRootMenu?(0,l.jsx)(Qs,{asChild:!0,children:i}):i})})});Vs.displayName=Os;var Ds="NavigationMenuItem",[eh,Hs]=Fi(Ds),Bs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,...a}=t,i=Yp(),o=n||i||"LEGACY_REACT_AUTO_VALUE",s=_.useRef(null),d=_.useRef(null),c=_.useRef(null),u=_.useRef(()=>{}),p=_.useRef(!1),m=_.useCallback((g="start")=>{if(s.current){u.current();let x=Hi(s.current);x.length&&Bi(g==="start"?x:x.reverse())}},[]),f=_.useCallback(()=>{if(s.current){let g=Hi(s.current);g.length&&(u.current=oh(g))}},[]);return(0,l.jsx)(eh,{scope:r,value:o,triggerRef:d,contentRef:s,focusProxyRef:c,wasEscapeCloseRef:p,onEntryKeyDown:m,onFocusProxyEnter:m,onRootContentClose:f,onContentFocusOutside:f,children:(0,l.jsx)(ft.li,{...a,ref:e})})});Bs.displayName=Ds;var Oi="NavigationMenuTrigger",Ws=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,disabled:n,...a}=t,i=Et(Oi,t.__scopeNavigationMenu),o=Hs(Oi,t.__scopeNavigationMenu),s=_.useRef(null),d=Kt(s,o.triggerRef,e),c=Js(i.baseId,o.value),u=ed(i.baseId,o.value),p=_.useRef(!1),m=_.useRef(!1),f=o.value===i.value;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(Nn.ItemSlot,{scope:r,value:o.value,children:(0,l.jsx)(Zs,{asChild:!0,children:(0,l.jsx)(ft.button,{id:c,disabled:n,"data-disabled":n?"":void 0,"data-state":$i(f),"aria-expanded":f,"aria-controls":u,...a,ref:d,onPointerEnter:at(t.onPointerEnter,()=>{m.current=!1,o.wasEscapeCloseRef.current=!1}),onPointerMove:at(t.onPointerMove,fa(()=>{n||m.current||o.wasEscapeCloseRef.current||p.current||(i.onTriggerEnter(o.value),p.current=!0)})),onPointerLeave:at(t.onPointerLeave,fa(()=>{n||(i.onTriggerLeave(),p.current=!1)})),onClick:at(t.onClick,()=>{i.onItemSelect(o.value),m.current=f}),onKeyDown:at(t.onKeyDown,g=>{let x={horizontal:"ArrowDown",vertical:i.dir==="rtl"?"ArrowLeft":"ArrowRight"}[i.orientation];f&&g.key===x&&(o.onEntryKeyDown(),g.preventDefault())})})})}),f&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(uC,{"aria-hidden":!0,tabIndex:0,ref:o.focusProxyRef,onFocus:g=>{let x=o.contentRef.current,w=g.relatedTarget,b=w===s.current,v=x==null?void 0:x.contains(w);(b||!v)&&o.onFocusProxyEnter(b?"start":"end")}}),i.viewport&&(0,l.jsx)("span",{"aria-owns":u})]})]})});Ws.displayName=Oi;var th="NavigationMenuLink",$s="navigationMenu.linkSelect",Us=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,active:n,onSelect:a,...i}=t;return(0,l.jsx)(Zs,{asChild:!0,children:(0,l.jsx)(ft.a,{"data-active":n?"":void 0,"aria-current":n?"page":void 0,...i,ref:e,onClick:at(t.onClick,o=>{let s=o.target,d=new CustomEvent($s,{bubbles:!0,cancelable:!0});s.addEventListener($s,c=>a==null?void 0:a(c),{once:!0}),Gp(s,d),!d.defaultPrevented&&!o.metaKey&&Gp(s,new CustomEvent(ha,{bubbles:!0,cancelable:!0}))},{checkForDefaultPrevented:!1})})})});Us.displayName=th;var Vi="NavigationMenuIndicator",qs=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=Et(Vi,t.__scopeNavigationMenu),i=!!a.value;return a.indicatorTrack?Pe.createPortal((0,l.jsx)(ji,{present:r||i,children:(0,l.jsx)(rh,{...n,ref:e})}),a.indicatorTrack):null});qs.displayName=Vi;var rh=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(Vi,r),i=Ps(r),[o,s]=_.useState(null),[d,c]=_.useState(null),u=a.orientation==="horizontal",p=!!a.value;_.useEffect(()=>{var g;let f=(g=i().find(x=>x.value===a.value))==null?void 0:g.ref.current;f&&s(f)},[i,a.value]);let m=()=>{o&&c({size:u?o.offsetWidth:o.offsetHeight,offset:u?o.offsetLeft:o.offsetTop})};return Wi(o,m),Wi(a.indicatorTrack,m),d?(0,l.jsx)(ft.div,{"aria-hidden":!0,"data-state":p?"visible":"hidden","data-orientation":a.orientation,...n,ref:e,style:{position:"absolute",...u?{left:0,width:d.size+"px",transform:`translateX(${d.offset}px)`}:{top:0,height:d.size+"px",transform:`translateY(${d.offset}px)`},...n.style}}):null}),Zr="NavigationMenuContent",Ys=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=Et(Zr,t.__scopeNavigationMenu),i=Hs(Zr,t.__scopeNavigationMenu),o=Kt(i.contentRef,e),s=i.value===a.value,d={value:i.value,triggerRef:i.triggerRef,focusProxyRef:i.focusProxyRef,wasEscapeCloseRef:i.wasEscapeCloseRef,onContentFocusOutside:i.onContentFocusOutside,onRootContentClose:i.onRootContentClose,...n};return a.viewport?(0,l.jsx)(nh,{forceMount:r,...d,ref:o}):(0,l.jsx)(ji,{present:r||s,children:(0,l.jsx)(Gs,{"data-state":$i(s),...d,ref:o,onPointerEnter:at(t.onPointerEnter,a.onContentEnter),onPointerLeave:at(t.onPointerLeave,fa(a.onContentLeave)),style:{pointerEvents:!s&&a.isRootMenu?"none":void 0,...d.style}})})});Ys.displayName=Zr;var nh=_.forwardRef((t,e)=>{let{onViewportContentChange:r,onViewportContentRemove:n}=Et(Zr,t.__scopeNavigationMenu);return ls(()=>{r(t.value,{ref:e,...t})},[t,e,r]),ls(()=>()=>n(t.value),[t.value,n]),null}),ha="navigationMenu.rootContentDismiss",Gs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,value:n,triggerRef:a,focusProxyRef:i,wasEscapeCloseRef:o,onRootContentClose:s,onContentFocusOutside:d,...c}=t,u=Et(Zr,r),p=_.useRef(null),m=Kt(p,e),f=Js(u.baseId,n),g=ed(u.baseId,n),x=Ps(r),w=_.useRef(null),{onItemDismiss:b}=u;_.useEffect(()=>{let y=p.current;if(u.isRootMenu&&y){let S=()=>{var j;b(),s(),y.contains(document.activeElement)&&((j=a.current)==null||j.focus())};return y.addEventListener(ha,S),()=>y.removeEventListener(ha,S)}},[u.isRootMenu,t.value,a,b,s]);let v=_.useMemo(()=>{let y=x().map(T=>T.value);u.dir==="rtl"&&y.reverse();let S=y.indexOf(u.value),j=y.indexOf(u.previousValue),k=n===u.value,C=j===y.indexOf(n);if(!k&&!C)return w.current;let h=(()=>{if(S!==j){if(k&&j!==-1)return S>j?"from-end":"from-start";if(C&&S!==-1)return S>j?"to-start":"to-end"}return null})();return w.current=h,h},[u.previousValue,u.value,u.dir,x,n]);return(0,l.jsx)(Qs,{asChild:!0,children:(0,l.jsx)(dC,{id:g,"aria-labelledby":f,"data-motion":v,"data-orientation":u.orientation,...c,ref:m,disableOutsidePointerEvents:!1,onDismiss:()=>{var S;let y=new Event(ha,{bubbles:!0,cancelable:!0});(S=p.current)==null||S.dispatchEvent(y)},onFocusOutside:at(t.onFocusOutside,y=>{var j;d();let S=y.target;(j=u.rootNavigationMenu)!=null&&j.contains(S)&&y.preventDefault()}),onPointerDownOutside:at(t.onPointerDownOutside,y=>{var C;let S=y.target,j=x().some(h=>{var T;return(T=h.ref.current)==null?void 0:T.contains(S)}),k=u.isRootMenu&&((C=u.viewport)==null?void 0:C.contains(S));(j||k||!u.isRootMenu)&&y.preventDefault()}),onKeyDown:at(t.onKeyDown,y=>{var j;let S=y.altKey||y.ctrlKey||y.metaKey;if(y.key==="Tab"&&!S){let k=Hi(y.currentTarget),C=document.activeElement,h=k.findIndex(T=>T===C);Bi(y.shiftKey?k.slice(0,h).reverse():k.slice(h+1,k.length))?y.preventDefault():(j=i.current)==null||j.focus()}}),onEscapeKeyDown:at(t.onEscapeKeyDown,y=>{o.current=!0})})})}),Di="NavigationMenuViewport",Ks=_.forwardRef((t,e)=>{let{forceMount:r,...n}=t,a=!!Et(Di,t.__scopeNavigationMenu).value;return(0,l.jsx)(ji,{present:r||a,children:(0,l.jsx)(ah,{...n,ref:e})})});Ks.displayName=Di;var ah=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,children:n,...a}=t,i=Et(Di,r),o=Kt(e,i.onViewportChange),s=Zm(Zr,t.__scopeNavigationMenu),[d,c]=_.useState(null),[u,p]=_.useState(null),m=d?(d==null?void 0:d.width)+"px":void 0,f=d?(d==null?void 0:d.height)+"px":void 0,g=!!i.value,x=g?i.value:i.previousValue;return Wi(u,()=>{u&&c({width:u.offsetWidth,height:u.offsetHeight})}),(0,l.jsx)(ft.div,{"data-state":$i(g),"data-orientation":i.orientation,...a,ref:o,style:{pointerEvents:!g&&i.isRootMenu?"none":void 0,"--radix-navigation-menu-viewport-width":m,"--radix-navigation-menu-viewport-height":f,...a.style},onPointerEnter:at(t.onPointerEnter,i.onContentEnter),onPointerLeave:at(t.onPointerLeave,fa(i.onContentLeave)),children:Array.from(s.items).map(([w,{ref:b,forceMount:v,...y}])=>{let S=x===w;return(0,l.jsx)(ji,{present:v||S,children:(0,l.jsx)(Gs,{...y,ref:Oj(b,j=>{S&&j&&p(j)})})},w)})})}),ih="FocusGroup",Qs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Et(ih,r);return(0,l.jsx)(Pi.Provider,{scope:r,children:(0,l.jsx)(Pi.Slot,{scope:r,children:(0,l.jsx)(ft.div,{dir:a.dir,...n,ref:e})})})}),Xs=["ArrowRight","ArrowLeft","ArrowUp","ArrowDown"],lh="FocusGroupItem",Zs=_.forwardRef((t,e)=>{let{__scopeNavigationMenu:r,...n}=t,a=Gm(r),i=Et(lh,r);return(0,l.jsx)(Pi.ItemSlot,{scope:r,children:(0,l.jsx)(ft.button,{...n,ref:e,onKeyDown:at(t.onKeyDown,o=>{if(["Home","End",...Xs].includes(o.key)){let s=a().map(d=>d.ref.current);if([i.dir==="rtl"?"ArrowRight":"ArrowLeft","ArrowUp","End"].includes(o.key)&&s.reverse(),Xs.includes(o.key)){let d=s.indexOf(o.currentTarget);s=s.slice(d+1)}setTimeout(()=>Bi(s)),o.preventDefault()}})})})});function Hi(t){let e=[],r=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{let a=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||a?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)e.push(r.currentNode);return e}function Bi(t){let e=document.activeElement;return t.some(r=>r===e?!0:(r.focus(),document.activeElement!==e))}function oh(t){return t.forEach(e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}),()=>{t.forEach(e=>{let r=e.dataset.tabindex;e.setAttribute("tabindex",r)})}}function Wi(t,e){let r=Ur(e);ls(()=>{let n=0;if(t){let a=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return a.observe(t),()=>{window.cancelAnimationFrame(n),a.unobserve(t)}}},[t,r])}function $i(t){return t?"open":"closed"}function Js(t,e){return`${t}-trigger-${e}`}function ed(t,e){return`${t}-content-${e}`}function fa(t){return e=>e.pointerType==="mouse"?t(e):void 0}var td=Fs,rd=Vs,sh=Bs,nd=Ws,dh=Us,ad=qs,id=Ys,ld=Ks,ch=O2({Range:()=>el,Root:()=>xa,Slider:()=>qi,SliderRange:()=>Ki,SliderThumb:()=>Xi,SliderTrack:()=>Yi,Thumb:()=>va,Track:()=>Ji,createSliderScope:()=>mh},1),od=["PageUp","PageDown"],sd=["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"],dd={"from-left":["Home","PageDown","ArrowDown","ArrowLeft"],"from-right":["Home","PageDown","ArrowDown","ArrowRight"],"from-bottom":["Home","PageDown","ArrowDown","ArrowLeft"],"from-top":["Home","PageDown","ArrowUp","ArrowLeft"]},Jr="Slider",[Ui,uh,ph]=os(Jr),[cd,mh]=qp(Jr,[ph]),[hh,ga]=cd(Jr),qi=_.forwardRef((t,e)=>{let{name:r,min:n=0,max:a=100,step:i=1,orientation:o="horizontal",disabled:s=!1,minStepsBetweenThumbs:d=0,defaultValue:c=[n],value:u,onValueChange:p=()=>{},onValueCommit:m=()=>{},inverted:f=!1,form:g,...x}=t,w=_.useRef(new Set),b=_.useRef(0),v=o==="horizontal"?fh:gh,[y=[],S]=is({prop:u,defaultProp:c,onChange:N=>{var A;(A=[...w.current][b.current])==null||A.focus(),p(N)}}),j=_.useRef(y);function k(N){T(N,yh(y,N))}function C(N){T(N,b.current)}function h(){let N=j.current[b.current];y[b.current]!==N&&m(y)}function T(N,A,{commit:R}={commit:!1}){let z=_h(i),E=om(kh(Math.round((N-n)/i)*i+n,z),[n,a]);S((P=[])=>{let M=wh(P,E,A);if(Sh(M,d*i)){b.current=M.indexOf(E);let F=String(M)!==String(P);return F&&R&&m(M),F?M:P}else return P})}return(0,l.jsx)(hh,{scope:t.__scopeSlider,name:r,disabled:s,min:n,max:a,valueIndexToChangeRef:b,thumbs:w.current,values:y,orientation:o,form:g,children:(0,l.jsx)(Ui.Provider,{scope:t.__scopeSlider,children:(0,l.jsx)(Ui.Slot,{scope:t.__scopeSlider,children:(0,l.jsx)(v,{"aria-disabled":s,"data-disabled":s?"":void 0,...x,ref:e,onPointerDown:at(x.onPointerDown,()=>{s||(j.current=y)}),min:n,max:a,inverted:f,onSlideStart:s?void 0:k,onSlideMove:s?void 0:C,onSlideEnd:s?void 0:h,onHomeKeyDown:()=>!s&&T(n,0,{commit:!0}),onEndKeyDown:()=>!s&&T(a,y.length-1,{commit:!0}),onStepKeyDown:({event:N,direction:A})=>{if(!s){let R=od.includes(N.key)||N.shiftKey&&sd.includes(N.key)?10:1,z=b.current,E=y[z];T(E+i*R*A,z,{commit:!0})}}})})})})});qi.displayName=Jr;var[ud,pd]=cd(Jr,{startEdge:"left",endEdge:"right",size:"width",direction:1}),fh=_.forwardRef((t,e)=>{let{min:r,max:n,dir:a,inverted:i,onSlideStart:o,onSlideMove:s,onSlideEnd:d,onStepKeyDown:c,...u}=t,[p,m]=_.useState(null),f=Kt(e,y=>m(y)),g=_.useRef(void 0),x=Kp(a),w=x==="ltr",b=w&&!i||!w&&i;function v(y){let S=g.current||p.getBoundingClientRect(),j=Zi([0,S.width],b?[r,n]:[n,r]);return g.current=S,j(y-S.left)}return(0,l.jsx)(ud,{scope:t.__scopeSlider,startEdge:b?"left":"right",endEdge:b?"right":"left",direction:b?1:-1,size:"width",children:(0,l.jsx)(md,{dir:x,"data-orientation":"horizontal",...u,ref:f,style:{...u.style,"--radix-slider-thumb-transform":"translateX(-50%)"},onSlideStart:y=>{let S=v(y.clientX);o==null||o(S)},onSlideMove:y=>{let S=v(y.clientX);s==null||s(S)},onSlideEnd:()=>{g.current=void 0,d==null||d()},onStepKeyDown:y=>{let S=dd[b?"from-left":"from-right"].includes(y.key);c==null||c({event:y,direction:S?-1:1})}})})}),gh=_.forwardRef((t,e)=>{let{min:r,max:n,inverted:a,onSlideStart:i,onSlideMove:o,onSlideEnd:s,onStepKeyDown:d,...c}=t,u=_.useRef(null),p=Kt(e,u),m=_.useRef(void 0),f=!a;function g(x){let w=m.current||u.current.getBoundingClientRect(),b=Zi([0,w.height],f?[n,r]:[r,n]);return m.current=w,b(x-w.top)}return(0,l.jsx)(ud,{scope:t.__scopeSlider,startEdge:f?"bottom":"top",endEdge:f?"top":"bottom",size:"height",direction:f?1:-1,children:(0,l.jsx)(md,{"data-orientation":"vertical",...c,ref:p,style:{...c.style,"--radix-slider-thumb-transform":"translateY(50%)"},onSlideStart:x=>{let w=g(x.clientY);i==null||i(w)},onSlideMove:x=>{let w=g(x.clientY);o==null||o(w)},onSlideEnd:()=>{m.current=void 0,s==null||s()},onStepKeyDown:x=>{let w=dd[f?"from-bottom":"from-top"].includes(x.key);d==null||d({event:x,direction:w?-1:1})}})})}),md=_.forwardRef((t,e)=>{let{__scopeSlider:r,onSlideStart:n,onSlideMove:a,onSlideEnd:i,onHomeKeyDown:o,onEndKeyDown:s,onStepKeyDown:d,...c}=t,u=ga(Jr,r);return(0,l.jsx)(ft.span,{...c,ref:e,onKeyDown:at(t.onKeyDown,p=>{p.key==="Home"?(o(p),p.preventDefault()):p.key==="End"?(s(p),p.preventDefault()):od.concat(sd).includes(p.key)&&(d(p),p.preventDefault())}),onPointerDown:at(t.onPointerDown,p=>{let m=p.target;m.setPointerCapture(p.pointerId),p.preventDefault(),u.thumbs.has(m)?m.focus():n(p)}),onPointerMove:at(t.onPointerMove,p=>{p.target.hasPointerCapture(p.pointerId)&&a(p)}),onPointerUp:at(t.onPointerUp,p=>{let m=p.target;m.hasPointerCapture(p.pointerId)&&(m.releasePointerCapture(p.pointerId),i(p))})})}),hd="SliderTrack",Yi=_.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,a=ga(hd,r);return(0,l.jsx)(ft.span,{"data-disabled":a.disabled?"":void 0,"data-orientation":a.orientation,...n,ref:e})});Yi.displayName=hd;var Gi="SliderRange",Ki=_.forwardRef((t,e)=>{let{__scopeSlider:r,...n}=t,a=ga(Gi,r),i=pd(Gi,r),o=Kt(e,_.useRef(null)),s=a.values.length,d=a.values.map(p=>gd(p,a.min,a.max)),c=s>1?Math.min(...d):0,u=100-Math.max(...d);return(0,l.jsx)(ft.span,{"data-orientation":a.orientation,"data-disabled":a.disabled?"":void 0,...n,ref:o,style:{...t.style,[i.startEdge]:c+"%",[i.endEdge]:u+"%"}})});Ki.displayName=Gi;var Qi="SliderThumb",Xi=_.forwardRef((t,e)=>{let r=uh(t.__scopeSlider),[n,a]=_.useState(null),i=Kt(e,s=>a(s)),o=_.useMemo(()=>n?r().findIndex(s=>s.ref.current===n):-1,[r,n]);return(0,l.jsx)(xh,{...t,ref:i,index:o})}),xh=_.forwardRef((t,e)=>{let{__scopeSlider:r,index:n,name:a,...i}=t,o=ga(Qi,r),s=pd(Qi,r),[d,c]=_.useState(null),u=Kt(e,v=>c(v)),p=d?o.form||!!d.closest("form"):!0,m=cC(d),f=o.values[n],g=f===void 0?0:gd(f,o.min,o.max),x=bh(n,o.values.length),w=m==null?void 0:m[s.size],b=w?jh(w,g,s.direction):0;return _.useEffect(()=>{if(d)return o.thumbs.add(d),()=>{o.thumbs.delete(d)}},[d,o.thumbs]),(0,l.jsxs)("span",{style:{transform:"var(--radix-slider-thumb-transform)",position:"absolute",[s.startEdge]:`calc(${g}% + ${b}px)`},children:[(0,l.jsx)(Ui.ItemSlot,{scope:t.__scopeSlider,children:(0,l.jsx)(ft.span,{role:"slider","aria-label":t["aria-label"]||x,"aria-valuemin":o.min,"aria-valuenow":f,"aria-valuemax":o.max,"aria-orientation":o.orientation,"data-orientation":o.orientation,"data-disabled":o.disabled?"":void 0,tabIndex:o.disabled?void 0:0,...i,ref:u,style:f===void 0?{display:"none"}:t.style,onFocus:at(t.onFocus,()=>{o.valueIndexToChangeRef.current=n})})}),p&&(0,l.jsx)(fd,{name:a??(o.name?o.name+(o.values.length>1?"[]":""):void 0),form:o.form,value:f},n)]})});Xi.displayName=Qi;var vh="RadioBubbleInput",fd=_.forwardRef(({__scopeSlider:t,value:e,...r},n)=>{let a=_.useRef(null),i=Kt(a,n),o=lm(e);return _.useEffect(()=>{let s=a.current;if(!s)return;let d=window.HTMLInputElement.prototype,c=Object.getOwnPropertyDescriptor(d,"value").set;if(o!==e&&c){let u=new Event("input",{bubbles:!0});c.call(s,e),s.dispatchEvent(u)}},[o,e]),(0,l.jsx)(ft.input,{style:{display:"none"},...r,ref:i,defaultValue:e})});fd.displayName=vh;function wh(t=[],e,r){let n=[...t];return n[r]=e,n.sort((a,i)=>a-i)}function gd(t,e,r){return om(100/(r-e)*(t-e),[0,100])}function bh(t,e){if(e>2)return`Value ${t+1} of ${e}`;if(e===2)return["Minimum","Maximum"][t]}function yh(t,e){if(t.length===1)return 0;let r=t.map(a=>Math.abs(a-e)),n=Math.min(...r);return r.indexOf(n)}function jh(t,e,r){let n=t/2;return(n-Zi([0,50],[0,n])(e)*r)*r}function Ch(t){return t.slice(0,-1).map((e,r)=>t[r+1]-e)}function Sh(t,e){if(e>0){let r=Ch(t);return Math.min(...r)>=e}return!0}function Zi(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];let n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function _h(t){return(String(t).split(".")[1]||"").length}function kh(t,e){let r=10**e;return Math.round(t*r)/r}var xa=qi,Ji=Yi,el=Ki,va=Xi,Th=Dt("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"}]]),Nh=Dt("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"}]]),Ah=Dt("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"}]]),Ih=Dt("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"}]]),Eh=Dt("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"}]]),Rh=Dt("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"}]]),zh=Dt("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"}]]),Mh=Dt("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"}]]),Ph=Dt("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"}]]),xd=Dt("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"}]]),Fh=Dt("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"}]]),vd=Dt("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"}]]),Lh=Br(Ep(),1);const fr={INSERT:"insert",DELETE:"delete",SUBSTITUTE:"substitute",MATCH:"match"};function Oh(t,e,r){let n=t.length,a=e.length,i=Array.from({length:n+1},()=>Array.from({length:a+1}).fill(0));for(let c=0;c<=n;c++)i[c][0]=c;for(let c=0;c<=a;c++)i[0][c]=c;for(let c=1;c<=n;c++)for(let u=1;u<=a;u++)i[c][u]=r(t[c-1],e[u-1])?i[c-1][u-1]:1+Math.min(i[c-1][u],i[c][u-1],i[c-1][u-1]);let o=[],s=n,d=a;for(;s>0||d>0;)s>0&&d>0&&r(t[s-1],e[d-1])?(o.unshift({type:fr.MATCH,position:s-1}),s--,d--):s>0&&d>0&&i[s][d]===i[s-1][d-1]+1?(o.unshift({type:fr.SUBSTITUTE,position:s-1}),s--,d--):s>0&&i[s][d]===i[s-1][d]+1?(o.unshift({type:fr.DELETE,position:s-1}),s--):d>0&&i[s][d]===i[s][d-1]+1&&(o.unshift({type:fr.INSERT,position:s}),d--);return{distance:i[n][a],operations:o}}function Vh(t,e,r){let n=[],a=0;for(let i of e)switch(i.type){case fr.MATCH:n.push(t[a]),a++;break;case fr.DELETE:a++;break;case fr.INSERT:n.push(r);break;case fr.SUBSTITUTE:n.push(r),a++;break}return n}function Dh(t,e,r,n){let a=Oh(t,e,r);return{merged:Vh(t,a.operations,n),edits:a}}var wa=0,ba="";function tl(t){return t.id?t.id:t.name==="setup"?G2:Ko.create()}function Hh(t,e){let r=new Map,n=new Map;if(!t&&!e)return{cellIds:[],sessionCellData:r,notebookCellData:n};if(!t){let s=(e==null?void 0:e.cells.map(d=>tl(d)))||[];return{cellIds:s,sessionCellData:new Map(s.map((d,c)=>[d,null])),notebookCellData:new Map(s.map((d,c)=>[d,(e==null?void 0:e.cells[c])||wd()]))}}if(!e){let s=t.cells.map(d=>tl(d));return{cellIds:s,sessionCellData:new Map(s.map((d,c)=>[d,t.cells[c]])),notebookCellData:new Map(s.map(d=>[d,wd()]))}}let{merged:a,edits:i}=Dh(t.cells,e.cells,(s,d)=>{let c=s.code_hash;return c?d.code_hash===c:!1},bd());i.distance>0&&ue.warn("Session and notebook have different cells, attempted merge.");let o=[];for(let s=0;s<e.cells.length;s++){let d=e.cells[s];if(d){let c=tl(d);o.push(c);let u=a[s]||bd();u.id=c,r.set(c,u),n.set(c,d)}else ue.warn("Merged notebook cell is null at index",s)}return{cellIds:o,sessionCellData:r,notebookCellData:n}}function wd(){return{id:Ko.create(),name:ba,code:ba,code_hash:null,config:{column:null,disabled:!1,hide_code:!1}}}function bd(){return{id:Ko.create(),code_hash:null,console:[],outputs:[]}}function Bh(t,e){var r,n,a;return{id:t,name:e.name??ba,code:e.code??ba,edited:!1,lastCodeRun:null,lastExecutionTime:null,config:{column:((r=e.config)==null?void 0:r.column)??null,disabled:((n=e.config)==null?void 0:n.disabled)??!1,hide_code:((a=e.config)==null?void 0:a.hide_code)??!1},serializedEditorState:null}}function Wh(t){let e=gj();if(!t)return e;let r=t.outputs||[],n=r.find(i=>i.type==="data")||r.find(i=>i.type==="error")||r[0];if(n){if(n.type==="error")e.output={channel:"marimo-error",data:[{type:"unknown",msg:n.evalue}],mimetype:"application/vnd.marimo+error",timestamp:wa};else if(n.type==="data"){let i=Object.keys(n.data)[0];e.output={channel:"output",data:Object.values(n.data)[0],mimetype:i,timestamp:wa}}}let a=t.console||[];return{...e,outline:e.output?fj(e.output):null,consoleOutputs:a.map(i=>i.type==="streamMedia"?{channel:"media",data:i.data,mimetype:i.mimetype,timestamp:wa}:{channel:i.name==="stderr"?"stderr":"stdout",data:i.text,mimetype:i.mimetype??"text/plain",timestamp:wa})}}function $h(t,e){let{cellIds:r,sessionCellData:n,notebookCellData:a}=Hh(t,e);if(r.length===0)return null;let i={},o={};for(let s of r){let d=n.get(s),c=a.get(s);c&&(i[s]=Bh(s,c)),o[s]=Wh(d)}return{cellIds:sj.from([r]),cellData:i,cellRuntime:o,cellHandles:{},history:[],scrollKey:null,cellLogs:[],untouchedNewCells:new Set}}var Uh=J(),yd=Object.freeze({left:0,top:0,width:16,height:16}),ya=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),An=Object.freeze({...yd,...ya}),rl=Object.freeze({...An,body:"",hidden:!1}),qh=Object.freeze({width:null,height:null}),jd=Object.freeze({...qh,...ya});function Yh(t,e=0){let r=t.replace(/^-?[0-9.]*/,"");function n(a){for(;a<0;)a+=4;return a%4}if(r===""){let a=parseInt(t);return isNaN(a)?0:n(a)}else if(r!==t){let a=0;switch(r){case"%":a=25;break;case"deg":a=90}if(a){let i=parseFloat(t.slice(0,t.length-r.length));return isNaN(i)?0:(i/=a,i%1==0?n(i):0)}}return e}var Gh=/[\s,]+/;function Kh(t,e){e.split(Gh).forEach(r=>{switch(r.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}var Cd={...jd,preserveAspectRatio:""};function Sd(t){let e={...Cd},r=(n,a)=>t.getAttribute(n)||a;return e.width=r("width",null),e.height=r("height",null),e.rotate=Yh(r("rotate","")),Kh(e,r("flip","")),e.preserveAspectRatio=r("preserveAspectRatio",r("preserveaspectratio","")),e}function Qh(t,e){for(let r in Cd)if(t[r]!==e[r])return!0;return!1}var _d=/^[a-z0-9]+(-[a-z0-9]+)*$/,In=(t,e,r,n="")=>{let a=t.split(":");if(t.slice(0,1)==="@"){if(a.length<2||a.length>3)return null;n=a.shift().slice(1)}if(a.length>3||!a.length)return null;if(a.length>1){let s=a.pop(),d=a.pop(),c={provider:a.length>0?a[0]:n,prefix:d,name:s};return e&&!ja(c)?null:c}let i=a[0],o=i.split("-");if(o.length>1){let s={provider:n,prefix:o.shift(),name:o.join("-")};return e&&!ja(s)?null:s}if(r&&n===""){let s={provider:n,prefix:"",name:i};return e&&!ja(s,r)?null:s}return null},ja=(t,e)=>t?!!((e&&t.prefix===""||t.prefix)&&t.name):!1;function Xh(t,e){let r={};!t.hFlip!=!e.hFlip&&(r.hFlip=!0),!t.vFlip!=!e.vFlip&&(r.vFlip=!0);let n=((t.rotate||0)+(e.rotate||0))%4;return n&&(r.rotate=n),r}function kd(t,e){let r=Xh(t,e);for(let n in rl)n in ya?n in t&&!(n in r)&&(r[n]=ya[n]):n in e?r[n]=e[n]:n in t&&(r[n]=t[n]);return r}function Zh(t,e){let r=t.icons,n=t.aliases||Object.create(null),a=Object.create(null);function i(o){if(r[o])return a[o]=[];if(!(o in a)){a[o]=null;let s=n[o]&&n[o].parent,d=s&&i(s);d&&(a[o]=[s].concat(d))}return a[o]}return Object.keys(r).concat(Object.keys(n)).forEach(i),a}function Jh(t,e,r){let n=t.icons,a=t.aliases||Object.create(null),i={};function o(s){i=kd(n[s]||a[s],i)}return o(e),r.forEach(o),kd(t,i)}function Td(t,e){let r=[];if(typeof t!="object"||typeof t.icons!="object")return r;t.not_found instanceof Array&&t.not_found.forEach(a=>{e(a,null),r.push(a)});let n=Zh(t);for(let a in n){let i=n[a];i&&(e(a,Jh(t,a,i)),r.push(a))}return r}var ef={provider:"",aliases:{},not_found:{},...yd};function nl(t,e){for(let r in e)if(r in t&&typeof t[r]!=typeof e[r])return!1;return!0}function Nd(t){if(typeof t!="object"||!t)return null;let e=t;if(typeof e.prefix!="string"||!t.icons||typeof t.icons!="object"||!nl(t,ef))return null;let r=e.icons;for(let a in r){let i=r[a];if(!a||typeof i.body!="string"||!nl(i,rl))return null}let n=e.aliases||Object.create(null);for(let a in n){let i=n[a],o=i.parent;if(!a||typeof o!="string"||!r[o]&&!n[o]||!nl(i,rl))return null}return e}var Ca=Object.create(null);function tf(t,e){return{provider:t,prefix:e,icons:Object.create(null),missing:new Set}}function lr(t,e){let r=Ca[t]||(Ca[t]=Object.create(null));return r[e]||(r[e]=tf(t,e))}function Ad(t,e){return Nd(e)?Td(e,(r,n)=>{n?t.icons[r]=n:t.missing.add(r)}):[]}function rf(t,e,r){try{if(typeof r.body=="string")return t.icons[e]={...r},!0}catch{}return!1}function nf(t,e){let r=[];return(typeof t=="string"?[t]:Object.keys(Ca)).forEach(n=>{(typeof n=="string"&&typeof e=="string"?[e]:Object.keys(Ca[n]||{})).forEach(a=>{let i=lr(n,a);r=r.concat(Object.keys(i.icons).map(o=>(n===""?"":"@"+n+":")+a+":"+o))})}),r}var En=!1;function Id(t){return typeof t=="boolean"&&(En=t),En}function Rn(t){let e=typeof t=="string"?In(t,!0,En):t;if(e){let r=lr(e.provider,e.prefix),n=e.name;return r.icons[n]||(r.missing.has(n)?null:void 0)}}function Ed(t,e){let r=In(t,!0,En);if(!r)return!1;let n=lr(r.provider,r.prefix);return e?rf(n,r.name,e):(n.missing.add(r.name),!0)}function Rd(t,e){if(typeof t!="object")return!1;if(typeof e!="string"&&(e=t.provider||""),En&&!e&&!t.prefix){let n=!1;return Nd(t)&&(t.prefix="",Td(t,(a,i)=>{Ed(a,i)&&(n=!0)})),n}let r=t.prefix;return ja({provider:e,prefix:r,name:"a"})?!!Ad(lr(e,r),t):!1}function zd(t){return!!Rn(t)}function af(t){let e=Rn(t);return e&&{...An,...e}}function lf(t){let e={loaded:[],missing:[],pending:[]},r=Object.create(null);t.sort((a,i)=>a.provider===i.provider?a.prefix===i.prefix?a.name.localeCompare(i.name):a.prefix.localeCompare(i.prefix):a.provider.localeCompare(i.provider));let n={provider:"",prefix:"",name:""};return t.forEach(a=>{if(n.name===a.name&&n.prefix===a.prefix&&n.provider===a.provider)return;n=a;let i=a.provider,o=a.prefix,s=a.name,d=r[i]||(r[i]=Object.create(null)),c=d[o]||(d[o]=lr(i,o)),u;u=s in c.icons?e.loaded:o===""||c.missing.has(s)?e.missing:e.pending;let p={provider:i,prefix:o,name:s};u.push(p)}),e}function Md(t,e){t.forEach(r=>{let n=r.loaderCallbacks;n&&(r.loaderCallbacks=n.filter(a=>a.id!==e))})}function of(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;let e=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!e.length)return;let r=!1,n=t.provider,a=t.prefix;e.forEach(i=>{let o=i.icons,s=o.pending.length;o.pending=o.pending.filter(d=>{if(d.prefix!==a)return!0;let c=d.name;if(t.icons[c])o.loaded.push({provider:n,prefix:a,name:c});else if(t.missing.has(c))o.missing.push({provider:n,prefix:a,name:c});else return r=!0,!0;return!1}),o.pending.length!==s&&(r||Md([t],i.id),i.callback(o.loaded.slice(0),o.missing.slice(0),o.pending.slice(0),i.abort))})}))}var sf=0;function df(t,e,r){let n=sf++,a=Md.bind(null,r,n);if(!e.pending.length)return a;let i={id:n,icons:e,callback:t,abort:a};return r.forEach(o=>{(o.loaderCallbacks||(o.loaderCallbacks=[])).push(i)}),a}var al=Object.create(null);function Pd(t,e){al[t]=e}function il(t){return al[t]||al[""]}function cf(t,e=!0,r=!1){let n=[];return t.forEach(a=>{let i=typeof a=="string"?In(a,e,r):a;i&&n.push(i)}),n}var uf={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function pf(t,e,r,n){let a=t.resources.length,i=t.random?Math.floor(Math.random()*a):t.index,o;if(t.random){let k=t.resources.slice(0);for(o=[];k.length>1;){let C=Math.floor(Math.random()*k.length);o.push(k[C]),k=k.slice(0,C).concat(k.slice(C+1))}o=o.concat(k)}else o=t.resources.slice(i).concat(t.resources.slice(0,i));let s=Date.now(),d="pending",c=0,u,p=null,m=[],f=[];typeof n=="function"&&f.push(n);function g(){p&&(p=(clearTimeout(p),null))}function x(){d==="pending"&&(d="aborted"),g(),m.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),m=[]}function w(k,C){C&&(f=[]),typeof k=="function"&&f.push(k)}function b(){return{startTime:s,payload:e,status:d,queriesSent:c,queriesPending:m.length,subscribe:w,abort:x}}function v(){d="failed",f.forEach(k=>{k(void 0,u)})}function y(){m.forEach(k=>{k.status==="pending"&&(k.status="aborted")}),m=[]}function S(k,C,h){let T=C!=="success";switch(m=m.filter(N=>N!==k),d){case"pending":break;case"failed":if(T||!t.dataAfterTimeout)return;break;default:return}if(C==="abort"){u=h,v();return}if(T){u=h,m.length||(o.length?j():v());return}if(g(),y(),!t.random){let N=t.resources.indexOf(k.resource);N!==-1&&N!==t.index&&(t.index=N)}d="completed",f.forEach(N=>{N(h)})}function j(){if(d!=="pending")return;g();let k=o.shift();if(k===void 0){if(m.length){p=setTimeout(()=>{g(),d==="pending"&&(y(),v())},t.timeout);return}v();return}let C={status:"pending",resource:k,callback:(h,T)=>{S(C,h,T)}};m.push(C),c++,p=setTimeout(j,t.rotate),r(k,e,C.callback)}return setTimeout(j),b}function Fd(t){let e={...uf,...t},r=[];function n(){r=r.filter(o=>o().status==="pending")}function a(o,s,d){let c=pf(e,o,s,(u,p)=>{n(),d&&d(u,p)});return r.push(c),c}function i(o){return r.find(s=>o(s))||null}return{query:a,find:i,setIndex:o=>{e.index=o},getIndex:()=>e.index,cleanup:n}}function ll(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 Sa=Object.create(null),_a=["https://api.simplesvg.com","https://api.unisvg.com"],ol=[];_a.length>0;)_a.length===1||Math.random()>.5?ol.push(_a.shift()):ol.push(_a.pop());Sa[""]=ll({resources:["https://api.iconify.design"].concat(ol)});function Ld(t,e){let r=ll(e);return r===null?!1:(Sa[t]=r,!0)}function ka(t){return Sa[t]}function mf(){return Object.keys(Sa)}function Od(){}var sl=Object.create(null);function hf(t){if(!sl[t]){let e=ka(t);if(!e)return;sl[t]={config:e,redundancy:Fd(e)}}return sl[t]}function Vd(t,e,r){let n,a;if(typeof t=="string"){let i=il(t);if(!i)return r(void 0,424),Od;a=i.send;let o=hf(t);o&&(n=o.redundancy)}else{let i=ll(t);if(i){n=Fd(i);let o=il(t.resources?t.resources[0]:"");o&&(a=o.send)}}return!n||!a?(r(void 0,424),Od):n.query(e,a,r)().abort}function Dd(){}function ff(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,of(t)}))}function gf(t){let e=[],r=[];return t.forEach(n=>{(n.match(_d)?e:r).push(n)}),{valid:e,invalid:r}}function zn(t,e,r){function n(){let a=t.pendingIcons;e.forEach(i=>{a&&a.delete(i),t.icons[i]||t.missing.add(i)})}if(r&&typeof r=="object")try{if(!Ad(t,r).length){n();return}}catch(a){console.error(a)}n(),ff(t)}function Hd(t,e){t instanceof Promise?t.then(r=>{e(r)}).catch(()=>{e(null)}):e(t)}function xf(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:r,prefix:n}=t,a=t.iconsToLoad;if(delete t.iconsToLoad,!a||!a.length)return;let i=t.loadIcon;if(t.loadIcons&&(a.length>1||!i)){Hd(t.loadIcons(a,n,r),c=>{zn(t,a,c)});return}if(i){a.forEach(c=>{Hd(i(c,n,r),u=>{zn(t,[c],u?{prefix:n,icons:{[c]:u}}:null)})});return}let{valid:o,invalid:s}=gf(a);if(s.length&&zn(t,s,null),!o.length)return;let d=n.match(_d)?il(r):null;if(!d){zn(t,o,null);return}d.prepare(r,n,o).forEach(c=>{Vd(r,c,u=>{zn(t,c.icons,u)})})}))}var dl=(t,e)=>{let r=lf(cf(t,!0,Id()));if(!r.pending.length){let s=!0;return e&&setTimeout(()=>{s&&e(r.loaded,r.missing,r.pending,Dd)}),()=>{s=!1}}let n=Object.create(null),a=[],i,o;return r.pending.forEach(s=>{let{provider:d,prefix:c}=s;if(c===o&&d===i)return;i=d,o=c,a.push(lr(d,c));let u=n[d]||(n[d]=Object.create(null));u[c]||(u[c]=[])}),r.pending.forEach(s=>{let{provider:d,prefix:c,name:u}=s,p=lr(d,c),m=p.pendingIcons||(p.pendingIcons=new Set);m.has(u)||(m.add(u),n[d][c].push(u))}),a.forEach(s=>{let d=n[s.provider][s.prefix];d.length&&xf(s,d)}),e?df(e,r,a):Dd},vf=t=>new Promise((e,r)=>{let n=typeof t=="string"?In(t,!0):t;if(!n){r(t);return}dl([n||t],a=>{if(a.length&&n){let i=Rn(n);if(i){e({...An,...i});return}}r(t)})});function Bd(t){try{let e=typeof t=="string"?JSON.parse(t):t;if(typeof e.body=="string")return{...e}}catch{}}function wf(t,e){if(typeof t=="object")return{data:Bd(t),value:t};if(typeof t!="string")return{value:t};if(t.includes("{")){let a=Bd(t);if(a)return{data:a,value:t}}let r=In(t,!0,!0);if(!r)return{value:t};let n=Rn(r);return n!==void 0||!r.prefix?{value:t,name:r,data:n}:{value:t,name:r,loading:dl([r],()=>e(t,r,Rn(r)))}}var Wd=!1;try{Wd=navigator.vendor.indexOf("Apple")===0}catch{}function bf(t,e){switch(e){case"svg":case"bg":case"mask":return e}return e!=="style"&&(Wd||t.indexOf("<a")===-1)?"svg":t.indexOf("currentColor")===-1?"bg":"mask"}var yf=/(-?[0-9.]*[0-9]+[0-9.]*)/g,jf=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function cl(t,e,r){if(e===1)return t;if(r||(r=100),typeof t=="number")return Math.ceil(t*e*r)/r;if(typeof t!="string")return t;let n=t.split(yf);if(n===null||!n.length)return t;let a=[],i=n.shift(),o=jf.test(i);for(;;){if(o){let s=parseFloat(i);isNaN(s)?a.push(i):a.push(Math.ceil(s*e*r)/r)}else a.push(i);if(i=n.shift(),i===void 0)return a.join("");o=!o}}function Cf(t,e="defs"){let r="",n=t.indexOf("<"+e);for(;n>=0;){let a=t.indexOf(">",n),i=t.indexOf("</"+e);if(a===-1||i===-1)break;let o=t.indexOf(">",i);if(o===-1)break;r+=t.slice(a+1,i).trim(),t=t.slice(0,n).trim()+t.slice(o+1)}return{defs:r,content:t}}function Sf(t,e){return t?"<defs>"+t+"</defs>"+e:e}function _f(t,e,r){let n=Cf(t);return Sf(n.defs,e+n.content+r)}var kf=t=>t==="unset"||t==="undefined"||t==="none";function $d(t,e){let r={...An,...t},n={...jd,...e},a={left:r.left,top:r.top,width:r.width,height:r.height},i=r.body;[r,n].forEach(x=>{let w=[],b=x.hFlip,v=x.vFlip,y=x.rotate;b?v?y+=2:(w.push("translate("+(a.width+a.left).toString()+" "+(0-a.top).toString()+")"),w.push("scale(-1 1)"),a.top=a.left=0):v&&(w.push("translate("+(0-a.left).toString()+" "+(a.height+a.top).toString()+")"),w.push("scale(1 -1)"),a.top=a.left=0);let S;switch(y<0&&(y-=Math.floor(y/4)*4),y%=4,y){case 1:S=a.height/2+a.top,w.unshift("rotate(90 "+S.toString()+" "+S.toString()+")");break;case 2:w.unshift("rotate(180 "+(a.width/2+a.left).toString()+" "+(a.height/2+a.top).toString()+")");break;case 3:S=a.width/2+a.left,w.unshift("rotate(-90 "+S.toString()+" "+S.toString()+")");break}y%2==1&&(a.left!==a.top&&(S=a.left,a.left=a.top,a.top=S),a.width!==a.height&&(S=a.width,a.width=a.height,a.height=S)),w.length&&(i=_f(i,'<g transform="'+w.join(" ")+'">',"</g>"))});let o=n.width,s=n.height,d=a.width,c=a.height,u,p;o===null?(p=s===null?"1em":s==="auto"?c:s,u=cl(p,d/c)):(u=o==="auto"?d:o,p=s===null?cl(u,c/d):s==="auto"?c:s);let m={},f=(x,w)=>{kf(w)||(m[x]=w.toString())};f("width",u),f("height",p);let g=[a.left,a.top,d,c];return m.viewBox=g.join(" "),{attributes:m,viewBox:g,body:i}}function ul(t,e){let r=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in e)r+=" "+n+'="'+e[n]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+r+">"+t+"</svg>"}function Tf(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function Nf(t){return"data:image/svg+xml,"+Tf(t)}function Ud(t){return'url("'+Nf(t)+'")'}var Ta=(()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}})();function Af(t){Ta=t}function If(){return Ta}function Ef(t,e){let r=ka(t);if(!r)return 0;let n;if(!r.maxURL)n=0;else{let a=0;r.resources.forEach(o=>{a=Math.max(a,o.length)});let i=e+".json?icons=";n=r.maxURL-a-r.path.length-i.length}return n}function Rf(t){return t===404}var zf=(t,e,r)=>{let n=[],a=Ef(t,e),i="icons",o={type:i,provider:t,prefix:e,icons:[]},s=0;return r.forEach((d,c)=>{s+=d.length+1,s>=a&&c>0&&(n.push(o),o={type:i,provider:t,prefix:e,icons:[]},s=d.length),o.icons.push(d)}),n.push(o),n};function Mf(t){if(typeof t=="string"){let e=ka(t);if(e)return e.path}return"/"}var Pf={prepare:zf,send:(t,e,r)=>{if(!Ta){r("abort",424);return}let n=Mf(e.provider);switch(e.type){case"icons":{let i=e.prefix,o=e.icons.join(","),s=new URLSearchParams({icons:o});n+=i+".json?"+s.toString();break}case"custom":{let i=e.uri;n+=i.slice(0,1)==="/"?i.slice(1):i;break}default:r("abort",400);return}let a=503;Ta(t+n).then(i=>{let o=i.status;if(o!==200){setTimeout(()=>{r(Rf(o)?"abort":"next",o)});return}return a=501,i.json()}).then(i=>{if(typeof i!="object"||!i){setTimeout(()=>{i===404?r("abort",i):r("next",a)});return}setTimeout(()=>{r("success",i)})}).catch(()=>{r("next",a)})}};function Ff(t,e,r){lr(r||"",e).loadIcons=t}function Lf(t,e,r){lr(r||"",e).loadIcon=t}var pl="data-style",qd="";function Of(t){qd=t}function Yd(t,e){let r=Array.from(t.childNodes).find(n=>n.hasAttribute&&n.hasAttribute(pl));r||(r=document.createElement("style"),r.setAttribute(pl,pl),t.appendChild(r)),r.textContent=":host{display:inline-block;vertical-align:"+(e?"-0.125em":"0")+"}span,svg{display:block;margin:auto}"+qd}function Gd(){Pd("",Pf),Id(!0);let t;try{t=window}catch{}if(t){if(t.IconifyPreload!==void 0){let e=t.IconifyPreload,r="Invalid IconifyPreload syntax.";typeof e=="object"&&e&&(e instanceof Array?e:[e]).forEach(n=>{try{(typeof n!="object"||!n||n instanceof Array||typeof n.icons!="object"||typeof n.prefix!="string"||!Rd(n))&&console.error(r)}catch{console.error(r)}})}if(t.IconifyProviders!==void 0){let e=t.IconifyProviders;if(typeof e=="object"&&e)for(let r in e){let n="IconifyProviders["+r+"] is invalid.";try{let a=e[r];if(typeof a!="object"||!a||a.resources===void 0)continue;Ld(r,a)||console.error(n)}catch{console.error(n)}}}}return{enableCache:e=>{},disableCache:e=>{},iconLoaded:zd,iconExists:zd,getIcon:af,listIcons:nf,addIcon:Ed,addCollection:Rd,calculateSize:cl,buildIcon:$d,iconToHTML:ul,svgToURL:Ud,loadIcons:dl,loadIcon:vf,addAPIProvider:Ld,setCustomIconLoader:Lf,setCustomIconsLoader:Ff,appendCustomStyle:Of,_api:{getAPIConfig:ka,setAPIModule:Pd,sendAPIQuery:Vd,setFetch:Af,getFetch:If,listAPIProviders:mf}}}var ml={"background-color":"currentColor"},Kd={"background-color":"transparent"},Qd={image:"var(--svg)",repeat:"no-repeat",size:"100% 100%"},Xd={"-webkit-mask":ml,mask:ml,background:Kd};for(let t in Xd){let e=Xd[t];for(let r in Qd)e[t+"-"+r]=Qd[r]}function Zd(t){return t?t+(t.match(/^[-0-9.]+$/)?"px":""):"inherit"}function Vf(t,e,r){let n=document.createElement("span"),a=t.body;a.indexOf("<a")!==-1&&(a+="<!-- "+Date.now()+" -->");let i=t.attributes,o=Ud(ul(a,{...i,width:e.width+"",height:e.height+""})),s=n.style,d={"--svg":o,width:Zd(i.width),height:Zd(i.height),...r?ml:Kd};for(let c in d)s.setProperty(c,d[c]);return n}var Mn;function Df(){try{Mn=window.trustedTypes.createPolicy("iconify",{createHTML:t=>t})}catch{Mn=null}}function Hf(t){return Mn===void 0&&Df(),Mn?Mn.createHTML(t):t}function Bf(t){let e=document.createElement("span"),r=t.attributes,n="";return r.width||(n="width: inherit;"),r.height||(n+="height: inherit;"),n&&(r.style=n),e.innerHTML=Hf(ul(t.body,r)),e.firstChild}function hl(t){return Array.from(t.childNodes).find(e=>{let r=e.tagName&&e.tagName.toUpperCase();return r==="SPAN"||r==="SVG"})}function Jd(t,e){let r=e.icon.data,n=e.customisations,a=$d(r,n);n.preserveAspectRatio&&(a.attributes.preserveAspectRatio=n.preserveAspectRatio);let i=e.renderedMode,o;i==="svg"?o=Bf(a):o=Vf(a,{...An,...r},i==="mask");let s=hl(t);s?o.tagName==="SPAN"&&s.tagName===o.tagName?s.setAttribute("style",o.getAttribute("style")):t.replaceChild(o,s):t.appendChild(o)}function ec(t,e,r){return{rendered:!1,inline:e,icon:t,lastRender:r&&(r.rendered?r:r.lastRender)}}function Wf(t="iconify-icon"){let e,r;try{e=window.customElements,r=window.HTMLElement}catch{return}if(!e||!r)return;let n=e.get(t);if(n)return n;let a=["icon","mode","inline","noobserver","width","height","rotate","flip"],i=class extends r{constructor(){super();B(this,"_shadowRoot");B(this,"_initialised",!1);B(this,"_state");B(this,"_checkQueued",!1);B(this,"_connected",!1);B(this,"_observer",null);B(this,"_visible",!0);let d=this._shadowRoot=this.attachShadow({mode:"open"}),c=this.hasAttribute("inline");Yd(d,c),this._state=ec({value:""},c),this._queueCheck()}connectedCallback(){this._connected=!0,this.startObserver()}disconnectedCallback(){this._connected=!1,this.stopObserver()}static get observedAttributes(){return a.slice(0)}attributeChangedCallback(d){switch(d){case"inline":{let c=this.hasAttribute("inline"),u=this._state;c!==u.inline&&(u.inline=c,Yd(this._shadowRoot,c));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 c=this._shadowRoot;if(d.renderedMode==="svg")try{c.lastChild.setCurrentTime(0);return}catch{}Jd(c,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,c=this.getAttribute("icon");if(c!==d.icon.value){this._iconChanged(c);return}if(!d.rendered||!this._visible)return;let u=this.getAttribute("mode"),p=Sd(this);(d.attrMode!==u||Qh(d.customisations,p)||!hl(this._shadowRoot))&&this._renderIcon(d.icon,p,u)}_iconChanged(d){let c=wf(d,(u,p,m)=>{let f=this._state;if(f.rendered||this.getAttribute("icon")!==u)return;let g={value:u,name:p,data:m};g.data?this._gotIconData(g):f.icon=g});c.data?this._gotIconData(c):this._state=ec(c,this._state.inline,this._state)}_forceRender(){if(!this._visible){let d=hl(this._shadowRoot);d&&this._shadowRoot.removeChild(d);return}this._queueCheck()}_gotIconData(d){this._checkQueued=!1,this._renderIcon(d,Sd(this),this.getAttribute("mode"))}_renderIcon(d,c,u){let p=bf(d.data.body,u),m=this._state.inline;Jd(this._shadowRoot,this._state={rendered:!0,icon:d,inline:m,customisations:c,attrMode:u,renderedMode:p})}startObserver(){if(!this._observer&&!this.hasAttribute("noobserver"))try{this._observer=new IntersectionObserver(d=>{let c=d.some(u=>u.isIntersecting);c!==this._visible&&(this._visible=c,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())}};a.forEach(s=>{s in i.prototype||Object.defineProperty(i.prototype,s,{get:function(){return this.getAttribute(s)},set:function(d){d===null?this.removeAttribute(s):this.setAttribute(s,d)}})});let o=Gd();for(let s in o)i[s]=i.prototype[s]=o[s];return e.define(t,i),i}var{enableCache:ZS,disableCache:JS,iconLoaded:e_,iconExists:t_,getIcon:r_,listIcons:n_,addIcon:a_,addCollection:i_,calculateSize:l_,buildIcon:o_,iconToHTML:s_,svgToURL:d_,loadIcons:c_,loadIcon:u_,setCustomIconLoader:p_,setCustomIconsLoader:m_,addAPIProvider:h_,_api:f_}=Wf()||Gd();const $f=()=>((0,Uh.c)(1),null);var tc=J();const rc=(0,_.memo)(t=>{let e=(0,tc.c)(3),{children:r}=t,{theme:n}=Sn(),a,i;return e[0]===n?(a=e[1],i=e[2]):(a=()=>(document.body.classList.add(n,`${n}-theme`),document.body.dataset.theme=n,()=>{document.body.classList.remove(n,`${n}-theme`),delete document.body.dataset.theme}),i=[n],e[0]=n,e[1]=a,e[2]=i),(0,_.useLayoutEffect)(a,i),r});rc.displayName="ThemeProvider";const Uf=t=>{let e=(0,tc.c)(3),{variables:r,children:n}=t,a;return e[0]!==n||e[1]!==r?(a=(0,l.jsx)("div",{className:"contents",style:r,children:n}),e[0]=n,e[1]=r,e[2]=a):a=e[2],a},Na=t=>{let e=null,r=async()=>(e||(e=t()),e);return{preload:r,Component:_.lazy(()=>r())}};var qf=J();const Yf=()=>{let t=(0,qf.c)(25),[e,r]=vn(Fj);if(e===null)return null;let n;t[0]===e?n=t[1]:(n=async()=>{try{await navigator.clipboard.writeText(e),At({title:"Copied to clipboard",description:"Error details have been copied to your clipboard."})}catch{At({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},t[0]=e,t[1]=n);let a=n,i;t[2]===r?i=t[3]:(i=()=>{r(null)},t[2]=r,t[3]=i);let o=i,s=Gf,d;t[4]===o?d=t[5]:(d=y=>!y&&o(),t[4]=o,t[5]=d);let c;t[6]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsxs)(em,{children:[(0,l.jsxs)(rm,{className:"flex items-center gap-2 text-destructive",children:[(0,l.jsx)(X2,{className:"h-5 w-5"}),"Kernel Startup Failed"]}),(0,l.jsx)(Jp,{children:"The kernel failed to start. This usually happens when the package manager can't install your notebook's dependencies."})]}),t[6]=c):c=t[6];let u;t[7]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Error Details"}),t[7]=u):u=t[7];let p;t[8]===Symbol.for("react.memo_cache_sentinel")?(p=(0,l.jsx)(_m,{className:"h-3 w-3"}),t[8]=p):p=t[8];let m;t[9]===a?m=t[10]:(m=(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[u,(0,l.jsxs)(Fe,{variant:"outline",size:"xs",onClick:a,className:"flex items-center gap-1",children:[p,"Copy"]})]}),t[9]=a,t[10]=m);let f;t[11]===e?f=t[12]:(f=(0,l.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]=f);let g;t[13]!==m||t[14]!==f?(g=(0,l.jsxs)("div",{className:"my-4 overflow-hidden",children:[m,f]}),t[13]=m,t[14]=f,t[15]=g):g=t[15];let x;t[16]===Symbol.for("react.memo_cache_sentinel")?(x=(0,l.jsxs)(Fe,{variant:"outline",onClick:s,className:"flex items-center gap-2",children:[(0,l.jsx)(K4,{className:"h-4 w-4"}),"Return to Home"]}),t[16]=x):x=t[16];let w;t[17]===o?w=t[18]:(w=(0,l.jsxs)(am,{children:[x,(0,l.jsx)(nm,{onClick:o,children:"Dismiss"})]}),t[17]=o,t[18]=w);let b;t[19]!==w||t[20]!==g?(b=(0,l.jsxs)(tm,{className:"max-w-2xl",children:[c,g,w]}),t[19]=w,t[20]=g,t[21]=b):b=t[21];let v;return t[22]!==b||t[23]!==d?(v=(0,l.jsx)(im,{open:!0,onOpenChange:d,children:b}),t[22]=b,t[23]=d,t[24]=v):v=t[24],v};function Gf(){let t=document.baseURI.split("?")[0];window.open(t,"_self")}var Kf=J();const Qf=t=>{let e=(0,Kf.c)(30),{isOpen:r,onClose:n,traceback:a,errorMessage:i}=t,o;e[0]===a?o=e[1]:(o=async()=>{let j=document.createElement("div");j.innerHTML=ij(a);let k=j.textContent||j.innerText||"";try{await navigator.clipboard.writeText(k),At({title:"Copied to clipboard",description:"Traceback has been copied to your clipboard."})}catch{At({title:"Failed to copy",description:"Could not copy to clipboard.",variant:"danger"})}},e[0]=a,e[1]=o);let s=o,d;e[2]===n?d=e[3]:(d=j=>!j&&n(),e[2]=n,e[3]=d);let c;e[4]===i?c=e[5]:(c=(0,l.jsx)(rm,{className:"text-destructive",children:i}),e[4]=i,e[5]=c);let u;e[6]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(Jp,{children:"Click the traceback to select and copy."}),e[6]=u):u=e[6];let p;e[7]===c?p=e[8]:(p=(0,l.jsxs)(em,{children:[c,u]}),e[7]=c,e[8]=p);let m;e[9]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{className:"text-sm font-medium text-muted-foreground",children:"Traceback"}),e[9]=m):m=e[9];let f;e[10]===Symbol.for("react.memo_cache_sentinel")?(f=(0,l.jsx)(_m,{className:"h-3 w-3"}),e[10]=f):f=e[10];let g;e[11]===s?g=e[12]:(g=(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[m,(0,l.jsxs)(Fe,{variant:"outline",size:"xs",onClick:s,className:"flex items-center gap-1",children:[f,"Copy"]})]}),e[11]=s,e[12]=g);let x;e[13]===a?x=e[14]:(x=qe({html:a}),e[13]=a,e[14]=x);let w;e[15]===x?w=e[16]:(w=(0,l.jsx)("div",{className:"font-code text-sm p-4 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",children:x}),e[15]=x,e[16]=w);let b;e[17]!==w||e[18]!==g?(b=(0,l.jsxs)("div",{className:"my-4 overflow-auto",children:[g,w]}),e[17]=w,e[18]=g,e[19]=b):b=e[19];let v;e[20]===n?v=e[21]:(v=(0,l.jsx)(am,{children:(0,l.jsx)(nm,{onClick:n,children:"Close"})}),e[20]=n,e[21]=v);let y;e[22]!==b||e[23]!==v||e[24]!==p?(y=(0,l.jsxs)(tm,{className:"max-w-4xl max-h-[80vh]",children:[p,b,v]}),e[22]=b,e[23]=v,e[24]=p,e[25]=y):y=e[25];let S;return e[26]!==r||e[27]!==y||e[28]!==d?(S=(0,l.jsx)(im,{open:r,onOpenChange:d,children:y}),e[26]=r,e[27]=y,e[28]=d,e[29]=S):S=e[29],S};var Xf=J();const Zf=()=>{let t=(0,Xf.c)(6),[e,r]=vn(oj);if(!e)return null;let n;t[0]===r?n=t[1]:(n=()=>r(null),t[0]=r,t[1]=n);let a;return t[2]!==n||t[3]!==e.errorMessage||t[4]!==e.traceback?(a=(0,l.jsx)(Qf,{isOpen:!0,onClose:n,traceback:e.traceback,errorMessage:e.errorMessage}),t[2]=n,t[3]=e.errorMessage,t[4]=e.traceback,t[5]=a):a=t[5],a};var Jf=J();const e0=()=>{let t=(0,Jf.c)(5),{toasts:e}=fS(),r;t[0]===e?r=t[1]:(r=e.map(t0),t[0]=e,t[1]=r);let n;t[2]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(D2,{}),t[2]=n):n=t[2];let a;return t[3]===r?a=t[4]:(a=(0,l.jsxs)(rj,{children:[r,n]}),t[3]=r,t[4]=a),a};function t0(t){let{id:e,title:r,description:n,action:a,...i}=t;return(0,l.jsxs)(W2,{...i,children:[(0,l.jsxs)("div",{className:"grid gap-1",children:[r&&(0,l.jsx)(q2,{children:r}),n&&(0,l.jsx)(ej,{children:n})]}),a,(0,l.jsx)(tj,{})]},e)}var r0=J();const fl=t=>{let e=(0,r0.c)(5),{children:r}=t,n=xi(Bj),a;e[0]===n?a=e[1]:(a=n0(n),e[0]=n,e[1]=a);let i;return e[2]!==r||e[3]!==a?(i=(0,l.jsx)(bS,{locale:a,children:r}),e[2]=r,e[3]=a,e[4]=i):i=e[4],i};function n0(t){return t&&a0(t)?t:navigator.language}function a0(t){try{return new Intl.NumberFormat(t),!0}catch{return!1}}var nc=J(),ac=Na(()=>yt(()=>import("./home-page-De1W6q6f.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,130,131,132,133,134]),import.meta.url)),ic=Na(()=>yt(()=>import("./run-page-vKjN7tOv.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([135,136,137,4,138,13,8,9,10,11,139,140,141,142,3,5,6,7,12,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,107,143,70,144,145,105,75,74,79,78,80,81,82,83,84,71,72,68,69,85,146,147,148,93,97,149,150,133,151,66,152,153,154,90,155,156,157,158,159,160,86,161,92,88,162,91,163,121,122,123,125,118,164,165,126,94,166,167,129,168,100,169,170,171,172,173,174,175,176,177,178,179,98,180,77,87,89,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,112,280,281,282,283,284,285,286,287,288,289,95,96,290,291,292,293,294,295,296,119]),import.meta.url)),lc=Na(()=>yt(()=>import("./edit-page-BgGLD5aB.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([297,4,298,10,136,137,138,13,8,9,11,139,140,141,142,3,5,6,7,12,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,107,143,70,144,145,105,75,74,79,78,80,81,82,83,84,71,72,68,69,85,146,147,148,93,97,149,150,133,151,66,152,153,154,90,155,156,157,158,159,160,86,161,92,88,162,91,163,121,122,123,125,118,164,165,126,94,166,167,129,168,100,169,170,171,172,173,174,175,176,177,178,179,98,180,77,87,89,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,112,280,281,282,283,284,285,286,287,288,289,95,96,290,291,292,293,294,295,296,2,67,73,76,99,101,102,1,103,104,106,299,300,108,301,117,111,302,303,109,110,304,120,305,306,307,308,309,310,311,312,134,313,130,314,315,316,132,119,124,131,317,318,319,320,321,322,323,324,325,326,327,328,329,330,331]),import.meta.url)),oc=Na(()=>yt(()=>import("./gallery-page-MrZHjySE.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([332,107,12,13,8,9,10,11,6,7,35,66,20,73,14,15,79,78,25,60,29,61,62,80,44,41,26,81,82,83,84,21,36,37,90,91,75,92,30,46]),import.meta.url));function i0(t){switch(t){case"home":ac.preload();break;case"gallery":oc.preload();break;case"read":ic.preload();break;default:lc.preload()}}const sc=(0,_.memo)(()=>{let t=(0,nc.c)(12),[e]=Gj(),[r]=Yj(),n;t[0]===e.display.code_editor_font_size?n=t[1]:(n=l0(e.display.code_editor_font_size),t[0]=e.display.code_editor_font_size,t[1]=n);let a=n,i;t[2]!==r||t[3]!==e?(i=()=>{let u=nj();return u==="home"?(0,l.jsx)(ac.Component,{}):u==="gallery"?(0,l.jsx)(oc.Component,{}):u==="read"?(0,l.jsx)(ic.Component,{appConfig:r}):(0,l.jsx)(lc.Component,{userConfig:e,appConfig:r})},t[2]=r,t[3]=e,t[4]=i):i=t[4];let o=i,s;t[5]===a?s=t[6]:(s={"--marimo-code-editor-font-size":a},t[5]=a,t[6]=s);let d;t[7]===o?d=t[8]:(d=(0,l.jsx)(fl,{children:o()}),t[7]=o,t[8]=d);let c;return t[9]!==s||t[10]!==d?(c=(0,l.jsx)(dc,{children:(0,l.jsx)(Uf,{variables:s,children:d})}),t[9]=s,t[10]=d,t[11]=c):c=t[11],c});sc.displayName="MarimoApp";var dc=(0,_.memo)(t=>{let e=(0,nc.c)(6),{children:r}=t,n,a,i,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(n=(0,l.jsx)(e0,{}),a=(0,l.jsx)($f,{}),i=(0,l.jsx)(Yf,{}),o=(0,l.jsx)(Zf,{}),e[0]=n,e[1]=a,e[2]=i,e[3]=o):(n=e[0],a=e[1],i=e[2],o=e[3]);let s;return e[4]===r?s=e[5]:(s=(0,l.jsx)(yi,{children:(0,l.jsx)(_.Suspense,{children:(0,l.jsx)(ca,{children:(0,l.jsx)(mm,{controller:da,children:(0,l.jsx)(fl,{children:(0,l.jsxs)(SS,{children:[r,n,a,i,o]})})})})})}),e[4]=r,e[5]=s),s});dc.displayName="Providers";function l0(t){return`${t/16}rem`}function o0(){wS(t=>{t.delete(rs.accessToken)})}var s0={sendComponentValues:"startConnection",sendModelValue:"startConnection",sendInstantiate:"startConnection",sendRun:"startConnection",sendDeleteCell:"startConnection",sendRunScratchpad:"startConnection",saveAppConfig:"startConnection",saveCellConfig:"startConnection",exportAsHTML:"startConnection",exportAsIPYNB:"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",sendCopyFileOrFolder:"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",previewSQLSchemaList:"waitForConnectionOpen",previewDataSourceConnection:"waitForConnectionOpen",validateSQL:"waitForConnectionOpen",listStorageEntries:"waitForConnectionOpen",downloadStorage:"waitForConnectionOpen",sendDocumentTransaction:"waitForConnectionOpen",sendCodeCompletionRequest:"waitForConnectionOpen"};function d0(t,e){let r=u4(async a=>{Ve.set($p,{state:Up.CONNECTING}),await a.init()});function n(a,i){let o=s0[i];return async(...s)=>{let d=e();if(!d.isLazy)return a(...s);switch(o){case"dropRequest":ue.debug(`Dropping request: ${i}, since not connected to a kernel.`);return;case"throwError":throw new Om;case"waitForConnectionOpen":return await dt(),await Im(),a(...s);case"startConnection":return await r(d),await dt(),i!=="sendInstantiate"&&await Im(),a(...s);default:throw Error(`Unknown action for "${i}"`)}}}return $r.mapValues(t,(a,i)=>n(a,i))}function c0(t){return{body:t,bodySerializer:e=>e}}var{handleResponse:Le,handleResponseReturnNull:Ce}=tC;function u0(){let t=ys(()=>nC(ns())),e=()=>ns().sessionHeaders(),r=()=>({header:e()});return{sendComponentValues:n=>t().POST("/api/kernel/set_ui_element_value",{body:n,params:r()}).then(Ce),sendModelValue:n=>t().POST("/api/kernel/set_model_value",{body:n,params:r()}).then(Ce),sendRestart:()=>t().POST("/api/kernel/restart_session",{params:r()}).then(Ce),sendDocumentTransaction:async n=>(await dt(),t().POST("/api/document/transaction",{body:n,params:r()}).then(Ce)),sendRename:n=>t().POST("/api/kernel/rename",{body:n,params:r()}).then(Ce),sendSave:n=>t().POST("/api/kernel/save",{body:n,parseAs:"text",params:r()}).then(Ce),sendCopy:n=>t().POST("/api/kernel/copy",{body:n,parseAs:"text",params:r()}).then(Ce),sendFormat:n=>t().POST("/api/kernel/format",{body:n}).then(Le),sendInterrupt:()=>t().POST("/api/kernel/interrupt",{params:r()}).then(Ce),sendShutdown:()=>t().POST("/api/kernel/shutdown").then(Ce),sendRun:async n=>(await dt(),t().POST("/api/kernel/run",{body:n,params:r()}).then(Ce)),sendRunScratchpad:async n=>(await dt(),t().POST("/api/kernel/scratchpad/run",{body:n,params:r()}).then(Ce)),sendInstantiate:async n=>(await dt(),t().POST("/api/kernel/instantiate",{body:n,params:r()}).then(Ce)),sendDeleteCell:n=>t().POST("/api/kernel/delete",{body:n,params:r()}).then(Ce),sendCodeCompletionRequest:async n=>(await dt(),t().POST("/api/kernel/code_autocomplete",{body:n,params:r()}).then(Ce)),saveUserConfig:n=>t().POST("/api/kernel/save_user_config",{body:n}).then(Ce),saveAppConfig:n=>t().POST("/api/kernel/save_app_config",{body:n,parseAs:"text",params:r()}).then(Ce),saveCellConfig:n=>t().POST("/api/kernel/set_cell_config",{body:n,params:r()}).then(Ce),sendFunctionRequest:n=>t().POST("/api/kernel/function_call",{body:n,params:r()}).then(Ce),sendStdin:n=>t().POST("/api/kernel/stdin",{body:n,params:r()}).then(Ce),sendInstallMissingPackages:n=>t().POST("/api/kernel/install_missing_packages",{body:n,params:r()}).then(Ce),readCode:async()=>(await dt(),t().POST("/api/kernel/read_code",{params:r()}).then(Le)),readSnippets:async()=>(await dt(),t().GET("/api/documentation/snippets",{params:r()}).then(Le)),previewDatasetColumn:n=>t().POST("/api/datasources/preview_column",{body:n,params:r()}).then(Ce),previewSQLTable:n=>t().POST("/api/datasources/preview_sql_table",{body:n,params:r()}).then(Ce),previewSQLTableList:n=>t().POST("/api/datasources/preview_sql_table_list",{body:n,params:r()}).then(Ce),previewSQLSchemaList:n=>t().POST("/api/datasources/preview_sql_schema_list",{body:n,params:r()}).then(Ce),previewDataSourceConnection:n=>t().POST("/api/datasources/preview_datasource_connection",{body:n,params:r()}).then(Ce),validateSQL:n=>t().POST("/api/sql/validate",{body:n,params:r()}).then(Ce),openFile:async n=>(await dt(),await t().POST("/api/files/open",{body:n}).then(Ce),null),getUsageStats:async()=>(await dt(),t().GET("/api/usage").then(Le)),sendPdb:n=>t().POST("/api/kernel/pdb/pm",{body:n,params:r()}).then(Ce),sendListFiles:async n=>(await dt(),t().POST("/api/files/list_files",{body:n}).then(Le)),sendSearchFiles:async n=>(await dt(),t().POST("/api/files/search",{body:n}).then(Le)),sendCreateFileOrFolder:async n=>{await dt();let a=new FormData;return a.append("path",n.path),a.append("type",n.type),a.append("name",n.name),n.file&&a.append("file",n.file,n.name),t().POST("/api/files/create",c0(a)).then(Le)},sendDeleteFileOrFolder:async n=>t().POST("/api/files/delete",{body:n}).then(Le),sendCopyFileOrFolder:async n=>t().POST("/api/files/copy",{body:n}).then(Le),sendRenameFileOrFolder:async n=>t().POST("/api/files/move",{body:n}).then(Le),sendUpdateFile:async n=>(await dt(),t().POST("/api/files/update",{body:n}).then(Le)),sendFileDetails:async n=>(await dt(),t().POST("/api/files/file_details",{body:n}).then(Le)),openTutorial:n=>t().POST("/api/home/tutorial/open",{body:n}).then(Le),getRecentFiles:()=>t().POST("/api/home/recent_files").then(Le),getWorkspaceFiles:n=>t().POST("/api/home/workspace_files",{body:n}).then(Le),getRunningNotebooks:()=>t().POST("/api/home/running_notebooks").then(Le),shutdownSession:n=>t().POST("/api/home/shutdown_session",{body:n}).then(Le),exportAsHTML:async n=>t().POST("/api/export/html",{body:n,parseAs:"text",params:r()}).then(Le),exportAsMarkdown:async n=>t().POST("/api/export/markdown",{body:n,parseAs:"text",params:r()}).then(Le),exportAsIPYNB:async n=>t().POST("/api/export/ipynb",{body:n,parseAs:"text",params:r()}).then(Le),exportAsPDF:async n=>t().POST("/api/export/pdf",{body:n,parseAs:"blob",params:r()}).then(Le),autoExportAsHTML:async n=>t().POST("/api/export/auto_export/html",{body:n,params:r()}).then(Ce),autoExportAsMarkdown:async n=>t().POST("/api/export/auto_export/markdown",{body:n,params:r()}).then(Ce),autoExportAsIPYNB:async n=>t().POST("/api/export/auto_export/ipynb",{body:n,params:r()}).then(Ce),updateCellOutputs:async n=>t().POST("/api/export/update_cell_outputs",{body:n,params:r()}).then(Ce),addPackage:n=>t().POST("/api/packages/add",{body:n}).then(Le),removePackage:n=>t().POST("/api/packages/remove",{body:n}).then(Le),getPackageList:async()=>(await dt(),t().GET("/api/packages/list").then(Le)),getDependencyTree:async()=>(await dt(),t().GET("/api/packages/tree").then(Le)),listSecretKeys:async n=>(await dt(),t().POST("/api/secrets/keys",{body:n,params:r()}).then(Ce)),writeSecret:async n=>t().POST("/api/secrets/create",{body:n,params:r()}).then(Ce),invokeAiTool:async n=>t().POST("/api/ai/invoke_tool",{body:n,params:r()}).then(Le),clearCache:async()=>t().POST("/api/cache/clear",{body:{},params:r()}).then(Ce),getCacheInfo:async()=>t().POST("/api/cache/info",{body:{},params:r()}).then(Ce),listStorageEntries:n=>t().POST("/api/storage/list_entries",{body:n,params:r()}).then(Ce),downloadStorage:n=>t().POST("/api/storage/download",{body:n,params:r()}).then(Ce)}}function p0(){let t=()=>{throw Error("Unreachable. Expected to be in run mode")};return{sendComponentValues:async()=>(At({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),ue.log("Updating UI elements is not supported in static mode"),null),sendModelValue:async()=>(ue.log("Updating model values is not supported in static mode"),null),sendInstantiate:async()=>(ue.log("Viewing as static notebook"),null),sendFunctionRequest:async()=>(At({title:"Static notebook",description:"This notebook is not connected to a kernel. Any interactive elements will not work."}),ue.log("Function requests are not supported in static mode"),null),sendRestart:t,sendDocumentTransaction: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,previewSQLSchemaList:t,previewDataSourceConnection:t,validateSQL:t,openFile:t,getUsageStats:t,sendListFiles:t,sendSearchFiles:t,sendPdb:t,sendCreateFileOrFolder:t,sendDeleteFileOrFolder:t,sendCopyFileOrFolder:t,sendRenameFileOrFolder:t,sendUpdateFile:t,sendFileDetails:t,openTutorial:t,sendInstallMissingPackages:t,getRecentFiles:t,getWorkspaceFiles:t,getRunningNotebooks:t,shutdownSession:t,exportAsHTML:t,exportAsIPYNB: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 m0=J();function h0(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",sendDocumentTransaction:"Failed to sync document transaction",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",previewSQLSchemaList:"Failed to fetch SQL schema 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",sendCopyFileOrFolder:"Failed to duplicate 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",exportAsIPYNB:"Failed to export ipynb",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"},r={};for(let[n,a]of Object.entries(t)){let i=n;r[i]=async(...o)=>{try{return await a(...o)}catch(s){if(s instanceof Om){if(Ve.get(Bp))return;let u=At({title:"Kernel Not Connected",description:"You need to connect to a kernel to perform this action.",variant:"default",action:(0,l.jsx)(f0,{onConnect:()=>u.dismiss()})});throw ue.error(`Failed to handle request: ${n}`,s),s}let d=e[i],c=Vm(s);throw d&&At({title:d,description:c,variant:"danger"}),ue.error(`Failed to handle request: ${n}`,s),s}}}return r}const f0=t=>{let e=(0,m0.c)(9),{onConnect:r}=t,n=Qj(),a=xi(Bp),i;e[0]!==n||e[1]!==r?(i=()=>{n(),setTimeout(()=>{r()},800)},e[0]=n,e[1]=r,e[2]=i):i=e[2];let o;e[3]===a?o=e[4]:(o=a&&(0,l.jsx)(Ni,{size:"small",className:"mr-1"}),e[3]=a,e[4]=o);let s;return e[5]!==a||e[6]!==i||e[7]!==o?(s=(0,l.jsxs)(Fe,{size:"xs",onClick:i,disabled:a,children:[o,"Connect"]}),e[5]=a,e[6]=i,e[7]=o,e[8]=s):s=e[8],s};function g0(){let t;return t=Kj()?zj.INSTANCE:oa()?p0():d0(u0(),()=>ns()),h0(t)}var en=J(),gl=_.forwardRef((t,e)=>{let r=(0,en.c)(16),n,a,i,o;r[0]===t?(n=r[1],a=r[2],i=r[3],o=r[4]):({className:a,children:n,orientation:i,...o}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i,r[4]=o);let s=i==="horizontal"&&"max-w-max flex-1 items-center justify-center",d=i==="vertical"&&"",c;r[5]!==a||r[6]!==s||r[7]!==d?(c=ee(s,d,"relative z-10",a),r[5]=a,r[6]=s,r[7]=d,r[8]=c):c=r[8];let u;r[9]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)(pc,{}),r[9]=u):u=r[9];let p;return r[10]!==n||r[11]!==i||r[12]!==o||r[13]!==e||r[14]!==c?(p=(0,l.jsxs)(td,{ref:e,className:c,orientation:i,...o,children:[n,u]}),r[10]=n,r[11]=i,r[12]=o,r[13]=e,r[14]=c,r[15]=p):p=r[15],p});gl.displayName=td.displayName;var x0=as("group flex list-none gap-1",{variants:{orientation:{horizontal:"flex items-center",vertical:"flex flex-col"}},defaultVariants:{orientation:"horizontal"}}),Aa=_.forwardRef((t,e)=>{let r=(0,en.c)(11),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:n,orientation:a,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let o;r[4]!==n||r[5]!==a?(o=ee(x0({orientation:a}),n),r[4]=n,r[5]=a,r[6]=o):o=r[6];let s;return r[7]!==i||r[8]!==e||r[9]!==o?(s=(0,l.jsx)(rd,{ref:e,className:o,...i}),r[7]=i,r[8]=e,r[9]=o,r[10]=s):s=r[10],s});Aa.displayName=rd.displayName;var xl=sh,vl=as("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"}}),cc=_.forwardRef((t,e)=>{let r=(0,en.c)(12),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:a,children:n,...i}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let o;r[4]===a?o=r[5]:(o=ee(vl(),"group",a),r[4]=a,r[5]=o);let s;r[6]===Symbol.for("react.memo_cache_sentinel")?(s=(0,l.jsx)(IS,{className:"relative top-px ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),r[6]=s):s=r[6];let d;return r[7]!==n||r[8]!==i||r[9]!==e||r[10]!==o?(d=(0,l.jsxs)(nd,{ref:e,className:o,...i,children:[n," ",s]}),r[7]=n,r[8]=i,r[9]=e,r[10]=o,r[11]=d):d=r[11],d});cc.displayName=nd.displayName;var uc=_.forwardRef((t,e)=>{let r=(0,en.c)(9),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===n?i=r[4]:(i=ee("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 ",n),r[3]=n,r[4]=i);let o;return r[5]!==a||r[6]!==e||r[7]!==i?(o=(0,l.jsx)(id,{ref:e,className:i,...a}),r[5]=a,r[6]=e,r[7]=i,r[8]=o):o=r[8],o});uc.displayName=id.displayName;var wl=dh,pc=_.forwardRef((t,e)=>{let r=(0,en.c)(10),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===Symbol.for("react.memo_cache_sentinel")?(i=ee("absolute left-0 top-full flex justify-center"),r[3]=i):i=r[3];let o;r[4]===n?o=r[5]:(o=ee("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)",n),r[4]=n,r[5]=o);let s;return r[6]!==a||r[7]!==e||r[8]!==o?(s=(0,l.jsx)("div",{className:i,children:(0,l.jsx)(ld,{className:o,ref:e,...a})}),r[6]=a,r[7]=e,r[8]=o,r[9]=s):s=r[9],s});pc.displayName=ld.displayName;var v0=_.forwardRef((t,e)=>{let r=(0,en.c)(10),n,a;r[0]===t?(n=r[1],a=r[2]):({className:n,...a}=t,r[0]=t,r[1]=n,r[2]=a);let i;r[3]===n?i=r[4]:(i=ee("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",n),r[3]=n,r[4]=i);let o;r[5]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)("div",{className:"relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md"}),r[5]=o):o=r[5];let s;return r[6]!==a||r[7]!==e||r[8]!==i?(s=(0,l.jsx)(ad,{ref:e,className:i,...a,children:o}),r[6]=a,r[7]=e,r[8]=i,r[9]=s):s=r[9],s});v0.displayName=ad.displayName;var mc=J(),w0=class{constructor(){B(this,"tagName","marimo-nav-menu");B(this,"menuItemValidator",L({label:I(),href:I(),description:I().nullish()}));B(this,"menuItemGroupValidator",L({label:I(),items:Q(this.menuItemValidator)}));B(this,"validator",L({items:Q(Te([this.menuItemValidator,this.menuItemGroupValidator])),orientation:ye(["horizontal","vertical"])}))}render(t){return(0,l.jsx)(b0,{...t.data})}},b0=t=>{let e=(0,mc.c)(13),{items:r,orientation:n}=t,a=y0,i=j0,o=C0,s;e[0]===n?s=e[1]:(s=m=>"items"in m?n==="horizontal"?(0,l.jsx)(gl,{orientation:"horizontal",children:(0,l.jsx)(Aa,{children:(0,l.jsxs)(xl,{children:[(0,l.jsx)(cc,{children:qe({html:m.label})}),(0,l.jsx)(uc,{children:(0,l.jsx)("ul",{className:"grid w-[400px] gap-3 p-4 md:w-[500px] md:grid-cols-2 lg:w-[600px] ",children:m.items.map(f=>(0,l.jsx)(hc,{label:f.label,href:o(f.href),target:i(f.href),children:f.description&&qe({html:f.description})},f.label))})})]})})},m.label):(0,l.jsxs)(xl,{children:[(0,l.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:qe({html:m.label})}),(0,l.jsx)(Aa,{className:"ml-4 auto-collapse-nav",orientation:n,children:m.items.map(f=>(0,l.jsx)(_.Fragment,{children:a((0,l.jsx)(wl,{href:o(f.href),target:i(f.href),className:vl({orientation:n}),children:qe({html:f.label})},f.label),f.description)},f.label))})]},m.label):(0,l.jsx)(xl,{children:(0,l.jsx)(wl,{href:o(m.href),target:i(m.href),className:vl({orientation:n}),children:qe({html:m.label})})},m.label),e[0]=n,e[1]=s);let d=s,c;if(e[2]!==r||e[3]!==d){let m;e[5]===d?m=e[6]:(m=f=>d(f),e[5]=d,e[6]=m),c=r.map(m),e[2]=r,e[3]=d,e[4]=c}else c=e[4];let u;e[7]!==n||e[8]!==c?(u=(0,l.jsx)(Aa,{className:"auto-collapse-nav",orientation:n,children:c}),e[7]=n,e[8]=c,e[9]=u):u=e[9];let p;return e[10]!==n||e[11]!==u?(p=(0,l.jsx)(gl,{orientation:n,children:u}),e[10]=n,e[11]=u,e[12]=p):p=e[12],p},hc=_.forwardRef((t,e)=>{let r=(0,mc.c)(19),n,a,i,o;r[0]===t?(n=r[1],a=r[2],i=r[3],o=r[4]):({className:a,label:i,children:n,...o}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i,r[4]=o);let s;r[5]===a?s=r[6]:(s=ee("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",a),r[5]=a,r[6]=s);let d;r[7]===i?d=r[8]:(d=qe({html:i}),r[7]=i,r[8]=d);let c;r[9]===d?c=r[10]:(c=(0,l.jsx)("div",{className:"text-base font-medium leading-none",children:d}),r[9]=d,r[10]=c);let u;r[11]===n?u=r[12]:(u=n&&(0,l.jsx)("p",{className:"line-clamp-2 text-sm leading-snug text-muted-foreground",children:n}),r[11]=n,r[12]=u);let p;return r[13]!==o||r[14]!==e||r[15]!==s||r[16]!==c||r[17]!==u?(p=(0,l.jsx)("li",{children:(0,l.jsx)(wl,{asChild:!0,children:(0,l.jsxs)("a",{ref:e,className:s,...o,children:[c,u]})})}),r[13]=o,r[14]=e,r[15]=s,r[16]=c,r[17]=u,r[18]=p):p=r[18],p});hc.displayName="ListItem";function y0(t,e){return e?(0,l.jsx)(mr,{delayDuration:200,content:qe({html:e}),children:t}):t}function j0(t){return t.startsWith("http")?"_blank":"_self"}function C0(t){return vS({href:t,queryParams:new URL(globalThis.location.href).search,keys:[rs.filePath]})}function S0(t,e){return t===e?!0:t==null||e==null?!1:Array.isArray(t)&&Array.isArray(e)?c4(t,e):typeof t=="object"&&typeof e=="object"?_0(t,e):!1}function _0(t,e){return Object.keys(t).length===Object.keys(e).length&&$r.keys(t).every(r=>t[r]===e[r])}function bl(t,e){if(!(window!=null&&window.customElements)){ue.warn("Custom elements not supported");return}if(window.customElements.get(t)){ue.warn(`Custom element ${t} already defined`);return}window.customElements.define(t,e)}var k0=J(),T0=pC,N0=hC,A0=fC,I0=mC;const E0=t=>{let e=(0,k0.c)(16),{error:r,badData:n,shadowRoot:a}=t;if(r instanceof yj){let o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o=(0,l.jsx)(Ns,{children:"Bad Data"}),e[0]=o):o=e[0];let s;e[1]===r.issues?s=e[2]:(s=r.issues.map(z0),e[1]=r.issues,e[2]=s);let d;e[3]===s?d=e[4]:(d=(0,l.jsx)("div",{className:"text-md prose dark:prose-invert",children:(0,l.jsx)("ul",{children:s})}),e[3]=s,e[4]=d);let c;e[5]===Symbol.for("react.memo_cache_sentinel")?(c=(0,l.jsx)(I0,{className:"py-2 text-[0.84375rem]",children:"View Data:"}),e[5]=c):c=e[5];let u;e[6]===n?u=e[7]:(u=(0,l.jsx)(gm,{data:n}),e[6]=n,e[7]=u);let p;e[8]!==a||e[9]!==u?(p=(0,l.jsx)(T0,{type:"single",collapsible:!0,children:(0,l.jsxs)(A0,{value:"item-1",className:"text-muted-foreground border-muted-foreground-20",children:[c,(0,l.jsx)(N0,{className:"text-[0.84375rem]",children:(0,l.jsx)(pm,{container:a,children:u})})]})}),e[8]=a,e[9]=u,e[10]=p):p=e[10];let m;return e[11]!==d||e[12]!==p?(m=(0,l.jsxs)(Ri,{variant:"destructive",children:[o,d,p]}),e[11]=d,e[12]=p,e[13]=m):m=e[13],m}let i;return e[14]===r.message?i=e[15]:(i=(0,l.jsx)("div",{children:r.message}),e[14]=r.message,e[15]=i),i};function R0(t,e,r){return(0,l.jsx)(E0,{error:t,badData:e,shadowRoot:r})}function z0(t){let e=t.path.join(".");return(0,l.jsxs)("li",{children:[(0,l.jsx)("span",{className:"font-bold",children:e}),": ",t.message]},e)}function M0({hostElement:t,plugin:e,children:r,getInitialValue:n},a){let[i,o]=(0,_.useState)(r),[s,d]=(0,_.useState)(n()),{theme:c}=Sn(),[u,p]=(0,_.useState)(()=>e.validator.safeParse(Qo(t))),[m,f]=(0,_.useState)(0);(0,_.useImperativeHandle)(a,()=>({reset:()=>{d(n()),p(e.validator.safeParse(Qo(t))),f(w=>w+1)},setChildren:w=>{o(w)}})),ts(t,ES.TYPE,w=>{w.detail.element===t&&d(w.detail.value)}),(0,_.useEffect)(()=>{let w=new MutationObserver(b=>{b.some(v=>{var y;return v.type==="attributes"&&((y=v.attributeName)==null?void 0:y.startsWith("data-"))})&&p(e.validator.safeParse(Qo(t)))});return w.observe(t,{attributes:!0}),()=>{w.disconnect()}},[t,e.validator]);let g=Ue(w=>{d(b=>{let v=ur.asUpdater(w)(b);return S0(v,b)||t.dispatchEvent(Hm(v,t)),v})}),x=(0,_.useMemo)(()=>{if(!e.functions)return{};let w={};for(let[b,v]of $r.entries(e.functions)){let{input:y,output:S}=v;w[b]=async(...j)=>{var A;yn(j.length<=1,`Plugin functions only supports a single argument. Called ${b}`);let k=Cl(t);yn(k,"Object ID should exist");let C=oa(),h=(A=Np.findElementThroughShadowDOMs(t))==null?void 0:A.id,T=h?Np.parse(h):null;if(T&&!C){let R=Ve.get(Ap),z=R.cellRuntime[T],E=R.cellData[T];if(Y2({executionTime:z.runElapsedTimeMs??E.lastExecutionTime,status:z.status,errored:z.errored,interrupted:z.interrupted,stopped:z.stopped}))throw new _S}else ue.warn(`Cell ID ${T} cannot be found`);let N=await Ej.request({args:vc(y,j[0]),functionName:b,namespace:k});if(N.status.code!=="ok")throw ue.error(N.status),Error(N.status.message||"Unknown error");return vc(S,N.return_value)}}return w},[e.functions,t,m]);return u.success?(0,l.jsx)(oC,{children:(0,l.jsx)("div",{className:`contents ${c}`,children:(0,l.jsx)(_.Suspense,{fallback:(0,l.jsx)("div",{}),children:(0,l.jsx)(ca,{children:e.render({setValue:g,value:s,data:u.data,children:i,host:t,functions:x})})})})}):R0(u.error,$r.mapValues(t.dataset,w=>typeof w=="string"?Tp(w):w),t.shadowRoot)}var P0=_.forwardRef(M0),yl=new Map,fc="__custom_marimo_element__";function gc(t){let e=class extends HTMLElement{constructor(){super();B(this,"mounted",!1);B(this,"pluginRef",(0,_.createRef)());B(this,"__type__",fc);this.attachShadow({mode:"open"}),this.copyStyles(),this.observer=new MutationObserver(()=>{var n;(n=this.pluginRef.current)==null||n.setChildren(this.getChildren())})}connectedCallback(){this.isLightDOMChildOfMarimoElement()||(this.mounted||(yn(this.shadowRoot,"Shadow root should exist"),this.root&&this.root.unmount(),this.root=Lh.createRoot(this.shadowRoot),this.mountReactComponent()),this.observer.observe(this,{attributes:!0,childList:!0,subtree:!0,characterData:!0}))}disconnectedCallback(){var n;this.observer.disconnect(),(n=this.root)==null||n.unmount(),this.mounted&&(this.mounted=!1)}isLightDOMChildOfMarimoElement(){let n=this.parentElement;for(;n;){if(jl(n))return!0;n=n.parentElement}return!1}reset(){this.dispatchEvent(Hm(Tp(this.dataset.initialValue),this)),this.rerender()}rerender(){var n;(n=this.pluginRef.current)==null||n.reset()}getChildren(){return this.children.length===0?null:this.children.length===1?qe({html:this.innerHTML,alwaysSanitizeHtml:!1}):Array.from(this.children).map((n,a)=>(0,l.jsx)(_.Fragment,{children:qe({html:n.outerHTML,alwaysSanitizeHtml:!1})},a))}async mountReactComponent(){this.mounted=!0,yn(this.root,"Root must be defined"),this.root.render((0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(fl,{children:(0,l.jsx)(P0,{hostElement:this,plugin:t,ref:this.pluginRef,getInitialValue:()=>$2(this,Tj.INSTANCE),children:this.getChildren()})})}))}async copyStyles(){let n=this.shadowRoot;if(yn(n,"Shadow root should exist"),!this.isAdoptedStyleSheetsSupported()){ue.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser."),this.copyStylesFallback();return}let a=Array.from(document.styleSheets).filter(i=>i.ownerNode instanceof HTMLElement&&i.ownerNode.dataset.viteDevId?!0:xc(i));for(let i of a){let o=i.href??(i.ownerNode instanceof HTMLElement?i.ownerNode.dataset.viteDevId:void 0)??i.title;if(o&&!yl.has(o)){let s=new CSSStyleSheet;try{s.replaceSync(Array.from(i.cssRules).map(d=>d.cssText.includes("@import")?"":d.cssText).join(`
3
3
  `))}catch{}yl.set(o,s)}}if(n.adoptedStyleSheets=[...yl.values()],t.cssStyles){let i=new CSSStyleSheet;i.replaceSync(t.cssStyles.join(`
4
4
  `)),n.adoptedStyleSheets=[...n.adoptedStyleSheets,i]}}copyStylesFallback(){let n=this.shadowRoot;yn(n,"Shadow root should exist"),ue.warn("adoptedStyleSheets not supported, copying stylesheets in a less performance way. Please consider upgrading your browser.");let a=Array.from(document.styleSheets).flatMap(i=>{if(!xc(i))return[];let o=document.createElement("style");try{o.textContent=Array.from(i.cssRules).map(s=>s.cssText).join(`
5
5
  `)}catch{return[]}return[o]});if(n.append(...a),t.cssStyles){let i=document.createElement("style");i.textContent=t.cssStyles.join(`
@@ -35,4 +35,4 @@ ${r}
35
35
  stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rotate-ccw">
36
36
  <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />
37
37
  <path d="M3 3v5h5" />
38
- </svg>`},click:f}];v&&U.push(...Rb(x)),y=!1,S=w,j=zb(U,w.modeBarButtonsToAdd),e[12]=w,e[13]=f,e[14]=x,e[15]=v,e[16]=y,e[17]=S,e[18]=j}else y=e[16],S=e[17],j=e[18];let k;e[19]!==y||e[20]!==S||e[21]!==j?(k={displaylogo:y,...S,modeBarButtonsToAdd:j},e[19]=y,e[20]=S,e[21]=j,e[22]=k):k=e[22];let C=k,h;e[23]===a?h=e[24]:(h=U=>{if("dragmode"in U&&a(X=>({...X,dragmode:U.dragmode})),Object.keys(U).some(Gb)){let X={};Object.entries(U).forEach(Z=>{let[oe,xe]=Z;Pj(X,oe,xe)}),a(Z=>({...Z,...X}))}},e[23]=a,e[24]=h);let T;e[25]===a?T=e[26]:(T=()=>{a(Kb)},e[25]=a,e[26]=T);let N=Ue(T),A;e[27]===a?A=e[28]:(A=U=>{U&&a(X=>({...X,points:Fb(U.points)}))},e[27]=a,e[28]=A);let R=Ue(A),z;e[29]===a?z=e[30]:(z=U=>{U&&a(X=>({...X,points:hp(U.points)}))},e[29]=a,e[30]=z);let E=Ue(z),P;e[31]===a?P=e[32]:(P=U=>{if(!U||!Mb(U.points))return;let X=mp(U.points),Z=up(U.points);a(oe=>({...oe,selections:nr.EMPTY,range:void 0,lasso:void 0,points:X,indices:Z}))},e[31]=a,e[32]=P);let M=Ue(P),F;e[33]===a?F=e[34]:(F=U=>{U&&a(X=>({...X,selections:"selections"in U?U.selections:[],points:mp(U.points),indices:up(U.points),range:U.range,lasso:"lassoPoints"in U?U.lassoPoints:void 0}))},e[33]=a,e[34]=F);let q=Ue(F),Y=d.frames??void 0,W=Ue(Qb),K;return e[35]!==d||e[36]!==c||e[37]!==C||e[38]!==N||e[39]!==R||e[40]!==E||e[41]!==M||e[42]!==q||e[43]!==Y||e[44]!==W||e[45]!==h?(K=(0,l.jsx)(Yb,{...d,layout:c,onRelayout:h,onDeselect:N,onTreemapClick:R,onSunburstClick:E,config:C,onClick:M,onSelected:q,className:"w-full",useResizeHandler:!0,frames:Y,onError:W}),e[35]=d,e[36]=c,e[37]=C,e[38]=N,e[39]=R,e[40]=E,e[41]=M,e[42]=q,e[43]=Y,e[44]=W,e[45]=h,e[46]=K):K=e[46],K});fp.displayName="PlotlyComponent";function Gb(t){return t.includes("xaxis")||t.includes("yaxis")}function Kb(t){return{...t,selections:nr.EMPTY,points:nr.EMPTY,indices:nr.EMPTY,range:void 0,lasso:void 0}}function Qb(t){ue.error("PlotlyPlugin: ",t)}var Xb=J(),Zb=class{constructor(){B(this,"tagName","marimo-radio");B(this,"validator",L({initialValue:I().nullable(),inline:V().default(!1),label:I().nullable(),options:Q(I()),disabled:V().optional()}))}render(t){return(0,l.jsx)(Jb,{...t.data,value:t.value,setValue:t.setValue})}};const Jb=t=>{let e=(0,Xb.c)(18),r=(0,_.useId)(),n=t.label,a=t.inline?"left":"top",i=t.value??"",o=t.setValue,s=t.inline&&"grid-flow-col gap-4",d;e[0]===s?d=e[1]:(d=ee(s),e[0]=s,e[1]=d);let c=t.disabled,u;if(e[2]!==r||e[3]!==t.options){let f;e[5]===r?f=e[6]:(f=(g,x)=>(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(l4,{value:g,id:`${r}-${x.toString()}`}),(0,l.jsx)(fs,{htmlFor:`${r}-${x.toString()}`,className:"text-sm font-normal",children:g})]},x),e[5]=r,e[6]=f),u=t.options.map(f),e[2]=r,e[3]=t.options,e[4]=u}else u=e[4];let p;e[7]!==t.disabled||e[8]!==t.setValue||e[9]!==i||e[10]!==d||e[11]!==u?(p=(0,l.jsx)(o4,{"data-testid":"marimo-plugin-radio",value:i,onValueChange:o,className:d,"aria-label":"Radio Group",disabled:c,children:u}),e[7]=t.disabled,e[8]=t.setValue,e[9]=i,e[10]=d,e[11]=u,e[12]=p):p=e[12];let m;return e[13]!==r||e[14]!==t.label||e[15]!==a||e[16]!==p?(m=(0,l.jsx)(Xe,{label:n,id:r,align:a,children:p}),e[13]=r,e[14]=t.label,e[15]=a,e[16]=p,e[17]=m):m=e[17],m};var ey=J(),gp=_.forwardRef((t,e)=>{let r=(0,ey.c)(56),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:n,valueMap:i,...a}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let[o,s]=Cm(!1),{locale:d}=Ir(),c=_.useRef(!1),u=_.useRef(0),p=_.useRef(0),m;r[4]===Symbol.for("react.memo_cache_sentinel")?(m=[],r[4]=m):m=r[4];let f=_.useRef(m),g;r[5]===Symbol.for("react.memo_cache_sentinel")?(g=[],r[5]=g):g=r[5];let x=_.useRef(g),w=_.useRef(null),b=_.useRef(null),v=_.useRef(null),y;r[6]===e?y=r[7]:(y=Z=>{w.current=Z,typeof e=="function"?e(Z):e&&(e.current=Z)},r[6]=e,r[7]=y);let S=y,j;r[8]!==a.disabled||r[9]!==a.value?(j=Z=>{var oe;!a.value||a.value.length!==2||a.disabled||(Z.preventDefault(),Z.stopPropagation(),c.current=!0,u.current=Z.clientX,p.current=Z.clientY,f.current=[...a.value],x.current=[...a.value],v.current=((oe=b.current)==null?void 0:oe.getBoundingClientRect())??null,Z.currentTarget.setPointerCapture(Z.pointerId))},r[8]=a.disabled,r[9]=a.value,r[10]=j):j=r[10];let k=j,C;r[11]===a?C=r[12]:(C=Z=>{var Je;if(!c.current)return;Z.stopPropagation();let oe=v.current;if(!oe)return;let xe=a.orientation==="vertical",Se=a.min??0,H=a.max??100,ae=H-Se,ne;if(xe){let _e=oe.height;ne=-((Z.clientY-p.current)/_e)*ae}else{let _e=oe.width;ne=(Z.clientX-u.current)/_e*ae}let[re,ce]=f.current,se=ce-re,ie=a.steps,de=ie&&ie.length>1?Math.min(...ie.slice(1).map((_e,Qe)=>_e-ie[Qe])):a.step??1,Ne=Math.round(ne/de)*de,ve=re+Math.max(Se-re,Math.min(H-ce,Ne)),ze=ve+se;x.current=[ve,ze],(Je=a.onValueChange)==null||Je.call(a,[ve,ze])},r[11]=a,r[12]=C);let h=C,T;r[13]===a?T=r[14]:(T=Z=>{var oe;c.current&&(Z.currentTarget.releasePointerCapture(Z.pointerId),c.current=!1,x.current.length===2&&((oe=a.onValueCommit)==null||oe.call(a,x.current)))},r[13]=a,r[14]=T);let N=T,A;r[15]===n?A=r[16]:(A=ee("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",n),r[15]=n,r[16]=A);let R;r[17]===Symbol.for("react.memo_cache_sentinel")?(R=ee("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),r[17]=R):R=r[17];let z;r[18]===Symbol.for("react.memo_cache_sentinel")?(z=ee("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50","hover:cursor-grab active:cursor-grabbing"),r[18]=z):z=r[18];let E;r[19]!==k||r[20]!==h||r[21]!==N?(E=(0,l.jsx)(Ji,{ref:b,"data-testid":"track",className:R,children:(0,l.jsx)(el,{"data-testid":"range",className:z,onPointerDown:k,onPointerMove:h,onPointerUp:N})}),r[19]=k,r[20]=h,r[21]=N,r[22]=E):E=r[22];let P;r[23]!==s.setFalse||r[24]!==s.setTrue?(P=(0,l.jsx)(vs,{asChild:!0,children:(0,l.jsx)(va,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:s.setTrue,onBlur:s.setFalse,onMouseEnter:s.setTrue,onMouseLeave:s.setFalse})}),r[23]=s.setFalse,r[24]=s.setTrue,r[25]=P):P=r[25];let M;r[26]!==d||r[27]!==a.value||r[28]!==i?(M=a.value!=null&&a.value.length===2&&(0,l.jsx)(xs,{children:_n(i(a.value[0]),{locale:d})},a.value[0]),r[26]=d,r[27]=a.value,r[28]=i,r[29]=M):M=r[29];let F;r[30]===M?F=r[31]:(F=(0,l.jsx)(ws,{children:M}),r[30]=M,r[31]=F);let q;r[32]!==o||r[33]!==P||r[34]!==F?(q=(0,l.jsx)(ca,{children:(0,l.jsxs)(gs,{delayDuration:0,open:o,children:[P,F]})}),r[32]=o,r[33]=P,r[34]=F,r[35]=q):q=r[35];let Y;r[36]!==s.setFalse||r[37]!==s.setTrue?(Y=(0,l.jsx)(vs,{asChild:!0,children:(0,l.jsx)(va,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:s.setTrue,onBlur:s.setFalse,onMouseEnter:s.setTrue,onMouseLeave:s.setFalse})}),r[36]=s.setFalse,r[37]=s.setTrue,r[38]=Y):Y=r[38];let W;r[39]!==d||r[40]!==a.value||r[41]!==i?(W=a.value!=null&&a.value.length===2&&(0,l.jsx)(xs,{children:_n(i(a.value[1]),{locale:d})},a.value[1]),r[39]=d,r[40]=a.value,r[41]=i,r[42]=W):W=r[42];let K;r[43]===W?K=r[44]:(K=(0,l.jsx)(ws,{children:W}),r[43]=W,r[44]=K);let U;r[45]!==o||r[46]!==Y||r[47]!==K?(U=(0,l.jsx)(ca,{children:(0,l.jsxs)(gs,{delayDuration:0,open:o,children:[Y,K]})}),r[45]=o,r[46]=Y,r[47]=K,r[48]=U):U=r[48];let X;return r[49]!==S||r[50]!==a||r[51]!==E||r[52]!==q||r[53]!==U||r[54]!==A?(X=(0,l.jsxs)(xa,{ref:S,className:A,...a,children:[E,q,U]}),r[49]=S,r[50]=a,r[51]=E,r[52]=q,r[53]=U,r[54]=A,r[55]=X):X=r[55],X});gp.displayName=xa.displayName;var ty=J(),ry=class{constructor(){B(this,"tagName","marimo-range-slider");B(this,"validator",L({initialValue:Q(O()),label:I().nullable(),start:O(),stop:O(),step:O().optional(),steps:Q(O()).nullable(),debounce:V().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:V().default(!1),fullWidth:V().default(!1),disabled:V().optional()}))}render(t){let e=r=>t.data.steps&&t.data.steps.length>0?t.data.steps[r]:r;return(0,l.jsx)(ny,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},ny=t=>{let e=(0,ty.c)(50),{label:r,setValue:n,value:a,start:i,stop:o,step:s,debounce:d,orientation:c,showValue:u,fullWidth:p,disabled:m,valueMap:f}=t,g=(0,_.useId)(),{locale:x}=Ir(),[w,b]=(0,_.useState)(a),v,y;e[0]===a?(v=e[1],y=e[2]):(v=()=>{b(a)},y=[a],e[0]=a,e[1]=v,e[2]=y),(0,_.useEffect)(v,y);let S=c==="horizontal"?"left":"top",j=p&&"my-1 w-full",k;e[3]===j?k=e[4]:(k=ee(j),e[3]=j,e[4]=k);let C=c==="vertical"&&"items-end inline-flex justify-center self-center mx-2",h=p&&"w-full",T;e[5]!==C||e[6]!==h?(T=ee("flex items-center gap-2",C,h),e[5]=C,e[6]=h,e[7]=T):T=e[7];let N=!p&&"data-[orientation=horizontal]:w-36 ",A;e[8]===N?A=e[9]:(A=ee("relative flex items-center select-none",N,"data-[orientation=vertical]:h-36"),e[8]=N,e[9]=A);let R,z;e[10]!==d||e[11]!==n?(R=W=>{b(W),d||n(W)},z=W=>{d&&n(W)},e[10]=d,e[11]=n,e[12]=R,e[13]=z):(R=e[12],z=e[13]);let E,P;e[14]!==d||e[15]!==w||e[16]!==n||e[17]!==a?(E=()=>{d&&!gi(w,a)&&n(w)},P=()=>{d&&!gi(w,a)&&n(w)},e[14]=d,e[15]=w,e[16]=n,e[17]=a,e[18]=E,e[19]=P):(E=e[18],P=e[19]);let M;e[20]!==m||e[21]!==g||e[22]!==w||e[23]!==c||e[24]!==i||e[25]!==s||e[26]!==o||e[27]!==A||e[28]!==R||e[29]!==z||e[30]!==E||e[31]!==P||e[32]!==f?(M=(0,l.jsx)(gp,{id:g,className:A,value:w,min:i,max:o,step:s,orientation:c,disabled:m,onValueChange:R,onValueCommit:z,onPointerUp:E,onMouseUp:P,valueMap:f}),e[20]=m,e[21]=g,e[22]=w,e[23]=c,e[24]=i,e[25]=s,e[26]=o,e[27]=A,e[28]=R,e[29]=z,e[30]=E,e[31]=P,e[32]=f,e[33]=M):M=e[33];let F;e[34]!==w||e[35]!==x||e[36]!==u||e[37]!==f?(F=u&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${_n(f(w[0]),{locale:x})}, ${_n(f(w[1]),{locale:x})}`}),e[34]=w,e[35]=x,e[36]=u,e[37]=f,e[38]=F):F=e[38];let q;e[39]!==M||e[40]!==F||e[41]!==T?(q=(0,l.jsxs)("div",{className:T,children:[M,F]}),e[39]=M,e[40]=F,e[41]=T,e[42]=q):q=e[42];let Y;return e[43]!==p||e[44]!==g||e[45]!==r||e[46]!==q||e[47]!==S||e[48]!==k?(Y=(0,l.jsx)(Xe,{label:r,id:g,align:S,className:k,fullWidth:p,children:q}),e[43]=p,e[44]=g,e[45]=r,e[46]=q,e[47]=S,e[48]=k,e[49]=Y):Y=e[49],Y},Lo=Br(Go(((t,e)=>{e.exports=a;var r={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},n={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function a(c,u,p){p=Object.assign({},r,p||{}),(typeof c=="number"||c.match(/^[-+]?[0-9.]+$/g))&&(c=parseInt(c)+"ms");let m=0,f=i(p),g=c.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(g===null)throw Error(`The value [${c}] could not be parsed by timestring`);return g.forEach(x=>{let w=x.match(/[0-9.]+/g)[0],b=x.match(/[a-z]+/g)[0];m+=s(w,b,f)}),u?d(m,u,f):m}function i(c){let u={ms:.001,s:1,m:60,h:3600};return u.d=c.hoursPerDay*u.h,u.w=c.daysPerWeek*u.d,u.mth=c.daysPerYear/c.monthsPerYear*u.d,u.y=c.daysPerYear*u.d,u}function o(c){for(let u of Object.keys(n))if(n[u].indexOf(c)>-1)return u;throw Error(`The unit [${c}] is not supported by timestring`)}function s(c,u,p){return c*p[o(u)]}function d(c,u,p){return c/p[o(u)]}}))(),1),ea=.1,xp=I().superRefine((t,e)=>{try{(0,Lo.default)(t)<ea&&e.addIssue({code:Fp.custom,message:`Must be greater than ${ea} seconds.`});return}catch{e.addIssue({code:Fp.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),ay=class{constructor(){B(this,"tagName","marimo-refresh");B(this,"validator",L({options:Q(Te([xp,O().min(ea)])).default([]),defaultInterval:Te([xp,O().min(ea)]).optional(),label:I().nullable()}))}render(t){return(0,l.jsx)(ly,{...t})}},si="off",iy=0,ly=({setValue:t,data:e})=>{let[r,n]=(0,_.useState)(e.defaultInterval??si);(0,_.useEffect)(()=>{n(e.defaultInterval??si)},[e.defaultInterval]);let[a,i]=(0,_.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${r} (${iy++})`),setTimeout(()=>i(!1),500)});(0,_.useEffect)(()=>{if(r===si)return;let c=typeof r=="number"?r:/[a-z]/.test(r)?(0,Lo.default)(r):(0,Lo.default)(`${r}s`);c=Math.max(c,ea);let u=setInterval(o,c*1e3);return()=>clearInterval(u)},[r,o]);let s="shadow-none! hover:shadow-none! focus:shadow-none! active:shadow-none!",d=e.options.length>0;return(0,l.jsx)(Xe,{label:e.label,children:(0,l.jsxs)("span",{className:"inline-flex items-center text-secondary-foreground rounded shadow-sm-solid",children:[(0,l.jsx)(Fe,{"data-testid":"marimo-plugin-refresh-button",variant:"secondary",size:"icon",className:ee(s,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,l.jsx)(Z4,{className:ee("w-3.5 h-3.5",a&&"animate-spin")})}),(0,l.jsxs)(ds,{"data-testid":"marimo-plugin-refresh-select",onChange:c=>{n(c.target.value)},value:r,className:ee(s,"border mb-0 bg-secondary rounded rounded-tl-none rounded-bl-none hover:bg-secondary/60",!d&&"hidden"),children:[(0,l.jsx)("option",{value:si,children:"off"}),e.options.map(c=>(0,l.jsx)("option",{value:c,children:typeof c=="number"?`${c}s`:c},c))]})]})})},oy=J(),sy=class{constructor(){B(this,"tagName","marimo-slider");B(this,"validator",L({initialValue:O(),label:I().nullable(),start:O(),stop:O(),step:O().optional(),steps:Q(O()).nullable(),debounce:V().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:V().default(!1),fullWidth:V().default(!1),includeInput:V().default(!1),disabled:V().optional()}))}render(t){let e=r=>t.data.steps&&t.data.steps.length>0?t.data.steps[r]:r;return(0,l.jsx)(dy,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},dy=t=>{let e=(0,oy.c)(54),{label:r,setValue:n,value:a,start:i,stop:o,step:s,debounce:d,orientation:c,showValue:u,fullWidth:p,valueMap:m,includeInput:f,disabled:g}=t,x=(0,_.useId)(),{locale:w}=Ir(),[b,v]=(0,_.useState)(a),y,S;e[0]===a?(y=e[1],S=e[2]):(y=()=>{v(a)},S=[a],e[0]=a,e[1]=y,e[2]=S),(0,_.useEffect)(y,S);let j=c==="horizontal"?"left":"top",k=p&&"my-1 w-full",C;e[3]===k?C=e[4]:(C=ee(k),e[3]=k,e[4]=C);let h=c==="vertical"&&"items-end inline-flex justify-center self-center mx-2",T;e[5]===h?T=e[6]:(T=ee("flex items-center gap-2",h),e[5]=h,e[6]=T);let N=!p&&"data-[orientation=horizontal]:w-36 ",A;e[7]===N?A=e[8]:(A=ee("relative flex items-center select-none",N,"data-[orientation=vertical]:h-36"),e[7]=N,e[8]=A);let R;e[9]===b?R=e[10]:(R=[b],e[9]=b,e[10]=R);let z,E;e[11]!==d||e[12]!==n?(z=W=>{let[K]=W;v(K),d||n(K)},E=W=>{let[K]=W;d&&n(K)},e[11]=d,e[12]=n,e[13]=z,e[14]=E):(z=e[13],E=e[14]);let P;e[15]!==g||e[16]!==x||e[17]!==c||e[18]!==i||e[19]!==s||e[20]!==o||e[21]!==R||e[22]!==z||e[23]!==E||e[24]!==A||e[25]!==m?(P=(0,l.jsx)(_l,{id:x,className:A,value:R,min:i,max:o,step:s,orientation:c,onValueChange:z,onValueCommit:E,valueMap:m,disabled:g}),e[15]=g,e[16]=x,e[17]=c,e[18]=i,e[19]=s,e[20]=o,e[21]=R,e[22]=z,e[23]=E,e[24]=A,e[25]=m,e[26]=P):P=e[26];let M;e[27]!==b||e[28]!==w||e[29]!==u||e[30]!==m?(M=u&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:_n(m(b),{locale:w})}),e[27]=b,e[28]=w,e[29]=u,e[30]=m,e[31]=M):M=e[31];let F;e[32]!==g||e[33]!==f||e[34]!==b||e[35]!==r||e[36]!==n||e[37]!==i||e[38]!==s||e[39]!==o||e[40]!==m?(F=f&&(0,l.jsx)(Rm,{value:m(b),onChange:W=>{(W==null||Number.isNaN(W))&&(W=Number(i)),v(W),n(W)},minValue:i,maxValue:o,step:s,className:"w-24","aria-label":`${r||"Slider"} value input`,isDisabled:g}),e[32]=g,e[33]=f,e[34]=b,e[35]=r,e[36]=n,e[37]=i,e[38]=s,e[39]=o,e[40]=m,e[41]=F):F=e[41];let q;e[42]!==P||e[43]!==M||e[44]!==F||e[45]!==T?(q=(0,l.jsxs)("div",{className:T,children:[P,M,F]}),e[42]=P,e[43]=M,e[44]=F,e[45]=T,e[46]=q):q=e[46];let Y;return e[47]!==p||e[48]!==x||e[49]!==r||e[50]!==q||e[51]!==j||e[52]!==C?(Y=(0,l.jsx)(Xe,{label:r,id:x,align:j,fullWidth:p,className:C,children:q}),e[47]=p,e[48]=x,e[49]=r,e[50]=q,e[51]=j,e[52]=C,e[53]=Y):Y=e[53],Y},cy=J(),uy=class{constructor(){B(this,"tagName","marimo-switch");B(this,"validator",L({initialValue:V(),label:I().nullable(),disabled:V().optional()}))}render(t){return(0,l.jsx)(py,{...t})}},py=t=>{let e=(0,cy.c)(9),{value:r,setValue:n,data:a}=t,i=(0,_.useId)(),o;e[0]!==a.disabled||e[1]!==i||e[2]!==n||e[3]!==r?(o=(0,l.jsx)(aC,{"data-testid":"marimo-plugin-switch",checked:r,onCheckedChange:n,id:i,className:"data-[state=unchecked]:hover:bg-input/80 mb-0",disabled:a.disabled}),e[0]=a.disabled,e[1]=i,e[2]=n,e[3]=r,e[4]=o):o=e[4];let s;return e[5]!==a.label||e[6]!==i||e[7]!==o?(s=(0,l.jsx)(Xe,{label:a.label,align:"right",id:i,labelClassName:"ml-1",children:o}),e[5]=a.label,e[6]=i,e[7]=o,e[8]=s):s=e[8],s},my=J(),hy=class{constructor(){B(this,"tagName","marimo-tabs");B(this,"validator",L({tabs:Q(I()),label:I().nullable(),orientation:ye(["horizontal","vertical"]).default("horizontal")}))}render(t){return(0,l.jsx)(fy,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},fy=t=>{let e=(0,my.c)(33),{tabs:r,label:n,orientation:a,value:i,setValue:o,children:s}=t,[d,c]=_.useState(i||"0"),u;e[0]===o?u=e[1]:(u=A=>{c(A),o(A)},e[0]=o,e[1]=u);let p=u;i!==d&&i&&c(i);let m=a==="vertical",f;e[2]===s?f=e[3]:(f=s==null?[]:Array.isArray(s)?s:[s],e[2]=s,e[3]=f);let g=f,x=m&&"flex flex-row gap-3",w;e[4]===x?w=e[5]:(w=ee(x),e[4]=x,e[5]=w);let b=m?"flex flex-col items-stretch justify-start h-auto max-h-none shrink-0 min-w-[10rem] overflow-y-auto":"max-w-full overflow-x-auto justify-start",v;e[6]===b?v=e[7]:(v=ee("scrollbar-thin",b),e[6]=b,e[7]=v);let y;if(e[8]!==m||e[9]!==r){let A;e[11]===m?A=e[12]:(A=(R,z)=>(0,l.jsx)(rr,{value:z.toString(),className:ee(m&&"w-full justify-start"),children:qe({html:R})},z),e[11]=m,e[12]=A),y=r.map(A),e[8]=m,e[9]=r,e[10]=y}else y=e[10];let S;e[13]!==v||e[14]!==y?(S=(0,l.jsx)(sa,{className:v,children:y}),e[13]=v,e[14]=y,e[15]=S):S=e[15];let j=m&&"flex-1 min-w-0",k;e[16]===j?k=e[17]:(k=ee(j),e[16]=j,e[17]=k);let C;e[18]===g?C=e[19]:(C=g.map(gy),e[18]=g,e[19]=C);let h;e[20]!==k||e[21]!==C?(h=(0,l.jsx)("div",{className:k,children:C}),e[20]=k,e[21]=C,e[22]=h):h=e[22];let T;e[23]!==p||e[24]!==d||e[25]!==a||e[26]!==h||e[27]!==w||e[28]!==S?(T=(0,l.jsxs)(jn,{value:d,onValueChange:p,orientation:a,className:w,children:[S,h]}),e[23]=p,e[24]=d,e[25]=a,e[26]=h,e[27]=w,e[28]=S,e[29]=T):T=e[29];let N;return e[30]!==n||e[31]!==T?(N=(0,l.jsx)(Xe,{label:n,align:"top",fullWidth:!0,children:T}),e[30]=n,e[31]=T,e[32]=N):N=e[32],N};function gy(t,e){return(0,l.jsx)(Ot,{value:e.toString(),children:t},e)}var xy=J(),vy=class{constructor(){B(this,"tagName","marimo-text-area");B(this,"validator",L({initialValue:I(),placeholder:I(),label:I().nullable(),maxLength:O().optional(),minLength:O().optional(),disabled:V().optional(),debounce:Pp(Te([V(),O()])),rows:O().default(4),fullWidth:V().default(!1)}))}render(t){return(0,l.jsx)(wy,{...t.data,value:t.value,setValue:t.setValue})}},wy=t=>{let e=(0,xy.c)(57),r;e[0]!==t.maxLength||e[1]!==t.value?(r=t.maxLength?(0,l.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[0]=t.maxLength,e[1]=t.value,e[2]=r):r=e[2];let n=r;if(t.debounce===!0){let p=t.label,m=t.fullWidth,f;e[3]===t.fullWidth?f=e[4]:(f=ee("font-code",{"w-full":t.fullWidth}),e[3]=t.fullWidth,e[4]=f);let g=t.minLength!=null&&t.minLength>0,x;e[5]!==n||e[6]!==t.disabled||e[7]!==t.maxLength||e[8]!==t.minLength||e[9]!==t.placeholder||e[10]!==t.rows||e[11]!==t.setValue||e[12]!==t.value||e[13]!==f||e[14]!==g?(x=(0,l.jsx)(iS,{className:f,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:n,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder}),e[5]=n,e[6]=t.disabled,e[7]=t.maxLength,e[8]=t.minLength,e[9]=t.placeholder,e[10]=t.rows,e[11]=t.setValue,e[12]=t.value,e[13]=f,e[14]=g,e[15]=x):x=e[15];let w;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==x?(w=(0,l.jsx)(Xe,{label:p,align:"top",fullWidth:m,children:x}),e[16]=t.fullWidth,e[17]=t.label,e[18]=x,e[19]=w):w=e[19],w}if(typeof t.debounce=="number"){let p=t.label,m=t.fullWidth,f;e[20]===t.fullWidth?f=e[21]:(f=ee("font-code",{"w-full":t.fullWidth}),e[20]=t.fullWidth,e[21]=f);let g=t.minLength!=null&&t.minLength>0,x;e[22]!==n||e[23]!==t.debounce||e[24]!==t.disabled||e[25]!==t.maxLength||e[26]!==t.minLength||e[27]!==t.placeholder||e[28]!==t.rows||e[29]!==t.setValue||e[30]!==t.value||e[31]!==f||e[32]!==g?(x=(0,l.jsx)(oS,{className:f,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:n,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder,delay:t.debounce}),e[22]=n,e[23]=t.debounce,e[24]=t.disabled,e[25]=t.maxLength,e[26]=t.minLength,e[27]=t.placeholder,e[28]=t.rows,e[29]=t.setValue,e[30]=t.value,e[31]=f,e[32]=g,e[33]=x):x=e[33];let w;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==x?(w=(0,l.jsx)(Xe,{label:p,align:"top",fullWidth:m,children:x}),e[34]=t.fullWidth,e[35]=t.label,e[36]=x,e[37]=w):w=e[37],w}let a=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=ee("font-code",{"w-full":t.fullWidth}),e[38]=t.fullWidth,e[39]=o);let s=t.minLength!=null&&t.minLength>0,d;e[40]===t?d=e[41]:(d=p=>t.setValue(p.target.value),e[40]=t,e[41]=d);let c;e[42]!==n||e[43]!==t.disabled||e[44]!==t.maxLength||e[45]!==t.minLength||e[46]!==t.placeholder||e[47]!==t.rows||e[48]!==t.value||e[49]!==o||e[50]!==s||e[51]!==d?(c=(0,l.jsx)(lS,{className:o,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:s,disabled:t.disabled,bottomAdornment:n,value:t.value,onInput:d,placeholder:t.placeholder}),e[42]=n,e[43]=t.disabled,e[44]=t.maxLength,e[45]=t.minLength,e[46]=t.placeholder,e[47]=t.rows,e[48]=t.value,e[49]=o,e[50]=s,e[51]=d,e[52]=c):c=e[52];let u;return e[53]!==t.fullWidth||e[54]!==t.label||e[55]!==c?(u=(0,l.jsx)(Xe,{label:a,align:"top",fullWidth:i,children:c}),e[53]=t.fullWidth,e[54]=t.label,e[55]=c,e[56]=u):u=e[56],u},by=J(),yy="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",jy=class{constructor(){B(this,"tagName","marimo-text");B(this,"validator",L({initialValue:I(),placeholder:I(),label:I().nullable(),kind:ye(["text","password","email","url"]).default("text"),maxLength:O().optional(),minLength:O().optional(),fullWidth:V().default(!1),disabled:V().optional(),debounce:Pp(Te([V(),O()])),passwordHasValue:V().optional()}))}render(t){var r;let e=t.data.kind==="password"?(r=t.host.closest(`[${Wr}]`))==null?void 0:r.getAttribute(Wr):void 0;return(0,l.jsx)(Cy,{...t.data,value:t.value,setValue:t.setValue},e??void 0)}},Cy=t=>{let e=(0,by.c)(60),[r,n]=(0,_.useState)(t.kind==="password"&&t.passwordHasValue===!0),a=(0,_.useRef)(!1),i=r?"":t.value,o=r?yy:t.placeholder,s;e[0]!==r||e[1]!==t?(s=r?h=>{a.current&&(n(!1),t.setValue(h))}:t.setValue,e[0]=r,e[1]=t,e[2]=s):s=e[2];let d=s,c;e[3]===r?c=e[4]:(c=r?()=>{a.current=!0}:void 0,e[3]=r,e[4]=c);let u=c,[p,m]=(0,_.useState)(t.value),f=p??i,g=Sy(t.kind,f),x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={text:null,password:(0,l.jsx)(Q4,{size:16}),email:(0,l.jsx)(I4,{size:16}),url:(0,l.jsx)(G4,{size:16})},e[5]=x):x=e[5];let w=x,b;e[6]!==t.maxLength||e[7]!==i?(b=t.maxLength?(0,l.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[i.length,"/",t.maxLength]}):null,e[6]=t.maxLength,e[7]=i,e[8]=b):b=e[8];let v=b,y=!g,S;e[9]!==t.fullWidth||e[10]!==y?(S=ee({"border-destructive":y,"w-full":t.fullWidth}),e[9]=t.fullWidth,e[10]=y,e[11]=S):S=e[11];let j=S,k;if(t.debounce===!0){let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[12]!==v||e[13]!==j||e[14]!==u||e[15]!==o||e[16]!==t.disabled||e[17]!==t.kind||e[18]!==t.maxLength||e[19]!==t.minLength||e[20]!==d||e[21]!==h||e[22]!==T||e[23]!==i?(N=(0,l.jsx)(J4,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onValueChange:d,onInputCapture:u}),e[12]=v,e[13]=j,e[14]=u,e[15]=o,e[16]=t.disabled,e[17]=t.kind,e[18]=t.maxLength,e[19]=t.minLength,e[20]=d,e[21]=h,e[22]=T,e[23]=i,e[24]=N):N=e[24],k=N}else if(typeof t.debounce=="number"){let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=R=>m(R.currentTarget.value),e[25]=N):N=e[25];let A;e[26]!==v||e[27]!==j||e[28]!==u||e[29]!==o||e[30]!==t.debounce||e[31]!==t.disabled||e[32]!==t.kind||e[33]!==t.maxLength||e[34]!==t.minLength||e[35]!==d||e[36]!==h||e[37]!==T||e[38]!==i?(A=(0,l.jsx)(ks,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onValueChange:d,onBlur:N,delay:t.debounce,onInputCapture:u}),e[26]=v,e[27]=j,e[28]=u,e[29]=o,e[30]=t.debounce,e[31]=t.disabled,e[32]=t.kind,e[33]=t.maxLength,e[34]=t.minLength,e[35]=d,e[36]=h,e[37]=T,e[38]=i,e[39]=A):A=e[39],k=A}else{let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[40]===d?N=e[41]:(N=z=>d(z.currentTarget.value),e[40]=d,e[41]=N);let A;e[42]===Symbol.for("react.memo_cache_sentinel")?(A=z=>m(z.currentTarget.value),e[42]=A):A=e[42];let R;e[43]!==v||e[44]!==j||e[45]!==u||e[46]!==o||e[47]!==t.disabled||e[48]!==t.kind||e[49]!==t.maxLength||e[50]!==t.minLength||e[51]!==h||e[52]!==T||e[53]!==N||e[54]!==i?(R=(0,l.jsx)(tS,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onInput:N,onBlur:A,onInputCapture:u}),e[43]=v,e[44]=j,e[45]=u,e[46]=o,e[47]=t.disabled,e[48]=t.kind,e[49]=t.maxLength,e[50]=t.minLength,e[51]=h,e[52]=T,e[53]=N,e[54]=i,e[55]=R):R=e[55],k=R}let C;return e[56]!==k||e[57]!==t.fullWidth||e[58]!==t.label?(C=(0,l.jsx)(Xe,{label:t.label,fullWidth:t.fullWidth,children:k}),e[56]=k,e[57]=t.fullWidth,e[58]=t.label,e[59]=C):C=e[59],C};function Sy(t,e){if(!e)return!0;switch(t){case"email":return I().email().safeParse(e).success;case"url":return I().url().safeParse(e).success;default:return!0}}var _y=_.lazy(()=>yt(()=>import("./vega-component-C9fDGx86.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,138,13,8,9,10,11,139,140,141,142,72,6,7,12,14,15,22,18,36,35,34,24,25,26,27,28,29,30,32,90,361,91,75,92,163,40,41,117,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,57,20,123,60,61,62]),import.meta.url)),ky=class{constructor(){B(this,"tagName","marimo-vega");B(this,"validator",L({spec:L({}).passthrough().transform(t=>t),chartSelection:Te([V(),Ke("point"),Ke("interval")]).default(!0),fieldSelection:Te([V(),Q(I())]).default(!0),embedOptions:L({}).passthrough().default({})}))}render(t){return(0,l.jsx)(_y,{value:t.value,setValue:t.setValue,...t.data})}},Ty=J(),Ny=class{constructor(){B(this,"tagName","marimo-accordion");B(this,"validator",L({labels:Q(I()),multiple:V()}))}render(t){return(0,l.jsx)(Ay,{...t.data,children:t.children})}},Ay=t=>{let e=(0,Ty.c)(8),{labels:r,multiple:n,children:a}=t,i=n?"multiple":"single",o;if(e[0]!==a||e[1]!==r){let d;e[3]===r?d=e[4]:(d=(c,u)=>(0,l.jsxs)(Xp,{value:u.toString(),children:[(0,l.jsx)(Qp,{className:"py-2 text-md",children:qe({html:r[u]})}),(0,l.jsx)(Zp,{className:"text-md",children:c})]},u),e[3]=r,e[4]=d),o=_.Children.map(a,d),e[0]=a,e[1]=r,e[2]=o}else o=e[2];let s;return e[5]!==o||e[6]!==i?(s=(0,l.jsx)(ss,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=s):s=e[7],s};const Iy=as("border rounded-lg p-12 mt-12 mb-12 text-foreground shadow-[4px_4px_0px_0px]",{variants:{kind:{neutral:"border-(--slate-9) shadow-(color:--slate-8)",alert:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",info:"bg-(--sky-1) border-(--sky-8) shadow-(color:--sky-7)",danger:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",warn:"bg-(--amber-2) border-(--amber-9) shadow-(color:--amber-8)",success:"bg-(--grass-2) border-(--grass-9) shadow-(color:--grass-8)"}},defaultVariants:{kind:"neutral"}});var Ey=J();const vp=(0,_.memo)(t=>{let e=(0,Ey.c)(7),{html:r,kind:n}=t,a;e[0]===n?a=e[1]:(a=Iy({kind:n}),e[0]=n,e[1]=a);let i;e[2]===r?i=e[3]:(i=(0,l.jsx)(QC,{html:r,alwaysSanitizeHtml:!0}),e[2]=r,e[3]=i);let o;return e[4]!==a||e[5]!==i?(o=(0,l.jsx)("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=o):o=e[6],o});vp.displayName="CalloutOutput";var Ry=class{constructor(){B(this,"tagName","marimo-callout-output");B(this,"validator",L({html:I(),kind:wc}))}render({data:t}){return(0,l.jsx)(vp,{html:t.html,kind:t.kind})}},zy=":root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}",My=".swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}",Py=".swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}",Fy='.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}',Ly=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',Oy=".mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex;& .output{max-width:100%;width:unset;margin:auto 0}&>:only-child>.output:only-child{flex:1}& div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important;@media (width>=500px){min-width:350px}}}",Vy=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px;& .swiper-button-next,& .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0;&.swiper-button-disabled{opacity:0}&:hover:not(.swiper-button-disabled){opacity:1}}}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:host:host{display:initial}',Dy=class{constructor(){B(this,"tagName","marimo-carousel");B(this,"validator",L({index:I().nullish(),height:Te([I(),O()]).nullish()}));B(this,"cssStyles",[Ly,Fy,zy,My,Py,Oy,Vy])}render(t){return(0,l.jsx)(Hy,{...t.data,wrapAround:!0,children:t.children})}},Hy=_.lazy(()=>yt(()=>import("./swiper-component-DXTq6N70.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([362,12,13,8,9,10,11,6,7,162,43,44,41,26,363,364]),import.meta.url));const By=Rt("marimo-download").withData(L({data:I(),disabled:V().default(!1),filename:I().nullish(),label:I().nullish(),lazy:V().default(!1)})).withFunctions({load:ot.input(L({})).output(L({data:I(),filename:I().nullish()}))}).renderer(t=>(0,l.jsx)(Wy,{data:t.data,...t.functions}));var Wy=({data:t,load:e})=>{let[r,n]=(0,_.useState)(!1),a=async s=>{if(t.lazy&&!t.disabled){s.preventDefault(),n(!0);try{let d=await e({});n4(d.data,d.filename||t.filename||"download")}catch(d){At({title:"Failed to download",description:"Please try again."}),ue.error("Failed to download:",d)}finally{n(!1)}}},i=r?Ti:PC,o=t.label?qe({html:t.label}):"Download";return(0,l.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:a,className:bs({variant:"secondary",disabled:t.disabled||r}),children:[(0,l.jsx)(i,{className:ee("w-3 h-3",t.label&&"mr-2",r&&"animate-spin")}),o]})},$y=_.lazy(()=>yt(()=>import("./ImageComparisonComponent-nhywlX8O.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([365,8,9,10,11]),import.meta.url)),Uy=class{constructor(){B(this,"tagName","marimo-image-comparison");B(this,"validator",L({beforeSrc:I(),afterSrc:I(),value:O().min(0).max(100).default(50),direction:ye(["horizontal","vertical"]).default("horizontal"),width:I().optional(),height:I().optional()}))}render(t){return(0,l.jsx)(_.Suspense,{fallback:(0,l.jsx)("div",{children:"Loading image comparison..."}),children:(0,l.jsx)($y,{...t.data})})}},qy=class{constructor(){B(this,"tagName","marimo-json-output");B(this,"validator",L({name:I().nullish(),jsonData:Cr(),valueTypes:ye(["json","python"]).default("python")}))}render({data:t,host:e}){let r=t.name===void 0?!1:t.name||"";return(0,l.jsx)(pm,{container:e.shadowRoot,children:(0,l.jsx)(gm,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:r})})}},Yy=J();const Gy=Rt("marimo-lazy").withData(L({showLoadingIndicator:V().default(!1)})).withFunctions({load:ot.input(L({})).output(L({html:I()}))}).renderer(t=>(0,l.jsx)(Ky,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var Ky=t=>{let e=(0,Yy.c)(15),{load:r,showLoadingIndicator:n,value:a,setValue:i}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={threshold:0,root:null,rootMargin:"0px"},e[0]=o):o=e[0];let[s,d]=EC(o);d!=null&&d.isIntersecting&&!a&&i(!0);let c;e[1]!==r||e[2]!==a?(c=w=>a?r({}):(w.previous(),Promise.resolve(void 0)),e[1]=r,e[2]=a,e[3]=c):c=e[3];let u;e[4]===a?u=e[5]:(u=[a],e[4]=a,e[5]=u);let{data:p,error:m,isPending:f}=Ht(c,u);if(m){let w;return e[6]===m?w=e[7]:(w=(0,l.jsx)(ma,{error:m}),e[6]=m,e[7]=w),w}let g;e[8]!==p||e[9]!==f||e[10]!==n?(g=f&&n?(0,l.jsx)(Ti,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):p&&qe({html:p.html}),e[8]=p,e[9]=f,e[10]=n,e[11]=g):g=e[11];let x;return e[12]!==s||e[13]!==g?(x=(0,l.jsx)("div",{ref:s,className:"min-h-4",children:g}),e[12]=s,e[13]=g,e[14]=x):x=e[14],x},Qy=class{constructor(){B(this,"tagName","marimo-mime-renderer");B(this,"validator",L({mime:I().transform(t=>t),data:Te([I(),bn(),pt(I(),Cr()),Q(Yt())]).transform(t=>t)}))}render({data:t}){return t.data?(0,l.jsx)(GC,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,l.jsx)("div",{})}},Xy=class{constructor(){B(this,"tagName","marimo-mermaid");B(this,"validator",L({diagram:I(),theme:I().optional(),theme_variables:pt(I(),I()).optional()}))}render(t){return(0,l.jsx)(Zy,{diagram:t.data.diagram,theme:t.data.theme,themeVariables:t.data.theme_variables})}},Zy=(0,_.lazy)(()=>yt(()=>import("./mermaid-CZhfODkT.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([366,4,14,13,8,9,10,11,15,25,90,26,91,75,12,6,7,92,30,40,24,27,28,29,367,368,369,370,346,371,357,355,372,58,96,335,373,374,375,376,377,378,379,380,381,358,351,356]),import.meta.url)),Jy=J(),e2=t=>{let e=(0,Jy.c)(12),{label:r}=t,{items:n}=xi(K2),a;e[0]===n?a=e[1]:(a=QS(n),e[0]=n,e[1]=a);let{activeHeaderId:i,activeOccurrences:o}=GS(a);if(n.length===0){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)("div",{className:"text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg",children:"No outline found. Add markdown headings to your notebook to create an outline."}),e[2]=u):u=e[2],u}let s;e[3]===r?s=e[4]:(s=r&&(0,l.jsx)("div",{className:"px-4 py-2 border-b border-border font-medium text-sm",children:r}),e[3]=r,e[4]=s);let d;e[5]!==i||e[6]!==o||e[7]!==n?(d=(0,l.jsx)(KS,{className:"max-h-[400px]",items:n,activeHeaderId:i,activeOccurrences:o}),e[5]=i,e[6]=o,e[7]=n,e[8]=d):d=e[8];let c;return e[9]!==s||e[10]!==d?(c=(0,l.jsxs)("div",{className:"border border-border rounded-lg",children:[s,d]}),e[9]=s,e[10]=d,e[11]=c):c=e[11],c},t2=class{constructor(){B(this,"tagName","marimo-outline");B(this,"validator",L({label:I().optional()}))}render(t){let{label:e}=t.data;return(0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(e2,{label:e})})}},r2=Go(((t,e)=>{(function(){var r=Object.assign||function(h){for(var T,N=1;N<arguments.length;N++)for(var A in T=arguments[N],T)b(T,A)&&(h[A]=T[A]);return h},n=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},a=d(["\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2","\u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"],["\u03BC\u03AE\u03BD\u03B1\u03C2","\u03BC\u03AE\u03BD\u03B5\u03C2"],["\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1","\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"],["\u03BC\u03AD\u03C1\u03B1","\u03BC\u03AD\u03C1\u03B5\u03C2"],["\u03CE\u03C1\u03B1","\u03CE\u03C1\u03B5\u03C2"],["\u03BB\u03B5\u03C0\u03C4\u03CC","\u03BB\u03B5\u03C0\u03C4\u03AC"],["\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF","\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"],["\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03CC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5","\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03AC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5"],","),i={af:d(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:o("\u12D3\u1218\u1275","\u12C8\u122D","\u1233\u121D\u1295\u1275","\u1240\u1295","\u1230\u12D3\u1275","\u12F0\u1242\u1243","\u1230\u12A8\u1295\u12F5","\u121A\u120A\u1230\u12A8\u1295\u12F5"),ar:r(o(function(h){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][m(h)]},function(h){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][m(h)]},function(h){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][m(h)]},function(h){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][m(h)]},function(h){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][m(h)]},function(h){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][m(h)]},function(h){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][m(h)]},function(h){return["\u062C\u0632\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u062C\u0632\u0622\u0646 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u0623\u062C\u0632\u0627\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629"][m(h)]},","),{delimiter:" \uFEED ",_hideCountIf2:!0,_digitReplacements:["\u06F0","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"]}),bg:p(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446\u0430","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u0441\u0435\u0434\u043C\u0438\u0446\u0438","\u0441\u0435\u0434\u043C\u0438\u0446\u0430","\u0441\u0435\u0434\u043C\u0438\u0446\u0438"],["\u0434\u043D\u0438","\u0434\u0435\u043D","\u0434\u043D\u0438"],["\u0447\u0430\u0441\u0430","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0438","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),bn:o("\u09AC\u099B\u09B0","\u09AE\u09BE\u09B8","\u09B8\u09AA\u09CD\u09A4\u09BE\u09B9","\u09A6\u09BF\u09A8","\u0998\u09A8\u09CD\u099F\u09BE","\u09AE\u09BF\u09A8\u09BF\u099F","\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1","\u09AE\u09BF\u09B2\u09BF\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1"),ca:d(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:o("\u0633\u0627\u06B5","\u0645\u0627\u0646\u06AF","\u0647\u06D5\u0641\u062A\u06D5","\u0695\u06C6\u0698","\u06A9\u0627\u0698\u06CE\u0631","\u062E\u0648\u0644\u06D5\u06A9","\u0686\u0631\u06A9\u06D5","\u0645\u06CC\u0644\u06CC \u0686\u0631\u06A9\u06D5","."),cs:o(function(h){return["rok","roku","roky","let"][g(h)]},function(h){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(h)]},function(h){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(h)]},function(h){return["den","dne","dny","dn\xED"][g(h)]},function(h){return["hodina","hodiny","hodiny","hodin"][g(h)]},function(h){return["minuta","minuty","minuty","minut"][g(h)]},function(h){return["sekunda","sekundy","sekundy","sekund"][g(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisekund"][g(h)]},","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:d(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:a,en:d(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:d(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:d(["a\xF1o","a\xF1os"],["mes","meses"],["semana","semanas"],["d\xEDa","d\xEDas"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:d(["aasta","aastat"],["kuu","kuud"],["n\xE4dal","n\xE4dalat"],["p\xE4ev","p\xE4eva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("\u0633\u0627\u0644","\u0645\u0627\u0647","\u0647\u0641\u062A\u0647","\u0631\u0648\u0632","\u0633\u0627\u0639\u062A","\u062F\u0642\u06CC\u0642\u0647","\u062B\u0627\u0646\u06CC\u0647","\u0645\u06CC\u0644\u06CC \u062B\u0627\u0646\u06CC\u0647"),fi:d(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["p\xE4iv\xE4","p\xE4iv\xE4\xE4"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:d(["\xE1r","\xE1r"],["m\xE1na\xF0ur","m\xE1na\xF0ir"],["vika","vikur"],["dagur","dagar"],["t\xEDmi","t\xEDmar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:o(function(h){return"an"+(h>=2?"s":"")},"mois",function(h){return"semaine"+(h>=2?"s":"")},function(h){return"jour"+(h>=2?"s":"")},function(h){return"heure"+(h>=2?"s":"")},function(h){return"minute"+(h>=2?"s":"")},function(h){return"seconde"+(h>=2?"s":"")},function(h){return"milliseconde"+(h>=2?"s":"")},","),gr:a,he:d(["\u05E9\u05E0\u05D4","\u05E9\u05E0\u05D9\u05DD"],["\u05D7\u05D5\u05D3\u05E9","\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"],["\u05E9\u05D1\u05D5\u05E2","\u05E9\u05D1\u05D5\u05E2\u05D5\u05EA"],["\u05D9\u05D5\u05DD","\u05D9\u05DE\u05D9\u05DD"],["\u05E9\u05E2\u05D4","\u05E9\u05E2\u05D5\u05EA"],["\u05D3\u05E7\u05D4","\u05D3\u05E7\u05D5\u05EA"],["\u05E9\u05E0\u05D9\u05D4","\u05E9\u05E0\u05D9\u05D5\u05EA"],["\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4","\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA"]),hr:o(function(h){return h%10==2||h%10==3||h%10==4?"godine":"godina"},function(h){return h===1?"mjesec":h===2||h===3||h===4?"mjeseca":"mjeseci"},function(h){return h%10==1&&h!==11?"tjedan":"tjedna"},s(["dan","dana"]),function(h){return h===1?"sat":h===2||h===3||h===4?"sata":"sati"},function(h){var T=h%10;return(T===2||T===3||T===4)&&(h<10||h>14)?"minute":"minuta"},function(h){var T=h%10;return T===5||Math.floor(h)===h&&h>=10&&h<=19?"sekundi":T===1?"sekunda":T===2||T===3||T===4?"sekunde":"sekundi"},function(h){return h===1?"milisekunda":h%10==2||h%10==3||h%10==4?"milisekunde":"milisekundi"},","),hi:o("\u0938\u093E\u0932",s(["\u092E\u0939\u0940\u0928\u093E","\u092E\u0939\u0940\u0928\u0947"]),s(["\u0939\u095E\u094D\u0924\u093E","\u0939\u092B\u094D\u0924\u0947"]),"\u0926\u093F\u0928",s(["\u0918\u0902\u091F\u093E","\u0918\u0902\u091F\u0947"]),"\u092E\u093F\u0928\u091F","\u0938\u0947\u0915\u0902\u0921","\u092E\u093F\u0932\u0940\u0938\u0947\u0915\u0902\u0921"),hu:o("\xE9v","h\xF3nap","h\xE9t","nap","\xF3ra","perc","m\xE1sodperc","ezredm\xE1sodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:d(["\xE1r","\xE1r"],["m\xE1nu\xF0ur","m\xE1nu\xF0ir"],["vika","vikur"],["dagur","dagar"],["klukkut\xEDmi","klukkut\xEDmar"],["m\xEDn\xFAta","m\xEDn\xFAtur"],["sek\xFAnda","sek\xFAndur"],["millisek\xFAnda","millisek\xFAndur"]),it:d(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:o("\u5E74","\u30F6\u6708","\u9031\u9593","\u65E5","\u6642\u9593","\u5206","\u79D2","\u30DF\u30EA\u79D2"),km:o("\u1786\u17D2\u1793\u17B6\u17C6","\u1781\u17C2","\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD","\u1790\u17D2\u1784\u17C3","\u1798\u17C9\u17C4\u1784","\u1793\u17B6\u1791\u17B8","\u179C\u17B7\u1793\u17B6\u1791\u17B8","\u1798\u17B7\u179B\u17D2\u179B\u17B8\u179C\u17B7\u1793\u17B6\u1791\u17B8"),kn:d(["\u0CB5\u0CB0\u0CCD\u0CB7","\u0CB5\u0CB0\u0CCD\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1","\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CB5\u0CBE\u0CB0","\u0CB5\u0CBE\u0CB0\u0C97\u0CB3\u0CC1"],["\u0CA6\u0CBF\u0CA8","\u0CA6\u0CBF\u0CA8\u0C97\u0CB3\u0CC1"],["\u0C97\u0C82\u0C9F\u0CC6","\u0C97\u0C82\u0C9F\u0CC6\u0C97\u0CB3\u0CC1"],["\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7","\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"]),ko:o("\uB144","\uAC1C\uC6D4","\uC8FC\uC77C","\uC77C","\uC2DC\uAC04","\uBD84","\uCD08","\uBC00\uB9AC \uCD08"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","m\xEEl\xEE\xE7irk",","),lo:o("\u0E9B\u0EB5","\u0EC0\u0E94\u0EB7\u0EAD\u0E99","\u0EAD\u0EB2\u0E97\u0EB4\u0E94","\u0EA1\u0EB7\u0EC9","\u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87","\u0E99\u0EB2\u0E97\u0EB5","\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5","\u0EA1\u0EB4\u0E99\u0EA5\u0EB4\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5",","),lt:o(function(h){return h%10==0||h%100>=10&&h%100<=20?"met\u0173":"metai"},function(h){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][x(h)]},function(h){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][x(h)]},function(h){return["diena","dienos","dien\u0173"][x(h)]},function(h){return["valanda","valandos","valand\u0173"][x(h)]},function(h){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][x(h)]},function(h){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][x(h)]},function(h){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][x(h)]},","),lv:o(function(h){return w(h)?"gads":"gadi"},function(h){return w(h)?"m\u0113nesis":"m\u0113ne\u0161i"},function(h){return w(h)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(h){return w(h)?"diena":"dienas"},function(h){return w(h)?"stunda":"stundas"},function(h){return w(h)?"min\u016Bte":"min\u016Btes"},function(h){return w(h)?"sekunde":"sekundes"},function(h){return w(h)?"milisekunde":"milisekundes"},","),mk:d(["\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0438"],["\u043D\u0435\u0434\u0435\u043B\u0430","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u0435\u043D","\u0434\u0435\u043D\u0430"],["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],","),mn:o("\u0436\u0438\u043B","\u0441\u0430\u0440","\u0434\u043E\u043B\u043E\u043E \u0445\u043E\u043D\u043E\u0433","\u04E9\u0434\u04E9\u0440","\u0446\u0430\u0433","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),mr:o(s(["\u0935\u0930\u094D\u0937","\u0935\u0930\u094D\u0937\u0947"]),s(["\u092E\u0939\u093F\u0928\u093E","\u092E\u0939\u093F\u0928\u0947"]),s(["\u0906\u0920\u0935\u0921\u093E","\u0906\u0920\u0935\u0921\u0947"]),"\u0926\u093F\u0935\u0938","\u0924\u093E\u0938",s(["\u092E\u093F\u0928\u093F\u091F","\u092E\u093F\u0928\u093F\u091F\u0947"]),"\u0938\u0947\u0915\u0902\u0926","\u092E\u093F\u0932\u093F\u0938\u0947\u0915\u0902\u0926"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:d(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:o(function(h){return["rok","roku","lata","lat"][f(h)]},function(h){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][f(h)]},function(h){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][f(h)]},function(h){return["dzie\u0144","dnia","dni","dni"][f(h)]},function(h){return["godzina","godziny","godziny","godzin"][f(h)]},function(h){return["minuta","minuty","minuty","minut"][f(h)]},function(h){return["sekunda","sekundy","sekundy","sekund"][f(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisekund"][f(h)]},","),pt:d(["ano","anos"],["m\xEAs","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:o(c("an","ani","de ani"),c("lun\u0103","luni","de luni"),c("s\u0103pt\u0103m\xE2n\u0103","s\u0103pt\u0103m\xE2ni","de s\u0103pt\u0103m\xE2ni"),c("zi","zile","de zile"),c("or\u0103","ore","de ore"),c("minut","minute","de minute"),c("secund\u0103","secunde","de secunde"),c("milisecund\u0103","milisecunde","de milisecunde"),","),ru:p(["\u043B\u0435\u0442","\u0433\u043E\u0434","\u0433\u043E\u0434\u0430"],["\u043C\u0435\u0441\u044F\u0446\u0435\u0432","\u043C\u0435\u0441\u044F\u0446","\u043C\u0435\u0441\u044F\u0446\u0430"],["\u043D\u0435\u0434\u0435\u043B\u044C","\u043D\u0435\u0434\u0435\u043B\u044F","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u043D\u0435\u0439","\u0434\u0435\u043D\u044C","\u0434\u043D\u044F"],["\u0447\u0430\u0441\u043E\u0432","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u044B"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u044B"],["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"]),sq:o(s(["vit","vjet"]),"muaj","jav\xEB","dit\xEB","or\xEB",function(h){return"minut"+(h===1?"\xEB":"a")},function(h){return"sekond"+(h===1?"\xEB":"a")},function(h){return"milisekond"+(h===1?"\xEB":"a")},","),sr:p(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0435"],["\u043C\u0435\u0441\u0435\u0446\u0438","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u043D\u0435\u0434\u0435\u0459\u0438","\u043D\u0435\u0434\u0435\u0459\u0430","\u043D\u0435\u0434\u0435\u0459\u0435"],["\u0434\u0430\u043D\u0438","\u0434\u0430\u043D","\u0434\u0430\u043D\u0430"],["\u0441\u0430\u0442\u0438","\u0441\u0430\u0442","\u0441\u0430\u0442\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0435"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0435"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:d(["\u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD","\u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBE\u0BA4\u0BAE\u0BCD","\u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBE\u0BB0\u0BAE\u0BCD","\u0BB5\u0BBE\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BA8\u0BBE\u0BB3\u0BCD","\u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BA3\u0BBF","\u0BAE\u0BA3\u0BBF\u0BA8\u0BC7\u0BB0\u0BAE\u0BCD"],["\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD","\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF","\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF","\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"]),te:d(["\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02","\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"],["\u0C28\u0C46\u0C32","\u0C28\u0C46\u0C32\u0C32"],["\u0C35\u0C3E\u0C30\u0C02","\u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"],["\u0C30\u0C4B\u0C1C\u0C41","\u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"],["\u0C17\u0C02\u0C1F","\u0C17\u0C02\u0C1F\u0C32\u0C41"],["\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02","\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"],["\u0C38\u0C46\u0C15\u0C28\u0C41","\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"],["\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D","\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"]),uk:p(["\u0440\u043E\u043A\u0456\u0432","\u0440\u0456\u043A","\u0440\u043E\u043A\u0438"],["\u043C\u0456\u0441\u044F\u0446\u0456\u0432","\u043C\u0456\u0441\u044F\u0446\u044C","\u043C\u0456\u0441\u044F\u0446\u0456"],["\u0442\u0438\u0436\u043D\u0456\u0432","\u0442\u0438\u0436\u0434\u0435\u043D\u044C","\u0442\u0438\u0436\u043D\u0456"],["\u0434\u043D\u0456\u0432","\u0434\u0435\u043D\u044C","\u0434\u043D\u0456"],["\u0433\u043E\u0434\u0438\u043D","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u0445\u0432\u0438\u043B\u0438\u043D","\u0445\u0432\u0438\u043B\u0438\u043D\u0430","\u0445\u0432\u0438\u043B\u0438\u043D\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),ur:o("\u0633\u0627\u0644",s(["\u0645\u06C1\u06CC\u0646\u06C1","\u0645\u06C1\u06CC\u0646\u06D2"]),s(["\u06C1\u0641\u062A\u06C1","\u06C1\u0641\u062A\u06D2"]),"\u062F\u0646",s(["\u06AF\u06BE\u0646\u0679\u06C1","\u06AF\u06BE\u0646\u0679\u06D2"]),"\u0645\u0646\u0679","\u0633\u06CC\u06A9\u0646\u0688","\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688"),sk:o(function(h){return["rok","roky","roky","rokov"][g(h)]},function(h){return["mesiac","mesiace","mesiace","mesiacov"][g(h)]},function(h){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(h)]},function(h){return["de\u0148","dni","dni","dn\xED"][g(h)]},function(h){return["hodina","hodiny","hodiny","hod\xEDn"][g(h)]},function(h){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(h)]},function(h){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(h)]},","),sl:o(function(h){return h%10==1?"leto":h%100==2?"leti":h%100==3||h%100==4||Math.floor(h)!==h&&h%100<=5?"leta":"let"},function(h){return h%10==1?"mesec":h%100==2||Math.floor(h)!==h&&h%100<=5?"meseca":h%10==3||h%10==4?"mesece":"mesecev"},function(h){return h%10==1?"teden":h%10==2||Math.floor(h)!==h&&h%100<=4?"tedna":h%10==3||h%10==4?"tedne":"tednov"},function(h){return h%100==1?"dan":"dni"},function(h){return h%10==1?"ura":h%100==2?"uri":h%10==3||h%10==4||Math.floor(h)!==h?"ure":"ur"},function(h){return h%10==1?"minuta":h%10==2?"minuti":h%10==3||h%10==4||Math.floor(h)!==h&&h%100<=4?"minute":"minut"},function(h){return h%10==1?"sekunda":h%100==2?"sekundi":h%100==3||h%100==4||Math.floor(h)!==h?"sekunde":"sekund"},function(h){return h%10==1?"milisekunda":h%100==2?"milisekundi":h%100==3||h%100==4||Math.floor(h)!==h?"milisekunde":"milisekund"},","),sv:d(["\xE5r","\xE5r"],["m\xE5nad","m\xE5nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:r(d(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:o("y\u0131l","ay","hafta","g\xFCn","saat","dakika","saniye","milisaniye",","),th:o("\u0E1B\u0E35","\u0E40\u0E14\u0E37\u0E2D\u0E19","\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","\u0E27\u0E31\u0E19","\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07","\u0E19\u0E32\u0E17\u0E35","\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E21\u0E34\u0E25\u0E25\u0E34\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("\u0439\u0438\u043B","\u043E\u0439","\u04B3\u0430\u0444\u0442\u0430","\u043A\u0443\u043D","\u0441\u043E\u0430\u0442","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),vi:o("n\u0103m","th\xE1ng","tu\u1EA7n","ng\xE0y","gi\u1EDD","ph\xFAt","gi\xE2y","mili gi\xE2y",","),zh_CN:o("\u5E74","\u4E2A\u6708","\u5468","\u5929","\u5C0F\u65F6","\u5206\u949F","\u79D2","\u6BEB\u79D2"),zh_TW:o("\u5E74","\u500B\u6708","\u5468","\u5929","\u5C0F\u6642","\u5206\u9418","\u79D2","\u6BEB\u79D2")};function o(h,T,N,A,R,z,E,P,M){var F={y:h,mo:T,w:N,d:A,h:R,m:z,s:E,ms:P};return M&&(F.decimal=M),F}function s(h){return function(T){return T===1?h[0]:h[1]}}function d(h,T,N,A,R,z,E,P,M){return o(s(h),s(T),s(N),s(A),s(R),s(z),s(E),s(P),M)}function c(h,T,N){return function(A){if(A===1)return h;if(Math.floor(A)!==A||A===0)return T;var R=A%100;return R>=1&&R<=19?T:N}}function u(h){return function(T){return Math.floor(T)===T?T%100>=5&&T%100<=20||T%10>=5&&T%10<=9||T%10==0?h[0]:T%10==1?h[1]:T>1?h[2]:h[1]:h[2]}}function p(h,T,N,A,R,z,E,P){return o(u(h),u(T),u(N),u(A),u(R),u(z),u(E),u(P),",")}function m(h){return h===2?1:h>2&&h<11?2:0}function f(h){return h===1?0:Math.floor(h)===h?h%10>=2&&h%10<=4&&!(h%100>10&&h%100<20)?2:3:1}function g(h){return h===1?0:Math.floor(h)===h?h%10>=2&&h%10<=4&&h%100<10?2:3:1}function x(h){return h===1||h%10==1&&h%100>20?0:Math.floor(h)!==h||h%10>=2&&h%100>20||h%10>=2&&h%100<10?1:2}function w(h){return h%10==1&&h%100!=11}function b(h,T){return Object.prototype.hasOwnProperty.call(h,T)}function v(h){var T=[h.language];if(b(h,"fallbacks"))if(n(h.fallbacks)&&h.fallbacks.length)T=T.concat(h.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var N=0;N<T.length;N++){var A=T[N];if(b(h.languages,A))return h.languages[A];if(b(i,A))return i[A]}throw Error("No language found.")}function y(h,T,N){var A=h.unitName,R=h.unitCount,z=N.spacer,E=N.maxDecimalPoints,P=b(N,"decimal")?N.decimal:b(T,"decimal")?T.decimal:".",M;"digitReplacements"in N?M=N.digitReplacements:"_digitReplacements"in T&&(M=T._digitReplacements);var F,q=(E===void 0?R:Math.floor(R*10**E)/10**E).toString();if(T._hideCountIf2&&R===2)F="",z="";else if(M){F="";for(var Y=0;Y<q.length;Y++){var W=q[Y];W==="."?F+=P:F+=M[W]}}else F=q.replace(".",P);var K=T[A],U=typeof K=="function"?K(R):K;return T._numberFirst?U+z+F:F+z+U}function S(h,T){var N,A,R,z,E=T.units,P=T.unitMeasures,M="largest"in T?T.largest:1/0;if(!E.length)return[];var F={};for(z=h,A=0;A<E.length;A++){N=E[A];var q=P[N];R=A===E.length-1?z/q:Math.floor(z/q),F[N]=R,z-=R*q}if(T.round){var Y=M;for(A=0;A<E.length;A++)if(N=E[A],R=F[N],R!==0&&(Y--,Y===0)){for(var W=A+1;W<E.length;W++){var K=E[W],U=F[K];F[N]+=U*P[K]/P[N],F[K]=0}break}for(A=E.length-1;A>=0;A--)if(N=E[A],R=F[N],R!==0){var X=Math.round(R);if(F[N]=X,A===0)break;var Z=E[A-1],oe=P[Z],xe=Math.floor(X*P[N]/oe);if(xe)F[Z]+=xe,F[N]=0;else break}}var Se=[];for(A=0;A<E.length&&Se.length<M;A++)N=E[A],R=F[N],R&&Se.push({unitName:N,unitCount:R});return Se}function j(h,T){var N=v(T);if(!h.length){var A=T.units,R=A[A.length-1];return y({unitName:R,unitCount:0},N,T)}for(var z=T.conjunction,E=T.serialComma,P=b(T,"delimiter")?T.delimiter:b(N,"delimiter")?N.delimiter:", ",M=[],F=0;F<h.length;F++)M.push(y(h[F],N,T));return!z||h.length===1?M.join(P):h.length===2?M.join(z):M.slice(0,-1).join(P)+(E?",":"")+z+M.slice(-1)}function k(h){var T=function(N,A){N=Math.abs(N);var R=r({},T,A||{});return j(S(N,R),R)};return r(T,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},h)}var C=r(k({}),{getSupportedLanguages:function(){var h=[];for(var T in i)b(i,T)&&T!=="gr"&&h.push(T);return h},humanizer:k});typeof define=="function"&&define.amd?define(function(){return C}):e!==void 0&&e.exports?e.exports=C:this.humanizeDuration=C})()})),n2=J(),a2=Br(r2(),1),i2=class{constructor(){B(this,"tagName","marimo-progress");B(this,"validator",L({title:I().optional(),subtitle:I().optional(),progress:Te([O(),V()]),total:O().optional(),eta:O().optional(),rate:O().optional()}))}render(t){return(0,l.jsx)(l2,{...t.data})}};const l2=t=>{let e=(0,n2.c)(24),{title:r,subtitle:n,progress:a,total:i,eta:o,rate:s}=t,d=typeof a=="number"?"items-start":"items-center",c;e[0]!==a||e[1]!==i?(c=()=>typeof a=="number"&&i!=null&&i>0?(0,l.jsxs)("div",{className:"flex gap-3 text-sm text-muted-foreground items-baseline",children:[(0,l.jsx)(a4,{value:o2(a/i*100)}),(0,l.jsxs)("span",{className:"shrink-0",children:[a," / ",i]})]}):(0,l.jsx)(Ti,{className:"w-12 h-12 animate-spin text-primary mx-auto"}),e[0]=a,e[1]=i,e[2]=c):c=e[2];let u=c,p;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==i?(p=()=>{let S=typeof a=="number"&&i!=null&&a>=i,j=[];if(s&&(s<1?j.push((0,l.jsxs)("span",{children:[Oo(1/s)," per iter"]},"rate")):j.push((0,l.jsxs)("span",{children:[s," iter/s"]},"rate")),j.push((0,l.jsx)("span",{children:"\xB7"},"spacer-rate"))),!S&&o&&j.push((0,l.jsxs)("span",{children:["ETA ",Oo(o)]},"eta"),(0,l.jsx)("span",{children:"\xB7"},"spacer-eta")),S&&s){let k=a/s;j.push((0,l.jsxs)("span",{children:["Total time ",Oo(k)]},"completed"),(0,l.jsx)("span",{children:"\xB7"},"spacer-completed"))}if(j.pop(),j.length>0)return(0,l.jsx)("div",{className:"flex gap-2 text-muted-foreground text-sm",children:j})},e[3]=o,e[4]=a,e[5]=s,e[6]=i,e[7]=p):p=e[7];let m=p,f=`flex flex-col ${d} max-w-sm p-6 mx-auto`,g;e[8]===r?g=e[9]:(g=r&&(0,l.jsx)("div",{className:"text-lg font-bold text-foreground/60",children:qe({html:r})}),e[8]=r,e[9]=g);let x;e[10]===n?x=e[11]:(x=n&&(0,l.jsx)("div",{className:"text-sm text-muted-foreground",children:qe({html:n})}),e[10]=n,e[11]=x);let w;e[12]===u?w=e[13]:(w=u(),e[12]=u,e[13]=w);let b;e[14]===m?b=e[15]:(b=m(),e[14]=m,e[15]=b);let v;e[16]!==w||e[17]!==b?(v=(0,l.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[w,b]}),e[16]=w,e[17]=b,e[18]=v):v=e[18];let y;return e[19]!==f||e[20]!==g||e[21]!==x||e[22]!==v?(y=(0,l.jsxs)("div",{className:f,children:[g,x,v]}),e[19]=f,e[20]=g,e[21]=x,e[22]=v,e[23]=y):y=e[23],y};function o2(t){return d4(t,0,100)}var s2=a2.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Oo(t){return s2(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var d2=Go((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",r=g=>g,n=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u;function i(g){return g.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var o=class{constructor(g,x){this.tokens=g,this.originalPath=x}};t.TokenData=o;var s=class extends TypeError{constructor(g,x){let w=g;x&&(w+=`: ${x}`),w+="; visit https://git.new/pathToRegexpError for info",super(w),this.originalPath=x}};t.PathError=s;function d(g,x={}){let{encodePath:w=r}=x,b=[...g],v=0;function y(S){let j=[],k="";function C(){k&&(k=(j.push({type:"text",value:w(k)}),""))}for(;v<b.length;){let h=b[v++];if(h===S)return C(),j;if(h==="\\"){if(v===b.length)throw new s(`Unexpected end after \\ at index ${v}`,g);k+=b[v++];continue}if(h===":"||h==="*"){let T=h===":"?"param":"wildcard",N="";if(n.test(b[v]))do N+=b[v++];while(a.test(b[v]));else if(b[v]==='"'){let A=v;for(;v<b.length;){if(b[++v]==='"'){v++,A=0;break}b[v]==="\\"&&v++,N+=b[v]}if(A)throw new s(`Unterminated quote at index ${A}`,g)}if(!N)throw new s(`Missing parameter name at index ${v}`,g);C(),j.push({type:T,name:N});continue}if(h==="{"){C(),j.push({type:"group",tokens:y("}")});continue}if(h==="}"||h==="("||h===")"||h==="["||h==="]"||h==="+"||h==="?"||h==="!")throw new s(`Unexpected ${h} at index ${v-1}`,g);k+=h}if(S)throw new s(`Unexpected end at index ${v}, expected ${S}`,g);return C(),j}return new o(y(""),g)}function c(g,x={}){let{decode:w=decodeURIComponent,delimiter:b=e}=x,{regexp:v,keys:y}=u(g,x),S=y.map(j=>w===!1?r:j.type==="param"?w:k=>k.split(b).map(w));return function(j){let k=v.exec(j);if(!k)return!1;let C=k[0],h=Object.create(null);for(let T=1;T<k.length;T++){if(k[T]===void 0)continue;let N=y[T-1],A=S[T-1];h[N.name]=A(k[T])}return{path:C,params:h}}}function u(g,x={}){let{delimiter:w=e,end:b=!0,sensitive:v=!1,trailing:y=!0}=x,S=[],j="",k=0;function C(T){if(Array.isArray(T)){for(let A of T)C(A);return}let N=typeof T=="object"?T:d(T,x);p(N.tokens,0,[],A=>{if(k>=256)throw new s("Too many path combinations",N.originalPath);k>0&&(j+="|"),j+=m(A,w,S,N.originalPath),k++})}C(g);let h=`^(?:${j})`;return y&&(h+="(?:"+i(w)+"$)?"),h+=b?"$":"(?="+i(w)+"|$)",{regexp:new RegExp(h,v?"":"i"),keys:S}}function p(g,x,w,b){for(;x<g.length;){let v=g[x++];if(v.type==="group"){let y=w.length;p(v.tokens,0,w,S=>p(g,x,S,b)),w.length=y;continue}w.push(v)}b(w)}function m(g,x,w,b){let v="",y="",S="",j=0,k=0,C=0;function h(N,A){for(;N<g.length;){let R=g[N++];if(R.type===A)return!0;if(R.type==="text"&&R.value.includes(x))break}return!1}function T(N){let A="";for(;N<g.length;){let R=g[N++];if(R.type!=="text")break;A+=R.value}return A}for(;C<g.length;){let N=g[C++];if(N.type==="text"){v+=i(N.value),y+=N.value,j===2&&(S+=N.value),N.value.includes(x)&&(k=0);continue}if(N.type==="param"||N.type==="wildcard"){if(j&&!y)throw new s(`Missing text before "${N.name}" ${N.type}`,b);N.type==="param"?(v+=k&2?`(${f(x,y)}+)`:h(C,"wildcard")?`(${f(x,T(C))}+)`:k&1?`(${f(x,y)}+|${i(y)})`:`(${f(x,"")}+)`,k|=j=1):(v+=k&2?`(${f(y,"")}+)`:S?`(${f(S,"")}+|${f(x,"")}+)`:"([^]+)",S="",k|=j=2),w.push(N),y="";continue}throw TypeError(`Unknown token type: ${N.type}`)}return v}function f(g,x){return x.length>g.length?f(x,g):(g===x&&(x=""),x.length>1?`(?:(?!${i(g)}|${i(x)})[^])`:g.length>1?`(?:(?!${i(g)})[^${i(x)}])`:`[^${i(g+x)}]`)}}))(),c2=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,d2.match)(e)}))}match(t){for(let{pathFunction:e,template:r}of this.routes){let n=e(t.hash)||e(t.pathname);if(n)return[n,r]}return!1}},u2=J(),p2=class{constructor(){B(this,"tagName","marimo-routes");B(this,"validator",L({routes:Q(I())}))}render(t){return(0,l.jsx)(m2,{...t.data,children:t.children})}},m2=t=>{let e=(0,u2.c)(14),{routes:r,children:n}=t,a=_.Children.count(n);if(a!==r.length)throw Error(`Expected ${r.length} children, but got ${a}`);let i;e[0]===r?i=e[1]:(i=new c2(r),e[0]=r,e[1]=i);let o=i,s;e[2]===o?s=e[3]:(s=()=>{let v=o.match(window.location);return v?v[1]:null},e[2]=o,e[3]=s);let[d,c]=(0,_.useState)(s),u;e[4]===o?u=e[5]:(u=v=>{let y=o.match(v);c(y?y[1]:null)},e[4]=o,e[5]=u);let p=Ue(u),m,f;if(e[6]===p?(m=e[7],f=e[8]):(m=()=>{let v=y=>{p(window.location)};return window.addEventListener("hashchange",v),window.addEventListener("popstate",v),()=>{window.removeEventListener("hashchange",v),window.removeEventListener("popstate",v)}},f=[p],e[6]=p,e[7]=m,e[8]=f),(0,_.useEffect)(m,f),!d){let v;return e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,l.jsx)(l.Fragment,{}),e[9]=v):v=e[9],v}let g=r.indexOf(d),x;e[10]===n?x=e[11]:(x=_.Children.toArray(n),e[10]=n,e[11]=x);let w=x[g],b;return e[12]===w?b=e[13]:(b=(0,l.jsx)(l.Fragment,{children:w}),e[12]=w,e[13]=b),b},h2=J(),f2=class{constructor(){B(this,"tagName","marimo-stat");B(this,"validator",L({value:Te([I(),O(),V()]).optional(),label:I().optional(),caption:I().optional(),bordered:V().default(!1),direction:ye(["increase","decrease"]).optional(),target_direction:ye(["increase","decrease"]).default("increase"),slot:Yt().optional()}))}render({data:t}){return(0,l.jsx)(g2,{...t})}};const g2=t=>{let e=(0,h2.c)(31),{value:r,label:n,caption:a,bordered:i,direction:o,target_direction:s,slot:d}=t,{locale:c}=Ir(),u;e[0]!==c||e[1]!==r?(u=()=>r==null?(0,l.jsx)("i",{children:"No value"}):typeof r=="string"?r:typeof r=="number"?CS(r,c):typeof r=="boolean"?r?"True":"False":String(r),e[0]=c,e[1]=r,e[2]=u):u=e[2];let p=u,m=o===s,f=m?"var(--grass-8)":"var(--red-8)",g=m?"var(--grass-9)":"var(--red-9)",x;e[3]===d?x=e[4]:(x=()=>{let A=XC(d);if(A!=null&&A[0]){let{mimetype:R,data:z}=A[0];return R!=="text/html"&&ue.warn(`Expected text/html, got ${R}`),qe({html:z,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=x);let w=x,b=i&&"rounded-xl border shadow bg-card",v;e[5]===b?v=e[6]:(v=ee("text-card-foreground p-6",b),e[5]=b,e[6]=v);let y;e[7]===n?y=e[8]:(y=n&&(0,l.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,l.jsx)("h3",{className:"tracking-tight text-sm font-medium",children:n})}),e[7]=n,e[8]=y);let S;e[9]===p?S=e[10]:(S=p(),e[9]=p,e[10]=S);let j;e[11]===S?j=e[12]:(j=(0,l.jsx)("div",{className:"text-2xl font-bold",children:S}),e[11]=S,e[12]=j);let k;e[13]!==a||e[14]!==o||e[15]!==f||e[16]!==g?(k=a&&(0,l.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,l.jsx)(vd,{className:"w-4 h-4 mr-1 p-0.5",fill:f,stroke:g}),o==="decrease"&&(0,l.jsx)(vd,{className:"w-4 h-4 mr-1 p-0.5 transform rotate-180",fill:f,stroke:g}),a]}),e[13]=a,e[14]=o,e[15]=f,e[16]=g,e[17]=k):k=e[17];let C;e[18]!==j||e[19]!==k?(C=(0,l.jsxs)("div",{children:[j,k]}),e[18]=j,e[19]=k,e[20]=C):C=e[20];let h;e[21]!==w||e[22]!==d?(h=d&&(0,l.jsx)("div",{className:"[--slot:true]",children:w()}),e[21]=w,e[22]=d,e[23]=h):h=e[23];let T;e[24]!==h||e[25]!==C?(T=(0,l.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[C,h]}),e[24]=h,e[25]=C,e[26]=T):T=e[26];let N;return e[27]!==T||e[28]!==v||e[29]!==y?(N=(0,l.jsxs)("div",{className:v,children:[y,T]}),e[27]=T,e[28]=v,e[29]=y,e[30]=N):N=e[30],N};var x2=J(),v2=class{constructor(){B(this,"tagName","marimo-tex");B(this,"validator",L({}))}render(t){return(0,l.jsx)(j2,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},w2=ys(async()=>(await yt(async()=>{let{default:t}=await import("./katex-Bci6q_jh.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([382,383]),import.meta.url)).default),b2=ys(async()=>{await yt(()=>import("./mhchem-BKhnkPip.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([384,383]),import.meta.url)}),Vo={"\\mbox":"\\text{#1}"};async function y2(t,e){let[r]=await Promise.all([w2(),b2()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?r.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:Vo}):e.startsWith("||(")&&e.endsWith("||)")?r.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:Vo}):e.startsWith("||[")&&e.endsWith("||]")&&r.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:Vo})}var j2=t=>{var f;let e=(0,x2.c)(8),{host:r,tex:n}=t,a=(0,_.useRef)(null),[i,o]=(0,_.useState)(n),s,d;e[0]===r?(s=e[1],d=e[2]):(s=()=>{let g=new MutationObserver(()=>{o(r.textContent||r.innerHTML)});return g.observe(r,{childList:!0,characterData:!0,subtree:!0}),()=>{g.disconnect()}},d=[r],e[0]=r,e[1]=s,e[2]=d),(0,_.useLayoutEffect)(s,d);let c=((f=r.parentElement)==null?void 0:f.tagName.toLowerCase())==="marimo-tex",u,p;e[3]!==i||e[4]!==c?(u=()=>{a.current&&!c&&y2(a.current,i)},p=[i,c],e[3]=i,e[4]=c,e[5]=u,e[6]=p):(u=e[5],p=e[6]),(0,_.useLayoutEffect)(u,p);let m;return e[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{ref:a}),e[7]=m):m=e[7],m};const C2=[new Y0,new X0,vv,new Nv,new Mv,new Ev,new Lv,new eg,new $v,new jw,fw,Ew,new Pw,new Gw,new Kx,new mb,new Zb,new ay,new ry,new sy,new uy,new hy,new vy,new jy,new ky,new rb,new qb,ng,Yv,pw,Gy,By,B0,pg,xb,ob];var S2=[new Ny,new Ry,new Dy,new Uy,new qy,new Qy,new Xy,new w0,new t2,new i2,new p2,new f2,new v2];function _2(){F0(),V0(),C2.forEach(gc),S2.forEach(gc)}async function k2(){if(typeof document>"u")return;let{onLCP:t,onINP:e,onCLS:r}=await yt(async()=>{let{onLCP:a,onINP:i,onCLS:o}=await import("./web-vitals-BaMazlva.js").then(async s=>(await s.__tla,s));return{onLCP:a,onINP:i,onCLS:o}},[],import.meta.url);ue.debug("Reporting vitals");let n=a=>{let i=a.rating==="good"?"green":a.rating==="needs-improvement"?"orange":"red";ue.log(`%c [Metric ${a.name}] ${a.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};r(n),e(n),t(n)}var T2=Ep(),wp=!1;function N2(t,e){if(wp)return ue.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");wp=!0;let r=(0,T2.createRoot)(e);try{O4(),_2(),o0(),oa()&&(Aj(),Mj(TS),E2()),I2(t),r.render((0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(rc,{children:(0,l.jsx)(sc,{})})}))}catch(n){return r.render((0,l.jsx)(yi,{children:(0,l.jsx)(()=>{throw n},{})})),n}finally{k2()}}var Do=jr({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(ue.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(ue.warn("[marimo] missing config data"),{}))),A2=L({filename:I().nullish().transform(t=>t||(ue.warn("No filename provided, using fallback"),dj())),cwd:I().nullish().default(null),lspWorkspace:L({rootUri:I(),documentUri:I()}).nullish().default(null),code:I().nullish().transform(t=>t??iC()??""),version:I().nullish().transform(t=>t??"unknown"),mode:ye(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Do,configOverrides:Do,appConfig:Do,view:L({showAppCode:V().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:I().nullish().transform(t=>t??""),fileStores:Q(vj()).optional(),session:Te([bn().optional(),jr({version:Ke("1"),metadata:Yt(),cells:Q(Yt())}).transform(t=>t)]),notebook:Te([bn().optional(),jr({version:Ke("1"),metadata:Yt(),cells:Q(Yt())}).transform(t=>t)]),runtimeConfig:Q(jr({url:I(),lazy:V().default(!0),authToken:I().nullish()})).nullish().transform(t=>t??[])});function I2(t){let e=A2.safeParse(t);if(!e.success)throw ue.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let r=e.data.mode;if(i0(r),e.data.fileStores&&e.data.fileStores.length>0){ue.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)Ij.insert(0,e.data.fileStores[o]);ue.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Ve.set(p4,g0()),Ve.set(mj,e.data.filename),Ve.set(B2,e.data.cwd??null),Ve.set(Z2,e.data.lspWorkspace),Ve.set(Q2,e.data.code),Ve.set(cj,r),Ve.set(eC,e.data.version),Ve.set(rC,e.data.view.showAppCode);let n=new URL(window.location.href).searchParams.get(rs.viewAs)==="present",a=r==="edit"&&n?"present":r;if(Ve.set(uj,{mode:a,cellAnchor:null}),Ve.set(Jj,e.data.serverToken),Ve.set(Uj,$j(e.data.configOverrides)),Ve.set(Hj,Vj(e.data.config)),Ve.set(Wj,Dj(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];ue.debug("\u26A1 Runtime URL",o.url),Ve.set(Wp,{...o,serverToken:e.data.serverToken}),!o.lazy&&!oa()&&Ve.set($p,{state:Up.CONNECTING})}else Ve.set(Wp,{...Zj,lazy:!1,serverToken:e.data.serverToken});let i=$h(e.data.session,e.data.notebook);i&&Ve.set(Ap,i)}function E2(){let t=Xj();if(t)for(let e of t)Nj(es,e)}var bp=document.getElementById("root");if(bp){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");N2(window.__MARIMO_MOUNT_CONFIG__,bp)}else throw Error("[marimo] root element not found")});
38
+ </svg>`},click:f}];v&&U.push(...Rb(x)),y=!1,S=w,j=zb(U,w.modeBarButtonsToAdd),e[12]=w,e[13]=f,e[14]=x,e[15]=v,e[16]=y,e[17]=S,e[18]=j}else y=e[16],S=e[17],j=e[18];let k;e[19]!==y||e[20]!==S||e[21]!==j?(k={displaylogo:y,...S,modeBarButtonsToAdd:j},e[19]=y,e[20]=S,e[21]=j,e[22]=k):k=e[22];let C=k,h;e[23]===a?h=e[24]:(h=U=>{if("dragmode"in U&&a(X=>({...X,dragmode:U.dragmode})),Object.keys(U).some(Gb)){let X={};Object.entries(U).forEach(Z=>{let[oe,xe]=Z;Pj(X,oe,xe)}),a(Z=>({...Z,...X}))}},e[23]=a,e[24]=h);let T;e[25]===a?T=e[26]:(T=()=>{a(Kb)},e[25]=a,e[26]=T);let N=Ue(T),A;e[27]===a?A=e[28]:(A=U=>{U&&a(X=>({...X,points:Fb(U.points)}))},e[27]=a,e[28]=A);let R=Ue(A),z;e[29]===a?z=e[30]:(z=U=>{U&&a(X=>({...X,points:hp(U.points)}))},e[29]=a,e[30]=z);let E=Ue(z),P;e[31]===a?P=e[32]:(P=U=>{if(!U||!Mb(U.points))return;let X=mp(U.points),Z=up(U.points);a(oe=>({...oe,selections:nr.EMPTY,range:void 0,lasso:void 0,points:X,indices:Z}))},e[31]=a,e[32]=P);let M=Ue(P),F;e[33]===a?F=e[34]:(F=U=>{U&&a(X=>({...X,selections:"selections"in U?U.selections:[],points:mp(U.points),indices:up(U.points),range:U.range,lasso:"lassoPoints"in U?U.lassoPoints:void 0}))},e[33]=a,e[34]=F);let q=Ue(F),Y=d.frames??void 0,W=Ue(Qb),K;return e[35]!==d||e[36]!==c||e[37]!==C||e[38]!==N||e[39]!==R||e[40]!==E||e[41]!==M||e[42]!==q||e[43]!==Y||e[44]!==W||e[45]!==h?(K=(0,l.jsx)(Yb,{...d,layout:c,onRelayout:h,onDeselect:N,onTreemapClick:R,onSunburstClick:E,config:C,onClick:M,onSelected:q,className:"w-full",useResizeHandler:!0,frames:Y,onError:W}),e[35]=d,e[36]=c,e[37]=C,e[38]=N,e[39]=R,e[40]=E,e[41]=M,e[42]=q,e[43]=Y,e[44]=W,e[45]=h,e[46]=K):K=e[46],K});fp.displayName="PlotlyComponent";function Gb(t){return t.includes("xaxis")||t.includes("yaxis")}function Kb(t){return{...t,selections:nr.EMPTY,points:nr.EMPTY,indices:nr.EMPTY,range:void 0,lasso:void 0}}function Qb(t){ue.error("PlotlyPlugin: ",t)}var Xb=J(),Zb=class{constructor(){B(this,"tagName","marimo-radio");B(this,"validator",L({initialValue:I().nullable(),inline:V().default(!1),label:I().nullable(),options:Q(I()),disabled:V().optional()}))}render(t){return(0,l.jsx)(Jb,{...t.data,value:t.value,setValue:t.setValue})}};const Jb=t=>{let e=(0,Xb.c)(18),r=(0,_.useId)(),n=t.label,a=t.inline?"left":"top",i=t.value??"",o=t.setValue,s=t.inline&&"grid-flow-col gap-4",d;e[0]===s?d=e[1]:(d=ee(s),e[0]=s,e[1]=d);let c=t.disabled,u;if(e[2]!==r||e[3]!==t.options){let f;e[5]===r?f=e[6]:(f=(g,x)=>(0,l.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,l.jsx)(l4,{value:g,id:`${r}-${x.toString()}`}),(0,l.jsx)(fs,{htmlFor:`${r}-${x.toString()}`,className:"text-sm font-normal",children:g})]},x),e[5]=r,e[6]=f),u=t.options.map(f),e[2]=r,e[3]=t.options,e[4]=u}else u=e[4];let p;e[7]!==t.disabled||e[8]!==t.setValue||e[9]!==i||e[10]!==d||e[11]!==u?(p=(0,l.jsx)(o4,{"data-testid":"marimo-plugin-radio",value:i,onValueChange:o,className:d,"aria-label":"Radio Group",disabled:c,children:u}),e[7]=t.disabled,e[8]=t.setValue,e[9]=i,e[10]=d,e[11]=u,e[12]=p):p=e[12];let m;return e[13]!==r||e[14]!==t.label||e[15]!==a||e[16]!==p?(m=(0,l.jsx)(Xe,{label:n,id:r,align:a,children:p}),e[13]=r,e[14]=t.label,e[15]=a,e[16]=p,e[17]=m):m=e[17],m};var ey=J(),gp=_.forwardRef((t,e)=>{let r=(0,ey.c)(56),n,a,i;r[0]===t?(n=r[1],a=r[2],i=r[3]):({className:n,valueMap:i,...a}=t,r[0]=t,r[1]=n,r[2]=a,r[3]=i);let[o,s]=Cm(!1),{locale:d}=Ir(),c=_.useRef(!1),u=_.useRef(0),p=_.useRef(0),m;r[4]===Symbol.for("react.memo_cache_sentinel")?(m=[],r[4]=m):m=r[4];let f=_.useRef(m),g;r[5]===Symbol.for("react.memo_cache_sentinel")?(g=[],r[5]=g):g=r[5];let x=_.useRef(g),w=_.useRef(null),b=_.useRef(null),v=_.useRef(null),y;r[6]===e?y=r[7]:(y=Z=>{w.current=Z,typeof e=="function"?e(Z):e&&(e.current=Z)},r[6]=e,r[7]=y);let S=y,j;r[8]!==a.disabled||r[9]!==a.value?(j=Z=>{var oe;!a.value||a.value.length!==2||a.disabled||(Z.preventDefault(),Z.stopPropagation(),c.current=!0,u.current=Z.clientX,p.current=Z.clientY,f.current=[...a.value],x.current=[...a.value],v.current=((oe=b.current)==null?void 0:oe.getBoundingClientRect())??null,Z.currentTarget.setPointerCapture(Z.pointerId))},r[8]=a.disabled,r[9]=a.value,r[10]=j):j=r[10];let k=j,C;r[11]===a?C=r[12]:(C=Z=>{var Je;if(!c.current)return;Z.stopPropagation();let oe=v.current;if(!oe)return;let xe=a.orientation==="vertical",Se=a.min??0,H=a.max??100,ae=H-Se,ne;if(xe){let _e=oe.height;ne=-((Z.clientY-p.current)/_e)*ae}else{let _e=oe.width;ne=(Z.clientX-u.current)/_e*ae}let[re,ce]=f.current,se=ce-re,ie=a.steps,de=ie&&ie.length>1?Math.min(...ie.slice(1).map((_e,Qe)=>_e-ie[Qe])):a.step??1,Ne=Math.round(ne/de)*de,ve=re+Math.max(Se-re,Math.min(H-ce,Ne)),ze=ve+se;x.current=[ve,ze],(Je=a.onValueChange)==null||Je.call(a,[ve,ze])},r[11]=a,r[12]=C);let h=C,T;r[13]===a?T=r[14]:(T=Z=>{var oe;c.current&&(Z.currentTarget.releasePointerCapture(Z.pointerId),c.current=!1,x.current.length===2&&((oe=a.onValueCommit)==null||oe.call(a,x.current)))},r[13]=a,r[14]=T);let N=T,A;r[15]===n?A=r[16]:(A=ee("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",n),r[15]=n,r[16]=A);let R;r[17]===Symbol.for("react.memo_cache_sentinel")?(R=ee("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),r[17]=R):R=r[17];let z;r[18]===Symbol.for("react.memo_cache_sentinel")?(z=ee("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50","hover:cursor-grab active:cursor-grabbing"),r[18]=z):z=r[18];let E;r[19]!==k||r[20]!==h||r[21]!==N?(E=(0,l.jsx)(Ji,{ref:b,"data-testid":"track",className:R,children:(0,l.jsx)(el,{"data-testid":"range",className:z,onPointerDown:k,onPointerMove:h,onPointerUp:N})}),r[19]=k,r[20]=h,r[21]=N,r[22]=E):E=r[22];let P;r[23]!==s.setFalse||r[24]!==s.setTrue?(P=(0,l.jsx)(vs,{asChild:!0,children:(0,l.jsx)(va,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:s.setTrue,onBlur:s.setFalse,onMouseEnter:s.setTrue,onMouseLeave:s.setFalse})}),r[23]=s.setFalse,r[24]=s.setTrue,r[25]=P):P=r[25];let M;r[26]!==d||r[27]!==a.value||r[28]!==i?(M=a.value!=null&&a.value.length===2&&(0,l.jsx)(xs,{children:_n(i(a.value[0]),{locale:d})},a.value[0]),r[26]=d,r[27]=a.value,r[28]=i,r[29]=M):M=r[29];let F;r[30]===M?F=r[31]:(F=(0,l.jsx)(ws,{children:M}),r[30]=M,r[31]=F);let q;r[32]!==o||r[33]!==P||r[34]!==F?(q=(0,l.jsx)(ca,{children:(0,l.jsxs)(gs,{delayDuration:0,open:o,children:[P,F]})}),r[32]=o,r[33]=P,r[34]=F,r[35]=q):q=r[35];let Y;r[36]!==s.setFalse||r[37]!==s.setTrue?(Y=(0,l.jsx)(vs,{asChild:!0,children:(0,l.jsx)(va,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:s.setTrue,onBlur:s.setFalse,onMouseEnter:s.setTrue,onMouseLeave:s.setFalse})}),r[36]=s.setFalse,r[37]=s.setTrue,r[38]=Y):Y=r[38];let W;r[39]!==d||r[40]!==a.value||r[41]!==i?(W=a.value!=null&&a.value.length===2&&(0,l.jsx)(xs,{children:_n(i(a.value[1]),{locale:d})},a.value[1]),r[39]=d,r[40]=a.value,r[41]=i,r[42]=W):W=r[42];let K;r[43]===W?K=r[44]:(K=(0,l.jsx)(ws,{children:W}),r[43]=W,r[44]=K);let U;r[45]!==o||r[46]!==Y||r[47]!==K?(U=(0,l.jsx)(ca,{children:(0,l.jsxs)(gs,{delayDuration:0,open:o,children:[Y,K]})}),r[45]=o,r[46]=Y,r[47]=K,r[48]=U):U=r[48];let X;return r[49]!==S||r[50]!==a||r[51]!==E||r[52]!==q||r[53]!==U||r[54]!==A?(X=(0,l.jsxs)(xa,{ref:S,className:A,...a,children:[E,q,U]}),r[49]=S,r[50]=a,r[51]=E,r[52]=q,r[53]=U,r[54]=A,r[55]=X):X=r[55],X});gp.displayName=xa.displayName;var ty=J(),ry=class{constructor(){B(this,"tagName","marimo-range-slider");B(this,"validator",L({initialValue:Q(O()),label:I().nullable(),start:O(),stop:O(),step:O().optional(),steps:Q(O()).nullable(),debounce:V().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:V().default(!1),fullWidth:V().default(!1),disabled:V().optional()}))}render(t){let e=r=>t.data.steps&&t.data.steps.length>0?t.data.steps[r]:r;return(0,l.jsx)(ny,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},ny=t=>{let e=(0,ty.c)(50),{label:r,setValue:n,value:a,start:i,stop:o,step:s,debounce:d,orientation:c,showValue:u,fullWidth:p,disabled:m,valueMap:f}=t,g=(0,_.useId)(),{locale:x}=Ir(),[w,b]=(0,_.useState)(a),v,y;e[0]===a?(v=e[1],y=e[2]):(v=()=>{b(a)},y=[a],e[0]=a,e[1]=v,e[2]=y),(0,_.useEffect)(v,y);let S=c==="horizontal"?"left":"top",j=p&&"my-1 w-full",k;e[3]===j?k=e[4]:(k=ee(j),e[3]=j,e[4]=k);let C=c==="vertical"&&"items-end inline-flex justify-center self-center mx-2",h=p&&"w-full",T;e[5]!==C||e[6]!==h?(T=ee("flex items-center gap-2",C,h),e[5]=C,e[6]=h,e[7]=T):T=e[7];let N=!p&&"data-[orientation=horizontal]:w-36 ",A;e[8]===N?A=e[9]:(A=ee("relative flex items-center select-none",N,"data-[orientation=vertical]:h-36"),e[8]=N,e[9]=A);let R,z;e[10]!==d||e[11]!==n?(R=W=>{b(W),d||n(W)},z=W=>{d&&n(W)},e[10]=d,e[11]=n,e[12]=R,e[13]=z):(R=e[12],z=e[13]);let E,P;e[14]!==d||e[15]!==w||e[16]!==n||e[17]!==a?(E=()=>{d&&!gi(w,a)&&n(w)},P=()=>{d&&!gi(w,a)&&n(w)},e[14]=d,e[15]=w,e[16]=n,e[17]=a,e[18]=E,e[19]=P):(E=e[18],P=e[19]);let M;e[20]!==m||e[21]!==g||e[22]!==w||e[23]!==c||e[24]!==i||e[25]!==s||e[26]!==o||e[27]!==A||e[28]!==R||e[29]!==z||e[30]!==E||e[31]!==P||e[32]!==f?(M=(0,l.jsx)(gp,{id:g,className:A,value:w,min:i,max:o,step:s,orientation:c,disabled:m,onValueChange:R,onValueCommit:z,onPointerUp:E,onMouseUp:P,valueMap:f}),e[20]=m,e[21]=g,e[22]=w,e[23]=c,e[24]=i,e[25]=s,e[26]=o,e[27]=A,e[28]=R,e[29]=z,e[30]=E,e[31]=P,e[32]=f,e[33]=M):M=e[33];let F;e[34]!==w||e[35]!==x||e[36]!==u||e[37]!==f?(F=u&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${_n(f(w[0]),{locale:x})}, ${_n(f(w[1]),{locale:x})}`}),e[34]=w,e[35]=x,e[36]=u,e[37]=f,e[38]=F):F=e[38];let q;e[39]!==M||e[40]!==F||e[41]!==T?(q=(0,l.jsxs)("div",{className:T,children:[M,F]}),e[39]=M,e[40]=F,e[41]=T,e[42]=q):q=e[42];let Y;return e[43]!==p||e[44]!==g||e[45]!==r||e[46]!==q||e[47]!==S||e[48]!==k?(Y=(0,l.jsx)(Xe,{label:r,id:g,align:S,className:k,fullWidth:p,children:q}),e[43]=p,e[44]=g,e[45]=r,e[46]=q,e[47]=S,e[48]=k,e[49]=Y):Y=e[49],Y},Lo=Br(Go(((t,e)=>{e.exports=a;var r={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},n={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function a(c,u,p){p=Object.assign({},r,p||{}),(typeof c=="number"||c.match(/^[-+]?[0-9.]+$/g))&&(c=parseInt(c)+"ms");let m=0,f=i(p),g=c.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(g===null)throw Error(`The value [${c}] could not be parsed by timestring`);return g.forEach(x=>{let w=x.match(/[0-9.]+/g)[0],b=x.match(/[a-z]+/g)[0];m+=s(w,b,f)}),u?d(m,u,f):m}function i(c){let u={ms:.001,s:1,m:60,h:3600};return u.d=c.hoursPerDay*u.h,u.w=c.daysPerWeek*u.d,u.mth=c.daysPerYear/c.monthsPerYear*u.d,u.y=c.daysPerYear*u.d,u}function o(c){for(let u of Object.keys(n))if(n[u].indexOf(c)>-1)return u;throw Error(`The unit [${c}] is not supported by timestring`)}function s(c,u,p){return c*p[o(u)]}function d(c,u,p){return c/p[o(u)]}}))(),1),ea=.1,xp=I().superRefine((t,e)=>{try{(0,Lo.default)(t)<ea&&e.addIssue({code:Fp.custom,message:`Must be greater than ${ea} seconds.`});return}catch{e.addIssue({code:Fp.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),ay=class{constructor(){B(this,"tagName","marimo-refresh");B(this,"validator",L({options:Q(Te([xp,O().min(ea)])).default([]),defaultInterval:Te([xp,O().min(ea)]).optional(),label:I().nullable()}))}render(t){return(0,l.jsx)(ly,{...t})}},si="off",iy=0,ly=({setValue:t,data:e})=>{let[r,n]=(0,_.useState)(e.defaultInterval??si);(0,_.useEffect)(()=>{n(e.defaultInterval??si)},[e.defaultInterval]);let[a,i]=(0,_.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${r} (${iy++})`),setTimeout(()=>i(!1),500)});(0,_.useEffect)(()=>{if(r===si)return;let c=typeof r=="number"?r:/[a-z]/.test(r)?(0,Lo.default)(r):(0,Lo.default)(`${r}s`);c=Math.max(c,ea);let u=setInterval(o,c*1e3);return()=>clearInterval(u)},[r,o]);let s="shadow-none! hover:shadow-none! focus:shadow-none! active:shadow-none!",d=e.options.length>0;return(0,l.jsx)(Xe,{label:e.label,children:(0,l.jsxs)("span",{className:"inline-flex items-center text-secondary-foreground rounded shadow-sm-solid",children:[(0,l.jsx)(Fe,{"data-testid":"marimo-plugin-refresh-button",variant:"secondary",size:"icon",className:ee(s,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,l.jsx)(Z4,{className:ee("w-3.5 h-3.5",a&&"animate-spin")})}),(0,l.jsxs)(ds,{"data-testid":"marimo-plugin-refresh-select",onChange:c=>{n(c.target.value)},value:r,className:ee(s,"border mb-0 bg-secondary rounded rounded-tl-none rounded-bl-none hover:bg-secondary/60",!d&&"hidden"),children:[(0,l.jsx)("option",{value:si,children:"off"}),e.options.map(c=>(0,l.jsx)("option",{value:c,children:typeof c=="number"?`${c}s`:c},c))]})]})})},oy=J(),sy=class{constructor(){B(this,"tagName","marimo-slider");B(this,"validator",L({initialValue:O(),label:I().nullable(),start:O(),stop:O(),step:O().optional(),steps:Q(O()).nullable(),debounce:V().default(!1),orientation:ye(["horizontal","vertical"]).default("horizontal"),showValue:V().default(!1),fullWidth:V().default(!1),includeInput:V().default(!1),disabled:V().optional()}))}render(t){let e=r=>t.data.steps&&t.data.steps.length>0?t.data.steps[r]:r;return(0,l.jsx)(dy,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},dy=t=>{let e=(0,oy.c)(54),{label:r,setValue:n,value:a,start:i,stop:o,step:s,debounce:d,orientation:c,showValue:u,fullWidth:p,valueMap:m,includeInput:f,disabled:g}=t,x=(0,_.useId)(),{locale:w}=Ir(),[b,v]=(0,_.useState)(a),y,S;e[0]===a?(y=e[1],S=e[2]):(y=()=>{v(a)},S=[a],e[0]=a,e[1]=y,e[2]=S),(0,_.useEffect)(y,S);let j=c==="horizontal"?"left":"top",k=p&&"my-1 w-full",C;e[3]===k?C=e[4]:(C=ee(k),e[3]=k,e[4]=C);let h=c==="vertical"&&"items-end inline-flex justify-center self-center mx-2",T;e[5]===h?T=e[6]:(T=ee("flex items-center gap-2",h),e[5]=h,e[6]=T);let N=!p&&"data-[orientation=horizontal]:w-36 ",A;e[7]===N?A=e[8]:(A=ee("relative flex items-center select-none",N,"data-[orientation=vertical]:h-36"),e[7]=N,e[8]=A);let R;e[9]===b?R=e[10]:(R=[b],e[9]=b,e[10]=R);let z,E;e[11]!==d||e[12]!==n?(z=W=>{let[K]=W;v(K),d||n(K)},E=W=>{let[K]=W;d&&n(K)},e[11]=d,e[12]=n,e[13]=z,e[14]=E):(z=e[13],E=e[14]);let P;e[15]!==g||e[16]!==x||e[17]!==c||e[18]!==i||e[19]!==s||e[20]!==o||e[21]!==R||e[22]!==z||e[23]!==E||e[24]!==A||e[25]!==m?(P=(0,l.jsx)(_l,{id:x,className:A,value:R,min:i,max:o,step:s,orientation:c,onValueChange:z,onValueCommit:E,valueMap:m,disabled:g}),e[15]=g,e[16]=x,e[17]=c,e[18]=i,e[19]=s,e[20]=o,e[21]=R,e[22]=z,e[23]=E,e[24]=A,e[25]=m,e[26]=P):P=e[26];let M;e[27]!==b||e[28]!==w||e[29]!==u||e[30]!==m?(M=u&&(0,l.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:_n(m(b),{locale:w})}),e[27]=b,e[28]=w,e[29]=u,e[30]=m,e[31]=M):M=e[31];let F;e[32]!==g||e[33]!==f||e[34]!==b||e[35]!==r||e[36]!==n||e[37]!==i||e[38]!==s||e[39]!==o||e[40]!==m?(F=f&&(0,l.jsx)(Rm,{value:m(b),onChange:W=>{(W==null||Number.isNaN(W))&&(W=Number(i)),v(W),n(W)},minValue:i,maxValue:o,step:s,className:"w-24","aria-label":`${r||"Slider"} value input`,isDisabled:g}),e[32]=g,e[33]=f,e[34]=b,e[35]=r,e[36]=n,e[37]=i,e[38]=s,e[39]=o,e[40]=m,e[41]=F):F=e[41];let q;e[42]!==P||e[43]!==M||e[44]!==F||e[45]!==T?(q=(0,l.jsxs)("div",{className:T,children:[P,M,F]}),e[42]=P,e[43]=M,e[44]=F,e[45]=T,e[46]=q):q=e[46];let Y;return e[47]!==p||e[48]!==x||e[49]!==r||e[50]!==q||e[51]!==j||e[52]!==C?(Y=(0,l.jsx)(Xe,{label:r,id:x,align:j,fullWidth:p,className:C,children:q}),e[47]=p,e[48]=x,e[49]=r,e[50]=q,e[51]=j,e[52]=C,e[53]=Y):Y=e[53],Y},cy=J(),uy=class{constructor(){B(this,"tagName","marimo-switch");B(this,"validator",L({initialValue:V(),label:I().nullable(),disabled:V().optional()}))}render(t){return(0,l.jsx)(py,{...t})}},py=t=>{let e=(0,cy.c)(9),{value:r,setValue:n,data:a}=t,i=(0,_.useId)(),o;e[0]!==a.disabled||e[1]!==i||e[2]!==n||e[3]!==r?(o=(0,l.jsx)(aC,{"data-testid":"marimo-plugin-switch",checked:r,onCheckedChange:n,id:i,className:"data-[state=unchecked]:hover:bg-input/80 mb-0",disabled:a.disabled}),e[0]=a.disabled,e[1]=i,e[2]=n,e[3]=r,e[4]=o):o=e[4];let s;return e[5]!==a.label||e[6]!==i||e[7]!==o?(s=(0,l.jsx)(Xe,{label:a.label,align:"right",id:i,labelClassName:"ml-1",children:o}),e[5]=a.label,e[6]=i,e[7]=o,e[8]=s):s=e[8],s},my=J(),hy=class{constructor(){B(this,"tagName","marimo-tabs");B(this,"validator",L({tabs:Q(I()),label:I().nullable(),orientation:ye(["horizontal","vertical"]).default("horizontal")}))}render(t){return(0,l.jsx)(fy,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},fy=t=>{let e=(0,my.c)(33),{tabs:r,label:n,orientation:a,value:i,setValue:o,children:s}=t,[d,c]=_.useState(i||"0"),u;e[0]===o?u=e[1]:(u=A=>{c(A),o(A)},e[0]=o,e[1]=u);let p=u;i!==d&&i&&c(i);let m=a==="vertical",f;e[2]===s?f=e[3]:(f=s==null?[]:Array.isArray(s)?s:[s],e[2]=s,e[3]=f);let g=f,x=m&&"flex flex-row gap-3",w;e[4]===x?w=e[5]:(w=ee(x),e[4]=x,e[5]=w);let b=m?"flex flex-col items-stretch justify-start h-auto max-h-none shrink-0 min-w-[10rem] overflow-y-auto":"max-w-full overflow-x-auto justify-start",v;e[6]===b?v=e[7]:(v=ee("scrollbar-thin",b),e[6]=b,e[7]=v);let y;if(e[8]!==m||e[9]!==r){let A;e[11]===m?A=e[12]:(A=(R,z)=>(0,l.jsx)(rr,{value:z.toString(),className:ee(m&&"w-full justify-start"),children:qe({html:R})},z),e[11]=m,e[12]=A),y=r.map(A),e[8]=m,e[9]=r,e[10]=y}else y=e[10];let S;e[13]!==v||e[14]!==y?(S=(0,l.jsx)(sa,{className:v,children:y}),e[13]=v,e[14]=y,e[15]=S):S=e[15];let j=m&&"flex-1 min-w-0",k;e[16]===j?k=e[17]:(k=ee(j),e[16]=j,e[17]=k);let C;e[18]===g?C=e[19]:(C=g.map(gy),e[18]=g,e[19]=C);let h;e[20]!==k||e[21]!==C?(h=(0,l.jsx)("div",{className:k,children:C}),e[20]=k,e[21]=C,e[22]=h):h=e[22];let T;e[23]!==p||e[24]!==d||e[25]!==a||e[26]!==h||e[27]!==w||e[28]!==S?(T=(0,l.jsxs)(jn,{value:d,onValueChange:p,orientation:a,className:w,children:[S,h]}),e[23]=p,e[24]=d,e[25]=a,e[26]=h,e[27]=w,e[28]=S,e[29]=T):T=e[29];let N;return e[30]!==n||e[31]!==T?(N=(0,l.jsx)(Xe,{label:n,align:"top",fullWidth:!0,children:T}),e[30]=n,e[31]=T,e[32]=N):N=e[32],N};function gy(t,e){return(0,l.jsx)(Ot,{value:e.toString(),children:t},e)}var xy=J(),vy=class{constructor(){B(this,"tagName","marimo-text-area");B(this,"validator",L({initialValue:I(),placeholder:I(),label:I().nullable(),maxLength:O().optional(),minLength:O().optional(),disabled:V().optional(),debounce:Pp(Te([V(),O()])),rows:O().default(4),fullWidth:V().default(!1)}))}render(t){return(0,l.jsx)(wy,{...t.data,value:t.value,setValue:t.setValue})}},wy=t=>{let e=(0,xy.c)(57),r;e[0]!==t.maxLength||e[1]!==t.value?(r=t.maxLength?(0,l.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[0]=t.maxLength,e[1]=t.value,e[2]=r):r=e[2];let n=r;if(t.debounce===!0){let p=t.label,m=t.fullWidth,f;e[3]===t.fullWidth?f=e[4]:(f=ee("font-code",{"w-full":t.fullWidth}),e[3]=t.fullWidth,e[4]=f);let g=t.minLength!=null&&t.minLength>0,x;e[5]!==n||e[6]!==t.disabled||e[7]!==t.maxLength||e[8]!==t.minLength||e[9]!==t.placeholder||e[10]!==t.rows||e[11]!==t.setValue||e[12]!==t.value||e[13]!==f||e[14]!==g?(x=(0,l.jsx)(iS,{className:f,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:n,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder}),e[5]=n,e[6]=t.disabled,e[7]=t.maxLength,e[8]=t.minLength,e[9]=t.placeholder,e[10]=t.rows,e[11]=t.setValue,e[12]=t.value,e[13]=f,e[14]=g,e[15]=x):x=e[15];let w;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==x?(w=(0,l.jsx)(Xe,{label:p,align:"top",fullWidth:m,children:x}),e[16]=t.fullWidth,e[17]=t.label,e[18]=x,e[19]=w):w=e[19],w}if(typeof t.debounce=="number"){let p=t.label,m=t.fullWidth,f;e[20]===t.fullWidth?f=e[21]:(f=ee("font-code",{"w-full":t.fullWidth}),e[20]=t.fullWidth,e[21]=f);let g=t.minLength!=null&&t.minLength>0,x;e[22]!==n||e[23]!==t.debounce||e[24]!==t.disabled||e[25]!==t.maxLength||e[26]!==t.minLength||e[27]!==t.placeholder||e[28]!==t.rows||e[29]!==t.setValue||e[30]!==t.value||e[31]!==f||e[32]!==g?(x=(0,l.jsx)(oS,{className:f,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:n,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder,delay:t.debounce}),e[22]=n,e[23]=t.debounce,e[24]=t.disabled,e[25]=t.maxLength,e[26]=t.minLength,e[27]=t.placeholder,e[28]=t.rows,e[29]=t.setValue,e[30]=t.value,e[31]=f,e[32]=g,e[33]=x):x=e[33];let w;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==x?(w=(0,l.jsx)(Xe,{label:p,align:"top",fullWidth:m,children:x}),e[34]=t.fullWidth,e[35]=t.label,e[36]=x,e[37]=w):w=e[37],w}let a=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=ee("font-code",{"w-full":t.fullWidth}),e[38]=t.fullWidth,e[39]=o);let s=t.minLength!=null&&t.minLength>0,d;e[40]===t?d=e[41]:(d=p=>t.setValue(p.target.value),e[40]=t,e[41]=d);let c;e[42]!==n||e[43]!==t.disabled||e[44]!==t.maxLength||e[45]!==t.minLength||e[46]!==t.placeholder||e[47]!==t.rows||e[48]!==t.value||e[49]!==o||e[50]!==s||e[51]!==d?(c=(0,l.jsx)(lS,{className:o,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:s,disabled:t.disabled,bottomAdornment:n,value:t.value,onInput:d,placeholder:t.placeholder}),e[42]=n,e[43]=t.disabled,e[44]=t.maxLength,e[45]=t.minLength,e[46]=t.placeholder,e[47]=t.rows,e[48]=t.value,e[49]=o,e[50]=s,e[51]=d,e[52]=c):c=e[52];let u;return e[53]!==t.fullWidth||e[54]!==t.label||e[55]!==c?(u=(0,l.jsx)(Xe,{label:a,align:"top",fullWidth:i,children:c}),e[53]=t.fullWidth,e[54]=t.label,e[55]=c,e[56]=u):u=e[56],u},by=J(),yy="\u2022\u2022\u2022\u2022\u2022\u2022\u2022\u2022",jy=class{constructor(){B(this,"tagName","marimo-text");B(this,"validator",L({initialValue:I(),placeholder:I(),label:I().nullable(),kind:ye(["text","password","email","url"]).default("text"),maxLength:O().optional(),minLength:O().optional(),fullWidth:V().default(!1),disabled:V().optional(),debounce:Pp(Te([V(),O()])),passwordHasValue:V().optional()}))}render(t){var r;let e=t.data.kind==="password"?(r=t.host.closest(`[${Wr}]`))==null?void 0:r.getAttribute(Wr):void 0;return(0,l.jsx)(Cy,{...t.data,value:t.value,setValue:t.setValue},e??void 0)}},Cy=t=>{let e=(0,by.c)(60),[r,n]=(0,_.useState)(t.kind==="password"&&t.passwordHasValue===!0),a=(0,_.useRef)(!1),i=r?"":t.value,o=r?yy:t.placeholder,s;e[0]!==r||e[1]!==t?(s=r?h=>{a.current&&(n(!1),t.setValue(h))}:t.setValue,e[0]=r,e[1]=t,e[2]=s):s=e[2];let d=s,c;e[3]===r?c=e[4]:(c=r?()=>{a.current=!0}:void 0,e[3]=r,e[4]=c);let u=c,[p,m]=(0,_.useState)(t.value),f=p??i,g=Sy(t.kind,f),x;e[5]===Symbol.for("react.memo_cache_sentinel")?(x={text:null,password:(0,l.jsx)(Q4,{size:16}),email:(0,l.jsx)(I4,{size:16}),url:(0,l.jsx)(G4,{size:16})},e[5]=x):x=e[5];let w=x,b;e[6]!==t.maxLength||e[7]!==i?(b=t.maxLength?(0,l.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[i.length,"/",t.maxLength]}):null,e[6]=t.maxLength,e[7]=i,e[8]=b):b=e[8];let v=b,y=!g,S;e[9]!==t.fullWidth||e[10]!==y?(S=ee({"border-destructive":y,"w-full":t.fullWidth}),e[9]=t.fullWidth,e[10]=y,e[11]=S):S=e[11];let j=S,k;if(t.debounce===!0){let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[12]!==v||e[13]!==j||e[14]!==u||e[15]!==o||e[16]!==t.disabled||e[17]!==t.kind||e[18]!==t.maxLength||e[19]!==t.minLength||e[20]!==d||e[21]!==h||e[22]!==T||e[23]!==i?(N=(0,l.jsx)(J4,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onValueChange:d,onInputCapture:u}),e[12]=v,e[13]=j,e[14]=u,e[15]=o,e[16]=t.disabled,e[17]=t.kind,e[18]=t.maxLength,e[19]=t.minLength,e[20]=d,e[21]=h,e[22]=T,e[23]=i,e[24]=N):N=e[24],k=N}else if(typeof t.debounce=="number"){let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[25]===Symbol.for("react.memo_cache_sentinel")?(N=R=>m(R.currentTarget.value),e[25]=N):N=e[25];let A;e[26]!==v||e[27]!==j||e[28]!==u||e[29]!==o||e[30]!==t.debounce||e[31]!==t.disabled||e[32]!==t.kind||e[33]!==t.maxLength||e[34]!==t.minLength||e[35]!==d||e[36]!==h||e[37]!==T||e[38]!==i?(A=(0,l.jsx)(ks,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onValueChange:d,onBlur:N,delay:t.debounce,onInputCapture:u}),e[26]=v,e[27]=j,e[28]=u,e[29]=o,e[30]=t.debounce,e[31]=t.disabled,e[32]=t.kind,e[33]=t.maxLength,e[34]=t.minLength,e[35]=d,e[36]=h,e[37]=T,e[38]=i,e[39]=A):A=e[39],k=A}else{let h=w[t.kind],T=t.minLength!=null&&t.minLength>0,N;e[40]===d?N=e[41]:(N=z=>d(z.currentTarget.value),e[40]=d,e[41]=N);let A;e[42]===Symbol.for("react.memo_cache_sentinel")?(A=z=>m(z.currentTarget.value),e[42]=A):A=e[42];let R;e[43]!==v||e[44]!==j||e[45]!==u||e[46]!==o||e[47]!==t.disabled||e[48]!==t.kind||e[49]!==t.maxLength||e[50]!==t.minLength||e[51]!==h||e[52]!==T||e[53]!==N||e[54]!==i?(R=(0,l.jsx)(tS,{"data-testid":"marimo-plugin-text-input",type:t.kind,icon:h,placeholder:o,maxLength:t.maxLength,minLength:t.minLength,required:T,disabled:t.disabled,className:j,endAdornment:v,value:i,onInput:N,onBlur:A,onInputCapture:u}),e[43]=v,e[44]=j,e[45]=u,e[46]=o,e[47]=t.disabled,e[48]=t.kind,e[49]=t.maxLength,e[50]=t.minLength,e[51]=h,e[52]=T,e[53]=N,e[54]=i,e[55]=R):R=e[55],k=R}let C;return e[56]!==k||e[57]!==t.fullWidth||e[58]!==t.label?(C=(0,l.jsx)(Xe,{label:t.label,fullWidth:t.fullWidth,children:k}),e[56]=k,e[57]=t.fullWidth,e[58]=t.label,e[59]=C):C=e[59],C};function Sy(t,e){if(!e)return!0;switch(t){case"email":return I().email().safeParse(e).success;case"url":return I().url().safeParse(e).success;default:return!0}}var _y=_.lazy(()=>yt(()=>import("./vega-component-C9fDGx86.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,138,13,8,9,10,11,139,140,141,142,72,6,7,12,14,15,22,18,36,35,34,24,25,26,27,28,29,30,32,90,361,91,75,92,163,40,41,117,344,345,346,347,348,349,350,351,352,353,354,355,356,357,358,57,20,123,60,61,62]),import.meta.url)),ky=class{constructor(){B(this,"tagName","marimo-vega");B(this,"validator",L({spec:L({}).passthrough().transform(t=>t),chartSelection:Te([V(),Ke("point"),Ke("interval")]).default(!0),fieldSelection:Te([V(),Q(I())]).default(!0),embedOptions:L({}).passthrough().default({})}))}render(t){return(0,l.jsx)(_y,{value:t.value,setValue:t.setValue,...t.data})}},Ty=J(),Ny=class{constructor(){B(this,"tagName","marimo-accordion");B(this,"validator",L({labels:Q(I()),multiple:V()}))}render(t){return(0,l.jsx)(Ay,{...t.data,children:t.children})}},Ay=t=>{let e=(0,Ty.c)(8),{labels:r,multiple:n,children:a}=t,i=n?"multiple":"single",o;if(e[0]!==a||e[1]!==r){let d;e[3]===r?d=e[4]:(d=(c,u)=>(0,l.jsxs)(Xp,{value:u.toString(),children:[(0,l.jsx)(Qp,{className:"py-2 text-md",children:qe({html:r[u]})}),(0,l.jsx)(Zp,{className:"text-md",children:c})]},u),e[3]=r,e[4]=d),o=_.Children.map(a,d),e[0]=a,e[1]=r,e[2]=o}else o=e[2];let s;return e[5]!==o||e[6]!==i?(s=(0,l.jsx)(ss,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=s):s=e[7],s};const Iy=as("border rounded-lg p-12 mt-12 mb-12 text-foreground shadow-[4px_4px_0px_0px]",{variants:{kind:{neutral:"border-(--slate-9) shadow-(color:--slate-8)",alert:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",info:"bg-(--sky-1) border-(--sky-8) shadow-(color:--sky-7)",danger:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",warn:"bg-(--amber-2) border-(--amber-9) shadow-(color:--amber-8)",success:"bg-(--grass-2) border-(--grass-9) shadow-(color:--grass-8)"}},defaultVariants:{kind:"neutral"}});var Ey=J();const vp=(0,_.memo)(t=>{let e=(0,Ey.c)(7),{html:r,kind:n}=t,a;e[0]===n?a=e[1]:(a=Iy({kind:n}),e[0]=n,e[1]=a);let i;e[2]===r?i=e[3]:(i=(0,l.jsx)(QC,{html:r,alwaysSanitizeHtml:!0}),e[2]=r,e[3]=i);let o;return e[4]!==a||e[5]!==i?(o=(0,l.jsx)("div",{className:a,children:i}),e[4]=a,e[5]=i,e[6]=o):o=e[6],o});vp.displayName="CalloutOutput";var Ry=class{constructor(){B(this,"tagName","marimo-callout-output");B(this,"validator",L({html:I(),kind:wc}))}render({data:t}){return(0,l.jsx)(vp,{html:t.html,kind:t.kind})}},zy=":root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}",My=".swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}",Py=".swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}",Fy='.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}',Ly=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',Oy=".mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex;& .output{max-width:100%;width:unset;margin:auto 0}&>:only-child>.output:only-child{flex:1}& div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important;@media (width>=500px){min-width:350px}}}.mo-slides-notes-resize{background-color:#0000;outline:none;height:4px;transition:background-color .2s linear}.mo-slides-notes-resize:hover,.mo-slides-notes-resize[data-resize-handle-active]{background-color:var(--slate-11)}",Vy=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px;& .swiper-button-next,& .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0;&.swiper-button-disabled{opacity:0}&:hover:not(.swiper-button-disabled){opacity:1}}}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:host:host{display:initial}',Dy=class{constructor(){B(this,"tagName","marimo-carousel");B(this,"validator",L({index:I().nullish(),height:Te([I(),O()]).nullish()}));B(this,"cssStyles",[Ly,Fy,zy,My,Py,Oy,Vy])}render(t){return(0,l.jsx)(Hy,{...t.data,wrapAround:!0,children:t.children})}},Hy=_.lazy(()=>yt(()=>import("./swiper-component-Da-gZjtJ.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([362,12,13,8,9,10,11,6,7,162,43,44,41,26,363,364]),import.meta.url));const By=Rt("marimo-download").withData(L({data:I(),disabled:V().default(!1),filename:I().nullish(),label:I().nullish(),lazy:V().default(!1)})).withFunctions({load:ot.input(L({})).output(L({data:I(),filename:I().nullish()}))}).renderer(t=>(0,l.jsx)(Wy,{data:t.data,...t.functions}));var Wy=({data:t,load:e})=>{let[r,n]=(0,_.useState)(!1),a=async s=>{if(t.lazy&&!t.disabled){s.preventDefault(),n(!0);try{let d=await e({});n4(d.data,d.filename||t.filename||"download")}catch(d){At({title:"Failed to download",description:"Please try again."}),ue.error("Failed to download:",d)}finally{n(!1)}}},i=r?Ti:PC,o=t.label?qe({html:t.label}):"Download";return(0,l.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:a,className:bs({variant:"secondary",disabled:t.disabled||r}),children:[(0,l.jsx)(i,{className:ee("w-3 h-3",t.label&&"mr-2",r&&"animate-spin")}),o]})},$y=_.lazy(()=>yt(()=>import("./ImageComparisonComponent-nhywlX8O.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([365,8,9,10,11]),import.meta.url)),Uy=class{constructor(){B(this,"tagName","marimo-image-comparison");B(this,"validator",L({beforeSrc:I(),afterSrc:I(),value:O().min(0).max(100).default(50),direction:ye(["horizontal","vertical"]).default("horizontal"),width:I().optional(),height:I().optional()}))}render(t){return(0,l.jsx)(_.Suspense,{fallback:(0,l.jsx)("div",{children:"Loading image comparison..."}),children:(0,l.jsx)($y,{...t.data})})}},qy=class{constructor(){B(this,"tagName","marimo-json-output");B(this,"validator",L({name:I().nullish(),jsonData:Cr(),valueTypes:ye(["json","python"]).default("python")}))}render({data:t,host:e}){let r=t.name===void 0?!1:t.name||"";return(0,l.jsx)(pm,{container:e.shadowRoot,children:(0,l.jsx)(gm,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:r})})}},Yy=J();const Gy=Rt("marimo-lazy").withData(L({showLoadingIndicator:V().default(!1)})).withFunctions({load:ot.input(L({})).output(L({html:I()}))}).renderer(t=>(0,l.jsx)(Ky,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var Ky=t=>{let e=(0,Yy.c)(15),{load:r,showLoadingIndicator:n,value:a,setValue:i}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={threshold:0,root:null,rootMargin:"0px"},e[0]=o):o=e[0];let[s,d]=EC(o);d!=null&&d.isIntersecting&&!a&&i(!0);let c;e[1]!==r||e[2]!==a?(c=w=>a?r({}):(w.previous(),Promise.resolve(void 0)),e[1]=r,e[2]=a,e[3]=c):c=e[3];let u;e[4]===a?u=e[5]:(u=[a],e[4]=a,e[5]=u);let{data:p,error:m,isPending:f}=Ht(c,u);if(m){let w;return e[6]===m?w=e[7]:(w=(0,l.jsx)(ma,{error:m}),e[6]=m,e[7]=w),w}let g;e[8]!==p||e[9]!==f||e[10]!==n?(g=f&&n?(0,l.jsx)(Ti,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):p&&qe({html:p.html}),e[8]=p,e[9]=f,e[10]=n,e[11]=g):g=e[11];let x;return e[12]!==s||e[13]!==g?(x=(0,l.jsx)("div",{ref:s,className:"min-h-4",children:g}),e[12]=s,e[13]=g,e[14]=x):x=e[14],x},Qy=class{constructor(){B(this,"tagName","marimo-mime-renderer");B(this,"validator",L({mime:I().transform(t=>t),data:Te([I(),bn(),pt(I(),Cr()),Q(Yt())]).transform(t=>t)}))}render({data:t}){return t.data?(0,l.jsx)(GC,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,l.jsx)("div",{})}},Xy=class{constructor(){B(this,"tagName","marimo-mermaid");B(this,"validator",L({diagram:I(),theme:I().optional(),theme_variables:pt(I(),I()).optional()}))}render(t){return(0,l.jsx)(Zy,{diagram:t.data.diagram,theme:t.data.theme,themeVariables:t.data.theme_variables})}},Zy=(0,_.lazy)(()=>yt(()=>import("./mermaid-CZhfODkT.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([366,4,14,13,8,9,10,11,15,25,90,26,91,75,12,6,7,92,30,40,24,27,28,29,367,368,369,370,346,371,357,355,372,58,96,335,373,374,375,376,377,378,379,380,381,358,351,356]),import.meta.url)),Jy=J(),e2=t=>{let e=(0,Jy.c)(12),{label:r}=t,{items:n}=xi(K2),a;e[0]===n?a=e[1]:(a=QS(n),e[0]=n,e[1]=a);let{activeHeaderId:i,activeOccurrences:o}=GS(a);if(n.length===0){let u;return e[2]===Symbol.for("react.memo_cache_sentinel")?(u=(0,l.jsx)("div",{className:"text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg",children:"No outline found. Add markdown headings to your notebook to create an outline."}),e[2]=u):u=e[2],u}let s;e[3]===r?s=e[4]:(s=r&&(0,l.jsx)("div",{className:"px-4 py-2 border-b border-border font-medium text-sm",children:r}),e[3]=r,e[4]=s);let d;e[5]!==i||e[6]!==o||e[7]!==n?(d=(0,l.jsx)(KS,{className:"max-h-[400px]",items:n,activeHeaderId:i,activeOccurrences:o}),e[5]=i,e[6]=o,e[7]=n,e[8]=d):d=e[8];let c;return e[9]!==s||e[10]!==d?(c=(0,l.jsxs)("div",{className:"border border-border rounded-lg",children:[s,d]}),e[9]=s,e[10]=d,e[11]=c):c=e[11],c},t2=class{constructor(){B(this,"tagName","marimo-outline");B(this,"validator",L({label:I().optional()}))}render(t){let{label:e}=t.data;return(0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(e2,{label:e})})}},r2=Go(((t,e)=>{(function(){var r=Object.assign||function(h){for(var T,N=1;N<arguments.length;N++)for(var A in T=arguments[N],T)b(T,A)&&(h[A]=T[A]);return h},n=Array.isArray||function(h){return Object.prototype.toString.call(h)==="[object Array]"},a=d(["\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2","\u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"],["\u03BC\u03AE\u03BD\u03B1\u03C2","\u03BC\u03AE\u03BD\u03B5\u03C2"],["\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1","\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"],["\u03BC\u03AD\u03C1\u03B1","\u03BC\u03AD\u03C1\u03B5\u03C2"],["\u03CE\u03C1\u03B1","\u03CE\u03C1\u03B5\u03C2"],["\u03BB\u03B5\u03C0\u03C4\u03CC","\u03BB\u03B5\u03C0\u03C4\u03AC"],["\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF","\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"],["\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03CC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5","\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03AC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5"],","),i={af:d(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:o("\u12D3\u1218\u1275","\u12C8\u122D","\u1233\u121D\u1295\u1275","\u1240\u1295","\u1230\u12D3\u1275","\u12F0\u1242\u1243","\u1230\u12A8\u1295\u12F5","\u121A\u120A\u1230\u12A8\u1295\u12F5"),ar:r(o(function(h){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][m(h)]},function(h){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][m(h)]},function(h){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][m(h)]},function(h){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][m(h)]},function(h){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][m(h)]},function(h){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][m(h)]},function(h){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][m(h)]},function(h){return["\u062C\u0632\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u062C\u0632\u0622\u0646 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u0623\u062C\u0632\u0627\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629"][m(h)]},","),{delimiter:" \uFEED ",_hideCountIf2:!0,_digitReplacements:["\u06F0","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"]}),bg:p(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446\u0430","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u0441\u0435\u0434\u043C\u0438\u0446\u0438","\u0441\u0435\u0434\u043C\u0438\u0446\u0430","\u0441\u0435\u0434\u043C\u0438\u0446\u0438"],["\u0434\u043D\u0438","\u0434\u0435\u043D","\u0434\u043D\u0438"],["\u0447\u0430\u0441\u0430","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0438","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),bn:o("\u09AC\u099B\u09B0","\u09AE\u09BE\u09B8","\u09B8\u09AA\u09CD\u09A4\u09BE\u09B9","\u09A6\u09BF\u09A8","\u0998\u09A8\u09CD\u099F\u09BE","\u09AE\u09BF\u09A8\u09BF\u099F","\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1","\u09AE\u09BF\u09B2\u09BF\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1"),ca:d(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:o("\u0633\u0627\u06B5","\u0645\u0627\u0646\u06AF","\u0647\u06D5\u0641\u062A\u06D5","\u0695\u06C6\u0698","\u06A9\u0627\u0698\u06CE\u0631","\u062E\u0648\u0644\u06D5\u06A9","\u0686\u0631\u06A9\u06D5","\u0645\u06CC\u0644\u06CC \u0686\u0631\u06A9\u06D5","."),cs:o(function(h){return["rok","roku","roky","let"][g(h)]},function(h){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(h)]},function(h){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(h)]},function(h){return["den","dne","dny","dn\xED"][g(h)]},function(h){return["hodina","hodiny","hodiny","hodin"][g(h)]},function(h){return["minuta","minuty","minuty","minut"][g(h)]},function(h){return["sekunda","sekundy","sekundy","sekund"][g(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisekund"][g(h)]},","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:d(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:a,en:d(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:d(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:d(["a\xF1o","a\xF1os"],["mes","meses"],["semana","semanas"],["d\xEDa","d\xEDas"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:d(["aasta","aastat"],["kuu","kuud"],["n\xE4dal","n\xE4dalat"],["p\xE4ev","p\xE4eva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("\u0633\u0627\u0644","\u0645\u0627\u0647","\u0647\u0641\u062A\u0647","\u0631\u0648\u0632","\u0633\u0627\u0639\u062A","\u062F\u0642\u06CC\u0642\u0647","\u062B\u0627\u0646\u06CC\u0647","\u0645\u06CC\u0644\u06CC \u062B\u0627\u0646\u06CC\u0647"),fi:d(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["p\xE4iv\xE4","p\xE4iv\xE4\xE4"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:d(["\xE1r","\xE1r"],["m\xE1na\xF0ur","m\xE1na\xF0ir"],["vika","vikur"],["dagur","dagar"],["t\xEDmi","t\xEDmar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:o(function(h){return"an"+(h>=2?"s":"")},"mois",function(h){return"semaine"+(h>=2?"s":"")},function(h){return"jour"+(h>=2?"s":"")},function(h){return"heure"+(h>=2?"s":"")},function(h){return"minute"+(h>=2?"s":"")},function(h){return"seconde"+(h>=2?"s":"")},function(h){return"milliseconde"+(h>=2?"s":"")},","),gr:a,he:d(["\u05E9\u05E0\u05D4","\u05E9\u05E0\u05D9\u05DD"],["\u05D7\u05D5\u05D3\u05E9","\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"],["\u05E9\u05D1\u05D5\u05E2","\u05E9\u05D1\u05D5\u05E2\u05D5\u05EA"],["\u05D9\u05D5\u05DD","\u05D9\u05DE\u05D9\u05DD"],["\u05E9\u05E2\u05D4","\u05E9\u05E2\u05D5\u05EA"],["\u05D3\u05E7\u05D4","\u05D3\u05E7\u05D5\u05EA"],["\u05E9\u05E0\u05D9\u05D4","\u05E9\u05E0\u05D9\u05D5\u05EA"],["\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4","\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA"]),hr:o(function(h){return h%10==2||h%10==3||h%10==4?"godine":"godina"},function(h){return h===1?"mjesec":h===2||h===3||h===4?"mjeseca":"mjeseci"},function(h){return h%10==1&&h!==11?"tjedan":"tjedna"},s(["dan","dana"]),function(h){return h===1?"sat":h===2||h===3||h===4?"sata":"sati"},function(h){var T=h%10;return(T===2||T===3||T===4)&&(h<10||h>14)?"minute":"minuta"},function(h){var T=h%10;return T===5||Math.floor(h)===h&&h>=10&&h<=19?"sekundi":T===1?"sekunda":T===2||T===3||T===4?"sekunde":"sekundi"},function(h){return h===1?"milisekunda":h%10==2||h%10==3||h%10==4?"milisekunde":"milisekundi"},","),hi:o("\u0938\u093E\u0932",s(["\u092E\u0939\u0940\u0928\u093E","\u092E\u0939\u0940\u0928\u0947"]),s(["\u0939\u095E\u094D\u0924\u093E","\u0939\u092B\u094D\u0924\u0947"]),"\u0926\u093F\u0928",s(["\u0918\u0902\u091F\u093E","\u0918\u0902\u091F\u0947"]),"\u092E\u093F\u0928\u091F","\u0938\u0947\u0915\u0902\u0921","\u092E\u093F\u0932\u0940\u0938\u0947\u0915\u0902\u0921"),hu:o("\xE9v","h\xF3nap","h\xE9t","nap","\xF3ra","perc","m\xE1sodperc","ezredm\xE1sodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:d(["\xE1r","\xE1r"],["m\xE1nu\xF0ur","m\xE1nu\xF0ir"],["vika","vikur"],["dagur","dagar"],["klukkut\xEDmi","klukkut\xEDmar"],["m\xEDn\xFAta","m\xEDn\xFAtur"],["sek\xFAnda","sek\xFAndur"],["millisek\xFAnda","millisek\xFAndur"]),it:d(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:o("\u5E74","\u30F6\u6708","\u9031\u9593","\u65E5","\u6642\u9593","\u5206","\u79D2","\u30DF\u30EA\u79D2"),km:o("\u1786\u17D2\u1793\u17B6\u17C6","\u1781\u17C2","\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD","\u1790\u17D2\u1784\u17C3","\u1798\u17C9\u17C4\u1784","\u1793\u17B6\u1791\u17B8","\u179C\u17B7\u1793\u17B6\u1791\u17B8","\u1798\u17B7\u179B\u17D2\u179B\u17B8\u179C\u17B7\u1793\u17B6\u1791\u17B8"),kn:d(["\u0CB5\u0CB0\u0CCD\u0CB7","\u0CB5\u0CB0\u0CCD\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1","\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CB5\u0CBE\u0CB0","\u0CB5\u0CBE\u0CB0\u0C97\u0CB3\u0CC1"],["\u0CA6\u0CBF\u0CA8","\u0CA6\u0CBF\u0CA8\u0C97\u0CB3\u0CC1"],["\u0C97\u0C82\u0C9F\u0CC6","\u0C97\u0C82\u0C9F\u0CC6\u0C97\u0CB3\u0CC1"],["\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7","\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"]),ko:o("\uB144","\uAC1C\uC6D4","\uC8FC\uC77C","\uC77C","\uC2DC\uAC04","\uBD84","\uCD08","\uBC00\uB9AC \uCD08"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","m\xEEl\xEE\xE7irk",","),lo:o("\u0E9B\u0EB5","\u0EC0\u0E94\u0EB7\u0EAD\u0E99","\u0EAD\u0EB2\u0E97\u0EB4\u0E94","\u0EA1\u0EB7\u0EC9","\u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87","\u0E99\u0EB2\u0E97\u0EB5","\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5","\u0EA1\u0EB4\u0E99\u0EA5\u0EB4\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5",","),lt:o(function(h){return h%10==0||h%100>=10&&h%100<=20?"met\u0173":"metai"},function(h){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][x(h)]},function(h){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][x(h)]},function(h){return["diena","dienos","dien\u0173"][x(h)]},function(h){return["valanda","valandos","valand\u0173"][x(h)]},function(h){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][x(h)]},function(h){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][x(h)]},function(h){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][x(h)]},","),lv:o(function(h){return w(h)?"gads":"gadi"},function(h){return w(h)?"m\u0113nesis":"m\u0113ne\u0161i"},function(h){return w(h)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(h){return w(h)?"diena":"dienas"},function(h){return w(h)?"stunda":"stundas"},function(h){return w(h)?"min\u016Bte":"min\u016Btes"},function(h){return w(h)?"sekunde":"sekundes"},function(h){return w(h)?"milisekunde":"milisekundes"},","),mk:d(["\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0438"],["\u043D\u0435\u0434\u0435\u043B\u0430","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u0435\u043D","\u0434\u0435\u043D\u0430"],["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],","),mn:o("\u0436\u0438\u043B","\u0441\u0430\u0440","\u0434\u043E\u043B\u043E\u043E \u0445\u043E\u043D\u043E\u0433","\u04E9\u0434\u04E9\u0440","\u0446\u0430\u0433","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),mr:o(s(["\u0935\u0930\u094D\u0937","\u0935\u0930\u094D\u0937\u0947"]),s(["\u092E\u0939\u093F\u0928\u093E","\u092E\u0939\u093F\u0928\u0947"]),s(["\u0906\u0920\u0935\u0921\u093E","\u0906\u0920\u0935\u0921\u0947"]),"\u0926\u093F\u0935\u0938","\u0924\u093E\u0938",s(["\u092E\u093F\u0928\u093F\u091F","\u092E\u093F\u0928\u093F\u091F\u0947"]),"\u0938\u0947\u0915\u0902\u0926","\u092E\u093F\u0932\u093F\u0938\u0947\u0915\u0902\u0926"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:d(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:o(function(h){return["rok","roku","lata","lat"][f(h)]},function(h){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][f(h)]},function(h){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][f(h)]},function(h){return["dzie\u0144","dnia","dni","dni"][f(h)]},function(h){return["godzina","godziny","godziny","godzin"][f(h)]},function(h){return["minuta","minuty","minuty","minut"][f(h)]},function(h){return["sekunda","sekundy","sekundy","sekund"][f(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisekund"][f(h)]},","),pt:d(["ano","anos"],["m\xEAs","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:o(c("an","ani","de ani"),c("lun\u0103","luni","de luni"),c("s\u0103pt\u0103m\xE2n\u0103","s\u0103pt\u0103m\xE2ni","de s\u0103pt\u0103m\xE2ni"),c("zi","zile","de zile"),c("or\u0103","ore","de ore"),c("minut","minute","de minute"),c("secund\u0103","secunde","de secunde"),c("milisecund\u0103","milisecunde","de milisecunde"),","),ru:p(["\u043B\u0435\u0442","\u0433\u043E\u0434","\u0433\u043E\u0434\u0430"],["\u043C\u0435\u0441\u044F\u0446\u0435\u0432","\u043C\u0435\u0441\u044F\u0446","\u043C\u0435\u0441\u044F\u0446\u0430"],["\u043D\u0435\u0434\u0435\u043B\u044C","\u043D\u0435\u0434\u0435\u043B\u044F","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u043D\u0435\u0439","\u0434\u0435\u043D\u044C","\u0434\u043D\u044F"],["\u0447\u0430\u0441\u043E\u0432","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u044B"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u044B"],["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"]),sq:o(s(["vit","vjet"]),"muaj","jav\xEB","dit\xEB","or\xEB",function(h){return"minut"+(h===1?"\xEB":"a")},function(h){return"sekond"+(h===1?"\xEB":"a")},function(h){return"milisekond"+(h===1?"\xEB":"a")},","),sr:p(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0435"],["\u043C\u0435\u0441\u0435\u0446\u0438","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u043D\u0435\u0434\u0435\u0459\u0438","\u043D\u0435\u0434\u0435\u0459\u0430","\u043D\u0435\u0434\u0435\u0459\u0435"],["\u0434\u0430\u043D\u0438","\u0434\u0430\u043D","\u0434\u0430\u043D\u0430"],["\u0441\u0430\u0442\u0438","\u0441\u0430\u0442","\u0441\u0430\u0442\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0435"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0435"]),sr_Latn:p(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:d(["\u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD","\u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBE\u0BA4\u0BAE\u0BCD","\u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBE\u0BB0\u0BAE\u0BCD","\u0BB5\u0BBE\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BA8\u0BBE\u0BB3\u0BCD","\u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BA3\u0BBF","\u0BAE\u0BA3\u0BBF\u0BA8\u0BC7\u0BB0\u0BAE\u0BCD"],["\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD","\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF","\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF","\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"]),te:d(["\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02","\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"],["\u0C28\u0C46\u0C32","\u0C28\u0C46\u0C32\u0C32"],["\u0C35\u0C3E\u0C30\u0C02","\u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"],["\u0C30\u0C4B\u0C1C\u0C41","\u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"],["\u0C17\u0C02\u0C1F","\u0C17\u0C02\u0C1F\u0C32\u0C41"],["\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02","\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"],["\u0C38\u0C46\u0C15\u0C28\u0C41","\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"],["\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D","\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"]),uk:p(["\u0440\u043E\u043A\u0456\u0432","\u0440\u0456\u043A","\u0440\u043E\u043A\u0438"],["\u043C\u0456\u0441\u044F\u0446\u0456\u0432","\u043C\u0456\u0441\u044F\u0446\u044C","\u043C\u0456\u0441\u044F\u0446\u0456"],["\u0442\u0438\u0436\u043D\u0456\u0432","\u0442\u0438\u0436\u0434\u0435\u043D\u044C","\u0442\u0438\u0436\u043D\u0456"],["\u0434\u043D\u0456\u0432","\u0434\u0435\u043D\u044C","\u0434\u043D\u0456"],["\u0433\u043E\u0434\u0438\u043D","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u0445\u0432\u0438\u043B\u0438\u043D","\u0445\u0432\u0438\u043B\u0438\u043D\u0430","\u0445\u0432\u0438\u043B\u0438\u043D\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),ur:o("\u0633\u0627\u0644",s(["\u0645\u06C1\u06CC\u0646\u06C1","\u0645\u06C1\u06CC\u0646\u06D2"]),s(["\u06C1\u0641\u062A\u06C1","\u06C1\u0641\u062A\u06D2"]),"\u062F\u0646",s(["\u06AF\u06BE\u0646\u0679\u06C1","\u06AF\u06BE\u0646\u0679\u06D2"]),"\u0645\u0646\u0679","\u0633\u06CC\u06A9\u0646\u0688","\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688"),sk:o(function(h){return["rok","roky","roky","rokov"][g(h)]},function(h){return["mesiac","mesiace","mesiace","mesiacov"][g(h)]},function(h){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(h)]},function(h){return["de\u0148","dni","dni","dn\xED"][g(h)]},function(h){return["hodina","hodiny","hodiny","hod\xEDn"][g(h)]},function(h){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(h)]},function(h){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(h)]},function(h){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(h)]},","),sl:o(function(h){return h%10==1?"leto":h%100==2?"leti":h%100==3||h%100==4||Math.floor(h)!==h&&h%100<=5?"leta":"let"},function(h){return h%10==1?"mesec":h%100==2||Math.floor(h)!==h&&h%100<=5?"meseca":h%10==3||h%10==4?"mesece":"mesecev"},function(h){return h%10==1?"teden":h%10==2||Math.floor(h)!==h&&h%100<=4?"tedna":h%10==3||h%10==4?"tedne":"tednov"},function(h){return h%100==1?"dan":"dni"},function(h){return h%10==1?"ura":h%100==2?"uri":h%10==3||h%10==4||Math.floor(h)!==h?"ure":"ur"},function(h){return h%10==1?"minuta":h%10==2?"minuti":h%10==3||h%10==4||Math.floor(h)!==h&&h%100<=4?"minute":"minut"},function(h){return h%10==1?"sekunda":h%100==2?"sekundi":h%100==3||h%100==4||Math.floor(h)!==h?"sekunde":"sekund"},function(h){return h%10==1?"milisekunda":h%100==2?"milisekundi":h%100==3||h%100==4||Math.floor(h)!==h?"milisekunde":"milisekund"},","),sv:d(["\xE5r","\xE5r"],["m\xE5nad","m\xE5nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:r(d(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:o("y\u0131l","ay","hafta","g\xFCn","saat","dakika","saniye","milisaniye",","),th:o("\u0E1B\u0E35","\u0E40\u0E14\u0E37\u0E2D\u0E19","\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","\u0E27\u0E31\u0E19","\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07","\u0E19\u0E32\u0E17\u0E35","\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E21\u0E34\u0E25\u0E25\u0E34\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("\u0439\u0438\u043B","\u043E\u0439","\u04B3\u0430\u0444\u0442\u0430","\u043A\u0443\u043D","\u0441\u043E\u0430\u0442","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),vi:o("n\u0103m","th\xE1ng","tu\u1EA7n","ng\xE0y","gi\u1EDD","ph\xFAt","gi\xE2y","mili gi\xE2y",","),zh_CN:o("\u5E74","\u4E2A\u6708","\u5468","\u5929","\u5C0F\u65F6","\u5206\u949F","\u79D2","\u6BEB\u79D2"),zh_TW:o("\u5E74","\u500B\u6708","\u5468","\u5929","\u5C0F\u6642","\u5206\u9418","\u79D2","\u6BEB\u79D2")};function o(h,T,N,A,R,z,E,P,M){var F={y:h,mo:T,w:N,d:A,h:R,m:z,s:E,ms:P};return M&&(F.decimal=M),F}function s(h){return function(T){return T===1?h[0]:h[1]}}function d(h,T,N,A,R,z,E,P,M){return o(s(h),s(T),s(N),s(A),s(R),s(z),s(E),s(P),M)}function c(h,T,N){return function(A){if(A===1)return h;if(Math.floor(A)!==A||A===0)return T;var R=A%100;return R>=1&&R<=19?T:N}}function u(h){return function(T){return Math.floor(T)===T?T%100>=5&&T%100<=20||T%10>=5&&T%10<=9||T%10==0?h[0]:T%10==1?h[1]:T>1?h[2]:h[1]:h[2]}}function p(h,T,N,A,R,z,E,P){return o(u(h),u(T),u(N),u(A),u(R),u(z),u(E),u(P),",")}function m(h){return h===2?1:h>2&&h<11?2:0}function f(h){return h===1?0:Math.floor(h)===h?h%10>=2&&h%10<=4&&!(h%100>10&&h%100<20)?2:3:1}function g(h){return h===1?0:Math.floor(h)===h?h%10>=2&&h%10<=4&&h%100<10?2:3:1}function x(h){return h===1||h%10==1&&h%100>20?0:Math.floor(h)!==h||h%10>=2&&h%100>20||h%10>=2&&h%100<10?1:2}function w(h){return h%10==1&&h%100!=11}function b(h,T){return Object.prototype.hasOwnProperty.call(h,T)}function v(h){var T=[h.language];if(b(h,"fallbacks"))if(n(h.fallbacks)&&h.fallbacks.length)T=T.concat(h.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var N=0;N<T.length;N++){var A=T[N];if(b(h.languages,A))return h.languages[A];if(b(i,A))return i[A]}throw Error("No language found.")}function y(h,T,N){var A=h.unitName,R=h.unitCount,z=N.spacer,E=N.maxDecimalPoints,P=b(N,"decimal")?N.decimal:b(T,"decimal")?T.decimal:".",M;"digitReplacements"in N?M=N.digitReplacements:"_digitReplacements"in T&&(M=T._digitReplacements);var F,q=(E===void 0?R:Math.floor(R*10**E)/10**E).toString();if(T._hideCountIf2&&R===2)F="",z="";else if(M){F="";for(var Y=0;Y<q.length;Y++){var W=q[Y];W==="."?F+=P:F+=M[W]}}else F=q.replace(".",P);var K=T[A],U=typeof K=="function"?K(R):K;return T._numberFirst?U+z+F:F+z+U}function S(h,T){var N,A,R,z,E=T.units,P=T.unitMeasures,M="largest"in T?T.largest:1/0;if(!E.length)return[];var F={};for(z=h,A=0;A<E.length;A++){N=E[A];var q=P[N];R=A===E.length-1?z/q:Math.floor(z/q),F[N]=R,z-=R*q}if(T.round){var Y=M;for(A=0;A<E.length;A++)if(N=E[A],R=F[N],R!==0&&(Y--,Y===0)){for(var W=A+1;W<E.length;W++){var K=E[W],U=F[K];F[N]+=U*P[K]/P[N],F[K]=0}break}for(A=E.length-1;A>=0;A--)if(N=E[A],R=F[N],R!==0){var X=Math.round(R);if(F[N]=X,A===0)break;var Z=E[A-1],oe=P[Z],xe=Math.floor(X*P[N]/oe);if(xe)F[Z]+=xe,F[N]=0;else break}}var Se=[];for(A=0;A<E.length&&Se.length<M;A++)N=E[A],R=F[N],R&&Se.push({unitName:N,unitCount:R});return Se}function j(h,T){var N=v(T);if(!h.length){var A=T.units,R=A[A.length-1];return y({unitName:R,unitCount:0},N,T)}for(var z=T.conjunction,E=T.serialComma,P=b(T,"delimiter")?T.delimiter:b(N,"delimiter")?N.delimiter:", ",M=[],F=0;F<h.length;F++)M.push(y(h[F],N,T));return!z||h.length===1?M.join(P):h.length===2?M.join(z):M.slice(0,-1).join(P)+(E?",":"")+z+M.slice(-1)}function k(h){var T=function(N,A){N=Math.abs(N);var R=r({},T,A||{});return j(S(N,R),R)};return r(T,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},h)}var C=r(k({}),{getSupportedLanguages:function(){var h=[];for(var T in i)b(i,T)&&T!=="gr"&&h.push(T);return h},humanizer:k});typeof define=="function"&&define.amd?define(function(){return C}):e!==void 0&&e.exports?e.exports=C:this.humanizeDuration=C})()})),n2=J(),a2=Br(r2(),1),i2=class{constructor(){B(this,"tagName","marimo-progress");B(this,"validator",L({title:I().optional(),subtitle:I().optional(),progress:Te([O(),V()]),total:O().optional(),eta:O().optional(),rate:O().optional()}))}render(t){return(0,l.jsx)(l2,{...t.data})}};const l2=t=>{let e=(0,n2.c)(24),{title:r,subtitle:n,progress:a,total:i,eta:o,rate:s}=t,d=typeof a=="number"?"items-start":"items-center",c;e[0]!==a||e[1]!==i?(c=()=>typeof a=="number"&&i!=null&&i>0?(0,l.jsxs)("div",{className:"flex gap-3 text-sm text-muted-foreground items-baseline",children:[(0,l.jsx)(a4,{value:o2(a/i*100)}),(0,l.jsxs)("span",{className:"shrink-0",children:[a," / ",i]})]}):(0,l.jsx)(Ti,{className:"w-12 h-12 animate-spin text-primary mx-auto"}),e[0]=a,e[1]=i,e[2]=c):c=e[2];let u=c,p;e[3]!==o||e[4]!==a||e[5]!==s||e[6]!==i?(p=()=>{let S=typeof a=="number"&&i!=null&&a>=i,j=[];if(s&&(s<1?j.push((0,l.jsxs)("span",{children:[Oo(1/s)," per iter"]},"rate")):j.push((0,l.jsxs)("span",{children:[s," iter/s"]},"rate")),j.push((0,l.jsx)("span",{children:"\xB7"},"spacer-rate"))),!S&&o&&j.push((0,l.jsxs)("span",{children:["ETA ",Oo(o)]},"eta"),(0,l.jsx)("span",{children:"\xB7"},"spacer-eta")),S&&s){let k=a/s;j.push((0,l.jsxs)("span",{children:["Total time ",Oo(k)]},"completed"),(0,l.jsx)("span",{children:"\xB7"},"spacer-completed"))}if(j.pop(),j.length>0)return(0,l.jsx)("div",{className:"flex gap-2 text-muted-foreground text-sm",children:j})},e[3]=o,e[4]=a,e[5]=s,e[6]=i,e[7]=p):p=e[7];let m=p,f=`flex flex-col ${d} max-w-sm p-6 mx-auto`,g;e[8]===r?g=e[9]:(g=r&&(0,l.jsx)("div",{className:"text-lg font-bold text-foreground/60",children:qe({html:r})}),e[8]=r,e[9]=g);let x;e[10]===n?x=e[11]:(x=n&&(0,l.jsx)("div",{className:"text-sm text-muted-foreground",children:qe({html:n})}),e[10]=n,e[11]=x);let w;e[12]===u?w=e[13]:(w=u(),e[12]=u,e[13]=w);let b;e[14]===m?b=e[15]:(b=m(),e[14]=m,e[15]=b);let v;e[16]!==w||e[17]!==b?(v=(0,l.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[w,b]}),e[16]=w,e[17]=b,e[18]=v):v=e[18];let y;return e[19]!==f||e[20]!==g||e[21]!==x||e[22]!==v?(y=(0,l.jsxs)("div",{className:f,children:[g,x,v]}),e[19]=f,e[20]=g,e[21]=x,e[22]=v,e[23]=y):y=e[23],y};function o2(t){return d4(t,0,100)}var s2=a2.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Oo(t){return s2(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var d2=Go((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",r=g=>g,n=/^[$_\p{ID_Start}]$/u,a=/^[$\u200c\u200d\p{ID_Continue}]$/u;function i(g){return g.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var o=class{constructor(g,x){this.tokens=g,this.originalPath=x}};t.TokenData=o;var s=class extends TypeError{constructor(g,x){let w=g;x&&(w+=`: ${x}`),w+="; visit https://git.new/pathToRegexpError for info",super(w),this.originalPath=x}};t.PathError=s;function d(g,x={}){let{encodePath:w=r}=x,b=[...g],v=0;function y(S){let j=[],k="";function C(){k&&(k=(j.push({type:"text",value:w(k)}),""))}for(;v<b.length;){let h=b[v++];if(h===S)return C(),j;if(h==="\\"){if(v===b.length)throw new s(`Unexpected end after \\ at index ${v}`,g);k+=b[v++];continue}if(h===":"||h==="*"){let T=h===":"?"param":"wildcard",N="";if(n.test(b[v]))do N+=b[v++];while(a.test(b[v]));else if(b[v]==='"'){let A=v;for(;v<b.length;){if(b[++v]==='"'){v++,A=0;break}b[v]==="\\"&&v++,N+=b[v]}if(A)throw new s(`Unterminated quote at index ${A}`,g)}if(!N)throw new s(`Missing parameter name at index ${v}`,g);C(),j.push({type:T,name:N});continue}if(h==="{"){C(),j.push({type:"group",tokens:y("}")});continue}if(h==="}"||h==="("||h===")"||h==="["||h==="]"||h==="+"||h==="?"||h==="!")throw new s(`Unexpected ${h} at index ${v-1}`,g);k+=h}if(S)throw new s(`Unexpected end at index ${v}, expected ${S}`,g);return C(),j}return new o(y(""),g)}function c(g,x={}){let{decode:w=decodeURIComponent,delimiter:b=e}=x,{regexp:v,keys:y}=u(g,x),S=y.map(j=>w===!1?r:j.type==="param"?w:k=>k.split(b).map(w));return function(j){let k=v.exec(j);if(!k)return!1;let C=k[0],h=Object.create(null);for(let T=1;T<k.length;T++){if(k[T]===void 0)continue;let N=y[T-1],A=S[T-1];h[N.name]=A(k[T])}return{path:C,params:h}}}function u(g,x={}){let{delimiter:w=e,end:b=!0,sensitive:v=!1,trailing:y=!0}=x,S=[],j="",k=0;function C(T){if(Array.isArray(T)){for(let A of T)C(A);return}let N=typeof T=="object"?T:d(T,x);p(N.tokens,0,[],A=>{if(k>=256)throw new s("Too many path combinations",N.originalPath);k>0&&(j+="|"),j+=m(A,w,S,N.originalPath),k++})}C(g);let h=`^(?:${j})`;return y&&(h+="(?:"+i(w)+"$)?"),h+=b?"$":"(?="+i(w)+"|$)",{regexp:new RegExp(h,v?"":"i"),keys:S}}function p(g,x,w,b){for(;x<g.length;){let v=g[x++];if(v.type==="group"){let y=w.length;p(v.tokens,0,w,S=>p(g,x,S,b)),w.length=y;continue}w.push(v)}b(w)}function m(g,x,w,b){let v="",y="",S="",j=0,k=0,C=0;function h(N,A){for(;N<g.length;){let R=g[N++];if(R.type===A)return!0;if(R.type==="text"&&R.value.includes(x))break}return!1}function T(N){let A="";for(;N<g.length;){let R=g[N++];if(R.type!=="text")break;A+=R.value}return A}for(;C<g.length;){let N=g[C++];if(N.type==="text"){v+=i(N.value),y+=N.value,j===2&&(S+=N.value),N.value.includes(x)&&(k=0);continue}if(N.type==="param"||N.type==="wildcard"){if(j&&!y)throw new s(`Missing text before "${N.name}" ${N.type}`,b);N.type==="param"?(v+=k&2?`(${f(x,y)}+)`:h(C,"wildcard")?`(${f(x,T(C))}+)`:k&1?`(${f(x,y)}+|${i(y)})`:`(${f(x,"")}+)`,k|=j=1):(v+=k&2?`(${f(y,"")}+)`:S?`(${f(S,"")}+|${f(x,"")}+)`:"([^]+)",S="",k|=j=2),w.push(N),y="";continue}throw TypeError(`Unknown token type: ${N.type}`)}return v}function f(g,x){return x.length>g.length?f(x,g):(g===x&&(x=""),x.length>1?`(?:(?!${i(g)}|${i(x)})[^])`:g.length>1?`(?:(?!${i(g)})[^${i(x)}])`:`[^${i(g+x)}]`)}}))(),c2=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,d2.match)(e)}))}match(t){for(let{pathFunction:e,template:r}of this.routes){let n=e(t.hash)||e(t.pathname);if(n)return[n,r]}return!1}},u2=J(),p2=class{constructor(){B(this,"tagName","marimo-routes");B(this,"validator",L({routes:Q(I())}))}render(t){return(0,l.jsx)(m2,{...t.data,children:t.children})}},m2=t=>{let e=(0,u2.c)(14),{routes:r,children:n}=t,a=_.Children.count(n);if(a!==r.length)throw Error(`Expected ${r.length} children, but got ${a}`);let i;e[0]===r?i=e[1]:(i=new c2(r),e[0]=r,e[1]=i);let o=i,s;e[2]===o?s=e[3]:(s=()=>{let v=o.match(window.location);return v?v[1]:null},e[2]=o,e[3]=s);let[d,c]=(0,_.useState)(s),u;e[4]===o?u=e[5]:(u=v=>{let y=o.match(v);c(y?y[1]:null)},e[4]=o,e[5]=u);let p=Ue(u),m,f;if(e[6]===p?(m=e[7],f=e[8]):(m=()=>{let v=y=>{p(window.location)};return window.addEventListener("hashchange",v),window.addEventListener("popstate",v),()=>{window.removeEventListener("hashchange",v),window.removeEventListener("popstate",v)}},f=[p],e[6]=p,e[7]=m,e[8]=f),(0,_.useEffect)(m,f),!d){let v;return e[9]===Symbol.for("react.memo_cache_sentinel")?(v=(0,l.jsx)(l.Fragment,{}),e[9]=v):v=e[9],v}let g=r.indexOf(d),x;e[10]===n?x=e[11]:(x=_.Children.toArray(n),e[10]=n,e[11]=x);let w=x[g],b;return e[12]===w?b=e[13]:(b=(0,l.jsx)(l.Fragment,{children:w}),e[12]=w,e[13]=b),b},h2=J(),f2=class{constructor(){B(this,"tagName","marimo-stat");B(this,"validator",L({value:Te([I(),O(),V()]).optional(),label:I().optional(),caption:I().optional(),bordered:V().default(!1),direction:ye(["increase","decrease"]).optional(),target_direction:ye(["increase","decrease"]).default("increase"),slot:Yt().optional()}))}render({data:t}){return(0,l.jsx)(g2,{...t})}};const g2=t=>{let e=(0,h2.c)(31),{value:r,label:n,caption:a,bordered:i,direction:o,target_direction:s,slot:d}=t,{locale:c}=Ir(),u;e[0]!==c||e[1]!==r?(u=()=>r==null?(0,l.jsx)("i",{children:"No value"}):typeof r=="string"?r:typeof r=="number"?CS(r,c):typeof r=="boolean"?r?"True":"False":String(r),e[0]=c,e[1]=r,e[2]=u):u=e[2];let p=u,m=o===s,f=m?"var(--grass-8)":"var(--red-8)",g=m?"var(--grass-9)":"var(--red-9)",x;e[3]===d?x=e[4]:(x=()=>{let A=XC(d);if(A!=null&&A[0]){let{mimetype:R,data:z}=A[0];return R!=="text/html"&&ue.warn(`Expected text/html, got ${R}`),qe({html:z,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=x);let w=x,b=i&&"rounded-xl border shadow bg-card",v;e[5]===b?v=e[6]:(v=ee("text-card-foreground p-6",b),e[5]=b,e[6]=v);let y;e[7]===n?y=e[8]:(y=n&&(0,l.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,l.jsx)("h3",{className:"tracking-tight text-sm font-medium",children:n})}),e[7]=n,e[8]=y);let S;e[9]===p?S=e[10]:(S=p(),e[9]=p,e[10]=S);let j;e[11]===S?j=e[12]:(j=(0,l.jsx)("div",{className:"text-2xl font-bold",children:S}),e[11]=S,e[12]=j);let k;e[13]!==a||e[14]!==o||e[15]!==f||e[16]!==g?(k=a&&(0,l.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,l.jsx)(vd,{className:"w-4 h-4 mr-1 p-0.5",fill:f,stroke:g}),o==="decrease"&&(0,l.jsx)(vd,{className:"w-4 h-4 mr-1 p-0.5 transform rotate-180",fill:f,stroke:g}),a]}),e[13]=a,e[14]=o,e[15]=f,e[16]=g,e[17]=k):k=e[17];let C;e[18]!==j||e[19]!==k?(C=(0,l.jsxs)("div",{children:[j,k]}),e[18]=j,e[19]=k,e[20]=C):C=e[20];let h;e[21]!==w||e[22]!==d?(h=d&&(0,l.jsx)("div",{className:"[--slot:true]",children:w()}),e[21]=w,e[22]=d,e[23]=h):h=e[23];let T;e[24]!==h||e[25]!==C?(T=(0,l.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[C,h]}),e[24]=h,e[25]=C,e[26]=T):T=e[26];let N;return e[27]!==T||e[28]!==v||e[29]!==y?(N=(0,l.jsxs)("div",{className:v,children:[y,T]}),e[27]=T,e[28]=v,e[29]=y,e[30]=N):N=e[30],N};var x2=J(),v2=class{constructor(){B(this,"tagName","marimo-tex");B(this,"validator",L({}))}render(t){return(0,l.jsx)(j2,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},w2=ys(async()=>(await yt(async()=>{let{default:t}=await import("./katex-Bci6q_jh.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([382,383]),import.meta.url)).default),b2=ys(async()=>{await yt(()=>import("./mhchem-BKhnkPip.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([384,383]),import.meta.url)}),Vo={"\\mbox":"\\text{#1}"};async function y2(t,e){let[r]=await Promise.all([w2(),b2()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?r.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:Vo}):e.startsWith("||(")&&e.endsWith("||)")?r.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:Vo}):e.startsWith("||[")&&e.endsWith("||]")&&r.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:Vo})}var j2=t=>{var f;let e=(0,x2.c)(8),{host:r,tex:n}=t,a=(0,_.useRef)(null),[i,o]=(0,_.useState)(n),s,d;e[0]===r?(s=e[1],d=e[2]):(s=()=>{let g=new MutationObserver(()=>{o(r.textContent||r.innerHTML)});return g.observe(r,{childList:!0,characterData:!0,subtree:!0}),()=>{g.disconnect()}},d=[r],e[0]=r,e[1]=s,e[2]=d),(0,_.useLayoutEffect)(s,d);let c=((f=r.parentElement)==null?void 0:f.tagName.toLowerCase())==="marimo-tex",u,p;e[3]!==i||e[4]!==c?(u=()=>{a.current&&!c&&y2(a.current,i)},p=[i,c],e[3]=i,e[4]=c,e[5]=u,e[6]=p):(u=e[5],p=e[6]),(0,_.useLayoutEffect)(u,p);let m;return e[7]===Symbol.for("react.memo_cache_sentinel")?(m=(0,l.jsx)("span",{ref:a}),e[7]=m):m=e[7],m};const C2=[new Y0,new X0,vv,new Nv,new Mv,new Ev,new Lv,new eg,new $v,new jw,fw,Ew,new Pw,new Gw,new Kx,new mb,new Zb,new ay,new ry,new sy,new uy,new hy,new vy,new jy,new ky,new rb,new qb,ng,Yv,pw,Gy,By,B0,pg,xb,ob];var S2=[new Ny,new Ry,new Dy,new Uy,new qy,new Qy,new Xy,new w0,new t2,new i2,new p2,new f2,new v2];function _2(){F0(),V0(),C2.forEach(gc),S2.forEach(gc)}async function k2(){if(typeof document>"u")return;let{onLCP:t,onINP:e,onCLS:r}=await yt(async()=>{let{onLCP:a,onINP:i,onCLS:o}=await import("./web-vitals-BaMazlva.js").then(async s=>(await s.__tla,s));return{onLCP:a,onINP:i,onCLS:o}},[],import.meta.url);ue.debug("Reporting vitals");let n=a=>{let i=a.rating==="good"?"green":a.rating==="needs-improvement"?"orange":"red";ue.log(`%c [Metric ${a.name}] ${a.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};r(n),e(n),t(n)}var T2=Ep(),wp=!1;function N2(t,e){if(wp)return ue.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");wp=!0;let r=(0,T2.createRoot)(e);try{O4(),_2(),o0(),oa()&&(Aj(),Mj(TS),E2()),I2(t),r.render((0,l.jsx)(fi,{store:Ve,children:(0,l.jsx)(rc,{children:(0,l.jsx)(sc,{})})}))}catch(n){return r.render((0,l.jsx)(yi,{children:(0,l.jsx)(()=>{throw n},{})})),n}finally{k2()}}var Do=jr({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(ue.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(ue.warn("[marimo] missing config data"),{}))),A2=L({filename:I().nullish().transform(t=>t||(ue.warn("No filename provided, using fallback"),dj())),cwd:I().nullish().default(null),lspWorkspace:L({rootUri:I(),documentUri:I()}).nullish().default(null),code:I().nullish().transform(t=>t??iC()??""),version:I().nullish().transform(t=>t??"unknown"),mode:ye(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Do,configOverrides:Do,appConfig:Do,view:L({showAppCode:V().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:I().nullish().transform(t=>t??""),fileStores:Q(vj()).optional(),session:Te([bn().optional(),jr({version:Ke("1"),metadata:Yt(),cells:Q(Yt())}).transform(t=>t)]),notebook:Te([bn().optional(),jr({version:Ke("1"),metadata:Yt(),cells:Q(Yt())}).transform(t=>t)]),runtimeConfig:Q(jr({url:I(),lazy:V().default(!0),authToken:I().nullish()})).nullish().transform(t=>t??[])});function I2(t){let e=A2.safeParse(t);if(!e.success)throw ue.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let r=e.data.mode;if(i0(r),e.data.fileStores&&e.data.fileStores.length>0){ue.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)Ij.insert(0,e.data.fileStores[o]);ue.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Ve.set(p4,g0()),Ve.set(mj,e.data.filename),Ve.set(B2,e.data.cwd??null),Ve.set(Z2,e.data.lspWorkspace),Ve.set(Q2,e.data.code),Ve.set(cj,r),Ve.set(eC,e.data.version),Ve.set(rC,e.data.view.showAppCode);let n=new URL(window.location.href).searchParams.get(rs.viewAs)==="present",a=r==="edit"&&n?"present":r;if(Ve.set(uj,{mode:a,cellAnchor:null}),Ve.set(Jj,e.data.serverToken),Ve.set(Uj,$j(e.data.configOverrides)),Ve.set(Hj,Vj(e.data.config)),Ve.set(Wj,Dj(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];ue.debug("\u26A1 Runtime URL",o.url),Ve.set(Wp,{...o,serverToken:e.data.serverToken}),!o.lazy&&!oa()&&Ve.set($p,{state:Up.CONNECTING})}else Ve.set(Wp,{...Zj,lazy:!1,serverToken:e.data.serverToken});let i=$h(e.data.session,e.data.notebook);i&&Ve.set(Ap,i)}function E2(){let t=Xj();if(t)for(let e of t)Nj(es,e)}var bp=document.getElementById("root");if(bp){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");N2(window.__MARIMO_MOUNT_CONFIG__,bp)}else throw Error("[marimo] root element not found")});