@domphy/ui 0.1.29 → 0.1.31
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/core-theme-ui.global.js +2 -2
- package/dist/core-theme-ui.global.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +48 -47
- package/LICENSE +0 -21
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValueOrState, PartialElement, DomphyElement, Notifier, Handler } from '@domphy/core';
|
|
2
2
|
import { ThemeColor } from '@domphy/theme';
|
|
3
3
|
import { Placement as Placement$1 } from '@floating-ui/dom';
|
|
4
|
+
export { Placement } from '@floating-ui/dom';
|
|
4
5
|
|
|
5
6
|
declare function abbreviation(props?: {
|
|
6
7
|
color?: ValueOrState<ThemeColor>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ValueOrState, PartialElement, DomphyElement, Notifier, Handler } from '@domphy/core';
|
|
2
2
|
import { ThemeColor } from '@domphy/theme';
|
|
3
3
|
import { Placement as Placement$1 } from '@floating-ui/dom';
|
|
4
|
+
export { Placement } from '@floating-ui/dom';
|
|
4
5
|
|
|
5
6
|
declare function abbreviation(props?: {
|
|
6
7
|
color?: ValueOrState<ThemeColor>;
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var Qo=Object.defineProperty,Zo=Object.defineProperties;var er=Object.getOwnPropertyDescriptors;var zt=Object.getOwnPropertySymbols;var tr=Object.prototype.hasOwnProperty,or=Object.prototype.propertyIsEnumerable;var $t=(i,o,r)=>o in i?Qo(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,Lt=(i,o)=>{for(var r in o||(o={}))tr.call(o,r)&&$t(i,r,o[r]);if(zt)for(var r of zt(o))or.call(o,r)&&$t(i,r,o[r]);return i},Mt=(i,o)=>Zo(i,er(o));import{toState as Rt}from"@domphy/core";import{themeColor as pe,themeSize as rr,themeSpacing as nr}from"@domphy/theme";function Wi(i={}){var e,n;let o=Rt((e=i.color)!=null?e:"neutral","color"),r=Rt((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>rr(t),backgroundColor:t=>pe(t),color:t=>pe(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>pe(t,"shift-7",o.get(t)),textUnderlineOffset:nr(.72),cursor:"help","&:hover":{color:t=>pe(t,"shift-11",r.get(t)),textDecorationColor:t=>pe(t,"shift-9",r.get(t))}}}}import{toState as ir}from"@domphy/core";import{themeColor as J,themeDensity as D,themeSpacing as z}from"@domphy/theme";function Gi(i={}){var r;let o=ir((r=i.color)!=null?r:"neutral","color");return{style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>z(D(e)*2),backgroundColor:e=>J(e,"inherit",o.get(e)),color:e=>J(e,"shift-10",o.get(e)),outline:e=>`1px solid ${J(e,"shift-4",o.get(e))}`,outlineOffset:"-1px",overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>z(D(e)*2),paddingInline:e=>z(D(e)*4),fontWeight:"600",margin:0},"& > p":{gridArea:"desc",paddingInline:e=>z(D(e)*4),color:e=>J(e,"shift-9",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>z(D(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>z(D(e)*4),color:e=>J(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:z(2),paddingBlock:e=>z(D(e)*2),paddingInline:e=>z(D(e)*4),borderTop:e=>`1px solid ${J(e,"shift-3",o.get(e))}`}}}}import{merge as ar,toState as lr}from"@domphy/core";import{themeColor as Qe,themeSpacing as sr}from"@domphy/theme";function Qi(i={}){let{direction:o="horizontal",defaultSize:r=50,min:e=10,max:n=90}=i;return{_onSchedule:(t,a)=>{ar(a,{_context:{splitter:{direction:o,size:lr(r),min:e,max:n}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Zi(){return{_onMount:i=>{let o=i.getContext("splitter"),r=i.domElement,e=o.direction==="horizontal"?"width":"height";r.style[e]=`${o.size.get()}%`,r.style.flexShrink="0",r.style.overflow="auto";let n=o.size.addListener(t=>{r.style[e]=`${t}%`});i.addHook("Remove",n)}}}function ea(){return{_onMount:i=>{let o=i.getContext("splitter"),r=i.domElement,e=o.direction==="horizontal";r.style.cursor=e?"col-resize":"row-resize";let n=t=>{t.preventDefault();let a=r.parentElement,l=u=>{let m=a.getBoundingClientRect(),c=e?(u.clientX-m.left)/m.width*100:(u.clientY-m.top)/m.height*100;o.size.set(Math.min(Math.max(c,o.min),o.max))},s=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",s)};r.addEventListener("mousedown",n),i.addHook("Remove",()=>r.removeEventListener("mousedown",n))},style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i=>Qe(i,"shift-2"),"&:hover":{backgroundColor:i=>Qe(i,"shift-3")},"&::after":{content:'""',borderRadius:sr(999),backgroundColor:i=>Qe(i,"shift-4")}}}}import{merge as cr,toState as mr}from"@domphy/core";import{themeColor as $,themeDensity as _e,themeSize as Nt,themeSpacing as Q}from"@domphy/theme";function na(){return{_onSchedule:(i,o)=>{cr(o,{_context:{command:{query:mr("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function ia(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let n=e.getContext("command"),t=e.domElement,a=()=>n.query.set(t.value);t.addEventListener("input",a),e.addHook("Remove",()=>t.removeEventListener("input",a))},style:{fontFamily:"inherit",fontSize:e=>Nt(e,"inherit"),paddingInline:e=>Q(_e(e)*3),paddingBlock:e=>Q(_e(e)*2),border:"none",borderBottom:e=>`1px solid ${$(e,"shift-3",o)}`,outline:"none",color:e=>$(e,"shift-10",o),backgroundColor:e=>$(e,"inherit",o),"&::placeholder":{color:e=>$(e,"shift-7")},"&:focus-visible":{borderBottomColor:e=>$(e,"shift-6",r)}}}}function aa(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{role:"option",_onMount:e=>{var s,u;let n=e.getContext("command"),t=e.domElement,a=(u=(s=t.textContent)==null?void 0:s.toLowerCase())!=null?u:"",l=n.query.addListener(m=>{t.hidden=m.length>0&&!a.includes(m.toLowerCase())});e.addHook("Remove",l)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>Nt(e,"inherit"),height:e=>Q(6+_e(e)*2),paddingInline:e=>Q(_e(e)*3),border:"none",outline:"none",color:e=>$(e,"shift-9",o),backgroundColor:e=>$(e,"inherit",o),"&:hover:not([disabled])":{backgroundColor:e=>$(e,"shift-2",o)},"&:focus-visible":{outline:e=>`${Q(.5)} solid ${$(e,"shift-6",r)}`,outlineOffset:`-${Q(.5)}`}}}}import{toState as Dt}from"@domphy/core";import{themeColor as Z,themeSize as ur,themeSpacing as ee}from"@domphy/theme";function ma(i={}){var e,n;let o=Dt((e=i.color)!=null?e:"neutral","color"),r=Dt((n=i.accentColor)!=null?n:"primary","accentColor");return{role:"button",_onInsert:t=>{var m;t.tagName!=="button"&&console.warn('"toggle" patch must use button tag');let a=t.getContext("toggleGroup"),s=((m=t.parent)==null?void 0:m.children.items).filter(c=>c.type==="ElementNode"&&c.attributes.get("role")==="button"),u=t.key!==void 0?String(t.key):String(s.findIndex(c=>c===t));t.attributes.set("ariaPressed",c=>{let d=a.value.get(c);return Array.isArray(d)?d.includes(u):d===u}),t.addEvent("click",()=>{let c=a.value.get();if(a.multiple){let d=Array.isArray(c)?[...c]:[];a.value.set(d.includes(u)?d.filter(f=>f!==u):[...d,u])}else a.value.set(c===u?"":u)})},style:{cursor:"pointer",fontSize:t=>ur(t,"inherit"),height:ee(6),paddingBlock:ee(1),paddingInline:ee(2),border:"none",borderRadius:ee(1),color:t=>Z(t,"shift-9",o.get(t)),backgroundColor:t=>Z(t,"inherit",o.get(t)),transition:"background-color 300ms ease","&:hover:not([disabled])":{backgroundColor:t=>Z(t,"shift-2",o.get(t))},"&[aria-pressed=true]":{backgroundColor:t=>Z(t,"shift-3",r.get(t)),color:t=>Z(t,"shift-12",r.get(t))},"&:focus-visible":{outline:t=>`${ee(.5)} solid ${Z(t,"shift-6",r.get(t))}`,outlineOffset:`-${ee(.5)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as dr}from"@domphy/core";import{themeSpacing as Ve,themeColor as Ht,themeSize as hr}from"@domphy/theme";function fa(i={}){var e;let{multiple:o=!1,color:r="neutral"}=i;return{role:"group",_context:{toggleGroup:{value:dr((e=i.value)!=null?e:o?[]:""),multiple:o}},style:{display:"flex",paddingBlock:Ve(1),paddingInline:Ve(1),gap:Ve(1),borderRadius:Ve(2),fontSize:n=>hr(n,"inherit"),backgroundColor:n=>Ht(n,"inherit",r),outline:n=>`1px solid ${Ht(n,"shift-3",r)}`,outlineOffset:"-1px"}}}import{themeSpacing as Bt}from"@domphy/theme";function ya(){return{style:{display:"flex",alignItems:"center",gap:Bt(2),"& > *":{minWidth:Bt(9)+"!important"}},_onMount:i=>{let o=i.domElement,r=()=>Array.from(o.querySelectorAll("input")),e=a=>{let l=r(),s=a.target,u=l.indexOf(s);s.value&&u<l.length-1&&l[u+1].focus()},n=a=>{let l=r(),s=a.target,u=l.indexOf(s);a.key==="Backspace"&&!s.value&&u>0&&l[u-1].focus(),a.key==="ArrowLeft"&&u>0&&l[u-1].focus(),a.key==="ArrowRight"&&u<l.length-1&&l[u+1].focus()},t=a=>{var c,d,f;a.preventDefault();let l=(d=(c=a.clipboardData)==null?void 0:c.getData("text"))!=null?d:"",s=r(),u=s.indexOf(a.target);[...l].forEach((p,y)=>{s[u+y]&&(s[u+y].value=p)});let m=Math.min(u+l.length-1,s.length-1);(f=s[m])==null||f.focus()};o.addEventListener("input",e),o.addEventListener("keydown",n),o.addEventListener("paste",t),i.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",n),o.removeEventListener("paste",t)})}}}import{toState as pr}from"@domphy/core";import{themeColor as Ze,themeDensity as Ft,themeSize as fr,themeSpacing as ze}from"@domphy/theme";function Ea(i={}){var r;let o=pr((r=i.color)!=null?r:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:ze(3),paddingBlock:e=>ze(Ft(e)*2),paddingInline:e=>ze(Ft(e)*4),boxShadow:e=>`inset ${ze(1)} 0 0 0 ${Ze(e,"shift-8",o.get(e))}`,backgroundColor:e=>Ze(e,"inherit",o.get(e)),color:e=>Ze(e,"shift-10",o.get(e)),fontSize:e=>fr(e,"inherit")}}}import{toState as gr}from"@domphy/core";import{themeColor as At,themeSize as br,themeSpacing as Wt}from"@domphy/theme";function Oa(i={}){var r;let o=gr((r=i.color)!=null?r:"primary","color");return{dataTone:"shift-2",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:Wt(9),height:Wt(9),fontSize:e=>br(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>At(e,"inherit",o.get(e)),color:e=>At(e,"shift-11",o.get(e)),"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}import{toState as jt}from"@domphy/core";import{themeSpacing as et,themeColor as Kt,themeSize as yr}from"@domphy/theme";function $a(i={}){var n;let{label:o=999}=i,r=jt(o),e=jt((n=i.color)!=null?n:"danger","color");return{style:{position:"relative","&::after":{content:t=>`"${r.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:et(1),minWidth:et(6),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>yr(t,"decrease-1"),borderRadius:et(999),backgroundColor:t=>Kt(t,"shift-9",e.get(t)),color:t=>Kt(t,"shift-0",e.get(t))}}}}import{toState as Sr}from"@domphy/core";import{themeColor as fe,themeSize as Cr,themeSpacing as qt}from"@domphy/theme";function Da(i={}){var e;let{separator:o="/"}=i,r=Sr((e=i.color)!=null?e:"neutral","color");return{_onInsert:n=>{n.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:n=>Cr(n,"inherit"),gap:qt(1),color:n=>fe(n,"shift-9",r.get(n)),backgroundColor:n=>fe(n,"inherit",r.get(n)),"& > *":{display:"inline-flex",alignItems:"center",color:n=>fe(n,"shift-8",r.get(n))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:n=>fe(n,"shift-4",r.get(n)),paddingInlineStart:qt(1)},"& > [aria-current=page]":{color:n=>fe(n,"shift-10",r.get(n)),pointerEvents:"none"}}}}import{toState as vr}from"@domphy/core";import{themeColor as $e,themeSize as xr,themeSpacing as Le}from"@domphy/theme";function Wa(i={}){var r;let o=vr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>xr(e,"inherit"),paddingInline:Le(1),border:"none",background:"none",cursor:"pointer",color:e=>$e(e,"shift-8",o.get(e)),borderRadius:Le(1),"&:hover":{color:e=>$e(e,"shift-10",o.get(e)),backgroundColor:e=>$e(e,"shift-2",o.get(e))},"&:focus-visible":{outline:e=>`${Le(.5)} solid ${$e(e,"shift-6",o.get(e))}`,outlineOffset:Le(.5)}}}}import{toState as Yt,merge as ot}from"@domphy/core";import{themeSpacing as Y,themeColor as ge,themeDensity as rt,themeSize as Gt}from"@domphy/theme";import{toState as Er}from"@domphy/core";import{themeColor as Me,themeSize as kr,themeSpacing as L}from"@domphy/theme";var Tr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function Re(i={}){var e;let{removable:o=!1}=i,r=Er((e=i.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:n=>{let t={span:Tr,onClick:a=>{a.stopPropagation(),n.remove()},style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:L(1),width:L(4),height:L(4),flexShrink:0,"&:hover":{backgroundColor:a=>Me(a,"shift-4",r.get(a))}}};o&&n.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:L(6),paddingBlock:"0px",borderRadius:L(1),paddingInlineStart:L(2),paddingInlineEnd:o?L(1):L(2),gap:L(2),fontSize:n=>kr(n,"inherit"),backgroundColor:n=>Me(n,"inherit",r.get(n)),color:n=>Me(n,"shift-9",r.get(n)),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${Me(n,"shift-4",r.get(n))}`}}}import{toState as tt,merge as wr}from"@domphy/core";import{computePosition as Pr,autoUpdate as Or,offset as Ir,flip as _r,shift as Vr}from"@floating-ui/dom";function H(i){let{open:o=!1,placement:r="bottom"}=i,e=null,n=null,t=null,a=null,l=tt(o),s=tt(r),u=tt(s.get()),m=()=>{t&&a&&(n&&n(),n=Or(t,a,()=>{Pr(t,a,{placement:s.get(),middleware:[Ir(12),_r(),Vr()],strategy:"fixed"}).then(({x:h,y:g,placement:b})=>{var v;Object.assign(a.style,{left:`${h}px`,top:`${g}px`}),b!==u.get()&&u.set(b),(v=i.onPlacement)==null||v.call(i,t,a,b)})}),l.set(!0))},c=()=>{n&&n(),n=null,l.set(!1)},d=()=>{e&&clearTimeout(e),e=setTimeout(m,100)},f=()=>{e&&clearTimeout(e),e=setTimeout(c,100)},p={style:{position:"fixed",pointerEvents:"auto",visibility:h=>l.get(h)?"visible":"hidden"},_onMount:h=>a=h.domElement,_portal:h=>{let g=h.domElement.querySelector("#domphy-floating");if(!g){let b={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};g=h.children.insert(b).domElement}return g}};return wr(i.content,p),{show:d,hide:f,anchorPartial:{onKeyDown:h=>h.key==="Escape"&&f(),_onSchedule:h=>{let g=null,b=h.getRoot();b.domElement?g=b.children.insert(i.content):b.addHook("Init",v=>{g=v.children.insert(i.content)}),h.addHook("BeforeRemove",()=>{e&&clearTimeout(e),g&&g.remove()})},_onMount:h=>{t=h.domElement;let g=b=>{if(!l.get()||!t||!a)return;let v=b.target;!t.contains(v)&&!a.contains(v)&&f()};h.getRoot().domElement.addEventListener("click",g),h.addHook("BeforeRemove",()=>h.getRoot().domElement.removeEventListener("click",g))}},placeState:u}}function il(i){let{options:o=[],placement:r="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=i,a=Yt(i.value),l=Yt(n),{show:s,hide:u,anchorPartial:m}=H({open:l,placement:r,content:i.content,onPlacement:i.onPlacement}),c={onClick:()=>!t&&u()};ot(i.content,c);let d={border:"none",outline:"none",padding:0,margin:0,flex:1,height:Y(6),marginInlineStart:Y(2),fontSize:h=>Gt(h,"inherit"),color:h=>ge(h,"shift-9",e),backgroundColor:h=>ge(h,"inherit",e)},f;i.input?(ot(i.input,{onFocus:()=>s(),style:d,_key:"combobox-input"}),f=i.input):f={input:null,onFocus:()=>s(),value:h=>(a.get(h),""),style:d,_key:"combobox-input"};let p={div:h=>{let g=a.get(h),b=Array.isArray(g)?g:[g],w=o.filter(X=>b.includes(X.value)).map(X=>({span:X.label,$:[Re({color:e,removable:!0})],_key:X.value,_onRemove:Je=>{let he=a.get(),Vt=(Array.isArray(he)?he:[he]).filter(Jo=>Jo!==X.value);t?a.set(Vt):a.set(Vt[0])}}));return w.push(f),w},style:{display:"flex",flexWrap:"wrap",gap:Y(1)}},y={_onInsert:h=>{h.tagName!="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:h=>h.children.insert(p),style:{minWidth:Y(32),outlineOffset:"-1px",outline:h=>`1px solid ${ge(h,"shift-4","neutral")}`,paddingBlock:h=>Y(rt(h)*1),paddingInline:h=>Y(rt(h)*1),borderRadius:h=>Y(rt(h)*1),fontSize:h=>Gt(h,"inherit"),color:h=>ge(h,"shift-9",e),backgroundColor:h=>ge(h,"inherit",e)}};return ot(m,y),m}import{toState as Ut}from"@domphy/core";import{themeSpacing as nt,themeColor as Ne,themeSize as zr}from"@domphy/theme";function Xt(i={}){let{placement:o="bottom-end",color:r="neutral",sideOffset:e=nt(6),bordered:n=!0}=i,t=Ut(o),a={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},l=Ut(a[t.get()]);t.addListener(m=>l.set(a[m]));let s=m=>m.includes("start")?e:m.includes("end")?"auto":"50%",u=m=>m.includes("end")?e:m.includes("start")?"auto":"50%";return{style:{fontSize:m=>zr(m),backgroundColor:m=>Ne(m),color:m=>Ne(m,"shift-9",r),position:"relative","&::after":{content:'""',position:"absolute",width:nt(1.5),height:nt(1.5),backgroundColor:m=>Ne(m,"inherit",r),borderWidth:n?"1px":"0px",borderColor:m=>Ne(m,"inherit",r),borderTopStyle:m=>{let c=l.get(m);return c.includes("top")||c.includes("right")?"solid":"none"},borderBottomStyle:m=>{let c=l.get(m);return c.includes("bottom")||c.includes("left")?"solid":"none"},borderLeftStyle:m=>{let c=l.get(m);return c.includes("top")||c.includes("left")?"solid":"none"},borderRightStyle:m=>{let c=l.get(m);return c.includes("bottom")||c.includes("right")?"solid":"none"},top:m=>{let c=l.get(m);return c.includes("top")?0:c.includes("bottom")?"auto":s(c)},right:m=>{let c=l.get(m);return c.includes("right")?0:c.includes("left")?"auto":u(c)},bottom:m=>{let c=l.get(m);return c.includes("bottom")?0:c.includes("top")?"auto":u(c)},left:m=>{let c=l.get(m);return c.includes("left")?0:c.includes("right")?"auto":s(c)},transform:m=>{let c=l.get(m),d=c.includes("right")||c.includes("end")&&!c.includes("left")?"50%":"-50%",f=c.includes("bottom")||c.includes("end")&&!c.includes("top")?"50%":"-50%";return`translate(${d},${f}) rotate(45deg)`}}}}}import{toState as $r}from"@domphy/core";import{themeSpacing as it,themeColor as Jt,themeDensity as Qt,themeSize as Lr}from"@domphy/theme";function bl(i={}){var r;let o=$r((r=i.color)!=null?r:"inherit","color");return{_onInsert:e=>{e.tagName!="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>Lr(e,"inherit"),backgroundColor:e=>Jt(e,"inherit",o.get(e)),boxShadow:e=>`inset ${it(1)} 0 0 0 ${Jt(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>it(Qt(e)*2),paddingInline:e=>it(Qt(e)*4),margin:0}}}import{toState as Mr}from"@domphy/core";import{themeColor as M,themeDensity as De,themeSize as Rr,themeSpacing as be}from"@domphy/theme";function vl(i={}){var r;let o=Mr((r=i.color)!=null?r:"primary","color");return{_onInsert:e=>{e.tagName!="button"&&console.warn('"button" primitive patch must use button tag')},style:{appearance:"none",fontSize:e=>Rr(e,"inherit"),paddingBlock:e=>be(De(e)*1),paddingInline:e=>be(De(e)*3),borderRadius:e=>be(De(e)*1),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:e=>be(De(e)*1),userSelect:"none",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e=>`1px solid ${M(e,"shift-4",o.get(e))}`,color:e=>M(e,"shift-9",o.get(e)),backgroundColor:e=>M(e,"inherit",o.get(e)),"&:hover:not([disabled]):not([aria-busy=true])":{color:e=>M(e,"shift-10",o.get(e)),backgroundColor:e=>M(e,"shift-2",o.get(e))},"&:focus-visible":{boxShadow:e=>`inset 0 0 0 ${be(.5)} ${M(e,"shift-6",o.get(e))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>M(e,"shift-2","neutral"),outline:e=>`1px solid ${M(e,"shift-4","neutral")}`,color:e=>M(e,"shift-8","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}import{toState as Zt}from"@domphy/core";import{themeColor as x,themeSpacing as B,themeSize as Nr}from"@domphy/theme";function Ol(i={}){var e,n;let o=Zt((e=i.color)!=null?e:"neutral","color"),r=Zt((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>Nr(t,"inherit"),display:"inline-flex",position:"relative",width:B(6),height:B(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:B(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${x(t,"shift-4",o.get(t))}`,color:t=>x(t,"shift-9",o.get(t)),width:B(4),height:B(4)},"&:hover::before":{backgroundColor:t=>x(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${x(t,"shift-6",r.get(t))}`,backgroundColor:t=>x(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>x(t,"shift-7",r.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${B(.5)} solid ${x(t,"inherit",r.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${x(t,"shift-6",r.get(t))}`,backgroundColor:t=>x(t,"shift-3",r.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>x(t,"shift-8",r.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>x(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:B(1.5),outline:t=>`${B(.5)} solid ${x(t,"shift-6",r.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>x(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as Dr}from"@domphy/core";import{themeSpacing as at,themeColor as eo,themeSize as Hr}from"@domphy/theme";function Ml(i={}){var r;let o=Dr((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",fontSize:e=>Hr(e,"inherit"),color:e=>eo(e,"shift-9",o.get(e)),backgroundColor:e=>eo(e,"inherit",o.get(e)),height:at(6),paddingInline:at(1.5),borderRadius:at(1)}}}import{toState as to}from"@domphy/core";import{themeColor as F,themeDensity as ye,themeSize as oo,themeSpacing as C}from"@domphy/theme";function Al(i={}){var n,t;let{duration:o=240}=i,r=to((n=i.color)!=null?n:"neutral","color"),e=to((t=i.accentColor)!=null?t:"primary","accentColor");return{_onInsert:a=>{a.tagName!="details"&&console.warn('"details" primitive patch must use details tag')},style:{fontSize:a=>oo(a,"inherit"),color:a=>F(a,"shift-9",r.get(a)),backgroundColor:a=>F(a,"inherit",r.get(a)),overflow:"hidden","& > summary":{backgroundColor:a=>F(a,"shift-2",r.get(a)),color:a=>F(a,"shift-10",r.get(a)),fontSize:a=>oo(a,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:C(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:a=>C(ye(a)*4),height:C(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:C(2),height:C(2),flexShrink:0,marginTop:`-${C(.5)}`,borderInlineEnd:a=>`${C(.5)} solid ${F(a,"shift-9",r.get(a))}`,borderBottom:a=>`${C(.5)} solid ${F(a,"shift-9",r.get(a))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:a=>F(a,"shift-3",r.get(a))},"& > summary:focus-visible":{borderRadius:a=>C(ye(a)*2),outlineOffset:`-${C(.5)}`,outline:a=>`${C(.5)} solid ${F(a,"shift-6",e.get(a))}`},"& > :not(summary)":{maxHeight:"0px",opacity:0,overflow:"hidden",paddingInline:a=>C(ye(a)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:C(250),opacity:1,paddingTop:a=>C(ye(a)*1),paddingBottom:a=>C(ye(a)*3)}}}}import{toState as Br}from"@domphy/core";import{themeColor as ro,themeSpacing as no,themeSize as io}from"@domphy/theme";function Ul(i={}){var r;let o=Br((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},style:{display:"grid",gridTemplateColumns:`minmax(${no(24)}, max-content) 1fr`,columnGap:no(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>io(e,"inherit"),color:e=>ro(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>io(e,"inherit"),color:e=>ro(e,"shift-9",o.get(e))}}}}import{toState as Fr}from"@domphy/core";import{themeColor as He,themeDensity as Ar,themeSize as Wr,themeSpacing as lt}from"@domphy/theme";function es(i={}){let{color:o="neutral",open:r=!1}=i,e=Fr(r);return{_onInsert:n=>{n.tagName!="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')},onClick:(n,t)=>{if(n.target!==t.domElement)return;let a=t.domElement.getBoundingClientRect();n.clientX>=a.left&&n.clientX<=a.right&&n.clientY>=a.top&&n.clientY<=a.bottom||e.set(!1)},onTransitionEnd:(n,t)=>{let a=t.domElement;a.style.opacity==="0"&&(a.close(),document.body.style.overflow="")},_onMount:n=>{let t=n.domElement,a=l=>{l?(t.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{t.style.opacity="1";let s=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');s==null||s.focus()})):t.style.opacity="0"};a(e.get()),e.addListener(a)},style:{opacity:"0",transition:"opacity 200ms ease",fontSize:n=>Wr(n,"inherit"),color:n=>He(n,"shift-10",o),backgroundColor:n=>He(n,"inherit",o),border:"none",padding:n=>lt(Ar(n)*3),boxShadow:n=>`0 ${lt(9)} ${lt(16)} ${He(n,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:n=>He(n,"shift-2","neutral"),opacity:.75}}}}import{toState as jr}from"@domphy/core";import{themeColor as Kr,themeSize as qr}from"@domphy/theme";function ls(i={}){var r;let o=jr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>qr(e,"inherit"),fontStyle:"italic",color:e=>Kr(e,"shift-10",o.get(e))}}}import{toState as Yr}from"@domphy/core";import{themeColor as ao,themeSize as Gr,themeSpacing as Be}from"@domphy/theme";function ps(i={}){var r;let o=Yr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:Be(2),marginInline:0,marginTop:Be(3),marginBottom:Be(3),color:e=>ao(e,"shift-9",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:Be(2)},"& figcaption":{fontSize:e=>Gr(e,"decrease-1"),color:e=>ao(e,"shift-8",o.get(e)),lineHeight:1.45}}}}import{toState as Ur}from"@domphy/core";import{themeColor as Fe,themeDensity as te,themeSpacing as R,themeSize as st}from"@domphy/theme";function Ss(i={}){var n;let{layout:o="horizontal"}=i,r=Ur((n=i.color)!=null?n:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},style:{margin:0,paddingInline:t=>R(te(t)*3),paddingBlock:t=>R(te(t)*3),border:"none",borderRadius:t=>R(te(t)*2),fontSize:t=>st(t,"inherit"),backgroundColor:t=>Fe(t,"inherit",r.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:R(4),rowGap:R(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>st(t,"inherit"),fontWeight:600,paddingBlock:t=>R(te(t)*1),borderRadius:t=>R(te(t)*2),color:t=>Fe(t,"shift-9",r.get(t)),backgroundColor:t=>Fe(t,"inherit",r.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?"0px":R(te(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${R(2)} * -1)`,fontSize:t=>st(t,"decrease-1"),color:t=>Fe(t,"shift-9",r.get(t))}}}}import{toState as Xr}from"@domphy/core";import{themeColor as Jr,themeSize as Qr,themeSpacing as Zr}from"@domphy/theme";var en={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function ws(i={}){var r;let o=Xr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>Jr(e,"shift-11",o.get(e)),marginTop:0,marginBottom:Zr(2),fontSize:e=>{let n=en[e.elementNode.tagName]||"inherit";return Qr(e,n)}}}}import{toState as tn}from"@domphy/core";import{themeColor as on,themeSpacing as lo}from"@domphy/theme";function $s(i={}){var r;let o=tn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},style:{border:0,height:"1px",marginInline:0,marginTop:lo(3),marginBottom:lo(3),backgroundColor:e=>on(e,"shift-4",o.get(e))}}}import{toState as rn}from"@domphy/core";import{themeColor as nn,themeSpacing as an}from"@domphy/theme";function Bs(i={}){var r;let o=rn((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:an(2),backgroundColor:e=>nn(e,"inherit",o.get(e))}}}import{toState as ln}from"@domphy/core";import{themeSpacing as so,themeColor as sn,themeSize as cn}from"@domphy/theme";function Ks(i={}){var r;let o=ln((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:so(4),height:so(4),flexShrink:"0",fontSize:e=>cn(e),backgroundColor:"transparent",color:e=>sn(e,"shift-9",o.get(e))}}}import{toState as co}from"@domphy/core";import{themeColor as mo,themeDensity as Se,themeSpacing as Ce,themeSize as mn}from"@domphy/theme";function Js(i={}){var e,n;let o=co((e=i.color)!=null?e:"neutral","color"),r=co((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"color",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputColor" primitive patch must use input tag'),a.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:t=>mn(t,"inherit"),paddingBlock:t=>Ce(Se(t)*1),paddingInline:t=>Ce(Se(t)*1),blockSize:t=>Ce(6+Se(t)*2),inlineSize:t=>Ce(6+Se(t)*2),backgroundColor:"transparent","&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:t=>Ce(Se(t)*1)},"&:hover:not([disabled]), &:focus-visible":{},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>mo(t,"shift-2","neutral"),outline:t=>`1px solid ${mo(t,"shift-4","neutral")}`}}}}import{toState as uo}from"@domphy/core";import{themeColor as A,themeDensity as ct,themeSpacing as ve,themeSize as un}from"@domphy/theme";function nc(i={}){var n,t;let{mode:o="datetime-local"}=i,r=uo((n=i.color)!=null?n:"neutral","color"),e=uo((t=i.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(a,l)=>{a.tagName!="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),l.type=o},style:{fontFamily:"inherit",fontSize:a=>un(a,"inherit"),lineHeight:"inherit",color:a=>A(a,"shift-9",r.get(a)),backgroundColor:a=>A(a,"inherit",r.get(a)),border:"none",outlineOffset:"-1px",outline:a=>`1px solid ${A(a,"shift-4",r.get(a))}`,borderRadius:a=>ve(ct(a)*1),paddingInline:a=>ve(ct(a)*3),height:a=>ve(6+ct(a)*2),"&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:a=>`${ve(.5)} solid ${A(a,"shift-6",e.get(a))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>A(a,"shift-8","neutral"),backgroundColor:a=>A(a,"shift-2","neutral"),outline:a=>`1px solid ${A(a,"shift-4","neutral")}`},"&:invalid":{outline:a=>`${ve(.5)} solid ${A(a,"shift-6","error")}`}}}}import{toState as ho}from"@domphy/core";import{themeColor as E,themeDensity as mt,themeSpacing as P,themeSize as dn}from"@domphy/theme";function uc(i={}){var e,n;let o=ho((e=i.color)!=null?e:"neutral","color"),r=ho((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"file",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputFile" primitive patch must use input tag'),a.type="file"},style:{fontFamily:"inherit",fontSize:t=>dn(t,"inherit"),lineHeight:"inherit",color:t=>E(t,"shift-9",o.get(t)),backgroundColor:t=>E(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${E(t,"shift-4",o.get(t))}`,borderRadius:t=>P(mt(t)*1),height:t=>P(6+mt(t)*2),paddingInline:t=>P(mt(t)*1),"&::file-selector-button":{marginBlock:"auto",fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:P(1),height:P(6),paddingInline:P(2),cursor:"pointer",color:t=>E(t,"shift-10",r.get(t)),backgroundColor:t=>E(t,"shift-3",r.get(t))},"&::-webkit-file-upload-button":{marginTop:P(1),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:P(1),height:P(6),paddingInline:P(2),cursor:"pointer",color:t=>E(t,"shift-10",o.get(t)),backgroundColor:t=>E(t,"shift-3",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${P(.5)} solid ${E(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>E(t,"shift-8","neutral"),outline:t=>`1px solid ${E(t,"shift-4","neutral")}`,backgroundColor:t=>E(t,"shift-2","neutral")},"&[disabled]::file-selector-button, &[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>E(t,"shift-8","neutral"),backgroundColor:t=>E(t,"shift-3","neutral")}}}}import{toState as po}from"@domphy/core";import{themeColor as W,themeDensity as ut,themeSpacing as xe,themeSize as hn}from"@domphy/theme";function yc(i={}){var e,n;let o=po((e=i.color)!=null?e:"neutral","color"),r=po((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"search",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputSearch" primitive patch must use input tag'),a.type="search"},style:{fontFamily:"inherit",fontSize:t=>hn(t,"inherit"),lineHeight:"inherit",color:t=>W(t,"shift-9",o.get(t)),backgroundColor:t=>W(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${W(t,"shift-4",o.get(t))}`,borderRadius:t=>xe(ut(t)*1),minWidth:xe(32),paddingInline:t=>xe(ut(t)*3),paddingBlock:t=>xe(ut(t)*1),"&::placeholder":{color:t=>W(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${xe(.5)} solid ${W(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>W(t,"shift-8","neutral"),backgroundColor:t=>W(t,"shift-2","neutral"),outline:t=>`1px solid ${W(t,"shift-4","neutral")}`}}}}import{toState as fo}from"@domphy/core";import{themeColor as k,themeDensity as dt,themeSpacing as j,themeSize as pn}from"@domphy/theme";function Tc(i={}){var e,n;let o=fo((e=i.color)!=null?e:"neutral","color"),r=fo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"text",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputText" primitive patch must use input tag and text type'),a.type="text"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:j(10),paddingInline:t=>j(dt(t)*3),paddingBlock:t=>j(dt(t)*1),borderRadius:t=>j(dt(t)*1),fontSize:t=>pn(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${k(t,"shift-4",o.get(t))}`,color:t=>k(t,"shift-9",o.get(t)),backgroundColor:t=>k(t,"inherit",o.get(t)),"&::placeholder":{color:t=>k(t,"shift-7")},"&:not(:placeholder-shown)":{color:t=>k(t,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${j(.5)} solid ${k(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>k(t,"shift-2","neutral"),outline:t=>`1px solid ${k(t,"shift-4","neutral")}`,color:t=>k(t,"shift-8","neutral")},"&:invalid:not(:placeholder-shown)":{outline:t=>`${j(.5)} solid ${k(t,"shift-6","error")}`},"&[data-status=error]":{outline:t=>`${j(.5)} solid ${k(t,"shift-6","error")}`},"&[data-status=warning]":{outline:t=>`${j(.5)} solid ${k(t,"shift-6","warning")}`}}}}import{toState as go}from"@domphy/core";import{themeColor as G,themeSpacing as S}from"@domphy/theme";function zc(i={}){var e,n;let o=go((e=i.color)!=null?e:"neutral","color"),r=go((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:S(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:S(1.5),borderRadius:S(999),backgroundColor:t=>G(t,"shift-3",o.get(t))},"&::-moz-range-track":{height:S(1.5),borderRadius:S(999),backgroundColor:t=>G(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:S(4),height:S(4),borderRadius:S(999),border:"none",marginTop:`calc((${S(1.5)} - ${S(4)}) / 2)`,backgroundColor:t=>G(t,"shift-9",r.get(t))},"&::-moz-range-thumb":{width:S(4),height:S(4),borderRadius:S(999),border:"none",backgroundColor:t=>G(t,"shift-9",r.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>G(t,"shift-10",r.get(t))},"&:hover:not([disabled])::-moz-range-thumb":{backgroundColor:t=>G(t,"shift-10",r.get(t))},"&:focus-visible":{outline:t=>`${S(.5)} solid ${G(t,"shift-6",r.get(t))}`,outlineOffset:S(1),borderRadius:S(2)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as bo}from"@domphy/core";import{themeColor as U,themeDensity as Ae,themeSpacing as oe,themeSize as fn}from"@domphy/theme";function Hc(i={}){var e,n;let o=bo((e=i.color)!=null?e:"neutral","color"),r=bo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"number",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputNumber" primitive patch must use input tag'),a.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:oe(10),paddingInlineStart:t=>oe(Ae(t)*3),paddingInlineEnd:t=>oe(Ae(t)*1.5),paddingBlock:t=>oe(Ae(t)*1),borderRadius:t=>oe(Ae(t)*1),fontSize:t=>fn(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${U(t,"shift-4",o.get(t))}`,color:t=>U(t,"shift-9",o.get(t)),backgroundColor:t=>U(t,"inherit",o.get(t)),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${oe(.5)} solid ${U(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>U(t,"shift-2","neutral"),outline:t=>`1px solid ${U(t,"shift-4","neutral")}`,color:t=>U(t,"shift-8","neutral")}}}}import{toState as gn}from"@domphy/core";import{themeColor as ht,themeSize as bn,themeSpacing as pt}from"@domphy/theme";function qc(i={}){var r;let o=gn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>bn(e,"inherit"),color:e=>ht(e,"shift-9",o.get(e)),backgroundColor:e=>ht(e,"inherit",o.get(e)),paddingBlock:pt(.5),paddingInline:pt(1.5),borderRadius:pt(1),outline:e=>`1px solid ${ht(e,"shift-4",o.get(e))}`}}}import{toState as yo}from"@domphy/core";import{themeColor as ft,themeSize as yn,themeSpacing as Sn}from"@domphy/theme";function Zc(i={}){var e,n;let o=yo((e=i.color)!=null?e:"neutral","color"),r=yo((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:Sn(2),fontSize:t=>yn(t,"inherit"),color:t=>ft(t,"shift-9",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>ft(t,"shift-10",r.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>ft(t,"shift-8","neutral")}}}}import{toState as So}from"@domphy/core";import{themeColor as Ee,themeSize as Cn,themeSpacing as gt}from"@domphy/theme";function im(i={}){var e,n;let o=So((e=i.color)!=null?e:"primary","color"),r=So((n=i.accentColor)!=null?n:"secondary","accentColor");return{_onInsert:t=>{t.tagName!="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>Cn(t,"inherit"),color:t=>Ee(t,"shift-9",o.get(t)),textDecoration:"none","&:visited":{color:t=>Ee(t,"shift-9",r.get(t))},"&:hover:not([disabled])":{color:t=>Ee(t,"shift-10",o.get(t)),textDecoration:"underline"},"&:focus-visible":{borderRadius:gt(1),outlineOffset:gt(1),outline:t=>`${gt(.5)} solid ${Ee(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>Ee(t,"shift-8","neutral")}}}}import{toState as vn}from"@domphy/core";import{themeSpacing as bt,themeSize as xn,themeColor as Co}from"@domphy/theme";function dm(i={}){var r;let o=vn((r=i.accentColor)!=null?r:"highlight","accentColor");return{_onInsert:e=>{e.tagName!="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>xn(e,"inherit"),color:e=>Co(e,"shift-9",o.get(e)),backgroundColor:e=>Co(e,"inherit",o.get(e)),height:bt(6),borderRadius:bt(1),paddingInline:bt(1.5)}}}import{toState as En}from"@domphy/core";import{themeColor as kn,themeSize as Tn}from"@domphy/theme";function Cm(i={}){var r;let o=En((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>Tn(e,"inherit"),color:e=>kn(e,"shift-9",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}import{toState as wn}from"@domphy/core";import{themeColor as vo,themeDensity as yt,themeSpacing as St,themeSize as Pn}from"@domphy/theme";function Pm(i={}){var r;let o=wn((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>Pn(e,"inherit"),color:e=>vo(e,"shift-9",o.get(e)),backgroundColor:e=>vo(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>St(yt(e)*2),paddingInline:e=>St(yt(e)*3),borderRadius:e=>St(yt(e)*2)}}}import{toState as xo}from"@domphy/core";import{themeColor as We,themeSpacing as ke}from"@domphy/theme";function Lm(i={}){var e,n;let o=xo((e=i.color)!=null?e:"neutral","color"),r=xo((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="progress"&&console.warn('"progress" primitive patch must use progress tag')},style:{appearance:"none",width:"100%",height:ke(2),border:0,borderRadius:ke(999),overflow:"hidden",backgroundColor:t=>We(t,"shift-3",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>We(t,"shift-3",o.get(t)),borderRadius:ke(999)},"&::-webkit-progress-value":{backgroundColor:t=>We(t,"shift-9",r.get(t)),borderRadius:ke(999),transition:"width 220ms ease"},"&::-moz-progress-bar":{backgroundColor:t=>We(t,"shift-9",r.get(t)),borderRadius:ke(999)}}}}import{toState as Eo}from"@domphy/core";import{themeColor as K,themeSize as On,themeSpacing as Te}from"@domphy/theme";function Fm(i={}){var e,n;let o=Eo((e=i.color)!=null?e:"neutral","color"),r=Eo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>On(t,"inherit"),appearance:"none",display:"inline-flex",position:"relative",width:Te(6),height:Te(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${K(t,"shift-4",o.get(t))}`,color:t=>K(t,"shift-9",o.get(t)),width:Te(4),height:Te(4)},"&:hover::before":{backgroundColor:t=>K(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${K(t,"shift-6",r.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>K(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>K(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:"50%",outline:t=>`${Te(.5)} solid ${K(t,"shift-6",r.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>K(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{themeColor as O,themeDensity as we,themeSize as In,themeSpacing as I,themeColorToken as _n}from"@domphy/theme";function jm(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{_onInsert:e=>{e.tagName!="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>In(e,"inherit"),lineHeight:"inherit",color:e=>O(e,"shift-9",o),backgroundColor:e=>O(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${O(e,"shift-4",o)}`,borderRadius:e=>I(we(e)*1),paddingBlock:e=>I(we(e)*1),paddingLeft:e=>I(we(e)*3),paddingRight:e=>I(we(e)*5),backgroundImage:e=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${_n(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(n)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${I(2)} center`,backgroundSize:`${I(2.5)} ${I(1.5)}`,"&:not([multiple])":{height:e=>I(6+we(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`${I(.5)} solid ${O(e,"shift-5",r)}`},"&:focus-visible":{outline:e=>`${I(.5)} solid ${O(e,"shift-6",r)}`},"& optgroup":{color:e=>O(e,"shift-11",o)},"& option[disabled]":{color:e=>O(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>O(e,"shift-8","neutral"),outline:e=>`1px solid ${O(e,"shift-4","neutral")}`,backgroundColor:e=>O(e,"shift-2","neutral")}}}}import{hashString as Vn,toState as zn}from"@domphy/core";import{themeColor as ko,themeSize as $n,themeSpacing as To}from"@domphy/theme";function Gm(i={}){var n;let o=zn((n=i.color)!=null?n:"neutral","color"),r={"0%,100%":{opacity:1},"50%":{opacity:.4}},e=Vn(JSON.stringify(r));return{ariaHidden:"true",dataTone:"shift-2",style:{fontSize:t=>$n(t),color:t=>ko(t,"shift-9",o.get(t)),height:To(6),display:"block",borderRadius:To(1),backgroundColor:t=>ko(t,"inherit",o.get(t)),animation:`${e} 1.5s ease-in-out infinite`,[`@keyframes ${e}`]:r}}}import{hashString as Ln,toState as Mn}from"@domphy/core";import{themeColor as je,themeSize as Rn,themeSpacing as Ct}from"@domphy/theme";var Po={to:{transform:"rotate(360deg)"}},wo=Ln(JSON.stringify(Po));function Qm(i={}){var r;let o=Mn((r=i.color)!=null?r:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>Rn(e),backgroundColor:e=>je(e),color:e=>je(e,"shift-9",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:Ct(6),height:Ct(6),borderRadius:"50%",border:e=>`${Ct(.5)} solid ${je(e,"shift-4",o.get(e))}`,borderTopColor:e=>je(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${wo} 0.7s linear infinite`,[`@keyframes ${wo}`]:Po}}}import{toState as Nn}from"@domphy/core";import{themeColor as Dn,themeDensity as Oo,themeSize as Hn,themeSpacing as Io}from"@domphy/theme";function ru(i={}){var a;let{color:o="neutral",multiple:r=!1}=i,e=Nn((a=i.value)!=null?a:r?[]:null),n={div:l=>{let s=e.get(l);return(Array.isArray(s)?s:[s]).map(m=>({input:null,name:i.name,value:m||""}))},hidden:!0};return{dataTone:"shift-17",_context:{select:{value:e,multiple:r}},_onInit:l=>{l.tagName!="div"&&console.warn('"selectList" patch must use a div tag'),l.children.insert(n)},style:{display:"flex",flexDirection:"column",paddingBlock:l=>Io(Oo(l)*2),paddingInline:l=>Io(Oo(l)*2),fontSize:l=>Hn(l,"inherit"),backgroundColor:l=>Dn(l,"inherit",o)}}}import{themeSpacing as Ke,themeColor as re,themeDensity as _o,themeSize as Bn}from"@domphy/theme";function lu(i={}){let{accentColor:o="primary",color:r="neutral",value:e=null}=i;return{role:"option",_onInit:t=>{t.tagName!="div"&&console.warn('"selectItem" patch must use div tag');let a=t.getContext("select");if(a){let l=a.value;t.attributes.set("ariaSelected",s=>{let u=l.get(s);return a.multiple?u.includes(e):u==e}),t.addEvent("click",()=>{let s=l.get();a.multiple?s.includes(e)?l.set(s.filter(u=>u!==e)):l.set(s.concat([e])):s!=e&&l.set(e)})}},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>Bn(t,"inherit"),height:t=>Ke(6+_o(t)*2),paddingInline:t=>Ke(_o(t)*3),border:"none",outline:"none",color:t=>re(t,"shift-9",r),backgroundColor:t=>re(t,"inherit",r),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>re(t,"shift-2",r)},"&[aria-selected=true]":{backgroundColor:t=>re(t,"shift-6",o),color:t=>re(t,"shift-11")},"&:focus-visible":{outline:t=>`${Ke(.5)} solid ${re(t,"shift-6",o)}`,outlineOffset:`-${Ke(.5)}`}}}}import{toState as Vo,merge as zo}from"@domphy/core";import{themeSpacing as Pe,themeColor as vt,themeDensity as xt,themeSize as Fn}from"@domphy/theme";function hu(i){let{options:o=[],placement:r="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=i,a=Vo(i.value),l=Vo(n),{show:s,hide:u,anchorPartial:m}=H({open:l,placement:r,content:i.content,onPlacement:i.onPlacement}),c={onClick:()=>!t&&u()};zo(i.content,c);let d={div:p=>{let y=a.get(p),h=Array.isArray(y)?y:[y];return o.filter(b=>h.includes(b.value)).map(b=>({span:b.label,$:[Re({color:e,removable:t})],_key:b.value,_onRemove:v=>{let w=a.get(),Je=(Array.isArray(w)?w:[w]).filter(he=>he!==b.value);t?a.set(Je):a.set(Je[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:Pe(1),flex:1}},f={_onInsert:p=>{p.tagName!="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:p=>p.children.insert(d),onClick:()=>l.get()?u():s(),style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:p=>Pe(6+xt(p)*2),minWidth:Pe(32),outlineOffset:"-1px",outline:p=>`1px solid ${vt(p,"shift-4","neutral")}`,paddingInline:p=>Pe(xt(p)*2),borderRadius:p=>Pe(xt(p)*1),fontSize:p=>Fn(p,"inherit"),color:p=>vt(p,"shift-9",e),backgroundColor:p=>vt(p,"inherit",e)}};return zo(m,f),m}import{toState as An}from"@domphy/core";import{themeColor as Et,themeSize as $o,themeSpacing as N}from"@domphy/theme";function Cu(i={}){var r;let o=An((r=i.accentColor)!=null?r:"primary","accentColor");return{dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>$o(e,"inherit"),appearance:"none",position:"relative",display:"inline-flex",width:N(9),height:N(6),cursor:"pointer",margin:"0",paddingBlock:N(1),"&:checked":{"&::before":{backgroundColor:e=>Et(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${N(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:N(3),height:N(3),borderRadius:N(999),left:N(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>Et(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:N(999),display:"inline-block",fontSize:e=>$o(e,"inherit"),lineHeight:1,backgroundColor:e=>Et(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as kt}from"@domphy/core";import{themeColor as ne,themeSize as Wn,themeSpacing as T}from"@domphy/theme";function ku(i={}){var t,a;let{checked:o=!1}=i,r=kt(o),e=kt((t=i.color)!=null?t:"neutral","color"),n=kt((a=i.accentColor)!=null?a:"primary","accentColor");return{_onSchedule:l=>{l.tagName!="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:l=>r.get(l),dataTone:"shift-2",onClick:()=>r.set(!r.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:l=>Wn(l),border:"none",outlineWidth:"1px",outline:l=>`1px solid ${ne(l,"shift-3",e.get(l))}`,minWidth:T(12),minHeight:T(6),borderRadius:T(999),paddingLeft:T(7),paddingRight:T(2),transition:"padding-left 0.3s, padding-right 0.3s",backgroundColor:l=>ne(l,"inherit",e.get(l)),"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:T(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:T(5),height:T(5),borderRadius:T(999),color:l=>ne(l,"shift-9"),backgroundColor:l=>ne(l,"decrease-2",e.get(l))},"&[aria-checked=true]":{backgroundColor:l=>ne(l,"increase-3",n.get(l)),outline:"none",color:l=>ne(l,"decrease-2"),paddingLeft:T(2),paddingRight:T(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${T(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as jn}from"@domphy/core";import{themeColor as Kn,themeSize as qn}from"@domphy/theme";function Vu(i={}){var r;let o=jn((r=i.color)!=null?r:"neutral","color");return{dataSize:"decrease-1",_onInsert:e=>{e.tagName!="small"&&console.warn('"small" primitive patch must use small tag')},style:{fontSize:e=>qn(e,"inherit"),color:e=>Kn(e,"shift-9",o.get(e))}}}import{toState as Yn}from"@domphy/core";import{themeColor as Lo,themeSize as Gn}from"@domphy/theme";function Du(i={}){var r;let o=Yn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>Gn(e,"inherit"),fontWeight:700,color:e=>Lo(e,"shift-11",o.get(e)),backgroundColor:e=>Lo(e)}}}import{toState as Un}from"@domphy/core";import{themeColor as Xn,themeSize as Jn}from"@domphy/theme";function Ku(i={}){var r;let o=Un((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>Jn(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>Xn(e,"shift-9",o.get(e))}}}import{toState as Qn}from"@domphy/core";import{themeColor as Zn,themeSize as ei}from"@domphy/theme";function Qu(i={}){var r;let o=Qn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>ei(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>Zn(e,"shift-9",o.get(e))}}}import{toState as ti}from"@domphy/core";import{themeColor as _,themeDensity as ie,themeSpacing as ae,themeSize as Mo}from"@domphy/theme";function od(i={}){var r;let o=ti((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="table"&&console.warn('"table" primitive patch must use table tag')},style:{fontSize:e=>Mo(e,"inherit"),color:e=>_(e,"shift-9",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>ae(ie(e)*3),paddingBlock:e=>ae(ie(e)*1),color:e=>_(e,"shift-10",o.get(e)),backgroundColor:e=>_(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>ae(ie(e)*3),paddingBlock:e=>ae(ie(e)*1),color:e=>_(e,"shift-9",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${_(e,"shift-3",o.get(e))}`,fontSize:e=>Mo(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>ae(ie(e)*3),paddingBlock:e=>ae(ie(e)*1),color:e=>_(e,"shift-10",o.get(e)),backgroundColor:e=>_(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${_(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>_(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>_(e,"shift-2")+"!important"}}}}import{toState as Ro}from"@domphy/core";import{themeColor as V,themeDensity as Tt,themeSpacing as le,themeSize as oi}from"@domphy/theme";function cd(i={}){var n,t;let o=Ro((n=i.color)!=null?n:"neutral","color"),r=Ro((t=i.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=i;return{_onInsert:a=>{a.tagName!="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:a=>{if(e){let l=a.domElement;l.style.overflow="hidden";let s=()=>{l.style.height="auto",l.style.height=l.scrollHeight+"px"};l.addEventListener("input",s),s()}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:a=>le(Tt(a)*2),paddingBlock:a=>le(Tt(a)*1.5),border:"none",borderRadius:a=>le(Tt(a)*1.5),fontSize:a=>oi(a,"inherit"),color:a=>V(a,"shift-9",o.get(a)),outlineOffset:"-1px",outline:a=>`1px solid ${V(a,"shift-4",o.get(a))}`,backgroundColor:a=>V(a,"inherit",o.get(a)),"&::placeholder":{color:a=>V(a,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:a=>`${le(.5)} solid ${V(a,"shift-5",r.get(a))}`},"&:focus-visible":{outline:a=>`${le(.5)} solid ${V(a,"shift-6",r.get(a))}`},"&:invalid":{outline:a=>`${le(.5)} solid ${V(a,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>V(a,"shift-8","neutral"),outline:a=>`1px solid ${V(a,"shift-4","neutral")}`,backgroundColor:a=>V(a,"shift-2","neutral")}}}}import{toState as ri}from"@domphy/core";import{themeColor as No,themeSize as ni,themeSpacing as ii}from"@domphy/theme";function gd(i={}){var r;let o=ri((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>ni(e,"inherit"),backgroundColor:e=>No(e),color:e=>No(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:ii(3),listStyleType:"disc",listStylePosition:"outside"}}}import{toState as ai}from"@domphy/core";import{themeColor as Do,themeSize as li,themeSpacing as si}from"@domphy/theme";function Ed(i={}){var r;let o=ai((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>li(e,"inherit"),backgroundColor:e=>Do(e),color:e=>Do(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:si(3),listStyleType:"decimal",listStylePosition:"outside"}}}import{toState as ci}from"@domphy/core";import{themeColor as se,themeDensity as Oe,themeSize as mi,themeSpacing as ce}from"@domphy/theme";function ui(i,o){if(o<=7)return Array.from({length:o},(t,a)=>a+1);let r=[1];i>3&&r.push("...");let e=Math.max(2,i-1),n=Math.min(o-1,i+1);for(let t=e;t<=n;t++)r.push(t);return i<o-2&&r.push("..."),r.push(o),r}function Pd(i){var l;let{total:o,color:r="neutral",accentColor:e="primary"}=i,n=ci((l=i.value)!=null?l:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:s=>ce(6+Oe(s)*2),height:s=>ce(6+Oe(s)*2),paddingInline:s=>ce(Oe(s)*2),borderRadius:s=>ce(Oe(s)*1),border:"none",cursor:"pointer",fontSize:s=>mi(s,"inherit"),backgroundColor:"transparent",color:s=>se(s,"shift-9",r),"&:hover:not([disabled])":{backgroundColor:s=>se(s,"shift-2",r)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},a=Mt(Lt({},t),{backgroundColor:s=>se(s,"shift-6",e),color:s=>se(s,"shift-11",e),fontWeight:"600",cursor:"default","&:hover:not([disabled])":{backgroundColor:s=>se(s,"shift-6",e)}});return{_onInsert:s=>{s.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:s=>{let u={div:m=>{let c=n.get(m),d=[];d.push({button:"\u2039",type:"button",ariaLabel:"Previous page",disabled:c<=1,onClick:()=>c>1&&n.set(c-1),style:t});for(let f of ui(c,o))if(f==="...")d.push({span:"\u2026",style:{display:"inline-flex",alignItems:"center",paddingInline:p=>ce(Oe(p)*2),color:p=>se(p,"shift-7",r)}});else{let p=f===c;d.push({button:String(f),type:"button",ariaLabel:`Page ${f}`,ariaCurrent:p?"page":void 0,disabled:p,onClick:()=>n.set(f),style:p?a:t})}return d.push({button:"\u203A",type:"button",ariaLabel:"Next page",disabled:c>=o,onClick:()=>c<o&&n.set(c+1),style:t}),d},style:{display:"flex",alignItems:"center",gap:ce(1)}};s.children.insert(u)},style:{display:"inline-flex"}}}import{toState as di}from"@domphy/core";import{themeColor as qe,themeSize as hi,themeSpacing as pi}from"@domphy/theme";function $d(i={}){var r;let o=di((r=i.color)!=null?r:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:pi(2),fontSize:e=>hi(e,"inherit"),backgroundColor:e=>qe(e),color:e=>qe(e,"shift-9",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>qe(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>qe(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}import{toState as fi}from"@domphy/core";import{themeColor as Ye,themeDensity as gi,themeSize as bi,themeSpacing as Ie}from"@domphy/theme";var Ho={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},yi={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},wt=i=>i==="left"||i==="right";function Nd(i={}){let{color:o="neutral",open:r=!1,placement:e="right",size:n}=i,t=fi(r),a=wt(e)?Ie(80):Ie(64),l=n!=null?n:a;return{_onInsert:s=>{s.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(s,u)=>{s.target===u.domElement&&t.set(!1)},onTransitionEnd:(s,u)=>{let m=u.domElement;t.get()||(m.close(),document.body.style.overflow="")},_onMount:s=>{let u=s.domElement,m=c=>{c?(u.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.style.transform="translate(0, 0)"})):u.style.transform=Ho[e]};m(t.get()),t.addListener(m)},style:{transform:Ho[e],transition:"transform 0.25s ease",fontSize:s=>bi(s,"inherit"),color:s=>Ye(s,"shift-10",o),backgroundColor:s=>Ye(s,"inherit",o),border:"none",padding:s=>Ie(gi(s)*3),margin:yi[e],width:wt(e)?l:"100dvw",height:wt(e)?"100dvh":l,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:s=>`0 ${Ie(4)} ${Ie(12)} ${Ye(s,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:s=>Ye(s,"shift-2","neutral"),opacity:.75}}}}import{toState as Si,merge as Bo}from"@domphy/core";function jd(i){let{open:o=!1,placement:r="bottom",openOn:e="click"}=i,n=null,t=Si(o),{show:a,hide:l,anchorPartial:s}=H({open:t,placement:r,content:i.content,onPlacement:i.onPlacement}),u={role:"dialog",dataTone:"shift-17",onMouseEnter:()=>e==="hover"&&a(),onMouseLeave:()=>e==="hover"&&l(),_onInsert:c=>{let d=c.attributes.get("id");n=d||c.nodeId,!d&&c.attributes.set("id",n)}};return Bo(i.content,u),Bo(s,{ariaHaspopup:"dialog",ariaExpanded:c=>t.get(c),onMouseEnter:()=>e==="hover"&&a(),onMouseLeave:()=>e==="hover"&&l(),onClick:()=>{e==="click"&&(t.get()?l():a())},onFocus:()=>a(),onBlur:(c,d)=>{let f=c.relatedTarget,p=d.getRoot().domElement,y=n?p.querySelector(`#${CSS.escape(n)}`):null;f&&(y!=null&&y.contains(f))||l()},_onMount:c=>n&&c.attributes.set("ariaControls",n)}),s}import{toState as Ci}from"@domphy/core";import{themeColor as Pt,themeDensity as Ot,themeSize as vi,themeSpacing as q}from"@domphy/theme";function Gd(i={}){let{position:o="top-center",color:r="neutral"}=i,e=Ci(!1),n=o.startsWith("top"),t=o.endsWith("center"),a=o.endsWith("right"),l={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:n?"column":"column-reverse",alignItems:t?"center":a?"end":"start",inset:0,gap:q(4),zIndex:30,padding:q(6),pointerEvents:"none"}};return{_portal:s=>{let u=s.domElement.querySelector(`#domphy-toast-${o}`);return u||(u=s.children.insert(l).domElement),u},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:q(32),pointerEvents:"auto",paddingBlock:s=>q(Ot(s)*2),paddingInline:s=>q(Ot(s)*4),borderRadius:s=>q(Ot(s)*2),fontSize:s=>vi(s,"inherit"),color:s=>Pt(s,"shift-9",r),backgroundColor:s=>Pt(s,"inherit",r),boxShadow:s=>`0 ${q(2)} ${q(9)} ${Pt(s,"shift-4","neutral")}`,opacity:s=>Number(e.get(s)),transform:s=>e.get(s)?"translateY(0)":n?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:()=>requestAnimationFrame(()=>e.set(!0)),_onBeforeRemove:(s,u)=>{let m=c=>{c.propertyName==="transform"&&(s.domElement.removeEventListener("transitionend",m),u())};s.domElement.addEventListener("transitionend",m),e.set(!1)}}}import{merge as xi}from"@domphy/core";import{themeSpacing as It,themeColor as Fo,themeDensity as _t,themeSize as Ei}from"@domphy/theme";function rh(i={}){let{open:o=!1,placement:r="top",content:e="Tooltip Content"}=i,n=null,t=typeof e=="string"?{span:e}:e,{show:a,hide:l,anchorPartial:s,placeState:u}=H({open:o,placement:r,content:t}),m={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",_onInsert:d=>{let f=d.attributes.get("id");n=f||d.nodeId,!f&&d.attributes.set("id",n)},style:{paddingBlock:d=>It(_t(d)*1),paddingInline:d=>It(_t(d)*3),borderRadius:d=>It(_t(d)*1),color:d=>Fo(d,"shift-9"),backgroundColor:d=>Fo(d),fontSize:d=>Ei(d,"inherit")},$:[Xt({placement:u,bordered:!1})]};return t.$||(t.$=[]),t.$.push(m),xi(s,{onMouseEnter:()=>a(),onMouseLeave:()=>l(),onFocus:()=>a(),onBlur:()=>l(),onKeyDown:d=>d.key==="Escape"&&l(),_onMount:d=>n&&d.attributes.set("ariaDescribedby",n)}),s}import{ElementNode as Ao}from"@domphy/core";function Wo(i,o){return i.key!==void 0&&i.key!==null?String(i.key):`index-${o}`}function lh(i={}){let{duration:o=300,delay:r=0}=i,e=new Map;return{_onBeforeUpdate:n=>{e=new Map,n.children.items.forEach((t,a)=>{if(!(t instanceof Ao))return;let l=t.domElement;l&&e.set(Wo(t,a),l.getBoundingClientRect())})},_onUpdate:n=>{n.children.items.forEach((t,a)=>{if(!(t instanceof Ao))return;let l=t.domElement;if(!l)return;let s=Wo(t,a),u=e.get(s);if(!u)return;let m=l.getBoundingClientRect(),c=u.left-m.left,d=u.top-m.top;if(Math.abs(c)<.5&&Math.abs(d)<.5)return;let f=l.style.transition,p=l.style.transform;l.style.transition="none",l.style.transform=`translate(${c}px, ${d}px)`,l.getBoundingClientRect(),requestAnimationFrame(()=>{l.style.transition=`transform ${o}ms ease ${r}ms`,l.style.transform="translate(0px, 0px)"});let y=()=>{l.style.transition=f,l.style.transform=p,l.removeEventListener("transitionend",h)},h=g=>{g.propertyName==="transform"&&y()};l.addEventListener("transitionend",h),setTimeout(y,o+r+34)}),e.clear()}}}import{merge as ki}from"@domphy/core";import{toState as Ti}from"@domphy/core";function hh(i={}){return{role:"tablist",_onSchedule:(r,e)=>{let n={_context:{tabs:{activeKey:Ti(i.activeKey||0)}}};ki(e,n)}}}import{themeSpacing as me,themeColor as ue,themeDensity as jo,themeSize as wi}from"@domphy/theme";function bh(i={}){let{accentColor:o="primary",color:r="neutral"}=i;return{role:"tab",_onInsert:n=>{var u;n.tagName!="button"&&console.warn('"tab" patch must use button tag');let t=n.getContext("tabs"),a=(u=n.parent)==null?void 0:u.children.items;a=a.filter(m=>m.type=="ElementNode"&&m.attributes.get("role")=="tab");let l=n.key||a.findIndex(m=>m==n),s={id:"tab"+n.parent.nodeId+l,ariaControls:"tabpanel"+n.parent.nodeId+l,ariaSelected:m=>t.activeKey.get(m)==l,onClick:()=>t.activeKey.set(l),onKeyDown:m=>{var h,g,b,v;let c=m.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(c))return;m.preventDefault();let d=((g=(h=n.parent)==null?void 0:h.children.items)!=null?g:[]).filter(w=>w.type==="ElementNode"&&w.attributes.get("role")==="tab"),f=d.findIndex(w=>w===n),p=f;c==="ArrowRight"?p=(f+1)%d.length:c==="ArrowLeft"?p=(f-1+d.length)%d.length:c==="Home"?p=0:c==="End"&&(p=d.length-1);let y=d[p];t.activeKey.set((b=y.key)!=null?b:p),(v=y.domElement)==null||v.focus()}};n.merge(s)},style:{cursor:"pointer",fontSize:n=>wi(n,"inherit"),height:n=>me(6+jo(n)*2),paddingInline:n=>me(jo(n)*4),border:"none",outline:"none",color:n=>ue(n,"shift-9"),backgroundColor:n=>ue(n,"inherit"),boxShadow:n=>`inset 0 -${me(.5)} 0 0 ${ue(n,"shift-1",r)}`,"&:hover:not([disabled])":{boxShadow:n=>`inset 0 -${me(.5)} 0 0 ${ue(n,"shift-2",r)}`},"&[aria-selected=true]:not([disabled])":{boxShadow:n=>`inset 0 -${me(.5)} 0 0 ${ue(n,"shift-6",o)}`},"&:focus-visible":{boxShadow:n=>`inset 0 -${me(.5)} 0 0 ${ue(n,"shift-6",o)}`}}}}import{themeSpacing as Ko,themeDensity as qo}from"@domphy/theme";function vh(){return{role:"tabpanel",style:{paddingBlock:o=>Ko(qo(o)*2),paddingInline:o=>Ko(qo(o)*2)},_onInsert:o=>{var a;let r=o.getContext("tabs"),e=(a=o.parent)==null?void 0:a.children.items;e=e.filter(l=>l.type=="ElementNode"&&l.attributes.get("role")=="tabpanel");let n=o.key||e.findIndex(l=>l==o),t={id:"tabpanel"+o.parent.nodeId+n,ariaLabelledby:"tab"+o.parent.nodeId+n,hidden:l=>r.activeKey.get(l)!=n};o.merge(t)}}}import{merge as Pi}from"@domphy/core";import{toState as Oi}from"@domphy/core";import{themeColor as Ii,themeDensity as Yo,themeSize as _i,themeSpacing as Go}from"@domphy/theme";function Oh(i={}){let{color:o="neutral",selectable:r=!0}=i;return{role:"menu",dataTone:"shift-17",_onSchedule:(n,t)=>{var l;let a={_context:{menu:{activeKey:Oi((l=i.activeKey)!=null?l:null),selectable:r}}};Pi(t,a)},style:{display:"flex",flexDirection:"column",paddingBlock:n=>Go(Yo(n)*2),paddingInline:n=>Go(Yo(n)*2),fontSize:n=>_i(n,"inherit"),backgroundColor:n=>Ii(n,"inherit",o)}}}import{themeSpacing as Ge,themeColor as de,themeDensity as Uo,themeSize as Vi}from"@domphy/theme";function zh(i={}){let{accentColor:o="primary",color:r="neutral"}=i;return{role:"menuitem",_onInsert:n=>{var s;n.tagName!="button"&&console.warn('"menuItem" patch must use button tag');let t=n.getContext("menu"),a=(s=n.parent)==null?void 0:s.children.items;a=a.filter(u=>u.type=="ElementNode"&&u.attributes.get("role")=="menuitem");let l=n.key||a.findIndex(u=>u==n);t.selectable&&(n.attributes.set("ariaCurrent",u=>t.activeKey.get(u)==l||void 0),n.addEvent("click",()=>t.activeKey.set(l)))},onKeyDown:(n,t)=>{var m,c,d,f;let a=n.key;if(a==="Enter"||a===" "){n.preventDefault(),(m=t.domElement)==null||m.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(a))return;n.preventDefault();let l=((d=(c=t.parent)==null?void 0:c.children.items)!=null?d:[]).filter(p=>p.type==="ElementNode"&&p.attributes.get("role")==="menuitem"),s=l.findIndex(p=>p===t),u=s;a==="ArrowDown"?u=(s+1)%l.length:a==="ArrowUp"?u=(s-1+l.length)%l.length:a==="Home"?u=0:a==="End"&&(u=l.length-1),(f=l[u].domElement)==null||f.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:n=>Vi(n,"inherit"),height:n=>Ge(6+Uo(n)*2),paddingInline:n=>Ge(Uo(n)*3),border:"none",outline:"none",color:n=>de(n,"shift-9"),backgroundColor:n=>de(n,"inherit"),"&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:n=>de(n,"shift-2")},"&[aria-current=true]":{backgroundColor:n=>de(n,"shift-3",o),color:n=>de(n,"shift-10")},"&:focus-visible":{outline:n=>`${Ge(.5)} solid ${de(n,"shift-6",o)}`,outlineOffset:`-${Ge(.5)}`}}}}import{merge as zi}from"@domphy/core";function Rh(i){return{_onSchedule:(o,r)=>{zi(r,{_context:{form:i}})}}}function Dh(i,o){return{_onInsert:r=>{let n=r.getContext("form").setField(i,void 0,o),t=r.tagName,a=r.attributes.get("type");["input","select","textarea"].includes(t)||console.warn('"field" patch must use input, select, or textarea tag');let l={onBlur:()=>n.setTouched(),ariaInvalid:s=>!!n.message("error",s)||void 0,dataStatus:s=>n.status(s)};t==="input"&&a==="checkbox"?(l.checked=n.value(),l.onChange=s=>n.setValue(s.target.checked)):t==="input"&&a==="radio"?l.onChange=s=>n.setValue(s.target.value):t==="select"?(l.value=n.value(),l.onChange=s=>n.setValue(s.target.value)):t==="textarea"?(l.value=n.value(),l.onInput=s=>n.setValue(s.target.value)):(l.value=n.value(),l.onInput=s=>n.setValue(s.target.value)),r.merge(l)}}}import{Notifier as $i}from"@domphy/core";function Li(i){return!!i&&typeof i.then=="function"}var Xe=class{constructor(o,r){this._notifier=new $i;this._messages={};this._touched=!1;this._pending=!1;this._validationToken=0;this._value=o,this._initValue=o,this._validator=r,r&&this.validate()}value(o){return o&&this._notifier.addListener("value",o),this._value}setValue(o){this._value=o,this._notifier.notify("value",o),this._notifier.notify("dirty",o!==this._initValue),this.validate()}dirty(o){return o&&this._notifier.addListener("dirty",o),this._value!==this._initValue}touched(o){return o&&this._notifier.addListener("touched",o),this._touched}setTouched(){this._touched||(this._touched=!0,this._notifier.notify("touched",!0))}configure(o,r){let e=!1;o!==void 0&&this._value===void 0&&this._initValue===void 0&&(this._value=o,this._initValue=o,this._notifier.notify("value",o),this._notifier.notify("dirty",!1),e=!0),r!==void 0&&r!==this._validator&&(this._validator=r,e=!0),e&&this.validate()}message(o,r){return r&&this._notifier.addListener(o,r),this._messages[o]}status(o){return o&&this._notifier.addListener("status",o),Ue(this._messages)}setMessages(o){let r=this._messages;this._messages=o;for(let e of["error","warning","success"])r[e]!==o[e]&&this._notifier.notify(e,o[e]);Ue(r)!==Ue(o)&&this._notifier.notify("status",Ue(o))}reset(){this._value=this._initValue,this._touched=!1,this._notifier.notify("value",this._value),this._notifier.notify("dirty",!1),this._notifier.notify("touched",!1),this.setMessages({}),this.validate()}validate(){let o=++this._validationToken;if(!this._validator){this._pending=!1,this.setMessages({});return}try{let r=this._validator(this._value);Li(r)?(this._pending=!0,Promise.resolve(r).then(e=>{o===this._validationToken&&(this._pending=!1,this.setMessages(e!=null?e:{}))}).catch(e=>{o===this._validationToken&&(this._pending=!1,console.error(e))})):(this._pending=!1,this.setMessages(r!=null?r:{}))}catch(r){o===this._validationToken&&(this._pending=!1),console.error(r)}}_dispose(){this._validationToken+=1,this._pending=!1,this._notifier._dispose()}};function Ue(i){if(i.error)return"error";if(i.warning)return"warning";if(i.success)return"success"}var Xo=class{constructor(){this.fields=new Map}setField(o,r,e){let n=this.fields.get(o);return n?n.configure(r,e):(n=new Xe(r,e),this.fields.set(o,n)),n}getField(o){return this.setField(o)}removeField(o){var r;(r=this.fields.get(o))==null||r._dispose(),this.fields.delete(o)}get valid(){for(let o of this.fields.values())if(o._pending||o._messages.error)return!1;return!0}reset(){for(let o of this.fields.values())o.reset()}snapshot(){let o={};for(let[r,e]of this.fields)Mi(o,r,e._value);return o}_dispose(){for(let o of this.fields.values())o._dispose();this.fields.clear()}};function Mi(i,o,r){let e=o.split("."),n=i;for(let t=0;t<e.length-1;t++){let a=e[t];n[a]==null&&(n[a]=isNaN(Number(e[t+1]))?{}:[]),n=n[a]}n[e[e.length-1]]=r}export{Xe as FieldState,Xo as FormState,Wi as abbreviation,Ea as alert,Oa as avatar,$a as badge,bl as blockquote,Da as breadcrumb,Wa as breadcrumbEllipsis,vl as button,ku as buttonSwitch,Gi as card,Ml as code,il as combobox,na as command,aa as commandItem,ia as commandSearch,Ul as descriptionList,Al as details,es as dialog,$d as divider,Nd as drawer,ls as emphasis,Dh as field,ps as figure,Rh as form,Ss as formGroup,ws as heading,$s as horizontalRule,Ks as icon,Bs as image,Ol as inputCheckbox,Js as inputColor,nc as inputDateTime,uc as inputFile,Hc as inputNumber,ya as inputOTP,Fm as inputRadio,zc as inputRange,yc as inputSearch,Cu as inputSwitch,Tc as inputText,qc as keyboard,Zc as label,im as link,dm as mark,Oh as menu,zh as menuItem,Ed as orderedList,Pd as pagination,Cm as paragraph,jd as popover,Xt as popoverArrow,Pm as preformated,Lm as progress,jm as select,hu as selectBox,lu as selectItem,ru as selectList,Gm as skeleton,Vu as small,Qm as spinner,Qi as splitter,ea as splitterHandle,Zi as splitterPanel,Du as strong,Ku as subscript,Qu as superscript,bh as tab,vh as tabPanel,od as table,hh as tabs,Re as tag,cd as textarea,Gd as toast,ma as toggle,fa as toggleGroup,rh as tooltip,lh as transitionGroup,gd as unorderedList};
|
|
1
|
+
var Jo=Object.defineProperty,Qo=Object.defineProperties;var Zo=Object.getOwnPropertyDescriptors;var Vt=Object.getOwnPropertySymbols;var er=Object.prototype.hasOwnProperty,tr=Object.prototype.propertyIsEnumerable;var zt=(i,o,r)=>o in i?Jo(i,o,{enumerable:!0,configurable:!0,writable:!0,value:r}):i[o]=r,$t=(i,o)=>{for(var r in o||(o={}))er.call(o,r)&&zt(i,r,o[r]);if(Vt)for(var r of Vt(o))tr.call(o,r)&&zt(i,r,o[r]);return i},Lt=(i,o)=>Qo(i,Zo(o));import{toState as Mt}from"@domphy/core";import{themeColor as fe,themeSize as or,themeSpacing as rr}from"@domphy/theme";function ji(i={}){var e,n;let o=Mt((e=i.color)!=null?e:"neutral","color"),r=Mt((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>or(t),backgroundColor:t=>fe(t),color:t=>fe(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>fe(t,"shift-7",o.get(t)),textUnderlineOffset:rr(.72),cursor:"help","&:hover":{color:t=>fe(t,"shift-11",r.get(t)),textDecorationColor:t=>fe(t,"shift-9",r.get(t))}}}}import{toState as nr}from"@domphy/core";import{themeColor as J,themeDensity as N,themeSpacing as V}from"@domphy/theme";function Ui(i={}){var r;let o=nr((r=i.color)!=null?r:"neutral","color");return{style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>V(N(e)*2),backgroundColor:e=>J(e,"inherit",o.get(e)),color:e=>J(e,"shift-10",o.get(e)),outline:e=>`1px solid ${J(e,"shift-4",o.get(e))}`,outlineOffset:"-1px",overflow:"hidden","& > img":{gridArea:"image",width:"100%",height:"auto",display:"block"},"& > :is(h1,h2,h3,h4,h5,h6)":{gridArea:"title",paddingBlock:e=>V(N(e)*2),paddingInline:e=>V(N(e)*4),fontWeight:"600",margin:0},"& > p":{gridArea:"desc",paddingInline:e=>V(N(e)*4),color:e=>J(e,"shift-9",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>V(N(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>V(N(e)*4),color:e=>J(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:V(2),paddingBlock:e=>V(N(e)*2),paddingInline:e=>V(N(e)*4),borderTop:e=>`1px solid ${J(e,"shift-3",o.get(e))}`}}}}import{merge as ir,toState as ar}from"@domphy/core";import{themeColor as Qe,themeSpacing as lr}from"@domphy/theme";function Zi(i={}){let{direction:o="horizontal",defaultSize:r=50,min:e=10,max:n=90}=i;return{_onSchedule:(t,a)=>{ir(a,{_context:{splitter:{direction:o,size:ar(r),min:e,max:n}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function ea(){return{_onMount:i=>{let o=i.getContext("splitter"),r=i.domElement,e=o.direction==="horizontal"?"width":"height";r.style[e]=`${o.size.get()}%`,r.style.flexShrink="0",r.style.overflow="auto";let n=o.size.addListener(t=>{r.style[e]=`${t}%`});i.addHook("Remove",n)}}}function ta(){return{_onMount:i=>{let o=i.getContext("splitter"),r=i.domElement,e=o.direction==="horizontal";r.style.cursor=e?"col-resize":"row-resize";let n=t=>{t.preventDefault();let a=r.parentElement,l=u=>{let m=a.getBoundingClientRect(),c=e?(u.clientX-m.left)/m.width*100:(u.clientY-m.top)/m.height*100;o.size.set(Math.min(Math.max(c,o.min),o.max))},s=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",s)};r.addEventListener("mousedown",n),i.addHook("Remove",()=>r.removeEventListener("mousedown",n))},style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:i=>Qe(i,"shift-2"),"&:hover":{backgroundColor:i=>Qe(i,"shift-3")},"&::after":{content:'""',borderRadius:lr(999),backgroundColor:i=>Qe(i,"shift-4")}}}}import{merge as sr,toState as cr}from"@domphy/core";import{themeColor as z,themeDensity as _e,themeSize as Rt,themeSpacing as Q}from"@domphy/theme";function ia(){return{_onSchedule:(i,o)=>{sr(o,{_context:{command:{query:cr("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function aa(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let n=e.getContext("command"),t=e.domElement,a=()=>n.query.set(t.value);t.addEventListener("input",a),e.addHook("Remove",()=>t.removeEventListener("input",a))},style:{fontFamily:"inherit",fontSize:e=>Rt(e,"inherit"),paddingInline:e=>Q(_e(e)*3),paddingBlock:e=>Q(_e(e)*2),border:"none",borderBottom:e=>`1px solid ${z(e,"shift-3",o)}`,outline:"none",color:e=>z(e,"shift-10",o),backgroundColor:e=>z(e,"inherit",o),"&::placeholder":{color:e=>z(e,"shift-7")},"&:focus-visible":{borderBottomColor:e=>z(e,"shift-6",r)}}}}function la(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{role:"option",_onMount:e=>{var s,u;let n=e.getContext("command"),t=e.domElement,a=(u=(s=t.textContent)==null?void 0:s.toLowerCase())!=null?u:"",l=n.query.addListener(m=>{t.hidden=m.length>0&&!a.includes(m.toLowerCase())});e.addHook("Remove",l)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>Rt(e,"inherit"),height:e=>Q(6+_e(e)*2),paddingInline:e=>Q(_e(e)*3),border:"none",outline:"none",color:e=>z(e,"shift-9",o),backgroundColor:e=>z(e,"inherit",o),"&:hover:not([disabled])":{backgroundColor:e=>z(e,"shift-2",o)},"&:focus-visible":{outline:e=>`${Q(.5)} solid ${z(e,"shift-6",r)}`,outlineOffset:`-${Q(.5)}`}}}}import{toState as Nt}from"@domphy/core";import{themeColor as Z,themeSize as mr,themeSpacing as ee}from"@domphy/theme";function ua(i={}){var e,n;let o=Nt((e=i.color)!=null?e:"neutral","color"),r=Nt((n=i.accentColor)!=null?n:"primary","accentColor");return{role:"button",_onInsert:t=>{var m;t.tagName!=="button"&&console.warn('"toggle" patch must use button tag');let a=t.getContext("toggleGroup"),s=((m=t.parent)==null?void 0:m.children.items).filter(c=>c.type==="ElementNode"&&c.attributes.get("role")==="button"),u=t.key!==void 0?String(t.key):String(s.findIndex(c=>c===t));t.attributes.set("ariaPressed",c=>{let d=a.value.get(c);return Array.isArray(d)?d.includes(u):d===u}),t.addEvent("click",()=>{let c=a.value.get();if(a.multiple){let d=Array.isArray(c)?[...c]:[];a.value.set(d.includes(u)?d.filter(g=>g!==u):[...d,u])}else a.value.set(c===u?"":u)})},style:{cursor:"pointer",fontSize:t=>mr(t,"inherit"),height:ee(6),paddingBlock:ee(1),paddingInline:ee(2),border:"none",borderRadius:ee(1),color:t=>Z(t,"shift-9",o.get(t)),backgroundColor:t=>Z(t,"inherit",o.get(t)),transition:"background-color 300ms ease","&:hover:not([disabled])":{backgroundColor:t=>Z(t,"shift-2",o.get(t))},"&[aria-pressed=true]":{backgroundColor:t=>Z(t,"shift-3",r.get(t)),color:t=>Z(t,"shift-12",r.get(t))},"&:focus-visible":{outline:t=>`${ee(.5)} solid ${Z(t,"shift-6",r.get(t))}`,outlineOffset:`-${ee(.5)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as ur}from"@domphy/core";import{themeSpacing as Ve,themeColor as Dt,themeSize as dr}from"@domphy/theme";function ga(i={}){var e;let{multiple:o=!1,color:r="neutral"}=i;return{role:"group",_context:{toggleGroup:{value:ur((e=i.value)!=null?e:o?[]:""),multiple:o}},style:{display:"flex",paddingBlock:Ve(1),paddingInline:Ve(1),gap:Ve(1),borderRadius:Ve(2),fontSize:n=>dr(n,"inherit"),backgroundColor:n=>Dt(n,"inherit",r),outline:n=>`1px solid ${Dt(n,"shift-3",r)}`,outlineOffset:"-1px"}}}import{themeSpacing as Ht}from"@domphy/theme";function Sa(){return{style:{display:"flex",alignItems:"center",gap:Ht(2),"& > *":{minWidth:Ht(9)+"!important"}},_onMount:i=>{let o=i.domElement,r=()=>Array.from(o.querySelectorAll("input")),e=a=>{let l=r(),s=a.target,u=l.indexOf(s);s.value&&u<l.length-1&&l[u+1].focus()},n=a=>{let l=r(),s=a.target,u=l.indexOf(s);a.key==="Backspace"&&!s.value&&u>0&&l[u-1].focus(),a.key==="ArrowLeft"&&u>0&&l[u-1].focus(),a.key==="ArrowRight"&&u<l.length-1&&l[u+1].focus()},t=a=>{var c,d,g;a.preventDefault();let l=(d=(c=a.clipboardData)==null?void 0:c.getData("text"))!=null?d:"",s=r(),u=s.indexOf(a.target);[...l].forEach((h,f)=>{s[u+f]&&(s[u+f].value=h)});let m=Math.min(u+l.length-1,s.length-1);(g=s[m])==null||g.focus()};o.addEventListener("input",e),o.addEventListener("keydown",n),o.addEventListener("paste",t),i.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",n),o.removeEventListener("paste",t)})}}}import{toState as hr}from"@domphy/core";import{themeColor as Ze,themeDensity as Bt,themeSize as pr,themeSpacing as ze}from"@domphy/theme";function ka(i={}){var r;let o=hr((r=i.color)!=null?r:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:ze(3),paddingBlock:e=>ze(Bt(e)*2),paddingInline:e=>ze(Bt(e)*4),boxShadow:e=>`inset ${ze(1)} 0 0 0 ${Ze(e,"shift-8",o.get(e))}`,backgroundColor:e=>Ze(e,"inherit",o.get(e)),color:e=>Ze(e,"shift-10",o.get(e)),fontSize:e=>pr(e,"inherit")}}}import{toState as fr}from"@domphy/core";import{themeColor as Ft,themeSize as gr,themeSpacing as At}from"@domphy/theme";function Ia(i={}){var r;let o=fr((r=i.color)!=null?r:"primary","color");return{dataTone:"shift-2",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:At(9),height:At(9),fontSize:e=>gr(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>Ft(e,"inherit",o.get(e)),color:e=>Ft(e,"shift-11",o.get(e)),"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}import{toState as Wt}from"@domphy/core";import{themeSpacing as et,themeColor as jt,themeSize as br}from"@domphy/theme";function La(i={}){var n;let{label:o=999}=i,r=Wt(o),e=Wt((n=i.color)!=null?n:"danger","color");return{style:{position:"relative","&::after":{content:t=>`"${r.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:et(1),minWidth:et(6),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>br(t,"decrease-1"),borderRadius:et(999),backgroundColor:t=>jt(t,"shift-9",e.get(t)),color:t=>jt(t,"shift-0",e.get(t))}}}}import{toState as yr}from"@domphy/core";import{themeColor as ge,themeSize as Sr,themeSpacing as Kt}from"@domphy/theme";function Ha(i={}){var e;let{separator:o="/"}=i,r=yr((e=i.color)!=null?e:"neutral","color");return{_onInsert:n=>{n.tagName!=="nav"&&console.warn('"breadcrumb" patch must use nav tag')},ariaLabel:"breadcrumb",style:{display:"flex",alignItems:"center",flexWrap:"wrap",fontSize:n=>Sr(n,"inherit"),gap:Kt(1),color:n=>ge(n,"shift-9",r.get(n)),backgroundColor:n=>ge(n,"inherit",r.get(n)),"& > *":{display:"inline-flex",alignItems:"center",color:n=>ge(n,"shift-8",r.get(n))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:n=>ge(n,"shift-4",r.get(n)),paddingInlineStart:Kt(1)},"& > [aria-current=page]":{color:n=>ge(n,"shift-10",r.get(n)),pointerEvents:"none"}}}}import{toState as Cr}from"@domphy/core";import{themeColor as $e,themeSize as vr,themeSpacing as Le}from"@domphy/theme";function ja(i={}){var r;let o=Cr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"breadcrumbEllipsis" patch must use button tag')},ariaLabel:"More breadcrumb items",style:{display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:e=>vr(e,"inherit"),paddingInline:Le(1),border:"none",background:"none",cursor:"pointer",color:e=>$e(e,"shift-8",o.get(e)),borderRadius:Le(1),"&:hover":{color:e=>$e(e,"shift-10",o.get(e)),backgroundColor:e=>$e(e,"shift-2",o.get(e))},"&:focus-visible":{outline:e=>`${Le(.5)} solid ${$e(e,"shift-6",o.get(e))}`,outlineOffset:Le(.5)}}}}import{toState as Yt,merge as tt}from"@domphy/core";import{themeSpacing as q,themeColor as be,themeDensity as ot,themeSize as Gt}from"@domphy/theme";import{toState as xr}from"@domphy/core";import{themeColor as Me,themeSize as Er,themeSpacing as $}from"@domphy/theme";var kr='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M6.707 5.293l5.293 5.292l5.293 -5.292a1 1 0 0 1 1.414 1.414l-5.292 5.293l5.292 5.293a1 1 0 0 1 -1.414 1.414l-5.293 -5.292l-5.293 5.292a1 1 0 1 1 -1.414 -1.414l5.292 -5.293l-5.292 -5.293a1 1 0 0 1 1.414 -1.414" /></svg>';function Re(i={}){var e;let{removable:o=!1}=i,r=xr((e=i.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:n=>{let t={span:kr,onClick:a=>{a.stopPropagation(),n.remove()},style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:$(1),width:$(4),height:$(4),flexShrink:0,"&:hover":{backgroundColor:a=>Me(a,"shift-4",r.get(a))}}};o&&n.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:$(6),paddingBlock:"0px",borderRadius:$(1),paddingInlineStart:$(2),paddingInlineEnd:o?$(1):$(2),gap:$(2),fontSize:n=>Er(n,"inherit"),backgroundColor:n=>Me(n,"inherit",r.get(n)),color:n=>Me(n,"shift-9",r.get(n)),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${Me(n,"shift-4",r.get(n))}`}}}import{toState as qt,merge as Tr}from"@domphy/core";import{computePosition as wr,autoUpdate as Pr,offset as Or,flip as Ir,shift as _r}from"@floating-ui/dom";function D(i){let{open:o=!1,placement:r="bottom"}=i,e=null,n=null,t=null,a=null,l=qt(o),s=qt(r),u=()=>{t&&a&&(n&&n(),n=Pr(t,a,()=>{wr(t,a,{placement:s.get(),middleware:[Or(12),Ir(),_r()],strategy:"fixed"}).then(({x:f,y:p,placement:y})=>{var b;Object.assign(a.style,{left:`${f}px`,top:`${p}px`}),(b=i.onPlacement)==null||b.call(i,t,a,y)})}),l.set(!0))},m=()=>{n&&n(),n=null,l.set(!1)},c=()=>{e&&clearTimeout(e),e=setTimeout(u,100)},d=()=>{e&&clearTimeout(e),e=setTimeout(m,100)},g={style:{position:"fixed",pointerEvents:"auto",visibility:f=>l.get(f)?"visible":"hidden"},_onMount:f=>a=f.domElement,_portal:f=>{let p=f.domElement.querySelector("#domphy-floating");if(!p){let y={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};p=f.children.insert(y).domElement}return p}};return Tr(i.content,g),{show:c,hide:d,anchorPartial:{onKeyDown:f=>f.key==="Escape"&&d(),_onInsert:f=>{let p=null;p=f.getRoot().children.insert(i.content),f.addHook("BeforeRemove",()=>{e&&clearTimeout(e),p&&p.remove()})},_onMount:f=>{let p=f.getRoot();t=f.domElement;let y=p.children.insert(i.content),b=U=>{if(!l.get()||!t||!a)return;let v=U.target;!t.contains(v)&&!a.contains(v)&&d()};f.getRoot().domElement.addEventListener("click",b),f.addHook("BeforeRemove",()=>{e&&clearTimeout(e),y&&y.remove(),f.getRoot().domElement.removeEventListener("click",b)})}}}}function al(i){let{options:o=[],placement:r="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=i,a=Yt(i.value),l=Yt(n),{show:s,hide:u,anchorPartial:m}=D({open:l,placement:r,content:i.content,onPlacement:i.onPlacement}),c={onClick:()=>!t&&u()};tt(i.content,c);let d={border:"none",outline:"none",padding:0,margin:0,flex:1,height:q(6),marginInlineStart:q(2),fontSize:p=>Gt(p,"inherit"),color:p=>be(p,"shift-9",e),backgroundColor:p=>be(p,"inherit",e)},g;i.input?(tt(i.input,{onFocus:()=>s(),style:d,_key:"combobox-input"}),g=i.input):g={input:null,onFocus:()=>s(),value:p=>(a.get(p),""),style:d,_key:"combobox-input"};let h={div:p=>{let y=a.get(p),b=Array.isArray(y)?y:[y],v=o.filter(X=>b.includes(X.value)).map(X=>({span:X.label,$:[Re({color:e,removable:!0})],_key:X.value,_onRemove:Je=>{let pe=a.get(),_t=(Array.isArray(pe)?pe:[pe]).filter(Xo=>Xo!==X.value);t?a.set(_t):a.set(_t[0])}}));return v.push(g),v},style:{display:"flex",flexWrap:"wrap",gap:q(1)}},f={_onInsert:p=>{p.tagName!="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:p=>p.children.insert(h),style:{minWidth:q(32),outlineOffset:"-1px",outline:p=>`1px solid ${be(p,"shift-4","neutral")}`,paddingBlock:p=>q(ot(p)*1),paddingInline:p=>q(ot(p)*1),borderRadius:p=>q(ot(p)*1),fontSize:p=>Gt(p,"inherit"),color:p=>be(p,"shift-9",e),backgroundColor:p=>be(p,"inherit",e)}};return tt(m,f),m}import{toState as Vr}from"@domphy/core";import{themeSpacing as rt,themeColor as Ne,themeSize as zr}from"@domphy/theme";function Ut(i={}){let{placement:o="bottom-end",color:r="neutral",sideOffset:e=rt(6),bordered:n=!0}=i,t=Vr(o),a={top:"bottom",bottom:"top",left:"right",right:"left","top-start":"bottom-end","top-end":"bottom-start","bottom-start":"top-end","bottom-end":"top-start","left-start":"right-end","left-end":"right-start","right-start":"left-end","right-end":"left-start"},l=m=>{var c;return(c=a[t.get(m)])!=null?c:a["bottom-end"]},s=m=>m.includes("start")?e:m.includes("end")?"auto":"50%",u=m=>m.includes("end")?e:m.includes("start")?"auto":"50%";return{style:{fontSize:m=>zr(m),backgroundColor:m=>Ne(m),color:m=>Ne(m,"shift-9",r),position:"relative","&::after":{content:'""',position:"absolute",width:rt(1.5),height:rt(1.5),backgroundColor:m=>Ne(m,"inherit",r),borderWidth:n?"1px":"0px",borderColor:m=>Ne(m,"inherit",r),borderTopStyle:m=>{let c=l(m);return c.includes("top")||c.includes("right")?"solid":"none"},borderBottomStyle:m=>{let c=l(m);return c.includes("bottom")||c.includes("left")?"solid":"none"},borderLeftStyle:m=>{let c=l(m);return c.includes("top")||c.includes("left")?"solid":"none"},borderRightStyle:m=>{let c=l(m);return c.includes("bottom")||c.includes("right")?"solid":"none"},top:m=>{let c=l(m);return c.includes("top")?0:c.includes("bottom")?"auto":s(c)},right:m=>{let c=l(m);return c.includes("right")?0:c.includes("left")?"auto":u(c)},bottom:m=>{let c=l(m);return c.includes("bottom")?0:c.includes("top")?"auto":u(c)},left:m=>{let c=l(m);return c.includes("left")?0:c.includes("right")?"auto":s(c)},transform:m=>{let c=l(m),d=c.includes("right")||c.includes("end")&&!c.includes("left")?"50%":"-50%",g=c.includes("bottom")||c.includes("end")&&!c.includes("top")?"50%":"-50%";return`translate(${d},${g}) rotate(45deg)`}}}}}import{toState as $r}from"@domphy/core";import{themeSpacing as nt,themeColor as Xt,themeDensity as Jt,themeSize as Lr}from"@domphy/theme";function yl(i={}){var r;let o=$r((r=i.color)!=null?r:"inherit","color");return{_onInsert:e=>{e.tagName!="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>Lr(e,"inherit"),backgroundColor:e=>Xt(e,"inherit",o.get(e)),boxShadow:e=>`inset ${nt(1)} 0 0 0 ${Xt(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>nt(Jt(e)*2),paddingInline:e=>nt(Jt(e)*4),margin:0}}}import{toState as Mr}from"@domphy/core";import{themeColor as L,themeDensity as De,themeSize as Rr,themeSpacing as ye}from"@domphy/theme";function xl(i={}){var r;let o=Mr((r=i.color)!=null?r:"primary","color");return{_onInsert:e=>{e.tagName!="button"&&console.warn('"button" primitive patch must use button tag')},style:{appearance:"none",fontSize:e=>Rr(e,"inherit"),paddingBlock:e=>ye(De(e)*1),paddingInline:e=>ye(De(e)*3),borderRadius:e=>ye(De(e)*1),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:e=>ye(De(e)*1),userSelect:"none",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e=>`1px solid ${L(e,"shift-4",o.get(e))}`,color:e=>L(e,"shift-9",o.get(e)),backgroundColor:e=>L(e,"inherit",o.get(e)),"&:hover:not([disabled]):not([aria-busy=true])":{color:e=>L(e,"shift-10",o.get(e)),backgroundColor:e=>L(e,"shift-2",o.get(e))},"&:focus-visible":{boxShadow:e=>`inset 0 0 0 ${ye(.5)} ${L(e,"shift-6",o.get(e))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>L(e,"shift-2","neutral"),outline:e=>`1px solid ${L(e,"shift-4","neutral")}`,color:e=>L(e,"shift-8","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}import{toState as Qt}from"@domphy/core";import{themeColor as x,themeSpacing as H,themeSize as Nr}from"@domphy/theme";function Il(i={}){var e,n;let o=Qt((e=i.color)!=null?e:"neutral","color"),r=Qt((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"checkbox",_onInsert:t=>{t.tagName!=="input"&&console.warn('"inputCheckbox" primitive patch must use input tag')},style:{appearance:"none",fontSize:t=>Nr(t,"inherit"),display:"inline-flex",position:"relative",width:H(6),height:H(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:H(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${x(t,"shift-4",o.get(t))}`,color:t=>x(t,"shift-9",o.get(t)),width:H(4),height:H(4)},"&:hover::before":{backgroundColor:t=>x(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${x(t,"shift-6",r.get(t))}`,backgroundColor:t=>x(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>x(t,"shift-7",r.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${H(.5)} solid ${x(t,"inherit",r.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${x(t,"shift-6",r.get(t))}`,backgroundColor:t=>x(t,"shift-3",r.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>x(t,"shift-8",r.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>x(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:H(1.5),outline:t=>`${H(.5)} solid ${x(t,"shift-6",r.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>x(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{toState as Dr}from"@domphy/core";import{themeSpacing as it,themeColor as Zt,themeSize as Hr}from"@domphy/theme";function Rl(i={}){var r;let o=Dr((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="code"&&console.warn('"code" primitive patch must use code tag')},style:{display:"inline-flex",alignItems:"center",fontSize:e=>Hr(e,"inherit"),color:e=>Zt(e,"shift-9",o.get(e)),backgroundColor:e=>Zt(e,"inherit",o.get(e)),height:it(6),paddingInline:it(1.5),borderRadius:it(1)}}}import{toState as eo}from"@domphy/core";import{themeColor as B,themeDensity as Se,themeSize as to,themeSpacing as C}from"@domphy/theme";function Wl(i={}){var n,t;let{duration:o=240}=i,r=eo((n=i.color)!=null?n:"neutral","color"),e=eo((t=i.accentColor)!=null?t:"primary","accentColor");return{_onInsert:a=>{a.tagName!="details"&&console.warn('"details" primitive patch must use details tag')},style:{fontSize:a=>to(a,"inherit"),color:a=>B(a,"shift-9",r.get(a)),backgroundColor:a=>B(a,"inherit",r.get(a)),overflow:"hidden","& > summary":{backgroundColor:a=>B(a,"shift-2",r.get(a)),color:a=>B(a,"shift-10",r.get(a)),fontSize:a=>to(a,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:C(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:a=>C(Se(a)*4),height:C(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:C(2),height:C(2),flexShrink:0,marginTop:`-${C(.5)}`,borderInlineEnd:a=>`${C(.5)} solid ${B(a,"shift-9",r.get(a))}`,borderBottom:a=>`${C(.5)} solid ${B(a,"shift-9",r.get(a))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:a=>B(a,"shift-3",r.get(a))},"& > summary:focus-visible":{borderRadius:a=>C(Se(a)*2),outlineOffset:`-${C(.5)}`,outline:a=>`${C(.5)} solid ${B(a,"shift-6",e.get(a))}`},"& > :not(summary)":{maxHeight:"0px",opacity:0,overflow:"hidden",paddingInline:a=>C(Se(a)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:C(250),opacity:1,paddingTop:a=>C(Se(a)*1),paddingBottom:a=>C(Se(a)*3)}}}}import{toState as Br}from"@domphy/core";import{themeColor as oo,themeSpacing as ro,themeSize as no}from"@domphy/theme";function Xl(i={}){var r;let o=Br((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},style:{display:"grid",gridTemplateColumns:`minmax(${ro(24)}, max-content) 1fr`,columnGap:ro(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>no(e,"inherit"),color:e=>oo(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>no(e,"inherit"),color:e=>oo(e,"shift-9",o.get(e))}}}}import{toState as Fr}from"@domphy/core";import{themeColor as He,themeDensity as Ar,themeSize as Wr,themeSpacing as at}from"@domphy/theme";function ts(i={}){let{color:o="neutral",open:r=!1}=i,e=Fr(r);return{_onInsert:n=>{n.tagName!="dialog"&&console.warn('"dialog" primitive patch must use dialog tag')},onClick:(n,t)=>{if(n.target!==t.domElement)return;let a=t.domElement.getBoundingClientRect();n.clientX>=a.left&&n.clientX<=a.right&&n.clientY>=a.top&&n.clientY<=a.bottom||e.set(!1)},onTransitionEnd:(n,t)=>{let a=t.domElement;a.style.opacity==="0"&&(a.close(),document.body.style.overflow="")},_onMount:n=>{let t=n.domElement,a=l=>{l?(t.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{t.style.opacity="1";let s=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');s==null||s.focus()})):t.style.opacity="0"};a(e.get()),e.addListener(a)},style:{opacity:"0",transition:"opacity 200ms ease",fontSize:n=>Wr(n,"inherit"),color:n=>He(n,"shift-10",o),backgroundColor:n=>He(n,"inherit",o),border:"none",padding:n=>at(Ar(n)*3),boxShadow:n=>`0 ${at(9)} ${at(16)} ${He(n,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:n=>He(n,"shift-2","neutral"),opacity:.75}}}}import{toState as jr}from"@domphy/core";import{themeColor as Kr,themeSize as qr}from"@domphy/theme";function ss(i={}){var r;let o=jr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>qr(e,"inherit"),fontStyle:"italic",color:e=>Kr(e,"shift-10",o.get(e))}}}import{toState as Yr}from"@domphy/core";import{themeColor as io,themeSize as Gr,themeSpacing as Be}from"@domphy/theme";function fs(i={}){var r;let o=Yr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:Be(2),marginInline:0,marginTop:Be(3),marginBottom:Be(3),color:e=>io(e,"shift-9",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:Be(2)},"& figcaption":{fontSize:e=>Gr(e,"decrease-1"),color:e=>io(e,"shift-8",o.get(e)),lineHeight:1.45}}}}import{toState as Ur}from"@domphy/core";import{themeColor as Fe,themeDensity as te,themeSpacing as M,themeSize as lt}from"@domphy/theme";function Cs(i={}){var n;let{layout:o="horizontal"}=i,r=Ur((n=i.color)!=null?n:"neutral","color"),e=o==="vertical";return{_onInsert:t=>{t.tagName!="fieldset"&&console.warn('"formGroup" patch must use fieldset tag')},style:{margin:0,paddingInline:t=>M(te(t)*3),paddingBlock:t=>M(te(t)*3),border:"none",borderRadius:t=>M(te(t)*2),fontSize:t=>lt(t,"inherit"),backgroundColor:t=>Fe(t,"inherit",r.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:M(4),rowGap:M(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>lt(t,"inherit"),fontWeight:600,paddingBlock:t=>M(te(t)*1),borderRadius:t=>M(te(t)*2),color:t=>Fe(t,"shift-9",r.get(t)),backgroundColor:t=>Fe(t,"inherit",r.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?"0px":M(te(t)*1)},"& > label:has(+ :not(legend, label, p) + p)":{gridRow:e?"auto":"span 2"},"& > :not(legend, label, p)":{gridColumn:e?"1":"2",minWidth:0,width:"100%",boxSizing:"border-box"},"& > p":{gridColumn:e?"1":"2",minWidth:0,margin:0,marginBlockStart:`calc(${M(2)} * -1)`,fontSize:t=>lt(t,"decrease-1"),color:t=>Fe(t,"shift-9",r.get(t))}}}}import{toState as Xr}from"@domphy/core";import{themeColor as Jr,themeSize as Qr,themeSpacing as Zr}from"@domphy/theme";var en={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function Ps(i={}){var r;let o=Xr((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{["h1","h2","h3","h4","h5","h6"].includes(e.tagName)||console.warn('"heading" primitive patch must use heading tags [h1...h6]')},style:{color:e=>Jr(e,"shift-11",o.get(e)),marginTop:0,marginBottom:Zr(2),fontSize:e=>{let n=en[e.elementNode.tagName]||"inherit";return Qr(e,n)}}}}import{toState as tn}from"@domphy/core";import{themeColor as on,themeSpacing as ao}from"@domphy/theme";function Ls(i={}){var r;let o=tn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="hr"&&console.warn('"horizontalRule" primitive patch must use hr tag')},style:{border:0,height:"1px",marginInline:0,marginTop:ao(3),marginBottom:ao(3),backgroundColor:e=>on(e,"shift-4",o.get(e))}}}import{toState as rn}from"@domphy/core";import{themeColor as nn,themeSpacing as an}from"@domphy/theme";function Fs(i={}){var r;let o=rn((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="img"&&console.warn('"image" primitive patch must use img tag')},style:{display:"block",width:"100%",maxWidth:"100%",height:"auto",objectFit:"cover",borderRadius:an(2),backgroundColor:e=>nn(e,"inherit",o.get(e))}}}import{toState as ln}from"@domphy/core";import{themeSpacing as lo,themeColor as sn,themeSize as cn}from"@domphy/theme";function qs(i={}){var r;let o=ln((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="span"&&console.warn('"icon" primitive patch should use span tag')},style:{display:"inline-flex",alignItems:"center",justifyContent:"center",alignSelf:"center",justifySelf:"center",verticalAlign:"middle",width:lo(4),height:lo(4),flexShrink:"0",fontSize:e=>cn(e),backgroundColor:"transparent",color:e=>sn(e,"shift-9",o.get(e))}}}import{toState as so}from"@domphy/core";import{themeColor as co,themeDensity as Ce,themeSpacing as ve,themeSize as mn}from"@domphy/theme";function Qs(i={}){var e,n;let o=so((e=i.color)!=null?e:"neutral","color"),r=so((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"color",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputColor" primitive patch must use input tag'),a.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:t=>mn(t,"inherit"),paddingBlock:t=>ve(Ce(t)*1),paddingInline:t=>ve(Ce(t)*1),blockSize:t=>ve(6+Ce(t)*2),inlineSize:t=>ve(6+Ce(t)*2),backgroundColor:"transparent","&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:t=>ve(Ce(t)*1)},"&:hover:not([disabled]), &:focus-visible":{},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>co(t,"shift-2","neutral"),outline:t=>`1px solid ${co(t,"shift-4","neutral")}`}}}}import{toState as mo}from"@domphy/core";import{themeColor as F,themeDensity as st,themeSpacing as xe,themeSize as un}from"@domphy/theme";function ic(i={}){var n,t;let{mode:o="datetime-local"}=i,r=mo((n=i.color)!=null?n:"neutral","color"),e=mo((t=i.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(a,l)=>{a.tagName!="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),l.type=o},style:{fontFamily:"inherit",fontSize:a=>un(a,"inherit"),lineHeight:"inherit",color:a=>F(a,"shift-9",r.get(a)),backgroundColor:a=>F(a,"inherit",r.get(a)),border:"none",outlineOffset:"-1px",outline:a=>`1px solid ${F(a,"shift-4",r.get(a))}`,borderRadius:a=>xe(st(a)*1),paddingInline:a=>xe(st(a)*3),height:a=>xe(6+st(a)*2),"&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:a=>`${xe(.5)} solid ${F(a,"shift-6",e.get(a))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>F(a,"shift-8","neutral"),backgroundColor:a=>F(a,"shift-2","neutral"),outline:a=>`1px solid ${F(a,"shift-4","neutral")}`},"&:invalid":{outline:a=>`${xe(.5)} solid ${F(a,"shift-6","error")}`}}}}import{toState as uo}from"@domphy/core";import{themeColor as E,themeDensity as ct,themeSpacing as w,themeSize as dn}from"@domphy/theme";function dc(i={}){var e,n;let o=uo((e=i.color)!=null?e:"neutral","color"),r=uo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"file",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputFile" primitive patch must use input tag'),a.type="file"},style:{fontFamily:"inherit",fontSize:t=>dn(t,"inherit"),lineHeight:"inherit",color:t=>E(t,"shift-9",o.get(t)),backgroundColor:t=>E(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${E(t,"shift-4",o.get(t))}`,borderRadius:t=>w(ct(t)*1),height:t=>w(6+ct(t)*2),paddingInline:t=>w(ct(t)*1),"&::file-selector-button":{marginBlock:"auto",fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:w(1),height:w(6),paddingInline:w(2),cursor:"pointer",color:t=>E(t,"shift-10",r.get(t)),backgroundColor:t=>E(t,"shift-3",r.get(t))},"&::-webkit-file-upload-button":{marginTop:w(1),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:w(1),height:w(6),paddingInline:w(2),cursor:"pointer",color:t=>E(t,"shift-10",o.get(t)),backgroundColor:t=>E(t,"shift-3",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${w(.5)} solid ${E(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>E(t,"shift-8","neutral"),outline:t=>`1px solid ${E(t,"shift-4","neutral")}`,backgroundColor:t=>E(t,"shift-2","neutral")},"&[disabled]::file-selector-button, &[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>E(t,"shift-8","neutral"),backgroundColor:t=>E(t,"shift-3","neutral")}}}}import{toState as ho}from"@domphy/core";import{themeColor as A,themeDensity as mt,themeSpacing as Ee,themeSize as hn}from"@domphy/theme";function Sc(i={}){var e,n;let o=ho((e=i.color)!=null?e:"neutral","color"),r=ho((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"search",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputSearch" primitive patch must use input tag'),a.type="search"},style:{fontFamily:"inherit",fontSize:t=>hn(t,"inherit"),lineHeight:"inherit",color:t=>A(t,"shift-9",o.get(t)),backgroundColor:t=>A(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${A(t,"shift-4",o.get(t))}`,borderRadius:t=>Ee(mt(t)*1),minWidth:Ee(32),paddingInline:t=>Ee(mt(t)*3),paddingBlock:t=>Ee(mt(t)*1),"&::placeholder":{color:t=>A(t,"shift-7",o.get(t))},"&::-webkit-search-decoration":{display:"none"},"&::-webkit-search-cancel-button":{cursor:"pointer"},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${Ee(.5)} solid ${A(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>A(t,"shift-8","neutral"),backgroundColor:t=>A(t,"shift-2","neutral"),outline:t=>`1px solid ${A(t,"shift-4","neutral")}`}}}}import{toState as po}from"@domphy/core";import{themeColor as k,themeDensity as ut,themeSpacing as W,themeSize as pn}from"@domphy/theme";function wc(i={}){var e,n;let o=po((e=i.color)!=null?e:"neutral","color"),r=po((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"text",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputText" primitive patch must use input tag and text type'),a.type="text"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:W(10),paddingInline:t=>W(ut(t)*3),paddingBlock:t=>W(ut(t)*1),borderRadius:t=>W(ut(t)*1),fontSize:t=>pn(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${k(t,"shift-4",o.get(t))}`,color:t=>k(t,"shift-9",o.get(t)),backgroundColor:t=>k(t,"inherit",o.get(t)),"&::placeholder":{color:t=>k(t,"shift-7")},"&:not(:placeholder-shown)":{color:t=>k(t,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${W(.5)} solid ${k(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>k(t,"shift-2","neutral"),outline:t=>`1px solid ${k(t,"shift-4","neutral")}`,color:t=>k(t,"shift-8","neutral")},"&:invalid:not(:placeholder-shown)":{outline:t=>`${W(.5)} solid ${k(t,"shift-6","error")}`},"&[data-status=error]":{outline:t=>`${W(.5)} solid ${k(t,"shift-6","error")}`},"&[data-status=warning]":{outline:t=>`${W(.5)} solid ${k(t,"shift-6","warning")}`}}}}import{toState as fo}from"@domphy/core";import{themeColor as Y,themeSpacing as S}from"@domphy/theme";function $c(i={}){var e,n;let o=fo((e=i.color)!=null?e:"neutral","color"),r=fo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"range",_onInsert:t=>{t.tagName!="input"&&console.warn('"inputRange" primitive patch must use input tag')},style:{appearance:"none",width:"100%",margin:0,padding:0,height:S(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:S(1.5),borderRadius:S(999),backgroundColor:t=>Y(t,"shift-3",o.get(t))},"&::-moz-range-track":{height:S(1.5),borderRadius:S(999),backgroundColor:t=>Y(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:S(4),height:S(4),borderRadius:S(999),border:"none",marginTop:`calc((${S(1.5)} - ${S(4)}) / 2)`,backgroundColor:t=>Y(t,"shift-9",r.get(t))},"&::-moz-range-thumb":{width:S(4),height:S(4),borderRadius:S(999),border:"none",backgroundColor:t=>Y(t,"shift-9",r.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>Y(t,"shift-10",r.get(t))},"&:hover:not([disabled])::-moz-range-thumb":{backgroundColor:t=>Y(t,"shift-10",r.get(t))},"&:focus-visible":{outline:t=>`${S(.5)} solid ${Y(t,"shift-6",r.get(t))}`,outlineOffset:S(1),borderRadius:S(2)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as go}from"@domphy/core";import{themeColor as G,themeDensity as Ae,themeSpacing as oe,themeSize as fn}from"@domphy/theme";function Bc(i={}){var e,n;let o=go((e=i.color)!=null?e:"neutral","color"),r=go((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"number",_onSchedule:(t,a)=>{t.tagName!="input"&&console.warn('"inputNumber" primitive patch must use input tag'),a.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:oe(10),paddingInlineStart:t=>oe(Ae(t)*3),paddingInlineEnd:t=>oe(Ae(t)*1.5),paddingBlock:t=>oe(Ae(t)*1),borderRadius:t=>oe(Ae(t)*1),fontSize:t=>fn(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${G(t,"shift-4",o.get(t))}`,color:t=>G(t,"shift-9",o.get(t)),backgroundColor:t=>G(t,"inherit",o.get(t)),"&::-webkit-inner-spin-button, &::-webkit-outer-spin-button":{opacity:1},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${oe(.5)} solid ${G(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>G(t,"shift-2","neutral"),outline:t=>`1px solid ${G(t,"shift-4","neutral")}`,color:t=>G(t,"shift-8","neutral")}}}}import{toState as gn}from"@domphy/core";import{themeColor as dt,themeSize as bn,themeSpacing as ht}from"@domphy/theme";function Yc(i={}){var r;let o=gn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>bn(e,"inherit"),color:e=>dt(e,"shift-9",o.get(e)),backgroundColor:e=>dt(e,"inherit",o.get(e)),paddingBlock:ht(.5),paddingInline:ht(1.5),borderRadius:ht(1),outline:e=>`1px solid ${dt(e,"shift-4",o.get(e))}`}}}import{toState as bo}from"@domphy/core";import{themeColor as pt,themeSize as yn,themeSpacing as Sn}from"@domphy/theme";function em(i={}){var e,n;let o=bo((e=i.color)!=null?e:"neutral","color"),r=bo((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="label"&&console.warn('"label" primitive patch must use label tag')},style:{display:"inline-flex",alignItems:"center",gap:Sn(2),fontSize:t=>yn(t,"inherit"),color:t=>pt(t,"shift-9",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>pt(t,"shift-10",r.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>pt(t,"shift-8","neutral")}}}}import{toState as yo}from"@domphy/core";import{themeColor as re,themeSize as Cn,themeSpacing as ft}from"@domphy/theme";function am(i={}){var e,n;let o=yo((e=i.color)!=null?e:"primary","color"),r=yo((n=i.accentColor)!=null?n:"secondary","accentColor");return{_onInsert:t=>{t.tagName!="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>Cn(t,"inherit"),backgroundColor:t=>re(t),color:t=>re(t,"shift-9",o.get(t)),textDecoration:"none","&:visited":{color:t=>re(t,"shift-9",r.get(t))},"&:hover:not([disabled])":{color:t=>re(t,"shift-10",o.get(t)),textDecoration:"underline"},"&:focus-visible":{borderRadius:ft(1),outlineOffset:ft(1),outline:t=>`${ft(.5)} solid ${re(t,"shift-6",r.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>re(t,"shift-8","neutral")}}}}import{toState as vn}from"@domphy/core";import{themeSpacing as gt,themeSize as xn,themeColor as So}from"@domphy/theme";function hm(i={}){var r;let o=vn((r=i.accentColor)!=null?r:"highlight","accentColor");return{_onInsert:e=>{e.tagName!="mark"&&console.warn('"mark" primitive patch must use mark tag')},dataTone:"shift-2",style:{display:"inline-flex",alignItems:"center",fontSize:e=>xn(e,"inherit"),color:e=>So(e,"shift-9",o.get(e)),backgroundColor:e=>So(e,"inherit",o.get(e)),height:gt(6),borderRadius:gt(1),paddingInline:gt(1.5)}}}import{toState as En}from"@domphy/core";import{themeColor as kn,themeSize as Tn}from"@domphy/theme";function vm(i={}){var r;let o=En((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>Tn(e,"inherit"),color:e=>kn(e,"shift-9",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}import{toState as wn}from"@domphy/core";import{themeColor as Co,themeDensity as bt,themeSpacing as yt,themeSize as Pn}from"@domphy/theme";function Om(i={}){var r;let o=wn((r=i.color)!=null?r:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>Pn(e,"inherit"),color:e=>Co(e,"shift-9",o.get(e)),backgroundColor:e=>Co(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>yt(bt(e)*2),paddingInline:e=>yt(bt(e)*3),borderRadius:e=>yt(bt(e)*2)}}}import{toState as vo}from"@domphy/core";import{themeColor as We,themeSpacing as ke}from"@domphy/theme";function Mm(i={}){var e,n;let o=vo((e=i.color)!=null?e:"neutral","color"),r=vo((n=i.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="progress"&&console.warn('"progress" primitive patch must use progress tag')},style:{appearance:"none",width:"100%",height:ke(2),border:0,borderRadius:ke(999),overflow:"hidden",backgroundColor:t=>We(t,"shift-3",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>We(t,"shift-3",o.get(t)),borderRadius:ke(999)},"&::-webkit-progress-value":{backgroundColor:t=>We(t,"shift-9",r.get(t)),borderRadius:ke(999),transition:"width 220ms ease"},"&::-moz-progress-bar":{backgroundColor:t=>We(t,"shift-9",r.get(t)),borderRadius:ke(999)}}}}import{toState as xo}from"@domphy/core";import{themeColor as j,themeSize as On,themeSpacing as Te}from"@domphy/theme";function Am(i={}){var e,n;let o=xo((e=i.color)!=null?e:"neutral","color"),r=xo((n=i.accentColor)!=null?n:"primary","accentColor");return{type:"radio",_onInsert:t=>{if(t.tagName!="input"){console.warn('"inputRadio" primitive patch must use input tag and radio type');return}},style:{fontSize:t=>On(t,"inherit"),appearance:"none",display:"inline-flex",position:"relative",width:Te(6),height:Te(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:"50%",lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${j(t,"shift-4",o.get(t))}`,color:t=>j(t,"shift-9",o.get(t)),width:Te(4),height:Te(4)},"&:hover::before":{backgroundColor:t=>j(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${j(t,"shift-6",r.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>j(t,"shift-8",r.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>j(t,"shift-7",r.get(t))},"&:focus-visible":{borderRadius:"50%",outline:t=>`${Te(.5)} solid ${j(t,"shift-6",r.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>j(t,"shift-4","neutral"),pointerEvents:"none"}}}}import{themeColor as P,themeDensity as we,themeSize as In,themeSpacing as O,themeColorToken as _n}from"@domphy/theme";function Km(i={}){let{color:o="neutral",accentColor:r="primary"}=i;return{_onInsert:e=>{e.tagName!="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>In(e,"inherit"),lineHeight:"inherit",color:e=>P(e,"shift-9",o),backgroundColor:e=>P(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${P(e,"shift-4",o)}`,borderRadius:e=>O(we(e)*1),paddingBlock:e=>O(we(e)*1),paddingLeft:e=>O(we(e)*3),paddingRight:e=>O(we(e)*5),backgroundImage:e=>{let n=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 10 6"><path d="M1 1l4 4 4-4" stroke="${_n(e,"shift-7")}" stroke-width="1.5" fill="none" stroke-linecap="round" stroke-linejoin="round"/></svg>`;return`url("data:image/svg+xml,${encodeURIComponent(n)}")`},backgroundRepeat:"no-repeat",backgroundPosition:`right ${O(2)} center`,backgroundSize:`${O(2.5)} ${O(1.5)}`,"&:not([multiple])":{height:e=>O(6+we(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`${O(.5)} solid ${P(e,"shift-5",r)}`},"&:focus-visible":{outline:e=>`${O(.5)} solid ${P(e,"shift-6",r)}`},"& optgroup":{color:e=>P(e,"shift-11",o)},"& option[disabled]":{color:e=>P(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>P(e,"shift-8","neutral"),outline:e=>`1px solid ${P(e,"shift-4","neutral")}`,backgroundColor:e=>P(e,"shift-2","neutral")}}}}import{hashString as Vn,toState as zn}from"@domphy/core";import{themeColor as Eo,themeSize as $n,themeSpacing as ko}from"@domphy/theme";function Um(i={}){var n;let o=zn((n=i.color)!=null?n:"neutral","color"),r={"0%,100%":{opacity:1},"50%":{opacity:.4}},e=Vn(JSON.stringify(r));return{ariaHidden:"true",dataTone:"shift-2",style:{fontSize:t=>$n(t),color:t=>Eo(t,"shift-9",o.get(t)),height:ko(6),display:"block",borderRadius:ko(1),backgroundColor:t=>Eo(t,"inherit",o.get(t)),animation:`${e} 1.5s ease-in-out infinite`,[`@keyframes ${e}`]:r}}}import{hashString as Ln,toState as Mn}from"@domphy/core";import{themeColor as je,themeSize as Rn,themeSpacing as St}from"@domphy/theme";var wo={to:{transform:"rotate(360deg)"}},To=Ln(JSON.stringify(wo));function Zm(i={}){var r;let o=Mn((r=i.color)!=null?r:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>Rn(e),backgroundColor:e=>je(e),color:e=>je(e,"shift-9",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:St(6),height:St(6),borderRadius:"50%",border:e=>`${St(.5)} solid ${je(e,"shift-4",o.get(e))}`,borderTopColor:e=>je(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${To} 0.7s linear infinite`,[`@keyframes ${To}`]:wo}}}import{toState as Nn}from"@domphy/core";import{themeColor as Dn,themeDensity as Po,themeSize as Hn,themeSpacing as Oo}from"@domphy/theme";function nu(i={}){var a;let{color:o="neutral",multiple:r=!1}=i,e=Nn((a=i.value)!=null?a:r?[]:null),n={div:l=>{let s=e.get(l);return(Array.isArray(s)?s:[s]).map(m=>({input:null,name:i.name,value:m||""}))},hidden:!0};return{dataTone:"shift-17",_context:{select:{value:e,multiple:r}},_onInit:l=>{l.tagName!="div"&&console.warn('"selectList" patch must use a div tag'),l.children.insert(n)},style:{display:"flex",flexDirection:"column",paddingBlock:l=>Oo(Po(l)*2),paddingInline:l=>Oo(Po(l)*2),fontSize:l=>Hn(l,"inherit"),backgroundColor:l=>Dn(l,"inherit",o)}}}import{themeSpacing as Ke,themeColor as ne,themeDensity as Io,themeSize as Bn}from"@domphy/theme";function su(i={}){let{accentColor:o="primary",color:r="neutral",value:e=null}=i;return{role:"option",_onInit:t=>{t.tagName!="div"&&console.warn('"selectItem" patch must use div tag');let a=t.getContext("select");if(a){let l=a.value;t.attributes.set("ariaSelected",s=>{let u=l.get(s);return a.multiple?u.includes(e):u==e}),t.addEvent("click",()=>{let s=l.get();a.multiple?s.includes(e)?l.set(s.filter(u=>u!==e)):l.set(s.concat([e])):s!=e&&l.set(e)})}},style:{cursor:"pointer",display:"flex",alignItems:"center",fontSize:t=>Bn(t,"inherit"),height:t=>Ke(6+Io(t)*2),paddingInline:t=>Ke(Io(t)*3),border:"none",outline:"none",color:t=>ne(t,"shift-9",r),backgroundColor:t=>ne(t,"inherit",r),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>ne(t,"shift-2",r)},"&[aria-selected=true]":{backgroundColor:t=>ne(t,"shift-6",o),color:t=>ne(t,"shift-11")},"&:focus-visible":{outline:t=>`${Ke(.5)} solid ${ne(t,"shift-6",o)}`,outlineOffset:`-${Ke(.5)}`}}}}import{toState as _o,merge as Vo}from"@domphy/core";import{themeSpacing as Pe,themeColor as Ct,themeDensity as vt,themeSize as Fn}from"@domphy/theme";function pu(i){let{options:o=[],placement:r="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=i,a=_o(i.value),l=_o(n),{show:s,hide:u,anchorPartial:m}=D({open:l,placement:r,content:i.content,onPlacement:i.onPlacement}),c={onClick:()=>!t&&u()};Vo(i.content,c);let d={div:h=>{let f=a.get(h),p=Array.isArray(f)?f:[f];return o.filter(b=>p.includes(b.value)).map(b=>({span:b.label,$:[Re({color:e,removable:t})],_key:b.value,_onRemove:U=>{let v=a.get(),Je=(Array.isArray(v)?v:[v]).filter(pe=>pe!==b.value);t?a.set(Je):a.set(Je[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:Pe(1),flex:1}},g={_onInsert:h=>{h.tagName!="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:h=>h.children.insert(d),onClick:()=>l.get()?u():s(),style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:h=>Pe(6+vt(h)*2),minWidth:Pe(32),outlineOffset:"-1px",outline:h=>`1px solid ${Ct(h,"shift-4","neutral")}`,paddingInline:h=>Pe(vt(h)*2),borderRadius:h=>Pe(vt(h)*1),fontSize:h=>Fn(h,"inherit"),color:h=>Ct(h,"shift-9",e),backgroundColor:h=>Ct(h,"inherit",e)}};return Vo(m,g),m}import{toState as An}from"@domphy/core";import{themeColor as xt,themeSize as zo,themeSpacing as R}from"@domphy/theme";function vu(i={}){var r;let o=An((r=i.accentColor)!=null?r:"primary","accentColor");return{dataTone:"shift-2",type:"checkbox",_onSchedule:e=>{if(e.tagName!="input"){console.warn('"inputSwitch" primitive patch must use input tag');return}},style:{fontSize:e=>zo(e,"inherit"),appearance:"none",position:"relative",display:"inline-flex",width:R(9),height:R(6),cursor:"pointer",margin:"0",paddingBlock:R(1),"&:checked":{"&::before":{backgroundColor:e=>xt(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${R(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:R(3),height:R(3),borderRadius:R(999),left:R(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>xt(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:R(999),display:"inline-block",fontSize:e=>zo(e,"inherit"),lineHeight:1,backgroundColor:e=>xt(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as Et}from"@domphy/core";import{themeColor as ie,themeSize as Wn,themeSpacing as T}from"@domphy/theme";function Tu(i={}){var t,a;let{checked:o=!1}=i,r=Et(o),e=Et((t=i.color)!=null?t:"neutral","color"),n=Et((a=i.accentColor)!=null?a:"primary","accentColor");return{_onSchedule:l=>{l.tagName!="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:l=>r.get(l),dataTone:"shift-2",onClick:()=>r.set(!r.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:l=>Wn(l),border:"none",outlineWidth:"1px",outline:l=>`1px solid ${ie(l,"shift-3",e.get(l))}`,minWidth:T(12),minHeight:T(6),borderRadius:T(999),paddingLeft:T(7),paddingRight:T(2),transition:"padding-left 0.3s, padding-right 0.3s",backgroundColor:l=>ie(l,"inherit",e.get(l)),"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:T(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:T(5),height:T(5),borderRadius:T(999),color:l=>ie(l,"shift-9"),backgroundColor:l=>ie(l,"decrease-2",e.get(l))},"&[aria-checked=true]":{backgroundColor:l=>ie(l,"increase-3",n.get(l)),outline:"none",color:l=>ie(l,"decrease-2"),paddingLeft:T(2),paddingRight:T(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${T(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}import{toState as jn}from"@domphy/core";import{themeColor as Kn,themeSize as qn}from"@domphy/theme";function zu(i={}){var r;let o=jn((r=i.color)!=null?r:"neutral","color");return{dataSize:"decrease-1",_onInsert:e=>{e.tagName!="small"&&console.warn('"small" primitive patch must use small tag')},style:{fontSize:e=>qn(e,"inherit"),color:e=>Kn(e,"shift-9",o.get(e))}}}import{toState as Yn}from"@domphy/core";import{themeColor as $o,themeSize as Gn}from"@domphy/theme";function Hu(i={}){var r;let o=Yn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>Gn(e,"inherit"),fontWeight:700,color:e=>$o(e,"shift-11",o.get(e)),backgroundColor:e=>$o(e)}}}import{toState as Un}from"@domphy/core";import{themeColor as Xn,themeSize as Jn}from"@domphy/theme";function qu(i={}){var r;let o=Un((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>Jn(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>Xn(e,"shift-9",o.get(e))}}}import{toState as Qn}from"@domphy/core";import{themeColor as Zn,themeSize as ei}from"@domphy/theme";function Zu(i={}){var r;let o=Qn((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>ei(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>Zn(e,"shift-9",o.get(e))}}}import{toState as ti}from"@domphy/core";import{themeColor as I,themeDensity as ae,themeSpacing as le,themeSize as Lo}from"@domphy/theme";function rd(i={}){var r;let o=ti((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="table"&&console.warn('"table" primitive patch must use table tag')},style:{fontSize:e=>Lo(e,"inherit"),color:e=>I(e,"shift-9",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>le(ae(e)*3),paddingBlock:e=>le(ae(e)*1),color:e=>I(e,"shift-10",o.get(e)),backgroundColor:e=>I(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>le(ae(e)*3),paddingBlock:e=>le(ae(e)*1),color:e=>I(e,"shift-9",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${I(e,"shift-3",o.get(e))}`,fontSize:e=>Lo(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>le(ae(e)*3),paddingBlock:e=>le(ae(e)*1),color:e=>I(e,"shift-10",o.get(e)),backgroundColor:e=>I(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${I(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>I(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>I(e,"shift-2")+"!important"}}}}import{toState as Mo}from"@domphy/core";import{themeColor as _,themeDensity as kt,themeSpacing as se,themeSize as oi}from"@domphy/theme";function md(i={}){var n,t;let o=Mo((n=i.color)!=null?n:"neutral","color"),r=Mo((t=i.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=i;return{_onInsert:a=>{a.tagName!="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:a=>{if(e){let l=a.domElement;l.style.overflow="hidden";let s=()=>{l.style.height="auto",l.style.height=l.scrollHeight+"px"};l.addEventListener("input",s),s()}},style:{fontFamily:"inherit",lineHeight:"inherit",resize:"vertical",paddingInline:a=>se(kt(a)*2),paddingBlock:a=>se(kt(a)*1.5),border:"none",borderRadius:a=>se(kt(a)*1.5),fontSize:a=>oi(a,"inherit"),color:a=>_(a,"shift-9",o.get(a)),outlineOffset:"-1px",outline:a=>`1px solid ${_(a,"shift-4",o.get(a))}`,backgroundColor:a=>_(a,"inherit",o.get(a)),"&::placeholder":{color:a=>_(a,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:a=>`${se(.5)} solid ${_(a,"shift-5",r.get(a))}`},"&:focus-visible":{outline:a=>`${se(.5)} solid ${_(a,"shift-6",r.get(a))}`},"&:invalid":{outline:a=>`${se(.5)} solid ${_(a,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:a=>_(a,"shift-8","neutral"),outline:a=>`1px solid ${_(a,"shift-4","neutral")}`,backgroundColor:a=>_(a,"shift-2","neutral")}}}}import{toState as ri}from"@domphy/core";import{themeColor as Ro,themeSize as ni,themeSpacing as ii}from"@domphy/theme";function bd(i={}){var r;let o=ri((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>ni(e,"inherit"),backgroundColor:e=>Ro(e),color:e=>Ro(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:ii(3),listStyleType:"disc",listStylePosition:"outside"}}}import{toState as ai}from"@domphy/core";import{themeColor as No,themeSize as li,themeSpacing as si}from"@domphy/theme";function kd(i={}){var r;let o=ai((r=i.color)!=null?r:"neutral","color");return{_onInsert:e=>{e.tagName!="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>li(e,"inherit"),backgroundColor:e=>No(e),color:e=>No(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:si(3),listStyleType:"decimal",listStylePosition:"outside"}}}import{toState as ci}from"@domphy/core";import{themeColor as ce,themeDensity as Oe,themeSize as mi,themeSpacing as me}from"@domphy/theme";function ui(i,o){if(o<=7)return Array.from({length:o},(t,a)=>a+1);let r=[1];i>3&&r.push("...");let e=Math.max(2,i-1),n=Math.min(o-1,i+1);for(let t=e;t<=n;t++)r.push(t);return i<o-2&&r.push("..."),r.push(o),r}function Od(i){var l;let{total:o,color:r="neutral",accentColor:e="primary"}=i,n=ci((l=i.value)!=null?l:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:s=>me(6+Oe(s)*2),height:s=>me(6+Oe(s)*2),paddingInline:s=>me(Oe(s)*2),borderRadius:s=>me(Oe(s)*1),border:"none",cursor:"pointer",fontSize:s=>mi(s,"inherit"),backgroundColor:"transparent",color:s=>ce(s,"shift-9",r),"&:hover:not([disabled])":{backgroundColor:s=>ce(s,"shift-2",r)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},a=Lt($t({},t),{backgroundColor:s=>ce(s,"shift-6",e),color:s=>ce(s,"shift-11",e),fontWeight:"600",cursor:"default","&:hover:not([disabled])":{backgroundColor:s=>ce(s,"shift-6",e)}});return{_onInsert:s=>{s.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:s=>{let u={div:m=>{let c=n.get(m),d=[];d.push({button:"\u2039",type:"button",ariaLabel:"Previous page",disabled:c<=1,onClick:()=>c>1&&n.set(c-1),style:t});for(let g of ui(c,o))if(g==="...")d.push({span:"\u2026",style:{display:"inline-flex",alignItems:"center",paddingInline:h=>me(Oe(h)*2),color:h=>ce(h,"shift-7",r)}});else{let h=g===c;d.push({button:String(g),type:"button",ariaLabel:`Page ${g}`,ariaCurrent:h?"page":void 0,disabled:h,onClick:()=>n.set(g),style:h?a:t})}return d.push({button:"\u203A",type:"button",ariaLabel:"Next page",disabled:c>=o,onClick:()=>c<o&&n.set(c+1),style:t}),d},style:{display:"flex",alignItems:"center",gap:me(1)}};s.children.insert(u)},style:{display:"inline-flex"}}}import{toState as di}from"@domphy/core";import{themeColor as qe,themeSize as hi,themeSpacing as pi}from"@domphy/theme";function Ld(i={}){var r;let o=di((r=i.color)!=null?r:"neutral","color");return{role:"separator",_onInsert:e=>{e.tagName!=="div"&&console.warn('"divider" patch should be used with <div>')},style:{display:"flex",justifyContent:"center",alignItems:"baseline",gap:pi(2),fontSize:e=>hi(e,"inherit"),backgroundColor:e=>qe(e),color:e=>qe(e,"shift-9",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>qe(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>qe(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}import{toState as fi}from"@domphy/core";import{themeColor as Ye,themeDensity as gi,themeSize as bi,themeSpacing as Ie}from"@domphy/theme";var Do={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},yi={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},Tt=i=>i==="left"||i==="right";function Dd(i={}){let{color:o="neutral",open:r=!1,placement:e="right",size:n}=i,t=fi(r),a=Tt(e)?Ie(80):Ie(64),l=n!=null?n:a;return{_onInsert:s=>{s.tagName!=="dialog"&&console.warn('"drawer" patch must use dialog tag')},onClick:(s,u)=>{s.target===u.domElement&&t.set(!1)},onTransitionEnd:(s,u)=>{let m=u.domElement;t.get()||(m.close(),document.body.style.overflow="")},_onMount:s=>{let u=s.domElement,m=c=>{c?(u.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.style.transform="translate(0, 0)"})):u.style.transform=Do[e]};m(t.get()),t.addListener(m)},style:{transform:Do[e],transition:"transform 0.25s ease",fontSize:s=>bi(s,"inherit"),color:s=>Ye(s,"shift-10",o),backgroundColor:s=>Ye(s,"inherit",o),border:"none",padding:s=>Ie(gi(s)*3),margin:yi[e],width:Tt(e)?l:"100dvw",height:Tt(e)?"100dvh":l,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:s=>`0 ${Ie(4)} ${Ie(12)} ${Ye(s,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:s=>Ye(s,"shift-2","neutral"),opacity:.75}}}}import{toState as Si,merge as Ho}from"@domphy/core";function Kd(i){let{open:o=!1,placement:r="bottom",openOn:e="click"}=i,n=null,t=Si(o),{show:a,hide:l,anchorPartial:s}=D({open:t,placement:r,content:i.content,onPlacement:i.onPlacement}),u={role:"dialog",dataTone:"shift-17",onMouseEnter:()=>e==="hover"&&a(),onMouseLeave:()=>e==="hover"&&l(),_onInsert:c=>{let d=c.attributes.get("id");n=d||c.nodeId,!d&&c.attributes.set("id",n)}};return Ho(i.content,u),Ho(s,{ariaHaspopup:"dialog",ariaExpanded:c=>t.get(c),onMouseEnter:()=>e==="hover"&&a(),onMouseLeave:()=>e==="hover"&&l(),onClick:()=>{e==="click"&&(t.get()?l():a())},onFocus:()=>a(),onBlur:(c,d)=>{let g=c.relatedTarget,h=d.getRoot().domElement,f=n?h.querySelector(`#${CSS.escape(n)}`):null;g&&(f!=null&&f.contains(g))||l()},_onMount:c=>n&&c.attributes.set("ariaControls",n)}),s}import{toState as Ci}from"@domphy/core";import{themeColor as wt,themeDensity as Pt,themeSize as vi,themeSpacing as K}from"@domphy/theme";function Ud(i={}){let{position:o="top-center",color:r="neutral"}=i,e=Ci(!1),n=o.startsWith("top"),t=o.endsWith("center"),a=o.endsWith("right"),l={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:n?"column":"column-reverse",alignItems:t?"center":a?"end":"start",inset:0,gap:K(4),zIndex:30,padding:K(6),pointerEvents:"none"}};return{_portal:s=>{let u=s.domElement.querySelector(`#domphy-toast-${o}`);return u||(u=s.children.insert(l).domElement),u},role:"status",ariaAtomic:"true",dataTone:"shift-17",style:{minWidth:K(32),pointerEvents:"auto",paddingBlock:s=>K(Pt(s)*2),paddingInline:s=>K(Pt(s)*4),borderRadius:s=>K(Pt(s)*2),fontSize:s=>vi(s,"inherit"),color:s=>wt(s,"shift-9",r),backgroundColor:s=>wt(s,"inherit",r),boxShadow:s=>`0 ${K(2)} ${K(9)} ${wt(s,"shift-4","neutral")}`,opacity:s=>Number(e.get(s)),transform:s=>e.get(s)?"translateY(0)":n?"translateY(-100%)":"translateY(100%)",transition:"opacity 300ms ease, transform 300ms ease"},_onMount:()=>requestAnimationFrame(()=>e.set(!0)),_onBeforeRemove:(s,u)=>{let m=c=>{c.propertyName==="transform"&&(s.domElement.removeEventListener("transitionend",m),u())};s.domElement.addEventListener("transitionend",m),e.set(!1)}}}import{merge as xi,toState as Ei}from"@domphy/core";import{themeSpacing as Ot,themeColor as Bo,themeDensity as It,themeSize as ki}from"@domphy/theme";function nh(i={}){let{open:o=!1,placement:r="top",content:e="Tooltip Content"}=i,n=Ei(r),t=null,a=typeof e=="string"?{span:e}:e,{show:l,hide:s,anchorPartial:u}=D({open:o,placement:n,content:a}),m={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",_onInsert:d=>{let g=d.attributes.get("id");t=g||d.nodeId,!g&&d.attributes.set("id",t)},style:{paddingBlock:d=>Ot(It(d)*1),paddingInline:d=>Ot(It(d)*3),borderRadius:d=>Ot(It(d)*1),color:d=>Bo(d,"shift-9"),backgroundColor:d=>Bo(d),fontSize:d=>ki(d,"inherit")},$:[Ut({placement:n,bordered:!1})]};return a.$||(a.$=[]),a.$.push(m),xi(u,{onMouseEnter:()=>l(),onMouseLeave:()=>s(),onFocus:()=>l(),onBlur:()=>s(),onKeyDown:d=>d.key==="Escape"&&s(),_onMount:d=>t&&d.attributes.set("ariaDescribedby",t)}),u}import{ElementNode as Fo}from"@domphy/core";function Ao(i,o){return i.key!==void 0&&i.key!==null?String(i.key):`index-${o}`}function sh(i={}){let{duration:o=300,delay:r=0}=i,e=new Map;return{_onBeforeUpdate:n=>{e=new Map,n.children.items.forEach((t,a)=>{if(!(t instanceof Fo))return;let l=t.domElement;l&&e.set(Ao(t,a),l.getBoundingClientRect())})},_onUpdate:n=>{n.children.items.forEach((t,a)=>{if(!(t instanceof Fo))return;let l=t.domElement;if(!l)return;let s=Ao(t,a),u=e.get(s);if(!u)return;let m=l.getBoundingClientRect(),c=u.left-m.left,d=u.top-m.top;if(Math.abs(c)<.5&&Math.abs(d)<.5)return;let g=l.style.transition,h=l.style.transform;l.style.transition="none",l.style.transform=`translate(${c}px, ${d}px)`,l.getBoundingClientRect(),requestAnimationFrame(()=>{l.style.transition=`transform ${o}ms ease ${r}ms`,l.style.transform="translate(0px, 0px)"});let f=()=>{l.style.transition=g,l.style.transform=h,l.removeEventListener("transitionend",p)},p=y=>{y.propertyName==="transform"&&f()};l.addEventListener("transitionend",p),setTimeout(f,o+r+34)}),e.clear()}}}import{merge as Ti}from"@domphy/core";import{toState as wi}from"@domphy/core";function ph(i={}){return{role:"tablist",_onSchedule:(r,e)=>{let n={_context:{tabs:{activeKey:wi(i.activeKey||0)}}};Ti(e,n)}}}import{themeSpacing as ue,themeColor as de,themeDensity as Wo,themeSize as Pi}from"@domphy/theme";function yh(i={}){let{accentColor:o="primary",color:r="neutral"}=i;return{role:"tab",_onInsert:n=>{var u;n.tagName!="button"&&console.warn('"tab" patch must use button tag');let t=n.getContext("tabs"),a=(u=n.parent)==null?void 0:u.children.items;a=a.filter(m=>m.type=="ElementNode"&&m.attributes.get("role")=="tab");let l=n.key||a.findIndex(m=>m==n),s={id:"tab"+n.parent.nodeId+l,ariaControls:"tabpanel"+n.parent.nodeId+l,ariaSelected:m=>t.activeKey.get(m)==l,onClick:()=>t.activeKey.set(l),onKeyDown:m=>{var p,y,b,U;let c=m.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(c))return;m.preventDefault();let d=((y=(p=n.parent)==null?void 0:p.children.items)!=null?y:[]).filter(v=>v.type==="ElementNode"&&v.attributes.get("role")==="tab"),g=d.findIndex(v=>v===n),h=g;c==="ArrowRight"?h=(g+1)%d.length:c==="ArrowLeft"?h=(g-1+d.length)%d.length:c==="Home"?h=0:c==="End"&&(h=d.length-1);let f=d[h];t.activeKey.set((b=f.key)!=null?b:h),(U=f.domElement)==null||U.focus()}};n.merge(s)},style:{cursor:"pointer",fontSize:n=>Pi(n,"inherit"),height:n=>ue(6+Wo(n)*2),paddingInline:n=>ue(Wo(n)*4),border:"none",outline:"none",color:n=>de(n,"shift-9"),backgroundColor:n=>de(n,"inherit"),boxShadow:n=>`inset 0 -${ue(.5)} 0 0 ${de(n,"shift-1",r)}`,"&:hover:not([disabled])":{boxShadow:n=>`inset 0 -${ue(.5)} 0 0 ${de(n,"shift-2",r)}`},"&[aria-selected=true]:not([disabled])":{boxShadow:n=>`inset 0 -${ue(.5)} 0 0 ${de(n,"shift-6",o)}`},"&:focus-visible":{boxShadow:n=>`inset 0 -${ue(.5)} 0 0 ${de(n,"shift-6",o)}`}}}}import{themeSpacing as jo,themeDensity as Ko}from"@domphy/theme";function xh(){return{role:"tabpanel",style:{paddingBlock:o=>jo(Ko(o)*2),paddingInline:o=>jo(Ko(o)*2)},_onInsert:o=>{var a;let r=o.getContext("tabs"),e=(a=o.parent)==null?void 0:a.children.items;e=e.filter(l=>l.type=="ElementNode"&&l.attributes.get("role")=="tabpanel");let n=o.key||e.findIndex(l=>l==o),t={id:"tabpanel"+o.parent.nodeId+n,ariaLabelledby:"tab"+o.parent.nodeId+n,hidden:l=>r.activeKey.get(l)!=n};o.merge(t)}}}import{merge as Oi}from"@domphy/core";import{toState as Ii}from"@domphy/core";import{themeColor as _i,themeDensity as qo,themeSize as Vi,themeSpacing as Yo}from"@domphy/theme";function Ih(i={}){let{color:o="neutral",selectable:r=!0}=i;return{role:"menu",dataTone:"shift-17",_onSchedule:(n,t)=>{var l;let a={_context:{menu:{activeKey:Ii((l=i.activeKey)!=null?l:null),selectable:r}}};Oi(t,a)},style:{display:"flex",flexDirection:"column",paddingBlock:n=>Yo(qo(n)*2),paddingInline:n=>Yo(qo(n)*2),fontSize:n=>Vi(n,"inherit"),backgroundColor:n=>_i(n,"inherit",o)}}}import{themeSpacing as Ge,themeColor as he,themeDensity as Go,themeSize as zi}from"@domphy/theme";function $h(i={}){let{accentColor:o="primary",color:r="neutral"}=i;return{role:"menuitem",_onInsert:n=>{var s;n.tagName!="button"&&console.warn('"menuItem" patch must use button tag');let t=n.getContext("menu"),a=(s=n.parent)==null?void 0:s.children.items;a=a.filter(u=>u.type=="ElementNode"&&u.attributes.get("role")=="menuitem");let l=n.key||a.findIndex(u=>u==n);t.selectable&&(n.attributes.set("ariaCurrent",u=>t.activeKey.get(u)==l||void 0),n.addEvent("click",()=>t.activeKey.set(l)))},onKeyDown:(n,t)=>{var m,c,d,g;let a=n.key;if(a==="Enter"||a===" "){n.preventDefault(),(m=t.domElement)==null||m.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(a))return;n.preventDefault();let l=((d=(c=t.parent)==null?void 0:c.children.items)!=null?d:[]).filter(h=>h.type==="ElementNode"&&h.attributes.get("role")==="menuitem"),s=l.findIndex(h=>h===t),u=s;a==="ArrowDown"?u=(s+1)%l.length:a==="ArrowUp"?u=(s-1+l.length)%l.length:a==="Home"?u=0:a==="End"&&(u=l.length-1),(g=l[u].domElement)==null||g.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:n=>zi(n,"inherit"),height:n=>Ge(6+Go(n)*2),paddingInline:n=>Ge(Go(n)*3),border:"none",outline:"none",color:n=>he(n,"shift-9"),backgroundColor:n=>he(n,"inherit"),"&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:n=>he(n,"shift-2")},"&[aria-current=true]":{backgroundColor:n=>he(n,"shift-3",o),color:n=>he(n,"shift-10")},"&:focus-visible":{outline:n=>`${Ge(.5)} solid ${he(n,"shift-6",o)}`,outlineOffset:`-${Ge(.5)}`}}}}import{merge as $i}from"@domphy/core";function Nh(i){return{_onSchedule:(o,r)=>{$i(r,{_context:{form:i}})}}}function Hh(i,o){return{_onInsert:r=>{let n=r.getContext("form").setField(i,void 0,o),t=r.tagName,a=r.attributes.get("type");["input","select","textarea"].includes(t)||console.warn('"field" patch must use input, select, or textarea tag');let l={onBlur:()=>n.setTouched(),ariaInvalid:s=>!!n.message("error",s)||void 0,dataStatus:s=>n.status(s)};t==="input"&&a==="checkbox"?(l.checked=n.value(),l.onChange=s=>n.setValue(s.target.checked)):t==="input"&&a==="radio"?l.onChange=s=>n.setValue(s.target.value):t==="select"?(l.value=n.value(),l.onChange=s=>n.setValue(s.target.value)):t==="textarea"?(l.value=n.value(),l.onInput=s=>n.setValue(s.target.value)):(l.value=n.value(),l.onInput=s=>n.setValue(s.target.value)),r.merge(l)}}}import{Notifier as Li}from"@domphy/core";function Mi(i){return!!i&&typeof i.then=="function"}var Xe=class{constructor(o,r){this._notifier=new Li;this._messages={};this._touched=!1;this._pending=!1;this._validationToken=0;this._value=o,this._initValue=o,this._validator=r,r&&this.validate()}value(o){return o&&this._notifier.addListener("value",o),this._value}setValue(o){this._value=o,this._notifier.notify("value",o),this._notifier.notify("dirty",o!==this._initValue),this.validate()}dirty(o){return o&&this._notifier.addListener("dirty",o),this._value!==this._initValue}touched(o){return o&&this._notifier.addListener("touched",o),this._touched}setTouched(){this._touched||(this._touched=!0,this._notifier.notify("touched",!0))}configure(o,r){let e=!1;o!==void 0&&this._value===void 0&&this._initValue===void 0&&(this._value=o,this._initValue=o,this._notifier.notify("value",o),this._notifier.notify("dirty",!1),e=!0),r!==void 0&&r!==this._validator&&(this._validator=r,e=!0),e&&this.validate()}message(o,r){return r&&this._notifier.addListener(o,r),this._messages[o]}status(o){return o&&this._notifier.addListener("status",o),Ue(this._messages)}setMessages(o){let r=this._messages;this._messages=o;for(let e of["error","warning","success"])r[e]!==o[e]&&this._notifier.notify(e,o[e]);Ue(r)!==Ue(o)&&this._notifier.notify("status",Ue(o))}reset(){this._value=this._initValue,this._touched=!1,this._notifier.notify("value",this._value),this._notifier.notify("dirty",!1),this._notifier.notify("touched",!1),this.setMessages({}),this.validate()}validate(){let o=++this._validationToken;if(!this._validator){this._pending=!1,this.setMessages({});return}try{let r=this._validator(this._value);Mi(r)?(this._pending=!0,Promise.resolve(r).then(e=>{o===this._validationToken&&(this._pending=!1,this.setMessages(e!=null?e:{}))}).catch(e=>{o===this._validationToken&&(this._pending=!1,console.error(e))})):(this._pending=!1,this.setMessages(r!=null?r:{}))}catch(r){o===this._validationToken&&(this._pending=!1),console.error(r)}}_dispose(){this._validationToken+=1,this._pending=!1,this._notifier._dispose()}};function Ue(i){if(i.error)return"error";if(i.warning)return"warning";if(i.success)return"success"}var Uo=class{constructor(){this.fields=new Map}setField(o,r,e){let n=this.fields.get(o);return n?n.configure(r,e):(n=new Xe(r,e),this.fields.set(o,n)),n}getField(o){return this.setField(o)}removeField(o){var r;(r=this.fields.get(o))==null||r._dispose(),this.fields.delete(o)}get valid(){for(let o of this.fields.values())if(o._pending||o._messages.error)return!1;return!0}reset(){for(let o of this.fields.values())o.reset()}snapshot(){let o={};for(let[r,e]of this.fields)Ri(o,r,e._value);return o}_dispose(){for(let o of this.fields.values())o._dispose();this.fields.clear()}};function Ri(i,o,r){let e=o.split("."),n=i;for(let t=0;t<e.length-1;t++){let a=e[t];n[a]==null&&(n[a]=isNaN(Number(e[t+1]))?{}:[]),n=n[a]}n[e[e.length-1]]=r}export{Xe as FieldState,Uo as FormState,ji as abbreviation,ka as alert,Ia as avatar,La as badge,yl as blockquote,Ha as breadcrumb,ja as breadcrumbEllipsis,xl as button,Tu as buttonSwitch,Ui as card,Rl as code,al as combobox,ia as command,la as commandItem,aa as commandSearch,Xl as descriptionList,Wl as details,ts as dialog,Ld as divider,Dd as drawer,ss as emphasis,Hh as field,fs as figure,Nh as form,Cs as formGroup,Ps as heading,Ls as horizontalRule,qs as icon,Fs as image,Il as inputCheckbox,Qs as inputColor,ic as inputDateTime,dc as inputFile,Bc as inputNumber,Sa as inputOTP,Am as inputRadio,$c as inputRange,Sc as inputSearch,vu as inputSwitch,wc as inputText,Yc as keyboard,em as label,am as link,hm as mark,Ih as menu,$h as menuItem,kd as orderedList,Od as pagination,vm as paragraph,Kd as popover,Ut as popoverArrow,Om as preformated,Mm as progress,Km as select,pu as selectBox,su as selectItem,nu as selectList,Um as skeleton,zu as small,Zm as spinner,Zi as splitter,ta as splitterHandle,ea as splitterPanel,Hu as strong,qu as subscript,Zu as superscript,yh as tab,xh as tabPanel,rd as table,ph as tabs,Re as tag,md as textarea,Ud as toast,ua as toggle,ga as toggleGroup,nh as tooltip,sh as transitionGroup,bd as unorderedList};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|