vendor: 4,189 bytes, lines 1-11
1/** 2 * @license 3 * Copyright 2019 Google LLC 4 * SPDX-License-Identifier: BSD-3-Clause 5 */ 6const e=globalThis,t=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,r=Symbol(),o=new WeakMap;let i=class{constructor(e,t,o){if(this._$cssResult$=!0,o!==r)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o;const r=this.t;if(t&&void 0===e){const t=void 0!==r&&1===r.length;t&&(e=o.get(r)),void 0===e&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),t&&o.set(r,e))}return e}toString(){return this.cssText}};const n=e=>new i("string"==typeof e?e:e+"",void 0,r),a=function(e){for(var t=arguments.length,o=new Array(t>1?t-1:0),n=1;n<t;n++)o[n-1]=arguments[n];const a=1===e.length?e[0]:o.reduce((t,r,o)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if("number"==typeof e)return e;throw Error("Value passed to 'css' function must be a 'css' function result: "+e+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(r)+e[o+1],e[0]);return new i(a,e,r)},s=t?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return n(t)})(e):e,{is:l,defineProperty:d,getOwnPropertyDescriptor:c,getOwnPropertyNames:h,getOwnPropertySymbols:p,getPrototypeOf:u}=Object,g=globalThis,b=g.trustedTypes,m=b?b.emptyScript:"",v=g.reactiveElementPolyfillSupport,f=(e,t)=>e,w={toAttribute(e,t){switch(t){case Boolean:e=e?m:null;break;case Object:case Array:e=null==e?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=null!==e;break;case Number:r=null===e?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch(e){r=null}}return r}},y=(e,t)=>!l(e,t),x={attribute:!0,type:String,converter:w,reflect:!1,useDefault:!1,hasChanged:y}; 7/** 8 * @license 9 * Copyright 2017 Google LLC 10 * SPDX-License-Identifier: BSD-3-Clause 11 */Symbol.metadata??=Symbol("metadata"),g.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t){if(void 0===t&&(t=x),t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),o=this.getPropertyDescriptor(e,r,t);void 0!==o&&d(this.prototype,e,o)}}static getPropertyDescriptor(e,t,r){const{get:o,set:i}=c(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:o,set(t){const n=o?.call(this);i?.call(this,t),this.requestUpdate(e,n,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??x}static _$Ei(){if(this.hasOwnProperty(f("elementProperties")))return;const e=u(this);e.finalize(),void 0!==e.l&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(f("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(f("properties"))){const e=this.properties,t=[...h(e),...p(e)];for(const r of t)this.createProperty(r,e[r])}const e=this[Symbol.metadata];if(null!==e){const t=litPropertyMetadata.get(e);if(void 0!==t)for(const[e,r]of t)this.elementProperties.set(e,r)}this._$Eh=new Map;for(const[e,t]of this.elementProperties){const r=this._$Eu(e,t);void 0!==r&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const e of r)t.unshift(s(e))}else void 0!==e&&t.push(s(e));return t}static _$Eu(e,t){const r=t.attribute;return!1===r?void 0:"string"==typeof r?r:"string"==typeof e?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),void 0!==this.renderRoot&&this.isConnected&&e.hostConnected?.()}
vendor: 4,112 bytes, lines 11-17
11removeController(e){this._$EO?.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){const r=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((r,o)=>{if(t)r.adoptedStyleSheets=o.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const t of o){const o=document.createElement("style"),i=e.litNonce;void 0!==i&&o.setAttribute("nonce",i),o.textContent=t.cssText,r.appendChild(o)}})(r,this.constructor.elementStyles),r}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$ET(e,t){const r=this.constructor.elementProperties.get(e),o=this.constructor._$Eu(e,r);if(void 0!==o&&!0===r.reflect){const i=(void 0!==r.converter?.toAttribute?r.converter:w).toAttribute(t,r.type);this._$Em=e,null==i?this.removeAttribute(o):this.setAttribute(o,i),this._$Em=null}}_$AK(e,t){const r=this.constructor,o=r._$Eh.get(e);if(void 0!==o&&this._$Em!==o){const e=r.getPropertyOptions(o),i="function"==typeof e.converter?{fromAttribute:e.converter}:void 0!==e.converter?.fromAttribute?e.converter:w;this._$Em=o;const n=i.fromAttribute(t,e.type);this[o]=n??this._$Ej?.get(o)??n,this._$Em=null}}requestUpdate(e,t,r,o,i){if(void 0===o&&(o=!1),void 0!==e){const n=this.constructor;if(!1===o&&(i=this[e]),r??=n.getPropertyOptions(e),!((r.hasChanged??y)(i,t)||r.useDefault&&r.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(n._$Eu(e,r))))return;this.C(e,t,r)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,r,o){let{useDefault:i,reflect:n,wrapped:a}=r;i&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,o??t??this[e]),!0!==a||void 0!==o)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),!0===n&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const e=this.scheduleUpdate();return null!=e&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}const e=this.constructor.elementProperties;if(e.size>0)for(const[t,r]of e){const{wrapped:e}=r,o=this[t];!0!==e||this._$AL.has(t)||void 0===o||this.C(t,void 0,r,o)}}let e=!1;const t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[f("elementProperties")]=new Map,k[f("finalized")]=new Map,v?.({ReactiveElement:k}),(g.reactiveElementVersions??=[]).push("2.1.2"); 12/** 13 * @license 14 * Copyright 2017 Google LLC 15 * SPDX-License-Identifier: BSD-3-Clause 16 */ 17const _=globalThis,$=e=>e,S=_.trustedTypes,E=S?S.createPolicy("lit-html",{createHTML:e=>e}):void 0,C="$lit$",O=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+O,D=`<${z}>`,A=document,P=()=>A.createComment(""),T=e=>null===e||"object"!=typeof e&&"function"!=typeof e,M=Array.isArray,V="[ \t\n\f\r]",L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,R=/>/g,N=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),I=/'/g,F=/"/g,q=/^(?:script|style|textarea|title)$/i,B=(e=>function(t){for(var r=arguments.length,o=new Array(r>1?r-1:0),i=1;i<r;i++)o[i-1]=arguments[i];return{_$litType$:e,strings:t,values:o}}
vendor: 6,911 bytes, lines 17-22
17)(1),H=Symbol.for("lit-noChange"),W=Symbol.for("lit-nothing"),U=new WeakMap,J=A.createTreeWalker(A,129);function Y(e,t){if(!M(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==E?E.createHTML(t):t}class K{constructor({strings:e,_$litType$:t},r){let o;this.parts=[];let i=0,n=0;const a=e.length-1,s=this.parts,[l,d]=((e,t)=>{const r=e.length-1,o=[];let i,n=2===t?"<svg>":3===t?"<math>":"",a=L;for(let t=0;t<r;t++){const r=e[t];let s,l,d=-1,c=0;for(;c<r.length&&(a.lastIndex=c,l=a.exec(r),null!==l);)c=a.lastIndex,a===L?"!--"===l[1]?a=j:void 0!==l[1]?a=R:void 0!==l[2]?(q.test(l[2])&&(i=RegExp("</"+l[2],"g")),a=N):void 0!==l[3]&&(a=N):a===N?">"===l[0]?(a=i??L,d=-1):void 0===l[1]?d=-2:(d=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?N:'"'===l[3]?F:I):a===F||a===I?a=N:a===j||a===R?a=L:(a=N,i=void 0);const h=a===N&&e[t+1].startsWith("/>")?" ":"";n+=a===L?r+D:d>=0?(o.push(s),r.slice(0,d)+C+r.slice(d)+O+h):r+O+(-2===d?t:h)}return[Y(e,n+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),o]})(e,t);if(this.el=K.createElement(l,r),J.currentNode=this.el.content,2===t||3===t){const e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(o=J.nextNode())&&s.length<a;){if(1===o.nodeType){if(o.hasAttributes())for(const e of o.getAttributeNames())if(e.endsWith(C)){const t=d[n++],r=o.getAttribute(e).split(O),a=/([.?@])?(.*)/.exec(t);s.push({type:1,index:i,name:a[2],strings:r,ctor:"."===a[1]?ee:"?"===a[1]?te:"@"===a[1]?re:Z}),o.removeAttribute(e)}else e.startsWith(O)&&(s.push({type:6,index:i}),o.removeAttribute(e));if(q.test(o.tagName)){const e=o.textContent.split(O),t=e.length-1;if(t>0){o.textContent=S?S.emptyScript:"";for(let r=0;r<t;r++)o.append(e[r],P()),J.nextNode(),s.push({type:2,index:++i});o.append(e[t],P())}}}else if(8===o.nodeType)if(o.data===z)s.push({type:2,index:i});else{let e=-1;for(;-1!==(e=o.data.indexOf(O,e+1));)s.push({type:7,index:i}),e+=O.length-1}i++}}static createElement(e,t){const r=A.createElement("template");return r.innerHTML=e,r}}function X(e,t,r,o){if(void 0===r&&(r=e),t===H)return t;let i=void 0!==o?r._$Co?.[o]:r._$Cl;const n=T(t)?void 0:t._$litDirective$;return i?.constructor!==n&&(i?._$AO?.(!1),void 0===n?i=void 0:(i=new n(e),i._$AT(e,r,o)),void 0!==o?(r._$Co??=[])[o]=i:r._$Cl=i),void 0!==i&&(t=X(e,i._$AS(e,t.values),i,o)),t}class G{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:r}=this._$AD,o=(e?.creationScope??A).importNode(t,!0);J.currentNode=o;let i=J.nextNode(),n=0,a=0,s=r[0];for(;void 0!==s;){if(n===s.index){let t;2===s.type?t=new Q(i,i.nextSibling,this,e):1===s.type?t=new s.ctor(i,s.name,s.strings,this,e):6===s.type&&(t=new oe(i,this,e)),this._$AV.push(t),s=r[++a]}n!==s?.index&&(i=J.nextNode(),n++)}return J.currentNode=A,o}p(e){let t=0;for(const r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,o){this.type=2,this._$AH=W,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t){void 0===t&&(t=this),e=X(this,e,t),T(e)?e===W||null==e||""===e?(this._$AH!==W&&this._$AR(),this._$AH=W):e!==this._$AH&&e!==H&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):(e=>M(e)||"function"==typeof e?.[Symbol.iterator])(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==W&&T(this._$AH)?this._$AA.nextSibling.data=e:this.T(A.createTextNode(e)),this._$AH=e}$(e){const{values:t,_$litType$:r}=e,o="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=K.createElement(Y(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===o)this._$AH.p(t);else{const e=new G(o,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=U.get(e.strings);return void 0===t&&U.set(e.strings,t=new K(e)),t}k(e){M(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,o=0;for(const i of e)o===t.length?t.push(r=new Q(this.O(P()),this.O(P()),this,this.options)):r=t[o],r._$AI(i),o++;o<t.length&&(this._$AR(r&&r._$AB.nextSibling,o),t.length=o)}_$AR(e,t){for(void 0===e&&(e=this._$AA.nextSibling),this._$AP?.(!1,!0,t);e!==this._$AB;){const t=$(e).nextSibling;$(e).remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class Z{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,o,i){this.type=1,this._$AH=W,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=W}_$AI(e,t,r,o){void 0===t&&(t=this);const i=this.strings;let n=!1;if(void 0===i)e=X(this,e,t,0),n=!T(e)||e!==this._$AH&&e!==H,n&&(this._$AH=e);else{const o=e;let a,s;for(e=i[0],a=0;a<i.length-1;a++)s=X(this,o[r+a],t,a),s===H&&(s=this._$AH[a]),n||=!T(s)||s!==this._$AH[a],s===W?e=W:e!==W&&(e+=(s??"")+i[a+1]),this._$AH[a]=s}n&&!o&&this.j(e)}j(e){e===W?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class ee extends Z{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===W?void 0:e}}class te extends Z{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==W)}}class re extends Z{constructor(e,t,r,o,i){super(e,t,r,o,i),this.type=5}_$AI(e,t){if(void 0===t&&(t=this),(e=X(this,e,t,0)??W)===H)return;const r=this._$AH,o=e===W&&r!==W||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==W&&(r===W||o);o&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class oe{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){X(this,e)}}const ie={I:Q},ne=_.litHtmlPolyfillSupport;ne?.(K,Q),(_.litHtmlVersions??=[]).push("3.3.3");const ae=globalThis; 18/** 19 * @license 20 * Copyright 2017 Google LLC 21 * SPDX-License-Identifier: BSD-3-Clause 22 */let se=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=((e,t,r)=>{const o=r?.renderBefore??t;let i=o._$litPart$;if(void 0===i){const e=r?.renderBefore??null;
22o._$litPart$=i=new Q(t.insertBefore(P(),e),e,void 0,r??{})}return i._$AI(e),i})(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};se._$litElement$=!0,se.finalized=!0,ae.litElementHydrateSupport?.({LitElement:se});const le=ae.litElementPolyfillSupport;le?.({LitElement:se}),(ae.litElementVersions??=[]).push("4.2.2"); 23/** 24 * @license 25 * Copyright 2017 Google LLC 26 * SPDX-License-Identifier: BSD-3-Clause 27 */ 28const de={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:y},ce=(e,t,r)=>{void 0===e&&(e=de);const{kind:o,metadata:i}=r;let n=globalThis.litPropertyMetadata.get(i);if(void 0===n&&globalThis.litPropertyMetadata.set(i,n=new Map),"setter"===o&&((e=Object.create(e)).wrapped=!0),n.set(r.name,e),"accessor"===o){const{name:o}=r;return{set(r){const i=t.get.call(this);t.set.call(this,r),this.requestUpdate(o,i,e,!0,r)},init(t){return void 0!==t&&this.C(o,void 0,e,t),t}}}if("setter"===o){const{name:o}=r;return function(r){const i=this[o];t.call(this,r),this.requestUpdate(o,i,e,!0,r)}}throw Error("Unsupported decorator location: "+o)};function he(e){return(t,r)=>"object"==typeof r?ce(e,t,r):((e,t,r)=>{const o=t.hasOwnProperty(r);return t.constructor.createProperty(r,e),o?Object.getOwnPropertyDescriptor(t,r):void 0})(e,t,r)} 29/** 30 * @license 31 * Copyright 2017 Google LLC 32 * SPDX-License-Identifier: BSD-3-Clause 33 */function pe(e){return he({...e,state:!0,attribute:!1})} 34/** 35 * @license 36 * Copyright 2017 Google LLC 37 * SPDX-License-Identifier: BSD-3-Clause 38 */const ue=(e,t,r)=>(r.configurable=!0,r.enumerable=!0,Reflect.decorate&&"object"!=typeof t&&Object.defineProperty(e,t,r),r); 39/** 40 * @license 41 * Copyright 2017 Google LLC 42 * SPDX-License-Identifier: BSD-3-Clause 43 */function ge(e,t){return(r,o,i)=>{const n=t=>t.renderRoot?.querySelector(e)??null;if(t){const{get:e,set:t}="object"==typeof o?r:i??(()=>{const e=Symbol();return{get(){return this[e]},set(t){this[e]=t}}})();return ue(r,o,{get(){let r=e.call(this);return void 0===r&&(r=n(this),(null!==r||this.hasUpdated)&&t.call(this,r)),r}})}return ue(r,o,{get(){return n(this)}})}} 44/** 45 * @license 46 * Copyright 2017 Google LLC 47 * SPDX-License-Identifier: BSD-3-Clause 48 */const be=1,me=2,ve=3,fe=4,we=e=>function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return{_$litDirective$:e,values:r}};let ye=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}; 49/** 50 * @license 51 * Copyright 2018 Google LLC 52 * SPDX-License-Identifier: BSD-3-Clause 53 */const xe=we(class extends ye{constructor(e){if(super(e),e.type!==be||"class"!==e.name||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,t){let[r]=t;if(void 0===this.st){this.st=new Set,void 0!==e.strings&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(e=>""!==e)));for(const e in r)r[e]&&!this.nt?.has(e)&&this.st.add(e);return this.render(r)}const o=e.element.classList;for(const e of this.st)e in r||(o.remove(e),this.st.delete(e));for(const e in r){const t=!!r[e];t===this.st.has(e)||this.nt?.has(e)||(t?(o.add(e),this.st.add(e)):(o.remove(e),this.st.delete(e)))}return H}}),ke=a`:host{display:inline-block}.w-icon{--_w-icon-size:var(--w-icon-size,24px);height:var(--_w-icon-size);width:var(--_w-icon-size);visibility:hidden;display:flex}.w-icon--ready{visibility:visible}.w-icon svg{pointer-events:none;height:var(--_w-icon-size);width:var(--_w-icon-size)}.w-icon--s{--w-icon-size:16px}.w-icon--m{--w-icon-size:24px}.w-icon--l{--w-icon-size:32px}`;var _e=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const $e=new Map,Se=new Map;function Ee(e){if($e.has(e))return Promise.resolve($e.get(e)??null);const t=Se.get(e);if(void 0!==t)return t;const r=fetch(e).then(e=>{if(!e.ok)throw new Error(`HTTP ${e.status}`);return e.text()}).then(t=>{const r=function(e){const t=(new DOMParser).parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?null:t.querySelector("svg")}(t);return $e.set(e,r),r}).catch(()=>($e.set(e,null),null)).finally(()=>{Se.delete(e)});return Se.set(e,r),r}class Ce extends se{constructor(){super(...arguments),this.locale=document.documentElement.lang||"en",this.svg=null,this._ready=!1,this._loadToken=null}static#e=this.styles=[ke];updated(e){(e.has("name")||e.has("locale"))&&this.loadIcon()}async loadIcon(){if(!this.name)return this.svg=null,void(this._ready=!1);const e=(t=this.name,`https://assets.finn.no/pkg/eikons/~1/${this.locale}/${t}.svg`);var t;const r=Symbol();this._loadToken=r,this._ready=!1;const o=await Ee(e);this._loadToken===r&&(o?(this.svg=o.cloneNode(!0),this._ready=!0):this.svg=null)}render(){const e=this.size||"medium",t=this.name||"",r={"w-icon":!0,"w-icon--ready":this._ready,"w-icon--s":"small"===e,"w-icon--m":"medium"===e,"w-icon--l":"large"===e},o="string"==typeof e&&e.endsWith("px")?`--w-icon-size: ${e};`:"";return B`<div class="${xe(r)}" style="${o}" part="w-${t.toLowerCase()}">${this.svg}</div>`}}_e([he({type:String,reflect:!0})],Ce.prototype,"name",void 0),_e([he({type:String,reflect:!0})],Ce.prototype,"size",void 0),_e([he({type:String,reflect:!0,useDefault:!0})],Ce.prototype,"locale",void 0),_e([pe()],Ce.prototype,"svg",void 0),_e([pe()],Ce.prototype,"_ready",void 0);const Oe=Ce;customElements.get("w-icon")||customElements.define("w-icon",Ce);const ze=e=>"string"==typeof e,De=new Map;function Ae(e){return[...Array.isArray(e)?e:[e],"en"]}function Pe(e,t,r){const o=Ae(e);let i;if(r||(r="default"),"string"==typeof r)switch(i={day:"numeric",month:"short",year:"numeric"},r){case"full":i.weekday="long";case"long":i.month="long";break;case"short":i.month="numeric"}else i=r;return Ve(()=>Le("date",o,r),()=>new Intl.DateTimeFormat(o,i)).format(ze(t)?new Date(t):t)}function Te(e,t,r){const o=Ae(e);return Ve(()=>Le("number",o,r),()=>new Intl.NumberFormat(o,r)).format(t)}function Me(e,t,r,o){let{offset:i=0,...n}=o;const a=Ae(e),s=t?Ve(()=>Le("plural-ordinal",a),()=>new Intl.PluralRules(a,{type:"ordinal"})):Ve(()=>Le("plural-cardinal",a),()=>new Intl.PluralRules(a,{type:"cardinal"}));return n[r]??n[s.select(r-i)]??n.other}function Ve(e,t){const r=e();let o=De.get(r);return o||(o=t(),De.set(r,o)),o}function Le(e,t,r){return`${e}-${t.join("-")}-${JSON.stringify(r)}`}const je=/\\u[a-fA-F0-9]{4}|\\x[a-fA-F0-9]{2}/,Re=e=>e.replace(/\\u([a-fA-F0-9]{4})|\\x([a-fA-F0-9]{2})/g,(e,t,r)=>{if(t){const e=parseInt(t,16);return String.fromCharCode(e)}{const e=parseInt(r,16);return String.fromCharCode(e)}}),Ne="%__lingui_octothorpe__%",Ie=(e,t,r)=>{void 0===r&&(r={});const o=t||e,i=e=>"object"==typeof e?e:r[e],n=(e,t)=>{const n=Object.keys(r).length?i("number"):void 0,a=Te(o,e,n);return t.replace(new RegExp(Ne,"g"),a)};return{plural:(e,t)=>{const{offset:r=0}=t,i=Me(o,!1,e,t);return n(e-r,i)},selectordinal:(e,t)=>{const{offset:r=0}=t,i=Me(o,!0,e,t);return n(e-r,i)},select:Fe,number:(e,t)=>Te(o,e,i(t)||{style:t}),date:(e,t)=>
53Pe(o,e,i(t)||t),time:(e,t)=>function(e,t,r){let o;if(r||(r="default"),"string"==typeof r)switch(o={second:"numeric",minute:"numeric",hour:"numeric"},r){case"full":case"long":o.timeZoneName="short";break;case"short":delete o.second}else o=r;return Pe(e,t,o)}(o,e,i(t)||t)}},Fe=(e,t)=>t[e]??t.other;var qe=Object.defineProperty,Be=(e,t,r)=>(((e,t,r)=>{t in e?qe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,t+"",r),r);class He{constructor(){Be(this,"_events",{})}on(e,t){var r;return(r=this._events)[e]??(r[e]=[]),this._events[e].push(t),()=>this.removeListener(e,t)}removeListener(e,t){const r=this._getListeners(e);if(!r)return;const o=r.indexOf(t);~o&&r.splice(o,1)}emit(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const i=this._getListeners(e);i&&i.map(e=>e.apply(this,r))}_getListeners(e){const t=this._events[e];return!!Array.isArray(t)&&t}}var We=Object.defineProperty,Ue=(e,t,r)=>(((e,t,r)=>{t in e?We(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!=typeof t?t+"":t,r),r);class Je extends He{constructor(e){super(),Ue(this,"_locale",""),Ue(this,"_locales"),Ue(this,"_localeData",{}),Ue(this,"_messages",{}),Ue(this,"_missing"),Ue(this,"_messageCompiler"),Ue(this,"t",this._.bind(this)),null!=e.missing&&(this._missing=e.missing),null!=e.messages&&this.load(e.messages),null!=e.localeData&&this.loadLocaleData(e.localeData),("string"==typeof e.locale||e.locales)&&this.activate(e.locale??"en",e.locales)}get locale(){return this._locale}get locales(){return this._locales}get messages(){return this._messages[this._locale]??{}}get localeData(){return this._localeData[this._locale]??{}}_loadLocaleData(e,t){const r=this._localeData[e];r?Object.assign(r,t):this._localeData[e]=t}setMessagesCompiler(e){return this._messageCompiler=e,this}loadLocaleData(e,t){"string"==typeof e?this._loadLocaleData(e,t):Object.keys(e).forEach(t=>this._loadLocaleData(t,e[t])),this.emit("change")}_load(e,t){const r=this._messages[e];r?Object.assign(r,t):this._messages[e]=t}load(e,t){"string"==typeof e&&"object"==typeof t?this._load(e,t):Object.entries(e).forEach(e=>{let[t,r]=e;return this._load(t,r)}),this.emit("change")}loadAndActivate(e){let{locale:t,locales:r,messages:o}=e;this._locale=t,this._locales=r||void 0,this._messages[this._locale]=o,this.emit("change")}activate(e,t){this._locale=e,this._locales=t,this.emit("change")}_(e,t,r){if(!this.locale)throw new Error("Lingui: Attempted to call a translation function without setting a locale.\nMake sure to call `i18n.activate(locale)` before using Lingui functions.\nThis issue may also occur due to a race condition in your initialization logic.");let o=r?.message;e||(e=""),ze(e)||(t=e.values||t,o=e.message,e=e.id);const i=this.messages[e],n=void 0===i,a=this._missing;if(a&&n)return(e=>"function"==typeof e)(a)?a(this._locale,e):a;n&&this.emit("missing",{id:e,locale:this._locale});let s=i||o||e;return ze(s)&&(this._messageCompiler?s=this._messageCompiler(s):console.warn(`Uncompiled message detected! Message:\n\n> ${s}\n\nThat means you use raw catalog or your catalog doesn't have a translation for the message and fallback was used.\nICU features such as interpolation and plurals will not work properly for that message. \n\nPlease compile your catalog first. \n`)),ze(s)&&je.test(s)?Re(s):ze(s)?s:function(e,t,r){return(o,i)=>{void 0===o&&(o={});const n=Ie(t,r,i),a=(e,t)=>(void 0===t&&(t=!1),Array.isArray(e)?e.reduce((e,r)=>{if("#"===r&&t)return e+Ne;if(ze(r))return e+r;const[i,s,l]=r;let d,c={};return"plural"===s||"selectordinal"===s||"select"===s?Object.entries(l).forEach(e=>{let[t,r]=e;c[t]=a(r,"plural"===s||"selectordinal"===s)}):c=l,d=s?(0,n[s])(o[i],c):o[i],null==d?e:e+d},""):e),s=a(e);return ze(s)&&je.test(s)?Re(s):ze(s)?s:s?String(s):""}}(s,this._locale,this._locales)(t,r?.formats)}date(e,t){return Pe(this._locales||this._locale,e,t)}number(e,t){return Te(this._locales||this._locale,e,t)}}const Ye=(void 0===Ke&&(Ke={}),new Je(Ke));var Ke;const Xe=["top","right","bottom","left"],Ge=Math.min,Qe=Math.max,Ze=Math.round,et=Math.floor,tt=e=>({x:e,y:e}
vendor: 4,207 bytes, line 53
53),rt={left:"right",right:"left",bottom:"top",top:"bottom"};function ot(e,t,r){return Qe(e,Ge(t,r))}function it(e,t){return"function"==typeof e?e(t):e}function nt(e){return e.split("-")[0]}function at(e){return e.split("-")[1]}function st(e){return"x"===e?"y":"x"}function lt(e){return"y"===e?"height":"width"}function dt(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function ct(e){return st(dt(e))}function ht(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const pt=["left","right"],ut=["right","left"],gt=["top","bottom"],bt=["bottom","top"];function mt(e,t,r,o){const i=at(e);let n=function(e,t,r){switch(e){case"top":case"bottom":return r?t?ut:pt:t?pt:ut;case"left":case"right":return t?gt:bt;default:return[]}}(nt(e),"start"===r,o);return i&&(n=n.map(e=>e+"-"+i),t&&(n=n.concat(n.map(ht)))),n}function vt(e){const t=nt(e);return rt[t]+e.slice(t.length)}function ft(e){return"number"!=typeof e?function(e){var t,r,o,i;return{top:null!=(t=e.top)?t:0,right:null!=(r=e.right)?r:0,bottom:null!=(o=e.bottom)?o:0,left:null!=(i=e.left)?i:0}}(e):{top:e,right:e,bottom:e,left:e}}function wt(e){const{x:t,y:r,width:o,height:i}=e;return{width:o,height:i,top:r,left:t,right:t+o,bottom:r+i,x:t,y:r}}function yt(e,t,r){let{reference:o,floating:i}=e;const n=dt(t),a=ct(t),s=lt(a),l=nt(t),d="y"===n,c=o.x+o.width/2-i.width/2,h=o.y+o.height/2-i.height/2,p=o[s]/2-i[s]/2;let u;switch(l){case"top":u={x:c,y:o.y-i.height};break;case"bottom":u={x:c,y:o.y+o.height};break;case"right":u={x:o.x+o.width,y:h};break;case"left":u={x:o.x-i.width,y:h};break;default:u={x:o.x,y:o.y}}const g=at(t);return g&&(u[a]+=p*("end"===g?1:-1)*(r&&d?-1:1)),u}async function xt(e,t){var r;void 0===t&&(t={});const{x:o,y:i,platform:n,rects:a,elements:s,strategy:l}=e,{boundary:d="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:p=!1,padding:u=0}=it(t,e),g=ft(u),b=s[p?"floating"===h?"reference":"floating":h],m=wt(await n.getClippingRect({element:null==(r=await(null==n.isElement?void 0:n.isElement(b)))||r?b:b.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:d,rootBoundary:c,strategy:l})),v="floating"===h?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,f=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),w=await(null==n.isElement?void 0:n.isElement(f))&&await(null==n.getScale?void 0:n.getScale(f))||{x:1,y:1},y=wt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:f,strategy:l}):v);return{top:(m.top-y.top+g.top)/w.y,bottom:(y.bottom-m.bottom+g.bottom)/w.y,left:(m.left-y.left+g.left)/w.x,right:(y.right-m.right+g.right)/w.x}}function kt(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function _t(e){return Xe.some(t=>e[t]>=0)}const $t=new Set(["left","top"]);function St(){return"undefined"!=typeof window}function Et(e){return zt(e)?(e.nodeName||"").toLowerCase():"#document"}function Ct(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Ot(e){var t;return null==(t=(zt(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function zt(e){return!!St()&&(e instanceof Node||e instanceof Ct(e).Node)}function Dt(e){return!!St()&&(e instanceof Element||e instanceof Ct(e).Element)}function At(e){return!!St()&&(e instanceof HTMLElement||e instanceof Ct(e).HTMLElement)}function Pt(e){return!(!St()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Ct(e).ShadowRoot)}function Tt(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=Bt(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&"inline"!==i&&"contents"!==i}function Mt(e){return/^(table|td|th)$/.test(Et(e))}function Vt(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Lt=/transform|translate|scale|rotate|perspective|filter/,jt=/paint|layout|strict|content/,Rt=e=>!!e&&"none"!==e;let Nt;function It(e){const t=Dt(e)?Bt(e):e;return Rt(t.transform)||Rt(t.translate)||Rt(t.scale)||Rt(t.rotate)||Rt(t.perspective)||!Ft()&&
vendor: 4,864 bytes, line 53
53(Rt(t.backdropFilter)||Rt(t.filter))||Lt.test(t.willChange||"")||jt.test(t.contain||"")}function Ft(){return null==Nt&&(Nt="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Nt}function qt(e){return/^(html|body|#document)$/.test(Et(e))}function Bt(e){return Ct(e).getComputedStyle(e)}function Ht(e){return Dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Wt(e){if("html"===Et(e))return e;const t=e.assignedSlot||e.parentNode||Pt(e)&&e.host||Ot(e);return Pt(t)?t.host:t}function Ut(e){const t=Wt(e);return qt(t)?(e.ownerDocument||e).body:At(t)&&Tt(t)?t:Ut(t)}function Jt(e,t,r){var o;void 0===t&&(t=[]),void 0===r&&(r=!0);const i=Ut(e),n=i===(null==(o=e.ownerDocument)?void 0:o.body),a=Ct(i);if(n){const e=Yt(a);return t.concat(a,a.visualViewport||[],Tt(i)?i:[],e&&r?Jt(e):[])}return t.concat(i,Jt(i,[],r))}function Yt(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Kt(e){const t=Bt(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=At(e),n=i?e.offsetWidth:r,a=i?e.offsetHeight:o,s=Ze(r)!==n||Ze(o)!==a;return s&&(r=n,o=a),{width:r,height:o,$:s}}function Xt(e){return Dt(e)?e:e.contextElement}function Gt(e){const t=Xt(e);if(!At(t))return tt(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:n}=Kt(t);let a=(n?Ze(r.width):r.width)/o,s=(n?Ze(r.height):r.height)/i;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Qt=tt(0);function Zt(e){const t=Ct(e);return Ft()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:Qt}function er(e,t,r,o){void 0===t&&(t=!1),void 0===r&&(r=!1);const i=e.getBoundingClientRect(),n=Xt(e);let a=tt(1);t&&(o?Dt(o)&&(a=Gt(o)):a=Gt(e));const s=function(e,t,r){return void 0===t&&(t=!1),!!r&&t&&r===Ct(e)}(n,r,o)?Zt(n):tt(0);let l=(i.left+s.x)/a.x,d=(i.top+s.y)/a.y,c=i.width/a.x,h=i.height/a.y;if(n&&o){const e=Ct(n),t=Dt(o)?Ct(o):o;let r=e,i=Yt(r);for(;i&&t!==r;){const e=Gt(i),t=i.getBoundingClientRect(),o=Bt(i),n=t.left+(i.clientLeft+parseFloat(o.paddingLeft))*e.x,a=t.top+(i.clientTop+parseFloat(o.paddingTop))*e.y;l*=e.x,d*=e.y,c*=e.x,h*=e.y,l+=n,d+=a,r=Ct(i),i=Yt(r)}}return wt({width:c,height:h,x:l,y:d})}function tr(e,t){const r=Ht(e).scrollLeft;return t?t.left+r:er(Ot(e)).left+r}function rr(e,t){const r=e.getBoundingClientRect();return{x:r.left+t.scrollLeft-tr(e,r),y:r.top+t.scrollTop}}function or(e,t,r){let o;if("viewport"===t||"layoutViewport"===t)o=function(e,t,r){void 0===r&&(r="viewport");const o="layoutViewport"===r,i=Ct(e),n=Ot(e),a=i.visualViewport;let s=n.clientWidth,l=n.clientHeight,d=0,c=0;if(a){const e=!Ft()||"fixed"===t;o?e||(d=-a.offsetLeft,c=-a.offsetTop):(s=a.width,l=a.height,e&&(d=a.offsetLeft,c=a.offsetTop))}if(tr(n)<=0){const e=n.ownerDocument,t=e.body,r=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,i=Math.abs(n.clientWidth-t.clientWidth-o),a="stable both-edges"===getComputedStyle(n).scrollbarGutter?i/2:i;a<=25&&(s-=a)}return{width:s,height:l,x:d,y:c}}(e,r,t);else if("document"===t)o=function(e){const t=Ht(e),r=e.ownerDocument.body,o=Qe(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),i=Qe(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let n=-t.scrollLeft+tr(e);const a=-t.scrollTop;return"rtl"===Bt(r).direction&&(n+=Qe(e.clientWidth,r.clientWidth)-o),{width:o,height:i,x:n,y:a}}(Ot(e));else if(Dt(t))o=function(e,t){const r=er(e,!0,"fixed"===t),o=r.top+e.clientTop,i=r.left+e.clientLeft,n=Gt(e);return{width:e.clientWidth*n.x,height:e.clientHeight*n.y,x:i*n.x,y:o*n.y}}(t,r);else{const r=Zt(e);o={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return wt(o)}function ir(e,t,r){const o=At(t),i=Ot(t),n="fixed"===r,a=er(e,!0,n,t);let s={scrollLeft:0,scrollTop:0};const l=tt(0);if((o||!n)&&(("body"!==Et(t)||Tt(i))&&(s=Ht(t)),o)){const e=er(t,!0,n,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!o&&i&&(l.x=tr(i));const d=!i||o||n?tt(0):rr(i,s);return{x:a.left+s.scrollLeft-l.x-d.x,y:a.top+s.scrollTop-l.y-d.y,width:a.width,height:a.height}}function nr(e){return"static"===Bt(e).position}function ar(e,t){if(!At(e)||"fixed"===Bt(e).position)return null;if(t)return t(e);let r=e.offsetParent;return Ot(e)===r&&(r=r.ownerDocument.body),r}function sr(e,t){const r=Ct(e);if(Vt(e))return r;if(!At(e)){let t=Wt(e);for(;t&&!qt(t);){if(Dt(t)&&!nr(t))return t;t=Wt(t)}return r}let o=ar(e,t);for(;o&&Mt(o)&&nr(o);)o=ar(o,t);return o&&qt(o)&&nr(o)&&!It(o)?r:o||function(e){let t=Wt(e);for(;At(t)&&!qt(t);){if(It(t))return t;if(Vt(t))return null;t=Wt(t)}return null}(e)||r}const lr={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:o,strategy:i}=e;const n="fixed"===i,a=Ot(o),s=!!t&&Vt(t.floating);if(o===a||s&&n)return r;let l={scrollLeft:0,scrollTop:0},d=tt(1);
vendor: 4,306 bytes, line 53
53const c=tt(0),h=At(o);if((h||!n)&&(("body"!==Et(o)||Tt(a))&&(l=Ht(o)),h)){const e=er(o);d=Gt(o),c.x=e.x+o.clientLeft,c.y=e.y+o.clientTop}const p=!a||h||n?tt(0):rr(a,l);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-l.scrollLeft*d.x+c.x+p.x,y:r.y*d.y-l.scrollTop*d.y+c.y+p.y}},getDocumentElement:Ot,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const n="clippingAncestors"===r?Vt(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let o=Jt(e,[],!1).filter(e=>Dt(e)&&"body"!==Et(e)),i=null;const n="fixed"===Bt(e).position;let a=n?Wt(e):e;for(;Dt(a)&&!qt(a);){const e=Bt(a),t=It(a),r=i?i.position:n?"fixed":"";t||"fixed"!==r&&("absolute"!==r||"static"!==e.position)?i=e:o=o.filter(e=>e!==a),a=Wt(a)}return t.set(e,o),o}(t,this._c):[].concat(r),a=[...n,o],s=or(t,a[0],i);let l=s.top,d=s.right,c=s.bottom,h=s.left;for(let e=1;e<a.length;e++){const r=or(t,a[e],i);l=Qe(r.top,l),d=Ge(r.right,d),c=Ge(r.bottom,c),h=Qe(r.left,h)}return{width:d-h,height:c-l,x:h,y:l}},getOffsetParent:sr,getElementRects:async function(e){const t=this.getOffsetParent||sr,r=this.getDimensions,o=await r(e.floating);return{reference:ir(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},getClientRects:function(e){return e.getClientRects?Array.from(e.getClientRects()):[]},getDimensions:function(e){const{width:t,height:r}=Kt(e);return{width:t,height:r}},getScale:Gt,isElement:Dt,isRTL:function(e){return"rtl"===Bt(e).direction}};function dr(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function cr(e,t,r,o){void 0===o&&(o={});const{ancestorScroll:i=!0,ancestorResize:n=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=o,d=Xt(e),c=i||n?[...d?Jt(d):[],...t?Jt(t):[]]:[];c.forEach(e=>{i&&e.addEventListener("scroll",r),n&&e.addEventListener("resize",r)});const h=d&&s?function(e,t,r){let o,i=null;const n=Ot(e);function a(){var e;clearTimeout(o),null==(e=i)||e.disconnect(),i=null}function s(r,l){void 0===r&&(r=!1),void 0===l&&(l=1),a();const d=e.getBoundingClientRect(),{left:c,top:h,width:p,height:u}=d;if(r||t(),!p||!u)return;const g={rootMargin:-et(h)+"px "+-et(n.clientWidth-(c+p))+"px "+-et(n.clientHeight-(h+u))+"px "+-et(c)+"px",threshold:Qe(0,Ge(1,l))||1};let b=!0;function m(t){const r=t[0].intersectionRatio;if(!dr(d,e.getBoundingClientRect()))return s();if(r!==l){if(!b)return s();r?s(!1,r):o=setTimeout(()=>{s(!1,1e-7)},1e3)}b=!1}try{i=new IntersectionObserver(m,{...g,root:n.ownerDocument})}catch(e){i=new IntersectionObserver(m,g)}i.observe(e)}const l=Ct(e),d=()=>s(r);return l.addEventListener("resize",d),s(!0),()=>{l.removeEventListener("resize",d),a()}}(d,r,n):null;let p,u=-1,g=null;a&&(g=new ResizeObserver(e=>{let[o]=e;o&&o.target===d&&g&&t&&(g.unobserve(t),cancelAnimationFrame(u),u=requestAnimationFrame(()=>{var e;null==(e=g)||e.observe(t)})),r()}),d&&!l&&g.observe(d),t&&g.observe(t));let b=l?er(e):null;return l&&function t(){const o=er(e);b&&!dr(b,o)&&r();b=o,p=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach(e=>{i&&e.removeEventListener("scroll",r),n&&e.removeEventListener("resize",r)}),null==h||h(),null==(e=g)||e.disconnect(),g=null,l&&cancelAnimationFrame(p)}}const hr=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:n,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:o,elements:i}=e,n=await(null==o.isRTL?void 0:o.isRTL(i.floating)),a=nt(r),s=at(r),l="y"===dt(r),d=$t.has(a)?-1:1,c=n&&l?-1:1,h=it(t,e);let{mainAxis:p,crossAxis:u,alignmentAxis:g}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&"number"==typeof g&&(u="end"===s?-1*g:g),l?{x:u*c,y:p*d}:{x:p*d,y:u*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(o=s.arrow)&&o.alignmentOffset?{}:{x:i+l.x,y:n+l.y,data:{...l,placement:a}}}}},pr=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i,platform:n}=t,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...d}=it(e,t),c={x:r,y:o},h=await n.detectOverflow(t,d),p=dt(i),u=st(p);let g=c[u],b=c[p];const m=(e,t)=>
vendor: 4,242 bytes, line 53
53ot(t+h["y"===e?"top":"left"],t,t-h["y"===e?"bottom":"right"]);a&&(g=m(u,g)),s&&(b=m(p,b));const v=l.fn({...t,[u]:g,[p]:b});return{...v,data:{x:v.x-r,y:v.y-o,enabled:{[u]:a,[p]:s}}}}}},ur=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:n,rects:a,initialPlacement:s,platform:l,elements:d}=t,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:p,fallbackStrategy:u="bestFit",fallbackAxisSideDirection:g="none",flipAlignment:b=!0,...m}=it(e,t);if(null!=(r=n.arrow)&&r.alignmentOffset)return{};const v=nt(i),f=dt(s),w=nt(s)===s,y=await(null==l.isRTL?void 0:l.isRTL(d.floating)),x=p||(w||!b?[vt(s)]:function(e){const t=vt(e);return[ht(e),t,ht(t)]}(s)),k="none"!==g;!p&&k&&x.push(...mt(s,b,g,y));const _=[s,...x],$=await l.detectOverflow(t,m),S=[];let E=(null==(o=n.flip)?void 0:o.overflows)||[];if(c&&S.push($[v]),h){const e=function(e,t,r){void 0===r&&(r=!1);const o=at(e),i=ct(e),n=lt(i);let a="x"===i?o===(r?"end":"start")?"right":"left":"start"===o?"bottom":"top";return t.reference[n]>t.floating[n]&&(a=vt(a)),[a,vt(a)]}(i,a,y);S.push($[e[0]],$[e[1]])}if(E=[...E,{placement:i,overflows:S}],!S.every(e=>e<=0)){var C,O;const e=((null==(C=n.flip)?void 0:C.index)||0)+1,t=_[e];if(t){if(!("alignment"===h&&f!==dt(t))||E.every(e=>dt(e.placement)!==f||e.overflows[0]>0))return{data:{index:e,overflows:E},reset:{placement:t}}}let r=null==(O=E.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:O.placement;if(!r)switch(u){case"bestFit":{var z;const e=null==(z=E.filter(e=>{if(k){const t=dt(e.placement);return t===f||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:z[0];e&&(r=e);break}case"initialPlacement":r=s}if(i!==r)return{reset:{placement:r}}}return{}}}},gr=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:i,elements:n}=t,{apply:a=()=>{},...s}=it(e,t),l=await i.detectOverflow(t,s),d=nt(r),c=at(r),h="y"===dt(r),{width:p,height:u}=o.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=c===(await(null==i.isRTL?void 0:i.isRTL(n.floating))?"start":"end")?"left":"right"):(b=d,g="end"===c?"top":"bottom");const m=u-l.top-l.bottom,v=p-l.left-l.right,f=Ge(u-l[g],m),w=Ge(p-l[b],v),y=t.middlewareData.shift,x=!y;let k=f,_=w;null!=y&&y.enabled.x&&(_=v),null!=y&&y.enabled.y&&(k=m),x&&!c&&(h?_=p-2*Qe(l.left,l.right):k=u-2*Qe(l.top,l.bottom)),await a({...t,availableWidth:_,availableHeight:k});const $=await i.getDimensions(n.floating);return p!==$.width||u!==$.height?{reset:{rects:!0}}:{}}}},br=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r,platform:o}=t,{strategy:i="referenceHidden",...n}=it(e,t);switch(i){case"referenceHidden":{const e=kt(await o.detectOverflow(t,{...n,elementContext:"reference"}),r.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:_t(e)}}}case"escaped":{const e=kt(await o.detectOverflow(t,{...n,altBoundary:!0}),r.floating);return{data:{escapedOffsets:e,escaped:_t(e)}}}default:return{}}}}},mr=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:n,platform:a,elements:s,middlewareData:l}=t,{element:d,padding:c=0}=it(e,t)||{};if(null==d)return{};const h=ft(c),p={x:r,y:o},u=ct(i),g=lt(u),b=await a.getDimensions(d),m="y"===u,v=m?"top":"left",f=m?"bottom":"right",w=m?"clientHeight":"clientWidth",y=n.reference[g]+n.reference[u]-p[u]-n.floating[g],x=p[u]-n.reference[u],k=await(null==a.getOffsetParent?void 0:a.getOffsetParent(d));let _=k?k[w]:0;_&&await(null==a.isElement?void 0:a.isElement(k))||(_=s.floating[w]||n.floating[g]);const $=y/2-x/2,S=_/2-b[g]/2-1,E=Ge(h[v],S),C=Ge(h[f],S),O=_-b[g]-C,z=_/2-b[g]/2+$,D=ot(E,z,O),A=!l.arrow&&null!=at(i)&&z!==D&&n.reference[g]/2-(z<E?E:C)-b[g]/2<0,P=A?z<E?z-E:z-O:0;return{[u]:p[u]+P,data:{[u]:D,centerOffset:z-D-P,...A&&{alignmentOffset:P}},reset:A}}}),vr=(e,t,r)=>{const o=new Map,i=null!=r?r:{},n={...lr,...i.platform,_c:o};return(async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:n=[],platform:a}=r,s=a.detectOverflow?a:{...a,detectOverflow:xt},l=await(null==a.isRTL?void 0:a.isRTL(t));let d=await a.getElementRects({reference:e,floating:t,strategy:i}
53),{x:c,y:h}=yt(d,o,l),p=o,u=0;const g={};for(let r=0;r<n.length;r++){const b=n[r];if(!b)continue;const{name:m,fn:v}=b,{x:f,y:w,data:y,reset:x}=await v({x:c,y:h,initialPlacement:o,placement:p,strategy:i,middlewareData:g,rects:d,platform:s,elements:{reference:e,floating:t}});c=null!=f?f:c,h=null!=w?w:h,g[m]={...g[m],...y},x&&u<50&&(u++,"object"==typeof x&&(x.placement&&(p=x.placement),x.rects&&(d=!0===x.rects?await a.getElementRects({reference:e,floating:t,strategy:i}):x.rects),({x:c,y:h}=yt(d,p,l))),r=-1)}return{x:c,y:h,placement:p,strategy:i,middlewareData:g}})(e,t,{...i,platform:n})},fr=["en","nb","fi","da","sv"],wr="en",yr=e=>fr.find(t=>e===t||e.toLowerCase().includes(t))||wr;function xr(){if("undefined"==typeof window){const e=process.env.NMP_LANGUAGE||Intl.DateTimeFormat().resolvedOptions().locale;return yr(e)}try{const e=Cr(document);if(e)return yr(e);const t=function(){try{return window.frameElement?.getAttribute?.("lang")??""}catch{return""}}();if(t)return yr(t);const r=Cr(Er());return r?yr(r):wr}catch(e){return console.warn("could not detect locale, falling back to source locale",e),wr}}const kr=(e,t,r,o,i)=>{Ye.load("en",e),Ye.load("nb",t),Ye.load("fi",r),Ye.load("da",o),Ye.load("sv",i);const n=xr();Ye.activate(n),$r(),function(){if(Sr)return;if("undefined"==typeof window)return;if(!document?.documentElement)return;Sr=!0;const e=()=>{const e=xr();Ye.locale!==e&&(Ye.activate(e),$r())},t=new MutationObserver(t=>{for(const r of t)if("attributes"===r.type&&"lang"===r.attributeName){e();break}});t.observe(document.documentElement,{attributes:!0,attributeFilter:["lang"]});const r=Er();r&&r.documentElement&&r!==document&&t.observe(r.documentElement,{attributes:!0,attributeFilter:["lang"]});const o=function(){try{return window.frameElement??null}catch{return null}}();o&&t.observe(o,{attributes:!0,attributeFilter:["lang"]})}()},_r="warp-i18n-change";function $r(){"undefined"!=typeof window&&window.dispatchEvent(new Event(_r))}let Sr=!1;function Er(){try{return window.parent?.document??null}catch{return null}}function Cr(e){try{return e?.documentElement?.lang??""}catch{return""}}const Or=a`*,:before,:after{box-sizing:border-box;border-style:solid;border-width:0;border-color:var(--w-s-color-border)}html{font-size:62.5%}body{background-color:var(--w-s-color-background);min-height:100%;margin:0;overflow-y:scroll}body,:host{-webkit-text-size-adjust:100%;tab-size:4;-webkit-tap-highlight-color:transparent;font-family:var(--w-font-family);font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);color:var(--w-s-color-text)}hr{color:inherit;border-top-width:1px;height:0}abbr:where([title]){text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:700}a{cursor:pointer;color:var(--w-s-color-text-link);text-decoration:none}a:hover,a:focus,a:active{text-decoration:underline}a:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:1px}b,strong{font-weight:700}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{margin:0;padding:0;list-style:none}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:var(--w-s-color-text-placeholder)}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}h1{font-size:var(--w-font-size-xxl);line-height:var(--w-line-height-xxl)}h2{font-size:var(--w-font-size-xl);line-height:var(--w-line-height-xl)}h3{font-size:var(--w-font-size-l);line-height:var(--w-line-height-l)}h4{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}h5{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}dt,dd{margin:0 16px}h1,h2,h3,h4,h5,ul,ol,dl,p,blockquote{margin:0 0 8px}[hidden]{display:none!important}[tabindex="-1"]:focus:not(:focus-visible){outline:none}legend{float:left;width:100%;margin:0;padding:0;display:table}legend+*{clear:both}fieldset{border:0;min-width:0;margin:0;padding:.01em 0 0}body:not(:-moz-handler-blocked) fieldset{display:table-cell}svg{pointer-events:none}`;n('*, :before, :after {\n --w-rotate: 0;\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-scale-x: 1;\n --w-scale-y: 1;\n --w-scale-z: 1;\n --w-skew-x: 0;\n --w-skew-y: 0;\n --w-translate-x: 0;\n --w-translate-y: 0;\n --w-translate-z: 0\n }\n\n .h4, .t4 {\n font-weight: 700;\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .t3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n\n @media (min-width: 480px) {\n .sm\\:h3 {\n font-weight: 700;\n font-size: var(--w-font-size-l);\n line-height: var(--w-line-height-l)\n }\n }\n\n .text-center {\n text-align: center\n }\n\n .before\\:text-center:before {\n text-align: center\n }\n\n .text-left {\n text-align: left\n }\n\n .text-right {\n text-align: right\n }\n\n .align-middle {\n vertical-align: middle\n }\n\n .animate-inprogress {\n background-image: linear-gradient(135deg, rgba(0, 0, 0, .05) 25%, transparent 0, transparent 50%, rgba(0, 0, 0, .05) 0, rgba(0, 0, 0, .05) 75%, transparent 0, transparent) !important;\n background-size: 30px 30px;\n animation: animate-inprogress 3s linear infinite\n }\n\n @keyframes animate-inprogress {\n 0% {\n background-position: 0 0\n }\n to {\n background-position: 60px 0\n }\n }\n\n .\\[--w-modal-max-height\\:80\\%\\] {\n --w-modal-max-height: 80%\n }\n\n .\\[--w-modal-width\\:640px\\] {\n --w-modal-width: 640px\n }\n\n .focus\\:\\[--w-outline-offset\\:-2px\\]:focus {\n --w-outline-offset: -2px\n }\n\n .backdrop-blur {\n -webkit-backdrop-filter: blur(4px);\n backdrop-filter: blur(4px)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:bg-center:before {\n background-position: center\n }\n\n .hover\\:bg-clip-padding:hover {\n -webkit-background-clip: padding-box;\n background-clip: padding-box\n }\n\n .bg-transparent, .group\\/steph:first-child .group-first\\/steph\\:bg-transparent, .group\\/steph:last-child .group-last\\/steph\\:bg-transparent {\n background-color: transparent\n }\n\n .bg-\\[--w-black\\/25\\] {\n background-color: rgba(var(--w-rgb-black), .25)\n }\n\n .bg-\\[--w-black\\/70\\], .bg-\\[var\\(--w-black\\)\\/70\\] {\n background-color: rgba(var(--w-rgb-black), .7)\n }\n\n .bg-\\[--w-color-badge-info-background\\] {\n background-color: var(--w-color-badge-info-background)\n }\n\n .bg-\\[--w-color-badge-negative-background\\] {\n background-color: var(--w-color-badge-negative-background)\n }\n\n .bg-\\[--w-color-badge-neutral-background\\] {\n background-color: var(--w-color-badge-neutral-background)\n }\n\n .bg-\\[--w-color-badge-positive-background\\] {\n background-color: var(--w-color-badge-positive-background)\n }\n\n .bg-\\[--w-color-badge-sponsored-background\\] {\n background-color: var(--w-color-badge-sponsored-background)\n }\n\n .bg-\\[--w-color-badge-warning-background\\] {\n background-color: var(--w-color-badge-warning-background)\n }\n\n .bg-\\[--w-color-button-primary-background\\] {\n background-color: var(--w-color-button-primary-background)\n }\n\n .bg-\\[--w-color-buttongroup-utility-background-selected\\] {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .bg-\\[--w-color-callout-background\\] {\n background-color: var(--w-color-callout-background)\n }\n\n .bg-\\[--w-color-pill-suggestion-background\\] {\n background-color: var(--w-color-pill-suggestion-background)\n }\n\n .bg-\\[--w-color-switch-track-background\\] {\n background-color: var(--w-color-switch-track-background)\n }\n\n .bg-\\[--w-s-color-surface-elevated-100\\] {\n background-color: var(--w-s-color-surface-elevated-100)\n }\n\n .bg-\\[--w-s-color-surface-elevated-300\\] {\n background-color: var(--w-s-color-surface-elevated-300)\n }\n\n .bg-\\[--w-s-icon-selected\\] {\n background-color: var(--w-s-icon-selected)\n }\n\n .group:hover .group-hover\\:bg-\\[--w-color-switch-track-background-hover\\] {\n background-color: var(--w-color-switch-track-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover {\n background-color: var(--w-color-button-pill-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover {\n background-color: var(--w-color-button-primary-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-buttongroup-utility-background-hover\\]:hover {\n background-color: var(--w-color-buttongroup-utility-background-hover)\n }\n\n .hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover {\n background-color: var(--w-color-pill-suggestion-background-hover)\n }\n\n .hover\\:bg-\\[--w-s-icon-subtle\\]:hover {\n background-color: var(--w-s-icon-subtle)\n }\n\n .hover\\:bg-\\[var\\(--w-black\\)\\/85\\]:hover {\n background-color: rgba(var(--w-rgb-black), .85)\n }\n\n .active\\:bg-\\[--w-color-button-pill-background-active\\]:active {\n background-color: var(--w-color-button-pill-background-active)\n }\n\n .active\\:bg-\\[--w-color-button-primary-background-active\\]:active {\n background-color: var(--w-color-button-primary-background-active)\n }\n\n .active\\:bg-\\[--w-color-buttongroup-utility-background-selected\\]:active {\n background-color: var(--w-color-buttongroup-utility-background-selected)\n }\n\n .active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active {\n background-color: var(--w-color-pill-suggestion-background-active)\n }\n\n .active\\:bg-\\[var\\(--w-black\\)\\]:active {\n background-color: var(--w-black)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:bg-\\[url\\(var\\(--w-icon-toggle-checked\\)\\)\\]:before {\n background-image: var(--w-icon-toggle-checked)\n }\n\n .appearance-none {\n -moz-appearance: none;\n appearance: none;\n -webkit-appearance: none\n }\n\n .will-change-height {\n will-change: height\n }\n\n .border, .border-1 {\n border-width: 1px\n }\n\n .border-b {\n border-bottom-width: 1px\n }\n\n .before\\:border:before {\n border-width: 1px\n }\n\n .border-0 {\n border-width: 0\n }\n\n .border-2 {\n border-width: 2px\n }\n\n .border-b-0 {\n border-bottom-width: 0\n }\n\n .border-b-4 {\n border-bottom-width: 4px\n }\n\n .border-l-4 {\n border-left-width: 4px\n }\n\n .border-r-0, .group:not(:last-of-type) .group-not-last-of-type\\:border-r-0 {\n border-right-width: 0\n }\n\n .peer:checked ~ .peer-checked\\:before\\:border-\\[6\\]:before {\n border-width: .6rem\n }\n\n .border-transparent {\n border-color: transparent\n }\n\n .border-\\[--w-color-buttongroup-utility-border\\] {\n border-color: var(--w-color-buttongroup-utility-border)\n }\n\n .border-\\[--w-color-callout-border\\] {\n border-color: var(--w-color-callout-border)\n }\n\n .border-\\[--w-s-color-background-inverted\\] {\n border-color: var(--w-s-color-background-inverted)\n }\n\n .border-\\[--w-s-color-surface-elevated-300\\] {\n border-color: var(--w-s-color-surface-elevated-300)\n }\n\n .active\\:border-\\[--w-color-buttongroup-utility-border-selected\\]:active {\n border-color: var(--w-color-buttongroup-utility-border-selected)\n }\n\n .divide-x > * + * {\n --w-divide-x-reverse: 0;\n border-left-width: calc(1px * calc(1 - var(--w-divide-x-reverse)));\n border-right-width: calc(1px * var(--w-divide-x-reverse))\n }\n\n .divide-y > * + * {\n --w-divide-y-reverse: 0;\n border-top-width: calc(1px * calc(1 - var(--w-divide-y-reverse)));\n border-bottom-width: calc(1px * var(--w-divide-y-reverse))\n }\n\n .rounded-4 {\n border-radius: 4px\n }\n\n .rounded-8 {\n border-radius: 8px\n }\n\n .rounded-full {\n border-radius: 9999px\n }\n\n .before\\:rounded-2:before {\n border-radius: 2px\n }\n\n .before\\:rounded-full:before {\n border-radius: 9999px\n }\n\n .rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-bl-0 {\n border-bottom-left-radius: 0\n }\n\n .rounded-br-0 {\n border-bottom-right-radius: 0\n }\n\n .rounded-l-0 {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0\n }\n\n .rounded-l-full {\n border-top-left-radius: 9999px;\n border-bottom-left-radius: 9999px\n }\n\n
53 .rounded-r-0 {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0\n }\n\n .rounded-r-full {\n border-top-right-radius: 9999px;\n border-bottom-right-radius: 9999px\n }\n\n .rounded-tl-0 {\n border-top-left-radius: 0\n }\n\n .rounded-tl-4 {\n border-top-left-radius: 4px\n }\n\n .rounded-tr-0 {\n border-top-right-radius: 0\n }\n\n .group:first-of-type .group-first-of-type\\:rounded-bl-8 {\n border-bottom-left-radius: 8px\n }\n\n .group:first-of-type .group-first-of-type\\:rounded-tl-8 {\n border-top-left-radius: 8px\n }\n\n .first\\:rounded-lb-4:first-child {\n border-bottom-left-radius: 4px\n }\n\n .first\\:rounded-lt-4:first-child {\n border-top-left-radius: 4px\n }\n\n .first\\:rounded-rt-4:first-child {\n border-top-right-radius: 4px\n }\n\n .group:last-of-type .group-last-of-type\\:rounded-br-8 {\n border-bottom-right-radius: 8px\n }\n\n .group:last-of-type .group-last-of-type\\:rounded-tr-8 {\n border-top-right-radius: 8px\n }\n\n .last\\:rounded-lb-4:last-child {\n border-bottom-left-radius: 4px\n }\n\n .last\\:rounded-rb-4:last-child {\n border-bottom-right-radius: 4px\n }\n\n .last\\:rounded-rt-4:last-child {\n border-top-right-radius: 4px\n }\n\n .caret-current {\n caret-color: currentColor\n }\n\n .opacity-25 {\n opacity: 25%\n }\n\n .block {\n display: block\n }\n\n .before\\:block:before {\n display: block\n }\n\n .inline-block {\n display: inline-block\n }\n\n .inline {\n display: inline\n }\n\n .flex, .open\\:flex[open] {\n display: flex\n }\n\n .inline-flex {\n display: inline-flex\n }\n\n .grid {\n display: grid\n }\n\n .inline-grid {\n display: inline-grid\n }\n\n .hidden, .group\\/stepv:last-child .group-last\\/stepv\\:hidden {\n display: none\n }\n\n .before\\:hidden:before {\n display: none\n }\n\n .hover\\:underline:hover {\n text-decoration-line: underline\n }\n\n .focus\\:underline:focus {\n text-decoration-line: underline\n }\n\n .focus-visible\\:underline:focus-visible {\n text-decoration-line: underline\n }\n\n .active\\:underline:active {\n text-decoration-line: underline\n }\n\n .hover\\:no-underline:hover {\n text-decoration: none\n }\n\n .focus\\:no-underline:focus {\n text-decoration: none\n }\n\n .active\\:no-underline:active {\n text-decoration: none\n }\n\n .flex-1 {\n flex: 1 1 0%\n }\n\n .shrink {\n flex-shrink: 1\n }\n\n .shrink-0 {\n flex-shrink: 0\n }\n\n .shrink-0\\! {\n flex-shrink: 0 !important\n }\n\n .grow, .grow-1 {\n flex-grow: 1\n }\n\n .basis-auto {\n flex-basis: auto\n }\n\n .flex-col {\n flex-direction: column\n }\n\n .focus-within\\:focusable:focus-within {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:focus, .focusable:focus-visible {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .focusable:not(:focus-visible) {\n outline: none\n }\n\n .peer:focus ~ .peer-focus\\:focusable, .peer:focus-visible ~ .peer-focus\\:focusable {\n outline: 2px solid var(--w-s-color-border-focus);\n outline-offset: var(--w-outline-offset, 1px)\n }\n\n .peer:not(:focus-visible) ~ .peer-focus\\:focusable {\n outline: none\n }\n\n .focusable-inset {\n --w-outline-offset: -3px\n }\n\n .gap-12 {\n gap: 1.2rem\n }\n\n .gap-8 {\n gap: .8rem\n }\n\n .gap-x-16 {\n column-gap: 1.6rem\n }\n\n .gap-y-16 {\n row-gap: 1.6rem\n }
53\n\n .row-span-2 {\n grid-row: span 2/span 2\n }\n\n .col-span-2 {\n grid-column: span 2/span 2\n }\n\n .col-span-3 {\n grid-column: span 3/span 3\n }\n\n .row-start-1 {\n grid-row-start: 1\n }\n\n .row-start-2 {\n grid-row-start: 2\n }\n\n .col-start-2 {\n grid-column-start: 2\n }\n\n .auto-rows-auto {\n grid-auto-rows: auto\n }\n\n .grid-flow-col {\n grid-auto-flow: column\n }\n\n .grid-rows-\\[20px_auto\\] {\n grid-template-rows:20px auto\n }\n\n .grid-rows-\\[auto_20px\\] {\n grid-template-rows:auto 20px\n }\n\n .grid-cols-\\[1fr_20px_1fr\\] {\n grid-template-columns:1fr 20px 1fr\n }\n\n .grid-cols-\\[1fr_20px\\] {\n grid-template-columns:1fr 20px\n }\n\n .grid-cols-\\[20px_1fr\\] {\n grid-template-columns:20px 1fr\n }\n\n .grid-cols-\\[auto_1fr_auto\\] {\n grid-template-columns:auto 1fr auto\n }\n\n .grid-cols-1 {\n grid-template-columns:repeat(1, minmax(0, 1fr))\n }\n\n .grid-cols-2 {\n grid-template-columns:repeat(2, minmax(0, 1fr))\n }\n\n .grid-cols-3 {\n grid-template-columns:repeat(3, minmax(0, 1fr))\n }\n\n .grid-cols-4 {\n grid-template-columns:repeat(4, minmax(0, 1fr))\n }\n\n .grid-cols-5 {\n grid-template-columns:repeat(5, minmax(0, 1fr))\n }\n\n .grid-cols-6 {\n grid-template-columns:repeat(6, minmax(0, 1fr))\n }\n\n .grid-cols-7 {\n grid-template-columns:repeat(7, minmax(0, 1fr))\n }\n\n .grid-cols-8 {\n grid-template-columns:repeat(8, minmax(0, 1fr))\n }\n\n .grid-cols-9 {\n grid-template-columns:repeat(9, minmax(0, 1fr))\n }\n\n .overflow-hidden {\n overflow: hidden\n }\n\n .overflow-x-hidden {\n overflow-x: hidden\n }\n\n .overflow-y-auto {\n overflow-y: auto\n }\n\n .list-none {\n list-style-type: none\n }\n\n .outline-\\[--w-s-color-border-negative\\]\\! {\n outline-color: var(--w-s-color-border-negative) !important\n }\n\n .outline-none {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .focus\\:outline-none:focus {\n outline: 2px solid transparent;\n outline-offset: 2px\n }\n\n .items-start {\n align-items: flex-start\n }\n\n .items-end {\n align-items: flex-end\n }\n\n .items-center {\n align-items: center\n }\n\n .self-center {\n align-self: center\n }\n\n .inset-0 {\n top: 0rem;\n right: 0rem;\n bottom: 0rem;\n left: 0rem\n }\n\n .-bottom-0 {\n bottom: -0rem\n }\n\n .bottom-0 {\n bottom: 0rem\n }\n\n .bottom-10 {\n bottom: 1rem\n }\n\n .bottom-16 {\n bottom: 1.6rem\n }\n\n .left-0 {\n left: 0rem\n }\n\n .left-4 {\n left: .4rem\n }\n\n .right-0 {\n right: 0rem\n }\n\n .right-8 {\n right: .8rem\n }\n\n .top-\\[1\\.92rem\\] {\n top: 1.92rem\n }\n\n .top-0 {\n top: 0rem\n }\n\n .top-20 {\n top: 2rem\n }\n\n .top-4 {\n top: .4rem\n }\n\n .top-8 {\n top: .8rem\n }\n\n .before\\:bottom-0:before {\n bottom: 0rem\n }\n\n .before\\:left-0:before {\n left: 0rem\n }\n\n .before\\:right-0:before {\n right: 0rem\n }\n\n .before\\:top-2:before {\n top: .2rem\n }\n\n .-bottom-\\[8px\\] {\n bottom: -8px\n }\n\n .-left-\\[8px\\] {\n left: -8px\n }\n\n .-right-\\[8px\\] {\n right: -8px\n }\n\n .-top-\\[8px\\] {\n top: -8px\n }\n\n .top-\\[19px\\] {\n top: 19px\n }\n\n .top-\\[30\\%\\] {\n top: 30%\n }\n\n .justify-end {\n justify-content: flex-end\n }\n\n .justify-center {\n justify-content: center\n }\n\n .justify-between {\n justify-content: space-between\n }\n\n .justify-items-center {\n justify-items: center\n }\n\n .justify-self-start {\n justify-self: start\n }\n\n .justify-self-end {\n justify-self: end\n }\n\n .justify-self-center {\n justify-self: center\n }\n\n .absolute {\n position: absolute\n }\n\n .fixed {\n position: fixed\n }\n\n .relative {\n position: relative\n }\n\n .open\\:fixed[open] {\n position: fixed\n }\n\n .before\\:absolute:before {\n position: absolute\n }\n\n .z-10, .peer:checked ~ .peer-checked\\:z-10 {\n z-index: 10\n }
53\n\n .z-30 {\n z-index: 30\n }\n\n .z-50 {\n z-index: 50\n }\n\n .hover\\:z-30:hover {\n z-index: 30\n }\n\n .\\!s-bg-selected {\n background-color: var(--w-s-color-background-selected) !important\n }\n\n .s-bg {\n background-color: var(--w-s-color-background)\n }\n\n .s-bg-disabled {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .s-bg-disabled-subtle {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .s-bg-info-subtle {\n background-color: var(--w-s-color-background-info-subtle)\n }\n\n .s-bg-inverted {\n background-color: var(--w-s-color-background-inverted)\n }\n\n .s-bg-negative {\n background-color: var(--w-s-color-background-negative)\n }\n\n .s-bg-negative-subtle {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .s-bg-positive-subtle {\n background-color: var(--w-s-color-background-positive-subtle)\n }\n\n .s-bg-primary, .peer:checked ~ .peer-checked\\:s-bg-primary {\n background-color: var(--w-s-color-background-primary)\n }\n\n .s-bg-selected {\n background-color: var(--w-s-color-background-selected)\n }\n\n .s-bg-subtle {\n background-color: var(--w-s-color-background-subtle)\n }\n\n .s-bg-warning-subtle {\n background-color: var(--w-s-color-background-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-negative-hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-bg-primary-hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-disabled:before {\n background-color: var(--w-s-color-background-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-negative:before {\n background-color: var(--w-s-color-background-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-bg-primary:before {\n background-color: var(--w-s-color-background-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-negative-hover:hover:before {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-bg-primary-hover:hover:before {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\!hover\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover) !important\n }\n\n .group:hover .group-hover\\:s-bg-primary-hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\:before\\:s-bg-hover:hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\:before\\:s-bg-negative-subtle-hover:hover:before {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\:s-bg-hover:hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .hover\\:s-bg-negative-hover:hover {\n background-color: var(--w-s-color-background-negative-hover)\n }\n\n .hover\\:s-bg-negative-subtle-hover:hover {\n background-color: var(--w-s-color-background-negative-subtle-hover)\n }\n\n .hover\\:s-bg-primary-hover:hover {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .hover\\:s-bg-selected-hover:hover {\n background-color: var(--w-s-color-background-selected-hover)\n }\n\n .peer:hover:not(:checked) ~ .peer-hover\\:peer-not-checked\\:s-bg-hover {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-bg-hover:before {\n background-color: var(--w-s-color-background-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-bg-negative-subtle:before {\n background-color: var(--w-s-color-background-negative-subtle)\n }\n\n .focus\\:s-bg-primary-hover:focus {\n background-color: var(--w-s-color-background-primary-hover)\n }\n\n .\\!active\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active) !important\n }\n\n .active\\:s-bg-active:active {\n background-color: var(--w-s-color-background-active)\n }\n\n .active\\:s-bg-negative-active:active {\n background-color: var(--w-s-color-background-negative-active)\n }\n\n .active\\:s-bg-negative-subtle-active:active {\n background-color: var(--w-s-color-background-negative-subtle-active)\n }\n\n .active\\:s-bg-primary-active:active {\n background-color: var(--w-s-color-background-primary-active)\n }\n\n .active\\:s-bg-selected-active:active {\n background-color: var(--w-s-color-background-selected-active)\n }\n\n .before\\:s-bg-disabled-subtle:before {\n background-color: var(--w-s-color-background-disabled-subtle)\n }\n\n .before\\:s-bg:before {\n background-color: var(--w-s-color-background)\n }\n\n .s-text {\n color: var(--w-s-color-text)\n }\n\n .s-text-disabled {\n color: var(--w-s-color-text-disabled)\n }\n\n .s-text-inverted, .peer:checked ~ .peer-checked\\:s-text-inverted {\n color: var(--w-s-color-text-inverted)\n }\n\n .s-text-inverted-static {\n color: var(--w-s-color-text-inverted-static)\n }\n\n .s-text-link {\n color: var(--w-s-color-text-link)\n }\n\n .s-text-negative {\n color: var(--w-s-color-text-negative)\n }\n\n .s-text-subtle {\n color: var(--w-s-color-text-subtle)\n }\n\n .hover\\:s-text-link:hover {\n color: var(--w-s-color-text-link)\n }\n\n .active\\:s-text:active {\n color: var(--w-s-color-text)\n }\n\n .placeholder\\:s-text-placeholder::placeholder {\n color: var(--w-s-color-text-placeholder)\n }\n\n .s-icon {\n color: var(--w-s-color-icon)\n }\n\n .s-icon-info {\n color: var(--w-s-color-icon-info)\n }\n\n .s-icon-inverted {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-icon-negative {\n color: var(--w-s-color-icon-negative)\n }\n\n .s-icon-positive {\n color: var(--w-s-color-icon-positive)\n }\n\n .s-icon-warning {\n color: var(--w-s-color-icon-warning)\n }\n\n .hover\\:s-icon-hover:hover {\n color: var(--w-s-color-icon-hover)\n }\n\n .active\\:s-icon-active:active {\n color: var(--w-s-color-icon-active)\n }\n\n .before\\:s-icon-inverted:before {\n color: var(--w-s-color-icon-inverted)\n }\n\n .s-border {\n border-color: var(--w-s-color-border)\n }\n\n .s-border-disabled {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .s-border-info-subtle {\n border-color: var(--w-s-color-border-info-subtle)\n }\n\n .s-border-l-info {\n border-left-color: var(--w-s-color-border-info)\n }\n\n .s-border-l-negative {\n border-left-color: var(--w-s-color-border-negative)\n }\n\n .s-border-l-positive {\n border-left-color: var(--w-s-color-border-positive)\n }\n\n .s-border-l-warning {\n border-left-color: var(--w-s-color-border-warning)\n }\n\n .s-border-negative {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-border-negative-subtle {\n border-color: var(--w-s-color-border-negative-subtle)\n }\n\n .s-border-positive-subtle {\n border-color: var(--w-s-color-border-positive-subtle)\n }\n\n .s-border-primary, .peer:checked ~ .peer-checked\\:s-border-primary {\n border-color: var(--w-s-color-border-primary)\n }\n\n .s-border-selected {\n border-color: var(--w-s-color-border-selected)\n }\n\n .s-border-warning-subtle {\n border-color: var(--w-s-color-border-warning-subtle)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-primary-hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .peer:checked:hover ~ .peer-checked\\:peer-hover\\:before\\:s-border-selected-hover:before {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:checked ~ .peer-checked\\:before\\:s-border-selected:before {\n border-color: var(--w-s-color-border-selected)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:indeterminate ~ .peer-indeterminate\\:hover\\:before\\:s-border-primary-hover:hover:before {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .group:hover .group-hover\\:s-border-selected-hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .hover\\:before\\:s-border-negative-hover:hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\:before\\:s-border-primary:hover:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\:s-border-disabled:hover {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .hover\\:s-border-hover:hover {\n border-color: var(--w-s-color-border-hover)\n }\n\n .hover\\:s-border-negative-hover:hover {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .hover\\:s-border-primary-hover:hover {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .hover\\:s-border-primary:hover {\n border-color: var(--w-s-color-border-primary)\n }\n\n .hover\\:s-border-selected-hover:hover {\n border-color: var(--w-s-color-border-selected-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-border-negative-hover:before {\n border-color: var(--w-s-color-border-negative-hover)\n }\n\n .peer:hover ~ .peer-hover\\:before\\:s-border-primary:before {\n border-color: var(--w-s-color-border-primary)\n }\n\n .focus\\:s-border-primary-hover:focus {\n border-color: var(--w-s-color-border-primary-hover)\n }\n\n .active\\:s-border-active:active {\n border-color: var(--w-s-color-border-active)\n }\n\n .active\\:s-border-disabled:active {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .active\\:s-border-primary-active:active {\n border-color: var(--w-s-color-border-primary-active)\n }\n\n .active\\:s-border-selected-active:active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .active\\:s-border-selected:active {\n border-color: var(--w-s-color-border-selected)\n }\n\n .group:active .group-active\\:s-border-active {\n border-color: var(--w-s-color-border-active)\n }\n\n .group:active .group-active\\:s-border-selected-active {\n border-color: var(--w-s-color-border-selected-active)\n }\n\n .before\\:s-border-disabled:before {\n border-color: var(--w-s-color-border-disabled)\n }\n\n .before\\:s-border-negative:before {\n border-color: var(--w-s-color-border-negative)\n }\n\n .s-surface-sunken {\n background-color: var(--w-s-color-surface-sunken)\n }\n\n .s-surface-elevated-200 {\n background-color: var(--w-s-color-surface-elevated-200);\n box-shadow: var(--w-s-shadow-surface-elevated-200)\n }\n\n .hover\\:s-surface-elevated-200-hover:hover {\n background-color: var(--w-s-color-surface-elevated-200-hover);\n box-shadow: var(--w-s-shadow-surface-elevated-200-hover)\n }\n\n .active\\:s-surface-elevated-200-active:active {\n background-color: var(--w-s-color-surface-elevated-200-active);\n box-shadow: var(--w-s-shadow-surface-elevated-200-active)\n }\n\n
53 .drop-shadow-m {\n filter: drop-shadow(rgba(64, 64, 64, .24) 0 3px 8px) drop-shadow(rgba(64, 64, 64, .16) 0 3px 6px)\n }\n\n .shadow-m {\n box-shadow: var(--w-shadow-m)\n }\n\n .shadow-s {\n box-shadow: var(--w-shadow-s)\n }\n\n .shadow-\\[--w-shadow-slider\\] {\n box-shadow: var(--w-shadow-slider)\n }\n\n .hover\\:shadow-\\[--w-shadow-slider-handle-hover\\]:hover {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .focus\\:shadow-\\[--w-shadow-slider-handle-hover\\]:focus {\n box-shadow: var(--w-shadow-slider-handle-hover)\n }\n\n .active\\:shadow-\\[--w-shadow-slider-handle-active\\]:active {\n box-shadow: var(--w-shadow-slider-handle-active)\n }\n\n .h-0 {\n height: 0rem\n }\n\n .h-16 {\n height: 1.6rem\n }\n\n .h-2 {\n height: .2rem\n }\n\n .h-20 {\n height: 2rem\n }\n\n .h-24 {\n height: 2.4rem\n }\n\n .h-4 {\n height: .4rem\n }\n\n .h-44 {\n height: 4.4rem\n }\n\n .h-6 {\n height: .6rem\n }\n\n .h-8 {\n height: .8rem\n }\n\n .h-full {\n height: 100%\n }\n\n .h-unset {\n height: unset\n }\n\n .max-h-unset {\n max-height: unset\n }\n\n .max-w-full {\n max-width: 100%\n }\n\n .max-w-max {\n max-width: max-content\n }\n\n .max-w-unset {\n max-width: unset\n }\n\n .min-h-32 {\n min-height: 3.2rem\n }\n\n .min-h-40 {\n min-height: 4rem\n }\n\n .min-w-16 {\n min-width: 1.6rem\n }\n\n .min-w-32 {\n min-width: 3.2rem\n }\n\n .w-16 {\n width: 1.6rem\n }\n\n .w-2 {\n width: .2rem\n }\n\n .w-20 {\n width: 2rem\n }\n\n .w-24 {\n width: 2.4rem\n }\n\n .w-32 {\n width: 3.2rem\n }\n\n .w-40 {\n width: 4rem\n }\n\n .w-44 {\n width: 4.4rem\n }\n\n .w-8 {\n width: .8rem\n }\n\n .w-full {\n width: 100%\n }\n\n .w-max {\n width: max-content\n }\n\n .w-unset {\n width: unset\n }\n\n .before\\:h-20:before {\n height: 2rem\n }\n\n .before\\:h-full:before {\n height: 100%\n }\n\n .before\\:w-20:before {\n width: 2rem\n }\n\n .before\\:w-32:before {\n width: 3.2rem\n }\n\n .h-\\[--w-modal-height\\] {\n height: var(--w-modal-height)\n }\n\n .h-\\[14px\\] {\n height: 14px\n }\n\n .h-\\[16px\\] {\n height: 16px\n }\n\n .max-h-\\[--w-modal-max-height\\] {\n max-height: var(--w-modal-max-height)\n }\n\n .min-h-\\[--w-modal-min-height\\] {\n min-height: var(--w-modal-min-height)\n }\n\n .min-h-\\[32px\\] {\n min-height: 32px\n }\n\n .min-h-\\[40px\\] {\n min-height: 40px\n }\n\n .min-h-\\[42\\] {\n min-height: 4.2rem\n }\n\n .min-h-\\[44px\\] {\n min-height: 44px\n }\n\n .min-w-\\[32px\\] {\n min-width: 32px\n }\n\n .min-w-\\[40px\\] {\n min-width: 40px\n }\n\n .min-w-\\[44px\\] {\n min-width: 44px\n }\n\n .w-\\[--w-modal-width\\] {\n width: var(--w-modal-width)\n }\n\n .w-\\[14px\\] {\n width: 14px\n }\n\n .w-\\[16px\\] {\n width: 16px\n }\n\n .space-x-8 > :not([hidden]) ~ :not([hidden]) {\n --w-space-x-reverse: 0;\n margin-left: calc(.8rem * calc(1 - var(--w-space-x-reverse)));\n margin-right: calc(.8rem * var(--w-space-x-reverse))\n }\n\n .space-y-16 > :not([hidden]) ~ :not([hidden]) {\n --w-space-y-reverse: 0;\n margin-top: calc(1.6rem * calc(1 - var(--w-space-y-reverse)));\n margin-bottom: calc(1.6rem * var(--w-space-y-reverse))\n }\n\n .m-0 {\n margin: 0rem\n }\n\n .m-auto {\n margin: auto\n }\n\n .-mx-16 {\n margin-left: -1.6rem;\n margin-right: -1.6rem\n }\n\n .mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .mx-8 {\n margin-left: .8rem;\n margin-right: .8rem\n }\n\n .mx-auto {\n margin-left: auto;\n margin-right: auto\n }\n\n .-mb-1 {\n margin-bottom: -.1rem\n }\n\n .-ml-8 {\n margin-left: -.8rem\n }\n\n .-mr-1 {\n margin-right: -.1rem\n }\n\n .-mr-8 {\n margin-right: -.8rem\n }\n\n .-mt-2 {\n margin-top: -.2rem\n }\n\n .-mt-4 {\n margin-top: -.4rem\n }\n\n .last-child\\:mb-0 > :last-child, .mb-0 {\n margin-bottom: 0rem\n }\n\n .mb-32 {\n margin-bottom: 3.2rem\n }\n\n .ml-8 {\n margin-left: .8rem\n }\n\n .ml-auto {\n margin-left: auto\n }\n\n .mr-8 {\n margin-right: .8rem\n }\n\n .mt-16 {\n margin-top: 1.6rem\n }\n\n .mt-4 {\n margin-top: .4rem\n }\n\n .group:not(:first-child) .group-not-first\\:-ml-2 {\n margin-left: -.2rem\n }\n\n .last\\:mb-0:last-child {\n margin-bottom: 0rem\n }\n\n .last\\:mr-0:last-child {\n margin-right: 0rem\n }\n\n .m-\\[8px\\] {\n margin: 8px\n }\n\n .p-0 {\n padding: 0rem\n }\n\n .p-16 {\n padding: 1.6rem\n }\n\n .p-4 {\n padding: .4rem\n }\n\n .p-8 {\n padding: .8rem\n }\n\n .px-0 {\n padding-left: 0rem;\n padding-right: 0rem\n }\n\n .px-1 {\n padding-left: .1rem;\n padding-right: .1rem\n }\n\n .px-12 {\n padding-left: 1.2rem;\n padding-right: 1.2rem\n }\n\n .px-14 {\n padding-left: 1.4rem;\n padding-right: 1.4rem\n }\n\n .px-16 {\n padding-left: 1.6rem;\n padding-right: 1.6rem\n }\n\n .px-8 {\n padding-left: .8rem;\n padding-right: .8rem\n }\n\n .py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .py-1 {\n padding-top: .1rem;\n padding-bottom: .1rem\n }\n\n .py-10 {\n padding-top: 1rem;\n padding-bottom: 1rem\n }\n\n .py-12 {\n padding-top: 1.2rem;\n padding-bottom: 1.2rem\n }\n\n .py-2 {\n padding-top: .2rem;\n padding-bottom: .2rem\n }\n\n .py-4 {\n padding-top: .4rem;\n padding-bottom: .4rem\n }\n\n .py-6 {\n padding-top: .6rem;\n padding-bottom: .6rem\n }\n\n .py-8 {\n padding-top: .8rem;\n padding-bottom: .8rem\n }\n\n .pb-0 {\n padding-bottom: 0rem\n }\n\n .pb-32 {\n padding-bottom: 3.2rem\n }\n\n .pb-4 {\n padding-bottom: .4rem\n }\n\n .pb-8 {\n padding-bottom: .8rem\n }\n\n .pl-0 {\n padding-left: 0rem\n }\n\n .pl-1 {\n padding-left: .1rem\n }\n\n .pl-12 {\n padding-left: 1.2rem\n }\n\n .pl-28 {\n padding-left: 2.8rem\n }\n\n .pl-4 {\n padding-left: .4rem\n }\n\n .pl-8 {\n padding-left: .8rem\n }\n\n .pr-12 {\n padding-right: 1.2rem\n }\n\n .pr-14 {\n padding-right: 1.4rem\n }\n\n .pr-2 {\n padding-right: .2rem\n }\n\n .pr-32 {\n padding-right: 3.2rem\n }\n\n .pr-40 {\n padding-right: 4rem\n }\n\n .pt-0 {\n padding-top: 0rem\n }\n\n .pt-1 {\n padding-top: .1rem\n }\n\n .pt-16 {\n padding-top: 1.6rem\n }\n\n .pt-24 {\n padding-top: 2.4rem\n }\n\n .pt-8 {\n padding-top: .8rem\n }\n\n .group\\/step:last-child .group-last\\/step\\:last\\:pb-0:last-child {\n padding-bottom: 0rem\n }\n\n .last\\:pb-1:last-child {\n padding-bottom: .1rem\n }\n\n .last\\:pr-1:last-child {\n padding-right: .1rem\n }\n\n .p-\\[8px\\] {\n padding: 8px\n }\n\n .px-\\[15px\\] {\n padding-left: 15px;\n padding-right: 15px\n }\n\n .px-\\[8px\\] {\n padding-left: 8px;\n padding-right: 8px\n }\n\n .py-\\[11px\\] {\n padding-top: 11px;\n padding-bottom: 11px\n }\n\n .py-\\[5px\\] {\n padding-top: 5px;\n padding-bottom: 5px\n }\n\n .py-\\[7px\\] {\n padding-top: 7px;\n padding-bottom: 7px\n }\n\n .pl-\\[var\\(--w-prefix-width\\,_40px\\)\\] {\n padding-left: var(--w-prefix-width, 40px)\n }\n\n .invisible {\n visibility: hidden\n }\n\n .backface-hidden {\n backface-visibility: hidden\n }\n\n .break-words {\n overflow-wrap: break-word\n }\n\n .before\\:content-\\[\\"ââ¬â\\"\\]:before {\n content: "ââ¬â"\n }\n\n .before\\:content-\\[\\"\\"\\]:before {\n content: ""\n }\n\n .cursor-default {\n cursor: default\n }\n\n .cursor-pointer {\n cursor: pointer\n }\n\n .antialiased {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n font-smoothing: grayscale\n }\n\n .font-bold {\n font-weight: 700\n }\n\n .before\\:font-bold:before {\n font-weight: 700\n }\n\n .font-normal {\n font-weight: 400\n }\n\n .pointer-events-auto {\n pointer-events: auto\n }\n\n .pointer-events-none {\n pointer-events: none\n }\n\n .before\\:pointer-events-none:before {\n pointer-events: none\n }\n\n .pb-safe-\\[32\\] {\n padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px))\n }\n\n .sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0\n }\n\n .touch-pan-y {\n touch-action: pan-y\n }\n\n .select-none {\n -webkit-user-select: none;\n user-select: none\n }\n\n .translate-x-20 {\n --w-translate-x: 2rem;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .translate-z-0 {\n --w-translate-z: 0rem;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .-rotate-180, .part-\\[w-icon-chevron-down-16-part\\]\\:-rotate-180::part(w-icon-chevron-down-16-part) {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: -180deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-up-16-part\\]\\:rotate-180::part(w-icon-chevron-up-16-part), .rotate-180 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 180deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .rotate-90 {\n --w-rotate-x: 0;\n --w-rotate-y: 0;\n --w-rotate-z: 0;\n --w-rotate: 90deg;\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) ske
53wY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform::part(w-icon-chevron-up-16-part), .transform {\n transform: translate(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transform-gpu::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transform-gpu::part(w-icon-chevron-up-16-part), .transform-gpu {\n transform: translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotate(var(--w-rotate-z)) skew(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))\n }\n\n .part-\\[w-icon-chevron-down-16-part\\]\\:transition-transform::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:transition-transform::part(w-icon-chevron-up-16-part), .transition-transform {\n transition-property: transform;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-300 {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .3s\n }\n\n .transition-all {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-colors {\n transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .transition-shadow {\n transition-property: box-shadow;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .before\\:transition-all:before {\n transition-property: all;\n transition-timing-function: cubic-bezier(.4, 0, .2, 1);\n transition-duration: .15s\n }\n\n .duration-300 {\n transition-duration: .3s\n }\n\n .ease-in-out, .part-\\[w-icon-chevron-down-16-part\\]\\:ease-in-out::part(w-icon-chevron-down-16-part), .part-\\[w-icon-chevron-up-16-part\\]\\:ease-in-out::part(w-icon-chevron-up-16-part) {\n transition-timing-function: cubic-bezier(.4, 0, .2, 1)\n }\n\n .text-m {\n font-size: var(--w-font-size-m);\n line-height: var(--w-line-height-m)\n }\n\n .text-s {\n font-size: var(--w-font-size-s);\n line-height: var(--w-line-height-s)\n }\n\n .text-xs {\n font-size: var(--w-font-size-xs);\n line-height: var(--w-line-height-xs)\n }\n\n .leading-m {\n line-height: var(--w-line-height-m)\n }\n\n .before\\:leading-xs:before {\n line-height: var(--w-line-height-xs)\n }\n\n .leading-\\[24\\] {\n line-height: 2.4rem\n }\n\n @media (max-width: 479.9px) {\n .lt-sm\\:rounded-b-0 {\n border-bottom-left-radius: 0;\n border-bottom-right-radius: 0\n }\n }\n @media (min-width: 480px) {\n .sm\\:border-b-0 {\n border-bottom-width: 0\n }
53\n\n .sm\\:rounded-8 {\n border-radius: 8px\n }\n\n .sm\\:rounded-b-8 {\n border-bottom-left-radius: 8px;\n border-bottom-right-radius: 8px\n }\n\n .sm\\:gap-16 {\n gap: 1.6rem\n }\n\n .sm\\:place-content-center {\n place-content: center\n }\n\n .sm\\:place-items-center {\n place-items: center\n }\n\n .sm\\:h-24 {\n height: 2.4rem\n }\n\n .sm\\:min-h-48 {\n min-height: 4.8rem\n }\n\n .sm\\:w-24 {\n width: 2.4rem\n }\n\n .sm\\:min-h-\\[32px\\] {\n min-height: 32px\n }\n\n .sm\\:min-h-\\[44px\\] {\n min-height: 44px\n }\n\n .sm\\:min-h-\\[45\\] {\n min-height: 4.5rem\n }\n\n .sm\\:min-w-\\[32px\\] {\n min-width: 32px\n }\n\n .sm\\:min-w-\\[44px\\] {\n min-width: 44px\n }\n\n .sm\\:mx-0 {\n margin-left: 0rem;\n margin-right: 0rem\n }\n\n .sm\\:mx-16 {\n margin-left: 1.6rem;\n margin-right: 1.6rem\n }\n\n .sm\\:-ml-12 {\n margin-left: -1.2rem\n }
53\n\n .sm\\:-mr-12 {\n margin-right: -1.2rem\n }\n\n .sm\\:-mt-8 {\n margin-top: -.8rem\n }\n\n .sm\\:px-32 {\n padding-left: 3.2rem;\n padding-right: 3.2rem\n }\n\n .sm\\:py-0 {\n padding-top: 0rem;\n padding-bottom: 0rem\n }\n\n .sm\\:pb-32 {\n padding-bottom: 3.2rem\n }\n\n .sm\\:pt-24 {\n padding-top: 2.4rem\n }\n\n .sm\\:pt-32 {\n padding-top: 3.2rem\n }\n }\n @media (min-width: 768px) {\n .md\\:block {\n display: block\n }\n\n .md\\:hidden {\n display: none\n }\n }\n ');const zr=JSON.parse('{"tooltip.aria.description":["En sort taleboble med flere oplysninger"],"tooltip.aria.pointingDown":["peger nedad"],"tooltip.aria.pointingLeft":["peger til venstre"],"tooltip.aria.pointingRight":["peger til højre"],"tooltip.aria.pointingUp":["peger opad"]}'),Dr=JSON.parse('{"tooltip.aria.description":["A black speech bubble providing complementary information"],"tooltip.aria.pointingDown":["pointing down"],"tooltip.aria.pointingLeft":["pointing left"],"tooltip.aria.pointingRight":["pointing right"],"tooltip.aria.pointingUp":["pointing up"]}'),Ar=JSON.parse('{"tooltip.aria.description":["Musta puhekupla, joka tarjoaa täydentävää tietoa"],"tooltip.aria.pointingDown":["osoittaa alas"],"tooltip.aria.pointingLeft":["osoittaa vasemmalle"],"tooltip.aria.pointingRight":["osoittaa oikealle"],"tooltip.aria.pointingUp":["osoittaa ylös"]}'),Pr=JSON.parse('{"tooltip.aria.description":["En svart taleboble som forklarer konteksten"],"tooltip.aria.pointingDown":["peker ned"],"tooltip.aria.pointingLeft":["peker til venstre"],"tooltip.aria.pointingRight":["peker til høyre"],"tooltip.aria.pointingUp":["peker opp"]}'),Tr=JSON.parse('{"tooltip.aria.description":["En svart pratbubbla som ger kompletterande information"],"tooltip.aria.pointingDown":["pekar ned"],"tooltip.aria.pointingLeft":["pekar vänster"],"tooltip.aria.pointingRight":["pekar höger"],"tooltip.aria.pointingUp":["pekar upp"]}'),Mr=a`:host{--_background-color:var(--w-c-tooltip-bg,var(--w-color-tooltip-background-static));--_box-shadow:var(--w-c-tooltip-box-shadow,var(--w-shadow-m));--_color:var(--w-c-tooltip-color,var(--w-s-color-text-inverted-static));--_z-index:var(--w-c-tooltip-z-index,30)}[part=tooltip]{box-shadow:var(--_box-shadow);background:var(--_background-color);width:max-content;color:var(--_color);font-size:var(--w-font-size-s);font-weight:400;line-height:var(--w-line-height-s);z-index:var(--_z-index);border-radius:4px;padding:6px 8px;position:absolute;top:0;left:0}[part=arrow]{z-index:-1;width:23px;height:23px;position:absolute}[part=beak]{background:var(--_background-color);position:absolute}[part=hover-bridge]{z-index:calc(var(--_z-index) + 1);clip-path:polygon(var(--_hover-bridge-top-left-x,0) var(--_hover-bridge-top-left-y,0), var(--_hover-bridge-top-right-x,0) var(--_hover-bridge-top-right-y,0), var(--_hover-bridge-bottom-right-x,0) var(--_hover-bridge-bottom-right-y,0), var(--_hover-bridge-bottom-left-x,0) var(--_hover-bridge-bottom-left-y,0));position:fixed;inset:0}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;var Vr=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Lr extends se{static#e=this.styles=[Or,Mr];#t;get#r(){let e=Ye.t({id:"tooltip.aria.description",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});if(!this.noArrow)switch(e+=" ",this.#t){case"top-start":case"top":case"top-end":e+=Ye._({id:"tooltip.aria.pointingDown",message:"pointing down",comment:"Screenreader description for downwards arrow direction in the tooltip component"});break;case"right-start":case"right":case"right-end":e+=Ye._({id:"tooltip.aria.pointingLeft",message:"pointing left",comment:"Screenreader description for left arrow direction in the tooltip component"});break;case"bottom-start":case"bottom":case"bottom-end":e+=Ye._({id:"tooltip.aria.pointingUp",message:"pointing up",comment:"Screenreader description for upwards arrow direction in the tooltip component"});break;case"left-start":case"left":case"left-end":e+=Ye._({id:"tooltip.aria.pointingRight",message:"pointing right",comment:"Screenreader description for right arrow direction in the tooltip component"})}return e}#o;#i;constructor(){super(),this.for="",this.noArrow=!1,this.open=!1,this.placement="top",this.#t="top",this.showDelay=150,this.hideDelay=0,this.target=null,this.#o=null,this.handleBlur=()=>{this.hide()},this.handleFocus=()=>{this.show()},this.handleMouseOver=()=>{clearTimeout(this.#i),this.#i=window.setTimeout(()=>{this.show()},this.showDelay)},this.handleKeydown=e=>{"Escape"===e.key&&(e.preventDefault(),this.hide())},this.handleMouseOut=e=>{const t=e.relatedTarget;if(t){const e=this.contains(t),r=this.target?.contains(t);if(e||r)return}clearTimeout(this.#i),this.#i=window.setTimeout(()=>{this.hide()},this.hideDelay)},kr(Dr,Pr,Ar,zr,Tr)}connectedCallback(){super.connectedCallback(),this.for&&this.#n(),this.addEventListener("mouseout",this.handleMouseOut)}disconnectedCallback(){super.disconnectedCallback(),this.#a?.(),document.removeEventListener("keydown",this.handleKeydown)}updated(e){e.has("for")&&this.#n(),e.has("open")&&this.#s()}firstUpdated(){this.tooltip.hidden=!this.open}#n(){const e=this.getRootNode?.();if(!e)return;const t=this.for?e.getElementById(this.for):null,r=this.target;t!==this.target&&(t&&(t.addEventListener("blur",this.handleBlur),t.addEventListener("focus",this.handleFocus),t.addEventListener("mouseover",this.handleMouseOver),t.addEventListener("mouseout",this.handleMouseOut)),r&&(r.removeEventListener("blur",this.handleBlur),r.removeEventListener("focus",this.handleFocus),r.removeEventListener("mouseover",this.handleMouseOver),r.removeEventListener("mouseout",this.handleMouseOut)),this.target=t)}async hide(){this.open&&(this.open=!1)}async show(){this.open||(this.open=!0)}#s(){this.tooltip&&(this.open?(this.tooltip.hidden=!1,this.hoverBridge.hidden=!1,document.addEventListener("keydown",this.handleKeydown),this.updateComplete.then(()=>{this.#l()})):(this.hoverBridge.hidden=!0,this.tooltip.hidden=!0,this.#a(),document.removeEventListener("keydown",this.handleKeydown)))}#l(){this.tooltip&&this.target&&(this.#d(),this.#o=cr(this.target,this.tooltip,()=>{this.#d()}))}#a(){this.#o?.(),this.#o=null}async#d(){if(!this.tooltip||!this.target)return;const e=[hr({mainAxis:8}),ur(),pr({padding:8})],t=!this.noArrow&&this.arrow;t&&e.push(mr({element:this.arrow}));const{x:r,y:o,placement:i,middlewareData:n}=await vr(this.target,this.tooltip,{placement:this.placement,middleware:e});if(this.#t=i,Object.assign(this.tooltip.style,{left:`${r.toFixed(1)}px`,top:`${o.toFixed(1)}px`}),t){let e="",t=0,r=0;const o=23,a=8.5;let s=a/2+"px";"top"===i?(e="polygon(43% 82.3%, 24.6% 29.3%, 23.9% 27.4%, 23.3% 25.6%, 22.6% 23.9%, 21.9% 22.2%, 21.1% 20.6%, 20.4% 19%, 19.7% 17.5%, 18.9% 16.1%, 18.1% 14.7%, 17.4% 13.4%, 16.6% 12.1%, 15.8% 10.9%, 15% 9.7%, 14.1% 8.6%, 13.3% 7.6%, 12.5% 6.6%, 11.6% 5.7%, 10.8% 4.9%, 9.9% 4.1%, 9% 3.4%, 8.1% 2.8%, 7.3% 2.2%, 6.4% 1.7%, 5.5% 1.2%, 4.6% 0.9%, 3.7% 0.6%, 2.8% 0.3%, 1.8% 0.1%, 0.9% 0%, 0% 0%, 98.4% 0%, 97.5% 0%, 96.5% 0.1%, 95.6% 0.3%, 94.7% 0.6%, 93.8% 0.9%, 92.9% 1.2%, 92% 1.7%, 91.1% 2.2%, 90.2% 2.8%, 89.4% 3.4%, 88.5% 4.1%, 87.6% 4.9%, 86.8% 5.7%, 85.9% 6.6%, 85.1% 7.6%, 84.2% 8.6%, 83.4% 9.7%, 82.6% 10.9%, 81.8% 12.1%, 81% 13.4%, 80.2% 14.7%, 79.5% 16.1%, 78.7% 17.5%, 78% 19%, 77.2% 20.6%, 76.5% 22.2%, 75.8% 23.9%, 75.1% 25.6%, 74.4% 27.4%, 73.8% 29.3%, 55.3% 82.3%, 55% 83.3%, 54.6% 84.1%, 54.3% 85%, 53.9% 85.7%, 53.5% 86.4%, 53.1% 87%, 52.7% 87.6%, 52.3% 88.1%, 51.8% 88.5%, 51.4% 88.8%, 51% 89.1%, 50.5% 89.4%, 50.1% 89.5%, 49.6% 89.6%, 49.2% 89.6%, 48.7% 89.6%, 48.3% 89.5%, 47.9% 89.4%, 47.4% 89.1%, 47% 88.8%, 46.6% 88.5%, 46.1% 88.1%, 45.7% 87.6%, 45.3% 87%, 44.9% 86.4%, 44.5% 85.7%, 44.1% 85%, 43.7% 84.1%, 43.4% 83.3%)",t=o,r=a,s="3.5px"):"bottom"===i?(e="polygon(55.3% 7.3%, 73.8% 60.4%, 74.4% 62.2%, 75.1% 64%, 75.8% 65.7%, 76.5% 67.4%, 77.2% 69%, 78% 70.6%, 78.7% 72.1%, 79.5% 73.6%, 80.2% 75%, 81% 76.3%, 81.8% 77.6%, 82.6% 78.8%, 83.4% 79.9%, 84.2% 81%, 85.1% 82%, 85.9% 83%, 86.8% 83.9%, 87.6% 84.7%, 88.5% 85.5%, 89.4% 86.2%, 90.2% 86.9%, 91.1% 87.4%, 92% 88%, 92.9% 88.4%, 93.8% 88.8%, 94.7% 89.1%, 95.6% 89.3%, 96.5% 89.5%, 97.5% 89.6%, 98.4% 89.6%, 0% 89.6%, 0.9% 89.6%, 1.8% 89.5%, 2.8% 89.3%, 3.7% 89.1%, 4.6% 88.8%, 5.5% 88.4%, 6.4% 88%, 7.3% 87.4%, 8.1% 86.9%, 9% 86.2%, 9.9% 85.5%, 10.8% 84.7%, 11.6% 83.9%, 12.5% 83%, 13.3% 82%, 14.1% 81%, 15% 79.9%, 15.8% 78.8%, 16.6% 77.6%, 17.4% 76.3%, 18.1% 75%, 18.9% 73.6%, 19.7% 72.1%, 20.4% 70.6%, 21.1% 69%, 21.9% 67.4%, 22.6% 65.7%, 23.3% 64%, 23.9% 62.2%, 24.6% 60.4%, 43% 7.3%, 43.4% 6.4%, 43.7% 5.5%, 44.1% 4.7%, 44.5% 3.9%, 44.9% 3.3%, 45.3% 2.6%, 45.7% 2.1%, 46.1% 1.6%, 46.6% 1.2%, 47% 0.8%, 47.4% 0.5%, 47.9% 0.3%, 48.3% 0.1%, 48.7% 0%, 49.2% 0%, 49.6% 0%, 50.1% 0.1%, 50.5% 0.3%, 51% 0.5%, 51.4% 0.8%, 51.8% 1.2%, 52.3% 1.6%, 52.7% 2.1%, 53.1% 2.6%, 53.5% 3.3%, 53.9
53% 3.9%, 54.3% 4.7%, 54.6% 5.5%, 55% 6.4%)",t=o,r=a):"right"===i?(e="polygon(7.3% 43%, 60.4% 24.6%, 62.2% 23.9%, 64% 23.3%, 65.7% 22.6%, 67.4% 21.9%, 69% 21.1%, 70.6% 20.4%, 72.1% 19.7%, 73.6% 18.9%, 75% 18.1%, 76.3% 17.4%, 77.6% 16.6%, 78.8% 15.8%, 79.9% 15%, 81% 14.1%, 82% 13.3%, 83% 12.5%, 83.9% 11.6%, 84.7% 10.8%, 85.5% 9.9%, 86.2% 9%, 86.9% 8.1%, 87.4% 7.3%, 88% 6.4%, 88.4% 5.5%, 88.8% 4.6%, 89.1% 3.7%, 89.3% 2.8%, 89.5% 1.8%, 89.6% 0.9%, 89.6% 0%, 89.6% 98.4%, 89.6% 97.5%, 89.5% 96.5%, 89.3% 95.6%, 89.1% 94.7%, 88.8% 93.8%, 88.4% 92.9%, 88% 92%, 87.4% 91.1%, 86.9% 90.2%, 86.2% 89.4%, 85.5% 88.5%, 84.7% 87.6%, 83.9% 86.8%, 83% 85.9%, 82% 85.1%, 81% 84.2%, 79.9% 83.4%, 78.8% 82.6%, 77.6% 81.8%, 76.3% 81%, 75% 80.2%, 73.6% 79.5%, 72.1% 78.7%, 70.6% 78%, 69% 77.2%, 67.4% 76.5%, 65.7% 75.8%, 64% 75.1%, 62.2% 74.4%, 60.4% 73.8%, 7.3% 55.3%, 6.4% 55%, 5.5% 54.6%, 4.7% 54.3%, 3.9% 53.9%, 3.3% 53.5%, 2.6% 53.1%, 2.1% 52.7%, 1.6% 52.3%, 1.2% 51.8%, 0.8% 51.4%, 0.5% 51%, 0.3% 50.5%, 0.1% 50.1%, 0% 49.6%, 0% 49.2%, 0% 48.7%, 0.1% 48.3%, 0.3% 47.9%, 0.5% 47.4%, 0.8% 47%, 1.2% 46.6%, 1.6% 46.1%, 2.1% 45.7%, 2.6% 45.3%, 3.3% 44.9%, 3.9% 44.5%, 4.7% 44.1%, 5.5% 43.7%, 6.4% 43.4%)",t=a,r=o):"left"===i&&(e="polygon(82.3% 55.3%, 29.3% 73.8%, 27.4% 74.4%, 25.6% 75.1%, 23.9% 75.8%, 22.2% 76.5%, 20.6% 77.2%, 19% 78%, 17.5% 78.7%, 16.1% 79.5%, 14.7% 80.2%, 13.4% 81%, 12.1% 81.8%, 10.9% 82.6%, 9.7% 83.4%, 8.6% 84.2%, 7.6% 85.1%, 6.6% 85.9%, 5.7% 86.8%, 4.9% 87.6%, 4.1% 88.5%, 3.4% 89.4%, 2.8% 90.2%, 2.2% 91.1%, 1.7% 92%, 1.2% 92.9%, 0.9% 93.8%, 0.6% 94.7%, 0.3% 95.6%, 0.1% 96.5%, 0% 97.5%, 0% 98.4%, 0% 0%, 0% 0.9%, 0.1% 1.8%, 0.3% 2.8%, 0.6% 3.7%, 0.9% 4.6%, 1.2% 5.5%, 1.7% 6.4%, 2.2% 7.3%, 2.8% 8.1%, 3.4% 9%, 4.1% 9.9%, 4.9% 10.8%, 5.7% 11.6%, 6.6% 12.5%, 7.6% 13.3%, 8.6% 14.1%, 9.7% 15%, 10.9% 15.8%, 12.1% 16.6%, 13.4% 17.4%, 14.7% 18.1%, 16.1% 18.9%, 17.5% 19.7%, 19% 20.4%, 20.6% 21.1%, 22.2% 21.9%, 23.9% 22.6%, 25.6% 23.3%, 27.4% 23.9%, 29.3% 24.6%, 82.3% 43%, 83.3% 43.4%, 84.1% 43.7%, 85% 44.1%, 85.7% 44.5%, 86.4% 44.9%, 87% 45.3%, 87.6% 45.7%, 88.1% 46.1%, 88.5% 46.6%, 88.8% 47%, 89.1% 47.4%, 89.4% 47.9%, 89.5% 48.3%, 89.6% 48.7%, 89.6% 49.2%, 89.6% 49.6%, 89.5% 50.1%, 89.4% 50.5%, 89.1% 51%, 88.8% 51.4%, 88.5% 51.8%, 88.1% 52.3%, 87.6% 52.7%, 87% 53.1%, 86.4% 53.5%, 85.7% 53.9%, 85% 54.3%, 84.1% 54.6%, 83.3% 55%)",t=a,r=o);const l=`-${o/2}px`,d={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]],{x:c,y:h}=n.arrow??{};Object.assign(this.arrow.style,{left:null!=c?`${c}px`:"",top:null!=h?`${h}px`:"",right:"",bottom:"",[d]:l}),Object.assign(this.beak.style,{height:`${r}px`,width:`${t}px`,clipPath:e,[d]:s})}requestAnimationFrame(()=>this.#c())}#c(){if(!this.target)return;const e=this.target.getBoundingClientRect(),t=this.tooltip.getBoundingClientRect();let r,o,i,n,a,s,l,d;this.placement.includes("top")||this.placement.includes("bottom")?e.top<t.top?(r=e.left,o=e.bottom,i=e.right,n=e.bottom,a=t.left,s=t.top,l=t.right,d=t.top):(r=t.left,o=t.bottom,i=t.right,n=t.bottom,a=e.left,s=e.top,l=e.right,d=e.top):e.left<t.left?(r=e.right,o=e.top,i=t.left,n=t.top,a=e.right,s=e.bottom,l=t.left,d=t.bottom):(r=t.right,o=t.top,i=e.left,n=e.top,a=t.right,s=t.bottom,l=e.left,d=e.bottom),this.style.setProperty("--_hover-bridge-top-left-x",`${r}px`),this.style.setProperty("--_hover-bridge-top-left-y",`${o}px`),this.style.setProperty("--_hover-bridge-top-right-x",`${i}px`),this.style.setProperty("--_hover-bridge-top-right-y",`${n}px`),this.style.setProperty("--_hover-bridge-bottom-left-x",`${a}px`),this.style.setProperty("--_hover-bridge-bottom-left-y",`${s}px`),this.style.setProperty("--_hover-bridge-bottom-right-x",`${l}px`),this.style.setProperty("--_hover-bridge-bottom-right-y",`${d}px`)}render(){return B`<div part="hover-bridge" hidden></div><div part="tooltip" role="tooltip" aria-description="${this.#r}" hidden>${this.noArrow?W:B`<div part="arrow"><div part="beak"></div></div>`}<slot></slot></div>`}}Vr([he({useDefault:!0})],Lr.prototype,"for",void 0),Vr([he({type:Boolean,attribute:"no-arrow"})],Lr.prototype,"noArrow",void 0),Vr([he({type:Boolean})],Lr.prototype,"open",void 0),Vr([he({useDefault:!0})],Lr.prototype,"placement",void 0),Vr([he({attribute:"show-delay",type:Number,useDefault:!0,reflect:!0})],Lr.prototype,"showDelay",void 0),Vr([he({attribute:"hide-delay",type:Number,useDefault:!0,reflect:!0})],Lr.prototype,"hideDelay",void 0),Vr([pe()],Lr.prototype,"target",void 0),Vr([ge('[part="tooltip"]')],Lr.prototype,"tooltip",void 0),Vr([ge('[part="hover-bridge"]')],Lr.prototype,"hoverBridge",void 0),Vr([ge('[part="arrow"]')],Lr.prototype,"arrow",void 0),Vr([ge('[part="beak"]')],Lr.prototype,"beak",void 0),customElements.get("w-tooltip")||customElements.define("w-tooltip",Lr);var jr=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];return e.reduce(function(e,t){return e.concat("string"==typeof t?t:Array.isArray(t)?jr.apply(void 0,t):"object"==typeof t&&t?Object.keys(t).map(function(e){return t[e]?e:""}):"")},[]).join(" ")},Rr=function(e,t,r,o){if("a"===r&&!o)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!o:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?o:"a"===r?o.call(e):o?o.value:t.get(e)}
53,Nr=function(e,t,r,o,i){if("m"===o)throw new TypeError("Private method is not writable");if("a"===o&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===o?i.call(e,r):i?i.value=r:t.set(e,r),r};function Ir(e){var t,r,o,i,n,a,s,l,d,c,h,p,u,g,b,m,v,f;return r=new WeakMap,o=new WeakMap,i=new WeakMap,n=new WeakMap,a=new WeakMap,s=new WeakMap,l=new WeakMap,d=new WeakMap,c=new WeakMap,h=new WeakMap,p=new WeakMap,u=new WeakMap,g=new WeakMap,t=new WeakSet,b=function(){if(this.hasAttribute("disabled"))return!1;const e=Rr(this,o,"f")||Rr(this,i,"f")&&!this.validity.valid&&!Rr(this,r,"f");return e&&this.internals.states?this.internals.states.add("--show-error"):this.internals.states&&this.internals.states.delete("--show-error"),e},m=function(e){const r=this.constructor,o={},i=r.validators,s=[],l=i.some(e=>e.isValid instanceof Promise);Rr(this,u,"f")||(Nr(this,g,new Promise(e=>{Nr(this,p,e,"f")}),"f"),Nr(this,u,!0,"f")),Rr(this,n,"f")&&(Rr(this,n,"f").abort(),Nr(this,a,Rr(this,n,"f"),"f"));const d=new AbortController;let c;Nr(this,n,d,"f");let h=!1;i.length&&(i.forEach(r=>{const i=r.key||"customError",n=r.isValid(this,e,d.signal);n instanceof Promise?(s.push(n),n.then(n=>{null!=n&&(o[i]=!n,c=Rr(this,t,"m",f).call(this,r,e),Rr(this,t,"m",v).call(this,o,c))})):(o[i]=!n,this.validity[i]!==!n&&(h=!0),n||c||(c=Rr(this,t,"m",f).call(this,r,e)))}),Promise.allSettled(s).then(()=>{var e;(null==d?void 0:d.signal.aborted)||(Nr(this,u,!1,"f"),null===(e=Rr(this,p,"f"))||void 0===e||e.call(this))}),!h&&l||Rr(this,t,"m",v).call(this,o,c))},v=function(e,t){if(this.validationTarget)this.internals.setValidity(e,t,this.validationTarget),Nr(this,s,!1,"f");else{if(this.internals.setValidity(e,t),this.internals.validity.valid)return;Nr(this,s,!0,"f")}},f=function(e,t){if(this.validityCallback){const t=this.validityCallback(e.key||"customError");if(t)return t}return e.message instanceof Function?e.message(this,t):e.message},class extends e{constructor(...e){var v,f,w;super(...e),t.add(this),this.internals=this.attachInternals(),r.set(this,!1),o.set(this,!1),i.set(this,!1),n.set(this,void 0),a.set(this,void 0),s.set(this,!0),l.set(this,""),d.set(this,()=>{Nr(this,i,!0,"f"),Nr(this,r,!0,"f"),Rr(this,t,"m",b).call(this)}),c.set(this,()=>{Nr(this,r,!1,"f"),Rr(this,t,"m",m).call(this,this.shouldFormValueUpdate()?Rr(this,l,"f"):""),!this.validity.valid&&Rr(this,i,"f")&&Nr(this,o,!0,"f");const e=Rr(this,t,"m",b).call(this);this.validationMessageCallback&&this.validationMessageCallback(e?this.internals.validationMessage:"")}),h.set(this,()=>{var e;Rr(this,s,"f")&&this.validationTarget&&(this.internals.setValidity(this.validity,this.validationMessage,this.validationTarget),Nr(this,s,!1,"f")),Nr(this,i,!0,"f"),Nr(this,o,!0,"f"),Rr(this,t,"m",b).call(this),null===(e=null==this?void 0:this.validationMessageCallback)||void 0===e||e.call(this,this.showError?this.internals.validationMessage:"")}),p.set(this,void 0),u.set(this,!1),g.set(this,Promise.resolve()),null===(v=this.addEventListener)||void 0===v||v.call(this,"focus",Rr(this,d,"f")),null===(f=this.addEventListener)||void 0===f||f.call(this,"blur",Rr(this,c,"f")),null===(w=this.addEventListener)||void 0===w||w.call(this,"invalid",Rr(this,h,"f")),this.setValue(null)}static get formAssociated(){return!0}static get validators(){return this.formControlValidators||[]}static get observedAttributes(){const e=this.validators.map(e=>e.attribute).flat(),t=super.observedAttributes||[];return[...new Set([...t,...e])]}static getValidator(e){return this.validators.find(t=>t.attribute===e)||null}static getValidators(e){return this.validators.filter(t=>{var r;if(t.attribute===e||(null===(r=t.attribute)||void 0===r?void 0:r.includes(e)))return!0})}get form(){return this.internals.form}get showError(){return Rr(this,t,"m",b).call(this)}checkValidity(){return this.internals.checkValidity()}get validity(){return this.internals.validity}get validationMessage(){return this.internals.validationMessage}attributeChangedCallback(e,t,r){var o;null===(o=super.attributeChangedCallback)||void 0===o||o.call(this,e,t,r);const i=this.constructor.getValidators(e);(null==i?void 0:i.length)&&this.validationTarget&&this.setValue(Rr(this,l,"f"))}setValue(e){var r;Nr(this,o,!1,"f"),null===(r=this.validationMessageCallback)||void 0===r||r.call(this,""),Nr(this,l,e,"f");const i=this.shouldFormValueUpdate()?e:null;this.internals.setFormValue(i),Rr(this,t,"m",m).call(this,i),this.valueChangedCallback&&this.valueChangedCallback(i),Rr(this,t,"m",b).call(this)}shouldFormValueUpdate(){return!0}get validationComplete(){return new Promise(e=>e(Rr(this,g,"f")))}formResetCallback(){var e,r;Nr(this,i,!1,"f"),Nr(this,o,!1,"f"),Rr(this,t,"m",b).call(this),null===(e=this.resetFormControl)||void 0===e||e.call(this),null===(r=this.validationMessageCallback)||void 0===r||r.call(this,Rr(this,t,"m",b).call(this)?this.validationMessage:"")}}} 54/** 55 * @license 56 * Copyright 2018 Google LLC 57 * SPDX-License-Identifier: BSD-3-Clause 58 */const Fr=e=>
58e??W,qr=JSON.parse('{"textfield.label.optional":["Valgfri"]}'),Br=JSON.parse('{"textfield.label.optional":["Optional"]}'),Hr=JSON.parse('{"textfield.label.optional":["Valinnainen"]}'),Wr=JSON.parse('{"textfield.label.optional":["Valgfri"]}'),Ur=JSON.parse('{"textfield.label.optional":["Valfritt"]}'),Jr=a`.w-textfield{--_input-padding-top:12px;--_input-padding-left:8px;--_input-padding-right:8px;position:relative}.w-textfield--has-prefix{--_input-padding-left:40px}.w-textfield--has-suffix{--_input-padding-right:var(--w-prefix-width,40px)}.w-textfield__input-wrapper{position:relative;overflow:hidden}.w-textfield__input-wrapper:focus-within .w-textfield__mask{display:none}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button{display:none}input::placeholder{color:var(--w-textfield-placeholder-color-text,var(--w-s-color-text-placeholder))}.w-textfield__input-wrapper:has(.w-textfield__mask):not(:focus-within) input{color:#0000}.w-textfield__mask{top:var(--_input-padding-top);left:var(--_input-padding-left);right:var(--_input-padding-right);pointer-events:none;white-space:nowrap;text-overflow:ellipsis;z-index:1;border:1px solid #0000;display:block;position:absolute;overflow:hidden}`,Yr=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.align-text-top{vertical-align:text-top}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.inline{display:inline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.m-0{margin:0}.mb-0{margin-bottom:0}.ml-4{margin-left:.4rem}.p-0{padding:0}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pl-0{padding-left:0}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.visible{visibility:visible}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}"),Kr=a`label{--_color:var(--w-c-input-label-color,var(--w-s-color-text));--_font-size:var(--w-c-input-label-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-label-line-height,var(--w-line-height-s));--_font-weight:var(--w-c-input-label-font-weight,700);--_padding-bottom:var(--w-c-input-label-padding-bottom,.4rem);--_cursor:var(--w-c-input-label-cursor,pointer);--_display:var(--w-c-input-label-display,block);display:var(--_display);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);padding-bottom:var(--_padding-bottom);cursor:var(--_cursor);color:var(--_color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}label span{--_padding-left:var(--w-c-input-optional-padding-left,.4rem);
58--_font-weight:var(--w-c-input-optional-font-weight,400);--_font-size:var(--w-c-input-optional-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-optional-line-height,var(--w-line-height-s));--_color:var(--w-c-input-optional-color,var(--w-s-color-text-subtle));padding-left:var(--_padding-left);font-weight:var(--_font-weight);font-size:var(--_font-size);line-height:var(--_line-height);color:var(--_color)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}`,Xr=a`:host{--_help-text-color:var(--w-c-input-help-text-color,var(--w-s-color-text-subtle));--_help-text-font-size:var(--w-c-input-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-input-help-text-line-height,var(--w-line-height-xs));--_help-text-margin-top:var(--w-c-input-help-text-margin-top,.4rem);--_help-text-display:var(--w-c-input-help-text-display,block)}:host([invalid]){--_help-text-color:var(--w-c-input-help-text-color-invalid,var(--w-s-color-text-negative))}.help-text{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);margin-top:var(--_help-text-margin-top);display:var(--_help-text-display);color:var(--_help-text-color)}`;var Gr=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Qr="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",Zr="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",eo="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",to="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",ro="pl-0 bg-transparent pointer-events-none",oo="pr-40",io="pl-[var(--w-prefix-width,_40px)]";class no extends(Ir(se)){static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this.disabled=!1,this.invalid=!1,this.optional=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this._hasPrefix=!1,this._hasSuffix=!1,this._hasHelpTextSlot=!1,this.#h=void 0,kr(Br,Wr,Hr,qr,Ur)}get#p(){return void 0!==this.helpText||this._hasHelpTextSlot}#u(e){"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}updated(e){e.has("value")&&void 0!==this.value&&(this.setValue(this.value),this.formatter&&this.mask&&(this.mask.innerText=this.formatter(this.value)))}#h;static#g=this.styles=[Or,Yr,Jr,Kr,Xr];firstUpdated(){this.#h=this.value}resetFormControl(){this.value=this.#h}get _inputstyles(){return jr([Qr,this._hasSuffix&&oo,this._hasPrefix&&io,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Zr,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&to,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&eo,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&ro])}get _helptextstyles(){return"help-text"}get _label(){if(this.label){const e=this.label.length&&this.optional&&!this.required,t=Boolean(this.tooltip);return B`<label for="${this._id}">${this.label}${e?B`<span>${Ye._({id:"textfield.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${t?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</label>`}}get _helpId(){if(this.#p)return`${this._id}__hint`}get _id(){return"textfield"}get _error(){if(this.invalid&&this._helpId)return this._helpId}handler(e){const{name:t,value:r}=e.currentTarget;this.value=r;const o={name:t,value:r,target:e.target},i=new Proxy(o,{get:(e,t)=>("undefined"!=typeof window&&(window.location.host.startsWith("www")||console.warn("w-textfield's CustomEvent is deprecated, please use the browser-native events instead (e.g. replace e.detail.value with e.target.value)")),e[t])}),n=new CustomEvent(e.type,{detail:i});this.dispatchEvent(n)}prefixSlotChange(){this.renderRoot.querySelector("slot[name=prefix]").assignedElements().length&&(this._hasPrefix=!0)}suffixSlotChange(){this.renderRoot.querySelector("slot[name=suffix]").assignedElements().length&&(this._hasSuffix=!0)}helpTextSlotChange(){this.renderRoot.querySelector("slot[name=help-text]").assignedElements().length&&(this._hasHelpTextSlot=!0)}render(){return B`${this._label}<div class="${xe({"w-textfield":!0,"w-textfield--has-prefix":this._hasPrefix,"w-textfield--has-suffix":this._hasSuffix})}"><div class="w-textfield__input-wrapper">${this.formatter?B`<div class="w-textfield__mask"></div>`:W} <input part="input" class="${this._inputstyles}" type="${this.type||"text"}" min="${Fr(this.min)}
58" max="${Fr(this.max)}" size="${Fr(this.size)}" minlength="${Fr(this.minLength||this.minlength)}" maxlength="${Fr(this.maxLength||this.maxlength)}" name="${Fr(this.name)}" pattern="${Fr(this.pattern)}" placeholder="${Fr(this.placeholder)}" .value="${this.value||""}" aria-describedby="${Fr(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${Fr(this._error)}" aria-invalid="${Fr(this.invalid)}" id="${this._id}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" autocomplete="${Fr(this.autocomplete)}" step="${Fr(this.step)}" @blur="${this.handler}" @change="${this.handler}" @input="${this.handler}" @focus="${this.handler}" @keydown="${this.#u}"></div><slot @slotchange="${this.prefixSlotChange}" name="prefix"></slot><slot @slotchange="${this.suffixSlotChange}" name="suffix"></slot></div><span class="sr-only" id="aria-description">${this.ariaDescription}</span><div ?hidden="${!this.#p}" class="${this._helptextstyles}" id="${Fr(this._helpId)}">${this.helpText}<slot @slotchange="${this.helpTextSlotChange}" name="help-text"></slot></div>`}}Gr([he({type:Boolean,reflect:!0})],no.prototype,"disabled",void 0),Gr([he({type:Boolean,reflect:!0})],no.prototype,"invalid",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"label",void 0),Gr([he({type:String,reflect:!0,attribute:"help-text"})],no.prototype,"helpText",void 0),Gr([he({type:Boolean,reflect:!0})],no.prototype,"optional",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"size",void 0),Gr([he({type:Number,reflect:!0})],no.prototype,"max",void 0),Gr([he({type:Number,reflect:!0})],no.prototype,"min",void 0),Gr([he({type:Number,reflect:!0,attribute:"min-length"})],no.prototype,"minLength",void 0),Gr([he({type:Number,reflect:!0})],no.prototype,"minlength",void 0),Gr([he({type:Number,reflect:!0,attribute:"max-length"})],no.prototype,"maxLength",void 0),Gr([he({type:Number,reflect:!0})],no.prototype,"maxlength",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"pattern",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"placeholder",void 0),Gr([he({type:Boolean,reflect:!0,attribute:"read-only"})],no.prototype,"readOnly",void 0),Gr([he({type:Boolean,reflect:!0})],no.prototype,"readonly",void 0),Gr([he({type:Boolean,reflect:!0})],no.prototype,"required",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"type",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"value",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"name",void 0),Gr([he({type:Number,reflect:!0})],no.prototype,"step",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"autocomplete",void 0),Gr([he({type:String,reflect:!0})],no.prototype,"tooltip",void 0),Gr([he({attribute:!1})],no.prototype,"formatter",void 0),Gr([ge(".w-textfield__mask")],no.prototype,"mask",void 0),Gr([he({type:Boolean})],no.prototype,"_hasPrefix",void 0),Gr([he({type:Boolean})],no.prototype,"_hasSuffix",void 0),Gr([pe()],no.prototype,"_hasHelpTextSlot",void 0),customElements.get("w-textfield")||customElements.define("w-textfield",no);const ao=a`:host{--_wrapper-bg:var(--w-c-affix-wrapper-bg,transparent);--_wrapper-border-radius:var(--w-c-affix-wrapper-border-radius,.4rem);--_wrapper-padding-left:var(--w-c-affix-wrapper-padding-left,1.2rem);--_wrapper-padding-right:var(--w-c-affix-wrapper-padding-right,1.2rem);--_wrapper-width-with-label:var(--w-c-affix-wrapper-width-with-label,max-content);--_wrapper-width-with-icon:var(--w-c-affix-wrapper-width-with-icon,4rem);--_label-color:var(--w-c-affix-label-color,var(--w-s-color-text));--_label-font-size:var(--w-c-affix-label-font-size,var(--w-font-size-xs));--_label-line-height:var(--w-c-affix-label-line-height,var(--w-line-height-xs));--_label-font-weight:var(--w-c-affix-label-font-weight,700);--_label-cursor:var(--w-c-affix-label-cursor,default)}[part=wrapper]{background-color:var(--_wrapper-bg);border-radius:var(--_wrapper-border-radius);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;justify-content:center;align-items:center;display:flex;position:absolute;top:0;bottom:0}:host([slot=prefix]) [part=wrapper]{left:0}:host([slot=suffix]) [part=wrapper]{right:0}[part=wrapper].has-label{width:var(--_wrapper-width-with-label)}:host([slot=prefix]) [part=wrapper].has-label{padding-left:var(--_wrapper-padding-left)}:host([slot=suffix]) [part=wrapper].has-label{padding-right:var(--_wrapper-padding-right)}[part=wrapper].has-icon{width:var(--_wrapper-width-with-icon)}[part=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);
58font-weight:var(--_label-font-weight);color:var(--_label-color);cursor:var(--_label-cursor);padding-bottom:0;display:block;position:relative}button[part=wrapper]{cursor:pointer;border:none;outline:none}button[part=wrapper]:focus,button[part=wrapper]:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,-2px)}button[part=wrapper]:not(:focus-visible){outline:none}`,so=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.static{position:static}");var lo=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class co extends(Ir(se)){constructor(){super(...arguments),this.ariaLabel=null,this.clear=!1,this.search=!1,this.label="",this.icon=null}static#e=this.styles=[Or,so,ao];get _wrapperClasses(){return jr([this.label?"has-label":"has-icon"])}resetContainingTextField(e){const t=this.closest("w-textfield");t&&t.resetFormControl(),e.stopPropagation()}submitContainingForm(e){const t=this.internals.form;t&&t.submit(),e.stopPropagation()}get _searchButton(){const e=this.ariaLabel||Ye._({id:"affix.aria.search",message:"Search",comment:"Aria label for the search button in affix"});return B`<button part="wrapper" aria-label="${e}" class="${this._wrapperClasses}" type="submit" @click="${this.submitContainingForm.bind(this)}"><w-icon name="Search" size="small" locale="${xr()}" class="flex"></w-icon></button>`}get _clearButton(){const e=this.ariaLabel||Ye._({id:"affix.aria.clearInput",message:"Clear input",comment:"Aria label for the clear input button in affix"});return B`<button part="wrapper" aria-label="${e}" class="${this._wrapperClasses}" type="reset" @click="${this.resetContainingTextField.bind(this)}"><w-icon name="Close" size="small" locale="${xr()}" class="flex"></w-icon></button>`}get _icon(){return this.icon?B`<div part="wrapper" class="${this._wrapperClasses}"><w-icon name="${this.icon}" size="small" locale="${xr()}" class="flex"></w-icon></div>`:""}get _text(){return B`<div part="wrapper" class="${this._wrapperClasses}"><span part="label">${this.label}</span></div>`}get _markup(){return this.label?this._text:this.icon?this._icon:this.search?this._searchButton:this.clear?this._clearButton:void 0}render(){return B`${this._markup}`}}lo([he({attribute:"aria-label",reflect:!0,useDefault:!0})],co.prototype,"ariaLabel",void 0),lo([he({type:Boolean})],co.prototype,"clear",void 0),lo([he({type:Boolean})],co.prototype,"search",void 0),lo([he({reflect:!0,useDefault:!0})],co.prototype,"label",void 0),lo([he({reflect:!0,useDefault:!0})],co.prototype,"icon",void 0),customElements.get("w-affix")||customElements.define("w-affix",co);const ho=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.will-change-height{will-change:height}.border{border-width:1px}.border-l-4{border-left-width:4px}
58.rounded-4{border-radius:4px}.block{display:block}.inline{display:inline}.flex{display:flex}.hidden{display:none}.static{position:static}.s-bg-info-subtle{background-color:var(--w-s-color-background-info-subtle)}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon-info{color:var(--w-s-color-icon-info)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.s-border-info-subtle{border-color:var(--w-s-color-border-info-subtle)}.s-border-l-info{border-left-color:var(--w-s-color-border-info)}.s-border-l-negative{border-left-color:var(--w-s-color-border-negative)}.s-border-l-positive{border-left-color:var(--w-s-color-border-positive)}.s-border-l-warning{border-left-color:var(--w-s-color-border-warning)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.min-w-16{min-width:1.6rem}.w-16{width:1.6rem}.last-child\\:mb-0>:last-child{margin-bottom:0}.mr-8{margin-right:.8rem}.p-16{padding:1.6rem}.text-s{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}");var po=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const uo={wrapper:"flex p-16 border border-l-4 rounded-4 s-text",willChangeHeight:"will-change-height",textWrapper:"last-child:mb-0 text-s",title:"text-s",icon:"w-16 mr-8 min-w-16",negative:"s-border-negative-subtle s-border-l-negative s-bg-negative-subtle",negativeIcon:"s-icon-negative",positive:"s-border-positive-subtle s-border-l-positive s-bg-positive-subtle",positiveIcon:"s-icon-positive",warning:"s-border-warning-subtle s-border-l-warning s-bg-warning-subtle",warningIcon:"s-icon-warning",info:"s-border-info-subtle s-border-l-info s-bg-info-subtle",infoIcon:"s-icon-info"},go={negative:"negative",positive:"positive",warning:"warning",info:"info"};class bo extends se{constructor(){super(),this.variant="info",this.show=!1,this.role="alert",this._internals=this.attachInternals(),this._internals.role="alert"}connectedCallback(){if(super.connectedCallback(),this.variant&&!go[this.variant])throw new Error("Invalid 'variant' attribute. Set its value to one of the following:\nnegative, positive, warning, info.")}get _wrapperClasses(){const e=this.variant;return jr([uo.wrapper,uo[e]])}get _iconClasses(){const e=this.variant;return jr([uo.icon,uo[`${e}Icon`]])}static#e=this.styles=[Or,ho,a`:host{display:block}::slotted(:first-child){margin-top:0}::slotted(:last-child){margin-bottom:0!important}`];get _icon(){const e=xr(),t=this.variant||"info";return t===go.info?B`<w-icon name="Info" size="small" locale="${e}" class="flex"></w-icon>`:t===go.warning?B`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:t===go.negative?B`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:t===go.positive?B`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`:""}render(){return B`<w-expand-transition ?show="${this.show}"><div role="${this.role}" class="${this._wrapperClasses}"><div class="${this._iconClasses}">${this._icon}</div><div class="${uo.textWrapper}"><slot></slot></div></div></w-expand-transition>`}}po([he({reflect:!0,useDefault:!0})],bo.prototype,"variant",void 0),po([he({type:Boolean,reflect:!0,useDefault:!0})],bo.prototype,"show",void 0),po([he({reflect:!0,useDefault:!0})],bo.prototype,"role",void 0),customElements.get("w-alert")||customElements.define("w-alert",bo);const mo=a`:host{--_bg:var(--w-c-button-bg,var(--w-s-color-background));--_bg-hover:var(--w-c-button-bg-hover,var(--w-s-color-background-hover));--_bg-active:var(--w-c-button-bg-active,var(--w-s-color-background-active));--_color:var(--w-c-button-color,var(--w-s-color-text-link));--_color-hover:var(--w-c-button-color-hover,var(--_color));--_color-active:var(--w-c-button-color-active,var(--_color));--_border-width:var(--w-c-button-border-width,2px);--_border-color:var(--w-c-button-border-color,var(--w-s-color-border));--_border-color-hover:var(--w-c-button-border-color-hover,var(--w-s-color-border-hover));--_border-color-active:var(--w-c-button-border-color-active,var(--w-s-color-border-active));--_radius:var(--w-c-button-radius,var(--w-button-radius-default,8px));--_font-size:var(--w-c-button-font-size,var(--w-font-size-m));--_line-height:var(--w-c-button-line-height,var(--w-line-height-m));--_font-weight:var(--w-c-button-font-weight,700);--_pad-x:var(--w-c-button-padding-x,16px);--_pad-y:var(--w-c-button-padding-y,13px);--_outline-width:var(--w-c-button-outline-width,2px);--_outline-color:var(--w-c-button-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-button-outline-offset,var(--w-outline-offset,1px));--_transition:var(--w-c-button-transition,color .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1), border-color .15s cubic-bezier(.4, 0, .2, 1));--w-c-button-icon-color:var(--w-s-color-icon);display:inline-block}:host(:focus-visible){outline:none}`,vo=a`:host([variant=primary]){--w-c-button-bg:var(--w-color-button-primary-background);--w-c-button-bg-hover:var(--w-color-button-primary-background-hover);--w-c-button-bg-active:var(--w-color-button-primary-background-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negative]){--w-c-button-bg:var(--w-s-color-background-negative);--w-c-button-bg-hover:var(--w-s-color-background-negative-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}:host([variant=negativeQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:var(--w-button-radius-utility,4px);--w-c-button-border-width:1px}:host([variant=utilityQuiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=quiet]){--w-c-button-bg:transparent;--w-c-button-border-width:0px}:host([variant=overlay]){--w-c-button-bg:var(--w-s-color-background);--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInverted]){--w-c-button-bg:var(--w-s-color-background-inverted);--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-hover);--w-c-button-bg-active:var(--w-s-color-background-active);--w-c-button-color:var(--w-s-color-text);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=overlayInvertedQuiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-inverted-hover);--w-c-button-bg-active:var(--w-s-color-background-inverted-active);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-radius:9999px;--w-c-button-border-width:0px}:host([variant=link]){--w-c-button-bg:transparent;--w-c-button-border-width:0px;--w-c-button-padding-x:0px;--w-c-button-padding-y:0px;--w-c-button-font-weight:400;--w-c-button-bg-hover:transparent;--w-c-button-bg-active:transparent;--w-c-button-color:var(--w-s-color-text-link);--w-c-button-color-hover:var(--w-s-color-text-link-hover,var(--w-c-button-color));--w-c-button-color-active:var(--w-s-color-text-link-active,var(--w-c-button-color))}`,fo=a`:host([small]){--w-c-button-padding-x:12px;--w-c-button-padding-y:8px;--w-c-button-font-size:var(--w-font-size-xs);--w-c-button-line-height:var(--w-line-height-xs)}`,wo=a`:host([disabled]){pointer-events:none;cursor:default;--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px}`,yo=a`${mo}button[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;display:inline-flex}button[part=base] ::slotted(*){line-height:inherit}:host([icon-only]) button[part=base] ::slotted(*){line-height:normal}:host>w-link[part=base]{background:0 0;border:0;padding:0;display:inline-block}:host(:not([disabled]):not([loading])) button[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled]):not([loading])) button[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host button[part=base]:focus-visible{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${vo}:host([variant=negative][quiet]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-s-color-background-negative-subtle-hover);--w-c-button-bg-active:var(--w-s-color-background-negative-subtle-active);--w-c-button-color:var(--w-s-color-text-negative);--w-c-button-border-width:0px}:host([variant=utility][quiet]){--w-c-button-bg:transparent;--w-c-button-color:var(--w-s-color-text);--w-c-button-border-width:0px}:host([variant=pill]){--w-c-button-bg:transparent;--w-c-button-bg-hover:var(--w-color-button-pill-background-hover);--w-c-button-bg-active:var(--w-color-button-pill-background-active);--w-c-button-radius:50%;--w-c-button-border-width:0px;--w-c-button-padding-x:14px;--w-c-button-padding-y:14px;--w-c-button-color:var(--w-c-button-icon-color,var(--w-s-color-icon));--w-c-button-color-hover:var(--w-s-color-icon-hover);--w-c-button-color-active:var(--w-s-color-icon-active)}
58:host([variant=pill]) button[part=base]{min-width:44px;min-height:44px}:host([small][variant=pill]) button[part=base]{min-width:32px;min-height:32px}:host([variant=link]) button[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled]):not([loading])) button[part=base]:hover{color:var(--w-c-button-color-hover);background-color:#0000;border-color:#0000;text-decoration:underline}${fo}:host([small][variant=pill]){--w-c-button-padding-x:8px;--w-c-button-padding-y:8px}:host([full-width]){width:100%;display:block}:host([full-width]) button[part=base],:host([full-width])>w-link[part=base]{width:100%}:host([icon-only]) button[part=base]{aspect-ratio:1;padding-left:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px));padding-right:calc(var(--w-c-button-padding-y) - var(--w-c-button-border-width,0px))}${wo}:host([disabled][variant]),:host([disabled][quiet]){--w-c-button-bg:var(--w-s-color-background-disabled);--w-c-button-bg-hover:var(--w-s-color-background-disabled);--w-c-button-bg-active:var(--w-s-color-background-disabled);--w-c-button-color:var(--w-s-color-text-inverted);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent;--w-c-button-color-hover:var(--w-s-color-text-inverted);--w-c-button-color-active:var(--w-s-color-text-inverted)}:host([loading]),:host([loading][variant]),:host([loading][quiet]){pointer-events:none;--w-c-button-bg:var(--w-s-color-background-subtle);--w-c-button-bg-hover:var(--w-s-color-background-subtle);--w-c-button-bg-active:var(--w-s-color-background-subtle);--w-c-button-color:var(--w-s-color-text);--w-c-button-color-hover:var(--w-s-color-text);--w-c-button-color-active:var(--w-s-color-text);--w-c-button-border-width:0px;--w-c-button-border-color:transparent;--w-c-button-border-color-hover:transparent;--w-c-button-border-color-active:transparent}:host([loading]) button[part=base]{background-image:linear-gradient(135deg,#0000000d 25%,#0000 25% 50%,#0000000d 50% 75%,#0000 75%,#0000);background-size:30px 30px;animation:3s linear infinite animate-inprogress}@media (prefers-reduced-motion:reduce){:host([loading]) button[part=base]{animation:none}}@keyframes animate-inprogress{0%{background-position:0 0}to{background-position:60px 0}}`,xo=a`${mo}a[part=base]{text-align:center;cursor:pointer;background-color:var(--_bg);color:var(--_color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_radius);padding:calc(var(--_pad-y) - var(--_border-width)) calc(var(--_pad-x) - var(--_border-width));font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);transition:var(--_transition);justify-content:center;align-items:center;text-decoration:none;display:inline-flex}:host(:not([disabled])) a[part=base]:hover{background-color:var(--_bg-hover);border-color:var(--_border-color-hover);color:var(--_color-hover)}:host(:not([disabled])) a[part=base]:active{background-color:var(--_bg-active);border-color:var(--_border-color-active);color:var(--_color-active)}:host(:focus-visible) a[part=base]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}${vo}:host([variant=link]) a[part=base]{padding:0;display:inline}:host([variant=link]:not([disabled])) a[part=base]:hover{background-color:#0000;border-color:#0000;text-decoration:underline}${fo}:host([full-width]){width:100%;display:block}:host([full-width]) a[part=base]{width:100%}${wo}`;var ko=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const _o=["primary","secondary","negative","negativeQuiet","utility","utilityQuiet","quiet","link","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class $o extends se{constructor(){super(...arguments),this.autofocus=!1,this.small=!1,this.disabled=!1,this.fullWidth=!1}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#g=this.styles=[Or,xo];connectedCallback(){if(super.connectedCallback(),this.variant&&!_o.includes(this.variant))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${_o.join(", ")}.`)}firstUpdated(){this.autofocus&&setTimeout(()=>
58this.focus(),0)}render(){return B`<a href="${this.href}" part="base" target="${this.target}" rel="${"_blank"===this.target?this.rel||"noopener":W}" tabindex="0" aria-description="${Fr(this.ariaDescription)}"><slot></slot></a>`}}ko([he({type:Boolean,reflect:!0})],$o.prototype,"autofocus",void 0),ko([he({reflect:!0})],$o.prototype,"variant",void 0),ko([he({type:Boolean,reflect:!0})],$o.prototype,"small",void 0),ko([he({reflect:!0})],$o.prototype,"href",void 0),ko([he({type:Boolean,reflect:!0})],$o.prototype,"disabled",void 0),ko([he({reflect:!0})],$o.prototype,"target",void 0),ko([he({reflect:!0})],$o.prototype,"rel",void 0),ko([he({attribute:"full-width",type:Boolean,reflect:!0})],$o.prototype,"fullWidth",void 0),customElements.get("w-link")||customElements.define("w-link",$o);const So=JSON.parse('{"button.aria.loading":["Indlæser..."],"button.aria.negativeDescription":["Attention"],"button.aria.primaryDescription":["Highlighted"]}'),Eo=JSON.parse('{"button.aria.loading":["Loading..."],"button.aria.negativeDescription":["Attention"],"button.aria.primaryDescription":["Highlighted"]}'),Co=JSON.parse('{"button.aria.loading":["Ladataan..."],"button.aria.negativeDescription":["Attention"],"button.aria.primaryDescription":["Highlighted"]}'),Oo=JSON.parse('{"button.aria.loading":["Laster..."],"button.aria.negativeDescription":["Attention"],"button.aria.primaryDescription":["Highlighted"]}'),zo=JSON.parse('{"button.aria.loading":["Laddar ..."],"button.aria.negativeDescription":["Attention"],"button.aria.primaryDescription":["Highlighted"]}');var Do=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Ao=["primary","secondary","negative","negativeQuiet","utility","pill","link","quiet","utilityQuiet","overlay","overlayInverted","overlayQuiet","overlayInvertedQuiet"];class Po extends(Ir(se)){static#e=this.styles=[Or,yo];static#g=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#h;get#b(){return this.ariaDescription?this.ariaDescription:"primary"===this.variant?Ye.t({id:"button.aria.primaryDescription",message:"Highlighted",comment:"Short (preferably a single word) description indicating to screen reader users that this button is visually highlighted"}):"negative"===this.variant||"negativeQuiet"===this.variant?Ye.t({id:"button.aria.negativeDescription",message:"Attention",comment:"Short (preferably a single word) description indicating to screen reader users that this button tries to get the user's attention"}):void 0}updated(e){e.has("value")&&this.setValue(this.value)}constructor(){super(),this.autofocus=!1,this.quiet=!1,this.iconOnly=!1,this.small=!1,this.loading=!1,this.disabled=!1,this.fullWidth=!1,this.#h=void 0,kr(Eo,Oo,Co,So,zo),this.ariaValueTextLoading=Ye.t({id:"button.aria.loading",message:"Loading...",comment:"Screen reader message for buttons that are loading"})}connectedCallback(){super.connectedCallback();const e=this.variant||"secondary";if(!Ao.includes(e))throw new Error(`Invalid "variant" attribute. Set its value to one of the following:\n${Ao.join(", ")}.`);this.#h=this.value}closestWithId(e){let t,r=this.shadowRoot;try{for(;r;){if(t=r.getElementById(e),t)return t;r=r.getRootNode().host?.getRootNode()}}catch{}return document.getElementById(e)}firstUpdated(){this.autofocus&&!this.href&&setTimeout(()=>this.focus(),0),this.buttonEl&&this.commandfor&&(this.buttonEl.commandForElement=this.closestWithId(this.commandfor))}_handleButtonClick(){"submit"===this.type?this.internals.form.requestSubmit():"reset"===this.type&&this.internals.form.reset()}resetFormControl(){this.value=this.#h}render(){const e=this.variant||"secondary";return B`${this.href?B`<w-link href="${this.href}" target="${this.target}" variant="${this.quiet?"quiet":e}" ?small="${this.small}" ?loading="${this.loading}" ?autofocus="${this.autofocus}" ?full-width="${this.fullWidth}" class="${this.buttonClass}" rel="${"_blank"===this.target?this.rel||"noopener":void 0}" aria-description="${Fr(this.#b)}"><slot></slot></w-link>`:B`<button type="${this.type||"button"}" part="base" class="${Fr(this.buttonClass)}" @click="${this._handleButtonClick}" commandfor="${Fr(this.commandfor)}
58" command="${Fr(this.command)}" aria-description="${Fr(this.#b)}"><slot></slot></button>`} ${this.loading?B`<span class="sr-only" role="progressbar" aria-valuenow="{0}" aria-valuetext="${this.ariaValueTextLoading}"></span>`:W}`}}Do([he({reflect:!0})],Po.prototype,"type",void 0),Do([he({type:Boolean,reflect:!0})],Po.prototype,"autofocus",void 0),Do([he({reflect:!0})],Po.prototype,"variant",void 0),Do([he({type:Boolean,reflect:!0})],Po.prototype,"quiet",void 0),Do([he({type:Boolean,reflect:!0,attribute:"icon-only"})],Po.prototype,"iconOnly",void 0),Do([he({type:Boolean,reflect:!0})],Po.prototype,"small",void 0),Do([he({type:Boolean,reflect:!0})],Po.prototype,"loading",void 0),Do([he({reflect:!0})],Po.prototype,"href",void 0),Do([he({reflect:!0})],Po.prototype,"target",void 0),Do([he({type:Boolean,reflect:!0})],Po.prototype,"disabled",void 0),Do([he({reflect:!0})],Po.prototype,"rel",void 0),Do([he({attribute:"full-width",type:Boolean,reflect:!0})],Po.prototype,"fullWidth",void 0),Do([he({attribute:"button-class",reflect:!0})],Po.prototype,"buttonClass",void 0),Do([he({reflect:!0})],Po.prototype,"name",void 0),Do([he({reflect:!0})],Po.prototype,"value",void 0),Do([he()],Po.prototype,"commandfor",void 0),Do([he()],Po.prototype,"command",void 0),Do([ge("button")],Po.prototype,"buttonEl",void 0),customElements.get("w-button")||customElements.define("w-button",Po);const To="top-start",Mo="top",Vo="top-end",Lo="right-start",jo="right",Ro="right-end",No="bottom-start",Io="bottom",Fo="bottom-end",qo="left-start",Bo="left",Ho="left-end",Wo=[To,Mo,Vo,Lo,jo,Ro,No,Io,Fo,qo,Bo,Ho],Uo={[To]:No,[Mo]:Io,[Vo]:Fo,[No]:To,[Io]:Mo,[Fo]:Vo,[qo]:Lo,[Bo]:jo,[Ho]:Ro,[Lo]:qo,[jo]:Bo,[Ro]:Ho},Jo={[qo]:-45,[Bo]:-45,[Ho]:-45,[To]:45,[Mo]:45,[Vo]:45,[Lo]:135,[jo]:135,[Ro]:135,[No]:-135,[Io]:-135,[Fo]:-135},Yo=e=>{let t;return t=/-/.test(e)?e.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""):e.charAt(0).toUpperCase()+e.slice(1),t},Ko=e=>Uo[(e=>e.split("-")[0])(e)],Xo=e=>Uo[e];async function Go(e){if(!e?.isShowing)return;if(e?.waitForDOM&&await(e?.waitForDOM()),!e?.targetEl||!e?.attentionEl)return;let t=e?.targetEl;const r=e.attentionEl;return vr(t,r,{placement:e?.directionName??Io,middleware:[hr({mainAxis:e?.distance??8,crossAxis:e?.skidding??0}),e?.flip&&ur({crossAxis:e?.crossAxis,fallbackPlacements:e?.fallbackPlacements}),e?.flip&&pr({crossAxis:!0}),!e?.noArrow&&e?.arrowEl&&mr({element:e?.arrowEl}
58),br(),gr({apply(){Object.assign(r.style,{paddingRight:"8px",paddingLeft:"8px"})}})]}).then(t=>{let{x:o,y:i,middlewareData:n,placement:a}=t;if(e.actualDirection=a,e?.isCallout||Object.assign(r.style,{left:`${o}px`,top:`${i}px`}),n?.hide&&!e?.isCallout){const{referenceHidden:e}=n.hide;Object.assign(r.style,{visibility:e?"hidden":""})}if(n?.arrow&&e?.arrowEl){const t=e?.arrowEl,{x:o,y:i}=n.arrow,s="rtl"===window.getComputedStyle(r).direction,l=Xo(a).split("-")[1];let d="",c="",h="",p="";if("start"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";d="number"==typeof i?`calc(24px - ${t.offsetWidth/2}px)`:"",c=s?e:"",p=s?"":e}else if("end"===l){const e="number"==typeof o?`calc(24px - ${t.offsetWidth/2}px)`:"";c=s?"":e,p=s?e:"",h="number"==typeof i?`calc(24px - ${t.offsetWidth/2}px)`:""}else p="number"==typeof o?`${o}px`:"",d="number"==typeof i?`${i}px`:"";Object.assign(t.style,{top:d,right:c,bottom:h,left:p}),((e,t,r)=>{Object.assign(e?.style,{borderTopLeftRadius:"4px",zIndex:1,[`margin${Yo(Ko(r))}`]:"-0.5px",transform:`rotate(${t}deg)`})})(t,Jo[Xo(a)],a)}}),e}const Qo=a`.place-self-auto{place-self:auto}.place-self-start{place-self:start}.place-self-end{place-self:end}.place-self-center{place-self:center}.place-self-stretch{place-self:stretch stretch}.place-items-start{place-items:start}.place-items-end{place-items:end}.place-items-center{place-items:center}.place-items-stretch{place-items:stretch stretch}.place-content-center{place-content:center}.place-content-start{place-content:start}.place-content-end{place-content:end}.place-content-between{place-content:space-between}.place-content-around{place-content:space-around}.place-content-evenly{place-content:space-evenly}.self-auto{align-self:auto}.self-start{align-self:flex-start}.self-center{align-self:center}.self-end{align-self:flex-end}.self-stretch{align-self:stretch}.items-baseline{align-items:baseline}.items-stretch{align-items:stretch}.items-start{align-items:flex-start}.items-center{align-items:center}.items-end{align-items:flex-end}.content-start{align-content:flex-start}.content-center{align-content:center}.content-end{align-content:flex-end}.content-between{align-content:space-between}.content-around{align-content:space-around}.content-evenly{align-content:space-evenly}.justify-self-auto{justify-self:auto}.justify-self-start{justify-self:start}.justify-self-center{justify-self:center}.justify-self-end{justify-self:end}.justify-self-stretch{justify-self:stretch}.justify-items-start{justify-items:start}.justify-items-center{justify-items:center}.justify-items-end{justify-items:end}.justify-items-stretch{justify-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.justify-between{justify-content:space-between}.justify-around{justify-content:space-around}.justify-evenly{justify-content:space-evenly}.gap-0{gap:0}.gap-1{gap:.25rem}.gap-2{gap:.5rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.gap-8{gap:2rem}.gap-10{gap:2.5rem}.gap-12{gap:3rem}.gap-14{gap:3.5rem}.gap-16{gap:4rem}.gap-x-0{column-gap:0}.gap-x-1{column-gap:.25rem}.gap-x-2{column-gap:.5rem}.gap-x-4{column-gap:1rem}.gap-x-6{column-gap:1.5rem}.gap-x-8{column-gap:2rem}.gap-x-10{column-gap:2.5rem}.gap-x-12{column-gap:3rem}.gap-x-14{column-gap:3.5rem}.gap-x-16{column-gap:4rem}.gap-y-0{row-gap:0}.gap-y-1{row-gap:.25rem}.gap-y-2{row-gap:.5rem}.gap-y-4{row-gap:1rem}.gap-y-6{row-gap:1.5rem}.gap-y-8{row-gap:2rem}.gap-y-10{row-gap:2.5rem}.gap-y-12{row-gap:3rem}.gap-y-14{row-gap:3.5rem}.gap-y-16{row-gap:4rem}.order-1{order:1}.order-2{order:2}.order-3{order:3}.order-4{order:4}.order-5{order:5}.order-6{order:6}.order-7{order:7}.order-8{order:8}.order-9{order:9}.order-10{order:10}.order-11{order:11}.order-12{order:12}.order-none{order:0}.order-first{order:-9999}.order-last{order:9999}.flex-nowrap{flex-wrap:nowrap}.flex-wrap{flex-wrap:wrap}.flex-wrap-reverse{flex-wrap:wrap-reverse}.shrink{flex-shrink:1}.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.flex-row{flex-direction:row}.flex-row-reverse{flex-direction:row-reverse}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.basis-1{flex-basis:.25rem}.basis-2{flex-basis:.5rem}.basis-4{flex-basis:1rem}.basis-8{flex-basis:2rem}.basis-16{flex-basis:4rem}.basis-1\/5{flex-basis:20%}.flex-initial{flex:0 auto}.flex-1{flex:1}.flex-auto{flex:auto}.flex-none{flex:none}.space-x-0>*+*{margin-left:0}.space-x-1>*+*{margin-left:.25rem}.space-x-2>*+*{margin-left:.5rem}.space-x-4>*+*{margin-left:1rem}.space-x-6>*+*{margin-left:1.5rem}.space-x-8>*+*{margin-left:2rem}.space-x-10>*+*{margin-left:2.5rem}.space-x-12>*+*{margin-left:3rem}.space-x-14>*+*{margin-left:3.5rem}.space-x-16>*+*{margin-left:4rem}.space-y-0>*+*{margin-top:0}.space-y-1>*+*{margin-top:.25rem}.space-y-2>*+*{margin-top:.5rem}.space-y-4>*+*{margin-top:1rem}.space-y-6>*+*{margin-top:1.5rem}.space-y-8>*+*{margin-top:2rem}.space-y-10>*+*{margin-top:2.5rem}.space-y-12>*+*{margin-top:3rem}.space-y-14>*+*{margin-top:3.5rem}.space-y-16>*+*{margin-top:4rem}.space-x-reverse>*+*{margin-left:0;margin-right:0}.space-y-reverse>*+*{margin-top:0;margin-bottom:0}.m-0{margin:0}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-6{margin:1.5rem}.m-8{margin:2rem}.m-10{margin:2.5rem}.m-12{margin:3rem}.m-14{margin:3.5rem}.m-16{margin:4rem}.mt-0{margin-top:0}.mt-1{margin-top:.25rem}.mt-2{margin-top:.5rem}.mt-4{margin-top:1rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-10{margin-top:2.5rem}.mt-12{margin-top:3rem}.mt-14{margin-top:3.5rem}.mt-16{margin-top:4rem}.mr-0{margin-right:0}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mr-4{margin-right:1rem}.mr-6{margin-right:1.5rem}.mr-8{margin-right:2rem}.mr-10{margin-right:2.5rem}.mr-12{margin-right:3rem}.mr-14{margin-right:3.5rem}.mr-16{margin-right:4rem}.mb-0{margin-bottom:0}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.mb-8{margin-bottom:2rem}.mb-10{margin-bottom:2.5rem}.mb-12{margin-bottom:3rem}.mb-14{margin-bottom:3.5rem}.mb-16{margin-bottom:4rem}.ml-0{margin-left:0}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-8{margin-left:2rem}.ml-10{margin-left:2.5rem}.ml-12{margin-left:3rem}.ml-14{margin-left:3.5rem}.ml-16{margin-left:4rem}.mx-0{margin-left:0;margin-right:0}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-6{margin-left:1.5rem;margin-right:1.5rem}.mx-8{margin-left:2rem;margin-right:2rem}.mx-10{margin-left:2.5rem;margin-right:2.5rem}.mx-12{margin-left:3rem;margin-right:3rem}.mx-14{margin-left:3.5rem;margin-right:3.5rem}.mx-16{margin-left:4rem;margin-right:4rem}.my-0{margin-top:0;margin-bottom:0}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-4{margin-top:1rem;margin-bottom:1rem}.my-6{margin-top:1.5rem;margin-bottom:1.5rem}.my-8{margin-top:2rem;margin-bottom:2rem}.my-10{margin-top:2.5rem;margin-bottom:2.5rem}.my-12{margin-top:3rem;margin-bottom:3rem}.my-14{margin-top:3.5rem;margin-bottom:3.5rem}.my-16{margin-top:4rem;margin-bottom:4rem}.p-0{padding:0}.p-1{padding:.25rem}.p-2{padding:.5rem}.p-4{padding:1rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-10{padding:2.5rem}.p-12{padding:3rem}.p-14{padding:3.5rem}.p-16{padding:4rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-2{padding-top:.5rem}.pt-4{padding-top:1rem}.pt-6{padding-top:1.5rem}.pt-8{padding-top:2rem}.pt-10{padding-top:2.5rem}.pt-12{padding-top:3rem}.pt-14{padding-top:3.5rem}.pt-16{padding-top:4rem}.pr-0{padding-right:0}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-4{padding-right:1rem}.pr-6{padding-right:1.5rem}.pr-8{padding-right:2rem}.pr-10{padding-right:2.5rem}.pr-12{padding-right:3rem}.pr-14{padding-right:3.5rem}.pr-16{padding-right:4rem}.pb-0{padding-bottom:0}.pb-1{padding-bottom:.25rem}.pb-2{padding-bottom:.5rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pb-8{padding-bottom:2rem}.pb-10{padding-bottom:2.5rem}.pb-12{padding-bottom:3rem}.pb-14{padding-bottom:3.5rem}.pb-16{padding-bottom:4rem}.pl-0{padding-left:0}.pl-1{padding-left:.25rem}.pl-2{padding-left:.5rem}.pl-4{padding-left:1rem}.pl-6{padding-left:1.5rem}.pl-8{padding-left:2rem}.pl-10{padding-left:2.5rem}.pl-12{padding-left:3rem}.pl-14{padding-left:3.5rem}.pl-16{padding-left:4rem}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.px-12{padding-left:3rem;padding-right:3rem}.px-14{padding-left:3.5rem;padding-right:3.5rem}.px-16{padding-left:4rem;padding-right:4rem}.py-0{padding-top:0;padding-bottom:0}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.py-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}`,Zo=JSON.parse('{"attention.aria.callout":["En grøn taleboble der introducerer noget nyt"],"attention.aria.close":["Luk"],"attention.aria.highlight":["En opmærksomhedsskabende taleboble med vigtig information"],"attention.aria.pointingDown":["peger nedad"],"attention.aria.pointingLeft":["peger til venstre"],"attention.aria.pointingRight":["peger til højre"],"attention.aria.pointingUp":["peger opad"],"attention.aria.popover":["En hvid taleboble med mere information"],"attention.aria.tooltip":["En sort taleboble med flere oplysninger"]}'),ei=JSON.parse('{"attention.aria.callout":["A green speech bubble introducing something new"],"attention.aria.close":["Close"],"attention.aria.highlight":["An attention speech bubble with important information"],"attention.aria.pointingDown":["pointing down"],"attention.aria.pointingLeft":["pointing left"],"attention.aria.pointingRight":["pointing right"],"attention.aria.pointingUp":["pointing up"],"attention.aria.popover":["A white speech bubble providing additional information"],"attention.aria.tooltip":["A black speech bubble providing complementary information"]}'),ti=JSON.parse('{"attention.aria.callout":["Vihreä puhekupla, joka esittelee jotain uutta"],"attention.aria.close":["Sulje"],"attention.aria.highlight":["Puhekupla, joka sisältää tärkeää tietoa"],"attention.aria.pointingDown":["osoittaa alas"],"attention.aria.pointingLeft":["osoittaa vasemmalle"],"attention.aria.pointingRight":["osoittaa oikealle"],"attention.aria.pointingUp":["osoittaa ylös"],"attention.aria.popover":["Valkoinen puhekupla, joka tarjoaa lisätietoa"],"attention.aria.tooltip":["Musta puhekupla, joka tarjoaa täydentävää tietoa"]}'),ri=JSON.parse('{"attention.aria.callout":["Grønn taleboble som introduserer noe nytt"],"attention.aria.close":["Lukk"],"attention.aria.highlight":["En uthevet taleboble med viktig informasjon"],"attention.aria.pointingDown":["peker ned"],"attention.aria.pointingLeft":["peker til venstre"],"attention.aria.pointingRight":["peker til høyre"],"attention.aria.pointingUp":["peker opp"],"attention.aria.popover":["En hvit taleboble som gir tilleggsinformasjon"],"attention.aria.tooltip":["En svart taleboble som forklarer konteksten"]}'),oi=JSON.parse('{"attention.aria.callout":["En grön pratbubbla som introducerar något nytt"],"attention.aria.close":["Stäng"],"attention.aria.highlight":["En pratbubbla med viktig information"],"attention.aria.pointingDown":["pekar ned"],"attention.aria.pointingLeft":["pekar vänster"],"attention.aria.pointingRight":["pekar höger"],"attention.aria.pointingUp":["pekar upp"],"attention.aria.popover":["En vit pratbubbla som ger ytterligare information"],"attention.aria.tooltip":["En svart pratbubbla som ger kompletterande information"]}'),ii=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.bg-transparent{background-color:#0000}.bg-\\[--w-color-button-primary-background\\]{background-color:var(--w-color-button-primary-background)}.bg-\\[--w-color-callout-background\\]{background-color:var(--w-color-callout-background)}.bg-\\[--w-s-color-surface-elevated-300\\]{background-color:var(--w-s-color-surface-elevated-300)}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.hover\\:bg-\\[--w-color-button-primary-background-hover\\]:hover{background-color:var(--w-color-button-primary-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}
58.active\\:bg-\\[--w-color-button-primary-background-active\\]:active{background-color:var(--w-color-button-primary-background-active)}.border{border-width:1px}.border-0{border-width:0}.border-2{border-width:2px}.border-b-0{border-bottom-width:0}.border-r-0{border-right-width:0}.border-\\[--w-color-callout-border\\]{border-color:var(--w-color-callout-border)}.border-\\[--w-s-color-background-inverted\\]{border-color:var(--w-s-color-background-inverted)}.border-\\[--w-s-color-surface-elevated-300\\]{border-color:var(--w-s-color-surface-elevated-300)}.rounded-4{border-radius:4px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.rounded-tl-4{border-top-left-radius:4px}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.contents{display:contents}.hidden{display:none}.hover\\:underline:hover,.focus\\:underline:focus,.active\\:underline:active{text-decoration-line:underline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.-bottom-\\[8px\\]{bottom:-8px}.-left-\\[8px\\]{left:-8px}.-right-\\[8px\\]{right:-8px}.-top-\\[8px\\]{top:-8px}.justify-center{justify-content:center}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-50{z-index:50}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-inverted{background-color:var(--w-s-color-background-inverted)}.s-bg-negative{background-color:var(--w-s-color-background-negative)}.s-bg-subtle{background-color:var(--w-s-color-background-subtle)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-negative-hover:hover{background-color:var(--w-s-color-background-negative-hover)}.hover\\:s-bg-negative-subtle-hover:hover{background-color:var(--w-s-color-background-negative-subtle-hover)}.active\\:s-bg-active:active{background-color:var(--w-s-color-background-active)}
58.active\\:s-bg-negative-active:active{background-color:var(--w-s-color-background-negative-active)}.active\\:s-bg-negative-subtle-active:active{background-color:var(--w-s-color-background-negative-subtle-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-text-negative{color:var(--w-s-color-text-negative)}.s-icon{color:var(--w-s-color-icon)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border{border-color:var(--w-s-color-border)}.hover\\:s-border-hover:hover{border-color:var(--w-s-color-border-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.drop-shadow-m{filter:drop-shadow(0 3px 8px #4040403d)drop-shadow(0 3px 6px #40404029)}.shadow-m{box-shadow:var(--w-shadow-m)}.h-\\[14px\\]{height:14px}.w-\\[14px\\]{width:14px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-8{margin-left:.8rem}.p-16{padding:1.6rem}.p-4{padding:.4rem}.px-16{padding-left:1.6rem;padding-right:1.6rem}.px-8{padding-left:.8rem;padding-right:.8rem}.py-6{padding-top:.6rem;padding-bottom:.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.font-bold{font-weight:700}.resize{resize:both}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}.leading-\\[24\\]{line-height:2.4rem}");var ni=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const ai="border-2 relative flex items-center",si="s-bg-inverted border-[--w-s-color-background-inverted] shadow-m s-text-inverted rounded-4 py-6 px-8",li="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8",di="bg-[--w-color-callout-background] border-[--w-color-callout-border] s-text py-8 px-16 rounded-8 drop-shadow-m translate-z-0",ci="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300] s-text rounded-8 p-16 drop-shadow-m translate-z-0",hi="absolute h-[14px] w-[14px] border-2 border-b-0 border-r-0 rounded-tl-4 transform",pi="s-bg-inverted border-[--w-s-color-background-inverted]",ui="bg-[--w-color-callout-background] border-[--w-color-callout-border]",gi="bg-[--w-s-color-surface-elevated-300] border-[--w-s-color-surface-elevated-300]",bi="bg-[--w-color-callout-background] border-[--w-color-callout-border]",mi={"top-start":"-top-[8px]",top:"-top-[8px]","top-end":"-top-[8px]","right-start":"-right-[8px]",right:"-right-[8px]","right-end":"-right-[8px]","bottom-start":"-bottom-[8px]",bottom:"-bottom-[8px]","bottom-end":"-bottom-[8px]","left-start":"-left-[8px]",left:"-left-[8px]","left-end":"-left-[8px]"};class vi extends se{static#e=this.styles=[Or,Qo,ii,a`#attention{z-index:50;visibility:var(--attention-visibility);display:var(--attention-display);position:absolute}:host([popover]:not(:popover-open):not(dialog[open])){display:contents}`];constructor(){super(),this.show=!1,this.tooltip=!1,this.callout=!1,this.highlight=!1,this.canClose
58=!1,this.noArrow=!1,this.flip=!1,this.crossAxis=!1,this.fallbackPlacements=[],this.attentionState=null,kr(ei,ri,ti,Zo,oi),this.handleDone=this.handleDone.bind(this),this.show=!1,this.placement="bottom",this.tooltip=!1,this.callout=!1,this.popover=!1,this.highlight=!1,this.canClose=!1,this.noArrow=!1,this.distance=8,this.skidding=0,this.flip=!1,this.crossAxis=!1,this._initialPlacement=this.placement,this._actualDirection=this.placement}connectedCallback(){if(super.connectedCallback(),this.placement&&!Object.keys(Uo).includes(this.placement))throw new Error(`Invalid "placement" attribute. Set its value to one of the following:\n${JSON.stringify(Object.keys(Uo))}`);if(this.fallbackPlacements&&!this.fallbackPlacements.every(e=>Wo.includes(e)))throw new Error(`Invalid "fallbackPlacements" attribute. Set its value to an array with one or more of the following:\n${JSON.stringify(Wo)}`);setTimeout(()=>{this.requestUpdate(),this.handleDone()},0),this.callout||(window.addEventListener("click",this.handleDone),window.addEventListener("scroll",this.handleDone),window.addEventListener("resize",this.handleDone),window.addEventListener("touch",this.handleDone)),this.tooltip&&(window.addEventListener("mouseover",this.handleDone),window.addEventListener("mouseout",this.handleDone))}disconnectedCallback(){window.removeEventListener("click",this.handleDone),window.removeEventListener("scroll",this.handleDone),window.removeEventListener("resize",this.handleDone),window.removeEventListener("touch",this.handleDone),window.removeEventListener("mouseover",this.handleDone),window.removeEventListener("mouseout",this.handleDone),super.disconnectedCallback()}handleDone(){window.requestAnimationFrame(()=>{this.show&&this._targetEl&&this._attentionEl&&this.attentionState?Go(this.attentionState).then(e=>{this._actualDirection=e?.actualDirection}):this._actualDirection=this._initialPlacement})}get _actualDirection(){return this.placement}set _actualDirection(e){this.placement=e}get _arrowEl(){return this.renderRoot.querySelector("#arrow")}get _arrowDirection(){return Uo[this._actualDirection]}get _arrowClasses(){const e=mi[this._arrowDirection];return jr([hi,this._activeVariantClasses.arrow,e])}get _arrowHtml(){return this.noArrow?W:B`<div id="arrow" class="${this._arrowClasses}"></div>`}get _activeVariantClasses(){return this.callout?{wrapper:li,arrow:ui}:this.popover?{wrapper:ci,arrow:gi}:this.tooltip?{wrapper:si,arrow:pi}:this.highlight?{wrapper:di,arrow:bi}:{wrapper:"",arrow:""}}get _attentionEl(){return this.renderRoot.querySelector("#attention")}get _targetEl(){const e=this.renderRoot?.querySelector("slot[name='target']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _messageEl(){const e=this.renderRoot.querySelector("slot[name='message']"),t=e?.assignedElements()[0];return t instanceof HTMLElement?t:null}get _wrapperClasses(){return jr([ai,this._activeVariantClasses.wrapper])}get _ariaClose(){return Ye._({id:"attention.aria.close",message:"Close",comment:"Aria label for the close button in attention"})}get _closeBtnHtml(){return B`<w-button aria-label="${this._ariaClose}" @click="${this.close}" @keydown="${this.keypressed}" variant="pill" small="" class="ml-8"><w-icon name="Close" size="small" locale="${xr()}" class="flex"></w-icon></w-button>`}updated(){this._attentionEl&&(this.callout||this._attentionEl.style.setProperty("--attention-visibility",this.show?"":"hidden"),this.tooltip||this._attentionEl.style.setProperty("--attention-display",this.show?"flex":"none"),this.attentionState={isShowing:this.show,isCallout:this.callout,actualDirection:this._actualDirection,directionName:this.placement,arrowEl:this._arrowEl,attentionEl:this._attentionEl,targetEl:this._targetEl,noArrow:this.noArrow,distance:this.distance,skidding:this.skidding,flip:this.flip,crossAxis:this.crossAxis,fallbackPlacements:this.fallbackPlacements},Go(this.attentionState))}pointingAtDirection(){switch(Uo[this._actualDirection]){case"top-start":case"top":case"top-end":return Ye._({id:"attention.aria.pointingUp",message:"pointing up",comment:"Default screenreader message for top direction in the attention component"});
58case"right-start":case"right":case"right-end":return Ye._({id:"attention.aria.pointingRight",message:"pointing right",comment:"Default screenreader message for right direction in the attention component"});case"bottom-start":case"bottom":case"bottom-end":return Ye._({id:"attention.aria.pointingDown",message:"pointing down",comment:"Default screenreader message for bottom direction in the attention component"});case"left-start":case"left":case"left-end":return Ye._({id:"attention.aria.pointingLeft",message:"pointing left",comment:"Default screenreader message for left direction in the attention component"});default:return""}}activeAttentionType(){switch(!0){case this.tooltip:return Ye._({id:"attention.aria.tooltip",message:"tooltip",comment:"Default screenreader message for tooltip in the attention component"});case this.callout:return Ye._({id:"attention.aria.callout",message:"callout speech bubble",comment:"Default screenreader message for callout speech bubble in the attention component"});case this.popover:return Ye._({id:"attention.aria.popover",message:"popover speech bubble",comment:"Default screenreader message for popover speech bubble in the attention component"});case this.highlight:return Ye._({id:"attention.aria.highlight",message:"highlighted speech bubble",comment:"Default screenreader message for highlighted speech bubble in the attention component"});default:return""}}defaultAriaLabel(){return`${this.activeAttentionType()} ${this.noArrow?"":this.pointingAtDirection()}`}firstUpdated(){this._initialPlacement=this.placement,this.callout&&this._attentionEl&&(this._attentionEl.style.position="relative")}close(){const e=new CustomEvent("close",{bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}keypressed(e){this.canClose&&"Escape"===e.key&&(e.preventDefault(),this.close())}render(){return this.callout||void 0!==this._targetEl?B`<section class="${Fr(this.className?this.className:void 0)}">${"right-start"===this.placement||"right"===this.placement||"right-end"===this.placement||"bottom-start"===this.placement||"bottom"===this.placement||"bottom-end"===this.placement?B`<slot name="target"></slot><div id="attention" class="${this._wrapperClasses}"><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div><slot name="message"></slot>${this.canClose?this._closeBtnHtml:W}</div>`:B`<div id="attention" class="${this._wrapperClasses}"><slot name="message"></slot><div role="${this.tooltip?"tooltip":"img"}" aria-label="${this.defaultAriaLabel()}">${this._arrowHtml}</div>${this.canClose?this._closeBtnHtml:W}</div><slot name="target"></slot>`}</section>`:B``}}ni([he({type:Boolean,reflect:!0})],vi.prototype,"show",void 0),ni([he({type:String,reflect:!1})],vi.prototype,"placement",void 0),ni([he({type:Boolean,reflect:!0})],vi.prototype,"tooltip",void 0),ni([he({type:Boolean,reflect:!0})],vi.prototype,"callout",void 0),ni([he({type:Boolean,reflect:!0})],vi.prototype,"popover",void 0),ni([he({type:Boolean,reflect:!0})],vi.prototype,"highlight",void 0),ni([he({attribute:"can-close",type:Boolean,reflect:!0})],vi.prototype,"canClose",void 0),ni([he({attribute:"no-arrow",type:Boolean,reflect:!0})],vi.prototype,"noArrow",void 0),ni([he({type:Number})],vi.prototype,"distance",void 0),ni([he({type:Number})],vi.prototype,"skidding",void 0),ni([he({type:Boolean,reflect:!0})],vi.prototype,"flip",void 0),ni([he({attribute:"cross-axis",type:Boolean,reflect:!0})],vi.prototype,"crossAxis",void 0),ni([he({attribute:"fallback-placements",type:Array,reflect:!0,useDefault:!0})],vi.prototype,"fallbackPlacements",void 0),customElements.get("w-attention")||customElements.define("w-attention",vi);const fi=a`:host{--_background-color:var(--w-c-badge-bg,var(--w-color-badge-neutral-background));--_color:var(--w-c-badge-color,var(--w-s-color-text));--_border-radius:var(--w-c-badge-border-radius,4px);--_border-width:var(--w-c-badge-border-width,0);--_border-color:var(--w-c-badge-border-color,transparent);--_font-size:var(--w-c-badge-font-size,var(--w-font-size-xs));--_line-height:var(--w-c-badge-line-height,var(--w-line-height-xs));--_padding-x:var(--w-c-badge-padding-x,.8rem);--_padding-y:var(--w-c-badge-padding-y,.4rem);--_backdrop-filter:var(--w-c-badge-backdrop-filter,none)}:host([variant=neutral]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-neutral-background))}
58:host([variant=info]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-info-background))}:host([variant=positive]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-positive-background))}:host([variant=warning]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-warning-background))}:host([variant=negative]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-negative-background))}:host([variant=disabled]){--_background-color:var(--w-c-badge-bg,var(--w-s-color-background-disabled))}:host([variant=price]){--_background-color:var(--w-c-badge-bg,rgba(var(--w-rgb-black), .7));--_color:var(--w-c-badge-color,var(--w-s-color-text-inverted-static))}:host([variant=sponsored]){--_background-color:var(--w-c-badge-bg,var(--w-color-badge-sponsored-background))}:host([position]){--_backdrop-filter:var(--w-c-badge-backdrop-filter,blur(4px))}:host([position=top-left]){inset:0 auto auto 0}:host([position=top-right]){inset:0 0 auto auto}:host([position=bottom-right]){inset:auto 0 0 auto}:host([position=bottom-left]){inset:auto auto 0 0}[part=base]{background-color:var(--_background-color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_border-radius);color:var(--_color);font-size:var(--_font-size);line-height:var(--_line-height);padding:var(--_padding-y) var(--_padding-x);display:inline-flex}:host([position]) [part=base]{backdrop-filter:var(--_backdrop-filter)}:host([position]){position:absolute}:host([position=top-left]) [part=base]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0}:host([position=top-right]) [part=base]{border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:0}:host([position=bottom-right]) [part=base]{border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}:host([position=bottom-left]) [part=base]{border-top-left-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:0}`;var wi=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class yi extends se{constructor(){super(...arguments),this.variant="neutral"}static#e=this.styles=[Or,fi];render(){return B`<div part="base"><slot></slot></div>`}}wi([he({type:String,reflect:!0,useDefault:!0})],yi.prototype,"variant",void 0),wi([he({type:String,reflect:!0})],yi.prototype,"position",void 0),customElements.get("w-badge")||customElements.define("w-badge",yi);const xi=a` 59 :host { 60 display: block; 61 --_background-color: var(--w-c-box-bg, transparent); 62 --_border-color: var(--w-c-box-border-color, transparent); 63 --_border-radius: var(--w-c-box-border-radius, 8px); 64 --_border-width: var(--w-c-box-border-width, 0px); 65 --_padding: var(--w-c-box-padding, 1.6rem); 66 --_bleed-margin-inline: var(--w-c-box-bleed-margin-inline, 1.6rem); 67 } 68 69 :host([info]) { 70 --_background-color: var( 71 --w-c-box-bg, 72 var(--w-s-color-background-info-subtle) 73 ); 74 } 75 76 :host([neutral]) { 77 --_background-color: var(--w-c-box-bg, var(--w-s-color-surface-sunken)); 78 } 79 80 :host([bordered]) { 81 --_background-color: var(--w-c-box-bg, var(--w-s-color-background)); 82 --_border-color: var(--w-c-box-border-color, var(--w-s-color-border)); 83 --_border-width: var(--w-c-box-border-width, 2px); 84 } 85 86 [part="base"] { 87 background-color: var(--_background-color); 88 border: var(--_border-width) solid var(--_border-color); 89 border-radius: var(--_border-radius); 90 display: block; 91 overflow-wrap: break-word; 92 padding: var(--_padding); 93 position: relative; 94 } 95 96 :host([bleed]) [part="base"] { 97 border-top-left-radius: 0; 98 border-bottom-left-radius: 0; 99 border-top-right-radius: 0; 100 border-bottom-right-radius: 0; 101 margin-left: calc(var(--_bleed-margin-inline) * -1); 102 margin-right: calc(var(--_bleed-margin-inline) * -1); 103 } 104 105 // Slotted elements remain in lightDOM which allows for control of their style outside of shadowDOM. 106 // ::slotted([Simple Selector]) confirms to Specificity rules, but (being simple) does not add weight to lightDOM skin selectors, 107 // so never gets higher Specificity. Thus in order to overwrite style linked within shadowDOM, we need to use !important. 108 // https://stackoverflow.com/a/61631668 109 ::slotted(:last-child) { 110 margin-bottom: 0px !important; 111 } 112 113 @media (min-width: 480px) { 114 :host([bleed]) [part="base"] { 115 border-radius: var(--_border-radius); 116 margin-left: 0; 117 margin-right: 0; 118 } 119 } 120`;var ki=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class _i extends(Ir(se)){constructor(){super(...arguments),this.bleed=!1,this.bordered=!1,this.info=!1,this.neutral=!1,this.role="region"}static#e=this.styles=[Or,xi];connectedCallback(){super.connectedCallback(),this.internals.role=this.role}updated(e){super.updated(e),e.has("role")&&(this.internals.role=this.role)}render(){return B`<div part="base"><slot></slot></div>`}}ki([he({type:Boolean,reflect:!0})],_i.prototype,"bleed",void 0),ki([he({type:Boolean,reflect:!0})],_i.prototype,"bordered",void 0),ki([he({type:Boolean,reflect:!0})],_i.prototype,"info",void 0),ki([he({type:Boolean,reflect:!0})],_i.prototype,"neutral",void 0),ki([he({type:String,reflect:!0,useDefault:!0})],_i.prototype,"role",void 0),customElements.get("w-box")||customElements.define("w-box",_i);const $i=a`:host{--_link-color:var(--w-c-breadcrumb-item-link-color,var(--w-s-color-text-link));--_text-color:var(--w-c-breadcrumb-item-text-color,var(--w-s-color-text));--_separator-color:var(--w-c-breadcrumb-item-separator-color,var(--w-s-color-icon));--_separator-spacing:var(--w-c-breadcrumb-item-separator-spacing,.8rem);--_font-size:var(--w-c-breadcrumb-item-font-size);--_line-height:var(--w-c-breadcrumb-item-line-height,1.5);
120--_font-weight:var(--w-c-breadcrumb-item-font-weight,400);--_padding-x:var(--w-c-breadcrumb-item-padding-x,0);--_padding-y:var(--w-c-breadcrumb-item-padding-y,0);--_link-color-hover:var(--w-c-breadcrumb-item-link-color-hover,var(--w-s-color-text-link));--_link-color-active:var(--w-c-breadcrumb-item-link-color-active,var(--w-s-color-text-link));--_outline-color:var(--w-c-breadcrumb-item-outline-color,var(--w-s-color-border-focus));--_outline-width:var(--w-c-breadcrumb-item-outline-width,2px);--_outline-offset:var(--w-c-breadcrumb-item-outline-offset,1px);display:inline-block}.s-text{color:var(--_text-color);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight)}.s-text-link{color:var(--_link-color);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);padding-left:var(--_padding-x);padding-right:var(--_padding-x);padding-top:var(--_padding-y);padding-bottom:var(--_padding-y);text-decoration:none}.s-text-link:hover{color:var(--_link-color-hover);text-decoration:underline}.s-text-link:active{color:var(--_link-color-active)}.s-text-link:focus{outline-color:var(--_outline-color);outline-width:var(--_outline-width);outline-offset:var(--_outline-offset)}.separator{color:var(--_separator-color);-webkit-user-select:none;user-select:none;font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);margin-left:var(--_separator-spacing);margin-right:var(--_separator-spacing)}`;var Si=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Ei extends se{constructor(){super(...arguments),this.currentPage=!1,this.href=null}static#e=this.styles=[Or,$i];get link(){return this.href?B`<a part="link" class="s-text-link" href="${this.href}" aria-current="${this.currentPage?"page":W}"><slot></slot></a>`:B`<span part="text" class="s-text" aria-current="${this.currentPage?"page":W}"><slot></slot></span>`}get separator(){return this.currentPage?W:B`<span part="separator" class="separator" aria-hidden="true">/</span>`}render(){return B`${this.link}${this.separator}`}}Si([he({type:Boolean,attribute:"current-page"})],Ei.prototype,"currentPage",void 0),Si([he({type:String})],Ei.prototype,"href",void 0),customElements.get("w-breadcrumb-item")||customElements.define("w-breadcrumb-item",Ei);const Ci=JSON.parse('{"breadcrumbs.ariaLabel":["Du er her"]}'),Oi=JSON.parse('{"breadcrumbs.ariaLabel":["You are here"]}'),zi=JSON.parse('{"breadcrumbs.ariaLabel":["Olet tässä"]}'),Di=JSON.parse('{"breadcrumbs.ariaLabel":["Her er du"]}'),Ai=JSON.parse('{"breadcrumbs.ariaLabel":["Du är här"]}'),Pi=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.static{position:static}.s-text{color:var(--w-s-color-text)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.space-x-8>:not([hidden])~:not([hidden]){--w-space-x-reverse:0;margin-left:calc(.8rem * calc(1 - var(--w-space-x-reverse)));margin-right:calc(.8rem * var(--w-space-x-reverse))}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}"),Ti="flex space-x-8",Mi="s-text",Vi="s-text-link",Li="sr-only",ji=B`<span class="${"select-none s-icon"}">/</span>`;class Ri extends se{static#e=this.styles=[Or,Pi];constructor(){super(),this._children=[],this._internals=this.attachInternals(),kr(Oi,Di,zi,Ci,Ai),this._defaultLabel=Ye._({id:"breadcrumbs.ariaLabel",message:"You are here",comment:"Default screen reader message for the breadcrumb component"}),this._internals.ariaLabel=this._defaultLabel}get _label(){return this.ariaLabel??this._defaultLabel}connectedCallback(){super.connectedCallback(),this._internals.role="navigation";const e=this.querySelectorAll(":scope > a"),t=this.querySelectorAll(":scope > span"),r=this.querySelectorAll("w-breadcrumb-item");r.length>0&&(e.length>0||t.length>0)&&console.warn("Mixing Legacy API and w-breadcrumb-item API children is not supported.");let o=0,i=!1;r.forEach((e,t)=>{e.hasAttribute("current-page")&&(t<r.length-1&&(i=!0),o++)}),o>1&&console.warn("Please ensure only one w-breadcrumb-item has the current-page attribute."),i&&console.warn("The current-page attribute should only be used on the final breadcrumb item.");const n=[...this.children].filter(e=>e&&!("W-BREADCRUMB-ITEM"===e.tagName)).flat(Number.POSITIVE_INFINITY).filter(e=>e).map((e,t)=>{if("string"==typeof e){const r=t===this.children.length-1;return B`<span class="${Mi}" aria-current="${r?"page":void 0}">${e}</span>`}return e.classList.add("A"===e.tagName?Vi:Mi),e});this._children=function(e,t){return e.flatMap(e=>[e,t]).slice(0,-1)}(n,ji)}render(){return B`<nav aria-labelledby="breadCrumbLabel"><h2 id="breadCrumbLabel" class="${Li}">${this._label}</h2><div class="${Ti}">${this._children}<slot></slot></div></nav>`}}customElements.get("w-breadcrumbs")||customElements.define("w-breadcrumbs",Ri);const Ni=JSON.parse('{"card.button.text":["Vælg"]}'),Ii=JSON.parse('{"card.button.text":["Select"]}'),Fi=JSON.parse('{"card.button.text":["Valitse"]}'),qi=JSON.parse('{"card.button.text":["Velg"]}'),Bi=JSON.parse('{"card.button.text":["Välj"]}'),Hi=a`:host{--_background-color:var(--w-c-card-bg,var(--w-s-color-surface-elevated-200));--_background-color-active:var(--w-c-card-bg-active,var(--w-s-color-background-active));--_background-color-hover:var(--w-c-card-bg-hover,var(--w-s-color-background-hover));--_border-color:var(--w-c-card-border-color,transparent);--_border-color-active:var(--w-c-card-border-color-active,var(--w-s-color-border-active));--_border-color-hover:var(--w-c-card-border-color-hover,var(--w-s-color-border-hover));--_border-radius:var(--w-c-card-border-radius,8px);--_border-width:var(--w-c-card-border-width,2px);
120--_box-shadow:var(--w-c-card-box-shadow,var(--w-s-shadow-surface-elevated-200));--_box-shadow-active:var(--w-c-card-box-shadow-active,var(--w-s-shadow-surface-elevated-200-active));--_box-shadow-hover:var(--w-c-card-box-shadow-hover,var(--w-s-shadow-surface-elevated-200-hover))}:host([flat]){--_border-color:var(--w-c-card-border-color,var(--w-s-color-border));--_border-width:var(--w-c-card-border-width,2px);--_border-radius:var(--w-c-card-border-radius,4px);--_box-shadow:none;--_box-shadow-active:none;--_box-shadow-hover:none}:host([selected]){--_background-color:var(--w-c-card-bg,var(--w-s-color-background-selected));--_background-color-active:var(--w-c-card-bg-active,var(--w-s-color-background-selected-active));--_background-color-hover:var(--w-c-card-bg-hover,var(--w-s-color-background-selected-hover));--_border-color:var(--w-c-card-border-color,var(--w-s-color-border-selected));--_border-color-active:var(--w-c-card-border-color-active,var(--w-s-color-border-selected-active));--_border-color-hover:var(--w-c-card-border-color-hover,var(--w-s-color-border-selected-hover));--_border-width:var(--w-c-card-border-width,2px)}[part=base]{background-color:var(--_background-color);border-radius:var(--_border-radius);box-shadow:var(--_box-shadow);display:block;position:relative;overflow:hidden}:host([clickable]) [part=base]{cursor:pointer;transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([clickable]) [part=base]:hover{background-color:var(--_background-color-hover);box-shadow:var(--_box-shadow-hover)}:host([clickable]) [part=base]:active{background-color:var(--_background-color-active);box-shadow:var(--_box-shadow-active)}[part=border]{border-radius:var(--_border-radius);border-color:var(--_border-color);border-width:var(--_border-width);pointer-events:none;transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);position:absolute;inset:0}:host([clickable][flat]) [part=base]:hover [part=border],:host([clickable][selected]) [part=base]:hover [part=border]{border-color:var(--_border-color-hover)}:host([clickable]) [part=base]:active [part=border]{border-color:var(--_border-color-active)}.sr-only{clip:rect(0, 0, 0, 0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}`;var Wi=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Ui="Enter",Ji=" ";class Yi extends se{static#e=this.styles=[Or,Hi,a`a:after{content:"";position:absolute;inset:0}:host{display:block}`];constructor(){super(),this.selected=!1,this.flat=!1,this.clickable=!1,kr(Ii,qi,Fi,Ni,Bi),this.buttonText=Ye._({id:"card.button.text",message:"Select",comment:"Screenreader message to indicate that the card is clickable"})}keypressed(e){!this.clickable||e.altKey||e.ctrlKey||e.key!==Ui&&e.key!==Ji||(e.preventDefault(),this.click())}render(){return B`<div part="base" tabindex="${Fr(this.clickable?"0":void 0)}" @keydown="${this.keypressed}"><div part="border"></div>${this.clickable?B`<button class="sr-only" aria-pressed="${this.selected}" tabindex="-1">${this.buttonText}</button>`:this.selected?B`<span class="sr-only" role="checkbox" aria-checked="true" aria-disabled="true"></span>`:W}<slot></slot></div>`}}Wi([he({type:Boolean,reflect:!0})],Yi.prototype,"selected",void 0),Wi([he({type:Boolean})],Yi.prototype,"flat",void 0),Wi([he({type:Boolean})],Yi.prototype,"clickable",void 0),customElements.get("w-card")||customElements.define("w-card",Yi) 121/** 122 * @license 123 * Copyright 2020 Google LLC 124 * SPDX-License-Identifier: BSD-3-Clause 125 */;const{I:Ki}=ie,Xi=e=>e,Gi=()=>document.createComment(""),Qi=(e,t,r)=>{const o=e._$AA.parentNode,i=void 0===t?e._$AB:t._$AA;if(void 0===r){const t=o.insertBefore(Gi(),i),n=o.insertBefore(Gi(),i);r=new Ki(t,n,e,e.options)}else{const t=r._$AB.nextSibling,n=r._$AM,a=n!==e;if(a){let t;r._$AQ?.(e),r._$AM=e,void 0!==r._$AP&&(t=e._$AU)!==n._$AU&&r._$AP(t)}if(t!==i||a){let e=r._$AA;
125for(;e!==t;){const t=Xi(e).nextSibling;Xi(o).insertBefore(e,i),e=t}}}return r},Zi=(e,t,r)=>(void 0===r&&(r=e),e._$AI(t,r),e),en={},tn=(e,t)=>(void 0===t&&(t=en),e._$AH=t),rn=e=>{e._$AR(),e._$AA.remove()},on=we(class extends ye{constructor(e){if(super(e),e.type!==ve&&e.type!==be&&e.type!==fe)throw Error("The `live` directive is not allowed on child or event bindings");if(!(e=>void 0===e.strings)(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,t){let[r]=t;if(r===H||r===W)return r;const o=e.element,i=e.name;if(e.type===ve){if(r===o[i])return H}else if(e.type===fe){if(!!r===o.hasAttribute(i))return H}else if(e.type===be&&o.getAttribute(i)===r+"")return H;return tn(e),r}}),nn=a`:host{--_label-font-size:var(--w-c-checkbox-label-font-size,var(--w-font-size-m));--_label-line-height:var(--w-c-checkbox-label-line-height,var(--w-line-height-m));--_control-size:var(--w-c-checkbox-control-size,2rem);--_gap:var(--w-c-checkbox-gap,8px);--_radius:var(--w-c-checkbox-radius,4px);--_border-width:var(--w-c-checkbox-border-width,1px);--_bg-default:var(--w-c-checkbox-bg,var(--w-s-color-background));--_border-default:var(--w-c-checkbox-border-color,var(--w-s-color-border-strong));--_icon-color:var(--w-c-checkbox-icon-color,var(--w-s-color-icon-inverted));--_bg-checked:var(--w-c-checkbox-bg-checked,var(--w-s-color-background-primary));--_border-checked:var(--w-c-checkbox-border-color-checked,var(--w-s-color-border-primary));--_checked-icon:var(--w-c-checkbox-checked-icon,var(--w-icon-toggle-checked));--_border-invalid:var(--w-c-checkbox-border-color-invalid,var(--w-s-color-border-negative));--_bg-invalid-checked:var(--w-c-checkbox-bg-invalid-checked,var(--w-s-color-background-negative));--_bg-disabled:var(--w-c-checkbox-bg-disabled,var(--w-s-color-background-disabled-subtle));--_border-disabled:var(--w-c-checkbox-border-color-disabled,var(--w-s-color-border-disabled));--_bg-disabled-checked:var(--w-c-checkbox-bg-disabled-checked,var(--w-s-color-background-disabled));--_outline-width:var(--w-c-checkbox-outline-width,2px);--_outline-color:var(--w-c-checkbox-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-checkbox-outline-offset,var(--w-outline-offset,1px));--_transition:var(--w-c-checkbox-transition,all .15s cubic-bezier(.4, 0, .2, 1));--_bg:var(--_bg-default);--_border-color:var(--_border-default)}:host([type=checkbox]){--_radius:var(--w-c-checkbox-radius,4px)}:host([checked]),:host([indeterminate]){--_bg:var(--_bg-checked);--_border-color:var(--_border-checked)}:host([disabled]){--_bg:var(--_bg-disabled);--_border-color:var(--_border-disabled)}:host([disabled][checked]),:host([disabled][indeterminate]){--_bg:var(--_bg-disabled-checked)}[part~=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);user-select:none;cursor:pointer;display:block}[part=base]{grid-template-columns:var(--_control-size) max-content;gap:var(--_gap);
125display:grid}[part=input]{opacity:0;pointer-events:none;margin:0;padding:0;position:absolute;inset:0}[part=control]{height:var(--_control-size);width:var(--_control-size);border-width:var(--_border-width);border-style:solid;border-color:var(--_border-color);border-radius:var(--_radius);background-color:var(--_bg);color:var(--_icon-color);cursor:pointer;user-select:none;appearance:none;transition:var(--_transition);text-align:center;font-weight:700;line-height:var(--w-line-height-xs);font-size:var(--w-font-size-m);flex-shrink:0;display:block;position:relative}[part=control]:has(>[part=input][aria-invalid=true]:not(:disabled)){border-color:var(--_border-invalid)}[part=control]:has(>[part=input][aria-invalid=true]:is(:checked,:indeterminate):not(:disabled)){background-color:var(--_bg-invalid-checked)}:host(:focus-visible){outline:none}[part=control]:has(>[part=input]:focus-visible:not(:disabled)),:host(:focus-visible) [part=control]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}[part=control]:has(:checked){background-image:var(--_checked-icon);background-position:50%}@media (prefers-reduced-motion:reduce){:host{--w-c-checkbox-transition:none}}`; 126/** 127 * @license 128 * Copyright 2020 Google LLC 129 * SPDX-License-Identifier: BSD-3-Clause 130 */var an=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class sn extends(Ir(se)){constructor(){super(...arguments),this.value=null,this.indeterminate=!1,this.checked=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.#m=!1,this.#v=!1,this.#f=!1,this.#w=()=>{this.#y(),this.#x()},this.#k=e=>{this.disabled||e.defaultPrevented||" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||("Enter"===e.key&&this.internals.form?this.internals.form.requestSubmit():e.composedPath()[0]!==this.input&&(e.preventDefault(),this.click()))}}static#e=this.styles=[Or,nn];static#g=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};set name(e){this._ownName=e}get name(){return this._ownName||this._groupName}#m;#v;#f;get _computedInvalid(){return this.invalid||!0===this._groupInvalid}connectedCallback(){super.connectedCallback();const e=this.getAttribute("value");this.value=e??"on",this.#m=this.hasAttribute("checked"),this.checked=this.#m,this.addEventListener("invalid",this.#w),this.addEventListener("keydown",this.#k),this.#_()}handleClick(){this.disabled||(this.#y(),this.checked=!this.checked,this.indeterminate=!1,this.updateComplete.then(()=>{this.input.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}))}#w;#k;updated(e){super.updated(e),(e.has("checked")||e.has("indeterminate"))&&this.#$(),this.#S(e)&&(this.#_(),this.#x())}resetFormControl(){this.checked=this.#m,this.#_(),this.#x()}click(){this.disabled||this.input?.click()}focus(e){this.input?.focus(e)}blur(){this.input?.blur()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.#x(),this.internals.checkValidity()}reportValidity(){return this.#y(),this.#x(),this.internals.checkValidity()}#y(){this.#f=!0}#E(){return this.input?.validationMessage||" "}#C(){return this.input??void 0}#O(e){this.internals.setValidity(e,this.#E(),this.#C())}#x(){if(this.disabled)return void this.internals.setValidity({});const e=this.required&&!this.checked,t=this.invalid&&!this.#v;if(e)return this.#v=!0,this.invalid=this.#f,void this.#O({valueMissing:!0});this.#v&&(this.invalid=!1,this.#v=!1),t?this.#O({customError:!0}):this.internals.setValidity({})}#_(){if(this.disabled)return void this.setValue(null);const e=this.checked?this.value:null;this.setValue(e)}#$(){this.input&&(this.input.checked=this.checked,this.input.indeterminate=this.indeterminate)}#S(e){return e.has("checked")||e.has("value")||e.has("disabled")||e.has("required")||e.has("invalid")}render(){const e=!this.checked&&this.indeterminate,t=e?"mixed":this.checked?"true":"false";return B`<label part="base"><span part="control"><input part="input" type="checkbox" name="${Fr(this.name||void 0)}" value="${Fr(this.value)}" .indeterminate="${on(this.indeterminate)}" .checked="${on(this.checked)}" .disabled="${this.disabled}" .required="${this.required}" aria-checked="${t}" aria-invalid="${Fr(this._computedInvalid?"true":void 0)}" @click="${this.handleClick}"> ${e?"â":""}</span><slot part="label"></slot></label>`}}an([ge('input[type="checkbox"]')],sn.prototype,"input",void 0),an([he({reflect:!0})],sn.prototype,"name",null),an([he({reflect:!0})],sn.prototype,"value",void 0),an([he({type:Boolean,reflect:!0})],sn.prototype,"indeterminate",void 0),an([he({type:Boolean,reflect:!0})],sn.prototype,"checked",void 0),an([he({type:Boolean,reflect:!0})],sn.prototype,"disabled",void 0),an([he({type:Boolean,reflect:!0})],sn.prototype,"required",void 0),an([he({type:Boolean,reflect:!0}
130)],sn.prototype,"invalid",void 0),an([he({attribute:!1})],sn.prototype,"_groupInvalid",void 0),an([he({attribute:!1})],sn.prototype,"_groupName",void 0);const ln=sn;customElements.get("w-checkbox")||customElements.define("w-checkbox",sn);const dn=JSON.parse('{"checkbox-group.label.optional":["Valgfri"],"checkbox-group.validation.required":["Mindst én valgt mulighed er påkrævet."]}'),cn=JSON.parse('{"checkbox-group.label.optional":["Optional"],"checkbox-group.validation.required":["At least one selection is required."]}'),hn=JSON.parse('{"checkbox-group.label.optional":["Valinnainen"],"checkbox-group.validation.required":["Vähintään yksi valinta vaaditaan."]}'),pn=JSON.parse('{"checkbox-group.label.optional":["Valgfri"],"checkbox-group.validation.required":["Minst ett valg er påkrevd."]}'),un=JSON.parse('{"checkbox-group.label.optional":["Valfritt"],"checkbox-group.validation.required":["Minst ett val krävs."]}');var gn=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};kr(cn,pn,hn,dn,un);class bn extends(Ir(se)){constructor(){super(...arguments),this.optional=!1,this.required=!1,this.invalid=!1,this._hasHelpTextSlot=!1,this.#f=!1,this.#z=!1,this._internalTabIndex=-1,this.#D=()=>{this.#y(),this.#x(),this.requestUpdate()},this.#w=()=>{this.#y(),this.#x(),this.requestUpdate()},this.#A=()=>{this.#P(),this.#x(),this.requestUpdate()},this.#T=()=>{this.requestUpdate()}}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#f;#z;#M;static#g=this.styles=a`.wrapper{flex-direction:column;gap:16px;display:inline-flex}.checkbox-group{gap:16px;display:grid}.label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);color:var(--w-s-color-text);align-items:center;gap:8px;font-weight:700;display:flex}.optional{color:var(--w-s-color-text-subtle);font-weight:400}.help-text{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);color:var(--w-s-color-text-subtle);display:block}.error{color:var(--w-s-color-text-negative)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}`;helpTextSlotChange(){this.renderRoot.querySelector("slot[name=help-text]").assignedElements().length&&(this._hasHelpTextSlot=!0)}render(){const e=this.#V()>0,t=this.required&&!e&&this.#f,r=this.invalid||t,o=r?this.#L():this.helpText,i=Boolean(o||this._hasHelpTextSlot),n=i?"checkbox-group__help":void 0,a=this.label?"checkbox-group__label":void 0,s=r?"true":void 0;return B`<div class="wrapper" tabindex="${this._internalTabIndex}">${this.label?B`<div class="label" id="${Fr(a)}"><span>${this.label}</span> ${this.optional&&!this.required?B`<span class="optional">${Ye._({id:"checkbox-group.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</div>`:W}<div class="checkbox-group" role="group" aria-labelledby="${Fr(a)}" aria-describedby="${Fr(n)}" aria-invalid="${Fr(s)}"><slot></slot></div><div ?hidden="${!i}" class="${r?"help-text error":"help-text"}" id="${Fr(n)}">${o}<slot @slotchange="${this.helpTextSlotChange}" name="help-text"></slot></div></div>`}connectedCallback(){super.connectedCallback(),this.addEventListener("change",this.#D),this.addEventListener("invalid",this.#w),this.addEventListener("slotchange",this.#A),this.#M=Ye.on("change",this.#T),this.setValue(null),this.#j()}disconnectedCallback(){this.#M?.(),this.#M=void 0,super.disconnectedCallback()}checkValidity(){return this.#x(),this.internals.checkValidity()}reportValidity(){return this.#y(),this.#x(),this.internals.checkValidity()}focus(e){const t=this.#R();
130t?.focus?t.focus(e):HTMLElement.prototype.focus.call(this,e)}#D;#w;#A;#y(){this.#f=!0}#T;#V(){return this.#N().filter(e=>e.checked).length}#P(){if(this.name)for(const e of this.#N()){const t=e;t&&"object"==typeof t&&!t.name&&(t._groupName=this.name)}}#I(e){for(const t of this.#N())"_groupInvalid"in t&&(t._groupInvalid=e)}#R(){return this.#N()[0]}#N(){const e=this.shadowRoot?.querySelector("slot");return e?.assignedElements({flatten:!0})??[]}#L(){return Ye._({id:"checkbox-group.validation.required",message:"At least one selection is required.",comment:"Shown when required checkbox group has no selections"})}updated(e){super.updated(e),this.#F(e)&&(e.has("name")&&this.#P(),this.#x())}#F(e){return e.has("invalid")||e.has("required")||e.has("helpText")||e.has("name")}#q(e){const t=this.#R();this.internals.setValidity(e," ",t??void 0)}#B(e){this._internalTabIndex=e?0:-1}#x(){this.#j();const e=this.#V()>0,t=this.required&&!e,r=this.invalid,o=t&&this.#f,i=r||o;return this.#B(i),t?(this.#q({valueMissing:!0}),void this.#I(i)):r?(this.#q({customError:!0}),void this.#I(!0)):(this.internals.setValidity({}),void this.#I(!1))}#j(){this.#z||this.internals.form&&(this.name&&this.name.trim().length>0||(console.warn('w-checkbox-group: "name" is required for form submission.'),this.#z=!0))}}gn([he({type:String,reflect:!0})],bn.prototype,"label",void 0),gn([he({type:String,reflect:!0})],bn.prototype,"tooltip",void 0),gn([he({type:String,reflect:!0})],bn.prototype,"name",void 0),gn([he({type:Boolean,reflect:!0})],bn.prototype,"optional",void 0),gn([he({type:String,reflect:!0,attribute:"help-text"})],bn.prototype,"helpText",void 0),gn([he({type:Boolean,reflect:!0})],bn.prototype,"required",void 0),gn([he({type:Boolean,reflect:!0})],bn.prototype,"invalid",void 0),gn([pe()],bn.prototype,"_hasHelpTextSlot",void 0),gn([pe()],bn.prototype,"_internalTabIndex",void 0);const mn=bn;customElements.get("w-checkbox-group")||customElements.define("w-checkbox-group",bn) 131/** 132 * @license 133 * Copyright 2017 Google LLC 134 * SPDX-License-Identifier: BSD-3-Clause 135 */;const vn=(e,t,r)=>{const o=new Map;for(let i=t;i<=r;i++)o.set(e[i],i);return o},fn=we(class extends ye{constructor(e){if(super(e),e.type!==me)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let o;void 0===r?r=t:void 0!==t&&(o=t);const i=[],n=[];let a=0;for(const t of e)i[a]=o?o(t,a):a,n[a]=r(t,a),a++;return{values:n,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,t){let[r,o,i]=t;const n=(e=>e._$AH)(e),{values:a,keys:s}=this.dt(r,o,i);if(!Array.isArray(n))return this.ut=s,a;const l=this.ut??=[],d=[];let c,h,p=0,u=n.length-1,g=0,b=a.length-1;for(;p<=u&&g<=b;)if(null===n[p])p++;else if(null===n[u])u--;else if(l[p]===s[g])d[g]=Zi(n[p],a[g]),p++,g++;else if(l[u]===s[b])d[b]=Zi(n[u],a[b]),u--,b--;else if(l[p]===s[b])d[b]=Zi(n[p],a[b]),Qi(e,d[b+1],n[p]),p++,b--;else if(l[u]===s[g])d[g]=Zi(n[u],a[g]),Qi(e,n[p],n[u]),u--,g++;else if(void 0===c&&(c=vn(s,g,b),h=vn(l,p,u)),c.has(l[p]))if(c.has(l[u])){const t=h.get(s[g]),r=void 0!==t?n[t]:null;if(null===r){const t=Qi(e,n[p]);Zi(t,a[g]),d[g]=t}else d[g]=Zi(r,a[g]),Qi(e,n[p],r),n[t]=null;g++}else rn(n[u]),u--;else rn(n[p]),p++;for(;g<=b;){const t=Qi(e,d[b+1]);Zi(t,a[g]),d[g++]=t}for(;p<=u;){const e=n[p++];null!==e&&rn(e)}return this.ut=s,tn(e,d),H}}),wn=JSON.parse('{"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),yn=JSON.parse('{"combobox.aria.noSuggestions":["No suggestions"],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," suggestion"],"other":["#"," suggestions"]}]]}'),xn=JSON.parse('{"combobox.aria.noSuggestions":["Ei ehdotuksia"],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," ehdotus"],"other":["#"," ehdotusta"]}]]}'),kn=JSON.parse('{"combobox.aria.noSuggestions":["Ingen forslag"],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one":["#"," forslag"],"other":["#"," forslag"]}]]}'),_n=JSON.parse('{"combobox.aria.noSuggestions":["Inga förslag"],"combobox.aria.pluralSuggestions":[["numSuggestions","plural",{"one"
135:["#"," förslag"],"other":["#"," förslag"]}]]}'),$n=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.rounded-8{border-radius:8px}.block{display:block}.overflow-hidden{overflow:hidden}.list-none{list-style-type:none}.left-0{left:0}.right-0{right:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.z-0{z-index:0}.z-20{z-index:20}.s-bg{background-color:var(--w-s-color-background)}.s-bg-selected{background-color:var(--w-s-color-background-selected)}.hover\\:s-bg-hover:hover{background-color:var(--w-s-color-background-hover)}.hover\\:s-bg-selected-hover:hover{background-color:var(--w-s-color-background-selected-hover)}.shadow-m{box-shadow:var(--w-shadow-m)}.m-0{margin:0}.p-0{padding:0}.p-8{padding:.8rem}.pb-4{padding-bottom:.4rem}.visible{visibility:visible}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.select-none{-webkit-user-select:none;user-select:none}");var Sn=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const En="relative z-0",Cn="absolute z-20 left-0 right-0 s-bg pb-4 rounded-8 overflow-hidden shadow-m",On="m-0 p-0 select-none list-none",zn="block cursor-pointer p-8",Dn="hover:s-bg-hover",An="s-bg-selected hover:s-bg-selected-hover",Pn="font-bold",Tn="sr-only";class Mn extends(Ir(se)){static#e=this.styles=[Or,$n];constructor(){super(),this.options=[],this.label="",this.placeholder="",this.value="",this.openOnFocus=!1,this.selectOnBlur=!0,this.matchTextSegments=!1,this.disableStaticFiltering=!1,this.invalid=!1,this.helpText="",this.disabled=!1,this.required=!1,this.optional=!1,this.name="",this.autocomplete="off",this._isOpen=!1,this._navigationOption=null,this._currentOptions=[],this._lightDomOptions=[],this._optionIdCounter=0,this._displayValue="",this.#h="",kr(yn,kn,xn,wn,_n)}#h;#H;firstUpdated(){this.#h=this.value}updated(e){e.has("value")&&this.setValue(this.value)}resetFormControl(){this.value=this.#h}connectedCallback(){super.connectedCallback(),this.#W(),this.#H=new MutationObserver(()=>{this.#W()}),this.#H.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["label","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.#H?.disconnect()}get _listboxId(){return`${this._id}-listbox`}get _id(){return"combobox"}get _helpId(){return this.helpText?`${this._id}__hint`:void 0}get _sourceOptions(){return Array.isArray(this.options)&&this.options.length?this.options:this._lightDomOptions}get _navigationLabelOrDisplayValue(){return this._navigationOption?this._navigationOption.label||this._navigationOption.value:this._displayValue}get _navigationValueOrInputValue(){return this._navigationOption?.value||this.value}_createOptionsWithIdAndMatch(e,t){return e.map((e,r)=>({...e,id:`${this._id}-option-${this._optionIdCounter+r}`,key:e.key||e.value,currentInputValue:t}))}#U(){return[...this.children].filter(e=>"option"===e.tagName.toLowerCase())}#W(){this._lightDomOptions=this.#U().map(e=>{const t=e.getAttribute("value")??"";return{value:t,label:e.hasAttribute("label")?e.getAttribute("label")??"":e.textContent??"",key:t}})}_getAriaText(e,t,r){if(!e||!r)return"";const o=e.filter(e=>(e.label||e.value).toLowerCase().includes(t.toLowerCase())),i=Ye._({id:"combobox.aria.pluralSuggestions",message:"{numSuggestions, plural, one {# suggestion} other {# suggestions}}",comment:"Aria text for combobox when there are one or more suggestions",values:{numSuggestions:o.length}}),n=Ye._({id:"combobox.aria.noSuggestions",message:"No suggestions",comment:"Aria text for combobox when no suggestions"});return o.length?i:n}_getOptionClasses(e){return jr(zn,this._navigationOption?.id===e?.id?An:Dn)}_handleKeyDown(e){const t=["ArrowDown","ArrowUp","PageUp","PageDown","Home","End"].includes(e.ke
135y),r=["ArrowDown","ArrowLeft","ArrowUp","ArrowRight"];if(!t||this._isOpen){if(t&&this._isOpen)this._findAndSetActiveOption(e);else if(!(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey))switch(e.key){case"Enter":this._navigationOption&&(e.preventDefault(),this._handleSelect(this._navigationOption),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),t=e?.shadowRoot?.querySelector("input");t&&(t.value=this._displayValue)})),this._isOpen=!1;break;case"Tab":case"Delete":this._isOpen=!1;break;case"Escape":this._isOpen?this._isOpen=!1:this._handleChange(""),this._navigationOption=null;break;case"Backspace":this._handleChange(this._navigationLabelOrDisplayValue),this._navigationOption=null,this._isOpen=!0;break;default:if(r.includes(e.key))break;this._isOpen=!0,this._navigationOption?(this._handleChange(this._navigationOption.value),this._navigationOption=null):this._handleChange(this.value)}}else this._isOpen=!0}_findAndSetActiveOption(e){e.preventDefault();const t=this._currentOptions.findIndex(e=>e.id===this._navigationOption?.id),r=t+1,o=t-1;switch(e.key){case"ArrowDown":this._navigationOption=r>this._currentOptions.length-1?null:this._currentOptions[r];break;case"ArrowUp":this._navigationOption=-2===o?this._currentOptions.at(-1)??null:o<0?null:this._currentOptions[o];break;case"PageUp":this._navigationOption=t-10<0?this._currentOptions[0]:this._currentOptions[t-10];break;case"PageDown":this._navigationOption=t+10>this._currentOptions.length-1?this._currentOptions.at(-1)??null:this._currentOptions[t+10]??null;break;case"Home":this._navigationOption=this._currentOptions[0];break;case"End":this._navigationOption=this._currentOptions.at(-1)??null}}_handleSelect(e){this.value=e.value,this._displayValue=e.label||e.value,this.setValue(this.value);const t=new CustomEvent("select",{detail:{value:e.value},bubbles:!0,composed:!0});this.dispatchEvent(t),this._isOpen=!1,this._navigationOption=null,this.disableStaticFiltering&&(this._currentOptions=[])}_handleChange(e){if(void 0===e)return;this.value=e,this._displayValue=e;const t=new CustomEvent("change",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}_handleFocus(){if(!this.openOnFocus)return;const e=new CustomEvent("focus",{bubbles:!0,composed:!0});this.dispatchEvent(e),this._isOpen=!0}_handleBlur(e){const t=e.relatedTarget;if(t&&this.shadowRoot?.contains(t))return;if(this._isOpen=!1,this.selectOnBlur&&(this._navigationOption||!this._navigationOption&&-1!==this._currentOptions.findIndex(e=>e.value===this.value))){const e=this._navigationOption?.value||this.value;this.value=e;const t=new CustomEvent("select",{detail:{value:e},bubbles:!0,composed:!0});this.dispatchEvent(t)}this._navigationOption=null;const r=new CustomEvent("blur",{detail:{value:this._navigationValueOrInputValue},bubbles:!0,composed:!0});this.dispatchEvent(r)}_handleOptionClick(e,t){this._handleSelect(t),requestAnimationFrame(()=>{const e=this.shadowRoot?.querySelector("w-textfield"),r=e?.shadowRoot?.querySelector("input");r&&(r.value=t.label||t.value)})}_handleContainerBlur(e){(!e.currentTarget||!e.currentTarget.contains(e.relatedTarget))&&(this._isOpen=!1)}_renderTextMatch(e,t){if(!this.matchTextSegments)return e;const r=e.toLowerCase().indexOf(t.currentInputValue.toLowerCase());if(-1!==r){const o=r+t.currentInputValue.length;return B`${e.substring(0,r)}<span class="${Pn}">${e.substring(r,o)}</span>${e.substring(o)}`}return e}willUpdate(e){const t=this._sourceOptions,r=e.has("_lightDomOptions");if(e.has("value")||e.has("options")||r){const e=t.find(e=>e.value===this.value),r=e?e.label||e.value:this.value;this._displayValue!==r&&this._displayValue!==this.value&&(this._displayValue=r),!this._displayValue&&this.value&&(this._displayValue=r)}(e.has("options")||r||e.has("value")||e.has("disableStaticFiltering")||e.has("_displayValue"))&&(this._optionIdCounter+=t.length,this._currentOptions=this._createOptionsWithIdAndMatch(t,this._displayValue).filter(e=>!!this.disableStaticFiltering||(e.label||e.value).toLowerCase().includes(this._displayValue.toLowerCase()))),this.disableStaticFiltering&&this._currentOptions.length&&1===this._currentOptions.length&&!this._currentOptions.some(e=>e.value===this.value)&&!this._isOpen&&(this._isOpen=!0)}render(){return B`<div class="${jr(En)}" @blur="${this._handleContainerBlur}"><w-textfield class="w-combobox-textfield" .value="${this._navigationLabelOrDisplayValue}" .label="${this.label}" .placeholder="${this.placeholder}
135" .invalid="${this.invalid}" .helpText="${this.helpText}" .disabled="${this.disabled}" .required="${this.required}" .optional="${this.optional}" .name="${this.name}" .autocomplete="${this.autocomplete||"off"}" .tooltip="${this.tooltip}" role="combobox" aria-autocomplete="list" aria-expanded="${this._isOpen&&0!==this._currentOptions.length}" aria-activedescendant="${Fr(this._isOpen?this._navigationOption?.id:void 0)}" aria-controls="${this._listboxId}" @input="${e=>this._handleChange(e.target.value)}" @focus="${this._handleFocus}" @blur="${this._handleBlur}" @keydown="${this._handleKeyDown}"></w-textfield><span class="${Tn}" role="status">${this._getAriaText(this._currentOptions,this._displayValue,this._isOpen)}</span><div ?hidden="${!this._isOpen||!this._currentOptions.length}" class="${jr(Cn)}"><ul id="${this._listboxId}" role="listbox" class="${On}">${fn(this._currentOptions,e=>e.key,e=>{const t=e.label||e.value;return B`<li id="${e.id}" role="option" aria-selected="${this._navigationOption?.id===e.id}" tabindex="-1" class="${this._getOptionClasses(e)}" @mousedown="${t=>this._handleOptionClick(t,e)}">${this._renderTextMatch(t,e)}</li>`})}</ul></div></div>`}}Sn([he({type:Array})],Mn.prototype,"options",void 0),Sn([he({type:String,reflect:!0,useDefault:!0})],Mn.prototype,"label",void 0),Sn([he({type:String,reflect:!0})],Mn.prototype,"tooltip",void 0),Sn([he({type:String,reflect:!0,useDefault:!0})],Mn.prototype,"placeholder",void 0),Sn([he({type:String,reflect:!0,useDefault:!0})],Mn.prototype,"value",void 0),Sn([he({type:Boolean,attribute:"open-on-focus",reflect:!0})],Mn.prototype,"openOnFocus",void 0),Sn([he({type:Boolean,attribute:"select-on-blur",reflect:!0,useDefault:!0})],Mn.prototype,"selectOnBlur",void 0),Sn([he({type:Boolean,attribute:"match-text-segments",reflect:!0})],Mn.prototype,"matchTextSegments",void 0),Sn([he({type:Boolean,attribute:"disable-static-filtering",reflect:!0})],Mn.prototype,"disableStaticFiltering",void 0),Sn([he({type:Boolean,reflect:!0})],Mn.prototype,"invalid",void 0),Sn([he({type:String,attribute:"help-text",reflect:!0,useDefault:!0})],Mn.prototype,"helpText",void 0),Sn([he({type:Boolean,reflect:!0})],Mn.prototype,"disabled",void 0),Sn([he({type:Boolean,reflect:!0})],Mn.prototype,"required",void 0),Sn([he({type:Boolean,reflect:!0})],Mn.prototype,"optional",void 0),Sn([he({type:String,reflect:!0,useDefault:!0})],Mn.prototype,"name",void 0),Sn([he({type:String,reflect:!0,useDefault:!0})],Mn.prototype,"autocomplete",void 0),Sn([pe()],Mn.prototype,"_isOpen",void 0),Sn([pe()],Mn.prototype,"_navigationOption",void 0),Sn([pe()],Mn.prototype,"_currentOptions",void 0),Sn([pe()],Mn.prototype,"_lightDomOptions",void 0),Sn([pe()],Mn.prototype,"_optionIdCounter",void 0),Sn([pe()],Mn.prototype,"_displayValue",void 0),customElements.get("w-combobox")||customElements.define("w-combobox",Mn);const Vn=6048e5,Ln=Symbol.for("constructDateFrom");function jn(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&Ln in e?e[Ln](t):e instanceof Date?new e.constructor(t):new Date(t)}function Rn(e,t){return jn(t||e,e)}function Nn(e,t,r){const o=Rn(e,r?.in);return isNaN(t)?jn(e,NaN):t?(o.setDate(o.getDate()+t),o):o}function In(e,t,r){const o=Rn(e,r?.in);if(isNaN(t))return jn(e,NaN);if(!t)return o;const i=o.getDate(),n=jn(e,o.getTime());n.setMonth(o.getMonth()+t+1,0);return i>=n.getDate()?n:(o.setFullYear(n.getFullYear(),n.getMonth(),i),o)}let Fn={};function qn(){return Fn}function Bn(e,t){const r=qn(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Rn(e,t?.in),n=i.getDay(),a=(n<o?7:0)+n-o;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function Hn(e,t){return Bn(e,{...t,weekStartsOn:1})}function Wn(e,t){const r=Rn(e,t?.in),o=r.getFullYear(),i=jn(r,0);i.setFullYear(o+1,0,4),i.setHours(0,0,0,0);const n=Hn(i),a=jn(r,0);a.setFullYear(o,0,4),a.setHours(0,0,0,0);const s=Hn(a);return r.getTime()>=n.getTime()?o+1:r.getTime()>=s.getTime()?o:o-1}function Un(e){const t=Rn(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function Jn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];const i=jn.bind(null,e||r.find(e=>"object"==typeof e));return r.map(i)}function Yn(e,t){const r=Rn(e,t?.in);return r.setHours(0,0,0,0),r}function Kn(e,t,r){const[o,i]=Jn(r?.in,e,t),n=Yn(o),a=Yn(i),s=+n-Un(n),l=+a-Un(a);return Math.round((s-l)/864e5)}function Xn(e,t,r){return Nn(e,7*t,r)}function Gn(e,t,r){const[o,i]=Jn(r?.in,e,t);return+Yn(o)===+Yn(i)}function Qn(e){return!(!((t=e)instanceof Date||"object"==typeof t&&"[object Date]"===Object.prototype.toString.call(t))&&"number"!=typeof e||isNaN(+Rn(e)));var t}function Zn(e,t){const[r,o]=Jn(e,t.start,t.end);return{start:r,end:o}}function ea(e,t){const r=Rn(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function ta(e,t){const r=qn(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Rn(e,t?.in),n=i.getDay(),a=6+(n<o?-7:0)-(n-o);return i.setDate(i.getDate()+a),i.setHours(23,59,59,999),i}const ra={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},oa=(e,t,r)=>{let o;const i=ra[e];
vendor: 7,447 bytes, line 135
135return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+o:o+" ago":o};function ia(e){return t=>{void 0===t&&(t={});const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const na={date:ia({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:ia({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},aa={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},sa=(e,t,r,o)=>aa[e];function la(e){return(t,r)=>{let o;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,i=r?.width?String(r.width):t;o=e.formattingValues[i]||e.formattingValues[t]}else{const t=e.defaultWidth,i=r?.width?String(r.width):e.defaultWidth;o=e.values[i]||e.values[t]}return o[e.argumentCallback?e.argumentCallback(t):t]}}const da={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:la({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:la({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:la({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:la({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:la({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function ca(e){return(t,r)=>{void 0===r&&(r={});const o=r.width,i=o&&e.matchPatterns[o]||e.matchPatterns[e.defaultMatchWidth],n=t.match(i);if(!n)return null;const a=n[0],s=o&&e.parsePatterns[o]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return r;return}(s,e=>e.test(a)):function(e,t){for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&t(e[r]))return r;return}(s,e=>e.test(a));let d;d=e.valueCallback?e.valueCallback(l):l,d=r.valueCallback?r.valueCallback(d):d;return{value:d,rest:t.slice(a.length)}}}function ha(e){return(t,r)=>{void 0===r&&(r={});const o=t.match(e.matchPattern);if(!o)return null;const i=o[0],n=t.match(e.parsePattern);if(!n)return null;let a=e.valueCallback?e.valueCallback(n[0]):n[0];a=r.valueCallback?r.valueCallback(a):a;return{value:a,rest:t.slice(i.length)}}}const pa={ordinalNumber:ha({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ca({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ca({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ca({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:ca({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},ua={code:"en-US",formatDistance:oa,formatLong:na,formatRelative:sa,localize:da,match:pa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function ga(e,t){const r=Rn(e,t?.in),o=Kn(r,function(e,t){const r=Rn(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}(r));return o+1}function ba(e,t){const r=Rn(e,t?.in),o=+Hn(r)-+function(e,t){const r=Wn(e,t),o=jn(e,0);return o.setFullYear(r,0,4),o.setHours(0,0,0,0),Hn(o)}(r);return Math.round(o/Vn)+1}function ma(e,t){const r=Rn(e,t?.in),o=r.getFullYear(),i=qn(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,a=jn(t?.in||e,0);a.setFullYear(o+1,0,n),a.setHours(0,0,0,0);const s=Bn(a,t),l=jn(t?.in||e,0);l.setFullYear(o,0,n),l.setHours(0,0,0,0);const d=Bn(l,t);return+r>=+s?o+1:+r>=+d?o:o-1}function va(e,t){const r=Rn(e,t?.in),o=+Bn(r,t)-+function(e,t){const r=qn(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,i=ma(e,t),n=jn(t?.in||e,0);return n.setFullYear(i,0,o),n.setHours(0,0,0,0),Bn(n,t)}(r,t);return Math.round(o/Vn)+1}function fa(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const wa={y(e,t){const r=e.getFullYear(),o=r>0?r:1-r;return fa("yy"===t?o%100:o,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):fa(r+1,2)},d:(e,t)=>fa(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];
vendor: 4,862 bytes, line 135
135default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>fa(e.getHours()%12||12,t.length),H:(e,t)=>fa(e.getHours(),t.length),m:(e,t)=>fa(e.getMinutes(),t.length),s:(e,t)=>fa(e.getSeconds(),t.length),S(e,t){const r=t.length,o=e.getMilliseconds();return fa(Math.trunc(o*Math.pow(10,r-3)),t.length)}},ya="midnight",xa="noon",ka="morning",_a="afternoon",$a="evening",Sa="night",Ea={G:function(e,t,r){const o=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(o,{width:"abbreviated"});case"GGGGG":return r.era(o,{width:"narrow"});default:return r.era(o,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),o=t>0?t:1-t;return r.ordinalNumber(o,{unit:"year"})}return wa.y(e,t)},Y:function(e,t,r,o){const i=ma(e,o),n=i>0?i:1-i;if("YY"===t){return fa(n%100,2)}return"Yo"===t?r.ordinalNumber(n,{unit:"year"}):fa(n,t.length)},R:function(e,t){return fa(Wn(e),t.length)},u:function(e,t){return fa(e.getFullYear(),t.length)},Q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(o);case"QQ":return fa(o,2);case"Qo":return r.ordinalNumber(o,{unit:"quarter"});case"QQQ":return r.quarter(o,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(o,{width:"narrow",context:"formatting"});default:return r.quarter(o,{width:"wide",context:"formatting"})}},q:function(e,t,r){const o=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(o);case"qq":return fa(o,2);case"qo":return r.ordinalNumber(o,{unit:"quarter"});case"qqq":return r.quarter(o,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(o,{width:"narrow",context:"standalone"});default:return r.quarter(o,{width:"wide",context:"standalone"})}},M:function(e,t,r){const o=e.getMonth();switch(t){case"M":case"MM":return wa.M(e,t);case"Mo":return r.ordinalNumber(o+1,{unit:"month"});case"MMM":return r.month(o,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(o,{width:"narrow",context:"formatting"});default:return r.month(o,{width:"wide",context:"formatting"})}},L:function(e,t,r){const o=e.getMonth();switch(t){case"L":return String(o+1);case"LL":return fa(o+1,2);case"Lo":return r.ordinalNumber(o+1,{unit:"month"});case"LLL":return r.month(o,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(o,{width:"narrow",context:"standalone"});default:return r.month(o,{width:"wide",context:"standalone"})}},w:function(e,t,r,o){const i=va(e,o);return"wo"===t?r.ordinalNumber(i,{unit:"week"}):fa(i,t.length)},I:function(e,t,r){const o=ba(e);return"Io"===t?r.ordinalNumber(o,{unit:"week"}):fa(o,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):wa.d(e,t)},D:function(e,t,r){const o=ga(e);return"Do"===t?r.ordinalNumber(o,{unit:"dayOfYear"}):fa(o,t.length)},E:function(e,t,r){const o=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(o,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(o,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},e:function(e,t,r,o){const i=e.getDay(),n=(i-o.weekStartsOn+8)%7||7;switch(t){case"e":return String(n);case"ee":return fa(n,2);case"eo":return r.ordinalNumber(n,{unit:"day"});case"eee":return r.day(i,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(i,{width:"short",context:"formatting"});default:return r.day(i,{width:"wide",context:"formatting"})}},c:function(e,t,r,o){const i=e.getDay(),n=(i-o.weekStartsOn+8)%7||7;switch(t){case"c":return String(n);case"cc":return fa(n,t.length);case"co":return r.ordinalNumber(n,{unit:"day"});case"ccc":return r.day(i,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(i,{width:"narrow",context:"standalone"});case"cccccc":return r.day(i,{width:"short",context:"standalone"});default:return r.day(i,{width:"wide",context:"standalone"})}},i:function(e,t,r){const o=e.getDay(),i=0===o?7:o;switch(t){case"i":return String(i);case"ii":return fa(i,t.length);case"io":return r.ordinalNumber(i,{unit:"day"});case"iii":return r.day(o,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(o,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},a:function(e,t,r){const o=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},b:function(e,t,r){const o=e.getHours();let i;switch(i=12===o?xa:0===o?ya:o/12>
135=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},B:function(e,t,r){const o=e.getHours();let i;switch(i=o>=17?$a:o>=12?_a:o>=4?ka:Sa,t){case"B":case"BB":case"BBB":return r.dayPeriod(i,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(i,{width:"narrow",context:"formatting"});default:return r.dayPeriod(i,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return wa.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):wa.H(e,t)},K:function(e,t,r){const o=e.getHours()%12;return"Ko"===t?r.ordinalNumber(o,{unit:"hour"}):fa(o,t.length)},k:function(e,t,r){let o=e.getHours();return 0===o&&(o=24),"ko"===t?r.ordinalNumber(o,{unit:"hour"}):fa(o,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):wa.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):wa.s(e,t)},S:function(e,t){return wa.S(e,t)},X:function(e,t,r){const o=e.getTimezoneOffset();if(0===o)return"Z";switch(t){case"X":return Oa(o);case"XXXX":case"XX":return za(o);default:return za(o,":")}},x:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"x":return Oa(o);case"xxxx":case"xx":return za(o);default:return za(o,":")}},O:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ca(o,":");default:return"GMT"+za(o,":")}},z:function(e,t,r){const o=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ca(o,":");default:return"GMT"+za(o,":")}},t:function(e,t,r){return fa(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return fa(+e,t.length)}};function Ca(e,t){const r=e>0?"-":"+",o=Math.abs(e),i=Math.trunc(o/60),n=o%60;return 0===n?r+String(i):r+String(i)+t+fa(n,2)}function Oa(e,t){if(e%60==0){return(e>0?"-":"+")+fa(Math.abs(e)/60,2)}return za(e,t)}function za(e,t){void 0===t&&(t="");const r=e>0?"-":"+",o=Math.abs(e);return r+fa(Math.trunc(o/60),2)+t+fa(o%60,2)}const Da=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Aa=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Pa={p:Aa,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],o=r[1],i=r[2];if(!i)return Da(e,t);let n;switch(o){case"P":n=t.dateTime({width:"short"});break;case"PP":n=t.dateTime({width:"medium"});break;case"PPP":n=t.dateTime({width:"long"});break;default:n=t.dateTime({width:"full"})}return n.replace("{{date}}",Da(o,t)).replace("{{time}}",Aa(i,t))}},Ta=/^D+$/,Ma=/^Y+$/,Va=["D","DD","YY","YYYY"];const La=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ja=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ra=/^'([^]*?)'?$/,Na=/''/g,Ia=/[a-zA-Z]/;function Fa(e,t,r){const o=qn(),i=r?.locale??o.locale??ua,n=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,s=Rn(e,r?.in);if(!Qn(s))throw new RangeError("Invalid time value");let l=t.match(ja).map(e=>{const t=e[0];if("p"===t||"P"===t){return(0,Pa[t])(e,i.formatLong)}return e}).join("").match(La).map(e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:qa(e)};if(Ea[t])return{isToken:!0,value:e};if(t.match(Ia))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(l=i.localize.preprocessor(s,l));const d={firstWeekContainsDate:n,weekStartsOn:a,locale:i};return l.map(o=>{if(!o.isToken)return o.value;const n=o.value;(!r?.useAdditionalWeekYearTokens&&function(e){return Ma.test(e)}(n)||!r?.useAdditionalDayOfYearTokens&&function(e){return Ta.test(e)}(n))&&function(e,t,r){const o=function(e,t,r){const o="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${o} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(o),Va.includes(e))throw new RangeError(o)}(n,t,String(e));return(0,Ea[n[0]])(s,n,i.localize,d)}).join("")}function qa(e){const t=e.match(Ra);return t?t[1].replace(Na,"'"):e}function Ba(e,t){return Rn(e,t?.in).getDate()}function Ha(e,t){const r=qn(),o=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,i=Ba(Rn(e,t?.in));if(isNaN(i))return NaN;const n=function(e,t){return Rn(e,t?.in).getDay()}(ea(e,t));let a=o-n;a<=0&&(a+=7);const s=i-a;return Math.ceil(s/7)+1}function Wa(e,t){const r=Rn(e,t?.in),o=r.getMonth();return r.setFullYear(r.getFullYear(),o+1,0),r.setHours(0,0,0,0),Rn(r,t?.in)}function Ua(e,t,r){const[o,i]=Jn(r?.in,e,t);return o.getFullYear()===i.getFullYear()&&o.getMonth()===i.getMonth()}function Ja(e,t){return Gn(jn(e,e),function(e){return jn(e,Date.now())}(e))}function Ya(e,t,r){return Nn(e,-t,r)}function Ka(e,t,r){return In(e,-1,r)}const Xa={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},Ga={date:ia({formats:{full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},defaultWidth:"full"}),time:ia({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},Qa={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Za={code:"da",formatDistance:(e,t,r)=>{let o;const i=Xa[e];
135return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:Ga,formatRelative:(e,t,r,o)=>Qa[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:la({values:{narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},defaultWidth:"wide"}),quarter:la({values:{narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:la({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},defaultWidth:"wide"}),day:la({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:la({values:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:ha({matchPattern:/^(\d+)(\.)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ca({matchPatterns:{narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^(v|e)/i]},defaultParseWidth:"any"}),quarter:ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ca({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ca({matchPatterns:{narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:ca({matchPatterns:{narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},es={code:"en-GB",formatDistance:oa,formatLong:{date:ia({formats:{full:"EEEE, d MMMM yyyy",long:"d MMMM yyyy",medium:"d MMM yyyy",short:"dd/MM/yyyy"},defaultWidth:"full"}),time:ia({formats:{full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},formatRelative:sa,localize:da,match:pa,options:{weekStartsOn:1,firstWeekContainsDate:4}};function ts(e){return e.replace(/sekuntia?/,"sekunnin")}function rs(e){return e.replace(/minuuttia?/,"minuutin")}function os(e){return e.replace(/tuntia?/,"tunnin")}function is(e){return e.replace(/(viikko|viikkoa)/,"viikon")}function ns(e){return e.replace(/(kuukausi|kuukautta)/,"kuukauden")}function as(e){return e.replace(/(vuosi|vuotta)/,"vuoden")}const ss={lessThanXSeconds:{one:"alle sekunti",other:"alle {{count}} sekuntia",futureTense:ts},xSeconds:{one:"sekunti",other:"{{count}} sekuntia",futureTense:ts},halfAMinute:{one:"puoli minuuttia",other:"puoli minuuttia",futureTense:e=>"puolen minuutin"},lessThanXMinutes:{one:"alle minuutti",other:"alle {{count}} minuuttia",futureTense:rs},xMinutes:{one:"minuutti",other:"{{count}} minuuttia",futureTense:rs},aboutXHours:{one:"noin tunti",other:"noin {{count}} tuntia",futureTense:os},xHours:{one:"tunti",other:"{{count}} tuntia",futureTense:os},xDays:{one:"päivä",other:"{{count}} päivää",futureTense:function(e){return e.replace(/päivää?/,"päivän")}},aboutXWeeks:{one:"noin viikko",other:"noin {{count}} viikkoa",futureTense:is},xWeeks:{one:"viikko",other:"{{count}} viikkoa",futureTense:is},aboutXMonths:{one:"noin kuukausi",other:"noin {{count}} kuukautta",futureTense:ns},xMonths:{one:"kuukausi",other:"{{count}} kuukautta",futureTense:ns},aboutXYears:{one:"noin vuosi",other:"noin {{count}} vuotta",futureTense:as},xYears:{one:"vuosi",other:"{{count}} vuotta",futureTense:as},overXYears:{one:"yli vuosi",other:"yli {{count}} vuotta",futureTense:as},almostXYears:{one:"lähes vuosi",other:"lähes {{count}} vuotta",futureTense:as}}
135,ls={date:ia({formats:{full:"eeee d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"d.M.y"},defaultWidth:"full"}),time:ia({formats:{full:"HH.mm.ss zzzz",long:"HH.mm.ss z",medium:"HH.mm.ss",short:"HH.mm"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'klo' {{time}}",long:"{{date}} 'klo' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ds={lastWeek:"'viime' eeee 'klo' p",yesterday:"'eilen klo' p",today:"'tänään klo' p",tomorrow:"'huomenna klo' p",nextWeek:"'ensi' eeee 'klo' p",other:"P"},cs={narrow:["T","H","M","H","T","K","H","E","S","L","M","J"],abbreviated:["tammi","helmi","maalis","huhti","touko","kesä","heinä","elo","syys","loka","marras","joulu"],wide:["tammikuu","helmikuu","maaliskuu","huhtikuu","toukokuu","kesäkuu","heinäkuu","elokuu","syyskuu","lokakuu","marraskuu","joulukuu"]},hs={narrow:cs.narrow,abbreviated:cs.abbreviated,wide:["tammikuuta","helmikuuta","maaliskuuta","huhtikuuta","toukokuuta","kesäkuuta","heinäkuuta","elokuuta","syyskuuta","lokakuuta","marraskuuta","joulukuuta"]},ps={narrow:["S","M","T","K","T","P","L"],short:["su","ma","ti","ke","to","pe","la"],abbreviated:["sunn.","maan.","tiis.","kesk.","torst.","perj.","la"],wide:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},us={narrow:ps.narrow,short:ps.short,abbreviated:ps.abbreviated,wide:["sunnuntaina","maanantaina","tiistaina","keskiviikkona","torstaina","perjantaina","lauantaina"]},gs={code:"fi",formatDistance:(e,t,r)=>{const o=ss[e],i=1===t?o.one:o.other.replace("{{count}}",String(t));return r?.addSuffix?r.comparison&&r.comparison>0?o.futureTense(i)+" kuluttua":i+" sitten":i},formatLong:ls,formatRelative:(e,t,r,o)=>ds[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:la({values:{narrow:["eaa.","jaa."],abbreviated:["eaa.","jaa."],wide:["ennen ajanlaskun alkua","jälkeen ajanlaskun alun"]},defaultWidth:"wide"}),quarter:la({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartaali","2. kvartaali","3. kvartaali","4. kvartaali"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:la({values:cs,defaultWidth:"wide",formattingValues:hs,defaultFormattingWidth:"wide"}),day:la({values:ps,defaultWidth:"wide",formattingValues:us,defaultFormattingWidth:"wide"}),dayPeriod:la({values:{narrow:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},abbreviated:{am:"ap",pm:"ip",midnight:"keskiyö",noon:"keskipäivä",morning:"ap",afternoon:"ip",evening:"illalla",night:"yöllä"},wide:{am:"ap",pm:"ip",midnight:"keskiyöllä",noon:"keskipäivällä",morning:"aamupäivällä",afternoon:"iltapäivällä",evening:"illalla",night:"yöllä"}},defaultWidth:"wide"})},match:{ordinalNumber:ha({matchPattern:/^(\d+)(\.)/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ca({matchPatterns:{narrow:/^(e|j)/i,abbreviated:/^(eaa.|jaa.)/i,wide:/^(ennen ajanlaskun alkua|jälkeen ajanlaskun alun)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^e/i,/^j/i]},defaultParseWidth:"any"}),quarter:ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234]\.? kvartaali/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ca({matchPatterns:{narrow:/^[thmkeslj]/i,abbreviated:/^(tammi|helmi|maalis|huhti|touko|kesä|heinä|elo|syys|loka|marras|joulu)/i,wide:/^(tammikuu|helmikuu|maaliskuu|huhtikuu|toukokuu|kesäkuu|heinäkuu|elokuu|syyskuu|lokakuu|marraskuu|joulukuu)(ta)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^t/i,/^h/i,/^m/i,/^h/i,/^t/i,/^k/i,/^h/i,/^e/i,/^s/i,/^l/i,/^m/i,/^j/i],any:[/^ta/i,/^hel/i,/^maa/i,/^hu/i,/^to/i,/^k/i,/^hei/i,/^e/i,/^s/i,/^l/i,/^mar/i,/^j/i]},defaultParseWidth:"any"}),day:ca({matchPatterns:{narrow:/^[smtkpl]/i,short:/^(su|ma|ti|ke|to|pe|la)/i,abbreviated:/^(sunn.|maan.|tiis.|kesk.|torst.|perj.|la)/i,wide:/^(sunnuntai|maanantai|tiistai|keskiviikko|torstai|perjantai|lauantai)(na)?/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^k/i,/^t/i,/^p/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^k/i,/^to/i,/^p/i,/^l/i]},defaultParseWidth:"any"}
135),dayPeriod:ca({matchPatterns:{narrow:/^(ap|ip|keskiyö|keskipäivä|aamupäivällä|iltapäivällä|illalla|yöllä)/i,any:/^(ap|ip|keskiyöllä|keskipäivällä|aamupäivällä|iltapäivällä|illalla|yöllä)/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^ap/i,pm:/^ip/i,midnight:/^keskiyö/i,noon:/^keskipäivä/i,morning:/aamupäivällä/i,afternoon:/iltapäivällä/i,evening:/illalla/i,night:/yöllä/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},bs={lessThanXSeconds:{one:"mindre enn ett sekund",other:"mindre enn {{count}} sekunder"},xSeconds:{one:"ett sekund",other:"{{count}} sekunder"},halfAMinute:"et halvt minutt",lessThanXMinutes:{one:"mindre enn ett minutt",other:"mindre enn {{count}} minutter"},xMinutes:{one:"ett minutt",other:"{{count}} minutter"},aboutXHours:{one:"omtrent en time",other:"omtrent {{count}} timer"},xHours:{one:"en time",other:"{{count}} timer"},xDays:{one:"en dag",other:"{{count}} dager"},aboutXWeeks:{one:"omtrent en uke",other:"omtrent {{count}} uker"},xWeeks:{one:"en uke",other:"{{count}} uker"},aboutXMonths:{one:"omtrent en måned",other:"omtrent {{count}} måneder"},xMonths:{one:"en måned",other:"{{count}} måneder"},aboutXYears:{one:"omtrent ett år",other:"omtrent {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"over ett år",other:"over {{count}} år"},almostXYears:{one:"nesten ett år",other:"nesten {{count}} år"}},ms={date:ia({formats:{full:"EEEE d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd.MM.y"},defaultWidth:"full"}),time:ia({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},vs={lastWeek:"'forrige' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},fs={code:"nb",formatDistance:(e,t,r)=>{let o;const i=bs[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" siden":o},formatLong:ms,formatRelative:(e,t,r,o)=>vs[e],localize:{ordinalNumber:(e,t)=>Number(e)+".",era:la({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["før Kristus","etter Kristus"]},defaultWidth:"wide"}),quarter:la({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:la({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","mai","juni","juli","aug.","sep.","okt.","nov.","des."],wide:["januar","februar","mars","april","mai","juni","juli","august","september","oktober","november","desember"]},defaultWidth:"wide"}),day:la({values:{narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn","man","tir","ons","tor","fre","lør"],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},defaultWidth:"wide"}),dayPeriod:la({values:{narrow:{am:"a",pm:"p",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},abbreviated:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på etterm.",evening:"på kvelden",night:"på natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnatt",noon:"middag",morning:"på morgenen",afternoon:"på ettermiddagen",evening:"på kvelden",night:"på natten"}},defaultWidth:"wide"})},match:{ordinalNumber:ha({matchPattern:/^(\d+)\.?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ca({matchPatterns:{narrow:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,abbreviated:/^(f\.? ?Kr\.?|fvt\.?|e\.? ?Kr\.?|evt\.?)/i,wide:/^(før Kristus|før vår tid|etter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^e/i]},defaultParseWidth:"any"}),quarter:ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? kvartal/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ca({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mars?|apr|mai|juni?|juli?|aug|sep|okt|nov|des)\.?/i,wide:/^(januar|februar|mars|april|mai|juni|juli|august|september|oktober|november|desember)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^aug/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ca({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sø|ma|ti|on|to|fr|lø)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:ca({matchPatterns:{narrow:/^(midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten)|[ap])/i,any:/^([ap]\.?\s?m\.?|midnatt|middag|(på) (morgenen|ettermiddagen|kvelden|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a(\.?\s?m\.?)?$/i,pm:/^p(\.?\s?m\.?)?$/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgen/i,afternoon:/ettermiddag/i,evening:/kveld/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},ws={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} veckor"},xWeeks:{one:"en vecka",other:"{{count}} veckor"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},ys=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],xs={date:ia({formats:{full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},defaultWidth:"full"}
135),time:ia({formats:{full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},defaultWidth:"full"}),dateTime:ia({formats:{full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},defaultWidth:"full"})},ks={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},_s={ordinalNumber:(e,t)=>{const r=Number(e),o=r%100;if(o>20||o<10)switch(o%10){case 1:case 2:return r+":a"}return r+":e"},era:la({values:{narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},defaultWidth:"wide"}),quarter:la({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:la({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},defaultWidth:"wide"}),day:la({values:{narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},defaultWidth:"wide"}),dayPeriod:la({values:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},defaultWidth:"wide",formattingValues:{narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},defaultFormattingWidth:"wide"})},$s={code:"sv",formatDistance:(e,t,r)=>{let o;const i=ws[e];return o="string"==typeof i?i:1===t?i.one:i.other.replace("{{count}}",t<13?ys[t]:String(t)),r?.addSuffix?r.comparison&&r.comparison>0?"om "+o:o+" sedan":o},formatLong:xs,formatRelative:(e,t,r,o)=>ks[e],localize:_s,match:{ordinalNumber:ha({matchPattern:/^(\d+)(:a|:e)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:ca({matchPatterns:{narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^f/i,/^[ev]/i]},defaultParseWidth:"any"}),quarter:ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:ca({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:ca({matchPatterns:{narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},defaultParseWidth:"any"}),dayPeriod:ca({matchPatterns:{any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgone
135n|eftermiddagen|kvällen|natten))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},defaultParseWidth:"any"})},options:{weekStartsOn:1,firstWeekContainsDate:4}},Ss="important",Es=" !"+Ss,Cs=we(class extends ye{constructor(e){if(super(e),e.type!==be||"style"!==e.name||e.strings?.length>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(e){return Object.keys(e).reduce((t,r)=>{const o=e[r];return null==o?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${o};`},"")}update(e,t){let[r]=t;const{style:o}=e.element;if(void 0===this.ft)return this.ft=new Set(Object.keys(r)),this.render(r);for(const e of this.ft)null==r[e]&&(this.ft.delete(e),e.includes("-")?o.removeProperty(e):o[e]=null);for(const e in r){const t=r[e];if(null!=t){this.ft.add(e);const r="string"==typeof t&&t.endsWith(Es);e.includes("-")||r?o.setProperty(e,r?t.slice(0,-11):t,r?Ss:""):o[e]=t}}return H}}),Os=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.label.optional":["Valgfri"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),zs=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),Ds=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.label.optional":["Valinnainen"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),As=JSON.parse('{"datepicker.calendar.nextMonth":["Gå til neste måned"],"datepicker.calendar.previousMonth":["Gå til forrige måned"],"datepicker.calendar.roleDescription":["datovelger"],"datepicker.label.optional":["Valgfri"],"datepicker.toggle.changeDate":["Endre dato, ",["currentDate"]],"datepicker.toggle.chooseDate":["Velg dato"]}'),Ps=JSON.parse('{"datepicker.calendar.nextMonth":["Next month"],"datepicker.calendar.previousMonth":["Previous month"],"datepicker.calendar.roleDescription":["Date picker"],"datepicker.label.optional":["Valfritt"],"datepicker.toggle.changeDate":["Change date, ",["currentDate"]],"datepicker.toggle.chooseDate":["Choose date"]}'),Ts=a`label{--_color:var(--w-c-input-label-color,var(--w-s-color-text));--_font-size:var(--w-c-input-label-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-label-line-height,var(--w-line-height-s));--_font-weight:var(--w-c-input-label-font-weight,700);--_padding-bottom:var(--w-c-input-label-padding-bottom,.4rem);--_cursor:var(--w-c-input-label-cursor,pointer);--_display:var(--w-c-input-label-display,block);display:var(--_display);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);padding-bottom:var(--_padding-bottom);cursor:var(--_cursor);color:var(--_color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}label span{--_padding-left:var(--w-c-input-optional-padding-left,.8rem);--_font-weight:var(--w-c-input-optional-font-weight,400);--_font-size:var(--w-c-input-optional-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-optional-line-height,var(--w-line-height-s));--_color:var(--w-c-input-optional-color,var(--w-s-color-text-subtle));padding-left:var(--_padding-left);font-weight:var(--_font-weight);font-size:var(--_font-size);line-height:var(--_line-height);color:var(--_color)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}`,Ms=a`:host{--_help-text-color:var(--w-c-input-help-text-color,var(--w-s-color-text-subtle));--_help-text-font-size:var(--w-c-input-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-input-help-text-line-height,var(--w-line-height-xs));--_help-text-margin-top:var(--w-c-input-help-text-margin-top,.4rem);--_help-text-display:var(--w-c-input-help-text-display,block)}:host([invalid]){--_help-text-color:var(--w-c-input-help-text-color-invalid,var(--w-s-color-text-negative))}.help-text{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);margin-top:var(--_help-text-margin-top);display:var(--_help-text-display);color:var(--_help-text-color)}`,Vs=a`.w-datepicker-wrapper{width:100%;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);display:inline-block;position:relative}.w-datepicker-input-wrapper{position:relative}.w-datepicker-input{-webkit-appearance:none;-moz-appearance:textfield;appearance:none;cursor:pointer;width:100%;height:48px;font-size:var(--w-font-size-m);line-height:var(--w-line-height-m);background-color:var(--w-s-color-background);border:1px solid #ccc;border-radius:4px;padding:1.2rem .8rem;display:block}.w-datepicker-input:hover{border-color:var(--w-s-color-border-hover)}.w-datepicker-input:active{border-color:var(--w-s-color-border-selected)}.w-datepicker-input:focus,.w-datepicker-input:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:-2px}.w-datepicker-button{--padding-x:14px;--padding-y:14px;--border-radius:2px;pointer-events:auto;position:absolute;top:2px;right:2px}input[type=date]::-webkit-inner-spin-button,input[type=date]::-webkit-calendar-picker-indicator{-webkit-appearance:none;display:none}input[type=date],input[type=time],input[type=datetime-local],input[type=month]{-webkit-appearance:none;-moz-appearance:none;appearance:none}.w-dropdown__popover{background-color:var(--w-s-color-background);width:max-content;box-shadow:var(--w-shadow-s);z-index:100;visibility:hidden;border-radius:8px;position:absolute}.w-dropdown__popover--open{visibility:visible}`,Ls=a`.w-datepicker__calendar{--_calendar-border-color:var(--calendar-border-color,initial);--_calendar-border-style:var(--calendar-border-style,none);--_calendar-border-width:var(--calendar-border-width,0);--_calendar-border-radius:var(--calendar-border-radius,0);z-index:30;border:var(--_calendar-border-width) var(--_calendar-border-style) var(--_calendar-border-color);border-radius:var(--_calendar-border-radius);padding:16px;position:relative}`,js=a`.w-datepicker__day{--_day-in-range-background:var(--day-in-range-background,var(--w-s-color-background-primary-subtle-active));text-align:center;cursor:pointer;color:var(--day-color,var(--w-s-color-text));background-color:var(--day-background,transparent);width:var(--day-width,40px);height:var(--day-height,40px);padding:var(--day-padding,0);font-weight:var(--day-font-weight,normal);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);border-radius:var(--day-border-radius,50%);outline:none;position:relative}.w-datepicker__day:hover{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-hover);--day-border-radius:50%}.w-datepicker__day:active{--day-color:var(--w-s-color-text);--day-background:var(--w-s-color-background-active);--day-border-radius:50%}.w-datepicker__day:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,-2px);text-decoration:none}.w-datepicker__day--today{--day-font-weight:bold}.w-datepicker__day--selected{--day-background:var(--w-s-color-background-primary);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--selected:hover,.w-datepicker__day--selected:focus-visible{--day-background:var(--w-s-color-background-primary-hover);--day-color:var(--w-s-color-text-inverted);--day-font-weight:bold}.w-datepicker__day--disabled,.w-datepicker__day--disabled:hover{--day-color:var(--w-s-color-text-disabled);cursor:not-allowed;pointer-events:none}`,Rs=a`.w-datepicker__month{--day-width:40px;--_month-color:var(--month-color,var(--w-s-color-text));--_month-font-size:var(--month-font-size,var(--w-font-size-m));--_month-line-height:var(--month-line-height,var(--w-line-height-m));--_month-table-min-width:var(--month-table-min-width,calc(var(--day-width) * 7));--_weekdays-font-size:var(--weekdays-font-size,var(--w-font-size-xs));--_weekdays-line-height:var(--weekdays-font-size,var(--w-line-height-xs));--_weekdays-font-weight:var(--weekdays-font-weight,bold);
135--_weekdays-padding:var(--weekdays-padding,8px 0 4px 0);text-align:center;user-select:none;color:var(--_month-color);font-size:var(--_month-font-size);line-height:var(--_month-line-height);display:inline-block}.w-datepicker__month__nav{margin:0 0 8px}.w-datepicker__month__nav__header{text-align:center;font-weight:700}.w-datepicker__table{border-spacing:0;border-collapse:collapse;width:100%;min-width:var(--_month-table-min-width);padding-top:8px;display:block}.w-datepicker__weekday{text-align:center;font-size:var(--_weekdays-font-size);line-height:var(--_weekdays-line-height);font-weight:var(--_weekdays-font-weight);padding:var(--_weekdays-padding)}.w-datepicker__month-nav{justify-content:space-between;align-items:center;width:100%;display:flex}.w-datepicker__month__nav__button{flex-shrink:0}.w-datepicker__month__nav__header{text-align:center;flex:1;justify-content:center;align-items:center;display:flex}`,Ns=/^\d{4}-\d{2}-\d{2}$/;function Is(e){if("string"!=typeof e)return null;let t=e;Ns.test(e)&&(t=`${e}T00:00:00Z`);const r=Date.parse(t);return Number.isNaN(r)?null:new Date(r)}const Fs=/iP(hone|od|ad)/,qs=/Safari/,Bs=/(Chrome|Chromium|CriOS|FxiOS|Edg|OPR|Android)/;function Hs(e){const t="en"===e?"en-GB":e;return new Intl.DateTimeFormat(t,{day:"2-digit",month:"2-digit",year:"numeric",timeZone:"UTC"}).formatToParts(new Date(Date.UTC(2006,0,2))).map(e=>"day"===e.type?"dd":"month"===e.type?"mm":"year"===e.type?"yyyy":e.value).join("")}var Ws=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Us=function(e){void 0===e&&(e="undefined"!=typeof navigator?navigator.userAgent:"");const t=Fs.test(e),r=qs.test(e)&&!Bs.test(e);return t||r?"text":"date"}(),Js="calendar",Ys="input",Ks="toggle",Xs="wrapper",Gs="previous",Qs={en:es,nb:fs,sv:$s,da:Za,fi:gs};class Zs extends(Ir(se)){static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#g=this.styles=[Or,Ts,Ms,Vs,Ls,js,Rs];get selectedDate(){return this.value?Is(this.value)??null:null}get month(){return ea(this.navigationDate)}#h;get weeks(){const e=this.month,t=this.navigationDate,r=function(e,t){const{start:r,end:o}=Zn(t?.in,e);let i=+r>+o;const n=Bn(i?o:r,t),a=Bn(i?r:o,t);n.setHours(15),a.setHours(15);const s=+a.getTime();let l=n,d=t?.step??1;if(!d)return[];d<0&&(d=-d,i=!i);const c=[];for(;+l<=s;)l.setHours(0),c.push(jn(r,l)),l=Xn(l,d),l.setHours(15);return i?c.reverse():c}({start:ea(e),end:Wa(e)},{locale:this.locale}).map(e=>({start:e,end:ta(e,{locale:this.locale})})).map(e=>function(e,t){const{start:r,end:o}=Zn(t?.in,e);let i=+r>+o;const n=i?+r:+o,a=i?o:r;a.setHours(0,0,0,0);const s=[];for(;+a<=n;)s.push(jn(r,a)),a.setDate(a.getDate()+1),a.setHours(0,0,0,0);return i?s.reverse():s}(e));if(Ua(t,e)){const e=Ha(t,{locale:this.locale})-1,o=Kn(t,Bn(t,{locale:this.locale}));r[e][o]=t}return r}get#J(){return this.lang||xr()||"en"}get#Y(){return"text"===Us&&this.value?function(e,t){if(!Ns.exec(e))return e;const[r,o,i]=e.split("-");return Hs(t).replace("yyyy",r).replace("mm",o).replace("dd",i)}(this.value,this.#J):this.value||""}async#K(e){e.preventDefault(),this.isCalendarOpen=!this.isCalendarOpen,this.isCalendarOpen&&(await this.updateComplete,(this.selectedCell||this.todayCell).focus())}#X(){this.navigationDate=In(this.month,1)}#G(){this.navigationDate=Ka(this.month)}#Q;async#Z(){await this.updateComplete,this.input.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}_onClickOutside(e){if(!this.isCalendarOpen)return;this.contains(e.target)||(this.isCalendarOpen=!1)}#ee(e){this.value=e.target.value}#te(){this.#f=!0,this.#x()}#re(e){e.preventDefault(),this.isCalendarOpen=!0}#oe(e){if(" "===e.key)return this.#K(e);","===e.key&&e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}async#ie(e){const t=this.navigationDate;let r=null;switch(e.key){case"ArrowUp":r=Ya(t,7);break;case"ArrowLeft":r=Ya(t,1);break;case"Home":r=Bn(t,{locale:this.locale});break;case"PageUp":r=Ka(t);break;case"ArrowDown":r=Nn(t,7);break;case"ArrowRight":r=Nn(t,1);break;case"End":r=ta(t,{locale:this.locale});break;case"PageDown":r=In(t,1);break;case"Escape":this.isCalendarOpen=!1;break;case"Tab":"TD"!==e.target.tagName||e.shiftKey?e.target.id===Gs&&e.shiftKey&&(e.preventDefault(),(this.selectedCell||this.todayCell).focus()):(e.preventDefault(),this.previousMonthButton.focus())}r&&(e.preventDefault(),this.navigationDate=r,await this.updateComplete,this.selectedCell.focus())}#ne(e){const t=e.currentTarget.dataset.date;"key"in e?"Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.value=t,this.input.value=this.#Y,this.#x(),this.isCalendarOpen=!1,this.toggleButton.focus(),this.#Z()):(this.value=t,this.input.value=this.#Y,this.#x(),this.isCalendarOpen=!1,this.#Z())}#ae;#se;#f;constructor(){var e;super(),this.required=!1,this.optional=!1,this.invalid=!1,this.disabled=!1,this.readonly=!1,this.headerFormat="MMMM yyyy",this.weekdayFormat="EEEEEE",this.dayFormat="PPPP",this.isCalendarOpen=!1,this.navigationDate=Yn(Date.now(),e),this.locale=es,this.#h=void 0,this.#Q="",this.#ae=!1,this.#se=void 0,this.#f=!1,this.#w=e=>{e.preventDefault(),this.#f=!0,this.#x()},kr(zs,As,Ds,Os,Ps);const t=xr();t&&Qs[t]&&(this.locale=Qs[t]),this._onClickOutside=this._onClickOutside.bind(this)}resetFormControl(){this.value=this.#h,this.#f=!1,this.#le(),this.#x()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}get _error(){if(this.invalid&&this.helpText)return this.helpText}checkValidity(){return this.#x(),this.internals.checkValidity()}reportValidity(){return this.#f=!0,this.#x(),this.internals.checkValidity()}setCustomValidity(e){this.#Q=e,e?(this.#x(),this.#de(e)):(this.#le(),this.#x())}#de(e){this.#ae||(this.#se=this.helpText),this.#ae=!0,this.invalid=!0,this.helpText=e}#le(){this.#ae&&(this.invalid=!1,this.helpText=this.#se,this.#se=void 0,this.#ae=!1)}#w;#x(){if(this.disabled)return this.internals.setValidity({}),void this.#le();const e={valueMissing:this.required&&!this.value,customError:""!==this.#Q};if(Object.values(e).some(Boolean)){const t=e.customError?this.#Q:this.input?.validationMessage||"";return this.internals.setValidity(e,t,this.input),void(this.#f&&this.#de(t))}this.internals.setValidity({}),this.#le()}connectedCallback(){super.connectedCallback(),this.#h=this.value,void 0!==this.value&&this.setValue(this.value),this.addEventListener("invalid",this.#w);const e=this.lang;if(e&&Qs[e]&&(this.locale=Qs[e]),this.value){const e=Is(this.value);e&&(this.navigationDate=e)}document.addEventListener("mousedown",this._onClickOutside),document.addEventListener("touchend",this._onClickOutside),document.addEventListener("focusin",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this.#w),document.removeEventListener("mousedown",this._onClickOutside),document.removeEventListener("touchend",this._onClickOutside),document.removeEventListener("focusin",this._onClickOutside)}updated(e){e.has("value")&&void 0!==this.value&&this.setValue(this.value),(e.has("value")||e.has("required")||e.has("disabled"))&&this.#x()}firstUpdated(e){super.firstUpdated(e),this.#x()}render(){return B`<div class="w-datepicker-wrapper" id="${Xs}"><label class="w-datepicker-input-label" for="${Ys}">${this.label} ${this.optional&&!this.required?B`<span>${Ye._({id:"datepicker.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</label><div class="w-datepicker-input-wrapper"><input id="${Ys}" type="${Us}" name="${Fr(this.name)}" placeholder="${Fr("text"===Us?Hs(this.#J):void 0)}" .value="${this.#Y}" class="w-datepicker-input" ?required="${this.required}" ?disabled="${this.disabled}" ?readonly="${this.readonly}
135" aria-describedby="${Fr(this.helpText?"help-text":this.ariaDescription?"aria-description":void 0)}" aria-errormessage="${Fr(this._error?"help-text":void 0)}" aria-invalid="${Fr(this.invalid?"true":void 0)}" @click="${this.#re}" @input="${this.#ee}" @blur="${this.#te}" @keydown="${this.#oe}"><w-button aria-label="${this.value?Ye.t({id:"datepicker.toggle.changeDate",values:{currentDate:Fa(this.value,this.dayFormat)},message:"Change date, {currentDate}",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is a selected date"}):Ye.t({id:"datepicker.toggle.chooseDate",message:"Choose date",comment:"Used by screen readers to describe the button that toggles open the calendar in a date picker when there is no selected date"})}" aria-controls="${Js}" class="w-datepicker-button" data-testid="${Ks}" id="${Ks}" variant="utilityQuiet" ?disabled="${this.disabled||this.readonly}" type="button" @click="${this.#K}"><w-icon name="Calendar" size="small" locale="${xr()}" class="flex"></w-icon></w-button></div>${this.helpText?B`<div id="help-text" class="help-text">${this.helpText}</div>`:W}</div><div class="w-dropdown__popover w-dropdown__popover--open" style="${Cs({display:this.isCalendarOpen?void 0:"none"})}"><div aria-label="${Ye.t({id:"datepicker.calendar.roleDescription",message:"Date picker",comment:"Used by screen readers to announce that the calendar element is a date picker."})}" aria-modal="true" role="dialog" class="w-datepicker__calendar" data-testid="${Js}" id="${Js}" @keydown="${this.#ie}"><div class="w-datepicker__month-nav"><w-button aria-label="${Ye.t({id:"datepicker.calendar.previousMonth",message:"Previous month",comment:"Screen reader label for the previous month button."})}" class="w-datepicker__month__nav__button" id="${Gs}" data-testid="${Gs}" variant="utility" quiet small @click="${this.#G}"><w-icon name="ChevronLeft" size="small" locale="${xr()}" class="flex"></w-icon></w-button><div aria-live="polite" class="w-datepicker__month__nav__header">${Fa(this.month,this.headerFormat,{locale:this.locale})}</div><w-button aria-label="${Ye.t({id:"datepicker.calendar.nextMonth",message:"Next month",comment:"Screen reader label for the next month button."})}" class="w-datepicker__month__nav__button" data-testid="${Js}-next" variant="utility" quiet small @click="${this.#X}"><w-icon name="ChevronRight" size="small" locale="${xr()}" class="flex"></w-icon></w-button></div><div class="w-datepicker__month"><table class="w-datepicker__table" role="grid"><thead class="w-datepicker__weekdays"><tr>${this.weeks[0].map(e=>B`<th class="w-datepicker__weekday">${Fa(e,this.weekdayFormat,{locale:this.locale})}</th>`)}</tr></thead><tbody>${this.weeks.map(e=>B`<tr>${e.map(e=>{if(!Ua(this.month,e))return B`<td></td>`;const t=!!this.isDayDisabled&&this.isDayDisabled(e),r=Boolean(this.selectedDate)&&Gn(e,this.selectedDate),o=e===this.navigationDate;return B`<td aria-current="${Fr(Ja(e)?"date":void 0)}" aria-disabled="${t}" aria-label="${Fa(e,this.dayFormat,{locale:this.locale})}" aria-selected="${r}" class="${xe({"w-datepicker__day":!0,"w-datepicker__day--today":Ja(e),"w-datepicker__day--selected":r,"w-datepicker__day--disabled":t,"w-datepicker__day--navigation":o})}" data-navigation="${o}" data-date="${function(e,t){const r=Rn(e,t?.in);if(isNaN(+r))throw new RangeError("Invalid time value");let o="";const i="extended"===(t?.format??"extended")?"-":"";{const e=fa(r.getDate(),2),t=fa(r.getMonth()+1,2);o=`${fa(r.getFullYear(),4)}${i}${t}${i}${e}`}return o}(e,{})}" role="gridcell" tabindex="${o?0:-1}" @click="${t?void 0:this.#ne}" @keydown="${t?void 0:this.#ne}"><div>${Ba(e)}</div></td>`})}</tr>`)}</tbody></table></div></div></div>`}}Ws([he({reflect:!0})],Zs.prototype,"label",void 0),Ws([he({type:Boolean,reflect:!0})],Zs.prototype,"required",void 0),Ws([he({type:Boolean,reflect:!0})],Zs.prototype,"optional",void 0),Ws([he({type:String,reflect:!0,attribute:"help-text"})],Zs.prototype,"helpText",void 0),Ws([he({type:Boolean,reflect:!0})],Zs.prototype,"invalid",void 0),Ws([he({type:String,reflect:!0})],Zs.prototype,"tooltip",void 0),Ws([he({reflect:!0})],Zs.prototype,"lang",void 0),Ws([he({reflect:!0})],Zs.prototype,"name",void 0),Ws([he({reflect:!0})],Zs.prototype,"value",void 0),Ws([he({type:Boolean,reflect:!0})],Zs.prototype,"disabled",void 0),Ws([he({type:Boolean,reflect:!0})],Zs.prototype,"readonly",void 0),Ws([he({attribute:"header-format"})],Zs.prototype,"headerFormat",void 0),Ws([he({attribute:"weekday-format"})],Zs.prototype,"weekdayFormat",void 0),Ws([he({attribute:!1})],Zs.prototype,"isDayDisabled",void 0),Ws([he({attribute:"day-format"})],Zs.prototype,"dayFormat",void 0),Ws([pe()],Zs.prototype,"isCalendarOpen",void 0),Ws([pe()],Zs.prototype,"navigationDate",void 0),Ws([pe()],Zs.prototype,"locale",void 0),Ws([pe()],Zs.prototype,"selectedDate",null),Ws([pe()],Zs.prototype,"month",null),Ws([pe()],Zs.prototype,"weeks",null),Ws([ge(`#${Js}`)],Zs.prototype,"calendar",void 0),Ws([ge(`#${Ys}`,!0)],Zs.prototype,"input",void 0),Ws([ge(`#${Ks}`,!0)],Zs.prototype,"toggleButton",void 0),Ws([ge(`#${Xs}`,!0)],Zs.prototype,"wrapper",void 0),Ws([ge(`#${Gs}`)],Zs.prototype,"previousMonthButton",void 0),Ws([ge('[aria-current="date"]')],Zs.prototype,"todayCell",void 0),Ws([ge('[data-navigation="true"]')],Zs.prototype,"selectedCell",void 0),customElements.get("w-datepicker")||customElements.define("w-datepicker",Zs);const el="undefined"!=typeof window;let tl=!0;if(el){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return tl=!t};e.addEventListener&&e.addEventListener("change",t),t(e)}const rl=e=>{e.style.transition=null,e.style.backfaceVisibility=null,e.style.overflow=null},ol=e=>{e.style.transition="height var(--w-expansion-duration, var(--f-expansion-duration, 0.3s))",e.style.backfaceVisibility="hidden",e.style.overflow="hidden"},il=(e,t)=>{const r=(()=>
135{if(!t)return new Promise(e=>{t=e})})();if(!tl)return e.style.height="auto",t&&t(),r;const o=((e,t)=>()=>{e.style.height="auto",e.style.overflow=null,t&&t()})(e,t);rl(e),e.style.height="auto";const i=e.scrollHeight;return el&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height="0px",e.style.transitionTimingFunction="var(--w-expansion-timing-function, var(--f-expansion-timing-function, ease-out))",ol(e),requestAnimationFrame(()=>e.style.height=i+"px")}),r||void 0},nl=(e,t)=>{const r=(()=>{if(!t)return new Promise(e=>{t=e})})();if(!tl)return e.style.height="0px",t&&t(),r;const o=(e=>()=>{e&&e()})(t);rl(e);const i=e.scrollHeight;return el&&requestAnimationFrame(()=>{e.addEventListener("transitionend",o,{once:!0}),e.style.height=i+"px",e.style.transitionTimingFunction="var(--w-expansion-timing-function, var(--f-expansion-timing-function, ease-in))",ol(e),requestAnimationFrame(()=>e.style.height="0px")}),r||void 0};class al extends se{static#e=this.properties={show:{type:Boolean,reflect:!0},_removeElement:{type:Boolean,state:!0}};constructor(){super(),this.show=!1,this._mounted=!1,this._removeElement=!1}willUpdate(){this._mounted||(this._removeElement=!this.show),this.show&&this._removeElement&&(this._removeElement=!1)}updated(){this._wrapper&&(this._mounted?(this.show&&il(this._wrapper),this.show||this._removeElement||nl(this._wrapper,()=>this._removeElement=!0)):this._mounted=!0)}get _wrapper(){return this??null}static#g=this.styles=[a`:host{display:block}`];render(){return B`<div aria-hidden="${Fr(this.show?void 0:"true")}">${this._removeElement?B``:B`<slot></slot>`}</div>`}}customElements.get("w-expand-transition")||customElements.define("w-expand-transition",al) 136/** 137 * @license 138 * Copyright 2017 Google LLC 139 * SPDX-License-Identifier: BSD-3-Clause 140 */;class sl extends ye{constructor(e){if(super(e),this.it=W,e.type!==me)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(e){if(e===W||null==e)return this._t=void 0,this.it=e;if(e===H)return e;if("string"!=typeof e)throw Error(this.constructor.directiveName+"() called with a non-string value");if(e===this.it)return this._t;this.it=e;const t=[e];return t.raw=t,this._t={_$litType$:this.constructor.resultType,strings:t,values:[]}}}sl.directiveName="unsafeHTML",sl.resultType=1;const ll=we(sl);class dl extends se{static#e=this.properties={level:{type:Number}};get _markup(){return`<h${this.level}\n style="margin: 0; font-weight: unset; font-size: unset; line-height: unset;"\n >\n <slot></slot>\n </h${this.level}>\n`}render(){return this.level?ll(this._markup):B`<slot></slot>`}}customElements.get("w-unstyled-heading")||customElements.define("w-unstyled-heading",dl);const cl=a`:host{--_padding-x:var(--w-c-expandable-padding-x,0px);--_padding-y:var(--w-c-expandable-padding-y,1.6rem);--_gap:var(--w-c-expandable-gap,.8rem);--_bleed-margin-inline:1.6rem;--_background-color:var(--w-c-expandable-bg,transparent);--_background-color-hover:var(--w-c-expandable-bg-hover,var(--_background-color));--_background-color-active:var(--w-c-expandable-bg-active,var(--_background-color));--_border-color:var(--w-c-expandable-border-color,transparent);--_border-width:var(--w-c-expandable-border-width,0px);--_border-radius:var(--w-c-expandable-border-radius,8px);--_color:var(--w-c-expandable-color,var(--w-s-color-text));--_icon-color:var(--w-c-expandable-icon-color,var(--w-s-color-icon));--_title-font-size:var(--w-c-expandable-title-font-size,var(--w-font-size-m));--_title-line-height:var(--w-c-expandable-title-line-height,var(--w-line-height-m));--_title-font-weight:var(--w-c-expandable-title-font-weight,700);--_transition-duration:var(--w-c-expandable-transition-duration,.15s);--_transition-timing-function:var(--w-c-expandable-transition-timing-function,ease-in-out);--_expansion-transition-duration:var(--w-c-expandable-expansion-duration,.3s);--_expansion-transition-timing-function:var(--w-c-expandable-expansion-timing-function);--w-expansion-duration:var(--_expansion-transition-duration);--w-expansion-timing-function:var(--_expansion-transition-timing-function);display:block}:host([box]){--_background-color:var(--w-c-expandable-bg,var(--w-s-color-background-subtle));--_background-color-hover:var(--w-c-expandable-bg-hover,var(--w-s-color-background-subtle-hover));--_background-color-active:var(--w-c-expandable-bg-active,var(--w-s-color-background-subtle-active));--_padding-x:var(--w-c-expandable-padding-x,1.6rem);--_padding-y:var(--w-c-expandable-padding-y,1.6rem);--_gap:var(--w-c-expandable-gap,1.6rem)}[part=base]{background-color:var(--_background-color);border:var(--_border-width) solid var(--_border-color);border-radius:var(--_border-radius);color:var(--_color);padding:var(--_padding-y) var(--_padding-x);transition:background-color var(--_transition-duration) var(--_transition-timing-function), border-color var(--_transition-duration) var(--_transition-timing-function), color var(--_transition-duration) var(--_transition-timing-function);will-change:height;display:block;position:relative}:host([box]) [part=base]:hover{background-color:var(--_background-color-hover)}:host([box]) [part=base]:active{background-color:var(--_background-color-active)}:host([bleed]) [part=base]{margin-left:calc(var(--_bleed-margin-inline) * -1);margin-right:calc(var(--_bleed-margin-inline) * -1);border-radius:0}.button{appearance:none;cursor:pointer;text-align:left;background-color:#0000;border:0;width:auto;margin:0;padding:0}.button:focus{outline:none}.button:hover,.button:focus-visible{text-decoration:underline}:host([box]) .button{justify-content:space-between;align-items:center;width:100%;display:inline-flex;position:relative}.title{justify-content:space-between;align-items:center;width:100%;display:flex}.title-text,slot[name=title]{font-size:var(--_title-font-size);
140font-weight:var(--_title-font-weight);line-height:var(--_title-line-height)}[part=chevron]{color:var(--_icon-color);vertical-align:middle;margin-left:0;display:inline-block}:host(:not([box])) [part=chevron]{margin-left:var(--_gap)}.chevron-icon{transition:transform var(--_transition-duration) var(--_transition-timing-function);display:flex}:host([expanded]) .chevron-icon[data-direction=down]{transform:rotate(-180deg)}:host(:not([expanded])) .chevron-icon[data-direction=up]{transform:rotate(180deg)}.expansion{overflow:hidden}.expansion[aria-hidden=true]{visibility:hidden;height:0}.content[data-has-title]{margin-top:var(--_gap)}.content{overflow-wrap:break-word;position:relative}::slotted(:last-child){margin-bottom:0!important}@media (width>=480px){:host([bleed]) [part=base]{border-radius:var(--_border-radius);margin-left:0;margin-right:0}}`;var hl=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class pl extends se{constructor(){super(...arguments),this.expanded=!1,this.box=!1,this.bleed=!1,this.noChevron=!1,this.animated=!1,this._hasTitle=!0,this._showChevronUp=!1}static#e=this.styles=[Or,cl];updated(e){e.has("expanded")&&setTimeout(()=>{this._showChevronUp=this.expanded},200)}firstUpdated(){const e=Boolean(this.title),t=this.renderRoot.querySelector("slot[name='title']")?.assignedNodes().length>0;this._hasTitle=e||t}get#ce(){const e=xr();return this._showChevronUp?B`<w-icon class="chevron-icon" data-direction="up" name="ChevronUp" size="small" locale="${e}"></w-icon>`:B`<w-icon class="chevron-icon" data-direction="down" name="ChevronDown" size="small" locale="${e}"></w-icon>`}get _expandableSlot(){const e=this.contentClass?`content ${this.contentClass}`:"content";return B`<div class="${e}" data-has-title="${Fr(this._hasTitle?"":void 0)}"><slot></slot></div>`}render(){const e=this.buttonClass?`button ${this.buttonClass}`:"button";return B`<div part="base">${this._hasTitle?B`<w-unstyled-heading level="${Fr(this.headingLevel)}"><button class="${e}" type="button" aria-expanded="${this.expanded}" @click="${()=>this.expanded=!this.expanded}"><div class="title">${this.title?B`<span class="title-text">${this.title}</span>`:B`<slot class="title-text" name="title"></slot>`} ${this.noChevron?"":B`<div part="chevron">${this.#ce}</div>`}</div></button></w-unstyled-heading>`:""} ${this.animated?B`<w-expand-transition class="expansion" ?show="${this.expanded}">${this._expandableSlot}</w-expand-transition>`:B`<div class="expansion" aria-hidden="${Fr(!this.expanded||void 0)}">${this._expandableSlot}</div>`}</div>`}}hl([he({type:Boolean,reflect:!0})],pl.prototype,"expanded",void 0),hl([he({type:String})],pl.prototype,"title",void 0),hl([he({type:Boolean,reflect:!0})],pl.prototype,"box",void 0),hl([he({type:Boolean,reflect:!0})],pl.prototype,"bleed",void 0),hl([he({attribute:"button-class",type:String})],pl.prototype,"buttonClass",void 0),hl([he({attribute:"content-class",type:String})],pl.prototype,"contentClass",void 0),hl([he({attribute:"no-chevron",type:Boolean})],pl.prototype,"noChevron",void 0),hl([he({type:Boolean})],pl.prototype,"animated",void 0),hl([he({attribute:"heading-level",type:Number})],pl.prototype,"headingLevel",void 0),hl([he({type:Boolean,state:!0})],pl.prototype,"_hasTitle",void 0),hl([he({type:Boolean,state:!0})],pl.prototype,"_showChevronUp",void 0),customElements.get("w-expandable")||customElements.define("w-expandable",pl);let ul=[];const gl={documentElement:{},body:{}},bl=Object.freeze({documentElement:{"scrollbar-gutter":"stable"},body:{overflow:"hidden",position:"relative",height:"100%"}}),ml=e=>{e.touches.length>1||e.preventDefault?.()},vl=()=>Object.entries(bl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;gl[e][r]=document[e].style[r],document[e].style[r]=o})(t))}),fl=()=>Object.entries(gl).forEach(e=>{let[t,r]=e;Object.entries(r).forEach((e=>t=>{let[r,o]=t;document[e].style[r]=gl[e][r]})(t))});function wl(e){let t=-1;e.ontouchstart=e=>{1===e.targetTouches.length&&(t=e.targetTouches[0].clientY)},e.ontouchmove=r=>{if(1!==r.targetTouches.length)return;const o=r.targetTouches[0].clientY-t;return 0===e.scrollTop&&o>0||(e=>e.scrollHeight-Math.abs(e.scrollTop)===e.clientHeight)(e)&&o<0?ml(r):(r.stopPropagation(),!0)}}function yl(e){e.ontouchstart=null,e.ontouchmove=null}const xl=e=>()=>document[e?"addEventListener":"removeEventListener"]("touchmove",ml,{passive:!1}),kl=xl(!0),_l=xl();const $l=a`:host{--_backdrop-bg:var(--w-c-modal-backdrop-color,light-dark(#0000004d,#000000bf));--_background-color:var(--w-c-modal-bg,var(--w-s-color-background));--_box-shadow:var(--w-c-modal-box-shadow,var(--w-shadow-l));--_color:var(--w-c-modal-color,var(--w-s-color-text));--_height:var(--w-c-modal-height,var(--w-modal-height) );--_max-height:var(--w-c-modal-max-height,var(--w-modal-max-height,80%) );--_min-height:var(--w-c-modal-min-height,var(--w-modal-min-heigh) );--_padding-bottom:var(--w-c-modal-padding-bottom,calc(32px + env(safe-area-inset-bottom,0px)));--_translate-distance:var(--w-c-modal-translate-distance,var(--w-modal-translate-distance,100%) );--_width:var(--w-c-modal-width,var(--w-modal-width,640px) )}[part=dialog]{height:unset;max-height:unset;max-width:unset;width:unset;backface-visibility:hidden;background-color:#0000;border-width:0;align-items:flex-end;margin:auto;padding:0;inset:0}[part=dialog]::backdrop{background:var(--_backdrop-bg)}[part=wrapper]{will-change:height;background-color:var(--_background-color);color:var(--_color);box-shadow:var(--_box-shadow);
140height:var(--_height);max-height:var(--_max-height);min-height:var(--_min-height);width:var(--_width);backface-visibility:hidden;padding-bottom:var(--_padding-bottom);border-radius:8px;flex-direction:column;transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);display:flex;position:relative;overflow:hidden}[part=content]{flex-grow:1;flex-shrink:1;margin-bottom:0;padding-left:1.6rem;padding-right:1.6rem;display:block;position:relative;overflow:hidden auto}@media (width>=480px){[part=dialog]{--w-c-modal-translate-distance:50%;place-content:center;place-items:center}[part=wrapper]{margin-left:1.6rem;margin-right:1.6rem;padding-bottom:3.2rem}[part=content]{padding-left:3.2rem;padding-right:3.2rem}}@media (width<=479.9px){[part=wrapper]{border-bottom-right-radius:0;border-bottom-left-radius:0}}[part=dialog][open]{animation:.3s ease-in-out forwards w-modal-in;display:flex;position:fixed}[part=dialog].close{animation:.3s ease-in-out forwards w-modal-out}[part=dialog][open]::backdrop{animation:.3s ease-in-out forwards backdrop-in}[part=dialog].close::backdrop{animation:.3s ease-in-out forwards backdrop-out}@keyframes w-modal-in{0%{transform:translateY(var(--_translate-distance));opacity:0}to{opacity:1;transform:translateY(0)}}@keyframes w-modal-out{0%{opacity:1;transform:translateY(0)}to{transform:translateY(var(--_translate-distance));opacity:0}}@keyframes backdrop-in{0%{background:0 0}to{background:var(--_backdrop-bg)}}@keyframes backdrop-out{0%{background:var(--_backdrop-bg)}to{background:0 0}}`,Sl=e=>class extends e{constructor(){super(...arguments),this.patchClose=!0,this._close=null}close(){this._close()}},El=e=>class extends e{handleSlotChange(e){const t=e.target.assignedNodes({flatten:!0});for(const e of t.filter(e=>e.patchClose))e._close=()=>this.close()}};var Cl=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Ol extends(El(se)){static#e=this.styles=[Or,$l];constructor(){super(),this.show=!1,this.ignoreBackdropClicks=!1,this._isClosing=!1,this.interceptEscape=this.interceptEscape.bind(this),this.closeOnBackdropClick=this.closeOnBackdropClick.bind(this),this.eventPreventer=this.eventPreventer.bind(this),this.modifyBorderRadius=this.modifyBorderRadius.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("command",e=>{const t=e.command;"--show-modal"===t?this.open():"--close"!==t&&"--confirm"!==t||this.close()})}async open(){this._isClosing=!1,this.dialogEl.classList.remove("close"),this.dialogEl.showModal(),this.handleListeners(),function(e){if(!e)throw Error("Could not run setup, an element must be provided");ul.some(t=>t===e)||(ul.length||(vl(),kl()),wl(e),ul.push(e))}(this.contentEl),await this.updateComplete,this.dispatchEvent(new CustomEvent("shown",{bubbles:!0,composed:!0}))}close(){this.dialogEl?.open&&(this._isClosing=!0,this.handleListeners("removeEventListener"),this.dialogEl.classList.add("close"),this.dialogEl.addEventListener("animationend",async e=>{"w-modal-out"===e.animationName&&this._isClosing&&(this.dialogEl.classList.remove("close"),this.dialogEl.close(),this._isClosing=!1,ul.forEach(yl),_l(),fl(),ul=[],this.show=!1,await this.updateComplete,this.dispatchEvent(new CustomEvent("hidden",{bubbles:!0,composed:!0})))},{once:!0}))}updated(e){if(!e.has("show"))return;void 0===e.get("show")&&!1===this.show||this[this.show?"open":"close"]()}handleListeners(e){void 0===e&&(e="addEventListener"),document[e]("keydown",this.interceptEscape),this.ignoreBackdropClicks||this.dialogEl[e]("mousedown",this.closeOnBackdropClick),this.dialogEl[e]("close",this.eventPreventer),this.dialogEl[e]("cancel",this.eventPreventer),this.dialogInnerEl[e]("transitionend",this.modifyBorderRadius)}eventPreventer(e){e.preventDefault()}closeOnBackdropClick(e){this.dialogEl===e.target&&this.close()}interceptEscape(e){"Escape"===e.key&&(e.preventDefault(),this.close())}modifyBorderRadius(){1.02*this.dialogInnerEl.scrollHeight>innerHeight?this.dialogInnerEl.style.borderRadius="0px":this.dialogInnerEl.style.borderRadius=null}render(){return B`<dialog part="dialog"><div part="wrapper">
140<slot name="header" @slotchange="${this.handleSlotChange}"></slot><div part="content" id="${Fr(this.contentId)}"><slot name="content" @slotchange="${this.handleSlotChange}"></slot></div><slot name="footer" @slotchange="${this.handleSlotChange}"></slot></div></dialog>`}}Cl([he({type:Boolean})],Ol.prototype,"show",void 0),Cl([he({type:String,attribute:"content-id"})],Ol.prototype,"contentId",void 0),Cl([he({type:Boolean,attribute:"ignore-backdrop-clicks"})],Ol.prototype,"ignoreBackdropClicks",void 0),Cl([ge('[part="dialog"]')],Ol.prototype,"dialogEl",void 0),Cl([ge('[part="wrapper"]')],Ol.prototype,"dialogInnerEl",void 0),Cl([ge('[part="content"]')],Ol.prototype,"contentEl",void 0);const zl=Ol;customElements.get("w-modal")||customElements.define("w-modal",Ol);const Dl=a`:host{--_gap:var(--w-c-modal-footer-gap,8px)}[part=footer]{justify-content:flex-end;gap:var(--_gap);padding-top:2.4rem;padding-left:1.6rem;padding-right:1.6rem;display:flex}@media (width>=480px){[part=footer]{padding-left:3.2rem;padding-right:3.2rem}}`;class Al extends(Sl(El(se))){static#e=this.styles=[Or,Dl];render(){return B`<slot part="footer" @slotchange="${this.handleSlotChange}"></slot>`}}const Pl=Al;customElements.get("w-modal-footer")||customElements.define("w-modal-footer",Al);const Tl=e=>{let{dx:t,dy:r}=e;return[{transform:`translate(${t}px, ${r}px)`},{transform:"none"}]},Ml={easing:"ease",duration:300};let Vl=!1;if("undefined"!=typeof window){const e=window.matchMedia("(prefers-reduced-motion: reduce)"),t=e=>{let{matches:t}=e;return Vl=t};e.addEventListener&&e.addEventListener("change",t),t(e)}class Ll{constructor(e,{animation:t={},keyframes:r,respectReduceMotion:o=!0}={}){this.el=e,this.first={},this.last={},this.userAnimationOptions=t,this.keyframeGenerator=r||Tl,this.shouldReduceMotion=o}async when(e){this.prep();const t=await e();return await this.play(),t}prep(){this.first=this.el.getBoundingClientRect()}async play(){if(this.last=this.el.getBoundingClientRect(),!this.el.animate)return;const e=this.el.animate(this.keyframes,this.animationOptions);await e.finished}get keyframes(){return this.keyframeGenerator((e=this.first,t=this.last,{dx:e.left-t.left,dy:e.top-t.top,dw:e.width/t.width,dh:e.height/t.height,first:e,last:t}));var e,t}get defaults(){return Ml}get mergedOptions(){return{...this.defaults,...this.userAnimationOptions}}get animationOptions(){return this.shouldReduceMotion&&Vl?{...this.mergedOptions,duration:0}:this.mergedOptions}}const jl=JSON.parse('{"modal.aria.back":["Tilbage"],"modal.aria.close":["Luk"]}'),Rl=JSON.parse('{"modal.aria.back":["Back"],"modal.aria.close":["Close"]}'),Nl=JSON.parse('{"modal.aria.back":["Takaisin"],"modal.aria.close":["Sulje"]}'),Il=JSON.parse('{"modal.aria.back":["Tilbake"],"modal.aria.close":["Lukk"]}'),Fl=JSON.parse('{"modal.aria.back":["Tillbaka"],"modal.aria.close":["Stäng"]}'),ql=a`:host{--_font-size:var(--w-c-modal-header-font-size,var(--w-font-size-l));--_line-height:var(--w-c-modal-header-line-height,var(--w-line-height-l));--_title-margin:0 0 6px 0;--_title-padding:22px 0 0 16px;--_close-button-top:14px;--_close-button-right:0px;--_header-margin-bottom:var(--w-c-modal-header-margin-bottom,8px)}@media (width>=480px){:host{--_title-padding:22px 0 0 32px;--_close-button-right:14px}}[part=header]{margin-bottom:var(--_header-margin-bottom);grid-template:"top top top""title title title";display:grid}[part=header][show-back]:not([show-close]){grid-template:"top top top""back title title"}[part=header][show-close]:not([show-back]){grid-template:"top top top""title title close"/1fr 1fr 44px}[part=header][show-back][show-close]{grid-template:"top top top""back title close"/44px 1fr 44px}[part=top]::slotted(*){grid-area:top}[part=title]{margin:var(--_title-margin);padding:var(--_title-padding);font-weight:700;font-size:var(--_font-size);line-height:var(--_line-height);grid-area:title}[part=header][show-back] [part=title]{text-align:center}[part=back]{grid-area:back;margin-block-end:-2px;padding-block-start:14px;padding-inline-start:18px}[part=header][show-back] [part=title]{padding-inline-start:0}[part=close]{top:var(--_close-button-top);right:var(--_close-button-right);grid-area:close;position:absolute}[part=header][show-top] [part=close]{--w-c-button-color:var(--w-s-color-icon-inverted-static);--w-c-button-color-hover:var(--w-s-color-icon-inverted-static);--w-c-button-color-active:var(--w-s-color-icon-inverted-static);--w-c-button-bg:rgba(var(--w-rgb-black), .7);--w-c-button-bg-hover:rgba(var(--w-rgb-black), .85);--w-c-button-bg-active:rgba(var(--w-rgb-black), 1)}`;var Bl=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Hl extends(Sl(se)){static#e=this.styles=[Or,ql];constructor(){super(),this.back=!1,this.noClose=!1,this._hasTopContent=!1,kr(Rl,Il,Nl,jl,Fl)}async willUpdate(e){if(e.has("back")){if(!this.titleEl)return;new Ll(this.titleEl).when(async()=>{await this.updateComplete})}}emitBack(){this.dispatchEvent(new CustomEvent("backClicked",{bubbles:!0,composed:!0}))}handleTopSlotChange(e){const t=e.target.assignedElements({flatten:!0});this._hasTopContent=!!t.length}render(){const e=this.back&&!this._hasTopContent,t=!this.noClose;return B`<div part="header" ?show-top="${this._hasTopContent}" ?show-back="${e}" ?show-close="${t}"><slot part="top" name="top" @slotchange="${this.handleTopSlotChange}"></slot>${e?B`<w-button type="button" part="back" aria-label="${Ye._({id:"modal.aria.back",message:"Back",comment:"Aria label for the back button in modal"})}" variant="pill" icon-only @click="${this.emitBack}"><w-icon name="ArrowLeft" size="small" locale="${xr()}"></w-icon></w-button>`:W}<p part="title">${this.title}</p>${t?B`<w-button type="button" part="close" aria-label="${Ye._({id:"modal.aria.close",message:"Close",comment:"Aria label for the close button in modal"})}" variant="pill" icon-only @click="${this.close}"><w-icon name="Close" size="small" locale="${xr()}" style="height:16px" class="flex"></w-icon></w-button>`:W}</div>`}}Bl([he({type:String})],Hl.prototype,"title",void 0),Bl([he({type:Boolean})],Hl.prototype,"back",void 0),Bl([he({type:Boolean,attribute:"no-close"})],Hl.prototype,"noClose",void 0),Bl([pe()],Hl.prototype,"_hasTopContent",void 0),Bl([ge('[part="title"]')],Hl.prototype,"titleEl",void 0);const Wl=Hl;customElements.get("w-modal-header")||customElements.define("w-modal-header",Hl) 141/** 142 * @license 143 * Copyright 2021 Google LLC 144 * SPDX-License-Identifier: BSD-3-Clause 145 */;const Ul=JSON.parse('{"page-indicator.aria.label":["Prik ",["selectedPage"]," er fremhævet i en række med ",["pageCount"]," prikker"]}'),Jl=JSON.parse('{"page-indicator.aria.label":["Dot ",["selectedPage"]," is highlighted in a row of ",["pageCount"]," dots"]}'),Yl=JSON.parse('{"page-indicator.aria.label":["Piste ",["selectedPage"]," on korostettuna ",["pageCount"]," pisteen rivissä"]}'),Kl=JSON.parse('{"page-indicator.aria.label":["Prikk ",["selectedPage"]," er uthevet i en rad med ",["pageCount"]," prikker"]}'),Xl=JSON.parse('{"page-indicator.aria.label":["Prick ",["selectedPage"]," är markerad i en rad med ",["pageCount"]," prickar"]}'),Gl=a`.w-page-indicator{pointer-events:none;justify-content:center;height:max-content;display:grid}
145.w-page-indicator--container{grid-auto-flow:column;gap:8px;display:grid}.w-page-indicator--dot{background-color:var(--w-s-color-background-disabled);border-radius:5px;width:10px;height:10px}.w-page-indicator--selecteddot{background-color:var(--w-s-color-icon-selected)}`;var Ql=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};kr(Jl,Kl,Yl,Ul,Xl);class Zl extends se{constructor(){super(...arguments),this.selectedPage=1,this.pageCount=1}static#e=this.styles=[Gl];get _validPageCount(){return Math.max(1,Math.floor(this.pageCount??1))}get _validSelectedPage(){const e=Math.floor(this.selectedPage??1);return Math.max(1,Math.min(e,this._validPageCount))}render(){const e=this._validPageCount,t=this._validSelectedPage,r=Ye._({id:"page-indicator.aria.label",comment:"Default screenreader message for page indicator group",message:"Dot {selectedPage} is highlighted in a row of {pageCount} dots",values:{selectedPage:t,pageCount:e}});return B`<div class="w-page-indicator" role="img" aria-label="${r}"><div class="w-page-indicator--container">${function*(e,t){if(void 0!==e){let r=0;for(const o of e)yield t(o,r++)}} 146/** 147 * @license 148 * Copyright 2021 Google LLC 149 * SPDX-License-Identifier: BSD-3-Clause 150 */(function*(e,t,r){void 0===r&&(r=1);const o=void 0===t?0:e;t??=e;for(let e=o;r>0?e<t:t<e;e+=r)yield e}(e),e=>B`<div class="${xe({"w-page-indicator--dot":!0,"w-page-indicator--selecteddot":e+1===t})}"></div>`)}</div></div>`}}Ql([he({type:Number,attribute:"selected-page",reflect:!0,useDefault:!0})],Zl.prototype,"selectedPage",void 0),Ql([he({type:Number,attribute:"page-count",reflect:!0,useDefault:!0})],Zl.prototype,"pageCount",void 0),customElements.get("w-page-indicator")||customElements.define("w-page-indicator",Zl);const ed=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Næste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),td=JSON.parse('{"pagination.aria.first-page":["First page"],"pagination.aria.icon-suffix":["icon"],"pagination.aria.next-page":["Next page"],"pagination.aria.page":["Page ",["currentPage"]],"pagination.aria.pagination":["Pages"],"pagination.aria.prev-page":["Previous page"],"pagination.label.current-page":["Page ",["currentPage"]]}'),rd=JSON.parse('{"pagination.aria.first-page":["Ensimmäinen sivu"],"pagination.aria.icon-suffix":["kuvake"],"pagination.aria.next-page":["Seuraava sivu"],"pagination.aria.page":["Sivu ",["currentPage"]],"pagination.aria.pagination":["Sivut"],"pagination.aria.prev-page":["Edellinen sivu"],"pagination.label.current-page":["Sivu ",["currentPage"]]}'),od=JSON.parse('{"pagination.aria.first-page":["Første side"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Neste side"],"pagination.aria.page":["Side ",["currentPage"]],"pagination.aria.pagination":["Sider"],"pagination.aria.prev-page":["Forrige side"],"pagination.label.current-page":["Side ",["currentPage"]]}'),id=JSON.parse('{"pagination.aria.first-page":["Första sidan"],"pagination.aria.icon-suffix":["ikon"],"pagination.aria.next-page":["Nästa sida"],"pagination.aria.page":["Sida ",["currentPage"]],"pagination.aria.pagination":["Sidor"],"pagination.aria.prev-page":["Föregående sida"],"pagination.label.current-page":["Sida ",["currentPage"]]}'),nd=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hover\\:bg-clip-padding:hover{-webkit-background-clip:padding-box;background-clip:padding-box}.hover\\:bg-\\[--w-color-button-pill-background-hover\\]:hover{background-color:var(--w-color-button-pill-background-hover)}.active\\:bg-\\[--w-color-button-pill-background-active\\]:active{background-color:var(--w-color-button-pill-background-active)}
150.border-0{border-width:0}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.inline-flex{display:inline-flex}.hidden{display:none}.hover\\:no-underline:hover,.focus\\:no-underline:focus{text-decoration:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.s-text-link{color:var(--w-s-color-text-link)}.s-icon{color:var(--w-s-color-icon)}.min-h-\\[44px\\]{min-height:44px}.min-w-\\[44px\\]{min-width:44px}.p-4{padding:.4rem}.p-8{padding:.8rem}.visible{visibility:visible}.font-bold{font-weight:700}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}@media (min-width:768px){.md\\:block{display:block}.md\\:hidden{display:none}}");var ad=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const sd=()=>Ye._({id:"pagination.aria.icon-suffix",message:"icon",comment:"Suffix added at the end of icon titles when img semantics are lost on an html element"}),ld="min-h-[44px] min-w-[44px] p-4",dd=`hover:no-underline focus:no-underline focusable inline-flex justify-center items-center transition-colors ease-in-out ${ld} rounded-full border-0 hover:bg-clip-padding`;class cd extends se{static#e=this.styles=[Or,nd,a`:host{display:block}w-icon{height:16px}`];constructor(){super(),this.pages=0,this.currentPageNumber=1,this.visiblePages=7,kr(td,od,rd,ed,id)}get shouldShowShowFirstPageButton(){return this.currentPageNumber-2>0}get shouldShowLastPageButton(){return this.currentPageIndex<this.pages-2}get shouldShowPreviousPageButton(){return this.currentPageNumber-1>0}get shouldShowNextPageButton(){return this.currentPageNumber<this.pages}get currentPageIndex(){return this.currentPageNumber-1}get visiblePageNumbers(){if(this.pages<=this.visiblePages)return Array.from({length:this.pages},(e,t)=>t+1);const e=Math.floor(this.visiblePages/2);let t=Math.max(1,this.currentPageNumber-e);const r=Math.min(this.pages,t+this.visiblePages-1);return r-t+1<this.visiblePages&&(t=Math.max(1,r-this.visiblePages+1)),Array.from({length:r-t+1},(e,r)=>t+r)}#he(e){const t=e.target.getAttribute("data-page-number");if(!t)return;this.dispatchEvent(new CustomEvent("page-click",{detail:{clickedPage:Number.parseInt(t)},bubbles:!0,composed:!0,cancelable:!0}))||e.preventDefault()}render(){const e=this.visiblePageNumbers;return B`<nav class="flex items-center justify-center p-8" @click="${this.#he}"><h2 class="sr-only">${Ye._({id:"pagination.aria.pagination",message:"Pages",comment:"Default screenreader message for pagination container in the pagination component"})}</h2><div class="flex items-center">${this.shouldShowShowFirstPageButton?B`<a data-page-number="1" href="${this.baseUrl}1" class="${dd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${Ye._({id:"pagination.aria.first-page",message:"First page",comment:"Default screenreader message for first page link in the pagination component"})},</span><w-icon name="ChevronDoubleLeft" size="small" locale="${xr()}" class="pointer-events-none flex items-center"></w-icon><span class="sr-only">${sd()}</span></a>`:B`<span class="${ld}"></span>`} ${this.shouldShowPreviousPageButton?B`<a data-page-number="${this.currentPageNumber-1}" href="${this.baseUrl}${this.currentPageNumber-1}" class="${dd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${Ye._({id:"pagination.aria.prev-page",message:"Previous page",comment:"Default screenreader message for previous page link in the pagination component"})},</span><w-icon name="ChevronLeft" size="small" locale="${xr()}" class="pointer-events-none flex items-center"></w-icon><span class="sr-only">${sd()}</span></a>`:B`<span class="${ld}"></span>`}<div class="hidden md:block font-bold">${e.map(e=>{const t=e===this.currentPageNumber,r=`${this.baseUrl}${e}`;let o=dd;o+=t?" s-bg-primary s-text-inverted":" s-text-link hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]";const i=Ye._({id:"pagination.aria.page",message:"Page {currentPage}",values:{currentPage:e},comment:"Default screenreader message for page link in the pagination component"});return B`<a data-page-number="${e}" aria-label="${i}" href="${r}" class="${o}" aria-current="${t?"page":"false"}">${e}</a>`})}</div><span class="block md:hidden p-8 font-bold">${Ye._({id:"pagination.label.current-page",message:"Page {currentPage}",values:{currentPage:this.currentPageNumber},comment:"Default message for current page label in the pagination component"})} </span>${this.shouldShowNextPageButton?B`<a data-page-number="${this.currentPageNumber+1}" href="${this.baseUrl}${this.currentPageNumber+1}" class="${dd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${Ye._({id:"pagination.aria.next-page",message:"Next page",comment:"Default screenreader message for next page link in the pagination component"})},</span><w-icon name="ChevronRight" size="small" locale="${xr()}" class="pointer-events-none flex items-center"></w-icon><span class="sr-only">${sd()}</span></a>`:B`<span class="${ld}"></span>`} ${this.shouldShowLastPageButton?B`<a data-page-number="${this.pages}" href="${this.baseUrl}${this.pages}" class="${dd+" s-icon hover:bg-[--w-color-button-pill-background-hover] active:bg-[--w-color-button-pill-background-active]"}"><span class="sr-only">${Ye._({id:"pagination.aria.last-page",message:"Last page",comment:"Default screenreader message for last page link in the pagination component"})},</span><w-icon name="ChevronDoubleRight" size="small" locale="${xr()}" class="pointer-events-none flex items-center"></w-icon><span class="sr-only">${sd()}</span></a>`:B`<span class="${ld}"></span>`}</div></nav>`}}ad([he({type:String,reflect:!0,attribute:"base-url"})],cd.prototype,"baseUrl",void 0),ad([he({type:Number,reflect:!0,useDefault:!0})],cd.prototype,"pages",void 0),ad([he({type:Number,reflect:!0,attribute:"current-page",useDefault:!0})],cd.prototype,"currentPageNumber",void 0),ad([he({type:Number,reflect:!0,attribute:"visible-pages",useDefault:!0})],cd.prototype,"visiblePages",void 0),customElements.get("w-pagination")||customElements.define("w-pagination",cd);const hd=JSON.parse('{"pill.aria.openFilter":["Ã
bn filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}'),pd=JSON.parse('{"pill.aria.openFilter":["Open filter"],"pill.aria.removeFilter":["Remove filter ",["label"]]}'),ud=JSON.parse('{"pill.aria.openFilter":["Avaa suodatin"],"pill.aria.removeFilter":["Tyhjennä suodatin ",["label"]]}'),gd=JSON.parse('{"pill.aria.openFilter":["Ã
pne filter"],"pill.aria.removeFilter":["Fjern filter ",["label"]]}
150'),bd=JSON.parse('{"pill.aria.openFilter":["Ãppna filter"],"pill.aria.removeFilter":["Ta bort filtret ",["label"]]}'),md=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-color-pill-suggestion-background\\]{background-color:var(--w-color-pill-suggestion-background)}.hover\\:bg-\\[--w-color-pill-suggestion-background-hover\\]:hover{background-color:var(--w-color-pill-suggestion-background-hover)}.active\\:bg-\\[--w-color-pill-suggestion-background-active\\]:active{background-color:var(--w-color-pill-suggestion-background-active)}.rounded{border-radius:4px}.rounded-l-full{border-top-left-radius:9999px;border-bottom-left-radius:9999px}.rounded-r-full{border-top-right-radius:9999px;border-bottom-right-radius:9999px}.flex{display:flex}.inline-flex{display:inline-flex}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.items-center{align-items:center}.static{position:static}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.hover\\:s-bg-primary-hover:hover{background-color:var(--w-s-color-background-primary-hover)}.active\\:s-bg-primary-active:active{background-color:var(--w-s-color-background-primary-active)}.s-text{color:var(--w-s-color-text)}.s-text-inverted{color:var(--w-s-color-text-inverted)}.h-16{height:1.6rem}.py-8{padding-top:.8rem;padding-bottom:.8rem}.pl-12{padding-left:1.2rem}.pl-4{padding-left:.4rem}.pr-12{padding-right:1.2rem}.pr-2{padding-right:.2rem}.font-bold{font-weight:700}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.text-xs{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs)}");var vd=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const fd="flex items-center",wd="inline-flex items-center focusable text-xs transition-all",yd="bg-[--w-color-pill-suggestion-background] hover:bg-[--w-color-pill-suggestion-background-hover] active:bg-[--w-color-pill-suggestion-background-active] s-text font-bold",xd="s-bg-primary hover:s-bg-primary-hover active:s-bg-primary-active s-text-inverted",kd="pl-12 py-8 rounded-l-full",_d="pr-12 rounded-r-full",$d="pr-2",Sd="pr-12 pl-4 py-8 rounded-r-full",Ed="h-16",Cd="sr-only";class Od extends se{static#e=this.styles=[Or,md];constructor(){super(),this.canClose=!1,this.suggestion=!1,kr(pd,gd,ud,hd,bd),this.canClose=!1,this.suggestion=!1,this.openFilterSrText=Ye._({id:"pill.aria.openFilter",message:"Open filter",comment:"Fallback screen reader message for open filter"}),this.removeFilterSrText=Ye._({id:"pill.aria.removeFilter",message:"Remove filter {label}",comment:"Fallback screen reader message for removal of the filter"})}get _labelClasses(){return jr([wd,kd,this.suggestion?yd:xd,this.canClose?$d:_d])}get _closeClasses(){return jr([wd,Sd,this.suggestion?yd:xd])}_onClick(){this.dispatchEvent(new CustomEvent("w-pill-click",{bubbles:!0,composed:!0}))}_onClose(){this.dispatchEvent(new CustomEvent("w-pill-close",{bubbles:!0,composed:!0}))}connectedCallback(){super.connectedCallback(),this.openSrLabel&&(this.openAriaLabel=this.openSrLabel),this.closeSrLabel&&(this.closeAriaLabel=this.closeSrLabel)}render(){return B`<div class="${fd}"><button type="button" class="${this._labelClasses}" @click="${this._onClick}"><span class="${Cd}">${this.openAriaLabel?this.openAriaLabel:this.openFilterSrText}</span><slot></slot></button> ${this.canClose?B`<button type="button" class="${this._closeClasses}" @click="${this._onClose}"><span class="${Cd}">${this.closeAriaLabel?this.closeAriaLabel:this.removeFilterSrText}</span><w-icon name="Close" size="small" locale="${xr()}" class="${Ed}" class="flex"></w-icon></button>`:null}</div>`}}vd([he({attribute:"can-close",type:Boolean})],Od.prototype,"canClose",void 0),vd([he({attribute:"suggestion",type:Boolean})],Od.prototype,"suggestion",void 0),vd([he({attribute:"open-sr-label",type:String})],Od.prototype,"openSrLabel",void 0),vd([he({attribute:"open-aria-label",type:String})],Od.prototype,"openAriaLabel",void 0),vd([he({attribute:"close-sr-label",type:String})],Od.prototype,"closeSrLabel",void 0),vd([he({attribute:"close-aria-label",type:String})],Od.prototype,"closeAriaLabel",void 0),customElements.get("w-pill")||customElements.define("w-pill",Od);const zd=a`:host{box-sizing:border-box!important}:host *,:host :before,:host :after{box-sizing:inherit!important}`,Dd=a`:host{align-items:center;gap:var(--_gap);--_gap:var(--w-c-radio-gap,8px);--_size:var(--w-c-radio-size,2rem);--_radius:var(--w-c-radio-radius,50%);--_border-width:var(--w-c-radio-border-width,1px);--_checked-border-width:var(--w-c-radio-checked-border-width,.6rem);--_bg:var(--w-c-radio-bg,var(--w-s-color-background));--_border-color:var(--w-c-radio-border-color,var(--w-s-color-border-strong));--_border-color-checked:var(--w-c-radio-border-color-checked,var(--w-s-color-border-selected));--_border-color-invalid:var(--w-c-radio-border-color-invalid,var(--w-s-color-border-negative));--_outline-width:var(--w-c-radio-outline-width,2px);--_outline-color:var(--w-c-radio-outline-color,var(--w-s-color-border-focus));--_outline-offset:var(--w-c-radio-outline-offset,var(--w-outline-offset,1px));--_border-color-disabled:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--_bg-disabled:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--_label-font-size:var(--w-c-radio-label-font-size,var(--w-font-size-m));--_label-line-height:var(--w-c-radio-label-line-height,var(--w-line-height-m));--_label-color:var(--w-c-radio-label-color,currentColor);--_label-color-disabled:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--_cursor:var(--w-c-radio-cursor,pointer);--_cursor-disabled:var(--w-c-radio-cursor-disabled,not-allowed);--_transition:var(--w-c-radio-transition,border-color .15s cubic-bezier(.4, 0, .2, 1), border-width .15s cubic-bezier(.4, 0, .2, 1), background-color .15s cubic-bezier(.4, 0, .2, 1));
150display:inline-flex}:host([disabled]),:host([disabled-ui]){--w-c-radio-border-color:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-bg:var(--w-c-radio-bg-disabled,var(--w-s-color-background-disabled-subtle));--w-c-radio-border-color-checked:var(--w-c-radio-border-color-disabled,var(--w-s-color-border-disabled));--w-c-radio-label-color:var(--w-c-radio-label-color-disabled,var(--w-s-color-text-disabled));--w-c-radio-cursor:var(--w-c-radio-cursor-disabled,not-allowed)}[part=base]{align-items:center;gap:var(--_gap);display:inline-flex}[part=control]{-webkit-appearance:none;appearance:none;width:var(--_size);height:var(--_size);border-style:solid;border-width:var(--_border-width);border-color:var(--_border-color);border-radius:var(--_radius);background-color:var(--_bg);cursor:var(--_cursor);transition:var(--_transition);flex-shrink:0;margin:0}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio][checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{border-color:var(--_border-color-checked);border-width:var(--_checked-border-width)}:host([invalid]) [part=control]{border-color:var(--_border-color-invalid)}:host(:focus-visible){outline:none}:host(:focus-visible) [part=control]{outline:var(--_outline-width) solid var(--_outline-color);outline-offset:var(--_outline-offset)}:host([disabled]) [part=control],:host([disabled-ui]) [part=control],:host([role=radio]:state(disabled)) [part=control]{border-color:var(--_border-color-disabled);background-color:var(--_bg-disabled);cursor:var(--_cursor-disabled)}:host([disabled]) [part=label],:host([disabled-ui]) [part=label]{color:var(--_label-color-disabled);cursor:var(--_cursor-disabled)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control]{border-color:var(--_border-color-disabled)}[part=label]{font-size:var(--_label-font-size);line-height:var(--_label-line-height);color:var(--_label-color);user-select:none;cursor:var(--_cursor)}@media (prefers-reduced-motion:reduce){:host{--w-c-radio-transition:none}}@media (forced-colors:active){:host{--w-c-radio-bg:Canvas;--w-c-radio-border-color:ButtonText;--w-c-radio-border-color-checked:Highlight;--w-c-radio-outline-color:Highlight;--w-c-radio-bg-disabled:Canvas;--w-c-radio-border-color-disabled:GrayText;--w-c-radio-label-color:CanvasText;--w-c-radio-label-color-disabled:GrayText}[part=control]{forced-color-adjust:none}:host([checked]) [part=control],:host([checked-ui]) [part=control],:host([role=radio]:state(checked)) [part=control]{background-color:var(--_border-color-checked);border-color:var(--_border-color-checked)}:host([disabled][checked]),:host([disabled][checked-ui]),:host([disabled-ui][checked-ui]) [part=control],:host([role=radio]:state(disabled):state(checked)) [part=control]{background-color:var(--_border-color-disabled);border-color:var(--_border-color-disabled)}}`;var Ad=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Pd extends(Ir(se)){static#e=this.styles=[zd,Or,Dd];static#g=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};get tabIndex(){return this._internalTabIndex}set tabIndex(e){this._groupTabIndex=e}#m;#v;#f;constructor(){super(),this.value=null,this.checked=!1,this.disabled=!1,this.required=!1,this.invalid=!1,this.#m=!1,this.#v=!1,this.#f=!1,this.handleClick=()=>{this.isInGroup()||this.disabled||(this.#f=!0,this.checked||(this.checked=!0,this.updateComplete.then(()=>{this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))})))},this.handleInvalid=()=>{this.#f=!0,this.updateValidity()},this.handleKeyDown=e=>{if(!this.isInGroup()&&!this.disabled&&!e.defaultPrevented){if(["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(e.key)){const t=this.getStandaloneNamedRadios().filter(e=>!e.disabled);if(t.length<=1)return;e.preventDefault();const r=t.find(e=>e.checked)??t.find(e=>e===this)??t[0],o="ArrowUp"===e.key||"ArrowLeft"===e.key?-1:1,i=t.indexOf(r),n=t[(i+o+t.length)%t.length];return n.#f=!0,n.checked||(n.checked=!0,n.updateComplete.then(()=>{n.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))}
150)),void n.focus()}" "!==e.key&&"Spacebar"!==e.key&&"Enter"!==e.key||("Enter"===e.key&&this.internals.form?this.internals.form.requestSubmit():(e.preventDefault(),this.click()))}},this.addEventListener("click",this.handleClick),this.addEventListener("invalid",this.handleInvalid),this.addEventListener("keydown",this.handleKeyDown)}connectedCallback(){super.connectedCallback(),this.value=this.getAttribute("value")??"on",this.#m=this.hasAttribute("checked"),this.checked=this.#m,this.internals.role="radio",this.syncAriaDisabled(),this.syncFormValue(),this.updateValidity()}syncAriaDisabled(){this.internals.ariaDisabled=this.disabled?"true":"false"}syncAriaChecked(){this.internals.ariaChecked=this.checked?"true":"false"}willUpdate(e){this.shouldSyncFormState(e)&&(this.syncFormValue(),this.updateValidity())}updated(e){super.updated(e),e.has("checked")&&(this.syncAriaChecked(),this.checked&&!this.isInGroup()&&(this.uncheckOtherRadios(),this.syncStandaloneTabOrder())),e.has("disabled")&&(this.syncAriaDisabled(),this.isInGroup()||this.syncStandaloneTabOrder()),e.has("invalid")&&(this.internals.ariaInvalid=this.invalid?"true":null),e.has("name")&&this.checked&&!this.isInGroup()&&this.uncheckOtherRadios()}resetFormControl(){this.checked=this.#m,this.syncFormValue(),this.updateValidity()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.#f=!0,this.updateValidity(),this.internals.checkValidity()}isInGroup(){return Boolean(this.closest("w-radio-group"))}getRadioScope(){return this.internals.form??this.closest("form")??document}getStandaloneNamedRadios(){if(!this.name)return[this];return[...this.getRadioScope().querySelectorAll(`w-radio[name="${this.name}"]`)].filter(e=>!e.closest("w-radio-group"))}syncStandaloneTabOrder(){const e=this.getStandaloneNamedRadios(),t=e.filter(e=>!e.disabled),r=t.find(e=>e.checked)??t[0]??null;e.forEach(e=>{e._standaloneTabIndex=e===r?0:-1})}get _internalTabIndex(){return this.disabled?-1:void 0!==this._groupTabIndex?this._groupTabIndex:void 0!==this._standaloneTabIndex?this._standaloneTabIndex:0}firstUpdated(){this.isInGroup()||this.syncStandaloneTabOrder()}uncheckOtherRadios(){if(!this.name)return;[...this.getRadioScope().querySelectorAll(`w-radio[name="${this.name}"]`)].forEach(e=>{e!==this&&(e.closest("w-radio-group")||e.checked&&(e.checked=!1))})}updateValidity(){if(this.disabled||this.isInGroup())return void this.internals.setValidity({});const e=this.required&&!this.checked,t=this.invalid&&!this.#v;if(e)return this.#v=!0,this.invalid=this.#f,void this.internals.setValidity({valueMissing:!0},this.internals.validationMessage||" ");this.#v&&(this.invalid=!1,this.#v=!1),t?this.internals.setValidity({customError:!0},this.internals.validationMessage||" "):this.internals.setValidity({})}syncFormValue(){this.disabled?this.setValue(null):this.setValue(this.checked?this.value:null)}shouldSyncFormState(e){return e.has("checked")||e.has("value")||e.has("disabled")||e.has("required")||e.has("invalid")}render(){return B`<div part="base" tabindex="${this._internalTabIndex}"><div part="control"></div><slot part="label"></slot></div>`}}Ad([he({reflect:!0})],Pd.prototype,"name",void 0),Ad([he({reflect:!0})],Pd.prototype,"value",void 0),Ad([he({type:Boolean,reflect:!0})],Pd.prototype,"checked",void 0),Ad([he({type:Boolean,reflect:!0})],Pd.prototype,"disabled",void 0),Ad([he({type:Boolean,reflect:!0})],Pd.prototype,"required",void 0),Ad([he({type:Boolean,reflect:!0})],Pd.prototype,"invalid",void 0),Ad([he({attribute:!1})],Pd.prototype,"_groupTabIndex",void 0),Ad([he({attribute:!1})],Pd.prototype,"_standaloneTabIndex",void 0);const Td=Pd;customElements.get("w-radio")||customElements.define("w-radio",Pd);const Md=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Vælg en mulighed."]}'),Vd=JSON.parse('{"radio-group.label.optional":["Optional"],"radio-group.validation.required":["Please select an option."]}
150'),Ld=JSON.parse('{"radio-group.label.optional":["Valinnainen"],"radio-group.validation.required":["Valitse vaihtoehto."]}'),jd=JSON.parse('{"radio-group.label.optional":["Valgfri"],"radio-group.validation.required":["Velg et alternativ."]}'),Rd=JSON.parse('{"radio-group.label.optional":["Valfritt"],"radio-group.validation.required":["Välj ett alternativ."]}'),Nd=a`:host{--_label-font-size:var(--w-c-radio-group-label-font-size,var(--w-font-size-s));--_label-line-height:var(--w-c-radio-group-label-line-height,var(--w-line-height-s));--_label-font-weight:var(--w-c-radio-group-label-font-weight,700);--_label-color:var(--w-c-radio-group-label-color,var(--w-s-color-text));--_label-color-disabled:var(--w-c-radio-group-label-color-disabled,var(--w-s-color-text-disabled));--_label-padding-bottom:var(--w-c-radio-group-label-padding-bottom,16px);--_optional-font-weight:var(--w-c-radio-group-optional-font-weight,400);--_optional-color:var(--w-c-radio-group-optional-color,var(--w-s-color-text-subtle));--_optional-margin-inline-start:var(--w-c-radio-group-optional-margin-inline-start,.5rem);--_radios-gap:var(--w-c-radio-group-gap,16px);--_help-text-margin-block-start:var(--w-c-radio-group-help-text-margin-block-start,16px);--_help-text-font-size:var(--w-c-radio-group-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-radio-group-help-text-line-height,var(--w-line-height-xs));--_help-text-color:var(--w-c-radio-group-help-text-color,var(--w-s-color-text-subtle));--_help-text-color-disabled:var(--w-c-radio-group-help-text-color-disabled,var(--w-s-color-text-disabled));--_help-text-color-error:var(--w-c-radio-group-help-text-color-error,var(--w-s-color-text-negative));display:block}[part=form-control]{border:0;min-inline-size:0;margin:0;padding:0;position:relative}[part=form-control-label]{cursor:pointer;font-size:var(--_label-font-size);line-height:var(--_label-line-height);font-weight:var(--_label-font-weight);color:var(--_label-color);padding-bottom:var(--_label-padding-bottom);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-smoothing:grayscale;display:block}:host([disabled]) [part=form-control-label]{cursor:default;color:var(--_label-color-disabled)}:host([required]) [part=form-control-label]:after{content:var(--wa-form-control-required-content);margin-inline-start:var(--wa-form-control-required-content-offset)}.optional{font-weight:var(--_optional-font-weight);color:var(--_optional-color);margin-inline-start:var(--_optional-margin-inline-start)}[part~=form-control-input]{gap:var(--_radios-gap);flex-flow:column wrap;display:flex}[part~=help-text]{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);color:var(--_help-text-color);margin-block-start:var(--_help-text-margin-block-start)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}:host([disabled]) [part~=help-text]{color:var(--_help-text-color-disabled)}:host([data-show-error]) [part~=help-text]{color:var(--_help-text-color-error)}`;var Id=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};kr(Vd,jd,Ld,Md,Rd);class Fd extends(Ir(se)){static#e=this.styles=[zd,Nd];static#g=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};constructor(){super(),this.hasInteracted=!1,this.hasWarnedMissingName=!1,this.autoTabIndex=!1,this.label="",this.helpText="",this.optional=!1,this.invalid=!1,this.name=null,this.disabled=!1,this.required=!1,this.defaultCheckedValue=void 0,this.slottedHelpText=null,this.nameManagedRadios=new WeakSet,this.disabledManagedRadios=new WeakSet,this.handleRadioClick=e=>{const t=e.target.closest("w-radio");if(!t||t.disabled||this.disabled)return;const r=this.getCheckedValue(),o=this.getAllRadios();this.selectSingleRadio(t,o);this.getCheckedValue()!==r&&this.updateComplete.then(this.emitSelectionChange)},this.handleInvalid=e=>
150{e.preventDefault(),this.hasInteracted=!0,this.updateValidity()},this.handleHelpTextSlotChange=()=>{this.syncSlottedHelpText(),this.requestUpdate()},this.handleI18nChange=()=>{this.requestUpdate()},this.emitSelectionChange=()=>{this.hasInteracted=!0,this.syncFormValue(),this.updateValidity(),this.requestUpdate(),this.dispatchEvent(new InputEvent("input",{bubbles:!0,composed:!0})),this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))},this.captureDefaultSelection=()=>{void 0===this.defaultCheckedValue&&(this.defaultCheckedValue=this.getCheckedValue())},this.addEventListener("keydown",this.handleKeyDown),this.addEventListener("click",this.handleRadioClick),this.addEventListener("invalid",this.handleInvalid)}get validationTarget(){return this.querySelector(":is(w-radio):not([disabled])")??void 0}connectedCallback(){super.connectedCallback(),this.syncSlottedHelpText(),this.syncFormValue(),this.updateValidity(),this.unsubscribeI18n=Ye.on("change",this.handleI18nChange),this.warnIfMissingName(),this.updateComplete.then(this.captureDefaultSelection)}disconnectedCallback(){this.unsubscribeI18n?.(),this.unsubscribeI18n=void 0,super.disconnectedCallback()}async updated(e){(e.has("disabled")||e.has("name")||e.has("required")||e.has("invalid")||e.has("helpText"))&&(this.syncFormValue(),this.updateValidity(),this.syncRadioElements(),this.syncFormValue(),this.updateValidity())}resetFormControl(){const e=this.defaultCheckedValue??null;this.getAllRadios().forEach(t=>{t.checked=!!e&&t.value===e}),this.syncRadioElements(),this.syncFormValue(),this.updateValidity()}getAllRadios(){return[...this.querySelectorAll("w-radio")]}getCheckedValue(){const e=this.getAllRadios().find(e=>e.checked);return e?.value??null}getEnabledRadios(e){return void 0===e&&(e=this.getAllRadios()),e.filter(e=>!e.disabled)}selectSingleRadio(e,t){void 0===t&&(t=this.getAllRadios()),t.forEach(t=>{const r=t===e;t.checked=r,t._groupTabIndex=r?0:-1})}handleLabelClick(){this.focus()}async syncRadioElements(){const e=this.getAllRadios();e.forEach((t,r)=>{t.toggleAttribute("data-w-radio-first",0===r),t.toggleAttribute("data-w-radio-inner",0!==r&&r!==e.length-1),t.toggleAttribute("data-w-radio-last",r===e.length-1),this.syncRadioDisabledState(t),this.name?t.getAttribute("name")&&!this.nameManagedRadios.has(t)||(t.setAttribute("name",this.name),this.nameManagedRadios.add(t)):this.nameManagedRadios.has(t)&&(t.removeAttribute("name"),this.nameManagedRadios.delete(t))}),await Promise.all(e.map(async e=>e.updateComplete)),this.normalizeCheckedRadios(e),this.syncTabOrder(e)}syncRadioDisabledState(e){this.disabled?e.disabled||(e.disabled=!0,this.disabledManagedRadios.add(e)):this.disabledManagedRadios.has(e)&&(e.disabled=!1,this.disabledManagedRadios.delete(e))}syncTabOrder(e){if(this.disabled)return void e.forEach(e=>e._groupTabIndex=-1);const t=this.getEnabledRadios(e),r=t.find(e=>e.checked);t.length>0&&(r?t.forEach(e=>e._groupTabIndex=e.checked?0:-1):t.forEach((e,t)=>e._groupTabIndex=0===t?0:-1)),e.filter(e=>e.disabled).forEach(e=>e._groupTabIndex=-1)}handleKeyDown(e){if(!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"," "].includes(e.key)||this.disabled)return;const t=this.getAllRadios(),r=this.getEnabledRadios(t);if(r.length<=0)return;e.preventDefault();const o=this.getCheckedValue(),i=r.find(e=>e.checked)??r[0],n=" "===e.key?0:["ArrowUp","ArrowLeft"].includes(e.key)?-1:1;let a=r.indexOf(i)+n;a<0&&(a=r.length-1),a>=r.length&&(a=0),this.selectSingleRadio(r[a],t),r[a].focus();this.getCheckedValue()!==o&&this.updateComplete.then(this.emitSelectionChange)}focus(e){if(this.disabled)return;const t=this.getAllRadios(),r=t.find(e=>e.checked),o=t.find(e=>!e.disabled),i=r||o;i&&i.focus(e)}checkValidity(){return this.updateValidity(),this.internals.checkValidity()}reportValidity(){return this.hasInteracted=!0,this.updateValidity(),this.internals.checkValidity()}hasSlottedContent(e){if(this.querySelector(`[slot="${e}"]`))return!0;const t=this.shadowRoot?.querySelector(`slot[name="${e}"]`);return!!t&&t.assignedNodes({flatten:!0}).some(e=>e.nodeType===Node.ELEMENT_NODE||e.nodeType===Node.TEXT_NODE&&Boolean(e.textContent?.trim()))}syncFormValue(){this.setValue(null)}syncSlottedHelpText(){const e=this.querySelector('[slot="help-text"]');this.slottedHelpText=e?.textContent?.trim()||null}updateValidity(){this.warnIfMissingName();const e=this.required&&!this.getCheckedValue(),t=e&&this.hasInteracted,r=this.invalid||this.hasAttribute("invalid"),o=r||t;return this.toggleAttribute("data-show-error",o),this.disabled?(this.internals.setValidity({}),this.syncChildInvalid(!1),void this.syncHostTabIndex(!1)):(this.syncHostTabIndex(o),e?(this.setValidityState({valueMissing:!0}),void this.syncChildInvalid(o)):r?(this.setValidityState({customError:!0}),void this.syncChildInvalid(!0)):(this.internals.setValidity({}),void this.syncChildInvalid(!1)))}normalizeCheckedRadios(e){const t=e.find(e=>e.checked);
150t&&e.forEach(e=>{e!==t&&(e.checked=!1)})}syncChildInvalid(e){this.getAllRadios().forEach(t=>{t.invalid=e})}setValidityState(e){const t=this.validationTarget;this.internals.setValidity(e," ",t??void 0)}syncHostTabIndex(e){if(!this.hasAttribute("tabindex")||this.autoTabIndex)return e?(this.setAttribute("tabindex","0"),void(this.autoTabIndex=!0)):void(this.autoTabIndex&&(this.removeAttribute("tabindex"),this.autoTabIndex=!1))}warnIfMissingName(){this.hasWarnedMissingName||this.internals.form&&(this.name&&this.name.trim().length>0||(console.warn('w-radio-group: "name" is required for form submission.'),this.hasWarnedMissingName=!0))}render(){const e=this.hasSlottedContent("label"),t=this.hasSlottedContent("help-text"),r=!!this.label||!!e,o=!!this.helpText||!!t,i=this.required&&!this.getCheckedValue()&&this.hasInteracted,n=this.invalid||this.hasAttribute("invalid"),a=n||i,s=a?n&&this.helpText?this.helpText:Ye._({id:"radio-group.validation.required",message:"Please select an option.",comment:"Shown when required radio group has no selections"}):this.helpText,l=a||o,d=r?"label":void 0,c=l?"help-text":void 0,h=this.slottedHelpText||void 0;return B`<fieldset part="form-control" role="radiogroup" aria-labelledby="${Fr(d)}" aria-describedby="${Fr(c)}" aria-errormessage="error-message" aria-invalid="${Fr(a?"true":void 0)}">${r?B`<label part="form-control-label" id="label" @click="${this.handleLabelClick}"><slot name="label">${this.label}</slot>${this.optional&&!this.required?B`<span class="optional">${Ye._({id:"radio-group.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</label>`:W}<slot part="form-control-input" @slotchange="${this.syncRadioElements}"></slot>${l?B`<div id="help-text" part="help-text" aria-label="${Fr(h)}"><slot name="help-text" @slotchange="${this.handleHelpTextSlotChange}">${s}</slot></div>`:null}</fieldset>`}}Id([pe()],Fd.prototype,"hasInteracted",void 0),Id([he()],Fd.prototype,"label",void 0),Id([he({attribute:"help-text"})],Fd.prototype,"helpText",void 0),Id([he({type:Boolean,reflect:!0})],Fd.prototype,"optional",void 0),Id([he({type:String,reflect:!0})],Fd.prototype,"tooltip",void 0),Id([he({type:Boolean,reflect:!0})],Fd.prototype,"invalid",void 0),Id([he({reflect:!0})],Fd.prototype,"name",void 0),Id([he({type:Boolean,reflect:!0})],Fd.prototype,"disabled",void 0),Id([he({type:Boolean,reflect:!0})],Fd.prototype,"required",void 0);const qd=Fd;customElements.get("w-radio-group")||customElements.define("w-radio-group",Fd);const Bd=JSON.parse('{"select.label.optional":["Valgfri"]}'),Hd=JSON.parse('{"select.label.optional":["Optional"]}'),Wd=JSON.parse('{"select.label.optional":["Valinnainen"]}'),Ud=JSON.parse('{"select.label.optional":["Valgfri"]}'),Jd=JSON.parse('{"select.label.optional":["Valfritt"]}'),Yd=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.appearance-none{-webkit-appearance:none;appearance:none}.border-0{border-width:0}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.opacity-25{opacity:.25}.block,.before\\:block:before{display:block}.inline{display:inline}.flex{display:flex}.before\\:hidden:before{display:none}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.bottom-0{bottom:0}.right-0{right:0}.before\\:bottom-0:before{bottom:0}.before\\:right-0:before{right:0}.top-\\[30\\%\\]{top:30%}.absolute{position:absolute}.relative{position:relative}.static{position:static}.before\\:absolute:before{position:absolute}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-icon{color:var(--w-s-color-icon)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-disabled:hover{border-color:var(--w-s-color-border-disabled)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-active:active{border-color:var(--w-s-color-border-active)}.active\\:s-border-disabled:active{border-color:var(--w-s-color-border-disabled)}.h-full{height:100%}.w-32{width:3.2rem}.w-full{width:100%}.before\\:h-full:before{height:100%}.before\\:w-32:before{width:3.2rem}.mb-0{margin-bottom:0}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pl-0{padding-left:0}.pl-8{padding-left:.8rem}.pr-32{padding-right:3.2rem}.cursor-pointer{cursor:pointer}.pointer-events-none,.before\\:pointer-events-none:before{pointer-events:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}"),Kd=a`label{--_color:var(--w-c-input-label-color,var(--w-s-color-text));--_font-size:var(--w-c-input-label-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-label-line-height,var(--w-line-height-s));
150--_font-weight:var(--w-c-input-label-font-weight,700);--_padding-bottom:var(--w-c-input-label-padding-bottom,.4rem);--_cursor:var(--w-c-input-label-cursor,pointer);--_display:var(--w-c-input-label-display,block);display:var(--_display);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);padding-bottom:var(--_padding-bottom);cursor:var(--_cursor);color:var(--_color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}label span{--_padding-left:var(--w-c-input-optional-padding-left,.8rem);--_font-weight:var(--w-c-input-optional-font-weight,400);--_font-size:var(--w-c-input-optional-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-optional-line-height,var(--w-line-height-s));--_color:var(--w-c-input-optional-color,var(--w-s-color-text-subtle));padding-left:var(--_padding-left);font-weight:var(--_font-weight);font-size:var(--_font-size);line-height:var(--_line-height);color:var(--_color)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}`,Xd=a`:host{--_help-text-color:var(--w-c-input-help-text-color,var(--w-s-color-text-subtle));--_help-text-font-size:var(--w-c-input-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-input-help-text-line-height,var(--w-line-height-xs));--_help-text-margin-top:var(--w-c-input-help-text-margin-top,.4rem);--_help-text-display:var(--w-c-input-help-text-display,block)}:host([invalid]){--_help-text-color:var(--w-c-input-help-text-color-invalid,var(--w-s-color-text-negative))}.help-text{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);margin-top:var(--_help-text-margin-top);display:var(--_help-text-display);color:var(--_help-text-color)}`;var Gd=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Qd="block text-m mb-0 py-12 pr-32 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] appearance-none cursor-pointer caret-current",Zd="s-text s-bg pl-8 border-1 s-border-strong hover:s-border-strong-hover active:s-border-active",ec="s-text-disabled s-bg-disabled-subtle pl-8 border-1 s-border-disabled hover:s-border-disabled active:s-border-disabled pointer-events-none",tc="s-text s-bg pl-8 border-1 s-border-negative hover:s-border-negative-hover active:s-border-active outline-[--w-s-color-border-negative]!",rc="s-text bg-transparent pl-0 border-0 pointer-events-none before:hidden",oc="relative",ic="relative before:block before:absolute before:right-0 before:bottom-0 before:w-32 before:h-full before:pointer-events-none ",nc="block absolute top-[30%] right-0 bottom-0 w-32 h-full s-icon pointer-events-none cursor-pointer",ac="opacity-25";class sc extends(Ir(se)){get#p(){return void 0!==this.helpText||this._hasHelpTextSlot}#h;#pe;#H;static#e=this.styles=[Or,Yd,Kd,Xd,a`select:has(option[value=""][selected]),select:has(option[value=""]):not(:has(option[selected])){color:var(--w-s-color-text-placeholder)}`];constructor(){super(),this.autoFocus=!1,this.autofocus=!1,this.invalid=!1,this.always=!1,this.optional=!1,this.disabled=!1,this.readOnly=!1,this.readonly=!1,this._options=[],this._hasHelpTextSlot=!1,this.#h=void 0,this.#pe=()=>this.#ue(),this._setValue=e=>{this.value=e,this.setValue(e)},kr(Hd,Ud,Wd,Bd,Jd)}resetFormControl(){this.value=this.#h}#U(){return[...this.children].filter(e=>"option"===e.tagName.toLowerCase()||"w-option"===e.tagName.toLowerCase())}#ge(){return this.shadowRoot?.querySelector("select")}#be(){return this.#U().some(e=>e.hasAttribute("selected"))}#me(e){const t=this.#ge();if(!t)return;let r=!1;for(const o of[...t.options]){const t=!r&&o.value===e;o.selected=t,o.toggleAttribute("selected",t),t&&(r=!0)}}#ue(e){let{allowDefaultFirstOption:t=!1}=void 0===e?{}:e;const r=this.#ge();if(!r)return;const o=r.value;if(!o||o===this.value)return;!t&&!this.value&&!this.#be()&&0===r.selectedIndex||(this._setValue(o),this.#me(o))}#ve(e){let{syncValueFromSelected:t=!1}=void 0===e?{}:e;let r;const o=this.#U().map(e=>{const o=e.getAttribute("value")??"",i=e.textContent??"",n=e.hasAttribute("selected"),a=e.hasAttribute("disabled");return t&&void 0===r&&n&&(r=o),B`<option value="${o}" ?selected="${n}" ?disabled="${a}">${i}</option>`});this._options=o,t&&void 0!==r&&r!==this.value&&this._setValue(r)}connectedCallback(){super.connectedCallback(),this.#h=this.value,(this.autofocus||this.autoFocus)&&this.shadowRoot.querySelector("select").focus(),this.#ve({syncValueFromSelected:!0}),this.ownerDocument?.defaultView?.addEventListener("pageshow",this.#pe),this.#H=new MutationObserver(()=>{this.#ve({syncValueFromSelected:!0})}),this.#H.observe(this,{childList:!0,subtree:!0,characterData:!0,attributes:!0,attributeFilter:["selected","disabled","value"]})}disconnectedCallback(){super.disconnectedCallback(),this.ownerDocument?.defaultView?.removeEventListener("pageshow",this.#pe),this.#H?.disconnect()}firstUpdated(){this.value&&this.#me(this.value),this.#ue({allowDefaultFirstOption:!1})}formStateRestoreCallback(e,t){if("string"==typeof e&&e)return this._setValue(e),void this.#me(e);this.#ue({allowDefaultFirstOption:!0})}willUpdate(e){e.has("value")&&this.setValue(this.value)}updated(e){if(e.has("value")){const e=this.#ge();e&&e.value!==this.value&&(e.value=this.value??""),this.#me(this.value??"")}}handleKeyDown(e){!this.readonly&&!this.readOnly||" "!==e.key&&"ArrowDown"!==e.key&&"ArrowUp"!==e.key||e.preventDefault(),"Enter"===e.key&&this.internals.form&&this.internals.form.requestSubmit()}get#fe(){return jr([Qd,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&Zd,this.invalid&&tc,this.disabled&&ec,(this.readonly||this.readOnly)&&rc])}get#we(){return"help-text"}get#ye(){return jr([nc,this.disabled&&ac])}get#xe(){return"select_id"}get#ke(){return this.helpText||this.hint?`${this.#xe}__hint`:void 0}onChange(e){const t=e.currentTarget.value;this._setValue(t),this.#me(t),this.dispatchEvent(new CustomEvent("change",{detail:t,bubbles:!0,composed:!0}))}helpTextSlotChange(){this.renderRoot.querySelector("slot[name=help-text]").assignedElements().length&&(this._hasHelpTextSlot=!0)}render(){return B`<div class="${oc}">${this.label?B`<label for="${this.#xe}">${this.label} ${this.optional?B`<span>${Ye.t({id:"select.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</label>`:W}<div class="${ic}"><select part="input" class="${this.#fe}" id="${this.#xe}" ?disabled="${this.disabled}" aria-readonly="${this.readonly}
150" aria-describedby="${Fr(this.#ke)}" aria-invalid="${Fr(this.invalid)}" aria-errormessage="${Fr(this.invalid&&this.#ke)}" @keydown="${this.handleKeyDown}" @change="${this.onChange}">${this._options}</select><div class="${this.#ye}"><w-icon name="ChevronDown" size="small" locale="${xr()}" class="flex"></w-icon></div></div><div ?hidden="${!this.#p&&!this.always&&!this.invalid}" class="${this.#we}" id="${Fr(this.#ke)}">${this.helpText||this.hint}<slot @slotchange="${this.helpTextSlotChange}" name="help-text"></slot></div></div>`}}Gd([he({attribute:"auto-focus",type:Boolean,reflect:!0})],sc.prototype,"autoFocus",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"autofocus",void 0),Gd([he({attribute:"help-text",reflect:!0})],sc.prototype,"helpText",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"invalid",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"always",void 0),Gd([he({reflect:!0})],sc.prototype,"hint",void 0),Gd([he({reflect:!0})],sc.prototype,"label",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"optional",void 0),Gd([he({type:String,reflect:!0})],sc.prototype,"tooltip",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"disabled",void 0),Gd([he({attribute:"read-only",type:Boolean,reflect:!0})],sc.prototype,"readOnly",void 0),Gd([he({type:Boolean,reflect:!0})],sc.prototype,"readonly",void 0),Gd([he({attribute:!1,state:!0})],sc.prototype,"_options",void 0),Gd([he({reflect:!0})],sc.prototype,"name",void 0),Gd([he({reflect:!0})],sc.prototype,"value",void 0),Gd([pe()],sc.prototype,"_hasHelpTextSlot",void 0),customElements.get("w-select")||customElements.define("w-select",sc);const lc=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.hidden{display:none}.absolute{position:absolute}.relative{position:relative}.static{position:static}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}"),dc=a`.w-slider-thumb{pointer-events:none;grid-template-columns:1fr 24px 1fr;grid-template-areas:"slider slider slider""frommarker.tomarker""fromtextfield.totextfield";display:grid;position:relative}.w-slider-thumb__range{appearance:none;pointer-events:none;background-color:#0000;grid-area:slider;height:44px;margin-left:0}.w-slider-thumb__range::-webkit-slider-runnable-track{box-shadow:none;color:var(--w-s-color-text);height:var(--w-slider-track-height)}.w-slider-thumb__range::-webkit-slider-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;border-radius:50%}.w-slider-thumb__range[disabled]::-webkit-slider-thumb{cursor:auto}.w-slider-thumb__range::-moz-range-thumb{anchor-name:--thumb;appearance:none;cursor:pointer;background:var(--w-slider-thumb-background);height:var(--w-slider-thumb-size,28px);margin-top:calc(-1 * calc(var(--w-slider-thumb-offset) - calc(var(--w-slider-track-height) / 2)));pointer-events:initial;width:var(--w-slider-thumb-size,28px);z-index:1;box-shadow:none;border-color:#0000;border-radius:50%}.w-slider-thumb__range[disabled]::-moz-range-thumb{cursor:auto}.w-slider-thumb__range:active::-webkit-slider-thumb,.w-slider-thumb__range:hover::-webkit-slider-thumb{background:var(--w-slider-thumb-background);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus,.w-slider-thumb__range:focus-visible{outline:none}.w-slider-thumb__range:focus-visible::-webkit-slider-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__range:active::-moz-range-thumb,.w-slider-thumb__range:hover::-moz-range-thumb{background:var(--w-s-color-background-primary-hover);box-shadow:var(--w-shadow-slider-handle-hover)}.w-slider-thumb__range:focus-visible::-moz-range-thumb{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px);box-shadow:none}.w-slider-thumb__tooltip-target{pointer-events:none;position-anchor:--thumb;position-area:center;border:2px solid #0000;border-radius:20px;width:8px;height:8px;display:block;position:absolute}.w-slider-thumb__from-marker,.w-slider-thumb__to-marker{color:var(--w-s-color-text-subtle);font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);margin-inline:2px}.w-slider-thumb__from-marker{grid-area:frommarker}.w-slider-thumb__to-marker{text-align:right;grid-area:tomarker}.w-slider-thumb__textfield{pointer-events:auto;grid-area:3/1/4/3;margin-top:12px}:host([slot=from]) .w-slider-thumb__textfield{grid-column:1/2}:host([slot=from]) .w-slider-thumb__range{margin-left:var(--w-slider-thumb-size,28px)}:host([slot=to]) .w-slider-thumb__range{margin-right:var(--w-slider-thumb-size,28px)}:host([slot=from]) .w-slider-thumb__tooltip-target{transform:translateX(calc(-1 * var(--transform-offset,0px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=from]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(-1 * var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__textfield{grid-area:3/3/4/4}:host([slot=to]) .w-slider-thumb__tooltip-target{transform:translateX(calc(var(--transform-offset,0px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-webkit-slider-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}:host([slot=to]) .w-slider-thumb__range::-moz-range-thumb{transform:translateX(calc(var(--w-slider-thumb-size,28px) - 1px))}w-textfield{--w-textfield-placeholder-color-text:var(--w-s-color-text)}`;var cc=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const hc=/WebKit/,pc=/Chrome/;class uc extends(Ir(se)){constructor(){super(...arguments),this.ariaLabel=null,this.ariaDescription=null,this.disabled=!1,this.invalid=!1,this.openEnded=!1,this.required=!1,this.suffix="",this._showTooltip=!1,this._inputHasFocus=!1,this._hiddenTextfield=!1,this.#h=void 0,this.anchorPositioningStyleElement=null}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#g=this.styles=[Or,lc,dc];#h;resetFormControl(){this.value=this.#h,this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}#_e(){this._showTooltip=!0,this.shadowRoot.querySelector("w-attention").handleDone()}#$e(){this._showTooltip=!1}#Se(){this.range&&(""===this.value?this.range.value=this.boundaryValue:this.value&&(this.range.value=this.value))}#Ee(e){this.dispatchEvent(new CustomEvent("slidervalidity",{bubbles:!0,detail:{invali
150d:e,slot:this.slot}}))}async updateFieldAfterValidation(){const e=this.shadowRoot.querySelector("w-textfield");await this.#Ce(e.value??"",!0)}async#Ce(e,t){const r=this.suffix??"";let o=Number.parseInt(e);if(this.openEnded&&!t&&this.step){if(!("to"===this.slot&&o>=Number(this.max)-1||"from"===this.slot&&o<=Number(this.min)+1)){const t=1/this.step;o=Math.round(o*t)/t,e=o.toString()}}const i=Number.parseInt(this.max),n=Number.parseInt(this.min);if(!this.openEnded&&(o>i||o<n))return this.#Ee(Ye.t({id:"slider.error.out_of_bounds",message:"Value must be between {min} and {max}",values:{min:`${this.min} ${r}`.trim(),max:`${this.max} ${r}`.trim()}})),{shouldCancel:!0};""===e&&this.required&&this.#Ee(Ye.t({id:"slider.error.required",message:"This field is required"})),this.value=e;const a=e===this.max||e===this.min;let s=!1;if(this.slot){const r=this.parentElement.querySelector('w-slider-thumb[slot="to"]'),l=this.parentElement.querySelector('w-slider-thumb[slot="from"]'),d=r.textfield.value||this.max,c=l.textfield.value||this.min,h=Number.parseInt(d),p=Number.parseInt(c),u=Ye.t({id:"slider.error.overlap",message:"The maximum value cannot be less than the minimum"});if("from"===this.slot){const r=this.openEnded&&h>i?h:Math.min(h,this.openEnded?i-1:i);o>r&&(s=!0,this.openEnded&&a?this.value=String(r):this.value=d,t&&(this.#Ee(u),await this.updateComplete,this.textfield.value=e))}else{const r=this.openEnded&&p<n?p:Math.max(Number.parseInt(c),this.openEnded?n+1:n);o<r&&(s=!0,this.openEnded&&a?this.value=String(r):this.value=c,t&&(this.#Ee(u),await this.updateComplete,this.textfield.value=e))}}return s?{shouldCancel:!0}:(this.#Ee(""),this.range.value=Math.min(Math.max(Number(e),Number(this.min)),Number(this.max)).toString(),this.value=this.openEnded&&!t&&a?"":e,this.shadowRoot.querySelector("w-attention").handleDone(),{shouldCancel:!1})}async#ee(e){const t="W-TEXTFIELD"===e.currentTarget.tagName;if(e instanceof CustomEvent)return!1;const r=e.currentTarget.value;return!(await this.#Ce(r,t)).shouldCancel||(e.preventDefault(),!1)}async#Oe(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(!this.openEnded)return;if("ArrowLeft"!==e.key&&"ArrowRight"!==e.key)return;const t=Number(this.range.value),r=this.step||1;let o;o="ArrowLeft"===e.key?t-r:t+r,o=Math.min(Math.max(o,Number(this.min)),Number(this.max));(await this.#Ce(o.toString(),!1)).shouldCancel&&e.preventDefault()}async#ze(e){if("Enter"===e.key&&this.internals.form)return void this.internals.form.requestSubmit();if(this.textfield.value)return;let t="";"from"===this.slot?"ArrowUp"===e.key?t=String(Number(this.min)+1)||"1":"ArrowDown"===e.key&&(t=String(Number(this.min))||"0"):"ArrowUp"===e.key?t=String(Number(this.max))||"100":"ArrowDown"===e.key&&(t=String(Number(this.max)-1)||"99"),t&&(e.preventDefault(),await this.#Ce(t,!0))}async connectedCallback(){if(super.connectedCallback(),this.#h=this.value,this.setValue(this.value),this.slot&&!this.ariaDescription&&("from"===this.slot?this.ariaDescription=Ye.t({id:"slider.label.from",comment:"Accessible label for the 'from value' input field in a range slider",message:"From"}):"to"===this.slot&&(this.ariaDescription=Ye.t({id:"slider.label.to",comment:"Accessible label for the 'to value' input field in a range slider",message:"To"}))),"anchorName"in document.documentElement.style)await this.updateComplete;else{const e=import.meta.url.substring(0,import.meta.url.lastIndexOf("/"));try{const[{default:t}]=await Promise.all([import(`${e}/oddbird-css-anchor-positioning.js`),this.updateComplete]);this.anchorPositioningStyleElement||(this.anchorPositioningStyleElement=document.createElement("style"),this.shadowRoot.prepe
150nd(this.anchorPositioningStyleElement)),this.anchorPositioningStyleElement.textContent="\n /*\n * The polyfill can only anchor to ::before and ::after pseudo elements, not the pseudo element slider thumb.\n * We work around that by recreating a transparent version of the active range\n * so that we can position relative to that, without crossing the shadow root boundary.\n */\n .polyfill-range {\n align-self: center;\n background: transparent;\n height: var(--w-slider-track-active-height);\n position: absolute;\n padding-inline-start: var(--active-range-inline-start-padding, 0);\n padding-inline-end: var(--active-range-inline-end-padding, 0);\n top: var(--_range-top);\n left: 0;\n right: 0;\n grid-area: slider;\n }\n\n .polyfill-active-range {\n anchor-name: --polyfilled-thumb;\n\n box-sizing: content-box;\n background: transparent;\n height: var(--w-slider-track-active-height);\n\n border-start-start-radius: var(--active-range-border-radius, 0);\n border-end-start-radius: var(--active-range-border-radius, 0);\n\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n #target {\n position: absolute;\n top: anchor(--polyfilled-thumb top);\n right: anchor(--polyfilled-thumb right);\n margin-right: 12px;\n }\n\n :host([name='from']) .polyfill-active-range {\n margin-left: calc(calc(var(--_blank-values-before) * 1%) - var(--active-range-inline-start-padding, 0px));\n width: calc(calc(var(--_filled-values) * 1%) + var(--active-range-inline-end-padding, 0px));\n }\n\n :host([name='from']) #target {\n left: anchor(--polyfilled-thumb left);\n margin-left: 38px;\n }\n ",await t({roots:[this.shadowRoot],elements:[this.anchorPositioningStyleElement]})}catch(e){console.error(new Error("Error registering the CSS anchor positioning polyfill. The UI will look broken.",{cause:e}))}}const e=window.navigator.userAgent;hc.test(e)&&!pc.test(e)&&this.tooltipTarget&&this.tooltipTarget.style.setProperty("--transform-offset","var(--w-slider-thumb-size, 28px)"),this.#Se()}get boundaryValue(){return"from"===this.slot?this.min:this.max}get textFieldDisplayValue(){return this._inputHasFocus?""!==this.value?this.value:this.range?.value?Math.min(Math.max(Number(this.range.value),Number(this.min)+1),Number(this.max)-1).toString():"":this.value}get tooltipDisplayValue(){let e;return e=this.tooltipFormatter?this.tooltipFormatter(this.value,this.slot):this.valueFormatter?this.valueFormatter(this.value,this.slot):""===this.value?this.range?.value??this.boundaryValue:this.value||0,e}get ariaDescriptionText(){let e="";const t=this.ariaDescription||"",r=""===this.value;return this.openEnded&&r&&(e="from"===this.slot?Ye.t({id:"slider.placeholder.from",message:"Min"}):Ye.t({id:"slider.placeholder.to",message:"Max"})),e?`${e}, ${t}`:t}updated(e){if(e.has("openEnded")&&this.openEnded&&!this.placeholder&&("to"===this.slot||""===this.slot?this.placeholder=Ye.t({id:"slider.placeholder.to",message:"Max",comment:"Max as in short for Maximum"}):"from"===this.slot&&(this.placeholder=Ye.t({id:"slider.placeholder.from",message:"Min",comment:"Min as in short for Minimum"}))),e.has("value")){void 0===this.#h&&void 0!==this.value&&(this.#h=this.value),this.setValue(this.value),this.#Se();const t=e.get("value");(""===this.value&&t||"from"===this.slot&&this.value===this.min||"to"===this.slot&&this.value===this.max)&&this.dispatchEvent(new CustomEvent("thumbreset",{bubbles:!0}))}(e.has("min")||e.has("max"))&&(this.value=this.#h,this.setValue(this.value),this.#Se())}render(){const e=this.placeholder&&!this.value,t="Min"!==this.tooltipDisplayValue&&"Max"!==this.tooltipDisplayValue&&""!==(this.suffix??"");return B`<div class="w-slider-thumb">${"anchorName"in document.documentElement.style?W:B`<div class="pol
150yfill-range"><div class="polyfill-active-range"></div></div>`} <input id="range" aria-label="${this.ariaLabel}" aria-describedby="${Fr(this.ariaDescription?"aria-description":void 0)}" class="w-slider-thumb__range" type="range" .value="${this.value}" min="${this.min}" max="${this.max}" step="${Fr(!this.openEnded&&this.step?this.step:void 0)}" ?disabled="${this.disabled}" @mousedown="${this.#_e}" @mouseup="${this.#$e}" @touchstart="${this.#_e}" @touchend="${this.#$e}" @focus="${this.#_e}" @blur="${this.#$e}" @input="${this.#ee}" @keydown="${this.#Oe}"> ${"from"!==this.slot&&this.slot?W:B`<span class="sr-only">${Ye.t({id:"slider.label.from",message:"From"})+" "+(this.labelFormatter?this.labelFormatter("from"):this.min)+", "+Ye.t({id:"slider.label.to",message:"To"})+" "+(this.labelFormatter?this.labelFormatter("to"):this.max)}</span>`} <span aria-hidden="true" class="w-slider-thumb__from-marker">${this.labelFormatter?this.labelFormatter("from"):this.min} </span><span aria-hidden="true" class="w-slider-thumb__to-marker">${this.labelFormatter?this.labelFormatter("to"):this.max}</span><w-textfield aria-label="${this.ariaLabel}" aria-description="${Fr(this.ariaDescriptionText)}" class="${xe({"w-slider-thumb__textfield":!0,"sr-only":this._hiddenTextfield})}" type="number" tabindex="${this._hiddenTextfield?-1:W}" placeholder="${this.placeholder}" .value="${this.textFieldDisplayValue}" .formatter="${this.valueFormatter&&!e?e=>this.valueFormatter(e,this.slot):W}" min="${this.openEnded?W:this.min}" max="${this.openEnded?W:this.max}" step="${Fr(this.step)}" ?invalid="${Boolean(this.invalid)}" @input="${this.#ee}" @keydown="${this.#ze}" ?disabled="${this.disabled}">${this.suffix?B`<w-affix slot="suffix" label="${this.suffix??""}"></w-affix>`:W}</w-textfield><w-attention tooltip placement="top" flip distance="24" .show="${this._showTooltip}"><output id="target" class="w-slider-thumb__tooltip-target" slot="target"></output> <span slot="message">${this.tooltipDisplayValue}${t?B` ${this.suffix??""}`:W}</span></w-attention><span class="sr-only" id="aria-description">${this.ariaDescriptionText}</span></div>`}}cc([he({attribute:"aria-label"})],uc.prototype,"ariaLabel",void 0),cc([he({attribute:"aria-description"})],uc.prototype,"ariaDescription",void 0),cc([he({reflect:!0})],uc.prototype,"name",void 0),cc([he({reflect:!0})],uc.prototype,"value",void 0),cc([he({type:Boolean,reflect:!0})],uc.prototype,"disabled",void 0),cc([he({type:Boolean,reflect:!0})],uc.prototype,"invalid",void 0),cc([he({attribute:!1,reflect:!1})],uc.prototype,"openEnded",void 0),cc([he({reflect:!0})],uc.prototype,"placeholder",void 0),cc([he({reflect:!1})],uc.prototype,"markers",void 0),cc([he({reflect:!1})],uc.prototype,"required",void 0),cc([he({reflect:!1})],uc.prototype,"step",void 0),cc([he({reflect:!1})],uc.prototype,"min",void 0),cc([he({reflect:!1})],uc.prototype,"max",void 0),cc([he({reflect:!1})],uc.prototype,"suffix",void 0),cc([he({attribute:!1})],uc.prototype,"valueFormatter",void 0),cc([he({attribute:!1})],uc.prototype,"tooltipFormatter",void 0),cc([he({attribute:!1})],uc.prototype,"labelFormatter",void 0),cc([ge('input[type="range"]')],uc.prototype,"range",void 0),cc([ge(".w-slider-thumb__tooltip-target")],uc.prototype,"tooltipTarget",void 0),cc([ge("w-textfield")],uc.prototype,"textfield",void 0),cc([pe()],uc.prototype,"_showTooltip",void 0),cc([pe()],uc.prototype,"_inputHasFocus",void 0),cc([pe()],uc.prototype,"_hiddenTextfield",void 0),customElements.get("w-slider-thumb")||customElements.define("w-slider-thumb",uc);const gc=JSON.parse('{"select.label.optional":["Valgfri"],"slider.error.out_of_bounds":["Værdien skal være mellem ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumværdien må ikke være mindre end minimumværdien"],"slider.error.required":["Dette felt er påkrævet"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),bc=JSON.parse('{"select.label.optional":["Optional"],"slider.error.out_of_bounds":["Value must be between ",["min"]," and ",["max"]],"slider.error.overlap":["The maximum value cannot be less than the minimum"],"slider.error.required":["This field is required"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),mc=JSON.parse('{"select.label.optional":["Valinnainen"],"slider.error.out_of_bounds":["Arvon on oltava välillä ",["min"]," - ",["max"]],"slider.error.overlap":["Maksim
150iarvo ei voi olla pienempi kuin minimiarvo"],"slider.error.required":["Tämä kenttä on pakollinen"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),vc=JSON.parse('{"select.label.optional":["Valgfri"],"slider.error.out_of_bounds":["Verdien må være mellom ",["min"]," og ",["max"]],"slider.error.overlap":["Maksimumsverdien kan ikke være mindre enn minimumsverdien"],"slider.error.required":["Dette feltet er påkrevd"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),fc=JSON.parse('{"select.label.optional":["Valfritt"],"slider.error.out_of_bounds":["Värdet måste vara mellan ",["min"]," och ",["max"]],"slider.error.overlap":["Maxvärdet kan inte vara mindre än minimivärdet"],"slider.error.required":["Detta fält är obligatoriskt"],"slider.label.from":["From"],"slider.label.to":["To"],"slider.placeholder.from":["Min"],"slider.placeholder.to":["Max"]}'),wc=a`.w-slider{--w-slider-track-background:var(--w-s-color-background-disabled-subtle);--w-slider-track-active-background:var(--w-s-color-background-primary);--w-slider-track-height:4px;--w-slider-track-active-height:6px;--w-slider-thumb-background:var(--w-s-color-background-primary);--w-slider-thumb-background-hover:var(--w-s-color-background-primary-hover);--w-slider-thumb-size:28px;--w-slider-thumb-offset:calc(var(--w-slider-thumb-size) / 2);--w-slider-marker-color:var(--w-s-color-border);--_range-top:calc(var(--w-slider-thumb-size) / 2 + calc(var(--w-slider-track-active-height) - calc(var(--w-slider-track-height) / 2) + 1px));border:none;grid-template-columns:1fr;grid-template-areas:"label""description""slider""error";width:100%;margin:0;padding:0;display:grid;position:relative}.w-slider[disabled]{--w-slider-track-active-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background:var(--w-s-color-background-disabled-subtle);--w-slider-thumb-background-hover:var(--w-s-color-background-disabled-subtle)}.w-slider__label{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);color:var(--w-s-color-text);grid-area:label;padding-bottom:8px;font-weight:700}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}.w-slider__description{grid-area:description}.w-slider__range{background:var(--w-slider-track-background);height:var(--w-slider-track-active-height);top:var(--_range-top);border-radius:4px;grid-area:slider;align-self:center;padding-inline-start:var(--active-range-inline-start-padding,0);padding-inline-end:var(--active-range-inline-end-padding,0);position:absolute;left:0;right:0}.w-slider__active-range{box-sizing:content-box;background:var(--w-slider-track-active-background);height:var(--w-slider-track-active-height);--max-with-offset:calc(var(--max) + var(--over-under-offset,0));--offset-percentage:calc(calc(var(--from) - var(--min)) / calc(var(--max-with-offset) - var(--min)) * 100);margin-left:calc(max(var(--offset-percentage) * 1%, 0px) - var(--range-slider-magic-pixel,0px));--value-range:calc(var(--max-with-offset) - var(--min));--range-span-percentage:calc(calc(min(var(--to), var(--max-with-offset)) - max(var(--min), var(--from))) / var(--value-range) * 100);width:calc(var(--range-span-percentage) * 1% + var(--range-slider-magic-pixel,0px));z-index:1;border-start-start-radius:var(--active-range-border-radius,0);border-end-start-radius:var(--active-range-border-radius,0)}.w-slider__markers{--_marker-height:7px;--_marker-width:1px;background:linear-gradient(to right, var(--w-slider-marker-color) var(--_marker-width), #0000 1px calc(100% - 1px), var(--w-slider-marker-color) 100%) repeat-x;--_step-width-as-percent:calc(var(--markers) / var(--_value-range) * 100);background-size:calc(var(--_step-width-as-percent) * 1%) var(--_marker-height);background-position:bottom 0 left 8px right 8px;top:calc(var(--_range-top) + 2px);height:var(--_marker-height);margin-inline:var(--w-slider-thumb-offset);grid-area:slider;align-self:center;position:absolute;
150left:1px;right:1px}.w-slider__error{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);color:var(--w-s-color-text-negative);grid-area:error;padding-top:8px}.w-slider__help-text{font-size:var(--w-font-size-xs);line-height:var(--w-line-height-xs);grid-area:error;padding-top:8px}slot::slotted(w-slider-thumb){grid-area:slider;position:static;inset:0}`;var yc=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class xc extends se{static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};static#g=this.styles=[Or,wc,a`:host{--_padding-left:var(--w-c-slider-optional-padding-left,.8rem);--_font-weight:var(--w-c-slider-optional-font-weight,400);--_font-size:var(--w-c-slider-optional-font-size,var(--w-font-size-s));--_line-height:var(--w-c-slider-optional-line-height,var(--w-line-height-s));--_color:var(--w-c-slider-optional-color,var(--w-s-color-text-subtle))}.w-slider__optional{padding-left:var(--_padding-left);font-weight:var(--_font-weight);font-size:var(--_font-size);line-height:var(--_line-height);color:var(--_color)}`];get#p(){return void 0!==this.helpText||this._hasHelpTextSlot}constructor(){super(),this.disabled=!1,this.openEnded=!1,this.invalid=!1,this.required=!1,this.optional=!1,this.hiddenTextfield=!1,this._invalidMessage="",this._hasInternalError=!1,this._showError=!1,this._tabbableElements=[],this._hasLabel=!1,this._hasHelpTextSlot=!1,kr(bc,vc,mc,gc,fc)}#De(){const e=this.querySelectorAll("w-slider-thumb");let t=!1;for(const r of e.values())r.min=this.edgeMin,r.max=this.edgeMax,r.step=this.step,r.suffix=this.suffix??"",r.required=this.required,r.labelFormatter=this.labelFormatter,r.valueFormatter=this.valueFormatter,r.tooltipFormatter=this.tooltipFormatter,r.openEnded=this.openEnded,r._hiddenTextfield=this.hiddenTextfield,r.ariaLabel||(r.slot||(r.ariaLabel=this.label||null),"from"===r.slot&&(r.ariaLabel=`${this.label} min`),"to"===r.slot&&(r.ariaLabel=`${this.label} max`)),"from"!==r.slot&&"to"!==r.slot||(t=!0),r.disabled=this.disabled,r.invalid=Boolean(this.errorText),this.#Ae(r);t?(this.fieldset.style.setProperty("--active-range-inline-start-padding","var(--w-slider-thumb-size, 28px)"),this.fieldset.style.setProperty("--active-range-inline-end-padding","var(--w-slider-thumb-size, 28px)")):this.fieldset.style.setProperty("--active-range-border-radius","4px")}get edgeMin(){return this.openEnded?(Number(this.min)-1).toString():this.min}get edgeMax(){return this.openEnded?(Number(this.max)+1).toString():this.max}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.step&&this.fieldset.style.setProperty("--step",String(this.step)),void 0!==this.min&&this.fieldset.style.setProperty("--min",this.edgeMin),void 0!==this.max&&this.fieldset.style.setProperty("--max",this.max),this.markers&&this.fieldset.style.setProperty("--markers",String(this.markers)),this.openEnded&&this.fieldset.style.setProperty("--over-under-offset","1"),this.label&&(this._hasLabel=!0);const e=this.querySelectorAll("w-slider-thumb");if(2===e.length){this.fieldset.style.setProperty("--range-slider-magic-pixel","1px");const t=[...e];this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[1].shadowRoot.querySelector("input"),this._tabbableElements[2]=t[0].shadowRoot.querySelector("w-textfield"),this._tabbableElements[3]=t[1].shadowRoot.querySelector("w-textfield")}else if(1===e.length){const t=[...e];this._tabbableElements[0]=t[0].shadowRoot.querySelector("input"),this._tabbableElements[1]=t[0].shadowRoot.querySelector("w-textfield")}this.invalid&&this.error&&(this._showError=!0),this.#De()}updated(e){(e.has("disabled")||e.has("required")||e.has("min")||e.has("step")||e.has("max")||e.has("suffix")||e.has("labelFormatter")||e.has("valueFormatter")||e.has("_invalidMessage")||e.has("_hasInternalError"))&&this.#De(),(e.has("error")||e.has("invalid"))&&(this.error&&this.invalid?this._showError=!0:this._showError=!1,this.#De())}#Pe(e){e.stopPropagation();const t=e.target;this.#Ae(t)}#ee(e){const t=e.target;this.#Ae(t);t.slot&&this.#Te()}#Me(){this.componentHasError?this._showError=!0:this._showError=!1,this.#De()}#k(e){if("Tab"===e.key){const t=this._tabbableElements.indexOf(e.target.shadowRoot.activeElement);if(-1===t)return;const r=e.shiftKey?-1:1,o=this._tabbableElements[t+r];if(!o)return;e.preventDefault(),o.focus()}}#Te(){let e=null,t=null;const r=this.querySelectorAll("w-slider-thumb");for(const o of r.values())"from"===o.slot&&(e=o),"to"===o.slot&&(t=o);e&&t&&(e.invalid||t.invalid)}#Ve(e){e.stopPropagation();const t=this._hasInternalError||this.invalid,r=e.target;if(this._hasInternalError=Boolean(e.detail.invalid)||this.invalid,this._invalidMessage=e.detail.invalid,!0===t&&!1===this._hasInternalError){const e=this.querySelectorAll("w-slider-thumb");for(const t of e.values())t!==r&&t.updateFieldAfterValidation()}}#Le(e,t){return t.value??=this.openEnded?"":e,""===t.value?e:t.value}#Ae(e){const t=e.slot;t||this.fieldset.style.setProperty("--from","0"),"from"===t&&this.fieldset.style.setProperty("--from",this.#Le(this.edgeMin,e)),t&&"to"!==t||this.fieldset.style.setProperty("--to",this.#Le(this.edgeMax,e))}get componentHasError(){return this.invalid||this._hasInternalError}get errorText(){return this._showError?this.error||this._invalidMessage:""}_handleLabelSlotChange(e){const t=e.target.assignedElements().length>0;this._hasLabel=t||!!this.label,console.log("Label content changed, has label:",this._hasLabel)}get _label(){const e=this._hasLabel&&this.optional&&!this.required?B`<span class="w-slider__optional">${Ye._({id:"select.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W,t=this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W;return this.label?B`<legend class="w-slider__label"><slot id="label" name="label" @slotchange="${this._handleLabelSlotChange}">${this.label}</slot>${e} ${t}</legend>`:B`<slot id="label" name="label" @slotchange="${this._handleLabelSlotChange}"></slot>${e} ${t}`}helpTextSlotChange(){this.renderRoot.querySelector("slot[name=help-text]").assignedElements().length&&(this._hasHelpTextSlot=!0)}render(){return B`<fieldset id="fieldset" class="w-slider" @input="${this.#ee}" @focusout="${this.#Me}" @slidervalidity="${this.#Ve}" @thumbreset="${this.#Pe}" @keydown="${this.#k}" aria-invalid="${Fr(this.errorText?"true":void 0)}" ?disabled="${this.disabled}">${this._label}<slot class="w-slider__description" name="description"></slot>${this.markers?B`<div class="w-slider__markers"></div>`:W}<div class="w-slider__range"><div class="w-slider__active-range"></div></div><slot class="w-slider__slider" @slotchange="${this.#De}"></slot><slot class="w-slider__slider" name="from" @slotchange="${this.#De}"></slot><slot class="w-slider__slider" name="to" @slotchange="${this.#De}"></slot>${this.errorText?B`<p class="w-slider__error" aria-describes="fieldset">${this.errorText}</p>`:B`<p ?hidden="${!this.#p}" class="w-slider__help-text" aria-describes="fieldset">${this.helpText}<slot @slotchange="${this.helpTextSlotChange}" name="help-text"></slot></p>`}</fieldset>`}}yc([he({reflect:!0})],xc.prototype,"label",void 0),yc([he({type:String,reflect:!0})],xc.prototype,"tooltip",void 0),yc([he({type:Boolean,reflect:!0})],xc.prototype,"disabled",void 0),yc([he({type:Boolean,attribute:"open-ended"})],xc.prototype,"openEnded",void 0),yc([he({type:String,reflect:!0})],xc.prototype,"error",void 0),yc([he({type:String,reflect:!0,attribute:"help-text"})],xc.prototype,"helpText",void 0),yc([he({type:Boolean,reflect:!0}
150)],xc.prototype,"invalid",void 0),yc([he({type:Boolean,reflect:!0})],xc.prototype,"required",void 0),yc([he({type:Boolean,reflect:!0})],xc.prototype,"optional",void 0),yc([he({reflect:!0})],xc.prototype,"min",void 0),yc([he({reflect:!0})],xc.prototype,"max",void 0),yc([he({type:Number,reflect:!0})],xc.prototype,"markers",void 0),yc([he({type:Number,reflect:!0})],xc.prototype,"step",void 0),yc([he({reflect:!0})],xc.prototype,"suffix",void 0),yc([he({type:Boolean,reflect:!0,attribute:"hidden-textfield"})],xc.prototype,"hiddenTextfield",void 0),yc([he({attribute:!1})],xc.prototype,"valueFormatter",void 0),yc([he({attribute:!1})],xc.prototype,"tooltipFormatter",void 0),yc([he({attribute:!1})],xc.prototype,"labelFormatter",void 0),yc([ge("fieldset")],xc.prototype,"fieldset",void 0),yc([pe()],xc.prototype,"_invalidMessage",void 0),yc([pe()],xc.prototype,"_hasInternalError",void 0),yc([pe()],xc.prototype,"_showError",void 0),yc([pe()],xc.prototype,"_tabbableElements",void 0),yc([pe()],xc.prototype,"_hasLabel",void 0),yc([pe()],xc.prototype,"_hasHelpTextSlot",void 0),customElements.get("w-slider")||customElements.define("w-slider",xc);const kc=a`:host{--_snackbar-item-bg:var(--w-c-snackbar-item-bg,var(--w-color-tooltip-background-static));--_snackbar-item-action-bg-hover:var(--w-c-snackbar-item-action-bg-hover,var(--w-color-tooltip-background-static));--_snackbar-item-action-bg-active:var(--w-c-snackbar-item-action-bg-active,var(--w-color-tooltip-background-static));--_snackbar-item-border-radius:var(--w-c-snackbar-item-radius,8px);--_snackbar-item-box-shadow:var(--w-c-snackbar-item-box-shadow,var(--w-shadow-l));--_snackbar-item-color:var(--w-c-snackbar-item-color,var(--w-s-color-text-inverted-static));--_snackbar-item-action-color-hover:var(--w-c-snackbar-item-action-color-hover,var(--w-s-color-text-inverted-static));--_snackbar-item-action-color-active:var(--w-c-snackbar-item-action-color-active,var(--w-s-color-text-inverted-static));--_snackbar-item-max-width:var(--w-c-snackbar-item-max-width,480px);--_snackbar-item-min-width:var(--w-c-snackbar-item-min-width,328px);--_snackbar-item-padding:var(--w-c-snackbar-item-padding,8px);display:block}.animation-wrapper{border-radius:var(--_snackbar-item-border-radius)}[part=item]{background-color:var(--_snackbar-item-bg);border-radius:var(--_snackbar-item-border-radius);box-shadow:var(--_snackbar-item-box-shadow);color:var(--_snackbar-item-color);max-width:var(--_snackbar-item-max-width);min-width:var(--_snackbar-item-min-width);padding:var(--_snackbar-item-padding);grid-template:"icon message inline-action""block-action block-action block-action"/auto 1fr auto;align-items:center;column-gap:8px;display:grid}[part=item] w-button,[part=item] ::slotted(w-button){--w-c-button-bg:var(--_snackbar-item-bg);--w-c-button-bg-active:var(--_snackbar-item-action-bg-active);--w-c-button-bg-hover:var(--_snackbar-item-action-bg-hover);--w-c-button-color:var(--_snackbar-item-color);--w-c-button-color-active:var(--_snackbar-item-action-color-active);--w-c-button-color-hover:var(--_snackbar-item-action-color-hover)}[part=icon]{color:var(--_snackbar-item-color);grid-area:icon;padding-block:4px}[part=icon] ::slotted(w-icon){margin-inline-start:4px;display:block}[part=icon] ::slotted(w-icon[name=SuccessFilled]){color:var(--w-s-color-icon-positive)}[part=icon] ::slotted(w-icon[name=WarningFilled]){color:var(--w-s-color-icon-warning)}[part=icon] ::slotted(w-icon[name=ErrorFilled]){color:var(--w-s-color-icon-negative)}[part=icon] ::slotted(w-icon[name=InfoFilled]){color:var(--w-s-color-icon-info)}[part=message]{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s);grid-area:message;align-self:center;padding-block:7px}[part=action]{grid-area:inline-action;justify-content:flex-end;column-gap:2px;padding-inline-start:8px;display:flex}:host([action-placement=block]) [part=action]{grid-area:block-action}w-attention [slot=message]{font-size:var(--w-font-size-s);line-height:var(--w-line-height-s)}kbd{font-family:var(--w-font-family)}`;var _c,$c=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};!function(e){e[e.Short=4e3]="Short",e[e.Long=1e4]="Long",e[e.Infinite=12e7]="Infinite"}(_c||(_c={}));class Sc extends se{constructor(){super(...arguments),this.actionPlacement="inline",this.duration=_c.Short,this.hasAction=!1,this.#je=!1,this.#Re=_c.Short,this.#Ne=null,this.#Ie=null,this.#Fe=!1}static#e=this.styles=[Or,kc];#je;#Re;#Ne;#Ie;#Fe;connectedCallback(){if(super.connectedCallback(),this.duration!==_c.Infinite){const e=1e3;this.#Re=this.duration-e,this.#Ie=setInterval(()=>{this.#Fe||(this.#Re-=e,this.#Re<=0&&this.close())},e)}}disconnectedCallback(){this.#Ie&&clearInterval(this.#Ie)}async updated(){this.root&&(this.#je||(await this.updateComplete,il(this.root,()=>{this.#je=!0})))}close(){this.#Ne&&this.#Ne.focus(),this.#je&&this.root?nl(this.root,()=>{this.remove()}):this.remove()}#qe(e){this.#Ne||(this.#Fe=!0,e.relatedTarget&&e.relatedTarget.focu
150s&&(this.#Ne=e.relatedTarget))}#Be(e){(!e.relatedTarget||!this.shadowRoot?.host.contains(e.relatedTarget))&&(this.#Fe=!1,this.#Ne=null)}#He(){this.#Fe=!0}#We(){this.#Ne||(this.#Fe=!1)}#Ue(){const e=this.shadowRoot?.querySelector('slot[name="action"]');if(!e)return!1;return e.assignedElements().length>0}firstUpdated(){this.hasAction=this.#Ue()}render(){if(this.hasAction&&"true"===document.documentElement.dataset.wKeyboardinteraction){const e=window.navigator.userAgent.includes("Macintosh")?"â¥":"Alt";return B`<w-attention tooltip placement="top" distance="12" show><div class="animation-wrapper" slot="target"><div part="item" @mouseenter="${this.#He}" @mouseleave="${this.#We}" @focusin="${this.#qe}" @focusout="${this.#Be}"><div part="icon"><slot name="icon"></slot></div><div part="message"><slot></slot></div><div part="action"><slot name="action"></slot><slot name="close"></slot></div></div></div><span slot="message" aria-hidden="true"><kbd>${e}</kbd> + <kbd>Enter</kbd></span></w-attention>`}return B`<div class="animation-wrapper"><div part="item" @mouseenter="${this.#He}" @mouseleave="${this.#We}" @focusin="${this.#qe}" @focusout="${this.#Be}"><div part="icon"><slot name="icon"></slot></div><div part="message"><slot></slot></div><div part="action"><slot name="action"></slot><slot name="close"></slot></div></div></div>`}}$c([he({attribute:"action-placement",reflect:!0,useDefault:!0})],Sc.prototype,"actionPlacement",void 0),$c([he({type:Number,reflect:!0,useDefault:!0})],Sc.prototype,"duration",void 0),$c([ge(".animation-wrapper")],Sc.prototype,"root",void 0),$c([pe()],Sc.prototype,"hasAction",void 0),customElements.get("w-snackbar-item")||customElements.define("w-snackbar-item",Sc);const Ec=JSON.parse('{"snackbar.aria.close":["Dismiss message"]}'),Cc=JSON.parse('{"snackbar.aria.close":["Dismiss message"]}'),Oc=JSON.parse('{"snackbar.aria.close":["Dismiss message"]}'),zc=JSON.parse('{"snackbar.aria.close":["Dismiss message"]}'),Dc=JSON.parse('{"snackbar.aria.close":["Dismiss message"]}'),Ac=a`:host{pointer-events:none;--_snackbar-gap:var(--w-c-snackbar-container-gap,8px);--_snackbar-position-top:var(--w-c-snackbar-position-top,initial);--_snackbar-position-right:var(--w-c-snackbar-position-right,0);--_snackbar-position-bottom:var(--w-c-snackbar-position-bottom,16px);--_snackbar-position-left:var(--w-c-snackbar-position-left,0);--_snackbar-z-index:var(--w-c-snackbar-z-index,50);bottom:var(--_snackbar-position-bottom);left:var(--_snackbar-position-left);right:var(--_snackbar-position-right);top:var(--_snackbar-position-top);z-index:var(--_snackbar-z-index);position:fixed}[part=container]{gap:var(--_snackbar-gap);pointer-events:none;grid-template-rows:auto;justify-content:center;justify-items:center;margin-inline:auto;display:grid}::slotted(*){pointer-events:initial}`,Pc={canClose:!0,duration:_c.Short,variant:"neutral"};kr(Cc,zc,Oc,Ec,Dc);const Tc=/\s/;class Mc extends se{static#e=this.styles=[Or,Ac];constructor(){super(),this.internals=this.attachInternals(),this.internals.ariaLive="polite",this.internals.role="log",this._onKeydown=this._onKeydown.bind(this)}connectedCallback(){super.connectedCallback(),document.addEventListener("keydown",this._onKeydown)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("keydown",this._onKeydown)}_onKeydown(e){if("Escape"===e.key){const e=this.shadowRoot?.host.querySelector("w-snackbar-item:last-of-type");e&&e.close()}else if(e.altKey&&"Enter"===e.key){e.preventDefault();const t=this.shadowRoot?.host.querySelector("w-snackbar-item:last-of-type");if(console.log("Found item!"),t){const e=t.querySelector('w-button[slot="action"]');console.log("Found action!"),e&&(e.click(),console.log("Clicked!"))}}}create(e,t){void 0===t&&(t={});const r={...Pc,...t},o=document.createElement("w-snackbar-item");if(r.duration&&(o.duration=r.duration),o.innerText=e,"neutral"!==r.variant){const e=document.createElement("w-icon");switch(e.slot="icon",r.variant){case"positive":e.name="SuccessFilled";break;case"warning":e.name="WarningFilled";break;case"negative":e.name="ErrorFilled";break;case"info":e.name="InfoFilled"}o.prepend(e)}if(r.action){o.duration<_c.Long&&(o.duration=_c.Long);const e=document.createElement("w-button");e.slot="action",e.variant="utilityQuiet",e.small=!0;const{label:t,onclick:i,placement:n}=r.action;e.innerText=t;const a=document.createElement("span");a.classList.add("sr-only");const s=window.navigator.userAgent.includes("Macintosh")?"Option":"Alt";if(a.innerHTML=`<kbd>${s}</kbd> + <kbd>Enter</kbd>`,e.append(a),e.onclick=t=>{const r=i.call(e,t);return t.defaultPrevented||o.close(),r},n)o.actionPlacement=n;else{Tc.test(t)&&(o.actionPlacement="block")}o.append(e)}if(o.duration>
150_c.Long&&(r.canClose=!0),r.canClose){const e=document.createElement("w-button");e.slot="close",e.variant="utilityQuiet",e.small=!0,e.iconOnly=!0,"function"==typeof r.canClose?e.onclick=t=>{r.canClose.call(e,t),t.defaultPrevented||o.close()}:e.onclick=o.close.bind(o);const t=document.createElement("w-icon");t.name="Close",t.size="small",t.ariaLabel=Ye.t({id:"snackbar.aria.close",message:"Dismiss message",comment:"Accessibility label for the button that closes the snackbar/toast popup"}),e.append(t),o.append(e)}return this.shadowRoot?.host.prepend(o),o}render(){return B`<aside part="container"><slot></slot></aside>`}}customElements.get("w-snackbar")||customElements.define("w-snackbar",Mc);const Vc=JSON.parse('{"steps.aria.active":["Trinindikator aktiv cirkel"],"steps.aria.completed":["Trinindikator fuldført cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}'),Lc=JSON.parse('{"steps.aria.active":["Step indicator active circle"],"steps.aria.completed":["Step indicator completed circle"],"steps.aria.emptyCircle":["Empty circle"]}'),jc=JSON.parse('{"steps.aria.active":["Vaiheilmaisin aktiivinen ympyrä"],"steps.aria.completed":["Vaiheilmaisin valmis ympyrä"],"steps.aria.emptyCircle":["Tyhjä ympyrä"]}'),Rc=JSON.parse('{"steps.aria.active":["Stegindikator aktiv sirkel"],"steps.aria.completed":["Stegindikator hel sirkel"],"steps.aria.emptyCircle":["Tom sirkel"]}'),Nc=JSON.parse('{"steps.aria.active":["Stegindikator aktiv cirkel"],"steps.aria.completed":["Stegindikator fulländad cirkel"],"steps.aria.emptyCircle":["Tom cirkel"]}'),Ic=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.text-right{text-align:right}.border-2{border-width:2px}.rounded-full{border-radius:9999px}.flex{display:flex}.grid{display:grid}.flex-1{flex:1}.gap-x-8{column-gap:.8rem}.row-span-2{grid-row:span 2/span 2}.col-span-3{grid-column:span 3/span 3}.row-start-1{grid-row-start:1}.row-start-2{grid-row-start:2}.col-start-2{grid-column-start:2}.grid-flow-col{grid-auto-flow:column}.grid-rows-\\[20px_auto\\]{grid-template-rows:20px auto}.grid-rows-\\[auto_20px\\]{grid-template-rows:auto 20px}.grid-cols-\\[1fr_20px_1fr\\]{grid-template-columns:1fr 20px 1fr}.grid-cols-\\[1fr_20px\\]{grid-template-columns:1fr 20px}.grid-cols-\\[20px_1fr\\]{grid-template-columns:20px 1fr}.items-center{align-items:center}.justify-self-end{justify-self:end}.justify-self-center{justify-self:center}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.s-icon-inverted{color:var(--w-s-color-icon-inverted)}.s-border{border-color:var(--w-s-color-border)}.s-border-primary{border-color:var(--w-s-color-border-primary)}.h-2{height:.2rem}.h-20{height:2rem}.h-full{height:100%}.w-2{width:.2rem}.w-20{width:2rem}.w-full{width:100%}.last\\:mb-0:last-child{margin-bottom:0}.px-12{padding-left:1.2rem;padding-right:1.2rem}.pb-0{padding-bottom:0}.pb-32{padding-bottom:3.2rem}.invisible{visibility:hidden}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.duration-300{transition-duration:.3s}");var Fc=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const qc="group/step",Bc="group/stepv grid-rows-[20px_auto] grid grid-flow-col gap-x-8",Hc="group/steph grid-rows-[auto_20px] grid-cols-[1fr_20px_1fr] flex-1 grid items-center",Wc="grid-cols-[20px_1fr]",Uc="grid-cols-[1fr_20px] text-right",Jc="rounded-full border-2 h-20 w-20 transition-colors duration-300 s-icon-inverted",Yc="col-start-2",Kc="row-start-2 justify-self-end",Xc="s-border-primary s-bg-primary",Gc="s-border s-bg",Qc="transition-colors duration-300",Zc="w-2 h-full justify-self-center",eh="col-start-2",th="h-2 w-full row-start-2",rh="s-bg-disabled",oh="s-bg-primary",ih="last:mb-0",nh="row-span-2 pb-32",ah="col-span-3 px-12 row-start-1 text-center";class sh extends se{static#e=this.styles=[Or,Ic];constructor(){super(),this.active=!1,this.completed=!1,this._context={horizontal:!1,right:!1,isLast:!1,isFirst:!1}
150,this._internals=this.attachInternals(),kr(Lc,Rc,jc,Vc,Nc)}connectedCallback(){super.connectedCallback(),this._internals.role="listitem"}setContext(e){this._context=e}getAriaLabel(){return this.completed?Ye._({id:"steps.aria.completed",message:"Step indicator completed circle",comment:"Completed circle"}):this.active?Ye._({id:"steps.aria.active",message:"Step indicator active circle",comment:"Active circle"}):Ye._({id:"steps.aria.emptyCircle",message:"Empty circle",comment:"Empty circle"})}render(){const e=!this._context.horizontal,t=!this._context.right,r=this._context.isFirst,o=this._context.isLast,i=jr([qc,e?Bc:Hc,e?t?Wc:Uc:""]),n=jr([Qc,th,this.active||this.completed?oh:rh,r?"invisible":""]),a=jr([Jc,e?t?"":Yc:Kc,this.active||this.completed?Xc:Gc]),s=jr([Qc,e?Zc:th,e&&!t?eh:"",this.completed?oh:rh,o?"invisible":""]),l=jr([ih,e?nh:ah,o?"pb-0":""]);return B`<div class="${i}" style="${Fr(this._context.horizontal?"height: 100%;":void 0)}">${e?W:B`<div class="${n}"></div>`}<div class="${a}" role="img" aria-label="${this.getAriaLabel()}" aria-current="${Fr(this.active?"step":void 0)}">${this.completed?B`<w-icon name="Check" size="small" locale="${xr()}" data-testid="completed-icon" class="flex"></w-icon>`:W}</div><div class="${s}"></div><div class="${l}" style="${Fr(this._context.horizontal?"height: 100%;":void 0)}"><slot></slot></div></div>`}}Fc([he({type:Boolean,reflect:!0})],sh.prototype,"active",void 0),Fc([he({type:Boolean,reflect:!0})],sh.prototype,"completed",void 0),Fc([pe()],sh.prototype,"_context",void 0),customElements.get("w-step")||customElements.define("w-step",sh);const lh=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.flex{display:flex}.static{position:static}.w-full{width:100%}");var dh=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const ch="w-full",hh="flex";class ph extends se{constructor(){super(...arguments),this.horizontal=!1,this.right=!1}static#e=this.styles=[Or,lh];updated(){this.updateStepsContext()}updateStepsContext(){const e=this.querySelectorAll("w-step");e.forEach((t,r)=>{t.setContext({horizontal:this.horizontal,right:this.right,isLast:r===e.length-1,isFirst:0===r})})}render(){const e=jr([ch,this.horizontal&&hh]);return B`<div role="list" class="${e}"><slot></slot></div>`}}dh([he({type:Boolean,reflect:!0})],ph.prototype,"horizontal",void 0),dh([he({type:Boolean,reflect:!0})],ph.prototype,"right",void 0),customElements.get("w-step-indicator")||customElements.define("w-step-indicator",ph);const uh=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-\\[--w-s-color-border-strong\\]{background-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:bg-\\[--w-s-color-border-strong-hover\\]{background-color:var(--w-s-color-border-strong-hover)}.border{border-width:1px}.rounded-full{border-radius:9999px}.block{display:block}.inline-block{display:inline-block}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline{outline-style:solid}.left-0{left:0}.left-4{left:.4rem}.top-0{top:0}.top-4{top:.4rem}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled{background-color:var(--w-s-color-background-disabled)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-bg-primary{background-color:var(--w-s-color-background-primary)}.group:hover .group-hover\\:s-bg-hover{background-color:var(--w-s-color-background-hover)}.group:hover .group-hover\\:s-bg-primary-hover{background-color:var(--w-s-color-background-primary-hover)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.group:hover .group-hover\\:s-border-strong-hover{border-color:var(--w-s-color-border-strong-hover)}.h-16{height:1.6rem}.h-24{height:2.4rem}.h-full{height:100%}.w-16{width:1.6rem}.w-44{width:4.4rem}.w-full{width:100%}.cursor-pointer{cursor:pointer}.pointer-events-none{pointer-events:none}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.translate-x-20{--w-translate-x:2rem;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform-gpu{transform:translate3d(var(--w-translate-x), var(--w-translate-y), var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}.transition-transform{transition-property:transform;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}");var gh=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const bh="block relative h-24 w-44 cursor-pointer group focusable rounded-full",mh="pointer-events-none",vh="absolute top-0 left-0 h-full w-full rounded-full transition-colors",fh="s-bg-primary group-hover:s-bg-primary-hover",wh="s-bg border s-border-strong group-hover:s-bg-hover group-hover:s-border-strong-hover",yh="s-bg-disabled",xh="s-bg-disabled-subtle border s-border-disabled",kh="absolute transform-gpu h-16 w-16 top-4 left-4 rounded-full transition-transform",_h="translate-x-20",$h="s-bg",Sh="bg-[--w-s-color-border-strong] group-hover:bg-[--w-s-color-border-strong-hover]",Eh="s-bg-disabled-subtle",Ch="s-bg-disabled";class Oh extends(Ir(se)){constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.#Je=!1,this._handleHostClick=e=>{this.disabled||e.composedPath()[0]===this&&this._handleClick()},this._handleKeyDown=e=>{this.disabled||e.altKey||e.ctrlKey||e.metaKey||e.shiftKey||" "!==e.key&&"Enter"!==e.key||(e.preventDefault(),this._handleClick())}}static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};#Je;static#g=this.styles=[Or,uh,a`:host{display:inline-block}button:focus{outline:none}button:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}`];get _baseClasses(){return jr([bh,this.disabled&&mh])}get _trackClasses(){return jr([vh,this.disabled?this.checked?yh:xh:this.checked?fh:wh])}get _handleClasses(){return jr([kh,this.checked&&_h,this.disabled?this.checked?Eh:Ch:this.checked?$h:Sh])}_handleClick(){this.disabled||(this.checked=!this.checked,this.dispatchEvent(new CustomEvent("change",{detail:{checked:this.checked,value:this.value||null},bubbles:!0,composed:!0})))}_syncA11yState(){this.internals.ariaChecked=this.checked?"true":"false",this.internals.ariaDisabled=this.disabled?"true":null}connectedCallback(){this.#Je=this.checked,super.connectedCallback(),this.internals.role="switch";const e=this.getAttribute("aria-label");e&&(this.internals.ariaLabel=e),this.disabled||this.setValue(this.checked&&this.value?this.value:null),this._syncA11yState(),this.addEventListener("click",this._handleHostClick),this.addEventListener("keydown",this._handleKeyDown)}disconnectedCallback(){this.removeEventListener("click",this._handleHostClick),this.removeEventListener("keydown",this._handleKeyDown),super.disconnectedCallback()}willUpdate(e){e.has("checked")&&(this.disabled||this.setValue(this.checked&&this.value?this.value:null)),(e.has("checked")||e.has("disabled"))&&this._syncA11yState()}resetFormControl(){this.checked=this.#Je}render(){return B`<div><button type="button" role="none" tabindex="${this.disabled?-1:0}" class="${this._baseClasses}" ?disabled="${this.disabled}" @click="${this._handleClick}"><span data-testid="track" class="${this._trackClasses}"></span> <span data-testid="handle" class="${this._handleClasses}"></span></button></div>`}}gh([he({type:String,reflect:!0})],Oh.prototype,"name",void 0),gh([he({type:String,reflect:!0})],Oh.prototype,"value",void 0),gh([he({type:Boolean,reflect:!0})],Oh.prototype,"checked",void 0),gh([he({type:Boolean,reflect:!0})],Oh.prototype,"disabled",void 0),customElements.get("w-switch")||customElements.define("w-switch",Oh);const zh=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.text-center{text-align:center}.bg-transparent{background-color:#0000}.border-0{border-width:0}.border-b-4{border-bottom-width:4px}.border-transparent{border-color:#0000}
150.flex{display:flex}.grid{display:grid}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.gap-8{gap:.8rem}.outline{outline-style:solid}.items-center{align-items:center}.justify-center{justify-content:center}.static{position:static}.s-text-link{color:var(--w-s-color-text-link)}.s-text-subtle{color:var(--w-s-color-text-subtle)}.hover\\:s-text-link:hover{color:var(--w-s-color-text-link)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.hover\\:s-border-primary:hover{border-color:var(--w-s-color-border-primary)}.w-full{width:100%}.m-0{margin:0}.mx-auto{margin-left:auto;margin-right:auto}.p-16{padding:1.6rem}.pb-8{padding-bottom:.8rem}.cursor-pointer{cursor:pointer}.font-bold{font-weight:700}");var Dh=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Ah="focusable cursor-pointer text-center bg-transparent border-0 m-0 grid w-full items-center font-bold gap-8 antialias p-16 pb-8 border-b-4 bg-transparent border-transparent hover:s-text-link hover:s-border-primary",Ph="s-text-subtle",Th="s-text-link s-border-selected",Mh="mx-auto",Vh="flex items-center justify-center gap-8",Lh="content-underlined";class jh extends se{static#e=this.styles=[Or,zh,a`::slotted([slot=icon]){display:flex}:host(:focus-visible){outline:2px solid var(--w-s-color-border-focus,#1a73e8);outline-offset:var(--w-outline-offset,1px)}`];constructor(){super(),this._handleClick=e=>{e.tab=this},this.tabindex=0,this.active=!1,this.over=!1,this._internals=this.attachInternals()}get _computedAriaSelected(){return this._parentAriaSelected??this._ownAriaSelected}get _effectiveAriaControls(){return this._ariaControlsAttr||this.for||""}set ariaSelected(e){const t=this._ownAriaSelected;this._ownAriaSelected=e,this._internals.ariaSelected=this._computedAriaSelected??null,this.requestUpdate("ariaSelected",t)}get ariaSelected(){return this._computedAriaSelected??"false"}get _classes(){return jr([Ah,this.active||"true"===this.ariaSelected?Th:Ph])}get _hasIcon(){return null!==this.querySelector('[slot="icon"]')}connectedCallback(){super.connectedCallback(),this._internals.role="tab",this.syncAriaControls(),this.addEventListener("click",this._handleClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("click",this._handleClick)}updated(e){super.updated(e);const t=e;e.has("_parentAriaSelected")&&(this._internals.ariaSelected=this._computedAriaSelected??null),t.has("_ariaControlsAttr")&&this.syncAriaControls(),e.has("for")&&this.syncAriaControls(),e.has("active")&&this.hasAttribute("active")&&(this._internals.ariaSelected=this.active?"true":"false")}syncAriaControls(){const e=this._effectiveAriaControls,t=this.closest("w-tabs"),r=t?.querySelector(`w-tab-panel#${CSS.escape(e)}`)??this.ownerDocument?.getElementById(e)??null,o=this._internals;"ariaControlsElements"in o?o.ariaControlsElements=r?[r]:[]:"ariaControls"in o&&(o.ariaControls=e||null)}render(){const e=this._hasIcon;return B`<div class="${this._classes}" style="height:100%">${e?this.over?B`<span class="${Mh}"><slot name="icon"></slot></span><span class="${Lh}"><slot></slot></span>`:B`<div class="${Vh}"><slot name="icon"></slot><slot></slot></div>`:B`<span class="${Lh}"><slot></slot></span>`}</div>`}}Dh([he({type:Number})],jh.prototype,"tabindex",void 0),Dh([he({reflect:!0})],jh.prototype,"for",void 0),Dh([he({attribute:"aria-controls"})],jh.prototype,"_ariaControlsAttr",void 0),Dh([he({attribute:!1})],jh.prototype,"_parentAriaSelected",void 0),Dh([he({attribute:"aria-selected"})],jh.prototype,"ariaSelected",null),Dh([he({type:Boolean,reflect:!0})],jh.prototype,"active",void 0),Dh([he({type:Boolean,reflect:!0})],jh.prototype,"over",void 0),customElements.get("w-tab")||customElements.define("w-tab",jh);const Rh=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.border-b{border-bottom-width:1px}.border-b-4{border-bottom-width:4px}.inline-grid{display:inline-grid}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}.grid-cols-6{grid-template-columns:repeat(6,minmax(0,1fr))}.grid-cols-7{grid-template-columns:repeat(7,minmax(0,1fr))}.grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}.grid-cols-9{grid-template-columns:repeat(9,minmax(0,1fr))}.-bottom-0{bottom:0}.absolute{position:absolute}.relative{position:relative}.static{position:static}.s-border{border-color:var(--w-s-color-border)}.s-border-selected{border-color:var(--w-s-color-border-selected)}.-mb-1{margin-bottom:-.1rem}.mb-32{margin-bottom:3.2rem}.resize{resize:both}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}");var Nh=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};class Ih extends se{static#e=this.styles=[Or,Rh,a`:host{display:block}:host([hidden]){display:block!important}.panel-content{display:none}.panel-content[data-active]{display:block}`];constructor(){super(),this._internals=this.attachInternals()}set active(e){this._ownActive=e}get active(){return this._parentActive??this._ownActive??!1}connectedCallback(){super.connectedCallback(),this._internals.role="tabpanel",this.syncA11yState()}updated(){this.syncA11yState()}syncA11yState(){const e=this._internals;e.ariaLabelledBy=this._parentAriaLabelledBy||null,e.ariaHidden=this.active?"false":"true"}render(){return B`<div class="panel-content" ?data-active="${this.active}"><slot></slot></div>`}}Nh([he({attribute:"id",reflect:!0})],Ih.prototype,"id",void 0),Nh([he({type:Boolean})],Ih.prototype,"active",null),Nh([he({attribute:!1})],Ih.prototype,"_parentActive",void 0),Nh([he({attribute:!1})],Ih.prototype,"_parentAriaLabelledBy",void 0),customElements.get("w-tab-panel")||customElements.define("w-tab-panel",Ih);function Fh(e){return void 0===e&&(e=""),`${e}${(e=>{void 0===e&&(e=21);let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t})()}`}var qh=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const Bh="border-b s-border mb-32",Hh="inline-grid relative -mb-1",Wh="absolute s-border-selected -bottom-0 border-b-4 transition-all",Uh={cols1:"grid-cols-1",cols2:"grid-cols-2",cols3:"grid-cols-3",cols4:"grid-cols-4",cols5:"grid-cols-5",cols6:"grid-cols-6",cols7:"grid-cols-7",cols8:"grid-cols-8",cols9:"grid-cols-9"};class Jh extends se{static#e=this.styles=[Or,Rh];constructor(){super(),this._uniqueId=Fh(),this._activeTabFor="",this._updateSelectionIndicatorDebounced=function(e,t,r){let o;return void 0===r&&(r=!1),function(){for(var i=arguments.length,n=new Array(i),a=0;a<i;a++)n[a]=arguments[a];const s=r&&!o;o&&clearTimeout(o),o=setTimeout(()=>{o=null,r||e(...n)},t),s&&e(...n)}}(this.updateSelectionIndicator.bind(this),100),this._assignSlots=()=>
150{[...this.children].forEach(e=>{e instanceof HTMLElement&&("W-TAB"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","tabs"),"W-TAB-PANEL"!==e.tagName||e.getAttribute("slot")||e.setAttribute("slot","panels"))}),this.requestUpdate()},this._handleTabClick=e=>{const t=e.tab?.for;t&&t!==this._activeTabFor&&(this.active=t,this._activeTabFor=t,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())},this._handleKeyDown=e=>{if(e.altKey||e.ctrlKey||e.shiftKey||!["ArrowLeft","ArrowRight","Home","End"].includes(e.key))return;const t=[...this.querySelectorAll("w-tab")],r=t.findIndex(e=>e.for===this._activeTabFor);if(-1===r)return;let o=r;switch(e.key){case"Home":o=0;break;case"End":o=t.length-1;break;case"ArrowLeft":o=Math.max(0,r-1);break;case"ArrowRight":o=Math.min(t.length-1,r+1)}if(o!==r){e.preventDefault();const r=t[o],i=r.for;i&&(this.active=i,this._activeTabFor=i,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange(),r.focus())}},this.addEventListener("click",this._handleTabClick)}connectedCallback(){super.connectedCallback(),this.active&&(this._activeTabFor=this.active),this._assignSlots(),"undefined"!=typeof ResizeObserver&&(this._resizeObserver=new ResizeObserver(()=>{this._updateSelectionIndicatorDebounced()}),this._resizeObserver.observe(this)),window.addEventListener("resize",this._updateSelectionIndicatorDebounced)}disconnectedCallback(){super.disconnectedCallback(),this._resizeObserver&&this._resizeObserver.disconnect(),window.removeEventListener("resize",this._updateSelectionIndicatorDebounced),this.removeEventListener("click",this._handleTabClick)}firstUpdated(){this._assignSlots(),this._initializeActiveTab(),this.updateSelectionIndicator(),this.updatePanels()}updated(e){e.has("active")&&this.active!==this._activeTabFor&&(this._activeTabFor=this.active,this.updateSelectionIndicator(),this.updatePanels(),this._notifyTabChange())}get tabs(){const e=this.shadowRoot?.querySelector('slot[name="tabs"]');if(!e)return[];return e.assignedElements({flatten:!0}).filter(e=>"w-tab"===e.tagName.toLowerCase())}get activeTab(){return this.tabs.filter(e=>e.for===this._activeTabFor)[0]}_initializeActiveTab(){this.activeTab?this._activeTabFor=this.activeTab.getAttribute("for")||"":this.tabs.length>0&&(this._activeTabFor=this.tabs[0].getAttribute("for")||""),this._activeTabFor&&this._activeTabFor!==this.active&&(this.active=this._activeTabFor)}_notifyTabChange(){this.dispatchEvent(new CustomEvent("change",{detail:{panelId:this._activeTabFor},bubbles:!0,composed:!0}))}updateSelectionIndicator(){requestAnimationFrame(()=>{if(!this.tabList||!this.selectionIndicator)return;if(!this.activeTab)return;const e=this.tabList.getBoundingClientRect(),t=this.activeTab.getBoundingClientRect(),r=t.left-e.left,o=t.width;this.selectionIndicator.style.left=`${r}px`,this.selectionIndicator.style.width=`${o}px`})}updatePanels(){const e=[...this.querySelectorAll("w-tab")];e.forEach((e,t)=>{e.id||(e.id=`w-tab-${this._uniqueId}-${t}`);const r=e.for===this._activeTabFor;e.tabIndex=r?0:-1,e._parentAriaSelected=r?"true":"false"});[...this.querySelectorAll("w-tab-panel")].forEach(t=>{const r=e.find(e=>e.for===t.id);r&&(t._parentAriaLabelledBy=r.id),t._parentActive=t.id===this._activeTabFor})}get _tabCount(){return this.querySelectorAll("w-tab").length}get _gridClass(){const e=Math.min(this._tabCount,9);return Uh[`cols${e}`]||Uh.cols1}render(){const e=jr(Bh),t=jr([Hh,this._gridClass]);return B`<div class="${e}"><div role="tablist" class="${t}
150" @keydown="${this._handleKeyDown}"><slot name="tabs" @slotchange="${this._assignSlots}"></slot><span class="selection-indicator ${Wh}" data-testid="selection-indicator"></span></div></div><slot name="panels" @slotchange="${this._assignSlots}"></slot><slot @slotchange="${this._assignSlots}"></slot>`}}qh([he({reflect:!0})],Jh.prototype,"active",void 0),qh([ge('[role="tablist"]')],Jh.prototype,"tabList",void 0),qh([ge(".selection-indicator")],Jh.prototype,"selectionIndicator",void 0),qh([pe()],Jh.prototype,"_activeTabFor",void 0),customElements.get("w-tabs")||customElements.define("w-tabs",Jh);const Yh=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.focus\\:\\[--w-outline-offset\\:-2px\\]:focus{--w-outline-offset:-2px}.bg-transparent{background-color:#0000}.border-1{border-width:1px}.rounded-4{border-radius:4px}.caret-current{caret-color:currentColor}.block{display:block}.inline{display:inline}.focusable:focus{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:focus-visible{outline:2px solid var(--w-s-color-border-focus);outline-offset:var(--w-outline-offset,1px)}.focusable:not(:focus-visible){outline:none}.outline-\\[--w-s-color-border-negative\\]\\!{outline-color:var(--w-s-color-border-negative)!important}.fixed{position:fixed}.static{position:static}.s-bg{background-color:var(--w-s-color-background)}.s-bg-disabled-subtle{background-color:var(--w-s-color-background-disabled-subtle)}.s-text{color:var(--w-s-color-text)}.s-text-disabled{color:var(--w-s-color-text-disabled)}.s-text-negative{color:var(--w-s-color-text-negative)}.placeholder\\:s-text-placeholder::placeholder{color:var(--w-s-color-text-placeholder)}.s-border-disabled{border-color:var(--w-s-color-border-disabled)}.s-border-negative{border-color:var(--w-s-color-border-negative)}.s-border-strong{border-color:var(--w-s-color-border-strong)}.hover\\:s-border-negative-hover:hover{border-color:var(--w-s-color-border-negative-hover)}.hover\\:s-border-strong-hover:hover{border-color:var(--w-s-color-border-strong-hover)}.active\\:s-border-selected:active{border-color:var(--w-s-color-border-selected)}.w-full{width:100%}.min-h-\\[42\\]{min-height:4.2rem}.mb-0{margin-bottom:0}.px-8{padding-left:.8rem;padding-right:.8rem}.py-12{padding-top:1.2rem;padding-bottom:1.2rem}.pl-0{padding-left:0}.pr-40{padding-right:4rem}.pl-\\[var\\(--w-prefix-width\\,_40px\\)\\]{padding-left:var(--w-prefix-width,40px)}.visible{visibility:visible}.pointer-events-none{pointer-events:none}.resize{resize:both}.resize-none{resize:none}.text-m{font-size:var(--w-font-size-m);line-height:var(--w-line-height-m)}.leading-m{line-height:var(--w-line-height-m)}@media (min-width:480px){.sm\\:min-h-\\[45\\]{min-height:4.5rem}}"),Kh=a`label{--_color:var(--w-c-input-label-color,var(--w-s-color-text));--_font-size:var(--w-c-input-label-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-label-line-height,var(--w-line-height-s));--_font-weight:var(--w-c-input-label-font-weight,700);--_padding-bottom:var(--w-c-input-label-padding-bottom,.4rem);--_cursor:var(--w-c-input-label-cursor,pointer);--_display:var(--w-c-input-label-display,block);display:var(--_display);font-size:var(--_font-size);line-height:var(--_line-height);font-weight:var(--_font-weight);padding-bottom:var(--_padding-bottom);cursor:var(--_cursor);color:var(--_color);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:relative}label span{--_padding-left:var(--w-c-input-optional-padding-left,.8rem);--_font-weight:var(--w-c-input-optional-font-weight,400);--_font-size:var(--w-c-input-optional-font-size,var(--w-font-size-s));--_line-height:var(--w-c-input-optional-line-height,var(--w-line-height-s));--_color:var(--w-c-input-optional-color,var(--w-s-color-text-subtle));padding-left:var(--_padding-left);font-weight:var(--_font-weight);font-size:var(--_font-size);line-height:var(--_line-height);color:var(--_color)}[part=tooltip-target]{appearance:none;vertical-align:text-top;background:0 0;border:none;height:16px;margin:0 0 0 4px;padding:0}w-tooltip{display:inline-block}`,Xh=a`:host{--_help-text-color:var(--w-c-input-help-text-color,var(--w-s-color-text-subtle));--_help-text-font-size:var(--w-c-input-help-text-font-size,var(--w-font-size-xs));--_help-text-line-height:var(--w-c-input-help-text-line-height,var(--w-line-height-xs));--_help-text-margin-top:var(--w-c-input-help-text-margin-top,.4rem);--_help-text-display:var(--w-c-input-help-text-display,block)}:host([invalid]){--_help-text-color:var(--w-c-input-help-text-color-invalid,var(--w-s-color-text-negative))}.help-text{font-size:var(--_help-text-font-size);line-height:var(--_help-text-line-height);margin-top:var(--_help-text-margin-top);display:var(--_help-text-display);color:var(--_help-text-color)}
150`,Gh=JSON.parse('{"textarea.label.optional":["Valgfri"],"textarea.validation.invalid":["Angiv en gyldig værdi."],"textarea.validation.tooLong":["Gør teksten kortere til højst ",["maxLength"]," tegn (du bruger i øjeblikket ",["currentLength"]," tegn)."],"textarea.validation.tooShort":["Gør teksten længere til mindst ",["minLength"]," tegn (du bruger i øjeblikket ",["currentLength"]," tegn)."],"textarea.validation.valueMissing":["Udfyld dette felt."]}'),Qh=JSON.parse('{"textarea.label.optional":["Optional"],"textarea.validation.invalid":["Please enter a valid value."],"textarea.validation.tooLong":["Please shorten this text to ",["maxLength"]," characters or less (you are currently using ",["currentLength"]," characters)."],"textarea.validation.tooShort":["Please lengthen this text to ",["minLength"]," characters or more (you are currently using ",["currentLength"]," characters)."],"textarea.validation.valueMissing":["Please fill out this field."]}'),Zh=JSON.parse('{"textarea.label.optional":["Valinnainen"],"textarea.validation.invalid":["Anna kelvollinen arvo."],"textarea.validation.tooLong":["Lyhennä teksti enintään ",["maxLength"]," merkkiin (käytät tällä hetkellä ",["currentLength"]," merkkiä)."],"textarea.validation.tooShort":["Pidennä tekstiä vähintään ",["minLength"]," merkkiin (käytät tällä hetkellä ",["currentLength"]," merkkiä)."],"textarea.validation.valueMissing":["Täytä tämä kenttä."]}'),ep=JSON.parse('{"textarea.label.optional":["Valgfri"],"textarea.validation.invalid":["Angi en gyldig verdi."],"textarea.validation.tooLong":["Gjør teksten kortere til høyst ",["maxLength"]," tegn (du bruker for øyeblikket ",["currentLength"]," tegn)."],"textarea.validation.tooShort":["Gjør teksten lengre til minst ",["minLength"]," tegn (du bruker for øyeblikket ",["currentLength"]," tegn)."],"textarea.validation.valueMissing":["Fyll ut dette feltet."]}'),tp=JSON.parse('{"textarea.label.optional":["Valfritt"],"textarea.validation.invalid":["Ange ett giltigt värde."],"textarea.validation.tooLong":["Gör texten kortare till högst ",["maxLength"]," tecken (du använder för närvarande ",["currentLength"]," tecken)."],"textarea.validation.tooShort":["Gör texten längre till minst ",["minLength"]," tecken (du använder för närvarande ",["currentLength"]," tecken)."],"textarea.validation.valueMissing":["Fyll i det här fältet."]}');var rp=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const op="block text-m leading-m mb-0 px-8 py-12 rounded-4 w-full focusable focus:[--w-outline-offset:-2px] caret-current",ip="border-1 s-text s-bg s-border-strong hover:s-border-strong-hover active:s-border-selected",np="border-1 s-text-disabled s-bg-disabled-subtle s-border-disabled pointer-events-none",ap="border-1 s-text-negative s-bg s-border-negative hover:s-border-negative-hover outline-[--w-s-color-border-negative]!",sp="pl-0 bg-transparent pointer-events-none",lp="placeholder:s-text-placeholder",dp="min-h-[42] sm:min-h-[45]",cp="resize-none";class hp extends(Ir(se)){static#e=this.shadowRootOptions={...se.shadowRootOptions,delegatesFocus:!0};get#p(){return void 0!==this.helpText||this._hasHelpTextSlot}#h;#ae;#se;#f;#Q;constructor(){super(),this.disabled=!1,this.invalid=!1,this.readOnly=!1,this.readonly=!1,this.required=!1,this.optional=!1,this.minHeight=Number.NEGATIVE_INFINITY,this.maxHeight=Number.POSITIVE_INFINITY,this._hasHelpTextSlot=!1,this.#h=void 0,this.#ae=!1,this.#se=void 0,this.#f=!1,this.#Q="",this.#w=e=>{e.preventDefault(),this.#f=!0,this.#x()},kr(Qh,ep,Zh,Gh,tp)}updated(e){e.has("value")&&void 0!==this.value&&this.setValue(this.value),(e.has("value")||e.has("required")||e.has("disabled")||e.has("minLength")||e.has("maxLength"))&&this.#x()}resetFormControl(){this.value=this.#h,this.#f=!1,this.#le(),this.#x()}get validationMessage(){return this.internals.validationMessage}get validity(){return this.internals.validity}checkValidity(){return this.#x(),this.internals.checkValidity()}reportValidity(){return this.#f=!0,this.#x(),this.internals.checkValidity()}setCustomValidity(e){this.#Q=e,e?(this.#x(),this.#de(e)):(this.#le(),this.#x())}#de(e){this.#ae||(this.#se=this.helpText),this.#ae=!0,this.invalid=!0,this.helpText=e}#le(){this.#ae&&(this.invalid=!1,this.helpText=this.#se,this.#se=void 0,this.#ae=!1)}#x(){if(!this._textarea)return;if(this.disabled)return this.internals.setValidity({}),void this.#le();const e=this._textarea.validity,t=this.value??this._textarea.value??"",r=t.length>0&&"number"==typeof this.minLength&&t.length<this.minLength,o="number"==typeof this.maxLength&&t.length>this.maxLength,i={valueMissing:e.valueMissing,tooShort:e.tooShort||r,tooLong:e.tooLong||o,customError:""!==this.#Q};if(Object.values(i).some(Boolean)){const e=this.#Ye(i,t.length);return this.internals.setValidity(i,e,this._textarea),void(this.#f&&this.#de(e))}this.internals.setValidity({}),this.#le()}#Ye(e,t){return e.customError&&this.#Q?this.#Q:e.valueMissing?Ye._({id:"textarea.validation.valueMissing",message:"Please fill out this field.",comment:"Validation message shown when textarea value is required"}
150):e.tooShort&&"number"==typeof this.minLength?Ye._({id:"textarea.validation.tooShort",message:"Please lengthen this text to {minLength} characters or more (you are currently using {currentLength} characters).",comment:"Validation message shown when textarea value is too short",values:{minLength:this.minLength,currentLength:t}}):e.tooLong&&"number"==typeof this.maxLength?Ye._({id:"textarea.validation.tooLong",message:"Please shorten this text to {maxLength} characters or less (you are currently using {currentLength} characters).",comment:"Validation message shown when textarea value is too long",values:{maxLength:this.maxLength,currentLength:t}}):Ye._({id:"textarea.validation.invalid",message:"Please enter a valid value.",comment:"Fallback validation message for textarea"})}static#g=this.styles=[Or,Yh,Kh,Xh];get _textareaStyles(){return jr([op,dp,!!this.placeholder&&lp,!this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&ip,this.invalid&&!this.disabled&&!(this.readonly||this.readOnly)&&ap,!this.invalid&&this.disabled&&!(this.readonly||this.readOnly)&&np,!this.invalid&&!this.disabled&&(this.readonly||this.readOnly)&&sp,this.maxRows&&cp])}get _helptextstyles(){return"help-text"}get _helpId(){if(this.#p)return`${this._id}__hint`}get _id(){return"textarea"}get _error(){if(this.invalid&&this._helpId)return this._helpId}async connectedCallback(){if(super.connectedCallback(),this.#h=this.value,void 0!==this.value&&this.setValue(this.value),this.addEventListener("invalid",this.#w),await this.updateComplete,this.value||this.minRows){const e=this.shadowRoot?.querySelector("textarea");e&&this.#Ke(e)}}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("invalid",this.#w)}firstUpdated(e){super.firstUpdated(e),this.#x()}handler(e){const t=e.currentTarget;this.value=t.value,this.#Ke(t)}#Xe(e){this.dispatchEvent(new e.constructor(e.type,e))}#Ge(){this.#f=!0,this.#x()}#w;#Ke(e){const t=getComputedStyle(e),r=Number.parseFloat(t.getPropertyValue("border-top-width")),o=Number.parseFloat(t.getPropertyValue("border-bottom-width")),i=Number.parseFloat(t.getPropertyValue("line-height")),n=Number.parseFloat(t.getPropertyValue("padding-top"))+Number.parseFloat(t.getPropertyValue("padding-bottom"))+o+r;this.minRows&&(this.minHeight=i*this.minRows+n),this.maxRows&&(this.maxHeight=i*this.maxRows+n);const a=e.scrollHeight+r+o,s=Math.min(this.maxHeight,Math.max(this.minHeight,a));e.style.setProperty("height",s+"px")}helpTextSlotChange(){const e=this.renderRoot.querySelector("slot[name=help-text]");this._hasHelpTextSlot=e.assignedElements().length>0}render(){return B`${this.label?B`<label for="${this._id}">${this.label} ${this.optional&&!this.required?B`<span>${Ye._({id:"textarea.label.optional",message:"Optional",comment:"Shown behind label when marked as optional"})}</span>`:W} ${this.tooltip?B`<button id="tooltip-target" part="tooltip-target" aria-describedby="tooltip"><w-icon name="Info" size="small"></w-icon></button><w-tooltip for="tooltip-target" id="tooltip" exportparts="tooltip, arrow, beak, hover-bridge">${this.tooltip}</w-tooltip>`:W}</label>`:W} <textarea part="input" id="${this._id}" class="${this._textareaStyles}" name="${Fr(this.name)}" placeholder="${Fr(this.placeholder)}" .value="${this.value||""}" aria-describedby="${Fr(this._helpId||(this.ariaDescription?"aria-description":void 0))}" aria-errormessage="${Fr(this._error)}" aria-invalid="${Fr(this.invalid?"true":void 0)}" maxlength="${Fr(this.maxLength)}" minlength="${Fr(this.minLength)}" ?disabled="${this.disabled}" ?readonly="${this.readonly||this.readOnly}" ?required="${this.required}" @input="${this.handler}" @blur="${this.#Ge}" @change="${this.#Xe}"> 151 </textarea><div ?hidden="${!this.#p}" class="${this._helptextstyles}" id="${Fr(this._helpId)}">${this.helpText}<slot @slotchange="${this.helpTextSlotChange}" name="help-text"></slot></div>`}}rp([he({type:Boolean,reflect:!0})],hp.prototype,"disabled",void 0),rp([he({type:Boolean,reflect:!0})],hp.prototype,"invalid",void 0),rp([he({type:String,reflect:!0})],hp.prototype,"label",void 0),rp([he({type:String,reflect:!0,attribute:"help-text"})],hp.prototype,"helpText",void 0),rp([he({type:Number,reflect:!0,attribute:"maximum-rows"})],hp.prototype,"maxRows",void 0),rp([he({type:Number,reflect:!0,attribute:"minimum-rows"})],hp.prototype,"minRows",void 0),rp([he({type:Number,reflect:!0,attribute:"maxlength"})],hp.prototype,"maxLength",void 0),rp([he({type:Number,reflect:!0,attribute:"minlength"})],hp.prototype,"minLength",void 0),rp([he({type:String,reflect:!0})],hp.prototype,"name",void 0),rp([he({type:String,reflect:!0})],hp.prototype,"placeholder",void 0),rp([he({type:Boolean,reflect:!0,attribute:"read-only"})],hp.prototype,"readOnly",void 0),rp([he({type:Boolean,reflect:!0})],hp.prototype,"readonly",void 0),rp([he({type:Boolean,reflect:!0})],hp.prototype,"required",void 0),rp([he({type:String,reflect:!0})],hp.prototype,"tooltip",void 0),rp([he({type:String,reflect:!0})],hp.prototype,"value",void 0),rp([he({type:Boolean,reflect:!0}
151)],hp.prototype,"optional",void 0),rp([pe()],hp.prototype,"minHeight",void 0),rp([pe()],hp.prototype,"maxHeight",void 0),rp([ge("textarea")],hp.prototype,"_textarea",void 0),rp([pe()],hp.prototype,"_hasHelpTextSlot",void 0),customElements.get("w-textarea")||customElements.define("w-textarea",hp) 152/** 153 * @license 154 * Copyright 2021 Google LLC 155 * SPDX-License-Identifier: BSD-3-Clause 156 */;const pp=JSON.parse('{"toast.aria.error":["Fejl"],"toast.aria.successful":["Fuldført"],"toast.aria.warning":["Advarsel"]}'),up=JSON.parse('{"toast.aria.error":["Error"],"toast.aria.successful":["Successful"],"toast.aria.warning":["Warning"]}'),gp=JSON.parse('{"toast.aria.error":["Virhe"],"toast.aria.successful":["Onnistui"],"toast.aria.warning":["Varoitus"]}'),bp=JSON.parse('{"toast.aria.error":["Feil"],"toast.aria.successful":["Vellykket"],"toast.aria.warning":["Advarsel"]}'),mp=JSON.parse('{"toast.aria.error":["Fel"],"toast.aria.successful":["Genomfört"],"toast.aria.warning":["Varning"]}'),vp=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.bg-transparent{background-color:#0000}.border-2{border-width:2px}.rounded-8{border-radius:8px}.rounded-full{border-radius:9999px}.block{display:block}.flex{display:flex}.shrink-0{flex-shrink:0}.overflow-hidden{overflow:hidden}.self-center{align-self:center}.relative{position:relative}.static{position:static}.s-bg-negative-subtle{background-color:var(--w-s-color-background-negative-subtle)}.s-bg-positive-subtle{background-color:var(--w-s-color-background-positive-subtle)}.s-bg-warning-subtle{background-color:var(--w-s-color-background-warning-subtle)}.s-text{color:var(--w-s-color-text)}.s-icon{color:var(--w-s-color-icon)}.s-icon-negative{color:var(--w-s-color-icon-negative)}.s-icon-positive{color:var(--w-s-color-icon-positive)}.s-icon-warning{color:var(--w-s-color-icon-warning)}.hover\\:s-icon-hover:hover{color:var(--w-s-color-icon-hover)}.active\\:s-icon-active:active{color:var(--w-s-color-icon-active)}.s-border-negative-subtle{border-color:var(--w-s-color-border-negative-subtle)}.s-border-positive-subtle{border-color:var(--w-s-color-border-positive-subtle)}.s-border-warning-subtle{border-color:var(--w-s-color-border-warning-subtle)}.w-full{width:100%}.h-\\[16px\\]{height:16px}.w-\\[16px\\]{width:16px}.last-child\\:mb-0>:last-child{margin-bottom:0}.ml-auto{margin-left:auto}.mr-8{margin-right:.8rem}.mt-16{margin-top:1.6rem}.m-\\[8px\\]{margin:8px}.p-8{padding:.8rem}.py-4{padding-top:.4rem;padding-bottom:.4rem}.p-\\[8px\\]{padding:8px}.pointer-events-auto{pointer-events:auto}.transition-all{transition-property:all;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}"),fp="undefined"!=typeof window;function wp(){return customElements.get("w-toast-container")}function yp(e,t){if(!fp)return;const r=wp().init(),o={id:Date.now().toString(36)+Math.random().toString(36).slice(2,5),text:e,duration:5e3,type:"success",...t};return r.set(o),o}function xp(e){if(!fp)return;return wp().init().del(e)}function kp(e,t){if(!fp)return;const r=wp().init();return r.set({...r.get(e),...t}),r.get(e)}var _p=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const $p="relative overflow-hidden w-full",Sp="flex group p-8 mt-16 rounded-8 border-2 pointer-events-auto transition-all",Ep="s-bg-positive-subtle s-border-positive-subtle s-text",Cp="s-bg-warning-subtle s-border-warning-subtle s-text",Op="s-bg-negative-subtle s-border-negative-subtle s-text",zp="shrink-0 rounded-full w-[16px] h-[16px] m-[8px]",Dp="s-icon-positive",Ap="s-icon-warning",Pp="s-icon-negative",Tp="self-center mr-8 py-4 last-child:mb-0";class Mp extends se{static#e=this.styles=[Or,vp,a`:host{display:block}`];constructor(){super(),this.type="success",this.text="",this.canclose=!1,this._expanded=!1,kr(up,bp,gp,pp,mp),this.id||(this.id=Date.now().toString(36)+Math.random().toString(36).slice(2,5))}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback()}updated(){!this._expanded&&this._wrapper&&il(this._wrapper,()=>this._expanded=!0)}get#Qe(){const e=this.type;return jr([Sp,"success"===e&&Ep,"warning"===e&&Cp,"error"===e&&Op])}get#Ze(){const e=this.type;return jr([zp,"success"===e&&Dp,"warning"===e&&Ap,"error"===e&&Pp]
156)}get _wrapper(){return this.renderRoot?.querySelector("section")??null}get _warning(){return"warning"===this.type}get _error(){return"error"===(this.type||"success")}get _role(){return this._error||this._warning?"alert":"status"}get _typeLabel(){return this._warning?Ye._({id:"toast.aria.warning",message:"Warning",comment:"Default screenreader message for warning in toast component"}):this._error?Ye._({id:"toast.aria.error",message:"Error",comment:"Default screenreader message for error in toast component"}):Ye._({id:"toast.aria.successful",message:"Successful",comment:"Default screenreader message for successful in toast component"})}get _iconMarkup(){const e=xr();return this._warning?B`<w-icon name="Warning" size="small" locale="${e}" class="flex"></w-icon>`:this._error?B`<w-icon name="Error" size="small" locale="${e}" class="flex"></w-icon>`:B`<w-icon name="Success" size="small" locale="${e}" class="flex"></w-icon>`}async collapse(){return new Promise(e=>{this._expanded&&this._wrapper?nl(this._wrapper,e):e()})}close(){const e=new CustomEvent("close",{detail:{id:this.id},bubbles:!0,composed:!0});this.updateComplete.then(()=>this.dispatchEvent(e))}render(){return this.text?B`<section class="${$p}" aria-label="${this._typeLabel}"><div class="${this.#Qe}"><div class="${this.#Ze}">${this._iconMarkup}</div><div role="${this._role}" class="${Tp}"><p>${this.text}</p></div>${function(e,t,r){return e?t(e):r?.(e)}(!0===this.canclose,()=>B`<w-button variant="pill" small="" @click="${this.close}"><w-icon name="Close" size="small" locale="${xr()}" style="display:flex" class="flex"></w-icon></w-button>`)}</div></section>`:B``}}_p([he({type:String,attribute:!0,reflect:!0})],Mp.prototype,"id",void 0),_p([he({type:String,attribute:!0,reflect:!0,useDefault:!0})],Mp.prototype,"type",void 0),_p([he({type:String,attribute:!0,reflect:!0})],Mp.prototype,"text",void 0),_p([he({type:Boolean,attribute:!0,reflect:!0})],Mp.prototype,"canclose",void 0),_p([pe()],Mp.prototype,"_expanded",void 0),customElements.get("w-toast")||customElements.define("w-toast",Mp);const Vp=n("*,:before,:after{--w-rotate:0;--w-rotate-x:0;--w-rotate-y:0;--w-rotate-z:0;--w-scale-x:1;--w-scale-y:1;--w-scale-z:1;--w-skew-x:0;--w-skew-y:0;--w-translate-x:0;--w-translate-y:0;--w-translate-z:0}.block{display:block}.grid{display:grid}.auto-rows-auto{grid-auto-rows:auto}.bottom-16{bottom:1.6rem}.left-0{left:0}.right-0{right:0}.justify-center{justify-content:center}.justify-items-center{justify-items:center}.fixed{position:fixed}.static{position:static}.z-50{z-index:50}.w-full{width:100%}.mx-8{margin-left:.8rem;margin-right:.8rem}.mx-auto{margin-left:auto;margin-right:auto}.pointer-events-none{pointer-events:none}.translate-z-0{--w-translate-z:0rem;transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}.transform{transform:translateX(var(--w-translate-x)) translateY(var(--w-translate-y)) translateZ(var(--w-translate-z)) rotate(var(--w-rotate)) rotateX(var(--w-rotate-x)) rotateY(var(--w-rotate-y)) rotateZ(var(--w-rotate-z)) skewX(var(--w-skew-x)) skewY(var(--w-skew-y)) scaleX(var(--w-scale-x)) scaleY(var(--w-scale-y)) scaleZ(var(--w-scale-z))}@media (min-width:480px){.sm\\:mx-16{margin-left:1.6rem;margin-right:1.6rem}}");var Lp=function(e,t,r,o){var i,n=arguments.length,a=n<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,r):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,o);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(a=(n<3?i(a):n>3?i(t,r,a):i(t,r))||a);return n>3&&a&&Object.defineProperty(t,r,a),a};const jp="fixed transform translate-z-0 bottom-16 left-0 right-0 mx-8 sm:mx-16 z-50 pointer-events-none",Rp="grid auto-rows-auto justify-items-center justify-center mx-auto pointer-events-none",Np="w-full";class Ip extends se{constructor(){super(...arguments),this._toasts=new Map}static#e=this.styles=[Or,Vp,a`:host{display:block}`];connectedCallback(){super.connectedCallback(),this._interval=setInterval(()=>{const e=[],t=[];for(const r of this._toasts)Date.now()<=r[1].duration?e.push(r):t.push(r);const r=[];for(const[e]of t){const t=this.renderRoot.querySelector(`#${e}`);t&&r.push(t.collapse())}Promise.all(r).then(()=>{e.length!==this._toasts.size&&(this._toasts=new Map(e))})},500)}disconnectedCallback(){super.disconnectedCallback(),this._interval&&clearTimeout(this._interval)}static init(){let e=document.querySelector("w-toast-container");return e||(e=document.createElement("w-toast-container"),document.body.appendChild(e)),e}get _toastsArray(){return Array.from(this._toasts,e=>{let[,t]=e;return t})}get(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');return this._toasts.get(e)}set(e){if(!e.id)throw new Error('invalid or undefined "id" on toast object');const t=this._toasts.set(e.id,{id:e.id,type:e.type??"success",text:e.text??"",canclose:e.canclose??!1,duration:Date.now()+(e.duration||5e3)});return this._toasts=new Map([...this._toasts]),t}async del(e){if(!e)throw new Error('undefined "id" given when attempting to retrieve toast');if("string"!=typeof e&&!Number.isInteger(e))throw new Error('"id" must be number or string when attempting to retrieve toast');const t=this.renderRoot.querySelector(`#${e}`);if(!this._toasts.has(e)||!t)return!1;await t.collapse();const r=this._toasts.delete(e);return this._toasts=new Map([...this._toasts]),r}render(){return B`<aside class="${jp}"><div class="${Rp}" id="w-toast-container-list">${fn(this._toastsArray,e=>e.id,e=>B`<w-toast class="${Np}" id="${e.id}" type="${e.type}" text="${e.text}" ?canclose="${e.canclose}" @close="${()=>this.del(e.id)}"></w-toast>`)}</div></aside>`}}function Fp(){document.documentElement.dataset.wKeyboardinteraction&&delete document.documentElement.dataset.wKeyboardinteraction}function qp(e){"Tab"!==e.key&&"Enter"!==e.key&&" "!==e.key||(document.documentElement.dataset.wKeyboardinteraction="true")}Lp([pe()],Ip.prototype,"_toasts",void 0),customElements.get("w-toast-container")||customElements.define("w-toast-container",Ip),"undefined"!=typeof window&&(document.addEventListener("keydown",qp),document.addEventListener("pointerdown",Fp)),Promise.all([customElements.whenDefined("w-icon"),customElements.whenDefined("w-tooltip"),customElements.whenDefined("w-textfield"),customElements.whenDefined("w-affix"),customElements.whenDefined("w-alert"),customElements.whenDefined("w-link"),customElements.whenDefined("w-button"),customElements.whenDefined("w-attention"),customElements.whenDefined("w-badge"),customElements.whenDefined("w-box"),customElements.whenDefined("w-breadcrumb-item"),customElements.whenDefined("w-breadcrumbs"),customElements.whenDefined("w-card"),
156customElements.whenDefined("w-checkbox"),customElements.whenDefined("w-checkbox-group"),customElements.whenDefined("w-combobox"),customElements.whenDefined("w-datepicker"),customElements.whenDefined("w-expandable"),customElements.whenDefined("w-modal"),customElements.whenDefined("w-modal-footer"),customElements.whenDefined("w-modal-header"),customElements.whenDefined("w-page-indicator"),customElements.whenDefined("w-pagination"),customElements.whenDefined("w-pill"),customElements.whenDefined("w-radio"),customElements.whenDefined("w-radio-group"),customElements.whenDefined("w-select"),customElements.whenDefined("w-slider-thumb"),customElements.whenDefined("w-slider"),customElements.whenDefined("w-snackbar-item"),customElements.whenDefined("w-snackbar"),customElements.whenDefined("w-step"),customElements.whenDefined("w-step-indicator"),customElements.whenDefined("w-switch"),customElements.whenDefined("w-tab"),customElements.whenDefined("w-tab-panel"),customElements.whenDefined("w-tabs"),customElements.whenDefined("w-textarea")]).then(()=>{performance.mark("vend/pc-design-system/warp-elements-loaded")});export{Pl as ModalFooter,Wl as ModalHeader,zl as ModalMain,_c as SnackbarDuration,ln as WCheckbox,mn as WCheckboxGroup,Oe as WIcon,Td as WRadio,qd as WRadioGroup,co as WarpAffix,bo as WarpAlert,vi as WarpAttention,yi as WarpBadge,_i as WarpBox,Ei as WarpBreadcrumbItem,Ri as WarpBreadcrumbs,Po as WarpButton,Yi as WarpCard,sn as WarpCheckbox,bn as WarpCheckboxGroup,Mn as WarpCombobox,Zs as WarpDatepicker,pl as WarpExpandable,Ce as WarpIcon,$o as WarpLink,Ol as WarpModal,Al as WarpModalFooter,Hl as WarpModalHeader,Zl as WarpPageIndicator,cd as WarpPagination,Od as WarpPill,Pd as WarpRadio,Fd as WarpRadioGroup,sc as WarpSelect,xc as WarpSlider,uc as WarpSliderThumb,Mc as WarpSnackbar,Sc as WarpSnackbarItem,sh as WarpStep,ph as WarpStepIndicator,Oh as WarpSwitch,jh as WarpTab,Ih as WarpTabPanel,Jh as WarpTabs,no as WarpTextField,hp as WarpTextarea,Mp as WarpToast,Ip as WarpToastContainer,Lr as WarpTooltip,xp as removeToast,yp as toast,kp as updateToast}; 157//# sourceMappingURL=index.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.