@domphy/ui 0.14.0 → 0.16.0
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/LICENSE +21 -21
- package/dist/core-theme-ui.global.js +4 -4
- 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 +973 -196
- package/dist/index.d.ts +973 -196
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";var rt=Object.defineProperty,gn=Object.defineProperties,yn=Object.getOwnPropertyDescriptor,bn=Object.getOwnPropertyDescriptors,Sn=Object.getOwnPropertyNames,oo=Object.getOwnPropertySymbols;var ro=Object.prototype.hasOwnProperty,Cn=Object.prototype.propertyIsEnumerable;var no=(r,o,a)=>o in r?rt(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,at=(r,o)=>{for(var a in o||(o={}))ro.call(o,a)&&no(r,a,o[a]);if(oo)for(var a of oo(o))Cn.call(o,a)&&no(r,a,o[a]);return r},ao=(r,o)=>gn(r,bn(o));var vn=(r,o)=>{for(var a in o)rt(r,a,{get:o[a],enumerable:!0})},En=(r,o,a,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of Sn(o))!ro.call(r,n)&&n!==a&&rt(r,n,{get:()=>o[n],enumerable:!(e=yn(o,n))||e.enumerable});return r};var xn=r=>En(rt({},"__esModule",{value:!0}),r);var Zr={};vn(Zr,{abbreviation:()=>kn,alert:()=>Rn,avatar:()=>_n,badge:()=>Ln,blockquote:()=>Fn,breadcrumb:()=>Nn,breadcrumbEllipsis:()=>Hn,button:()=>Wn,buttonSwitch:()=>Or,card:()=>wn,code:()=>jn,combobox:()=>An,command:()=>On,commandItem:()=>$n,commandSearch:()=>In,datePicker:()=>ir,descriptionList:()=>qn,details:()=>Yn,dialog:()=>Gn,divider:()=>Br,drawer:()=>Fr,emphasis:()=>Un,figure:()=>Xn,formGroup:()=>Jn,heading:()=>Zn,horizontalRule:()=>er,icon:()=>or,image:()=>tr,inputCheckbox:()=>Kn,inputColor:()=>nr,inputDateTime:()=>rr,inputFile:()=>cr,inputNumber:()=>hr,inputOTP:()=>Mn,inputRadio:()=>vr,inputRange:()=>dr,inputSearch:()=>mr,inputSwitch:()=>Dr,inputText:()=>ur,keyboard:()=>pr,label:()=>fr,link:()=>gr,mark:()=>yr,menu:()=>Xr,menuItem:()=>Jr,motion:()=>Qr,orderedList:()=>Lr,pagination:()=>Hr,paragraph:()=>br,popover:()=>Wr,popoverArrow:()=>Pt,preformated:()=>Sr,progress:()=>Cr,select:()=>Er,selectBox:()=>Pr,selectItem:()=>Tr,selectList:()=>wr,skeleton:()=>xr,small:()=>Ir,spinner:()=>kr,splitter:()=>Tn,splitterHandle:()=>Dn,splitterPanel:()=>Pn,strong:()=>$r,subscript:()=>zr,superscript:()=>Vr,tab:()=>Gr,tabPanel:()=>Ur,table:()=>Mr,tabs:()=>qr,tag:()=>Je,textarea:()=>Rr,toast:()=>Kr,toggle:()=>zn,toggleGroup:()=>Vn,tooltip:()=>jr,transitionGroup:()=>Yr,unorderedList:()=>_r});module.exports=xn(Zr);var xt=require("@domphy/core"),Se=require("@domphy/theme");function kn(r={}){var e,n;let o=(0,xt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,xt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>(0,Se.themeSize)(t),backgroundColor:t=>(0,Se.themeColor)(t),color:t=>(0,Se.themeColor)(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>(0,Se.themeColor)(t,"shift-7",o.get(t)),textUnderlineOffset:(0,Se.themeSpacing)(.72),cursor:"help","&:hover":{color:t=>(0,Se.themeColor)(t,"shift-11",a.get(t)),textDecorationColor:t=>(0,Se.themeColor)(t,"shift-9",a.get(t))}}}}var io=require("@domphy/core"),O=require("@domphy/theme");function wn(r={}){var a;let o=(0,io.toState)((a=r.color)!=null?a:"neutral","color");return{style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),backgroundColor:e=>(0,O.themeColor)(e,"inherit",o.get(e)),color:e=>(0,O.themeColor)(e,"shift-10",o.get(e)),outline:e=>`1px solid ${(0,O.themeColor)(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=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),fontWeight:"600",margin:0},"& > p":{gridArea:"desc",paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),color:e=>(0,O.themeColor)(e,"shift-9",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),color:e=>(0,O.themeColor)(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:(0,O.themeSpacing)(2),paddingBlock:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),borderTop:e=>`1px solid ${(0,O.themeColor)(e,"shift-3",o.get(e))}`}}}}var it=require("@domphy/core"),Ye=require("@domphy/theme");function Tn(r={}){let{direction:o="horizontal",defaultSize:a=50,min:e=10,max:n=90}=r;return{_onSchedule:(t,i)=>{(0,it.merge)(i,{_context:{splitter:{direction:o,size:(0,it.toState)(a),min:e,max:n}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Pn(){return{_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let a=r.domElement,e=o.direction==="horizontal"?"width":"height";a.style[e]=`${o.size.get()}%`,a.style.flexShrink="0",a.style.overflow="auto";let n=o.size.addListener(t=>{a.style[e]=`${t}%`});r.addHook("Remove",n)}}}function Dn(){return{_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let a=r.domElement,e=o.direction==="horizontal";a.style.cursor=e?"col-resize":"row-resize";let n=t=>{t.preventDefault();let i=a.parentElement,l=u=>{let c=i.getBoundingClientRect(),m=e?(u.clientX-c.left)/c.width*100:(u.clientY-c.top)/c.height*100;o.size.set(Math.min(Math.max(m,o.min),o.max))},s=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",s)};a.addEventListener("mousedown",n),r.addHook("Remove",()=>a.removeEventListener("mousedown",n))},style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:r=>(0,Ye.themeColor)(r,"shift-2"),"&:hover":{backgroundColor:r=>(0,Ye.themeColor)(r,"shift-3")},"&::after":{content:'""',borderRadius:(0,Ye.themeSpacing)(999),backgroundColor:r=>(0,Ye.themeColor)(r,"shift-4")}}}}var lt=require("@domphy/core"),$=require("@domphy/theme");function On(){return{_onSchedule:(r,o)=>{(0,lt.merge)(o,{_context:{command:{query:(0,lt.toState)("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function In(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let n=e.getContext("command");if(!n){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,i=()=>n.query.set(t.value);t.addEventListener("input",i),e.addHook("Remove",()=>t.removeEventListener("input",i))},style:{fontFamily:"inherit",fontSize:e=>(0,$.themeSize)(e,"inherit"),paddingInline:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*3),paddingBlock:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*2),border:"none",borderBottom:e=>`1px solid ${(0,$.themeColor)(e,"shift-3",o)}`,outline:"none",color:e=>(0,$.themeColor)(e,"shift-10",o),backgroundColor:e=>(0,$.themeColor)(e,"inherit",o),"&::placeholder":{color:e=>(0,$.themeColor)(e,"shift-7")},"&:focus-visible":{borderBottomColor:e=>(0,$.themeColor)(e,"shift-6",a)}}}}function $n(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{role:"option",_onMount:e=>{var s,u;let n=e.getContext("command");if(!n){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,i=(u=(s=t.textContent)==null?void 0:s.toLowerCase())!=null?u:"",l=n.query.addListener(c=>{t.hidden=c.length>0&&!i.includes(c.toLowerCase())});e.addHook("Remove",l)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>(0,$.themeSize)(e,"inherit"),height:e=>(0,$.themeSpacing)(6+(0,$.themeDensity)(e)*2),paddingInline:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*3),border:"none",outline:"none",color:e=>(0,$.themeColor)(e,"shift-9",o),backgroundColor:e=>(0,$.themeColor)(e,"inherit",o),"&:hover:not([disabled])":{backgroundColor:e=>(0,$.themeColor)(e,"shift-2",o)},"&:focus-visible":{outline:e=>`${(0,$.themeSpacing)(.5)} solid ${(0,$.themeColor)(e,"shift-6",a)}`,outlineOffset:`-${(0,$.themeSpacing)(.5)}`}}}}var kt=require("@domphy/core"),ne=require("@domphy/theme");function zn(r={}){var e,n;let o=(0,kt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,kt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{role:"button",_onInsert:t=>{var c,m;t.tagName!=="button"&&console.warn('"toggle" patch must use button tag');let i=t.getContext("toggleGroup");if(!i){console.warn('"toggle" patch must be used inside a "toggleGroup"');return}let s=((m=(c=t.parent)==null?void 0:c.children.items)!=null?m:[]).filter(p=>p.type==="ElementNode"&&p.attributes.get("role")==="button"),u=t.key!==null&&t.key!==void 0?String(t.key):String(s.findIndex(p=>p===t));t.attributes.set("ariaPressed",p=>{let h=i.value.get(p);return Array.isArray(h)?h.includes(u):h===u}),t.addEvent("click",()=>{let p=i.value.get();if(i.multiple){let h=Array.isArray(p)?[...p]:[];i.value.set(h.includes(u)?h.filter(f=>f!==u):[...h,u])}else i.value.set(p===u?"":u)})},style:{cursor:"pointer",fontSize:t=>(0,ne.themeSize)(t,"inherit"),height:(0,ne.themeSpacing)(6),paddingBlock:(0,ne.themeSpacing)(1),paddingInline:(0,ne.themeSpacing)(2),border:"none",borderRadius:(0,ne.themeSpacing)(1),color:t=>(0,ne.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,ne.themeColor)(t,"inherit",o.get(t)),transition:"background-color 300ms ease","&:hover:not([disabled])":{backgroundColor:t=>(0,ne.themeColor)(t,"shift-2",o.get(t))},"&[aria-pressed=true]":{backgroundColor:t=>(0,ne.themeColor)(t,"shift-3",a.get(t)),color:t=>(0,ne.themeColor)(t,"shift-12",a.get(t))},"&:focus-visible":{outline:t=>`${(0,ne.themeSpacing)(.5)} solid ${(0,ne.themeColor)(t,"shift-6",a.get(t))}`,outlineOffset:`-${(0,ne.themeSpacing)(.5)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var lo=require("@domphy/core"),Ce=require("@domphy/theme");function Vn(r={}){var e;let{multiple:o=!1,color:a="neutral"}=r;return{role:"group",_context:{toggleGroup:{value:(0,lo.toState)((e=r.value)!=null?e:o?[]:""),multiple:o}},style:{display:"flex",paddingBlock:(0,Ce.themeSpacing)(1),paddingInline:(0,Ce.themeSpacing)(1),gap:(0,Ce.themeSpacing)(1),borderRadius:(0,Ce.themeSpacing)(2),fontSize:n=>(0,Ce.themeSize)(n,"inherit"),backgroundColor:n=>(0,Ce.themeColor)(n,"inherit",a),outline:n=>`1px solid ${(0,Ce.themeColor)(n,"shift-3",a)}`,outlineOffset:"-1px"}}}var wt=require("@domphy/theme");function Mn(){return{style:{display:"flex",alignItems:"center",gap:(0,wt.themeSpacing)(2),"& > *":{minWidth:(0,wt.themeSpacing)(9)+"!important"}},_onMount:r=>{let o=r.domElement,a=()=>Array.from(o.querySelectorAll("input")),e=i=>{let l=a(),s=i.target,u=l.indexOf(s);s.value&&u<l.length-1&&l[u+1].focus()},n=i=>{let l=a(),s=i.target,u=l.indexOf(s);i.key==="Backspace"&&!s.value&&u>0&&l[u-1].focus(),i.key==="ArrowLeft"&&u>0&&l[u-1].focus(),i.key==="ArrowRight"&&u<l.length-1&&l[u+1].focus()},t=i=>{var m,p,h;i.preventDefault();let l=(p=(m=i.clipboardData)==null?void 0:m.getData("text"))!=null?p:"",s=a(),u=s.indexOf(i.target);[...l].forEach((f,k)=>{s[u+k]&&(s[u+k].value=f)});let c=Math.min(u+l.length-1,s.length-1);(h=s[c])==null||h.focus()};o.addEventListener("input",e),o.addEventListener("keydown",n),o.addEventListener("paste",t),r.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",n),o.removeEventListener("paste",t)})}}}var so=require("@domphy/core"),le=require("@domphy/theme");function Rn(r={}){var a;let o=(0,so.toState)((a=r.color)!=null?a:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:(0,le.themeSpacing)(3),paddingBlock:e=>(0,le.themeSpacing)((0,le.themeDensity)(e)*2),paddingInline:e=>(0,le.themeSpacing)((0,le.themeDensity)(e)*4),boxShadow:e=>`inset ${(0,le.themeSpacing)(1)} 0 0 0 ${(0,le.themeColor)(e,"shift-8",o.get(e))}`,backgroundColor:e=>(0,le.themeColor)(e,"inherit",o.get(e)),color:e=>(0,le.themeColor)(e,"shift-10",o.get(e)),fontSize:e=>(0,le.themeSize)(e,"inherit")}}}var co=require("@domphy/core"),Me=require("@domphy/theme");function _n(r={}){var a;let o=(0,co.toState)((a=r.color)!=null?a:"primary","color");return{dataTone:"shift-2",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:(0,Me.themeSpacing)(9),height:(0,Me.themeSpacing)(9),fontSize:e=>(0,Me.themeSize)(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>(0,Me.themeColor)(e,"inherit",o.get(e)),color:e=>(0,Me.themeColor)(e,"shift-11",o.get(e)),"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}var Tt=require("@domphy/core"),Pe=require("@domphy/theme");function Ln(r={}){var n;let{label:o=999}=r,a=(0,Tt.toState)(o),e=(0,Tt.toState)((n=r.color)!=null?n:"danger","color");return{style:{position:"relative","&::after":{content:t=>`"${a.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:(0,Pe.themeSpacing)(1),minWidth:(0,Pe.themeSpacing)(6),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>(0,Pe.themeSize)(t,"decrease-1"),borderRadius:(0,Pe.themeSpacing)(999),backgroundColor:t=>(0,Pe.themeColor)(t,"shift-9",e.get(t)),color:t=>(0,Pe.themeColor)(t,"shift-0",e.get(t))}}}}var mo=require("@domphy/core"),ge=require("@domphy/theme");function Nn(r={}){var e;let{separator:o="/"}=r,a=(0,mo.toState)((e=r.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=>(0,ge.themeSize)(n,"inherit"),gap:(0,ge.themeSpacing)(1),color:n=>(0,ge.themeColor)(n,"shift-9",a.get(n)),backgroundColor:n=>(0,ge.themeColor)(n,"inherit",a.get(n)),"& > *":{display:"inline-flex",alignItems:"center",color:n=>(0,ge.themeColor)(n,"shift-8",a.get(n))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:n=>(0,ge.themeColor)(n,"shift-4",a.get(n)),paddingInlineStart:(0,ge.themeSpacing)(1)},"& > [aria-current=page]":{color:n=>(0,ge.themeColor)(n,"shift-10",a.get(n)),pointerEvents:"none"}}}}var uo=require("@domphy/core"),he=require("@domphy/theme");function Hn(r={}){var a;let o=(0,uo.toState)((a=r.color)!=null?a:"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=>(0,he.themeSize)(e,"inherit"),paddingInline:(0,he.themeSpacing)(1),border:"none",background:"none",cursor:"pointer",color:e=>(0,he.themeColor)(e,"shift-8",o.get(e)),borderRadius:(0,he.themeSpacing)(1),"&:hover":{color:e=>(0,he.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,he.themeColor)(e,"shift-2",o.get(e))},"&:focus-visible":{outline:e=>`${(0,he.themeSpacing)(.5)} solid ${(0,he.themeColor)(e,"shift-6",o.get(e))}`,outlineOffset:(0,he.themeSpacing)(.5)}}}}var Re=require("@domphy/core"),B=require("@domphy/theme");var ho=require("@domphy/core"),X=require("@domphy/theme"),Bn='<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 Je(r={}){var e;let{removable:o=!1}=r,a=(0,ho.toState)((e=r.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:n=>{let t={span:Bn,onClick:i=>{i.stopPropagation(),n.remove()},style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:(0,X.themeSpacing)(1),width:(0,X.themeSpacing)(4),height:(0,X.themeSpacing)(4),flexShrink:0,"&:hover":{backgroundColor:i=>(0,X.themeColor)(i,"shift-4",a.get(i))}}};o&&n.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:(0,X.themeSpacing)(6),paddingBlock:"0px",borderRadius:(0,X.themeSpacing)(1),paddingInlineStart:(0,X.themeSpacing)(2),paddingInlineEnd:o?(0,X.themeSpacing)(1):(0,X.themeSpacing)(2),gap:(0,X.themeSpacing)(2),fontSize:n=>(0,X.themeSize)(n,"inherit"),backgroundColor:n=>(0,X.themeColor)(n,"inherit",a.get(n)),color:n=>(0,X.themeColor)(n,"shift-9",a.get(n)),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${(0,X.themeColor)(n,"shift-4",a.get(n))}`}}}var st=require("@domphy/core"),ve=require("@domphy/floating");function Ee(r){let{open:o=!1,placement:a}=r,e=null,n=null,t=null,i=null,l=null,s=null,u=!1,c=(0,st.toState)(o),m=()=>{u||!s||(u=!0,l=s.children.insert(r.content))},p=()=>{m(),t&&i&&(n&&n(),n=(0,ve.autoUpdate)(t,i,()=>{(0,ve.computePosition)(t,i,{placement:a.get(),middleware:[(0,ve.offset)(12),(0,ve.flip)(),(0,ve.shift)()],strategy:"fixed"}).then(({x:w,y:oe,placement:W})=>{Object.assign(i.style,{left:`${w}px`,top:`${oe}px`}),a.set(W)})}),c.set(!0))},h=()=>{n&&n(),n=null,c.set(!1)},f=()=>{e&&clearTimeout(e),e=setTimeout(p,100)},k=()=>{e&&clearTimeout(e),e=setTimeout(h,100)},b={style:{position:"fixed",pointerEvents:"auto",visibility:w=>c.get(w)?"visible":"hidden"},_onMount:w=>i=w.domElement,_portal:w=>{let oe=w.domElement.querySelector("#domphy-floating");if(!oe){let W={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};oe=w.children.insert(W).domElement}return oe}};return(0,st.merge)(r.content,b),{show:f,hide:k,anchorPartial:{onKeyDown:w=>w.key==="Escape"&&k(),_onMount:w=>{s=w.getRoot(),t=w.domElement;let oe=W=>{if(!c.get()||!t||!i)return;let U=W.target;!t.contains(U)&&!i.contains(U)&&k()};w.getRoot().domElement.addEventListener("click",oe),w.addHook("BeforeRemove",()=>{e&&clearTimeout(e),n&&(n(),n=null),l&&l.remove(),w.getRoot().domElement.removeEventListener("click",oe)})}}}}function An(r){let{options:o=[],placement:a="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=r,i=(0,Re.toState)(r.value),l=(0,Re.toState)(n),{show:s,hide:u,anchorPartial:c}=Ee({open:l,placement:(0,Re.toState)(a),content:r.content}),m={onClick:()=>!t&&u()};(0,Re.merge)(r.content,m);let p={border:"none",outline:"none",padding:0,margin:0,flex:1,height:(0,B.themeSpacing)(6),marginInlineStart:(0,B.themeSpacing)(2),fontSize:b=>(0,B.themeSize)(b,"inherit"),color:b=>(0,B.themeColor)(b,"shift-9",e),backgroundColor:b=>(0,B.themeColor)(b,"inherit",e)},h;r.input?((0,Re.merge)(r.input,{onFocus:()=>s(),style:p,_key:"combobox-input"}),h=r.input):h={input:null,onFocus:()=>s(),value:b=>(i.get(b),""),style:p,_key:"combobox-input"};let f={div:b=>{let K=i.get(b),w=Array.isArray(K)?K:[K],W=o.filter(U=>w.includes(U.value)).map(U=>({span:U.label,$:[Je({color:e,removable:!0})],_key:U.value,_onRemove:Xe=>{let Ne=i.get(),Ke=(Array.isArray(Ne)?Ne:[Ne]).filter(bt=>bt!==U.value);t?i.set(Ke):i.set(Ke[0])}}));return W.push(h),W},style:{display:"flex",flexWrap:"wrap",gap:(0,B.themeSpacing)(1)}},k={_onInsert:b=>{b.tagName!="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:b=>b.children.insert(f),style:{minWidth:(0,B.themeSpacing)(32),outlineOffset:"-1px",outline:b=>`1px solid ${(0,B.themeColor)(b,"shift-4","neutral")}`,paddingBlock:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),paddingInline:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),borderRadius:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),fontSize:b=>(0,B.themeSize)(b,"inherit"),color:b=>(0,B.themeColor)(b,"shift-9",e),backgroundColor:b=>(0,B.themeColor)(b,"inherit",e)}};return(0,Re.merge)(c,k),c}var po=require("@domphy/core"),ye=require("@domphy/theme");function Pt(r={}){let{placement:o="bottom-end",color:a="neutral",sideOffset:e=(0,ye.themeSpacing)(6),bordered:n=!0}=r,t=(0,po.toState)(o),i={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=c=>{var m;return(m=i[t.get(c)])!=null?m:i["bottom-end"]},s=c=>c.includes("start")?e:c.includes("end")?"auto":"50%",u=c=>c.includes("end")?e:c.includes("start")?"auto":"50%";return{style:{fontSize:c=>(0,ye.themeSize)(c),backgroundColor:c=>(0,ye.themeColor)(c),color:c=>(0,ye.themeColor)(c,"shift-9",a),position:"relative","&::after":{content:'""',position:"absolute",width:(0,ye.themeSpacing)(1.5),height:(0,ye.themeSpacing)(1.5),backgroundColor:c=>(0,ye.themeColor)(c,"inherit",a),borderWidth:n?"1px":"0px",borderColor:c=>(0,ye.themeColor)(c,"inherit",a),borderTopStyle:c=>{let m=l(c);return m.includes("top")||m.includes("right")?"solid":"none"},borderBottomStyle:c=>{let m=l(c);return m.includes("bottom")||m.includes("left")?"solid":"none"},borderLeftStyle:c=>{let m=l(c);return m.includes("top")||m.includes("left")?"solid":"none"},borderRightStyle:c=>{let m=l(c);return m.includes("bottom")||m.includes("right")?"solid":"none"},top:c=>{let m=l(c);return m.includes("top")?0:m.includes("bottom")?"auto":s(m)},right:c=>{let m=l(c);return m.includes("right")?0:m.includes("left")?"auto":u(m)},bottom:c=>{let m=l(c);return m.includes("bottom")?0:m.includes("top")?"auto":u(m)},left:c=>{let m=l(c);return m.includes("left")?0:m.includes("right")?"auto":s(m)},transform:c=>{let m=l(c),p=m.includes("right")||m.includes("end")&&!m.includes("left")?"50%":"-50%",h=m.includes("bottom")||m.includes("end")&&!m.includes("top")?"50%":"-50%";return`translate(${p},${h}) rotate(45deg)`}}}}}var fo=require("@domphy/core"),pe=require("@domphy/theme");function Fn(r={}){var a;let o=(0,fo.toState)((a=r.color)!=null?a:"inherit","color");return{_onInsert:e=>{e.tagName!="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>(0,pe.themeSize)(e,"inherit"),backgroundColor:e=>(0,pe.themeColor)(e,"inherit",o.get(e)),boxShadow:e=>`inset ${(0,pe.themeSpacing)(1)} 0 0 0 ${(0,pe.themeColor)(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>(0,pe.themeSpacing)((0,pe.themeDensity)(e)*2),paddingInline:e=>(0,pe.themeSpacing)((0,pe.themeDensity)(e)*4),margin:0}}}var go=require("@domphy/core"),M=require("@domphy/theme");function Wn(r={}){var a;let o=(0,go.toState)((a=r.color)!=null?a:"primary","color");return{_onInsert:e=>{e.tagName!="button"&&console.warn('"button" primitive patch must use button tag')},style:{appearance:"none",fontSize:e=>(0,M.themeSize)(e,"inherit"),paddingBlock:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),paddingInline:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*3),borderRadius:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:e=>(0,M.themeSpacing)((0,M.themeDensity)(e)*1),userSelect:"none",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e=>`1px solid ${(0,M.themeColor)(e,"shift-4",o.get(e))}`,color:e=>(0,M.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,M.themeColor)(e,"inherit",o.get(e)),"&:hover:not([disabled]):not([aria-busy=true])":{color:e=>(0,M.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,M.themeColor)(e,"shift-2",o.get(e))},"&:focus-visible":{boxShadow:e=>`inset 0 0 0 ${(0,M.themeSpacing)(.5)} ${(0,M.themeColor)(e,"shift-6",o.get(e))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>(0,M.themeColor)(e,"shift-2","neutral"),outline:e=>`1px solid ${(0,M.themeColor)(e,"shift-4","neutral")}`,color:e=>(0,M.themeColor)(e,"shift-8","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var Dt=require("@domphy/core"),z=require("@domphy/theme");function Kn(r={}){var e,n;let o=(0,Dt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Dt.toState)((n=r.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=>(0,z.themeSize)(t,"inherit"),display:"inline-flex",position:"relative",width:(0,z.themeSpacing)(6),height:(0,z.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:(0,z.themeSpacing)(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,z.themeColor)(t,"shift-9",o.get(t)),width:(0,z.themeSpacing)(4),height:(0,z.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,z.themeColor)(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`,backgroundColor:t=>(0,z.themeColor)(t,"shift-8",a.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,z.themeColor)(t,"shift-7",a.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(t,"inherit",a.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`,backgroundColor:t=>(0,z.themeColor)(t,"shift-3",a.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>(0,z.themeColor)(t,"shift-8",a.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>(0,z.themeColor)(t,"shift-7",a.get(t))},"&:focus-visible":{borderRadius:(0,z.themeSpacing)(1.5),outline:t=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,z.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var yo=require("@domphy/core"),De=require("@domphy/theme");function jn(r={}){var a;let o=(0,yo.toState)((a=r.color)!=null?a:"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=>(0,De.themeSize)(e,"inherit"),color:e=>(0,De.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,De.themeColor)(e,"inherit",o.get(e)),height:(0,De.themeSpacing)(6),paddingInline:(0,De.themeSpacing)(1.5),borderRadius:(0,De.themeSpacing)(1)}}}var Ot=require("@domphy/core"),v=require("@domphy/theme");function Yn(r={}){var n,t;let{duration:o=240}=r,a=(0,Ot.toState)((n=r.color)!=null?n:"neutral","color"),e=(0,Ot.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{_onInsert:i=>{i.tagName!="details"&&console.warn('"details" primitive patch must use details tag')},style:{fontSize:i=>(0,v.themeSize)(i,"inherit"),color:i=>(0,v.themeColor)(i,"shift-9",a.get(i)),backgroundColor:i=>(0,v.themeColor)(i,"inherit",a.get(i)),overflow:"hidden","& > summary":{backgroundColor:i=>(0,v.themeColor)(i,"shift-2",a.get(i)),color:i=>(0,v.themeColor)(i,"shift-10",a.get(i)),fontSize:i=>(0,v.themeSize)(i,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:(0,v.themeSpacing)(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*4),height:(0,v.themeSpacing)(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:(0,v.themeSpacing)(2),height:(0,v.themeSpacing)(2),flexShrink:0,marginTop:`-${(0,v.themeSpacing)(.5)}`,borderInlineEnd:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-9",a.get(i))}`,borderBottom:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-9",a.get(i))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:i=>(0,v.themeColor)(i,"shift-3",a.get(i))},"& > summary:focus-visible":{borderRadius:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*2),outlineOffset:`-${(0,v.themeSpacing)(.5)}`,outline:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-6",e.get(i))}`},"& > :not(summary)":{maxHeight:"0px",opacity:0,overflow:"hidden",paddingInline:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:(0,v.themeSpacing)(250),opacity:1,paddingTop:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*1),paddingBottom:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*3)}}}}var bo=require("@domphy/core"),Oe=require("@domphy/theme");function qn(r={}){var a;let o=(0,bo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},style:{display:"grid",gridTemplateColumns:`minmax(${(0,Oe.themeSpacing)(24)}, max-content) 1fr`,columnGap:(0,Oe.themeSpacing)(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>(0,Oe.themeSize)(e,"inherit"),color:e=>(0,Oe.themeColor)(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>(0,Oe.themeSize)(e,"inherit"),color:e=>(0,Oe.themeColor)(e,"shift-9",o.get(e))}}}}var So=require("@domphy/core"),se=require("@domphy/theme");function Gn(r={}){let{color:o="neutral",open:a=!1}=r,e=(0,So.toState)(a);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 i=t.domElement.getBoundingClientRect();n.clientX>=i.left&&n.clientX<=i.right&&n.clientY>=i.top&&n.clientY<=i.bottom||e.set(!1)},onTransitionEnd:(n,t)=>{let i=t.domElement;i.style.opacity==="0"&&(i.close(),document.body.style.overflow="")},_onMount:n=>{let t=n.domElement,i=s=>{s?(t.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{t.style.opacity="1";let u=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');u==null||u.focus()})):t.style.opacity="0"};i(e.get());let l=e.addListener(i);n.addHook("Remove",()=>{l(),document.body.style.overflow=""})},style:{opacity:"0",transition:"opacity 200ms ease",fontSize:n=>(0,se.themeSize)(n,"inherit"),color:n=>(0,se.themeColor)(n,"shift-10",o),backgroundColor:n=>(0,se.themeColor)(n,"inherit",o),border:"none",padding:n=>(0,se.themeSpacing)((0,se.themeDensity)(n)*3),boxShadow:n=>`0 ${(0,se.themeSpacing)(9)} ${(0,se.themeSpacing)(16)} ${(0,se.themeColor)(n,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:n=>(0,se.themeColor)(n,"shift-2","neutral"),opacity:.75}}}}var Co=require("@domphy/core"),ct=require("@domphy/theme");function Un(r={}){var a;let o=(0,Co.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>(0,ct.themeSize)(e,"inherit"),fontStyle:"italic",color:e=>(0,ct.themeColor)(e,"shift-10",o.get(e))}}}var vo=require("@domphy/core"),xe=require("@domphy/theme");function Xn(r={}){var a;let o=(0,vo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:(0,xe.themeSpacing)(2),marginInline:0,marginTop:(0,xe.themeSpacing)(3),marginBottom:(0,xe.themeSpacing)(3),color:e=>(0,xe.themeColor)(e,"shift-9",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:(0,xe.themeSpacing)(2)},"& figcaption":{fontSize:e=>(0,xe.themeSize)(e,"decrease-1"),color:e=>(0,xe.themeColor)(e,"shift-8",o.get(e)),lineHeight:1.45}}}}var Eo=require("@domphy/core"),I=require("@domphy/theme");function Jn(r={}){var n;let{layout:o="horizontal"}=r,a=(0,Eo.toState)((n=r.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=>(0,I.themeSpacing)((0,I.themeDensity)(t)*3),paddingBlock:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*3),border:"none",borderRadius:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*2),fontSize:t=>(0,I.themeSize)(t,"inherit"),backgroundColor:t=>(0,I.themeColor)(t,"inherit",a.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:(0,I.themeSpacing)(4),rowGap:(0,I.themeSpacing)(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>(0,I.themeSize)(t,"inherit"),fontWeight:600,paddingBlock:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*1),borderRadius:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*2),color:t=>(0,I.themeColor)(t,"shift-9",a.get(t)),backgroundColor:t=>(0,I.themeColor)(t,"inherit",a.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?"0px":(0,I.themeSpacing)((0,I.themeDensity)(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(${(0,I.themeSpacing)(2)} * -1)`,fontSize:t=>(0,I.themeSize)(t,"decrease-1"),color:t=>(0,I.themeColor)(t,"shift-9",a.get(t))}}}}var xo=require("@domphy/core"),qe=require("@domphy/theme"),Qn={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function Zn(r={}){var a;let o=(0,xo.toState)((a=r.color)!=null?a:"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=>(0,qe.themeColor)(e,"shift-11",o.get(e)),marginTop:0,marginBottom:(0,qe.themeSpacing)(2),fontSize:e=>{let n=Qn[e.elementNode.tagName]||"inherit";return(0,qe.themeSize)(e,n)}}}}var ko=require("@domphy/core"),Qe=require("@domphy/theme");function er(r={}){var a;let o=(0,ko.toState)((a=r.color)!=null?a:"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:(0,Qe.themeSpacing)(3),marginBottom:(0,Qe.themeSpacing)(3),backgroundColor:e=>(0,Qe.themeColor)(e,"shift-4",o.get(e))}}}var wo=require("@domphy/core"),mt=require("@domphy/theme");function tr(r={}){var a;let o=(0,wo.toState)((a=r.color)!=null?a:"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:(0,mt.themeSpacing)(2),backgroundColor:e=>(0,mt.themeColor)(e,"inherit",o.get(e))}}}var To=require("@domphy/core"),He=require("@domphy/theme");function or(r={}){var a;let o=(0,To.toState)((a=r.color)!=null?a:"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:(0,He.themeSpacing)(4),height:(0,He.themeSpacing)(4),flexShrink:"0",fontSize:e=>(0,He.themeSize)(e),backgroundColor:"transparent",color:e=>(0,He.themeColor)(e,"shift-9",o.get(e))}}}var It=require("@domphy/core"),J=require("@domphy/theme");function nr(r={}){var e,n;let o=(0,It.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,It.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"color",_onSchedule:(t,i)=>{t.tagName!="input"&&console.warn('"inputColor" primitive patch must use input tag'),i.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:t=>(0,J.themeSize)(t,"inherit"),paddingBlock:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1),paddingInline:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1),blockSize:t=>(0,J.themeSpacing)(6+(0,J.themeDensity)(t)*2),inlineSize:t=>(0,J.themeSpacing)(6+(0,J.themeDensity)(t)*2),backgroundColor:"transparent","&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1)},"&:hover:not([disabled]), &:focus-visible":{},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,J.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,J.themeColor)(t,"shift-4","neutral")}`}}}}var $t=require("@domphy/core"),A=require("@domphy/theme");function rr(r={}){var n,t;let{mode:o="datetime-local"}=r,a=(0,$t.toState)((n=r.color)!=null?n:"neutral","color"),e=(0,$t.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(i,l)=>{i.tagName!="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),l.type=o},style:{fontFamily:"inherit",fontSize:i=>(0,A.themeSize)(i,"inherit"),lineHeight:"inherit",color:i=>(0,A.themeColor)(i,"shift-9",a.get(i)),backgroundColor:i=>(0,A.themeColor)(i,"inherit",a.get(i)),border:"none",outlineOffset:"-1px",outline:i=>`1px solid ${(0,A.themeColor)(i,"shift-4",a.get(i))}`,borderRadius:i=>(0,A.themeSpacing)((0,A.themeDensity)(i)*1),paddingInline:i=>(0,A.themeSpacing)((0,A.themeDensity)(i)*3),height:i=>(0,A.themeSpacing)(6+(0,A.themeDensity)(i)*2),"&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:i=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(i,"shift-6",e.get(i))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:i=>(0,A.themeColor)(i,"shift-8","neutral"),backgroundColor:i=>(0,A.themeColor)(i,"shift-2","neutral"),outline:i=>`1px solid ${(0,A.themeColor)(i,"shift-4","neutral")}`},"&:invalid":{outline:i=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(i,"shift-6","error")}`}}}}var fe=require("@domphy/core"),y=require("@domphy/theme");var q=r=>new Date(r.getFullYear(),r.getMonth(),r.getDate()),Be=(r,o)=>new Date(r.getFullYear(),r.getMonth(),r.getDate()+o),zt=(r,o)=>new Date(r.getFullYear(),r.getMonth()+o,r.getDate()),Ze=(r,o)=>!!r&&!!o&&r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate(),Vt=r=>`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`,Mt=(r,o)=>Be(r,-((r.getDay()-o+7)%7));function ar(r){var o,a;try{let e=new Intl.Locale(r),n=(a=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?a:e.weekInfo;if(n!=null&&n.firstDay)return n.firstDay%7}catch(e){}return 0}function ir(r={}){var Qt,Zt,eo,to;let{mode:o="single",time:a=!1,min:e,max:n,disabledDate:t,locale:i=typeof navigator!="undefined"?navigator.language:"en-US",format:l,onChange:s}=r,u=(Qt=r.weekStartsOn)!=null?Qt:ar(i),c=(0,fe.toState)((Zt=r.accentColor)!=null?Zt:"primary","accentColor"),m=(0,fe.toState)((eo=r.placement)!=null?eo:"bottom-start"),p=(0,fe.toState)((to=r.value)!=null?to:o==="range"?[null,null]:null);s&&p.addListener(d=>s(d));let h=(()=>{let d=p.get(),g=o==="range"?d==null?void 0:d[0]:d;return g instanceof Date?g:new Date})(),f=(0,fe.toState)(h.getFullYear(),"viewYear"),k=(0,fe.toState)(h.getMonth(),"viewMonth"),b=(0,fe.toState)(q(h),"focused"),K=(0,fe.toState)(null,"hovered"),w=(0,fe.toState)(h.getHours(),"hour"),oe=(0,fe.toState)(h.getMinutes(),"minute"),W=null,U=new Intl.DateTimeFormat(i,at({dateStyle:"medium"},a?{timeStyle:"short"}:{})),Xe=new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}),Ne=new Intl.DateTimeFormat(i,{weekday:"short"}),qt=new Intl.DateTimeFormat(i,{dateStyle:"full"}),Ke=d=>d?U.format(d):"",bt=d=>{if(l)return l(d);if(o==="range"){let[g,S]=d!=null?d:[null,null];return g?`${Ke(g)} \u2013 ${Ke(S)}`:""}return Ke(d)},en=Array.from({length:7},(d,g)=>Ne.format(new Date(2023,0,1+(g+u)%7))),Gt=d=>!!e&&q(d)<q(e)||!!n&&q(d)>q(n)||!!t&&t(d),Ve=d=>{if(!a)return q(d);let g=q(d);return g.setHours(w.get(),oe.get(),0,0),g},Ut=d=>{var C;if(Gt(d))return;if(o==="single"){p.set(Ve(d)),a||vt();return}let[g,S]=(C=p.get())!=null?C:[null,null];!g||g&&S?p.set([Ve(d),null]):q(d)<q(g)?(p.set([Ve(d),Ve(g)]),a||vt()):(p.set([g,Ve(d)]),a||vt())},tn=()=>{var d;if(a)if(o==="single"){let g=p.get();g&&p.set(Ve(g))}else{let[g,S]=(d=p.get())!=null?d:[null,null];p.set([g&&Ve(g),S&&Ve(S)])}},on=(d,g)=>{var je;if(o!=="range")return!1;let[S,C]=(je=p.get(g))!=null?je:[null,null],R=C!=null?C:K.get(g);if(!S||!R)return!1;let E=q(S)<=q(R)?S:R,de=q(S)<=q(R)?R:S,ie=q(d);return ie>=q(E)&&ie<=q(de)},nn=(d,g)=>{let S=p.get(g);if(o==="range"){let[C,R]=S!=null?S:[null,null];return Ze(d,C)||Ze(d,R)}return Ze(d,S)},nt=d=>{f.set(d.getFullYear()),k.set(d.getMonth())},Xt=d=>{let g=zt(new Date(f.get(),k.get(),1),d);nt(g)},Jt=d=>f.set(f.get()+d),St=()=>{setTimeout(()=>{var d;(d=W==null?void 0:W.querySelector(`[data-date="${Vt(b.get())}"]`))==null||d.focus()},0)},rn=mn(),{show:an,hide:ln,anchorPartial:Ct}=Ee({open:!1,placement:m,content:rn});function vt(){ln()}Ct.onClick=()=>{};let sn={type:"text",readonly:!0,value:d=>bt(p.get(d)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:()=>{Et()},onFocus:()=>{Et()},onKeyDown:d=>{let g=d.key;(g==="ArrowDown"||g==="Enter")&&(d.preventDefault(),Et())}};function Et(){var g;let d=(g=cn())!=null?g:new Date;b.set(q(d)),nt(d),an(),St()}function cn(){var g;let d=p.get();return o==="range"?(g=d==null?void 0:d[0])!=null?g:null:d!=null?d:null}return(0,fe.merge)(Ct,sn),Ct;function mn(){let d=(E,de,ie)=>({button:E,type:"button",ariaLabel:de,onClick:ie,style:lr()}),g={div:[d("\xAB","Previous year",()=>Jt(-1)),d("\u2039","Previous month",()=>Xt(-1)),{div:E=>Xe.format(new Date(f.get(E),k.get(E),1)),ariaLive:"polite",style:{flex:"1",textAlign:"center",fontWeight:"600",fontSize:E=>(0,y.themeSize)(E)}},d("\u203A","Next month",()=>Xt(1)),d("\xBB","Next year",()=>Jt(1))],style:{display:"flex",alignItems:"center",gap:(0,y.themeSpacing)(1),marginBottom:(0,y.themeSpacing)(2)}},S={div:en.map((E,de)=>({div:E,style:{textAlign:"center",fontSize:ie=>(0,y.themeSize)(ie,"decrease-1"),fontWeight:"600",color:ie=>(0,y.themeColor)(ie,"shift-7"),paddingBlock:(0,y.themeSpacing)(1)},_key:de})),role:"row",style:Po()},C={div:E=>un(E),role:"grid",ariaLabel:"Calendar",onKeyDown:fn,onMouseLeave:()=>o==="range"&&K.set(null),style:{display:"flex",flexDirection:"column",gap:(0,y.themeSpacing)(.5)}},R=[g,S,C];return a&&R.push(hn()),R.push(pn()),{div:R,role:"dialog",ariaModal:"false",_onMount:E=>{W=E.domElement},style:{minWidth:(0,y.themeSpacing)(70),padding:(0,y.themeSpacing)(3),borderRadius:(0,y.themeSpacing)(2),backgroundColor:E=>(0,y.themeColor)(E,"base"),color:E=>(0,y.themeColor)(E,"shift-10"),border:E=>`1px solid ${(0,y.themeColor)(E,"shift-4")}`,boxShadow:"0 8px 24px rgba(0,0,0,0.18)"}}}function un(d){let g=new Date(f.get(d),k.get(d),1),S=k.get(d),C=Mt(g,u),R=[];for(let E=0;E<6;E++){let de=[];for(let ie=0;ie<7;ie++){let je=Be(C,E*7+ie);de.push(dn(je,S,d))}R.push({div:de,role:"row",style:Po(),_key:E})}return R}function dn(d,g,S){let C=Gt(d),R=nn(d,S),E=on(d,S),de=d.getMonth()!==g,ie=Ze(d,b.get(S)),je=Ze(d,new Date);return{button:String(d.getDate()),type:"button",role:"gridcell",tabIndex:ie?0:-1,ariaSelected:R,ariaDisabled:C,disabled:C,ariaLabel:qt.format(d),dataDate:Vt(d),onClick:()=>Ut(d),onMouseEnter:()=>o==="range"&&K.set(d),style:{appearance:"none",border:"none",cursor:C?"not-allowed":"pointer",aspectRatio:"1",borderRadius:(0,y.themeSpacing)(1),fontSize:H=>(0,y.themeSize)(H),fontFamily:"inherit",opacity:C?.35:de?.5:1,backgroundColor:H=>R?(0,y.themeColor)(H,"shift-7",c.get(H)):E?(0,y.themeColor)(H,"shift-2",c.get(H)):"transparent",color:H=>R?(0,y.themeColor)(H,"shift-0",c.get(H)):(0,y.themeColor)(H,"shift-9"),outline:je?H=>`1px solid ${(0,y.themeColor)(H,"shift-6",c.get(H))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:H=>R?(0,y.themeColor)(H,"shift-7",c.get(H)):(0,y.themeColor)(H,"shift-3",c.get(H))},"&:focus-visible":{outline:H=>`2px solid ${(0,y.themeColor)(H,"shift-6",c.get(H))}`}},_key:Vt(d)}}function hn(){let d=(g,S,C)=>({select:Array.from({length:g},(R,E)=>({option:String(E).padStart(2,"0"),value:String(E),selected:de=>S.get(de)===E,_key:E})),ariaLabel:C,onChange:R=>{S.set(Number(R.target.value)),tn()},style:sr()});return{div:[d(24,w,"Hour"),{span:":",style:{fontWeight:"600"}},d(60,oe,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:(0,y.themeSpacing)(1),marginTop:(0,y.themeSpacing)(3)}}}function pn(){let d=(g,S)=>({button:g,type:"button",onClick:S,style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:C=>(0,y.themeSize)(C,"decrease-1"),color:C=>(0,y.themeColor)(C,"shift-8",c.get(C)),padding:(0,y.themeSpacing)(1)}});return{div:[d("Today",()=>{let g=new Date;b.set(q(g)),nt(g),St()}),d("Clear",()=>{p.set(o==="range"?[null,null]:null),K.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:(0,y.themeSpacing)(2),paddingTop:(0,y.themeSpacing)(2),borderTop:g=>`1px solid ${(0,y.themeColor)(g,"shift-3")}`}}}function fn(d){let g=d,S=b.get(),C=null;switch(g.key){case"ArrowLeft":C=Be(S,-1);break;case"ArrowRight":C=Be(S,1);break;case"ArrowUp":C=Be(S,-7);break;case"ArrowDown":C=Be(S,7);break;case"Home":C=Mt(S,u);break;case"End":C=Be(Mt(S,u),6);break;case"PageUp":C=zt(S,g.shiftKey?-12:-1);break;case"PageDown":C=zt(S,g.shiftKey?12:1);break;case"Enter":case" ":g.preventDefault(),Ut(S);return;default:return}g.preventDefault(),b.set(C),nt(C),St()}}function Po(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:(0,y.themeSpacing)(.5)}}function lr(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:r=>(0,y.themeSize)(r),color:r=>(0,y.themeColor)(r,"shift-8"),width:(0,y.themeSpacing)(7),height:(0,y.themeSpacing)(7),borderRadius:(0,y.themeSpacing)(1),"&:hover":{backgroundColor:r=>(0,y.themeColor)(r,"shift-3")}}}function sr(){return{fontFamily:"inherit",fontSize:r=>(0,y.themeSize)(r),padding:(0,y.themeSpacing)(1),borderRadius:(0,y.themeSpacing)(1),border:r=>`1px solid ${(0,y.themeColor)(r,"shift-4")}`,backgroundColor:r=>(0,y.themeColor)(r,"base"),color:r=>(0,y.themeColor)(r,"shift-9")}}var Rt=require("@domphy/core"),T=require("@domphy/theme");function cr(r={}){var e,n;let o=(0,Rt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Rt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"file",_onSchedule:(t,i)=>{t.tagName!="input"&&console.warn('"inputFile" primitive patch must use input tag'),i.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>(0,T.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,T.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,T.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,T.themeColor)(t,"shift-4",o.get(t))}`,borderRadius:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)*1),height:t=>(0,T.themeSpacing)(6+(0,T.themeDensity)(t)*2),paddingInline:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)*1),"&::-webkit-file-upload-button":{marginTop:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:(0,T.themeSpacing)(1),height:(0,T.themeSpacing)(6),paddingInline:(0,T.themeSpacing)(2),cursor:"pointer",color:t=>(0,T.themeColor)(t,"shift-11",o.get(t)),backgroundColor:t=>(0,T.themeColor)(t,"shift-1",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${(0,T.themeSpacing)(.5)} solid ${(0,T.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>(0,T.themeColor)(t,"shift-8","neutral"),outline:t=>`1px solid ${(0,T.themeColor)(t,"shift-4","neutral")}`,backgroundColor:t=>(0,T.themeColor)(t,"shift-1","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>(0,T.themeColor)(t,"shift-8","neutral"),backgroundColor:t=>(0,T.themeColor)(t,"shift-3","neutral")}}}}var _t=require("@domphy/core"),F=require("@domphy/theme");function mr(r={}){var e,n;let o=(0,_t.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,_t.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"search",_onSchedule:(t,i)=>{t.tagName!="input"&&console.warn('"inputSearch" primitive patch must use input tag'),i.type="search"},style:{fontFamily:"inherit",fontSize:t=>(0,F.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,F.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,F.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,F.themeColor)(t,"shift-4",o.get(t))}`,borderRadius:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*1),minWidth:(0,F.themeSpacing)(32),paddingInline:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*3),paddingBlock:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*1),"&::placeholder":{color:t=>(0,F.themeColor)(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=>`${(0,F.themeSpacing)(.5)} solid ${(0,F.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,F.themeColor)(t,"shift-8","neutral"),backgroundColor:t=>(0,F.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,F.themeColor)(t,"shift-4","neutral")}`}}}}var Lt=require("@domphy/core"),P=require("@domphy/theme");function ur(r={}){var e,n;let o=(0,Lt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Lt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"text",_onSchedule:(t,i)=>{t.tagName!="input"&&console.warn('"inputText" primitive patch must use input tag and text type'),i.type="text"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,P.themeSpacing)(10),paddingInline:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*3),paddingBlock:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*1),borderRadius:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*1),fontSize:t=>(0,P.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,P.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,P.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,P.themeColor)(t,"inherit",o.get(t)),"&::placeholder":{color:t=>(0,P.themeColor)(t,"shift-7")},"&:not(:placeholder-shown)":{color:t=>(0,P.themeColor)(t,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,P.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,P.themeColor)(t,"shift-4","neutral")}`,color:t=>(0,P.themeColor)(t,"shift-8","neutral")},"&:invalid:not(:placeholder-shown)":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","error")}`},"&[data-status=error]":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","error")}`},"&[data-status=warning]":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","warning")}`}}}}var Nt=require("@domphy/core"),Q=require("@domphy/theme");function dr(r={}){var e,n;let o=(0,Nt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Nt.toState)((n=r.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:(0,Q.themeSpacing)(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:(0,Q.themeSpacing)(1.5),borderRadius:(0,Q.themeSpacing)(999),backgroundColor:t=>(0,Q.themeColor)(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:(0,Q.themeSpacing)(4),height:(0,Q.themeSpacing)(4),borderRadius:(0,Q.themeSpacing)(999),border:"none",marginTop:`calc((${(0,Q.themeSpacing)(1.5)} - ${(0,Q.themeSpacing)(4)}) / 2)`,backgroundColor:t=>(0,Q.themeColor)(t,"shift-9",a.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>(0,Q.themeColor)(t,"shift-10",a.get(t))},"&:focus-visible":{outline:t=>`${(0,Q.themeSpacing)(.5)} solid ${(0,Q.themeColor)(t,"shift-6",a.get(t))}`,outlineOffset:(0,Q.themeSpacing)(1),borderRadius:(0,Q.themeSpacing)(2)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var Ht=require("@domphy/core"),_=require("@domphy/theme");function hr(r={}){var e,n;let o=(0,Ht.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Ht.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"number",_onSchedule:(t,i)=>{t.tagName!="input"&&console.warn('"inputNumber" primitive patch must use input tag'),i.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,_.themeSpacing)(10),paddingInlineStart:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*3),paddingInlineEnd:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1.5),paddingBlock:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1),borderRadius:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1),fontSize:t=>(0,_.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,_.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,_.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,_.themeColor)(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=>`${(0,_.themeSpacing)(.5)} solid ${(0,_.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,_.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,_.themeColor)(t,"shift-4","neutral")}`,color:t=>(0,_.themeColor)(t,"shift-8","neutral")}}}}var Do=require("@domphy/core"),ke=require("@domphy/theme");function pr(r={}){var a;let o=(0,Do.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>(0,ke.themeSize)(e,"inherit"),color:e=>(0,ke.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,ke.themeColor)(e,"inherit",o.get(e)),paddingBlock:(0,ke.themeSpacing)(.5),paddingInline:(0,ke.themeSpacing)(1.5),borderRadius:(0,ke.themeSpacing)(1),outline:e=>`1px solid ${(0,ke.themeColor)(e,"shift-4",o.get(e))}`}}}var Bt=require("@domphy/core"),_e=require("@domphy/theme");function fr(r={}){var e,n;let o=(0,Bt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Bt.toState)((n=r.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:(0,_e.themeSpacing)(2),fontSize:t=>(0,_e.themeSize)(t,"inherit"),color:t=>(0,_e.themeColor)(t,"shift-9",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>(0,_e.themeColor)(t,"shift-10",a.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>(0,_e.themeColor)(t,"shift-8","neutral")}}}}var At=require("@domphy/core"),ce=require("@domphy/theme");function gr(r={}){var e,n;let o=(0,At.toState)((e=r.color)!=null?e:"primary","color"),a=(0,At.toState)((n=r.accentColor)!=null?n:"secondary","accentColor");return{_onInsert:t=>{t.tagName!="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>(0,ce.themeSize)(t,"inherit"),backgroundColor:t=>(0,ce.themeColor)(t),color:t=>(0,ce.themeColor)(t,"shift-9",o.get(t)),textDecoration:"none","&:visited":{color:t=>(0,ce.themeColor)(t,"shift-9",a.get(t))},"&:hover:not([disabled])":{color:t=>(0,ce.themeColor)(t,"shift-10",o.get(t)),textDecoration:"underline"},"&:focus-visible":{borderRadius:(0,ce.themeSpacing)(1),outlineOffset:(0,ce.themeSpacing)(1),outline:t=>`${(0,ce.themeSpacing)(.5)} solid ${(0,ce.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,ce.themeColor)(t,"shift-8","neutral")}}}}var Oo=require("@domphy/core"),Ie=require("@domphy/theme");function yr(r={}){var a;let o=(0,Oo.toState)((a=r.accentColor)!=null?a:"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=>(0,Ie.themeSize)(e,"inherit"),color:e=>(0,Ie.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,Ie.themeColor)(e,"inherit",o.get(e)),height:(0,Ie.themeSpacing)(6),borderRadius:(0,Ie.themeSpacing)(1),paddingInline:(0,Ie.themeSpacing)(1.5)}}}var Io=require("@domphy/core"),ut=require("@domphy/theme");function br(r={}){var a;let o=(0,Io.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>(0,ut.themeSize)(e,"inherit"),color:e=>(0,ut.themeColor)(e,"shift-9",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}var $o=require("@domphy/core"),me=require("@domphy/theme");function Sr(r={}){var a;let o=(0,$o.toState)((a=r.color)!=null?a:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>(0,me.themeSize)(e,"inherit"),color:e=>(0,me.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,me.themeColor)(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*2),paddingInline:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*3),borderRadius:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*2)}}}var Ft=require("@domphy/core"),$e=require("@domphy/theme");function Cr(r={}){var e,n;let o=(0,Ft.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Ft.toState)((n=r.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:(0,$e.themeSpacing)(2),border:0,borderRadius:(0,$e.themeSpacing)(999),overflow:"hidden",backgroundColor:t=>(0,$e.themeColor)(t,"shift-3",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>(0,$e.themeColor)(t,"shift-3",o.get(t)),borderRadius:(0,$e.themeSpacing)(999)},"&::-webkit-progress-value":{backgroundColor:t=>(0,$e.themeColor)(t,"shift-9",a.get(t)),borderRadius:(0,$e.themeSpacing)(999),transition:"width 220ms ease"}}}}var Wt=require("@domphy/core"),Z=require("@domphy/theme");function vr(r={}){var e,n;let o=(0,Wt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Wt.toState)((n=r.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=>(0,Z.themeSize)(t,"inherit"),appearance:"none",display:"inline-flex",position:"relative",width:(0,Z.themeSpacing)(6),height:(0,Z.themeSpacing)(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 ${(0,Z.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,Z.themeColor)(t,"shift-9",o.get(t)),width:(0,Z.themeSpacing)(4),height:(0,Z.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,Z.themeColor)(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,Z.themeColor)(t,"shift-6",a.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>(0,Z.themeColor)(t,"shift-8",a.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,Z.themeColor)(t,"shift-7",a.get(t))},"&:focus-visible":{borderRadius:"50%",outline:t=>`${(0,Z.themeSpacing)(.5)} solid ${(0,Z.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,Z.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var x=require("@domphy/theme");function Er(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{_onInsert:e=>{e.tagName!="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>(0,x.themeSize)(e,"inherit"),lineHeight:"inherit",color:e=>(0,x.themeColor)(e,"shift-9",o),backgroundColor:e=>(0,x.themeColor)(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${(0,x.themeColor)(e,"shift-4",o)}`,borderRadius:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*1),paddingBlock:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*1),paddingLeft:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*3),paddingRight:e=>(0,x.themeSpacing)((0,x.themeDensity)(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="${(0,x.themeColorToken)(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 ${(0,x.themeSpacing)(2)} center`,backgroundSize:`${(0,x.themeSpacing)(2.5)} ${(0,x.themeSpacing)(1.5)}`,"&:not([multiple])":{height:e=>(0,x.themeSpacing)(6+(0,x.themeDensity)(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`${(0,x.themeSpacing)(.5)} solid ${(0,x.themeColor)(e,"shift-5",a)}`},"&:focus-visible":{outline:e=>`${(0,x.themeSpacing)(.5)} solid ${(0,x.themeColor)(e,"shift-6",a)}`},"& optgroup":{color:e=>(0,x.themeColor)(e,"shift-11",o)},"& option[disabled]":{color:e=>(0,x.themeColor)(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>(0,x.themeColor)(e,"shift-8","neutral"),outline:e=>`1px solid ${(0,x.themeColor)(e,"shift-4","neutral")}`,backgroundColor:e=>(0,x.themeColor)(e,"shift-2","neutral")}}}}var dt=require("@domphy/core"),Le=require("@domphy/theme");function xr(r={}){var n;let o=(0,dt.toState)((n=r.color)!=null?n:"neutral","color"),a={"0%,100%":{opacity:1},"50%":{opacity:.4}},e=(0,dt.hashString)(JSON.stringify(a));return{ariaHidden:"true",dataTone:"shift-2",style:{fontSize:t=>(0,Le.themeSize)(t),color:t=>(0,Le.themeColor)(t,"shift-9",o.get(t)),height:(0,Le.themeSpacing)(6),display:"block",borderRadius:(0,Le.themeSpacing)(1),backgroundColor:t=>(0,Le.themeColor)(t,"inherit",o.get(t)),animation:`${e} 1.5s ease-in-out infinite`,[`@keyframes ${e}`]:a}}}var ht=require("@domphy/core"),be=require("@domphy/theme"),Vo={to:{transform:"rotate(360deg)"}},zo=(0,ht.hashString)(JSON.stringify(Vo));function kr(r={}){var a;let o=(0,ht.toState)((a=r.color)!=null?a:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>(0,be.themeSize)(e),backgroundColor:e=>(0,be.themeColor)(e),color:e=>(0,be.themeColor)(e,"shift-9",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:(0,be.themeSpacing)(6),height:(0,be.themeSpacing)(6),borderRadius:"50%",border:e=>`${(0,be.themeSpacing)(.5)} solid ${(0,be.themeColor)(e,"shift-4",o.get(e))}`,borderTopColor:e=>(0,be.themeColor)(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${zo} 0.7s linear infinite`,[`@keyframes ${zo}`]:Vo}}}var Mo=require("@domphy/core"),we=require("@domphy/theme");function wr(r={}){var i;let{color:o="neutral",multiple:a=!1}=r,e=(0,Mo.toState)((i=r.value)!=null?i:a?[]:null),n={div:l=>{let s=e.get(l);return(Array.isArray(s)?s:[s]).map(c=>({input:null,name:r.name,value:c||""}))},hidden:!0};return{dataTone:"shift-17",_context:{select:{value:e,multiple:a}},_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=>(0,we.themeSpacing)((0,we.themeDensity)(l)*2),paddingInline:l=>(0,we.themeSpacing)((0,we.themeDensity)(l)*2),fontSize:l=>(0,we.themeSize)(l,"inherit"),backgroundColor:l=>(0,we.themeColor)(l,"inherit",o)}}}var ee=require("@domphy/theme");function Tr(r={}){let{accentColor:o="primary",color:a="neutral",value:e=null}=r;return{role:"option",_onInit:t=>{t.tagName!="div"&&console.warn('"selectItem" patch must use div tag');let i=t.getContext("select");if(i){let l=i.value;t.attributes.set("ariaSelected",s=>{let u=l.get(s);return i.multiple?u.includes(e):u==e}),t.addEvent("click",()=>{let s=l.get();i.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=>(0,ee.themeSize)(t,"inherit"),height:t=>(0,ee.themeSpacing)(6+(0,ee.themeDensity)(t)*2),paddingInline:t=>(0,ee.themeSpacing)((0,ee.themeDensity)(t)*3),border:"none",outline:"none",color:t=>(0,ee.themeColor)(t,"shift-9",a),backgroundColor:t=>(0,ee.themeColor)(t,"inherit",a),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>(0,ee.themeColor)(t,"shift-2",a)},"&[aria-selected=true]":{backgroundColor:t=>(0,ee.themeColor)(t,"shift-6",o),color:t=>(0,ee.themeColor)(t,"shift-11")},"&:focus-visible":{outline:t=>`${(0,ee.themeSpacing)(.5)} solid ${(0,ee.themeColor)(t,"shift-6",o)}`,outlineOffset:`-${(0,ee.themeSpacing)(.5)}`}}}}var Ae=require("@domphy/core"),re=require("@domphy/theme");function Pr(r){let{options:o=[],placement:a="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=r,i=(0,Ae.toState)(r.value),l=(0,Ae.toState)(n),{show:s,hide:u,anchorPartial:c}=Ee({open:l,placement:(0,Ae.toState)(a),content:r.content}),m={onClick:()=>!t&&u()};(0,Ae.merge)(r.content,m);let p={div:f=>{let k=i.get(f),b=Array.isArray(k)?k:[k];return o.filter(w=>b.includes(w.value)).map(w=>({span:w.label,$:[Je({color:e,removable:t})],_key:w.value,_onRemove:oe=>{let W=i.get(),Xe=(Array.isArray(W)?W:[W]).filter(Ne=>Ne!==w.value);t?i.set(Xe):i.set(Xe[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:(0,re.themeSpacing)(1),flex:1}},h={_onInsert:f=>{f.tagName!="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:f=>f.children.insert(p),onClick:()=>l.get()?u():s(),style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:f=>(0,re.themeSpacing)(6+(0,re.themeDensity)(f)*2),minWidth:(0,re.themeSpacing)(32),outlineOffset:"-1px",outline:f=>`1px solid ${(0,re.themeColor)(f,"shift-4","neutral")}`,paddingInline:f=>(0,re.themeSpacing)((0,re.themeDensity)(f)*2),borderRadius:f=>(0,re.themeSpacing)((0,re.themeDensity)(f)*1),fontSize:f=>(0,re.themeSize)(f,"inherit"),color:f=>(0,re.themeColor)(f,"shift-9",e),backgroundColor:f=>(0,re.themeColor)(f,"inherit",e)}};return(0,Ae.merge)(c,h),c}var Ro=require("@domphy/core"),te=require("@domphy/theme");function Dr(r={}){var a;let o=(0,Ro.toState)((a=r.accentColor)!=null?a:"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=>(0,te.themeSize)(e,"inherit"),appearance:"none",position:"relative",display:"inline-flex",width:(0,te.themeSpacing)(9),height:(0,te.themeSpacing)(6),cursor:"pointer",margin:"0",paddingBlock:(0,te.themeSpacing)(1),"&:checked":{"&::before":{backgroundColor:e=>(0,te.themeColor)(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${(0,te.themeSpacing)(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:(0,te.themeSpacing)(3),height:(0,te.themeSpacing)(3),borderRadius:(0,te.themeSpacing)(999),left:(0,te.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>(0,te.themeColor)(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:(0,te.themeSpacing)(999),display:"inline-block",fontSize:e=>(0,te.themeSize)(e,"inherit"),lineHeight:1,backgroundColor:e=>(0,te.themeColor)(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var pt=require("@domphy/core"),L=require("@domphy/theme");function Or(r={}){var t,i;let{checked:o=!1}=r,a=(0,pt.toState)(o),e=(0,pt.toState)((t=r.color)!=null?t:"neutral","color"),n=(0,pt.toState)((i=r.accentColor)!=null?i:"primary","accentColor");return{_onSchedule:l=>{l.tagName!="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:l=>a.get(l),dataTone:"shift-2",onClick:()=>a.set(!a.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:l=>(0,L.themeSize)(l),border:"none",outlineWidth:"1px",outline:l=>`1px solid ${(0,L.themeColor)(l,"shift-3",e.get(l))}`,minWidth:(0,L.themeSpacing)(12),minHeight:(0,L.themeSpacing)(6),borderRadius:(0,L.themeSpacing)(999),paddingLeft:(0,L.themeSpacing)(7),paddingRight:(0,L.themeSpacing)(2),transition:"padding-left 0.3s, padding-right 0.3s",backgroundColor:l=>(0,L.themeColor)(l,"inherit",e.get(l)),"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:(0,L.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:(0,L.themeSpacing)(5),height:(0,L.themeSpacing)(5),borderRadius:(0,L.themeSpacing)(999),color:l=>(0,L.themeColor)(l,"shift-9"),backgroundColor:l=>(0,L.themeColor)(l,"decrease-2",e.get(l))},"&[aria-checked=true]":{backgroundColor:l=>(0,L.themeColor)(l,"increase-3",n.get(l)),outline:"none",color:l=>(0,L.themeColor)(l,"decrease-2"),paddingLeft:(0,L.themeSpacing)(2),paddingRight:(0,L.themeSpacing)(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${(0,L.themeSpacing)(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var _o=require("@domphy/core"),ft=require("@domphy/theme");function Ir(r={}){var a;let o=(0,_o.toState)((a=r.color)!=null?a:"neutral","color");return{dataSize:"decrease-1",_onInsert:e=>{e.tagName!="small"&&console.warn('"small" primitive patch must use small tag')},style:{fontSize:e=>(0,ft.themeSize)(e,"inherit"),color:e=>(0,ft.themeColor)(e,"shift-9",o.get(e))}}}var Lo=require("@domphy/core"),et=require("@domphy/theme");function $r(r={}){var a;let o=(0,Lo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>(0,et.themeSize)(e,"inherit"),fontWeight:700,color:e=>(0,et.themeColor)(e,"shift-11",o.get(e)),backgroundColor:e=>(0,et.themeColor)(e)}}}var No=require("@domphy/core"),gt=require("@domphy/theme");function zr(r={}){var a;let o=(0,No.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>(0,gt.themeSize)(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>(0,gt.themeColor)(e,"shift-9",o.get(e))}}}var Ho=require("@domphy/core"),yt=require("@domphy/theme");function Vr(r={}){var a;let o=(0,Ho.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>(0,yt.themeSize)(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>(0,yt.themeColor)(e,"shift-9",o.get(e))}}}var Bo=require("@domphy/core"),D=require("@domphy/theme");function Mr(r={}){var a;let o=(0,Bo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="table"&&console.warn('"table" primitive patch must use table tag')},style:{fontSize:e=>(0,D.themeSize)(e,"inherit"),color:e=>(0,D.themeColor)(e,"shift-9",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,D.themeColor)(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-9",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${(0,D.themeColor)(e,"shift-3",o.get(e))}`,fontSize:e=>(0,D.themeSize)(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,D.themeColor)(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${(0,D.themeColor)(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>(0,D.themeColor)(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>(0,D.themeColor)(e,"shift-2")+"!important"}}}}var Kt=require("@domphy/core"),V=require("@domphy/theme");function Rr(r={}){var n,t;let o=(0,Kt.toState)((n=r.color)!=null?n:"neutral","color"),a=(0,Kt.toState)((t=r.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=r;return{_onInsert:i=>{i.tagName!="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:i=>{if(e){let l=i.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:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*2),paddingBlock:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*1.5),border:"none",borderRadius:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*1.5),fontSize:i=>(0,V.themeSize)(i,"inherit"),color:i=>(0,V.themeColor)(i,"shift-9",o.get(i)),outlineOffset:"-1px",outline:i=>`1px solid ${(0,V.themeColor)(i,"shift-4",o.get(i))}`,backgroundColor:i=>(0,V.themeColor)(i,"inherit",o.get(i)),"&::placeholder":{color:i=>(0,V.themeColor)(i,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-5",a.get(i))}`},"&:focus-visible":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-6",a.get(i))}`},"&:invalid":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:i=>(0,V.themeColor)(i,"shift-8","neutral"),outline:i=>`1px solid ${(0,V.themeColor)(i,"shift-4","neutral")}`,backgroundColor:i=>(0,V.themeColor)(i,"shift-2","neutral")}}}}var Ao=require("@domphy/core"),Fe=require("@domphy/theme");function _r(r={}){var a;let o=(0,Ao.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>(0,Fe.themeSize)(e,"inherit"),backgroundColor:e=>(0,Fe.themeColor)(e),color:e=>(0,Fe.themeColor)(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,Fe.themeSpacing)(3),listStyleType:"disc",listStylePosition:"outside"}}}var Fo=require("@domphy/core"),We=require("@domphy/theme");function Lr(r={}){var a;let o=(0,Fo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>(0,We.themeSize)(e,"inherit"),backgroundColor:e=>(0,We.themeColor)(e),color:e=>(0,We.themeColor)(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,We.themeSpacing)(3),listStyleType:"decimal",listStylePosition:"outside"}}}var Wo=require("@domphy/core"),N=require("@domphy/theme");function Nr(r,o){if(o<=7)return Array.from({length:o},(t,i)=>i+1);let a=[1];r>3&&a.push("...");let e=Math.max(2,r-1),n=Math.min(o-1,r+1);for(let t=e;t<=n;t++)a.push(t);return r<o-2&&a.push("..."),a.push(o),a}function Hr(r){var l;let{total:o,color:a="neutral",accentColor:e="primary"}=r,n=(0,Wo.toState)((l=r.value)!=null?l:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:s=>(0,N.themeSpacing)(6+(0,N.themeDensity)(s)*2),height:s=>(0,N.themeSpacing)(6+(0,N.themeDensity)(s)*2),paddingInline:s=>(0,N.themeSpacing)((0,N.themeDensity)(s)*2),borderRadius:s=>(0,N.themeSpacing)((0,N.themeDensity)(s)*1),border:"none",cursor:"pointer",fontSize:s=>(0,N.themeSize)(s,"inherit"),backgroundColor:"transparent",color:s=>(0,N.themeColor)(s,"shift-9",a),"&:hover:not([disabled])":{backgroundColor:s=>(0,N.themeColor)(s,"shift-2",a)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},i=ao(at({},t),{backgroundColor:s=>(0,N.themeColor)(s,"shift-6",e),color:s=>(0,N.themeColor)(s,"shift-11",e),fontWeight:"600",cursor:"default","&:hover:not([disabled])":{backgroundColor:s=>(0,N.themeColor)(s,"shift-6",e)}});return{_onInsert:s=>{s.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:s=>{let u={div:c=>{let m=n.get(c),p=[];p.push({button:"\u2039",type:"button",ariaLabel:"Previous page",disabled:m<=1,onClick:()=>m>1&&n.set(m-1),style:t});for(let h of Nr(m,o))if(h==="...")p.push({span:"\u2026",style:{display:"inline-flex",alignItems:"center",paddingInline:f=>(0,N.themeSpacing)((0,N.themeDensity)(f)*2),color:f=>(0,N.themeColor)(f,"shift-7",a)}});else{let f=h===m;p.push({button:String(h),type:"button",ariaLabel:`Page ${h}`,ariaCurrent:f?"page":void 0,disabled:f,onClick:()=>n.set(h),style:f?i:t})}return p.push({button:"\u203A",type:"button",ariaLabel:"Next page",disabled:m>=o,onClick:()=>m<o&&n.set(m+1),style:t}),p},style:{display:"flex",alignItems:"center",gap:(0,N.themeSpacing)(1)}};s.children.insert(u)},style:{display:"inline-flex"}}}var Ko=require("@domphy/core"),ze=require("@domphy/theme");function Br(r={}){var a;let o=(0,Ko.toState)((a=r.color)!=null?a:"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:(0,ze.themeSpacing)(2),fontSize:e=>(0,ze.themeSize)(e,"inherit"),backgroundColor:e=>(0,ze.themeColor)(e),color:e=>(0,ze.themeColor)(e,"shift-9",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>(0,ze.themeColor)(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>(0,ze.themeColor)(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}var Yo=require("@domphy/core"),ae=require("@domphy/theme"),jo={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},Ar={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},jt=r=>r==="left"||r==="right";function Fr(r={}){let{color:o="neutral",open:a=!1,placement:e="right",size:n}=r,t=(0,Yo.toState)(a),i=jt(e)?(0,ae.themeSpacing)(80):(0,ae.themeSpacing)(64),l=n!=null?n:i;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 c=u.domElement;t.get()||(c.close(),document.body.style.overflow="")},_onMount:s=>{let u=s.domElement,c=p=>{p?(u.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.style.transform="translate(0, 0)"})):u.style.transform=jo[e]};c(t.get());let m=t.addListener(c);s.addHook("Remove",()=>{m(),document.body.style.overflow=""})},style:{transform:jo[e],transition:"transform 0.25s ease",fontSize:s=>(0,ae.themeSize)(s,"inherit"),color:s=>(0,ae.themeColor)(s,"shift-10",o),backgroundColor:s=>(0,ae.themeColor)(s,"inherit",o),border:"none",padding:s=>(0,ae.themeSpacing)((0,ae.themeDensity)(s)*3),margin:Ar[e],width:jt(e)?l:"100dvw",height:jt(e)?"100dvh":l,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:s=>`0 ${(0,ae.themeSpacing)(4)} ${(0,ae.themeSpacing)(12)} ${(0,ae.themeColor)(s,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:s=>(0,ae.themeColor)(s,"shift-2","neutral"),opacity:.75}}}}var tt=require("@domphy/core");function Wr(r){var p;let{open:o=!1,placement:a="bottom",openOn:e="click"}=r,n=null,t=(0,tt.toState)(o),i=(0,tt.toState)(a),{show:l,hide:s,anchorPartial:u}=Ee({open:t,placement:i,content:r.content}),c={role:"dialog",dataTone:"shift-11",onMouseEnter:()=>e==="hover"&&l(),onMouseLeave:()=>e==="hover"&&s(),_onInsert:h=>{let f=h.attributes.get("id");n=f||h.nodeId,!f&&h.attributes.set("id",n)}};return(p=r.content).$||(p.$=[]),r.content.$.push(c),(0,tt.merge)(u,{ariaHaspopup:"dialog",ariaExpanded:h=>t.get(h),onMouseEnter:()=>e==="hover"&&l(),onMouseLeave:()=>e==="hover"&&s(),onClick:()=>{e==="click"&&(t.get()?s():l())},onFocus:()=>l(),onBlur:(h,f)=>{let k=h.relatedTarget,b=f.getRoot().domElement,K=n?b.querySelector(`#${CSS.escape(n)}`):null;k&&(K!=null&&K.contains(k))||s()},_onMount:h=>n&&h.attributes.set("ariaControls",n)}),u}var qo=require("@domphy/core"),j=require("@domphy/theme");function Kr(r={}){let{position:o="top-center",color:a="neutral"}=r,e=(0,qo.toState)(!1),n=o.startsWith("top"),t=o.endsWith("center"),i=o.endsWith("right"),l={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:n?"column":"column-reverse",alignItems:t?"center":i?"end":"start",inset:0,gap:(0,j.themeSpacing)(4),zIndex:30,padding:(0,j.themeSpacing)(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:(0,j.themeSpacing)(32),pointerEvents:"auto",paddingBlock:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*2),paddingInline:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*4),borderRadius:s=>(0,j.themeSpacing)((0,j.themeDensity)(s)*2),fontSize:s=>(0,j.themeSize)(s,"inherit"),color:s=>(0,j.themeColor)(s,"shift-9",a),backgroundColor:s=>(0,j.themeColor)(s,"inherit",a),boxShadow:s=>`0 ${(0,j.themeSpacing)(2)} ${(0,j.themeSpacing)(9)} ${(0,j.themeColor)(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 c=m=>{m.propertyName==="transform"&&(s.domElement.removeEventListener("transitionend",c),u())};s.domElement.addEventListener("transitionend",c),e.set(!1)}}}var ot=require("@domphy/core"),ue=require("@domphy/theme");function jr(r={}){let{open:o=!1,placement:a="top",content:e="Tooltip Content"}=r,n=(0,ot.toState)(a),t=(0,ot.toState)(e),i=null,l={span:h=>t.get(h)},{show:s,hide:u,anchorPartial:c}=Ee({open:o,placement:n,content:l}),m={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",_onInsert:h=>{let f=h.attributes.get("id");i=f||h.nodeId,!f&&h.attributes.set("id",i)},style:{paddingBlock:h=>(0,ue.themeSpacing)((0,ue.themeDensity)(h)*1),paddingInline:h=>(0,ue.themeSpacing)((0,ue.themeDensity)(h)*3),borderRadius:h=>(0,ue.themeSpacing)((0,ue.themeDensity)(h)*1),color:h=>(0,ue.themeColor)(h,"shift-9"),backgroundColor:h=>(0,ue.themeColor)(h),fontSize:h=>(0,ue.themeSize)(h,"inherit")},$:[Pt({placement:n,bordered:!1})]};return l.$||(l.$=[]),l.$.push(m),(0,ot.merge)(c,{onMouseEnter:()=>s(),onMouseLeave:()=>u(),onFocus:()=>s(),onBlur:()=>u(),onKeyDown:h=>h.key==="Escape"&&u(),_onMount:h=>i&&h.attributes.set("ariaDescribedby",i)}),c}var Yt=require("@domphy/core");function Go(r,o){return r.key!==void 0&&r.key!==null?String(r.key):`index-${o}`}function Yr(r={}){let{duration:o=300,delay:a=0}=r,e=new Map;return{_onBeforeUpdate:n=>{e=new Map,n.children.items.forEach((t,i)=>{if(!(t instanceof Yt.ElementNode))return;let l=t.domElement;l&&e.set(Go(t,i),l.getBoundingClientRect())})},_onUpdate:n=>{n.children.items.forEach((t,i)=>{if(!(t instanceof Yt.ElementNode))return;let l=t.domElement;if(!l)return;let s=Go(t,i),u=e.get(s);if(!u)return;let c=l.getBoundingClientRect(),m=u.left-c.left,p=u.top-c.top;if(Math.abs(m)<.5&&Math.abs(p)<.5)return;let h=l.style.transition,f=l.style.transform;l.style.transition="none",l.style.transform=`translate(${m}px, ${p}px)`,l.getBoundingClientRect(),requestAnimationFrame(()=>{l.style.transition=`transform ${o}ms ease ${a}ms`,l.style.transform="translate(0px, 0px)"});let k=()=>{l.style.transition=h,l.style.transform=f,l.removeEventListener("transitionend",b)},b=K=>{K.propertyName==="transform"&&k()};l.addEventListener("transitionend",b),setTimeout(k,o+a+34)}),e.clear()}}}var Uo=require("@domphy/core"),Xo=require("@domphy/core");function qr(r={}){return{role:"tablist",_onSchedule:(a,e)=>{let n={_context:{tabs:{activeKey:(0,Xo.toState)(r.activeKey||0)}}};(0,Uo.merge)(e,n)}}}var Y=require("@domphy/theme");function Gr(r={}){let{accentColor:o="primary",color:a="neutral"}=r;return{role:"tab",_onInsert:n=>{var u,c;n.tagName!="button"&&console.warn('"tab" patch must use button tag');let t=n.getContext("tabs");if(!t){console.warn('"tab" patch must be used inside a "tabs"');return}let i=(c=(u=n.parent)==null?void 0:u.children.items)!=null?c:[];i=i.filter(m=>m.type=="ElementNode"&&m.attributes.get("role")=="tab");let l=n.key!==null&&n.key!==void 0?n.key:i.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 K,w,oe,W;let p=m.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(p))return;m.preventDefault();let h=((w=(K=n.parent)==null?void 0:K.children.items)!=null?w:[]).filter(U=>U.type==="ElementNode"&&U.attributes.get("role")==="tab"),f=h.findIndex(U=>U===n),k=f;p==="ArrowRight"?k=(f+1)%h.length:p==="ArrowLeft"?k=(f-1+h.length)%h.length:p==="Home"?k=0:p==="End"&&(k=h.length-1);let b=h[k];t.activeKey.set((oe=b.key)!=null?oe:k),(W=b.domElement)==null||W.focus()}};n.merge(s)},style:{cursor:"pointer",fontSize:n=>(0,Y.themeSize)(n,"inherit"),height:n=>(0,Y.themeSpacing)(6+(0,Y.themeDensity)(n)*2),paddingInline:n=>(0,Y.themeSpacing)((0,Y.themeDensity)(n)*4),border:"none",outline:"none",color:n=>(0,Y.themeColor)(n,"shift-9"),backgroundColor:n=>(0,Y.themeColor)(n,"inherit"),boxShadow:n=>`inset 0 -${(0,Y.themeSpacing)(.5)} 0 0 ${(0,Y.themeColor)(n,"shift-1",a)}`,"&:hover:not([disabled])":{boxShadow:n=>`inset 0 -${(0,Y.themeSpacing)(.5)} 0 0 ${(0,Y.themeColor)(n,"shift-2",a)}`},"&[aria-selected=true]:not([disabled])":{boxShadow:n=>`inset 0 -${(0,Y.themeSpacing)(.5)} 0 0 ${(0,Y.themeColor)(n,"shift-6",o)}`},"&:focus-visible":{boxShadow:n=>`inset 0 -${(0,Y.themeSpacing)(.5)} 0 0 ${(0,Y.themeColor)(n,"shift-6",o)}`}}}}var Ge=require("@domphy/theme");function Ur(){return{role:"tabpanel",style:{paddingBlock:o=>(0,Ge.themeSpacing)((0,Ge.themeDensity)(o)*2),paddingInline:o=>(0,Ge.themeSpacing)((0,Ge.themeDensity)(o)*2)},_onInsert:o=>{var i,l;let a=o.getContext("tabs");if(!a){console.warn('"tabPanel" patch must be used inside a "tabs"');return}let e=(l=(i=o.parent)==null?void 0:i.children.items)!=null?l:[];e=e.filter(s=>s.type=="ElementNode"&&s.attributes.get("role")=="tabpanel");let n=o.key!==null&&o.key!==void 0?o.key:e.findIndex(s=>s==o),t={id:"tabpanel"+o.parent.nodeId+n,ariaLabelledby:"tab"+o.parent.nodeId+n,hidden:s=>a.activeKey.get(s)!=n};o.merge(t)}}}var Jo=require("@domphy/core"),Qo=require("@domphy/core"),Te=require("@domphy/theme");function Xr(r={}){let{color:o="neutral",selectable:a=!0}=r;return{role:"menu",dataTone:"shift-17",_onSchedule:(n,t)=>{var l;let i={_context:{menu:{activeKey:(0,Qo.toState)((l=r.activeKey)!=null?l:null),selectable:a}}};(0,Jo.merge)(t,i)},style:{display:"flex",flexDirection:"column",paddingBlock:n=>(0,Te.themeSpacing)((0,Te.themeDensity)(n)*2),paddingInline:n=>(0,Te.themeSpacing)((0,Te.themeDensity)(n)*2),fontSize:n=>(0,Te.themeSize)(n,"inherit"),backgroundColor:n=>(0,Te.themeColor)(n,"inherit",o)}}}var G=require("@domphy/theme");function Jr(r={}){let{accentColor:o="primary",color:a="neutral"}=r;return{role:"menuitem",_onInsert:n=>{var s,u;n.tagName!="button"&&console.warn('"menuItem" patch must use button tag');let t=n.getContext("menu");if(!t){console.warn('"menuItem" patch must be used inside a "menu"');return}let i=(u=(s=n.parent)==null?void 0:s.children.items)!=null?u:[];i=i.filter(c=>c.type=="ElementNode"&&c.attributes.get("role")=="menuitem");let l=n.key!==null&&n.key!==void 0?n.key:i.findIndex(c=>c==n);t.selectable&&(n.attributes.set("ariaCurrent",c=>t.activeKey.get(c)==l||void 0),n.addEvent("click",()=>t.activeKey.set(l)))},onKeyDown:(n,t)=>{var c,m,p,h;let i=n.key;if(i==="Enter"||i===" "){n.preventDefault(),(c=t.domElement)==null||c.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(i))return;n.preventDefault();let l=((p=(m=t.parent)==null?void 0:m.children.items)!=null?p:[]).filter(f=>f.type==="ElementNode"&&f.attributes.get("role")==="menuitem"),s=l.findIndex(f=>f===t),u=s;i==="ArrowDown"?u=(s+1)%l.length:i==="ArrowUp"?u=(s-1+l.length)%l.length:i==="Home"?u=0:i==="End"&&(u=l.length-1),(h=l[u].domElement)==null||h.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:n=>(0,G.themeSpacing)(2),width:"100%",fontSize:n=>(0,G.themeSize)(n,"inherit"),height:n=>(0,G.themeSpacing)(6+(0,G.themeDensity)(n)*2),paddingInline:n=>(0,G.themeSpacing)((0,G.themeDensity)(n)*3),border:"none",outline:"none",color:n=>(0,G.themeColor)(n,"shift-9"),backgroundColor:n=>(0,G.themeColor)(n,"inherit"),"&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:n=>(0,G.themeColor)(n,"shift-2")},"&[aria-current=true]":{backgroundColor:n=>(0,G.themeColor)(n,"shift-3",o),color:n=>(0,G.themeColor)(n,"shift-10")},"&:focus-visible":{outline:n=>`${(0,G.themeSpacing)(.5)} solid ${(0,G.themeColor)(n,"shift-6",o)}`,outlineOffset:`-${(0,G.themeSpacing)(.5)}`}}}}var Zo=r=>!!r&&typeof r.get=="function"&&r._isState===!0,Ue=r=>{let o={},a=[];for(let e in r){let n=r[e];e==="x"?a.push(`translateX(${typeof n=="number"?`${n}px`:n})`):e==="y"?a.push(`translateY(${typeof n=="number"?`${n}px`:n})`):e==="scale"?a.push(`scale(${n})`):e==="rotate"?a.push(`rotate(${typeof n=="number"?`${n}deg`:n})`):o[e]=n}return a.length&&(o.transform=a.join(" ")),o};function Qr(r={}){var i,l,s,u;let{initial:o,animate:a,exit:e,transition:n={}}=r,t={duration:(i=n.duration)!=null?i:300,delay:(l=n.delay)!=null?l:0,easing:(s=n.easing)!=null?s:"ease",iterations:(u=n.iterations)!=null?u:1,fill:"both"};return{_onMount:c=>{let m=c.domElement;if(!m||typeof m.animate!="function")return;let p=Zo(a)?a.get():a;if(p?m.animate(o?[Ue(o),Ue(p)]:[Ue(p)],t):o&&Object.assign(m.style,Ue(o)),Zo(a)){let h=a.addListener(f=>{m.animate([Ue(f)],t)});c.setMetadata("motionRelease",h)}},_onBeforeRemove:(c,m)=>{let p=c.domElement;if(!p||!e||typeof p.animate!="function")return m();p.animate([Ue(e)],t).finished.then(m,m)},_onRemove:c=>{let m=c.getMetadata("motionRelease");m==null||m()}}}0&&(module.exports={abbreviation,alert,avatar,badge,blockquote,breadcrumb,breadcrumbEllipsis,button,buttonSwitch,card,code,combobox,command,commandItem,commandSearch,datePicker,descriptionList,details,dialog,divider,drawer,emphasis,figure,formGroup,heading,horizontalRule,icon,image,inputCheckbox,inputColor,inputDateTime,inputFile,inputNumber,inputOTP,inputRadio,inputRange,inputSearch,inputSwitch,inputText,keyboard,label,link,mark,menu,menuItem,motion,orderedList,pagination,paragraph,popover,popoverArrow,preformated,progress,select,selectBox,selectItem,selectList,skeleton,small,spinner,splitter,splitterHandle,splitterPanel,strong,subscript,superscript,tab,tabPanel,table,tabs,tag,textarea,toast,toggle,toggleGroup,tooltip,transitionGroup,unorderedList});
|
|
1
|
+
"use strict";var rt=Object.defineProperty,hn=Object.defineProperties,fn=Object.getOwnPropertyDescriptor,gn=Object.getOwnPropertyDescriptors,yn=Object.getOwnPropertyNames,ro=Object.getOwnPropertySymbols;var io=Object.prototype.hasOwnProperty,bn=Object.prototype.propertyIsEnumerable;var ao=(r,o,a)=>o in r?rt(r,o,{enumerable:!0,configurable:!0,writable:!0,value:a}):r[o]=a,at=(r,o)=>{for(var a in o||(o={}))io.call(o,a)&&ao(r,a,o[a]);if(ro)for(var a of ro(o))bn.call(o,a)&&ao(r,a,o[a]);return r},lo=(r,o)=>hn(r,gn(o));var Sn=(r,o)=>{for(var a in o)rt(r,a,{get:o[a],enumerable:!0})},Cn=(r,o,a,e)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of yn(o))!io.call(r,n)&&n!==a&&rt(r,n,{get:()=>o[n],enumerable:!(e=fn(o,n))||e.enumerable});return r};var vn=r=>Cn(rt({},"__esModule",{value:!0}),r);var Jr={};Sn(Jr,{abbreviation:()=>En,alert:()=>xn,avatar:()=>kn,badge:()=>wn,blockquote:()=>Tn,breadcrumb:()=>Pn,breadcrumbEllipsis:()=>Dn,button:()=>On,buttonSwitch:()=>In,card:()=>$n,code:()=>zn,combobox:()=>Ln,command:()=>Mn,commandItem:()=>_n,commandSearch:()=>Rn,datePicker:()=>Hn,descriptionList:()=>Fn,details:()=>Wn,dialog:()=>Kn,divider:()=>jn,drawer:()=>qn,emphasis:()=>Gn,figure:()=>Un,formGroup:()=>Xn,heading:()=>Qn,horizontalRule:()=>Zn,icon:()=>er,image:()=>tr,inputCheckbox:()=>or,inputColor:()=>nr,inputDateTime:()=>rr,inputFile:()=>ar,inputNumber:()=>ir,inputOTP:()=>lr,inputRadio:()=>sr,inputRange:()=>cr,inputSearch:()=>mr,inputSwitch:()=>ur,inputText:()=>dr,keyboard:()=>pr,label:()=>hr,link:()=>fr,mark:()=>gr,menu:()=>yr,menuItem:()=>br,motion:()=>Sr,orderedList:()=>Cr,pagination:()=>Er,paragraph:()=>xr,popover:()=>kr,popoverArrow:()=>Kt,preformated:()=>wr,progress:()=>Tr,select:()=>Pr,selectBox:()=>Dr,selectItem:()=>Or,selectList:()=>Ir,skeleton:()=>$r,small:()=>zr,spinner:()=>Vr,splitter:()=>Lr,splitterHandle:()=>Rr,splitterPanel:()=>Mr,strong:()=>_r,subscript:()=>Nr,superscript:()=>Hr,tab:()=>Br,tabPanel:()=>Fr,table:()=>Ar,tabs:()=>Wr,tag:()=>Je,textarea:()=>Kr,toast:()=>jr,toggle:()=>Yr,toggleGroup:()=>qr,tooltip:()=>Gr,transitionGroup:()=>Ur,unorderedList:()=>Xr});module.exports=vn(Jr);var wt=require("@domphy/core"),Se=require("@domphy/theme");function En(r={}){var e,n;let o=(0,wt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,wt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{_onInsert:t=>{t.tagName!=="abbr"&&console.warn('"abbreviation" primitive patch must use abbr tag')},style:{fontSize:t=>(0,Se.themeSize)(t),backgroundColor:t=>(0,Se.themeColor)(t),color:t=>(0,Se.themeColor)(t,"shift-10",o.get(t)),textDecorationLine:"underline",textDecorationStyle:"dotted",textDecorationColor:t=>(0,Se.themeColor)(t,"shift-7",o.get(t)),textUnderlineOffset:(0,Se.themeSpacing)(.72),cursor:"help","&:hover":{color:t=>(0,Se.themeColor)(t,"shift-11",a.get(t)),textDecorationColor:t=>(0,Se.themeColor)(t,"shift-9",a.get(t))}}}}var so=require("@domphy/core"),le=require("@domphy/theme");function xn(r={}){var a;let o=(0,so.toState)((a=r.color)!=null?a:"primary","color");return{role:"alert",dataTone:"shift-2",style:{display:"flex",alignItems:"flex-start",gap:(0,le.themeSpacing)(3),paddingBlock:e=>(0,le.themeSpacing)((0,le.themeDensity)(e)*2),paddingInline:e=>(0,le.themeSpacing)((0,le.themeDensity)(e)*4),boxShadow:e=>`inset ${(0,le.themeSpacing)(1)} 0 0 0 ${(0,le.themeColor)(e,"shift-8",o.get(e))}`,backgroundColor:e=>(0,le.themeColor)(e,"inherit",o.get(e)),color:e=>(0,le.themeColor)(e,"shift-10",o.get(e)),fontSize:e=>(0,le.themeSize)(e,"inherit")}}}var co=require("@domphy/core"),Le=require("@domphy/theme");function kn(r={}){var a;let o=(0,co.toState)((a=r.color)!=null?a:"primary","color");return{dataTone:"shift-2",style:{position:"relative",display:"inline-flex",alignItems:"center",justifyContent:"center",overflow:"hidden",borderRadius:"50%",flexShrink:0,width:(0,Le.themeSpacing)(9),height:(0,Le.themeSpacing)(9),fontSize:e=>(0,Le.themeSize)(e,"inherit"),fontWeight:"600",userSelect:"none",backgroundColor:e=>(0,Le.themeColor)(e,"inherit",o.get(e)),color:e=>(0,Le.themeColor)(e,"shift-11",o.get(e)),"& img":{position:"absolute",inset:0,width:"100%",height:"100%",objectFit:"cover"}}}}var Tt=require("@domphy/core"),Pe=require("@domphy/theme");function wn(r={}){var n;let{label:o=999}=r,a=(0,Tt.toState)(o),e=(0,Tt.toState)((n=r.color)!=null?n:"danger","color");return{style:{position:"relative","&::after":{content:t=>`"${a.get(t)}"`,position:"absolute",top:0,right:0,transform:"translate(50%,-50%)",paddingInline:(0,Pe.themeSpacing)(1),minWidth:(0,Pe.themeSpacing)(6),display:"inline-flex",alignItems:"center",justifyContent:"center",fontSize:t=>(0,Pe.themeSize)(t,"decrease-1"),borderRadius:(0,Pe.themeSpacing)(999),backgroundColor:t=>(0,Pe.themeColor)(t,"shift-9",e.get(t)),color:t=>(0,Pe.themeColor)(t,"shift-0",e.get(t))}}}}var mo=require("@domphy/core"),pe=require("@domphy/theme");function Tn(r={}){var a;let o=(0,mo.toState)((a=r.color)!=null?a:"inherit","color");return{_onInsert:e=>{e.tagName!=="blockquote"&&console.warn('"blockquote" primitive patch must use blockquote tag')},dataTone:"shift-2",style:{fontSize:e=>(0,pe.themeSize)(e,"inherit"),backgroundColor:e=>(0,pe.themeColor)(e,"inherit",o.get(e)),boxShadow:e=>`inset ${(0,pe.themeSpacing)(1)} 0 0 0 ${(0,pe.themeColor)(e,"shift-4",o.get(e))}`,border:"none",paddingBlock:e=>(0,pe.themeSpacing)((0,pe.themeDensity)(e)*2),paddingInline:e=>(0,pe.themeSpacing)((0,pe.themeDensity)(e)*4),margin:0}}}var uo=require("@domphy/core"),ge=require("@domphy/theme");function Pn(r={}){var e;let{separator:o="/"}=r,a=(0,uo.toState)((e=r.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=>(0,ge.themeSize)(n,"inherit"),gap:(0,ge.themeSpacing)(1),color:n=>(0,ge.themeColor)(n,"shift-9",a.get(n)),backgroundColor:n=>(0,ge.themeColor)(n,"inherit",a.get(n)),"& > *":{display:"inline-flex",alignItems:"center",color:n=>(0,ge.themeColor)(n,"shift-8",a.get(n))},"& > *:not(:last-child)::after":{content:`"${o}"`,color:n=>(0,ge.themeColor)(n,"shift-4",a.get(n)),paddingInlineStart:(0,ge.themeSpacing)(1)},"& > [aria-current=page]":{color:n=>(0,ge.themeColor)(n,"shift-10",a.get(n)),pointerEvents:"none"}}}}var po=require("@domphy/core"),he=require("@domphy/theme");function Dn(r={}){var a;let o=(0,po.toState)((a=r.color)!=null?a:"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=>(0,he.themeSize)(e,"inherit"),paddingInline:(0,he.themeSpacing)(1),border:"none",background:"none",cursor:"pointer",color:e=>(0,he.themeColor)(e,"shift-8",o.get(e)),borderRadius:(0,he.themeSpacing)(1),"&:hover":{color:e=>(0,he.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,he.themeColor)(e,"shift-2",o.get(e))},"&:focus-visible":{outline:e=>`${(0,he.themeSpacing)(.5)} solid ${(0,he.themeColor)(e,"shift-6",o.get(e))}`,outlineOffset:(0,he.themeSpacing)(.5)}}}}var ho=require("@domphy/core"),L=require("@domphy/theme");function On(r={}){var a;let o=(0,ho.toState)((a=r.color)!=null?a:"primary","color");return{_onInsert:e=>{e.tagName!=="button"&&console.warn('"button" primitive patch must use button tag')},style:{appearance:"none",fontSize:e=>(0,L.themeSize)(e,"inherit"),paddingBlock:e=>(0,L.themeSpacing)((0,L.themeDensity)(e)*1),paddingInline:e=>(0,L.themeSpacing)((0,L.themeDensity)(e)*3),borderRadius:e=>(0,L.themeSpacing)((0,L.themeDensity)(e)*1),width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",gap:e=>(0,L.themeSpacing)((0,L.themeDensity)(e)*1),userSelect:"none",fontFamily:"inherit",lineHeight:"inherit",border:"none",outlineOffset:"-1px",outlineWidth:"1px",outline:e=>`1px solid ${(0,L.themeColor)(e,"shift-4",o.get(e))}`,color:e=>(0,L.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,L.themeColor)(e,"inherit",o.get(e)),"&:hover:not([disabled]):not([aria-busy=true])":{color:e=>(0,L.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,L.themeColor)(e,"shift-2",o.get(e))},"&:focus-visible":{boxShadow:e=>`inset 0 0 0 ${(0,L.themeSpacing)(.5)} ${(0,L.themeColor)(e,"shift-6",o.get(e))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:e=>(0,L.themeColor)(e,"shift-2","neutral"),outline:e=>`1px solid ${(0,L.themeColor)(e,"shift-4","neutral")}`,color:e=>(0,L.themeColor)(e,"shift-8","neutral")},"&[aria-busy=true]":{opacity:.7,cursor:"wait",pointerEvents:"none"}}}}var it=require("@domphy/core"),R=require("@domphy/theme");function In(r={}){var t,i;let{checked:o=!1}=r,a=(0,it.toState)(o),e=(0,it.toState)((t=r.color)!=null?t:"neutral","color"),n=(0,it.toState)((i=r.accentColor)!=null?i:"primary","accentColor");return{_onSchedule:l=>{l.tagName!=="button"&&console.warn('"buttonSwitch" primitive patch must use button tag')},role:"switch",ariaChecked:l=>a.get(l),dataTone:"shift-2",onClick:()=>a.set(!a.get()),style:{position:"relative",display:"inline-flex",alignItems:"center",fontSize:l=>(0,R.themeSize)(l),border:"none",outlineWidth:"1px",outline:l=>`1px solid ${(0,R.themeColor)(l,"shift-3",e.get(l))}`,minWidth:(0,R.themeSpacing)(12),minHeight:(0,R.themeSpacing)(6),borderRadius:(0,R.themeSpacing)(999),paddingLeft:(0,R.themeSpacing)(7),paddingRight:(0,R.themeSpacing)(2),transition:"padding-left 0.3s, padding-right 0.3s",backgroundColor:l=>(0,R.themeColor)(l,"inherit",e.get(l)),"& > :first-child":{content:'""',position:"absolute",display:"inline-flex",alignItems:"center",left:(0,R.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",width:(0,R.themeSpacing)(5),height:(0,R.themeSpacing)(5),borderRadius:(0,R.themeSpacing)(999),color:l=>(0,R.themeColor)(l,"shift-9"),backgroundColor:l=>(0,R.themeColor)(l,"decrease-2",e.get(l))},"&[aria-checked=true]":{backgroundColor:l=>(0,R.themeColor)(l,"increase-3",n.get(l)),outline:"none",color:l=>(0,R.themeColor)(l,"decrease-2"),paddingLeft:(0,R.themeSpacing)(2),paddingRight:(0,R.themeSpacing)(7)},"&[aria-checked=true] > :first-child":{left:`calc(100% - ${(0,R.themeSpacing)(5.5)})`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var fo=require("@domphy/core"),O=require("@domphy/theme");function $n(r={}){var a;let o=(0,fo.toState)((a=r.color)!=null?a:"neutral","color");return{style:{display:"grid",gridTemplateColumns:"1fr auto",gridTemplateAreas:'"image image" "title aside" "desc aside" "content content" "footer footer"',borderRadius:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),backgroundColor:e=>(0,O.themeColor)(e,"inherit",o.get(e)),color:e=>(0,O.themeColor)(e,"shift-10",o.get(e)),outline:e=>`1px solid ${(0,O.themeColor)(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=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),fontWeight:"600",margin:0},"& > p":{gridArea:"desc",paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),color:e=>(0,O.themeColor)(e,"shift-9",o.get(e)),margin:0},"& > aside":{gridArea:"aside",alignSelf:"center",padding:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),height:"auto"},"& > div":{gridArea:"content",padding:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),color:e=>(0,O.themeColor)(e,"shift-10",o.get(e))},"& > footer":{gridArea:"footer",display:"flex",gap:(0,O.themeSpacing)(2),paddingBlock:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*2),paddingInline:e=>(0,O.themeSpacing)((0,O.themeDensity)(e)*4),borderTop:e=>`1px solid ${(0,O.themeColor)(e,"shift-3",o.get(e))}`}}}}var go=require("@domphy/core"),De=require("@domphy/theme");function zn(r={}){var a;let o=(0,go.toState)((a=r.color)!=null?a:"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=>(0,De.themeSize)(e,"inherit"),color:e=>(0,De.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,De.themeColor)(e,"inherit",o.get(e)),height:(0,De.themeSpacing)(6),paddingInline:(0,De.themeSpacing)(1.5),borderRadius:(0,De.themeSpacing)(1)}}}var Me=require("@domphy/core"),B=require("@domphy/theme");var lt=require("@domphy/core"),Ce=require("@domphy/floating");function ve(r){let{open:o=!1,placement:a}=r,e=null,n=null,t=null,i=null,l=null,s=null,u=!1,c=(0,lt.toState)(o),m=()=>{u||!s||(u=!0,l=s.children.insert(r.content))},h=()=>{m(),t&&i&&(n&&n(),n=(0,Ce.autoUpdate)(t,i,()=>{(0,Ce.computePosition)(t,i,{placement:a.get(),middleware:[(0,Ce.offset)(12),(0,Ce.flip)(),(0,Ce.shift)()],strategy:"fixed"}).then(({x:w,y:oe,placement:W})=>{Object.assign(i.style,{left:`${w}px`,top:`${oe}px`}),a.set(W)})}),c.set(!0))},p=()=>{n&&n(),n=null,c.set(!1)},f=()=>{e&&clearTimeout(e),e=setTimeout(h,100)},k=()=>{e&&clearTimeout(e),e=setTimeout(p,100)},b={style:{position:"fixed",pointerEvents:"auto",visibility:w=>c.get(w)?"visible":"hidden"},_onMount:w=>i=w.domElement,_portal:w=>{let oe=w.domElement.querySelector("#domphy-floating");if(!oe){let W={div:[],id:"domphy-floating",style:{position:"fixed",inset:0,zIndex:20,pointerEvents:"none"}};oe=w.children.insert(W).domElement}return oe}};return(0,lt.merge)(r.content,b),{show:f,hide:k,anchorPartial:{onKeyDown:w=>w.key==="Escape"&&k(),_onMount:w=>{s=w.getRoot(),t=w.domElement;let oe=W=>{if(!c.get()||!t||!i)return;let U=W.target;!t.contains(U)&&!i.contains(U)&&k()};w.getRoot().domElement.addEventListener("click",oe),w.addHook("BeforeRemove",()=>{e&&clearTimeout(e),n&&(n(),n=null),l&&l.remove(),w.getRoot().domElement.removeEventListener("click",oe)})}}}}var yo=require("@domphy/core"),X=require("@domphy/theme"),Vn='<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 Je(r={}){var e;let{removable:o=!1}=r,a=(0,yo.toState)((e=r.color)!=null?e:"neutral","color");return{dataTone:"shift-2",_onInit:n=>{let t={span:Vn,onClick:i=>{i.stopPropagation(),n.remove()},style:{display:"inline-flex",alignItems:"center",cursor:"pointer",borderRadius:(0,X.themeSpacing)(1),width:(0,X.themeSpacing)(4),height:(0,X.themeSpacing)(4),flexShrink:0,"&:hover":{backgroundColor:i=>(0,X.themeColor)(i,"shift-4",a.get(i))}}};o&&n.children.insert(t)},style:{display:"inline-flex",alignItems:"center",whiteSpace:"nowrap",userSelect:"none",height:(0,X.themeSpacing)(6),paddingBlock:"0px",borderRadius:(0,X.themeSpacing)(1),paddingInlineStart:(0,X.themeSpacing)(2),paddingInlineEnd:o?(0,X.themeSpacing)(1):(0,X.themeSpacing)(2),gap:(0,X.themeSpacing)(2),fontSize:n=>(0,X.themeSize)(n,"inherit"),backgroundColor:n=>(0,X.themeColor)(n,"inherit",a.get(n)),color:n=>(0,X.themeColor)(n,"shift-9",a.get(n)),border:"none",outlineOffset:"-1px",outline:n=>`1px solid ${(0,X.themeColor)(n,"shift-4",a.get(n))}`}}}function Ln(r){let{options:o=[],placement:a="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=r,i=(0,Me.toState)(r.value),l=(0,Me.toState)(n),{show:s,hide:u,anchorPartial:c}=ve({open:l,placement:(0,Me.toState)(a),content:r.content}),m={onClick:()=>!t&&u()};(0,Me.merge)(r.content,m);let h={border:"none",outline:"none",padding:0,margin:0,flex:1,height:(0,B.themeSpacing)(6),marginInlineStart:(0,B.themeSpacing)(2),fontSize:b=>(0,B.themeSize)(b,"inherit"),color:b=>(0,B.themeColor)(b,"shift-9",e),backgroundColor:b=>(0,B.themeColor)(b,"inherit",e)},p;r.input?((0,Me.merge)(r.input,{onFocus:()=>s(),style:h,_key:"combobox-input"}),p=r.input):p={input:null,onFocus:()=>s(),value:b=>(i.get(b),""),style:h,_key:"combobox-input"};let f={div:b=>{let K=i.get(b),w=Array.isArray(K)?K:[K],W=o.filter(U=>w.includes(U.value)).map(U=>({span:U.label,$:[Je({color:e,removable:!0})],_key:U.value,_onRemove:Xe=>{let Ne=i.get(),Ke=(Array.isArray(Ne)?Ne:[Ne]).filter(Ct=>Ct!==U.value);t?i.set(Ke):i.set(Ke[0])}}));return W.push(p),W},style:{display:"flex",flexWrap:"wrap",gap:(0,B.themeSpacing)(1)}},k={_onInsert:b=>{b.tagName!=="div"&&console.warn('"combobox" primitive patch must use div tag')},_onInit:b=>b.children.insert(f),style:{minWidth:(0,B.themeSpacing)(32),outlineOffset:"-1px",outline:b=>`1px solid ${(0,B.themeColor)(b,"shift-4","neutral")}`,paddingBlock:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),paddingInline:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),borderRadius:b=>(0,B.themeSpacing)((0,B.themeDensity)(b)*1),fontSize:b=>(0,B.themeSize)(b,"inherit"),color:b=>(0,B.themeColor)(b,"shift-9",e),backgroundColor:b=>(0,B.themeColor)(b,"inherit",e)}};return(0,Me.merge)(c,k),c}var st=require("@domphy/core"),$=require("@domphy/theme");function Mn(){return{_onSchedule:(r,o)=>{(0,st.merge)(o,{_context:{command:{query:(0,st.toState)("")}}})},style:{display:"flex",flexDirection:"column",overflow:"hidden"}}}function Rn(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{_onInsert:e=>{e.tagName!=="input"&&console.warn('"commandSearch" patch must use input tag')},_onMount:e=>{let n=e.getContext("command");if(!n){console.warn('"commandSearch" patch must be used inside a "command"');return}let t=e.domElement,i=()=>n.query.set(t.value);t.addEventListener("input",i),e.addHook("Remove",()=>t.removeEventListener("input",i))},style:{fontFamily:"inherit",fontSize:e=>(0,$.themeSize)(e,"inherit"),paddingInline:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*3),paddingBlock:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*2),border:"none",borderBottom:e=>`1px solid ${(0,$.themeColor)(e,"shift-3",o)}`,outline:"none",color:e=>(0,$.themeColor)(e,"shift-10",o),backgroundColor:e=>(0,$.themeColor)(e,"inherit",o),"&::placeholder":{color:e=>(0,$.themeColor)(e,"shift-7")},"&:focus-visible":{borderBottomColor:e=>(0,$.themeColor)(e,"shift-6",a)}}}}function _n(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{role:"option",_onMount:e=>{var s,u;let n=e.getContext("command");if(!n){console.warn('"commandItem" patch must be used inside a "command"');return}let t=e.domElement,i=(u=(s=t.textContent)==null?void 0:s.toLowerCase())!=null?u:"",l=n.query.addListener(c=>{t.hidden=c.length>0&&!i.includes(c.toLowerCase())});e.addHook("Remove",l)},style:{cursor:"pointer",display:"flex",alignItems:"center",width:"100%",fontSize:e=>(0,$.themeSize)(e,"inherit"),height:e=>(0,$.themeSpacing)(6+(0,$.themeDensity)(e)*2),paddingInline:e=>(0,$.themeSpacing)((0,$.themeDensity)(e)*3),border:"none",outline:"none",color:e=>(0,$.themeColor)(e,"shift-9",o),backgroundColor:e=>(0,$.themeColor)(e,"inherit",o),"&:hover:not([disabled])":{backgroundColor:e=>(0,$.themeColor)(e,"shift-2",o)},"&:focus-visible":{outline:e=>`${(0,$.themeSpacing)(.5)} solid ${(0,$.themeColor)(e,"shift-6",a)}`,outlineOffset:`-${(0,$.themeSpacing)(.5)}`}}}}var fe=require("@domphy/core"),y=require("@domphy/theme");var q=r=>new Date(r.getFullYear(),r.getMonth(),r.getDate()),He=(r,o)=>new Date(r.getFullYear(),r.getMonth(),r.getDate()+o),Pt=(r,o)=>new Date(r.getFullYear(),r.getMonth()+o,r.getDate()),Qe=(r,o)=>!!r&&!!o&&r.getFullYear()===o.getFullYear()&&r.getMonth()===o.getMonth()&&r.getDate()===o.getDate(),Dt=r=>`${r.getFullYear()}-${String(r.getMonth()+1).padStart(2,"0")}-${String(r.getDate()).padStart(2,"0")}`,Ot=(r,o)=>He(r,-((r.getDay()-o+7)%7));function Nn(r){var o,a;try{let e=new Intl.Locale(r),n=(a=(o=e.getWeekInfo)==null?void 0:o.call(e))!=null?a:e.weekInfo;if(n!=null&&n.firstDay)return n.firstDay%7}catch(e){}return 0}function Hn(r={}){var eo,to,oo,no;let{mode:o="single",time:a=!1,min:e,max:n,disabledDate:t,locale:i=typeof navigator!="undefined"?navigator.language:"en-US",format:l,onChange:s}=r,u=(eo=r.weekStartsOn)!=null?eo:Nn(i),c=(0,fe.toState)((to=r.accentColor)!=null?to:"primary","accentColor"),m=(0,fe.toState)((oo=r.placement)!=null?oo:"bottom-start"),h=(0,fe.toState)((no=r.value)!=null?no:o==="range"?[null,null]:null);s&&h.addListener(d=>s(d));let p=(()=>{let d=h.get(),g=o==="range"?d==null?void 0:d[0]:d;return g instanceof Date?g:new Date})(),f=(0,fe.toState)(p.getFullYear(),"viewYear"),k=(0,fe.toState)(p.getMonth(),"viewMonth"),b=(0,fe.toState)(q(p),"focused"),K=(0,fe.toState)(null,"hovered"),w=(0,fe.toState)(p.getHours(),"hour"),oe=(0,fe.toState)(p.getMinutes(),"minute"),W=null,U=new Intl.DateTimeFormat(i,at({dateStyle:"medium"},a?{timeStyle:"short"}:{})),Xe=new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}),Ne=new Intl.DateTimeFormat(i,{weekday:"short"}),Ut=new Intl.DateTimeFormat(i,{dateStyle:"full"}),Ke=d=>d?U.format(d):"",Ct=d=>{if(l)return l(d);if(o==="range"){let[g,S]=d!=null?d:[null,null];return g?`${Ke(g)} \u2013 ${Ke(S)}`:""}return Ke(d)},Qo=Array.from({length:7},(d,g)=>Ne.format(new Date(2023,0,1+(g+u)%7))),Xt=d=>!!e&&q(d)<q(e)||!!n&&q(d)>q(n)||!!t&&t(d),Ve=d=>{if(!a)return q(d);let g=q(d);return g.setHours(w.get(),oe.get(),0,0),g},Jt=d=>{var C;if(Xt(d))return;if(o==="single"){h.set(Ve(d)),a||xt();return}let[g,S]=(C=h.get())!=null?C:[null,null];!g||g&&S?h.set([Ve(d),null]):q(d)<q(g)?(h.set([Ve(d),Ve(g)]),a||xt()):(h.set([g,Ve(d)]),a||xt())},Zo=()=>{var d;if(a)if(o==="single"){let g=h.get();g&&h.set(Ve(g))}else{let[g,S]=(d=h.get())!=null?d:[null,null];h.set([g&&Ve(g),S&&Ve(S)])}},en=(d,g)=>{var je;if(o!=="range")return!1;let[S,C]=(je=h.get(g))!=null?je:[null,null],M=C!=null?C:K.get(g);if(!S||!M)return!1;let E=q(S)<=q(M)?S:M,de=q(S)<=q(M)?M:S,ie=q(d);return ie>=q(E)&&ie<=q(de)},tn=(d,g)=>{let S=h.get(g);if(o==="range"){let[C,M]=S!=null?S:[null,null];return Qe(d,C)||Qe(d,M)}return Qe(d,S)},nt=d=>{f.set(d.getFullYear()),k.set(d.getMonth())},Qt=d=>{let g=Pt(new Date(f.get(),k.get(),1),d);nt(g)},Zt=d=>f.set(f.get()+d),vt=()=>{setTimeout(()=>{var d;(d=W==null?void 0:W.querySelector(`[data-date="${Dt(b.get())}"]`))==null||d.focus()},0)},on=sn(),{show:nn,hide:rn,anchorPartial:Et}=ve({open:!1,placement:m,content:on});function xt(){rn()}Et.onClick=()=>{};let an={type:"text",readonly:!0,value:d=>Ct(h.get(d)),ariaHaspopup:"dialog",ariaLabel:"Choose date",style:{cursor:"pointer"},onClick:()=>{kt()},onFocus:()=>{kt()},onKeyDown:d=>{let g=d.key;(g==="ArrowDown"||g==="Enter")&&(d.preventDefault(),kt())}};function kt(){var g;let d=(g=ln())!=null?g:new Date;b.set(q(d)),nt(d),nn(),vt()}function ln(){var g;let d=h.get();return o==="range"?(g=d==null?void 0:d[0])!=null?g:null:d!=null?d:null}return(0,fe.merge)(Et,an),Et;function sn(){let d=(E,de,ie)=>({button:E,type:"button",ariaLabel:de,onClick:ie,style:Bn()}),g={div:[d("\xAB","Previous year",()=>Zt(-1)),d("\u2039","Previous month",()=>Qt(-1)),{div:E=>Xe.format(new Date(f.get(E),k.get(E),1)),ariaLive:"polite",style:{flex:"1",textAlign:"center",fontWeight:"600",fontSize:E=>(0,y.themeSize)(E)}},d("\u203A","Next month",()=>Qt(1)),d("\xBB","Next year",()=>Zt(1))],style:{display:"flex",alignItems:"center",gap:(0,y.themeSpacing)(1),marginBottom:(0,y.themeSpacing)(2)}},S={div:Qo.map((E,de)=>({div:E,style:{textAlign:"center",fontSize:ie=>(0,y.themeSize)(ie,"decrease-1"),fontWeight:"600",color:ie=>(0,y.themeColor)(ie,"shift-7"),paddingBlock:(0,y.themeSpacing)(1)},_key:de})),role:"row",style:bo()},C={div:E=>cn(E),role:"grid",ariaLabel:"Calendar",onKeyDown:pn,onMouseLeave:()=>o==="range"&&K.set(null),style:{display:"flex",flexDirection:"column",gap:(0,y.themeSpacing)(.5)}},M=[g,S,C];return a&&M.push(un()),M.push(dn()),{div:M,role:"dialog",ariaModal:"false",_onMount:E=>{W=E.domElement},style:{minWidth:(0,y.themeSpacing)(70),padding:(0,y.themeSpacing)(3),borderRadius:(0,y.themeSpacing)(2),backgroundColor:E=>(0,y.themeColor)(E,"base"),color:E=>(0,y.themeColor)(E,"shift-10"),border:E=>`1px solid ${(0,y.themeColor)(E,"shift-4")}`,boxShadow:"0 8px 24px rgba(0,0,0,0.18)"}}}function cn(d){let g=new Date(f.get(d),k.get(d),1),S=k.get(d),C=Ot(g,u),M=[];for(let E=0;E<6;E++){let de=[];for(let ie=0;ie<7;ie++){let je=He(C,E*7+ie);de.push(mn(je,S,d))}M.push({div:de,role:"row",style:bo(),_key:E})}return M}function mn(d,g,S){let C=Xt(d),M=tn(d,S),E=en(d,S),de=d.getMonth()!==g,ie=Qe(d,b.get(S)),je=Qe(d,new Date);return{button:String(d.getDate()),type:"button",role:"gridcell",tabIndex:ie?0:-1,ariaSelected:M,ariaDisabled:C,disabled:C,ariaLabel:Ut.format(d),dataDate:Dt(d),onClick:()=>Jt(d),onMouseEnter:()=>o==="range"&&K.set(d),style:{appearance:"none",border:"none",cursor:C?"not-allowed":"pointer",aspectRatio:"1",borderRadius:(0,y.themeSpacing)(1),fontSize:H=>(0,y.themeSize)(H),fontFamily:"inherit",opacity:C?.35:de?.5:1,backgroundColor:H=>M?(0,y.themeColor)(H,"shift-7",c.get(H)):E?(0,y.themeColor)(H,"shift-2",c.get(H)):"transparent",color:H=>M?(0,y.themeColor)(H,"shift-0",c.get(H)):(0,y.themeColor)(H,"shift-9"),outline:je?H=>`1px solid ${(0,y.themeColor)(H,"shift-6",c.get(H))}`:"none",outlineOffset:"-2px","&:hover:not([disabled])":{backgroundColor:H=>M?(0,y.themeColor)(H,"shift-7",c.get(H)):(0,y.themeColor)(H,"shift-3",c.get(H))},"&:focus-visible":{outline:H=>`2px solid ${(0,y.themeColor)(H,"shift-6",c.get(H))}`}},_key:Dt(d)}}function un(){let d=(g,S,C)=>({select:Array.from({length:g},(M,E)=>({option:String(E).padStart(2,"0"),value:String(E),selected:de=>S.get(de)===E,_key:E})),ariaLabel:C,onChange:M=>{S.set(Number(M.target.value)),Zo()},style:An()});return{div:[d(24,w,"Hour"),{span:":",style:{fontWeight:"600"}},d(60,oe,"Minute")],style:{display:"flex",alignItems:"center",justifyContent:"center",gap:(0,y.themeSpacing)(1),marginTop:(0,y.themeSpacing)(3)}}}function dn(){let d=(g,S)=>({button:g,type:"button",onClick:S,style:{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:C=>(0,y.themeSize)(C,"decrease-1"),color:C=>(0,y.themeColor)(C,"shift-8",c.get(C)),padding:(0,y.themeSpacing)(1)}});return{div:[d("Today",()=>{let g=new Date;b.set(q(g)),nt(g),vt()}),d("Clear",()=>{h.set(o==="range"?[null,null]:null),K.set(null)})],style:{display:"flex",justifyContent:"space-between",marginTop:(0,y.themeSpacing)(2),paddingTop:(0,y.themeSpacing)(2),borderTop:g=>`1px solid ${(0,y.themeColor)(g,"shift-3")}`}}}function pn(d){let g=d,S=b.get(),C=null;switch(g.key){case"ArrowLeft":C=He(S,-1);break;case"ArrowRight":C=He(S,1);break;case"ArrowUp":C=He(S,-7);break;case"ArrowDown":C=He(S,7);break;case"Home":C=Ot(S,u);break;case"End":C=He(Ot(S,u),6);break;case"PageUp":C=Pt(S,g.shiftKey?-12:-1);break;case"PageDown":C=Pt(S,g.shiftKey?12:1);break;case"Enter":case" ":g.preventDefault(),Jt(S);return;default:return}g.preventDefault(),b.set(C),nt(C),vt()}}function bo(){return{display:"grid",gridTemplateColumns:"repeat(7, 1fr)",gap:(0,y.themeSpacing)(.5)}}function Bn(){return{appearance:"none",border:"none",background:"transparent",cursor:"pointer",fontFamily:"inherit",fontSize:r=>(0,y.themeSize)(r),color:r=>(0,y.themeColor)(r,"shift-8"),width:(0,y.themeSpacing)(7),height:(0,y.themeSpacing)(7),borderRadius:(0,y.themeSpacing)(1),"&:hover":{backgroundColor:r=>(0,y.themeColor)(r,"shift-3")}}}function An(){return{fontFamily:"inherit",fontSize:r=>(0,y.themeSize)(r),padding:(0,y.themeSpacing)(1),borderRadius:(0,y.themeSpacing)(1),border:r=>`1px solid ${(0,y.themeColor)(r,"shift-4")}`,backgroundColor:r=>(0,y.themeColor)(r,"base"),color:r=>(0,y.themeColor)(r,"shift-9")}}var So=require("@domphy/core"),Oe=require("@domphy/theme");function Fn(r={}){var a;let o=(0,So.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="dl"&&console.warn('"descriptionList" primitive patch must use dl tag')},style:{display:"grid",gridTemplateColumns:`minmax(${(0,Oe.themeSpacing)(24)}, max-content) 1fr`,columnGap:(0,Oe.themeSpacing)(4),margin:0,"& dt":{margin:0,fontWeight:600,fontSize:e=>(0,Oe.themeSize)(e,"inherit"),color:e=>(0,Oe.themeColor)(e,"shift-10",o.get(e))},"& dd":{margin:0,fontSize:e=>(0,Oe.themeSize)(e,"inherit"),color:e=>(0,Oe.themeColor)(e,"shift-9",o.get(e))}}}}var It=require("@domphy/core"),v=require("@domphy/theme");function Wn(r={}){var n,t;let{duration:o=240}=r,a=(0,It.toState)((n=r.color)!=null?n:"neutral","color"),e=(0,It.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{_onInsert:i=>{i.tagName!=="details"&&console.warn('"details" primitive patch must use details tag')},style:{fontSize:i=>(0,v.themeSize)(i,"inherit"),color:i=>(0,v.themeColor)(i,"shift-9",a.get(i)),backgroundColor:i=>(0,v.themeColor)(i,"inherit",a.get(i)),overflow:"hidden","& > summary":{backgroundColor:i=>(0,v.themeColor)(i,"shift-2",a.get(i)),color:i=>(0,v.themeColor)(i,"shift-10",a.get(i)),fontSize:i=>(0,v.themeSize)(i,"inherit"),listStyle:"none",display:"flex",justifyContent:"space-between",alignItems:"center",gap:(0,v.themeSpacing)(2),cursor:"pointer",userSelect:"none",fontWeight:500,paddingInline:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*4),height:(0,v.themeSpacing)(10)},"& > summary::-webkit-details-marker":{display:"none"},"& > summary::marker":{content:'""'},"& > summary::after":{content:'""',width:(0,v.themeSpacing)(2),height:(0,v.themeSpacing)(2),flexShrink:0,marginTop:`-${(0,v.themeSpacing)(.5)}`,borderInlineEnd:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-9",a.get(i))}`,borderBottom:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-9",a.get(i))}`,transform:"rotate(45deg)",transition:`transform ${o}ms ease`},"&[open] > summary::after":{transform:"rotate(-135deg)"},"& > summary:hover":{backgroundColor:i=>(0,v.themeColor)(i,"shift-3",a.get(i))},"& > summary:focus-visible":{borderRadius:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*2),outlineOffset:`-${(0,v.themeSpacing)(.5)}`,outline:i=>`${(0,v.themeSpacing)(.5)} solid ${(0,v.themeColor)(i,"shift-6",e.get(i))}`},"& > :not(summary)":{maxHeight:"0px",opacity:0,overflow:"hidden",paddingInline:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*3),paddingTop:0,paddingBottom:0,transition:`max-height ${o}ms ease, opacity ${o}ms ease, padding ${o}ms ease`},"&[open] > :not(summary)":{maxHeight:(0,v.themeSpacing)(250),opacity:1,paddingTop:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*1),paddingBottom:i=>(0,v.themeSpacing)((0,v.themeDensity)(i)*3)}}}}var Co=require("@domphy/core"),se=require("@domphy/theme");function Kn(r={}){let{color:o="neutral",open:a=!1}=r,e=(0,Co.toState)(a);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 i=t.domElement.getBoundingClientRect();n.clientX>=i.left&&n.clientX<=i.right&&n.clientY>=i.top&&n.clientY<=i.bottom||e.set(!1)},onTransitionEnd:(n,t)=>{let i=t.domElement;i.style.opacity==="0"&&(i.close(),document.body.style.overflow="")},_onMount:n=>{let t=n.domElement,i=s=>{s?(t.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{t.style.opacity="1";let u=t.querySelector('button, [href], input, select, textarea, [tabindex]:not([tabindex="-1"])');u==null||u.focus()})):t.style.opacity="0"};i(e.get());let l=e.addListener(i);n.addHook("Remove",()=>{l(),document.body.style.overflow=""})},style:{opacity:"0",transition:"opacity 200ms ease",fontSize:n=>(0,se.themeSize)(n,"inherit"),color:n=>(0,se.themeColor)(n,"shift-10",o),backgroundColor:n=>(0,se.themeColor)(n,"inherit",o),border:"none",padding:n=>(0,se.themeSpacing)((0,se.themeDensity)(n)*3),boxShadow:n=>`0 ${(0,se.themeSpacing)(9)} ${(0,se.themeSpacing)(16)} ${(0,se.themeColor)(n,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:n=>(0,se.themeColor)(n,"shift-2","neutral"),opacity:.75}}}}var vo=require("@domphy/core"),Ie=require("@domphy/theme");function jn(r={}){var a;let o=(0,vo.toState)((a=r.color)!=null?a:"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:(0,Ie.themeSpacing)(2),fontSize:e=>(0,Ie.themeSize)(e,"inherit"),backgroundColor:e=>(0,Ie.themeColor)(e),color:e=>(0,Ie.themeColor)(e,"shift-9",o.get(e)),minHeight:"1lh","&::before":{content:'""',flex:1,borderColor:e=>(0,Ie.themeColor)(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"},"&::after":{content:'""',flex:1,borderColor:e=>(0,Ie.themeColor)(e,"shift-4",o.get(e)),borderWidth:"1px",borderBottomStyle:"solid"}}}}var xo=require("@domphy/core"),ae=require("@domphy/theme"),Eo={left:"translateX(-100%)",right:"translateX(100%)",top:"translateY(-100%)",bottom:"translateY(100%)"},Yn={left:"0 auto 0 0",right:"0 0 0 auto",top:"0 0 auto 0",bottom:"auto 0 0 0"},$t=r=>r==="left"||r==="right";function qn(r={}){let{color:o="neutral",open:a=!1,placement:e="right",size:n}=r,t=(0,xo.toState)(a),i=$t(e)?(0,ae.themeSpacing)(80):(0,ae.themeSpacing)(64),l=n!=null?n:i;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 c=u.domElement;t.get()||(c.close(),document.body.style.overflow="")},_onMount:s=>{let u=s.domElement,c=h=>{h?(u.showModal(),document.body.style.overflow="hidden",requestAnimationFrame(()=>{u.style.transform="translate(0, 0)"})):u.style.transform=Eo[e]};c(t.get());let m=t.addListener(c);s.addHook("Remove",()=>{m(),document.body.style.overflow=""})},style:{transform:Eo[e],transition:"transform 0.25s ease",fontSize:s=>(0,ae.themeSize)(s,"inherit"),color:s=>(0,ae.themeColor)(s,"shift-10",o),backgroundColor:s=>(0,ae.themeColor)(s,"inherit",o),border:"none",padding:s=>(0,ae.themeSpacing)((0,ae.themeDensity)(s)*3),margin:Yn[e],width:$t(e)?l:"100dvw",height:$t(e)?"100dvh":l,maxWidth:"100dvw",maxHeight:"100dvh",boxShadow:s=>`0 ${(0,ae.themeSpacing)(4)} ${(0,ae.themeSpacing)(12)} ${(0,ae.themeColor)(s,"shift-4","neutral")}`,"&::backdrop":{backgroundColor:s=>(0,ae.themeColor)(s,"shift-2","neutral"),opacity:.75}}}}var ko=require("@domphy/core"),ct=require("@domphy/theme");function Gn(r={}){var a;let o=(0,ko.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="em"&&console.warn('"emphasis" primitive patch must use em tag')},style:{fontSize:e=>(0,ct.themeSize)(e,"inherit"),fontStyle:"italic",color:e=>(0,ct.themeColor)(e,"shift-10",o.get(e))}}}var wo=require("@domphy/core"),Ee=require("@domphy/theme");function Un(r={}){var a;let o=(0,wo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="figure"&&console.warn('"figure" primitive patch must use figure tag')},style:{display:"flex",flexDirection:"column",gap:(0,Ee.themeSpacing)(2),marginInline:0,marginTop:(0,Ee.themeSpacing)(3),marginBottom:(0,Ee.themeSpacing)(3),color:e=>(0,Ee.themeColor)(e,"shift-9",o.get(e)),"& img, & svg, & video, & canvas":{display:"block",maxWidth:"100%",borderRadius:(0,Ee.themeSpacing)(2)},"& figcaption":{fontSize:e=>(0,Ee.themeSize)(e,"decrease-1"),color:e=>(0,Ee.themeColor)(e,"shift-8",o.get(e)),lineHeight:1.45}}}}var To=require("@domphy/core"),I=require("@domphy/theme");function Xn(r={}){var n;let{layout:o="horizontal"}=r,a=(0,To.toState)((n=r.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=>(0,I.themeSpacing)((0,I.themeDensity)(t)*3),paddingBlock:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*3),border:"none",borderRadius:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*2),fontSize:t=>(0,I.themeSize)(t,"inherit"),backgroundColor:t=>(0,I.themeColor)(t,"inherit",a.get(t)),display:"grid",gridTemplateColumns:e?"minmax(0, 1fr)":"max-content minmax(0, 1fr)",columnGap:(0,I.themeSpacing)(4),rowGap:(0,I.themeSpacing)(3),alignItems:"start","& > legend":{gridColumn:"1 / -1",margin:0,fontSize:t=>(0,I.themeSize)(t,"inherit"),fontWeight:600,paddingBlock:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*1),borderRadius:t=>(0,I.themeSpacing)((0,I.themeDensity)(t)*2),color:t=>(0,I.themeColor)(t,"shift-9",a.get(t)),backgroundColor:t=>(0,I.themeColor)(t,"inherit",a.get(t))},"& > label":{gridColumn:"1",alignSelf:"start",margin:0,paddingBlock:t=>e?"0px":(0,I.themeSpacing)((0,I.themeDensity)(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(${(0,I.themeSpacing)(2)} * -1)`,fontSize:t=>(0,I.themeSize)(t,"decrease-1"),color:t=>(0,I.themeColor)(t,"shift-9",a.get(t))}}}}var Po=require("@domphy/core"),Ye=require("@domphy/theme"),Jn={h6:"decrease-1",h5:"inherit",h4:"increase-1",h3:"increase-2",h2:"increase-3",h1:"increase-4"};function Qn(r={}){var a;let o=(0,Po.toState)((a=r.color)!=null?a:"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=>(0,Ye.themeColor)(e,"shift-11",o.get(e)),marginTop:0,marginBottom:(0,Ye.themeSpacing)(2),fontSize:e=>{let n=Jn[e.elementNode.tagName]||"inherit";return(0,Ye.themeSize)(e,n)}}}}var Do=require("@domphy/core"),Ze=require("@domphy/theme");function Zn(r={}){var a;let o=(0,Do.toState)((a=r.color)!=null?a:"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:(0,Ze.themeSpacing)(3),marginBottom:(0,Ze.themeSpacing)(3),backgroundColor:e=>(0,Ze.themeColor)(e,"shift-4",o.get(e))}}}var Oo=require("@domphy/core"),Be=require("@domphy/theme");function er(r={}){var a;let o=(0,Oo.toState)((a=r.color)!=null?a:"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:(0,Be.themeSpacing)(4),height:(0,Be.themeSpacing)(4),flexShrink:"0",fontSize:e=>(0,Be.themeSize)(e),backgroundColor:"transparent",color:e=>(0,Be.themeColor)(e,"shift-9",o.get(e))}}}var Io=require("@domphy/core"),mt=require("@domphy/theme");function tr(r={}){var a;let o=(0,Io.toState)((a=r.color)!=null?a:"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:(0,mt.themeSpacing)(2),backgroundColor:e=>(0,mt.themeColor)(e,"inherit",o.get(e))}}}var zt=require("@domphy/core"),z=require("@domphy/theme");function or(r={}){var e,n;let o=(0,zt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,zt.toState)((n=r.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=>(0,z.themeSize)(t,"inherit"),display:"inline-flex",position:"relative",width:(0,z.themeSpacing)(6),height:(0,z.themeSpacing)(6),justifyContent:"center",alignItems:"center",transition:"background-color 300ms, outline-color 300ms",margin:0,padding:0,"&::before":{content:'""',display:"block",borderRadius:(0,z.themeSpacing)(1),lineHeight:1,cursor:"pointer",border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,z.themeColor)(t,"shift-9",o.get(t)),width:(0,z.themeSpacing)(4),height:(0,z.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,z.themeColor)(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`,backgroundColor:t=>(0,z.themeColor)(t,"shift-8",a.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,z.themeColor)(t,"shift-7",a.get(t))},"&:checked::after":{content:'""',display:"block",position:"absolute",top:"25%",insetInlineStart:"37%",width:"20%",height:"30%",border:t=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(t,"inherit",a.get(t))}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg)"},"&:indeterminate::before":{outline:t=>`1px solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`,backgroundColor:t=>(0,z.themeColor)(t,"shift-3",a.get(t))},"&:indeterminate::after":{content:'""',position:"absolute",inset:"30%",backgroundColor:t=>(0,z.themeColor)(t,"shift-8",a.get(t))},"&:indeterminate:hover:not([disabled])::after":{backgroundColor:t=>(0,z.themeColor)(t,"shift-7",a.get(t))},"&:focus-visible":{borderRadius:(0,z.themeSpacing)(1.5),outline:t=>`${(0,z.themeSpacing)(.5)} solid ${(0,z.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,z.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var Vt=require("@domphy/core"),J=require("@domphy/theme");function nr(r={}){var e,n;let o=(0,Vt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Vt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"color",_onSchedule:(t,i)=>{t.tagName!=="input"&&console.warn('"inputColor" primitive patch must use input tag'),i.type="color"},style:{appearance:"none",border:"none",cursor:"pointer",fontSize:t=>(0,J.themeSize)(t,"inherit"),paddingBlock:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1),paddingInline:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1),blockSize:t=>(0,J.themeSpacing)(6+(0,J.themeDensity)(t)*2),inlineSize:t=>(0,J.themeSpacing)(6+(0,J.themeDensity)(t)*2),backgroundColor:"transparent","&::-webkit-color-swatch-wrapper":{margin:0,padding:0},"&::-webkit-color-swatch":{borderRadius:t=>(0,J.themeSpacing)((0,J.themeDensity)(t)*1)},"&:hover:not([disabled]), &:focus-visible":{},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,J.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,J.themeColor)(t,"shift-4","neutral")}`}}}}var Lt=require("@domphy/core"),A=require("@domphy/theme");function rr(r={}){var n,t;let{mode:o="datetime-local"}=r,a=(0,Lt.toState)((n=r.color)!=null?n:"neutral","color"),e=(0,Lt.toState)((t=r.accentColor)!=null?t:"primary","accentColor");return{type:o,_onSchedule:(i,l)=>{i.tagName!=="input"&&console.warn('"inputDateTime" primitive patch must use input tag'),l.type=o},style:{fontFamily:"inherit",fontSize:i=>(0,A.themeSize)(i,"inherit"),lineHeight:"inherit",color:i=>(0,A.themeColor)(i,"shift-9",a.get(i)),backgroundColor:i=>(0,A.themeColor)(i,"inherit",a.get(i)),border:"none",outlineOffset:"-1px",outline:i=>`1px solid ${(0,A.themeColor)(i,"shift-4",a.get(i))}`,borderRadius:i=>(0,A.themeSpacing)((0,A.themeDensity)(i)*1),paddingInline:i=>(0,A.themeSpacing)((0,A.themeDensity)(i)*3),height:i=>(0,A.themeSpacing)(6+(0,A.themeDensity)(i)*2),"&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.85},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:i=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(i,"shift-6",e.get(i))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:i=>(0,A.themeColor)(i,"shift-8","neutral"),backgroundColor:i=>(0,A.themeColor)(i,"shift-2","neutral"),outline:i=>`1px solid ${(0,A.themeColor)(i,"shift-4","neutral")}`},"&:invalid":{outline:i=>`${(0,A.themeSpacing)(.5)} solid ${(0,A.themeColor)(i,"shift-6","error")}`}}}}var Mt=require("@domphy/core"),T=require("@domphy/theme");function ar(r={}){var e,n;let o=(0,Mt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Mt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"file",_onSchedule:(t,i)=>{t.tagName!=="input"&&console.warn('"inputFile" primitive patch must use input tag'),i.type="file"},style:{display:"inline-flex",alignItems:"center",fontFamily:"inherit",fontSize:t=>(0,T.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,T.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,T.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,T.themeColor)(t,"shift-4",o.get(t))}`,borderRadius:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)*1),height:t=>(0,T.themeSpacing)(6+(0,T.themeDensity)(t)*2),paddingInline:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)*1),"&::-webkit-file-upload-button":{marginTop:t=>(0,T.themeSpacing)((0,T.themeDensity)(t)),fontFamily:"inherit",fontSize:"inherit",border:"none",borderRadius:(0,T.themeSpacing)(1),height:(0,T.themeSpacing)(6),paddingInline:(0,T.themeSpacing)(2),cursor:"pointer",color:t=>(0,T.themeColor)(t,"shift-11",o.get(t)),backgroundColor:t=>(0,T.themeColor)(t,"shift-1",o.get(t))},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${(0,T.themeSpacing)(.5)} solid ${(0,T.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.8,cursor:"not-allowed",color:t=>(0,T.themeColor)(t,"shift-8","neutral"),outline:t=>`1px solid ${(0,T.themeColor)(t,"shift-4","neutral")}`,backgroundColor:t=>(0,T.themeColor)(t,"shift-1","neutral")},"&[disabled]::-webkit-file-upload-button":{cursor:"not-allowed",color:t=>(0,T.themeColor)(t,"shift-8","neutral"),backgroundColor:t=>(0,T.themeColor)(t,"shift-3","neutral")}}}}var Rt=require("@domphy/core"),_=require("@domphy/theme");function ir(r={}){var e,n;let o=(0,Rt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Rt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"number",_onSchedule:(t,i)=>{t.tagName!=="input"&&console.warn('"inputNumber" primitive patch must use input tag'),i.type="number"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,_.themeSpacing)(10),paddingInlineStart:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*3),paddingInlineEnd:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1.5),paddingBlock:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1),borderRadius:t=>(0,_.themeSpacing)((0,_.themeDensity)(t)*1),fontSize:t=>(0,_.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,_.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,_.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,_.themeColor)(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=>`${(0,_.themeSpacing)(.5)} solid ${(0,_.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,_.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,_.themeColor)(t,"shift-4","neutral")}`,color:t=>(0,_.themeColor)(t,"shift-8","neutral")}}}}var _t=require("@domphy/theme");function lr(){return{style:{display:"flex",alignItems:"center",gap:(0,_t.themeSpacing)(2),"& > *":{minWidth:(0,_t.themeSpacing)(9)+"!important"}},_onMount:r=>{let o=r.domElement,a=()=>Array.from(o.querySelectorAll("input")),e=i=>{let l=a(),s=i.target,u=l.indexOf(s);s.value&&u<l.length-1&&l[u+1].focus()},n=i=>{let l=a(),s=i.target,u=l.indexOf(s);i.key==="Backspace"&&!s.value&&u>0&&l[u-1].focus(),i.key==="ArrowLeft"&&u>0&&l[u-1].focus(),i.key==="ArrowRight"&&u<l.length-1&&l[u+1].focus()},t=i=>{var m,h,p;i.preventDefault();let l=(h=(m=i.clipboardData)==null?void 0:m.getData("text"))!=null?h:"",s=a(),u=s.indexOf(i.target);[...l].forEach((f,k)=>{s[u+k]&&(s[u+k].value=f)});let c=Math.min(u+l.length-1,s.length-1);(p=s[c])==null||p.focus()};o.addEventListener("input",e),o.addEventListener("keydown",n),o.addEventListener("paste",t),r.addHook("Remove",()=>{o.removeEventListener("input",e),o.removeEventListener("keydown",n),o.removeEventListener("paste",t)})}}}var Nt=require("@domphy/core"),Q=require("@domphy/theme");function sr(r={}){var e,n;let o=(0,Nt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Nt.toState)((n=r.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=>(0,Q.themeSize)(t,"inherit"),appearance:"none",display:"inline-flex",position:"relative",width:(0,Q.themeSpacing)(6),height:(0,Q.themeSpacing)(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 ${(0,Q.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,Q.themeColor)(t,"shift-9",o.get(t)),width:(0,Q.themeSpacing)(4),height:(0,Q.themeSpacing)(4)},"&:hover::before":{backgroundColor:t=>(0,Q.themeColor)(t,"shift-2",o.get(t))},"&:checked::before":{outline:t=>`1px solid ${(0,Q.themeColor)(t,"shift-6",a.get(t))}`},"&:checked::after":{content:'""',position:"absolute",inset:"30%",borderRadius:"50%",backgroundColor:t=>(0,Q.themeColor)(t,"shift-8",a.get(t))},"&:checked:hover:not([disabled])::before":{backgroundColor:t=>(0,Q.themeColor)(t,"shift-7",a.get(t))},"&:focus-visible":{borderRadius:"50%",outline:t=>`${(0,Q.themeSpacing)(.5)} solid ${(0,Q.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{cursor:"not-allowed"},"&[disabled]::before, &[disabled]::after":{outline:"none",backgroundColor:t=>(0,Q.themeColor)(t,"shift-4","neutral"),pointerEvents:"none"}}}}var Ht=require("@domphy/core"),Z=require("@domphy/theme");function cr(r={}){var e,n;let o=(0,Ht.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Ht.toState)((n=r.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:(0,Z.themeSpacing)(4),background:"transparent",cursor:"pointer","&::-webkit-slider-runnable-track":{height:(0,Z.themeSpacing)(1.5),borderRadius:(0,Z.themeSpacing)(999),backgroundColor:t=>(0,Z.themeColor)(t,"shift-3",o.get(t))},"&::-webkit-slider-thumb":{appearance:"none",width:(0,Z.themeSpacing)(4),height:(0,Z.themeSpacing)(4),borderRadius:(0,Z.themeSpacing)(999),border:"none",marginTop:`calc((${(0,Z.themeSpacing)(1.5)} - ${(0,Z.themeSpacing)(4)}) / 2)`,backgroundColor:t=>(0,Z.themeColor)(t,"shift-9",a.get(t))},"&:hover:not([disabled])::-webkit-slider-thumb":{backgroundColor:t=>(0,Z.themeColor)(t,"shift-10",a.get(t))},"&:focus-visible":{outline:t=>`${(0,Z.themeSpacing)(.5)} solid ${(0,Z.themeColor)(t,"shift-6",a.get(t))}`,outlineOffset:(0,Z.themeSpacing)(1),borderRadius:(0,Z.themeSpacing)(2)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var Bt=require("@domphy/core"),F=require("@domphy/theme");function mr(r={}){var e,n;let o=(0,Bt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Bt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"search",_onSchedule:(t,i)=>{t.tagName!=="input"&&console.warn('"inputSearch" primitive patch must use input tag'),i.type="search"},style:{fontFamily:"inherit",fontSize:t=>(0,F.themeSize)(t,"inherit"),lineHeight:"inherit",color:t=>(0,F.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,F.themeColor)(t,"inherit",o.get(t)),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,F.themeColor)(t,"shift-4",o.get(t))}`,borderRadius:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*1),minWidth:(0,F.themeSpacing)(32),paddingInline:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*3),paddingBlock:t=>(0,F.themeSpacing)((0,F.themeDensity)(t)*1),"&::placeholder":{color:t=>(0,F.themeColor)(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=>`${(0,F.themeSpacing)(.5)} solid ${(0,F.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,F.themeColor)(t,"shift-8","neutral"),backgroundColor:t=>(0,F.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,F.themeColor)(t,"shift-4","neutral")}`}}}}var $o=require("@domphy/core"),ee=require("@domphy/theme");function ur(r={}){var a;let o=(0,$o.toState)((a=r.accentColor)!=null?a:"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=>(0,ee.themeSize)(e,"inherit"),appearance:"none",position:"relative",display:"inline-flex",width:(0,ee.themeSpacing)(9),height:(0,ee.themeSpacing)(6),cursor:"pointer",margin:"0",paddingBlock:(0,ee.themeSpacing)(1),"&:checked":{"&::before":{backgroundColor:e=>(0,ee.themeColor)(e,"increase-3",o.get(e))},"&::after":{left:`calc(100% - ${(0,ee.themeSpacing)(3.5)})`}},"&::after":{content:'""',aspectRatio:"1/1",position:"absolute",width:(0,ee.themeSpacing)(3),height:(0,ee.themeSpacing)(3),borderRadius:(0,ee.themeSpacing)(999),left:(0,ee.themeSpacing)(.5),top:"50%",transform:"translateY(-50%)",transition:"left 0.3s",backgroundColor:e=>(0,ee.themeColor)(e,"decrease-3")},"&::before":{content:'""',width:"100%",borderRadius:(0,ee.themeSpacing)(999),display:"inline-block",fontSize:e=>(0,ee.themeSize)(e,"inherit"),lineHeight:1,backgroundColor:e=>(0,ee.themeColor)(e)},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var At=require("@domphy/core"),P=require("@domphy/theme");function dr(r={}){var e,n;let o=(0,At.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,At.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{type:"text",_onSchedule:(t,i)=>{t.tagName!=="input"&&console.warn('"inputText" primitive patch must use input tag and text type'),i.type="text"},style:{fontFamily:"inherit",lineHeight:"inherit",minWidth:(0,P.themeSpacing)(10),paddingInline:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*3),paddingBlock:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*1),borderRadius:t=>(0,P.themeSpacing)((0,P.themeDensity)(t)*1),fontSize:t=>(0,P.themeSize)(t,"inherit"),border:"none",outlineOffset:"-1px",outline:t=>`1px solid ${(0,P.themeColor)(t,"shift-4",o.get(t))}`,color:t=>(0,P.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,P.themeColor)(t,"inherit",o.get(t)),"&::placeholder":{color:t=>(0,P.themeColor)(t,"shift-7")},"&:not(:placeholder-shown)":{color:t=>(0,P.themeColor)(t,"shift-10")},"&:hover:not([disabled]):not([aria-busy=true]), &:focus-visible":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",backgroundColor:t=>(0,P.themeColor)(t,"shift-2","neutral"),outline:t=>`1px solid ${(0,P.themeColor)(t,"shift-4","neutral")}`,color:t=>(0,P.themeColor)(t,"shift-8","neutral")},"&:invalid:not(:placeholder-shown)":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","error")}`},"&[data-status=error]":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","error")}`},"&[data-status=warning]":{outline:t=>`${(0,P.themeSpacing)(.5)} solid ${(0,P.themeColor)(t,"shift-6","warning")}`}}}}var zo=require("@domphy/core"),xe=require("@domphy/theme");function pr(r={}){var a;let o=(0,zo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="kbd"&&console.warn('"keyboard" primitive patch must use kbd tag')},style:{fontSize:e=>(0,xe.themeSize)(e,"inherit"),color:e=>(0,xe.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,xe.themeColor)(e,"inherit",o.get(e)),paddingBlock:(0,xe.themeSpacing)(.5),paddingInline:(0,xe.themeSpacing)(1.5),borderRadius:(0,xe.themeSpacing)(1),outline:e=>`1px solid ${(0,xe.themeColor)(e,"shift-4",o.get(e))}`}}}var Ft=require("@domphy/core"),Re=require("@domphy/theme");function hr(r={}){var e,n;let o=(0,Ft.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,Ft.toState)((n=r.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:(0,Re.themeSpacing)(2),fontSize:t=>(0,Re.themeSize)(t,"inherit"),color:t=>(0,Re.themeColor)(t,"shift-9",o.get(t)),cursor:"pointer","&:focus-within":{color:t=>(0,Re.themeColor)(t,"shift-10",a.get(t))},"&[aria-disabled=true]":{opacity:.7,cursor:"not-allowed",color:t=>(0,Re.themeColor)(t,"shift-8","neutral")}}}}var Wt=require("@domphy/core"),ce=require("@domphy/theme");function fr(r={}){var e,n;let o=(0,Wt.toState)((e=r.color)!=null?e:"primary","color"),a=(0,Wt.toState)((n=r.accentColor)!=null?n:"secondary","accentColor");return{_onInsert:t=>{t.tagName!=="a"&&console.warn('"link" primitive patch must use a tag')},style:{fontSize:t=>(0,ce.themeSize)(t,"inherit"),backgroundColor:t=>(0,ce.themeColor)(t),color:t=>(0,ce.themeColor)(t,"shift-9",o.get(t)),textDecoration:"none","&:visited":{color:t=>(0,ce.themeColor)(t,"shift-9",a.get(t))},"&:hover:not([disabled])":{color:t=>(0,ce.themeColor)(t,"shift-10",o.get(t)),textDecoration:"underline"},"&:focus-visible":{borderRadius:(0,ce.themeSpacing)(1),outlineOffset:(0,ce.themeSpacing)(1),outline:t=>`${(0,ce.themeSpacing)(.5)} solid ${(0,ce.themeColor)(t,"shift-6",a.get(t))}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:t=>(0,ce.themeColor)(t,"shift-8","neutral")}}}}var Vo=require("@domphy/core"),$e=require("@domphy/theme");function gr(r={}){var a;let o=(0,Vo.toState)((a=r.accentColor)!=null?a:"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=>(0,$e.themeSize)(e,"inherit"),color:e=>(0,$e.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,$e.themeColor)(e,"inherit",o.get(e)),height:(0,$e.themeSpacing)(6),borderRadius:(0,$e.themeSpacing)(1),paddingInline:(0,$e.themeSpacing)(1.5)}}}var ut=require("@domphy/core"),ke=require("@domphy/theme");function yr(r={}){let{color:o="neutral",selectable:a=!0}=r;return{role:"menu",dataTone:"shift-17",_onSchedule:(n,t)=>{var l;let i={_context:{menu:{activeKey:(0,ut.toState)((l=r.activeKey)!=null?l:null),selectable:a}}};(0,ut.merge)(t,i)},style:{display:"flex",flexDirection:"column",paddingBlock:n=>(0,ke.themeSpacing)((0,ke.themeDensity)(n)*2),paddingInline:n=>(0,ke.themeSpacing)((0,ke.themeDensity)(n)*2),fontSize:n=>(0,ke.themeSize)(n,"inherit"),backgroundColor:n=>(0,ke.themeColor)(n,"inherit",o)}}}var G=require("@domphy/theme");function br(r={}){let{accentColor:o="primary",color:a="neutral"}=r;return{role:"menuitem",_onInsert:n=>{var s,u;n.tagName!=="button"&&console.warn('"menuItem" patch must use button tag');let t=n.getContext("menu");if(!t){console.warn('"menuItem" patch must be used inside a "menu"');return}let i=(u=(s=n.parent)==null?void 0:s.children.items)!=null?u:[];i=i.filter(c=>c.type=="ElementNode"&&c.attributes.get("role")=="menuitem");let l=n.key!==null&&n.key!==void 0?n.key:i.findIndex(c=>c==n);t.selectable&&(n.attributes.set("ariaCurrent",c=>t.activeKey.get(c)==l||void 0),n.addEvent("click",()=>t.activeKey.set(l)))},onKeyDown:(n,t)=>{var c,m,h,p;let i=n.key;if(i==="Enter"||i===" "){n.preventDefault(),(c=t.domElement)==null||c.click();return}if(!["ArrowDown","ArrowUp","Home","End"].includes(i))return;n.preventDefault();let l=((h=(m=t.parent)==null?void 0:m.children.items)!=null?h:[]).filter(f=>f.type==="ElementNode"&&f.attributes.get("role")==="menuitem"),s=l.findIndex(f=>f===t),u=s;i==="ArrowDown"?u=(s+1)%l.length:i==="ArrowUp"?u=(s-1+l.length)%l.length:i==="Home"?u=0:i==="End"&&(u=l.length-1),(p=l[u].domElement)==null||p.focus()},style:{cursor:"pointer",display:"flex",alignItems:"center",gap:n=>(0,G.themeSpacing)(2),width:"100%",fontSize:n=>(0,G.themeSize)(n,"inherit"),height:n=>(0,G.themeSpacing)(6+(0,G.themeDensity)(n)*2),paddingInline:n=>(0,G.themeSpacing)((0,G.themeDensity)(n)*3),border:"none",outline:"none",color:n=>(0,G.themeColor)(n,"shift-9"),backgroundColor:n=>(0,G.themeColor)(n,"inherit"),"&:hover:not([disabled]):not([aria-current=true])":{backgroundColor:n=>(0,G.themeColor)(n,"shift-2")},"&[aria-current=true]":{backgroundColor:n=>(0,G.themeColor)(n,"shift-3",o),color:n=>(0,G.themeColor)(n,"shift-10")},"&:focus-visible":{outline:n=>`${(0,G.themeSpacing)(.5)} solid ${(0,G.themeColor)(n,"shift-6",o)}`,outlineOffset:`-${(0,G.themeSpacing)(.5)}`}}}}var Lo=r=>!!r&&typeof r.get=="function"&&r._isState===!0,qe=r=>{let o={},a=[];for(let e in r){let n=r[e];e==="x"?a.push(`translateX(${typeof n=="number"?`${n}px`:n})`):e==="y"?a.push(`translateY(${typeof n=="number"?`${n}px`:n})`):e==="scale"?a.push(`scale(${n})`):e==="rotate"?a.push(`rotate(${typeof n=="number"?`${n}deg`:n})`):o[e]=n}return a.length&&(o.transform=a.join(" ")),o};function Sr(r={}){var i,l,s,u;let{initial:o,animate:a,exit:e,transition:n={}}=r,t={duration:(i=n.duration)!=null?i:300,delay:(l=n.delay)!=null?l:0,easing:(s=n.easing)!=null?s:"ease",iterations:(u=n.iterations)!=null?u:1,fill:"both"};return{_onMount:c=>{let m=c.domElement;if(!m||typeof m.animate!="function")return;let h=Lo(a)?a.get():a;if(h?m.animate(o?[qe(o),qe(h)]:[qe(h)],t):o&&Object.assign(m.style,qe(o)),Lo(a)){let p=a.addListener(f=>{m.animate([qe(f)],t)});c.setMetadata("motionRelease",p)}},_onBeforeRemove:(c,m)=>{let h=c.domElement;if(!h||!e||typeof h.animate!="function")return m();h.animate([qe(e)],t).finished.then(m,m)},_onRemove:c=>{let m=c.getMetadata("motionRelease");m==null||m()}}}var Mo=require("@domphy/core"),Ae=require("@domphy/theme");function Cr(r={}){var a;let o=(0,Mo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="ol"&&console.warn('"orderedList" primitive patch must use ol tag')},style:{fontSize:e=>(0,Ae.themeSize)(e,"inherit"),backgroundColor:e=>(0,Ae.themeColor)(e),color:e=>(0,Ae.themeColor)(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,Ae.themeSpacing)(3),listStyleType:"decimal",listStylePosition:"outside"}}}var Ro=require("@domphy/core"),N=require("@domphy/theme");function vr(r,o){if(o<=7)return Array.from({length:o},(t,i)=>i+1);let a=[1];r>3&&a.push("...");let e=Math.max(2,r-1),n=Math.min(o-1,r+1);for(let t=e;t<=n;t++)a.push(t);return r<o-2&&a.push("..."),a.push(o),a}function Er(r){var l;let{total:o,color:a="neutral",accentColor:e="primary"}=r,n=(0,Ro.toState)((l=r.value)!=null?l:1),t={display:"inline-flex",alignItems:"center",justifyContent:"center",minWidth:s=>(0,N.themeSpacing)(6+(0,N.themeDensity)(s)*2),height:s=>(0,N.themeSpacing)(6+(0,N.themeDensity)(s)*2),paddingInline:s=>(0,N.themeSpacing)((0,N.themeDensity)(s)*2),borderRadius:s=>(0,N.themeSpacing)((0,N.themeDensity)(s)*1),border:"none",cursor:"pointer",fontSize:s=>(0,N.themeSize)(s,"inherit"),backgroundColor:"transparent",color:s=>(0,N.themeColor)(s,"shift-9",a),"&:hover:not([disabled])":{backgroundColor:s=>(0,N.themeColor)(s,"shift-2",a)},"&[disabled]":{opacity:.4,cursor:"not-allowed"}},i=lo(at({},t),{backgroundColor:s=>(0,N.themeColor)(s,"shift-6",e),color:s=>(0,N.themeColor)(s,"shift-11",e),fontWeight:"600",cursor:"default","&:hover:not([disabled])":{backgroundColor:s=>(0,N.themeColor)(s,"shift-6",e)}});return{_onInsert:s=>{s.tagName!=="div"&&console.warn('"pagination" patch must use div tag')},_onInit:s=>{let u={div:c=>{let m=n.get(c),h=[];h.push({button:"\u2039",type:"button",ariaLabel:"Previous page",disabled:m<=1,onClick:()=>m>1&&n.set(m-1),style:t});for(let p of vr(m,o))if(p==="...")h.push({span:"\u2026",style:{display:"inline-flex",alignItems:"center",paddingInline:f=>(0,N.themeSpacing)((0,N.themeDensity)(f)*2),color:f=>(0,N.themeColor)(f,"shift-7",a)}});else{let f=p===m;h.push({button:String(p),type:"button",ariaLabel:`Page ${p}`,ariaCurrent:f?"page":void 0,disabled:f,onClick:()=>n.set(p),style:f?i:t})}return h.push({button:"\u203A",type:"button",ariaLabel:"Next page",disabled:m>=o,onClick:()=>m<o&&n.set(m+1),style:t}),h},style:{display:"flex",alignItems:"center",gap:(0,N.themeSpacing)(1)}};s.children.insert(u)},style:{display:"inline-flex"}}}var _o=require("@domphy/core"),dt=require("@domphy/theme");function xr(r={}){var a;let o=(0,_o.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="p"&&console.warn('"paragraph" primitive patch must use p tag')},style:{fontSize:e=>(0,dt.themeSize)(e,"inherit"),color:e=>(0,dt.themeColor)(e,"shift-9",o.get(e)),lineHeight:1.5,marginTop:0,marginBottom:0}}}var et=require("@domphy/core");function kr(r){var h;let{open:o=!1,placement:a="bottom",openOn:e="click"}=r,n=null,t=(0,et.toState)(o),i=(0,et.toState)(a),{show:l,hide:s,anchorPartial:u}=ve({open:t,placement:i,content:r.content}),c={role:"dialog",dataTone:"shift-11",onMouseEnter:()=>e==="hover"&&l(),onMouseLeave:()=>e==="hover"&&s(),_onInsert:p=>{let f=p.attributes.get("id");n=f||p.nodeId,!f&&p.attributes.set("id",n)}};return(h=r.content).$||(h.$=[]),r.content.$.push(c),(0,et.merge)(u,{ariaHaspopup:"dialog",ariaExpanded:p=>t.get(p),onMouseEnter:()=>e==="hover"&&l(),onMouseLeave:()=>e==="hover"&&s(),onClick:()=>{e==="click"&&(t.get()?s():l())},onFocus:()=>l(),onBlur:(p,f)=>{let k=p.relatedTarget,b=f.getRoot().domElement,K=n?b.querySelector(`#${CSS.escape(n)}`):null;k&&(K!=null&&K.contains(k))||s()},_onMount:p=>n&&p.attributes.set("ariaControls",n)}),u}var No=require("@domphy/core"),ye=require("@domphy/theme");function Kt(r={}){let{placement:o="bottom-end",color:a="neutral",sideOffset:e=(0,ye.themeSpacing)(6),bordered:n=!0}=r,t=(0,No.toState)(o),i={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=c=>{var m;return(m=i[t.get(c)])!=null?m:i["bottom-end"]},s=c=>c.includes("start")?e:c.includes("end")?"auto":"50%",u=c=>c.includes("end")?e:c.includes("start")?"auto":"50%";return{style:{fontSize:c=>(0,ye.themeSize)(c),backgroundColor:c=>(0,ye.themeColor)(c),color:c=>(0,ye.themeColor)(c,"shift-9",a),position:"relative","&::after":{content:'""',position:"absolute",width:(0,ye.themeSpacing)(1.5),height:(0,ye.themeSpacing)(1.5),backgroundColor:c=>(0,ye.themeColor)(c,"inherit",a),borderWidth:n?"1px":"0px",borderColor:c=>(0,ye.themeColor)(c,"inherit",a),borderTopStyle:c=>{let m=l(c);return m.includes("top")||m.includes("right")?"solid":"none"},borderBottomStyle:c=>{let m=l(c);return m.includes("bottom")||m.includes("left")?"solid":"none"},borderLeftStyle:c=>{let m=l(c);return m.includes("top")||m.includes("left")?"solid":"none"},borderRightStyle:c=>{let m=l(c);return m.includes("bottom")||m.includes("right")?"solid":"none"},top:c=>{let m=l(c);return m.includes("top")?0:m.includes("bottom")?"auto":s(m)},right:c=>{let m=l(c);return m.includes("right")?0:m.includes("left")?"auto":u(m)},bottom:c=>{let m=l(c);return m.includes("bottom")?0:m.includes("top")?"auto":u(m)},left:c=>{let m=l(c);return m.includes("left")?0:m.includes("right")?"auto":s(m)},transform:c=>{let m=l(c),h=m.includes("right")||m.includes("end")&&!m.includes("left")?"50%":"-50%",p=m.includes("bottom")||m.includes("end")&&!m.includes("top")?"50%":"-50%";return`translate(${h},${p}) rotate(45deg)`}}}}}var Ho=require("@domphy/core"),me=require("@domphy/theme");function wr(r={}){var a;let o=(0,Ho.toState)((a=r.color)!=null?a:"neutral","color");return{dataTone:"shift-2",_onInsert:e=>{e.tagName!=="pre"&&console.warn('"preformated" primitive patch must use pre tag')},style:{fontSize:e=>(0,me.themeSize)(e,"inherit"),color:e=>(0,me.themeColor)(e,"shift-9",o.get(e)),backgroundColor:e=>(0,me.themeColor)(e,"inherit",o.get(e)),border:"none",paddingBlock:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*2),paddingInline:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*3),borderRadius:e=>(0,me.themeSpacing)((0,me.themeDensity)(e)*2)}}}var jt=require("@domphy/core"),ze=require("@domphy/theme");function Tr(r={}){var e,n;let o=(0,jt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,jt.toState)((n=r.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:(0,ze.themeSpacing)(2),border:0,borderRadius:(0,ze.themeSpacing)(999),overflow:"hidden",backgroundColor:t=>(0,ze.themeColor)(t,"shift-3",o.get(t)),"&::-webkit-progress-bar":{backgroundColor:t=>(0,ze.themeColor)(t,"shift-3",o.get(t)),borderRadius:(0,ze.themeSpacing)(999)},"&::-webkit-progress-value":{backgroundColor:t=>(0,ze.themeColor)(t,"shift-9",a.get(t)),borderRadius:(0,ze.themeSpacing)(999),transition:"width 220ms ease"}}}}var x=require("@domphy/theme");function Pr(r={}){let{color:o="neutral",accentColor:a="primary"}=r;return{_onInsert:e=>{e.tagName!=="select"&&console.warn('"select" primitive patch must use select tag')},style:{appearance:"none",fontFamily:"inherit",fontSize:e=>(0,x.themeSize)(e,"inherit"),lineHeight:"inherit",color:e=>(0,x.themeColor)(e,"shift-9",o),backgroundColor:e=>(0,x.themeColor)(e,"inherit",o),border:"none",outlineOffset:"-1px",outline:e=>`1px solid ${(0,x.themeColor)(e,"shift-4",o)}`,borderRadius:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*1),paddingBlock:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*1),paddingLeft:e=>(0,x.themeSpacing)((0,x.themeDensity)(e)*3),paddingRight:e=>(0,x.themeSpacing)((0,x.themeDensity)(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="${(0,x.themeColorToken)(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 ${(0,x.themeSpacing)(2)} center`,backgroundSize:`${(0,x.themeSpacing)(2.5)} ${(0,x.themeSpacing)(1.5)}`,"&:not([multiple])":{height:e=>(0,x.themeSpacing)(6+(0,x.themeDensity)(e)*2)},"&:hover:not([disabled]):not([aria-busy=true])":{outline:e=>`${(0,x.themeSpacing)(.5)} solid ${(0,x.themeColor)(e,"shift-5",a)}`},"&:focus-visible":{outline:e=>`${(0,x.themeSpacing)(.5)} solid ${(0,x.themeColor)(e,"shift-6",a)}`},"& optgroup":{color:e=>(0,x.themeColor)(e,"shift-11",o)},"& option[disabled]":{color:e=>(0,x.themeColor)(e,"shift-7","neutral")},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:e=>(0,x.themeColor)(e,"shift-8","neutral"),outline:e=>`1px solid ${(0,x.themeColor)(e,"shift-4","neutral")}`,backgroundColor:e=>(0,x.themeColor)(e,"shift-2","neutral")}}}}var Fe=require("@domphy/core"),ne=require("@domphy/theme");function Dr(r){let{options:o=[],placement:a="bottom",color:e="neutral",open:n=!1,multiple:t=!1}=r,i=(0,Fe.toState)(r.value),l=(0,Fe.toState)(n),{show:s,hide:u,anchorPartial:c}=ve({open:l,placement:(0,Fe.toState)(a),content:r.content}),m={onClick:()=>!t&&u()};(0,Fe.merge)(r.content,m);let h={div:f=>{let k=i.get(f),b=Array.isArray(k)?k:[k];return o.filter(w=>b.includes(w.value)).map(w=>({span:w.label,$:[Je({color:e,removable:t})],_key:w.value,_onRemove:oe=>{let W=i.get(),Xe=(Array.isArray(W)?W:[W]).filter(Ne=>Ne!==w.value);t?i.set(Xe):i.set(Xe[0])}}))},style:{display:"flex",flexWrap:"wrap",gap:(0,ne.themeSpacing)(1),flex:1}},p={_onInsert:f=>{f.tagName!=="div"&&console.warn('"selectBox" patch must use div tag')},_onInit:f=>f.children.insert(h),onClick:()=>l.get()?u():s(),style:{cursor:"pointer",display:"flex",alignItems:"center",minHeight:f=>(0,ne.themeSpacing)(6+(0,ne.themeDensity)(f)*2),minWidth:(0,ne.themeSpacing)(32),outlineOffset:"-1px",outline:f=>`1px solid ${(0,ne.themeColor)(f,"shift-4","neutral")}`,paddingInline:f=>(0,ne.themeSpacing)((0,ne.themeDensity)(f)*2),borderRadius:f=>(0,ne.themeSpacing)((0,ne.themeDensity)(f)*1),fontSize:f=>(0,ne.themeSize)(f,"inherit"),color:f=>(0,ne.themeColor)(f,"shift-9",e),backgroundColor:f=>(0,ne.themeColor)(f,"inherit",e)}};return(0,Fe.merge)(c,p),c}var te=require("@domphy/theme");function Or(r={}){let{accentColor:o="primary",color:a="neutral",value:e=null}=r;return{role:"option",_onInit:t=>{t.tagName!=="div"&&console.warn('"selectItem" patch must use div tag');let i=t.getContext("select");if(i){let l=i.value;t.attributes.set("ariaSelected",s=>{let u=l.get(s);return i.multiple?u.includes(e):u==e}),t.addEvent("click",()=>{let s=l.get();i.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=>(0,te.themeSize)(t,"inherit"),height:t=>(0,te.themeSpacing)(6+(0,te.themeDensity)(t)*2),paddingInline:t=>(0,te.themeSpacing)((0,te.themeDensity)(t)*3),border:"none",outline:"none",color:t=>(0,te.themeColor)(t,"shift-9",a),backgroundColor:t=>(0,te.themeColor)(t,"inherit",a),"&:hover:not([disabled]):not([aria-selected=true])":{backgroundColor:t=>(0,te.themeColor)(t,"shift-2",a)},"&[aria-selected=true]":{backgroundColor:t=>(0,te.themeColor)(t,"shift-6",o),color:t=>(0,te.themeColor)(t,"shift-11")},"&:focus-visible":{outline:t=>`${(0,te.themeSpacing)(.5)} solid ${(0,te.themeColor)(t,"shift-6",o)}`,outlineOffset:`-${(0,te.themeSpacing)(.5)}`}}}}var Bo=require("@domphy/core"),we=require("@domphy/theme");function Ir(r={}){var i;let{color:o="neutral",multiple:a=!1}=r,e=(0,Bo.toState)((i=r.value)!=null?i:a?[]:null),n={div:l=>{let s=e.get(l);return(Array.isArray(s)?s:[s]).map(c=>({input:null,name:r.name,value:c||""}))},hidden:!0};return{dataTone:"shift-17",_context:{select:{value:e,multiple:a}},_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=>(0,we.themeSpacing)((0,we.themeDensity)(l)*2),paddingInline:l=>(0,we.themeSpacing)((0,we.themeDensity)(l)*2),fontSize:l=>(0,we.themeSize)(l,"inherit"),backgroundColor:l=>(0,we.themeColor)(l,"inherit",o)}}}var pt=require("@domphy/core"),_e=require("@domphy/theme");function $r(r={}){var n;let o=(0,pt.toState)((n=r.color)!=null?n:"neutral","color"),a={"0%,100%":{opacity:1},"50%":{opacity:.4}},e=(0,pt.hashString)(JSON.stringify(a));return{ariaHidden:"true",dataTone:"shift-2",style:{fontSize:t=>(0,_e.themeSize)(t),color:t=>(0,_e.themeColor)(t,"shift-9",o.get(t)),height:(0,_e.themeSpacing)(6),display:"block",borderRadius:(0,_e.themeSpacing)(1),backgroundColor:t=>(0,_e.themeColor)(t,"inherit",o.get(t)),animation:`${e} 1.5s ease-in-out infinite`,[`@keyframes ${e}`]:a}}}var Ao=require("@domphy/core"),ht=require("@domphy/theme");function zr(r={}){var a;let o=(0,Ao.toState)((a=r.color)!=null?a:"neutral","color");return{dataSize:"decrease-1",_onInsert:e=>{e.tagName!=="small"&&console.warn('"small" primitive patch must use small tag')},style:{fontSize:e=>(0,ht.themeSize)(e,"inherit"),color:e=>(0,ht.themeColor)(e,"shift-9",o.get(e))}}}var ft=require("@domphy/core"),be=require("@domphy/theme"),Wo={to:{transform:"rotate(360deg)"}},Fo=(0,ft.hashString)(JSON.stringify(Wo));function Vr(r={}){var a;let o=(0,ft.toState)((a=r.color)!=null?a:"neutral","color");return{role:"status",ariaLabel:"loading",_onInsert:e=>{e.tagName!=="span"&&console.warn('"spinner" patch must use span tag')},style:{fontSize:e=>(0,be.themeSize)(e),backgroundColor:e=>(0,be.themeColor)(e),color:e=>(0,be.themeColor)(e,"shift-9",o.get(e)),display:"inline-block",margin:0,flexShrink:0,width:(0,be.themeSpacing)(6),height:(0,be.themeSpacing)(6),borderRadius:"50%",border:e=>`${(0,be.themeSpacing)(.5)} solid ${(0,be.themeColor)(e,"shift-4",o.get(e))}`,borderTopColor:e=>(0,be.themeColor)(e,"shift-9",o.get(e)),boxSizing:"border-box",padding:0,animation:`${Fo} 0.7s linear infinite`,[`@keyframes ${Fo}`]:Wo}}}var gt=require("@domphy/core"),Ge=require("@domphy/theme");function Lr(r={}){let{direction:o="horizontal",defaultSize:a=50,min:e=10,max:n=90}=r;return{_onSchedule:(t,i)=>{(0,gt.merge)(i,{_context:{splitter:{direction:o,size:(0,gt.toState)(a),min:e,max:n}}})},style:{display:"flex",flexDirection:o==="horizontal"?"row":"column",overflow:"hidden"}}}function Mr(){return{_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterPanel" patch must be used inside a "splitter"');return}let a=r.domElement,e=o.direction==="horizontal"?"width":"height";a.style[e]=`${o.size.get()}%`,a.style.flexShrink="0",a.style.overflow="auto";let n=o.size.addListener(t=>{a.style[e]=`${t}%`});r.addHook("Remove",n)}}}function Rr(){return{_onMount:r=>{let o=r.getContext("splitter");if(!o){console.warn('"splitterHandle" patch must be used inside a "splitter"');return}let a=r.domElement,e=o.direction==="horizontal";a.style.cursor=e?"col-resize":"row-resize";let n=t=>{t.preventDefault();let i=a.parentElement,l=u=>{let c=i.getBoundingClientRect(),m=e?(u.clientX-c.left)/c.width*100:(u.clientY-c.top)/c.height*100;o.size.set(Math.min(Math.max(m,o.min),o.max))},s=()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",s)};document.addEventListener("mousemove",l),document.addEventListener("mouseup",s)};a.addEventListener("mousedown",n),r.addHook("Remove",()=>a.removeEventListener("mousedown",n))},style:{flexShrink:0,display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:r=>(0,Ge.themeColor)(r,"shift-2"),"&:hover":{backgroundColor:r=>(0,Ge.themeColor)(r,"shift-3")},"&::after":{content:'""',borderRadius:(0,Ge.themeSpacing)(999),backgroundColor:r=>(0,Ge.themeColor)(r,"shift-4")}}}}var Ko=require("@domphy/core"),tt=require("@domphy/theme");function _r(r={}){var a;let o=(0,Ko.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="strong"&&console.warn('"strong" primitive patch must use strong tag')},style:{fontSize:e=>(0,tt.themeSize)(e,"inherit"),fontWeight:700,color:e=>(0,tt.themeColor)(e,"shift-11",o.get(e)),backgroundColor:e=>(0,tt.themeColor)(e)}}}var jo=require("@domphy/core"),yt=require("@domphy/theme");function Nr(r={}){var a;let o=(0,jo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="sub"&&console.warn('"subscript" primitive patch must use sub tag')},style:{fontSize:e=>(0,yt.themeSize)(e,"decrease-1"),verticalAlign:"sub",lineHeight:0,color:e=>(0,yt.themeColor)(e,"shift-9",o.get(e))}}}var Yo=require("@domphy/core"),bt=require("@domphy/theme");function Hr(r={}){var a;let o=(0,Yo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="sup"&&console.warn('"superscript" primitive patch must use sup tag')},style:{fontSize:e=>(0,bt.themeSize)(e,"decrease-1"),verticalAlign:"super",lineHeight:0,color:e=>(0,bt.themeColor)(e,"shift-9",o.get(e))}}}var j=require("@domphy/theme");function Br(r={}){let{accentColor:o="primary",color:a="neutral"}=r;return{role:"tab",_onInsert:n=>{var u,c;n.tagName!=="button"&&console.warn('"tab" patch must use button tag');let t=n.getContext("tabs");if(!t){console.warn('"tab" patch must be used inside a "tabs"');return}let i=(c=(u=n.parent)==null?void 0:u.children.items)!=null?c:[];i=i.filter(m=>m.type=="ElementNode"&&m.attributes.get("role")=="tab");let l=n.key!==null&&n.key!==void 0?n.key:i.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 K,w,oe,W;let h=m.key;if(!["ArrowLeft","ArrowRight","Home","End"].includes(h))return;m.preventDefault();let p=((w=(K=n.parent)==null?void 0:K.children.items)!=null?w:[]).filter(U=>U.type==="ElementNode"&&U.attributes.get("role")==="tab"),f=p.findIndex(U=>U===n),k=f;h==="ArrowRight"?k=(f+1)%p.length:h==="ArrowLeft"?k=(f-1+p.length)%p.length:h==="Home"?k=0:h==="End"&&(k=p.length-1);let b=p[k];t.activeKey.set((oe=b.key)!=null?oe:k),(W=b.domElement)==null||W.focus()}};n.merge(s)},style:{cursor:"pointer",fontSize:n=>(0,j.themeSize)(n,"inherit"),height:n=>(0,j.themeSpacing)(6+(0,j.themeDensity)(n)*2),paddingInline:n=>(0,j.themeSpacing)((0,j.themeDensity)(n)*4),border:"none",outline:"none",color:n=>(0,j.themeColor)(n,"shift-9"),backgroundColor:n=>(0,j.themeColor)(n,"inherit"),boxShadow:n=>`inset 0 -${(0,j.themeSpacing)(.5)} 0 0 ${(0,j.themeColor)(n,"shift-1",a)}`,"&:hover:not([disabled])":{boxShadow:n=>`inset 0 -${(0,j.themeSpacing)(.5)} 0 0 ${(0,j.themeColor)(n,"shift-2",a)}`},"&[aria-selected=true]:not([disabled])":{boxShadow:n=>`inset 0 -${(0,j.themeSpacing)(.5)} 0 0 ${(0,j.themeColor)(n,"shift-6",o)}`},"&:focus-visible":{boxShadow:n=>`inset 0 -${(0,j.themeSpacing)(.5)} 0 0 ${(0,j.themeColor)(n,"shift-6",o)}`}}}}var qo=require("@domphy/core"),D=require("@domphy/theme");function Ar(r={}){var a;let o=(0,qo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="table"&&console.warn('"table" primitive patch must use table tag')},style:{fontSize:e=>(0,D.themeSize)(e,"inherit"),color:e=>(0,D.themeColor)(e,"shift-9",o.get(e)),width:"100%",borderCollapse:"collapse","& caption":{captionSide:"bottom"},"& th, & thead td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,D.themeColor)(e,"inherit")},"& td":{textAlign:"left",paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-9",o.get(e)),boxShadow:e=>`inset 0 1px 0 ${(0,D.themeColor)(e,"shift-3",o.get(e))}`,fontSize:e=>(0,D.themeSize)(e,"inherit")},"& tfoot th, & tfoot td":{textAlign:"left",fontWeight:500,paddingInline:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*3),paddingBlock:e=>(0,D.themeSpacing)((0,D.themeDensity)(e)*1),color:e=>(0,D.themeColor)(e,"shift-10",o.get(e)),backgroundColor:e=>(0,D.themeColor)(e,"inherit"),boxShadow:e=>`inset 0 -1px 0 ${(0,D.themeColor)(e,"shift-4",o.get(e))}`},"& tr":{backgroundColor:e=>(0,D.themeColor)(e,"inherit")},"& tbody tr:hover":{backgroundColor:e=>(0,D.themeColor)(e,"shift-2")+"!important"}}}}var Ue=require("@domphy/theme");function Fr(){return{role:"tabpanel",style:{paddingBlock:o=>(0,Ue.themeSpacing)((0,Ue.themeDensity)(o)*2),paddingInline:o=>(0,Ue.themeSpacing)((0,Ue.themeDensity)(o)*2)},_onInsert:o=>{var i,l;let a=o.getContext("tabs");if(!a){console.warn('"tabPanel" patch must be used inside a "tabs"');return}let e=(l=(i=o.parent)==null?void 0:i.children.items)!=null?l:[];e=e.filter(s=>s.type=="ElementNode"&&s.attributes.get("role")=="tabpanel");let n=o.key!==null&&o.key!==void 0?o.key:e.findIndex(s=>s==o),t={id:"tabpanel"+o.parent.nodeId+n,ariaLabelledby:"tab"+o.parent.nodeId+n,hidden:s=>a.activeKey.get(s)!=n};o.merge(t)}}}var St=require("@domphy/core");function Wr(r={}){return{role:"tablist",_onSchedule:(a,e)=>{let n={_context:{tabs:{activeKey:(0,St.toState)(r.activeKey||0)}}};(0,St.merge)(e,n)}}}var Yt=require("@domphy/core"),V=require("@domphy/theme");function Kr(r={}){var n,t;let o=(0,Yt.toState)((n=r.color)!=null?n:"neutral","color"),a=(0,Yt.toState)((t=r.accentColor)!=null?t:"primary","accentColor"),{autoResize:e=!1}=r;return{_onInsert:i=>{i.tagName!=="textarea"&&console.warn('"textarea" primitive patch must use textarea tag')},_onMount:i=>{if(e){let l=i.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:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*2),paddingBlock:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*1.5),border:"none",borderRadius:i=>(0,V.themeSpacing)((0,V.themeDensity)(i)*1.5),fontSize:i=>(0,V.themeSize)(i,"inherit"),color:i=>(0,V.themeColor)(i,"shift-9",o.get(i)),outlineOffset:"-1px",outline:i=>`1px solid ${(0,V.themeColor)(i,"shift-4",o.get(i))}`,backgroundColor:i=>(0,V.themeColor)(i,"inherit",o.get(i)),"&::placeholder":{color:i=>(0,V.themeColor)(i,"shift-7")},"&:hover:not([disabled]):not([aria-busy=true])":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-5",a.get(i))}`},"&:focus-visible":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-6",a.get(i))}`},"&:invalid":{outline:i=>`${(0,V.themeSpacing)(.5)} solid ${(0,V.themeColor)(i,"shift-5","error")}`},"&[disabled]":{opacity:.7,cursor:"not-allowed",color:i=>(0,V.themeColor)(i,"shift-8","neutral"),outline:i=>`1px solid ${(0,V.themeColor)(i,"shift-4","neutral")}`,backgroundColor:i=>(0,V.themeColor)(i,"shift-2","neutral")}}}}var Go=require("@domphy/core"),Y=require("@domphy/theme");function jr(r={}){let{position:o="top-center",color:a="neutral"}=r,e=(0,Go.toState)(!1),n=o.startsWith("top"),t=o.endsWith("center"),i=o.endsWith("right"),l={div:[],id:`domphy-toast-${o}`,style:{position:"fixed",display:"flex",flexDirection:n?"column":"column-reverse",alignItems:t?"center":i?"end":"start",inset:0,gap:(0,Y.themeSpacing)(4),zIndex:30,padding:(0,Y.themeSpacing)(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:(0,Y.themeSpacing)(32),pointerEvents:"auto",paddingBlock:s=>(0,Y.themeSpacing)((0,Y.themeDensity)(s)*2),paddingInline:s=>(0,Y.themeSpacing)((0,Y.themeDensity)(s)*4),borderRadius:s=>(0,Y.themeSpacing)((0,Y.themeDensity)(s)*2),fontSize:s=>(0,Y.themeSize)(s,"inherit"),color:s=>(0,Y.themeColor)(s,"shift-9",a),backgroundColor:s=>(0,Y.themeColor)(s,"inherit",a),boxShadow:s=>`0 ${(0,Y.themeSpacing)(2)} ${(0,Y.themeSpacing)(9)} ${(0,Y.themeColor)(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 c=m=>{m.propertyName==="transform"&&(s.domElement.removeEventListener("transitionend",c),u())};s.domElement.addEventListener("transitionend",c),e.set(!1)}}}var qt=require("@domphy/core"),re=require("@domphy/theme");function Yr(r={}){var e,n;let o=(0,qt.toState)((e=r.color)!=null?e:"neutral","color"),a=(0,qt.toState)((n=r.accentColor)!=null?n:"primary","accentColor");return{role:"button",_onInsert:t=>{var c,m;t.tagName!=="button"&&console.warn('"toggle" patch must use button tag');let i=t.getContext("toggleGroup");if(!i){console.warn('"toggle" patch must be used inside a "toggleGroup"');return}let s=((m=(c=t.parent)==null?void 0:c.children.items)!=null?m:[]).filter(h=>h.type==="ElementNode"&&h.attributes.get("role")==="button"),u=t.key!==null&&t.key!==void 0?String(t.key):String(s.indexOf(t));t.attributes.set("ariaPressed",h=>{let p=i.value.get(h);return Array.isArray(p)?p.includes(u):p===u}),t.addEvent("click",()=>{let h=i.value.get();if(i.multiple){let p=Array.isArray(h)?[...h]:[];i.value.set(p.includes(u)?p.filter(f=>f!==u):[...p,u])}else i.value.set(h===u?"":u)})},style:{cursor:"pointer",fontSize:t=>(0,re.themeSize)(t,"inherit"),height:(0,re.themeSpacing)(6),paddingBlock:(0,re.themeSpacing)(1),paddingInline:(0,re.themeSpacing)(2),border:"none",borderRadius:(0,re.themeSpacing)(1),color:t=>(0,re.themeColor)(t,"shift-9",o.get(t)),backgroundColor:t=>(0,re.themeColor)(t,"inherit",o.get(t)),transition:"background-color 300ms ease","&:hover:not([disabled])":{backgroundColor:t=>(0,re.themeColor)(t,"shift-2",o.get(t))},"&[aria-pressed=true]":{backgroundColor:t=>(0,re.themeColor)(t,"shift-3",a.get(t)),color:t=>(0,re.themeColor)(t,"shift-12",a.get(t))},"&:focus-visible":{outline:t=>`${(0,re.themeSpacing)(.5)} solid ${(0,re.themeColor)(t,"shift-6",a.get(t))}`,outlineOffset:`-${(0,re.themeSpacing)(.5)}`},"&[disabled]":{opacity:.7,cursor:"not-allowed"}}}}var Uo=require("@domphy/core"),Te=require("@domphy/theme");function qr(r={}){var e;let{multiple:o=!1,color:a="neutral"}=r;return{role:"group",_context:{toggleGroup:{value:(0,Uo.toState)((e=r.value)!=null?e:o?[]:""),multiple:o}},style:{display:"flex",paddingBlock:(0,Te.themeSpacing)(1),paddingInline:(0,Te.themeSpacing)(1),gap:(0,Te.themeSpacing)(1),borderRadius:(0,Te.themeSpacing)(2),fontSize:n=>(0,Te.themeSize)(n,"inherit"),backgroundColor:n=>(0,Te.themeColor)(n,"inherit",a),outline:n=>`1px solid ${(0,Te.themeColor)(n,"shift-3",a)}`,outlineOffset:"-1px"}}}var ot=require("@domphy/core"),ue=require("@domphy/theme");function Gr(r={}){let{open:o=!1,placement:a="top",content:e="Tooltip Content"}=r,n=(0,ot.toState)(a),t=(0,ot.toState)(e),i=null,l={span:p=>t.get(p)},{show:s,hide:u,anchorPartial:c}=ve({open:o,placement:n,content:l}),m={role:"tooltip",dataSize:"decrease-1",dataTone:"shift-17",_onInsert:p=>{let f=p.attributes.get("id");i=f||p.nodeId,!f&&p.attributes.set("id",i)},style:{paddingBlock:p=>(0,ue.themeSpacing)((0,ue.themeDensity)(p)*1),paddingInline:p=>(0,ue.themeSpacing)((0,ue.themeDensity)(p)*3),borderRadius:p=>(0,ue.themeSpacing)((0,ue.themeDensity)(p)*1),color:p=>(0,ue.themeColor)(p,"shift-9"),backgroundColor:p=>(0,ue.themeColor)(p),fontSize:p=>(0,ue.themeSize)(p,"inherit")},$:[Kt({placement:n,bordered:!1})]};return l.$||(l.$=[]),l.$.push(m),(0,ot.merge)(c,{onMouseEnter:()=>s(),onMouseLeave:()=>u(),onFocus:()=>s(),onBlur:()=>u(),onKeyDown:p=>p.key==="Escape"&&u(),_onMount:p=>i&&p.attributes.set("ariaDescribedby",i)}),c}var Gt=require("@domphy/core");function Xo(r,o){return r.key!==void 0&&r.key!==null?String(r.key):`index-${o}`}function Ur(r={}){let{duration:o=300,delay:a=0}=r,e=new Map;return{_onBeforeUpdate:n=>{e=new Map,n.children.items.forEach((t,i)=>{if(!(t instanceof Gt.ElementNode))return;let l=t.domElement;l&&e.set(Xo(t,i),l.getBoundingClientRect())})},_onUpdate:n=>{n.children.items.forEach((t,i)=>{if(!(t instanceof Gt.ElementNode))return;let l=t.domElement;if(!l)return;let s=Xo(t,i),u=e.get(s);if(!u)return;let c=l.getBoundingClientRect(),m=u.left-c.left,h=u.top-c.top;if(Math.abs(m)<.5&&Math.abs(h)<.5)return;let p=l.style.transition,f=l.style.transform;l.style.transition="none",l.style.transform=`translate(${m}px, ${h}px)`,l.getBoundingClientRect(),requestAnimationFrame(()=>{l.style.transition=`transform ${o}ms ease ${a}ms`,l.style.transform="translate(0px, 0px)"});let k=()=>{l.style.transition=p,l.style.transform=f,l.removeEventListener("transitionend",b)},b=K=>{K.propertyName==="transform"&&k()};l.addEventListener("transitionend",b),setTimeout(k,o+a+34)}),e.clear()}}}var Jo=require("@domphy/core"),We=require("@domphy/theme");function Xr(r={}){var a;let o=(0,Jo.toState)((a=r.color)!=null?a:"neutral","color");return{_onInsert:e=>{e.tagName!=="ul"&&console.warn('"unorderedList" primitive patch must use ul tag')},style:{fontSize:e=>(0,We.themeSize)(e,"inherit"),backgroundColor:e=>(0,We.themeColor)(e),color:e=>(0,We.themeColor)(e,"shift-9",o.get(e)),marginTop:0,marginBottom:0,paddingLeft:(0,We.themeSpacing)(3),listStyleType:"disc",listStylePosition:"outside"}}}0&&(module.exports={abbreviation,alert,avatar,badge,blockquote,breadcrumb,breadcrumbEllipsis,button,buttonSwitch,card,code,combobox,command,commandItem,commandSearch,datePicker,descriptionList,details,dialog,divider,drawer,emphasis,figure,formGroup,heading,horizontalRule,icon,image,inputCheckbox,inputColor,inputDateTime,inputFile,inputNumber,inputOTP,inputRadio,inputRange,inputSearch,inputSwitch,inputText,keyboard,label,link,mark,menu,menuItem,motion,orderedList,pagination,paragraph,popover,popoverArrow,preformated,progress,select,selectBox,selectItem,selectList,skeleton,small,spinner,splitter,splitterHandle,splitterPanel,strong,subscript,superscript,tab,tabPanel,table,tabs,tag,textarea,toast,toggle,toggleGroup,tooltip,transitionGroup,unorderedList});
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|