@politiet/sheriff-web-components 2.7.1 → 2.7.2

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.
Files changed (46) hide show
  1. package/custom-elements.json +1 -1
  2. package/dist/mixins/sds-popover-target-mixin.d.ts +1 -1
  3. package/dist/mixins/sds-popover-target-mixin.d.ts.map +1 -1
  4. package/dist/mixins/sds-popover-target-mixin.js.map +1 -1
  5. package/dist/sds-button/sds-button.component.d.ts +1 -1
  6. package/dist/sds-button/sds-button.component.d.ts.map +1 -1
  7. package/dist/sds-button/sds-button.component.js.map +1 -1
  8. package/dist/sds-popover/assets/popover-styles.d.ts.map +1 -1
  9. package/dist/sds-popover/assets/popover-styles.js +1 -1
  10. package/dist/sds-popover/assets/popover-styles.js.map +1 -1
  11. package/dist/shared/assets/positioning.js +1 -1
  12. package/dist/sheriff-web-components.js +22 -22
  13. package/package.json +1 -1
  14. package/web-types.json +5 -9
  15. package/dist/playwright-util/custom-matchers.d.ts +0 -7
  16. package/dist/playwright-util/custom-matchers.d.ts.map +0 -1
  17. package/dist/playwright-util/custom-matchers.js +0 -21
  18. package/dist/playwright-util/custom-matchers.js.map +0 -1
  19. package/dist/playwright-util/form.d.ts +0 -3
  20. package/dist/playwright-util/form.d.ts.map +0 -1
  21. package/dist/playwright-util/form.js +0 -44
  22. package/dist/playwright-util/form.js.map +0 -1
  23. package/dist/sds-button/sds-button.spec.d.ts +0 -2
  24. package/dist/sds-button/sds-button.spec.d.ts.map +0 -1
  25. package/dist/sds-button/sds-button.spec.js +0 -182
  26. package/dist/sds-button/sds-button.spec.js.map +0 -1
  27. package/dist/sds-checkbox/sds-checkbox.spec.d.ts +0 -2
  28. package/dist/sds-checkbox/sds-checkbox.spec.d.ts.map +0 -1
  29. package/dist/sds-checkbox/sds-checkbox.spec.js +0 -74
  30. package/dist/sds-checkbox/sds-checkbox.spec.js.map +0 -1
  31. package/dist/sds-dialog/sds-dialog.spec.d.ts +0 -2
  32. package/dist/sds-dialog/sds-dialog.spec.d.ts.map +0 -1
  33. package/dist/sds-dialog/sds-dialog.spec.js +0 -64
  34. package/dist/sds-dialog/sds-dialog.spec.js.map +0 -1
  35. package/dist/sds-radio/sds-radio.spec.d.ts +0 -2
  36. package/dist/sds-radio/sds-radio.spec.d.ts.map +0 -1
  37. package/dist/sds-radio/sds-radio.spec.js +0 -71
  38. package/dist/sds-radio/sds-radio.spec.js.map +0 -1
  39. package/dist/sds-textfield/sds-textfield.spec.d.ts +0 -2
  40. package/dist/sds-textfield/sds-textfield.spec.d.ts.map +0 -1
  41. package/dist/sds-textfield/sds-textfield.spec.js +0 -137
  42. package/dist/sds-textfield/sds-textfield.spec.js.map +0 -1
  43. package/dist/sds-tooltip/sds-tooltip.spec.d.ts +0 -2
  44. package/dist/sds-tooltip/sds-tooltip.spec.d.ts.map +0 -1
  45. package/dist/sds-tooltip/sds-tooltip.spec.js +0 -35
  46. package/dist/sds-tooltip/sds-tooltip.spec.js.map +0 -1
