@mattilsynet/design 2.3.0 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,11 @@
1
- var mtds=(function(L){"use strict";var yr=Object.defineProperty,mn=Object.getOwnPropertySymbols,xr=Object.prototype.hasOwnProperty,Er=Object.prototype.propertyIsEnumerable,fn=(t,e,n)=>e in t?yr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Sr=(t,e)=>{for(var n in e||(e={}))xr.call(e,n)&&fn(t,n,e[n]);if(mn)for(var n of mn(e))Er.call(e,n)&&fn(t,n,e[n]);return t},xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",hn=xt&&/android/i.test(navigator.userAgent),kr=xt&&/firefox/i.test(navigator.userAgent),Tr=xt&&/iPad|iPhone|iPod/.test(navigator.userAgent),gn;xt&&/^Mac/i.test(((gn=navigator.userAgentData)==null?void 0:gn.platform)||navigator.platform);var Ar="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Lr=typeof HTMLElement>"u"?class{}:HTMLElement;function E(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var vn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Dt=(t,...e)=>vn("add",t,e),Cr=(t,...e)=>vn("remove",t,e),Ut=new WeakMap,xe=(t,e)=>{if(e===void 0)return Ut.get(t);try{Ut.get(t).disconnect(),Ut.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Ut.set(t,n)}},Or=t=>{var e;const n=t.key===" "||t.key==="Enter";return n&&((e=t.preventDefault)==null||e.call(t)),n&&t.target instanceof HTMLElement&&t.target.dispatchEvent(new MouseEvent("click",t)),n},Ir=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Mr=0,bn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Mr).toString(32)}`),t.id):"",zt=(t,e,n)=>{const o=document.createElement(t);if(e&&(o[t==="style"?"textContent":"innerHTML"]=e),n)for(const[i,r]of Object.entries(n))E(o,i,r);return o},Nr={define:(t,e)=>!xt||window.customElements.get(t)||window.customElements.define(t,e)},Rr=t=>{var e;const n=E(t,"aria-label")||"";return[...(((e=E(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},n)},nt,Pr=0,Ee=t=>{nt||(nt=zt("div"),nt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",E(nt,"aria-live","assertive")),nt.isConnected||document.body.append(nt),t&&(nt.textContent=`${t}${Pr++%2?" ":""}`)},wn=(t,e,n="")=>{var o,i;const r={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Se=!1,ke=t=>(t?.type==="mouseup"&&(Se=!1),t?.type==="mousedown"&&(Se=!0,Dt(document,"mouseup",ke,{once:!0})),Se),Wr=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
1
+ var mtds=(function(L){"use strict";var Sr=Object.defineProperty,fn=Object.getOwnPropertySymbols,kr=Object.prototype.hasOwnProperty,Tr=Object.prototype.propertyIsEnumerable,hn=(t,e,n)=>e in t?Sr(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Ar=(t,e)=>{for(var n in e||(e={}))kr.call(e,n)&&hn(t,n,e[n]);if(fn)for(var n of fn(e))Tr.call(e,n)&&hn(t,n,e[n]);return t},xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",gn=xt&&/android/i.test(navigator.userAgent),Lr=xt&&/firefox/i.test(navigator.userAgent),Cr=xt&&/iPad|iPhone|iPod/.test(navigator.userAgent),vn;xt&&/^Mac/i.test(((vn=navigator.userAgentData)==null?void 0:vn.platform)||navigator.platform);var Or="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Ir=typeof HTMLElement>"u"?class{}:HTMLElement;function S(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var bn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ut=(t,...e)=>bn("add",t,e),Mr=(t,...e)=>bn("remove",t,e),zt=new WeakMap,Ee=(t,e)=>{if(e===void 0)return zt.get(t);try{zt.get(t).disconnect(),zt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),zt.set(t,n)}},Nr=t=>{var e;const n=t.key===" "||t.key==="Enter";return n&&((e=t.preventDefault)==null||e.call(t)),n&&t.target instanceof HTMLElement&&t.target.dispatchEvent(new MouseEvent("click",t)),n},Rr=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Pr=0,wn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Pr).toString(32)}`),t.id):"",Ft=(t,e,n)=>{const o=document.createElement(t);if(e&&(o[t==="style"?"textContent":"innerHTML"]=e),n)for(const[i,r]of Object.entries(n))S(o,i,r);return o},Wr={define:(t,e)=>!xt||window.customElements.get(t)||window.customElements.define(t,e)},qr=t=>{var e;const n=S(t,"aria-label")||"";return[...(((e=S(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},n)},nt,Vr=0,Se=t=>{nt||(nt=Ft("div"),nt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",S(nt,"aria-live","assertive")),nt.isConnected||document.body.append(nt),t&&(nt.textContent=`${t}${Vr++%2?" ":""}`)},yn=(t,e,n="")=>{var o,i;const r={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},ke=!1,Te=t=>(t?.type==="mouseup"&&(ke=!1),t?.type==="mousedown"&&(ke=!0,Ut(document,"mouseup",Te,{once:!0})),ke),Dr=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
2
2
  :host(:not([data-multiple])) ::slotted(data),
3
3
  :host([data-multiple="false"]) ::slotted(data) { display: none } /* Hide data if not multiple */
4
4
  ::slotted(input[inputmode="none"]) { outline: none } /* Hide temporary foucs outline flash */
5
5
  ::slotted(del) { text-decoration: none }
6
6
  ::slotted(data:not([hidden])) { display: inline-block; pointer-events: none }
7
7
  ::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto; cursor: pointer }
8
- ::slotted(data:focus) { ${Ar} }`,yn="beforeinput,blur,focus,click,input,keydown,mousedown",xn={once:!0,passive:!0},Ft="false",qr=kr&&!hn,Vr=hn||Tr,En="​".repeat(5),Sn="deleteContentBackward",Dr="insertText",Bt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},Te=class extends Lr{constructor(){super(),this._item="",this._speak="",this._texts=Sr({},Bt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(zt("slot"),zt("style",Wr))}static get observedAttributes(){return Object.keys(Bt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=Ir(this),Dt(this,yn,this,!0),xe(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Gt,0,this),setTimeout(Jt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Bt[o]&&(this._texts[o]=n||Bt[o])}disconnectedCallback(){xe(this,!1),Cr(this,yn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;Le(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&zr(this),t.type==="click"&&Br(this,t),t.type==="focus"&&Ur(this,t),t.type==="input"&&Gr(this,t),t.type==="keydown"&&Jr(this,t),t.type==="mousedown"&&ke(t),t.type==="mutation"&&Gt(this,t))}get multiple(){var t;return((t=E(this,"data-multiple"))!=null?t:Ft)!==Ft}set multiple(t){E(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=E(this,"data-creatable"))!=null?t:Ft)!==Ft}set creatable(t){E(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},ot=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},Ae=t=>t instanceof HTMLDataElement,Le=({control:t})=>t?.disabled||t?.readOnly||!1,Gt=(t,e)=>{var n;const{_focus:o,_texts:i,items:r,control:a,list:s,multiple:l}=t;if(!a||!s)return;const c=Rr(a),d=c.endsWith(En)?E(a,"data-label"):c;E(a,"data-label",d);let p=`${d}${l?`, ${r.length?i.found.replace("%d",`${r.length}`):i.empty}`:""}`;const h=[];for(const{addedNodes:w,removedNodes:y}of e?.detail||[]){for(const x of w)Ae(x)&&h.unshift(x);for(const x of y)Ae(x)&&h.push(x)}const v=l?h.length===1:h[0]===o;if(o&&v){const w=E(a,"aria-expanded"),y=E(a,"inputmode"),x=Ae(o)?a:o,S=!h[0].isConnected;t._speak=`${i[S?"removed":"added"]} ${ot(h[0])}, `,(Vr||o===a)&&Ee(t._speak),a!==x&&(E(a,"aria-expanded",null),E(a,"inputmode","none"),p=" ",a.focus()),setTimeout(()=>{var O;E(a,"aria-expanded",w),E(a,"inputmode",S?"none":y),(O=x?.focus)==null||O.call(x),E(a,"inputmode",y),t._speak="",qr?Dt(t,"blur",()=>Gt(t),xn):setTimeout(Gt,100,t)},100)}let u=0;const f=t.querySelector("select"),g=Le(t)?"":`${i.remove}, `;for(const w of r){const y=f?.options[u],x=ot(w),S=w.value||x,O=`${t._speak}${x}, ${g}${++u} ${i.of} ${r.length}`;E(w,"role","button"),E(w,"value",S),E(w,"tabindex","-1"),E(w,"aria-label",O),y?Object.assign(y,{textContent:x,value:S}):f?.appendChild(new Option(x,S,!0,!0))}f&&E(f,"multiple",l?"":null);for(const w of[...f?.options||[]].slice(u))w.remove();!l&&u>1&&console.warn("u-combobox: Multiple <data> found in single mode."),E(s,"aria-multiselectable",`${l}`),E(a,"list",bn(s)),E(a,"aria-label",`${t._speak}${p}${En}`),s.hasAttribute("popover")&&(E(a,"popovertarget",bn(s)),E(s,"popover","manual"));const b=ot(r[0]);b!==t._item&&Jt(t),t._item=b,kn(t),Tn(t),(n=xe(t))==null||n.takeRecords()},kn=t=>{var e;t.clear&&E(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||Le(t))},Tn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const r of o){const a=(e=E(r,"value"))!=null?e:ot(r);E(r,"aria-label",n?`${n}${ot(r)}`:null),E(r,"selected",i.includes(a)?"":null)}},Jt=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&wn(n,i,i?Dr:Sn)},Ce=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:r,control:a,items:s,multiple:l}=t,c=((n=a?.value)==null?void 0:n.trim())||"",d=c.toLowerCase()||null;let p=[...i].find(v=>(E(v,"label")||ot(v)).trim().toLowerCase()===d);const h={bubbles:!0,cancelable:!0,detail:p};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",h))||(p=[...i].find(v=>v.selected)),e)return Tn(t),p?ft(t,p,!1):r&&c?ft(t,{value:c},!1):(!l&&!c&&s[0]?ft(t,s[0]):Jt(t),Ee(o.invalid));for(const v of i)v.selected=v===p},ft=(t,e,n=!0)=>{const{control:o,items:i,multiple:r}=t,a=zt("data",e.label||e.value,{value:e.value}),s=[...i].find(d=>d.value===e.value),l={bubbles:!0,cancelable:!0,detail:s||a};if(s&&!n)return Jt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",l))){if(!r)for(const d of[...i])d.remove();s?s.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",l))}},Ur=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),Ee()},zr=t=>ke()||setTimeout(Fr,0,t),Fr=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||Ce(t),t._focus=void 0)},Br=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:r,control:a,items:s}=t;if(r?.contains(i))return a&&wn(a,"",Sn),a?.focus();for(const l of s){const{top:c,right:d,bottom:p,left:h}=l.getBoundingClientRect();if(l.contains(i))return ft(t,l);if(o>=c&&o<=p&&n>=h&&n<=d)return l.focus()}i===t&&a?.focus()},Gr=(t,e)=>{var n;const{options:o=[],control:i,multiple:r}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const l of o)if(l.value&&l.value===a)return ft(t,l,r)}else r||Ce(t,!1);kn(t)},Jr=(t,e)=>{var n;const{clear:o,control:i,items:r}=t,{key:a,repeat:s,target:l}=e,c=i&&i===l,d=c&&i.selectionEnd,p=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;let h=c?r.length:[...r].indexOf(l);if(c&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Dt(o,"blur",()=>E(o,"tabindex",null),xn)),!(!c&&Or(e)||h===-1||p)){if(a==="ArrowRight"&&!c)h+=1;else if(a==="ArrowLeft"&&!d)h-=1;else if(a==="Enter"&&c){const v=E(i,"form");return E(i,"form","#"),requestAnimationFrame(()=>E(i,"form",v)),Ce(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!s&&r[h])return ft(t,r[h]);c&&(h-=1)}else return c||i?.focus();e.preventDefault(),(n=r[Math.max(0,h)]||i)==null||n.focus()}};Nr.define("u-combobox",Te);var Oe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Hr=Oe&&/android/i.test(navigator.userAgent),An;Oe&&/^Mac/i.test(((An=navigator.userAgentData)==null?void 0:An.platform)||navigator.platform);var Xr=`${Hr?"data":"aria"}-labelledby`,Ie=":host(:not([hidden])) { display: block }",Ht=typeof HTMLElement>"u"?class{}:HTMLElement;function M(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Ln=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},jr=(t,...e)=>Ln("add",t,e),Zr=(t,...e)=>Ln("remove",t,e),Xt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Mn("slot"),Mn("style",e)),jt=new WeakMap,Cn=(t,e)=>{if(e===void 0)return jt.get(t);try{jt.get(t).disconnect(),jt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),jt.set(t,n)}},Kr=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},On=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Yr=0,In=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Yr).toString(32)}`),t.id):"",Mn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Zt={define:(t,e)=>!Oe||window.customElements.get(t)||window.customElements.define(t,e)},Qr=Ie,_r=Ie,$r=Ie,ta=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Kt="aria-controls",ht="aria-selected",Nn=class extends Ht{constructor(){super(),Xt(this,Qr)}get tabList(){return Yt("u-tablist",this)[0]||null}get selectedIndex(){return Qt(this.tabs)}set selectedIndex(t){Re(this.tabs[t])}get tabs(){return Yt("u-tab",this)}get panels(){return Yt("u-tabpanel",this)}},Rn=class extends Ht{constructor(){super(),Xt(this,_r)}connectedCallback(){M(this,"role","tablist"),jr(this,"click,keydown",this),Cn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Zr(this,"click,keydown",this),Cn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const r=this.tabs[Math.max(this.selectedIndex,0)];return r?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(r=>r.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Re(n[o]),t.type==="keydown"&&!Kr(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Qt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Qt(this.tabs)}set selectedIndex(t){Re(this.tabs[t])}},Me=!1,Pn=class extends Ht{static get observedAttributes(){return["id",ht,Kt]}constructor(){super(),Xt(this,ta)}connectedCallback(){M(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Me&&this.selected&&this.tabList){Me=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Yt("u-tabpanel",this.tabsElement||this),n=Ne(this,e[t.indexOf(this)]);n&&M(n,Xr,In(this)),t.forEach((o,i)=>{const r=Ne(o,e[i]);o.tabIndex=o===this?0:-1,M(o,ht,`${o===this}`),M(o,Kt,r?.id||null),r&&(r.hidden=r!==n)}),Me=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return M(this,ht)==="true"}set selected(t){M(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ne(this)}},Wn=class extends Ht{static get observedAttributes(){return["hidden"]}constructor(){super(),Xt(this,$r)}connectedCallback(){M(this,"role","tabpanel"),this.hidden=Qt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;M(this,"aria-hidden",`${t}`),M(this,"tabindex",t||ea(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Kt}="${this.id}"]`;return On(this).querySelectorAll(t)}},Yt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ne=(t,e)=>{const n=M(t,Kt)||In(e),o=On(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Qt=t=>[...t].findIndex(e=>M(e,ht)==="true"),Re=t=>t&&M(t,"aria-disabled")!=="true"&&M(t,"aria-selected","true"),ea=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Zt.define("u-tabs",Nn),Zt.define("u-tablist",Rn),Zt.define("u-tab",Pn),Zt.define("u-tabpanel",Wn);function na(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function oa(){document.addEventListener("invoke",u=>{u.type=="invoke"&&u.isTrusted&&(u.stopImmediatePropagation(),u.preventDefault())},!0),document.addEventListener("command",u=>{u.type=="command"&&u.isTrusted&&(u.stopImmediatePropagation(),u.preventDefault())},!0);function t(u,f,g=!0){Object.defineProperty(u,f,{...Object.getOwnPropertyDescriptor(u,f),enumerable:g})}function e(u){return u&&typeof u.getRootNode=="function"?u.getRootNode():u&&u.parentNode?e(u.parentNode):u}const n=new WeakMap,o=new WeakMap;class i extends Event{constructor(f,g={}){super(f,g);const{source:b,command:w}=g;if(b!=null&&!(b instanceof Element))throw new TypeError("source must be an element");n.set(this,b||null),o.set(this,w!==void 0?String(w):"")}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!n.has(this))throw new TypeError("illegal invocation");const f=n.get(this);if(!(f instanceof Element))return null;const g=e(f);return g!==e(this.target||document)?g.host:f}get command(){if(!o.has(this))throw new TypeError("illegal invocation");return o.get(this)}get action(){throw new Error("CommandEvent#action was renamed to CommandEvent#command")}get invoker(){throw new Error("CommandEvent#invoker was renamed to CommandEvent#source")}}t(i.prototype,"source"),t(i.prototype,"command");class r extends Event{constructor(f,g={}){throw super(f,g),new Error("InvokeEvent has been deprecated, it has been renamed to `CommandEvent`")}}const a=new WeakMap;function s(u){Object.defineProperties(u.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(f){if(this.hasAttribute("invokeaction"))throw new TypeError("Element has deprecated `invokeaction` attribute, replace with `command`");if(this.hasAttribute("invoketarget"))throw new TypeError("Element has deprecated `invoketarget` attribute, replace with `commandfor`");if(f===null)this.removeAttribute("commandfor"),a.delete(this);else if(f instanceof Element){this.setAttribute("commandfor","");const g=e(f);e(this)===g||g===this.ownerDocument?a.set(this,f):a.delete(this)}else throw new TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button")return null;if(this.hasAttribute("invokeaction")||this.hasAttribute("invoketarget"))return console.warn("Element has deprecated `invoketarget` or `invokeaction` attribute, use `commandfor` and `command` instead"),null;if(this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;const f=a.get(this);if(f)return f.isConnected?f:(a.delete(this),null);const g=e(this),b=this.getAttribute("commandfor");return(g instanceof Document||g instanceof ShadowRoot)&&b&&g.getElementById(b)||null}},command:{enumerable:!0,configurable:!0,get(){const f=this.getAttribute("command")||"";if(f.startsWith("--"))return f;const g=f.toLowerCase();switch(g){case"show-modal":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return g}return""},set(f){this.setAttribute("command",f)}},invokeAction:{enumerable:!1,configurable:!0,get(){throw new Error("invokeAction is deprecated. It has been renamed to command")},set(f){throw new Error("invokeAction is deprecated. It has been renamed to command")}},invokeTargetElement:{enumerable:!1,configurable:!0,get(){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")},set(f){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")}}})}const l=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return d.takeRecords(),l.get(this)||null},set(u){const f=l.get(this)||null;f&&this.removeEventListener("command",f),l.set(this,typeof u=="object"||typeof u=="function"?u:null),typeof u=="function"&&this.addEventListener("command",u)}}});function c(u){for(const f of u)f.oncommand=new Function("event",f.getAttribute("oncommand"))}const d=new MutationObserver(u=>{for(const f of u){const{target:g}=f;f.type==="childList"?c(g.querySelectorAll("[oncommand]")):c([g])}});d.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),c(document.querySelectorAll("[oncommand]"));function p(u){if(u.defaultPrevented||u.type!=="click")return;const f=u.target.closest("button[invoketarget], button[invokeaction], input[invoketarget], input[invokeaction]");if(f&&(console.warn("Elements with `invoketarget` or `invokeaction` are deprecated and should be renamed to use `commandfor` and `command` respectively"),f.matches("input")))throw new Error("Input elements no longer support `commandfor`");const g=u.target.closest("button[commandfor], button[command]");if(!g)return;if(g.form&&g.getAttribute("type")!=="button")throw u.preventDefault(),new Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(g.hasAttribute("command")!==g.hasAttribute("commandfor")){const x=g.hasAttribute("command")?"command":"commandfor",S=g.hasAttribute("command")?"commandfor":"command";throw new Error(`Element with ${x} attribute must also have a ${S} attribute to function.`)}if(g.command!=="show-popover"&&g.command!=="hide-popover"&&g.command!=="toggle-popover"&&g.command!=="show-modal"&&g.command!=="close"&&!g.command.startsWith("--")){console.warn(`"${g.command}" is not a valid command value. Custom commands must begin with --`);return}const b=g.commandForElement;if(!b)return;const w=new i("command",{command:g.command,source:g,cancelable:!0});if(b.dispatchEvent(w),w.defaultPrevented)return;const y=w.command.toLowerCase();if(b.popover){const x=!b.matches(":popover-open");x&&(y==="toggle-popover"||y==="show-popover")?b.showPopover({source:g}):!x&&y==="hide-popover"&&b.hidePopover()}else if(b.localName==="dialog"){const x=!b.hasAttribute("open");x&&y==="show-modal"?b.showModal():!x&&y==="close"&&b.close()}}function h(u){u.addEventListener("click",p,!0)}function v(u,f){const g=u.prototype.attachShadow;u.prototype.attachShadow=function(w){const y=g.call(this,w);return f(y),y};const b=u.prototype.attachInternals;u.prototype.attachInternals=function(){const w=b.call(this);return w.shadowRoot&&f(w.shadowRoot),w}}s(HTMLButtonElement),v(HTMLElement,u=>{h(u),d.observe(u,{attributeFilter:["oncommand"]}),c(u.querySelectorAll("[oncommand]"))}),h(document),Object.assign(globalThis,{CommandEvent:i,InvokeEvent:r})}na()||oa();var _t=new WeakMap;function $t(t){const e=t.getAttribute("closedby");return e==="closerequest"||e==="none"?e:"any"}function ia(t){const e=Array.from(Et);return e[e.length-1]===t}var Et=new Set;function qn(t){if(t.key!=="Escape"||Et.size===0)return;let e=!1,n=!1;const o=Array.from(Et).reverse();for(const i of o){const r=$t(i);if(r==="none"){e=!0;break}if(r==="any"||r==="closerequest"){i.close(),n=!0;break}}(e||n)&&t.preventDefault()}document.addEventListener("keydown",qn);function ra(t){return function(n){if(!ia(t)||$t(t)!=="any"||!t.open)return;const o=t.getBoundingClientRect(),{clientX:i,clientY:r}=n;o.top<=r&&r<=o.bottom&&o.left<=i&&i<=o.right||t.close()}}function aa(t){return function(n){if(n.target!==t||$t(t)!=="any")return;const o=t.getBoundingClientRect();o.top<n.clientY&&n.clientY<o.bottom&&o.left<n.clientX&&n.clientX<o.right||t.close()}}function sa(t){return function(n){$t(t)==="none"&&n.preventDefault()}}function St(t){if(_t.has(t))return;const e={handleEscape:qn,handleClick:aa(t),handleDocClick:ra(t),handleCancel:sa(t),attrObserver:new MutationObserver(()=>{})};t.addEventListener("click",e.handleClick),t.addEventListener("cancel",e.handleCancel),document.addEventListener("click",e.handleDocClick,!0),e.attrObserver.observe(t,{attributes:!0,attributeFilter:["closedby"]}),Et.add(t),_t.set(t,e)}function te(t){const e=_t.get(t);e&&(t.removeEventListener("click",e.handleClick),t.removeEventListener("cancel",e.handleCancel),document.removeEventListener("click",e.handleDocClick,!0),e.attrObserver.disconnect(),Et.delete(t),_t.delete(t))}function Pe(t){t.querySelectorAll("dialog[closedby]").forEach(o=>{o instanceof HTMLDialogElement&&o.open&&St(o)});const e=new MutationObserver(o=>{o.forEach(i=>{i.addedNodes.forEach(r=>{r instanceof HTMLDialogElement&&r.open&&r.hasAttribute("closedby")&&St(r),r instanceof Element&&r.querySelectorAll("dialog[closedby]").forEach(a=>{a instanceof HTMLDialogElement&&a.open&&St(a)})}),i.removedNodes.forEach(r=>{r instanceof HTMLDialogElement&&te(r),r instanceof Element&&r.querySelectorAll("dialog").forEach(te)})})}),n=t===document?document.body:t;e.observe(n,{childList:!0,subtree:!0})}function Vn(t){const e=[];t.shadowRoot&&e.push(t.shadowRoot);for(const n of Array.from(t.children))e.push(...Vn(n));return e}function la(){Pe(document),document.body&&Vn(document.body).forEach(Pe);const t=HTMLElement.prototype.attachShadow;HTMLElement.prototype.attachShadow=function(n){const o=t.call(this,n);return Pe(o),o}}var Dn=!1;function Un(){return typeof HTMLDialogElement<"u"&&typeof HTMLDialogElement.prototype=="object"&&"closedBy"in HTMLDialogElement.prototype}function ca(){if(Dn||Un())return;if(!("showModal"in HTMLDialogElement.prototype)){console.warn("[closedBy polyfill] <dialog> API not found – polyfill skipped.");return}const t=HTMLDialogElement.prototype.showModal,e=HTMLDialogElement.prototype.close;HTMLDialogElement.prototype.showModal=function(){t.call(this),this.open&&this.hasAttribute("closedby")&&St(this)},HTMLDialogElement.prototype.close=function(o){te(this),e.call(this,o)},Object.defineProperty(HTMLDialogElement.prototype,"closedBy",{get(){const n=this.getAttribute("closedby");return n==="closerequest"||n==="none"?n:"any"},set(n){n==="any"||n==="closerequest"||n==="none"?this.setAttribute("closedby",n):(console.warn(`[closedBy polyfill] Invalid value '${n}'. Falling back to 'any'.`),this.setAttribute("closedby","any")),this.open&&(this.hasAttribute("closedby")?St(this):te(this))},enumerable:!0,configurable:!0}),la(),Dn=!0}Un()||ca();const da=`@font-face {
8
+ ::slotted(data:focus) { ${Or} }`,xn="beforeinput,blur,focus,click,input,keydown,mousedown",En={once:!0,passive:!0},Bt="false",Ur=Lr&&!gn,zr=gn||Cr,Sn="​".repeat(5),kn="deleteContentBackward",Fr="insertText",Gt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},Ae=class extends Ir{constructor(){super(),this._item="",this._speak="",this._texts=Ar({},Gt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Ft("slot"),Ft("style",Dr))}static get observedAttributes(){return Object.keys(Gt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=Rr(this),Ut(this,xn,this,!0),Ee(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Jt,0,this),setTimeout(Ht,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Gt[o]&&(this._texts[o]=n||Gt[o])}disconnectedCallback(){Ee(this,!1),Mr(this,xn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;Ce(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Gr(this),t.type==="click"&&Hr(this,t),t.type==="focus"&&Br(this,t),t.type==="input"&&Xr(this,t),t.type==="keydown"&&jr(this,t),t.type==="mousedown"&&Te(t),t.type==="mutation"&&Jt(this,t))}get multiple(){var t;return((t=S(this,"data-multiple"))!=null?t:Bt)!==Bt}set multiple(t){S(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=S(this,"data-creatable"))!=null?t:Bt)!==Bt}set creatable(t){S(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},ot=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},Le=t=>t instanceof HTMLDataElement,Ce=({control:t})=>t?.disabled||t?.readOnly||!1,Jt=(t,e)=>{var n;const{_focus:o,_texts:i,items:r,control:a,list:s,multiple:l}=t;if(!a||!s)return;const c=qr(a),d=c.endsWith(Sn)?S(a,"data-label"):c;S(a,"data-label",d);let u=`${d}${l?`, ${r.length?i.found.replace("%d",`${r.length}`):i.empty}`:""}`;const h=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const x of b)Le(x)&&h.unshift(x);for(const x of y)Le(x)&&h.push(x)}const g=l?h.length===1:h[0]===o;if(o&&g){const b=S(a,"aria-expanded"),y=S(a,"inputmode"),x=Le(o)?a:o,E=!h[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(h[0])}, `,(zr||o===a)&&Se(t._speak),a!==x&&(S(a,"aria-expanded",null),S(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var C;S(a,"aria-expanded",b),S(a,"inputmode",E?"none":y),(C=x?.focus)==null||C.call(x),S(a,"inputmode",y),t._speak="",Ur?Ut(t,"blur",()=>Jt(t),En):setTimeout(Jt,100,t)},100)}let w=0;const p=t.querySelector("select"),v=Ce(t)?"":`${i.remove}, `;for(const b of r){const y=p?.options[w],x=ot(b),E=b.value||x,C=`${t._speak}${x}, ${v}${++w} ${i.of} ${r.length}`;S(b,"role","button"),S(b,"value",E),S(b,"tabindex","-1"),S(b,"aria-label",C),y?Object.assign(y,{textContent:x,value:E}):p?.appendChild(new Option(x,E,!0,!0))}p&&S(p,"multiple",l?"":null);for(const b of[...p?.options||[]].slice(w))b.remove();!l&&w>1&&console.warn("u-combobox: Multiple <data> found in single mode."),S(s,"aria-multiselectable",`${l}`),S(a,"list",wn(s)),S(a,"aria-label",`${t._speak}${u}${Sn}`),s.hasAttribute("popover")&&(S(a,"popovertarget",wn(s)),S(s,"popover","manual"));const f=ot(r[0]);f!==t._item&&Ht(t),t._item=f,Tn(t),An(t),(n=Ee(t))==null||n.takeRecords()},Tn=t=>{var e;t.clear&&S(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||Ce(t))},An=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const r of o){const a=(e=S(r,"value"))!=null?e:ot(r);S(r,"aria-label",n?`${n}${ot(r)}`:null),S(r,"selected",i.includes(a)?"":null)}},Ht=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&yn(n,i,i?Fr:kn)},Oe=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:r,control:a,items:s,multiple:l}=t,c=((n=a?.value)==null?void 0:n.trim())||"",d=c.toLowerCase()||null;let u=[...i].find(g=>(S(g,"label")||ot(g)).trim().toLowerCase()===d);const h={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",h))||(u=[...i].find(g=>g.selected)),e)return An(t),u?ft(t,u,!1):r&&c?ft(t,{value:c},!1):(!l&&!c&&s[0]?ft(t,s[0]):Ht(t),Se(o.invalid));for(const g of i)g.selected=g===u},ft=(t,e,n=!0)=>{const{control:o,items:i,multiple:r}=t,a=Ft("data",e.label||e.value,{value:e.value}),s=[...i].find(d=>d.value===e.value),l={bubbles:!0,cancelable:!0,detail:s||a};if(s&&!n)return Ht(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",l))){if(!r)for(const d of[...i])d.remove();s?s.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",l))}},Br=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),Se()},Gr=t=>Te()||setTimeout(Jr,0,t),Jr=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||Oe(t),t._focus=void 0)},Hr=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:r,control:a,items:s}=t;if(r?.contains(i))return a&&yn(a,"",kn),a?.focus();for(const l of s){const{top:c,right:d,bottom:u,left:h}=l.getBoundingClientRect();if(l.contains(i))return ft(t,l);if(o>=c&&o<=u&&n>=h&&n<=d)return l.focus()}i===t&&a?.focus()},Xr=(t,e)=>{var n;const{options:o=[],control:i,multiple:r}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const l of o)if(l.value&&l.value===a)return ft(t,l,r)}else r||Oe(t,!1);Tn(t)},jr=(t,e)=>{var n;const{clear:o,control:i,items:r}=t,{key:a,repeat:s,target:l}=e,c=i&&i===l,d=c&&i.selectionEnd,u=e.altKey||e.ctrlKey||e.metaKey||e.shiftKey;let h=c?r.length:[...r].indexOf(l);if(c&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Ut(o,"blur",()=>S(o,"tabindex",null),En)),!(!c&&Nr(e)||h===-1||u)){if(a==="ArrowRight"&&!c)h+=1;else if(a==="ArrowLeft"&&!d)h-=1;else if(a==="Enter"&&c){const g=S(i,"form");return S(i,"form","#"),requestAnimationFrame(()=>S(i,"form",g)),Oe(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!s&&r[h])return ft(t,r[h]);c&&(h-=1)}else return c||i?.focus();e.preventDefault(),(n=r[Math.max(0,h)]||i)==null||n.focus()}};Wr.define("u-combobox",Ae);var Ie=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Zr=Ie&&/android/i.test(navigator.userAgent),Ln;Ie&&/^Mac/i.test(((Ln=navigator.userAgentData)==null?void 0:Ln.platform)||navigator.platform);var Kr=`${Zr?"data":"aria"}-labelledby`,Me=":host(:not([hidden])) { display: block }",Xt=typeof HTMLElement>"u"?class{}:HTMLElement;function N(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Cn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Yr=(t,...e)=>Cn("add",t,e),Qr=(t,...e)=>Cn("remove",t,e),jt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Nn("slot"),Nn("style",e)),Zt=new WeakMap,On=(t,e)=>{if(e===void 0)return Zt.get(t);try{Zt.get(t).disconnect(),Zt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Zt.set(t,n)}},_r=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},In=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},$r=0,Mn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++$r).toString(32)}`),t.id):"",Nn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Kt={define:(t,e)=>!Ie||window.customElements.get(t)||window.customElements.define(t,e)},ta=Me,ea=Me,na=Me,oa=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Yt="aria-controls",ht="aria-selected",Rn=class extends Xt{constructor(){super(),jt(this,ta)}get tabList(){return Qt("u-tablist",this)[0]||null}get selectedIndex(){return _t(this.tabs)}set selectedIndex(t){Pe(this.tabs[t])}get tabs(){return Qt("u-tab",this)}get panels(){return Qt("u-tabpanel",this)}},Pn=class extends Xt{constructor(){super(),jt(this,ea)}connectedCallback(){N(this,"role","tablist"),Yr(this,"click,keydown",this),On(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Qr(this,"click,keydown",this),On(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const r=this.tabs[Math.max(this.selectedIndex,0)];return r?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(r=>r.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Pe(n[o]),t.type==="keydown"&&!_r(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=_t(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return _t(this.tabs)}set selectedIndex(t){Pe(this.tabs[t])}},Ne=!1,Wn=class extends Xt{static get observedAttributes(){return["id",ht,Yt]}constructor(){super(),jt(this,oa)}connectedCallback(){N(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Ne&&this.selected&&this.tabList){Ne=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Qt("u-tabpanel",this.tabsElement||this),n=Re(this,e[t.indexOf(this)]);n&&N(n,Kr,Mn(this)),t.forEach((o,i)=>{const r=Re(o,e[i]);o.tabIndex=o===this?0:-1,N(o,ht,`${o===this}`),N(o,Yt,r?.id||null),r&&(r.hidden=r!==n)}),Ne=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return N(this,ht)==="true"}set selected(t){N(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Re(this)}},qn=class extends Xt{static get observedAttributes(){return["hidden"]}constructor(){super(),jt(this,na)}connectedCallback(){N(this,"role","tabpanel"),this.hidden=_t(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;N(this,"aria-hidden",`${t}`),N(this,"tabindex",t||ia(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Yt}="${this.id}"]`;return In(this).querySelectorAll(t)}},Qt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Re=(t,e)=>{const n=N(t,Yt)||Mn(e),o=In(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},_t=t=>[...t].findIndex(e=>N(e,ht)==="true"),Pe=t=>t&&N(t,"aria-disabled")!=="true"&&N(t,"aria-selected","true"),ia=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Kt.define("u-tabs",Rn),Kt.define("u-tablist",Pn),Kt.define("u-tab",Wn),Kt.define("u-tabpanel",qn);function ra(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function aa(){document.addEventListener("invoke",p=>{p.type=="invoke"&&p.isTrusted&&(p.stopImmediatePropagation(),p.preventDefault())},!0),document.addEventListener("command",p=>{p.type=="command"&&p.isTrusted&&(p.stopImmediatePropagation(),p.preventDefault())},!0);function t(p,v,f=!0){Object.defineProperty(p,v,{...Object.getOwnPropertyDescriptor(p,v),enumerable:f})}function e(p){return p&&typeof p.getRootNode=="function"?p.getRootNode():p&&p.parentNode?e(p.parentNode):p}const n=new WeakMap,o=new WeakMap;class i extends Event{constructor(v,f={}){super(v,f);const{source:b,command:y}=f;if(b!=null&&!(b instanceof Element))throw new TypeError("source must be an element");n.set(this,b||null),o.set(this,y!==void 0?String(y):"")}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!n.has(this))throw new TypeError("illegal invocation");const v=n.get(this);if(!(v instanceof Element))return null;const f=e(v);return f!==e(this.target||document)?f.host:v}get command(){if(!o.has(this))throw new TypeError("illegal invocation");return o.get(this)}get action(){throw new Error("CommandEvent#action was renamed to CommandEvent#command")}get invoker(){throw new Error("CommandEvent#invoker was renamed to CommandEvent#source")}}t(i.prototype,"source"),t(i.prototype,"command");class r extends Event{constructor(v,f={}){throw super(v,f),new Error("InvokeEvent has been deprecated, it has been renamed to `CommandEvent`")}}const a=new WeakMap;function s(p){Object.defineProperties(p.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(v){if(this.hasAttribute("invokeaction"))throw new TypeError("Element has deprecated `invokeaction` attribute, replace with `command`");if(this.hasAttribute("invoketarget"))throw new TypeError("Element has deprecated `invoketarget` attribute, replace with `commandfor`");if(v===null)this.removeAttribute("commandfor"),a.delete(this);else if(v instanceof Element){this.setAttribute("commandfor","");const f=e(v);e(this)===f||f===this.ownerDocument?a.set(this,v):a.delete(this)}else throw new TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button")return null;if(this.hasAttribute("invokeaction")||this.hasAttribute("invoketarget"))return console.warn("Element has deprecated `invoketarget` or `invokeaction` attribute, use `commandfor` and `command` instead"),null;if(this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;const v=a.get(this);if(v)return v.isConnected?v:(a.delete(this),null);const f=e(this),b=this.getAttribute("commandfor");return(f instanceof Document||f instanceof ShadowRoot)&&b&&f.getElementById(b)||null}},command:{enumerable:!0,configurable:!0,get(){const v=this.getAttribute("command")||"";if(v.startsWith("--"))return v;const f=v.toLowerCase();switch(f){case"show-modal":case"request-close":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return f}return""},set(v){this.setAttribute("command",v)}},invokeAction:{enumerable:!1,configurable:!0,get(){throw new Error("invokeAction is deprecated. It has been renamed to command")},set(v){throw new Error("invokeAction is deprecated. It has been renamed to command")}},invokeTargetElement:{enumerable:!1,configurable:!0,get(){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")},set(v){throw new Error("invokeTargetElement is deprecated. It has been renamed to command")}}})}const l=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return d.takeRecords(),l.get(this)||null},set(p){const v=l.get(this)||null;v&&this.removeEventListener("command",v),l.set(this,typeof p=="object"||typeof p=="function"?p:null),typeof p=="function"&&this.addEventListener("command",p)}}});function c(p){for(const v of p)v.oncommand=new Function("event",v.getAttribute("oncommand"))}const d=new MutationObserver(p=>{for(const v of p){const{target:f}=v;v.type==="childList"?c(f.querySelectorAll("[oncommand]")):c([f])}});d.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),c(document.querySelectorAll("[oncommand]"));const u=new WeakSet;function h(p){if(u.has(p)||(u.add(p),p.defaultPrevented)||p.type!=="click")return;const v=p.target.closest("button[invoketarget], button[invokeaction], input[invoketarget], input[invokeaction]");if(v&&(console.warn("Elements with `invoketarget` or `invokeaction` are deprecated and should be renamed to use `commandfor` and `command` respectively"),v.matches("input")))throw new Error("Input elements no longer support `commandfor`");const f=p.target.closest("button[commandfor], button[command]");if(!f)return;if(f.form&&f.getAttribute("type")!=="button")throw p.preventDefault(),new Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(f.hasAttribute("command")!==f.hasAttribute("commandfor")){const E=f.hasAttribute("command")?"command":"commandfor",C=f.hasAttribute("command")?"commandfor":"command";throw new Error(`Element with ${E} attribute must also have a ${C} attribute to function.`)}if(f.command!=="show-popover"&&f.command!=="hide-popover"&&f.command!=="toggle-popover"&&f.command!=="show-modal"&&f.command!=="request-close"&&f.command!=="close"&&!f.command.startsWith("--")){console.warn(`"${f.command}" is not a valid command value. Custom commands must begin with --`);return}const b=f.commandForElement;if(!b)return;const y=new i("command",{command:f.command,source:f,cancelable:!0});if(b.dispatchEvent(y),y.defaultPrevented)return;const x=y.command.toLowerCase();if(b.popover){const E=!b.matches(":popover-open");E&&(x==="toggle-popover"||x==="show-popover")?b.showPopover({source:f}):!E&&x==="hide-popover"&&b.hidePopover()}else if(b.localName==="dialog"){const E=!b.hasAttribute("open");E&&x=="show-modal"?b.showModal():!E&&x=="close"?b.close(f.value?f.value:void 0):!E&&x=="request-close"&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){const C=new Event("cancel",{cancelable:!0});this.dispatchEvent(C),C.defaultPrevented||this.close()}),b.requestClose(f.value?f.value:void 0))}}function g(p){p.addEventListener("click",h,!0)}function w(p,v){const f=p.prototype.attachShadow;p.prototype.attachShadow=function(y){const x=f.call(this,y);return v(x),x};const b=p.prototype.attachInternals;p.prototype.attachInternals=function(){const y=b.call(this);return y.shadowRoot&&v(y.shadowRoot),y}}s(HTMLButtonElement),w(HTMLElement,p=>{g(p),d.observe(p,{attributeFilter:["oncommand"]}),c(p.querySelectorAll("[oncommand]"))}),g(document),Object.assign(globalThis,{CommandEvent:i,InvokeEvent:r})}ra()||aa();var $t=new WeakMap;function te(t){const e=t.getAttribute("closedby");return e==="closerequest"||e==="none"?e:"any"}function sa(t){const e=Array.from(Et);return e[e.length-1]===t}var Et=new Set;function Vn(t){if(t.key!=="Escape"||Et.size===0)return;let e=!1,n=!1;const o=Array.from(Et).reverse();for(const i of o){const r=te(i);if(r==="none"){e=!0;break}if(r==="any"||r==="closerequest"){i.close(),n=!0;break}}(e||n)&&t.preventDefault()}document.addEventListener("keydown",Vn);function la(t){return function(n){if(!sa(t)||te(t)!=="any"||!t.open)return;const o=t.getBoundingClientRect(),{clientX:i,clientY:r}=n;o.top<=r&&r<=o.bottom&&o.left<=i&&i<=o.right||t.close()}}function ca(t){return function(n){if(n.target!==t||te(t)!=="any")return;const o=t.getBoundingClientRect();o.top<n.clientY&&n.clientY<o.bottom&&o.left<n.clientX&&n.clientX<o.right||t.close()}}function da(t){return function(n){te(t)==="none"&&n.preventDefault()}}function St(t){if($t.has(t))return;const e={handleEscape:Vn,handleClick:ca(t),handleDocClick:la(t),handleCancel:da(t),attrObserver:new MutationObserver(()=>{})};t.addEventListener("click",e.handleClick),t.addEventListener("cancel",e.handleCancel),document.addEventListener("click",e.handleDocClick,!0),e.attrObserver.observe(t,{attributes:!0,attributeFilter:["closedby"]}),Et.add(t),$t.set(t,e)}function ee(t){const e=$t.get(t);e&&(t.removeEventListener("click",e.handleClick),t.removeEventListener("cancel",e.handleCancel),document.removeEventListener("click",e.handleDocClick,!0),e.attrObserver.disconnect(),Et.delete(t),$t.delete(t))}function We(t){t.querySelectorAll("dialog[closedby]").forEach(o=>{o instanceof HTMLDialogElement&&o.open&&St(o)});const e=new MutationObserver(o=>{o.forEach(i=>{i.addedNodes.forEach(r=>{r instanceof HTMLDialogElement&&r.open&&r.hasAttribute("closedby")&&St(r),r instanceof Element&&r.querySelectorAll("dialog[closedby]").forEach(a=>{a instanceof HTMLDialogElement&&a.open&&St(a)})}),i.removedNodes.forEach(r=>{r instanceof HTMLDialogElement&&ee(r),r instanceof Element&&r.querySelectorAll("dialog").forEach(ee)})})}),n=t===document?document.body:t;e.observe(n,{childList:!0,subtree:!0})}function Dn(t){const e=[];t.shadowRoot&&e.push(t.shadowRoot);for(const n of Array.from(t.children))e.push(...Dn(n));return e}function ua(){We(document),document.body&&Dn(document.body).forEach(We);const t=HTMLElement.prototype.attachShadow;HTMLElement.prototype.attachShadow=function(n){const o=t.call(this,n);return We(o),o}}var Un=!1;function zn(){return typeof HTMLDialogElement<"u"&&typeof HTMLDialogElement.prototype=="object"&&"closedBy"in HTMLDialogElement.prototype}function pa(){if(Un||zn())return;if(!("showModal"in HTMLDialogElement.prototype)){console.warn("[closedBy polyfill] <dialog> API not found – polyfill skipped.");return}const t=HTMLDialogElement.prototype.showModal,e=HTMLDialogElement.prototype.close;HTMLDialogElement.prototype.showModal=function(){t.call(this),this.open&&this.hasAttribute("closedby")&&St(this)},HTMLDialogElement.prototype.close=function(o){ee(this),e.call(this,o)},Object.defineProperty(HTMLDialogElement.prototype,"closedBy",{get(){const n=this.getAttribute("closedby");return n==="closerequest"||n==="none"?n:"any"},set(n){n==="any"||n==="closerequest"||n==="none"?this.setAttribute("closedby",n):(console.warn(`[closedBy polyfill] Invalid value '${n}'. Falling back to 'any'.`),this.setAttribute("closedby","any")),this.open&&(this.hasAttribute("closedby")?St(this):ee(this))},enumerable:!0,configurable:!0}),ua(),Un=!0}zn()||pa();const ma=`@font-face {
9
9
  font-family: 'Mattilsynet Sans';
10
10
  font-style: normal italic;
11
11
  font-weight: 100 900;
@@ -155,7 +155,7 @@ var mtds=(function(L){"use strict";var yr=Object.defineProperty,mn=Object.getOwn
155
155
  white-space: pre-wrap;
156
156
  width: calc(var(--mtdsc-print-inner-width) / 3);
157
157
  }
158
- }`,ua="2.3.0",zn="_alert_1p489_1 _ds-alert_1331q_3",Fn="_app_1p489_1",Bn="_sticky_1p489_1",Gn="_avatar_1p489_1 _ds-avatar_1331q_1",Jn="_badge_1p489_1",Hn="_breadcrumbs_1p489_1 _ds-breadcrumbs_1331q_5",Xn="_button_1p489_1 _ds-button_1331q_1",jn="_card_1p489_1",Zn="_group_1p489_1",Kn="_chip_1p489_1 _ds-chip_1331q_5",Yn="_details_1p489_1 _ds-details_1331q_3",Qn="_dialog_1p489_1 _ds-dialog_1331q_5",_n="__drawer_1p489_1",$n="_divider_1p489_1",to="_errorsummary_1p489_1 _ds-error-summary_1331q_5",eo="__errorsummary_1p489_1",no="_field_1p489_1 _ds-field_1331q_1",oo="__datalist_1p489_1",io="_affixes_1p489_1 _ds-field-affixes_1331q_3",ro="_fieldset_1p489_1 _ds-fieldset_1331q_3",ao="_fileupload_1p489_1",so="_helptext_1p489_1 _ds-focus_1331q_1",lo="_input_1p489_1 _ds-input_1331q_1",co="_law_1p489_1",uo="_grid_1p489_1",po="_flex_1p489_1",mo="_link_1p489_1",fo="_logo_1p489_1",ho="_pagination_1p489_1 _ds-pagination_1331q_5",go="_popover_1p489_1",vo="_progress_1p489_1",bo="__indeterminate_1p489_1",wo="_skeleton_1p489_1 _ds-skeleton_1331q_5",yo="__skeleton_1p489_1",xo="_spinner_1p489_1",Eo="_steps_1p489_1",So="_table_1p489_1 _ds-table_1331q_5",ko="__scrollShadow_1p489_1",To="_tabs_1p489_1 _ds-tabs_1331q_5",Ao="__scrollMask_1p489_1",Lo="_tag_1p489_1 _ds-tag_1331q_5",Co="_toast_1p489_1",Oo="__toastClose_1p489_1",Io="__toastOpen_1p489_1",Mo="__toastTimeout_1p489_1",No="_togglegroup_1p489_1",Ro="__tooltip_1p489_1",Po="_heading_1p489_1 _ds-heading_1331q_1",Wo="_ingress_1p489_1",qo="_muted_1p489_1",Vo="_info_1p489_1",Do="_prose_1p489_1",Uo="_validation_1p489_1 _ds-validation-message_1331q_1",zo="_body_1p489_186",Fo="__checked_1p489_1",k={alert:zn,app:Fn,sticky:Bn,avatar:Gn,badge:Jn,breadcrumbs:Hn,button:Xn,card:jn,group:Zn,chip:Kn,details:Yn,dialog:Qn,_drawer:_n,divider:$n,errorsummary:to,_errorsummary:eo,field:no,_datalist:oo,affixes:io,fieldset:ro,fileupload:ao,helptext:so,input:lo,law:co,grid:uo,flex:po,link:mo,logo:fo,pagination:ho,popover:go,progress:vo,_indeterminate:bo,skeleton:wo,_skeleton:yo,spinner:xo,steps:Eo,table:So,_scrollShadow:ko,tabs:To,_scrollMask:Ao,tag:Lo,toast:Co,_toastClose:Oo,_toastOpen:Io,_toastTimeout:Mo,togglegroup:No,_tooltip:Ro,heading:Po,ingress:Wo,muted:qo,info:Vo,prose:Do,validation:Uo,body:zo,_checked:Fo},pa=Object.freeze(Object.defineProperty({__proto__:null,_checked:Fo,_datalist:oo,_drawer:_n,_errorsummary:eo,_indeterminate:bo,_scrollMask:Ao,_scrollShadow:ko,_skeleton:yo,_toastClose:Oo,_toastOpen:Io,_toastTimeout:Mo,_tooltip:Ro,affixes:io,alert:zn,app:Fn,avatar:Gn,badge:Jn,body:zo,breadcrumbs:Hn,button:Xn,card:jn,chip:Kn,default:k,details:Yn,dialog:Qn,divider:$n,errorsummary:to,field:no,fieldset:ro,fileupload:ao,flex:po,grid:uo,group:Zn,heading:Po,helptext:so,info:Vo,ingress:Wo,input:lo,law:co,link:mo,logo:fo,muted:qo,pagination:ho,popover:go,progress:vo,prose:Do,skeleton:wo,spinner:xo,steps:Eo,sticky:Bn,table:So,tabs:To,tag:Lo,toast:Co,togglegroup:No,validation:Uo},Symbol.toStringTag,{value:"Module"})),gt=Math.min,q=Math.max,ee=Math.round,ne=Math.floor,G=t=>({x:t,y:t}),ma={left:"right",right:"left",bottom:"top",top:"bottom"},fa={start:"end",end:"start"};function Bo(t,e,n){return q(t,gt(e,n))}function oe(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function ie(t){return t.split("-")[1]}function Go(t){return t==="x"?"y":"x"}function Jo(t){return t==="y"?"height":"width"}const ha=new Set(["top","bottom"]);function $(t){return ha.has(it(t))?"y":"x"}function Ho(t){return Go($(t))}function ga(t,e,n){n===void 0&&(n=!1);const o=ie(t),i=Ho(t),r=Jo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=re(a)),[a,re(a)]}function va(t){const e=re(t);return[We(t),e,We(e)]}function We(t){return t.replace(/start|end/g,e=>fa[e])}const Xo=["left","right"],jo=["right","left"],ba=["top","bottom"],wa=["bottom","top"];function ya(t,e,n){switch(t){case"top":case"bottom":return n?e?jo:Xo:e?Xo:jo;case"left":case"right":return e?ba:wa;default:return[]}}function xa(t,e,n,o){const i=ie(t);let r=ya(it(t),n==="start",o);return i&&(r=r.map(a=>a+"-"+i),e&&(r=r.concat(r.map(We)))),r}function re(t){return t.replace(/left|right|bottom|top/g,e=>ma[e])}function Ea(t){return{top:0,right:0,bottom:0,left:0,...t}}function Sa(t){return typeof t!="number"?Ea(t):{top:t,right:t,bottom:t,left:t}}function ae(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Zo(t,e,n){let{reference:o,floating:i}=t;const r=$(e),a=Ho(e),s=Jo(a),l=it(e),c=r==="y",d=o.x+o.width/2-i.width/2,p=o.y+o.height/2-i.height/2,h=o[s]/2-i[s]/2;let v;switch(l){case"top":v={x:d,y:o.y-i.height};break;case"bottom":v={x:d,y:o.y+o.height};break;case"right":v={x:o.x+o.width,y:p};break;case"left":v={x:o.x-i.width,y:p};break;default:v={x:o.x,y:o.y}}switch(ie(e)){case"start":v[a]-=h*(n&&c?-1:1);break;case"end":v[a]+=h*(n&&c?-1:1);break}return v}const ka=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:p}=Zo(c,o,l),h=o,v={},u=0;for(let f=0;f<s.length;f++){const{name:g,fn:b}=s[f],{x:w,y,data:x,reset:S}=await b({x:d,y:p,initialPlacement:o,placement:h,strategy:i,middlewareData:v,rects:c,platform:a,elements:{reference:t,floating:e}});d=w??d,p=y??p,v={...v,[g]:{...v[g],...x}},S&&u<=50&&(u++,typeof S=="object"&&(S.placement&&(h=S.placement),S.rects&&(c=S.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:d,y:p}=Zo(c,h,l)),f=-1)}return{x:d,y:p,placement:h,strategy:i,middlewareData:v}};async function qe(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:v=0}=oe(e,t),u=Sa(v),g=s[h?p==="floating"?"reference":"floating":p],b=ae(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(g)))==null||n?g:g.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),w=p==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),x=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},S=ae(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:y,strategy:l}):w);return{top:(b.top-S.top+u.top)/x.y,bottom:(S.bottom-b.bottom+u.bottom)/x.y,left:(b.left-S.left+u.left)/x.x,right:(S.right-b.right+u.right)/x.x}}const Ta=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:p=!0,fallbackPlacements:h,fallbackStrategy:v="bestFit",fallbackAxisSideDirection:u="none",flipAlignment:f=!0,...g}=oe(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const b=it(i),w=$(s),y=it(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),S=h||(y||!f?[re(s)]:va(s)),O=u!=="none";!h&&O&&S.push(...xa(s,f,u,x));const X=[s,...S],dt=await qe(e,g),ut=[];let _=((o=r.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[b]),p){const pt=ga(i,a,x);ut.push(dt[pt[0]],dt[pt[1]])}if(_=[..._,{placement:i,overflows:ut}],!ut.every(pt=>pt<=0)){var Pt,Wt;const pt=(((Pt=r.flip)==null?void 0:Pt.index)||0)+1,pn=X[pt];if(pn&&(!(p==="alignment"?w!==$(pn):!1)||_.every(B=>$(B.placement)===w?B.overflows[0]>0:!0)))return{data:{index:pt,overflows:_},reset:{placement:pn}};let Vt=(Wt=_.filter(mt=>mt.overflows[0]<=0).sort((mt,B)=>mt.overflows[1]-B.overflows[1])[0])==null?void 0:Wt.placement;if(!Vt)switch(v){case"bestFit":{var qt;const mt=(qt=_.filter(B=>{if(O){const et=$(B.placement);return et===w||et==="y"}return!0}).map(B=>[B.placement,B.overflows.filter(et=>et>0).reduce((et,Pc)=>et+Pc,0)]).sort((B,et)=>B[1]-et[1])[0])==null?void 0:qt[0];mt&&(Vt=mt);break}case"initialPlacement":Vt=s;break}if(i!==Vt)return{reset:{placement:Vt}}}return{}}}},Aa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:g=>{let{x:b,y:w}=g;return{x:b,y:w}}},...l}=oe(t,e),c={x:n,y:o},d=await qe(e,l),p=$(it(i)),h=Go(p);let v=c[h],u=c[p];if(r){const g=h==="y"?"top":"left",b=h==="y"?"bottom":"right",w=v+d[g],y=v-d[b];v=Bo(w,v,y)}if(a){const g=p==="y"?"top":"left",b=p==="y"?"bottom":"right",w=u+d[g],y=u-d[b];u=Bo(w,u,y)}const f=s.fn({...e,[h]:v,[p]:u});return{...f,data:{x:f.x-n,y:f.y-o,enabled:{[h]:r,[p]:a}}}}}},La=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=oe(t,e),d=await qe(e,c),p=it(i),h=ie(i),v=$(i)==="y",{width:u,height:f}=r.floating;let g,b;p==="top"||p==="bottom"?(g=p,b=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=p,g=h==="end"?"top":"bottom");const w=f-d.top-d.bottom,y=u-d.left-d.right,x=gt(f-d[g],w),S=gt(u-d[b],y),O=!e.middlewareData.shift;let X=x,dt=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(X=w),O&&!h){const _=q(d.left,0),Pt=q(d.right,0),Wt=q(d.top,0),qt=q(d.bottom,0);v?dt=u-2*(_!==0||Pt!==0?_+Pt:q(d.left,d.right)):X=f-2*(Wt!==0||qt!==0?Wt+qt:q(d.top,d.bottom))}await l({...e,availableWidth:dt,availableHeight:X});const ut=await a.getDimensions(s.floating);return u!==ut.width||f!==ut.height?{reset:{rects:!0}}:{}}}};function se(){return typeof window<"u"}function vt(t){return Ko(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function J(t){var e;return(e=(Ko(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ko(t){return se()?t instanceof Node||t instanceof V(t).Node:!1}function D(t){return se()?t instanceof Element||t instanceof V(t).Element:!1}function H(t){return se()?t instanceof HTMLElement||t instanceof V(t).HTMLElement:!1}function Yo(t){return!se()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof V(t).ShadowRoot}const Ca=new Set(["inline","contents"]);function kt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=U(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ca.has(i)}const Oa=new Set(["table","td","th"]);function Ia(t){return Oa.has(vt(t))}const Ma=[":popover-open",":modal"];function le(t){return Ma.some(e=>{try{return t.matches(e)}catch{return!1}})}const Na=["transform","translate","scale","rotate","perspective"],Ra=["transform","translate","scale","rotate","perspective","filter"],Pa=["paint","layout","strict","content"];function Ve(t){const e=De(),n=D(t)?U(t):t;return Na.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||Ra.some(o=>(n.willChange||"").includes(o))||Pa.some(o=>(n.contain||"").includes(o))}function Wa(t){let e=tt(t);for(;H(e)&&!bt(e);){if(Ve(e))return e;if(le(e))return null;e=tt(e)}return null}function De(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const qa=new Set(["html","body","#document"]);function bt(t){return qa.has(vt(t))}function U(t){return V(t).getComputedStyle(t)}function ce(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tt(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Yo(t)&&t.host||J(t);return Yo(e)?e.host:e}function Qo(t){const e=tt(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:H(e)&&kt(e)?e:Qo(e)}function Tt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Qo(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),a=V(i);if(r){const s=Ue(a);return e.concat(a,a.visualViewport||[],kt(i)?i:[],s&&n?Tt(s):[])}return e.concat(i,Tt(i,[],n))}function Ue(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _o(t){const e=U(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=H(t),r=i?t.offsetWidth:n,a=i?t.offsetHeight:o,s=ee(n)!==r||ee(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function ze(t){return D(t)?t:t.contextElement}function wt(t){const e=ze(t);if(!H(e))return G(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=_o(e);let a=(r?ee(n.width):n.width)/o,s=(r?ee(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Va=G(0);function $o(t){const e=V(t);return!De()||!e.visualViewport?Va:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Da(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==V(t)?!1:e}function rt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=ze(t);let a=G(1);e&&(o?D(o)&&(a=wt(o)):a=wt(t));const s=Da(r,n,o)?$o(r):G(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,p=i.height/a.y;if(r){const h=V(r),v=o&&D(o)?V(o):o;let u=h,f=Ue(u);for(;f&&o&&v!==u;){const g=wt(f),b=f.getBoundingClientRect(),w=U(f),y=b.left+(f.clientLeft+parseFloat(w.paddingLeft))*g.x,x=b.top+(f.clientTop+parseFloat(w.paddingTop))*g.y;l*=g.x,c*=g.y,d*=g.x,p*=g.y,l+=y,c+=x,u=V(f),f=Ue(u)}}return ae({width:d,height:p,x:l,y:c})}function de(t,e){const n=ce(t).scrollLeft;return e?e.left+n:rt(J(t)).left+n}function ti(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-de(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Ua(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",a=J(o),s=e?le(e.floating):!1;if(o===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=G(1);const d=G(0),p=H(o);if((p||!p&&!r)&&((vt(o)!=="body"||kt(a))&&(l=ce(o)),H(o))){const v=rt(o);c=wt(o),d.x=v.x+o.clientLeft,d.y=v.y+o.clientTop}const h=a&&!p&&!r?ti(a,l):G(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function za(t){return Array.from(t.getClientRects())}function Fa(t){const e=J(t),n=ce(t),o=t.ownerDocument.body,i=q(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=q(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+de(t);const s=-n.scrollTop;return U(o).direction==="rtl"&&(a+=q(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:a,y:s}}const ei=25;function Ba(t,e){const n=V(t),o=J(t),i=n.visualViewport;let r=o.clientWidth,a=o.clientHeight,s=0,l=0;if(i){r=i.width,a=i.height;const d=De();(!d||d&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=de(o);if(c<=0){const d=o.ownerDocument,p=d.body,h=getComputedStyle(p),v=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,u=Math.abs(o.clientWidth-p.clientWidth-v);u<=ei&&(r-=u)}else c<=ei&&(r+=c);return{width:r,height:a,x:s,y:l}}const Ga=new Set(["absolute","fixed"]);function Ja(t,e){const n=rt(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=H(t)?wt(t):G(1),a=t.clientWidth*r.x,s=t.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:a,height:s,x:l,y:c}}function ni(t,e,n){let o;if(e==="viewport")o=Ba(t,n);else if(e==="document")o=Fa(J(t));else if(D(e))o=Ja(e,n);else{const i=$o(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ae(o)}function oi(t,e){const n=tt(t);return n===e||!D(n)||bt(n)?!1:U(n).position==="fixed"||oi(n,e)}function Ha(t,e){const n=e.get(t);if(n)return n;let o=Tt(t,[],!1).filter(s=>D(s)&&vt(s)!=="body"),i=null;const r=U(t).position==="fixed";let a=r?tt(t):t;for(;D(a)&&!bt(a);){const s=U(a),l=Ve(a);!l&&s.position==="fixed"&&(i=null),(r?!l&&!i:!l&&s.position==="static"&&!!i&&Ga.has(i.position)||kt(a)&&!l&&oi(t,a))?o=o.filter(d=>d!==a):i=s,a=tt(a)}return e.set(t,o),o}function Xa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?le(e)?[]:Ha(e,this._c):[].concat(n),o],s=a[0],l=a.reduce((c,d)=>{const p=ni(e,d,i);return c.top=q(p.top,c.top),c.right=gt(p.right,c.right),c.bottom=gt(p.bottom,c.bottom),c.left=q(p.left,c.left),c},ni(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function ja(t){const{width:e,height:n}=_o(t);return{width:e,height:n}}function Za(t,e,n){const o=H(e),i=J(e),r=n==="fixed",a=rt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=G(0);function c(){l.x=de(i)}if(o||!o&&!r)if((vt(e)!=="body"||kt(i))&&(s=ce(e)),o){const v=rt(e,!0,r,e);l.x=v.x+e.clientLeft,l.y=v.y+e.clientTop}else i&&c();r&&!o&&i&&c();const d=i&&!o&&!r?ti(i,s):G(0),p=a.left+s.scrollLeft-l.x-d.x,h=a.top+s.scrollTop-l.y-d.y;return{x:p,y:h,width:a.width,height:a.height}}function Fe(t){return U(t).position==="static"}function ii(t,e){if(!H(t)||U(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return J(t)===n&&(n=n.ownerDocument.body),n}function ri(t,e){const n=V(t);if(le(t))return n;if(!H(t)){let i=tt(t);for(;i&&!bt(i);){if(D(i)&&!Fe(i))return i;i=tt(i)}return n}let o=ii(t,e);for(;o&&Ia(o)&&Fe(o);)o=ii(o,e);return o&&bt(o)&&Fe(o)&&!Ve(o)?n:o||Wa(t)||n}const Ka=async function(t){const e=this.getOffsetParent||ri,n=this.getDimensions,o=await n(t.floating);return{reference:Za(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ya(t){return U(t).direction==="rtl"}const Qa={convertOffsetParentRelativeRectToViewportRelativeRect:Ua,getDocumentElement:J,getClippingRect:Xa,getOffsetParent:ri,getElementRects:Ka,getClientRects:za,getDimensions:ja,getScale:wt,isElement:D,isRTL:Ya};function ai(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function _a(t,e){let n=null,o;const i=J(t);function r(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const c=t.getBoundingClientRect(),{left:d,top:p,width:h,height:v}=c;if(s||e(),!h||!v)return;const u=ne(p),f=ne(i.clientWidth-(d+h)),g=ne(i.clientHeight-(p+v)),b=ne(d),y={rootMargin:-u+"px "+-f+"px "+-g+"px "+-b+"px",threshold:q(0,gt(1,l))||1};let x=!0;function S(O){const X=O[0].intersectionRatio;if(X!==l){if(!x)return a();X?a(!1,X):o=setTimeout(()=>{a(!1,1e-7)},1e3)}X===1&&!ai(c,t.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(S,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,y)}n.observe(t)}return a(!0),r}function $a(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=ze(t),d=i||r?[...c?Tt(c):[],...Tt(e)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),r&&b.addEventListener("resize",n)});const p=c&&s?_a(c,n):null;let h=-1,v=null;a&&(v=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&v&&(v.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=v)==null||y.observe(e)})),n()}),c&&!l&&v.observe(c),v.observe(e));let u,f=l?rt(t):null;l&&g();function g(){const b=rt(t);f&&!ai(f,b)&&n(),f=b,u=requestAnimationFrame(g)}return n(),()=>{var b;d.forEach(w=>{i&&w.removeEventListener("scroll",n),r&&w.removeEventListener("resize",n)}),p?.(),(b=v)==null||b.disconnect(),v=null,l&&cancelAnimationFrame(u)}}const si=Aa,li=Ta,ts=La,es=(t,e,n)=>{const o=new Map,i={platform:Qa,...n},r={...i.platform,_c:o};return ka(t,e,{...i,platform:r})};function ci(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=ci(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function ns(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=ci(t))&&(o&&(o+=" "),o+=e);return o}const N={capture:!0,passive:!0},R=()=>typeof window<"u"&&typeof document<"u";function di(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const ue=(t,e,...n)=>console.warn(`\x1B[1m@mattilsynet/design - deprecation warning:\x1B[m \x1B[103m${t}\x1B[m is deprecated, please use \x1B[103m${e}\x1B[m instead`,...n);function m(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let os=0;const is=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function pe(t){return t.id||(t.id=`${is}${++os}`),t.id}const ui=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},A=(t,...e)=>(ui("add",t,e),()=>pi(t,...e)),pi=(t,...e)=>ui("remove",t,e),P=t=>{if(!R()||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():A(window,"load",e)},Be=new WeakMap,rs=`.${k.dialog.split(" ")[0]}`;function at(t,e,{contain:n,middleware:o,placement:i,...r}={}){if(Be.get(t)?.(),Be.delete(t),e){const a=t.closest(rs)?.querySelector(":scope > footer"),s=Number(m(t,"data-inset"))||20,c={bottom:(a?.clientHeight||0)+s,left:s,right:s,top:s},d=m(t,"data-position")??"bottom";Be.set(t,$a(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return at(t,!1);es(e,t,{...r,placement:i||d,middleware:[li({padding:c}),si(),...n?[ts({padding:c,apply:n})]:[],...o||[]]}).then(({x:p,y:h})=>{t.style.left=`${p}px`,t.style.top=`${h}px`})}))}}function j(t,e){let n=0;const o=Array.isArray(e)||typeof e=="string"?{attr:e}:e,i=()=>setTimeout(r,o?.delay??200),r=()=>{if(!R())return s();t(a),a.takeRecords(),n=0},a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))}),s=()=>{try{a.disconnect()}catch{}};return a.observe(o?.root||document.documentElement,{attributeFilter:[].concat(o.attr),attributes:!0,childList:!0,subtree:!0}),t(a),s}function as(t,e){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}const Ge=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),C=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,r]of Object.entries(e))m(o,i,r);return o},ss=typeof HTMLElement>"u"?class{}:HTMLElement,ls=(t,e)=>!R()||window.customElements.get(t)||window.customElements.define(t,e),cs=`[data-command="toggle-app-expanded"],.${k.app.split(" ")[0]} > [command="show-modal"]`,ds=`.${k.breadcrumbs.split(" ")[0]}`,us=`.${k.card.split(" ")[0]}`,mi=`.${k.chip.split(" ")[0]}`,ps=`.${k.helptext.split(" ")[0]}`,ms=`.${k.pagination.split(" ")[0]}`,fs='summary,u-summary,a,button,[role="tab"],[role="button"]',hs="click,toggle,submit,change",Je="mattilsynet.matomo.cloud",gs=["setCustomUrl","setDocumentTitle","setReferrerUrl"],z="mtds-analytics-banner",vs="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function fi(t,e={}){if(R()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Je}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&bs();const a=r?`https://cdn.matomo.cloud/${Je}/container_${r}.js`:`https://cdn.matomo.cloud/${Je}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(C("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:r}=e,a=["trackEvent",n,o,i,r];let s=location.href;window._paq.push([function(){s=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",s.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",s])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;gs.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function bs(){if(document.getElementById(z)||window.localStorage.getItem(z))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${z}" data-analytics="ignore"><style>
158
+ }`,fa="2.3.2",Fn="_alert_1p489_1 _ds-alert_1331q_3",Bn="_app_1p489_1",Gn="_sticky_1p489_1",Jn="_avatar_1p489_1 _ds-avatar_1331q_1",Hn="_badge_1p489_1",Xn="_breadcrumbs_1p489_1 _ds-breadcrumbs_1331q_5",jn="_button_1p489_1 _ds-button_1331q_1",Zn="_card_1p489_1",Kn="_group_1p489_1",Yn="_chip_1p489_1 _ds-chip_1331q_5",Qn="_details_1p489_1 _ds-details_1331q_3",_n="_dialog_1p489_1 _ds-dialog_1331q_5",$n="__drawer_1p489_1",to="_divider_1p489_1",eo="_errorsummary_1p489_1 _ds-error-summary_1331q_5",no="__errorsummary_1p489_1",oo="_field_1p489_1 _ds-field_1331q_1",io="__datalist_1p489_1",ro="_affixes_1p489_1 _ds-field-affixes_1331q_3",ao="_fieldset_1p489_1 _ds-fieldset_1331q_3",so="_fileupload_1p489_1",lo="_helptext_1p489_1 _ds-focus_1331q_1",co="_input_1p489_1 _ds-input_1331q_1",uo="_law_1p489_1",po="_grid_1p489_1",mo="_flex_1p489_1",fo="_link_1p489_1",ho="_logo_1p489_1",go="_pagination_1p489_1 _ds-pagination_1331q_5",vo="_popover_1p489_1",bo="_progress_1p489_1",wo="__indeterminate_1p489_1",yo="_skeleton_1p489_1 _ds-skeleton_1331q_5",xo="__skeleton_1p489_1",Eo="_spinner_1p489_1",So="_steps_1p489_1",ko="_table_1p489_1 _ds-table_1331q_5",To="__scrollShadow_1p489_1",Ao="_tabs_1p489_1 _ds-tabs_1331q_5",Lo="__scrollMask_1p489_1",Co="_tag_1p489_1 _ds-tag_1331q_5",Oo="_toast_1p489_1",Io="__toastClose_1p489_1",Mo="__toastOpen_1p489_1",No="__toastTimeout_1p489_1",Ro="_togglegroup_1p489_1",Po="__tooltip_1p489_1",Wo="_heading_1p489_1 _ds-heading_1331q_1",qo="_ingress_1p489_1",Vo="_muted_1p489_1",Do="_info_1p489_1",Uo="_prose_1p489_1",zo="_validation_1p489_1 _ds-validation-message_1331q_1",Fo="_body_1p489_186",Bo="__checked_1p489_1",k={alert:Fn,app:Bn,sticky:Gn,avatar:Jn,badge:Hn,breadcrumbs:Xn,button:jn,card:Zn,group:Kn,chip:Yn,details:Qn,dialog:_n,_drawer:$n,divider:to,errorsummary:eo,_errorsummary:no,field:oo,_datalist:io,affixes:ro,fieldset:ao,fileupload:so,helptext:lo,input:co,law:uo,grid:po,flex:mo,link:fo,logo:ho,pagination:go,popover:vo,progress:bo,_indeterminate:wo,skeleton:yo,_skeleton:xo,spinner:Eo,steps:So,table:ko,_scrollShadow:To,tabs:Ao,_scrollMask:Lo,tag:Co,toast:Oo,_toastClose:Io,_toastOpen:Mo,_toastTimeout:No,togglegroup:Ro,_tooltip:Po,heading:Wo,ingress:qo,muted:Vo,info:Do,prose:Uo,validation:zo,body:Fo,_checked:Bo},ha=Object.freeze(Object.defineProperty({__proto__:null,_checked:Bo,_datalist:io,_drawer:$n,_errorsummary:no,_indeterminate:wo,_scrollMask:Lo,_scrollShadow:To,_skeleton:xo,_toastClose:Io,_toastOpen:Mo,_toastTimeout:No,_tooltip:Po,affixes:ro,alert:Fn,app:Bn,avatar:Jn,badge:Hn,body:Fo,breadcrumbs:Xn,button:jn,card:Zn,chip:Yn,default:k,details:Qn,dialog:_n,divider:to,errorsummary:eo,field:oo,fieldset:ao,fileupload:so,flex:mo,grid:po,group:Kn,heading:Wo,helptext:lo,info:Do,ingress:qo,input:co,law:uo,link:fo,logo:ho,muted:Vo,pagination:go,popover:vo,progress:bo,prose:Uo,skeleton:yo,spinner:Eo,steps:So,sticky:Gn,table:ko,tabs:Ao,tag:Co,toast:Oo,togglegroup:Ro,validation:zo},Symbol.toStringTag,{value:"Module"})),gt=Math.min,q=Math.max,ne=Math.round,oe=Math.floor,J=t=>({x:t,y:t}),ga={left:"right",right:"left",bottom:"top",top:"bottom"},va={start:"end",end:"start"};function Go(t,e,n){return q(t,gt(e,n))}function ie(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function re(t){return t.split("-")[1]}function Jo(t){return t==="x"?"y":"x"}function Ho(t){return t==="y"?"height":"width"}const ba=new Set(["top","bottom"]);function $(t){return ba.has(it(t))?"y":"x"}function Xo(t){return Jo($(t))}function wa(t,e,n){n===void 0&&(n=!1);const o=re(t),i=Xo(t),r=Ho(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=ae(a)),[a,ae(a)]}function ya(t){const e=ae(t);return[qe(t),e,qe(e)]}function qe(t){return t.replace(/start|end/g,e=>va[e])}const jo=["left","right"],Zo=["right","left"],xa=["top","bottom"],Ea=["bottom","top"];function Sa(t,e,n){switch(t){case"top":case"bottom":return n?e?Zo:jo:e?jo:Zo;case"left":case"right":return e?xa:Ea;default:return[]}}function ka(t,e,n,o){const i=re(t);let r=Sa(it(t),n==="start",o);return i&&(r=r.map(a=>a+"-"+i),e&&(r=r.concat(r.map(qe)))),r}function ae(t){return t.replace(/left|right|bottom|top/g,e=>ga[e])}function Ta(t){return{top:0,right:0,bottom:0,left:0,...t}}function Aa(t){return typeof t!="number"?Ta(t):{top:t,right:t,bottom:t,left:t}}function se(t){const{x:e,y:n,width:o,height:i}=t;return{width:o,height:i,top:n,left:e,right:e+o,bottom:n+i,x:e,y:n}}function Ko(t,e,n){let{reference:o,floating:i}=t;const r=$(e),a=Xo(e),s=Ho(a),l=it(e),c=r==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,h=o[s]/2-i[s]/2;let g;switch(l){case"top":g={x:d,y:o.y-i.height};break;case"bottom":g={x:d,y:o.y+o.height};break;case"right":g={x:o.x+o.width,y:u};break;case"left":g={x:o.x-i.width,y:u};break;default:g={x:o.x,y:o.y}}switch(re(e)){case"start":g[a]-=h*(n&&c?-1:1);break;case"end":g[a]+=h*(n&&c?-1:1);break}return g}const La=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(a.isRTL==null?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Ko(c,o,l),h=o,g={},w=0;for(let p=0;p<s.length;p++){const{name:v,fn:f}=s[p],{x:b,y,data:x,reset:E}=await f({x:d,y:u,initialPlacement:o,placement:h,strategy:i,middlewareData:g,rects:c,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,g={...g,[v]:{...g[v],...x}},E&&w<=50&&(w++,typeof E=="object"&&(E.placement&&(h=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Ko(c,h,l)),p=-1)}return{x:d,y:u,placement:h,strategy:i,middlewareData:g}};async function Ve(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:h=!1,padding:g=0}=ie(e,t),w=Aa(g),v=s[h?u==="floating"?"reference":"floating":u],f=se(await r.getClippingRect({element:(n=await(r.isElement==null?void 0:r.isElement(v)))==null||n?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),x=await(r.isElement==null?void 0:r.isElement(y))?await(r.getScale==null?void 0:r.getScale(y))||{x:1,y:1}:{x:1,y:1},E=se(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(f.top-E.top+w.top)/x.y,bottom:(E.bottom-f.bottom+w.bottom)/x.y,left:(f.left-E.left+w.left)/x.x,right:(E.right-f.right+w.right)/x.x}}const Ca=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:h,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:w="none",flipAlignment:p=!0,...v}=ie(t,e);if((n=r.arrow)!=null&&n.alignmentOffset)return{};const f=it(i),b=$(s),y=it(s)===s,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=h||(y||!p?[ae(s)]:ya(s)),C=w!=="none";!h&&C&&E.push(...ka(s,p,w,x));const B=[s,...E],dt=await Ve(e,v),ut=[];let _=((o=r.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[f]),u){const pt=wa(i,a,x);ut.push(dt[pt[0]],dt[pt[1]])}if(_=[..._,{placement:i,overflows:ut}],!ut.every(pt=>pt<=0)){var Wt,qt;const pt=(((Wt=r.flip)==null?void 0:Wt.index)||0)+1,mn=B[pt];if(mn&&(!(u==="alignment"?b!==$(mn):!1)||_.every(G=>$(G.placement)===b?G.overflows[0]>0:!0)))return{data:{index:pt,overflows:_},reset:{placement:mn}};let Dt=(qt=_.filter(mt=>mt.overflows[0]<=0).sort((mt,G)=>mt.overflows[1]-G.overflows[1])[0])==null?void 0:qt.placement;if(!Dt)switch(g){case"bestFit":{var Vt;const mt=(Vt=_.filter(G=>{if(C){const et=$(G.placement);return et===b||et==="y"}return!0}).map(G=>[G.placement,G.overflows.filter(et=>et>0).reduce((et,Fc)=>et+Fc,0)]).sort((G,et)=>G[1]-et[1])[0])==null?void 0:Vt[0];mt&&(Dt=mt);break}case"initialPlacement":Dt=s;break}if(i!==Dt)return{reset:{placement:Dt}}}return{}}}},Oa=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:v=>{let{x:f,y:b}=v;return{x:f,y:b}}},...l}=ie(t,e),c={x:n,y:o},d=await Ve(e,l),u=$(it(i)),h=Jo(u);let g=c[h],w=c[u];if(r){const v=h==="y"?"top":"left",f=h==="y"?"bottom":"right",b=g+d[v],y=g-d[f];g=Go(b,g,y)}if(a){const v=u==="y"?"top":"left",f=u==="y"?"bottom":"right",b=w+d[v],y=w-d[f];w=Go(b,w,y)}const p=s.fn({...e,[h]:g,[u]:w});return{...p,data:{x:p.x-n,y:p.y-o,enabled:{[h]:r,[u]:a}}}}}},Ia=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=ie(t,e),d=await Ve(e,c),u=it(i),h=re(i),g=$(i)==="y",{width:w,height:p}=r.floating;let v,f;u==="top"||u==="bottom"?(v=u,f=h===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(f=u,v=h==="end"?"top":"bottom");const b=p-d.top-d.bottom,y=w-d.left-d.right,x=gt(p-d[v],b),E=gt(w-d[f],y),C=!e.middlewareData.shift;let B=x,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(B=b),C&&!h){const _=q(d.left,0),Wt=q(d.right,0),qt=q(d.top,0),Vt=q(d.bottom,0);g?dt=w-2*(_!==0||Wt!==0?_+Wt:q(d.left,d.right)):B=p-2*(qt!==0||Vt!==0?qt+Vt:q(d.top,d.bottom))}await l({...e,availableWidth:dt,availableHeight:B});const ut=await a.getDimensions(s.floating);return w!==ut.width||p!==ut.height?{reset:{rects:!0}}:{}}}};function le(){return typeof window<"u"}function vt(t){return Yo(t)?(t.nodeName||"").toLowerCase():"#document"}function V(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function H(t){var e;return(e=(Yo(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Yo(t){return le()?t instanceof Node||t instanceof V(t).Node:!1}function D(t){return le()?t instanceof Element||t instanceof V(t).Element:!1}function X(t){return le()?t instanceof HTMLElement||t instanceof V(t).HTMLElement:!1}function Qo(t){return!le()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof V(t).ShadowRoot}const Ma=new Set(["inline","contents"]);function kt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=U(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Ma.has(i)}const Na=new Set(["table","td","th"]);function Ra(t){return Na.has(vt(t))}const Pa=[":popover-open",":modal"];function ce(t){return Pa.some(e=>{try{return t.matches(e)}catch{return!1}})}const Wa=["transform","translate","scale","rotate","perspective"],qa=["transform","translate","scale","rotate","perspective","filter"],Va=["paint","layout","strict","content"];function De(t){const e=Ue(),n=D(t)?U(t):t;return Wa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||qa.some(o=>(n.willChange||"").includes(o))||Va.some(o=>(n.contain||"").includes(o))}function Da(t){let e=tt(t);for(;X(e)&&!bt(e);){if(De(e))return e;if(ce(e))return null;e=tt(e)}return null}function Ue(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const Ua=new Set(["html","body","#document"]);function bt(t){return Ua.has(vt(t))}function U(t){return V(t).getComputedStyle(t)}function de(t){return D(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function tt(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Qo(t)&&t.host||H(t);return Qo(e)?e.host:e}function _o(t){const e=tt(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:X(e)&&kt(e)?e:_o(e)}function Tt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=_o(t),r=i===((o=t.ownerDocument)==null?void 0:o.body),a=V(i);if(r){const s=ze(a);return e.concat(a,a.visualViewport||[],kt(i)?i:[],s&&n?Tt(s):[])}return e.concat(i,Tt(i,[],n))}function ze(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function $o(t){const e=U(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=X(t),r=i?t.offsetWidth:n,a=i?t.offsetHeight:o,s=ne(n)!==r||ne(o)!==a;return s&&(n=r,o=a),{width:n,height:o,$:s}}function Fe(t){return D(t)?t:t.contextElement}function wt(t){const e=Fe(t);if(!X(e))return J(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:r}=$o(e);let a=(r?ne(n.width):n.width)/o,s=(r?ne(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const za=J(0);function ti(t){const e=V(t);return!Ue()||!e.visualViewport?za:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Fa(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==V(t)?!1:e}function rt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),r=Fe(t);let a=J(1);e&&(o?D(o)&&(a=wt(o)):a=wt(t));const s=Fa(r,n,o)?ti(r):J(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(r){const h=V(r),g=o&&D(o)?V(o):o;let w=h,p=ze(w);for(;p&&o&&g!==w;){const v=wt(p),f=p.getBoundingClientRect(),b=U(p),y=f.left+(p.clientLeft+parseFloat(b.paddingLeft))*v.x,x=f.top+(p.clientTop+parseFloat(b.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,u*=v.y,l+=y,c+=x,w=V(p),p=ze(w)}}return se({width:d,height:u,x:l,y:c})}function ue(t,e){const n=de(t).scrollLeft;return e?e.left+n:rt(H(t)).left+n}function ei(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ue(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Ba(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const r=i==="fixed",a=H(o),s=e?ce(e.floating):!1;if(o===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=J(1);const d=J(0),u=X(o);if((u||!u&&!r)&&((vt(o)!=="body"||kt(a))&&(l=de(o)),X(o))){const g=rt(o);c=wt(o),d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}const h=a&&!u&&!r?ei(a,l):J(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-l.scrollTop*c.y+d.y+h.y}}function Ga(t){return Array.from(t.getClientRects())}function Ja(t){const e=H(t),n=de(t),o=t.ownerDocument.body,i=q(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),r=q(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ue(t);const s=-n.scrollTop;return U(o).direction==="rtl"&&(a+=q(e.clientWidth,o.clientWidth)-i),{width:i,height:r,x:a,y:s}}const ni=25;function Ha(t,e){const n=V(t),o=H(t),i=n.visualViewport;let r=o.clientWidth,a=o.clientHeight,s=0,l=0;if(i){r=i.width,a=i.height;const d=Ue();(!d||d&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=ue(o);if(c<=0){const d=o.ownerDocument,u=d.body,h=getComputedStyle(u),g=d.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,w=Math.abs(o.clientWidth-u.clientWidth-g);w<=ni&&(r-=w)}else c<=ni&&(r+=c);return{width:r,height:a,x:s,y:l}}const Xa=new Set(["absolute","fixed"]);function ja(t,e){const n=rt(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,r=X(t)?wt(t):J(1),a=t.clientWidth*r.x,s=t.clientHeight*r.y,l=i*r.x,c=o*r.y;return{width:a,height:s,x:l,y:c}}function oi(t,e,n){let o;if(e==="viewport")o=Ha(t,n);else if(e==="document")o=Ja(H(t));else if(D(e))o=ja(e,n);else{const i=ti(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return se(o)}function ii(t,e){const n=tt(t);return n===e||!D(n)||bt(n)?!1:U(n).position==="fixed"||ii(n,e)}function Za(t,e){const n=e.get(t);if(n)return n;let o=Tt(t,[],!1).filter(s=>D(s)&&vt(s)!=="body"),i=null;const r=U(t).position==="fixed";let a=r?tt(t):t;for(;D(a)&&!bt(a);){const s=U(a),l=De(a);!l&&s.position==="fixed"&&(i=null),(r?!l&&!i:!l&&s.position==="static"&&!!i&&Xa.has(i.position)||kt(a)&&!l&&ii(t,a))?o=o.filter(d=>d!==a):i=s,a=tt(a)}return e.set(t,o),o}function Ka(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?ce(e)?[]:Za(e,this._c):[].concat(n),o],s=a[0],l=a.reduce((c,d)=>{const u=oi(e,d,i);return c.top=q(u.top,c.top),c.right=gt(u.right,c.right),c.bottom=gt(u.bottom,c.bottom),c.left=q(u.left,c.left),c},oi(e,s,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function Ya(t){const{width:e,height:n}=$o(t);return{width:e,height:n}}function Qa(t,e,n){const o=X(e),i=H(e),r=n==="fixed",a=rt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=J(0);function c(){l.x=ue(i)}if(o||!o&&!r)if((vt(e)!=="body"||kt(i))&&(s=de(e)),o){const g=rt(e,!0,r,e);l.x=g.x+e.clientLeft,l.y=g.y+e.clientTop}else i&&c();r&&!o&&i&&c();const d=i&&!o&&!r?ei(i,s):J(0),u=a.left+s.scrollLeft-l.x-d.x,h=a.top+s.scrollTop-l.y-d.y;return{x:u,y:h,width:a.width,height:a.height}}function Be(t){return U(t).position==="static"}function ri(t,e){if(!X(t)||U(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return H(t)===n&&(n=n.ownerDocument.body),n}function ai(t,e){const n=V(t);if(ce(t))return n;if(!X(t)){let i=tt(t);for(;i&&!bt(i);){if(D(i)&&!Be(i))return i;i=tt(i)}return n}let o=ri(t,e);for(;o&&Ra(o)&&Be(o);)o=ri(o,e);return o&&bt(o)&&Be(o)&&!De(o)?n:o||Da(t)||n}const _a=async function(t){const e=this.getOffsetParent||ai,n=this.getDimensions,o=await n(t.floating);return{reference:Qa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function $a(t){return U(t).direction==="rtl"}const ts={convertOffsetParentRelativeRectToViewportRelativeRect:Ba,getDocumentElement:H,getClippingRect:Ka,getOffsetParent:ai,getElementRects:_a,getClientRects:Ga,getDimensions:Ya,getScale:wt,isElement:D,isRTL:$a};function si(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function es(t,e){let n=null,o;const i=H(t);function r(){var s;clearTimeout(o),(s=n)==null||s.disconnect(),n=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const c=t.getBoundingClientRect(),{left:d,top:u,width:h,height:g}=c;if(s||e(),!h||!g)return;const w=oe(u),p=oe(i.clientWidth-(d+h)),v=oe(i.clientHeight-(u+g)),f=oe(d),y={rootMargin:-w+"px "+-p+"px "+-v+"px "+-f+"px",threshold:q(0,gt(1,l))||1};let x=!0;function E(C){const B=C[0].intersectionRatio;if(B!==l){if(!x)return a();B?a(!1,B):o=setTimeout(()=>{a(!1,1e-7)},1e3)}B===1&&!si(c,t.getBoundingClientRect())&&a(),x=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),r}function ns(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Fe(t),d=i||r?[...c?Tt(c):[],...Tt(e)]:[];d.forEach(f=>{i&&f.addEventListener("scroll",n,{passive:!0}),r&&f.addEventListener("resize",n)});const u=c&&s?es(c,n):null;let h=-1,g=null;a&&(g=new ResizeObserver(f=>{let[b]=f;b&&b.target===c&&g&&(g.unobserve(e),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var y;(y=g)==null||y.observe(e)})),n()}),c&&!l&&g.observe(c),g.observe(e));let w,p=l?rt(t):null;l&&v();function v(){const f=rt(t);p&&!si(p,f)&&n(),p=f,w=requestAnimationFrame(v)}return n(),()=>{var f;d.forEach(b=>{i&&b.removeEventListener("scroll",n),r&&b.removeEventListener("resize",n)}),u?.(),(f=g)==null||f.disconnect(),g=null,l&&cancelAnimationFrame(w)}}const li=Oa,ci=Ca,os=Ia,is=(t,e,n)=>{const o=new Map,i={platform:ts,...n},r={...i.platform,_c:o};return La(t,e,{...i,platform:r})};function di(t){var e,n,o="";if(typeof t=="string"||typeof t=="number")o+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(n=di(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function rs(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=di(t))&&(o&&(o+=" "),o+=e);return o}const R={capture:!0,passive:!0},P=()=>typeof window<"u"&&typeof document<"u";function ui(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const At=(t,e,...n)=>console.warn(`\x1B[1m@mattilsynet/design - deprecation warning:\x1B[m \x1B[103m${t}\x1B[m is deprecated, please use \x1B[103m${e}\x1B[m instead`,...n);function m(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let as=0;const ss=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function pe(t){return t.id||(t.id=`${ss}${++as}`),t.id}const pi=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},A=(t,...e)=>(pi("add",t,e),()=>mi(t,...e)),mi=(t,...e)=>pi("remove",t,e),I=t=>{if(!P()||!window.requestAnimationFrame)return;window._mtdsCleanups||(window._mtdsCleanups=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsCleanups?.get(n)?.map(o=>o()),window._mtdsCleanups?.set(n,t())});document.readyState==="complete"?e():A(window,"load",e)},Ge=new WeakMap,ls=`.${k.dialog.split(" ")[0]}`;function at(t,e,{contain:n,middleware:o,placement:i,...r}={}){if(Ge.get(t)?.(),Ge.delete(t),e){const a=t.closest(ls)?.querySelector(":scope > footer"),s=Number(m(t,"data-inset"))||20,c={bottom:(a?.clientHeight||0)+s,left:s,right:s,top:s},d=m(t,"data-position")??"bottom";Ge.set(t,ns(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return at(t,!1);is(e,t,{...r,placement:i||d,middleware:[ci({padding:c}),li(),...n?[os({padding:c,apply:n})]:[],...o||[]]}).then(({x:u,y:h})=>{t.style.left=`${u}px`,t.style.top=`${h}px`})}))}}function j(t,e){let n=0;const o=Array.isArray(e)||typeof e=="string"?{attr:e}:e,i=()=>setTimeout(r,o?.delay??200),r=()=>{if(!P())return s();t(a),a.takeRecords(),n=0},a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))}),s=()=>{try{a.disconnect()}catch{}};return a.observe(o?.root||document.documentElement,{attributeFilter:[].concat(o.attr),attributes:!0,childList:!0,subtree:!0}),t(a),s}function cs(t,e){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}const Je=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),O=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,r]of Object.entries(e))m(o,i,r);return o},ds=typeof HTMLElement>"u"?class{}:HTMLElement,us=(t,e)=>!P()||window.customElements.get(t)||window.customElements.define(t,e),ps=`[data-command="toggle-app-expanded"],.${k.app.split(" ")[0]} > [command="show-modal"]`,ms=`.${k.breadcrumbs.split(" ")[0]}`,fs=`.${k.card.split(" ")[0]}`,fi=`.${k.chip.split(" ")[0]}`,hs=`.${k.helptext.split(" ")[0]}`,gs=`.${k.pagination.split(" ")[0]}`,vs='summary,u-summary,a,button,[role="tab"],[role="button"]',bs="click,toggle,submit,change",He="mattilsynet.matomo.cloud",ws=["setCustomUrl","setDocumentTitle","setReferrerUrl"],z="mtds-analytics-banner",ys="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function hi(t,e={}){if(P()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${He}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&xs();const a=r?`https://cdn.matomo.cloud/${He}/container_${r}.js`:`https://cdn.matomo.cloud/${He}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(O("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:r}=e,a=["trackEvent",n,o,i,r];let s=location.href;window._paq.push([function(){s=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",s.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",s])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;ws.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function xs(){if(document.getElementById(z)||window.localStorage.getItem(z))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${z}" data-analytics="ignore"><style>
159
159
  #${z}[open] { box-sizing: border-box; display: flex; align-items: center; background: #116e6b; border-radius: .5em; border: 0; box-shadow: 0 .25em .5em rgba(0,0,0,.3); color: #fff; font-size: .875em; inset: auto auto 1em 1em; max-width: calc(100vw - 2em); outline: 0; padding: .5em; position: fixed; z-index: 99999 }
160
160
  #${z} button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 1.5em; height: 1.5em; font: 300 1.5em/1.35 sans-serif; border-radius: .25em; place-content: center; transition: .2s; transition-property: background, scale }
161
161
  #${z} button:focus-visible { outline: 2px solid }
@@ -163,9 +163,9 @@ var mtds=(function(L){"use strict";var yr=Object.defineProperty,mn=Object.getOwn
163
163
  #${z} button:active { background: #054449; scale: .9 }
164
164
  #${z} p { margin: 0 .25em }
165
165
  </style>
166
- <p>Vi bruker <a href="${vs}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
166
+ <p>Vi bruker <a href="${ys}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
167
167
  <form method="dialog" data-analytics="ignore"><button type="submit" aria-label="OK">&times;</button></form>
168
- </dialog>`);const e=document.getElementById(z),n=()=>window.localStorage.setItem(z,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function ws(t){window._mtdsTracking?.enabled&&setTimeout(ys,0,t)}function ys({type:t,target:e}){const n=t==="click"?e?.closest?.(fs):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",r=hi(n)||Ss(n)||m(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",r=r||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const a=m(n,"type"),s=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(mi)?"Chip":"Form",o="change",r=hi(s||n)||At(s?.querySelector("legend"))||At(n?.labels?.[0])}else if(m(n,"role")==="tab")i="Tab",o="navigate";else if(m(n,"popovertarget")){if(!xs(n)?.matches(":popover-open"))return;i=n.closest(ps)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(n.matches(cs)){const a=Es(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",r=a&&m(n,"data-tooltip")||At(n)}else if(n.closest(ds))i="Breadcrumbs",o="navigate";else if(n.closest(ms))i="Pagintation",o="navigate";else if(n.closest(us))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(mi))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(m(n,"aria-expanded")!=="true")return;i="Expand",o="open"}else n.nodeName.startsWith("MTDS-ATLAS-")&&(i="Map Marker",o="open");fi("event",{category:m(n,"data-analytics-category")??i,action:m(n,"data-analytics-action")??o,name:m(n,"data-analytics-name")??r})}const At=t=>t?.textContent?.trim()||"",hi=t=>t&&m(t,"aria-label")||"",xs=t=>document.getElementById(m(t,"popovertarget")||""),Es=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),Ss=t=>{const e=At(t),n=At(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};P(()=>[A(document,hs,ws,N)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const He=k.app.split(" ")[0],ks=k.sticky.split(" ")[0],Ts=`[data-command="toggle-app-expanded"],.${He} > [command="show-modal"]`,Xe=`.${He} > dialog,.${He} dialog ~ main`,gi=R()?document.getElementsByClassName(ks):[],vi=t=>{document.startViewTransition?document.startViewTransition(t):t()},bi=t=>vi(()=>window.mtdsToggleAppExpanded?.(t));function As(t){const{target:e,defaultPrevented:n}=t,o=e?.closest?.("a");if(o?.closest("dialog")&&o?.closest(Xe))return wi();if(n||!(e instanceof HTMLButtonElement)||!e.matches(Ts))return;const i=getComputedStyle(e).position==="sticky";t.preventDefault(),i?bi():vi(()=>{const r=document.querySelector(Xe);r?.setAttribute("closedby","any"),r?.showModal()})}function wi(){document.querySelector(Xe)?.close()}let je=0,yt,Z=0,Ze=0,me=0,Ke=!1,Ye=0,st=0;function Ls(){if(!gi?.length)return;const t=gi[0],e=window.scrollY,n=e<st;st=e,n!==yt&&(je=(t.parentElement?.getBoundingClientRect().top||0)+st,yt=n,Ze=t.offsetHeight,me=t.getBoundingClientRect().top+st,Ke=t.offsetHeight<=window.innerHeight,Ye=window.innerHeight),!(Z===-1&&Ke)&&(Z!==-1&&(Ke||yt&&st<=me)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),Z=-1):Z===-1&&!yt?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,st-je)}px`),Z=0):Z!==1&&!yt&&st+Ye>=me+Ze?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${Ye-Ze}px`),Z=1):Z===1&&yt&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${me-je}px`),Z=0))}P(()=>[A(document,"click",As,!0),A(window,"resize",di(wi,100),N),A(window,"scroll",Ls,N)]);const Cs=/<[^>]+\bid="([^"]+)[^>]+>/gi,yi=/\([^)]{1,4}\).{1,9}\d+\/\d+/i,Os=/<(h\d|[^>]+role="heading")[^>]*>(.*?)<\/?(h\d|br|div)/i,Is=/kapittel-\d+-ledd-\d+/,Ms=/<button[^>]+>.*?<\/button>/g,Ns=/►m\d+/i,fe=/<[^>]+>/g,Rs=/<dt([^>]*class="([^"]+)")?[^>]*>(.*?)<\/dt><dd[^>]*>(.*?)<\/dd>/gis,Ps=/<(\/?)(article|footer|section)/gi,Ws=/(src|href)="([^"]+)"/gi,qs=/(<li[^>]*)>\s*<div([^>]*>)|<\/div>(<\/li>)/gi,Vs=/(<li[^>]+data-name="([^"]+)[^>]+>)(\s*<(ul|ol|div)[^>]+>)/gis,Ds=/(<[^>]+class="[^"]*\bnumberedLegalP\b[^>]+>\s*)(\d+\.)(.*?)(?=<\/?(ul|ol|div)|$)/gis,xi="https://lovdata.no/",Us={legacyid:{label:"Datokode",value:""},titleshort:{label:"Korttittel",value:""},title:{label:"Tittel",value:""},url:{label:"Url",value:""}},Qe=t=>Array.from(Array.isArray(t)?t:[t],e=>e instanceof HTMLButtonElement?e.value:e),zs=t=>Array.from(t?.querySelectorAll('button[aria-checked="true"]')||[],e=>e.value),Fs=(t,e)=>{const n=Qe(t);e?.querySelectorAll("button").forEach(o=>{n.includes(o.value)&&m(o,"aria-checked",`${m(o,"aria-checked")!=="true"}`)})},Bs=(t,e)=>{const n=Qe(t);e?.querySelectorAll("button").forEach(o=>{m(o,"aria-checked",`${n.includes(o.value)||!1}`)})},Gs=(t,e)=>{const n=Ei(e);return Qe(t).map(o=>Hs(o,n)).filter(o=>!!o)},Js=t=>{const e=t.slice(0,t.indexOf("</dl>")),n={...Us};for(const o of e.matchAll(Rs)){const i=o[2].replace(/-/g,"").toLowerCase();n[i]={label:o[3],value:o[4]}}return n},Ei=t=>t.includes("<main")?(t.split(/<\/?main[^>]*>/)[1]||"").replace(Ps,"<$1div").replace(qs,"$1$2$3").replace(Ws,(e,n,o)=>`${n}="${o.includes(":")?"":xi}${o}" ${n==="href"?'rel="noopener noreferrer" target="_blank"':""}`).replace(Ds,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span><div class="legalP" id="${lt("id",n)}-ledd-0">${i}</div>`).replace(Vs,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span>${i}`).replace(Cs,(e,n,o,i)=>{const r=Si(e,n,o,i);return`${e}${r?`<button type="button" role="checkbox" aria-label="${r}" value="${n}"></button>`:""}`}):t,Hs=(t,e)=>{const n=Is.test(t),o=t.split("-").map((s,l,c)=>l%2?Xs(c.slice(0,l+1).join("-"),e,n):null).filter(s=>!!s);if(!o.length)return null;const i=o.filter(({url:s})=>s).pop()?.url||"",r=o.filter(s=>s.className==="section"&&yi.test(s.label)),a=o.slice(o.indexOf(r.pop()||o[0])).map(s=>s.label).join(", ");return{...o.slice(-1)[0],path:o,label:a,url:i}},Xs=(t,e,n)=>{const o=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),i=e.slice(o,e.indexOf(">",o)+1),r=lt("class",i),a=lt("data-lovdata-url",i),s=Si(i,t,o,e);return{id:t,className:r,html:js(t,e),url:a?`${xi}${a}`:"",label:!n&&r==="section"&&s?.match(yi)?.[0]||s}},lt=(t,e)=>{const n=` ${t.toLowerCase()}="`,o=e.toLowerCase().indexOf(n),i=o+n.length;return o===-1?"":e.slice(i,e.indexOf('"',i))},js=(t,e)=>{const n=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),o=e.length;let i=n+1,r=0;for(;i&&i<o;)if(i=e.indexOf("<",i)+1,e[i]!=="/")r++;else if(--r<0)break;const a=e.indexOf(">",i)+1;return i?e.slice(n,a).replace(Ms,""):""},Si=(t,e,n,o)=>Zs[lt("class",t)]?.(t,e,n,o)||"",Zs={numberedLegalP:t=>`nr. ${lt("data-numerator",t)}.`,section:(t,e,n,o)=>o.slice(n).match(Os)?.[2]?.replace(fe,"")?.replace(Ns,"").trim()||"",legalArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("legalArticleValue",n));return o.slice(i+1,o.indexOf("</span>",i)).replace(fe,"").replace("Artikkel","artikkel")},legalP:(t,e)=>{const[n,o,i,r]=e.split("-").reverse();return`avsnitt ${(o==="nummer"?1:Number(n))+(r==="nummer"?1:0)}`},listArticle:(t,e,n,o)=>{const i=e.split("-"),r=` id="${i.slice(0,-2).join("-")}"`,a=o.lastIndexOf(r,n),s=o.slice(o.indexOf("<ol",a),n),l=lt("data-name",t)||"-",c=lt("type",s)||"-";let d="punkt";return c==="1"&&(d="tall"),c==="a"&&(d="bokstav"),c==="i"&&(d="romtertall"),`${d} ${l==="-"?i.pop():l.replace(fe,"")}`},marginIdArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("data-marginOriginalId",n));return`nr. ${o.slice(i+1,o.indexOf("</span>",i)).replace(fe,"")}`}},Ks=(t,e,n=Number.POSITIVE_INFINITY)=>{const o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),r=Math.min(Math.max(t+Math.ceil(o),n),e),a=Array.from({length:r+1-i},(s,l)=>l+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&r<e&&a.splice(-2,2,0,e),a},Ys=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Ks(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function I(t,e={}){const n=document.getElementById(e.id||"")||C("dialog");return m(n,"aria-busy",e.busy?"true":null),m(n,"class",ns(k.toast,e.className)),m(n,"closedby",e.closedby||null),m(n,"data-color",e.color||null),m(n,"data-icon",`${e.icon??""}`||null),m(n,"data-timeout",`${e.timeout??""}`||null),m(n,"id",e.id||`${Date.now()}`),m(n,"open",e.open===!1?null:""),n.innerHTML=t,A(n,"animationend",Qs,{once:!0}),document.body.appendChild(n),n.id}function Qs({animationName:t,target:e}){t===k._toastClose&&e.remove()}I.success=(t,e)=>I(t,{color:"success",...e}),I.danger=(t,e)=>I(t,{color:"danger",...e}),I.info=(t,e)=>I(t,{color:"info",...e}),I.warning=(t,e)=>I(t,{color:"warning",...e}),I.neutral=(t,e)=>I(t,{color:"neutral",...e}),I.promise=async function(e,n){const{loading:o,success:i,error:r,...a}=n,s=I(o,{busy:!0,...a});try{const l=await e();return I.success(i,{id:s,busy:!1}),l}catch(l){throw I.danger(r,{id:s,busy:!1}),l}};const _s=k.breadcrumbs.split(" ")[0],ki=R()?document.getElementsByClassName(_s):[];function $s(){if(ki)for(const t of ki)t.querySelectorAll("a").forEach((e,n,{length:o})=>{m(e,"aria-current",n===o-1?"page":null)})}P(()=>[j($s,"class")]);const tl=`/* NOTE: Using --mtds- not --mtds- since we're inside shadow dom */
168
+ </dialog>`);const e=document.getElementById(z),n=()=>window.localStorage.setItem(z,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Es(t){window._mtdsTracking?.enabled&&setTimeout(Ss,0,t)}function Ss({type:t,target:e}){const n=t==="click"?e?.closest?.(vs):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",r=gi(n)||As(n)||m(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",r=r||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const a=m(n,"type"),s=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(fi)?"Chip":"Form",o="change",r=gi(s||n)||Lt(s?.querySelector("legend"))||Lt(n?.labels?.[0])}else if(m(n,"role")==="tab")i="Tab",o="navigate";else if(m(n,"popovertarget")){if(!ks(n)?.matches(":popover-open"))return;i=n.closest(hs)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(n.matches(ps)){const a=Ts(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",r=a&&m(n,"data-tooltip")||Lt(n)}else if(n.closest(ms))i="Breadcrumbs",o="navigate";else if(n.closest(gs))i="Pagintation",o="navigate";else if(n.closest(fs))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(fi))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(m(n,"aria-expanded")!=="true")return;i="Expand",o="open"}else n.nodeName.startsWith("MTDS-ATLAS-")&&(i="Map Marker",o="open");hi("event",{category:m(n,"data-analytics-category")??i,action:m(n,"data-analytics-action")??o,name:m(n,"data-analytics-name")??r})}const Lt=t=>t?.textContent?.trim()||"",gi=t=>t&&m(t,"aria-label")||"",ks=t=>document.getElementById(m(t,"popovertarget")||""),Ts=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),As=t=>{const e=Lt(t),n=Lt(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};I(()=>[A(document,bs,Es,R)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const Xe=k.app.split(" ")[0],Ls=k.sticky.split(" ")[0],Cs=`[data-command="toggle-app-expanded"],.${Xe} > [command="show-modal"]`,je=`.${Xe} > dialog,.${Xe} dialog ~ main`,vi=P()?document.getElementsByClassName(Ls):[],bi=t=>{document.startViewTransition?document.startViewTransition(t):t()},wi=t=>bi(()=>window.mtdsToggleAppExpanded?.(t));function Os(t){const{target:e,defaultPrevented:n}=t,o=e?.closest?.("a");if(o?.closest("dialog")&&o?.closest(je))return yi();if(n||!(e instanceof HTMLButtonElement)||!e.matches(Cs))return;const i=getComputedStyle(e).position==="sticky";t.preventDefault(),i?wi():bi(()=>{const r=document.querySelector(je);r?.setAttribute("closedby","any"),r?.showModal()})}function yi(){document.querySelector(je)?.close()}let Ze=0,yt,Z=0,Ke=0,me=0,Ye=!1,Qe=0,st=0;function Is(){if(!vi?.length)return;const t=vi[0],e=window.scrollY,n=e<st;st=e,n!==yt&&(Ze=(t.parentElement?.getBoundingClientRect().top||0)+st,yt=n,Ke=t.offsetHeight,me=t.getBoundingClientRect().top+st,Ye=t.offsetHeight<=window.innerHeight,Qe=window.innerHeight),!(Z===-1&&Ye)&&(Z!==-1&&(Ye||yt&&st<=me)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),Z=-1):Z===-1&&!yt?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,st-Ze)}px`),Z=0):Z!==1&&!yt&&st+Qe>=me+Ke?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${Qe-Ke}px`),Z=1):Z===1&&yt&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${me-Ze}px`),Z=0))}I(()=>[A(document,"click",Os,!0),A(window,"resize",ui(yi,100),R),A(window,"scroll",Is,R)]);const Ms=/<[^>]+\bid="([^"]+)[^>]+>/gi,xi=/\([^)]{1,4}\).{1,9}\d+\/\d+/i,Ns=/<(h\d|[^>]+role="heading")[^>]*>(.*?)<\/?(h\d|br|div)/i,Rs=/kapittel-\d+-ledd-\d+/,Ps=/<button[^>]+>.*?<\/button>/g,Ws=/►m\d+/i,fe=/<[^>]+>/g,qs=/<dt([^>]*class="([^"]+)")?[^>]*>(.*?)<\/dt><dd[^>]*>(.*?)<\/dd>/gis,Vs=/<(\/?)(article|footer|section)/gi,Ds=/(src|href)="([^"]+)"/gi,Us=/(<li[^>]*)>\s*<div([^>]*>)|<\/div>(<\/li>)/gi,zs=/(<li[^>]+data-name="([^"]+)[^>]+>)(\s*<(ul|ol|div)[^>]+>)/gis,Fs=/(<[^>]+class="[^"]*\bnumberedLegalP\b[^>]+>\s*)(\d+\.)(.*?)(?=<\/?(ul|ol|div)|$)/gis,Ei="https://lovdata.no/",Bs={legacyid:{label:"Datokode",value:""},titleshort:{label:"Korttittel",value:""},title:{label:"Tittel",value:""},url:{label:"Url",value:""}},_e=t=>Array.from(Array.isArray(t)?t:[t],e=>e instanceof HTMLButtonElement?e.value:e),Gs=t=>Array.from(t?.querySelectorAll('button[aria-checked="true"]')||[],e=>e.value),Js=(t,e)=>{const n=_e(t);e?.querySelectorAll("button").forEach(o=>{n.includes(o.value)&&m(o,"aria-checked",`${m(o,"aria-checked")!=="true"}`)})},Hs=(t,e)=>{const n=_e(t);e?.querySelectorAll("button").forEach(o=>{m(o,"aria-checked",`${n.includes(o.value)||!1}`)})},Xs=(t,e)=>{const n=Si(e);return _e(t).map(o=>Zs(o,n)).filter(o=>!!o)},js=t=>{const e=t.slice(0,t.indexOf("</dl>")),n={...Bs};for(const o of e.matchAll(qs)){const i=o[2].replace(/-/g,"").toLowerCase();n[i]={label:o[3],value:o[4]}}return n},Si=t=>t.includes("<main")?(t.split(/<\/?main[^>]*>/)[1]||"").replace(Vs,"<$1div").replace(Us,"$1$2$3").replace(Ds,(e,n,o)=>`${n}="${o.includes(":")?"":Ei}${o}" ${n==="href"?'rel="noopener noreferrer" target="_blank"':""}`).replace(Fs,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span><div class="legalP" id="${lt("id",n)}-ledd-0">${i}</div>`).replace(zs,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span>${i}`).replace(Ms,(e,n,o,i)=>{const r=ki(e,n,o,i);return`${e}${r?`<button type="button" role="checkbox" aria-label="${r}" value="${n}"></button>`:""}`}):t,Zs=(t,e)=>{const n=Rs.test(t),o=t.split("-").map((s,l,c)=>l%2?Ks(c.slice(0,l+1).join("-"),e,n):null).filter(s=>!!s);if(!o.length)return null;const i=o.filter(({url:s})=>s).pop()?.url||"",r=o.filter(s=>s.className==="section"&&xi.test(s.label)),a=o.slice(o.indexOf(r.pop()||o[0])).map(s=>s.label).join(", ");return{...o.slice(-1)[0],path:o,label:a,url:i}},Ks=(t,e,n)=>{const o=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),i=e.slice(o,e.indexOf(">",o)+1),r=lt("class",i),a=lt("data-lovdata-url",i),s=ki(i,t,o,e);return{id:t,className:r,html:Ys(t,e),url:a?`${Ei}${a}`:"",label:!n&&r==="section"&&s?.match(xi)?.[0]||s}},lt=(t,e)=>{const n=` ${t.toLowerCase()}="`,o=e.toLowerCase().indexOf(n),i=o+n.length;return o===-1?"":e.slice(i,e.indexOf('"',i))},Ys=(t,e)=>{const n=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),o=e.length;let i=n+1,r=0;for(;i&&i<o;)if(i=e.indexOf("<",i)+1,e[i]!=="/")r++;else if(--r<0)break;const a=e.indexOf(">",i)+1;return i?e.slice(n,a).replace(Ps,""):""},ki=(t,e,n,o)=>Qs[lt("class",t)]?.(t,e,n,o)||"",Qs={numberedLegalP:t=>`nr. ${lt("data-numerator",t)}.`,section:(t,e,n,o)=>o.slice(n).match(Ns)?.[2]?.replace(fe,"")?.replace(Ws,"").trim()||"",legalArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("legalArticleValue",n));return o.slice(i+1,o.indexOf("</span>",i)).replace(fe,"").replace("Artikkel","artikkel")},legalP:(t,e)=>{const[n,o,i,r]=e.split("-").reverse();return`avsnitt ${(o==="nummer"?1:Number(n))+(r==="nummer"?1:0)}`},listArticle:(t,e,n,o)=>{const i=e.split("-"),r=` id="${i.slice(0,-2).join("-")}"`,a=o.lastIndexOf(r,n),s=o.slice(o.indexOf("<ol",a),n),l=lt("data-name",t)||"-",c=lt("type",s)||"-";let d="punkt";return c==="1"&&(d="tall"),c==="a"&&(d="bokstav"),c==="i"&&(d="romtertall"),`${d} ${l==="-"?i.pop():l.replace(fe,"")}`},marginIdArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("data-marginOriginalId",n));return`nr. ${o.slice(i+1,o.indexOf("</span>",i)).replace(fe,"")}`}},_s=(t,e,n=Number.POSITIVE_INFINITY)=>{const o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),r=Math.min(Math.max(t+Math.ceil(o),n),e),a=Array.from({length:r+1-i},(s,l)=>l+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&r<e&&a.splice(-2,2,0,e),a},$s=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:_s(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function M(t,e={}){const n=document.getElementById(e.id||"")||O("dialog");return m(n,"aria-busy",e.busy?"true":null),m(n,"class",rs(k.toast,e.className)),m(n,"closedby",e.closedby||null),m(n,"data-color",e.color||null),m(n,"data-icon",`${e.icon??""}`||null),m(n,"data-timeout",`${e.timeout??""}`||null),m(n,"id",e.id||`${Date.now()}`),m(n,"open",e.open===!1?null:""),n.innerHTML=t,A(n,"animationend",tl,{once:!0}),document.body.appendChild(n),n.id}function tl({animationName:t,target:e}){t===k._toastClose&&e.remove()}M.success=(t,e)=>M(t,{color:"success",...e}),M.danger=(t,e)=>M(t,{color:"danger",...e}),M.info=(t,e)=>M(t,{color:"info",...e}),M.warning=(t,e)=>M(t,{color:"warning",...e}),M.neutral=(t,e)=>M(t,{color:"neutral",...e}),M.promise=async function(e,n){const{loading:o,success:i,error:r,...a}=n,s=M(o,{busy:!0,...a});try{const l=await e();return M.success(i,{id:s,busy:!1}),l}catch(l){throw M.danger(r,{id:s,busy:!1}),l}};const el=k.breadcrumbs.split(" ")[0],Ti=P()?document.getElementsByClassName(el):[];function nl(){if(Ti)for(const t of Ti)t.querySelectorAll("a").forEach((e,n,{length:o})=>{m(e,"aria-current",n===o-1?"page":null)})}I(()=>[j(nl,"class")]);const ol=`/* NOTE: Using --mtds- not --mtds- since we're inside shadow dom */
169
169
  :host(:not([hidden])) { display: grid; gap: var(--mtds-6) }
170
170
  [data-event] { cursor: pointer } /* Used to forward clicks from Chart ShaowDOM to relevant cell in child table */
171
171
 
@@ -332,17 +332,17 @@ var mtds=(function(L){"use strict";var yr=Object.defineProperty,mn=Object.getOwn
332
332
  vertical-align: middle;
333
333
  width: var(--mtds-5);
334
334
  }
335
- `,el=[.1,.2,.25,.5,1];function nl(t,{aspect:e,type:n}){const i=n==="stacked",r=t[0].reduce((u,f,g)=>{const b=t.map(y=>y[g].number),w=b.reduce((y,x)=>y+x,0);return Math.max(u,...i?[w]:b)},0),a=r/10,s=10**`${Math.round(a)}`.length,l=a/s,c=(el.find(u=>u>l)||1)*s,d=Math.ceil(r/c)*c,p=C("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),h=p.appendChild(C("div",{class:"axisSteps"})),v=p.appendChild(C("div",{class:"axisGroups"}));return Array.from({length:d/c+1},(u,f)=>ol(c*f)).reverse().map(u=>h.append(C("div",{class:"axisStep","data-label":u}))),{total:d,groups:v,axis:p}}const ol=new Intl.NumberFormat().format;function il(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=C("div",{class:"axisGroup","data-label":e}),r=i.appendChild(C("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:s,number:l})=>r.appendChild(C("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${s}; --value: ${l}`,tabindex:"0"}))),i})}function rl(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,r=C("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const s=C("div",{class:"lineContainer",role:"list",style:a[0].style}),l=al(a.map(({number:p},h,{length:v})=>[100/(v-1)*h,100-p/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");m(c,"aria-hidden","true"),m(c,"preserveAspectRatio","none"),m(c,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(m(d,"class","line"),m(d,"d",l),m(d,"fill","none"),m(d,"stroke","currentColor"),o==="area"){const p=d.cloneNode(!0);m(p,"d",`M-100,100 L${l.slice(1)}L200,100`),m(p,"class","lineShade"),c.append(p)}a.forEach(({number:p,tooltip:h,event:v})=>{const u=C("div",{role:"listitem"});u.appendChild(C("div",{"aria-label":h,"data-event":v,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${p}`})),s.append(u)}),s.appendChild(c).append(d),r.append(s)}),r}const al=(t,e)=>t.map(([n,o],i,r)=>i?sl(i,r,e):`M${n},${o}`).join(" "),Ti=([t,e],[n,o])=>[t+n,e+o],Ai=([t,e],[n,o])=>[t-n,e-o],Li=(t,[e,n])=>[t*e,t*n],sl=(t,e,n)=>{const o=e[t-1],i=e[t],[r,a]=Ti(o,Li(n,Ai(i,e[t-2]||o))),[s,l]=Ti(i,Li(n,Ai(o,e[t+1]||i)));return`C ${r},${a} ${s},${l} ${i[0]},${i[1]}`};function ll(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),m(o,"class","pie"),m(o,"viewBox","0 0 100 100");let i=0;const r=50,a=n==="doughnut"?25:0,s=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:d,style:p}])=>{if(!c)return;const h=document.createElementNS("http://www.w3.org/2000/svg","path"),v=i/s;i+=c;const u=Math.min(i/s,.99999),f=u-v>.5?1:0,g=2*Math.PI*(v-.25),b=2*Math.PI*(u-.25),w=Math.cos(g),y=Math.sin(g),x=Math.cos(b),S=Math.sin(b),O=`M ${r+a*w} ${r+a*y} L ${r+r*w} ${r+r*y} A ${r} ${r} 0 ${f} 1 ${r+r*x} ${r+r*S} L ${r+a*x} ${r+a*S} A ${a} ${a} 0 ${f} 0 ${r+a*w} ${r+a*y}`;m(h,"aria-label",l),m(h,"data-event",d),m(h,"style",p),m(h,"d",O),m(h,"role","img"),m(h,"tabindex","0"),o.appendChild(h)}),o}const Ci="click,keydown,mousemove,mouseout",Oi="mtds-chart-tooltip",K=R()?document.getElementById(Oi)||C("div",{"aria-hidden":"true",class:k._tooltip,hidden:"",id:Oi}):null;class cl extends ss{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.#e=as(()=>this.handleResize(),this),this.#t=j(()=>this.attributeChangedCallback(),{attr:"data-tooltip",root:this}),this.attributeChangedCallback(),A(this,Ci,this)}disconnectedCallback(){K&&(K.hidden=!0),pi(this,Ci,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[e,n]=(m(this,"data-variant")||"column").split("-"),o=m(this,"data-aspect")||void 0,i=pl(this.querySelector("table")),r=C("style",{},tl),a=C("div",{"aria-hidden":"hidden",class:"legends",role:"group"});i.slice(1).forEach(([{value:d,style:p}])=>{a.appendChild(C("div",{class:"legend",style:p},d))});const{axis:s,groups:l,total:c}=nl(i,{aspect:o,type:n});(e==="column"||e==="bar")&&l.append(...il(i)),(e==="line"||e==="area")&&l.append(rl(i,{total:c,variant:e,type:n})),(e==="doughnut"||e==="pie")&&this.shadowRoot?.append(ll(i,{aspect:o,variant:e})),this.shadowRoot?.append(s,a,r)}handleEvent(e){e.type==="click"||e.type==="keydown"?dl(e,this):ul(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function dl(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,r]=n instanceof Element&&m(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[r]?.querySelector("a,button")?.click?.()}let Ii="";function ul(t){if(!K)return;K?.isConnected||document.body.append(K);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(K.style.transform=`translate(${Math.min(t.clientX,window.innerWidth-K.clientWidth-10)}px, ${t.clientY}px)`),n!==Ii&&(n&&(K.textContent=n),Ii=n,K.hidden=!n)}const Lt=t=>t?.textContent?.trim()||"",pl=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const r=Lt(e.cells[0]),a=Lt(t?.rows[0].cells[i]),s=`${r}: ${Lt(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(Lt(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:Lt(o),tooltip:m(o,"data-tooltip")||s}}));ls("mtds-chart",cl);const ml=k.dialog.split(" ")[0],Mi=R()?document.getElementsByClassName(ml):[];function fl(){for(const t of Mi)if(t.getAttribute("data-variant")==="drawer"&&ue('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t),t.isConnected&&t.showModal&&t.close){const e=m(t,"data-closedby");e&&(m(t,"closedby",e),ue(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.matches('[open]:not([data-modal="false"]):not(:modal)')?(ue('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>'),m(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(m(t,"open",""),t.close())}}function hl({target:t}){for(const e of Mi)e.open&&e.contains(t)&&t?.closest?.('[data-command="close"]')&&e.close()}const Ni=new WeakSet;function gl(){document.querySelectorAll("[data-command").forEach(t=>{if(Ni.has(t))return;const e=m(t,"data-command");Ni.add(t),ue(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)})}P(()=>[A(document,"click",hl,N),j(fl,["open","data-drawer"]),j(gl,"data-command")]);function vl(t){if(t.animationName!==k._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(m(e,"tabindex","-1"),e.focus())}P(()=>[A(document,"animationend",vl,N)]);var bl=Object.defineProperty,Ri=Object.getOwnPropertySymbols,wl=Object.prototype.hasOwnProperty,yl=Object.prototype.propertyIsEnumerable,Pi=(t,e,n)=>e in t?bl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xl=(t,e)=>{for(var n in e||(e={}))wl.call(e,n)&&Pi(t,n,e[n]);if(Ri)for(var n of Ri(e))yl.call(e,n)&&Pi(t,n,e[n]);return t},Ct=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",he=Ct&&/android/i.test(navigator.userAgent),_e=Ct&&/iPad|iPhone|iPod/.test(navigator.userAgent),Wi;Ct&&/^Mac/i.test(((Wi=navigator.userAgentData)==null?void 0:Wi.platform)||navigator.platform);var El=`${he?"data":"aria"}-labelledby`,Sl=":host(:not([hidden])) { display: block }",kl="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",qi=typeof HTMLElement>"u"?class{}:HTMLElement;function T(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Vi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Ot=(t,...e)=>Vi("add",t,e),ge=(t,...e)=>Vi("remove",t,e),Tl=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(en("slot"),en("style",e)),ve=new WeakMap,$e=(t,e)=>{if(e===void 0)return ve.get(t);try{ve.get(t).disconnect(),ve.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),ve.set(t,n)}},Di=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Al=0,tn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Al).toString(32)}`),t.id):"",en=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Ui={define:(t,e)=>!Ct||window.customElements.get(t)||window.customElements.define(t,e)},ct,Ll=0,zi=t=>{ct||(ct=en("div"),ct.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",T(ct,"aria-live","assertive")),ct.isConnected||document.body.append(ct),t&&(ct.textContent=`${t}${Ll++%2?" ":""}`)},Cl=(t,e,n="")=>{var o,i;const r={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},nn=!1,on=t=>(t?.type==="mouseup"&&(nn=!1),t?.type==="mousedown"&&(nn=!0,Ot(document,"mouseup",on,{once:!0})),nn),rn="disabled",It="selected",Ol=class extends qi{static get observedAttributes(){return[rn,It]}connectedCallback(){_e||(this.tabIndex=-1),this.hasAttribute("role")||T(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){T(this,"aria-disabled",`${this.disabled}`),T(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[It]}set defaultSelected(t){this[It]=t}get disabled(){return T(this,rn)!==null}set disabled(t){T(this,rn,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=T(this,"label"))!=null?t:this.text}set label(t){T(this,"label",t)}get selected(){return T(this,It)!==null}set selected(t){T(this,It,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=T(this,"value"))!=null?t:this.text}set value(t){T(this,"value",t)}};Ui.define("u-option",Ol);var Il=`${Sl}
335
+ `,il=[.1,.2,.25,.5,1];function rl(t,{aspect:e,type:n}){const i=n==="stacked",r=t[0].reduce((w,p,v)=>{const f=t.map(y=>y[v].number),b=f.reduce((y,x)=>y+x,0);return Math.max(w,...i?[b]:f)},0),a=r/10,s=10**`${Math.round(a)}`.length,l=a/s,c=(il.find(w=>w>l)||1)*s,d=Math.ceil(r/c)*c,u=O("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure",style:`${e?`--mtdsc-chart-aspect: ${e};`:""} --bars: ${t[0]?.length-1}; --groups: ${t.length-1}; --total: ${d}`}),h=u.appendChild(O("div",{class:"axisSteps"})),g=u.appendChild(O("div",{class:"axisGroups"}));return Array.from({length:d/c+1},(w,p)=>al(c*p)).reverse().map(w=>h.append(O("div",{class:"axisStep","data-label":w}))),{total:d,groups:g,axis:u}}const al=new Intl.NumberFormat().format;function sl(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=O("div",{class:"axisGroup","data-label":e}),r=i.appendChild(O("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:s,number:l})=>r.appendChild(O("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${s}; --value: ${l}`,tabindex:"0"}))),i})}function ll(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,r=O("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const s=O("div",{class:"lineContainer",role:"list",style:a[0].style}),l=cl(a.map(({number:u},h,{length:g})=>[100/(g-1)*h,100-u/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");m(c,"aria-hidden","true"),m(c,"preserveAspectRatio","none"),m(c,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(m(d,"class","line"),m(d,"d",l),m(d,"fill","none"),m(d,"stroke","currentColor"),o==="area"){const u=d.cloneNode(!0);m(u,"d",`M-100,100 L${l.slice(1)}L200,100`),m(u,"class","lineShade"),c.append(u)}a.forEach(({number:u,tooltip:h,event:g})=>{const w=O("div",{role:"listitem"});w.appendChild(O("div",{"aria-label":h,"data-event":g,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${u}`})),s.append(w)}),s.appendChild(c).append(d),r.append(s)}),r}const cl=(t,e)=>t.map(([n,o],i,r)=>i?dl(i,r,e):`M${n},${o}`).join(" "),Ai=([t,e],[n,o])=>[t+n,e+o],Li=([t,e],[n,o])=>[t-n,e-o],Ci=(t,[e,n])=>[t*e,t*n],dl=(t,e,n)=>{const o=e[t-1],i=e[t],[r,a]=Ai(o,Ci(n,Li(i,e[t-2]||o))),[s,l]=Ai(i,Ci(n,Li(o,e[t+1]||i)));return`C ${r},${a} ${s},${l} ${i[0]},${i[1]}`};function ul(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),m(o,"class","pie"),m(o,"viewBox","0 0 100 100");let i=0;const r=50,a=n==="doughnut"?25:0,s=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:d,style:u}])=>{if(!c)return;const h=document.createElementNS("http://www.w3.org/2000/svg","path"),g=i/s;i+=c;const w=Math.min(i/s,.99999),p=w-g>.5?1:0,v=2*Math.PI*(g-.25),f=2*Math.PI*(w-.25),b=Math.cos(v),y=Math.sin(v),x=Math.cos(f),E=Math.sin(f),C=`M ${r+a*b} ${r+a*y} L ${r+r*b} ${r+r*y} A ${r} ${r} 0 ${p} 1 ${r+r*x} ${r+r*E} L ${r+a*x} ${r+a*E} A ${a} ${a} 0 ${p} 0 ${r+a*b} ${r+a*y}`;m(h,"aria-label",l),m(h,"data-event",d),m(h,"style",u),m(h,"d",C),m(h,"role","img"),m(h,"tabindex","0"),o.appendChild(h)}),o}const Oi="click,keydown,mousemove,mouseout",Ii="mtds-chart-tooltip",K=P()?document.getElementById(Ii)||O("div",{"aria-hidden":"true",class:k._tooltip,hidden:"",id:Ii}):null;class pl extends ds{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this.#e=cs(()=>this.handleResize(),this),this.#t=j(()=>this.attributeChangedCallback(),{attr:"data-tooltip",root:this}),this.attributeChangedCallback(),A(this,Oi,this)}disconnectedCallback(){K&&(K.hidden=!0),mi(this,Oi,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){const e=hl(this.querySelector("table"));if(!e[0])return;Array.from(this.shadowRoot?.children||[]).map(d=>d.remove());const[n,o]=(m(this,"data-variant")||"column").split("-"),i=m(this,"data-aspect")||void 0,r=O("style",{},ol),a=O("div",{"aria-hidden":"hidden",class:"legends",role:"group"});e.slice(1).forEach(([{value:d,style:u}])=>{a.appendChild(O("div",{class:"legend",style:u},d))});const{axis:s,groups:l,total:c}=rl(e,{aspect:i,type:o});(n==="column"||n==="bar")&&l.append(...sl(e)),(n==="line"||n==="area")&&l.append(ll(e,{total:c,variant:n,type:o})),(n==="doughnut"||n==="pie")&&this.shadowRoot?.append(ul(e,{aspect:i,variant:n})),this.shadowRoot?.append(s,a,r)}handleEvent(e){e.type==="click"||e.type==="keydown"?ml(e,this):fl(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function ml(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,r]=n instanceof Element&&m(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[r]?.querySelector("a,button")?.click?.()}let Mi="";function fl(t){if(!K)return;K?.isConnected||document.body.append(K);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(K.style.transform=`translate(${Math.min(t.clientX,window.innerWidth-K.clientWidth-10)}px, ${t.clientY}px)`),n!==Mi&&(n&&(K.textContent=n),Mi=n,K.hidden=!n)}const Ct=t=>t?.textContent?.trim()||"",hl=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>{const r=Ct(e.cells[0]),a=Ct(t?.rows[0].cells[i]),s=`${r}: ${Ct(o)}${a?` (${a})`:""}`;return{number:i&&n&&Number.parseFloat(Ct(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:Ct(o),tooltip:m(o,"data-tooltip")||s}}));us("mtds-chart",pl);const gl=k.dialog.split(" ")[0],Ni=P()?document.getElementsByClassName(gl):[];function vl(){for(const t of Ni)if(t.getAttribute("data-variant")==="drawer"&&At('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t),t.isConnected&&t.showModal&&t.close){const e=m(t,"data-closedby");e&&(m(t,"closedby",e),At(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.matches('[open]:not([data-modal="false"]):not(:modal)')?(At('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>'),m(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(m(t,"open",""),t.close())}}function bl({target:t}){for(const e of Ni)e.open&&e.contains(t)&&t?.closest?.('[data-command="close"]')&&e.close()}const Ri=new WeakSet;function wl(){document.querySelectorAll("[data-command").forEach(t=>{if(Ri.has(t))return;const e=m(t,"data-command");Ri.add(t),e==="row"?At(`<${t.nodeName.toLowerCase()} data-command="${e}">`,`<tr data-clickdelegatefor="${t.nodeName}-ID">`,t):At(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)})}I(()=>[A(document,"click",bl,R),j(vl,["open","data-drawer"]),j(wl,"data-command")]);function yl(t){if(t.animationName!==k._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(m(e,"tabindex","-1"),e.focus())}I(()=>[A(document,"animationend",yl,R)]);var xl=Object.defineProperty,Pi=Object.getOwnPropertySymbols,El=Object.prototype.hasOwnProperty,Sl=Object.prototype.propertyIsEnumerable,Wi=(t,e,n)=>e in t?xl(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,kl=(t,e)=>{for(var n in e||(e={}))El.call(e,n)&&Wi(t,n,e[n]);if(Pi)for(var n of Pi(e))Sl.call(e,n)&&Wi(t,n,e[n]);return t},Ot=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",he=Ot&&/android/i.test(navigator.userAgent),$e=Ot&&/iPad|iPhone|iPod/.test(navigator.userAgent),qi;Ot&&/^Mac/i.test(((qi=navigator.userAgentData)==null?void 0:qi.platform)||navigator.platform);var Tl=`${he?"data":"aria"}-labelledby`,Al=":host(:not([hidden])) { display: block }",Ll="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Vi=typeof HTMLElement>"u"?class{}:HTMLElement;function T(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Di=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},It=(t,...e)=>Di("add",t,e),ge=(t,...e)=>Di("remove",t,e),Cl=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(nn("slot"),nn("style",e)),ve=new WeakMap,tn=(t,e)=>{if(e===void 0)return ve.get(t);try{ve.get(t).disconnect(),ve.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),ve.set(t,n)}},Ui=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Ol=0,en=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ol).toString(32)}`),t.id):"",nn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},zi={define:(t,e)=>!Ot||window.customElements.get(t)||window.customElements.define(t,e)},ct,Il=0,Fi=t=>{ct||(ct=nn("div"),ct.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",T(ct,"aria-live","assertive")),ct.isConnected||document.body.append(ct),t&&(ct.textContent=`${t}${Il++%2?" ":""}`)},Ml=(t,e,n="")=>{var o,i;const r={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},on=!1,rn=t=>(t?.type==="mouseup"&&(on=!1),t?.type==="mousedown"&&(on=!0,It(document,"mouseup",rn,{once:!0})),on),an="disabled",Mt="selected",Nl=class extends Vi{static get observedAttributes(){return[an,Mt]}connectedCallback(){$e||(this.tabIndex=-1),this.hasAttribute("role")||T(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){T(this,"aria-disabled",`${this.disabled}`),T(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[Mt]}set defaultSelected(t){this[Mt]=t}get disabled(){return T(this,an)!==null}set disabled(t){T(this,an,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=T(this,"label"))!=null?t:this.text}set label(t){T(this,"label",t)}get selected(){return T(this,Mt)!==null}set selected(t){T(this,Mt,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=T(this,"value"))!=null?t:this.text}set value(t){T(this,"value",t)}};zi.define("u-option",Nl);var Rl=`${Al}
336
336
  ::slotted(u-option) { display: block; cursor: pointer }
337
- ::slotted(u-option:focus) { ${kl} }
337
+ ::slotted(u-option:focus) { ${Ll} }
338
338
  ::slotted(u-option[aria-hidden="true"]),
339
339
  ::slotted(u-option[disabled]),
340
- ::slotted(u-option[hidden]) { display: none !important }`,Fi,Bi=0,Ml=_e||he,Gi="click,focusout,input,keydown,mousedown,mouseup",Ji="focus,focusin,blur,focusout",be={singular:"%d hit",plural:"%d hits"},Hi=class extends qi{constructor(){super(),this._texts=xl({},be),this._value="",Tl(this,Il)}static get observedAttributes(){return["id",...Object.keys(be).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=Di(this),T(this,"role","listbox"),T(this,"tabindex","-1"),Ot(this._root,"focusin",this),Ot(this._root,"focus",this,!0),$e(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ge(this._root||this,"focus",this,!0),ge(this._root||this,"focusin",this),$e(this,!1),an(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(be[o])this._texts[o]=n||be[o];else if(this._root){this._input&&sn(this,this._input);for(const r of this._root.querySelectorAll(i))sn(this,r)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Pl(this,t),(n==="focus"||n==="focusin")&&Nl(this,t),(n==="blur"||n==="focusout")&&Rl(this,t),n==="keydown"&&Wl(this,t),n==="mousedown"&&this.contains(e)&&on(t),(n==="mutation"||n==="input")&&(clearTimeout(Bi),Bi=setTimeout(Zi,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},Xi=t=>t?.disabled||t?.readOnly||!1,Mt=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=Xi(t?._input)||!e,(n=$e(t))==null||n.takeRecords();const r=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&sn(t,t._input,e),r&&T(t,"popover","manual"),r&&t.togglePopover(e),e&&Zi(t)},an=t=>{t._input&&(ge(t._input||t,Ji,t),ge(t._root||t,Gi,t),Mt(t,!1),t._input=void 0)},sn=(t,e,n=!1)=>{t.popover&&T(e,"popovertarget",tn(t)),Ot(e,Ji,t,!0),T(e,"aria-autocomplete","list"),T(e,"aria-controls",tn(t)),T(e,"aria-expanded",`${!Ml||n}`),T(e,"autocomplete","off"),T(e,"role",Xi(e)?null:"combobox")},Nl=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&an(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),T(t,El,tn((n=t._input.labels)==null?void 0:n[0])),Ot(t._root||t,Gi,t),Mt(t,T(t._input,"inputmode")!=="none"),zi())},Rl=(t,e)=>{!he&&!on()&&t._input&&setTimeout(ji,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},ji=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),an(t))},Pl=(t,{target:e})=>{var n;if(!t._input||t._input===e)return Mt(t,!0);for(const o of t.options)if(o.contains(e))return T(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),Mt(t,!1)),Cl(t._input,o.value);he&&ji(t)},Wl=(t,e)=>{var n;const{key:o,target:i,altKey:r,ctrlKey:a,shiftKey:s,metaKey:l}=e,c=o==="Escape"||o==="Esc";if(r||a||l||s||o==="Tab")return;c&&!t.hidden&&e?.preventDefault(),Mt(t,!c);const d=[...t.options].filter(v=>T(v,"aria-hidden")!=="true"&&v.offsetHeight),p=d.indexOf(i);let h=-1;if(o==="ArrowDown"&&(h=(p+1)%d.length),o==="ArrowUp"&&(h=(~p?p:d.length)-1),~p&&((o==="Home"||o==="PageUp")&&(h=0),(o==="End"||o==="PageDown")&&(h=d.length-1),o==="Enter"))return d[p].click(),e.preventDefault();if(d[h])for(const v of d)v.tabIndex=-1;d[h]&&e.preventDefault(),(n=d[h]||t._input)==null||n.focus(),!d[h]&&o==="ArrowUp"&&setTimeout(()=>{var v;return(v=t._input)==null?void 0:v.setSelectionRange(999,999)})},Zi=(t,e)=>{const{_texts:n,_root:o,_input:i,options:r}=t,a=i?.value.toLowerCase().trim()||"",s=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const p of r)(p.disabled||p.hidden||s&&!p.label.toLowerCase().includes(a)?l:c).push(p);for(const p of l)T(p,"aria-hidden","true");for(const p of c)T(p,"aria-hidden","false");const d=c.length;clearTimeout(Fi),e?.type==="input"&&a!==t._value&&(Fi=setTimeout(()=>{const p=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&zi(p),t._value=a},1e3)),_e&&c.map((p,h)=>T(p,"title",`${h+1}/${d}`))};Ct&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Di(this).getElementById(T(this,"list")||"")}}),Ui.define("u-datalist",Hi);const ql=k.field.split(" ")[0],Ki=k.validation.split(" "),Vl=Ki[0],Dl=R()?document.getElementsByClassName(ql):[];function Ul(){for(const t of Dl)if(t.isConnected){const e=[],n=[];let o=null,i=null,r=!0;for(const a of t.getElementsByTagName("*"))a instanceof HTMLLabelElement?e.push(a):a instanceof Te?o=a:Ge(a)&&!a.hidden?i=a:a.hasAttribute("data-description")?n.push(a):a.classList.contains(Vl)?(r=m(a,"data-color")==="success"||!a.clientHeight,n.unshift(a)):a instanceof HTMLParagraphElement&&(n.some(s=>s.contains(a))||n.push(a));if(i){for(const a of e)a.htmlFor=pe(i);Fl(o),Yi(i),m(i,"aria-describedby",n.map(pe).join(" ")),m(i,"aria-invalid",`${!r}`)}}}function zl({target:t}){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--_mtds-field-sizing","auto"),t.style.setProperty("--_mtds-field-sizing",`${t.scrollHeight}px`))}const F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Fl(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);m(t,"data-sr-added",F(o,"combobox-added")),m(t,"data-sr-empty",F(o,"combobox-empty")),m(t,"data-sr-found",F(o,"combobox-found")),m(t,"data-sr-invalid",F(o,"combobox-invalid")),m(t,"data-sr-of",F(o,"combobox-of")),m(t,"data-sr-remove",F(o,"combobox-remove")),m(t,"data-sr-removed",F(o,"combobox-removed")),m(n,"data-sr-plural",F(o,"datalist-plural")),m(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(m(n,"popover","manual"),m(e,"popovertarget",pe(n)))}function Yi(t){const e=t?.nextElementSibling,n=e&&m(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,r=m(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),s=F(a,"count-over"),l=F(a,"count-under"),c=`${(i?s:l).replace("%d",`${Math.abs(o)}`)}`;if(r!==i){m(e,"aria-live",i?"polite":"off");for(const d of Ki)e.classList.toggle(d,i)}m(e,"aria-label",c)}}function Bl({target:t,newState:e}){if(t instanceof Hi){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?at(t,!1):o&&at(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Gl(t){Ge(t.target)&&Yi(t.target)}P(()=>[j(Ul,"class"),A(document,"input",Gl,N),A(document,"toggle",Bl,N),A(document,"input",zl,N)]);const Jl=k.fieldset.split(" ")[0],Hl=k.validation.split(" ")[0],Qi="aria-describedby",Xl="aria-invalid",jl=R()?document.getElementsByClassName(Jl):[];function Zl(){setTimeout(()=>{for(const t of jl)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(Hl)?(o=m(i,"data-color")==="success"||!i.clientHeight,n=pe(i)):Ge(i)&&e.push(i);for(const i of e){const r=m(i,Qi)?.replace(n||"#","");m(i,Qi,`${n||""} ${r||""}`.trim()),m(i,Xl,`${!o}`)}}})}P(()=>[j(Zl,"class")]);const Kl=k.logo.split(" ")[0],Yl=R()?document.getElementsByClassName(Kl):[];function Ql(){const t=Yl[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const s of document.head.querySelectorAll("link[rel~='icon']"))s.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),r=o.getPropertyValue("--mtdsc-logo-background"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild(C("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":r}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}P(()=>[j(Ql,"class")]);const Nt=k.popover.split(" ")[0],Rt="popovertarget",_l=R()?document.getElementsByClassName(Nt):[];function $l({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(Nt)){const n=document.querySelector(`[${Rt}="${t.id}"]`);e==="closed"?at(t,!1):n&&at(t,n,{contain:m(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function tc({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(Nt)&&m(t,"popover")!=="manual"&&m(t,"popover","manual")}function ec(t){const e=t.target?.closest?.("a,button"),n=e&&m(e,Rt),o=n?document.getElementById(n):e?.closest(`.${Nt}`);for(const i of _l)o!==i&&!i.contains(t.target)&&i.hasAttribute("popover")&&i.hidePopover();if(o?.classList.contains(Nt)&&e){const i=m(e,`${Rt}action`),r=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(r);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}function nc(t){if(t.key==="Escape"&&t.target instanceof Element){const e=t.target.closest(`[popover],[${Rt}]`),n=e&&document.getElementById(m(e,Rt)||e.id);n instanceof HTMLElement&&n.hidePopover(),n&&t.preventDefault?.()}}P(()=>[A(document,"click",ec),A(document,"toggle",$l,N),A(document,"beforetoggle",tc,N),A(document,"keydown",nc)]);const oc=k.table.split(" ")[0],ic='a,button,label,input,select,textarea,[role="button"]',rc=R()?document.getElementsByClassName(oc):[];function ac(){for(const t of rc){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)m(i,"data-th",e[i.cellIndex]||":empty")}}function sc({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(ic)&&n.click?.()}P(()=>[A(document,"click",sc),j(ac,"data-mobile")]);const _i=k.toast.split(" ")[0],we="data-sort";function lc({animationName:t,target:e}){const n=e;if(t===k._toastTimeout&&n.close(),t!==k._toastOpen)return;const o=Number(m(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(we)||m(n,we,`${Date.now()}`),m(n,"tabindex","0"),[...document.querySelectorAll(`.${_i}[open]`)].sort((i,r)=>Number(m(r,we))-Number(m(i,we))).reduce((i,r)=>(r.style.translate=`0 ${r===e?0:i}px`,i+r.offsetHeight+5),0)}function cc({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(_i)&&m(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),s=a+Number.parseInt(r.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(r.width,10);a<=n&&n<=s&&c<=e&&e<=l&&t.close()}}P(()=>[A(document,"animationstart",lc),A(document,"click",cc)]);const dc=`.${k.togglegroup.split(" ")[0]}`;function uc(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(dc);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),r=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+r+a)%i.length]?.focus()}}P(()=>[A(document,"keydown",uc)]);const $i="Escape",pc=300,tr="mtds-tooltip",Y=R()?document.getElementById(tr)||C("div",{class:k._tooltip,id:tr,popover:"manual"}):null;let er=null,nr=Number.NEGATIVE_INFINITY,or=0;function ln({target:t,type:e,key:n}){if(e==="keydown"&&n!==$i)return;const o=nr+pc-Date.now();clearTimeout(or),or=setTimeout(mc,Math.max(o,0),n===$i?null:t)}function mc(t){if(nr=Date.now(),!Y||t===Y)return;Y?.isConnected||document.body.append(Y);let e=t?.closest?.("[data-tooltip]")||null;if(e===er)return;const n=e&&m(e,"data-tooltip")||"",o=e&&m(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(Y.textContent=n),at(Y,!1),er=e,Y.hidePopover(),Y.togglePopover(!!e),at(Y,e||!1,{strategy:"fixed",placement:o,middleware:[li(),si({padding:10})]})}function fc(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=m(t,"data-tooltip");m(t,`aria-${e?"label":"description"}`,n)})}P(()=>[A(document,"blur,focus,mouseout,mouseover",ln,N),A(window,"keydown",ln,N),A(window,"blur",ln,N),j(fc,"data-tooltip")]);const cn='[data-validation="form"] :is(input,textarea,select)',hc=`:scope > .${k.validation.split(" ")[0]}`,gc=`.${k.field.split(" ")[0]}`;function vc(t){const e=t.target.closest?.("form");e&&(t.type==="invalid"&&(t.preventDefault(),ir(e)),t.type==="submit"&&rr(e)&&t.preventDefault())}const ir=di(rr,10);function rr(t,e=!0){let n=null;for(const o of t.querySelectorAll(cn)){if(!o.clientHeight)continue;const i=o.closest("fieldset")||o.closest(gc)||t,r=o.closest("u-combobox"),a=r?o?.getAttribute("aria-required")==="true"&&!!r?.items.length:o.validity.valid;!n&&!a&&(n=o);for(const s of i.querySelectorAll(cn))m(s,"aria-invalid",`${!a}`);for(const s of i.querySelectorAll(hc))m(s,"data-validation",a?"valid":"invalid"),m(s,"hidden",a?"":null)}return e&&n?.focus(),n}function bc({target:t}){const e=t instanceof HTMLElement?t:null,n=e?.getAttribute("aria-invalid")==="true"&&e?.matches?.(cn)&&e?.closest?.("form");n&&ir(n,!1)}P(()=>[A(document,"invalid,submit",vc,!0),A(document,"input",bc,N)]);var ar=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",sr;ar&&/^Mac/i.test(((sr=navigator.userAgentData)==null?void 0:sr.platform)||navigator.platform);var wc=":host(:not([hidden])) { display: block }",lr=typeof HTMLElement>"u"?class{}:HTMLElement;function Q(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var cr=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},dr=(t,...e)=>cr("add",t,e),ur=(t,...e)=>cr("remove",t,e),yc=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},xc=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},dn=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,r]of Object.entries(n))Q(o,i,r);return o},pr={define:(t,e)=>!ar||window.customElements.get(t)||window.customElements.define(t,e)},Ec=`${wc}
340
+ ::slotted(u-option[hidden]) { display: none !important }`,Bi,Gi=0,Pl=$e||he,Ji="click,focusout,input,keydown,mousedown,mouseup",Hi="focus,focusin,blur,focusout",be={singular:"%d hit",plural:"%d hits"},Xi=class extends Vi{constructor(){super(),this._texts=kl({},be),this._value="",Cl(this,Rl)}static get observedAttributes(){return["id",...Object.keys(be).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=Ui(this),T(this,"role","listbox"),T(this,"tabindex","-1"),It(this._root,"focusin",this),It(this._root,"focus",this,!0),tn(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ge(this._root||this,"focus",this,!0),ge(this._root||this,"focusin",this),tn(this,!1),sn(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(be[o])this._texts[o]=n||be[o];else if(this._root){this._input&&ln(this,this._input);for(const r of this._root.querySelectorAll(i))ln(this,r)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Vl(this,t),(n==="focus"||n==="focusin")&&Wl(this,t),(n==="blur"||n==="focusout")&&ql(this,t),n==="keydown"&&Dl(this,t),n==="mousedown"&&this.contains(e)&&rn(t),(n==="mutation"||n==="input")&&(clearTimeout(Gi),Gi=setTimeout(Ki,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},ji=t=>t?.disabled||t?.readOnly||!1,Nt=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=ji(t?._input)||!e,(n=tn(t))==null||n.takeRecords();const r=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&ln(t,t._input,e),r&&T(t,"popover","manual"),r&&t.togglePopover(e),e&&Ki(t)},sn=t=>{t._input&&(ge(t._input||t,Hi,t),ge(t._root||t,Ji,t),Nt(t,!1),t._input=void 0)},ln=(t,e,n=!1)=>{t.popover&&T(e,"popovertarget",en(t)),It(e,Hi,t,!0),T(e,"aria-autocomplete","list"),T(e,"aria-controls",en(t)),T(e,"aria-expanded",`${!Pl||n}`),T(e,"autocomplete","off"),T(e,"role",ji(e)?null:"combobox")},Wl=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&sn(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),T(t,Tl,en((n=t._input.labels)==null?void 0:n[0])),It(t._root||t,Ji,t),Nt(t,T(t._input,"inputmode")!=="none"),Fi())},ql=(t,e)=>{!he&&!rn()&&t._input&&setTimeout(Zi,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Zi=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),sn(t))},Vl=(t,{target:e})=>{var n;if(!t._input||t._input===e)return Nt(t,!0);for(const o of t.options)if(o.contains(e))return T(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),Nt(t,!1)),Ml(t._input,o.value);he&&Zi(t)},Dl=(t,e)=>{var n;const{key:o,target:i,altKey:r,ctrlKey:a,shiftKey:s,metaKey:l}=e,c=o==="Escape"||o==="Esc";if(r||a||l||s||o==="Tab")return;c&&!t.hidden&&e?.preventDefault(),Nt(t,!c);const d=[...t.options].filter(g=>T(g,"aria-hidden")!=="true"&&g.offsetHeight),u=d.indexOf(i);let h=-1;if(o==="ArrowDown"&&(h=(u+1)%d.length),o==="ArrowUp"&&(h=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(h=0),(o==="End"||o==="PageDown")&&(h=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[h])for(const g of d)g.tabIndex=-1;d[h]&&e.preventDefault(),(n=d[h]||t._input)==null||n.focus(),!d[h]&&o==="ArrowUp"&&setTimeout(()=>{var g;return(g=t._input)==null?void 0:g.setSelectionRange(999,999)})},Ki=(t,e)=>{const{_texts:n,_root:o,_input:i,options:r}=t,a=i?.value.toLowerCase().trim()||"",s=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const u of r)(u.disabled||u.hidden||s&&!u.label.toLowerCase().includes(a)?l:c).push(u);for(const u of l)T(u,"aria-hidden","true");for(const u of c)T(u,"aria-hidden","false");const d=c.length;clearTimeout(Bi),e?.type==="input"&&a!==t._value&&(Bi=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&Fi(u),t._value=a},1e3)),$e&&c.map((u,h)=>T(u,"title",`${h+1}/${d}`))};Ot&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Ui(this).getElementById(T(this,"list")||"")}}),zi.define("u-datalist",Xi);const Ul=k.field.split(" ")[0],Yi=k.validation.split(" "),zl=Yi[0],Fl=P()?document.getElementsByClassName(Ul):[];function Bl(){for(const t of Fl)if(t.isConnected){const e=[],n=[];let o=null,i=null,r=!0;for(const a of t.getElementsByTagName("*"))a instanceof HTMLLabelElement?e.push(a):a instanceof Ae?o=a:Je(a)&&!a.hidden?i=a:a.hasAttribute("data-description")?n.push(a):a.classList.contains(zl)?(r=m(a,"data-color")==="success"||!a.clientHeight,n.unshift(a)):a instanceof HTMLParagraphElement&&!a.closest("[popover]")&&(n.some(s=>s.contains(a))||n.push(a));if(i){for(const a of e)a.htmlFor=pe(i);Jl(o),Qi(i),m(i,"aria-describedby",n.map(pe).join(" ")),m(i,"aria-invalid",`${!r}`)}}}function Gl({target:t}){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--_mtds-field-sizing","auto"),t.style.setProperty("--_mtds-field-sizing",`${t.scrollHeight}px`))}const F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Jl(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);m(t,"data-sr-added",F(o,"combobox-added")),m(t,"data-sr-empty",F(o,"combobox-empty")),m(t,"data-sr-found",F(o,"combobox-found")),m(t,"data-sr-invalid",F(o,"combobox-invalid")),m(t,"data-sr-of",F(o,"combobox-of")),m(t,"data-sr-remove",F(o,"combobox-remove")),m(t,"data-sr-removed",F(o,"combobox-removed")),m(n,"data-sr-plural",F(o,"datalist-plural")),m(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(m(n,"popover","manual"),m(e,"popovertarget",pe(n)))}function Qi(t){const e=t?.nextElementSibling,n=e&&m(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,r=m(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),s=F(a,"count-over"),l=F(a,"count-under"),c=`${(i?s:l).replace("%d",`${Math.abs(o)}`)}`;if(r!==i){m(e,"aria-live",i?"polite":"off");for(const d of Yi)e.classList.toggle(d,i)}m(e,"aria-label",c)}}function Hl({target:t,newState:e}){if(t instanceof Xi){const o=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?at(t,!1):o&&at(t,o,{contain({availableHeight:i}){t.style.width=`${o.clientWidth}px`,t.style.maxHeight=`${Math.max(50,i)}px`}})}}function Xl(t){Je(t.target)&&Qi(t.target)}I(()=>[j(Bl,"class"),A(document,"input",Xl,R),A(document,"toggle",Hl,R),A(document,"input",Gl,R)]);const jl=k.fieldset.split(" ")[0],Zl=k.validation.split(" ")[0],_i="aria-describedby",Kl="aria-invalid",Yl=P()?document.getElementsByClassName(jl):[];function Ql(){setTimeout(()=>{for(const t of Yl)if(t.isConnected){const e=[];let n=null,o=!0;for(const i of t.getElementsByTagName("*"))i.classList.contains(Zl)?(o=m(i,"data-color")==="success"||!i.clientHeight,n=pe(i)):Je(i)&&e.push(i);for(const i of e){const r=m(i,_i)?.replace(n||"#","");m(i,_i,`${n||""} ${r||""}`.trim()),m(i,Kl,`${!o}`)}}})}I(()=>[j(Ql,"class")]);const _l=k.logo.split(" ")[0],$l=P()?document.getElementsByClassName(_l):[];function tc(){const t=$l[0],e=t?.firstElementChild;if(e instanceof SVGSVGElement){for(const s of document.head.querySelectorAll("link[rel~='icon']"))s.setAttribute("rel","disabled");const n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),r=o.getPropertyValue("--mtdsc-logo-background"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild(O("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":r}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}I(()=>[j(tc,"class")]);const Rt=k.popover.split(" ")[0],Pt="popovertarget",ec=P()?document.getElementsByClassName(Rt):[];function nc({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(Rt)){const n=document.querySelector(`[${Pt}="${t.id}"]`);e==="closed"?at(t,!1):n&&at(t,n,{contain:m(t,"data-overscroll")==="contain"&&(({availableHeight:o})=>{t.style.maxHeight=`${Math.max(50,o)}px`})})}}function oc({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(Rt)&&m(t,"popover")!=="manual"&&m(t,"popover","manual")}function ic(t){const e=t.target?.closest?.("a,button"),n=e&&m(e,Pt),o=n?document.getElementById(n):e?.closest(`.${Rt}`);for(const i of ec)o!==i&&!i.contains(t.target)&&i.hasAttribute("popover")&&i.hidePopover();if(o?.classList.contains(Rt)&&e){const i=m(e,`${Pt}action`),r=i==="show"||(i==="hide"?!1:void 0),a=e instanceof HTMLButtonElement;if(a&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(a&&n)return;if(o.hasAttribute("popover"))return o.togglePopover(r);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}function rc(t){if(t.key==="Escape"&&t.target instanceof Element){const e=t.target.closest(`[popover],[${Pt}]`),n=e&&document.getElementById(m(e,Pt)||e.id);n instanceof HTMLElement&&n.hidePopover(),n&&t.preventDefault?.()}}I(()=>[A(document,"click",ic),A(document,"toggle",nc,R),A(document,"beforetoggle",oc,R),A(document,"keydown",rc)]);const ac=k.table.split(" ")[0],sc='a,button,label,input,select,textarea,[role="button"]',lc=P()?document.getElementsByClassName(ac):[];function cc(){for(const t of lc){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)m(i,"data-th",e[i.cellIndex]||":empty")}}function dc({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(sc)&&n.click?.()}I(()=>[A(document,"click",dc),j(cc,"data-mobile")]);const $i="data-clickdelegatefor",uc=`[${$i}]`,pc='a,button,label,input,select,textarea,dialog,[role="button"],[popover],[contenteditable]',mc=t=>{const e=t.button===1||t.metaKey||t.ctrlKey,o=t.isTrusted&&t.button<2&&tr(t);o instanceof HTMLAnchorElement&&e?window.open(o.href,void 0,o.rel):o instanceof HTMLElement&&!o.contains(t.target)&&(t.stopImmediatePropagation(),o.click())};let we;const fc=t=>{const e=tr(t);we!==e&&(we&&we.classList.remove(":click-delegate-hover"),e&&e.classList.add(":click-delegate-hover"),we=e)},tr=({target:t})=>{const n=(t instanceof Element?t.closest(uc):null)?.getAttribute($i),o=document.getElementById(n||""),i=o&&t.closest(pc);return(!i||i===o)&&o||void 0};I(()=>[A(window,"click,auxclick",mc,!0),A(document,"mouseover",fc,{passive:!0})]);const er=k.toast.split(" ")[0],ye="data-sort";function hc({animationName:t,target:e}){const n=e;if(t===k._toastTimeout&&n.close(),t!==k._toastOpen)return;const o=Number(m(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(ye)||m(n,ye,`${Date.now()}`),m(n,"tabindex","0"),[...document.querySelectorAll(`.${er}[open]`)].sort((i,r)=>Number(m(r,ye))-Number(m(i,ye))).reduce((i,r)=>(r.style.translate=`0 ${r===e?0:i}px`,i+r.offsetHeight+5),0)}function gc({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(er)&&m(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),s=a+Number.parseInt(r.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(r.width,10);a<=n&&n<=s&&c<=e&&e<=l&&t.close()}}I(()=>[A(document,"animationstart",hc),A(document,"click",gc)]);const vc=`.${k.togglegroup.split(" ")[0]}`;function bc(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(vc);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),r=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+r+a)%i.length]?.focus()}}I(()=>[A(document,"keydown",bc)]);const nr="Escape",wc=300,or="mtds-tooltip",Y=P()?document.getElementById(or)||O("div",{class:k._tooltip,id:or,popover:"manual"}):null;let ir=null,rr=Number.NEGATIVE_INFINITY,ar=0;function cn({target:t,type:e,key:n}){if(e==="keydown"&&n!==nr)return;const o=rr+wc-Date.now();clearTimeout(ar),ar=setTimeout(yc,Math.max(o,0),n===nr?null:t)}function yc(t){if(rr=Date.now(),!Y||t===Y)return;Y?.isConnected||document.body.append(Y);let e=t?.closest?.("[data-tooltip]")||null;if(e===ir)return;const n=e&&m(e,"data-tooltip")||"",o=e&&m(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue("--mtds-tooltip-position")?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(Y.textContent=n),at(Y,!1),ir=e,Y.hidePopover(),Y.togglePopover(!!e),at(Y,e||!1,{strategy:"fixed",placement:o,middleware:[ci(),li({padding:10})]})}function xc(){document.querySelectorAll("[data-tooltip]").forEach(t=>{const e=!t?.textContent?.trim(),n=m(t,"data-tooltip");m(t,`aria-${e?"label":"description"}`,n)})}I(()=>[A(document,"blur,focus,mouseout,mouseover",cn,R),A(window,"keydown",cn,R),A(window,"blur",cn,R),j(xc,"data-tooltip")]);const dn='[data-validation="form"] :is(input,textarea,select)',Ec=`:scope > .${k.validation.split(" ")[0]}`,Sc=`.${k.field.split(" ")[0]}`;function kc(t){const e=t.target.closest?.("form");e&&(t.type==="invalid"&&(t.preventDefault(),sr(e)),t.type==="submit"&&lr(e)&&t.preventDefault())}const sr=ui(lr,10);function lr(t,e=!0){let n=null;for(const o of t.querySelectorAll(dn)){if(!o.clientHeight)continue;const i=o.closest("fieldset")||o.closest(Sc)||t,r=o.closest("u-combobox"),a=r?o?.getAttribute("aria-required")==="true"&&!!r?.items.length:o.validity.valid;!n&&!a&&(n=o);for(const s of i.querySelectorAll(dn))m(s,"aria-invalid",`${!a}`);for(const s of i.querySelectorAll(Ec))m(s,"data-validation",a?"valid":"invalid"),m(s,"hidden",a?"":null)}return e&&n?.focus(),n}function Tc({target:t}){const e=t instanceof HTMLElement?t:null,n=e?.getAttribute("aria-invalid")==="true"&&e?.matches?.(dn)&&e?.closest?.("form");n&&sr(n,!1)}I(()=>[A(document,"invalid,submit",kc,!0),A(document,"input",Tc,R)]);var cr=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",dr;cr&&/^Mac/i.test(((dr=navigator.userAgentData)==null?void 0:dr.platform)||navigator.platform);var Ac=":host(:not([hidden])) { display: block }",ur=typeof HTMLElement>"u"?class{}:HTMLElement;function Q(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var pr=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},mr=(t,...e)=>pr("add",t,e),fr=(t,...e)=>pr("remove",t,e),Lc=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},Cc=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},un=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,r]of Object.entries(n))Q(o,i,r);return o},hr={define:(t,e)=>!cr||window.customElements.get(t)||window.customElements.define(t,e)},Oc=`${Ac}
341
341
  ::slotted(u-summary) { cursor: pointer; display: block }
342
342
  ::slotted(u-summary)::before { content: ''; display: inline-block; vertical-align: middle; margin-inline: .05em .3125em; border-block: .3125em solid transparent; border-inline-start: .5em solid }
343
343
  ::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
344
- :host > [part="details-content"]:not([hidden=""]) { display: block }`,Sc=class extends lr{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(dn("slot",null,{name:"summary"}),dn("slot",null,{part:"details-content"}),dn("style",Ec))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],Q(this,"role","group"),dr(this._content,"beforematch",this),dr(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&ur(this._content,"beforematch",this),ur(this,"click,keydown",this),this._content=null}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const r of this.children)r.nodeName==="U-SUMMARY"&&Q(r,"aria-expanded",`${i}`);if(this._content&&(Q(this._content,"aria-hidden",`${!i}`),Q(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const r=xc(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of r)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&yc(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){Q(this,"open",t?"":null)}get name(){return Q(this,"name")||""}set name(t){Q(this,"name",t)}},kc=class extends lr{connectedCallback(){Q(this,"role","button"),this.slot="summary",this.tabIndex=0}};pr.define("u-details",Sc),pr.define("u-summary",kc);var ye=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",mr=ye&&/firefox/i.test(navigator.userAgent),Tc=ye&&/iPad|iPhone|iPod/.test(navigator.userAgent),fr;ye&&/^Mac/i.test(((fr=navigator.userAgentData)==null?void 0:fr.platform)||navigator.platform);var Ac=typeof HTMLElement>"u"?class{}:HTMLElement;function W(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Lc=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Cc=0,Oc=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Cc).toString(32)}`),t.id):"",hr=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,r]of Object.entries(n))W(o,i,r);return o},Ic={define:(t,e)=>!ye||window.customElements.get(t)||window.customElements.define(t,e)},Mc=t=>{var e;const n=W(t,"aria-label")||"";return[...(((e=W(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},n)},Nc=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
344
+ :host > [part="details-content"]:not([hidden=""]) { display: block }`,Ic=class extends ur{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(un("slot",null,{name:"summary"}),un("slot",null,{part:"details-content"}),un("style",Oc))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],Q(this,"role","group"),mr(this._content,"beforematch",this),mr(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&fr(this._content,"beforematch",this),fr(this,"click,keydown",this),this._content=null}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const r of this.children)r.nodeName==="U-SUMMARY"&&Q(r,"aria-expanded",`${i}`);if(this._content&&(Q(this._content,"aria-hidden",`${!i}`),Q(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const r=Cc(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of r)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&Lc(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){Q(this,"open",t?"":null)}get name(){return Q(this,"name")||""}set name(t){Q(this,"name",t)}},Mc=class extends ur{connectedCallback(){Q(this,"role","button"),this.slot="summary",this.tabIndex=0}};hr.define("u-details",Ic),hr.define("u-summary",Mc);var xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",gr=xe&&/firefox/i.test(navigator.userAgent),Nc=xe&&/iPad|iPhone|iPod/.test(navigator.userAgent),vr;xe&&/^Mac/i.test(((vr=navigator.userAgentData)==null?void 0:vr.platform)||navigator.platform);var Rc=typeof HTMLElement>"u"?class{}:HTMLElement;function W(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Pc=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Wc=0,qc=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Wc).toString(32)}`),t.id):"",br=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,r]of Object.entries(n))W(o,i,r);return o},Vc={define:(t,e)=>!xe||window.customElements.get(t)||window.customElements.define(t,e)},Dc=t=>{var e;const n=W(t,"aria-label")||"";return[...(((e=W(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},n)},Uc=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
345
345
  :host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
346
346
  :host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
347
347
  @media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
348
- @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,un=!1,gr=class extends Ac{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(hr("slot",null,{hidden:""}),hr("style",Nc))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(un)return;un=!0;const t=Tc||mr,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=Mc(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),mr)for(const o of this.labels)W(o,"aria-label",n);W(this,"aria-busy",`${this.position===-1}`),W(this,"aria-label",n.trim()),W(this,"aria-labelledby",null),W(this,"aria-valuemax","100"),W(this,"aria-valuemin","0"),W(this,"aria-valuenow",`${e}`),W(this,"role",t?"img":"progressbar"),un=!1}get labels(){const t=this.closest("label:not([for])"),e=Oc(this);return t&&(t.htmlFor=e),Lc(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return br(this,"value")}set value(t){wr(this,"value",t)}get max(){return br(this,"max")||1}set max(t){wr(this,"max",t)}};gr.formAssociated=!0;var vr=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),br=(t,e)=>{const n=W(t,e);return vr(n)?Math.max(0,Number.parseFloat(n)):null},wr=(t,e,n)=>{if(n===null||vr(n))W(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${W}': '${n}'`)};Ic.define("u-progress",gr);const Rc=String(da).replace(/\/\*[^!][^*]*\*\//gs,"").replace(/(\n|\t)/g,"").replace(/\s+/g," ");return L.UHTMLComboboxElement=Te,L.UHTMLTabElement=Pn,L.UHTMLTabListElement=Rn,L.UHTMLTabPanelElement=Wn,L.UHTMLTabsElement=Nn,L.analytics=fi,L.fixLawHtml=Ei,L.getLawChecked=zs,L.pagination=Ys,L.parseLawIds=Gs,L.parseLawMeta=Js,L.printcss=Rc,L.setLawChecked=Bs,L.styles=pa,L.toast=I,L.toggleAppExpanded=bi,L.toggleLawChecked=Fs,L.version=ua,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),L})({});
348
+ @keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,pn=!1,wr=class extends Rc{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(br("slot",null,{hidden:""}),br("style",Uc))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(pn)return;pn=!0;const t=Nc||gr,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=Dc(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),gr)for(const o of this.labels)W(o,"aria-label",n);W(this,"aria-busy",`${this.position===-1}`),W(this,"aria-label",n.trim()),W(this,"aria-labelledby",null),W(this,"aria-valuemax","100"),W(this,"aria-valuemin","0"),W(this,"aria-valuenow",`${e}`),W(this,"role",t?"img":"progressbar"),pn=!1}get labels(){const t=this.closest("label:not([for])"),e=qc(this);return t&&(t.htmlFor=e),Pc(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return xr(this,"value")}set value(t){Er(this,"value",t)}get max(){return xr(this,"max")||1}set max(t){Er(this,"max",t)}};wr.formAssociated=!0;var yr=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),xr=(t,e)=>{const n=W(t,e);return yr(n)?Math.max(0,Number.parseFloat(n)):null},Er=(t,e,n)=>{if(n===null||yr(n))W(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${W}': '${n}'`)};Vc.define("u-progress",wr);const zc=String(ma).replace(/\/\*[^!][^*]*\*\//gs,"").replace(/(\n|\t)/g,"").replace(/\s+/g," ");return L.UHTMLComboboxElement=Ae,L.UHTMLTabElement=Wn,L.UHTMLTabListElement=Pn,L.UHTMLTabPanelElement=qn,L.UHTMLTabsElement=Rn,L.analytics=hi,L.fixLawHtml=Si,L.getLawChecked=Gs,L.pagination=$s,L.parseLawIds=Xs,L.parseLawMeta=js,L.printcss=zc,L.setLawChecked=Hs,L.styles=ha,L.toast=M,L.toggleAppExpanded=wi,L.toggleLawChecked=Js,L.version=fa,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"}),L})({});
@@ -1,4 +1,4 @@
1
- const o = "2.3.0";
1
+ const o = "2.3.2";
2
2
  export {
3
3
  o as version
4
4
  };