@mattilsynet/design 2.2.7 → 2.2.8
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/app/app-observer.js +1 -1
- package/mtds/app/app-toggle.js +10 -26
- package/mtds/app/app-toggle.js.map +1 -1
- package/mtds/app/app-toggle2.js +26 -10
- package/mtds/app/app-toggle2.js.map +1 -1
- package/mtds/app/app.js +1 -1
- package/mtds/dialog/dialog-observer.js +20 -19
- package/mtds/dialog/dialog-observer.js.map +1 -1
- package/mtds/dialog/dialog.stories.d.ts +3 -1
- package/mtds/index.d.ts +0 -1
- package/mtds/index.iife.js +14 -14
- package/mtds/map/map-element.d.ts +7 -3
- package/mtds/map/map-element.js +54 -46
- package/mtds/map/map-element.js.map +1 -1
- package/mtds/map/map.css.js +30 -6
- package/mtds/map/map.css.js.map +1 -1
- package/mtds/map.iife.js +47 -8
- package/mtds/map.js +5 -3
- package/mtds/map.js.map +1 -1
- package/mtds/package.json.js +1 -1
- package/mtds/popover/popover-observer.js +29 -26
- package/mtds/popover/popover-observer.js.map +1 -1
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +41 -42
- package/mtds/styles.module.css.js +72 -74
- package/mtds/styles.module.css.js.map +1 -1
- package/package.json +5 -3
package/mtds/index.iife.js
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
var mtds=function(M){"use strict";var os=Object.defineProperty,ln=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,cn=(t,e,n)=>e in t?os(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,as=(t,e)=>{for(var n in e||(e={}))is.call(e,n)&&cn(t,n,e[n]);if(ln)for(var n of ln(e))ss.call(e,n)&&cn(t,n,e[n]);return t},xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",dn=xt&&/android/i.test(navigator.userAgent),rs=xt&&/firefox/i.test(navigator.userAgent),ls=xt&&/iPad|iPhone|iPod/.test(navigator.userAgent),un;xt&&/^Mac/i.test(((un=navigator.userAgentData)==null?void 0:un.platform)||navigator.platform);var cs="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",ds=typeof HTMLElement>"u"?class{}:HTMLElement;function y(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var fn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Dt=(t,...e)=>fn("add",t,e),us=(t,...e)=>fn("remove",t,e),Nt=new WeakMap,
|
|
1
|
+
var mtds=function(M){"use strict";var os=Object.defineProperty,ln=Object.getOwnPropertySymbols,is=Object.prototype.hasOwnProperty,ss=Object.prototype.propertyIsEnumerable,cn=(t,e,n)=>e in t?os(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,as=(t,e)=>{for(var n in e||(e={}))is.call(e,n)&&cn(t,n,e[n]);if(ln)for(var n of ln(e))ss.call(e,n)&&cn(t,n,e[n]);return t},xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",dn=xt&&/android/i.test(navigator.userAgent),rs=xt&&/firefox/i.test(navigator.userAgent),ls=xt&&/iPad|iPhone|iPod/.test(navigator.userAgent),un;xt&&/^Mac/i.test(((un=navigator.userAgentData)==null?void 0:un.platform)||navigator.platform);var cs="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",ds=typeof HTMLElement>"u"?class{}:HTMLElement;function y(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var fn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Dt=(t,...e)=>fn("add",t,e),us=(t,...e)=>fn("remove",t,e),Nt=new WeakMap,ge=(t,e)=>{if(e===void 0)return Nt.get(t);try{Nt.get(t).disconnect(),Nt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Nt.set(t,n)}},fs=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},ps=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},ms=0,pn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++ms).toString(32)}`),t.id):"",Ht=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))y(o,i,s);return o},hs={define:(t,e)=>!xt||window.customElements.get(t)||window.customElements.define(t,e)},gs=t=>{var e;const n=y(t,"aria-label")||"";return[...(((e=y(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},nt,bs=0,be=t=>{nt||(nt=Ht("div"),nt.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",y(nt,"aria-live","assertive")),nt.isConnected||document.body.append(nt),t&&(nt.textContent=`${t}${bs++%2?" ":""}`)},mn=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},ve=!1,_e=t=>(t?.type==="mouseup"&&(ve=!1),t?.type==="mousedown"&&(ve=!0,Dt(document,"mouseup",_e,{once:!0})),ve),vs=`:host(:not([hidden])) { display: block; -webkit-tap-highlight-color: rgba(0, 0, 0, 0) } /* Must be display block in Safari to allow focus inside */
|
|
2
2
|
:host(:not([data-multiple])) ::slotted(data),
|
|
3
3
|
:host([data-multiple="false"]) ::slotted(data) { display: none } /* Hide data if not multiple */
|
|
4
4
|
::slotted(input[inputmode="none"]) { outline: none } /* Hide temporary foucs outline flash */
|
|
5
5
|
::slotted(del) { text-decoration: none }
|
|
6
6
|
::slotted(data:not([hidden])) { display: inline-block; pointer-events: none }
|
|
7
7
|
::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto; cursor: pointer }
|
|
8
|
-
::slotted(data:focus) { ${cs} }`,hn="beforeinput,blur,focus,click,input,keydown,mousedown",gn={once:!0,passive:!0},_s=rs&&!dn,ys=dn||ls,vn="".repeat(5),Bt="false",Ft={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},_e=class extends ds{constructor(){super(),this._item="",this._speak="",this._texts=as({},Ft),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Ht("slot"),Ht("style",bs))}static get observedAttributes(){return Object.keys(Ft).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ps(this),Dt(this,hn,this,!0),he(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ut,0,this),setTimeout(qt,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];Ft[o]&&(this._texts[o]=n||Ft[o])}disconnectedCallback(){he(this,!1),us(this,hn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;we(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&xs(this),t.type==="click"&&Ss(this,t),t.type==="focus"&&ws(this,t),t.type==="input"&&Ts(this,t),t.type==="keydown"&&Cs(this,t),t.type==="mousedown"&&be(t),t.type==="mutation"&&Ut(this,t))}get multiple(){var t;return((t=y(this,"data-multiple"))!=null?t:Bt)!==Bt}set multiple(t){y(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=y(this,"data-creatable"))!=null?t:Bt)!==Bt}set creatable(t){y(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},ot=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},ye=t=>t instanceof HTMLDataElement,we=({control:t})=>t?.disabled||t?.readOnly||!1,Ut=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=gs(a),d=l.endsWith(vn)?y(a,"data-label"):l;y(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const m=[];for(const{addedNodes:g,removedNodes:x}of e?.detail||[]){for(const w of g)ye(w)&&m.unshift(w);for(const w of x)ye(w)&&m.push(w)}const p=c?m.length===1:m[0]===o;if(o&&p){const g=y(a,"aria-expanded"),x=y(a,"inputmode"),w=ye(o)?a:o,S=!m[0].isConnected;t._speak=`${i[S?"removed":"added"]} ${ot(m[0])}, `,(ys||o===a)&&ge(t._speak),a!==w&&(y(a,"aria-expanded",null),y(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var N;y(a,"aria-expanded",g),y(a,"inputmode",S?"none":x),(N=w?.focus)==null||N.call(w),y(a,"inputmode",x),t._speak="",_s?Dt(t,"blur",()=>Ut(t),gn):setTimeout(Ut,100,t)},100)}let v=0;const h=t.querySelector("select"),_=we(t)?"":`${i.remove}, `;for(const g of s){const x=h?.options[v],w=ot(g),S=g.value||w,N=`${t._speak}${w}, ${_}${++v} ${i.of} ${s.length}`;y(g,"role","button"),y(g,"value",S),y(g,"tabindex","-1"),y(g,"aria-label",N),x?Object.assign(x,{textContent:w,value:S}):h?.appendChild(new Option(w,S,!0,!0))}h&&y(h,"multiple",c?"":null);for(const g of[...h?.options||[]].slice(v))g.remove();!c&&v>1&&console.warn("u-combobox: Multiple <data> found in single mode."),y(r,"aria-multiselectable",`${c}`),y(a,"list",pn(r)),y(a,"aria-label",`${t._speak}${u}${vn}`),r.hasAttribute("popover")&&(y(a,"popovertarget",pn(r)),y(r,"popover","manual"));const b=ot(s[0]);b!==t._item&&qt(t),t._item=b,bn(t),_n(t),(n=he(t))==null||n.takeRecords()},bn=t=>{var e;t.clear&&y(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||we(t))},_n=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=y(s,"value"))!=null?e:ot(s);y(s,"aria-label",n?`${n}${ot(s)}`:null),y(s,"selected",i.includes(a)?"":null)}},qt=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&mn(n,i,i?"insertText":"deleteContent")},xe=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(p=>(y(p,"label")||ot(p)).trim().toLowerCase()===d);const m={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",m))||(u=[...i].find(p=>p.selected)),e)return _n(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):qt(t),ge(o.invalid));for(const p of i)p.selected=p===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Ht("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return qt(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},ws=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),ge()},xs=t=>be()||setTimeout(Es,0,t),Es=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||xe(t),t._focus=void 0)},Ss=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&mn(a,"","deleteContentBackward"),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:m}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=m&&n<=d)return c.focus()}i===t&&a?.focus()},Ts=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||xe(t,!1);bn(t)},Cs=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Dt(o,"blur",()=>y(o,"tabindex",null),gn)),!(!l&&fs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const m=y(i,"form");return y(i,"form","#"),requestAnimationFrame(()=>y(i,"form",m)),xe(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};hs.define("u-combobox",_e);var Ee=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",$s=Ee&&/android/i.test(navigator.userAgent),yn;Ee&&/^Mac/i.test(((yn=navigator.userAgentData)==null?void 0:yn.platform)||navigator.platform);var ks=`${$s?"data":"aria"}-labelledby`,Se=":host(:not([hidden])) { display: block }",Vt=typeof HTMLElement>"u"?class{}:HTMLElement;function A(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var wn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},As=(t,...e)=>wn("add",t,e),Ls=(t,...e)=>wn("remove",t,e),zt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Tn("slot"),Tn("style",e)),Wt=new WeakMap,xn=(t,e)=>{if(e===void 0)return Wt.get(t);try{Wt.get(t).disconnect(),Wt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Wt.set(t,n)}},Is=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},En=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},Ms=0,Sn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ms).toString(32)}`),t.id):"",Tn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},jt={define:(t,e)=>!Ee||window.customElements.get(t)||window.customElements.define(t,e)},Os=Se,Rs=Se,Ps=Se,Ds=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Gt="aria-controls",ht="aria-selected",Cn=class extends Vt{constructor(){super(),zt(this,Os)}get tabList(){return Yt("u-tablist",this)[0]||null}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){$e(this.tabs[t])}get tabs(){return Yt("u-tab",this)}get panels(){return Yt("u-tabpanel",this)}},$n=class extends Vt{constructor(){super(),zt(this,Rs)}connectedCallback(){A(this,"role","tablist"),As(this,"click,keydown",this),xn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ls(this,"click,keydown",this),xn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&$e(n[o]),t.type==="keydown"&&!Is(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Kt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){$e(this.tabs[t])}},Te=!1,kn=class extends Vt{static get observedAttributes(){return["id",ht,Gt]}constructor(){super(),zt(this,Ds)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Te&&this.selected&&this.tabList){Te=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Yt("u-tabpanel",this.tabsElement||this),n=Ce(this,e[t.indexOf(this)]);n&&A(n,ks,Sn(this)),t.forEach((o,i)=>{const s=Ce(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,Gt,s?.id||null),s&&(s.hidden=s!==n)}),Te=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ce(this)}},An=class extends Vt{static get observedAttributes(){return["hidden"]}constructor(){super(),zt(this,Ps)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Kt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ns(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Gt}="${this.id}"]`;return En(this).querySelectorAll(t)}},Yt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ce=(t,e)=>{const n=A(t,Gt)||Sn(e),o=En(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Kt=t=>[...t].findIndex(e=>A(e,ht)==="true"),$e=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ns=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');jt.define("u-tabs",Cn),jt.define("u-tablist",$n),jt.define("u-tab",kn),jt.define("u-tabpanel",An);const Hs="2.2.7",Ln="_alert_1a0v1_1 _ds-alert_14b25_3",In="_app_1a0v1_1",Mn="_sticky_1a0v1_1",On="_avatar_1a0v1_1 _ds-avatar_14b25_1",Rn="_badge_1a0v1_1",Pn="_breadcrumbs_1a0v1_1 _ds-breadcrumbs_14b25_5",Dn="_button_1a0v1_1 _ds-button_14b25_1",Nn="_card_1a0v1_1",Hn="_group_1a0v1_1",Bn="_chip_1a0v1_1 _ds-chip_14b25_5",Fn="_details_1a0v1_1 _ds-details_14b25_3",Un="_dialog_1a0v1_1 _ds-dialog_14b25_5",qn="__drawer_1a0v1_1",Vn="_divider_1a0v1_1",zn="_errorsummary_1a0v1_1 _ds-error-summary_14b25_5",Wn="__errorsummary_1a0v1_1",jn="_field_1a0v1_1 _ds-field_14b25_1",Gn="__datalist_1a0v1_1",Yn="_affixes_1a0v1_1 _ds-field-affixes_14b25_3",Kn="_fieldset_1a0v1_1 _ds-fieldset_14b25_3",Xn="_helptext_1a0v1_1 _ds-focus_14b25_1",Qn="_input_1a0v1_1 _ds-input_14b25_1",Jn="_grid_1a0v1_1",Zn="_flex_1a0v1_1",to="_link_1a0v1_1",eo="_logo_1a0v1_1",no="_map_1a0v1_1",oo="_pagination_1a0v1_1 _ds-pagination_14b25_5",io="_popover_1a0v1_1",so="_progress_1a0v1_1",ao="__indeterminate_1a0v1_1",ro="_skeleton_1a0v1_1 _ds-skeleton_14b25_5",lo="__skeleton_1a0v1_1",co="_spinner_1a0v1_1",uo="_steps_1a0v1_1",fo="_table_1a0v1_1 _ds-table_14b25_5",po="__scrollShadow_1a0v1_1",mo="_tabs_1a0v1_1 _ds-tabs_14b25_5",ho="__scrollMask_1a0v1_1",go="_tag_1a0v1_1 _ds-tag_14b25_5",vo="_toast_1a0v1_1",bo="__toastClose_1a0v1_1",_o="__toastOpen_1a0v1_1",yo="__toastTimeout_1a0v1_1",wo="_togglegroup_1a0v1_1",xo="__tooltip_1a0v1_1",Eo="_heading_1a0v1_1 _ds-heading_14b25_1",So="_ingress_1a0v1_1",To="_muted_1a0v1_1",Co="_info_1a0v1_1",$o="_prose_1a0v1_1",ko="_validation_1a0v1_1 _ds-validation-message_14b25_1",Ao="_body_1a0v1_173",Lo="__checked_1a0v1_1",T={alert:Ln,app:In,sticky:Mn,avatar:On,badge:Rn,breadcrumbs:Pn,button:Dn,card:Nn,group:Hn,chip:Bn,details:Fn,dialog:Un,_drawer:qn,divider:Vn,errorsummary:zn,_errorsummary:Wn,field:jn,_datalist:Gn,affixes:Yn,fieldset:Kn,helptext:Xn,input:Qn,grid:Jn,flex:Zn,link:to,logo:eo,map:no,pagination:oo,popover:io,progress:so,_indeterminate:ao,skeleton:ro,_skeleton:lo,spinner:co,steps:uo,table:fo,_scrollShadow:po,tabs:mo,_scrollMask:ho,tag:go,toast:vo,_toastClose:bo,_toastOpen:_o,_toastTimeout:yo,togglegroup:wo,_tooltip:xo,heading:Eo,ingress:So,muted:To,info:Co,prose:$o,validation:ko,body:Ao,_checked:Lo},Bs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Lo,_datalist:Gn,_drawer:qn,_errorsummary:Wn,_indeterminate:ao,_scrollMask:ho,_scrollShadow:po,_skeleton:lo,_toastClose:bo,_toastOpen:_o,_toastTimeout:yo,_tooltip:xo,affixes:Yn,alert:Ln,app:In,avatar:On,badge:Rn,body:Ao,breadcrumbs:Pn,button:Dn,card:Nn,chip:Bn,default:T,details:Fn,dialog:Un,divider:Vn,errorsummary:zn,field:jn,fieldset:Kn,flex:Zn,grid:Jn,group:Hn,heading:Eo,helptext:Xn,info:Co,ingress:So,input:Qn,link:to,logo:eo,map:no,muted:To,pagination:oo,popover:io,progress:so,prose:$o,skeleton:ro,spinner:co,steps:uo,sticky:Mn,table:fo,tabs:mo,tag:go,toast:vo,togglegroup:wo,validation:ko},Symbol.toStringTag,{value:"Module"})),gt=Math.min,O=Math.max,Xt=Math.round,Qt=Math.floor,z=t=>({x:t,y:t}),Fs={left:"right",right:"left",bottom:"top",top:"bottom"},Us={start:"end",end:"start"};function Io(t,e,n){return O(t,gt(e,n))}function Jt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Mo(t){return t==="x"?"y":"x"}function Oo(t){return t==="y"?"height":"width"}const qs=new Set(["top","bottom"]);function Q(t){return qs.has(it(t))?"y":"x"}function Ro(t){return Mo(Q(t))}function Vs(t,e,n){n===void 0&&(n=!1);const o=Zt(t),i=Ro(t),s=Oo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=te(a)),[a,te(a)]}function zs(t){const e=te(t);return[ke(t),e,ke(e)]}function ke(t){return t.replace(/start|end/g,e=>Us[e])}const Po=["left","right"],Do=["right","left"],Ws=["top","bottom"],js=["bottom","top"];function Gs(t,e,n){switch(t){case"top":case"bottom":return n?e?Do:Po:e?Po:Do;case"left":case"right":return e?Ws:js;default:return[]}}function Ys(t,e,n,o){const i=Zt(t);let s=Gs(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(ke)))),s}function te(t){return t.replace(/left|right|bottom|top/g,e=>Fs[e])}function Ks(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xs(t){return typeof t!="number"?Ks(t):{top:t,right:t,bottom:t,left:t}}function ee(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 No(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Ro(e),r=Oo(a),c=it(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[r]/2-i[r]/2;let p;switch(c){case"top":p={x:d,y:o.y-i.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-i.width,y:u};break;default:p={x:o.x,y:o.y}}switch(Zt(e)){case"start":p[a]-=m*(n&&l?-1:1);break;case"end":p[a]+=m*(n&&l?-1:1);break}return p}const Qs=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=No(l,o,c),m=o,p={},v=0;for(let h=0;h<r.length;h++){const{name:_,fn:b}=r[h],{x:g,y:x,data:w,reset:S}=await b({x:d,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});d=g??d,u=x??u,p={...p,[_]:{...p[_],...w}},S&&v<=50&&(v++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(l=S.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:d,y:u}=No(l,m,c)),h=-1)}return{x:d,y:u,placement:m,strategy:i,middlewareData:p}};async function Ae(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:p=0}=Jt(e,t),v=Xs(p),_=r[m?u==="floating"?"reference":"floating":u],b=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),g=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:g,offsetParent:x,strategy:c}):g);return{top:(b.top-S.top+v.top)/w.y,bottom:(S.bottom-b.bottom+v.bottom)/w.y,left:(b.left-S.left+v.left)/w.x,right:(S.right-b.right+v.right)/w.x}}const Js=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:h=!0,..._}=Jt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const b=it(i),g=Q(r),x=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=m||(x||!h?[te(r)]:zs(r)),N=v!=="none";!m&&N&&S.push(...Ys(r,h,v,w));const G=[r,...S],dt=await Ae(e,_),ut=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[b]),u){const ft=Vs(i,a,w);ut.push(dt[ft[0]],dt[ft[1]])}if(X=[...X,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var Mt,Ot;const ft=(((Mt=s.flip)==null?void 0:Mt.index)||0)+1,rn=G[ft];if(rn&&(!(u==="alignment"?g!==Q(rn):!1)||X.every(V=>Q(V.placement)===g?V.overflows[0]>0:!0)))return{data:{index:ft,overflows:X},reset:{placement:rn}};let Pt=(Ot=X.filter(pt=>pt.overflows[0]<=0).sort((pt,V)=>pt.overflows[1]-V.overflows[1])[0])==null?void 0:Ot.placement;if(!Pt)switch(p){case"bestFit":{var Rt;const pt=(Rt=X.filter(V=>{if(N){const et=Q(V.placement);return et===g||et==="y"}return!0}).map(V=>[V.placement,V.overflows.filter(et=>et>0).reduce((et,wl)=>et+wl,0)]).sort((V,et)=>V[1]-et[1])[0])==null?void 0:Rt[0];pt&&(Pt=pt);break}case"initialPlacement":Pt=r;break}if(i!==Pt)return{reset:{placement:Pt}}}return{}}}},Zs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:b,y:g}=_;return{x:b,y:g}}},...c}=Jt(t,e),l={x:n,y:o},d=await Ae(e,c),u=Q(it(i)),m=Mo(u);let p=l[m],v=l[u];if(s){const _=m==="y"?"top":"left",b=m==="y"?"bottom":"right",g=p+d[_],x=p-d[b];p=Io(g,p,x)}if(a){const _=u==="y"?"top":"left",b=u==="y"?"bottom":"right",g=v+d[_],x=v-d[b];v=Io(g,v,x)}const h=r.fn({...e,[m]:p,[u]:v});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[u]:a}}}}}},ta=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Jt(t,e),d=await Ae(e,l),u=it(i),m=Zt(i),p=Q(i)==="y",{width:v,height:h}=s.floating;let _,b;u==="top"||u==="bottom"?(_=u,b=m===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(b=u,_=m==="end"?"top":"bottom");const g=h-d.top-d.bottom,x=v-d.left-d.right,w=gt(h-d[_],g),S=gt(v-d[b],x),N=!e.middlewareData.shift;let G=w,dt=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=x),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(G=g),N&&!m){const X=O(d.left,0),Mt=O(d.right,0),Ot=O(d.top,0),Rt=O(d.bottom,0);p?dt=v-2*(X!==0||Mt!==0?X+Mt:O(d.left,d.right)):G=h-2*(Ot!==0||Rt!==0?Ot+Rt:O(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:G});const ut=await a.getDimensions(r.floating);return v!==ut.width||h!==ut.height?{reset:{rects:!0}}:{}}}};function ne(){return typeof window<"u"}function vt(t){return Ho(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function W(t){var e;return(e=(Ho(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ho(t){return ne()?t instanceof Node||t instanceof R(t).Node:!1}function H(t){return ne()?t instanceof Element||t instanceof R(t).Element:!1}function j(t){return ne()?t instanceof HTMLElement||t instanceof R(t).HTMLElement:!1}function Bo(t){return!ne()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}const ea=new Set(["inline","contents"]);function Et(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!ea.has(i)}const na=new Set(["table","td","th"]);function oa(t){return na.has(vt(t))}const ia=[":popover-open",":modal"];function oe(t){return ia.some(e=>{try{return t.matches(e)}catch{return!1}})}const sa=["transform","translate","scale","rotate","perspective"],aa=["transform","translate","scale","rotate","perspective","filter"],ra=["paint","layout","strict","content"];function Le(t){const e=Ie(),n=H(t)?B(t):t;return sa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||aa.some(o=>(n.willChange||"").includes(o))||ra.some(o=>(n.contain||"").includes(o))}function la(t){let e=J(t);for(;j(e)&&!bt(e);){if(Le(e))return e;if(oe(e))return null;e=J(e)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ca=new Set(["html","body","#document"]);function bt(t){return ca.has(vt(t))}function B(t){return R(t).getComputedStyle(t)}function ie(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(vt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Bo(t)&&t.host||W(t);return Bo(e)?e.host:e}function Fo(t){const e=J(t);return bt(e)?t.ownerDocument?t.ownerDocument.body:t.body:j(e)&&Et(e)?e:Fo(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Fo(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=R(i);if(s){const r=Me(a);return e.concat(a,a.visualViewport||[],Et(i)?i:[],r&&n?St(r):[])}return e.concat(i,St(i,[],n))}function Me(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Uo(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=j(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Xt(n)!==s||Xt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Oe(t){return H(t)?t:t.contextElement}function _t(t){const e=Oe(t);if(!j(e))return z(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=Uo(e);let a=(s?Xt(n.width):n.width)/o,r=(s?Xt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const da=z(0);function qo(t){const e=R(t);return!Ie()||!e.visualViewport?da:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ua(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function st(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Oe(t);let a=z(1);e&&(o?H(o)&&(a=_t(o)):a=_t(t));const r=ua(s,n,o)?qo(s):z(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const m=R(s),p=o&&H(o)?R(o):o;let v=m,h=Me(v);for(;h&&o&&p!==v;){const _=_t(h),b=h.getBoundingClientRect(),g=B(h),x=b.left+(h.clientLeft+parseFloat(g.paddingLeft))*_.x,w=b.top+(h.clientTop+parseFloat(g.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=x,l+=w,v=R(h),h=Me(v)}}return ee({width:d,height:u,x:c,y:l})}function se(t,e){const n=ie(t).scrollLeft;return e?e.left+n:st(W(t)).left+n}function Vo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-se(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function fa(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=W(o),r=e?oe(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=z(1);const d=z(0),u=j(o);if((u||!u&&!s)&&((vt(o)!=="body"||Et(a))&&(c=ie(o)),j(o))){const p=st(o);l=_t(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}const m=a&&!u&&!s?Vo(a,c):z(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-c.scrollTop*l.y+d.y+m.y}}function pa(t){return Array.from(t.getClientRects())}function ma(t){const e=W(t),n=ie(t),o=t.ownerDocument.body,i=O(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=O(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+se(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=O(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const zo=25;function ha(t,e){const n=R(t),o=W(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Ie();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=se(o);if(l<=0){const d=o.ownerDocument,u=d.body,m=getComputedStyle(u),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,v=Math.abs(o.clientWidth-u.clientWidth-p);v<=zo&&(s-=v)}else l<=zo&&(s+=l);return{width:s,height:a,x:r,y:c}}const ga=new Set(["absolute","fixed"]);function va(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=j(t)?_t(t):z(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function Wo(t,e,n){let o;if(e==="viewport")o=ha(t,n);else if(e==="document")o=ma(W(t));else if(H(e))o=va(e,n);else{const i=qo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ee(o)}function jo(t,e){const n=J(t);return n===e||!H(n)||bt(n)?!1:B(n).position==="fixed"||jo(n,e)}function ba(t,e){const n=e.get(t);if(n)return n;let o=St(t,[],!1).filter(r=>H(r)&&vt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!bt(a);){const r=B(a),c=Le(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&ga.has(i.position)||Et(a)&&!c&&jo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function _a(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?oe(e)?[]:ba(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=Wo(e,d,i);return l.top=O(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=O(u.left,l.left),l},Wo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ya(t){const{width:e,height:n}=Uo(t);return{width:e,height:n}}function wa(t,e,n){const o=j(e),i=W(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=z(0);function l(){c.x=se(i)}if(o||!o&&!s)if((vt(e)!=="body"||Et(i))&&(r=ie(e)),o){const p=st(e,!0,s,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Vo(i,r):z(0),u=a.left+r.scrollLeft-c.x-d.x,m=a.top+r.scrollTop-c.y-d.y;return{x:u,y:m,width:a.width,height:a.height}}function Re(t){return B(t).position==="static"}function Go(t,e){if(!j(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return W(t)===n&&(n=n.ownerDocument.body),n}function Yo(t,e){const n=R(t);if(oe(t))return n;if(!j(t)){let i=J(t);for(;i&&!bt(i);){if(H(i)&&!Re(i))return i;i=J(i)}return n}let o=Go(t,e);for(;o&&oa(o)&&Re(o);)o=Go(o,e);return o&&bt(o)&&Re(o)&&!Le(o)?n:o||la(t)||n}const xa=async function(t){const e=this.getOffsetParent||Yo,n=this.getDimensions,o=await n(t.floating);return{reference:wa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ea(t){return B(t).direction==="rtl"}const Sa={convertOffsetParentRelativeRectToViewportRelativeRect:fa,getDocumentElement:W,getClippingRect:_a,getOffsetParent:Yo,getElementRects:xa,getClientRects:pa,getDimensions:ya,getScale:_t,isElement:H,isRTL:Ea};function Ko(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ta(t,e){let n=null,o;const i=W(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:m,height:p}=l;if(r||e(),!m||!p)return;const v=Qt(u),h=Qt(i.clientWidth-(d+m)),_=Qt(i.clientHeight-(u+p)),b=Qt(d),x={rootMargin:-v+"px "+-h+"px "+-_+"px "+-b+"px",threshold:O(0,gt(1,c))||1};let w=!0;function S(N){const G=N[0].intersectionRatio;if(G!==c){if(!w)return a();G?a(!1,G):o=setTimeout(()=>{a(!1,1e-7)},1e3)}G===1&&!Ko(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(S,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(t)}return a(!0),s}function Ca(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Oe(t),d=i||s?[...l?St(l):[],...St(e)]:[];d.forEach(b=>{i&&b.addEventListener("scroll",n,{passive:!0}),s&&b.addEventListener("resize",n)});const u=l&&r?Ta(l,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(b=>{let[g]=b;g&&g.target===l&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(e)})),n()}),l&&!c&&p.observe(l),p.observe(e));let v,h=c?st(t):null;c&&_();function _(){const b=st(t);h&&!Ko(h,b)&&n(),h=b,v=requestAnimationFrame(_)}return n(),()=>{var b;d.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),u?.(),(b=p)==null||b.disconnect(),p=null,c&&cancelAnimationFrame(v)}}const Pe=Zs,De=Js,Xo=ta,$a=(t,e,n)=>{const o=new Map,i={platform:Sa,...n},s={...i.platform,_c:o};return Qs(t,e,{...i,platform:s})};function Qo(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=Qo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function ka(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Qo(t))&&(o&&(o+=" "),o+=e);return o}const P={capture:!0,passive:!0},at=typeof window<"u"&&typeof document<"u";function Aa(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let La=0;const Ia=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ae(t){return t.id||(t.id=`${Ia}${++La}`),t.id}const Jo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},C=(t,...e)=>{Tt&&(t===window||t===document)&&Tt.push(()=>Zo(t,...e)),Jo("add",t,e)},Zo=(t,...e)=>Jo("remove",t,e);let Tt=null;const D=t=>{if(!at||!window.requestAnimationFrame)return;window._mtdsUnbindEvents||(window._mtdsUnbindEvents=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsUnbindEvents?.get(n)?.map(o=>o()),Tt=[],t(),window._mtdsUnbindEvents?.set(n,Tt?.slice(0)),Tt=null});document.readyState==="complete"?e():C(window,"load",e)},Ne=new WeakMap;function rt(t,e,n){Ne.get(t)?.(),Ne.delete(t),e&&Ne.set(t,Ca(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return rt(t,!1);$a(e,t,n).then(({x:o,y:i})=>{t.style.left=`${o}px`,t.style.top=`${i}px`})}))}function ti(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),i.takeRecords(),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const He=new WeakMap,yt=(t,e,n)=>{if(!at||!window.requestAnimationFrame)return;const o=t.getElementsByClassName(e),i=He.get(t)||[];i.length||(He.set(t,i),ti((s,a)=>{if(t.isConnected&&i?.length)for(const r of i)r();else a?.disconnect(),He.delete(t)}).observe(t,{attributeFilter:["class","hidden"],attributes:!0,childList:!0,subtree:!0})),i.push(()=>n(o))},Be=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),$=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${T.breadcrumbs.split(" ")[0]}`,Ra=`.${T.card.split(" ")[0]}`,ei=`.${T.chip.split(" ")[0]}`,Pa=`.${T.helptext.split(" ")[0]}`,Da=`.${T.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Fe="mattilsynet.matomo.cloud",F="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ni(t,e={}){if(at){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Fe}/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"&&Fa();const a=s?`https://cdn.matomo.cloud/${Fe}/container_${s}.js`:`https://cdn.matomo.cloud/${Fe}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append($("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics("${t}", `,e,")");if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function Fa(){if(document.getElementById(F)||window.localStorage.getItem(F))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${F}" data-analytics="ignore"><style>
|
|
9
|
-
#${
|
|
10
|
-
#${
|
|
11
|
-
#${
|
|
12
|
-
#${
|
|
13
|
-
#${
|
|
14
|
-
#${
|
|
8
|
+
::slotted(data:focus) { ${cs} }`,hn="beforeinput,blur,focus,click,input,keydown,mousedown",gn={once:!0,passive:!0},_s=rs&&!dn,ys=dn||ls,bn="".repeat(5),Bt="false",jt={added:"Added",empty:"No selected",found:"Navigate left to find %d selected",invalid:"Invalid value",of:"of",remove:"Press to remove",removed:"Removed"},ye=class extends ds{constructor(){super(),this._item="",this._speak="",this._texts=as({},jt),this._value="",this.shadowRoot||this.attachShadow({mode:"open"}).append(Ht("slot"),Ht("style",vs))}static get observedAttributes(){return Object.keys(jt).map(t=>`data-sr-${t}`)}connectedCallback(){this._root=ps(this),Dt(this,hn,this,!0),ge(this,{attributeFilter:["value","id"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(Ft,0,this),setTimeout(Ut,0,this)}attributeChangedCallback(t,e,n){const o=t.split("data-sr-")[1];jt[o]&&(this._texts[o]=n||jt[o])}disconnectedCallback(){ge(this,!1),us(this,hn,this,!0),this._items=this._clear=this._focus=this._control=void 0,this._list=this._options=this._root=void 0}handleEvent(t){const e=t.target;xe(this)||(t.type==="beforeinput"&&(this._value=e?.value||""),t.type==="blur"&&xs(this),t.type==="click"&&Ss(this,t),t.type==="focus"&&ws(this,t),t.type==="input"&&Ts(this,t),t.type==="keydown"&&Cs(this,t),t.type==="mousedown"&&_e(t),t.type==="mutation"&&Ft(this,t))}get multiple(){var t;return((t=y(this,"data-multiple"))!=null?t:Bt)!==Bt}set multiple(t){y(this,"data-multiple",t?"":null)}get creatable(){var t;return((t=y(this,"data-creatable"))!=null?t:Bt)!==Bt}set creatable(t){y(this,"data-creatable",t?"":null)}get control(){var t;return(t=this._control)!=null&&t.isConnected||(this._control=this.querySelector("input")),this._control}get list(){var t;return(t=this._list)!=null&&t.isConnected||(this._list=this.querySelector("u-datalist,datalist")),this._list}get clear(){var t;return(t=this._clear)!=null&&t.isConnected||(this._clear=this.querySelector("del")),this._clear}get items(){return this._items||(this._items=this.getElementsByTagName("data")),this._items}get options(){var t,e;if(!this._options){const n=((t=this.list)==null?void 0:t.nodeName)==="U-DATALIST"?"u-option":"option";this._options=(e=this.list)==null?void 0:e.getElementsByTagName(n)}return this._options}get values(){return[...this.items].map(({value:t})=>t)}},ot=t=>{var e;return((e=t?.textContent)==null?void 0:e.trim())||""},we=t=>t instanceof HTMLDataElement,xe=({control:t})=>t?.disabled||t?.readOnly||!1,Ft=(t,e)=>{var n;const{_focus:o,_texts:i,items:s,control:a,list:r,multiple:c}=t;if(!a||!r)return;const l=gs(a),d=l.endsWith(bn)?y(a,"data-label"):l;y(a,"data-label",d);let u=`${d}${c?`, ${s.length?i.found.replace("%d",`${s.length}`):i.empty}`:""}`;const m=[];for(const{addedNodes:g,removedNodes:x}of e?.detail||[]){for(const w of g)we(w)&&m.unshift(w);for(const w of x)we(w)&&m.push(w)}const p=c?m.length===1:m[0]===o;if(o&&p){const g=y(a,"aria-expanded"),x=y(a,"inputmode"),w=we(o)?a:o,S=!m[0].isConnected;t._speak=`${i[S?"removed":"added"]} ${ot(m[0])}, `,(ys||o===a)&&be(t._speak),a!==w&&(y(a,"aria-expanded",null),y(a,"inputmode","none"),u=" ",a.focus()),setTimeout(()=>{var N;y(a,"aria-expanded",g),y(a,"inputmode",S?"none":x),(N=w?.focus)==null||N.call(w),y(a,"inputmode",x),t._speak="",_s?Dt(t,"blur",()=>Ft(t),gn):setTimeout(Ft,100,t)},100)}let b=0;const h=t.querySelector("select"),_=xe(t)?"":`${i.remove}, `;for(const g of s){const x=h?.options[b],w=ot(g),S=g.value||w,N=`${t._speak}${w}, ${_}${++b} ${i.of} ${s.length}`;y(g,"role","button"),y(g,"value",S),y(g,"tabindex","-1"),y(g,"aria-label",N),x?Object.assign(x,{textContent:w,value:S}):h?.appendChild(new Option(w,S,!0,!0))}h&&y(h,"multiple",c?"":null);for(const g of[...h?.options||[]].slice(b))g.remove();!c&&b>1&&console.warn("u-combobox: Multiple <data> found in single mode."),y(r,"aria-multiselectable",`${c}`),y(a,"list",pn(r)),y(a,"aria-label",`${t._speak}${u}${bn}`),r.hasAttribute("popover")&&(y(a,"popovertarget",pn(r)),y(r,"popover","manual"));const v=ot(s[0]);v!==t._item&&Ut(t),t._item=v,vn(t),_n(t),(n=ge(t))==null||n.takeRecords()},vn=t=>{var e;t.clear&&y(t.clear,"role","button"),t.clear&&(t.clear.hidden=!((e=t.control)!=null&&e.value)||xe(t))},_n=t=>{var e;const{_speak:n,options:o=[],values:i}=t;for(const s of o){const a=(e=y(s,"value"))!=null?e:ot(s);y(s,"aria-label",n?`${n}${ot(s)}`:null),y(s,"selected",i.includes(a)?"":null)}},Ut=t=>{const{multiple:e,control:n,items:o}=t,i=ot(o[0]);!e&&n&&i!==n.value&&mn(n,i,i?"insertText":"deleteContent")},Ee=(t,e=!0)=>{var n;const{_texts:o,options:i=[],creatable:s,control:a,items:r,multiple:c}=t,l=((n=a?.value)==null?void 0:n.trim())||"",d=l.toLowerCase()||null;let u=[...i].find(p=>(y(p,"label")||ot(p)).trim().toLowerCase()===d);const m={bubbles:!0,cancelable:!0,detail:u};if(t.dispatchEvent(new CustomEvent("comboboxbeforematch",m))||(u=[...i].find(p=>p.selected)),e)return _n(t),u?mt(t,u,!1):s&&l?mt(t,{value:l},!1):(!c&&!l&&r[0]?mt(t,r[0]):Ut(t),be(o.invalid));for(const p of i)p.selected=p===u},mt=(t,e,n=!0)=>{const{control:o,items:i,multiple:s}=t,a=Ht("data",e.label||e.value,{value:e.value}),r=[...i].find(d=>d.value===e.value),c={bubbles:!0,cancelable:!0,detail:r||a};if(r&&!n)return Ut(t);if(t.dispatchEvent(new CustomEvent("comboboxbeforeselect",c))){if(!s)for(const d of[...i])d.remove();r?r.remove():o?.insertAdjacentElement("beforebegin",a),t.dispatchEvent(new CustomEvent("comboboxafterselect",c))}},ws=(t,{target:e})=>{e instanceof HTMLElement&&(t._focus=e),be()},xs=t=>_e()||setTimeout(Es,0,t),Es=t=>{var e;!t._focus||t.contains((e=t._root)==null?void 0:e.activeElement)||(t.multiple||Ee(t),t._focus=void 0)},Ss=(t,e)=>{const{clientX:n,clientY:o,target:i}=e,{clear:s,control:a,items:r}=t;if(s?.contains(i))return a&&mn(a,"","deleteContentBackward"),a?.focus();for(const c of r){const{top:l,right:d,bottom:u,left:m}=c.getBoundingClientRect();if(c.contains(i))return mt(t,c);if(o>=l&&o<=u&&n>=m&&n<=d)return c.focus()}i===t&&a?.focus()},Ts=(t,e)=>{var n;const{options:o=[],control:i,multiple:s}=t,a=((n=i?.value)==null?void 0:n.trim())||"";if(e instanceof InputEvent?!e.inputType||e.inputType==="insertReplacementText":!!a){e.stopImmediatePropagation(),i&&(i.value=t._value);for(const c of o)if(c.value&&c.value===a)return mt(t,c,s)}else s||Ee(t,!1);vn(t)},Cs=(t,e)=>{var n;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;const{clear:o,control:i,items:s}=t,{key:a,repeat:r,target:c}=e,l=i&&i===c,d=l&&i?.selectionEnd;let u=l?s.length:[...s].indexOf(c);if(l&&a==="Tab"&&o&&!o.hidden&&(e.preventDefault(),o.tabIndex=-1,o.focus(),Dt(o,"blur",()=>y(o,"tabindex",null),gn)),!(!l&&fs(e)||u===-1)){if(a==="ArrowRight"&&!l)u+=1;else if(a==="ArrowLeft"&&!d)u-=1;else if(a==="Enter"&&l){const m=y(i,"form");return y(i,"form","#"),requestAnimationFrame(()=>y(i,"form",m)),Ee(t)}else if((a==="Backspace"||a==="Delete")&&!d){if(e.preventDefault(),!r&&s[u])return mt(t,s[u]);l&&(u-=1)}else return l||i?.focus();e.preventDefault(),(n=s[Math.max(0,u)]||i)==null||n.focus()}};hs.define("u-combobox",ye);var Se=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",$s=Se&&/android/i.test(navigator.userAgent),yn;Se&&/^Mac/i.test(((yn=navigator.userAgentData)==null?void 0:yn.platform)||navigator.platform);var ks=`${$s?"data":"aria"}-labelledby`,Te=":host(:not([hidden])) { display: block }",qt=typeof HTMLElement>"u"?class{}:HTMLElement;function A(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var wn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},As=(t,...e)=>wn("add",t,e),Ls=(t,...e)=>wn("remove",t,e),Vt=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Tn("slot"),Tn("style",e)),zt=new WeakMap,xn=(t,e)=>{if(e===void 0)return zt.get(t);try{zt.get(t).disconnect(),zt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),zt.set(t,n)}},Is=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},En=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},Ms=0,Sn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Ms).toString(32)}`),t.id):"",Tn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Wt={define:(t,e)=>!Se||window.customElements.get(t)||window.customElements.define(t,e)},Os=Te,Rs=Te,Ps=Te,Ds=':host(:not([hidden])) { display: inline-block; cursor: pointer }:host([aria-disabled="true"]) { cursor: default }',Gt="aria-controls",ht="aria-selected",Cn=class extends qt{constructor(){super(),Vt(this,Os)}get tabList(){return Yt("u-tablist",this)[0]||null}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}get tabs(){return Yt("u-tab",this)}get panels(){return Yt("u-tabpanel",this)}},$n=class extends qt{constructor(){super(),Vt(this,Rs)}connectedCallback(){A(this,"role","tablist"),As(this,"click,keydown",this),xn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Ls(this,"click,keydown",this),xn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s?.setAttribute(ht,"true")}const{key:e}=t,n=[...this.tabs],o=n.findIndex(s=>s.contains(t.target));let i=o;if(!(t.defaultPrevented||o===-1)&&(t.type==="click"&&ke(n[o]),t.type==="keydown"&&!Is(t))){if(e==="ArrowDown"||e==="ArrowRight")i=(o+1)%n.length;else if(e==="ArrowUp"||e==="ArrowLeft")i=(o||n.length)-1;else if(e==="End")i=n.length-1;else if(e==="Home")i=0;else if(e==="Tab")i=Kt(n);else return;setTimeout(()=>{n[o].tabIndex=-1,n[i].tabIndex=0}),e!=="Tab"&&(t.preventDefault(),n[i].focus())}}get tabsElement(){return this.closest("u-tabs")}get tabs(){return this.querySelectorAll("u-tab")}get selectedIndex(){return Kt(this.tabs)}set selectedIndex(t){ke(this.tabs[t])}},Ce=!1,kn=class extends qt{static get observedAttributes(){return["id",ht,Gt]}constructor(){super(),Vt(this,Ds)}connectedCallback(){A(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!Ce&&this.selected&&this.tabList){Ce=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=Yt("u-tabpanel",this.tabsElement||this),n=$e(this,e[t.indexOf(this)]);n&&A(n,ks,Sn(this)),t.forEach((o,i)=>{const s=$e(o,e[i]);o.tabIndex=o===this?0:-1,A(o,ht,`${o===this}`),A(o,Gt,s?.id||null),s&&(s.hidden=s!==n)}),Ce=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return t?.nodeName==="U-TABLIST"?t:null}get selected(){return A(this,ht)==="true"}set selected(t){A(this,ht,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return $e(this)}},An=class extends qt{static get observedAttributes(){return["hidden"]}constructor(){super(),Vt(this,Ps)}connectedCallback(){A(this,"role","tabpanel"),this.hidden=Kt(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){const t=this.hidden;A(this,"aria-hidden",`${t}`),A(this,"tabindex",t||Ns(this.firstChild)?null:"0")}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${Gt}="${this.id}"]`;return En(this).querySelectorAll(t)}},Yt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),$e=(t,e)=>{const n=A(t,Gt)||Sn(e),o=En(t).getElementById(n);return o?.nodeName==="U-TABPANEL"?o:null},Kt=t=>[...t].findIndex(e=>A(e,ht)==="true"),ke=t=>t&&A(t,"aria-disabled")!=="true"&&A(t,"aria-selected","true"),Ns=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');Wt.define("u-tabs",Cn),Wt.define("u-tablist",$n),Wt.define("u-tab",kn),Wt.define("u-tabpanel",An);const Hs="2.2.8",Ln="_alert_3aj69_1 _ds-alert_14b25_3",In="_app_3aj69_1",Mn="_sticky_3aj69_1",On="_avatar_3aj69_1 _ds-avatar_14b25_1",Rn="_badge_3aj69_1",Pn="_breadcrumbs_3aj69_1 _ds-breadcrumbs_14b25_5",Dn="_button_3aj69_1 _ds-button_14b25_1",Nn="_card_3aj69_1",Hn="_group_3aj69_1",Bn="_chip_3aj69_1 _ds-chip_14b25_5",jn="_details_3aj69_1 _ds-details_14b25_3",Fn="_dialog_3aj69_1 _ds-dialog_14b25_5",Un="__drawer_3aj69_1",qn="_divider_3aj69_1",Vn="_errorsummary_3aj69_1 _ds-error-summary_14b25_5",zn="__errorsummary_3aj69_1",Wn="_field_3aj69_1 _ds-field_14b25_1",Gn="__datalist_3aj69_1",Yn="_affixes_3aj69_1 _ds-field-affixes_14b25_3",Kn="_fieldset_3aj69_1 _ds-fieldset_14b25_3",Xn="_helptext_3aj69_1 _ds-focus_14b25_1",Qn="_input_3aj69_1 _ds-input_14b25_1",Jn="_grid_3aj69_1",Zn="_flex_3aj69_1",to="_link_3aj69_1",eo="_logo_3aj69_1",no="_pagination_3aj69_1 _ds-pagination_14b25_5",oo="_popover_3aj69_1",io="_progress_3aj69_1",so="__indeterminate_3aj69_1",ao="_skeleton_3aj69_1 _ds-skeleton_14b25_5",ro="__skeleton_3aj69_1",lo="_spinner_3aj69_1",co="_steps_3aj69_1",uo="_table_3aj69_1 _ds-table_14b25_5",fo="__scrollShadow_3aj69_1",po="_tabs_3aj69_1 _ds-tabs_14b25_5",mo="__scrollMask_3aj69_1",ho="_tag_3aj69_1 _ds-tag_14b25_5",go="_toast_3aj69_1",bo="__toastClose_3aj69_1",vo="__toastOpen_3aj69_1",_o="__toastTimeout_3aj69_1",yo="_togglegroup_3aj69_1",wo="__tooltip_3aj69_1",xo="_heading_3aj69_1 _ds-heading_14b25_1",Eo="_ingress_3aj69_1",So="_muted_3aj69_1",To="_info_3aj69_1",Co="_prose_3aj69_1",$o="_validation_3aj69_1 _ds-validation-message_14b25_1",ko="_body_3aj69_173",Ao="__checked_3aj69_1",T={alert:Ln,app:In,sticky:Mn,avatar:On,badge:Rn,breadcrumbs:Pn,button:Dn,card:Nn,group:Hn,chip:Bn,details:jn,dialog:Fn,_drawer:Un,divider:qn,errorsummary:Vn,_errorsummary:zn,field:Wn,_datalist:Gn,affixes:Yn,fieldset:Kn,helptext:Xn,input:Qn,grid:Jn,flex:Zn,link:to,logo:eo,pagination:no,popover:oo,progress:io,_indeterminate:so,skeleton:ao,_skeleton:ro,spinner:lo,steps:co,table:uo,_scrollShadow:fo,tabs:po,_scrollMask:mo,tag:ho,toast:go,_toastClose:bo,_toastOpen:vo,_toastTimeout:_o,togglegroup:yo,_tooltip:wo,heading:xo,ingress:Eo,muted:So,info:To,prose:Co,validation:$o,body:ko,_checked:Ao},Bs=Object.freeze(Object.defineProperty({__proto__:null,_checked:Ao,_datalist:Gn,_drawer:Un,_errorsummary:zn,_indeterminate:so,_scrollMask:mo,_scrollShadow:fo,_skeleton:ro,_toastClose:bo,_toastOpen:vo,_toastTimeout:_o,_tooltip:wo,affixes:Yn,alert:Ln,app:In,avatar:On,badge:Rn,body:ko,breadcrumbs:Pn,button:Dn,card:Nn,chip:Bn,default:T,details:jn,dialog:Fn,divider:qn,errorsummary:Vn,field:Wn,fieldset:Kn,flex:Zn,grid:Jn,group:Hn,heading:xo,helptext:Xn,info:To,ingress:Eo,input:Qn,link:to,logo:eo,muted:So,pagination:no,popover:oo,progress:io,prose:Co,skeleton:ao,spinner:lo,steps:co,sticky:Mn,table:uo,tabs:po,tag:ho,toast:go,togglegroup:yo,validation:$o},Symbol.toStringTag,{value:"Module"})),gt=Math.min,O=Math.max,Xt=Math.round,Qt=Math.floor,V=t=>({x:t,y:t}),js={left:"right",right:"left",bottom:"top",top:"bottom"},Fs={start:"end",end:"start"};function Lo(t,e,n){return O(t,gt(e,n))}function Jt(t,e){return typeof t=="function"?t(e):t}function it(t){return t.split("-")[0]}function Zt(t){return t.split("-")[1]}function Io(t){return t==="x"?"y":"x"}function Mo(t){return t==="y"?"height":"width"}const Us=new Set(["top","bottom"]);function Q(t){return Us.has(it(t))?"y":"x"}function Oo(t){return Io(Q(t))}function qs(t,e,n){n===void 0&&(n=!1);const o=Zt(t),i=Oo(t),s=Mo(i);let a=i==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(a=te(a)),[a,te(a)]}function Vs(t){const e=te(t);return[Ae(t),e,Ae(e)]}function Ae(t){return t.replace(/start|end/g,e=>Fs[e])}const Ro=["left","right"],Po=["right","left"],zs=["top","bottom"],Ws=["bottom","top"];function Gs(t,e,n){switch(t){case"top":case"bottom":return n?e?Po:Ro:e?Ro:Po;case"left":case"right":return e?zs:Ws;default:return[]}}function Ys(t,e,n,o){const i=Zt(t);let s=Gs(it(t),n==="start",o);return i&&(s=s.map(a=>a+"-"+i),e&&(s=s.concat(s.map(Ae)))),s}function te(t){return t.replace(/left|right|bottom|top/g,e=>js[e])}function Ks(t){return{top:0,right:0,bottom:0,left:0,...t}}function Xs(t){return typeof t!="number"?Ks(t):{top:t,right:t,bottom:t,left:t}}function ee(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 Do(t,e,n){let{reference:o,floating:i}=t;const s=Q(e),a=Oo(e),r=Mo(a),c=it(e),l=s==="y",d=o.x+o.width/2-i.width/2,u=o.y+o.height/2-i.height/2,m=o[r]/2-i[r]/2;let p;switch(c){case"top":p={x:d,y:o.y-i.height};break;case"bottom":p={x:d,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:u};break;case"left":p={x:o.x-i.width,y:u};break;default:p={x:o.x,y:o.y}}switch(Zt(e)){case"start":p[a]-=m*(n&&l?-1:1);break;case"end":p[a]+=m*(n&&l?-1:1);break}return p}const Qs=async(t,e,n)=>{const{placement:o="bottom",strategy:i="absolute",middleware:s=[],platform:a}=n,r=s.filter(Boolean),c=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:i}),{x:d,y:u}=Do(l,o,c),m=o,p={},b=0;for(let h=0;h<r.length;h++){const{name:_,fn:v}=r[h],{x:g,y:x,data:w,reset:S}=await v({x:d,y:u,initialPlacement:o,placement:m,strategy:i,middlewareData:p,rects:l,platform:a,elements:{reference:t,floating:e}});d=g??d,u=x??u,p={...p,[_]:{...p[_],...w}},S&&b<=50&&(b++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(l=S.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:i}):S.rects),{x:d,y:u}=Do(l,m,c)),h=-1)}return{x:d,y:u,placement:m,strategy:i,middlewareData:p}};async function Le(t,e){var n;e===void 0&&(e={});const{x:o,y:i,platform:s,rects:a,elements:r,strategy:c}=t,{boundary:l="clippingAncestors",rootBoundary:d="viewport",elementContext:u="floating",altBoundary:m=!1,padding:p=0}=Jt(e,t),b=Xs(p),_=r[m?u==="floating"?"reference":"floating":u],v=ee(await s.getClippingRect({element:(n=await(s.isElement==null?void 0:s.isElement(_)))==null||n?_:_.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(r.floating)),boundary:l,rootBoundary:d,strategy:c})),g=u==="floating"?{x:o,y:i,width:a.floating.width,height:a.floating.height}:a.reference,x=await(s.getOffsetParent==null?void 0:s.getOffsetParent(r.floating)),w=await(s.isElement==null?void 0:s.isElement(x))?await(s.getScale==null?void 0:s.getScale(x))||{x:1,y:1}:{x:1,y:1},S=ee(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:r,rect:g,offsetParent:x,strategy:c}):g);return{top:(v.top-S.top+b.top)/w.y,bottom:(S.bottom-v.bottom+b.bottom)/w.y,left:(v.left-S.left+b.left)/w.x,right:(S.right-v.right+b.right)/w.x}}const Js=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var n,o;const{placement:i,middlewareData:s,rects:a,initialPlacement:r,platform:c,elements:l}=e,{mainAxis:d=!0,crossAxis:u=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:h=!0,..._}=Jt(t,e);if((n=s.arrow)!=null&&n.alignmentOffset)return{};const v=it(i),g=Q(r),x=it(r)===r,w=await(c.isRTL==null?void 0:c.isRTL(l.floating)),S=m||(x||!h?[te(r)]:Vs(r)),N=b!=="none";!m&&N&&S.push(...Ys(r,h,b,w));const G=[r,...S],dt=await Le(e,_),ut=[];let X=((o=s.flip)==null?void 0:o.overflows)||[];if(d&&ut.push(dt[v]),u){const ft=qs(i,a,w);ut.push(dt[ft[0]],dt[ft[1]])}if(X=[...X,{placement:i,overflows:ut}],!ut.every(ft=>ft<=0)){var Mt,Ot;const ft=(((Mt=s.flip)==null?void 0:Mt.index)||0)+1,rn=G[ft];if(rn&&(!(u==="alignment"?g!==Q(rn):!1)||X.every(q=>Q(q.placement)===g?q.overflows[0]>0:!0)))return{data:{index:ft,overflows:X},reset:{placement:rn}};let Pt=(Ot=X.filter(pt=>pt.overflows[0]<=0).sort((pt,q)=>pt.overflows[1]-q.overflows[1])[0])==null?void 0:Ot.placement;if(!Pt)switch(p){case"bestFit":{var Rt;const pt=(Rt=X.filter(q=>{if(N){const et=Q(q.placement);return et===g||et==="y"}return!0}).map(q=>[q.placement,q.overflows.filter(et=>et>0).reduce((et,yl)=>et+yl,0)]).sort((q,et)=>q[1]-et[1])[0])==null?void 0:Rt[0];pt&&(Pt=pt);break}case"initialPlacement":Pt=r;break}if(i!==Pt)return{reset:{placement:Pt}}}return{}}}},Zs=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:o,placement:i}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:r={fn:_=>{let{x:v,y:g}=_;return{x:v,y:g}}},...c}=Jt(t,e),l={x:n,y:o},d=await Le(e,c),u=Q(it(i)),m=Io(u);let p=l[m],b=l[u];if(s){const _=m==="y"?"top":"left",v=m==="y"?"bottom":"right",g=p+d[_],x=p-d[v];p=Lo(g,p,x)}if(a){const _=u==="y"?"top":"left",v=u==="y"?"bottom":"right",g=b+d[_],x=b-d[v];b=Lo(g,b,x)}const h=r.fn({...e,[m]:p,[u]:b});return{...h,data:{x:h.x-n,y:h.y-o,enabled:{[m]:s,[u]:a}}}}}},ta=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var n,o;const{placement:i,rects:s,platform:a,elements:r}=e,{apply:c=()=>{},...l}=Jt(t,e),d=await Le(e,l),u=it(i),m=Zt(i),p=Q(i)==="y",{width:b,height:h}=s.floating;let _,v;u==="top"||u==="bottom"?(_=u,v=m===(await(a.isRTL==null?void 0:a.isRTL(r.floating))?"start":"end")?"left":"right"):(v=u,_=m==="end"?"top":"bottom");const g=h-d.top-d.bottom,x=b-d.left-d.right,w=gt(h-d[_],g),S=gt(b-d[v],x),N=!e.middlewareData.shift;let G=w,dt=S;if((n=e.middlewareData.shift)!=null&&n.enabled.x&&(dt=x),(o=e.middlewareData.shift)!=null&&o.enabled.y&&(G=g),N&&!m){const X=O(d.left,0),Mt=O(d.right,0),Ot=O(d.top,0),Rt=O(d.bottom,0);p?dt=b-2*(X!==0||Mt!==0?X+Mt:O(d.left,d.right)):G=h-2*(Ot!==0||Rt!==0?Ot+Rt:O(d.top,d.bottom))}await c({...e,availableWidth:dt,availableHeight:G});const ut=await a.getDimensions(r.floating);return b!==ut.width||h!==ut.height?{reset:{rects:!0}}:{}}}};function ne(){return typeof window<"u"}function bt(t){return No(t)?(t.nodeName||"").toLowerCase():"#document"}function R(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function z(t){var e;return(e=(No(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function No(t){return ne()?t instanceof Node||t instanceof R(t).Node:!1}function H(t){return ne()?t instanceof Element||t instanceof R(t).Element:!1}function W(t){return ne()?t instanceof HTMLElement||t instanceof R(t).HTMLElement:!1}function Ho(t){return!ne()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof R(t).ShadowRoot}const ea=new Set(["inline","contents"]);function Et(t){const{overflow:e,overflowX:n,overflowY:o,display:i}=B(t);return/auto|scroll|overlay|hidden|clip/.test(e+o+n)&&!ea.has(i)}const na=new Set(["table","td","th"]);function oa(t){return na.has(bt(t))}const ia=[":popover-open",":modal"];function oe(t){return ia.some(e=>{try{return t.matches(e)}catch{return!1}})}const sa=["transform","translate","scale","rotate","perspective"],aa=["transform","translate","scale","rotate","perspective","filter"],ra=["paint","layout","strict","content"];function Ie(t){const e=Me(),n=H(t)?B(t):t;return sa.some(o=>n[o]?n[o]!=="none":!1)||(n.containerType?n.containerType!=="normal":!1)||!e&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!e&&(n.filter?n.filter!=="none":!1)||aa.some(o=>(n.willChange||"").includes(o))||ra.some(o=>(n.contain||"").includes(o))}function la(t){let e=J(t);for(;W(e)&&!vt(e);){if(Ie(e))return e;if(oe(e))return null;e=J(e)}return null}function Me(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ca=new Set(["html","body","#document"]);function vt(t){return ca.has(bt(t))}function B(t){return R(t).getComputedStyle(t)}function ie(t){return H(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function J(t){if(bt(t)==="html")return t;const e=t.assignedSlot||t.parentNode||Ho(t)&&t.host||z(t);return Ho(e)?e.host:e}function Bo(t){const e=J(t);return vt(e)?t.ownerDocument?t.ownerDocument.body:t.body:W(e)&&Et(e)?e:Bo(e)}function St(t,e,n){var o;e===void 0&&(e=[]),n===void 0&&(n=!0);const i=Bo(t),s=i===((o=t.ownerDocument)==null?void 0:o.body),a=R(i);if(s){const r=Oe(a);return e.concat(a,a.visualViewport||[],Et(i)?i:[],r&&n?St(r):[])}return e.concat(i,St(i,[],n))}function Oe(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function jo(t){const e=B(t);let n=parseFloat(e.width)||0,o=parseFloat(e.height)||0;const i=W(t),s=i?t.offsetWidth:n,a=i?t.offsetHeight:o,r=Xt(n)!==s||Xt(o)!==a;return r&&(n=s,o=a),{width:n,height:o,$:r}}function Re(t){return H(t)?t:t.contextElement}function _t(t){const e=Re(t);if(!W(e))return V(1);const n=e.getBoundingClientRect(),{width:o,height:i,$:s}=jo(e);let a=(s?Xt(n.width):n.width)/o,r=(s?Xt(n.height):n.height)/i;return(!a||!Number.isFinite(a))&&(a=1),(!r||!Number.isFinite(r))&&(r=1),{x:a,y:r}}const da=V(0);function Fo(t){const e=R(t);return!Me()||!e.visualViewport?da:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function ua(t,e,n){return e===void 0&&(e=!1),!n||e&&n!==R(t)?!1:e}function st(t,e,n,o){e===void 0&&(e=!1),n===void 0&&(n=!1);const i=t.getBoundingClientRect(),s=Re(t);let a=V(1);e&&(o?H(o)&&(a=_t(o)):a=_t(t));const r=ua(s,n,o)?Fo(s):V(0);let c=(i.left+r.x)/a.x,l=(i.top+r.y)/a.y,d=i.width/a.x,u=i.height/a.y;if(s){const m=R(s),p=o&&H(o)?R(o):o;let b=m,h=Oe(b);for(;h&&o&&p!==b;){const _=_t(h),v=h.getBoundingClientRect(),g=B(h),x=v.left+(h.clientLeft+parseFloat(g.paddingLeft))*_.x,w=v.top+(h.clientTop+parseFloat(g.paddingTop))*_.y;c*=_.x,l*=_.y,d*=_.x,u*=_.y,c+=x,l+=w,b=R(h),h=Oe(b)}}return ee({width:d,height:u,x:c,y:l})}function se(t,e){const n=ie(t).scrollLeft;return e?e.left+n:st(z(t)).left+n}function Uo(t,e){const n=t.getBoundingClientRect(),o=n.left+e.scrollLeft-se(t,n),i=n.top+e.scrollTop;return{x:o,y:i}}function fa(t){let{elements:e,rect:n,offsetParent:o,strategy:i}=t;const s=i==="fixed",a=z(o),r=e?oe(e.floating):!1;if(o===a||r&&s)return n;let c={scrollLeft:0,scrollTop:0},l=V(1);const d=V(0),u=W(o);if((u||!u&&!s)&&((bt(o)!=="body"||Et(a))&&(c=ie(o)),W(o))){const p=st(o);l=_t(o),d.x=p.x+o.clientLeft,d.y=p.y+o.clientTop}const m=a&&!u&&!s?Uo(a,c):V(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+d.x+m.x,y:n.y*l.y-c.scrollTop*l.y+d.y+m.y}}function pa(t){return Array.from(t.getClientRects())}function ma(t){const e=z(t),n=ie(t),o=t.ownerDocument.body,i=O(e.scrollWidth,e.clientWidth,o.scrollWidth,o.clientWidth),s=O(e.scrollHeight,e.clientHeight,o.scrollHeight,o.clientHeight);let a=-n.scrollLeft+se(t);const r=-n.scrollTop;return B(o).direction==="rtl"&&(a+=O(e.clientWidth,o.clientWidth)-i),{width:i,height:s,x:a,y:r}}const qo=25;function ha(t,e){const n=R(t),o=z(t),i=n.visualViewport;let s=o.clientWidth,a=o.clientHeight,r=0,c=0;if(i){s=i.width,a=i.height;const d=Me();(!d||d&&e==="fixed")&&(r=i.offsetLeft,c=i.offsetTop)}const l=se(o);if(l<=0){const d=o.ownerDocument,u=d.body,m=getComputedStyle(u),p=d.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,b=Math.abs(o.clientWidth-u.clientWidth-p);b<=qo&&(s-=b)}else l<=qo&&(s+=l);return{width:s,height:a,x:r,y:c}}const ga=new Set(["absolute","fixed"]);function ba(t,e){const n=st(t,!0,e==="fixed"),o=n.top+t.clientTop,i=n.left+t.clientLeft,s=W(t)?_t(t):V(1),a=t.clientWidth*s.x,r=t.clientHeight*s.y,c=i*s.x,l=o*s.y;return{width:a,height:r,x:c,y:l}}function Vo(t,e,n){let o;if(e==="viewport")o=ha(t,n);else if(e==="document")o=ma(z(t));else if(H(e))o=ba(e,n);else{const i=Fo(t);o={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return ee(o)}function zo(t,e){const n=J(t);return n===e||!H(n)||vt(n)?!1:B(n).position==="fixed"||zo(n,e)}function va(t,e){const n=e.get(t);if(n)return n;let o=St(t,[],!1).filter(r=>H(r)&&bt(r)!=="body"),i=null;const s=B(t).position==="fixed";let a=s?J(t):t;for(;H(a)&&!vt(a);){const r=B(a),c=Ie(a);!c&&r.position==="fixed"&&(i=null),(s?!c&&!i:!c&&r.position==="static"&&!!i&&ga.has(i.position)||Et(a)&&!c&&zo(t,a))?o=o.filter(d=>d!==a):i=r,a=J(a)}return e.set(t,o),o}function _a(t){let{element:e,boundary:n,rootBoundary:o,strategy:i}=t;const a=[...n==="clippingAncestors"?oe(e)?[]:va(e,this._c):[].concat(n),o],r=a[0],c=a.reduce((l,d)=>{const u=Vo(e,d,i);return l.top=O(u.top,l.top),l.right=gt(u.right,l.right),l.bottom=gt(u.bottom,l.bottom),l.left=O(u.left,l.left),l},Vo(e,r,i));return{width:c.right-c.left,height:c.bottom-c.top,x:c.left,y:c.top}}function ya(t){const{width:e,height:n}=jo(t);return{width:e,height:n}}function wa(t,e,n){const o=W(e),i=z(e),s=n==="fixed",a=st(t,!0,s,e);let r={scrollLeft:0,scrollTop:0};const c=V(0);function l(){c.x=se(i)}if(o||!o&&!s)if((bt(e)!=="body"||Et(i))&&(r=ie(e)),o){const p=st(e,!0,s,e);c.x=p.x+e.clientLeft,c.y=p.y+e.clientTop}else i&&l();s&&!o&&i&&l();const d=i&&!o&&!s?Uo(i,r):V(0),u=a.left+r.scrollLeft-c.x-d.x,m=a.top+r.scrollTop-c.y-d.y;return{x:u,y:m,width:a.width,height:a.height}}function Pe(t){return B(t).position==="static"}function Wo(t,e){if(!W(t)||B(t).position==="fixed")return null;if(e)return e(t);let n=t.offsetParent;return z(t)===n&&(n=n.ownerDocument.body),n}function Go(t,e){const n=R(t);if(oe(t))return n;if(!W(t)){let i=J(t);for(;i&&!vt(i);){if(H(i)&&!Pe(i))return i;i=J(i)}return n}let o=Wo(t,e);for(;o&&oa(o)&&Pe(o);)o=Wo(o,e);return o&&vt(o)&&Pe(o)&&!Ie(o)?n:o||la(t)||n}const xa=async function(t){const e=this.getOffsetParent||Go,n=this.getDimensions,o=await n(t.floating);return{reference:wa(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}};function Ea(t){return B(t).direction==="rtl"}const Sa={convertOffsetParentRelativeRectToViewportRelativeRect:fa,getDocumentElement:z,getClippingRect:_a,getOffsetParent:Go,getElementRects:xa,getClientRects:pa,getDimensions:ya,getScale:_t,isElement:H,isRTL:Ea};function Yo(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Ta(t,e){let n=null,o;const i=z(t);function s(){var r;clearTimeout(o),(r=n)==null||r.disconnect(),n=null}function a(r,c){r===void 0&&(r=!1),c===void 0&&(c=1),s();const l=t.getBoundingClientRect(),{left:d,top:u,width:m,height:p}=l;if(r||e(),!m||!p)return;const b=Qt(u),h=Qt(i.clientWidth-(d+m)),_=Qt(i.clientHeight-(u+p)),v=Qt(d),x={rootMargin:-b+"px "+-h+"px "+-_+"px "+-v+"px",threshold:O(0,gt(1,c))||1};let w=!0;function S(N){const G=N[0].intersectionRatio;if(G!==c){if(!w)return a();G?a(!1,G):o=setTimeout(()=>{a(!1,1e-7)},1e3)}G===1&&!Yo(l,t.getBoundingClientRect())&&a(),w=!1}try{n=new IntersectionObserver(S,{...x,root:i.ownerDocument})}catch{n=new IntersectionObserver(S,x)}n.observe(t)}return a(!0),s}function Ca(t,e,n,o){o===void 0&&(o={});const{ancestorScroll:i=!0,ancestorResize:s=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:r=typeof IntersectionObserver=="function",animationFrame:c=!1}=o,l=Re(t),d=i||s?[...l?St(l):[],...St(e)]:[];d.forEach(v=>{i&&v.addEventListener("scroll",n,{passive:!0}),s&&v.addEventListener("resize",n)});const u=l&&r?Ta(l,n):null;let m=-1,p=null;a&&(p=new ResizeObserver(v=>{let[g]=v;g&&g.target===l&&p&&(p.unobserve(e),cancelAnimationFrame(m),m=requestAnimationFrame(()=>{var x;(x=p)==null||x.observe(e)})),n()}),l&&!c&&p.observe(l),p.observe(e));let b,h=c?st(t):null;c&&_();function _(){const v=st(t);h&&!Yo(h,v)&&n(),h=v,b=requestAnimationFrame(_)}return n(),()=>{var v;d.forEach(g=>{i&&g.removeEventListener("scroll",n),s&&g.removeEventListener("resize",n)}),u?.(),(v=p)==null||v.disconnect(),p=null,c&&cancelAnimationFrame(b)}}const De=Zs,Ne=Js,Ko=ta,$a=(t,e,n)=>{const o=new Map,i={platform:Sa,...n},s={...i.platform,_c:o};return Qs(t,e,{...i,platform:s})};function Xo(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=Xo(t[e]))&&(o&&(o+=" "),o+=n)}else for(n in t)t[n]&&(o&&(o+=" "),o+=n);return o}function ka(){for(var t,e,n=0,o="",i=arguments.length;n<i;n++)(t=arguments[n])&&(e=Xo(t))&&(o&&(o+=" "),o+=e);return o}const P={capture:!0,passive:!0},at=typeof window<"u"&&typeof document<"u";function Aa(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function f(t,e,n){return n===void 0?t.getAttribute(e)??null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}let La=0;const Ia=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function ae(t){return t.id||(t.id=`${Ia}${++La}`),t.id}const Qo=(t,e,[...n])=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},C=(t,...e)=>{Tt&&(t===window||t===document)&&Tt.push(()=>Jo(t,...e)),Qo("add",t,e)},Jo=(t,...e)=>Qo("remove",t,e);let Tt=null;const D=t=>{if(!at||!window.requestAnimationFrame)return;window._mtdsUnbindEvents||(window._mtdsUnbindEvents=new Map);const e=()=>requestAnimationFrame(()=>{const n=String(t).replace(/(\n|\s)/g,"");window._mtdsUnbindEvents?.get(n)?.map(o=>o()),Tt=[],t(),window._mtdsUnbindEvents?.set(n,Tt?.slice(0)),Tt=null});document.readyState==="complete"?e():C(window,"load",e)},He=new WeakMap;function rt(t,e,n){He.get(t)?.(),He.delete(t),e&&He.set(t,Ca(e,t,()=>{if(!t.isConnected||!e.isConnected||t.hidden)return rt(t,!1);$a(e,t,n).then(({x:o,y:i})=>{t.style.left=`${o}px`,t.style.top=`${i}px`})}))}function Zo(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),i.takeRecords(),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const Be=new WeakMap,yt=(t,e,n)=>{if(!at||!window.requestAnimationFrame)return;const o=t.getElementsByClassName(e),i=Be.get(t)||[];i.length||(Be.set(t,i),Zo((s,a)=>{if(t.isConnected&&i?.length)for(const r of i)r();else a?.disconnect(),Be.delete(t)}).observe(t,{attributeFilter:["class","hidden"],attributes:!0,childList:!0,subtree:!0})),i.push(()=>n(o))},je=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),$=(t,e,n)=>{const o=document.createElement(t);if(n&&(o.textContent=n),e)for(const[i,s]of Object.entries(e))f(o,i,s);return o},Ma=typeof HTMLElement>"u"?class{}:HTMLElement,Oa=`.${T.breadcrumbs.split(" ")[0]}`,Ra=`.${T.card.split(" ")[0]}`,ti=`.${T.chip.split(" ")[0]}`,Pa=`.${T.helptext.split(" ")[0]}`,Da=`.${T.pagination.split(" ")[0]}`,Na='summary,u-summary,a,button,[role="tab"],[role="button"]',Ha="click,toggle,submit,change",Fe="mattilsynet.matomo.cloud",j="mtds-analytics-banner",Ba="https://www.mattilsynet.no/om-mattilsynet/personvernerklaering/informasjonskapsler";function ei(t,e={}){if(at){if(window._paq||(window._paq=[],window._paq.push(["HeatmapSessionRecording::disable"]),window._paq.push(["enableLinkTracking"]),window._paq.push(["setTrackerUrl",`https://${Fe}/matomo.php`])),window._mtm||(window._mtm=window._mtm||[],window._mtm.push({"mtm.startTime":Date.now(),event:"mtm.Start"})),t==="init"){window._mtdsTracking={enabled:window.location.hostname!=="localhost",...window._mtdsTracking,...e};const{consent:n,enabled:o,matomoId:i,matomoTagManagerId:s}=window._mtdsTracking;if(i&&window._paq.push(["setSiteId",i]),o){n!=="custom"&&ja();const a=s?`https://cdn.matomo.cloud/${Fe}/container_${s}.js`:`https://cdn.matomo.cloud/${Fe}/matomo.js`;document.querySelector(`script[src="${a}"]`)||document.head.append($("script",{async:"",src:a}))}}if(window._mtdsTracking?.enabled!==!1){if(window._mtdsTracking?.enabled==="debug")return console.info(`analytics("${t}", `,e,")");if(t==="pageview"){const{url:n,title:o}=e;window._paq.push(["setCustomUrl",n||location.href]),window._paq.push(["setDocumentTitle",o||document.title]),window._paq.push(["trackPageView"])}else if(t==="event"){const{category:n,action:o,name:i,value:s}=e,a=["trackEvent",n,o,i,s];let r=location.href;window._paq.push([function(){r=this.getCurrentUrl()}]),window._paq.push(["setCustomUrl",r.split("#")[0]]),window._paq.push(a.filter(c=>c!==void 0)),window._paq.push(["setCustomUrl",r])}else if(t==="search"){const{query:n,category:o=!1,results:i=!1}=e;window._paq.push(["trackSiteSearch",n,o,i])}else t==="matomo"&&window._paq.push(e)}}}function ja(){if(document.getElementById(j)||window.localStorage.getItem(j))return;document.body.insertAdjacentHTML("afterbegin",`<dialog id="${j}" data-analytics="ignore"><style>
|
|
9
|
+
#${j}[open] { box-sizing: border-box; display: flex; align-items: center; background: #116e6b; border-radius: .5em; border: 0; box-shadow: 0 .25em .5em rgba(0,0,0,.3); color: #fff; font-size: .875em; inset: auto auto 1em 1em; max-width: calc(100vw - 2em); outline: 0; padding: .5em; position: fixed; z-index: 99999 }
|
|
10
|
+
#${j} button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; width: 1.5em; height: 1.5em; font: 300 1.5em/1.35 sans-serif; border-radius: .25em; place-content: center; transition: .2s; transition-property: background, scale }
|
|
11
|
+
#${j} button:focus-visible { outline: 2px solid }
|
|
12
|
+
#${j} button:hover { background: #0a4e4f }
|
|
13
|
+
#${j} button:active { background: #054449; scale: .9 }
|
|
14
|
+
#${j} p { margin: 0 .25em }
|
|
15
15
|
</style>
|
|
16
16
|
<p>Vi bruker <a href="${Ba}" target="_blank">informasjonskapsler</a> for å forbedre brukeropplevelsen.</p>
|
|
17
17
|
<form method="dialog" data-analytics="ignore"><button type="submit" aria-label="OK">×</button></form>
|
|
18
|
-
</dialog>`);const e=document.getElementById(
|
|
18
|
+
</dialog>`);const e=document.getElementById(j),n=()=>window.localStorage.setItem(j,"seen");e.addEventListener("close",n,{once:!0}),e.show()}function Fa(t){window._mtdsTracking?.enabled&&setTimeout(Ua,0,t)}function Ua({type:t,target:e}){const n=t==="click"?e?.closest?.(Na):e;if(!(n instanceof Element)||n.closest('[data-analytics="ignore"]'))return;let o="click",i="Button",s=ni(n)||za(n)||f(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 a=f(n,"type"),r=a==="checkbox"||a==="radio"?n.closest("fieldset"):null;i=n.closest(ti)?"Chip":"Form",o="change",s=ni(r||n)||Ct(r?.querySelector("legend"))||Ct(n?.labels?.[0])}else if(f(n,"role")==="tab")i="Tab",o="navigate";else if(f(n,"popovertarget")){if(!qa(n)?.matches(":popover-open"))return;i=n.closest(Pa)?"HelpText":"Popover",o="open"}else if(n.nodeName.endsWith("SUMMARY")){if(!n.parentElement.open)return;i="Details",o="open"}else if(f(n,"data-command")==="toggle-app-expanded"){const a=Va(n,"--mtds-tooltip-position")==="none";i="Sidebar",o=a?"expand":"minimize",s=a&&f(n,"data-tooltip")||Ct(n)}else if(n.closest(Oa))i="Breadcrumbs",o="navigate";else if(n.closest(Da))i="Pagintation",o="navigate";else if(n.closest(Ra))i="Card",o=n instanceof HTMLAnchorElement?"navigate":"click";else if(n.closest(ti))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(f(n,"aria-expanded")!=="true")return;i="Expand",o="open"}ei("event",{category:f(n,"data-analytics-category")??i,action:f(n,"data-analytics-action")??o,name:f(n,"data-analytics-name")??s})}const Ct=t=>t?.textContent?.trim()||"",ni=t=>t&&f(t,"aria-label")||"",qa=t=>document.getElementById(f(t,"popovertarget")||""),Va=(t,e)=>window.getComputedStyle(t).getPropertyValue(e)?.trim(),za=t=>{const e=Ct(t),n=Ct(t.querySelector("h1,h2,h3,h4,h5,h6"));return e.startsWith(n)&&n||e.slice(0,100).trim()};D(()=>C(document,Ha,Fa,P)),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 oi=T.app.split(" ")[0],Wa=T.sticky.split(" ")[0],Ga='[data-command="toggle-app-expanded"]',Ue=`.${oi} > dialog,.${oi} dialog ~ main`,ii=t=>{document.startViewTransition?document.startViewTransition(t):t()},si=t=>ii(()=>window.mtdsToggleAppExpanded?.(t));function Ya({target:t,defaultPrevented:e}){const n=t?.closest?.("a");if(n?.closest("dialog")&&n?.closest(Ue))return ai();if(e||!(t instanceof HTMLButtonElement)||!t.matches(Ga))return;getComputedStyle(t).position==="sticky"?si():ii(()=>{const i=document.querySelector(Ue);i?.setAttribute("data-closedby","any"),i?.showModal()})}function ai(){document.querySelector(Ue)?.close()}let qe=0,wt,Y=0,L,Ve=0,re=0,ze=!1,We=0,lt=0;function Ka([t]){L=t,ri()}function ri(){if(!L?.isConnected)return;const t=window.scrollY,e=t<lt;lt=t,e!==wt&&(qe=(L.parentElement?.getBoundingClientRect().top||0)+lt,wt=e,Ve=L.offsetHeight,re=L.getBoundingClientRect().top+lt,ze=L.offsetHeight<=window.innerHeight,We=window.innerHeight),!(Y===-1&&ze)&&(Y!==-1&&(ze||wt&<<=re)?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top","0px"),Y=-1):Y===-1&&!wt?(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${Math.max(0,lt-qe)}px`),Y=0):Y!==1&&!wt&<+We>=re+Ve?(L.style.setProperty("--pos","sticky"),L.style.setProperty("--top",`${We-Ve}px`),Y=1):Y===1&&wt&&(L.style.setProperty("--pos","relative"),L.style.setProperty("--top",`${re-qe}px`),Y=0))}D(()=>{yt(document.documentElement,Wa,Ka),C(document,"click",Ya,P),C(window,"resize",Aa(ai,100),P),C(window,"scroll",ri,P)});const Xa=(t,e,n=Number.POSITIVE_INFINITY)=>{const 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),a=Array.from({length:s+1-i},(r,c)=>c+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&s<e&&a.splice(-2,2,0,e),a},Qa=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Xa(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))});function k(t,e={}){const n=document.getElementById(e.id||"")||$("dialog");return f(n,"aria-busy",e.busy?"true":null),f(n,"class",ka(T.toast,e.className)),f(n,"data-closedby",e.closedby||null),f(n,"data-color",e.color||null),f(n,"data-icon",`${e.icon??""}`||null),f(n,"data-timeout",`${e.timeout??""}`||null),f(n,"id",e.id||`${Date.now()}`),f(n,"open",e.open===!1?null:""),n.innerHTML=t,n.addEventListener("animationend",Ja,{once:!0}),document.body.appendChild(n),n.id}function Ja({animationName:t,target:e}){t===T._toastClose&&e.remove()}k.success=(t,e)=>k(t,{color:"success",...e}),k.danger=(t,e)=>k(t,{color:"danger",...e}),k.info=(t,e)=>k(t,{color:"info",...e}),k.warning=(t,e)=>k(t,{color:"warning",...e}),k.neutral=(t,e)=>k(t,{color:"neutral",...e}),k.promise=async function(e,n){const{loading:o,success:i,error:s,...a}=n,r=k(o,{busy:!0,...a});try{const c=await e();return k.success(i,{id:r,busy:!1}),c}catch(c){throw k.danger(s,{id:r,busy:!1}),c}};const Za=T.breadcrumbs.split(" ")[0];function tr(t){for(const e of t)e.querySelectorAll("li a").forEach((n,o,{length:i})=>{f(n,"aria-current",o===i-1?"page":null)})}D(()=>yt(document.documentElement,Za,tr));const er=`:host(:not([hidden])) {
|
|
19
19
|
display: grid;
|
|
20
20
|
gap: var(--ds-size-6);
|
|
21
21
|
}
|
|
@@ -315,17 +315,17 @@ var mtds=function(M){"use strict";var os=Object.defineProperty,ln=Object.getOwnP
|
|
|
315
315
|
vertical-align: middle;
|
|
316
316
|
width: var(--ds-size-5);
|
|
317
317
|
}
|
|
318
|
-
`;function nr(t,{type:e}){const n=e==="stacked",o=t[0].reduce((d,u,m)=>{const p=t.map(h=>h[m].number),
|
|
318
|
+
`;function nr(t,{type:e}){const n=e==="stacked",o=t[0].reduce((d,u,m)=>{const p=t.map(h=>h[m].number),b=p.reduce((h,_)=>h+_,0);return Math.max(d,...n?[b]:p)},0),i=10**(`${~~o}`.length-1),s=o/i<5?i/2:i,a=Math.ceil(o/s)*s,r=$("div",{class:"axisGroups"}),c=$("div");c.classList.add("axisSteps"),c.append(...Array.from({length:a/s+1},(d,u)=>or(s*u)).reverse().map(d=>$("div",{class:"axisStep","data-label":d})));const l=$("div",{"aria-label":t[0][0].value||null,class:"axis",role:"figure"});return l.style.setProperty("--groups",`${t.length-1}`),l.style.setProperty("--total",`${a}`),l.append(c,r),{total:a,groups:r,axis:l}}const or=new Intl.NumberFormat().format;function ir(t){return t[0].slice(1).map(({value:e,event:n},o)=>{const i=$("div",{class:"axisGroup","data-label":e}),s=i.appendChild($("div",{class:"axisGroupContent"}));return t.slice(1).map(a=>a[o+1]).map(({tooltip:a,style:r,number:c})=>s.appendChild($("div",{"aria-label":a,"data-event":n,class:"bar",role:"img",style:`${r}; --value: ${c}`,tabindex:"0"}))),i})}function sr(t,{total:e,variant:n}){const i=$("div",{class:"axisGroup"});return t.slice(1).forEach(([,...s])=>{const a=$("div",{class:"lineContainer",role:"list",style:s[0].style}),r=ar(s.map(({number:d},u,{length:m})=>[100/(m-1)*u,100-d/e*100]),0/100),c=document.createElementNS("http://www.w3.org/2000/svg","svg");f(c,"aria-hidden","true"),f(c,"preserveAspectRatio","none"),f(c,"viewBox","0 0 100 100");const l=document.createElementNS("http://www.w3.org/2000/svg","path");if(f(l,"class","line"),f(l,"d",r),f(l,"fill","none"),f(l,"stroke","currentColor"),n==="area"){const d=l.cloneNode(!0);f(d,"d",`M-100,100 L${r.slice(1)}L200,100`),f(d,"class","lineShade"),c.append(d)}s.forEach(({number:d,tooltip:u,event:m})=>{const p=$("div",{role:"listitem"});p.appendChild($("div",{"aria-label":u,"data-event":m,tabindex:"0",class:"linePoint",role:"img",style:`--value: ${d}`})),a.append(p)}),a.appendChild(c).append(l),i.append(a)}),i}const ar=(t,e)=>t.map(([n,o],i,s)=>i?rr(i,s,e):`M${n},${o}`).join(" "),li=([t,e],[n,o])=>[t+n,e+o],ci=([t,e],[n,o])=>[t-n,e-o],di=(t,[e,n])=>[t*e,t*n],rr=(t,e,n)=>{const o=e[t-1],i=e[t],[s,a]=li(o,di(n,ci(i,e[t-2]||o))),[r,c]=li(i,di(n,ci(o,e[t+1]||i)));return`C ${s},${a} ${r},${c} ${i[0]},${i[1]}`};function lr(t,{variant:e}){const n=document.createElementNS("http://www.w3.org/2000/svg","svg");f(n,"class","pie"),f(n,"viewBox","0 0 100 100");let o=0;const i=50,s=e==="doughnut"?25:0,a=t.slice(1).reduce((r,[,c])=>r+c.number,0);return t.slice(1).forEach(([,{tooltip:r,number:c,event:l,style:d}])=>{const u=document.createElementNS("http://www.w3.org/2000/svg","path"),m=o/a;o+=c;const p=o/a,b=p-m>.5?1:0,h=2*Math.PI*(m-.25),_=2*Math.PI*(p-.25),v=Math.cos(h),g=Math.sin(h),x=Math.cos(_),w=Math.sin(_),S=`M ${i+s*v} ${i+s*g} L ${i+i*v} ${i+i*g} A ${i} ${i} 0 ${b} 1 ${i+i*x} ${i+i*w} L ${i+s*x} ${i+s*w} A ${s} ${s} 0 ${b} 0 ${i+s*v} ${i+s*g}`;f(u,"aria-label",r),f(u,"data-event",l),f(u,"style",d),f(u,"d",S),f(u,"role","img"),f(u,"tabindex","0"),n.appendChild(u)}),n}const ui="click,keydown,mousemove,mouseout",fi="mtds-chart-tooltip",Z=at?document.getElementById(fi)||$("div",{class:T._tooltip,id:fi,hidden:""}):null;class cr extends Ma{_observer;static get observedAttributes(){return["data-variant"]}constructor(){super(),this.attachShadow({mode:"open"})}connectedCallback(){this._observer=new MutationObserver(this.attributeChangedCallback.bind(this)),this._observer.observe(this,{attributeFilter:["data-tooltip"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),this.attributeChangedCallback(),C(this,ui,this)}disconnectedCallback(){Z&&(Z.hidden=!0),Jo(this,ui,this),this._observer?.disconnect(),this._observer=void 0}attributeChangedCallback(){Array.from(this.shadowRoot?.children||[]).map(l=>l.remove());const e=fr(this.querySelector("table")),[n,o]=(f(this,"data-variant")||"bar").split("-"),i=$("style",{},er),s=$("div",{class:"legends"});e.slice(1).forEach(([{value:l,style:d}])=>{s.appendChild($("div",{class:"legend",style:d},l))});const{axis:a,groups:r,total:c}=nr(e,{type:o});(n==="bar"||n==="column")&&r.append(...ir(e)),(n==="line"||n==="area")&&r.append(sr(e,{total:c,variant:n})),(n==="doughnut"||n==="pie")&&this.shadowRoot?.append(lr(e,{variant:n})),this.shadowRoot?.append(i,a,s)}handleEvent(e){e.type==="click"||e.type==="keydown"?dr(e,this):ur(e)}}function dr(t,e){if(t instanceof KeyboardEvent&&t.key!=="Enter")return;const n=t.composedPath()[0],o=e.querySelector("table"),[i,s]=n instanceof Element&&f(n,"data-event")?.split("-").map(Number)||[];o?.rows[i]?.cells[s]?.querySelector("a,button")?.click?.()}let pi="";function ur(t){if(!Z)return;Z?.isConnected||document.body.append(Z);const e=t.composedPath()[0],n=e instanceof Element&&e.getAttribute("aria-label")||"";n&&(Z.style.transform=`translate(${t.pageX}px, ${t.pageY}px)`),n!==pi&&(n&&(Z.textContent=n),pi=n,Z.hidden=!n)}const $t=t=>t?.textContent?.trim()||"",fr=t=>Array.from(t?.rows||[],(e,n)=>Array.from(e.cells,(o,i)=>({number:i&&n&&Number.parseFloat($t(o))||0,event:o.querySelector("a,button")&&`${n}-${i}`,style:`--color: var(--mtdsc-chart-color-${n}, var(--mtdsc-chart-color-base))`,value:$t(o),tooltip:f(o,"data-tooltip")||`${$t(e.cells[0])}: ${$t(o)} (${$t(t?.rows[0].cells[i])})`})));at&&!window.customElements.get("mtds-chart")&&window.customElements.define("mtds-chart",cr);const pr=T.dialog.split(" ")[0],mi=at?document.getElementsByClassName(pr):[],mr=()=>{for(const t of mi)t.isConnected&&t.showModal&&t.close&&(t.matches('[open]:not([data-modal="false"]):not(:modal)')?(f(t,"open",null),t.showModal()):t.matches(":modal:not([open])")&&(f(t,"open",""),t.close()))},hr=({clientX:t,clientY:e,target:n})=>{for(const s of mi)if(s.open&&f(s,"data-closedby")==="any"){const{top:a,right:r,bottom:c,left:l}=s.getBoundingClientRect();if(!(a<=e&&e<=c&&l<=t&&t<=r))return s.close()}const o=n?.closest?.("dialog");o&&n?.closest?.('[data-command="close"]')&&o.close()};D(()=>{C(document,"click",hr,P),Zo(mr).observe(document.documentElement,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0})});function gr(t){if(t.animationName!==T._errorsummary)return;const e=t.target?.firstElementChild;e instanceof HTMLHeadingElement&&(f(e,"tabindex","-1"),e.focus())}D(()=>C(document,"animationend",gr,P));var br=Object.defineProperty,hi=Object.getOwnPropertySymbols,vr=Object.prototype.hasOwnProperty,_r=Object.prototype.propertyIsEnumerable,gi=(t,e,n)=>e in t?br(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,yr=(t,e)=>{for(var n in e||(e={}))vr.call(e,n)&&gi(t,n,e[n]);if(hi)for(var n of hi(e))_r.call(e,n)&&gi(t,n,e[n]);return t},kt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",le=kt&&/android/i.test(navigator.userAgent),Ge=kt&&/iPad|iPhone|iPod/.test(navigator.userAgent),bi;kt&&/^Mac/i.test(((bi=navigator.userAgentData)==null?void 0:bi.platform)||navigator.platform);var wr=`${le?"data":"aria"}-labelledby`,xr=":host(:not([hidden])) { display: block }",Er="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",vi=typeof HTMLElement>"u"?class{}:HTMLElement;function E(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var _i=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},At=(t,...e)=>_i("add",t,e),ce=(t,...e)=>_i("remove",t,e),Sr=(t,e)=>t.shadowRoot||t.attachShadow({mode:"open"}).append(Xe("slot"),Xe("style",e)),de=new WeakMap,Ye=(t,e)=>{if(e===void 0)return de.get(t);try{de.get(t).disconnect(),de.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),de.set(t,n)}},yi=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},Tr=0,Ke=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Tr).toString(32)}`),t.id):"",Xe=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},wi={define:(t,e)=>!kt||window.customElements.get(t)||window.customElements.define(t,e)},ct,Cr=0,xi=t=>{ct||(ct=Xe("div"),ct.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",E(ct,"aria-live","assertive")),ct.isConnected||document.body.append(ct),t&&(ct.textContent=`${t}${Cr++%2?" ":""}`)},$r=(t,e,n="")=>{var o,i;const s={bubbles:!0,composed:!0,data:e,inputType:n},a=HTMLInputElement.prototype;t.dispatchEvent(new InputEvent("beforeinput",s)),(i=(o=Object.getOwnPropertyDescriptor(a,"value"))==null?void 0:o.set)==null||i.call(t,e),t.dispatchEvent(new InputEvent("input",s)),t.dispatchEvent(new Event("change",{bubbles:!0}))},Qe=!1,Je=t=>(t?.type==="mouseup"&&(Qe=!1),t?.type==="mousedown"&&(Qe=!0,At(document,"mouseup",Je,{once:!0})),Qe),Ze="disabled",Lt="selected",kr=class extends vi{static get observedAttributes(){return[Ze,Lt]}connectedCallback(){Ge||(this.tabIndex=-1),this.hasAttribute("role")||E(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){E(this,"aria-disabled",`${this.disabled}`),E(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[Lt]}set defaultSelected(t){this[Lt]=t}get disabled(){return E(this,Ze)!==null}set disabled(t){E(this,Ze,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=E(this,"label"))!=null?t:this.text}set label(t){E(this,"label",t)}get selected(){return E(this,Lt)!==null}set selected(t){E(this,Lt,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=E(this,"value"))!=null?t:this.text}set value(t){E(this,"value",t)}};wi.define("u-option",kr);var Ar=`${xr}
|
|
319
319
|
::slotted(u-option) { display: block; cursor: pointer }
|
|
320
|
-
::slotted(u-option:focus) { ${
|
|
320
|
+
::slotted(u-option:focus) { ${Er} }
|
|
321
321
|
::slotted(u-option[aria-hidden="true"]),
|
|
322
322
|
::slotted(u-option[disabled]),
|
|
323
|
-
::slotted(u-option[hidden]) { display: none !important }`,Ei,Si=0,Ir=je||le,Ti="click,focusout,input,keydown,mousedown,mouseup",Ci="focus,focusin,blur,focusout",ue={singular:"%d hit",plural:"%d hits"},$i=class extends bi{constructor(){super(),this._texts=wr({},ue),this._value="",Tr(this,Lr)}static get observedAttributes(){return["id",...Object.keys(ue).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=yi(this),E(this,"role","listbox"),E(this,"tabindex","-1"),At(this._root,"focusin",this),At(this._root,"focus",this,!0),Ge(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ce(this._root||this,"focus",this,!0),ce(this._root||this,"focusin",this),Ge(this,!1),Ze(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(ue[o])this._texts[o]=n||ue[o];else if(this._root){this._input&&tn(this,this._input);for(const s of this._root.querySelectorAll(i))tn(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Rr(this,t),(n==="focus"||n==="focusin")&&Mr(this,t),(n==="blur"||n==="focusout")&&Or(this,t),n==="keydown"&&Pr(this,t),n==="mousedown"&&this.contains(e)&&Qe(t),(n==="mutation"||n==="input")&&(clearTimeout(Si),Si=setTimeout(Li,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},ki=t=>t?.disabled||t?.readOnly||!1,It=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=ki(t?._input)||!e,(n=Ge(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&tn(t,t._input,e),s&&E(t,"popover","manual"),s&&t.togglePopover(e),e&&Li(t)},Ze=t=>{t._input&&(ce(t._input||t,Ci,t),ce(t._root||t,Ti,t),It(t,!1),t._input=void 0)},tn=(t,e,n=!1)=>{t.popover&&E(e,"popovertarget",Ye(t)),At(e,Ci,t,!0),E(e,"aria-autocomplete","list"),E(e,"aria-controls",Ye(t)),E(e,"aria-expanded",`${!Ir||n}`),E(e,"autocomplete","off"),E(e,"role",ki(e)?null:"combobox")},Mr=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&Ze(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),E(t,xr,Ye((n=t._input.labels)==null?void 0:n[0])),At(t._root||t,Ti,t),It(t,E(t._input,"inputmode")!=="none"),xi())},Or=(t,e)=>{!le&&!Qe()&&t._input&&setTimeout(Ai,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Ai=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),Ze(t))},Rr=(t,{target:e})=>{var n;if(!t._input||t._input===e)return It(t,!0);for(const o of t.options)if(o.contains(e))return E(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),It(t,!1)),kr(t._input,o.value);le&&Ai(t)},Pr=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:c}=e,l=o==="Escape"||o==="Esc";if(s||a||c||r||o==="Tab")return;l&&!t.hidden&&e?.preventDefault(),It(t,!l);const d=[...t.options].filter(p=>E(p,"aria-hidden")!=="true"&&p.offsetHeight),u=d.indexOf(i);let m=-1;if(o==="ArrowDown"&&(m=(u+1)%d.length),o==="ArrowUp"&&(m=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(m=0),(o==="End"||o==="PageDown")&&(m=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[m])for(const p of d)p.tabIndex=-1;d[m]&&e.preventDefault(),(n=d[m]||t._input)==null||n.focus(),!d[m]&&o==="ArrowUp"&&setTimeout(()=>{var p;return(p=t._input)==null?void 0:p.setSelectionRange(999,999)})},Li=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),c=[],l=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?c:l).push(u);for(const u of c)E(u,"aria-hidden","true");for(const u of l)E(u,"aria-hidden","false");const d=l.length;clearTimeout(Ei),e?.type==="input"&&a!==t._value&&(Ei=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&xi(u),t._value=a},1e3)),je&&l.map((u,m)=>E(u,"title",`${m+1}/${d}`))};kt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return yi(this).getElementById(E(this,"list")||"")}}),wi.define("u-datalist",$i);const en=T.field.split(" ")[0],Ii=T.validation.split(" "),Dr=Ii[0],U=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Mi(t,e){for(const n of t)if(n.isConnected){const o=[],i=[],s=[];let a=null,r=null,c=!0;for(const l of n.getElementsByTagName("*"))l instanceof HTMLLabelElement?o.push(l):l instanceof _e?a=l:Be(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(Dr)?(c=f(l,"data-color")==="success"||!l.clientHeight,s.push(l),i.unshift(l)):l instanceof HTMLParagraphElement&&(i.some(d=>d.contains(l))||i.push(l));if(r){for(const l of o)l.htmlFor=ae(r);if(e&&f(n,"data-validation")==="form"){c=r.matches(":valid");for(const l of s)f(l,"hidden",c?"":null)}Nr(a),Ri(r),Oi(r),f(r,"aria-describedby",i.map(ae).join(" ")||null),f(r,"aria-invalid",`${!c}`)}}}function Oi(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function Nr(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",U(o,"combobox-added")),f(t,"data-sr-empty",U(o,"combobox-empty")),f(t,"data-sr-found",U(o,"combobox-found")),f(t,"data-sr-invalid",U(o,"combobox-invalid")),f(t,"data-sr-of",U(o,"combobox-of")),f(t,"data-sr-remove",U(o,"combobox-remove")),f(t,"data-sr-removed",U(o,"combobox-removed")),f(n,"data-sr-plural",U(o,"datalist-plural")),f(n,"data-sr-singular",U(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ae(n)))}function Ri(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=U(a,"count-over"),c=U(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Ii)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function Hr(t){if(t.target instanceof $i){const e=t.target,o=e.getRootNode()?.querySelector(`[popovertarget="${e.id}"]`);t.newState==="closed"?rt(e,!1):o&&rt(e,o,{placement:f(e,"data-position")??"bottom",middleware:[De(),Pe(),Xo({padding:10,apply({availableHeight:i}){e.style.width=`${o.offsetWidth}px`,e.style.maxHeight=`${Math.max(50,i)}px`}})]})}}function Br(t){Be(t.target)&&(Ri(t.target),Oi(t.target))}function Fr(t){const e=t.target?.closest?.(`.${en}`);t.type==="invalid"&&e&&t.preventDefault(),Mi(document.getElementsByClassName(en),!0)}D(()=>{yt(document.documentElement,en,Mi),C(document,"input",Br,P),C(document,"invalid,submit",Fr,!0),C(document,"toggle",Hr,P)});const Ur=T.fieldset.split(" ")[0],qr=T.validation.split(" ")[0],Pi="aria-describedby",Vr="aria-invalid";function zr(t){setTimeout(()=>{for(const e of t)if(e.isConnected){const n=[];let o=null,i=!0;for(const s of e.getElementsByTagName("*"))s.classList.contains(qr)?(i=f(s,"data-color")==="success"||!s.clientHeight,o=ae(s)):Be(s)&&n.push(s);for(const s of n){const a=f(s,Pi)?.replace(o||"#","");f(s,Pi,`${o||""} ${a||""}`.trim()),f(s,Vr,`${!i}`)}}})}D(()=>yt(document.documentElement,Ur,zr));const Wr=T.logo.split(" ")[0];function jr([t]){if(t?.isConnected&&t?.firstElementChild instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const e=t.firstElementChild,n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild($("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}D(()=>yt(document.documentElement,Wr,jr));const nn=T.popover.split(" ")[0],Di="_mtds-popover-auto";function Gr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(nn)){const n=e==="closed",o=f(t,"data-overscroll")==="contain",i=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);n?rt(t,!1):i&&rt(t,i,{placement:f(t,"data-position")||"bottom",middleware:[De(),Pe({padding:10})].concat(o?Xo({padding:10,apply({availableHeight:s}){t.style.maxHeight=`${Math.max(50,s)}px`}}):[])})}}function Yr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(nn)&&f(t,"popover")!=="manual"&&(t.classList.add(Di),f(t,"popover","manual"))}function Kr(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${nn}`);for(const i of document.getElementsByClassName(Di))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0);if(e instanceof HTMLButtonElement&&!i&&o.contains(e))return;o instanceof HTMLElement&&o.isConnected&&o.togglePopover&&(t.preventDefault(),o.togglePopover(s))}}D(()=>{C(document,"click",Kr),C(document,"toggle",Gr,P),C(document,"beforetoggle",Yr,P)});const Xr=T.table.split(" ")[0],Qr='a,button,label,input,select,textarea,[role="button"]';function Jr(t){for(const e of t){const n=Array.from(e.tHead?.rows[0]?.cells||[],o=>o.innerText.trim());for(const o of e.tBodies)for(const i of o.rows)for(const s of i.cells)f(s,"data-th",n[s.cellIndex]||":empty")}}function Zr({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(Qr)&&n.click?.()}D(()=>{yt(document.documentElement,Xr,Jr),C(document,"click",Zr)});const Ni=T.toast.split(" ")[0],fe="data-sort";function tl({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(fe)||f(n,fe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ni}[open]`)].sort((i,s)=>Number(f(s,fe))-Number(f(i,fe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function el({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ni)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),c=o.right-Number.parseInt(i.paddingRight,10),l=c-Number.parseInt(s.width,10);a<=n&&n<=r&&l<=e&&e<=c&&t.close()}}D(()=>{C(document,"animationstart",tl),C(document,"click",el)});const nl=`.${T.togglegroup.split(" ")[0]}`;function ol(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(nl);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}D(()=>C(document,"keydown",ol));const Hi="aria-describedby",Bi="Escape",pe="aria-labelledby",il="--mtds-tooltip-position",sl=300,Fi="mtds-tooltip",q=at?document.getElementById(Fi)||$("div",{class:T._tooltip,id:Fi,popover:"manual"}):null;let tt=null,Ui=Number.NEGATIVE_INFINITY,qi=0;function on({target:t,type:e,key:n}){if(e==="keydown"&&n!==Bi)return;const o=Ui+sl-Date.now();clearTimeout(qi),qi=setTimeout(al,Math.max(o,0),n===Bi?null:t)}function al(t){if(Ui=Date.now(),!q||t===q)return;q?.isConnected||document.body.append(q);let e=t?.closest?.("[data-tooltip]")||null;if(e===tt)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue(il)?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(q.textContent=n);const s=tt&&f(tt,pe)===q?.id,a=(e instanceof HTMLElement?e.innerText:e?.textContent)?.trim()||e?.hasAttribute(pe)||e?.hasAttribute("aria-label");tt?.removeAttribute(s?pe:Hi),rt(q,!1),tt=e,tt&&f(tt,a?Hi:pe,q?.id),tt?.isConnected&&q.hidePopover(),q.togglePopover(!!e),rt(q,e||!1,{placement:o,middleware:[De(),Pe({padding:10})]})}D(()=>{C(document,"blur,focus,mouseout,mouseover",on,P),C(window,"keydown",on,P),C(window,"blur",on,P)});var Vi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",zi;Vi&&/^Mac/i.test(((zi=navigator.userAgentData)==null?void 0:zi.platform)||navigator.platform);var rl=":host(:not([hidden])) { display: block }",Wi=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var ji=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Gi=(t,...e)=>ji("add",t,e),Yi=(t,...e)=>ji("remove",t,e),ll=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},cl=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},sn=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},Ki={define:(t,e)=>!Vi||window.customElements.get(t)||window.customElements.define(t,e)},dl=`${rl}
|
|
323
|
+
::slotted(u-option[hidden]) { display: none !important }`,Ei,Si=0,Lr=Ge||le,Ti="click,focusout,input,keydown,mousedown,mouseup",Ci="focus,focusin,blur,focusout",ue={singular:"%d hit",plural:"%d hits"},$i=class extends vi{constructor(){super(),this._texts=yr({},ue),this._value="",Sr(this,Ar)}static get observedAttributes(){return["id",...Object.keys(ue).map(t=>`data-sr-${t}`)]}connectedCallback(){this.hidden=!0,this._root=yi(this),E(this,"role","listbox"),E(this,"tabindex","-1"),At(this._root,"focusin",this),At(this._root,"focus",this,!0),Ye(this,{attributeFilter:["disabled","hidden","label","value"],attributes:!0,characterData:!0,childList:!0,subtree:!0}),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){ce(this._root||this,"focus",this,!0),ce(this._root||this,"focusin",this),Ye(this,!1),tn(this),this._root=void 0}attributeChangedCallback(t,e,n){const o=t?.split("data-sr-")[1],i=`input[list="${this.id}"]`;if(ue[o])this._texts[o]=n||ue[o];else if(this._root){this._input&&en(this,this._input);for(const s of this._root.querySelectorAll(i))en(this,s)}}handleEvent(t){const{target:e,type:n}=t;t.defaultPrevented||(n==="click"&&Or(this,t),(n==="focus"||n==="focusin")&&Ir(this,t),(n==="blur"||n==="focusout")&&Mr(this,t),n==="keydown"&&Rr(this,t),n==="mousedown"&&this.contains(e)&&Je(t),(n==="mutation"||n==="input")&&(clearTimeout(Si),Si=setTimeout(Li,0,this,t)))}get options(){return this.getElementsByTagName("u-option")}},ki=t=>t?.disabled||t?.readOnly||!1,It=(t,e)=>{var n,o,i;if(t.hidden!==e)return;t.hidden=ki(t?._input)||!e,(n=Ye(t))==null||n.takeRecords();const s=t.isConnected&&t.popover&&((o=t._input)==null?void 0:o.isConnected)&&((i=t._input)==null?void 0:i.popoverTargetElement)===t;t._input&&en(t,t._input,e),s&&E(t,"popover","manual"),s&&t.togglePopover(e),e&&Li(t)},tn=t=>{t._input&&(ce(t._input||t,Ci,t),ce(t._root||t,Ti,t),It(t,!1),t._input=void 0)},en=(t,e,n=!1)=>{t.popover&&E(e,"popovertarget",Ke(t)),At(e,Ci,t,!0),E(e,"aria-autocomplete","list"),E(e,"aria-controls",Ke(t)),E(e,"aria-expanded",`${!Lr||n}`),E(e,"autocomplete","off"),E(e,"role",ki(e)?null:"combobox")},Ir=(t,e)=>{var n;const o=e.target instanceof HTMLInputElement;o&&e.isTrusted&&e.stopImmediatePropagation(),t._input!==e.target&&o&&e.target.list===t&&(t._input&&tn(t),t._input=e.target,t._input.dispatchEvent(new FocusEvent("focus")),t._input.dispatchEvent(new FocusEvent("focusin",{bubbles:!0})),E(t,wr,Ke((n=t._input.labels)==null?void 0:n[0])),At(t._root||t,Ti,t),It(t,E(t._input,"inputmode")!=="none"),xi())},Mr=(t,e)=>{!le&&!Je()&&t._input&&setTimeout(Ai,0,t),e.target===t._input&&e.isTrusted&&e.stopImmediatePropagation()},Ai=t=>{var e;const n=((e=t._root)==null?void 0:e.activeElement)||null,o=t._input;o&&o!==n&&!t.contains(n)&&(o.dispatchEvent(new FocusEvent("blur",{relatedTarget:n})),o.dispatchEvent(new FocusEvent("focusout",{bubbles:!0,relatedTarget:n})),tn(t))},Or=(t,{target:e})=>{var n;if(!t._input||t._input===e)return It(t,!0);for(const o of t.options)if(o.contains(e))return E(t,"aria-multiselectable")!=="true"&&((n=t._input)==null||n.focus(),It(t,!1)),$r(t._input,o.value);le&&Ai(t)},Rr=(t,e)=>{var n;const{key:o,target:i,altKey:s,ctrlKey:a,shiftKey:r,metaKey:c}=e,l=o==="Escape"||o==="Esc";if(s||a||c||r||o==="Tab")return;l&&!t.hidden&&e?.preventDefault(),It(t,!l);const d=[...t.options].filter(p=>E(p,"aria-hidden")!=="true"&&p.offsetHeight),u=d.indexOf(i);let m=-1;if(o==="ArrowDown"&&(m=(u+1)%d.length),o==="ArrowUp"&&(m=(~u?u:d.length)-1),~u&&((o==="Home"||o==="PageUp")&&(m=0),(o==="End"||o==="PageDown")&&(m=d.length-1),o==="Enter"))return d[u].click(),e.preventDefault();if(d[m])for(const p of d)p.tabIndex=-1;d[m]&&e.preventDefault(),(n=d[m]||t._input)==null||n.focus(),!d[m]&&o==="ArrowUp"&&setTimeout(()=>{var p;return(p=t._input)==null?void 0:p.setSelectionRange(999,999)})},Li=(t,e)=>{const{_texts:n,_root:o,_input:i,options:s}=t,a=i?.value.toLowerCase().trim()||"",r=!t.hasAttribute("data-nofilter"),c=[],l=[];for(const u of s)(u.disabled||u.hidden||r&&!u.label.toLowerCase().includes(a)?c:l).push(u);for(const u of c)E(u,"aria-hidden","true");for(const u of l)E(u,"aria-hidden","false");const d=l.length;clearTimeout(Ei),e?.type==="input"&&a!==t._value&&(Ei=setTimeout(()=>{const u=`${!d&&t.innerText.trim()||`${n[d===1?"singular":"plural"]}`.replace("%d",`${d}`)}`;!t.hidden&&o?.activeElement===i&&xi(u),t._value=a},1e3)),Ge&&l.map((u,m)=>E(u,"title",`${m+1}/${d}`))};kt&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return yi(this).getElementById(E(this,"list")||"")}}),wi.define("u-datalist",$i);const nn=T.field.split(" ")[0],Ii=T.validation.split(" "),Pr=Ii[0],F=(t,e)=>t.getPropertyValue(`--mtds-text-${e}`)?.slice(1,-1)||"";function Mi(t,e){for(const n of t)if(n.isConnected){const o=[],i=[],s=[];let a=null,r=null,c=!0;for(const l of n.getElementsByTagName("*"))l instanceof HTMLLabelElement?o.push(l):l instanceof ye?a=l:je(l)&&!l.hidden?r=l:l.hasAttribute("data-description")?i.push(l):l.classList.contains(Pr)?(c=f(l,"data-color")==="success"||!l.clientHeight,s.push(l),i.unshift(l)):l instanceof HTMLParagraphElement&&(i.some(d=>d.contains(l))||i.push(l));if(r){for(const l of o)l.htmlFor=ae(r);if(e&&f(n,"data-validation")==="form"){c=r.matches(":valid");for(const l of s)f(l,"hidden",c?"":null)}Dr(a),Ri(r),Oi(r),f(r,"aria-describedby",i.map(ae).join(" ")||null),f(r,"aria-invalid",`${!c}`)}}}function Oi(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function Dr(t){const{control:e,list:n}=t||{};if(t&&n&&!t.hasAttribute("data-sr-added")){const o=window.getComputedStyle(t);f(t,"data-sr-added",F(o,"combobox-added")),f(t,"data-sr-empty",F(o,"combobox-empty")),f(t,"data-sr-found",F(o,"combobox-found")),f(t,"data-sr-invalid",F(o,"combobox-invalid")),f(t,"data-sr-of",F(o,"combobox-of")),f(t,"data-sr-remove",F(o,"combobox-remove")),f(t,"data-sr-removed",F(o,"combobox-removed")),f(n,"data-sr-plural",F(o,"datalist-plural")),f(n,"data-sr-singular",F(o,"datalist-singular"))}n&&e&&!n.hasAttribute("popover")&&(f(n,"popover","manual"),f(e,"popovertarget",ae(n)))}function Ri(t){const e=t?.nextElementSibling,n=e&&f(e,"data-count");if(e&&n){const o=Number(n)-t.value.length,i=o<0,s=f(e,"aria-live")==="polite",a=window.getComputedStyle(e||t),r=F(a,"count-over"),c=F(a,"count-under");if(s!==i){f(e,"aria-live",i?"polite":"off");for(const l of Ii)e.classList.toggle(l,i)}e.textContent=(i?r:c).replace("%d",`${Math.abs(o)}`)}}function Nr(t){if(t.target instanceof $i){const e=t.target,o=e.getRootNode()?.querySelector(`[popovertarget="${e.id}"]`);t.newState==="closed"?rt(e,!1):o&&rt(e,o,{placement:f(e,"data-position")??"bottom",middleware:[Ne(),De(),Ko({padding:10,apply({availableHeight:i}){e.style.width=`${o.offsetWidth}px`,e.style.maxHeight=`${Math.max(50,i)}px`}})]})}}function Hr(t){je(t.target)&&(Ri(t.target),Oi(t.target))}function Br(t){const e=t.target?.closest?.(`.${nn}`);t.type==="invalid"&&e&&t.preventDefault(),Mi(document.getElementsByClassName(nn),!0)}D(()=>{yt(document.documentElement,nn,Mi),C(document,"input",Hr,P),C(document,"invalid,submit",Br,!0),C(document,"toggle",Nr,P)});const jr=T.fieldset.split(" ")[0],Fr=T.validation.split(" ")[0],Pi="aria-describedby",Ur="aria-invalid";function qr(t){setTimeout(()=>{for(const e of t)if(e.isConnected){const n=[];let o=null,i=!0;for(const s of e.getElementsByTagName("*"))s.classList.contains(Fr)?(i=f(s,"data-color")==="success"||!s.clientHeight,o=ae(s)):je(s)&&n.push(s);for(const s of n){const a=f(s,Pi)?.replace(o||"#","");f(s,Pi,`${o||""} ${a||""}`.trim()),f(s,Ur,`${!i}`)}}})}D(()=>yt(document.documentElement,jr,qr));const Vr=T.logo.split(" ")[0];function zr([t]){if(t?.isConnected&&t?.firstElementChild instanceof SVGSVGElement){for(const r of document.head.querySelectorAll("link[rel~='icon']"))r.setAttribute("rel","disabled");const e=t.firstElementChild,n=t?.hasAttribute("data-env"),o=window.getComputedStyle(e),i=o.getPropertyValue("color"),s=o.getPropertyValue("--mtds-logo-color"),a=e.outerHTML.replace(/\n+/g," ").replace(/(fill|width|height|xmlns)="[^"]+"/gi,"").replace("<svg",`<svg width="40" height="40" fill="${i}"`);document.head.appendChild($("link",{href:`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${n?"none":s}' width='51' height='51' x='2' y='2' stroke='${i}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${n?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${a}</g></svg>`)}`,rel:"icon"}))}}D(()=>yt(document.documentElement,Vr,zr));const fe=T.popover.split(" ")[0],Di="_mtds-popover-auto";function Wr({target:t,newState:e}){if(t instanceof HTMLElement&&t.classList.contains(fe)){const n=e==="closed",o=f(t,"data-overscroll")==="contain",i=Number(f(t,"data-inset"))||20,s=t.getRootNode()?.querySelector(`[popovertarget="${t.id}"]`);n?rt(t,!1):s&&rt(t,s,{placement:f(t,"data-position")||"bottom",middleware:[Ne(),De({padding:i})].concat(o?Ko({padding:i,apply({availableHeight:a}){t.style.maxHeight=`${Math.max(50,a)}px`}}):[])})}}function Gr({target:t,newState:e}){e==="open"&&t instanceof HTMLElement&&t.classList.contains(fe)&&f(t,"popover")!=="manual"&&(t.classList.add(Di),f(t,"popover","manual"))}function Yr(t){const e=t.target?.closest?.("a,button"),n=e&&f(e,"popovertarget"),o=n?document.getElementById(n):e?.closest(`.${fe}`);for(const i of document.getElementsByClassName(Di))!i.contains(t.target)&&o!==i&&i.hidePopover();if(o?.classList.contains(fe)&&e){const i=f(e,"popovertargetaction"),s=i==="show"||(i==="hide"?!1:void 0);if(e instanceof HTMLButtonElement&&!i&&o.contains(e))return;if(o instanceof HTMLElement&&o.isConnected){if(t.preventDefault(),o.hasAttribute("popover"))return o.togglePopover(s);console.error(`Element "${o.id}" is missing "popover" attribute`)}}}D(()=>{C(document,"click",Yr),C(document,"toggle",Wr,P),C(document,"beforetoggle",Gr,P)});const Kr=T.table.split(" ")[0],Xr='a,button,label,input,select,textarea,[role="button"]';function Qr(t){for(const e of t){const n=Array.from(e.tHead?.rows[0]?.cells||[],o=>o.innerText.trim());for(const o of e.tBodies)for(const i of o.rows)for(const s of i.cells)f(s,"data-th",n[s.cellIndex]||":empty")}}function Jr({target:t}){if(!(t instanceof Element))return;const n=t.closest("tr")?.querySelector('[data-command="row"]');n&&!t.closest(Xr)&&n.click?.()}D(()=>{yt(document.documentElement,Kr,Qr),C(document,"click",Jr)});const Ni=T.toast.split(" ")[0],pe="data-sort";function Zr({animationName:t,target:e}){const n=e;if(t===T._toastTimeout&&n.close(),t!==T._toastOpen)return;const o=Number(f(n,"data-timeout"));n.style.setProperty("--mtdsc-toast-timeout",o?`${o}ms`:null),n.hasAttribute(pe)||f(n,pe,`${Date.now()}`),f(n,"tabindex","0"),[...document.querySelectorAll(`.${Ni}[open]`)].sort((i,s)=>Number(f(s,pe))-Number(f(i,pe))).reduce((i,s)=>(s.style.translate=`0 ${s===e?0:i}px`,i+s.offsetHeight+5),0)}function tl({target:t,clientX:e,clientY:n}){if(t instanceof HTMLDialogElement&&t.classList.contains(Ni)&&f(t,"data-closedby")!=="none"){const o=t.getBoundingClientRect(),i=window.getComputedStyle(t),s=window.getComputedStyle(t,"::after"),a=o.top+Number.parseInt(i.paddingTop,10),r=a+Number.parseInt(s.height,10),c=o.right-Number.parseInt(i.paddingRight,10),l=c-Number.parseInt(s.width,10);a<=n&&n<=r&&l<=e&&e<=c&&t.close()}}D(()=>{C(document,"animationstart",Zr),C(document,"click",tl)});const el=`.${T.togglegroup.split(" ")[0]}`;function nl(t){const{key:e,target:n}=t,o=n instanceof HTMLInputElement&&n.closest(el);if(o&&(e==="Enter"&&n.click(),e?.startsWith("Arrow"))){t.preventDefault();const i=o.getElementsByTagName("input"),s=[...i].indexOf(n),a=e.match(/Arrow(Right|Down)/)?1:-1;i[(i.length+s+a)%i.length]?.focus()}}D(()=>C(document,"keydown",nl));const Hi="aria-describedby",Bi="Escape",me="aria-labelledby",ol="--mtds-tooltip-position",il=300,ji="mtds-tooltip",U=at?document.getElementById(ji)||$("div",{class:T._tooltip,id:ji,popover:"manual"}):null;let tt=null,Fi=Number.NEGATIVE_INFINITY,Ui=0;function on({target:t,type:e,key:n}){if(e==="keydown"&&n!==Bi)return;const o=Fi+il-Date.now();clearTimeout(Ui),Ui=setTimeout(sl,Math.max(o,0),n===Bi?null:t)}function sl(t){if(Fi=Date.now(),!U||t===U)return;U?.isConnected||document.body.append(U);let e=t?.closest?.("[data-tooltip]")||null;if(e===tt)return;const n=e&&f(e,"data-tooltip")||"",o=e&&f(e,"data-tooltip-position")||window.getComputedStyle(e||document.body).getPropertyValue(ol)?.trim()||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(U.textContent=n);const s=tt&&f(tt,me)===U?.id,a=(e instanceof HTMLElement?e.innerText:e?.textContent)?.trim()||e?.hasAttribute(me)||e?.hasAttribute("aria-label");tt?.removeAttribute(s?me:Hi),rt(U,!1),tt=e,tt&&f(tt,a?Hi:me,U?.id),tt?.isConnected&&U.hidePopover(),U.togglePopover(!!e),rt(U,e||!1,{placement:o,middleware:[Ne(),De({padding:10})]})}D(()=>{C(document,"blur,focus,mouseout,mouseover",on,P),C(window,"keydown",on,P),C(window,"blur",on,P)});var qi=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Vi;qi&&/^Mac/i.test(((Vi=navigator.userAgentData)==null?void 0:Vi.platform)||navigator.platform);var al=":host(:not([hidden])) { display: block }",zi=typeof HTMLElement>"u"?class{}:HTMLElement;function K(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Wi=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Gi=(t,...e)=>Wi("add",t,e),Yi=(t,...e)=>Wi("remove",t,e),rl=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},ll=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},sn=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))K(o,i,s);return o},Ki={define:(t,e)=>!qi||window.customElements.get(t)||window.customElements.define(t,e)},cl=`${al}
|
|
324
324
|
::slotted(u-summary) { cursor: pointer; display: block }
|
|
325
325
|
::slotted(u-summary)::before { content: ''; display: inline-block; vertical-align: middle; margin-inline: .05em .3125em; border-block: .3125em solid transparent; border-inline-start: .5em solid }
|
|
326
326
|
::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
|
|
327
|
-
:host > [part="details-content"]:not([hidden=""]) { display: block }`,
|
|
327
|
+
:host > [part="details-content"]:not([hidden=""]) { display: block }`,dl=class extends zi{constructor(){super(),this._content=null,this.shadowRoot||this.attachShadow({mode:"open"}).append(sn("slot",null,{name:"summary"}),sn("slot",null,{part:"details-content"}),sn("style",cl))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],K(this,"role","group"),Gi(this._content,"beforematch",this),Gi(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&Yi(this._content,"beforematch",this),Yi(this,"click,keydown",this),this._content=null}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"&&K(s,"aria-expanded",`${i}`);if(this._content&&(K(this._content,"aria-hidden",`${!i}`),K(this._content,"tabindex",i?null:"-1"),this._content.hidden=i?!1:o),i&&this.name){const s=ll(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const a of s)a!==this&&(a.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e?.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&rl(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){K(this,"open",t?"":null)}get name(){return K(this,"name")||""}set name(t){K(this,"name",t)}},ul=class extends zi{connectedCallback(){K(this,"role","button"),this.slot="summary",this.tabIndex=0}};Ki.define("u-details",dl),Ki.define("u-summary",ul);var he=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Xi=he&&/firefox/i.test(navigator.userAgent),fl=he&&/iPad|iPhone|iPod/.test(navigator.userAgent),Qi;he&&/^Mac/i.test(((Qi=navigator.userAgentData)==null?void 0:Qi.platform)||navigator.platform);var pl=typeof HTMLElement>"u"?class{}:HTMLElement;function I(t,e,n){return n===void 0?t.getAttribute(e):(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var ml=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},hl=0,gl=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++hl).toString(32)}`),t.id):"",Ji=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))I(o,i,s);return o},bl={define:(t,e)=>!he||window.customElements.get(t)||window.customElements.define(t,e)},vl=t=>{var e;const n=I(t,"aria-label")||"";return[...(((e=I(t,"aria-labelledby"))==null?void 0:e.trim().split(/\s+/))||[]).map(i=>document.getElementById(i)),...Array.from(t.labels||[])].reduce((i,s)=>{var a;return i||((a=s?.innerText)==null?void 0:a.trim())||""},n)},_l=`:host(:not([hidden])) { box-sizing: border-box; border: 1px solid; display: inline-block; height: .5em; width: 10em; overflow: hidden }
|
|
328
328
|
:host::before { content: ''; display: block; height: 100%; background: currentColor; width: var(--percentage, 0%); transition: width .2s }
|
|
329
329
|
:host(:not([value])) { background: linear-gradient(90deg,currentColor 25%, transparent 50%, currentColor 75%) 50%/400% }
|
|
330
330
|
@media (prefers-reduced-motion: no-preference) { :host { animation: indeterminate 2s linear infinite } }
|
|
331
|
-
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,an=!1,Zi=class extends
|
|
331
|
+
@keyframes indeterminate { from { background-position-x: 100% } to { background-position-x: 0 } }`,an=!1,Zi=class extends pl{static get observedAttributes(){return["aria-label","aria-labelledby","value","max"]}constructor(){super(),this.shadowRoot||this.attachShadow({mode:"open"}).append(Ji("slot",null,{hidden:""}),Ji("style",_l))}connectedCallback(){this.attributeChangedCallback()}attributeChangedCallback(){if(an)return;an=!0;const t=fl||Xi,e=Math.max(0,Math.round(this.position*100));this.style.setProperty("--percentage",`${e}%`);let n=vl(this);if(t&&(n=`${n.replace(/\d+%$/,"")} ${e}%`),Xi)for(const o of this.labels)I(o,"aria-label",n);I(this,"aria-busy",`${this.position===-1}`),I(this,"aria-label",n.trim()),I(this,"aria-labelledby",null),I(this,"aria-valuemax","100"),I(this,"aria-valuemin","0"),I(this,"aria-valuenow",`${e}`),I(this,"role",t?"img":"progressbar"),an=!1}get labels(){const t=this.closest("label:not([for])"),e=gl(this);return t&&(t.htmlFor=e),ml(this).querySelectorAll(`label[for="${e}"]`)}get position(){return this.value===null?-1:Math.min(this.value/this.max,1)}get value(){return es(this,"value")}set value(t){ns(this,"value",t)}get max(){return es(this,"max")||1}set max(t){ns(this,"max",t)}};Zi.formAssociated=!0;var ts=t=>!Number.isNaN(Number.parseFloat(`${t}`))&&Number.isFinite(Number(t)),es=(t,e)=>{const n=I(t,e);return ts(n)?Math.max(0,Number.parseFloat(n)):null},ns=(t,e,n)=>{if(n===null||ts(n))I(t,e,`${n}`);else throw new Error(`Failed to set non-numeric '${I}': '${n}'`)};return bl.define("u-progress",Zi),M.UHTMLComboboxElement=ye,M.UHTMLTabElement=kn,M.UHTMLTabListElement=$n,M.UHTMLTabPanelElement=An,M.UHTMLTabsElement=Cn,M.analytics=ei,M.pagination=Qa,M.styles=Bs,M.toast=k,M.toggleAppExpanded=si,M.version=Hs,Object.defineProperty(M,Symbol.toStringTag,{value:"Module"}),M}({});
|
|
@@ -1,20 +1,24 @@
|
|
|
1
|
-
import { default as L } from 'leaflet';
|
|
2
1
|
import { MTDSElement } from '../utils';
|
|
2
|
+
import * as L from "leaflet";
|
|
3
3
|
import type * as ReactTypes from "react";
|
|
4
|
+
type JSXMapAttrs = ReactTypes.HTMLAttributes<MTDSMapElement>;
|
|
5
|
+
type JSXMapProps = ReactTypes.DetailedHTMLProps<JSXMapAttrs, MTDSMapElement>;
|
|
4
6
|
declare global {
|
|
5
7
|
namespace React.JSX {
|
|
6
8
|
interface IntrinsicElements {
|
|
7
|
-
"mtds-map":
|
|
9
|
+
"mtds-map": JSXMapProps & {
|
|
8
10
|
class?: string;
|
|
9
11
|
};
|
|
10
12
|
}
|
|
11
13
|
}
|
|
12
14
|
}
|
|
15
|
+
export { L };
|
|
13
16
|
export declare class MTDSMapElement extends MTDSElement {
|
|
14
17
|
map?: L.Map;
|
|
18
|
+
markers: L.MarkerClusterGroup;
|
|
15
19
|
constructor();
|
|
16
20
|
connectedCallback(): void;
|
|
17
|
-
|
|
21
|
+
addMarker(point: L.LatLngExpression): L.Marker<any>;
|
|
18
22
|
disconnectedCallback(): void;
|
|
19
23
|
}
|
|
20
24
|
export type Adresse = {
|