@mattilsynet/design 1.0.6 → 1.0.7
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/avatar/avatar.stories.d.ts +1 -0
- package/mtds/badge/badge.d.ts +2 -2
- package/mtds/badge/badge.js.map +1 -1
- package/mtds/breadcrumbs/breadcrumbs-observer.d.ts +1 -0
- package/mtds/breadcrumbs/breadcrumbs-observer.js +12 -0
- package/mtds/breadcrumbs/breadcrumbs-observer.js.map +1 -0
- package/mtds/breadcrumbs/breadcrumbs.js +13 -21
- package/mtds/breadcrumbs/breadcrumbs.js.map +1 -1
- package/mtds/button/button.d.ts +1 -1
- package/mtds/button/button.js.map +1 -1
- package/mtds/card/card.d.ts +9 -1
- package/mtds/card/card.js +22 -8
- package/mtds/card/card.js.map +1 -1
- package/mtds/card/card.stories.d.ts +1 -1
- package/mtds/dialog/dialog-observer.d.ts +1 -2
- package/mtds/dialog/dialog-observer.js +19 -17
- package/mtds/dialog/dialog-observer.js.map +1 -1
- package/mtds/dialog/dialog.d.ts +4 -2
- package/mtds/dialog/dialog.js +11 -15
- package/mtds/dialog/dialog.js.map +1 -1
- package/mtds/dialog/dialog.stories.d.ts +1 -0
- package/mtds/divider/divider.d.ts +2 -2
- package/mtds/divider/divider.js.map +1 -1
- package/mtds/errorsummary/errorsummary-observer.d.ts +1 -0
- package/mtds/errorsummary/errorsummary-observer.js +10 -0
- package/mtds/errorsummary/errorsummary-observer.js.map +1 -0
- package/mtds/errorsummary/errorsummary.js +11 -17
- package/mtds/errorsummary/errorsummary.js.map +1 -1
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js +47 -48
- package/mtds/external/@u-elements/u-datalist/dist/u-datalist.js.map +1 -1
- package/mtds/external/@u-elements/u-details/dist/u-details.js +9 -8
- package/mtds/external/@u-elements/u-details/dist/u-details.js.map +1 -1
- package/mtds/external/@u-elements/u-tags/dist/u-tags.js +160 -162
- package/mtds/external/@u-elements/u-tags/dist/u-tags.js.map +1 -1
- package/mtds/field/field-helper.d.ts +1 -0
- package/mtds/field/field-observer.d.ts +1 -2
- package/mtds/field/field-observer.js +32 -41
- package/mtds/field/field-observer.js.map +1 -1
- package/mtds/field/field.d.ts +7 -0
- package/mtds/field/field.js +49 -34
- package/mtds/field/field.js.map +1 -1
- package/mtds/field/field.stories.d.ts +4 -2
- package/mtds/fieldset/fieldset-observer.d.ts +1 -2
- package/mtds/fieldset/fieldset-observer.js +12 -16
- package/mtds/fieldset/fieldset-observer.js.map +1 -1
- package/mtds/index.d.ts +3 -3
- package/mtds/index.iife.js +6 -5
- package/mtds/index.iife.js.map +1 -1
- package/mtds/index.js +13 -24
- package/mtds/index.js.map +1 -1
- package/mtds/layout/app-observer.d.ts +1 -2
- package/mtds/layout/app-observer.js +11 -16
- package/mtds/layout/app-observer.js.map +1 -1
- package/mtds/layout/layout.d.ts +17 -6
- package/mtds/layout/layout.js +12 -9
- package/mtds/layout/layout.js.map +1 -1
- package/mtds/logo/logo-observer.d.ts +1 -2
- package/mtds/logo/logo-observer.js +14 -18
- package/mtds/logo/logo-observer.js.map +1 -1
- package/mtds/popover/popover-observer.d.ts +1 -2
- package/mtds/popover/popover-observer.js +12 -21
- package/mtds/popover/popover-observer.js.map +1 -1
- package/mtds/react-types.d.ts +11 -0
- package/mtds/react.js +42 -40
- package/mtds/styles.css +1 -1
- package/mtds/styles.json +34 -34
- package/mtds/styles.module.css.js +58 -56
- package/mtds/styles.module.css.js.map +1 -1
- package/mtds/table/table-observer.d.ts +1 -2
- package/mtds/table/table-observer.js +10 -14
- package/mtds/table/table-observer.js.map +1 -1
- package/mtds/tag/tag.d.ts +2 -6
- package/mtds/tag/tag.js.map +1 -1
- package/mtds/tooltip/tooltip-observer.js +27 -20
- package/mtds/tooltip/tooltip-observer.js.map +1 -1
- package/mtds/utils.d.ts +2 -19
- package/mtds/utils.js +32 -26
- package/mtds/utils.js.map +1 -1
- package/package.json +18 -18
package/mtds/index.iife.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
var mtds=function(C){"use strict";const qt="_alert_jsd43_1 _ds-alert_z5gp5_1",Xt="_avatar_jsd43_1 _ds-avatar_z5gp5_1",Gt="_badge_jsd43_1",Qt="_breadcrumbs_jsd43_1 _ds-breadcrumbs_z5gp5_1",Jt="_button_jsd43_1 _ds-button_z5gp5_1",Zt="_card_jsd43_1",te="_info_jsd43_1",ee="_group_jsd43_1",ne="_chip_jsd43_1 _ds-chip_z5gp5_1",oe="_details_jsd43_1 _ds-details_z5gp5_1",ie="_dialog_jsd43_1 _ds-dialog_z5gp5_1",se="_divider_jsd43_1",re="_errorsummary_jsd43_1 _ds-error-summary_z5gp5_1",ae="__errorsummary_jsd43_1",le="_field_jsd43_1 _ds-field_z5gp5_1",de="_affixes_jsd43_1 _ds-field-affixes_z5gp5_1",ue="_fieldset_jsd43_1 _ds-fieldset_z5gp5_1",ce="_heading_jsd43_1 _ds-heading_z5gp5_1",fe="_helptext_jsd43_1 _ds-focus_z5gp5_1",pe="_input_jsd43_1 _ds-input_z5gp5_1",he="_app_jsd43_1",_e="_grid_jsd43_1",me="_flex_jsd43_1",be="_prose_jsd43_1",ve="_link_jsd43_1",ge="_logo_jsd43_1",ye="__onInjectLogo_jsd43_1",Ee="_pagination_jsd43_1 _ds-pagination_z5gp5_1",$e="_popover_jsd43_1",we="_skeleton_jsd43_1 _ds-skeleton_z5gp5_1",Te="__skeleton_jsd43_1",Ie="_spinner_jsd43_1",xe="_table_jsd43_1 _ds-table_z5gp5_1",Se="__onInjectTable_jsd43_1",Le="__scrollShadow_jsd43_1",Ce="_tabs_jsd43_1 _ds-tabs_z5gp5_1",Ae="_tag_jsd43_1 _ds-tag_z5gp5_1",ke="__tooltip_jsd43_1",Oe="_validation_jsd43_1 _ds-validation-message_z5gp5_1",Me="_body_jsd43_125",E={alert:qt,avatar:Xt,badge:Gt,breadcrumbs:Qt,button:Jt,card:Zt,info:te,group:ee,chip:ne,details:oe,dialog:ie,divider:se,errorsummary:re,_errorsummary:ae,field:le,affixes:de,fieldset:ue,heading:ce,helptext:fe,input:pe,app:he,grid:_e,flex:me,prose:be,link:ve,logo:ge,_onInjectLogo:ye,pagination:Ee,popover:$e,skeleton:we,_skeleton:Te,spinner:Ie,table:xe,_onInjectTable:Se,_scrollShadow:Le,tabs:Ce,tag:Ae,_tooltip:ke,validation:Oe,body:Me},io=Object.freeze(Object.defineProperty({__proto__:null,_errorsummary:ae,_onInjectLogo:ye,_onInjectTable:Se,_scrollShadow:Le,_skeleton:Te,_tooltip:ke,affixes:de,alert:qt,app:he,avatar:Xt,badge:Gt,body:Me,breadcrumbs:Qt,button:Jt,card:Zt,chip:ne,default:E,details:oe,dialog:ie,divider:se,errorsummary:re,field:le,fieldset:ue,flex:me,grid:_e,group:ee,heading:ce,helptext:fe,info:te,input:pe,link:ve,logo:ge,pagination:Ee,popover:$e,prose:be,skeleton:we,spinner:Ie,table:xe,tabs:Ce,tag:Ae,validation:Oe},Symbol.toStringTag,{value:"Module"})),so=(t,e,n)=>{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),r=Array.from({length:s+1-i},(a,d)=>d+i);return n>4&&i>1&&r.splice(0,2,1,0),n>3&&s<e&&r.splice(-2,2,0,e),r},ro=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:so(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))}),q=typeof window<"u"&&typeof document<"u",m={capture:!0,passive:!0};function u(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 ao=0;const lo=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function R(t){return t.id||(t.id=`${lo}${++ao}`),t.id}const Pe=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},v=(t,...e)=>Pe("add",t,e),T=(t,...e)=>Pe("remove",t,e),X=new Map,$=q?document.createElement("div"):null;$&&u($,"style","position:absolute;padding:1px;top:0;left:0px"),q&&v(window,"load,resize,scroll",()=>{for(const[t,e]of X)e()},m);const A={top:0,right:1,bottom:2,left:3};function j(t,e,n){var oo;if(e===!1||!e.isConnected||!t.isConnected)return X.delete(t);if($!=null&&$.isConnected||document.body.append($||""),!X.has(t)){const zi=A[n]??A.bottom;return(oo=X.set(t,()=>j(t,e,zi)).get(t))==null?void 0:oo()}const{offsetWidth:o,offsetHeight:i}=t,{offsetWidth:s,offsetHeight:r}=e,{width:a,height:d,left:l,top:f}=e.getBoundingClientRect(),h=Math.round(l-(s-a)/2),b=Math.round(f-(r-d)/2),x=h-o>0,Wt=s+s+o<window.innerWidth,D=b-i>0,_t=b+r+i<window.innerHeight,_=n===A.bottom&&Wt||!x,K=n===A.bottom&&_t||!D,W=Math.min(Math.max(10,h-(o-s)/2),window.innerWidth-o-10),mt=Math.min(Math.max(10,b-(i-r)/2),window.innerHeight-i-10),bt=n===A.top||n===A.bottom;t.style.left=`${Math.round(bt?W:_?h+s:h-o)}px`,t.style.top=`${Math.round(bt?K?b+r:b-i:mt)}px`,$==null||$.style.setProperty("translate",`${Math.round(window.scrollX+h+s+o+30)} ${Math.round(window.scrollY+b+r+i+30)}px`)}function uo(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const H=new WeakMap,co=t=>{var n;const e=H.get(t);if(!e||!t.isConnected)(n=e==null?void 0:e.observer)==null||n.disconnect(),H.delete(t);else for(const[,o]of e.collections)o()},G=(t,e,n)=>{const o=t.getElementsByClassName(e);let i=H.get(t);i||(i={collections:new Map,observer:uo(()=>co(t))},i.observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),H.set(t,i)),n?i.collections.set(e,()=>n(o)):i.collections.delete(e),i.collections.size||(i.observer.disconnect(),H.delete(t))},vt=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),fo=E._tooltip.split(" "),De="aria-describedby",Re="Escape",Q="aria-labelledby",po="--mtds-tooltip-position",ho=300,J="mtds-tooltip";let w=null,je=Number.NEGATIVE_INFINITY,He=0,y=null;function gt({target:t,type:e,key:n}){if(e==="keydown"&&n!==Re)return;const o=je+ho-Date.now();clearTimeout(He),He=setTimeout(_o,Math.max(o,0),n===Re?null:t)}function _o(t){var a,d;if(je=Date.now(),!y||t===y)return;let e=((a=t==null?void 0:t.closest)==null?void 0:a.call(t,"[data-tooltip]"))||null;if(e===w)return;const n=e&&u(e,"data-tooltip")||"",o=e&&u(e,"data-tooltip-position")||((d=window.getComputedStyle(e||document.body).getPropertyValue(po))==null?void 0:d.trim())||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(y.textContent=n);const s=w&&u(w,Q)===J,r=!!(e!=null&&e.innerText.trim())||(e==null?void 0:e.hasAttribute(Q))||(e==null?void 0:e.hasAttribute("aria-label"));w==null||w.removeAttribute(s?Q:De),j(y,!1),w=e,w&&u(w,r?De:Q,J),y.togglePopover(!!e),j(y,e||!1,o)}q&&!document.getElementById(J)&&(y=document.body.appendChild(document.createElement("div")),y.classList.add(...fo),y.id=J,u(y,"popover","manual"),v(document,"blur,focus,mouseout,mouseover",gt,m),v(window,"keydown",gt,m),v(window,"blur",gt,m));var mo=Object.defineProperty,Ne=Object.getOwnPropertySymbols,bo=Object.prototype.hasOwnProperty,vo=Object.prototype.propertyIsEnumerable,Be=(t,e,n)=>e in t?mo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,go=(t,e)=>{for(var n in e||(e={}))bo.call(e,n)&&Be(t,n,e[n]);if(Ne)for(var n of Ne(e))vo.call(e,n)&&Be(t,n,e[n]);return t},S=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",yo=S&&/android/i.test(navigator.userAgent),yt=S&&/iPad|iPhone|iPod/.test(navigator.userAgent),Fe=S&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Ue;S&&/^Mac/i.test(((Ue=navigator.userAgentData)==null?void 0:Ue.platform)||navigator.platform);var Eo=`${yo?"data":"aria"}-labelledby`,Ve=`${Fe?"aria":"data"}-multiselectable`,ze=":host(:not([hidden])) { display: block }",$o="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Ye=typeof HTMLElement>"u"?class{}:HTMLElement;function p(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Ke=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Et=(t,...e)=>Ke("add",t,e),$t=(t,...e)=>Ke("remove",t,e),We=(t,e)=>t.attachShadow({mode:"open"}).append(Tt("slot"),Tt("style",e)),Z=new WeakMap,qe=(t,e)=>{if(e===void 0)return Z.get(t);try{Z.get(t).disconnect(),Z.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),Z.set(t,n)}},Xe=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},wo=0,wt=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++wo).toString(32)}`),t.id):"",Tt=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},Ge={define:(t,e)=>!S||window.customElements.get(t)||window.customElements.define(t,e)},To=t=>{if(!S)return null;const e=Tt("div");return e.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",p(e,"aria-live",t),document.body.appendChild(e)};function Qe(t,e,n){if(!e)return Object.keys(t).map(i=>`data-sr-${i}`);const o=(e==null?void 0:e.startsWith("data-sr-"))&&e.slice(8);return o&&n&&t[o]&&(t[o]=n),[]}var It="disabled",N="selected",Io=class extends Ye{static get observedAttributes(){return[It,N]}constructor(){super(),We(this,`${ze}:host(:focus){${$o}}:host{ cursor: pointer }`)}connectedCallback(){yt||(this.tabIndex=-1),p(this,"role")||p(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){p(this,"aria-disabled",`${this.disabled}`),p(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[N]}set defaultSelected(e){this[N]=e}get disabled(){return p(this,It)!==null}set disabled(e){p(this,It,e?"":null)}get form(){return this.closest("form")}get index(){var e;const n=(e=this.closest("u-datalist"))==null?void 0:e.getElementsByTagName("u-option");return Array.from(n||[this]).indexOf(this)}get label(){return p(this,"label")||this.text}set label(e){p(this,"label",e)}get selected(){return p(this,N)!==null}set selected(e){p(this,N,e?"":null)}get text(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}set text(e){this.textContent=e}get value(){return p(this,"value")||this.text}set value(e){p(this,"value",e)}};Ge.define("u-option",Io);var xt=!1,Je,xo=0,B=To("assertive"),So=Fe&&!yt,Ze="click,focusout,input,keydown,mousedown,mouseup",tn={singular:"%d hit",plural:"%d hits"},en=class extends Ye{constructor(){super(),this._blurTimer=0,this._input=null,this._root=null,this._value="",this._texts=go({},tn),We(this,`${ze}::slotted(u-option[disabled]) { display: none !important }`)}static get observedAttributes(){return["id",...Qe(tn)]}connectedCallback(){this.hidden=!0,this._root=Xe(this),B&&!B.isConnected&&document.body.append(B),p(this,"role","listbox"),Et(this._root,"focusin",this),Et(this._root,"focus",this,!0),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){$t(this._root||this,"focus",this,!0),$t(this._root||this,"focusin",this),St(this),this._root=null}attributeChangedCallback(e,n,o){var i;Qe(this._texts,e,o);const s=(i=this._root)==null?void 0:i.querySelectorAll(`input[list="${this.id}"]`);for(const r of s||[])on(this,r)}handleEvent(e){const{type:n}=e;e.defaultPrevented||(n==="click"&&Ao(this,e),(n==="focus"||n==="focusin")&&Lo(this,e),n==="focusout"&&Co(this),n==="keydown"&&ko(this,e),(n==="mutation"||n==="input")&&rn(this,e),n==="mouseup"&&(xt=!1),n==="mousedown"&&(xt=this.contains(e.target)))}get options(){return this.getElementsByTagName("u-option")}},Lo=(t,{target:e})=>{var n;const o=t._input===e;if(o||t.contains(e))return clearTimeout(t._blurTimer);!o&&e instanceof HTMLInputElement&&p(e,"list")===t.id&&(t._input&&St(t),t._input=e,p(t,Eo,wt((n=t._input.labels)==null?void 0:n[0])),Et(t._root||t,Ze,t),qe(t,{attributeFilter:["value"],attributes:!0,childList:!0,subtree:!0}),k(t,!0))},Co=t=>{xt||(t._blurTimer=setTimeout(()=>St(t)))},Ao=(t,{target:e})=>{var n,o,i,s,r;const a=p(t,Ve)!=="true",d=[...t.options].find(l=>l.contains(e));if(t._input===e)k(t,!0);else if(d&&tt(d)){for(const l of t.options)l===d?l.selected=!0:a&&(l.selected=!1);(o=(n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"))==null?void 0:n.set)==null||o.call(t._input,d.value),a&&((i=t._input)==null||i.focus(),k(t,!1)),(s=t._input)==null||s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),(r=t._input)==null||r.dispatchEvent(new Event("change",{bubbles:!0}))}},ko=(t,e)=>{var n,o;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;e.key!=="Escape"&&k(t,!0);const{key:i}=e,s=(n=t._root)==null?void 0:n.activeElement,r=nn(t),a=r.indexOf(s);let d=-1;if(i==="ArrowDown"&&(d=(a+1)%r.length),i==="ArrowUp"&&(d=(~a?a:r.length)-1),~a&&((i==="Home"||i==="PageUp")&&(d=0),(i==="End"||i==="PageDown")&&(d=r.length-1),i==="Enter"))return r[a].click(),e.preventDefault();if(r[d])for(const l of r)l.tabIndex=-1;r[d]&&e.preventDefault(),(o=r[d]||t._input)==null||o.focus(),i==="Escape"&&k(t,!1)},k=(t,e)=>{t.hidden=!e,t.popover&&t.togglePopover(e),t._input&&on(t,t._input,e),e&&rn(t)},St=t=>{$t(t._root||t,Ze,t),qe(t,!1),k(t,!1),t._input=null},nn=t=>[...t.options].filter(e=>!e.disabled&&e.offsetWidth&&e.offsetHeight),tt=t=>t instanceof HTMLOptionElement||t.getAttribute("role")==="option",on=(t,e,n=!1)=>{p(e,"popovertarget",wt(t)),p(e,"aria-autocomplete","list"),p(e,"aria-controls",wt(t)),p(e,"aria-expanded",`${So||n}`),p(e,"autocomplete","off"),p(e,"role","combobox")},sn=t=>(t==null?void 0:t.toLowerCase().trim())||"",rn=(t,e)=>{var n;const o=sn((n=t._input)==null?void 0:n.value);if(!((e==null?void 0:e.type)==="mutation"||t._value!==o))return;const s=t.hidden,r=p(t,Ve)!=="true",a=e instanceof InputEvent&&!Po(e);t.hidden=!0,t._value=o;for(const l of t.options){const f=[l.value,l.label,l.text].map(sn);l.hidden=!f.some(h=>h.includes(o)),r&&a&&tt(l)&&(l.selected=f.includes(o))}t.hidden=s;const d=nn(t);clearTimeout(Je),Je=setTimeout(()=>{const{length:l}=d.filter(tt),f=++xo%2?" ":"",h=`${`${t._texts[l===1?"singular":"plural"]}`.replace("%d",`${l}`)}`;B&&(B.textContent=`${!l&&t.innerText.trim()||h}${f}`)},1e3),yt&&d.map((l,f,h)=>{l.title=`${f+1}/${h}`})};S&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Xe(this).getElementById(p(this,"list")||"")}}),Ge.define("u-datalist",en);var Oo=" ".repeat(100),Mo="insertReplacementText";function Po(t){var e;const n=t instanceof Event&&t.type==="input"&&t.target instanceof HTMLInputElement&&(!t.inputType||t.inputType===Mo);if(n){const o=t.target.value,i=Array.from(((e=t.target.list)==null?void 0:e.options)||[]).some(s=>s.value===o&&!tt(s));t.target.value=o.split(Oo)[i?1:0]}return n}var an=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ln;an&&/^Mac/i.test(((ln=navigator.userAgentData)==null?void 0:ln.platform)||navigator.platform);var Do=":host(:not([hidden])) { display: block }",dn=typeof HTMLElement>"u"?class{}:HTMLElement;function L(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var un=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},cn=(t,...e)=>un("add",t,e),fn=(t,...e)=>un("remove",t,e),Ro=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},jo=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},Lt=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))L(o,i,s);return o},pn={define:(t,e)=>!an||window.customElements.get(t)||window.customElements.define(t,e)},Ho=class extends dn{constructor(){super(),this._content=null,this.attachShadow({mode:"open"}).append(Lt("slot",null,{name:"summary"}),Lt("slot",null,{part:"details-content"}),Lt("style",`${Do}
|
|
2
|
-
::slotted(u-summary) { cursor: pointer; display:
|
|
3
|
-
|
|
4
|
-
:host > [part="details-content"]:not([hidden=""]) { display: block }`))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],cn(this._content,"beforematch",this),cn(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&fn(this._content,"beforematch",this),fn(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"&&L(s,"aria-expanded",`${i}`);if(this._content&&(L(this._content,"aria-hidden",`${!i}`),this._content.hidden=i?!1:o),i&&this.name){const s=jo(this).querySelectorAll(`${this.nodeName}[name="${this.name}"]`);for(const r of s)r!==this&&(r.open=!1)}t==="open"&&e===null!=(n===null)&&this.dispatchEvent(new Event("toggle"))}handleEvent(t){const e=this.querySelector(":scope > u-summary"),n=e==null?void 0:e.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&Ro(t),n&&t.type==="click"&&(this.open=!this.open))}get open(){return this.hasAttribute("open")}set open(t){L(this,"open",t?"":null)}get name(){return L(this,"name")||""}set name(t){L(this,"name",t)}},No=class extends dn{connectedCallback(){L(this,"role","button"),this.slot="summary",this.tabIndex=0}};pn.define("u-details",Ho),pn.define("u-summary",No);var Ct=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Bo=Ct&&/android/i.test(navigator.userAgent),hn;Ct&&/^Mac/i.test(((hn=navigator.userAgentData)==null?void 0:hn.platform)||navigator.platform);var Fo=`${Bo?"data":"aria"}-labelledby`,At=":host(:not([hidden])) { display: block }",et=typeof HTMLElement>"u"?class{}:HTMLElement;function g(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var _n=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},Uo=(t,...e)=>_n("add",t,e),Vo=(t,...e)=>_n("remove",t,e),nt=(t,e)=>t.attachShadow({mode:"open"}).append(gn("slot"),gn("style",e)),ot=new WeakMap,mn=(t,e)=>{if(e===void 0)return ot.get(t);try{ot.get(t).disconnect(),ot.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),ot.set(t,n)}},zo=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},bn=t=>{var e;const n=((e=t.getRootNode)==null?void 0:e.call(t))||t.ownerDocument;return n instanceof Document||n instanceof ShadowRoot?n:document},Yo=0,vn=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++Yo).toString(32)}`),t.id):"",gn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},it={define:(t,e)=>!Ct||window.customElements.get(t)||window.customElements.define(t,e)},st="aria-controls",O="aria-selected",Ko=class extends et{constructor(){super(),nt(this,At)}get tabList(){return rt("u-tablist",this)[0]||null}get selectedIndex(){return at(this.tabs)}set selectedIndex(t){Mt(this.tabs[t])}get tabs(){return rt("u-tab",this)}get panels(){return rt("u-tabpanel",this)}},Wo=class extends et{constructor(){super(),nt(this,At)}connectedCallback(){g(this,"role","tablist"),Uo(this,"click,keydown",this),mn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){Vo(this,"click,keydown",this),mn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s==null?void 0:s.setAttribute(O,"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"&&Mt(n[o]),t.type==="keydown"&&!zo(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=at(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 at(this.tabs)}set selectedIndex(t){Mt(this.tabs[t])}},kt=!1,qo=class extends et{static get observedAttributes(){return["id",O,st]}constructor(){super(),nt(this,":host(:not([hidden])) { cursor: pointer; display: inline-block }")}connectedCallback(){g(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!kt&&this.selected&&this.tabList){kt=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=rt("u-tabpanel",this.tabsElement||this),n=Ot(this,e[t.indexOf(this)]);n&&g(n,Fo,vn(this)),t.forEach((o,i)=>{const s=Ot(o,e[i]);o.tabIndex=o===this?0:-1,g(o,O,`${o===this}`),s&&(s.hidden=s!==n),s&&g(o,st,s.id)}),kt=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return(t==null?void 0:t.nodeName)==="U-TABLIST"?t:null}get selected(){return g(this,O)==="true"}set selected(t){g(this,O,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ot(this)}},Xo=class extends et{static get observedAttributes(){return["hidden"]}constructor(){super(),nt(this,At)}connectedCallback(){g(this,"role","tabpanel"),this.hidden=at(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){this.hidden||Go(this.firstChild)?g(this,"tabindex",null):this.tabIndex=0}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${st}="${this.id}"]`;return bn(this).querySelectorAll(t)}},rt=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ot=(t,e)=>{const n=g(t,st)||vn(e),o=bn(t).getElementById(n);return(o==null?void 0:o.nodeName)==="U-TABPANEL"?o:null},at=t=>[...t].findIndex(e=>g(e,O)==="true"),Mt=t=>t&&g(t,"aria-selected","true"),Go=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');it.define("u-tabs",Ko),it.define("u-tablist",Wo),it.define("u-tab",qo),it.define("u-tabpanel",Xo);var Qo=Object.defineProperty,yn=Object.getOwnPropertySymbols,Jo=Object.prototype.hasOwnProperty,Zo=Object.prototype.propertyIsEnumerable,En=(t,e,n)=>e in t?Qo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,$n=(t,e)=>{for(var n in e||(e={}))Jo.call(e,n)&&En(t,n,e[n]);if(yn)for(var n of yn(e))Zo.call(e,n)&&En(t,n,e[n]);return t},I=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",wn=I&&/android/i.test(navigator.userAgent),ti=I&&/firefox/i.test(navigator.userAgent),lt=I&&/iPad|iPhone|iPod/.test(navigator.userAgent),Tn=I&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),In,ei=I&&/^Mac/i.test(((In=navigator.userAgentData)==null?void 0:In.platform)||navigator.platform),ni=`${wn?"data":"aria"}-labelledby`,Pt=`${Tn?"aria":"data"}-multiselectable`,xn=":host(:not([hidden])) { display: block }",Sn="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Dt=typeof HTMLElement>"u"?class{}:HTMLElement;function c(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Ln=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},F=(t,...e)=>Ln("add",t,e),U=(t,...e)=>Ln("remove",t,e),Cn=(t,e)=>t.attachShadow({mode:"open"}).append(M("slot"),M("style",e)),dt=new WeakMap,ut=(t,e)=>{if(e===void 0)return dt.get(t);try{dt.get(t).disconnect(),dt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),dt.set(t,n)}},oi=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},ct=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},ii=0,Rt=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++ii).toString(32)}`),t.id):"",M=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))c(o,i,s);return o},jt={define:(t,e)=>!I||window.customElements.get(t)||window.customElements.define(t,e)},An=t=>{if(!I)return null;const e=M("div");return e.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",c(e,"aria-live",t),document.body.appendChild(e)};function ft(t,e,n){if(!e)return Object.keys(t).map(i=>`data-sr-${i}`);const o=(e==null?void 0:e.startsWith("data-sr-"))&&e.slice(8);return o&&n&&t[o]&&(t[o]=n),[]}var Ht="disabled",V="selected",si=class extends Dt{static get observedAttributes(){return[Ht,V]}constructor(){super(),Cn(this,`${xn}:host(:focus){${Sn}}:host{ cursor: pointer }`)}connectedCallback(){lt||(this.tabIndex=-1),c(this,"role")||c(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){c(this,"aria-disabled",`${this.disabled}`),c(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[V]}set defaultSelected(t){this[V]=t}get disabled(){return c(this,Ht)!==null}set disabled(t){c(this,Ht,t?"":null)}get form(){return this.closest("form")}get index(){var t;const e=(t=this.closest("u-datalist"))==null?void 0:t.getElementsByTagName("u-option");return Array.from(e||[this]).indexOf(this)}get label(){return c(this,"label")||this.text}set label(t){c(this,"label",t)}get selected(){return c(this,V)!==null}set selected(t){c(this,V,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){return c(this,"value")||this.text}set value(t){c(this,"value",t)}};jt.define("u-option",si);var Nt=!1,kn,ri=0,z=An("assertive"),ai=Tn&&!lt,On="click,focusout,input,keydown,mousedown,mouseup",Mn={singular:"%d hit",plural:"%d hits"},li=class extends Dt{constructor(){super(),this._blurTimer=0,this._input=null,this._root=null,this._value="",this._texts=$n({},Mn),Cn(this,`${xn}::slotted(u-option[disabled]) { display: none !important }`)}static get observedAttributes(){return["id",...ft(Mn)]}connectedCallback(){this.hidden=!0,this._root=ct(this),z&&!z.isConnected&&document.body.append(z),c(this,"role","listbox"),F(this._root,"focusin",this),F(this._root,"focus",this,!0),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){U(this._root||this,"focus",this,!0),U(this._root||this,"focusin",this),Bt(this),this._root=null}attributeChangedCallback(t,e,n){var o;ft(this._texts,t,n);const i=(o=this._root)==null?void 0:o.querySelectorAll(`input[list="${this.id}"]`);for(const s of i||[])Dn(this,s)}handleEvent(t){const{type:e}=t;t.defaultPrevented||(e==="click"&&ci(this,t),(e==="focus"||e==="focusin")&&di(this,t),e==="focusout"&&ui(this),e==="keydown"&&fi(this,t),(e==="mutation"||e==="input")&&jn(this,t),e==="mouseup"&&(Nt=!1),e==="mousedown"&&(Nt=this.contains(t.target)))}get options(){return this.getElementsByTagName("u-option")}},di=(t,{target:e})=>{var n;const o=t._input===e;if(o||t.contains(e))return clearTimeout(t._blurTimer);!o&&e instanceof HTMLInputElement&&c(e,"list")===t.id&&(t._input&&Bt(t),t._input=e,c(t,ni,Rt((n=t._input.labels)==null?void 0:n[0])),F(t._root||t,On,t),ut(t,{attributeFilter:["value"],attributes:!0,childList:!0,subtree:!0}),P(t,!0))},ui=t=>{Nt||(t._blurTimer=setTimeout(()=>Bt(t)))},ci=(t,{target:e})=>{var n,o,i,s,r;const a=c(t,Pt)!=="true",d=[...t.options].find(l=>l.contains(e));if(t._input===e)P(t,!0);else if(d&&pt(d)){for(const l of t.options)l===d?l.selected=!0:a&&(l.selected=!1);(o=(n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"))==null?void 0:n.set)==null||o.call(t._input,d.value),a&&((i=t._input)==null||i.focus(),P(t,!1)),(s=t._input)==null||s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),(r=t._input)==null||r.dispatchEvent(new Event("change",{bubbles:!0}))}},fi=(t,e)=>{var n,o;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;e.key!=="Escape"&&P(t,!0);const{key:i}=e,s=(n=t._root)==null?void 0:n.activeElement,r=Pn(t),a=r.indexOf(s);let d=-1;if(i==="ArrowDown"&&(d=(a+1)%r.length),i==="ArrowUp"&&(d=(~a?a:r.length)-1),~a&&((i==="Home"||i==="PageUp")&&(d=0),(i==="End"||i==="PageDown")&&(d=r.length-1),i==="Enter"))return r[a].click(),e.preventDefault();if(r[d])for(const l of r)l.tabIndex=-1;r[d]&&e.preventDefault(),(o=r[d]||t._input)==null||o.focus(),i==="Escape"&&P(t,!1)},P=(t,e)=>{t.hidden=!e,t.popover&&t.togglePopover(e),t._input&&Dn(t,t._input,e),e&&jn(t)},Bt=t=>{U(t._root||t,On,t),ut(t,!1),P(t,!1),t._input=null},Pn=t=>[...t.options].filter(e=>!e.disabled&&e.offsetWidth&&e.offsetHeight),pt=t=>t instanceof HTMLOptionElement||t.getAttribute("role")==="option",Dn=(t,e,n=!1)=>{c(e,"popovertarget",Rt(t)),c(e,"aria-autocomplete","list"),c(e,"aria-controls",Rt(t)),c(e,"aria-expanded",`${ai||n}`),c(e,"autocomplete","off"),c(e,"role","combobox")},Rn=t=>(t==null?void 0:t.toLowerCase().trim())||"",jn=(t,e)=>{var n;const o=Rn((n=t._input)==null?void 0:n.value);if(!((e==null?void 0:e.type)==="mutation"||t._value!==o))return;const s=t.hidden,r=c(t,Pt)!=="true",a=e instanceof InputEvent&&!Nn(e);t.hidden=!0,t._value=o;for(const l of t.options){const f=[l.value,l.label,l.text].map(Rn);l.hidden=!f.some(h=>h.includes(o)),r&&a&&pt(l)&&(l.selected=f.includes(o))}t.hidden=s;const d=Pn(t);clearTimeout(kn),kn=setTimeout(()=>{const{length:l}=d.filter(pt),f=++ri%2?" ":"",h=`${`${t._texts[l===1?"singular":"plural"]}`.replace("%d",`${l}`)}`;z&&(z.textContent=`${!l&&t.innerText.trim()||h}${f}`)},1e3),lt&&d.map((l,f,h)=>{l.title=`${f+1}/${h}`})};I&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return ct(this).getElementById(c(this,"list")||"")}}),jt.define("u-datalist",li);var Hn=" ".repeat(100),pi="insertReplacementText",Ft=({value:t})=>t.split(Hn)[0];function Nn(t){var e;const n=t instanceof Event&&t.type==="input"&&t.target instanceof HTMLInputElement&&(!t.inputType||t.inputType===pi);if(n){const o=t.target.value,i=Array.from(((e=t.target.list)==null?void 0:e.options)||[]).some(s=>s.value===o&&!pt(s));t.target.value=o.split(Hn)[i?1:0]}return n}var hi=wn||lt,_i=ti||ei,Y=An("polite"),Bn="input,focusin,focusout,keydown",Fn={added:"Added",remove:"Press to remove",removed:"Removed",empty:"No selected",found:"Navigate left to find %d selected",of:"of"},mi=class extends Dt{constructor(){super(),this._blurAnnounceReset=!1,this._blurTimer=0,this._focusIndex=null,this._root=null,this._texts=$n({},Fn),this.attachShadow({mode:"open"}).append(M("slot"),M("style",`:host(:not([hidden])){ display: inline-block }
|
|
1
|
+
var mtds=function(W){"use strict";const Qn=(t,e,n)=>{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,d)=>d+i);return n>4&&i>1&&a.splice(0,2,1,0),n>3&&s<e&&a.splice(-2,2,0,e),a},Jn=({current:t=1,total:e=10,show:n=7})=>({prev:t>1?t-1:0,next:t<e?t+1:0,pages:Qn(t,e,n).map((o,i)=>({current:o===t&&"page",key:`key-${o}-${i}`,page:o}))}),Yt="_alert_zm1dk_1 _ds-alert_oaddr_1",Kt="_avatar_zm1dk_1 _ds-avatar_oaddr_1",Wt="_badge_zm1dk_1",qt="_breadcrumbs_zm1dk_1 _ds-breadcrumbs_oaddr_1",Xt="__onInjectCrumb_zm1dk_1",Gt="_button_zm1dk_1 _ds-button_oaddr_1",Qt="_card_zm1dk_1",Jt="_info_zm1dk_1",Zt="_group_zm1dk_1",te="_chip_zm1dk_1 _ds-chip_oaddr_1",ee="_details_zm1dk_1 _ds-details_oaddr_1",ne="_dialog_zm1dk_1 _ds-dialog_oaddr_1",oe="_divider_zm1dk_1",ie="_errorsummary_zm1dk_1 _ds-error-summary_oaddr_1",se="__errorsummary_zm1dk_1",ae="_field_zm1dk_1 _ds-field_oaddr_1",re="_affixes_zm1dk_1 _ds-field-affixes_oaddr_1",le="_fieldset_zm1dk_1 _ds-fieldset_oaddr_1",de="_heading_zm1dk_1 _ds-heading_oaddr_1",ce="_helptext_zm1dk_1 _ds-focus_oaddr_1",ue="_input_zm1dk_1 _ds-input_oaddr_1",fe="_app_zm1dk_1",pe="_grid_zm1dk_1",he="_flex_zm1dk_1",me="_prose_zm1dk_1",_e="_link_zm1dk_1",ve="_logo_zm1dk_1",be="__onInjectLogo_zm1dk_1",ge="_pagination_zm1dk_1 _ds-pagination_oaddr_1",ye="_popover_zm1dk_1",Ee="_skeleton_zm1dk_1 _ds-skeleton_oaddr_1",$e="__skeleton_zm1dk_1",we="_spinner_zm1dk_1",Te="_table_zm1dk_1 _ds-table_oaddr_1",Ie="__onInjectTable_zm1dk_1",ke="__scrollShadow_zm1dk_1",Se="_tabs_zm1dk_1 _ds-tabs_oaddr_1",Ce="_tag_zm1dk_1 _ds-tag_oaddr_1",xe="__tooltip_zm1dk_1",Le="_validation_zm1dk_1 _ds-validation-message_oaddr_1",Ae="_body_zm1dk_127",b={alert:Yt,avatar:Kt,badge:Wt,breadcrumbs:qt,_onInjectCrumb:Xt,button:Gt,card:Qt,info:Jt,group:Zt,chip:te,details:ee,dialog:ne,divider:oe,errorsummary:ie,_errorsummary:se,field:ae,affixes:re,fieldset:le,heading:de,helptext:ce,input:ue,app:fe,grid:pe,flex:he,prose:me,link:_e,logo:ve,_onInjectLogo:be,pagination:ge,popover:ye,skeleton:Ee,_skeleton:$e,spinner:we,table:Te,_onInjectTable:Ie,_scrollShadow:ke,tabs:Se,tag:Ce,_tooltip:xe,validation:Le,body:Ae},Zn=Object.freeze(Object.defineProperty({__proto__:null,_errorsummary:se,_onInjectCrumb:Xt,_onInjectLogo:be,_onInjectTable:Ie,_scrollShadow:ke,_skeleton:$e,_tooltip:xe,affixes:re,alert:Yt,app:fe,avatar:Kt,badge:Wt,body:Ae,breadcrumbs:qt,button:Gt,card:Qt,chip:te,default:b,details:ee,dialog:ne,divider:oe,errorsummary:ie,field:ae,fieldset:le,flex:he,grid:pe,group:Zt,heading:de,helptext:ce,info:Jt,input:ue,link:_e,logo:ve,pagination:ge,popover:ye,prose:me,skeleton:Ee,spinner:we,table:Te,tabs:Se,tag:Ce,validation:Le},Symbol.toStringTag,{value:"Module"})),g=typeof window<"u"&&typeof document<"u",_={capture:!0,passive:!0};function to(t,e){let n;return(...o)=>{clearTimeout(n),n=setTimeout(()=>t(...o),e)}}function c(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 eo=0;const no=`${Date.now().toString(36)}${Math.random().toString(36).slice(2,5)}`;function N(t){return t.id||(t.id=`${no}${++eo}`),t.id}const oo=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,e[`${t}EventListener`](...n)},v=(t,...e)=>oo("add",t,e),q=new Map,$=g?document.createElement("div"):null;$&&c($,"style","position:absolute;padding:1px;top:0;left:0px"),g&&v(window,"load,resize,scroll",()=>{for(const[t,e]of q)e()},_);const C={top:0,right:1,bottom:2,left:3};function B(t,e,n){var Gn;if(e===!1||!e.isConnected||!t.isConnected)return q.delete(t);if($!=null&&$.isConnected||document.body.append($||""),!q.has(t)){const Hi=C[n]??C.bottom;return(Gn=q.set(t,()=>B(t,e,Hi)).get(t))==null?void 0:Gn()}const{offsetWidth:o,offsetHeight:i}=t,{offsetWidth:s,offsetHeight:a}=e,{width:r,height:d,left:l,top:f}=e.getBoundingClientRect(),h=Math.round(l-(s-r)/2),y=Math.round(f-(a-d)/2),T=h-o>0,jt=s+s+o<window.innerWidth,H=y-i>0,ft=y+a+i<window.innerHeight,m=n===C.bottom&&jt||!T,Y=n===C.bottom&&ft||!H,K=Math.min(Math.max(10,h-(o-s)/2),window.innerWidth-o-10),Vt=Math.min(Math.max(10,y-(i-a)/2),window.innerHeight-i-10),Xn=n===C.top||n===C.bottom;t.style.left=`${Math.round(Xn?K:m?h+s:h-o)}px`,t.style.top=`${Math.round(Xn?Y?y+a:y-i:Vt)}px`,$==null||$.style.setProperty("translate",`${Math.round(window.scrollX+h+s+o+30)} ${Math.round(window.scrollY+y+a+i+30)}px`)}function Oe(t){let e=0;const n=()=>setTimeout(o,200),o=()=>{t([],i),e=0},i=new MutationObserver(()=>{e||(e=requestAnimationFrame(n))});return i}const z=new WeakMap,io=t=>{var n;const e=z.get(t);if(!e||!t.isConnected)(n=e==null?void 0:e.observer)==null||n.disconnect(),z.delete(t);else for(const[,o]of e.collections)o()},Me=(t,e,n)=>{const o=t.getElementsByClassName(e);let i=z.get(t);i||(i={collections:new Map,observer:Oe(()=>io(t))},i.observer.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class"]}),z.set(t,i)),n?i.collections.set(e,()=>n(o)):i.collections.delete(e),i.collections.size||(i.observer.disconnect(),z.delete(t))},pt=t=>t instanceof HTMLElement&&"validity"in t&&!(t instanceof HTMLButtonElement),so=b.breadcrumbs.split(" ")[0],De=g&&document.getElementsByClassName(so);function ao(t){if(!(!De||t.animationName!==b._onInjectCrumb))for(const e of De)e.querySelectorAll("li a").forEach((n,o,{length:i})=>{c(n,"aria-current",o===i-1?"page":null)})}g&&v(document,"animationend",to(ao,100),_);function ro(t){var n;if(t.animationName!==b._errorsummary)return;const e=(n=t.target)==null?void 0:n.firstElementChild;e instanceof HTMLHeadingElement&&(c(e,"tabindex","-1"),e.focus())}g&&v(document,"animationend",ro,_);const lo=b.dialog.split(" ")[0],co=g?document.getElementsByClassName(lo):[],Pe=t=>{t.stopImmediatePropagation(),t.stopPropagation()},uo=()=>{for(const t of co)t.matches('[open]:not([data-modal="false"]):not(:modal)')&&(t.addEventListener("close",Pe,_),t.close(),t.showModal(),window.requestAnimationFrame(()=>t.removeEventListener("close",Pe,_)))};g&&(v(document,"click",({clientX:t,clientY:e,target:n})=>{var o;if(n instanceof HTMLDialogElement&&c(n,"data-closedby")==="any"){const{top:i,right:s,bottom:a,left:r}=n.getBoundingClientRect();i<=e&&e<=a&&r<=t&&t<=s||n.close()}else n instanceof Element&&n.closest('button[data-command="close"]')&&((o=n==null?void 0:n.closest("dialog"))==null||o.close())},_),Oe(uo).observe(document.documentElement,{attributeFilter:["open"],attributes:!0,childList:!0,subtree:!0}));var fo=Object.defineProperty,Re=Object.getOwnPropertySymbols,po=Object.prototype.hasOwnProperty,ho=Object.prototype.propertyIsEnumerable,He=(t,e,n)=>e in t?fo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,mo=(t,e)=>{for(var n in e||(e={}))po.call(e,n)&&He(t,n,e[n]);if(Re)for(var n of Re(e))ho.call(e,n)&&He(t,n,e[n]);return t},x=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",_o=x&&/android/i.test(navigator.userAgent),ht=x&&/iPad|iPhone|iPod/.test(navigator.userAgent),Ne=x&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),Be;x&&/^Mac/i.test(((Be=navigator.userAgentData)==null?void 0:Be.platform)||navigator.platform);var vo=`${_o?"data":"aria"}-labelledby`,ze=`${Ne?"aria":"data"}-multiselectable`,Fe=":host(:not([hidden])) { display: block }",bo="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Ue=typeof HTMLElement>"u"?class{}:HTMLElement;function p(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var je=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},mt=(t,...e)=>je("add",t,e),_t=(t,...e)=>je("remove",t,e),Ve=(t,e)=>t.attachShadow({mode:"open"}).append(bt("slot"),bt("style",e)),X=new WeakMap,Ye=(t,e)=>{if(e===void 0)return X.get(t);try{X.get(t).disconnect(),X.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),X.set(t,n)}},Ke=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},go=0,vt=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++go).toString(32)}`),t.id):"",bt=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},We={define:(t,e)=>!x||window.customElements.get(t)||window.customElements.define(t,e)},yo=t=>{const e=bt("div");return e.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",p(e,"aria-live",t),e};function qe(t,e,n){if(!e)return Object.keys(t).map(i=>`data-sr-${i}`);const o=(e==null?void 0:e.startsWith("data-sr-"))&&e.slice(8);return o&&n&&t[o]&&(t[o]=n),[]}var gt="disabled",F="selected",Eo=class extends Ue{static get observedAttributes(){return[gt,F]}constructor(){super(),Ve(this,`${Fe}:host(:focus){${bo}}:host{ cursor: pointer }`)}connectedCallback(){ht||(this.tabIndex=-1),p(this,"role")||p(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){p(this,"aria-disabled",`${this.disabled}`),p(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[F]}set defaultSelected(e){this[F]=e}get disabled(){return p(this,gt)!==null}set disabled(e){p(this,gt,e?"":null)}get form(){return this.closest("form")}get index(){var e;const n=(e=this.closest("u-datalist"))==null?void 0:e.getElementsByTagName("u-option");return Array.from(n||[this]).indexOf(this)}get label(){return p(this,"label")||this.text}set label(e){p(this,"label",e)}get selected(){return p(this,F)!==null}set selected(e){p(this,F,e?"":null)}get text(){var e;return((e=this.textContent)==null?void 0:e.trim())||""}set text(e){this.textContent=e}get value(){return p(this,"value")||this.text}set value(e){p(this,"value",e)}};We.define("u-option",Eo);var yt=!1,Xe,$o=0,L,wo=Ne&&!ht,Ge="click,focusout,input,keydown,mousedown,mouseup",Qe={singular:"%d hit",plural:"%d hits"},Je=class extends Ue{constructor(){super(),this._blurTimer=0,this._input=null,this._root=null,this._value="",this._texts=mo({},Qe),Ve(this,`${Fe}::slotted(u-option[disabled]) { display: none !important }`)}static get observedAttributes(){return["id",...qe(Qe)]}connectedCallback(){this.hidden=!0,this._root=Ke(this),L||(L=yo("assertive")),L.isConnected||document.body.appendChild(L),p(this,"role","listbox"),mt(this._root,"focusin",this),mt(this._root,"focus",this,!0),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){_t(this._root||this,"focus",this,!0),_t(this._root||this,"focusin",this),Et(this),this._root=null}attributeChangedCallback(e,n,o){var i;qe(this._texts,e,o);const s=(i=this._root)==null?void 0:i.querySelectorAll(`input[list="${this.id}"]`);for(const a of s||[])tn(this,a)}handleEvent(e){const{type:n}=e;e.defaultPrevented||(n==="click"&&ko(this,e),(n==="focus"||n==="focusin")&&To(this,e),n==="focusout"&&Io(this),n==="keydown"&&So(this,e),(n==="mutation"||n==="input")&&nn(this,e),n==="mouseup"&&(yt=!1),n==="mousedown"&&(yt=this.contains(e.target)))}get options(){return this.getElementsByTagName("u-option")}},To=(t,{target:e})=>{var n;const o=t._input===e;if(o||t.contains(e))return clearTimeout(t._blurTimer);!o&&e instanceof HTMLInputElement&&p(e,"list")===t.id&&(t._input&&Et(t),t._input=e,p(t,vo,vt((n=t._input.labels)==null?void 0:n[0])),mt(t._root||t,Ge,t),Ye(t,{attributeFilter:["value"],attributes:!0,childList:!0,subtree:!0}),A(t,!0))},Io=t=>{yt||(t._blurTimer=setTimeout(()=>Et(t)))},ko=(t,{target:e})=>{var n,o,i,s,a;const r=p(t,ze)!=="true",d=[...t.options].find(l=>l.contains(e));if(t._input===e)A(t,!0);else if(d&&G(d)){for(const l of t.options)l===d?l.selected=!0:r&&(l.selected=!1);(o=(n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"))==null?void 0:n.set)==null||o.call(t._input,d.value),r&&((i=t._input)==null||i.focus(),A(t,!1)),(s=t._input)==null||s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),(a=t._input)==null||a.dispatchEvent(new Event("change",{bubbles:!0}))}},So=(t,e)=>{var n,o;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;e.key!=="Escape"&&A(t,!0);const{key:i}=e,s=(n=t._root)==null?void 0:n.activeElement,a=Ze(t),r=a.indexOf(s);let d=-1;if(i==="ArrowDown"&&(d=(r+1)%a.length),i==="ArrowUp"&&(d=(~r?r:a.length)-1),~r&&((i==="Home"||i==="PageUp")&&(d=0),(i==="End"||i==="PageDown")&&(d=a.length-1),i==="Enter"))return a[r].click(),e.preventDefault();if(a[d])for(const l of a)l.tabIndex=-1;a[d]&&e.preventDefault(),(o=a[d]||t._input)==null||o.focus(),i==="Escape"&&A(t,!1)},A=(t,e)=>{t.hidden=!e,t.popover&&t.togglePopover(e),t._input&&tn(t,t._input,e),e&&nn(t)},Et=t=>{_t(t._root||t,Ge,t),Ye(t,!1),A(t,!1),t._input=null},Ze=t=>[...t.options].filter(e=>!e.disabled&&e.offsetWidth&&e.offsetHeight),G=t=>t instanceof HTMLOptionElement||t.getAttribute("role")==="option",tn=(t,e,n=!1)=>{p(e,"popovertarget",vt(t)),p(e,"aria-autocomplete","list"),p(e,"aria-controls",vt(t)),p(e,"aria-expanded",`${wo||n}`),p(e,"autocomplete","off"),p(e,"role","combobox")},en=t=>(t==null?void 0:t.toLowerCase().trim())||"",nn=(t,e)=>{var n;const o=en((n=t._input)==null?void 0:n.value);if(!((e==null?void 0:e.type)==="mutation"||t._value!==o))return;const s=t.hidden,a=p(t,ze)!=="true",r=e instanceof InputEvent&&!Lo(e);t.hidden=!0,t._value=o;for(const l of t.options){const f=[l.value,l.label,l.text].map(en);l.hidden=!f.some(h=>h.includes(o)),a&&r&&G(l)&&(l.selected=f.includes(o))}t.hidden=s;const d=Ze(t);clearTimeout(Xe),Xe=setTimeout(()=>{const{length:l}=d.filter(G),f=++$o%2?" ":"",h=`${`${t._texts[l===1?"singular":"plural"]}`.replace("%d",`${l}`)}`;L&&(L.textContent=`${!l&&t.innerText.trim()||h}${f}`)},1e3),ht&&d.map((l,f,h)=>{l.title=`${f+1}/${h}`})};x&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return Ke(this).getElementById(p(this,"list")||"")}}),We.define("u-datalist",Je);var Co=" ".repeat(100),xo="insertReplacementText";function Lo(t){var e;const n=t instanceof Event&&t.type==="input"&&t.target instanceof HTMLInputElement&&(!t.inputType||t.inputType===xo);if(n){const o=t.target.value,i=Array.from(((e=t.target.list)==null?void 0:e.options)||[]).some(s=>s.value===o&&!G(s));t.target.value=o.split(Co)[i?1:0]}return n}const on=b.field.split(" ")[0],Ao="--mtds-text-count-over",Oo="--mtds-text-count-under",sn=b.validation.split(" "),Mo=sn[0];function Do(t){for(const e of t){const n=[],o=[];let i=null,s=null,a=!0;for(const r of e.getElementsByTagName("*"))r instanceof HTMLLabelElement?n.push(r):r instanceof Je?s=r:pt(r)?i=r:r.classList.contains(Mo)?(a=c(r,"data-color")==="success",o.unshift(N(r))):r instanceof HTMLParagraphElement&&o.push(N(r));if(i){for(const r of n)r.htmlFor=N(i);Po(i,s),rn(i),an(i),c(i,"aria-describedby",o.join(" ")),c(i,"aria-invalid",`${!a}`)}}}function an(t){t instanceof HTMLTextAreaElement&&(t.style.setProperty("--mtds-textarea-height","auto"),t.style.setProperty("--mtds-textarea-height",`${t.scrollHeight}px`))}function Po(t,e){if(c(t,"list",e?N(e):null),!e)return;t.hasAttribute("placeholder")||c(t,"placeholder","");const n=window.getComputedStyle(e),o=t.closest("u-tags"),i=s=>n.getPropertyValue(`--mtds-text-${s}`);c(e,"data-sr-plural",i("datalist-plural")),c(e,"data-sr-singular",i("datalist-singular")),o&&(c(o,"data-sr-added",i("tags-added")),c(o,"data-sr-empty",i("tags-empty")),c(o,"data-sr-found",i("tags-found")),c(o,"data-sr-of",i("tags-of")),c(o,"data-sr-remove",i("tags-remove")),c(o,"data-sr-removed",i("tags-removed")))}function rn(t){var o,i;const e=t==null?void 0:t.nextElementSibling,n=e&&c(e,"data-count");if(e&&n){const s=Number(n)-t.value.length,a=s<0,r=c(e,"aria-live")==="polite",d=window.getComputedStyle(e||t),l=((o=d.getPropertyValue(Ao))==null?void 0:o.slice(1,-1))||"",f=((i=d.getPropertyValue(Oo))==null?void 0:i.slice(1,-1))||"";if(r!==a){c(e,"aria-live",a?"polite":"off");for(const h of sn)e.classList.toggle(h,a)}e.textContent=(a?l:f).replace("%d",`${Math.abs(s)}`)}}function Ro({target:t}){pt(t)&&(rn(t),an(t))}function Ho(t){var e,n;(n=(e=t.target)==null?void 0:e.closest)!=null&&n.call(e,`.${on}`)&&t.preventDefault()}g&&(Me(document.documentElement,on,Do),v(document,"input",Ro,_),v(document,"invalid",Ho,!0));const No=b.fieldset.split(" ")[0],Bo=b.validation.split(" ")[0];function zo(t){for(const e of t){const n=[];let o=null;for(const i of e.getElementsByTagName("*"))i.classList.contains(Bo)?o=N(i):pt(i)&&n.push(i);for(const i of n)c(i,"aria-describedby",o),c(i,"aria-invalid",`${!!o}`)}}g&&Me(document.documentElement,No,zo);const $t="--mtds-app-expanded",ln="mtds-app-menu",Fo=({target:t})=>{t!=null&&t.closest('[data-command="toggle-app-expanded"]')&&(document.startViewTransition?document.startViewTransition(()=>Tt(!wt())):Tt(!wt()))},wt=()=>{var t;return!((t=document.documentElement.style.getPropertyValue($t))!=null&&t.includes("--false"))},Tt=t=>{document.documentElement.style.setProperty($t,`var(${$t}--${t})`),window.localStorage.setItem(ln,`${t}`)};if(g){const t=window.localStorage.getItem(ln);Tt(t?t==="true":wt()),v(document,"click",Fo,_)}let It;function Uo(t){if(t.animationName!==b._onInjectLogo)return;const e=t.target,n=e==null?void 0:e.firstElementChild;if(!n)return;if(!It){const r=document.head.getElementsByTagName("link[rel~='icon']"),d=document.createElement("link");for(const l of r)l.remove();It=document.head.appendChild(Object.assign(d,{rel:"icon"}))}const o=e==null?void 0:e.hasAttribute("data-env"),i=window.getComputedStyle(n),s=i.getPropertyValue("color"),a=i.getPropertyValue("--mtds-logo-color");It.href=`data:image/svg+xml,${encodeURIComponent(`<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'><rect fill='${o?"none":a}' width='51' height='51' x='2' y='2' stroke='${s}' stroke-dasharray='0.09 6.38' stroke-linecap='round' stroke-opacity='${o?.6:0}' stroke-width='2.3' rx='25.5'/><g transform="translate(7.5 7.5)">${n.outerHTML.replace(/(fill|width|height|xmlns)=\S+/gi,"").replace("<svg",`<svg width="40" height="40" fill="${s}"`)}</g></svg>`)}`}g&&v(document,"animationend",Uo,_);const dn=b.popover.split(" ")[0];function jo({target:t,newState:e}){var n;if(t instanceof HTMLElement&&t.classList.contains(dn)){const o=(n=t.getRootNode())==null?void 0:n.querySelector(`[popovertarget="${t.id}"]`);e==="closed"?B(t,!1):o&&B(t,o,c(t,"data-position")||"bottom")}}function Vo({target:t}){var n,o;const e=(n=t==null?void 0:t.closest)==null?void 0:n.call(t,"a");if(e){const i=e.getRootNode(),s=((o=i.getElementById)==null?void 0:o.call(i,c(e,"popovertarget")||""))||e.closest(`.${dn}`),a=c(e,"popovertargetaction")||"toggle";s==null||s.togglePopover(a==="show"||(a==="hide"?!1:void 0))}}g&&(v(document,"beforetoggle",jo,_),v(document,"click",Vo));function Yo(t){if(t.animationName!==b._onInjectTable)return;const e=t.target,n=[];c(e,"role","table"),e.caption&&c(e.caption,"role","caption");for(const o of[e.tHead,e.tFoot,...e.tBodies])if(o){c(o,"role","rowgroup");const i=o.nodeName==="TBODY";for(const s of o.rows){c(s,"role","row");for(const a of s.cells)i?c(a,"data-th",n[a.cellIndex]||":empty"):n.push(a.innerText.trim()),a.nodeName==="TD"?c(a,"role","cell"):(c(a,"role",i?"rowheader":"columnheader"),c(a,"scope",i?"row":"col"))}}}g&&v(document,"animationend",Yo,_);const cn="aria-describedby",un="Escape",Q="aria-labelledby",Ko="--mtds-tooltip-position",Wo=300,kt="mtds-tooltip";let w=null,fn=Number.NEGATIVE_INFINITY,pn=0,I=null;const qo=()=>Object.assign(document.createElement("div"),{className:b._tooltip,id:kt,popover:"manual"});function St({target:t,type:e,key:n}){if(e==="keydown"&&n!==un)return;const o=fn+Wo-Date.now();clearTimeout(pn),pn=setTimeout(Xo,Math.max(o,0),n===un?null:t)}function Xo(t){var r,d;if(fn=Date.now(),I||(I=document.body.appendChild(qo())),t===I)return;let e=((r=t==null?void 0:t.closest)==null?void 0:r.call(t,"[data-tooltip]"))||null;if(e===w)return;const n=e&&c(e,"data-tooltip")||"",o=e&&c(e,"data-tooltip-position")||((d=window.getComputedStyle(e||document.body).getPropertyValue(Ko))==null?void 0:d.trim())||"top";(!n||n==="false"||n==="true"||o==="none")&&(e=null),e&&(I.textContent=n);const s=w&&c(w,Q)===kt,a=!!(e!=null&&e.innerText.trim())||(e==null?void 0:e.hasAttribute(Q))||(e==null?void 0:e.hasAttribute("aria-label"));w==null||w.removeAttribute(s?Q:cn),B(I,!1),w=e,w&&c(w,a?cn:Q,kt),I.togglePopover(!!e),B(I,e||!1,o)}v(document,"blur,focus,mouseout,mouseover",St,_),v(window,"keydown",St,_),v(window,"blur",St,_);var hn=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",mn;hn&&/^Mac/i.test(((mn=navigator.userAgentData)==null?void 0:mn.platform)||navigator.platform);var Go=":host(:not([hidden])) { display: block }",_n=typeof HTMLElement>"u"?class{}:HTMLElement;function k(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var vn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},bn=(t,...e)=>vn("add",t,e),gn=(t,...e)=>vn("remove",t,e),Qo=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},Jo=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},Ct=(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},yn={define:(t,e)=>!hn||window.customElements.get(t)||window.customElements.define(t,e)},Zo=class extends _n{constructor(){super(),this._content=null,this.attachShadow({mode:"open"}).append(Ct("slot",null,{name:"summary"}),Ct("slot",null,{part:"details-content"}),Ct("style",`${Go}
|
|
2
|
+
::slotted(u-summary) { cursor: pointer; display: block }
|
|
3
|
+
::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 }
|
|
4
|
+
::slotted(u-summary[aria-expanded="true"])::before { rotate: 90deg }
|
|
5
|
+
:host > [part="details-content"]:not([hidden=""]) { display: block }`))}static get observedAttributes(){return["open"]}connectedCallback(){var t;this._content=(t=this.shadowRoot)==null?void 0:t.children[1],bn(this._content,"beforematch",this),bn(this,"click,keydown",this),this.attributeChangedCallback()}disconnectedCallback(){this._content&&gn(this._content,"beforematch",this),gn(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}`),this._content.hidden=i?!1:o),i&&this.name){const s=Jo(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==null?void 0:e.contains(t.target);t.defaultPrevented||(t.type==="beforematch"&&(this.open=!0),n&&t.type==="keydown"&&Qo(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)}},ti=class extends _n{connectedCallback(){k(this,"role","button"),this.slot="summary",this.tabIndex=0}};yn.define("u-details",Zo),yn.define("u-summary",ti);var xt=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",ei=xt&&/android/i.test(navigator.userAgent),En;xt&&/^Mac/i.test(((En=navigator.userAgentData)==null?void 0:En.platform)||navigator.platform);var ni=`${ei?"data":"aria"}-labelledby`,Lt=":host(:not([hidden])) { display: block }",J=typeof HTMLElement>"u"?class{}:HTMLElement;function E(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var $n=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},oi=(t,...e)=>$n("add",t,e),ii=(t,...e)=>$n("remove",t,e),Z=(t,e)=>t.attachShadow({mode:"open"}).append(kn("slot"),kn("style",e)),tt=new WeakMap,wn=(t,e)=>{if(e===void 0)return tt.get(t);try{tt.get(t).disconnect(),tt.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),tt.set(t,n)}},si=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},Tn=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},ai=0,In=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++ai).toString(32)}`),t.id):"",kn=(t,e,n)=>{const o=document.createElement(t);return e&&(o.textContent=e),o},et={define:(t,e)=>!xt||window.customElements.get(t)||window.customElements.define(t,e)},nt="aria-controls",O="aria-selected",ri=class extends J{constructor(){super(),Z(this,Lt)}get tabList(){return ot("u-tablist",this)[0]||null}get selectedIndex(){return it(this.tabs)}set selectedIndex(t){Mt(this.tabs[t])}get tabs(){return ot("u-tab",this)}get panels(){return ot("u-tabpanel",this)}},li=class extends J{constructor(){super(),Z(this,Lt)}connectedCallback(){E(this,"role","tablist"),oi(this,"click,keydown",this),wn(this,{childList:!0}),this.tabs.length&&this.handleEvent()}disconnectedCallback(){ii(this,"click,keydown",this),wn(this,!1)}handleEvent(t){if(!t||t.type==="mutation"){const s=this.tabs[Math.max(this.selectedIndex,0)];return s==null?void 0:s.setAttribute(O,"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"&&Mt(n[o]),t.type==="keydown"&&!si(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=it(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 it(this.tabs)}set selectedIndex(t){Mt(this.tabs[t])}},At=!1,di=class extends J{static get observedAttributes(){return["id",O,nt]}constructor(){super(),Z(this,":host(:not([hidden])) { cursor: pointer; display: inline-block }")}connectedCallback(){E(this,"role","tab"),this.tabIndex=this.selected?0:-1}attributeChangedCallback(){if(!At&&this.selected&&this.tabList){At=!0;const t=[...this.tabList.querySelectorAll("u-tab")],e=ot("u-tabpanel",this.tabsElement||this),n=Ot(this,e[t.indexOf(this)]);n&&E(n,ni,In(this)),t.forEach((o,i)=>{const s=Ot(o,e[i]);o.tabIndex=o===this?0:-1,E(o,O,`${o===this}`),s&&(s.hidden=s!==n),s&&E(o,nt,s.id)}),At=!1}}get tabsElement(){return this.closest("u-tabs")}get tabList(){const t=this.parentElement;return(t==null?void 0:t.nodeName)==="U-TABLIST"?t:null}get selected(){return E(this,O)==="true"}set selected(t){E(this,O,`${!!t}`)}get index(){const t=this.tabList;return t?[...t.querySelectorAll("u-tab")].indexOf(this):0}get panel(){return Ot(this)}},ci=class extends J{static get observedAttributes(){return["hidden"]}constructor(){super(),Z(this,Lt)}connectedCallback(){E(this,"role","tabpanel"),this.hidden=it(this.tabs)===-1,this.attributeChangedCallback()}attributeChangedCallback(){this.hidden||ui(this.firstChild)?E(this,"tabindex",null):this.tabIndex=0}get tabsElement(){return this.closest("u-tabs")}get tabs(){const t=`u-tab[${nt}="${this.id}"]`;return Tn(this).querySelectorAll(t)}},ot=(t,e)=>e.querySelectorAll(`${t}:not(:scope u-tabpanel ${t})`),Ot=(t,e)=>{const n=E(t,nt)||In(e),o=Tn(t).getElementById(n);return(o==null?void 0:o.nodeName)==="U-TABPANEL"?o:null},it=t=>[...t].findIndex(e=>E(e,O)==="true"),Mt=t=>t&&E(t,"aria-selected","true"),ui=t=>t instanceof Element&&!t.matches(':disabled,[tabindex^="-"]')&&t.matches('[contenteditable],[controls],[href],[tabindex],input:not([type="hidden"]),select,textarea,button,summary,iframe');et.define("u-tabs",ri),et.define("u-tablist",li),et.define("u-tab",di),et.define("u-tabpanel",ci);var fi=Object.defineProperty,Sn=Object.getOwnPropertySymbols,pi=Object.prototype.hasOwnProperty,hi=Object.prototype.propertyIsEnumerable,Cn=(t,e,n)=>e in t?fi(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,xn=(t,e)=>{for(var n in e||(e={}))pi.call(e,n)&&Cn(t,n,e[n]);if(Sn)for(var n of Sn(e))hi.call(e,n)&&Cn(t,n,e[n]);return t},S=typeof window<"u"&&typeof window.document<"u"&&typeof window.navigator<"u",Ln=S&&/android/i.test(navigator.userAgent),mi=S&&/firefox/i.test(navigator.userAgent),st=S&&/iPad|iPhone|iPod/.test(navigator.userAgent),An=S&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent),On,_i=S&&/^Mac/i.test(((On=navigator.userAgentData)==null?void 0:On.platform)||navigator.platform),vi=`${Ln?"data":"aria"}-labelledby`,Dt=`${An?"aria":"data"}-multiselectable`,Mn=":host(:not([hidden])) { display: block }",Dn="outline: 1px dotted; outline: 5px auto Highlight; outline: 5px auto -webkit-focus-ring-color",Pt=typeof HTMLElement>"u"?class{}:HTMLElement;function u(t,e,n){var o;return n===void 0?(o=t.getAttribute(e))!=null?o:null:(n===null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n),null)}var Pn=(t,e,n)=>{for(const o of n[0].split(","))n[0]=o,Element.prototype[`${t}EventListener`].apply(e,n)},U=(t,...e)=>Pn("add",t,e),j=(t,...e)=>Pn("remove",t,e),Rn=(t,e)=>t.attachShadow({mode:"open"}).append(M("slot"),M("style",e)),at=new WeakMap,rt=(t,e)=>{if(e===void 0)return at.get(t);try{at.get(t).disconnect(),at.delete(t)}catch{}if(e){const n=new MutationObserver(o=>t.handleEvent({type:"mutation",detail:o}));n.observe(t,e),at.set(t,n)}},bi=t=>{const e="key"in t&&(t.key===" "||t.key==="Enter");return e&&t.preventDefault(),e&&t.target instanceof HTMLElement&&t.target.click(),e},lt=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},gi=0,Rt=t=>t?(t.id||(t.id=`:${t.nodeName.toLowerCase()}${(++gi).toString(32)}`),t.id):"",M=(t,e,n)=>{const o=document.createElement(t);if(e&&(o.textContent=e),n)for(const[i,s]of Object.entries(n))u(o,i,s);return o},Ht={define:(t,e)=>!S||window.customElements.get(t)||window.customElements.define(t,e)},Hn=t=>{const e=M("div");return e.style.cssText="position:fixed;overflow:hidden;width:1px;white-space:nowrap",u(e,"aria-live",t),e};function dt(t,e,n){if(!e)return Object.keys(t).map(i=>`data-sr-${i}`);const o=(e==null?void 0:e.startsWith("data-sr-"))&&e.slice(8);return o&&n&&t[o]&&(t[o]=n),[]}var Nt="disabled",V="selected",yi=class extends Pt{static get observedAttributes(){return[Nt,V]}constructor(){super(),Rn(this,`${Mn}:host(:focus){${Dn}}:host{ cursor: pointer }`)}connectedCallback(){st||(this.tabIndex=-1),u(this,"role")||u(this,"role","option"),this.attributeChangedCallback()}attributeChangedCallback(){u(this,"aria-disabled",`${this.disabled}`),u(this,"aria-selected",`${this.selected}`)}get defaultSelected(){return this[V]}set defaultSelected(t){this[V]=t}get disabled(){return u(this,Nt)!==null}set disabled(t){u(this,Nt,t?"":null)}get form(){return this.closest("form")}get index(){var t;const e=(t=this.closest("u-datalist"))==null?void 0:t.getElementsByTagName("u-option");return Array.from(e||[this]).indexOf(this)}get label(){return u(this,"label")||this.text}set label(t){u(this,"label",t)}get selected(){return u(this,V)!==null}set selected(t){u(this,V,t?"":null)}get text(){var t;return((t=this.textContent)==null?void 0:t.trim())||""}set text(t){this.textContent=t}get value(){return u(this,"value")||this.text}set value(t){u(this,"value",t)}};Ht.define("u-option",yi);var Bt=!1,Nn,Ei=0,D,$i=An&&!st,Bn="click,focusout,input,keydown,mousedown,mouseup",zn={singular:"%d hit",plural:"%d hits"},wi=class extends Pt{constructor(){super(),this._blurTimer=0,this._input=null,this._root=null,this._value="",this._texts=xn({},zn),Rn(this,`${Mn}::slotted(u-option[disabled]) { display: none !important }`)}static get observedAttributes(){return["id",...dt(zn)]}connectedCallback(){this.hidden=!0,this._root=lt(this),D||(D=Hn("assertive")),D.isConnected||document.body.appendChild(D),u(this,"role","listbox"),U(this._root,"focusin",this),U(this._root,"focus",this,!0),setTimeout(()=>this.attributeChangedCallback())}disconnectedCallback(){j(this._root||this,"focus",this,!0),j(this._root||this,"focusin",this),zt(this),this._root=null}attributeChangedCallback(t,e,n){var o;dt(this._texts,t,n);const i=(o=this._root)==null?void 0:o.querySelectorAll(`input[list="${this.id}"]`);for(const s of i||[])Un(this,s)}handleEvent(t){const{type:e}=t;t.defaultPrevented||(e==="click"&&ki(this,t),(e==="focus"||e==="focusin")&&Ti(this,t),e==="focusout"&&Ii(this),e==="keydown"&&Si(this,t),(e==="mutation"||e==="input")&&Vn(this,t),e==="mouseup"&&(Bt=!1),e==="mousedown"&&(Bt=this.contains(t.target)))}get options(){return this.getElementsByTagName("u-option")}},Ti=(t,{target:e})=>{var n;const o=t._input===e;if(o||t.contains(e))return clearTimeout(t._blurTimer);!o&&e instanceof HTMLInputElement&&u(e,"list")===t.id&&(t._input&&zt(t),t._input=e,u(t,vi,Rt((n=t._input.labels)==null?void 0:n[0])),U(t._root||t,Bn,t),rt(t,{attributeFilter:["value"],attributes:!0,childList:!0,subtree:!0}),P(t,!0))},Ii=t=>{Bt||(t._blurTimer=setTimeout(()=>zt(t)))},ki=(t,{target:e})=>{var n,o,i,s,a;const r=u(t,Dt)!=="true",d=[...t.options].find(l=>l.contains(e));if(t._input===e)P(t,!0);else if(d&&ct(d)){for(const l of t.options)l===d?l.selected=!0:r&&(l.selected=!1);(o=(n=Object.getOwnPropertyDescriptor(HTMLInputElement.prototype,"value"))==null?void 0:n.set)==null||o.call(t._input,d.value),r&&((i=t._input)==null||i.focus(),P(t,!1)),(s=t._input)==null||s.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),(a=t._input)==null||a.dispatchEvent(new Event("change",{bubbles:!0}))}},Si=(t,e)=>{var n,o;if(e.altKey||e.ctrlKey||e.metaKey||e.shiftKey)return;e.key!=="Escape"&&P(t,!0);const{key:i}=e,s=(n=t._root)==null?void 0:n.activeElement,a=Fn(t),r=a.indexOf(s);let d=-1;if(i==="ArrowDown"&&(d=(r+1)%a.length),i==="ArrowUp"&&(d=(~r?r:a.length)-1),~r&&((i==="Home"||i==="PageUp")&&(d=0),(i==="End"||i==="PageDown")&&(d=a.length-1),i==="Enter"))return a[r].click(),e.preventDefault();if(a[d])for(const l of a)l.tabIndex=-1;a[d]&&e.preventDefault(),(o=a[d]||t._input)==null||o.focus(),i==="Escape"&&P(t,!1)},P=(t,e)=>{t.hidden=!e,t.popover&&t.togglePopover(e),t._input&&Un(t,t._input,e),e&&Vn(t)},zt=t=>{j(t._root||t,Bn,t),rt(t,!1),P(t,!1),t._input=null},Fn=t=>[...t.options].filter(e=>!e.disabled&&e.offsetWidth&&e.offsetHeight),ct=t=>t instanceof HTMLOptionElement||t.getAttribute("role")==="option",Un=(t,e,n=!1)=>{u(e,"popovertarget",Rt(t)),u(e,"aria-autocomplete","list"),u(e,"aria-controls",Rt(t)),u(e,"aria-expanded",`${$i||n}`),u(e,"autocomplete","off"),u(e,"role","combobox")},jn=t=>(t==null?void 0:t.toLowerCase().trim())||"",Vn=(t,e)=>{var n;const o=jn((n=t._input)==null?void 0:n.value);if(!((e==null?void 0:e.type)==="mutation"||t._value!==o))return;const s=t.hidden,a=u(t,Dt)!=="true",r=e instanceof InputEvent&&!Kn(e);t.hidden=!0,t._value=o;for(const l of t.options){const f=[l.value,l.label,l.text].map(jn);l.hidden=!f.some(h=>h.includes(o)),a&&r&&ct(l)&&(l.selected=f.includes(o))}t.hidden=s;const d=Fn(t);clearTimeout(Nn),Nn=setTimeout(()=>{const{length:l}=d.filter(ct),f=++Ei%2?" ":"",h=`${`${t._texts[l===1?"singular":"plural"]}`.replace("%d",`${l}`)}`;D&&(D.textContent=`${!l&&t.innerText.trim()||h}${f}`)},1e3),st&&d.map((l,f,h)=>{l.title=`${f+1}/${h}`})};S&&Object.defineProperty(HTMLInputElement.prototype,"list",{configurable:!0,enumerable:!0,get(){return lt(this).getElementById(u(this,"list")||"")}}),Ht.define("u-datalist",wi);var Yn=" ".repeat(100),Ci="insertReplacementText",Ft=({value:t})=>t.split(Yn)[0];function Kn(t){var e;const n=t instanceof Event&&t.type==="input"&&t.target instanceof HTMLInputElement&&(!t.inputType||t.inputType===Ci);if(n){const o=t.target.value,i=Array.from(((e=t.target.list)==null?void 0:e.options)||[]).some(s=>s.value===o&&!ct(s));t.target.value=o.split(Yn)[i?1:0]}return n}var R,xi=Ln||st,Li=mi||_i,Wn="input,focusin,focusout,keydown",qn={added:"Added",remove:"Press to remove",removed:"Removed",empty:"No selected",found:"Navigate left to find %d selected",of:"of"},Ai=class extends Pt{constructor(){super(),this._blurAnnounceReset=!1,this._blurTimer=0,this._focusIndex=null,this._root=null,this._texts=xn({},qn),this.attachShadow({mode:"open"}).append(M("slot"),M("style",`:host(:not([hidden])){ display: inline-block }
|
|
5
6
|
::slotted(data) { cursor: pointer; display: inline-block; outline: none; pointer-events: none }
|
|
6
7
|
::slotted(data)::after { content: '\\00D7'; content: '\\00D7' / ''; padding-inline: .5ch; pointer-events: auto }
|
|
7
|
-
::slotted(data:focus)::after { ${
|
|
8
|
+
::slotted(data:focus)::after { ${Dn} }`))}static get observedAttributes(){return dt(qn)}connectedCallback(){this._root=lt(this),R||(R=Hn("polite")),R.isConnected||document.body.appendChild(R),rt(this,{childList:!0}),U(this._root,"click",this),U(this,Wn,this),setTimeout(()=>ut(this))}attributeChangedCallback(t,e,n){dt(this._texts,t,n)}disconnectedCallback(){rt(this,!1),j(this._root||this,"click",this),j(this,Wn,this),this._root=null}handleEvent(t){t.defaultPrevented||(t.type==="click"&&Di(this,t),t.type==="focusin"&&Oi(this,t),t.type==="focusout"&&Mi(this),t.type==="input"&&Pi(this,t),t.type==="keydown"&&Ri(this,t),t.type==="mutation"&&ut(this,t))}get items(){return this.querySelectorAll("data")}get control(){return this.querySelector("input")}},Ut=(t,e)=>t.dispatchEvent(new CustomEvent("tags",{bubbles:!0,cancelable:!0,detail:{item:e,action:e.isConnected?"remove":"add"}})),ut=(t,e)=>{var n,o,i,s,a;const r=t._texts,d=Number.isNaN(t._focusIndex)?null:e==null?void 0:e.detail[0],l=(d==null?void 0:d.addedNodes[0])||(d==null?void 0:d.removedNodes[0]),f=`${l?`${l.isConnected?r.added:r.removed} ${l.textContent}, `:""}`,h=((i=(o=(n=t.control)==null?void 0:n.labels)==null?void 0:o[0])==null?void 0:i.textContent)||"",y=[];u(t,"role","group"),u(t,"aria-label",h),t.items.forEach((m,Y,{length:K})=>{const Vt=`${f}${m.textContent}, ${r.remove}, ${Y+1} ${r.of} ${K}`;u(m,"aria-label",Vt),u(m,"role","button"),m.tabIndex=-1,m.value=(m.value||m.textContent||"").trim(),y.push(m.value)});const T=t.control,jt=`${f}${h}, ${y.length?r.found.replace("%d",`${y.length}`):r.empty}`,H=T&&document.getElementById(u(T,"list")||""),ft=H==null?void 0:H.children;T&&u(T,"aria-label",jt),H&&u(H,Dt,"true");for(const m of ft||[])m.selected=y.includes(Ft(m));if(f){const m=t.items[(t._focusIndex||1)-1]||T,Y=m===((s=lt(t))==null?void 0:s.activeElement),K=ft||t.items;t._blurAnnounceReset=!1,m===T?(Y&&(xi&&R?R.textContent=f:(a=K[0])==null||a.focus()),setTimeout(()=>m==null?void 0:m.focus(),100)):m==null||m.focus(),setTimeout(()=>{if(!Li)return ut(t);t._blurAnnounceReset=!0},500)}},Oi=(t,{target:e})=>{clearTimeout(t._blurTimer),t._focusIndex=[...t.items].indexOf(e)},Mi=t=>{t._blurAnnounceReset&&ut(t),t._blurTimer=setTimeout(()=>{t._focusIndex=null})},Di=(t,{target:e,clientX:n,clientY:o})=>{var i;const s=t.contains(e)?[...t.items]:null,a=s==null?void 0:s.find(d=>d.contains(e)),r=s==null?void 0:s.find(d=>{const{top:l,right:f,bottom:h,left:y}=d.getBoundingClientRect();return o>=l&&o<=h&&n>=y&&n<=f});a?Ut(t,a)&&a.remove():r?r.focus():e===t&&((i=t.control)==null||i.focus())},Pi=(t,e)=>{var n;const o=e.target;if(!Kn(e)||!(o!=null&&o.value.trim()))return;const i=Ft(o),s=[...t.items],r=[...((n=o==null?void 0:o.list)==null?void 0:n.children)||[]].find(f=>Ft(f)===i),d=s.find(f=>f.value===i),l=M("data",(r==null?void 0:r.text)||i,{value:i});if(o.value="",!!Ut(t,d||l)){if(d)return d.remove();if(!s[0])return t.prepend(l);s[s.length-1].insertAdjacentElement("afterend",l)}},Ri=(t,e)=>{var n,o;const{key:i,repeat:s,target:a}=e,r=t.control===a?t.control:null,d=r==null?void 0:r.selectionEnd;let l=r?t.items.length:(n=t._focusIndex)!=null?n:-1;if(!(l===-1||!r&&bi(e))){if(i==="ArrowRight"&&!r)l+=1;else if(i==="ArrowLeft"&&!d)l-=1;else{if(i==="Enter"&&r)return e.preventDefault(),r.dispatchEvent(new Event("input",{bubbles:!0}));if((i==="Backspace"||i==="Delete")&&!d){const f=!s&&t.items[l];if(e.preventDefault(),f)return Ut(t,f)&&f.remove();r&&(l-=1)}else return}e.preventDefault(),(o=t.items[Math.max(0,l)]||t.control)==null||o.focus()}};return Ht.define("u-tags",Ai),W.pagination=Jn,W.styles=Zn,Object.defineProperty(W,Symbol.toStringTag,{value:"Module"}),W}({});
|
|
8
9
|
//# sourceMappingURL=index.iife.js.map
|