@marimo-team/frontend 0.20.3-dev97 → 0.20.3
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 v;e[10]!==h||e[11]!==f?(v={displaylogo:!1,modeBarButtonsToAdd:f,...h},e[10]=h,e[11]=f,e[12]=v):v=e[12];let w=v,b;e[13]===n?b=e[14]:(b=R=>{if("dragmode"in R&&n(P=>({...P,dragmode:R.dragmode})),Object.keys(R).some(wN)){let P={};Object.entries(R).forEach(I=>{let[O,V]=I;J_(P,O,V)}),n(I=>({...I,...P}))}},e[13]=n,e[14]=b);let D;e[15]===n?D=e[16]:(D=()=>{n(DN)},e[15]=n,e[16]=D);let j=Ue(D),k;e[17]===n?k=e[18]:(k=R=>{R&&n(P=>({...P,points:R.points.map(jN)}))},e[17]=n,e[18]=k);let S=Ue(k),N;e[19]===n?N=e[20]:(N=R=>{R&&n(P=>({...P,points:R.points.map(CN)}))},e[19]=n,e[20]=N);let y=Ue(N),C;e[21]===n?C=e[22]:(C=R=>{R&&R.points.some(kN)&&n(P=>({...P,points:Z1(R.points),indices:R.points.map(SN)}))},e[21]=n,e[22]=C);let _=Ue(C),E;e[23]===n?E=e[24]:(E=R=>{R&&n(P=>({...P,selections:"selections"in R?R.selections:[],points:Z1(R.points),indices:R.points.map(NN),range:R.range}))},e[23]=n,e[24]=E);let A=Ue(E),F=d.frames??void 0,T=Ue(EN),M;return e[25]!==d||e[26]!==u||e[27]!==w||e[28]!==S||e[29]!==y||e[30]!==_||e[31]!==A||e[32]!==F||e[33]!==T||e[34]!==b||e[35]!==j?(M=(0,s.jsx)(vN,{...d,layout:u,onRelayout:b,onDeselect:j,onTreemapClick:S,onSunburstClick:y,config:w,onClick:_,onSelected:A,className:"w-full",useResizeHandler:!0,frames:F,onError:T}),e[25]=d,e[26]=u,e[27]=w,e[28]=S,e[29]=y,e[30]=_,e[31]=A,e[32]=F,e[33]=T,e[34]=b,e[35]=j,e[36]=M):M=e[36],M});K1.displayName="PlotlyComponent";var bN=["x","y","z","lat","lon","curveNumber","pointNumber","pointIndex"];function Z1(t){if(!t)return[];let e;return t.map(a=>{var n;let r=Array.isArray(a.data.hovertemplate)?a.data.hovertemplate[0]:a.data.hovertemplate;return!r||((n=a.data)==null?void 0:n.type)==="heatmap"?cl(a,bN):(e=e?e.update(r):W1(r),e.parse(a))})}function wN(t){return t.includes("xaxis")||t.includes("yaxis")}function DN(t){return{...t,selections:Ea.EMPTY,points:Ea.EMPTY,indices:Ea.EMPTY,range:void 0}}function jN(t){return cl(t,yN)}function CN(t){return cl(t,U1)}function kN(t){var e;return((e=t.data)==null?void 0:e.type)==="heatmap"}function SN(t){return t.pointIndex}function NN(t){return t.pointIndex}function EN(t){de.error("PlotlyPlugin: ",t)}var _N=ee(),RN=class{constructor(){Z(this,"tagName","marimo-radio");Z(this,"validator",B({initialValue:z().nullable(),inline:W().default(!1),label:z().nullable(),options:J(z()),disabled:W().optional()}))}render(t){return(0,s.jsx)(TN,{...t.data,value:t.value,setValue:t.setValue})}};const TN=t=>{let e=(0,_N.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=q(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)(c6,{value:g,id:`${a}-${f.toString()}`}),(0,s.jsx)(Ci,{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)(d6,{"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 AN=ee(),q1=x.forwardRef((t,e)=>{let a=(0,AN.c)(35),{className:r,valueMap:n,...i}=t,[o,l]=Lv(!1),{locale:d}=at(),u=q0,c;a[0]===r?c=a[1]:(c=q("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=q("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)(Nd,{"data-testid":"track",className:m,children:(0,s.jsx)(Ed,{"data-testid":"range",className:q("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)(kc,{asChild:!0,children:(0,s.jsx)(wo,{"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)(Cc,{children:pn(n(i.value[0]),{locale:d})},i.value[0]),f;a[7]===g?f=a[8]:(f=(0,s.jsx)(Sc,{children:g}),a[7]=g,a[8]=f);let v;a[9]!==o||a[10]!==h||a[11]!==f?(v=(0,s.jsx)(zt,{children:(0,s.jsxs)(jc,{delayDuration:0,open:o,children:[h,f]})}),a[9]=o,a[10]=h,a[11]=f,a[12]=v):v=a[12];let w=zt,b=jc,D;a[13]!==l.setFalse||a[14]!==l.setTrue?(D=(0,s.jsx)(kc,{asChild:!0,children:(0,s.jsx)(wo,{"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=Sc,k=i.value!=null&&i.value.length===2&&(0,s.jsx)(Cc,{children:pn(n(i.value[1]),{locale:d})},i.value[1]),S;a[16]!==j||a[17]!==k?(S=(0,s.jsx)(j,{children:k}),a[16]=j,a[17]=k,a[18]=S):S=a[18];let N;a[19]!==b||a[20]!==o||a[21]!==D||a[22]!==S?(N=(0,s.jsxs)(b,{delayDuration:0,open:o,children:[D,S]}),a[19]=b,a[20]=o,a[21]=D,a[22]=S,a[23]=N):N=a[23];let y;a[24]!==w||a[25]!==N?(y=(0,s.jsx)(w,{children:N}),a[24]=w,a[25]=N,a[26]=y):y=a[26];let C;return a[27]!==i||a[28]!==e||a[29]!==u.Root||a[30]!==y||a[31]!==c||a[32]!==p||a[33]!==v?(C=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[p,v,y]}),a[27]=i,a[28]=e,a[29]=u.Root,a[30]=y,a[31]=c,a[32]=p,a[33]=v,a[34]=C):C=a[34],C});q1.displayName=Sd.displayName;var IN=ee(),PN=class{constructor(){Z(this,"tagName","marimo-range-slider");Z(this,"validator",B({initialValue:J(H()),label:z().nullable(),start:H(),stop:H(),step:H().optional(),steps:J(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)(MN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},MN=t=>{let e=(0,IN.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(),[v,w]=(0,x.useState)(n),b,D;e[0]===n?(b=e[1],D=e[2]):(b=()=>{w(n)},D=[n],e[0]=n,e[1]=b,e[2]=D),(0,x.useEffect)(b,D);let j=u==="horizontal"?"left":"top",k=m&&"my-1 w-full",S;e[3]===k?S=e[4]:(S=q(k),e[3]=k,e[4]=S);let N=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",y=m&&"w-full",C;e[5]!==N||e[6]!==y?(C=q("flex items-center gap-2",N,y),e[5]=N,e[6]=y,e[7]=C):C=e[7];let _=!m&&"data-[orientation=horizontal]:w-36 ",E;e[8]===_?E=e[9]:(E=q("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[8]=_,e[9]=E);let A,F;e[10]!==d||e[11]!==r?(A=V=>{w(V),d||r(V)},F=V=>{d&&r(V)},e[10]=d,e[11]=r,e[12]=A,e[13]=F):(A=e[12],F=e[13]);let T,M;e[14]!==d||e[15]!==v||e[16]!==r||e[17]!==n?(T=()=>{d&&!sl(v,n)&&r(v)},M=()=>{d&&!sl(v,n)&&r(v)},e[14]=d,e[15]=v,e[16]=r,e[17]=n,e[18]=T,e[19]=M):(T=e[18],M=e[19]);let R;e[20]!==p||e[21]!==g||e[22]!==v||e[23]!==u||e[24]!==i||e[25]!==l||e[26]!==o||e[27]!==E||e[28]!==A||e[29]!==F||e[30]!==T||e[31]!==M||e[32]!==h?(R=(0,s.jsx)(q1,{id:g,className:E,value:v,min:i,max:o,step:l,orientation:u,disabled:p,onValueChange:A,onValueCommit:F,onPointerUp:T,onMouseUp:M,valueMap:h}),e[20]=p,e[21]=g,e[22]=v,e[23]=u,e[24]=i,e[25]=l,e[26]=o,e[27]=E,e[28]=A,e[29]=F,e[30]=T,e[31]=M,e[32]=h,e[33]=R):R=e[33];let P;e[34]!==v||e[35]!==f||e[36]!==c||e[37]!==h?(P=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${pn(h(v[0]),{locale:f})}, ${pn(h(v[1]),{locale:f})}`}),e[34]=v,e[35]=f,e[36]=c,e[37]=h,e[38]=P):P=e[38];let I;e[39]!==R||e[40]!==P||e[41]!==C?(I=(0,s.jsxs)("div",{className:C,children:[R,P]}),e[39]=R,e[40]=P,e[41]=C,e[42]=I):I=e[42];let O;return e[43]!==m||e[44]!==g||e[45]!==a||e[46]!==I||e[47]!==j||e[48]!==S?(O=(0,s.jsx)(Ke,{label:a,id:g,align:j,className:S,fullWidth:m,children:I}),e[43]=m,e[44]=g,e[45]=a,e[46]=I,e[47]=j,e[48]=S,e[49]=O):O=e[49],O},Vu=Na(Wu(((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 v=f.match(/[0-9.]+/g)[0],w=f.match(/[a-z]+/g)[0];p+=l(v,w,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),ri=.1,Y1=z().superRefine((t,e)=>{try{(0,Vu.default)(t)<ri&&e.addIssue({code:cv.custom,message:`Must be greater than ${ri} seconds.`});return}catch{e.addIssue({code:cv.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),FN=class{constructor(){Z(this,"tagName","marimo-refresh");Z(this,"validator",B({options:J(_e([Y1,H().min(ri)])).default([]),defaultInterval:_e([Y1,H().min(ri)]).optional(),label:z().nullable()}))}render(t){return(0,s.jsx)(VN,{...t})}},Qo="off",zN=0,VN=({setValue:t,data:e})=>{let[a,r]=(0,x.useState)(e.defaultInterval??Qo);(0,x.useEffect)(()=>{r(e.defaultInterval??Qo)},[e.defaultInterval]);let[n,i]=(0,x.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${a} (${zN++})`),setTimeout(()=>i(!1),500)});(0,x.useEffect)(()=>{if(a===Qo)return;let u=typeof a=="number"?a:/[a-z]/.test(a)?(0,Vu.default)(a):(0,Vu.default)(`${a}s`);u=Math.max(u,ri);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:q(l,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,s.jsx)(b6,{className:q("w-3.5 h-3.5",n&&"animate-spin")})}),(0,s.jsxs)(Dc,{"data-testid":"marimo-plugin-refresh-select",onChange:u=>{r(u.target.value)},value:a,className:q(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:Qo,children:"off"}),e.options.map(u=>(0,s.jsx)("option",{value:u,children:typeof u=="number"?`${u}s`:u},u))]})]})})},ON=ee(),$N=class{constructor(){Z(this,"tagName","marimo-slider");Z(this,"validator",B({initialValue:H(),label:z().nullable(),start:H(),stop:H(),step:H().optional(),steps:J(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)(BN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},BN=t=>{let e=(0,ON.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:v}=at(),[w,b]=(0,x.useState)(n),D,j;e[0]===n?(D=e[1],j=e[2]):(D=()=>{b(n)},j=[n],e[0]=n,e[1]=D,e[2]=j),(0,x.useEffect)(D,j);let k=u==="horizontal"?"left":"top",S=m&&"my-1 w-full",N;e[3]===S?N=e[4]:(N=q(S),e[3]=S,e[4]=N);let y=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",C;e[5]===y?C=e[6]:(C=q("flex items-center gap-2",y),e[5]=y,e[6]=C);let _=!m&&"data-[orientation=horizontal]:w-36 ",E;e[7]===_?E=e[8]:(E=q("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[7]=_,e[8]=E);let A;e[9]===w?A=e[10]:(A=[w],e[9]=w,e[10]=A);let F,T;e[11]!==d||e[12]!==r?(F=V=>{let[$]=V;b($),d||r($)},T=V=>{let[$]=V;d&&r($)},e[11]=d,e[12]=r,e[13]=F,e[14]=T):(F=e[13],T=e[14]);let M;e[15]!==g||e[16]!==f||e[17]!==u||e[18]!==i||e[19]!==l||e[20]!==o||e[21]!==A||e[22]!==F||e[23]!==T||e[24]!==E||e[25]!==p?(M=(0,s.jsx)(_d,{id:f,className:E,value:A,min:i,max:o,step:l,orientation:u,onValueChange:F,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]=A,e[22]=F,e[23]=T,e[24]=E,e[25]=p,e[26]=M):M=e[26];let R;e[27]!==w||e[28]!==v||e[29]!==c||e[30]!==p?(R=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:pn(p(w),{locale:v})}),e[27]=w,e[28]=v,e[29]=c,e[30]=p,e[31]=R):R=e[31];let P;e[32]!==d||e[33]!==g||e[34]!==h||e[35]!==w||e[36]!==a||e[37]!==r||e[38]!==i||e[39]!==l||e[40]!==o||e[41]!==p?(P=h&&(0,s.jsx)(gc,{value:p(w),onChange:V=>{(V==null||Number.isNaN(V))&&(V=Number(i)),b(V),d||r(V)},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]=w,e[36]=a,e[37]=r,e[38]=i,e[39]=l,e[40]=o,e[41]=p,e[42]=P):P=e[42];let I;e[43]!==M||e[44]!==R||e[45]!==P||e[46]!==C?(I=(0,s.jsxs)("div",{className:C,children:[M,R,P]}),e[43]=M,e[44]=R,e[45]=P,e[46]=C,e[47]=I):I=e[47];let O;return e[48]!==m||e[49]!==f||e[50]!==a||e[51]!==I||e[52]!==k||e[53]!==N?(O=(0,s.jsx)(Ke,{label:a,id:f,align:k,fullWidth:m,className:N,children:I}),e[48]=m,e[49]=f,e[50]=a,e[51]=I,e[52]=k,e[53]=N,e[54]=O):O=e[54],O},LN=ee(),HN=class{constructor(){Z(this,"tagName","marimo-switch");Z(this,"validator",B({initialValue:W(),label:z().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(WN,{...t})}},WN=t=>{let e=(0,LN.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)(zR,{"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},UN=ee(),KN=class{constructor(){Z(this,"tagName","marimo-tabs");Z(this,"validator",B({tabs:J(z())}))}render(t){return(0,s.jsx)(ZN,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},ZN=t=>{let e=(0,UN.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(qN),e[2]=a,e[3]=c);let m;e[4]===c?m=e[5]:(m=(0,s.jsx)(Di,{children:c}),e[4]=c,e[5]=m);let p;e[6]===i?p=e[7]:(p=x.Children.map(i,YN),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)(ji,{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 qN(t,e){return(0,s.jsx)(va,{value:e.toString(),children:$e({html:t})},e)}function YN(t,e){return(0,s.jsx)(xa,{value:e.toString(),children:t})}var GN=ee(),QN=class{constructor(){Z(this,"tagName","marimo-text-area");Z(this,"validator",B({initialValue:z(),placeholder:z(),label:z().nullable(),maxLength:H().optional(),minLength:H().optional(),disabled:W().optional(),debounce:uv(_e([W(),H()])),rows:H().default(4),fullWidth:W().default(!1)}))}render(t){return(0,s.jsx)(JN,{...t.data,value:t.value,setValue:t.setValue})}},JN=t=>{let e=(0,GN.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=q("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)($6,{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 v;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==f?(v=(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]=v):v=e[19],v}if(typeof t.debounce=="number"){let m=t.label,p=t.fullWidth,h;e[20]===t.fullWidth?h=e[21]:(h=q("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)(H6,{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 v;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==f?(v=(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]=v):v=e[37],v}let n=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=q("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)(O6,{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},XN=ee(),eE=class{constructor(){Z(this,"tagName","marimo-text");Z(this,"validator",B({initialValue:z(),placeholder:z(),label:z().nullable(),kind:be(["text","password","email","url"]).default("text"),maxLength:H().optional(),minLength:H().optional(),fullWidth:W().default(!1),disabled:W().optional(),debounce:uv(_e([W(),H()]))}))}render(t){return(0,s.jsx)(tE,{...t.data,value:t.value,setValue:t.setValue})}},tE=t=>{let e=(0,XN.c)(66),[a,r]=(0,x.useState)(t.value),n=a??t.value,i=aE(t.kind,n),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={text:null,password:(0,s.jsx)(v6,{size:16}),email:(0,s.jsx)(MT,{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,_=t.fullWidth,E=t.kind,A=l[t.kind],F=t.placeholder,T=t.maxLength,M=t.minLength,R=t.minLength!=null&&t.minLength>0,P=t.disabled,I=!i,O;e[4]!==t.fullWidth||e[5]!==I?(O=q({"border-destructive":I,"w-full":t.fullWidth}),e[4]=t.fullWidth,e[5]=I,e[6]=O):O=e[6];let V;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]!==A||e[17]!==R?(V=(0,s.jsx)(_6,{"data-testid":"marimo-plugin-text-input",type:E,icon:A,placeholder:F,maxLength:T,minLength:M,required:R,disabled:P,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]=A,e[17]=R,e[18]=V):V=e[18];let $;return e[19]!==t.fullWidth||e[20]!==t.label||e[21]!==V?($=(0,s.jsx)(Ke,{label:C,fullWidth:_,children:V}),e[19]=t.fullWidth,e[20]=t.label,e[21]=V,e[22]=$):$=e[22],$}if(typeof t.debounce=="number"){let C=t.label,_=t.fullWidth,E=t.kind,A=l[t.kind],F=t.placeholder,T=t.maxLength,M=t.minLength,R=t.minLength!=null&&t.minLength>0,P=t.disabled,I=!i,O;e[23]!==t.fullWidth||e[24]!==I?(O=q({"border-destructive":I,"w-full":t.fullWidth}),e[23]=t.fullWidth,e[24]=I,e[25]=O):O=e[25];let V;e[26]===Symbol.for("react.memo_cache_sentinel")?(V=X=>r(X.currentTarget.value),e[26]=V):V=e[26];let $;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]!==A||e[38]!==R?($=(0,s.jsx)(vc,{"data-testid":"marimo-plugin-text-input",type:E,icon:A,placeholder:F,maxLength:T,minLength:M,required:R,disabled:P,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue,onBlur:V,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]=A,e[38]=R,e[39]=$):$=e[39];let Q;return e[40]!==t.fullWidth||e[41]!==t.label||e[42]!==$?(Q=(0,s.jsx)(Ke,{label:C,fullWidth:_,children:$}),e[40]=t.fullWidth,e[41]=t.label,e[42]=$,e[43]=Q):Q=e[43],Q}let c=t.label,m=t.fullWidth,p=t.kind,h=l[t.kind],g=t.placeholder,f=t.maxLength,v=t.minLength,w=t.minLength!=null&&t.minLength>0,b=t.disabled,D=!i,j;e[44]!==t.fullWidth||e[45]!==D?(j=q({"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 S;e[49]===Symbol.for("react.memo_cache_sentinel")?(S=C=>r(C.currentTarget.value),e[49]=S):S=e[49];let 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]!==w?(N=(0,s.jsx)(xc,{"data-testid":"marimo-plugin-text-input",type:p,icon:h,placeholder:g,maxLength:f,minLength:v,required:w,disabled:b,className:j,endAdornment:u,value:t.value,onInput:k,onBlur: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]=w,e[61]=N):N=e[61];let y;return e[62]!==t.fullWidth||e[63]!==t.label||e[64]!==N?(y=(0,s.jsx)(Ke,{label:c,fullWidth:m,children:N}),e[62]=t.fullWidth,e[63]=t.label,e[64]=N,e[65]=y):y=e[65],y};function aE(t,e){if(!e)return!0;switch(t){case"email":return z().email().safeParse(e).success;case"url":return z().url().safeParse(e).success;default:return!0}}var rE=x.lazy(()=>Rt(()=>import("./vega-component-Ce_zhbUD.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([353,135,13,8,9,10,136,137,138,139,27,79,6,7,11,12,14,15,22,18,37,36,35,24,25,26,28,29,30,31,33,97,354,98,82,99,157,47,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,62,20,121,66,67,42,68,355,356]),import.meta.url)),nE=class{constructor(){Z(this,"tagName","marimo-vega");Z(this,"validator",B({spec:B({}).passthrough().transform(t=>t),chartSelection:_e([W(),Ze("point"),Ze("interval")]).default(!0),fieldSelection:_e([W(),J(z())]).default(!0),embedOptions:B({}).passthrough().default({})}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(rE,{value:t.value,setValue:t.setValue,...t.data})})}},iE=ee(),oE=class{constructor(){Z(this,"tagName","marimo-accordion");Z(this,"validator",B({labels:J(z()),multiple:W()}))}render(t){return(0,s.jsx)(lE,{...t.data,children:t.children})}},lE=t=>{let e=(0,iE.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)(Ey,{className:"py-2 text-md",children:$e({html:a[c]})}),(0,s.jsx)(Ry,{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)(Nc,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=l):l=e[7],l};const sE=xl("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 dE=ee();const G1=(0,x.memo)(t=>{let e=(0,dE.c)(7),{html:a,kind:r}=t,n;e[0]===r?n=e[1]:(n=sE({kind:r}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=(0,s.jsx)(UR,{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});G1.displayName="CalloutOutput";var uE=class{constructor(){Z(this,"tagName","marimo-callout-output");Z(this,"validator",B({html:z(),kind:L0}))}render({data:t}){return(0,s.jsx)(G1,{html:t.html,kind:t.kind})}},cE=":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)}}}",mE=".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}",pE=".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}",hE='.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}}',fE=':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)}}',gE=':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}}}',xE=class{constructor(){Z(this,"tagName","marimo-carousel");Z(this,"validator",B({index:z().nullish(),height:_e([z(),H()]).nullish()}));Z(this,"cssStyles",[fE,hE,cE,mE,pE,gE])}render(t){return(0,s.jsx)(vE,{...t.data,wrapAround:!0,children:t.children})}},vE=x.lazy(()=>Rt(()=>import("./slides-component-uBqtPHL3.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([357,12,13,8,9,10,6,7,11,156,49,48,28,358]),import.meta.url));const yE=qt("marimo-download").withData(B({data:z(),disabled:W().default(!1),filename:z().nullish(),label:z().nullish(),lazy:W().default(!1)})).withFunctions({load:lt.input(B({})).output(B({data:z(),filename:z().nullish()}))}).renderer(t=>(0,s.jsx)(bE,{data:t.data,...t.functions}));var bE=({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({});YT(d.data,d.filename||t.filename||"download")}catch(d){ta({title:"Failed to download",description:"Please try again."}),de.error("Failed to download:",d)}finally{r(!1)}}},i=a?wl:i6,o=t.label?$e({html:t.label}):"Download";return(0,s.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:n,className:Ya({variant:"secondary",disabled:t.disabled||a}),children:[(0,s.jsx)(i,{className:q("w-3 h-3",t.label&&"mr-2",a&&"animate-spin")}),o]})},wE=x.lazy(()=>Rt(()=>import("./ImageComparisonComponent-LONRB2tR.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([359,8,9,10,11]),import.meta.url)),DE=class{constructor(){Z(this,"tagName","marimo-image-comparison");Z(this,"validator",B({beforeSrc:z(),afterSrc:z(),value:H().min(0).max(100).default(50),direction:be(["horizontal","vertical"]).default("horizontal"),width:z().optional(),height:z().optional()}))}render(t){return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading image comparison..."}),children:(0,s.jsx)(wE,{...t.data})})}},jE=class{constructor(){Z(this,"tagName","marimo-json-output");Z(this,"validator",B({name:z().nullish(),jsonData:Wa(),valueTypes:be(["json","python"]).default("python")}))}render({data:t,host:e}){let a=t.name===void 0?!1:t.name||"";return(0,s.jsx)(Tv,{container:e.shadowRoot,children:(0,s.jsx)(Pv,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:a})})}},CE=ee();const kE=qt("marimo-lazy").withData(B({showLoadingIndicator:W().default(!1)})).withFunctions({load:lt.input(B({})).output(B({html:z()}))}).renderer(t=>(0,s.jsx)(SE,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var SE=t=>{let e=(0,CE.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]=YR(o);d!=null&&d.isIntersecting&&!n&&i(!0);let u;e[1]!==a||e[2]!==n?(u=v=>n?a({}):(v.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}=Vt(u,c);if(p){let v;return e[6]===p?v=e[7]:(v=(0,s.jsx)(hn,{error:p}),e[6]=p,e[7]=v),v}let g;e[8]!==m||e[9]!==h||e[10]!==r?(g=h&&r?(0,s.jsx)(wl,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):m&&$e({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},NE=class{constructor(){Z(this,"tagName","marimo-mime-renderer");Z(this,"validator",B({mime:z().transform(t=>t),data:_e([z(),an(),Ct(z(),Wa()),J(Ut())]).transform(t=>t)}))}render({data:t}){return t.data?(0,s.jsx)(iT,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,s.jsx)("div",{})}},EE=class{constructor(){Z(this,"tagName","marimo-mermaid");Z(this,"validator",B({diagram:z()}))}render(t){return(0,s.jsx)(_E,{diagram:t.data.diagram})}},_E=(0,x.lazy)(()=>Rt(()=>import("./mermaid-1T_6J8nz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,4,14,13,8,9,10,15,11,25,26,27,97,28,98,82,12,6,7,99,31,47,24,29,30,361,362,363,364,338,365,349,347,366,63,102,367,368,369,370,371,372,373,374,375,376,350,343,348]),import.meta.url)),RE=ee(),TE=t=>{let e=(0,RE.c)(12),{label:a}=t,{items:r}=dl(b_),n;e[0]===r?n=e[1]:(n=nI(r),e[0]=r,e[1]=n);let{activeHeaderId:i,activeOccurrences:o}=aI(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)(rI,{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},AE=class{constructor(){Z(this,"tagName","marimo-outline");Z(this,"validator",B({label:z().optional()}))}render(t){let{label:e}=t.data;return(0,s.jsx)(ll,{store:Oe,children:(0,s.jsx)(TE,{label:e})})}},IE=Wu(((t,e)=>{(function(){var a=Object.assign||function(y){for(var C,_=1;_<arguments.length;_++)for(var E in C=arguments[_],C)w(C,E)&&(y[E]=C[E]);return y},r=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[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(y){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][p(y)]},function(y){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][p(y)]},function(y){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][p(y)]},function(y){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][p(y)]},function(y){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][p(y)]},function(y){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][p(y)]},function(y){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][p(y)]},function(y){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(y)]},","),{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(y){return["rok","roku","roky","let"][g(y)]},function(y){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(y)]},function(y){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(y)]},function(y){return["den","dne","dny","dn\xED"][g(y)]},function(y){return["hodina","hodiny","hodiny","hodin"][g(y)]},function(y){return["minuta","minuty","minuty","minut"][g(y)]},function(y){return["sekunda","sekundy","sekundy","sekund"][g(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisekund"][g(y)]},","),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(y){return"an"+(y>=2?"s":"")},"mois",function(y){return"semaine"+(y>=2?"s":"")},function(y){return"jour"+(y>=2?"s":"")},function(y){return"heure"+(y>=2?"s":"")},function(y){return"minute"+(y>=2?"s":"")},function(y){return"seconde"+(y>=2?"s":"")},function(y){return"milliseconde"+(y>=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(y){return y%10==2||y%10==3||y%10==4?"godine":"godina"},function(y){return y===1?"mjesec":y===2||y===3||y===4?"mjeseca":"mjeseci"},function(y){return y%10==1&&y!==11?"tjedan":"tjedna"},l(["dan","dana"]),function(y){return y===1?"sat":y===2||y===3||y===4?"sata":"sati"},function(y){var C=y%10;return(C===2||C===3||C===4)&&(y<10||y>14)?"minute":"minuta"},function(y){var C=y%10;return C===5||Math.floor(y)===y&&y>=10&&y<=19?"sekundi":C===1?"sekunda":C===2||C===3||C===4?"sekunde":"sekundi"},function(y){return y===1?"milisekunda":y%10==2||y%10==3||y%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(y){return y%10==0||y%100>=10&&y%100<=20?"met\u0173":"metai"},function(y){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][f(y)]},function(y){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][f(y)]},function(y){return["diena","dienos","dien\u0173"][f(y)]},function(y){return["valanda","valandos","valand\u0173"][f(y)]},function(y){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][f(y)]},function(y){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][f(y)]},function(y){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][f(y)]},","),lv:o(function(y){return v(y)?"gads":"gadi"},function(y){return v(y)?"m\u0113nesis":"m\u0113ne\u0161i"},function(y){return v(y)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(y){return v(y)?"diena":"dienas"},function(y){return v(y)?"stunda":"stundas"},function(y){return v(y)?"min\u016Bte":"min\u016Btes"},function(y){return v(y)?"sekunde":"sekundes"},function(y){return v(y)?"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(y){return["rok","roku","lata","lat"][h(y)]},function(y){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][h(y)]},function(y){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][h(y)]},function(y){return["dzie\u0144","dnia","dni","dni"][h(y)]},function(y){return["godzina","godziny","godziny","godzin"][h(y)]},function(y){return["minuta","minuty","minuty","minut"][h(y)]},function(y){return["sekunda","sekundy","sekundy","sekund"][h(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisekund"][h(y)]},","),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(y){return"minut"+(y===1?"\xEB":"a")},function(y){return"sekond"+(y===1?"\xEB":"a")},function(y){return"milisekond"+(y===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(y){return["rok","roky","roky","rokov"][g(y)]},function(y){return["mesiac","mesiace","mesiace","mesiacov"][g(y)]},function(y){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(y)]},function(y){return["de\u0148","dni","dni","dn\xED"][g(y)]},function(y){return["hodina","hodiny","hodiny","hod\xEDn"][g(y)]},function(y){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(y)]},function(y){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(y)]},","),sl:o(function(y){return y%10==1?"leto":y%100==2?"leti":y%100==3||y%100==4||Math.floor(y)!==y&&y%100<=5?"leta":"let"},function(y){return y%10==1?"mesec":y%100==2||Math.floor(y)!==y&&y%100<=5?"meseca":y%10==3||y%10==4?"mesece":"mesecev"},function(y){return y%10==1?"teden":y%10==2||Math.floor(y)!==y&&y%100<=4?"tedna":y%10==3||y%10==4?"tedne":"tednov"},function(y){return y%100==1?"dan":"dni"},function(y){return y%10==1?"ura":y%100==2?"uri":y%10==3||y%10==4||Math.floor(y)!==y?"ure":"ur"},function(y){return y%10==1?"minuta":y%10==2?"minuti":y%10==3||y%10==4||Math.floor(y)!==y&&y%100<=4?"minute":"minut"},function(y){return y%10==1?"sekunda":y%100==2?"sekundi":y%100==3||y%100==4||Math.floor(y)!==y?"sekunde":"sekund"},function(y){return y%10==1?"milisekunda":y%100==2?"milisekundi":y%100==3||y%100==4||Math.floor(y)!==y?"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(y,C,_,E,A,F,T,M,R){var P={y,mo:C,w:_,d:E,h:A,m:F,s:T,ms:M};return R&&(P.decimal=R),P}function l(y){return function(C){return C===1?y[0]:y[1]}}function d(y,C,_,E,A,F,T,M,R){return o(l(y),l(C),l(_),l(E),l(A),l(F),l(T),l(M),R)}function u(y,C,_){return function(E){if(E===1)return y;if(Math.floor(E)!==E||E===0)return C;var A=E%100;return A>=1&&A<=19?C:_}}function c(y){return function(C){return Math.floor(C)===C?C%100>=5&&C%100<=20||C%10>=5&&C%10<=9||C%10==0?y[0]:C%10==1?y[1]:C>1?y[2]:y[1]:y[2]}}function m(y,C,_,E,A,F,T,M){return o(c(y),c(C),c(_),c(E),c(A),c(F),c(T),c(M),",")}function p(y){return y===2?1:y>2&&y<11?2:0}function h(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&!(y%100>10&&y%100<20)?2:3:1}function g(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&y%100<10?2:3:1}function f(y){return y===1||y%10==1&&y%100>20?0:Math.floor(y)!==y||y%10>=2&&y%100>20||y%10>=2&&y%100<10?1:2}function v(y){return y%10==1&&y%100!=11}function w(y,C){return Object.prototype.hasOwnProperty.call(y,C)}function b(y){var C=[y.language];if(w(y,"fallbacks"))if(r(y.fallbacks)&&y.fallbacks.length)C=C.concat(y.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var _=0;_<C.length;_++){var E=C[_];if(w(y.languages,E))return y.languages[E];if(w(i,E))return i[E]}throw Error("No language found.")}function D(y,C,_){var E=y.unitName,A=y.unitCount,F=_.spacer,T=_.maxDecimalPoints,M=w(_,"decimal")?_.decimal:w(C,"decimal")?C.decimal:".",R;"digitReplacements"in _?R=_.digitReplacements:"_digitReplacements"in C&&(R=C._digitReplacements);var P,I=(T===void 0?A:Math.floor(A*10**T)/10**T).toString();if(C._hideCountIf2&&A===2)P="",F="";else if(R){P="";for(var O=0;O<I.length;O++){var V=I[O];V==="."?P+=M:P+=R[V]}}else P=I.replace(".",M);var $=C[E],Q=typeof $=="function"?$(A):$;return C._numberFirst?Q+F+P:P+F+Q}function j(y,C){var _,E,A,F,T=C.units,M=C.unitMeasures,R="largest"in C?C.largest:1/0;if(!T.length)return[];var P={};for(F=y,E=0;E<T.length;E++){_=T[E];var I=M[_];A=E===T.length-1?F/I:Math.floor(F/I),P[_]=A,F-=A*I}if(C.round){var O=R;for(E=0;E<T.length;E++)if(_=T[E],A=P[_],A!==0&&(O--,O===0)){for(var V=E+1;V<T.length;V++){var $=T[V],Q=P[$];P[_]+=Q*M[$]/M[_],P[$]=0}break}for(E=T.length-1;E>=0;E--)if(_=T[E],A=P[_],A!==0){var X=Math.round(A);if(P[_]=X,E===0)break;var ae=T[E-1],me=M[ae],le=Math.floor(X*M[_]/me);if(le)P[ae]+=le,P[_]=0;else break}}var Y=[];for(E=0;E<T.length&&Y.length<R;E++)_=T[E],A=P[_],A&&Y.push({unitName:_,unitCount:A});return Y}function k(y,C){var _=b(C);if(!y.length){var E=C.units,A=E[E.length-1];return D({unitName:A,unitCount:0},_,C)}for(var F=C.conjunction,T=C.serialComma,M=w(C,"delimiter")?C.delimiter:w(_,"delimiter")?_.delimiter:", ",R=[],P=0;P<y.length;P++)R.push(D(y[P],_,C));return!F||y.length===1?R.join(M):y.length===2?R.join(F):R.slice(0,-1).join(M)+(T?",":"")+F+R.slice(-1)}function S(y){var C=function(_,E){_=Math.abs(_);var A=a({},C,E||{});return k(j(_,A),A)};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}},y)}var N=a(S({}),{getSupportedLanguages:function(){var y=[];for(var C in i)w(i,C)&&C!=="gr"&&y.push(C);return y},humanizer:S});typeof define=="function"&&define.amd?define(function(){return N}):e!==void 0&&e.exports?e.exports=N:this.humanizeDuration=N})()})),PE=ee(),ME=Na(IE(),1),FE=class{constructor(){Z(this,"tagName","marimo-progress");Z(this,"validator",B({title:z().optional(),subtitle:z().optional(),progress:_e([H(),W()]),total:H().optional(),eta:H().optional(),rate:H().optional()}))}render(t){return(0,s.jsx)(zE,{...t.data})}};const zE=t=>{let e=(0,PE.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)(GT,{value:VE(n/i*100)}),(0,s.jsxs)("span",{className:"shrink-0",children:[n," / ",i]})]}):(0,s.jsx)(wl,{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:[Ou(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 ",Ou(o)]},"eta"),(0,s.jsx)("span",{children:"\xB7"},"spacer-eta")),j&&l){let S=n/l;k.push((0,s.jsxs)("span",{children:["Total time ",Ou(S)]},"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:$e({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:$e({html:r})}),e[10]=r,e[11]=f);let v;e[12]===c?v=e[13]:(v=c(),e[12]=c,e[13]=v);let w;e[14]===p?w=e[15]:(w=p(),e[14]=p,e[15]=w);let b;e[16]!==v||e[17]!==w?(b=(0,s.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[v,w]}),e[16]=v,e[17]=w,e[18]=b):b=e[18];let D;return e[19]!==h||e[20]!==g||e[21]!==f||e[22]!==b?(D=(0,s.jsxs)("div",{className:h,children:[g,f,b]}),e[19]=h,e[20]=g,e[21]=f,e[22]=b,e[23]=D):D=e[23],D};function VE(t){return mT(t,0,100)}var OE=ME.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Ou(t){return OE(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var $E=Wu((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",a=v=>v,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(v){return v.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var l=class{constructor(v,w){this.tokens=v,this.originalPath=w}};t.TokenData=l;var d=class extends TypeError{constructor(v,w){let b=v;w&&(b+=`: ${w}`),b+="; visit https://git.new/pathToRegexpError for info",super(b),this.originalPath=w}};t.PathError=d;function u(v,w={}){let{encodePath:b=a}=w,D=[...v],j=[],k=0,S=0;function N(){let C="";if(r.test(D[k]))do C+=D[k++];while(n.test(D[k]));else if(D[k]==='"'){let _=k;for(;k++<D.length;){if(D[k]==='"'){k++,_=0;break}D[k]==="\\"&&k++,C+=D[k]}if(_)throw new d(`Unterminated quote at index ${_}`,v)}if(!C)throw new d(`Missing parameter name at index ${k}`,v);return C}for(;k<D.length;){let C=D[k],_=i[C];_?j.push({type:_,index:k++,value:C}):C==="\\"?j.push({type:"escape",index:k++,value:D[k++]}):C===":"?j.push({type:"param",index:k++,value:N()}):C==="*"?j.push({type:"wildcard",index:k++,value:N()}):j.push({type:"char",index:k++,value:C})}j.push({type:"end",index:k,value:""});function y(C){let _=[];for(;;){let E=j[S++];if(E.type===C)break;if(E.type==="char"||E.type==="escape"){let A=E.value,F=j[S];for(;F.type==="char"||F.type==="escape";)A+=F.value,F=j[++S];_.push({type:"text",value:b(A)});continue}if(E.type==="param"||E.type==="wildcard"){_.push({type:E.type,name:E.value});continue}if(E.type==="{"){_.push({type:"group",tokens:y("}")});continue}throw new d(`Unexpected ${E.type} at index ${E.index}, expected ${C}`,v)}return _}return new l(y("end"),v)}function c(v,w={}){let{decode:b=decodeURIComponent,delimiter:D=e}=w,{regexp:j,keys:k}=m(v,w),S=k.map(N=>b===!1?a:N.type==="param"?b:y=>y.split(D).map(b));return function(N){let y=j.exec(N);if(!y)return!1;let C=y[0],_=Object.create(null);for(let E=1;E<y.length;E++){if(y[E]===void 0)continue;let A=k[E-1],F=S[E-1];_[A.name]=F(y[E])}return{path:C,params:_}}}function m(v,w={}){let{delimiter:b=e,end:D=!0,sensitive:j=!1,trailing:k=!0}=w,S=[],N=j?"":"i",y=[];for(let _ of p(v,[])){let E=typeof _=="object"?_:u(_,w);for(let A of h(E.tokens,0,[]))y.push(g(A,b,S,E.originalPath))}let C=`^(?:${y.join("|")})`;return k&&(C+=`(?:${o(b)}$)?`),C+=D?"$":`(?=${o(b)}|$)`,{regexp:new RegExp(C,N),keys:S}}function p(v,w){if(Array.isArray(v))for(let b of v)p(b,w);else w.push(v);return w}function*h(v,w,b){if(w===v.length)return yield b;let D=v[w];if(D.type==="group")for(let j of h(D.tokens,0,b.slice()))yield*h(v,w+1,j);else b.push(D);yield*h(v,w+1,b)}function g(v,w,b,D){let j="",k="",S=!0;for(let N of v){if(N.type==="text"){j+=o(N.value),k+=N.value,S||(S=N.value.includes(w));continue}if(N.type==="param"||N.type==="wildcard"){if(!S&&!k)throw new d(`Missing text before "${N.name}" ${N.type}`,D);N.type==="param"?j+=`(${f(w,S?"":k)}+)`:j+="([\\s\\S]+)",b.push(N),k="",S=!1;continue}}return j}function f(v,w){return w.length<2?v.length<2?`[^${o(v+w)}]`:`(?:(?!${o(v)})[^${o(w)}])`:v.length<2?`(?:(?!${o(w)})[^${o(v)}])`:`(?:(?!${o(w)}|${o(v)})[\\s\\S])`}}))(),BE=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,$E.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}},LE=ee(),HE=class{constructor(){Z(this,"tagName","marimo-routes");Z(this,"validator",B({routes:J(z())}))}render(t){return(0,s.jsx)(WE,{...t.data,children:t.children})}},WE=t=>{let e=(0,LE.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 BE(a),e[0]=a,e[1]=i);let o=i,l;e[2]===o?l=e[3]:(l=()=>{let b=o.match(window.location);return b?b[1]:null},e[2]=o,e[3]=l);let[d,u]=(0,x.useState)(l),c;e[4]===o?c=e[5]:(c=b=>{let D=o.match(b);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 b=D=>{m(window.location)};return window.addEventListener("hashchange",b),window.addEventListener("popstate",b),()=>{window.removeEventListener("hashchange",b),window.removeEventListener("popstate",b)}},h=[m],e[6]=m,e[7]=p,e[8]=h),(0,x.useEffect)(p,h),!d){let b;return e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(s.Fragment,{}),e[9]=b):b=e[9],b}let g=a.indexOf(d),f;e[10]===r?f=e[11]:(f=x.Children.toArray(r),e[10]=r,e[11]=f);let v=f[g],w;return e[12]===v?w=e[13]:(w=(0,s.jsx)(s.Fragment,{children:v}),e[12]=v,e[13]=w),w},UE=ee(),KE=class{constructor(){Z(this,"tagName","marimo-stat");Z(this,"validator",B({value:_e([z(),H(),W()]).optional(),label:z().optional(),caption:z().optional(),bordered:W().default(!1),direction:be(["increase","decrease"]).optional(),target_direction:be(["increase","decrease"]).default("increase"),slot:Ut().optional()}))}render({data:t}){return(0,s.jsx)(ZE,{...t})}};const ZE=t=>{let e=(0,UE.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"?RA(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 E=dT(d);if(E!=null&&E[0]){let{mimetype:A,data:F}=E[0];return A!=="text/html"&&de.warn(`Expected text/html, got ${A}`),$e({html:F,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=f);let v=f,w=i&&"rounded-xl border shadow bg-card",b;e[5]===w?b=e[6]:(b=q("text-card-foreground p-6",w),e[5]=w,e[6]=b);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 S;e[13]!==n||e[14]!==o||e[15]!==h||e[16]!==g?(S=n&&(0,s.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,s.jsx)(Vc,{className:"w-4 h-4 mr-1 p-0.5",fill:h,stroke:g}),o==="decrease"&&(0,s.jsx)(Vc,{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]=S):S=e[17];let N;e[18]!==k||e[19]!==S?(N=(0,s.jsxs)("div",{children:[k,S]}),e[18]=k,e[19]=S,e[20]=N):N=e[20];let y;e[21]!==v||e[22]!==d?(y=d&&(0,s.jsx)("div",{className:"[--slot:true]",children:v()}),e[21]=v,e[22]=d,e[23]=y):y=e[23];let C;e[24]!==y||e[25]!==N?(C=(0,s.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[N,y]}),e[24]=y,e[25]=N,e[26]=C):C=e[26];let _;return e[27]!==C||e[28]!==b||e[29]!==D?(_=(0,s.jsxs)("div",{className:b,children:[D,C]}),e[27]=C,e[28]=b,e[29]=D,e[30]=_):_=e[30],_};var qE=ee(),YE=class{constructor(){Z(this,"tagName","marimo-tex");Z(this,"validator",B({}))}render(t){return(0,s.jsx)(XE,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},GE=Fv(async()=>(await Rt(async()=>{let{default:t}=await import("./katex-YDobqqVd.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([377,151]),import.meta.url)).default),QE=Fv(async()=>{await Rt(()=>import("./mhchem-CfNkyXzI.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([378,151]),import.meta.url)}),$u={};async function JE(t,e){let[a]=await Promise.all([GE(),QE()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?a.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:$u}):e.startsWith("||(")&&e.endsWith("||)")?a.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:$u}):e.startsWith("||[")&&e.endsWith("||]")&&a.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:$u})}var XE=t=>{var h;let e=(0,qE.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&&JE(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 e_=[new r3,new l3,Yk,new NS,new IS,new RS,new FS,new u3,new HS,new x5,h5,S5,new R5,new H5,new _C,new X5,new RN,new FN,new PN,new $N,new HN,new KN,new QN,new eE,new nE,new G5,new xN,b3,KS,c5,kE,yE,JD,R3,rN];var t_=[new oE,new uE,new xE,new DE,new jE,new NE,new EE,new ID,new AE,new FE,new HE,new KE,new YE];function a_(){KD(),YD(),e_.forEach(O0),t_.forEach(O0)}async function r_(){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-CBsQ2DM_.js").then(async l=>(await l.__tla,l));return{onLCP:n,onINP:i,onCLS:o}},[],import.meta.url);de.debug("Reporting vitals");let r=n=>{let i=n.rating==="good"?"green":n.rating==="needs-improvement"?"orange":"red";de.log(`%c [Metric ${n.name}] ${n.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};a(r),e(r),t(r)}var n_=rv(),Q1=!1;function i_(t,e){if(Q1)return de.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");Q1=!0;let a=(0,n_.createRoot)(e);try{KT(),a_(),nD(),gi()&&(cR(),rR(G_),s_()),l_(t),a.render((0,s.jsx)(ll,{store:Oe,children:(0,s.jsx)(Dm,{children:(0,s.jsx)(i0,{})})}))}catch(r){return a.render((0,s.jsx)(gl,{children:(0,s.jsx)(()=>{throw r},{})})),r}finally{r_()}}var Bu=tn({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(de.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(de.warn("[marimo] missing config data"),{}))),o_=B({filename:z().nullish().transform(t=>t||(de.warn("No filename provided, using fallback"),S_())),cwd:z().nullish().default(null),code:z().nullish().transform(t=>t??OR()??""),version:z().nullish().transform(t=>t??"unknown"),mode:be(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Bu,configOverrides:Bu,appConfig:Bu,view:B({showAppCode:W().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:z().nullish().transform(t=>t??""),fileStores:J(O_()).optional(),session:_e([an().optional(),tn({version:Ze("1"),metadata:Ut(),cells:J(Ut())}).transform(t=>t)]),notebook:_e([an().optional(),tn({version:Ze("1"),metadata:Ut(),cells:J(Ut())}).transform(t=>t)]),runtimeConfig:J(tn({url:z(),lazy:W().default(!0),authToken:z().nullish()})).nullish().transform(t=>t??[])});function l_(t){let e=o_.safeParse(t);if(!e.success)throw de.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let a=e.data.mode;if(aD(a),e.data.fileStores&&e.data.fileStores.length>0){de.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)eR.insert(0,e.data.fileStores[o]);de.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Oe.set(hT,mD()),Oe.set(I_,e.data.filename),Oe.set(R_,e.data.cwd??null),Oe.set(D_,e.data.code),Oe.set(k_,a),Oe.set(PR,e.data.version),Oe.set(IR,e.data.view.showAppCode);let r=new URL(window.location.href).searchParams.get(ac.viewAs)==="present",n=a==="edit"&&r?"present":a;if(Oe.set(N_,{mode:n,cellAnchor:null}),Oe.set(VR,e.data.serverToken),Oe.set(SR,kR(e.data.configOverrides)),Oe.set(DR,bR(e.data.config)),Oe.set(CR,wR(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];de.debug("\u26A1 Runtime URL",o.url),Oe.set(Ev,{...o,serverToken:e.data.serverToken}),!o.lazy&&!gi()&&Oe.set(Nv,{state:_v.CONNECTING})}else Oe.set(Ev,{...TR,lazy:!1,serverToken:e.data.serverToken});let i=Qy(e.data.session,e.data.notebook);i&&Oe.set(lv,i)}function s_(){let t=nT();if(t)for(let e of t)mR(vv,e)}var J1=document.getElementById("root");if(J1){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");i_(window.__MARIMO_MOUNT_CONFIG__,J1)}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 v;e[10]!==h||e[11]!==f?(v={displaylogo:!1,modeBarButtonsToAdd:f,...h},e[10]=h,e[11]=f,e[12]=v):v=e[12];let w=v,b;e[13]===n?b=e[14]:(b=R=>{if("dragmode"in R&&n(P=>({...P,dragmode:R.dragmode})),Object.keys(R).some(wN)){let P={};Object.entries(R).forEach(I=>{let[O,V]=I;J_(P,O,V)}),n(I=>({...I,...P}))}},e[13]=n,e[14]=b);let D;e[15]===n?D=e[16]:(D=()=>{n(DN)},e[15]=n,e[16]=D);let j=Ue(D),k;e[17]===n?k=e[18]:(k=R=>{R&&n(P=>({...P,points:R.points.map(jN)}))},e[17]=n,e[18]=k);let S=Ue(k),N;e[19]===n?N=e[20]:(N=R=>{R&&n(P=>({...P,points:R.points.map(CN)}))},e[19]=n,e[20]=N);let y=Ue(N),C;e[21]===n?C=e[22]:(C=R=>{R&&R.points.some(kN)&&n(P=>({...P,points:Z1(R.points),indices:R.points.map(SN)}))},e[21]=n,e[22]=C);let _=Ue(C),E;e[23]===n?E=e[24]:(E=R=>{R&&n(P=>({...P,selections:"selections"in R?R.selections:[],points:Z1(R.points),indices:R.points.map(NN),range:R.range}))},e[23]=n,e[24]=E);let A=Ue(E),F=d.frames??void 0,T=Ue(EN),M;return e[25]!==d||e[26]!==u||e[27]!==w||e[28]!==S||e[29]!==y||e[30]!==_||e[31]!==A||e[32]!==F||e[33]!==T||e[34]!==b||e[35]!==j?(M=(0,s.jsx)(vN,{...d,layout:u,onRelayout:b,onDeselect:j,onTreemapClick:S,onSunburstClick:y,config:w,onClick:_,onSelected:A,className:"w-full",useResizeHandler:!0,frames:F,onError:T}),e[25]=d,e[26]=u,e[27]=w,e[28]=S,e[29]=y,e[30]=_,e[31]=A,e[32]=F,e[33]=T,e[34]=b,e[35]=j,e[36]=M):M=e[36],M});K1.displayName="PlotlyComponent";var bN=["x","y","z","lat","lon","curveNumber","pointNumber","pointIndex"];function Z1(t){if(!t)return[];let e;return t.map(a=>{var n;let r=Array.isArray(a.data.hovertemplate)?a.data.hovertemplate[0]:a.data.hovertemplate;return!r||((n=a.data)==null?void 0:n.type)==="heatmap"?cl(a,bN):(e=e?e.update(r):W1(r),e.parse(a))})}function wN(t){return t.includes("xaxis")||t.includes("yaxis")}function DN(t){return{...t,selections:Ea.EMPTY,points:Ea.EMPTY,indices:Ea.EMPTY,range:void 0}}function jN(t){return cl(t,yN)}function CN(t){return cl(t,U1)}function kN(t){var e;return((e=t.data)==null?void 0:e.type)==="heatmap"}function SN(t){return t.pointIndex}function NN(t){return t.pointIndex}function EN(t){de.error("PlotlyPlugin: ",t)}var _N=ee(),RN=class{constructor(){Z(this,"tagName","marimo-radio");Z(this,"validator",B({initialValue:z().nullable(),inline:W().default(!1),label:z().nullable(),options:J(z()),disabled:W().optional()}))}render(t){return(0,s.jsx)(TN,{...t.data,value:t.value,setValue:t.setValue})}};const TN=t=>{let e=(0,_N.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=q(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)(c6,{value:g,id:`${a}-${f.toString()}`}),(0,s.jsx)(Ci,{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)(d6,{"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 AN=ee(),q1=x.forwardRef((t,e)=>{let a=(0,AN.c)(35),{className:r,valueMap:n,...i}=t,[o,l]=Lv(!1),{locale:d}=at(),u=q0,c;a[0]===r?c=a[1]:(c=q("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=q("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)(Nd,{"data-testid":"track",className:m,children:(0,s.jsx)(Ed,{"data-testid":"range",className:q("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)(kc,{asChild:!0,children:(0,s.jsx)(wo,{"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)(Cc,{children:pn(n(i.value[0]),{locale:d})},i.value[0]),f;a[7]===g?f=a[8]:(f=(0,s.jsx)(Sc,{children:g}),a[7]=g,a[8]=f);let v;a[9]!==o||a[10]!==h||a[11]!==f?(v=(0,s.jsx)(zt,{children:(0,s.jsxs)(jc,{delayDuration:0,open:o,children:[h,f]})}),a[9]=o,a[10]=h,a[11]=f,a[12]=v):v=a[12];let w=zt,b=jc,D;a[13]!==l.setFalse||a[14]!==l.setTrue?(D=(0,s.jsx)(kc,{asChild:!0,children:(0,s.jsx)(wo,{"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=Sc,k=i.value!=null&&i.value.length===2&&(0,s.jsx)(Cc,{children:pn(n(i.value[1]),{locale:d})},i.value[1]),S;a[16]!==j||a[17]!==k?(S=(0,s.jsx)(j,{children:k}),a[16]=j,a[17]=k,a[18]=S):S=a[18];let N;a[19]!==b||a[20]!==o||a[21]!==D||a[22]!==S?(N=(0,s.jsxs)(b,{delayDuration:0,open:o,children:[D,S]}),a[19]=b,a[20]=o,a[21]=D,a[22]=S,a[23]=N):N=a[23];let y;a[24]!==w||a[25]!==N?(y=(0,s.jsx)(w,{children:N}),a[24]=w,a[25]=N,a[26]=y):y=a[26];let C;return a[27]!==i||a[28]!==e||a[29]!==u.Root||a[30]!==y||a[31]!==c||a[32]!==p||a[33]!==v?(C=(0,s.jsxs)(u.Root,{ref:e,className:c,...i,children:[p,v,y]}),a[27]=i,a[28]=e,a[29]=u.Root,a[30]=y,a[31]=c,a[32]=p,a[33]=v,a[34]=C):C=a[34],C});q1.displayName=Sd.displayName;var IN=ee(),PN=class{constructor(){Z(this,"tagName","marimo-range-slider");Z(this,"validator",B({initialValue:J(H()),label:z().nullable(),start:H(),stop:H(),step:H().optional(),steps:J(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)(MN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},MN=t=>{let e=(0,IN.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(),[v,w]=(0,x.useState)(n),b,D;e[0]===n?(b=e[1],D=e[2]):(b=()=>{w(n)},D=[n],e[0]=n,e[1]=b,e[2]=D),(0,x.useEffect)(b,D);let j=u==="horizontal"?"left":"top",k=m&&"my-1 w-full",S;e[3]===k?S=e[4]:(S=q(k),e[3]=k,e[4]=S);let N=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",y=m&&"w-full",C;e[5]!==N||e[6]!==y?(C=q("flex items-center gap-2",N,y),e[5]=N,e[6]=y,e[7]=C):C=e[7];let _=!m&&"data-[orientation=horizontal]:w-36 ",E;e[8]===_?E=e[9]:(E=q("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[8]=_,e[9]=E);let A,F;e[10]!==d||e[11]!==r?(A=V=>{w(V),d||r(V)},F=V=>{d&&r(V)},e[10]=d,e[11]=r,e[12]=A,e[13]=F):(A=e[12],F=e[13]);let T,M;e[14]!==d||e[15]!==v||e[16]!==r||e[17]!==n?(T=()=>{d&&!sl(v,n)&&r(v)},M=()=>{d&&!sl(v,n)&&r(v)},e[14]=d,e[15]=v,e[16]=r,e[17]=n,e[18]=T,e[19]=M):(T=e[18],M=e[19]);let R;e[20]!==p||e[21]!==g||e[22]!==v||e[23]!==u||e[24]!==i||e[25]!==l||e[26]!==o||e[27]!==E||e[28]!==A||e[29]!==F||e[30]!==T||e[31]!==M||e[32]!==h?(R=(0,s.jsx)(q1,{id:g,className:E,value:v,min:i,max:o,step:l,orientation:u,disabled:p,onValueChange:A,onValueCommit:F,onPointerUp:T,onMouseUp:M,valueMap:h}),e[20]=p,e[21]=g,e[22]=v,e[23]=u,e[24]=i,e[25]=l,e[26]=o,e[27]=E,e[28]=A,e[29]=F,e[30]=T,e[31]=M,e[32]=h,e[33]=R):R=e[33];let P;e[34]!==v||e[35]!==f||e[36]!==c||e[37]!==h?(P=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:`${pn(h(v[0]),{locale:f})}, ${pn(h(v[1]),{locale:f})}`}),e[34]=v,e[35]=f,e[36]=c,e[37]=h,e[38]=P):P=e[38];let I;e[39]!==R||e[40]!==P||e[41]!==C?(I=(0,s.jsxs)("div",{className:C,children:[R,P]}),e[39]=R,e[40]=P,e[41]=C,e[42]=I):I=e[42];let O;return e[43]!==m||e[44]!==g||e[45]!==a||e[46]!==I||e[47]!==j||e[48]!==S?(O=(0,s.jsx)(Ke,{label:a,id:g,align:j,className:S,fullWidth:m,children:I}),e[43]=m,e[44]=g,e[45]=a,e[46]=I,e[47]=j,e[48]=S,e[49]=O):O=e[49],O},Vu=Na(Wu(((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 v=f.match(/[0-9.]+/g)[0],w=f.match(/[a-z]+/g)[0];p+=l(v,w,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),ri=.1,Y1=z().superRefine((t,e)=>{try{(0,Vu.default)(t)<ri&&e.addIssue({code:cv.custom,message:`Must be greater than ${ri} seconds.`});return}catch{e.addIssue({code:cv.custom,message:"Must be a valid timestring. e.g. 1m, 30m, 1h."});return}}),FN=class{constructor(){Z(this,"tagName","marimo-refresh");Z(this,"validator",B({options:J(_e([Y1,H().min(ri)])).default([]),defaultInterval:_e([Y1,H().min(ri)]).optional(),label:z().nullable()}))}render(t){return(0,s.jsx)(VN,{...t})}},Qo="off",zN=0,VN=({setValue:t,data:e})=>{let[a,r]=(0,x.useState)(e.defaultInterval??Qo);(0,x.useEffect)(()=>{r(e.defaultInterval??Qo)},[e.defaultInterval]);let[n,i]=(0,x.useState)(!1),o=Ue(()=>{i(!0),t(()=>`${a} (${zN++})`),setTimeout(()=>i(!1),500)});(0,x.useEffect)(()=>{if(a===Qo)return;let u=typeof a=="number"?a:/[a-z]/.test(a)?(0,Vu.default)(a):(0,Vu.default)(`${a}s`);u=Math.max(u,ri);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:q(l,"border mb-0 rounded",d&&"border-r-0 rounded-tr-none rounded-br-none"),onClick:o,children:(0,s.jsx)(b6,{className:q("w-3.5 h-3.5",n&&"animate-spin")})}),(0,s.jsxs)(Dc,{"data-testid":"marimo-plugin-refresh-select",onChange:u=>{r(u.target.value)},value:a,className:q(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:Qo,children:"off"}),e.options.map(u=>(0,s.jsx)("option",{value:u,children:typeof u=="number"?`${u}s`:u},u))]})]})})},ON=ee(),$N=class{constructor(){Z(this,"tagName","marimo-slider");Z(this,"validator",B({initialValue:H(),label:z().nullable(),start:H(),stop:H(),step:H().optional(),steps:J(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)(BN,{...t.data,value:t.value,setValue:t.setValue,valueMap:e})}},BN=t=>{let e=(0,ON.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:v}=at(),[w,b]=(0,x.useState)(n),D,j;e[0]===n?(D=e[1],j=e[2]):(D=()=>{b(n)},j=[n],e[0]=n,e[1]=D,e[2]=j),(0,x.useEffect)(D,j);let k=u==="horizontal"?"left":"top",S=m&&"my-1 w-full",N;e[3]===S?N=e[4]:(N=q(S),e[3]=S,e[4]=N);let y=u==="vertical"&&"items-end inline-flex justify-center self-center mx-2",C;e[5]===y?C=e[6]:(C=q("flex items-center gap-2",y),e[5]=y,e[6]=C);let _=!m&&"data-[orientation=horizontal]:w-36 ",E;e[7]===_?E=e[8]:(E=q("relative flex items-center select-none",_,"data-[orientation=vertical]:h-36"),e[7]=_,e[8]=E);let A;e[9]===w?A=e[10]:(A=[w],e[9]=w,e[10]=A);let F,T;e[11]!==d||e[12]!==r?(F=V=>{let[$]=V;b($),d||r($)},T=V=>{let[$]=V;d&&r($)},e[11]=d,e[12]=r,e[13]=F,e[14]=T):(F=e[13],T=e[14]);let M;e[15]!==g||e[16]!==f||e[17]!==u||e[18]!==i||e[19]!==l||e[20]!==o||e[21]!==A||e[22]!==F||e[23]!==T||e[24]!==E||e[25]!==p?(M=(0,s.jsx)(_d,{id:f,className:E,value:A,min:i,max:o,step:l,orientation:u,onValueChange:F,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]=A,e[22]=F,e[23]=T,e[24]=E,e[25]=p,e[26]=M):M=e[26];let R;e[27]!==w||e[28]!==v||e[29]!==c||e[30]!==p?(R=c&&(0,s.jsx)("div",{className:"text-xs text-muted-foreground min-w-[16px]",children:pn(p(w),{locale:v})}),e[27]=w,e[28]=v,e[29]=c,e[30]=p,e[31]=R):R=e[31];let P;e[32]!==d||e[33]!==g||e[34]!==h||e[35]!==w||e[36]!==a||e[37]!==r||e[38]!==i||e[39]!==l||e[40]!==o||e[41]!==p?(P=h&&(0,s.jsx)(gc,{value:p(w),onChange:V=>{(V==null||Number.isNaN(V))&&(V=Number(i)),b(V),d||r(V)},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]=w,e[36]=a,e[37]=r,e[38]=i,e[39]=l,e[40]=o,e[41]=p,e[42]=P):P=e[42];let I;e[43]!==M||e[44]!==R||e[45]!==P||e[46]!==C?(I=(0,s.jsxs)("div",{className:C,children:[M,R,P]}),e[43]=M,e[44]=R,e[45]=P,e[46]=C,e[47]=I):I=e[47];let O;return e[48]!==m||e[49]!==f||e[50]!==a||e[51]!==I||e[52]!==k||e[53]!==N?(O=(0,s.jsx)(Ke,{label:a,id:f,align:k,fullWidth:m,className:N,children:I}),e[48]=m,e[49]=f,e[50]=a,e[51]=I,e[52]=k,e[53]=N,e[54]=O):O=e[54],O},LN=ee(),HN=class{constructor(){Z(this,"tagName","marimo-switch");Z(this,"validator",B({initialValue:W(),label:z().nullable(),disabled:W().optional()}))}render(t){return(0,s.jsx)(WN,{...t})}},WN=t=>{let e=(0,LN.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)(zR,{"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},UN=ee(),KN=class{constructor(){Z(this,"tagName","marimo-tabs");Z(this,"validator",B({tabs:J(z())}))}render(t){return(0,s.jsx)(ZN,{...t.data,value:t.value,setValue:t.setValue,children:t.children})}},ZN=t=>{let e=(0,UN.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(qN),e[2]=a,e[3]=c);let m;e[4]===c?m=e[5]:(m=(0,s.jsx)(Di,{children:c}),e[4]=c,e[5]=m);let p;e[6]===i?p=e[7]:(p=x.Children.map(i,YN),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)(ji,{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 qN(t,e){return(0,s.jsx)(va,{value:e.toString(),children:$e({html:t})},e)}function YN(t,e){return(0,s.jsx)(xa,{value:e.toString(),children:t})}var GN=ee(),QN=class{constructor(){Z(this,"tagName","marimo-text-area");Z(this,"validator",B({initialValue:z(),placeholder:z(),label:z().nullable(),maxLength:H().optional(),minLength:H().optional(),disabled:W().optional(),debounce:uv(_e([W(),H()])),rows:H().default(4),fullWidth:W().default(!1)}))}render(t){return(0,s.jsx)(JN,{...t.data,value:t.value,setValue:t.setValue})}},JN=t=>{let e=(0,GN.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=q("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)($6,{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 v;return e[16]!==t.fullWidth||e[17]!==t.label||e[18]!==f?(v=(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]=v):v=e[19],v}if(typeof t.debounce=="number"){let m=t.label,p=t.fullWidth,h;e[20]===t.fullWidth?h=e[21]:(h=q("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)(H6,{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 v;return e[34]!==t.fullWidth||e[35]!==t.label||e[36]!==f?(v=(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]=v):v=e[37],v}let n=t.label,i=t.fullWidth,o;e[38]===t.fullWidth?o=e[39]:(o=q("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)(O6,{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},XN=ee(),eE=class{constructor(){Z(this,"tagName","marimo-text");Z(this,"validator",B({initialValue:z(),placeholder:z(),label:z().nullable(),kind:be(["text","password","email","url"]).default("text"),maxLength:H().optional(),minLength:H().optional(),fullWidth:W().default(!1),disabled:W().optional(),debounce:uv(_e([W(),H()]))}))}render(t){return(0,s.jsx)(tE,{...t.data,value:t.value,setValue:t.setValue})}},tE=t=>{let e=(0,XN.c)(66),[a,r]=(0,x.useState)(t.value),n=a??t.value,i=aE(t.kind,n),o;e[0]===Symbol.for("react.memo_cache_sentinel")?(o={text:null,password:(0,s.jsx)(v6,{size:16}),email:(0,s.jsx)(MT,{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,_=t.fullWidth,E=t.kind,A=l[t.kind],F=t.placeholder,T=t.maxLength,M=t.minLength,R=t.minLength!=null&&t.minLength>0,P=t.disabled,I=!i,O;e[4]!==t.fullWidth||e[5]!==I?(O=q({"border-destructive":I,"w-full":t.fullWidth}),e[4]=t.fullWidth,e[5]=I,e[6]=O):O=e[6];let V;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]!==A||e[17]!==R?(V=(0,s.jsx)(_6,{"data-testid":"marimo-plugin-text-input",type:E,icon:A,placeholder:F,maxLength:T,minLength:M,required:R,disabled:P,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]=A,e[17]=R,e[18]=V):V=e[18];let $;return e[19]!==t.fullWidth||e[20]!==t.label||e[21]!==V?($=(0,s.jsx)(Ke,{label:C,fullWidth:_,children:V}),e[19]=t.fullWidth,e[20]=t.label,e[21]=V,e[22]=$):$=e[22],$}if(typeof t.debounce=="number"){let C=t.label,_=t.fullWidth,E=t.kind,A=l[t.kind],F=t.placeholder,T=t.maxLength,M=t.minLength,R=t.minLength!=null&&t.minLength>0,P=t.disabled,I=!i,O;e[23]!==t.fullWidth||e[24]!==I?(O=q({"border-destructive":I,"w-full":t.fullWidth}),e[23]=t.fullWidth,e[24]=I,e[25]=O):O=e[25];let V;e[26]===Symbol.for("react.memo_cache_sentinel")?(V=X=>r(X.currentTarget.value),e[26]=V):V=e[26];let $;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]!==A||e[38]!==R?($=(0,s.jsx)(vc,{"data-testid":"marimo-plugin-text-input",type:E,icon:A,placeholder:F,maxLength:T,minLength:M,required:R,disabled:P,className:O,endAdornment:u,value:t.value,onValueChange:t.setValue,onBlur:V,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]=A,e[38]=R,e[39]=$):$=e[39];let Q;return e[40]!==t.fullWidth||e[41]!==t.label||e[42]!==$?(Q=(0,s.jsx)(Ke,{label:C,fullWidth:_,children:$}),e[40]=t.fullWidth,e[41]=t.label,e[42]=$,e[43]=Q):Q=e[43],Q}let c=t.label,m=t.fullWidth,p=t.kind,h=l[t.kind],g=t.placeholder,f=t.maxLength,v=t.minLength,w=t.minLength!=null&&t.minLength>0,b=t.disabled,D=!i,j;e[44]!==t.fullWidth||e[45]!==D?(j=q({"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 S;e[49]===Symbol.for("react.memo_cache_sentinel")?(S=C=>r(C.currentTarget.value),e[49]=S):S=e[49];let 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]!==w?(N=(0,s.jsx)(xc,{"data-testid":"marimo-plugin-text-input",type:p,icon:h,placeholder:g,maxLength:f,minLength:v,required:w,disabled:b,className:j,endAdornment:u,value:t.value,onInput:k,onBlur: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]=w,e[61]=N):N=e[61];let y;return e[62]!==t.fullWidth||e[63]!==t.label||e[64]!==N?(y=(0,s.jsx)(Ke,{label:c,fullWidth:m,children:N}),e[62]=t.fullWidth,e[63]=t.label,e[64]=N,e[65]=y):y=e[65],y};function aE(t,e){if(!e)return!0;switch(t){case"email":return z().email().safeParse(e).success;case"url":return z().url().safeParse(e).success;default:return!0}}var rE=x.lazy(()=>Rt(()=>import("./vega-component-Ce_zhbUD.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([353,135,13,8,9,10,136,137,138,139,27,79,6,7,11,12,14,15,22,18,37,36,35,24,25,26,28,29,30,31,33,97,354,98,82,99,157,47,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,62,20,121,66,67,42,68,355,356]),import.meta.url)),nE=class{constructor(){Z(this,"tagName","marimo-vega");Z(this,"validator",B({spec:B({}).passthrough().transform(t=>t),chartSelection:_e([W(),Ze("point"),Ze("interval")]).default(!0),fieldSelection:_e([W(),J(z())]).default(!0),embedOptions:B({}).passthrough().default({})}))}render(t){return(0,s.jsx)(zt,{children:(0,s.jsx)(rE,{value:t.value,setValue:t.setValue,...t.data})})}},iE=ee(),oE=class{constructor(){Z(this,"tagName","marimo-accordion");Z(this,"validator",B({labels:J(z()),multiple:W()}))}render(t){return(0,s.jsx)(lE,{...t.data,children:t.children})}},lE=t=>{let e=(0,iE.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)(Ey,{className:"py-2 text-md",children:$e({html:a[c]})}),(0,s.jsx)(Ry,{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)(Nc,{type:i,className:"text-muted-foreground",collapsible:!0,children:o}),e[5]=o,e[6]=i,e[7]=l):l=e[7],l};const sE=xl("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 dE=ee();const G1=(0,x.memo)(t=>{let e=(0,dE.c)(7),{html:a,kind:r}=t,n;e[0]===r?n=e[1]:(n=sE({kind:r}),e[0]=r,e[1]=n);let i;e[2]===a?i=e[3]:(i=(0,s.jsx)(UR,{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});G1.displayName="CalloutOutput";var uE=class{constructor(){Z(this,"tagName","marimo-callout-output");Z(this,"validator",B({html:z(),kind:L0}))}render({data:t}){return(0,s.jsx)(G1,{html:t.html,kind:t.kind})}},cE=":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)}}}",mE=".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}",pE=".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}",hE='.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}}',fE=':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)}}',gE=':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}}}',xE=class{constructor(){Z(this,"tagName","marimo-carousel");Z(this,"validator",B({index:z().nullish(),height:_e([z(),H()]).nullish()}));Z(this,"cssStyles",[fE,hE,cE,mE,pE,gE])}render(t){return(0,s.jsx)(vE,{...t.data,wrapAround:!0,children:t.children})}},vE=x.lazy(()=>Rt(()=>import("./slides-component-uBqtPHL3.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([357,12,13,8,9,10,6,7,11,156,49,48,28,358]),import.meta.url));const yE=qt("marimo-download").withData(B({data:z(),disabled:W().default(!1),filename:z().nullish(),label:z().nullish(),lazy:W().default(!1)})).withFunctions({load:lt.input(B({})).output(B({data:z(),filename:z().nullish()}))}).renderer(t=>(0,s.jsx)(bE,{data:t.data,...t.functions}));var bE=({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({});YT(d.data,d.filename||t.filename||"download")}catch(d){ta({title:"Failed to download",description:"Please try again."}),de.error("Failed to download:",d)}finally{r(!1)}}},i=a?wl:i6,o=t.label?$e({html:t.label}):"Download";return(0,s.jsxs)("a",{href:t.data,download:t.filename||!0,target:"_blank",rel:"noopener noreferrer",onClick:n,className:Ya({variant:"secondary",disabled:t.disabled||a}),children:[(0,s.jsx)(i,{className:q("w-3 h-3",t.label&&"mr-2",a&&"animate-spin")}),o]})},wE=x.lazy(()=>Rt(()=>import("./ImageComparisonComponent-LONRB2tR.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([359,8,9,10,11]),import.meta.url)),DE=class{constructor(){Z(this,"tagName","marimo-image-comparison");Z(this,"validator",B({beforeSrc:z(),afterSrc:z(),value:H().min(0).max(100).default(50),direction:be(["horizontal","vertical"]).default("horizontal"),width:z().optional(),height:z().optional()}))}render(t){return(0,s.jsx)(x.Suspense,{fallback:(0,s.jsx)("div",{children:"Loading image comparison..."}),children:(0,s.jsx)(wE,{...t.data})})}},jE=class{constructor(){Z(this,"tagName","marimo-json-output");Z(this,"validator",B({name:z().nullish(),jsonData:Wa(),valueTypes:be(["json","python"]).default("python")}))}render({data:t,host:e}){let a=t.name===void 0?!1:t.name||"";return(0,s.jsx)(Tv,{container:e.shadowRoot,children:(0,s.jsx)(Pv,{data:t.jsonData,format:"auto",valueTypes:t.valueTypes,name:a})})}},CE=ee();const kE=qt("marimo-lazy").withData(B({showLoadingIndicator:W().default(!1)})).withFunctions({load:lt.input(B({})).output(B({html:z()}))}).renderer(t=>(0,s.jsx)(SE,{value:t.value,setValue:t.setValue,...t.data,...t.functions}));var SE=t=>{let e=(0,CE.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]=YR(o);d!=null&&d.isIntersecting&&!n&&i(!0);let u;e[1]!==a||e[2]!==n?(u=v=>n?a({}):(v.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}=Vt(u,c);if(p){let v;return e[6]===p?v=e[7]:(v=(0,s.jsx)(hn,{error:p}),e[6]=p,e[7]=v),v}let g;e[8]!==m||e[9]!==h||e[10]!==r?(g=h&&r?(0,s.jsx)(wl,{className:"w-12 h-12 animate-spin text-primary my-4 mx-4"}):m&&$e({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},NE=class{constructor(){Z(this,"tagName","marimo-mime-renderer");Z(this,"validator",B({mime:z().transform(t=>t),data:_e([z(),an(),Ct(z(),Wa()),J(Ut())]).transform(t=>t)}))}render({data:t}){return t.data?(0,s.jsx)(iT,{message:{data:t.data,channel:"output",mimetype:t.mime}}):(0,s.jsx)("div",{})}},EE=class{constructor(){Z(this,"tagName","marimo-mermaid");Z(this,"validator",B({diagram:z()}))}render(t){return(0,s.jsx)(_E,{diagram:t.data.diagram})}},_E=(0,x.lazy)(()=>Rt(()=>import("./mermaid-1T_6J8nz.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([360,4,14,13,8,9,10,15,11,25,26,27,97,28,98,82,12,6,7,99,31,47,24,29,30,361,362,363,364,338,365,349,347,366,63,102,367,368,369,370,371,372,373,374,375,376,350,343,348]),import.meta.url)),RE=ee(),TE=t=>{let e=(0,RE.c)(12),{label:a}=t,{items:r}=dl(b_),n;e[0]===r?n=e[1]:(n=nI(r),e[0]=r,e[1]=n);let{activeHeaderId:i,activeOccurrences:o}=aI(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)(rI,{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},AE=class{constructor(){Z(this,"tagName","marimo-outline");Z(this,"validator",B({label:z().optional()}))}render(t){let{label:e}=t.data;return(0,s.jsx)(ll,{store:Oe,children:(0,s.jsx)(TE,{label:e})})}},IE=Wu(((t,e)=>{(function(){var a=Object.assign||function(y){for(var C,_=1;_<arguments.length;_++)for(var E in C=arguments[_],C)w(C,E)&&(y[E]=C[E]);return y},r=Array.isArray||function(y){return Object.prototype.toString.call(y)==="[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(y){return["\u0633\u0646\u0629","\u0633\u0646\u062A\u0627\u0646","\u0633\u0646\u0648\u0627\u062A"][p(y)]},function(y){return["\u0634\u0647\u0631","\u0634\u0647\u0631\u0627\u0646","\u0623\u0634\u0647\u0631"][p(y)]},function(y){return["\u0623\u0633\u0628\u0648\u0639","\u0623\u0633\u0628\u0648\u0639\u064A\u0646","\u0623\u0633\u0627\u0628\u064A\u0639"][p(y)]},function(y){return["\u064A\u0648\u0645","\u064A\u0648\u0645\u064A\u0646","\u0623\u064A\u0627\u0645"][p(y)]},function(y){return["\u0633\u0627\u0639\u0629","\u0633\u0627\u0639\u062A\u064A\u0646","\u0633\u0627\u0639\u0627\u062A"][p(y)]},function(y){return["\u062F\u0642\u064A\u0642\u0629","\u062F\u0642\u064A\u0642\u062A\u0627\u0646","\u062F\u0642\u0627\u0626\u0642"][p(y)]},function(y){return["\u062B\u0627\u0646\u064A\u0629","\u062B\u0627\u0646\u064A\u062A\u0627\u0646","\u062B\u0648\u0627\u0646\u064A"][p(y)]},function(y){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(y)]},","),{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(y){return["rok","roku","roky","let"][g(y)]},function(y){return["m\u011Bs\xEDc","m\u011Bs\xEDce","m\u011Bs\xEDce","m\u011Bs\xEDc\u016F"][g(y)]},function(y){return["t\xFDden","t\xFDdne","t\xFDdny","t\xFDdn\u016F"][g(y)]},function(y){return["den","dne","dny","dn\xED"][g(y)]},function(y){return["hodina","hodiny","hodiny","hodin"][g(y)]},function(y){return["minuta","minuty","minuty","minut"][g(y)]},function(y){return["sekunda","sekundy","sekundy","sekund"][g(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisekund"][g(y)]},","),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(y){return"an"+(y>=2?"s":"")},"mois",function(y){return"semaine"+(y>=2?"s":"")},function(y){return"jour"+(y>=2?"s":"")},function(y){return"heure"+(y>=2?"s":"")},function(y){return"minute"+(y>=2?"s":"")},function(y){return"seconde"+(y>=2?"s":"")},function(y){return"milliseconde"+(y>=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(y){return y%10==2||y%10==3||y%10==4?"godine":"godina"},function(y){return y===1?"mjesec":y===2||y===3||y===4?"mjeseca":"mjeseci"},function(y){return y%10==1&&y!==11?"tjedan":"tjedna"},l(["dan","dana"]),function(y){return y===1?"sat":y===2||y===3||y===4?"sata":"sati"},function(y){var C=y%10;return(C===2||C===3||C===4)&&(y<10||y>14)?"minute":"minuta"},function(y){var C=y%10;return C===5||Math.floor(y)===y&&y>=10&&y<=19?"sekundi":C===1?"sekunda":C===2||C===3||C===4?"sekunde":"sekundi"},function(y){return y===1?"milisekunda":y%10==2||y%10==3||y%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(y){return y%10==0||y%100>=10&&y%100<=20?"met\u0173":"metai"},function(y){return["m\u0117nuo","m\u0117nesiai","m\u0117nesi\u0173"][f(y)]},function(y){return["savait\u0117","savait\u0117s","savai\u010Di\u0173"][f(y)]},function(y){return["diena","dienos","dien\u0173"][f(y)]},function(y){return["valanda","valandos","valand\u0173"][f(y)]},function(y){return["minut\u0117","minut\u0117s","minu\u010Di\u0173"][f(y)]},function(y){return["sekund\u0117","sekund\u0117s","sekund\u017Ei\u0173"][f(y)]},function(y){return["milisekund\u0117","milisekund\u0117s","milisekund\u017Ei\u0173"][f(y)]},","),lv:o(function(y){return v(y)?"gads":"gadi"},function(y){return v(y)?"m\u0113nesis":"m\u0113ne\u0161i"},function(y){return v(y)?"ned\u0113\u013Ca":"ned\u0113\u013Cas"},function(y){return v(y)?"diena":"dienas"},function(y){return v(y)?"stunda":"stundas"},function(y){return v(y)?"min\u016Bte":"min\u016Btes"},function(y){return v(y)?"sekunde":"sekundes"},function(y){return v(y)?"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(y){return["rok","roku","lata","lat"][h(y)]},function(y){return["miesi\u0105c","miesi\u0105ca","miesi\u0105ce","miesi\u0119cy"][h(y)]},function(y){return["tydzie\u0144","tygodnia","tygodnie","tygodni"][h(y)]},function(y){return["dzie\u0144","dnia","dni","dni"][h(y)]},function(y){return["godzina","godziny","godziny","godzin"][h(y)]},function(y){return["minuta","minuty","minuty","minut"][h(y)]},function(y){return["sekunda","sekundy","sekundy","sekund"][h(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisekund"][h(y)]},","),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(y){return"minut"+(y===1?"\xEB":"a")},function(y){return"sekond"+(y===1?"\xEB":"a")},function(y){return"milisekond"+(y===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(y){return["rok","roky","roky","rokov"][g(y)]},function(y){return["mesiac","mesiace","mesiace","mesiacov"][g(y)]},function(y){return["t\xFD\u017Ede\u0148","t\xFD\u017Edne","t\xFD\u017Edne","t\xFD\u017Ed\u0148ov"][g(y)]},function(y){return["de\u0148","dni","dni","dn\xED"][g(y)]},function(y){return["hodina","hodiny","hodiny","hod\xEDn"][g(y)]},function(y){return["min\xFAta","min\xFAty","min\xFAty","min\xFAt"][g(y)]},function(y){return["sekunda","sekundy","sekundy","sek\xFAnd"][g(y)]},function(y){return["milisekunda","milisekundy","milisekundy","milisek\xFAnd"][g(y)]},","),sl:o(function(y){return y%10==1?"leto":y%100==2?"leti":y%100==3||y%100==4||Math.floor(y)!==y&&y%100<=5?"leta":"let"},function(y){return y%10==1?"mesec":y%100==2||Math.floor(y)!==y&&y%100<=5?"meseca":y%10==3||y%10==4?"mesece":"mesecev"},function(y){return y%10==1?"teden":y%10==2||Math.floor(y)!==y&&y%100<=4?"tedna":y%10==3||y%10==4?"tedne":"tednov"},function(y){return y%100==1?"dan":"dni"},function(y){return y%10==1?"ura":y%100==2?"uri":y%10==3||y%10==4||Math.floor(y)!==y?"ure":"ur"},function(y){return y%10==1?"minuta":y%10==2?"minuti":y%10==3||y%10==4||Math.floor(y)!==y&&y%100<=4?"minute":"minut"},function(y){return y%10==1?"sekunda":y%100==2?"sekundi":y%100==3||y%100==4||Math.floor(y)!==y?"sekunde":"sekund"},function(y){return y%10==1?"milisekunda":y%100==2?"milisekundi":y%100==3||y%100==4||Math.floor(y)!==y?"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(y,C,_,E,A,F,T,M,R){var P={y,mo:C,w:_,d:E,h:A,m:F,s:T,ms:M};return R&&(P.decimal=R),P}function l(y){return function(C){return C===1?y[0]:y[1]}}function d(y,C,_,E,A,F,T,M,R){return o(l(y),l(C),l(_),l(E),l(A),l(F),l(T),l(M),R)}function u(y,C,_){return function(E){if(E===1)return y;if(Math.floor(E)!==E||E===0)return C;var A=E%100;return A>=1&&A<=19?C:_}}function c(y){return function(C){return Math.floor(C)===C?C%100>=5&&C%100<=20||C%10>=5&&C%10<=9||C%10==0?y[0]:C%10==1?y[1]:C>1?y[2]:y[1]:y[2]}}function m(y,C,_,E,A,F,T,M){return o(c(y),c(C),c(_),c(E),c(A),c(F),c(T),c(M),",")}function p(y){return y===2?1:y>2&&y<11?2:0}function h(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&!(y%100>10&&y%100<20)?2:3:1}function g(y){return y===1?0:Math.floor(y)===y?y%10>=2&&y%10<=4&&y%100<10?2:3:1}function f(y){return y===1||y%10==1&&y%100>20?0:Math.floor(y)!==y||y%10>=2&&y%100>20||y%10>=2&&y%100<10?1:2}function v(y){return y%10==1&&y%100!=11}function w(y,C){return Object.prototype.hasOwnProperty.call(y,C)}function b(y){var C=[y.language];if(w(y,"fallbacks"))if(r(y.fallbacks)&&y.fallbacks.length)C=C.concat(y.fallbacks);else throw Error("fallbacks must be an array with at least one element");for(var _=0;_<C.length;_++){var E=C[_];if(w(y.languages,E))return y.languages[E];if(w(i,E))return i[E]}throw Error("No language found.")}function D(y,C,_){var E=y.unitName,A=y.unitCount,F=_.spacer,T=_.maxDecimalPoints,M=w(_,"decimal")?_.decimal:w(C,"decimal")?C.decimal:".",R;"digitReplacements"in _?R=_.digitReplacements:"_digitReplacements"in C&&(R=C._digitReplacements);var P,I=(T===void 0?A:Math.floor(A*10**T)/10**T).toString();if(C._hideCountIf2&&A===2)P="",F="";else if(R){P="";for(var O=0;O<I.length;O++){var V=I[O];V==="."?P+=M:P+=R[V]}}else P=I.replace(".",M);var $=C[E],Q=typeof $=="function"?$(A):$;return C._numberFirst?Q+F+P:P+F+Q}function j(y,C){var _,E,A,F,T=C.units,M=C.unitMeasures,R="largest"in C?C.largest:1/0;if(!T.length)return[];var P={};for(F=y,E=0;E<T.length;E++){_=T[E];var I=M[_];A=E===T.length-1?F/I:Math.floor(F/I),P[_]=A,F-=A*I}if(C.round){var O=R;for(E=0;E<T.length;E++)if(_=T[E],A=P[_],A!==0&&(O--,O===0)){for(var V=E+1;V<T.length;V++){var $=T[V],Q=P[$];P[_]+=Q*M[$]/M[_],P[$]=0}break}for(E=T.length-1;E>=0;E--)if(_=T[E],A=P[_],A!==0){var X=Math.round(A);if(P[_]=X,E===0)break;var ae=T[E-1],me=M[ae],le=Math.floor(X*M[_]/me);if(le)P[ae]+=le,P[_]=0;else break}}var Y=[];for(E=0;E<T.length&&Y.length<R;E++)_=T[E],A=P[_],A&&Y.push({unitName:_,unitCount:A});return Y}function k(y,C){var _=b(C);if(!y.length){var E=C.units,A=E[E.length-1];return D({unitName:A,unitCount:0},_,C)}for(var F=C.conjunction,T=C.serialComma,M=w(C,"delimiter")?C.delimiter:w(_,"delimiter")?_.delimiter:", ",R=[],P=0;P<y.length;P++)R.push(D(y[P],_,C));return!F||y.length===1?R.join(M):y.length===2?R.join(F):R.slice(0,-1).join(M)+(T?",":"")+F+R.slice(-1)}function S(y){var C=function(_,E){_=Math.abs(_);var A=a({},C,E||{});return k(j(_,A),A)};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}},y)}var N=a(S({}),{getSupportedLanguages:function(){var y=[];for(var C in i)w(i,C)&&C!=="gr"&&y.push(C);return y},humanizer:S});typeof define=="function"&&define.amd?define(function(){return N}):e!==void 0&&e.exports?e.exports=N:this.humanizeDuration=N})()})),PE=ee(),ME=Na(IE(),1),FE=class{constructor(){Z(this,"tagName","marimo-progress");Z(this,"validator",B({title:z().optional(),subtitle:z().optional(),progress:_e([H(),W()]),total:H().optional(),eta:H().optional(),rate:H().optional()}))}render(t){return(0,s.jsx)(zE,{...t.data})}};const zE=t=>{let e=(0,PE.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)(GT,{value:VE(n/i*100)}),(0,s.jsxs)("span",{className:"shrink-0",children:[n," / ",i]})]}):(0,s.jsx)(wl,{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:[Ou(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 ",Ou(o)]},"eta"),(0,s.jsx)("span",{children:"\xB7"},"spacer-eta")),j&&l){let S=n/l;k.push((0,s.jsxs)("span",{children:["Total time ",Ou(S)]},"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:$e({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:$e({html:r})}),e[10]=r,e[11]=f);let v;e[12]===c?v=e[13]:(v=c(),e[12]=c,e[13]=v);let w;e[14]===p?w=e[15]:(w=p(),e[14]=p,e[15]=w);let b;e[16]!==v||e[17]!==w?(b=(0,s.jsxs)("div",{className:"mt-2 w-full flex flex-col gap-1",children:[v,w]}),e[16]=v,e[17]=w,e[18]=b):b=e[18];let D;return e[19]!==h||e[20]!==g||e[21]!==f||e[22]!==b?(D=(0,s.jsxs)("div",{className:h,children:[g,f,b]}),e[19]=h,e[20]=g,e[21]=f,e[22]=b,e[23]=D):D=e[23],D};function VE(t){return mT(t,0,100)}var OE=ME.default.humanizer({language:"shortEn",languages:{shortEn:{y:()=>"y",mo:()=>"mo",w:()=>"w",d:()=>"d",h:()=>"h",m:()=>"m",s:()=>"s",ms:()=>"ms"}}});function Ou(t){return OE(t*1e3,{language:"shortEn",largest:2,spacer:"",maxDecimalPoints:t<10?2:0})}var $E=Wu((t=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PathError=t.TokenData=void 0,t.match=c;var e="/",a=v=>v,r=/^[$_\p{ID_Start}]$/u,n=/^[$\u200c\u200d\p{ID_Continue}]$/u,i={"{":"{","}":"}","(":"(",")":")","[":"[","]":"]","+":"+","?":"?","!":"!"};function o(v){return v.replace(/[.+*?^${}()[\]|/\\]/g,"\\$&")}var l=class{constructor(v,w){this.tokens=v,this.originalPath=w}};t.TokenData=l;var d=class extends TypeError{constructor(v,w){let b=v;w&&(b+=`: ${w}`),b+="; visit https://git.new/pathToRegexpError for info",super(b),this.originalPath=w}};t.PathError=d;function u(v,w={}){let{encodePath:b=a}=w,D=[...v],j=[],k=0,S=0;function N(){let C="";if(r.test(D[k]))do C+=D[k++];while(n.test(D[k]));else if(D[k]==='"'){let _=k;for(;k++<D.length;){if(D[k]==='"'){k++,_=0;break}D[k]==="\\"&&k++,C+=D[k]}if(_)throw new d(`Unterminated quote at index ${_}`,v)}if(!C)throw new d(`Missing parameter name at index ${k}`,v);return C}for(;k<D.length;){let C=D[k],_=i[C];_?j.push({type:_,index:k++,value:C}):C==="\\"?j.push({type:"escape",index:k++,value:D[k++]}):C===":"?j.push({type:"param",index:k++,value:N()}):C==="*"?j.push({type:"wildcard",index:k++,value:N()}):j.push({type:"char",index:k++,value:C})}j.push({type:"end",index:k,value:""});function y(C){let _=[];for(;;){let E=j[S++];if(E.type===C)break;if(E.type==="char"||E.type==="escape"){let A=E.value,F=j[S];for(;F.type==="char"||F.type==="escape";)A+=F.value,F=j[++S];_.push({type:"text",value:b(A)});continue}if(E.type==="param"||E.type==="wildcard"){_.push({type:E.type,name:E.value});continue}if(E.type==="{"){_.push({type:"group",tokens:y("}")});continue}throw new d(`Unexpected ${E.type} at index ${E.index}, expected ${C}`,v)}return _}return new l(y("end"),v)}function c(v,w={}){let{decode:b=decodeURIComponent,delimiter:D=e}=w,{regexp:j,keys:k}=m(v,w),S=k.map(N=>b===!1?a:N.type==="param"?b:y=>y.split(D).map(b));return function(N){let y=j.exec(N);if(!y)return!1;let C=y[0],_=Object.create(null);for(let E=1;E<y.length;E++){if(y[E]===void 0)continue;let A=k[E-1],F=S[E-1];_[A.name]=F(y[E])}return{path:C,params:_}}}function m(v,w={}){let{delimiter:b=e,end:D=!0,sensitive:j=!1,trailing:k=!0}=w,S=[],N=j?"":"i",y=[];for(let _ of p(v,[])){let E=typeof _=="object"?_:u(_,w);for(let A of h(E.tokens,0,[]))y.push(g(A,b,S,E.originalPath))}let C=`^(?:${y.join("|")})`;return k&&(C+=`(?:${o(b)}$)?`),C+=D?"$":`(?=${o(b)}|$)`,{regexp:new RegExp(C,N),keys:S}}function p(v,w){if(Array.isArray(v))for(let b of v)p(b,w);else w.push(v);return w}function*h(v,w,b){if(w===v.length)return yield b;let D=v[w];if(D.type==="group")for(let j of h(D.tokens,0,b.slice()))yield*h(v,w+1,j);else b.push(D);yield*h(v,w+1,b)}function g(v,w,b,D){let j="",k="",S=!0;for(let N of v){if(N.type==="text"){j+=o(N.value),k+=N.value,S||(S=N.value.includes(w));continue}if(N.type==="param"||N.type==="wildcard"){if(!S&&!k)throw new d(`Missing text before "${N.name}" ${N.type}`,D);N.type==="param"?j+=`(${f(w,S?"":k)}+)`:j+="([\\s\\S]+)",b.push(N),k="",S=!1;continue}}return j}function f(v,w){return w.length<2?v.length<2?`[^${o(v+w)}]`:`(?:(?!${o(v)})[^${o(w)}])`:v.length<2?`(?:(?!${o(w)})[^${o(v)}])`:`(?:(?!${o(w)}|${o(v)})[\\s\\S])`}}))(),BE=class{constructor(t){this.routes=t.map(e=>({template:e,pathFunction:(0,$E.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}},LE=ee(),HE=class{constructor(){Z(this,"tagName","marimo-routes");Z(this,"validator",B({routes:J(z())}))}render(t){return(0,s.jsx)(WE,{...t.data,children:t.children})}},WE=t=>{let e=(0,LE.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 BE(a),e[0]=a,e[1]=i);let o=i,l;e[2]===o?l=e[3]:(l=()=>{let b=o.match(window.location);return b?b[1]:null},e[2]=o,e[3]=l);let[d,u]=(0,x.useState)(l),c;e[4]===o?c=e[5]:(c=b=>{let D=o.match(b);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 b=D=>{m(window.location)};return window.addEventListener("hashchange",b),window.addEventListener("popstate",b),()=>{window.removeEventListener("hashchange",b),window.removeEventListener("popstate",b)}},h=[m],e[6]=m,e[7]=p,e[8]=h),(0,x.useEffect)(p,h),!d){let b;return e[9]===Symbol.for("react.memo_cache_sentinel")?(b=(0,s.jsx)(s.Fragment,{}),e[9]=b):b=e[9],b}let g=a.indexOf(d),f;e[10]===r?f=e[11]:(f=x.Children.toArray(r),e[10]=r,e[11]=f);let v=f[g],w;return e[12]===v?w=e[13]:(w=(0,s.jsx)(s.Fragment,{children:v}),e[12]=v,e[13]=w),w},UE=ee(),KE=class{constructor(){Z(this,"tagName","marimo-stat");Z(this,"validator",B({value:_e([z(),H(),W()]).optional(),label:z().optional(),caption:z().optional(),bordered:W().default(!1),direction:be(["increase","decrease"]).optional(),target_direction:be(["increase","decrease"]).default("increase"),slot:Ut().optional()}))}render({data:t}){return(0,s.jsx)(ZE,{...t})}};const ZE=t=>{let e=(0,UE.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"?RA(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 E=dT(d);if(E!=null&&E[0]){let{mimetype:A,data:F}=E[0];return A!=="text/html"&&de.warn(`Expected text/html, got ${A}`),$e({html:F,alwaysSanitizeHtml:!0})}},e[3]=d,e[4]=f);let v=f,w=i&&"rounded-xl border shadow bg-card",b;e[5]===w?b=e[6]:(b=q("text-card-foreground p-6",w),e[5]=w,e[6]=b);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 S;e[13]!==n||e[14]!==o||e[15]!==h||e[16]!==g?(S=n&&(0,s.jsxs)("p",{className:"pt-1 text-xs text-muted-foreground flex align-center whitespace-nowrap",children:[o==="increase"&&(0,s.jsx)(Vc,{className:"w-4 h-4 mr-1 p-0.5",fill:h,stroke:g}),o==="decrease"&&(0,s.jsx)(Vc,{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]=S):S=e[17];let N;e[18]!==k||e[19]!==S?(N=(0,s.jsxs)("div",{children:[k,S]}),e[18]=k,e[19]=S,e[20]=N):N=e[20];let y;e[21]!==v||e[22]!==d?(y=d&&(0,s.jsx)("div",{className:"[--slot:true]",children:v()}),e[21]=v,e[22]=d,e[23]=y):y=e[23];let C;e[24]!==y||e[25]!==N?(C=(0,s.jsxs)("div",{className:"pt-0 flex flex-row gap-3.5",children:[N,y]}),e[24]=y,e[25]=N,e[26]=C):C=e[26];let _;return e[27]!==C||e[28]!==b||e[29]!==D?(_=(0,s.jsxs)("div",{className:b,children:[D,C]}),e[27]=C,e[28]=b,e[29]=D,e[30]=_):_=e[30],_};var qE=ee(),YE=class{constructor(){Z(this,"tagName","marimo-tex");Z(this,"validator",B({}))}render(t){return(0,s.jsx)(XE,{host:t.host,tex:t.host.textContent||t.host.innerHTML})}},GE=Fv(async()=>(await Rt(async()=>{let{default:t}=await import("./katex-YDobqqVd.js").then(async e=>(await e.__tla,e));return{default:t}},__vite__mapDeps([377,151]),import.meta.url)).default),QE=Fv(async()=>{await Rt(()=>import("./mhchem-CfNkyXzI.js").then(async t=>(await t.__tla,t)),__vite__mapDeps([378,151]),import.meta.url)}),$u={"\\mbox":"\\text{#1}"};async function JE(t,e){let[a]=await Promise.all([GE(),QE()]);e.startsWith("||(||(")&&e.endsWith("||)||)")?a.render(e.slice(6,-6),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:$u}):e.startsWith("||(")&&e.endsWith("||)")?a.render(e.slice(3,-3),t,{displayMode:!1,globalGroup:!0,throwOnError:!1,macros:$u}):e.startsWith("||[")&&e.endsWith("||]")&&a.render(e.slice(3,-3),t,{displayMode:!0,globalGroup:!0,throwOnError:!1,macros:$u})}var XE=t=>{var h;let e=(0,qE.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&&JE(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 e_=[new r3,new l3,Yk,new NS,new IS,new RS,new FS,new u3,new HS,new x5,h5,S5,new R5,new H5,new _C,new X5,new RN,new FN,new PN,new $N,new HN,new KN,new QN,new eE,new nE,new G5,new xN,b3,KS,c5,kE,yE,JD,R3,rN];var t_=[new oE,new uE,new xE,new DE,new jE,new NE,new EE,new ID,new AE,new FE,new HE,new KE,new YE];function a_(){KD(),YD(),e_.forEach(O0),t_.forEach(O0)}async function r_(){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-CBsQ2DM_.js").then(async l=>(await l.__tla,l));return{onLCP:n,onINP:i,onCLS:o}},[],import.meta.url);de.debug("Reporting vitals");let r=n=>{let i=n.rating==="good"?"green":n.rating==="needs-improvement"?"orange":"red";de.log(`%c [Metric ${n.name}] ${n.value}`,`background:${i}; color:white; padding:2px 0; border-radius:2px`)};a(r),e(r),t(r)}var n_=rv(),Q1=!1;function i_(t,e){if(Q1)return de.warn("marimo app has already been mounted."),Error("marimo app has already been mounted.");Q1=!0;let a=(0,n_.createRoot)(e);try{KT(),a_(),nD(),gi()&&(cR(),rR(G_),s_()),l_(t),a.render((0,s.jsx)(ll,{store:Oe,children:(0,s.jsx)(Dm,{children:(0,s.jsx)(i0,{})})}))}catch(r){return a.render((0,s.jsx)(gl,{children:(0,s.jsx)(()=>{throw r},{})})),r}finally{r_()}}var Bu=tn({}).nullish().default({}).transform(t=>t||(typeof t=="string"?(de.warn("[marimo] received JSON string instead of object. Parsing..."),JSON.parse(t)):(de.warn("[marimo] missing config data"),{}))),o_=B({filename:z().nullish().transform(t=>t||(de.warn("No filename provided, using fallback"),S_())),cwd:z().nullish().default(null),code:z().nullish().transform(t=>t??OR()??""),version:z().nullish().transform(t=>t??"unknown"),mode:be(["edit","read","home","run","gallery"]).transform(t=>t==="run"?"read":t),config:Bu,configOverrides:Bu,appConfig:Bu,view:B({showAppCode:W().default(!0)}).nullish().transform(t=>t??{showAppCode:!0}),serverToken:z().nullish().transform(t=>t??""),fileStores:J(O_()).optional(),session:_e([an().optional(),tn({version:Ze("1"),metadata:Ut(),cells:J(Ut())}).transform(t=>t)]),notebook:_e([an().optional(),tn({version:Ze("1"),metadata:Ut(),cells:J(Ut())}).transform(t=>t)]),runtimeConfig:J(tn({url:z(),lazy:W().default(!0),authToken:z().nullish()})).nullish().transform(t=>t??[])});function l_(t){let e=o_.safeParse(t);if(!e.success)throw de.error("Invalid marimo mount options",e.error),Error("Invalid marimo mount options");let a=e.data.mode;if(aD(a),e.data.fileStores&&e.data.fileStores.length>0){de.log("\u{1F5C4}\uFE0F Initializing file stores via mount...");for(let o=e.data.fileStores.length-1;o>=0;o--)eR.insert(0,e.data.fileStores[o]);de.log(`\u{1F5C4}\uFE0F Injected ${e.data.fileStores.length} file store(s) into notebookFileStore`)}Oe.set(hT,mD()),Oe.set(I_,e.data.filename),Oe.set(R_,e.data.cwd??null),Oe.set(D_,e.data.code),Oe.set(k_,a),Oe.set(PR,e.data.version),Oe.set(IR,e.data.view.showAppCode);let r=new URL(window.location.href).searchParams.get(ac.viewAs)==="present",n=a==="edit"&&r?"present":a;if(Oe.set(N_,{mode:n,cellAnchor:null}),Oe.set(VR,e.data.serverToken),Oe.set(SR,kR(e.data.configOverrides)),Oe.set(DR,bR(e.data.config)),Oe.set(CR,wR(e.data.appConfig)),e.data.runtimeConfig.length>0){let o=e.data.runtimeConfig[0];de.debug("\u26A1 Runtime URL",o.url),Oe.set(Ev,{...o,serverToken:e.data.serverToken}),!o.lazy&&!gi()&&Oe.set(Nv,{state:_v.CONNECTING})}else Oe.set(Ev,{...TR,lazy:!1,serverToken:e.data.serverToken});let i=Qy(e.data.session,e.data.notebook);i&&Oe.set(lv,i)}function s_(){let t=nT();if(t)for(let e of t)mR(vv,e)}var J1=document.getElementById("root");if(J1){if(!window.__MARIMO_MOUNT_CONFIG__)throw Error("[marimo] mount config not found");i_(window.__MARIMO_MOUNT_CONFIG__,J1)}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-
|
|
69
|
+
<script type="module" crossorigin src="./assets/index-CXRGI-CB.js"></script>
|
|
70
70
|
<link rel="modulepreload" crossorigin href="./assets/preload-helper-TXkS1QI3.js">
|
|
71
71
|
<link rel="modulepreload" crossorigin href="./assets/clsx-A78R3nYl.js">
|
|
72
72
|
<link rel="modulepreload" crossorigin href="./assets/cn-d_A4rA-x.js">
|
package/package.json
CHANGED
|
@@ -39,7 +39,10 @@ const importMhChem = once(async () => {
|
|
|
39
39
|
});
|
|
40
40
|
|
|
41
41
|
// Required, even if empty. (see https://github.com/KaTeX/KaTeX/issues/2513)
|
|
42
|
-
const macros = {
|
|
42
|
+
const macros = {
|
|
43
|
+
// KaTeX doesn't support \mbox; map it to the equivalent \text
|
|
44
|
+
"\\mbox": "\\text{#1}",
|
|
45
|
+
};
|
|
43
46
|
|
|
44
47
|
async function renderLatex(mount: HTMLElement, tex: string): Promise<void> {
|
|
45
48
|
const [katex] = await Promise.all([importKatex(), importMhChem()]);
|