@@ -1,4 +1,4 @@
1
- var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new a(s,t,o)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:p,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,u=globalThis,f=u.trustedTypes,b=f?f.emptyScript:"",m=u.reactiveElementPolyfillSupport,_=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),u.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...p(t),...g(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(s)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=s.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??y)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=/* @__PURE__ */new Map,k[_("finalized")]=/* @__PURE__ */new Map,m?.({ReactiveElement:k}),(u.reactiveElementVersions??=[]).push("2.1.2");const z={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},$=(t=z,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(e,s)=>"object"==typeof s?$(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function A(t,e){return(e,s,o)=>E(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function O(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function L(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const P=globalThis,D=t=>t,T=P.trustedTypes,q=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+R,B=`<${V}>`,j=document,F=()=>j.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,N="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,G=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(ot=1,(t,...e)=>({_$litType$:ot,strings:t,values:e})),J=Symbol.for("lit-noChange"),tt=Symbol.for("lit-nothing"),et=/* @__PURE__ */new WeakMap,st=j.createTreeWalker(j,129);var ot;function rt(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==q?q.createHTML(e):e}let at=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=U;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=W:void 0!==n[1]?i=K:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?G:'"'===n[3]?X:Y):i===X||i===Y?i=G:i===W||i===K?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+B:l>=0?(o.push(s),e.slice(0,l)+M+e.slice(l)+R+h):e+R+(-2===l?d:h)}return[rt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=c[i++],s=r.getAttribute(t).split(R),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?ct:"?"===o[1]?ht:"@"===o[1]?pt:lt}),r.removeAttribute(t)}else t.startsWith(R)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(Z.test(r.tagName)){const t=r.textContent.split(R),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),st.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===V)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(R,t+1));)n.push({type:7,index:a}),t+=R.length-1}a++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function it(t,e,s=t,o){if(e===J)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=I(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??j).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new nt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new gt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=j,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=at.createElement(rt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new at(t)),e}k(e){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(F()),this.O(F()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=D(t).nextSibling;D(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=tt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=it(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==J,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=it(this,o[s+i],e,i),d===J&&(d=this._$AH[i]),a||=!I(d)||d!==this._$AH[i],d===tt?t=tt:t!==tt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},ht=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends lt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===J)return;const s=this._$AH,o=t===tt&&s!==tt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==tt&&(s===tt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const vt=P.litHtmlPolyfillSupport;vt?.(at,nt),(P.litHtmlVersions??=[]).push("3.3.2");const ut=globalThis;let ft=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new nt(e.insertBefore(F(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};ft._$litElement$=!0,ft.finalized=!0,ut.litElementHydrateSupport?.({LitElement:ft});const bt=ut.litElementPolyfillSupport;bt?.({LitElement:ft}),(ut.litElementVersions??=[]).push("4.2.2");const mt=Symbol.for(""),_t=t=>{if(t?.r===mt)return t?._$litStatic$},xt=t=>({_$litStatic$:t,r:mt}),yt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:mt}),wt=/* @__PURE__ */new Map,kt=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=_t(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=wt.get(t))&&(i.raw=i,wt.set(t,e=i)),s=d}return t(e,...s)})(Q),zt=d`
1
+ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,o=/* @__PURE__ */Symbol(),r=/* @__PURE__ */new WeakMap;let a=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==o)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=r.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&r.set(e,t))}return t}toString(){return this.cssText}};const i=t=>new a("string"==typeof t?t:t+"",void 0,o),d=(t,...e)=>{const s=1===t.length?t[0]:e.reduce((e,s,o)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1],t[0]);return new a(s,t,o)},n=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return i(e)})(t):t,{is:l,defineProperty:c,getOwnPropertyDescriptor:h,getOwnPropertyNames:p,getOwnPropertySymbols:g,getPrototypeOf:v}=Object,u=globalThis,f=u.trustedTypes,b=f?f.emptyScript:"",m=u.reactiveElementPolyfillSupport,_=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?b:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(o){s=null}}return s}},y=(t,e)=>!l(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=/* @__PURE__ */Symbol("metadata"),u.litPropertyMetadata??=/* @__PURE__ */new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const s=/* @__PURE__ */Symbol(),o=this.getPropertyDescriptor(t,s,e);void 0!==o&&c(this.prototype,t,o)}}static getPropertyDescriptor(t,e,s){const{get:o,set:r}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const a=o?.call(this);r?.call(this,e),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(_("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(_("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(_("properties"))){const t=this.properties,e=[...p(t),...g(t)];for(const s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=/* @__PURE__ */new Map;for(const[e,s]of this.elementProperties){const t=this._$Eu(e,s);void 0!==t&&this._$Eh.set(t,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(n(t))}else void 0!==t&&e.push(n(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=/* @__PURE__ */new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??=/* @__PURE__ */new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=/* @__PURE__ */new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,o)=>{if(s)t.adoptedStyleSheets=o.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const s of o){const o=document.createElement("style"),r=e.litNonce;void 0!==r&&o.setAttribute("nonce",r),o.textContent=s.cssText,t.appendChild(o)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){const s=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,s);if(void 0!==o&&!0===s.reflect){const r=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==r?this.removeAttribute(o):this.setAttribute(o,r),this._$Em=null}}_$AK(t,e){const s=this.constructor,o=s._$Eh.get(t);if(void 0!==o&&this._$Em!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=o;const a=r.fromAttribute(e,t.type);this[o]=a??this._$Ej?.get(o)??a,this._$Em=null}}requestUpdate(t,e,s,o=!1,r){if(void 0!==t){const a=this.constructor;if(!1===o&&(r=this[t]),s??=a.getPropertyOptions(t),!((s.hasChanged??y)(r,e)||s.useDefault&&s.reflect&&r===this._$Ej?.get(t)&&!this.hasAttribute(a._$Eu(t,s))))return;this.C(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:o,wrapped:r},a){s&&!(this._$Ej??=/* @__PURE__ */new Map).has(t)&&(this._$Ej.set(t,a??e??this[t]),!0!==r||void 0!==a)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),!0===o&&this._$Em!==t&&(this._$Eq??=/* @__PURE__ */new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,s]of t){const{wrapped:t}=s,o=this[e];!0!==t||this._$AL.has(e)||void 0===o||this.C(e,void 0,s,o)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(t=>t.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(t=>t.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=/* @__PURE__ */new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach(t=>this._$ET(t,this[t])),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[_("elementProperties")]=/* @__PURE__ */new Map,k[_("finalized")]=/* @__PURE__ */new Map,m?.({ReactiveElement:k}),(u.reactiveElementVersions??=[]).push("2.1.2");const z={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},$=(t=z,e,s)=>{const{kind:o,metadata:r}=s;let a=globalThis.litPropertyMetadata.get(r);if(void 0===a&&globalThis.litPropertyMetadata.set(r,a=/* @__PURE__ */new Map),"setter"===o&&((t=Object.create(t)).wrapped=!0),a.set(s.name,t),"accessor"===o){const{name:o}=s;return{set(s){const r=e.get.call(this);e.set.call(this,s),this.requestUpdate(o,r,t,!0,s)},init(e){return void 0!==e&&this.C(o,void 0,t,e),e}}}if("setter"===o){const{name:o}=s;return function(s){const r=this[o];e.call(this,s),this.requestUpdate(o,r,t,!0,s)}}throw Error("Unsupported decorator location: "+o)};function S(t){return(e,s)=>"object"==typeof s?$(t,e,s):((t,e,s)=>{const o=e.hasOwnProperty(s);return e.constructor.createProperty(s,t),o?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function C(t){return S({...t,state:!0,attribute:!1})}const E=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,Reflect.decorate&&"object"!=typeof e&&Object.defineProperty(t,e,s),s);function A(t,e){return(e,s,o)=>E(e,s,{get(){return e=this,e.renderRoot?.querySelector(t)??null;var e}})}function O(t){return(e,s)=>{const{slot:o,selector:r}=t??{},a="slot"+(o?`[name=${o}]`:":not([name])");return E(e,s,{get(){const e=this.renderRoot?.querySelector(a),s=e?.assignedElements(t)??[];return void 0===r?s:s.filter(t=>t.matches(r))}})}}function L(t){return e=>{var s;customElements.get(t)||(s=t,(t,e)=>{void 0!==e?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)})(e)}}const P=globalThis,D=t=>t,T=P.trustedTypes,q=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M="$lit$",R=`lit$${Math.random().toFixed(9).slice(2)}$`,V="?"+R,B=`<${V}>`,j=document,F=()=>j.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,N="[ \t\n\f\r]",U=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,K=/>/g,G=RegExp(`>|${N}(?:([^\\s"'>=/]+)(${N}*=${N}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),Y=/'/g,X=/"/g,Z=/^(?:script|style|textarea|title)$/i,Q=(ot=1,(t,...e)=>({_$litType$:ot,strings:t,values:e})),J=/* @__PURE__ */Symbol.for("lit-noChange"),tt=/* @__PURE__ */Symbol.for("lit-nothing"),et=/* @__PURE__ */new WeakMap,st=j.createTreeWalker(j,129);var ot;function rt(t,e){if(!H(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==q?q.createHTML(e):e}let at=class t{constructor({strings:e,_$litType$:s},o){let r;this.parts=[];let a=0,i=0;const d=e.length-1,n=this.parts,[l,c]=((t,e)=>{const s=t.length-1,o=[];let r,a=2===e?"<svg>":3===e?"<math>":"",i=U;for(let d=0;d<s;d++){const e=t[d];let s,n,l=-1,c=0;for(;c<e.length&&(i.lastIndex=c,n=i.exec(e),null!==n);)c=i.lastIndex,i===U?"!--"===n[1]?i=W:void 0!==n[1]?i=K:void 0!==n[2]?(Z.test(n[2])&&(r=RegExp("</"+n[2],"g")),i=G):void 0!==n[3]&&(i=G):i===G?">"===n[0]?(i=r??U,l=-1):void 0===n[1]?l=-2:(l=i.lastIndex-n[2].length,s=n[1],i=void 0===n[3]?G:'"'===n[3]?X:Y):i===X||i===Y?i=G:i===W||i===K?i=U:(i=G,r=void 0);const h=i===G&&t[d+1].startsWith("/>")?" ":"";a+=i===U?e+B:l>=0?(o.push(s),e.slice(0,l)+M+e.slice(l)+R+h):e+R+(-2===l?d:h)}return[rt(t,a+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),o]})(e,s);if(this.el=t.createElement(l,o),st.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=st.nextNode())&&n.length<d;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(M)){const e=c[i++],s=r.getAttribute(t).split(R),o=/([.?@])?(.*)/.exec(e);n.push({type:1,index:a,name:o[2],strings:s,ctor:"."===o[1]?ct:"?"===o[1]?ht:"@"===o[1]?pt:lt}),r.removeAttribute(t)}else t.startsWith(R)&&(n.push({type:6,index:a}),r.removeAttribute(t));if(Z.test(r.tagName)){const t=r.textContent.split(R),e=t.length-1;if(e>0){r.textContent=T?T.emptyScript:"";for(let s=0;s<e;s++)r.append(t[s],F()),st.nextNode(),n.push({type:2,index:++a});r.append(t[e],F())}}}else if(8===r.nodeType)if(r.data===V)n.push({type:2,index:a});else{let t=-1;for(;-1!==(t=r.data.indexOf(R,t+1));)n.push({type:7,index:a}),t+=R.length-1}a++}}static createElement(t,e){const s=j.createElement("template");return s.innerHTML=t,s}};function it(t,e,s=t,o){if(e===J)return e;let r=void 0!==o?s._$Co?.[o]:s._$Cl;const a=I(e)?void 0:e._$litDirective$;return r?.constructor!==a&&(r?._$AO?.(!1),void 0===a?r=void 0:(r=new a(t),r._$AT(t,s,o)),void 0!==o?(s._$Co??=[])[o]=r:s._$Cl=r),void 0!==r&&(e=it(t,r._$AS(t,e.values),r,o)),e}let dt=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:s}=this._$AD,o=(t?.creationScope??j).importNode(e,!0);st.currentNode=o;let r=st.nextNode(),a=0,i=0,d=s[0];for(;void 0!==d;){if(a===d.index){let e;2===d.type?e=new nt(r,r.nextSibling,this,t):1===d.type?e=new d.ctor(r,d.name,d.strings,this,t):6===d.type&&(e=new gt(r,this,t)),this._$AV.push(e),d=s[++i]}a!==d?.index&&(r=st.nextNode(),a++)}return st.currentNode=j,o}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},nt=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,o){this.type=2,this._$AH=tt,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=it(this,t,e),I(t)?t===tt||null==t||""===t?(this._$AH!==tt&&this._$AR(),this._$AH=tt):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>H(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==tt&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(j.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=at.createElement(rt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===o)this._$AH.p(e);else{const t=new dt(o,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=et.get(t.strings);return void 0===e&&et.set(t.strings,e=new at(t)),e}k(e){H(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let o,r=0;for(const a of e)r===s.length?s.push(o=new t(this.O(F()),this.O(F()),this,this.options)):o=s[r],o._$AI(a),r++;r<s.length&&(this._$AR(o&&o._$AB.nextSibling,r),s.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){const e=D(t).nextSibling;D(t).remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}},lt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,o,r){this.type=1,this._$AH=tt,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=tt}_$AI(t,e=this,s,o){const r=this.strings;let a=!1;if(void 0===r)t=it(this,t,e,0),a=!I(t)||t!==this._$AH&&t!==J,a&&(this._$AH=t);else{const o=t;let i,d;for(t=r[0],i=0;i<r.length-1;i++)d=it(this,o[s+i],e,i),d===J&&(d=this._$AH[i]),a||=!I(d)||d!==this._$AH[i],d===tt?t=tt:t!==tt&&(t+=(d??"")+r[i+1]),this._$AH[i]=d}a&&!o&&this.j(t)}j(t){t===tt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},ct=class extends lt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===tt?void 0:t}},ht=class extends lt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==tt)}},pt=class extends lt{constructor(t,e,s,o,r){super(t,e,s,o,r),this.type=5}_$AI(t,e=this){if((t=it(this,t,e,0)??tt)===J)return;const s=this._$AH,o=t===tt&&s!==tt||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==tt&&(s===tt||o);o&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},gt=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){it(this,t)}};const vt=P.litHtmlPolyfillSupport;vt?.(at,nt),(P.litHtmlVersions??=[]).push("3.3.2");const ut=globalThis;let ft=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,s)=>{const o=s?.renderBefore??e;let r=o._$litPart$;if(void 0===r){const t=s?.renderBefore??null;o._$litPart$=r=new nt(e.insertBefore(F(),t),t,void 0,s??{})}return r._$AI(t),r})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return J}};ft._$litElement$=!0,ft.finalized=!0,ut.litElementHydrateSupport?.({LitElement:ft});const bt=ut.litElementPolyfillSupport;bt?.({LitElement:ft}),(ut.litElementVersions??=[]).push("4.2.2");const mt=/* @__PURE__ */Symbol.for(""),_t=t=>{if(t?.r===mt)return t?._$litStatic$},xt=t=>({_$litStatic$:t,r:mt}),yt=(t,...e)=>({_$litStatic$:e.reduce((e,s,o)=>e+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(s)+t[o+1],t[0]),r:mt}),wt=/* @__PURE__ */new Map,kt=(t=>(e,...s)=>{const o=s.length;let r,a;const i=[],d=[];let n,l=0,c=!1;for(;l<o;){for(n=e[l];l<o&&void 0!==(a=s[l],r=_t(a));)n+=r+e[++l],c=!0;l!==o&&d.push(a),i.push(n),l++}if(l===o&&i.push(e[o]),c){const t=i.join("$$lit$$");void 0===(e=wt.get(t))&&(i.raw=i,wt.set(t,e=i)),s=d}return t(e,...s)})(Q),zt=d`
2
2
  :host {
3
3
  --_sds-alert-background-color: var(--sds-alert-background-color, var(--sds-color-alert-info-surface-tinted));
4
4
 
@@ -1913,7 +1913,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1913
1913
  <span class="sds-process-step__line"></span>
1914
1914
  </div>
1915
1915
  `}};Es.styles=[zs],Cs([S({type:String,reflect:!0})],Es.prototype,"heading",2),Cs([S({type:String,reflect:!0})],Es.prototype,"timestamp",2),Cs([A('slot[name="marker"]')],Es.prototype,"markerSlot",2),Cs([A(".sds-process-step")],Es.prototype,"step",2),Es=Cs([L("sds-process-step")],Es);const As=d`
1916
- ${i(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-color:var(--dsc-popover-border-color);border-radius:var(--dsc-popover-border-radius);border-style:var(--dsc-popover-border-style);border-width:var(--dsc-popover-border-width);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding);&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;font-size:inherit;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;text-underline-offset:.27em}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
1916
+ ${i(':host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-popover-placement);--_ds-floating-arrow-size:var(--dsc-popover-arrow-size);--dsc-popover-background:var(--ds-color-surface-default);--dsc-popover-border-width:var(--ds-border-width-default);--dsc-popover-border-style:solid;--dsc-popover-border-color:var(--ds-color-border-default);--dsc-popover-color:var(--ds-color-text-default);--dsc-popover-arrow-size:var(--ds-size-3);--dsc-popover-border-radius:var(--ds-border-radius-md);--dsc-popover-max-width:300px;--dsc-popover-padding:var(--ds-size-3) var(--ds-size-4);--dsc-popover-box-shadow:var(--ds-shadow-md);--dsc-popover-placement:top;background:var(--dsc-popover-background);border-color:var(--dsc-popover-border-color);border-radius:var(--dsc-popover-border-radius);border-style:var(--dsc-popover-border-style);border-width:var(--dsc-popover-border-width);box-shadow:var(--dsc-popover-box-shadow);box-sizing:border-box;color:var(--dsc-popover-color);max-width:var(--dsc-popover-max-width);padding:var(--dsc-popover-padding);&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host[data-variant=default]{--dsc-popover-background:var(--ds-color-surface-default)}:host[data-variant=tinted]{--dsc-popover-background:var(--ds-color-surface-tinted)}[data-popover=inline]{all:unset;cursor:pointer;font-size:inherit;text-decoration:underline dotted;text-underline-offset:.27em}[data-popover=inline]:not([hidden]){display:inline}[data-popover=inline]:focus-visible{box-shadow:var(--_ds--focus,var(--dsc-focus-boxShadow));outline:var(--_ds--focus,var(--dsc-focus-outline));outline-offset:var(--_ds--focus,var(--ds-border-width-focus))}[data-popover=inline]:focus-visible *{--_ds--focus: }')}
1917
1917
 
1918
1918
  :host {
1919
1919
  --dsc-popover-background: var(--sds-popover-background-color, var(--sds-color-surface-default, var(--sds-color-main-surface-default)));
@@ -1960,7 +1960,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
1960
1960
  animation: none;
1961
1961
  }
1962
1962
  }
1963
- `,Os={passive:!0,capture:!0},Ls=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),Ps=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Ds(t,...e)},Ds=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)};Date.now().toString(36),Math.random().toString(36).slice(2,5);const Ts=Math.min,qs=Math.max,Ms=Math.round,Rs=Math.floor,Vs=t=>({x:t,y:t}),Bs={left:"right",right:"left",bottom:"top",top:"bottom"},js={start:"end",end:"start"};function Fs(t,e,s){return qs(t,Ts(e,s))}function Is(t,e){return"function"==typeof t?t(e):t}function Hs(t){return t.split("-")[0]}function Ns(t){return t.split("-")[1]}function Us(t){return"x"===t?"y":"x"}function Ws(t){return"y"===t?"height":"width"}const Ks=/* @__PURE__ */new Set(["top","bottom"]);function Gs(t){return Ks.has(Hs(t))?"y":"x"}function Ys(t){return Us(Gs(t))}function Xs(t){return t.replace(/start|end/g,t=>js[t])}const Zs=["left","right"],Qs=["right","left"],Js=["top","bottom"],to=["bottom","top"];function eo(t){return t.replace(/left|right|bottom|top/g,t=>Bs[t])}function so(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function oo(t,e,s){let{reference:o,floating:r}=t;const a=Gs(e),i=Ys(e),d=Ws(i),n=Hs(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Ns(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function ro(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Is(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=so(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=so(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const ao=/* @__PURE__ */new Set(["left","top"]);function io(){return"undefined"!=typeof window}function no(t){return ho(t)?(t.nodeName||"").toLowerCase():"#document"}function lo(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function co(t){var e;return null==(e=(ho(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function ho(t){return!!io()&&(t instanceof Node||t instanceof lo(t).Node)}function po(t){return!!io()&&(t instanceof Element||t instanceof lo(t).Element)}function go(t){return!!io()&&(t instanceof HTMLElement||t instanceof lo(t).HTMLElement)}function vo(t){return!(!io()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof lo(t).ShadowRoot)}const uo=/* @__PURE__ */new Set(["inline","contents"]);function fo(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Eo(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&!uo.has(r)}const bo=/* @__PURE__ */new Set(["table","td","th"]);function mo(t){return bo.has(no(t))}const _o=[":popover-open",":modal"];function xo(t){return _o.some(e=>{try{return t.matches(e)}catch(s){return!1}})}const yo=["transform","translate","scale","rotate","perspective"],wo=["transform","translate","scale","rotate","perspective","filter"],ko=["paint","layout","strict","content"];function zo(t){const e=$o(),s=po(t)?Eo(t):t;return yo.some(t=>!!s[t]&&"none"!==s[t])||!!s.containerType&&"normal"!==s.containerType||!e&&!!s.backdropFilter&&"none"!==s.backdropFilter||!e&&!!s.filter&&"none"!==s.filter||wo.some(t=>(s.willChange||"").includes(t))||ko.some(t=>(s.contain||"").includes(t))}function $o(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const So=/* @__PURE__ */new Set(["html","body","#document"]);function Co(t){return So.has(no(t))}function Eo(t){return lo(t).getComputedStyle(t)}function Ao(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Oo(t){if("html"===no(t))return t;const e=t.assignedSlot||t.parentNode||vo(t)&&t.host||co(t);return vo(e)?e.host:e}function Lo(t){const e=Oo(t);return Co(e)?t.ownerDocument?t.ownerDocument.body:t.body:go(e)&&fo(e)?e:Lo(e)}function Po(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Lo(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=lo(r);if(a){const t=Do(i);return e.concat(i,i.visualViewport||[],fo(r)?r:[],t&&s?Po(t):[])}return e.concat(r,Po(r,[],s))}function Do(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function To(t){const e=Eo(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=go(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=Ms(s)!==a||Ms(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function qo(t){return po(t)?t:t.contextElement}function Mo(t){const e=qo(t);if(!go(e))return Vs(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=To(e);let i=(a?Ms(s.width):s.width)/o,d=(a?Ms(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Ro=Vs(0);function Vo(t){const e=lo(t);return $o()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Ro}function Bo(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=qo(t);let i=Vs(1);e&&(o?po(o)&&(i=Mo(o)):i=Mo(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==lo(n)||!l?Vs(0):Vo(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=lo(a),e=o&&po(o)?lo(o):o;let s=t,r=Do(s);for(;r&&o&&e!==s;){const t=Mo(r),e=r.getBoundingClientRect(),o=Eo(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=lo(r),r=Do(s)}}return so({width:g,height:v,x:h,y:p})}function jo(t,e){const s=Ao(t).scrollLeft;return e?e.left+s:Bo(co(t)).left+s}function Fo(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-jo(t,s),y:s.top+e.scrollTop}}const Io=/* @__PURE__ */new Set(["absolute","fixed"]);function Ho(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=lo(t),o=co(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=$o();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=jo(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=co(t),s=Ao(t),o=t.ownerDocument.body,r=qs(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=qs(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+jo(t);const d=-s.scrollTop;return"rtl"===Eo(o).direction&&(i+=qs(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(co(t));else if(po(e))o=function(t,e){const s=Bo(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=go(t)?Mo(t):Vs(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Vo(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return so(o)}function No(t,e){const s=Oo(t);return!(s===e||!po(s)||Co(s))&&("fixed"===Eo(s).position||No(s,e))}function Uo(t,e,s){const o=go(e),r=co(e),a="fixed"===s,i=Bo(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Vs(0);function l(){n.x=jo(r)}if(o||!o&&!a)if(("body"!==no(e)||fo(r))&&(d=Ao(e)),o){const t=Bo(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Vs(0):Fo(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function Wo(t){return"static"===Eo(t).position}function Ko(t,e){if(!go(t)||"fixed"===Eo(t).position)return null;if(e)return e(t);let s=t.offsetParent;return co(t)===s&&(s=s.ownerDocument.body),s}function Go(t,e){const s=lo(t);if(xo(t))return s;if(!go(t)){let e=Oo(t);for(;e&&!Co(e);){if(po(e)&&!Wo(e))return e;e=Oo(e)}return s}let o=Ko(t,e);for(;o&&mo(o)&&Wo(o);)o=Ko(o,e);return o&&Co(o)&&Wo(o)&&!zo(o)?s:o||function(t){let e=Oo(t);for(;go(e)&&!Co(e);){if(zo(e))return e;if(xo(e))return null;e=Oo(e)}return null}(t)||s}const Yo={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=co(o),d=!!e&&xo(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Vs(1);const c=Vs(0),h=go(o);if((h||!h&&!a)&&(("body"!==no(o)||fo(i))&&(n=Ao(o)),go(o))){const t=Bo(o);l=Mo(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Vs(0):Fo(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:co,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?xo(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Po(t,[],!1).filter(t=>po(t)&&"body"!==no(t)),r=null;const a="fixed"===Eo(t).position;let i=a?Oo(t):t;for(;po(i)&&!Co(i);){const e=Eo(i),s=zo(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&Io.has(r.position)||fo(i)&&!s&&No(t,i))?o=o.filter(t=>t!==i):r=e,i=Oo(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=a[0],d=a.reduce((t,s)=>{const o=Ho(e,s,r);return t.top=qs(o.top,t.top),t.right=Ts(o.right,t.right),t.bottom=Ts(o.bottom,t.bottom),t.left=qs(o.left,t.left),t},Ho(e,i,r));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}},getOffsetParent:Go,getElementRects:async function(t){const e=this.getOffsetParent||Go,s=this.getDimensions,o=await s(t.floating);return{reference:Uo(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=To(t);return{width:e,height:s}},getScale:Mo,isElement:po,isRTL:function(t){return"rtl"===Eo(t).direction}};function Xo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Zo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Hs(s),d=Ns(s),n="y"===Gs(s),l=ao.has(i)?-1:1,c=a&&n?-1:1,h=Is(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Qo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Is(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=Gs(Hs(r)),g=Us(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Fs(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Fs(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},Jo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Is(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Hs(r),m=Gs(d),_=Hs(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[eo(d)]:function(t){const e=eo(t);return[Xs(t),e,Xs(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Ns(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?Qs:Zs:e?Zs:Qs;case"left":case"right":return e?Js:to;default:return[]}}(Hs(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Xs)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Ns(t),r=Ys(t),a=Ws(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=eo(i)),[i,eo(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===Gs(e)||S.every(t=>Gs(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=Gs(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},tr=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Is(t,e),c=await i.detectOverflow(e,l),h=Hs(r),p=Ns(r),g="y"===Gs(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=Ts(u-c[f],m),y=Ts(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=qs(c.left,0),e=qs(c.right,0),s=qs(c.top,0),o=qs(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:qs(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:qs(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},er=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Is(t,e),c={x:s,y:o},h=Gs(r),p=Us(h);let g=c[p],v=c[h];const u=Is(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=ao.has(Hs(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}},sr="data-placement",or="data-autoplacement",rr=/* @__PURE__ */new Map;function ar(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&nr(o,"--_ds-floating");if(!a)return;if("closed"===e)return rr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;let i=nr(o,"--_ds-floating-overscroll"),d=Ls(o,sr)||Ls(r,sr)||a,n=Ls(o,or)||Ls(r,or),l=parseFloat(getComputedStyle(o,"::before").height)||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Zo(l||0),Qo({padding:10,limiter:er({offset:{mainAxis:h}})}),lr(),..."false"===n?[]:[Jo({padding:10,crossAxis:!1})],...i?[tr({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.clientWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=qo(t),c=r||a?[...l?Po(l):[],...Po(e)]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=co(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Rs(h)+"px "+-Rs(r.clientWidth-(c+p))+"px "+-Rs(r.clientHeight-(h+g))+"px "+-Rs(c)+"px",threshold:qs(0,Ts(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Xo(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),v.observe(e));let u=n?Bo(t):null;return n&&function e(){const o=Bo(t);u&&!Xo(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return rr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Yo,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=a.filter(Boolean),n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=oo(l,o,n),p=o,g={},v=0;for(let f=0;f<d.length;f++){var u;const{name:s,fn:a}=d[f],{x:b,y:m,data:_,reset:x}=await a({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:g,rects:l,platform:{...i,detectOverflow:null!=(u=i.detectOverflow)?u:ro},elements:{reference:t,floating:e}});c=null!=b?b:c,h=null!=m?m:h,g={...g,[s]:{...g[s],..._}},x&&v<=50&&(v++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(l=!0===x.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):x.rects),({x:c,y:h}=oo(l,p,n))),f=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:g}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});rr.set(o,()=>rr.delete(o)&&g())}let ir;const dr=({type:t})=>{if("mousedown"===t&&(ir=!1),"scroll"===t&&!1===ir&&(ir=!0),"mouseup"===t&&ir)for(let[e]of rr)e.showPopover()};(t=>{typeof window<"u"&&typeof document<"u"&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,[Ps(document,"mousedown scroll mouseup",dr,!0),Ps(document,"toggle ds-toggle-source",ar,Os)]))})("popover");const nr=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),lr=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ls(e,"data-floating",t.placement),t}});var cr=Object.defineProperty,hr=Object.getOwnPropertyDescriptor,pr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?hr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&cr(e,s,a),a};let gr=class extends ft{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return Q`<slot></slot>`}};gr.styles=[As],pr([S({type:String,reflect:!0})],gr.prototype,"placement",2),pr([S({type:String,reflect:!0})],gr.prototype,"autoPlacement",2),pr([S({type:String,reflect:!0})],gr.prototype,"overscroll",2),gr=pr([L("sds-popover")],gr);const vr=d`
1963
+ `,Os={passive:!0,capture:!0},Ls=(t,e,s)=>void 0===s?t.getAttribute(e)??null:(null===s?t.removeAttribute(e):t.getAttribute(e)!==s&&t.setAttribute(e,s),null),Ps=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Ds=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.addEventListener(r,...o);return()=>Ts(t,...e)},Ts=(t,...e)=>{let[s,...o]=e;for(let r of s.split(" "))t.removeEventListener(r,...o)},qs=(t,e)=>{typeof window<"u"&&typeof document<"u"&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=/* @__PURE__ */new Map),window._dsHotReloadCleanup?.get(t)?.map(t=>t()),window._dsHotReloadCleanup?.set(t,e()))};let Ms;const Rs=()=>{"complete"===document.readyState&&(Ms||(Ms=((t,e)=>{let s=document.createElement("div");if(e)for(let[o,r]of Object.entries(e))Ls(s,o,r);return s})(0,{"aria-live":"assertive"}),Ms.style.overflow="hidden",Ms.style.position="fixed",Ms.style.whiteSpace="nowrap",Ms.style.width="1px"),Ms.isConnected||document.body.appendChild(Ms))};qs("announce",()=>[Ds(document,"focus mouseover",Rs,Os)]);const Vs=Math.min,Bs=Math.max,js=Math.round,Fs=Math.floor,Is=t=>({x:t,y:t}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"};function Ns(t,e,s){return Bs(t,Vs(e,s))}function Us(t,e){return"function"==typeof t?t(e):t}function Ws(t){return t.split("-")[0]}function Ks(t){return t.split("-")[1]}function Gs(t){return"x"===t?"y":"x"}function Ys(t){return"y"===t?"height":"width"}function Xs(t){const e=t[0];return"t"===e||"b"===e?"y":"x"}function Zs(t){return Gs(Xs(t))}function Qs(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Js=["left","right"],to=["right","left"],eo=["top","bottom"],so=["bottom","top"];function oo(t){const e=Ws(t);return Hs[e]+t.slice(e.length)}function ro(t){const{x:e,y:s,width:o,height:r}=t;return{width:o,height:r,top:s,left:e,right:e+o,bottom:s+r,x:e,y:s}}function ao(t,e,s){let{reference:o,floating:r}=t;const a=Xs(e),i=Zs(e),d=Ys(i),n=Ws(e),l="y"===a,c=o.x+o.width/2-r.width/2,h=o.y+o.height/2-r.height/2,p=o[d]/2-r[d]/2;let g;switch(n){case"top":g={x:c,y:o.y-r.height};break;case"bottom":g={x:c,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:h};break;case"left":g={x:o.x-r.width,y:h};break;default:g={x:o.x,y:o.y}}switch(Ks(e)){case"start":g[i]-=p*(s&&l?-1:1);break;case"end":g[i]+=p*(s&&l?-1:1)}return g}async function io(t,e){var s;void 0===e&&(e={});const{x:o,y:r,platform:a,rects:i,elements:d,strategy:n}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:g=0}=Us(e,t),v="number"!=typeof(y=g)?(w=y,{top:0,right:0,bottom:0,left:0,...w}):{top:y,right:y,bottom:y,left:y},u=d[p?"floating"===h?"reference":"floating":h],f=ro(await a.getClippingRect({element:null==(s=await(null==a.isElement?void 0:a.isElement(u)))||s?u:u.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(d.floating)),boundary:l,rootBoundary:c,strategy:n})),b="floating"===h?{x:o,y:r,width:i.floating.width,height:i.floating.height}:i.reference,m=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d.floating)),_=await(null==a.isElement?void 0:a.isElement(m))&&await(null==a.getScale?void 0:a.getScale(m))||{x:1,y:1},x=ro(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:b,offsetParent:m,strategy:n}):b);var y,w;return{top:(f.top-x.top+v.top)/_.y,bottom:(x.bottom-f.bottom+v.bottom)/_.y,left:(f.left-x.left+v.left)/_.x,right:(x.right-f.right+v.right)/_.x}}const no=/* @__PURE__ */new Set(["left","top"]);function lo(){return"undefined"!=typeof window}function co(t){return go(t)?(t.nodeName||"").toLowerCase():"#document"}function ho(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function po(t){var e;return null==(e=(go(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function go(t){return!!lo()&&(t instanceof Node||t instanceof ho(t).Node)}function vo(t){return!!lo()&&(t instanceof Element||t instanceof ho(t).Element)}function uo(t){return!!lo()&&(t instanceof HTMLElement||t instanceof ho(t).HTMLElement)}function fo(t){return!(!lo()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof ho(t).ShadowRoot)}function bo(t){const{overflow:e,overflowX:s,overflowY:o,display:r}=Co(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+s)&&"inline"!==r&&"contents"!==r}function mo(t){return/^(table|td|th)$/.test(co(t))}function _o(t){try{if(t.matches(":popover-open"))return!0}catch(e){}try{return t.matches(":modal")}catch(e){return!1}}const xo=/transform|translate|scale|rotate|perspective|filter/,yo=/paint|layout|strict|content/,wo=t=>!!t&&"none"!==t;let ko;function zo(t){const e=vo(t)?Co(t):t;return wo(e.transform)||wo(e.translate)||wo(e.scale)||wo(e.rotate)||wo(e.perspective)||!$o()&&(wo(e.backdropFilter)||wo(e.filter))||xo.test(e.willChange||"")||yo.test(e.contain||"")}function $o(){return null==ko&&(ko="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ko}function So(t){return/^(html|body|#document)$/.test(co(t))}function Co(t){return ho(t).getComputedStyle(t)}function Eo(t){return vo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ao(t){if("html"===co(t))return t;const e=t.assignedSlot||t.parentNode||fo(t)&&t.host||po(t);return fo(e)?e.host:e}function Oo(t){const e=Ao(t);return So(e)?t.ownerDocument?t.ownerDocument.body:t.body:uo(e)&&bo(e)?e:Oo(e)}function Lo(t,e,s){var o;void 0===e&&(e=[]),void 0===s&&(s=!0);const r=Oo(t),a=r===(null==(o=t.ownerDocument)?void 0:o.body),i=ho(r);if(a){const t=Po(i);return e.concat(i,i.visualViewport||[],bo(r)?r:[],t&&s?Lo(t):[])}return e.concat(r,Lo(r,[],s))}function Po(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Do(t){const e=Co(t);let s=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const r=uo(t),a=r?t.offsetWidth:s,i=r?t.offsetHeight:o,d=js(s)!==a||js(o)!==i;return d&&(s=a,o=i),{width:s,height:o,$:d}}function To(t){return vo(t)?t:t.contextElement}function qo(t){const e=To(t);if(!uo(e))return Is(1);const s=e.getBoundingClientRect(),{width:o,height:r,$:a}=Do(e);let i=(a?js(s.width):s.width)/o,d=(a?js(s.height):s.height)/r;return i&&Number.isFinite(i)||(i=1),d&&Number.isFinite(d)||(d=1),{x:i,y:d}}const Mo=Is(0);function Ro(t){const e=ho(t);return $o()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Mo}function Vo(t,e,s,o){void 0===e&&(e=!1),void 0===s&&(s=!1);const r=t.getBoundingClientRect(),a=To(t);let i=Is(1);e&&(o?vo(o)&&(i=qo(o)):i=qo(t));const d=(n=a,void 0===(l=s)&&(l=!1),!(c=o)||l&&c!==ho(n)||!l?Is(0):Ro(a));var n,l,c;let h=(r.left+d.x)/i.x,p=(r.top+d.y)/i.y,g=r.width/i.x,v=r.height/i.y;if(a){const t=ho(a),e=o&&vo(o)?ho(o):o;let s=t,r=Po(s);for(;r&&o&&e!==s;){const t=qo(r),e=r.getBoundingClientRect(),o=Co(r),a=e.left+(r.clientLeft+parseFloat(o.paddingLeft))*t.x,i=e.top+(r.clientTop+parseFloat(o.paddingTop))*t.y;h*=t.x,p*=t.y,g*=t.x,v*=t.y,h+=a,p+=i,s=ho(r),r=Po(s)}}return ro({width:g,height:v,x:h,y:p})}function Bo(t,e){const s=Eo(t).scrollLeft;return e?e.left+s:Vo(po(t)).left+s}function jo(t,e){const s=t.getBoundingClientRect();return{x:s.left+e.scrollLeft-Bo(t,s),y:s.top+e.scrollTop}}function Fo(t,e,s){let o;if("viewport"===e)o=function(t,e){const s=ho(t),o=po(t),r=s.visualViewport;let a=o.clientWidth,i=o.clientHeight,d=0,n=0;if(r){a=r.width,i=r.height;const t=$o();(!t||t&&"fixed"===e)&&(d=r.offsetLeft,n=r.offsetTop)}const l=Bo(o);if(l<=0){const t=o.ownerDocument,e=t.body,s=getComputedStyle(e),r="CSS1Compat"===t.compatMode&&parseFloat(s.marginLeft)+parseFloat(s.marginRight)||0,i=Math.abs(o.clientWidth-e.clientWidth-r);i<=25&&(a-=i)}else l<=25&&(a+=l);return{width:a,height:i,x:d,y:n}}(t,s);else if("document"===e)o=function(t){const e=po(t),s=Eo(t),o=t.ownerDocument.body,r=Bs(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),a=Bs(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let i=-s.scrollLeft+Bo(t);const d=-s.scrollTop;return"rtl"===Co(o).direction&&(i+=Bs(e.clientWidth,o.clientWidth)-r),{width:r,height:a,x:i,y:d}}(po(t));else if(vo(e))o=function(t,e){const s=Vo(t,!0,"fixed"===e),o=s.top+t.clientTop,r=s.left+t.clientLeft,a=uo(t)?qo(t):Is(1);return{width:t.clientWidth*a.x,height:t.clientHeight*a.y,x:r*a.x,y:o*a.y}}(e,s);else{const s=Ro(t);o={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return ro(o)}function Io(t,e){const s=Ao(t);return!(s===e||!vo(s)||So(s))&&("fixed"===Co(s).position||Io(s,e))}function Ho(t,e,s){const o=uo(e),r=po(e),a="fixed"===s,i=Vo(t,!0,a,e);let d={scrollLeft:0,scrollTop:0};const n=Is(0);function l(){n.x=Bo(r)}if(o||!o&&!a)if(("body"!==co(e)||bo(r))&&(d=Eo(e)),o){const t=Vo(e,!0,a,e);n.x=t.x+e.clientLeft,n.y=t.y+e.clientTop}else r&&l();a&&!o&&r&&l();const c=!r||o||a?Is(0):jo(r,d);return{x:i.left+d.scrollLeft-n.x-c.x,y:i.top+d.scrollTop-n.y-c.y,width:i.width,height:i.height}}function No(t){return"static"===Co(t).position}function Uo(t,e){if(!uo(t)||"fixed"===Co(t).position)return null;if(e)return e(t);let s=t.offsetParent;return po(t)===s&&(s=s.ownerDocument.body),s}function Wo(t,e){const s=ho(t);if(_o(t))return s;if(!uo(t)){let e=Ao(t);for(;e&&!So(e);){if(vo(e)&&!No(e))return e;e=Ao(e)}return s}let o=Uo(t,e);for(;o&&mo(o)&&No(o);)o=Uo(o,e);return o&&So(o)&&No(o)&&!zo(o)?s:o||function(t){let e=Ao(t);for(;uo(e)&&!So(e);){if(zo(e))return e;if(_o(e))return null;e=Ao(e)}return null}(t)||s}const Ko={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:s,offsetParent:o,strategy:r}=t;const a="fixed"===r,i=po(o),d=!!e&&_o(e.floating);if(o===i||d&&a)return s;let n={scrollLeft:0,scrollTop:0},l=Is(1);const c=Is(0),h=uo(o);if((h||!h&&!a)&&(("body"!==co(o)||bo(i))&&(n=Eo(o)),h)){const t=Vo(o);l=qo(o),c.x=t.x+o.clientLeft,c.y=t.y+o.clientTop}const p=!i||h||a?Is(0):jo(i,n);return{width:s.width*l.x,height:s.height*l.y,x:s.x*l.x-n.scrollLeft*l.x+c.x+p.x,y:s.y*l.y-n.scrollTop*l.y+c.y+p.y}},getDocumentElement:po,getClippingRect:function(t){let{element:e,boundary:s,rootBoundary:o,strategy:r}=t;const a=[..."clippingAncestors"===s?_o(e)?[]:function(t,e){const s=e.get(t);if(s)return s;let o=Lo(t,[],!1).filter(t=>vo(t)&&"body"!==co(t)),r=null;const a="fixed"===Co(t).position;let i=a?Ao(t):t;for(;vo(i)&&!So(i);){const e=Co(i),s=zo(i);s||"fixed"!==e.position||(r=null),(a?!s&&!r:!s&&"static"===e.position&&r&&("absolute"===r.position||"fixed"===r.position)||bo(i)&&!s&&Io(t,i))?o=o.filter(t=>t!==i):r=e,i=Ao(i)}return e.set(t,o),o}(e,this._c):[].concat(s),o],i=Fo(e,a[0],r);let d=i.top,n=i.right,l=i.bottom,c=i.left;for(let h=1;h<a.length;h++){const t=Fo(e,a[h],r);d=Bs(t.top,d),n=Vs(t.right,n),l=Vs(t.bottom,l),c=Bs(t.left,c)}return{width:n-c,height:l-d,x:c,y:d}},getOffsetParent:Wo,getElementRects:async function(t){const e=this.getOffsetParent||Wo,s=this.getDimensions,o=await s(t.floating);return{reference:Ho(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:s}=Do(t);return{width:e,height:s}},getScale:qo,isElement:vo,isRTL:function(t){return"rtl"===Co(t).direction}};function Go(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}const Yo=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var s,o;const{x:r,y:a,placement:i,middlewareData:d}=e,n=await async function(t,e){const{placement:s,platform:o,elements:r}=t,a=await(null==o.isRTL?void 0:o.isRTL(r.floating)),i=Ws(s),d=Ks(s),n="y"===Xs(s),l=no.has(i)?-1:1,c=a&&n?-1:1,h=Us(e,t);let{mainAxis:p,crossAxis:g,alignmentAxis:v}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return d&&"number"==typeof v&&(g="end"===d?-1*v:v),n?{x:g*c,y:p*l}:{x:p*l,y:g*c}}(e,t);return i===(null==(s=d.offset)?void 0:s.placement)&&null!=(o=d.arrow)&&o.alignmentOffset?{}:{x:r+n.x,y:a+n.y,data:{...n,placement:i}}}}},Xo=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:s,y:o,placement:r,platform:a}=e,{mainAxis:i=!0,crossAxis:d=!1,limiter:n={fn:t=>{let{x:e,y:s}=t;return{x:e,y:s}}},...l}=Us(t,e),c={x:s,y:o},h=await a.detectOverflow(e,l),p=Xs(Ws(r)),g=Gs(p);let v=c[g],u=c[p];if(i){const t="y"===g?"bottom":"right";v=Ns(v+h["y"===g?"top":"left"],v,v-h[t])}if(d){const t="y"===p?"bottom":"right";u=Ns(u+h["y"===p?"top":"left"],u,u-h[t])}const f=n.fn({...e,[g]:v,[p]:u});return{...f,data:{x:f.x-s,y:f.y-o,enabled:{[g]:i,[p]:d}}}}}},Zo=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var s,o;const{placement:r,middlewareData:a,rects:i,initialPlacement:d,platform:n,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:u=!0,...f}=Us(t,e);if(null!=(s=a.arrow)&&s.alignmentOffset)return{};const b=Ws(r),m=Xs(d),_=Ws(d)===d,x=await(null==n.isRTL?void 0:n.isRTL(l.floating)),y=p||(_||!u?[oo(d)]:function(t){const e=oo(t);return[Qs(t),e,Qs(e)]}(d)),w="none"!==v;!p&&w&&y.push(...function(t,e,s,o){const r=Ks(t);let a=function(t,e,s){switch(t){case"top":case"bottom":return s?e?to:Js:e?Js:to;case"left":case"right":return e?eo:so;default:return[]}}(Ws(t),"start"===s,o);return r&&(a=a.map(t=>t+"-"+r),e&&(a=a.concat(a.map(Qs)))),a}(d,u,v,x));const k=[d,...y],z=await n.detectOverflow(e,f),$=[];let S=(null==(o=a.flip)?void 0:o.overflows)||[];if(c&&$.push(z[b]),h){const t=function(t,e,s){void 0===s&&(s=!1);const o=Ks(t),r=Zs(t),a=Ys(r);let i="x"===r?o===(s?"end":"start")?"right":"left":"start"===o?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=oo(i)),[i,oo(i)]}(r,i,x);$.push(z[t[0]],z[t[1]])}if(S=[...S,{placement:r,overflows:$}],!$.every(t=>t<=0)){var C,E;const t=((null==(C=a.flip)?void 0:C.index)||0)+1,e=k[t];if(e&&("alignment"!==h||m===Xs(e)||S.every(t=>Xs(t.placement)!==m||t.overflows[0]>0)))return{data:{index:t,overflows:S},reset:{placement:e}};let s=null==(E=S.filter(t=>t.overflows[0]<=0).sort((t,e)=>t.overflows[1]-e.overflows[1])[0])?void 0:E.placement;if(!s)switch(g){case"bestFit":{var A;const t=null==(A=S.filter(t=>{if(w){const e=Xs(t.placement);return e===m||"y"===e}return!0}).map(t=>[t.placement,t.overflows.filter(t=>t>0).reduce((t,e)=>t+e,0)]).sort((t,e)=>t[1]-e[1])[0])?void 0:A[0];t&&(s=t);break}case"initialPlacement":s=d}if(r!==s)return{reset:{placement:s}}}return{}}}},Qo=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var s,o;const{placement:r,rects:a,platform:i,elements:d}=e,{apply:n=()=>{},...l}=Us(t,e),c=await i.detectOverflow(e,l),h=Ws(r),p=Ks(r),g="y"===Xs(r),{width:v,height:u}=a.floating;let f,b;"top"===h||"bottom"===h?(f=h,b=p===(await(null==i.isRTL?void 0:i.isRTL(d.floating))?"start":"end")?"left":"right"):(b=h,f="end"===p?"top":"bottom");const m=u-c.top-c.bottom,_=v-c.left-c.right,x=Vs(u-c[f],m),y=Vs(v-c[b],_),w=!e.middlewareData.shift;let k=x,z=y;if(null!=(s=e.middlewareData.shift)&&s.enabled.x&&(z=_),null!=(o=e.middlewareData.shift)&&o.enabled.y&&(k=m),w&&!p){const t=Bs(c.left,0),e=Bs(c.right,0),s=Bs(c.top,0),o=Bs(c.bottom,0);g?z=v-2*(0!==t||0!==e?t+e:Bs(c.left,c.right)):k=u-2*(0!==s||0!==o?s+o:Bs(c.top,c.bottom))}await n({...e,availableWidth:z,availableHeight:k});const $=await i.getDimensions(d.floating);return v!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},Jo=function(t){return void 0===t&&(t={}),{options:t,fn(e){const{x:s,y:o,placement:r,rects:a,middlewareData:i}=e,{offset:d=0,mainAxis:n=!0,crossAxis:l=!0}=Us(t,e),c={x:s,y:o},h=Xs(r),p=Gs(h);let g=c[p],v=c[h];const u=Us(d,e),f="number"==typeof u?{mainAxis:u,crossAxis:0}:{mainAxis:0,crossAxis:0,...u};if(n){const t="y"===p?"height":"width",e=a.reference[p]-a.floating[t]+f.mainAxis,s=a.reference[p]+a.reference[t]-f.mainAxis;g<e?g=e:g>s&&(g=s)}if(l){var b,m;const t="y"===p?"width":"height",e=no.has(Ws(r)),s=a.reference[h]-a.floating[t]+(e&&(null==(b=i.offset)?void 0:b[h])||0)+(e?0:f.crossAxis),o=a.reference[h]+a.reference[t]+(e?0:(null==(m=i.offset)?void 0:m[h])||0)-(e?f.crossAxis:0);v<s?v=s:v>o&&(v=o)}return{[p]:g,[h]:v}}}},tr="data-placement",er="data-autoplacement",sr=/* @__PURE__ */new Map;function or(t){let{newState:e,oldState:s,target:o,source:r=t.detail}=t,a=o instanceof HTMLElement&&null!==Ls(o,"popover")&&Ps(o,"--_ds-floating");if(!a)return;if("closed"===e)return sr.get(o)?.();if(!r){let t=o.getRootNode(),e=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;r=o.id&&t?.querySelector?.(e)||void 0}if(!r||r===o||s&&s===e)return;let i=Ps(o,"--_ds-floating-overscroll"),d=Ls(o,tr)||Ls(r,tr)||a,n=Ls(o,er)||Ls(r,er),l=parseFloat(getComputedStyle(o,"::before").height)||0,c=d.match(/left|right/gi)?"Height":"Width",h=r[`offset${c}`]/2+l;if("none"===d)return;let p={strategy:"absolute",placement:d,middleware:[Yo(l||0),Xo({padding:10,limiter:Jo({offset:{mainAxis:h}})}),ir(),..."false"===n?[]:[Zo({padding:10,crossAxis:!1})],...i?[Qo({apply({availableHeight:t}){"fit"===i&&(o.style.width=`${r.clientWidth}px`),o.style.maxHeight=`${Math.max(50,t-20)}px`}})]:[]]},g=function(t,e,s,o){void 0===o&&(o={});const{ancestorScroll:r=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:d="function"==typeof IntersectionObserver,animationFrame:n=!1}=o,l=To(t),c=r||a?[...l?Lo(l):[],...e?Lo(e):[]]:[];c.forEach(t=>{r&&t.addEventListener("scroll",s,{passive:!0}),a&&t.addEventListener("resize",s)});const h=l&&d?function(t,e){let s,o=null;const r=po(t);function a(){var t;clearTimeout(s),null==(t=o)||t.disconnect(),o=null}return function i(d,n){void 0===d&&(d=!1),void 0===n&&(n=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:p,height:g}=l;if(d||e(),!p||!g)return;const v={rootMargin:-Fs(h)+"px "+-Fs(r.clientWidth-(c+p))+"px "+-Fs(r.clientHeight-(h+g))+"px "+-Fs(c)+"px",threshold:Bs(0,Vs(1,n))||1};let u=!0;function f(e){const o=e[0].intersectionRatio;if(o!==n){if(!u)return i();o?i(!1,o):s=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==o||Go(l,t.getBoundingClientRect())||i(),u=!1}try{o=new IntersectionObserver(f,{...v,root:r.ownerDocument})}catch(b){o=new IntersectionObserver(f,v)}o.observe(t)}(!0),a}(l,s):null;let p,g=-1,v=null;i&&(v=new ResizeObserver(t=>{let[o]=t;o&&o.target===l&&v&&e&&(v.unobserve(e),cancelAnimationFrame(g),g=requestAnimationFrame(()=>{var t;null==(t=v)||t.observe(e)})),s()}),l&&!n&&v.observe(l),e&&v.observe(e));let u=n?Vo(t):null;return n&&function e(){const o=Vo(t);u&&!Go(u,o)&&s(),u=o,p=requestAnimationFrame(e)}(),s(),()=>{var t;c.forEach(t=>{r&&t.removeEventListener("scroll",s),a&&t.removeEventListener("resize",s)}),null==h||h(),null==(t=v)||t.disconnect(),v=null,n&&cancelAnimationFrame(p)}}(r,o,async()=>{if(!r?.isConnected)return sr.get(o)?.();let{x:t,y:e}=await((t,e,s)=>{const o=/* @__PURE__ */new Map,r={platform:Ko,...s},a={...r.platform,_c:o};return(async(t,e,s)=>{const{placement:o="bottom",strategy:r="absolute",middleware:a=[],platform:i}=s,d=i.detectOverflow?i:{...i,detectOverflow:io},n=await(null==i.isRTL?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:r}),{x:c,y:h}=ao(l,o,n),p=o,g=0;const v={};for(let u=0;u<a.length;u++){const s=a[u];if(!s)continue;const{name:f,fn:b}=s,{x:m,y:_,data:x,reset:y}=await b({x:c,y:h,initialPlacement:o,placement:p,strategy:r,middlewareData:v,rects:l,platform:d,elements:{reference:t,floating:e}});c=null!=m?m:c,h=null!=_?_:h,v[f]={...v[f],...x},y&&g<50&&(g++,"object"==typeof y&&(y.placement&&(p=y.placement),y.rects&&(l=!0===y.rects?await i.getElementRects({reference:t,floating:e,strategy:r}):y.rects),({x:c,y:h}=ao(l,p,n))),u=-1)}return{x:c,y:h,placement:p,strategy:r,middlewareData:v}})(t,e,{...r,platform:a})})(r,o,p);o.style.translate=`${t}px ${e}px`});sr.set(o,()=>sr.delete(o)&&g())}let rr;const ar=({type:t})=>{if("mousedown"===t&&(rr=!1),"scroll"===t&&!1===rr&&(rr=!0),"mouseup"===t&&rr)for(let[e]of sr)e.showPopover()};qs("popover",()=>[Ds(document,"mousedown scroll mouseup",ar,!0),Ds(document,"toggle ds-toggle-source",or,Os)]);const ir=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,s=t.rects.reference,o=`${Math.round(s.width/2+s.x-t.x)}px`,r=`${Math.round(s.height/2+s.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",r),Ls(e,"data-floating",t.placement),t}});var dr=Object.defineProperty,nr=Object.getOwnPropertyDescriptor,lr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?nr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&dr(e,s,a),a};let cr=class extends ft{constructor(){super(...arguments),this.placement="top",this.autoPlacement=void 0,this.overscroll=void 0}connectedCallback(){super.connectedCallback(),this.hasAttribute("popover")||this.setAttribute("popover","auto"),this.syncDataAttributes()}updated(t){(t.has("placement")||t.has("autoPlacement")||t.has("overscroll"))&&this.syncDataAttributes()}syncDataAttributes(){this.placement&&(this.dataset.placement=this.placement),this.autoPlacement&&(this.dataset.autoplacement=this.autoPlacement),this.overscroll&&(this.dataset.overscroll=this.overscroll)}render(){return Q`<slot></slot>`}};cr.styles=[As],lr([S({type:String,reflect:!0})],cr.prototype,"placement",2),lr([S({type:String,reflect:!0})],cr.prototype,"autoPlacement",2),lr([S({type:String,reflect:!0})],cr.prototype,"overscroll",2),cr=lr([L("sds-popover")],cr);const hr=d`
1964
1964
  :host {
1965
1965
  --_sds-radio-font-family: var(--sds-radio-font-family, var(--sds-typography-font-family-roboto));
1966
1966
  --_sds-radio-disabled-opacity: var(--sds-radio-disabled-opacity, var(--sds-color-states-disabled-opacity));
@@ -2162,7 +2162,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2162
2162
  margin-block-start: -1px;
2163
2163
  }
2164
2164
  }
2165
- `;var ur=Object.defineProperty,fr=Object.getOwnPropertyDescriptor,br=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?fr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ur(e,s,a),a};let mr=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},s=this.helpText?"help-text":void 0;return Q`
2165
+ `;var pr=Object.defineProperty,gr=Object.getOwnPropertyDescriptor,vr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?gr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&pr(e,s,a),a};let ur=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.label="",this.hideLabel=!1,this.value="on",this.checked=!1,this.error=!1,this.size="md",this._disabled=!1,this._disabledIsAuthorControlled=!1,this._settingDisabledFromParent=!1,this._parentRequestDisabled=!1,this._initialChecked=!1,this._handleKeydown=t=>{if(!this.name||this.disabled||this.readOnly)return;const e=this.getRootNode(),s=Array.from(e.querySelectorAll(`sds-radio[name="${this.name}"]`)),o=s.indexOf(this);if(-1===o)return;let r=null;switch(t.key){case"ArrowUp":case"ArrowLeft":r=o>0?o-1:s.length-1;break;case"ArrowDown":case"ArrowRight":r=o<s.length-1?o+1:0;break;default:return}const a=s[r];a?.focus(),a?.click(),t.preventDefault()},this._handleChange=t=>{if(this.disabled||this.readOnly)return t.target.checked=this.checked??!1,void t.preventDefault();const e=t.target;this.checked=e.checked,this.checked&&this._uncheckSiblings(),this._updateGroupValidation(),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("blur")}}get disabled(){return this._disabled}set disabled(t){const e=t??!1,s=this._disabled;s!==e&&(this._disabled=e,this.requestUpdate("disabled",s),this._settingDisabledFromParent||(this._disabledIsAuthorControlled=e))}get parentRequestDisabled(){return this._parentRequestDisabled}set parentRequestDisabled(t){const e=t??!1,s=this._parentRequestDisabled;s!==e&&(this._parentRequestDisabled=e,this.requestUpdate("parentRequestDisabled",s),this._disabledIsAuthorControlled||(this._settingDisabledFromParent=!0,this.disabled=e,this._settingDisabledFromParent=!1))}connectedCallback(){super.connectedCallback(),this.internals.role="radio",this._initialChecked||(this._initialChecked=this.checked??!1),this.addEventListener("keydown",this._handleKeydown)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeydown)}firstUpdated(t){super.firstUpdated(t),this._updateGroupValidation()}updated(t){super.updated(t),t.has("checked")&&(this.checked?(this._uncheckSiblings(),this.internals.setFormValue(this.value??null)):this.internals.setFormValue(null),this._updateGroupValidation()),t.has("required")&&this.control&&(this.control.required=this.required??!1),this._disabledIsAuthorControlled||this.disabled===this._parentRequestDisabled||(this._settingDisabledFromParent=!0,this.disabled=this._parentRequestDisabled??!1,this._settingDisabledFromParent=!1)}_getGroupRadios(){if(!this.name)return[this];const t=this.getRootNode();return Array.from(t.querySelectorAll(`sds-radio[name="${this.name}"]`))}_updateGroupValidation(){const t=this._getGroupRadios(),e=t.some(t=>t.checked),s=t.some(t=>t.required);t.forEach(t=>{t.control&&(s?t.internals.setValidity(e?{}:{valueMissing:!0},e?"":t.control.validationMessage,t.control):t.internals.setValidity({}))})}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this.checked?this.value??"on":null),this._updateGroupValidation()}_uncheckSiblings(){if(!this.name)return;const t=this._getGroupRadios();for(const e of t)e!==this&&e.checked&&(e.checked=!1,e.internals.setFormValue(null))}get type(){return"radio"}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}get willValidate(){return this.internals.willValidate}checkValidity(){return this.internals.checkValidity()}reportValidity(){return this.internals.reportValidity()}setCustomValidity(t){this.internals.setValidity({customError:!!t},t)}formDisabledCallback(t){this._settingDisabledFromParent=!0,this.disabled=t,this._settingDisabledFromParent=!1,this.control&&(this.control.disabled=t)}render(){const t={"sds-radio":!0,"sds-radio--error":Boolean(this.error)},e={"sds-radio__input":!0,"sds-radio__input--error":Boolean(this.error)},s=this.helpText?"help-text":void 0;return Q`
2166
2166
  <div class="${Zt(t)}">
2167
2167
  <input
2168
2168
  id="control"
@@ -2185,7 +2185,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2185
2185
  ${this.label?Q`<label class="sds-radio__label" for="control">${this.label}</label>`:tt}
2186
2186
  ${this.helpText?Q`<span id="help-text" class="sds-radio__help-text">${this.helpText}</span>`:tt}
2187
2187
  </div>
2188
- `}};mr.styles=[vr],br([S({type:Boolean,reflect:!0})],mr.prototype,"required",2),br([S({type:String,reflect:!0})],mr.prototype,"label",2),br([S({type:Boolean,reflect:!0,attribute:"hide-label"})],mr.prototype,"hideLabel",2),br([S({type:String})],mr.prototype,"value",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"checked",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"error",2),br([S({type:String,reflect:!0})],mr.prototype,"size",2),br([S({type:String,attribute:"help-text"})],mr.prototype,"helpText",2),br([S({type:Boolean,reflect:!0})],mr.prototype,"disabled",1),br([S({type:Boolean,attribute:!1})],mr.prototype,"parentRequestDisabled",1),br([A("#control")],mr.prototype,"control",2),mr=br([L("sds-radio")],mr);const _r=d`
2188
+ `}};ur.styles=[hr],vr([S({type:Boolean,reflect:!0})],ur.prototype,"required",2),vr([S({type:String,reflect:!0})],ur.prototype,"label",2),vr([S({type:Boolean,reflect:!0,attribute:"hide-label"})],ur.prototype,"hideLabel",2),vr([S({type:String})],ur.prototype,"value",2),vr([S({type:Boolean,reflect:!0})],ur.prototype,"checked",2),vr([S({type:Boolean,reflect:!0})],ur.prototype,"error",2),vr([S({type:String,reflect:!0})],ur.prototype,"size",2),vr([S({type:String,attribute:"help-text"})],ur.prototype,"helpText",2),vr([S({type:Boolean,reflect:!0})],ur.prototype,"disabled",1),vr([S({type:Boolean,attribute:!1})],ur.prototype,"parentRequestDisabled",1),vr([A("#control")],ur.prototype,"control",2),ur=vr([L("sds-radio")],ur);const fr=d`
2189
2189
  :host {
2190
2190
  --_sds-radio-group-gap: var(--sds-radio-group-gap, var(--sds-spacing-xs));
2191
2191
  --_sds-radio-group-row-gap: var(--sds-radio-group-row-gap, var(--sds-spacing-md));
@@ -2283,7 +2283,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2283
2283
  --_sds-radio-group-help-text-font-size: var(--sds-radio-group-help-text-font-size, var(--sds-components-font-size-content-lg));
2284
2284
  --_sds-radio-group-help-text-line-height: var(--sds-radio-group-help-text-line-height, var(--sds-components-line-height-squeezed-lg));
2285
2285
  }
2286
- `;var xr=Object.defineProperty,yr=Object.getOwnPropertyDescriptor,wr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?yr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&xr(e,s,a),a};const kr=["disabled","errorMessage","readOnly","required","size"];let zr=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...kr])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;kr.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2286
+ `;var br=Object.defineProperty,mr=Object.getOwnPropertyDescriptor,_r=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?mr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&br(e,s,a),a};const xr=["disabled","errorMessage","readOnly","required","size"];let yr=class extends(St(ft)){constructor(){super(...arguments),this.readOnly=!1,this.direction="column",this.disabled=!1,this.required=!1,this.size="md",this._selectedValue=null,this._handleRadioChange=t=>{const e=t.composedPath().find(t=>t instanceof HTMLElement&&"SDS-RADIO"===t.tagName);e&&(this._selectedValue=e.getAttribute("value")||null,this.dispatchSheriffEvent("sds-update"))},this._handleSlotChange=()=>{this._updateChildProps([...xr])}}_getChildRadios(){return this._slotElement?.assignedElements({flatten:!0}).filter(t=>"SDS-RADIO"===t.tagName)??[]}_updateChildProps(t){const e=this._getChildRadios();for(const s of e)for(const e of t)switch(e){case"readOnly":s.readOnly=this.readOnly;break;case"disabled":s.parentRequestDisabled=this.disabled;break;case"errorMessage":s.error=Boolean(this.errorMessage);break;case"required":s.required=this.required;break;case"size":s.size=this.size}}updated(t){super.updated(t);const e=Array.from(t.keys());(e.includes("errorMessage")||e.includes("error-message"))&&this._updateChildProps(["errorMessage"])}attributeChangedCallback(t,e,s){if(super.attributeChangedCallback(t,e,s),"readonly"===t)return void this._updateChildProps(["readOnly"]);const o=t;xr.includes(o)&&this._updateChildProps([o])}render(){const t={"sds-radio-group":!0,"sds-radio-group--readonly":this.readOnly??!1,"sds-radio-group--disabled":this.disabled??!1},e={"sds-radio-group__radios":!0,"sds-radio-group--column":"column"===this.direction,"sds-radio-group--row":"row"===this.direction},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2287
2287
  <fieldset class="${Zt(t)}" aria-describedby="${Pt(s)}" aria-invalid="${this.errorMessage?"true":"false"}">
2288
2288
  ${this.legend?Q`<legend class="sds-radio-group__legend">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="md"></sds-icon>`:tt}${this.legend}</legend>`:tt}
2289
2289
  ${this.helpText?Q`<p id="help-text" class="sds-radio-group__help-text">${this.helpText}</p>`:tt}
@@ -2294,7 +2294,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2294
2294
  <p slot="message">${this.errorMessage}</p>
2295
2295
  </sds-alert>`:tt}
2296
2296
  </fieldset>
2297
- `}get value(){return{selectedValue:this._selectedValue}}};zr.styles=[_r],wr([S({type:String})],zr.prototype,"legend",2),wr([S({type:String,attribute:"help-text"})],zr.prototype,"helpText",2),wr([S({type:String,attribute:"error-message"})],zr.prototype,"errorMessage",2),wr([S({type:Boolean,attribute:"readonly",reflect:!0})],zr.prototype,"readOnly",2),wr([S({type:String})],zr.prototype,"direction",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"disabled",2),wr([S({type:Boolean,reflect:!0})],zr.prototype,"required",2),wr([S({type:String,reflect:!0})],zr.prototype,"size",2),wr([C()],zr.prototype,"_selectedValue",2),wr([A("slot")],zr.prototype,"_slotElement",2),zr=wr([L("sds-radio-group")],zr);const $r=d`
2297
+ `}get value(){return{selectedValue:this._selectedValue}}};yr.styles=[fr],_r([S({type:String})],yr.prototype,"legend",2),_r([S({type:String,attribute:"help-text"})],yr.prototype,"helpText",2),_r([S({type:String,attribute:"error-message"})],yr.prototype,"errorMessage",2),_r([S({type:Boolean,attribute:"readonly",reflect:!0})],yr.prototype,"readOnly",2),_r([S({type:String})],yr.prototype,"direction",2),_r([S({type:Boolean,reflect:!0})],yr.prototype,"disabled",2),_r([S({type:Boolean,reflect:!0})],yr.prototype,"required",2),_r([S({type:String,reflect:!0})],yr.prototype,"size",2),_r([C()],yr.prototype,"_selectedValue",2),_r([A("slot")],yr.prototype,"_slotElement",2),yr=_r([L("sds-radio-group")],yr);const wr=d`
2298
2298
  :host {
2299
2299
  --_sds-select-background-color: var(--sds-select-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
2300
2300
  --_sds-select-text-color: var(--sds-select-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2470,7 +2470,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2470
2470
  --_sds-select-helptext-font-size: var(--sds-select-helptext-font-size, var(--sds-components-font-size-content-lg));
2471
2471
  --_sds-select-helptext-line-height: var(--sds-select-helptext-line-height, var(--sds-components-line-height-squeezed-lg));
2472
2472
  }
2473
- `;var Sr=Object.defineProperty,Cr=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&Sr(e,s,a),a};const Er=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return tt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return Q` <option value=${Pt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Pt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2473
+ `;var kr=Object.defineProperty,zr=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&kr(e,s,a),a};const $r=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._pendingLightDomSync=!1,this._handleSlotChange=()=>{if(null==this.value){const t=this.getLightDomSelectedValue();null!=t&&(this.value=t)}this._scheduleLightDomSync()},this._handleChange=t=>{t.stopImmediatePropagation(),t.target instanceof HTMLSelectElement&&(this.disabled||this.readOnly?t.target.value=this.value??"":(this.value=t.target.value,this._setFormValue(this.value),this.updateValidity(),this.dispatchSheriffEvent("input"),this.dispatchSheriffEvent("change")))},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{if(!this.readOnly)return;/* @__PURE__ */new Set(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight","Home","End","PageUp","PageDown"," ","Enter"]).has(t.key)&&(t.preventDefault(),t.stopImmediatePropagation())}}connectedCallback(){if(super.connectedCallback(),null==this.value){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);t&&(this.value=t.value)}this._startObservingLightDom()}disconnectedCallback(){this._stopObservingLightDom(),super.disconnectedCallback()}firstUpdated(){const t=this.control?.value??"";this.value=this.value??this.defaultValue??t,this.control.value=this.value??"",this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue),this.updateValidity()}updated(t){super.updated(t),this.control&&t.has("value")&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())}_setFormValue(t){this.internals.setFormValue(null==t?null:t)}_scheduleLightDomSync(){this._pendingLightDomSync||(this._pendingLightDomSync=!0,queueMicrotask(()=>{this._pendingLightDomSync=!1;const t=this.getLightDomSelectedValue();void 0!==t&&t!==this.value&&(this.value=t),this.requestUpdate(),this.updateComplete.then(()=>{this.control&&(this.control.value=this.value??"",this._setFormValue(this.value),this.updateValidity())})}))}_startObservingLightDom(){this._lightDomObserver||(this._lightDomObserver=new MutationObserver(t=>{for(const e of t){if("childList"===e.type)return void this._scheduleLightDomSync();if("characterData"===e.type)return void this._scheduleLightDomSync();if("attributes"===e.type){const t=e.target;if(!(t instanceof HTMLElement))continue;const s=t.tagName;if("OPTION"===s||"OPTGROUP"===s||"HR"===s)return void this._scheduleLightDomSync()}}}),this._lightDomObserver.observe(this,{subtree:!0,childList:!0,attributes:!0,characterData:!0}))}_stopObservingLightDom(){this._lightDomObserver?.disconnect(),this._lightDomObserver=void 0,this._pendingLightDomSync=!1}updateValidity(){this.control&&(this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control))}getLightDomSelectedValue(){const t=Array.from(this.querySelectorAll("option")).find(t=>t.hasAttribute("selected")||t.defaultSelected);return t?.value}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control&&(this.control.value=t),this.value=this._defaultValue??"",this.updateValidity()}renderFromLightDom(){const t=this.children??[];return Array.from(t).filter(t=>t instanceof HTMLElement).map(t=>{switch(t.tagName){case"OPTION":return this.renderOption(t);case"OPTGROUP":return this.renderOptgroup(t);case"HR":return Q`<hr />`;default:return tt}})}renderOption(t){const e=t.getAttribute("value"),s=t.value,o=null!=this.value&&s===this.value;return Q` <option value=${Pt(null===e?void 0:e)} ?disabled=${t.disabled} .selected=${o}>${t.text}</option> `}renderOptgroup(t){const e=Array.from(t.querySelectorAll("option"));return Q` <optgroup label=${Pt(t.label||void 0)} ?disabled=${t.disabled}>${e.map(t=>this.renderOption(t))}</optgroup> `}render(){const t={"sds-select":!0,"sds-select--error":Boolean(this.errorMessage)},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
2474
2474
  <div class="${Zt(t)}">
2475
2475
  ${this.label?Q` <label for="control" class="sds-select__label"> ${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt} ${this.label} </label> `:tt}
2476
2476
  ${this.helpText?Q`<p id="help-text" class="sds-select__help-text">${this.helpText}</p>`:tt}
@@ -2502,7 +2502,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2502
2502
  </sds-alert>
2503
2503
  `:tt}
2504
2504
  </div>
2505
- `}};Er.styles=[$r];let Ar=Er;Cr([S({type:String,reflect:!0})],Ar.prototype,"label"),Cr([S({type:String,attribute:!1})],Ar.prototype,"value"),Cr([S({type:String,attribute:"default-value"})],Ar.prototype,"defaultValue"),Cr([S({type:String,attribute:"help-text",reflect:!0})],Ar.prototype,"helpText"),Cr([S({type:String,attribute:"error-message",reflect:!0})],Ar.prototype,"errorMessage"),Cr([S({type:Boolean,reflect:!0})],Ar.prototype,"required"),Cr([S({type:String,reflect:!0})],Ar.prototype,"size"),Cr([A("#control")],Ar.prototype,"control");var Or=Object.getOwnPropertyDescriptor;let Lr=class extends Ar{};Lr=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Or(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-select")],Lr);const Pr=d`
2505
+ `}};$r.styles=[wr];let Sr=$r;zr([S({type:String,reflect:!0})],Sr.prototype,"label"),zr([S({type:String,attribute:!1})],Sr.prototype,"value"),zr([S({type:String,attribute:"default-value"})],Sr.prototype,"defaultValue"),zr([S({type:String,attribute:"help-text",reflect:!0})],Sr.prototype,"helpText"),zr([S({type:String,attribute:"error-message",reflect:!0})],Sr.prototype,"errorMessage"),zr([S({type:Boolean,reflect:!0})],Sr.prototype,"required"),zr([S({type:String,reflect:!0})],Sr.prototype,"size"),zr([A("#control")],Sr.prototype,"control");var Cr=Object.getOwnPropertyDescriptor;let Er=class extends Sr{};Er=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?Cr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-select")],Er);const Ar=d`
2506
2506
  :host {
2507
2507
  display: flex;
2508
2508
  flex-direction: row;
@@ -2537,7 +2537,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2537
2537
 
2538
2538
  --sds-stepper-step-step-gap: 0 var(--sds-spacing-3xs);
2539
2539
  }
2540
- `;var Dr=Object.defineProperty,Tr=Object.getOwnPropertyDescriptor,qr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Tr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Dr(e,s,a),a};let Mr=class extends(St(ft)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Mr.styles=[Pr],qr([S({type:String,reflect:!0})],Mr.prototype,"orientation",2),qr([O({selector:"sds-stepper-step",flatten:!0})],Mr.prototype,"steps",2),Mr=qr([L("sds-stepper")],Mr);const Rr=d`
2540
+ `;var Or=Object.defineProperty,Lr=Object.getOwnPropertyDescriptor,Pr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Lr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Or(e,s,a),a};let Dr=class extends(St(ft)){constructor(){super(),this.orientation="horizontal",this._setActiveStep=(t,e)=>{t.forEach((t,s)=>{t.active=s===e})},this._handleChildClick=t=>{t.preventDefault(),t.stopImmediatePropagation();const e=t.composedPath().find(t=>t instanceof Element&&"sds-stepper-step"===t.tagName.toLowerCase());if(!e)return;const s=this.steps.indexOf(e);-1!==s&&(this._setActiveStep(this.steps,s),this.dispatchSheriffEvent("change",{index:s}))},this.internals=this.attachInternals(),this.internals.role="tablist"}getActiveStep(){return this.steps.findIndex(t=>t.active)}connectedCallback(){super.connectedCallback(),this.hasAttribute("aria-label")||(this.ariaLabel="Steg")}goToStep(t){t<0||t>=this.steps.length||(this._setActiveStep(this.steps,t),this.dispatchSheriffEvent("change",{index:t}))}_applyStepNumbers(){this.steps.forEach((t,e)=>{t.style.setProperty("--sds-stepper-step-counter-content",`"${e+1}"`)})}firstUpdated(){const t=navigator.userAgent;if(/safari/i.test(t)&&!/chrome/i.test(t)&&!/crios/i.test(t)&&!/edgios/i.test(t)&&!/fxios/i.test(t)){this.shadowRoot.querySelector("slot").addEventListener("slotchange",()=>this._applyStepNumbers()),this._applyStepNumbers()}}render(){return Q`<slot @_sds-step-clicked="${this._handleChildClick}"></slot>`}};Dr.styles=[Ar],Pr([S({type:String,reflect:!0})],Dr.prototype,"orientation",2),Pr([O({selector:"sds-stepper-step",flatten:!0})],Dr.prototype,"steps",2),Dr=Pr([L("sds-stepper")],Dr);const Tr=d`
2541
2541
  :host {
2542
2542
  /* Sizing */
2543
2543
  --_sds-stepper-step-circle-size: var(--sds-stepper-circle-size, 28px);
@@ -2797,7 +2797,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2797
2797
  --_sds-stepper-step-counter-border-color: var(--sds-stepper-step-counter-border-color, var(--sds-color-neutral-border-strong));
2798
2798
  --_sds-stepper-step-counter-text-color: var(--sds-stepper-step-counter-text-color, var(--sds-color-neutral-text-default));
2799
2799
  }
2800
- `;var Vr=Object.defineProperty,Br=Object.getOwnPropertyDescriptor,jr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Br(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Vr(e,s,a),a};let Fr=class extends(St(ft)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2800
+ `;var qr=Object.defineProperty,Mr=Object.getOwnPropertyDescriptor,Rr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Mr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&qr(e,s,a),a};let Vr=class extends(St(ft)){constructor(){super(),this.complete=!1,this.interactive=!1,this.active=!1,this._handleClick=t=>{t.preventDefault(),t.stopImmediatePropagation(),this.dispatchSheriffEvent("_sds-step-clicked")},this._renderNonInteractiveStep=()=>Q`<div class="sds-stepper-step__step--static">
2801
2801
  <span class="sds-stepper-step__counter"></span>
2802
2802
  <div class="sds-stepper-step__label"><slot></slot></div>
2803
2803
  </div>`,this._renderInteractiveStep=()=>Q`<button type="button" role="tab" aria-selected="${this.active?"true":"false"}" id="button" class="sds-stepper-step__step" @click="${this._handleClick}">
@@ -2811,7 +2811,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2811
2811
  <span class="sds-stepper-step__divider sds-stepper-step__divider--before"></span>
2812
2812
  ${this._renderNonInteractiveStep()}
2813
2813
  <span class="sds-stepper-step__divider sds-stepper-step__divider--after"></span>
2814
- </div>`}};Fr.styles=[Rr],Fr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},jr([S({type:Boolean,reflect:!0})],Fr.prototype,"complete",2),jr([S({type:Boolean,reflect:!0})],Fr.prototype,"interactive",2),jr([S({type:Boolean,reflect:!0})],Fr.prototype,"active",2),Fr=jr([L("sds-stepper-step")],Fr);const Ir=d`
2814
+ </div>`}};Vr.styles=[Tr],Vr.shadowRootOptions={...ft.shadowRootOptions,delegatesFocus:!0},Rr([S({type:Boolean,reflect:!0})],Vr.prototype,"complete",2),Rr([S({type:Boolean,reflect:!0})],Vr.prototype,"interactive",2),Rr([S({type:Boolean,reflect:!0})],Vr.prototype,"active",2),Vr=Rr([L("sds-stepper-step")],Vr);const Br=d`
2815
2815
  :host {
2816
2816
  --_sds-switch-background-color: var(--sds-switch-background-color, var(--sds-color-surface-default, var(--sds-color-neutral-surface-default)));
2817
2817
  --_sds-switch-text-color: var(--sds-switch-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -2961,7 +2961,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2961
2961
  .sds-switch__input:checked::before {
2962
2962
  --_sds-switch-button-position: calc(var(--_sds-switch-width) - var(--_sds-switch-button-size) - var(--_sds-switch-button-gap) - var(--_sds-switch-border-width));
2963
2963
  }
2964
- `;var Hr=Object.defineProperty,Nr=Object.getOwnPropertyDescriptor,Ur=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Nr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Hr(e,s,a),a};let Wr=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=Q`<input
2964
+ `;var jr=Object.defineProperty,Fr=Object.getOwnPropertyDescriptor,Ir=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Fr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&jr(e,s,a),a};let Hr=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.label="",this.hideLabel=!1,this.reverse=!1,this.checked=!1,this.size="md",this._initialChecked=!1,this._handleChange=t=>{if(t.stopImmediatePropagation(),this.disabled||this.readOnly)return t.target.checked=this.checked,void t.preventDefault();const e=t.target;this.checked=e.checked,this.internals.setFormValue(this.checked?"on":"off"),this.dispatchSheriffEvent("change")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("blur")},this.getIconSize=()=>{switch(this.size){case"sm":case"md":case"lg":return this.size;case"l":return"lg";case"s":return"sm"}}}connectedCallback(){super.connectedCallback(),this._initialChecked=this.checked,this.internals.setFormValue(this.checked?"on":"off")}updated(t){super.updated(t),t.has("checked")&&(this.control.checked=this.checked,this.internals.setFormValue(this.checked?"on":"off"))}formResetCallback(){this.checked=this._initialChecked,this.control.checked=this._initialChecked,this.internals.setFormValue(this._initialChecked?"on":"off")}formStateRestoreCallback(t){this.checked=t}get value(){return this.checked?"on":"off"}render(){const t={"sds-switch__label":!0,"sds-switch__label--hidden":this.hideLabel},e=Q`<input
2965
2965
  class="sds-switch__input"
2966
2966
  id="control"
2967
2967
  type="checkbox"
@@ -2974,7 +2974,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
2974
2974
  @change="${this._handleChange}"
2975
2975
  @focus="${this._handleFocus}"
2976
2976
  @blur="${this._handleBlur}"
2977
- />`,s=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:tt,o=Q`<label class="${Zt(t)}" for="control">${s}${this.label}</label>`;return Q`<div class="${Zt({"sds-switch":!0})}">${this.reverse?[o,e]:[e,o]}</div>`}};Wr.styles=[Ir],Ur([S({type:String,reflect:!0})],Wr.prototype,"label",2),Ur([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Wr.prototype,"hideLabel",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"reverse",2),Ur([S({type:Boolean,reflect:!0})],Wr.prototype,"checked",2),Ur([S({type:String,reflect:!0})],Wr.prototype,"size",2),Ur([A("#control")],Wr.prototype,"control",2),Wr=Ur([L("sds-switch")],Wr);const Kr=d`
2977
+ />`,s=this.readOnly?Q`<sds-icon name="lock-material-filled" size="${this.getIconSize()}"></sds-icon>`:tt,o=Q`<label class="${Zt(t)}" for="control">${s}${this.label}</label>`;return Q`<div class="${Zt({"sds-switch":!0})}">${this.reverse?[o,e]:[e,o]}</div>`}};Hr.styles=[Br],Ir([S({type:String,reflect:!0})],Hr.prototype,"label",2),Ir([S({type:Boolean,reflect:!0,attribute:"hide-label"})],Hr.prototype,"hideLabel",2),Ir([S({type:Boolean,reflect:!0})],Hr.prototype,"reverse",2),Ir([S({type:Boolean,reflect:!0})],Hr.prototype,"checked",2),Ir([S({type:String,reflect:!0})],Hr.prototype,"size",2),Ir([A("#control")],Hr.prototype,"control",2),Hr=Ir([L("sds-switch")],Hr);const Nr=d`
2978
2978
  :host {
2979
2979
  --_sds-tag-background-color: var(--sds-tag-background-color, var(--sds-color-surface-tinted, var(--sds-color-neutral-surface-tinted)));
2980
2980
  --_sds-tag-text-color: var(--sds-tag-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3035,9 +3035,9 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3035
3035
  --_sds-tag-font-size: var(--sds-tag-font-size, var(--sds-components-font-size-content-lg));
3036
3036
  --_sds-tag-line-height: var(--sds-tag-line-height, var(--sds-components-line-height-squeezed-lg));
3037
3037
  }
3038
- `;var Gr=Object.defineProperty,Yr=Object.getOwnPropertyDescriptor,Xr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Yr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Gr(e,s,a),a};let Zr=class extends ft{constructor(){super(...arguments),this.size="md"}render(){return Q`<span class="${Zt({"sds-tag":!0})}">
3038
+ `;var Ur=Object.defineProperty,Wr=Object.getOwnPropertyDescriptor,Kr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Wr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Ur(e,s,a),a};let Gr=class extends ft{constructor(){super(...arguments),this.size="md"}render(){return Q`<span class="${Zt({"sds-tag":!0})}">
3039
3039
  <slot></slot>
3040
- </span>`}};Zr.styles=[Kr],Xr([S({type:String,reflect:!0})],Zr.prototype,"size",2),Zr=Xr([L("sds-tag")],Zr);const Qr=d`
3040
+ </span>`}};Gr.styles=[Nr],Kr([S({type:String,reflect:!0})],Gr.prototype,"size",2),Gr=Kr([L("sds-tag")],Gr);const Yr=d`
3041
3041
  ${i('[data-tooltip]{--ds-tooltip:"";--_ds-data-tooltip:var(--ds-tooltip)}:host{--_ds-floating:top;--_ds-floating-arrow-size:0;--_ds-floating-arrow-visibility:inherit;animation:ds-fade-in .15s ease-in-out forwards;inset:0 auto auto 0;margin:0;overflow:visible;position:absolute}:host:before{background:inherit;border:inherit;border-left-color:transparent;border-top-color:transparent;box-sizing:border-box;content:"";height:var(--_ds-floating-arrow-size);left:var(--_ds-floating-arrow-x,50%);position:absolute;rotate:45deg;top:var(--_ds-floating-arrow-y,100%);translate:-50% -50%;visibility:var(--_ds-floating-arrow-visibility);width:var(--_ds-floating-arrow-size)}:host[data-overscroll=contain]{--_ds-floating-overscroll:contain;overflow:auto;overscroll-behavior:contain}:host{--_ds-floating:var(--dsc-tooltip-placement);--_ds-floating-arrow-size:var(--dsc-tooltip-arrow-size);--dsc-tooltip-background:var(--ds-color-neutral-text-default);--dsc-tooltip-color:var(--ds-color-neutral-background-default);--dsc-tooltip-border-radius:var(--ds-border-radius-default);--dsc-tooltip-padding:var(--ds-size-1) var(--ds-size-2);--dsc-tooltip-arrow-size:var(--ds-size-2);--dsc-tooltip-transition-duration:0.2s;--dsc-tooltip-transition-delay:150ms;--dsc-tooltip-placement:top;background:var(--dsc-tooltip-background);border:0;border-radius:var(--dsc-tooltip-border-radius);box-sizing:border-box;color:var(--dsc-tooltip-color);line-height:var(--ds-line-height-sm);padding:var(--dsc-tooltip-padding);view-transition-name:ds-tooltip;&[data-floating|=top]:before{rotate:45deg;top:100%}&[data-floating|=right]:before{left:0;rotate:135deg}&[data-floating|=bottom]:before{rotate:-135deg;top:0}&[data-floating|=left]:before{left:100%;rotate:-45deg}}:host:after{box-sizing:border-box;content:"";height:var(--_dsc-tooltip-safearea-height,0);left:var(--_ds-floating-arrow-x,50%);position:absolute;top:var(--_ds-floating-arrow-y,100%);translate:var(--_dsc-tooltip-safearea-translate);width:var(--_dsc-tooltip-safearea-width,0)}:host[data-floating=bottom]:after,:host[data-floating=top]:after{height:var(--dsc-tooltip-arrow-size);left:0;top:100%;width:100%}:host[data-floating=left]:after,:host[data-floating=right]:after{height:100%;left:100%;top:0;width:var(--dsc-tooltip-arrow-size)}:host[data-floating=bottom]:after{top:calc(var(--dsc-tooltip-arrow-size)*-1)}:host[data-floating=right]:after{left:calc(var(--dsc-tooltip-arrow-size)*-1)}:host:not([popover]){display:none}@media (forced-colors:active){:host{background:CanvasText}}')}
3042
3042
 
3043
3043
  :host {
@@ -3120,7 +3120,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3120
3120
  border: 1px solid CanvasText;
3121
3121
  }
3122
3122
  }
3123
- `;var Jr=Object.defineProperty,ta=Object.getOwnPropertyDescriptor,ea=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ta(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Jr(e,s,a),a};let sa=class extends(St(ft)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return Q`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};sa.styles=[Qr],ea([S({type:String,reflect:!0})],sa.prototype,"placement",2),sa=ea([L("sds-tooltip")],sa);const oa=d`
3123
+ `;var Xr=Object.defineProperty,Zr=Object.getOwnPropertyDescriptor,Qr=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?Zr(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&Xr(e,s,a),a};let Jr=class extends(St(ft)){constructor(){super(...arguments),this.placement="top",this.triggers=[],this.cleanups=[],this.onSelfMouseEnter=()=>{clearTimeout(this.hoverTimeout)},this.onSelfMouseLeave=()=>this.hide(),this.onKeyDown=t=>{"Escape"===t.key&&this.hide()}}connectedCallback(){super.connectedCallback(),this.setAttribute("role","tooltip"),this.setAttribute("popover","manual"),this.setAttribute("aria-hidden","true"),this.dataset.placement=this.placement,this.bindTriggers(),requestAnimationFrame(()=>this.syncTriggerLabels())}updated(t){t.has("placement")&&(this.dataset.placement=this.placement)}disconnectedCallback(){super.disconnectedCallback(),clearTimeout(this.hoverTimeout),document.removeEventListener("keydown",this.onKeyDown);for(const t of this.cleanups)t();this.cleanups=[],this.triggers=[],this.activeTrigger=void 0}render(){return Q`<slot @slotchange=${this.syncTriggerLabels}></slot>`}syncTriggerLabels(){const t=this.textContent?.trim()??"";t&&this.triggers.map(e=>{const s=e.shadowRoot?.querySelector("button, a")??e;this.cleanups.push(()=>s.removeAttribute("aria-label")),s.setAttribute("aria-label",t)})}bindTriggers(){if(this.id){this.triggers=[...document.querySelectorAll("[aria-describedby]")].filter(t=>{const e=t.getAttribute("aria-describedby");return e?.split(/\s+/).includes(this.id)??!1});for(const t of this.triggers){const e=()=>this.show(t),s=()=>this.scheduleHide(),o=()=>this.show(t),r=()=>this.hide();t.addEventListener("mouseenter",e),t.addEventListener("mouseleave",s),t.addEventListener("focusin",o),t.addEventListener("focusout",r),this.cleanups.push(()=>{t.removeEventListener("mouseenter",e),t.removeEventListener("mouseleave",s),t.removeEventListener("focusin",o),t.removeEventListener("focusout",r)})}this.addEventListener("mouseenter",this.onSelfMouseEnter),this.addEventListener("mouseleave",this.onSelfMouseLeave),this.cleanups.push(()=>{this.removeEventListener("mouseenter",this.onSelfMouseEnter),this.removeEventListener("mouseleave",this.onSelfMouseLeave)})}}show(t){clearTimeout(this.hoverTimeout),this.matches(":popover-open")||this.showPopover(),this.activeTrigger!==t&&(this.activeTrigger=t,this.dispatchSheriffEvent("toggle",t)),document.addEventListener("keydown",this.onKeyDown)}hide(){clearTimeout(this.hoverTimeout);try{this.hidePopover()}catch{}this.activeTrigger=void 0,document.removeEventListener("keydown",this.onKeyDown)}scheduleHide(){clearTimeout(this.hoverTimeout),this.hoverTimeout=setTimeout(()=>this.hide(),200)}};Jr.styles=[Yr],Qr([S({type:String,reflect:!0})],Jr.prototype,"placement",2),Jr=Qr([L("sds-tooltip")],Jr);const ta=d`
3124
3124
  :host {
3125
3125
  --_sds-text-font-family: var(--sds-text-font-family, var(--sds-typography-font-family-roboto));
3126
3126
  --_sds-text-font-size: var(--sds-text-font-size, var(--sds-typography-body-md-mobile-font-size));
@@ -3534,7 +3534,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3534
3534
  --_sds-text-line-height: var(--sds-text-line-height, var(--sds-typography-leadtext-xl-strong-tall-desktop-line-height));
3535
3535
  }
3536
3536
  }
3537
- `;var ra=Object.defineProperty,aa=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ra(e,s,a),a};const ia=class extends ft{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};ia.styles=[oa];let da=ia;aa([S({type:String,reflect:!0})],da.prototype,"size"),aa([S({type:Boolean,reflect:!0})],da.prototype,"strong"),aa([S({type:Boolean,reflect:!0})],da.prototype,"tall");var na=Object.getOwnPropertyDescriptor;let la=class extends da{};la=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?na(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-text")],la);const ca=d`
3537
+ `;var ea=Object.defineProperty,sa=(t,e,s,o)=>{for(var r,a=void 0,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(e,s,a)||a);return a&&ea(e,s,a),a};const oa=class extends ft{constructor(){super(...arguments),this.size="md",this.strong=!1,this.tall=!1}render(){return Q`<p><slot></slot></p>`}};oa.styles=[ta];let ra=oa;sa([S({type:String,reflect:!0})],ra.prototype,"size"),sa([S({type:Boolean,reflect:!0})],ra.prototype,"strong"),sa([S({type:Boolean,reflect:!0})],ra.prototype,"tall");var aa=Object.getOwnPropertyDescriptor;let ia=class extends ra{};ia=((t,e,s,o)=>{for(var r,a=o>1?void 0:o?aa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=r(a)||a);return a})([L("sds-text")],ia);const da=d`
3538
3538
  :host {
3539
3539
  --_sds-textfield-background-color: var(--sds-textfield-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3540
3540
  --_sds-textfield-text-color: var(--sds-textfield-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3705,7 +3705,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3705
3705
  --sds-icon-size: var(--sds-textfield-icon-size, var(--sds-components-icon-lg));
3706
3706
  }
3707
3707
  }
3708
- `;var ha=Object.defineProperty,pa=Object.getOwnPropertyDescriptor,ga=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?pa(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ha(e,s,a),a};let va=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){const t=this.form;t?.requestSubmit?t.requestSubmit():t?.submit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3708
+ `;var na=Object.defineProperty,la=Object.getOwnPropertyDescriptor,ca=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?la(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&na(e,s,a),a};let ha=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.type="text",this.required=!1,this.size="md",this.hasIcon=!1,this._defaultValue=null,this.handleSlotChange=t=>{const e=t.target;this.hasIcon=e.assignedNodes({flatten:!0}).length>0},this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLInputElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")},this._handleKeyDown=t=>{t.stopImmediatePropagation();if(this.dispatchKeyboardEvent("keydown",t)&&"Enter"===t.key){const t=this.form;t?.requestSubmit?t.requestSubmit():t?.submit()}}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t={"sds-textfield":!0,"sds-textfield--error":Boolean(this.errorMessage),"sds-textfield--has-icon":this.hasIcon},e=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3709
3709
  <div class="${Zt(t)}">
3710
3710
  ${this.label?Q`<label for="sds-textfield" class="sds-textfield__label">${this.readOnly?Q`<sds-icon name="lock-material-filled" size="m"></sds-icon>`:tt}</sds-icon>${this.label}</label>`:tt}
3711
3711
  ${this.helpText?Q`<p id="help-text" class="sds-textfield__help-text">${this.helpText}</p>`:tt}
@@ -3738,7 +3738,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3738
3738
  </div>
3739
3739
  ${this.errorMessage?Q`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt}
3740
3740
  </div>
3741
- `}};va.styles=[ca],ga([S({type:String,reflect:!0})],va.prototype,"type",2),ga([S({type:String})],va.prototype,"value",2),ga([S({type:String,reflect:!0})],va.prototype,"label",2),ga([S({type:String,reflect:!0})],va.prototype,"placeholder",2),ga([S({type:String,attribute:"help-text",reflect:!0})],va.prototype,"helpText",2),ga([S({type:String,attribute:"error-message",reflect:!0})],va.prototype,"errorMessage",2),ga([S({type:String,reflect:!0})],va.prototype,"autocomplete",2),ga([S({type:Boolean,reflect:!0})],va.prototype,"required",2),ga([S({type:String,reflect:!0})],va.prototype,"pattern",2),ga([S({type:Number,reflect:!0})],va.prototype,"minlength",2),ga([S({type:Number,reflect:!0})],va.prototype,"maxlength",2),ga([S({type:String,reflect:!0})],va.prototype,"size",2),ga([C()],va.prototype,"hasIcon",2),ga([A("#sds-textfield")],va.prototype,"control",2),va=ga([L("sds-textfield")],va);const ua=d`
3741
+ `}};ha.styles=[da],ca([S({type:String,reflect:!0})],ha.prototype,"type",2),ca([S({type:String})],ha.prototype,"value",2),ca([S({type:String,reflect:!0})],ha.prototype,"label",2),ca([S({type:String,reflect:!0})],ha.prototype,"placeholder",2),ca([S({type:String,attribute:"help-text",reflect:!0})],ha.prototype,"helpText",2),ca([S({type:String,attribute:"error-message",reflect:!0})],ha.prototype,"errorMessage",2),ca([S({type:String,reflect:!0})],ha.prototype,"autocomplete",2),ca([S({type:Boolean,reflect:!0})],ha.prototype,"required",2),ca([S({type:String,reflect:!0})],ha.prototype,"pattern",2),ca([S({type:Number,reflect:!0})],ha.prototype,"minlength",2),ca([S({type:Number,reflect:!0})],ha.prototype,"maxlength",2),ca([S({type:String,reflect:!0})],ha.prototype,"size",2),ca([C()],ha.prototype,"hasIcon",2),ca([A("#sds-textfield")],ha.prototype,"control",2),ha=ca([L("sds-textfield")],ha);const pa=d`
3742
3742
  :host {
3743
3743
  --_sds-textarea-background-color: var(--sds-textarea-background-color, var(--sds-color-background-default, var(--sds-color-neutral-background-default)));
3744
3744
  --_sds-textarea-text-color: var(--sds-textarea-text-color, var(--sds-color-text-default, var(--sds-color-neutral-text-default)));
@@ -3925,7 +3925,7 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3925
3925
  --_sds-textarea-counter-font-size: var(--sds-textarea-counter-font-size, var(--sds-components-font-size-content-lg));
3926
3926
  --_sds-textarea-counter-line-height: var(--sds-textarea-counter-line-height, var(--sds-components-line-height-squeezed-lg));
3927
3927
  }
3928
- `;var fa=Object.defineProperty,ba=Object.getOwnPropertyDescriptor,ma=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?ba(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&fa(e,s,a),a};let _a=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return tt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3928
+ `;var ga=Object.defineProperty,va=Object.getOwnPropertyDescriptor,ua=(t,e,s,o)=>{for(var r,a=o>1?void 0:o?va(e,s):e,i=t.length-1;i>=0;i--)(r=t[i])&&(a=(o?r(e,s,a):r(a))||a);return o&&a&&ga(e,s,a),a};let fa=class extends(Jt(St(se(ft)))){constructor(){super(...arguments),this.required=!1,this.size="md",this._defaultValue=null,this._handleInputChange=t=>{t.stopImmediatePropagation(),!this.disabled&&t.target instanceof HTMLTextAreaElement&&(this.value=t.target.value,this.internals.setFormValue(""===this.value?null:this.value),this.updateValidity(),this.dispatchSheriffEvent(t.type))},this._handleSelect=t=>{t.stopImmediatePropagation(),this.disabled||this.dispatchSheriffEvent("select")},this._handleFocus=t=>{t.stopImmediatePropagation(),this.dispatchSheriffEvent("focus")},this._handleBlur=t=>{t.stopImmediatePropagation(),this.updateValidity(),this.dispatchSheriffEvent("blur")}}connectedCallback(){super.connectedCallback(),this._defaultValue=this.value??null,this.internals.setFormValue(this._defaultValue)}updated(t){super.updated(t),t.has("value")&&(this.internals.setFormValue(this.value??""),this.control&&(this.control.value=this.value??""))}updateValidity(){this.control.checkValidity()?this.internals.setValidity({}):this.internals.setValidity({customError:!0},this.control.validationMessage,this.control)}hasTypedTooManyCharacters(){if(!this.counter)return!1;return(this.value?.length||0)>this.counter}renderCharacterCounter(){if(void 0===this.counter)return tt;const t=this.value?.length||0;return this.hasTypedTooManyCharacters()?Q`<sds-alert variant="secondary" data-palette="danger"
3929
3929
  ><p class="sds-textarea__character-counter" slot="message">Du har ${t-this.counter} tegn for mye</p></sds-alert
