@mattilsynet/design 3.2.2 → 3.2.4
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/atlas/atlas-element.js +1 -1
- package/mtds/deprecations.js +16 -16
- package/mtds/deprecations.js.map +1 -1
- package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js +288 -0
- package/mtds/external/@u-elements/u-combobox/dist/u-combobox.js.map +1 -0
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js +238 -0
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js.map +1 -0
- package/mtds/external/@u-elements/u-details/dist/u-details.js +101 -0
- package/mtds/external/@u-elements/u-details/dist/u-details.js.map +1 -0
- package/mtds/external/@u-elements/u-tabs/dist/u-tabs.js +235 -0
- package/mtds/external/@u-elements/u-tabs/dist/u-tabs.js.map +1 -0
- package/mtds/index.iife.js +17 -30
- package/mtds/index.js +36 -21
- package/mtds/package.json.js +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +23 -23
- package/mtds/styles.module.css.js +44 -44
- package/mtds/tabs/tabs.d.ts +9 -9
- package/mtds/tabs/tabs.js +8 -8
- package/mtds/tabs/tabs.js.map +1 -1
- package/package.json +9 -13
package/mtds/index.iife.js
CHANGED
|
@@ -1,41 +1,31 @@
|
|
|
1
|
-
var mtds=(function(S){"use strict";var
|
|
1
|
+
var mtds=(function(S){"use strict";var Br=Object.defineProperty,ho=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,zr=Object.prototype.propertyIsEnumerable,go=(t,e,n)=>e in t?Br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,Fr=(t,e)=>{for(var n in e||(e={}))Ur.call(e,n)&&go(t,n,e[n]);if(ho)for(var n of ho(e))zr.call(e,n)&&go(t,n,e[n]);return t},Ke=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",se=Ke(),Ye=se?navigator.userAgent:"",bo=/android/i.test(Ye),Wr=/firefox/i.test(Ye),vo=/iPad|iPhone|iPod/.test(Ye),yo,Vr=se&&/^Mac/i.test(((yo=navigator.userAgentData)==null?void 0:yo.platform)||navigator.platform),Gr=se&&window.CSSStyleSheet&&document.adoptedStyleSheets,wo={once:!0,capture:!0,passive:!0},jr=":host(:not([hidden])) { display: block }",Xr="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Kr=`${bo?"data":"aria"}-multiselectable`,Yr=typeof HTMLElement>"u"?class{}:HTMLElement,E=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),Qe=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>_o(t,...e)},_o=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},Qr=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(Ut("slot")),!n.querySelector("style"))if(!Gr)n.append(Ut("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},Jr=(t,e,n)=>{const o=new MutationObserver(s=>{if(!Ke()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Zr=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},Je=t=>Zr(t).activeElement,ta=t=>{var e;const n=E(t,"aria-label")||"";return[...(((e=E(t,"aria-labelledby"))==null?void 0:e.split(" "))||[]).map(i=>document.getElementById(i.trim()||"-")),...Array.from(t.labels||[])].reduce((i,s)=>{var r;return i||((r=s?.innerText)==null?void 0:r.trim())||""},n).trim()},ea=t=>{if(!t||!se)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Ut=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))E(o,i,s);return o},na={define:(t,e)=>!Ke()||window.customElements.get(t)||window.customElements.define(t,e)},So=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},r=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(r,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Ze=new WeakSet,xo=(t,e)=>(e?.type==="pointerdown"&&(Ze.add(t),Qe(document,"pointerup",()=>Ze.delete(t),wo)),Ze.has(t)),oa=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,ia=t=>{const e=E(t,"form");E(t,"form","#"),setTimeout(sa,0,t,e)},sa=(t,e)=>E(t,"form",e),Tt=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},G,ra=0,Eo=0,re=t=>{clearTimeout(Eo),G||(G=Ut("div",{"aria-live":"assertive"}),G.style.overflow="hidden",G.style.position="fixed",G.style.whiteSpace="nowrap",G.style.width="1px"),G.isConnected||document.body.append(G),t===""&&(G.textContent=""),t&&(G.textContent=`${t}${ra++%2?" ":""}`,Eo=setTimeout(re,!Vr&&Wr?2e3:300,""))},tn=`${jr}
|
|
2
2
|
:is(:host(:not([data-multiple])), :host([data-multiple="false"])) [part="items"] { display: none }
|
|
3
3
|
[role="listbox"] { display: contents }
|
|
4
4
|
::slotted(button[type="reset"]),::slotted(del) { font: inherit; border: 0; padding: 0; background: none; color: inherit; cursor: pointer; text-decoration: none }
|
|
5
5
|
::slotted(data) { cursor: pointer; pointer-events: none }
|
|
6
6
|
::slotted(data)::after { padding-inline: .5ch; pointer-events: auto }
|
|
7
7
|
::slotted(data)::after,::slotted(button[type="reset"]:empty)::before,::slotted(del:empty)::before { content: '\\00D7'; content: '\\00D7' / '' }
|
|
8
|
-
::slotted(data:focus),::slotted(del:focus),::slotted(button[type="reset"]:focus) { ${
|
|
8
|
+
::slotted(data:focus),::slotted(del:focus),::slotted(button[type="reset"]:focus) { ${Xr} }`,aa=oa(tn),ct="aria-label",la='button[type="reset"],del',ca='datalist,[role="listbox"]',da='option,[role="option"]',$o="blur focus click input keydown pointerdown",ae="false",le={added:"Added",clear:"Clear input",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",items:"Selected",of:"of",remove:"Press to remove",removed:"Removed"},en=class extends Yr{constructor(){super(),this._focusMoved=!1,this._itemSingleVale="",this._speak="",this._texts=Fr({},le),this._value="";const t=Qr(this,tn);this._listbox=t.querySelector('[role="listbox"]')||Ut("div"),this._listbox.innerHTML='<slot name="items"></slot>',E(this._listbox,"aria-orientation","horizontal"),E(this._listbox,"role","listbox"),E(this._listbox,"part","items"),E(this._listbox,"tabindex","-1"),t.prepend(this._listbox)}static get observedAttributes(){return Object.keys(le).map(t=>`data-sr-${t}`)}connectedCallback(){Qe(this,$o,this,!0),this._umutate=Jr(this,va,{attributeFilter:["id","value","role"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),ce(this),nn(this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];le[o]&&(this._texts[o]=n||le[o]),o==="clear"&&this.clear&&E(this.clear,ct,this._texts.clear)}disconnectedCallback(){var t;_o(this,$o,this,!0),(t=this._umutate)==null||t.call(this),this._umutate=this._list=this._options=this._match=void 0,this._items=this._clear=this._control=this._select=void 0}handleEvent(t){var e,n;(e=this.control)!=null&&e.disabled||(n=this.control)!=null&&n.readOnly||(t.type==="blur"&&ua(this),t.type==="click"&&ma(this,t),t.type==="focus"&&re(),t.type==="input"&&pa(this,t),t.type==="keydown"&&ha(this,t),t.type==="pointerdown"&&xo(this,t))}get multiple(){var t;return((t=E(this,"data-multiple"))!=null?t:ae)!==ae}set multiple(t){E(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=E(this,"data-creatable"))!=null?t:ae)!==ae}set creatable(t){E(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector(ca),this._options=void 0),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector(la)),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e,n;const o=!this._options&&((e=(t=this.list)==null?void 0:t.querySelector(da))==null?void 0:e.nodeName);return o&&(this._options=(n=this.list)==null?void 0:n.getElementsByTagName(o)),this._options||this.getElementsByTagName("-")}get values(){return Array.from(this.items,({value:t})=>t)}},To=t=>{var e;const{creatable:n,control:o,options:i,multiple:s}=t,r=((e=o?.value)==null?void 0:e.trim())||"",a=r.toLowerCase()||null;let l=[...i].find(u=>u.label.trim().toLowerCase()===a);const c={bubbles:!0,cancelable:!0,detail:l};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",c))||(l=[...i].find(u=>u.selected)),s)Ao(t);else for(const u of i)u.selected=u===l;return!l&&n&&r?{value:r,label:r}:l&&{value:l.value,label:l.label}},Ct=(t,e,n=!0)=>{const{_texts:o,control:i,items:s,multiple:r}=t;if(!e)return r?re(o.invalid):!i?.value&&s[0]?Ct(t,s[0]):ce(t);const a=[...s].findIndex(m=>m.value===e.value),l=s[a],c=l===Je(t)&&(r&&(s[a-1]||s[a+1])||i);if(l&&!n)return ce(t);c&&c.focus(),t._focusMoved=!!c;const u=Ut("data",{value:e.value},e.label||e.value),d={bubbles:!0,cancelable:!0,detail:l||u};if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",d))){if(!r)for(const m of[...s])m.remove();l?l.remove():i?.insertAdjacentElement("beforebegin",u),t.dispatchEvent(new CustomEvent("comboboxafterselect",d))}},ua=t=>xo(t)||setTimeout(fa,0,t),fa=t=>t.multiple||t.contains(Je(t))||Ct(t,t._match,!1),ma=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:r,items:a}=t;if(r&&s?.contains(i))return e.preventDefault(),So(r,"","deleteContentBackward"),r.focus();for(const l of a){if(l.contains(i))return Ct(t,l);const c=l.getBoundingClientRect(),{top:u,right:d,bottom:m,left:h,width:f,height:p}=c;if(f&&p&&o>=u&&o<=m&&n>=h&&n<=d)return l.focus()}i===t&&r?.focus()},pa=(t,e)=>{var n;const{control:o,options:i,multiple:s}=t,r=o?.value||null,a=e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!o?.value;if(a||(t._value=o?.value||""),a){(n=e.stopImmediatePropagation)==null||n.call(e);const l=[...i].find(c=>c.value===r);if(o&&(o.value=t._value),l)return Ct(t,l,s)}else s||(t._match=To(t));nn(t)},ha=(t,e)=>{e.ctrlKey||e.metaKey||e.shiftKey||e.key==="Alt"||(t.control===e.target?ga(t,e):ba(t,e))},ga=(t,e)=>{var n;const{_match:o,clear:i,control:s,items:r,multiple:a}=t;(e.key==="ArrowLeft"||e.key==="Backspace")&&!s?.selectionEnd&&((n=r[r.length-1])==null||n.focus()),e.key==="Enter"&&s&&(ia(s),Ct(t,a?To(t):o,a)),e.key==="Tab"&&!e.shiftKey&&i&&!i.hidden&&(e.preventDefault(),E(i,"aria-hidden","false"),E(i,"tabindex","0"),i.focus(),Qe(i,"blur",()=>nn(t),wo))},ba=(t,e)=>{var n,o,i;const{clear:s,control:r,items:a}=t,{key:l,repeat:c,target:u}=e,d=[...a].indexOf(u);if((l===" "||l==="Enter")&&(a[d]||u===s))return(n=a[d]||s)==null||n.click(),e.preventDefault();if(a[d]){if(l==="ArrowLeft")return(o=a[d-1])==null?void 0:o.focus();if(l==="ArrowRight")return(i=a[d+1]||r)==null?void 0:i.focus();if(l==="Backspace")return e.preventDefault(),c||Ct(t,a[d]);r?.focus()}},va=(t,e)=>{var n;if(!t.control)return;const{_texts:o,control:i,items:s,list:r,multiple:a}=t,l=[];for(const{addedNodes:m,removedNodes:h}of e||[]){for(const f of m)f instanceof HTMLDataElement&&l.unshift(f);for(const f of h)f instanceof HTMLDataElement&&l.push(f)}const c=Je(t);if((a?l.length===1:l[0]===c)&&t.contains(c)){const m=i?E(i,ct):null;t._speak=`${o[l[0].isConnected?"added":"removed"]} ${Tt(l[0])}, `,E(i,ct,`${t._speak}${ta(i)}`),t._focusMoved||setTimeout(()=>re(t._speak.slice(0,-2))),setTimeout(ya,300,t,m)}if(!a){const m=Tt(s[0]);m!==t._itemSingleVale&&ce(t),t._itemSingleVale=m}Co(t),Ao(t),wa(t);const d=`${s.length?o.found.replace("%d",`${s.length}`):o.empty}`;E(i,"aria-description",a?d:null),E(i,"list",ea(r)),E(t._listbox,ct,o.items),(n=t._umutate)==null||n.takeRecords()},ya=(t,e)=>{t._speak="",t.control&&E(t.control,ct,e),Co(t)},Co=t=>{const{_texts:e,_speak:n,items:o}=t;let i=0;for(const s of o){const r=`${n}${Tt(s)}, ${e.remove}${vo?`, ${++i} ${e.of} ${o.length}`:""}`;E(s,ct,r),E(s,"role","option"),E(s,"slot","items"),E(s,"tabindex","-1"),E(s,"value",s.value||Tt(s))}},wa=t=>{var e,n;if((e=t._select)!=null&&e.isConnected||(t._select=t.querySelector("select")),!t._select)return;const{_select:o,items:i,multiple:s}=t,r=[];let a=0;E(o,"multiple",s?"":null);for(const l of i){const c=o?.options[a++],u=Tt(l),d=l?.value;c?Object.assign(c,{defaultSelected:!0,selected:!0,text:u,value:d}):r.push(new Option(u,d,!0,!0))}if(r.length)o.append(...r);else for(const l of[...o.options].slice(a))l.remove();(n=t._umutate)==null||n.takeRecords()},nn=t=>{if(!t.clear)return;const{clear:e,control:n}=t,o=!n?.value||n?.disabled||n?.readOnly;e.nodeName==="DEL"&&E(e,"role","button"),E(e,ct)||E(e,ct,t._texts.clear),E(e,"aria-hidden",`${vo||bo}`),E(e,"hidden",o?"":null),E(e,"tabindex","-1")},Ao=t=>{if(!t.list)return;const{_texts:e,list:n,multiple:o,options:i,values:s}=t;E(n,"data-sr-of",e.of),E(n,Kr,`${o}`);for(const r of i)r.selected=s.includes(r.value)},ce=t=>{if(!t.control||t.multiple)return;const{control:e,items:n}=t,o=Tt(n[0]),i=o?"insertText":"deleteContentBackward";o!==e.value&&So(e,o,i)};na.define("u-combobox",en);var on=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",de=on(),_a=de?navigator.userAgent:"",Sa=/android/i.test(_a),ko;de&&/^Mac/i.test(((ko=navigator.userAgentData)==null?void 0:ko.platform)||navigator.platform);var xa=de&&window.CSSStyleSheet&&document.adoptedStyleSheets,sn=":host(:not([hidden])) { display: block }",Ea=`${Sa?"data":"aria"}-labelledby`,ue=typeof HTMLElement>"u"?class{}:HTMLElement,L=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),$a=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>Lo(t,...e)},Lo=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},rn=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(Mo("slot")),!n.querySelector("style"))if(!xa)n.append(Mo("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},Ta=(t,e,n)=>{const o=new MutationObserver(s=>{if(!on()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Ro=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},an=t=>{if(!t||!de)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Mo=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))L(o,i,s);return o},fe={define:(t,e)=>!on()||window.customElements.get(t)||window.customElements.define(t,e)},ln=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,At="aria-controls",Io="aria-disabled",zt="aria-selected",Ft="tabindex",cn=sn,dn=sn,Ca="",un=`${sn}
|
|
9
9
|
::slotted([role="tab"]:not([hidden])) { display: inline-block; cursor: pointer }
|
|
10
|
-
::slotted([role="tab"][${
|
|
10
|
+
::slotted([role="tab"][${Io}="true"]) { cursor: default }`,Aa=ln(cn),ka=ln(un),La="",Ra=ln(dn),me=class extends ue{constructor(){super(),rn(this,cn)}get tabList(){return this.querySelector('[role="tablist"]:not(:scope [role="tabpanel"] [role="tablist"])')}get selectedIndex(){const t=pt(this.tabList);return t.indexOf(Lt(t))}set selectedIndex(t){ht(this.tabs[t])}get tabs(){return this.querySelectorAll('[role="tab"]:not(:scope [role="tabpanel"] [role="tab"])')}get panels(){return this.querySelectorAll('[role="tabpanel"]:not(:scope [role="tabpanel"] [role="tabpanel"])')}},pe=class extends ue{constructor(){super(),rn(this,un)}connectedCallback(){L(this,"role","tablist"),$a(this,"click keydown",this),this._umutate=Ta(this,Ma,{attributeFilter:["id","role",At,zt],attributes:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;Lo(this,"click keydown",this),(t=this._umutate)==null||t.call(this),this._umutate=void 0}handleEvent(t){var e,n,o,i;const{key:s,type:r,target:a}=t,l=pt(this),c=l.findIndex(m=>m.contains(a)),u=s===" "||s==="Enter";let d=c;if(!(t.defaultPrevented||c===-1)&&(r==="click"&&ht(l[c]),r==="keydown")){if(u){(e=t.preventDefault)==null||e.call(t);const m={bubbles:!0,cancelable:!0,composed:!0};return l[c].dispatchEvent(new MouseEvent("click",m))}if(s==="ArrowDown"||s==="ArrowRight")d=(c+1)%l.length;else if(s==="ArrowUp"||s==="ArrowLeft")d=(c||l.length)-1;else if(s==="End")d=l.length-1;else if(s==="Home")d=0;else if(s==="Tab"&&!kt(l[c])){const m=Lt(l);return m&&L(m,Ft,"-1"),m&&setTimeout(()=>L(m,Ft,"0"))}else return;(n=t.preventDefault)==null||n.call(t),(i=(o=l[d]).focus)==null||i.call(o)}}get tabsElement(){return Rt(this)}get tabs(){return this.querySelectorAll(':scope > [role="tab"]')}get selectedIndex(){const t=pt(this);return t.indexOf(Lt(t))}set selectedIndex(t){ht(this.tabs[t])}},fn=class extends ue{static get observedAttributes(){return["id",zt,At]}connectedCallback(){var t;L(this,"role","tab"),L(this,zt,`${this.selected}`),L(this,Ft,this.selected?"0":"-1"),Lt((t=this.parentElement)==null?void 0:t.children)||ht(this)}attributeChangedCallback(){!pn.has(this.parentElement)&&this.selected&&ht(this)}get tabsElement(){return Rt(this)}get tabList(){const t=this.parentElement;return t instanceof pe?t:null}get selected(){return kt(this)}set selected(t){t&&ht(this)}get index(){return Math.max(pt(this.parentElement).indexOf(this),0)}get panel(){var t;const e=(t=Rt(this))==null?void 0:t.panels,n=pt(this.parentElement).indexOf(this);return hn(this,e?.[n])}},mn=class extends ue{constructor(){super(),rn(this,dn)}connectedCallback(){L(this,"role","tabpanel");const t=new Set(this.tabs),e=Rt(this),n=e?.tabs[Array.prototype.indexOf.call(e?.panels,this)];n&&!n.hasAttribute(At)&&t.add(n);const o=Lt(t)||t.values().next().value;Do(o,()=>Oo(this,o,!!o&&kt(o)))}get tabsElement(){return Rt(this)}get tabs(){return Ro(this).querySelectorAll(`[${At}="${an(this)}"]`)}},Ma=(t,e=[])=>{let n;const o=pt(t);for(const{target:i}of e)i instanceof Element&&L(i,"role")==="tab"&&kt(i)&&(n=i);!n&&!Lt(o)&&(n=o.find(Po)),ht(n)},Oo=(t,e,n=!1)=>{L(t,"aria-hidden",`${!n}`),L(t,"hidden",n?null:""),L(t,Ft,n?"0":null),e&&L(e,At,an(t)),e&&n&&kt(e)&&L(t,Ea,an(e))},pn=new Set,Do=(t,e)=>{var n;const o=t?.parentElement;o&&pn.add(o),e(),o&&pn.delete(o),(n=o?._umutate)==null||n.takeRecords()},Po=t=>L(t,Io)!=="true",kt=t=>L(t,zt)==="true",Lt=(t=[])=>{for(const e of t)if(kt(e))return e},pt=t=>{const e=[];for(const n of t?.children||[])n.getAttribute("role")==="tab"&&e.push(n);return e},hn=(t,e=null)=>{const n=L(t,At);return n?Ro(t).getElementById(n):e},Rt=t=>{for(let e=t;e;e=e.parentNode||e.host)if(e instanceof me)return e;return null},ht=t=>t&&Po(t)&&Do(t,()=>{var e;const n=pt(t.parentElement),o=((e=Rt(t))==null?void 0:e.panels)||[],i=hn(t,o?.[n.indexOf(t)]);let s=0;for(const r of n){const a=hn(r,o[s++]);L(r,zt,`${r===t}`),L(r,Ft,r===t?"0":"-1"),a&&Oo(a,r,a===i)}});fe.define("u-tabs",me),fe.define("u-tablist",pe),fe.define("u-tab",fn),fe.define("u-tabpanel",mn);var Ho=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",No=Ho(),qo;No&&/^Mac/i.test(((qo=navigator.userAgentData)==null?void 0:qo.platform)||navigator.platform);var Ia=No&&window.CSSStyleSheet&&document.adoptedStyleSheets,Oa=":host(:not([hidden])) { display: block }",Bo=typeof HTMLElement>"u"?class{}:HTMLElement,tt=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),Uo=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>gn(t,...e)},gn=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},Da=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(he("slot")),!n.querySelector("style"))if(!Ia)n.append(he("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},Pa=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},he=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))tt(o,i,s);return o},zo={define:(t,e)=>!Ho()||window.customElements.get(t)||window.customElements.define(t,e)},Ha=`${Oa}
|
|
11
11
|
::slotted([slot="summary"]) { cursor: pointer; display: block }
|
|
12
12
|
::slotted([slot="summary"])::before { content: ''; display: inline-block; vertical-align: middle; margin-inline: .05em .3125em; border-block: .3125em solid transparent; border-inline-start: .5em solid }
|
|
13
13
|
::slotted([slot="summary"][aria-expanded="true"])::before { rotate: 90deg }
|
|
14
|
-
:host > [part="details-content"]:not([hidden=""]) { display: block }`,
|
|
15
|
-
Please use <details> and <summary>, but import '@u-elements/u-details/polyfill' to polyfill support for Talkback screen reader when used with Firefox on Android.`,this)}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],nt(this,"role","group"),Ti(this._content,"beforematch",this),Ti(this,"click keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&No(this._content,"beforematch",this),No(this,"click keydown",this),this._content=void 0}attributeChangedCallback(t,e,o){const n="onbeforematch"in this?"until-found":!0,i=this.open;for(const r of this.children)r.nodeName==="U-SUMMARY"&&nt(r,"aria-expanded",`${i}`);if(this._content&&(nt(this._content,"aria-hidden",`${!i}`),nt(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:n),i&&this.name){const r=Ql(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of r)a!==this&&(a.open=!1)}t==="open"&&e===null!=(o===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){var e,o;const n=t.key===" "||t.key==="Enter",i=t.target instanceof Element&&((e=t.target.closest('[slot="summary"]'))==null?void 0:e.parentElement)===this;t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),i&&t.type==="click"&&(this.open=!this.open),i&&t.type==="keydown"&&n&&((o=t.preventDefault)==null||o.call(t),t.target.dispatchEvent(new MouseEvent("click",t))))}get open(){return this.hasAttribute("open")}set open(t){nt(this,"open",t?"":null)}get name(){return nt(this,"name")||""}set name(t){nt(this,"name",t)}},tc=class extends $i{connectedCallback(){nt(this,"role","button"),this.slot="summary",this.tabIndex=0}};Ci.define("u-details",Zl),Ci.define("u-summary",tc);function ec(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function oc(){document.addEventListener("invoke",p=>{p.type=="invoke"&&p.isTrusted&&(p.stopImmediatePropagation(),p.preventDefault())},!0),document.addEventListener("command",p=>{p.type=="command"&&p.isTrusted&&(p.stopImmediatePropagation(),p.preventDefault())},!0);function t(p,m,v=!0){Object.defineProperty(p,m,{...Object.getOwnPropertyDescriptor(p,m),enumerable:v})}function e(p){return p&&typeof p.getRootNode=="function"?p.getRootNode():p&&p.parentNode?e(p.parentNode):p}let o=new WeakMap,n=new WeakMap;class i extends Event{constructor(m,v={}){super(m,v);let{source:b,command:w}=v;if(b!=null&&!(b instanceof Element))throw TypeError("source must be an element");o.set(this,b||null),n.set(this,w===void 0?"":String(w))}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!o.has(this))throw TypeError("illegal invocation");let m=o.get(this);if(!(m instanceof Element))return null;let v=e(m);return v===e(this.target||document)?m:v.host}get command(){if(!n.has(this))throw TypeError("illegal invocation");return n.get(this)}}t(i.prototype,"source"),t(i.prototype,"command");let r=new WeakMap;function a(p){Object.defineProperties(p.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(m){if(m===null)this.removeAttribute("commandfor"),r.delete(this);else if(m instanceof Element){this.setAttribute("commandfor","");let v=e(m);e(this)===v||v===this.ownerDocument?r.set(this,m):r.delete(this)}else throw TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button"||this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let m=r.get(this);if(m)return m.isConnected?m:(r.delete(this),null);let v=e(this),b=this.getAttribute("commandfor");return(v instanceof Document||v instanceof ShadowRoot)&&b&&v.getElementById(b)||null}},command:{enumerable:!0,configurable:!0,get(){let m=this.getAttribute("command")||"";if(m.startsWith("--"))return m;let v=m.toLowerCase();switch(v){case"show-modal":case"request-close":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return v}return""},set(m){this.setAttribute("command",m)}}})}let s=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return c.takeRecords(),s.get(this)||null},set(p){let m=s.get(this)||null;m&&this.removeEventListener("command",m),s.set(this,typeof p=="object"||typeof p=="function"?p:null),typeof p=="function"&&this.addEventListener("command",p)}}});function l(p){for(let m of p)m.oncommand=Function("event",m.getAttribute("oncommand"))}let c=new MutationObserver(p=>{for(let m of p){let{target:v}=m;m.type==="childList"?l(v.querySelectorAll("[oncommand]")):l([v])}});c.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),l(document.querySelectorAll("[oncommand]"));let d=new WeakSet;function u(p){if(d.has(p)||(d.add(p),p.defaultPrevented)||p.type!=="click")return;let m=p.composedPath().find(_=>_.matches?.("button[commandfor], button[command]"));if(!m)return;if(m.form&&m.getAttribute("type")!=="button")throw p.preventDefault(),Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(m.hasAttribute("command")!==m.hasAttribute("commandfor")){let _=m.hasAttribute("command")?"command":"commandfor",E=m.hasAttribute("command")?"commandfor":"command";throw Error(`Element with ${_} attribute must also have a ${E} attribute to function.`)}if(m.command!=="show-popover"&&m.command!=="hide-popover"&&m.command!=="toggle-popover"&&m.command!=="show-modal"&&m.command!=="request-close"&&m.command!=="close"&&!m.command.startsWith("--")){console.warn(`"${m.command}" is not a valid command value. Custom commands must begin with --`);return}let v=m.commandForElement;if(!v)return;let b=new i("command",{command:m.command,source:m,cancelable:!0});if(v.dispatchEvent(b),b.defaultPrevented)return;let w=b.command.toLowerCase();if(v.popover){let _=!v.matches(":popover-open");_&&(w==="toggle-popover"||w==="show-popover")?v.showPopover({source:m}):!_&&w==="hide-popover"&&v.hidePopover()}else if(v.localName==="dialog"){let _=!v.hasAttribute("open");_&&w=="show-modal"?v.showModal():!_&&w=="close"?v.close(m.value?m.value:void 0):!_&&w=="request-close"&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){let E=new Event("cancel",{cancelable:!0});this.dispatchEvent(E),E.defaultPrevented||this.close()}),v.requestClose(m.value?m.value:void 0))}}function f(p){p.addEventListener("click",u,!0)}function h(p,m){let v=p.prototype.attachShadow;p.prototype.attachShadow=function(w){let _=v.call(this,w);return m(_),_};let b=p.prototype.attachInternals;p.prototype.attachInternals=function(){let w=b.call(this);return w.shadowRoot&&m(w.shadowRoot),w}}a(HTMLButtonElement),h(HTMLElement,p=>{f(p),c.observe(p,{attributeFilter:["oncommand"]}),l(p.querySelectorAll("[oncommand]"))}),f(document),Object.assign(globalThis,{CommandEvent:i})}const z={passive:!0,capture:!0},Q=()=>typeof window<"u"&&typeof document<"u",nc=()=>Q()&&/^Win/i.test(navigator.userAgentData?.platform||navigator.platform),Ce=typeof HTMLElement>"u"?class{}:HTMLElement;function Ai(t,e){let o;return function(...n){clearTimeout(o),o=setTimeout(()=>t.apply(this,n),e)}}const Ht=(t,...e)=>!Q()||window.dsWarnings===!1||console.log(`\x1B[1mDesignsystemet:\x1B[m ${t}`,...e),y=(t,e,o)=>o===void 0?t.getAttribute(e)??null:(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),Bo=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),ic=/^["']|["']$/g,Nt=(t,e)=>{let o=y(t,e);return o||=Bo(t,`--_ds-${e}`).replace(ic,"").trim(),o||Ht(`Missing ${e} on:`,t),o||null},R=(t,...e)=>{let[o,...n]=e;for(let i of o.split(" "))t.addEventListener(i,...n);return()=>qo(t,...e)},qo=(t,...e)=>{let[o,...n]=e;for(let i of o.split(" "))t.removeEventListener(i,...n)},it=(t,e)=>{Q()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=new Map),window._dsHotReloadCleanup?.get(t)?.map(o=>o()),window._dsHotReloadCleanup?.set(t,e()))},rt=(t,e,o)=>{let n=()=>i.disconnect(),i=new MutationObserver(r=>{if(!Q()||!t.isConnected)return n();e(t,r)});return e(t),i.observe(t,o),n},ki=(t,e)=>{let o=document.createElement(t);if(e)for(let[n,i]of Object.entries(e))y(o,n,i);return o},at={define:(t,e)=>!Q()||window.customElements.get(t)||window.customElements.define(t,e)};let rc=0;function st(t){return Q()?(window.dsUseId||(window.dsUseId=0),t&&!t.id&&(t.id=`:ds:${++window.dsUseId}`),t?.id||""):`:ds:${++rc}`}let J,ac=0,Li=0;const Uo=t=>{clearTimeout(Li),J&&(J.textContent=`${t}${ac++%2?" ":""}`),t&&(Li=setTimeout(Uo,2e3,""))},sc=()=>{document.readyState==="complete"&&(J||(J=ki("div",{"aria-live":"assertive"}),J.style.overflow="hidden",J.style.position="fixed",J.style.whiteSpace="nowrap",J.style.width="1px"),J.isConnected||document.body.appendChild(J))};it("announce",()=>[R(document,"focus mouseover",sc,z)]);const Ii=":click-delegate-hover",Mi="data-clickdelegatefor",lc=`[${Mi}]`,cc=t=>{let e=t.button===1||t.metaKey||t.ctrlKey,o=t.button<2&&Oi(t);if(!(!o||o.contains(t.target))){if(e&&o instanceof HTMLAnchorElement)return window.open(o.href,void 0,o.rel);t.stopImmediatePropagation(),o.click()}};let Ae;const dc=t=>{let e=Oi(t);Ae!==e&&(Ae&&Ae.classList.remove(Ii),e&&e.classList.add(Ii),Ae=e)},Oi=({target:t})=>{let e=(t instanceof Element?t.closest(lc):null)?.getAttribute(Mi),o=e&&document.getElementById(e)||void 0,n=o&&t.closest('a,button,label,input,select,textarea,details,dialog,[role="button"],[popover],[contenteditable]');return(!n||n===o)&&!o?.disabled?o:void 0};it("clickdelegatefor",()=>[R(window,"click auxclick",cc,!0),R(document,"mouseover",dc,z)]);let Fo=!1;const uc=({type:t,target:e,clientX:o=0,clientY:n=0})=>{if(t==="pointerdown"){let i=e?.closest?.("dialog")?.getBoundingClientRect();Fo=!!(i&&i.top<=n&&n<=i.bottom&&i.left<=o&&o<=i.right)}else{let i=e instanceof HTMLDialogElement&&!Fo&&y(e,"closedby")==="any";Fo=!1,i&&requestAnimationFrame(()=>e.open&&e.close())}},fc=Q()?document.getElementsByTagName("button"):[],pc=()=>{for(let t of fc)t.getAttribute("command")?.endsWith("-modal")&&t.setAttribute("aria-haspopup","dialog")},mc=({command:t,target:e})=>t==="--show-non-modal"&&e instanceof HTMLDialogElement&&e.show();it("dialog",()=>[R(document,"command",mc,z),R(document,"pointerdown pointerup",uc,z),rt(document,pc,{attributeFilter:["command"],attributes:!0,childList:!0,subtree:!0})]);const hc=Q()?document.getElementsByTagName("fieldset"):[],vc=()=>{for(let t of hc)t.hasAttribute("aria-labelledby")||y(t,"aria-labelledby",`${st(t.querySelector("legend"))} ${st(t.querySelector(':scope > :is([data-field="description"],legend + p)'))}`.trim()||null)};it("fieldset",()=>[rt(document,vc,{childList:!0,subtree:!0})]);const Bt=Math.min,q=Math.max,ke=Math.round,Le=Math.floor,Z=t=>({x:t,y:t}),gc={left:"right",right:"left",bottom:"top",top:"bottom"};function Ri(t,e,o){return q(t,Bt(e,o))}function yt(t,e){return typeof t=="function"?t(e):t}function lt(t){return t.split("-")[0]}function Qt(t){return t.split("-")[1]}function zo(t){return t==="x"?"y":"x"}function Di(t){return t==="y"?"height":"width"}function tt(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Pi(t){return zo(tt(t))}function bc(t,e,o){o===void 0&&(o=!1);const n=Qt(t),i=Pi(t),r=Di(i);let a=i==="x"?n===(o?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=Ie(a)),[a,Ie(a)]}function yc(t){const e=Ie(t);return[Vo(t),e,Vo(e)]}function Vo(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Hi=["left","right"],Ni=["right","left"],_c=["top","bottom"],wc=["bottom","top"];function Ec(t,e,o){switch(t){case"top":case"bottom":return o?e?Ni:Hi:e?Hi:Ni;case"left":case"right":return e?_c:wc;default:return[]}}function Sc(t,e,o,n){const i=Qt(t);let r=Ec(lt(t),o==="start",n);return i&&(r=r.map(a=>a+"-"+i),e&&(r=r.concat(r.map(Vo)))),r}function Ie(t){const e=lt(t);return gc[e]+t.slice(e.length)}function xc(t){return{top:0,right:0,bottom:0,left:0,...t}}function $c(t){return typeof t!="number"?xc(t):{top:t,right:t,bottom:t,left:t}}function Me(t){const{x:e,y:o,width:n,height:i}=t;return{width:n,height:i,top:o,left:e,right:e+n,bottom:o+i,x:e,y:o}}function Bi(t,e,o){let{reference:n,floating:i}=t;const r=tt(e),a=Pi(e),s=Di(a),l=lt(e),c=r==="y",d=n.x+n.width/2-i.width/2,u=n.y+n.height/2-i.height/2,f=n[s]/2-i[s]/2;let h;switch(l){case"top":h={x:d,y:n.y-i.height};break;case"bottom":h={x:d,y:n.y+n.height};break;case"right":h={x:n.x+n.width,y:u};break;case"left":h={x:n.x-i.width,y:u};break;default:h={x:n.x,y:n.y}}switch(Qt(e)){case"start":h[a]-=f*(o&&c?-1:1);break;case"end":h[a]+=f*(o&&c?-1:1);break}return h}async function Tc(t,e){var o;e===void 0&&(e={});const{x:n,y:i,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=yt(e,t),p=$c(h),v=s[f?u==="floating"?"reference":"floating":u],b=Me(await r.getClippingRect({element:(o=await(r.isElement==null?void 0:r.isElement(v)))==null||o?v:v.contextElement||await(r.getDocumentElement==null?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),w=u==="floating"?{x:n,y:i,width:a.floating.width,height:a.floating.height}:a.reference,_=await(r.getOffsetParent==null?void 0:r.getOffsetParent(s.floating)),E=await(r.isElement==null?void 0:r.isElement(_))?await(r.getScale==null?void 0:r.getScale(_))||{x:1,y:1}:{x:1,y:1},A=Me(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:w,offsetParent:_,strategy:l}):w);return{top:(b.top-A.top+p.top)/E.y,bottom:(A.bottom-b.bottom+p.bottom)/E.y,left:(b.left-A.left+p.left)/E.x,right:(A.right-b.right+p.right)/E.x}}const Cc=50,Ac=async(t,e,o)=>{const{placement:n="bottom",strategy:i="absolute",middleware:r=[],platform:a}=o,s=a.detectOverflow?a:{...a,detectOverflow:Tc},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}=Bi(c,n,l),f=n,h=0;const p={};for(let m=0;m<r.length;m++){const v=r[m];if(!v)continue;const{name:b,fn:w}=v,{x:_,y:E,data:A,reset:C}=await w({x:d,y:u,initialPlacement:n,placement:f,strategy:i,middlewareData:p,rects:c,platform:s,elements:{reference:t,floating:e}});d=_??d,u=E??u,p[b]={...p[b],...A},C&&h<Cc&&(h++,typeof C=="object"&&(C.placement&&(f=C.placement),C.rects&&(c=C.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):C.rects),{x:d,y:u}=Bi(c,f,l)),m=-1)}return{x:d,y:u,placement:f,strategy:i,middlewareData:p}},kc=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var o,n;const{placement:i,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:f,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...v}=yt(t,e);if((o=r.arrow)!=null&&o.alignmentOffset)return{};const b=lt(i),w=tt(s),_=lt(s)===s,E=await(l.isRTL==null?void 0:l.isRTL(c.floating)),A=f||(_||!m?[Ie(s)]:yc(s)),C=p!=="none";!f&&C&&A.push(...Sc(s,m,p,E));const H=[s,...A],V=await l.detectOverflow(e,v),At=[];let ut=((n=r.flip)==null?void 0:n.overflows)||[];if(d&&At.push(V[b]),u){const kt=bc(i,a,E);At.push(V[kt[0]],V[kt[1]])}if(ut=[...ut,{placement:i,overflows:At}],!At.every(kt=>kt<=0)){var fe,pe;const kt=(((fe=r.flip)==null?void 0:fe.index)||0)+1,Jn=H[kt];if(Jn&&(!(u==="alignment"?w!==tt(Jn):!1)||ut.every(X=>tt(X.placement)===w?X.overflows[0]>0:!0)))return{data:{index:kt,overflows:ut},reset:{placement:Jn}};let he=(pe=ut.filter(Lt=>Lt.overflows[0]<=0).sort((Lt,X)=>Lt.overflows[1]-X.overflows[1])[0])==null?void 0:pe.placement;if(!he)switch(h){case"bestFit":{var me;const Lt=(me=ut.filter(X=>{if(C){const vt=tt(X.placement);return vt===w||vt==="y"}return!0}).map(X=>[X.placement,X.overflows.filter(vt=>vt>0).reduce((vt,Wp)=>vt+Wp,0)]).sort((X,vt)=>X[1]-vt[1])[0])==null?void 0:me[0];Lt&&(he=Lt);break}case"initialPlacement":he=s;break}if(i!==he)return{reset:{placement:he}}}return{}}}},qi=new Set(["left","top"]);async function Lc(t,e){const{placement:o,platform:n,elements:i}=t,r=await(n.isRTL==null?void 0:n.isRTL(i.floating)),a=lt(o),s=Qt(o),l=tt(o)==="y",c=qi.has(a)?-1:1,d=r&&l?-1:1,u=yt(e,t);let{mainAxis:f,crossAxis:h,alignmentAxis:p}=typeof u=="number"?{mainAxis:u,crossAxis:0,alignmentAxis:null}:{mainAxis:u.mainAxis||0,crossAxis:u.crossAxis||0,alignmentAxis:u.alignmentAxis};return s&&typeof p=="number"&&(h=s==="end"?p*-1:p),l?{x:h*d,y:f*c}:{x:f*c,y:h*d}}const Ic=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var o,n;const{x:i,y:r,placement:a,middlewareData:s}=e,l=await Lc(e,t);return a===((o=s.offset)==null?void 0:o.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:i+l.x,y:r+l.y,data:{...l,placement:a}}}}},Mc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:o,y:n,placement:i,platform:r}=e,{mainAxis:a=!0,crossAxis:s=!1,limiter:l={fn:b=>{let{x:w,y:_}=b;return{x:w,y:_}}},...c}=yt(t,e),d={x:o,y:n},u=await r.detectOverflow(e,c),f=tt(lt(i)),h=zo(f);let p=d[h],m=d[f];if(a){const b=h==="y"?"top":"left",w=h==="y"?"bottom":"right",_=p+u[b],E=p-u[w];p=Ri(_,p,E)}if(s){const b=f==="y"?"top":"left",w=f==="y"?"bottom":"right",_=m+u[b],E=m-u[w];m=Ri(_,m,E)}const v=l.fn({...e,[h]:p,[f]:m});return{...v,data:{x:v.x-o,y:v.y-n,enabled:{[h]:a,[f]:s}}}}}},Oc=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:o,y:n,placement:i,rects:r,middlewareData:a}=e,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=yt(t,e),d={x:o,y:n},u=tt(i),f=zo(u);let h=d[f],p=d[u];const m=yt(s,e),v=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const _=f==="y"?"height":"width",E=r.reference[f]-r.floating[_]+v.mainAxis,A=r.reference[f]+r.reference[_]-v.mainAxis;h<E?h=E:h>A&&(h=A)}if(c){var b,w;const _=f==="y"?"width":"height",E=qi.has(lt(i)),A=r.reference[u]-r.floating[_]+(E&&((b=a.offset)==null?void 0:b[u])||0)+(E?0:v.crossAxis),C=r.reference[u]+r.reference[_]+(E?0:((w=a.offset)==null?void 0:w[u])||0)-(E?v.crossAxis:0);p<A?p=A:p>C&&(p=C)}return{[f]:h,[u]:p}}}},Rc=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var o,n;const{placement:i,rects:r,platform:a,elements:s}=e,{apply:l=()=>{},...c}=yt(t,e),d=await a.detectOverflow(e,c),u=lt(i),f=Qt(i),h=tt(i)==="y",{width:p,height:m}=r.floating;let v,b;u==="top"||u==="bottom"?(v=u,b=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=u,v=f==="end"?"top":"bottom");const w=m-d.top-d.bottom,_=p-d.left-d.right,E=Bt(m-d[v],w),A=Bt(p-d[b],_),C=!e.middlewareData.shift;let H=E,V=A;if((o=e.middlewareData.shift)!=null&&o.enabled.x&&(V=_),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(H=w),C&&!f){const ut=q(d.left,0),fe=q(d.right,0),pe=q(d.top,0),me=q(d.bottom,0);h?V=p-2*(ut!==0||fe!==0?ut+fe:q(d.left,d.right)):H=m-2*(pe!==0||me!==0?pe+me:q(d.top,d.bottom))}await l({...e,availableWidth:V,availableHeight:H});const At=await a.getDimensions(s.floating);return p!==At.width||m!==At.height?{reset:{rects:!0}}:{}}}};function Oe(){return typeof window<"u"}function qt(t){return Ui(t)?(t.nodeName||"").toLowerCase():"#document"}function U(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function et(t){var e;return(e=(Ui(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ui(t){return Oe()?t instanceof Node||t instanceof U(t).Node:!1}function W(t){return Oe()?t instanceof Element||t instanceof U(t).Element:!1}function ct(t){return Oe()?t instanceof HTMLElement||t instanceof U(t).HTMLElement:!1}function Fi(t){return!Oe()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof U(t).ShadowRoot}function Jt(t){const{overflow:e,overflowX:o,overflowY:n,display:i}=G(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+o)&&i!=="inline"&&i!=="contents"}function Dc(t){return/^(table|td|th)$/.test(qt(t))}function Re(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const Pc=/transform|translate|scale|rotate|perspective|filter/,Hc=/paint|layout|strict|content/,_t=t=>!!t&&t!=="none";let Wo;function Go(t){const e=W(t)?G(t):t;return _t(e.transform)||_t(e.translate)||_t(e.scale)||_t(e.rotate)||_t(e.perspective)||!jo()&&(_t(e.backdropFilter)||_t(e.filter))||Pc.test(e.willChange||"")||Hc.test(e.contain||"")}function Nc(t){let e=pt(t);for(;ct(e)&&!Ut(e);){if(Go(e))return e;if(Re(e))return null;e=pt(e)}return null}function jo(){return Wo==null&&(Wo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Wo}function Ut(t){return/^(html|body|#document)$/.test(qt(t))}function G(t){return U(t).getComputedStyle(t)}function De(t){return W(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function pt(t){if(qt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Fi(t)&&t.host||et(t);return Fi(e)?e.host:e}function zi(t){const e=pt(t);return Ut(e)?t.ownerDocument?t.ownerDocument.body:t.body:ct(e)&&Jt(e)?e:zi(e)}function Zt(t,e,o){var n;e===void 0&&(e=[]),o===void 0&&(o=!0);const i=zi(t),r=i===((n=t.ownerDocument)==null?void 0:n.body),a=U(i);if(r){const s=Ko(a);return e.concat(a,a.visualViewport||[],Jt(i)?i:[],s&&o?Zt(s):[])}else return e.concat(i,Zt(i,[],o))}function Ko(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Vi(t){const e=G(t);let o=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const i=ct(t),r=i?t.offsetWidth:o,a=i?t.offsetHeight:n,s=ke(o)!==r||ke(n)!==a;return s&&(o=r,n=a),{width:o,height:n,$:s}}function Xo(t){return W(t)?t:t.contextElement}function Ft(t){const e=Xo(t);if(!ct(e))return Z(1);const o=e.getBoundingClientRect(),{width:n,height:i,$:r}=Vi(e);let a=(r?ke(o.width):o.width)/n,s=(r?ke(o.height):o.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const Bc=Z(0);function Wi(t){const e=U(t);return!jo()||!e.visualViewport?Bc:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function qc(t,e,o){return e===void 0&&(e=!1),!o||e&&o!==U(t)?!1:e}function wt(t,e,o,n){e===void 0&&(e=!1),o===void 0&&(o=!1);const i=t.getBoundingClientRect(),r=Xo(t);let a=Z(1);e&&(n?W(n)&&(a=Ft(n)):a=Ft(t));const s=qc(r,o,n)?Wi(r):Z(0);let l=(i.left+s.x)/a.x,c=(i.top+s.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(r){const f=U(r),h=n&&W(n)?U(n):n;let p=f,m=Ko(p);for(;m&&n&&h!==p;){const v=Ft(m),b=m.getBoundingClientRect(),w=G(m),_=b.left+(m.clientLeft+parseFloat(w.paddingLeft))*v.x,E=b.top+(m.clientTop+parseFloat(w.paddingTop))*v.y;l*=v.x,c*=v.y,d*=v.x,u*=v.y,l+=_,c+=E,p=U(m),m=Ko(p)}}return Me({width:d,height:u,x:l,y:c})}function Pe(t,e){const o=De(t).scrollLeft;return e?e.left+o:wt(et(t)).left+o}function Gi(t,e){const o=t.getBoundingClientRect(),n=o.left+e.scrollLeft-Pe(t,o),i=o.top+e.scrollTop;return{x:n,y:i}}function Uc(t){let{elements:e,rect:o,offsetParent:n,strategy:i}=t;const r=i==="fixed",a=et(n),s=e?Re(e.floating):!1;if(n===a||s&&r)return o;let l={scrollLeft:0,scrollTop:0},c=Z(1);const d=Z(0),u=ct(n);if((u||!u&&!r)&&((qt(n)!=="body"||Jt(a))&&(l=De(n)),u)){const h=wt(n);c=Ft(n),d.x=h.x+n.clientLeft,d.y=h.y+n.clientTop}const f=a&&!u&&!r?Gi(a,l):Z(0);return{width:o.width*c.x,height:o.height*c.y,x:o.x*c.x-l.scrollLeft*c.x+d.x+f.x,y:o.y*c.y-l.scrollTop*c.y+d.y+f.y}}function Fc(t){return Array.from(t.getClientRects())}function zc(t){const e=et(t),o=De(t),n=t.ownerDocument.body,i=q(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),r=q(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-o.scrollLeft+Pe(t);const s=-o.scrollTop;return G(n).direction==="rtl"&&(a+=q(e.clientWidth,n.clientWidth)-i),{width:i,height:r,x:a,y:s}}const ji=25;function Vc(t,e){const o=U(t),n=et(t),i=o.visualViewport;let r=n.clientWidth,a=n.clientHeight,s=0,l=0;if(i){r=i.width,a=i.height;const d=jo();(!d||d&&e==="fixed")&&(s=i.offsetLeft,l=i.offsetTop)}const c=Pe(n);if(c<=0){const d=n.ownerDocument,u=d.body,f=getComputedStyle(u),h=d.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,p=Math.abs(n.clientWidth-u.clientWidth-h);p<=ji&&(r-=p)}else c<=ji&&(r+=c);return{width:r,height:a,x:s,y:l}}function Wc(t,e){const o=wt(t,!0,e==="fixed"),n=o.top+t.clientTop,i=o.left+t.clientLeft,r=ct(t)?Ft(t):Z(1),a=t.clientWidth*r.x,s=t.clientHeight*r.y,l=i*r.x,c=n*r.y;return{width:a,height:s,x:l,y:c}}function Ki(t,e,o){let n;if(e==="viewport")n=Vc(t,o);else if(e==="document")n=zc(et(t));else if(W(e))n=Wc(e,o);else{const i=Wi(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Me(n)}function Xi(t,e){const o=pt(t);return o===e||!W(o)||Ut(o)?!1:G(o).position==="fixed"||Xi(o,e)}function Gc(t,e){const o=e.get(t);if(o)return o;let n=Zt(t,[],!1).filter(s=>W(s)&&qt(s)!=="body"),i=null;const r=G(t).position==="fixed";let a=r?pt(t):t;for(;W(a)&&!Ut(a);){const s=G(a),l=Go(a);!l&&s.position==="fixed"&&(i=null),(r?!l&&!i:!l&&s.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Jt(a)&&!l&&Xi(t,a))?n=n.filter(d=>d!==a):i=s,a=pt(a)}return e.set(t,n),n}function jc(t){let{element:e,boundary:o,rootBoundary:n,strategy:i}=t;const a=[...o==="clippingAncestors"?Re(e)?[]:Gc(e,this._c):[].concat(o),n],s=Ki(e,a[0],i);let l=s.top,c=s.right,d=s.bottom,u=s.left;for(let f=1;f<a.length;f++){const h=Ki(e,a[f],i);l=q(h.top,l),c=Bt(h.right,c),d=Bt(h.bottom,d),u=q(h.left,u)}return{width:c-u,height:d-l,x:u,y:l}}function Kc(t){const{width:e,height:o}=Vi(t);return{width:e,height:o}}function Xc(t,e,o){const n=ct(e),i=et(e),r=o==="fixed",a=wt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=Z(0);function c(){l.x=Pe(i)}if(n||!n&&!r)if((qt(e)!=="body"||Jt(i))&&(s=De(e)),n){const h=wt(e,!0,r,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();r&&!n&&i&&c();const d=i&&!n&&!r?Gi(i,s):Z(0),u=a.left+s.scrollLeft-l.x-d.x,f=a.top+s.scrollTop-l.y-d.y;return{x:u,y:f,width:a.width,height:a.height}}function Yo(t){return G(t).position==="static"}function Yi(t,e){if(!ct(t)||G(t).position==="fixed")return null;if(e)return e(t);let o=t.offsetParent;return et(t)===o&&(o=o.ownerDocument.body),o}function Qi(t,e){const o=U(t);if(Re(t))return o;if(!ct(t)){let i=pt(t);for(;i&&!Ut(i);){if(W(i)&&!Yo(i))return i;i=pt(i)}return o}let n=Yi(t,e);for(;n&&Dc(n)&&Yo(n);)n=Yi(n,e);return n&&Ut(n)&&Yo(n)&&!Go(n)?o:n||Nc(t)||o}const Yc=async function(t){const e=this.getOffsetParent||Qi,o=this.getDimensions,n=await o(t.floating);return{reference:Xc(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Qc(t){return G(t).direction==="rtl"}const Jc={convertOffsetParentRelativeRectToViewportRelativeRect:Uc,getDocumentElement:et,getClippingRect:jc,getOffsetParent:Qi,getElementRects:Yc,getClientRects:Fc,getDimensions:Kc,getScale:Ft,isElement:W,isRTL:Qc};function Ji(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Zc(t,e){let o=null,n;const i=et(t);function r(){var s;clearTimeout(n),(s=o)==null||s.disconnect(),o=null}function a(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const c=t.getBoundingClientRect(),{left:d,top:u,width:f,height:h}=c;if(s||e(),!f||!h)return;const p=Le(u),m=Le(i.clientWidth-(d+f)),v=Le(i.clientHeight-(u+h)),b=Le(d),_={rootMargin:-p+"px "+-m+"px "+-v+"px "+-b+"px",threshold:q(0,Bt(1,l))||1};let E=!0;function A(C){const H=C[0].intersectionRatio;if(H!==l){if(!E)return a();H?a(!1,H):n=setTimeout(()=>{a(!1,1e-7)},1e3)}H===1&&!Ji(c,t.getBoundingClientRect())&&a(),E=!1}try{o=new IntersectionObserver(A,{..._,root:i.ownerDocument})}catch{o=new IntersectionObserver(A,_)}o.observe(t)}return a(!0),r}function td(t,e,o,n){n===void 0&&(n={});const{ancestorScroll:i=!0,ancestorResize:r=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=n,c=Xo(t),d=i||r?[...c?Zt(c):[],...e?Zt(e):[]]:[];d.forEach(b=>{i&&b.addEventListener("scroll",o,{passive:!0}),r&&b.addEventListener("resize",o)});const u=c&&s?Zc(c,o):null;let f=-1,h=null;a&&(h=new ResizeObserver(b=>{let[w]=b;w&&w.target===c&&h&&e&&(h.unobserve(e),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var _;(_=h)==null||_.observe(e)})),o()}),c&&!l&&h.observe(c),e&&h.observe(e));let p,m=l?wt(t):null;l&&v();function v(){const b=wt(t);m&&!Ji(m,b)&&o(),m=b,p=requestAnimationFrame(v)}return o(),()=>{var b;d.forEach(w=>{i&&w.removeEventListener("scroll",o),r&&w.removeEventListener("resize",o)}),u?.(),(b=h)==null||b.disconnect(),h=null,l&&cancelAnimationFrame(p)}}const ed=Ic,od=Mc,nd=kc,id=Rc,rd=Oc,ad=(t,e,o)=>{const n=new Map,i={platform:Jc,...o},r={...i.platform,_c:n};return Ac(t,e,{...i,platform:r})},Zi="data-placement",tr="data-autoplacement",te=new Map;function sd(t){let{newState:e,oldState:o,target:n,source:i=t.detail}=t,r=n instanceof HTMLElement&&y(n,"popover")!==null&&Bo(n,"--_ds-floating");if(!r)return;if(e==="closed")return te.get(n)?.();if(!i){let p=n.getRootNode(),m=`[popovertarget="${n.id}"],[commandfor="${n.id}"]`;i=n.id&&p?.querySelector?.(m)||void 0}if(!i||i===n||o&&o===e)return;let a=Bo(n,"--_ds-floating-overscroll"),s=y(n,Zi)||y(i,Zi)||r,l=y(n,tr)||y(i,tr),c=parseFloat(getComputedStyle(n,"::before").height)||0,d=s.match(/left|right/gi)?"Height":"Width",u=i[`offset${d}`]/2+c;if(s==="none")return;let f={strategy:"absolute",placement:s,middleware:[ed(c||0),od({padding:10,limiter:rd({offset:{mainAxis:u}})}),cd(),...l==="false"?[]:[nd({padding:10,crossAxis:!1})],...a?[id({apply({availableHeight:p}){a==="fit"&&(n.style.width=`${i.clientWidth}px`),n.style.maxHeight=`${Math.max(50,p-20)}px`}})]:[]]},h=td(i,n,async()=>{if(!i?.isConnected)return te.get(n)?.();let{x:p,y:m}=await ad(i,n,f);n.style.translate=`${p}px ${m}px`});te.set(n,()=>te.delete(n)&&h())}let He;const ld=({type:t})=>{if(t==="mousedown"&&(He=!1),t==="scroll"&&He===!1&&(He=!0),t==="mouseup"&&He)for(let[e]of te)e.showPopover()};it("popover",()=>[R(document,"mousedown scroll mouseup",ld,!0),R(document,"toggle ds-toggle-source",sd,z)]);const cd=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,o=t.rects.reference,n=`${Math.round(o.width/2+o.x-t.x)}px`,i=`${Math.round(o.height/2+o.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",n),e.style.setProperty("--_ds-floating-arrow-y",i),y(e,"data-floating",t.placement),t}}),Qo=t=>(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&(t.hasAttribute("readonly")||y(t,"aria-readonly")==="true"),dd=t=>{if(t.key!=="Tab"&&Qo(t.target)){let e=t.key?.startsWith("Arrow"),o=t.altKey||t.ctrlKey||t.metaKey;if((e||!o)&&t.preventDefault(),e&&y(t.target,"type")==="radio"){let n=document.querySelectorAll(`input[name="${t.target.name}"]`),i=t.key?.match(/Arrow(Right|Down)/)?1:-1;n[(n.length+[...n].indexOf(t.target)+i)%n.length]?.focus()}}},ud=t=>{let e=t.target?.closest?.("label")?.control||t.target;Qo(e)&&(t.preventDefault(),e.focus())},fd=t=>{t.target instanceof HTMLSelectElement&&Qo(t.target)&&t.preventDefault()};it("readonly",()=>[R(document,"keydown",dd),R(document,"click",ud),R(document,"mousedown",fd)]);const er="aria-label",Ne="data-toggle-group",or=`[${Ne}]`,pd=()=>{for(let t of document.querySelectorAll(or))y(t,"aria-label",Nt(t,Ne))},md=t=>{let{key:e,target:o}=t,n=o instanceof HTMLInputElement&&o.closest(or);if(n&&(!y(n,er)&&!y(n,"aria-labelledby")&&y(n,er,Nt(n,Ne)),e==="Enter"&&o.click(),e?.startsWith("Arrow"))){t.preventDefault?.();let i=[...n.getElementsByTagName("input")],r=i.indexOf(o),a=e.match(/Arrow(Right|Down)/)?1:-1,s=r;for(let l=0;l<i.length;l++)if(s=(i.length+s+a)%i.length,!i[s]?.disabled){i[s]?.focus();break}}};it("toggle-group",()=>[R(document,"keydown",md),rt(document,pd,{attributeFilter:[Ne],attributes:!0,childList:!0,subtree:!0})]);let I,ee,Be=!1,Jo=0,Zo=0;const hd=Q()&&/iPad|iPhone|iPod/.test(navigator.userAgent),zt="data-tooltip",tn="data-color",nr="aria-label",ir="aria-description",vd=`[${tn}]`,gd=`[${zt}]`,en="data-color-scheme",bd=`[${en}]`,rr=t=>{t&&!(t instanceof HTMLElement)&&Ht("setTooltipElement expects an HTMLElement, got: ",t),clearTimeout(Zo),clearTimeout(Jo),ee=void 0,Be=!1,I=t||void 0},yd=()=>{for(let t of document.querySelectorAll(gd)){let e=Nt(t,zt);if(!e)return;if(e!==(t.getAttribute(nr)||t.getAttribute(ir))){let i=y(t,"role")!=="img"&&t.textContent?.trim();y(t,zt,e),y(t,nr,i?null:e),y(t,ir,i?e:null),t.matches("a,button,input,label,select,textarea,[tabindex]")||Ht('Missing tabindex="0" attribute on: ',t)}let o=t===ee&&I?.offsetHeight&&I?.offsetWidth,n=o&&e&&I?.textContent!==e;o&&n&&(I&&(I.textContent=e),document.activeElement===t&&Uo(e))}},ar=({type:t,target:e})=>{if(clearTimeout(Jo),e===I)return;if(t==="mouseover"&&!Be&&!hd){Jo=setTimeout(ar,300,{target:e});return}let o=e?.closest?.(`[${zt}]`);if(o===ee)return;if(!o)return sr();I||=ki("div",{class:"ds-tooltip"}),I.isConnected||document.body.appendChild(I);let n=o.closest(vd),i=o.closest(bd),r=n!==i&&n?.contains(i);clearTimeout(Zo),y(I,"popover","manual"),y(I,en,i?.getAttribute(en)||null),y(I,tn,r&&n?.getAttribute(tn)||null),I.textContent=y(o,zt),I.showPopover(),I.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:o})),Be=!0,ee=o},sr=()=>I?.isConnected&&I.popover&&I.hidePopover(),lr=t=>{if(t?.type==="keydown")return t?.key==="Escape"&&sr();t?t.target===I&&t.newState==="closed"&&(ee=void 0,Zo=setTimeout(lr,300)):Be=!1};it("tooltip",()=>[R(document,"blur focus mouseover",ar,z),R(document,"toggle keydown",lr,z),rt(document,yd,{attributeFilter:[zt],attributes:!0,childList:!0,subtree:!0})]);const on="aria-label";var cr=class extends Ce{_items;_label=null;_unresize;_unmutate;static get observedAttributes(){return[on]}connectedCallback(){let e=Ai(()=>nn(this),100);this._label=Nt(this,on),this._items=this.getElementsByTagName("a"),this._unresize=R(window,"resize",e),this._unmutate=rt(this,nn,{childList:!0,subtree:!0})}attributeChangedCallback(e,o,n){!this._unmutate||!n||(this._label=n,nn(this))}disconnectedCallback(){this._unresize?.(),this._unmutate?.(),this._unresize=this._unmutate=this._items=void 0}};const nn=t=>{let e=t._items?.[t._items.length-1],o=e?.parentElement===t?null:e,n=!o?.offsetHeight;y(t,"role",n?null:"navigation"),y(t,on,n?null:t._label);for(let i of t._items||[])y(i,"aria-current",i===o?"page":null)};at.define("ds-breadcrumbs",cr);var dr=class extends Ce{_unmutate;connectedCallback(){R(this,"animationend",this,z),y(this,"tabindex","-1"),this._unmutate=rt(this,_d,{childList:!0,subtree:!0}),this.focus()}handleEvent({target:e}){e===this&&this.focus()}disconnectedCallback(){qo(this,"animationend",this,z),this._unmutate?.(),this._unmutate=void 0}};const _d=t=>{let e=t.querySelector("h2,h3,h4,h5,h6");e&&y(t,"aria-labelledby",st(e))};at.define("ds-error-summary",dr);const rn="aria-invalid",ur="aria-describedby",fr="data-indeterminate",wd=nc()?800:200,pr=new WeakMap,oe=new Map,an=new WeakSet,Ed=(t,e=[])=>{for(let{target:o}of e){let n=o instanceof HTMLFieldSetElement;for(let[i]of oe)(n?o.contains(i):i.contains(o))&&mr(i)}},mr=t=>{let e=[],o=[],n=oe.get(t)||[],i,r,a=!1,s=!1;for(let f of t.getElementsByTagName("*"))if(f instanceof HTMLLabelElement&&e.push(f),!f.hidden)if($d(f))i?Ht("Fields should only have one input element. Use <fieldset> to group multiple fields:",t):i=f;else{let h=f.getAttribute("data-field");h==="counter"&&(r=f),h==="validation"?(o.unshift(st(f)),a=!0,s||=vr(f)):h&&o.push(st(f))}if(!i)return;r&&pr.set(i,r);for(let f of e)y(f,"for",st(i));let l=t.closest("fieldset")?.querySelector(':scope > [data-field="validation"]');l&&!l?.hidden&&(a=!0,s||=vr(l),o.unshift(st(l)));let c=y(i,fr);c&&(i.indeterminate=c==="true"),(i.type==="radio"||i.type==="checkbox")&&y(t,"data-clickdelegatefor",st(i));let d=y(i,ur)?.trim().split(/\s+/)?.filter(f=>!n.includes(f))||[];y(i,ur,[...o,...d].join(" ")||null),oe.set(t,o);let u=an.has(i);a&&!u&&!i.hasAttribute(rn)?(y(i,rn,"true"),an.add(i)):!a&&u&&(y(i,rn,null),an.delete(i)),hr(i)},Sd={over:"%d tegn for mye",under:"%d tegn igjen"},hr=t=>{let e=t.target||t,o=pr.get(e);if(o?.isConnected){let n=(Number(y(o,"data-limit"))||0)-e.value.length,i=n<0?"over":"under",r=(Nt(o,`data-${i}`)||Sd[i])?.replace("%d",`${Math.abs(n)}`);y(o,"data-label",r),y(o,"data-state",i),y(o,"data-color",n<0?"danger":null),t.type==="input"&&r&&xd(e,r)}e instanceof HTMLTextAreaElement&&(e.style.setProperty("--_ds-field-sizing","auto"),e.style.setProperty("--_ds-field-sizing",`${e.scrollHeight}px`))},xd=Ai((t,e)=>{document.activeElement===t&&Uo(e)},wd),vr=t=>t.getAttribute("data-color")!=="success",$d=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement)&&t.type!=="hidden";var qe=class extends Ce{connectedCallback(){oe.set(this,[]),mr(this)}disconnectedCallback(){oe.delete(this)}};at.define("ds-field",qe),it("field",()=>[R(document,"input",hr,z),rt(document,Ed,{attributeFilter:["data-field","data-limit","hidden","id","value",fr],attributes:!0,childList:!0,subtree:!0})]);const sn="aria-label",Ue="data-current",Fe="data-total",gr="data-href",br=({current:t=1,total:e=10,show:o=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Td(t,e,o).map((n,i)=>({current:n===t&&"page",key:`key-${n}-${i}`,page:n}))});var yr=class extends Ce{_unmutate;_render;static get observedAttributes(){return[sn,Ue,Fe,gr]}connectedCallback(){let t=y(this,Fe),e=y(this,Ue);e&&!t&&Ht(`Missing ${Fe} attribute on:`,this),t&&!e&&Ht(`Missing ${Ue} attribute on:`,this),y(this,sn,Nt(this,sn)),y(this,"role","navigation"),this._unmutate=rt(this,_r,{childList:!0,subtree:!0})}attributeChangedCallback(){this._unmutate&&_r(this)}disconnectedCallback(){this._unmutate?.(),this._unmutate=this._render=void 0}};const _r=t=>{let e=Number(y(t,Ue)),o=Number(y(t,Fe));if(e&&o){let n=t.querySelectorAll("button,a"),i=n.length-2,r=y(t,gr),{next:a,prev:s,pages:l}=br({current:e,total:o,show:i});n.forEach((c,d)=>{let u=d?n[d+1]?l[d-1]?.page:a:s;y(c,"aria-current",l[d-1]?.current?"true":null),y(c,"aria-label",`${u??"hidden"}`),y(c,"role",u?null:"none"),y(c,"tabindex",u?null:"-1"),c instanceof HTMLButtonElement&&y(c,"value",`${u}`),r&&c instanceof HTMLAnchorElement&&y(c,"href",r.replace("%d",`${u}`))})}},Td=(t,e,o=1/0)=>{let n=(o-1)/2,i=Math.max(Math.min(t-Math.floor(n),e-o+1),1),r=Math.min(Math.max(t+Math.ceil(n),o),e),a=Array.from({length:r+1-i},(s,l)=>l+i);return o>4&&i>1&&a.splice(0,2,1,0),o>3&&r<e&&a.splice(-2,2,0,e),a};at.define("ds-pagination",yr);var Cd=Object.defineProperty,wr=Object.getOwnPropertySymbols,Ad=Object.prototype.hasOwnProperty,kd=Object.prototype.propertyIsEnumerable,Er=(t,e,o)=>e in t?Cd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,Ld=(t,e)=>{for(var o in e||(e={}))Ad.call(e,o)&&Er(t,o,e[o]);if(wr)for(var o of wr(e))kd.call(e,o)&&Er(t,o,e[o]);return t},ze=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Id=ze&&/android/i.test(navigator.userAgent),Sr=ze&&/iPad|iPhone|iPod/.test(navigator.userAgent),xr;ze&&/^Mac/i.test(((xr=navigator.userAgentData)==null?void 0:xr.platform)||navigator.platform);var Md="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Od=typeof HTMLElement>"u"?class{}:HTMLElement;function x(t,e,o){return o===void 0?t.getAttribute(e):(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null)}var $r=(t,e,o)=>{for(const n of o[0].split(","))o[0]=n,Element.prototype[`${t}EventListener`].apply(e,o)},Ve=(t,...e)=>$r("add",t,e),Rd=(t,...e)=>$r("remove",t,e),We=new WeakMap,ln=(t,e)=>{if(e===void 0)return We.get(t);try{We.get(t).disconnect(),We.delete(t)}catch{}if(e){const o=new MutationObserver(n=>t.handleEvent({type:"mutation",detail:n}));o.observe(t,e),We.set(t,o)}},Dd=t=>{var e;const o=t.key===" "||t.key==="Enter";return o&&((e=t.preventDefault)==null||e.call(t)),o&&t.target instanceof HTMLElement&&t.target.dispatchEvent(new MouseEvent("click",t)),o},Tr=t=>{var e;const o=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return o instanceof Document||o instanceof ShadowRoot?o:document},Pd=0,Cr=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Pd).toString(32)}`),t.id):"",Vt=(t,e,o)=>{const n=document.createElement(t);if(e&&(n[t==="style"?"textContent":"innerHTML"]=e),o)for(const[i,r]of Object.entries(o))x(n,i,r);return n},Hd={define:(t,e)=>!ze||window.customElements.get(t)||window.customElements.define(t,e)},Nd=t=>{var e;const o=x(t,"aria-label")||"";return[...(((e=x(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},o)},Et,Bd=0,cn=t=>{Et||(Et=Vt("div"),Et.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",x(Et,"aria-live","assertive")),Et.isConnected||document.body.append(Et),t&&(Et.textContent=`${t}${Bd++%2?" ":""}`)},Ar=(t,e,o="")=>{var n,i;const r={bubbles:!0,composed:!0,data:e,inputType:o},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(n=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:n.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},dn=!1,un=t=>(t?.type==="mouseup"&&(dn=!1),t?.type==="mousedown"&&(dn=!0,Ve(document,"mouseup",un,{once:!0})),dn),qd=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
|
|
16
|
-
:host(:not([data-multiple])) ::slotted(data),
|
|
17
|
-
:host([data-multiple="false"]) ::slotted(data) { display: none } /* Hide data if not multiple */
|
|
18
|
-
[role="listbox"] { position: absolute } /* Avoid affecting CSS like flex on the <u-combobox> */
|
|
19
|
-
::slotted(input[inputmode="none"]) { outline: none } /* Hide temporary foucs outline flash */
|
|
20
|
-
::slotted(del) { text-decoration: none }
|
|
21
|
-
::slotted(data:not([hidden])) { display: inline-block; pointer-events: none }
|
|
22
|
-
::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto; cursor: pointer }
|
|
23
|
-
::slotted(data:focus) { ${Md} }`,kr="beforeinput,blur,focus,click,input,keydown,mousedown",Lr={once:!0,capture:!0,passive:!0},Ge="false",je=Id||Sr,Ir="".repeat(5),Mr="deleteContentBackward",Ud="insertText",Fd=" ",Ke={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",items:"Selected",of:"of",remove:"Press to remove",removed:"Removed"},Or=class extends Od{constructor(){super(),this._item="",this._speak="",this._texts=Ld({},Ke),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Vt("slot",null,{"aria-orientation":"horizontal",tabindex:"-1",role:"listbox",name:"items"}),Vt("slot"),Vt("div",'<div role="option" tabindex="-1"></div>',{"aria-hidden":"true",role:"listbox"}),Vt("style",qd))}static get observedAttributes(){return Object.keys(Ke).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=Tr(this),Ve(this,kr,this,!0),ln(this,{attributeFilter:["value","id","role"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Xe,0,this),setTimeout(Ye,0,this)}attributeChangedCallback(t,e,o){const n=t.split("data-sr-")[1];Ke[n]&&(this._texts[n]=o||Ke[n])}disconnectedCallback(){ln(this,!1),Rd(this,kr,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=this._form=void 0}handleEvent(t){const e=t.target;pn(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&Vd(this),t.type==="click"&&Gd(this,t),t.type==="focus"&&zd(this,t),t.type==="input"&&jd(this,t),t.type==="keydown"&&Kd(this,t),t.type==="mousedown"&&un(t),t.type==="mutation"&&Xe(this,t))}get multiple(){var t;return((t=x(this,"data-multiple"))!=null?t:Ge)!==Ge}set multiple(t){x(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=x(this,"data-creatable"))!=null?t:Ge)!==Ge}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('datalist,[role="listbox"]')),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 o=(e=(t=this.list)==null?void 0:t.querySelector('[role="option"],option'))==null?void 0:e.nodeName;o&&(this._options=this.getElementsByTagName(o))}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},St=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},fn=t=>t instanceof HTMLDataElement,pn=({control:t})=>t?.disabled||t?.readOnly||!1,Xe=(t,e)=>{var o,n;const{_focus:i,_texts:r,items:a,control:s,list:l,multiple:c}=t;if(!s)return;const d=Nd(s),u=d.endsWith(Ir)?x(s,"data-label"):d;x(s,"data-label",u);let f=`${u}${c?`, ${a.length?r.found.replace("%d",`${a.length}`):r.empty}`:""}`;const h=[];for(const{addedNodes:E,removedNodes:A}of e?.detail||[]){for(const C of E)fn(C)&&h.unshift(C);for(const C of A)fn(C)&&h.push(C)}const p=c?h.length===1:h[0]===i;if(i&&p){const E=x(s,"aria-expanded"),A=x(s,"inputmode"),C=fn(i)?s:i,H=!h[0].isConnected;t._speak=`${r[H?"removed":"added"]} ${St(h[0])}, `,(je||i===s)&&cn(t._speak),s!==C&&(je&&x(s,"aria-expanded",null),je&&x(s,"inputmode","none"),f=Fd,s.focus()),setTimeout(()=>{var V;x(s,"aria-expanded",E),x(s,"inputmode",H?"none":A),(V=C?.focus)==null||V.call(C),x(s,"inputmode",A),t._speak="",je?setTimeout(Xe,100,t):Ve(t,"blur",()=>Xe(t),Lr)},100)}let m=0;const v=t.querySelector("select"),b=pn(t)?"":r.remove,w=(o=t.shadowRoot)==null?void 0:o.firstElementChild;w&&x(w,"aria-label",r.items);for(const E of a){const A=v?.options[m++],C=St(E),H=E.value||C,V=`${t._speak}${C}, ${b}`;x(E,"aria-label",V),x(E,"aria-selected","true"),x(E,"role","option"),x(E,"slot","items"),x(E,"tabindex","-1"),x(E,"value",H),A?Object.assign(A,{textContent:C,value:H}):v?.appendChild(new Option(C,H,!0,!0)),Sr&&x(E,"title",`${m} ${r.of} ${a.length}`)}v&&x(v,"multiple",c?"":null);for(const E of[...v?.options||[]].slice(m))E.remove();!c&&m>1&&console.warn(t," Multiple <data> found in single mode."),l&&(x(l,"aria-multiselectable",`${c}`),x(s,"list",Cr(l)),x(s,"aria-label",`${t._speak}${f}${Ir}`),l.hasAttribute("popover")&&(x(s,"popovertarget",Cr(l)),x(l,"popover","manual")),l._of=r.of);const _=St(a[0]);_!==t._item&&Ye(t),t._item=_,Rr(t),Dr(t),(n=ln(t))==null||n.takeRecords()},Rr=t=>{var e;t.clear&&x(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||pn(t))},Dr=t=>{var e;const{_speak:o,options:n=[],values:i}=t;for(const r of n){const a=(e=x(r,"value"))!=null?e:St(r);x(r,"aria-label",o?`${o}${St(r)}`:null),x(r,"selected",i.includes(a)?"":null)}},Ye=t=>{const{multiple:e,control:o,items:n}=t,i=St(n[0]);!e&&o&&i!==o.value&&Ar(o,i,i?Ud:Mr)},mn=(t,e=!0)=>{var o;const{_texts:n,options:i=[],creatable:r,control:a,items:s,multiple:l}=t,c=((o=a?.value)==null?void 0:o.trim())||"",d=c.toLowerCase()||null;let u=[...i].find(h=>(x(h,"label")||St(h)).trim().toLowerCase()===d);const f={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",f))||(u=[...i].find(h=>h.selected)),e)return Dr(t),u?Wt(t,u,!1):r&&c?Wt(t,{value:c},!1):(!l&&!c&&s[0]?Wt(t,s[0]):Ye(t),cn(n.invalid));for(const h of i)h.selected=h===u},Wt=(t,e,o=!0)=>{var n,i,r;const{control:a,items:s,multiple:l}=t,c=Vt("data",e.label||e.value,{value:e.value}),d=[...s].find(h=>h.value===e.value),u={bubbles:!0,cancelable:!0,detail:d||c};if(d&&!o)return Ye(t);if(d===((n=Tr(t))==null?void 0:n.activeElement)&&((r=(i=t.shadowRoot)==null?void 0:i.querySelector('[role="option"]'))==null||r.focus()),t.dispatchEvent(new CustomEvent("comboboxbeforeselect",u))){if(!l)for(const h of[...s])h.remove();d?d.remove():a?.insertAdjacentElement("beforebegin",c),t.dispatchEvent(new CustomEvent("comboboxafterselect",u))}},zd=(t,{target:e})=>{const{_form:o,control:n,multiple:i}=t;e instanceof HTMLElement&&(t._focus=e),i&&o===void 0&&n&&e===n&&(t._form=x(n,"form"),x(n,"form","#")),cn()},Vd=t=>un()||setTimeout(Wd,0,t),Wd=t=>{const{_focus:e,_root:o,_form:n,multiple:i,control:r}=t;!e||t.contains(o?.activeElement)||(i||mn(t),n&&r&&x(r,"form",n),t._focus=t._form=void 0)},Gd=(t,e)=>{const{clientX:o,clientY:n,target:i}=e,{clear:r,control:a,items:s}=t;if(r?.contains(i))return a&&Ar(a,"",Mr),a?.focus();for(const l of s){const{top:c,right:d,bottom:u,left:f}=l.getBoundingClientRect();if(l.contains(i))return Wt(t,l);if(n>=c&&n<=u&&o>=f&&o<=d)return l.focus()}i===t&&a?.focus()},jd=(t,e)=>{var o;const{options:n=[],control:i,multiple:r}=t,a=((o=i?.value)==null?void 0:o.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const l of n)if(l.value&&l.value===a)return Wt(t,l,r)}else r||mn(t,!1);Rr(t)},Kd=(t,e)=>{var o;const{clear:n,control:i,items:r}=t,{key:a,repeat:s,target:l}=e,c=i&&i===l,d=c&&i.selectionEnd,u=e.ctrlKey||e.metaKey||e.shiftKey||e.key==="Alt";let f=c?r.length:[...r].indexOf(l);if(c&&a==="Tab"&&!e.shiftKey&&n&&!n.hidden&&(e.preventDefault(),n.tabIndex=0,n.focus(),Ve(n,"blur",()=>x(n,"tabindex",null),Lr)),!(!c&&Dd(e)||f===-1||u)){if(a==="ArrowRight"&&!c)f+=1;else if(a==="ArrowLeft"&&!d)f-=1;else{if(a==="Enter"&&c)return mn(t);if(a==="Backspace"&&!d){if(e.preventDefault(),!s&&r[f])return Wt(t,r[f]);c&&(f-=1)}else return c||i?.focus()}e.preventDefault(),(o=r[Math.max(0,f)]||i)==null||o.focus()}};Hd.define("u-combobox",Or);var Pr=class extends Or{_render;_unmutate;connectedCallback(){super.connectedCallback(),this._unmutate=rt(this,Xd,{childList:!0}),R(this,"toggle",Hr,z)}disconnectedCallback(){super.disconnectedCallback(),this._unmutate?.(),this._unmutate=this._render=void 0,qo(this,"toggle",Hr,z)}};const Xd=({control:t,list:e})=>{t&&!t.placeholder&&y(t,"placeholder"," "),t&&y(t,"popovertarget",st(e)||null),e&&y(e,"popover","manual")},Hr=t=>{let e=t.currentTarget,o=t.newState==="open"&&e.control;o&&e.list?.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:o}))};at.define("ds-suggestion",Pr);var Nr=class extends xe{},Br=class extends $e{},qr=class extends Ro{},Ur=class extends Do{};at.define("ds-tabs",Nr),at.define("ds-tablist",Br),at.define("ds-tab",qr),at.define("ds-tabpanel",Ur);var hn=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Fr=hn(),zr=Fr?navigator.userAgent:"",Yd=/android/i.test(zr),Qd=/firefox/i.test(zr),Vr;Fr&&/^Mac/i.test(((Vr=navigator.userAgentData)==null?void 0:Vr.platform)||navigator.platform);var Wr=(t,e,o)=>o===void 0?t.getAttribute(e):(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),Jd=(t,e,o)=>{const n=new MutationObserver(r=>{if(!hn()||!t.isConnected)return i();e(t,r)}),i=Object.assign(()=>n.disconnect(),{takeRecords:()=>n.takeRecords()});return e(t),n.observe(t,o),i},Gr="__uDetailsPolyfillSummarys";if(hn()&&Yd&&Qd&&!window[Gr]){const t=document.getElementsByTagName("summary"),e=()=>{for(const o of t){const n=o.parentElement;Wr(o,"role","button"),Wr(o,"aria-expanded",`${!!n?.open}`)}};window[Gr]=Jd(document,e,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})}var Zd=Object.defineProperty,jr=Object.getOwnPropertySymbols,tu=Object.prototype.hasOwnProperty,eu=Object.prototype.propertyIsEnumerable,Kr=(t,e,o)=>e in t?Zd(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,ou=(t,e)=>{for(var o in e||(e={}))tu.call(e,o)&&Kr(t,o,e[o]);if(jr)for(var o of jr(e))eu.call(e,o)&&Kr(t,o,e[o]);return t},ne=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Qe=ne&&/android/i.test(navigator.userAgent),vn=ne&&/iPad|iPhone|iPod/.test(navigator.userAgent),Xr;ne&&/^Mac/i.test(((Xr=navigator.userAgentData)==null?void 0:Xr.platform)||navigator.platform);var nu=`${Qe?"data":"aria"}-labelledby`,iu=":host(:not([hidden])) { display: block }",ru="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Yr=typeof HTMLElement>"u"?class{}:HTMLElement;function k(t,e,o){return o===void 0?t.getAttribute(e):(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null)}var Qr=(t,e,o)=>{for(const n of o[0].split(","))o[0]=n,Element.prototype[`${t}EventListener`].apply(e,o)},ie=(t,...e)=>Qr("add",t,e),Je=(t,...e)=>Qr("remove",t,e),au=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(yn("slot"),yn("style",e)),Ze=new WeakMap,gn=(t,e)=>{if(e===void 0)return Ze.get(t);try{Ze.get(t).disconnect(),Ze.delete(t)}catch{}if(e){const o=new MutationObserver(n=>t.handleEvent({type:"mutation",detail:n}));o.observe(t,e),Ze.set(t,o)}},Jr=t=>{var e;const o=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return o instanceof Document||o instanceof ShadowRoot?o:document},su=0,bn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++su).toString(32)}`),t.id):"",yn=(t,e,o)=>{const n=document.createElement(t);return e&&(n[t==="style"?"textContent":"innerHTML"]=e),n},Zr={define:(t,e)=>!ne||window.customElements.get(t)||window.customElements.define(t,e)},xt,lu=0,ta=t=>{xt||(xt=yn("div"),xt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",k(xt,"aria-live","assertive")),xt.isConnected||document.body.append(xt),t&&(xt.textContent=`${t}${lu++%2?" ":""}`)},cu=(t,e,o="")=>{var n,i;const r={bubbles:!0,composed:!0,data:e,inputType:o},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(n=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:n.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},_n=!1,wn=t=>(t?.type==="mouseup"&&(_n=!1),t?.type==="mousedown"&&(_n=!0,ie(document,"mouseup",wn,{once:!0})),_n),du=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,En="disabled",re="selected",uu=class extends Yr{static get observedAttributes(){return[En,re]}connectedCallback(){vn||(this.tabIndex=-1),this.hasAttribute("role")||k(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){k(this,"aria-disabled",`${this.disabled}`),k(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[re]}set defaultSelected(e){this[re]=e}get disabled(){return k(this,En)!==null}set disabled(e){k(this,En,e?"":null)}get form(){return this.closest("form")}get index(){var e;return[...((e=this.parentElement)==null?void 0:e.options)||[this]].indexOf(this)}get label(){var e;return(e=k(this,"label"))!=null?e:this.text}set label(e){k(this,"label",e)}get selected(){return k(this,re)!==null}set selected(e){k(this,re,e?"":null)}get text(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}set text(e){this.textContent=e}get value(){var e;return(e=k(this,"value"))!=null?e:this.text}set value(e){k(this,"value",e)}};Zr.define("u-option",uu);var Sn=`${iu}
|
|
14
|
+
:host > [part="details-content"]:not([hidden=""]) { display: block }`,Na=class extends Bo{static get observedAttributes(){return["open"]}constructor(){var t;super(),Da(this,Ha),(t=this.shadowRoot)==null||t.prepend(he("slot",{name:"summary"}),he("slot",{part:"details-content"})),console.warn(`\x1B[1m<u-details> is deprecated as <details> now has sufficient screen reader support 🎉\x1B[0m
|
|
15
|
+
Please use <details> and <summary>, but import '@u-elements/u-details/polyfill' to polyfill support for Talkback screen reader when used with Firefox on Android.`,this)}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],tt(this,"role","group"),Uo(this._content,"beforematch",this),Uo(this,"click keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&gn(this._content,"beforematch",this),gn(this,"click keydown",this),this._content=void 0}attributeChangedCallback(t,e,n){const o="onbeforematch"in this?"until-found":!0,i=this.open;for(const s of this.children)s.nodeName==="U-SUMMARY"&&tt(s,"aria-expanded",`${i}`);if(this._content&&(tt(this._content,"aria-hidden",`${!i}`),tt(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=Pa(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const r of s)r!==this&&(r.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){var e,n;const o=t.key===" "||t.key==="Enter",i=t.target instanceof Element&&((e=t.target.closest('[slot="summary"]'))==null?void 0:e.parentElement)===this;t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),i&&t.type==="click"&&(this.open=!this.open),i&&t.type==="keydown"&&o&&((n=t.preventDefault)==null||n.call(t),t.target.dispatchEvent(new MouseEvent("click",t))))}get open(){return this.hasAttribute("open")}set open(t){tt(this,"open",t?"":null)}get name(){return tt(this,"name")||""}set name(t){tt(this,"name",t)}},qa=class extends Bo{connectedCallback(){tt(this,"role","button"),this.slot="summary",this.tabIndex=0}};zo.define("u-details",Na),zo.define("u-summary",qa);function Ba(){return typeof HTMLButtonElement<"u"&&"command"in HTMLButtonElement.prototype&&"source"in((globalThis.CommandEvent||{}).prototype||{})}function Ua(){document.addEventListener("invoke",f=>{f.type=="invoke"&&f.isTrusted&&(f.stopImmediatePropagation(),f.preventDefault())},!0),document.addEventListener("command",f=>{f.type=="command"&&f.isTrusted&&(f.stopImmediatePropagation(),f.preventDefault())},!0);function t(f,p,b=!0){Object.defineProperty(f,p,{...Object.getOwnPropertyDescriptor(f,p),enumerable:b})}function e(f){return f&&typeof f.getRootNode=="function"?f.getRootNode():f&&f.parentNode?e(f.parentNode):f}let n=new WeakMap,o=new WeakMap;class i extends Event{constructor(p,b={}){super(p,b);let{source:y,command:_}=b;if(y!=null&&!(y instanceof Element))throw TypeError("source must be an element");n.set(this,y||null),o.set(this,_===void 0?"":String(_))}get[Symbol.toStringTag](){return"CommandEvent"}get source(){if(!n.has(this))throw TypeError("illegal invocation");let p=n.get(this);if(!(p instanceof Element))return null;let b=e(p);return b===e(this.target||document)?p:b.host}get command(){if(!o.has(this))throw TypeError("illegal invocation");return o.get(this)}}t(i.prototype,"source"),t(i.prototype,"command");let s=new WeakMap;function r(f){Object.defineProperties(f.prototype,{commandForElement:{enumerable:!0,configurable:!0,set(p){if(p===null)this.removeAttribute("commandfor"),s.delete(this);else if(p instanceof Element){this.setAttribute("commandfor","");let b=e(p);e(this)===b||b===this.ownerDocument?s.set(this,p):s.delete(this)}else throw TypeError("commandForElement must be an element or null")},get(){if(this.localName!=="button"||this.disabled)return null;if(this.form&&this.getAttribute("type")!=="button")return console.warn("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work"),null;let p=s.get(this);if(p)return p.isConnected?p:(s.delete(this),null);let b=e(this),y=this.getAttribute("commandfor");return(b instanceof Document||b instanceof ShadowRoot)&&y&&b.getElementById(y)||null}},command:{enumerable:!0,configurable:!0,get(){let p=this.getAttribute("command")||"";if(p.startsWith("--"))return p;let b=p.toLowerCase();switch(b){case"show-modal":case"request-close":case"close":case"toggle-popover":case"hide-popover":case"show-popover":return b}return""},set(p){this.setAttribute("command",p)}}})}let a=new WeakMap;Object.defineProperties(HTMLElement.prototype,{oncommand:{enumerable:!0,configurable:!0,get(){return c.takeRecords(),a.get(this)||null},set(f){let p=a.get(this)||null;p&&this.removeEventListener("command",p),a.set(this,typeof f=="object"||typeof f=="function"?f:null),typeof f=="function"&&this.addEventListener("command",f)}}});function l(f){for(let p of f)p.oncommand=Function("event",p.getAttribute("oncommand"))}let c=new MutationObserver(f=>{for(let p of f){let{target:b}=p;p.type==="childList"?l(b.querySelectorAll("[oncommand]")):l([b])}});c.observe(document,{subtree:!0,childList:!0,attributeFilter:["oncommand"]}),l(document.querySelectorAll("[oncommand]"));let u=new WeakSet;function d(f){if(u.has(f)||(u.add(f),f.defaultPrevented)||f.type!=="click")return;let p=f.composedPath().find(w=>w.matches?.("button[commandfor], button[command]"));if(!p)return;if(p.form&&p.getAttribute("type")!=="button")throw f.preventDefault(),Error("Element with `commandFor` is a form participant. It should explicitly set `type=button` in order for `commandFor` to work. In order for it to act as a Submit button, it must not have command or commandfor attributes");if(p.hasAttribute("command")!==p.hasAttribute("commandfor")){let w=p.hasAttribute("command")?"command":"commandfor",x=p.hasAttribute("command")?"commandfor":"command";throw Error(`Element with ${w} attribute must also have a ${x} attribute to function.`)}if(p.command!=="show-popover"&&p.command!=="hide-popover"&&p.command!=="toggle-popover"&&p.command!=="show-modal"&&p.command!=="request-close"&&p.command!=="close"&&!p.command.startsWith("--")){console.warn(`"${p.command}" is not a valid command value. Custom commands must begin with --`);return}let b=p.commandForElement;if(!b)return;let y=new i("command",{command:p.command,source:p,cancelable:!0});if(b.dispatchEvent(y),y.defaultPrevented)return;let _=y.command.toLowerCase();if(b.popover){let w=!b.matches(":popover-open");w&&(_==="toggle-popover"||_==="show-popover")?b.showPopover({source:p}):!w&&_==="hide-popover"&&b.hidePopover()}else if(b.localName==="dialog"){let w=!b.hasAttribute("open");w&&_=="show-modal"?b.showModal():!w&&_=="close"?b.close(p.value?p.value:void 0):!w&&_=="request-close"&&(HTMLDialogElement.prototype.requestClose||(HTMLDialogElement.prototype.requestClose=function(){let x=new Event("cancel",{cancelable:!0});this.dispatchEvent(x),x.defaultPrevented||this.close()}),b.requestClose(p.value?p.value:void 0))}}function m(f){f.addEventListener("click",d,!0)}function h(f,p){let b=f.prototype.attachShadow;f.prototype.attachShadow=function(_){let w=b.call(this,_);return p(w),w};let y=f.prototype.attachInternals;f.prototype.attachInternals=function(){let _=y.call(this);return _.shadowRoot&&p(_.shadowRoot),_}}r(HTMLButtonElement),h(HTMLElement,f=>{m(f),c.observe(f,{attributeFilter:["oncommand"]}),l(f.querySelectorAll("[oncommand]"))}),m(document),Object.assign(globalThis,{CommandEvent:i})}const B={passive:!0,capture:!0},j=()=>typeof window<"u"&&typeof document<"u",za=()=>j()&&/^Win/i.test(navigator.userAgentData?.platform||navigator.platform),ge=typeof HTMLElement>"u"?class{}:HTMLElement;function Fo(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const Mt=(t,...e)=>!j()||window.dsWarnings===!1||console.log(`\x1B[1mDesignsystemet:\x1B[m ${t}`,...e),v=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),bn=(t,e)=>getComputedStyle(t).getPropertyValue(e).trim(),Fa=/^["']|["']$/g,It=(t,e)=>{let n=v(t,e);return n||=bn(t,`--_ds-${e}`).replace(Fa,"").trim(),n||Mt(`Missing ${e} on:`,t),n||null},M=(t,...e)=>{let[n,...o]=e;for(let i of n.split(" "))t.addEventListener(i,...o);return()=>vn(t,...e)},vn=(t,...e)=>{let[n,...o]=e;for(let i of n.split(" "))t.removeEventListener(i,...o)},et=(t,e)=>{j()&&(window._dsHotReloadCleanup||(window._dsHotReloadCleanup=new Map),window._dsHotReloadCleanup?.get(t)?.map(n=>n()),window._dsHotReloadCleanup?.set(t,e()))},nt=(t,e,n)=>{let o=()=>i.disconnect(),i=new MutationObserver(s=>{if(!j()||!t.isConnected)return o();e(t,s)});return e(t),i.observe(t,n),o},Wo=(t,e)=>{let n=document.createElement(t);if(e)for(let[o,i]of Object.entries(e))v(n,o,i);return n},ot={define:(t,e)=>!j()||window.customElements.get(t)||window.customElements.define(t,e)};let Wa=0;function it(t){return j()?(window.dsUseId||(window.dsUseId=0),t&&!t.id&&(t.id=`:ds:${++window.dsUseId}`),t?.id||""):`:ds:${++Wa}`}let X,Va=0,Vo=0;const yn=t=>{clearTimeout(Vo),X&&(X.textContent=`${t}${Va++%2?" ":""}`),t&&(Vo=setTimeout(yn,2e3,""))},Ga=()=>{document.readyState==="complete"&&(X||(X=Wo("div",{"aria-live":"assertive"}),X.style.overflow="hidden",X.style.position="fixed",X.style.whiteSpace="nowrap",X.style.width="1px"),X.isConnected||document.body.appendChild(X))};et("announce",()=>[M(document,"focus mouseover",Ga,B)]);const Go=":click-delegate-hover",jo="data-clickdelegatefor",ja=`[${jo}]`,Xa=t=>{let e=t.button===1||t.metaKey||t.ctrlKey,n=t.button<2&&Xo(t);if(!(!n||n.contains(t.target))){if(e&&n instanceof HTMLAnchorElement)return window.open(n.href,void 0,n.rel);t.stopImmediatePropagation(),n.click()}};let be;const Ka=t=>{let e=Xo(t);be!==e&&(be&&be.classList.remove(Go),e&&e.classList.add(Go),be=e)},Xo=({target:t})=>{let e=(t instanceof Element?t.closest(ja):null)?.getAttribute(jo),n=e&&document.getElementById(e)||void 0,o=n&&t.closest('a,button,label,input,select,textarea,details,dialog,[role="button"],[popover],[contenteditable]');return(!o||o===n)&&!n?.disabled?n:void 0};et("clickdelegatefor",()=>[M(window,"click auxclick",Xa,!0),M(document,"mouseover",Ka,B)]);let wn=!1;const Ya=({type:t,target:e,clientX:n=0,clientY:o=0})=>{if(t==="pointerdown"){let i=e?.closest?.("dialog")?.getBoundingClientRect();wn=!!(i&&i.top<=o&&o<=i.bottom&&i.left<=n&&n<=i.right)}else{let i=e instanceof HTMLDialogElement&&!wn&&v(e,"closedby")==="any";wn=!1,i&&requestAnimationFrame(()=>e.open&&e.close())}},Qa=j()?document.getElementsByTagName("button"):[],Ja=()=>{for(let t of Qa)t.getAttribute("command")?.endsWith("-modal")&&t.setAttribute("aria-haspopup","dialog")},Za=({command:t,target:e})=>t==="--show-non-modal"&&e instanceof HTMLDialogElement&&e.show();et("dialog",()=>[M(document,"command",Za,B),M(document,"pointerdown pointerup",Ya,B),nt(document,Ja,{attributeFilter:["command"],attributes:!0,childList:!0,subtree:!0})]);const tl=j()?document.getElementsByTagName("fieldset"):[],el=()=>{for(let t of tl)t.hasAttribute("aria-labelledby")||v(t,"aria-labelledby",`${it(t.querySelector("legend"))} ${it(t.querySelector(':scope > :is([data-field="description"],legend + p)'))}`.trim()||null)};et("fieldset",()=>[nt(document,el,{childList:!0,subtree:!0})]);const Ot=Math.min,H=Math.max,ve=Math.round,ye=Math.floor,K=t=>({x:t,y:t}),nl={left:"right",right:"left",bottom:"top",top:"bottom"};function Ko(t,e,n){return H(t,Ot(e,n))}function gt(t,e){return typeof t=="function"?t(e):t}function st(t){return t.split("-")[0]}function Wt(t){return t.split("-")[1]}function _n(t){return t==="x"?"y":"x"}function Yo(t){return t==="y"?"height":"width"}function Y(t){const e=t[0];return e==="t"||e==="b"?"y":"x"}function Qo(t){return _n(Y(t))}function ol(t,e,n){n===void 0&&(n=!1);const o=Wt(t),i=Qo(t),s=Yo(i);let r=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(r=we(r)),[r,we(r)]}function il(t){const e=we(t);return[Sn(t),e,Sn(e)]}function Sn(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}const Jo=["left","right"],Zo=["right","left"],sl=["top","bottom"],rl=["bottom","top"];function al(t,e,n){switch(t){case"top":case"bottom":return n?e?Zo:Jo:e?Jo:Zo;case"left":case"right":return e?sl:rl;default:return[]}}function ll(t,e,n,o){const i=Wt(t);let s=al(st(t),n==="start",o);return i&&(s=s.map(r=>r+"-"+i),e&&(s=s.concat(s.map(Sn)))),s}function we(t){const e=st(t);return nl[e]+t.slice(e.length)}function cl(t){return{top:0,right:0,bottom:0,left:0,...t}}function dl(t){return typeof t!="number"?cl(t):{top:t,right:t,bottom:t,left:t}}function _e(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 ti(t,e,n){let{reference:o,floating:i}=t;const s=Y(e),r=Qo(e),a=Yo(r),l=st(e),c=s==="y",u=o.x+o.width/2-i.width/2,d=o.y+o.height/2-i.height/2,m=o[a]/2-i[a]/2;let h;switch(l){case"top":h={x:u,y:o.y-i.height};break;case"bottom":h={x:u,y:o.y+o.height};break;case"right":h={x:o.x+o.width,y:d};break;case"left":h={x:o.x-i.width,y:d};break;default:h={x:o.x,y:o.y}}switch(Wt(e)){case"start":h[r]-=m*(n&&c?-1:1);break;case"end":h[r]+=m*(n&&c?-1:1);break}return h}async function ul(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:r,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:m=!1,padding:h=0}=gt(e,t),f=dl(h),b=a[m?d==="floating"?"reference":"floating":d],y=_e(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(b)))==null||n?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),_=d==="floating"?{x:o,y:i,width:r.floating.width,height:r.floating.height}:r.reference,w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),x=await(s.isElement==null?void 0:s.isElement(w))?await(s.getScale==null?void 0:s.getScale(w))||{x:1,y:1}:{x:1,y:1},C=_e(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:_,offsetParent:w,strategy:l}):_);return{top:(y.top-C.top+f.top)/x.y,bottom:(C.bottom-y.bottom+f.bottom)/x.y,left:(y.left-C.left+f.left)/x.x,right:(C.right-y.right+f.right)/x.x}}const fl=50,ml=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:r}=n,a=r.detectOverflow?r:{...r,detectOverflow:ul},l=await(r.isRTL==null?void 0:r.isRTL(e));let c=await r.getElementRects({reference:t,floating:e,strategy:i}),{x:u,y:d}=ti(c,o,l),m=o,h=0;const f={};for(let p=0;p<s.length;p++){const b=s[p];if(!b)continue;const{name:y,fn:_}=b,{x:w,y:x,data:C,reset:k}=await _({x:u,y:d,initialPlacement:o,placement:m,strategy:i,middlewareData:f,rects:c,platform:a,elements:{reference:t,floating:e}});u=w??u,d=x??d,f[y]={...f[y],...C},k&&h<fl&&(h++,typeof k=="object"&&(k.placement&&(m=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:t,floating:e,strategy:i}):k.rects),{x:u,y:d}=ti(c,m,l)),p=-1)}return{x:u,y:d,placement:m,strategy:i,middlewareData:f}},pl=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:r,initialPlacement:a,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:m,fallbackStrategy:h="bestFit",fallbackAxisSideDirection:f="none",flipAlignment:p=!0,...b}=gt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const y=st(i),_=Y(a),w=st(a)===a,x=await(l.isRTL==null?void 0:l.isRTL(c.floating)),C=m||(w||!p?[we(a)]:il(a)),k=f!=="none";!m&&k&&C.push(...ll(a,p,f,x));const Z=[a,...C],St=await l.detectOverflow(e,b),xt=[];let lt=((o=s.flip)==null?void 0:o.overflows)||[];if(u&&xt.push(St[y]),d){const Et=ol(i,r,x);xt.push(St[Et[0]],St[Et[1]])}if(lt=[...lt,{placement:i,overflows:xt}],!xt.every(Et=>Et<=0)){var ee,ne;const Et=(((ee=s.flip)==null?void 0:ee.index)||0)+1,po=Z[Et];if(po&&(!(d==="alignment"?_!==Y(po):!1)||lt.every(V=>Y(V.placement)===_?V.overflows[0]>0:!0)))return{data:{index:Et,overflows:lt},reset:{placement:po}};let ie=(ne=lt.filter($t=>$t.overflows[0]<=0).sort(($t,V)=>$t.overflows[1]-V.overflows[1])[0])==null?void 0:ne.placement;if(!ie)switch(h){case"bestFit":{var oe;const $t=(oe=lt.filter(V=>{if(k){const mt=Y(V.placement);return mt===_||mt==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(mt=>mt>0).reduce((mt,zu)=>mt+zu,0)]).sort((V,mt)=>V[1]-mt[1])[0])==null?void 0:oe[0];$t&&(ie=$t);break}case"initialPlacement":ie=a;break}if(i!==ie)return{reset:{placement:ie}}}return{}}}},ei=new Set(["left","top"]);async function hl(t,e){const{placement:n,platform:o,elements:i}=t,s=await(o.isRTL==null?void 0:o.isRTL(i.floating)),r=st(n),a=Wt(n),l=Y(n)==="y",c=ei.has(r)?-1:1,u=s&&l?-1:1,d=gt(e,t);let{mainAxis:m,crossAxis:h,alignmentAxis:f}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return a&&typeof f=="number"&&(h=a==="end"?f*-1:f),l?{x:h*u,y:m*c}:{x:m*c,y:h*u}}const gl=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var n,o;const{x:i,y:s,placement:r,middlewareData:a}=e,l=await hl(e,t);return r===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:i+l.x,y:s+l.y,data:{...l,placement:r}}}}},bl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i,platform:s}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:l={fn:y=>{let{x:_,y:w}=y;return{x:_,y:w}}},...c}=gt(t,e),u={x:n,y:o},d=await s.detectOverflow(e,c),m=Y(st(i)),h=_n(m);let f=u[h],p=u[m];if(r){const y=h==="y"?"top":"left",_=h==="y"?"bottom":"right",w=f+d[y],x=f-d[_];f=Ko(w,f,x)}if(a){const y=m==="y"?"top":"left",_=m==="y"?"bottom":"right",w=p+d[y],x=p-d[_];p=Ko(w,p,x)}const b=l.fn({...e,[h]:f,[m]:p});return{...b,data:{x:b.x-n,y:b.y-o,enabled:{[h]:r,[m]:a}}}}}},vl=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:n,y:o,placement:i,rects:s,middlewareData:r}=e,{offset:a=0,mainAxis:l=!0,crossAxis:c=!0}=gt(t,e),u={x:n,y:o},d=Y(i),m=_n(d);let h=u[m],f=u[d];const p=gt(a,e),b=typeof p=="number"?{mainAxis:p,crossAxis:0}:{mainAxis:0,crossAxis:0,...p};if(l){const w=m==="y"?"height":"width",x=s.reference[m]-s.floating[w]+b.mainAxis,C=s.reference[m]+s.reference[w]-b.mainAxis;h<x?h=x:h>C&&(h=C)}if(c){var y,_;const w=m==="y"?"width":"height",x=ei.has(st(i)),C=s.reference[d]-s.floating[w]+(x&&((y=r.offset)==null?void 0:y[d])||0)+(x?0:b.crossAxis),k=s.reference[d]+s.reference[w]+(x?0:((_=r.offset)==null?void 0:_[d])||0)-(x?b.crossAxis:0);f<C?f=C:f>k&&(f=k)}return{[m]:h,[d]:f}}}},yl=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:r,elements:a}=e,{apply:l=()=>{},...c}=gt(t,e),u=await r.detectOverflow(e,c),d=st(i),m=Wt(i),h=Y(i)==="y",{width:f,height:p}=s.floating;let b,y;d==="top"||d==="bottom"?(b=d,y=m===(await(r.isRTL==null?void 0:r.isRTL(a.floating))?"start":"end")?"left":"right"):(y=d,b=m==="end"?"top":"bottom");const _=p-u.top-u.bottom,w=f-u.left-u.right,x=Ot(p-u[b],_),C=Ot(f-u[y],w),k=!e.middlewareData.shift;let Z=x,St=C;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(St=w),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(Z=_),k&&!m){const lt=H(u.left,0),ee=H(u.right,0),ne=H(u.top,0),oe=H(u.bottom,0);h?St=f-2*(lt!==0||ee!==0?lt+ee:H(u.left,u.right)):Z=p-2*(ne!==0||oe!==0?ne+oe:H(u.top,u.bottom))}await l({...e,availableWidth:St,availableHeight:Z});const xt=await r.getDimensions(a.floating);return f!==xt.width||p!==xt.height?{reset:{rects:!0}}:{}}}};function Se(){return typeof window<"u"}function Dt(t){return ni(t)?(t.nodeName||"").toLowerCase():"#document"}function N(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function Q(t){var e;return(e=(ni(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function ni(t){return Se()?t instanceof Node||t instanceof N(t).Node:!1}function z(t){return Se()?t instanceof Element||t instanceof N(t).Element:!1}function rt(t){return Se()?t instanceof HTMLElement||t instanceof N(t).HTMLElement:!1}function oi(t){return!Se()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof N(t).ShadowRoot}function Vt(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=F(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&i!=="inline"&&i!=="contents"}function wl(t){return/^(table|td|th)$/.test(Dt(t))}function xe(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}const _l=/transform|translate|scale|rotate|perspective|filter/,Sl=/paint|layout|strict|content/,bt=t=>!!t&&t!=="none";let xn;function En(t){const e=z(t)?F(t):t;return bt(e.transform)||bt(e.translate)||bt(e.scale)||bt(e.rotate)||bt(e.perspective)||!$n()&&(bt(e.backdropFilter)||bt(e.filter))||_l.test(e.willChange||"")||Sl.test(e.contain||"")}function xl(t){let e=dt(t);for(;rt(e)&&!Pt(e);){if(En(e))return e;if(xe(e))return null;e=dt(e)}return null}function $n(){return xn==null&&(xn=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),xn}function Pt(t){return/^(html|body|#document)$/.test(Dt(t))}function F(t){return N(t).getComputedStyle(t)}function Ee(t){return z(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function dt(t){if(Dt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||oi(t)&&t.host||Q(t);return oi(e)?e.host:e}function ii(t){const e=dt(t);return Pt(e)?t.ownerDocument?t.ownerDocument.body:t.body:rt(e)&&Vt(e)?e:ii(e)}function Gt(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=ii(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),r=N(i);if(s){const a=Tn(r);return e.concat(r,r.visualViewport||[],Vt(i)?i:[],a&&n?Gt(a):[])}else return e.concat(i,Gt(i,[],n))}function Tn(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function si(t){const e=F(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=rt(t),s=i?t.offsetWidth:n,r=i?t.offsetHeight:o,a=ve(n)!==s||ve(o)!==r;return a&&(n=s,o=r),{width:n,height:o,$:a}}function Cn(t){return z(t)?t:t.contextElement}function Ht(t){const e=Cn(t);if(!rt(e))return K(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=si(e);let r=(s?ve(n.width):n.width)/o,a=(s?ve(n.height):n.height)/i;return(!r||!Number.isFinite(r))&&(r=1),(!a||!Number.isFinite(a))&&(a=1),{x:r,y:a}}const El=K(0);function ri(t){const e=N(t);return!$n()||!e.visualViewport?El:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $l(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==N(t)?!1:e}function vt(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Cn(t);let r=K(1);e&&(o?z(o)&&(r=Ht(o)):r=Ht(t));const a=$l(s,n,o)?ri(s):K(0);let l=(i.left+a.x)/r.x,c=(i.top+a.y)/r.y,u=i.width/r.x,d=i.height/r.y;if(s){const m=N(s),h=o&&z(o)?N(o):o;let f=m,p=Tn(f);for(;p&&o&&h!==f;){const b=Ht(p),y=p.getBoundingClientRect(),_=F(p),w=y.left+(p.clientLeft+parseFloat(_.paddingLeft))*b.x,x=y.top+(p.clientTop+parseFloat(_.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=w,c+=x,f=N(p),p=Tn(f)}}return _e({width:u,height:d,x:l,y:c})}function $e(t,e){const n=Ee(t).scrollLeft;return e?e.left+n:vt(Q(t)).left+n}function ai(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-$e(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function Tl(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",r=Q(o),a=e?xe(e.floating):!1;if(o===r||a&&s)return n;let l={scrollLeft:0,scrollTop:0},c=K(1);const u=K(0),d=rt(o);if((d||!d&&!s)&&((Dt(o)!=="body"||Vt(r))&&(l=Ee(o)),d)){const h=vt(o);c=Ht(o),u.x=h.x+o.clientLeft,u.y=h.y+o.clientTop}const m=r&&!d&&!s?ai(r,l):K(0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+m.x,y:n.y*c.y-l.scrollTop*c.y+u.y+m.y}}function Cl(t){return Array.from(t.getClientRects())}function Al(t){const e=Q(t),n=Ee(t),o=t.ownerDocument.body,i=H(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=H(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let r=-n.scrollLeft+$e(t);const a=-n.scrollTop;return F(o).direction==="rtl"&&(r+=H(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:r,y:a}}const li=25;function kl(t,e){const n=N(t),o=Q(t),i=n.visualViewport;let s=o.clientWidth,r=o.clientHeight,a=0,l=0;if(i){s=i.width,r=i.height;const u=$n();(!u||u&&e==="fixed")&&(a=i.offsetLeft,l=i.offsetTop)}const c=$e(o);if(c<=0){const u=o.ownerDocument,d=u.body,m=getComputedStyle(d),h=u.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,f=Math.abs(o.clientWidth-d.clientWidth-h);f<=li&&(s-=f)}else c<=li&&(s+=c);return{width:s,height:r,x:a,y:l}}function Ll(t,e){const n=vt(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=rt(t)?Ht(t):K(1),r=t.clientWidth*s.x,a=t.clientHeight*s.y,l=i*s.x,c=o*s.y;return{width:r,height:a,x:l,y:c}}function ci(t,e,n){let o;if(e==="viewport")o=kl(t,n);else if(e==="document")o=Al(Q(t));else if(z(e))o=Ll(e,n);else{const i=ri(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return _e(o)}function di(t,e){const n=dt(t);return n===e||!z(n)||Pt(n)?!1:F(n).position==="fixed"||di(n,e)}function Rl(t,e){const n=e.get(t);if(n)return n;let o=Gt(t,[],!1).filter(a=>z(a)&&Dt(a)!=="body"),i=null;const s=F(t).position==="fixed";let r=s?dt(t):t;for(;z(r)&&!Pt(r);){const a=F(r),l=En(r);!l&&a.position==="fixed"&&(i=null),(s?!l&&!i:!l&&a.position==="static"&&!!i&&(i.position==="absolute"||i.position==="fixed")||Vt(r)&&!l&&di(t,r))?o=o.filter(u=>u!==r):i=a,r=dt(r)}return e.set(t,o),o}function Ml(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const r=[...n==="clippingAncestors"?xe(e)?[]:Rl(e,this._c):[].concat(n),o],a=ci(e,r[0],i);let l=a.top,c=a.right,u=a.bottom,d=a.left;for(let m=1;m<r.length;m++){const h=ci(e,r[m],i);l=H(h.top,l),c=Ot(h.right,c),u=Ot(h.bottom,u),d=H(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Il(t){const{width:e,height:n}=si(t);return{width:e,height:n}}function Ol(t,e,n){const o=rt(e),i=Q(e),s=n==="fixed",r=vt(t,!0,s,e);let a={scrollLeft:0,scrollTop:0};const l=K(0);function c(){l.x=$e(i)}if(o||!o&&!s)if((Dt(e)!=="body"||Vt(i))&&(a=Ee(e)),o){const h=vt(e,!0,s,e);l.x=h.x+e.clientLeft,l.y=h.y+e.clientTop}else i&&c();s&&!o&&i&&c();const u=i&&!o&&!s?ai(i,a):K(0),d=r.left+a.scrollLeft-l.x-u.x,m=r.top+a.scrollTop-l.y-u.y;return{x:d,y:m,width:r.width,height:r.height}}function An(t){return F(t).position==="static"}function ui(t,e){if(!rt(t)||F(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return Q(t)===n&&(n=n.ownerDocument.body),n}function fi(t,e){const n=N(t);if(xe(t))return n;if(!rt(t)){let i=dt(t);for(;i&&!Pt(i);){if(z(i)&&!An(i))return i;i=dt(i)}return n}let o=ui(t,e);for(;o&&wl(o)&&An(o);)o=ui(o,e);return o&&Pt(o)&&An(o)&&!En(o)?n:o||xl(t)||n}const Dl=async function(t){const e=this.getOffsetParent||fi,n=this.getDimensions,o=await n(t.floating);return{reference:Ol(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Pl(t){return F(t).direction==="rtl"}const Hl={convertOffsetParentRelativeRectToViewportRelativeRect:Tl,getDocumentElement:Q,getClippingRect:Ml,getOffsetParent:fi,getElementRects:Dl,getClientRects:Cl,getDimensions:Il,getScale:Ht,isElement:z,isRTL:Pl};function mi(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Nl(t,e){let n=null,o;const i=Q(t);function s(){var a;clearTimeout(o),(a=n)==null||a.disconnect(),n=null}function r(a,l){a===void 0&&(a=!1),l===void 0&&(l=1),s();const c=t.getBoundingClientRect(),{left:u,top:d,width:m,height:h}=c;if(a||e(),!m||!h)return;const f=ye(d),p=ye(i.clientWidth-(u+m)),b=ye(i.clientHeight-(d+h)),y=ye(u),w={rootMargin:-f+"px "+-p+"px "+-b+"px "+-y+"px",threshold:H(0,Ot(1,l))||1};let x=!0;function C(k){const Z=k[0].intersectionRatio;if(Z!==l){if(!x)return r();Z?r(!1,Z):o=setTimeout(()=>{r(!1,1e-7)},1e3)}Z===1&&!mi(c,t.getBoundingClientRect())&&r(),x=!1}try{n=new IntersectionObserver(C,{...w,root:i.ownerDocument})}catch{n=new IntersectionObserver(C,w)}n.observe(t)}return r(!0),s}function ql(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:r=typeof ResizeObserver=="function",layoutShift:a=typeof IntersectionObserver=="function",animationFrame:l=!1}=o,c=Cn(t),u=i||s?[...c?Gt(c):[],...e?Gt(e):[]]:[];u.forEach(y=>{i&&y.addEventListener("scroll",n,{passive:!0}),s&&y.addEventListener("resize",n)});const d=c&&a?Nl(c,n):null;let m=-1,h=null;r&&(h=new ResizeObserver(y=>{let[_]=y;_&&_.target===c&&h&&e&&(h.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var w;(w=h)==null||w.observe(e)})),n()}),c&&!l&&h.observe(c),e&&h.observe(e));let f,p=l?vt(t):null;l&&b();function b(){const y=vt(t);p&&!mi(p,y)&&n(),p=y,f=requestAnimationFrame(b)}return n(),()=>{var y;u.forEach(_=>{i&&_.removeEventListener("scroll",n),s&&_.removeEventListener("resize",n)}),d?.(),(y=h)==null||y.disconnect(),h=null,l&&cancelAnimationFrame(f)}}const Bl=gl,Ul=bl,zl=pl,Fl=yl,Wl=vl,Vl=(t,e,n)=>{const o=new Map,i={platform:Hl,...n},s={...i.platform,_c:o};return ml(t,e,{...i,platform:s})},pi="data-placement",hi="data-autoplacement",jt=new Map;function Gl(t){let{newState:e,oldState:n,target:o,source:i=t.detail}=t,s=o instanceof HTMLElement&&v(o,"popover")!==null&&bn(o,"--_ds-floating");if(!s)return;if(e==="closed")return jt.get(o)?.();if(!i){let f=o.getRootNode(),p=`[popovertarget="${o.id}"],[commandfor="${o.id}"]`;i=o.id&&f?.querySelector?.(p)||void 0}if(!i||i===o||n&&n===e)return;let r=bn(o,"--_ds-floating-overscroll"),a=v(o,pi)||v(i,pi)||s,l=v(o,hi)||v(i,hi),c=parseFloat(getComputedStyle(o,"::before").height)||0,u=a.match(/left|right/gi)?"Height":"Width",d=i[`offset${u}`]/2+c;if(a==="none")return;let m={strategy:"absolute",placement:a,middleware:[Bl(c||0),Ul({padding:10,limiter:Wl({offset:{mainAxis:d}})}),Xl(),...l==="false"?[]:[zl({padding:10,crossAxis:!1})],...r?[Fl({apply({availableHeight:f}){r==="fit"&&(o.style.width=`${i.clientWidth}px`),o.style.maxHeight=`${Math.max(50,f-20)}px`}})]:[]]},h=ql(i,o,async()=>{if(!i?.isConnected)return jt.get(o)?.();let{x:f,y:p}=await Vl(i,o,m);o.style.translate=`${f}px ${p}px`});jt.set(o,()=>jt.delete(o)&&h())}let Te;const jl=({type:t})=>{if(t==="mousedown"&&(Te=!1),t==="scroll"&&Te===!1&&(Te=!0),t==="mouseup"&&Te)for(let[e]of jt)e.showPopover()};et("popover",()=>[M(document,"mousedown scroll mouseup",jl,!0),M(document,"toggle ds-toggle-source",Gl,B)]);const Xl=()=>({name:"arrowPseudo",fn(t){let e=t.elements.floating,n=t.rects.reference,o=`${Math.round(n.width/2+n.x-t.x)}px`,i=`${Math.round(n.height/2+n.y-t.y)}px`;return e.style.setProperty("--_ds-floating-arrow-x",o),e.style.setProperty("--_ds-floating-arrow-y",i),v(e,"data-floating",t.placement),t}}),kn=t=>(t instanceof HTMLSelectElement||t instanceof HTMLInputElement)&&(t.hasAttribute("readonly")||v(t,"aria-readonly")==="true"),Kl=t=>{if(t.key!=="Tab"&&kn(t.target)){let e=t.key?.startsWith("Arrow"),n=t.altKey||t.ctrlKey||t.metaKey;if((e||!n)&&t.preventDefault(),e&&v(t.target,"type")==="radio"){let o=document.querySelectorAll(`input[name="${t.target.name}"]`),i=t.key?.match(/Arrow(Right|Down)/)?1:-1;o[(o.length+[...o].indexOf(t.target)+i)%o.length]?.focus()}}},Yl=t=>{let e=t.target?.closest?.("label")?.control||t.target;kn(e)&&(t.preventDefault(),e.focus())},Ql=t=>{t.target instanceof HTMLSelectElement&&kn(t.target)&&t.preventDefault()};et("readonly",()=>[M(document,"keydown",Kl),M(document,"click",Yl),M(document,"mousedown",Ql)]);const gi="aria-label",Ce="data-toggle-group",bi=`[${Ce}]`,Jl=()=>{for(let t of document.querySelectorAll(bi))v(t,"aria-label",It(t,Ce))},Zl=t=>{let{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(bi);if(o&&(!v(o,gi)&&!v(o,"aria-labelledby")&&v(o,gi,It(o,Ce)),e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault?.();let i=[...o.getElementsByTagName("input")],s=i.indexOf(n),r=e.match(/Arrow(Right|Down)/)?1:-1,a=s;for(let l=0;l<i.length;l++)if(a=(i.length+a+r)%i.length,!i[a]?.disabled){i[a]?.focus();break}}};et("toggle-group",()=>[M(document,"keydown",Zl),nt(document,Jl,{attributeFilter:[Ce],attributes:!0,childList:!0,subtree:!0})]);let A,Xt,Ae=!1,Ln=0,Rn=0;const tc=j()&&/iPad|iPhone|iPod/.test(navigator.userAgent),Nt="data-tooltip",Mn="data-color",vi="aria-label",yi="aria-description",ec=`[${Mn}]`,nc=`[${Nt}]`,In="data-color-scheme",oc=`[${In}]`,wi=t=>{t&&!(t instanceof HTMLElement)&&Mt("setTooltipElement expects an HTMLElement, got: ",t),clearTimeout(Rn),clearTimeout(Ln),Xt=void 0,Ae=!1,A=t||void 0},ic=()=>{for(let t of document.querySelectorAll(nc)){let e=It(t,Nt);if(!e)return;if(e!==(t.getAttribute(vi)||t.getAttribute(yi))){let i=v(t,"role")!=="img"&&t.textContent?.trim();v(t,Nt,e),v(t,vi,i?null:e),v(t,yi,i?e:null),t.matches("a,button,input,label,select,textarea,[tabindex]")||Mt('Missing tabindex="0" attribute on: ',t)}let n=t===Xt&&A?.offsetHeight&&A?.offsetWidth,o=n&&e&&A?.textContent!==e;n&&o&&(A&&(A.textContent=e),document.activeElement===t&&yn(e))}},_i=({type:t,target:e})=>{if(clearTimeout(Ln),e===A)return;if(t==="mouseover"&&!Ae&&!tc){Ln=setTimeout(_i,300,{target:e});return}let n=e?.closest?.(`[${Nt}]`);if(n===Xt)return;if(!n)return Si();A||=Wo("div",{class:"ds-tooltip"}),A.isConnected||document.body.appendChild(A);let o=n.closest(ec),i=n.closest(oc),s=o!==i&&o?.contains(i);clearTimeout(Rn),v(A,"popover","manual"),v(A,In,i?.getAttribute(In)||null),v(A,Mn,s&&o?.getAttribute(Mn)||null),A.textContent=v(n,Nt),A.showPopover(),A.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:n})),Ae=!0,Xt=n},Si=()=>A?.isConnected&&A.popover&&A.hidePopover(),xi=t=>{if(t?.type==="keydown")return t?.key==="Escape"&&Si();t?t.target===A&&t.newState==="closed"&&(Xt=void 0,Rn=setTimeout(xi,300)):Ae=!1};et("tooltip",()=>[M(document,"blur focus mouseover",_i,B),M(document,"toggle keydown",xi,B),nt(document,ic,{attributeFilter:[Nt],attributes:!0,childList:!0,subtree:!0})]);const On="aria-label";var Ei=class extends ge{_items;_label=null;_unresize;_unmutate;static get observedAttributes(){return[On]}connectedCallback(){let e=Fo(()=>Dn(this),100);this._label=It(this,On),this._items=this.getElementsByTagName("a"),this._unresize=M(window,"resize",e),this._unmutate=nt(this,Dn,{childList:!0,subtree:!0})}attributeChangedCallback(e,n,o){!this._unmutate||!o||(this._label=o,Dn(this))}disconnectedCallback(){this._unresize?.(),this._unmutate?.(),this._unresize=this._unmutate=this._items=void 0}};const Dn=t=>{let e=t._items?.[t._items.length-1],n=e?.parentElement===t?null:e,o=!n?.offsetHeight;v(t,"role",o?null:"navigation"),v(t,On,o?null:t._label);for(let i of t._items||[])v(i,"aria-current",i===n?"page":null)};ot.define("ds-breadcrumbs",Ei);var $i=class extends ge{_unmutate;connectedCallback(){M(this,"animationend",this,B),v(this,"tabindex","-1"),this._unmutate=nt(this,sc,{childList:!0,subtree:!0}),this.focus()}handleEvent({target:e}){e===this&&this.focus()}disconnectedCallback(){vn(this,"animationend",this,B),this._unmutate?.(),this._unmutate=void 0}};const sc=t=>{let e=t.querySelector("h2,h3,h4,h5,h6");e&&v(t,"aria-labelledby",it(e))};ot.define("ds-error-summary",$i);const Pn="aria-invalid",Ti="aria-describedby",Ci="data-indeterminate",rc=za()?800:200,Ai=new WeakMap,Kt=new Map,Hn=new WeakSet,ac=(t,e=[])=>{for(let{target:n}of e){let o=n instanceof HTMLFieldSetElement;for(let[i]of Kt)(o?n.contains(i):i.contains(n))&&ki(i)}},ki=t=>{let e=[],n=[],o=Kt.get(t)||[],i,s,r=!1,a=!1;for(let m of t.getElementsByTagName("*"))if(m instanceof HTMLLabelElement&&e.push(m),!m.hidden)if(dc(m))i?Mt("Fields should only have one input element. Use <fieldset> to group multiple fields:",t):i=m;else{let h=m.getAttribute("data-field");h==="counter"&&(s=m),h==="validation"?(n.unshift(it(m)),r=!0,a||=Ri(m)):h&&n.push(it(m))}if(!i)return;s&&Ai.set(i,s);for(let m of e)v(m,"for",it(i));let l=t.closest("fieldset")?.querySelector(':scope > [data-field="validation"]');l&&!l?.hidden&&(r=!0,a||=Ri(l),n.unshift(it(l)));let c=v(i,Ci);c&&(i.indeterminate=c==="true"),(i.type==="radio"||i.type==="checkbox")&&v(t,"data-clickdelegatefor",it(i));let u=v(i,Ti)?.trim().split(/\s+/)?.filter(m=>!o.includes(m))||[];v(i,Ti,[...n,...u].join(" ")||null),Kt.set(t,n);let d=Hn.has(i);r&&!d&&!i.hasAttribute(Pn)?(v(i,Pn,"true"),Hn.add(i)):!r&&d&&(v(i,Pn,null),Hn.delete(i)),Li(i)},lc={over:"%d tegn for mye",under:"%d tegn igjen"},Li=t=>{let e=t.target||t,n=Ai.get(e);if(n?.isConnected){let o=(Number(v(n,"data-limit"))||0)-e.value.length,i=o<0?"over":"under",s=(It(n,`data-${i}`)||lc[i])?.replace("%d",`${Math.abs(o)}`);v(n,"data-label",s),v(n,"data-state",i),v(n,"data-color",o<0?"danger":null),t.type==="input"&&s&&cc(e,s)}e instanceof HTMLTextAreaElement&&(e.style.setProperty("--_ds-field-sizing","auto"),e.style.setProperty("--_ds-field-sizing",`${e.scrollHeight}px`))},cc=Fo((t,e)=>{document.activeElement===t&&yn(e)},rc),Ri=t=>t.getAttribute("data-color")!=="success",dc=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement)&&t.type!=="hidden";var ke=class extends ge{connectedCallback(){Kt.set(this,[]),ki(this)}disconnectedCallback(){Kt.delete(this)}};ot.define("ds-field",ke),et("field",()=>[M(document,"input",Li,B),nt(document,ac,{attributeFilter:["data-field","data-limit","hidden","id","value",Ci],attributes:!0,childList:!0,subtree:!0})]);const Nn="aria-label",Le="data-current",Re="data-total",Mi="data-href",Ii=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:uc(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});var Oi=class extends ge{_unmutate;_render;static get observedAttributes(){return[Nn,Le,Re,Mi]}connectedCallback(){let t=v(this,Re),e=v(this,Le);e&&!t&&Mt(`Missing ${Re} attribute on:`,this),t&&!e&&Mt(`Missing ${Le} attribute on:`,this),v(this,Nn,It(this,Nn)),v(this,"role","navigation"),this._unmutate=nt(this,Di,{childList:!0,subtree:!0})}attributeChangedCallback(){this._unmutate&&Di(this)}disconnectedCallback(){this._unmutate?.(),this._unmutate=this._render=void 0}};const Di=t=>{let e=Number(v(t,Le)),n=Number(v(t,Re));if(e&&n){let o=t.querySelectorAll("button,a"),i=o.length-2,s=v(t,Mi),{next:r,prev:a,pages:l}=Ii({current:e,total:n,show:i});o.forEach((c,u)=>{let d=u?o[u+1]?l[u-1]?.page:r:a;v(c,"aria-current",l[u-1]?.current?"true":null),v(c,"aria-label",`${d??"hidden"}`),v(c,"role",d?null:"none"),v(c,"tabindex",d?null:"-1"),c instanceof HTMLButtonElement&&v(c,"value",`${d}`),s&&c instanceof HTMLAnchorElement&&v(c,"href",s.replace("%d",`${d}`))})}},uc=(t,e,n=1/0)=>{let o=(n-1)/2,i=Math.max(Math.min(t-Math.floor(o),e-n+1),1),s=Math.min(Math.max(t+Math.ceil(o),n),e),r=Array.from({length:s+1-i},(a,l)=>l+i);return n>4&&i>1&&r.splice(0,2,1,0),n>3&&s<e&&r.splice(-2,2,0,e),r};ot.define("ds-pagination",Oi);var Pi=class extends en{_unmutate;connectedCallback(){super.connectedCallback(),this._unmutate=nt(this,fc,{childList:!0}),M(this,"toggle",Hi,B)}disconnectedCallback(){super.disconnectedCallback(),this._unmutate?.(),this._unmutate=void 0,vn(this,"toggle",Hi,B)}};const fc=({control:t,list:e})=>{t&&!t.placeholder&&v(t,"placeholder"," "),t&&v(t,"popovertarget",it(e)||null),e&&v(e,"popover","manual"),e&&v(e,"data-is-floating","true")},Hi=t=>{let e=t.currentTarget,n=t.newState==="open"&&e.control;n&&e.list?.dispatchEvent(new CustomEvent("ds-toggle-source",{detail:n}))};ot.define("ds-suggestion",Pi);var Ni=class extends me{},qi=class extends pe{},Bi=class extends fn{},Ui=class extends mn{};ot.define("ds-tabs",Ni),ot.define("ds-tablist",qi),ot.define("ds-tab",Bi),ot.define("ds-tabpanel",Ui);var qn=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",zi=qn(),Fi=zi?navigator.userAgent:"",mc=/android/i.test(Fi),pc=/firefox/i.test(Fi),Wi;zi&&/^Mac/i.test(((Wi=navigator.userAgentData)==null?void 0:Wi.platform)||navigator.platform);var Vi=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),hc=(t,e,n)=>{const o=new MutationObserver(s=>{if(!qn()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Gi="__uDetailsPolyfillSummarys";if(qn()&&mc&&pc&&!window[Gi]){const t=document.getElementsByTagName("summary"),e=()=>{for(const n of t){const o=n.parentElement;Vi(n,"role","button"),Vi(n,"aria-expanded",`${!!o?.open}`)}};window[Gi]=hc(document,e,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})}var gc=Object.defineProperty,ji=Object.getOwnPropertySymbols,bc=Object.prototype.hasOwnProperty,vc=Object.prototype.propertyIsEnumerable,Xi=(t,e,n)=>e in t?gc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yc=(t,e)=>{for(var n in e||(e={}))bc.call(e,n)&&Xi(t,n,e[n]);if(ji)for(var n of ji(e))vc.call(e,n)&&Xi(t,n,e[n]);return t},Me=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ie=Me(),Bn=Ie?navigator.userAgent:"",Oe=/android/i.test(Bn),wc=/firefox/i.test(Bn),_c=/iPad|iPhone|iPod/.test(Bn),Ki,Sc=Ie&&/^Mac/i.test(((Ki=navigator.userAgentData)==null?void 0:Ki.platform)||navigator.platform),xc=Ie&&window.CSSStyleSheet&&document.adoptedStyleSheets,Ec={once:!0,capture:!0,passive:!0},$c=":host(:not([hidden])) { display: block }",Tc="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Cc=`${Oe?"data":"aria"}-multiselectable`,Yi=typeof HTMLElement>"u"?class{}:HTMLElement,$=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),Un=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>De(t,...e)},De=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},Ac=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(zn("slot")),!n.querySelector("style"))if(!xc)n.append(zn("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},kc=(t,e,n)=>{const o=new MutationObserver(s=>{if(!Me()||!t.isConnected)return i();e(t,s)}),i=Object.assign(()=>o.disconnect(),{takeRecords:()=>o.takeRecords()});return e(t),o.observe(t,n),i},Pe=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},Qi=t=>Pe(t).activeElement,Yt=t=>{if(!t||!Ie)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},zn=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))$(o,i,s);return o},Ji={define:(t,e)=>!Me()||window.customElements.get(t)||window.customElements.define(t,e)},Lc=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},r=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(r,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Fn=!1,Wn=t=>(t?.type==="pointerup"&&(Fn=!1),t?.type==="pointerdown"&&(Fn=!0,Un(document,"pointerup",Wn,Ec)),Fn),Rc=(t,e="<slot></slot>")=>`<template shadowrootmode="open">${e}<style>${t}</style></template>`,Mc=t=>{const e=$(t,"form");$(t,"form","#"),setTimeout(Ic,0,t,e)},Ic=(t,e)=>$(t,"form",e),J,Oc=0,Zi=0,Vn=t=>{clearTimeout(Zi),J||(J=zn("div",{"aria-live":"assertive"}),J.style.overflow="hidden",J.style.position="fixed",J.style.whiteSpace="nowrap",J.style.width="1px"),J.isConnected||document.body.append(J),t===""&&(J.textContent=""),t&&(J.textContent=`${t}${Oc++%2?" ":""}`,Zi=setTimeout(Vn,!Sc&&wc?2e3:300,""))},Gn="disabled",Qt="selected",Dc=class extends Yi{constructor(){super(...arguments),this._skipAttrChange=!1}static get observedAttributes(){return["id",Gn,Qt]}connectedCallback(){Oe&&(this.tabIndex=-1),this.hasAttribute("role")||$(this,"role","option"),$(this,"aria-disabled",`${this.disabled}`),$(this,"aria-selected",`${this.selected}`),Yt(this)}attributeChangedCallback(t){this._skipAttrChange||(this._skipAttrChange=!0,t==="id"?Yt(this):$(this,`aria-${t}`,`${this[t]}`),this._skipAttrChange=!1)}get defaultSelected(){return this[Qt]}set defaultSelected(t){this[Qt]=t}get disabled(){return $(this,Gn)!==null}set disabled(t){$(this,Gn,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=$(this,"label"))!=null?t:this.text}set label(t){$(this,"label",t)}get selected(){return $(this,Qt)!==null}set selected(t){$(this,Qt,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=$(this,"value"))!=null?t:this.text}set value(t){$(this,"value",t)}};Ji.define("u-option",Dc);var ts="data-activedescendant",He="aria-hidden",jn=`${$c}
|
|
24
16
|
::slotted([role="option"]) { display: block; cursor: pointer }
|
|
25
|
-
::slotted([role="option"]
|
|
26
|
-
::slotted([role="option"][aria-hidden="true"]),
|
|
27
|
-
|
|
28
|
-
::slotted([role="option"][hidden]) { display: none !important }`,fu=du(Sn),ea,oa=0,pu=vn||Qe,na="click,focusout,input,keydown,mousedown,mouseup",ia="focus,focusin,blur,focusout",to={singular:"%d hit",plural:"%d hits"},ra=class extends Yr{constructor(){super(),this._texts=ou({},to),this._value="",this._of="/",au(this,Sn)}static get observedAttributes(){return["id",...Object.keys(to).map(e=>`data-sr-${e}`)]}connectedCallback(){this.hidden=!0,this._root=Jr(this),k(this,"role","listbox"),k(this,"tabindex","-1"),ie(this._root,"focusin",this),ie(this._root,"focus",this,!0),gn(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){Je(this._root||this,"focus",this,!0),Je(this._root||this,"focusin",this),gn(this,!1),xn(this),this._root=void 0}attributeChangedCallback(e,o,n){const i=e?.split("data-sr-")[1],r=`input[list="${this.id}"]`;if(to[i])this._texts[i]=n||to[i];else if(this._root){this._input&&$n(this,this._input);for(const a of this._root.querySelectorAll(r))$n(this,a)}}handleEvent(e){const{target:o,type:n}=e;e.defaultPrevented||(n==="click"&&vu(this,e),(n==="focus"||n==="focusin")&&mu(this,e),(n==="blur"||n==="focusout")&&hu(this,e),n==="keydown"&&gu(this,e),n==="mousedown"&&this.contains(o)&&wn(e),(n==="mutation"||n==="input")&&(clearTimeout(oa),oa=setTimeout(la,0,this,e)))}get options(){var e;if(!this._options){const o=(e=this.querySelector('[role="option"],option'))==null?void 0:e.nodeName;o&&(this._options=this.getElementsByTagName(o))}return this._options||this.getElementsByTagName("option")}},aa=t=>t?.disabled||t?.readOnly||!1,ae=(t,e)=>{var o,n,i;if(t.hidden!==e)return;t.hidden=aa(t?._input)||!e,(o=gn(t))==null||o.takeRecords();const r=t.isConnected&&t.popover&&((n=t._input)==null?void 0:n.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&$n(t,t._input,e),r&&k(t,"popover","manual"),r&&t.togglePopover(e),e&&la(t)},xn=t=>{t._input&&(Je(t._input||t,ia,t),Je(t._root||t,na,t),ae(t,!1),t._input=void 0)},$n=(t,e,o=!1)=>{t.popover&&k(e,"popovertarget",bn(t)),ie(e,ia,t,!0),k(e,"aria-autocomplete","list"),k(e,"aria-controls",bn(t)),k(e,"aria-expanded",`${!pu||o}`),k(e,"autocomplete","off"),k(e,"role",aa(e)?null:"combobox")},mu=(t,e)=>{var o;const n=e.target instanceof HTMLInputElement;n&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&n&&e.target.list===t&&(t._input&&xn(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),k(t,nu,bn((o=t._input.labels)==null?void 0:o[0])),ie(t._root||t,na,t),ae(t,k(t._input,"inputmode")!=="none"),ta())},hu=(t,e)=>{!Qe&&!wn()&&t._input&&setTimeout(sa,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},sa=t=>{var e;const o=((e=t._root)==null?void 0:e.activeElement)||null,n=t._input;n&&n!==o&&!t.contains(o)&&(n.dispatchEvent(new FocusEvent("blur",{relatedTarget:o})),n.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:o})),xn(t))},vu=(t,{target:e})=>{var o;if(!t._input||t._input===e)return ae(t,!0);for(const n of t.options)if(n.contains(e))return k(t,"aria-multiselectable")!=="true"&&((o=t._input)==null||o.focus(),ae(t,!1)),cu(t._input,n.value);Qe&&sa(t)},gu=(t,e)=>{var o;const{key:n,target:i,altKey:r,ctrlKey:a,shiftKey:s,metaKey:l}=e,c=n==="Escape"||n==="Esc";if(r||a||l||s||n==="Tab")return;c&&!t.hidden&&e?.preventDefault(),ae(t,!c);const d=[...t.options].filter(h=>k(h,"aria-hidden")!=="true"&&h.offsetHeight),u=d.indexOf(i);let f=-1;if(n==="ArrowDown"&&(f=(u+1)%d.length),n==="ArrowUp"&&(f=(~u?u:d.length)-1),~u&&((n==="Home"||n==="PageUp")&&(f=0),(n==="End"||n==="PageDown")&&(f=d.length-1),n==="Enter"))return d[u].click(),e.preventDefault();if(d[f])for(const h of d)h.tabIndex=-1;d[f]&&e.preventDefault(),(o=d[f]||t._input)==null||o.focus(),!d[f]&&n==="ArrowUp"&&setTimeout(()=>{var h;return(h=t._input)==null?void 0:h.setSelectionRange(999,999)})},la=(t,e)=>{const{_texts:o,_root:n,_input:i,options:r}=t,a=i?.value.toLowerCase().trim()||"",s=!t.hasAttribute("data-nofilter"),l=[],c=[];for(const f of r)(f.disabled||f.hidden||s&&!f.label.toLowerCase().includes(a)?l:c).push(f);for(const f of l)k(f,"aria-hidden","true");for(const f of c)k(f,"aria-hidden","false");const d=c.length;clearTimeout(ea),e?.type==="input"&&a!==t._value&&(ea=setTimeout(()=>{const f=`${!d&&t.innerText.trim()||`${o[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&n?.activeElement===i&&ta(f),t._value=a},1e3));let u=0;if(vn)for(const f of c)k(f,"title",`${++u} ${t._of} ${d}`)};ne&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Jr(this).getElementById(k(this,"list")||"")}}),Zr.define("u-datalist",ra),Q()&&!ec()&&oc();const bu="3.2.2",ca="_alert_14zqc_1 _ds-alert_w6yvp_3",da="_app_14zqc_1",ua="_sticky_14zqc_1",fa="_avatar_14zqc_1 _ds-avatar_w6yvp_1",pa="_badge_14zqc_1",ma="_breadcrumbs_14zqc_1 _ds-breadcrumbs_w6yvp_5",ha="_button_14zqc_1 _ds-button_w6yvp_1",va="_card_14zqc_1",ga="_group_14zqc_1",ba="_chip_14zqc_1 _ds-chip_w6yvp_5",ya="_details_14zqc_1 _ds-details_w6yvp_3",_a="_dialog_14zqc_1 _ds-dialog_w6yvp_5",wa="__drawer_14zqc_1",Ea="_divider_14zqc_1",Sa="_errorsummary_14zqc_1 _ds-error-summary_w6yvp_5",xa="_field_14zqc_1 _ds-field_w6yvp_1",$a="_suggestion_14zqc_1 _ds-suggestion_w6yvp_5",Ta="_affixes_14zqc_1 _ds-field-affixes_w6yvp_3",Ca="_fieldset_14zqc_1 _ds-fieldset_w6yvp_3",Aa="_fileupload_14zqc_1",ka="_helptext_14zqc_1 _ds-focus_w6yvp_1",La="_input_14zqc_1 _ds-input_w6yvp_1",Ia="_law_14zqc_1",Ma="_grid_14zqc_1",Oa="_flex_14zqc_1",Ra="_link_14zqc_1",Da="_logo_14zqc_1",Pa="__logo_14zqc_1",Ha="_pagination_14zqc_1 _ds-pagination_w6yvp_5",Na="_popover_14zqc_1 _ds-popover_w6yvp_3",Ba="_print_14zqc_1",qa="_progress_14zqc_1",Ua="__indeterminate_14zqc_1",Fa="_skeleton_14zqc_1 _ds-skeleton_w6yvp_5",za="__skeleton_14zqc_1",Va="_spinner_14zqc_1",Wa="_steps_14zqc_1",Ga="_table_14zqc_1 _ds-table_w6yvp_5",ja="__scrollShadow_14zqc_1",Ka="_tabs_14zqc_1 _ds-tabs_w6yvp_5",Xa="__scrollMask_14zqc_1",Ya="_tag_14zqc_1 _ds-tag_w6yvp_5",Qa="_toast_14zqc_1",Ja="__toastClose_14zqc_1",Za="__toastOpen_14zqc_1",ts="__toastTimeout_14zqc_1",es="_togglegroup_14zqc_1 _ds-toggle-group_w6yvp_5",os="__tooltip_14zqc_1 _ds-tooltip_w6yvp_5",ns="_heading_14zqc_1 _ds-heading_w6yvp_1",is="_ingress_14zqc_1",rs="_muted_14zqc_1",as="_info_14zqc_1",ss="_prose_14zqc_1",ls="_validation_14zqc_1 _ds-validation-message_w6yvp_1",cs="_body_14zqc_162",ds="__checked_14zqc_1",L={alert:ca,app:da,sticky:ua,avatar:fa,badge:pa,breadcrumbs:ma,button:ha,card:va,group:ga,chip:ba,details:ya,dialog:_a,_drawer:wa,divider:Ea,errorsummary:Sa,field:xa,suggestion:$a,affixes:Ta,fieldset:Ca,fileupload:Aa,helptext:ka,input:La,law:Ia,grid:Ma,flex:Oa,link:Ra,logo:Da,_logo:Pa,pagination:Ha,popover:Na,print:Ba,progress:qa,_indeterminate:Ua,skeleton:Fa,_skeleton:za,spinner:Va,steps:Wa,table:Ga,_scrollShadow:ja,tabs:Ka,_scrollMask:Xa,tag:Ya,toast:Qa,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,togglegroup:es,_tooltip:os,heading:ns,ingress:is,muted:rs,info:as,prose:ss,validation:ls,body:cs,_checked:ds},yu=Object.freeze(Object.defineProperty({__proto__:null,_checked:ds,_drawer:wa,_indeterminate:Ua,_logo:Pa,_scrollMask:Xa,_scrollShadow:ja,_skeleton:za,_toastClose:Ja,_toastOpen:Za,_toastTimeout:ts,_tooltip:os,affixes:Ta,alert:ca,app:da,avatar:fa,badge:pa,body:cs,breadcrumbs:ma,button:ha,card:va,chip:ba,default:L,details:ya,dialog:_a,divider:Ea,errorsummary:Sa,field:xa,fieldset:Ca,fileupload:Aa,flex:Oa,grid:Ma,group:ga,heading:ns,helptext:ka,info:as,ingress:is,input:La,law:Ia,link:Ra,logo:Da,muted:rs,pagination:Ha,popover:Na,print:Ba,progress:qa,prose:ss,skeleton:Fa,spinner:Va,steps:Wa,sticky:ua,suggestion:$a,table:Ga,tabs:Ka,tag:Ya,toast:Qa,togglegroup:es,validation:ls},Symbol.toStringTag,{value:"Module"}));function us(t){var e,o,n="";if(typeof t=="string"||typeof t=="number")n+=t;else if(typeof t=="object")if(Array.isArray(t)){var i=t.length;for(e=0;e<i;e++)t[e]&&(o=us(t[e]))&&(n&&(n+=" "),n+=o)}else for(o in t)t[o]&&(n&&(n+=" "),n+=o);return n}function _u(){for(var t,e,o=0,n="",i=arguments.length;o<i;o++)(t=arguments[o])&&(e=us(t))&&(n&&(n+=" "),n+=e);return n}const se={capture:!0,passive:!0},j=()=>typeof window<"u"&&typeof document<"u",$t=t=>j()?document.getElementsByClassName(L[t].split(" ")[0]):[];function Gt(t,e){let o;return function(...n){clearTimeout(o),o=setTimeout(()=>t.apply(this,n),e)}}const g=(t,e,o)=>o===void 0?t.getAttribute(e)??null:(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),D=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.addEventListener(i,...n);return()=>fs(t,...e)},fs=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.removeEventListener(i,...n)},mt=(t,e)=>{if(!j())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const o=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(n=>n()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?D(window,"load",o):document.fonts?.ready?.then(o)||setTimeout(o,0)},eo=(t,e,o)=>{let n=0;const i=()=>{if(!t.isConnected)return r();e(a),a.takeRecords(),n=0},r=()=>a?.disconnect?.(),a=new MutationObserver(()=>{n||(n=requestAnimationFrame(i))});return a.observe(t,o),i(),r},O=(t,e,o)=>{const n=document.createElement(t);if(o&&(n.textContent=o),e)for(const[i,r]of Object.entries(e))g(n,i,r);return n},wu=typeof HTMLElement>"u"?class{}:HTMLElement,Eu=(t,e)=>!j()||window.customElements.get(t)||window.customElements.define(t,e),Su=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,xu=(t,e)=>{if(!Su)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(O("slot"));const o=new CSSStyleSheet;o.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[o]},$u=`[data-command="toggle-app-expanded"],.${L.app.split(" ")[0]} > [command="show-modal"]`,Tu=`.${L.breadcrumbs.split(" ")[0]}`,Cu=`.${L.card.split(" ")[0]}`,ps=`.${L.chip.split(" ")[0]}`,Au=`.${L.helptext.split(" ")[0]}`,ku=`.${L.pagination.split(" ")[0]}`,Lu='summary,u-summary,a,button,[role="tab"],[role="button"]',Tn="mattilsynet.matomo.cloud",Iu=["setCustomUrl","setDocumentTitle","setReferrerUrl"],K="mtds-analytics-banner",Mu="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ms(t,e={}){if(j()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Tn}/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:o,enabled:n,matomoId:i,matomoTagManagerId:r}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),n){o!=="custom"&&Ou();const a=r?`https://cdn.matomo.cloud/${Tn}/container_${r}.js`:`https://cdn.matomo.cloud/${Tn}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append(O("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics ${t}:`,e);if(t==="pageview"){const{url:o,title:n}=e;window._paq.push(["setCustomUrl",o||location.href]),window._paq.push(["setDocumentTitle",n||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:o,action:n,name:i,value:r}=e,a=["trackEvent",o,n,i,r];let s=location.href;window._paq.push([function(){s=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",s.split("#")[0]]),window._paq.push(a.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",s])}else if(t==="search"){const{query:o,category:n=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",o,n,i])}else if(t==="matomo"){const o=e;Iu.includes(o?.[0])&&typeof o[1]!="string"&&(o[1]=`${o[1]??""}`),window._paq.push(o)}}}}function Ou(){if(document.getElementById(K)||window.localStorage.getItem(K))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${K}" data-analytics="ignore"><style>
|
|
29
|
-
#${
|
|
30
|
-
#${
|
|
31
|
-
#${
|
|
32
|
-
#${
|
|
33
|
-
#${K} button:active { background: #054449; scale: .9 }
|
|
34
|
-
#${K} p { margin: 0 .25em }
|
|
17
|
+
::slotted([role="option"][${ts}]) { ${Tc} }
|
|
18
|
+
::slotted([role="option"]:is([${He}="true"], [disabled], [hidden])) { display: none !important }`,Pc=Rc(jn),Xn,es="focus click keydown",Kn="focusout input pointerdown",Ne={of:"of",plural:"%d hits",singular:"%d hit"},ns=class extends Yi{constructor(){super(),this._texts=yc({},Ne),Ac(this,jn)}static get observedAttributes(){return["id",...Object.keys(Ne).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=Pe(this),$(this,"hidden",""),$(this,"role","listbox"),$(this,"tabindex","-1"),Un(this._root,es,this,!0),this._umutate=kc(this,ss,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&De(this._root,es,this,!0),this._root&&De(this._root,Kn,this),qe(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1];if(Ne[o])this._texts[o]=n||Ne[o];else if(this.id){const i=`input[list="${this.id}"]`,s=Pe(this).querySelector(i);s&&qe(this,s)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Qn(this,t),t.type==="focusout"&&Nc(this,t),t.type==="click"&&Bc(this,t),t.type==="input"&&ss(this),t.type==="keydown"&&Uc(this,t),t.type==="pointerdown"&&qc(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},os=t=>t.disabled||t.readOnly,Yn=t=>t instanceof HTMLInputElement,Hc=t=>$(t,He)!=="true"&&t.clientHeight,Jt=(t,e)=>{t._input&&$(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||is(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Xn)),t.hidden=!e)},is=(t,e)=>{t._input&&$(t._input,"aria-activedescendant",Yt(e));for(const n of t.options)$(n,ts,n===e?"":null);e?.scrollIntoView({block:"nearest"})},qe=(t,e)=>{const n=e||t._input;n&&(t.popover&&($(t,"popover","manual"),$(n,"popovertarget",e&&Yt(t))),$(n,"aria-autocomplete",e&&"list"),$(n,"aria-controls",e&&Yt(t)),$(n,"autocomplete",e&&"off"),$(n,"enterkeyhint","done"),$(n,"role",e&&!os(n)?"combobox":null))},Qn=(t,{target:e})=>{var n,o;if(t._input!==e)if(Yn(e)&&e.getAttribute("list")===t.id){if(qe(t,null),qe(t,e),os(e))return;t._root&&Un(t._root,Kn,t),$(t,"aria-label",((o=(n=e.labels)==null?void 0:n[0])==null?void 0:o.textContent.trim())||null),Vn(),t._input=e,Oe&&Jt(t,!0)}else Jn(t)},Nc=(t,e)=>{Wn()?e.stopImmediatePropagation():Oe||setTimeout(Jn,0,t,e)},Jn=t=>{const e=Qi(t);t._input===e||t.contains(e)||(t._root&&De(t._root,Kn,t),Jt(t,!1),t._input=void 0)},qc=(t,e)=>t.contains(e.target)&&Wn(e),Bc=(t,e)=>{var n;if(Yn(e.target)&&Qn(t,e),t._input===e.target)return Jt(t,!0);if(!t.contains(e.target))return Jn(t);for(const o of t.options)if(o.contains(e.target))return(n=t._input)==null||n.focus(),t._input&&Lc(t._input,o.value),Jt(t,$(t,Cc)==="true")},Uc=(t,e)=>{if(Yn(e.target)&&Qn(t,e),t._input!==e.target)return;const{key:n,ctrlKey:o,metaKey:i,shiftKey:s,altKey:r}=e;if(o||i||s||n==="Tab"||r&&!n.startsWith("Arrow"))return;n==="Escape"&&!t.hidden&&e.preventDefault(),Jt(t,n!=="Escape");const a=n==="Enter",l=$(t._input,"aria-activedescendant"),c=[];let u=-1,d=-1;for(const m of t.options)Hc(m)&&(c.push(m),m.id===l&&(u=c.length-1));!r&&n==="ArrowDown"&&(d=(u+1)%c.length),!r&&n==="ArrowUp"&&(d=(u||c.length)-1),~u&&((n==="Home"||n==="PageUp")&&(d=0),(n==="End"||n==="PageDown")&&(d=c.length-1),a&&(d=u)),c[d]&&(e.preventDefault(),t._input.focus()),a&&c[d]?(e.stopImmediatePropagation(),Mc(t._input),c[d].click()):is(t,c[d])},ss=t=>{var e;if(!t._input||t.hidden)return;const n=t._input.value.toLowerCase().trim()||"",o=!t.hasAttribute("data-nofilter"),i=[],s=[];for(const r of t.options)(r.disabled||r.hidden||o&&!r.label.toLowerCase().includes(n)?i:s).push(r);for(const r of i)$(r,He,"true");for(const r of s)$(r,He,"false");clearTimeout(Xn),Xn=setTimeout(zc,500,t,s),_c&&s.forEach((r,a,{length:l})=>{$(r,"title",`${a+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},zc=(t,e)=>!t.hidden&&t._input===Qi(t)&&Vn(`${e.some(({value:n})=>n)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);Me()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=$(this,"list");return t&&Pe(this).getElementById(t)}}),Ji.define("u-datalist",ns),j()&&!Ba()&&Ua();const Fc="3.2.4",rs="_alert_14zqc_1 _ds-alert_1dsd4_3",as="_app_14zqc_1",ls="_sticky_14zqc_1",cs="_avatar_14zqc_1 _ds-avatar_1dsd4_1",ds="_badge_14zqc_1",us="_breadcrumbs_14zqc_1 _ds-breadcrumbs_1dsd4_5",fs="_button_14zqc_1 _ds-button_1dsd4_1",ms="_card_14zqc_1",ps="_group_14zqc_1",hs="_chip_14zqc_1 _ds-chip_1dsd4_5",gs="_details_14zqc_1 _ds-details_1dsd4_3",bs="_dialog_14zqc_1 _ds-dialog_1dsd4_5",vs="__drawer_14zqc_1",ys="_divider_14zqc_1",ws="_errorsummary_14zqc_1 _ds-error-summary_1dsd4_5",_s="_field_14zqc_1 _ds-field_1dsd4_1",Ss="_suggestion_14zqc_1 _ds-suggestion_1dsd4_5",xs="_affixes_14zqc_1 _ds-field-affixes_1dsd4_3",Es="_fieldset_14zqc_1 _ds-fieldset_1dsd4_3",$s="_fileupload_14zqc_1",Ts="_helptext_14zqc_1 _ds-focus_1dsd4_1",Cs="_input_14zqc_1 _ds-input_1dsd4_1",As="_law_14zqc_1",ks="_grid_14zqc_1",Ls="_flex_14zqc_1",Rs="_link_14zqc_1",Ms="_logo_14zqc_1",Is="__logo_14zqc_1",Os="_pagination_14zqc_1 _ds-pagination_1dsd4_5",Ds="_popover_14zqc_1 _ds-popover_1dsd4_3",Ps="_print_14zqc_1",Hs="_progress_14zqc_1",Ns="__indeterminate_14zqc_1",qs="_skeleton_14zqc_1 _ds-skeleton_1dsd4_5",Bs="__skeleton_14zqc_1",Us="_spinner_14zqc_1",zs="_steps_14zqc_1",Fs="_table_14zqc_1 _ds-table_1dsd4_5",Ws="__scrollShadow_14zqc_1",Vs="_tabs_14zqc_1 _ds-tabs_1dsd4_5",Gs="__scrollMask_14zqc_1",js="_tag_14zqc_1 _ds-tag_1dsd4_5",Xs="_toast_14zqc_1",Ks="__toastClose_14zqc_1",Ys="__toastOpen_14zqc_1",Qs="__toastTimeout_14zqc_1",Js="_togglegroup_14zqc_1 _ds-toggle-group_1dsd4_5",Zs="__tooltip_14zqc_1 _ds-tooltip_1dsd4_5",tr="_heading_14zqc_1 _ds-heading_1dsd4_1",er="_ingress_14zqc_1",nr="_muted_14zqc_1",or="_info_14zqc_1",ir="_prose_14zqc_1",sr="_validation_14zqc_1 _ds-validation-message_1dsd4_1",rr="_body_14zqc_162",ar="__checked_14zqc_1",T={alert:rs,app:as,sticky:ls,avatar:cs,badge:ds,breadcrumbs:us,button:fs,card:ms,group:ps,chip:hs,details:gs,dialog:bs,_drawer:vs,divider:ys,errorsummary:ws,field:_s,suggestion:Ss,affixes:xs,fieldset:Es,fileupload:$s,helptext:Ts,input:Cs,law:As,grid:ks,flex:Ls,link:Rs,logo:Ms,_logo:Is,pagination:Os,popover:Ds,print:Ps,progress:Hs,_indeterminate:Ns,skeleton:qs,_skeleton:Bs,spinner:Us,steps:zs,table:Fs,_scrollShadow:Ws,tabs:Vs,_scrollMask:Gs,tag:js,toast:Xs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,togglegroup:Js,_tooltip:Zs,heading:tr,ingress:er,muted:nr,info:or,prose:ir,validation:sr,body:rr,_checked:ar},Wc=Object.freeze(Object.defineProperty({__proto__:null,_checked:ar,_drawer:vs,_indeterminate:Ns,_logo:Is,_scrollMask:Gs,_scrollShadow:Ws,_skeleton:Bs,_toastClose:Ks,_toastOpen:Ys,_toastTimeout:Qs,_tooltip:Zs,affixes:xs,alert:rs,app:as,avatar:cs,badge:ds,body:rr,breadcrumbs:us,button:fs,card:ms,chip:hs,default:T,details:gs,dialog:bs,divider:ys,errorsummary:ws,field:_s,fieldset:Es,fileupload:$s,flex:Ls,grid:ks,group:ps,heading:tr,helptext:Ts,info:or,ingress:er,input:Cs,law:As,link:Rs,logo:Ms,muted:nr,pagination:Os,popover:Ds,print:Ps,progress:Hs,prose:ir,skeleton:qs,spinner:Us,steps:zs,sticky:ls,suggestion:Ss,table:Fs,tabs:Vs,tag:js,toast:Xs,togglegroup:Js,validation:sr},Symbol.toStringTag,{value:"Module"}));function lr(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=lr(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function Vc(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=lr(t))&&(o&&(o+=" "),o+=e);return o}const Zt={capture:!0,passive:!0},U=()=>typeof window<"u"&&typeof document<"u",yt=t=>U()?document.getElementsByClassName(T[t].split(" ")[0]):[];function qt(t,e){let n;return function(...o){clearTimeout(n),n=setTimeout(()=>t.apply(this,o),e)}}const g=(t,e,n)=>n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),I=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.addEventListener(i,...o);return()=>cr(t,...e)},cr=(t,...e)=>{const[n,...o]=e;for(const i of n.split(" "))t.removeEventListener(i,...o)},ut=(t,e)=>{if(!U())return;window._mtdsHotReloadCleanup||(window._mtdsHotReloadCleanup=new Map);const n=()=>{window._mtdsHotReloadCleanup?.get(t)?.map(o=>o()),window._mtdsHotReloadCleanup?.set(t,e())};document.readyState!=="complete"?I(window,"load",n):document.fonts?.ready?.then(n)||setTimeout(n,0)},Be=(t,e,n)=>{let o=0;const i=()=>{if(!t.isConnected)return s();e(r),r.takeRecords(),o=0},s=()=>r?.disconnect?.(),r=new MutationObserver(()=>{o||(o=requestAnimationFrame(i))});return r.observe(t,n),i(),s},R=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))g(o,i,s);return o},Gc=typeof HTMLElement>"u"?class{}:HTMLElement,jc=(t,e)=>!U()||window.customElements.get(t)||window.customElements.define(t,e),Xc=typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets,Kc=(t,e)=>{if(!Xc)return;t.shadowRoot||t.attachShadow({mode:"open"}).append(R("slot"));const n=new CSSStyleSheet;n.replaceSync(e),t.shadowRoot.adoptedStyleSheets=[n]},Yc=`[data-command="toggle-app-expanded"],.${T.app.split(" ")[0]} > [command="show-modal"]`,Qc=`.${T.breadcrumbs.split(" ")[0]}`,Jc=`.${T.card.split(" ")[0]}`,dr=`.${T.chip.split(" ")[0]}`,Zc=`.${T.helptext.split(" ")[0]}`,td=`.${T.pagination.split(" ")[0]}`,ed='summary,u-summary,a,button,[role="tab"],[role="button"]',Zn="mattilsynet.matomo.cloud",nd=["setCustomUrl","setDocumentTitle","setReferrerUrl"],W="mtds-analytics-banner",od="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ur(t,e={}){if(U()){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Zn}/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"&&id();const r=s?`https://cdn.matomo.cloud/${Zn}/container_${s}.js`:`https://cdn.matomo.cloud/${Zn}/matomo.js`;document.querySelector(`script[src="${r}"]`)||document.head.append(R("script",{async:"",src:r}))}}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,r=["trackEvent",n,o,i,s];let a=location.href;window._paq.push([function(){a=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",a.split("#")[0]]),window._paq.push(r.filter(l=>l!==void 0)),window._paq.push(["setCustomUrl",a])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else if(t==="matomo"){const n=e;nd.includes(n?.[0])&&typeof n[1]!="string"&&(n[1]=`${n[1]??""}`),window._paq.push(n)}}}}function id(){if(document.getElementById(W)||window.localStorage.getItem(W))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${W}" data-analytics="ignore"><style>
|
|
19
|
+
#${W}[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 }
|
|
20
|
+
#${W} 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 }
|
|
21
|
+
#${W} button:focus-visible { outline: 2px solid }
|
|
22
|
+
#${W} button:hover { background: #0a4e4f }
|
|
23
|
+
#${W} button:active { background: #054449; scale: .9 }
|
|
24
|
+
#${W} p { margin: 0 .25em }
|
|
35
25
|
</style>
|
|
36
|
-
<p>Vi bruker <a href="${
|
|
26
|
+
<p>Vi bruker <a href="${od}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
|
|
37
27
|
<form method="dialog" data-analytics="ignore"><button type="submit" aria-label="OK">×</button></form>
|
|
38
|
-
</dialog>`);const e=document.getElementById(
|
|
28
|
+
</dialog>`);const e=document.getElementById(W),n=()=>window.localStorage.setItem(W,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function sd(t){window._mtdsTracking?.enabled&&setTimeout(rd,0,t)}function rd({type:t,target:e}){const n=t==="click"?e?.closest?.(ed):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=fr(n)||cd(n)||g(n,"data-tooltip")||"";if(t==="submit")i="Form",o="submit",s=s||document.title;else if(t==="toggle"){if(!n.matches("dialog:modal"))return;i="Dialog",o="open"}else if(t==="change"){const r=g(n,"type"),a=r==="checkbox"||r==="radio"?n.closest("fieldset"):null;i=n.closest(dr)?"Chip":"Form",o="change",s=fr(a||n)||te(a?.querySelector("legend"))||te(n?.labels?.[0])}else if(g(n,"role")==="tab")i="Tab",o="navigate";else if(g(n,"popovertarget")){if(!ad(n)?.matches(":popover-open"))return;i=n.closest(Zc)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(n.matches(Yc)){const r=ld(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=r?"expand":"minimize",s=r&&g(n,"data-tooltip")||te(n)}else if(n.closest(Qc))i="Breadcrumbs",o="navigate";else if(n.closest(td))i="Pagination",o="navigate";else if(n.closest(Jc))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(dr))i="Chip",o=n.hasAttribute("data-removable")?"remove":"click";else if(n.closest("th[aria-sort]"))i="Table",o="sort";else if(n instanceof HTMLAnchorElement)i="Link",o=n.protocol==="mailto:"?"email":"navigate",n.hasAttribute("download")?o="download":n.hash&&n.href.startsWith(location.href.split("#")[0])&&(o="anchor");else if(n.hasAttribute("aria-expanded")){if(g(n,"aria-expanded")!=="true")return;i="Expand",o="open"}else n.nodeName.startsWith("MTDS-ATLAS-")&&(i="Map Marker",o="open");ur("event",{category:g(n,"data-analytics-category")??i,action:g(n,"data-analytics-action")??o,name:g(n,"data-analytics-name")??s})}const te=t=>t?.textContent?.trim()||"",fr=t=>t&&g(t,"aria-label")||"",ad=t=>document.getElementById(g(t,"popovertarget")||""),ld=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),cd=t=>{const e=te(t),n=te(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};ut("analytics",()=>[I(document,"click toggle submit change",sd,Zt)]),typeof window<"u"&&window.CSSStyleSheet&&document.adoptedStyleSheets&&(()=>{const t="--mtds-app-expanded",e=new CSSStyleSheet,n=()=>!window.localStorage.getItem(t)?.includes("false");document.adoptedStyleSheets.push(e),window.mtdsToggleAppExpanded=o=>{try{const i=o??!n();e.replaceSync?.(`:root { ${t}: var(${t}--${i})}`),window.localStorage.setItem(t,i)}catch{}},window.mtdsToggleAppExpanded(n())})();const to=T.app.split(" ")[0],dd=`[data-command="toggle-app-expanded"],.${to} > [command="show-modal"]`,eo=`.${to} > dialog,.${to} dialog ~ main`,mr=yt("sticky"),pr=t=>{document.startViewTransition?document.startViewTransition(t):t()},hr=t=>pr(()=>window.mtdsToggleAppExpanded?.(t));function ud(t){const{target:e,defaultPrevented:n}=t,o=e?.closest?.("a");if(o?.closest("dialog")&&o?.closest(eo))return gr();if(n||!(e instanceof HTMLButtonElement)||!e.matches(dd))return;const i=getComputedStyle(e).position==="sticky";t.preventDefault(),i?hr():pr(()=>{const s=document.querySelector(eo);s?.setAttribute("closedby","any"),s?.showModal()})}function gr(){document.querySelector(eo)?.close()}let no=0,Bt,at=0,oo=0,Ue=0,io=!1,so=0,wt=0;function fd(){if(!mr?.length)return;const t=mr[0],e=window.scrollY,n=e<wt;wt=e,n!==Bt&&(no=(t.parentElement?.getBoundingClientRect().top||0)+wt,Bt=n,oo=t.offsetHeight,Ue=t.getBoundingClientRect().top+wt,io=t.offsetHeight<=window.innerHeight,so=window.innerHeight),!(at===-1&&io)&&(at!==-1&&(io||Bt&&wt<=Ue)?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top","0px"),at=-1):at===-1&&!Bt?(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Math.max(0,wt-no)}px`),at=0):at!==1&&!Bt&&wt+so>=Ue+oo?(t.style.setProperty("--pos","sticky"),t.style.setProperty("--top",`${so-oo}px`),at=1):at===1&&Bt&&(t.style.setProperty("--pos","relative"),t.style.setProperty("--top",`${Ue-no}px`),at=0))}ut("app",()=>[I(document,"click",ud,!0),I(window,"resize",qt(gr,100),Zt),I(window,"scroll",fd,Zt)]);const md=/<[^>]+\bid="([^"]+)[^>]+>/gi,br=/\([^)]{1,4}\).{1,9}\d+\/\d+/i,pd=/<(h\d|[^>]+role="heading")[^>]*>(.*?)<\/?(h\d|br|div)/i,hd=/kapittel-\d+-ledd-\d+/,gd=/<button[^>]+>.*?<\/button>/g,bd=/►m\d+/i,ze=/<[^>]+>/g,vd=/<dt([^>]*class="([^"]+)")?[^>]*>(.*?)<\/dt><dd[^>]*>(.*?)<\/dd>/gis,yd=/<(\/?)(article|footer|section)/gi,wd=/(src|href)="([^"]+)"/gi,_d=/(<li[^>]*)>\s*<div([^>]*>)|<\/div>(<\/li>)/gi,Sd=/(<li[^>]+data-name="([^"]+)[^>]+>)(\s*<(ul|ol|div)[^>]+>)/gis,xd=/(<[^>]+class="[^"]*\bnumberedLegalP\b[^>]+>\s*)(\d+\.)(.*?)(?=<\/?(ul|ol|div)|$)/gis,vr="https://lovdata.no/",Ed="https://www.mattilsynet.no/regelveiledning/?regelverk=",$d={dokid:{label:"DokumentID",value:""},legacyid:{label:"Datokode",value:""},refid:{label:"RefID",value:""},title:{label:"Tittel",value:""},titleshort:{label:"Korttittel",value:""},url:{label:"Url",value:""}},ro=t=>Array.from(Array.isArray(t)?t:[t],e=>e instanceof HTMLButtonElement?e.value:e),Td=t=>Array.from(t?.querySelectorAll('button[aria-checked="true"]')||[],e=>e.value),Cd=(t,e)=>{const n=ro(t);e?.querySelectorAll("button").forEach(o=>{n.includes(o.value)&&g(o,"aria-checked",`${g(o,"aria-checked")!=="true"}`)})},Ad=(t,e)=>{const n=ro(t);e?.querySelectorAll("button").forEach(o=>{g(o,"aria-checked",`${n.includes(o.value)||!1}`)})},kd=(t,e)=>{const n=yr(e);return ro(t).map(o=>Rd(o,n)).filter(o=>!!o)},Ld=t=>{const e=t.slice(0,t.indexOf("</dl>")),n={...$d};for(const o of e.matchAll(vd)){const i=o[2].replace(/-/g,"").toLowerCase();n[i]={label:o[3],value:o[4]}}return n},yr=t=>t.includes("<main")?(t.split(/<\/?main[^>]*>/)[1]||"").replace(yd,"<$1div").replace(_d,"$1$2$3").replace(wd,(e,n,o)=>`${n}="${o.includes(":")?"":vr}${o}" ${n==="href"?'rel="noopener noreferrer" target="_blank"':""}`).replace(xd,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span><div class="legalP" id="${_t("id",n)}-ledd-0">${i}</div>`).replace(Sd,(e,n,o,i)=>`${n}<span class="data-originalId">${o}</span>${i}`).replace(md,(e,n,o,i)=>{const s=wr(e,n,o,i);return`${e}${s?`<button type="button" role="checkbox" aria-label="${s}" value="${n}"></button>`:""}`}):t,Rd=(t,e)=>{const n=hd.test(t),o=t.split("-").map((c,u,d)=>u%2?Md(d.slice(0,u+1).join("-"),e,n):null).filter(c=>!!c);if(!o.length)return null;const i=o.filter(({guideUrl:c})=>c).pop()?.guideUrl,s=o.filter(({url:c})=>c).pop(),r=o.filter(c=>c.className==="section"&&br.test(c.label)).pop(),a=s?`${vr}${s.url}`:"",l=o.slice(o.indexOf(r||o[0])).map(({label:c})=>c).join(", ");return{...o.slice(-1)[0],path:o,label:l,url:a,guideUrl:i}},Md=(t,e,n)=>{const o=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),i=e.slice(o,e.indexOf(">",o)+1),s=_t("class",i),r=_t("data-lovdata-url",i),a=wr(i,t,o,e),[l,c,u]=r.match(/(lov|forskrift)\/([^/]+)/)||[],d=`${c?.slice(0,3).toUpperCase()}-${u}`;return{id:t,className:s,guideUrl:r&&`${Ed}${d}_${t}`,html:Id(t,e),url:r,label:!n&&s==="section"&&a?.match(br)?.[0]||a}},_t=(t,e)=>{const n=` ${t.toLowerCase()}="`,o=e.toLowerCase().indexOf(n),i=o+n.length;return o===-1?"":e.slice(i,e.indexOf('"',i))},Id=(t,e)=>{const n=e.lastIndexOf("<",e.indexOf(` id="${t}"`)),o=e.length;let i=n+1,s=0;for(;i&&i<o;)if(i=e.indexOf("<",i)+1,e[i]!=="/")s++;else if(--s<0)break;const r=e.indexOf(">",i)+1;return i?e.slice(n,r).replace(gd,""):""},wr=(t,e,n,o)=>Od[_t("class",t)]?.(t,e,n,o)||"",Od={numberedLegalP:t=>`nr. ${_t("data-numerator",t)}.`,section:(t,e,n,o)=>o.slice(n).match(pd)?.[2]?.replace(ze,"")?.replace(bd,"").trim()||"",legalArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("legalArticleValue",n));return o.slice(i+1,o.indexOf("</span>",i)).replace(ze,"").replace("Artikkel","artikkel")},legalP:(t,e)=>{const[n,o,i,s]=e.split("-").reverse();return`avsnitt ${(o==="nummer"?1:Number(n))+(s==="nummer"?1:0)}`},listArticle:(t,e,n,o)=>{const i=e.split("-"),s=` id="${i.slice(0,-2).join("-")}"`,r=o.lastIndexOf(s,n),a=o.slice(o.indexOf("<ol",r),n),l=_t("data-name",t)||"-",c=_t("type",a)||"-";let u="punkt";return c==="1"&&(u="tall"),c==="a"&&(u="bokstav"),c==="i"&&(u="romtertall"),`${u} ${l==="-"?i.pop():l.replace(ze,"")}`},marginIdArticle:(t,e,n,o)=>{const i=o.indexOf(">",o.indexOf("data-marginOriginalId",n));return`nr. ${o.slice(i+1,o.indexOf("</span>",i)).replace(ze,"")}`}};function D(t,e={}){const n=document.getElementById(e.id||"")||R("dialog");return g(n,"aria-busy",e.busy?"true":null),g(n,"class",Vc(T.toast,e.className)),g(n,"closedby",e.closedby||null),g(n,"data-color",e.color||null),g(n,"data-icon",`${e.icon??""}`||null),g(n,"data-timeout",`${e.timeout??""}`||null),g(n,"id",e.id||`${Date.now()}`),g(n,"open",e.open===!1?null:""),n.innerHTML=t,I(n,"animationend",Dd,{once:!0}),document.body.appendChild(n),n.id}function Dd({animationName:t,target:e}){t===T._toastClose&&e.remove()}D.success=(t,e)=>D(t,{color:"success",...e}),D.danger=(t,e)=>D(t,{color:"danger",...e}),D.info=(t,e)=>D(t,{color:"info",...e}),D.warning=(t,e)=>D(t,{color:"warning",...e}),D.neutral=(t,e)=>D(t,{color:"neutral",...e}),D.promise=async function(e,n){const{loading:o,success:i,error:s,...r}=n,a=D(o,{busy:!0,...r});try{const l=await e();return D.success(i,{id:a,busy:!1}),l}catch(l){throw D.danger(s,{id:a,busy:!1}),l}};const Pd=`/* NOTE: Using --mtds- not --mtds- since we're inside shadow dom */
|
|
39
29
|
:host(:not([hidden])) { display: grid; gap: var(--mtds-6) }
|
|
40
30
|
[data-event] { cursor: pointer } /* Used to forward clicks from Chart ShaowDOM to relevant cell in child table */
|
|
41
31
|
|
|
@@ -202,11 +192,8 @@ Please use <details> and <summary>, but import '@u-elements/u-details/polyfill'
|
|
|
202
192
|
vertical-align: middle;
|
|
203
193
|
width: var(--mtds-5);
|
|
204
194
|
}
|
|
205
|
-
`,pf=[.1,.2,.25,.5,1];function mf(t,{aspect:e,type:o}){const i=o==="stacked",r=t[0].reduce((p,m,v)=>{const b=t.map(_=>_[v].number),w=b.reduce((_,E)=>_+E,0);return Math.max(p,...i?[w]:b)},0),a=r/10,s=10**`${Math.round(a)}`.length,l=a/s,c=(pf.find(p=>p>l)||1)*s,d=Math.ceil(r/c)*c,u=O("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure"});e&&u.style.setProperty("--mtdsc-chart-aspect",e),u.style.setProperty("--bars",`${t[0]?.length-1}`),u.style.setProperty("--groups",`${t.length-1}`),u.style.setProperty("--total",`${d}`);const f=u.appendChild(O("div",{class:"axisSteps"})),h=u.appendChild(O("div",{class:"axisGroups"}));return Array.from({length:d/c+1},(p,m)=>hf(c*m)).reverse().map(p=>f.append(O("div",{class:"axisStep","data-label":p}))),{total:d,groups:h,axis:u}}const hf=new Intl.NumberFormat().format;function vf(t){return t[0].slice(1).map(({value:e,event:o},n)=>{const i=O("div",{class:"axisGroup","data-label":e}),r=i.appendChild(O("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[n+1]).map(({tooltip:a,color:s,number:l})=>{const c=O("div",{"aria-label":a,"data-event":o,class:"bar",role:"img",tabindex:"0"});return c.style.setProperty("--color",s),c.style.setProperty("--value",`${l}`),r.appendChild(c)}),i})}function gf(t,{total:e,type:o,variant:n}){const i=Number.parseFloat(o||"0")||0,r=O("div",{class:"axisGroup"});return t.slice(1).forEach(([,...a])=>{const s=O("div",{class:"lineContainer",role:"list"});s.style.setProperty("--color",a[0].color);const l=bf(a.map(({number:u},f,{length:h})=>[100/(h-1)*f,100-u/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");g(c,"aria-hidden","true"),g(c,"preserveAspectRatio","none"),g(c,"viewBox","0 0 100 100");const d=document.createElementNS("http://www.w3.org/2000/svg","path");if(g(d,"class","line"),g(d,"d",l),g(d,"fill","none"),g(d,"stroke","currentColor"),n==="area"){const u=d.cloneNode(!0);g(u,"d",`M-100,100 L${l.slice(1)}L200,100`),g(u,"class","lineShade"),c.append(u)}a.forEach(({number:u,tooltip:f,event:h})=>{const p=O("div",{role:"listitem"}),m=O("div",{"aria-label":f,"data-event":h,tabindex:"0",class:"linePoint",role:"img"});m.style.setProperty("--value",`${u}`),p.appendChild(m),s.append(p)}),s.appendChild(c).append(d),r.append(s)}),r}const bf=(t,e)=>t.map(([o,n],i,r)=>i?yf(i,r,e):`M${o},${n}`).join(" "),xs=([t,e],[o,n])=>[t+o,e+n],$s=([t,e],[o,n])=>[t-o,e-n],Ts=(t,[e,o])=>[t*e,t*o],yf=(t,e,o)=>{const n=e[t-1],i=e[t],[r,a]=xs(n,Ts(o,$s(i,e[t-2]||n))),[s,l]=xs(i,Ts(o,$s(n,e[t+1]||i)));return`C ${r},${a} ${s},${l} ${i[0]},${i[1]}`};function _f(t,{aspect:e,variant:o}){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&n.style.setProperty("--mtdsc-chart-aspect",e),g(n,"class","pie"),g(n,"viewBox","0 0 100 100");let i=0;const r=50,a=o==="doughnut"?25:0,s=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:d,color:u}])=>{if(!c)return;const f=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/s;i+=c;const p=Math.min(i/s,.99999),m=p-h>.5?1:0,v=2*Math.PI*(h-.25),b=2*Math.PI*(p-.25),w=Math.cos(v),_=Math.sin(v),E=Math.cos(b),A=Math.sin(b),C=`M ${r+a*w} ${r+a*_} L ${r+r*w} ${r+r*_} A ${r} ${r} 0 ${m} 1 ${r+r*E} ${r+r*A} L ${r+a*E} ${r+a*A} A ${a} ${a} 0 ${m} 0 ${r+a*w} ${r+a*_}`;f.style.setProperty("--color",u),g(f,"aria-label",l),g(f,"data-event",d),g(f,"d",C),g(f,"role","img"),g(f,"tabindex","0"),n.appendChild(f)}),n}const Cs="click keydown mousemove mouseout",As="mtds-chart-tooltip",ht=j()?document.getElementById(As)||O("div",{"aria-hidden":"true",class:L._tooltip,hidden:"",id:As}):null;class wf extends wu{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=Gt(()=>this.attributeChangedCallback(),100),o=new ResizeObserver(()=>this.handleResize());o.observe(this),this.#e=()=>o.disconnect(),this.#t=eo(this,e,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),requestAnimationFrame(()=>this.attributeChangedCallback()),D(this,Cs,this)}disconnectedCallback(){ht&&(ht.hidden=!0),fs(this,Cs,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){const e=xf(this.querySelector("table"));if(!e[0])return;Array.from(this.shadowRoot?.children||[]).map(c=>c.remove());const[o,n]=(g(this,"data-variant")||"column").split("-"),i=g(this,"data-aspect")||void 0,r=O("div",{"aria-hidden":"hidden",class:"legends",role:"group"});e.slice(1).forEach(([{value:c,color:d}])=>{const u=O("div",{class:"legend"},c);r.appendChild(u).style.setProperty("--color",d)});const{axis:a,groups:s,total:l}=mf(e,{aspect:i,type:n});(o==="column"||o==="bar")&&s.append(...vf(e)),(o==="line"||o==="area")&&s.append(gf(e,{total:l,variant:o,type:n})),(o==="doughnut"||o==="pie")&&this.shadowRoot?.append(_f(e,{aspect:i,variant:o})),this.shadowRoot?.append(a,r),xu(this,ff)}handleEvent(e){e.type==="click"||e.type==="keydown"?Ef(e,this):Sf(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,o=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(o?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(o?.offsetWidth||0)<500)}}function Ef(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const o=t.composedPath()[0],n=e.querySelector("table"),[i,r]=o instanceof Element&&g(o,"data-event")?.split("-").map(Number)||[];n?.rows[i]?.cells[r]?.querySelector("a,button")?.click?.()}let ks="";function Sf(t){if(!ht)return;ht?.isConnected||document.body.append(ht);const e=t.composedPath()[0],o=e instanceof Element&&e.getAttribute("aria-label")||"";o&&(ht.style.transform=`translate(${Math.min(t.clientX,window.innerWidth)}px, ${t.clientY}px)`),o!==ks&&(o&&(ht.textContent=o),ks=o,ht.hidden=!o)}const Rn=t=>t?.textContent?.trim()||"",xf=t=>Array.from(t?.rows||[]).map((e,o,{length:n})=>Array.from(e.cells,(i,r)=>{const a=Rn(e.cells[0]),s=Rn(t?.rows[0].cells[r]),l=Rn(i),c=n===2?`${s}: ${l}`:`${a}: ${l}${s?` (${s})`:""}`;return g(i,"tabindex","-1"),{number:r&&o&&Number.parseFloat(l)||0,event:i.querySelector("a,button")&&`${o}-${r}`,color:`var(--mtdsc-chart-color-${o}-${r}, var(--mtdsc-chart-color-${o}, var(--mtdsc-chart-color-base)))`,value:l,tooltip:g(i,"data-tooltip")||c}}));Eu("mtds-chart",wf);const Ls=new WeakSet,B=t=>!Ls.has(t)&&Ls.add(t),P=(t,e,o)=>window.dsWarnings===!1||console.warn(`\x1B[1m@mattilsynet/design:\x1B[m ${t} is deprecated, please use ${e}:`,o),$f=$t("togglegroup"),Is=L.button.split(" "),Tf=()=>{for(const t of $f){B(t)&&!t.hasAttribute("data-toggle-group")&&(g(t,"data-toggle-group","Valgknapper"),P('Only setting class="styles.togglegroup"','data-toggle-group="LABEL-HERE" attribute also for better accessibility',t));for(const e of t.getElementsByTagName("label"))B(e)&&!e.classList.contains(Is[0])&&(e.classList.add(...Is),P('Only setting class="styles.button"','<label class="styles.button">',e))}},Cf=$t("breadcrumbs"),Af=()=>{for(const t of Cf)B(t)&&t.nodeName!=="DS-BREADCRUMBS"&&(t.classList.add(...L.breadcrumbs.split(" ")),P('Only setting class="styles.breadcrumbs"','<ds-breadcrumbs class="styles.breadcrumbs">',t))},kf=$t("errorsummary"),Lf=()=>{for(const t of kf)B(t)&&t.nodeName!=="DS-ERROR-SUMMARY"&&P('Only setting class="styles.errorsummary"','<ds-error-summary class="styles.errorsummary">',t)},If=$t("dialog"),Ms=()=>{for(const t of If){if(B(t)){const e=g(t,"data-closedby");e&&(g(t,"closedby",e),P(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.hasAttribute("data-variant")&&P('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t)}t.isConnected&&t.showModal&&t.close&&(t.matches('[open][data-modal]:not([data-modal="false"]):not(:modal)')?(P('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>',t),g(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(g(t,"open",""),t.close()))}},Mf=()=>{for(const t of document.querySelectorAll("[data-count]"))if(B(t)){const e=g(t,"data-count");t.classList.add(...L.validation.split(" ")),g(t,"data-limit",e),P(`data-count="${e}"`,`class="styles.validation" data-field="counter" data-limit="${e}"`,t)}},Of=()=>{for(const t of document.querySelectorAll("[data-command]"))if(B(t)){const e=g(t,"data-command");e==="row"?P(`<${t.nodeName.toLowerCase()} data-command="${e}">`,`<tr data-clickdelegatefor="${t.nodeName}-ID">`,t):P(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)}},Rf=j()?document.getElementsByTagName("u-tabs"):[],Df=()=>{for(const t of Rf)B(t)&&P("u-tabs","ds-tabs",t)},Dn=L.suggestion.split(" "),Pf=j()?document.getElementsByTagName("u-combobox"):[],Hf=j()?document.getElementsByTagName("ds-suggestion"):[],Nf=()=>{for(const t of Pf)B(t)&&(t.classList.add(...Dn),P("<u-combobox>",'<ds-suggestion class="styles.suggestion">',t));for(const t of Hf)B(t)&&!t.classList.contains(Dn[0])&&(t.classList.add(...Dn),P("Only using <ds-suggestion>",'<ds-suggestion class="styles.suggestion">',t))},Bf=({target:t})=>{if(!(t instanceof Element))return;const e=t?.closest("tr")?.querySelector('[data-command="row"]');e&&!t?.closest('a,button,label,input,select,textarea,[role="button"]')&&e.click();const n=t?.closest("dialog");n&&t?.closest('[data-command="close"]')&&n.close()},qf=$t("field"),io=new Set,Uf=()=>{for(const t of qf)t.nodeName!=="DS-FIELD"&&(B(t)||P('Only setting class="styles.field"','<ds-field class="styles.field">',t),!io.has(t)&&io.add(t)&&qe.prototype.connectedCallback.call(t))},Ff=()=>{for(const t of io)qe.prototype.disconnectedCallback.call(t),io.delete(t)},zf=`[data-description], .${L.field.split(" ")[0]} label + p`,Vf=()=>{for(const t of document.querySelectorAll(zf))B(t)&&t.getAttribute("data-field")!=="description"&&(g(t,"data-field","description"),P("Descriptions created by data-description of <p> only",'data-field="data-description"',t))},Wf=$t("validation"),Gf=()=>{for(const t of Wf)B(t)&&!t.hasAttribute("data-field")&&(g(t,"data-field","validation"),P('Only setting class="styles.validation"','class="styles.validation" data-field="validation"',t))},jf=()=>{for(const t of document.querySelectorAll("[popover][data-position]"))B(t)&&(g(t,"data-placement",g(t,"data-position")),P("data-position","data-placement",t))},Kf=Gt(()=>{Mf(),Of(),Af(),Ms(),Lf(),Vf(),Gf(),jf(),Uf(),Tf(),Nf(),Df()},200);mt("deprecations",()=>[Ff,D(document,"click",Bf,se),D(document,"toggle",Ms,!0),eo(document,Kf,{attributeFilter:["class","data-command","data-count","data-description","data-variant","open"],attributes:!0,childList:!0,subtree:!0})]);const Xf=Gt(t=>{if(t.animationName!==L._logo)return;const e=t.target.closest?.(`.${L.logo.split(" ")[0]}`),o=e?.firstElementChild;if(o instanceof SVGSVGElement){for(const l of document.head.querySelectorAll("link[rel~='icon']"))l.setAttribute("rel","disabled");const n=e?.hasAttribute("data-env"),i=window.getComputedStyle(o),r=i.getPropertyValue("color"),a=i.getPropertyValue("--mtdsc-logo-background"),s=o.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${r}"`);document.head.appendChild(O("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":a}' width='51' height='51' x='2' y='2' stroke='${r}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${s}</g></svg>`)}`,rel:"icon"}))}},200);mt("logo",()=>[D(document,"animationend",Xf)]);const Yf=L.popover.split(" ")[0];function Qf({target:t}){const e=t?.closest?.('a,button,[role="button"]'),o=e instanceof HTMLButtonElement,n=e&&g(e,"popovertarget"),i=n?document.getElementById(n):e?.closest("[popover]");if(!(n&&o)&&i?.classList.contains(Yf)&&e){const r=g(e,"popovertargetaction"),a=r==="show"||(r==="hide"?!1:void 0);if(o&&!r&&i.contains(e))return;i instanceof HTMLElement&&i.popover&&i.togglePopover(a)}}mt("popover",()=>[D(document,"click",Qf)]);const Jf=j()?document.getElementsByTagName("table"):[],Zf=()=>{for(const t of Jf){const e=Array.from(t.tHead?.rows[0]?.cells||[],o=>o.innerText.trim());for(const o of t.tBodies)for(const n of o.rows)for(const i of n.cells)g(i,"data-th",e[i.cellIndex]||":empty")}};mt("table",()=>[eo(document,Gt(Zf,200),{attributeFilter:["data-mobile"],attributes:!0,childList:!0,subtree:!0})]);const Os=L.toast.split(" ")[0],ro="data-sort";function tp({animationName:t,target:e}){const o=e;if(t===L._toastTimeout&&o.close(),t!==L._toastOpen)return;const n=Number(g(o,"data-timeout"));o.style.setProperty("--mtdsc-toast-timeout",n?`${n}ms`:null),o.hasAttribute(ro)||g(o,ro,`${Date.now()}`),g(o,"tabindex","0"),[...document.querySelectorAll(`.${Os}[open]`)].sort((i,r)=>Number(g(r,ro))-Number(g(i,ro))).reduce((i,r)=>(r.style.translate=`0 ${r===e?0:i}px`,i+r.offsetHeight+5),0)}function ep({target:t,clientX:e,clientY:o}){if(t instanceof HTMLDialogElement&&t.classList.contains(Os)&&g(t,"data-closedby")!=="none"){const n=t.getBoundingClientRect(),i=window.getComputedStyle(t),r=window.getComputedStyle(t,"::after"),a=n.top+Number.parseInt(i.paddingTop,10),s=a+Number.parseInt(r.height,10),l=n.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(r.width,10);a<=o&&o<=s&&c<=e&&e<=l&&t.close()}}mt("toast",()=>[D(document,"animationstart",tp),D(document,"click",ep)]),j()&&rr(document.getElementById("mtds-tooltip")||O("div",{class:L._tooltip,id:"mtds-tooltip",popover:"manual"}));const Pn=`.${L.field.split(" ")[0]}`,op=`${Pn} :is(input,textarea,select)`,np="ds-suggestion,u-combobox",ip=L.validation.split(" ")[0],ao=t=>t instanceof HTMLFormElement&&g(t,"data-validation")==="form",Hn=t=>t.closest(Pn),Nn=t=>t?.querySelectorAll(op)||[],so=t=>t?.getElementsByClassName(ip)||[],Rs=t=>{const e=!t.clientHeight||t.disabled||t.readOnly||g(t,"aria-readonly")==="true"||g(t,"aria-disabled")==="true",o=t.closest(np)?.items,n=g(t,"aria-required")!=="true"||!!o?.length;return o&&t.setCustomValidity(e||n?"":"Required"),e?!1:t.matches(":user-invalid")},Ds=t=>{const e=t.target?.form||t.target;let o;if(ao(e)){for(const n of e.querySelectorAll(Pn)){const i=[...Nn(n)].find(Rs);!o&&i&&(o=i);for(const r of so(n))g(r,"hidden",i?null:"")}for(const n of e.querySelectorAll("fieldset")){const i=[...Nn(n)].some(Rs);for(const r of so(n))Hn(r)||g(r,"hidden",i?null:"")}o&&(t.preventDefault(),o.focus())}},rp=({target:t})=>{const e=t;if(!ao(e.form))for(const o of so(e.closest("fieldset")||Hn(e)))g(o,"hidden","")},ap=t=>ao(t.target.form)&&t?.preventDefault(),sp=j()?so(document):[],lp=()=>{for(const t of sp)if(!t.hasAttribute("data-validation")){const e=Nn(Hn(t))[0];g(t,"data-validation","form"),ao(e?.form)&&g(t,"hidden","")}};mt("validations",()=>[D(document,"input comboboxbeforeselect",rp,!0),D(document,"invalid",ap,!0),D(document,"invalid",Gt(Ds,10),se),D(document,"submit",Ds,!0),eo(document,lp,{childList:!0,subtree:!0})]);var cp=Object.defineProperty,Ps=Object.getOwnPropertySymbols,dp=Object.prototype.hasOwnProperty,up=Object.prototype.propertyIsEnumerable,Hs=(t,e,o)=>e in t?cp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,fp=(t,e)=>{for(var o in e||(e={}))dp.call(e,o)&&Hs(t,o,e[o]);if(Ps)for(var o of Ps(e))up.call(e,o)&&Hs(t,o,e[o]);return t},lo=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",co=lo(),Bn=co?navigator.userAgent:"",uo=/android/i.test(Bn),pp=/firefox/i.test(Bn),mp=/iPad|iPhone|iPod/.test(Bn),Ns,hp=co&&/^Mac/i.test(((Ns=navigator.userAgentData)==null?void 0:Ns.platform)||navigator.platform),vp=co&&window.CSSStyleSheet&&document.adoptedStyleSheets,gp={once:!0,capture:!0,passive:!0},bp=":host(:not([hidden])) { display: block }",yp="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",_p=`${uo?"data":"aria"}-multiselectable`,Bs=typeof HTMLElement>"u"?class{}:HTMLElement,T=(t,e,o)=>o===void 0?t.getAttribute(e):(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),qn=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.addEventListener(i,...n);return()=>fo(t,...e)},fo=(t,...e)=>{const[o,...n]=e;for(const i of o.split(" "))t.removeEventListener(i,...n)},wp=(t,e)=>{const o=t.shadowRoot||t.attachShadow({mode:"open"});if(o.querySelector("slot")||o.append(Un("slot")),!o.querySelector("style"))if(!vp)o.append(Un("style",null,e));else{const n=new CSSStyleSheet;n.replaceSync(e),o.adoptedStyleSheets=[n]}return o},Ep=(t,e,o)=>{const n=new MutationObserver(r=>{if(!lo()||!t.isConnected)return i();e(t,r)}),i=Object.assign(()=>n.disconnect(),{takeRecords:()=>n.takeRecords()});return e(t),n.observe(t,o),i},po=t=>{var e;const o=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return o instanceof Document||o instanceof ShadowRoot?o:document},qs=t=>po(t).activeElement,ce=t=>{if(!t||!co)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Un=(t,e,o)=>{const n=document.createElement(t);if(o&&(n.textContent=o),e)for(const[i,r]of Object.entries(e))T(n,i,r);return n},Us={define:(t,e)=>!lo()||window.customElements.get(t)||window.customElements.define(t,e)},Sp=(t,e,o="")=>{var n,i;const r={bubbles:!0,composed:!0,data:e,inputType:o},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",r)),(i=(n=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:n.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",r)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Fn=!1,zn=t=>(t?.type==="pointerup"&&(Fn=!1),t?.type==="pointerdown"&&(Fn=!0,qn(document,"pointerup",zn,gp)),Fn),xp=t=>{const e=T(t,"form");T(t,"form","#"),setTimeout($p,0,t,e)},$p=(t,e)=>T(t,"form",e),ot,Tp=0,Fs=0,Vn=t=>{clearTimeout(Fs),ot||(ot=Un("div",{"aria-live":"assertive"}),ot.style.overflow="hidden",ot.style.position="fixed",ot.style.whiteSpace="nowrap",ot.style.width="1px"),ot.isConnected||document.body.append(ot),t===""&&(ot.textContent=""),t&&(ot.textContent=`${t}${Tp++%2?" ":""}`,Fs=setTimeout(Vn,!hp&&pp?2e3:300,""))},Wn="disabled",de="selected",Cp=class extends Bs{constructor(){super(...arguments),this._skipAttrChange=!1}static get observedAttributes(){return["id",Wn,de]}connectedCallback(){uo&&(this.tabIndex=-1),this.hasAttribute("role")||T(this,"role","option"),T(this,"aria-disabled",`${this.disabled}`),T(this,"aria-selected",`${this.selected}`),ce(this)}attributeChangedCallback(t){this._skipAttrChange||(this._skipAttrChange=!0,t==="id"?ce(this):T(this,`aria-${t}`,`${this[t]}`),this._skipAttrChange=!1)}get defaultSelected(){return this[de]}set defaultSelected(t){this[de]=t}get disabled(){return T(this,Wn)!==null}set disabled(t){T(this,Wn,t?"":null)}get form(){return this.closest("form")}get index(){var t;return[...((t=this.parentElement)==null?void 0:t.options)||[this]].indexOf(this)}get label(){var t;return(t=T(this,"label"))!=null?t:this.text}set label(t){T(this,"label",t)}get selected(){return T(this,de)!==null}set selected(t){T(this,de,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){var t;return(t=T(this,"value"))!=null?t:this.text}set value(t){T(this,"value",t)}};Us.define("u-option",Cp);var zs="data-activedescendant",mo="aria-hidden",Ap=`${bp}
|
|
206
|
-
::slotted([role="option"]) { display: block; cursor: pointer }
|
|
207
|
-
::slotted([role="option"][${zs}]) { ${yp} }
|
|
208
|
-
::slotted([role="option"]:is([${mo}="true"], [disabled], [hidden])) { display: none !important }`,Gn,Vs="focus click keydown",jn="focusout input pointerdown",ho={of:"of",plural:"%d hits",singular:"%d hit"},kp=class extends Bs{constructor(){super(),this._texts=fp({},ho),wp(this,Ap)}static get observedAttributes(){return["id",...Object.keys(ho).map(t=>`data-sr-${t}`)]}connectedCallback(){this._root=po(this),T(this,"hidden",""),T(this,"role","listbox"),T(this,"tabindex","-1"),qn(this._root,Vs,this,!0),this._umutate=Ep(this,js,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0})}disconnectedCallback(){var t;this._root&&fo(this._root,Vs,this,!0),this._root&&fo(this._root,jn,this),vo(this,null),(t=this._umutate)==null||t.call(this),this._umutate=this._root=this._input=void 0}attributeChangedCallback(t,e,o){const n=t?.split("data-sr-")[1];if(ho[n])this._texts[n]=o||ho[n];else if(this.id){const i=`input[list="${this.id}"]`,r=po(this).querySelector(i);r&&vo(this,r)}}handleEvent(t){t.defaultPrevented||(t.type==="focus"&&Xn(this,t),t.type==="focusout"&&Ip(this,t),t.type==="click"&&Op(this,t),t.type==="input"&&js(this),t.type==="keydown"&&Rp(this,t),t.type==="pointerdown"&&Mp(this,t))}get options(){const t=!this._options&&this.querySelector('[role="option"],option');return t&&(this._options=this.getElementsByTagName(t?.nodeName)),this._options||this.getElementsByTagName("option")}},Ws=t=>t.disabled||t.readOnly,Kn=t=>t instanceof HTMLInputElement,Lp=t=>T(t,mo)!=="true"&&t.clientHeight,ue=(t,e)=>{t._input&&T(t._input,"aria-expanded",`${e}`),!(!t.isConnected||t.hidden!==e)&&(e||Gs(t),t.popover&&t.togglePopover(e),e&&setTimeout(()=>clearTimeout(Gn)),t.hidden=!e)},Gs=(t,e)=>{t._input&&T(t._input,"aria-activedescendant",ce(e));for(const o of t.options)T(o,zs,o===e?"":null);e?.scrollIntoView({block:"nearest"})},vo=(t,e)=>{const o=e||t._input;o&&(t.popover&&(T(t,"popover","manual"),T(o,"popovertarget",e&&ce(t))),T(o,"aria-autocomplete",e&&"list"),T(o,"aria-controls",e&&ce(t)),T(o,"autocomplete",e&&"off"),T(o,"enterkeyhint","done"),T(o,"role",e&&!Ws(o)?"combobox":null))},Xn=(t,{target:e})=>{var o,n;if(t._input!==e)if(Kn(e)&&e.getAttribute("list")===t.id){if(vo(t,null),vo(t,e),Ws(e))return;t._root&&qn(t._root,jn,t),T(t,"aria-label",((n=(o=e.labels)==null?void 0:o[0])==null?void 0:n.textContent.trim())||null),Vn(),t._input=e,uo&&ue(t,!0)}else Yn(t)},Ip=(t,e)=>{zn()?e.stopImmediatePropagation():uo||setTimeout(Yn,0,t,e)},Yn=t=>{const e=qs(t);t._input===e||t.contains(e)||(t._root&&fo(t._root,jn,t),ue(t,!1),t._input=void 0)},Mp=(t,e)=>t.contains(e.target)&&zn(e),Op=(t,e)=>{var o;if(Kn(e.target)&&Xn(t,e),t._input===e.target)return ue(t,!0);if(!t.contains(e.target))return Yn(t);for(const n of t.options)if(n.contains(e.target))return(o=t._input)==null||o.focus(),t._input&&Sp(t._input,n.value),ue(t,T(t,_p)==="true")},Rp=(t,e)=>{if(Kn(e.target)&&Xn(t,e),t._input!==e.target)return;const{key:o,ctrlKey:n,metaKey:i,shiftKey:r,altKey:a}=e;if(n||i||r||o==="Tab"||a&&!o.startsWith("Arrow"))return;o==="Escape"&&!t.hidden&&e.preventDefault(),ue(t,o!=="Escape");const s=o==="Enter",l=T(t._input,"aria-activedescendant"),c=[];let d=-1,u=-1;for(const f of t.options)Lp(f)&&(c.push(f),f.id===l&&(d=c.length-1));!a&&o==="ArrowDown"&&(u=(d+1)%c.length),!a&&o==="ArrowUp"&&(u=(d||c.length)-1),~d&&((o==="Home"||o==="PageUp")&&(u=0),(o==="End"||o==="PageDown")&&(u=c.length-1),s&&(u=d)),c[u]&&(e.preventDefault(),t._input.focus()),s&&c[u]?(e.stopImmediatePropagation(),xp(t._input),c[u].click()):Gs(t,c[u])},js=t=>{var e;if(!t._input||t.hidden)return;const o=t._input.value.toLowerCase().trim()||"",n=!t.hasAttribute("data-nofilter"),i=[],r=[];for(const a of t.options)(a.disabled||a.hidden||n&&!a.label.toLowerCase().includes(o)?i:r).push(a);for(const a of i)T(a,mo,"true");for(const a of r)T(a,mo,"false");clearTimeout(Gn),Gn=setTimeout(Dp,500,t,r),mp&&r.forEach((a,s,{length:l})=>{T(a,"title",`${s+1} ${t._texts.of} ${l}`)}),(e=t._umutate)==null||e.takeRecords()},Dp=(t,e)=>!t.hidden&&t._input===qs(t)&&Vn(`${e.some(({value:o})=>o)?`${t._texts[e[1]?"plural":"singular"]}`.replace("%d",`${e.length}`):t.innerText}`);lo()&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){const t=T(this,"list");return t&&po(this).getElementById(t)}}),Us.define("u-datalist",kp);var Ks=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",go=Ks(),Pp=go?navigator.userAgent:"",Xs=/iPad|iPhone|iPod/.test(Pp),Ys;go&&/^Mac/i.test(((Ys=navigator.userAgentData)==null?void 0:Ys.platform)||navigator.platform);var Hp=go&&window.CSSStyleSheet&&document.adoptedStyleSheets,Np=typeof HTMLElement>"u"?class{}:HTMLElement,F=(t,e,o)=>o===void 0?t.getAttribute(e):(o===null?t.removeAttribute(e):t.getAttribute(e)!==o&&t.setAttribute(e,o),null),Bp=(t,e)=>{const o=t.shadowRoot||t.attachShadow({mode:"open"});if(o.querySelector("slot")||o.append(Qs("slot")),!o.querySelector("style"))if(!Hp)o.append(Qs("style",null,e));else{const n=new CSSStyleSheet;n.replaceSync(e),o.adoptedStyleSheets=[n]}return o},qp=t=>{var e;const o=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return o instanceof Document||o instanceof ShadowRoot?o:document},Up=t=>{var e;const o=F(t,"aria-label")||"";return[...(((e=F(t,"aria-labelledby"))==null?void 0:e.split(" "))||[]).map(i=>document.getElementById(i.trim()||"-")),...Array.from(t.labels||[])].reduce((i,r)=>{var a;return i||((a=r?.innerText)==null?void 0:a.trim())||""},o).trim()},Fp=t=>{if(!t||!go)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Qs=(t,e,o)=>{const n=document.createElement(t);if(o&&(n.textContent=o),e)for(const[i,r]of Object.entries(e))F(n,i,r);return n},zp={define:(t,e)=>!Ks()||window.customElements.get(t)||window.customElements.define(t,e)},bo="value",Qn="max",Vp=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
|
|
195
|
+
`,Hd=[.1,.2,.25,.5,1];function Nd(t,{aspect:e,type:n}){const i=n==="stacked",s=t[0].reduce((f,p,b)=>{const y=t.map(w=>w[b].number),_=y.reduce((w,x)=>w+x,0);return Math.max(f,...i?[_]:y)},0),r=s/10,a=10**`${Math.round(r)}`.length,l=r/a,c=(Hd.find(f=>f>l)||1)*a,u=Math.ceil(s/c)*c,d=R("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure"});e&&d.style.setProperty("--mtdsc-chart-aspect",e),d.style.setProperty("--bars",`${t[0]?.length-1}`),d.style.setProperty("--groups",`${t.length-1}`),d.style.setProperty("--total",`${u}`);const m=d.appendChild(R("div",{class:"axisSteps"})),h=d.appendChild(R("div",{class:"axisGroups"}));return Array.from({length:u/c+1},(f,p)=>qd(c*p)).reverse().map(f=>m.append(R("div",{class:"axisStep","data-label":f}))),{total:u,groups:h,axis:d}}const qd=new Intl.NumberFormat().format;function Bd(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=R("div",{class:"axisGroup","data-label":e}),s=i.appendChild(R("div",{class:"axisGroupContent"}));return t.slice(1).map(r=>r[o+1]).map(({tooltip:r,color:a,number:l})=>{const c=R("div",{"aria-label":r,"data-event":n,class:"bar",role:"img",tabindex:"0"});return c.style.setProperty("--color",a),c.style.setProperty("--value",`${l}`),s.appendChild(c)}),i})}function Ud(t,{total:e,type:n,variant:o}){const i=Number.parseFloat(n||"0")||0,s=R("div",{class:"axisGroup"});return t.slice(1).forEach(([,...r])=>{const a=R("div",{class:"lineContainer",role:"list"});a.style.setProperty("--color",r[0].color);const l=zd(r.map(({number:d},m,{length:h})=>[100/(h-1)*m,100-d/e*100]),i/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");g(c,"aria-hidden","true"),g(c,"preserveAspectRatio","none"),g(c,"viewBox","0 0 100 100");const u=document.createElementNS("http://www.w3.org/2000/svg","path");if(g(u,"class","line"),g(u,"d",l),g(u,"fill","none"),g(u,"stroke","currentColor"),o==="area"){const d=u.cloneNode(!0);g(d,"d",`M-100,100 L${l.slice(1)}L200,100`),g(d,"class","lineShade"),c.append(d)}r.forEach(({number:d,tooltip:m,event:h})=>{const f=R("div",{role:"listitem"}),p=R("div",{"aria-label":m,"data-event":h,tabindex:"0",class:"linePoint",role:"img"});p.style.setProperty("--value",`${d}`),f.appendChild(p),a.append(f)}),a.appendChild(c).append(u),s.append(a)}),s}const zd=(t,e)=>t.map(([n,o],i,s)=>i?Fd(i,s,e):`M${n},${o}`).join(" "),_r=([t,e],[n,o])=>[t+n,e+o],Sr=([t,e],[n,o])=>[t-n,e-o],xr=(t,[e,n])=>[t*e,t*n],Fd=(t,e,n)=>{const o=e[t-1],i=e[t],[s,r]=_r(o,xr(n,Sr(i,e[t-2]||o))),[a,l]=_r(i,xr(n,Sr(o,e[t+1]||i)));return`C ${s},${r} ${a},${l} ${i[0]},${i[1]}`};function Wd(t,{aspect:e,variant:n}){const o=document.createElementNS("http://www.w3.org/2000/svg","svg");e&&o.style.setProperty("--mtdsc-chart-aspect",e),g(o,"class","pie"),g(o,"viewBox","0 0 100 100");let i=0;const s=50,r=n==="doughnut"?25:0,a=t.slice(1).reduce((l,[,c])=>l+c.number,0);return t.slice(1).forEach(([,{tooltip:l,number:c,event:u,color:d}])=>{if(!c)return;const m=document.createElementNS("http://www.w3.org/2000/svg","path"),h=i/a;i+=c;const f=Math.min(i/a,.99999),p=f-h>.5?1:0,b=2*Math.PI*(h-.25),y=2*Math.PI*(f-.25),_=Math.cos(b),w=Math.sin(b),x=Math.cos(y),C=Math.sin(y),k=`M ${s+r*_} ${s+r*w} L ${s+s*_} ${s+s*w} A ${s} ${s} 0 ${p} 1 ${s+s*x} ${s+s*C} L ${s+r*x} ${s+r*C} A ${r} ${r} 0 ${p} 0 ${s+r*_} ${s+r*w}`;m.style.setProperty("--color",d),g(m,"aria-label",l),g(m,"data-event",u),g(m,"d",k),g(m,"role","img"),g(m,"tabindex","0"),o.appendChild(m)}),o}const Er="click keydown mousemove mouseout",$r="mtds-chart-tooltip",ft=U()?document.getElementById($r)||R("div",{"aria-hidden":"true",class:T._tooltip,hidden:"",id:$r}):null;class Vd extends Gc{#t;#e;static get observedAttributes(){return["data-variant","data-aspect"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){const e=qt(()=>this.attributeChangedCallback(),100),n=new ResizeObserver(()=>this.handleResize());n.observe(this),this.#e=()=>n.disconnect(),this.#t=Be(this,e,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),requestAnimationFrame(()=>this.attributeChangedCallback()),I(this,Er,this)}disconnectedCallback(){ft&&(ft.hidden=!0),cr(this,Er,this),this.#e?.(),this.#t?.(),this.#t=this.#e=void 0}attributeChangedCallback(){const e=Xd(this.querySelector("table"));if(!e[0])return;Array.from(this.shadowRoot?.children||[]).map(c=>c.remove());const[n,o]=(g(this,"data-variant")||"column").split("-"),i=g(this,"data-aspect")||void 0,s=R("div",{"aria-hidden":"hidden",class:"legends",role:"group"});e.slice(1).forEach(([{value:c,color:u}])=>{const d=R("div",{class:"legend"},c);s.appendChild(d).style.setProperty("--color",u)});const{axis:r,groups:a,total:l}=Nd(e,{aspect:i,type:o});(n==="column"||n==="bar")&&a.append(...Bd(e)),(n==="line"||n==="area")&&a.append(Ud(e,{total:l,variant:n,type:o})),(n==="doughnut"||n==="pie")&&this.shadowRoot?.append(Wd(e,{aspect:i,variant:n})),this.shadowRoot?.append(r,s),Kc(this,Pd)}handleEvent(e){e.type==="click"||e.type==="keydown"?Gd(e,this):jd(e)}handleResize(){const e=this.shadowRoot?.firstElementChild,n=e?.firstElementChild;e?.classList.toggle("axisStepsYHalf",(n?.offsetHeight||0)<400),e?.classList.toggle("axisStepsXHalf",(n?.offsetWidth||0)<500)}}function Gd(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&g(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let Tr="";function jd(t){if(!ft)return;ft?.isConnected||document.body.append(ft);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(ft.style.transform=`translate(${Math.min(t.clientX,window.innerWidth)}px, ${t.clientY}px)`),n!==Tr&&(n&&(ft.textContent=n),Tr=n,ft.hidden=!n)}const ao=t=>t?.textContent?.trim()||"",Xd=t=>Array.from(t?.rows||[]).map((e,n,{length:o})=>Array.from(e.cells,(i,s)=>{const r=ao(e.cells[0]),a=ao(t?.rows[0].cells[s]),l=ao(i),c=o===2?`${a}: ${l}`:`${r}: ${l}${a?` (${a})`:""}`;return g(i,"tabindex","-1"),{number:s&&n&&Number.parseFloat(l)||0,event:i.querySelector("a,button")&&`${n}-${s}`,color:`var(--mtdsc-chart-color-${n}-${s}, var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base)))`,value:l,tooltip:g(i,"data-tooltip")||c}}));jc("mtds-chart",Vd);const Cr=new WeakSet,P=t=>!Cr.has(t)&&Cr.add(t),O=(t,e,n)=>window.dsWarnings===!1||console.warn(`\x1B[1m@mattilsynet/design:\x1B[m ${t} is deprecated, please use ${e}:`,n),Kd=yt("togglegroup"),Ar=T.button.split(" "),Yd=()=>{for(const t of Kd){P(t)&&!t.hasAttribute("data-toggle-group")&&(g(t,"data-toggle-group","Valgknapper"),O('Only setting class="styles.togglegroup"','data-toggle-group="LABEL-HERE" attribute also for better accessibility',t));for(const e of t.getElementsByTagName("label"))P(e)&&!e.classList.contains(Ar[0])&&(e.classList.add(...Ar),O('Only setting class="styles.button"','<label class="styles.button">',e))}},Qd=yt("breadcrumbs"),Jd=()=>{for(const t of Qd)P(t)&&t.nodeName!=="DS-BREADCRUMBS"&&(t.classList.add(...T.breadcrumbs.split(" ")),O('Only setting class="styles.breadcrumbs"','<ds-breadcrumbs class="styles.breadcrumbs">',t))},Zd=yt("errorsummary"),tu=()=>{for(const t of Zd)P(t)&&t.nodeName!=="DS-ERROR-SUMMARY"&&O('Only setting class="styles.errorsummary"','<ds-error-summary class="styles.errorsummary">',t)},eu=yt("dialog"),kr=()=>{for(const t of eu){if(P(t)){const e=g(t,"data-closedby");e&&(g(t,"closedby",e),O(`<dialog data-closedby="${e}">`,`<dialog closedby="${e}">`,t)),t.hasAttribute("data-variant")&&O('<dialog data-variant="drawer">','<dialog data-placement="center|left|right|top|bottom">',t)}t.isConnected&&t.showModal&&t.close&&(t.matches('[open][data-modal]:not([data-modal="false"]):not(:modal)')?(O('<dialog data-modal="true">','.showModal() or <button command="show-modal" commandfor="DIALOG-ID"></button>',t),g(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(g(t,"open",""),t.close()))}},nu=()=>{for(const t of document.querySelectorAll("[data-count]"))if(P(t)){const e=g(t,"data-count");t.classList.add(...T.validation.split(" ")),g(t,"data-limit",e),O(`data-count="${e}"`,`class="styles.validation" data-field="counter" data-limit="${e}"`,t)}},ou=()=>{for(const t of document.querySelectorAll("[data-command]"))if(P(t)){const e=g(t,"data-command");e==="row"?O(`<${t.nodeName.toLowerCase()} data-command="${e}">`,`<tr data-clickdelegatefor="${t.nodeName}-ID">`,t):O(`<button data-command="${e}">`,`<button command="${e?.replace("toggle-app-expanded","show-modal")}" commandfor="TARGET-ID">`,t)}},iu=U()?document.getElementsByTagName("u-tabs"):[],su=()=>{for(const t of iu)P(t)&&O("u-tabs","ds-tabs",t)},lo=T.suggestion.split(" "),ru=U()?document.getElementsByTagName("u-combobox"):[],au=U()?document.getElementsByTagName("ds-suggestion"):[],lu=()=>{for(const t of ru)P(t)&&(t.classList.add(...lo),O("<u-combobox>",'<ds-suggestion class="styles.suggestion">',t));for(const t of au)P(t)&&!t.classList.contains(lo[0])&&(t.classList.add(...lo),O("Only using <ds-suggestion>",'<ds-suggestion class="styles.suggestion">',t))},cu=({target:t})=>{if(!(t instanceof Element))return;const e=t?.closest("tr")?.querySelector('[data-command="row"]');e&&!t?.closest('a,button,label,input,select,textarea,[role="button"]')&&e.click();const o=t?.closest("dialog");o&&t?.closest('[data-command="close"]')&&o.close()},du=yt("field"),Fe=new Set,uu=()=>{for(const t of du)t.nodeName!=="DS-FIELD"&&(P(t)||O('Only setting class="styles.field"','<ds-field class="styles.field">',t),!Fe.has(t)&&Fe.add(t)&&ke.prototype.connectedCallback.call(t))},fu=()=>{for(const t of Fe)ke.prototype.disconnectedCallback.call(t),Fe.delete(t)},mu=`[data-description], .${T.field.split(" ")[0]} label + p`,pu=()=>{for(const t of document.querySelectorAll(mu))P(t)&&t.getAttribute("data-field")!=="description"&&(g(t,"data-field","description"),O("Descriptions created by data-description of <p> only",'data-field="data-description"',t))},hu=yt("validation"),gu=()=>{for(const t of hu)P(t)&&!t.hasAttribute("data-field")&&(g(t,"data-field","validation"),O('Only setting class="styles.validation"','class="styles.validation" data-field="validation"',t))},bu=()=>{for(const t of document.querySelectorAll("[popover][data-position]"))P(t)&&(g(t,"data-placement",g(t,"data-position")),O("data-position","data-placement",t))},vu=qt(()=>{U()&&(nu(),ou(),Jd(),kr(),tu(),pu(),gu(),bu(),uu(),Yd(),lu(),su())},200);ut("deprecations",()=>[fu,I(document,"click",cu,Zt),I(document,"toggle",kr,!0),Be(document,vu,{attributeFilter:["class","data-command","data-count","data-description","data-variant","open"],attributes:!0,childList:!0,subtree:!0})]);const yu=qt(t=>{if(t.animationName!==T._logo)return;const e=t.target.closest?.(`.${T.logo.split(" ")[0]}`),n=e?.firstElementChild;if(n instanceof SVGSVGElement){for(const l of document.head.querySelectorAll("link[rel~='icon']"))l.setAttribute("rel","disabled");const o=e?.hasAttribute("data-env"),i=window.getComputedStyle(n),s=i.getPropertyValue("color"),r=i.getPropertyValue("--mtdsc-logo-background"),a=n.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${s}"`);document.head.appendChild(R("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${o?"none":r}' width='51' height='51' x='2' y='2' stroke='${s}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${o?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}},200);ut("logo",()=>[I(document,"animationend",yu)]);const wu=T.popover.split(" ")[0];function _u({target:t}){const e=t?.closest?.('a,button,[role="button"]'),n=e instanceof HTMLButtonElement,o=e&&g(e,"popovertarget"),i=o?document.getElementById(o):e?.closest("[popover]");if(!(o&&n)&&i?.classList.contains(wu)&&e){const s=g(e,"popovertargetaction"),r=s==="show"||(s==="hide"?!1:void 0);if(n&&!s&&i.contains(e))return;i instanceof HTMLElement&&i.popover&&i.togglePopover(r)}}ut("popover",()=>[I(document,"click",_u)]);const Su=U()?document.getElementsByTagName("table"):[],xu=()=>{for(const t of Su){const e=Array.from(t.tHead?.rows[0]?.cells||[],n=>n.innerText.trim());for(const n of t.tBodies)for(const o of n.rows)for(const i of o.cells)g(i,"data-th",e[i.cellIndex]||":empty")}};ut("table",()=>[Be(document,qt(xu,200),{attributeFilter:["data-mobile"],attributes:!0,childList:!0,subtree:!0})]);const Lr=T.toast.split(" ")[0],We="data-sort";function Eu({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(g(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(We)||g(n,We,`${Date.now()}`),g(n,"tabindex","0"),[...document.querySelectorAll(`.${Lr}[open]`)].sort((i,s)=>Number(g(s,We))-Number(g(i,We))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function $u({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Lr)&&g(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),r=o.top+Number.parseInt(i.paddingTop,10),a=r+Number.parseInt(s.height,10),l=o.right-Number.parseInt(i.paddingRight,10),c=l-Number.parseInt(s.width,10);r<=n&&n<=a&&c<=e&&e<=l&&t.close()}}ut("toast",()=>[I(document,"animationstart",Eu),I(document,"click",$u)]),U()&&wi(document.getElementById("mtds-tooltip")||R("div",{class:T._tooltip,id:"mtds-tooltip",popover:"manual"}));const co=`.${T.field.split(" ")[0]}`,Tu=`${co} :is(input,textarea,select)`,Cu="ds-suggestion,u-combobox",Au=T.validation.split(" ")[0],Ve=t=>t instanceof HTMLFormElement&&g(t,"data-validation")==="form",uo=t=>t.closest(co),fo=t=>t?.querySelectorAll(Tu)||[],Ge=t=>t?.getElementsByClassName(Au)||[],Rr=t=>{const e=!t.clientHeight||t.disabled||t.readOnly||g(t,"aria-readonly")==="true"||g(t,"aria-disabled")==="true",n=t.closest(Cu)?.items,o=g(t,"aria-required")!=="true"||!!n?.length;return n&&t.setCustomValidity(e||o?"":"Required"),e?!1:t.matches(":user-invalid")},Mr=t=>{const e=t.target?.form||t.target;let n;if(Ve(e)){for(const o of e.querySelectorAll(co)){const i=[...fo(o)].find(Rr);!n&&i&&(n=i);for(const s of Ge(o))g(s,"hidden",i?null:"")}for(const o of e.querySelectorAll("fieldset")){const i=[...fo(o)].some(Rr);for(const s of Ge(o))uo(s)||g(s,"hidden",i?null:"")}n&&(t.preventDefault(),n.focus())}},ku=({target:t})=>{const e=t;if(!Ve(e.form))for(const n of Ge(e.closest("fieldset")||uo(e)))g(n,"hidden","")},Lu=t=>Ve(t.target.form)&&t?.preventDefault(),Ru=U()?Ge(document):[],Mu=()=>{for(const t of Ru)if(!t.hasAttribute("data-validation")){const e=fo(uo(t))[0];g(t,"data-validation","form"),Ve(e?.form)&&g(t,"hidden","")}};ut("validations",()=>[I(document,"input comboboxbeforeselect",ku,!0),I(document,"invalid",Lu,!0),I(document,"invalid",qt(Mr,10),Zt),I(document,"submit",Mr,!0),Be(document,Mu,{childList:!0,subtree:!0})]);var Ir=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",je=Ir(),Iu=je?navigator.userAgent:"",Or=/iPad|iPhone|iPod/.test(Iu),Dr;je&&/^Mac/i.test(((Dr=navigator.userAgentData)==null?void 0:Dr.platform)||navigator.platform);var Ou=je&&window.CSSStyleSheet&&document.adoptedStyleSheets,Du=typeof HTMLElement>"u"?class{}:HTMLElement,q=(t,e,n)=>n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null),Pu=(t,e)=>{const n=t.shadowRoot||t.attachShadow({mode:"open"});if(n.querySelector("slot")||n.append(Pr("slot")),!n.querySelector("style"))if(!Ou)n.append(Pr("style",null,e));else{const o=new CSSStyleSheet;o.replaceSync(e),n.adoptedStyleSheets=[o]}return n},Hu=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},Nu=t=>{var e;const n=q(t,"aria-label")||"";return[...(((e=q(t,"aria-labelledby"))==null?void 0:e.split(" "))||[]).map(i=>document.getElementById(i.trim()||"-")),...Array.from(t.labels||[])].reduce((i,s)=>{var r;return i||((r=s?.innerText)==null?void 0:r.trim())||""},n).trim()},qu=t=>{if(!t||!je)return null;if(window.uElementsId||(window.uElementsId={}),!t.id){const e=t.nodeName.toLowerCase();window.uElementsId[e]||(window.uElementsId[e]=1),t.id=`:${e}${window.uElementsId[e]++}`}return t.id},Pr=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))q(o,i,s);return o},Bu={define:(t,e)=>!Ir()||window.customElements.get(t)||window.customElements.define(t,e)},Xe="value",mo="max",Uu=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
|
|
209
196
|
:host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
|
|
210
197
|
:host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
|
|
211
198
|
@media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
|
|
212
|
-
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,
|
|
199
|
+
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,Hr=class extends Du{constructor(){var t;super(),this._skipAttrChange=!1,Pu(this,Uu),this._internals=(t=this.attachInternals)==null?void 0:t.call(this)}static get observedAttributes(){return["aria-label","aria-labelledby",Xe,mo]}connectedCallback(){q(this,"aria-valuemin","0"),q(this,"aria-valuemax","100"),q(this,"role",Or?"img":"progressbar"),this.attributeChangedCallback()}attributeChangedCallback(){if(this._skipAttrChange||!this.hasAttribute("role"))return;this._skipAttrChange=!0;const t=this.position,e=Math.max(0,Math.round(t*100));this.style.setProperty("--percentage",`${e}%`);let n=Nu(this);Or&&(n=`${n.replace(/\(\d+%\)$/,"")} (${e}%)`.trim()),q(this,"aria-busy",`${t===-1}`),q(this,"aria-label",n),q(this,"aria-labelledby",null),q(this,"aria-valuenow",t===-1?null:`${e}`),this._skipAttrChange=!1}get labels(){var t;const e=(t=this._internals)==null?void 0:t.labels;if(e)return e;const n=qu(this),o=this.closest("label:not([for])");return o&&q(o,"for",n),Hu(this).querySelectorAll(`label[for="${n}"]`)}get position(){return this.hasAttribute(Xe)?Math.min(this.value/this.max,1):-1}get value(){return Math.min(Nr(this,Xe),this.max)}set value(t){qr(this,Xe,t)}get max(){return Nr(this,mo,1)}set max(t){qr(this,mo,t,1)}};Hr.formAssociated=!0;var Nr=(t,e,n=0)=>{const o=q(t,e),i=Number(o);return o===null?n:Number.isFinite(i)&&Math.max(n,i)||n},qr=(t,e,n,o=0)=>{const i=Number(n);if(Number.isFinite(i))return q(t,e,`${Math.max(o,i)||o}`);throw new Error(`Failed to set the '${e}' property on 'UHTMLProgressElement': The provided double value is non-finite.`)};return Bu.define("u-progress",Hr),S.DSBreadcrumbsElement=Ei,S.DSErrorSummaryElement=$i,S.DSFieldElement=ke,S.DSPaginationElement=Oi,S.DSSuggestionElement=Pi,S.DSTabElement=Bi,S.DSTabListElement=qi,S.DSTabPanelElement=Ui,S.DSTabsElement=Ni,S.UHTMLComboboxElement=en,S.UHTMLComboboxShadowRoot=aa,S.UHTMLComboboxStyle=tn,S.UHTMLDataListElement=ns,S.UHTMLDataListShadowRoot=Pc,S.UHTMLDataListStyle=jn,S.UHTMLTabElement=fn,S.UHTMLTabListElement=pe,S.UHTMLTabListShadowRoot=ka,S.UHTMLTabListStyle=un,S.UHTMLTabPanelElement=mn,S.UHTMLTabPanelShadowRoot=Ra,S.UHTMLTabPanelStyle=dn,S.UHTMLTabShadowRoot=La,S.UHTMLTabStyle=Ca,S.UHTMLTabsElement=me,S.UHTMLTabsShadowRoot=Aa,S.UHTMLTabsStyle=cn,S.analytics=ur,S.fixLawHtml=yr,S.getLawChecked=Td,S.pagination=Ii,S.parseLawIds=kd,S.parseLawMeta=Ld,S.setLawChecked=Ad,S.setTooltipElement=wi,S.styles=Wc,S.toast=D,S.toggleAppExpanded=hr,S.toggleLawChecked=Cd,S.version=Fc,Object.defineProperty(S,Symbol.toStringTag,{value:"Module"}),S})({});
|