@marimo-team/frontend 0.21.2-dev12 → 0.21.2-dev13

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.
@@ -35,4 +35,4 @@ ${a}
35
35
  stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="lucide lucide-rotate-ccw">
36
36
  <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8" />
37
37
  <path d="M3 3v5h5" />
38
- </svg>`},e[7]=g):g=e[7];let f;e[8]===p?f=e[9]:(f=[{name:"reset",title:"Reset state",icon:g,click:p}],e[8]=p,e[9]=f);let y;e[10]!==h||e[11]!==f?(y={displaylogo:!1,modeBarButtonsToAdd:f,...h},e[10]=h,e[11]=f,e[12]=y):y=e[12];let b=y,w;e[13]===n?w=e[14]:(w=E=>{if("dragmode"in E&&n(M=>({...M,dragmode:E.dragmode})),Object.keys(E).some(HN)){let M={};Object.entries(E).forEach(P=>{let[O,z]=P;bE(M,O,z)}),n(P=>({...P,...M}))}},e[13]=n,e[14]=w);let D;e[15]===n?D=e[16]:(D=()=>{n(WN)},e[15]=n,e[16]=D);let j=Ue(D),k;e[17]===n?k=e[18]:(k=E=>{E&&n(M=>({...M,points:E.points.map(UN)}))},e[17]=n,e[18]=k);let N=Ue(k),S;e[19]===n?S=e[20]:(S=E=>{E&&n(M=>({...M,points:E.points.map(KN)}))},e[19]=n,e[20]=S);let v=Ue(S),C;e[21]===n?C=e[22]:(C=E=>{E&&E.points.some(ZN)&&n(M=>({...M,points:nv(E.points),indices:E.points.map(qN)}))},e[21]=n,e[22]=C);let R=Ue(C),_;e[23]===n?_=e[24]:(_=E=>{E&&n(M=>({...M,selections:"selections"in E?E.selections:[],points:nv(E.points),indices:E.points.map(YN),range:E.range}))},e[23]=n,e[24]=_);let I=Ue(_),V=d.frames??void 0,T=Ue(GN),A;return e[25]!==d||e[26]!==u||e[27]!==b||e[28]!==N||e[29]!==v||e[30]!==R||e[31]!==I||e[32]!==V||e[33]!==T||e[34]!==w||e[35]!==j?(A=(0,s.jsx)($N,{...d,layout:u,onRelayout:w,onDeselect:j,onTreemapClick:N,onSunburstClick:v,config:b,onClick:R,onSelected:I,className:"w-full",useResizeHandler:!0,frames:V,onError:T}),e[25]=d,e[26]=u,e[27]=b,e[28]=N,e[29]=v,e[30]=R,e[31]=I,e[32]=V,e[33]=T,e[34]=w,e[35]=j,e[36]=A):A=e[36],A});rv.displayName="PlotlyComponent";var BN=["x","y","z","lat","lon","curveNumber","pointNumber","pointNumbers","pointIndex"];function nv(t){if(!t)return[];let e;return t.map(a=>{var i;let r=vl(a,BN),n=Array.isArray(a.data.hovertemplate)?a.data.hovertemplate[0]:a.data.hovertemplate;return!n||((i=a.data)==null?void 0:i.type)==="heatmap"?r:(e=e?e.update(n):tv(n),{...r,...e.parse(a)})})}function HN(t){return t.includes("xaxis")||t.includes("yaxis")}function WN(t){return{...t,selections:Ra.EMPTY,points:Ra.EMPTY,indices:Ra.EMPTY,range:void 0}}function UN(t){return vl(t,LN)}function KN(t){return vl(t,av)}function ZN(t){var e;return((e=t.data)==null?void 0:e.type)==="heatmap"}function qN(t){return t.pointIndex}function YN(t){return t.pointIndex}function GN(t){se.error("PlotlyPlugin: ",t)}var JN=ee(),QN=class{constructor(){K(this,"tagName","marimo-radio");K(this,"validator",$({initialValue:F().nullable(),inline:W().default(!1),label:F().nullable(),options:Q(F()),disabled:W().optional()}))}render(t){return(0,s.jsx)(XN,{...t.data,value:t.value,setValue:t.setValue})}};const XN=t=>{let e=(0,JN.c)(18),a=(0,x.useId)(),r=t.label,n=t.inline?"left":"top",i=t.value??"",o=t.setValue,l=t.inline&&"grid-flow-col gap-4",d;e[0]===l?d=e[1]:(d=Y(l),e[0]=l,e[1]=d);let u=t.disabled,c;if(e[2]!==a||e[3]!==t.options){let h;e[5]===a?h=e[6]:(h=(g,f)=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(P6,{value:g,id:`${a}-${f.toString()}`}),(0,s.jsx)(Ti,{htmlFor:`${a}-${f.toString()}`,className:"text-sm font-normal",children:g})]},f),e[5]=a,e[6]=h),c=t.options.map(h),e[2]=a,e[3]=t.options,e[4]=c}else c=e[4];let m;e[7]!==t.disabled||e[8]!==t.setValue||e[9]!==i||e[10]!==d||e[11]!==c?(m=(0,s.jsx)(A6,{"data-testid":"marimo-plugin-radio",value:i,onValueChange:o,className:d,"aria-label":"Radio Group",disabled:u,children:c}),e[7]=t.disabled,e[8]=t.setValue,e[9]=i,e[10]=d,e[11]=c,e[12]=m):m=e[12];let p;return e[13]!==a||e[14]!==t.label||e[15]!==n||e[16]!==m?(p=(0,s.jsx)(Ke,{label:r,id:a,align:n,children:m}),e[13]=a,e[14]=t.label,e[15]=n,e[16]=m,e[17]=p):p=e[17],p};var e_=ee(),iv=x.forwardRef((t,e)=>{let a=(0,e_.c)(35),{className:r,valueMap:n,...i}=t,[o,l]=Qv(!1),{locale:d}=at(),u=nx,c;a[0]===r?c=a[1]:(c=Y("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",r),a[0]=r,a[1]=c);let m;a[2]===Symbol.for("react.memo_cache_sentinel")?(m=Y("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),a[2]=m):m=a[2];let p;a[3]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Md,{"data-testid":"track",className:m,children:(0,s.jsx)(Fd,{"data-testid":"range",className:Y("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50")})}),a[3]=p):p=a[3];let h;a[4]!==l.setFalse||a[5]!==l.setTrue?(h=(0,s.jsx)(Ic,{asChild:!0,children:(0,s.jsx)(No,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:l.setTrue,onBlur:l.setFalse,onMouseEnter:l.setTrue,onMouseLeave:l.setFalse})}),a[4]=l.setFalse,a[5]=l.setTrue,a[6]=h):h=a[6];let g=i.value!=null&&i.value.length===2&&(0,s.jsx)(Ac,{children:bn(n(i.value[0]),{locale:d})},i.value[0]),f;a[7]===g?f=a[8]:(f=(0,s.jsx)(Pc,{children:g}),a[7]=g,a[8]=f);let y;a[9]!==o||a[10]!==h||a[11]!==f?(y=(0,s.jsx)(zt,{children:(0,s.jsxs)(Tc,{delayDuration:0,open:o,children:[h,f]})}),a[9]=o,a[10]=h,a[11]=f,a[12]=y):y=a[12];let b=zt,w=Tc,D;a[13]!==l.setFalse||a[14]!==l.setTrue?(D=(0,s.jsx)(Ic,{asChild:!0,children:(0,s.jsx)(No,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:l.setTrue,onBlur:l.setFalse,onMouseEnter:l.setTrue,onMouseLeave:l.setFalse})}),a[13]=l.setFalse,a[14]=l.setTrue,a[15]=D):D=a[15];let j=Pc,k=i.value!=null&&i.value.length===2&&(0,s.jsx)(Ac,{children:bn(n(i.value[1]),{locale:d})},i.value[1]),N;a[16]!==j||a[17]!==k?(N=(0,s.jsx)(j,{children:k}),a[16]=j,a[17]=k,a[18]=N):N=a[18];let S;a[19]!==w||a[20]!==o||a[21]!==D||a[22]!==N?(S=(0,s.jsxs)(w,{delayDuration:0,open:o,children:[D,N]}),a[19]=w,a[20]=o,a[21]=D,a[22]=N,a[23]=S):S=a[23];let v;a[24]!==b||a[25]!==S?(v=(0,s.jsx)(b,{children:S}),a[24]=b,a[25]=S,a[26]=v):v=a[26];let C;return a[27]!==i||a[28]!==e||a[29]!==u.Root||a[30]!==v||a[31]!==c||a[32]!==p||a[33]!==y?(C=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[p,y,v]}),a[27]=i,a[28]=e,a[29]=u.Root,a[30]=v,a[31]=c,a[32]=p,a[33]=y,a[34]=C):C=a[34],C});iv.displayName=Pd.displayName;var t_=ee(),a_=class{constructor(){K(this,"tagName","marimo-range-slider");K(this,"validator",$({initialValue:Q(H()),label:F().nullable(),start:H(),stop:H(),step:H().optional(),steps:Q(H()).nullable(),debounce:W().default(!1),orientation:be(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(r_,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},r_=t=>{let e=(0,t_.c)(50),{label:a,setValue:r,value:n,start:i,stop:o,step:l,debounce:d,orientation:u,showValue:c,fullWidth:m,disabled:p,valueMap:h}=t,g=(0,x.useId)(),{locale:f}=at(),[y,b]=(0,x.useState)(n),w,D;e[0]===n?(w=e[1],D=e[2]):(w=()=>{b(n)},D=[n],e[0]=n,e[1]=w,e[2]=D),(0,x.useEffect)(w,D);let j=u==="horizontal"?"left":"top",k=m&&"my-1 w-full",N;e[3]===k?N=e[4]:(N=Y(k),e[3]=k,e[4]=N);let S=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",v=m&&"w-full",C;e[5]!==S||e[6]!==v?(C=Y("flex items-center gap-2",S,v),e[5]=S,e[6]=v,e[7]=C):C=e[7];let R=!m&&"data-[orientation=horizontal]:w-36 ",_;e[8]===R?_=e[9]:(_=Y("relative flex items-center select-none",R,"data-[orientation=vertical]:h-36"),e[8]=R,e[9]=_);let I,V;e[10]!==d||e[11]!==r?(I=z=>{b(z),d||r(z)},V=z=>{d&&r(z)},e[10]=d,e[11]=r,e[12]=I,e[13]=V):(I=e[12],V=e[13]);let T,A;e[14]!==d||e[15]!==y||e[16]!==r||e[17]!==n?(T=()=>{d&&!fl(y,n)&&r(y)},A=()=>{d&&!fl(y,n)&&r(y)},e[14]=d,e[15]=y,e[16]=r,e[17]=n,e[18]=T,e[19]=A):(T=e[18],A=e[19]);let E;e[20]!==p||e[21]!==g||e[22]!==y||e[23]!==u||e[24]!==i||e[25]!==l||e[26]!==o||e[27]!==_||e[28]!==I||e[29]!==V||e[30]!==T||e[31]!==A||e[32]!==h?(E=(0,s.jsx)(iv,{id:g,className:_,value:y,min:i,max:o,step:l,orientation:u,disabled:p,onValueChange:I,onValueCommit:V,onPointerUp:T,onMouseUp:A,valueMap:h}),e[20]=p,e[21]=g,e[22]=y,e[23]=u,e[24]=i,e[25]=l,e[26]=o,e[27]=_,e[28]=I,e[29]=V,e[30]=T,e[31]=A,e[32]=h,e[33]=E):E=e[33];let M;e[34]!==y||e[35]!==f||e[36]!==c||e[37]!==h?(M=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${bn(h(y[0]),{locale:f})}, ${bn(h(y[1]),{locale:f})}`}),e[34]=y,e[35]=f,e[36]=c,e[37]=h,e[38]=M):M=e[38];let P;e[39]!==E||e[40]!==M||e[41]!==C?(P=(0,s.jsxs)("div",{className:C,children:[E,M]}),e[39]=E,e[40]=M,e[41]=C,e[42]=P):P=e[42];let O;return e[43]!==m||e[44]!==g||e[45]!==a||e[46]!==P||e[47]!==j||e[48]!==N?(O=(0,s.jsx)(Ke,{label:a,id:g,align:j,className:N,fullWidth:m,children:P}),e[43]=m,e[44]=g,e[45]=a,e[46]=P,e[47]=j,e[48]=N,e[49]=O):O=e[49],O},Ku=_a(Qu(((t,e)=>{e.exports=n;var a={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},r={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function n(u,c,m){m=Object.assign({},a,m||{}),(typeof u=="number"||u.match(/^[-+]?[0-9.]+$/g))&&(u=parseInt(u)+"ms");let p=0,h=i(m),g=u.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(g===null)throw Error(`The value [${u}] could not be parsed by timestring`);return g.forEach(f=>{let y=f.match(/[0-9.]+/g)[0],b=f.match(/[a-z]+/g)[0];p+=l(y,b,h)}),c?d(p,c,h):p}function i(u){let c={ms:.001,s:1,m:60,h:3600};return c.d=u.hoursPerDay*c.h,c.w=u.daysPerWeek*c.d,c.mth=u.daysPerYear/u.monthsPerYear*c.d,c.y=u.daysPerYear*c.d,c}function o(u){for(let c of Object.keys(r))if(r[c].indexOf(u)>-1)return c;throw Error(`The unit [${u}] is not supported by timestring`)}function l(u,c,m){return u*m[o(c)]}function d(u,c,m){return u/m[o(c)]}}))(),1),ci=.1,ov=F().superRefine((t,e)=>{try{(0,Ku.default)(t)<ci&&e.addIssue({code:Dv.custom,message:`Must be greater than ${ci} seconds.`});return}catch{e.addIssue({code:Dv.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),n_=class{constructor(){K(this,"tagName","marimo-refresh");K(this,"validator",$({options:Q(Re([ov,H().min(ci)])).default([]),defaultInterval:Re([ov,H().min(ci)]).optional(),label:F().nullable()}))}render(t){return(0,s.jsx)(o_,{...t})}},nl="off",i_=0,o_=({setValue:t,data:e})=>{let[a,r]=(0,x.useState)(e.defaultInterval??nl);(0,x.useEffect)(()=>{r(e.defaultInterval??nl)},[e.defaultInterval]);let[n,i]=(0,x.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${a} (${i_++})`),setTimeout(()=>i(!1),500)});(0,x.useEffect)(()=>{if(a===nl)return;let u=typeof a=="number"?a:/[a-z]/.test(a)?(0,Ku.default)(a):(0,Ku.default)(`${a}s`);u=Math.max(u,ci);let c=setInterval(o,u*1e3);return()=>clearInterval(c)},[a,o]);let l="shadow-none! hover:shadow-none! focus:shadow-none! active:shadow-none!",d=e.options.length>0;return(0,s.jsx)(Ke,{label:e.label,children:(0,s.jsxs)("span",{className:"inline-flex items-center text-secondary-foreground rounded shadow-sm-solid",children:[(0,s.jsx)(Se,{"data-testid":"marimo-plugin-refresh-button",variant:"secondary",size:"icon",className:Y(l,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,s.jsx)(H6,{className:Y("w-3.5 h-3.5",n&&"animate-spin")})}),(0,s.jsxs)(Ec,{"data-testid":"marimo-plugin-refresh-select",onChange:u=>{r(u.target.value)},value:a,className:Y(l,"border mb-0 bg-secondary rounded rounded-tl-none rounded-bl-none hover:bg-secondary/60",!d&&"hidden"),children:[(0,s.jsx)("option",{value:nl,children:"off"}),e.options.map(u=>(0,s.jsx)("option",{value:u,children:typeof u=="number"?`${u}s`:u},u))]})]})})},l_=ee(),s_=class{constructor(){K(this,"tagName","marimo-slider");K(this,"validator",$({initialValue:H(),label:F().nullable(),start:H(),stop:H(),step:H().optional(),steps:Q(H()).nullable(),debounce:W().default(!1),orientation:be(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),includeInput:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(d_,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},d_=t=>{let e=(0,l_.c)(55),{label:a,setValue:r,value:n,start:i,stop:o,step:l,debounce:d,orientation:u,showValue:c,fullWidth:m,valueMap:p,includeInput:h,disabled:g}=t,f=(0,x.useId)(),{locale:y}=at(),[b,w]=(0,x.useState)(n),D,j;e[0]===n?(D=e[1],j=e[2]):(D=()=>{w(n)},j=[n],e[0]=n,e[1]=D,e[2]=j),(0,x.useEffect)(D,j);let k=u==="horizontal"?"left":"top",N=m&&"my-1 w-full",S;e[3]===N?S=e[4]:(S=Y(N),e[3]=N,e[4]=S);let v=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",C;e[5]===v?C=e[6]:(C=Y("flex items-center gap-2",v),e[5]=v,e[6]=C);let R=!m&&"data-[orientation=horizontal]:w-36 ",_;e[7]===R?_=e[8]:(_=Y("relative flex items-center select-none",R,"data-[orientation=vertical]:h-36"),e[7]=R,e[8]=_);let I;e[9]===b?I=e[10]:(I=[b],e[9]=b,e[10]=I);let V,T;e[11]!==d||e[12]!==r?(V=z=>{let[L]=z;w(L),d||r(L)},T=z=>{let[L]=z;d&&r(L)},e[11]=d,e[12]=r,e[13]=V,e[14]=T):(V=e[13],T=e[14]);let A;e[15]!==g||e[16]!==f||e[17]!==u||e[18]!==i||e[19]!==l||e[20]!==o||e[21]!==I||e[22]!==V||e[23]!==T||e[24]!==_||e[25]!==p?(A=(0,s.jsx)(zd,{id:f,className:_,value:I,min:i,max:o,step:l,orientation:u,onValueChange:V,onValueCommit:T,valueMap:p,disabled:g}),e[15]=g,e[16]=f,e[17]=u,e[18]=i,e[19]=l,e[20]=o,e[21]=I,e[22]=V,e[23]=T,e[24]=_,e[25]=p,e[26]=A):A=e[26];let E;e[27]!==b||e[28]!==y||e[29]!==c||e[30]!==p?(E=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:bn(p(b),{locale:y})}),e[27]=b,e[28]=y,e[29]=c,e[30]=p,e[31]=E):E=e[31];let M;e[32]!==d||e[33]!==g||e[34]!==h||e[35]!==b||e[36]!==a||e[37]!==r||e[38]!==i||e[39]!==l||e[40]!==o||e[41]!==p?(M=h&&(0,s.jsx)(Cc,{value:p(b),onChange:z=>{(z==null||Number.isNaN(z))&&(z=Number(i)),w(z),d||r(z)},minValue:i,maxValue:o,step:l,className:"w-24","aria-label":`${a||"Slider"} value input`,isDisabled:g}),e[32]=d,e[33]=g,e[34]=h,e[35]=b,e[36]=a,e[37]=r,e[38]=i,e[39]=l,e[40]=o,e[41]=p,e[42]=M):M=e[42];let P;e[43]!==A||e[44]!==E||e[45]!==M||e[46]!==C?(P=(0,s.jsxs)("div",{className:C,children:[A,E,M]}),e[43]=A,e[44]=E,e[45]=M,e[46]=C,e[47]=P):P=e[47];let O;return e[48]!==m||e[49]!==f||e[50]!==a||e[51]!==P||e[52]!==k||e[53]!==S?(O=(0,s.jsx)(Ke,{label:a,id:f,align:k,fullWidth:m,className:S,children:P}),e[48]=m,e[49]=f,e[50]=a,e[51]=P,e[52]=k,e[53]=S,e[54]=O):O=e[54],O},u_=ee(),c_=class{constructor(){K(this,"tagName","marimo-switch");K(this,"validator",$({initialValue:W(),label:F().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(m_,{...t})}},m_=t=>{let e=(0,u_.c)(9),{value:a,setValue:r,data:n}=t,i=(0,x.useId)(),o;e[0]!==n.disabled||e[1]!==i||e[2]!==r||e[3]!==a?(o=(0,s.jsx)(iT,{"data-testid":"marimo-plugin-switch",checked:a,onCheckedChange:r,id:i,className:"data-[state=unchecked]:hover:bg-input/80 mb-0",disabled:n.disabled}),e[0]=n.disabled,e[1]=i,e[2]=r,e[3]=a,e[4]=o):o=e[4];let l;return e[5]!==n.label||e[6]!==i||e[7]!==o?(l=(0,s.jsx)(Ke,{label:n.label,align:"right",id:i,labelClassName:"ml-1",children:o}),e[5]=n.label,e[6]=i,e[7]=o,e[8]=l):l=e[8],l},p_=ee(),h_=class{constructor(){K(this,"tagName","marimo-tabs");K(this,"validator",$({tabs:Q(F())}))}render(t){return(0,s.jsx)(f_,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},f_=t=>{let e=(0,p_.c)(13),{tabs:a,value:r,setValue:n,children:i}=t,[o,l]=x.useState(r||"0"),d;e[0]===n?d=e[1]:(d=g=>{l(g),n(g)},e[0]=n,e[1]=d);let u=d;r!==o&&r&&l(r);let c;e[2]===a?c=e[3]:(c=a.map(g_),e[2]=a,e[3]=c);let m;e[4]===c?m=e[5]:(m=(0,s.jsx)(Ri,{children:c}),e[4]=c,e[5]=m);let p;e[6]===i?p=e[7]:(p=x.Children.map(i,x_),e[6]=i,e[7]=p);let h;return e[8]!==u||e[9]!==o||e[10]!==m||e[11]!==p?(h=(0,s.jsxs)(Ei,{value:o,onValueChange:u,children:[m,p]}),e[8]=u,e[9]=o,e[10]=m,e[11]=p,e[12]=h):h=e[12],h};function g_(t,e){return(0,s.jsx)(ya,{value:e.toString(),children:Be({html:t})},e)}function x_(t,e){return(0,s.jsx)(va,{value:e.toString(),children:t})}var v_=ee(),y_=class{constructor(){K(this,"tagName","marimo-text-area");K(this,"validator",$({initialValue:F(),placeholder:F(),label:F().nullable(),maxLength:H().optional(),minLength:H().optional(),disabled:W().optional(),debounce:wv(Re([W(),H()])),rows:H().default(4),fullWidth:W().default(!1)}))}render(t){return(0,s.jsx)(b_,{...t.data,value:t.value,setValue:t.setValue})}},b_=t=>{let e=(0,v_.c)(57),a;e[0]!==t.maxLength||e[1]!==t.value?(a=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[0]=t.maxLength,e[1]=t.value,e[2]=a):a=e[2];let r=a;if(t.debounce===!0){let m=t.label,p=t.fullWidth,h;e[3]===t.fullWidth?h=e[4]:(h=Y("font-code",{"w-full":t.fullWidth}),e[3]=t.fullWidth,e[4]=h);let g=t.minLength!=null&&t.minLength>0,f;e[5]!==r||e[6]!==t.disabled||e[7]!==t.maxLength||e[8]!==t.minLength||e[9]!==t.placeholder||e[10]!==t.rows||e[11]!==t.setValue||e[12]!==t.value||e[13]!==h||e[14]!==g?(f=(0,s.jsx)(sA,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder}),e[5]=r,e[6]=t.disabled,e[7]=t.maxLength,e[8]=t.minLength,e[9]=t.placeholder,e[10]=t.rows,e[11]=t.setValue,e[12]=t.value,e[13]=h,e[14]=g,e[15]=f):f=e[15];let y;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==f?(y=(0,s.jsx)(Ke,{label:m,align:"top",fullWidth:p,children:f}),e[16]=t.fullWidth,e[17]=t.label,e[18]=f,e[19]=y):y=e[19],y}if(typeof t.debounce=="number"){let m=t.label,p=t.fullWidth,h;e[20]===t.fullWidth?h=e[21]:(h=Y("font-code",{"w-full":t.fullWidth}),e[20]=t.fullWidth,e[21]=h);let g=t.minLength!=null&&t.minLength>0,f;e[22]!==r||e[23]!==t.debounce||e[24]!==t.disabled||e[25]!==t.maxLength||e[26]!==t.minLength||e[27]!==t.placeholder||e[28]!==t.rows||e[29]!==t.setValue||e[30]!==t.value||e[31]!==h||e[32]!==g?(f=(0,s.jsx)(cA,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder,delay:t.debounce}),e[22]=r,e[23]=t.debounce,e[24]=t.disabled,e[25]=t.maxLength,e[26]=t.minLength,e[27]=t.placeholder,e[28]=t.rows,e[29]=t.setValue,e[30]=t.value,e[31]=h,e[32]=g,e[33]=f):f=e[33];let y;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==f?(y=(0,s.jsx)(Ke,{label:m,align:"top",fullWidth:p,children:f}),e[34]=t.fullWidth,e[35]=t.label,e[36]=f,e[37]=y):y=e[37],y}let n=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=Y("font-code",{"w-full":t.fullWidth}),e[38]=t.fullWidth,e[39]=o);let l=t.minLength!=null&&t.minLength>0,d;e[40]===t?d=e[41]:(d=m=>t.setValue(m.target.value),e[40]=t,e[41]=d);let u;e[42]!==r||e[43]!==t.disabled||e[44]!==t.maxLength||e[45]!==t.minLength||e[46]!==t.placeholder||e[47]!==t.rows||e[48]!==t.value||e[49]!==o||e[50]!==l||e[51]!==d?(u=(0,s.jsx)(lA,{className:o,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:l,disabled:t.disabled,bottomAdornment:r,value:t.value,onInput:d,placeholder:t.placeholder}),e[42]=r,e[43]=t.disabled,e[44]=t.maxLength,e[45]=t.minLength,e[46]=t.placeholder,e[47]=t.rows,e[48]=t.value,e[49]=o,e[50]=l,e[51]=d,e[52]=u):u=e[52];let c;return e[53]!==t.fullWidth||e[54]!==t.label||e[55]!==u?(c=(0,s.jsx)(Ke,{label:n,align:"top",fullWidth:i,children:u}),e[53]=t.fullWidth,e[54]=t.label,e[55]=u,e[56]=c):c=e[56],c},w_=ee(),D_=class{constructor(){K(this,"tagName","marimo-text");K(this,"validator",$({initialValue:F(),placeholder:F(),label:F().nullable(),kind:be(["text","password","email","url"]).default("text"),maxLength:H().optional(),minLength:H().optional(),fullWidth:W().default(!1),disabled:W().optional(),debounce:wv(Re([W(),H()]))}))}render(t){return(0,s.jsx)(j_,{...t.data,value:t.value,setValue:t.setValue})}},j_=t=>{let e=(0,w_.c)(66),[a,r]=(0,x.useState)(t.value),n=a??t.value,i=C_(t.kind,n),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={text:null,password:(0,s.jsx)(L6,{size:16}),email:(0,s.jsx)(r6,{size:16}),url:(0,s.jsx)(M6,{size:16})},e[0]=o):o=e[0];let l=o,d;e[1]!==t.maxLength||e[2]!==t.value?(d=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[1]=t.maxLength,e[2]=t.value,e[3]=d):d=e[3];let u=d;if(t.debounce===!0){let C=t.label,R=t.fullWidth,_=t.kind,I=l[t.kind],V=t.placeholder,T=t.maxLength,A=t.minLength,E=t.minLength!=null&&t.minLength>0,M=t.disabled,P=!i,O;e[4]!==t.fullWidth||e[5]!==P?(O=Y({"border-destructive":P,"w-full":t.fullWidth}),e[4]=t.fullWidth,e[5]=P,e[6]=O):O=e[6];let z;e[7]!==u||e[8]!==t.disabled||e[9]!==t.kind||e[10]!==t.maxLength||e[11]!==t.minLength||e[12]!==t.placeholder||e[13]!==t.setValue||e[14]!==t.value||e[15]!==O||e[16]!==I||e[17]!==E?(z=(0,s.jsx)(X6,{"data-testid":"marimo-plugin-text-input",type:_,icon:I,placeholder:V,maxLength:T,minLength:A,required:E,disabled:M,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue}),e[7]=u,e[8]=t.disabled,e[9]=t.kind,e[10]=t.maxLength,e[11]=t.minLength,e[12]=t.placeholder,e[13]=t.setValue,e[14]=t.value,e[15]=O,e[16]=I,e[17]=E,e[18]=z):z=e[18];let L;return e[19]!==t.fullWidth||e[20]!==t.label||e[21]!==z?(L=(0,s.jsx)(Ke,{label:C,fullWidth:R,children:z}),e[19]=t.fullWidth,e[20]=t.label,e[21]=z,e[22]=L):L=e[22],L}if(typeof t.debounce=="number"){let C=t.label,R=t.fullWidth,_=t.kind,I=l[t.kind],V=t.placeholder,T=t.maxLength,A=t.minLength,E=t.minLength!=null&&t.minLength>0,M=t.disabled,P=!i,O;e[23]!==t.fullWidth||e[24]!==P?(O=Y({"border-destructive":P,"w-full":t.fullWidth}),e[23]=t.fullWidth,e[24]=P,e[25]=O):O=e[25];let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=X=>r(X.currentTarget.value),e[26]=z):z=e[26];let L;e[27]!==u||e[28]!==t.debounce||e[29]!==t.disabled||e[30]!==t.kind||e[31]!==t.maxLength||e[32]!==t.minLength||e[33]!==t.placeholder||e[34]!==t.setValue||e[35]!==t.value||e[36]!==O||e[37]!==I||e[38]!==E?(L=(0,s.jsx)(Sc,{"data-testid":"marimo-plugin-text-input",type:_,icon:I,placeholder:V,maxLength:T,minLength:A,required:E,disabled:M,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue,onBlur:z,delay:t.debounce}),e[27]=u,e[28]=t.debounce,e[29]=t.disabled,e[30]=t.kind,e[31]=t.maxLength,e[32]=t.minLength,e[33]=t.placeholder,e[34]=t.setValue,e[35]=t.value,e[36]=O,e[37]=I,e[38]=E,e[39]=L):L=e[39];let J;return e[40]!==t.fullWidth||e[41]!==t.label||e[42]!==L?(J=(0,s.jsx)(Ke,{label:C,fullWidth:R,children:L}),e[40]=t.fullWidth,e[41]=t.label,e[42]=L,e[43]=J):J=e[43],J}let c=t.label,m=t.fullWidth,p=t.kind,h=l[t.kind],g=t.placeholder,f=t.maxLength,y=t.minLength,b=t.minLength!=null&&t.minLength>0,w=t.disabled,D=!i,j;e[44]!==t.fullWidth||e[45]!==D?(j=Y({"border-destructive":D,"w-full":t.fullWidth}),e[44]=t.fullWidth,e[45]=D,e[46]=j):j=e[46];let k;e[47]===t?k=e[48]:(k=C=>t.setValue(C.currentTarget.value),e[47]=t,e[48]=k);let N;e[49]===Symbol.for("react.memo_cache_sentinel")?(N=C=>r(C.currentTarget.value),e[49]=N):N=e[49];let S;e[50]!==u||e[51]!==t.disabled||e[52]!==t.kind||e[53]!==t.maxLength||e[54]!==t.minLength||e[55]!==t.placeholder||e[56]!==t.value||e[57]!==j||e[58]!==k||e[59]!==h||e[60]!==b?(S=(0,s.jsx)(kc,{"data-testid":"marimo-plugin-text-input",type:p,icon:h,placeholder:g,maxLength:f,minLength:y,required:b,disabled:w,className:j,endAdornment:u,value:t.value,onInput:k,onBlur:N}),e[50]=u,e[51]=t.disabled,e[52]=t.kind,e[53]=t.maxLength,e[54]=t.minLength,e[55]=t.placeholder,e[56]=t.value,e[57]=j,e[58]=k,e[59]=h,e[60]=b,e[61]=S):S=e[61];let v;return e[62]!==t.fullWidth||e[63]!==t.label||e[64]!==S?(v=(0,s.jsx)(Ke,{label:c,fullWidth:m,children:S}),e[62]=t.fullWidth,e[63]=t.label,e[64]=S,e[65]=v):v=e[65],v};function C_(t,e){if(!e)return!0;switch(t){case"email":return F().email().safeParse(e).success;case"url":return F().url().safeParse(e).success;default:return!0}}var k_=x.lazy(()=>Rt(()=>import("./vega-component-CRbeDmeM.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([356,136,13,8,9,10,137,138,139,140,27,78,6,7,11,12,14,15,22,18,37,36,35,24,25,26,28,29,30,31,33,97,357,98,81,99,159,47,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,62,20,122,65,66,42,67,358,359]),import.meta.url)),S_=class{constructor(){K(this,"tagName","marimo-vega");K(this,"validator",$({spec:$({}).passthrough().transform(t=>t),chartSelection:Re([W(),Ze("point"),Ze("interval")]).default(!0),fieldSelection:Re([W(),Q(F())]).default(!0),embedOptions:$({}).passthrough().default({})}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(k_,{value:t.value,setValue:t.setValue,...t.data})})}},N_=ee(),__=class{constructor(){K(this,"tagName","marimo-accordion");K(this,"validator",$({labels:Q(F()),multiple:W()}))}render(t){return(0,s.jsx)(R_,{...t.data,children:t.children})}},R_=t=>{let e=(0,N_.c)(8),{labels:a,multiple:r,children:n}=t,i=r?"multiple":"single",o;if(e[0]!==n||e[1]!==a){let d;e[3]===a?d=e[4]:(d=(u,c)=>(0,s.jsxs)($y,{value:c.toString(),children:[(0,s.jsx)(Oy,{className:"py-2 text-md",children:Be({html:a[c]})}),(0,s.jsx)(Ly,{className:"text-md",children:u})]},c),e[3]=a,e[4]=d),o=x.Children.map(n,d),e[0]=n,e[1]=a,e[2]=o}else o=e[2];let l;return e[5]!==o||e[6]!==i?(l=(0,s.jsx)(Fc,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=l):l=e[7],l};const E_=kl("border rounded-lg p-12 mt-12 mb-12 text-foreground shadow-[4px_4px_0px_0px]",{variants:{kind:{neutral:"border-(--slate-9) shadow-(color:--slate-8)",alert:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",info:"bg-(--sky-1) border-(--sky-8) shadow-(color:--sky-7)",danger:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",warn:"bg-(--amber-2) border-(--amber-9) shadow-(color:--amber-8)",success:"bg-(--grass-2) border-(--grass-9) shadow-(color:--grass-8)"}},defaultVariants:{kind:"neutral"}});var T_=ee();const lv=(0,x.memo)(t=>{let e=(0,T_.c)(7),{html:a,kind:r}=t,n;e[0]===r?n=e[1]:(n=E_({kind:r}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=(0,s.jsx)(pT,{html:a,alwaysSanitizeHtml:!0}),e[2]=a,e[3]=i);let o;return e[4]!==n||e[5]!==i?(o=(0,s.jsx)("div",{className:n,children:i}),e[4]=n,e[5]=i,e[6]=o):o=e[6],o});lv.displayName="CalloutOutput";var A_=class{constructor(){K(this,"tagName","marimo-callout-output");K(this,"validator",$({html:F(),kind:Q0}))}render({data:t}){return(0,s.jsx)(lv,{html:t.html,kind:t.kind})}},I_=":root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}",P_=".swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}",M_=".swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}",F_='.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}',z_=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',V_=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px;& .swiper-button-next,& .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0;&.swiper-button-disabled{opacity:0}&:hover:not(.swiper-button-disabled){opacity:1}}}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:host:host{display:initial}.mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex;& .output{max-width:100%;width:unset;margin:auto 0}&>:only-child>.output:only-child{flex:1}& div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important;@media (width>=500px){min-width:350px}}}',O_=class{constructor(){K(this,"tagName","marimo-carousel");K(this,"validator",$({index:F().nullish(),height:Re([F(),H()]).nullish()}));K(this,"cssStyles",[z_,F_,I_,P_,M_,V_])}render(t){return(0,s.jsx)($_,{...t.data,wrapAround:!0,children:t.children})}},$_=x.lazy(()=>Rt(()=>import("./slides-component-Brm_TS4x.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,12,13,8,9,10,6,7,11,158,49,48,28,361]),import.meta.url));const L_=Ht("marimo-download").withData($({data:F(),disabled:W().default(!1),filename:F().nullish(),label:F().nullish(),lazy:W().default(!1)})).withFunctions({load:st.input($({})).output($({data:F(),filename:F().nullish()}))}).renderer(t=>(0,s.jsx)(B_,{data:t.data,...t.functions}));var B_=({data:t,load:e})=>{let[a,r]=(0,x.useState)(!1),n=async l=>{if(t.lazy&&!t.disabled){l.preventDefault(),r(!0);try{let d=await e({});x6(d.data,d.filename||t.filename||"download")}catch(d){na({title:"Failed to download",description:"Please try again."}),se.error("Failed to download:",d)}finally{r(!1)}}},i=a?Rl:_6,o=t.label?Be({html:t.label}):"Download";return(0,s.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:n,className:Ja({variant:"secondary",disabled:t.disabled||a}),children:[(0,s.jsx)(i,{className:Y("w-3 h-3",t.label&&"mr-2",a&&"animate-spin")}),o]})},H_=x.lazy(()=>Rt(()=>import("./ImageComparisonComponent-DvDPDgw3.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([362,8,9,10,11]),import.meta.url)),W_=class{constructor(){K(this,"tagName","marimo-image-comparison");K(this,"validator",$({beforeSrc:F(),afterSrc:F(),value:H().min(0).max(100).default(50),direction:be(["horizontal","vertical"]).default("horizontal"),width:F().optional(),height:F().optional()}))}render(t){return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading image comparison..."}),children:(0,s.jsx)(H_,{...t.data})})}},U_=class{constructor(){K(this,"tagName","marimo-json-output");K(this,"validator",$({name:F().nullish(),jsonData:Za(),valueTypes:be(["json","python"]).default("python")}))}render({data:t,host:e}){let a=t.name===void 0?!1:t.name||"";return(0,s.jsx)(Lv,{container:e.shadowRoot,children:(0,s.jsx)(Wv,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:a})})}},K_=ee();const Z_=Ht("marimo-lazy").withData($({showLoadingIndicator:W().default(!1)})).withFunctions({load:st.input($({})).output($({html:F()}))}).renderer(t=>(0,s.jsx)(q_,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var q_=t=>{let e=(0,K_.c)(15),{load:a,showLoadingIndicator:r,value:n,setValue:i}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={threshold:0,root:null,rootMargin:"0px"},e[0]=o):o=e[0];let[l,d]=xT(o);d!=null&&d.isIntersecting&&!n&&i(!0);let u;e[1]!==a||e[2]!==n?(u=y=>n?a({}):(y.previous(),Promise.resolve(void 0)),e[1]=a,e[2]=n,e[3]=u):u=e[3];let c;e[4]===n?c=e[5]:(c=[n],e[4]=n,e[5]=c);let{data:m,error:p,isPending:h}=Ot(u,c);if(p){let y;return e[6]===p?y=e[7]:(y=(0,s.jsx)(wn,{error:p}),e[6]=p,e[7]=y),y}let g;e[8]!==m||e[9]!==h||e[10]!==r?(g=h&&r?(0,s.jsx)(Rl,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):m&&Be({html:m.html}),e[8]=m,e[9]=h,e[10]=r,e[11]=g):g=e[11];let f;return e[12]!==l||e[13]!==g?(f=(0,s.jsx)("div",{ref:l,className:"min-h-4",children:g}),e[12]=l,e[13]=g,e[14]=f):f=e[14],f},Y_=class{constructor(){K(this,"tagName","marimo-mime-renderer");K(this,"validator",$({mime:F().transform(t=>t),data:Re([F(),un(),Dt(F(),Za()),Q(qt())]).transform(t=>t)}))}render({data:t}){return t.data?(0,s.jsx)(NT,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,s.jsx)("div",{})}},G_=class{constructor(){K(this,"tagName","marimo-mermaid");K(this,"validator",$({diagram:F()}))}render(t){return(0,s.jsx)(J_,{diagram:t.data.diagram})}},J_=(0,x.lazy)(()=>Rt(()=>import("./mermaid-Djr3jUAB.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([363,4,14,13,8,9,10,15,11,25,26,27,97,28,98,81,12,6,7,99,31,47,24,29,30,364,365,366,367,341,368,352,350,369,63,102,370,371,372,373,374,375,376,377,378,379,353,346,351]),import.meta.url)),Q_=ee(),X_=t=>{let e=(0,Q_.c)(12),{label:a}=t,{items:r}=gl(HR),n;e[0]===r?n=e[1]:(n=RI(r),e[0]=r,e[1]=n);let{activeHeaderId:i,activeOccurrences:o}=NI(n);if(r.length===0){let c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("div",{className:"text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg",children:"No outline found. Add markdown headings to your notebook to create an outline."}),e[2]=c):c=e[2],c}let l;e[3]===a?l=e[4]:(l=a&&(0,s.jsx)("div",{className:"px-4 py-2 border-b border-border font-medium text-sm",children:a}),e[3]=a,e[4]=l);let d;e[5]!==i||e[6]!==o||e[7]!==r?(d=(0,s.jsx)(_I,{className:"max-h-[400px]",items:r,activeHeaderId:i,activeOccurrences:o}),e[5]=i,e[6]=o,e[7]=r,e[8]=d):d=e[8];let u;return e[9]!==l||e[10]!==d?(u=(0,s.jsxs)("div",{className:"border border-border rounded-lg",children:[l,d]}),e[9]=l,e[10]=d,e[11]=u):u=e[11],u},eR=class{constructor(){K(this,"tagName","marimo-outline");K(this,"validator",$({label:F().optional()}))}render(t){let{label:e}=t.data;return(0,s.jsx)(hl,{store:Le,children:(0,s.jsx)(X_,{label:e})})}},tR=Qu(((t,e)=>{(function(){var a=Object.assign||function(v){for(var C,R=1;R<arguments.length;R++)for(var _ in C=arguments[R],C)b(C,_)&&(v[_]=C[_]);return v},r=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},n=d(["\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2","\u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"],["\u03BC\u03AE\u03BD\u03B1\u03C2","\u03BC\u03AE\u03BD\u03B5\u03C2"],["\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1","\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"],["\u03BC\u03AD\u03C1\u03B1","\u03BC\u03AD\u03C1\u03B5\u03C2"],["\u03CE\u03C1\u03B1","\u03CE\u03C1\u03B5\u03C2"],["\u03BB\u03B5\u03C0\u03C4\u03CC","\u03BB\u03B5\u03C0\u03C4\u03AC"],["\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF","\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"],["\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03CC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5","\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03AC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5"],","),i={af:d(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:o("\u12D3\u1218\u1275","\u12C8\u122D","\u1233\u121D\u1295\u1275","\u1240\u1295","\u1230\u12D3\u1275","\u12F0\u1242\u1243","\u1230\u12A8\u1295\u12F5","\u121A\u120A\u1230\u12A8\u1295\u12F5"),ar:a(o(function(v){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][p(v)]},function(v){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][p(v)]},function(v){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][p(v)]},function(v){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][p(v)]},function(v){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][p(v)]},function(v){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][p(v)]},function(v){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][p(v)]},function(v){return["\u062C\u0632\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u062C\u0632\u0622\u0646 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u0623\u062C\u0632\u0627\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629"][p(v)]},","),{delimiter:" \uFEED ",_hideCountIf2:!0,_digitReplacements:["\u06F0","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"]}),bg:m(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446\u0430","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u0441\u0435\u0434\u043C\u0438\u0446\u0438","\u0441\u0435\u0434\u043C\u0438\u0446\u0430","\u0441\u0435\u0434\u043C\u0438\u0446\u0438"],["\u0434\u043D\u0438","\u0434\u0435\u043D","\u0434\u043D\u0438"],["\u0447\u0430\u0441\u0430","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0438","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),bn:o("\u09AC\u099B\u09B0","\u09AE\u09BE\u09B8","\u09B8\u09AA\u09CD\u09A4\u09BE\u09B9","\u09A6\u09BF\u09A8","\u0998\u09A8\u09CD\u099F\u09BE","\u09AE\u09BF\u09A8\u09BF\u099F","\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1","\u09AE\u09BF\u09B2\u09BF\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1"),ca:d(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:o("\u0633\u0627\u06B5","\u0645\u0627\u0646\u06AF","\u0647\u06D5\u0641\u062A\u06D5","\u0695\u06C6\u0698","\u06A9\u0627\u0698\u06CE\u0631","\u062E\u0648\u0644\u06D5\u06A9","\u0686\u0631\u06A9\u06D5","\u0645\u06CC\u0644\u06CC \u0686\u0631\u06A9\u06D5","."),cs:o(function(v){return["rok","roku","roky","let"][g(v)]},function(v){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(v)]},function(v){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(v)]},function(v){return["den","dne","dny","dn\xED"][g(v)]},function(v){return["hodina","hodiny","hodiny","hodin"][g(v)]},function(v){return["minuta","minuty","minuty","minut"][g(v)]},function(v){return["sekunda","sekundy","sekundy","sekund"][g(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisekund"][g(v)]},","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:d(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:n,en:d(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:d(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:d(["a\xF1o","a\xF1os"],["mes","meses"],["semana","semanas"],["d\xEDa","d\xEDas"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:d(["aasta","aastat"],["kuu","kuud"],["n\xE4dal","n\xE4dalat"],["p\xE4ev","p\xE4eva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("\u0633\u0627\u0644","\u0645\u0627\u0647","\u0647\u0641\u062A\u0647","\u0631\u0648\u0632","\u0633\u0627\u0639\u062A","\u062F\u0642\u06CC\u0642\u0647","\u062B\u0627\u0646\u06CC\u0647","\u0645\u06CC\u0644\u06CC \u062B\u0627\u0646\u06CC\u0647"),fi:d(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["p\xE4iv\xE4","p\xE4iv\xE4\xE4"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:d(["\xE1r","\xE1r"],["m\xE1na\xF0ur","m\xE1na\xF0ir"],["vika","vikur"],["dagur","dagar"],["t\xEDmi","t\xEDmar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:o(function(v){return"an"+(v>=2?"s":"")},"mois",function(v){return"semaine"+(v>=2?"s":"")},function(v){return"jour"+(v>=2?"s":"")},function(v){return"heure"+(v>=2?"s":"")},function(v){return"minute"+(v>=2?"s":"")},function(v){return"seconde"+(v>=2?"s":"")},function(v){return"milliseconde"+(v>=2?"s":"")},","),gr:n,he:d(["\u05E9\u05E0\u05D4","\u05E9\u05E0\u05D9\u05DD"],["\u05D7\u05D5\u05D3\u05E9","\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"],["\u05E9\u05D1\u05D5\u05E2","\u05E9\u05D1\u05D5\u05E2\u05D5\u05EA"],["\u05D9\u05D5\u05DD","\u05D9\u05DE\u05D9\u05DD"],["\u05E9\u05E2\u05D4","\u05E9\u05E2\u05D5\u05EA"],["\u05D3\u05E7\u05D4","\u05D3\u05E7\u05D5\u05EA"],["\u05E9\u05E0\u05D9\u05D4","\u05E9\u05E0\u05D9\u05D5\u05EA"],["\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4","\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA"]),hr:o(function(v){return v%10==2||v%10==3||v%10==4?"godine":"godina"},function(v){return v===1?"mjesec":v===2||v===3||v===4?"mjeseca":"mjeseci"},function(v){return v%10==1&&v!==11?"tjedan":"tjedna"},l(["dan","dana"]),function(v){return v===1?"sat":v===2||v===3||v===4?"sata":"sati"},function(v){var C=v%10;return(C===2||C===3||C===4)&&(v<10||v>14)?"minute":"minuta"},function(v){var C=v%10;return C===5||Math.floor(v)===v&&v>=10&&v<=19?"sekundi":C===1?"sekunda":C===2||C===3||C===4?"sekunde":"sekundi"},function(v){return v===1?"milisekunda":v%10==2||v%10==3||v%10==4?"milisekunde":"milisekundi"},","),hi:o("\u0938\u093E\u0932",l(["\u092E\u0939\u0940\u0928\u093E","\u092E\u0939\u0940\u0928\u0947"]),l(["\u0939\u095E\u094D\u0924\u093E","\u0939\u092B\u094D\u0924\u0947"]),"\u0926\u093F\u0928",l(["\u0918\u0902\u091F\u093E","\u0918\u0902\u091F\u0947"]),"\u092E\u093F\u0928\u091F","\u0938\u0947\u0915\u0902\u0921","\u092E\u093F\u0932\u0940\u0938\u0947\u0915\u0902\u0921"),hu:o("\xE9v","h\xF3nap","h\xE9t","nap","\xF3ra","perc","m\xE1sodperc","ezredm\xE1sodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:d(["\xE1r","\xE1r"],["m\xE1nu\xF0ur","m\xE1nu\xF0ir"],["vika","vikur"],["dagur","dagar"],["klukkut\xEDmi","klukkut\xEDmar"],["m\xEDn\xFAta","m\xEDn\xFAtur"],["sek\xFAnda","sek\xFAndur"],["millisek\xFAnda","millisek\xFAndur"]),it:d(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:o("\u5E74","\u30F6\u6708","\u9031\u9593","\u65E5","\u6642\u9593","\u5206","\u79D2","\u30DF\u30EA\u79D2"),km:o("\u1786\u17D2\u1793\u17B6\u17C6","\u1781\u17C2","\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD","\u1790\u17D2\u1784\u17C3","\u1798\u17C9\u17C4\u1784","\u1793\u17B6\u1791\u17B8","\u179C\u17B7\u1793\u17B6\u1791\u17B8","\u1798\u17B7\u179B\u17D2\u179B\u17B8\u179C\u17B7\u1793\u17B6\u1791\u17B8"),kn:d(["\u0CB5\u0CB0\u0CCD\u0CB7","\u0CB5\u0CB0\u0CCD\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1","\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CB5\u0CBE\u0CB0","\u0CB5\u0CBE\u0CB0\u0C97\u0CB3\u0CC1"],["\u0CA6\u0CBF\u0CA8","\u0CA6\u0CBF\u0CA8\u0C97\u0CB3\u0CC1"],["\u0C97\u0C82\u0C9F\u0CC6","\u0C97\u0C82\u0C9F\u0CC6\u0C97\u0CB3\u0CC1"],["\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7","\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"]),ko:o("\uB144","\uAC1C\uC6D4","\uC8FC\uC77C","\uC77C","\uC2DC\uAC04","\uBD84","\uCD08","\uBC00\uB9AC \uCD08"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","m\xEEl\xEE\xE7irk",","),lo:o("\u0E9B\u0EB5","\u0EC0\u0E94\u0EB7\u0EAD\u0E99","\u0EAD\u0EB2\u0E97\u0EB4\u0E94","\u0EA1\u0EB7\u0EC9","\u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87","\u0E99\u0EB2\u0E97\u0EB5","\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5","\u0EA1\u0EB4\u0E99\u0EA5\u0EB4\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5",","),lt:o(function(v){return v%10==0||v%100>=10&&v%100<=20?"met\u0173":"metai"},function(v){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][f(v)]},function(v){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][f(v)]},function(v){return["diena","dienos","dien\u0173"][f(v)]},function(v){return["valanda","valandos","valand\u0173"][f(v)]},function(v){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][f(v)]},function(v){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][f(v)]},function(v){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][f(v)]},","),lv:o(function(v){return y(v)?"gads":"gadi"},function(v){return y(v)?"m\u0113nesis":"m\u0113ne\u0161i"},function(v){return y(v)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(v){return y(v)?"diena":"dienas"},function(v){return y(v)?"stunda":"stundas"},function(v){return y(v)?"min\u016Bte":"min\u016Btes"},function(v){return y(v)?"sekunde":"sekundes"},function(v){return y(v)?"milisekunde":"milisekundes"},","),mk:d(["\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0438"],["\u043D\u0435\u0434\u0435\u043B\u0430","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u0435\u043D","\u0434\u0435\u043D\u0430"],["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],","),mn:o("\u0436\u0438\u043B","\u0441\u0430\u0440","\u0434\u043E\u043B\u043E\u043E \u0445\u043E\u043D\u043E\u0433","\u04E9\u0434\u04E9\u0440","\u0446\u0430\u0433","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),mr:o(l(["\u0935\u0930\u094D\u0937","\u0935\u0930\u094D\u0937\u0947"]),l(["\u092E\u0939\u093F\u0928\u093E","\u092E\u0939\u093F\u0928\u0947"]),l(["\u0906\u0920\u0935\u0921\u093E","\u0906\u0920\u0935\u0921\u0947"]),"\u0926\u093F\u0935\u0938","\u0924\u093E\u0938",l(["\u092E\u093F\u0928\u093F\u091F","\u092E\u093F\u0928\u093F\u091F\u0947"]),"\u0938\u0947\u0915\u0902\u0926","\u092E\u093F\u0932\u093F\u0938\u0947\u0915\u0902\u0926"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:d(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:o(function(v){return["rok","roku","lata","lat"][h(v)]},function(v){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][h(v)]},function(v){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][h(v)]},function(v){return["dzie\u0144","dnia","dni","dni"][h(v)]},function(v){return["godzina","godziny","godziny","godzin"][h(v)]},function(v){return["minuta","minuty","minuty","minut"][h(v)]},function(v){return["sekunda","sekundy","sekundy","sekund"][h(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisekund"][h(v)]},","),pt:d(["ano","anos"],["m\xEAs","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:o(u("an","ani","de ani"),u("lun\u0103","luni","de luni"),u("s\u0103pt\u0103m\xE2n\u0103","s\u0103pt\u0103m\xE2ni","de s\u0103pt\u0103m\xE2ni"),u("zi","zile","de zile"),u("or\u0103","ore","de ore"),u("minut","minute","de minute"),u("secund\u0103","secunde","de secunde"),u("milisecund\u0103","milisecunde","de milisecunde"),","),ru:m(["\u043B\u0435\u0442","\u0433\u043E\u0434","\u0433\u043E\u0434\u0430"],["\u043C\u0435\u0441\u044F\u0446\u0435\u0432","\u043C\u0435\u0441\u044F\u0446","\u043C\u0435\u0441\u044F\u0446\u0430"],["\u043D\u0435\u0434\u0435\u043B\u044C","\u043D\u0435\u0434\u0435\u043B\u044F","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u043D\u0435\u0439","\u0434\u0435\u043D\u044C","\u0434\u043D\u044F"],["\u0447\u0430\u0441\u043E\u0432","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u044B"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u044B"],["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"]),sq:o(l(["vit","vjet"]),"muaj","jav\xEB","dit\xEB","or\xEB",function(v){return"minut"+(v===1?"\xEB":"a")},function(v){return"sekond"+(v===1?"\xEB":"a")},function(v){return"milisekond"+(v===1?"\xEB":"a")},","),sr:m(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0435"],["\u043C\u0435\u0441\u0435\u0446\u0438","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u043D\u0435\u0434\u0435\u0459\u0438","\u043D\u0435\u0434\u0435\u0459\u0430","\u043D\u0435\u0434\u0435\u0459\u0435"],["\u0434\u0430\u043D\u0438","\u0434\u0430\u043D","\u0434\u0430\u043D\u0430"],["\u0441\u0430\u0442\u0438","\u0441\u0430\u0442","\u0441\u0430\u0442\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0435"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0435"]),sr_Latn:m(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:d(["\u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD","\u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBE\u0BA4\u0BAE\u0BCD","\u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBE\u0BB0\u0BAE\u0BCD","\u0BB5\u0BBE\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BA8\u0BBE\u0BB3\u0BCD","\u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BA3\u0BBF","\u0BAE\u0BA3\u0BBF\u0BA8\u0BC7\u0BB0\u0BAE\u0BCD"],["\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD","\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF","\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF","\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"]),te:d(["\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02","\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"],["\u0C28\u0C46\u0C32","\u0C28\u0C46\u0C32\u0C32"],["\u0C35\u0C3E\u0C30\u0C02","\u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"],["\u0C30\u0C4B\u0C1C\u0C41","\u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"],["\u0C17\u0C02\u0C1F","\u0C17\u0C02\u0C1F\u0C32\u0C41"],["\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02","\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"],["\u0C38\u0C46\u0C15\u0C28\u0C41","\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"],["\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D","\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"]),uk:m(["\u0440\u043E\u043A\u0456\u0432","\u0440\u0456\u043A","\u0440\u043E\u043A\u0438"],["\u043C\u0456\u0441\u044F\u0446\u0456\u0432","\u043C\u0456\u0441\u044F\u0446\u044C","\u043C\u0456\u0441\u044F\u0446\u0456"],["\u0442\u0438\u0436\u043D\u0456\u0432","\u0442\u0438\u0436\u0434\u0435\u043D\u044C","\u0442\u0438\u0436\u043D\u0456"],["\u0434\u043D\u0456\u0432","\u0434\u0435\u043D\u044C","\u0434\u043D\u0456"],["\u0433\u043E\u0434\u0438\u043D","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u0445\u0432\u0438\u043B\u0438\u043D","\u0445\u0432\u0438\u043B\u0438\u043D\u0430","\u0445\u0432\u0438\u043B\u0438\u043D\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),ur:o("\u0633\u0627\u0644",l(["\u0645\u06C1\u06CC\u0646\u06C1","\u0645\u06C1\u06CC\u0646\u06D2"]),l(["\u06C1\u0641\u062A\u06C1","\u06C1\u0641\u062A\u06D2"]),"\u062F\u0646",l(["\u06AF\u06BE\u0646\u0679\u06C1","\u06AF\u06BE\u0646\u0679\u06D2"]),"\u0645\u0646\u0679","\u0633\u06CC\u06A9\u0646\u0688","\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688"),sk:o(function(v){return["rok","roky","roky","rokov"][g(v)]},function(v){return["mesiac","mesiace","mesiace","mesiacov"][g(v)]},function(v){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(v)]},function(v){return["de\u0148","dni","dni","dn\xED"][g(v)]},function(v){return["hodina","hodiny","hodiny","hod\xEDn"][g(v)]},function(v){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(v)]},function(v){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(v)]},","),sl:o(function(v){return v%10==1?"leto":v%100==2?"leti":v%100==3||v%100==4||Math.floor(v)!==v&&v%100<=5?"leta":"let"},function(v){return v%10==1?"mesec":v%100==2||Math.floor(v)!==v&&v%100<=5?"meseca":v%10==3||v%10==4?"mesece":"mesecev"},function(v){return v%10==1?"teden":v%10==2||Math.floor(v)!==v&&v%100<=4?"tedna":v%10==3||v%10==4?"tedne":"tednov"},function(v){return v%100==1?"dan":"dni"},function(v){return v%10==1?"ura":v%100==2?"uri":v%10==3||v%10==4||Math.floor(v)!==v?"ure":"ur"},function(v){return v%10==1?"minuta":v%10==2?"minuti":v%10==3||v%10==4||Math.floor(v)!==v&&v%100<=4?"minute":"minut"},function(v){return v%10==1?"sekunda":v%100==2?"sekundi":v%100==3||v%100==4||Math.floor(v)!==v?"sekunde":"sekund"},function(v){return v%10==1?"milisekunda":v%100==2?"milisekundi":v%100==3||v%100==4||Math.floor(v)!==v?"milisekunde":"milisekund"},","),sv:d(["\xE5r","\xE5r"],["m\xE5nad","m\xE5nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:a(d(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:o("y\u0131l","ay","hafta","g\xFCn","saat","dakika","saniye","milisaniye",","),th:o("\u0E1B\u0E35","\u0E40\u0E14\u0E37\u0E2D\u0E19","\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","\u0E27\u0E31\u0E19","\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07","\u0E19\u0E32\u0E17\u0E35","\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E21\u0E34\u0E25\u0E25\u0E34\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("\u0439\u0438\u043B","\u043E\u0439","\u04B3\u0430\u0444\u0442\u0430","\u043A\u0443\u043D","\u0441\u043E\u0430\u0442","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),vi:o("n\u0103m","th\xE1ng","tu\u1EA7n","ng\xE0y","gi\u1EDD","ph\xFAt","gi\xE2y","mili gi\xE2y",","),zh_CN:o("\u5E74","\u4E2A\u6708","\u5468","\u5929","\u5C0F\u65F6","\u5206\u949F","\u79D2","\u6BEB\u79D2"),zh_TW:o("\u5E74","\u500B\u6708","\u5468","\u5929","\u5C0F\u6642","\u5206\u9418","\u79D2","\u6BEB\u79D2")};function o(v,C,R,_,I,V,T,A,E){var M={y:v,mo:C,w:R,d:_,h:I,m:V,s:T,ms:A};return E&&(M.decimal=E),M}function l(v){return function(C){return C===1?v[0]:v[1]}}function d(v,C,R,_,I,V,T,A,E){return o(l(v),l(C),l(R),l(_),l(I),l(V),l(T),l(A),E)}function u(v,C,R){return function(_){if(_===1)return v;if(Math.floor(_)!==_||_===0)return C;var I=_%100;return I>=1&&I<=19?C:R}}function c(v){return function(C){return Math.floor(C)===C?C%100>=5&&C%100<=20||C%10>=5&&C%10<=9||C%10==0?v[0]:C%10==1?v[1]:C>1?v[2]:v[1]:v[2]}}function m(v,C,R,_,I,V,T,A){return o(c(v),c(C),c(R),c(_),c(I),c(V),c(T),c(A),",")}function p(v){return v===2?1:v>2&&v<11?2:0}function h(v){return v===1?0:Math.floor(v)===v?v%10>=2&&v%10<=4&&!(v%100>10&&v%100<20)?2:3:1}function g(v){return v===1?0:Math.floor(v)===v?v%10>=2&&v%10<=4&&v%100<10?2:3:1}function f(v){return v===1||v%10==1&&v%100>20?0:Math.floor(v)!==v||v%10>=2&&v%100>20||v%10>=2&&v%100<10?1:2}function y(v){return v%10==1&&v%100!=11}function b(v,C){return Object.prototype.hasOwnProperty.call(v,C)}function w(v){var C=[v.language];if(b(v,"fallbacks"))if(r(v.fallbacks)&&v.fallbacks.length)C=C.concat(v.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var R=0;R<C.length;R++){var _=C[R];if(b(v.languages,_))return v.languages[_];if(b(i,_))return i[_]}throw Error("No language found.")}function D(v,C,R){var _=v.unitName,I=v.unitCount,V=R.spacer,T=R.maxDecimalPoints,A=b(R,"decimal")?R.decimal:b(C,"decimal")?C.decimal:".",E;"digitReplacements"in R?E=R.digitReplacements:"_digitReplacements"in C&&(E=C._digitReplacements);var M,P=(T===void 0?I:Math.floor(I*10**T)/10**T).toString();if(C._hideCountIf2&&I===2)M="",V="";else if(E){M="";for(var O=0;O<P.length;O++){var z=P[O];z==="."?M+=A:M+=E[z]}}else M=P.replace(".",A);var L=C[_],J=typeof L=="function"?L(I):L;return C._numberFirst?J+V+M:M+V+J}function j(v,C){var R,_,I,V,T=C.units,A=C.unitMeasures,E="largest"in C?C.largest:1/0;if(!T.length)return[];var M={};for(V=v,_=0;_<T.length;_++){R=T[_];var P=A[R];I=_===T.length-1?V/P:Math.floor(V/P),M[R]=I,V-=I*P}if(C.round){var O=E;for(_=0;_<T.length;_++)if(R=T[_],I=M[R],I!==0&&(O--,O===0)){for(var z=_+1;z<T.length;z++){var L=T[z],J=M[L];M[R]+=J*A[L]/A[R],M[L]=0}break}for(_=T.length-1;_>=0;_--)if(R=T[_],I=M[R],I!==0){var X=Math.round(I);if(M[R]=X,_===0)break;var ae=T[_-1],me=A[ae],le=Math.floor(X*A[R]/me);if(le)M[ae]+=le,M[R]=0;else break}}var q=[];for(_=0;_<T.length&&q.length<E;_++)R=T[_],I=M[R],I&&q.push({unitName:R,unitCount:I});return q}function k(v,C){var R=w(C);if(!v.length){var _=C.units,I=_[_.length-1];return D({unitName:I,unitCount:0},R,C)}for(var V=C.conjunction,T=C.serialComma,A=b(C,"delimiter")?C.delimiter:b(R,"delimiter")?R.delimiter:", ",E=[],M=0;M<v.length;M++)E.push(D(v[M],R,C));return!V||v.length===1?E.join(A):v.length===2?E.join(V):E.slice(0,-1).join(A)+(T?",":"")+V+E.slice(-1)}function N(v){var C=function(R,_){R=Math.abs(R);var I=a({},C,_||{});return k(j(R,I),I)};return a(C,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},v)}var S=a(N({}),{getSupportedLanguages:function(){var v=[];for(var C in i)b(i,C)&&C!=="gr"&&v.push(C);return v},humanizer:N});typeof define=="function"&&define.amd?define(function(){return S}):e!==void 0&&e.exports?e.exports=S:this.humanizeDuration=S})()})),aR=ee(),rR=_a(tR(),1),nR=class{constructor(){K(this,"tagName","marimo-progress");K(this,"validator",$({title:F().optional(),subtitle:F().optional(),progress:Re([H(),W()]),total:H().optional(),eta:H().optional(),rate:H().optional()}))}render(t){return(0,s.jsx)(iR,{...t.data})}};const iR=t=>{let e=(0,aR.c)(24),{title:a,subtitle:r,progress:n,total:i,eta:o,rate:l}=t,d=typeof n=="number"?"items-start":"items-center",u;e[0]!==n||e[1]!==i?(u=()=>typeof n=="number"&&i!=null&&i>0?(0,s.jsxs)("div",{className:"flex gap-3 text-sm text-muted-foreground items-baseline",children:[(0,s.jsx)(v6,{value:oR(n/i*100)}),(0,s.jsxs)("span",{className:"shrink-0",children:[n," / ",i]})]}):(0,s.jsx)(Rl,{className:"w-12 h-12 animate-spin text-primary mx-auto"}),e[0]=n,e[1]=i,e[2]=u):u=e[2];let c=u,m;e[3]!==o||e[4]!==n||e[5]!==l||e[6]!==i?(m=()=>{let j=typeof n=="number"&&i!=null&&n>=i,k=[];if(l&&(l<1?k.push((0,s.jsxs)("span",{children:[Zu(1/l)," per iter"]},"rate")):k.push((0,s.jsxs)("span",{children:[l," iter/s"]},"rate")),k.push((0,s.jsx)("span",{children:"\xB7"},"spacer-rate"))),!j&&o&&k.push((0,s.jsxs)("span",{children:["ETA ",Zu(o)]},"eta"),(0,s.jsx)("span",{children:"\xB7"},"spacer-eta")),j&&l){let N=n/l;k.push((0,s.jsxs)("span",{children:["Total time ",Zu(N)]},"completed"),(0,s.jsx)("span",{children:"\xB7"},"spacer-completed"))}if(k.pop(),k.length>0)return(0,s.jsx)("div",{className:"flex gap-2 text-muted-foreground text-sm",children:k})},e[3]=o,e[4]=n,e[5]=l,e[6]=i,e[7]=m):m=e[7];let p=m,h=`flex flex-col ${d} max-w-sm p-6 mx-auto`,g;e[8]===a?g=e[9]:(g=a&&(0,s.jsx)("div",{className:"text-lg font-bold text-foreground/60",children:Be({html:a})}),e[8]=a,e[9]=g);let f;e[10]===r?f=e[11]:(f=r&&(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:Be({html:r})}),e[10]=r,e[11]=f);let y;e[12]===c?y=e[13]:(y=c(),e[12]=c,e[13]=y);let b;e[14]===p?b=e[15]:(b=p(),e[14]=p,e[15]=b);let w;e[16]!==y||e[17]!==b?(w=(0,s.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[y,b]}),e[16]=y,e[17]=b,e[18]=w):w=e[18];let D;return e[19]!==h||e[20]!==g||e[21]!==f||e[22]!==w?(D=(0,s.jsxs)("div",{className:h,children:[g,f,w]}),e[19]=h,e[20]=g,e[21]=f,e[22]=w,e[23]=D):D=e[23],D};function oR(t){return PT(t,0,100)}var lR=rR.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Zu(t){return lR(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var sR=Qu((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",a=y=>y,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(y){return y.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var l=class{constructor(y,b){this.tokens=y,this.originalPath=b}};t.TokenData=l;var d=class extends TypeError{constructor(y,b){let w=y;b&&(w+=`: ${b}`),w+="; visit https://git.new/pathToRegexpError for info",super(w),this.originalPath=b}};t.PathError=d;function u(y,b={}){let{encodePath:w=a}=b,D=[...y],j=[],k=0,N=0;function S(){let C="";if(r.test(D[k]))do C+=D[k++];while(n.test(D[k]));else if(D[k]==='"'){let R=k;for(;k++<D.length;){if(D[k]==='"'){k++,R=0;break}D[k]==="\\"&&k++,C+=D[k]}if(R)throw new d(`Unterminated quote at index ${R}`,y)}if(!C)throw new d(`Missing parameter name at index ${k}`,y);return C}for(;k<D.length;){let C=D[k],R=i[C];R?j.push({type:R,index:k++,value:C}):C==="\\"?j.push({type:"escape",index:k++,value:D[k++]}):C===":"?j.push({type:"param",index:k++,value:S()}):C==="*"?j.push({type:"wildcard",index:k++,value:S()}):j.push({type:"char",index:k++,value:C})}j.push({type:"end",index:k,value:""});function v(C){let R=[];for(;;){let _=j[N++];if(_.type===C)break;if(_.type==="char"||_.type==="escape"){let I=_.value,V=j[N];for(;V.type==="char"||V.type==="escape";)I+=V.value,V=j[++N];R.push({type:"text",value:w(I)});continue}if(_.type==="param"||_.type==="wildcard"){R.push({type:_.type,name:_.value});continue}if(_.type==="{"){R.push({type:"group",tokens:v("}")});continue}throw new d(`Unexpected ${_.type} at index ${_.index}, expected ${C}`,y)}return R}return new l(v("end"),y)}function c(y,b={}){let{decode:w=decodeURIComponent,delimiter:D=e}=b,{regexp:j,keys:k}=m(y,b),N=k.map(S=>w===!1?a:S.type==="param"?w:v=>v.split(D).map(w));return function(S){let v=j.exec(S);if(!v)return!1;let C=v[0],R=Object.create(null);for(let _=1;_<v.length;_++){if(v[_]===void 0)continue;let I=k[_-1],V=N[_-1];R[I.name]=V(v[_])}return{path:C,params:R}}}function m(y,b={}){let{delimiter:w=e,end:D=!0,sensitive:j=!1,trailing:k=!0}=b,N=[],S=j?"":"i",v=[];for(let R of p(y,[])){let _=typeof R=="object"?R:u(R,b);for(let I of h(_.tokens,0,[]))v.push(g(I,w,N,_.originalPath))}let C=`^(?:${v.join("|")})`;return k&&(C+=`(?:${o(w)}$)?`),C+=D?"$":`(?=${o(w)}|$)`,{regexp:new RegExp(C,S),keys:N}}function p(y,b){if(Array.isArray(y))for(let w of y)p(w,b);else b.push(y);return b}function*h(y,b,w){if(b===y.length)return yield w;let D=y[b];if(D.type==="group")for(let j of h(D.tokens,0,w.slice()))yield*h(y,b+1,j);else w.push(D);yield*h(y,b+1,w)}function g(y,b,w,D){let j="",k="",N=!0;for(let S of y){if(S.type==="text"){j+=o(S.value),k+=S.value,N||(N=S.value.includes(b));continue}if(S.type==="param"||S.type==="wildcard"){if(!N&&!k)throw new d(`Missing text before "${S.name}" ${S.type}`,D);S.type==="param"?j+=`(${f(b,N?"":k)}+)`:j+="([\\s\\S]+)",w.push(S),k="",N=!1;continue}}return j}function f(y,b){return b.length<2?y.length<2?`[^${o(y+b)}]`:`(?:(?!${o(y)})[^${o(b)}])`:y.length<2?`(?:(?!${o(b)})[^${o(y)}])`:`(?:(?!${o(b)}|${o(y)})[\\s\\S])`}}))(),dR=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,sR.match)(e)}))}match(t){for(let{pathFunction:e,template:a}of this.routes){let r=e(t.hash)||e(t.pathname);if(r)return[r,a]}return!1}},uR=ee(),cR=class{constructor(){K(this,"tagName","marimo-routes");K(this,"validator",$({routes:Q(F())}))}render(t){return(0,s.jsx)(mR,{...t.data,children:t.children})}},mR=t=>{let e=(0,uR.c)(14),{routes:a,children:r}=t,n=x.Children.count(r);if(n!==a.length)throw Error(`Expected ${a.length} children, but got ${n}`);let i;e[0]===a?i=e[1]:(i=new dR(a),e[0]=a,e[1]=i);let o=i,l;e[2]===o?l=e[3]:(l=()=>{let w=o.match(window.location);return w?w[1]:null},e[2]=o,e[3]=l);let[d,u]=(0,x.useState)(l),c;e[4]===o?c=e[5]:(c=w=>{let D=o.match(w);u(D?D[1]:null)},e[4]=o,e[5]=c);let m=Ue(c),p,h;if(e[6]===m?(p=e[7],h=e[8]):(p=()=>{let w=D=>{m(window.location)};return window.addEventListener("hashchange",w),window.addEventListener("popstate",w),()=>{window.removeEventListener("hashchange",w),window.removeEventListener("popstate",w)}},h=[m],e[6]=m,e[7]=p,e[8]=h),(0,x.useEffect)(p,h),!d){let w;return e[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(s.Fragment,{}),e[9]=w):w=e[9],w}let g=a.indexOf(d),f;e[10]===r?f=e[11]:(f=x.Children.toArray(r),e[10]=r,e[11]=f);let y=f[g],b;return e[12]===y?b=e[13]:(b=(0,s.jsx)(s.Fragment,{children:y}),e[12]=y,e[13]=b),b},pR=ee(),hR=class{constructor(){K(this,"tagName","marimo-stat");K(this,"validator",$({value:Re([F(),H(),W()]).optional(),label:F().optional(),caption:F().optional(),bordered:W().default(!1),direction:be(["increase","decrease"]).optional(),target_direction:be(["increase","decrease"]).default("increase"),slot:qt().optional()}))}render({data:t}){return(0,s.jsx)(fR,{...t})}};const fR=t=>{let e=(0,pR.c)(31),{value:a,label:r,caption:n,bordered:i,direction:o,target_direction:l,slot:d}=t,{locale:u}=at(),c;e[0]!==u||e[1]!==a?(c=()=>a==null?(0,s.jsx)("i",{children:"No value"}):typeof a=="string"?a:typeof a=="number"?tI(a,u):typeof a=="boolean"?a?"True":"False":String(a),e[0]=u,e[1]=a,e[2]=c):c=e[2];let m=c,p=o===l,h=p?"var(--grass-8)":"var(--red-8)",g=p?"var(--grass-9)":"var(--red-9)",f;e[3]===d?f=e[4]:(f=()=>{let _=TT(d);if(_!=null&&_[0]){let{mimetype:I,data:V}=_[0];return I!=="text/html"&&se.warn(`Expected text/html, got ${I}`),Be({html:V,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=f);let y=f,b=i&&"rounded-xl border shadow bg-card",w;e[5]===b?w=e[6]:(w=Y("text-card-foreground p-6",b),e[5]=b,e[6]=w);let D;e[7]===r?D=e[8]:(D=r&&(0,s.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,s.jsx)("h3",{className:"tracking-tight text-sm font-medium",children:r})}),e[7]=r,e[8]=D);let j;e[9]===m?j=e[10]:(j=m(),e[9]=m,e[10]=j);let k;e[11]===j?k=e[12]:(k=(0,s.jsx)("div",{className:"text-2xl font-bold",children:j}),e[11]=j,e[12]=k);let N;e[13]!==n||e[14]!==o||e[15]!==h||e[16]!==g?(N=n&&(0,s.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,s.jsx)(Zc,{className:"w-4 h-4 mr-1 p-0.5",fill:h,stroke:g}),o==="decrease"&&(0,s.jsx)(Zc,{className:"w-4 h-4 mr-1 p-0.5 transform rotate-180",fill:h,stroke:g}),n]}),e[13]=n,e[14]=o,e[15]=h,e[16]=g,e[17]=N):N=e[17];let S;e[18]!==k||e[19]!==N?(S=(0,s.jsxs)("div",{children:[k,N]}),e[18]=k,e[19]=N,e[20]=S):S=e[20];let v;e[21]!==y||e[22]!==d?(v=d&&(0,s.jsx)("div",{className:"[--slot:true]",children:y()}),e[21]=y,e[22]=d,e[23]=v):v=e[23];let C;e[24]!==v||e[25]!==S?(C=(0,s.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[S,v]}),e[24]=v,e[25]=S,e[26]=C):C=e[26];let R;return e[27]!==C||e[28]!==w||e[29]!==D?(R=(0,s.jsxs)("div",{className:w,children:[D,C]}),e[27]=C,e[28]=w,e[29]=D,e[30]=R):R=e[30],R};var gR=ee(),xR=class{constructor(){K(this,"tagName","marimo-tex");K(this,"validator",$({}))}render(t){return(0,s.jsx)(wR,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},vR=Kv(async()=>(await Rt(async()=>{let{default:t}=await import("./katex-YDobqqVd.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([380,152]),import.meta.url)).default),yR=Kv(async()=>{await Rt(()=>import("./mhchem-B98RQJ-y.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([381,152]),import.meta.url)}),qu={"\\mbox":"\\text{#1}"};async function bR(t,e){let[a]=await Promise.all([vR(),yR()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?a.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:qu}):e.startsWith("||(")&&e.endsWith("||)")?a.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:qu}):e.startsWith("||[")&&e.endsWith("||]")&&a.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:qu})}var wR=t=>{var h;let e=(0,gR.c)(8),{host:a,tex:r}=t,n=(0,x.useRef)(null),[i,o]=(0,x.useState)(r),l,d;e[0]===a?(l=e[1],d=e[2]):(l=()=>{let g=new MutationObserver(()=>{o(a.textContent||a.innerHTML)});return g.observe(a,{childList:!0,characterData:!0,subtree:!0}),()=>{g.disconnect()}},d=[a],e[0]=a,e[1]=l,e[2]=d),(0,x.useLayoutEffect)(l,d);let u=((h=a.parentElement)==null?void 0:h.tagName.toLowerCase())==="marimo-tex",c,m;e[3]!==i||e[4]!==u?(c=()=>{n.current&&!u&&bR(n.current,i)},m=[i,u],e[3]=i,e[4]=u,e[5]=c,e[6]=m):(c=e[5],m=e[6]),(0,x.useLayoutEffect)(c,m);let p;return e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("span",{ref:n}),e[7]=p):p=e[7],p};const DR=[new g3,new b3,lS,new LS,new ZS,new WS,new GS,new j3,new r5,new T5,_5,$5,new W5,new rN,new LC,new wN,new QN,new n_,new a_,new s_,new c_,new h_,new y_,new D_,new S_,new uN,new ON,I3,o5,k5,Z_,L_,c3,B3,kN,fN];var jR=[new __,new A_,new O_,new W_,new U_,new Y_,new G_,new KD,new eR,new nR,new cR,new hR,new xR];function CR(){i3(),s3(),DR.forEach(Y0),jR.forEach(Y0)}async function kR(){if(typeof document>"u")return;let{onLCP:t,onINP:e,onCLS:a}=await Rt(async()=>{let{onLCP:n,onINP:i,onCLS:o}=await import("./web-vitals-BaMazlva.js").then(async l=>(await l.__tla,l));return{onLCP:n,onINP:i,onCLS:o}},[],import.meta.url);se.debug("Reporting vitals");let r=n=>{let i=n.rating==="good"?"green":n.rating==="needs-improvement"?"orange":"red";se.log(`%c [Metric ${n.name}] ${n.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};a(r),e(r),t(r)}var SR=yv(),sv=!1;function NR(t,e){if(sv)return se.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");sv=!0;let a=(0,SR.createRoot)(e);try{h6(),CR(),xD(),ji()&&(IE(),kE(xE),ER()),RR(t),a.render((0,s.jsx)(hl,{store:Le,children:(0,s.jsx)(Tm,{children:(0,s.jsx)(f0,{})})}))}catch(r){return a.render((0,s.jsx)(Cl,{children:(0,s.jsx)(()=>{throw r},{})})),r}finally{kR()}}var Yu=dn({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(se.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(se.warn("[marimo] missing config data"),{}))),_R=$({filename:F().nullish().transform(t=>t||(se.warn("No filename provided, using fallback"),eE())),cwd:F().nullish().default(null),code:F().nullish().transform(t=>t??lT()??""),version:F().nullish().transform(t=>t??"unknown"),mode:be(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Yu,configOverrides:Yu,appConfig:Yu,view:$({showAppCode:W().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:F().nullish().transform(t=>t??""),fileStores:Q(iE()).optional(),session:Re([un().optional(),dn({version:Ze("1"),metadata:qt(),cells:Q(qt())}).transform(t=>t)]),notebook:Re([un().optional(),dn({version:Ze("1"),metadata:qt(),cells:Q(qt())}).transform(t=>t)]),runtimeConfig:Q(dn({url:F(),lazy:W().default(!0),authToken:F().nullish()})).nullish().transform(t=>t??[])});function RR(t){let e=_R.safeParse(t);if(!e.success)throw se.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let a=e.data.mode;if(fD(a),e.data.fileStores&&e.data.fileStores.length>0){se.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)DE.insert(0,e.data.fileStores[o]);se.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Le.set(FT,kD()),Le.set(LR,e.data.filename),Le.set(ZR,e.data.cwd??null),Le.set(KR,e.data.code),Le.set(MA,a),Le.set(aT,e.data.version),Le.set(tT,e.data.view.showAppCode);let r=new URL(window.location.href).searchParams.get(uc.viewAs)==="present",n=a==="edit"&&r?"present":a;if(Le.set(PA,{mode:n,cellAnchor:null}),Le.set(oT,e.data.serverToken),Le.set(qE,ZE(e.data.configOverrides)),Le.set(WE,BE(e.data.config)),Le.set(KE,HE(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];se.debug("\u26A1 Runtime URL",o.url),Le.set(Vv,{...o,serverToken:e.data.serverToken}),!o.lazy&&!ji()&&Le.set(zv,{state:Ov.CONNECTING})}else Le.set(Vv,{...XE,lazy:!1,serverToken:e.data.serverToken});let i=db(e.data.session,e.data.notebook);i&&Le.set(gv,i)}function ER(){let t=ST();if(t)for(let e of t)PE(sc,e)}var dv=document.getElementById("root");if(dv){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");NR(window.__MARIMO_MOUNT_CONFIG__,dv)}else throw Error("[marimo] root element not found")});
38
+ </svg>`},e[7]=g):g=e[7];let f;e[8]===p?f=e[9]:(f=[{name:"reset",title:"Reset state",icon:g,click:p}],e[8]=p,e[9]=f);let y;e[10]!==h||e[11]!==f?(y={displaylogo:!1,modeBarButtonsToAdd:f,...h},e[10]=h,e[11]=f,e[12]=y):y=e[12];let b=y,w;e[13]===n?w=e[14]:(w=E=>{if("dragmode"in E&&n(M=>({...M,dragmode:E.dragmode})),Object.keys(E).some(HN)){let M={};Object.entries(E).forEach(P=>{let[O,z]=P;bE(M,O,z)}),n(P=>({...P,...M}))}},e[13]=n,e[14]=w);let D;e[15]===n?D=e[16]:(D=()=>{n(WN)},e[15]=n,e[16]=D);let j=Ue(D),k;e[17]===n?k=e[18]:(k=E=>{E&&n(M=>({...M,points:E.points.map(UN)}))},e[17]=n,e[18]=k);let N=Ue(k),S;e[19]===n?S=e[20]:(S=E=>{E&&n(M=>({...M,points:E.points.map(KN)}))},e[19]=n,e[20]=S);let v=Ue(S),C;e[21]===n?C=e[22]:(C=E=>{E&&E.points.some(ZN)&&n(M=>({...M,points:nv(E.points),indices:E.points.map(qN)}))},e[21]=n,e[22]=C);let R=Ue(C),_;e[23]===n?_=e[24]:(_=E=>{E&&n(M=>({...M,selections:"selections"in E?E.selections:[],points:nv(E.points),indices:E.points.map(YN),range:E.range}))},e[23]=n,e[24]=_);let I=Ue(_),V=d.frames??void 0,T=Ue(GN),A;return e[25]!==d||e[26]!==u||e[27]!==b||e[28]!==N||e[29]!==v||e[30]!==R||e[31]!==I||e[32]!==V||e[33]!==T||e[34]!==w||e[35]!==j?(A=(0,s.jsx)($N,{...d,layout:u,onRelayout:w,onDeselect:j,onTreemapClick:N,onSunburstClick:v,config:b,onClick:R,onSelected:I,className:"w-full",useResizeHandler:!0,frames:V,onError:T}),e[25]=d,e[26]=u,e[27]=b,e[28]=N,e[29]=v,e[30]=R,e[31]=I,e[32]=V,e[33]=T,e[34]=w,e[35]=j,e[36]=A):A=e[36],A});rv.displayName="PlotlyComponent";var BN=["x","y","z","lat","lon","curveNumber","pointNumber","pointNumbers","pointIndex"];function nv(t){if(!t)return[];let e;return t.map(a=>{var i;let r=vl(a,BN),n=Array.isArray(a.data.hovertemplate)?a.data.hovertemplate[0]:a.data.hovertemplate;return!n||((i=a.data)==null?void 0:i.type)==="heatmap"?r:(e=e?e.update(n):tv(n),{...r,...e.parse(a)})})}function HN(t){return t.includes("xaxis")||t.includes("yaxis")}function WN(t){return{...t,selections:Ra.EMPTY,points:Ra.EMPTY,indices:Ra.EMPTY,range:void 0}}function UN(t){return vl(t,LN)}function KN(t){return vl(t,av)}function ZN(t){var e;return((e=t.data)==null?void 0:e.type)==="heatmap"}function qN(t){return t.pointIndex}function YN(t){return t.pointIndex}function GN(t){se.error("PlotlyPlugin: ",t)}var JN=ee(),QN=class{constructor(){K(this,"tagName","marimo-radio");K(this,"validator",$({initialValue:F().nullable(),inline:W().default(!1),label:F().nullable(),options:Q(F()),disabled:W().optional()}))}render(t){return(0,s.jsx)(XN,{...t.data,value:t.value,setValue:t.setValue})}};const XN=t=>{let e=(0,JN.c)(18),a=(0,x.useId)(),r=t.label,n=t.inline?"left":"top",i=t.value??"",o=t.setValue,l=t.inline&&"grid-flow-col gap-4",d;e[0]===l?d=e[1]:(d=Y(l),e[0]=l,e[1]=d);let u=t.disabled,c;if(e[2]!==a||e[3]!==t.options){let h;e[5]===a?h=e[6]:(h=(g,f)=>(0,s.jsxs)("div",{className:"flex items-center space-x-2",children:[(0,s.jsx)(P6,{value:g,id:`${a}-${f.toString()}`}),(0,s.jsx)(Ti,{htmlFor:`${a}-${f.toString()}`,className:"text-sm font-normal",children:g})]},f),e[5]=a,e[6]=h),c=t.options.map(h),e[2]=a,e[3]=t.options,e[4]=c}else c=e[4];let m;e[7]!==t.disabled||e[8]!==t.setValue||e[9]!==i||e[10]!==d||e[11]!==c?(m=(0,s.jsx)(A6,{"data-testid":"marimo-plugin-radio",value:i,onValueChange:o,className:d,"aria-label":"Radio Group",disabled:u,children:c}),e[7]=t.disabled,e[8]=t.setValue,e[9]=i,e[10]=d,e[11]=c,e[12]=m):m=e[12];let p;return e[13]!==a||e[14]!==t.label||e[15]!==n||e[16]!==m?(p=(0,s.jsx)(Ke,{label:r,id:a,align:n,children:m}),e[13]=a,e[14]=t.label,e[15]=n,e[16]=m,e[17]=p):p=e[17],p};var e_=ee(),iv=x.forwardRef((t,e)=>{let a=(0,e_.c)(35),{className:r,valueMap:n,...i}=t,[o,l]=Qv(!1),{locale:d}=at(),u=nx,c;a[0]===r?c=a[1]:(c=Y("relative flex touch-none select-none hover:cursor-pointer","data-[orientation=horizontal]:w-full data-[orientation=horizontal]:items-center","data-[orientation=vertical]:h-full data-[orientation=vertical]:justify-center","data-disabled:cursor-not-allowed",r),a[0]=r,a[1]=c);let m;a[2]===Symbol.for("react.memo_cache_sentinel")?(m=Y("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60","data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full","data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"),a[2]=m):m=a[2];let p;a[3]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)(Md,{"data-testid":"track",className:m,children:(0,s.jsx)(Fd,{"data-testid":"range",className:Y("absolute bg-blue-500 dark:bg-primary","data-[orientation=horizontal]:h-full","data-[orientation=vertical]:w-full","data-disabled:opacity-50")})}),a[3]=p):p=a[3];let h;a[4]!==l.setFalse||a[5]!==l.setTrue?(h=(0,s.jsx)(Ic,{asChild:!0,children:(0,s.jsx)(No,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:l.setTrue,onBlur:l.setFalse,onMouseEnter:l.setTrue,onMouseLeave:l.setFalse})}),a[4]=l.setFalse,a[5]=l.setTrue,a[6]=h):h=a[6];let g=i.value!=null&&i.value.length===2&&(0,s.jsx)(Ac,{children:bn(n(i.value[0]),{locale:d})},i.value[0]),f;a[7]===g?f=a[8]:(f=(0,s.jsx)(Pc,{children:g}),a[7]=g,a[8]=f);let y;a[9]!==o||a[10]!==h||a[11]!==f?(y=(0,s.jsx)(zt,{children:(0,s.jsxs)(Tc,{delayDuration:0,open:o,children:[h,f]})}),a[9]=o,a[10]=h,a[11]=f,a[12]=y):y=a[12];let b=zt,w=Tc,D;a[13]!==l.setFalse||a[14]!==l.setTrue?(D=(0,s.jsx)(Ic,{asChild:!0,children:(0,s.jsx)(No,{"data-testid":"thumb",className:"block h-4 w-4 rounded-full shadow-xs-solid border border-blue-500 dark:border-primary dark:bg-accent bg-white hover:bg-blue-300 focus:bg-blue-300 transition-colors focus-visible:outline-hidden data-disabled:pointer-events-none data-disabled:opacity-50",onFocus:l.setTrue,onBlur:l.setFalse,onMouseEnter:l.setTrue,onMouseLeave:l.setFalse})}),a[13]=l.setFalse,a[14]=l.setTrue,a[15]=D):D=a[15];let j=Pc,k=i.value!=null&&i.value.length===2&&(0,s.jsx)(Ac,{children:bn(n(i.value[1]),{locale:d})},i.value[1]),N;a[16]!==j||a[17]!==k?(N=(0,s.jsx)(j,{children:k}),a[16]=j,a[17]=k,a[18]=N):N=a[18];let S;a[19]!==w||a[20]!==o||a[21]!==D||a[22]!==N?(S=(0,s.jsxs)(w,{delayDuration:0,open:o,children:[D,N]}),a[19]=w,a[20]=o,a[21]=D,a[22]=N,a[23]=S):S=a[23];let v;a[24]!==b||a[25]!==S?(v=(0,s.jsx)(b,{children:S}),a[24]=b,a[25]=S,a[26]=v):v=a[26];let C;return a[27]!==i||a[28]!==e||a[29]!==u.Root||a[30]!==v||a[31]!==c||a[32]!==p||a[33]!==y?(C=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[p,y,v]}),a[27]=i,a[28]=e,a[29]=u.Root,a[30]=v,a[31]=c,a[32]=p,a[33]=y,a[34]=C):C=a[34],C});iv.displayName=Pd.displayName;var t_=ee(),a_=class{constructor(){K(this,"tagName","marimo-range-slider");K(this,"validator",$({initialValue:Q(H()),label:F().nullable(),start:H(),stop:H(),step:H().optional(),steps:Q(H()).nullable(),debounce:W().default(!1),orientation:be(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(r_,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},r_=t=>{let e=(0,t_.c)(50),{label:a,setValue:r,value:n,start:i,stop:o,step:l,debounce:d,orientation:u,showValue:c,fullWidth:m,disabled:p,valueMap:h}=t,g=(0,x.useId)(),{locale:f}=at(),[y,b]=(0,x.useState)(n),w,D;e[0]===n?(w=e[1],D=e[2]):(w=()=>{b(n)},D=[n],e[0]=n,e[1]=w,e[2]=D),(0,x.useEffect)(w,D);let j=u==="horizontal"?"left":"top",k=m&&"my-1 w-full",N;e[3]===k?N=e[4]:(N=Y(k),e[3]=k,e[4]=N);let S=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",v=m&&"w-full",C;e[5]!==S||e[6]!==v?(C=Y("flex items-center gap-2",S,v),e[5]=S,e[6]=v,e[7]=C):C=e[7];let R=!m&&"data-[orientation=horizontal]:w-36 ",_;e[8]===R?_=e[9]:(_=Y("relative flex items-center select-none",R,"data-[orientation=vertical]:h-36"),e[8]=R,e[9]=_);let I,V;e[10]!==d||e[11]!==r?(I=z=>{b(z),d||r(z)},V=z=>{d&&r(z)},e[10]=d,e[11]=r,e[12]=I,e[13]=V):(I=e[12],V=e[13]);let T,A;e[14]!==d||e[15]!==y||e[16]!==r||e[17]!==n?(T=()=>{d&&!fl(y,n)&&r(y)},A=()=>{d&&!fl(y,n)&&r(y)},e[14]=d,e[15]=y,e[16]=r,e[17]=n,e[18]=T,e[19]=A):(T=e[18],A=e[19]);let E;e[20]!==p||e[21]!==g||e[22]!==y||e[23]!==u||e[24]!==i||e[25]!==l||e[26]!==o||e[27]!==_||e[28]!==I||e[29]!==V||e[30]!==T||e[31]!==A||e[32]!==h?(E=(0,s.jsx)(iv,{id:g,className:_,value:y,min:i,max:o,step:l,orientation:u,disabled:p,onValueChange:I,onValueCommit:V,onPointerUp:T,onMouseUp:A,valueMap:h}),e[20]=p,e[21]=g,e[22]=y,e[23]=u,e[24]=i,e[25]=l,e[26]=o,e[27]=_,e[28]=I,e[29]=V,e[30]=T,e[31]=A,e[32]=h,e[33]=E):E=e[33];let M;e[34]!==y||e[35]!==f||e[36]!==c||e[37]!==h?(M=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${bn(h(y[0]),{locale:f})}, ${bn(h(y[1]),{locale:f})}`}),e[34]=y,e[35]=f,e[36]=c,e[37]=h,e[38]=M):M=e[38];let P;e[39]!==E||e[40]!==M||e[41]!==C?(P=(0,s.jsxs)("div",{className:C,children:[E,M]}),e[39]=E,e[40]=M,e[41]=C,e[42]=P):P=e[42];let O;return e[43]!==m||e[44]!==g||e[45]!==a||e[46]!==P||e[47]!==j||e[48]!==N?(O=(0,s.jsx)(Ke,{label:a,id:g,align:j,className:N,fullWidth:m,children:P}),e[43]=m,e[44]=g,e[45]=a,e[46]=P,e[47]=j,e[48]=N,e[49]=O):O=e[49],O},Ku=_a(Qu(((t,e)=>{e.exports=n;var a={hoursPerDay:24,daysPerWeek:7,weeksPerMonth:4,monthsPerYear:12,daysPerYear:365.25},r={ms:["ms","milli","millisecond","milliseconds"],s:["s","sec","secs","second","seconds"],m:["m","min","mins","minute","minutes"],h:["h","hr","hrs","hour","hours"],d:["d","day","days"],w:["w","week","weeks"],mth:["mon","mth","mths","month","months"],y:["y","yr","yrs","year","years"]};function n(u,c,m){m=Object.assign({},a,m||{}),(typeof u=="number"||u.match(/^[-+]?[0-9.]+$/g))&&(u=parseInt(u)+"ms");let p=0,h=i(m),g=u.toLowerCase().replace(/[^.\w+-]+/g,"").match(/[-+]?[0-9.]+[a-z]+/g);if(g===null)throw Error(`The value [${u}] could not be parsed by timestring`);return g.forEach(f=>{let y=f.match(/[0-9.]+/g)[0],b=f.match(/[a-z]+/g)[0];p+=l(y,b,h)}),c?d(p,c,h):p}function i(u){let c={ms:.001,s:1,m:60,h:3600};return c.d=u.hoursPerDay*c.h,c.w=u.daysPerWeek*c.d,c.mth=u.daysPerYear/u.monthsPerYear*c.d,c.y=u.daysPerYear*c.d,c}function o(u){for(let c of Object.keys(r))if(r[c].indexOf(u)>-1)return c;throw Error(`The unit [${u}] is not supported by timestring`)}function l(u,c,m){return u*m[o(c)]}function d(u,c,m){return u/m[o(c)]}}))(),1),ci=.1,ov=F().superRefine((t,e)=>{try{(0,Ku.default)(t)<ci&&e.addIssue({code:Dv.custom,message:`Must be greater than ${ci} seconds.`});return}catch{e.addIssue({code:Dv.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),n_=class{constructor(){K(this,"tagName","marimo-refresh");K(this,"validator",$({options:Q(Re([ov,H().min(ci)])).default([]),defaultInterval:Re([ov,H().min(ci)]).optional(),label:F().nullable()}))}render(t){return(0,s.jsx)(o_,{...t})}},nl="off",i_=0,o_=({setValue:t,data:e})=>{let[a,r]=(0,x.useState)(e.defaultInterval??nl);(0,x.useEffect)(()=>{r(e.defaultInterval??nl)},[e.defaultInterval]);let[n,i]=(0,x.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${a} (${i_++})`),setTimeout(()=>i(!1),500)});(0,x.useEffect)(()=>{if(a===nl)return;let u=typeof a=="number"?a:/[a-z]/.test(a)?(0,Ku.default)(a):(0,Ku.default)(`${a}s`);u=Math.max(u,ci);let c=setInterval(o,u*1e3);return()=>clearInterval(c)},[a,o]);let l="shadow-none! hover:shadow-none! focus:shadow-none! active:shadow-none!",d=e.options.length>0;return(0,s.jsx)(Ke,{label:e.label,children:(0,s.jsxs)("span",{className:"inline-flex items-center text-secondary-foreground rounded shadow-sm-solid",children:[(0,s.jsx)(Se,{"data-testid":"marimo-plugin-refresh-button",variant:"secondary",size:"icon",className:Y(l,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,s.jsx)(H6,{className:Y("w-3.5 h-3.5",n&&"animate-spin")})}),(0,s.jsxs)(Ec,{"data-testid":"marimo-plugin-refresh-select",onChange:u=>{r(u.target.value)},value:a,className:Y(l,"border mb-0 bg-secondary rounded rounded-tl-none rounded-bl-none hover:bg-secondary/60",!d&&"hidden"),children:[(0,s.jsx)("option",{value:nl,children:"off"}),e.options.map(u=>(0,s.jsx)("option",{value:u,children:typeof u=="number"?`${u}s`:u},u))]})]})})},l_=ee(),s_=class{constructor(){K(this,"tagName","marimo-slider");K(this,"validator",$({initialValue:H(),label:F().nullable(),start:H(),stop:H(),step:H().optional(),steps:Q(H()).nullable(),debounce:W().default(!1),orientation:be(["horizontal","vertical"]).default("horizontal"),showValue:W().default(!1),fullWidth:W().default(!1),includeInput:W().default(!1),disabled:W().optional()}))}render(t){let e=a=>t.data.steps&&t.data.steps.length>0?t.data.steps[a]:a;return(0,s.jsx)(d_,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},d_=t=>{let e=(0,l_.c)(54),{label:a,setValue:r,value:n,start:i,stop:o,step:l,debounce:d,orientation:u,showValue:c,fullWidth:m,valueMap:p,includeInput:h,disabled:g}=t,f=(0,x.useId)(),{locale:y}=at(),[b,w]=(0,x.useState)(n),D,j;e[0]===n?(D=e[1],j=e[2]):(D=()=>{w(n)},j=[n],e[0]=n,e[1]=D,e[2]=j),(0,x.useEffect)(D,j);let k=u==="horizontal"?"left":"top",N=m&&"my-1 w-full",S;e[3]===N?S=e[4]:(S=Y(N),e[3]=N,e[4]=S);let v=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",C;e[5]===v?C=e[6]:(C=Y("flex items-center gap-2",v),e[5]=v,e[6]=C);let R=!m&&"data-[orientation=horizontal]:w-36 ",_;e[7]===R?_=e[8]:(_=Y("relative flex items-center select-none",R,"data-[orientation=vertical]:h-36"),e[7]=R,e[8]=_);let I;e[9]===b?I=e[10]:(I=[b],e[9]=b,e[10]=I);let V,T;e[11]!==d||e[12]!==r?(V=z=>{let[L]=z;w(L),d||r(L)},T=z=>{let[L]=z;d&&r(L)},e[11]=d,e[12]=r,e[13]=V,e[14]=T):(V=e[13],T=e[14]);let A;e[15]!==g||e[16]!==f||e[17]!==u||e[18]!==i||e[19]!==l||e[20]!==o||e[21]!==I||e[22]!==V||e[23]!==T||e[24]!==_||e[25]!==p?(A=(0,s.jsx)(zd,{id:f,className:_,value:I,min:i,max:o,step:l,orientation:u,onValueChange:V,onValueCommit:T,valueMap:p,disabled:g}),e[15]=g,e[16]=f,e[17]=u,e[18]=i,e[19]=l,e[20]=o,e[21]=I,e[22]=V,e[23]=T,e[24]=_,e[25]=p,e[26]=A):A=e[26];let E;e[27]!==b||e[28]!==y||e[29]!==c||e[30]!==p?(E=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:bn(p(b),{locale:y})}),e[27]=b,e[28]=y,e[29]=c,e[30]=p,e[31]=E):E=e[31];let M;e[32]!==g||e[33]!==h||e[34]!==b||e[35]!==a||e[36]!==r||e[37]!==i||e[38]!==l||e[39]!==o||e[40]!==p?(M=h&&(0,s.jsx)(Cc,{value:p(b),onChange:z=>{(z==null||Number.isNaN(z))&&(z=Number(i)),w(z),r(z)},minValue:i,maxValue:o,step:l,className:"w-24","aria-label":`${a||"Slider"} value input`,isDisabled:g}),e[32]=g,e[33]=h,e[34]=b,e[35]=a,e[36]=r,e[37]=i,e[38]=l,e[39]=o,e[40]=p,e[41]=M):M=e[41];let P;e[42]!==A||e[43]!==E||e[44]!==M||e[45]!==C?(P=(0,s.jsxs)("div",{className:C,children:[A,E,M]}),e[42]=A,e[43]=E,e[44]=M,e[45]=C,e[46]=P):P=e[46];let O;return e[47]!==m||e[48]!==f||e[49]!==a||e[50]!==P||e[51]!==k||e[52]!==S?(O=(0,s.jsx)(Ke,{label:a,id:f,align:k,fullWidth:m,className:S,children:P}),e[47]=m,e[48]=f,e[49]=a,e[50]=P,e[51]=k,e[52]=S,e[53]=O):O=e[53],O},u_=ee(),c_=class{constructor(){K(this,"tagName","marimo-switch");K(this,"validator",$({initialValue:W(),label:F().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(m_,{...t})}},m_=t=>{let e=(0,u_.c)(9),{value:a,setValue:r,data:n}=t,i=(0,x.useId)(),o;e[0]!==n.disabled||e[1]!==i||e[2]!==r||e[3]!==a?(o=(0,s.jsx)(iT,{"data-testid":"marimo-plugin-switch",checked:a,onCheckedChange:r,id:i,className:"data-[state=unchecked]:hover:bg-input/80 mb-0",disabled:n.disabled}),e[0]=n.disabled,e[1]=i,e[2]=r,e[3]=a,e[4]=o):o=e[4];let l;return e[5]!==n.label||e[6]!==i||e[7]!==o?(l=(0,s.jsx)(Ke,{label:n.label,align:"right",id:i,labelClassName:"ml-1",children:o}),e[5]=n.label,e[6]=i,e[7]=o,e[8]=l):l=e[8],l},p_=ee(),h_=class{constructor(){K(this,"tagName","marimo-tabs");K(this,"validator",$({tabs:Q(F())}))}render(t){return(0,s.jsx)(f_,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},f_=t=>{let e=(0,p_.c)(13),{tabs:a,value:r,setValue:n,children:i}=t,[o,l]=x.useState(r||"0"),d;e[0]===n?d=e[1]:(d=g=>{l(g),n(g)},e[0]=n,e[1]=d);let u=d;r!==o&&r&&l(r);let c;e[2]===a?c=e[3]:(c=a.map(g_),e[2]=a,e[3]=c);let m;e[4]===c?m=e[5]:(m=(0,s.jsx)(Ri,{children:c}),e[4]=c,e[5]=m);let p;e[6]===i?p=e[7]:(p=x.Children.map(i,x_),e[6]=i,e[7]=p);let h;return e[8]!==u||e[9]!==o||e[10]!==m||e[11]!==p?(h=(0,s.jsxs)(Ei,{value:o,onValueChange:u,children:[m,p]}),e[8]=u,e[9]=o,e[10]=m,e[11]=p,e[12]=h):h=e[12],h};function g_(t,e){return(0,s.jsx)(ya,{value:e.toString(),children:Be({html:t})},e)}function x_(t,e){return(0,s.jsx)(va,{value:e.toString(),children:t})}var v_=ee(),y_=class{constructor(){K(this,"tagName","marimo-text-area");K(this,"validator",$({initialValue:F(),placeholder:F(),label:F().nullable(),maxLength:H().optional(),minLength:H().optional(),disabled:W().optional(),debounce:wv(Re([W(),H()])),rows:H().default(4),fullWidth:W().default(!1)}))}render(t){return(0,s.jsx)(b_,{...t.data,value:t.value,setValue:t.setValue})}},b_=t=>{let e=(0,v_.c)(57),a;e[0]!==t.maxLength||e[1]!==t.value?(a=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[0]=t.maxLength,e[1]=t.value,e[2]=a):a=e[2];let r=a;if(t.debounce===!0){let m=t.label,p=t.fullWidth,h;e[3]===t.fullWidth?h=e[4]:(h=Y("font-code",{"w-full":t.fullWidth}),e[3]=t.fullWidth,e[4]=h);let g=t.minLength!=null&&t.minLength>0,f;e[5]!==r||e[6]!==t.disabled||e[7]!==t.maxLength||e[8]!==t.minLength||e[9]!==t.placeholder||e[10]!==t.rows||e[11]!==t.setValue||e[12]!==t.value||e[13]!==h||e[14]!==g?(f=(0,s.jsx)(sA,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder}),e[5]=r,e[6]=t.disabled,e[7]=t.maxLength,e[8]=t.minLength,e[9]=t.placeholder,e[10]=t.rows,e[11]=t.setValue,e[12]=t.value,e[13]=h,e[14]=g,e[15]=f):f=e[15];let y;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==f?(y=(0,s.jsx)(Ke,{label:m,align:"top",fullWidth:p,children:f}),e[16]=t.fullWidth,e[17]=t.label,e[18]=f,e[19]=y):y=e[19],y}if(typeof t.debounce=="number"){let m=t.label,p=t.fullWidth,h;e[20]===t.fullWidth?h=e[21]:(h=Y("font-code",{"w-full":t.fullWidth}),e[20]=t.fullWidth,e[21]=h);let g=t.minLength!=null&&t.minLength>0,f;e[22]!==r||e[23]!==t.debounce||e[24]!==t.disabled||e[25]!==t.maxLength||e[26]!==t.minLength||e[27]!==t.placeholder||e[28]!==t.rows||e[29]!==t.setValue||e[30]!==t.value||e[31]!==h||e[32]!==g?(f=(0,s.jsx)(cA,{className:h,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:g,disabled:t.disabled,bottomAdornment:r,value:t.value,onValueChange:t.setValue,placeholder:t.placeholder,delay:t.debounce}),e[22]=r,e[23]=t.debounce,e[24]=t.disabled,e[25]=t.maxLength,e[26]=t.minLength,e[27]=t.placeholder,e[28]=t.rows,e[29]=t.setValue,e[30]=t.value,e[31]=h,e[32]=g,e[33]=f):f=e[33];let y;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==f?(y=(0,s.jsx)(Ke,{label:m,align:"top",fullWidth:p,children:f}),e[34]=t.fullWidth,e[35]=t.label,e[36]=f,e[37]=y):y=e[37],y}let n=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=Y("font-code",{"w-full":t.fullWidth}),e[38]=t.fullWidth,e[39]=o);let l=t.minLength!=null&&t.minLength>0,d;e[40]===t?d=e[41]:(d=m=>t.setValue(m.target.value),e[40]=t,e[41]=d);let u;e[42]!==r||e[43]!==t.disabled||e[44]!==t.maxLength||e[45]!==t.minLength||e[46]!==t.placeholder||e[47]!==t.rows||e[48]!==t.value||e[49]!==o||e[50]!==l||e[51]!==d?(u=(0,s.jsx)(lA,{className:o,rows:t.rows,cols:33,maxLength:t.maxLength,minLength:t.minLength,required:l,disabled:t.disabled,bottomAdornment:r,value:t.value,onInput:d,placeholder:t.placeholder}),e[42]=r,e[43]=t.disabled,e[44]=t.maxLength,e[45]=t.minLength,e[46]=t.placeholder,e[47]=t.rows,e[48]=t.value,e[49]=o,e[50]=l,e[51]=d,e[52]=u):u=e[52];let c;return e[53]!==t.fullWidth||e[54]!==t.label||e[55]!==u?(c=(0,s.jsx)(Ke,{label:n,align:"top",fullWidth:i,children:u}),e[53]=t.fullWidth,e[54]=t.label,e[55]=u,e[56]=c):c=e[56],c},w_=ee(),D_=class{constructor(){K(this,"tagName","marimo-text");K(this,"validator",$({initialValue:F(),placeholder:F(),label:F().nullable(),kind:be(["text","password","email","url"]).default("text"),maxLength:H().optional(),minLength:H().optional(),fullWidth:W().default(!1),disabled:W().optional(),debounce:wv(Re([W(),H()]))}))}render(t){return(0,s.jsx)(j_,{...t.data,value:t.value,setValue:t.setValue})}},j_=t=>{let e=(0,w_.c)(66),[a,r]=(0,x.useState)(t.value),n=a??t.value,i=C_(t.kind,n),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={text:null,password:(0,s.jsx)(L6,{size:16}),email:(0,s.jsx)(r6,{size:16}),url:(0,s.jsx)(M6,{size:16})},e[0]=o):o=e[0];let l=o,d;e[1]!==t.maxLength||e[2]!==t.value?(d=t.maxLength?(0,s.jsxs)("span",{className:"text-muted-foreground text-xs font-medium",children:[t.value.length,"/",t.maxLength]}):null,e[1]=t.maxLength,e[2]=t.value,e[3]=d):d=e[3];let u=d;if(t.debounce===!0){let C=t.label,R=t.fullWidth,_=t.kind,I=l[t.kind],V=t.placeholder,T=t.maxLength,A=t.minLength,E=t.minLength!=null&&t.minLength>0,M=t.disabled,P=!i,O;e[4]!==t.fullWidth||e[5]!==P?(O=Y({"border-destructive":P,"w-full":t.fullWidth}),e[4]=t.fullWidth,e[5]=P,e[6]=O):O=e[6];let z;e[7]!==u||e[8]!==t.disabled||e[9]!==t.kind||e[10]!==t.maxLength||e[11]!==t.minLength||e[12]!==t.placeholder||e[13]!==t.setValue||e[14]!==t.value||e[15]!==O||e[16]!==I||e[17]!==E?(z=(0,s.jsx)(X6,{"data-testid":"marimo-plugin-text-input",type:_,icon:I,placeholder:V,maxLength:T,minLength:A,required:E,disabled:M,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue}),e[7]=u,e[8]=t.disabled,e[9]=t.kind,e[10]=t.maxLength,e[11]=t.minLength,e[12]=t.placeholder,e[13]=t.setValue,e[14]=t.value,e[15]=O,e[16]=I,e[17]=E,e[18]=z):z=e[18];let L;return e[19]!==t.fullWidth||e[20]!==t.label||e[21]!==z?(L=(0,s.jsx)(Ke,{label:C,fullWidth:R,children:z}),e[19]=t.fullWidth,e[20]=t.label,e[21]=z,e[22]=L):L=e[22],L}if(typeof t.debounce=="number"){let C=t.label,R=t.fullWidth,_=t.kind,I=l[t.kind],V=t.placeholder,T=t.maxLength,A=t.minLength,E=t.minLength!=null&&t.minLength>0,M=t.disabled,P=!i,O;e[23]!==t.fullWidth||e[24]!==P?(O=Y({"border-destructive":P,"w-full":t.fullWidth}),e[23]=t.fullWidth,e[24]=P,e[25]=O):O=e[25];let z;e[26]===Symbol.for("react.memo_cache_sentinel")?(z=X=>r(X.currentTarget.value),e[26]=z):z=e[26];let L;e[27]!==u||e[28]!==t.debounce||e[29]!==t.disabled||e[30]!==t.kind||e[31]!==t.maxLength||e[32]!==t.minLength||e[33]!==t.placeholder||e[34]!==t.setValue||e[35]!==t.value||e[36]!==O||e[37]!==I||e[38]!==E?(L=(0,s.jsx)(Sc,{"data-testid":"marimo-plugin-text-input",type:_,icon:I,placeholder:V,maxLength:T,minLength:A,required:E,disabled:M,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue,onBlur:z,delay:t.debounce}),e[27]=u,e[28]=t.debounce,e[29]=t.disabled,e[30]=t.kind,e[31]=t.maxLength,e[32]=t.minLength,e[33]=t.placeholder,e[34]=t.setValue,e[35]=t.value,e[36]=O,e[37]=I,e[38]=E,e[39]=L):L=e[39];let J;return e[40]!==t.fullWidth||e[41]!==t.label||e[42]!==L?(J=(0,s.jsx)(Ke,{label:C,fullWidth:R,children:L}),e[40]=t.fullWidth,e[41]=t.label,e[42]=L,e[43]=J):J=e[43],J}let c=t.label,m=t.fullWidth,p=t.kind,h=l[t.kind],g=t.placeholder,f=t.maxLength,y=t.minLength,b=t.minLength!=null&&t.minLength>0,w=t.disabled,D=!i,j;e[44]!==t.fullWidth||e[45]!==D?(j=Y({"border-destructive":D,"w-full":t.fullWidth}),e[44]=t.fullWidth,e[45]=D,e[46]=j):j=e[46];let k;e[47]===t?k=e[48]:(k=C=>t.setValue(C.currentTarget.value),e[47]=t,e[48]=k);let N;e[49]===Symbol.for("react.memo_cache_sentinel")?(N=C=>r(C.currentTarget.value),e[49]=N):N=e[49];let S;e[50]!==u||e[51]!==t.disabled||e[52]!==t.kind||e[53]!==t.maxLength||e[54]!==t.minLength||e[55]!==t.placeholder||e[56]!==t.value||e[57]!==j||e[58]!==k||e[59]!==h||e[60]!==b?(S=(0,s.jsx)(kc,{"data-testid":"marimo-plugin-text-input",type:p,icon:h,placeholder:g,maxLength:f,minLength:y,required:b,disabled:w,className:j,endAdornment:u,value:t.value,onInput:k,onBlur:N}),e[50]=u,e[51]=t.disabled,e[52]=t.kind,e[53]=t.maxLength,e[54]=t.minLength,e[55]=t.placeholder,e[56]=t.value,e[57]=j,e[58]=k,e[59]=h,e[60]=b,e[61]=S):S=e[61];let v;return e[62]!==t.fullWidth||e[63]!==t.label||e[64]!==S?(v=(0,s.jsx)(Ke,{label:c,fullWidth:m,children:S}),e[62]=t.fullWidth,e[63]=t.label,e[64]=S,e[65]=v):v=e[65],v};function C_(t,e){if(!e)return!0;switch(t){case"email":return F().email().safeParse(e).success;case"url":return F().url().safeParse(e).success;default:return!0}}var k_=x.lazy(()=>Rt(()=>import("./vega-component-CRbeDmeM.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([356,136,13,8,9,10,137,138,139,140,27,78,6,7,11,12,14,15,22,18,37,36,35,24,25,26,28,29,30,31,33,97,357,98,81,99,159,47,339,340,341,342,343,344,345,346,347,348,349,350,351,352,353,62,20,122,65,66,42,67,358,359]),import.meta.url)),S_=class{constructor(){K(this,"tagName","marimo-vega");K(this,"validator",$({spec:$({}).passthrough().transform(t=>t),chartSelection:Re([W(),Ze("point"),Ze("interval")]).default(!0),fieldSelection:Re([W(),Q(F())]).default(!0),embedOptions:$({}).passthrough().default({})}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(k_,{value:t.value,setValue:t.setValue,...t.data})})}},N_=ee(),__=class{constructor(){K(this,"tagName","marimo-accordion");K(this,"validator",$({labels:Q(F()),multiple:W()}))}render(t){return(0,s.jsx)(R_,{...t.data,children:t.children})}},R_=t=>{let e=(0,N_.c)(8),{labels:a,multiple:r,children:n}=t,i=r?"multiple":"single",o;if(e[0]!==n||e[1]!==a){let d;e[3]===a?d=e[4]:(d=(u,c)=>(0,s.jsxs)($y,{value:c.toString(),children:[(0,s.jsx)(Oy,{className:"py-2 text-md",children:Be({html:a[c]})}),(0,s.jsx)(Ly,{className:"text-md",children:u})]},c),e[3]=a,e[4]=d),o=x.Children.map(n,d),e[0]=n,e[1]=a,e[2]=o}else o=e[2];let l;return e[5]!==o||e[6]!==i?(l=(0,s.jsx)(Fc,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=l):l=e[7],l};const E_=kl("border rounded-lg p-12 mt-12 mb-12 text-foreground shadow-[4px_4px_0px_0px]",{variants:{kind:{neutral:"border-(--slate-9) shadow-(color:--slate-8)",alert:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",info:"bg-(--sky-1) border-(--sky-8) shadow-(color:--sky-7)",danger:"bg-(--red-2) border-(--red-9) shadow-(color:--red-8)",warn:"bg-(--amber-2) border-(--amber-9) shadow-(color:--amber-8)",success:"bg-(--grass-2) border-(--grass-9) shadow-(color:--grass-8)"}},defaultVariants:{kind:"neutral"}});var T_=ee();const lv=(0,x.memo)(t=>{let e=(0,T_.c)(7),{html:a,kind:r}=t,n;e[0]===r?n=e[1]:(n=E_({kind:r}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=(0,s.jsx)(pT,{html:a,alwaysSanitizeHtml:!0}),e[2]=a,e[3]=i);let o;return e[4]!==n||e[5]!==i?(o=(0,s.jsx)("div",{className:n,children:i}),e[4]=n,e[5]=i,e[6]=o):o=e[6],o});lv.displayName="CalloutOutput";var A_=class{constructor(){K(this,"tagName","marimo-callout-output");K(this,"validator",$({html:F(),kind:Q0}))}render({data:t}){return(0,s.jsx)(lv,{html:t.html,kind:t.kind})}},I_=":root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}",P_=".swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}",M_=".swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}",F_='.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}',z_=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}',V_=':root{--swiper-theme-color:#007aff}:host{z-index:1;margin-left:auto;margin-right:auto;display:block;position:relative}.swiper{z-index:1;margin-left:auto;margin-right:auto;padding:0;list-style:none;display:block;position:relative;overflow:hidden}.swiper-vertical>.swiper-wrapper{flex-direction:column}.swiper-wrapper{box-sizing:content-box;height:100%;transition-property:transform;transition-timing-function:var(--swiper-wrapper-transition-timing-function,initial);z-index:1;width:100%;display:flex;position:relative}.swiper-android .swiper-slide,.swiper-ios .swiper-slide,.swiper-wrapper{transform:translateZ(0)}.swiper-horizontal{touch-action:pan-y}.swiper-vertical{touch-action:pan-x}.swiper-slide{flex-shrink:0;width:100%;height:100%;transition-property:transform;display:block;position:relative}.swiper-slide-invisible-blank{visibility:hidden}.swiper-autoheight,.swiper-autoheight .swiper-slide{height:auto}.swiper-autoheight .swiper-wrapper{align-items:flex-start;transition-property:transform,height}.swiper-backface-hidden .swiper-slide{backface-visibility:hidden;transform:translateZ(0)}.swiper-3d.swiper-css-mode .swiper-wrapper{perspective:1200px}.swiper-3d .swiper-wrapper{transform-style:preserve-3d}.swiper-3d{perspective:1200px;& .swiper-cube-shadow,& .swiper-slide{transform-style:preserve-3d}}.swiper-css-mode{&>.swiper-wrapper{scrollbar-width:none;-ms-overflow-style:none;overflow:auto;&::-webkit-scrollbar{display:none}}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:start start}&.swiper-horizontal{&>.swiper-wrapper{scroll-snap-type:x mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-slides-offset-before);scroll-margin-inline-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-inline-end:var(--swiper-slides-offset-after)}}&.swiper-vertical{&>.swiper-wrapper{scroll-snap-type:y mandatory}&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-slides-offset-before);scroll-margin-block-start:var(--swiper-slides-offset-before)}&>.swiper-wrapper>.swiper-slide:last-child{margin-block-end:var(--swiper-slides-offset-after)}}&.swiper-free-mode{&>.swiper-wrapper{scroll-snap-type:none}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:none}}&.swiper-centered{&>.swiper-wrapper:before{content:"";flex-shrink:0;order:9999}&>.swiper-wrapper>.swiper-slide{scroll-snap-align:center center;scroll-snap-stop:always}}&.swiper-centered.swiper-horizontal{&>.swiper-wrapper>.swiper-slide:first-child{margin-inline-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:100%;min-height:1px;width:var(--swiper-centered-offset-after)}}&.swiper-centered.swiper-vertical{&>.swiper-wrapper>.swiper-slide:first-child{margin-block-start:var(--swiper-centered-offset-before)}&>.swiper-wrapper:before{height:var(--swiper-centered-offset-after);width:100%;min-width:1px}}}.swiper-3d{& .swiper-slide-shadow,& .swiper-slide-shadow-bottom,& .swiper-slide-shadow-left,& .swiper-slide-shadow-right,& .swiper-slide-shadow-top{pointer-events:none;z-index:10;width:100%;height:100%;position:absolute;top:0;left:0}& .swiper-slide-shadow{background:#00000026}& .swiper-slide-shadow-left{background-image:linear-gradient(270deg,#00000080,#0000)}& .swiper-slide-shadow-right{background-image:linear-gradient(90deg,#00000080,#0000)}& .swiper-slide-shadow-top{background-image:linear-gradient(#0000,#00000080)}& .swiper-slide-shadow-bottom{background-image:linear-gradient(#00000080,#0000)}}.swiper-lazy-preloader{border:4px solid var(--swiper-preloader-color,var(--swiper-theme-color));box-sizing:border-box;transform-origin:50%;z-index:10;border-top:4px solid #0000;border-radius:50%;width:42px;height:42px;margin-top:-21px;margin-left:-21px;position:absolute;top:50%;left:50%}.swiper-watch-progress .swiper-slide-visible,.swiper:not(.swiper-watch-progress){& .swiper-lazy-preloader{animation:1s linear infinite swiper-preloader-spin}}.swiper-lazy-preloader-white{--swiper-preloader-color:#fff}.swiper-lazy-preloader-black{--swiper-preloader-color:#000}@keyframes swiper-preloader-spin{0%{transform:rotate(0)}to{transform:rotate(1turn)}}.swiper-virtual .swiper-slide{-webkit-backface-visibility:hidden;transform:translateZ(0)}.swiper-virtual.swiper-css-mode{& .swiper-wrapper:after{content:"";pointer-events:none;position:absolute;top:0;left:0}}.swiper-virtual.swiper-css-mode.swiper-horizontal{& .swiper-wrapper:after{height:1px;width:var(--swiper-virtual-size)}}.swiper-virtual.swiper-css-mode.swiper-vertical{& .swiper-wrapper:after{height:var(--swiper-virtual-size);width:1px}}:root{--swiper-navigation-size:44px}.swiper-button-next,.swiper-button-prev{color:var(--swiper-navigation-color,var(--swiper-theme-color));cursor:pointer;height:var(--swiper-navigation-size);width:var(--swiper-navigation-size);z-index:10;justify-content:center;align-items:center;display:flex;position:absolute;&.swiper-button-disabled{cursor:auto;opacity:.35;pointer-events:none}&.swiper-button-hidden{cursor:auto;opacity:0;pointer-events:none}.swiper-navigation-disabled &{display:none!important}& svg{object-fit:contain;transform-origin:50%;fill:currentColor;pointer-events:none;width:100%;height:100%}}.swiper-button-lock{display:none}.swiper-button-next,.swiper-button-prev{margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}.swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto;& .swiper-navigation-icon{transform:rotate(180deg)}}.swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}.swiper-horizontal{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{margin-left:0;margin-top:calc(0px - var(--swiper-navigation-size)/2);top:var(--swiper-navigation-top-offset,50%)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{left:var(--swiper-navigation-sides-offset,4px);right:auto}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev,&~.swiper-button-next,& .swiper-button-next{left:auto;right:var(--swiper-navigation-sides-offset,4px)}&.swiper-rtl .swiper-button-next,&.swiper-rtl~.swiper-button-next,&~.swiper-button-prev,& .swiper-button-prev{& .swiper-navigation-icon{transform:rotate(180deg)}}&.swiper-rtl .swiper-button-prev,&.swiper-rtl~.swiper-button-prev{& .swiper-navigation-icon{transform:rotate(0)}}}.swiper-vertical{& .swiper-button-next,& .swiper-button-prev,&~.swiper-button-next,&~.swiper-button-prev{left:var(--swiper-navigation-top-offset,50%);margin-left:calc(0px - var(--swiper-navigation-size)/2);margin-top:0;right:auto}& .swiper-button-prev,&~.swiper-button-prev{bottom:auto;top:var(--swiper-navigation-sides-offset,4px);& .swiper-navigation-icon{transform:rotate(-90deg)}}& .swiper-button-next,&~.swiper-button-next{bottom:var(--swiper-navigation-sides-offset,4px);top:auto;& .swiper-navigation-icon{transform:rotate(90deg)}}}.swiper-pagination{text-align:center;z-index:10;transition:opacity .3s;position:absolute;transform:translateZ(0);&.swiper-pagination-hidden{opacity:0}&.swiper-pagination-disabled,.swiper-pagination-disabled>&{display:none!important}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-bullets.swiper-pagination-horizontal,.swiper-pagination-custom,.swiper-pagination-fraction{bottom:var(--swiper-pagination-bottom,8px);left:0;top:var(--swiper-pagination-top,auto);width:100%}.swiper-pagination-bullets-dynamic{font-size:0;overflow:hidden;& .swiper-pagination-bullet{position:relative;transform:scale(.33)}& .swiper-pagination-bullet-active,& .swiper-pagination-bullet-active-main{transform:scale(1)}& .swiper-pagination-bullet-active-prev{transform:scale(.66)}& .swiper-pagination-bullet-active-prev-prev{transform:scale(.33)}& .swiper-pagination-bullet-active-next{transform:scale(.66)}& .swiper-pagination-bullet-active-next-next{transform:scale(.33)}}.swiper-pagination-bullet{background:var(--swiper-pagination-bullet-inactive-color,#000);border-radius:var(--swiper-pagination-bullet-border-radius,50%);height:var(--swiper-pagination-bullet-height,var(--swiper-pagination-bullet-size,8px));opacity:var(--swiper-pagination-bullet-inactive-opacity,.2);width:var(--swiper-pagination-bullet-width,var(--swiper-pagination-bullet-size,8px));display:inline-block;button&{appearance:none;box-shadow:none;border:none;margin:0;padding:0}.swiper-pagination-clickable &{cursor:pointer}&:only-child{display:none!important}}.swiper-pagination-bullet-active{background:var(--swiper-pagination-color,var(--swiper-theme-color));opacity:var(--swiper-pagination-bullet-opacity,1)}.swiper-pagination-vertical.swiper-pagination-bullets,.swiper-vertical>.swiper-pagination-bullets{left:var(--swiper-pagination-left,auto);right:var(--swiper-pagination-right,8px);top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{margin:var(--swiper-pagination-bullet-vertical-gap,6px)0;display:block}&.swiper-pagination-bullets-dynamic{width:8px;top:50%;transform:translateY(-50%);& .swiper-pagination-bullet{transition:transform .2s,top .2s;display:inline-block}}}.swiper-horizontal>.swiper-pagination-bullets,.swiper-pagination-horizontal.swiper-pagination-bullets{& .swiper-pagination-bullet{margin:0 var(--swiper-pagination-bullet-horizontal-gap,4px)}&.swiper-pagination-bullets-dynamic{white-space:nowrap;left:50%;transform:translate(-50%);& .swiper-pagination-bullet{transition:transform .2s,left .2s}}}.swiper-horizontal.swiper-rtl>.swiper-pagination-bullets-dynamic .swiper-pagination-bullet{transition:transform .2s,right .2s}.swiper-pagination-fraction{color:var(--swiper-pagination-fraction-color,inherit)}.swiper-pagination-progressbar{background:var(--swiper-pagination-progressbar-bg-color,#00000040);position:absolute;& .swiper-pagination-progressbar-fill{background:var(--swiper-pagination-color,var(--swiper-theme-color));transform-origin:0 0;width:100%;height:100%;position:absolute;top:0;left:0;transform:scale(0)}.swiper-rtl & .swiper-pagination-progressbar-fill{transform-origin:100% 0}&.swiper-pagination-horizontal,&.swiper-pagination-vertical.swiper-pagination-progressbar-opposite,.swiper-horizontal>&,.swiper-vertical>&.swiper-pagination-progressbar-opposite{height:var(--swiper-pagination-progressbar-size,4px);width:100%;top:0;left:0}&.swiper-pagination-horizontal.swiper-pagination-progressbar-opposite,&.swiper-pagination-vertical,.swiper-horizontal>&.swiper-pagination-progressbar-opposite,.swiper-vertical>&{height:100%;width:var(--swiper-pagination-progressbar-size,4px);top:0;left:0}}.swiper-pagination-lock{display:none}.swiper-scrollbar{background:var(--swiper-scrollbar-bg-color,#0000001a);border-radius:var(--swiper-scrollbar-border-radius,10px);touch-action:none;position:relative;&.swiper-scrollbar-disabled,.swiper-scrollbar-disabled>&{display:none!important}&.swiper-scrollbar-horizontal,.swiper-horizontal>&{bottom:var(--swiper-scrollbar-bottom,4px);height:var(--swiper-scrollbar-size,4px);left:var(--swiper-scrollbar-sides-offset,1%);top:var(--swiper-scrollbar-top,auto);width:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);z-index:50;position:absolute}&.swiper-scrollbar-vertical,.swiper-vertical>&{height:calc(100% - var(--swiper-scrollbar-sides-offset,1%)*2);left:var(--swiper-scrollbar-left,auto);right:var(--swiper-scrollbar-right,4px);top:var(--swiper-scrollbar-sides-offset,1%);width:var(--swiper-scrollbar-size,4px);z-index:50;position:absolute}}.swiper-scrollbar-drag{background:var(--swiper-scrollbar-drag-bg-color,#00000080);border-radius:var(--swiper-scrollbar-border-radius,10px);width:100%;height:100%;position:relative;top:0;left:0}.swiper-scrollbar-cursor-drag{cursor:move}.swiper-scrollbar-lock{display:none}.mo-slides-theme{--swiper-theme-color:var(--primary);--swiper-pagination-color:var(--swiper-theme-color);--swiper-pagination-left:auto;--swiper-pagination-right:8px;--swiper-pagination-bottom:8px;--swiper-pagination-top:auto;--swiper-pagination-fraction-color:inherit;--swiper-pagination-progressbar-bg-color:#00000040;--swiper-pagination-progressbar-size:4px;--swiper-pagination-bullet-size:8px;--swiper-pagination-bullet-width:8px;--swiper-pagination-bullet-height:8px;--swiper-pagination-bullet-border-radius:50%;--swiper-pagination-bullet-inactive-color:#000;--swiper-pagination-bullet-inactive-opacity:.2;--swiper-pagination-bullet-opacity:1;--swiper-pagination-bullet-horizontal-gap:4px;--swiper-pagination-bullet-vertical-gap:6px;& .swiper-button-next,& .swiper-button-prev{opacity:0;--swiper-navigation-sides-offset:0;--swiper-navigation-size:20px;background-color:#0000001a;height:100%;margin-top:0;padding:0 15px;font-weight:900;transition:opacity .3s;top:0;bottom:0;&.swiper-button-disabled{opacity:0}&:hover:not(.swiper-button-disabled){opacity:1}}}@font-face{font-family:swiper-icons;font-style:normal;font-weight:400;src:url("data:application/font-woff;charset=utf-8;base64, d09GRgABAAAAAAZgABAAAAAADAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABGRlRNAAAGRAAAABoAAAAci6qHkUdERUYAAAWgAAAAIwAAACQAYABXR1BPUwAABhQAAAAuAAAANuAY7+xHU1VCAAAFxAAAAFAAAABm2fPczU9TLzIAAAHcAAAASgAAAGBP9V5RY21hcAAAAkQAAACIAAABYt6F0cBjdnQgAAACzAAAAAQAAAAEABEBRGdhc3AAAAWYAAAACAAAAAj//wADZ2x5ZgAAAywAAADMAAAD2MHtryVoZWFkAAABbAAAADAAAAA2E2+eoWhoZWEAAAGcAAAAHwAAACQC9gDzaG10eAAAAigAAAAZAAAArgJkABFsb2NhAAAC0AAAAFoAAABaFQAUGG1heHAAAAG8AAAAHwAAACAAcABAbmFtZQAAA/gAAAE5AAACXvFdBwlwb3N0AAAFNAAAAGIAAACE5s74hXjaY2BkYGAAYpf5Hu/j+W2+MnAzMYDAzaX6QjD6/4//Bxj5GA8AuRwMYGkAPywL13jaY2BkYGA88P8Agx4j+/8fQDYfA1AEBWgDAIB2BOoAeNpjYGRgYNBh4GdgYgABEMnIABJzYNADCQAACWgAsQB42mNgYfzCOIGBlYGB0YcxjYGBwR1Kf2WQZGhhYGBiYGVmgAFGBiQQkOaawtDAoMBQxXjg/wEGPcYDDA4wNUA2CCgwsAAAO4EL6gAAeNpj2M0gyAACqxgGNWBkZ2D4/wMA+xkDdgAAAHjaY2BgYGaAYBkGRgYQiAHyGMF8FgYHIM3DwMHABGQrMOgyWDLEM1T9/w8UBfEMgLzE////P/5//f/V/xv+r4eaAAeMbAxwIUYmIMHEgKYAYjUcsDAwsLKxc3BycfPw8jEQA/gZBASFhEVExcQlJKWkZWTl5BUUlZRVVNXUNTQZBgMAAMR+E+gAEQFEAAAAKgAqACoANAA+AEgAUgBcAGYAcAB6AIQAjgCYAKIArAC2AMAAygDUAN4A6ADyAPwBBgEQARoBJAEuATgBQgFMAVYBYAFqAXQBfgGIAZIBnAGmAbIBzgHsAAB42u2NMQ6CUAyGW568x9AneYYgm4MJbhKFaExIOAVX8ApewSt4Bic4AfeAid3VOBixDxfPYEza5O+Xfi04YADggiUIULCuEJK8VhO4bSvpdnktHI5QCYtdi2sl8ZnXaHlqUrNKzdKcT8cjlq+rwZSvIVczNiezsfnP/uznmfPFBNODM2K7MTQ45YEAZqGP81AmGGcF3iPqOop0r1SPTaTbVkfUe4HXj97wYE+yNwWYxwWu4v1ugWHgo3S1XdZEVqWM7ET0cfnLGxWfkgR42o2PvWrDMBSFj/IHLaF0zKjRgdiVMwScNRAoWUoH78Y2icB/yIY09An6AH2Bdu/UB+yxopYshQiEvnvu0dURgDt8QeC8PDw7Fpji3fEA4z/PEJ6YOB5hKh4dj3EvXhxPqH/SKUY3rJ7srZ4FZnh1PMAtPhwP6fl2PMJMPDgeQ4rY8YT6Gzao0eAEA409DuggmTnFnOcSCiEiLMgxCiTI6Cq5DZUd3Qmp10vO0LaLTd2cjN4fOumlc7lUYbSQcZFkutRG7g6JKZKy0RmdLY680CDnEJ+UMkpFFe1RN7nxdVpXrC4aTtnaurOnYercZg2YVmLN/d/gczfEimrE/fs/bOuq29Zmn8tloORaXgZgGa78yO9/cnXm2BpaGvq25Dv9S4E9+5SIc9PqupJKhYFSSl47+Qcr1mYNAAAAeNptw0cKwkAAAMDZJA8Q7OUJvkLsPfZ6zFVERPy8qHh2YER+3i/BP83vIBLLySsoKimrqKqpa2hp6+jq6RsYGhmbmJqZSy0sraxtbO3sHRydnEMU4uR6yx7JJXveP7WrDycAAAAAAAH//wACeNpjYGRgYOABYhkgZgJCZgZNBkYGLQZtIJsFLMYAAAw3ALgAeNolizEKgDAQBCchRbC2sFER0YD6qVQiBCv/H9ezGI6Z5XBAw8CBK/m5iQQVauVbXLnOrMZv2oLdKFa8Pjuru2hJzGabmOSLzNMzvutpB3N42mNgZGBg4GKQYzBhYMxJLMlj4GBgAYow/P/PAJJhLM6sSoWKfWCAAwDAjgbRAAB42mNgYGBkAIIbCZo5IPrmUn0hGA0AO8EFTQAA")}:host:host{display:initial}.mo-slide-content{justify-content:center;width:100%;min-height:fit-content;display:flex;& .output{max-width:100%;width:unset;margin:auto 0}&>:only-child>.output:only-child{flex:1}& div:has(>marimo-ui-element>marimo-vega){flex:1;display:block!important;@media (width>=500px){min-width:350px}}}',O_=class{constructor(){K(this,"tagName","marimo-carousel");K(this,"validator",$({index:F().nullish(),height:Re([F(),H()]).nullish()}));K(this,"cssStyles",[z_,F_,I_,P_,M_,V_])}render(t){return(0,s.jsx)($_,{...t.data,wrapAround:!0,children:t.children})}},$_=x.lazy(()=>Rt(()=>import("./slides-component-Brm_TS4x.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,12,13,8,9,10,6,7,11,158,49,48,28,361]),import.meta.url));const L_=Ht("marimo-download").withData($({data:F(),disabled:W().default(!1),filename:F().nullish(),label:F().nullish(),lazy:W().default(!1)})).withFunctions({load:st.input($({})).output($({data:F(),filename:F().nullish()}))}).renderer(t=>(0,s.jsx)(B_,{data:t.data,...t.functions}));var B_=({data:t,load:e})=>{let[a,r]=(0,x.useState)(!1),n=async l=>{if(t.lazy&&!t.disabled){l.preventDefault(),r(!0);try{let d=await e({});x6(d.data,d.filename||t.filename||"download")}catch(d){na({title:"Failed to download",description:"Please try again."}),se.error("Failed to download:",d)}finally{r(!1)}}},i=a?Rl:_6,o=t.label?Be({html:t.label}):"Download";return(0,s.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:n,className:Ja({variant:"secondary",disabled:t.disabled||a}),children:[(0,s.jsx)(i,{className:Y("w-3 h-3",t.label&&"mr-2",a&&"animate-spin")}),o]})},H_=x.lazy(()=>Rt(()=>import("./ImageComparisonComponent-DvDPDgw3.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([362,8,9,10,11]),import.meta.url)),W_=class{constructor(){K(this,"tagName","marimo-image-comparison");K(this,"validator",$({beforeSrc:F(),afterSrc:F(),value:H().min(0).max(100).default(50),direction:be(["horizontal","vertical"]).default("horizontal"),width:F().optional(),height:F().optional()}))}render(t){return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading image comparison..."}),children:(0,s.jsx)(H_,{...t.data})})}},U_=class{constructor(){K(this,"tagName","marimo-json-output");K(this,"validator",$({name:F().nullish(),jsonData:Za(),valueTypes:be(["json","python"]).default("python")}))}render({data:t,host:e}){let a=t.name===void 0?!1:t.name||"";return(0,s.jsx)(Lv,{container:e.shadowRoot,children:(0,s.jsx)(Wv,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:a})})}},K_=ee();const Z_=Ht("marimo-lazy").withData($({showLoadingIndicator:W().default(!1)})).withFunctions({load:st.input($({})).output($({html:F()}))}).renderer(t=>(0,s.jsx)(q_,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var q_=t=>{let e=(0,K_.c)(15),{load:a,showLoadingIndicator:r,value:n,setValue:i}=t,o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={threshold:0,root:null,rootMargin:"0px"},e[0]=o):o=e[0];let[l,d]=xT(o);d!=null&&d.isIntersecting&&!n&&i(!0);let u;e[1]!==a||e[2]!==n?(u=y=>n?a({}):(y.previous(),Promise.resolve(void 0)),e[1]=a,e[2]=n,e[3]=u):u=e[3];let c;e[4]===n?c=e[5]:(c=[n],e[4]=n,e[5]=c);let{data:m,error:p,isPending:h}=Ot(u,c);if(p){let y;return e[6]===p?y=e[7]:(y=(0,s.jsx)(wn,{error:p}),e[6]=p,e[7]=y),y}let g;e[8]!==m||e[9]!==h||e[10]!==r?(g=h&&r?(0,s.jsx)(Rl,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):m&&Be({html:m.html}),e[8]=m,e[9]=h,e[10]=r,e[11]=g):g=e[11];let f;return e[12]!==l||e[13]!==g?(f=(0,s.jsx)("div",{ref:l,className:"min-h-4",children:g}),e[12]=l,e[13]=g,e[14]=f):f=e[14],f},Y_=class{constructor(){K(this,"tagName","marimo-mime-renderer");K(this,"validator",$({mime:F().transform(t=>t),data:Re([F(),un(),Dt(F(),Za()),Q(qt())]).transform(t=>t)}))}render({data:t}){return t.data?(0,s.jsx)(NT,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,s.jsx)("div",{})}},G_=class{constructor(){K(this,"tagName","marimo-mermaid");K(this,"validator",$({diagram:F()}))}render(t){return(0,s.jsx)(J_,{diagram:t.data.diagram})}},J_=(0,x.lazy)(()=>Rt(()=>import("./mermaid-Djr3jUAB.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([363,4,14,13,8,9,10,15,11,25,26,27,97,28,98,81,12,6,7,99,31,47,24,29,30,364,365,366,367,341,368,352,350,369,63,102,370,371,372,373,374,375,376,377,378,379,353,346,351]),import.meta.url)),Q_=ee(),X_=t=>{let e=(0,Q_.c)(12),{label:a}=t,{items:r}=gl(HR),n;e[0]===r?n=e[1]:(n=RI(r),e[0]=r,e[1]=n);let{activeHeaderId:i,activeOccurrences:o}=NI(n);if(r.length===0){let c;return e[2]===Symbol.for("react.memo_cache_sentinel")?(c=(0,s.jsx)("div",{className:"text-muted-foreground text-sm p-4 border border-dashed border-border rounded-lg",children:"No outline found. Add markdown headings to your notebook to create an outline."}),e[2]=c):c=e[2],c}let l;e[3]===a?l=e[4]:(l=a&&(0,s.jsx)("div",{className:"px-4 py-2 border-b border-border font-medium text-sm",children:a}),e[3]=a,e[4]=l);let d;e[5]!==i||e[6]!==o||e[7]!==r?(d=(0,s.jsx)(_I,{className:"max-h-[400px]",items:r,activeHeaderId:i,activeOccurrences:o}),e[5]=i,e[6]=o,e[7]=r,e[8]=d):d=e[8];let u;return e[9]!==l||e[10]!==d?(u=(0,s.jsxs)("div",{className:"border border-border rounded-lg",children:[l,d]}),e[9]=l,e[10]=d,e[11]=u):u=e[11],u},eR=class{constructor(){K(this,"tagName","marimo-outline");K(this,"validator",$({label:F().optional()}))}render(t){let{label:e}=t.data;return(0,s.jsx)(hl,{store:Le,children:(0,s.jsx)(X_,{label:e})})}},tR=Qu(((t,e)=>{(function(){var a=Object.assign||function(v){for(var C,R=1;R<arguments.length;R++)for(var _ in C=arguments[R],C)b(C,_)&&(v[_]=C[_]);return v},r=Array.isArray||function(v){return Object.prototype.toString.call(v)==="[object Array]"},n=d(["\u03C7\u03C1\u03CC\u03BD\u03BF\u03C2","\u03C7\u03C1\u03CC\u03BD\u03B9\u03B1"],["\u03BC\u03AE\u03BD\u03B1\u03C2","\u03BC\u03AE\u03BD\u03B5\u03C2"],["\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B1","\u03B5\u03B2\u03B4\u03BF\u03BC\u03AC\u03B4\u03B5\u03C2"],["\u03BC\u03AD\u03C1\u03B1","\u03BC\u03AD\u03C1\u03B5\u03C2"],["\u03CE\u03C1\u03B1","\u03CE\u03C1\u03B5\u03C2"],["\u03BB\u03B5\u03C0\u03C4\u03CC","\u03BB\u03B5\u03C0\u03C4\u03AC"],["\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03BF","\u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03CC\u03BB\u03B5\u03C0\u03C4\u03B1"],["\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03CC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5","\u03C7\u03B9\u03BB\u03B9\u03BF\u03C3\u03C4\u03AC \u03C4\u03BF\u03C5 \u03B4\u03B5\u03C5\u03C4\u03B5\u03C1\u03BF\u03BB\u03AD\u03C0\u03C4\u03BF\u03C5"],","),i={af:d(["jaar","jaar"],["maand","maande"],["week","weke"],["dag","dae"],["uur","ure"],["minuut","minute"],["sekonde","sekondes"],["millisekonde","millisekondes"],","),am:o("\u12D3\u1218\u1275","\u12C8\u122D","\u1233\u121D\u1295\u1275","\u1240\u1295","\u1230\u12D3\u1275","\u12F0\u1242\u1243","\u1230\u12A8\u1295\u12F5","\u121A\u120A\u1230\u12A8\u1295\u12F5"),ar:a(o(function(v){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][p(v)]},function(v){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][p(v)]},function(v){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][p(v)]},function(v){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][p(v)]},function(v){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][p(v)]},function(v){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][p(v)]},function(v){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][p(v)]},function(v){return["\u062C\u0632\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u062C\u0632\u0622\u0646 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629","\u0623\u062C\u0632\u0627\u0621 \u0645\u0646 \u0627\u0644\u062B\u0627\u0646\u064A\u0629"][p(v)]},","),{delimiter:" \uFEED ",_hideCountIf2:!0,_digitReplacements:["\u06F0","\u0661","\u0662","\u0663","\u0664","\u0665","\u0666","\u0667","\u0668","\u0669"]}),bg:m(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446\u0430","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u0441\u0435\u0434\u043C\u0438\u0446\u0438","\u0441\u0435\u0434\u043C\u0438\u0446\u0430","\u0441\u0435\u0434\u043C\u0438\u0446\u0438"],["\u0434\u043D\u0438","\u0434\u0435\u043D","\u0434\u043D\u0438"],["\u0447\u0430\u0441\u0430","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0438","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),bn:o("\u09AC\u099B\u09B0","\u09AE\u09BE\u09B8","\u09B8\u09AA\u09CD\u09A4\u09BE\u09B9","\u09A6\u09BF\u09A8","\u0998\u09A8\u09CD\u099F\u09BE","\u09AE\u09BF\u09A8\u09BF\u099F","\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1","\u09AE\u09BF\u09B2\u09BF\u09B8\u09C7\u0995\u09C7\u09A8\u09CD\u09A1"),ca:d(["any","anys"],["mes","mesos"],["setmana","setmanes"],["dia","dies"],["hora","hores"],["minut","minuts"],["segon","segons"],["milisegon","milisegons"],","),ckb:o("\u0633\u0627\u06B5","\u0645\u0627\u0646\u06AF","\u0647\u06D5\u0641\u062A\u06D5","\u0695\u06C6\u0698","\u06A9\u0627\u0698\u06CE\u0631","\u062E\u0648\u0644\u06D5\u06A9","\u0686\u0631\u06A9\u06D5","\u0645\u06CC\u0644\u06CC \u0686\u0631\u06A9\u06D5","."),cs:o(function(v){return["rok","roku","roky","let"][g(v)]},function(v){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(v)]},function(v){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(v)]},function(v){return["den","dne","dny","dn\xED"][g(v)]},function(v){return["hodina","hodiny","hodiny","hodin"][g(v)]},function(v){return["minuta","minuty","minuty","minut"][g(v)]},function(v){return["sekunda","sekundy","sekundy","sekund"][g(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisekund"][g(v)]},","),cy:o("flwyddyn","mis","wythnos","diwrnod","awr","munud","eiliad","milieiliad"),da:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uge","uger"],["dag","dage"],["time","timer"],["minut","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),de:d(["Jahr","Jahre"],["Monat","Monate"],["Woche","Wochen"],["Tag","Tage"],["Stunde","Stunden"],["Minute","Minuten"],["Sekunde","Sekunden"],["Millisekunde","Millisekunden"],","),el:n,en:d(["year","years"],["month","months"],["week","weeks"],["day","days"],["hour","hours"],["minute","minutes"],["second","seconds"],["millisecond","milliseconds"]),eo:d(["jaro","jaroj"],["monato","monatoj"],["semajno","semajnoj"],["tago","tagoj"],["horo","horoj"],["minuto","minutoj"],["sekundo","sekundoj"],["milisekundo","milisekundoj"],","),es:d(["a\xF1o","a\xF1os"],["mes","meses"],["semana","semanas"],["d\xEDa","d\xEDas"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milisegundo","milisegundos"],","),et:d(["aasta","aastat"],["kuu","kuud"],["n\xE4dal","n\xE4dalat"],["p\xE4ev","p\xE4eva"],["tund","tundi"],["minut","minutit"],["sekund","sekundit"],["millisekund","millisekundit"],","),eu:o("urte","hilabete","aste","egun","ordu","minutu","segundo","milisegundo",","),fa:o("\u0633\u0627\u0644","\u0645\u0627\u0647","\u0647\u0641\u062A\u0647","\u0631\u0648\u0632","\u0633\u0627\u0639\u062A","\u062F\u0642\u06CC\u0642\u0647","\u062B\u0627\u0646\u06CC\u0647","\u0645\u06CC\u0644\u06CC \u062B\u0627\u0646\u06CC\u0647"),fi:d(["vuosi","vuotta"],["kuukausi","kuukautta"],["viikko","viikkoa"],["p\xE4iv\xE4","p\xE4iv\xE4\xE4"],["tunti","tuntia"],["minuutti","minuuttia"],["sekunti","sekuntia"],["millisekunti","millisekuntia"],","),fo:d(["\xE1r","\xE1r"],["m\xE1na\xF0ur","m\xE1na\xF0ir"],["vika","vikur"],["dagur","dagar"],["t\xEDmi","t\xEDmar"],["minuttur","minuttir"],["sekund","sekund"],["millisekund","millisekund"],","),fr:o(function(v){return"an"+(v>=2?"s":"")},"mois",function(v){return"semaine"+(v>=2?"s":"")},function(v){return"jour"+(v>=2?"s":"")},function(v){return"heure"+(v>=2?"s":"")},function(v){return"minute"+(v>=2?"s":"")},function(v){return"seconde"+(v>=2?"s":"")},function(v){return"milliseconde"+(v>=2?"s":"")},","),gr:n,he:d(["\u05E9\u05E0\u05D4","\u05E9\u05E0\u05D9\u05DD"],["\u05D7\u05D5\u05D3\u05E9","\u05D7\u05D5\u05D3\u05E9\u05D9\u05DD"],["\u05E9\u05D1\u05D5\u05E2","\u05E9\u05D1\u05D5\u05E2\u05D5\u05EA"],["\u05D9\u05D5\u05DD","\u05D9\u05DE\u05D9\u05DD"],["\u05E9\u05E2\u05D4","\u05E9\u05E2\u05D5\u05EA"],["\u05D3\u05E7\u05D4","\u05D3\u05E7\u05D5\u05EA"],["\u05E9\u05E0\u05D9\u05D4","\u05E9\u05E0\u05D9\u05D5\u05EA"],["\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D9\u05D4","\u05DE\u05D9\u05DC\u05D9\u05E9\u05E0\u05D9\u05D5\u05EA"]),hr:o(function(v){return v%10==2||v%10==3||v%10==4?"godine":"godina"},function(v){return v===1?"mjesec":v===2||v===3||v===4?"mjeseca":"mjeseci"},function(v){return v%10==1&&v!==11?"tjedan":"tjedna"},l(["dan","dana"]),function(v){return v===1?"sat":v===2||v===3||v===4?"sata":"sati"},function(v){var C=v%10;return(C===2||C===3||C===4)&&(v<10||v>14)?"minute":"minuta"},function(v){var C=v%10;return C===5||Math.floor(v)===v&&v>=10&&v<=19?"sekundi":C===1?"sekunda":C===2||C===3||C===4?"sekunde":"sekundi"},function(v){return v===1?"milisekunda":v%10==2||v%10==3||v%10==4?"milisekunde":"milisekundi"},","),hi:o("\u0938\u093E\u0932",l(["\u092E\u0939\u0940\u0928\u093E","\u092E\u0939\u0940\u0928\u0947"]),l(["\u0939\u095E\u094D\u0924\u093E","\u0939\u092B\u094D\u0924\u0947"]),"\u0926\u093F\u0928",l(["\u0918\u0902\u091F\u093E","\u0918\u0902\u091F\u0947"]),"\u092E\u093F\u0928\u091F","\u0938\u0947\u0915\u0902\u0921","\u092E\u093F\u0932\u0940\u0938\u0947\u0915\u0902\u0921"),hu:o("\xE9v","h\xF3nap","h\xE9t","nap","\xF3ra","perc","m\xE1sodperc","ezredm\xE1sodperc",","),id:o("tahun","bulan","minggu","hari","jam","menit","detik","milidetik"),is:d(["\xE1r","\xE1r"],["m\xE1nu\xF0ur","m\xE1nu\xF0ir"],["vika","vikur"],["dagur","dagar"],["klukkut\xEDmi","klukkut\xEDmar"],["m\xEDn\xFAta","m\xEDn\xFAtur"],["sek\xFAnda","sek\xFAndur"],["millisek\xFAnda","millisek\xFAndur"]),it:d(["anno","anni"],["mese","mesi"],["settimana","settimane"],["giorno","giorni"],["ora","ore"],["minuto","minuti"],["secondo","secondi"],["millisecondo","millisecondi"],","),ja:o("\u5E74","\u30F6\u6708","\u9031\u9593","\u65E5","\u6642\u9593","\u5206","\u79D2","\u30DF\u30EA\u79D2"),km:o("\u1786\u17D2\u1793\u17B6\u17C6","\u1781\u17C2","\u179F\u1794\u17D2\u178F\u17B6\u17A0\u17CD","\u1790\u17D2\u1784\u17C3","\u1798\u17C9\u17C4\u1784","\u1793\u17B6\u1791\u17B8","\u179C\u17B7\u1793\u17B6\u1791\u17B8","\u1798\u17B7\u179B\u17D2\u179B\u17B8\u179C\u17B7\u1793\u17B6\u1791\u17B8"),kn:d(["\u0CB5\u0CB0\u0CCD\u0CB7","\u0CB5\u0CB0\u0CCD\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1","\u0CA4\u0CBF\u0C82\u0C97\u0CB3\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CB5\u0CBE\u0CB0","\u0CB5\u0CBE\u0CB0\u0C97\u0CB3\u0CC1"],["\u0CA6\u0CBF\u0CA8","\u0CA6\u0CBF\u0CA8\u0C97\u0CB3\u0CC1"],["\u0C97\u0C82\u0C9F\u0CC6","\u0C97\u0C82\u0C9F\u0CC6\u0C97\u0CB3\u0CC1"],["\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7","\u0CA8\u0CBF\u0CAE\u0CBF\u0CB7\u0C97\u0CB3\u0CC1"],["\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"],["\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CCD","\u0CAE\u0CBF\u0CB2\u0CBF\u0CB8\u0CC6\u0C95\u0CC6\u0C82\u0CA1\u0CC1\u0C97\u0CB3\u0CC1"]),ko:o("\uB144","\uAC1C\uC6D4","\uC8FC\uC77C","\uC77C","\uC2DC\uAC04","\uBD84","\uCD08","\uBC00\uB9AC \uCD08"),ku:o("sal","meh","hefte","roj","seet","deqe","saniye","m\xEEl\xEE\xE7irk",","),lo:o("\u0E9B\u0EB5","\u0EC0\u0E94\u0EB7\u0EAD\u0E99","\u0EAD\u0EB2\u0E97\u0EB4\u0E94","\u0EA1\u0EB7\u0EC9","\u0E8A\u0EBB\u0EC8\u0EA7\u0EC2\u0EA1\u0E87","\u0E99\u0EB2\u0E97\u0EB5","\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5","\u0EA1\u0EB4\u0E99\u0EA5\u0EB4\u0EA7\u0EB4\u0E99\u0EB2\u0E97\u0EB5",","),lt:o(function(v){return v%10==0||v%100>=10&&v%100<=20?"met\u0173":"metai"},function(v){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][f(v)]},function(v){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][f(v)]},function(v){return["diena","dienos","dien\u0173"][f(v)]},function(v){return["valanda","valandos","valand\u0173"][f(v)]},function(v){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][f(v)]},function(v){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][f(v)]},function(v){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][f(v)]},","),lv:o(function(v){return y(v)?"gads":"gadi"},function(v){return y(v)?"m\u0113nesis":"m\u0113ne\u0161i"},function(v){return y(v)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(v){return y(v)?"diena":"dienas"},function(v){return y(v)?"stunda":"stundas"},function(v){return y(v)?"min\u016Bte":"min\u016Btes"},function(v){return y(v)?"sekunde":"sekundes"},function(v){return y(v)?"milisekunde":"milisekundes"},","),mk:d(["\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0438"],["\u043D\u0435\u0434\u0435\u043B\u0430","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u0435\u043D","\u0434\u0435\u043D\u0430"],["\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],","),mn:o("\u0436\u0438\u043B","\u0441\u0430\u0440","\u0434\u043E\u043B\u043E\u043E \u0445\u043E\u043D\u043E\u0433","\u04E9\u0434\u04E9\u0440","\u0446\u0430\u0433","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),mr:o(l(["\u0935\u0930\u094D\u0937","\u0935\u0930\u094D\u0937\u0947"]),l(["\u092E\u0939\u093F\u0928\u093E","\u092E\u0939\u093F\u0928\u0947"]),l(["\u0906\u0920\u0935\u0921\u093E","\u0906\u0920\u0935\u0921\u0947"]),"\u0926\u093F\u0935\u0938","\u0924\u093E\u0938",l(["\u092E\u093F\u0928\u093F\u091F","\u092E\u093F\u0928\u093F\u091F\u0947"]),"\u0938\u0947\u0915\u0902\u0926","\u092E\u093F\u0932\u093F\u0938\u0947\u0915\u0902\u0926"),ms:o("tahun","bulan","minggu","hari","jam","minit","saat","milisaat"),nl:d(["jaar","jaar"],["maand","maanden"],["week","weken"],["dag","dagen"],["uur","uur"],["minuut","minuten"],["seconde","seconden"],["milliseconde","milliseconden"],","),no:d(["\xE5r","\xE5r"],["m\xE5ned","m\xE5neder"],["uke","uker"],["dag","dager"],["time","timer"],["minutt","minutter"],["sekund","sekunder"],["millisekund","millisekunder"],","),pl:o(function(v){return["rok","roku","lata","lat"][h(v)]},function(v){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][h(v)]},function(v){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][h(v)]},function(v){return["dzie\u0144","dnia","dni","dni"][h(v)]},function(v){return["godzina","godziny","godziny","godzin"][h(v)]},function(v){return["minuta","minuty","minuty","minut"][h(v)]},function(v){return["sekunda","sekundy","sekundy","sekund"][h(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisekund"][h(v)]},","),pt:d(["ano","anos"],["m\xEAs","meses"],["semana","semanas"],["dia","dias"],["hora","horas"],["minuto","minutos"],["segundo","segundos"],["milissegundo","milissegundos"],","),ro:o(u("an","ani","de ani"),u("lun\u0103","luni","de luni"),u("s\u0103pt\u0103m\xE2n\u0103","s\u0103pt\u0103m\xE2ni","de s\u0103pt\u0103m\xE2ni"),u("zi","zile","de zile"),u("or\u0103","ore","de ore"),u("minut","minute","de minute"),u("secund\u0103","secunde","de secunde"),u("milisecund\u0103","milisecunde","de milisecunde"),","),ru:m(["\u043B\u0435\u0442","\u0433\u043E\u0434","\u0433\u043E\u0434\u0430"],["\u043C\u0435\u0441\u044F\u0446\u0435\u0432","\u043C\u0435\u0441\u044F\u0446","\u043C\u0435\u0441\u044F\u0446\u0430"],["\u043D\u0435\u0434\u0435\u043B\u044C","\u043D\u0435\u0434\u0435\u043B\u044F","\u043D\u0435\u0434\u0435\u043B\u0438"],["\u0434\u043D\u0435\u0439","\u0434\u0435\u043D\u044C","\u0434\u043D\u044F"],["\u0447\u0430\u0441\u043E\u0432","\u0447\u0430\u0441","\u0447\u0430\u0441\u0430"],["\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442\u044B"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u044B"],["\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u044B"]),sq:o(l(["vit","vjet"]),"muaj","jav\xEB","dit\xEB","or\xEB",function(v){return"minut"+(v===1?"\xEB":"a")},function(v){return"sekond"+(v===1?"\xEB":"a")},function(v){return"milisekond"+(v===1?"\xEB":"a")},","),sr:m(["\u0433\u043E\u0434\u0438\u043D\u0438","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0435"],["\u043C\u0435\u0441\u0435\u0446\u0438","\u043C\u0435\u0441\u0435\u0446","\u043C\u0435\u0441\u0435\u0446\u0430"],["\u043D\u0435\u0434\u0435\u0459\u0438","\u043D\u0435\u0434\u0435\u0459\u0430","\u043D\u0435\u0434\u0435\u0459\u0435"],["\u0434\u0430\u043D\u0438","\u0434\u0430\u043D","\u0434\u0430\u043D\u0430"],["\u0441\u0430\u0442\u0438","\u0441\u0430\u0442","\u0441\u0430\u0442\u0430"],["\u043C\u0438\u043D\u0443\u0442\u0430","\u043C\u0438\u043D\u0443\u0442","\u043C\u0438\u043D\u0443\u0442\u0430"],["\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0435"],["\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0438","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0438\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434\u0435"]),sr_Latn:m(["godini","godina","godine"],["meseci","mesec","meseca"],["nedelji","nedelja","nedelje"],["dani","dan","dana"],["sati","sat","sata"],["minuta","minut","minuta"],["sekundi","sekunda","sekunde"],["milisekundi","milisekunda","milisekunde"]),ta:d(["\u0BB5\u0BB0\u0BC1\u0B9F\u0BAE\u0BCD","\u0B86\u0BA3\u0BCD\u0B9F\u0BC1\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBE\u0BA4\u0BAE\u0BCD","\u0BAE\u0BBE\u0BA4\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBE\u0BB0\u0BAE\u0BCD","\u0BB5\u0BBE\u0BB0\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BA8\u0BBE\u0BB3\u0BCD","\u0BA8\u0BBE\u0B9F\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BA3\u0BBF","\u0BAE\u0BA3\u0BBF\u0BA8\u0BC7\u0BB0\u0BAE\u0BCD"],["\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0BAE\u0BCD","\u0BA8\u0BBF\u0BAE\u0BBF\u0B9F\u0B99\u0BCD\u0B95\u0BB3\u0BCD"],["\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF","\u0BB5\u0BBF\u0BA9\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"],["\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF","\u0BAE\u0BBF\u0BB2\u0BCD\u0BB2\u0BBF \u0BB5\u0BBF\u0BA8\u0BBE\u0B9F\u0BBF\u0B95\u0BB3\u0BCD"]),te:d(["\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C02","\u0C38\u0C02\u0C35\u0C24\u0C4D\u0C38\u0C30\u0C3E\u0C32"],["\u0C28\u0C46\u0C32","\u0C28\u0C46\u0C32\u0C32"],["\u0C35\u0C3E\u0C30\u0C02","\u0C35\u0C3E\u0C30\u0C3E\u0C32\u0C41"],["\u0C30\u0C4B\u0C1C\u0C41","\u0C30\u0C4B\u0C1C\u0C41\u0C32\u0C41"],["\u0C17\u0C02\u0C1F","\u0C17\u0C02\u0C1F\u0C32\u0C41"],["\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C02","\u0C28\u0C3F\u0C2E\u0C3F\u0C37\u0C3E\u0C32\u0C41"],["\u0C38\u0C46\u0C15\u0C28\u0C41","\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"],["\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D","\u0C2E\u0C3F\u0C32\u0C4D\u0C32\u0C40\u0C38\u0C46\u0C15\u0C28\u0C4D\u0C32\u0C41"]),uk:m(["\u0440\u043E\u043A\u0456\u0432","\u0440\u0456\u043A","\u0440\u043E\u043A\u0438"],["\u043C\u0456\u0441\u044F\u0446\u0456\u0432","\u043C\u0456\u0441\u044F\u0446\u044C","\u043C\u0456\u0441\u044F\u0446\u0456"],["\u0442\u0438\u0436\u043D\u0456\u0432","\u0442\u0438\u0436\u0434\u0435\u043D\u044C","\u0442\u0438\u0436\u043D\u0456"],["\u0434\u043D\u0456\u0432","\u0434\u0435\u043D\u044C","\u0434\u043D\u0456"],["\u0433\u043E\u0434\u0438\u043D","\u0433\u043E\u0434\u0438\u043D\u0430","\u0433\u043E\u0434\u0438\u043D\u0438"],["\u0445\u0432\u0438\u043B\u0438\u043D","\u0445\u0432\u0438\u043B\u0438\u043D\u0430","\u0445\u0432\u0438\u043B\u0438\u043D\u0438"],["\u0441\u0435\u043A\u0443\u043D\u0434","\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u0441\u0435\u043A\u0443\u043D\u0434\u0438"],["\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0430","\u043C\u0456\u043B\u0456\u0441\u0435\u043A\u0443\u043D\u0434\u0438"]),ur:o("\u0633\u0627\u0644",l(["\u0645\u06C1\u06CC\u0646\u06C1","\u0645\u06C1\u06CC\u0646\u06D2"]),l(["\u06C1\u0641\u062A\u06C1","\u06C1\u0641\u062A\u06D2"]),"\u062F\u0646",l(["\u06AF\u06BE\u0646\u0679\u06C1","\u06AF\u06BE\u0646\u0679\u06D2"]),"\u0645\u0646\u0679","\u0633\u06CC\u06A9\u0646\u0688","\u0645\u0644\u06CC \u0633\u06CC\u06A9\u0646\u0688"),sk:o(function(v){return["rok","roky","roky","rokov"][g(v)]},function(v){return["mesiac","mesiace","mesiace","mesiacov"][g(v)]},function(v){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(v)]},function(v){return["de\u0148","dni","dni","dn\xED"][g(v)]},function(v){return["hodina","hodiny","hodiny","hod\xEDn"][g(v)]},function(v){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(v)]},function(v){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(v)]},function(v){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(v)]},","),sl:o(function(v){return v%10==1?"leto":v%100==2?"leti":v%100==3||v%100==4||Math.floor(v)!==v&&v%100<=5?"leta":"let"},function(v){return v%10==1?"mesec":v%100==2||Math.floor(v)!==v&&v%100<=5?"meseca":v%10==3||v%10==4?"mesece":"mesecev"},function(v){return v%10==1?"teden":v%10==2||Math.floor(v)!==v&&v%100<=4?"tedna":v%10==3||v%10==4?"tedne":"tednov"},function(v){return v%100==1?"dan":"dni"},function(v){return v%10==1?"ura":v%100==2?"uri":v%10==3||v%10==4||Math.floor(v)!==v?"ure":"ur"},function(v){return v%10==1?"minuta":v%10==2?"minuti":v%10==3||v%10==4||Math.floor(v)!==v&&v%100<=4?"minute":"minut"},function(v){return v%10==1?"sekunda":v%100==2?"sekundi":v%100==3||v%100==4||Math.floor(v)!==v?"sekunde":"sekund"},function(v){return v%10==1?"milisekunda":v%100==2?"milisekundi":v%100==3||v%100==4||Math.floor(v)!==v?"milisekunde":"milisekund"},","),sv:d(["\xE5r","\xE5r"],["m\xE5nad","m\xE5nader"],["vecka","veckor"],["dag","dagar"],["timme","timmar"],["minut","minuter"],["sekund","sekunder"],["millisekund","millisekunder"],","),sw:a(d(["mwaka","miaka"],["mwezi","miezi"],["wiki","wiki"],["siku","masiku"],["saa","masaa"],["dakika","dakika"],["sekunde","sekunde"],["milisekunde","milisekunde"]),{_numberFirst:!0}),tr:o("y\u0131l","ay","hafta","g\xFCn","saat","dakika","saniye","milisaniye",","),th:o("\u0E1B\u0E35","\u0E40\u0E14\u0E37\u0E2D\u0E19","\u0E2A\u0E31\u0E1B\u0E14\u0E32\u0E2B\u0E4C","\u0E27\u0E31\u0E19","\u0E0A\u0E31\u0E48\u0E27\u0E42\u0E21\u0E07","\u0E19\u0E32\u0E17\u0E35","\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35","\u0E21\u0E34\u0E25\u0E25\u0E34\u0E27\u0E34\u0E19\u0E32\u0E17\u0E35"),uz:o("yil","oy","hafta","kun","soat","minut","sekund","millisekund"),uz_CYR:o("\u0439\u0438\u043B","\u043E\u0439","\u04B3\u0430\u0444\u0442\u0430","\u043A\u0443\u043D","\u0441\u043E\u0430\u0442","\u043C\u0438\u043D\u0443\u0442","\u0441\u0435\u043A\u0443\u043D\u0434","\u043C\u0438\u043B\u043B\u0438\u0441\u0435\u043A\u0443\u043D\u0434"),vi:o("n\u0103m","th\xE1ng","tu\u1EA7n","ng\xE0y","gi\u1EDD","ph\xFAt","gi\xE2y","mili gi\xE2y",","),zh_CN:o("\u5E74","\u4E2A\u6708","\u5468","\u5929","\u5C0F\u65F6","\u5206\u949F","\u79D2","\u6BEB\u79D2"),zh_TW:o("\u5E74","\u500B\u6708","\u5468","\u5929","\u5C0F\u6642","\u5206\u9418","\u79D2","\u6BEB\u79D2")};function o(v,C,R,_,I,V,T,A,E){var M={y:v,mo:C,w:R,d:_,h:I,m:V,s:T,ms:A};return E&&(M.decimal=E),M}function l(v){return function(C){return C===1?v[0]:v[1]}}function d(v,C,R,_,I,V,T,A,E){return o(l(v),l(C),l(R),l(_),l(I),l(V),l(T),l(A),E)}function u(v,C,R){return function(_){if(_===1)return v;if(Math.floor(_)!==_||_===0)return C;var I=_%100;return I>=1&&I<=19?C:R}}function c(v){return function(C){return Math.floor(C)===C?C%100>=5&&C%100<=20||C%10>=5&&C%10<=9||C%10==0?v[0]:C%10==1?v[1]:C>1?v[2]:v[1]:v[2]}}function m(v,C,R,_,I,V,T,A){return o(c(v),c(C),c(R),c(_),c(I),c(V),c(T),c(A),",")}function p(v){return v===2?1:v>2&&v<11?2:0}function h(v){return v===1?0:Math.floor(v)===v?v%10>=2&&v%10<=4&&!(v%100>10&&v%100<20)?2:3:1}function g(v){return v===1?0:Math.floor(v)===v?v%10>=2&&v%10<=4&&v%100<10?2:3:1}function f(v){return v===1||v%10==1&&v%100>20?0:Math.floor(v)!==v||v%10>=2&&v%100>20||v%10>=2&&v%100<10?1:2}function y(v){return v%10==1&&v%100!=11}function b(v,C){return Object.prototype.hasOwnProperty.call(v,C)}function w(v){var C=[v.language];if(b(v,"fallbacks"))if(r(v.fallbacks)&&v.fallbacks.length)C=C.concat(v.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var R=0;R<C.length;R++){var _=C[R];if(b(v.languages,_))return v.languages[_];if(b(i,_))return i[_]}throw Error("No language found.")}function D(v,C,R){var _=v.unitName,I=v.unitCount,V=R.spacer,T=R.maxDecimalPoints,A=b(R,"decimal")?R.decimal:b(C,"decimal")?C.decimal:".",E;"digitReplacements"in R?E=R.digitReplacements:"_digitReplacements"in C&&(E=C._digitReplacements);var M,P=(T===void 0?I:Math.floor(I*10**T)/10**T).toString();if(C._hideCountIf2&&I===2)M="",V="";else if(E){M="";for(var O=0;O<P.length;O++){var z=P[O];z==="."?M+=A:M+=E[z]}}else M=P.replace(".",A);var L=C[_],J=typeof L=="function"?L(I):L;return C._numberFirst?J+V+M:M+V+J}function j(v,C){var R,_,I,V,T=C.units,A=C.unitMeasures,E="largest"in C?C.largest:1/0;if(!T.length)return[];var M={};for(V=v,_=0;_<T.length;_++){R=T[_];var P=A[R];I=_===T.length-1?V/P:Math.floor(V/P),M[R]=I,V-=I*P}if(C.round){var O=E;for(_=0;_<T.length;_++)if(R=T[_],I=M[R],I!==0&&(O--,O===0)){for(var z=_+1;z<T.length;z++){var L=T[z],J=M[L];M[R]+=J*A[L]/A[R],M[L]=0}break}for(_=T.length-1;_>=0;_--)if(R=T[_],I=M[R],I!==0){var X=Math.round(I);if(M[R]=X,_===0)break;var ae=T[_-1],me=A[ae],le=Math.floor(X*A[R]/me);if(le)M[ae]+=le,M[R]=0;else break}}var q=[];for(_=0;_<T.length&&q.length<E;_++)R=T[_],I=M[R],I&&q.push({unitName:R,unitCount:I});return q}function k(v,C){var R=w(C);if(!v.length){var _=C.units,I=_[_.length-1];return D({unitName:I,unitCount:0},R,C)}for(var V=C.conjunction,T=C.serialComma,A=b(C,"delimiter")?C.delimiter:b(R,"delimiter")?R.delimiter:", ",E=[],M=0;M<v.length;M++)E.push(D(v[M],R,C));return!V||v.length===1?E.join(A):v.length===2?E.join(V):E.slice(0,-1).join(A)+(T?",":"")+V+E.slice(-1)}function N(v){var C=function(R,_){R=Math.abs(R);var I=a({},C,_||{});return k(j(R,I),I)};return a(C,{language:"en",spacer:" ",conjunction:"",serialComma:!0,units:["y","mo","w","d","h","m","s"],languages:{},round:!1,unitMeasures:{y:315576e5,mo:26298e5,w:6048e5,d:864e5,h:36e5,m:6e4,s:1e3,ms:1}},v)}var S=a(N({}),{getSupportedLanguages:function(){var v=[];for(var C in i)b(i,C)&&C!=="gr"&&v.push(C);return v},humanizer:N});typeof define=="function"&&define.amd?define(function(){return S}):e!==void 0&&e.exports?e.exports=S:this.humanizeDuration=S})()})),aR=ee(),rR=_a(tR(),1),nR=class{constructor(){K(this,"tagName","marimo-progress");K(this,"validator",$({title:F().optional(),subtitle:F().optional(),progress:Re([H(),W()]),total:H().optional(),eta:H().optional(),rate:H().optional()}))}render(t){return(0,s.jsx)(iR,{...t.data})}};const iR=t=>{let e=(0,aR.c)(24),{title:a,subtitle:r,progress:n,total:i,eta:o,rate:l}=t,d=typeof n=="number"?"items-start":"items-center",u;e[0]!==n||e[1]!==i?(u=()=>typeof n=="number"&&i!=null&&i>0?(0,s.jsxs)("div",{className:"flex gap-3 text-sm text-muted-foreground items-baseline",children:[(0,s.jsx)(v6,{value:oR(n/i*100)}),(0,s.jsxs)("span",{className:"shrink-0",children:[n," / ",i]})]}):(0,s.jsx)(Rl,{className:"w-12 h-12 animate-spin text-primary mx-auto"}),e[0]=n,e[1]=i,e[2]=u):u=e[2];let c=u,m;e[3]!==o||e[4]!==n||e[5]!==l||e[6]!==i?(m=()=>{let j=typeof n=="number"&&i!=null&&n>=i,k=[];if(l&&(l<1?k.push((0,s.jsxs)("span",{children:[Zu(1/l)," per iter"]},"rate")):k.push((0,s.jsxs)("span",{children:[l," iter/s"]},"rate")),k.push((0,s.jsx)("span",{children:"\xB7"},"spacer-rate"))),!j&&o&&k.push((0,s.jsxs)("span",{children:["ETA ",Zu(o)]},"eta"),(0,s.jsx)("span",{children:"\xB7"},"spacer-eta")),j&&l){let N=n/l;k.push((0,s.jsxs)("span",{children:["Total time ",Zu(N)]},"completed"),(0,s.jsx)("span",{children:"\xB7"},"spacer-completed"))}if(k.pop(),k.length>0)return(0,s.jsx)("div",{className:"flex gap-2 text-muted-foreground text-sm",children:k})},e[3]=o,e[4]=n,e[5]=l,e[6]=i,e[7]=m):m=e[7];let p=m,h=`flex flex-col ${d} max-w-sm p-6 mx-auto`,g;e[8]===a?g=e[9]:(g=a&&(0,s.jsx)("div",{className:"text-lg font-bold text-foreground/60",children:Be({html:a})}),e[8]=a,e[9]=g);let f;e[10]===r?f=e[11]:(f=r&&(0,s.jsx)("div",{className:"text-sm text-muted-foreground",children:Be({html:r})}),e[10]=r,e[11]=f);let y;e[12]===c?y=e[13]:(y=c(),e[12]=c,e[13]=y);let b;e[14]===p?b=e[15]:(b=p(),e[14]=p,e[15]=b);let w;e[16]!==y||e[17]!==b?(w=(0,s.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[y,b]}),e[16]=y,e[17]=b,e[18]=w):w=e[18];let D;return e[19]!==h||e[20]!==g||e[21]!==f||e[22]!==w?(D=(0,s.jsxs)("div",{className:h,children:[g,f,w]}),e[19]=h,e[20]=g,e[21]=f,e[22]=w,e[23]=D):D=e[23],D};function oR(t){return PT(t,0,100)}var lR=rR.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Zu(t){return lR(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var sR=Qu((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",a=y=>y,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(y){return y.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var l=class{constructor(y,b){this.tokens=y,this.originalPath=b}};t.TokenData=l;var d=class extends TypeError{constructor(y,b){let w=y;b&&(w+=`: ${b}`),w+="; visit https://git.new/pathToRegexpError for info",super(w),this.originalPath=b}};t.PathError=d;function u(y,b={}){let{encodePath:w=a}=b,D=[...y],j=[],k=0,N=0;function S(){let C="";if(r.test(D[k]))do C+=D[k++];while(n.test(D[k]));else if(D[k]==='"'){let R=k;for(;k++<D.length;){if(D[k]==='"'){k++,R=0;break}D[k]==="\\"&&k++,C+=D[k]}if(R)throw new d(`Unterminated quote at index ${R}`,y)}if(!C)throw new d(`Missing parameter name at index ${k}`,y);return C}for(;k<D.length;){let C=D[k],R=i[C];R?j.push({type:R,index:k++,value:C}):C==="\\"?j.push({type:"escape",index:k++,value:D[k++]}):C===":"?j.push({type:"param",index:k++,value:S()}):C==="*"?j.push({type:"wildcard",index:k++,value:S()}):j.push({type:"char",index:k++,value:C})}j.push({type:"end",index:k,value:""});function v(C){let R=[];for(;;){let _=j[N++];if(_.type===C)break;if(_.type==="char"||_.type==="escape"){let I=_.value,V=j[N];for(;V.type==="char"||V.type==="escape";)I+=V.value,V=j[++N];R.push({type:"text",value:w(I)});continue}if(_.type==="param"||_.type==="wildcard"){R.push({type:_.type,name:_.value});continue}if(_.type==="{"){R.push({type:"group",tokens:v("}")});continue}throw new d(`Unexpected ${_.type} at index ${_.index}, expected ${C}`,y)}return R}return new l(v("end"),y)}function c(y,b={}){let{decode:w=decodeURIComponent,delimiter:D=e}=b,{regexp:j,keys:k}=m(y,b),N=k.map(S=>w===!1?a:S.type==="param"?w:v=>v.split(D).map(w));return function(S){let v=j.exec(S);if(!v)return!1;let C=v[0],R=Object.create(null);for(let _=1;_<v.length;_++){if(v[_]===void 0)continue;let I=k[_-1],V=N[_-1];R[I.name]=V(v[_])}return{path:C,params:R}}}function m(y,b={}){let{delimiter:w=e,end:D=!0,sensitive:j=!1,trailing:k=!0}=b,N=[],S=j?"":"i",v=[];for(let R of p(y,[])){let _=typeof R=="object"?R:u(R,b);for(let I of h(_.tokens,0,[]))v.push(g(I,w,N,_.originalPath))}let C=`^(?:${v.join("|")})`;return k&&(C+=`(?:${o(w)}$)?`),C+=D?"$":`(?=${o(w)}|$)`,{regexp:new RegExp(C,S),keys:N}}function p(y,b){if(Array.isArray(y))for(let w of y)p(w,b);else b.push(y);return b}function*h(y,b,w){if(b===y.length)return yield w;let D=y[b];if(D.type==="group")for(let j of h(D.tokens,0,w.slice()))yield*h(y,b+1,j);else w.push(D);yield*h(y,b+1,w)}function g(y,b,w,D){let j="",k="",N=!0;for(let S of y){if(S.type==="text"){j+=o(S.value),k+=S.value,N||(N=S.value.includes(b));continue}if(S.type==="param"||S.type==="wildcard"){if(!N&&!k)throw new d(`Missing text before "${S.name}" ${S.type}`,D);S.type==="param"?j+=`(${f(b,N?"":k)}+)`:j+="([\\s\\S]+)",w.push(S),k="",N=!1;continue}}return j}function f(y,b){return b.length<2?y.length<2?`[^${o(y+b)}]`:`(?:(?!${o(y)})[^${o(b)}])`:y.length<2?`(?:(?!${o(b)})[^${o(y)}])`:`(?:(?!${o(b)}|${o(y)})[\\s\\S])`}}))(),dR=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,sR.match)(e)}))}match(t){for(let{pathFunction:e,template:a}of this.routes){let r=e(t.hash)||e(t.pathname);if(r)return[r,a]}return!1}},uR=ee(),cR=class{constructor(){K(this,"tagName","marimo-routes");K(this,"validator",$({routes:Q(F())}))}render(t){return(0,s.jsx)(mR,{...t.data,children:t.children})}},mR=t=>{let e=(0,uR.c)(14),{routes:a,children:r}=t,n=x.Children.count(r);if(n!==a.length)throw Error(`Expected ${a.length} children, but got ${n}`);let i;e[0]===a?i=e[1]:(i=new dR(a),e[0]=a,e[1]=i);let o=i,l;e[2]===o?l=e[3]:(l=()=>{let w=o.match(window.location);return w?w[1]:null},e[2]=o,e[3]=l);let[d,u]=(0,x.useState)(l),c;e[4]===o?c=e[5]:(c=w=>{let D=o.match(w);u(D?D[1]:null)},e[4]=o,e[5]=c);let m=Ue(c),p,h;if(e[6]===m?(p=e[7],h=e[8]):(p=()=>{let w=D=>{m(window.location)};return window.addEventListener("hashchange",w),window.addEventListener("popstate",w),()=>{window.removeEventListener("hashchange",w),window.removeEventListener("popstate",w)}},h=[m],e[6]=m,e[7]=p,e[8]=h),(0,x.useEffect)(p,h),!d){let w;return e[9]===Symbol.for("react.memo_cache_sentinel")?(w=(0,s.jsx)(s.Fragment,{}),e[9]=w):w=e[9],w}let g=a.indexOf(d),f;e[10]===r?f=e[11]:(f=x.Children.toArray(r),e[10]=r,e[11]=f);let y=f[g],b;return e[12]===y?b=e[13]:(b=(0,s.jsx)(s.Fragment,{children:y}),e[12]=y,e[13]=b),b},pR=ee(),hR=class{constructor(){K(this,"tagName","marimo-stat");K(this,"validator",$({value:Re([F(),H(),W()]).optional(),label:F().optional(),caption:F().optional(),bordered:W().default(!1),direction:be(["increase","decrease"]).optional(),target_direction:be(["increase","decrease"]).default("increase"),slot:qt().optional()}))}render({data:t}){return(0,s.jsx)(fR,{...t})}};const fR=t=>{let e=(0,pR.c)(31),{value:a,label:r,caption:n,bordered:i,direction:o,target_direction:l,slot:d}=t,{locale:u}=at(),c;e[0]!==u||e[1]!==a?(c=()=>a==null?(0,s.jsx)("i",{children:"No value"}):typeof a=="string"?a:typeof a=="number"?tI(a,u):typeof a=="boolean"?a?"True":"False":String(a),e[0]=u,e[1]=a,e[2]=c):c=e[2];let m=c,p=o===l,h=p?"var(--grass-8)":"var(--red-8)",g=p?"var(--grass-9)":"var(--red-9)",f;e[3]===d?f=e[4]:(f=()=>{let _=TT(d);if(_!=null&&_[0]){let{mimetype:I,data:V}=_[0];return I!=="text/html"&&se.warn(`Expected text/html, got ${I}`),Be({html:V,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=f);let y=f,b=i&&"rounded-xl border shadow bg-card",w;e[5]===b?w=e[6]:(w=Y("text-card-foreground p-6",b),e[5]=b,e[6]=w);let D;e[7]===r?D=e[8]:(D=r&&(0,s.jsx)("div",{className:"flex flex-row items-center justify-between space-y-0 pb-2",children:(0,s.jsx)("h3",{className:"tracking-tight text-sm font-medium",children:r})}),e[7]=r,e[8]=D);let j;e[9]===m?j=e[10]:(j=m(),e[9]=m,e[10]=j);let k;e[11]===j?k=e[12]:(k=(0,s.jsx)("div",{className:"text-2xl font-bold",children:j}),e[11]=j,e[12]=k);let N;e[13]!==n||e[14]!==o||e[15]!==h||e[16]!==g?(N=n&&(0,s.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,s.jsx)(Zc,{className:"w-4 h-4 mr-1 p-0.5",fill:h,stroke:g}),o==="decrease"&&(0,s.jsx)(Zc,{className:"w-4 h-4 mr-1 p-0.5 transform rotate-180",fill:h,stroke:g}),n]}),e[13]=n,e[14]=o,e[15]=h,e[16]=g,e[17]=N):N=e[17];let S;e[18]!==k||e[19]!==N?(S=(0,s.jsxs)("div",{children:[k,N]}),e[18]=k,e[19]=N,e[20]=S):S=e[20];let v;e[21]!==y||e[22]!==d?(v=d&&(0,s.jsx)("div",{className:"[--slot:true]",children:y()}),e[21]=y,e[22]=d,e[23]=v):v=e[23];let C;e[24]!==v||e[25]!==S?(C=(0,s.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[S,v]}),e[24]=v,e[25]=S,e[26]=C):C=e[26];let R;return e[27]!==C||e[28]!==w||e[29]!==D?(R=(0,s.jsxs)("div",{className:w,children:[D,C]}),e[27]=C,e[28]=w,e[29]=D,e[30]=R):R=e[30],R};var gR=ee(),xR=class{constructor(){K(this,"tagName","marimo-tex");K(this,"validator",$({}))}render(t){return(0,s.jsx)(wR,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},vR=Kv(async()=>(await Rt(async()=>{let{default:t}=await import("./katex-YDobqqVd.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([380,152]),import.meta.url)).default),yR=Kv(async()=>{await Rt(()=>import("./mhchem-B98RQJ-y.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([381,152]),import.meta.url)}),qu={"\\mbox":"\\text{#1}"};async function bR(t,e){let[a]=await Promise.all([vR(),yR()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?a.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:qu}):e.startsWith("||(")&&e.endsWith("||)")?a.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:qu}):e.startsWith("||[")&&e.endsWith("||]")&&a.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:qu})}var wR=t=>{var h;let e=(0,gR.c)(8),{host:a,tex:r}=t,n=(0,x.useRef)(null),[i,o]=(0,x.useState)(r),l,d;e[0]===a?(l=e[1],d=e[2]):(l=()=>{let g=new MutationObserver(()=>{o(a.textContent||a.innerHTML)});return g.observe(a,{childList:!0,characterData:!0,subtree:!0}),()=>{g.disconnect()}},d=[a],e[0]=a,e[1]=l,e[2]=d),(0,x.useLayoutEffect)(l,d);let u=((h=a.parentElement)==null?void 0:h.tagName.toLowerCase())==="marimo-tex",c,m;e[3]!==i||e[4]!==u?(c=()=>{n.current&&!u&&bR(n.current,i)},m=[i,u],e[3]=i,e[4]=u,e[5]=c,e[6]=m):(c=e[5],m=e[6]),(0,x.useLayoutEffect)(c,m);let p;return e[7]===Symbol.for("react.memo_cache_sentinel")?(p=(0,s.jsx)("span",{ref:n}),e[7]=p):p=e[7],p};const DR=[new g3,new b3,lS,new LS,new ZS,new WS,new GS,new j3,new r5,new T5,_5,$5,new W5,new rN,new LC,new wN,new QN,new n_,new a_,new s_,new c_,new h_,new y_,new D_,new S_,new uN,new ON,I3,o5,k5,Z_,L_,c3,B3,kN,fN];var jR=[new __,new A_,new O_,new W_,new U_,new Y_,new G_,new KD,new eR,new nR,new cR,new hR,new xR];function CR(){i3(),s3(),DR.forEach(Y0),jR.forEach(Y0)}async function kR(){if(typeof document>"u")return;let{onLCP:t,onINP:e,onCLS:a}=await Rt(async()=>{let{onLCP:n,onINP:i,onCLS:o}=await import("./web-vitals-BaMazlva.js").then(async l=>(await l.__tla,l));return{onLCP:n,onINP:i,onCLS:o}},[],import.meta.url);se.debug("Reporting vitals");let r=n=>{let i=n.rating==="good"?"green":n.rating==="needs-improvement"?"orange":"red";se.log(`%c [Metric ${n.name}] ${n.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};a(r),e(r),t(r)}var SR=yv(),sv=!1;function NR(t,e){if(sv)return se.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");sv=!0;let a=(0,SR.createRoot)(e);try{h6(),CR(),xD(),ji()&&(IE(),kE(xE),ER()),RR(t),a.render((0,s.jsx)(hl,{store:Le,children:(0,s.jsx)(Tm,{children:(0,s.jsx)(f0,{})})}))}catch(r){return a.render((0,s.jsx)(Cl,{children:(0,s.jsx)(()=>{throw r},{})})),r}finally{kR()}}var Yu=dn({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(se.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(se.warn("[marimo] missing config data"),{}))),_R=$({filename:F().nullish().transform(t=>t||(se.warn("No filename provided, using fallback"),eE())),cwd:F().nullish().default(null),code:F().nullish().transform(t=>t??lT()??""),version:F().nullish().transform(t=>t??"unknown"),mode:be(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Yu,configOverrides:Yu,appConfig:Yu,view:$({showAppCode:W().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:F().nullish().transform(t=>t??""),fileStores:Q(iE()).optional(),session:Re([un().optional(),dn({version:Ze("1"),metadata:qt(),cells:Q(qt())}).transform(t=>t)]),notebook:Re([un().optional(),dn({version:Ze("1"),metadata:qt(),cells:Q(qt())}).transform(t=>t)]),runtimeConfig:Q(dn({url:F(),lazy:W().default(!0),authToken:F().nullish()})).nullish().transform(t=>t??[])});function RR(t){let e=_R.safeParse(t);if(!e.success)throw se.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let a=e.data.mode;if(fD(a),e.data.fileStores&&e.data.fileStores.length>0){se.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)DE.insert(0,e.data.fileStores[o]);se.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Le.set(FT,kD()),Le.set(LR,e.data.filename),Le.set(ZR,e.data.cwd??null),Le.set(KR,e.data.code),Le.set(MA,a),Le.set(aT,e.data.version),Le.set(tT,e.data.view.showAppCode);let r=new URL(window.location.href).searchParams.get(uc.viewAs)==="present",n=a==="edit"&&r?"present":a;if(Le.set(PA,{mode:n,cellAnchor:null}),Le.set(oT,e.data.serverToken),Le.set(qE,ZE(e.data.configOverrides)),Le.set(WE,BE(e.data.config)),Le.set(KE,HE(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];se.debug("\u26A1 Runtime URL",o.url),Le.set(Vv,{...o,serverToken:e.data.serverToken}),!o.lazy&&!ji()&&Le.set(zv,{state:Ov.CONNECTING})}else Le.set(Vv,{...XE,lazy:!1,serverToken:e.data.serverToken});let i=db(e.data.session,e.data.notebook);i&&Le.set(gv,i)}function ER(){let t=ST();if(t)for(let e of t)PE(sc,e)}var dv=document.getElementById("root");if(dv){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");NR(window.__MARIMO_MOUNT_CONFIG__,dv)}else throw Error("[marimo] root element not found")});
package/dist/index.html CHANGED
@@ -66,7 +66,7 @@
66
66
  <marimo-server-token data-token="{{ server_token }}" hidden></marimo-server-token>
67
67
  <!-- /TODO -->
68
68
  <title>{{ title }}</title>
69
- <script type="module" crossorigin src="./assets/index-DvEaAswC.js"></script>
69
+ <script type="module" crossorigin src="./assets/index-CnrVTVWS.js"></script>
70
70
  <link rel="modulepreload" crossorigin href="./assets/preload-helper-BW0IMuFq.js">
71
71
  <link rel="modulepreload" crossorigin href="./assets/clsx-BDxNtGmi.js">
72
72
  <link rel="modulepreload" crossorigin href="./assets/cn-BoaCR37F.js">
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marimo-team/frontend",
3
- "version": "0.21.2-dev12",
3
+ "version": "0.21.2-dev13",
4
4
  "main": "dist/main.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
@@ -152,9 +152,7 @@ const SliderComponent = ({
152
152
  nextValue = Number(start);
153
153
  }
154
154
  setInternalValue(nextValue);
155
- if (!debounce) {
156
- setValue(nextValue);
157
- }
155
+ setValue(nextValue);
158
156
  }}
159
157
  minValue={start}
160
158
  maxValue={stop}
@@ -0,0 +1,120 @@
1
+ /* Copyright 2026 Marimo. All rights reserved. */
2
+
3
+ import { act, fireEvent, render } from "@testing-library/react";
4
+ import { afterEach, beforeEach, describe, expect, it, vi } from "vitest";
5
+ import type { z } from "zod";
6
+ import { SetupMocks } from "@/__mocks__/common";
7
+ import { initialModeAtom } from "@/core/mode";
8
+ import { store } from "@/core/state/jotai";
9
+ import type { IPluginProps } from "../../types";
10
+ import { SliderPlugin } from "../SliderPlugin";
11
+
12
+ SetupMocks.resizeObserver();
13
+
14
+ describe("SliderPlugin", () => {
15
+ beforeEach(() => {
16
+ vi.useFakeTimers();
17
+ store.set(initialModeAtom, "edit");
18
+ });
19
+
20
+ afterEach(() => {
21
+ vi.useRealTimers();
22
+ });
23
+
24
+ const createProps = (
25
+ debounce: boolean,
26
+ includeInput: boolean,
27
+ setValue: ReturnType<typeof vi.fn>,
28
+ ): IPluginProps<number, z.infer<typeof SliderPlugin.prototype.validator>> => {
29
+ return {
30
+ host: document.createElement("div"),
31
+ value: 5,
32
+ setValue,
33
+ data: {
34
+ initialValue: 5,
35
+ start: 0,
36
+ stop: 10,
37
+ step: 1,
38
+ label: "Test Slider",
39
+ debounce,
40
+ orientation: "horizontal" as const,
41
+ showValue: false,
42
+ fullWidth: false,
43
+ includeInput,
44
+ steps: null,
45
+ },
46
+ functions: {},
47
+ };
48
+ };
49
+
50
+ it("slider triggers setValue immediately when debounce is false", () => {
51
+ const plugin = new SliderPlugin();
52
+ const setValue = vi.fn();
53
+ const props = createProps(false, false, setValue);
54
+ const { container } = render(plugin.render(props));
55
+
56
+ act(() => {
57
+ vi.advanceTimersByTime(0);
58
+ });
59
+
60
+ const thumb = container.querySelector('[role="slider"]');
61
+ expect(thumb).toBeTruthy();
62
+
63
+ // Radix UI Slider updates on keyboard ArrowRight/ArrowLeft
64
+ act(() => {
65
+ (thumb as HTMLElement)?.focus();
66
+ fireEvent.keyDown(thumb!, { key: "ArrowRight" });
67
+ });
68
+
69
+ expect(setValue).toHaveBeenCalledWith(6);
70
+ });
71
+
72
+ it("slider does not trigger setValue immediately when debounce is true", () => {
73
+ const plugin = new SliderPlugin();
74
+ const setValue = vi.fn();
75
+ const props = createProps(true, false, setValue);
76
+ const { container } = render(plugin.render(props));
77
+
78
+ act(() => {
79
+ vi.advanceTimersByTime(0);
80
+ });
81
+
82
+ const thumb = container.querySelector('[role="slider"]');
83
+
84
+ act(() => {
85
+ (thumb as HTMLElement)?.focus();
86
+ // Simulate just a programmatic change that Radix would trigger via pointer move
87
+ // which fires onValueChange but not onValueCommit yet
88
+ // Because we can't easily separated Radix's internal pointer events in jsdom, we
89
+ // test the main issue: editable input. We can trust Radix's onValueChange vs onValueCommit.
90
+ });
91
+
92
+ // We verified above that NumberField works when debounce=true
93
+ expect(setValue).not.toHaveBeenCalled();
94
+ });
95
+
96
+ it("editable input triggers setValue immediately even when slider debounce is true", () => {
97
+ const plugin = new SliderPlugin();
98
+ const setValue = vi.fn();
99
+ const props = createProps(true, true, setValue);
100
+ const { getByRole } = render(plugin.render(props));
101
+
102
+ act(() => {
103
+ vi.advanceTimersByTime(0);
104
+ });
105
+
106
+ // The react-aria NumberField renders an input textbox.
107
+ const numericInput = getByRole("textbox");
108
+
109
+ act(() => {
110
+ // Simulate typing a new value and pressing enter
111
+ // With React-Aria NumberField, onChange fires on blur or enter
112
+ fireEvent.change(numericInput, { target: { value: "9" } });
113
+ fireEvent.blur(numericInput);
114
+ });
115
+
116
+ // Because the user explicitly typed 9 in the editable input,
117
+ // setValue should be called immediately regardless of debounce=true.
118
+ expect(setValue).toHaveBeenCalledWith(9);
119
+ });
120
+ });