smbls 3.14.818 → 3.14.819
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 +1 -1
- package/dist/smbls.esm.js +1 -1
- package/dist/smbls.iife-string.js +2 -2
- package/dist/smbls.iife.js +1 -1
- package/package.json +1 -1
package/dist/smbls.cjs
CHANGED
|
@@ -169,4 +169,4 @@ ${i}
|
|
|
169
169
|
[data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
|
|
170
170
|
box-shadow: none !important;
|
|
171
171
|
}
|
|
172
|
-
`,p$=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=d$,document.head.appendChild(t)},yA=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},h$=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},g$=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},m$=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],bA=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of m$){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},y$='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',b$=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(y$)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Kd={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(p$(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),po.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Xs(Dn(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return lx(e,Dn(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,bA(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=h$(t.content)),yA(t,n),bA(t,n),g$(t),n.focusIn&&b$(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;yA(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=mA(t.node);t._lastSize=i;let a=Dn(s.anchor,i,s.placement);t.node.style.maxHeight=lx(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=mA(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=Dn(e.anchor,n,e.placement);t.node.style.maxHeight=lx(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(o.side))}}}};var fx=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},Gd={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),fx(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&fx(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>fx(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Yd={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"},Xd={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Zd={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Jd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Qd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var ux={DropdownRoot:Kd,DropdownTrigger:Gd,Dropdown:Yd,DropdownList:Xd,DropdownParent:Zd,DropdownParentFocus:Jd,DropdownSiblingFocus:Qd};var hx={};$(hx,{DROPDOWN_DEFAULTS:()=>mr,closeDropdown:()=>po,computePosition:()=>Dn,dropdownFunctions:()=>px,fadeInTransform:()=>Xs,openDropdown:()=>Wd,setDropdownInert:()=>qd});var px={openDropdown:Wd,closeDropdown:po,setDropdownInert:qd};var _$=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),x$=(t,e,n,r,o)=>{let s=_$(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},_A=(t,e,n)=>Math.max(e,Math.min(n,t)),xA=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=x$(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=_A(i,6,r-e.width-6),a=_A(a,6,o-e.height-6),{left:i,top:a,side:s}},wA=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var tp={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},w$=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},SA=t=>t?.getRoot?.()?.TooltipRoot||null,kA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},vA=(t,e,n=0)=>{let r=kA(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>vA(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},S$=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},k$=0,v$=()=>`tooltip_${++k$}_${Date.now().toString(36)}`;function CA(t={}){let e=SA(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||w$(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||v$(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||tp.placement,theme:t.theme||tp.theme,open:!0,size:null};return e.state.update({tip:s}),S$(()=>vA(e,o)),o}function EA(t){let e=SA(this);if(!e)return;let n=kA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var gx=t=>{let e=t.tip;return e?.anchor?xA(e.anchor,e.size||{width:0,height:0},e.placement):null},ep=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},AA={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=gx(t);return e?e.left+"px":"-9999px"},top:t=>{let e=gx(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||tp.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>ep(t)?"1":"0",visibility:t=>ep(t)?"visible":"hidden",transform:t=>{if(ep(t))return"none";let e=gx(t);return wA(e?e.side:"bottom")},transition:t=>{let e=ep(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var mx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},C$=t=>{t.tooltipText&&(mx(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},TA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,C$(t)},t.tooltipDelay??250))},OA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},RA={onMouseenter:(t,e)=>TA(e),onMouseleave:(t,e)=>OA(e),onFocus:(t,e)=>TA(e),onBlur:(t,e)=>OA(e),onMouseover:(t,e)=>mx(e),onFocusin:(t,e)=>mx(e)};var PA={display:"flex",theme:"dialog",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:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},DA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},IA={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var LA={TooltipRoot:AA,TooltipTrigger:RA,Tooltip:PA,TooltipHidden:DA,TooltipParent:IA};var $A={openTooltip:CA,closeTooltip:EA};var MA=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),FA=t=>tn(t)?t.library!==void 0?t.library:t.key??t.name:t,E$=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=FA(i);if(!MA(a))return i;let c=s(a);return c?tn(i)?{...i,library:c}:c:null}).filter(Boolean)},bx=new WeakMap,A$={lazy:!0,window:globalThis},yx=t=>{let e=bx.get(t);e&&(bx.delete(t),iE(e))},T$=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(S(t)?t:"smblsapp");if(e.define=e.define||Ps,e.cssPropsRegistry=wt,e.window=tE(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=FA(p);return typeof g=="string"||MA(g)})){e.sharedLibraries=E$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),zo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:D_()})}G1(e.sharedLibraries),pE(e)}Jc(e,e.designSystem);let[s,i]=fE(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ic.prepareContext(e);let a=uE(t,e);if(e.state=a,Qi(a),e.pages=dE(t,e),e.components=eE(e),e.utils=nE(e),Vn[e.packageManager]){let h=sE(e);h&&h.deferred?(h.blocking&&await B_({...e,dependencies:h.blocking}),bx.set(e,h.deferred)):e.dependencies=await B_(e)}if(e.methods=rE(e),e.routerOptions=VC(t,e),e.defaultExtends=[ju],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(p=>!p||typeof p!="object");e.plugins=e.plugins.filter(p=>p&&typeof p=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(p=>JSON.stringify(p)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&v(e.globalScope)&&(e.globalScope=_i(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!v(g))return;let m=_e(g,{},A$);try{Object.assign(g,m)}catch(y){if(p)h[p]=m;else throw y}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f("polyglot")){e.plugins.push(Is);for(let h in Uc)typeof e.functions[h]!="function"&&(e.functions[h]=Uc[h])}if(f("helmet")||e.plugins.push(o_),e.fetch&&!f("fetch")&&e.plugins.push(gg),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Qu),e.cssPropsRegistry.useCapsize=c_),e.shorthand&&!f("shorthand")&&e.plugins.push(Ic),e.analyze&&!f("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=fd(h),e.plugins.push($s)}e.sync!==!1&&!f("sync")&&e.plugins.push(lA),e.inspect&&!f("inspect")&&e.plugins.push(R_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(fA);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)v(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!="function"&&(e.functions[m]=g[m])}};return d("windows",sx,Pn),d("dropdown",ux,px),d("tooltip",LA,$A),e},_x=async(t,e)=>{v(e)||(e={}),pn(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):v(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await T$(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&v(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=QC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await aE({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return yx(e),t;let i=e.parent||s.body;if(r){let c=O$(he,t,i,e,n,o);return yx(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return yx(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},O$=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return R$(o),c},R$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var xx=(t,e)=>ot(t,v(e)?e:{}),P$=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},D$=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},NA=t=>{let e=D$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},wx=(t,e=cr,n)=>{let r={...cr,...xx(e,n)};return NA(r),P$(r),_x(t,r).then(s=>{if(n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},I$=(t,e=cr,n)=>{let r=wx(t,e,n),o={...cr,...xx(e,n)},s=o.key;return WC(r,s,{utils:wc,...o}),r},L$=async(t,e=cr,n)=>{let r={...cr,...xx(e,n)};NA(r);let o=e.key;await HC(o,r);let s=await _x(t,r);return n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},$$=(t={},e=cr,n)=>wx({deps:{isUndefined:Dt},...t},ot({domqlOptions:{onlyResolveExtends:!0}},e),n);Wu(rc);H1(void 0,{smbls:Sx});W1(void 0,{"@symbo.ls/windows":()=>({...ix,...ox}),"@symbo.ls/dropdown":()=>({...dx,...hx})});
|
|
172
|
+
`,p$=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=d$,document.head.appendChild(t)},yA=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},h$=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},g$=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},m$=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],bA=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of m$){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},y$='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',b$=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(y$)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},Kd={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(p$(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),po.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Xs(Dn(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return lx(e,Dn(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,bA(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=h$(t.content)),yA(t,n),bA(t,n),g$(t),n.focusIn&&b$(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;yA(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=mA(t.node);t._lastSize=i;let a=Dn(s.anchor,i,s.placement);t.node.style.maxHeight=lx(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=mA(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=Dn(e.anchor,n,e.placement);t.node.style.maxHeight=lx(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(o.side))}}}};var fx=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},Gd={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),fx(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&fx(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>fx(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Yd={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"},Xd={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Zd={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Jd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Qd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var ux={DropdownRoot:Kd,DropdownTrigger:Gd,Dropdown:Yd,DropdownList:Xd,DropdownParent:Zd,DropdownParentFocus:Jd,DropdownSiblingFocus:Qd};var hx={};$(hx,{DROPDOWN_DEFAULTS:()=>mr,closeDropdown:()=>po,computePosition:()=>Dn,dropdownFunctions:()=>px,fadeInTransform:()=>Xs,openDropdown:()=>Wd,setDropdownInert:()=>qd});var px={openDropdown:Wd,closeDropdown:po,setDropdownInert:qd};var _$=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),x$=(t,e,n,r,o)=>{let s=_$(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},_A=(t,e,n)=>Math.max(e,Math.min(n,t)),xA=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=x$(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=_A(i,6,r-e.width-6),a=_A(a,6,o-e.height-6),{left:i,top:a,side:s}},wA=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var tp={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},w$=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},SA=t=>t?.getRoot?.()?.TooltipRoot||null,kA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},vA=(t,e,n=0)=>{let r=kA(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>vA(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},S$=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},k$=0,v$=()=>`tooltip_${++k$}_${Date.now().toString(36)}`;function CA(t={}){let e=SA(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||w$(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||v$(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||tp.placement,theme:t.theme||tp.theme,open:!0,size:null};return e.state.update({tip:s}),S$(()=>vA(e,o)),o}function EA(t){let e=SA(this);if(!e)return;let n=kA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var gx=t=>{let e=t.tip;return e?.anchor?xA(e.anchor,e.size||{width:0,height:0},e.placement):null},ep=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},AA={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=gx(t);return e?e.left+"px":"-9999px"},top:t=>{let e=gx(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||tp.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>ep(t)?"1":"0",visibility:t=>ep(t)?"visible":"hidden",transform:t=>{if(ep(t))return"none";let e=gx(t);return wA(e?e.side:"bottom")},transition:t=>{let e=ep(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var mx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},C$=t=>{t.tooltipText&&(mx(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},TA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,C$(t)},t.tooltipDelay??250))},OA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},RA={onMouseenter:(t,e)=>TA(e),onMouseleave:(t,e)=>OA(e),onFocus:(t,e)=>TA(e),onBlur:(t,e)=>OA(e),onMouseover:(t,e)=>mx(e),onFocusin:(t,e)=>mx(e)};var PA={display:"flex",theme:"dialog",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:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},DA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},IA={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var LA={TooltipRoot:AA,TooltipTrigger:RA,Tooltip:PA,TooltipHidden:DA,TooltipParent:IA};var $A={openTooltip:CA,closeTooltip:EA};var MA=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),FA=t=>tn(t)?t.library!==void 0?t.library:t.key??t.name:t,E$=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=FA(i);if(!MA(a))return i;let c=s(a);return c?tn(i)?{...i,library:c}:c:null}).filter(Boolean)},bx=new WeakMap,A$={lazy:!0,window:globalThis},yx=t=>{let e=bx.get(t);e&&(bx.delete(t),iE(e))},T$=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(S(t)?t:"smblsapp");if(e.define=e.define||Ps,e.cssPropsRegistry=wt,e.window=tE(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=FA(p);return typeof g=="string"||MA(g)})){e.sharedLibraries=E$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),zo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:D_()})}G1(e.sharedLibraries),pE(e)}Jc(e,e.designSystem);let[s,i]=fE(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ic.prepareContext(e);let a=uE(t,e);if(e.state=a,Qi(a),e.pages=dE(t,e),e.components=eE(e),e.utils=nE(e),Vn[e.packageManager]){let h=sE(e);h&&h.deferred?(h.blocking&&await B_({...e,dependencies:h.blocking}),bx.set(e,h.deferred)):e.dependencies=await B_(e)}if(e.methods=rE(e),e.routerOptions=VC(t,e),e.defaultExtends=[ju],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(p=>!p||typeof p!="object");e.plugins=e.plugins.filter(p=>p&&typeof p=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(p=>JSON.stringify(p)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&v(e.globalScope)&&(e.globalScope=_i(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!v(g))return;let m=_e(g,{},A$);try{Object.assign(g,m)}catch(y){if(p)h[p]=m;else throw y}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f("polyglot")){e.plugins.push(Is);for(let h in Uc)typeof e.functions[h]!="function"&&(e.functions[h]=Uc[h])}if(f("helmet")||e.plugins.push(o_),e.fetch&&!f("fetch")&&e.plugins.push(gg),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Qu),e.cssPropsRegistry.useCapsize=c_),e.shorthand&&!f("shorthand")&&e.plugins.push(Ic),e.analyze&&!f("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=fd(h),e.plugins.push($s)}e.sync!==!1&&!f("sync")&&e.plugins.push(lA),e.inspect&&!f("inspect")&&e.plugins.push(R_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(fA);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)v(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!="function"&&(e.functions[m]=g[m])}};return d("windows",sx,Pn),d("dropdown",ux,px),d("tooltip",LA,$A),e},_x=async(t,e)=>{v(e)||(e={}),pn(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):v(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await T$(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&v(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=QC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await aE({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return yx(e),t;let i=e.parent||s.body;if(r){let c=O$(he,t,i,e,n,o);return yx(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return yx(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},O$=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return R$(o),c},R$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var xx=(t,e)=>ot(t,v(e)?e:{}),P$=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},D$=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},NA=t=>{let e=D$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},wx=(t,e=cr,n)=>{let r={...cr,...xx(e,n)};return NA(r),P$(r),_x(t,r).then(s=>{if(n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},I$=(t,e=cr,n)=>{let r=wx(t,e,n),o={...cr,...xx(e,n)},s=o.key;return WC(r,s,{utils:wc,...o}),r},L$=async(t,e=cr,n)=>{let r={...cr,...xx(e,n)};NA(r);let o=e.key;await HC(o,r);let s=await _x(t,r);return n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},$$=(t={},e=cr,n)=>wx({deps:{isUndefined:Dt},...t},ot({domqlOptions:{onlyResolveExtends:!0}},e),n);Wu(rc);H1(void 0,{smbls:Sx});W1(void 0,{"@symbo.ls/windows":()=>({...ix,...ox}),"@symbo.ls/dropdown":()=>({...dx,...hx})});
|
package/dist/smbls.esm.js
CHANGED
|
@@ -169,4 +169,4 @@ ${i}
|
|
|
169
169
|
[data-smbls-dropdown="panel"]:not([data-smbls-shadowed]) {
|
|
170
170
|
box-shadow: none !important;
|
|
171
171
|
}
|
|
172
|
-
`,d$=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=u$,document.head.appendChild(t)},mA=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},p$=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},h$=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},g$=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],yA=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of g$){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},m$='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',y$=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(m$)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},qd={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(d$(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),po.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Xs(Dn(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return lx(e,Dn(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,yA(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=p$(t.content)),mA(t,n),yA(t,n),h$(t),n.focusIn&&y$(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;mA(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=gA(t.node);t._lastSize=i;let a=Dn(s.anchor,i,s.placement);t.node.style.maxHeight=lx(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=gA(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=Dn(e.anchor,n,e.placement);t.node.style.maxHeight=lx(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(o.side))}}}};var fx=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},Kd={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),fx(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&fx(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>fx(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Gd={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"},Yd={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Xd={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Zd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Jd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var ux={DropdownRoot:qd,DropdownTrigger:Kd,Dropdown:Gd,DropdownList:Yd,DropdownParent:Xd,DropdownParentFocus:Zd,DropdownSiblingFocus:Jd};var hx={};$(hx,{DROPDOWN_DEFAULTS:()=>mr,closeDropdown:()=>po,computePosition:()=>Dn,dropdownFunctions:()=>px,fadeInTransform:()=>Xs,openDropdown:()=>Hd,setDropdownInert:()=>Wd});var px={openDropdown:Hd,closeDropdown:po,setDropdownInert:Wd};var b$=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),_$=(t,e,n,r,o)=>{let s=b$(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},bA=(t,e,n)=>Math.max(e,Math.min(n,t)),_A=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=_$(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=bA(i,6,r-e.width-6),a=bA(a,6,o-e.height-6),{left:i,top:a,side:s}},xA=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var Qd={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},x$=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},wA=t=>t?.getRoot?.()?.TooltipRoot||null,SA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},kA=(t,e,n=0)=>{let r=SA(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>kA(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},w$=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},S$=0,k$=()=>`tooltip_${++S$}_${Date.now().toString(36)}`;function vA(t={}){let e=wA(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||x$(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||k$(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||Qd.placement,theme:t.theme||Qd.theme,open:!0,size:null};return e.state.update({tip:s}),w$(()=>kA(e,o)),o}function CA(t){let e=wA(this);if(!e)return;let n=SA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var gx=t=>{let e=t.tip;return e?.anchor?_A(e.anchor,e.size||{width:0,height:0},e.placement):null},tp=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},EA={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=gx(t);return e?e.left+"px":"-9999px"},top:t=>{let e=gx(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Qd.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>tp(t)?"1":"0",visibility:t=>tp(t)?"visible":"hidden",transform:t=>{if(tp(t))return"none";let e=gx(t);return xA(e?e.side:"bottom")},transition:t=>{let e=tp(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var mx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},v$=t=>{t.tooltipText&&(mx(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},AA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,v$(t)},t.tooltipDelay??250))},TA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},OA={onMouseenter:(t,e)=>AA(e),onMouseleave:(t,e)=>TA(e),onFocus:(t,e)=>AA(e),onBlur:(t,e)=>TA(e),onMouseover:(t,e)=>mx(e),onFocusin:(t,e)=>mx(e)};var RA={display:"flex",theme:"dialog",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:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},PA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},DA={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var IA={TooltipRoot:EA,TooltipTrigger:OA,Tooltip:RA,TooltipHidden:PA,TooltipParent:DA};var LA={openTooltip:vA,closeTooltip:CA};var $A=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),MA=t=>tn(t)?t.library!==void 0?t.library:t.key??t.name:t,C$=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=MA(i);if(!$A(a))return i;let c=s(a);return c?tn(i)?{...i,library:c}:c:null}).filter(Boolean)},bx=new WeakMap,E$={lazy:!0,window:globalThis},yx=t=>{let e=bx.get(t);e&&(bx.delete(t),sE(e))},A$=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(S(t)?t:"smblsapp");if(e.define=e.define||Ps,e.cssPropsRegistry=wt,e.window=Q1(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=MA(p);return typeof g=="string"||$A(g)})){e.sharedLibraries=C$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),zo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:D_()})}K1(e.sharedLibraries),dE(e)}Jc(e,e.designSystem);let[s,i]=lE(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ic.prepareContext(e);let a=fE(t,e);if(e.state=a,Qi(a),e.pages=uE(t,e),e.components=tE(e),e.utils=eE(e),Vn[e.packageManager]){let h=oE(e);h&&h.deferred?(h.blocking&&await B_({...e,dependencies:h.blocking}),bx.set(e,h.deferred)):e.dependencies=await B_(e)}if(e.methods=nE(e),e.routerOptions=BC(t,e),e.defaultExtends=[Nu],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(p=>!p||typeof p!="object");e.plugins=e.plugins.filter(p=>p&&typeof p=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(p=>JSON.stringify(p)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&v(e.globalScope)&&(e.globalScope=_i(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!v(g))return;let m=_e(g,{},E$);try{Object.assign(g,m)}catch(y){if(p)h[p]=m;else throw y}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f("polyglot")){e.plugins.push(Is);for(let h in Uc)typeof e.functions[h]!="function"&&(e.functions[h]=Uc[h])}if(f("helmet")||e.plugins.push(o_),e.fetch&&!f("fetch")&&e.plugins.push(gg),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Ju),e.cssPropsRegistry.useCapsize=c_),e.shorthand&&!f("shorthand")&&e.plugins.push(Ic),e.analyze&&!f("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=ld(h),e.plugins.push($s)}e.sync!==!1&&!f("sync")&&e.plugins.push(cA),e.inspect&&!f("inspect")&&e.plugins.push(R_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(lA);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)v(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!="function"&&(e.functions[m]=g[m])}};return d("windows",sx,Pn),d("dropdown",ux,px),d("tooltip",IA,LA),e},_x=async(t,e)=>{v(e)||(e={}),pn(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):v(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await A$(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&v(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=JC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await iE({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return yx(e),t;let i=e.parent||s.body;if(r){let c=T$(he,t,i,e,n,o);return yx(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return yx(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},T$=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return O$(o),c},O$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var xx=(t,e)=>ot(t,v(e)?e:{}),R$=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},P$=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},FA=t=>{let e=P$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},wx=(t,e=cr,n)=>{let r={...cr,...xx(e,n)};return FA(r),R$(r),_x(t,r).then(s=>{if(n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},D$=(t,e=cr,n)=>{let r=wx(t,e,n),o={...cr,...xx(e,n)},s=o.key;return HC(r,s,{utils:wc,...o}),r},I$=async(t,e=cr,n)=>{let r={...cr,...xx(e,n)};FA(r);let o=e.key;await zC(o,r);let s=await _x(t,r);return n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},L$=(t={},e=cr,n)=>wx({deps:{isUndefined:Dt},...t},ot({domqlOptions:{onlyResolveExtends:!0}},e),n);Hu(rc);z1(void 0,{smbls:Sx});H1(void 0,{"@symbo.ls/windows":()=>({...ix,...ox}),"@symbo.ls/dropdown":()=>({...dx,...hx})});export{ky as ANIMATION_PROPS,fP as ARIA_ROLES,Zr as ATTR_TRANSFORMS,vy as BLOCK_PROPS,Se as CDN_PROVIDERS,Mr as COMPOUND_CSS_KEYWORDS,Br as CONFIG,fe as CONFIG_MERGE_EXL,yf as CSS_NAMED_COLOR_HEX,ce as CSS_NATIVE_COLOR_REGEX,wt as CSS_PROPS_REGISTRY,xo as CSS_UNITS,yc as DEFAULT_CONFIG,Tt as DEFAULT_CSS_PROPERTIES_LIST,ps as DELEGATED_EVENTS,i_ as DESIGN_SYSTEM_OPTIONS,Kp as DOMQL_EVENTS,Ln as DOMQ_PROPERTIES,y0 as DOM_EVENTS,vo as ELEMENT_METHOD_OVERRIDE_POINTS,uh as ENV,le as FACTORY,Oy as FLEX_PROPS,Cy as FONT_PROPS,Ry as GRID_PROPS,W1 as HOST_REGISTERED_PACKAGES,lu as HTML_ATTRIBUTES,Ao as HTML_TAGS,er as LIFECYCLE_EVENTS,Mn as METHODS,gi as METHODS_EXL,Ey as MISC_PROPS,su as MIXINS,Le as NODE_ENV,Vi as OPTIONS,Vn as PACKAGE_MANAGER_TO_CDN,hi as PARSED_DOMQ_PROPERTIES,Ay as POSITION_PROPS,$n as PROPS_METHODS,Vt as REGISTRY,Dx as RESERVED_STORE_METHODS,Ku as ROUTER_OPTIONS,bo as SIGNAL_ENGINE_KEY,mo as SIGNAL_INSTANCES_KEY,Bf as STANDARD_SCHEME_QUERIES,Wp as STATE_PROPERTIES,Px as STORE_METHOD_NAMES,us as SVG_TAGS,Ty as THEME_PROPS,ic as TIMING_PROPS,ai as TYPES,uf as UNIVERSAL_RESERVED_KEYS,Xf as VALUE_TRANSFORMERS,Lx as VERSION,Kg as __resetBuiltinMethodWarnings,_p as __resetSignalEngine,bp as __resetSignalInstances,Zm as __resetSkinWarnings,Ix as __resetStateShadowWarnings,uS as activateConfig,zl as addCaching,Ul as addContext,oc as addDelegatedEvent,Lh as addExtend,Ye as addExtends,Dp as addItemAfterEveryElement,_s as addMethods,fi as addProtoToArray,jl as addRef,Jo as aliasCaseVariants,Cm as animation,Xa as appendSVGSprite,qr as appendSvgIconsSprite,xy as applyAttrTransforms,Qb as applyCSS,Qh as applyDependentState,Ya as applyDocument,Yl as applyEvent,Xl as applyEventUpdate,gs as applyExtends,zf as applyHeadings,wu as applyInitialState,Wn as applyMediaSequenceVars,Li as applyProps,Za as applyReset,La as applySequenceGlobalVars,xn as applySequenceVars,Ja as applySkins,Na as applySpacingSequence,me as applyStateMethods,Ga as applyTimingSequence,Dy as applyTrueProps,Wa as applyTypographySequence,Cp as arrayContainsOtherArray,Lp as arraysEqual,Lr as arrayzeValue,ly as assertEmitIntegrity,al as batch,km as breakpoints,ya as buildImgSrcset,Kr as buildSkinVarStyles,ba as buildSourcesAndImg,Wu as buildThemeVarStyles,og as cache,tr as cacheNode,Eg as call,cc as callStateMethod,sn as camelToAttr,b0 as camelToLowerAttr,Tg as captureSnapshot,Zf as changeGlobalTheme,im as changeLightness,Oe as checkAttributeByTagName,_y as checkEventFunctions,Yh as checkForStateTypes,Fa as checkIfBoxSize,Gl as checkIfInherits,Fp as checkIfStringIsInArray,Rm as class,Xp as clone,Ei as cloneAndMergeArrayExtend,bh as cloneFunction,To as collectExtendsList,mm as color,ke as colorStringToRgbaArray,Es as components,Fr as compositeOverBackdrop,Ph as concatAddExtends,qo as contrastRatio,Ma as convertSvgToSymbol,Xg as copyJavaScriptToClipboard,Yg as copyStringToClipboard,wx as create,D$ as createAsync,Nl as createBasedOnType,Tx as createComputed,Aa as createConfig,ZC as createDefine,G as createEffect,Gh as createElement,El as createElementExtends,Ti as createExtends,Oo as createExtendsFromKeys,Rl as createExtendsStack,fs as createHTMLNode,_h as createIfConditionFlag,Xh as createInheritedState,ki as createKey,oh as createNestedObject,Jh as createNestedObjectByKeyPath,bl as createObjectWithoutPrototype,Bl as createParent,Vl as createPath,$i as createProps,Ml as createPropsStack,Kh as createRoot,eg as createScope,ll as createScopeStore,ni as createSignal,L$ as createSkeleton,Si as createSnapshotId,Uy as createState,fn as createStore,I$ as createSync,pe as css,$f as cssMediaVars,Lf as cssVars,Hp as customDecodeURIComponent,zp as customEncodeURIComponent,Rp as cutArrayAfterValue,Op as cutArrayBeforeValue,vi as debounce,mh as debounceOnContext,Up as decodeNewlines,it as deepClone,nh as deepContains,pa as deepDefaults,_e as deepDestringifyFunctions,Cl as deepExtend,ot as deepMerge,Xe as deepMergeExtends,yi as deepStringifyFunctions,Ps as defaultDefine,Zo as defineResolvedThemeSignal,vg as defineSetter,Xo as defineThemeSignal,_i as destringifyGlobalScope,kc as destroy,Ig as detectHeightOnInit,ch as detectInfiniteLoop,Qn as detectTag,vm as devices,rr as dispose,Vp as encodeNewlines,Pr as error,fh as excludeKeysFromObject,ft as exec,hP as executeAttr,qP as exetuteClassPerComponent,Dh as extendCachedRegistry,Oi as extendStackRegistry,Pi as extractArrayExtend,yP as extractConditionalAttrs,mf as fetchLibraryData,Lg as fibonacciNumberByIndex,$p as filterArrays,Mp as filterArraysFast,pP as filterAttributesByTagName,Pl as finalizeExtends,gf as findClosestNumber,Hg as findClosestNumberInFactory,Nf as findHeadingLetter,Ia as findHeadings,Kl as findInheritedState,jp as findKeyPosition,Ro as flattenExtend,fm as font,pm as fontFace,um as fontFamily,dm as fontFamilyTypes,Dg as formatDate,Sl as generateHash,hf as generateHeadArrayTags,wi as generateKey,Ug as generateMetaTags,Qt as generateSequence,Fm as generateSequencePosition,$a as generateSprite,Pa as generateSubSequence,xg as get,T as getActiveConfig,Xr as getActiveDocument,lr as getActiveLang,df as getCDNDirUrl,Me as getCDNUrl,uy as getCacheSize,Fh as getCapitalCaseKeys,No as getCdnProviderFromConfig,ql as getChildStateInKey,kg as getChildren,et as getColor,Sf as getColorShade,oa as getContext,vh as getCookie,la as getDB,Nr as getDefaultOrFirstKey,ru as getEmitStats,tm as getEmotionStylesheet,$h as getExtendsInElement,Ai as getExtendsStack,vl as getExtendsStackRegistry,_n as getFnPrefixAndValue,cm as getFontFace,jr as getFontFaceEach,Rf as getFontFaceEachString,ka as getFontFaceString,Ha as getFontFamily,Tf as getFontFormat,qa as getFontSizeByKey,Ep as getFrequencyInArray,Ie as getFunctionSource,Ri as getHashedExtend,Pg as getImportMapScript,ah as getInObjectByPath,Cc as getLanguages,Rc as getLocalStateLang,Eh as getLocalStorage,$t as getMediaColor,Ae as getMediaTheme,gh as getNev,cl as getObserver,zg as getPageMetadata,Wl as getParentStateInKey,Ji as getPath,fa as getQuery,Sg as getRef,fS as getResolvedThemeSignal,en as getRgbTone,ea as getRoot,ra as getRootContext,na as getRootData,ta as getRootState,Hl as getRootStateInKey,Vf as getSafeInk,Vm as getSafeInkInfo,Vr as getSequenceValue,Da as getSequenceValueBySymbols,rn as getSequenceValuePropertyPair,Ba as getShadow,Ka as getShapeByKey,Rx as getSignals,Ee as getSpacingBasedOnRatio,At as getSpacingByKey,Nh as getSpreadChildren,Ra as getSubratio,Oa as getSubratioDifference,ge as getSystemGlobalTheme,Wm as getTheme,lS as getThemeSignal,de as getTimingByKey,Te as getTimingFunction,Sp as global,ym as gradient,Om as grid,Ge as hasFunction,Co as hasHandlerPlugin,Qp as hasOwnProperty,Bo as hashContent,nm as hexToRgb,bf as hexToRgbArray,om as hexToRgba,wf as hslToRgb,xm as icons,Tl as inheritChildExtends,Al as inheritChildPropsExtends,Mi as inheritParentProps,Ol as inheritRecursiveChildExtends,En as init,Xu as initPolyglot,Hh as initProps,xt as injectGlobal,Zt as is,R as isArray,ul as isBoolean,qp as isBuiltinElementMethod,_t as isCSSVar,jh as isContextComponent,lh as isCyclic,Xt as isDOMNode,pl as isDate,Rt as isDefined,Nn as isDevelopment,un as isDomDocument,ml as isEmpty,th as isEmptyObject,an as isEnumeratedTrueFalseAttr,yl as isEqualDeep,Cr as isFailedRevival,O as isFunction,Ko as isGoogleFontsUrl,dn as isHostObject,si as isHtmlElement,Zp as isLazyFunction,hh as isLocal,ht as isLoudDevRuntime,Dr as isMalformedDependency,Ag as isMethod,Sh as isMobile,pn as isNode,vp as isNot,Ar as isNotProduction,dl as isNull,Ke as isNumber,v as isObject,j as isObjectLike,$g as isPhoto,Gn as isPlainColor,Bi as isPolyglotRetranslatableKey,Or as isPolyglotWritableKey,Fn as isProduction,wr as isProtectedElementMethod,ri as isRawUnitValue,Fe as isResolvedColor,br as isScalingUnit,ph as isStaging,Zh as isState,St as isStore,S as isString,Ci as isStringFunction,ds as isSvgTag,xl as isTest,dh as isTesting,Hy as isTracking,Dt as isUndefined,Og as isUniversallyReservedKey,Un as isUnresolvableDependency,Ir as isValidDependencyMap,Th as isValidHtmlTag,ls as isValidTag,MC as isWasmLoaded,tn as isWrappedLibrary,wp as isWritableFamilyBucket,wo as joinArrays,Ih as jointStacks,cs as keyframes,lf as keys,Cf as linearChannelToSrgb,jg as loadCssFile,Bg as loadJavascript,Mg as loadJavascriptFile,Ng as loadJavascriptFileEmbedSync,Fg as loadJavascriptFileSync,Vg as loadRemoteCSS,jo as loadRemoteScript,Ac as loadTranslations,$C as loadWasm,Cg as log,wh as logGroupIf,xh as logIf,bg as lookdown,_g as lookdownAll,yg as lookup,_r as lowercaseFirstLetter,eh as makeObjectWithoutPrototype,Yp as map,Di as mapStringsWithContextComponents,Je as markPolyglotSeeded,Ze as matchesComponentNaming,hm as media,yh as memoize,bt as merge,ha as mergeSharedLibraries,em as mixTwoColors,sm as mixTwoRgb,kf as mixTwoRgba,ia as nextElement,zn as normalizeIgnoreList,Vo as normalizeLibraryKey,nn as numToLetterMap,bi as objectToString,Ii as objectizeStringProperty,Ef as oklabToLinearSrgb,xa as oklabToOklch,wa as oklchToGamutSafeSrgb,Af as oklchToOklab,Wo as opacify,xi as overwrite,Wt as overwriteDeep,Er as overwriteShallow,tg as overwriteState,In as parkHostObject,ff as parse,Bt as parseColorToken,Xi as parseDeep,Ll as pickupElementFromProps,Il as pickupPropsFromElement,Uc as polyglotFunctions,Is as polyglotPlugin,Po as polyglotSeededKeys,rt as popConfig,pu as popStaticCssPass,aa as previousElement,Lo as promoteActiveRootState,Uh as propExists,$l as propertizeElement,Vh as propertizeUpdate,st as pushConfig,du as pushStaticCssPass,Ur as quietColorProbe,mu as refreshContextProto,hs as registerEvent,q1 as registerHostPackages,yo as registerSignalInstance,Jb as reinit,$r as relativeLuminance,bs as remove,Zg as removeChars,Ch as removeCookie,sc as removeDelegatedEvent,Ni as removeDuplicateProps,So as removeDuplicatesInArray,Ap as removeFromArray,rh as removeFromObject,sh as removeNestedKeyByPath,li as removeValueFromArray,Pp as removeValueFromArrayAll,Ip as reorderArrayByValues,Mt as replaceLiteralsWithObjectFields,Bp as replaceOctalEscapeSequences,cy as resetEmitStats,Jt as resolveAsset,ue as resolveBorderValue,zr as resolveColorRgb,tc as resolveColorsInGradient,_o as resolveConfigDocument,R0 as resolveDesignSystemClass,by as resolveFileSource,ve as resolveFileUrl,C0 as resolveGridTracks,Eo as resolveHandler,nr as resolvePropValue,Hr as resolveShadowValue,Gg as resolveSharedLibraries,am as returnSubThemeOrDefault,Fl as returnValueAsText,_f as rgbArrayToHex,xf as rgbToHSL,rm as rgbToHex,Pt as runPluginHook,Uf as runThroughMedia,Xn as schemeGuardSelector,Yn as schemeMediaQuery,Yo as scratchDefaultConfig,rs as scratchSystem,qn as scratchUtils,kp as self,wm as semanticIcons,bn as sequence,ee as serializeAttrValue,Gr as set,Mf as setActiveConfig,ay as setActiveDocument,Qi as setActiveRootState,Zn as setAdaptiveSchemeVar,hD as setClass,KP as setClassname,Kn as setColor,kh as setCookie,Hu as setCssEngineHook,Sa as setCustomFont,Hn as setCustomFontMedia,ty as setEach,za as setFont,es as setFontFamily,Go as setFontImport,Qo as setGradient,kl as setHashedExtend,Of as setInCustomFontMedia,ih as setInObjectByPath,Tc as setLang,Ah as setLocalStorage,ts as setMediaTheme,cf as setNodeStyles,Ox as setObserver,wg as setProps,Fi as setPropsPrototype,ns as setSVG,Ta as setScalingVar,Jn as setShadow,Ff as setSubScalingVar,Wr as setSvgIcon,Ua as setTheme,Qm as setValue,Nm as setVariables,rc as setWasmEngine,_m as shadow,Im as shape,qg as sharedLibrary,Dm as sizes,Lm as skins,gm as spacing,ua as splitPackageSpecifier,ja as splitSpacedValue,yn as splitTopLevelCommas,ut as splitTopLevelSpaces,Yf as splitTransition,Zi as spotByPath,Uo as srcsetFor,vf as srgbChannelToLinear,_a as srgbToOklab,di as stringIncludesAny,Jp as stringToObject,da as stripVersionRangePrefix,Em as svg,Am as svgData,Tp as swapItemsInArray,ji as syncProps,Tm as templates,bm as theme,Sm as timing,Ea as toCamel,ga as toCamelCase,ma as toDashCase,Qg as toDescriptionCase,Ho as toLinearChannel,xe as toPriorityOrder,Jg as toTitleCase,Rg as toggleFullscreen,qf as transformBackgroundImage,on as transformBorder,wn as transformBorderRadius,Qa as transformBoxShadow,D0 as transformClassname,ec as transformDuration,Gf as transformGridTemplate,Wf as transformShadow,kt as transformSize,L as transformSizeRatio,Hf as transformTextStroke,Jm as transformTransition,Iy as transformersByPrefix,Kf as transfromGap,Ec as translate,gn as triggerEventOn,ng as triggerEventOnUpdate,Np as trimStringFromSymbols,va as typography,lm as unit,ci as unstackArrayOfObjects,ms as update,Wh as updateProps,pD as updateVars,Oc as upsertTranslation,re as useCssInProps,zy as useHostState,O0 as usePropsAsCSS,P0 as useSelectorsAsCSS,ca as variables,Pm as vars,$o as verbose,sa as warn,fl as warnStateKeyShadowsMethod,C as window,Sn as wrapHoverRule};
|
|
172
|
+
`,d$=()=>{if(typeof document>"u"||document.getElementById("smbls-dropdown-css"))return;let t=document.createElement("style");t.id="smbls-dropdown-css",t.textContent=u$,document.head.appendChild(t)},mA=(t,e)=>{if(!t.node)return;let n=e?.background;if(!n)t.node.removeAttribute("data-smbls-surface");else{let r=/^[a-z][\w.+-]*$/i.test(n)?`var(--color-${n})`:n;t.node.style.setProperty("--smbls-dropdown-surface",r),t.node.setAttribute("data-smbls-surface","")}e?.theme?t.node.setAttribute("data-smbls-themed",""):t.node.removeAttribute("data-smbls-themed"),e?.shadow||t.scope?.bodyShadow?t.node.setAttribute("data-smbls-shadowed",""):t.node.removeAttribute("data-smbls-shadowed")},p$=t=>{if(!t)return null;let e=typeof t.shadow=="function"?t.shadow(t,t.state):t.shadow;return typeof e=="string"&&e?e:null},h$=t=>{t.node&&(t.node.removeAttribute("data-smbls-open"),t.node.offsetWidth,t.node.setAttribute("data-smbls-open","true"))},g$=[["role","role"],["aria-label","ariaLabel"],["aria-labelledby","ariaLabelledby"]],yA=(t,e)=>{if(!t.node)return;let n=new Set;for(let[r,o]of g$){let s=e?.[o];s&&(t.node.setAttribute(r,s),n.add(r))}if(t.__a11yAttrs)for(let r of t.__a11yAttrs)n.has(r)||t.node.removeAttribute(r);t.__a11yAttrs=n,t.__panelTabindex&&(t.node.removeAttribute("tabindex"),t.__panelTabindex=!1)},m$='a[href], button, input:not([type="hidden"]), select, textarea, summary, [tabindex], [contenteditable]:not([contenteditable="false"])',y$=t=>{let e=t.node;if(e){for(let n of e.querySelectorAll(m$)){if(n.matches(":disabled"))continue;let r=n.getAttribute("tabindex");if(!(r!==null&&parseInt(r,10)<0)&&(n.focus({preventScroll:!0}),e.ownerDocument.activeElement===n))return}e.setAttribute("tabindex","-1"),t.__panelTabindex=!0,e.focus({preventScroll:!0})}},qd={tag:"div",attr:{"data-smbls-dropdown-root":"true"},position:"fixed",inset:"0",zIndex:"1500",pointerEvents:"none",state:{layer:null},onInit:t=>{if(d$(),typeof window>"u")return;let e=r=>{r.key!=="Escape"||r.defaultPrevented||t.state?.layer&&(r.preventDefault(),po.call(t))};window.addEventListener("keydown",e),t.__dropdownEscHandler=e;let n=r=>{let o=t.state?.layer;if(!o)return;let s=t.node?.querySelector('[data-smbls-dropdown="panel"]');if(s&&s.contains(r.target))return;let i=o.anchor;if(i){let a=r.clientX,c=r.clientY;if(a>=i.left&&a<=i.right&&c>=i.top&&c<=i.bottom)return}po.call(t)};document.addEventListener("mousedown",n,!0),t.__dropdownClickHandler=n},onRemove:t=>{typeof window>"u"||(t.__dropdownEscHandler&&window.removeEventListener("keydown",t.__dropdownEscHandler),t.__dropdownClickHandler&&document.removeEventListener("mousedown",t.__dropdownClickHandler,!0))},PanelHost:{tag:"div",position:"fixed",inset:"0",pointerEvents:"none",subscribeTo:["layer"],layer:(t,e)=>e?.layer||null,Panel:{tag:"div",attr:{"data-smbls-dropdown":"panel"},position:"fixed",subscribeTo:["layer"],left:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).left+"px"},top:t=>{let e=t.parent?.layer;if(!e?.anchor)return"-9999px";let n=t._lastSize||{width:280,height:200};return Dn(e.anchor,n,e.placement).top+"px"},style:t=>{let e=t.parent?.layer;if(!e?.anchor)return{};let n=t._lastSize||{width:280,height:200};return{"--smbls-dropdown-from":Xs(Dn(e.anchor,n,e.placement).side)}},minWidth:t=>t.parent?.layer?.minWidth||"180px",maxWidth:t=>t.parent?.layer?.maxWidth||"90vw",maxHeight:t=>{let e=t.parent?.layer;if(!e?.anchor)return"none";let n=t._lastSize||{width:280,height:200};return lx(e,Dn(e.anchor,n,e.placement))},overflow:"auto",overscrollBehavior:"contain",padding:"0",round:t=>t.parent?.layer?.round||"radiusCard",theme:t=>t.parent?.layer?.theme||null,border:"none",borderWidth:"0",shadow:t=>t.parent?.layer?.shadow||t.scope?.bodyShadow||null,scope:{bodyShadow:null},animationDuration:"B",animationTimingFunction:"defaultBezier",pointerEvents:t=>{let e=t.parent?.layer;return e?e.inert?"none":"auto":"none"},opacity:t=>t.parent?.layer?"1":"0",onClick:t=>t.stopPropagation(),onInit:t=>{let e=G(()=>{let n=t.parent?.layer,r=n?.content||null,o=n?.id||null;if(!r){if(t.__lastLayerId!=null){try{t.removeContent?.()}catch{}t.__lastLayerId=null,yA(t,null),t.node?.removeAttribute("data-smbls-open"),t.scope&&(t.scope.bodyShadow=null)}return}if(t.__lastLayerId!==o){t.__lastLayerId=o;try{t.set(r)}catch(s){console.warn("[dropdown] content set failed:",s)}t.scope&&(t.scope.bodyShadow=p$(t.content)),mA(t,n),yA(t,n),h$(t),n.focusIn&&y$(t),!(typeof requestAnimationFrame>"u")&&requestAnimationFrame(()=>{if(!t.node)return;mA(t,n);let s=t.parent?.layer;if(!s?.anchor)return;let i=gA(t.node);t._lastSize=i;let a=Dn(s.anchor,i,s.placement);t.node.style.maxHeight=lx(s,a),t.node.style.left=a.left+"px",t.node.style.top=a.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(a.side))})}});t.__ref&&t.__ref.__effects?.push(e)},onRender:t=>{if(!t?.node)return;let e=t.parent?.layer;if(!e?.anchor)return;let n=gA(t.node),r=t._lastSize;(!r||Math.abs(r.width-n.width)>1||Math.abs(r.height-n.height)>1)&&(t._lastSize=n);let o=Dn(e.anchor,n,e.placement);t.node.style.maxHeight=lx(e,o),t.node.style.left=o.left+"px",t.node.style.top=o.top+"px",t.node.style.setProperty("--smbls-dropdown-from",Xs(o.side))}}}};var fx=t=>{let e=t?.getRoot?.()?.DropdownRoot?.state?.layer;if(e&&t.dropdownId&&e.id===t.dropdownId){t.call("closeDropdown");return}let n={anchorEl:t,trigger:t.dropdownTrigger||"click",placement:t.dropdownPlacement||"auto",content:t.dropdownContent||null,minWidth:t.dropdownMinWidth,maxWidth:t.dropdownMaxWidth,maxHeight:t.dropdownMaxHeight,theme:t.dropdownTheme,offset:t.dropdownOffset,id:t.dropdownId,onOpen:t.onDropdownOpen,onClose:t.onDropdownClose};for(let r in n)n[r]===void 0&&delete n[r];t.call("openDropdown",n)},Kd={position:"relative",onClick:(t,e)=>{(e.dropdownTrigger||"click")==="click"&&(t.preventDefault(),t.stopPropagation(),fx(e))},onFocus:(t,e)=>{e.dropdownTrigger==="focus"&&fx(e)},onMouseenter:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&clearTimeout(e._hoverTimer),e._hoverTimer=setTimeout(()=>fx(e),120))},onMouseleave:(t,e)=>{e.dropdownTrigger==="hover"&&(e._hoverTimer&&(clearTimeout(e._hoverTimer),e._hoverTimer=null),e._closeTimer=setTimeout(()=>e.call("closeDropdown"),250))}};var Gd={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"},Yd={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:t=>t.options||[],childrenAs:"props",".hidden":{transform:"translate3d(0,10%,0)",opacity:0,visibility:"hidden"},childExtends:{extends:"Button",state:{},isActive:({key:t,state:e})=>e.active===t,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:t,state:e})=>e.active===t,name:"checkmark",opacity:"0.1",".active":{opacity:"1"}},":not(:first-child)":{"@dark":{border:"solid gray4.65"},"@light":{border:"solid gray11"},borderWidth:"1px 0 0"}}},Xd={position:"relative",zIndex:999,":hover":{zIndex:1e3,"& [dropdown]":{transform:"translate3d(0,0,0)",opacity:1,visibility:"visible"}}},Zd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}},Dropdown:{onClick:()=>{document.activeElement?.blur()}}},Jd={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:(t,e)=>{e.node===document.activeElement&&e.node.blur()}}};var ux={DropdownRoot:qd,DropdownTrigger:Kd,Dropdown:Gd,DropdownList:Yd,DropdownParent:Xd,DropdownParentFocus:Zd,DropdownSiblingFocus:Jd};var hx={};$(hx,{DROPDOWN_DEFAULTS:()=>mr,closeDropdown:()=>po,computePosition:()=>Dn,dropdownFunctions:()=>px,fadeInTransform:()=>Xs,openDropdown:()=>Hd,setDropdownInert:()=>Wd});var px={openDropdown:Hd,closeDropdown:po,setDropdownInert:Wd};var b$=(t,e,n)=>({bottom:n-t.bottom,top:t.top,right:e-t.right,left:t.left}),_$=(t,e,n,r,o)=>{let s=b$(e,r,o),i=t==="top"||t==="bottom"?n.height+6:n.width+6;if(s[t]>=i)return t;let a={top:"bottom",bottom:"top",left:"right",right:"left"}[t];return a&&s[a]>=i?a:t},bA=(t,e,n)=>Math.max(e,Math.min(n,t)),_A=(t,e,n="bottom")=>{if(!t)return{left:0,top:0,side:"bottom"};let r=typeof window<"u"?window.innerWidth:1024,o=typeof window<"u"?window.innerHeight:768,s=_$(n,t,e,r,o),i,a;return s==="bottom"||s==="top"?(i=t.left+(t.width-e.width)/2,a=s==="bottom"?t.bottom+6:t.top-e.height-6):(a=t.top+(t.height-e.height)/2,i=s==="right"?t.right+6:t.left-e.width-6),i=bA(i,6,r-e.width-6),a=bA(a,6,o-e.height-6),{left:i,top:a,side:s}},xA=t=>{switch(t){case"bottom":return"translate3d(0, -10%, 0)";case"top":return"translate3d(0, 10%, 0)";case"left":return"translate3d(10%, 0, 0)";case"right":return"translate3d(-10%, 0, 0)";default:return"translate3d(0, -10%, 0)"}};var Qd={placement:"bottom",theme:"dialog",delay:250,hideDelay:100},x$=t=>{if(!t||typeof t.getBoundingClientRect!="function")return null;let e=t.getBoundingClientRect();return{left:e.left,top:e.top,right:e.right,bottom:e.bottom,width:e.width,height:e.height}},wA=t=>t?.getRoot?.()?.TooltipRoot||null,SA=t=>{let e=t?.state?.tip;return e?typeof e.$parse=="function"?e.$parse():{...e}:null},kA=(t,e,n=0)=>{let r=SA(t);if(!r||r.id!==e||r.open===!1)return;let o=t.Panel?.node;if(!o||typeof o.getBoundingClientRect!="function")return;if(o.textContent!==(r.text||"")){n<3&&setTimeout(()=>kA(t,e,n+1),0);return}let s=o.getBoundingClientRect();t.state.update({tip:{...r,size:{width:s.width,height:s.height}}})},w$=t=>{typeof queueMicrotask=="function"?queueMicrotask(t):Promise.resolve().then(t)},S$=0,k$=()=>`tooltip_${++S$}_${Date.now().toString(36)}`;function vA(t={}){let e=wA(this);if(!e)return console.warn("[tooltip] openTooltip: TooltipRoot is not mounted on the app root. Add `TooltipRoot: {}` to your shell tree and import tooltip components into context."),null;let n=t.anchorEl?.node||t.anchorEl,r=t.anchorRect||x$(n);if(!r)return console.warn("[tooltip] openTooltip: no anchor element/rect provided."),null;let o=t.id||k$(),s={id:o,text:t.text||"",anchor:r,placement:t.placement||Qd.placement,theme:t.theme||Qd.theme,open:!0,size:null};return e.state.update({tip:s}),w$(()=>kA(e,o)),o}function CA(t){let e=wA(this);if(!e)return;let n=SA(e);if(!n||n.open===!1)return;let r=typeof t=="string"?t:t?.id;r&&n.id&&r!==n.id||e.state.update({tip:{...n,open:!1}})}var gx=t=>{let e=t.tip;return e?.anchor?_A(e.anchor,e.size||{width:0,height:0},e.placement):null},tp=t=>{let e=t.tip;return!!(e&&e.open!==!1&&e.size)},EA={tag:"div",attr:{"data-smbls-tooltip-root":"true"},position:"fixed",inset:"0",zIndex:"2500",pointerEvents:"none",state:{tip:null},Panel:{tag:"div",attr:{"data-smbls-tooltip":"panel"},role:"tooltip",position:"fixed",tip:(t,e)=>e?.tip||null,left:t=>{let e=gx(t);return e?e.left+"px":"-9999px"},top:t=>{let e=gx(t);return e?e.top+"px":"-9999px"},text:t=>t.tip?.text||"",theme:t=>t.tip?.theme||Qd.theme,width:"max-content",maxWidth:"280px",padding:"Y2 Z",round:"Z",fontSize:"Y2",lineHeight:"1.35",whiteSpace:"normal",pointerEvents:"none",opacity:t=>tp(t)?"1":"0",visibility:t=>tp(t)?"visible":"hidden",transform:t=>{if(tp(t))return"none";let e=gx(t);return xA(e?e.side:"bottom")},transition:t=>{let e=tp(t)?"A":"Z";return`${e} opacity defaultBezier, ${e} transform defaultBezier, ${e} visibility defaultBezier`}}};var mx=t=>{if(!t.tooltipText)return;let e=t.node;e&&e.hasAttribute&&e.hasAttribute("title")&&e.removeAttribute("title")},v$=t=>{t.tooltipText&&(mx(t),t.call("openTooltip",{anchorEl:t,text:t.tooltipText,placement:t.tooltipPlacement||"bottom",theme:t.tooltipTheme,id:t.tooltipId||t.key}))},AA=t=>{t._tooltipHideTimer&&(clearTimeout(t._tooltipHideTimer),t._tooltipHideTimer=null),!t._tooltipShowTimer&&(t._tooltipShowTimer=setTimeout(()=>{t._tooltipShowTimer=null,v$(t)},t.tooltipDelay??250))},TA=t=>{t._tooltipShowTimer&&(clearTimeout(t._tooltipShowTimer),t._tooltipShowTimer=null),!t._tooltipHideTimer&&(t._tooltipHideTimer=setTimeout(()=>{t._tooltipHideTimer=null,t.call("closeTooltip",t.tooltipId||t.key)},t.tooltipHideDelay??100))},OA={onMouseenter:(t,e)=>AA(e),onMouseleave:(t,e)=>TA(e),onFocus:(t,e)=>AA(e),onBlur:(t,e)=>TA(e),onMouseover:(t,e)=>mx(e),onFocusin:(t,e)=>mx(e)};var RA={display:"flex",theme:"dialog",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:t=>t.call("isDefined",t.parent.title)||t.parent.title,width:"fit-content",fontWeight:500,color:"currentColor",text:t=>t.parent.title},P:{if:(t,e)=>t.call("isDefined",t.call("exec",t.parent.description,t))||t.text,width:"fit-content",fontSize:"Z2",margin:"0",color:"currentColor",fontWeight:"400",text:(t,e)=>t.call("exec",t.parent.description,t)}},PA={extends:"Tooltip",position:"absolute",pointerEvents:"none",opacity:"0",visibility:"hidden",transition:"C defaultBezier opacity, C defaultBezier visibility, B defaultBezier transform",onInit:t=>{let e=!t.shapeDirection||t.shapeDirection==="top"?{top:"112%",left:"50%",transform:"translate3d(-50%,10%,0)",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="right"?{transform:"translate3d(10%,-50%,0)",left:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="bottom"?{transform:"translate3d(-50%,-10%,0)",bottom:"112%",left:"50%",".isActive":{transform:"translate3d(-50%,0,0)",opacity:1,visibility:"visible"}}:t.shapeDirection==="left"?{transform:"translate3d(10%,-50%,0)",right:"112%",top:"50%",".isActive":{transform:"translate3d(0%,-50%,0)",opacity:1,visibility:"visible"}}:{};Object.assign(t,e)},style:t=>{if(!t.scope||!t.scope.tooltipOpen)return{opacity:"",visibility:"",transform:""};let e=t.shapeDirection;return{opacity:"1",visibility:"visible",transform:e==="left"||e==="right"?"translate3d(0%,-50%,0)":"translate3d(-50%,0,0)"}},styleDeps:[t=>t.scope&&t.scope.tooltipOpen]},DA={position:"relative",zIndex:999,scope:{tooltipOpen:!1},onInit:t=>{let{Tooltip:e,TooltipHidden:n}=t,r=e||n;if(!r)return;let o=r&&r[".isActive"];Object.assign(t,{":hover, &:focus-visible":{zIndex:1e3,"& [tooltip]":o||{transform:"translate3d(-50%, 0, 0)",opacity:1,visibility:"visible"}}})},onPointerdown:(t,e)=>{t.pointerType!=="touch"||!e.scope||(e.scope.tooltipOpen=!e.scope.tooltipOpen)},onDocumentKeydown:(t,e)=>{t.key!=="Escape"||!e.scope||!e.scope.tooltipOpen||(e.scope.tooltipOpen=!1)},onDocumentPointerdown:(t,e)=>{!e.scope||!e.scope.tooltipOpen||e.node&&e.node.contains(t.target)||(e.scope.tooltipOpen=!1)}};var IA={TooltipRoot:EA,TooltipTrigger:OA,Tooltip:RA,TooltipHidden:PA,TooltipParent:DA};var LA={openTooltip:vA,closeTooltip:CA};var $A=t=>!!(t&&typeof t=="object"&&t.__isStub===!0),MA=t=>tn(t)?t.library!==void 0?t.library:t.key??t.name:t,C$=(t,e)=>{let n=e?.sharedLibraries,r=Array.isArray(n)?n.map(i=>typeof i=="string"?i:i?.key||i?.name):n&&typeof n=="object"?Object.keys(n):null,o=0,s=i=>{let a=o++;if(typeof i.__libraryKey=="string"&&i.__libraryKey)return i.__libraryKey;if(r&&r[a])return r[a];if(typeof i.__stubId=="string"){let c=i.__stubId.match(/^@symbo[-.]ls\/([^/]+)/);if(c)return c[1]}return null};return t.map(i=>{let a=MA(i);if(!$A(a))return i;let c=s(a);return c?tn(i)?{...i,library:c}:c:null}).filter(Boolean)},bx=new WeakMap,E$={lazy:!0,window:globalThis},yx=t=>{let e=bx.get(t);e&&(bx.delete(t),sE(e))},A$=async(t,e={})=>{let n=e.symbolsConfig,r=n?.owner&&n?.key?`${n.owner}--${n.key}`:n?.key,o=e.key=e.key||r||(S(t)?t:"smblsapp");if(e.define=e.define||Ps,e.cssPropsRegistry=wt,e.window=Q1(e),e.sharedLibraries&&e.sharedLibraries.length){if(e.sharedLibraries.some(p=>{let g=MA(p);return typeof g=="string"||$A(g)})){e.sharedLibraries=C$(e.sharedLibraries,e.symbolsConfig);let{resolveSharedLibraries:p}=await Promise.resolve().then(()=>(D(),zo));e.sharedLibraries=await p(e.sharedLibraries,{apiBaseUrl:D_()})}K1(e.sharedLibraries),dE(e)}Jc(e,e.designSystem);let[s,i]=lE(o,e);e.designSystem=s,e.registry=i,e.cases||(e.cases={}),e.shorthand&&Ic.prepareContext(e);let a=fE(t,e);if(e.state=a,Qi(a),e.pages=uE(t,e),e.components=tE(e),e.utils=eE(e),Vn[e.packageManager]){let h=oE(e);h&&h.deferred?(h.blocking&&await B_({...e,dependencies:h.blocking}),bx.set(e,h.deferred)):e.dependencies=await B_(e)}if(e.methods=nE(e),e.routerOptions=BC(t,e),e.defaultExtends=[Nu],e.snippets=e.snippets||{},e.functions=e.functions||{},e.plugins=e.plugins||[],e.plugins.some(h=>!h||typeof h!="object")){let h=e.plugins.filter(p=>!p||typeof p!="object");e.plugins=e.plugins.filter(p=>p&&typeof p=="object"),e.verbose!==!1&&console.warn(`[smbls] context.plugins carried ${h.length} non-plugin entr${h.length===1?"y":"ies"} (${h.map(p=>JSON.stringify(p)).join(", ")}) \u2014 dropped. A published project that imports a framework plugin it does not declare ships a stub phantom here; the runtime registers polyglot/helmet/fetch/... itself from the context config, so remove the import instead.`)}e.globalScope&&v(e.globalScope)&&(e.globalScope=_i(e.globalScope));let c=(h,p)=>{let g=p?h[p]:h;if(!v(g))return;let m=_e(g,{},E$);try{Object.assign(g,m)}catch(y){if(p)h[p]=m;else throw y}};c(t),c(e,"components"),c(e,"pages"),c(e,"functions"),c(e,"methods"),c(e,"snippets"),c(e,"app");let l=h=>h&&typeof h.select=="function";e.fetch?.__resolved&&!l(e.fetch.__resolved)&&delete e.fetch.__resolved,e.db?.__resolved&&!l(e.db.__resolved)&&delete e.db.__resolved;let f=h=>e.plugins.some(p=>p&&p.name===h);if(e.polyglot&&!f("polyglot")){e.plugins.push(Is);for(let h in Uc)typeof e.functions[h]!="function"&&(e.functions[h]=Uc[h])}if(f("helmet")||e.plugins.push(o_),e.fetch&&!f("fetch")&&e.plugins.push(gg),e.designSystem?.typography?.useCapsize!==!1&&!f("capsize")&&(e.plugins.push(Ju),e.cssPropsRegistry.useCapsize=c_),e.shorthand&&!f("shorthand")&&e.plugins.push(Ic),e.analyze&&!f("analyze")){let h=e.analyze===!0?{}:e.analyze;e.analyze=ld(h),e.plugins.push($s)}e.sync!==!1&&!f("sync")&&e.plugins.push(cA),e.inspect&&!f("inspect")&&e.plugins.push(R_),(e.notifications===!0||e.editor&&e.editor.verbose===!0)&&e.notifications!==!1&&!f("notifications")&&e.plugins.push(lA);let d=(h,p,g)=>{if(e[h]!==!1){for(let m in p)v(e.components[m])||(e.components[m]=p[m]);for(let m in g)typeof e.functions[m]!="function"&&(e.functions[m]=g[m])}};return d("windows",sx,Pn),d("dropdown",ux,px),d("tooltip",IA,LA),e},_x=async(t,e)=>{v(e)||(e={}),pn(t)?(t={},e.parent=t):S(t)?(t={},e.key=t):v(t)||(t={});let n=e.window||(typeof window<"u"?window:null),r=n?.__BRENDER__,o=null;if(r){let c=e.document||(typeof document<"u"?document:null);c&&(o=Array.from(c.head.querySelectorAll("style")))}if(await A$(t,e),e.useReset!==!1){let c=e.document||(typeof document<"u"?document:null);if(c){let l=c.head.querySelector("style[data-smbls]");l||(l=c.createElement("style"),l.setAttribute("data-smbls",""),c.head.appendChild(l));let f=l.sheet;if(f){try{f.insertRule("*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }",0)}catch{}try{f.insertRule("h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; }",1)}catch{}}}}if(e.app&&v(e.app))for(let c in e.app)t[c]===void 0&&(t[c]=e.app[c]);t.extends=JC(t,e),e.router!==!1&&(t.routes=e.pages),t.state=e.state,t.context=e,t.data=t.data||{},e.skipDesignSystemInit||await iE({functions:e.functions,utils:e.utils,snippets:e.snippets,...e.files},e);for(let c of e.plugins)if(typeof c.beforeCreate=="function")try{c.beforeCreate(t,e)}catch(l){console.error(`[smbls] plugin "${c.name||"?"}" beforeCreate error:`,l)}let s=e.document;if(!s||!s.createElement)return yx(e),t;let i=e.parent||s.body;if(r){let c=T$(he,t,i,e,n,o);return yx(e),c}let a=he(t,i,e.key,{verbose:e.verbose,context:e,...e.domqlOptions});return yx(e),typeof window<"u"&&!e.document&&(window.__smblsApp=a),a},T$=async(t,e,n,r,o,s)=>{let i=n.ownerDocument||document;s&&s.forEach(l=>{l.parentNode&&l.remove()});let a=[];for(let l of n.childNodes){if(l.nodeType===1){let f=l.tagName.toLowerCase();if(f==="script"||f==="link"||f==="style"||f==="svg"&&l.id)continue}a.push(l)}a.forEach(l=>l.remove()),i.querySelectorAll("[data-br]").forEach(l=>l.removeAttribute("data-br"));let c=t(e,n,r.key,{verbose:r.verbose,context:r,...r.domqlOptions});return O$(o),c},O$=t=>{t&&(delete t.__BRENDER__,delete t.__BR_REGISTRY__)};var xx=(t,e)=>ot(t,v(e)?e:{}),R$=t=>{if(typeof document>"u")return;let e=t.themeRoot||t.document&&t.document.documentElement||document.documentElement;if(!e||typeof e.setAttribute!="function")return;let n=t.globalTheme||"auto";try{if(typeof window<"u"&&window.location){let s=new URLSearchParams(window.location.search).get("globalTheme");s&&(n=s)}}catch{}let r=t.themeStorageKey;if(n==="auto"&&r&&typeof localStorage<"u")try{let s=localStorage.getItem(r);s&&(n=s)}catch{}let o=n==="auto"?(()=>{try{return typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}catch{return"light"}})():n;e.setAttribute("data-theme",o),t.globalTheme=n,t.themeRoot=e},P$=()=>{if(typeof document>"u")return null;try{let t=document.querySelector('meta[name="symbols-runtime"]'),e=t&&t.getAttribute("content");return typeof e=="string"&&e?e:null}catch{return null}},FA=t=>{let e=P$();e&&(t.editor||(t.editor={}),t.editor.runtime||(t.editor.runtime=e),e==="runner"&&typeof t.editor.livesync>"u"&&(t.editor.livesync=!0))},wx=(t,e=cr,n)=>{let r={...cr,...xx(e,n)};return FA(r),R$(r),_x(t,r).then(s=>{if(n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},s.onCreate&&!s.__ref&&s.onCreate(s,s.state,s.context,r),s.context?.analyze?.activate)try{s.context.analyze.activate(s.context)}catch(i){console.error("[analyze] activate error:",i)}return s}).catch(s=>{throw console.error("[smbls] create error:",s),s})},D$=(t,e=cr,n)=>{let r=wx(t,e,n),o={...cr,...xx(e,n)},s=o.key;return HC(r,s,{utils:wc,...o}),r},I$=async(t,e=cr,n)=>{let r={...cr,...xx(e,n)};FA(r);let o=e.key;await zC(o,r);let s=await _x(t,r);return n_(s,r),s.destroy=()=>kc(s),s.navigate=(i,a={})=>{let c=s,l=s.context&&s.context.routerOptions;if(l&&l.customRouterElement){let f=Sc(s,l.customRouterElement);f&&(c=f)}return c.call("router",i,c,a.state||{},{pushState:!0,...a})},r.onCreate&&await r.onCreate(s,s.state,s.context,r),s},L$=(t={},e=cr,n)=>wx({deps:{isUndefined:Dt},...t},ot({domqlOptions:{onlyResolveExtends:!0}},e),n);Hu(rc);z1(void 0,{smbls:Sx});H1(void 0,{"@symbo.ls/windows":()=>({...ix,...ox}),"@symbo.ls/dropdown":()=>({...dx,...hx})});export{ky as ANIMATION_PROPS,fP as ARIA_ROLES,Zr as ATTR_TRANSFORMS,vy as BLOCK_PROPS,Se as CDN_PROVIDERS,Mr as COMPOUND_CSS_KEYWORDS,Br as CONFIG,fe as CONFIG_MERGE_EXL,yf as CSS_NAMED_COLOR_HEX,ce as CSS_NATIVE_COLOR_REGEX,wt as CSS_PROPS_REGISTRY,xo as CSS_UNITS,yc as DEFAULT_CONFIG,Tt as DEFAULT_CSS_PROPERTIES_LIST,ps as DELEGATED_EVENTS,i_ as DESIGN_SYSTEM_OPTIONS,Kp as DOMQL_EVENTS,Ln as DOMQ_PROPERTIES,y0 as DOM_EVENTS,vo as ELEMENT_METHOD_OVERRIDE_POINTS,uh as ENV,le as FACTORY,Oy as FLEX_PROPS,Cy as FONT_PROPS,Ry as GRID_PROPS,W1 as HOST_REGISTERED_PACKAGES,lu as HTML_ATTRIBUTES,Ao as HTML_TAGS,er as LIFECYCLE_EVENTS,Mn as METHODS,gi as METHODS_EXL,Ey as MISC_PROPS,su as MIXINS,Le as NODE_ENV,Vi as OPTIONS,Vn as PACKAGE_MANAGER_TO_CDN,hi as PARSED_DOMQ_PROPERTIES,Ay as POSITION_PROPS,$n as PROPS_METHODS,Vt as REGISTRY,Dx as RESERVED_STORE_METHODS,Ku as ROUTER_OPTIONS,bo as SIGNAL_ENGINE_KEY,mo as SIGNAL_INSTANCES_KEY,Bf as STANDARD_SCHEME_QUERIES,Wp as STATE_PROPERTIES,Px as STORE_METHOD_NAMES,us as SVG_TAGS,Ty as THEME_PROPS,ic as TIMING_PROPS,ai as TYPES,uf as UNIVERSAL_RESERVED_KEYS,Xf as VALUE_TRANSFORMERS,Lx as VERSION,Kg as __resetBuiltinMethodWarnings,_p as __resetSignalEngine,bp as __resetSignalInstances,Zm as __resetSkinWarnings,Ix as __resetStateShadowWarnings,uS as activateConfig,zl as addCaching,Ul as addContext,oc as addDelegatedEvent,Lh as addExtend,Ye as addExtends,Dp as addItemAfterEveryElement,_s as addMethods,fi as addProtoToArray,jl as addRef,Jo as aliasCaseVariants,Cm as animation,Xa as appendSVGSprite,qr as appendSvgIconsSprite,xy as applyAttrTransforms,Qb as applyCSS,Qh as applyDependentState,Ya as applyDocument,Yl as applyEvent,Xl as applyEventUpdate,gs as applyExtends,zf as applyHeadings,wu as applyInitialState,Wn as applyMediaSequenceVars,Li as applyProps,Za as applyReset,La as applySequenceGlobalVars,xn as applySequenceVars,Ja as applySkins,Na as applySpacingSequence,me as applyStateMethods,Ga as applyTimingSequence,Dy as applyTrueProps,Wa as applyTypographySequence,Cp as arrayContainsOtherArray,Lp as arraysEqual,Lr as arrayzeValue,ly as assertEmitIntegrity,al as batch,km as breakpoints,ya as buildImgSrcset,Kr as buildSkinVarStyles,ba as buildSourcesAndImg,Wu as buildThemeVarStyles,og as cache,tr as cacheNode,Eg as call,cc as callStateMethod,sn as camelToAttr,b0 as camelToLowerAttr,Tg as captureSnapshot,Zf as changeGlobalTheme,im as changeLightness,Oe as checkAttributeByTagName,_y as checkEventFunctions,Yh as checkForStateTypes,Fa as checkIfBoxSize,Gl as checkIfInherits,Fp as checkIfStringIsInArray,Rm as class,Xp as clone,Ei as cloneAndMergeArrayExtend,bh as cloneFunction,To as collectExtendsList,mm as color,ke as colorStringToRgbaArray,Es as components,Fr as compositeOverBackdrop,Ph as concatAddExtends,qo as contrastRatio,Ma as convertSvgToSymbol,Xg as copyJavaScriptToClipboard,Yg as copyStringToClipboard,wx as create,D$ as createAsync,Nl as createBasedOnType,Tx as createComputed,Aa as createConfig,ZC as createDefine,G as createEffect,Gh as createElement,El as createElementExtends,Ti as createExtends,Oo as createExtendsFromKeys,Rl as createExtendsStack,fs as createHTMLNode,_h as createIfConditionFlag,Xh as createInheritedState,ki as createKey,oh as createNestedObject,Jh as createNestedObjectByKeyPath,bl as createObjectWithoutPrototype,Bl as createParent,Vl as createPath,$i as createProps,Ml as createPropsStack,Kh as createRoot,eg as createScope,ll as createScopeStore,ni as createSignal,L$ as createSkeleton,Si as createSnapshotId,Uy as createState,fn as createStore,I$ as createSync,pe as css,$f as cssMediaVars,Lf as cssVars,Hp as customDecodeURIComponent,zp as customEncodeURIComponent,Rp as cutArrayAfterValue,Op as cutArrayBeforeValue,vi as debounce,mh as debounceOnContext,Up as decodeNewlines,it as deepClone,nh as deepContains,pa as deepDefaults,_e as deepDestringifyFunctions,Cl as deepExtend,ot as deepMerge,Xe as deepMergeExtends,yi as deepStringifyFunctions,Ps as defaultDefine,Zo as defineResolvedThemeSignal,vg as defineSetter,Xo as defineThemeSignal,_i as destringifyGlobalScope,kc as destroy,Ig as detectHeightOnInit,ch as detectInfiniteLoop,Qn as detectTag,vm as devices,rr as dispose,Vp as encodeNewlines,Pr as error,fh as excludeKeysFromObject,ft as exec,hP as executeAttr,qP as exetuteClassPerComponent,Dh as extendCachedRegistry,Oi as extendStackRegistry,Pi as extractArrayExtend,yP as extractConditionalAttrs,mf as fetchLibraryData,Lg as fibonacciNumberByIndex,$p as filterArrays,Mp as filterArraysFast,pP as filterAttributesByTagName,Pl as finalizeExtends,gf as findClosestNumber,Hg as findClosestNumberInFactory,Nf as findHeadingLetter,Ia as findHeadings,Kl as findInheritedState,jp as findKeyPosition,Ro as flattenExtend,fm as font,pm as fontFace,um as fontFamily,dm as fontFamilyTypes,Dg as formatDate,Sl as generateHash,hf as generateHeadArrayTags,wi as generateKey,Ug as generateMetaTags,Qt as generateSequence,Fm as generateSequencePosition,$a as generateSprite,Pa as generateSubSequence,xg as get,T as getActiveConfig,Xr as getActiveDocument,lr as getActiveLang,df as getCDNDirUrl,Me as getCDNUrl,uy as getCacheSize,Fh as getCapitalCaseKeys,No as getCdnProviderFromConfig,ql as getChildStateInKey,kg as getChildren,et as getColor,Sf as getColorShade,oa as getContext,vh as getCookie,la as getDB,Nr as getDefaultOrFirstKey,ru as getEmitStats,tm as getEmotionStylesheet,$h as getExtendsInElement,Ai as getExtendsStack,vl as getExtendsStackRegistry,_n as getFnPrefixAndValue,cm as getFontFace,jr as getFontFaceEach,Rf as getFontFaceEachString,ka as getFontFaceString,Ha as getFontFamily,Tf as getFontFormat,qa as getFontSizeByKey,Ep as getFrequencyInArray,Ie as getFunctionSource,Ri as getHashedExtend,Pg as getImportMapScript,ah as getInObjectByPath,Cc as getLanguages,Rc as getLocalStateLang,Eh as getLocalStorage,$t as getMediaColor,Ae as getMediaTheme,gh as getNev,cl as getObserver,zg as getPageMetadata,Wl as getParentStateInKey,Ji as getPath,fa as getQuery,Sg as getRef,fS as getResolvedThemeSignal,en as getRgbTone,ea as getRoot,ra as getRootContext,na as getRootData,ta as getRootState,Hl as getRootStateInKey,Vf as getSafeInk,Vm as getSafeInkInfo,Vr as getSequenceValue,Da as getSequenceValueBySymbols,rn as getSequenceValuePropertyPair,Ba as getShadow,Ka as getShapeByKey,Rx as getSignals,Ee as getSpacingBasedOnRatio,At as getSpacingByKey,Nh as getSpreadChildren,Ra as getSubratio,Oa as getSubratioDifference,ge as getSystemGlobalTheme,Wm as getTheme,lS as getThemeSignal,de as getTimingByKey,Te as getTimingFunction,Sp as global,ym as gradient,Om as grid,Ge as hasFunction,Co as hasHandlerPlugin,Qp as hasOwnProperty,Bo as hashContent,nm as hexToRgb,bf as hexToRgbArray,om as hexToRgba,wf as hslToRgb,xm as icons,Tl as inheritChildExtends,Al as inheritChildPropsExtends,Mi as inheritParentProps,Ol as inheritRecursiveChildExtends,En as init,Xu as initPolyglot,Hh as initProps,xt as injectGlobal,Zt as is,R as isArray,ul as isBoolean,qp as isBuiltinElementMethod,_t as isCSSVar,jh as isContextComponent,lh as isCyclic,Xt as isDOMNode,pl as isDate,Rt as isDefined,Nn as isDevelopment,un as isDomDocument,ml as isEmpty,th as isEmptyObject,an as isEnumeratedTrueFalseAttr,yl as isEqualDeep,Cr as isFailedRevival,O as isFunction,Ko as isGoogleFontsUrl,dn as isHostObject,si as isHtmlElement,Zp as isLazyFunction,hh as isLocal,ht as isLoudDevRuntime,Dr as isMalformedDependency,Ag as isMethod,Sh as isMobile,pn as isNode,vp as isNot,Ar as isNotProduction,dl as isNull,Ke as isNumber,v as isObject,j as isObjectLike,$g as isPhoto,Gn as isPlainColor,Bi as isPolyglotRetranslatableKey,Or as isPolyglotWritableKey,Fn as isProduction,wr as isProtectedElementMethod,ri as isRawUnitValue,Fe as isResolvedColor,br as isScalingUnit,ph as isStaging,Zh as isState,St as isStore,S as isString,Ci as isStringFunction,ds as isSvgTag,xl as isTest,dh as isTesting,Hy as isTracking,Dt as isUndefined,Og as isUniversallyReservedKey,Un as isUnresolvableDependency,Ir as isValidDependencyMap,Th as isValidHtmlTag,ls as isValidTag,MC as isWasmLoaded,tn as isWrappedLibrary,wp as isWritableFamilyBucket,wo as joinArrays,Ih as jointStacks,cs as keyframes,lf as keys,Cf as linearChannelToSrgb,jg as loadCssFile,Bg as loadJavascript,Mg as loadJavascriptFile,Ng as loadJavascriptFileEmbedSync,Fg as loadJavascriptFileSync,Vg as loadRemoteCSS,jo as loadRemoteScript,Ac as loadTranslations,$C as loadWasm,Cg as log,wh as logGroupIf,xh as logIf,bg as lookdown,_g as lookdownAll,yg as lookup,_r as lowercaseFirstLetter,eh as makeObjectWithoutPrototype,Yp as map,Di as mapStringsWithContextComponents,Je as markPolyglotSeeded,Ze as matchesComponentNaming,hm as media,yh as memoize,bt as merge,ha as mergeSharedLibraries,em as mixTwoColors,sm as mixTwoRgb,kf as mixTwoRgba,ia as nextElement,zn as normalizeIgnoreList,Vo as normalizeLibraryKey,nn as numToLetterMap,bi as objectToString,Ii as objectizeStringProperty,Ef as oklabToLinearSrgb,xa as oklabToOklch,wa as oklchToGamutSafeSrgb,Af as oklchToOklab,Wo as opacify,xi as overwrite,Wt as overwriteDeep,Er as overwriteShallow,tg as overwriteState,In as parkHostObject,ff as parse,Bt as parseColorToken,Xi as parseDeep,Ll as pickupElementFromProps,Il as pickupPropsFromElement,Uc as polyglotFunctions,Is as polyglotPlugin,Po as polyglotSeededKeys,rt as popConfig,pu as popStaticCssPass,aa as previousElement,Lo as promoteActiveRootState,Uh as propExists,$l as propertizeElement,Vh as propertizeUpdate,st as pushConfig,du as pushStaticCssPass,Ur as quietColorProbe,mu as refreshContextProto,hs as registerEvent,q1 as registerHostPackages,yo as registerSignalInstance,Jb as reinit,$r as relativeLuminance,bs as remove,Zg as removeChars,Ch as removeCookie,sc as removeDelegatedEvent,Ni as removeDuplicateProps,So as removeDuplicatesInArray,Ap as removeFromArray,rh as removeFromObject,sh as removeNestedKeyByPath,li as removeValueFromArray,Pp as removeValueFromArrayAll,Ip as reorderArrayByValues,Mt as replaceLiteralsWithObjectFields,Bp as replaceOctalEscapeSequences,cy as resetEmitStats,Jt as resolveAsset,ue as resolveBorderValue,zr as resolveColorRgb,tc as resolveColorsInGradient,_o as resolveConfigDocument,R0 as resolveDesignSystemClass,by as resolveFileSource,ve as resolveFileUrl,C0 as resolveGridTracks,Eo as resolveHandler,nr as resolvePropValue,Hr as resolveShadowValue,Gg as resolveSharedLibraries,am as returnSubThemeOrDefault,Fl as returnValueAsText,_f as rgbArrayToHex,xf as rgbToHSL,rm as rgbToHex,Pt as runPluginHook,Uf as runThroughMedia,Xn as schemeGuardSelector,Yn as schemeMediaQuery,Yo as scratchDefaultConfig,rs as scratchSystem,qn as scratchUtils,kp as self,wm as semanticIcons,bn as sequence,ee as serializeAttrValue,Gr as set,Mf as setActiveConfig,ay as setActiveDocument,Qi as setActiveRootState,Zn as setAdaptiveSchemeVar,hD as setClass,KP as setClassname,Kn as setColor,kh as setCookie,Hu as setCssEngineHook,Sa as setCustomFont,Hn as setCustomFontMedia,ty as setEach,za as setFont,es as setFontFamily,Go as setFontImport,Qo as setGradient,kl as setHashedExtend,Of as setInCustomFontMedia,ih as setInObjectByPath,Tc as setLang,Ah as setLocalStorage,ts as setMediaTheme,cf as setNodeStyles,Ox as setObserver,wg as setProps,Fi as setPropsPrototype,ns as setSVG,Ta as setScalingVar,Jn as setShadow,Ff as setSubScalingVar,Wr as setSvgIcon,Ua as setTheme,Qm as setValue,Nm as setVariables,rc as setWasmEngine,_m as shadow,Im as shape,qg as sharedLibrary,Dm as sizes,Lm as skins,gm as spacing,ua as splitPackageSpecifier,ja as splitSpacedValue,yn as splitTopLevelCommas,ut as splitTopLevelSpaces,Yf as splitTransition,Zi as spotByPath,Uo as srcsetFor,vf as srgbChannelToLinear,_a as srgbToOklab,di as stringIncludesAny,Jp as stringToObject,da as stripVersionRangePrefix,Em as svg,Am as svgData,Tp as swapItemsInArray,ji as syncProps,Tm as templates,bm as theme,Sm as timing,Ea as toCamel,ga as toCamelCase,ma as toDashCase,Qg as toDescriptionCase,Ho as toLinearChannel,xe as toPriorityOrder,Jg as toTitleCase,Rg as toggleFullscreen,qf as transformBackgroundImage,on as transformBorder,wn as transformBorderRadius,Qa as transformBoxShadow,D0 as transformClassname,ec as transformDuration,Gf as transformGridTemplate,Wf as transformShadow,kt as transformSize,L as transformSizeRatio,Hf as transformTextStroke,Jm as transformTransition,Iy as transformersByPrefix,Kf as transfromGap,Ec as translate,gn as triggerEventOn,ng as triggerEventOnUpdate,Np as trimStringFromSymbols,va as typography,lm as unit,ci as unstackArrayOfObjects,ms as update,Wh as updateProps,pD as updateVars,Oc as upsertTranslation,re as useCssInProps,zy as useHostState,O0 as usePropsAsCSS,P0 as useSelectorsAsCSS,ca as variables,Pm as vars,$o as verbose,sa as warn,fl as warnStateKeyShadowsMethod,C as window,Sn as wrapHoverRule};
|