@marimo-team/frontend 0.23.2-dev25 → 0.23.2-dev6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/{CellStatus-zTcdYfqx.js → CellStatus-Bwtcvgko.js} +1 -1
- package/dist/assets/{JsonOutput-CavtrueA.js → JsonOutput-ZBMYDZ3q.js} +1 -1
- package/dist/assets/{MarimoErrorOutput-Bmp8DLLo.js → MarimoErrorOutput-DLREr23s.js} +1 -1
- package/dist/assets/{RenderHTML-CM3WMmA8.js → RenderHTML-5FjN3OZH.js} +1 -1
- package/dist/assets/{add-cell-with-ai-_Y6SqxBB.js → add-cell-with-ai-DbPkyXyg.js} +1 -1
- package/dist/assets/{add-connection-dialog-BGZvJkor.js → add-connection-dialog-sNnLlFNN.js} +1 -1
- package/dist/assets/{agent-panel-BvL9Lu9c.js → agent-panel-DMb4Q9pS.js} +1 -1
- package/dist/assets/{ai-model-dropdown-Dyxi3_nW.js → ai-model-dropdown-CZB8Xt_D.js} +1 -1
- package/dist/assets/{app-config-button-BT2Do4RJ.js → app-config-button-b2p8_NdZ.js} +1 -1
- package/dist/assets/{cell-editor-B40o_zx_.js → cell-editor-BhmiBBOV.js} +1 -1
- package/dist/assets/{cell-link-CRkrHl-y.js → cell-link-DMyOfytV.js} +1 -1
- package/dist/assets/{cells-BqYYXi6G.js → cells-CAft_y9h.js} +56 -56
- package/dist/assets/{chat-display-M_nvYuHH.js → chat-display-CnlcyHaA.js} +1 -1
- package/dist/assets/{chat-panel-BMOW93uQ.js → chat-panel-DujR1b5z.js} +1 -1
- package/dist/assets/{chat-ui-DyeimpVh.js → chat-ui-D-qk0TXi.js} +1 -1
- package/dist/assets/{column-preview-AfcgbFG_.js → column-preview-D2B6qQUU.js} +1 -1
- package/dist/assets/{command-palette-BgvdyU3B.js → command-palette-eS5sJOYR.js} +1 -1
- package/dist/assets/{common-DeoGL9rK.js → common-BK4i6reD.js} +1 -1
- package/dist/assets/{components-CDgxb-5o.js → components-CviIANwr.js} +1 -1
- package/dist/assets/{components-DKHyHZBv.js → components-Dta3XEEY.js} +1 -1
- package/dist/assets/{datasource-COFRe84u.js → datasource-C1kSlT4s.js} +1 -1
- package/dist/assets/{dependency-graph-panel-BXSe6z1R.js → dependency-graph-panel-CMZnqwyn.js} +1 -1
- package/dist/assets/{documentation-panel-DUPcsi8P.js → documentation-panel-D9WN55Gq.js} +1 -1
- package/dist/assets/{download-5XbM3TL_.js → download-COyB8G-Y.js} +1 -1
- package/dist/assets/{edit-page-DD4uEDmX.js → edit-page-DlRqSgY9.js} +3 -3
- package/dist/assets/{error-panel-DQOeSv5-.js → error-panel-5I4mWGfs.js} +1 -1
- package/dist/assets/{file-explorer-panel-B67zjs2X.js → file-explorer-panel-B86r63YC.js} +1 -1
- package/dist/assets/{file-icons-Bj5YoM7H.js → file-icons-CRsc39Ny.js} +1 -1
- package/dist/assets/{floating-outline-XObNWtN8.js → floating-outline-Cj9Gdjkf.js} +1 -1
- package/dist/assets/{focus-DzMo6UAI.js → focus-BtOH5aLt.js} +1 -1
- package/dist/assets/{form-BJ6VFU8l.js → form-Dd-gRdD5.js} +1 -1
- package/dist/assets/{home-page-BUdd5uTz.js → home-page-B320ImBG.js} +1 -1
- package/dist/assets/{hooks-DvwShzDb.js → hooks-B5RY2sms.js} +1 -1
- package/dist/assets/{html-to-image-DGqJ93hW.js → html-to-image-WCAzCguU.js} +1 -1
- package/dist/assets/{index-y6osgSWB.js → index-BjVgEJVi.js} +18 -18
- package/dist/assets/{kiosk-mode-DYHoqMaZ.js → kiosk-mode-CJ7p0kAg.js} +1 -1
- package/dist/assets/{layout-erv8pLIP.js → layout-CnhRBcnG.js} +1 -1
- package/dist/assets/{logs-panel-CRW4c2IL.js → logs-panel-DG3RlQaY.js} +1 -1
- package/dist/assets/{markdown-renderer-DNANigO8.js → markdown-renderer-BDdzHOwK.js} +1 -1
- package/dist/assets/{name-cell-input-3iKP6YTw.js → name-cell-input-68gHDuvg.js} +1 -1
- package/dist/assets/{outline-panel-VIqWcHj6.js → outline-panel-Dr0105mz.js} +1 -1
- package/dist/assets/{packages-panel-D_z4ylBE.js → packages-panel-CZHZDUXZ.js} +1 -1
- package/dist/assets/{panels-1u-RE72f.js → panels-DkMIu1eO.js} +1 -1
- package/dist/assets/{process-output-Q6wVr7a-.js → process-output-CGSREMph.js} +1 -1
- package/dist/assets/{readonly-python-code-CI_b818F.js → readonly-python-code-3lQBDicq.js} +1 -1
- package/dist/assets/{run-page-DfWH_1mz.js → run-page-DX60GJ1i.js} +1 -1
- package/dist/assets/{scratchpad-panel-CnaiXtoJ.js → scratchpad-panel-DxI-sH1n.js} +1 -1
- package/dist/assets/{session-panel-C68GBFwH.js → session-panel-DxZNtbiE.js} +1 -1
- package/dist/assets/{snippets-panel-BmIdR0lc.js → snippets-panel-CFXjJW29.js} +1 -1
- package/dist/assets/{state-D1n-olwf.js → state-BFn0AerH.js} +1 -1
- package/dist/assets/{state-DPomuurt.js → state-CDUQVvOe.js} +1 -1
- package/dist/assets/{textarea-CS2o3y4W.js → textarea-CWy4stSy.js} +1 -1
- package/dist/assets/{tracing-CPDDwzIA.js → tracing-CIygWG5q.js} +1 -1
- package/dist/assets/{tracing-panel-Ku1LapXJ.js → tracing-panel-Dk7FE-7H.js} +2 -2
- package/dist/assets/{useAddCell-B6yUY_RG.js → useAddCell-BZ5oFC7U.js} +1 -1
- package/dist/assets/{useCellActionButton-SxeK4dmW.js → useCellActionButton-Dd3hgOb6.js} +1 -1
- package/dist/assets/{useDeleteCell-DHUjJQJx.js → useDeleteCell-BHcPGuXL.js} +1 -1
- package/dist/assets/{useDependencyPanelTab-CflgayoH.js → useDependencyPanelTab-B94SJnJl.js} +1 -1
- package/dist/assets/{useNotebookActions-Ch1o32Jw.js → useNotebookActions-PmHNCN16.js} +1 -1
- package/dist/assets/{useRunCells-DFYAOTWd.js → useRunCells-BJn5ZEb6.js} +1 -1
- package/dist/assets/{useSplitCell-Bh-NZsBl.js → useSplitCell-Bfb8riCm.js} +1 -1
- package/dist/index.html +22 -22
- package/package.json +1 -1
- package/src/components/editor/Output.tsx +1 -1
- package/src/core/codemirror/language/languages/python.ts +9 -9
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +8 -1
- package/src/core/codemirror/lsp/federated-lsp.ts +2 -2
- package/src/core/codemirror/lsp/notebook-lsp.ts +2 -2
- package/src/core/codemirror/lsp/utils.ts +21 -6
- package/src/plugins/impl/plotly/__tests__/PlotlyPlugin.test.tsx +50 -0
- package/src/plugins/impl/plotly/__tests__/selection.test.ts +82 -0
- package/src/plugins/impl/plotly/selection.ts +62 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-Bj1aDYRI.js";import{dt as F}from"./cells-BqYYXi6G.js";import{t as O}from"./compiler-runtime-B3qBwwSJ.js";import{_ as B}from"./useEventListener-DGjKht0c.js";import{t as L}from"./jsx-runtime-Blw4afVn.js";import{t as _}from"./tooltip-DmqhBBs6.js";import{t as V}from"./createLucideIcon-w-Qo9n0R.js";import{c as G,l as A,n as J,t as M}from"./toDate-BGIVWsZ9.js";import{t as K}from"./ellipsis-DidENKDy.js";import{t as R}from"./refresh-cw-CiOe0azG.js";import{t as Q}from"./workflow-BAgKBPlq.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-JRtp5zfw.js";import{t as E}from"./useDateFormatter-BEz9SEXo.js";import{t as H}from"./multi-icon-CGRsWmew.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=M(n)-+M(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return M(n)-+M(e)}function le(n,e){let t=M(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=M(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=M(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),D=(C(m)-C(b))/1e3,p=Math.round((x-D)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:D,uninstantiated:p}=n;if(!t)return null;let T=x??D,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(_,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(_,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(_,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(_,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),D;return e[2]===x?D=e[3]:(D=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=D),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",D]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
|
|
1
|
+
import{s as $}from"./chunk-LvLJmgfZ.js";import{t as z}from"./react-Bj1aDYRI.js";import{dt as F}from"./cells-CAft_y9h.js";import{t as O}from"./compiler-runtime-B3qBwwSJ.js";import{_ as B}from"./useEventListener-DGjKht0c.js";import{t as L}from"./jsx-runtime-Blw4afVn.js";import{t as _}from"./tooltip-DmqhBBs6.js";import{t as V}from"./createLucideIcon-w-Qo9n0R.js";import{c as G,l as A,n as J,t as M}from"./toDate-BGIVWsZ9.js";import{t as K}from"./ellipsis-DidENKDy.js";import{t as R}from"./refresh-cw-CiOe0azG.js";import{t as Q}from"./workflow-BAgKBPlq.js";import{i as U,n as Y,r as C,t as Z}from"./en-US-JRtp5zfw.js";import{t as E}from"./useDateFormatter-BEz9SEXo.js";import{t as H}from"./multi-icon-CGRsWmew.js";var k=V("ban",[["path",{d:"M4.929 4.929 19.07 19.071",key:"196cmz"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);function X(n,e){let t=M(n)-+M(e);return t<0?-1:t>0?1:t}function ee(n){return J(n,Date.now())}function te(n,e,t){let[d,l]=Y(t==null?void 0:t.in,n,e),h=d.getFullYear()-l.getFullYear(),o=d.getMonth()-l.getMonth();return h*12+o}function se(n){return e=>{let t=(n?Math[n]:Math.trunc)(e);return t===0?0:t}}function ae(n,e){return M(n)-+M(e)}function le(n,e){let t=M(n,e==null?void 0:e.in);return t.setHours(23,59,59,999),t}function ne(n,e){let t=M(n,e==null?void 0:e.in),d=t.getMonth();return t.setFullYear(t.getFullYear(),d+1,0),t.setHours(23,59,59,999),t}function re(n,e){let t=M(n,e==null?void 0:e.in);return+le(t,e)==+ne(t,e)}function ie(n,e,t){let[d,l,h]=Y(t==null?void 0:t.in,n,n,e),o=X(l,h),b=Math.abs(te(l,h));if(b<1)return 0;l.getMonth()===1&&l.getDate()>27&&l.setDate(30),l.setMonth(l.getMonth()-o*b);let m=X(l,h)===-o;re(d)&&b===1&&X(d,h)===1&&(m=!1);let x=o*(b-+m);return x===0?0:x}function ce(n,e,t){let d=ae(n,e)/1e3;return se(t==null?void 0:t.roundingMethod)(d)}function oe(n,e,t){let d=U(),l=(t==null?void 0:t.locale)??d.locale??Z,h=X(n,e);if(isNaN(h))throw RangeError("Invalid time value");let o=Object.assign({},t,{addSuffix:t==null?void 0:t.addSuffix,comparison:h}),[b,m]=Y(t==null?void 0:t.in,...h>0?[e,n]:[n,e]),x=ce(m,b),D=(C(m)-C(b))/1e3,p=Math.round((x-D)/60),T;if(p<2)return t!=null&&t.includeSeconds?x<5?l.formatDistance("lessThanXSeconds",5,o):x<10?l.formatDistance("lessThanXSeconds",10,o):x<20?l.formatDistance("lessThanXSeconds",20,o):x<40?l.formatDistance("halfAMinute",0,o):x<60?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",1,o):p===0?l.formatDistance("lessThanXMinutes",1,o):l.formatDistance("xMinutes",p,o);if(p<45)return l.formatDistance("xMinutes",p,o);if(p<90)return l.formatDistance("aboutXHours",1,o);if(p<1440){let g=Math.round(p/60);return l.formatDistance("aboutXHours",g,o)}else{if(p<2520)return l.formatDistance("xDays",1,o);if(p<43200){let g=Math.round(p/G);return l.formatDistance("xDays",g,o)}else if(p<43200*2)return T=Math.round(p/A),l.formatDistance("aboutXMonths",T,o)}if(T=ie(m,b),T<12){let g=Math.round(p/A);return l.formatDistance("xMonths",g,o)}else{let g=T%12,u=Math.trunc(T/12);return g<3?l.formatDistance("aboutXYears",u,o):g<9?l.formatDistance("overXYears",u,o):l.formatDistance("almostXYears",u+1,o)}}function ue(n,e){return oe(n,ee(n),e)}var I=$(z(),1);function de(n){let e=(0,I.useRef)(n),[t,d]=(0,I.useState)(n);return(0,I.useEffect)(()=>{let l=setInterval(()=>{d(F.now().toMilliseconds())},17);return()=>clearInterval(l)},[]),t-e.current}var P=O(),s=$(L(),1);const me=n=>{let e=(0,P.c)(79),{editing:t,status:d,disabled:l,staleInputs:h,edited:o,interrupted:b,elapsedTime:m,runStartTimestamp:x,lastRunStartTimestamp:D,uninstantiated:p}=n;if(!t)return null;let T=x??D,g;e[0]===T?g=e[1]:(g=T?(0,s.jsx)(he,{lastRanTime:T}):null,e[0]=T,e[1]=g);let u=g;if(l&&d==="running")return B.error("CellStatusComponent: disabled and running"),null;if(l&&h){let c;e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but it's disabled and can't be run"}),e[2]=c):c=e[2];let a;e[3]===u?a=e[4]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[3]=u,e[4]=a);let i;e[5]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(R,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[5]=i):i=e[5];let r;return e[6]===a?r=e[7]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[6]=a,e[7]=r),r}if(l){let c;e[8]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is disabled"}),e[8]=c):c=e[8];let a;e[9]===u?a=e[10]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[9]=u,e[10]=a);let i;e[11]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-disabled","data-testid":"cell-status","data-status":"disabled",children:(0,s.jsx)(k,{className:"h-5 w-5",strokeWidth:1.5})}),e[11]=i):i=e[11];let r;return e[12]===a?r=e[13]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[12]=a,e[13]=r),r}if(!h&&d==="disabled-transitively"){let c;e[14]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"An ancestor of this cell is disabled, so it can't be run"}),e[14]=c):c=e[14];let a;e[15]===u?a=e[16]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[15]=u,e[16]=a);let i;e[17]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"disabled-transitively",children:(0,s.jsxs)(H,{layerTop:!0,children:[(0,s.jsx)(Q,{className:"h-5 w-5",strokeWidth:1.5}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[17]=i):i=e[17];let r;return e[18]===a?r=e[19]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[18]=a,e[19]=r),r}if(h&&d==="disabled-transitively"){let c;e[20]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is stale, but an ancestor is disabled so it can't be run"}),e[20]=c):c=e[20];let a;e[21]===u?a=e[22]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[21]=u,e[22]=a);let i;e[23]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-stale","data-testid":"cell-status","data-status":"stale",children:(0,s.jsxs)(H,{children:[(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1}),(0,s.jsx)(k,{className:"h-3 w-3",strokeWidth:2.5})]})}),e[23]=i):i=e[23];let r;return e[24]===a?r=e[25]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[24]=a,e[25]=r),r}if(d==="running"){let c;e[26]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is running"}),e[26]=c):c=e[26];let a;e[27]===u?a=e[28]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[27]=u,e[28]=a);let i;e[29]===x?i=e[30]:(i=F.fromSeconds(x)||F.now(),e[29]=x,e[30]=i);let r;e[31]===i?r=e[32]:(r=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time running","data-testid":"cell-status","data-status":"running",children:(0,s.jsx)(fe,{startTime:i})}),e[31]=i,e[32]=r);let f;return e[33]!==a||e[34]!==r?(f=(0,s.jsx)(_,{content:a,usePortal:!0,children:r}),e[33]=a,e[34]=r,e[35]=f):f=e[35],f}if(d==="queued"){let c;e[36]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("span",{children:"This cell is queued to run"}),e[36]=c):c=e[36];let a;e[37]===u?a=e[38]:(a=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[c,u]}),e[37]=u,e[38]=a);let i;e[39]===Symbol.for("react.memo_cache_sentinel")?(i=(0,s.jsx)("div",{className:"cell-status-icon cell-status-queued","data-testid":"cell-status","data-status":"queued",children:(0,s.jsx)(K,{className:"h-5 w-5",strokeWidth:1.5})}),e[39]=i):i=e[39];let r;return e[40]===a?r=e[41]:(r=(0,s.jsx)(_,{content:a,usePortal:!0,children:i}),e[40]=a,e[41]=r),r}if(o||b||h||p){let c;e[42]===m?c=e[43]:(c=W(m),e[42]=m,e[43]=c);let a=c,i;e[44]!==m||e[45]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[44]=m,e[45]=a,e[46]=i):i=e[46];let r=i,f,v="";if(p)f="This cell has not yet been run";else if(b){f="This cell was interrupted when it was last run";let j;e[47]===r?j=e[48]:(j=(0,s.jsxs)("span",{children:["This cell ran for ",r," before being interrupted"]}),e[47]=r,e[48]=j),v=j}else if(o){f="This cell has been modified since it was last run";let j;e[49]===r?j=e[50]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[49]=r,e[50]=j),v=j}else{f="This cell has not been run with the latest inputs";let j;e[51]===r?j=e[52]:(j=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[51]=r,e[52]=j),v=j}let N;e[53]===Symbol.for("react.memo_cache_sentinel")?(N=(0,s.jsx)("div",{className:"cell-status-stale","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)(R,{className:"h-5 w-5",strokeWidth:1.5})}),e[53]=N):N=e[53];let S;e[54]===f?S=e[55]:(S=(0,s.jsx)(_,{content:f,usePortal:!0,children:N}),e[54]=f,e[55]=S);let y;e[56]!==m||e[57]!==a||e[58]!==u||e[59]!==v?(y=m&&(0,s.jsx)(_,{content:(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[v,u]}),usePortal:!0,children:(0,s.jsx)("div",{className:"elapsed-time hover-action","data-testid":"cell-status","data-status":"outdated",children:(0,s.jsx)("span",{children:a})})}),e[56]=m,e[57]=a,e[58]=u,e[59]=v,e[60]=y):y=e[60];let w;return e[61]!==S||e[62]!==y?(w=(0,s.jsxs)("div",{className:"cell-status-icon flex items-center gap-2",children:[S,y]}),e[61]=S,e[62]=y,e[63]=w):w=e[63],w}if(m!==null){let c;e[64]===m?c=e[65]:(c=W(m),e[64]=m,e[65]=c);let a=c,i;e[66]!==m||e[67]!==a?(i=m?(0,s.jsx)(q,{elapsedTime:a}):null,e[66]=m,e[67]=a,e[68]=i):i=e[68];let r=i,f;e[69]===r?f=e[70]:(f=(0,s.jsxs)("span",{children:["This cell took ",r," to run"]}),e[69]=r,e[70]=f);let v;e[71]!==u||e[72]!==f?(v=(0,s.jsxs)("div",{className:"flex flex-col gap-1",children:[f,u]}),e[71]=u,e[72]=f,e[73]=v):v=e[73];let N;e[74]===a?N=e[75]:(N=(0,s.jsx)("div",{className:"cell-status-icon elapsed-time hover-action","data-testid":"cell-status","data-status":"idle",children:(0,s.jsx)("span",{children:a})}),e[74]=a,e[75]=N);let S;return e[76]!==v||e[77]!==N?(S=(0,s.jsx)(_,{content:v,usePortal:!0,children:N}),e[76]=v,e[77]=N,e[78]=S):S=e[78],S}return null},q=n=>{let e=(0,P.c)(2),t;return e[0]===n.elapsedTime?t=e[1]:(t=(0,s.jsx)("span",{className:"tracking-wide font-semibold",children:n.elapsedTime}),e[0]=n.elapsedTime,e[1]=t),t};var he=n=>{let e=(0,P.c)(4),t=new Date(n.lastRanTime*1e3),d=new Date,l;e[0]===Symbol.for("react.memo_cache_sentinel")?(l={hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[0]=l):l=e[0];let h=E(l),o;e[1]===Symbol.for("react.memo_cache_sentinel")?(o={month:"numeric",day:"numeric",hour:"numeric",minute:"numeric",second:"numeric",fractionalSecondDigits:3,hour12:!0},e[1]=o):o=e[1];let b=E(o),m=t.toDateString()===d.toDateString()?h:b,x=ue(t),D;return e[2]===x?D=e[3]:(D=(0,s.jsxs)("span",{className:"text-muted-foreground",children:["(",x," ago)"]}),e[2]=x,e[3]=D),(0,s.jsxs)("span",{children:["Ran at"," ",(0,s.jsx)("strong",{className:"tracking-wide font-semibold",children:m.format(t)})," ",D]})};function W(n){if(n===null)return"";let e=n,t=e/1e3;return t>=60?`${Math.floor(t/60)}m${Math.floor(t%60)}s`:t>=1?`${t.toFixed(2).toString()}s`:`${e.toFixed(0).toString()}ms`}var fe=n=>{let e=(0,P.c)(6),t;e[0]===n.startTime?t=e[1]:(t=n.startTime.toMilliseconds(),e[0]=n.startTime,e[1]=t);let d=de(t),l;e[2]===d?l=e[3]:(l=W(d),e[2]=d,e[3]=l);let h;return e[4]===l?h=e[5]:(h=(0,s.jsx)("span",{children:l}),e[4]=l,e[5]=h),h};export{q as n,W as r,me as t};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./react-vega-BfEZWy9T.js","./react-vega-BVBnH7ue.js","./precisionRound-CU2C3Vxx.js","./defaultLocale-JieDVWC_.js","./linear-BICTUQLW.js","./timer-DBQ_H0G1.js","./chunk-LvLJmgfZ.js","./init-AtRnKt23.js","./time-DLcLlk0u.js","./defaultLocale-BLne0bXb.js","./range-1DwpgXvM.js","./vega-loader.browser-DXARUlxo.js","./treemap-DqSsE4KM.js","./path-BMloFSsK.js","./colors-C3_wIR8c.js","./ordinal-DuTuuUgV.js","./arc-3DY1fURi.js","./math-BIeW4iGV.js","./array-BF0shS9G.js","./step-COhf-b0R.js","./line-BCZzhM6G.js","./jsx-runtime-Blw4afVn.js","./react-Bj1aDYRI.js"])))=>i.map(i=>d[i]);
|
|
2
|
-
var Zx=Object.defineProperty;var eb=(b,s,gt)=>s in b?Zx(b,s,{enumerable:!0,configurable:!0,writable:!0,value:gt}):b[s]=gt;var On=(b,s,gt)=>eb(b,typeof s!="symbol"?s+"":s,gt);import{s as zr,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as tb,c as nb,f as Eu,g as rb,h as lb,l as Vr,n as at,p as Pe,s as ab,u as $n}from"./useEvent-D91BmmQi.js";import{t as ob}from"./react-Bj1aDYRI.js";import{At as ib,G as Pu,Lt as Dr,Mi as Ou,Ni as sb,Ot as cb,Pi as ub,Yn as db,cr as mb,ct as pb,ei as fb,f as gb,hr as hb,ii as $u,ni as yb,qn as Tu,ti as xb,vt as zu,wi as bb,__tla as vb}from"./cells-BqYYXi6G.js";import{t as wb}from"./react-dom-CSu739Rf.js";import{t as L}from"./compiler-runtime-B3qBwwSJ.js";import{t as Sb}from"./range-D-0CV4c0.js";import{_ as ot,d as Lr,v as Cb}from"./useEventListener-DGjKht0c.js";import{t as ft}from"./invariant-CkiqGLcK.js";import{r as jb}from"./utils-8btzWeZg.js";import{S as Vu,n as kb}from"./config-DoZCLcOb.js";import{t as Hr}from"./ErrorBoundary-CxTq44MI.js";import{n as Tn}from"./clsx-XrBBnd7s.js";import{n as _b,t as $}from"./cn-DYvqRARy.js";import{t as Rb}from"./jsx-runtime-Blw4afVn.js";import{C as Du,S as Mb,a as Nb,b as rn,h as Fb,n as Ab,r as Lu,t as Ib,v as Hu}from"./fullscreen-k58KVlT-.js";import{a as Eb,c as Pb,i as Ua,l as Ob,o as $b,r as Bu,s as Tb}from"./menu-items-Dtw5N98_.js";import{i as zb,n as Vb,r as Db}from"./multi-map-MSuUqmbC.js";import{a as Lb,c as Hb,i as Br,n as Bb,o as Wb,r as Wr,s as Gb,t as Gr,u as qb}from"./popover-AtoFZ7i4.js";import{c as Kb,i as Xa,n as Ub,o as Xb,s as Jb,t as Yb}from"./select-BwwUWhww.js";import{A as Qb,C as Zb,D as ev,E as tv,O as nv,S as rv,T as lv,_ as av,a as Z,b as ov,c as ln,d as qr,f as Wu,g as iv,h as sv,j as Gu,k as cv,o as Ja,p as Kr,r as Ur,s as Xr,t as Jr,u as zn,v as uv,w as dv,x as mv,y as pv}from"./dropdown-menu-DrHAuMTb.js";import{d as fv,h as gv,i as hv,m as qu,p as yv}from"./download-5XbM3TL_.js";import{t as Ce}from"./tooltip-DmqhBBs6.js";import{r as qe,t as de}from"./button-COIw2x9i.js";import{at as Ku}from"./dist-VwkX7yeV.js";import{t as xv}from"./arrays-DAC2orgH.js";import{n as bv,t as vv}from"./once-hq2TLzOp.js";import{t as wv}from"./createReducer-CYlwteGD.js";import{n as Sv}from"./useNonce-CbdaHKzX.js";import{i as kt,n as Cv,r as jv}from"./strings-pfr2N700.js";import{t as Uu}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{t as kv,__tla as _v}from"./LazyAnyLanguageCodeMirror-CsrwfW0n.js";import{n as Rv,r as Mv,t as Xu}from"./table-qC3alE1r.js";import{t as Nv}from"./check-B-sKate2.js";import{r as Yr,t as Qr}from"./x-Bv2rCglF.js";import{t as Fv}from"./chevron-right-CgvDWFE3.js";import{n as Ju,r as Av,t as Iv}from"./maps-B4xARV9R.js";import{d as Ev,f as Zr,i as Pv,n as Ov,o as $v,s as Tv,t as zv,__tla as Vv}from"./markdown-renderer-DNANigO8.js";import{t as el}from"./copy-DFMsQ6MJ.js";import{t as Dv}from"./ellipsis-DidENKDy.js";import{n as Lv,t as Yu}from"./spinner-C5wIpWgQ.js";import{t as Hv}from"./message-circle-DiHwtSG8.js";import{i as Bv,n as Wv,r as Gv,t as qv}from"./MarimoErrorOutput-Bmp8DLLo.js";import{dt as Qu,o as Zu,r as Kv}from"./input-DNCT6U6R.js";import{t as Uv}from"./badge-CwbVR_sO.js";import{t as Xv}from"./preload-helper-D2MJg03u.js";import{t as tl}from"./use-toast-BDYuj3zG.js";import{a as Jv}from"./session-DdnWW30b.js";import{r as nl}from"./useTheme-DCDmxPD0.js";import{a as Yv,n as Qv,r as Zv,t as ew}from"./dates-stqTIkXD.js";import{t as ed}from"./isValid-U-UFA9KI.js";import{n as an}from"./copy-Bizk-4hH.js";import{t as tw}from"./copy-icon-Ci08KCdY.js";import{t as rl}from"./useDateFormatter-BEz9SEXo.js";import{t as Ke}from"./context-DGqo1TbK.js";import{t as nw}from"./useNumberFormatter-wQU1z0W_.js";import{t as Ya}from"./RenderHTML-CM3WMmA8.js";import{i as Qa,n as rw,r as Oe,t as lw}from"./numbers--nDjbAPa.js";import{r as aw}from"./errors-CZb6hI2x.js";import{a as ow,i as Za,r as iw,s as sw,t as cw}from"./utils-BZwMGX81.js";import{n as uw}from"./vega-loader.browser-DXARUlxo.js";import{c as dw,i as mw,l as pw,o as fw,u as gw}from"./react-icons.esm-BUYTQ32a.js";import{n as hw,t as yw}from"./emotion-is-prop-valid.esm-DYxi7n2b.js";import{t as xw}from"./extends-Co37_JfG.js";import{t as bw}from"./kbd-BUtlbGdu.js";import{r as vw}from"./cell-link-CRkrHl-y.js";import{t as ww}from"./useIframeCapabilities-C8jvQ1Lj.js";import{n as td,t as Sw}from"./error-banner-frvr6JXK.js";import{n as Cw}from"./useAsyncData-aCoWDe-l.js";import{a as nd,o as eo,r as rd,s as ld,t as ad}from"./command-DnzBp4l4.js";import{t as jw}from"./formats-BQHP_yQk.js";import{a as kw,i as _w,n as Rw,o as to,r as od,t as Mw}from"./table-B03CpBmt.js";import{r as Nw,t as Fw}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";let no,ro,ll,lo,id,Vn,sd,al,cd,ao,oo,io,ud,so,co,uo,mo,dd,md,pd,po,fd,fo,ol,gd,go,hd,yd,ho,il,xd,yo,xo,bd,bo,sl,cl,ul,dl,vo,wo,So,Dn,vd,wd,Co,jo,ko,_o,ml,Ro,Mo,zt,No,Ln,Vt,Fo,Ao,_t,Io,Eo,on,sn,Po,Oo,Sd,Cd,$o,To,zo,pl,Vo,Hn,Aw=Promise.all([(()=>{try{return vb}catch{}})(),(()=>{try{return _v}catch{}})(),(()=>{try{return Vv}catch{}})()]).then(async()=>{var $t;var b=zr(ob(),1),s=zr(Rb(),1),gt="ContextMenu",[jd,Iw]=Mb(gt,[Gu]),be=Gu(),[kd,Do]=jd(gt),Lo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:l,modal:a=!0}=e,[o,i]=b.useState(!1),c=be(t),u=Fb(r),m=b.useCallback(p=>{i(p),u(p)},[u]);return(0,s.jsx)(kd,{scope:t,open:o,onOpenChange:m,modal:a,children:(0,s.jsx)(tv,{...c,dir:l,open:o,onOpenChange:m,modal:a,children:n})})};Lo.displayName=gt;var Ho="ContextMenuTrigger",Bo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...l}=e,a=Do(Ho,n),o=be(n),i=b.useRef({x:0,y:0}),c=b.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=b.useRef(0),m=b.useCallback(()=>window.clearTimeout(u.current),[]),p=d=>{i.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return b.useEffect(()=>m,[m]),b.useEffect(()=>{r&&m()},[r,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sv,{...o,virtualRef:c}),(0,s.jsx)(Du.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...l,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:rn(e.onContextMenu,d=>{m(),p(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:rn(e.onPointerDown,Bn(d=>{m(),u.current=window.setTimeout(()=>p(d),700)})),onPointerMove:r?e.onPointerMove:rn(e.onPointerMove,Bn(m)),onPointerCancel:r?e.onPointerCancel:rn(e.onPointerCancel,Bn(m)),onPointerUp:r?e.onPointerUp:rn(e.onPointerUp,Bn(m))})]})});Bo.displayName=Ho;var _d="ContextMenuPortal",Wo=e=>{let{__scopeContextMenu:t,...n}=e,r=be(t);return(0,s.jsx)(Zb,{...r,...n})};Wo.displayName=_d;var Go="ContextMenuContent",qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=Do(Go,n),a=be(n),o=b.useRef(!1);return(0,s.jsx)(uv,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,i),!i.defaultPrevented&&o.current&&i.preventDefault(),o.current=!1},onInteractOutside:i=>{var c;(c=e.onInteractOutside)==null||c.call(e,i),!i.defaultPrevented&&!l.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qo.displayName=Go;var Rd="ContextMenuGroup",Md=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(pv,{...l,...r,ref:t})});Md.displayName=Rd;var Nd="ContextMenuLabel",Ko=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(rv,{...l,...r,ref:t})});Ko.displayName=Nd;var Fd="ContextMenuItem",Uo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ov,{...l,...r,ref:t})});Uo.displayName=Fd;var Ad="ContextMenuCheckboxItem",Xo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(av,{...l,...r,ref:t})});Xo.displayName=Ad;var Id="ContextMenuRadioGroup",Ed=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(dv,{...l,...r,ref:t})});Ed.displayName=Id;var Pd="ContextMenuRadioItem",Jo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(lv,{...l,...r,ref:t})});Jo.displayName=Pd;var Od="ContextMenuItemIndicator",Yo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(mv,{...l,...r,ref:t})});Yo.displayName=Od;var $d="ContextMenuSeparator",Qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ev,{...l,...r,ref:t})});Qo.displayName=$d;var Td="ContextMenuArrow",zd=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(iv,{...l,...r,ref:t})});zd.displayName=Td;var Zo="ContextMenuSub",Vd=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:l,defaultOpen:a}=e,o=be(t),[i,c]=Hu({prop:l,defaultProp:a??!1,onChange:r,caller:Zo});return(0,s.jsx)(nv,{...o,open:i,onOpenChange:c,children:n})};Vd.displayName=Zo;var Dd="ContextMenuSubTrigger",ei=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(Qb,{...l,...r,ref:t})});ei.displayName=Dd;var Ld="ContextMenuSubContent",ti=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(cv,{...l,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ti.displayName=Ld;function Bn(e){return t=>t.pointerType==="mouse"?void 0:e(t)}var Hd=Lo,Bd=Bo,Wd=Wo,ni=qo,ri=Ko,li=Uo,ai=Xo,oi=Jo,ii=Yo,si=Qo,ci=ei,ui=ti,di="Toggle",mi=b.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:l,...a}=e,[o,i]=Hu({prop:n,onChange:l,defaultProp:r??!1,caller:di});return(0,s.jsx)(Du.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:rn(e.onClick,()=>{e.disabled||i(!o)})})});mi.displayName=di;var pi=mi,fi=new WeakMap;function Gd(e,t){let n=Eu(t),r=gi(n);for(let[l,...a]of e)(!r.has(l)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(l),n.set(l,...a))}let gi,hi,yi,fl,xi,bi,vi,wi,Si,Ci,ji,ki,gl,_i,Ri,Mi,Ni;gi=e=>{let t=fi.get(e);return t||(t=new WeakSet,fi.set(e,t)),t},Vo=ne("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),hi=ne("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),yi=ne("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),fl=ne("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),xi=ne("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),$o=ne("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ho=ne("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),bi=ne("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),wo=ne("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),vi=ne("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),wi=ne("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Si=ne("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),Dn=ne("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Ro=ne("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Ci=ne("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),ji=ne("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ki=ne("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),gl=ne("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),_i=ne("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),Ri=ne("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Mi=ne("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),Ni=ne("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),Fo=ne("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]);function qd(e){return{all:e||(e=new Map),on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(l){l(n)}),(r=e.get("*"))&&r.slice().map(function(l){l(t,n)})}}}let Wn,Fi,Ai,hl,yl,Ii,Ei,Pi,Oi,xl;Wn=(0,b.createContext)(null),_o=e=>{let{controller:t}=(0,b.useContext)(Wn),n=b.useRef(Symbol("fill"));return(0,b.useEffect)(()=>(t.mount({name:e.name,ref:n.current,children:e.children}),()=>{t.unmount({name:e.name,ref:n.current})}),[]),(0,b.useEffect)(()=>{t.update({name:e.name,ref:n.current,children:e.children})}),null},Fi=Object.defineProperty,Ai=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t,n)=>(Ai(e,typeof t=="symbol"?t:t+"",n),n),yl=console,Ii=class{constructor(e){hl(this,"_bus"),hl(this,"_db"),this._bus=e,this.handleFillMount=this.handleFillMount.bind(this),this.handleFillUpdated=this.handleFillUpdated.bind(this),this.handleFillUnmount=this.handleFillUnmount.bind(this),this._db={byName:new Map,byFill:new Map}}mount(){this._bus.on("fill-mount",this.handleFillMount),this._bus.on("fill-updated",this.handleFillUpdated),this._bus.on("fill-unmount",this.handleFillUnmount)}unmount(){this._bus.off("fill-mount",this.handleFillMount),this._bus.off("fill-updated",this.handleFillUpdated),this._bus.off("fill-unmount",this.handleFillUnmount)}handleFillMount({fill:e}){let t=b.Children.toArray(e.children),n=e.name,r={fill:e,children:t,name:n},l=this._db.byName.get(n);l?(l.components.push(r),l.listeners.forEach(a=>a([...l.components]))):this._db.byName.set(n,{listeners:[],components:[r]}),this._db.byFill.set(e.ref,r)}handleFillUpdated({fill:e}){let t=this._db.byFill.get(e.ref),n=b.Children.toArray(e.children);if(t){t.children=n;let r=this._db.byName.get(t.name);if(r)r.listeners.forEach(l=>l([...r.components]));else throw Error("registration was expected to be defined")}else{yl.error("[handleFillUpdated] component was expected to be defined");return}}handleFillUnmount({fill:e}){let t=this._db.byFill.get(e.ref);if(!t){yl.error("[handleFillUnmount] component was expected to be defined");return}let n=t.name,r=this._db.byName.get(n);if(!r)throw Error("registration was expected to be defined");r.components=r.components.filter(l=>l!==t),this._db.byFill.delete(e.ref),r.listeners.length===0&&r.components.length===0?this._db.byName.delete(n):r.listeners.forEach(l=>l([...r.components]))}onComponentsChange(e,t){let n=this._db.byName.get(e);n?(n.listeners.push(t),t(n.components)):(this._db.byName.set(e,{listeners:[t],components:[]}),t([]))}getFillsByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.fill):[]}getChildrenByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.children).reduce((n,r)=>n.concat(r),[]):[]}removeOnComponentsChange(e,t){let n=this._db.byName.get(e);if(!n)throw Error("expected registration to be defined");let r=n.listeners;r.splice(r.indexOf(t),1)}},Ei=Object.defineProperty,Pi=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oi=(e,t,n)=>(Pi(e,typeof t=="symbol"?t:t+"",n),n),xl=class{constructor(){Oi(this,"bus",qd())}mount(e){this.bus.emit("fill-mount",{fill:e})}unmount(e){this.bus.emit("fill-unmount",{fill:e})}update(e){this.bus.emit("fill-updated",{fill:e})}};function Kd(e){let t=e||new xl;return{controller:t,manager:new Ii(t.bus)}}Sd=({controller:e,children:t})=>{let[n]=b.useState(()=>{let r=Kd(e);return r.manager.mount(),r});return b.useEffect(()=>()=>{n.manager.unmount()},[]),b.createElement(Wn.Provider,{value:n},t)},dl=function(e,t){let[n,r]=(0,b.useState)([]),{manager:l}=(0,b.useContext)(Wn);return(0,b.useEffect)(()=>(l.onComponentsChange(e,r),()=>{l.removeOnComponentsChange(e,r)}),[e]),n.flatMap((a,o)=>{let{children:i}=a;return i.map((c,u)=>{if(typeof c=="number"||typeof c=="string")throw Error("Only element children will work here");return b.cloneElement(c,{key:o.toString()+u.toString(),...t})})})},sl=e=>{let t=dl(e.name,e.childProps);if(typeof e.children=="function"){let n=e.children(t);if(b.isValidElement(n)||n===null)return n;throw Error("Slot rendered with function must return a valid React Element.")}return t},bd=new xl,on={SIDEBAR:"sidebar",CONTEXT_AWARE_PANEL:"context-aware-panel",CONTEXT_AWARE_PANEL_HEADER:"context-aware-panel-header"},Ln=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},xd=function(){return ft(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files},wd=function(){var e;return(e=window==null?void 0:window.__MARIMO_STATIC__)==null?void 0:e.modelNotifications};var Ud=!1;function Xd(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jd(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yd=(function(){function e(n){var r=this;this._insertTag=function(l){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(l,a),r.tags.push(l)},this.isSpeedy=n.speedy===void 0?!Ud:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Jd(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=Xd(r);try{l.insertRule(n,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ve="-ms-",Gn="-moz-",H="-webkit-",$i="comm",bl="rule",vl="decl",Qd="@import",Ti="@keyframes",Zd="@layer",em=Math.abs,qn=String.fromCharCode,tm=Object.assign;function nm(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function zi(e){return e.trim()}function rm(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function wl(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function cn(e,t,n){return e.slice(t,n)}function Ue(e){return e.length}function Sl(e){return e.length}function Kn(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var Un=1,Dt=1,Vi=0,ke=0,ie=0,Lt="";function Xn(e,t,n,r,l,a,o){return{value:e,root:t,parent:n,type:r,props:l,children:a,line:Un,column:Dt,length:o,return:""}}function un(e,t){return tm(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function am(){return ie}function om(){return ie=ke>0?ge(Lt,--ke):0,Dt--,ie===10&&(Dt=1,Un--),ie}function Me(){return ie=ke<Vi?ge(Lt,ke++):0,Dt++,ie===10&&(Dt=1,Un++),ie}function Xe(){return ge(Lt,ke)}function Jn(){return ke}function dn(e,t){return cn(Lt,e,t)}function mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return Un=Dt=1,Vi=Ue(Lt=e),ke=0,[]}function Li(e){return Lt="",e}function Yn(e){return zi(dn(ke-1,Cl(e===91?e+2:e===40?e+1:e)))}function im(e){for(;(ie=Xe())&&ie<33;)Me();return mn(e)>2||mn(ie)>3?"":" "}function sm(e,t){for(;--t&&Me()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return dn(e,Jn()+(t<6&&Xe()==32&&Me()==32))}function Cl(e){for(;Me();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&Cl(ie);break;case 40:e===41&&Cl(e);break;case 92:Me();break}return ke}function cm(e,t){for(;Me()&&e+ie!==57&&!(e+ie===84&&Xe()===47););return"/*"+dn(t,ke-1)+"*"+qn(e===47?e:Me())}function um(e){for(;!mn(Xe());)Me();return dn(e,ke)}function dm(e){return Li(Qn("",null,null,null,[""],e=Di(e),0,[0],e))}function Qn(e,t,n,r,l,a,o,i,c){for(var u=0,m=0,p=o,d=0,g=0,f=0,x=1,w=1,y=1,S=0,v="",j=l,k=a,C=r,N=v;w;)switch(f=S,S=Me()){case 40:if(f!=108&&ge(N,p-1)==58){wl(N+=B(Yn(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Yn(S);break;case 9:case 10:case 13:case 32:N+=im(f);break;case 92:N+=sm(Jn()-1,7);continue;case 47:switch(Xe()){case 42:case 47:Kn(mm(cm(Me(),Jn()),t,n),c);break;default:N+="/"}break;case 123*x:i[u++]=Ue(N)*y;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:y==-1&&(N=B(N,/\f/g,"")),g>0&&Ue(N)-p&&Kn(g>32?Bi(N+";",r,n,p-1):Bi(B(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(Kn(C=Hi(N,t,n,u,m,l,i,v,j=[],k=[],p),a),S===123)if(m===0)Qn(N,t,C,C,j,a,p,i,k);else switch(d===99&&ge(N,3)===110?100:d){case 100:case 108:case 109:case 115:Qn(e,C,C,r&&Kn(Hi(e,C,C,0,0,l,i,v,l,j=[],p),k),l,k,p,i,r?j:k);break;default:Qn(N,C,C,C,[""],k,0,i,k)}}u=m=g=0,x=y=1,v=N="",p=o;break;case 58:p=1+Ue(N),g=f;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&om()==125)continue}switch(N+=qn(S),S*x){case 38:y=m>0?1:(N+="\f",-1);break;case 44:i[u++]=(Ue(N)-1)*y,y=1;break;case 64:Xe()===45&&(N+=Yn(Me())),d=Xe(),m=p=Ue(v=N+=um(Jn())),S++;break;case 45:f===45&&Ue(N)==2&&(x=0)}}return a}function Hi(e,t,n,r,l,a,o,i,c,u,m){for(var p=l-1,d=l===0?a:[""],g=Sl(d),f=0,x=0,w=0;f<r;++f)for(var y=0,S=cn(e,p+1,p=em(x=o[f])),v=e;y<g;++y)(v=zi(x>0?d[y]+" "+S:B(S,/&\f/g,d[y])))&&(c[w++]=v);return Xn(e,t,n,l===0?bl:i,c,u,m)}function mm(e,t,n){return Xn(e,t,n,$i,qn(am()),cn(e,2,-2),0)}function Bi(e,t,n,r){return Xn(e,t,n,vl,cn(e,0,r),cn(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Sl(e),l=0;l<r;l++)n+=t(e[l],l,e,t)||"";return n}function pm(e,t,n,r){switch(e.type){case Zd:if(e.children.length)break;case Qd:case vl:return e.return=e.return||e.value;case $i:return"";case Ti:return e.return=e.value+"{"+Ht(e.children,r)+"}";case bl:e.value=e.props.join(",")}return Ue(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function fm(e){var t=Sl(e);return function(n,r,l,a){for(var o="",i=0;i<t;i++)o+=e[i](n,r,l,a)||"";return o}}function gm(e){return function(t){t.root||(t=t.return)&&e(t)}}var hm=function(e,t,n){for(var r=0,l=0;r=l,l=Xe(),r===38&&l===12&&(t[n]=1),!mn(l);)Me();return dn(e,ke)},ym=function(e,t){var n=-1,r=44;do switch(mn(r)){case 0:r===38&&Xe()===12&&(t[n]=1),e[n]+=hm(ke-1,t,n);break;case 2:e[n]+=Yn(r);break;case 4:if(r===44){e[++n]=Xe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qn(r)}while(r=Me());return e},xm=function(e,t){return Li(ym(Di(e),t))},Wi=new WeakMap,bm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wi.get(n))&&!r){Wi.set(e,!0);for(var l=[],a=xm(t,l),o=n.props,i=0,c=0;i<a.length;i++)for(var u=0;u<o.length;u++,c++)e.props[c]=l[i]?a[i].replace(/&\f/g,o[u]):o[u]+" "+a[i]}}},vm=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Gi(e,t){switch(nm(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Gn+e+ve+e+e;case 6828:case 4268:return H+e+ve+e+e;case 6165:return H+e+ve+"flex-"+e+e;case 5187:return H+e+B(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return H+e+ve+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return H+e+ve+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+ve+B(e,"shrink","negative")+e;case 5292:return H+e+ve+B(e,"basis","preferred-size")+e;case 6060:return H+"box-"+B(e,"-grow","")+H+e+ve+B(e,"grow","positive")+e;case 4554:return H+B(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Gn+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wl(e,"stretch")?Gi(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,Ue(e)-3-(~wl(e,"!important")&&10))){case 107:return B(e,":",":"+H)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(ge(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+ve+e+e}return e}var wm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vl:e.return=Gi(e.value,e.length);break;case Ti:return Ht([un(e,{value:B(e.value,"@","@"+H)})],r);case bl:if(e.length)return lm(e.props,function(l){switch(rm(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([un(e,{props:[B(l,/:(read-\w+)/,":"+Gn+"$1")]})],r);case"::placeholder":return Ht([un(e,{props:[B(l,/:(plac\w+)/,":"+H+"input-$1")]}),un(e,{props:[B(l,/:(plac\w+)/,":"+Gn+"$1")]}),un(e,{props:[B(l,/:(plac\w+)/,ve+"input-$1")]})],r)}return""})}}],jl=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||wm,l={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)l[x[w]]=!0;o.push(f)});var i,c=[bm,vm],u,m=[pm,gm(function(f){u.insert(f)})],p=fm(c.concat(r,m)),d=function(f){return Ht(dm(f),p)};i=function(f,x,w,y){u=w,d(f?f+"{"+x.styles+"}":x.styles),y&&(g.inserted[x.name]=!0)};var g={key:t,sheet:new Yd({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return g.sheet.hydrate(o),g},Sm=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C){var N=C.$$typeof;switch(N){case n:switch(C=C.type,C){case u:case m:case l:case o:case a:case d:return C;default:switch(C&&(C=C.$$typeof),C){case c:case p:case x:case f:case i:return C;default:return N}}case r:return N}}}function k(C){return j(C)===m}e.AsyncMode=u,e.ConcurrentMode=m,e.ContextConsumer=c,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=l,e.Lazy=x,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(C){return k(C)||j(C)===u},e.isConcurrentMode=k,e.isContextConsumer=function(C){return j(C)===c},e.isContextProvider=function(C){return j(C)===i},e.isElement=function(C){return typeof C=="object"&&!!C&&C.$$typeof===n},e.isForwardRef=function(C){return j(C)===p},e.isFragment=function(C){return j(C)===l},e.isLazy=function(C){return j(C)===x},e.isMemo=function(C){return j(C)===f},e.isPortal=function(C){return j(C)===r},e.isProfiler=function(C){return j(C)===o},e.isStrictMode=function(C){return j(C)===a},e.isSuspense=function(C){return j(C)===d},e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===m||C===o||C===a||C===d||C===g||typeof C=="object"&&!!C&&(C.$$typeof===x||C.$$typeof===f||C.$$typeof===i||C.$$typeof===c||C.$$typeof===p||C.$$typeof===y||C.$$typeof===S||C.$$typeof===v||C.$$typeof===w)},e.typeOf=j})),Cm=Tt(((e,t)=>{t.exports=Sm()})),jm=Tt(((e,t)=>{var n=Cm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=o;function c(w){return n.isMemo(w)?o:i[w.$$typeof]||r}var u=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function x(w,y,S){if(typeof y!="string"){if(f){var v=g(y);v&&v!==f&&x(w,v,S)}var j=m(y);p&&(j=j.concat(p(y)));for(var k=c(w),C=c(y),N=0;N<j.length;++N){var R=j[N];if(!l[R]&&!(S&&S[R])&&!(C&&C[R])&&!(k&&k[R])){var _=d(y,R);try{u(w,R,_)}catch{}}}}return w}t.exports=x})),km=!0;function qi(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]===void 0?l&&(r+=l+" "):t.push(e[l]+";")}),r}var kl=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||km===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_l=function(e,t,n){kl(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var l=t;do e.insert(t===l?"."+r:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function _m(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mm=!1,Nm=/[A-Z]|^ms/g,Fm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ki=function(e){return e.charCodeAt(1)===45},Ui=function(e){return e!=null&&typeof e!="boolean"},Rl=hw(function(e){return Ki(e)?e:e.replace(Nm,"-$&").toLowerCase()}),Xi=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Fm,function(n,r,l){return Je={name:r,styles:l,next:Je},r})}return Rm[e]!==1&&!Ki(e)&&typeof t=="number"&&t!==0?t+"px":t},Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var l=n;if(l.anim===1)return Je={name:l.name,styles:l.styles,next:Je},l.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return a.styles+";"}return Im(e,t,n);case"function":if(e!==void 0){var i=Je,c=n(e);return Je=i,pn(e,t,c)}break}var u=n;if(t==null)return u;var m=t[u];return m===void 0?u:m}function Im(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=pn(e,t,n[l])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var i=o;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Ui(i)&&(r+=Rl(a)+":"+Xi(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Mm)throw Error(Am);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ui(o[c])&&(r+=Rl(a)+":"+Xi(a,o[c])+";");else{var u=pn(e,t,o);switch(a){case"animation":case"animationName":r+=Rl(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}}}return r}var Ji=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function Zn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";Je=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,l+=pn(n,t,a)):l+=a[0];for(var o=1;o<e.length;o++)l+=pn(n,t,e[o]),r&&(l+=a[o]);Ji.lastIndex=0;for(var i="",c;(c=Ji.exec(l))!==null;)i+="-"+c[1];return{name:_m(l)+i,styles:l,next:Je}}var Em=function(e){return e()},Yi=b.useInsertionEffect?b.useInsertionEffect:!1,Qi=Yi||Em,Zi=Yi||b.useLayoutEffect,es=b.createContext(typeof HTMLElement<"u"?jl({key:"css"}):null),Pm=es.Provider,Ml=function(e){return(0,b.forwardRef)(function(t,n){return e(t,(0,b.useContext)(es),n)})},fn=b.createContext({}),Nl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Om=function(e,t){var n={};for(var r in t)Nl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},Tm=Ml(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[Fl],a=[r],o="";typeof e.className=="string"?o=qi(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var i=Zn(a,void 0,b.useContext(fn));o+=t.key+"-"+i.name;var c={};for(var u in e)Nl.call(e,u)&&u!=="css"&&u!==Fl&&(c[u]=e[u]);return c.className=o,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement($m,{cache:t,serialized:i,isStringTag:typeof l=="string"}),b.createElement(l,c))});jm();var zm=function(e,t){var n=arguments;if(t==null||!Nl.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,l=Array(r);l[0]=Tm,l[1]=Om(e,t);for(var a=2;a<r;a++)l[a]=n[a];return b.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zm||(zm={}));var Vm=Ml(function(e,t){var n=e.styles,r=Zn([n],void 0,b.useContext(fn)),l=b.useRef();return Zi(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",a),o.hydrate([c])),l.current=[o,i],function(){o.flush()}},[t]),Zi(function(){var a=l.current,o=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&_l(t,r.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",r,o,!1)},[t,r.name]),null}),Dm=L();Io=e=>{let t=(0,Dm.c)(6),{container:n,children:r}=e,l;e:{if(!n){let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=jl({key:"mo",prepend:!0}),t[0]=c):c=t[0],l=c;break e}let i;if(t[1]!==n){let c=n.querySelector("style");c||(c=document.createElement("style"),n.append(c)),i=jl({key:"mo",prepend:!0,container:c}),t[1]=n,t[2]=i}else i=t[2];l=i}let a=l,o;return t[3]!==a||t[4]!==r?(o=(0,s.jsx)(Pm,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=o):o=t[5],o};var gn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Gt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},hn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Lm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ht(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",Hm=!1,Bm=yw,Wm=function(e){return e!=="theme"},ts=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Bm:Wm},ns=function(e,t,n){var r;if(t){var l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?function(a){return e.__emotion_forwardProp(a)&&l(a)}:l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},Gm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},qm=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var i=ns(t,n,r),c=i||ts(l),u=!c("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var x=Ml(function(w,y,S){var v=u&&w.as||l,j="",k=[],C=w;if(w.theme==null){for(var N in C={},w)C[N]=w[N];C.theme=b.useContext(fn)}typeof w.className=="string"?j=qi(y.registered,k,w.className):w.className!=null&&(j=w.className+" ");var R=Zn(p.concat(k),y.registered,C);j+=y.key+"-"+R.name,o!==void 0&&(j+=" "+o);var _=u&&i===void 0?ts(v):c,h={};for(var M in w)u&&M==="as"||_(M)&&(h[M]=w[M]);return h.className=j,S&&(h.ref=S),b.createElement(b.Fragment,null,b.createElement(Gm,{cache:y,serialized:R,isStringTag:typeof v=="string"}),b.createElement(v,h))});return x.displayName=a===void 0?"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")":a,x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=p,x.__emotion_forwardProp=i,Object.defineProperty(x,"toString",{value:function(){return o===void 0&&Hm?"NO_COMPONENT_SELECTOR":"."+o}}),x.withComponent=function(w,y){return e(w,xw({},n,y,{shouldForwardProp:ns(x,y,!0)})).apply(void 0,p)},x}},Km="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),Al=qm.bind(null);Km.forEach(function(e){Al[e]=Al(e)});function Um(e){return e==null||Object.keys(e).length===0}function rs(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(Vm,{styles:typeof t=="function"?r=>t(Um(r)?n:r):t})}function ls(e,t){return Al(e,t)}function Xm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var as=[];function yt(e){return as[0]=e,Zn(as)}var Jm=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===c||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===u||d.$$typeof===a||d.$$typeof===l||d.$$typeof===o||d.$$typeof===p||d.getModuleId!==void 0))}})),os=Tt(((e,t)=>{t.exports=Jm()}))();function Ye(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function is(e){if(b.isValidElement(e)||(0,os.isValidElementType)(e)||!Ye(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=is(e[n])}),t}function Ne(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ye(e)&&Ye(t)&&Object.keys(t).forEach(l=>{b.isValidElement(t[l])||(0,os.isValidElementType)(t[l])?r[l]=t[l]:Ye(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ye(e[l])?r[l]=Ne(e[l],t[l],n):n.clone?r[l]=Ye(t[l])?is(t[l]):t[l]:r[l]=t[l]}),r}var Ym=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Qm(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,a=Ym(t),o=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,g){let f=o.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[o[f]]=="number"?t[o[f]]:g)-r/100}${n})`}function m(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):i(d)}function p(d){let g=o.indexOf(d);return g===0?i(o[1]):g===o.length-1?c(o[g]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:i,down:c,between:u,only:m,not:p,unit:n,...l}}function ss(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,i;let a=/min-width:\s*([0-9.]+)/;return(((o=r.match(a))==null?void 0:o[1])||0)-+(((i=l.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,l)=>{let a=t[l];return delete r[l],r[l]=a,r},{...t}):t}function Zm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ep(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,l]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(a)}function tp(e){let t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function n(a,o){a.up=(...i)=>t(e.breakpoints.up(...i),o),a.down=(...i)=>t(e.breakpoints.down(...i),o),a.between=(...i)=>t(e.breakpoints.between(...i),o),a.only=(...i)=>t(e.breakpoints.only(...i),o),a.not=(...i)=>{let c=t(e.breakpoints.not(...i),o);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let r={},l=a=>(n(r,a),r);return n(l),{...e,containerQueries:l}}var np={borderRadius:4};function rp(e,t){return t?Ne(e,t,{clone:!1}):e}var yn=rp;const er={xs:0,sm:600,md:900,lg:1200,xl:1536};var cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${er[e]}px)`},lp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:er[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let l=r.breakpoints||cs;return t.reduce((a,o,i)=>(a[l.up(l.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let l=r.breakpoints||cs;return Object.keys(t).reduce((a,o)=>{if(Zm(l.keys,o)){let i=ep(r.containerQueries?r:lp,o);i&&(a[i]=n(t[o],o))}else if(Object.keys(l.values||er).includes(o)){let i=l.up(o);a[i]=n(t[o],o)}else{let i=o;a[i]=t[i]}return a},{})}return n(t)}function ap(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let l=e.up(r);return n[l]={},n},{}))||{}}function us(e,t){return e.reduce((n,r)=>{let l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Il(e){if(typeof e!="string")throw Error(ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((l,a)=>l&&l[a]?l[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function nr(e,t,n,r=n){let l;return l=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:tr(e,n)||r,t&&(l=t(l,r,e)),l}function op(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,a=o=>{if(o[t]==null)return null;let i=o[t],c=o.theme,u=tr(c,r)||{};return it(o,i,m=>{let p=nr(u,l,m);return m===p&&typeof m=="string"&&(p=nr(u,l,`${t}${m==="default"?"":Il(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var ae=op;function ip(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var sp={m:"margin",p:"padding"},cp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ds={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},up=ip(e=>{if(e.length>2)if(ds[e])e=ds[e];else return[e];let[t,n]=e.split(""),r=sp[t],l=cp[n]||"";return Array.isArray(l)?l.map(a=>r+a):[r+l]});const El=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var ms=[...El,...Pl];function xn(e,t,n,r){let l=tr(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?a=>typeof a=="string"?a:typeof l=="string"?`calc(${a} * ${l})`:l*a:Array.isArray(l)?a=>{if(typeof a=="string")return a;let o=l[Math.abs(a)];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof l=="function"?l:()=>{}}function Ol(e){return xn(e,"spacing",8,"spacing")}function bn(e,t){return typeof t=="string"||t==null?t:e(t)}function dp(e,t){return n=>e.reduce((r,l)=>(r[l]=bn(t,n),r),{})}function mp(e,t,n,r){if(!t.includes(n))return null;let l=dp(up(n),r),a=e[n];return it(e,a,l)}function $l(e,t){let n=Ol(e.theme);return Object.keys(e).map(r=>mp(e,t,r,n)).reduce(yn,{})}function re(e){return $l(e,El)}re.propTypes={},re.filterProps=El;function le(e){return $l(e,Pl)}le.propTypes={},le.filterProps=Pl;function ps(e){return $l(e,ms)}ps.propTypes={},ps.filterProps=ms;function fs(e=8,t=Ol({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(l=>{let a=t(l);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function pp(...e){let t=e.reduce((r,l)=>(l.filterProps.forEach(a=>{r[a]=l}),r),{}),n=r=>Object.keys(r).reduce((l,a)=>t[a]?yn(l,t[a](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}var rr=pp;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Te(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fp=Te("border",$e),gp=Te("borderTop",$e),hp=Te("borderRight",$e),yp=Te("borderBottom",$e),xp=Te("borderLeft",$e),bp=Te("borderColor"),vp=Te("borderTopColor"),wp=Te("borderRightColor"),Sp=Te("borderBottomColor"),Cp=Te("borderLeftColor"),jp=Te("outline",$e),kp=Te("outlineColor"),lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=xn(e.theme,"shape.borderRadius",4,"borderRadius");return it(e,e.borderRadius,n=>({borderRadius:bn(t,n)}))}return null};lr.propTypes={},lr.filterProps=["borderRadius"],rr(fp,gp,hp,yp,xp,bp,vp,wp,Sp,Cp,lr,jp,kp);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){let t=xn(e.theme,"spacing",8,"gap");return it(e,e.gap,n=>({gap:bn(t,n)}))}return null};ar.propTypes={},ar.filterProps=["gap"];const or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=xn(e.theme,"spacing",8,"columnGap");return it(e,e.columnGap,n=>({columnGap:bn(t,n)}))}return null};or.propTypes={},or.filterProps=["columnGap"];const ir=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=xn(e.theme,"spacing",8,"rowGap");return it(e,e.rowGap,n=>({rowGap:bn(t,n)}))}return null};ir.propTypes={},ir.filterProps=["rowGap"],rr(ar,or,ir,ae({prop:"gridColumn"}),ae({prop:"gridRow"}),ae({prop:"gridAutoFlow"}),ae({prop:"gridAutoColumns"}),ae({prop:"gridAutoRows"}),ae({prop:"gridTemplateColumns"}),ae({prop:"gridTemplateRows"}),ae({prop:"gridTemplateAreas"}),ae({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}rr(ae({prop:"color",themeKey:"palette",transform:Ut}),ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),ae({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const _p=ae({prop:"width",transform:Fe}),Tl=e=>e.maxWidth!==void 0&&e.maxWidth!==null?it(e,e.maxWidth,t=>{var r,l,a,o,i;let n=((a=(l=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:l.values)==null?void 0:a[t])||er[t];return n?((i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Fe(t)}}):null;Tl.filterProps=["maxWidth"];const Rp=ae({prop:"minWidth",transform:Fe}),Mp=ae({prop:"height",transform:Fe}),Np=ae({prop:"maxHeight",transform:Fe}),Fp=ae({prop:"minHeight",transform:Fe});ae({prop:"size",cssProperty:"width",transform:Fe}),ae({prop:"size",cssProperty:"height",transform:Fe}),rr(_p,Tl,Rp,Mp,Np,Fp,ae({prop:"boxSizing"}));var vn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lr},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:ir},columnGap:{style:or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Tl},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ap(...e){let t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ip(e,t){return typeof e=="function"?e(t):e}function Ep(){function e(n,r,l,a){let o={[n]:r,theme:l},i=a[n];if(!i)return{[n]:r};let{cssProperty:c=n,themeKey:u,transform:m,style:p}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};let d=tr(l,u)||{};return p?p(o):it(o,r,g=>{let f=nr(d,m,g);return g===f&&typeof g=="string"&&(f=nr(d,m,`${n}${g==="default"?"":Il(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){let{sx:r,theme:l={},nested:a}=n||{};if(!r)return null;let o=l.unstable_sxConfig??vn;function i(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;let m=ap(l.breakpoints),p=Object.keys(m),d=m;return Object.keys(u).forEach(g=>{let f=Ip(u[g],l);if(f!=null)if(typeof f=="object")if(o[g])d=yn(d,e(g,f,l,o));else{let x=it({theme:l},f,w=>({[g]:w}));Ap(x,f)?d[g]=t({sx:f,theme:l,nested:!0}):d=yn(d,x)}else d=yn(d,e(g,f,l,o))}),!a&&l.modularCssLayers?{"@layer sx":ss(l,us(p,d))}:ss(l,us(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var gs=Ep();gs.filterProps=["sx"];var Mt=gs;function Pp(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function Op(e={},...t){let{breakpoints:n={},palette:r={},spacing:l,shape:a={},...o}=e,i=Qm(n),c=fs(l),u=Ne({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...np,...a}},o);return u=tp(u),u.applyStyles=Pp,u=t.reduce((m,p)=>Ne(m,p),u),u.unstable_sxConfig={...vn,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return Mt({sx:m,theme:this})},u}var zl=Op;function $p(e){return Object.keys(e).length===0}function Tp(e=null){let t=b.useContext(fn);return!t||$p(t)?e:t}var Vl=Tp;const zp=zl();function Vp(e=zp){return Vl(e)}var Dl=Vp;function hs(e){let t=yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Dp({styles:e,themeId:t,defaultTheme:n={}}){let r=Dl(n),l=t&&r[t]||r,a=typeof e=="function"?e(l):e;return l.modularCssLayers&&(a=Array.isArray(a)?a.map(o=>hs(typeof o=="function"?o(l):o)):hs(a)),(0,s.jsx)(rs,{styles:a})}var ys=Dp,Lp=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??vn;return Object.keys(e).forEach(l=>{n[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function Hp(e){let{sx:t,...n}=e,{systemProps:r,otherProps:l}=Lp(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...o)=>{let i=t(...o);return Ye(i)?{...r,...i}:r}:{...r,...t},{...l,sx:a}}var xs=e=>e,bs=(()=>{let e=xs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xs}}})();function Bp(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:l}=e,a=ls("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Mt);return b.forwardRef(function(o,i){let c=Dl(n),{className:u,component:m="div",...p}=Hp(o);return(0,s.jsx)(a,{as:m,ref:i,className:Tn(u,l?l(r):r),theme:t&&c[t]||c,...p})})}const Wp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sr(e,t,n="Mui"){let r=Wp[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function cr(e,t,n="Mui"){let r={};return t.forEach(l=>{r[l]=sr(e,l,n)}),r}function vs(e){let{variants:t,...n}=e,r={variants:t,style:yt(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=yt(l.style))}),r}const Gp=zl();function Ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function qp(e){return e?(t,n)=>n[e]:null}function Kp(e,t,n){e.theme=Xp(e.theme)?n:e.theme[t]||e.theme}function ur(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>ur(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?Nt(r.style,n):r.style;else{let{variants:a,...o}=r;l=n?Nt(yt(o),n):o}return ws(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?Nt(yt(r.style),n):r.style:n?Nt(yt(r),n):r}function ws(e,t,n=[],r=void 0){var a;let l;e:for(let o=0;o<t.length;o+=1){let i=t[o];if(typeof i.props=="function"){if(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(l))continue}else for(let c in i.props)if(e[c]!==i.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==i.props[c])continue e;typeof i.style=="function"?(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(yt(i.style(l)),r):i.style(l))):n.push(r?Nt(yt(i.style),r):i.style)}return n}function Up(e={}){let{themeId:t,defaultTheme:n=Gp,rootShouldForwardProp:r=Ll,slotShouldForwardProp:l=Ll}=e;function a(o){Kp(o,t,n)}return(o,i={})=>{Xm(o,k=>k.filter(C=>C!==Mt));let{name:c,slot:u,skipVariantsResolver:m,skipSx:p,overridesResolver:d=qp(Yp(u)),...g}=i,f=c&&c.startsWith("Mui")||u?"components":"custom",x=m===void 0?u&&u!=="Root"&&u!=="root"||!1:m,w=p||!1,y=Ll;u==="Root"||u==="root"?y=r:u?y=l:Jp(o)&&(y=void 0);let S=ls(o,{shouldForwardProp:y,label:void 0,...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(C){return ur(C,k,C.theme.modularCssLayers?f:void 0)};if(Ye(k)){let C=vs(k);return function(N){return C.variants?ur(N,C,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?Nt(C.style,f):C.style}}return k},j=(...k)=>{let C=[],N=k.map(v),R=[];if(C.push(a),c&&d&&R.push(function(h){var I,z;let M=(z=(I=h.theme.components)==null?void 0:I[c])==null?void 0:z.styleOverrides;if(!M)return null;let A={};for(let V in M)A[V]=ur(h,M[V],h.theme.modularCssLayers?"theme":void 0);return d(h,A)}),c&&!x&&R.push(function(h){var A,I,z;let M=(z=(I=(A=h.theme)==null?void 0:A.components)==null?void 0:I[c])==null?void 0:z.variants;return M?ws(h,M,[],h.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(N[0])){let h=N.shift(),M=Array(C.length).fill(""),A=Array(R.length).fill(""),I;I=[...M,...h,...A],I.raw=[...M,...h.raw,...A],C.unshift(I)}let _=S(...C,...N,...R);return o.muiName&&(_.muiName=o.muiName),_};return S.withConfig&&(j.withConfig=S.withConfig),j}}function Xp(e){for(let t in e)return!1;return!0}function Jp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Hl(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let l=r;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){let a=e[l],o=t[l];if(!o)n[l]=a||{};else if(!a)n[l]=o;else for(let i in n[l]={...o},a)if(Object.prototype.hasOwnProperty.call(a,i)){let c=i;n[l][c]=Hl(a[c],o[c])}}else n[l]===void 0&&(n[l]=e[l])}return n}var Ft=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Qp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Zp=Qp;function Bl(e,t=0,n=1){return Zp(e,t,n)}function ef(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xt(e){if(e.type)return e;if(e.charAt(0)==="#")return xt(ef(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(ht(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw Error(ht(10,l))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:l}}const tf=e=>{let t=xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wn=(e,t)=>{try{return tf(e)}catch{return e}};function dr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((l,a)=>a<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ss(e){e=xt(e);let{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,a=r*Math.min(l,1-l),o=(u,m=(u+n/30)%12)=>l-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),dr({type:i,values:c})}function Wl(e){e=xt(e);let t=e.type==="hsl"||e.type==="hsla"?xt(Ss(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nf(e,t){let n=Wl(e),r=Wl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gl(e,t){return e=xt(e),t=Bl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dr(e)}function mr(e,t,n){try{return Gl(e,t)}catch{return e}}function ql(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dr(e)}function q(e,t,n){try{return ql(e,t)}catch{return e}}function Kl(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dr(e)}function K(e,t,n){try{return Kl(e,t)}catch{return e}}function rf(e,t=.15){return Wl(e)>.5?ql(e,t):Kl(e,t)}function pr(e,t,n){try{return rf(e,t)}catch{return e}}function lf(e,t=166){let n;function r(...l){clearTimeout(n),n=setTimeout(()=>{e.apply(this,l)},t)}return r.clear=()=>{clearTimeout(n)},r}function af(e){return e&&e.ownerDocument||document}function Cs(e){return af(e).defaultView||window}var js=0;function of(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(js+=1,n(`mui-${js}`))},[t]),r}var ks={...b}.useId;function sf(e){if(ks!==void 0){let t=ks();return e??t}return of(e)}function cf(e){let t=b.useRef(e);return Ft(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}var uf=cf;function _s(...e){let t=b.useRef(void 0),n=b.useCallback(r=>{let l=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let o=a,i=o(r);return typeof i=="function"?i:()=>{o(null)}}return a.current=r,()=>{a.current=null}});return()=>{l.forEach(a=>a==null?void 0:a())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function Ul(e,t,n=void 0){let r={};for(let l in e){let a=e[l],o="",i=!0;for(let c=0;c<a.length;c+=1){let u=a[c];u&&(o+=(i===!0?"":" ")+t(u),i=!1,n&&n[u]&&(o+=" "+n[u]))}r[l]=o}return r}var Rs=b.createContext(null);function Xl(){return b.useContext(Rs)}var df=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function mf(e,t){return typeof t=="function"?t(e):{...e,...t}}function pf(e){let{children:t,theme:n}=e,r=Xl(),l=b.useMemo(()=>{let a=r===null?{...n}:mf(r,n);return a!=null&&(a[df]=r!==null),a},[n,r]);return(0,s.jsx)(Rs.Provider,{value:l,children:t})}var ff=pf,gf=b.createContext();function hf({value:e,...t}){return(0,s.jsx)(gf.Provider,{value:e??!0,...t})}var yf=hf,Ms=b.createContext(void 0);function xf({value:e,children:t}){return(0,s.jsx)(Ms.Provider,{value:e,children:t})}function bf(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let l=t.components[n];return l.defaultProps?Hl(l.defaultProps,r):!l.styleOverrides&&!l.variants?Hl(l,r):r}function vf({props:e,name:t}){return bf({props:e,name:t,theme:{components:b.useContext(Ms)}})}var wf=xf;function Sf(e){let t=Vl(),n=sf()||"",{modularCssLayers:r}=e,l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return l=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,l):`@layer ${l};`,Ft(()=>{var i,c;let a=document.querySelector("head");if(!a)return;let o=a.firstChild;if(l){if(o&&((i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order"))&&o.getAttribute("data-mui-layer-order")===n)return;let u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=l,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[l,n]),l?(0,s.jsx)(ys,{styles:l}):null}var Ns={};function Fs(e,t,n,r=!1){return b.useMemo(()=>{let l=e&&t[e]||t;if(typeof n=="function"){let a=n(l),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Cf(e){let{children:t,theme:n,themeId:r}=e,l=Vl(Ns),a=Xl()||Ns,o=Fs(r,l,n),i=Fs(r,a,n,!0),c=(r?o[r]:o).direction==="rtl",u=Sf(o);return(0,s.jsx)(ff,{theme:i,children:(0,s.jsx)(fn.Provider,{value:o,children:(0,s.jsx)(yf,{value:c,children:(0,s.jsxs)(wf,{value:r?o[r].components:o.components,children:[u,t]})})})})}var As=Cf,Is={theme:void 0};function jf(e){let t,n;return function(r){let l=t;return(l===void 0||r.theme!==n)&&(Is.theme=r.theme,l=vs(e(Is)),t=l,n=r.theme),l}}const Jl="mode",Yl="color-scheme";function kf(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=Jl,colorSchemeStorageKey:a=Yl,attribute:o="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:c}=e||{},u="",m=o;if(o==="class"&&(m=".%s"),o==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);u+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
|
|
2
|
+
var Zx=Object.defineProperty;var eb=(b,s,gt)=>s in b?Zx(b,s,{enumerable:!0,configurable:!0,writable:!0,value:gt}):b[s]=gt;var On=(b,s,gt)=>eb(b,typeof s!="symbol"?s+"":s,gt);import{s as zr,t as Tt}from"./chunk-LvLJmgfZ.js";import{a as tb,c as nb,f as Eu,g as rb,h as lb,l as Vr,n as at,p as Pe,s as ab,u as $n}from"./useEvent-D91BmmQi.js";import{t as ob}from"./react-Bj1aDYRI.js";import{At as ib,G as Pu,Lt as Dr,Mi as Ou,Ni as sb,Ot as cb,Pi as ub,Yn as db,cr as mb,ct as pb,ei as fb,f as gb,hr as hb,ii as $u,ni as yb,qn as Tu,ti as xb,vt as zu,wi as bb,__tla as vb}from"./cells-CAft_y9h.js";import{t as wb}from"./react-dom-CSu739Rf.js";import{t as L}from"./compiler-runtime-B3qBwwSJ.js";import{t as Sb}from"./range-D-0CV4c0.js";import{_ as ot,d as Lr,v as Cb}from"./useEventListener-DGjKht0c.js";import{t as ft}from"./invariant-CkiqGLcK.js";import{r as jb}from"./utils-8btzWeZg.js";import{S as Vu,n as kb}from"./config-DoZCLcOb.js";import{t as Hr}from"./ErrorBoundary-CxTq44MI.js";import{n as Tn}from"./clsx-XrBBnd7s.js";import{n as _b,t as $}from"./cn-DYvqRARy.js";import{t as Rb}from"./jsx-runtime-Blw4afVn.js";import{C as Du,S as Mb,a as Nb,b as rn,h as Fb,n as Ab,r as Lu,t as Ib,v as Hu}from"./fullscreen-k58KVlT-.js";import{a as Eb,c as Pb,i as Ua,l as Ob,o as $b,r as Bu,s as Tb}from"./menu-items-Dtw5N98_.js";import{i as zb,n as Vb,r as Db}from"./multi-map-MSuUqmbC.js";import{a as Lb,c as Hb,i as Br,n as Bb,o as Wb,r as Wr,s as Gb,t as Gr,u as qb}from"./popover-AtoFZ7i4.js";import{c as Kb,i as Xa,n as Ub,o as Xb,s as Jb,t as Yb}from"./select-BwwUWhww.js";import{A as Qb,C as Zb,D as ev,E as tv,O as nv,S as rv,T as lv,_ as av,a as Z,b as ov,c as ln,d as qr,f as Wu,g as iv,h as sv,j as Gu,k as cv,o as Ja,p as Kr,r as Ur,s as Xr,t as Jr,u as zn,v as uv,w as dv,x as mv,y as pv}from"./dropdown-menu-DrHAuMTb.js";import{d as fv,h as gv,i as hv,m as qu,p as yv}from"./download-COyB8G-Y.js";import{t as Ce}from"./tooltip-DmqhBBs6.js";import{r as qe,t as de}from"./button-COIw2x9i.js";import{at as Ku}from"./dist-VwkX7yeV.js";import{t as xv}from"./arrays-DAC2orgH.js";import{n as bv,t as vv}from"./once-hq2TLzOp.js";import{t as wv}from"./createReducer-CYlwteGD.js";import{n as Sv}from"./useNonce-CbdaHKzX.js";import{i as kt,n as Cv,r as jv}from"./strings-pfr2N700.js";import{t as Uu}from"./requests-9-v2bhoi.js";import{t as ne}from"./createLucideIcon-w-Qo9n0R.js";import{t as kv,__tla as _v}from"./LazyAnyLanguageCodeMirror-CsrwfW0n.js";import{n as Rv,r as Mv,t as Xu}from"./table-qC3alE1r.js";import{t as Nv}from"./check-B-sKate2.js";import{r as Yr,t as Qr}from"./x-Bv2rCglF.js";import{t as Fv}from"./chevron-right-CgvDWFE3.js";import{n as Ju,r as Av,t as Iv}from"./maps-B4xARV9R.js";import{d as Ev,f as Zr,i as Pv,n as Ov,o as $v,s as Tv,t as zv,__tla as Vv}from"./markdown-renderer-BDdzHOwK.js";import{t as el}from"./copy-DFMsQ6MJ.js";import{t as Dv}from"./ellipsis-DidENKDy.js";import{n as Lv,t as Yu}from"./spinner-C5wIpWgQ.js";import{t as Hv}from"./message-circle-DiHwtSG8.js";import{i as Bv,n as Wv,r as Gv,t as qv}from"./MarimoErrorOutput-DLREr23s.js";import{dt as Qu,o as Zu,r as Kv}from"./input-DNCT6U6R.js";import{t as Uv}from"./badge-CwbVR_sO.js";import{t as Xv}from"./preload-helper-D2MJg03u.js";import{t as tl}from"./use-toast-BDYuj3zG.js";import{a as Jv}from"./session-DdnWW30b.js";import{r as nl}from"./useTheme-DCDmxPD0.js";import{a as Yv,n as Qv,r as Zv,t as ew}from"./dates-stqTIkXD.js";import{t as ed}from"./isValid-U-UFA9KI.js";import{n as an}from"./copy-Bizk-4hH.js";import{t as tw}from"./copy-icon-Ci08KCdY.js";import{t as rl}from"./useDateFormatter-BEz9SEXo.js";import{t as Ke}from"./context-DGqo1TbK.js";import{t as nw}from"./useNumberFormatter-wQU1z0W_.js";import{t as Ya}from"./RenderHTML-5FjN3OZH.js";import{i as Qa,n as rw,r as Oe,t as lw}from"./numbers--nDjbAPa.js";import{r as aw}from"./errors-CZb6hI2x.js";import{a as ow,i as Za,r as iw,s as sw,t as cw}from"./utils-BZwMGX81.js";import{n as uw}from"./vega-loader.browser-DXARUlxo.js";import{c as dw,i as mw,l as pw,o as fw,u as gw}from"./react-icons.esm-BUYTQ32a.js";import{n as hw,t as yw}from"./emotion-is-prop-valid.esm-DYxi7n2b.js";import{t as xw}from"./extends-Co37_JfG.js";import{t as bw}from"./kbd-BUtlbGdu.js";import{r as vw}from"./cell-link-DMyOfytV.js";import{t as ww}from"./useIframeCapabilities-C8jvQ1Lj.js";import{n as td,t as Sw}from"./error-banner-frvr6JXK.js";import{n as Cw}from"./useAsyncData-aCoWDe-l.js";import{a as nd,o as eo,r as rd,s as ld,t as ad}from"./command-DnzBp4l4.js";import{t as jw}from"./formats-BQHP_yQk.js";import{a as kw,i as _w,n as Rw,o as to,r as od,t as Mw}from"./table-B03CpBmt.js";import{r as Nw,t as Fw}from"./react-resizable-panels.browser.esm-BUNcfKXO.js";let no,ro,ll,lo,id,Vn,sd,al,cd,ao,oo,io,ud,so,co,uo,mo,dd,md,pd,po,fd,fo,ol,gd,go,hd,yd,ho,il,xd,yo,xo,bd,bo,sl,cl,ul,dl,vo,wo,So,Dn,vd,wd,Co,jo,ko,_o,ml,Ro,Mo,zt,No,Ln,Vt,Fo,Ao,_t,Io,Eo,on,sn,Po,Oo,Sd,Cd,$o,To,zo,pl,Vo,Hn,Aw=Promise.all([(()=>{try{return vb}catch{}})(),(()=>{try{return _v}catch{}})(),(()=>{try{return Vv}catch{}})()]).then(async()=>{var $t;var b=zr(ob(),1),s=zr(Rb(),1),gt="ContextMenu",[jd,Iw]=Mb(gt,[Gu]),be=Gu(),[kd,Do]=jd(gt),Lo=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,dir:l,modal:a=!0}=e,[o,i]=b.useState(!1),c=be(t),u=Fb(r),m=b.useCallback(p=>{i(p),u(p)},[u]);return(0,s.jsx)(kd,{scope:t,open:o,onOpenChange:m,modal:a,children:(0,s.jsx)(tv,{...c,dir:l,open:o,onOpenChange:m,modal:a,children:n})})};Lo.displayName=gt;var Ho="ContextMenuTrigger",Bo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,disabled:r=!1,...l}=e,a=Do(Ho,n),o=be(n),i=b.useRef({x:0,y:0}),c=b.useRef({getBoundingClientRect:()=>DOMRect.fromRect({width:0,height:0,...i.current})}),u=b.useRef(0),m=b.useCallback(()=>window.clearTimeout(u.current),[]),p=d=>{i.current={x:d.clientX,y:d.clientY},a.onOpenChange(!0)};return b.useEffect(()=>m,[m]),b.useEffect(()=>{r&&m()},[r,m]),(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(sv,{...o,virtualRef:c}),(0,s.jsx)(Du.span,{"data-state":a.open?"open":"closed","data-disabled":r?"":void 0,...l,ref:t,style:{WebkitTouchCallout:"none",...e.style},onContextMenu:r?e.onContextMenu:rn(e.onContextMenu,d=>{m(),p(d),d.preventDefault()}),onPointerDown:r?e.onPointerDown:rn(e.onPointerDown,Bn(d=>{m(),u.current=window.setTimeout(()=>p(d),700)})),onPointerMove:r?e.onPointerMove:rn(e.onPointerMove,Bn(m)),onPointerCancel:r?e.onPointerCancel:rn(e.onPointerCancel,Bn(m)),onPointerUp:r?e.onPointerUp:rn(e.onPointerUp,Bn(m))})]})});Bo.displayName=Ho;var _d="ContextMenuPortal",Wo=e=>{let{__scopeContextMenu:t,...n}=e,r=be(t);return(0,s.jsx)(Zb,{...r,...n})};Wo.displayName=_d;var Go="ContextMenuContent",qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=Do(Go,n),a=be(n),o=b.useRef(!1);return(0,s.jsx)(uv,{...a,...r,ref:t,side:"right",sideOffset:2,align:"start",onCloseAutoFocus:i=>{var c;(c=e.onCloseAutoFocus)==null||c.call(e,i),!i.defaultPrevented&&o.current&&i.preventDefault(),o.current=!1},onInteractOutside:i=>{var c;(c=e.onInteractOutside)==null||c.call(e,i),!i.defaultPrevented&&!l.modal&&(o.current=!0)},style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});qo.displayName=Go;var Rd="ContextMenuGroup",Md=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(pv,{...l,...r,ref:t})});Md.displayName=Rd;var Nd="ContextMenuLabel",Ko=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(rv,{...l,...r,ref:t})});Ko.displayName=Nd;var Fd="ContextMenuItem",Uo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ov,{...l,...r,ref:t})});Uo.displayName=Fd;var Ad="ContextMenuCheckboxItem",Xo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(av,{...l,...r,ref:t})});Xo.displayName=Ad;var Id="ContextMenuRadioGroup",Ed=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(dv,{...l,...r,ref:t})});Ed.displayName=Id;var Pd="ContextMenuRadioItem",Jo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(lv,{...l,...r,ref:t})});Jo.displayName=Pd;var Od="ContextMenuItemIndicator",Yo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(mv,{...l,...r,ref:t})});Yo.displayName=Od;var $d="ContextMenuSeparator",Qo=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(ev,{...l,...r,ref:t})});Qo.displayName=$d;var Td="ContextMenuArrow",zd=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(iv,{...l,...r,ref:t})});zd.displayName=Td;var Zo="ContextMenuSub",Vd=e=>{let{__scopeContextMenu:t,children:n,onOpenChange:r,open:l,defaultOpen:a}=e,o=be(t),[i,c]=Hu({prop:l,defaultProp:a??!1,onChange:r,caller:Zo});return(0,s.jsx)(nv,{...o,open:i,onOpenChange:c,children:n})};Vd.displayName=Zo;var Dd="ContextMenuSubTrigger",ei=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(Qb,{...l,...r,ref:t})});ei.displayName=Dd;var Ld="ContextMenuSubContent",ti=b.forwardRef((e,t)=>{let{__scopeContextMenu:n,...r}=e,l=be(n);return(0,s.jsx)(cv,{...l,...r,ref:t,style:{...e.style,"--radix-context-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-context-menu-content-available-width":"var(--radix-popper-available-width)","--radix-context-menu-content-available-height":"var(--radix-popper-available-height)","--radix-context-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-context-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});ti.displayName=Ld;function Bn(e){return t=>t.pointerType==="mouse"?void 0:e(t)}var Hd=Lo,Bd=Bo,Wd=Wo,ni=qo,ri=Ko,li=Uo,ai=Xo,oi=Jo,ii=Yo,si=Qo,ci=ei,ui=ti,di="Toggle",mi=b.forwardRef((e,t)=>{let{pressed:n,defaultPressed:r,onPressedChange:l,...a}=e,[o,i]=Hu({prop:n,onChange:l,defaultProp:r??!1,caller:di});return(0,s.jsx)(Du.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...a,ref:t,onClick:rn(e.onClick,()=>{e.disabled||i(!o)})})});mi.displayName=di;var pi=mi,fi=new WeakMap;function Gd(e,t){let n=Eu(t),r=gi(n);for(let[l,...a]of e)(!r.has(l)||t!=null&&t.dangerouslyForceHydrate)&&(r.add(l),n.set(l,...a))}let gi,hi,yi,fl,xi,bi,vi,wi,Si,Ci,ji,ki,gl,_i,Ri,Mi,Ni;gi=e=>{let t=fi.get(e);return t||(t=new WeakSet,fi.set(e,t)),t},Vo=ne("arrow-down-wide-narrow",[["path",{d:"m3 16 4 4 4-4",key:"1co6wj"}],["path",{d:"M7 20V4",key:"1yoxec"}],["path",{d:"M11 4h10",key:"1w87gc"}],["path",{d:"M11 8h7",key:"djye34"}],["path",{d:"M11 12h4",key:"q8tih4"}]]),hi=ne("arrow-up-narrow-wide",[["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}],["path",{d:"M11 12h4",key:"q8tih4"}],["path",{d:"M11 16h7",key:"uosisv"}],["path",{d:"M11 20h10",key:"jvxblo"}]]),yi=ne("brick-wall",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 9v6",key:"199k2o"}],["path",{d:"M16 15v6",key:"8rj2es"}],["path",{d:"M16 3v6",key:"1j6rpj"}],["path",{d:"M3 15h18",key:"5xshup"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M8 15v6",key:"1stoo3"}],["path",{d:"M8 3v6",key:"vlvjmk"}]]),fl=ne("bug-play",[["path",{d:"M10 19.655A6 6 0 0 1 6 14v-3a4 4 0 0 1 4-4h4a4 4 0 0 1 4 3.97",key:"1gnv52"}],["path",{d:"M14 15.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997a1 1 0 0 1-1.517-.86z",key:"1weqy9"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]),xi=ne("chart-spline",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M7 16c.5-2 1.5-7 4-7 2 0 2 3 4 3 2.5 0 4.5-5 5-7",key:"lw07rv"}]]),$o=ne("chevrons-left",[["path",{d:"m11 17-5-5 5-5",key:"13zhaf"}],["path",{d:"m18 17-5-5 5-5",key:"h8a8et"}]]),ho=ne("chevrons-right",[["path",{d:"m6 17 5-5-5-5",key:"xnjwq"}],["path",{d:"m13 17 5-5-5-5",key:"17xmmf"}]]),bi=ne("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]),wo=ne("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),vi=ne("expand",[["path",{d:"m15 15 6 6",key:"1s409w"}],["path",{d:"m15 9 6-6",key:"ko1vev"}],["path",{d:"M21 16v5h-5",key:"1ck2sf"}],["path",{d:"M21 8V3h-5",key:"1qoq8a"}],["path",{d:"M3 16v5h5",key:"1t08am"}],["path",{d:"m3 21 6-6",key:"wwnumi"}],["path",{d:"M3 8V3h5",key:"1ln10m"}],["path",{d:"M9 9 3 3",key:"v551iv"}]]),wi=ne("funnel-plus",[["path",{d:"M13.354 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l1.218-1.348",key:"8mvsmf"}],["path",{d:"M16 6h6",key:"1dogtp"}],["path",{d:"M19 3v6",key:"1ytpjt"}]]),Si=ne("funnel-x",[["path",{d:"M12.531 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14v6a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341l.427-.473",key:"ol2ft2"}],["path",{d:"m16.5 3.5 5 5",key:"15e6fa"}],["path",{d:"m21.5 3.5-5 5",key:"m0lwru"}]]),Dn=ne("funnel",[["path",{d:"M10 20a1 1 0 0 0 .553.895l2 1A1 1 0 0 0 14 21v-7a2 2 0 0 1 .517-1.341L21.74 4.67A1 1 0 0 0 21 3H3a1 1 0 0 0-.742 1.67l7.225 7.989A2 2 0 0 1 10 14z",key:"sc7q7i"}]]),Ro=ne("grip-horizontal",[["circle",{cx:"12",cy:"9",r:"1",key:"124mty"}],["circle",{cx:"19",cy:"9",r:"1",key:"1ruzo2"}],["circle",{cx:"5",cy:"9",r:"1",key:"1a8b28"}],["circle",{cx:"12",cy:"15",r:"1",key:"1e56xg"}],["circle",{cx:"19",cy:"15",r:"1",key:"1a92ep"}],["circle",{cx:"5",cy:"15",r:"1",key:"5r1jwy"}]]),Ci=ne("list-filter-plus",[["path",{d:"M12 5H2",key:"1o22fu"}],["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M9 19h6",key:"456am0"}],["path",{d:"M16 5h6",key:"1vod17"}],["path",{d:"M19 8V2",key:"1wcffq"}]]),ji=ne("minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),ki=ne("panel-right",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}]]),gl=ne("pin-off",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M15 9.34V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H7.89",key:"znwnzq"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v1.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h11",key:"c9qhm2"}]]),_i=ne("pin",[["path",{d:"M12 17v5",key:"bb1du9"}],["path",{d:"M9 10.76a2 2 0 0 1-1.11 1.79l-1.78.9A2 2 0 0 0 5 15.24V16a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-.76a2 2 0 0 0-1.11-1.79l-1.78-.9A2 2 0 0 1 15 10.76V7a1 1 0 0 1 1-1 2 2 0 0 0 0-4H8a2 2 0 0 0 0 4 1 1 0 0 1 1 1z",key:"1nkz8b"}]]),Ri=ne("square-stack",[["path",{d:"M4 10c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"4i38lg"}],["path",{d:"M10 16c-1.1 0-2-.9-2-2v-4c0-1.1.9-2 2-2h4c1.1 0 2 .9 2 2",key:"mlte4a"}],["rect",{width:"8",height:"8",x:"14",y:"14",rx:"2",key:"1fa9i4"}]]),Mi=ne("text-align-justify",[["path",{d:"M3 5h18",key:"1u36vt"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 19h18",key:"awlh7x"}]]),Ni=ne("text-align-start",[["path",{d:"M21 5H3",key:"1fi0y6"}],["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 19H3",key:"z6ezky"}]]),Fo=ne("text-wrap",[["path",{d:"m16 16-3 3 3 3",key:"117b85"}],["path",{d:"M3 12h14.5a1 1 0 0 1 0 7H13",key:"18xa6z"}],["path",{d:"M3 19h6",key:"1ygdsz"}],["path",{d:"M3 5h18",key:"1u36vt"}]]);function qd(e){return{all:e||(e=new Map),on:function(t,n){var r=e.get(t);r?r.push(n):e.set(t,[n])},off:function(t,n){var r=e.get(t);r&&(n?r.splice(r.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var r=e.get(t);r&&r.slice().map(function(l){l(n)}),(r=e.get("*"))&&r.slice().map(function(l){l(t,n)})}}}let Wn,Fi,Ai,hl,yl,Ii,Ei,Pi,Oi,xl;Wn=(0,b.createContext)(null),_o=e=>{let{controller:t}=(0,b.useContext)(Wn),n=b.useRef(Symbol("fill"));return(0,b.useEffect)(()=>(t.mount({name:e.name,ref:n.current,children:e.children}),()=>{t.unmount({name:e.name,ref:n.current})}),[]),(0,b.useEffect)(()=>{t.update({name:e.name,ref:n.current,children:e.children})}),null},Fi=Object.defineProperty,Ai=(e,t,n)=>t in e?Fi(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,hl=(e,t,n)=>(Ai(e,typeof t=="symbol"?t:t+"",n),n),yl=console,Ii=class{constructor(e){hl(this,"_bus"),hl(this,"_db"),this._bus=e,this.handleFillMount=this.handleFillMount.bind(this),this.handleFillUpdated=this.handleFillUpdated.bind(this),this.handleFillUnmount=this.handleFillUnmount.bind(this),this._db={byName:new Map,byFill:new Map}}mount(){this._bus.on("fill-mount",this.handleFillMount),this._bus.on("fill-updated",this.handleFillUpdated),this._bus.on("fill-unmount",this.handleFillUnmount)}unmount(){this._bus.off("fill-mount",this.handleFillMount),this._bus.off("fill-updated",this.handleFillUpdated),this._bus.off("fill-unmount",this.handleFillUnmount)}handleFillMount({fill:e}){let t=b.Children.toArray(e.children),n=e.name,r={fill:e,children:t,name:n},l=this._db.byName.get(n);l?(l.components.push(r),l.listeners.forEach(a=>a([...l.components]))):this._db.byName.set(n,{listeners:[],components:[r]}),this._db.byFill.set(e.ref,r)}handleFillUpdated({fill:e}){let t=this._db.byFill.get(e.ref),n=b.Children.toArray(e.children);if(t){t.children=n;let r=this._db.byName.get(t.name);if(r)r.listeners.forEach(l=>l([...r.components]));else throw Error("registration was expected to be defined")}else{yl.error("[handleFillUpdated] component was expected to be defined");return}}handleFillUnmount({fill:e}){let t=this._db.byFill.get(e.ref);if(!t){yl.error("[handleFillUnmount] component was expected to be defined");return}let n=t.name,r=this._db.byName.get(n);if(!r)throw Error("registration was expected to be defined");r.components=r.components.filter(l=>l!==t),this._db.byFill.delete(e.ref),r.listeners.length===0&&r.components.length===0?this._db.byName.delete(n):r.listeners.forEach(l=>l([...r.components]))}onComponentsChange(e,t){let n=this._db.byName.get(e);n?(n.listeners.push(t),t(n.components)):(this._db.byName.set(e,{listeners:[t],components:[]}),t([]))}getFillsByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.fill):[]}getChildrenByName(e){let t=this._db.byName.get(e);return t?t.components.map(n=>n.children).reduce((n,r)=>n.concat(r),[]):[]}removeOnComponentsChange(e,t){let n=this._db.byName.get(e);if(!n)throw Error("expected registration to be defined");let r=n.listeners;r.splice(r.indexOf(t),1)}},Ei=Object.defineProperty,Pi=(e,t,n)=>t in e?Ei(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Oi=(e,t,n)=>(Pi(e,typeof t=="symbol"?t:t+"",n),n),xl=class{constructor(){Oi(this,"bus",qd())}mount(e){this.bus.emit("fill-mount",{fill:e})}unmount(e){this.bus.emit("fill-unmount",{fill:e})}update(e){this.bus.emit("fill-updated",{fill:e})}};function Kd(e){let t=e||new xl;return{controller:t,manager:new Ii(t.bus)}}Sd=({controller:e,children:t})=>{let[n]=b.useState(()=>{let r=Kd(e);return r.manager.mount(),r});return b.useEffect(()=>()=>{n.manager.unmount()},[]),b.createElement(Wn.Provider,{value:n},t)},dl=function(e,t){let[n,r]=(0,b.useState)([]),{manager:l}=(0,b.useContext)(Wn);return(0,b.useEffect)(()=>(l.onComponentsChange(e,r),()=>{l.removeOnComponentsChange(e,r)}),[e]),n.flatMap((a,o)=>{let{children:i}=a;return i.map((c,u)=>{if(typeof c=="number"||typeof c=="string")throw Error("Only element children will work here");return b.cloneElement(c,{key:o.toString()+u.toString(),...t})})})},sl=e=>{let t=dl(e.name,e.childProps);if(typeof e.children=="function"){let n=e.children(t);if(b.isValidElement(n)||n===null)return n;throw Error("Slot rendered with function must return a valid React Element.")}return t},bd=new xl,on={SIDEBAR:"sidebar",CONTEXT_AWARE_PANEL:"context-aware-panel",CONTEXT_AWARE_PANEL_HEADER:"context-aware-panel-header"},Ln=function(){return(window==null?void 0:window.__MARIMO_STATIC__)!==void 0},xd=function(){return ft(window.__MARIMO_STATIC__!==void 0,"Not a static notebook"),window.__MARIMO_STATIC__.files},wd=function(){var e;return(e=window==null?void 0:window.__MARIMO_STATIC__)==null?void 0:e.modelNotifications};var Ud=!1;function Xd(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Jd(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Yd=(function(){function e(n){var r=this;this._insertTag=function(l){var a=r.tags.length===0?r.insertionPoint?r.insertionPoint.nextSibling:r.prepend?r.container.firstChild:r.before:r.tags[r.tags.length-1].nextSibling;r.container.insertBefore(l,a),r.tags.push(l)},this.isSpeedy=n.speedy===void 0?!Ud:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(n){n.forEach(this._insertTag)},t.insert=function(n){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Jd(this));var r=this.tags[this.tags.length-1];if(this.isSpeedy){var l=Xd(r);try{l.insertRule(n,l.cssRules.length)}catch{}}else r.appendChild(document.createTextNode(n));this.ctr++},t.flush=function(){this.tags.forEach(function(n){var r;return(r=n.parentNode)==null?void 0:r.removeChild(n)}),this.tags=[],this.ctr=0},e})(),ve="-ms-",Gn="-moz-",H="-webkit-",$i="comm",bl="rule",vl="decl",Qd="@import",Ti="@keyframes",Zd="@layer",em=Math.abs,qn=String.fromCharCode,tm=Object.assign;function nm(e,t){return ge(e,0)^45?(((t<<2^ge(e,0))<<2^ge(e,1))<<2^ge(e,2))<<2^ge(e,3):0}function zi(e){return e.trim()}function rm(e,t){return(e=t.exec(e))?e[0]:e}function B(e,t,n){return e.replace(t,n)}function wl(e,t){return e.indexOf(t)}function ge(e,t){return e.charCodeAt(t)|0}function cn(e,t,n){return e.slice(t,n)}function Ue(e){return e.length}function Sl(e){return e.length}function Kn(e,t){return t.push(e),e}function lm(e,t){return e.map(t).join("")}var Un=1,Dt=1,Vi=0,ke=0,ie=0,Lt="";function Xn(e,t,n,r,l,a,o){return{value:e,root:t,parent:n,type:r,props:l,children:a,line:Un,column:Dt,length:o,return:""}}function un(e,t){return tm(Xn("",null,null,"",null,null,0),e,{length:-e.length},t)}function am(){return ie}function om(){return ie=ke>0?ge(Lt,--ke):0,Dt--,ie===10&&(Dt=1,Un--),ie}function Me(){return ie=ke<Vi?ge(Lt,ke++):0,Dt++,ie===10&&(Dt=1,Un++),ie}function Xe(){return ge(Lt,ke)}function Jn(){return ke}function dn(e,t){return cn(Lt,e,t)}function mn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Di(e){return Un=Dt=1,Vi=Ue(Lt=e),ke=0,[]}function Li(e){return Lt="",e}function Yn(e){return zi(dn(ke-1,Cl(e===91?e+2:e===40?e+1:e)))}function im(e){for(;(ie=Xe())&&ie<33;)Me();return mn(e)>2||mn(ie)>3?"":" "}function sm(e,t){for(;--t&&Me()&&!(ie<48||ie>102||ie>57&&ie<65||ie>70&&ie<97););return dn(e,Jn()+(t<6&&Xe()==32&&Me()==32))}function Cl(e){for(;Me();)switch(ie){case e:return ke;case 34:case 39:e!==34&&e!==39&&Cl(ie);break;case 40:e===41&&Cl(e);break;case 92:Me();break}return ke}function cm(e,t){for(;Me()&&e+ie!==57&&!(e+ie===84&&Xe()===47););return"/*"+dn(t,ke-1)+"*"+qn(e===47?e:Me())}function um(e){for(;!mn(Xe());)Me();return dn(e,ke)}function dm(e){return Li(Qn("",null,null,null,[""],e=Di(e),0,[0],e))}function Qn(e,t,n,r,l,a,o,i,c){for(var u=0,m=0,p=o,d=0,g=0,f=0,x=1,w=1,y=1,S=0,v="",j=l,k=a,C=r,N=v;w;)switch(f=S,S=Me()){case 40:if(f!=108&&ge(N,p-1)==58){wl(N+=B(Yn(S),"&","&\f"),"&\f")!=-1&&(y=-1);break}case 34:case 39:case 91:N+=Yn(S);break;case 9:case 10:case 13:case 32:N+=im(f);break;case 92:N+=sm(Jn()-1,7);continue;case 47:switch(Xe()){case 42:case 47:Kn(mm(cm(Me(),Jn()),t,n),c);break;default:N+="/"}break;case 123*x:i[u++]=Ue(N)*y;case 125*x:case 59:case 0:switch(S){case 0:case 125:w=0;case 59+m:y==-1&&(N=B(N,/\f/g,"")),g>0&&Ue(N)-p&&Kn(g>32?Bi(N+";",r,n,p-1):Bi(B(N," ","")+";",r,n,p-2),c);break;case 59:N+=";";default:if(Kn(C=Hi(N,t,n,u,m,l,i,v,j=[],k=[],p),a),S===123)if(m===0)Qn(N,t,C,C,j,a,p,i,k);else switch(d===99&&ge(N,3)===110?100:d){case 100:case 108:case 109:case 115:Qn(e,C,C,r&&Kn(Hi(e,C,C,0,0,l,i,v,l,j=[],p),k),l,k,p,i,r?j:k);break;default:Qn(N,C,C,C,[""],k,0,i,k)}}u=m=g=0,x=y=1,v=N="",p=o;break;case 58:p=1+Ue(N),g=f;default:if(x<1){if(S==123)--x;else if(S==125&&x++==0&&om()==125)continue}switch(N+=qn(S),S*x){case 38:y=m>0?1:(N+="\f",-1);break;case 44:i[u++]=(Ue(N)-1)*y,y=1;break;case 64:Xe()===45&&(N+=Yn(Me())),d=Xe(),m=p=Ue(v=N+=um(Jn())),S++;break;case 45:f===45&&Ue(N)==2&&(x=0)}}return a}function Hi(e,t,n,r,l,a,o,i,c,u,m){for(var p=l-1,d=l===0?a:[""],g=Sl(d),f=0,x=0,w=0;f<r;++f)for(var y=0,S=cn(e,p+1,p=em(x=o[f])),v=e;y<g;++y)(v=zi(x>0?d[y]+" "+S:B(S,/&\f/g,d[y])))&&(c[w++]=v);return Xn(e,t,n,l===0?bl:i,c,u,m)}function mm(e,t,n){return Xn(e,t,n,$i,qn(am()),cn(e,2,-2),0)}function Bi(e,t,n,r){return Xn(e,t,n,vl,cn(e,0,r),cn(e,r+1,-1),r)}function Ht(e,t){for(var n="",r=Sl(e),l=0;l<r;l++)n+=t(e[l],l,e,t)||"";return n}function pm(e,t,n,r){switch(e.type){case Zd:if(e.children.length)break;case Qd:case vl:return e.return=e.return||e.value;case $i:return"";case Ti:return e.return=e.value+"{"+Ht(e.children,r)+"}";case bl:e.value=e.props.join(",")}return Ue(n=Ht(e.children,r))?e.return=e.value+"{"+n+"}":""}function fm(e){var t=Sl(e);return function(n,r,l,a){for(var o="",i=0;i<t;i++)o+=e[i](n,r,l,a)||"";return o}}function gm(e){return function(t){t.root||(t=t.return)&&e(t)}}var hm=function(e,t,n){for(var r=0,l=0;r=l,l=Xe(),r===38&&l===12&&(t[n]=1),!mn(l);)Me();return dn(e,ke)},ym=function(e,t){var n=-1,r=44;do switch(mn(r)){case 0:r===38&&Xe()===12&&(t[n]=1),e[n]+=hm(ke-1,t,n);break;case 2:e[n]+=Yn(r);break;case 4:if(r===44){e[++n]=Xe()===58?"&\f":"",t[n]=e[n].length;break}default:e[n]+=qn(r)}while(r=Me());return e},xm=function(e,t){return Li(ym(Di(e),t))},Wi=new WeakMap,bm=function(e){if(!(e.type!=="rule"||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!=="rule";)if(n=n.parent,!n)return;if(!(e.props.length===1&&t.charCodeAt(0)!==58&&!Wi.get(n))&&!r){Wi.set(e,!0);for(var l=[],a=xm(t,l),o=n.props,i=0,c=0;i<a.length;i++)for(var u=0;u<o.length;u++,c++)e.props[c]=l[i]?a[i].replace(/&\f/g,o[u]):o[u]+" "+a[i]}}},vm=function(e){if(e.type==="decl"){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return="",e.value="")}};function Gi(e,t){switch(nm(e,t)){case 5103:return H+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return H+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return H+e+Gn+e+ve+e+e;case 6828:case 4268:return H+e+ve+e+e;case 6165:return H+e+ve+"flex-"+e+e;case 5187:return H+e+B(e,/(\w+).+(:[^]+)/,H+"box-$1$2"+ve+"flex-$1$2")+e;case 5443:return H+e+ve+"flex-item-"+B(e,/flex-|-self/,"")+e;case 4675:return H+e+ve+"flex-line-pack"+B(e,/align-content|flex-|-self/,"")+e;case 5548:return H+e+ve+B(e,"shrink","negative")+e;case 5292:return H+e+ve+B(e,"basis","preferred-size")+e;case 6060:return H+"box-"+B(e,"-grow","")+H+e+ve+B(e,"grow","positive")+e;case 4554:return H+B(e,/([^-])(transform)/g,"$1"+H+"$2")+e;case 6187:return B(B(B(e,/(zoom-|grab)/,H+"$1"),/(image-set)/,H+"$1"),e,"")+e;case 5495:case 3959:return B(e,/(image-set\([^]*)/,H+"$1$`$1");case 4968:return B(B(e,/(.+:)(flex-)?(.*)/,H+"box-pack:$3"+ve+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+H+e+e;case 4095:case 3583:case 4068:case 2532:return B(e,/(.+)-inline(.+)/,H+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Ue(e)-1-t>6)switch(ge(e,t+1)){case 109:if(ge(e,t+4)!==45)break;case 102:return B(e,/(.+:)(.+)-([^]+)/,"$1"+H+"$2-$3$1"+Gn+(ge(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wl(e,"stretch")?Gi(B(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(ge(e,t+1)!==115)break;case 6444:switch(ge(e,Ue(e)-3-(~wl(e,"!important")&&10))){case 107:return B(e,":",":"+H)+e;case 101:return B(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+H+(ge(e,14)===45?"inline-":"")+"box$3$1"+H+"$2$3$1"+ve+"$2box$3")+e}break;case 5936:switch(ge(e,t+11)){case 114:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return H+e+ve+B(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return H+e+ve+e+e}return e}var wm=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case vl:e.return=Gi(e.value,e.length);break;case Ti:return Ht([un(e,{value:B(e.value,"@","@"+H)})],r);case bl:if(e.length)return lm(e.props,function(l){switch(rm(l,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Ht([un(e,{props:[B(l,/:(read-\w+)/,":"+Gn+"$1")]})],r);case"::placeholder":return Ht([un(e,{props:[B(l,/:(plac\w+)/,":"+H+"input-$1")]}),un(e,{props:[B(l,/:(plac\w+)/,":"+Gn+"$1")]}),un(e,{props:[B(l,/:(plac\w+)/,ve+"input-$1")]})],r)}return""})}}],jl=function(e){var t=e.key;if(t==="css"){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,function(f){f.getAttribute("data-emotion").indexOf(" ")!==-1&&(document.head.appendChild(f),f.setAttribute("data-s",""))})}var r=e.stylisPlugins||wm,l={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),function(f){for(var x=f.getAttribute("data-emotion").split(" "),w=1;w<x.length;w++)l[x[w]]=!0;o.push(f)});var i,c=[bm,vm],u,m=[pm,gm(function(f){u.insert(f)})],p=fm(c.concat(r,m)),d=function(f){return Ht(dm(f),p)};i=function(f,x,w,y){u=w,d(f?f+"{"+x.styles+"}":x.styles),y&&(g.inserted[x.name]=!0)};var g={key:t,sheet:new Yd({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:l,registered:{},insert:i};return g.sheet.hydrate(o),g},Sm=Tt((e=>{var t=typeof Symbol=="function"&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,l=t?Symbol.for("react.fragment"):60107,a=t?Symbol.for("react.strict_mode"):60108,o=t?Symbol.for("react.profiler"):60114,i=t?Symbol.for("react.provider"):60109,c=t?Symbol.for("react.context"):60110,u=t?Symbol.for("react.async_mode"):60111,m=t?Symbol.for("react.concurrent_mode"):60111,p=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,g=t?Symbol.for("react.suspense_list"):60120,f=t?Symbol.for("react.memo"):60115,x=t?Symbol.for("react.lazy"):60116,w=t?Symbol.for("react.block"):60121,y=t?Symbol.for("react.fundamental"):60117,S=t?Symbol.for("react.responder"):60118,v=t?Symbol.for("react.scope"):60119;function j(C){if(typeof C=="object"&&C){var N=C.$$typeof;switch(N){case n:switch(C=C.type,C){case u:case m:case l:case o:case a:case d:return C;default:switch(C&&(C=C.$$typeof),C){case c:case p:case x:case f:case i:return C;default:return N}}case r:return N}}}function k(C){return j(C)===m}e.AsyncMode=u,e.ConcurrentMode=m,e.ContextConsumer=c,e.ContextProvider=i,e.Element=n,e.ForwardRef=p,e.Fragment=l,e.Lazy=x,e.Memo=f,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=d,e.isAsyncMode=function(C){return k(C)||j(C)===u},e.isConcurrentMode=k,e.isContextConsumer=function(C){return j(C)===c},e.isContextProvider=function(C){return j(C)===i},e.isElement=function(C){return typeof C=="object"&&!!C&&C.$$typeof===n},e.isForwardRef=function(C){return j(C)===p},e.isFragment=function(C){return j(C)===l},e.isLazy=function(C){return j(C)===x},e.isMemo=function(C){return j(C)===f},e.isPortal=function(C){return j(C)===r},e.isProfiler=function(C){return j(C)===o},e.isStrictMode=function(C){return j(C)===a},e.isSuspense=function(C){return j(C)===d},e.isValidElementType=function(C){return typeof C=="string"||typeof C=="function"||C===l||C===m||C===o||C===a||C===d||C===g||typeof C=="object"&&!!C&&(C.$$typeof===x||C.$$typeof===f||C.$$typeof===i||C.$$typeof===c||C.$$typeof===p||C.$$typeof===y||C.$$typeof===S||C.$$typeof===v||C.$$typeof===w)},e.typeOf=j})),Cm=Tt(((e,t)=>{t.exports=Sm()})),jm=Tt(((e,t)=>{var n=Cm(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};i[n.ForwardRef]=a,i[n.Memo]=o;function c(w){return n.isMemo(w)?o:i[w.$$typeof]||r}var u=Object.defineProperty,m=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,g=Object.getPrototypeOf,f=Object.prototype;function x(w,y,S){if(typeof y!="string"){if(f){var v=g(y);v&&v!==f&&x(w,v,S)}var j=m(y);p&&(j=j.concat(p(y)));for(var k=c(w),C=c(y),N=0;N<j.length;++N){var R=j[N];if(!l[R]&&!(S&&S[R])&&!(C&&C[R])&&!(k&&k[R])){var _=d(y,R);try{u(w,R,_)}catch{}}}}return w}t.exports=x})),km=!0;function qi(e,t,n){var r="";return n.split(" ").forEach(function(l){e[l]===void 0?l&&(r+=l+" "):t.push(e[l]+";")}),r}var kl=function(e,t,n){var r=e.key+"-"+t.name;(n===!1||km===!1)&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_l=function(e,t,n){kl(e,t,n);var r=e.key+"-"+t.name;if(e.inserted[t.name]===void 0){var l=t;do e.insert(t===l?"."+r:"",l,e.sheet,!0),l=l.next;while(l!==void 0)}};function _m(e){for(var t=0,n,r=0,l=e.length;l>=4;++r,l-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(l){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Rm={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Mm=!1,Nm=/[A-Z]|^ms/g,Fm=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ki=function(e){return e.charCodeAt(1)===45},Ui=function(e){return e!=null&&typeof e!="boolean"},Rl=hw(function(e){return Ki(e)?e:e.replace(Nm,"-$&").toLowerCase()}),Xi=function(e,t){switch(e){case"animation":case"animationName":if(typeof t=="string")return t.replace(Fm,function(n,r,l){return Je={name:r,styles:l,next:Je},r})}return Rm[e]!==1&&!Ki(e)&&typeof t=="number"&&t!==0?t+"px":t},Am="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function pn(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":var l=n;if(l.anim===1)return Je={name:l.name,styles:l.styles,next:Je},l.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)Je={name:o.name,styles:o.styles,next:Je},o=o.next;return a.styles+";"}return Im(e,t,n);case"function":if(e!==void 0){var i=Je,c=n(e);return Je=i,pn(e,t,c)}break}var u=n;if(t==null)return u;var m=t[u];return m===void 0?u:m}function Im(e,t,n){var r="";if(Array.isArray(n))for(var l=0;l<n.length;l++)r+=pn(e,t,n[l])+";";else for(var a in n){var o=n[a];if(typeof o!="object"){var i=o;t!=null&&t[i]!==void 0?r+=a+"{"+t[i]+"}":Ui(i)&&(r+=Rl(a)+":"+Xi(a,i)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Mm)throw Error(Am);if(Array.isArray(o)&&typeof o[0]=="string"&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Ui(o[c])&&(r+=Rl(a)+":"+Xi(a,o[c])+";");else{var u=pn(e,t,o);switch(a){case"animation":case"animationName":r+=Rl(a)+":"+u+";";break;default:r+=a+"{"+u+"}"}}}}return r}var Ji=/label:\s*([^\s;{]+)\s*(;|$)/g,Je;function Zn(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,l="";Je=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,l+=pn(n,t,a)):l+=a[0];for(var o=1;o<e.length;o++)l+=pn(n,t,e[o]),r&&(l+=a[o]);Ji.lastIndex=0;for(var i="",c;(c=Ji.exec(l))!==null;)i+="-"+c[1];return{name:_m(l)+i,styles:l,next:Je}}var Em=function(e){return e()},Yi=b.useInsertionEffect?b.useInsertionEffect:!1,Qi=Yi||Em,Zi=Yi||b.useLayoutEffect,es=b.createContext(typeof HTMLElement<"u"?jl({key:"css"}):null),Pm=es.Provider,Ml=function(e){return(0,b.forwardRef)(function(t,n){return e(t,(0,b.useContext)(es),n)})},fn=b.createContext({}),Nl={}.hasOwnProperty,Fl="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",Om=function(e,t){var n={};for(var r in t)Nl.call(t,r)&&(n[r]=t[r]);return n[Fl]=e,n},$m=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},Tm=Ml(function(e,t,n){var r=e.css;typeof r=="string"&&t.registered[r]!==void 0&&(r=t.registered[r]);var l=e[Fl],a=[r],o="";typeof e.className=="string"?o=qi(t.registered,a,e.className):e.className!=null&&(o=e.className+" ");var i=Zn(a,void 0,b.useContext(fn));o+=t.key+"-"+i.name;var c={};for(var u in e)Nl.call(e,u)&&u!=="css"&&u!==Fl&&(c[u]=e[u]);return c.className=o,n&&(c.ref=n),b.createElement(b.Fragment,null,b.createElement($m,{cache:t,serialized:i,isStringTag:typeof l=="string"}),b.createElement(l,c))});jm();var zm=function(e,t){var n=arguments;if(t==null||!Nl.call(t,"css"))return b.createElement.apply(void 0,n);var r=n.length,l=Array(r);l[0]=Tm,l[1]=Om(e,t);for(var a=2;a<r;a++)l[a]=n[a];return b.createElement.apply(null,l)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(zm||(zm={}));var Vm=Ml(function(e,t){var n=e.styles,r=Zn([n],void 0,b.useContext(fn)),l=b.useRef();return Zi(function(){var a=t.key+"-global",o=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),i=!1,c=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(o.before=t.sheet.tags[0]),c!==null&&(i=!0,c.setAttribute("data-emotion",a),o.hydrate([c])),l.current=[o,i],function(){o.flush()}},[t]),Zi(function(){var a=l.current,o=a[0];if(a[1]){a[1]=!1;return}r.next!==void 0&&_l(t,r.next,!0),o.tags.length&&(o.before=o.tags[o.tags.length-1].nextElementSibling,o.flush()),t.insert("",r,o,!1)},[t,r.name]),null}),Dm=L();Io=e=>{let t=(0,Dm.c)(6),{container:n,children:r}=e,l;e:{if(!n){let c;t[0]===Symbol.for("react.memo_cache_sentinel")?(c=jl({key:"mo",prepend:!0}),t[0]=c):c=t[0],l=c;break e}let i;if(t[1]!==n){let c=n.querySelector("style");c||(c=document.createElement("style"),n.append(c)),i=jl({key:"mo",prepend:!0,container:c}),t[1]=n,t[2]=i}else i=t[2];l=i}let a=l,o;return t[3]!==a||t[4]!==r?(o=(0,s.jsx)(Pm,{value:a,children:r}),t[3]=a,t[4]=r,t[5]=o):o=t[5],o};var gn={black:"#000",white:"#fff"},Bt={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},Wt={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Gt={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},qt={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Kt={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},hn={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Lm={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ht(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Rt="$$material",Hm=!1,Bm=yw,Wm=function(e){return e!=="theme"},ts=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?Bm:Wm},ns=function(e,t,n){var r;if(t){var l=t.shouldForwardProp;r=e.__emotion_forwardProp&&l?function(a){return e.__emotion_forwardProp(a)&&l(a)}:l}return typeof r!="function"&&n&&(r=e.__emotion_forwardProp),r},Gm=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return kl(t,n,r),Qi(function(){return _l(t,n,r)}),null},qm=function e(t,n){var r=t.__emotion_real===t,l=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var i=ns(t,n,r),c=i||ts(l),u=!c("as");return function(){var m=arguments,p=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&p.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)p.push.apply(p,m);else{var d=m[0];p.push(d[0]);for(var g=m.length,f=1;f<g;f++)p.push(m[f],d[f])}var x=Ml(function(w,y,S){var v=u&&w.as||l,j="",k=[],C=w;if(w.theme==null){for(var N in C={},w)C[N]=w[N];C.theme=b.useContext(fn)}typeof w.className=="string"?j=qi(y.registered,k,w.className):w.className!=null&&(j=w.className+" ");var R=Zn(p.concat(k),y.registered,C);j+=y.key+"-"+R.name,o!==void 0&&(j+=" "+o);var _=u&&i===void 0?ts(v):c,h={};for(var M in w)u&&M==="as"||_(M)&&(h[M]=w[M]);return h.className=j,S&&(h.ref=S),b.createElement(b.Fragment,null,b.createElement(Gm,{cache:y,serialized:R,isStringTag:typeof v=="string"}),b.createElement(v,h))});return x.displayName=a===void 0?"Styled("+(typeof l=="string"?l:l.displayName||l.name||"Component")+")":a,x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=l,x.__emotion_styles=p,x.__emotion_forwardProp=i,Object.defineProperty(x,"toString",{value:function(){return o===void 0&&Hm?"NO_COMPONENT_SELECTOR":"."+o}}),x.withComponent=function(w,y){return e(w,xw({},n,y,{shouldForwardProp:ns(x,y,!0)})).apply(void 0,p)},x}},Km="a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan".split("."),Al=qm.bind(null);Km.forEach(function(e){Al[e]=Al(e)});function Um(e){return e==null||Object.keys(e).length===0}function rs(e){let{styles:t,defaultTheme:n={}}=e;return(0,s.jsx)(Vm,{styles:typeof t=="function"?r=>t(Um(r)?n:r):t})}function ls(e,t){return Al(e,t)}function Xm(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var as=[];function yt(e){return as[0]=e,Zn(as)}var Jm=Tt((e=>{var t=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),r=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),a=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),i=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),u=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),p=Symbol.for("react.client.reference");e.isValidElementType=function(d){return!!(typeof d=="string"||typeof d=="function"||d===t||d===r||d===n||d===i||d===c||typeof d=="object"&&d&&(d.$$typeof===m||d.$$typeof===u||d.$$typeof===a||d.$$typeof===l||d.$$typeof===o||d.$$typeof===p||d.getModuleId!==void 0))}})),os=Tt(((e,t)=>{t.exports=Jm()}))();function Ye(e){if(typeof e!="object"||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function is(e){if(b.isValidElement(e)||(0,os.isValidElementType)(e)||!Ye(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=is(e[n])}),t}function Ne(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return Ye(e)&&Ye(t)&&Object.keys(t).forEach(l=>{b.isValidElement(t[l])||(0,os.isValidElementType)(t[l])?r[l]=t[l]:Ye(t[l])&&Object.prototype.hasOwnProperty.call(e,l)&&Ye(e[l])?r[l]=Ne(e[l],t[l],n):n.clone?r[l]=Ye(t[l])?is(t[l]):t[l]:r[l]=t[l]}),r}var Ym=e=>{let t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function Qm(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...l}=e,a=Ym(t),o=Object.keys(a);function i(d){return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n})`}function c(d){return`@media (max-width:${(typeof t[d]=="number"?t[d]:d)-r/100}${n})`}function u(d,g){let f=o.indexOf(g);return`@media (min-width:${typeof t[d]=="number"?t[d]:d}${n}) and (max-width:${(f!==-1&&typeof t[o[f]]=="number"?t[o[f]]:g)-r/100}${n})`}function m(d){return o.indexOf(d)+1<o.length?u(d,o[o.indexOf(d)+1]):i(d)}function p(d){let g=o.indexOf(d);return g===0?i(o[1]):g===o.length-1?c(o[g]):u(d,o[o.indexOf(d)+1]).replace("@media","@media not all and")}return{keys:o,values:a,up:i,down:c,between:u,only:m,not:p,unit:n,...l}}function ss(e,t){if(!e.containerQueries)return t;let n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,l)=>{var o,i;let a=/min-width:\s*([0-9.]+)/;return(((o=r.match(a))==null?void 0:o[1])||0)-+(((i=l.match(a))==null?void 0:i[1])||0)});return n.length?n.reduce((r,l)=>{let a=t[l];return delete r[l],r[l]=a,r},{...t}):t}function Zm(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ep(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,l]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(l).up(a)}function tp(e){let t=(a,o)=>a.replace("@media",o?`@container ${o}`:"@container");function n(a,o){a.up=(...i)=>t(e.breakpoints.up(...i),o),a.down=(...i)=>t(e.breakpoints.down(...i),o),a.between=(...i)=>t(e.breakpoints.between(...i),o),a.only=(...i)=>t(e.breakpoints.only(...i),o),a.not=(...i)=>{let c=t(e.breakpoints.not(...i),o);return c.includes("not all and")?c.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):c}}let r={},l=a=>(n(r,a),r);return n(l),{...e,containerQueries:l}}var np={borderRadius:4};function rp(e,t){return t?Ne(e,t,{clone:!1}):e}var yn=rp;const er={xs:0,sm:600,md:900,lg:1200,xl:1536};var cs={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${er[e]}px)`},lp={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:er[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function it(e,t,n){let r=e.theme||{};if(Array.isArray(t)){let l=r.breakpoints||cs;return t.reduce((a,o,i)=>(a[l.up(l.keys[i])]=n(t[i]),a),{})}if(typeof t=="object"){let l=r.breakpoints||cs;return Object.keys(t).reduce((a,o)=>{if(Zm(l.keys,o)){let i=ep(r.containerQueries?r:lp,o);i&&(a[i]=n(t[o],o))}else if(Object.keys(l.values||er).includes(o)){let i=l.up(o);a[i]=n(t[o],o)}else{let i=o;a[i]=t[i]}return a},{})}return n(t)}function ap(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((n,r)=>{let l=e.up(r);return n[l]={},n},{}))||{}}function us(e,t){return e.reduce((n,r)=>{let l=n[r];return(!l||Object.keys(l).length===0)&&delete n[r],n},t)}function Il(e){if(typeof e!="string")throw Error(ht(7));return e.charAt(0).toUpperCase()+e.slice(1)}function tr(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){let r=`vars.${t}`.split(".").reduce((l,a)=>l&&l[a]?l[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,l)=>r&&r[l]!=null?r[l]:null,e)}function nr(e,t,n,r=n){let l;return l=typeof e=="function"?e(n):Array.isArray(e)?e[n]||r:tr(e,n)||r,t&&(l=t(l,r,e)),l}function op(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:l}=e,a=o=>{if(o[t]==null)return null;let i=o[t],c=o.theme,u=tr(c,r)||{};return it(o,i,m=>{let p=nr(u,l,m);return m===p&&typeof m=="string"&&(p=nr(u,l,`${t}${m==="default"?"":Il(m)}`,m)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}var ae=op;function ip(e){let t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}var sp={m:"margin",p:"padding"},cp={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ds={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},up=ip(e=>{if(e.length>2)if(ds[e])e=ds[e];else return[e];let[t,n]=e.split(""),r=sp[t],l=cp[n]||"";return Array.isArray(l)?l.map(a=>r+a):[r+l]});const El=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Pl=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];var ms=[...El,...Pl];function xn(e,t,n,r){let l=tr(e,t,!0)??n;return typeof l=="number"||typeof l=="string"?a=>typeof a=="string"?a:typeof l=="string"?`calc(${a} * ${l})`:l*a:Array.isArray(l)?a=>{if(typeof a=="string")return a;let o=l[Math.abs(a)];return a>=0?o:typeof o=="number"?-o:`-${o}`}:typeof l=="function"?l:()=>{}}function Ol(e){return xn(e,"spacing",8,"spacing")}function bn(e,t){return typeof t=="string"||t==null?t:e(t)}function dp(e,t){return n=>e.reduce((r,l)=>(r[l]=bn(t,n),r),{})}function mp(e,t,n,r){if(!t.includes(n))return null;let l=dp(up(n),r),a=e[n];return it(e,a,l)}function $l(e,t){let n=Ol(e.theme);return Object.keys(e).map(r=>mp(e,t,r,n)).reduce(yn,{})}function re(e){return $l(e,El)}re.propTypes={},re.filterProps=El;function le(e){return $l(e,Pl)}le.propTypes={},le.filterProps=Pl;function ps(e){return $l(e,ms)}ps.propTypes={},ps.filterProps=ms;function fs(e=8,t=Ol({spacing:e})){if(e.mui)return e;let n=(...r)=>(r.length===0?[1]:r).map(l=>{let a=t(l);return typeof a=="number"?`${a}px`:a}).join(" ");return n.mui=!0,n}function pp(...e){let t=e.reduce((r,l)=>(l.filterProps.forEach(a=>{r[a]=l}),r),{}),n=r=>Object.keys(r).reduce((l,a)=>t[a]?yn(l,t[a](r)):l,{});return n.propTypes={},n.filterProps=e.reduce((r,l)=>r.concat(l.filterProps),[]),n}var rr=pp;function $e(e){return typeof e=="number"?`${e}px solid`:e}function Te(e,t){return ae({prop:e,themeKey:"borders",transform:t})}const fp=Te("border",$e),gp=Te("borderTop",$e),hp=Te("borderRight",$e),yp=Te("borderBottom",$e),xp=Te("borderLeft",$e),bp=Te("borderColor"),vp=Te("borderTopColor"),wp=Te("borderRightColor"),Sp=Te("borderBottomColor"),Cp=Te("borderLeftColor"),jp=Te("outline",$e),kp=Te("outlineColor"),lr=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=xn(e.theme,"shape.borderRadius",4,"borderRadius");return it(e,e.borderRadius,n=>({borderRadius:bn(t,n)}))}return null};lr.propTypes={},lr.filterProps=["borderRadius"],rr(fp,gp,hp,yp,xp,bp,vp,wp,Sp,Cp,lr,jp,kp);const ar=e=>{if(e.gap!==void 0&&e.gap!==null){let t=xn(e.theme,"spacing",8,"gap");return it(e,e.gap,n=>({gap:bn(t,n)}))}return null};ar.propTypes={},ar.filterProps=["gap"];const or=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=xn(e.theme,"spacing",8,"columnGap");return it(e,e.columnGap,n=>({columnGap:bn(t,n)}))}return null};or.propTypes={},or.filterProps=["columnGap"];const ir=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=xn(e.theme,"spacing",8,"rowGap");return it(e,e.rowGap,n=>({rowGap:bn(t,n)}))}return null};ir.propTypes={},ir.filterProps=["rowGap"],rr(ar,or,ir,ae({prop:"gridColumn"}),ae({prop:"gridRow"}),ae({prop:"gridAutoFlow"}),ae({prop:"gridAutoColumns"}),ae({prop:"gridAutoRows"}),ae({prop:"gridTemplateColumns"}),ae({prop:"gridTemplateRows"}),ae({prop:"gridTemplateAreas"}),ae({prop:"gridArea"}));function Ut(e,t){return t==="grey"?t:e}rr(ae({prop:"color",themeKey:"palette",transform:Ut}),ae({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ut}),ae({prop:"backgroundColor",themeKey:"palette",transform:Ut}));function Fe(e){return e<=1&&e!==0?`${e*100}%`:e}const _p=ae({prop:"width",transform:Fe}),Tl=e=>e.maxWidth!==void 0&&e.maxWidth!==null?it(e,e.maxWidth,t=>{var r,l,a,o,i;let n=((a=(l=(r=e.theme)==null?void 0:r.breakpoints)==null?void 0:l.values)==null?void 0:a[t])||er[t];return n?((i=(o=e.theme)==null?void 0:o.breakpoints)==null?void 0:i.unit)==="px"?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Fe(t)}}):null;Tl.filterProps=["maxWidth"];const Rp=ae({prop:"minWidth",transform:Fe}),Mp=ae({prop:"height",transform:Fe}),Np=ae({prop:"maxHeight",transform:Fe}),Fp=ae({prop:"minHeight",transform:Fe});ae({prop:"size",cssProperty:"width",transform:Fe}),ae({prop:"size",cssProperty:"height",transform:Fe}),rr(_p,Tl,Rp,Mp,Np,Fp,ae({prop:"boxSizing"}));var vn={border:{themeKey:"borders",transform:$e},borderTop:{themeKey:"borders",transform:$e},borderRight:{themeKey:"borders",transform:$e},borderBottom:{themeKey:"borders",transform:$e},borderLeft:{themeKey:"borders",transform:$e},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:$e},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:lr},color:{themeKey:"palette",transform:Ut},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ut},backgroundColor:{themeKey:"palette",transform:Ut},p:{style:le},pt:{style:le},pr:{style:le},pb:{style:le},pl:{style:le},px:{style:le},py:{style:le},padding:{style:le},paddingTop:{style:le},paddingRight:{style:le},paddingBottom:{style:le},paddingLeft:{style:le},paddingX:{style:le},paddingY:{style:le},paddingInline:{style:le},paddingInlineStart:{style:le},paddingInlineEnd:{style:le},paddingBlock:{style:le},paddingBlockStart:{style:le},paddingBlockEnd:{style:le},m:{style:re},mt:{style:re},mr:{style:re},mb:{style:re},ml:{style:re},mx:{style:re},my:{style:re},margin:{style:re},marginTop:{style:re},marginRight:{style:re},marginBottom:{style:re},marginLeft:{style:re},marginX:{style:re},marginY:{style:re},marginInline:{style:re},marginInlineStart:{style:re},marginInlineEnd:{style:re},marginBlock:{style:re},marginBlockStart:{style:re},marginBlockEnd:{style:re},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ar},rowGap:{style:ir},columnGap:{style:or},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Fe},maxWidth:{style:Tl},minWidth:{transform:Fe},height:{transform:Fe},maxHeight:{transform:Fe},minHeight:{transform:Fe},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function Ap(...e){let t=e.reduce((r,l)=>r.concat(Object.keys(l)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Ip(e,t){return typeof e=="function"?e(t):e}function Ep(){function e(n,r,l,a){let o={[n]:r,theme:l},i=a[n];if(!i)return{[n]:r};let{cssProperty:c=n,themeKey:u,transform:m,style:p}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};let d=tr(l,u)||{};return p?p(o):it(o,r,g=>{let f=nr(d,m,g);return g===f&&typeof g=="string"&&(f=nr(d,m,`${n}${g==="default"?"":Il(g)}`,g)),c===!1?f:{[c]:f}})}function t(n){let{sx:r,theme:l={},nested:a}=n||{};if(!r)return null;let o=l.unstable_sxConfig??vn;function i(c){let u=c;if(typeof c=="function")u=c(l);else if(typeof c!="object")return c;if(!u)return null;let m=ap(l.breakpoints),p=Object.keys(m),d=m;return Object.keys(u).forEach(g=>{let f=Ip(u[g],l);if(f!=null)if(typeof f=="object")if(o[g])d=yn(d,e(g,f,l,o));else{let x=it({theme:l},f,w=>({[g]:w}));Ap(x,f)?d[g]=t({sx:f,theme:l,nested:!0}):d=yn(d,x)}else d=yn(d,e(g,f,l,o))}),!a&&l.modularCssLayers?{"@layer sx":ss(l,us(p,d))}:ss(l,us(p,d))}return Array.isArray(r)?r.map(i):i(r)}return t}var gs=Ep();gs.filterProps=["sx"];var Mt=gs;function Pp(e,t){var r;let n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let l=n.getColorSchemeSelector(e);return l==="&"?t:((l.includes("data-")||l.includes("."))&&(l=`*:where(${l.replace(/\s*&$/,"")}) &`),{[l]:t})}return n.palette.mode===e?t:{}}function Op(e={},...t){let{breakpoints:n={},palette:r={},spacing:l,shape:a={},...o}=e,i=Qm(n),c=fs(l),u=Ne({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:c,shape:{...np,...a}},o);return u=tp(u),u.applyStyles=Pp,u=t.reduce((m,p)=>Ne(m,p),u),u.unstable_sxConfig={...vn,...o==null?void 0:o.unstable_sxConfig},u.unstable_sx=function(m){return Mt({sx:m,theme:this})},u}var zl=Op;function $p(e){return Object.keys(e).length===0}function Tp(e=null){let t=b.useContext(fn);return!t||$p(t)?e:t}var Vl=Tp;const zp=zl();function Vp(e=zp){return Vl(e)}var Dl=Vp;function hs(e){let t=yt(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function Dp({styles:e,themeId:t,defaultTheme:n={}}){let r=Dl(n),l=t&&r[t]||r,a=typeof e=="function"?e(l):e;return l.modularCssLayers&&(a=Array.isArray(a)?a.map(o=>hs(typeof o=="function"?o(l):o)):hs(a)),(0,s.jsx)(rs,{styles:a})}var ys=Dp,Lp=e=>{var r;let t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??vn;return Object.keys(e).forEach(l=>{n[l]?t.systemProps[l]=e[l]:t.otherProps[l]=e[l]}),t};function Hp(e){let{sx:t,...n}=e,{systemProps:r,otherProps:l}=Lp(n),a;return a=Array.isArray(t)?[r,...t]:typeof t=="function"?(...o)=>{let i=t(...o);return Ye(i)?{...r,...i}:r}:{...r,...t},{...l,sx:a}}var xs=e=>e,bs=(()=>{let e=xs;return{configure(t){e=t},generate(t){return e(t)},reset(){e=xs}}})();function Bp(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:l}=e,a=ls("div",{shouldForwardProp:o=>o!=="theme"&&o!=="sx"&&o!=="as"})(Mt);return b.forwardRef(function(o,i){let c=Dl(n),{className:u,component:m="div",...p}=Hp(o);return(0,s.jsx)(a,{as:m,ref:i,className:Tn(u,l?l(r):r),theme:t&&c[t]||c,...p})})}const Wp={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function sr(e,t,n="Mui"){let r=Wp[t];return r?`${n}-${r}`:`${bs.generate(e)}-${t}`}function cr(e,t,n="Mui"){let r={};return t.forEach(l=>{r[l]=sr(e,l,n)}),r}function vs(e){let{variants:t,...n}=e,r={variants:t,style:yt(n),isProcessed:!0};return r.style===n||t&&t.forEach(l=>{typeof l.style!="function"&&(l.style=yt(l.style))}),r}const Gp=zl();function Ll(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Nt(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function qp(e){return e?(t,n)=>n[e]:null}function Kp(e,t,n){e.theme=Xp(e.theme)?n:e.theme[t]||e.theme}function ur(e,t,n){let r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(l=>ur(e,l,n));if(Array.isArray(r==null?void 0:r.variants)){let l;if(r.isProcessed)l=n?Nt(r.style,n):r.style;else{let{variants:a,...o}=r;l=n?Nt(yt(o),n):o}return ws(e,r.variants,[l],n)}return r!=null&&r.isProcessed?n?Nt(yt(r.style),n):r.style:n?Nt(yt(r),n):r}function ws(e,t,n=[],r=void 0){var a;let l;e:for(let o=0;o<t.length;o+=1){let i=t[o];if(typeof i.props=="function"){if(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),!i.props(l))continue}else for(let c in i.props)if(e[c]!==i.props[c]&&((a=e.ownerState)==null?void 0:a[c])!==i.props[c])continue e;typeof i.style=="function"?(l??(l={...e,...e.ownerState,ownerState:e.ownerState}),n.push(r?Nt(yt(i.style(l)),r):i.style(l))):n.push(r?Nt(yt(i.style),r):i.style)}return n}function Up(e={}){let{themeId:t,defaultTheme:n=Gp,rootShouldForwardProp:r=Ll,slotShouldForwardProp:l=Ll}=e;function a(o){Kp(o,t,n)}return(o,i={})=>{Xm(o,k=>k.filter(C=>C!==Mt));let{name:c,slot:u,skipVariantsResolver:m,skipSx:p,overridesResolver:d=qp(Yp(u)),...g}=i,f=c&&c.startsWith("Mui")||u?"components":"custom",x=m===void 0?u&&u!=="Root"&&u!=="root"||!1:m,w=p||!1,y=Ll;u==="Root"||u==="root"?y=r:u?y=l:Jp(o)&&(y=void 0);let S=ls(o,{shouldForwardProp:y,label:void 0,...g}),v=k=>{if(k.__emotion_real===k)return k;if(typeof k=="function")return function(C){return ur(C,k,C.theme.modularCssLayers?f:void 0)};if(Ye(k)){let C=vs(k);return function(N){return C.variants?ur(N,C,N.theme.modularCssLayers?f:void 0):N.theme.modularCssLayers?Nt(C.style,f):C.style}}return k},j=(...k)=>{let C=[],N=k.map(v),R=[];if(C.push(a),c&&d&&R.push(function(h){var I,z;let M=(z=(I=h.theme.components)==null?void 0:I[c])==null?void 0:z.styleOverrides;if(!M)return null;let A={};for(let V in M)A[V]=ur(h,M[V],h.theme.modularCssLayers?"theme":void 0);return d(h,A)}),c&&!x&&R.push(function(h){var A,I,z;let M=(z=(I=(A=h.theme)==null?void 0:A.components)==null?void 0:I[c])==null?void 0:z.variants;return M?ws(h,M,[],h.theme.modularCssLayers?"theme":void 0):null}),w||R.push(Mt),Array.isArray(N[0])){let h=N.shift(),M=Array(C.length).fill(""),A=Array(R.length).fill(""),I;I=[...M,...h,...A],I.raw=[...M,...h.raw,...A],C.unshift(I)}let _=S(...C,...N,...R);return o.muiName&&(_.muiName=o.muiName),_};return S.withConfig&&(j.withConfig=S.withConfig),j}}function Xp(e){for(let t in e)return!1;return!0}function Jp(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Yp(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function Hl(e,t){let n={...t};for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)){let l=r;if(l==="components"||l==="slots")n[l]={...e[l],...n[l]};else if(l==="componentsProps"||l==="slotProps"){let a=e[l],o=t[l];if(!o)n[l]=a||{};else if(!a)n[l]=o;else for(let i in n[l]={...o},a)if(Object.prototype.hasOwnProperty.call(a,i)){let c=i;n[l][c]=Hl(a[c],o[c])}}else n[l]===void 0&&(n[l]=e[l])}return n}var Ft=typeof window<"u"?b.useLayoutEffect:b.useEffect;function Qp(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}var Zp=Qp;function Bl(e,t=0,n=1){return Zp(e,t,n)}function ef(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,"g"),n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,l)=>l<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function xt(e){if(e.type)return e;if(e.charAt(0)==="#")return xt(ef(e));let t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw Error(ht(9,e));let r=e.substring(t+1,e.length-1),l;if(n==="color"){if(r=r.split(" "),l=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(l))throw Error(ht(10,l))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:l}}const tf=e=>{let t=xt(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},wn=(e,t)=>{try{return tf(e)}catch{return e}};function dr(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes("rgb")?r=r.map((l,a)=>a<3?parseInt(l,10):l):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes("color")?`${n} ${r.join(" ")}`:`${r.join(", ")}`,`${t}(${r})`}function Ss(e){e=xt(e);let{values:t}=e,n=t[0],r=t[1]/100,l=t[2]/100,a=r*Math.min(l,1-l),o=(u,m=(u+n/30)%12)=>l-a*Math.max(Math.min(m-3,9-m,1),-1),i="rgb",c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type==="hsla"&&(i+="a",c.push(t[3])),dr({type:i,values:c})}function Wl(e){e=xt(e);let t=e.type==="hsl"||e.type==="hsla"?xt(Ss(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function nf(e,t){let n=Wl(e),r=Wl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Gl(e,t){return e=xt(e),t=Bl(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,dr(e)}function mr(e,t,n){try{return Gl(e,t)}catch{return e}}function ql(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return dr(e)}function q(e,t,n){try{return ql(e,t)}catch{return e}}function Kl(e,t){if(e=xt(e),t=Bl(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return dr(e)}function K(e,t,n){try{return Kl(e,t)}catch{return e}}function rf(e,t=.15){return Wl(e)>.5?ql(e,t):Kl(e,t)}function pr(e,t,n){try{return rf(e,t)}catch{return e}}function lf(e,t=166){let n;function r(...l){clearTimeout(n),n=setTimeout(()=>{e.apply(this,l)},t)}return r.clear=()=>{clearTimeout(n)},r}function af(e){return e&&e.ownerDocument||document}function Cs(e){return af(e).defaultView||window}var js=0;function of(e){let[t,n]=b.useState(e),r=e||t;return b.useEffect(()=>{t??(js+=1,n(`mui-${js}`))},[t]),r}var ks={...b}.useId;function sf(e){if(ks!==void 0){let t=ks();return e??t}return of(e)}function cf(e){let t=b.useRef(e);return Ft(()=>{t.current=e}),b.useRef((...n)=>(0,t.current)(...n)).current}var uf=cf;function _s(...e){let t=b.useRef(void 0),n=b.useCallback(r=>{let l=e.map(a=>{if(a==null)return null;if(typeof a=="function"){let o=a,i=o(r);return typeof i=="function"?i:()=>{o(null)}}return a.current=r,()=>{a.current=null}});return()=>{l.forEach(a=>a==null?void 0:a())}},e);return b.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current=(t.current(),void 0)),r!=null&&(t.current=n(r))},e)}function Ul(e,t,n=void 0){let r={};for(let l in e){let a=e[l],o="",i=!0;for(let c=0;c<a.length;c+=1){let u=a[c];u&&(o+=(i===!0?"":" ")+t(u),i=!1,n&&n[u]&&(o+=" "+n[u]))}r[l]=o}return r}var Rs=b.createContext(null);function Xl(){return b.useContext(Rs)}var df=typeof Symbol=="function"&&Symbol.for?Symbol.for("mui.nested"):"__THEME_NESTED__";function mf(e,t){return typeof t=="function"?t(e):{...e,...t}}function pf(e){let{children:t,theme:n}=e,r=Xl(),l=b.useMemo(()=>{let a=r===null?{...n}:mf(r,n);return a!=null&&(a[df]=r!==null),a},[n,r]);return(0,s.jsx)(Rs.Provider,{value:l,children:t})}var ff=pf,gf=b.createContext();function hf({value:e,...t}){return(0,s.jsx)(gf.Provider,{value:e??!0,...t})}var yf=hf,Ms=b.createContext(void 0);function xf({value:e,children:t}){return(0,s.jsx)(Ms.Provider,{value:e,children:t})}function bf(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let l=t.components[n];return l.defaultProps?Hl(l.defaultProps,r):!l.styleOverrides&&!l.variants?Hl(l,r):r}function vf({props:e,name:t}){return bf({props:e,name:t,theme:{components:b.useContext(Ms)}})}var wf=xf;function Sf(e){let t=Vl(),n=sf()||"",{modularCssLayers:r}=e,l="mui.global, mui.components, mui.theme, mui.custom, mui.sx";return l=!r||t!==null?"":typeof r=="string"?r.replace(/mui(?!\.)/g,l):`@layer ${l};`,Ft(()=>{var i,c;let a=document.querySelector("head");if(!a)return;let o=a.firstChild;if(l){if(o&&((i=o.hasAttribute)!=null&&i.call(o,"data-mui-layer-order"))&&o.getAttribute("data-mui-layer-order")===n)return;let u=document.createElement("style");u.setAttribute("data-mui-layer-order",n),u.textContent=l,a.prepend(u)}else(c=a.querySelector(`style[data-mui-layer-order="${n}"]`))==null||c.remove()},[l,n]),l?(0,s.jsx)(ys,{styles:l}):null}var Ns={};function Fs(e,t,n,r=!1){return b.useMemo(()=>{let l=e&&t[e]||t;if(typeof n=="function"){let a=n(l),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function Cf(e){let{children:t,theme:n,themeId:r}=e,l=Vl(Ns),a=Xl()||Ns,o=Fs(r,l,n),i=Fs(r,a,n,!0),c=(r?o[r]:o).direction==="rtl",u=Sf(o);return(0,s.jsx)(ff,{theme:i,children:(0,s.jsx)(fn.Provider,{value:o,children:(0,s.jsx)(yf,{value:c,children:(0,s.jsxs)(wf,{value:r?o[r].components:o.components,children:[u,t]})})})})}var As=Cf,Is={theme:void 0};function jf(e){let t,n;return function(r){let l=t;return(l===void 0||r.theme!==n)&&(Is.theme=r.theme,l=vs(e(Is)),t=l,n=r.theme),l}}const Jl="mode",Yl="color-scheme";function kf(e){let{defaultMode:t="system",defaultLightColorScheme:n="light",defaultDarkColorScheme:r="dark",modeStorageKey:l=Jl,colorSchemeStorageKey:a=Yl,attribute:o="data-color-scheme",colorSchemeNode:i="document.documentElement",nonce:c}=e||{},u="",m=o;if(o==="class"&&(m=".%s"),o==="data"&&(m="[data-%s]"),m.startsWith(".")){let d=m.substring(1);u+=`${i}.classList.remove('${d}'.replace('%s', light), '${d}'.replace('%s', dark));
|
|
3
3
|
${i}.classList.add('${d}'.replace('%s', colorScheme));`}let p=m.match(/\[([^\]]+)\]/);if(p){let[d,g]=p[1].split("=");g||(u+=`${i}.removeAttribute('${d}'.replace('%s', light));
|
|
4
4
|
${i}.removeAttribute('${d}'.replace('%s', dark));`),u+=`
|
|
5
5
|
${i}.setAttribute('${d}'.replace('%s', colorScheme), ${g?`${g}.replace('%s', colorScheme)`:'""'});`}else u+=`${i}.setAttribute('${m}', colorScheme);`;return(0,s.jsx)("script",{suppressHydrationWarning:!0,nonce:typeof window>"u"?c:"",dangerouslySetInnerHTML:{__html:`(function() {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{s as J}from"./chunk-LvLJmgfZ.js";import{d as ve,f as Ne,l as be,u as ke}from"./useEvent-D91BmmQi.js";import{t as we}from"./react-Bj1aDYRI.js";import{E as Ie,Mn as $e,_i as _e,b as Fe,ii as K,ir as Ae,nt as Te,ri as Ce,wn as Me}from"./cells-
|
|
1
|
+
import{s as J}from"./chunk-LvLJmgfZ.js";import{d as ve,f as Ne,l as be,u as ke}from"./useEvent-D91BmmQi.js";import{t as we}from"./react-Bj1aDYRI.js";import{E as Ie,Mn as $e,_i as _e,b as Fe,ii as K,ir as Ae,nt as Te,ri as Ce,wn as Me}from"./cells-CAft_y9h.js";import{t as q}from"./compiler-runtime-B3qBwwSJ.js";import{t as Se}from"./invariant-CkiqGLcK.js";import{r as ze}from"./utils-8btzWeZg.js";import{t as X}from"./cn-DYvqRARy.js";import{t as Ee}from"./jsx-runtime-Blw4afVn.js";import{a as qe,i as Pe,n as Le,r as We}from"./multi-map-MSuUqmbC.js";import{a as Ve,p as Be,r as Qe,t as De}from"./dropdown-menu-DrHAuMTb.js";import{t as Y}from"./tooltip-DmqhBBs6.js";import{r as Z,t as $}from"./button-COIw2x9i.js";import{t as H}from"./createLucideIcon-w-Qo9n0R.js";import{r as Oe}from"./x-Bv2rCglF.js";import{t as He}from"./sparkles-B79Qf6ma.js";import{c as ee,n as Ue}from"./datasource-C1kSlT4s.js";import{a as Re}from"./dist-CgYlATe-.js";import{t as te}from"./RenderHTML-5FjN3OZH.js";import{t as re}from"./kbd-BUtlbGdu.js";import{t as A}from"./links-DOybeRem.js";import{r as Ge,t as Je}from"./alert-DF3HbVtk.js";import{o as Ke,t as Xe}from"./useInstallPackage-CeM6oPsT.js";import{n as Ye}from"./state-CDUQVvOe.js";import{n as b}from"./cell-link-DMyOfytV.js";var Ze=H("package",[["path",{d:"M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z",key:"1a0edw"}],["path",{d:"M12 22V12",key:"d0xqtd"}],["polyline",{points:"3.29 7 12 12 20.71 7",key:"ousv84"}],["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}]]),T=H("square-arrow-out-up-right",[["path",{d:"M21 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h6",key:"y09zxi"}],["path",{d:"m21 3-9 9",key:"mpx6sq"}],["path",{d:"M15 3h6v6",key:"1q9fwt"}]]),se=H("terminal",[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]]);function et(t){let e=null,s=t.cursor();do s.name==="ExpressionStatement"&&(e=s.node);while(s.next());return e}function tt(t){let e=t.split(`
|
|
2
2
|
`),s=" ",n=et(Re.parse(t));if(!n)return["def _():",...U(e,s),`${s}return`,"","","_()"].join(`
|
|
3
3
|
`);let i=t.slice(0,n.from).trim(),l=t.slice(n.from).trim(),a=i.split(`
|
|
4
4
|
`),c=l.split(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{s as v}from"./chunk-LvLJmgfZ.js";import{i as j,p as y,u as w}from"./useEvent-D91BmmQi.js";import{t as R}from"./react-Bj1aDYRI.js";import{bn as S,gn as _,ii as m,it as H,m as C,ri as I,vt as L}from"./cells-
|
|
1
|
+
import{s as v}from"./chunk-LvLJmgfZ.js";import{i as j,p as y,u as w}from"./useEvent-D91BmmQi.js";import{t as R}from"./react-Bj1aDYRI.js";import{bn as S,gn as _,ii as m,it as H,m as C,ri as I,vt as L}from"./cells-CAft_y9h.js";import{t as E}from"./compiler-runtime-B3qBwwSJ.js";import{_ as M}from"./useEventListener-DGjKht0c.js";import{o as N}from"./utils-8btzWeZg.js";import{t as T}from"./jsx-runtime-Blw4afVn.js";import{t as z}from"./tooltip-DmqhBBs6.js";import{t as F}from"./copy-icon-Ci08KCdY.js";import{t as V}from"./usePress-BXMIcLWP.js";import{n as W}from"./useDebounce-LVL1r3-M.js";import{t as k}from"./useRunCells-BJn5ZEb6.js";var q=E(),c=v(R(),1),o=v(T(),1);const A=r=>{let t=(0,q.c)(16),e,n,i;t[0]===r?(e=t[1],n=t[2],i=t[3]):({href:n,children:e,...i}=r,t[0]=r,t[1]=e,t[2]=n,t[3]=i);let a=(0,c.useRef)(null),s;t[4]===n?s=t[5]:(s=()=>{let u=new URL(globalThis.location.href);u.hash=n,globalThis.history.pushState({},"",u.toString()),globalThis.dispatchEvent(new HashChangeEvent("hashchange"));let x=n.slice(1),g=document.getElementById(x);g&&g.scrollIntoView({behavior:"smooth",block:"start"})},t[4]=n,t[5]=s);let l=s,f;t[6]===l?f=t[7]:(f={onPress:()=>{l()}},t[6]=l,t[7]=f);let{pressProps:h}=V(f),d;t[8]===l?d=t[9]:(d=u=>{u.preventDefault(),l()},t[8]=l,t[9]=d);let b=d,p;return t[10]!==e||t[11]!==b||t[12]!==n||t[13]!==h||t[14]!==i?(p=(0,o.jsx)("a",{ref:a,href:n,...h,onClick:b,...i,children:e}),t[10]=e,t[11]=b,t[12]=n,t[13]=h,t[14]=i,t[15]=p):p=t[15],p};async function D(r){let t=C().inOrderIds.at(0);if(t)try{let e=await _.request({document:r,cellId:t});if(!e||e.options.length===0)return;let n=r.split(".").pop()??r,i=e.options[0],a=e.options.find(s=>s.name===n)??i;a!=null&&a.completion_info&&j.set(S,{documentation:a.completion_info})}catch(e){M.debug(`Doc lookup failed for "${r}"`,e)}}var O=E();const P=r=>{let t=(0,O.c)(8),{qualifiedName:e,children:n}=r,i;t[0]===e?i=t[1]:(i=()=>{D(e)},t[0]=e,t[1]=i);let a=W(i,100),s;t[2]===a?s=t[3]:(s=()=>a.cancel(),t[2]=a,t[3]=s);let l;return t[4]!==n||t[5]!==a||t[6]!==s?(l=(0,o.jsx)("span",{onMouseEnter:a,onMouseLeave:s,children:n}),t[4]=n,t[5]=a,t[6]=s,t[7]=l):l=t[7],l};var $=y(r=>{let t=r(k),e=r(N);if(t||e)return!1;let n=!0;try{n=H()==="read"}catch{return!0}return!n});function B(){return w($)}var U=E(),Z=r=>{if(r instanceof m.Element&&!/^[A-Za-z][\w-]*$/.test(r.name))return c.createElement(c.Fragment)},G=(r,t)=>{if(t instanceof m.Element&&t.name==="body"){if((0,c.isValidElement)(r)&&"props"in r){let e=r.props.children;return(0,o.jsx)(o.Fragment,{children:e})}return}},J=(r,t)=>{if(t instanceof m.Element&&t.name==="html"){if((0,c.isValidElement)(r)&&"props"in r){let e=r.props.children;return(0,o.jsx)(o.Fragment,{children:e})}return}},K=r=>{if(r instanceof m.Element&&r.attribs&&r.name==="iframe"){let t=document.createElement("iframe");return Object.entries(r.attribs).forEach(([e,n])=>{e.startsWith('"')&&e.endsWith('"')&&(e=e.slice(1,-1)),t.setAttribute(e,n)}),(0,o.jsx)("div",{dangerouslySetInnerHTML:{__html:t.outerHTML}})}},Q=r=>{if(r instanceof m.Element&&r.name==="script"){let t=r.attribs.src;if(!t)return;if(!document.querySelector(`script[src="${t}"]`)){let e=document.createElement("script");e.src=t,document.head.append(e)}return(0,o.jsx)(o.Fragment,{})}},X=(r,t)=>{if(t instanceof m.Element&&t.name==="a"){let e=t.attribs.href;if(e!=null&&e.startsWith("#")&&!e.startsWith("#code/")){let n=null;return(0,c.isValidElement)(r)&&"props"in r&&(n=r.props.children),(0,o.jsx)(A,{href:e,...t.attribs,children:n})}}},Y=(r,t,e)=>{var n,i;if(t instanceof m.Element&&t.name==="div"&&((i=(n=t.attribs)==null?void 0:n.class)!=null&&i.includes("codehilite")))return(0,o.jsx)(rt,{children:r},e)},tt=(r,t)=>{var e;if(t instanceof m.Element&&((e=t.attribs)!=null&&e["data-marimo-doc"])){let n=t.attribs["data-marimo-doc"];return(0,o.jsx)(P,{qualifiedName:n,children:r})}},et=(r,t)=>{var e,n;if(t instanceof m.Element&&((e=t.attribs)!=null&&e["data-tooltip"])){if((((n=t.name)==null?void 0:n.toLowerCase())??"").startsWith("marimo-"))return;let i=t.attribs["data-tooltip"];return(0,o.jsx)(z,{content:i,children:r})}},rt=r=>{let t=(0,U.c)(3),{children:e}=r,n=(0,c.useRef)(null),i;t[0]===Symbol.for("react.memo_cache_sentinel")?(i=(0,o.jsx)("div",{className:"absolute top-2 right-2 opacity-0 group-hover:opacity-100 transition-opacity",children:(0,o.jsx)(F,{tooltip:!1,className:"p-1",value:()=>{var l;let s=(l=n.current)==null?void 0:l.firstChild;return s&&s.textContent||""}})}),t[0]=i):i=t[0];let a;return t[1]===e?a=t[2]:(a=(0,o.jsxs)("div",{className:"relative group codehilite-wrapper",ref:n,children:[e,i]}),t[1]=e,t[2]=a),a};const nt=({html:r,additionalReplacements:t=[],alwaysSanitizeHtml:e=!0})=>(0,o.jsx)(it,{html:r,alwaysSanitizeHtml:e,additionalReplacements:t});var it=({html:r,additionalReplacements:t=[],alwaysSanitizeHtml:e})=>{let n=B();return at({html:(0,c.useMemo)(()=>e||n?L(r):r,[r,e,n]),additionalReplacements:t})};function at({html:r,additionalReplacements:t=[]}){let e=[Z,K,Q,...t],n=[Y,X,tt,et,G,J];return I(r,{replace:(i,a)=>{for(let s of e){let l=s(i,a);if(l)return l}return i},transform:(i,a,s)=>{for(let l of n){let f=l(i,a,s);if(f)return f}return i}})}export{nt as t};
|