@monospaced/set-core 0.11.0 → 0.13.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/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const bt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function ke(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function vt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${ke(String(t))}"`]).join(" ")}function h(e){if(e.kind==="text")return ke(e.value);if(e.kind==="raw")return e.html;const n=vt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(bt.has(e.tag))return t;const i=e.children.map(h).join("");return`${t}${i}</${e.tag}>`}function M(e){return/^[A-Za-z][\w:-]*$/.test(e)}function g(e){if(e===void 0)return;const n=e.trim();if(n){if(!M(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function V(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const ge={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],check:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],image:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21"}},{tag:"circle",attrs:{cx:"15.75",cy:"8.25",r:"2"}}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],moon:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20.5387 14.8522C20.0408 14.9492 19.5263 15 19 15C14.5817 15 11 11.4183 11 7C11 5.54296 11.3194 4.17663 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C15.9737 21 19.3459 18.4248 20.5387 14.8522Z"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],"sticky-note":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20 14H14V20M3 3H21V14L14 21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M7 9H17M7 13H10","stroke-linecap":"square"}}]}],sunny:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"}},{tag:"path",attrs:{d:"M12 21V22M12 2V3M3 12H2M22 12H21M5.63603 18.3635L4.92892 19.0706M19.0711 4.92848L18.364 5.63559M5.63601 5.63563L4.9289 4.92852M19.071 19.0707L18.3639 18.3636","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},ft=Object.keys(ge);function be(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?be(n.children):[]}))}function N({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const d=ge[i];if(!d)throw new Error(`Unknown icon name: ${i}`);const o=g(n),s=a?.trim();if(!e&&!s)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!o)throw new Error("id must be provided when ariaHidden is false.");const l=e?void 0:`${o}-title`,p=[];return e||p.push({kind:"element",tag:"title",attrs:{id:l},children:[{kind:"text",value:s}]}),p.push(...be(d)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":l,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:o,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:p}}function ve(e){return h(N(e))}const yt={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Y(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:d,id:o,icon:s,iconMirrored:l,iconPlacement:p="start",label:c,labelVisibility:u="visible",name:m,size:y="md",tone:k="default",type:v,value:z}=e,S=s||void 0,b=!!S;if(u!=="visible"&&!b)throw new Error("labelVisibility requires icon when label is not visible.");const E=b&&S?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:ve({ariaHidden:!0,mirrored:l,name:S,size:"fill"})}]}:null,w={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":d||void 0,class:"set-button","data-appearance":n,"data-label-visibility":u==="visible"?void 0:u,"data-size":y,"data-tone":k==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:o||void 0,name:m||void 0,type:v||"button",value:z||void 0},children:E?p==="end"?[w,E]:[E,w]:[w]}}function J(e){return h(Y(e))}const wt={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},O="set-alert",re="set-alert-before-dismiss",ae="set-alert-dismiss",B="Dismiss alert";function St(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=J({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function Et(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";case"info":return"info-circle";default:return"sticky-note"}}function xt(e){return e==="warning"||e==="error"?"alert":"status"}function fe({dismissible:e,dismissibleLabel:n=B,id:t,inlineSize:i="full",message:r,size:a="md",tone:d,title:o}){const s=g(t),l=n.trim()===""?B:n,p=[];return o&&p.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:o}]}),p.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:O,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?l:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":d||void 0,id:s,role:xt(d)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[N({ariaHidden:!0,name:Et(d),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:p}]}}function Ct(e){return h(fe(e))}function ye(){if(customElements.get(O))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(re,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ae,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(St(this.getAttribute("data-dismissible-label")??B,this.ownerDocument))}}customElements.define(O,e)}const zt={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:O,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:B,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[re]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[ae]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:B}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Tt(e){if(e)return e===!0?!0:e}function oe(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:d,iconPlacement:o="start",label:s,labelVisibility:l="visible",rel:p,size:c="md",target:u,tone:m="default",underline:y}=e,k=g(a),v=d?.trim()||void 0;if(l!=="visible"&&!!!v)throw new Error("labelVisibility requires icon when label is not visible.");const S=Tt(i),b=v?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:v}]}:null,E={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:s}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":l==="visible"?void 0:l,"data-size":c,"data-tone":m==="neutral"?"neutral":void 0,"data-underline":y&&n==="text"?!0:void 0,download:S,href:r,id:k,rel:S?void 0:p||void 0,target:S?void 0:u||void 0},children:b?o==="end"?[E,b]:[b,E]:[E]}}function _t(e){return h(oe(e))}const Lt={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},R="set-banner",de="set-banner-before-dismiss",se="set-banner-dismiss",Q="Dismiss banner";function Mt(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=J({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function we({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=Q,id:r,message:a,tone:d}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const o=g(r),s=i.trim()===""?Q:i,l=[{kind:"text",value:a}];return e&&n&&(l.push({kind:"text",value:" "}),l.push(oe({href:e,label:n,underline:!0}))),{kind:"element",tag:R,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?s:void 0,"data-tone":d||void 0,id:o},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:l}]}}function It(e){return h(we(e))}function Se(){if(customElements.get(R))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(de,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(se,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(Mt(this.getAttribute("data-dismissible-label")??Q,this.ownerDocument))}}customElements.define(R,e)}const At={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:R,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:Q,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","warning","error"]}}},events:{[de]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[se]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},W="set-lightswitch",le="set-lightswitch-change",X="set-theme",ee="Switch to dark theme",te="Switch to light theme";function qt(e){return e==="dark"?"light":"dark"}function Pt(e){return e==="dark"?"moon":"sunny"}function ue(e,n){return{kind:"element",tag:"span",attrs:{class:"option","data-option":e},children:[{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[N({ariaHidden:!0,name:Pt(e),size:"fill"})]},{kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:n}]}]}}function Ee({appearance:e="text",id:n,labelDark:t=ee,labelLight:i=te,size:r="md"}){const a=g(n),d=t.trim()===""?ee:t,o=i.trim()===""?te:i;return{kind:"element",tag:W,attrs:{class:"set-lightswitch",id:a},children:[{kind:"element",tag:"button",attrs:{class:"toggle","data-appearance":e,"data-size":r,type:"button"},children:[ue("dark",d),ue("light",o)]}]}}function Nt(e){return h(Ee(e))}function xe(){if(customElements.get(W))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest("button"))return;const r=qt(this.#u());r===this.#r()?this.#d():this.#n(r),this.#a(),this.dispatchEvent(new CustomEvent(le,{bubbles:!0,detail:{stored:!!this.#i(),theme:r}}))};connectedCallback(){this.removeEventListener("click",this.#e),this.addEventListener("click",this.#e),this.#i()&&this.#a()}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){try{return this.ownerDocument.defaultView?.localStorage}catch{return}}#i(){try{const t=this.#t()?.getItem(X);return t==="light"||t==="dark"?t:void 0}catch{return}}#n(t){try{this.#t()?.setItem(X,t)}catch{}}#d(){try{this.#t()?.removeItem(X)}catch{}}#r(){const t=this.ownerDocument.defaultView;return!t||typeof t.matchMedia!="function"?"light":t.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}#c(){return this.closest(".set")}#s(){const t=this.#c()?.getAttribute("data-set-theme");return t==="light"||t==="dark"?t:void 0}#u(){return this.#i()??this.#s()??this.#r()}#a(){const t=this.#c();if(!t)return;const i=this.#i();i?t.setAttribute("data-set-theme",i):t.removeAttribute("data-set-theme")}}customElements.define(W,e)}const Dt={name:"lightswitch",description:"Use `lightswitch` to let users toggle between light and dark themes.",output:{element:W,class:"set-lightswitch"},content:{kind:"none"},props:{appearance:{default:"text",description:"Visual appearance of the toggle button.",type:{kind:"enum",values:["outline","solid","text"]}},id:{description:"DOM id.",type:{kind:"string"}},labelDark:{default:ee,description:"Accessible label of the switch-to-dark action.",type:{kind:"string"}},labelLight:{default:te,description:"Accessible label of the switch-to-light action.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{[le]:{bubbles:!0,description:"Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."}},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"button"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"toggle"}},{target:{on:"descendant",selector:"button"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"descendant",selector:"button"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"button"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}}]}},U="set-menu",pe="set-menu-choose";function Ce({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:d,triggerLabel:o,triggerLabelVisibility:s}){const l=n.trim();if(!l)throw new Error("id must be a non-empty string.");if(!M(l))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const p=`${l}-button`,c=`${l}-popup`,u=t.map(m=>({kind:"element",tag:"button",attrs:{"aria-disabled":m.disabled?"true":void 0,"data-item-id":m.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:m.label}]}));return{kind:"element",tag:U,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:l},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[Y({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:d,id:p,label:o,labelVisibility:s,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":p,class:"popup",hidden:!0,id:c,role:"menu"},children:u}]}}function Ht(e){return h(Ce(e))}function ze(){if(customElements.get(U))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#p(),this.#o(!1),this.#k()}disconnectedCallback(){this.#p()}#d(){return this.querySelector('[data-part="trigger"] .set-button')}#r(){return this.querySelector('[role="menu"]')}#c(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#s(t){return t.getAttribute("aria-disabled")==="true"}#u(){return this.hasAttribute("data-open")}#a(t){const i=this.#c();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#l(t=0){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#a(t))}#o(t=!1){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#h(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(pe,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#k(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#u()){this.#o();return}this.#l(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#s(r)||(this.#h(r),this.#o(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#u()&&!this.contains(i)&&this.#o()},this.#n=t=>{const i=this.#d(),r=this.#r();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#u()){t.preventDefault(),this.#o(!0);return}const a=this.ownerDocument.activeElement,d=this.#c(),o=d.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#l(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#l(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#l(d.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#s(a)||(this.#h(a),this.#o(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#a(o+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#a(o-1)),t.key==="Home"&&(t.preventDefault(),this.#a(0)),t.key==="End"&&(t.preventDefault(),this.#a(d.length-1)),t.key==="Tab"&&this.#o(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#o();return}this.contains(i)||this.#o()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#p(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(U,e)}const Vt={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:U,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[pe]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},ie="Menu";function Te({controlsId:e,expanded:n,id:t,label:i=ie,size:r="md"}={}){const a=g(t),d=i.trim()===""?ie:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:d}]}]}]}}function _e(e={}){return h(Te(e))}const Ot={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:ie,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},G="set-nav",he="data-set-scroll-locked";function Le({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:d,size:o="md"}){const s=g(r),l=t?.trim()||void 0,p=n?.trim();if(e&&!p)throw new Error("contentId must be a non-empty string when collapsible is set.");if(p&&!M(p))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(u=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":u.current?"page":void 0,class:"item",href:u.href},children:[{kind:"text",value:u.label}]}]}));return{kind:"element",tag:G,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&l?l:void 0,"data-expander-position":e?i:void 0,"data-size":o,id:s},children:[{kind:"element",tag:"nav",attrs:{"aria-label":d||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:p},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function Bt(e){return h(Le(e))}function Me(){if(customElements.get(G))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#o(),this.#h(),this.#c(),this.#u(),this.#a()}disconnectedCallback(){this.#s(!1),this.#o(),this.#h()}#d(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#r(){return this.querySelector('[data-part="expander"] .set-expander')}#c(){const t=this.#d();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${_e({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#s(t){const i=this.#r();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#l(t))}#u(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#r();r&&this.#s(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#a(){const t=this.#d(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#s(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#s(!1)},r.addEventListener("change",this.#n)}#l(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(he,"");return}i.removeAttribute(he)}}#o(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#h(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(G,e)}const Rt={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:G,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},$="set-range";function Ie({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:d,name:o,size:s="md",step:l,value:p}){const c=t.trim(),u=e?.trim(),m=o?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const y=u?`${c}-description`:void 0,k=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:p!=null?[{kind:"text",value:String(p)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":y,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:d!=null?String(d):void 0,name:m||void 0,step:l!=null?String(l):void 0,type:"range",value:p!=null?String(p):void 0},children:[]}];return u&&k.push({kind:"element",tag:"p",attrs:{class:"description",id:y},children:[{kind:"text",value:u}]}),{kind:"element",tag:$,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":s},children:k}}function Wt(e){return h(Ie(e))}function Ae(){if(customElements.get($))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#d(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#r()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#d(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#r();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,d=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(o){a.call(this,o),d()}}),this.#e=t}#r(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define($,e)}const Ut={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:$,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},F="set-sidebar",Gt="(min-width: 68em)",H="Collapse sidebar",ne="Open sidebar";function $t(e,n){return`<div data-part="close">${J({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function qe({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=H,footer:r,header:a,id:d,surface:o,triggerLabel:s=ne}){const l=d.trim(),p=i.trim()||H,c=s.trim()||ne;if(!l)throw new Error("id must be a non-empty string.");if(!M(l))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const u=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&u.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const m=`${l}-panel`;return{kind:"element",tag:F,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":p!==H?p:void 0,"data-button-size":n,id:l},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[Y({appearance:"text",controls:m,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":o,id:m,tabindex:"-1"},children:u},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function Ft(e){return h(qe(e))}function Pe(){if(customElements.get(F))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#l(),this.#g(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#b(!0)}close(){this.#b(!1)}#d(){return this.querySelector(".sidebar")}#r(){return this.querySelector('[data-part="close"] .set-button')}#c(){return this.querySelector('[data-part="trigger"] .set-button')}#s(){return this.hasAttribute("data-open")}#u(){return this.hasAttribute("data-collapsed")}#a(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#l(){const t=this.#d();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||H,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",$t(r,a))}#o(){this.querySelector('[data-part="close"]')?.remove()}#h(){const t=this.#r();if(t){t.focus();return}this.#d()?.focus()}#k(){return this.#e?.matches??!1}#p({collapsed:t,open:i}){const r=this.#c();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#g(){const t=this.#a();if(this.#k()){if(t==="overlay"){this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1);return}if(t==="collapsible"){this.#l(),this.#p({collapsed:this.#u(),open:!0}),this.#m(!1);return}this.#o(),this.#p({collapsed:!1,open:!0}),this.#m(!1);return}this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1)}#b(t){const i=this.#a();if(this.#k()){if(i==="persistent"){this.#p({collapsed:!1,open:!0}),this.#m(!1);return}if(i==="collapsible"){this.#p({collapsed:!t,open:!0}),this.#m(!1),t&&this.#h();return}}if(this.#s()!==t){if(t){this.#p({collapsed:!1,open:!0}),this.#m(!0),this.#h();return}this.#p({collapsed:!1,open:!1}),this.#m(!1),this.#c()?.focus()}}#m(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(Gt),this.#n=()=>{this.#g()},this.#e.addEventListener("change",this.#n),this.#g()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#k()&&this.#a()==="collapsible"){this.#b(this.#u());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(F,e)}const Zt={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:F,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:H,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:ne,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:H}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}},Z="set-video";function Ne({autoPlay:e,controls:n,fit:t="intrinsic",height:i,id:r,loop:a,muted:d,playsInline:o,poster:s,preload:l,src:p,width:c}){const u=g(r),m=p.trim(),y=s?.trim();if(!m)throw new Error("src must be a non-empty string.");const k={kind:"element",tag:"video",attrs:{autoplay:!!e,class:"video",controls:!!n,height:i?String(i):void 0,loop:!!a,muted:!!d,playsinline:!!o,poster:y||void 0,preload:l,src:m,width:c?String(c):void 0},children:[]};return{kind:"element",tag:Z,attrs:{class:"set-video","data-fluid":t==="fluid",id:u},children:[k]}}function jt(e){return h(Ne(e))}const Kt="(prefers-reduced-motion: reduce)";function De(){if(customElements.get(Z))return;class e extends HTMLElement{#e=!1;#t;#i;connectedCallback(){const t=this.querySelector("video");if(!t||(this.#e||=t.hasAttribute("autoplay"),!this.#e))return;const i=this.ownerDocument.defaultView;!i||typeof i.matchMedia!="function"||(this.#t=i.matchMedia(Kt),this.#i=()=>{this.#n()},this.#t.addEventListener("change",this.#i),this.#n())}disconnectedCallback(){this.#t&&this.#i&&this.#t.removeEventListener("change",this.#i),this.#t=void 0,this.#i=void 0}#n(){const t=this.querySelector("video");!t||!this.#t||(this.#t.matches?(t.removeAttribute("autoplay"),t.pause()):(t.setAttribute("autoplay",""),t.paused&&t.play()?.catch?.(()=>{})))}}customElements.define(Z,e)}const Xt={name:"video",description:"Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",output:{element:Z,class:"set-video"},content:{kind:"none"},props:{autoPlay:{default:!1,description:"Starts playback automatically. Browsers only honor this when `muted` is also set. Suspended when the user prefers reduced motion.",type:{kind:"boolean"}},controls:{default:!1,description:"Shows the browser's native playback controls.",type:{kind:"boolean"}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the video's own dimensions, `fluid` scales to the container's full inline size at the video's aspect ratio.",type:{kind:"enum",values:["intrinsic","fluid"]}},height:{description:"Intrinsic height in pixels. With `width`, reserves the correctly shaped box before the media loads; rendered height always follows the aspect ratio.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},loop:{default:!1,description:"Restarts playback when the video ends.",type:{kind:"boolean"}},muted:{default:!1,description:"Starts playback silent. Required for `autoPlay` to take effect in most browsers.",type:{kind:"boolean"}},playsInline:{default:!1,description:"Plays inline instead of fullscreen on iOS. Required for `autoPlay` on iOS.",type:{kind:"boolean"}},poster:{description:"Image URL shown before playback begins.",type:{kind:"string"}},preload:{description:"Preload hint. Omitted by default, deferring to the browser.",type:{kind:"enum",values:["auto","metadata","none"]}},src:{description:"Video source URL.",required:!0,type:{kind:"string"}},width:{description:"Intrinsic width in pixels. Sets the rendered width, capped at the container; under `fluid`, an aspect-ratio hint only.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"video"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"video"}},{target:{on:"descendant",selector:"video"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"video"},attribute:"autoplay",condition:{kind:"when-truthy",prop:"autoPlay"}},{target:{on:"descendant",selector:"video"},attribute:"controls",condition:{kind:"when-truthy",prop:"controls"}},{target:{on:"descendant",selector:"video"},attribute:"loop",condition:{kind:"when-truthy",prop:"loop"}},{target:{on:"descendant",selector:"video"},attribute:"muted",condition:{kind:"when-truthy",prop:"muted"}},{target:{on:"descendant",selector:"video"},attribute:"playsinline",condition:{kind:"when-truthy",prop:"playsInline"}},{target:{on:"descendant",selector:"video"},attribute:"poster",condition:{kind:"when-non-empty",prop:"poster"},value:{kind:"prop",prop:"poster"}},{target:{on:"descendant",selector:"video"},attribute:"preload",condition:{kind:"when-provided",prop:"preload"},value:{kind:"prop",prop:"preload"}}]}};function Qt(e){return e?/[A-Za-z]/.test(e):!1}function Yt(e){return/^[a-z]/.test(e)}function P(e){const n=e.charAt(0);return Qt(n)?n:void 0}function He(e){const n=V(e);if(!n)return;const t=n.split(" "),i=P(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(Yt);if(a){const o=P(a);return o?`${r[0]}${o}`:void 0}if(t.length===2){const o=P(t[1]);if(!o)return;r.push(o);const s=t[1].split("-").filter(Boolean);if(s.length===2){const l=P(s[1]);l&&r.push(l)}return r.slice(0,3).join("")}if(t.length===3){const o=P(t[1]),s=P(t[2]);return!o||!s?void 0:(r.push(o,s),r.slice(0,3).join(""))}const d=P(t.at(-1)||"");if(d)return r.push(d),r.slice(0,3).join("")}const Jt={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},me=["01","02","03","04","05","06","07","08","09"];function ei(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function ti(e){if(e==null)return;const n=V(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function ii({alt:e,ariaHidden:n,name:t}){if(!n)return V(e)||V(t)||"Avatar"}function ni({color:e,name:n}){if(e)return e;if(n){const t=ei(n)%me.length;return me[t]}return"neutral"}function Ve({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:d,size:o="md",src:s}){const l=g(r),p=ti(a),c=V(d),u=V(s),m=ii({alt:e,ariaHidden:n,name:c}),y=p||He(c),k=!!u,v=ni({color:t,name:c}),z={"aria-hidden":n?"true":void 0,"aria-label":!n&&!k?m:void 0,class:"set-avatar","data-color":v==="neutral"?void 0:v,"data-entity":i==="person"?void 0:i,"data-size":o,id:l,role:!n&&!k?"img":void 0};let S;return k?S={kind:"element",tag:"img",attrs:{alt:n?"":m||"",class:"img",src:u},children:[]}:y?S={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:y}]}:S={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[N({ariaHidden:!0,name:Jt[i],size:"fill"})]},{kind:"element",tag:"span",attrs:z,children:[S]}}function ri(e){return h(Ve(e))}const ai={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Oe({floating:e,id:n,label:t,size:i="md",tone:r}){const a=g(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function oi(e){return h(Oe(e))}const di={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["notification","live","pending","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function j({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,monospaced:d,responsive:o,size:s="md",tone:l="default"}){const p=g(i),c=n==="p"?"p":"span",u=c==="p",m=u?e??"start":void 0;return{kind:"element",tag:c,attrs:{class:"set-text","data-align":m&&m!=="start"?m:void 0,"data-link-visited":r?void 0:"off","data-measured":u?a??!0:void 0,"data-monospaced":d,"data-responsive":o,"data-size":s,"data-tone":l==="muted"?"muted":void 0,id:p},children:[{kind:"raw",html:t}]}}function si(e){return h(j(e))}const li={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Be({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:d="md"}){const o=g(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:o},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[j({align:e,as:"p",children:r,measured:i,responsive:a,size:d})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[j({as:"span",children:n,responsive:a,size:"sm"})]}]}}function pi(e){return h(Be(e))}const ci={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Re({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:d,responsive:o,surface:s}){const l=g(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":s,"data-padding-block":r,"data-padding-inline":a,"data-radius":d,"data-responsive":o,id:l},children:t?[{kind:"raw",html:t}]:[]}}function ui(e){return h(Re(e))}const hi={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function We({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:d}){const o=g(i),s=n?`h${n}`:"div",l=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:d}]}]:[{kind:"text",value:d}],p=r?[{kind:"raw",html:r}]:[];r&&t&&p.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[N({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:s,attrs:{class:"title"},children:l},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:p}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:o},children:c}}function mi(e){return h(We(e))}const ki={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ue({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,required:o,size:s="md",value:l}){const p=g(i),c=n?.trim();if(c&&!p)throw new Error("id must be provided when description is provided.");const u=c?`${p}-description`:void 0,m=!!t,k=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":u,"aria-invalid":!m&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:m,id:p,name:d||void 0,required:!!o,type:"checkbox",value:l||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&k.push({kind:"element",tag:"p",attrs:{class:"description",id:u},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":s},children:k}}function gi(e){return h(Ue(e))}const bi={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ge({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function vi(e){return h(Ge(e))}const fi={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function $e({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=g(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[N({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function yi(e){return h($e(e))}const wi={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Fe({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=g(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function Si(e={}){return h(Fe(e))}const Ei={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ce({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:d="full"}){const o=n?.trim(),s=i.trim();if(!s)throw new Error("id must be a non-empty string.");if(!M(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const l=o?`${s}-description`:void 0,p=!!t,c=!p&&!!r,u=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return o&&u.push({kind:"element",tag:"p",attrs:{class:"description",id:l},children:[{kind:"text",value:o}]}),e&&u.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":o?l:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":d==="fit"?"fit":void 0,disabled:p,id:s},children:u}}function xi(e){return h(ce(e))}const Ci={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function Ze({align:e="start",caption:n,children:t,id:i,responsive:r=!1}){const a=g(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,id:a},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[j({as:"span",children:n,responsive:r,size:"sm"})]}]}}function zi(e){return h(Ze(e))}const Ti={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},T=e=>{if(e!==void 0)return String(e)};function je({children:e,gap:n="default",id:t}){const i=g(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function _i(e){return h(je(e))}function Ke({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:d,colStartWide:o,id:s,justify:l,rowSpan:p,rowSpanNarrow:c,rowSpanWide:u,rowStart:m,rowStartNarrow:y,rowStartWide:k}){const v=g(s);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":l,"data-col-span-narrow":T(i),"data-col-start-narrow":T(d),"data-col-span":T(t),"data-col-start":T(a),"data-col-span-wide":T(r),"data-col-start-wide":T(o),"data-row-span-narrow":T(c),"data-row-start-narrow":T(y),"data-row-span":T(p),"data-row-start":T(m),"data-row-span-wide":T(u),"data-row-start-wide":T(k),id:v},children:n?[{kind:"raw",html:n}]:[]}}function Li(e){return h(Ke(e))}const Mi={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},_={kind:"number",min:1,max:12,integer:!0},Ii={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:_},colStart:{description:"Starting column at the default breakpoint.",type:_},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:_},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:_},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},rowStart:{description:"Starting row at the default breakpoint.",type:_},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:_},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:_},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:_},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:_}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Xe({align:e="start",id:n,level:t,opticalAlign:i,responsive:r,size:a="md",text:d}){const o=g(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-optical-align":i,"data-responsive":r,"data-size":a,id:o},children:[{kind:"text",value:d}]}}function Ai(e){return h(Xe(e))}const qi={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},opticalAlign:{default:!1,description:"Optically aligns left sidebearing-heavy glyphs with the content edge.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-optical-align",condition:{kind:"when-truthy",prop:"opticalAlign"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Qe({adaptive:e,alt:n="",aspectRatio:t,fit:i="intrinsic",gravity:r="C",height:a,id:d,lazy:o,priority:s,radius:l,shadow:p,sizes:c,sources:u,src:m,srcSet:y,width:k}){const v=i==="cover",z=g(d),S=m.trim(),b=y?.trim(),E=c?.trim(),w=u?.map((f,L)=>{const q=f.srcSet.trim(),C=f.media?.trim(),K=f.type?.trim(),gt=f.sizes?.trim();if(!q)throw new Error(`sources[${L}].srcSet must be non-empty.`);return{height:f.height,media:C||void 0,sizes:gt||void 0,srcSet:q,type:K||void 0,width:f.width}})||[];if(!S)throw new Error("src must be a non-empty string.");if(e&&[S,b,...w.map(f=>f.srcSet)].some(f=>f?.includes("#")))throw new Error("adaptive sources must not contain URL fragments.");const x=(f,L)=>f.split(/,\s+/).map(q=>{const[C,...K]=q.trim().split(/\s+/);if(!C||K.length>1)throw new Error("adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace.");return[`${C}#${L}`,...K].join(" ")}).join(", "),I=f=>{const L={kind:"element",tag:"img",attrs:{alt:n,class:"img","data-scheme":f&&w.length===0?f:void 0,fetchpriority:s?"high":void 0,height:v?void 0:a?String(a):void 0,loading:o&&!s?"lazy":void 0,sizes:w.length>0?void 0:E||void 0,src:f?`${S}#${f}`:S,srcset:b&&f?x(b,f):b||void 0,width:v?void 0:k?String(k):void 0},children:[]};if(w.length===0)return L;const q=w.map(C=>({kind:"element",tag:"source",attrs:{height:C.height?String(C.height):void 0,media:C.media,sizes:C.sizes,srcset:f?x(C.srcSet,f):C.srcSet,type:C.type,width:C.width?String(C.width):void 0},children:[]}));return{kind:"element",tag:"picture",attrs:{"data-scheme":f},children:[...q,L]}},D=e?[I("light"),I("dark")]:[I()],A=[];return a&&A.push(`--set-image-block-size: ${a/16}rem`),k&&A.push(`--set-image-inline-size: ${k/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-adaptive":!!e,"data-aspect-ratio":v&&!a?t:void 0,"data-fluid":i==="fluid","data-gravity":v&&r!=="C"?r:void 0,"data-shadow":!!p,"data-object-fit":v?"cover":void 0,"data-radius":!!l,id:z,style:A.length>0?A.join("; "):void 0},children:D}}function Ye(e){return h(Qe(e))}const Pi={name:"image",description:"Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{adaptive:{default:!1,description:"Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL.",type:{kind:"boolean"}},alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:'`fit` is not `"cover"`',type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{default:!1,description:"Applies the default corner radius.",type:{kind:"boolean"}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:'`fit` is not `"cover"`, or `height` is set',type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",type:{kind:"enum",values:["intrinsic","fluid","cover"]}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",ignoredWhen:"`sources` are provided",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-adaptive",condition:{kind:"when-truthy",prop:"adaptive"}},{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-equals",prop:"fit",to:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-truthy",prop:"radius"}},{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:d}){const o=g(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":d,id:o},children:t?[{kind:"raw",html:t}]:[]}}function Ni(e){return h(Je(e))}const Di={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function et({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,pattern:o,readOnly:s,required:l,size:p="md",spellcheck:c,type:u="text",value:m,inlineSize:y="full"}){const k=i.trim(),v=n?.trim(),z=e===!1?!1:e?.trim(),S=d?.trim(),b=o?.trim(),E=m;if(!k)throw new Error("id must be a non-empty string.");if(!M(k))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const w=v?`${k}-description`:void 0,x=u==="numeric",I=x?"text":u,D=b||(x?"^[0-9]*$":void 0),A=c===void 0&&x?!1:c,f=!!t,L=!f&&!!s,C=[{kind:"element",tag:"label",attrs:{class:"label",for:k},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":w,"aria-invalid":!f&&!L&&!!r?"true":void 0,autocomplete:z===!1?"off":z||void 0,class:"input",disabled:f,id:k,inputmode:x?"numeric":void 0,name:S||void 0,pattern:D,readonly:L,required:!!l,spellcheck:A===void 0?void 0:String(A),type:I,value:E},children:[]}];return v&&C.push({kind:"element",tag:"p",attrs:{class:"description",id:w},children:[{kind:"text",value:v}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":p,"data-inline-size":y==="fit"?"fit":void 0},children:C}}function Hi(e){return h(et(e))}const Vi={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}},Oi="0 0 6714.6 1200",Bi="0 0 600 1200",Ri=[{x:0,y:0},{x:300,y:0},{x:150,y:300},{x:450,y:300},{x:0,y:600},{x:300,y:600},{x:150,y:900},{x:450,y:900}],Wi="M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180",Ui=1163,tt=()=>({kind:"element",tag:"g",attrs:{class:"mark"},children:Ri.map(({x:e,y:n})=>({kind:"element",tag:"rect",attrs:{height:"300",width:"150",x:String(e),y:String(n)},children:[]}))}),Gi=()=>({kind:"element",tag:"g",attrs:{class:"word",transform:`translate(${Ui} 0)`},children:[{kind:"element",tag:"path",attrs:{d:Wi},children:[]}]}),it=(e,n)=>({kind:"element",tag:"svg",attrs:{"aria-hidden":"true",viewBox:e,xmlns:"http://www.w3.org/2000/svg"},children:n});function $i(){return it(Oi,[tt(),Gi()])}function Fi(){return it(Bi,[tt()])}function nt({animated:e,id:n,label:t,size:i="md",tone:r="default",variant:a="primary"}){const d=g(n),o=!!e&&(a==="primary"||a==="graphic"),s=[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:t}]}];return o&&s.push(a==="graphic"?Fi():$i()),{kind:"element",tag:"div",attrs:{class:"set-logo","data-animated":o,"data-size":i,"data-tone":r==="neutral"?"neutral":void 0,"data-variant":a==="primary"?void 0:a,id:d},children:s}}function Zi(e){return h(nt(e))}const ji={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{animated:{default:!1,description:"Plays the logo's boot animation once on render. Animates the `primary` and `graphic` variants; others render static.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-animated",condition:{kind:"all",of:[{kind:"when-truthy",prop:"animated"},{kind:"when-in",prop:"variant",values:["primary","graphic"]}]}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function rt({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:d="md",id:o,stickyHeader:s}){const l=g(o),p=[];return e&&p.push({kind:"raw",html:e}),p.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),p.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),p.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":d,"data-sticky-header":s,id:l},children:p}}function Ki(e){return h(rt(e))}const Xi={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function at({children:e,id:n,padding:t="md",surface:i}){const r=g(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Qi(e){return h(at(e))}const Yi={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ot({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=g(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function Ji(e={}){return h(ot(e))}const en={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function tn(e){return Ye({...e,alt:"",fit:"cover",priority:!0})}function dt({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=g(t),d=n?r??"default":r,o=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&o.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":d,id:a},children:o}}function nn(e){return h(dt(e))}const rn={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",ignoredWhen:"`media` is adaptive (it matches the surrounding scheme by itself)",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function st({align:e="start",children:n,hangingPunctuation:t,id:i,linkVisited:r=!0,measured:a=!0,monospaced:d,responsive:o}){const s=g(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-link-visited":r?void 0:"off","data-measured":a,"data-monospaced":d,"data-responsive":o,id:s},children:[{kind:"raw",html:n}]}}function an(e){return h(st(e))}const on={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the prose.",type:{kind:"boolean"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function lt({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:d,orientation:o="vertical",required:s,size:l="md",value:p}){const c=t.trim(),u=d.trim(),m=p?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!M(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!u)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const y=r.map((b,E)=>{const w=b.value.trim(),x=b.label.trim(),I=b.description?.trim();if(!w)throw new Error(`radios[${E}].value must be non-empty.`);if(!x)throw new Error(`radios[${E}].label must be non-empty.`);return{description:I,disabled:!!b.disabled,label:x,value:w}});if(new Set(y.map(b=>b.value)).size!==y.length)throw new Error("radios values must be unique.");const v=!!n,z=y.map(b=>{const E=!!b.disabled,w=b.description?`${c}-${b.value}-description`:void 0,x=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":w,checked:m===b.value,class:"radio",disabled:E,name:u,required:!!s&&!v&&!E,type:"radio",value:b.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:b.label}]}]}];return b.description&&x.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:w},children:[{kind:"text",value:b.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:x}});return ce({children:h({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":o,"data-size":l},children:z}),description:e,disabled:v,id:c,invalid:i,legend:a})}function dn(e){return h(lt(e))}const sn={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function pt({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:d,theme:o}){const s=g(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":o,id:s,lang:d===""?void 0:d,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function ln(e){return h(pt(e))}const pn={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ct({id:e,label:n,size:t="md",tone:i="default"}={}){const r=g(e),d=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([o,s])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(o),y:String(s),width:"180",height:"180"},children:[]}))}];return n&&d.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:d}}function cn(e={}){return h(ct(e))}const un={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const d=g(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:d},children:t?[{kind:"raw",html:t}]:[]}}function hn(e){return h(ut(e))}const mn={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg","xl"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ht({children:e,contentTheme:n,id:t,variant:i="default"}){const r=g(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function kn(e){return h(ht(e))}const gn={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function mt({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:d="md",value:o}){const s=g(i),l=n?.trim();if(l&&!s)throw new Error("id must be provided when description is provided.");const p=l?`${s}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":p,checked:!!e,class:"switch",disabled:!!t,id:s,name:a||void 0,role:"switch",type:"checkbox",value:o||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return l&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:p},children:[{kind:"text",value:l}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":d},children:c}}function bn(e){return h(mt(e))}const vn={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function kt({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:d,readOnly:o,required:s,resize:l="vertical",rows:p=2,size:c="md",spellcheck:u,value:m,inlineSize:y="full"}){const k=i.trim(),v=n?.trim(),z=e===!1?!1:e?.trim(),S=d?.trim(),b=m;if(!k)throw new Error("id must be a non-empty string.");if(!M(k))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(p)||p<2)throw new Error("rows must be an integer greater than or equal to 2.");const E=v?`${k}-description`:void 0,w=!!t,x=!w&&!!o,D=[{kind:"element",tag:"label",attrs:{class:"label",for:k},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":E,"aria-invalid":!w&&!x&&!!r?"true":void 0,autocomplete:z===!1?"off":z||void 0,class:"textarea",disabled:w,id:k,name:S||void 0,readonly:x,required:!!s,rows:String(p),spellcheck:u===void 0?void 0:String(u)},children:[{kind:"text",value:b||""}]}];return v&&D.push({kind:"element",tag:"p",attrs:{class:"description",id:E},children:[{kind:"text",value:v}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":l==="none"?"none":void 0,"data-size":c,"data-inline-size":y==="fit"?"fit":void 0},children:D}}function fn(e){return h(kt(e))}const yn={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function wn(){ye(),Se(),xe(),ze(),Me(),Ae(),Pe(),De()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=re;exports.SET_ALERT_EVENT_DISMISS=ae;exports.SET_ALERT_SPEC=zt;exports.SET_ALERT_TAG_NAME=O;exports.SET_AVATAR_SPEC=ai;exports.SET_BADGE_SPEC=di;exports.SET_BANNER_EVENT_BEFORE_DISMISS=de;exports.SET_BANNER_EVENT_DISMISS=se;exports.SET_BANNER_SPEC=At;exports.SET_BANNER_TAG_NAME=R;exports.SET_BLOCKQUOTE_SPEC=ci;exports.SET_BOX_SPEC=hi;exports.SET_BUTTON_SPEC=wt;exports.SET_CARD_SPEC=ki;exports.SET_CHECKBOX_SPEC=bi;exports.SET_CONTAINER_SPEC=fi;exports.SET_DETAILS_SPEC=wi;exports.SET_DIVIDER_SPEC=Ei;exports.SET_EXPANDER_SPEC=Ot;exports.SET_FIELDSET_SPEC=Ci;exports.SET_FIGURE_SPEC=Ti;exports.SET_GRID_ITEM_SPEC=Ii;exports.SET_GRID_SPEC=Mi;exports.SET_HEADING_SPEC=qi;exports.SET_ICON_NAMES=ft;exports.SET_ICON_SPEC=yt;exports.SET_IMAGE_SPEC=Pi;exports.SET_INLINE_SPEC=Di;exports.SET_INPUT_SPEC=Vi;exports.SET_LIGHTSWITCH_EVENT_CHANGE=le;exports.SET_LIGHTSWITCH_SPEC=Dt;exports.SET_LIGHTSWITCH_STORAGE_KEY=X;exports.SET_LIGHTSWITCH_TAG_NAME=W;exports.SET_LINK_SPEC=Lt;exports.SET_LOGO_SPEC=ji;exports.SET_MENU_EVENT_CHOOSE=pe;exports.SET_MENU_SPEC=Vt;exports.SET_MENU_TAG_NAME=U;exports.SET_NAV_SPEC=Rt;exports.SET_NAV_TAG_NAME=G;exports.SET_PAGE_SPEC=Xi;exports.SET_PANEL_SPEC=Yi;exports.SET_PATTERN_SPEC=en;exports.SET_POSTER_SPEC=rn;exports.SET_PROSE_SPEC=on;exports.SET_RADIOS_SPEC=sn;exports.SET_RANGE_SPEC=Ut;exports.SET_RANGE_TAG_NAME=$;exports.SET_ROOT_SPEC=pn;exports.SET_SIDEBAR_SPEC=Zt;exports.SET_SIDEBAR_TAG_NAME=F;exports.SET_SPINNER_SPEC=un;exports.SET_STACK_SPEC=mn;exports.SET_SURFACE_SPEC=gn;exports.SET_SWITCH_SPEC=vn;exports.SET_TEXTAREA_SPEC=yn;exports.SET_TEXT_SPEC=li;exports.SET_VIDEO_SPEC=Xt;exports.SET_VIDEO_TAG_NAME=Z;exports.buildSetAlert=fe;exports.buildSetAvatar=Ve;exports.buildSetBadge=Oe;exports.buildSetBanner=we;exports.buildSetBlockquote=Be;exports.buildSetBox=Re;exports.buildSetButton=Y;exports.buildSetCard=We;exports.buildSetCheckbox=Ue;exports.buildSetContainer=Ge;exports.buildSetDetails=$e;exports.buildSetDivider=Fe;exports.buildSetExpander=Te;exports.buildSetFieldset=ce;exports.buildSetFigure=Ze;exports.buildSetGrid=je;exports.buildSetGridItem=Ke;exports.buildSetHeading=Xe;exports.buildSetIcon=N;exports.buildSetImage=Qe;exports.buildSetInline=Je;exports.buildSetInput=et;exports.buildSetLightswitch=Ee;exports.buildSetLink=oe;exports.buildSetLogo=nt;exports.buildSetMenu=Ce;exports.buildSetNav=Le;exports.buildSetPage=rt;exports.buildSetPanel=at;exports.buildSetPattern=ot;exports.buildSetPoster=dt;exports.buildSetProse=st;exports.buildSetRadios=lt;exports.buildSetRange=Ie;exports.buildSetRoot=pt;exports.buildSetSidebar=qe;exports.buildSetSpinner=ct;exports.buildSetStack=ut;exports.buildSetSurface=ht;exports.buildSetSwitch=mt;exports.buildSetText=j;exports.buildSetTextarea=kt;exports.buildSetVideo=Ne;exports.defineSetAlert=ye;exports.defineSetBanner=Se;exports.defineSetComponents=wn;exports.defineSetLightswitch=xe;exports.defineSetMenu=ze;exports.defineSetNav=Me;exports.defineSetRange=Ae;exports.defineSetSidebar=Pe;exports.defineSetVideo=De;exports.getSetInitials=He;exports.renderSetAlert=Ct;exports.renderSetAvatar=ri;exports.renderSetBadge=oi;exports.renderSetBanner=It;exports.renderSetBlockquote=pi;exports.renderSetBox=ui;exports.renderSetButton=J;exports.renderSetCard=mi;exports.renderSetCheckbox=gi;exports.renderSetContainer=vi;exports.renderSetDetails=yi;exports.renderSetDivider=Si;exports.renderSetExpander=_e;exports.renderSetFieldset=xi;exports.renderSetFigure=zi;exports.renderSetGrid=_i;exports.renderSetGridItem=Li;exports.renderSetHeading=Ai;exports.renderSetIcon=ve;exports.renderSetImage=Ye;exports.renderSetInline=Ni;exports.renderSetInput=Hi;exports.renderSetLightswitch=Nt;exports.renderSetLink=_t;exports.renderSetLogo=Zi;exports.renderSetMenu=Ht;exports.renderSetNav=Bt;exports.renderSetPage=Ki;exports.renderSetPanel=Qi;exports.renderSetPattern=Ji;exports.renderSetPoster=nn;exports.renderSetPosterImage=tn;exports.renderSetProse=an;exports.renderSetRadios=dn;exports.renderSetRange=Wt;exports.renderSetRoot=ln;exports.renderSetSidebar=Ft;exports.renderSetSpinner=cn;exports.renderSetStack=hn;exports.renderSetSurface=kn;exports.renderSetSwitch=bn;exports.renderSetText=si;exports.renderSetTextarea=fn;exports.renderSetVideo=jt;exports.serializeSetNode=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const qt=new Set(["area","base","br","col","embed","hr","img","input","link","meta","source","track","wbr"]);function Te(e){return e.replaceAll("&","&amp;").replaceAll("<","&lt;").replaceAll(">","&gt;").replaceAll('"',"&quot;").replaceAll("'","&#39;")}function Nt(e){return Object.entries(e).flatMap(([n,t])=>t===!1||t==null?[]:t===!0?[n]:[`${n}="${Te(String(t))}"`]).join(" ")}function m(e){if(e.kind==="text")return Te(e.value);if(e.kind==="raw")return e.html;const n=Nt(e.attrs),t=n?`<${e.tag} ${n}>`:`<${e.tag}>`;if(qt.has(e.tag))return t;const i=e.children.map(m).join("");return`${t}${i}</${e.tag}>`}function P(e){return/^[A-Za-z][\w:-]*$/.test(e)}function v(e){if(e===void 0)return;const n=e.trim();if(n){if(!P(n))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");return n}}function O(e){return e==null?void 0:e.trim().replace(/\s+/g," ")||void 0}const _e={adjustment:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 5L10 5M10 5C10 6.10457 9.10457 7 8 7C6.89543 7 6 6.10457 6 5M10 5C10 3.89543 9.10457 3 8 3C6.89543 3 6 3.89543 6 5M6 5L3 5M21 19H10M10 19C10 20.1046 9.10457 21 8 21C6.89543 21 6 20.1046 6 19M10 19C10 17.8954 9.10457 17 8 17C6.89543 17 6 17.8954 6 19M3 12H14M14 12C14 13.1046 14.8954 14 16 14C17.1046 14 18 13.1046 18 12M14 12C14 10.8954 14.8954 10 16 10C17.1046 10 18 10.8954 18 12M6 19H3M18 12H21","stroke-linecap":"square"}}]}],"arrow-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 13.6L12 19.1L6.5 13.6M12 17.85V4.85","stroke-linecap":"square"}}]}],"arrow-left":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11 6.5L5.5 12L11 17.5M6.75 12H19.75","stroke-linecap":"square"}}]}],"arrow-left-right-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.5 4L19 7.5L15.5 11M17.75 7.5H5.5M8.5 20L5 16.5L8.5 13M6.25 16.5H18.5","stroke-linecap":"square"}}]}],"arrow-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M13 17.5L18.5 12L13 6.5M17.25 12L4.25 12","stroke-linecap":"square"}}]}],"arrow-up":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 10.5L12 5L6.5 10.5M12 6.25V19.25","stroke-linecap":"square"}}]}],"arrow-up-down-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M7.5 6.25V18.5M13 15.5L16.5 19L20 15.5M16.5 17.75V5.50001M11 8.5L7.5 5L4 8.5","stroke-linecap":"square"}}]}],check:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5708 7.37842L10.3785 16.5708L5.42871 11.6211","stroke-linecap":"square"}}]}],"check-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M16.5 9L10.5 15L7.5 12","stroke-linecap":"square"}}]}],"chevron-down":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17.5 9.5L12 15L6.5 9.5","stroke-linecap":"square"}}]}],"chevron-right":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.5 17.5L15 12L9.5 6.5","stroke-linecap":"square"}}]}],circle:[{tag:"g",attrs:{},children:[{tag:"circle",attrs:{cx:"12",cy:"12",r:"10","stroke-linecap":"square"}}]}],"city-6":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12 21V16M7 21H2V9H7V21ZM22 7V21H17V7H22Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M17 3H7V21H17V3Z","stroke-linecap":"square"}}]}],close:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.9503 7.05029L12.0005 12M12.0005 12L7.05078 16.9498M12.0005 12L16.9503 16.9498M12.0005 12L7.05078 7.05029","stroke-linecap":"square"}}]}],copy:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M10 10H21V21H10V10Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M14 6.5V3L3 3L3 14H6.5","stroke-linecap":"square"}}]}],download:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16.5 10.5L12 15L7.5 10.5M12 13.75V4","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M20.5 15V20H3.5V15","stroke-linecap":"square"}}]}],enter:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M5.75 16H16C17.6569 16 19 14.6569 19 13L19 5M8 12.5L4.5 16L8 19.5","stroke-linecap":"square"}}]}],"error-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 7.5V13M12 16.5H12.0039V16.5039H12V16.5Z","stroke-linecap":"square"}}]}],"error-triangle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M12.0003 3L22.2194 20.7H1.78125L12.0003 3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 10.5V14M12 17.5H12.0039V17.5039H12V17.5Z","stroke-linecap":"square"}}]}],horizontal:[{tag:"g",attrs:{},children:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 11H21V21H3V11Z"}},{tag:"path",attrs:{d:"M3 3H21V7H3V3Z"}}]}]}],image:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 16V3H21V21H20M3 16V21H20M3 16L9 10L20 21"}},{tag:"circle",attrs:{cx:"15.75",cy:"8.25",r:"2"}}]}],"info-circle":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M2 12C2 6.47715 6.47715 2 12 2C17.5228 2 22 6.47715 22 12C22 17.5228 17.5228 22 12 22C6.47715 22 2 17.5228 2 12Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M12 16.5L12 11M12 7.5L11.9961 7.5L11.9961 7.49609L12 7.49609L12 7.5Z","stroke-linecap":"square"}}]}],jump:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9 4L4 4L4 20L20 20L20 15","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M19.25 4.75L12 12M14 4H20L20 10","stroke-linecap":"square"}}]}],layers:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M4.5 6.125L12 3L19.5 6.125L12 9.25L4.5 6.125Z"}},{tag:"path",attrs:{d:"M3 11.5005L12 15.3771L21 11.5005M21 17.5005L12 21.3771L3 17.5005"}}]}],link:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M11.6762 6.99023L13.9998 4.6666C15.4726 3.19382 17.8604 3.19382 19.3332 4.6666C20.806 6.13938 20.806 8.52723 19.3332 10L17.0096 12.3236M6.98974 11.6766L4.66611 14.0003C3.19333 15.4731 3.19333 17.8609 4.66611 19.3337C6.13889 20.8065 8.52675 20.8065 9.99953 19.3337L12.3232 17.0101M13.9985 9.99989L9.99847 14","stroke-linecap":"square"}}]}],member:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M16 20V19C16 16.7909 14.2091 15 12 15H5C2.79086 15 1 16.7909 1 19V20M12.5 7C12.5 9.20914 10.7091 11 8.5 11C6.29086 11 4.5 9.20914 4.5 7C4.5 4.79086 6.29086 3 8.5 3C10.7091 3 12.5 4.79086 12.5 7Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.5 11C17.7091 11 19.5 9.20914 19.5 7C19.5 4.79086 17.7091 3 15.5 3M23 20V19C23 16.7909 21.2091 15 19 15","stroke-linecap":"square"}}]}],moon:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20.5387 14.8522C20.0408 14.9492 19.5263 15 19 15C14.5817 15 11 11.4183 11 7C11 5.54296 11.3194 4.17663 12 3C7.02944 3 3 7.02944 3 12C3 16.9706 7.02944 21 12 21C15.9737 21 19.3459 18.4248 20.5387 14.8522Z"}}]}],"panel-left":[{tag:"path",attrs:{d:"M3 3H21V21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M9 3V21","stroke-linecap":"square"}}],pantone:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3.35389 10.3333L20.8245 10.3333L19.0009 5L3.35389 10.3333ZM3.35389 10.3333L17.1433 5.63318L14.1465 1.43164L2.99942 10.3359M3.35389 10.3333L2.99942 10.3359M2.99942 10.3359H2.5"}},{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M6.28516 15.1641H6.28906V15.168H6.28516V15.1641Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M22 10.333V19.9997L2 19.9997L2 10.333L22 10.333Z","stroke-linecap":"square"}}]}]}],play:[{tag:"path",attrs:{fill:"currentColor",d:"M18.25 11.9998L8.5 17.6289L8.5 6.37061L18.25 11.9998Z"}}],rectangle:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 3H21V21H3z","stroke-linecap":"square"}}]}],refresh:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21.448 13C20.9483 17.7767 16.909 21.5 12 21.5C8.18227 21.5 4.89052 19.248 3.38065 16M2.5 20.5V15.5H5.5M2.55176 11C3.05145 6.22334 7.09079 2.5 11.9998 2.5C15.8175 2.5 19.1092 4.75197 20.6191 8M21.4998 3.5V8.5H18.4998","stroke-linecap":"square"}}]}],"robot-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 21V19.5C19.5 17.2909 17.7091 15.5 15.5 15.5H8.5C6.29086 15.5 4.5 17.2909 4.5 19.5V21M12 4V2M10 12H14C16.2091 12 18 10.2091 18 8C18 5.79086 16.2091 4 14 4H10C7.79086 4 6 5.79086 6 8C6 10.2091 7.79086 12 10 12ZM10.25 8C10.25 8.13807 10.1381 8.25 10 8.25C9.86193 8.25 9.75 8.13807 9.75 8C9.75 7.86193 9.86193 7.75 10 7.75C10.1381 7.75 10.25 7.86193 10.25 8ZM14 8.25C13.8619 8.25 13.75 8.13807 13.75 8C13.75 7.86193 13.8619 7.75 14 7.75C14.1381 7.75 14.25 7.86193 14.25 8C14.25 8.13807 14.1381 8.25 14 8.25Z","stroke-linecap":"square"}}]}],search:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M15.8027 15.8037L21.106 21.107","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M15.8033 15.8033C12.8744 18.7322 8.12563 18.7322 5.1967 15.8033C2.26777 12.8744 2.26777 8.12563 5.1967 5.1967C8.12563 2.26777 12.8744 2.26777 15.8033 5.1967C18.7322 8.12563 18.7322 12.8744 15.8033 15.8033Z","stroke-linecap":"square"}}]}],"setting-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M9.40811 4.95996L10.0001 2H14.0001L14.5921 4.95996C15.4027 5.25851 16.1475 5.69306 16.7989 6.23595L19.6604 5.26796L21.6604 8.73206L19.3922 10.7254C19.4632 11.1396 19.5001 11.5655 19.5001 12C19.5001 12.4345 19.4632 12.8604 19.3922 13.2747L21.6604 15.268L19.6604 18.7321L16.7989 17.7641C16.1475 18.3069 15.4027 18.7415 14.5921 19.04L14.0001 22H10.0001L9.40811 19.04C8.5975 18.7415 7.85268 18.3069 7.20131 17.7641L4.33984 18.7321L2.33984 15.268L4.60798 13.2747C4.53705 12.8604 4.5001 12.4345 4.5001 12C4.5001 11.5655 4.53705 11.1396 4.60797 10.7254L2.33984 8.73206L4.33984 5.26796L7.20129 6.23595C7.85266 5.69306 8.59749 5.25851 9.40811 4.95996Z","fill-rule":"evenodd","stroke-linecap":"square","clip-rule":"evenodd"}},{tag:"path",attrs:{d:"M16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z","stroke-linecap":"square"}}]}],"sticky-note":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M20 14H14V20M3 3H21V14L14 21H3V3Z","stroke-linecap":"square"}},{tag:"path",attrs:{d:"M7 9H17M7 13H10","stroke-linecap":"square"}}]}],sunny:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M17 12C17 14.7614 14.7614 17 12 17C9.23858 17 7 14.7614 7 12C7 9.23858 9.23858 7 12 7C14.7614 7 17 9.23858 17 12Z"}},{tag:"path",attrs:{d:"M12 21V22M12 2V3M3 12H2M22 12H21M5.63603 18.3635L4.92892 19.0706M19.0711 4.92848L18.364 5.63559M5.63601 5.63563L4.9289 4.92852M19.071 19.0707L18.3639 18.3636","stroke-linecap":"square"}}]}],swap:[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M21 14.5H4L9 19.5M3 9.5L20 9.5L15 4.5","stroke-linecap":"square"}}]}],"user-1":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M19.5 20V19C19.5 16.7909 17.7091 15 15.5 15H8.5C6.29086 15 4.5 16.7909 4.5 19V20M16 7C16 9.20914 14.2091 11 12 11C9.79086 11 8 9.20914 8 7C8 4.79086 9.79086 3 12 3C14.2091 3 16 4.79086 16 7Z","stroke-linecap":"square"}}]}],"view-list":[{tag:"g",attrs:{},children:[{tag:"path",attrs:{d:"M3 5H21M3 12H21M3 19H21","stroke-linecap":"square"}}]}]},Pt=Object.keys(_e);function Le(e){return e.map(n=>({kind:"element",tag:n.tag,attrs:n.attrs,children:n.children?Le(n.children):[]}))}function V({ariaHidden:e=!0,id:n,mirrored:t,name:i,size:r="md",title:a}){const o=_e[i];if(!o)throw new Error(`Unknown icon name: ${i}`);const d=v(n),s=a?.trim();if(!e&&!s)throw new Error("title must be non-empty when ariaHidden is false.");if(!e&&!d)throw new Error("id must be provided when ariaHidden is false.");const p=e?void 0:`${d}-title`,l=[];return e||l.push({kind:"element",tag:"title",attrs:{id:p},children:[{kind:"text",value:s}]}),l.push(...Le(o)),{kind:"element",tag:"svg",attrs:{"aria-hidden":e?"true":void 0,"aria-labelledby":p,class:"set-icon","data-mirrored":t,"data-size":r,fill:"none",height:"24",id:d,role:e?void 0:"img",stroke:"currentColor","stroke-width":"1.75",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},children:l}}function Me(e){return m(V(e))}const Dt={name:"icon",description:"Use `icon` to render a Set icon.",output:{element:"svg",class:"set-icon"},content:{kind:"none"},props:{ariaHidden:{default:!0,description:"Hides the icon from assistive technology. Decorative by default; set to false for a labelled icon (then `title` and `id` are required).",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}},mirrored:{description:"Mirrors the icon horizontally.",type:{kind:"enum",values:["always","rtl"]}},name:{description:"Set icon name.",required:!0,type:{kind:"iconName"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","fill"]}},title:{description:"Accessible title announced by assistive technology.",requiredWhen:"`ariaHidden` is false",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"data-mirrored",condition:{kind:"when-provided",prop:"mirrored"},value:{kind:"prop",prop:"mirrored"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"fill",condition:{kind:"always"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"height",condition:{kind:"always"},value:{kind:"literal",text:"24"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-truthy",prop:"ariaHidden"}},value:{kind:"literal",text:"img"}},{target:{on:"host"},attribute:"stroke",condition:{kind:"always"},value:{kind:"literal",text:"currentColor"}},{target:{on:"host"},attribute:"stroke-width",condition:{kind:"always"},value:{kind:"literal",text:"1.75"}},{target:{on:"host"},attribute:"viewBox",condition:{kind:"always"},value:{kind:"literal",text:"0 0 24 24"}},{target:{on:"host"},attribute:"xmlns",condition:{kind:"always"},value:{kind:"literal",text:"http://www.w3.org/2000/svg"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ne(e){const{appearance:n="outline",controls:t,disabled:i,disclosure:r,form:a,haspopup:o,id:d,icon:s,iconMirrored:p,iconPlacement:l="start",label:c,labelVisibility:h="visible",name:b,size:S="md",tone:f="default",type:x,value:L}=e,w=s||void 0,k=!!w;if(h!=="visible"&&!k)throw new Error("labelVisibility requires icon when label is not visible.");const T=k&&w?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:Me({ariaHidden:!0,mirrored:p,name:w,size:"fill"})}]}:null,E={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:c}]};return{kind:"element",tag:"button",attrs:{"aria-controls":r&&t||void 0,"aria-expanded":r?"false":void 0,"aria-haspopup":o||void 0,class:"set-button","data-appearance":n,"data-label-visibility":h==="visible"?void 0:h,"data-size":S,"data-tone":f==="neutral"?"neutral":void 0,disabled:!!i,form:a||void 0,id:d||void 0,name:b||void 0,type:x||"button",value:L||void 0},children:T?l==="end"?[E,T]:[T,E]:[E]}}function re(e){return m(ne(e))}const Vt={name:"button",description:"Use `button` to let users trigger actions.",output:{element:"button",class:"set-button"},content:{kind:"text",prop:"label"},props:{appearance:{default:"outline",description:"Visual appearance.",type:{kind:"enum",values:["outline","solid","text"]}},controls:{description:"`id` of the element this button controls.",ignoredWhen:"`disclosure` is false",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},disclosure:{default:!1,description:"Marks the button as a disclosure toggle for another element.",type:{kind:"boolean"}},form:{description:"`id` of the form this button belongs to.",type:{kind:"string"}},haspopup:{description:"Signals that activating the button opens a popup of this type.",type:{kind:"enum",values:["menu"]}},icon:{description:"Icon shown alongside the label.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"iconName"}},iconMirrored:{description:"Mirrors the icon horizontally.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["always","rtl"]}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},id:{description:"`id` for the button.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},name:{description:"Name submitted with the form.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},type:{default:"button",description:"Native button type.",type:{kind:"enum",values:["button","submit"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"when-truthy",prop:"disclosure"},value:{kind:"literal",text:"false"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"all",of:[{kind:"when-truthy",prop:"disclosure"},{kind:"when-non-empty",prop:"controls"}]},value:{kind:"prop",prop:"controls"}},{target:{on:"host"},attribute:"aria-haspopup",condition:{kind:"when-provided",prop:"haspopup"},value:{kind:"prop",prop:"haspopup"}},{target:{on:"host"},attribute:"form",condition:{kind:"when-non-empty",prop:"form"},value:{kind:"prop",prop:"form"}},{target:{on:"host"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"prop",prop:"type"}},{target:{on:"host"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}}]}},U="set-alert",me="set-alert-before-dismiss",ke="set-alert-dismiss",W="Dismiss alert";function Ht(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=re({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function Bt(e){switch(e){case"success":return"check-circle";case"warning":return"error-triangle";case"error":return"error-circle";case"info":return"info-circle";default:return"sticky-note"}}function Ot(e){return e==="warning"||e==="error"?"alert":"status"}function Ie({dismissible:e,dismissibleLabel:n=W,id:t,inlineSize:i="full",message:r,size:a="md",tone:o,title:d}){const s=v(t),p=n.trim()===""?W:n,l=[];return d&&l.push({kind:"element",tag:"p",attrs:{class:"title"},children:[{kind:"text",value:d}]}),l.push({kind:"element",tag:"p",attrs:{class:"message"},children:[{kind:"text",value:r}]}),{kind:"element",tag:U,attrs:{class:"set-alert","data-dismissible":e,"data-dismissible-label":e?p:void 0,"data-inline-size":i==="fit"?"fit":void 0,"data-size":a,"data-tone":o||void 0,id:s,role:Ot(o)},children:[{kind:"element",tag:"div",attrs:{class:"icon-wrapper"},children:[V({ariaHidden:!0,name:Bt(o),size:a})]},{kind:"element",tag:"div",attrs:{class:"content"},children:l}]}}function Rt(e){return m(Ie(e))}function Ae(){if(customElements.get(U))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(me,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ke,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(Ht(this.getAttribute("data-dismissible-label")??W,this.ownerDocument))}}customElements.define(U,e)}const Ut={name:"alert",description:"Use `alert` to surface short, important messages.",output:{element:U,class:"set-alert"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"message",kind:"text"}]},props:{dismissible:{default:!1,description:"Shows a dismiss control that removes the alert.",type:{kind:"boolean"}},dismissibleLabel:{default:W,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the alert fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},message:{description:"Body text of the alert.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},title:{description:"Bold text above the message.",type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","success","warning","error"]}}},events:{[me]:{bubbles:!0,cancelable:!0,description:"Fired before the alert is removed by a dismiss action. Call `preventDefault()` to keep the alert mounted."},[ke]:{bubbles:!0,description:"Fired after the alert has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-in",prop:"tone",values:["warning","error"]},value:{kind:"literal",text:"alert"}},{target:{on:"host"},attribute:"role",condition:{kind:"not",of:{kind:"when-in",prop:"tone",values:["warning","error"]}},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"when-non-empty",prop:"dismissibleLabel"}]},value:{kind:"prop",prop:"dismissibleLabel"}},{target:{on:"host"},attribute:"data-dismissible-label",condition:{kind:"all",of:[{kind:"when-truthy",prop:"dismissible"},{kind:"not",of:{kind:"when-non-empty",prop:"dismissibleLabel"}}]},value:{kind:"literal",text:W}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Wt(e){if(e)return e===!0?!0:e}function ge(e){const{appearance:n="text",current:t,download:i,href:r,id:a,icon:o,iconPlacement:d="start",label:s,labelVisibility:p="visible",rel:l,size:c="md",target:h,tone:b="default",underline:S}=e,f=v(a),x=o?.trim()||void 0;if(p!=="visible"&&!!!x)throw new Error("labelVisibility requires icon when label is not visible.");const w=Wt(i),k=x?{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[{kind:"raw",html:x}]}:null,T={kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:s}]};return{kind:"element",tag:"a",attrs:{"aria-current":t,class:"set-link","data-appearance":n==="text"?void 0:n,"data-label-visibility":p==="visible"?void 0:p,"data-size":c,"data-tone":b==="neutral"?"neutral":void 0,"data-underline":S&&n==="text"?!0:void 0,download:w,href:r,id:f,rel:w?void 0:l||void 0,target:w?void 0:h||void 0},children:k?d==="end"?[T,k]:[k,T]:[T]}}function Gt(e){return m(ge(e))}const $t={name:"link",description:"Use `link` to navigate to another page or resource.",output:{element:"a",class:"set-link"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"icon",kind:"html"}]},props:{appearance:{default:"text",description:"Visual appearance. `text` is a standard link; `outline` and `solid` give button-styled treatments. ",type:{kind:"enum",values:["outline","solid","text"]}},current:{description:"Marks the link as the current item in its set; emits `aria-current` with this value.",type:{kind:"enum",values:["page"]}},download:{description:"Saves the target instead of navigating. Pass a filename or `true`.",type:{kind:"union",variants:[{kind:"boolean"},{kind:"string"}]}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},icon:{description:"Icon markup shown alongside the label. Set icon component, or SVG markup from https://simpleicons.org/ for third-party logos.",requiredWhen:"`labelVisibility` is hidden or hiddenBelowTablet",type:{kind:"html"}},iconPlacement:{default:"start",description:"Where the icon sits relative to the label.",ignoredWhen:"`icon` is omitted",type:{kind:"enum",values:["start","end"]}},label:{description:"Accessible label.",required:!0,type:{kind:"text"}},labelVisibility:{default:"visible",description:"How the label is shown. Hidden values require an icon.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}},rel:{description:"Explicit `rel` attribute.",ignoredWhen:"`download` is set",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}},target:{description:"Where to open the link.",ignoredWhen:"`download` is set",type:{kind:"enum",values:["_blank","_parent","_self","_top"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},underline:{default:!1,description:"Underlines the link.",ignoredWhen:"`appearance` is not `text`",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"href",condition:{kind:"always"},value:{kind:"prop",prop:"href"}},{target:{on:"host"},attribute:"aria-current",condition:{kind:"when-provided",prop:"current"},value:{kind:"prop",prop:"current"}},{target:{on:"host"},attribute:"download",condition:{kind:"when-truthy",prop:"download"},value:{kind:"prop",prop:"download"}},{target:{on:"host"},attribute:"rel",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"rel"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"rel"}},{target:{on:"host"},attribute:"target",condition:{kind:"all",of:[{kind:"when-provided",prop:"target"},{kind:"not",of:{kind:"when-truthy",prop:"download"}}]},value:{kind:"prop",prop:"target"}},{target:{on:"host"},attribute:"data-appearance",condition:{kind:"when-in",prop:"appearance",values:["outline","solid"]},value:{kind:"prop",prop:"appearance"}},{target:{on:"host"},attribute:"data-label-visibility",condition:{kind:"when-in",prop:"labelVisibility",values:["hidden","hiddenBelowTablet"]},value:{kind:"prop",prop:"labelVisibility"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-underline",condition:{kind:"all",of:[{kind:"when-truthy",prop:"underline"},{kind:"when-equals",prop:"appearance",to:"text"}]}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},G="set-banner",be="set-banner-before-dismiss",ve="set-banner-dismiss",ie="Dismiss banner";function Ft(e,n){const t=n.createElement("div");return t.setAttribute("data-part","close"),t.innerHTML=re({appearance:"text",icon:"close",label:e,labelVisibility:"hidden",size:"sm",tone:"neutral"}),t}function qe({actionHref:e,actionLabel:n,dismissible:t=!0,dismissibleLabel:i=ie,id:r,message:a,tone:o}){if(!!e!=!!n)throw new Error("actionHref and actionLabel must be provided together.");const d=v(r),s=i.trim()===""?ie:i,p=[{kind:"text",value:a}];return e&&n&&(p.push({kind:"text",value:" "}),p.push(ge({href:e,label:n,underline:!0}))),{kind:"element",tag:G,attrs:{class:"set-banner","data-set-content-theme":"dark","data-set-surface":"default","data-dismissible":t,"data-dismissible-label":t?s:void 0,"data-tone":o||void 0,id:d},children:[{kind:"element",tag:"p",attrs:{class:"message"},children:p}]}}function Zt(e){return m(qe(e))}function Ne(){if(customElements.get(G))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="close"]'))return;const r=new CustomEvent(be,{bubbles:!0,cancelable:!0});this.dispatchEvent(r)&&(this.dispatchEvent(new CustomEvent(ve,{bubbles:!0})),this.remove())};connectedCallback(){this.removeEventListener("click",this.#e),this.hasAttribute("data-dismissible")&&(this.#t(),this.addEventListener("click",this.#e))}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){this.querySelector('[data-part="close"]')||this.append(Ft(this.getAttribute("data-dismissible-label")??ie,this.ownerDocument))}}customElements.define(G,e)}const jt={name:"banner",description:"Use `banner` to display a prominent site-wide message.",output:{element:G,class:"set-banner"},content:{kind:"text",prop:"message"},props:{actionHref:{description:"URL for an inline link action rendered after the `message`.",requiredWhen:"`actionLabel` is provided",type:{kind:"string"}},actionLabel:{description:"Text label for an inline link action rendered after the `message`.",requiredWhen:"`actionHref` is provided",type:{kind:"text"}},dismissible:{default:!0,description:"Shows a dismiss control that removes the banner.",type:{kind:"boolean"}},dismissibleLabel:{default:ie,description:"Accessible label for the dismiss control.",ignoredWhen:"`dismissible` is false",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},message:{description:"Body text of the banner.",required:!0,type:{kind:"text"}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["info","warning","error"]}}},events:{[be]:{bubbles:!0,cancelable:!0,description:"Fired before the banner is removed by a dismiss action. Call `preventDefault()` to keep the banner mounted."},[ve]:{bubbles:!0,description:"Fired after the banner has been removed by an allowed dismiss action."}},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"always"},value:{kind:"literal",text:"dark"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"data-dismissible",condition:{kind:"when-truthy",prop:"dismissible"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},$="set-lightswitch",fe="set-lightswitch-change",te="set-theme",pe="Switch to dark theme",ce="Switch to light theme";function Kt(e){return e==="dark"?"light":"dark"}function Xt(e){return e==="dark"?"moon":"sunny"}function xe(e,n){return{kind:"element",tag:"span",attrs:{class:"option","data-option":e},children:[{kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[V({ariaHidden:!0,name:Xt(e),size:"fill"})]},{kind:"element",tag:"span",attrs:{class:"label"},children:[{kind:"text",value:n}]}]}}function Pe({appearance:e="text",id:n,labelDark:t=pe,labelLight:i=ce,size:r="md"}){const a=v(n),o=t.trim()===""?pe:t,d=i.trim()===""?ce:i;return{kind:"element",tag:$,attrs:{class:"set-lightswitch",id:a},children:[{kind:"element",tag:"button",attrs:{class:"toggle","data-appearance":e,"data-size":r,type:"button"},children:[xe("dark",o),xe("light",d)]}]}}function Qt(e){return m(Pe(e))}function De(){if(customElements.get($))return;class e extends HTMLElement{#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest("button"))return;const r=Kt(this.#u());r===this.#r()?this.#d():this.#n(r),this.#a(),this.dispatchEvent(new CustomEvent(fe,{bubbles:!0,detail:{stored:!!this.#i(),theme:r}}))};connectedCallback(){this.removeEventListener("click",this.#e),this.addEventListener("click",this.#e),this.#i()&&this.#a()}disconnectedCallback(){this.removeEventListener("click",this.#e)}#t(){try{return this.ownerDocument.defaultView?.localStorage}catch{return}}#i(){try{const t=this.#t()?.getItem(te);return t==="light"||t==="dark"?t:void 0}catch{return}}#n(t){try{this.#t()?.setItem(te,t)}catch{}}#d(){try{this.#t()?.removeItem(te)}catch{}}#r(){const t=this.ownerDocument.defaultView;return!t||typeof t.matchMedia!="function"?"light":t.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}#c(){return this.closest(".set")}#s(){const t=this.#c()?.getAttribute("data-set-theme");return t==="light"||t==="dark"?t:void 0}#u(){return this.#i()??this.#s()??this.#r()}#a(){const t=this.#c();if(!t)return;const i=this.#i();i?t.setAttribute("data-set-theme",i):t.removeAttribute("data-set-theme")}}customElements.define($,e)}const Yt={name:"lightswitch",description:"Use `lightswitch` to let users toggle between light and dark themes.",output:{element:$,class:"set-lightswitch"},content:{kind:"none"},props:{appearance:{default:"text",description:"Visual appearance of the toggle button.",type:{kind:"enum",values:["outline","solid","text"]}},id:{description:"DOM id.",type:{kind:"string"}},labelDark:{default:pe,description:"Accessible label of the switch-to-dark action.",type:{kind:"string"}},labelLight:{default:ce,description:"Accessible label of the switch-to-light action.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{[fe]:{bubbles:!0,description:"Fired after activation applies a theme. `detail.theme` is the theme switched to; `detail.stored` is false when the change cleared the override to follow the system preference again."}},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"button"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"toggle"}},{target:{on:"descendant",selector:"button"},attribute:"data-appearance",condition:{kind:"always"},value:{kind:"prop",prop:"appearance"}},{target:{on:"descendant",selector:"button"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"button"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}}]}},F="set-menu",ye="set-menu-choose";function Ve({align:e="start",id:n,items:t,size:i="md",triggerIcon:r,triggerIconMirrored:a,triggerIconPlacement:o,triggerLabel:d,triggerLabelVisibility:s}){const p=n.trim();if(!p)throw new Error("id must be a non-empty string.");if(!P(p))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Array.isArray(t))throw new Error("items must be an array.");const l=`${p}-button`,c=`${p}-popup`,h=t.map(b=>({kind:"element",tag:"button",attrs:{"aria-disabled":b.disabled?"true":void 0,"data-item-id":b.id||void 0,role:"menuitem",tabindex:"-1",type:"button"},children:[{kind:"text",value:b.label}]}));return{kind:"element",tag:F,attrs:{class:"set-menu","data-align":e==="start"?void 0:e,"data-size":i,id:p},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[ne({appearance:"outline",controls:c,disclosure:!0,haspopup:"menu",icon:r,iconMirrored:a,iconPlacement:o,id:l,label:d,labelVisibility:s,size:i,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{"aria-labelledby":l,class:"popup",hidden:!0,id:c,role:"menu"},children:h}]}}function Jt(e){return m(Ve(e))}function He(){if(customElements.get(F))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#p(),this.#o(!1),this.#k()}disconnectedCallback(){this.#p()}#d(){return this.querySelector('[data-part="trigger"] .set-button')}#r(){return this.querySelector('[role="menu"]')}#c(){return Array.from(this.querySelectorAll('[role="menuitem"]'))}#s(t){return t.getAttribute("aria-disabled")==="true"}#u(){return this.hasAttribute("data-open")}#a(t){const i=this.#c();if(i.length===0)return;const r=(t%i.length+i.length)%i.length;i[r]?.focus()}#l(t=0){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!1,this.setAttribute("data-open",""),r.setAttribute("aria-expanded","true"),this.#a(t))}#o(t=!1){const i=this.#r(),r=this.#d();!i||!r||(i.hidden=!0,this.removeAttribute("data-open"),r.setAttribute("aria-expanded","false"),t&&r.focus())}#h(t){const r=Array.from(this.querySelectorAll('[role="menuitem"]')).indexOf(t);this.dispatchEvent(new CustomEvent(ye,{bubbles:!0,detail:{id:t.getAttribute("data-item-id")||void 0,index:r,label:t.textContent||""}}))}#k(){this.#e=t=>{const i=t.target;if(!(i instanceof Element))return;if(i.closest('[data-part="trigger"] .set-button')){if(this.#u()){this.#o();return}this.#l(0);return}const r=i.closest('[role="menuitem"]');if(r&&this.contains(r)){this.#s(r)||(this.#h(r),this.#o(!0));return}},this.#t=t=>{const i=t.target;i instanceof Node&&this.#u()&&!this.contains(i)&&this.#o()},this.#n=t=>{const i=this.#d(),r=this.#r();if(!i||!r)return;if((t.key==="Escape"||t.key==="Esc")&&this.#u()){t.preventDefault(),this.#o(!0);return}const a=this.ownerDocument.activeElement,o=this.#c(),d=o.indexOf(a);if(a===i){(t.key==="Enter"||t.key===" ")&&(t.preventDefault(),this.#l(0)),t.key==="ArrowDown"&&(t.preventDefault(),this.#l(0)),t.key==="ArrowUp"&&(t.preventDefault(),this.#l(o.length-1));return}if(r.contains(a)){if(a instanceof HTMLButtonElement&&(t.key==="Enter"||t.key===" ")){t.preventDefault(),this.#s(a)||(this.#h(a),this.#o(!0));return}t.key==="ArrowDown"&&(t.preventDefault(),this.#a(d+1)),t.key==="ArrowUp"&&(t.preventDefault(),this.#a(d-1)),t.key==="Home"&&(t.preventDefault(),this.#a(0)),t.key==="End"&&(t.preventDefault(),this.#a(o.length-1)),t.key==="Tab"&&this.#o(!1)}},this.#i=t=>{const i=t.relatedTarget;if(!(i instanceof Node)){this.#o();return}this.contains(i)||this.#o()},this.addEventListener("click",this.#e),this.addEventListener("keydown",this.#n),this.addEventListener("focusout",this.#i),this.ownerDocument.addEventListener("click",this.#t)}#p(){this.#e&&this.removeEventListener("click",this.#e),this.#t&&this.ownerDocument.removeEventListener("click",this.#t),this.#n&&this.removeEventListener("keydown",this.#n),this.#i&&this.removeEventListener("focusout",this.#i),this.#e=void 0,this.#t=void 0,this.#i=void 0,this.#n=void 0}}customElements.define(F,e)}const ei={name:"menu",description:"Use `menu` to show a list of actions from a trigger button.",output:{element:F,class:"set-menu"},content:{kind:"structured",prop:"items"},props:{align:{default:"start",description:"Popup alignment relative to the trigger.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id applied to the host. Trigger and popup ids are derived as `${id}-button` and `${id}-popup`.",required:!0,type:{kind:"string"}},items:{description:"Action items listed inside the popup.",required:!0,type:{kind:"array",itemShape:{disabled:{default:!1,description:"Disables selection for this item.",type:{kind:"boolean"}},id:{description:"Optional authored identifier surfaced in the choose event payload.",type:{kind:"string"}},label:{description:"Visible item label text.",required:!0,type:{kind:"text"}}}}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},triggerIcon:{description:"Icon name for the trigger button.",type:{kind:"iconName"}},triggerIconMirrored:{description:"Icon mirroring mode for the trigger button icon.",type:{kind:"enum",values:["always","rtl"]}},triggerIconPlacement:{default:"start",description:"Icon placement within the trigger button.",type:{kind:"enum",values:["start","end"]}},triggerLabel:{description:"Accessible and visible trigger label text.",required:!0,type:{kind:"text"}},triggerLabelVisibility:{default:"visible",description:"Trigger label visibility treatment.",type:{kind:"enum",values:["visible","hidden","hiddenBelowTablet"]}}},events:{[ye]:{bubbles:!0,description:"Fired when a menu item is activated.",detail:"{ id?: string; index: number; label: string }"}},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-equals",prop:"align",to:"end"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:'div[data-part="trigger"] button'},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-popup"}},{target:{on:"descendant",selector:"div.popup"},attribute:"aria-labelledby",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-button"}},{target:{on:"descendant",selector:"div.popup"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"menu"}},{target:{on:"descendant",selector:"div.popup"},attribute:"hidden",condition:{kind:"always"}}]}},ue="Menu";function Be({controlsId:e,expanded:n,id:t,label:i=ue,size:r="md"}={}){const a=v(t),o=i.trim()===""?ue:i;return{kind:"element",tag:"button",attrs:{"aria-controls":e||void 0,"aria-expanded":n?"true":"false",class:"set-expander","data-size":r,id:a,type:"button"},children:[{kind:"element",tag:"span",attrs:{class:"expander-box"},children:[{kind:"element",tag:"span",attrs:{class:"expander-inner"},children:[]},{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:o}]}]}]}}function Oe(e={}){return m(Be(e))}const ti={name:"expander",description:"Use `expander` as a toggle for disclosure regions such as menus.",output:{element:"button",class:"set-expander"},content:{kind:"text",prop:"label"},props:{controlsId:{description:"`id` of the element this toggle controls.",type:{kind:"string"}},expanded:{default:!1,description:"Whether the controlled region is expanded.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{default:ue,description:"Accessible label.",type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"button"}},{target:{on:"host"},attribute:"aria-expanded",condition:{kind:"always"},value:{kind:"template",pattern:"{expanded}"}},{target:{on:"host"},attribute:"aria-controls",condition:{kind:"when-non-empty",prop:"controlsId"},value:{kind:"prop",prop:"controlsId"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},Z="set-nav",Ce="data-set-scroll-locked";function Re({collapsible:e,contentId:n,expanderLabel:t,expanderPosition:i="start",id:r,items:a,label:o,size:d="md"}){const s=v(r),p=t?.trim()||void 0,l=n?.trim();if(e&&!l)throw new Error("contentId must be a non-empty string when collapsible is set.");if(l&&!P(l))throw new Error("contentId must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const c=a.map(h=>({kind:"element",tag:"li",attrs:{},children:[{kind:"element",tag:"a",attrs:{"aria-current":h.current?"page":void 0,class:"item",href:h.href},children:[{kind:"text",value:h.label}]}]}));return{kind:"element",tag:Z,attrs:{class:"set-nav","data-collapsible":e,"data-expander-label":e&&p?p:void 0,"data-expander-position":e?i:void 0,"data-size":d,id:s},children:[{kind:"element",tag:"nav",attrs:{"aria-label":o||void 0,class:"nav"},children:[{kind:"element",tag:"div",attrs:{class:"content",id:l},children:[{kind:"element",tag:"ul",attrs:{class:"list"},children:c}]}]}]}}function ii(e){return m(Re(e))}function Ue(){if(customElements.get(Z))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#o(),this.#h(),this.#c(),this.#u(),this.#a()}disconnectedCallback(){this.#s(!1),this.#o(),this.#h()}#d(){return this.hasAttribute("data-collapsible")?this.querySelector(".nav"):null}#r(){return this.querySelector('[data-part="expander"] .set-expander')}#c(){const t=this.#d();if(!t||t.querySelector('[data-part="expander"]'))return;const i=t.querySelector(".content");i&&t.insertAdjacentHTML("afterbegin",`<div data-part="expander">${Oe({controlsId:i.id||void 0,label:this.getAttribute("data-expander-label")||void 0,size:this.getAttribute("data-size")==="sm"?"md":"lg"})}</div>`)}#s(t){const i=this.#r();!i||i.getAttribute("aria-expanded")==="true"===t||(i.setAttribute("aria-expanded",t?"true":"false"),this.#l(t))}#u(){this.#e=t=>{const i=t.target;if(!(i instanceof Element)||!i.closest('[data-part="expander"] .set-expander'))return;const r=this.#r();r&&this.#s(r.getAttribute("aria-expanded")!=="true")},this.addEventListener("click",this.#e)}#a(){const t=this.#d(),i=this.ownerDocument.defaultView;if(!t||!i||(this.#i=a=>{a.key!=="Escape"&&a.key!=="Esc"||this.#s(!1)},i.addEventListener("keydown",this.#i),this.getAttribute("data-collapsible")!=="belowTablet")||typeof i.matchMedia!="function")return;const r=i.matchMedia("(min-width: 48em)");this.#t=r,this.#n=a=>{a.matches&&this.#s(!1)},r.addEventListener("change",this.#n)}#l(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute(Ce,"");return}i.removeAttribute(Ce)}}#o(){this.#e&&(this.removeEventListener("click",this.#e),this.#e=void 0)}#h(){const t=this.ownerDocument.defaultView;this.#i&&t&&t.removeEventListener("keydown",this.#i),this.#t&&this.#n&&this.#t.removeEventListener("change",this.#n),this.#i=void 0,this.#n=void 0,this.#t=void 0}}customElements.define(Z,e)}const ni={name:"nav",description:"Use `nav` to render a primary navigation list.",output:{element:Z,class:"set-nav"},content:{kind:"structured",prop:"items"},props:{items:{description:"Nav links shown in the list.",required:!0,type:{kind:"array",itemShape:{current:{default:!1,description:'Emits `aria-current="page"` when true.',type:{kind:"boolean"}},href:{description:"Link destination.",required:!0,type:{kind:"string"}},label:{description:"Link label.",required:!0,type:{kind:"text"}}}}},label:{description:"Accessible label for the nav landmark.",type:{kind:"string"}},expanderLabel:{description:"Accessible label for the collapsible expander button.",type:{kind:"string"}},expanderPosition:{default:"start",description:"Where the expander sits within the composition.",type:{kind:"enum",values:["start","end"]}},id:{description:"DOM id.",type:{kind:"string"}},collapsible:{description:"When to collapse the nav behind an expander.",type:{kind:"enum",values:["always","belowTablet"]}},contentId:{description:"`id` for the collapsible content region.",requiredWhen:"`collapsible` is provided",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-collapsible",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"collapsible"}},{target:{on:"host"},attribute:"data-expander-position",condition:{kind:"when-provided",prop:"collapsible"},value:{kind:"prop",prop:"expanderPosition"}},{target:{on:"host"},attribute:"data-expander-label",condition:{kind:"all",of:[{kind:"when-provided",prop:"collapsible"},{kind:"when-non-empty",prop:"expanderLabel"}]},value:{kind:"prop",prop:"expanderLabel"}},{target:{on:"descendant",selector:"nav"},attribute:"aria-label",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"prop",prop:"label"}},{target:{on:"descendant",selector:"div.content"},attribute:"id",condition:{kind:"when-provided",prop:"contentId"},value:{kind:"prop",prop:"contentId"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},j="set-range";function We({description:e,disabled:n,id:t,inlineSize:i="full",label:r,max:a,min:o,name:d,size:s="md",step:p,value:l}){const c=t.trim(),h=e?.trim(),b=d?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!P(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const S=h?`${c}-description`:void 0,f=[{kind:"element",tag:"div",attrs:{class:"label-wrapper"},children:[{kind:"element",tag:"label",attrs:{class:"label",for:c},children:[{kind:"text",value:r}]},{kind:"element",tag:"output",attrs:{class:"output",for:c},children:l!=null?[{kind:"text",value:String(l)}]:[]}]},{kind:"element",tag:"input",attrs:{"aria-describedby":S,class:"range",disabled:!!n,id:c,max:a!=null?String(a):void 0,min:o!=null?String(o):void 0,name:b||void 0,step:p!=null?String(p):void 0,type:"range",value:l!=null?String(l):void 0},children:[]}];return h&&f.push({kind:"element",tag:"p",attrs:{class:"description",id:S},children:[{kind:"text",value:h}]}),{kind:"element",tag:j,attrs:{class:"set-range","data-inline-size":i==="fit"?"fit":void 0,"data-size":s},children:f}}function ri(e){return m(We(e))}function Ge(){if(customElements.get(j))return;class e extends HTMLElement{#e;#t=t=>{const i=t.target;i instanceof HTMLInputElement&&i.matches(".range")&&this.#i()};connectedCallback(){this.removeEventListener("input",this.#t),this.#d(),this.#i(),this.addEventListener("input",this.#t)}disconnectedCallback(){this.removeEventListener("input",this.#t),this.#r()}#i(){const t=this.querySelector(".range"),i=this.querySelector(".output");!t||!i||this.#n(i,t.value)}#n(t,i){const r=t.firstChild;if(r?.nodeType===Node.TEXT_NODE&&t.childNodes.length===1){r.nodeValue!==i&&(r.nodeValue=i);return}t.textContent!==i&&(t.textContent=i)}#d(){const t=this.querySelector(".range");if(!t||t===this.#e)return;this.#r();const i=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value");if(!i?.get||!i.set)return;const r=i.get,a=i.set,o=()=>this.#i();Object.defineProperty(t,"value",{configurable:!0,enumerable:i.enumerable,get(){return r.call(this)},set(d){a.call(this,d),o()}}),this.#e=t}#r(){this.#e&&(delete this.#e.value,this.#e=void 0)}}customElements.define(j,e)}const ai={name:"range",description:"Use `range` to let users pick a numeric value along a scale.",output:{element:j,class:"set-range"},content:{kind:"text",prop:"label"},props:{description:{description:"Helper text shown below the range.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the range.",type:{kind:"boolean"}},id:{description:"`id` used to associate the input with its label.",required:!0,type:{kind:"string"}},inlineSize:{default:"full",description:"How the range fills its container.",type:{kind:"enum",values:["full","fit"]}},label:{description:"Label text.",required:!0,type:{kind:"text"}},max:{description:"Maximum value.",type:{kind:"number"}},min:{description:"Minimum value.",type:{kind:"number"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},step:{description:"Granularity of value changes.",type:{kind:"number"}},value:{description:"Current value.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"range"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"min",condition:{kind:"when-provided",prop:"min"},value:{kind:"template",pattern:"{min}"}},{target:{on:"descendant",selector:"input"},attribute:"max",condition:{kind:"when-provided",prop:"max"},value:{kind:"template",pattern:"{max}"}},{target:{on:"descendant",selector:"input"},attribute:"step",condition:{kind:"when-provided",prop:"step"},value:{kind:"template",pattern:"{step}"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"template",pattern:"{value}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"template",pattern:"{name}"}}]}},K="set-sidebar",oi="(min-width: 68em)",B="Collapse sidebar",he="Open sidebar";function di(e,n){return`<div data-part="close">${re({appearance:"text",icon:"panel-left",iconMirrored:"rtl",label:e,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})}</div>`}function $e({aboveNotebook:e="persistent",buttonSize:n="md",children:t,collapseLabel:i=B,footer:r,header:a,id:o,surface:d,triggerLabel:s=he}){const p=o.trim(),l=i.trim()||B,c=s.trim()||he;if(!p)throw new Error("id must be a non-empty string.");if(!P(p))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const h=[{kind:"element",tag:"div",attrs:{class:"header"},children:a?[{kind:"raw",html:a}]:[]},{kind:"element",tag:"div",attrs:{class:"content"},children:t?[{kind:"raw",html:t}]:[]}];r&&h.push({kind:"element",tag:"div",attrs:{class:"footer"},children:[{kind:"raw",html:r}]});const b=`${p}-panel`;return{kind:"element",tag:K,attrs:{class:"set-sidebar","data-above-notebook":e,"data-collapse-label":l!==B?l:void 0,"data-button-size":n,id:p},children:[{kind:"element",tag:"div",attrs:{"data-part":"trigger"},children:[ne({appearance:"text",controls:b,disclosure:!0,icon:"panel-left",iconMirrored:"rtl",label:c,labelVisibility:"hidden",size:n,tone:"neutral",type:"button"})]},{kind:"element",tag:"div",attrs:{class:"sidebar","data-set-surface":d,id:b,tabindex:"-1"},children:h},{kind:"element",tag:"div",attrs:{"data-part":"backdrop"},children:[]}]}}function si(e){return m($e(e))}function Fe(){if(customElements.get(K))return;class e extends HTMLElement{#e;#t;#i;#n;connectedCallback(){this.#v(),this.#l(),this.#g(),this.#f()}disconnectedCallback(){this.close(),this.#v()}open(){this.#b(!0)}close(){this.#b(!1)}#d(){return this.querySelector(".sidebar")}#r(){return this.querySelector('[data-part="close"] .set-button')}#c(){return this.querySelector('[data-part="trigger"] .set-button')}#s(){return this.hasAttribute("data-open")}#u(){return this.hasAttribute("data-collapsed")}#a(){const t=this.getAttribute("data-above-notebook");return t==="collapsible"||t==="overlay"?t:"persistent"}#l(){const t=this.#d();if(!t||t.querySelector('[data-part="close"]'))return;const i=t.querySelector(".header"),r=this.getAttribute("data-collapse-label")||B,a=this.getAttribute("data-button-size")??"md";i?.insertAdjacentHTML("beforeend",di(r,a))}#o(){this.querySelector('[data-part="close"]')?.remove()}#h(){const t=this.#r();if(t){t.focus();return}this.#d()?.focus()}#k(){return this.#e?.matches??!1}#p({collapsed:t,open:i}){const r=this.#c();this.toggleAttribute("data-open",i),this.toggleAttribute("data-collapsed",t),r?.setAttribute("aria-expanded",i?"true":"false")}#g(){const t=this.#a();if(this.#k()){if(t==="overlay"){this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1);return}if(t==="collapsible"){this.#l(),this.#p({collapsed:this.#u(),open:!0}),this.#m(!1);return}this.#o(),this.#p({collapsed:!1,open:!0}),this.#m(!1);return}this.#l(),this.#p({collapsed:!1,open:!1}),this.#m(!1)}#b(t){const i=this.#a();if(this.#k()){if(i==="persistent"){this.#p({collapsed:!1,open:!0}),this.#m(!1);return}if(i==="collapsible"){this.#p({collapsed:!t,open:!0}),this.#m(!1),t&&this.#h();return}}if(this.#s()!==t){if(t){this.#p({collapsed:!1,open:!0}),this.#m(!0),this.#h();return}this.#p({collapsed:!1,open:!1}),this.#m(!1),this.#c()?.focus()}}#m(t){const i=this.ownerDocument.documentElement;if(i){if(t){i.setAttribute("data-set-scroll-locked","");return}i.removeAttribute("data-set-scroll-locked")}}#f(){const t=this.ownerDocument.defaultView;t&&(typeof t.matchMedia=="function"&&(this.#e=t.matchMedia(oi),this.#n=()=>{this.#g()},this.#e.addEventListener("change",this.#n),this.#g()),this.#t=i=>{const r=i.target;if(r instanceof Element){if(r.closest('[data-part="trigger"] .set-button')){this.open();return}if(r.closest('[data-part="close"] .set-button')){if(this.#k()&&this.#a()==="collapsible"){this.#b(this.#u());return}this.close();return}r.closest('[data-part="backdrop"]')&&this.close()}},this.#i=i=>{i.key!=="Escape"&&i.key!=="Esc"||this.close()},this.addEventListener("click",this.#t),this.addEventListener("keydown",this.#i))}#v(){this.#t&&this.removeEventListener("click",this.#t),this.#i&&this.removeEventListener("keydown",this.#i),this.#e&&this.#n&&this.#e.removeEventListener("change",this.#n),this.#t=void 0,this.#i=void 0,this.#e=void 0,this.#n=void 0}}customElements.define(K,e)}const li={name:"sidebar",description:"Use `sidebar` for a side panel alongside main content.",output:{element:K,class:"set-sidebar"},content:{kind:"slots",slots:[{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{aboveNotebook:{default:"persistent",description:"Layout behaviour on wider screens.",type:{kind:"enum",values:["persistent","collapsible","overlay"]}},buttonSize:{default:"md",description:"Size of the trigger and collapse buttons.",type:{kind:"enum",values:["sm","md","lg"]}},children:{description:"Sidebar body content.",type:{kind:"html"}},collapseLabel:{default:B,description:"Accessible label for the collapse button.",type:{kind:"string"}},footer:{description:"Content rendered in the sidebar footer.",type:{kind:"html"}},header:{description:"Content rendered in the sidebar header.",type:{kind:"html"}},id:{description:"DOM id applied to the host. The inner panel id is derived as `${id}-panel` and wired to the trigger via `aria-controls`.",required:!0,type:{kind:"string"}},surface:{description:"Surface context. Applied to the inner panel.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},triggerLabel:{default:he,description:"Accessible label for the open button.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-above-notebook",condition:{kind:"always"},value:{kind:"prop",prop:"aboveNotebook"}},{target:{on:"host"},attribute:"data-button-size",condition:{kind:"always"},value:{kind:"prop",prop:"buttonSize"}},{target:{on:"host"},attribute:"data-collapse-label",condition:{kind:"all",of:[{kind:"when-non-empty",prop:"collapseLabel"},{kind:"not",of:{kind:"when-equals",prop:"collapseLabel",to:B}}]},value:{kind:"prop",prop:"collapseLabel"}},{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}-panel"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"tabindex",condition:{kind:"always"},value:{kind:"literal",text:"-1"}},{target:{on:"descendant",selector:"div.sidebar"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}}]}},X="set-video";function Ze({autoPlay:e,controls:n,fit:t="intrinsic",height:i,id:r,loop:a,muted:o,playsInline:d,poster:s,preload:p,src:l,width:c}){const h=v(r),b=l.trim(),S=s?.trim();if(!b)throw new Error("src must be a non-empty string.");const f={kind:"element",tag:"video",attrs:{autoplay:!!e,class:"video",controls:!!n,height:i?String(i):void 0,loop:!!a,muted:!!o,playsinline:!!d,poster:S||void 0,preload:p,src:b,width:c?String(c):void 0},children:[]};return{kind:"element",tag:X,attrs:{class:"set-video","data-fluid":t==="fluid",id:h},children:[f]}}function pi(e){return m(Ze(e))}const ci="(prefers-reduced-motion: reduce)";function je(){if(customElements.get(X))return;class e extends HTMLElement{#e=!1;#t;#i;connectedCallback(){const t=this.querySelector("video");if(!t||(this.#e||=t.hasAttribute("autoplay"),!this.#e))return;const i=this.ownerDocument.defaultView;!i||typeof i.matchMedia!="function"||(this.#t=i.matchMedia(ci),this.#i=()=>{this.#n()},this.#t.addEventListener("change",this.#i),this.#n())}disconnectedCallback(){this.#t&&this.#i&&this.#t.removeEventListener("change",this.#i),this.#t=void 0,this.#i=void 0}#n(){const t=this.querySelector("video");!t||!this.#t||(this.#t.matches?(t.removeAttribute("autoplay"),t.pause()):(t.setAttribute("autoplay",""),t.paused&&t.play()?.catch?.(()=>{})))}}customElements.define(X,e)}const ui={name:"video",description:"Use `video` to render a video with intrinsic or fluid fit and native playback behavior.",output:{element:X,class:"set-video"},content:{kind:"none"},props:{autoPlay:{default:!1,description:"Starts playback automatically. Browsers only honor this when `muted` is also set. Suspended when the user prefers reduced motion.",type:{kind:"boolean"}},controls:{default:!1,description:"Shows the browser's native playback controls.",type:{kind:"boolean"}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the video's own dimensions, `fluid` scales to the container's full inline size at the video's aspect ratio.",type:{kind:"enum",values:["intrinsic","fluid"]}},height:{description:"Intrinsic height in pixels. With `width`, reserves the correctly shaped box before the media loads; rendered height always follows the aspect ratio.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},loop:{default:!1,description:"Restarts playback when the video ends.",type:{kind:"boolean"}},muted:{default:!1,description:"Starts playback silent. Required for `autoPlay` to take effect in most browsers.",type:{kind:"boolean"}},playsInline:{default:!1,description:"Plays inline instead of fullscreen on iOS. Required for `autoPlay` on iOS.",type:{kind:"boolean"}},poster:{description:"Image URL shown before playback begins.",type:{kind:"string"}},preload:{description:"Preload hint. Omitted by default, deferring to the browser.",type:{kind:"enum",values:["auto","metadata","none"]}},src:{description:"Video source URL.",required:!0,type:{kind:"string"}},width:{description:"Intrinsic width in pixels. Sets the rendered width, capped at the container; under `fluid`, an aspect-ratio hint only.",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}},{target:{on:"descendant",selector:"video"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"video"}},{target:{on:"descendant",selector:"video"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"video"},attribute:"autoplay",condition:{kind:"when-truthy",prop:"autoPlay"}},{target:{on:"descendant",selector:"video"},attribute:"controls",condition:{kind:"when-truthy",prop:"controls"}},{target:{on:"descendant",selector:"video"},attribute:"loop",condition:{kind:"when-truthy",prop:"loop"}},{target:{on:"descendant",selector:"video"},attribute:"muted",condition:{kind:"when-truthy",prop:"muted"}},{target:{on:"descendant",selector:"video"},attribute:"playsinline",condition:{kind:"when-truthy",prop:"playsInline"}},{target:{on:"descendant",selector:"video"},attribute:"poster",condition:{kind:"when-non-empty",prop:"poster"},value:{kind:"prop",prop:"poster"}},{target:{on:"descendant",selector:"video"},attribute:"preload",condition:{kind:"when-provided",prop:"preload"},value:{kind:"prop",prop:"preload"}}]}};function hi(e){return e?/[A-Za-z]/.test(e):!1}function mi(e){return/^[a-z]/.test(e)}function D(e){const n=e.charAt(0);return hi(n)?n:void 0}function Ke(e){const n=O(e);if(!n)return;const t=n.split(" "),i=D(t[0]);if(!i)return;const r=[i.toUpperCase()];if(t.length===1)return r[0];const a=t.slice(1).find(mi);if(a){const d=D(a);return d?`${r[0]}${d}`:void 0}if(t.length===2){const d=D(t[1]);if(!d)return;r.push(d);const s=t[1].split("-").filter(Boolean);if(s.length===2){const p=D(s[1]);p&&r.push(p)}return r.slice(0,3).join("")}if(t.length===3){const d=D(t[1]),s=D(t[2]);return!d||!s?void 0:(r.push(d,s),r.slice(0,3).join(""))}const o=D(t.at(-1)||"");if(o)return r.push(o),r.slice(0,3).join("")}const ki={bot:"robot-1",organization:"city-6",person:"user-1",team:"member"},ze=["01","02","03","04","05","06","07","08","09"];function gi(e){let n=5381;for(const t of e)n=n*33^t.charCodeAt(0);return n>>>0}function bi(e){if(e==null)return;const n=O(e);if(n){if(n.length>3)throw new Error("initials must normalize to 3 characters or fewer.");if(!/^[A-Za-z]{1,3}$/.test(n))throw new Error("initials must contain only alphabetic characters.");return n}}function vi({alt:e,ariaHidden:n,name:t}){if(!n)return O(e)||O(t)||"Avatar"}function fi({color:e,name:n}){if(e)return e;if(n){const t=gi(n)%ze.length;return ze[t]}return"neutral"}function Xe({alt:e,ariaHidden:n,color:t,entity:i="person",id:r,initials:a,name:o,size:d="md",src:s}){const p=v(r),l=bi(a),c=O(o),h=O(s),b=vi({alt:e,ariaHidden:n,name:c}),S=l||Ke(c),f=!!h,x=fi({color:t,name:c}),L={"aria-hidden":n?"true":void 0,"aria-label":!n&&!f?b:void 0,class:"set-avatar","data-color":x==="neutral"?void 0:x,"data-entity":i==="person"?void 0:i,"data-size":d,id:p,role:!n&&!f?"img":void 0};let w;return f?w={kind:"element",tag:"img",attrs:{alt:n?"":b||"",class:"img",src:h},children:[]}:S?w={kind:"element",tag:"span",attrs:{class:"initials"},children:[{kind:"text",value:S}]}:w={kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[V({ariaHidden:!0,name:ki[i],size:"fill"})]},{kind:"element",tag:"span",attrs:L,children:[w]}}function yi(e){return m(Xe(e))}const wi={name:"avatar",description:"Use `avatar` to visually represent a person, team, or entity.",output:{element:"span",class:"set-avatar"},content:{kind:"none"},props:{alt:{description:"Accessible label for the avatar, overrides name.",type:{kind:"string"}},ariaHidden:{default:!1,description:"Hides the avatar from assistive technology.",type:{kind:"boolean"}},entity:{default:"person",description:"Type of subject the avatar represents.",type:{kind:"enum",values:["bot","organization","person","team"]}},color:{description:"Background color swatch. Derived from name when omitted.",type:{kind:"enum",values:["neutral","01","02","03","04","05","06","07","08","09"]}},id:{description:"DOM id.",type:{kind:"string"}},initials:{description:"Initials to display. 1–3 alphabetic characters. Overrides name-derived initials.",type:{kind:"string"}},name:{description:"Full name. Used for the label and to derive initials.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},src:{description:"Image source URL.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-entity",condition:{kind:"when-in",prop:"entity",values:["bot","organization","team"]},value:{kind:"prop",prop:"entity"}},{target:{on:"host"},attribute:"data-color",condition:{kind:"when-in",prop:"color",values:["01","02","03","04","05","06","07","08","09"]},value:{kind:"prop",prop:"color"}},{target:{on:"host"},attribute:"aria-hidden",condition:{kind:"when-truthy",prop:"ariaHidden"},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Qe({floating:e,id:n,label:t,size:i="md",tone:r}){const a=v(n);return{kind:"element",tag:"span",attrs:{class:"set-badge","data-floating":e,"data-size":i,"data-tone":r||void 0,id:a},children:[{kind:"text",value:t}]}}function Si(e){return m(Qe(e))}const Ei={name:"badge",description:"Use `badge` to annotate content with a short label.",output:{element:"span",class:"set-badge"},content:{kind:"text",prop:"label"},props:{floating:{default:!1,description:"Positions the badge as a floating overlay.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Badge text.",required:!0,type:{kind:"text"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},tone:{description:"Semantic tone.",type:{kind:"enum",values:["notification","live","pending","success","warning","error"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-floating",condition:{kind:"when-truthy",prop:"floating"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-provided",prop:"tone"},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Q({align:e,as:n,children:t,id:i,linkVisited:r=!0,measured:a,monospaced:o,responsive:d,size:s="md",tone:p="default"}){const l=v(i),c=n==="p"?"p":"span",h=c==="p",b=h?e??"start":void 0;return{kind:"element",tag:c,attrs:{class:"set-text","data-align":b&&b!=="start"?b:void 0,"data-link-visited":r?void 0:"off","data-measured":h?a??!0:void 0,"data-monospaced":o,"data-responsive":d,"data-size":s,"data-tone":p==="muted"?"muted":void 0,id:l},children:[{kind:"raw",html:t}]}}function xi(e){return m(Q(e))}const Ci={name:"text",description:"Use `text` for inline or paragraph body copy.",output:{element:{kind:"switch",prop:"as",cases:{p:"p",span:"span"}},class:"set-text"},content:{kind:"html",prop:"children"},props:{as:{default:"span",description:"HTML element used for the text.",type:{kind:"enum",values:["p","span"]}},children:{description:"Text content. Supports inline markup such as `<em>`, `<strong>`, `<a>`, `<code>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the text.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales text across breakpoints.",type:{kind:"boolean"}},align:{default:"start",description:"Text alignment.",ignoredWhen:"`as` is span",type:{kind:"enum",values:["start","center","end"]}},measured:{default:!0,description:"Caps line length for comfortable reading.",ignoredWhen:"`as` is span",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","muted"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-in",prop:"align",values:["center","end"]}]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"all",of:[{kind:"when-equals",prop:"as",to:"p"},{kind:"when-truthy",prop:"measured"}]}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"muted"},value:{kind:"literal",text:"muted"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ye({align:e="start",attribution:n,id:t,measured:i=!0,quote:r,responsive:a=!1,size:o="md"}){const d=v(t);return{kind:"element",tag:"figure",attrs:{class:"set-blockquote","data-align":e==="start"?void 0:e,id:d},children:[{kind:"element",tag:"blockquote",attrs:{class:"quote"},children:[Q({align:e,as:"p",children:r,measured:i,responsive:a,size:o})]},{kind:"element",tag:"figcaption",attrs:{class:"attribution"},children:[Q({as:"span",children:n,responsive:a,size:"sm"})]}]}}function zi(e){return m(Ye(e))}const Ti={name:"blockquote",description:"Use `blockquote` to display a quote with attribution.",output:{element:"figure",class:"set-blockquote"},content:{kind:"slots",slots:[{prop:"quote",kind:"html"},{prop:"attribution",kind:"html"}]},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},attribution:{description:"Attribution shown beneath the quote. Supports inline markup such as `<a>`, `<cite>`, `<em>`, etc.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},quote:{description:"Quote content. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant for the quote.",type:{kind:"enum",values:["md","lg"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Je({background:e="default",border:n,children:t,id:i,paddingBlock:r="md",paddingInline:a="md",radius:o,responsive:d,surface:s}){const p=v(i);return{kind:"element",tag:"div",attrs:{class:"set-box","data-background":e==="default"?void 0:e,"data-border":n,"data-set-surface":s,"data-padding-block":r,"data-padding-inline":a,"data-radius":o,"data-responsive":d,id:p},children:t?[{kind:"raw",html:t}]:[]}}function _i(e){return m(Je(e))}const Li={name:"box",description:"Use `box` to inset content.",output:{element:"div",class:"set-box"},content:{kind:"html",prop:"children"},props:{background:{default:"default",description:"Background treatment.",type:{kind:"enum",values:["default","panel","transparent"]}},border:{default:!1,description:"Shows a subtle border around the box.",type:{kind:"boolean"}},children:{description:"Content rendered inside the box.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},paddingBlock:{default:"md",description:"Vertical padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},paddingInline:{default:"md",description:"Horizontal padding.",type:{kind:"enum",values:["none","2xs","xs","sm","md","lg","xl","2xl"]}},radius:{description:"Corner radius.",type:{kind:"enum",values:["sm","md"]}},responsive:{default:!1,description:"Scales vertical padding across breakpoints.",type:{kind:"boolean"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-background",condition:{kind:"when-in",prop:"background",values:["panel","transparent"]},value:{kind:"prop",prop:"background"}},{target:{on:"host"},attribute:"data-border",condition:{kind:"when-truthy",prop:"border"}},{target:{on:"host"},attribute:"data-padding-block",condition:{kind:"always"},value:{kind:"prop",prop:"paddingBlock"}},{target:{on:"host"},attribute:"data-padding-inline",condition:{kind:"always"},value:{kind:"prop",prop:"paddingInline"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-provided",prop:"radius"},value:{kind:"prop",prop:"radius"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function et({description:e,headingLevel:n,href:t,id:i,note:r,surface:a,title:o}){const d=v(i),s=n?`h${n}`:"div",p=t?[{kind:"element",tag:"a",attrs:{href:t},children:[{kind:"text",value:o}]}]:[{kind:"text",value:o}],l=r?[{kind:"raw",html:r}]:[];r&&t&&l.push({kind:"element",tag:"span",attrs:{class:"icon-wrapper"},children:[V({ariaHidden:!0,mirrored:"rtl",name:"arrow-right",size:"xs"})]});const c=[{kind:"element",tag:"span",attrs:{class:"dots"},children:[{kind:"element",tag:"span",attrs:{},children:[]}]},{kind:"element",tag:s,attrs:{class:"title"},children:p},{kind:"element",tag:"p",attrs:{class:"description"},children:[{kind:"raw",html:e}]}];return r&&c.push({kind:"element",tag:"p",attrs:{class:"note"},children:l}),{kind:"element",tag:"div",attrs:{class:"set-card","data-set-surface":a,id:d},children:c}}function Mi(e){return m(et(e))}const Ii={name:"card",description:"Use `card` to display a summary for a single topic.",output:{element:"div",class:"set-card"},content:{kind:"slots",slots:[{prop:"title",kind:"text"},{prop:"description",kind:"html"},{prop:"note",kind:"html"}]},props:{description:{description:"Supporting description shown below the `title`.",required:!0,type:{kind:"html"}},headingLevel:{description:"Semantic heading level for the title. Renders a `<div>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},href:{description:"Link destination for the `title`.",type:{kind:"string"}},id:{description:"DOM id.",type:{kind:"string"}},note:{description:"Short note shown beneath the `description`.",type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}},title:{description:"Card title.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function tt({checked:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,required:d,size:s="md",value:p}){const l=v(i),c=n?.trim();if(c&&!l)throw new Error("id must be provided when description is provided.");const h=c?`${l}-description`:void 0,b=!!t,f=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":h,"aria-invalid":!b&&!!r?"true":void 0,checked:!!e,class:"checkbox",disabled:b,id:l,name:o||void 0,required:!!d,type:"checkbox",value:p||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:a}]}]}];return c&&f.push({kind:"element",tag:"p",attrs:{class:"description",id:h},children:[{kind:"text",value:c}]}),{kind:"element",tag:"div",attrs:{class:"set-checkbox","data-size":s},children:f}}function Ai(e){return m(tt(e))}const qi={name:"checkbox",description:"Use `checkbox` to let users toggle a single option on or off.",output:{element:"div",class:"set-checkbox"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the checkbox is checked.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},invalid:{default:!1,description:"Marks the checkbox as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},label:{description:"Label shown next to the checkbox.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},required:{default:!1,description:"Marks the checkbox as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Value submitted with the form.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function it({children:e,gutter:n="default",id:t,maxInlineSize:i="default"}){const r=v(t);return{kind:"element",tag:"div",attrs:{class:"set-container","data-gutter":n==="default"?void 0:n,"data-max-inline-size":i==="default"?void 0:i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function Ni(e){return m(it(e))}const Pi={name:"container",description:"Use `container` to wrap page-level content.",output:{element:"div",class:"set-container"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the container.",type:{kind:"html"}},gutter:{default:"default",description:"Horizontal gutter width.",type:{kind:"enum",values:["default","narrow","none"]}},id:{description:"DOM id.",type:{kind:"string"}},maxInlineSize:{default:"default",description:"Maximum content width. Effect is only visible in wider viewports.",type:{kind:"enum",values:["default","wide","none"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-max-inline-size",condition:{kind:"when-in",prop:"maxInlineSize",values:["wide","none"]},value:{kind:"prop",prop:"maxInlineSize"}},{target:{on:"host"},attribute:"data-gutter",condition:{kind:"when-in",prop:"gutter",values:["narrow","none"]},value:{kind:"prop",prop:"gutter"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function nt({children:e,id:n,open:t,summary:i,inlineSize:r="full"}){const a=v(n);return{kind:"element",tag:"details",attrs:{class:"set-details",open:t,"data-inline-size":r==="fit"?"fit":void 0,id:a},children:[{kind:"element",tag:"summary",attrs:{class:"summary"},children:[{kind:"element",tag:"span",attrs:{class:"marker"},children:[V({ariaHidden:!0,name:"chevron-right",size:"sm"})]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:i}]}]},{kind:"element",tag:"div",attrs:{class:"content"},children:e?[{kind:"raw",html:e}]:[]}]}}function Di(e){return m(nt(e))}const Vi={name:"details",description:"Use `details` to let users expand and collapse a section of content.",output:{element:"details",class:"set-details"},content:{kind:"slots",slots:[{prop:"summary",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Content revealed when the details is open.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the details fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}},open:{default:!1,description:"Opens the details by default.",type:{kind:"boolean"}},summary:{description:"Summary shown in the toggle.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"open",condition:{kind:"when-truthy",prop:"open"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function rt({id:e,orientation:n="horizontal",tone:t="default"}={}){const i=v(e);return{kind:"element",tag:n==="horizontal"?"hr":"span",attrs:{"aria-orientation":n==="vertical"?"vertical":void 0,class:"set-divider","data-tone":t==="subtle"||t==="brand"?t:void 0,id:i,role:n==="vertical"?"separator":void 0},children:[]}}function Hi(e={}){return m(rt(e))}const Bi={name:"divider",description:"Use `divider` to separate sections with a rule.",output:{element:{kind:"switch",prop:"orientation",cases:{horizontal:"hr",vertical:"span"}},class:"set-divider"},content:{kind:"none"},props:{id:{description:"DOM id.",type:{kind:"string"}},orientation:{default:"horizontal",description:"Divider orientation.",type:{kind:"enum",values:["horizontal","vertical"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"role",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"separator"}},{target:{on:"host"},attribute:"aria-orientation",condition:{kind:"when-equals",prop:"orientation",to:"vertical"},value:{kind:"literal",text:"vertical"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","brand"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function we({children:e,description:n,disabled:t,id:i,invalid:r,legend:a,inlineSize:o="full"}){const d=n?.trim(),s=i.trim();if(!s)throw new Error("id must be a non-empty string.");if(!P(s))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const p=d?`${s}-description`:void 0,l=!!t,c=!l&&!!r,h=[{kind:"element",tag:"legend",attrs:{class:"legend"},children:[{kind:"text",value:a}]}];return d&&h.push({kind:"element",tag:"p",attrs:{class:"description",id:p},children:[{kind:"text",value:d}]}),e&&h.push({kind:"raw",html:e}),{kind:"element",tag:"fieldset",attrs:{"aria-describedby":d?p:void 0,"aria-invalid":c?"true":void 0,class:"set-fieldset","data-inline-size":o==="fit"?"fit":void 0,disabled:l,id:s},children:h}}function Oi(e){return m(we(e))}const Ri={name:"fieldset",description:"Use `fieldset` to group related form controls under a legend.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"slots",slots:[{prop:"legend",kind:"text"},{prop:"children",kind:"html"}]},props:{children:{description:"Form controls grouped inside the fieldset.",type:{kind:"html"}},description:{description:"Description shown below the legend; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction with controls in the group.",type:{kind:"boolean"}},id:{description:"`id` for the fieldset.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},legend:{description:"Legend shown above the group.",required:!0,type:{kind:"text"}},inlineSize:{default:"full",description:"Whether the fieldset fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}}]}};function at({align:e="start",caption:n,children:t,id:i,inlineSize:r="full",responsive:a=!1}){const o=v(i);return{kind:"element",tag:"figure",attrs:{class:"set-figure","data-align":e==="start"?void 0:e,"data-inline-size":r==="full"?void 0:r,id:o},children:[{kind:"raw",html:t},{kind:"element",tag:"figcaption",attrs:{class:"figcaption"},children:[Q({as:"span",children:n,responsive:a,size:"sm"})]}]}}function Ui(e){return m(at(e))}const Wi={name:"figure",description:"Use `figure` to present media with a caption.",output:{element:"figure",class:"set-figure"},content:{kind:"slots",slots:[{prop:"children",kind:"html"},{prop:"caption",kind:"html"}]},props:{align:{default:"start",description:"Alignment within available space.",type:{kind:"enum",values:["start","center","end"]}},caption:{description:"Caption shown below the media. Supports inline markup such as `<em>`, `<strong>`, `<cite>`, etc.",required:!0,type:{kind:"html"}},children:{description:"Media rendered inside the figure.",required:!0,type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the figure fills its container or shrinks to fit the media.",type:{kind:"enum",values:["full","fit"]}},responsive:{default:!1,description:"Scales the caption across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},I=e=>{if(e!==void 0)return String(e)};function ot({children:e,gap:n="default",id:t}){const i=v(t);return{kind:"element",tag:"div",attrs:{class:"set-grid","data-gap":n==="default"?void 0:n,id:i},children:[{kind:"element",tag:"div",attrs:{class:"grid"},children:e?[{kind:"raw",html:e}]:[]}]}}function Gi(e){return m(ot(e))}function dt({align:e,children:n,colSpan:t,colSpanNarrow:i,colSpanWide:r,colStart:a,colStartNarrow:o,colStartWide:d,id:s,justify:p,rowSpan:l,rowSpanNarrow:c,rowSpanWide:h,rowStart:b,rowStartNarrow:S,rowStartWide:f}){const x=v(s);return{kind:"element",tag:"div",attrs:{class:"set-grid-item","data-align":e,"data-justify":p,"data-col-span-narrow":I(i),"data-col-start-narrow":I(o),"data-col-span":I(t),"data-col-start":I(a),"data-col-span-wide":I(r),"data-col-start-wide":I(d),"data-row-span-narrow":I(c),"data-row-start-narrow":I(S),"data-row-span":I(l),"data-row-start":I(b),"data-row-span-wide":I(h),"data-row-start-wide":I(f),id:x},children:n?[{kind:"raw",html:n}]:[]}}function $i(e){return m(dt(e))}const Fi={name:"grid",description:"Use `grid` to lay out content in a 12-column responsive grid.",output:{element:"div",class:"set-grid"},content:{kind:"html",prop:"children"},props:{children:{description:"`grid-item` components rendered inside the grid.",type:{kind:"html"}},gap:{default:"default",description:"Space between the `grid-item` components.",type:{kind:"enum",values:["default","expanded","none"]}},id:{description:"DOM id.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-gap",condition:{kind:"when-in",prop:"gap",values:["expanded","none"]},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}},A={kind:"number",min:1,max:12,integer:!0},Zi={name:"grid-item",description:"Use `grid-item` to place content within a `grid` layout.",output:{element:"div",class:"set-grid-item"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the grid item.",type:{kind:"html"}},align:{description:"Block-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},justify:{description:"Inline-axis alignment within the grid cell.",type:{kind:"enum",values:["start","center","end"]}},colSpan:{description:"Columns spanned at the default breakpoint.",type:A},colStart:{description:"Starting column at the default breakpoint.",type:A},id:{description:"DOM id.",type:{kind:"string"}},rowSpan:{description:"Rows spanned at the default breakpoint.",type:A},rowSpanNarrow:{description:"Rows spanned at the narrow breakpoint.",type:A},rowSpanWide:{description:"Rows spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:A},rowStart:{description:"Starting row at the default breakpoint.",type:A},rowStartNarrow:{description:"Starting row at the narrow breakpoint.",type:A},rowStartWide:{description:"Starting row at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:A},colSpanNarrow:{description:"Columns spanned at the narrow breakpoint.",type:A},colStartNarrow:{description:"Starting column at the narrow breakpoint.",type:A},colSpanWide:{description:"Columns spanned at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:A},colStartWide:{description:"Starting column at the wide breakpoint. Effect is only visible above the wide breakpoint.",type:A}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-provided",prop:"align"},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-provided",prop:"justify"},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-col-span",condition:{kind:"when-provided",prop:"colSpan"},value:{kind:"prop",prop:"colSpan"}},{target:{on:"host"},attribute:"data-col-start",condition:{kind:"when-provided",prop:"colStart"},value:{kind:"prop",prop:"colStart"}},{target:{on:"host"},attribute:"data-col-span-narrow",condition:{kind:"when-provided",prop:"colSpanNarrow"},value:{kind:"prop",prop:"colSpanNarrow"}},{target:{on:"host"},attribute:"data-col-start-narrow",condition:{kind:"when-provided",prop:"colStartNarrow"},value:{kind:"prop",prop:"colStartNarrow"}},{target:{on:"host"},attribute:"data-col-span-wide",condition:{kind:"when-provided",prop:"colSpanWide"},value:{kind:"prop",prop:"colSpanWide"}},{target:{on:"host"},attribute:"data-col-start-wide",condition:{kind:"when-provided",prop:"colStartWide"},value:{kind:"prop",prop:"colStartWide"}},{target:{on:"host"},attribute:"data-row-span",condition:{kind:"when-provided",prop:"rowSpan"},value:{kind:"prop",prop:"rowSpan"}},{target:{on:"host"},attribute:"data-row-start",condition:{kind:"when-provided",prop:"rowStart"},value:{kind:"prop",prop:"rowStart"}},{target:{on:"host"},attribute:"data-row-span-narrow",condition:{kind:"when-provided",prop:"rowSpanNarrow"},value:{kind:"prop",prop:"rowSpanNarrow"}},{target:{on:"host"},attribute:"data-row-start-narrow",condition:{kind:"when-provided",prop:"rowStartNarrow"},value:{kind:"prop",prop:"rowStartNarrow"}},{target:{on:"host"},attribute:"data-row-span-wide",condition:{kind:"when-provided",prop:"rowSpanWide"},value:{kind:"prop",prop:"rowSpanWide"}},{target:{on:"host"},attribute:"data-row-start-wide",condition:{kind:"when-provided",prop:"rowStartWide"},value:{kind:"prop",prop:"rowStartWide"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function st({align:e="start",id:n,level:t,opticalAlign:i,responsive:r,size:a="md",text:o}){const d=v(n);return{kind:"element",tag:t?`h${t}`:"span",attrs:{class:"set-heading","data-align":e==="start"?void 0:e,"data-optical-align":i,"data-responsive":r,"data-size":a,id:d},children:[{kind:"text",value:o}]}}function ji(e){return m(st(e))}const Ki={name:"heading",description:"Use `heading` to render heading text with consistent type.",output:{element:{kind:"switch",prop:"level",cases:{1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"}},class:"set-heading"},content:{kind:"text",prop:"text"},props:{align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},id:{description:"DOM id.",type:{kind:"string"}},level:{description:"Semantic heading level. Renders a `<span>` when omitted.",type:{kind:"enum",values:[1,2,3,4,5,6]}},opticalAlign:{default:!1,description:"Optically aligns left sidebearing-heavy glyphs with the content edge.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales type across breakpoints.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","2xl","3xl","4xl","5xl"]}},text:{description:"Heading text.",required:!0,type:{kind:"text"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-optical-align",condition:{kind:"when-truthy",prop:"opticalAlign"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function lt({adaptive:e,animated:n,alt:t="",aspectRatio:i,fit:r="intrinsic",gravity:a="C",height:o,id:d,lazy:s,leadSrc:p,priority:l,radius:c,shadow:h,sizes:b,sources:S,src:f,srcSet:x,still:L,width:w}){const k=r==="cover",T=v(d),E=f.trim(),C=x?.trim(),q=p?.trim(),N=L?.trim(),H=b?.trim(),_=S?.map((u,z)=>{const M=u.srcSet.trim(),y=u.media?.trim(),g=u.type?.trim(),Mt=u.sizes?.trim(),It=u.leadSrc?.trim(),At=u.still?.trim();if(!M)throw new Error(`sources[${z}].srcSet must be non-empty.`);return{height:u.height,leadSrc:It||void 0,media:y||void 0,sizes:Mt||void 0,srcSet:M,still:At||void 0,type:g||void 0,width:u.width}})||[];if(!E)throw new Error("src must be a non-empty string.");if(e&&[E,C,..._.map(u=>u.srcSet)].some(u=>u?.includes("#")))throw new Error("adaptive sources must not contain URL fragments.");const Y=!!(n&&e),ae=!!(n&&q),J=!!q||_.some(u=>u.leadSrc);if(!n&&J)throw new Error("leadSrc requires animated.");if(n){const u=[E,C,q,..._.flatMap(y=>[y.srcSet,y.leadSrc])].filter(y=>!!y),z=u.filter(y=>y.includes("{scheme}"));if(e&&z.length!==u.length)throw new Error("adaptive animated sources must contain a {scheme} placeholder.");if(!e&&z.length>0)throw new Error("the {scheme} placeholder requires adaptive to enable light/dark.");if(!N)throw new Error("animated requires a still.");if([N,..._.map(y=>y.still)].filter(y=>!!y).some(y=>y.includes("#")))throw new Error("animated still must not contain URL fragments.")}const Se=(u,z)=>u.split(/,\s+/).map(M=>{const[y,...g]=M.trim().split(/\s+/);if(!y||g.length>1)throw new Error("adaptive srcSet candidates must be a URL plus at most one descriptor, separated by a comma and whitespace.");return[`${y}#${z}`,...g].join(" ")}).join(", "),oe=u=>{const z={kind:"element",tag:"img",attrs:{alt:t,class:"img","data-scheme":u&&_.length===0?u:void 0,fetchpriority:l?"high":void 0,height:k?void 0:o?String(o):void 0,loading:s&&!l?"lazy":void 0,sizes:_.length>0?void 0:H||void 0,src:u?`${E}#${u}`:E,srcset:C&&u?Se(C,u):C||void 0,width:k?void 0:w?String(w):void 0},children:[]};if(_.length===0)return z;const M=_.map(y=>({kind:"element",tag:"source",attrs:{height:y.height?String(y.height):void 0,media:y.media,sizes:y.sizes,srcset:u?Se(y.srcSet,u):y.srcSet,type:y.type,width:y.width?String(y.width):void 0},children:[]}));return{kind:"element",tag:"picture",attrs:{"data-scheme":u},children:[...M,z]}},de="(prefers-reduced-motion: reduce)",R=(u,z)=>z?u.replaceAll("{scheme}",z):u,se=(u,z)=>z?`${u}#${z}`:u,Ee=u=>{const z=_.filter(g=>g.still).map(g=>({kind:"element",tag:"source",attrs:{height:g.height?String(g.height):void 0,media:g.media?`${de} and ${g.media}`:de,srcset:se(g.still,u),width:g.width?String(g.width):void 0},children:[]}));z.push({kind:"element",tag:"source",attrs:{media:de,srcset:se(N,u)},children:[]});const M=_.map(g=>({kind:"element",tag:"source",attrs:{height:g.height?String(g.height):void 0,media:g.media,sizes:g.sizes,srcset:R(g.srcSet,u),type:g.type,width:g.width?String(g.width):void 0},children:[]})),y={kind:"element",tag:"img",attrs:{alt:t,class:"img",fetchpriority:l?"high":void 0,height:k?void 0:o?String(o):void 0,loading:s&&!l?"lazy":void 0,sizes:_.length>0?void 0:H||void 0,src:R(E,u),srcset:C?R(C,u):void 0,width:k?void 0:w?String(w):void 0},children:[]};return{kind:"element",tag:"picture",attrs:{"data-scheme":u},children:[...z,...M,y]}},_t=u=>{const z="(prefers-reduced-motion: no-preference)",M=_.map(g=>{if(g.leadSrc)return{kind:"element",tag:"source",attrs:{height:g.height?String(g.height):void 0,media:g.media?`${z} and ${g.media}`:z,sizes:g.sizes,srcset:R(g.leadSrc,u),type:g.type,width:g.width?String(g.width):void 0},children:[]}}).filter(g=>!!g);M.push({kind:"element",tag:"source",attrs:{media:z,sizes:_.length>0?void 0:H||void 0,srcset:R(q,u)},children:[]});const y={kind:"element",tag:"img",attrs:{alt:"",class:"img",height:k?void 0:o?String(o):void 0,src:se(N,u),width:k?void 0:w?String(w):void 0},children:[]};return{kind:"element",tag:"picture",attrs:{"data-scheme":u,"data-layer":"lead"},children:[...M,y]}},le=u=>ae?[Ee(u),_t(u)]:[Ee(u)],Lt=n?Y?[...le("light"),...le("dark")]:le():e?[oe("light"),oe("dark")]:[oe()],ee=[];return o&&ee.push(`--set-image-block-size: ${o/16}rem`),w&&ee.push(`--set-image-inline-size: ${w/16}rem`),{kind:"element",tag:"div",attrs:{class:"set-image","data-adaptive":!!e,"data-animated":!!n,"data-sequenced":ae,"data-aspect-ratio":k&&!o?i:void 0,"data-fluid":r==="fluid","data-gravity":k&&a!=="C"?a:void 0,"data-shadow":!!h,"data-object-fit":k?"cover":void 0,"data-radius":!!c,id:T,style:ee.length>0?ee.join("; "):void 0},children:Lt}}function pt(e){return m(lt(e))}const Xi={name:"image",description:"Use `image` to render a responsive image with intrinsic, fluid, or cover fit, and optional art-directed `sources`.",output:{element:"div",class:"set-image"},content:{kind:"none"},props:{adaptive:{default:!1,description:"Shows the image's light or dark variant to match the surrounding color scheme. Use with adaptive assets exported from Screen, which carry both variants in one file; the component selects one by adding `#light`/`#dark` to the URL. With `animated`, it pairs light/dark webp instead, via a `{scheme}` placeholder in the URLs.",type:{kind:"boolean"}},animated:{default:!1,description:"Renders an animated image (e.g. `webp`) with a required `still` shown when the user prefers reduced motion. Combine with `adaptive` for light/dark theming: the `src`/`srcSet`/`sources` URLs then carry no Cloudinary version and a `{scheme}` placeholder — matching Screen's animated exports — which the component substitutes across a light/dark pair. The `still` gets `#light`/`#dark` appended. Without `adaptive`, renders a single, unthemed animated asset. Add a `leadSrc` to sequence: it plays once as an overlay, then reveals `src` after a fixed hold.",type:{kind:"boolean"}},alt:{default:"",description:"Alternative text. Leave empty for decorative images.",type:{kind:"string"}},gravity:{default:"C",description:"Focal point used when cropping.",ignoredWhen:'`fit` is not `"cover"`',type:{kind:"enum",values:["N","NE","E","SE","S","SW","W","NW","C"]}},radius:{default:!1,description:"Applies the default corner radius.",type:{kind:"boolean"}},aspectRatio:{description:"Aspect ratio applied to the wrapper.",ignoredWhen:'`fit` is not `"cover"`, or `height` is set',type:{kind:"enum",values:["1:1","4:5","3:2","16:9","21:9"]}},fit:{default:"intrinsic",description:"Layout mode. `intrinsic` renders at the image's own dimensions, `fluid` scales to the container's full inline size at the active source's aspect ratio, `cover` renders a cropped fill (`object-fit: cover`) sized by the wrapper. For `fluid`, provide candidates sized for large viewports via `srcSet`/`sources` so upscaled rendering stays sharp.",type:{kind:"enum",values:["intrinsic","fluid","cover"]}},shadow:{default:!1,description:"Applies a drop shadow to the image.",type:{kind:"boolean"}},height:{description:"Height in pixels. Under `intrinsic` and `fluid`, an aspect-ratio hint — with `width`, reserves the correctly shaped box before load; rendered height follows the aspect ratio. Under `cover`, the wrapper's block size, overriding `aspectRatio`.",type:{kind:"number"}},id:{description:"DOM id.",type:{kind:"string"}},lazy:{default:!1,description:"Defers loading until the image is near the viewport.",type:{kind:"boolean"}},priority:{default:!1,description:"Marks the image as high priority for fetch.",type:{kind:"boolean"}},sizes:{description:"`sizes` attribute used with `srcSet`.",ignoredWhen:"`sources` are provided",type:{kind:"string"}},sources:{description:"Responsive sources rendered inside a `<picture>`.",type:{kind:"array",itemShape:{height:{description:"Intrinsic height in pixels.",type:{kind:"number"}},media:{description:"`media` condition evaluated for the source.",type:{kind:"string"}},sizes:{description:"`sizes` attribute for the source.",type:{kind:"string"}},srcSet:{description:"Candidate sources for this media entry.",required:!0,type:{kind:"string"}},leadSrc:{description:"Intro overlay for this source in an `animated` sequence.",type:{kind:"string"}},still:{description:"Reduced-motion still for this source, used when `animated`. For a light/dark still, use an adaptive SVG.",type:{kind:"string"}},type:{description:"MIME type for the source resources.",type:{kind:"string"}},width:{description:"Intrinsic width in pixels.",type:{kind:"number"}}}}},srcSet:{description:"Candidate sources for the fallback image.",type:{kind:"string"}},leadSrc:{description:"An intro overlay that sequences an `animated` image: `leadSrc` plays once, then the component reveals `src` after a fixed hold. Follows the same `{scheme}` rules as `animated` sources.",type:{kind:"string"}},still:{description:"Reduced-motion still shown when `animated` and the user prefers reduced motion. Any image works; for a light/dark still use an adaptive SVG exported from Screen, which the component selects with `#light`/`#dark` when combined with `adaptive`.",requiredWhen:"`animated` is set",type:{kind:"string"}},src:{description:"Image source URL.",required:!0,type:{kind:"string"}},width:{description:"Width in pixels. Under `intrinsic`, the rendered width, capped at the container; under `fluid`, an aspect-ratio hint; under `cover`, the wrapper's inline size (`aspectRatio` still derives the block size while `height` is unset).",type:{kind:"number"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-adaptive",condition:{kind:"when-truthy",prop:"adaptive"}},{target:{on:"host"},attribute:"data-animated",condition:{kind:"when-truthy",prop:"animated"}},{target:{on:"host"},attribute:"data-sequenced",condition:{kind:"when-non-empty",prop:"leadSrc"}},{target:{on:"host"},attribute:"data-object-fit",condition:{kind:"when-equals",prop:"fit",to:"cover"},value:{kind:"literal",text:"cover"}},{target:{on:"host"},attribute:"data-shadow",condition:{kind:"when-truthy",prop:"shadow"}},{target:{on:"host"},attribute:"data-radius",condition:{kind:"when-truthy",prop:"radius"}},{target:{on:"host"},attribute:"data-fluid",condition:{kind:"when-equals",prop:"fit",to:"fluid"}},{target:{on:"descendant",selector:"img"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"img"}},{target:{on:"descendant",selector:"img"},attribute:"alt",condition:{kind:"always"},value:{kind:"prop",prop:"alt"}},{target:{on:"descendant",selector:"img"},attribute:"src",condition:{kind:"always"},value:{kind:"template",pattern:"{src}"}},{target:{on:"descendant",selector:"img"},attribute:"srcset",condition:{kind:"when-non-empty",prop:"srcSet"},value:{kind:"prop",prop:"srcSet"}},{target:{on:"descendant",selector:"img"},attribute:"fetchpriority",condition:{kind:"when-truthy",prop:"priority"},value:{kind:"literal",text:"high"}},{target:{on:"descendant",selector:"img"},attribute:"loading",condition:{kind:"all",of:[{kind:"when-truthy",prop:"lazy"},{kind:"not",of:{kind:"when-truthy",prop:"priority"}}]},value:{kind:"literal",text:"lazy"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ct({align:e="center",as:n="div",children:t,gap:i="md",id:r,justify:a="start",nowrap:o}){const d=v(r);return{kind:"element",tag:n,attrs:{class:"set-inline","data-align":e==="center"?void 0:e,"data-gap":i,"data-justify":a==="start"?void 0:a,"data-nowrap":o,id:d},children:t?[{kind:"raw",html:t}]:[]}}function Qi(e){return m(ct(e))}const Yi={name:"inline",description:"Use `inline` to lay out content in a horizontal row.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-inline"},content:{kind:"html",prop:"children"},props:{as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},align:{default:"center",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["start","center","end"]}},children:{description:"Items laid out in a row.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["2xs","xs","sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},justify:{default:"start",description:"Distributes items along the main axis.",type:{kind:"enum",values:["start","center","end","between"]}},nowrap:{description:"Prevents items from wrapping onto new lines.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-justify",condition:{kind:"when-in",prop:"justify",values:["center","end","between"]},value:{kind:"prop",prop:"justify"}},{target:{on:"host"},attribute:"data-nowrap",condition:{kind:"when-truthy",prop:"nowrap"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function ut({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,pattern:d,readOnly:s,required:p,size:l="md",spellcheck:c,type:h="text",value:b,inlineSize:S="full"}){const f=i.trim(),x=n?.trim(),L=e===!1?!1:e?.trim(),w=o?.trim(),k=d?.trim(),T=b;if(!f)throw new Error("id must be a non-empty string.");if(!P(f))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");const E=x?`${f}-description`:void 0,C=h==="numeric",q=C?"text":h,N=k||(C?"^[0-9]*$":void 0),H=c===void 0&&C?!1:c,_=!!t,Y=!_&&!!s,J=[{kind:"element",tag:"label",attrs:{class:"label",for:f},children:[{kind:"text",value:a}]},{kind:"element",tag:"input",attrs:{"aria-describedby":E,"aria-invalid":!_&&!Y&&!!r?"true":void 0,autocomplete:L===!1?"off":L||void 0,class:"input",disabled:_,id:f,inputmode:C?"numeric":void 0,name:w||void 0,pattern:N,readonly:Y,required:!!p,spellcheck:H===void 0?void 0:String(H),type:q,value:T},children:[]}];return x&&J.push({kind:"element",tag:"p",attrs:{class:"description",id:E},children:[{kind:"text",value:x}]}),{kind:"element",tag:"div",attrs:{class:"set-input","data-size":l,"data-inline-size":S==="fit"?"fit":void 0},children:J}}function Ji(e){return m(ut(e))}const en={name:"input",description:"Use `input` to collect a single line of text from users.",output:{element:"div",class:"set-input"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Autocomplete hint. Pass `false` to disable autocomplete.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the input; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Prevents interaction.",type:{kind:"boolean"}},id:{description:"`id` linking the label to the input.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the input as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label shown above the input.",required:!0,type:{kind:"text"}},name:{description:"Name submitted with the form.",type:{kind:"string"}},pattern:{description:"Regex pattern the value must match.",type:{kind:"string"}},readOnly:{default:!1,description:"Makes the input read-only.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Marks the input as required.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Enables browser spellchecking.",type:{kind:"boolean"}},type:{default:"text",description:"Input type.",type:{kind:"enum",values:["text","email","password","tel","url","numeric"]}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"Whether the field fills its container or shrinks to fit.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"input"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-provided",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"input"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"input"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"input"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"input"},attribute:"inputmode",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"numeric"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-equals",prop:"type",to:"numeric"},value:{kind:"literal",text:"text"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"when-not-in",prop:"type",values:["numeric"]},value:{kind:"prop",prop:"type"}}]}},tn="0 0 6714.6 1200",nn="0 0 600 1200",rn=[{x:0,y:0},{x:300,y:0},{x:150,y:300},{x:450,y:300},{x:0,y:600},{x:300,y:600},{x:150,y:900},{x:450,y:900}],an="M0 956h98V571L87 391h2l124 320h89l123-320h3l-11 180v385h98V276H384L260 608h-5L131 276H0zm879.94 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m361.44 83h103V686c0-141 20-169 112-169 73 0 88 18 88 107v332h103V624c0-167-28-202-163-202-95 0-120 16-147 92h-5v-82h-91zm769.16 10c184 0 223-46 223-272 0-225-39-271-223-271-186 0-224 46-224 271 0 226 38 272 224 272m0-93c-102 0-123-30-123-179 0-147 21-177 123-177 100 0 121 30 121 177 0 149-21 179-121 179m363.25-65c-4 132 30 158 202 158 173 0 208-25 208-150 0-118-33-146-191-170-94-14-114-26-114-74 0-50 18-60 103-60 76 0 92 9 96 52h97c-3-118-36-142-194-142-166 0-201 25-201 146 0 114 31 141 182 162 101 13 122 28 122 82 0 53-18 64-103 64-88 0-107-11-110-68zm558.97 363h102V902h5c20 54 41 64 123 64 160 0 193-45 193-270 0-227-34-274-198-274-83 0-105 11-123 65h-4v-55h-98zm209-298c-93 0-112-30-112-179 0-148 19-178 112-178s113 30 113 179c0 148-20 178-113 178m656.46 83h88V610c0-156-34-187-197-187-150 0-181 27-179 157h97c1-61 15-74 85-74 82 0 99 18 99 105v24h-72c-187 0-226 30-226 179 0 126 28 152 162 152 92 0 116-13 138-74h5zm-8-243c-1 135-22 163-119 163-65 0-79-13-79-75 0-74 18-88 107-88zm551.75 95c-10 56-26 67-89 67-100 0-121-31-121-181s20-181 117-181c65 0 81 14 91 79h101c-4-141-37-170-188-170-185 0-224 46-224 272s39 272 226 272c147 0 179-26 186-158zm547.03 9c-15 48-31 58-96 58-96 0-117-23-123-136h324c5-263-32-317-214-317-172 0-207 46-207 271 0 227 38 273 223 273 139 0 172-25 190-149zm-218-160c4-122 24-146 114-146 88 0 108 24 112 146zm787.56 299h93l-1-734h-102l1 266h-5c-19-54-40-65-120-65-162 0-196 46-196 272s35 271 200 271c84 0 105-11 125-65h5zm-115-82c-94 0-114-30-114-180s20-180 114-180c93 0 112 30 112 180s-19 180-112 180",on=1163,ht=()=>({kind:"element",tag:"g",attrs:{class:"mark"},children:rn.map(({x:e,y:n})=>({kind:"element",tag:"rect",attrs:{height:"300",width:"150",x:String(e),y:String(n)},children:[]}))}),dn=()=>({kind:"element",tag:"g",attrs:{class:"word",transform:`translate(${on} 0)`},children:[{kind:"element",tag:"path",attrs:{d:an},children:[]}]}),mt=(e,n)=>({kind:"element",tag:"svg",attrs:{"aria-hidden":"true",viewBox:e,xmlns:"http://www.w3.org/2000/svg"},children:n});function sn(){return mt(tn,[ht(),dn()])}function ln(){return mt(nn,[ht()])}function kt({animated:e,id:n,label:t,size:i="md",tone:r="default",variant:a="primary"}){const o=v(n),d=!!e&&(a==="primary"||a==="graphic"),s=[{kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:t}]}];return d&&s.push(a==="graphic"?ln():sn()),{kind:"element",tag:"div",attrs:{class:"set-logo","data-animated":d,"data-size":i,"data-tone":r==="neutral"?"neutral":void 0,"data-variant":a==="primary"?void 0:a,id:o},children:s}}function pn(e){return m(kt(e))}const cn={name:"logo",description:"Use `logo` to display the brand mark.",output:{element:"div",class:"set-logo"},content:{kind:"text",prop:"label"},props:{animated:{default:!1,description:"Plays the logo's boot animation once on render. Animates the `primary` and `graphic` variants; others render static.",type:{kind:"boolean"}},id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible label.",required:!0,type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md","lg","xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","neutral"]}},variant:{default:"primary",description:"Logo variant.",type:{kind:"enum",values:["primary","secondary","typographic","graphic"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-animated",condition:{kind:"all",of:[{kind:"when-truthy",prop:"animated"},{kind:"when-in",prop:"variant",values:["primary","graphic"]}]}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"neutral"},value:{kind:"literal",text:"neutral"}},{target:{on:"host"},attribute:"data-variant",condition:{kind:"when-in",prop:"variant",values:["secondary","typographic","graphic"]},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function gt({banner:e,centerMain:n,children:t,footer:i,header:r,headerBorder:a,headerSize:o="md",id:d,stickyHeader:s}){const p=v(d),l=[];return e&&l.push({kind:"raw",html:e}),l.push({kind:"element",tag:"header",attrs:{class:"header"},children:[{kind:"raw",html:r}]}),l.push({kind:"element",tag:"main",attrs:{class:"main"},children:t?[{kind:"raw",html:t}]:[]}),l.push({kind:"element",tag:"footer",attrs:{class:"footer"},children:[{kind:"raw",html:i}]}),{kind:"element",tag:"div",attrs:{class:"set-page","data-center-main":n,"data-header-border":a,"data-header-size":o,"data-sticky-header":s,id:p},children:l}}function un(e){return m(gt(e))}const hn={name:"page",description:"Use `page` as the primary layout for header, main, and footer regions.",output:{element:"div",class:"set-page"},content:{kind:"slots",slots:[{prop:"banner",kind:"html"},{prop:"header",kind:"html"},{prop:"children",kind:"html"},{prop:"footer",kind:"html"}]},props:{banner:{description:"Banner rendered above the header.",type:{kind:"html"}},children:{description:"Main content of the page.",type:{kind:"html"}},centerMain:{default:!1,description:"Centers the main region within the page shell.",type:{kind:"boolean"}},header:{description:"Header content.",required:!0,type:{kind:"html"}},headerBorder:{description:"Bottom border on the header. `'always'` is persistent; `'scroll'` fades in only when a sticky header is stuck (browsers without `container-type: scroll-state` fall back to always-on).",type:{kind:"enum",values:["always","scroll"]}},headerSize:{default:"md",description:"Reserves a minimum block size on the header. `--set-page-header-block-size` is exposed to descendants so persistent panels can open below the header band.",type:{kind:"enum",values:["sm","md","lg"]}},id:{description:"DOM id.",type:{kind:"string"}},stickyHeader:{description:"When the header stays stuck to the top of the viewport.",type:{kind:"enum",values:["always","belowNotebook"]}},footer:{description:"Footer content.",required:!0,type:{kind:"html"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-center-main",condition:{kind:"when-truthy",prop:"centerMain"}},{target:{on:"host"},attribute:"data-header-border",condition:{kind:"when-provided",prop:"headerBorder"},value:{kind:"prop",prop:"headerBorder"}},{target:{on:"host"},attribute:"data-header-size",condition:{kind:"always"},value:{kind:"prop",prop:"headerSize"}},{target:{on:"host"},attribute:"data-sticky-header",condition:{kind:"when-provided",prop:"stickyHeader"},value:{kind:"prop",prop:"stickyHeader"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function bt({children:e,id:n,padding:t="md",surface:i}){const r=v(n);return{kind:"element",tag:"div",attrs:{class:"set-panel","data-padding":t,"data-set-surface":i,id:r},children:e?[{kind:"raw",html:e}]:[]}}function mn(e){return m(bt(e))}const kn={name:"panel",description:"Use `panel` to group related content in a contained region.",output:{element:"div",class:"set-panel"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the panel.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},padding:{default:"md",description:"Inner spacing scale.",type:{kind:"enum",values:["xs","sm","md","lg","xl"]}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-padding",condition:{kind:"always"},value:{kind:"prop",prop:"padding"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function vt({children:e,id:n,size:t="md",tone:i="default",variant:r="tile"}={}){const a=v(n);return{kind:"element",tag:"div",attrs:{class:"set-pattern","data-size":t,"data-tone":i==="default"?void 0:i,"data-variant":r,id:a},children:e?[{kind:"raw",html:e}]:[]}}function gn(e={}){return m(vt(e))}const bn={name:"pattern",description:"Use `pattern` to render repeated visual language components behind content.",output:{element:"div",class:"set-pattern"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered above the pattern.",type:{kind:"html"}},id:{description:"DOM id.",type:{kind:"string"}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","subtle","support"]}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["xs","sm","md","lg","xl","fill"]}},variant:{default:"tile",description:"Shape used for the pattern tile.",type:{kind:"enum",values:["tile","tileLight","tileDark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-variant",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-in",prop:"tone",values:["subtle","support"]},value:{kind:"prop",prop:"tone"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function vn(e){return pt({...e,alt:"",fit:"cover",priority:!0})}function ft({children:e,contentTheme:n,id:t,media:i,surface:r}){const a=v(t),o=n?r??"default":r,d=[{kind:"element",tag:"div",attrs:{class:"image-wrapper"},children:[{kind:"raw",html:i}]}];return e&&d.push({kind:"element",tag:"div",attrs:{class:"content"},children:[{kind:"raw",html:e}]}),{kind:"element",tag:"div",attrs:{class:"set-poster","data-set-content-theme":n,"data-set-surface":o,id:a},children:d}}function fn(e){return m(ft(e))}const yn={name:"poster",description:"Use `poster` to layer content over background media.",output:{element:"div",class:"set-poster"},content:{kind:"slots",slots:[{prop:"media",kind:"html"},{prop:"children",kind:"html"}]},props:{children:{description:"Foreground content rendered over the media.",type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for foreground content over non-themeable media.",ignoredWhen:"`media` is adaptive (it matches the surrounding scheme by itself)",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},media:{description:"Background media markup. Build with `renderSetPosterImage`.",required:!0,type:{kind:"html"}},surface:{description:"Surface context.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"all",of:[{kind:"when-provided",prop:"contentTheme"},{kind:"not",of:{kind:"when-provided",prop:"surface"}}]},value:{kind:"literal",text:"default"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"when-provided",prop:"surface"},value:{kind:"prop",prop:"surface"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function yt({align:e="start",children:n,hangingPunctuation:t,id:i,linkVisited:r=!0,measured:a=!0,monospaced:o,responsive:d}){const s=v(i);return{kind:"element",tag:"div",attrs:{class:"set-prose","data-align":e!=="start"?e:void 0,"data-hanging-punctuation":t,"data-link-visited":r?void 0:"off","data-measured":a,"data-monospaced":o,"data-responsive":d,id:s},children:[{kind:"raw",html:n}]}}function wn(e){return m(yt(e))}const Sn={name:"prose",description:"Use `prose` to style rich-text markup.",output:{element:"div",class:"set-prose"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the prose wrapper.",required:!0,type:{kind:"html"}},align:{default:"start",description:"Text alignment.",type:{kind:"enum",values:["start","center","end"]}},hangingPunctuation:{description:"Position list markers and leading quote marks in the margin, with text aligned.",type:{kind:"enum",values:["always","notebook"]}},id:{description:"DOM id.",type:{kind:"string"}},linkVisited:{default:!0,description:"Styles visited links inside the prose.",type:{kind:"boolean"}},measured:{default:!0,description:"Caps line length for comfortable reading.",type:{kind:"boolean"}},monospaced:{default:!1,description:"Applies monospaced word spacing throughout.",type:{kind:"boolean"}},responsive:{default:!1,description:"Scales body text across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-hanging-punctuation",condition:{kind:"when-provided",prop:"hangingPunctuation"},value:{kind:"prop",prop:"hangingPunctuation"}},{target:{on:"host"},attribute:"data-link-visited",condition:{kind:"when-equals",prop:"linkVisited",to:!1},value:{kind:"literal",text:"off"}},{target:{on:"host"},attribute:"data-measured",condition:{kind:"when-truthy",prop:"measured"}},{target:{on:"host"},attribute:"data-monospaced",condition:{kind:"when-truthy",prop:"monospaced"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function wt({description:e,disabled:n,id:t,invalid:i,radios:r,legend:a,name:o,orientation:d="vertical",required:s,size:p="md",value:l}){const c=t.trim(),h=o.trim(),b=l?.trim();if(!c)throw new Error("id must be a non-empty string.");if(!P(c))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!h)throw new Error("name must be a non-empty string.");if(r.length<2)throw new Error("radios must include at least 2 options.");const S=r.map((k,T)=>{const E=k.value.trim(),C=k.label.trim(),q=k.description?.trim();if(!E)throw new Error(`radios[${T}].value must be non-empty.`);if(!C)throw new Error(`radios[${T}].label must be non-empty.`);return{description:q,disabled:!!k.disabled,label:C,value:E}});if(new Set(S.map(k=>k.value)).size!==S.length)throw new Error("radios values must be unique.");const x=!!n,L=S.map(k=>{const T=!!k.disabled,E=k.description?`${c}-${k.value}-description`:void 0,C=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":E,checked:b===k.value,class:"radio",disabled:T,name:h,required:!!s&&!x&&!T,type:"radio",value:k.value},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:k.label}]}]}];return k.description&&C.push({kind:"element",tag:"p",attrs:{class:"radio-description",id:E},children:[{kind:"text",value:k.description}]}),{kind:"element",tag:"div",attrs:{class:"radio-field"},children:C}});return we({children:m({kind:"element",tag:"div",attrs:{class:"set-radios","data-orientation":d,"data-size":p},children:L}),description:e,disabled:x,id:c,invalid:i,legend:a})}function En(e){return m(wt(e))}const xn={name:"radios",description:"Use `radios` to let users select one option from a short list.",output:{element:"fieldset",class:"set-fieldset"},content:{kind:"structured",prop:"radios"},props:{description:{description:"Helper text shown below the legend.",type:{kind:"string"}},disabled:{default:!1,description:"Disables every option in the group.",type:{kind:"boolean"}},id:{description:"Unique id used to associate the group with its descriptions.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the group as invalid.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},radios:{description:"Options shown in the group.",required:!0,type:{kind:"array",itemShape:{description:{description:"Optional per-item helper text.",type:{kind:"string"}},disabled:{default:!1,description:"Optional per-item disabled override.",type:{kind:"boolean"}},label:{description:"Radio option label.",required:!0,type:{kind:"text"}},value:{description:"Submitted value and selection key.",required:!0,type:{kind:"string"}}}}},legend:{description:"Group label.",required:!0,type:{kind:"text"}},name:{description:"Form field name shared by all options.",required:!0,type:{kind:"string"}},orientation:{default:"vertical",description:"Layout direction.",type:{kind:"enum",values:["vertical","horizontal"]}},required:{default:!1,description:"Requires a selection before submission.",type:{kind:"boolean"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Currently selected value.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"host"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"host"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]},value:{kind:"literal",text:"true"}},{target:{on:"host"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-orientation",condition:{kind:"always"},value:{kind:"prop",prop:"orientation"}},{target:{on:"descendant",selector:"div.set-radios"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"radio"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"always"},value:{kind:"prop",prop:"name"}}]}};function St({appOverscrollBehavior:e,appRoot:n,brand:t="mnsp",children:i,dir:r,id:a,lang:o,theme:d}){const s=v(a);return{kind:"element",tag:"div",attrs:{class:"set","data-app-root":n,"data-app-overscroll-behavior":e==="none"?"none":void 0,"data-set-brand":t,"data-set-theme":d,id:s,lang:o===""?void 0:o,dir:r},children:i?[{kind:"raw",html:i}]:[]}}function Cn(e){return m(St(e))}const zn={name:"root",description:"Mandatory top-level `root` wrapper for the Set system.",output:{element:"div",class:"set"},content:{kind:"html",prop:"children"},props:{appOverscrollBehavior:{description:"Disables overscroll bounce for app-shell integrations.",type:{kind:"enum",values:["none"]}},appRoot:{default:!1,description:"Marks this wrapper as the app root.",type:{kind:"boolean"}},brand:{default:"mnsp",description:"Brand identity applied to the wrapper.",type:{kind:"enum",values:["mnsp","wrfr"]}},children:{description:"Content rendered inside the root.",required:!0,type:{kind:"html"}},dir:{description:"Text direction.",type:{kind:"enum",values:["ltr","rtl"]}},id:{description:"DOM id.",type:{kind:"string"}},lang:{description:"BCP47 language tag (e.g. `en-GB`).",type:{kind:"string"}},theme:{description:"Colour theme.",type:{kind:"enum",values:["light","dark"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-app-overscroll-behavior",condition:{kind:"when-equals",prop:"appOverscrollBehavior",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"host"},attribute:"data-app-root",condition:{kind:"when-truthy",prop:"appRoot"}},{target:{on:"host"},attribute:"data-set-brand",condition:{kind:"always"},value:{kind:"prop",prop:"brand"}},{target:{on:"host"},attribute:"data-set-theme",condition:{kind:"when-provided",prop:"theme"},value:{kind:"prop",prop:"theme"}},{target:{on:"host"},attribute:"dir",condition:{kind:"when-provided",prop:"dir"},value:{kind:"prop",prop:"dir"}},{target:{on:"host"},attribute:"lang",condition:{kind:"when-non-empty",prop:"lang"},value:{kind:"prop",prop:"lang"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Et({id:e,label:n,size:t="md",tone:i="default"}={}){const r=v(e),o=[{kind:"element",tag:"svg",attrs:{"aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 600 1200",fill:"currentColor"},children:[[60,60],[60,360],[60,660],[60,960],[360,960],[360,660],[360,360],[360,60]].map(([d,s])=>({kind:"element",tag:"rect",attrs:{class:"cell",x:String(d),y:String(s),width:"180",height:"180"},children:[]}))}];return n&&o.push({kind:"element",tag:"span",attrs:{class:"visually-hidden"},children:[{kind:"text",value:n}]}),{kind:"element",tag:"span",attrs:{class:"set-spinner","data-size":t,"data-tone":i==="brand"?"brand":void 0,id:r,role:n?"status":void 0},children:o}}function Tn(e={}){return m(Et(e))}const _n={name:"spinner",description:"Use `spinner` to indicate loading or in-progress state.",output:{element:"span",class:"set-spinner"},content:{kind:"text",prop:"label"},props:{id:{description:"DOM id.",type:{kind:"string"}},label:{description:"Accessible status label announced to assistive tech.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["2xs","xs","sm","md","lg","xl","2xl","fill"]}},tone:{default:"default",description:"Semantic tone.",type:{kind:"enum",values:["default","brand"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-tone",condition:{kind:"when-equals",prop:"tone",to:"brand"},value:{kind:"literal",text:"brand"}},{target:{on:"host"},attribute:"role",condition:{kind:"when-non-empty",prop:"label"},value:{kind:"literal",text:"status"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function xt({align:e="stretch",as:n="div",children:t,gap:i="md",id:r,responsive:a}){const o=v(r);return{kind:"element",tag:n,attrs:{class:"set-stack","data-align":e==="stretch"?void 0:e,"data-gap":i,"data-responsive":a,id:o},children:t?[{kind:"raw",html:t}]:[]}}function Ln(e){return m(xt(e))}const Mn={name:"stack",description:"Use `stack` to lay out content in a vertical column.",output:{element:{kind:"switch",prop:"as",cases:{div:"div",ul:"ul"}},class:"set-stack"},content:{kind:"html",prop:"children"},props:{align:{default:"stretch",description:"Aligns items on the cross axis.",type:{kind:"enum",values:["stretch","start","center","end"]}},as:{default:"div",description:"Element tag to render. `ul` children must be `<li>`.",type:{kind:"enum",values:["div","ul"]}},children:{description:"Items laid out in a column.",type:{kind:"html"}},gap:{default:"md",description:"Space between children.",type:{kind:"enum",values:["none","xs","sm","md","lg","xl"]}},id:{description:"DOM id.",type:{kind:"string"}},responsive:{default:!1,description:"Scales spacing across breakpoints.",type:{kind:"boolean"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-align",condition:{kind:"when-in",prop:"align",values:["start","center","end"]},value:{kind:"prop",prop:"align"}},{target:{on:"host"},attribute:"data-gap",condition:{kind:"always"},value:{kind:"prop",prop:"gap"}},{target:{on:"host"},attribute:"data-responsive",condition:{kind:"when-truthy",prop:"responsive"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Ct({children:e,contentTheme:n,id:t,variant:i="default"}){const r=v(t);return{kind:"element",tag:"div",attrs:{class:"set-surface","data-set-content-theme":n,"data-set-surface":i,id:r},children:[{kind:"raw",html:e}]}}function In(e){return m(Ct(e))}const An={name:"surface",description:"Use `surface` to set a colour context for nested content.",output:{element:"div",class:"set-surface"},content:{kind:"html",prop:"children"},props:{children:{description:"Content rendered inside the surface.",required:!0,type:{kind:"html"}},contentTheme:{description:"Absolute theme lock for content rendered inside the surface.",type:{kind:"enum",values:["light","dark"]}},id:{description:"DOM id.",type:{kind:"string"}},variant:{default:"default",description:"Surface context.",type:{kind:"enum",values:["default","brand","inverse","brand-inverse"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-set-content-theme",condition:{kind:"when-provided",prop:"contentTheme"},value:{kind:"prop",prop:"contentTheme"}},{target:{on:"host"},attribute:"data-set-surface",condition:{kind:"always"},value:{kind:"prop",prop:"variant"}},{target:{on:"host"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function zt({checked:e,description:n,disabled:t,id:i,label:r,name:a,size:o="md",value:d}){const s=v(i),p=n?.trim();if(p&&!s)throw new Error("id must be provided when description is provided.");const l=p?`${s}-description`:void 0,c=[{kind:"element",tag:"label",attrs:{class:"label"},children:[{kind:"element",tag:"input",attrs:{"aria-describedby":l,checked:!!e,class:"switch",disabled:!!t,id:s,name:a||void 0,role:"switch",type:"checkbox",value:d||void 0},children:[]},{kind:"element",tag:"span",attrs:{},children:[{kind:"text",value:r}]}]}];return p&&c.push({kind:"element",tag:"p",attrs:{class:"description",id:l},children:[{kind:"text",value:p}]}),{kind:"element",tag:"div",attrs:{class:"set-switch","data-size":o},children:c}}function qn(e){return m(zt(e))}const Nn={name:"switch",description:"Use `switch` to let users instantly toggle a setting on or off.",output:{element:"div",class:"set-switch"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"description",kind:"text"}]},props:{checked:{default:!1,description:"Whether the switch is on.",type:{kind:"boolean"}},description:{description:"Helper text shown below the label.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the switch.",type:{kind:"boolean"}},id:{description:"DOM id.",requiredWhen:"`description` is provided",type:{kind:"string"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},value:{description:"Submitted value when checked.",type:{kind:"string"}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"descendant",selector:"input"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"type",condition:{kind:"always"},value:{kind:"literal",text:"checkbox"}},{target:{on:"descendant",selector:"input"},attribute:"role",condition:{kind:"always"},value:{kind:"literal",text:"switch"}},{target:{on:"descendant",selector:"input"},attribute:"checked",condition:{kind:"when-truthy",prop:"checked"}},{target:{on:"descendant",selector:"input"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"input"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"input"},attribute:"value",condition:{kind:"when-non-empty",prop:"value"},value:{kind:"prop",prop:"value"}},{target:{on:"descendant",selector:"input"},attribute:"id",condition:{kind:"when-non-empty",prop:"id"},value:{kind:"prop",prop:"id"}}]}};function Tt({autocomplete:e,description:n,disabled:t,id:i,invalid:r,label:a,name:o,readOnly:d,required:s,resize:p="vertical",rows:l=2,size:c="md",spellcheck:h,value:b,inlineSize:S="full"}){const f=i.trim(),x=n?.trim(),L=e===!1?!1:e?.trim(),w=o?.trim(),k=b;if(!f)throw new Error("id must be a non-empty string.");if(!P(f))throw new Error("id must start with a letter and contain only letters, numbers, '_', '-', or ':'.");if(!Number.isInteger(l)||l<2)throw new Error("rows must be an integer greater than or equal to 2.");const T=x?`${f}-description`:void 0,E=!!t,C=!E&&!!d,N=[{kind:"element",tag:"label",attrs:{class:"label",for:f},children:[{kind:"text",value:a}]},{kind:"element",tag:"textarea",attrs:{"aria-describedby":T,"aria-invalid":!E&&!C&&!!r?"true":void 0,autocomplete:L===!1?"off":L||void 0,class:"textarea",disabled:E,id:f,name:w||void 0,readonly:C,required:!!s,rows:String(l),spellcheck:h===void 0?void 0:String(h)},children:[{kind:"text",value:k||""}]}];return x&&N.push({kind:"element",tag:"p",attrs:{class:"description",id:T},children:[{kind:"text",value:x}]}),{kind:"element",tag:"div",attrs:{class:"set-textarea","data-resize":p==="none"?"none":void 0,"data-size":c,"data-inline-size":S==="fit"?"fit":void 0},children:N}}function Pn(e){return m(Tt(e))}const Dn={name:"textarea",description:"Use `textarea` to collect multiple lines of text from users.",output:{element:"div",class:"set-textarea"},content:{kind:"slots",slots:[{prop:"label",kind:"text"},{prop:"value",kind:"text"},{prop:"description",kind:"text"}]},props:{autocomplete:{description:"Browser autocomplete hint. Pass `false` to disable.",type:{kind:"union",variants:[{kind:"string"},{kind:"boolean"}]}},description:{description:"Helper text shown below the textarea; also used for validation guidance.",type:{kind:"string"}},disabled:{default:!1,description:"Disables the textarea.",type:{kind:"boolean"}},id:{description:"`id` used to associate the textarea with its label.",required:!0,type:{kind:"string"}},invalid:{default:!1,description:"Marks the textarea as invalid.",ignoredWhen:"`disabled` is true or `readOnly` is true",type:{kind:"boolean"}},label:{description:"Label text.",required:!0,type:{kind:"text"}},name:{description:"Form field name.",type:{kind:"string"}},readOnly:{default:!1,description:"Prevents editing while keeping the value visible.",ignoredWhen:"`disabled` is true",type:{kind:"boolean"}},required:{default:!1,description:"Requires a value before submission.",type:{kind:"boolean"}},resize:{default:"vertical",description:"How the user can resize the textarea.",type:{kind:"enum",values:["vertical","none"]}},rows:{default:2,description:"Number of visible rows.",type:{kind:"number",min:2,max:10,integer:!0}},size:{default:"md",description:"Size variant.",type:{kind:"enum",values:["sm","md"]}},spellcheck:{description:"Whether the browser checks spelling.",type:{kind:"boolean"}},value:{description:"Current value.",type:{kind:"string"}},inlineSize:{default:"full",description:"How the textarea fills its container.",type:{kind:"enum",values:["full","fit"]}}},events:{},rules:{attributes:[{target:{on:"host"},attribute:"data-size",condition:{kind:"always"},value:{kind:"prop",prop:"size"}},{target:{on:"host"},attribute:"data-inline-size",condition:{kind:"when-equals",prop:"inlineSize",to:"fit"},value:{kind:"literal",text:"fit"}},{target:{on:"host"},attribute:"data-resize",condition:{kind:"when-equals",prop:"resize",to:"none"},value:{kind:"literal",text:"none"}},{target:{on:"descendant",selector:"label"},attribute:"for",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"class",condition:{kind:"always"},value:{kind:"literal",text:"textarea"}},{target:{on:"descendant",selector:"textarea"},attribute:"id",condition:{kind:"always"},value:{kind:"template",pattern:"{id}"}},{target:{on:"descendant",selector:"textarea"},attribute:"rows",condition:{kind:"always"},value:{kind:"prop",prop:"rows"}},{target:{on:"descendant",selector:"textarea"},attribute:"name",condition:{kind:"when-non-empty",prop:"name"},value:{kind:"prop",prop:"name"}},{target:{on:"descendant",selector:"textarea"},attribute:"disabled",condition:{kind:"when-truthy",prop:"disabled"}},{target:{on:"descendant",selector:"textarea"},attribute:"required",condition:{kind:"when-truthy",prop:"required"}},{target:{on:"descendant",selector:"textarea"},attribute:"readonly",condition:{kind:"all",of:[{kind:"when-truthy",prop:"readOnly"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}}]}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-invalid",condition:{kind:"all",of:[{kind:"when-truthy",prop:"invalid"},{kind:"not",of:{kind:"when-truthy",prop:"disabled"}},{kind:"not",of:{kind:"when-truthy",prop:"readOnly"}}]},value:{kind:"literal",text:"true"}},{target:{on:"descendant",selector:"textarea"},attribute:"aria-describedby",condition:{kind:"when-non-empty",prop:"description"},value:{kind:"template",pattern:"{id}-description"}},{target:{on:"descendant",selector:"textarea"},attribute:"spellcheck",condition:{kind:"when-provided",prop:"spellcheck"},value:{kind:"prop",prop:"spellcheck"}}]}};function Vn(){Ae(),Ne(),De(),He(),Ue(),Ge(),Fe(),je()}exports.SET_ALERT_EVENT_BEFORE_DISMISS=me;exports.SET_ALERT_EVENT_DISMISS=ke;exports.SET_ALERT_SPEC=Ut;exports.SET_ALERT_TAG_NAME=U;exports.SET_AVATAR_SPEC=wi;exports.SET_BADGE_SPEC=Ei;exports.SET_BANNER_EVENT_BEFORE_DISMISS=be;exports.SET_BANNER_EVENT_DISMISS=ve;exports.SET_BANNER_SPEC=jt;exports.SET_BANNER_TAG_NAME=G;exports.SET_BLOCKQUOTE_SPEC=Ti;exports.SET_BOX_SPEC=Li;exports.SET_BUTTON_SPEC=Vt;exports.SET_CARD_SPEC=Ii;exports.SET_CHECKBOX_SPEC=qi;exports.SET_CONTAINER_SPEC=Pi;exports.SET_DETAILS_SPEC=Vi;exports.SET_DIVIDER_SPEC=Bi;exports.SET_EXPANDER_SPEC=ti;exports.SET_FIELDSET_SPEC=Ri;exports.SET_FIGURE_SPEC=Wi;exports.SET_GRID_ITEM_SPEC=Zi;exports.SET_GRID_SPEC=Fi;exports.SET_HEADING_SPEC=Ki;exports.SET_ICON_NAMES=Pt;exports.SET_ICON_SPEC=Dt;exports.SET_IMAGE_SPEC=Xi;exports.SET_INLINE_SPEC=Yi;exports.SET_INPUT_SPEC=en;exports.SET_LIGHTSWITCH_EVENT_CHANGE=fe;exports.SET_LIGHTSWITCH_SPEC=Yt;exports.SET_LIGHTSWITCH_STORAGE_KEY=te;exports.SET_LIGHTSWITCH_TAG_NAME=$;exports.SET_LINK_SPEC=$t;exports.SET_LOGO_SPEC=cn;exports.SET_MENU_EVENT_CHOOSE=ye;exports.SET_MENU_SPEC=ei;exports.SET_MENU_TAG_NAME=F;exports.SET_NAV_SPEC=ni;exports.SET_NAV_TAG_NAME=Z;exports.SET_PAGE_SPEC=hn;exports.SET_PANEL_SPEC=kn;exports.SET_PATTERN_SPEC=bn;exports.SET_POSTER_SPEC=yn;exports.SET_PROSE_SPEC=Sn;exports.SET_RADIOS_SPEC=xn;exports.SET_RANGE_SPEC=ai;exports.SET_RANGE_TAG_NAME=j;exports.SET_ROOT_SPEC=zn;exports.SET_SIDEBAR_SPEC=li;exports.SET_SIDEBAR_TAG_NAME=K;exports.SET_SPINNER_SPEC=_n;exports.SET_STACK_SPEC=Mn;exports.SET_SURFACE_SPEC=An;exports.SET_SWITCH_SPEC=Nn;exports.SET_TEXTAREA_SPEC=Dn;exports.SET_TEXT_SPEC=Ci;exports.SET_VIDEO_SPEC=ui;exports.SET_VIDEO_TAG_NAME=X;exports.buildSetAlert=Ie;exports.buildSetAvatar=Xe;exports.buildSetBadge=Qe;exports.buildSetBanner=qe;exports.buildSetBlockquote=Ye;exports.buildSetBox=Je;exports.buildSetButton=ne;exports.buildSetCard=et;exports.buildSetCheckbox=tt;exports.buildSetContainer=it;exports.buildSetDetails=nt;exports.buildSetDivider=rt;exports.buildSetExpander=Be;exports.buildSetFieldset=we;exports.buildSetFigure=at;exports.buildSetGrid=ot;exports.buildSetGridItem=dt;exports.buildSetHeading=st;exports.buildSetIcon=V;exports.buildSetImage=lt;exports.buildSetInline=ct;exports.buildSetInput=ut;exports.buildSetLightswitch=Pe;exports.buildSetLink=ge;exports.buildSetLogo=kt;exports.buildSetMenu=Ve;exports.buildSetNav=Re;exports.buildSetPage=gt;exports.buildSetPanel=bt;exports.buildSetPattern=vt;exports.buildSetPoster=ft;exports.buildSetProse=yt;exports.buildSetRadios=wt;exports.buildSetRange=We;exports.buildSetRoot=St;exports.buildSetSidebar=$e;exports.buildSetSpinner=Et;exports.buildSetStack=xt;exports.buildSetSurface=Ct;exports.buildSetSwitch=zt;exports.buildSetText=Q;exports.buildSetTextarea=Tt;exports.buildSetVideo=Ze;exports.defineSetAlert=Ae;exports.defineSetBanner=Ne;exports.defineSetComponents=Vn;exports.defineSetLightswitch=De;exports.defineSetMenu=He;exports.defineSetNav=Ue;exports.defineSetRange=Ge;exports.defineSetSidebar=Fe;exports.defineSetVideo=je;exports.getSetInitials=Ke;exports.renderSetAlert=Rt;exports.renderSetAvatar=yi;exports.renderSetBadge=Si;exports.renderSetBanner=Zt;exports.renderSetBlockquote=zi;exports.renderSetBox=_i;exports.renderSetButton=re;exports.renderSetCard=Mi;exports.renderSetCheckbox=Ai;exports.renderSetContainer=Ni;exports.renderSetDetails=Di;exports.renderSetDivider=Hi;exports.renderSetExpander=Oe;exports.renderSetFieldset=Oi;exports.renderSetFigure=Ui;exports.renderSetGrid=Gi;exports.renderSetGridItem=$i;exports.renderSetHeading=ji;exports.renderSetIcon=Me;exports.renderSetImage=pt;exports.renderSetInline=Qi;exports.renderSetInput=Ji;exports.renderSetLightswitch=Qt;exports.renderSetLink=Gt;exports.renderSetLogo=pn;exports.renderSetMenu=Jt;exports.renderSetNav=ii;exports.renderSetPage=un;exports.renderSetPanel=mn;exports.renderSetPattern=gn;exports.renderSetPoster=fn;exports.renderSetPosterImage=vn;exports.renderSetProse=wn;exports.renderSetRadios=En;exports.renderSetRange=ri;exports.renderSetRoot=Cn;exports.renderSetSidebar=si;exports.renderSetSpinner=Tn;exports.renderSetStack=Ln;exports.renderSetSurface=In;exports.renderSetSwitch=qn;exports.renderSetText=xi;exports.renderSetTextarea=Pn;exports.renderSetVideo=pi;exports.serializeSetNode=m;
2
2
  //# sourceMappingURL=index.cjs.map