smbls 3.14.45 → 3.14.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/smbls.cjs CHANGED
@@ -65,7 +65,7 @@ FROM ${a}${c}`},B2=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
65
65
  #1E54F0 36%,
66
66
  #8B4CCA 69%,
67
67
  #C66894 100%
68
- )`};var OI={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},TI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},RI={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},uS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...OI,...TI,...RI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var fS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var dS={ratio:1.618,subSequence:!0};var pS={SourceSans:[{url:""}]},hS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var gS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var mS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var yS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:lS,gradient:cS,theme:uS,typography:fS,spacing:dS,font:pS,fontFamily:hS,timing:yS,icons:gS,media:mS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};K(uo,{A:()=>Pk,AssetPicture:()=>jS,Audio:()=>MS,Avatar:()=>qk,B:()=>nk,Block:()=>bS,Box:()=>qc,Br:()=>ak,Button:()=>Fk,ButtonSet:()=>Mk,COMPONENTS:()=>co,Caption:()=>KS,Checkbox:()=>yk,CheckboxHgroup:()=>bk,Circle:()=>$S,CircleButton:()=>Dk,Clickable:()=>TS,Data:()=>sk,Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk,Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk,FileIcon:()=>Ek,Flex:()=>vS,Focusable:()=>RS,FocusableComponent:()=>PS,Footnote:()=>rk,Form:()=>AS,Grid:()=>_S,Gutter:()=>kS,H1:()=>VS,H2:()=>zS,H3:()=>US,H4:()=>WS,H5:()=>HS,H6:()=>qS,Headline:()=>ek,Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk,Hoverable:()=>OS,Hr:()=>ik,I:()=>ok,Icon:()=>Ck,IconButton:()=>Nk,IconText:()=>Ak,Iframe:()=>ES,Img:()=>CS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS,Input:()=>gk,Italic:()=>JS,KangorooButton:()=>Lk,Li:()=>lk,Link:()=>Hm,Notification:()=>Qk,NumberInput:()=>mk,Ol:()=>uk,P:()=>GS,Picture:()=>FS,Radio:()=>xk,RadioHgroup:()=>vk,Range:()=>Gk,RouteLink:()=>$k,RouterLink:()=>qm,SHAPES:()=>Wc,Select:()=>Ik,Shape:()=>wm,Span:()=>BS,SquareButton:()=>jk,Strong:()=>XS,Subhead:()=>tk,Svg:()=>DS,Text:()=>NS,Textarea:()=>Sk,TextareaWithButton:()=>kk,Theme:()=>IS,Title:()=>QS,Toggle:()=>wk,ToggleHgroup:()=>_k,Tooltip:()=>Uk,TooltipHidden:()=>Wk,TooltipParent:()=>Hk,U:()=>YS,Ul:()=>ck,Underline:()=>ZS,Video:()=>LS,depth:()=>Hc,getSystemGlobalTheme:()=>Pi});var mm={};K(mm,{Block:()=>bS,Flex:()=>vS,Grid:()=>_S,Gutter:()=>kS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS});var bS={display:"block"},xS={display:"inline"},vS={display:"flex"},wS={display:"inline-flex"},_S={display:"grid"},SS={display:"inline-grid"},kS={boxSize:"C1"};var ym={};K(ym,{Img:()=>CS});D();var CS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?si(t):"")||e.srcset}}};var bm={};K(bm,{Form:()=>AS});var AS={tag:"form"};var xm={};K(xm,{Iframe:()=>ES});var ES={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var vm={};K(vm,{Clickable:()=>TS,Focusable:()=>RS,FocusableComponent:()=>PS,Hoverable:()=>OS});var PI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},OS={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},TS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},RS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},PS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:PI};var km={};K(km,{Picture:()=>FS});var Sm={};K(Sm,{Theme:()=>IS,getSystemGlobalTheme:()=>Pi});var _m={};K(_m,{Circle:()=>$S,SHAPES:()=>Wc,Shape:()=>wm,default:()=>$I,depth:()=>Hc});D();var yt=T(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${yt.unit.default} 4${yt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${yt.unit.default} 6${yt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${yt.unit.default} 10${yt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${yt.unit.default} 16${yt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${yt.unit.default} 26${yt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${yt.unit.default} 42${yt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Uc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Wc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:lo(e),transition:Uc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:lo(e),transition:Uc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:lo(e),transition:Uc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Uc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},wm={deps:{exec:de,getSpacingBasedOnRatio:Xt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Wc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Wc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},$S={round:"100%"},$I=wm;D();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},IS={deps:{depth:Hc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var FS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Cm={};K(Cm,{AssetPicture:()=>jS});D();var jS={tag:"picture",children:e=>{let t=Ye(e);if(t)return ii(t,e.alt)}};var Am={};K(Am,{Svg:()=>DS});var DS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Em={};K(Em,{Video:()=>LS});D();var LS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Om={};K(Om,{Audio:()=>MS});D();var MS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Tm={};K(Tm,{B:()=>nk,Caption:()=>KS,Data:()=>sk,Footnote:()=>rk,H1:()=>VS,H2:()=>zS,H3:()=>US,H4:()=>WS,H5:()=>HS,H6:()=>qS,Headline:()=>ek,I:()=>ok,Italic:()=>JS,P:()=>GS,Span:()=>BS,Strong:()=>XS,Subhead:()=>tk,Text:()=>NS,Title:()=>QS,U:()=>YS,Underline:()=>ZS});var NS={},BS={tag:"span"},VS={tag:"h1"},zS={tag:"h2"},US={tag:"h3"},WS={tag:"h4"},HS={tag:"h5"},qS={tag:"h6"},GS={tag:"p"},KS={tag:"caption"},XS={tag:"strong",fontWeight:"700"},YS={tag:"u"},ZS={tag:"u"},JS={tag:"i"},QS={},ek={tag:"h6",fontSize:"B",fontWeight:500},tk={tag:"span",fontSize:"Z1"},rk={tag:"span",fontSize:"Z"},nk={tag:"b"},ok={tag:"i"},sk={tag:"data"};var Rm={};K(Rm,{Box:()=>qc,Br:()=>ak,Hr:()=>ik,Li:()=>lk,Ol:()=>uk,Ul:()=>ck});var II=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=rt(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:II},ik={tag:"hr",margin:"C1 0"},ak={tag:"br"},lk={tag:"li"},ck={tag:"ul",childExtends:{extends:"Li"}},uk={tag:"ol",childExtends:{extends:"Li"}};var Pm={};K(Pm,{Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk});var fk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},dk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:fk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:fk,margin:"0",color:"paragraph"}},pk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},hk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var $m={};K($m,{Input:()=>gk});var gk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Im={};K(Im,{NumberInput:()=>mk});var mk={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Fm={};K(Fm,{Checkbox:()=>yk,CheckboxHgroup:()=>bk});var yk={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},bk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var jm={};K(jm,{Radio:()=>xk,RadioHgroup:()=>vk});var xk={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},vk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Dm={};K(Dm,{Toggle:()=>wk,ToggleHgroup:()=>_k});var wk={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},_k={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Lm={};K(Lm,{Textarea:()=>Sk,TextareaWithButton:()=>kk});var Sk={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},kk={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Mm={};K(Mm,{FileIcon:()=>Ek,Icon:()=>Ck,IconText:()=>Ak});var Ck={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:F}=k&&k.utils,_=u(x,w),q=F(_).split(/([a-z])([A-Z])/g),te=q[1]?q[0]:_.split(".")[0].split(" ")[0],j=E&&E[te];if(j){let I=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=j[I]||j[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Ak={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Ek={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Gm={};K(Gm,{A:()=>Pk,Link:()=>Hm,RouteLink:()=>$k,RouterLink:()=>qm});var Wm={};K(Wm,{default:()=>MI,getActiveRoute:()=>Um,lastLevel:()=>Kc,lastPathname:()=>Gc,matchRoute:()=>Bm,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,router:()=>Yt,runGuards:()=>zm});D();var Tk=/^:(.+)/,Rk=/^\*$/,Ok=new Map,Nm=e=>{let t=Ok.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Tk);a?n.push({index:i,name:a[1]}):Rk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return Ok.set(e,s),s},Bm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||""),i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Nm(c),d=FI(o,u);d>a&&(a=d,i=c,l=jI(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},FI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(Tk.test(r[i]))o+=1;else if(Rk.test(r[i]))o+=.5;else return-1;return o},jI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Vm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},zm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Um=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Gc,Kc=0,DI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,LI={level:Kc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Yt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||C,i=o?.context?.document||pe,a={...LI,...o.context.routerOptions,...n};Kc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=DI(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=Vm(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Gc;Gc=p;let x,w,k,E;if(a.useParamsMatching){let _=Bm(p,o.routes,a.level);x=_.key,w=_.routePath,k=_.content,E=_.params}else x=Um(a.level,p),w=x,k=o.routes[x||"/"]||o.routes["/*"],E={};let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await zm(a.guards,_);if($===!1)return;if(typeof $=="string")return Yt($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let _={route:x,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&F?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}kr("routeChanged",o,a)},MI=Yt;var NI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Hm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Fr(e,e.href)||Fr(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:NI},Pk={extends:"Link"},qm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},$k={extends:[Hm,qm]};var Km={};K(Km,{Select:()=>Ik});var Ik={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Xm={};K(Xm,{Button:()=>Fk,ButtonSet:()=>Mk,CircleButton:()=>Dk,IconButton:()=>Nk,KangorooButton:()=>Lk,SquareButton:()=>jk});var Fk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},jk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Dk={extends:"SquareButton",round:"C"},Lk={extends:"Button",childExtends:"IconText"},Mk={tag:"nav",display:"flex",childExtends:"SquareButton"},Nk={extends:["SquareButton","ClickableItem"],round:"Z"};var Ym={};K(Ym,{Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk});var Bk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Vk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},zk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Zm={};K(Zm,{Tooltip:()=>Uk,TooltipHidden:()=>Wk,TooltipParent:()=>Hk});D();var Uk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>qe(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},Wk={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Hk={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Jm={};K(Jm,{Avatar:()=>qk});var qk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Qm={};K(Qm,{Range:()=>Gk});var Gk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ai("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ai("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ey={};K(ey,{Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk});var Kk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Xk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Yk={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Zk={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Jk={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ty={};K(ty,{Notification:()=>Qk});var Qk={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},mm,ym,bm,xm,vm,km,Cm,Am,_m,Em,Om,Sm,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,Mm,Gm,Km,Xm,Ym,Zm,Jm,Qm,ey,ty);function Xc(e){if(e==null)return 0;if(typeof e!="object")return e1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^e1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function e1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Yc(e[s],t[s]))return!1}return!0}function ry(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ry(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ny(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ny(e[n],o,r):e[n]=o}return e}function Lr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Lr(t)}function t1(e){return e.split(`
68
+ )`};var OI={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},TI={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},RI={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},uS={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...OI,...TI,...RI,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var fS={base:16,ratio:1.25,subSequence:!0,useCapsize:!0,templates:{}};var dS={ratio:1.618,subSequence:!0};var pS={SourceSans:[{url:""}]},hS={system:{value:['"Helvetica Neue"',"Helvetica","Arial"],type:"sans-serif",metrics:{capHeight:714,ascent:952,descent:-213,lineGap:28,unitsPerEm:1e3}}};var gS={symbols:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',logo:'<svg height="24" width="24"><path d="M13.843 2.7C19.063 2.7 23 6.366 23 11.228c0 3.754-2.862 6.584-6.658 6.584-3.287 0-5.007-2.318-5.007-4.609 0-2.395 1.923-4.344 4.287-4.344.566 0 1.023.12 1.309.223a.212.212 0 01.137.229l-.016.058-.514 1.18a.223.223 0 01-.245.13 2.965 2.965 0 00-.506-.046c-1.245 0-2.258 1.027-2.258 2.288 0 1.33 1.165 2.373 2.651 2.373 2.195 0 3.913-1.777 3.913-4.046 0-3.024-2.294-5.135-5.58-5.135-4.076 0-7.393 3.36-7.393 7.491a7.519 7.519 0 002.871 5.924l-4.96 3.18A12.042 12.042 0 012 14.7c0-6.617 5.313-12 11.843-12z" fill-rule="evenodd"/></svg>',arrowDownCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-circle"><circle cx="12" cy="12" r="10"/><path d="M8 12l4 4 4-4M12 8v8"/></svg>',arrowDownLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-left"><path d="M17 7L7 17M17 17H7V7"/></svg>',arrowDownRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down-right"><path d="M7 7l10 10M17 7v10H7"/></svg>',arrowDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-down"><path d="M12 5v14M19 12l-7 7-7-7"/></svg>',arrowLeftCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left-circle"><circle cx="12" cy="12" r="10"/><path d="M12 8l-4 4 4 4M16 12H8"/></svg>',arrowLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-left"><path d="M19 12H5M12 19l-7-7 7-7"/></svg>',arrowRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right"><path d="M5 12h14M12 5l7 7-7 7"/></svg>',arrowRightCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-right-circle"><circle cx="12" cy="12" r="10"/><path d="M12 16l4-4-4-4M8 12h8"/></svg>',arrowUpCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-circle"><circle cx="12" cy="12" r="10"/><path d="M16 12l-4-4-4 4M12 16V8"/></svg>',arrowUpLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-left"><path d="M17 17L7 7M7 17V7h10"/></svg>',arrowUpRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up-right"><path d="M7 17L17 7M7 7h10v10"/></svg>',arrowUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-arrow-up"><path d="M12 19V5M5 12l7-7 7 7"/></svg>',checkCircle:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 11-5.93-9.14"/><path d="M22 4L12 14.01l-3-3"/></svg>',check:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check"><path d="M20 6L9 17l-5-5"/></svg>',chevronDown:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-down"><path d="M6 9l6 6 6-6"/></svg>',chevronLeft:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-left"><path d="M15 18l-6-6 6-6"/></svg>',chevronRight:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-right"><path d="M9 18l6-6-6-6"/></svg>',chevronUp:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-chevron-up"><path d="M18 15l-6-6-6 6"/></svg>',copy:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-copy"><rect x="9" y="9" width="13" height="13" rx="2" ry="2"/><path d="M5 15H4a2 2 0 01-2-2V4a2 2 0 012-2h9a2 2 0 012 2v1"/></svg>',eyeOff:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye-off"><path d="M17.94 17.94A10.07 10.07 0 0112 20c-7 0-11-8-11-8a18.45 18.45 0 015.06-5.94M9.9 4.24A9.12 9.12 0 0112 4c7 0 11 8 11 8a18.5 18.5 0 01-2.16 3.19m-6.72-1.07a3 3 0 11-4.24-4.24M1 1l22 22"/></svg>',eye:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-eye"><path d="M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z"/><circle cx="12" cy="12" r="3"/></svg>',info:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-info"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4M12 8h.01"/></svg>',lock:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-lock"><rect x="3" y="11" width="18" height="11" rx="2" ry="2"/><path d="M7 11V7a5 5 0 0110 0v4"/></svg>',minus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-minus"><path d="M5 12h14"/></svg>',sun:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-sun"><circle cx="12" cy="12" r="5"/><path d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42"/></svg>',moon:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-moon"><path d="M21 12.79A9 9 0 1111.21 3 7 7 0 0021 12.79z"/></svg>',moreHorizontal:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-horizontal"><circle cx="12" cy="12" r="1"/><circle cx="19" cy="12" r="1"/><circle cx="5" cy="12" r="1"/></svg>',moreVertical:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-more-vertical"><circle cx="12" cy="12" r="1"/><circle cx="12" cy="5" r="1"/><circle cx="12" cy="19" r="1"/></svg>',send:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-send"><path d="M22 2L11 13M22 2l-7 20-4-9-9-4 20-7z"/></svg>',smile:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-smile"><circle cx="12" cy="12" r="10"/><path d="M8 14s1.5 2 4 2 4-2 4-2M9 9h.01M15 9h.01"/></svg>',search:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-search"><circle cx="11" cy="11" r="8"/><path d="M21 21l-4.35-4.35"/></svg>',upload:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-upload"><path d="M21 15v4a2 2 0 01-2 2H5a2 2 0 01-2-2v-4M17 8l-5-5-5 5M12 3v12"/></svg>',video:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-video"><path d="M23 7l-7 5 7 5V7z"/><rect x="1" y="5" width="15" height="14" rx="2" ry="2"/></svg>',x:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-x"><path d="M18 6L6 18M6 6l12 12"/></svg>',star:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-star"><path d="M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"/></svg>',plus:'<svg width="24" height="24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-plus"><path d="M12 5v14M5 12h14"/></svg>'};var mS={tv:"(min-width: 2780px)",screenL:"(max-width: 1920px)","screenL<":"(min-width: 1920px)",screenM:"(max-width: 1680px)","screenM<":"(min-width: 1680px)",screenS:"(max-width: 1440px)","screenS<":"(min-width: 1440px)",tabletL:"(max-width: 1366px)","tabletL<":"(min-width: 1366px)",tabletM:"(max-width: 1280px)","tabletM<":"(min-width: 1280px)",tabletS:"(max-width: 1024px)","tabletS<":"(min-width: 1024px)",mobileL:"(max-width: 768px)","mobileL<":"(min-width: 768px)",mobileM:"(max-width: 560px)","mobileM<":"(min-width: 560px)",mobileS:"(max-width: 480px)","mobileS<":"(min-width: 480px)",mobileXS:"(max-width: 375px)","mobileXS<":"(min-width: 375px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"};var yS={base:150,ratio:1.333,unit:"ms",subSequence:!0};var Ri={version:"0.0.1",color:lS,gradient:cS,theme:uS,typography:fS,spacing:dS,font:pS,fontFamily:hS,timing:yS,icons:gS,media:mS,reset:{html:{},body:{}},animation:{fadeIn:{from:{opacity:0},to:{opacity:1}}},devices:{},class:{},svg:{},grid:{},shape:{}};var uo={};K(uo,{A:()=>Pk,AssetPicture:()=>jS,Audio:()=>MS,Avatar:()=>qk,B:()=>nk,Block:()=>bS,Box:()=>qc,Br:()=>ak,Button:()=>Fk,ButtonSet:()=>Mk,COMPONENTS:()=>co,Caption:()=>KS,Checkbox:()=>yk,CheckboxHgroup:()=>bk,Circle:()=>$S,CircleButton:()=>Dk,Clickable:()=>TS,Data:()=>sk,Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk,Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk,FileIcon:()=>Ek,Flex:()=>vS,Focusable:()=>RS,FocusableComponent:()=>PS,Footnote:()=>rk,Form:()=>AS,Grid:()=>_S,Gutter:()=>kS,H1:()=>VS,H2:()=>zS,H3:()=>US,H4:()=>WS,H5:()=>HS,H6:()=>qS,Headline:()=>ek,Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk,Hoverable:()=>OS,Hr:()=>ik,I:()=>ok,Icon:()=>Ck,IconButton:()=>Nk,IconText:()=>Ak,Iframe:()=>ES,Img:()=>CS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS,Input:()=>gk,Italic:()=>JS,KangorooButton:()=>Lk,Li:()=>lk,Link:()=>Hm,Notification:()=>Qk,NumberInput:()=>mk,Ol:()=>uk,P:()=>GS,Picture:()=>FS,Radio:()=>xk,RadioHgroup:()=>vk,Range:()=>Gk,RouteLink:()=>$k,RouterLink:()=>qm,SHAPES:()=>Wc,Select:()=>Ik,Shape:()=>wm,Span:()=>BS,SquareButton:()=>jk,Strong:()=>XS,Subhead:()=>tk,Svg:()=>DS,Text:()=>NS,Textarea:()=>Sk,TextareaWithButton:()=>kk,Theme:()=>IS,Title:()=>QS,Toggle:()=>wk,ToggleHgroup:()=>_k,Tooltip:()=>Uk,TooltipHidden:()=>Wk,TooltipParent:()=>Hk,U:()=>YS,Ul:()=>ck,Underline:()=>ZS,Video:()=>LS,depth:()=>Hc,getSystemGlobalTheme:()=>Pi});var mm={};K(mm,{Block:()=>bS,Flex:()=>vS,Grid:()=>_S,Gutter:()=>kS,Inline:()=>xS,InlineFlex:()=>wS,InlineGrid:()=>SS});var bS={display:"block"},xS={display:"inline"},vS={display:"flex"},wS={display:"inline-flex"},_S={display:"grid"},SS={display:"inline-grid"},kS={boxSize:"C1"};var ym={};K(ym,{Img:()=>CS});D();var CS={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Ye(e);return t&&t.src||e.src},srcset:e=>{let t=Ye(e);return(t?si(t):"")||e.srcset}}};var bm={};K(bm,{Form:()=>AS});var AS={tag:"form"};var xm={};K(xm,{Iframe:()=>ES});var ES={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"};var vm={};K(vm,{Clickable:()=>TS,Focusable:()=>RS,FocusableComponent:()=>PS,Hoverable:()=>OS});var PI={appearance:"none",cursor:"pointer",fontFamily:"inherit"},OS={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},TS={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},RS={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},PS={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:PI};var km={};K(km,{Picture:()=>FS});var Sm={};K(Sm,{Theme:()=>IS,getSystemGlobalTheme:()=>Pi});var _m={};K(_m,{Circle:()=>$S,SHAPES:()=>Wc,Shape:()=>wm,default:()=>$I,depth:()=>Hc});D();var yt=T(),Hc={4:{boxShadow:`rgba(0,0,0,.10) 0 2${yt.unit.default} 4${yt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${yt.unit.default} 6${yt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${yt.unit.default} 10${yt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${yt.unit.default} 16${yt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${yt.unit.default} 26${yt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${yt.unit.default} 42${yt.unit.default}`}},lo=e=>me(e.shapeDirectionColor)||me(e.borderColor)||me(e.backgroundColor)||me(e.background),Uc=e=>{let t=Ei.transition(e.transition,e);return t&&t.transition},Wc={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:lo(e),transition:Uc(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:lo(e),transition:Uc(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:lo(e),transition:Uc(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Uc(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${lo(e)} 25%, transparent 25%), linear-gradient(315deg, ${lo(e)} 25%, transparent 25%)`},"&:after":{background:lo(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},wm={deps:{exec:de,getSpacingBasedOnRatio:Xt,getMediaColor:De},classlist:{shape:e=>e.deps.exec(Wc[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Wc[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},$S={round:"100%"},$I=wm;D();var Pi=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},IS={deps:{depth:Hc},classlist:{depth:e=>!$e(e.depth)&&e.deps.depth[e.depth]}};var FS={deps:{getSystemGlobalTheme:Pi},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:Pi},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}};var Cm={};K(Cm,{AssetPicture:()=>jS});D();var jS={tag:"picture",children:e=>{let t=Ye(e);if(t)return ii(t,e.alt)}};var Am={};K(Am,{Svg:()=>DS});var DS={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}};var Em={};K(Em,{Video:()=>LS});D();var LS={tag:"video",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Om={};K(Om,{Audio:()=>MS});D();var MS={tag:"audio",controls:!0,attr:{src:e=>{let t=Ye(e);return t&&t.src||e.src}},children:e=>{let t=Ye(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}};var Tm={};K(Tm,{B:()=>nk,Caption:()=>KS,Data:()=>sk,Footnote:()=>rk,H1:()=>VS,H2:()=>zS,H3:()=>US,H4:()=>WS,H5:()=>HS,H6:()=>qS,Headline:()=>ek,I:()=>ok,Italic:()=>JS,P:()=>GS,Span:()=>BS,Strong:()=>XS,Subhead:()=>tk,Text:()=>NS,Title:()=>QS,U:()=>YS,Underline:()=>ZS});var NS={},BS={tag:"span"},VS={tag:"h1"},zS={tag:"h2"},US={tag:"h3"},WS={tag:"h4"},HS={tag:"h5"},qS={tag:"h6"},GS={tag:"p"},KS={tag:"caption"},XS={tag:"strong",fontWeight:"700"},YS={tag:"u"},ZS={tag:"u"},JS={tag:"i"},QS={},ek={tag:"h6",fontSize:"B",fontWeight:500},tk={tag:"span",fontSize:"Z1"},rk={tag:"span",fontSize:"Z"},nk={tag:"b"},ok={tag:"i"},sk={tag:"data"};var Rm={};K(Rm,{Box:()=>qc,Br:()=>ak,Hr:()=>ik,Li:()=>lk,Ol:()=>uk,Ul:()=>ck});var II=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=rt(t,e,{unpack:!1});r.__class=n},qc={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:II},ik={tag:"hr",margin:"C1 0"},ak={tag:"br"},lk={tag:"li"},ck={tag:"ul",childExtends:{extends:"Li"}},uk={tag:"ol",childExtends:{extends:"Li"}};var Pm={};K(Pm,{Hgroup:()=>dk,HgroupButton:()=>hk,HgroupRows:()=>pk});var fk=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},dk={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:fk,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:fk,margin:"0",color:"paragraph"}},pk={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},hk={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}};var $m={};K($m,{Input:()=>gk});var gk={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}};var Im={};K(Im,{NumberInput:()=>mk});var mk={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}};var Fm={};K(Fm,{Checkbox:()=>yk,CheckboxHgroup:()=>bk});var yk={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},bk={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}};var jm={};K(jm,{Radio:()=>xk,RadioHgroup:()=>vk});var xk={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},vk={extends:"CheckboxHgroup",Checkbox:null,Radio:{}};var Dm={};K(Dm,{Toggle:()=>wk,ToggleHgroup:()=>_k});var wk={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},_k={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}};var Lm={};K(Lm,{Textarea:()=>Sk,TextareaWithButton:()=>kk});var Sk={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},kk={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}};var Mm={};K(Mm,{FileIcon:()=>Ek,Icon:()=>Ck,IconText:()=>Ak});var Ck={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:F}=k&&k.utils,_=u(x,w),q=F(_).split(/([a-z])([A-Z])/g),te=q[1]?q[0]:_.split(".")[0].split(" ")[0],j=E&&E[te];if(j){let I=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=j[I]||j[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},Ak={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},Ek={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}};var Gm={};K(Gm,{A:()=>Pk,Link:()=>Hm,RouteLink:()=>$k,RouterLink:()=>qm});var Wm={};K(Wm,{default:()=>MI,getActiveRoute:()=>Um,lastLevel:()=>Kc,lastPathname:()=>Gc,matchRoute:()=>Bm,parseQuery:()=>Vm,parseRoutePattern:()=>Nm,router:()=>Yt,runGuards:()=>zm});D();var Tk=/^:(.+)/,Rk=/^\*$/,Ok=new Map,Nm=e=>{let t=Ok.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(Tk);a?n.push({index:i,name:a[1]}):Rk.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return Ok.set(e,s),s},Bm=(e,t,r=0)=>{let o=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),s="/"+(o[0]||"");if(!t)return{key:null,content:null,params:{},routePath:s};let i=null,a=-1,l={};for(let c in t){if(c==="/*")continue;let u=Nm(c),d=FI(o,u);d>a&&(a=d,i=c,l=jI(o,u))}return!i&&t["/*"]&&(i="/*"),{key:i,content:i?t[i]:null,params:l,routePath:s}},FI=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(Tk.test(r[i]))o+=1;else if(Rk.test(r[i]))o+=.5;else return-1;return o},jI=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},Vm=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((n,o)=>{t[o]!==void 0?(Array.isArray(t[o])||(t[o]=[t[o]]),t[o].push(n)):t[o]=n}),t},zm=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},Um=(e=0,t)=>{t||(t=typeof C<"u"?C.location.pathname:"/");let n=t.split("/")[e+1];if(n)return`/${n}`},Gc,Kc=0,DI=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,LI={level:Kc,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:pe&&pe.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Yt=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||C,i=o?.context?.document||pe,a={...LI,...o.context.routerOptions,...n};Kc=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=DI(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=Vm(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Gc;Gc=p;let x,w,k,E;if(a.useParamsMatching){let _=Bm(p,o.routes,a.level);x=_.key,w=_.routePath,k=_.content,E=_.params}else{x=Um(a.level,p),w=x;let _=o.routes;k=_?_[x||"/"]||_["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await zm(a.guards,_);if($===!1)return;if(typeof $=="string")return Yt($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let _={route:x,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&F?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}kr("routeChanged",o,a)},MI=Yt;var NI=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},Hm={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>Fr(e,e.href)||Fr(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:NI},Pk={extends:"Link"},qm={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Yt)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},$k={extends:[Hm,qm]};var Km={};K(Km,{Select:()=>Ik});var Ik={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}};var Xm={};K(Xm,{Button:()=>Fk,ButtonSet:()=>Mk,CircleButton:()=>Dk,IconButton:()=>Nk,KangorooButton:()=>Lk,SquareButton:()=>jk});var Fk={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},jk={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},Dk={extends:"SquareButton",round:"C"},Lk={extends:"Button",childExtends:"IconText"},Mk={tag:"nav",display:"flex",childExtends:"SquareButton"},Nk={extends:["SquareButton","ClickableItem"],round:"Z"};var Ym={};K(Ym,{Dialog:()=>Bk,DialogFooter:()=>zk,DialogHeader:()=>Vk});var Bk={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},Vk={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},zk={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}};var Zm={};K(Zm,{Tooltip:()=>Uk,TooltipHidden:()=>Wk,TooltipParent:()=>Hk});D();var Uk={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>qe(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},Wk={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},Hk={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}};var Jm={};K(Jm,{Avatar:()=>qk});var qk={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`};var Qm={};K(Qm,{Range:()=>Gk});var Gk={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:ai("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:ai("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}};var ey={};K(ey,{Dropdown:()=>Kk,DropdownList:()=>Xk,DropdownParent:()=>Yk,DropdownParentFocus:()=>Zk,DropdownSiblingFocus:()=>Jk});var Kk={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},Xk={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Yk={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Zk={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Jk={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}};var ty={};K(ty,{Notification:()=>Qk});var Qk={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}};var co=Object.assign({},mm,ym,bm,xm,vm,km,Cm,Am,_m,Em,Om,Sm,Tm,Rm,Pm,$m,Im,Fm,jm,Dm,Lm,Mm,Gm,Km,Xm,Ym,Zm,Jm,Qm,ey,ty);function Xc(e){if(e==null)return 0;if(typeof e!="object")return e1(String(e));let t=2166136261;if(Array.isArray(e)){t=(t^91)*16777619;for(let n=0;n<e.length;n++)t=(t^Xc(e[n]))*16777619;return t>>>0}let r=Object.keys(e).sort();for(let n=0;n<r.length;n++)t=(t^e1(r[n]))*16777619,t=(t^Xc(e[r[n]]))*16777619;return t>>>0}function e1(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t}function Yc(e,t){if(e===t)return!0;if(e===null||t===null||typeof e!=typeof t||typeof e!="object")return!1;if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!Yc(e[o],t[o]))return!1;return!0}let r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(let o=0;o<r.length;o++){let s=r[o];if(!Object.prototype.hasOwnProperty.call(t,s)||!Yc(e[s],t[s]))return!1}return!0}function ry(e,t){if(t===void 0)return e;if(e===void 0)return t;if(t===null)return null;if(typeof t!="object"||Array.isArray(t))return t;if(typeof e!="object"||Array.isArray(e))return{...t};let r=!1,n={};for(let o in e)if(o in t){let s=ry(e[o],t[o]);n[o]=s,s!==e[o]&&(r=!0)}else n[o]=e[o];for(let o in t)o in e||(n[o]=t[o],r=!0);return r?n:e}function ny(e,t,r){if(!t||typeof t!="object")return e;if(!e||typeof e!="object")return t;if(r||(r=new WeakSet),r.has(t))return e;r.add(t);for(let n in t){let o=t[n];o&&typeof o=="object"&&!Array.isArray(o)&&e[n]&&typeof e[n]=="object"&&!Array.isArray(e[n])?ny(e[n],o,r):e[n]=o}return e}function Lr(e){let t=2166136261;for(let r=0;r<e.length;r++)t^=e.charCodeAt(r),t=t*16777619>>>0;return t.toString(36)}function fo(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}function $i(e){let t=String(e);return t.length<=20?t.replace(/\s+/g,"_").replace(/[^a-zA-Z0-9_-]/g,"").toLowerCase():Lr(t)}function t1(e){return e.split(`
69
69
  `).map(Lr).join(`
70
70
  `)}var r1={display:"d",position:"pos",padding:"p",paddingTop:"pt",paddingRight:"pr",paddingBottom:"pb",paddingLeft:"pl",paddingBlock:"pbl",paddingInline:"pin",margin:"m",marginTop:"mt",marginRight:"mr",marginBottom:"mb",marginLeft:"ml",marginBlock:"mbl",marginInline:"min",width:"w",height:"h",minWidth:"mnw",minHeight:"mnh",maxWidth:"mxw",maxHeight:"mxh",top:"t",right:"r",bottom:"b",left:"l",flex:"fx",flexDirection:"fxd",flexWrap:"fxw",flexGrow:"fxg",flexShrink:"fxs",flexBasis:"fxb",justifyContent:"jc",alignItems:"ai",alignSelf:"as",alignContent:"ac",gap:"g",rowGap:"rg",columnGap:"cg",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",gridColumn:"gc",gridRow:"gr",overflow:"of",overflowX:"ofx",overflowY:"ofy",fontSize:"fs",fontWeight:"fw",fontFamily:"ff",fontStyle:"fst",lineHeight:"lh",letterSpacing:"ls",textAlign:"ta",textDecoration:"td",textTransform:"tt",color:"c",background:"bg",backgroundColor:"bgc",backgroundImage:"bgi",border:"bd",borderRadius:"br",borderColor:"bdc",borderWidth:"bdw",borderStyle:"bds",boxShadow:"bxsh",opacity:"op",zIndex:"z",cursor:"cur",transition:"tr",transform:"tf",animation:"an",visibility:"vis",whiteSpace:"ws",wordBreak:"wb",objectFit:"obj",pointerEvents:"pe",userSelect:"us",boxSizing:"bxz",outline:"ol",listStyle:"lis",textOverflow:"txo",verticalAlign:"va",float:"fl",clear:"cl",content:"cnt",backdropFilter:"bdf",filter:"flt",resize:"rsz",appearance:"apr",fill:"fil",stroke:"stk",scrollBehavior:"sb",inset:"ins"};function n1(e,t){let r=r1[e]||Lr(e),n=$i(t),o=`_${r}-${n}`,s=fo(e),i=`.${o}{${s}: ${t}}`;return`${o}
71
71
  ${i}`}var o1=e=>typeof e=="string"&&(e.indexOf("{")!==-1||e.indexOf("}")!==-1);function s1(e){let t=e.split("\0"),r=[],n=[];for(let o=0;o+1<t.length;o+=2){let s=t[o],i=t[o+1];if(!i||o1(i))continue;let a=r1[s]||Lr(s),l=$i(i),c=`_${a}-${l}`,u=fo(s);r.push(c),n.push(`.${c}{${u}:${i}}`)}return r.join(" ")+"\0"+n.join(`
@@ -105,7 +105,7 @@ FROM ${a}${c}`},SA=e=>{let t=[],r=(n,o)=>{for(let s in n){let i=o?`${o}/${s}`:s;
105
105
  font-stretch: ${n.fontStretch};`:""}${n.fontDisplay?`
106
106
  font-display: ${n.fontDisplay};`:""}
107
107
  src: ${o};`},za=(e,t,r,n)=>`@font-face {${Hv(e,t,r,n)}
108
- }`,md=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>mr(u,r)||u):mr(o,r)||o;return Hv(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),jD=e=>Object.keys(e).map(t=>md(t,e[t].value)),hO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return Uv(o)?Wv(o):za(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return md(e,t,r).map(pO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return za(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},gO=(e,t)=>Object.keys(e).map(r=>hO(r,e[r].value,t));N();N();N();var mO={};Y(mO,{animation:()=>rL,breakpoints:()=>eL,class:()=>lL,color:()=>HD,devices:()=>tL,document:()=>QD,font:()=>MD,fontFace:()=>VD,fontFamily:()=>ND,fontFamilyTypes:()=>BD,gradient:()=>qD,grid:()=>aL,icons:()=>XD,media:()=>zD,reset:()=>cL,semanticIcons:()=>YD,sequence:()=>yd,shadow:()=>KD,spacing:()=>WD,svg:()=>nL,svgData:()=>oL,templates:()=>sL,theme:()=>GD,timing:()=>JD,typography:()=>yO,unit:()=>DD,vars:()=>uL});var yd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},DD={default:"em"},LD={browserDefault:16,base:16,type:"font-size",ratio:yd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},yO=LD,MD={},ND={},BD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},VD={},zD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},UD={base:yO.base,type:"spacing",ratio:yd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},WD=UD,HD={},qD={},GD={},KD={},XD={},YD={},ZD={default:150,base:150,type:"timing",ratio:yd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},JD=ZD,QD={},eL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},tL={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},rL={},nL={},oL={},sL={},iL={},aL=iL,lL={},cL={},uL={},TA={},RA={},Mu=mO,Wu={},bO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Mu){let t=e.toLowerCase();Wu[t]=Mu[e];let r=bO(t);r!==t&&(Wu[r]=Mu[e]),t!==e&&(Wu[e]=Mu[e])}var qv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:TA,cssMediaVars:RA,CSS_VARS:TA,CSS_MEDIA_VARS:RA,_scratchConfig:!0,...Wu},fL=et(qv),Nf={active:"0",0:qv};var Ta=[],dL=e=>{e&&e._scratchConfig&&Ta.push(e)},pL=()=>{Ta.pop()},H=e=>Ta.length?Ta[Ta.length-1]:Nf[e||Nf.active]||qv,hL=e=>{if(M(e))return Nf.active="1",Nf[1]=tr(e,et(fL)),e};var Hr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Gv=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=xO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},xO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Kv=(e,t)=>{let{base:r,type:n,unit:o}=t,s=xO.has(o)?"rem":o,i=(Bv(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Hr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Hr[e+1],u=Math.abs(e),d=Math.pow(_O,2*u),f=Hr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},vO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Xv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},wO=(e,t)=>Xv(e,t).map(r=>r/e),Yv=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Xv(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=vO(h+1,c,i,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Gv(v,t)})},_O=1.618,gL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(_O,2*n);return Math.max(o,s)},br=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Hr[c],d=gL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Kv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Gv(g,e),s&&Yv(g,e)}return e},mL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Hr[t],a=R(t)?Object.entries(Hr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=Kv(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Gv(p,l),s&&Yv(p,l),l},Zv=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Vv.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${dd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},SO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:Zv(o,t)}).join("")},Ua=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=SO(e,r):e=Zv(e,r),{[t]:n?`${n}(${e})`:e}},kO=(e,t)=>Hr[e-t],CO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=kO(t,o);return r[s]})};N();var yL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},Jv=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=wO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},AO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=AO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Jv(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},Bf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=AO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Jv(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Bv(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};N();var EO=Ka(),vb=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},bL=e=>{let t=e&&(e.default||e);if(!R(t))return EO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},xL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},PA=new Set,OO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return EO&&!PA.has(e)&&(PA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=bL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=xL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=_L(a),a},vL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",wL=new RegExp(`<(${vL})\\b([^>]*?)\\s*/>`,"g"),_L=e=>e.replace(wL,"<$1$2></$1>"),TO={};Y(TO,{appendSVGSprite:()=>WO,appendSvgIconsSprite:()=>qO,applyDocument:()=>UO,applyHeadings:()=>jO,applyReset:()=>KO,applySpacingSequence:()=>NO,applyTimingSequence:()=>zO,applyTypographySequence:()=>DO,checkIfBoxSize:()=>MO,getColor:()=>Pe,getFontFamily:()=>IO,getFontSizeByKey:()=>LO,getMediaColor:()=>_t,getMediaTheme:()=>qr,getShadow:()=>VO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>ze,getTheme:()=>Qv,getTimingByKey:()=>gr,getTimingFunction:()=>Rn,runThroughMedia:()=>FO,setColor:()=>Ra,setFont:()=>$O,setFontFamily:()=>Sb,setGradient:()=>Pa,setMediaTheme:()=>e0,setSVG:()=>r0,setShadow:()=>$a,setSvgIcon:()=>HO,setTheme:()=>RO,splitSpacedValue:()=>BO});N();var Pe=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=Ja(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Oa(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},_t=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=Ja(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=M(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Oa(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=In(g[0]);v&&v.length>=3?e=`rgba(${Oa(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=Ra(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],w=x&&(x.value||x);!w||typeof w!="string"||(y[v]=w,(v==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Ja(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=In(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Pa=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=Pe(e.slice(2))),W(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Pa(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};N();var SL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),$A=["color","Color","background","Background","fill","Fill","stroke","Stroke"],kL=e=>{for(let t=0;t<$A.length;t++)if(e.includes($A[t]))return!0;return!1},xd=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Pe(e[i]):e[i]}),t},la=e=>(e.value||(e.value=xd(e)),e.value),Qv=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return la(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return la(a[s]);if(i&&i[s])return la(i[s]);if(l&&l[s])return la(l[s])}else if(M(e))return xd(e)},CL=(e,t,r)=>{if(M(t))e.variants.inverse.value=xd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},AL=(e,t,r,n)=>{let o=Qv(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},EL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return AL(e,n,o,t),e}),e):void 0},OL=(e,t,r,n)=>{let o=Qv(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},TL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&OL(e,n,o,t),n==="inverse"&&CL(e,o,t),e}),e):void 0},RL=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:la(n[o]),e}),e):void 0},RO=(e,t)=>{let r=H();if(r.useVariable)return e0(e,t);let{state:n,media:o,helpers:s}=e,i=xd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return EL(e,i),TL(e,i),RL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},wb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&kL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!SL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Pe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},e0=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=e0(u,t,l,n||d)}else if(!a){let d=Pe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},_b=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_b(e[n]):o==="."&&(r[`&${n}`]=_b(e[n]))}else r[n]=e[n]}return r},PO=(e,t)=>{let r=t.shift();return e[r]?PO(e[r],t):e},IA=(e,t)=>W(t)?PO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=IA(s,o):s&&t&&(s=IA(s,t)),_b(s)};N();N();var $O=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;Uv(s)?o=Wv(s):o=za(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=md(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>mr(i,r.files)||i):mr(e.url,r.files)||e.url;o=za(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},IO=(e,t)=>{let r=H(),{fontFamily:n}=r;return zv(t||n,e)},Sb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=Za(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};N();var FO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;at(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){at(i,{sequence:{},scales:{},vars:{}}),br(i),Bf(e,o);continue}at(i,{sequence:{},scales:{},templates:{},vars:{}}),br(i),Bf(e,o)}},jO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=CO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},DO=()=>{let e=H(),{typography:t}=e;br(t),jO(t),bd(t),FO(t)},LO=e=>{let t=H(),{typography:r}=t;return Ua(e,"fontSize",r)};N();N();var PL=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return br(n),n},$L=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;at(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),br(r),Bf(e,t)}},MO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},NO=()=>{let e=H(),{spacing:t}=e;br(t),bd(t),$L(t)},IL=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:br(e)},ze=(e,t="padding",r,n)=>{let o=IL(r);if(R(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Za(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ua(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ua(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=PL(e);return ze(i,t,a,n)}return ze(i,t,s,n)},BO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Vv.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};N();var $a=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!Fn.test(e)&&(e=gd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Pe(a);if(Go(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},VO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};N();var zO=()=>{let e=H(),{timing:t}=e;br(t),bd(t)},Rn=e=>{let t=H(),{timing:r}=t;return r[e]||r[fd(e)]||e},gr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ua(e,t,n)};N();var UO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return at(t,{theme:n.document,fontFamily:zv(r),fontSize:o.base,lineHeight:o.lineHeight})};N();var t0={document:be},r0=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?OO(t,e):e},WO=(e,t=t0)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];GO(n,t)},HO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?r0(e,t):e},qO=(e,t=t0)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];GO(n,t)},sb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},FL=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},FA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},GO=(e,t=t0)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),vb(e);let o=n.querySelector("#svgSprite"),s=vb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=FL(n,s);if(o)if(a)FA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=sb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=sb(n);l&&l.nodeType&&(FA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=sb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};N();var KO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&$n(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return tr(at(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};N();var jL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),DL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),LL=e=>jL.has(e),An=e=>{let t=e+"";if(Fn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(LL(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(Go(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},ML=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return Go(r)?r:t}).join(" "),NL=(e,t)=>VO(e,t),jA=(e,t)=>Fn.test(e)?e:gd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(Go(o)){let i=_t(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),XO=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=gd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||DL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Pe(l);return Go(c)?c:l}).join(" ")));return n+i.join(", ")+s},BL=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?XO(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ja(n)?`url(${n})`:n).join(" ")},VL=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),zL=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},DA=(e,t,r)=>{if(R(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},UL=e=>{let t=e.split(",");if(t.length)return t.map(zL).join(",")};function Re(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=MO(e);!i&&a&&!n.ratio&&(o=BO(o))}return n.ratio?Ho(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),LA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};N();var WL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,MA={color:Ra,gradient:Pa,font:$O,fontFamily:Sb,fontfamily:Sb,theme:RO,icons:HO,semanticIcons:vt,semanticicons:vt,svg:r0,svgData:vt,typography:vt,shadow:$a,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:WL},HL=(e,t,r)=>{let n=H(),o=bO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=MA[o]||MA[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},qL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return HL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var GL={},n0=(e,t=GL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=hL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=$=>{x.setAttribute("data-theme",$.matches?"dark":"light")},_=v.matchMedia("(prefers-color-scheme: dark)");if(F(_),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{_.addEventListener("change",F)}catch{_.addListener(F)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),k=new Set(w);if(w.forEach(F=>{let _=F.toLowerCase();_!==F&&k.has(_)&&tr(y[_],y[F])}),w.map(F=>{let _=F.toLowerCase();if(!(_!==F&&k.has(_)))return qL(F,y[F])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{DO()}catch(F){r.verbose&&console.warn("Error applying typography sequence",F)}if(y.spacing)try{NO()}catch(F){r.verbose&&console.warn("Error applying spacing sequence",F)}if(y.timing)try{zO()}catch(F){r.verbose&&console.warn("Error applying timing sequence",F)}UO();let E=KO();return E&&(r.reset=E),r};var KL=null,XL=null,YL=null;function ZL(e){e.batchAtomicCss&&(XL=e.batchAtomicCss),e.compoundCssClass&&(YL=e.compoundCssClass)}function JL(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Hu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var NA=new WeakMap;function ca(e,t){let r=YO(t);if(!r)return;let n=NA.get(r);if(n||(n=new Set,NA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var BA=new WeakMap;function YO(e){let t=e||JL();if(!t||!t.head)return null;let r=BA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return BA.set(t,o),KL=o,o}function Vt(e){if(YO(),typeof e=="string"){ca(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Hu(l);a+=`${c}:${i[l]};`}ca(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Hu(s);ca(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Hu(a);s+=`${c}:${l};`}}if(s&&ca(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Vt({[`${n} ${c}`]:o[c]});for(let c of a)Vt({[c]:{[n]:o[c]}})}}}}function VA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Hu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ca(`@keyframes ${e}{${r}}`),e}N();Ya();N();N();var QL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],eM=["none","forwards","backwards","both"],tM=["normal","reverse","alternate","alternate-reverse"],rM=["running","paused"],nM=e=>/^[\d.]+m?s$/.test(e),oM=0,ib=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=`smbls-anim-${oM++}`;return{animationName:VA(o,e)}}let n=r&&r[e];return M(n)?VA(e,n):e},sM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:nM(d)?s.push(d):QL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):tM.includes(d)?l=d:eM.includes(d)?c=d:rM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},iM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=sM(e,t);return{animationName:ib(r.name||e,t),animationDuration:r.durations[0]||gr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:ib(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:ib(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};N();var aM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Bt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:VL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>LA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>LA(e??t.round,t,"borderRadius")},lM={fontSize:e=>LO(e)||e,fontFamily:e=>({fontFamily:IO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},cM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},uM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};N();var Dt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},fM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=Dt(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return R(e)&&e.includes("gradient")?{background:XO(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Dt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:BL(e,o)}},textStroke:e=>({WebkitTextStroke:ML(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:NL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=Dt(t),s=n?" !important":"";return{boxShadow:jA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:jA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},ZO={transition:e=>({transition:UL(e)}),transitionDuration:e=>({transitionDuration:DA(e)}),transitionDelay:e=>({transitionDelay:DA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};N();var dM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},pM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},zA={...iM,...aM,...lM,...cM,...uM,...fM,...ZO,...dM,...pM},hM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);N();var gM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,mM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(gM),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},UA=(e,t,r)=>({[e]:Kr(t,r)}),oa=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},o0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},yM=(e,t,r)=>{let n=e.slice(1),o=o0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},bM=(e,t,r)=>({[e]:t}),xM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=o0(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},vM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=o0(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},wM=(e,t)=>Kr(e,t),_M={"@":mM,":":oa,"[":oa,"*":oa,"+":oa,"~":oa,"&":UA,">":UA,$:yM,"-":bM,".":xM,"!":vM},ab=Uo(),SM=(e,t,r)=>{let n=t?.context?.designSystem;n&&dL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>at(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);at(o,wM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!ab&&M(o[a])&&(o[a].label=a)}else if(zA[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>at(d,f),{}));let u=zA[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>at(d,f),{})),u&&i(a,u),!ab&&M(o[a])&&(o[a].label=a)}else if(hM.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!ab&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&pL()}},kM=(e,t)=>{let r={};for(let n in e){let o=_M[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?$n(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=SM(e,t,r),s=kM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return nd(n,s);n._selectors=s}return n};N();N();N();Ya();var q7=new Proxy(Object.create(null),{get(){},has(){return!1}});N();var WA=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var CM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},AM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},EM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},G7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...CM,...AM,...EM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var OM={};Y(OM,{A:()=>IR,AssetPicture:()=>kT,Audio:()=>RT,Avatar:()=>QR,B:()=>YT,Block:()=>QO,Box:()=>eR,Br:()=>rR,Button:()=>MR,ButtonSet:()=>zR,COMPONENTS:()=>NM,Caption:()=>VT,Checkbox:()=>gR,CheckboxHgroup:()=>mR,Circle:()=>vT,CircleButton:()=>BR,Clickable:()=>hT,Data:()=>JT,Dialog:()=>HR,DialogFooter:()=>GR,DialogHeader:()=>qR,Dropdown:()=>nP,DropdownList:()=>oP,DropdownParent:()=>sP,DropdownParentFocus:()=>iP,DropdownSiblingFocus:()=>aP,FileIcon:()=>TR,Flex:()=>tT,Focusable:()=>gT,FocusableComponent:()=>mT,Footnote:()=>XT,Form:()=>cT,Grid:()=>nT,Gutter:()=>sT,H1:()=>FT,H2:()=>jT,H3:()=>DT,H4:()=>LT,H5:()=>MT,H6:()=>NT,Headline:()=>GT,Hgroup:()=>aR,HgroupButton:()=>cR,HgroupRows:()=>lR,Hoverable:()=>pT,Hr:()=>tR,I:()=>ZT,Icon:()=>ER,IconButton:()=>UR,IconText:()=>OR,Iframe:()=>fT,Img:()=>aT,Inline:()=>eT,InlineFlex:()=>rT,InlineGrid:()=>oT,Input:()=>fR,Italic:()=>HT,KangorooButton:()=>VR,Li:()=>nR,Link:()=>d0,Notification:()=>cP,NumberInput:()=>pR,Ol:()=>sR,P:()=>BT,Picture:()=>_T,Radio:()=>bR,RadioHgroup:()=>xR,Range:()=>tP,RouteLink:()=>FR,RouterLink:()=>p0,SHAPES:()=>Vf,Select:()=>DR,Shape:()=>i0,Span:()=>IT,SquareButton:()=>NR,Strong:()=>zT,Subhead:()=>KT,Svg:()=>AT,Text:()=>$T,Textarea:()=>kR,TextareaWithButton:()=>CR,Theme:()=>wT,Title:()=>qT,Toggle:()=>wR,ToggleHgroup:()=>_R,Tooltip:()=>XR,TooltipHidden:()=>YR,TooltipParent:()=>ZR,U:()=>UT,Ul:()=>oR,Underline:()=>WT,Video:()=>OT,depth:()=>s0,getSystemGlobalTheme:()=>zf});var JO={};Y(JO,{Block:()=>QO,Flex:()=>tT,Grid:()=>nT,Gutter:()=>sT,Inline:()=>eT,InlineFlex:()=>rT,InlineGrid:()=>oT});var QO={display:"block"},eT={display:"inline"},tT={display:"flex"},rT={display:"inline-flex"},nT={display:"grid"},oT={display:"inline-grid"},sT={boxSize:"C1"},iT={};Y(iT,{Img:()=>aT});N();var aT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Qt(e);return t&&t.src||e.src},srcset:e=>{let t=Qt(e);return(t?pd(t):"")||e.srcset}}},lT={};Y(lT,{Form:()=>cT});var cT={tag:"form"},uT={};Y(uT,{Iframe:()=>fT});var fT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},dT={};Y(dT,{Clickable:()=>hT,Focusable:()=>gT,FocusableComponent:()=>mT,Hoverable:()=>pT});var TM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},pT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},hT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},gT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},mT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:TM},yT={};Y(yT,{Picture:()=>_T});var bT={};Y(bT,{Theme:()=>wT,getSystemGlobalTheme:()=>zf});var xT={};Y(xT,{Circle:()=>vT,SHAPES:()=>Vf,Shape:()=>i0,default:()=>RM,depth:()=>s0});N();var wt=H(),s0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},Io=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Nu=e=>{let t=ZO.transition(e.transition,e);return t&&t.transition},Vf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Io(e),transition:Nu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Io(e),transition:Nu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Io(e),transition:Nu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},i0={deps:{exec:Ne,getSpacingBasedOnRatio:Ho,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Vf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Vf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},vT={round:"100%"},RM=i0;N();var zf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},wT={deps:{depth:s0},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},_T={deps:{getSystemGlobalTheme:zf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:zf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},ST={};Y(ST,{AssetPicture:()=>kT});N();var kT={tag:"picture",children:e=>{let t=Qt(e);if(t)return hd(t,e.alt)}},CT={};Y(CT,{Svg:()=>AT});var AT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},ET={};Y(ET,{Video:()=>OT});N();var OT={tag:"video",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},TT={};Y(TT,{Audio:()=>RT});N();var RT={tag:"audio",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},PT={};Y(PT,{B:()=>YT,Caption:()=>VT,Data:()=>JT,Footnote:()=>XT,H1:()=>FT,H2:()=>jT,H3:()=>DT,H4:()=>LT,H5:()=>MT,H6:()=>NT,Headline:()=>GT,I:()=>ZT,Italic:()=>HT,P:()=>BT,Span:()=>IT,Strong:()=>zT,Subhead:()=>KT,Text:()=>$T,Title:()=>qT,U:()=>UT,Underline:()=>WT});var $T={},IT={tag:"span"},FT={tag:"h1"},jT={tag:"h2"},DT={tag:"h3"},LT={tag:"h4"},MT={tag:"h5"},NT={tag:"h6"},BT={tag:"p"},VT={tag:"caption"},zT={tag:"strong",fontWeight:"700"},UT={tag:"u"},WT={tag:"u"},HT={tag:"i"},qT={},GT={tag:"h6",fontSize:"B",fontWeight:500},KT={tag:"span",fontSize:"Z1"},XT={tag:"span",fontSize:"Z"},YT={tag:"b"},ZT={tag:"i"},JT={tag:"data"},QT={};Y(QT,{Box:()=>eR,Br:()=>rR,Hr:()=>tR,Li:()=>nR,Ol:()=>sR,Ul:()=>oR});var PM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},eR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:PM},tR={tag:"hr",margin:"C1 0"},rR={tag:"br"},nR={tag:"li"},oR={tag:"ul",childExtends:{extends:"Li"}},sR={tag:"ol",childExtends:{extends:"Li"}},iR={};Y(iR,{Hgroup:()=>aR,HgroupButton:()=>cR,HgroupRows:()=>lR});var HA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},aR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:HA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:HA,margin:"0",color:"paragraph"}},lR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},cR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},uR={};Y(uR,{Input:()=>fR});var fR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},dR={};Y(dR,{NumberInput:()=>pR});var pR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},hR={};Y(hR,{Checkbox:()=>gR,CheckboxHgroup:()=>mR});var gR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},mR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},yR={};Y(yR,{Radio:()=>bR,RadioHgroup:()=>xR});var bR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},xR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},vR={};Y(vR,{Toggle:()=>wR,ToggleHgroup:()=>_R});var wR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},_R={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},SR={};Y(SR,{Textarea:()=>kR,TextareaWithButton:()=>CR});var kR={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},CR={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},AR={};Y(AR,{FileIcon:()=>TR,Icon:()=>ER,IconText:()=>OR});var ER={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:F}=k&&k.utils,_=u(x,w),$=F(_).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:_.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let j=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=te[j]||te[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},OR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},TR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},RR={};Y(RR,{A:()=>IR,Link:()=>d0,RouteLink:()=>FR,RouterLink:()=>p0});var $M={};Y($M,{default:()=>LM,getActiveRoute:()=>f0,lastLevel:()=>vd,lastPathname:()=>Uf,matchRoute:()=>l0,parseQuery:()=>c0,parseRoutePattern:()=>a0,router:()=>Ko,runGuards:()=>u0});N();var PR=/^:(.+)/,$R=/^\*$/,qA=new Map,a0=e=>{let t=qA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(PR);a?n.push({index:i,name:a[1]}):$R.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return qA.set(e,s),s},l0=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||""),s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=a0(l),u=IM(n,c);u>i&&(i=u,s=l,a=FM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},IM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(PR.test(r[i]))o+=1;else if($R.test(r[i]))o+=.5;else return-1;return o},FM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},c0=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},u0=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},f0=(e=0,t)=>{t||(t=typeof ie<"u"?ie.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Uf,vd=0,jM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,DM={level:vd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ko=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||ie,i=o?.context?.document||be,a={...DM,...o.context.routerOptions,...n};vd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=jM(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=c0(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Uf;Uf=p;let x,w,k,E;if(a.useParamsMatching){let _=l0(p,o.routes,a.level);x=_.key,w=_.routePath,k=_.content,E=_.params}else x=f0(a.level,p),w=x,k=o.routes[x||"/"]||o.routes["/*"],E={};let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await u0(a.guards,_);if($===!1)return;if(typeof $=="string")return Ko($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let _={route:x,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&F?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Wo("routeChanged",o,a)},LM=Ko,MM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},d0={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>WA(e,e.href)||WA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:MM},IR={extends:"Link"},p0={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},FR={extends:[d0,p0]},jR={};Y(jR,{Select:()=>DR});var DR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},LR={};Y(LR,{Button:()=>MR,ButtonSet:()=>zR,CircleButton:()=>BR,IconButton:()=>UR,KangorooButton:()=>VR,SquareButton:()=>NR});var MR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},NR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},BR={extends:"SquareButton",round:"C"},VR={extends:"Button",childExtends:"IconText"},zR={tag:"nav",display:"flex",childExtends:"SquareButton"},UR={extends:["SquareButton","ClickableItem"],round:"Z"},WR={};Y(WR,{Dialog:()=>HR,DialogFooter:()=>GR,DialogHeader:()=>qR});var HR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},qR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},GR={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},KR={};Y(KR,{Tooltip:()=>XR,TooltipHidden:()=>YR,TooltipParent:()=>ZR});N();var XR={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>zo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},YR={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},ZR={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},JR={};Y(JR,{Avatar:()=>QR});var QR={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},eP={};Y(eP,{Range:()=>tP});var tP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:xb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:xb("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},rP={};Y(rP,{Dropdown:()=>nP,DropdownList:()=>oP,DropdownParent:()=>sP,DropdownParentFocus:()=>iP,DropdownSiblingFocus:()=>aP});var nP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},oP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},sP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},iP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},aP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},lP={};Y(lP,{Notification:()=>cP});var cP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},NM=Object.assign({},JO,iT,lT,uT,dT,yT,ST,CT,xT,ET,TT,bT,PT,QT,iR,uR,dR,hR,yR,vR,SR,AR,RR,jR,LR,WR,KR,JR,eP,rP,lP);var BM=null;function VM(e){BM=e}N();var zM={};Y(zM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>rd,NODE_ENV:()=>Lt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Vx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Ub,addProtoToArray:()=>Jf,addRef:()=>wf,applyCSS:()=>qM,applyDependentState:()=>iv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>Ux,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Za,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>uv,call:()=>qE,captureSnapshot:()=>yv,checkForStateTypes:()=>rv,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Kb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>rE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>jv,copyStringToClipboard:()=>Fv,createBasedOnType:()=>vf,createElement:()=>tv,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>hf,createIfConditionFlag:()=>Tx,createInheritedState:()=>nv,createKey:()=>id,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>sv,createObjectWithoutPrototype:()=>nf,createParent:()=>_f,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>ev,createScope:()=>lv,createSnapshotId:()=>sd,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>Vb,cutArrayBeforeValue:()=>Bb,debounce:()=>tE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>cf,deepMerge:()=>tr,deepMergeExtends:()=>Zt,deepStringifyFunctions:()=>da,defineSetter:()=>mv,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_v,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Jb,error:()=>Ff,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$v,fibonacciNumberByIndex:()=>Sv,filterArrays:()=>qb,filterArraysFast:()=>Gb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Pv,findInheritedState:()=>Tf,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>wv,generateHash:()=>sf,generateKey:()=>ga,generateMetaTags:()=>Rv,get:()=>PE,getActiveRoute:()=>f0,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>iE,getCdnProviderFromConfig:()=>xv,getChildStateInKey:()=>Of,getChildren:()=>FE,getContext:()=>BE,getCookie:()=>Fx,getDB:()=>GE,getEmotionStylesheet:()=>Nv,getExtendsInElement:()=>zx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>vv,getInObjectByPath:()=>mx,getLocalStorage:()=>nE,getNev:()=>Cx,getPageMetadata:()=>eO,getParentStateInKey:()=>Ef,getPath:()=>jE,getQuery:()=>KE,getRef:()=>IE,getRoot:()=>LE,getRootContext:()=>NE,getRootData:()=>ME,getRootState:()=>DE,getRootStateInKey:()=>Af,getSpreadChildren:()=>aE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>pf,init:()=>wd,initProps:()=>Jx,is:()=>Jt,isArray:()=>W,isBoolean:()=>Ju,isContextComponent:()=>lE,isCyclic:()=>bx,isDOMNode:()=>it,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>cx,isEqualDeep:()=>rf,isFunction:()=>L,isHtmlElement:()=>Kf,isLocal:()=>kx,isMethod:()=>XE,isMobile:()=>$x,isNode:()=>Wa,isNot:()=>jb,isNotProduction:()=>Ka,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>kv,isProduction:()=>Uo,isStaging:()=>Sx,isState:()=>ov,isString:()=>R,isStringFunction:()=>Ox,isTest:()=>of,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>bv,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>dv,lastLevel:()=>vd,lastPathname:()=>Uf,loadCssFile:()=>Ov,loadJavascript:()=>Tv,loadJavascriptFile:()=>Cv,loadJavascriptFileEmbedSync:()=>Ev,loadJavascriptFileSync:()=>Av,loadRemoteCSS:()=>QE,loadRemoteScript:()=>JE,log:()=>VE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>OE,lookdownAll:()=>TE,lookup:()=>EE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchRoute:()=>l0,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>at,mergeSharedLibraries:()=>Iv,nextElement:()=>UE,normalizeLibraryKey:()=>Va,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>av,parse:()=>pv,parseDeep:()=>If,parseQuery:()=>c0,parseRoutePattern:()=>a0,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Zx,propertizeElement:()=>Gx,propertizeUpdate:()=>uE,reinit:()=>HM,remove:()=>RE,removeChars:()=>Dv,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Zf,removeValueFromArrayAll:()=>zb,reorderArrayByValues:()=>Wb,replaceLiteralsWithObjectFields:()=>JA,replaceOctalEscapeSequences:()=>Zb,resolveAsset:()=>Qt,resolveHandler:()=>La,resolveSharedLibraries:()=>rO,returnValueAsText:()=>xf,router:()=>Ko,runGuards:()=>u0,runPluginHook:()=>Ma,scratchSystem:()=>TO,scratchUtils:()=>sO,self:()=>Fb,set:()=>n0,setActiveRootState:()=>gv,setCookie:()=>Ix,setHashedExtend:()=>af,setInObjectByPath:()=>gx,setLocalStorage:()=>oE,setNodeStyles:()=>fv,setProps:()=>$E,setPropsPrototype:()=>mf,spotByPath:()=>AE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Mv,toTitleCase:()=>Lv,toggleFullscreen:()=>ZE,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>cv,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Yf,update:()=>Kx,updateProps:()=>Qx,variables:()=>HE,verbose:()=>hv,warn:()=>zE,window:()=>ie});N();N();var UM=H(),uP=(e=UM,t)=>{let r=M(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return tr(e,n)},WM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},wd=(e,t=WM)=>{let r=uP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=n0({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=gO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Vt(a),c&&(Vt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Vt(m)}l&&Vt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Vt(m)}return(f||d)&&WO(i.svg,{document:t.document}),(h||p)&&qO(i.icons,{document:t.document}),i},fP={},HM=(e,t=fP)=>{let r=uP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=n0({verbose:!1,...r});if(!t.preventInject){if(Vt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Vt(i)}Vt(s.reset)}return s},qM=(e,t=fP)=>{Vt(e)};N();N();var K7=ie&&ie.location?ie.location.host.includes("dev."):ad();N();Mo();var GM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},KM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},X7={...GM,router:KM};N();N();N();N();Mo();var Wf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},XM=Object.create(null);for(let e in Wf)XM[Wf[e]]=e;var lb=Object.create(null);for(let e in Wf){let t=Wf[e];if(lb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${lb[t]}"`);lb[t]=e}var YM=0,ZM=()=>`${Date.now().toString(36)}-${(YM++).toString(36)}`,Ia=(e,t,r={})=>({id:ZM(),ts:Date.now(),type:e,level:t,...r}),JM=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Hf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:JM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,QM={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},eN=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:Hf(o)}))},GA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:Hf(t),changedKeys:r?.changedKeys||null}))},tN={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:Hf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ia("update","debug",{hook:"update",element:Hf(e),durationMs:r}))},beforeStateUpdate:GA("beforeStateUpdate"),stateUpdate:GA("stateUpdate")};for(let[e,t]of Object.entries(QM))tN[e]=eN(e,t);N();N();N();N();var Y7=typeof ie<"u"&&typeof ie.document<"u";var Z7=typeof ie<"u"&&typeof ie.document<"u";N();var J7=typeof ie<"u"&&typeof ie.document<"u";N();var Q7=typeof ie<"u"&&typeof ie.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var qu=Object.create(null);Object.keys(er).forEach(e=>{qu[er[e]]=e});var kb={type:"error",data:"parser error"},dP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pP=typeof ArrayBuffer=="function",hP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h0=({type:e,data:t},r,n)=>dP&&t instanceof Blob?r?n(t):KA(t,n):pP&&(t instanceof ArrayBuffer||hP(t))?r?n(t):KA(new Blob([t]),n):n(er[e]+(t||"")),KA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function XA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var cb;function rN(e,t){if(dP&&e.data instanceof Blob)return e.data.arrayBuffer().then(XA).then(t);if(pP&&(e.data instanceof ArrayBuffer||hP(e.data)))return t(XA(e.data));h0(e,!1,r=>{cb||(cb=new TextEncoder),t(cb.encode(r))})}var YA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ua=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<YA.length;e++)ua[YA.charCodeAt(e)]=e;var nN=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=ua[e.charCodeAt(n)],i=ua[e.charCodeAt(n+1)],a=ua[e.charCodeAt(n+2)],l=ua[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},oN=typeof ArrayBuffer=="function",g0=(e,t)=>{if(typeof e!="string")return{type:"message",data:gP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:sN(e.substring(1),t)}:qu[r]?e.length>1?{type:qu[r],data:e.substring(1)}:{type:qu[r]}:kb},sN=(e,t)=>{if(oN){let r=nN(e);return gP(r,t)}else return{base64:!0,data:e}},gP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,mP="",iN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{h0(s,!1,a=>{n[i]=a,++o===r&&t(n.join(mP))})})},aN=(e,t)=>{let r=e.split(mP),n=[];for(let o=0;o<r.length;o++){let s=g0(r[o],t);if(n.push(s),s.type==="error")break}return n};function lN(){return new TransformStream({transform(e,t){rN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var ub;function Bu(e){return e.reduce((t,r)=>t+r.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function cN(e,t){ub||(ub=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Bu(r)<1)break;let l=Vu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Bu(r)<2)break;let l=Vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Bu(r)<8)break;let l=Vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(kb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Bu(r)<o)break;let l=Vu(r,o);a.enqueue(g0(s?l:ub.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(kb);break}}}})}var yP=4;function ke(e){if(e)return uN(e)}function uN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var _d=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),fN="arraybuffer";function bP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var dN=St.setTimeout,pN=St.clearTimeout;function Sd(e,t){t.useNativeTimers?(e.setTimeoutFn=dN.bind(St),e.clearTimeoutFn=pN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var hN=1.33;function gN(e){return typeof e=="string"?mN(e):Math.ceil((e.byteLength||e.size)*hN)}function mN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function xP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function bN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var xN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},m0=class extends ke{constructor(e){super(),this.writable=!1,Sd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new xN(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=g0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=yN(e);return t.length?"?"+t:""}},vN=class extends m0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};aN(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,iN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=xP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},vP=!1;try{vP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var wN=vP;function _N(){}var SN=class extends vN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Vo=class Gu extends ke{constructor(t,r,n){super(),this.createRequest=t,Sd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=bP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Gu.requestsCount++,Gu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_N,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gu.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Vo.requestsCount=0;Vo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ZA);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,ZA,!1)}}function ZA(){for(let e in Vo.requests)Vo.requests.hasOwnProperty(e)&&Vo.requests[e].abort()}var kN=(function(){let e=wP({xdomain:!1});return e&&e.responseType!==null})(),CN=class extends SN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=kN&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Vo(wP,this.uri(),e)}};function wP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||wN))return new XMLHttpRequest}catch{}if(!t)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var _P=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",AN=class extends m0{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=_P?{}:bP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;h0(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=xP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},fb=St.WebSocket||St.MozWebSocket,EN=class extends AN{createSocket(e,t,r){return _P?new fb(e,t,r):t?new fb(e,t):new fb(e)}doWrite(e,t){this.ws.send(t)}},ON=class extends m0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=cN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=lN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},TN={websocket:EN,webtransport:ON,polling:CN},RN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,PN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=RN.exec(e||""),s={},i=14;for(;i--;)s[PN[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=$N(s,s.path),s.queryKey=IN(s,s.query),s}function $N(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function IN(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ab=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ku=[];Ab&&addEventListener("offline",()=>{Ku.forEach(e=>e())},!1);var Xu=class Yu extends ke{constructor(t,r){if(super(),this.binaryType=fN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Cb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Cb(r.host).host);Sd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=bN(this.opts.query)),Ab&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=yP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Yu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Yu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=gN(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,_d(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Yu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ab&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ku.indexOf(this._offlineEventListener);n!==-1&&Ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Xu.protocol=yP;var FN=class extends Xu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Xu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},SP=class extends FN{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>TN[n]).filter(n=>!!n)),super(e,r)}},eG=SP.protocol;function jN(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Cb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var kP={};Y(kP,{Decoder:()=>HN,Encoder:()=>WN,PacketType:()=>ee,isPacketValid:()=>YN,protocol:()=>UN});var DN=typeof ArrayBuffer=="function",LN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,CP=Object.prototype.toString,MN=typeof Blob=="function"||typeof Blob<"u"&&CP.call(Blob)==="[object BlobConstructor]",NN=typeof File=="function"||typeof File<"u"&&CP.call(File)==="[object FileConstructor]";function y0(e){return DN&&(e instanceof ArrayBuffer||LN(e))||MN&&e instanceof Blob||NN&&e instanceof File}function Zu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Zu(e[r]))return!0;return!1}if(y0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Zu(e[r]))return!0;return!1}function BN(e){let t=[],r=e.data,n=e;return n.data=Eb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Eb(e,t){if(!e)return e;if(y0(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Eb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Eb(e[n],t));return r}return e}function VN(e,t){return e.data=Ob(e.data,t),delete e.attachments,e}function Ob(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ob(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ob(e[r],t));return e}var zN=Hj(AD(),1),Tb=(0,zN.default)("socket.io-parser"),AP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],UN=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var WN=class{constructor(e){this.replacer=e}encode(e){return Tb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Zu(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),Tb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=BN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},HN=class EP extends ke{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new qN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(y0(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!OP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(EP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Tb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return qf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||qf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&AP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},qN=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=VN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function GN(e){return typeof e=="string"}var OP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function KN(e){return e===void 0||OP(e)}function qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function XN(e,t){switch(e){case ee.CONNECT:return t===void 0||qf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&AP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||qf(t);default:return!1}}function YN(e){return GN(e.nsp)&&KN(e.id)&&XN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var ZN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),TP=class extends ke{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Nt(e,"open",this.onopen.bind(this)),Nt(e,"packet",this.onpacket.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(ZN.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Xo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var Rb=class extends ke{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Sd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||kP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new SP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Nt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Nt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Nt(e,"ping",this.onping.bind(this)),Nt(e,"data",this.ondata.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this)),Nt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){_d(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new TP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},sa={};function db(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=jN(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=sa[o]&&s in sa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Rb(n,t):(sa[o]||(sa[o]=new Rb(n,t)),l=sa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:Rb,Socket:TP,io:db,connect:db});N();N();N();VM(ZL);D();var RP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?wd(a):rn(r[i],a):r[i]=a}),s&&(r.schema=s))},PP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=UC(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&wd(r.designSystem)};var JN={success:"green",error:"red",warning:"yellow"},$P=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},IP={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:JN[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var QN=!1,eB=()=>QN?"http://localhost:8080":"https://api.symbols.app",tB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},rB=async e=>{try{let t=e||eB(),r=await C.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},DP=(e,t,r,n)=>{e.on("snapshot",RP(t,r,n)),e.on("ops",PP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&$P(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},nB=async(e,t,r,n)=>{let o=await rB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Eo(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),DP(a,e,t,r),a},oB=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),DP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},sB=async(e,t,r)=>{let{mode:n,baseUrl:o}=tB(r);return n?n==="collab"?nB(e,t,r,o):n==="runner"?oB(e,t,r):null:null},iB={onInit:sB};var LP=e=>typeof e>"u",FP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),jP=e=>e?.editor?.runtime==="runner",MP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},NP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!LP(r.liveSync)?r.liveSync:FP(t)||jP(t))&&(FP(t)&&!jP(t)&&!t?.key||MP(e,iB))}},BP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=LP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&MP(e,IP)}};D();function VP(e){return A(e)?e:P(e)?e.find(t=>A(t)):""}function x0(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&VP(e.extends),n=e.parent&&e.parent.childExtends&&VP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function kd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=x0(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?kd(e.parent):o&&(t[o]||r[o])?e:kd(e.parent)}var aB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},b0={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:aB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=kd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=x0(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=kd(n);if(!o)return;let s=x0(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)uo[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
108
+ }`,md=(e,t,r)=>Object.keys(t).map(n=>{let{url:o,fontWeight:s,fontStyle:i,fontDisplay:a,fontStretch:l}=t[n],c=Array.isArray(o)?o.map(u=>mr(u,r)||u):mr(o,r)||o;return Hv(e,c,s,{fontStyle:i,fontDisplay:a,fontStretch:l})}),jD=e=>Object.keys(e).map(t=>md(t,e[t].value)),hO=(e,t,r)=>{if(t&&t.isVariable){let o=mr(t.url,r)||t.url;return Uv(o)?Wv(o):za(e,o,t.fontWeight,{fontStretch:t.fontStretch,fontDisplay:t.fontDisplay||"swap"})}if(t[0])return md(e,t,r).map(pO);let n=Array.isArray(t.url)?t.url.map(o=>mr(o,r)||o):mr(t.url,r)||t.url;return za(e,n,t.fontWeight,{fontStyle:t.fontStyle,fontDisplay:t.fontDisplay,fontStretch:t.fontStretch})},gO=(e,t)=>Object.keys(e).map(r=>hO(r,e[r].value,t));N();N();N();var mO={};Y(mO,{animation:()=>rL,breakpoints:()=>eL,class:()=>lL,color:()=>HD,devices:()=>tL,document:()=>QD,font:()=>MD,fontFace:()=>VD,fontFamily:()=>ND,fontFamilyTypes:()=>BD,gradient:()=>qD,grid:()=>aL,icons:()=>XD,media:()=>zD,reset:()=>cL,semanticIcons:()=>YD,sequence:()=>yd,shadow:()=>KD,spacing:()=>WD,svg:()=>nL,svgData:()=>oL,templates:()=>sL,theme:()=>GD,timing:()=>JD,typography:()=>yO,unit:()=>DD,vars:()=>uL});var yd={"minor-second":1.067,"major-second":1.125,"minor-third":1.2,"major-third":1.25,"perfect-fourth":1.333,"augmented-fourth":1.414,"perfect-fifth":1.5,"minor-sixth":1.6,phi:1.618,"major-sixth":1.667,"square-root-3":1.732,"minor-seventh":1.778,"major-seventh":1.875,octave:2,"square-root-5":2.23,"major-tenth":2.5,"major-eleventh":2.667,"major-twelfth":3,pi:3.14,"double-octave":4},DD={default:"em"},LD={browserDefault:16,base:16,type:"font-size",ratio:yd["minor-third"],range:[-3,12],h1Matches:6,lineHeight:1.5,subSequence:!0,mediaRegenerate:!1,unit:"em",templates:{},sequence:{},scales:{},vars:{}},yO=LD,MD={},ND={},BD={"sans-serif":"Helvetica, Arial, sans-serif, --system-default",serif:"Times New Roman, Georgia, serif, --system-default",monospace:"Courier New, monospace, --system-default"},VD={},zD={tv:"(min-width: 2780px)",light:"(prefers-color-scheme: light)",dark:"(prefers-color-scheme: dark)",print:"print"},UD={base:yO.base,type:"spacing",ratio:yd.phi,range:[-5,15],subSequence:!0,mediaRegenerate:!1,unit:"em",sequence:{},scales:{},vars:{}},WD=UD,HD={},qD={},GD={},KD={},XD={},YD={},ZD={default:150,base:150,type:"timing",ratio:yd["perfect-fourth"],range:[-3,12],mediaRegenerate:!1,unit:"ms",sequence:{},scales:{},vars:{}},JD=ZD,QD={},eL={screenL:1920,screenM:1680,screenS:1440,tabletL:1366,tabletM:1280,tabletS:1024,mobileL:768,mobileM:560,mobileS:480,mobileXS:375},tL={screenXXL:[2560,1440],screenXL:[2240,1260],screenL:[1920,1024],screenM:[1680,1024],screenS:[1440,720],tabletL:[1366,926],tabletM:[1280,768],tabletS:[1024,768],mobileL:[768,375],mobileM:[560,768],mobileS:[480,768],mobileXS:[375,768]},rL={},nL={},oL={},sL={},iL={},aL=iL,lL={},cL={},uL={},TA={},RA={},Mu=mO,Wu={},bO=e=>e.replace(/_([a-z])/g,(t,r)=>r.toUpperCase());for(let e in Mu){let t=e.toLowerCase();Wu[t]=Mu[e];let r=bO(t);r!==t&&(Wu[r]=Mu[e]),t!==e&&(Wu[e]=Mu[e])}var qv={verbose:!1,useVariable:!0,useReset:!0,globalTheme:"auto",cssVars:TA,cssMediaVars:RA,CSS_VARS:TA,CSS_MEDIA_VARS:RA,_scratchConfig:!0,...Wu},fL=et(qv),Nf={active:"0",0:qv};var Ta=[],dL=e=>{e&&e._scratchConfig&&Ta.push(e)},pL=()=>{Ta.pop()},H=e=>Ta.length?Ta[Ta.length-1]:Nf[e||Nf.active]||qv,hL=e=>{if(M(e))return Nf.active="1",Nf[1]=tr(e,et(fL)),e};var Hr={"-6":"U","-5":"V","-4":"W","-3":"X","-2":"Y","-1":"Z",0:"A",1:"B",2:"C",3:"D",4:"E",5:"F",6:"G",7:"H",8:"I",9:"J",10:"K",11:"L",12:"M",13:"N",14:"O",15:"P",16:"Q",17:"R",18:"S",19:"T"},Gv=(e,t)=>{let{key:r,variable:n,value:o,scaling:s,index:i,scalingVariable:a}=e;t.sequence[r]={key:r,decimal:~~(o*100)/100,val:~~o,scaling:s,index:i,scalingVariable:a,variable:n},t.scales[r]=s;let l=xO.has(t.unit)?"rem":t.unit;t.vars[n]=s+l},Qa=e=>{if(!e.includes("("))return e;let t=e.split("(")[0],r=e.slice(e.indexOf("(")+1,e.lastIndexOf(")"));return[t,r]},xO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),Kv=(e,t)=>{let{base:r,type:n,unit:o}=t,s=xO.has(o)?"rem":o,i=(Bv(s)?1:r)+s;if(e===0)return i;let a="--"+(t.varPrefix?t.varPrefix+"-":"")+(n&&n.replace(".","-")),l=`${a}-ratio`;if(e>0){let c=Hr[e-1];return`calc(var(${a}-${c}) * var(${l}))`}if(e<0){let c=Hr[e+1],u=Math.abs(e),d=Math.pow(_O,2*u),f=Hr[u];return f?`max(calc(var(${a}-${c}) / var(${l})), calc(var(${a}-${f}) / ${d.toFixed(4)}))`:`calc(var(${a}-${c}) / var(${l}))`}},vO=(e,t,r,n)=>{let{type:o}=n,s=e===2&&t.length===2?e+1:e,i=`${"--"+(n.varPrefix?n.varPrefix+"-":"")+(o&&o.replace(".","-"))}-sub-ratio-`;return`calc(var(${r}) * var(${i+s}))`},Xv=(e,t)=>{let r=(e*t-e)/1.618,n=e*t-r,o=e+r,s=(n+o)/2;return[n,s,o]},wO=(e,t)=>Xv(e,t).map(r=>r/e),Yv=(e,t)=>{let{key:r,base:n,value:o,ratio:s,variable:i,index:a}=e,l=~~(o*s)-~~o,c,[u,d,f]=Xv(o,s);l>16?c=[u,d,f]:c=[u,f],c.forEach((p,h)=>{let g=~~(p/n*1e3)/1e3,m=i+(h+1),y=a+(h+1)/10,b=vO(h+1,c,i,t),v={key:r+(h+1),variable:m,value:p,scaling:g,scalingVariable:b,index:y};Gv(v,t)})},_O=1.618,gL=(e,t,r)=>{if(e>=0)return t*Math.pow(r,e);let n=Math.abs(e),o=t*Math.pow(r,e),s=t*Math.pow(r,n)/Math.pow(_O,2*n);return Math.max(o,s)},br=e=>{let{type:t,base:r,ratio:n,range:o,subSequence:s}=e,i=Math.abs(o[0])+Math.abs(o[1]),a="--"+(e.varPrefix?e.varPrefix+"-":"")+(t&&t.replace(".","-"))+"-";for(let l=0;l<=i;l++){let c=o[1]-l,u=Hr[c],d=gL(c,r,n),f=~~(d/r*100)/100,p=a+u,h=Kv(c,e),g={key:u,variable:p,value:d,base:r,scaling:f,scalingVariable:h,ratio:n,index:c};Gv(g,e),s&&Yv(g,e)}return e},mL=(e,t=0)=>{let{type:r,base:n,ratio:o,subSequence:s}=e,i=R(t)?t:Hr[t],a=R(t)?Object.entries(Hr).find(([,h])=>h===t)?.[0]:t;if(!i)return console.warn(`Position ${t} is out of range in numToLetterMap`),null;let l={sequence:{},scales:{},vars:{},...e},c=n*Math.pow(o,a),u=~~(c/n*100)/100,d="--"+(e.varPrefix?e.varPrefix+"-":"")+(r&&r.replace(".","-"))+"-"+i,f=Kv(a,e),p={key:i,variable:d,value:c,base:n,scaling:u,scalingVariable:f,ratio:o,index:a};return Gv(p,l),s&&Yv(p,l),l},Zv=(e="A",t)=>{let r=H(),{unit:n}=r;if(R(e)&&Ue(e))return`var(${e})`;let{sequence:o,unit:s=n.default,useVariable:i}=t,a=/^-?[a-zA-Z]/i,l=a.test(e);if(Vv.some(m=>e.includes(m))||!l||["none","auto","max-content","min-content","fit-content","inherit","initial","unset","revert","revert-layer"].includes(e))return e;let c=`--${t.varPrefix?t.varPrefix+"-":""}${dd(t.type.replace(".","-"))}-`,u=e.toUpperCase(),d=u.slice(0,1)==="-"?"-":"",f=d?u.slice(1):u,p="";f.includes("_")&&(p="_"+f.split("_")[1].toLowerCase(),f=f.split("_")[0]);let h=m=>a.test(m)?`var(${c}${m}${p})`:m;if(f.includes("+")){let[m,y]=f.split("+"),b=`${h(m)} + ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("*")){let[m,y]=f.split("*"),b=`${h(m)} * ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}else if(f.includes("-")){let[m,y]=f.split("-"),b=`${h(m)} - ${h(y)}`;return d?`calc((${b}) * -1)`:`calc(${b})`}if(!o[f]&&f.length===2&&(r.verbose&&console.warn(f,"- value is not found because `subSequence` is set to false"),f=f.slice(0,1)),i||r.useVariable){let m=`var(${c}${f}${p})`;return d?`calc(${m} * -1)`:m}let g=o?o[f]:null;return g?s==="ms"||s==="s"?d+g.val+s:d+g.scaling+s:console.warn("can't find",o,f)},SO=(e,t)=>{if(!["+","-","*","/",","].filter(n=>e.includes(n+" ")).length)return e;let r=/(\s*[+\-*/,]\s*)/;return e.split(r).map(n=>{let o=n.trim();return!o||["+","-","*","/",","].includes(o)?n:Zv(o,t)}).join("")},Ua=(e,t,r,n)=>{if(typeof e!="string")return H().verbose&&console.warn(t,e,"is not a string"),{[t]:e};if(e==="-"||e==="")return{};if(!n&&e.includes("(")){let o=Qa(e);n=o[0],e=o[1]}return["+","-","*","/",","].filter(o=>e.includes(o+" ")).length?e=SO(e,r):e=Zv(e,r),{[t]:n?`${n}(${e})`:e}},kO=(e,t)=>Hr[e-t],CO=e=>{let{h1Matches:t,sequence:r}=e;return new Array(6).fill(null).map((n,o)=>{let s=kO(t,o);return r[s]})};N();var yL=(e,t)=>{let r=H(),{cssVars:n}=r;ce(e.value)||(n[e.var]=e.value)},Jv=(e,t,r)=>{let n=H(),{unit:o}=n,s=t.unit||o.default,{base:i,ratio:a,type:l}=t,c="--"+(t.varPrefix?t.varPrefix+"-":"")+(l&&l.replace(".","-"));e[`${c}-base`]=i,e[`${c}-unit`]=s;let u=`${c}-ratio`;e[u]=a;let[d,f,p]=wO(i,a);e[`${c}-sub-ratio-1`]=`calc(var(${c}-ratio) * ${d/a})`,e[`${c}-sub-ratio-2`]=`calc(var(${c}-ratio) * ${f/a})`,e[`${c}-sub-ratio-3`]=`calc(var(${c}-ratio) * ${p/a})`},AO=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),bd=(e,t={})=>{let r=H(),{unit:n,timing:o,cssVars:s}=r,i=e.unit||n.default,a=AO.has(i)?"rem":i,{mediaRegenerate:l,sequence:c,scales:u}=e;l||Jv(s,e,t);for(let d in c){let f=c[d],p=(e.type===o.type?c[d].val:u[d])+a;if(!l){s[f.variable+"_default"]=p,s[f.variable]=f.scalingVariable;continue}t.useDefault===!1?s[f.variable]=p:(s[f.variable+"_default"]=p,s[f.variable]=`var(${f.variable+"_default"})`)}},Bf=(e,t,r={})=>{let n=H(),{unit:o,media:s,cssVars:i}=n,a=t.slice(1),l=e[t],c=l.unit||e.unit||o.default,u=AO.has(c)?"rem":c,{mediaRegenerate:d}=e,{sequence:f,scales:p}=l,h=s[a];if(!h&&n.verbose&&console.warn("Can't find media query ",h),!d){let g=i[`@media ${h}`];g||(g=i[`@media ${h}`]={}),Jv(g,l,r);let m=e.unit||o.default;if(u!==m&&f)for(let y in f){let b=f[y],v=p[y]+u;g[b.variable+"_default"]=v,g[b.variable]=v}return}for(let g in f){let m=f[g],y=(Bv(u)?p[g]:f[g].val)+u;!h&&n.verbose&&console.warn("Can't find query ",h);let b=i[`@media ${h}`];b||(b=i[`@media ${h}`]={}),b[m.variable]=`var(${m.variable+"_"+a})`,i[m.variable+"_"+a]=y}};N();var EO=Ka(),vb=e=>{let t=H(),r="";for(let n in e)t.__svgCache[n]||(t.__svgCache[n]=!0,r+=e[n]);return r},bL=e=>{let t=e&&(e.default||e);if(!R(t))return EO&&console.warn("parseRootAttributes:",t,"is not a string"),{};let r=t.match(/<svg\s+(.*?)>/);if(!r||!r[1])return{};let n=r[1].match(/(\S+)=["']?((?:.(?!["']?\s+(?:\S+)=|\s*\/?[>"']))+.)["']?/gm);return n?n.reduce((o,s)=>{let[i,a]=s.split("=");return o[i]=a.replace(/['"]/g,""),o},{}):{}},xL=(e,t)=>{let r=[];if(e.replace(/id="([^"]*)"/g,(o,s)=>(r.push(s),o)),!r.length)return e;let n=e;for(let o of r){let s=o.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),i=`${t}-${o}`;n=n.replace(new RegExp(`id="${s}"`,"g"),`id="${i}"`).replace(new RegExp(`url\\(#${s}\\)`,"g"),`url(#${i})`).replace(new RegExp(`xlink:href="#${s}"`,"g"),`xlink:href="#${i}"`).replace(new RegExp(`href="#${s}"`,"g"),`href="#${i}"`)}return n},PA=new Set,OO=(e,t)=>{let r=t&&t.default?t.default:t;if(!R(r))return EO&&!PA.has(e)&&(PA.add(e),console.warn("convertSvgToSymbol:",e,"is not a string")),"";t=r;let n=bL(t),{width:o,height:s}=n,i=n.viewBox||`0 0 ${o||24} ${s||24}`,a=xL(t,e).replace("<svg",`<symbol id="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="${i}"`);return a=a.replace(/width="[^"]*"/,""),a=a.replace(/height="[^"]*"/,""),a=a.replace("</svg","</symbol"),a=_L(a),a},vL="line|circle|ellipse|rect|polyline|polygon|path|stop|use|image",wL=new RegExp(`<(${vL})\\b([^>]*?)\\s*/>`,"g"),_L=e=>e.replace(wL,"<$1$2></$1>"),TO={};Y(TO,{appendSVGSprite:()=>WO,appendSvgIconsSprite:()=>qO,applyDocument:()=>UO,applyHeadings:()=>jO,applyReset:()=>KO,applySpacingSequence:()=>NO,applyTimingSequence:()=>zO,applyTypographySequence:()=>DO,checkIfBoxSize:()=>MO,getColor:()=>Pe,getFontFamily:()=>IO,getFontSizeByKey:()=>LO,getMediaColor:()=>_t,getMediaTheme:()=>qr,getShadow:()=>VO,getSpacingBasedOnRatio:()=>Ho,getSpacingByKey:()=>ze,getTheme:()=>Qv,getTimingByKey:()=>gr,getTimingFunction:()=>Rn,runThroughMedia:()=>FO,setColor:()=>Ra,setFont:()=>$O,setFontFamily:()=>Sb,setGradient:()=>Pa,setMediaTheme:()=>e0,setSVG:()=>r0,setShadow:()=>$a,setSvgIcon:()=>HO,setTheme:()=>RO,splitSpacedValue:()=>BO});N();var Pe=(e,t,r)=>{let n=r||H();if(!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;t&&e[t]&&(e=e[t]);let o,s,i;if(W(e))[o,s,i]=e;else{let d=Ja(e);if(!d){let{color:f,gradient:p}=n,h=p[e]||f[e];return h?n.useVariable?`var(${h.var})`:h.value:e}if(d.passthrough)return d.passthrough;if(d.cssVar)return`var(${d.cssVar})`;o=d.name,s=d.alpha,i=d.tone}let{color:a,gradient:l}=n,c=a[o]||l[o];if(!c)return n.verbose&&console.warn("Can't find color ",o),e;t&&(c[t]?c=c[t]:n.verbose&&console.warn(e," - does not have ",t));let u=c.rgb;return u?(i&&!c[i]&&(u=Oa(u,i),c[i]={rgb:u,var:`${c.var}-${i}`}),c[i]&&(u=c[i].rgb),s?`rgba(${u}, ${s})`:i?`rgba(${u}, 1)`:n.useVariable?`var(${c.var})`:`rgb(${u})`):n.useVariable?`var(${c.var})`:c.value},_t=(e,t,r)=>{let n=r||H();if(t||(t=n.globalTheme==="auto"?null:n.globalTheme),!R(e)){n.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let o;if(W(e))o=e[0];else{let c=Ja(e);if(!c)return e;if(c.passthrough)return c.passthrough;if(c.cssVar)return`var(${c.cssVar})`;o=c.name}let{color:s,gradient:i}=n,a=s[o]||i[o],l=M(a);if(l&&a.value)return Pe(e,`@${t}`,r);if(l){if(n.useVariable&&a.var)return`var(${a.var})`;if(t)return Pe(e,`@${t}`,r);{let c={};for(let u in a){if(u.charCodeAt(0)!==64)continue;let d=n.media[u.slice(1)];if(!d)continue;let f="@media "+(d==="print"?`${d}`:`screen and ${d}`);c[f]=Pe(e,u,r)}return c}}else return n.verbose&&console.warn("Can't find color",e),e},Ra=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)){let h=e.slice(2);if(e=Pe(h),!(e.includes("rgb")||e.includes("var")||e.includes("#"))){let g=h.split(" "),m=n.color[g[0]];if(m&&!m.value&&!m.rgb&&(R(m)||W(m)||M(m))&&(n.color[g[0]]=Ra(m,g[0]),m=n.color[g[0]]),m&&m.value){let y=m.rgb,b=g[1]!==void 0?g[1]:"1",v=g[2];v&&(y=Oa(y,v)),e=`rgba(${y}, ${b})`}else{let y=g[2],b=g[1]!==void 0?g[1]:"1";if(y)try{let v=In(g[0]);v&&v.length>=3?e=`rgba(${Oa(v.slice(0,3).join(", "),y)}, ${b})`:e=g[0]}catch{e=g[0]}else e=g[0]}}}if(W(e)&&(e={"@light":e[0],"@dark":e[1]}),M(e)){let h={};for(let g in e)h[g]=Ra(e[g],t,g.slice(0,1)==="@"?g.slice(1):g);if(n.useVariable){let g=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`,m,y={};for(let b in h){if(b.charCodeAt(0)!==64)continue;let v=b.slice(1),x=h[b],w=x&&(x.value||x);!w||typeof w!="string"||(y[v]=w,(v==="light"||m===void 0)&&(m=w))}if(m!==void 0){n.cssVars[g]=m,n.cssMediaVars||(n.cssMediaVars={});for(let b in y){let v=`[data-theme="${b}"]`;if(n.cssMediaVars[v]||(n.cssMediaVars[v]={}),n.cssMediaVars[v][g]=y[b],b==="light"||b==="dark"){let x=`@media (prefers-color-scheme: ${b})`;n.cssMediaVars[x]||(n.cssMediaVars[x]={}),n.cssMediaVars[x][g]=y[b]}}h.var=g}}return h}let o=`--${n.varPrefix?n.varPrefix+"-":""}color-${t}`+(r?`-${r}`:""),s=e.value||e;if(R(s)&&s.includes(".")&&!s.includes("(")){let[h,g]=s.split("."),m=n.color[h];m&&m.rgb&&(s=`rgba(${m.rgb}, ${parseFloat("0."+g)||1})`)}if(R(s)&&!s.includes("(")&&!s.startsWith("#")){let h=Ja(s);if(h&&h.name&&!h.passthrough&&!h.cssVar){let g=n.color[h.name];g&&!g.value&&!g.rgb&&(R(g)||W(g)||M(g))&&(n.color[h.name]=Ra(g,h.name));let m=n.color[h.name];if(m&&m.rgb){let y=m.rgb;h.tone&&(y=Oa(y,h.tone));let b=h.alpha?parseFloat(h.alpha):1;s=`rgba(${y}, ${b})`}}}let i=In(s),[a,l,c,u=1]=i,d=parseFloat(u.toFixed(2)),f=`${a}, ${l}, ${c}`,p=`rgba(${f}, ${d})`;return n.useVariable&&(n.cssVars[o]=p),{var:o,rgb:f,alpha:d,value:p}},Pa=(e,t,r)=>{let n=H();if(R(e)&&Ue(e)&&(e=Pe(e.slice(2))),W(e))return{"@light":Pa(e[0],t,"light"),"@dark":Pa(e[0],t,"dark")};if(M(e)){let s={};for(let i in e)s[i]=Pa(e[i],t,i.slice(0,1)==="@"?i.slice(1):i);return s}let o=`--${n.varPrefix?n.varPrefix+"-":""}gradient-${t}`+(r?`-${r}`:"");return n.useVariable&&(n.cssVars[o]=e.value||e),{var:o,value:e.value||e}};N();var SL=new Set(["black","white","red","green","blue","yellow","orange","purple","pink","brown","gray","grey","cyan","magenta","lime","olive","navy","teal","aqua","maroon","silver","fuchsia","transparent","currentColor","currentcolor","inherit","initial","unset","none","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","rebeccapurple"]),$A=["color","Color","background","Background","fill","Fill","stroke","Stroke"],kL=e=>{for(let t=0;t<$A.length;t++)if(e.includes($A[t]))return!0;return!1},xd=e=>{let t={},{state:r,media:n,helpers:o,...s}=e;return Object.keys(s).map(i=>{let a=["color","Color","background","border"].some(l=>i.includes(l));return t[i]=a?Pe(e[i]):e[i]}),t},la=e=>(e.value||(e.value=xd(e)),e.value),Qv=(e,t)=>{let r=H();if(r.useVariable)return qr(e,t);let n=r.theme;if(R(e)){let[o,s]=e.split(" "),i=n[o];if(i){if(!s&&!t)return la(i);e=[o,s||t]}}if(ce(e)&&e[1]){let o=e[0],s=e[1],{helpers:i,media:a,state:l}=n[o];if(a&&a[s])return la(a[s]);if(i&&i[s])return la(i[s]);if(l&&l[s])return la(l[s])}else if(M(e))return xd(e)},CL=(e,t,r)=>{if(M(t))e.variants.inverse.value=xd(t);else if(t===!0){let{color:n,background:o}=r;e.variants.inverse={value:{color:o,background:n}}}},AL=(e,t,r,n)=>{let o=Qv(r);n[`&:${t}`]=o,M(r)&&!r.value&&(r.value=o)},EL=(e,t)=>{let{state:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return AL(e,n,o,t),e}),e):void 0},OL=(e,t,r,n)=>{let o=Qv(r);n[`@media (prefers-color-scheme: ${t})`]=o,M(r)&&!r.value&&(r.value=o)},TL=(e,t)=>{let{media:r}=e;return r?(Object.keys(r).map(n=>{let o=r[n];return(n==="dark"||n==="light")&&OL(e,n,o,t),n==="inverse"&&CL(e,o,t),e}),e):void 0},RL=(e,t)=>{let r=H(),{helpers:n}=e;return n?(Object.keys(n).map(o=>{let s=n[o];return R(s)?n[o]=r.theme[s]:la(n[o]),e}),e):void 0},RO=(e,t)=>{let r=H();if(r.useVariable)return e0(e,t);let{state:n,media:o,helpers:s}=e,i=xd(e,t),a=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}`;return EL(e,i),TL(e,i),RL(e,i),{var:a,value:i,state:n,media:o,helpers:s}},wb=(e,t,r)=>{let{cssVars:n}=r;r.cssMediaVars||(r.cssMediaVars={});let o=r.cssMediaVars,s=r.globalTheme!==void 0?r.globalTheme:"auto",i={},a=new Set;for(let c in e)if(e[c])for(let u of Object.keys(e[c]))a.add(u);let l=new Set;for(let c of a){let u=c.slice(0,1);if(!(u==="@"||u==="."||u===":")&&kL(c))for(let d in e){if(l.has(d))continue;let f=e[d]?.[c];if(f===void 0)continue;let p=Pe(f,`@${d}`);p!==void 0&&R(p)&&/^[a-z][a-zA-Z]+$/.test(p)&&!SL.has(p)&&l.add(d)}}for(let c of a){let u=c.slice(0,1),d=Object.values(e).some(f=>ce(f?.[c]));if(u==="."&&d){let f=c.slice(1),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u===":"&&d){let f=c.replace(/^:+/,""),p={};for(let h in e)ce(e[h]?.[c])&&(p[h]=e[h][c]);i[c]=wb(p,`${t}-${f}`,r)}else if(u!=="@"&&u!=="."&&u!==":"){let f=`--${r.varPrefix?r.varPrefix+"-":""}theme-${t}-${c}`,p=s&&s!=="auto"?String(s).replace(/^'|'$/g,""):null,h;for(let g in e){if(l.has(g))continue;let m=e[g]?.[c];if(m===void 0)continue;let y=Pe(m,`@${g}`);if(y===void 0)continue;(p&&g===p||!p&&(g==="light"||h===void 0))&&(h=y);let b=`[data-theme="${g}"]`;if(o[b]||(o[b]={}),o[b][f]=y,g==="dark"||g==="light"){let v=`@media (prefers-color-scheme: ${g})`;o[v]||(o[v]={}),o[v][f]=y}}h!==void 0&&(n[f]=h),i[c]=`var(${f})`,i[`.${c}`]={[c]:i[c]}}}return(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color}),i},e0=(e,t,r,n)=>{let o=H(),{cssVars:s}=o,i={value:e},a=!r&&!n;if(ce(e)){if(a&&o.useVariable){let l={};for(let c in e)c.startsWith("@")&&ce(e[c])&&(l[c.slice(1)]=e[c]);if(Object.keys(l).length){let c=wb(l,t,o);Object.assign(i,c)}}for(let l in e){let c=l.slice(0,1),u=e[l];if(c==="@"||c===":"||c==="."){let d=c==="@"&&l;i[l]=e0(u,t,l,n||d)}else if(!a){let d=Pe(u,n),f=[...new Set([n,r].filter(g=>g).map(g=>g.slice(1)))],p=f.length?"-"+f.join("-"):"",h=`--${o.varPrefix?o.varPrefix+"-":""}theme-${t}${p}-${l}`;o.useVariable?(o.useThemeSuffixedVars&&(s[h]=d),i[l]=`var(${h})`):i[l]=d,i[`.${l}`]={[l]:i[l]}}}!i[".inversed"]&&(i.background||i.color||i.backgroundColor)&&(i[".inversed"]={color:i.background||i.backgroundColor,background:i.color})}if(R(e)&&Ue(e)){let l=o.theme[e.slice(2)];return qr(l,n)}return i},_b=e=>{let t=H(),r={};for(let n in e){let o=n.slice(0,1);if(ce(e[n])){if(o==="@")continue;o===":"?r[`&${n}`]=_b(e[n]):o==="."&&(r[`&${n}`]=_b(e[n]))}else r[n]=e[n]}return r},PO=(e,t)=>{let r=t.shift();return e[r]?PO(e[r],t):e},IA=(e,t)=>W(t)?PO(e,t):R(t)&&e[t]?e[t]:e,qr=(e,t)=>{let r=H();if(R(e)&&Ue(e)&&(e=qr(e.slice(2))),!e||!R(e)){r.verbose&&console.warn(`${e} - Theme is not a string`);return}let[n,...o]=W(e)?e:e.split(" "),s=r.theme[n];return s&&o.length?s=IA(s,o):s&&t&&(s=IA(s,t)),_b(s)};N();N();var $O=(e,t)=>{let r=H(),n=`--font-${t}`;if(!e||W(e)&&!e[0])return;let o;if(e.isVariable){let s=mr(e.url,r.files)||e.url;Uv(s)?o=Wv(s):o=za(t,s,e.fontWeight,{fontStretch:e.fontStretch,fontDisplay:e.fontDisplay||"swap"})}else if(e[0])o=md(t,e,r.files);else{let s=Array.isArray(e.url)?e.url.map(i=>mr(i,r.files)||i):mr(e.url,r.files)||e.url;o=za(t,s,e.fontWeight,{fontStyle:e.fontStyle,fontDisplay:e.fontDisplay,fontStretch:e.fontStretch})}return{var:n,value:e,fontFace:o}},IO=(e,t)=>{let r=H(),{fontFamily:n}=r;return zv(t||n,e)},Sb=(e,t)=>{let r=H(),{fontFamily:n,fontFamilyTypes:o}=r,{value:s,type:i}=e;e.isDefault&&(n.default=t),M(s)&&(s=Za(s));let a=`--font-family-${t}`,l=`${s.join(", ")}, ${o[i]}`;return{var:a,value:l,arr:s,type:i}};N();var FO=e=>{let t=H(),{typography:r,media:n}=t;for(let o in e){let s=o.slice(0,1)==="@",i=e[o];if(!s)continue;let{mediaRegenerate:a}=e,l=o.slice(1),{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g}=e;at(i,{type:c,base:u,ratio:d,range:f,subSequence:p,h1Matches:h,unit:g});let m=new Set(["vw","vh","vmin","vmax","svw","svh","lvw","lvh","dvw","dvh"]),y=i.unit||g,b=!i.unit&&m.has(g)?"rem":y,v=n[l],x="@media "+(v==="print"?`${v}`:`screen and ${v}`);if(r.templates[x]={fontSize:i.base/r.browserDefault+b},!a){at(i,{sequence:{},scales:{},vars:{}}),br(i),Bf(e,o);continue}at(i,{sequence:{},scales:{},templates:{},vars:{}}),br(i),Bf(e,o)}},jO=e=>{let t=H();if(e.h1Matches){let r=e.unit,n=CO(e),{templates:o}=e;for(let s in n){let i=`h${parseInt(s)+1}`,a=o[i];o[i]={fontSize:t.useVariable?`var(${n[s]?.variable})`:`${n[s]?.scaling}${r}`,margin:a?a.margin:0,lineHeight:a?a.lineHeight:e.lineHeight,letterSpacing:a?a.letterSpacing:e.letterSpacing,fontWeight:a?a.fontWeight:900-s*100}}}},DO=()=>{let e=H(),{typography:t}=e;br(t),jO(t),bd(t),FO(t)},LO=e=>{let t=H(),{typography:r}=t;return Ua(e,"fontSize",r)};N();N();var PL=e=>{let t=H().spacing||{},r=parseFloat(e.spacingRatio),n={...t,ratio:Number.isFinite(r)?r:t.ratio,sequence:{},scales:{}};return br(n),n},$L=e=>{for(let t in e){let r=e[t];if(t.slice(0,1)!=="@")continue;let{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c}=e;at(r,{type:n,base:o,ratio:s,range:i,subSequence:a,h1Matches:l,unit:c,sequence:{},scales:{},templates:{},vars:{}}),br(r),Bf(e,t)}},MO=e=>{let t=e.toLowerCase(),r=t.includes("width")||t.includes("height"),n=t.includes("border")||t.includes("outline");return r&&!n},NO=()=>{let e=H(),{spacing:t}=e;br(t),bd(t),$L(t)},IL=e=>{let t=H(),{spacing:r}=t;return!e||!e.sequence?r:Object.keys(e.sequence).length>0?e:br(e)},ze=(e,t="padding",r,n)=>{let o=IL(r);if(R(e)&&!n&&e.includes("(")){let i=Qa(e);n=i[0],e=i[1]}let s=n?[e]:Za(e);if(W(s)){if(s.length>1){let i="";t==="borderWidth"&&(t="border",i="Width");let a={2:["Block","Inline"],3:["BlockStart","Inline","BlockEnd"],4:["BlockStart","InlineEnd","BlockEnd","InlineStart"]},l=(c,u)=>Ua(s[u],t+c+i,o,n);return a[s.length].map((c,u)=>l(c,u))}return Ua(e,t,o,n)}},Ho=(e,t,r,n)=>{let o=H(),{spacing:s}=o,i=r||e[t];if(!n&&R(i)&&i.includes("(")){let a=Qa(i);n=a[0],i=a[1]}if(e.spacingRatio){let a=PL(e);return ze(i,t,a,n)}return ze(i,t,s,n)},BO=e=>{let t=r=>{let n=["+","-","*","/"].includes(r),o=Vv.some(s=>e.includes(s));return n||o?r:r.length<3&&/[A-Z]/.test(r)?r+"_default":r};return e.split(",").map(r=>r.trim()).map(t).join(",").split(" ").map(t).join(" ")};N();var $a=(e,t,r,n)=>{let o=H();if(W(e))return{"@light":$a(e[0],t,"light"),"@dark":$a(e[1],t,"dark")};if(M(e)){let i={};for(let a in e)i[a]=$a(e[a],t,a.startsWith("@")?a.slice(1):a);return i}R(e)&&!Fn.test(e)&&(e=gd(e).map(i=>(i=i.trim(),i.split(/\s+/).map(a=>{if(a=a.trim(),!a)return"";if(a.startsWith("--"))return`var(${a})`;let l=Pe(a);if(Go(l))return l;if(/^\d/.test(a)||a==="0"||a.includes("px")||a.slice(-2)==="em"||a==="inset"||a==="none")return a;let c=ze(a,"shadow");return c&&c.shadow?c.shadow:a}).join(" "))).join(", "));let s=`--${o.varPrefix?o.varPrefix+"-":""}shadow-${t}`+(r?`-${r}`:"");return o.useVariable&&(o.cssVars[s]=e),{var:s,value:e}},VO=(e,t)=>{let r=H();if(t||(t=r.globalTheme),!R(e)){r.verbose&&console.warn(e,"- type for color is not valid");return}if(Ue(e))return`var(${e})`;let[n]=W(e)?e:e.split(" "),o=r.shadow[n],s=M(o);if(!o)return r.verbose&&console.warn("Can't find color ",n),e;if(t){if(o[t])return o[t].value;r.verbose&&console.warn(e," - does not have ",t)}if(s&&o.value)return o.value;if(s){let i={};for(let a in o){let l=r.media[a.slice(1)],c="@media "+(l==="print"?`${l}`:`screen and ${l}`);i[c]=o.value}return i}return r.verbose&&console.warn("Can't find color",e),e};N();var zO=()=>{let e=H(),{timing:t}=e;br(t),bd(t)},Rn=e=>{let t=H(),{timing:r}=t;return r[e]||r[fd(e)]||e},gr=(e,t="timing")=>{let r=H(),{timing:n}=r;return Ua(e,t,n)};N();var UO=()=>{let e=H(),{document:t,fontFamily:r,theme:n,typography:o}=e;return at(t,{theme:n.document,fontFamily:zv(r),fontSize:o.base,lineHeight:o.lineHeight})};N();var t0={document:be},r0=(e,t)=>{let r=H();if(!e){r.verbose&&console.warn("setSVG: val is not defined",t);return}return r.useSvgSprite?OO(t,e):e},WO=(e,t=t0)=>{let r=H(),n=Object.keys(e).length?{}:r.svg;for(let o in e)n[o]=e[o];GO(n,t)},HO=(e,t)=>{let r=H();return r.useIconSprite&&!r.semanticIcons?.[t]?r0(e,t):e},qO=(e,t=t0)=>{let r=H(),n=Object.keys(e).length?{}:r.icons;for(let o in e)n[o]=e[o];GO(n,t)},sb=(e,t={isRoot:!0})=>{if(!e||!e.createElementNS)return;let r=e.createElementNS("http://www.w3.org/2000/svg","svg");return t.isRoot&&(r.setAttribute("aria-hidden","true"),r.setAttribute("width","0"),r.setAttribute("height","0"),r.setAttribute("style","position:absolute"),r.setAttribute("id","svgSprite")),r},FL=(e,t)=>{let r=typeof DOMParser<"u"?DOMParser:null;if(r){let n=`<svg xmlns="http://www.w3.org/2000/svg">${t}</svg>`,o=new r().parseFromString(n,"image/svg+xml");return o.querySelector("parsererror")?null:o.documentElement}return null},FA=(e,t,r)=>{for(;t.firstChild;){let n=t.firstChild;r.appendChild(e.importNode(n,!0)),n.remove()}},GO=(e,t=t0)=>{let r=H(),n=t.document||be;if(!n||!n.documentElement)return r.verbose&&console.warn("To append SVG sprites it should be run in browser environment"),vb(e);let o=n.querySelector("#svgSprite"),s=vb(e),i=`<svg aria-hidden="true" width="0" height="0" style="position:absolute" id="svgSprite">${s}</svg>`,a=FL(n,s);if(o)if(a)FA(n,a,o);else if(n.body.insertAdjacentHTML)o.insertAdjacentHTML("beforeend",s);else{let l=sb(n,{isRoot:!1});l.innerHTML=s,o.append(...l.children)}else if(a){let l=sb(n);l&&l.nodeType&&(FA(n,a,l),n.body.prepend(l))}else if(n.body.insertAdjacentHTML)n.body.insertAdjacentHTML("afterbegin",i);else{let l=sb(n);l&&l.nodeType&&(l.innerHTML=s,n.body.prepend(l))}};N();var KO=(e={})=>{let t=H(),{reset:r,typography:n,document:o}=t;if(r){if(r[":root"]){let l=r,c=n.templates;l.body={...t.useDocumentTheme?qr("document"):{},...c.body},l.h1=c.h1,l.h2=c.h2,l.h3=c.h3,l.h4=c.h4,l.h5=c.h5,l.h6=c.h6}let{body:s,...i}=n.templates,a=t.useDocumentTheme?qr("document"):{};if(r.html&&$n(r.html,a),n.unit){let{media:l}=t;for(let c in n){if(c.charAt(0)!=="@")continue;let u=n[c];if(!u||u.unit===n.unit||!u.unit)continue;let d=u.unit,f=u.base||n.base,p=u.browserDefault||n.browserDefault,h=c.slice(1),g=l[h];if(!g)continue;let m="@media "+(g==="print"?g:"screen and "+g);r[m]||(r[m]={}),r[m].html||(r[m].html={}),r[m].html.fontSize=f/p+d}}return tr(at(r,e),{html:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",margin:"0",WebkitFontSmoothing:"subpixel-antialiased",scrollBehavior:"smooth",...a,fontSize:n.unit?n.base/n.browserDefault+n.unit:n.browserDefault+"px",fontFamily:o.fontFamily,lineHeight:o.lineHeight},body:{boxSizing:"border-box",height:"100%",margin:0,fontFamily:o.fontFamily,fontSize:n.base/n.browserDefault+t.unit.default,...i,...s},a:{color:"currentColor"},button:{color:"inherit",font:"inherit",background:"transparent",border:"none",cursor:"pointer",appearance:"none",WebkitAppearance:"none"},"input, select, textarea":{color:"inherit",font:"inherit"},fieldset:{border:0,padding:0,margin:0}})}};N();var jL=new Set(["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset","initial"]),DL=new Set(["to","top","bottom","left","right","center","at","circle","ellipse","closest-side","farthest-side","closest-corner","farthest-corner"]),LL=e=>jL.has(e),An=e=>{let t=e+"";if(Fn.test(t))return t;let r=t.trim();return r==="none"||r==="0"||r==="initial"||r==="inherit"||r==="unset"?t:t.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(LL(n)||/^\d/.test(n)||n==="0")return n;let o=Pe(n);if(Go(o))return o;let s=ze(n,"border");return s&&s.border?s.border:n}).join(" ")},ML=e=>Fn.test(e)?e:e.split(/\s+/).map(t=>{if(t=t.trim(),!t)return"";if(Ue(t))return`var(${t})`;if(/^\d/.test(t)||t.includes("px")||t==="0")return t;let r=Pe(t);return Go(r)?r:t}).join(" "),NL=(e,t)=>VO(e,t),jA=(e,t)=>Fn.test(e)?e:gd(e).map(r=>(r=r.trim(),r?r.split(/\s+/).map(n=>{if(n=n.trim(),!n)return"";if(Ue(n))return`var(${n})`;if(n==="inset"||n==="none")return n;let o=Pe(n);if(Go(o)){let i=_t(n,t);return M(i)?Object.values(i).filter(a=>a.includes(": "+t))[0]:i}if(/^\d/.test(n)||n==="0"||n.includes("px")||n.slice(-2)==="em")return n;let s=ze(n,"shadow");return s&&s.shadow?s.shadow:n}).join(" "):"")).join(", "),XO=(e,t)=>{let r=e.indexOf("(");if(r===-1)return e;let n=e.slice(0,r+1),o=e.slice(r+1,e.lastIndexOf(")")),s=")",i=gd(o).map(a=>(a=a.trim(),a.split(/\s+/).map(l=>{if(!l||/^\d/.test(l)||l==="0"||DL.has(l)||l==="transparent"||Fn.test(l))return l;let c=Pe(l);return Go(c)?c:l}).join(" ")));return n+i.join(", ")+s},BL=(e,t)=>{let r=H();return e.split(", ").map(n=>Ue(n)?`var(${n})`:n.includes("url")?n:n.includes("gradient")?XO(n,t):r.gradient[e]?{backgroundImage:_t(e,t||r.globalTheme)}:n.includes("/")||n.startsWith("http")||n.includes(".")&&!Ja(n)?`url(${n})`:n).join(" ")},VL=e=>R(e)&&e.split(" ").map(t=>ze(t,"gap").gap).join(" "),zL=e=>{let t=e.split(" ");return t.length?t.map(r=>Ue(r)?`var(${r})`:r.length<3||r.includes("ms")?gr(r).timing||r:Rn(r)?Rn(r):r).join(" "):e},DA=(e,t,r)=>{if(R(e))return e.split(",").map(n=>gr(n).timing||n).join(",")},UL=e=>{let t=e.split(",");if(t.length)return t.map(zL).join(",")};function Re(e,t,r={},n={}){let o=Ne.call(this,t||r[e]);if(o==null)return;let s;if(R(o)){if(o.includes("(")){let l=Qa(o);s=l[0],o=l[1]}let i=r.scaleBoxSize,a=MO(e);!i&&a&&!n.ratio&&(o=BO(o))}return n.ratio?Ho(r,e,o,s):ze(o,e,void 0,s)}var se=(e,t=null,r)=>Re(e,t,r,{ratio:!0}),LA=(e,t,r)=>{if(R(e))return{borderRadius:e.split(" ").map((n,o)=>Ho(t,r,n)[r]).join(" ")}};N();var WL=(e,t)=>{let r=H(),{cssVars:n}=r,o=t.startsWith("--")?t:`--${t}`;return n[o]=e,e},vt=e=>e,MA={color:Ra,gradient:Pa,font:$O,fontFamily:Sb,fontfamily:Sb,theme:RO,icons:HO,semanticIcons:vt,semanticicons:vt,svg:r0,svgData:vt,typography:vt,shadow:$a,spacing:vt,media:vt,grid:vt,class:vt,timing:vt,reset:vt,unit:vt,animation:vt,vars:WL},HL=(e,t,r)=>{let n=H(),o=bO(e),s=o.toLowerCase(),i=n[o]||n[s]||n[e],a=MA[o]||MA[s];if(a)try{let l=a(t,r);return i&&(i[r]=l),i}catch(l){n.verbose&&console.warn("Error setting",s,"value",t,r,l)}n.verbose&&console.warn("Can not find",s,"method in scratch")},qL=(e,t)=>{let r=H(),n=e.toLowerCase();return Object.keys(t).sort((o,s)=>{let i=M(t[o])||W(t[o])?1:0,a=M(t[s])||W(t[s])?1:0;return i-a}).forEach(o=>{try{return HL(n,t[o],o)}catch(s){r.verbose&&console.warn("Error setting",n,"value",t[o],o,s)}}),r[n]||r[e]};var GL={},n0=(e,t=GL)=>{let r=t.config||H(),{version:n,verbose:o,useVariable:s,useReset:i,useSvgSprite:a,useFontImport:l,useIconSprite:c,globalTheme:u,themeRoot:d,useDocumentTheme:f,useDefaultConfig:p,semanticIcons:h,files:g,assets:m,...y}=e;t.newConfig&&(r=hL(t.newConfig)),g!==void 0&&(r.files=g),m!==void 0&&(r.assets=m),o!==void 0&&(r.verbose=o),s!==void 0&&(r.useVariable=s),i!==void 0&&(r.useReset=i),l!==void 0&&(r.useFontImport=l),a!==void 0&&(r.useSvgSprite=a),c!==void 0&&(r.useIconSprite=c),f!==void 0&&(r.useDocumentTheme=f),u!==void 0&&(r.globalTheme=u),d!==void 0&&(r.themeRoot=d),e.useThemeSuffixedVars!==void 0&&(r.useThemeSuffixedVars=e.useThemeSuffixedVars),p!==void 0&&(r.useDefaultConfig=p),h!==void 0&&(r.semanticIcons=h),r.verbose&&console.log(r);let b=(r.document&&r.document.documentElement?r.document:null)||(typeof document<"u"?document:null),v=b&&b.defaultView||(typeof window<"u"?window:null),x=b&&(r.themeRoot||b.documentElement);if(x&&typeof x.setAttribute=="function")if(r.globalTheme&&r.globalTheme!=="auto")x.setAttribute("data-theme",r.globalTheme),r.globalTheme==="dark"||r.globalTheme==="light"?x.style.colorScheme=r.globalTheme:x.style.colorScheme="light dark";else if(v&&v.matchMedia){let F=$=>{x.setAttribute("data-theme",$.matches?"dark":"light")},_=v.matchMedia("(prefers-color-scheme: dark)");if(F(_),x.style.colorScheme="light dark",!r.__prefersListener){r.__prefersListener=F;try{_.addEventListener("change",F)}catch{_.addListener(F)}}}else x.setAttribute("data-theme","light"),x.style.colorScheme="light";r.__svgCache||(r.__svgCache={});let w=Object.keys(y),k=new Set(w);if(w.forEach(F=>{let _=F.toLowerCase();_!==F&&k.has(_)&&tr(y[_],y[F])}),w.map(F=>{let _=F.toLowerCase();if(!(_!==F&&k.has(_)))return qL(F,y[F])}),r.varPrefix&&(r.typography&&(r.typography.varPrefix=r.varPrefix),r.spacing&&(r.spacing.varPrefix=r.varPrefix),r.timing&&(r.timing.varPrefix=r.varPrefix)),y.typography)try{DO()}catch(F){r.verbose&&console.warn("Error applying typography sequence",F)}if(y.spacing)try{NO()}catch(F){r.verbose&&console.warn("Error applying spacing sequence",F)}if(y.timing)try{zO()}catch(F){r.verbose&&console.warn("Error applying timing sequence",F)}UO();let E=KO();return E&&(r.reset=E),r};var KL=null,XL=null,YL=null;function ZL(e){e.batchAtomicCss&&(XL=e.batchAtomicCss),e.compoundCssClass&&(YL=e.compoundCssClass)}function JL(){try{let e=H();if(e?.document)return e.document}catch{}return typeof document<"u"?document:null}function Hu(e){return e.replace(/[A-Z]/g,t=>"-"+t.toLowerCase())}var NA=new WeakMap;function ca(e,t){let r=YO(t);if(!r)return;let n=NA.get(r);if(n||(n=new Set,NA.set(r,n)),!n.has(e)){n.add(e);try{r.insertRule(e,r.cssRules.length)}catch{}}}var BA=new WeakMap;function YO(e){let t=e||JL();if(!t||!t.head)return null;let r=BA.get(t);if(r&&r.ownerNode&&r.ownerNode.parentNode===t.head)return r;let n=t.head.querySelector("style[data-smbls]");n||(n=t.createElement("style"),n.setAttribute("data-smbls",""),t.head.appendChild(n));let o=n.sheet;return BA.set(t,o),KL=o,o}function Vt(e){if(YO(),typeof e=="string"){ca(e);return}let t=Object.keys(e),r=n=>{let o=n.match(/max-width:\s*(\d+)/);return o?parseInt(o[1]):0};t.sort((n,o)=>{let s=n.startsWith("@media"),i=o.startsWith("@media");return!s&&!i?0:s?i?r(o)-r(n):1:-1});for(let n of t){let o=e[n];if(n.startsWith("@media")||n.startsWith("@supports"))for(let s in o){let i=o[s];if(typeof i=="object"&&i!==null){let a="";for(let l in i){let c=l.startsWith("--")?l:Hu(l);a+=`${c}:${i[l]};`}ca(`${n}{${s}{${a}}}`)}else{let a=s.startsWith("--")?s:Hu(s);ca(`${n}{${a}:${i};}`)}}else{let s="",i=!1;for(let a in o){let l=o[a];if(typeof l=="object"&&l!==null)i=!0;else{let c=a.startsWith("--")?a:Hu(a);s+=`${c}:${l};`}}if(s&&ca(`${n}{${s}}`),i){let a=[],l=[];for(let c in o)typeof o[c]=="object"&&o[c]!==null&&(c.startsWith("@media")||c.startsWith("@supports")?a.push(c):l.push(c));a.sort((c,u)=>{let d=f=>{let p=f.match(/max-width:\s*(\d+)/);return p?parseInt(p[1]):0};return d(u)-d(c)});for(let c of l)Vt({[`${n} ${c}`]:o[c]});for(let c of a)Vt({[c]:{[n]:o[c]}})}}}}function VA(e,t){let r="";for(let n in t){let o="";for(let s in t[n])o+=`${Hu(s)}:${t[n][s]};`;r+=`${n}{${o}}`}return ca(`@keyframes ${e}{${r}}`),e}N();Ya();N();N();var QL=["ease","linear","ease-in","ease-out","ease-in-out","step-start","step-end"],eM=["none","forwards","backwards","both"],tM=["normal","reverse","alternate","alternate-reverse"],rM=["running","paused"],nM=e=>/^[\d.]+m?s$/.test(e),oM=0,ib=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{};if(M(e)){let o=`smbls-anim-${oM++}`;return{animationName:VA(o,e)}}let n=r&&r[e];return M(n)?VA(e,n):e},sM=(e,t)=>{let{animation:r}=t.context&&t.context.designSystem||{},n=e.split(/\s+/),o=null,s=[],i=null,a=null,l=null,c=null,u=null;for(let d of n)r&&r[d]?o=d:nM(d)?s.push(d):QL.includes(d)||d.startsWith("cubic-bezier")||d.startsWith("steps(")?i=d:d==="infinite"||/^\d+$/.test(d)?a=d==="infinite"?d:Number(d):tM.includes(d)?l=d:eM.includes(d)?c=d:rM.includes(d)?u=d:o||(o=d);return{name:o,durations:s,timingFunction:i,iterationCount:a,direction:l,fillMode:c,playState:u}},iM={animation:(e,t)=>{if(R(e)&&e.includes(" ")){let r=sM(e,t);return{animationName:ib(r.name||e,t),animationDuration:r.durations[0]||gr(t.animationDuration||"A").timing,animationDelay:r.durations[1]||gr(t.animationDelay||"0s").timing,animationTimingFunction:r.timingFunction||Rn(t.animationTimingFunction||"ease"),animationFillMode:r.fillMode||t.animationFillMode||"both",animationIterationCount:r.iterationCount!=null?r.iterationCount:t.animationIterationCount||1,animationPlayState:r.playState||t.animationPlayState,animationDirection:r.direction||t.animationDirection}}return{animationName:ib(e,t),animationDuration:gr(t.animationDuration||"A").timing,animationDelay:gr(t.animationDelay||"0s").timing,animationTimingFunction:Rn(t.animationTimingFunction||"ease"),animationFillMode:t.animationFillMode||"both",animationIterationCount:t.animationIterationCount||1,animationPlayState:t.animationPlayState,animationDirection:t.animationDirection}},animationName:(e,t)=>({animationName:ib(e,t)}),animationDuration:e=>({animationDuration:gr(e).timing}),animationDelay:e=>({animationDelay:gr(e).timing}),animationTimingFunction:e=>({animationTimingFunction:Rn(e)}),animationIterationCount:e=>({animationIterationCount:e}),animationFillMode:e=>({animationFillMode:e}),animationPlayState:e=>({animationPlayState:e}),animationDirection:e=>({animationDirection:e})};N();var aM={show:e=>e?void 0:{display:"none !important"},hide:e=>e?{display:"none !important"}:void 0,height:(e,t)=>se("height",e,t),width:(e,t)=>se("width",e,t),boxSizing:e=>Bt(e)?{boxSizing:"border-box"}:{boxSizing:e},boxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("height",t),...Re("width",r||t)}},inlineSize:(e,t)=>se("inlineSize",e,t),blockSize:(e,t)=>se("blockSize",e,t),minWidth:(e,t)=>se("minWidth",e,t),maxWidth:(e,t)=>se("maxWidth",e,t),widthRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minWidth",t),...Re("maxWidth",r||t)}},minHeight:(e,t)=>se("minHeight",e,t),maxHeight:(e,t)=>se("maxHeight",e,t),heightRange:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minHeight",t),...Re("maxHeight",r||t)}},size:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...se("inlineSize",t),...se("blockSize",r||t)}},minBlockSize:(e,t)=>se("minBlockSize",e,t),minInlineSize:(e,t)=>se("minInlineSize",e,t),maxBlockSize:(e,t)=>se("maxBlockSize",e,t),maxInlineSize:(e,t)=>se("maxInlineSize",e,t),minSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("minInlineSize",t),...Re("minBlockSize",r||t)}},maxSize:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("maxInlineSize",t),...Re("maxBlockSize",r||t)}},borderWidth:(e,t)=>se("borderWidth",e,t),padding:(e,t)=>se("padding",e,t),scrollPadding:(e,t)=>se("scrollPadding",e,t),paddingInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingInlineStart",t),...Re("paddingInlineEnd",r||t)}},paddingBlock:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("paddingBlockStart",t),...Re("paddingBlockEnd",r||t)}},paddingTop:(e,t)=>se("paddingBlockStart",e,t),paddingBottom:(e,t)=>se("paddingBlockEnd",e,t),paddingLeft:(e,t)=>se("paddingInlineStart",e,t),paddingRight:(e,t)=>se("paddingInlineEnd",e,t),paddingBlockStart:(e,t)=>se("paddingBlockStart",e,t),paddingBlockEnd:(e,t)=>se("paddingBlockEnd",e,t),paddingInlineStart:(e,t)=>se("paddingInlineStart",e,t),paddingInlineEnd:(e,t)=>se("paddingInlineEnd",e,t),margin:(e,t)=>se("margin",e,t),marginInline:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{...Re("marginInlineStart",t),...Re("marginInlineEnd",r||t)}},marginBlock:(e,t)=>{if(!R(t.marginBlock))return;let[r,n]=t.marginBlock.split(" ");return{...Re("marginBlockStart",r),...Re("marginBlockEnd",n||r)}},marginTop:(e,t)=>se("marginBlockStart",e,t),marginBottom:(e,t)=>se("marginBlockEnd",e,t),marginLeft:(e,t)=>se("marginInlineStart",e,t),marginRight:(e,t)=>se("marginInlineEnd",e,t),marginInlineStart:(e,t)=>se("marginInlineStart",e,t),marginInlineEnd:(e,t)=>se("marginInlineEnd",e,t),marginBlockStart:(e,t)=>se("marginBlockStart",e,t),marginBlockEnd:(e,t)=>se("marginBlockEnd",e,t),gap:e=>({gap:VL(e)}),columnGap:(e,t)=>Ho(t,"columnGap",e),rowGap:(e,t)=>Ho(t,"rowGap",e),flexWrap:e=>({display:"flex",flexWrap:e}),flexFlow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},flexAlign:e=>{if(!R(e))return;let[t,r]=e.split(" ");return{display:"flex",alignItems:t,justifyContent:r}},round:(e,t)=>LA(e??t.borderRadius,t,"round"),borderRadius:(e,t)=>LA(e??t.round,t,"borderRadius")},lM={fontSize:e=>LO(e)||e,fontFamily:e=>({fontFamily:IO(e)||e}),fontWeight:e=>({fontWeight:e,fontVariationSettings:'"wght" '+e})},cM={overflow:e=>({overflow:e,scrollBehavior:"smooth"}),cursor:(e,t,r,n)=>{if(!e)return;let o=n.assets&&n.assets[e];if(o&&o.content)e=`url(${o.content.src})`;else{let s=n.files&&n.files[e];s&&s.content&&(e=`url(${s.content.src})`)}return{cursor:e}},opacity:e=>e!=null?{opacity:String(e)}:void 0,visibility:e=>e!=null?{visibility:e}:void 0,pointerEvents:e=>e!=null?{pointerEvents:e}:void 0},uM={inset:(e,t)=>{if(t.call("isNumber",e))return{inset:e};if(t.call("isString",e))return{inset:e.split(" ").map(r=>ze(r,"k").k).join(" ")}},left:e=>ze(e,"left"),top:e=>ze(e,"top"),right:e=>ze(e,"right"),bottom:e=>ze(e,"bottom"),verticalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{top:t[0],bottom:t[1]||t[0]}},horizontalInset:e=>{if(typeof e!="string")return;let t=e.split(" ").map(r=>ze(r,"k").k);return{left:t[0],right:t[1]||t[0]}}};N();var Dt=({context:e,state:t})=>{let r=t?.root?.globalTheme||e.designSystem?.globalTheme;return r==="auto"?null:r},fM={theme:(e,t)=>{if(e)return t.themeModifier?qr(e,`@${t.themeModifier}`):qr(e)},color:(e,t)=>{let r=Dt(t);if(e)return{color:_t(e,r)}},background:(e,t)=>{let r=Dt(t);if(e)return R(e)&&e.includes("gradient")?{background:XO(e,r)}:{background:_t(e,r)}},backgroundColor:(e,t)=>{let r=Dt(t);if(e)return{backgroundColor:_t(e,r)}},backgroundImage:(e,t,r,n)=>{let o=Dt(t);if(!e)return;let s=n.assets&&n.assets[e];if(s&&s.content)e=s.content.src;else{let i=n.files&&n.files[e];i&&i.content&&(e=i.content.src)}return{backgroundImage:BL(e,o)}},textStroke:e=>({WebkitTextStroke:ML(e)}),outline:e=>({outline:An(e)}),outlineOffset:(e,t)=>se("outlineOffset",e,t),border:e=>({border:An(e)}),borderColor:(e,t)=>{let r=Dt(t);if(e)return{borderColor:_t(e,r)}},borderTopColor:(e,t)=>{let r=Dt(t);if(e)return{borderTopColor:_t(e,r)}},borderBottomColor:(e,t)=>{let r=Dt(t);if(e)return{borderBottomColor:_t(e,r)}},borderLeftColor:(e,t)=>{let r=Dt(t);if(e)return{borderLeftColor:_t(e,r)}},borderRightColor:(e,t)=>{let r=Dt(t);if(e)return{borderRightColor:_t(e,r)}},borderLeft:e=>({borderLeft:An(e)}),borderTop:e=>({borderTop:An(e)}),borderRight:e=>({borderRight:An(e)}),borderBottom:e=>({borderBottom:An(e)}),shadow:(e,t)=>{let r=Dt(t);if(e)return{boxShadow:NL(e,r)}},boxShadow:(e,t)=>{if(!R(e))return;let[r,n]=e.split("!importan"),o=Dt(t),s=n?" !important":"";return{boxShadow:jA(r.trim(),o)+s}},textShadow:(e,{context:t})=>({textShadow:jA(e,t.designSystem.globalTheme)}),columnRule:e=>({columnRule:An(e)})},ZO={transition:e=>({transition:UL(e)}),transitionDuration:e=>({transitionDuration:DA(e)}),transitionDelay:e=>({transitionDelay:DA(e)}),transitionTimingFunction:e=>({transitionTimingFunction:Rn(e)}),transitionProperty:e=>({transitionProperty:e,willChange:e})};N();var dM={flow:(e,t)=>{let r=t.reverse;if(!R(e))return;let[n,o]=(e||"row").split(" ");return(e.startsWith("x")||e==="row")&&(n="row"),(e.startsWith("y")||e==="column")&&(n="column"),{display:"flex",flexFlow:(n||"")+(!n.includes("-reverse")&&r?"-reverse":"")+" "+(o||"")}},wrap:(e,t)=>({display:"flex",flexWrap:e}),align:(e,t)=>{let[r,n]=e.split(" ");return{display:"flex",alignItems:r,justifyContent:n}}},pM={area:e=>({gridArea:e}),template:e=>({gridTemplate:e}),templateAreas:e=>({gridTemplateAreas:e}),column:e=>({gridColumn:e}),columns:e=>({gridTemplateColumns:e}),templateColumns:e=>({gridTemplateColumns:e}),autoColumns:e=>({gridAutoColumns:e}),columnStart:e=>({gridColumnStart:e}),row:e=>({gridRow:e}),rows:e=>({gridTemplateRows:e}),templateRows:e=>({gridTemplateRows:e}),autoRows:e=>({gridAutoRows:e}),rowStart:e=>({gridRowStart:e}),autoFlow:e=>({gridAutoFlow:e})},zA={...iM,...aM,...lM,...cM,...uM,...fM,...ZO,...dM,...pM},hM=new Set(["accentColor","alignContent","alignItems","alignSelf","alignmentBaseline","all","animation","animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction","appearance","aspectRatio","backdropFilter","backfaceVisibility","background","backgroundAttachment","backgroundBlendMode","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPosition","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundRepeatX","backgroundRepeatY","backgroundSize","baselineShift","blockSize","border","borderBlock","borderBlockColor","borderBlockEnd","borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth","borderBlockStart","borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth","borderBlockStyle","borderBlockWidth","borderBottom","borderBottomColor","borderBottomLeftRadius","borderBottomRightRadius","borderBottomStyle","borderBottomWidth","borderCollapse","borderColor","borderImage","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeft","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRadius","borderRight","borderRightColor","borderRightStyle","borderRightWidth","borderSpacing","borderStyle","borderTop","borderTopColor","borderTopLeftRadius","borderTopRightRadius","borderTopStyle","borderTopWidth","borderWidth","bottom","boxDecorationBreak","boxShadow","boxSizing","breakAfter","breakBefore","breakInside","captionSide","caretColor","clear","clip","clipPath","color","colorAdjust","colorInterpolation","colorInterpolationFilters","colorRendering","columnCount","columnFill","columnGap","columnRule","columnRuleColor","columnRuleStyle","columnRuleWidth","columnSpan","columnWidth","columns","contain","content","counterIncrement","counterReset","cursor","direction","display","emptyCells","filter","flex","flexBasis","flexDirection","flexFlow","flexGrow","flexShrink","flexWrap","float","font","fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantNumeric","fontVariantPosition","fontWeight","fontVariationSettings","fontSynthesis","forcedColorAdjust","gap","grid","gridArea","gridAutoColumns","gridAutoFlow","gridAutoRows","gridColumn","gridColumnEnd","gridColumnGap","gridColumnStart","gridGap","gridRow","gridRowEnd","gridRowGap","gridRowStart","gridTemplate","gridTemplateAreas","gridTemplateColumns","gridTemplateRows","height","hyphens","imageOrientation","imageRendering","imeMode","inset","insetBlock","insetBlockEnd","insetBlockStart","insetInline","insetInlineEnd","insetInlineStart","initialLetter","isolation","justifyContent","justifyItems","justifySelf","left","letterSpacing","lineBreak","lineClamp","lineHeight","listStyle","listStyleImage","listStylePosition","listStyleType","margin","marginBottom","marginLeft","marginRight","marginTop","marginBlock","marginBlockEnd","marginBlockStart","marginInline","marginInlineEnd","marginInlineStart","mask","maskBorder","maskBorderImage","maskBorderOutset","maskBorderRepeat","maskBorderSlice","maskBorderSource","maskBorderWidth","maskClip","maskComposite","maskImage","maskOrigin","maskPosition","maskRepeat","maskSize","maskType","maxBlockSize","maxHeight","maxInlineSize","maxWidth","minBlockSize","minHeight","minInlineSize","minWidth","mixBlendMode","objectFit","objectPosition","objectViewBox","offset","offsetDistance","offsetPath","offsetRotate","opacity","order","orientation","outline","outlineColor","outlineOffset","outlineStyle","outlineWidth","overflow","overflowAnchor","overflowClip","overflowScrolling","overflowWrap","overflowX","overflowY","padding","paddingBottom","paddingLeft","paddingRight","paddingTop","pageBreakAfter","pageBreakBefore","pageBreakInside","paintOrder","perspective","perspectiveOrigin","placeContent","placeItems","placeSelf","pointerEvents","position","resize","right","rotate","rowGap","scrollBehavior","scrollPadding","scrollSnapAlign","scrollSnapType","scrollbarColor","scrollbarWidth","shapeImageThreshold","shapeMargin","shapeOutside","tabSize","tableLayout","textAlign","textAlignLast","textDecoration","textDecorationColor","textDecorationLine","textDecorationSkipInk","textDecorationStyle","textDecorationThickness","textIndent","textOverflow","textShadow","textTransform","textUnderlineOffset","top","transform","transformOrigin","transformStyle","transition","transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction","translate","translateX","translateY","translateZ","unicodeBidi","userSelect","verticalAlign","visibility","whiteSpace","widows","width","willChange","wordBreak","wordSpacing","wordWrap","writingMode","zIndex"]);N();var gM=/^\[data-theme=(?:"([^"]+)"|'([^']+)')\]$/,mM=(e,t,r)=>{let{context:n}=r;if(!n.designSystem?.media)return;let o=e.slice(1),s=n.designSystem.media[o],i=Kr(t,r);if(!s)return{[e]:i};if(s==="print")return{"@media print":i};if(s[0]==="(")return{[`@media screen and ${s}`]:i};let a=s.match(gM),l=a?a[1]||a[2]:o,c={[`${s} &`]:i};if(l==="dark"||l==="light"){let u=n.designSystem?.scopeSelector||":root",d=u===":root"?":root:not([data-theme])":`${u}:not([data-theme])`;c[`@media (prefers-color-scheme: ${l})`]={[`${d} &`]:i}}return c},UA=(e,t,r)=>({[e]:Kr(t,r)}),oa=(e,t,r)=>{let n=`&${e}`,o=Kr(t,r);if(e.includes(",")&&o){let s={},i={};for(let a in o)typeof o[a]=="object"&&o[a]!==null?i[a]=o[a]:s[a]=o[a];if(Object.keys(i).length){let a=n.split(",").map(c=>c.trim()),l={};Object.keys(s).length&&(l[n]=s);for(let c in i){let u=a.map(d=>`${d} ${c}`).join(", ");l[u]=i[c]}return l}}return{[n]:o}},o0=(e,t)=>{let r=t.context?.cases?.[e];if(r!==void 0)return L(r)?r.call(t,t):!!r},yM=(e,t,r)=>{let n=e.slice(1),o=o0(n,r);if(o===void 0&&(o=!!r[n]),!!o)return Kr(t,r)},bM=(e,t,r)=>({[e]:t}),xM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=o0(n,r);s!==void 0&&(o=s)}if(o)return Kr(t,r)},vM=(e,t,r)=>{let n=e.slice(1),o=r[n]===!0||r.state?.[n];if(!o)if(typeof r[n]=="function")try{o=r[n](r,r.state,r.context)}catch{}else{let s=o0(n,r);s!==void 0&&(o=s)}if(!o)return Kr(t,r)},wM=(e,t)=>Kr(e,t),_M={"@":mM,":":oa,"[":oa,"*":oa,"+":oa,"~":oa,"&":UA,">":UA,$:yM,"-":bM,".":xM,"!":vM},ab=Uo(),SM=(e,t,r)=>{let n=t?.context?.designSystem;n&&dL(n);try{let o={},s={},i=(a,l)=>{if(r.unpack){o={...o,...l};return}o[a]=l};for(let a in e){let l=e[a];if(a==="class"&&t.call("isString",e.class)){let c=l.split(" ");if(c.length){let u=t.context.designSystem.class,d=c.reduce((f,p)=>at(f,u[p]),{});o.designSystemClass=d}}else if(a==="true"){let c=Ne(l,t);at(o,wM(c,t))}else if(t.classlist[a]){let c=t.classlist[a],u=L(c)?c(t,t.state,t.context):c;u&&i(a,u),!ab&&M(o[a])&&(o[a].label=a)}else if(zA[a]){let c=Ne(l,t);W(c)&&(c=c.reduce((d,f)=>at(d,f),{}));let u=zA[a](c,t,t.state,t.context);W(u)&&(u=u.reduce((d,f)=>at(d,f),{})),u&&i(a,u),!ab&&M(o[a])&&(o[a].label=a)}else if(hM.has(a)){let c=Ne(l,t);typeof c=="string"&&c.charCodeAt(0)===45&&c.charCodeAt(1)===45&&(c=`var(${c})`),i(a,{[a]:c}),!ab&&M(o[a])&&(o[a].label=a)}else s[a]=l}return[o,s]}finally{n&&pL()}},kM=(e,t)=>{let r={};for(let n in e){let o=_M[n.slice(0,1)];if(o){let s=o(n,e[n],t);if(s)for(let i in s)Object.prototype.hasOwnProperty.call(s,i)&&(r[i]&&typeof r[i]=="object"&&typeof s[i]=="object"?$n(r[i],s[i]):r[i]=s[i])}}return r},Kr=(e,t,r={unpack:!0})=>{let[n,o]=SM(e,t,r),s=kM(o,t),i=!1;for(let a in s){i=!0;break}if(i){if(r.unpack)return nd(n,s);n._selectors=s}return n};N();N();N();Ya();var q7=new Proxy(Object.create(null),{get(){},has(){return!1}});N();var WA=(e,t)=>{let r=e.call("exec",t,e);if(r)return R(r)&&r.includes("{{")&&(r=e.call("replaceLiteralsWithObjectFields",r)),r};var CM={primary:{"@dark":{color:"white",background:"blue",".color-only":{color:"blue"},".inactive":{background:"gray+16"},".gradient":{color:"white",background:"gradient-blue"}},"@light":{color:"white",background:"gradient-blue",".color-only":{color:"blue"},".gradient":{color:"white",background:"gradient-colorful"}}},secondary:{"@dark":{color:"white",background:"green",".color-only":{color:"green"}},"@light":{color:"white",background:"green",".color-only":{color:"green"}},".child":"--primary"},tertiary:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"}},quaternary:{"@light":{color:"white",background:"gradient-light"},"@dark":{color:"white",background:"gradient-dark-active"}},quinary:{"@dark":{color:"gray=90",background:"gradient-light",":hover":{color:"gray=95",background:"gradient-light-active"},":focus":{color:"gray=120",background:"gradient-light-active"},":active":{color:"gray=120",background:"gradient-light-active"},".active":{color:"gray=120",background:"gradient-light-active"}},"@light":{color:"gray3",background:"gradient-dark",":hover":{color:"gray1",background:"gradient-dark-active"},":active":{color:"gray1",background:"gradient-dark-active"},".active":{color:"gray1",background:"gradient-dark-active"}}}},AM={alert:{"@dark":{color:"white",background:"red"}},warning:{"@dark":{color:"black",background:"yellow"}},success:{"@dark":{color:"black",background:"green"}}},EM={field:{"@light":{color:"black",background:"gray.975+144",borderColor:"gray.975+144","::placeholder":{color:"gray-68"}},"@dark":{color:"white",background:"gray.975-52",borderColor:"gray.975-52","::placeholder":{color:"gray+68"}}},label:{"@dark":{color:"white",background:"gray.92+8"},"@light":{background:"gray.1"},".light":{color:"white",background:"gray3"},".dark":{color:"white",background:"black.35"}},card:{"@light":{background:"gray.975+150"},"@dark":{color:"white",background:"gray.975-56"},".child":{color:"white",background:"gray3"},".secondary":{color:"white",background:"gradient-blue-dark",".child":{color:"white",background:"black.35"}}},dialog:{"@dark":{color:"white",background:"gray.92",".helper":{color:"white",background:"black"}},"@light":{color:"currentColor",background:"gray.1"}}},G7={document:{"@light":{color:"black",background:"white"},"@dark":{color:"white",background:"black"}},...CM,...AM,...EM,none:{color:"none",background:"none"},transparent:{color:"currentColor",background:"transparent"}};var OM={};Y(OM,{A:()=>IR,AssetPicture:()=>kT,Audio:()=>RT,Avatar:()=>QR,B:()=>YT,Block:()=>QO,Box:()=>eR,Br:()=>rR,Button:()=>MR,ButtonSet:()=>zR,COMPONENTS:()=>NM,Caption:()=>VT,Checkbox:()=>gR,CheckboxHgroup:()=>mR,Circle:()=>vT,CircleButton:()=>BR,Clickable:()=>hT,Data:()=>JT,Dialog:()=>HR,DialogFooter:()=>GR,DialogHeader:()=>qR,Dropdown:()=>nP,DropdownList:()=>oP,DropdownParent:()=>sP,DropdownParentFocus:()=>iP,DropdownSiblingFocus:()=>aP,FileIcon:()=>TR,Flex:()=>tT,Focusable:()=>gT,FocusableComponent:()=>mT,Footnote:()=>XT,Form:()=>cT,Grid:()=>nT,Gutter:()=>sT,H1:()=>FT,H2:()=>jT,H3:()=>DT,H4:()=>LT,H5:()=>MT,H6:()=>NT,Headline:()=>GT,Hgroup:()=>aR,HgroupButton:()=>cR,HgroupRows:()=>lR,Hoverable:()=>pT,Hr:()=>tR,I:()=>ZT,Icon:()=>ER,IconButton:()=>UR,IconText:()=>OR,Iframe:()=>fT,Img:()=>aT,Inline:()=>eT,InlineFlex:()=>rT,InlineGrid:()=>oT,Input:()=>fR,Italic:()=>HT,KangorooButton:()=>VR,Li:()=>nR,Link:()=>d0,Notification:()=>cP,NumberInput:()=>pR,Ol:()=>sR,P:()=>BT,Picture:()=>_T,Radio:()=>bR,RadioHgroup:()=>xR,Range:()=>tP,RouteLink:()=>FR,RouterLink:()=>p0,SHAPES:()=>Vf,Select:()=>DR,Shape:()=>i0,Span:()=>IT,SquareButton:()=>NR,Strong:()=>zT,Subhead:()=>KT,Svg:()=>AT,Text:()=>$T,Textarea:()=>kR,TextareaWithButton:()=>CR,Theme:()=>wT,Title:()=>qT,Toggle:()=>wR,ToggleHgroup:()=>_R,Tooltip:()=>XR,TooltipHidden:()=>YR,TooltipParent:()=>ZR,U:()=>UT,Ul:()=>oR,Underline:()=>WT,Video:()=>OT,depth:()=>s0,getSystemGlobalTheme:()=>zf});var JO={};Y(JO,{Block:()=>QO,Flex:()=>tT,Grid:()=>nT,Gutter:()=>sT,Inline:()=>eT,InlineFlex:()=>rT,InlineGrid:()=>oT});var QO={display:"block"},eT={display:"inline"},tT={display:"flex"},rT={display:"inline-flex"},nT={display:"grid"},oT={display:"inline-grid"},sT={boxSize:"C1"},iT={};Y(iT,{Img:()=>aT});N();var aT={tag:"img",attr:{title:e=>e.title||e.alt,src:e=>{let t=Qt(e);return t&&t.src||e.src},srcset:e=>{let t=Qt(e);return(t?pd(t):"")||e.srcset}}},lT={};Y(lT,{Form:()=>cT});var cT={tag:"form"},uT={};Y(uT,{Iframe:()=>fT});var fT={tag:"iframe",position:"relative",minWidth:"G",minHeight:"G"},dT={};Y(dT,{Clickable:()=>hT,Focusable:()=>gT,FocusableComponent:()=>mT,Hoverable:()=>pT});var TM={appearance:"none",cursor:"pointer",fontFamily:"inherit"},pT={transition:"C defaultBezier",transitionProperty:"opacity, transform",opacity:.85,":hover":{opacity:.9,transform:"scale(1.015)"},":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1,transform:"scale(1.015)",":hover":{opacity:1}}},hT={extends:"Hoverable",":active":{opacity:1,transform:"scale(1.015)"},".active":{opacity:1}},gT={border:"none",outline:"solid 0 blue.3",":focus-visible":{opacity:1,outline:"solid X blue.3"},attr:{tabIndex:e=>e.tabIndex}},mT={extends:"Focusable",tag:"button",fontSize:"A",type:"button",border:"none",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",fontFamily:"inherit",style:TM},yT={};Y(yT,{Picture:()=>_T});var bT={};Y(bT,{Theme:()=>wT,getSystemGlobalTheme:()=>zf});var xT={};Y(xT,{Circle:()=>vT,SHAPES:()=>Vf,Shape:()=>i0,default:()=>RM,depth:()=>s0});N();var wt=H(),s0={4:{boxShadow:`rgba(0,0,0,.10) 0 2${wt.unit.default} 4${wt.unit.default}`},6:{boxShadow:`rgba(0,0,0,.10) 0 3${wt.unit.default} 6${wt.unit.default}`},10:{boxShadow:`rgba(0,0,0,.10) 0 4${wt.unit.default} 10${wt.unit.default}`},16:{boxShadow:`rgba(0,0,0,.10) 0 8${wt.unit.default} 16${wt.unit.default}`},26:{boxShadow:`rgba(0,0,0,.10) 0 14${wt.unit.default} 26${wt.unit.default}`},42:{boxShadow:`rgba(0,0,0,.10) 0 20${wt.unit.default} 42${wt.unit.default}`}},Io=e=>Pe(e.shapeDirectionColor)||Pe(e.borderColor)||Pe(e.backgroundColor)||Pe(e.background),Nu=e=>{let t=ZO.transition(e.transition,e);return t&&t.transition},Vf={rectangle:{},circle:{borderRadius:"100%"},bubble:{},tv:{borderRadius:"1.15em/2.5em"},tooltip:e=>({position:e.position||"relative","&:before":{content:'""',display:"block",width:"0px",height:"0px",border:".35em solid",borderColor:Io(e),transition:Nu(e),transitionProperty:"border-color",position:"absolute",borderRadius:".15em"}}),tooltipDirection:{top:{"&:before":{top:"0",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},right:{"&:before":{top:"50%",right:"0",transform:"translate(50%, -50%) rotate(45deg)"}},bottom:{"&:before":{bottom:"0",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},left:{"&:before":{top:"50%",left:"0",transform:"translate(-50%, -50%) rotate(45deg)"}}},tag:e=>({position:"relative","&:before":{content:'""',display:"block",background:Io(e),transition:Nu(e),transitionProperty:"background",borderRadius:".25em",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%"}}),tagDirection:{top:{"&:before":{bottom:"100%",left:"50%",transform:"translate(-50%, 50%) rotate(45deg)"}},right:{"&:before":{top:"50%",left:"100%",transform:"translate(-50%, -50%) rotate(45deg)"}},bottom:{"&:before":{top:"100%",left:"50%",transform:"translate(-50%, -50%) rotate(45deg)"}},left:{"&:before":{top:"50%",right:"100%",transform:"translate(50%, -50%) rotate(45deg)"}}},hexagon:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",borderRadius:".25em",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",height:"73%",background:Io(e),transition:Nu(e),transitionProperty:"background"},"&:before":{left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"},"&:after":{left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}),chevron:e=>({position:"relative","&:before, &:after":{content:'""',display:"block",position:"absolute",zIndex:"-1",aspectRatio:"1/1",top:"50%",transformOrigin:"50% 50%",transition:Nu(e),transitionProperty:"background"},"&:before":{background:`linear-gradient(225deg, ${Io(e)} 25%, transparent 25%), linear-gradient(315deg, ${Io(e)} 25%, transparent 25%)`},"&:after":{background:Io(e),borderRadius:".25em"}}),chevronDirection:{left:{"&:before":{height:"100%",left:"100%",transform:"translate3d(-1%, -50%, 1px) scale(-1, 1)"},"&:after":{height:"73%",left:"0",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}},right:{"&:before":{height:"100%",left:"0",transform:"translate3d(-99%, -50%, 1px)"},"&:after":{height:"73%",left:"100%",transform:"translate3d(-50%, -50%, 1px) rotate(45deg)"}}}},i0={deps:{exec:Ne,getSpacingBasedOnRatio:Ho,getMediaColor:_t},classlist:{shape:e=>e.deps.exec(Vf[e.shape],e),shapeDirection:e=>{if(!e.shape||!e.shapeDirection)return;let t=Vf[e.shape+"Direction"];return e.shape&&t?t[e.shapeDirection||"left"]:null},shapeDirectionColor:e=>{let t={borderColor:e.deps.getMediaColor(e.background||e.backgroundColor)};return e.shapeDirection?t:null}}},vT={round:"100%"},RM=i0;N();var zf=({context:e,state:t})=>{let r=t&&t.root,n=r&&r.globalTheme||e.designSystem&&e.designSystem.globalTheme;return n==="auto"?null:n},wT={deps:{depth:s0},classlist:{depth:e=>!Bt(e.depth)&&e.deps.depth[e.depth]}},_T={deps:{getSystemGlobalTheme:zf},tag:"picture",childExtends:{deps:{getSystemGlobalTheme:zf},tag:"source",attr:{media:e=>{let{key:t,context:r,deps:n}=e,{media:o}=r.designSystem,s=n.getSystemGlobalTheme(e),i=(e.media||t).slice(1);return i===s?"(min-width: 0px)":i==="dark"||i==="light"?"(max-width: 0px)":o[i]}}},Img:{width:"inherit",ignoreChildExtends:!0,height:"inherit",src:(e,t)=>e.parent?.src||t.src}},ST={};Y(ST,{AssetPicture:()=>kT});N();var kT={tag:"picture",children:e=>{let t=Qt(e);if(t)return hd(t,e.alt)}},CT={};Y(CT,{Svg:()=>AT});var AT={tag:"svg",attr:{xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink"},html:e=>{let{context:t}=e;if(e.semanticIcons)return;if(e.html&&typeof e.html!="function")return e.call("exec",e.html,e);let{designSystem:r,utils:n}=t,o=r&&r.svg,s=e.spriteId||r&&r.useSvgSprite,i=e.call("exec",e.src,e);if(!s&&i)return i;let a=f=>`<use xlink:href="#${f}" />`,l=e.spriteId;if(l)return a(l);if(o&&o[i])return a(i);let c=Symbol.for(i),u=o[c];if(u&&o[u])return a(u);if(!i)return a("");if(typeof i=="string"&&!i.includes("<"))return typeof console<"u"&&console.warn&&console.warn(`[Svg] Unknown sprite symbol "${i}" \u2014 not registered in design-system sprite. Set the icon name to one that exists in designSystem.icons / context.svg, or register the SVG body via utils.init({ svg: { '${i}': '<svg>...</svg>' } }).`),a("");let d=0;for(let f=0;f<i.length;f++)d=(d<<5)-d+i.charCodeAt(f)|0;return u=o[c]=`svg-${(d>>>0).toString(36)}`,n.init({svg:{[u]:i}},{document:t.document,emotion:t.emotion}),a(u)}},ET={};Y(ET,{Video:()=>OT});N();var OT={tag:"video",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},TT={};Y(TT,{Audio:()=>RT});N();var RT={tag:"audio",controls:!0,attr:{src:e=>{let t=Qt(e);return t&&t.src||e.src}},children:e=>{let t=Qt(e);if(!(!t||!Array.isArray(t.variants)||!t.variants.length))return t.variants.map(r=>({tag:"source",attr:{src:r.src,type:r.format}}))},childExtends:{tag:"source"}},PT={};Y(PT,{B:()=>YT,Caption:()=>VT,Data:()=>JT,Footnote:()=>XT,H1:()=>FT,H2:()=>jT,H3:()=>DT,H4:()=>LT,H5:()=>MT,H6:()=>NT,Headline:()=>GT,I:()=>ZT,Italic:()=>HT,P:()=>BT,Span:()=>IT,Strong:()=>zT,Subhead:()=>KT,Text:()=>$T,Title:()=>qT,U:()=>UT,Underline:()=>WT});var $T={},IT={tag:"span"},FT={tag:"h1"},jT={tag:"h2"},DT={tag:"h3"},LT={tag:"h4"},MT={tag:"h5"},NT={tag:"h6"},BT={tag:"p"},VT={tag:"caption"},zT={tag:"strong",fontWeight:"700"},UT={tag:"u"},WT={tag:"u"},HT={tag:"i"},qT={},GT={tag:"h6",fontSize:"B",fontWeight:500},KT={tag:"span",fontSize:"Z1"},XT={tag:"span",fontSize:"Z"},YT={tag:"b"},ZT={tag:"i"},JT={tag:"data"},QT={};Y(QT,{Box:()=>eR,Br:()=>rR,Hr:()=>tR,Li:()=>nR,Ol:()=>sR,Ul:()=>oR});var PM=e=>{if(!e.context)return;let{props:t,__ref:r}=e,n=Kr(t,e,{unpack:!1});r.__class=n},eR={extends:["Shape","Theme"],boxSizing:"border-box",onBeforeClassAssign:PM},tR={tag:"hr",margin:"C1 0"},rR={tag:"br"},nR={tag:"li"},oR={tag:"ul",childExtends:{extends:"Li"}},sR={tag:"ol",childExtends:{extends:"Li"}},iR={};Y(iR,{Hgroup:()=>aR,HgroupButton:()=>cR,HgroupRows:()=>lR});var HA=e=>{if(e.text!=null||e.html!=null)return!0;for(let t in e){let r=t.charCodeAt(0);if(r>=65&&r<=90)return!0}return!1},aR={display:"flex",tag:"hgroup",flow:"y",gap:"Y2",H:{if:HA,color:"title",tag:"h3",lineHeight:"1em",margin:"0"},P:{if:HA,margin:"0",color:"paragraph"}},lR={extends:"Hgroup",H:{display:"flex",color:"title",align:"center space-between"},P:{color:"paragraph",align:"center space-between"}},cR={extends:"HgroupRows",H:{justifyContent:"space-between",Span:{},Button:{background:"transparent",color:"currentColor",padding:"0",Icon:{name:"x",fontSize:"C"}}},P:{}},uR={};Y(uR,{Input:()=>fR});var fR={extends:["Focusable"],tag:"input",border:"none",type:"input",theme:"field",fontSize:"A",round:"C",lineHeight:"1",padding:"Z2 B",attr:{pattern:e=>e.pattern,minLength:e=>e.minlength,maxLength:e=>e.maxlength,name:e=>e.name,autocomplete:e=>e.autocomplete,placeholder:e=>e.placeholder,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t},checked:e=>e.call("exec",e.checked,e),disabled:e=>e.disabled||null,readonly:e=>e.readonly,required:e=>e.required,type:e=>e.type}},dR={};Y(dR,{NumberInput:()=>pR});var pR={extends:["Flex","Input"],type:"number",boxSize:"C+X",align:"center center",textAlign:"center",round:"Y1",theme:"transparent",border:"solid gray3",borderWidth:"1px",placeholder:"0",fontWeight:"400","::-webkit-inner-spin-button":{appearance:"none"},attr:{step:e=>e.step,min:e=>e.min,max:e=>e.max}},hR={};Y(hR,{Checkbox:()=>gR,CheckboxHgroup:()=>mR});var gR={extends:"Focusable",tag:"label",boxSize:"fit-content fit-content",cursor:"pointer",round:"Y",Input:{type:"checkbox",display:"none",":checked + div":{theme:"primary"},":checked + div > svg":{transform:"none",opacity:"1"},attr:{checked:e=>e.call("exec",e.parent.checked)}},Flex:{align:"center center",fontSize:"B1",padding:"V",theme:"field",round:"X2",transition:"background A defaultBezier",Icon:{icon:"check",opacity:"0",transform:"scale(0.9) rotate(-15deg)",transition:"opacity B defaultBezier"}}},mR={display:"flex",tag:"label",boxSize:"fit-content",align:"flex-start flex-start",gap:"A",Checkbox:{tag:"div"},HgroupRows:{gap:"Z1",margin:"Y - - -"}},yR={};Y(yR,{Radio:()=>bR,RadioHgroup:()=>xR});var bR={extends:"Checkbox",Input:{type:"radio",":checked + div:after":{opacity:"1"}},Flex:{round:"100%",padding:"Y",":after":{content:'""',display:"block",boxSize:"X+W1",round:"100%",background:"white",opacity:"0",transition:"opacity .15s ease-in-out"},Icon:null}},xR={extends:"CheckboxHgroup",Checkbox:null,Radio:{}},vR={};Y(vR,{Toggle:()=>wR,ToggleHgroup:()=>_R});var wR={extends:"Checkbox",Input:{":checked + div":{background:"green2+8",justifyContent:"flex-end"}},Flex:{boxSize:"A1 B1",padding:"- W_default",round:"D",align:"center flex-start",theme:"field",border:"none",transition:"opacity .15s ease",":after":{content:'""',boxSize:"A A",round:"100%",background:"white",boxShadow:"gray.2 1px 1px Z"},Icon:null}},_R={extends:"CheckboxHgroup",Checkbox:null,Toggle:{}},SR={};Y(SR,{Textarea:()=>kR,TextareaWithButton:()=>CR});var kR={tag:"textarea",extends:["Input","Flex"],fontfamily:"Avenir",placeholder:"Leave us a message...",padding:"A",theme:"field",border:"none",minHeight:"E_default",width:"100%",height:"E1_default",fontFamily:"inherit",round:"Z2",lineHeight:1.4,".outlined":{borderWidth:"1px",borderStyle:"solid"}},CR={display:"flex",gap:"Y2",Textarea:{height:"C2+W",minWidth:"H",padding:"A",fontSize:"Z1",round:"Z2",minHeight:"fit-content"},SquareButton:{background:"blue",Icon:{name:"send"}}},AR={};Y(AR,{FileIcon:()=>TR,Icon:()=>ER,IconText:()=>OR});var ER={extends:"Svg",width:"A",height:"A",display:"inline-block",style:{fill:"currentColor","*":{fill:"currentColor"}},onInit:(e,t,r)=>{let{parent:n}=e,{icons:o,useIconSprite:s,verbose:i}=r&&r.designSystem,{toCamelCase:a}=r&&r.utils,l=x=>{let w=x[".isActive"];if(w)return x.call("exec",w.name||w.icon)},c=(x,w,k)=>{let{semanticIcons:E}=k&&k.designSystem,{toCamelCase:F}=k&&k.utils,_=u(x,w),$=F(_).split(/([a-z])([A-Z])/g),q=$[1]?$[0]:_.split(".")[0].split(" ")[0],te=E&&E[q];if(te){let j=_.includes(".")?"sfsymbols."+_.split(".").slice(1).join("."):"sfsymbols";return _=te[j]||te[_.split(".")[0].split(" ")[0]],{tag:"span",semanticIcons:!0,width:"A",height:"A",lineHeight:"1em",":after":{fontSize:"Z",fontWeight:"300",content:`"${_}"`,textAlign:"center",display:"inline-block",style:{color:"currentColor",fontFamily:"'SF Pro Icons', 'SF Pro', 'SF Symbols', 'Segoe UI'"}}}}},u=(x,w)=>{let{key:k}=x,E=x.call("exec",x.name||x.icon||k,x);return x.call("isString",E)&&E.includes("{{")&&(E=x.call("replaceLiteralsWithObjectFields",E)),x.call("isString",E)?E:k},d=u(e,t);if(d.includes(" ")){let x=d.split(" ");d=x[0]+x.slice(1).map(w=>w.charAt(0).toUpperCase()+w.slice(1)).join("")}let f=a(d),p=f.split(/([a-z])([A-Z])/g),h=c(e,t,r);if(h){Object.assign(e,h);return}let g;e.isActive&&(g=l(e));let m=n[".isActive"];n&&n.isActive&&m&&m.icon&&(g=e.call("exec",m.icon||m.Icon.name||m.Icon.icon,e)),e.call("isString",g)&&g.includes("{{")&&(g=e.call("replaceLiteralsWithObjectFields",g));let y;o[g]&&(y=g),o[f]?y=f:o[p[0]+p[1]]?y=p[0]+p[1]:o[p[0]]?y=p[0]:i&&e.warn("Can't find icon:",d,y);let b=o[y],v=n&&n.src||e.src;Object.assign(e,{spriteId:s&&y,src:b||v||o.noIcon})},attr:{viewBox:"0 0 24 24"}},OR={display:"flex",align:"center center",lineHeight:1,".reversed":{flow:"row-reverse"},".vertical":{flow:"column"},Icon:{if:e=>{let{parent:t}=e;return e.call("exec",t.icon||e.name||e.sfSymbols||t.sfSymbols,e)},icon:e=>e.call("exec",e.parent.icon,e.parent)},text:e=>e.text},TR={display:"flex",theme:"tertiary",boxSize:"C1",align:"center center",round:"Z2",Icon:{fontSize:"B",margin:"auto",icon:"file"}},RR={};Y(RR,{A:()=>IR,Link:()=>d0,RouteLink:()=>FR,RouterLink:()=>p0});var $M={};Y($M,{default:()=>LM,getActiveRoute:()=>f0,lastLevel:()=>vd,lastPathname:()=>Uf,matchRoute:()=>l0,parseQuery:()=>c0,parseRoutePattern:()=>a0,router:()=>Ko,runGuards:()=>u0});N();var PR=/^:(.+)/,$R=/^\*$/,qA=new Map,a0=e=>{let t=qA.get(e);if(t)return t;let r=e.replace(/^\//,"").split("/"),n=[],o=!1;for(let i=0;i<r.length;i++){let a=r[i].match(PR);a?n.push({index:i,name:a[1]}):$R.test(r[i])&&(o=!0)}let s={segments:r,params:n,hasWildcard:o,pattern:e};return qA.set(e,s),s},l0=(e,t,r=0)=>{let n=e.replace(/^\//,"").split("/").filter(Boolean).slice(r),o="/"+(n[0]||"");if(!t)return{key:null,content:null,params:{},routePath:o};let s=null,i=-1,a={};for(let l in t){if(l==="/*")continue;let c=a0(l),u=IM(n,c);u>i&&(i=u,s=l,a=FM(n,c))}return!s&&t["/*"]&&(s="/*"),{key:s,content:s?t[s]:null,params:a,routePath:o}},IM=(e,t)=>{let{segments:r,hasWildcard:n}=t;if(!n&&r.length!==e.length&&r.length!==1&&r.length>e.length)return-1;let o=0,s=Math.min(r.length,e.length);for(let i=0;i<s;i++)if(r[i]===e[i])o+=3;else if(PR.test(r[i]))o+=1;else if($R.test(r[i]))o+=.5;else return-1;return o},FM=(e,t)=>{let r={};for(let{index:n,name:o}of t.params)e[n]&&(r[o]=decodeURIComponent(e[n]));return r},c0=e=>{if(!e||e==="?")return{};let t={};return new URLSearchParams(e).forEach((r,n)=>{t[n]!==void 0?(Array.isArray(t[n])||(t[n]=[t[n]]),t[n].push(r)):t[n]=r}),t},u0=async(e,t)=>{if(!e||!e.length)return!0;for(let r of e){let n=await r(t);if(n===!1)return!1;if(typeof n=="string")return n}return!0},f0=(e=0,t)=>{t||(t=typeof ie<"u"?ie.location.pathname:"/");let r=t.split("/")[e+1];if(r)return`/${r}`},Uf,vd=0,jM=e=>!e||e==="srcdoc"||e==="about:srcdoc"?"/":e,DM={level:vd,pushState:!0,initialRender:!1,scrollToTop:!0,scrollToNode:!1,scrollNode:be&&be.documentElement,scrollBody:!1,useFragment:!1,updateState:!0,scrollToOffset:0,contentElementKey:"content",scrollToOptions:{behavior:"smooth"},useParamsMatching:!0},Ko=async(e,t,r={},n={})=>{let o=t||void 0,s=o?.context?.window||ie,i=o?.context?.document||be,a={...DM,...o.context.routerOptions,...n};vd=a.lastLevel;let l=o.__ref;(a.contentElementKey!=="content"&&a.contentElementKey!==l.contentElementKey||!l.contentElementKey)&&(l.contentElementKey=a.contentElementKey||"content");let c=l.contentElementKey||a.contentElementKey||"content",u=s.location.origin!=="null"?s.location.origin:"http://localhost";e=jM(e);let d=typeof s.URL=="function"?s.URL:typeof globalThis<"u"&&globalThis.URL||URL,f=new d(u+e),{pathname:p,search:h,hash:g}=f,m=c0(h),y=o.node,b=g&&g!==s.location.hash.slice(1),v=p!==Uf;Uf=p;let x,w,k,E;if(a.useParamsMatching){let _=l0(p,o.routes,a.level);x=_.key,w=_.routePath,k=_.content,E=_.params}else{x=f0(a.level,p),w=x;let _=o.routes;k=_?_[x||"/"]||_["/*"]:null,E={}}let F=a.scrollToNode?y:a.scrollNode;if(o.state?.root?.debugging){o.state.root.debugging=!1;return}if(!k){a.onNotFound?a.onNotFound({pathname:p,route:x,element:o}):a.silent||console.warn("[smbls/router] no content matched for path",p,"\u2014 available routes:",Object.keys(o.routes||{}));return}if(a.guards&&a.guards.length){let _={pathname:p,route:x,params:E,query:m,hash:g,element:o,state:r},$=await u0(a.guards,_);if($===!1)return;if(typeof $=="string")return Ko($,t,r,{...n,guards:[]})}if(a.pushState)try{s.history.pushState(r,null,p+(h||"")+(g||""))}catch{}if(v||!b){let _={route:x,routePath:w,hash:g,debugging:!1};Object.keys(E).length&&(_.params=E),Object.keys(m).length&&(_.query=m),a.updateState&&o.state.update(_,{preventContentUpdate:!0}),c&&a.removeOldElement&&o[c].remove();let $=o.__ref?.origin?.content,q={};if($)for(let j in $){let I=$[j];j==="__ref"||j==="props"||j==="node"||j==="parent"||j==="key"||(typeof I=="string"||typeof I=="number"||typeof I=="boolean"||typeof I=="object"&&I!==null&&!I.node&&!I.__ref)&&(q[j]=I)}let te={...q,...typeof k=="object"?k:{extends:k}};a.useFragment&&(te.tag="fragment");try{o.set(te,{contentElementKey:c})}catch(j){console.error("[smbls/router] failed to render route content",p,j)}}if(a.scrollToTop&&F?.scrollTo&&F.scrollTo({...a.scrollToOptions||{},top:0,left:0}),a.scrollToNode&&k[c]?.node?.scrollTo&&k[c].node.scrollTo({...a.scrollToOptions||{},top:0,left:0}),g){let _=i.getElementById(g);if(_&&F?.scrollTo){let $=_.getBoundingClientRect().top+y.scrollTop-(a.scrollToOffset||0);F.scrollTo({...a.scrollToOptions||{},top:$,left:0})}}Wo("routeChanged",o,a)},LM=Ko,MM=(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}},d0={extends:"Focusable",tag:"a",aria:{},fontWeight:"bold",textDecoration:"none",color:"currentColor",draggable:!1,attr:{href:e=>WA(e,e.href)||WA(e,e.call("exec",e,e).href),"aria-label":e=>e.aria?e.aria.label:e.text},onClick:MM},IR={extends:"Link"},p0={onClick:(e,t,r)=>{let{context:n}=t,{href:o,scrollToTop:s,stopPropagation:i}=t,a=t.call("exec",o,t);if(t.call("isString",a)&&a.includes("{{")&&(a=t.call("replaceLiteralsWithObjectFields",a)),i&&e.stopPropagation(),!a)return;let{utils:l,snippets:c,functions:u,routerOptions:d}=n,f=t.__ref.root,p=a.startsWith("http://")||a.startsWith("https://")||a.startsWith("mailto:")||a.startsWith("tel:")||a.startsWith("sketch:")||a.startsWith("whatsapp:")||a.startsWith("sms:")||a.startsWith("skype:")||a.startsWith("viber:")||a.startsWith("callto:")||a.startsWith("facetime:")||a.startsWith("facetime-audio:")||a.startsWith("geo:")||a.startsWith("maps:");if(a&&!p){e.preventDefault();try{let h=f;if(d&&d.customRouterElement){let g=Array.isArray(d.customRouterElement)?d.customRouterElement:d.customRouterElement.split("."),m=f;for(let y of g){if(!m||!m[y]){m=null;break}m=m[y]}m&&(h=m,f.routes&&(h.routes=f.routes))}(u.router||c.router||l.router||Ko)(a,h,{},{scrollToOptions:{behaviour:"instant"},scrollToTop:t.call("isDefined",s)?s:!0,...d,...t.routerOptions})}catch(h){console.warn(h)}}}},FR={extends:[d0,p0]},jR={};Y(jR,{Select:()=>DR});var DR={extends:"Focusable",tag:"select",fontSize:"A",border:"none",boxSizing:"border-box",theme:"field",cursor:"pointer",childProps:{tag:"option",attr:{value:e=>e.value,selected:e=>e.selected,disabled:e=>e.disabled}},attr:{name:e=>e.name,disabled:e=>e.disabled,value:e=>{if(!e.value)return;let t=e.call("exec",e.value,e);return e.call("isString",t)&&t.includes("{{")?e.call("replaceLiteralsWithObjectFields",t):t}}},LR={};Y(LR,{Button:()=>MR,ButtonSet:()=>zR,CircleButton:()=>BR,IconButton:()=>UR,KangorooButton:()=>VR,SquareButton:()=>NR});var MR={extends:["IconText","FocusableComponent"],tag:"button",fontSize:"A",type:"button",borderStyle:"none",display:"inline-flex",align:"center center",textDecoration:"none",lineHeight:"1",whiteSpace:"nowrap",padding:"Z B2",fontWeight:"500",fontFamily:"inherit",round:"C2",disabled:e=>e.call("exec",e.disabled)},NR={extends:"Button",fontSize:"A",width:"A",padding:"Z",aspectRatio:"1 / 1",icon:"smile",boxSize:"fit-content fit-content",justifyContent:"center",round:"Z2",boxSizing:"content-box"},BR={extends:"SquareButton",round:"C"},VR={extends:"Button",childExtends:"IconText"},zR={tag:"nav",display:"flex",childExtends:"SquareButton"},UR={extends:["SquareButton","ClickableItem"],round:"Z"},WR={};Y(WR,{Dialog:()=>HR,DialogFooter:()=>GR,DialogHeader:()=>qR});var HR={display:"flex",tag:"dialog",flow:"column",border:"0",theme:"dialog",round:"Z2"},qR={extends:"Hgroup",minWidth:"100%",gap:"A",Title:{align:"center space-between",Text:{text:"Title"},SquareButton:{icon:"x",theme:"transparent"}},Paragraph:{color:"caption"}},GR={display:"flex",align:"center flex-end",gap:"X2",margin:"auto - -",padding:"Y2 X2",childExtends:{extends:"Button",textTransform:"uppercase",background:"transparent","@dark":{theme:"primary @dark .color-only"},"@light":{theme:"primary @light .color-only"},"&":{padding:"Z A"},":hover":{theme:"tertiary"},":active":{background:"white.1"}},Cancel:{text:"cancel"},Ok:{text:"ok"}},KR={};Y(KR,{Tooltip:()=>XR,TooltipHidden:()=>YR,TooltipParent:()=>ZR});N();var XR={display:"flex",theme:"dialog",background:"black",flow:"column",shape:"tooltip",shapeDirection:"left",padding:"Z1 A",round:"Y2",width:"fit-content",minWidth:"D2",maxWidth:"F2",gap:"X",textAlign:"center",attr:{tooltip:!0},Title:{if:e=>zo(e.parent.title)||e.parent.title,width:"fit-content",fontWeight:500,color:"gray12",text:e=>e.parent.title},P:{if:(e,t)=>e.call("isDefined",e.call("exec",e.parent.description,e))||e.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"gray6",fontWeight:"400",text:(e,t)=>e.call("exec",e.parent.description,e)}},YR={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:e=>{let t=!e.shapeDirection||e.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:e.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(e,t)}},ZR={position:"relative",zIndex:999,onInit:e=>{let{Tooltip:t,TooltipHidden:r}=e,n=t||r;if(!n)return;let o=n&&n[".isActive"];Object.assign(e,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})}},JR={};Y(JR,{Avatar:()=>QR});var QR={extends:"Img",display:"block",avatarType:"adventurer-neutral",borderRadius:"100%",boxSize:"C+X C+X",src:e=>`https://api.dicebear.com/7.x/${e.avatarType||"initials"}/svg?seed=${e.key||"no-avatar"}`},eP={};Y(eP,{Range:()=>tP});var tP={tag:"input",appearance:"none",width:"100%",height:"2px",outline:"none",flex:1,onInput:(e,t,r)=>{t.call("isFunction",t.onInput)?t.onInput(e,t,r):r.update({value:parseFloat(t.node.value)})},onChange:(e,t,r)=>{t.call("isFunction",t.onChange)?t.onChange(e,t,r):r.update({value:parseFloat(t.node.value)})},"::-webkit-slider-thumb":{boxSizing:"content-box",width:"8px",height:"8px",borderWidth:"2px",borderStyle:"solid",borderRadius:"100%",opacity:".8",appearance:"none"},"::-webkit-slider-runnable-track":{},"@dark":{background:"white.2","::-webkit-slider-thumb":{background:"#232526",borderColor:xb("#454646",.75)},":hover":{"::-webkit-slider-thumb":{borderColor:xb("#fff",.35)}},":focus":{"::-webkit-slider-thumb":{borderColor:"#3C6AC0"}}},"@light":{background:"gray9","::-webkit-slider-thumb":{background:"white",borderColor:"gray9"},":hover":{"::-webkit-slider-thumb":{borderColor:"gray7"}},":focus":{"::-webkit-slider-thumb":{borderColor:"blue"}}},deps:{returnPropertyValue:(e,t,r)=>{let n=e.call("exec",e[t],e);return(e.call("isFunction",n)?n(e,e.state):n!==void 0?n:r!==void 0?r:0)+""}},attr:{type:"range",value:(e,t)=>e.call("exec",t.value||e.value||e.defaultValue,e),min:(e,t)=>e.deps.returnPropertyValue(e,"min",0),max:(e,t)=>e.deps.returnPropertyValue(e,"max",100),step:(e,t)=>e.deps.returnPropertyValue(e,"step",1)}},rP={};Y(rP,{Dropdown:()=>nP,DropdownList:()=>oP,DropdownParent:()=>sP,DropdownParentFocus:()=>iP,DropdownSiblingFocus:()=>aP});var nP={attr:{dropdown:!0},position:"absolute",top:"100%",left:"0",zIndex:1e3,theme:"quaternary",padding:"Y",round:"Z2",flow:"column",gap:"X",transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},oP={display:"flex",attr:{dropdown:!0},padding:"0 Y",maxHeight:"G",flow:"column",theme:"quaternary",overflow:"hidden auto",style:{listStyleType:"none"},transition:"B defaultBezier",transitionProperty:"transform, opacity, visibility",children:e=>e.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:e,state:t})=>t.active===e,position:"relative",round:"0",align:"center flex-end",flow:"row-reverse",padding:"Z2 C Z2 Y2",margin:"0",gap:"Y2",theme:"quaternary .child",":hover":{style:{svg:{opacity:"0.5"}}},Icon:{isActive:({key:e,state:t})=>t.active===e,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},sP={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},iP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},aP={position:"relative",tabindex:"0",":focus-within":{zIndex:1e3,"& ~ [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}},Input_trigger:{type:"checkbox",opacity:"0",position:"absolute",inset:"0",width:"100%",height:"100%",cursor:"pointer",onClick:(e,t)=>{t.node===document.activeElement&&t.node.blur()}}},lP={};Y(lP,{Notification:()=>cP});var cP={display:"flex",theme:"alert",padding:"Z1 B Z A",round:"A A A Y2",gap:"X2",cursor:"pointer",align:"flex-start center",IconText:{Icon:{name:"info outline"},Text:{":empty":{hide:!0}}},Hgroup:{extends:["Flex","Hgroup"],flow:"y",align:"flex-start",gap:"X2",H:{tag:"h6",margin:"0",fontWeight:"600",lineHeight:"1em",text:"Notification",":empty":{hide:!0}},P:{fontSize:"Z",margin:"0",text:"is not always a distraction",":empty":{hide:!0}}}},NM=Object.assign({},JO,iT,lT,uT,dT,yT,ST,CT,xT,ET,TT,bT,PT,QT,iR,uR,dR,hR,yR,vR,SR,AR,RR,jR,LR,WR,KR,JR,eP,rP,lP);var BM=null;function VM(e){BM=e}N();var zM={};Y(zM,{CDN_PROVIDERS:()=>Mt,DOMQL_EVENTS:()=>nx,DOMQ_PROPERTIES:()=>qo,ENV:()=>wx,HTML_TAGS:()=>Na,METHODS:()=>Da,METHODS_EXL:()=>rd,NODE_ENV:()=>Lt,OPTIONS:()=>ud,PACKAGE_MANAGER_TO_CDN:()=>Df,PARSED_DOMQ_PROPERTIES:()=>td,PROPS_METHODS:()=>Tn,STATE_METHODS:()=>On,STATE_PROPERTIES:()=>rx,SVG_TAGS:()=>Dx,TYPES:()=>fa,UNIVERSAL_RESERVED_KEYS:()=>jf,addCaching:()=>Cf,addContext:()=>kf,addExtend:()=>Vx,addExtends:()=>Qe,addItemAfterEveryElement:()=>Ub,addProtoToArray:()=>Jf,addRef:()=>wf,applyCSS:()=>qM,applyDependentState:()=>iv,applyEvent:()=>Pf,applyEventUpdate:()=>$f,applyExtends:()=>Ux,applyProps:()=>Aa,arrayContainsOtherArray:()=>Db,arraysEqual:()=>Hb,arrayzeValue:()=>Za,buildImgSrcset:()=>pd,buildSourcesAndImg:()=>hd,cache:()=>uv,call:()=>qE,captureSnapshot:()=>yv,checkForStateTypes:()=>rv,checkIfInherits:()=>Rf,checkIfStringIsInArray:()=>Kb,clone:()=>sx,cloneAndMergeArrayExtend:()=>xa,cloneFunction:()=>rE,concatAddExtends:()=>Mx,copyJavaScriptToClipboard:()=>jv,copyStringToClipboard:()=>Fv,createBasedOnType:()=>vf,createElement:()=>tv,createElementExtends:()=>uf,createExtends:()=>ld,createExtendsFromKeys:()=>Ba,createExtendsStack:()=>hf,createIfConditionFlag:()=>Tx,createInheritedState:()=>nv,createKey:()=>id,createNestedObject:()=>px,createNestedObjectByKeyPath:()=>sv,createObjectWithoutPrototype:()=>nf,createParent:()=>_f,createPath:()=>Sf,createProps:()=>cd,createPropsStack:()=>bf,createRoot:()=>ev,createScope:()=>lv,createSnapshotId:()=>sd,customDecodeURIComponent:()=>tx,customEncodeURIComponent:()=>ex,cutArrayAfterValue:()=>Vb,cutArrayBeforeValue:()=>Bb,debounce:()=>tE,debounceOnContext:()=>Ax,decodeNewlines:()=>Qb,deepClone:()=>et,deepContains:()=>fx,deepDefaults:()=>Ea,deepDestringifyFunctions:()=>ha,deepExtend:()=>cf,deepMerge:()=>tr,deepMergeExtends:()=>Zt,deepStringifyFunctions:()=>da,defineSetter:()=>mv,destringifyGlobalScope:()=>ix,detectHeightOnInit:()=>_v,detectInfiniteLoop:()=>yx,document:()=>be,encodeNewlines:()=>Jb,error:()=>Ff,excludeKeysFromObject:()=>xx,exec:()=>Ne,extendCachedRegistry:()=>Nx,extendStackRegistry:()=>ma,extractArrayExtend:()=>ba,fetchLibraryData:()=>$v,fibonacciNumberByIndex:()=>Sv,filterArrays:()=>qb,filterArraysFast:()=>Gb,finalizeExtends:()=>gf,findClosestNumber:()=>Mf,findClosestNumberInFactory:()=>Pv,findInheritedState:()=>Tf,findKeyPosition:()=>Yb,flattenExtend:()=>Lo,formatDate:()=>wv,generateHash:()=>sf,generateKey:()=>ga,generateMetaTags:()=>Rv,get:()=>PE,getActiveRoute:()=>f0,getCDNUrl:()=>Lf,getCapitalCaseKeys:()=>iE,getCdnProviderFromConfig:()=>xv,getChildStateInKey:()=>Of,getChildren:()=>FE,getContext:()=>BE,getCookie:()=>Fx,getDB:()=>GE,getEmotionStylesheet:()=>Nv,getExtendsInElement:()=>zx,getExtendsStack:()=>wa,getExtendsStackRegistry:()=>lf,getFrequencyInArray:()=>Lb,getHashedExtend:()=>ya,getImportMapScript:()=>vv,getInObjectByPath:()=>mx,getLocalStorage:()=>nE,getNev:()=>Cx,getPageMetadata:()=>eO,getParentStateInKey:()=>Ef,getPath:()=>jE,getQuery:()=>KE,getRef:()=>IE,getRoot:()=>LE,getRootContext:()=>NE,getRootData:()=>ME,getRootState:()=>DE,getRootStateInKey:()=>Af,getSpreadChildren:()=>aE,global:()=>Ib,hasFunction:()=>Do,hasHandlerPlugin:()=>Xa,hasOwnProperty:()=>lx,inheritChildExtends:()=>df,inheritChildPropsExtends:()=>ff,inheritParentProps:()=>Sa,inheritRecursiveChildExtends:()=>pf,init:()=>wd,initProps:()=>Jx,is:()=>Jt,isArray:()=>W,isBoolean:()=>Ju,isContextComponent:()=>lE,isCyclic:()=>bx,isDOMNode:()=>it,isDate:()=>ef,isDefined:()=>zo,isDevelopment:()=>ad,isEmpty:()=>tf,isEmptyObject:()=>cx,isEqualDeep:()=>rf,isFunction:()=>L,isHtmlElement:()=>Kf,isLocal:()=>kx,isMethod:()=>XE,isMobile:()=>$x,isNode:()=>Wa,isNot:()=>jb,isNotProduction:()=>Ka,isNull:()=>Qu,isNumber:()=>Pn,isObject:()=>M,isObjectLike:()=>ce,isPhoto:()=>kv,isProduction:()=>Uo,isStaging:()=>Sx,isState:()=>ov,isString:()=>R,isStringFunction:()=>Ox,isTest:()=>of,isTesting:()=>_x,isUndefined:()=>Bt,isUniversallyReservedKey:()=>bv,isValidHtmlTag:()=>Lx,joinArrays:()=>Fa,jointStacks:()=>Bx,keys:()=>dv,lastLevel:()=>vd,lastPathname:()=>Uf,loadCssFile:()=>Ov,loadJavascript:()=>Tv,loadJavascriptFile:()=>Cv,loadJavascriptFileEmbedSync:()=>Ev,loadJavascriptFileSync:()=>Av,loadRemoteCSS:()=>QE,loadRemoteScript:()=>JE,log:()=>VE,logGroupIf:()=>Px,logIf:()=>Rx,lookdown:()=>OE,lookdownAll:()=>TE,lookup:()=>EE,lowercaseFirstLetter:()=>qa,makeObjectWithoutPrototype:()=>ux,map:()=>ox,mapStringsWithContextComponents:()=>va,matchRoute:()=>l0,matchesComponentNaming:()=>En,memoize:()=>Ex,merge:()=>at,mergeSharedLibraries:()=>Iv,nextElement:()=>UE,normalizeLibraryKey:()=>Va,objectToString:()=>pa,objectizeStringProperty:()=>_a,overwrite:()=>nd,overwriteDeep:()=>$n,overwriteShallow:()=>od,overwriteState:()=>av,parse:()=>pv,parseDeep:()=>If,parseQuery:()=>c0,parseRoutePattern:()=>a0,pickupElementFromProps:()=>qx,pickupPropsFromElement:()=>Hx,previousElement:()=>WE,propExists:()=>Zx,propertizeElement:()=>Gx,propertizeUpdate:()=>uE,reinit:()=>HM,remove:()=>RE,removeChars:()=>Dv,removeCookie:()=>jx,removeDuplicateProps:()=>ka,removeDuplicatesInArray:()=>ja,removeFromArray:()=>Mb,removeFromObject:()=>dx,removeNestedKeyByPath:()=>hx,removeValueFromArray:()=>Zf,removeValueFromArrayAll:()=>zb,reorderArrayByValues:()=>Wb,replaceLiteralsWithObjectFields:()=>JA,replaceOctalEscapeSequences:()=>Zb,resolveAsset:()=>Qt,resolveHandler:()=>La,resolveSharedLibraries:()=>rO,returnValueAsText:()=>xf,router:()=>Ko,runGuards:()=>u0,runPluginHook:()=>Ma,scratchSystem:()=>TO,scratchUtils:()=>sO,self:()=>Fb,set:()=>n0,setActiveRootState:()=>gv,setCookie:()=>Ix,setHashedExtend:()=>af,setInObjectByPath:()=>gx,setLocalStorage:()=>oE,setNodeStyles:()=>fv,setProps:()=>$E,setPropsPrototype:()=>mf,spotByPath:()=>AE,srcsetFor:()=>No,stringIncludesAny:()=>Qf,stringToObject:()=>ax,swapItemsInArray:()=>Nb,syncProps:()=>Ca,toCamelCase:()=>fd,toDashCase:()=>dd,toDescriptionCase:()=>Mv,toTitleCase:()=>Lv,toggleFullscreen:()=>ZE,triggerEventOn:()=>Wo,triggerEventOnUpdate:()=>cv,trimStringFromSymbols:()=>Xb,unstackArrayOfObjects:()=>Yf,update:()=>Kx,updateProps:()=>Qx,variables:()=>HE,verbose:()=>hv,warn:()=>zE,window:()=>ie});N();N();var UM=H(),uP=(e=UM,t)=>{let r=M(t.localFile)?t.localFile:{},n=et(r.designSystem||{});return tr(e,n)},WM={useVariable:!0,useReset:!0,useFontImport:!0,useIconSprite:!0,useDocumentTheme:!0,useSvgSprite:!0},wd=(e,t=WM)=>{let r=uP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=t.globalTheme;if(typeof window<"u"&&window.location){let m=new URLSearchParams(window.location.search).get("globalTheme");m&&(s=m)}let i=n0({verbose:t.verbose,useReset:t.useReset,useFontImport:t.useFontImport,useVariable:t.useVariable,useSvgSprite:t.useSvgSprite,useDocumentTheme:t.useDocumentTheme,useIconSprite:t.useIconSprite,useDefaultConfig:t.useDefaultConfig,globalTheme:s,themeRoot:t.themeRoot,files:t.files,assets:t.assets,...r},{newConfig:t.newConfig,config:t.config});i&&(i.scopeSelector=n);let a=gO(i.font,i.files),l=i.useReset,c=i.useVariable,u=i.useFontImport,d=i.useSvgSprite,f=e.svg,p=i.useIconSprite,h=e.icons;if(u&&Vt(a),c&&(Vt({[n]:i.CSS_VARS}),i.CSS_MEDIA_VARS)){let m={};for(let y in i.CSS_MEDIA_VARS)y.startsWith("@media")?m[y]={[o]:i.CSS_MEDIA_VARS[y]}:m[y]=i.CSS_MEDIA_VARS[y];Vt(m)}l&&Vt(i.reset);let g=i.animation;if(g){let m={};for(let y in g)m[`@keyframes ${y}`]=g[y];Vt(m)}return(f||d)&&WO(i.svg,{document:t.document}),(h||p)&&qO(i.icons,{document:t.document}),i},fP={},HM=(e,t=fP)=>{let r=uP(e||{},t),n=t.scopeSelector||":root",o=n===":root"?":root:not([data-theme])":`${n}:not([data-theme])`,s=n0({verbose:!1,...r});if(!t.preventInject){if(Vt({[n]:s.CSS_VARS}),s.CSS_MEDIA_VARS){let i={};for(let a in s.CSS_MEDIA_VARS)a.startsWith("@media")?i[a]={[o]:s.CSS_MEDIA_VARS[a]}:i[a]=s.CSS_MEDIA_VARS[a];Vt(i)}Vt(s.reset)}return s},qM=(e,t=fP)=>{Vt(e)};N();N();var K7=ie&&ie.location?ie.location.host.includes("dev."):ad();N();Mo();var GM={useReset:!0,useVariable:!0,useIconSprite:!0,useSvgSprite:!0,useDocumentTheme:!0,useDefaultIcons:!0,useFontImport:!0,useDefaultConfig:!0},KM={initRouter:!0,popState:!0,injectRouterInLinkComponent:!0},X7={...GM,router:KM};N();N();N();N();Mo();var Wf={attr:"at",childExtends:"cex",childExtendsRecursive:"cexr",childProps:"cp",children:"ch",childrenAs:"cha",class:"cl",content:"cnt",context:"ctx",data:"dt",extends:"ext",hide:"hd",html:"htm",if:"if",ignoreChildExtends:"icex",key:"ky",query:"qy",routes:"rt",scope:"scp",show:"shw",state:"st",style:"sy",tag:"tg",text:"tx",align:"aln",boxSize:"bsz",flow:"fl",heightRange:"hr",horizontalInset:"hi",round:"rnd",shadow:"shd",size:"sz",templateColumns:"tcol",verticalInset:"vi",widthRange:"wr",wrap:"wrp",aspectRatio:"ar",blockSize:"bks",boxSizing:"bxs",height:"h",inlineSize:"ins",margin:"m",marginBottom:"mb",marginLeft:"ml",marginRight:"mr",marginTop:"mt",maxBlockSize:"mxbs",maxHeight:"mxh",maxInlineSize:"mxis",maxWidth:"mxw",minBlockSize:"mnbs",minHeight:"mnh",minInlineSize:"mnis",minWidth:"mnw",padding:"p",paddingBottom:"pb",paddingInline:"pil",paddingLeft:"pl",paddingRight:"pr",paddingTop:"pt",width:"w",alignContent:"ac",alignItems:"ai",alignSelf:"as",flex:"fx",flexBasis:"fxb",flexDirection:"fxd",flexFlow:"fxf",flexGrow:"fxg",flexShrink:"fxs",flexWrap:"fxw",gap:"g",justifyContent:"jc",justifyItems:"ji",justifySelf:"js",order:"od",placeContent:"pcn",placeItems:"pit",placeSelf:"psl",rowGap:"rg",columnGap:"cg",gridArea:"ga",gridAutoColumns:"gac",gridAutoFlow:"gaf",gridAutoRows:"gar",gridColumn:"gc",gridColumnEnd:"gce",gridColumnStart:"gcs",gridRow:"gr",gridRowEnd:"gre",gridRowStart:"grs",gridTemplateAreas:"gta",gridTemplateColumns:"gtc",gridTemplateRows:"gtr",bottom:"bot",float:"flt",inset:"ist",left:"lft",position:"pos",right:"rgt",top:"tp",zIndex:"zi",clear:"clr",contain:"ctn",cursor:"cur",display:"d",opacity:"op",overflow:"ov",overflowX:"ovx",overflowY:"ovy",pointerEvents:"pe",resize:"rsz",userSelect:"us",visibility:"vis",background:"bg",backgroundAttachment:"bga",backgroundBlendMode:"bgbm",backgroundClip:"bgcl",backgroundColor:"bgc",backgroundImage:"bgi",backgroundOrigin:"bgo",backgroundPosition:"bgp",backgroundPositionX:"bgpx",backgroundPositionY:"bgpy",backgroundRepeat:"bgr",backgroundRepeatX:"bgrx",backgroundRepeatY:"bgry",backgroundSize:"bgs",color:"c",theme:"thm",themeModifier:"thmm",border:"bd",borderBottom:"bdb",borderBottomLeftRadius:"bdblr",borderBottomRightRadius:"bdbrr",borderCollapse:"bdcl",borderColor:"bdc",borderImage:"bdi",borderImageOutset:"bdio",borderImageRepeat:"bdir",borderImageSlice:"bdis",borderImageSource:"bdisrc",borderImageWidth:"bdiw",borderLeft:"bdl",borderRadius:"bdr",borderRight:"bdrg",borderSpacing:"bdsp",borderStyle:"bdst",borderTop:"bdt",borderTopLeftRadius:"bdtlr",borderTopRightRadius:"bdtrr",borderWidth:"bdw",outline:"ol",outlineColor:"olc",outlineOffset:"olo",outlineStyle:"ols",outlineWidth:"olw",boxShadow:"bxsh",textShadow:"txsh",direction:"dir",fontDisplay:"fdi",fontFamily:"ff",fontFeatureSettings:"ffs",fontKerning:"fk",fontOpticalSizing:"fos",fontPalette:"fpl",fontSize:"fs",fontSizeAdjust:"fsa",fontSmooth:"fsm",fontStretch:"fsr",fontStyle:"fsy",fontSynthesis:"fsyn",fontVariant:"fv",fontVariationSettings:"fvs",fontWeight:"fw",hyphens:"hyp",letterSpacing:"ls",lineHeight:"lh",tabSize:"tsz",textAlign:"ta",textDecoration:"td",textDecorationColor:"tdc",textDecorationLine:"tdl",textDecorationStyle:"tds",textIndent:"ti",textOverflow:"tov",textStroke:"tsk",textTransform:"tt",unicodeBidi:"ub",verticalAlign:"va",whiteSpace:"ws",wordBreak:"wbr",wordSpacing:"wsp",wordWrap:"wwr",writingMode:"wm",captionSide:"cps",counterIncrement:"ci",counterReset:"cr",emptyCells:"ec",listStyle:"lst",listStyleImage:"lsi",listStylePosition:"lsp",listStyleType:"lsty",quotes:"qt",tableLayout:"tl",columnCount:"cc",columnFill:"cf",columnRule:"crl",columnRuleColor:"crlc",columnRuleStyle:"crls",columnRuleWidth:"crlw",columnSpan:"cspn",columnWidth:"cwi",columns:"col",backdropFilter:"bdf",boxDecorationBreak:"bxdb",clipPath:"cpth",filter:"fil",isolation:"iso",mixBlendMode:"mbm",objectFit:"obf",objectPosition:"obp",perspective:"prs",perspectiveOrigin:"prso",willChange:"wc",transform:"tf",transformOrigin:"tfo",transformStyle:"tfs",transition:"trn",transitionDelay:"trnd",transitionDuration:"trndr",transitionProperty:"trnp",transitionTimingFunction:"trntf",animation:"an",animationDelay:"and",animationDirection:"andr",animationDuration:"andur",animationFillMode:"anfm",animationIterationCount:"anic",animationName:"ann",animationPlayState:"anps",animationTimingFunction:"antf",scrollBehavior:"sb",scrollMargin:"smr",scrollMarginBottom:"smrb",scrollMarginLeft:"smrl",scrollMarginRight:"smrr",scrollMarginTop:"smrt",scrollPadding:"spd",scrollPaddingBottom:"spdb",scrollPaddingLeft:"spdl",scrollPaddingRight:"spdr",scrollPaddingTop:"spdt",scrollSnapAlign:"ssa",scrollSnapStop:"sss",scrollSnapType:"sst",breakAfter:"bka",breakBefore:"bkb",breakInside:"bki",pageBreakAfter:"pbka",pageBreakBefore:"pbkb",pageBreakInside:"pbki",accessKey:"ack",className:"cn",contentEditable:"ced",contextMenu:"cmu",draggable:"drg",hidden:"hid",id:"id",is:"is",lang:"lng",nonce:"nnc",spellCheck:"spc",tabIndex:"tbi",title:"ttl",translate:"trl",accept:"acp",acceptCharset:"accs",action:"act",autoComplete:"atc",autoFocus:"atf",capture:"cap",challenge:"chg",checked:"chk",cols:"cls",colSpan:"csn",controls:"ctl",default:"def",defer:"dfr",disabled:"dis",encType:"ect",form:"frm",formAction:"fac",formEncType:"fect",formMethod:"fme",formNoValidate:"fnv",formTarget:"ftg",high:"hgh",inputMode:"imd",kind:"knd",label:"lbl",list:"lis",loop:"lp",low:"lw",max:"mx",maxLength:"mxl",method:"mtd",min:"mn",minLength:"mnl",multiple:"mul",muted:"mut",name:"nm",open:"opn",optimum:"opt",pattern:"ptn",placeholder:"phd",readOnly:"ro",required:"req",reversed:"rev",rows:"rws",rowSpan:"rsn",selected:"sel",span:"spn",start:"srt",step:"stp",type:"typ",value:"val",download:"dl",href:"hrf",hrefLang:"hrl",ping:"png",referrerPolicy:"rfp",rel:"rl",target:"tgt",allow:"alw",allowFullScreen:"afs",allowPaymentRequest:"apr",alt:"alt",cellPadding:"cpg",cellSpacing:"csg",cite:"cit",coords:"crd",crossOrigin:"cor",dateTime:"dtm",fetchPriority:"fpr",headers:"hds",httpEquiv:"hte",integrity:"itg",isMap:"ism",keyType:"kty",loading:"ldg",manifest:"mft",media:"mda",poster:"pst",preload:"prl",radioGroup:"rdg",sandbox:"sbx",scoped:"scod",seamless:"sml",shape:"shp",sizes:"szs",src:"src",srcDoc:"srd",srcLang:"srl",srcSet:"srs",useMap:"ump",ariaActiveDescendant:"aad",ariaAtomic:"aat",ariaBusy:"abu",ariaChecked:"achk",ariaControls:"acl",ariaCurrent:"acr",ariaDescribedBy:"adb",ariaDetails:"adt",ariaDisabled:"adis",ariaDropEffect:"ade",ariaErrorMessage:"aem",ariaExpanded:"aexp",ariaGrabbed:"agr",ariaHasPopup:"ahp",ariaHidden:"ahid",ariaInvalid:"ainv",ariaLabel:"alb",ariaLabelledBy:"alby",ariaLive:"alv",ariaModal:"amod",ariaMultiSelectable:"ams",ariaOrientation:"aor",ariaOwns:"aow",ariaPosInSet:"apis",ariaPressed:"aprs",ariaReadOnly:"aro",ariaRelevant:"arl",ariaRequired:"areq",ariaSelected:"asel",ariaSetSize:"assz",ariaValueMax:"avmx",ariaValueMin:"avmn",ariaValueNow:"avn",role:"role",onInit:"@in",onRender:"@rn",onUpdate:"@up",onStateChange:"@sc",onStateUpdate:"@su",onClick:"@ck",onContextMenu:"@cm",onDblClick:"@dc",onMouseDown:"@md",onMouseEnter:"@me",onMouseLeave:"@ml",onMouseMove:"@mm",onMouseOut:"@mo",onMouseOver:"@mv",onMouseUp:"@mu",onKeyDown:"@kd",onKeyPress:"@kp",onKeyUp:"@ku",onBlur:"@bl",onFocus:"@fc",onFocusIn:"@fi",onFocusOut:"@fo",onBeforeInput:"@bi",onChange:"@cg",onFormData:"@fd",onInput:"@ip",onInvalid:"@iv",onReset:"@rs",onSearch:"@sr",onSelect:"@sl",onSubmit:"@sm",onTouchCancel:"@tc",onTouchEnd:"@te",onTouchMove:"@tm",onTouchStart:"@ts",onPointerCancel:"@pc",onPointerDown:"@pd",onPointerEnter:"@pe",onPointerLeave:"@ple",onPointerMove:"@pm",onPointerOut:"@po",onPointerOver:"@pov",onPointerUp:"@pu",onDrag:"@dg",onDragEnd:"@dge",onDragEnter:"@dgn",onDragLeave:"@dgl",onDragOver:"@dgo",onDragStart:"@dgs",onDrop:"@dp",onResize:"@rz",onScroll:"@scl",onWheel:"@wh",onCopy:"@cy",onCut:"@ct",onPaste:"@pt",onCompositionEnd:"@cpe",onCompositionStart:"@cps",onCompositionUpdate:"@cpu",onAnimationEnd:"@ae",onAnimationIteration:"@ai",onAnimationStart:"@as",onTransitionEnd:"@tre",onTransitionStart:"@trs",onAbort:"@ab",onCanPlay:"@cap",onCanPlayThrough:"@cpt",onDurationChange:"@duc",onEmptied:"@em",onEncrypted:"@enc",onEnded:"@end",onError:"@er",onLoad:"@ld",onLoadedData:"@ldd",onLoadedMetadata:"@ldm",onPause:"@pa",onPlay:"@pl",onPlaying:"@plg",onProgress:"@prg",onRateChange:"@rc",onSeeked:"@sk",onSeeking:"@skg",onStalled:"@stl",onSuspend:"@ssp",onTimeUpdate:"@tu",onVolumeChange:"@vc",onWaiting:"@wt",icon:"ico",iconText:"ict",lookup:"lkp",router:"rtr",shapeModifier:"shpm"},XM=Object.create(null);for(let e in Wf)XM[Wf[e]]=e;var lb=Object.create(null);for(let e in Wf){let t=Wf[e];if(lb[t])throw new Error(`Duplicate abbreviation "${t}" for "${e}" \u2014 already used by "${lb[t]}"`);lb[t]=e}var YM=0,ZM=()=>`${Date.now().toString(36)}-${(YM++).toString(36)}`,Ia=(e,t,r={})=>({id:ZM(),ts:Date.now(),type:e,level:t,...r}),JM=e=>{let t=[],r=e,n=0;for(;r&&n<32;)r.key!=null&&t.unshift(String(r.key)),r=r.parent,n++;return t.join(" > ")},Hf=e=>e?{key:e.key!=null?String(e.key):null,name:e.__name||e.name||null,path:JM(e),tag:e.tag||null,component:e.component||null,route:e.context?.routerOptions?.currentRoute||null}:null,Bo=e=>e?.context?.analyze,QM={init:{category:"lifecycle",type:"lifecycle",level:"debug"},create:{category:"lifecycle",type:"lifecycle",level:"debug"},render:{category:"lifecycle",type:"lifecycle",level:"debug"},beforeRemove:{category:"lifecycle",type:"lifecycle",level:"debug"},remove:{category:"lifecycle",type:"lifecycle",level:"debug"}},eN=(e,{category:t,type:r,level:n})=>o=>{let s=Bo(o);!s||!s.shouldCapture(t)||s.emit(Ia(r,n,{hook:e,element:Hf(o)}))},GA=e=>(t,r)=>{let n=Bo(t);!n||!n.shouldCapture("state")||n.emit(Ia("state","debug",{hook:e,element:Hf(t),changedKeys:r?.changedKeys||null}))},tN={name:"analyze",error(e,t){let r=Bo(e);if(!r||r.config.enabled===!1||!r.shouldCapture("errors"))return;let n=t?.error||t?.err||(t instanceof Error?t:null);r.emit(Ia("error","error",{hook:t?.hook||"error",element:Hf(e),error:n,message:n?.message||(typeof t?.message=="string"?t.message:null)}))},renderRouter(e){let t=Bo(e);t&&(!t.shouldCapture("navigation")&&!t.shouldCapture("lifecycle")||t.emit(Ia("navigation","info",{hook:"renderRouter",route:e.context?.routerOptions?.currentRoute||null})))},beforeUpdate(e){let t=Bo(e);!t||!t.shouldCapture("updates")||e.__ref&&(e.__ref.__analyzeUpdateStart=typeof performance<"u"?performance.now():Date.now())},update(e){let t=Bo(e);if(!t||!t.shouldCapture("updates"))return;let r=null;e.__ref?.__analyzeUpdateStart!=null&&(r=(typeof performance<"u"?performance.now():Date.now())-e.__ref.__analyzeUpdateStart,e.__ref.__analyzeUpdateStart=null),t.emit(Ia("update","debug",{hook:"update",element:Hf(e),durationMs:r}))},beforeStateUpdate:GA("beforeStateUpdate"),stateUpdate:GA("stateUpdate")};for(let[e,t]of Object.entries(QM))tN[e]=eN(e,t);N();N();N();N();var Y7=typeof ie<"u"&&typeof ie.document<"u";var Z7=typeof ie<"u"&&typeof ie.document<"u";N();var J7=typeof ie<"u"&&typeof ie.document<"u";N();var Q7=typeof ie<"u"&&typeof ie.document<"u";var er=Object.create(null);er.open="0";er.close="1";er.ping="2";er.pong="3";er.message="4";er.upgrade="5";er.noop="6";var qu=Object.create(null);Object.keys(er).forEach(e=>{qu[er[e]]=e});var kb={type:"error",data:"parser error"},dP=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",pP=typeof ArrayBuffer=="function",hP=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,h0=({type:e,data:t},r,n)=>dP&&t instanceof Blob?r?n(t):KA(t,n):pP&&(t instanceof ArrayBuffer||hP(t))?r?n(t):KA(new Blob([t]),n):n(er[e]+(t||"")),KA=(e,t)=>{let r=new FileReader;return r.onload=function(){let n=r.result.split(",")[1];t("b"+(n||""))},r.readAsDataURL(e)};function XA(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}var cb;function rN(e,t){if(dP&&e.data instanceof Blob)return e.data.arrayBuffer().then(XA).then(t);if(pP&&(e.data instanceof ArrayBuffer||hP(e.data)))return t(XA(e.data));h0(e,!1,r=>{cb||(cb=new TextEncoder),t(cb.encode(r))})}var YA="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ua=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e<YA.length;e++)ua[YA.charCodeAt(e)]=e;var nN=e=>{let t=e.length*.75,r=e.length,n,o=0,s,i,a,l;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);let c=new ArrayBuffer(t),u=new Uint8Array(c);for(n=0;n<r;n+=4)s=ua[e.charCodeAt(n)],i=ua[e.charCodeAt(n+1)],a=ua[e.charCodeAt(n+2)],l=ua[e.charCodeAt(n+3)],u[o++]=s<<2|i>>4,u[o++]=(i&15)<<4|a>>2,u[o++]=(a&3)<<6|l&63;return c},oN=typeof ArrayBuffer=="function",g0=(e,t)=>{if(typeof e!="string")return{type:"message",data:gP(e,t)};let r=e.charAt(0);return r==="b"?{type:"message",data:sN(e.substring(1),t)}:qu[r]?e.length>1?{type:qu[r],data:e.substring(1)}:{type:qu[r]}:kb},sN=(e,t)=>{if(oN){let r=nN(e);return gP(r,t)}else return{base64:!0,data:e}},gP=(e,t)=>t==="blob"?e instanceof Blob?e:new Blob([e]):e instanceof ArrayBuffer?e:e.buffer,mP="",iN=(e,t)=>{let r=e.length,n=new Array(r),o=0;e.forEach((s,i)=>{h0(s,!1,a=>{n[i]=a,++o===r&&t(n.join(mP))})})},aN=(e,t)=>{let r=e.split(mP),n=[];for(let o=0;o<r.length;o++){let s=g0(r[o],t);if(n.push(s),s.type==="error")break}return n};function lN(){return new TransformStream({transform(e,t){rN(e,r=>{let n=r.length,o;if(n<126)o=new Uint8Array(1),new DataView(o.buffer).setUint8(0,n);else if(n<65536){o=new Uint8Array(3);let s=new DataView(o.buffer);s.setUint8(0,126),s.setUint16(1,n)}else{o=new Uint8Array(9);let s=new DataView(o.buffer);s.setUint8(0,127),s.setBigUint64(1,BigInt(n))}e.data&&typeof e.data!="string"&&(o[0]|=128),t.enqueue(o),t.enqueue(r)})}})}var ub;function Bu(e){return e.reduce((t,r)=>t+r.length,0)}function Vu(e,t){if(e[0].length===t)return e.shift();let r=new Uint8Array(t),n=0;for(let o=0;o<t;o++)r[o]=e[0][n++],n===e[0].length&&(e.shift(),n=0);return e.length&&n<e[0].length&&(e[0]=e[0].slice(n)),r}function cN(e,t){ub||(ub=new TextDecoder);let r=[],n=0,o=-1,s=!1;return new TransformStream({transform(i,a){for(r.push(i);;){if(n===0){if(Bu(r)<1)break;let l=Vu(r,1);s=(l[0]&128)===128,o=l[0]&127,o<126?n=3:o===126?n=1:n=2}else if(n===1){if(Bu(r)<2)break;let l=Vu(r,2);o=new DataView(l.buffer,l.byteOffset,l.length).getUint16(0),n=3}else if(n===2){if(Bu(r)<8)break;let l=Vu(r,8),c=new DataView(l.buffer,l.byteOffset,l.length),u=c.getUint32(0);if(u>Math.pow(2,21)-1){a.enqueue(kb);break}o=u*Math.pow(2,32)+c.getUint32(4),n=3}else{if(Bu(r)<o)break;let l=Vu(r,o);a.enqueue(g0(s?l:ub.decode(l),t)),n=0}if(o===0||o>e){a.enqueue(kb);break}}}})}var yP=4;function ke(e){if(e)return uN(e)}function uN(e){for(var t in ke.prototype)e[t]=ke.prototype[t];return e}ke.prototype.on=ke.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};ke.prototype.once=function(e,t){function r(){this.off(e,r),t.apply(this,arguments)}return r.fn=t,this.on(e,r),this};ke.prototype.off=ke.prototype.removeListener=ke.prototype.removeAllListeners=ke.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var r=this._callbacks["$"+e];if(!r)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var n,o=0;o<r.length;o++)if(n=r[o],n===t||n.fn===t){r.splice(o,1);break}return r.length===0&&delete this._callbacks["$"+e],this};ke.prototype.emit=function(e){this._callbacks=this._callbacks||{};for(var t=new Array(arguments.length-1),r=this._callbacks["$"+e],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(r){r=r.slice(0);for(var n=0,o=r.length;n<o;++n)r[n].apply(this,t)}return this};ke.prototype.emitReserved=ke.prototype.emit;ke.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks["$"+e]||[]};ke.prototype.hasListeners=function(e){return!!this.listeners(e).length};var _d=typeof Promise=="function"&&typeof Promise.resolve=="function"?e=>Promise.resolve().then(e):(e,t)=>t(e,0),St=typeof self<"u"?self:typeof window<"u"?window:Function("return this")(),fN="arraybuffer";function bP(e,...t){return t.reduce((r,n)=>(e.hasOwnProperty(n)&&(r[n]=e[n]),r),{})}var dN=St.setTimeout,pN=St.clearTimeout;function Sd(e,t){t.useNativeTimers?(e.setTimeoutFn=dN.bind(St),e.clearTimeoutFn=pN.bind(St)):(e.setTimeoutFn=St.setTimeout.bind(St),e.clearTimeoutFn=St.clearTimeout.bind(St))}var hN=1.33;function gN(e){return typeof e=="string"?mN(e):Math.ceil((e.byteLength||e.size)*hN)}function mN(e){let t=0,r=0;for(let n=0,o=e.length;n<o;n++)t=e.charCodeAt(n),t<128?r+=1:t<2048?r+=2:t<55296||t>=57344?r+=3:(n++,r+=4);return r}function xP(){return Date.now().toString(36).substring(3)+Math.random().toString(36).substring(2,5)}function yN(e){let t="";for(let r in e)e.hasOwnProperty(r)&&(t.length&&(t+="&"),t+=encodeURIComponent(r)+"="+encodeURIComponent(e[r]));return t}function bN(e){let t={},r=e.split("&");for(let n=0,o=r.length;n<o;n++){let s=r[n].split("=");t[decodeURIComponent(s[0])]=decodeURIComponent(s[1])}return t}var xN=class extends Error{constructor(e,t,r){super(e),this.description=t,this.context=r,this.type="TransportError"}},m0=class extends ke{constructor(e){super(),this.writable=!1,Sd(this,e),this.opts=e,this.query=e.query,this.socket=e.socket,this.supportsBinary=!e.forceBase64}onError(e,t,r){return super.emitReserved("error",new xN(e,t,r)),this}open(){return this.readyState="opening",this.doOpen(),this}close(){return(this.readyState==="opening"||this.readyState==="open")&&(this.doClose(),this.onClose()),this}send(e){this.readyState==="open"&&this.write(e)}onOpen(){this.readyState="open",this.writable=!0,super.emitReserved("open")}onData(e){let t=g0(e,this.socket.binaryType);this.onPacket(t)}onPacket(e){super.emitReserved("packet",e)}onClose(e){this.readyState="closed",super.emitReserved("close",e)}pause(e){}createUri(e,t={}){return e+"://"+this._hostname()+this._port()+this.opts.path+this._query(t)}_hostname(){let e=this.opts.hostname;return e.indexOf(":")===-1?e:"["+e+"]"}_port(){return this.opts.port&&(this.opts.secure&&Number(this.opts.port)!==443||!this.opts.secure&&Number(this.opts.port)!==80)?":"+this.opts.port:""}_query(e){let t=yN(e);return t.length?"?"+t:""}},vN=class extends m0{constructor(){super(...arguments),this._polling=!1}get name(){return"polling"}doOpen(){this._poll()}pause(e){this.readyState="pausing";let t=()=>{this.readyState="paused",e()};if(this._polling||!this.writable){let r=0;this._polling&&(r++,this.once("pollComplete",function(){--r||t()})),this.writable||(r++,this.once("drain",function(){--r||t()}))}else t()}_poll(){this._polling=!0,this.doPoll(),this.emitReserved("poll")}onData(e){let t=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};aN(e,this.socket.binaryType).forEach(t),this.readyState!=="closed"&&(this._polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this._poll())}doClose(){let e=()=>{this.write([{type:"close"}])};this.readyState==="open"?e():this.once("open",e)}write(e){this.writable=!1,iN(e,t=>{this.doWrite(t,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){let e=this.opts.secure?"https":"http",t=this.query||{};return this.opts.timestampRequests!==!1&&(t[this.opts.timestampParam]=xP()),!this.supportsBinary&&!t.sid&&(t.b64=1),this.createUri(e,t)}},vP=!1;try{vP=typeof XMLHttpRequest<"u"&&"withCredentials"in new XMLHttpRequest}catch{}var wN=vP;function _N(){}var SN=class extends vN{constructor(e){if(super(e),typeof location<"u"){let t=location.protocol==="https:",r=location.port;r||(r=t?"443":"80"),this.xd=typeof location<"u"&&e.hostname!==location.hostname||r!==e.port}}doWrite(e,t){let r=this.request({method:"POST",data:e});r.on("success",t),r.on("error",(n,o)=>{this.onError("xhr post error",n,o)})}doPoll(){let e=this.request();e.on("data",this.onData.bind(this)),e.on("error",(t,r)=>{this.onError("xhr poll error",t,r)}),this.pollXhr=e}},Vo=class Gu extends ke{constructor(t,r,n){super(),this.createRequest=t,Sd(this,n),this._opts=n,this._method=n.method||"GET",this._uri=r,this._data=n.data!==void 0?n.data:null,this._create()}_create(){var t;let r=bP(this._opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");r.xdomain=!!this._opts.xd;let n=this._xhr=this.createRequest(r);try{n.open(this._method,this._uri,!0);try{if(this._opts.extraHeaders){n.setDisableHeaderCheck&&n.setDisableHeaderCheck(!0);for(let o in this._opts.extraHeaders)this._opts.extraHeaders.hasOwnProperty(o)&&n.setRequestHeader(o,this._opts.extraHeaders[o])}}catch{}if(this._method==="POST")try{n.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{n.setRequestHeader("Accept","*/*")}catch{}(t=this._opts.cookieJar)===null||t===void 0||t.addCookies(n),"withCredentials"in n&&(n.withCredentials=this._opts.withCredentials),this._opts.requestTimeout&&(n.timeout=this._opts.requestTimeout),n.onreadystatechange=()=>{var o;n.readyState===3&&((o=this._opts.cookieJar)===null||o===void 0||o.parseCookies(n.getResponseHeader("set-cookie"))),n.readyState===4&&(n.status===200||n.status===1223?this._onLoad():this.setTimeoutFn(()=>{this._onError(typeof n.status=="number"?n.status:0)},0))},n.send(this._data)}catch(o){this.setTimeoutFn(()=>{this._onError(o)},0);return}typeof document<"u"&&(this._index=Gu.requestsCount++,Gu.requests[this._index]=this)}_onError(t){this.emitReserved("error",t,this._xhr),this._cleanup(!0)}_cleanup(t){if(!(typeof this._xhr>"u"||this._xhr===null)){if(this._xhr.onreadystatechange=_N,t)try{this._xhr.abort()}catch{}typeof document<"u"&&delete Gu.requests[this._index],this._xhr=null}}_onLoad(){let t=this._xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this._cleanup())}abort(){this._cleanup()}};Vo.requestsCount=0;Vo.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",ZA);else if(typeof addEventListener=="function"){let e="onpagehide"in St?"pagehide":"unload";addEventListener(e,ZA,!1)}}function ZA(){for(let e in Vo.requests)Vo.requests.hasOwnProperty(e)&&Vo.requests[e].abort()}var kN=(function(){let e=wP({xdomain:!1});return e&&e.responseType!==null})(),CN=class extends SN{constructor(e){super(e);let t=e&&e.forceBase64;this.supportsBinary=kN&&!t}request(e={}){return Object.assign(e,{xd:this.xd},this.opts),new Vo(wP,this.uri(),e)}};function wP(e){let t=e.xdomain;try{if(typeof XMLHttpRequest<"u"&&(!t||wN))return new XMLHttpRequest}catch{}if(!t)try{return new St[["Active"].concat("Object").join("X")]("Microsoft.XMLHTTP")}catch{}}var _P=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative",AN=class extends m0{get name(){return"websocket"}doOpen(){let e=this.uri(),t=this.opts.protocols,r=_P?{}:bP(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=this.createSocket(e,t,r)}catch(n){return this.emitReserved("error",n)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=e=>this.onClose({description:"websocket connection closed",context:e}),this.ws.onmessage=e=>this.onData(e.data),this.ws.onerror=e=>this.onError("websocket error",e)}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;h0(r,this.supportsBinary,o=>{try{this.doWrite(r,o)}catch{}n&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.onerror=()=>{},this.ws.close(),this.ws=null)}uri(){let e=this.opts.secure?"wss":"ws",t=this.query||{};return this.opts.timestampRequests&&(t[this.opts.timestampParam]=xP()),this.supportsBinary||(t.b64=1),this.createUri(e,t)}},fb=St.WebSocket||St.MozWebSocket,EN=class extends AN{createSocket(e,t,r){return _P?new fb(e,t,r):t?new fb(e,t):new fb(e)}doWrite(e,t){this.ws.send(t)}},ON=class extends m0{get name(){return"webtransport"}doOpen(){try{this._transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name])}catch(e){return this.emitReserved("error",e)}this._transport.closed.then(()=>{this.onClose()}).catch(e=>{this.onError("webtransport error",e)}),this._transport.ready.then(()=>{this._transport.createBidirectionalStream().then(e=>{let t=cN(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=e.readable.pipeThrough(t).getReader(),n=lN();n.readable.pipeTo(e.writable),this._writer=n.writable.getWriter();let o=()=>{r.read().then(({done:i,value:a})=>{i||(this.onPacket(a),o())}).catch(i=>{})};o();let s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this._writer.write(s).then(()=>this.onOpen())})})}write(e){this.writable=!1;for(let t=0;t<e.length;t++){let r=e[t],n=t===e.length-1;this._writer.write(r).then(()=>{n&&_d(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var e;(e=this._transport)===null||e===void 0||e.close()}},TN={websocket:EN,webtransport:ON,polling:CN},RN=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,PN=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Cb(e){if(e.length>8e3)throw"URI too long";let t=e,r=e.indexOf("["),n=e.indexOf("]");r!=-1&&n!=-1&&(e=e.substring(0,r)+e.substring(r,n).replace(/:/g,";")+e.substring(n,e.length));let o=RN.exec(e||""),s={},i=14;for(;i--;)s[PN[i]]=o[i]||"";return r!=-1&&n!=-1&&(s.source=t,s.host=s.host.substring(1,s.host.length-1).replace(/;/g,":"),s.authority=s.authority.replace("[","").replace("]","").replace(/;/g,":"),s.ipv6uri=!0),s.pathNames=$N(s,s.path),s.queryKey=IN(s,s.query),s}function $N(e,t){let r=/\/{2,9}/g,n=t.replace(r,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&n.splice(0,1),t.slice(-1)=="/"&&n.splice(n.length-1,1),n}function IN(e,t){let r={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(n,o,s){o&&(r[o]=s)}),r}var Ab=typeof addEventListener=="function"&&typeof removeEventListener=="function",Ku=[];Ab&&addEventListener("offline",()=>{Ku.forEach(e=>e())},!1);var Xu=class Yu extends ke{constructor(t,r){if(super(),this.binaryType=fN,this.writeBuffer=[],this._prevBufferLen=0,this._pingInterval=-1,this._pingTimeout=-1,this._maxPayload=-1,this._pingTimeoutTime=1/0,t&&typeof t=="object"&&(r=t,t=null),t){let n=Cb(t);r.hostname=n.host,r.secure=n.protocol==="https"||n.protocol==="wss",r.port=n.port,n.query&&(r.query=n.query)}else r.host&&(r.hostname=Cb(r.host).host);Sd(this,r),this.secure=r.secure!=null?r.secure:typeof location<"u"&&location.protocol==="https:",r.hostname&&!r.port&&(r.port=this.secure?"443":"80"),this.hostname=r.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=r.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=[],this._transportsByName={},r.transports.forEach(n=>{let o=n.prototype.name;this.transports.push(o),this._transportsByName[o]=n}),this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},r),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=bN(this.opts.query)),Ab&&(this.opts.closeOnBeforeunload&&(this._beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this._beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this._offlineEventListener=()=>{this._onClose("transport close",{description:"network connection lost"})},Ku.push(this._offlineEventListener))),this.opts.withCredentials&&(this._cookieJar=void 0),this._open()}createTransport(t){let r=Object.assign({},this.opts.query);r.EIO=yP,r.transport=t,this.id&&(r.sid=this.id);let n=Object.assign({},this.opts,{query:r,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new this._transportsByName[t](n)}_open(){if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}let t=this.opts.rememberUpgrade&&Yu.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1?"websocket":this.transports[0];this.readyState="opening";let r=this.createTransport(t);r.open(),this.setTransport(r)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this._onDrain.bind(this)).on("packet",this._onPacket.bind(this)).on("error",this._onError.bind(this)).on("close",r=>this._onClose("transport close",r))}onOpen(){this.readyState="open",Yu.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush()}_onPacket(t){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")switch(this.emitReserved("packet",t),this.emitReserved("heartbeat"),t.type){case"open":this.onHandshake(JSON.parse(t.data));break;case"ping":this._sendPacket("pong"),this.emitReserved("ping"),this.emitReserved("pong"),this._resetPingTimeout();break;case"error":let r=new Error("server error");r.code=t.data,this._onError(r);break;case"message":this.emitReserved("data",t.data),this.emitReserved("message",t.data);break}}onHandshake(t){this.emitReserved("handshake",t),this.id=t.sid,this.transport.query.sid=t.sid,this._pingInterval=t.pingInterval,this._pingTimeout=t.pingTimeout,this._maxPayload=t.maxPayload,this.onOpen(),this.readyState!=="closed"&&this._resetPingTimeout()}_resetPingTimeout(){this.clearTimeoutFn(this._pingTimeoutTimer);let t=this._pingInterval+this._pingTimeout;this._pingTimeoutTime=Date.now()+t,this._pingTimeoutTimer=this.setTimeoutFn(()=>{this._onClose("ping timeout")},t),this.opts.autoUnref&&this._pingTimeoutTimer.unref()}_onDrain(){this.writeBuffer.splice(0,this._prevBufferLen),this._prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){let t=this._getWritablePackets();this.transport.send(t),this._prevBufferLen=t.length,this.emitReserved("flush")}}_getWritablePackets(){if(!(this._maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let t=1;for(let r=0;r<this.writeBuffer.length;r++){let n=this.writeBuffer[r].data;if(n&&(t+=gN(n)),r>0&&t>this._maxPayload)return this.writeBuffer.slice(0,r);t+=2}return this.writeBuffer}_hasPingExpired(){if(!this._pingTimeoutTime)return!0;let t=Date.now()>this._pingTimeoutTime;return t&&(this._pingTimeoutTime=0,_d(()=>{this._onClose("ping timeout")},this.setTimeoutFn)),t}write(t,r,n){return this._sendPacket("message",t,r,n),this}send(t,r,n){return this._sendPacket("message",t,r,n),this}_sendPacket(t,r,n,o){if(typeof r=="function"&&(o=r,r=void 0),typeof n=="function"&&(o=n,n=null),this.readyState==="closing"||this.readyState==="closed")return;n=n||{},n.compress=n.compress!==!1;let s={type:t,data:r,options:n};this.emitReserved("packetCreate",s),this.writeBuffer.push(s),o&&this.once("flush",o),this.flush()}close(){let t=()=>{this._onClose("forced close"),this.transport.close()},r=()=>{this.off("upgrade",r),this.off("upgradeError",r),t()},n=()=>{this.once("upgrade",r),this.once("upgradeError",r)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?n():t()}):this.upgrading?n():t()),this}_onError(t){if(Yu.priorWebsocketSuccess=!1,this.opts.tryAllTransports&&this.transports.length>1&&this.readyState==="opening")return this.transports.shift(),this._open();this.emitReserved("error",t),this._onClose("transport error",t)}_onClose(t,r){if(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing"){if(this.clearTimeoutFn(this._pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),Ab&&(this._beforeunloadEventListener&&removeEventListener("beforeunload",this._beforeunloadEventListener,!1),this._offlineEventListener)){let n=Ku.indexOf(this._offlineEventListener);n!==-1&&Ku.splice(n,1)}this.readyState="closed",this.id=null,this.emitReserved("close",t,r),this.writeBuffer=[],this._prevBufferLen=0}}};Xu.protocol=yP;var FN=class extends Xu{constructor(){super(...arguments),this._upgrades=[]}onOpen(){if(super.onOpen(),this.readyState==="open"&&this.opts.upgrade)for(let e=0;e<this._upgrades.length;e++)this._probe(this._upgrades[e])}_probe(e){let t=this.createTransport(e),r=!1;Xu.priorWebsocketSuccess=!1;let n=()=>{r||(t.send([{type:"ping",data:"probe"}]),t.once("packet",u=>{if(!r)if(u.type==="pong"&&u.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",t),!t)return;Xu.priorWebsocketSuccess=t.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(t),t.send([{type:"upgrade"}]),this.emitReserved("upgrade",t),t=null,this.upgrading=!1,this.flush())})}else{let d=new Error("probe error");d.transport=t.name,this.emitReserved("upgradeError",d)}}))};function o(){r||(r=!0,c(),t.close(),t=null)}let s=u=>{let d=new Error("probe error: "+u);d.transport=t.name,o(),this.emitReserved("upgradeError",d)};function i(){s("transport closed")}function a(){s("socket closed")}function l(u){t&&u.name!==t.name&&o()}let c=()=>{t.removeListener("open",n),t.removeListener("error",s),t.removeListener("close",i),this.off("close",a),this.off("upgrading",l)};t.once("open",n),t.once("error",s),t.once("close",i),this.once("close",a),this.once("upgrading",l),this._upgrades.indexOf("webtransport")!==-1&&e!=="webtransport"?this.setTimeoutFn(()=>{r||t.open()},200):t.open()}onHandshake(e){this._upgrades=this._filterUpgrades(e.upgrades),super.onHandshake(e)}_filterUpgrades(e){let t=[];for(let r=0;r<e.length;r++)~this.transports.indexOf(e[r])&&t.push(e[r]);return t}},SP=class extends FN{constructor(e,t={}){let r=typeof e=="object"?e:t;(!r.transports||r.transports&&typeof r.transports[0]=="string")&&(r.transports=(r.transports||["polling","websocket","webtransport"]).map(n=>TN[n]).filter(n=>!!n)),super(e,r)}},eG=SP.protocol;function jN(e,t="",r){let n=e;r=r||typeof location<"u"&&location,e==null&&(e=r.protocol+"//"+r.host),typeof e=="string"&&(e.charAt(0)==="/"&&(e.charAt(1)==="/"?e=r.protocol+e:e=r.host+e),/^(https?|wss?):\/\//.test(e)||(typeof r<"u"?e=r.protocol+"//"+e:e="https://"+e),n=Cb(e)),n.port||(/^(http|ws)$/.test(n.protocol)?n.port="80":/^(http|ws)s$/.test(n.protocol)&&(n.port="443")),n.path=n.path||"/";let o=n.host.indexOf(":")!==-1?"["+n.host+"]":n.host;return n.id=n.protocol+"://"+o+":"+n.port+t,n.href=n.protocol+"://"+o+(r&&r.port===n.port?"":":"+n.port),n}var kP={};Y(kP,{Decoder:()=>HN,Encoder:()=>WN,PacketType:()=>ee,isPacketValid:()=>YN,protocol:()=>UN});var DN=typeof ArrayBuffer=="function",LN=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,CP=Object.prototype.toString,MN=typeof Blob=="function"||typeof Blob<"u"&&CP.call(Blob)==="[object BlobConstructor]",NN=typeof File=="function"||typeof File<"u"&&CP.call(File)==="[object FileConstructor]";function y0(e){return DN&&(e instanceof ArrayBuffer||LN(e))||MN&&e instanceof Blob||NN&&e instanceof File}function Zu(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let r=0,n=e.length;r<n;r++)if(Zu(e[r]))return!0;return!1}if(y0(e))return!0;if(e.toJSON&&typeof e.toJSON=="function"&&arguments.length===1)return Zu(e.toJSON(),!0);for(let r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&Zu(e[r]))return!0;return!1}function BN(e){let t=[],r=e.data,n=e;return n.data=Eb(r,t),n.attachments=t.length,{packet:n,buffers:t}}function Eb(e,t){if(!e)return e;if(y0(e)){let r={_placeholder:!0,num:t.length};return t.push(e),r}else if(Array.isArray(e)){let r=new Array(e.length);for(let n=0;n<e.length;n++)r[n]=Eb(e[n],t);return r}else if(typeof e=="object"&&!(e instanceof Date)){let r={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=Eb(e[n],t));return r}return e}function VN(e,t){return e.data=Ob(e.data,t),delete e.attachments,e}function Ob(e,t){if(!e)return e;if(e&&e._placeholder===!0){if(typeof e.num=="number"&&e.num>=0&&e.num<t.length)return t[e.num];throw new Error("illegal attachments")}else if(Array.isArray(e))for(let r=0;r<e.length;r++)e[r]=Ob(e[r],t);else if(typeof e=="object")for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&(e[r]=Ob(e[r],t));return e}var zN=Hj(AD(),1),Tb=(0,zN.default)("socket.io-parser"),AP=["connect","connect_error","disconnect","disconnecting","newListener","removeListener"],UN=5,ee;(function(e){e[e.CONNECT=0]="CONNECT",e[e.DISCONNECT=1]="DISCONNECT",e[e.EVENT=2]="EVENT",e[e.ACK=3]="ACK",e[e.CONNECT_ERROR=4]="CONNECT_ERROR",e[e.BINARY_EVENT=5]="BINARY_EVENT",e[e.BINARY_ACK=6]="BINARY_ACK"})(ee||(ee={}));var WN=class{constructor(e){this.replacer=e}encode(e){return Tb("encoding packet %j",e),(e.type===ee.EVENT||e.type===ee.ACK)&&Zu(e)?this.encodeAsBinary({type:e.type===ee.EVENT?ee.BINARY_EVENT:ee.BINARY_ACK,nsp:e.nsp,data:e.data,id:e.id}):[this.encodeAsString(e)]}encodeAsString(e){let t=""+e.type;return(e.type===ee.BINARY_EVENT||e.type===ee.BINARY_ACK)&&(t+=e.attachments+"-"),e.nsp&&e.nsp!=="/"&&(t+=e.nsp+","),e.id!=null&&(t+=e.id),e.data!=null&&(t+=JSON.stringify(e.data,this.replacer)),Tb("encoded %j as %s",e,t),t}encodeAsBinary(e){let t=BN(e),r=this.encodeAsString(t.packet),n=t.buffers;return n.unshift(r),n}},HN=class EP extends ke{constructor(t){super(),this.opts=Object.assign({reviver:void 0,maxAttachments:10},typeof t=="function"?{reviver:t}:t)}add(t){let r;if(typeof t=="string"){if(this.reconstructor)throw new Error("got plaintext data when reconstructing a packet");r=this.decodeString(t);let n=r.type===ee.BINARY_EVENT;n||r.type===ee.BINARY_ACK?(r.type=n?ee.EVENT:ee.ACK,this.reconstructor=new qN(r),r.attachments===0&&super.emitReserved("decoded",r)):super.emitReserved("decoded",r)}else if(y0(t)||t.base64)if(this.reconstructor)r=this.reconstructor.takeBinaryData(t),r&&(this.reconstructor=null,super.emitReserved("decoded",r));else throw new Error("got binary data when not reconstructing a packet");else throw new Error("Unknown type: "+t)}decodeString(t){let r=0,n={type:Number(t.charAt(0))};if(ee[n.type]===void 0)throw new Error("unknown packet type "+n.type);if(n.type===ee.BINARY_EVENT||n.type===ee.BINARY_ACK){let s=r+1;for(;t.charAt(++r)!=="-"&&r!=t.length;);let i=t.substring(s,r);if(i!=Number(i)||t.charAt(r)!=="-")throw new Error("Illegal attachments");let a=Number(i);if(!OP(a)||a<0)throw new Error("Illegal attachments");if(a>this.opts.maxAttachments)throw new Error("too many attachments");n.attachments=a}if(t.charAt(r+1)==="/"){let s=r+1;for(;++r&&!(t.charAt(r)===","||r===t.length););n.nsp=t.substring(s,r)}else n.nsp="/";let o=t.charAt(r+1);if(o!==""&&Number(o)==o){let s=r+1;for(;++r;){let i=t.charAt(r);if(i==null||Number(i)!=i){--r;break}if(r===t.length)break}n.id=Number(t.substring(s,r+1))}if(t.charAt(++r)){let s=this.tryParse(t.substr(r));if(EP.isPayloadValid(n.type,s))n.data=s;else throw new Error("invalid payload")}return Tb("decoded %s as %j",t,n),n}tryParse(t){try{return JSON.parse(t,this.opts.reviver)}catch{return!1}}static isPayloadValid(t,r){switch(t){case ee.CONNECT:return qf(r);case ee.DISCONNECT:return r===void 0;case ee.CONNECT_ERROR:return typeof r=="string"||qf(r);case ee.EVENT:case ee.BINARY_EVENT:return Array.isArray(r)&&(typeof r[0]=="number"||typeof r[0]=="string"&&AP.indexOf(r[0])===-1);case ee.ACK:case ee.BINARY_ACK:return Array.isArray(r)}}destroy(){this.reconstructor&&(this.reconstructor.finishedReconstruction(),this.reconstructor=null)}},qN=class{constructor(e){this.packet=e,this.buffers=[],this.reconPack=e}takeBinaryData(e){if(this.buffers.push(e),this.buffers.length===this.reconPack.attachments){let t=VN(this.reconPack,this.buffers);return this.finishedReconstruction(),t}return null}finishedReconstruction(){this.reconPack=null,this.buffers=[]}};function GN(e){return typeof e=="string"}var OP=Number.isInteger||function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e};function KN(e){return e===void 0||OP(e)}function qf(e){return Object.prototype.toString.call(e)==="[object Object]"}function XN(e,t){switch(e){case ee.CONNECT:return t===void 0||qf(t);case ee.DISCONNECT:return t===void 0;case ee.EVENT:return Array.isArray(t)&&(typeof t[0]=="number"||typeof t[0]=="string"&&AP.indexOf(t[0])===-1);case ee.ACK:return Array.isArray(t);case ee.CONNECT_ERROR:return typeof t=="string"||qf(t);default:return!1}}function YN(e){return GN(e.nsp)&&KN(e.id)&&XN(e.type,e.data)}function Nt(e,t,r){return e.on(t,r),function(){e.off(t,r)}}var ZN=Object.freeze({connect:1,connect_error:1,disconnect:1,disconnecting:1,newListener:1,removeListener:1}),TP=class extends ke{constructor(e,t,r){super(),this.connected=!1,this.recovered=!1,this.receiveBuffer=[],this.sendBuffer=[],this._queue=[],this._queueSeq=0,this.ids=0,this.acks={},this.flags={},this.io=e,this.nsp=t,r&&r.auth&&(this.auth=r.auth),this._opts=Object.assign({},r),this.io._autoConnect&&this.open()}get disconnected(){return!this.connected}subEvents(){if(this.subs)return;let e=this.io;this.subs=[Nt(e,"open",this.onopen.bind(this)),Nt(e,"packet",this.onpacket.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this))]}get active(){return!!this.subs}connect(){return this.connected?this:(this.subEvents(),this.io._reconnecting||this.io.open(),this.io._readyState==="open"&&this.onopen(),this)}open(){return this.connect()}send(...e){return e.unshift("message"),this.emit.apply(this,e),this}emit(e,...t){var r,n,o;if(ZN.hasOwnProperty(e))throw new Error('"'+e.toString()+'" is a reserved event name');if(t.unshift(e),this._opts.retries&&!this.flags.fromQueue&&!this.flags.volatile)return this._addToQueue(t),this;let s={type:ee.EVENT,data:t};if(s.options={},s.options.compress=this.flags.compress!==!1,typeof t[t.length-1]=="function"){let l=this.ids++,c=t.pop();this._registerAckCallback(l,c),s.id=l}let i=(n=(r=this.io.engine)===null||r===void 0?void 0:r.transport)===null||n===void 0?void 0:n.writable,a=this.connected&&!(!((o=this.io.engine)===null||o===void 0)&&o._hasPingExpired());return this.flags.volatile&&!i||(a?(this.notifyOutgoingListeners(s),this.packet(s)):this.sendBuffer.push(s)),this.flags={},this}_registerAckCallback(e,t){var r;let n=(r=this.flags.timeout)!==null&&r!==void 0?r:this._opts.ackTimeout;if(n===void 0){this.acks[e]=t;return}let o=this.io.setTimeoutFn(()=>{delete this.acks[e];for(let i=0;i<this.sendBuffer.length;i++)this.sendBuffer[i].id===e&&this.sendBuffer.splice(i,1);t.call(this,new Error("operation has timed out"))},n),s=(...i)=>{this.io.clearTimeoutFn(o),t.apply(this,i)};s.withError=!0,this.acks[e]=s}emitWithAck(e,...t){return new Promise((r,n)=>{let o=(s,i)=>s?n(s):r(i);o.withError=!0,t.push(o),this.emit(e,...t)})}_addToQueue(e){let t;typeof e[e.length-1]=="function"&&(t=e.pop());let r={id:this._queueSeq++,tryCount:0,pending:!1,args:e,flags:Object.assign({fromQueue:!0},this.flags)};e.push((n,...o)=>(this._queue[0],n!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),t&&t(n)):(this._queue.shift(),t&&t(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(e=!1){if(!this.connected||this._queue.length===0)return;let t=this._queue[0];t.pending&&!e||(t.pending=!0,t.tryCount++,this.flags=t.flags,this.emit.apply(this,t.args))}packet(e){e.nsp=this.nsp,this.io._packet(e)}onopen(){typeof this.auth=="function"?this.auth(e=>{this._sendConnectPacket(e)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(e){this.packet({type:ee.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},e):e})}onerror(e){this.connected||this.emitReserved("connect_error",e)}onclose(e,t){this.connected=!1,delete this.id,this.emitReserved("disconnect",e,t),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(e=>{if(!this.sendBuffer.some(t=>String(t.id)===e)){let t=this.acks[e];delete this.acks[e],t.withError&&t.call(this,new Error("socket has been disconnected"))}})}onpacket(e){if(e.nsp===this.nsp)switch(e.type){case ee.CONNECT:e.data&&e.data.sid?this.onconnect(e.data.sid,e.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case ee.EVENT:case ee.BINARY_EVENT:this.onevent(e);break;case ee.ACK:case ee.BINARY_ACK:this.onack(e);break;case ee.DISCONNECT:this.ondisconnect();break;case ee.CONNECT_ERROR:this.destroy();let t=new Error(e.data.message);t.data=e.data.data,this.emitReserved("connect_error",t);break}}onevent(e){let t=e.data||[];e.id!=null&&t.push(this.ack(e.id)),this.connected?this.emitEvent(t):this.receiveBuffer.push(Object.freeze(t))}emitEvent(e){if(this._anyListeners&&this._anyListeners.length){let t=this._anyListeners.slice();for(let r of t)r.apply(this,e)}super.emit.apply(this,e),this._pid&&e.length&&typeof e[e.length-1]=="string"&&(this._lastOffset=e[e.length-1])}ack(e){let t=this,r=!1;return function(...n){r||(r=!0,t.packet({type:ee.ACK,id:e,data:n}))}}onack(e){let t=this.acks[e.id];typeof t=="function"&&(delete this.acks[e.id],t.withError&&e.data.unshift(null),t.apply(this,e.data))}onconnect(e,t){this.id=e,this.recovered=t&&this._pid===t,this._pid=t,this.connected=!0,this.emitBuffered(),this._drainQueue(!0),this.emitReserved("connect")}emitBuffered(){this.receiveBuffer.forEach(e=>this.emitEvent(e)),this.receiveBuffer=[],this.sendBuffer.forEach(e=>{this.notifyOutgoingListeners(e),this.packet(e)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(e=>e()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:ee.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(e){return this.flags.compress=e,this}get volatile(){return this.flags.volatile=!0,this}timeout(e){return this.flags.timeout=e,this}onAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(e),this}prependAny(e){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(e),this}offAny(e){if(!this._anyListeners)return this;if(e){let t=this._anyListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyListeners=[];return this}listenersAny(){return this._anyListeners||[]}onAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.push(e),this}prependAnyOutgoing(e){return this._anyOutgoingListeners=this._anyOutgoingListeners||[],this._anyOutgoingListeners.unshift(e),this}offAnyOutgoing(e){if(!this._anyOutgoingListeners)return this;if(e){let t=this._anyOutgoingListeners;for(let r=0;r<t.length;r++)if(e===t[r])return t.splice(r,1),this}else this._anyOutgoingListeners=[];return this}listenersAnyOutgoing(){return this._anyOutgoingListeners||[]}notifyOutgoingListeners(e){if(this._anyOutgoingListeners&&this._anyOutgoingListeners.length){let t=this._anyOutgoingListeners.slice();for(let r of t)r.apply(this,e.data)}}};function Xo(e){e=e||{},this.ms=e.min||100,this.max=e.max||1e4,this.factor=e.factor||2,this.jitter=e.jitter>0&&e.jitter<=1?e.jitter:0,this.attempts=0}Xo.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),r=Math.floor(t*this.jitter*e);e=(Math.floor(t*10)&1)==0?e-r:e+r}return Math.min(e,this.max)|0};Xo.prototype.reset=function(){this.attempts=0};Xo.prototype.setMin=function(e){this.ms=e};Xo.prototype.setMax=function(e){this.max=e};Xo.prototype.setJitter=function(e){this.jitter=e};var Rb=class extends ke{constructor(e,t){var r;super(),this.nsps={},this.subs=[],e&&typeof e=="object"&&(t=e,e=void 0),t=t||{},t.path=t.path||"/socket.io",this.opts=t,Sd(this,t),this.reconnection(t.reconnection!==!1),this.reconnectionAttempts(t.reconnectionAttempts||1/0),this.reconnectionDelay(t.reconnectionDelay||1e3),this.reconnectionDelayMax(t.reconnectionDelayMax||5e3),this.randomizationFactor((r=t.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new Xo({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(t.timeout==null?2e4:t.timeout),this._readyState="closed",this.uri=e;let n=t.parser||kP;this.encoder=new n.Encoder,this.decoder=new n.Decoder,this._autoConnect=t.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(e){return arguments.length?(this._reconnection=!!e,e||(this.skipReconnect=!0),this):this._reconnection}reconnectionAttempts(e){return e===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=e,this)}reconnectionDelay(e){var t;return e===void 0?this._reconnectionDelay:(this._reconnectionDelay=e,(t=this.backoff)===null||t===void 0||t.setMin(e),this)}randomizationFactor(e){var t;return e===void 0?this._randomizationFactor:(this._randomizationFactor=e,(t=this.backoff)===null||t===void 0||t.setJitter(e),this)}reconnectionDelayMax(e){var t;return e===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=e,(t=this.backoff)===null||t===void 0||t.setMax(e),this)}timeout(e){return arguments.length?(this._timeout=e,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(e){if(~this._readyState.indexOf("open"))return this;this.engine=new SP(this.uri,this.opts);let t=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;let n=Nt(t,"open",function(){r.onopen(),e&&e()}),o=i=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",i),e?e(i):this.maybeReconnectOnOpen()},s=Nt(t,"error",o);if(this._timeout!==!1){let i=this._timeout,a=this.setTimeoutFn(()=>{n(),o(new Error("timeout")),t.close()},i);this.opts.autoUnref&&a.unref(),this.subs.push(()=>{this.clearTimeoutFn(a)})}return this.subs.push(n),this.subs.push(s),this}connect(e){return this.open(e)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");let e=this.engine;this.subs.push(Nt(e,"ping",this.onping.bind(this)),Nt(e,"data",this.ondata.bind(this)),Nt(e,"error",this.onerror.bind(this)),Nt(e,"close",this.onclose.bind(this)),Nt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(e){try{this.decoder.add(e)}catch(t){this.onclose("parse error",t)}}ondecoded(e){_d(()=>{this.emitReserved("packet",e)},this.setTimeoutFn)}onerror(e){this.emitReserved("error",e)}socket(e,t){let r=this.nsps[e];return r?this._autoConnect&&!r.active&&r.connect():(r=new TP(this,e,t),this.nsps[e]=r),r}_destroy(e){let t=Object.keys(this.nsps);for(let r of t)if(this.nsps[r].active)return;this._close()}_packet(e){let t=this.encoder.encode(e);for(let r=0;r<t.length;r++)this.engine.write(t[r],e.options)}cleanup(){this.subs.forEach(e=>e()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close")}disconnect(){return this._close()}onclose(e,t){var r;this.cleanup(),(r=this.engine)===null||r===void 0||r.close(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",e,t),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;let e=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{let t=this.backoff.duration();this._reconnecting=!0;let r=this.setTimeoutFn(()=>{e.skipReconnect||(this.emitReserved("reconnect_attempt",e.backoff.attempts),!e.skipReconnect&&e.open(n=>{n?(e._reconnecting=!1,e.reconnect(),this.emitReserved("reconnect_error",n)):e.onreconnect()}))},t);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){let e=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",e)}},sa={};function db(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};let r=jN(e,t.path||"/socket.io"),n=r.source,o=r.id,s=r.path,i=sa[o]&&s in sa[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||i,l;return a?l=new Rb(n,t):(sa[o]||(sa[o]=new Rb(n,t)),l=sa[o]),r.query&&!t.query&&(t.query=r.queryKey),l.socket(r.path,t)}Object.assign(db,{Manager:Rb,Socket:TP,io:db,connect:db});N();N();N();VM(ZL);D();var RP=(e,t,r)=>(n={})=>{let{data:o}=n,{schema:s}=n;o&&(o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{}),Object.entries(o).forEach(([i,a])=>{r[i]&&typeof r[i]=="object"?i==="designSystem"?wd(a):rn(r[i],a):r[i]=a}),s&&(r.schema=s))},PP=(e,t,r)=>(n={})=>{let{changes:o}=n;if(!o||!Array.isArray(o)||!o.length)return;o=e.call("deepDestringifyFunctions",o,Array.isArray(o)?[]:{});let s=UC(r,o);if(s.has("state")&&t.update(r.state),["pages","components","snippets","functions","assets"].some(i=>s.has(i))){let{pathname:i,search:a,hash:l}=r.window.location;e.call("router",i+a+l,e.__ref.root,{},{scrollToTop:!1})}s.has("designSystem")&&wd(r.designSystem)};var JN={success:"green",error:"red",warning:"yellow"},$P=(e,t,r)=>{if(e.symbols){if(!r.connected){r.notifications.connected={title:"Connected",message:"to the Symbols live server"},r.update({connected:!0});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}}else if(r.connected){r.notifications.connected={title:"Disconnected",type:"error"},r.update({connected:!1});let n=setTimeout(()=>{delete r.notifications.connected,t.notifications.content.connected&&t.notifications.content.connected.update({animation:"fadeOutDown"}),r.update({connected:!0}),clearTimeout(n)},3e3)}},IP={state:{notifications:[]},Notifications:{position:"fixed",left:"A2",bottom:"Z2",zIndex:"999",childExtends:"Notification",childProps:({state:e})=>({animationDuration:"C",background:JN[e.type||"success"],icon:null,Flex:{Title:{text:"{{ title }}"},P:{text:"{{ title }}"}},onRender:(t,r,n)=>{r.update({animation:"fadeInUp"})},onClick:(t,r,n)=>{delete n.notifications[r.key],r.update({animation:"fadeOutDown"}),n.onClose&&n.onClose(t,r,n)}}),IconText:null,childrenAs:"state",children:({state:e})=>e.notifications}};var QN=!1,eB=()=>QN?"http://localhost:8080":"https://api.symbols.app",tB=e=>{let t=e&&e.editor&&e.editor.socketUrl||e&&e.settings&&e.settings.socketUrl;return typeof t=="string"&&t?{mode:"collab",baseUrl:t}:e&&e.editor&&e.editor.runtime==="runner"?{mode:"runner",baseUrl:null}:{mode:null,baseUrl:null}},rB=async e=>{try{let t=e||eB(),r=await C.fetch(`${t}/service-token`,{method:"GET"}),n;try{let o=await r.clone().json();if(o&&typeof o.token=="string")return o.token.trim();n=await r.text()}catch{n=await r.text()}return(n||"").replace(/\s+/gu,"")||void 0}catch(t){console.error("[sync] Failed to fetch service-token",t)}},DP=(e,t,r,n)=>{e.on("snapshot",RP(t,r,n)),e.on("ops",PP(t,r,n)),e.on("clients",o=>{n.editor?.verbose&&$P(o,t,r)}),e.on("disconnect",o=>{n.editor?.verbose&&console.info("[sync] disconnected",o)})},nB=async(e,t,r,n)=>{let o=await rB(n);if(!o)return console.warn("[sync] no service token \u2014 collab disabled"),null;let s=r.key;if(!s)return console.warn("[sync] ctx.key missing \u2014 collab cannot authenticate"),null;let i=r.editor?.projectId||null,a=Eo(n,{path:"/collab-socket",transports:["websocket"],auth:{token:o,projectId:i,projectKey:s,branch:"main",live:!0,clientType:"platform"},reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return a.on("connect",()=>{r.editor?.verbose&&console.info("[sync] connected (collab)")}),DP(a,e,t,r),a},oB=(e,t,r)=>{let n=Eo({transports:["websocket","polling"],reconnectionAttempts:1/0,reconnectionDelayMax:4e3});return n.on("connect",()=>{r.editor?.verbose!==!1&&console.info("[sync] connected (runner)")}),DP(n,e,t,r),n.on("reload",()=>{typeof C<"u"&&C.location&&C.location.reload()}),n},sB=async(e,t,r)=>{let{mode:n,baseUrl:o}=tB(r);return n?n==="collab"?nB(e,t,r,o):n==="runner"?oB(e,t,r):null:null},iB={onInit:sB};var LP=e=>typeof e>"u",FP=e=>!!(e?.editor?.socketUrl||e?.settings?.socketUrl),jP=e=>e?.editor?.runtime==="runner",MP=(e,t)=>{Array.isArray(e.extends)?e.extends.push(t):e.extends?e.extends=[e.extends,t]:e.extends=[t]},NP={name:"sync",beforeCreate(e,t){let r=t&&t.editor;(r&&!LP(r.liveSync)?r.liveSync:FP(t)||jP(t))&&(FP(t)&&!jP(t)&&!t?.key||MP(e,iB))}},BP={name:"notifications",beforeCreate(e,t){if(!t)return;let r=LP(t.notifications)?null:t.notifications,n=t.editor&&t.editor.verbose===!0;(r===!0||r!==!1&&n)&&MP(e,IP)}};D();function VP(e){return A(e)?e:P(e)?e.find(t=>A(t)):""}function x0(e){if(!e)return;let t=e.__ref.__componentKey,r=e.extends&&VP(e.extends),n=e.parent&&e.parent.childExtends&&VP(e.parent.childExtends);return(t||r||n||"").split("_")[0].split(".")[0].split("+")[0]}function kd(e){if(!e||!e.__ref)return;let{components:t,pages:r,editor:n}=e.context,o=x0(e);return n&&n.onInitInspect&&!n.onInitInspect(o,e,e.state)?kd(e.parent):o&&(t[o]||r[o])?e:kd(e.parent)}var aB=(e,t,r)=>{let n=r.window||window;n.onkeydown=o=>{o.altKey&&o.shiftKey&&e.state.update({debugging:!0,preventSelect:!0},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0})},n.onkeyup=o=>{e.state.preventSelect&&(!o.altKey||!o.shiftKey)&&(e.state.replace({debugging:!1,preventSelect:!1},{preventUpdate:!0,preventContentUpdate:!0,preventRecursive:!0}),e.Inspector.state.update({area:!1}))}},b0={".preventSelect":{userSelect:"none"},"!preventSelect":{userSelect:"auto"},onInspect:aB,onMousemove:(e,t,r)=>{let n=e.target.ref,o=kd(n),s=t.Inspector.state;if(!o||!r.debugging||!o.__ref)return s.update({area:!1});let i=x0(o),a=c=>{s.update({area:c,focusKey:i})},l=()=>{if(e.altKey&&e.shiftKey){let{x:c,y:u,width:d,height:f}=o.node.getBoundingClientRect(),p={x:c,y:u,width:d,height:f};if(!s.area)return a(p);s.area.x!==p.x&&a(p)}else s.area&&s.update({area:!1})};window.requestAnimationFrame(()=>{l(),window.requestAnimationFrame(l)})},onMousedown:(e,t,r)=>{if(!r.debugging)return;let n=e.target.ref,o=kd(n);if(!o)return;let s=x0(o);if(!s)return;let i=n.context.editor;if(i&&i.onInspect)return i.onInspect(s,n,n.state,{allowRouterWhileInspect:!0});let a=JSON.stringify({componentKey:`${s}`});return n.context.socket?.emit&&n.context.socket.emit("route",a),e.preventDefault(),e.stopPropagation(),!1},Inspector:{state:{},transition:"all, defaultBezier, X",position:"fixed",hide:(e,t)=>!(t.area&&t.parent.debugging),style:{boxShadow:"0 0 10px #3686F733, 0 0 0 3px #3686F766, 0 0 100vmax 100vmax #000A",zIndex:"9999999",borderRadius:"10px",pointerEvents:"none"},Span:{position:"absolute",margin:"A2 0",fontSize:"Z",color:"text",zIndex:"99999999",transition:"all, defaultBezier, X",textDecoration:"underline",fontWeight:"500",top:"100%",style:{boxShadow:"0 25px 10px 35px black",textShadow:"0 0 10px black"},text:"{{ focusKey }}"},onInit:({context:e})=>{let{components:t}=e;if(S(t)){let{Content:r,...n}=t;for(let o in n)uo[o]||(n[o].__ref||(n[o].__ref={}),n[o].__ref.__componentKey||(n[o].__ref.__componentKey=o))}},onBeforeUpdate:(e,t,r)=>{let{area:n}=r,o=r.area&&r.parent.debugging,s;if(!o)s="display: none !important";else if(n){let{x:i,y:a,width:l,height:c}=n;s=`
109
109
  display: block !important;
110
110
  top: ${a-6}px;
111
111
  left: ${i-6}px;