3930
3930
  >`:Q`<p class="sds-textarea__character-counter">Du har ${this.counter-t} tegn igjen</p>`}formResetCallback(){this.internals.setFormValue(this._defaultValue);const t=this._defaultValue??"";this.control.value=t,this.value=t,this.updateValidity()}select(){this.disabled||this.control.select()}type(){return"textarea"}get selectionStart(){return this.control?this.control.selectionStart:null}set selectionStart(t){this.control&&null!==t&&(this.control.selectionStart=t)}get selectionEnd(){return this.control?this.control.selectionEnd:null}set selectionEnd(t){this.control&&null!==t&&(this.control.selectionEnd=t)}setSelectionRange(t,e,s){this.control&&this.control.setSelectionRange(t,e,s)}checkValidity(){return this.control.checkValidity()}reportValidity(){return this.control.reportValidity()}setCustomValidity(t){this.control.setCustomValidity(t),this.updateValidity()}render(){const t=Boolean(this.errorMessage||this.hasTypedTooManyCharacters()),e={"sds-textarea":!0,"sds-textarea--error":t},s=[this.errorMessage?"error-message":null,this.helpText?"help-text":null].filter(Boolean).join(" ")||void 0;return Q`
3931
3931
  <div class="${Zt(e)}">
@@ -3960,4 +3960,4 @@ var t;const e=globalThis,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.native
3960
3960
  </div>
