@mattilsynet/design 2.2.23 → 2.2.24

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.
@@ -5,7 +5,7 @@ var mtds=function(k){"use strict";var rs=Object.defineProperty,nn=Object.getOwnP
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) { ${fs} }`,dn="beforeinput,blur,focus,click,input,keydown,mousedown",un={once:!0,passive:!0},Nt="false",Es=us&&!sn,Ss=sn||ps,pn="​".repeat(5),fn="deleteContentBackward",$s="insertText",Ht={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ve=class extends ms{constructor(){super(),this._item="",this._speak="",this._texts=ds({},Ht),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Dt("slot"),Dt("style",xs))}static get observedAttributes(){return Object.keys(Ht).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=bs(this),Mt(this,dn,this,!0),me(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Bt,0,this),setTimeout(Ft,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Ht[o]&&(this._texts[o]=n||Ht[o])}disconnectedCallback(){me(this,!1),hs(this,dn,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;_e(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Cs(this),t.type==="click"&&As(this,t),t.type==="focus"&&Ts(this,t),t.type==="input"&&Ls(this,t),t.type==="keydown"&&Is(this,t),t.type==="mousedown"&&be(t),t.type==="mutation"&&Bt(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Nt)!==Nt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Nt)!==Nt}set creatable(t){x(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())||""},ye=t=>t instanceof HTMLDataElement,_e=({control:t})=>t?.disabled||t?.readOnly||!1,Bt=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=_s(a),d=l.endsWith(pn)?x(a,"data-label"):l;x(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const f=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)ye(w)&&f.unshift(w);for(const w of y)ye(w)&&f.push(w)}const m=c?f.length===1:f[0]===o;if(o&&m){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=ye(o)?a:o,E=!f[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(f[0])}, `,(Ss||o===a)&&he(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var R;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(R=w?.focus)==null||R.call(w),x(a,"inputmode",y),t._speak="",Es?Mt(t,"blur",()=>Bt(t),un):setTimeout(Bt,100,t)},100)}let h=0;const g=t.querySelector("select"),_=_e(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[h],w=ot(b),E=b.value||w,R=`${t._speak}${w}, ${_}${++h} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",R),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const b of[...g?.options||[]].slice(h))b.remove();!c&&h>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",ln(r)),x(a,"aria-label",`${t._speak}${u}${pn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",ln(r)),x(r,"popover","manual"));const v=ot(s[0]);v!==t._item&&Ft(t),t._item=v,mn(t),hn(t),(n=me(t))==null||n.takeRecords()},mn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||_e(t))},hn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:ot(s);x(s,"aria-label",n?`${n}${ot(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Ft=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&cn(n,i,i?$s:fn)},we=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(m=>(x(m,"label")||ot(m)).trim().toLowerCase()===d);const f={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",f))||(u=[...i].find(m=>m.selected)),e)return hn(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):Ft(t),he(o.invalid));for(const m of i)m.selected=m===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Dt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Ft(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},Ts=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),he()},Cs=t=>be()||setTimeout(ks,0,t),ks=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||we(t),t._focus=void 0)},As=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&cn(a,"",fn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:f}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=f&&n<=d)return c.focus()}i===t&&a?.focus()},Ls=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=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 c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||we(t,!1);mn(t)},Is=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Mt(o,"blur",()=>x(o,"tabindex",null),un)),!(!l&&gs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const f=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",f)),we(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ys.define("u-combobox",ve);var xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Os=xe&&/android/i.test(navigator.userAgent),gn;xe&&/^Mac/i.test(((gn=navigator.userAgentData)==null?void 0:gn.platform)||navigator.platform);var Rs=`${Os?"data":"aria"}-labelledby`,Ee=":host(:not([hidden])) { display: block }",Ut=typeof HTMLElement>"u"?class{}:HTMLElement;function L(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)},Ms=(t,...e)=>bn("add",t,e),Ps=(t,...e)=>bn("remove",t,e),Vt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(wn("slot"),wn("style",e)),qt=new WeakMap,vn=(t,e)=>{if(e===void 0)return qt.get(t);try{qt.get(t).disconnect(),qt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),qt.set(t,n)}},Ds=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},yn=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},Ns=0,_n=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ns).toString(32)}`),t.id):"",wn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Gt={define:(t,e)=>!xe||window.customElements.get(t)||window.customElements.define(t,e)},Hs=Ee,Bs=Ee,Fs=Ee,Us=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Wt="aria-controls",ht="aria-selected",xn=class extends Ut{constructor(){super(),Vt(this,Hs)}get tabList(){return zt("u-tablist",this)[0]||null}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}get tabs(){return zt("u-tab",this)}get panels(){return zt("u-tabpanel",this)}},En=class extends Ut{constructor(){super(),Vt(this,Bs)}connectedCallback(){L(this,"role","tablist"),Ms(this,"click,keydown",this),vn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ps(this,"click,keydown",this),vn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Te(n[o]),t.type==="keydown"&&!Ds(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=Xt(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 Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}},Se=!1,Sn=class extends Ut{static get observedAttributes(){return["id",ht,Wt]}constructor(){super(),Vt(this,Us)}connectedCallback(){L(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Se&&this.selected&&this.tabList){Se=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=zt("u-tabpanel",this.tabsElement||this),n=$e(this,e[t.indexOf(this)]);n&&L(n,Rs,_n(this)),t.forEach((o,i)=>{const s=$e(o,e[i]);o.tabIndex=o===this?0:-1,L(o,ht,`${o===this}`),L(o,Wt,s?.id||null),s&&(s.hidden=s!==n)}),Se=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return L(this,ht)==="true"}set selected(t){L(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return $e(this)}},$n=class extends Ut{static get observedAttributes(){return["hidden"]}constructor(){super(),Vt(this,Fs)}connectedCallback(){L(this,"role","tabpanel"),this.hidden=Xt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;L(this,"aria-hidden",`${t}`),L(this,"tabindex",t||Vs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Wt}="${this.id}"]`;return yn(this).querySelectorAll(t)}},zt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),$e=(t,e)=>{const n=L(t,Wt)||_n(e),o=yn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Xt=t=>[...t].findIndex(e=>L(e,ht)==="true"),Te=t=>t&&L(t,"aria-disabled")!=="true"&&L(t,"aria-selected","true"),Vs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Gt.define("u-tabs",xn),Gt.define("u-tablist",En),Gt.define("u-tab",Sn),Gt.define("u-tabpanel",$n);const qs="2.2.23",Tn="_alert_mdphy_1 _ds-alert_5rpuv_3",Cn="_app_mdphy_1",kn="_sticky_mdphy_1",An="_avatar_mdphy_1 _ds-avatar_5rpuv_1",Ln="_badge_mdphy_1",In="_breadcrumbs_mdphy_1 _ds-breadcrumbs_5rpuv_5",On="_button_mdphy_1 _ds-button_5rpuv_1",Rn="_card_mdphy_1",Mn="_group_mdphy_1",Pn="_chip_mdphy_1 _ds-chip_5rpuv_5",Dn="_details_mdphy_1 _ds-details_5rpuv_3",Nn="_dialog_mdphy_1 _ds-dialog_5rpuv_5",Hn="__drawer_mdphy_1",Bn="_divider_mdphy_1",Fn="_errorsummary_mdphy_1 _ds-error-summary_5rpuv_5",Un="__errorsummary_mdphy_1",Vn="_field_mdphy_1 _ds-field_5rpuv_1",qn="__datalist_mdphy_1",Gn="_affixes_mdphy_1 _ds-field-affixes_5rpuv_3",Wn="_fieldset_mdphy_1 _ds-fieldset_5rpuv_3",zn="_fileupload_mdphy_1",Xn="_helptext_mdphy_1 _ds-focus_5rpuv_1",jn="_input_mdphy_1 _ds-input_5rpuv_1",Kn="_law_mdphy_1",Yn="_grid_mdphy_1",Qn="_flex_mdphy_1",Jn="_link_mdphy_1",Zn="_logo_mdphy_1",to="_pagination_mdphy_1 _ds-pagination_5rpuv_5",eo="_popover_mdphy_1",no="_progress_mdphy_1",oo="__indeterminate_mdphy_1",io="_skeleton_mdphy_1 _ds-skeleton_5rpuv_5",so="__skeleton_mdphy_1",ao="_spinner_mdphy_1",ro="_steps_mdphy_1",lo="_table_mdphy_1 _ds-table_5rpuv_5",co="__scrollShadow_mdphy_1",uo="_tabs_mdphy_1 _ds-tabs_5rpuv_5",po="__scrollMask_mdphy_1",fo="_tag_mdphy_1 _ds-tag_5rpuv_5",mo="_toast_mdphy_1",ho="__toastClose_mdphy_1",go="__toastOpen_mdphy_1",bo="__toastTimeout_mdphy_1",vo="_togglegroup_mdphy_1",yo="__tooltip_mdphy_1",_o="_heading_mdphy_1 _ds-heading_5rpuv_1",wo="_ingress_mdphy_1",xo="_muted_mdphy_1",Eo="_info_mdphy_1",So="_prose_mdphy_1",$o="_validation_mdphy_1 _ds-validation-message_5rpuv_1",To="_body_mdphy_173",Co="__checked_mdphy_1",$={alert:Tn,app:Cn,sticky:kn,avatar:An,badge:Ln,breadcrumbs:In,button:On,card:Rn,group:Mn,chip:Pn,details:Dn,dialog:Nn,_drawer:Hn,divider:Bn,errorsummary:Fn,_errorsummary:Un,field:Vn,_datalist:qn,affixes:Gn,fieldset:Wn,fileupload:zn,helptext:Xn,input:jn,law:Kn,grid:Yn,flex:Qn,link:Jn,logo:Zn,pagination:to,popover:eo,progress:no,_indeterminate:oo,skeleton:io,_skeleton:so,spinner:ao,steps:ro,table:lo,_scrollShadow:co,tabs:uo,_scrollMask:po,tag:fo,toast:mo,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,togglegroup:vo,_tooltip:yo,heading:_o,ingress:wo,muted:xo,info:Eo,prose:So,validation:$o,body:To,_checked:Co},Gs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Co,_datalist:qn,_drawer:Hn,_errorsummary:Un,_indeterminate:oo,_scrollMask:po,_scrollShadow:co,_skeleton:so,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,_tooltip:yo,affixes:Gn,alert:Tn,app:Cn,avatar:An,badge:Ln,body:To,breadcrumbs:In,button:On,card:Rn,chip:Pn,default:$,details:Dn,dialog:Nn,divider:Bn,errorsummary:Fn,field:Vn,fieldset:Wn,fileupload:zn,flex:Qn,grid:Yn,group:Mn,heading:_o,helptext:Xn,info:Eo,ingress:wo,input:jn,law:Kn,link:Jn,logo:Zn,muted:xo,pagination:to,popover:eo,progress:no,prose:So,skeleton:io,spinner:ao,steps:ro,sticky:kn,table:lo,tabs:uo,tag:fo,toast:mo,togglegroup:vo,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,M=Math.max,jt=Math.round,Kt=Math.floor,q=t=>({x:t,y:t}),Ws={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function ko(t,e,n){return M(t,gt(e,n))}function Yt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Qt(t){return t.split("-")[1]}function Ao(t){return t==="x"?"y":"x"}function Lo(t){return t==="y"?"height":"width"}const Xs=new Set(["top","bottom"]);function Q(t){return Xs.has(it(t))?"y":"x"}function Io(t){return Ao(Q(t))}function js(t,e,n){n===void 0&&(n=!1);const o=Qt(t),i=Io(t),s=Lo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Jt(a)),[a,Jt(a)]}function Ks(t){const e=Jt(t);return[Ce(t),e,Ce(e)]}function Ce(t){return t.replace(/start|end/g,e=>zs[e])}const Oo=["left","right"],Ro=["right","left"],Ys=["top","bottom"],Qs=["bottom","top"];function Js(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ys:Qs;default:return[]}}function Zs(t,e,n,o){const i=Qt(t);let s=Js(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ce)))),s}function Jt(t){return t.replace(/left|right|bottom|top/g,e=>Ws[e])}function ta(t){return{top:0,right:0,bottom:0,left:0,...t}}function ea(t){return typeof t!="number"?ta(t):{top:t,right:t,bottom:t,left:t}}function Zt(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 Mo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Io(e),r=Lo(a),c=it(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,f=o[r]/2-i[r]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-i.width,y:u};break;default:m={x:o.x,y:o.y}}switch(Qt(e)){case"start":m[a]-=f*(n&&l?-1:1);break;case"end":m[a]+=f*(n&&l?-1:1);break}return m}const na=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Mo(l,o,c),f=o,m={},h=0;for(let g=0;g<r.length;g++){const{name:_,fn:v}=r[g],{x:b,y,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,m={...m,[_]:{...m[_],...w}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Mo(l,f,c)),g=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:m}};async function ke(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:m=0}=Yt(e,t),h=ea(m),_=r[f?u==="floating"?"reference":"floating":u],v=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-E.top+h.top)/w.y,bottom:(E.bottom-v.bottom+h.bottom)/w.y,left:(v.left-E.left+h.left)/w.x,right:(E.right-v.right+h.right)/w.x}}const oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Yt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=it(i),b=Q(r),y=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=f||(y||!g?[Jt(r)]:Ks(r)),R=h!=="none";!f&&R&&E.push(...Zs(r,g,h,w));const z=[r,...E],dt=await ke(e,_),ut=[];let Y=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const pt=js(i,a,w);ut.push(dt[pt[0]],dt[pt[1]])}if(Y=[...Y,{placement:i,overflows:ut}],!ut.every(pt=>pt<=0)){var Lt,It;const pt=(((Lt=s.flip)==null?void 0:Lt.index)||0)+1,en=z[pt];if(en&&(!(u==="alignment"?b!==Q(en):!1)||Y.every(V=>Q(V.placement)===b?V.overflows[0]>0:!0)))return{data:{index:pt,overflows:Y},reset:{placement:en}};let Rt=(It=Y.filter(ft=>ft.overflows[0]<=0).sort((ft,V)=>ft.overflows[1]-V.overflows[1])[0])==null?void 0:It.placement;if(!Rt)switch(m){case"bestFit":{var Ot;const ft=(Ot=Y.filter(V=>{if(R){const et=Q(V.placement);return et===b||et==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(et=>et>0).reduce((et,tc)=>et+tc,0)]).sort((V,et)=>V[1]-et[1])[0])==null?void 0:Ot[0];ft&&(Rt=ft);break}case"initialPlacement":Rt=r;break}if(i!==Rt)return{reset:{placement:Rt}}}return{}}}},ia=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...c}=Yt(t,e),l={x:n,y:o},d=await ke(e,c),u=Q(it(i)),f=Ao(u);let m=l[f],h=l[u];if(s){const _=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=ko(b,m,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=ko(b,h,y)}const g=r.fn({...e,[f]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:s,[u]:a}}}}}},sa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Yt(t,e),d=await ke(e,l),u=it(i),f=Qt(i),m=Q(i)==="y",{width:h,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=f===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=f==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=h-d.left-d.right,w=gt(g-d[_],b),E=gt(h-d[v],y),R=!e.middlewareData.shift;let z=w,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(z=b),R&&!f){const Y=M(d.left,0),Lt=M(d.right,0),It=M(d.top,0),Ot=M(d.bottom,0);m?dt=h-2*(Y!==0||Lt!==0?Y+Lt:M(d.left,d.right)):z=g-2*(It!==0||Ot!==0?It+Ot:M(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:z});const ut=await a.getDimensions(r.floating);return h!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function te(){return typeof window<"u"}function bt(t){return Po(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function G(t){var e;return(e=(Po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Po(t){return te()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return te()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return te()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Do(t){return!te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const aa=new Set(["inline","contents"]);function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!aa.has(i)}const ra=new Set(["table","td","th"]);function la(t){return ra.has(bt(t))}const ca=[":popover-open",":modal"];function ee(t){return ca.some(e=>{try{return t.matches(e)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],ua=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function Ae(t){const e=Le(),n=H(t)?B(t):t;return da.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)||ua.some(o=>(n.willChange||"").includes(o))||pa.some(o=>(n.contain||"").includes(o))}function fa(t){let e=J(t);for(;W(e)&&!vt(e);){if(Ae(e))return e;if(ee(e))return null;e=J(e)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ma=new Set(["html","body","#document"]);function vt(t){return ma.has(bt(t))}function B(t){return P(t).getComputedStyle(t)}function ne(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(bt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Do(t)&&t.host||G(t);return Do(e)?e.host:e}function No(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&xt(e)?e:No(e)}function Et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=No(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ie(a);return e.concat(a,a.visualViewport||[],xt(i)?i:[],r&&n?Et(r):[])}return e.concat(i,Et(i,[],n))}function Ie(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=jt(n)!==s||jt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Oe(t){return H(t)?t:t.contextElement}function yt(t){const e=Oe(t);if(!W(e))return q(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ho(e);let a=(s?jt(n.width):n.width)/o,r=(s?jt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ha=q(0);function Bo(t){const e=P(t);return!Le()||!e.visualViewport?ha:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ga(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function st(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Oe(t);let a=q(1);e&&(o?H(o)&&(a=yt(o)):a=yt(t));const r=ga(s,n,o)?Bo(s):q(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const f=P(s),m=o&&H(o)?P(o):o;let h=f,g=Ie(h);for(;g&&o&&m!==h;){const _=yt(g),v=g.getBoundingClientRect(),b=B(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=y,l+=w,h=P(g),g=Ie(h)}}return Zt({width:d,height:u,x:c,y:l})}function oe(t,e){const n=ne(t).scrollLeft;return e?e.left+n:st(G(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-oe(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 s=i==="fixed",a=G(o),r=e?ee(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=q(1);const d=q(0),u=W(o);if((u||!u&&!s)&&((bt(o)!=="body"||xt(a))&&(c=ne(o)),W(o))){const m=st(o);l=yt(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const f=a&&!u&&!s?Fo(a,c):q(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+f.x,y:n.y*l.y-c.scrollTop*l.y+d.y+f.y}}function va(t){return Array.from(t.getClientRects())}function ya(t){const e=G(t),n=ne(t),o=t.ownerDocument.body,i=M(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=M(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=M(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function _a(t,e){const n=P(t),o=G(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Le();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=oe(o);if(l<=0){const d=o.ownerDocument,u=d.body,f=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-u.clientWidth-m);h<=Uo&&(s-=h)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const wa=new Set(["absolute","fixed"]);function xa(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?yt(t):q(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function Vo(t,e,n){let o;if(e==="viewport")o=_a(t,n);else if(e==="document")o=ya(G(t));else if(H(e))o=xa(e,n);else{const i=Bo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Zt(o)}function qo(t,e){const n=J(t);return n===e||!H(n)||vt(n)?!1:B(n).position==="fixed"||qo(n,e)}function Ea(t,e){const n=e.get(t);if(n)return n;let o=Et(t,[],!1).filter(r=>H(r)&&bt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!vt(a);){const r=B(a),c=Ae(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&wa.has(i.position)||xt(a)&&!c&&qo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function Sa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?ee(e)?[]:Ea(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=Vo(e,d,i);return l.top=M(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=M(u.left,l.left),l},Vo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $a(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function Ta(t,e,n){const o=W(e),i=G(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=q(0);function l(){c.x=oe(i)}if(o||!o&&!s)if((bt(e)!=="body"||xt(i))&&(r=ne(e)),o){const m=st(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Fo(i,r):q(0),u=a.left+r.scrollLeft-c.x-d.x,f=a.top+r.scrollTop-c.y-d.y;return{x:u,y:f,width:a.width,height:a.height}}function Re(t){return B(t).position==="static"}function Go(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return G(t)===n&&(n=n.ownerDocument.body),n}function Wo(t,e){const n=P(t);if(ee(t))return n;if(!W(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Re(i))return i;i=J(i)}return n}let o=Go(t,e);for(;o&&la(o)&&Re(o);)o=Go(o,e);return o&&vt(o)&&Re(o)&&!Ae(o)?n:o||fa(t)||n}const Ca=async function(t){const e=this.getOffsetParent||Wo,n=this.getDimensions,o=await n(t.floating);return{reference:Ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ka(t){return B(t).direction==="rtl"}const Aa={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:G,getClippingRect:Sa,getOffsetParent:Wo,getElementRects:Ca,getClientRects:va,getDimensions:$a,getScale:yt,isElement:H,isRTL:ka};function zo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function La(t,e){let n=null,o;const i=G(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:f,height:m}=l;if(r||e(),!f||!m)return;const h=Kt(u),g=Kt(i.clientWidth-(d+f)),_=Kt(i.clientHeight-(u+m)),v=Kt(d),y={rootMargin:-h+"px "+-g+"px "+-_+"px "+-v+"px",threshold:M(0,gt(1,c))||1};let w=!0;function E(R){const z=R[0].intersectionRatio;if(z!==c){if(!w)return a();z?a(!1,z):o=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!zo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Ia(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Oe(t),d=i||s?[...l?Et(l):[],...Et(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?La(l,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),l&&!c&&m.observe(l),m.observe(e));let h,g=c?st(t):null;c&&_();function _(){const v=st(t);g&&!zo(g,v)&&n(),g=v,h=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const Xo=ia,jo=oa,Oa=sa,Ra=(t,e,n)=>{const o=new Map,i={platform:Aa,...n},s={...i.platform,_c:o};return na(t,e,{...i,platform:s})};function Ko(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=Ko(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Ma(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ko(t))&&(o&&(o+=" "),o+=e);return o}const I={capture:!0,passive:!0},D=typeof window<"u"&&typeof document<"u";function Pa(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}function p(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 Da=0;const Na=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ie(t){return t.id||(t.id=`${Na}${++Da}`),t.id}const Yo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},T=(t,...e)=>(Yo("add",t,e),()=>Qo(t,...e)),Qo=(t,...e)=>Yo("remove",t,e),N=t=>{if(!D||!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():T(window,"load",e)},Me=new WeakMap,Ha=`.${$.dialog.split(" ")[0]}`;function at(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ha)?.querySelector(":scope > footer"),r=Number(p(t,"data-inset"))||20,l={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=p(t,"data-position")??"bottom";Me.set(t,Ia(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return at(t,!1);Ra(e,t,{...s,placement:i||d,middleware:[jo({padding:l}),Xo(),...n?[Oa({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:f})=>{t.style.left=`${u}px`,t.style.top=`${f}px`})}))}}function Z(t,e){let n=0;const o=Array.isArray(e)||typeof e=="string"?{attr:e}:e,i=()=>setTimeout(s,o?.delay??200),s=()=>{if(!D)return r();t(a),a.takeRecords(),n=0},a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))}),r=()=>{try{a.disconnect()}catch{}};return a.observe(o?.root||document.documentElement,{attributeFilter:[].concat(o.attr),attributes:!0,childList:!0,subtree:!0}),t(a),r}function Ba(t,e){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}const Pe=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,s]of Object.entries(e))p(o,i,s);return o},Fa=typeof HTMLElement>"u"?class{}:HTMLElement,Ua=`.${$.breadcrumbs.split(" ")[0]}`,Va=`.${$.card.split(" ")[0]}`,Jo=`.${$.chip.split(" ")[0]}`,qa=`.${$.helptext.split(" ")[0]}`,Ga=`.${$.pagination.split(" ")[0]}`,Wa='summary,u-summary,a,button,[role="tab"],[role="button"]',za="click,toggle,submit,change",De="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Xa="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Zo(t,e={}){if(D){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${De}/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:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&ja();const a=s?`https://cdn.matomo.cloud/${De}/container_${s}.js`:`https://cdn.matomo.cloud/${De}/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:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function ja(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
8
+ ::slotted(data:focus) { ${fs} }`,dn="beforeinput,blur,focus,click,input,keydown,mousedown",un={once:!0,passive:!0},Nt="false",Es=us&&!sn,Ss=sn||ps,pn="​".repeat(5),fn="deleteContentBackward",$s="insertText",Ht={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ve=class extends ms{constructor(){super(),this._item="",this._speak="",this._texts=ds({},Ht),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Dt("slot"),Dt("style",xs))}static get observedAttributes(){return Object.keys(Ht).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=bs(this),Mt(this,dn,this,!0),me(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Bt,0,this),setTimeout(Ft,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Ht[o]&&(this._texts[o]=n||Ht[o])}disconnectedCallback(){me(this,!1),hs(this,dn,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;_e(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Cs(this),t.type==="click"&&As(this,t),t.type==="focus"&&Ts(this,t),t.type==="input"&&Ls(this,t),t.type==="keydown"&&Is(this,t),t.type==="mousedown"&&be(t),t.type==="mutation"&&Bt(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Nt)!==Nt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Nt)!==Nt}set creatable(t){x(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())||""},ye=t=>t instanceof HTMLDataElement,_e=({control:t})=>t?.disabled||t?.readOnly||!1,Bt=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=_s(a),d=l.endsWith(pn)?x(a,"data-label"):l;x(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const f=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)ye(w)&&f.unshift(w);for(const w of y)ye(w)&&f.push(w)}const m=c?f.length===1:f[0]===o;if(o&&m){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=ye(o)?a:o,E=!f[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${ot(f[0])}, `,(Ss||o===a)&&he(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var R;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(R=w?.focus)==null||R.call(w),x(a,"inputmode",y),t._speak="",Es?Mt(t,"blur",()=>Bt(t),un):setTimeout(Bt,100,t)},100)}let h=0;const g=t.querySelector("select"),_=_e(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[h],w=ot(b),E=b.value||w,R=`${t._speak}${w}, ${_}${++h} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",R),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",c?"":null);for(const b of[...g?.options||[]].slice(h))b.remove();!c&&h>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${c}`),x(a,"list",ln(r)),x(a,"aria-label",`${t._speak}${u}${pn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",ln(r)),x(r,"popover","manual"));const v=ot(s[0]);v!==t._item&&Ft(t),t._item=v,mn(t),hn(t),(n=me(t))==null||n.takeRecords()},mn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||_e(t))},hn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:ot(s);x(s,"aria-label",n?`${n}${ot(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Ft=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&cn(n,i,i?$s:fn)},we=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(m=>(x(m,"label")||ot(m)).trim().toLowerCase()===d);const f={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",f))||(u=[...i].find(m=>m.selected)),e)return hn(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):Ft(t),he(o.invalid));for(const m of i)m.selected=m===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Dt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Ft(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},Ts=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),he()},Cs=t=>be()||setTimeout(ks,0,t),ks=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||we(t),t._focus=void 0)},As=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&cn(a,"",fn),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:f}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=f&&n<=d)return c.focus()}i===t&&a?.focus()},Ls=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=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 c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||we(t,!1);mn(t)},Is=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=0,o.focus(),Mt(o,"blur",()=>x(o,"tabindex",null),un)),!(!l&&gs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const f=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",f)),we(t)}else if(a==="Backspace"&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};ys.define("u-combobox",ve);var xe=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Os=xe&&/android/i.test(navigator.userAgent),gn;xe&&/^Mac/i.test(((gn=navigator.userAgentData)==null?void 0:gn.platform)||navigator.platform);var Rs=`${Os?"data":"aria"}-labelledby`,Ee=":host(:not([hidden])) { display: block }",Ut=typeof HTMLElement>"u"?class{}:HTMLElement;function L(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)},Ms=(t,...e)=>bn("add",t,e),Ps=(t,...e)=>bn("remove",t,e),Vt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(wn("slot"),wn("style",e)),qt=new WeakMap,vn=(t,e)=>{if(e===void 0)return qt.get(t);try{qt.get(t).disconnect(),qt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),qt.set(t,n)}},Ds=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},yn=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},Ns=0,_n=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ns).toString(32)}`),t.id):"",wn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Gt={define:(t,e)=>!xe||window.customElements.get(t)||window.customElements.define(t,e)},Hs=Ee,Bs=Ee,Fs=Ee,Us=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Wt="aria-controls",ht="aria-selected",xn=class extends Ut{constructor(){super(),Vt(this,Hs)}get tabList(){return zt("u-tablist",this)[0]||null}get selectedIndex(){return Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}get tabs(){return zt("u-tab",this)}get panels(){return zt("u-tabpanel",this)}},En=class extends Ut{constructor(){super(),Vt(this,Bs)}connectedCallback(){L(this,"role","tablist"),Ms(this,"click,keydown",this),vn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ps(this,"click,keydown",this),vn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&Te(n[o]),t.type==="keydown"&&!Ds(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=Xt(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 Xt(this.tabs)}set selectedIndex(t){Te(this.tabs[t])}},Se=!1,Sn=class extends Ut{static get observedAttributes(){return["id",ht,Wt]}constructor(){super(),Vt(this,Us)}connectedCallback(){L(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Se&&this.selected&&this.tabList){Se=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=zt("u-tabpanel",this.tabsElement||this),n=$e(this,e[t.indexOf(this)]);n&&L(n,Rs,_n(this)),t.forEach((o,i)=>{const s=$e(o,e[i]);o.tabIndex=o===this?0:-1,L(o,ht,`${o===this}`),L(o,Wt,s?.id||null),s&&(s.hidden=s!==n)}),Se=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return L(this,ht)==="true"}set selected(t){L(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return $e(this)}},$n=class extends Ut{static get observedAttributes(){return["hidden"]}constructor(){super(),Vt(this,Fs)}connectedCallback(){L(this,"role","tabpanel"),this.hidden=Xt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;L(this,"aria-hidden",`${t}`),L(this,"tabindex",t||Vs(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Wt}="${this.id}"]`;return yn(this).querySelectorAll(t)}},zt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),$e=(t,e)=>{const n=L(t,Wt)||_n(e),o=yn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Xt=t=>[...t].findIndex(e=>L(e,ht)==="true"),Te=t=>t&&L(t,"aria-disabled")!=="true"&&L(t,"aria-selected","true"),Vs=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Gt.define("u-tabs",xn),Gt.define("u-tablist",En),Gt.define("u-tab",Sn),Gt.define("u-tabpanel",$n);const qs="2.2.24",Tn="_alert_mdphy_1 _ds-alert_5rpuv_3",Cn="_app_mdphy_1",kn="_sticky_mdphy_1",An="_avatar_mdphy_1 _ds-avatar_5rpuv_1",Ln="_badge_mdphy_1",In="_breadcrumbs_mdphy_1 _ds-breadcrumbs_5rpuv_5",On="_button_mdphy_1 _ds-button_5rpuv_1",Rn="_card_mdphy_1",Mn="_group_mdphy_1",Pn="_chip_mdphy_1 _ds-chip_5rpuv_5",Dn="_details_mdphy_1 _ds-details_5rpuv_3",Nn="_dialog_mdphy_1 _ds-dialog_5rpuv_5",Hn="__drawer_mdphy_1",Bn="_divider_mdphy_1",Fn="_errorsummary_mdphy_1 _ds-error-summary_5rpuv_5",Un="__errorsummary_mdphy_1",Vn="_field_mdphy_1 _ds-field_5rpuv_1",qn="__datalist_mdphy_1",Gn="_affixes_mdphy_1 _ds-field-affixes_5rpuv_3",Wn="_fieldset_mdphy_1 _ds-fieldset_5rpuv_3",zn="_fileupload_mdphy_1",Xn="_helptext_mdphy_1 _ds-focus_5rpuv_1",jn="_input_mdphy_1 _ds-input_5rpuv_1",Kn="_law_mdphy_1",Yn="_grid_mdphy_1",Qn="_flex_mdphy_1",Jn="_link_mdphy_1",Zn="_logo_mdphy_1",to="_pagination_mdphy_1 _ds-pagination_5rpuv_5",eo="_popover_mdphy_1",no="_progress_mdphy_1",oo="__indeterminate_mdphy_1",io="_skeleton_mdphy_1 _ds-skeleton_5rpuv_5",so="__skeleton_mdphy_1",ao="_spinner_mdphy_1",ro="_steps_mdphy_1",lo="_table_mdphy_1 _ds-table_5rpuv_5",co="__scrollShadow_mdphy_1",uo="_tabs_mdphy_1 _ds-tabs_5rpuv_5",po="__scrollMask_mdphy_1",fo="_tag_mdphy_1 _ds-tag_5rpuv_5",mo="_toast_mdphy_1",ho="__toastClose_mdphy_1",go="__toastOpen_mdphy_1",bo="__toastTimeout_mdphy_1",vo="_togglegroup_mdphy_1",yo="__tooltip_mdphy_1",_o="_heading_mdphy_1 _ds-heading_5rpuv_1",wo="_ingress_mdphy_1",xo="_muted_mdphy_1",Eo="_info_mdphy_1",So="_prose_mdphy_1",$o="_validation_mdphy_1 _ds-validation-message_5rpuv_1",To="_body_mdphy_173",Co="__checked_mdphy_1",$={alert:Tn,app:Cn,sticky:kn,avatar:An,badge:Ln,breadcrumbs:In,button:On,card:Rn,group:Mn,chip:Pn,details:Dn,dialog:Nn,_drawer:Hn,divider:Bn,errorsummary:Fn,_errorsummary:Un,field:Vn,_datalist:qn,affixes:Gn,fieldset:Wn,fileupload:zn,helptext:Xn,input:jn,law:Kn,grid:Yn,flex:Qn,link:Jn,logo:Zn,pagination:to,popover:eo,progress:no,_indeterminate:oo,skeleton:io,_skeleton:so,spinner:ao,steps:ro,table:lo,_scrollShadow:co,tabs:uo,_scrollMask:po,tag:fo,toast:mo,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,togglegroup:vo,_tooltip:yo,heading:_o,ingress:wo,muted:xo,info:Eo,prose:So,validation:$o,body:To,_checked:Co},Gs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Co,_datalist:qn,_drawer:Hn,_errorsummary:Un,_indeterminate:oo,_scrollMask:po,_scrollShadow:co,_skeleton:so,_toastClose:ho,_toastOpen:go,_toastTimeout:bo,_tooltip:yo,affixes:Gn,alert:Tn,app:Cn,avatar:An,badge:Ln,body:To,breadcrumbs:In,button:On,card:Rn,chip:Pn,default:$,details:Dn,dialog:Nn,divider:Bn,errorsummary:Fn,field:Vn,fieldset:Wn,fileupload:zn,flex:Qn,grid:Yn,group:Mn,heading:_o,helptext:Xn,info:Eo,ingress:wo,input:jn,law:Kn,link:Jn,logo:Zn,muted:xo,pagination:to,popover:eo,progress:no,prose:So,skeleton:io,spinner:ao,steps:ro,sticky:kn,table:lo,tabs:uo,tag:fo,toast:mo,togglegroup:vo,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,M=Math.max,jt=Math.round,Kt=Math.floor,q=t=>({x:t,y:t}),Ws={left:"right",right:"left",bottom:"top",top:"bottom"},zs={start:"end",end:"start"};function ko(t,e,n){return M(t,gt(e,n))}function Yt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Qt(t){return t.split("-")[1]}function Ao(t){return t==="x"?"y":"x"}function Lo(t){return t==="y"?"height":"width"}const Xs=new Set(["top","bottom"]);function Q(t){return Xs.has(it(t))?"y":"x"}function Io(t){return Ao(Q(t))}function js(t,e,n){n===void 0&&(n=!1);const o=Qt(t),i=Io(t),s=Lo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Jt(a)),[a,Jt(a)]}function Ks(t){const e=Jt(t);return[Ce(t),e,Ce(e)]}function Ce(t){return t.replace(/start|end/g,e=>zs[e])}const Oo=["left","right"],Ro=["right","left"],Ys=["top","bottom"],Qs=["bottom","top"];function Js(t,e,n){switch(t){case"top":case"bottom":return n?e?Ro:Oo:e?Oo:Ro;case"left":case"right":return e?Ys:Qs;default:return[]}}function Zs(t,e,n,o){const i=Qt(t);let s=Js(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ce)))),s}function Jt(t){return t.replace(/left|right|bottom|top/g,e=>Ws[e])}function ta(t){return{top:0,right:0,bottom:0,left:0,...t}}function ea(t){return typeof t!="number"?ta(t):{top:t,right:t,bottom:t,left:t}}function Zt(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 Mo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Io(e),r=Lo(a),c=it(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,f=o[r]/2-i[r]/2;let m;switch(c){case"top":m={x:d,y:o.y-i.height};break;case"bottom":m={x:d,y:o.y+o.height};break;case"right":m={x:o.x+o.width,y:u};break;case"left":m={x:o.x-i.width,y:u};break;default:m={x:o.x,y:o.y}}switch(Qt(e)){case"start":m[a]-=f*(n&&l?-1:1);break;case"end":m[a]+=f*(n&&l?-1:1);break}return m}const na=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Mo(l,o,c),f=o,m={},h=0;for(let g=0;g<r.length;g++){const{name:_,fn:v}=r[g],{x:b,y,data:w,reset:E}=await v({x:d,y:u,initialPlacement:o,placement:f,strategy:i,middlewareData:m,rects:l,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,m={...m,[_]:{...m[_],...w}},E&&h<=50&&(h++,typeof E=="object"&&(E.placement&&(f=E.placement),E.rects&&(l=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Mo(l,f,c)),g=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:m}};async function ke(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:m=0}=Yt(e,t),h=ea(m),_=r[f?u==="floating"?"reference":"floating":u],v=Zt(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),b=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,y=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(y))?await(s.getScale==null?void 0:s.getScale(y))||{x:1,y:1}:{x:1,y:1},E=Zt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:c}):b);return{top:(v.top-E.top+h.top)/w.y,bottom:(E.bottom-v.bottom+h.bottom)/w.y,left:(v.left-E.left+h.left)/w.x,right:(E.right-v.right+h.right)/w.x}}const oa=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:g=!0,..._}=Yt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=it(i),b=Q(r),y=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),E=f||(y||!g?[Jt(r)]:Ks(r)),R=h!=="none";!f&&R&&E.push(...Zs(r,g,h,w));const z=[r,...E],dt=await ke(e,_),ut=[];let Y=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const pt=js(i,a,w);ut.push(dt[pt[0]],dt[pt[1]])}if(Y=[...Y,{placement:i,overflows:ut}],!ut.every(pt=>pt<=0)){var Lt,It;const pt=(((Lt=s.flip)==null?void 0:Lt.index)||0)+1,en=z[pt];if(en&&(!(u==="alignment"?b!==Q(en):!1)||Y.every(V=>Q(V.placement)===b?V.overflows[0]>0:!0)))return{data:{index:pt,overflows:Y},reset:{placement:en}};let Rt=(It=Y.filter(ft=>ft.overflows[0]<=0).sort((ft,V)=>ft.overflows[1]-V.overflows[1])[0])==null?void 0:It.placement;if(!Rt)switch(m){case"bestFit":{var Ot;const ft=(Ot=Y.filter(V=>{if(R){const et=Q(V.placement);return et===b||et==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(et=>et>0).reduce((et,tc)=>et+tc,0)]).sort((V,et)=>V[1]-et[1])[0])==null?void 0:Ot[0];ft&&(Rt=ft);break}case"initialPlacement":Rt=r;break}if(i!==Rt)return{reset:{placement:Rt}}}return{}}}},ia=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:b}=_;return{x:v,y:b}}},...c}=Yt(t,e),l={x:n,y:o},d=await ke(e,c),u=Q(it(i)),f=Ao(u);let m=l[f],h=l[u];if(s){const _=f==="y"?"top":"left",v=f==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=ko(b,m,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=ko(b,h,y)}const g=r.fn({...e,[f]:m,[u]:h});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[f]:s,[u]:a}}}}}},sa=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Yt(t,e),d=await ke(e,l),u=it(i),f=Qt(i),m=Q(i)==="y",{width:h,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=f===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=f==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=h-d.left-d.right,w=gt(g-d[_],b),E=gt(h-d[v],y),R=!e.middlewareData.shift;let z=w,dt=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(z=b),R&&!f){const Y=M(d.left,0),Lt=M(d.right,0),It=M(d.top,0),Ot=M(d.bottom,0);m?dt=h-2*(Y!==0||Lt!==0?Y+Lt:M(d.left,d.right)):z=g-2*(It!==0||Ot!==0?It+Ot:M(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:z});const ut=await a.getDimensions(r.floating);return h!==ut.width||g!==ut.height?{reset:{rects:!0}}:{}}}};function te(){return typeof window<"u"}function bt(t){return Po(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function G(t){var e;return(e=(Po(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Po(t){return te()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return te()?t instanceof Element||t instanceof P(t).Element:!1}function W(t){return te()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Do(t){return!te()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const aa=new Set(["inline","contents"]);function xt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!aa.has(i)}const ra=new Set(["table","td","th"]);function la(t){return ra.has(bt(t))}const ca=[":popover-open",":modal"];function ee(t){return ca.some(e=>{try{return t.matches(e)}catch{return!1}})}const da=["transform","translate","scale","rotate","perspective"],ua=["transform","translate","scale","rotate","perspective","filter"],pa=["paint","layout","strict","content"];function Ae(t){const e=Le(),n=H(t)?B(t):t;return da.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)||ua.some(o=>(n.willChange||"").includes(o))||pa.some(o=>(n.contain||"").includes(o))}function fa(t){let e=J(t);for(;W(e)&&!vt(e);){if(Ae(e))return e;if(ee(e))return null;e=J(e)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ma=new Set(["html","body","#document"]);function vt(t){return ma.has(bt(t))}function B(t){return P(t).getComputedStyle(t)}function ne(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(bt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Do(t)&&t.host||G(t);return Do(e)?e.host:e}function No(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&xt(e)?e:No(e)}function Et(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=No(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ie(a);return e.concat(a,a.visualViewport||[],xt(i)?i:[],r&&n?Et(r):[])}return e.concat(i,Et(i,[],n))}function Ie(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ho(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=jt(n)!==s||jt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Oe(t){return H(t)?t:t.contextElement}function yt(t){const e=Oe(t);if(!W(e))return q(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ho(e);let a=(s?jt(n.width):n.width)/o,r=(s?jt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const ha=q(0);function Bo(t){const e=P(t);return!Le()||!e.visualViewport?ha:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ga(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function st(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Oe(t);let a=q(1);e&&(o?H(o)&&(a=yt(o)):a=yt(t));const r=ga(s,n,o)?Bo(s):q(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const f=P(s),m=o&&H(o)?P(o):o;let h=f,g=Ie(h);for(;g&&o&&m!==h;){const _=yt(g),v=g.getBoundingClientRect(),b=B(g),y=v.left+(g.clientLeft+parseFloat(b.paddingLeft))*_.x,w=v.top+(g.clientTop+parseFloat(b.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=y,l+=w,h=P(g),g=Ie(h)}}return Zt({width:d,height:u,x:c,y:l})}function oe(t,e){const n=ne(t).scrollLeft;return e?e.left+n:st(G(t)).left+n}function Fo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-oe(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 s=i==="fixed",a=G(o),r=e?ee(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=q(1);const d=q(0),u=W(o);if((u||!u&&!s)&&((bt(o)!=="body"||xt(a))&&(c=ne(o)),W(o))){const m=st(o);l=yt(o),d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}const f=a&&!u&&!s?Fo(a,c):q(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+f.x,y:n.y*l.y-c.scrollTop*l.y+d.y+f.y}}function va(t){return Array.from(t.getClientRects())}function ya(t){const e=G(t),n=ne(t),o=t.ownerDocument.body,i=M(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=M(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+oe(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=M(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const Uo=25;function _a(t,e){const n=P(t),o=G(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Le();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=oe(o);if(l<=0){const d=o.ownerDocument,u=d.body,f=getComputedStyle(u),m=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,h=Math.abs(o.clientWidth-u.clientWidth-m);h<=Uo&&(s-=h)}else l<=Uo&&(s+=l);return{width:s,height:a,x:r,y:c}}const wa=new Set(["absolute","fixed"]);function xa(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?yt(t):q(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function Vo(t,e,n){let o;if(e==="viewport")o=_a(t,n);else if(e==="document")o=ya(G(t));else if(H(e))o=xa(e,n);else{const i=Bo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Zt(o)}function qo(t,e){const n=J(t);return n===e||!H(n)||vt(n)?!1:B(n).position==="fixed"||qo(n,e)}function Ea(t,e){const n=e.get(t);if(n)return n;let o=Et(t,[],!1).filter(r=>H(r)&&bt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!vt(a);){const r=B(a),c=Ae(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&wa.has(i.position)||xt(a)&&!c&&qo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function Sa(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?ee(e)?[]:Ea(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=Vo(e,d,i);return l.top=M(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=M(u.left,l.left),l},Vo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function $a(t){const{width:e,height:n}=Ho(t);return{width:e,height:n}}function Ta(t,e,n){const o=W(e),i=G(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=q(0);function l(){c.x=oe(i)}if(o||!o&&!s)if((bt(e)!=="body"||xt(i))&&(r=ne(e)),o){const m=st(e,!0,s,e);c.x=m.x+e.clientLeft,c.y=m.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Fo(i,r):q(0),u=a.left+r.scrollLeft-c.x-d.x,f=a.top+r.scrollTop-c.y-d.y;return{x:u,y:f,width:a.width,height:a.height}}function Re(t){return B(t).position==="static"}function Go(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return G(t)===n&&(n=n.ownerDocument.body),n}function Wo(t,e){const n=P(t);if(ee(t))return n;if(!W(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Re(i))return i;i=J(i)}return n}let o=Go(t,e);for(;o&&la(o)&&Re(o);)o=Go(o,e);return o&&vt(o)&&Re(o)&&!Ae(o)?n:o||fa(t)||n}const Ca=async function(t){const e=this.getOffsetParent||Wo,n=this.getDimensions,o=await n(t.floating);return{reference:Ta(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function ka(t){return B(t).direction==="rtl"}const Aa={convertOffsetParentRelativeRectToViewportRelativeRect:ba,getDocumentElement:G,getClippingRect:Sa,getOffsetParent:Wo,getElementRects:Ca,getClientRects:va,getDimensions:$a,getScale:yt,isElement:H,isRTL:ka};function zo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function La(t,e){let n=null,o;const i=G(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:f,height:m}=l;if(r||e(),!f||!m)return;const h=Kt(u),g=Kt(i.clientWidth-(d+f)),_=Kt(i.clientHeight-(u+m)),v=Kt(d),y={rootMargin:-h+"px "+-g+"px "+-_+"px "+-v+"px",threshold:M(0,gt(1,c))||1};let w=!0;function E(R){const z=R[0].intersectionRatio;if(z!==c){if(!w)return a();z?a(!1,z):o=setTimeout(()=>{a(!1,1e-7)},1e3)}z===1&&!zo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(E,{...y,root:i.ownerDocument})}catch{n=new IntersectionObserver(E,y)}n.observe(t)}return a(!0),s}function Ia(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Oe(t),d=i||s?[...l?Et(l):[],...Et(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?La(l,n):null;let f=-1,m=null;a&&(m=new ResizeObserver(v=>{let[b]=v;b&&b.target===l&&m&&(m.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var y;(y=m)==null||y.observe(e)})),n()}),l&&!c&&m.observe(l),m.observe(e));let h,g=c?st(t):null;c&&_();function _(){const v=st(t);g&&!zo(g,v)&&n(),g=v,h=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=m)==null||v.disconnect(),m=null,c&&cancelAnimationFrame(h)}}const Xo=ia,jo=oa,Oa=sa,Ra=(t,e,n)=>{const o=new Map,i={platform:Aa,...n},s={...i.platform,_c:o};return na(t,e,{...i,platform:s})};function Ko(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=Ko(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Ma(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Ko(t))&&(o&&(o+=" "),o+=e);return o}const I={capture:!0,passive:!0},D=typeof window<"u"&&typeof document<"u";function Pa(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}function p(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 Da=0;const Na=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ie(t){return t.id||(t.id=`${Na}${++Da}`),t.id}const Yo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},T=(t,...e)=>(Yo("add",t,e),()=>Qo(t,...e)),Qo=(t,...e)=>Yo("remove",t,e),N=t=>{if(!D||!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():T(window,"load",e)},Me=new WeakMap,Ha=`.${$.dialog.split(" ")[0]}`;function at(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ha)?.querySelector(":scope > footer"),r=Number(p(t,"data-inset"))||20,l={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=p(t,"data-position")??"bottom";Me.set(t,Ia(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return at(t,!1);Ra(e,t,{...s,placement:i||d,middleware:[jo({padding:l}),Xo(),...n?[Oa({padding:l,apply:n})]:[],...o||[]]}).then(({x:u,y:f})=>{t.style.left=`${u}px`,t.style.top=`${f}px`})}))}}function Z(t,e){let n=0;const o=Array.isArray(e)||typeof e=="string"?{attr:e}:e,i=()=>setTimeout(s,o?.delay??200),s=()=>{if(!D)return r();t(a),a.takeRecords(),n=0},a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))}),r=()=>{try{a.disconnect()}catch{}};return a.observe(o?.root||document.documentElement,{attributeFilter:[].concat(o.attr),attributes:!0,childList:!0,subtree:!0}),t(a),r}function Ba(t,e){const n=new ResizeObserver(t);return n.observe(e),()=>n.disconnect()}const Pe=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,s]of Object.entries(e))p(o,i,s);return o},Fa=typeof HTMLElement>"u"?class{}:HTMLElement,Ua=`.${$.breadcrumbs.split(" ")[0]}`,Va=`.${$.card.split(" ")[0]}`,Jo=`.${$.chip.split(" ")[0]}`,qa=`.${$.helptext.split(" ")[0]}`,Ga=`.${$.pagination.split(" ")[0]}`,Wa='summary,u-summary,a,button,[role="tab"],[role="button"]',za="click,toggle,submit,change",De="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Xa="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Zo(t,e={}){if(D){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${De}/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:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&ja();const a=s?`https://cdn.matomo.cloud/${De}/container_${s}.js`:`https://cdn.matomo.cloud/${De}/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:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function ja(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
9
9
  #${F}[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 }
10
10
  #${F} 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 }
11
11
  #${F} button:focus-visible { outline: 2px solid }
@@ -1,4 +1,4 @@
1
- const o = "2.2.23";
1
+ const o = "2.2.24";
2
2
  export {
3
3
  o as version
4
4
  };