@mattilsynet/design 2.2.16 → 2.2.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/mtds/index.iife.js +1 -1
- package/mtds/package.json.js +1 -1
- package/mtds/styles.css +1 -1
- package/package.json +1 -1
package/mtds/index.iife.js
CHANGED
|
@@ -5,7 +5,7 @@ var mtds=function(O){"use strict";var ts=Object.defineProperty,tn=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) { ${as} }`,ln="beforeinput,blur,focus,click,input,keydown,mousedown",cn={once:!0,passive:!0},Dt="false",gs=is&&!nn,bs=nn||ss,dn="".repeat(5),un="deleteContentBackward",vs="insertText",Nt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ge=class extends rs{constructor(){super(),this._item="",this._speak="",this._texts=os({},Nt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Pt("slot"),Pt("style",ms))}static get observedAttributes(){return Object.keys(Nt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ds(this),Ot(this,ln,this,!0),fe(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ht,0,this),setTimeout(Bt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Nt[o]&&(this._texts[o]=n||Nt[o])}disconnectedCallback(){fe(this,!1),ls(this,ln,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;ve(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&_s(this),t.type==="click"&&xs(this,t),t.type==="focus"&&ys(this,t),t.type==="input"&&Es(this,t),t.type==="keydown"&&Ss(this,t),t.type==="mousedown"&&me(t),t.type==="mutation"&&Ht(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Dt)!==Dt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Dt)!==Dt}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)}},nt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},be=t=>t instanceof HTMLDataElement,ve=({control:t})=>t?.disabled||t?.readOnly||!1,Ht=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:l}=t;if(!a||!r)return;const c=ps(a),d=c.endsWith(dn)?x(a,"data-label"):c;x(a,"data-label",d);let u=`${d}${l?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)be(w)&&p.unshift(w);for(const w of y)be(w)&&p.push(w)}const h=l?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=be(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${nt(p[0])}, `,(bs||o===a)&&pe(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(M=w?.focus)==null||M.call(w),x(a,"inputmode",y),t._speak="",gs?Ot(t,"blur",()=>Ht(t),cn):setTimeout(Ht,100,t)},100)}let m=0;const g=t.querySelector("select"),_=ve(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[m],w=nt(b),E=b.value||w,M=`${t._speak}${w}, ${_}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",l?"":null);for(const b of[...g?.options||[]].slice(m))b.remove();!l&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${l}`),x(a,"list",an(r)),x(a,"aria-label",`${t._speak}${u}${dn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",an(r)),x(r,"popover","manual"));const v=nt(s[0]);v!==t._item&&Bt(t),t._item=v,fn(t),pn(t),(n=fe(t))==null||n.takeRecords()},fn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||ve(t))},pn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:nt(s);x(s,"aria-label",n?`${n}${nt(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Bt=t=>{const{multiple:e,control:n,items:o}=t,i=nt(o[0]);!e&&n&&i!==n.value&&rn(n,i,i?vs:un)},ye=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:l}=t,c=((n=a?.value)==null?void 0:n.trim())||"",d=c.toLowerCase()||null;let u=[...i].find(h=>(x(h,"label")||nt(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return pn(t),u?pt(t,u,!1):s&&c?pt(t,{value:c},!1):(!l&&!c&&r[0]?pt(t,r[0]):Bt(t),pe(o.invalid));for(const h of i)h.selected=h===u},pt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Pt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),l={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Bt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",l))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",l))}},ys=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),pe()},_s=t=>me()||setTimeout(ws,0,t),ws=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||ye(t),t._focus=void 0)},xs=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&rn(a,"",un),a?.focus();for(const l of r){const{top:c,right:d,bottom:u,left:p}=l.getBoundingClientRect();if(l.contains(i))return pt(t,l);if(o>=c&&o<=u&&n>=p&&n<=d)return l.focus()}i===t&&a?.focus()},Es=(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 l of o)if(l.value&&l.value===a)return pt(t,l,s)}else s||ye(t,!1);fn(t)},Ss=(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:l}=e,c=i&&i===l,d=c&&i?.selectionEnd;let u=c?s.length:[...s].indexOf(l);if(c&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Ot(o,"blur",()=>x(o,"tabindex",null),cn)),!(!c&&cs(e)||u===-1)){if(a==="ArrowRight"&&!c)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&c){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),ye(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return pt(t,s[u]);c&&(u-=1)}else return c||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};fs.define("u-combobox",ge);var _e=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ts=_e&&/android/i.test(navigator.userAgent),hn;_e&&/^Mac/i.test(((hn=navigator.userAgentData)==null?void 0:hn.platform)||navigator.platform);var Cs=`${Ts?"data":"aria"}-labelledby`,we=":host(:not([hidden])) { display: block }",jt=typeof HTMLElement>"u"?class{}:HTMLElement;function A(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 mn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},$s=(t,...e)=>mn("add",t,e),ks=(t,...e)=>mn("remove",t,e),Ft=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(yn("slot"),yn("style",e)),Ut=new WeakMap,gn=(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)}},As=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bn=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},Ls=0,vn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ls).toString(32)}`),t.id):"",yn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Vt={define:(t,e)=>!_e||window.customElements.get(t)||window.customElements.define(t,e)},Is=we,Ms=we,Os=we,Rs=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',qt="aria-controls",ht="aria-selected",_n=class extends jt{constructor(){super(),Ft(this,Is)}get tabList(){return zt("u-tablist",this)[0]||null}get selectedIndex(){return Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}get tabs(){return zt("u-tab",this)}get panels(){return zt("u-tabpanel",this)}},wn=class extends jt{constructor(){super(),Ft(this,Ms)}connectedCallback(){A(this,"role","tablist"),$s(this,"click,keydown",this),gn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){ks(this,"click,keydown",this),gn(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"&&Se(n[o]),t.type==="keydown"&&!As(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=Wt(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 Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}},xe=!1,xn=class extends jt{static get observedAttributes(){return["id",ht,qt]}constructor(){super(),Ft(this,Rs)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!xe&&this.selected&&this.tabList){xe=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=zt("u-tabpanel",this.tabsElement||this),n=Ee(this,e[t.indexOf(this)]);n&&A(n,Cs,vn(this)),t.forEach((o,i)=>{const s=Ee(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,qt,s?.id||null),s&&(s.hidden=s!==n)}),xe=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ee(this)}},En=class extends jt{static get observedAttributes(){return["hidden"]}constructor(){super(),Ft(this,Os)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Wt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ps(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${qt}="${this.id}"]`;return bn(this).querySelectorAll(t)}},zt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ee=(t,e)=>{const n=A(t,qt)||vn(e),o=bn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Wt=t=>[...t].findIndex(e=>A(e,ht)==="true"),Se=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ps=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Vt.define("u-tabs",_n),Vt.define("u-tablist",wn),Vt.define("u-tab",xn),Vt.define("u-tabpanel",En);const Ds="2.2.16",Sn="_alert_3aj69_1 _ds-alert_pxycd_3",Tn="_app_3aj69_1",Cn="_sticky_3aj69_1",$n="_avatar_3aj69_1 _ds-avatar_pxycd_1",kn="_badge_3aj69_1",An="_breadcrumbs_3aj69_1 _ds-breadcrumbs_pxycd_5",Ln="_button_3aj69_1 _ds-button_pxycd_1",In="_card_3aj69_1",Mn="_group_3aj69_1",On="_chip_3aj69_1 _ds-chip_pxycd_5",Rn="_details_3aj69_1 _ds-details_pxycd_3",Pn="_dialog_3aj69_1 _ds-dialog_pxycd_5",Dn="__drawer_3aj69_1",Nn="_divider_3aj69_1",Hn="_errorsummary_3aj69_1 _ds-error-summary_pxycd_5",Bn="__errorsummary_3aj69_1",jn="_field_3aj69_1 _ds-field_pxycd_1",Fn="__datalist_3aj69_1",Un="_affixes_3aj69_1 _ds-field-affixes_pxycd_3",Vn="_fieldset_3aj69_1 _ds-fieldset_pxycd_3",qn="_helptext_3aj69_1 _ds-focus_pxycd_1",zn="_input_3aj69_1 _ds-input_pxycd_1",Wn="_grid_3aj69_1",Gn="_flex_3aj69_1",Yn="_link_3aj69_1",Kn="_logo_3aj69_1",Xn="_pagination_3aj69_1 _ds-pagination_pxycd_5",Qn="_popover_3aj69_1",Jn="_progress_3aj69_1",Zn="__indeterminate_3aj69_1",to="_skeleton_3aj69_1 _ds-skeleton_pxycd_5",eo="__skeleton_3aj69_1",no="_spinner_3aj69_1",oo="_steps_3aj69_1",io="_table_3aj69_1 _ds-table_pxycd_5",so="__scrollShadow_3aj69_1",ao="_tabs_3aj69_1 _ds-tabs_pxycd_5",ro="__scrollMask_3aj69_1",lo="_tag_3aj69_1 _ds-tag_pxycd_5",co="_toast_3aj69_1",uo="__toastClose_3aj69_1",fo="__toastOpen_3aj69_1",po="__toastTimeout_3aj69_1",ho="_togglegroup_3aj69_1",mo="__tooltip_3aj69_1",go="_heading_3aj69_1 _ds-heading_pxycd_1",bo="_ingress_3aj69_1",vo="_muted_3aj69_1",yo="_info_3aj69_1",_o="_prose_3aj69_1",wo="_validation_3aj69_1 _ds-validation-message_pxycd_1",xo="_body_3aj69_173",Eo="__checked_3aj69_1",T={alert:Sn,app:Tn,sticky:Cn,avatar:$n,badge:kn,breadcrumbs:An,button:Ln,card:In,group:Mn,chip:On,details:Rn,dialog:Pn,_drawer:Dn,divider:Nn,errorsummary:Hn,_errorsummary:Bn,field:jn,_datalist:Fn,affixes:Un,fieldset:Vn,helptext:qn,input:zn,grid:Wn,flex:Gn,link:Yn,logo:Kn,pagination:Xn,popover:Qn,progress:Jn,_indeterminate:Zn,skeleton:to,_skeleton:eo,spinner:no,steps:oo,table:io,_scrollShadow:so,tabs:ao,_scrollMask:ro,tag:lo,toast:co,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,togglegroup:ho,_tooltip:mo,heading:go,ingress:bo,muted:vo,info:yo,prose:_o,validation:wo,body:xo,_checked:Eo},Ns=Object.freeze(Object.defineProperty({__proto__:null,_checked:Eo,_datalist:Fn,_drawer:Dn,_errorsummary:Bn,_indeterminate:Zn,_scrollMask:ro,_scrollShadow:so,_skeleton:eo,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,_tooltip:mo,affixes:Un,alert:Sn,app:Tn,avatar:$n,badge:kn,body:xo,breadcrumbs:An,button:Ln,card:In,chip:On,default:T,details:Rn,dialog:Pn,divider:Nn,errorsummary:Hn,field:jn,fieldset:Vn,flex:Gn,grid:Wn,group:Mn,heading:go,helptext:qn,info:yo,ingress:bo,input:zn,link:Yn,logo:Kn,muted:vo,pagination:Xn,popover:Qn,progress:Jn,prose:_o,skeleton:to,spinner:no,steps:oo,sticky:Cn,table:io,tabs:ao,tag:lo,toast:co,togglegroup:ho,validation:wo},Symbol.toStringTag,{value:"Module"})),mt=Math.min,R=Math.max,Gt=Math.round,Yt=Math.floor,V=t=>({x:t,y:t}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Bs={start:"end",end:"start"};function So(t,e,n){return R(t,mt(e,n))}function Kt(t,e){return typeof t=="function"?t(e):t}function ot(t){return t.split("-")[0]}function Xt(t){return t.split("-")[1]}function To(t){return t==="x"?"y":"x"}function Co(t){return t==="y"?"height":"width"}const js=new Set(["top","bottom"]);function Q(t){return js.has(ot(t))?"y":"x"}function $o(t){return To(Q(t))}function Fs(t,e,n){n===void 0&&(n=!1);const o=Xt(t),i=$o(t),s=Co(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qt(a)),[a,Qt(a)]}function Us(t){const e=Qt(t);return[Te(t),e,Te(e)]}function Te(t){return t.replace(/start|end/g,e=>Bs[e])}const ko=["left","right"],Ao=["right","left"],Vs=["top","bottom"],qs=["bottom","top"];function zs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ao:ko:e?ko:Ao;case"left":case"right":return e?Vs:qs;default:return[]}}function Ws(t,e,n,o){const i=Xt(t);let s=zs(ot(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Te)))),s}function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Hs[e])}function Gs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ys(t){return typeof t!="number"?Gs(t):{top:t,right:t,bottom:t,left:t}}function Jt(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 Lo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=$o(e),r=Co(a),l=ot(e),c=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Xt(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const Ks=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.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}=Lo(c,o,l),p=o,h={},m=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:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,h={...h,[_]:{...h[_],...w}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Lo(c,p,l)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Ce(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Kt(e,t),m=Ys(h),_=r[p?u==="floating"?"reference":"floating":u],v=Jt(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:c,rootBoundary:d,strategy:l})),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=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:l}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const Xs=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:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,..._}=Kt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ot(i),b=Q(r),y=ot(r)===r,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(y||!g?[Qt(r)]:Us(r)),M=m!=="none";!p&&M&&E.push(...Ws(r,g,m,w));const W=[r,...E],ct=await Ce(e,_),dt=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&dt.push(ct[v]),u){const ut=Fs(i,a,w);dt.push(ct[ut[0]],ct[ut[1]])}if(X=[...X,{placement:i,overflows:dt}],!dt.every(ut=>ut<=0)){var At,Lt;const ut=(((At=s.flip)==null?void 0:At.index)||0)+1,Ze=W[ut];if(Ze&&(!(u==="alignment"?b!==Q(Ze):!1)||X.every(U=>Q(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:ut,overflows:X},reset:{placement:Ze}};let Mt=(Lt=X.filter(ft=>ft.overflows[0]<=0).sort((ft,U)=>ft.overflows[1]-U.overflows[1])[0])==null?void 0:Lt.placement;if(!Mt)switch(h){case"bestFit":{var It;const ft=(It=X.filter(U=>{if(M){const tt=Q(U.placement);return tt===b||tt==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(tt=>tt>0).reduce((tt,Cl)=>tt+Cl,0)]).sort((U,tt)=>U[1]-tt[1])[0])==null?void 0:It[0];ft&&(Mt=ft);break}case"initialPlacement":Mt=r;break}if(i!==Mt)return{reset:{placement:Mt}}}return{}}}},Qs=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}}},...l}=Kt(t,e),c={x:n,y:o},d=await Ce(e,l),u=Q(ot(i)),p=To(u);let h=c[p],m=c[u];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=So(b,h,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=So(b,m,y)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},Js=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:l=()=>{},...c}=Kt(t,e),d=await Ce(e,c),u=ot(i),p=Xt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=m-d.left-d.right,w=mt(g-d[_],b),E=mt(m-d[v],y),M=!e.middlewareData.shift;let W=w,ct=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ct=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(W=b),M&&!p){const X=R(d.left,0),At=R(d.right,0),Lt=R(d.top,0),It=R(d.bottom,0);h?ct=m-2*(X!==0||At!==0?X+At:R(d.left,d.right)):W=g-2*(Lt!==0||It!==0?Lt+It:R(d.top,d.bottom))}await l({...e,availableWidth:ct,availableHeight:W});const dt=await a.getDimensions(r.floating);return m!==dt.width||g!==dt.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function gt(t){return Io(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Io(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Io(t){return Zt()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return Zt()?t instanceof Element||t instanceof P(t).Element:!1}function z(t){return Zt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Mo(t){return!Zt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function wt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Zs.has(i)}const ta=new Set(["table","td","th"]);function ea(t){return ta.has(gt(t))}const na=[":popover-open",":modal"];function te(t){return na.some(e=>{try{return t.matches(e)}catch{return!1}})}const oa=["transform","translate","scale","rotate","perspective"],ia=["transform","translate","scale","rotate","perspective","filter"],sa=["paint","layout","strict","content"];function $e(t){const e=ke(),n=H(t)?B(t):t;return oa.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)||ia.some(o=>(n.willChange||"").includes(o))||sa.some(o=>(n.contain||"").includes(o))}function aa(t){let e=J(t);for(;z(e)&&!bt(e);){if($e(e))return e;if(te(e))return null;e=J(e)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ra=new Set(["html","body","#document"]);function bt(t){return ra.has(gt(t))}function B(t){return P(t).getComputedStyle(t)}function ee(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(gt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mo(t)&&t.host||q(t);return Mo(e)?e.host:e}function Oo(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&wt(e)?e:Oo(e)}function xt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Oo(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ae(a);return e.concat(a,a.visualViewport||[],wt(i)?i:[],r&&n?xt(r):[])}return e.concat(i,xt(i,[],n))}function Ae(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ro(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Gt(n)!==s||Gt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Le(t){return H(t)?t:t.contextElement}function vt(t){const e=Le(t);if(!z(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ro(e);let a=(s?Gt(n.width):n.width)/o,r=(s?Gt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const la=V(0);function Po(t){const e=P(t);return!ke()||!e.visualViewport?la:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ca(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Le(t);let a=V(1);e&&(o?H(o)&&(a=vt(o)):a=vt(t));const r=ca(s,n,o)?Po(s):V(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),h=o&&H(o)?P(o):o;let m=p,g=Ae(m);for(;g&&o&&h!==m;){const _=vt(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;l*=_.x,c*=_.y,d*=_.x,u*=_.y,l+=y,c+=w,m=P(g),g=Ae(m)}}return Jt({width:d,height:u,x:l,y:c})}function ne(t,e){const n=ee(t).scrollLeft;return e?e.left+n:it(q(t)).left+n}function Do(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ne(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function da(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=q(o),r=e?te(e.floating):!1;if(o===a||r&&s)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const d=V(0),u=z(o);if((u||!u&&!s)&&((gt(o)!=="body"||wt(a))&&(l=ee(o)),z(o))){const h=it(o);c=vt(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const p=a&&!u&&!s?Do(a,l):V(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function ua(t){return Array.from(t.getClientRects())}function fa(t){const e=q(t),n=ee(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const No=25;function pa(t,e){const n=P(t),o=q(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;const d=ke();(!d||d&&e==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=ne(o);if(c<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=No&&(s-=m)}else c<=No&&(s+=c);return{width:s,height:a,x:r,y:l}}const ha=new Set(["absolute","fixed"]);function ma(t,e){const n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=z(t)?vt(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,l=i*s.x,c=o*s.y;return{width:a,height:r,x:l,y:c}}function Ho(t,e,n){let o;if(e==="viewport")o=pa(t,n);else if(e==="document")o=fa(q(t));else if(H(e))o=ma(e,n);else{const i=Po(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Jt(o)}function Bo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||Bo(n,e)}function ga(t,e){const n=e.get(t);if(n)return n;let o=xt(t,[],!1).filter(r=>H(r)&>(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),l=$e(a);!l&&r.position==="fixed"&&(i=null),(s?!l&&!i:!l&&r.position==="static"&&!!i&&ha.has(i.position)||wt(a)&&!l&&Bo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function ba(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?te(e)?[]:ga(e,this._c):[].concat(n),o],r=a[0],l=a.reduce((c,d)=>{const u=Ho(e,d,i);return c.top=R(u.top,c.top),c.right=mt(u.right,c.right),c.bottom=mt(u.bottom,c.bottom),c.left=R(u.left,c.left),c},Ho(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function va(t){const{width:e,height:n}=Ro(t);return{width:e,height:n}}function ya(t,e,n){const o=z(e),i=q(e),s=n==="fixed",a=it(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=ne(i)}if(o||!o&&!s)if((gt(e)!=="body"||wt(i))&&(r=ee(e)),o){const h=it(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();s&&!o&&i&&c();const d=i&&!o&&!s?Do(i,r):V(0),u=a.left+r.scrollLeft-l.x-d.x,p=a.top+r.scrollTop-l.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Ie(t){return B(t).position==="static"}function jo(t,e){if(!z(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function Fo(t,e){const n=P(t);if(te(t))return n;if(!z(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Ie(i))return i;i=J(i)}return n}let o=jo(t,e);for(;o&&ea(o)&&Ie(o);)o=jo(o,e);return o&&bt(o)&&Ie(o)&&!$e(o)?n:o||aa(t)||n}const _a=async function(t){const e=this.getOffsetParent||Fo,n=this.getDimensions,o=await n(t.floating);return{reference:ya(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wa(t){return B(t).direction==="rtl"}const xa={convertOffsetParentRelativeRectToViewportRelativeRect:da,getDocumentElement:q,getClippingRect:ba,getOffsetParent:Fo,getElementRects:_a,getClientRects:ua,getDimensions:va,getScale:vt,isElement:H,isRTL:wa};function Uo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ea(t,e){let n=null,o;const i=q(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(r||e(),!p||!h)return;const m=Yt(u),g=Yt(i.clientWidth-(d+p)),_=Yt(i.clientHeight-(u+h)),v=Yt(d),y={rootMargin:-m+"px "+-g+"px "+-_+"px "+-v+"px",threshold:R(0,mt(1,l))||1};let w=!0;function E(M){const W=M[0].intersectionRatio;if(W!==l){if(!w)return a();W?a(!1,W):o=setTimeout(()=>{a(!1,1e-7)},1e3)}W===1&&!Uo(c,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 Sa(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:l=!1}=o,c=Le(t),d=i||s?[...c?xt(c):[],...xt(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=c&&r?Ea(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let m,g=l?it(t):null;l&&_();function _(){const v=it(t);g&&!Uo(g,v)&&n(),g=v,m=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Vo=Qs,qo=Xs,Ta=Js,Ca=(t,e,n)=>{const o=new Map,i={platform:xa,...n},s={...i.platform,_c:o};return Ks(t,e,{...i,platform:s})};function zo(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=zo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function $a(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=zo(t))&&(o&&(o+=" "),o+=e);return o}const L={capture:!0,passive:!0},N=typeof window<"u"&&typeof document<"u";function ka(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(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 Aa=0;const La=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function oe(t){return t.id||(t.id=`${La}${++Aa}`),t.id}const Wo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},C=(t,...e)=>(Wo("add",t,e),()=>Go(t,...e)),Go=(t,...e)=>Wo("remove",t,e),D=t=>{if(!N||!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():C(window,"load",e)},Me=new WeakMap,Ia=`.${T.dialog.split(" ")[0]}`;function st(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ia)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,c={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Sa(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return st(t,!1);Ca(e,t,{...s,placement:i||d,middleware:[qo({padding:c}),Vo(),...n?[Ta({padding:c,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function at(t,...e){let n=0;const o=()=>setTimeout(i,200),i=()=>{t([],s),s.takeRecords(),n=0},s=new MutationObserver(()=>{n||(n=requestAnimationFrame(o))});return s.observe(document.documentElement,{attributeFilter:e,attributes:!0,childList:!0,subtree:!0}),()=>s.disconnect()}const Oe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),$=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${T.breadcrumbs.split(" ")[0]}`,Ra=`.${T.card.split(" ")[0]}`,Yo=`.${T.chip.split(" ")[0]}`,Pa=`.${T.helptext.split(" ")[0]}`,Da=`.${T.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Re="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Ko(t,e={}){if(N){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Re}/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/${Re}/container_${s}.js`:`https://cdn.matomo.cloud/${Re}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append($("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(l=>l!==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(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
|
|
8
|
+
::slotted(data:focus) { ${as} }`,ln="beforeinput,blur,focus,click,input,keydown,mousedown",cn={once:!0,passive:!0},Dt="false",gs=is&&!nn,bs=nn||ss,dn="".repeat(5),un="deleteContentBackward",vs="insertText",Nt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ge=class extends rs{constructor(){super(),this._item="",this._speak="",this._texts=os({},Nt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Pt("slot"),Pt("style",ms))}static get observedAttributes(){return Object.keys(Nt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ds(this),Ot(this,ln,this,!0),fe(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ht,0,this),setTimeout(Bt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Nt[o]&&(this._texts[o]=n||Nt[o])}disconnectedCallback(){fe(this,!1),ls(this,ln,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;ve(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&_s(this),t.type==="click"&&xs(this,t),t.type==="focus"&&ys(this,t),t.type==="input"&&Es(this,t),t.type==="keydown"&&Ss(this,t),t.type==="mousedown"&&me(t),t.type==="mutation"&&Ht(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Dt)!==Dt}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Dt)!==Dt}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)}},nt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},be=t=>t instanceof HTMLDataElement,ve=({control:t})=>t?.disabled||t?.readOnly||!1,Ht=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:l}=t;if(!a||!r)return;const c=ps(a),d=c.endsWith(dn)?x(a,"data-label"):c;x(a,"data-label",d);let u=`${d}${l?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const p=[];for(const{addedNodes:b,removedNodes:y}of e?.detail||[]){for(const w of b)be(w)&&p.unshift(w);for(const w of y)be(w)&&p.push(w)}const h=l?p.length===1:p[0]===o;if(o&&h){const b=x(a,"aria-expanded"),y=x(a,"inputmode"),w=be(o)?a:o,E=!p[0].isConnected;t._speak=`${i[E?"removed":"added"]} ${nt(p[0])}, `,(bs||o===a)&&pe(t._speak),a!==w&&(x(a,"aria-expanded",null),x(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var M;x(a,"aria-expanded",b),x(a,"inputmode",E?"none":y),(M=w?.focus)==null||M.call(w),x(a,"inputmode",y),t._speak="",gs?Ot(t,"blur",()=>Ht(t),cn):setTimeout(Ht,100,t)},100)}let m=0;const g=t.querySelector("select"),_=ve(t)?"":`${i.remove}, `;for(const b of s){const y=g?.options[m],w=nt(b),E=b.value||w,M=`${t._speak}${w}, ${_}${++m} ${i.of} ${s.length}`;x(b,"role","button"),x(b,"value",E),x(b,"tabindex","-1"),x(b,"aria-label",M),y?Object.assign(y,{textContent:w,value:E}):g?.appendChild(new Option(w,E,!0,!0))}g&&x(g,"multiple",l?"":null);for(const b of[...g?.options||[]].slice(m))b.remove();!l&&m>1&&console.warn("u-combobox: Multiple <data> found in single mode."),x(r,"aria-multiselectable",`${l}`),x(a,"list",an(r)),x(a,"aria-label",`${t._speak}${u}${dn}`),r.hasAttribute("popover")&&(x(a,"popovertarget",an(r)),x(r,"popover","manual"));const v=nt(s[0]);v!==t._item&&Bt(t),t._item=v,fn(t),pn(t),(n=fe(t))==null||n.takeRecords()},fn=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||ve(t))},pn=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=x(s,"value"))!=null?e:nt(s);x(s,"aria-label",n?`${n}${nt(s)}`:null),x(s,"selected",i.includes(a)?"":null)}},Bt=t=>{const{multiple:e,control:n,items:o}=t,i=nt(o[0]);!e&&n&&i!==n.value&&rn(n,i,i?vs:un)},ye=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:l}=t,c=((n=a?.value)==null?void 0:n.trim())||"",d=c.toLowerCase()||null;let u=[...i].find(h=>(x(h,"label")||nt(h)).trim().toLowerCase()===d);const p={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",p))||(u=[...i].find(h=>h.selected)),e)return pn(t),u?pt(t,u,!1):s&&c?pt(t,{value:c},!1):(!l&&!c&&r[0]?pt(t,r[0]):Bt(t),pe(o.invalid));for(const h of i)h.selected=h===u},pt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Pt("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),l={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Bt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",l))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",l))}},ys=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),pe()},_s=t=>me()||setTimeout(ws,0,t),ws=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||ye(t),t._focus=void 0)},xs=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&rn(a,"",un),a?.focus();for(const l of r){const{top:c,right:d,bottom:u,left:p}=l.getBoundingClientRect();if(l.contains(i))return pt(t,l);if(o>=c&&o<=u&&n>=p&&n<=d)return l.focus()}i===t&&a?.focus()},Es=(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 l of o)if(l.value&&l.value===a)return pt(t,l,s)}else s||ye(t,!1);fn(t)},Ss=(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:l}=e,c=i&&i===l,d=c&&i?.selectionEnd;let u=c?s.length:[...s].indexOf(l);if(c&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Ot(o,"blur",()=>x(o,"tabindex",null),cn)),!(!c&&cs(e)||u===-1)){if(a==="ArrowRight"&&!c)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&c){const p=x(i,"form");return x(i,"form","#"),requestAnimationFrame(()=>x(i,"form",p)),ye(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return pt(t,s[u]);c&&(u-=1)}else return c||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};fs.define("u-combobox",ge);var _e=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ts=_e&&/android/i.test(navigator.userAgent),hn;_e&&/^Mac/i.test(((hn=navigator.userAgentData)==null?void 0:hn.platform)||navigator.platform);var Cs=`${Ts?"data":"aria"}-labelledby`,we=":host(:not([hidden])) { display: block }",jt=typeof HTMLElement>"u"?class{}:HTMLElement;function A(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 mn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},$s=(t,...e)=>mn("add",t,e),ks=(t,...e)=>mn("remove",t,e),Ft=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(yn("slot"),yn("style",e)),Ut=new WeakMap,gn=(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)}},As=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bn=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},Ls=0,vn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ls).toString(32)}`),t.id):"",yn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Vt={define:(t,e)=>!_e||window.customElements.get(t)||window.customElements.define(t,e)},Is=we,Ms=we,Os=we,Rs=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',qt="aria-controls",ht="aria-selected",_n=class extends jt{constructor(){super(),Ft(this,Is)}get tabList(){return zt("u-tablist",this)[0]||null}get selectedIndex(){return Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}get tabs(){return zt("u-tab",this)}get panels(){return zt("u-tabpanel",this)}},wn=class extends jt{constructor(){super(),Ft(this,Ms)}connectedCallback(){A(this,"role","tablist"),$s(this,"click,keydown",this),gn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){ks(this,"click,keydown",this),gn(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"&&Se(n[o]),t.type==="keydown"&&!As(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=Wt(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 Wt(this.tabs)}set selectedIndex(t){Se(this.tabs[t])}},xe=!1,xn=class extends jt{static get observedAttributes(){return["id",ht,qt]}constructor(){super(),Ft(this,Rs)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!xe&&this.selected&&this.tabList){xe=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=zt("u-tabpanel",this.tabsElement||this),n=Ee(this,e[t.indexOf(this)]);n&&A(n,Cs,vn(this)),t.forEach((o,i)=>{const s=Ee(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,qt,s?.id||null),s&&(s.hidden=s!==n)}),xe=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ee(this)}},En=class extends jt{static get observedAttributes(){return["hidden"]}constructor(){super(),Ft(this,Os)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Wt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ps(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${qt}="${this.id}"]`;return bn(this).querySelectorAll(t)}},zt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ee=(t,e)=>{const n=A(t,qt)||vn(e),o=bn(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Wt=t=>[...t].findIndex(e=>A(e,ht)==="true"),Se=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ps=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Vt.define("u-tabs",_n),Vt.define("u-tablist",wn),Vt.define("u-tab",xn),Vt.define("u-tabpanel",En);const Ds="2.2.17",Sn="_alert_3aj69_1 _ds-alert_pxycd_3",Tn="_app_3aj69_1",Cn="_sticky_3aj69_1",$n="_avatar_3aj69_1 _ds-avatar_pxycd_1",kn="_badge_3aj69_1",An="_breadcrumbs_3aj69_1 _ds-breadcrumbs_pxycd_5",Ln="_button_3aj69_1 _ds-button_pxycd_1",In="_card_3aj69_1",Mn="_group_3aj69_1",On="_chip_3aj69_1 _ds-chip_pxycd_5",Rn="_details_3aj69_1 _ds-details_pxycd_3",Pn="_dialog_3aj69_1 _ds-dialog_pxycd_5",Dn="__drawer_3aj69_1",Nn="_divider_3aj69_1",Hn="_errorsummary_3aj69_1 _ds-error-summary_pxycd_5",Bn="__errorsummary_3aj69_1",jn="_field_3aj69_1 _ds-field_pxycd_1",Fn="__datalist_3aj69_1",Un="_affixes_3aj69_1 _ds-field-affixes_pxycd_3",Vn="_fieldset_3aj69_1 _ds-fieldset_pxycd_3",qn="_helptext_3aj69_1 _ds-focus_pxycd_1",zn="_input_3aj69_1 _ds-input_pxycd_1",Wn="_grid_3aj69_1",Gn="_flex_3aj69_1",Yn="_link_3aj69_1",Kn="_logo_3aj69_1",Xn="_pagination_3aj69_1 _ds-pagination_pxycd_5",Qn="_popover_3aj69_1",Jn="_progress_3aj69_1",Zn="__indeterminate_3aj69_1",to="_skeleton_3aj69_1 _ds-skeleton_pxycd_5",eo="__skeleton_3aj69_1",no="_spinner_3aj69_1",oo="_steps_3aj69_1",io="_table_3aj69_1 _ds-table_pxycd_5",so="__scrollShadow_3aj69_1",ao="_tabs_3aj69_1 _ds-tabs_pxycd_5",ro="__scrollMask_3aj69_1",lo="_tag_3aj69_1 _ds-tag_pxycd_5",co="_toast_3aj69_1",uo="__toastClose_3aj69_1",fo="__toastOpen_3aj69_1",po="__toastTimeout_3aj69_1",ho="_togglegroup_3aj69_1",mo="__tooltip_3aj69_1",go="_heading_3aj69_1 _ds-heading_pxycd_1",bo="_ingress_3aj69_1",vo="_muted_3aj69_1",yo="_info_3aj69_1",_o="_prose_3aj69_1",wo="_validation_3aj69_1 _ds-validation-message_pxycd_1",xo="_body_3aj69_173",Eo="__checked_3aj69_1",T={alert:Sn,app:Tn,sticky:Cn,avatar:$n,badge:kn,breadcrumbs:An,button:Ln,card:In,group:Mn,chip:On,details:Rn,dialog:Pn,_drawer:Dn,divider:Nn,errorsummary:Hn,_errorsummary:Bn,field:jn,_datalist:Fn,affixes:Un,fieldset:Vn,helptext:qn,input:zn,grid:Wn,flex:Gn,link:Yn,logo:Kn,pagination:Xn,popover:Qn,progress:Jn,_indeterminate:Zn,skeleton:to,_skeleton:eo,spinner:no,steps:oo,table:io,_scrollShadow:so,tabs:ao,_scrollMask:ro,tag:lo,toast:co,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,togglegroup:ho,_tooltip:mo,heading:go,ingress:bo,muted:vo,info:yo,prose:_o,validation:wo,body:xo,_checked:Eo},Ns=Object.freeze(Object.defineProperty({__proto__:null,_checked:Eo,_datalist:Fn,_drawer:Dn,_errorsummary:Bn,_indeterminate:Zn,_scrollMask:ro,_scrollShadow:so,_skeleton:eo,_toastClose:uo,_toastOpen:fo,_toastTimeout:po,_tooltip:mo,affixes:Un,alert:Sn,app:Tn,avatar:$n,badge:kn,body:xo,breadcrumbs:An,button:Ln,card:In,chip:On,default:T,details:Rn,dialog:Pn,divider:Nn,errorsummary:Hn,field:jn,fieldset:Vn,flex:Gn,grid:Wn,group:Mn,heading:go,helptext:qn,info:yo,ingress:bo,input:zn,link:Yn,logo:Kn,muted:vo,pagination:Xn,popover:Qn,progress:Jn,prose:_o,skeleton:to,spinner:no,steps:oo,sticky:Cn,table:io,tabs:ao,tag:lo,toast:co,togglegroup:ho,validation:wo},Symbol.toStringTag,{value:"Module"})),mt=Math.min,R=Math.max,Gt=Math.round,Yt=Math.floor,V=t=>({x:t,y:t}),Hs={left:"right",right:"left",bottom:"top",top:"bottom"},Bs={start:"end",end:"start"};function So(t,e,n){return R(t,mt(e,n))}function Kt(t,e){return typeof t=="function"?t(e):t}function ot(t){return t.split("-")[0]}function Xt(t){return t.split("-")[1]}function To(t){return t==="x"?"y":"x"}function Co(t){return t==="y"?"height":"width"}const js=new Set(["top","bottom"]);function Q(t){return js.has(ot(t))?"y":"x"}function $o(t){return To(Q(t))}function Fs(t,e,n){n===void 0&&(n=!1);const o=Xt(t),i=$o(t),s=Co(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=Qt(a)),[a,Qt(a)]}function Us(t){const e=Qt(t);return[Te(t),e,Te(e)]}function Te(t){return t.replace(/start|end/g,e=>Bs[e])}const ko=["left","right"],Ao=["right","left"],Vs=["top","bottom"],qs=["bottom","top"];function zs(t,e,n){switch(t){case"top":case"bottom":return n?e?Ao:ko:e?ko:Ao;case"left":case"right":return e?Vs:qs;default:return[]}}function Ws(t,e,n,o){const i=Xt(t);let s=zs(ot(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Te)))),s}function Qt(t){return t.replace(/left|right|bottom|top/g,e=>Hs[e])}function Gs(t){return{top:0,right:0,bottom:0,left:0,...t}}function Ys(t){return typeof t!="number"?Gs(t):{top:t,right:t,bottom:t,left:t}}function Jt(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 Lo(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=$o(e),r=Co(a),l=ot(e),c=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,p=o[r]/2-i[r]/2;let h;switch(l){case"top":h={x:d,y:o.y-i.height};break;case"bottom":h={x:d,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:u};break;case"left":h={x:o.x-i.width,y:u};break;default:h={x:o.x,y:o.y}}switch(Xt(e)){case"start":h[a]-=p*(n&&c?-1:1);break;case"end":h[a]+=p*(n&&c?-1:1);break}return h}const Ks=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.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}=Lo(c,o,l),p=o,h={},m=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:p,strategy:i,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=b??d,u=y??u,h={...h,[_]:{...h[_],...w}},E&&m<=50&&(m++,typeof E=="object"&&(E.placement&&(p=E.placement),E.rects&&(c=E.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):E.rects),{x:d,y:u}=Lo(c,p,l)),g=-1)}return{x:d,y:u,placement:p,strategy:i,middlewareData:h}};async function Ce(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:p=!1,padding:h=0}=Kt(e,t),m=Ys(h),_=r[p?u==="floating"?"reference":"floating":u],v=Jt(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:c,rootBoundary:d,strategy:l})),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=Jt(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:b,offsetParent:y,strategy:l}):b);return{top:(v.top-E.top+m.top)/w.y,bottom:(E.bottom-v.bottom+m.bottom)/w.y,left:(v.left-E.left+m.left)/w.x,right:(E.right-v.right+m.right)/w.x}}const Xs=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:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:p,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,..._}=Kt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=ot(i),b=Q(r),y=ot(r)===r,w=await(l.isRTL==null?void 0:l.isRTL(c.floating)),E=p||(y||!g?[Qt(r)]:Us(r)),M=m!=="none";!p&&M&&E.push(...Ws(r,g,m,w));const W=[r,...E],ct=await Ce(e,_),dt=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&dt.push(ct[v]),u){const ut=Fs(i,a,w);dt.push(ct[ut[0]],ct[ut[1]])}if(X=[...X,{placement:i,overflows:dt}],!dt.every(ut=>ut<=0)){var At,Lt;const ut=(((At=s.flip)==null?void 0:At.index)||0)+1,Ze=W[ut];if(Ze&&(!(u==="alignment"?b!==Q(Ze):!1)||X.every(U=>Q(U.placement)===b?U.overflows[0]>0:!0)))return{data:{index:ut,overflows:X},reset:{placement:Ze}};let Mt=(Lt=X.filter(ft=>ft.overflows[0]<=0).sort((ft,U)=>ft.overflows[1]-U.overflows[1])[0])==null?void 0:Lt.placement;if(!Mt)switch(h){case"bestFit":{var It;const ft=(It=X.filter(U=>{if(M){const tt=Q(U.placement);return tt===b||tt==="y"}return!0}).map(U=>[U.placement,U.overflows.filter(tt=>tt>0).reduce((tt,Cl)=>tt+Cl,0)]).sort((U,tt)=>U[1]-tt[1])[0])==null?void 0:It[0];ft&&(Mt=ft);break}case"initialPlacement":Mt=r;break}if(i!==Mt)return{reset:{placement:Mt}}}return{}}}},Qs=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}}},...l}=Kt(t,e),c={x:n,y:o},d=await Ce(e,l),u=Q(ot(i)),p=To(u);let h=c[p],m=c[u];if(s){const _=p==="y"?"top":"left",v=p==="y"?"bottom":"right",b=h+d[_],y=h-d[v];h=So(b,h,y)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",b=m+d[_],y=m-d[v];m=So(b,m,y)}const g=r.fn({...e,[p]:h,[u]:m});return{...g,data:{x:g.x-n,y:g.y-o,enabled:{[p]:s,[u]:a}}}}}},Js=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:l=()=>{},...c}=Kt(t,e),d=await Ce(e,c),u=ot(i),p=Xt(i),h=Q(i)==="y",{width:m,height:g}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=p===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=p==="end"?"top":"bottom");const b=g-d.top-d.bottom,y=m-d.left-d.right,w=mt(g-d[_],b),E=mt(m-d[v],y),M=!e.middlewareData.shift;let W=w,ct=E;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(ct=y),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(W=b),M&&!p){const X=R(d.left,0),At=R(d.right,0),Lt=R(d.top,0),It=R(d.bottom,0);h?ct=m-2*(X!==0||At!==0?X+At:R(d.left,d.right)):W=g-2*(Lt!==0||It!==0?Lt+It:R(d.top,d.bottom))}await l({...e,availableWidth:ct,availableHeight:W});const dt=await a.getDimensions(r.floating);return m!==dt.width||g!==dt.height?{reset:{rects:!0}}:{}}}};function Zt(){return typeof window<"u"}function gt(t){return Io(t)?(t.nodeName||"").toLowerCase():"#document"}function P(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function q(t){var e;return(e=(Io(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Io(t){return Zt()?t instanceof Node||t instanceof P(t).Node:!1}function H(t){return Zt()?t instanceof Element||t instanceof P(t).Element:!1}function z(t){return Zt()?t instanceof HTMLElement||t instanceof P(t).HTMLElement:!1}function Mo(t){return!Zt()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof P(t).ShadowRoot}const Zs=new Set(["inline","contents"]);function wt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!Zs.has(i)}const ta=new Set(["table","td","th"]);function ea(t){return ta.has(gt(t))}const na=[":popover-open",":modal"];function te(t){return na.some(e=>{try{return t.matches(e)}catch{return!1}})}const oa=["transform","translate","scale","rotate","perspective"],ia=["transform","translate","scale","rotate","perspective","filter"],sa=["paint","layout","strict","content"];function $e(t){const e=ke(),n=H(t)?B(t):t;return oa.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)||ia.some(o=>(n.willChange||"").includes(o))||sa.some(o=>(n.contain||"").includes(o))}function aa(t){let e=J(t);for(;z(e)&&!bt(e);){if($e(e))return e;if(te(e))return null;e=J(e)}return null}function ke(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ra=new Set(["html","body","#document"]);function bt(t){return ra.has(gt(t))}function B(t){return P(t).getComputedStyle(t)}function ee(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(gt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Mo(t)&&t.host||q(t);return Mo(e)?e.host:e}function Oo(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:z(e)&&wt(e)?e:Oo(e)}function xt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Oo(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=P(i);if(s){const r=Ae(a);return e.concat(a,a.visualViewport||[],wt(i)?i:[],r&&n?xt(r):[])}return e.concat(i,xt(i,[],n))}function Ae(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Ro(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=z(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Gt(n)!==s||Gt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Le(t){return H(t)?t:t.contextElement}function vt(t){const e=Le(t);if(!z(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Ro(e);let a=(s?Gt(n.width):n.width)/o,r=(s?Gt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const la=V(0);function Po(t){const e=P(t);return!ke()||!e.visualViewport?la:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ca(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==P(t)?!1:e}function it(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Le(t);let a=V(1);e&&(o?H(o)&&(a=vt(o)):a=vt(t));const r=ca(s,n,o)?Po(s):V(0);let l=(i.left+r.x)/a.x,c=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const p=P(s),h=o&&H(o)?P(o):o;let m=p,g=Ae(m);for(;g&&o&&h!==m;){const _=vt(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;l*=_.x,c*=_.y,d*=_.x,u*=_.y,l+=y,c+=w,m=P(g),g=Ae(m)}}return Jt({width:d,height:u,x:l,y:c})}function ne(t,e){const n=ee(t).scrollLeft;return e?e.left+n:it(q(t)).left+n}function Do(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-ne(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function da(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=q(o),r=e?te(e.floating):!1;if(o===a||r&&s)return n;let l={scrollLeft:0,scrollTop:0},c=V(1);const d=V(0),u=z(o);if((u||!u&&!s)&&((gt(o)!=="body"||wt(a))&&(l=ee(o)),z(o))){const h=it(o);c=vt(o),d.x=h.x+o.clientLeft,d.y=h.y+o.clientTop}const p=a&&!u&&!s?Do(a,l):V(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+d.x+p.x,y:n.y*c.y-l.scrollTop*c.y+d.y+p.y}}function ua(t){return Array.from(t.getClientRects())}function fa(t){const e=q(t),n=ee(t),o=t.ownerDocument.body,i=R(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=R(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+ne(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=R(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const No=25;function pa(t,e){const n=P(t),o=q(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,l=0;if(i){s=i.width,a=i.height;const d=ke();(!d||d&&e==="fixed")&&(r=i.offsetLeft,l=i.offsetTop)}const c=ne(o);if(c<=0){const d=o.ownerDocument,u=d.body,p=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(p.marginLeft)+parseFloat(p.marginRight)||0,m=Math.abs(o.clientWidth-u.clientWidth-h);m<=No&&(s-=m)}else c<=No&&(s+=c);return{width:s,height:a,x:r,y:l}}const ha=new Set(["absolute","fixed"]);function ma(t,e){const n=it(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=z(t)?vt(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,l=i*s.x,c=o*s.y;return{width:a,height:r,x:l,y:c}}function Ho(t,e,n){let o;if(e==="viewport")o=pa(t,n);else if(e==="document")o=fa(q(t));else if(H(e))o=ma(e,n);else{const i=Po(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Jt(o)}function Bo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||Bo(n,e)}function ga(t,e){const n=e.get(t);if(n)return n;let o=xt(t,[],!1).filter(r=>H(r)&>(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),l=$e(a);!l&&r.position==="fixed"&&(i=null),(s?!l&&!i:!l&&r.position==="static"&&!!i&&ha.has(i.position)||wt(a)&&!l&&Bo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function ba(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?te(e)?[]:ga(e,this._c):[].concat(n),o],r=a[0],l=a.reduce((c,d)=>{const u=Ho(e,d,i);return c.top=R(u.top,c.top),c.right=mt(u.right,c.right),c.bottom=mt(u.bottom,c.bottom),c.left=R(u.left,c.left),c},Ho(e,r,i));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}}function va(t){const{width:e,height:n}=Ro(t);return{width:e,height:n}}function ya(t,e,n){const o=z(e),i=q(e),s=n==="fixed",a=it(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const l=V(0);function c(){l.x=ne(i)}if(o||!o&&!s)if((gt(e)!=="body"||wt(i))&&(r=ee(e)),o){const h=it(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();s&&!o&&i&&c();const d=i&&!o&&!s?Do(i,r):V(0),u=a.left+r.scrollLeft-l.x-d.x,p=a.top+r.scrollTop-l.y-d.y;return{x:u,y:p,width:a.width,height:a.height}}function Ie(t){return B(t).position==="static"}function jo(t,e){if(!z(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return q(t)===n&&(n=n.ownerDocument.body),n}function Fo(t,e){const n=P(t);if(te(t))return n;if(!z(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Ie(i))return i;i=J(i)}return n}let o=jo(t,e);for(;o&&ea(o)&&Ie(o);)o=jo(o,e);return o&&bt(o)&&Ie(o)&&!$e(o)?n:o||aa(t)||n}const _a=async function(t){const e=this.getOffsetParent||Fo,n=this.getDimensions,o=await n(t.floating);return{reference:ya(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function wa(t){return B(t).direction==="rtl"}const xa={convertOffsetParentRelativeRectToViewportRelativeRect:da,getDocumentElement:q,getClippingRect:ba,getOffsetParent:Fo,getElementRects:_a,getClientRects:ua,getDimensions:va,getScale:vt,isElement:H,isRTL:wa};function Uo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ea(t,e){let n=null,o;const i=q(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,l){r===void 0&&(r=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:d,top:u,width:p,height:h}=c;if(r||e(),!p||!h)return;const m=Yt(u),g=Yt(i.clientWidth-(d+p)),_=Yt(i.clientHeight-(u+h)),v=Yt(d),y={rootMargin:-m+"px "+-g+"px "+-_+"px "+-v+"px",threshold:R(0,mt(1,l))||1};let w=!0;function E(M){const W=M[0].intersectionRatio;if(W!==l){if(!w)return a();W?a(!1,W):o=setTimeout(()=>{a(!1,1e-7)},1e3)}W===1&&!Uo(c,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 Sa(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:l=!1}=o,c=Le(t),d=i||s?[...c?xt(c):[],...xt(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=c&&r?Ea(c,n):null;let p=-1,h=null;a&&(h=new ResizeObserver(v=>{let[b]=v;b&&b.target===c&&h&&(h.unobserve(e),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var y;(y=h)==null||y.observe(e)})),n()}),c&&!l&&h.observe(c),h.observe(e));let m,g=l?it(t):null;l&&_();function _(){const v=it(t);g&&!Uo(g,v)&&n(),g=v,m=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(b=>{i&&b.removeEventListener("scroll",n),s&&b.removeEventListener("resize",n)}),u?.(),(v=h)==null||v.disconnect(),h=null,l&&cancelAnimationFrame(m)}}const Vo=Qs,qo=Xs,Ta=Js,Ca=(t,e,n)=>{const o=new Map,i={platform:xa,...n},s={...i.platform,_c:o};return Ks(t,e,{...i,platform:s})};function zo(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=zo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function $a(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=zo(t))&&(o&&(o+=" "),o+=e);return o}const L={capture:!0,passive:!0},N=typeof window<"u"&&typeof document<"u";function ka(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(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 Aa=0;const La=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function oe(t){return t.id||(t.id=`${La}${++Aa}`),t.id}const Wo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},C=(t,...e)=>(Wo("add",t,e),()=>Go(t,...e)),Go=(t,...e)=>Wo("remove",t,e),D=t=>{if(!N||!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():C(window,"load",e)},Me=new WeakMap,Ia=`.${T.dialog.split(" ")[0]}`;function st(t,e,{contain:n,middleware:o,placement:i,...s}={}){if(Me.get(t)?.(),Me.delete(t),e){const a=t.closest(Ia)?.querySelector(":scope > footer"),r=Number(f(t,"data-inset"))||20,c={bottom:(a?.clientHeight||0)+r,left:r,right:r,top:r},d=f(t,"data-position")??"bottom";Me.set(t,Sa(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return st(t,!1);Ca(e,t,{...s,placement:i||d,middleware:[qo({padding:c}),Vo(),...n?[Ta({padding:c,apply:n})]:[],...o||[]]}).then(({x:u,y:p})=>{t.style.left=`${u}px`,t.style.top=`${p}px`})}))}}function at(t,...e){let n=0;const o=()=>setTimeout(i,200),i=()=>{t([],s),s.takeRecords(),n=0},s=new MutationObserver(()=>{n||(n=requestAnimationFrame(o))});return s.observe(document.documentElement,{attributeFilter:e,attributes:!0,childList:!0,subtree:!0}),()=>s.disconnect()}const Oe=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),$=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${T.breadcrumbs.split(" ")[0]}`,Ra=`.${T.card.split(" ")[0]}`,Yo=`.${T.chip.split(" ")[0]}`,Pa=`.${T.helptext.split(" ")[0]}`,Da=`.${T.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Re="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function Ko(t,e={}){if(N){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Re}/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/${Re}/container_${s}.js`:`https://cdn.matomo.cloud/${Re}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append($("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(l=>l!==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(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
|
|
9
9
|
#${j}[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
|
#${j} 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
|
#${j} button:focus-visible { outline: 2px solid }
|
package/mtds/package.json.js
CHANGED