3961
3961
  ${this.errorMessage?Q`<sds-alert id="error-message" variant="secondary" data-palette="danger"><p slot="message">${this.errorMessage}</p></sds-alert>`:tt} ${this.renderCharacterCounter()}
3962
3962
  </div>
3963
- `}};_a.styles=[ua],ma([S({type:String})],_a.prototype,"value",2),ma([S({type:String,reflect:!0})],_a.prototype,"label",2),ma([S({type:String,reflect:!0})],_a.prototype,"placeholder",2),ma([S({type:String,attribute:"help-text",reflect:!0})],_a.prototype,"helpText",2),ma([S({type:String,attribute:"error-message",reflect:!0})],_a.prototype,"errorMessage",2),ma([S({type:String,reflect:!0})],_a.prototype,"autocomplete",2),ma([S({type:Boolean,reflect:!0})],_a.prototype,"required",2),ma([S({type:Number,reflect:!0})],_a.prototype,"rows",2),ma([S({type:Number,reflect:!0})],_a.prototype,"cols",2),ma([S({type:String,reflect:!0})],_a.prototype,"wrap",2),ma([S({type:Number,reflect:!0})],_a.prototype,"minlength",2),ma([S({type:Number,reflect:!0})],_a.prototype,"maxlength",2),ma([S({type:Number,reflect:!0})],_a.prototype,"counter",2),ma([S({type:String,reflect:!0})],_a.prototype,"size",2),ma([A("#sds-textarea")],_a.prototype,"control",2),_a=ma([L("sds-textarea")],_a);export{ye as SDSAlert,_e as SDSButton,Ce as SDSCard,Pe as SDSCheckbox,Ve as SDSCheckboxGroup,He as SDSChip,Ge as SDSDetails,Je as SDSDetailsGroup,le as SDSDialog,is as SDSHeading,Xt as SDSIcon,hs as SDSLoader,ms as SDSNotification,gr as SDSPopover,ks as SDSProcess,Es as SDSProcessStep,mr as SDSRadio,zr as SDSRadioGroup,Lr as SDSSelect,Mr as SDSStepper,Fr as SDSStepperStep,Wr as SDSSwitch,Zr as SDSTag,la as SDSText,_a as SDSTextArea,va as SDSTextField,sa as SDSTooltip};
3963
+ `}};fa.styles=[pa],ua([S({type:String})],fa.prototype,"value",2),ua([S({type:String,reflect:!0})],fa.prototype,"label",2),ua([S({type:String,reflect:!0})],fa.prototype,"placeholder",2),ua([S({type:String,attribute:"help-text",reflect:!0})],fa.prototype,"helpText",2),ua([S({type:String,attribute:"error-message",reflect:!0})],fa.prototype,"errorMessage",2),ua([S({type:String,reflect:!0})],fa.prototype,"autocomplete",2),ua([S({type:Boolean,reflect:!0})],fa.prototype,"required",2),ua([S({type:Number,reflect:!0})],fa.prototype,"rows",2),ua([S({type:Number,reflect:!0})],fa.prototype,"cols",2),ua([S({type:String,reflect:!0})],fa.prototype,"wrap",2),ua([S({type:Number,reflect:!0})],fa.prototype,"minlength",2),ua([S({type:Number,reflect:!0})],fa.prototype,"maxlength",2),ua([S({type:Number,reflect:!0})],fa.prototype,"counter",2),ua([S({type:String,reflect:!0})],fa.prototype,"size",2),ua([A("#sds-textarea")],fa.prototype,"control",2),fa=ua([L("sds-textarea")],fa);export{ye as SDSAlert,_e as SDSButton,Ce as SDSCard,Pe as SDSCheckbox,Ve as SDSCheckboxGroup,He as SDSChip,Ge as SDSDetails,Je as SDSDetailsGroup,le as SDSDialog,is as SDSHeading,Xt as SDSIcon,hs as SDSLoader,ms as SDSNotification,cr as SDSPopover,ks as SDSProcess,Es as SDSProcessStep,ur as SDSRadio,yr as SDSRadioGroup,Er as SDSSelect,Dr as SDSStepper,Vr as SDSStepperStep,Hr as SDSSwitch,Gr as SDSTag,ia as SDSText,fa as SDSTextArea,ha as SDSTextField,Jr as SDSTooltip};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@politiet/sheriff-web-components",
3
- "version": "2.7.1",
3
+ "version": "2.7.2",
4
4
  "description": "Sheriff Design System Web Components Library",
5
5
  "author": "Politiets IT-enhet",
6
6
  "license": "ISC",
package/web-types.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "http://json.schemastore.org/web-types",
3
3
  "name": "@politiet/sheriff-web-components",
4
- "version": "2.7.1",
4
+ "version": "2.7.2",
5
5
  "framework": "web-components",
6
6
  "description-markup": "markdown",
7
7
  "contributions": {
@@ -494,10 +494,8 @@
494
494
  "required": false,
495
495
  "priority": "normal",
496
496
  "value": {
497
- "type": [
498
- "string",
499
- "undefined"
500
- ],
497
+ "kind": "plain",
498
+ "type": "\"hide\" | \"show\" | \"toggle\" | undefined",
501
499
  "required": true
502
500
  },
503
501
  "source": {
@@ -918,10 +916,8 @@
918
916
  "required": false,
919
917
  "priority": "normal",
920
918
  "value": {
921
- "type": [
922
- "string",
923
- "undefined"
924
- ],
919
+ "kind": "plain",
920
+ "type": "\"hide\" | \"show\" | \"toggle\" | undefined",
925
921
  "required": true
926
922
  },
927
923
  "source": {