@webority/ui-elements 0.191.0 → 0.191.2

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.
Files changed (60) hide show
  1. package/dist/ui-elements/calendar-views.global.js +1 -1
  2. package/dist/ui-elements/carousel.global.js +1 -1
  3. package/dist/ui-elements/code-block.global.js +1 -1
  4. package/dist/ui-elements/command-palette.global.js +1 -1
  5. package/dist/ui-elements/comment-thread.global.js +1 -1
  6. package/dist/ui-elements/consent-banner.global.js +1 -1
  7. package/dist/ui-elements/context-menu.global.js +1 -1
  8. package/dist/ui-elements/dashboard-grid.global.js +1 -1
  9. package/dist/ui-elements/data-table.global.js +1 -1
  10. package/dist/ui-elements/date-range.global.js +1 -1
  11. package/dist/ui-elements/date-time.global.js +1 -1
  12. package/dist/ui-elements/datepicker.global.js +1 -1
  13. package/dist/ui-elements/dock.global.js +1 -1
  14. package/dist/ui-elements/drawer.global.js +1 -1
  15. package/dist/ui-elements/dropdown.global.js +1 -1
  16. package/dist/ui-elements/entry-grid.global.js +1 -1
  17. package/dist/ui-elements/gantt.global.js +1 -1
  18. package/dist/ui-elements/glyphs.global.js +1 -1
  19. package/dist/ui-elements/hover-card.global.js +1 -1
  20. package/dist/ui-elements/image-crop.global.js +1 -1
  21. package/dist/ui-elements/inline-edit.global.js +1 -1
  22. package/dist/ui-elements/kanban.global.js +1 -1
  23. package/dist/ui-elements/lead-popup.global.js +1 -1
  24. package/dist/ui-elements/lightbox.global.js +1 -1
  25. package/dist/ui-elements/markdown.global.js +1 -1
  26. package/dist/ui-elements/mini-calendar.global.js +1 -1
  27. package/dist/ui-elements/navigation-menu.global.js +1 -1
  28. package/dist/ui-elements/notification-center.global.js +1 -1
  29. package/dist/ui-elements/offline-banner.global.js +1 -1
  30. package/dist/ui-elements/onboarding-checklist.global.js +1 -1
  31. package/dist/ui-elements/org-tree.global.js +1 -1
  32. package/dist/ui-elements/otp.global.js +1 -1
  33. package/dist/ui-elements/overflow.global.js +1 -1
  34. package/dist/ui-elements/phone.global.js +1 -1
  35. package/dist/ui-elements/popover.global.js +1 -1
  36. package/dist/ui-elements/rating.global.js +1 -1
  37. package/dist/ui-elements/record-pager.global.js +1 -1
  38. package/dist/ui-elements/relative-time.global.js +1 -1
  39. package/dist/ui-elements/saved-views.global.js +1 -1
  40. package/dist/ui-elements/select-chips.global.js +1 -1
  41. package/dist/ui-elements/select-recents.global.js +1 -1
  42. package/dist/ui-elements/select-search.global.js +1 -1
  43. package/dist/ui-elements/select-window.global.js +1 -1
  44. package/dist/ui-elements/server.global.js +1 -1
  45. package/dist/ui-elements/shell.global.js +1 -1
  46. package/dist/ui-elements/shortcuts.global.js +1 -1
  47. package/dist/ui-elements/show-more.global.js +1 -1
  48. package/dist/ui-elements/slider.global.js +1 -1
  49. package/dist/ui-elements/sortable.global.js +1 -1
  50. package/dist/ui-elements/status-icon.global.js +1 -1
  51. package/dist/ui-elements/table-export.global.js +1 -1
  52. package/dist/ui-elements/timepicker.global.js +1 -1
  53. package/dist/ui-elements/tour.global.js +1 -1
  54. package/dist/ui-elements/tree-picker.global.js +1 -1
  55. package/dist/ui-elements/tree.global.js +1 -1
  56. package/dist/ui-elements/truncate.global.js +1 -1
  57. package/dist/ui-elements/whats-new.global.js +1 -1
  58. package/dist/ui-elements/wizard.global.js +1 -1
  59. package/dist/ui-elements.global.js +1 -1
  60. package/package.json +5 -5
@@ -1 +1 @@
1
- var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>w,bindReanchor:()=>te,unbindReanchor:()=>T}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function C(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function ee(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${C(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${C(t,p,g.offsetHeight)}px`}}}function w(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,ee(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function te(e,t){T(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function T(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var ne=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>O,DISMISS_ATTRIBUTE:()=>D,OPEN_ATTRIBUTE:()=>E,closeAnchoredPopover:()=>Me,closeModalDialog:()=>Ae,isPopoverOpen:()=>k,onOverlayRootChange:()=>Le,openAnchoredPopover:()=>je,openModalDialog:()=>ke,overlayRoot:()=>Ie,raisePopover:()=>Pe,returnFocus:()=>Ee,setPopoverOpen:()=>Ne,wireOpenTriggers:()=>Re}),E=`data-wui-open`,D=`data-wui-dismiss`,O=`data-wui-closing`,re=`[${D}]`,ie=`[${E}]`,ae=`(prefers-reduced-motion: reduce)`,oe=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,se=400,ce=new WeakSet,le=new WeakSet,ue=new WeakSet,de=Symbol.for(`webority.ui.modal-stack`),fe=Symbol.for(`webority.ui.root-watches`);function pe(e){let t=e;return t[fe]??=new Set,t[fe]}var me=new WeakMap,he=new WeakMap,ge=new WeakMap;function _e(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(oe))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${re},.wui-modal-back`))return t;n??=t}return n}function ve(e){let t=[],n=new Map;for(let r of e.querySelectorAll(oe))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function ye(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function be(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function xe(e){let t=e;return t[de]??=[],t[de]}function Se(e){Ce(e),xe(e.ownerDocument).push(e)}function Ce(e){let t=xe(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function we(e){for(let t of pe(e)){let n=Ie(e);t.last!==n&&(t.last=n,t.listener(n))}}function Te(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function Ee(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function De(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function Oe(e,t){ge.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),ge.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,se);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),ge.set(e,i)}function ke(e,t){let n=t.focus===`first-control`?_e(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),ce.add(e);let o=()=>{if(Se(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw Ce(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),we(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;Ie(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&ce.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(Ie(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=ve(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(re);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,Ce(e),ce.has(e)?(o(),n&&t.onRequestClose(`escape`)):we(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),ce.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),Ce(e),we(e.ownerDocument)}}async function Ae(e){ce.delete(e),e.setAttribute(O,``),!window.matchMedia(ae).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Te(e),e.close(),Ce(e),we(e.ownerDocument),e.removeAttribute(O)}function je(e,t,n){let r=ge.get(t);if(r){r();return}me.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>w(e,t,n);try{i()}catch(e){throw Me(t),e}te(t,()=>{!k(t)||!t.isConnected?he.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&De(e)?Me(t):i()});let a=new ResizeObserver(()=>{k(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&he.get(t)?.()},s=()=>{n.mode===`auto`&&k(t)&&Oe(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),me.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),T(t),a.disconnect(),me.delete(t),he.delete(t)}),he.set(t,()=>{me.get(t)?.(),n.onClosed?.()})}function Me(e){k(e)&&e.hidePopover(),he.get(e)?.()}function k(e){return e.matches(`:popover-open`)}function Ne(e,t){Fe(e),k(e)!==t&&(t?e.showPopover():e.hidePopover())}function Pe(e){if(Fe(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Fe(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function Ie(e=document){let t=xe(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Le(e,t=document){le.has(t)||(le.add(t),t.addEventListener(`toggle`,()=>we(t),!0),t.addEventListener(`close`,()=>we(t),!0));let n={last:Ie(t),listener:e};return pe(t).add(n),()=>{pe(t).delete(n)}}function Re(e){ue.has(e)||(ue.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(ie):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);ye(a)?(t.preventDefault(),a.show(r)):be(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&ye(a)&&a.show(r)}))}))}var ze=n({closestOf:()=>Ve,elementOf:()=>Be,make:()=>j,must:()=>A});function A(e,t){if(e==null)throw Error(t);return e}function Be(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function Ve(e,t){return e instanceof Element?e.closest(t):null}function j(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var He=n({fillText:()=>N,pluralCategory:()=>rt,pluralText:()=>it,readText:()=>M,setText:()=>Ze,subscribeText:()=>Qe,textLocale:()=>$e}),Ue=`en-IN`,We=/\{([A-Za-z0-9_]+)\}/g,Ge=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ke,qe=new Map,Je=0,Ye=new Set,Xe=new Map;function Ze(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!at(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,ot(e,i))}}Ke=n,qe=t,Je+=1;for(let e of Array.from(Ye))e()}function M(e,t){let n=qe.get(e);if(n===void 0)return t;let r=Xe.get(e);if(r!==void 0&&r.version===Je&&r.english===t&&ct(r.merged,t))return r.merged;let i=st(e,n,t);return Xe.set(e,{version:Je,english:t,merged:i}),i}function Qe(e){return Ye.add(e),()=>{Ye.delete(e)}}function $e(){return Ke??Ue}var et=e=>e===1?`one`:`other`,tt=e=>Math.trunc(Math.abs(e))===0||e===1?`one`:`other`,nt={en:et,ta:et,te:et,ml:et,mr:et,ne:et,or:et,ur:et,hi:tt,bn:tt,gu:tt,kn:tt,as:tt,pa:tt};function rt(e,t){let n=e.split(/[-_]/)[0]?.toLowerCase()??``,r=Ge(nt,n)?nt[n]:void 0;if(r===void 0)throw RangeError(`No plural rule for locale "${e}". Supported languages: ${Object.keys(nt).join(`, `)}.`);return r(t)}function N(e,t){return e.replace(We,(e,n)=>Ge(t,n)?String(t[n]):e)}function it(e,t,n,r){let i=`${t}Other`;if(!Ge(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=rt($e(),n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Ge(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return N(s,{count:n,...r})}function at(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ot(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function st(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Ge(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=lt(t);for(let t of lt(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function ct(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Ge(e,t))}function lt(e){return Array.from(e.matchAll(We),e=>e[1]??``)}var ut={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},dt=n({SHORTCUTS_OFF_ATTRIBUTE:()=>pt,SHORTCUT_EVENT:()=>ht,SHORTCUT_SCOPE_ATTRIBUTE:()=>mt,ariaKeyShortcuts:()=>Dt,inShortcutScope:()=>jt,isTypingTarget:()=>Ot,listKeys:()=>_t,moveFocus:()=>Nt,runShortcut:()=>Mt,selectKey:()=>vt,shortcutKey:()=>Et,shortcutName:()=>Tt,shortcutText:()=>gt,shortcutsOff:()=>At}),ft=()=>M(`shortcutKeys`,ut),pt=`data-wui-shortcuts`,mt=`data-shortcut-scope`,ht=`wui:shortcut`,gt=()=>({title:ft().sheetTitle,close:ft().closeLabel,help:ft().helpLabel}),_t=()=>[{key:`J`,label:ft().nextItemLabel},{key:`K`,label:ft().previousItemLabel},{key:`Enter`,label:ft().openItemLabel}],vt=()=>({key:`X`,label:ft().selectItemLabel}),yt={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},bt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},xt={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},St=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),Ct=new Set([`textbox`,`searchbox`,`combobox`]),wt=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function Tt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:yt[t]?yt[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Et(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():bt[t.toLowerCase()]??t}function Dt(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>xt[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Ot(e){if(!e||!kt(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!St.has(t.toLowerCase())}return Ct.has(e.getAttribute?.(`role`))}function kt(e){return e.nodeType===1}function At(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(pt)===`off`}function jt(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function Mt(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||At(r?.ownerDocument??void 0))return!1;let i=Tt(e);if(!i||!jt(r,n)||Ot(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(wt)?!1:(e.preventDefault(),a(e),!0)}function Nt(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=A(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Pt(e){"@babel/helpers - typeof";return Pt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pt(e)}function Ft(e,t){if(Pt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function It(e){var t=Ft(e,`string`);return Pt(t)==`symbol`?t:t+``}function P(e,t,n){return(t=It(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lt=2,Rt=`wui-filter-popover-pinned`,zt=`.wui-filter-popover-trigger`,Bt=`.wui-filter-popover-panel`,Vt=`.wui-filter-popover-head`,Ht=`input:not([type]),input[type="text"],input[type="search"]`,Ut=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Wt(){try{return sessionStorage.getItem(Rt)===`1`}catch{return!1}}function Gt(e){try{e?sessionStorage.setItem(Rt,`1`):sessionStorage.removeItem(Rt)}catch(e){if(!(e instanceof DOMException))throw e}}function Kt(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function qt(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var Jt=class extends s{constructor(){super(),P(this,`_doc`,void 0),P(this,`_timer`,void 0),P(this,`_sticky`,void 0),P(this,`_closingByCode`,void 0),P(this,`_inside`,void 0),P(this,`_pendingSubmit`,void 0),P(this,`_onEnter`,void 0),P(this,`_onLeave`,void 0),P(this,`_onClick`,void 0),P(this,`_onChange`,void 0),P(this,`_onListClose`,void 0),P(this,`_onFocusOut`,void 0),P(this,`_onKeyDown`,void 0),P(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(Kt(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){Gt(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(Kt(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(Ht))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&Mt(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?k(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),Wt()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return qt(this,zt)}get _panel(){return qt(this,Bt)}get _pin(){let e=this.querySelector(`${Vt} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,je(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(qt(n.querySelector(`.wui-filter-popover-grid`),Ut)??qt(n,Ut))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Me(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function Yt(){i(`wui-filter-popover`,Jt)}var Xt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),P(this,`_doc`,void 0),P(this,`_release`,void 0),P(this,`_opener`,void 0),P(this,`_returnTo`,void 0),P(this,`_session`,void 0),P(this,`_closing`,void 0),P(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,Re(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=ke(n,{escape:!this.hasAttribute(`no-escape`),backdrop:!this.hasAttribute(`static`),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();Ae(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),Ee(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},Zt=n({avatarNode:()=>$t,safeImageUrl:()=>Qt}),Qt=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function $t(e,t=`wui-opt-avatar`){let n=Qt(e.avatar);return!n&&!e.initials?null:j(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},j(`span`,{class:`avatar-face`},e.initials??``),n?j(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var en=n({devError:()=>nn,devWarn:()=>tn});function tn(e,...t){console.warn(e,...t)}function nn(e,...t){console.error(e,...t)}var rn=n({BUSY_CLASS:()=>an,isInert:()=>F,isReadOnly:()=>on,syncFieldState:()=>sn}),an=`wui-field-busy`,on=e=>e.hasAttribute(`readonly`),F=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function sn(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(an,n),on(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var cn=n({syncFormMirror:()=>fn,syncFormMirrors:()=>pn}),ln=`data-wui-mirror`;function un(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function dn(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(ln,``),e.appendChild(t),t}function fn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${ln}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=dn(e),un(e,i,n,t)):i?.remove()}function pn(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${ln}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{un(e,r[i]??dn(e),n,t)})}var mn=n({hasOwn:()=>hn}),hn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,gn=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),_n=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(gn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`formatters.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var vn=`ui-elements/`;function yn(e){let t=_n[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function bn(e){let t=yn(e);if(!t.selfContained)return`${vn+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var xn=n({CHUNK_DIR:()=>vn,CHUNK_RETRY_MS:()=>wn,ELEMENTS_DEFINED_EVENT:()=>Sn,ELEMENTS_LOAD_ERROR_EVENT:()=>Cn,assetUrl:()=>Hn,chunkReadyCheckKeys:()=>Un,loadChunk:()=>L,registerChunkReadyCheck:()=>I,startElementLoader:()=>zn,stopElementLoader:()=>Bn,whenElementsReady:()=>Vn}),Sn=`wui-elements:defined`,Cn=`wui-elements:load-error`,wn=1e3,Tn={"ui-elements/carousel.global.js":`41303ec838fa`,"ui-elements/data-table.global.js":`f4fcb0a3a49a`,"ui-elements/dock.global.js":`7e1d1062b762`,"ui-elements/hover-card.global.js":`3c573febf06c`,"ui-elements/navigation-menu.global.js":`33b70b14fb5d`,"ui-elements/notification-center.global.js":`699d9777f6c0`,"ui-elements/onboarding-checklist.global.js":`11e9f1e68266`,"ui-elements/otp.global.js":`eecd52fc85b8`,"ui-elements/overflow.global.js":`4e203e1252d6`,"ui-elements/rating.global.js":`1c9c7d259d1a`,"ui-elements/record-pager.global.js":`25b5da169c40`,"ui-elements/relative-time.global.js":`6b16d33aee16`,"ui-elements/shortcuts.global.js":`71eb1b9c1a35`,"ui-elements/show-more.global.js":`65db6241b532`,"ui-elements/calendar-views.global.js":`d78dd4929097`,"ui-elements/truncate.global.js":`d90f6f994cb7`,"ui-elements/whats-new.global.js":`57f869111a9f`,"ui-elements/offline-banner.global.js":`3439a7a4571b`,"ui-elements/code-block.global.js":`d7b29e7dcfa6`,"ui-elements/command-palette.global.js":`ec950fc38755`,"ui-elements/comment-thread.global.js":`f4b7b603281b`,"ui-elements/consent-banner.global.js":`7f4526a44526`,"ui-elements/context-menu.global.js":`0661c67883e8`,"ui-elements/date-range.global.js":`c53d56b64d1b`,"ui-elements/date-time.global.js":`a2192bbf85a4`,"ui-elements/datepicker.global.js":`a73b582f8396`,"ui-elements/mini-calendar.global.js":`2586fd47f480`,"ui-elements/drawer.global.js":`f9a2a47e7203`,"ui-elements/dropdown.global.js":`dd744098568e`,"ui-elements/entry-grid.global.js":`8cb63227db09`,"ui-elements/gantt.global.js":`21cd1efe1c4d`,"ui-elements/image-crop.global.js":`51e548f2d354`,"ui-elements/inline-edit.global.js":`4b84efc0e0a8`,"ui-elements/kanban.global.js":`4a15e06d42f7`,"ui-elements/dashboard-grid.global.js":`1456ef4bc460`,"ui-elements/lead-popup.global.js":`3ff4cd138c5e`,"ui-elements/lightbox.global.js":`9c93b9e936e5`,"ui-elements/org-tree.global.js":`a0cbf57c6420`,"ui-elements/markdown.global.js":`d62168507a6c`,"ui-elements/phone.global.js":`3fe9466a1e4a`,"ui-elements/popover.global.js":`9289ab747513`,"ui-elements/saved-views.global.js":`1b177884f99b`,"ui-elements/glyphs.global.js":`9b36357ff4e5`,"ui-elements/select-chips.global.js":`c2b89e0e50f0`,"ui-elements/select-recents.global.js":`7dcef308ff53`,"ui-elements/select-search.global.js":`1e256f18db61`,"ui-elements/select-window.global.js":`e7f7b4c441e7`,"ui-elements/table-export.global.js":`b726753b400e`,"ui-elements/server.global.js":`655b4a8ec44e`,"ui-elements/shell.global.js":`ad76d331d9c7`,"ui-elements/slider.global.js":`c3bf4411e526`,"ui-elements/sortable.global.js":`3afdd76514b3`,"ui-elements/status-icon.global.js":`b19e6afc3d32`,"ui-elements/timepicker.global.js":`201f46a0d827`,"ui-elements/tour.global.js":`8c96dcace86f`,"ui-elements/tree.global.js":`5b86e7fac03c`,"ui-elements/tree-picker.global.js":`0517d14f13a7`,"ui-elements/wizard.global.js":`7f4302926369`,"ui-chart.global.js":`c8f028fa9ba2`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},En=new Map;for(let[e,t]of Object.entries(_n))for(let n of t.tags)En.set(n,e);var Dn=[...En.keys()].join(`,`),On=[];for(let[e,t]of Object.entries(_n))t.markers!==void 0&&On.push([e,t.markers]);var kn=[...new Set(On.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],An=null,jn=``,Mn=!1,Nn=null,Pn=new Map,Fn=new Map,In=`The file ran but did not hand over its modules; see the error above.`,Ln=`The file has no ready check, so the loader cannot tell whether it ran.`;function Rn(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function zn(e=Rn()){Mn||(Mn=!0,An=e?.src?e.src:null,jn=e?.nonce||``,qn(document),Nn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&qn(t.target);else for(let e of t.addedNodes)e instanceof Element&&qn(e)}),Nn.observe(document.documentElement,{childList:!0,subtree:!0,...kn.length>0?{attributes:!0,attributeFilter:kn}:{}}))}function Bn(){Nn?.disconnect(),Nn=null,Mn=!1,An=null,jn=``,Pn.clear()}function Vn(e=document){return Promise.all([...Kn(e)].map(e=>L(e))).then(()=>void 0)}function Hn(e){if(An===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,An);return t.search=hn(Tn,e)?`?v=${Tn[e]}`:``,t.href}function I(e,t){yn(e),Fn.set(e,t)}function Un(){return[...Fn.keys()]}function L(e){let t=Pn.get(e)?.promise??null;if(t!==null)return t;let n=yn(e),{tags:r}=n,i=bn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Nn&&Object.keys(_n).every(e=>Pn.get(e)?.status===`loaded`||Pn.get(e)?.status===`failed`)&&Nn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(Sn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),nn(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Cn,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,jn&&(o.nonce=jn),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Fn.has(e)){d(Error(Ln));return}let t=Fn.get(e);t!==void 0&&!t()?d(Error(In)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),wn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Fn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Ln));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(In)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Hn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,Pn.set(e,o),s}function Wn(e){return En.has(e.localName)&&!customElements.get(e.localName)}function Gn(e,t){let n=En.get(t.localName);n!==void 0&&Wn(t)&&e.add(n)}function Kn(e){let t=new Set;e instanceof Element&&Gn(t,e);for(let n of e.querySelectorAll(Dn))Gn(t,n);for(let[n,r]of On)Pn.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function qn(e){for(let t of Kn(e))Promise.allSettled([L(t)])}var Jn={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},Yn=n({svgNodes:()=>Zn,svgRoot:()=>Qn}),Xn=`http://www.w3.org/2000/svg`;function Zn(e){return e.map($n)}function Qn(e,t){let n=document.createElementNS(Xn,`svg`);return er(n,e),n.append(...Zn(t)),n}function $n(e){let[t,n,r]=e,i=document.createElementNS(Xn,t);return er(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...Zn(r)),i}function er(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var tr=n({GLYPH_CHUNK:()=>nr,GLYPH_PENDING_ATTRIBUTE:()=>rr,glyphNode:()=>R,lazyGlyphsRegistered:()=>mr,registerGlyphs:()=>hr}),nr=`glyphs`,rr=`data-wui-glyph-pending`,ir=`svg[${rr}]`,ar=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,or={...Jn},sr=new Map,cr=!1,lr=!1,ur=null;function dr(e){return hn(or,e)?or[e]:void 0}function fr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[rr]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function R(e,{size:t=16,className:n=``}={}){let r=dr(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=sr.get(i);return a===void 0&&(a=Qn(fr(e,t,n,!1),r),sr.set(i,a)),Be(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return cr||!ar.test(e)?null:(Promise.allSettled([L(nr)]),Qn(fr(e,t,n,!0),[]))}function pr(e){let t=e instanceof Element&&e.matches(ir)?[e]:[];for(let n of[...t,...e.querySelectorAll(ir)]){let e=dr(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute(rr),n.replaceChildren(...Zn(e)))}}function mr(){return lr}function hr(e){Object.assign(or,e),cr=!0,lr=!0,pr(document),ur===null&&(ur=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&pr(e)}),ur.observe(document.documentElement,{childList:!0,subtree:!0}))}var gr=n({isImeComposing:()=>_r,isImeSafeEnter:()=>vr});function _r(e){return e.isComposing||e.keyCode===229}function vr(e){return e.key===`Enter`&&!_r(e)}var yr=n({createListboxKeyNav:()=>xr,moveActiveRow:()=>Sr}),br=e=>e.target instanceof Element?e.target.tagName:void 0;function xr(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=br(e)===`INPUT`||br(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(vr(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&br(e)!==`INPUT`&&br(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function Sr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Cr=n({TRUSTED_LABEL:()=>wr,optionLabelNodes:()=>Ar,optionText:()=>jr,stripTags:()=>Dr,withTrustedLabel:()=>Tr}),wr=Symbol(`wui.trustedLabel`),Tr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[wr]:n}},Er=e=>`wui-flag wui-flag-${e}`,Dr=e=>String(e??``).replace(/<[^>]*>/g,``),Or=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?R(t):null},kr=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?j(`span`,{class:Er(t),"aria-hidden":`true`}):null};function Ar(e){if(e==null)return[];let t=kr(e.flag),n=Or(e.icon),r=e[wr],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[j(`span`,{class:`wui-opt-label`},t,n,...i)]}var jr=e=>{if(e==null)return``;let t=e[wr];return t?t.textContent??``:Dr(e.label)},Mr=n({SELECT_TEXT:()=>Nr}),Nr={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,loadingMoreText:`Loading more…`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Pr=n({clearOptions:()=>Hr,drawn:()=>Lr,filterOptions:()=>Ir,nodesSignature:()=>zr,optionRow:()=>Xr,posAttrMap:()=>Rr,refreshWindow:()=>Kr,registerWindowImpl:()=>Vr,renderOptions:()=>Ur,revealRow:()=>qr,rowId:()=>Wr,rowIndexByPrefix:()=>Yr,rowIndexOfValue:()=>Jr,windowImplRegistered:()=>Br}),Fr=()=>M(`select`,Nr);function Ir(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[jr(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Lr=new WeakMap,Rr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},zr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),z;function Br(){return z!==void 0}function Vr(e){z=e}function Hr(e){z?.clear(e),Lr.delete(e),e.replaceChildren()}function Ur(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Fr().emptyText,searchingText:s=Fr().searchingText,loadingMoreText:c=Fr().loadingMoreText,hintText:l=Fr().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=Ir(t,i),m=e.id,h=u.filter(e=>e.position===`top`),g=u.filter(e=>e.position===`bottom`),_=d?.options.length?d.options:[],v=h.length+_.length+p.length+g.length,y=p.length>300,b=z,x=y&&b!==void 0,S=e=>x?{index:e,size:v}:void 0,C=0,ee=e=>{let t=C++;return j(`button`,{type:`button`,role:`option`,id:Wr(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Rr(S(t))},e.label)},w=e=>{let t=C++;return Xr(e,Wr(m,t),f.has(String(e.value)),S(t))},te=h.map(ee),T=_.length&&d?[j(`div`,{class:`wui-select-group`},d.label),..._.map(w),j(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],ne=C,E=[];if(x)C+=p.length;else{let e=``;for(let t of p)t.group&&t.group!==e&&E.push(j(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,E.push(w(t))}let D=g.map(ee),O=[];if(a===`loading`||a===`more`?O=[j(`div`,{class:`wui-select-loading`},j(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),a===`more`?c:s)]:a===`hint`?O=[j(`div`,{class:`wui-select-hint`},l)]:(a===`empty`||p.length===0&&u.length===0)&&(O=[j(`div`,{class:`wui-select-empty`},o)]),x&&b){let n=[...te,...T],r=[...D,...O];return b.render(e,{options:t,query:i,rows:p,pre:n,post:r,preSig:zr(n),postSig:zr(r),picked:f,top:h,recent:_,bottom:g,bodyBase:ne,total:v}),{rows:v,windowed:!0,long:y}}b?.clear(e);let re=[...te,...T,...E,...D,...O],ie=zr(re);return Lr.get(e)===ie||(Lr.set(e,ie),e.replaceChildren(...re)),{rows:C,windowed:!1,long:y}}var Wr=(e,t)=>`${e}-opt-${t}`,Gr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Kr(e){return z?z.refresh(e):!1}function qr(e,t){return z?z.reveal(e,t):Gr(e)[t]??null}function Jr(e,t){if(z)return z.indexOfValue(e,t);let n=new Set(t.map(String));return Gr(e).findIndex(e=>n.has(e.dataset.value??``))}function Yr(e,t){return z?z.indexByPrefix(e,t):Gr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Xr(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Rr(r)},o=j(`span`,{class:`wui-select-check`,"aria-hidden":`true`},R(`check`));if(!e.description&&!e.meta)return j(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},$t(e),j(`span`,{class:`wui-select-opt-name`},...Ar(e)),o);let s=e.description?j(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?j(`span`,{class:`wui-select-opt-meta`},e.meta):null;return j(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},$t(e),j(`span`,{class:`wui-select-option-text`},j(`span`,{class:`wui-opt-label`},...Ar(e)),s),c,o)}var Zr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),B=e=>e===`multiple`||e===`tag`,Qr=n({registerSelectPart:()=>ei,selectPart:()=>ti}),$r=new Map;function ei(e,t){$r.set(e,t)}function ti(e){return $r.get(e)}var ni={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ri(e){let t=hn(ni,e)?ni[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=ti(e);return n?Promise.resolve(n):L(t).then(()=>A(ti(e),`The ${e} part of <wui-select> did not register.`))}var ii=n({searchesRemotely:()=>ai}),ai=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),oi=()=>L(`select-window`),si={requiredFieldMessage:`Please fill in this field.`},ci={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},li=n({WuiSelect:()=>pi}),V=()=>M(`select`,Nr),ui=()=>M(`search`,ci),di=()=>M(`field`,si),fi=160,pi=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),P(this,`_internals`,void 0),P(this,`_value`,void 0),P(this,`_optionsProp`,void 0),P(this,`_partOptions`,void 0),P(this,`_known`,void 0),P(this,`_loadOptionsFn`,void 0),P(this,`_validateFn`,void 0),P(this,`_declared`,void 0),P(this,`_query`,void 0),P(this,`_ownsFilter`,void 0),P(this,`_active`,void 0),P(this,`_rows`,void 0),P(this,`_windowed`,void 0),P(this,`_windowLoad`,void 0),P(this,`_windowFailed`,void 0),P(this,`_scrollFrame`,void 0),P(this,`_endFrame`,void 0),P(this,`_status`,void 0),P(this,`_error`,void 0),P(this,`_nav`,void 0),P(this,`_parts`,void 0),P(this,`_partSig`,void 0),P(this,`_partsMounted`,void 0),P(this,`_partToken`,void 0),P(this,`_rendered`,void 0),P(this,`_searchShown`,void 0),P(this,`_defaultValue`,void 0),P(this,`_warnedMode`,void 0),P(this,`_warnedDensity`,void 0),P(this,`_hoverTimer`,void 0),P(this,`_hoverOpened`,void 0),P(this,`_onHoverOver`,void 0),P(this,`_onHoverOut`,void 0),P(this,`_panelShown`,void 0),P(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._endFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},_i)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},vi)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=wi(n,B(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=wi(this._value,B(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),Si.has(e)?this._rendered&&(this._drawValue(),this.renderList()):xi.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:hi(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,tn(`<wui-select> mode "${e}" is not one of ${Zr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||gi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,tn(`<wui-select> density "${e}" is not one of ${gi.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=wi(e,B(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){F(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=Ir(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Hr(e.list),this._anchorMenu();return}let i=Ur(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||V().emptyText,searchingText:this.getAttribute(`searching-text`)||V().searchingText,loadingMoreText:V().loadingMoreText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu(),this._watchListEnd()}_watchListEnd(){this._endFrame===null&&this._activePartsList().some(e=>e.onListEnd)&&(this._endFrame=requestAnimationFrame(()=>{this._endFrame=null,this._checkListEnd()}))}_checkListEnd(){let e=this._refs().list;if(e?.clientHeight&&this._menuOpen()&&!(e.scrollTop+e.clientHeight<e.scrollHeight-fi))for(let e of this._activePartsList())e.onListEnd?.()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=B(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=wi(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=wi(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?j(`div`,{class:`form-control wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):j(`button`,{type:`button`,class:`form-control wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?R(s,{className:`wui-select-icon`}):null,c?j(`span`,{class:`wui-select-prefix`},c):null,j(`span`,{class:`wui-select-value`,"data-label":!0}),l?j(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":V().clearSelectionLabel,hidden:!0},R(`x`)):null,R(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),C=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,ee=t===`search`||C&&!i;this._searchShown=ee;let w=this.getAttribute(`search-placeholder`)||(t===`country`?V().countrySearchPlaceholder:ui().placeholder),te=j(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?j(`div`,{class:`wui-select-search`},R(`search`),j(`input`,{class:`wui-select-input`,placeholder:w,"aria-label":w,"aria-autocomplete":`list`}),j(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":ui().clearLabel,hidden:!0},R(`x`))):null,j(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),T=j(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(j(`div`,{class:`wui-select${o}`},b,te),T),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),sn(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||V().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Ai(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of Ci){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),Tr(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||bi()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){B(this.mode)?pn(this,this._selectedValues()):fn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=B(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?Ar(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?jr(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!B(this.mode)&&this._hasValue()?$t({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(j(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},di().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=H(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!F(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=H(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:H(this,`.wui-select-control`,HTMLElement),value:H(this,`.wui-select-value`,HTMLElement),menu:H(this,`.wui-select-menu`,HTMLElement),list:H(this,`.wui-select-options`,HTMLElement),search:H(this,`.wui-select-search input`,HTMLInputElement),input:H(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=H(this,`.wui-select-menu`,HTMLElement);return e!==null&&k(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||F(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>yi}_visible(){let e=this._refs();return e.list?ki(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?qr(n.list,e):null)),Sr(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&(this._windowed&&Kr(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1}),this._checkListEnd())}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&w(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){je(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=H(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?Jr(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);k(t.menu)&&Me(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=H(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Ai(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);B(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ai(this)}_onKeyDown(e){if(!F(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||vr(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}A(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=A(H(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=H(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=H(this,`.wui-select-reset`,HTMLElement);this._nav=xr({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Yr(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!F(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=A(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(F(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!F(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():F(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(B(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=Oi(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),B(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{B(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=Oi(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null,this._endFrame!==null&&cancelAnimationFrame(this._endFrame),this._endFrame=null}_dropMenu(){let e=H(this,`.wui-select-menu`,HTMLElement);e&&Me(e)}_activePartsList(){return this._partsMounted?A(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=Ei(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>ji(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=oi().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(V().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=mi(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};P(pi,`formAssociated`,!0);var mi=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:A(t,`control missing`),value:A(n,`value missing`),menu:A(r,`menu missing`),list:A(i,`list missing`),search:e.search,input:e.input}},hi=e=>Zr.includes(e),gi=[`comfortable`,`compact`],_i=150,vi=250,yi=10,bi=()=>{let e=V();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},xi=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),Si=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),Ci=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],wi=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ti=(e,t)=>t===`multiple`?ai(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ai(e)?[`chips`,`search`]:[`chips`]:[],Ei=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ti(e,t)]:Ti(e,t),Di=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,Oi=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},H=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},ki=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Ai=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},ji=(e,t)=>ri(t).then(e=>{if(!Di(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(V().partLoadMessage),null)),Mi=n({TABLE_EXPORT_CHUNK:()=>Ni,loadTableExport:()=>Fi,registerTableExport:()=>Ii,tableExportRegistered:()=>Li}),Ni=`table-export`,Pi=null;function Fi(){return Pi===null?L(Ni).then(()=>{if(Pi===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Pi}):Promise.resolve(Pi)}function Ii(e){Pi=e}function Li(){return Pi!==null}function Ri(){I(`glyphs`,mr),I(`select-chips`,()=>ti(`chips`)!==void 0),I(`select-recents`,()=>ti(`recents`)!==void 0),I(`select-search`,()=>ti(`search`)!==void 0),I(`select-window`,Br),I(`table-export`,Li)}var zi={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Bi=n({TOAST_ACTION_METHODS:()=>Vi,parseToastAction:()=>Wi}),Vi=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Hi=e=>(tn(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),Ui=e=>typeof e==`object`&&!!e;function Wi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Hi(`the value is not JSON`)}let n=Ui(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Hi(`label and url must be non-empty strings`):Vi.includes(a)?{label:r,url:i,method:a}:Hi(`method must be one of ${Vi.join(`, `)}`)}var Gi=n({FLASH_STORAGE_KEY:()=>Ji,FLASH_VARIANTS:()=>Ki,isToastVariant:()=>qi,storeFlash:()=>Yi,takeStoredFlash:()=>Zi}),Ki=Object.freeze([`success`,`info`,`warning`,`danger`]),qi=e=>Ki.some(t=>t===e),Ji=`wui.flash`;function Yi(e,t,n){e&&window.sessionStorage.setItem(Ji,JSON.stringify({message:e,variant:t,action:n??null}))}var Xi=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!Vi.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function Zi(){let e=window.sessionStorage.getItem(Ji);if(e===null)return null;window.sessionStorage.removeItem(Ji);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!qi(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:Xi(i)}}var Qi=n({parseServerHtml:()=>$i});function $i(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var ea=n({wuiHost:()=>ta});function ta(){return A(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var na=n({CSRF_META_NAME:()=>ra,DEFAULT_CSRF_HEADER:()=>ia,DEFAULT_TIMEOUT_MS:()=>ma,HTTP_KINDS:()=>ca,WUI_HEADERS:()=>U,WUI_REQUEST_HEADER:()=>sa,classifyStatus:()=>fa,configureCsrf:()=>oa,createRequestQueue:()=>Ca,isSameOrigin:()=>da,readCsrf:()=>ua,settleResponse:()=>xa,timeoutFromAttribute:()=>ha,wuiFetch:()=>Sa}),ra=`wui-csrf`,ia=`RequestVerificationToken`,aa={metaName:ra,header:ia};function oa({metaName:e=ra,header:t=ia}={}){aa={metaName:e,header:t}}var sa=`Wui-Request`,U=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),ca=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),la=new Set([`GET`,`HEAD`]);function ua(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===aa.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||aa.header,token:n}}var da=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function fa(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var pa=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,ma=3e4;function ha(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var ga=`The ${U.refresh} response header must be {tables, regions, reloadPage}.`,_a=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),va=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${U.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(ga);let{tables:n,regions:r,reloadPage:i}=t;if(!_a(n)||!_a(r)||typeof i!=`boolean`)throw TypeError(ga);return{tables:n,regions:r,reloadPage:i}},ya=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},ba=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function xa(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:ba(r(U.message)),redirect:r(U.redirect),result:r(U.result),keepOpen:r(U.keepOpen)===`1`,toastVariant:r(U.toastVariant),toastAction:Wi(r(U.toastAction)),fragment:r(U.fragment)===`1`,data:ya(t,n),next:r(U.next),refresh:va(ba(r(U.refresh)))}}async function Sa(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[sa]:`1`,...t.headers};if(!la.has(n)&&da(e)){let e=ua();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:pa(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return xa(d(e))}let s=fa(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(U.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),xa(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return xa(d(e),o)}return xa(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function Ca(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await Sa(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var wa=n({REFRESH_ATTR:()=>Da,REGION_KEY_ATTR:()=>Ea,REGION_SRC_ATTR:()=>Ta,refreshRegions:()=>Aa}),Ta=`data-wui-region-src`,Ea=`data-wui-region-key`,Da=`data-wui-refresh`,Oa=new WeakSet,ka=new Map;async function Aa(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Ta}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Ea);if(!i){Oa.has(e)||(Oa.add(e),nn(Error(`A [${Ta}] element needs ${Ea}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>ja(e,t)))}async function ja(e,t){let n=(ka.get(e)??0)+1;ka.set(e,n);let r=await Sa(e);if(ka.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){tn(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of $i(r.html).querySelectorAll(`[${Ea}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Ea);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?Ma(n,r):tn(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Ma(e,t){for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0))),e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);ta().refresh(e)}var Na=n({getServerTable:()=>La,isServerTableWired:()=>Ia,registerServerTable:()=>Fa}),Pa=new WeakMap;function Fa(e,t){Pa.set(e,t)}function Ia(e){return Pa.has(e)}function La(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Pa.get(t)||null}var Ra=n({applyPlan:()=>eo,applyRefresh:()=>no,holdInDialog:()=>Ya,isRefreshOff:()=>Ba,mergePlans:()=>Wa,planOf:()=>Va,planReloads:()=>Ga,refreshAfter:()=>to,refreshesNothing:()=>Xa,reloadPage:()=>qa,reloadsPage:()=>Ka,setDialogHold:()=>Ja}),za=null;function Ba(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function Va(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var Ha={never:0,auto:1,page:2},Ua=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Wa(e,t){return e===null?t:{tables:Ua(e.tables,t.tables),regions:Ua(e.regions,t.regions),reload:Ha[e.reload]>=Ha[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Ga(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Ka(e){let t=Va(e);return t!==null&&Ga(t)}function qa(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Ja(e){za=e}function Ya(e,t){return za?za(t,e):!1}function Xa(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var Za=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Qa=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(Za));for(let e of t)i.has(e)||tn(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>Za(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ba(e))},$a=async e=>{await La(e)?.reload({quiet:!0})};async function eo(e,t={}){if(t.origin&&Ya(e,t.origin))return`held`;if(Ga(e)&&(e.reload===`page`||t.allowReload!==!1))return Yi(e.message,e.variant,e.action),qa(),`reloaded`;let n=Qa(e,t.skip).map(e=>$a(e).catch(nn));return(e.regions===`all`||e.regions.length>0)&&n.push(Aa(e.regions).catch(nn)),await Promise.all(n),`refreshed`}async function to(e,t={}){let n=Va(e);return n===null?`none`:eo(n,t)}async function no(){await eo({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var ro=n({TOAST_ACTION_MS:()=>io,runToastAction:()=>lo,showResultToast:()=>so,showToast:()=>co}),io=8e3,ao=()=>M(`toast`,zi);function oo(e){if(!qi(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function so(e,t=`success`){e?.message&&co(e.message,t,e.toastAction)}function co(e,t,n=null){n?ta().toast(e,{variant:oo(t),duration:io,action:{label:n.label,onClick:e=>void lo(n,e)}}):ta().toast(e,{variant:oo(t)})}async function lo(e,t=null){let n=await Sa(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Ka(n)||so(n,n.toastVariant||`success`),await to(n,{origin:t})):ta().toast(n.message||ao().failedText,{variant:`danger`}))}var uo=n({HTTP_FAILURE_TEXT:()=>fo}),fo={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},po=n({SERVER_CHUNK:()=>mo,SHELL_CHUNK:()=>ho,loadServer:()=>vo,loadShell:()=>xo,loadedServer:()=>yo,loadedShell:()=>So,registerServer:()=>bo,registerShellParts:()=>Co}),mo=`server`,ho=`shell`,go=null,_o=null;I(mo,()=>go!==null),I(ho,()=>_o!==null);function vo(){return go===null?L(mo).then(()=>{if(go===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return go}):Promise.resolve(go)}function yo(){return go}function bo(e){go=e}function xo(){return _o===null?L(ho).then(()=>{if(_o===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return _o}):Promise.resolve(_o)}function So(){return _o}function Co(e){_o=e}var wo=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,To=`form[data-wui-post-form], form[data-wui-confirm]`,Eo=`[data-wui-confirm]`,Do=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,Oo=new WeakSet,ko=new WeakMap;function Ao(e=document){Oo.has(e)||(Oo.add(e),e.addEventListener(`click`,jo,!0),e.addEventListener(`submit`,Mo,!0))}function jo(e){if(yo()!==null||!(e.target instanceof Element))return;let t=e.target.closest(wo);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Do)||No(e,t,()=>t.click()))}function Mo(e){if(yo()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(To)||(n?.matches(Eo)??!1))&&No(e,t,()=>Po(t,n))}function No(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),ko.has(t)||(ko.set(t,!0),vo().then(()=>{ko.delete(t),t.isConnected&&n()},()=>{ko.delete(t),co(M(`httpFailure`,fo).networkText,`danger`)}))}function Po(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var Fo=n({APP_BUTTON_MARKER:()=>Io,buttonClass:()=>Bo}),Io=`AppButton`,Lo=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Ro={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function zo(e){return hn(Ro,e)}function Bo(e=`primary`,t=`solid`,n=`md`){if(!Lo.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!zo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Ro[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var Vo=`INR`,Ho=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),Uo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Wo=(e=`INR`)=>Ho[e]??`${e} `,Go={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},Ko=n({IST_OFFSET_MS:()=>qo,IST_TIME_ZONE:()=>W,isTimeZone:()=>Xo,nowIn:()=>rs,todayIn:()=>ns,wallClockOf:()=>ts,wallToInstant:()=>$o,zoneOffsetMs:()=>Qo,zoneParts:()=>Zo}),W=`Asia/Kolkata`,qo=198e5,Jo=new Map;function Yo(e){let t=Jo.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Jo.set(e,t)),t}function Xo(e){if(typeof e!=`string`||e===``)return!1;try{return Yo(e),!0}catch{return!1}}function Zo(e,t=W){if(t===`Asia/Kolkata`){let t=new Date(e+qo);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(Yo(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function Qo(e,t=W){if(t===`Asia/Kolkata`)return qo;let n=Zo(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function $o(e,t=W){let n=e-Qo(e,t);return n=e-Qo(n,t),n}var es=e=>e instanceof Date?e.getTime():e;function ts(e,t=W){return new Date(e+Qo(e,t)).toISOString().slice(0,19)}function ns(e=W,t=Date.now()){return ts(es(t),e).slice(0,10)}function rs(e=W,t=Date.now()){let n=es(t);return new Date(n+Qo(n,e))}var is=n({CURRENCIES:()=>os,DATE_PATTERNS:()=>ls,DURATION_UNITS:()=>cs,FORMAT_STYLES:()=>as,IST_OFFSET_MS:()=>qo,IST_TIME_ZONE:()=>W,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>ss,compactFormatOf:()=>Ws,emptyValueLabel:()=>G,formatCompact:()=>Ls,formatCurrency:()=>Fs,formatDate:()=>J,formatDateTime:()=>Gs,formatDayShort:()=>Hs,formatDuration:()=>Bs,formatNumber:()=>K,formatPercent:()=>Rs,formatValue:()=>Us,isMoneyUnit:()=>us,istParts:()=>Vs,monthLabel:()=>_s,monthLongLabel:()=>vs,paiseToRupeeText:()=>js,timeZoneLabel:()=>Js,toInstant:()=>q,weekdayLabel:()=>ys}),as=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],os=[`INR`,`USD`,`EUR`,`GBP`],ss=[`rupees`,`paise`],cs=[`ms`,`s`,`min`,`h`],ls=[`day`,`month`,`year`,`datetime`,`time`];function us(e){return ss.some(t=>t===e)}var ds=()=>M(`formatters`,Go),G=()=>ds().emptyValueLabel,fs=`−`,ps=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],ms=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],hs={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},gs=(e,t)=>ds()[A(e[t],`no date name at index ${t}`)],_s=e=>gs(ps,e),vs=e=>gs(ms,e);function ys(e,t){return gs(hs[t],e)}var bs=(e,t)=>A(e[t],`no compact unit at index ${t}`),xs=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],Ss=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],Cs=e=>!e||e===`INR`?`en-IN`:`en-US`,ws=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,Ts=new Map,Es=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ts.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),Ts.set(n,r)),r},Ds=new Map,Os=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ds.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Ds.set(n,r)),r},ks=e=>typeof e==`number`&&Number.isFinite(e),As=e=>e<0&&!Object.is(Math.abs(e),0)?fs:``;function js(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var Ms=(e,t)=>t===`paise`?Number(js(e)):e,Ns=2,Ps=(e,t,n)=>{let r=Math.min(t,Ns),i=10n**BigInt(Ns-r),a=(BigInt(js(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Os(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function K(e,{decimals:t}={}){if(!ks(e))return G();let n=Es(ws(t,2)).format(Math.abs(e));return n===`0`?`0`:As(e)+n}function Fs(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!ks(e))return G();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=ws(r,0),o=Cs(i),s=n===`paise`?Ps(Math.abs(e),a,o):Os(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:As(e))+Wo(i)+s}var Is=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ls(e,{currency:t,unit:n=`rupees`}={}){if(!ks(e))return G();let r=t?Ms(e,n):e,i=t?Wo(t):``,a=t?Cs(t):`en-IN`,o=a===`en-IN`?xs:Ss,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Es(Is(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:As(r))+i+e;c=o.length-1}let[l,u]=bs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=bs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${As(r)}${i}${Es(f,a).format(p)} ${u}`}function Rs(e,{decimals:t}={}){return ks(e)?`${K(e*100,{decimals:ws(t,1)})}%`:G()}var zs={ms:1,s:1e3,min:6e4,h:36e5};function Bs(e,{unit:t=`s`}={}){if(!ks(e))return G();let n=zs[t]??1e3,r=Math.abs(e*n),i=As(e);if(Math.round(r)<1e3)return`${i}${Es(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Es(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${Es(0).format(l)}h ${s(c%60)}m`}function q(e,t=W){if(e instanceof Date)return e.getTime();if(ks(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?$o(a.getTime(),t):NaN}return Date.parse(e)}function Vs(e,t=W){let{year:n,month:r,day:i,hour:a,minute:o}=Zo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function J(e,{pattern:t=`day`,timeZone:n=W}={}){let r=q(e,n);if(!Number.isFinite(r))return G();let i=Vs(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${_s(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${_s(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Hs(e,{timeZone:t=W}={}){let n=q(e,t);if(!Number.isFinite(n))return G();let r=Vs(n,t);return`${String(r.day).padStart(2,`0`)}-${_s(r.month)}`}function Us(e,t){if(e==null||e===``)return G();let n=t?.style;if(n===`date`)return J(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return Fs(e,{...t,currency:t?.currency??``});case`percent`:return Rs(e,t);case`compact`:return Ls(e,t);case`duration`:return Bs(e,t);default:return K(e,t)}}function Ws(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Gs(e,{timeZone:t=W}={}){let n=q(e);if(!Number.isFinite(n))return G();let r=Object.fromEntries(qs(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${_s(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Ks=new Map;function qs(e){let t=Ks.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Ks.set(e,t)),t}function Js(e=W){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Ys=n({DISPLAY_FORMAT:()=>tc,MONTH_DISPLAY_FORMAT:()=>ac,YEAR_DISPLAY_FORMAT:()=>lc,clampMonth:()=>fc,daysIn:()=>dc,firstWeekday:()=>Zs,fmt:()=>nc,fmtMonth:()=>oc,fmtYear:()=>uc,pad:()=>Qs,parseIso:()=>ec,parseIsoMonth:()=>rc,parseIsoYear:()=>sc,toIso:()=>$s,toIsoMonth:()=>ic,toIsoYear:()=>cc}),Xs=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},Zs=e=>Xs(e.getAttribute(`first-day`))??Xs(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Qs=e=>String(e).padStart(2,`0`),$s=(e,t,n)=>`${e}-${Qs(t+1)}-${Qs(n)}`,ec=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>dc(a,o-1)?null:{y:a,m:o-1,d:s}},tc=`dd-MMM-yyyy`,nc=(e,t=tc)=>{let n=ec(e);if(!n)return``;let r={yyyy:n.y,MMMM:vs(n.m),MMM:_s(n.m),MM:Qs(n.m+1),dd:Qs(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},rc=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},ic=(e,t)=>`${e}-${Qs(t+1)}`,ac=`MMM yyyy`,oc=(e,t=ac)=>{let n=rc(e);if(!n)return``;let r={yyyy:n.y,MMMM:vs(n.m),MMM:_s(n.m),MM:Qs(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},sc=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},cc=e=>String(e).padStart(4,`0`),lc=`yyyy`,uc=(e,t=lc)=>{let n=sc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},dc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},fc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},pc=n({COPY_FEEDBACK_MS:()=>mc,copyTextToClipboard:()=>hc}),mc=2e3;async function hc(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var gc=n({DATA_TABLE_TEXT:()=>_c}),_c={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},vc=n({COLUMN_MAX_WIDTH:()=>bc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Bc,PIN_SIDES:()=>Cc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Tc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>$c,ROW_SAVE_ERROR_CLASS:()=>el,ROW_SAVE_STATES:()=>Qc,ROW_STATUS_CLASS:()=>tl,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Nc,groupCount:()=>Mc,groupItems:()=>Pc,groupRowsText:()=>Oc,identityCell:()=>nl,measureRows:()=>Yc,notSavedText:()=>jc,paintSaveStatus:()=>al,pinAtValue:()=>Vc,pinClasses:()=>Uc,pinOffsetVar:()=>zc,planPins:()=>Hc,playRowMoves:()=>Xc,readColumnWidths:()=>Lc,resizeName:()=>Ec,rowLabel:()=>rl,rowOrderChanged:()=>Zc,saveOutcomeText:()=>cl,savedManyText:()=>Ac,savedText:()=>kc,setRowSaveState:()=>ol,settledRows:()=>sl,virtualRange:()=>Fc,widthText:()=>Dc,writeColumnWidths:()=>Rc}),yc=48,bc=1200,xc=10,Sc=50,Cc=[`start`,`end`],wc=8,Tc={comfortable:72,cozy:48,compact:40},Y=()=>M(`dataTable`,_c),Ec=e=>e?N(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Dc=e=>N(Y().resizeText,{px:e}),Oc=e=>it(Y(),`groupRows`,e,{count:K(e,{decimals:0})}),kc=e=>e?N(Y().savedText,{label:e}):Y().rowSavedText,Ac=e=>N(Y().rowsSavedText,{n:K(e,{decimals:0})}),jc=(e,t)=>`${e?N(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,Mc=e=>K(e,{decimals:0}),Nc=e=>Math.min(bc,Math.max(48,Math.round(Number(e)||0)));function Pc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Fc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Tc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var Ic=e=>`wui-widths:${e}`;function Lc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Ic(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Nc(r));return n}catch{return{}}}function Rc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Ic(e),JSON.stringify(t)):window.localStorage.removeItem(Ic(e))}catch(e){if(!(e instanceof DOMException))throw e}}var zc=(e,t)=>`--wui-pin-${e}-${t}`,Bc=`--wui-pin-at`,Vc=(e,t)=>`var(${zc(e,t)}, 0px)`;function Hc(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var Uc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Wc=200,Gc=220,Kc=`cubic-bezier(0.22, 1, 0.36, 1)`,qc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Jc=e=>e.getAttribute(`data-row-key`)??e;function Yc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Jc(e),e.offsetTop);return n}function Xc(e,t){let n=[...e];if(!t||n.length>200||qc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Jc(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:Kc}),r++)}return r}function Zc(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var Qc=[`saving`,`error`,`saved`],$c=`data-wui-save-state`,el=`wui-row-save-error`,tl=`wui-row-status`,nl=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function rl(e){let t=nl(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function il(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=Y();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function al(e,t){e.querySelector(`:scope > * > .${tl}`)?.remove();let n=t===null?null:il(e,t),r=n===null?null:nl(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${tl} ${tl}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function ol(e,t,n=``){if(t!==null&&!Qc.includes(t))throw Error(`A row's save state is ${Qc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${el}`)?.remove(),t===null?e.removeAttribute($c):e.setAttribute($c,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),al(e,t);let r=t===`error`&&n?nl(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=el,t.textContent=n,r.append(t)}}function sl(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function cl(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(kc(r.label)):t.length>1&&n.push(Ac(t.length));for(let t of e)t.ok||n.push(jc(t.label,t.message));return n.join(` `)}var ll=n({isDrawn:()=>ul});function ul(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var dl=n({MENTION_ID_PATTERN:()=>fl,mentionLabel:()=>hl,mentionTextFromValue:()=>vl,mentionValueFromText:()=>yl,mentionedIds:()=>bl,parseMentionValue:()=>_l}),fl=/^[A-Za-z0-9_.:-]{1,64}$/,pl=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,ml=/@(\\*)\[/g;function hl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var gl=e=>e.replace(ml,(e,t)=>`@\\${t}[`);function _l(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(pl))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function vl(e){let t=``,n=[];for(let r of _l(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function yl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!fl.test(e.id)||(i+=gl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+gl(n.slice(a))}function bl(e){let t=[];for(let n of _l(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var xl=n({bindMenuKeys:()=>El}),Sl=500,Cl=10,wl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Tl(e){return e instanceof HTMLElement?wl.has(e.tagName)||e.isContentEditable:!1}function El(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(ul),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Tl(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+Cl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-Cl,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,Sl);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var Dl=n({NOTIFICATION_CENTRE_TEXT:()=>Ol}),Ol={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},kl=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Rl,notificationCountText:()=>Nl,notificationDayHeading:()=>Ll,notificationTime:()=>Il,notificationTriggerLabel:()=>Pl,notificationUnreadAnnouncement:()=>Fl}),Al=99,jl=864e5,Ml=()=>M(`notificationCentre`,Ol);function Nl(e){return e>99?`99+`:String(e)}function Pl(e,t){return t===0?e:`${e}, ${Nl(t)} ${Ml().unreadWordLabel}`}function Fl(e){return e===0?Ml().noneUnreadText:it(Ml(),`unreadAnnouncementText`,e,{unread:Nl(e)})}function Il(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:J(e,{pattern:`time`})}function Ll(e,t=Date.now()){let n=J(e);return n===J(t)?Ml().todayLabel:n===J(q(t)-jl)?Ml().yesterdayLabel:n}function Rl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(q(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=J(r.at),i=n.get(e);i||(i={key:e,heading:Ll(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var zl={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},Bl=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>ql,relativeTimeTitle:()=>Jl}),Vl=6e4,Hl=60*Vl,Ul=24*Hl,Wl=()=>M(`relativeTime`,zl),Gl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Kl={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function ql(e,t=Date.now()){let n=q(e);if(!Number.isFinite(n))return G();let r=t-n,i=Math.abs(r);if(i>=7*Ul)return J(n);if(i<Vl)return Wl().justNowText;let[a,o]=i<Hl?[Math.floor(i/Vl),`minute`]:i<Ul?[Math.floor(i/Hl),`hour`]:[Math.floor(i/Ul),`day`];return it(Wl(),(r>0?Gl:Kl)[o],a)}function Jl(e){let t=q(e);return Number.isFinite(t)?`${J(t,{pattern:`datetime`})} IST`:G()}var Yl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>Zl,scrollTopToReveal:()=>$l,windowRange:()=>Ql}),Xl=.5;function Zl(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=Xl||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=Xl?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function Ql(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function $l(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var eu=n({WuiPostError:()=>tu}),tu=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),P(this,`code`,void 0),P(this,`status`,void 0),P(this,`html`,void 0),P(this,`body`,void 0),P(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},nu=n({forgetShell:()=>au,registerShell:()=>iu,wiredShell:()=>ou}),ru=new WeakMap;function iu(e,t){ru.set(e,t)}function au(e){ru.delete(e)}function ou(e){let t=e?.closest(`[data-app-shell]`);return(t&&ru.get(t))??null}var su=n({wuiUpload:()=>uu}),cu=new Set([204,205,304]),lu=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function uu(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[sa]:`1`,...n.headers};if(da(e)){let e=ua();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?xa(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(xa(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=lu(c.getAllResponseHeaders()),r=fa(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(U.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(cu.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var du=n({deriveStepStatus:()=>fu,stepperHeaderItems:()=>pu});function fu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function pu(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var mu={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},hu=n({GROUP_SELECT_CLASS:()=>_u,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Du,addSelectColumn:()=>Ou,attachShiftRange:()=>Mu,createGroupSelectCell:()=>Su,createSelectHeaderCell:()=>yu,createSelectRowCell:()=>bu,createSelectSpacerCell:()=>xu,groupRowsOf:()=>Cu,syncGroupSelect:()=>Au,syncSelectAll:()=>ku}),gu=()=>M(`tableSelect`,mu),X=`wui-select-cell`,_u=`wui-group-select`,vu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function yu(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(vu(e,gu().selectAllLabel)),t}function bu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=vu(e,gu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function xu(e=document){let t=e.createElement(`td`);return t.className=X,t}function Su(e,t){let n=e.createElement(`td`);return n.className=`${X} ${_u}`,n.appendChild(vu(e,N(gu().selectGroupLabel,{group:t}))),n}function Cu(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var wu=e=>e.firstElementChild?.classList.contains(X),Tu=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Eu=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Du(e){for(let t of e){if(wu(t)||Tu(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(bu(t.ownerDocument,{disabled:e}),t.firstChild)}}function Ou(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;wu(t)||t.insertBefore(yu(e.ownerDocument),t.firstChild),Du(Eu(e,`tbody tr`,HTMLTableRowElement));for(let t of Eu(e,`tfoot tr`,HTMLTableRowElement))wu(t)||t.insertBefore(xu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function ku(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=Eu(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of Eu(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Au(e){for(let t of Eu(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${_u} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=Cu(t).flatMap(e=>Eu(e,`.${X} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var ju=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function Mu(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=Eu(e,ju,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Nu=n({DATE_PICKER_TEXT:()=>Pu}),Pu={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Fu=n({DRAWER_TEXT:()=>Iu}),Iu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Lu=n({matchSegments:()=>Ru});function Ru(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var zu=n({TOOLTIP_ATTRIBUTE:()=>Bu,TOOLTIP_CLASS_ATTRIBUTE:()=>Hu,TOOLTIP_ID_ATTRIBUTE:()=>Uu,TOOLTIP_OPEN_ATTRIBUTE:()=>Wu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Vu,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Gu,showPinnedTooltips:()=>qu,wireTooltips:()=>Ku}),Bu=`data-wui-tooltip`,Vu=`data-wui-tooltip-placement`,Hu=`data-wui-tooltip-class`,Uu=`data-wui-tooltip-id`,Wu=`data-wui-tooltip-open`,Gu=`data-wui-tooltip-shortcut`;function Ku(e){Zu.has(e)||(Zu.add(e),e.addEventListener(`pointerover`,t=>{let n=nd(t.target);n&&!id(e,n)&&sd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||cd(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=nd(n);r&&!id(e,r)&&sd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||cd(e,n))}),e.addEventListener(`click`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&cd(e,n)}))}function qu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Wu}]`))sd(t,n,!0)}var Ju=[`top`,`bottom`,`start`,`end`],Yu=`wui-tooltip`,Xu=`[${Bu}], [${Uu}]`,Zu=new WeakSet,Qu=new WeakMap;function $u(e){let t=Qu.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ld(e))}},Qu.set(e,t)),t}function ed(e){return Ju.includes(e)}function td(e){return e===`auto`||ed(e)}function nd(e){if(!(e instanceof Element))return null;let t=e.closest(Xu);return t instanceof HTMLElement?t:null}function rd(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function id(e,t){return rd($u(e),t)!==void 0}function ad(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function od(e,t){return t.bubble||=ad(e,Yu),t.bubble}function sd(e,t,n){let r=t.getAttribute(Bu),i=t.getAttribute(Uu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Bu} or ${Uu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Bu} or ${Uu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!td(a))throw Error(`${Vu} "${a}" is not auto, top, bottom, start or end`);let o=$u(e);cd(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?ad(e,`${Yu}-pinned-${++o.pinnedCount}`):od(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(Gu);i.inner.replaceChildren(r??``,...l?[j(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>w(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});Ie(e).append(s),s.showPopover(),f();let p=Le(e=>{s.parentElement!==e&&e.append(s),Pe(s),f()},e),m=new MutationObserver(()=>{t.isConnected||cd(e,rd($u(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function cd(e,t){if(!t)return;let n=$u(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function ld(e){let t=$u(e);cd(e,t.transient);for(let n of[...t.pinned.values()])cd(e,n)}var ud=Object.freeze({anchorOverlay:d,avatarNode:Zt,buttonClass:Fo,calendarMath:Ys,copyText:pc,dataTable:vc,dataTableText:gc,datePickerText:Nu,defineElement:r,devWarn:en,dom:ze,drawerText:Fu,elementBase:a,fieldState:rn,flash:Gi,formatters:is,formMirror:cn,glyphs:tr,hasOwn:mn,httpFailureText:uo,iconGlyphs:tr,imeSafeEnter:gr,isDrawn:ll,listboxKeyNav:yr,loader:xn,mentionText:dl,menuKeyNav:xl,nativeOverlay:ne,notificationCentreText:Dl,notificationDays:kl,optionLabel:Cr,partRegistry:Qr,postError:eu,refreshAfter:Ra,regions:wa,relativeTime:Bl,rtl:c,selectList:Pr,selectRemote:ii,selectText:Mr,selectWindow:Yl,server:po,serverHtml:Qi,serverTableRegistry:Na,shellRegistry:nu,shortcutKeys:dt,stepperHeader:du,svgNodes:Yn,tableExport:Mi,tableSelect:hu,textMatch:Lu,textStore:He,toastAction:ro,toastHeader:Bi,tooltips:zu,wuiHost:ea,wuiHttp:na,wuiUpload:su,WuiSelect:li,zone:Ko}),dd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},fd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,pd=10,md=512,hd=`image/webp`,gd=[96,48];function _d(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function vd(e){let t=M(`imagePicker`,dd);return _d(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function yd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:hd,size:Number.isInteger(n)&&n>0?n:512}}var bd=`/`,xd=`.search-wrap.wui-search-collapsible`,Sd=`.wui-topsearch-panel`,Cd=`.modal, wui-drawer[open]`,wd=new WeakSet,Td=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Ed=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Dd=e=>[...e.querySelectorAll(xd)].filter(e=>e instanceof HTMLElement);function Od(e){e.classList.remove(`is-collapsed`),Td(e)?.setAttribute(`aria-expanded`,`true`),Ed(e)?.focus()}function kd(e){Ed(e)?.value||(e.classList.add(`is-collapsed`),Td(e)?.setAttribute(`aria-expanded`,`false`))}function Ad(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=Td(e),n=Ed(e);t?.addEventListener(`click`,()=>Od(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),kd(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||kd(e)})}function jd(e){wd.has(e)||(wd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Ot(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(Cd)||e.querySelector(Sd))return;let n=Dd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),Od(n))}))}function Md(e=document){let t=e;for(let e of Dd(t))Ad(e);jd(e instanceof Element?e.ownerDocument:e)}var Nd=`data-wui-command-shortcut`,Pd=`k`,Fd=new WeakSet,Id=/ \(Ctrl\+([^)]+)\)$/;function Ld(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Rd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function zd(e){return e.nodeType===Node.DOCUMENT_NODE}function Bd(e){e.closest(`wui-modal`)?.show()}function Vd(e){if(Ld())for(let t of e.querySelectorAll(`[${Nd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Id,(e,t)=>` (⌘${t})`))}}function Hd(e){let t=zd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Vd(t),Fd.has(t)||(Fd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${Nd}]`))if(Rd(e,n.getAttribute(`data-wui-command-shortcut`)||Pd)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Bd(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var Ud={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},Z=()=>M(`fileValidation`,Ud),Wd=`image/png,image/jpeg,image/webp`,Gd=5,Kd={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},qd={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},Jd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Yd=new Set([`image/*`,`video/*`,`audio/*`]),Xd=e=>{let t=Jd[e];return t?Z()[t]:qd[e]},Zd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Qd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function $d(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return Qd.some(e=>r.endsWith(e))}var ef=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function tf(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<ef.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[ef[n]??`gigabyteLabel`]}`}function nf(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function rf(e){let t=Zd(e);return t.length?t.every(e=>e.startsWith(`.`)?Qd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function af(e){let t=[];for(let n of Zd(e)){let e=Xd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:N(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function of(e,t){let n=Zd(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(Kd[e]||[]).some(e=>i.endsWith(e)))}function sf(e,t={}){if(!e)return null;let n=t.accept===void 0?Wd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!of(e,n)){let e=af(n),t=Zd(n).map(e=>Yd.has(e));return t.every(Boolean)?N(Z().chooseText,{label:e}):t.some(Boolean)?N(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):N(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?N(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function cf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=sf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function lf(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=cf(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var uf={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},df=/[0-9]/,ff={9:df,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},pf=/[9A*]/,mf=new Set([`text`,`tel`,`search`,`url`,`password`]),hf=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},gf=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},_f=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,vf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>M(`inputMask`,uf);function yf(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=ff[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===df)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function bf(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)df.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=_f(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var xf={"phone-in":()=>yf(`99999 99999`,{normalize:hf,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>yf(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>yf(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Q().gstinMessage}),aadhaar:()=>yf(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>yf(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>yf(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>yf(`99-99-9999`,{normalize:vf,valid:gf,post:(e,t)=>e.length===8&&gf(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:bf},Sf=Object.keys(xf),Cf=e=>{let t=String(e).toLowerCase();return hn(xf,t)?t:void 0},wf=e=>pf.test(String(e))&&Cf(e)===void 0,Tf=new Map;Qe(()=>Tf.clear());function Ef(e){if(e==null||e===``)return null;let t=String(e),n=Tf.get(t);return n===void 0&&(n=wf(t)?yf(t):hn(xf,t)?xf[t]?.()??null:null,Tf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Df(e,t){let n=Ef(e);return n?n.extract($(n,String(t??``))):String(t??``)}function Of(e,t){let n=Ef(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function kf(e,t){let n=Ef(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Af=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},jf=new WeakMap,Mf=e=>jf.get(e)?.(),Nf=new WeakMap;function Pf(e,t,n,r){let i=e.getAll(t),a=Nf.get(e)??new Set;Nf.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function Ff(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function If(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Ef(t);if(!a||!mf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??Ff(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&mf.has(e.type))){let t=Af(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>A(x.get,`input value getter missing`).call(e),set:t=>{if(A(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},C=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},ee=()=>{p=!0},w=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},te=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},T=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},ne=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},E=()=>{m=!0,v()};e.addEventListener(`input`,C),e.addEventListener(`beforeinput`,te),e.addEventListener(`paste`,T),e.addEventListener(`compositionstart`,ee),e.addEventListener(`compositionend`,w),e.addEventListener(`blur`,E),e.addEventListener(`invalid`,E);let D=e.form,O=t=>{e.name&&!e.disabled&&Pf(t.formData,e.name,e.value,ne())},re=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(D?.addEventListener(`formdata`,O),jf.set(e,ne)),D?.addEventListener(`reset`,re),D?.addEventListener(`submit`,E);let ie=$(a,e.value);return y(ie,ie.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,C),e.removeEventListener(`beforeinput`,te),e.removeEventListener(`paste`,T),e.removeEventListener(`compositionstart`,ee),e.removeEventListener(`compositionend`,w),e.removeEventListener(`blur`,E),e.removeEventListener(`invalid`,E),D?.removeEventListener(`formdata`,O),D?.removeEventListener(`reset`,re),D?.removeEventListener(`submit`,E),jf.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function Lf(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Mf(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Rf=new WeakMap,zf,Bf=e=>{Rf.has(e)||Rf.set(e,If(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},Vf=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Hf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...Vf(e)]:[];function Uf(){zf||typeof MutationObserver>`u`||(zf=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Hf(e))Rf.get(t)?.(),Rf.delete(t);for(let e of t.addedNodes)for(let t of Hf(e))Bf(t)}}),zf.observe(document.documentElement,{childList:!0,subtree:!0}))}function Wf(e=document){Lf();for(let t of Vf(e))Bf(t);e===document&&Uf()}var Gf=`data-wui-bulk-in-bar`,Kf=`[data-wui-page-header-bar][data-wui-bulk-for]`,qf=new WeakSet;function Jf(e){return`${K(e,{decimals:0})} selected`}function Yf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Xf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function Zf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function Qf(e,t){for(let n of Zf(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?Jf(t):``}function $f(e=document){for(let t of Zf(e,Kf))Yf(t)?.setAttribute(Gf,``);qf.has(document)||(qf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Xf(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of Zf(document,Kf))Yf(n)?.contains(t)&&Qf(n,e.detail.selected)}))}var ep={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},tp={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},np=()=>M(`passwordRules`,ep);function rp(e){return e===!0||e==null?{...tp}:{...tp,...e}}function ip(e){let t=rp(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:N(np().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:np().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:np().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:np().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:np().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:it(np(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function ap(e,t){let n=e==null?``:String(e);return ip(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function op(e,t){return ap(e,t).every(e=>e.met)}var sp={moveLabel:`Move to`,moveText:`Move to {label}`},cp=`wui:row-drop`,lp=`is-drop-over`,up=`application/x-wui-rows`,dp=`wui-row-dragging`,fp=`[data-wui-drop-target]`,pp=`tbody tr[data-row-key]`,mp=`input, button, a, select, textarea, label`,hp=`.wui-select-cell .form-check-input`,gp=new WeakMap,_p=new WeakSet,vp=null,yp=null;function bp(e){let t=e.querySelector(hp);return t instanceof HTMLInputElement&&t.checked}function xp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&bp(n)&&t.push(n.dataset.rowKey);return t}function Sp(e,t){return Ve(e,t)}function Cp(e,t){let n=Sp(e,t);return n instanceof HTMLElement?n:null}function wp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var Tp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Ep(){vp=null,document.body.classList.remove(dp);for(let e of document.querySelectorAll(`${fp}.${lp}`))e.classList.remove(lp)}function Dp(e,t,n){e.dispatchEvent(new CustomEvent(cp,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Op(e){let t=Cp(e.target,fp);if(!t||!vp)return;e.preventDefault();let n=A(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(lp)}function kp(e){let t=Cp(e.target,fp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(lp)}function Ap(e){let t=Cp(e.target,fp);if(!t||!vp)return;e.preventDefault(),t.classList.remove(lp);let{root:n,keys:r}=vp;Dp(n,r,t),Ep()}function jp(e){let t=Cp(e.target,fp);t&&yp?.keys.length&&(e.preventDefault(),Dp(yp.root,yp.keys,t))}function Mp(e){(vr(e)||e.key===` `)&&jp(e)}function Np(e){_p.has(e)||(_p.add(e),e.addEventListener(`dragover`,Op),e.addEventListener(`dragenter`,Op),e.addEventListener(`dragleave`,kp),e.addEventListener(`drop`,Ap),e.addEventListener(`click`,jp),e.addEventListener(`keydown`,Mp))}function Pp(e){let t=gp.get(e);if(t)return t;Np(e.ownerDocument||e);let n=t=>{let n=Cp(t.target,pp);if(!n||!e.contains(n))return;let r=Sp(t.target,mp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=Cp(t.target,pp);if(!n||!e.contains(n))return;let r=bp(n)?xp(e):[n.dataset.rowKey],i=A(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(up,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,vp={root:e,keys:r},document.body.classList.add(dp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(Tp(n)){let{keys:t}=n;n.selected>0?yp={root:e,keys:Array.isArray(t)?t:xp(e)}:n.selected===0&&(yp=null)}Ip(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Ep),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Ep),e.removeEventListener(`selectionchange`,i),gp.delete(e)};return gp.set(e,a),a}var Fp=()=>M(`rowDrop`,sp);function Ip(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${hp}:checked`)!==null;for(let n of e.querySelectorAll(fp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||wp(n);n.setAttribute(`aria-label`,N(Fp().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,Fp().moveLabel))}function Lp(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&Pp(t);Ip(e.ownerDocument||e)}var Rp=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,zp=1;function Bp(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>zp&&n>zp),e.toggleAttribute(`data-wui-overflow-end`,t>zp&&n<t-zp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>zp)},n=()=>{if(e.scrollWidth-e.clientWidth>zp){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var Vp=new WeakMap,Hp,Up=e=>{Vp.has(e)||Vp.set(e,Bp(e))},Wp=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(Rp)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Gp(){Hp||typeof MutationObserver>`u`||(Hp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Wp(e))Vp.get(t)?.(),Vp.delete(t);for(let e of t.addedNodes)for(let t of Wp(e))Up(t)}}),Hp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Kp(e=document){for(let t of e.querySelectorAll(Rp))t instanceof HTMLElement&&Up(t);e===document&&Gp()}var qp=new WeakSet;function Jp(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!qi(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Ki.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&co(n,t)}}function Yp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!qp.has(t)){qp.add(t);let e=Zi();e&&co(e.message,e.variant,e.action)}Jp(e)}var Xp=`data-wui-submit-once`,Zp=`data-wui-submit-pending`,Qp=`wui-submit-spinner`,$p=new WeakSet,em=new WeakMap;function tm(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function nm(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${Qp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${Qp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function rm(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${Qp}`)?.remove()}function im(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function am(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!im(t))return;if(t.hasAttribute(Zp)){e.preventDefault();return}t.setAttribute(Zp,``);let n=tm(e.submitter);setTimeout(()=>{t.hasAttribute(Zp)&&(e.defaultPrevented?t.removeAttribute(Zp):n&&(n.disabled=!0,nm(n),em.set(t,n)))},0)}var om=e=>[...e.querySelectorAll(`form[${Zp}]`)].filter(e=>e instanceof HTMLFormElement);function sm(e){for(let t of om(e)){t.removeAttribute(Zp);let e=em.get(t);e&&(e.disabled=!1,rm(e),em.delete(t))}}function cm(e){let t=e.ownerDocument===null?e:e.ownerDocument;$p.has(t)||($p.add(t),t.addEventListener(`submit`,am,!0),t.defaultView?.addEventListener(`pageshow`,()=>sm(t)))}var lm=[`light`,`dark`,`auto`],um=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],dm=`fade`,fm=`theme`,pm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},mm=`wui-theme-switching`,hm=`wui:theme:change`,gm=`(prefers-color-scheme: dark)`,_m=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,vm=e=>lm.some(t=>t===e);function ym(e){return e===`dark`||e===`auto`&&_m(gm)?`dark`:`light`}function bm(e=fm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return vm(t)?t:`auto`}function xm(e,t=fm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function Sm(e){let t=document.documentElement,n=ym(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(hm,{detail:{mode:n,preference:e}}))}var Cm=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function wm(e=fm){return`${Cm}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function Tm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Em(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(gm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Dm=60,Om=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,km=e=>e.toFixed(1),Am=(e,t)=>`${km(e)}px ${km(t)}px`,jm={amplitude:22,segments:36,cycles:1.5,ripples:2},Mm=6,Nm=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=jm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Am(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Am(n,i))}return d.push(Am(e,u)),`polygon(${d.join(`, `)})`},Pm=(e,t,n,r)=>{let i=t/Mm,a=[];for(let t=0;t<Mm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Am(0,c),Am(e,c),Am(e,l),Am(0,l))}return`polygon(${a.join(`, `)})`};function Fm(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Dm;r++){let s=r/Dm,c=Om(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${km(a*c)}px at ${km(e)}px ${km(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${km(e)}px 0px 0px 0px)`:`inset(0px 0px ${km(e)}px 0px)`});break}case`blinds`:o.push({clipPath:Pm(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:Nm(t,n,c,s*jm.ripples*2*Math.PI,a)})}}return o}var Im=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||nn(`[@webority/ui-elements] The theme view transition failed:`,e)};function Lm(e,{effect:t=dm,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||_m(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(mm);let s=document.startViewTransition(e),c=i??pm[t]??pm.fade;return s.ready.then(()=>{let e=Fm(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(Im),s.finished.catch(Im).finally(()=>a.classList.remove(mm)).then(()=>!0)}function Rm(){Yt(),i(`wui-select`,pi),i(`wui-modal`,Xt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.191.0`,modules:ud}),Ri(),zn(),Ao(),Rm(),e.AVATAR_ACCEPT=fd,e.AVATAR_MAX_SIZE_MB=pd,e.AVATAR_OUTPUT_SIZE=md,e.AVATAR_OUTPUT_TYPE=hd,e.AVATAR_PREVIEW_SIZES=gd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Gf,e.COLUMN_MAX_WIDTH=bc,e.COLUMN_MIN_WIDTH=yc,e.COMMAND_SHORTCUT_ATTRIBUTE=Nd,e.COPY_FEEDBACK_MS=mc,e.CSRF_META_NAME=ra,e.CURRENCIES=os,e.CURRENCY_SYMBOLS=Ho,e.DATE_PATTERNS=ls,e.DEFAULT_CSRF_HEADER=ia,e.DEFAULT_CURRENCY=Vo,e.DEFAULT_IMAGE_ACCEPT=Wd,e.DEFAULT_MAX_SIZE_MB=Gd,e.DEFAULT_PASSWORD_RULES=tp,e.DEFAULT_THEME_EFFECT=dm,e.DEFAULT_THEME_STORAGE_KEY=fm,e.DROP_OVER_CLASS=lp,e.DURATION_UNITS=cs,e.FILTER_POPOVER_MAX_CHIPS=Lt,e.FLASH_STORAGE_KEY=Ji,e.FLASH_VARIANTS=Ki,e.FORMAT_STYLES=as,e.GROUP_SELECT_CLASS=_u,e.HTTP_KINDS=ca,e.IST_TIME_ZONE=W,e.MASK_INPUT_TYPES=mf,e.MASK_NAMES=Sf,e.MENTION_ID_PATTERN=fl,e.MONEY_UNITS=ss,e.NOTIFICATION_COUNT_CAP=Al,e.PIN_AT_VAR=Bc,e.PIN_SIDES=Cc,e.RESIZE_STEP=xc,e.RESIZE_STEP_LARGE=Sc,e.ROW_DRAG_TYPE=up,e.ROW_DROP_EVENT=cp,e.ROW_HEIGHTS=Tc,e.ROW_MOVE_LIMIT=Wc,e.ROW_MOVE_MS=Gc,e.ROW_SAVE_ATTR=$c,e.ROW_SAVE_ERROR_CLASS=el,e.ROW_SAVE_STATES=Qc,e.SCROLL_EDGE_SELECTOR=Rp,e.SEARCH_OPEN_KEY=bd,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=pt,e.SHORTCUT_EVENT=ht,e.SHORTCUT_SCOPE_ATTRIBUTE=mt,e.SUBMIT_ONCE_ATTRIBUTE=Xp,e.THEME_BOOT_SCRIPT_BODY=Cm,e.THEME_CHANGE_EVENT=hm,e.THEME_EFFECTS=um,e.THEME_EFFECT_DURATION=pm,e.THEME_MODES=lm,e.THEME_SWITCHING_CLASS=mm,e.TOAST_ACTION_METHODS=Vi,e.TOAST_ACTION_MS=io,e.VIRTUAL_OVERSCAN=wc,e.WUI_HEADERS=U,e.WuiPostError=tu,e.WuiSelect=pi,e.acceptDroppedFiles=cf,e.acceptLabel=af,e.addRowSelectCells=Du,e.addSelectColumn=Ou,e.applyBarBulk=Qf,e.applyRefresh=no,e.applyTheme=Sm,e.ariaKeyShortcuts=Dt,e.attachFileDrop=lf,e.attachInputMask=If,e.attachRowDrag=Pp,e.attachScrollEdges=Bp,e.attachShiftRange=Mu,e.avatarCropOptions=yd,e.avatarUnreadableMessage=vd,e.barBulkCountText=Jf,e.buildPasswordRules=ip,e.clampColumnWidth=Nc,e.classifyStatus=fa,e.collapseSearch=kd,e.configureCsrf=oa,e.copyTextToClipboard=hc,e.createGroupSelectCell=Su,e.createRequestQueue=Ca,e.createSelectHeaderCell=yu,e.createSelectRowCell=bu,e.createSelectSpacerCell=xu,e.currencyPrefix=Wo,e.deriveStepStatus=fu,e.emptyValueLabel=G,e.evaluatePassword=ap,e.fillText=N,e.formatCompact=Ls,e.formatCurrency=Fs,e.formatDate=J,e.formatDateTime=Gs,e.formatDuration=Bs,e.formatFileSize=tf,e.formatMasked=kf,e.formatNumber=K,e.formatPercent=Rs,e.formatRelativeTime=ql,e.formatValue=Us,e.glyphNode=R,e.groupCount=Mc,e.groupItems=Pc,e.groupNotificationsByDay=Rl,e.groupRowsOf=Cu,e.identityCell=nl,e.inShortcutScope=jt,e.initCollapsibleSearch=Md,e.initCommandShortcuts=Hd,e.initFlashToasts=Yp,e.initInputMasks=Wf,e.initPageBarBulk=$f,e.initRowDrag=Lp,e.initScrollEdges=Kp,e.initSubmitOnce=cm,e.isCommandChord=Rd,e.isCurrencyCode=Uo,e.isHeicFile=_d,e.isImageFile=$d,e.isImageOnlyAccept=rf,e.isMaskPattern=wf,e.isPdfFile=nf,e.isTimeZone=Xo,e.isTypingTarget=Ot,e.loadServer=vo,e.loadShell=xo,e.loadedServer=yo,e.loadedShell=So,e.maskedPostValue=Mf,e.matchSegments=Ru,e.matchesAccept=of,e.measureRows=Yc,e.mentionLabel=hl,e.mentionTextFromValue=vl,e.mentionValueFromText=yl,e.mentionedIds=bl,e.moveFocus=Nt,e.nextTheme=Tm,e.notificationCountText=Nl,e.notificationDayHeading=Ll,e.notificationTime=Il,e.notificationTriggerLabel=Pl,e.notificationUnreadAnnouncement=Fl,e.openSearch=Od,e.parseMentionValue=_l,e.parseServerHtml=$i,e.parseToastAction=Wi,e.passwordSatisfies=op,e.pinAtValue=Vc,e.pinClasses=Uc,e.pinOffsetVar=zc,e.planPins=Hc,e.playRowMoves=Xc,e.pluralText=it,e.postedMasked=Of,e.rawMasked=Df,e.readColumnWidths=Lc,e.readCsrf=ua,e.readStoredTheme=bm,e.readText=M,e.refreshAfter=to,e.refreshRegions=Aa,e.relativeTimeTitle=Jl,e.reloadsPage=Ka,e.resolveMask=Ef,e.resolveTheme=ym,e.rowLabel=rl,e.rowOrderChanged=Zc,e.runShortcut=Mt,e.runToastAction=lo,e.saveOutcomeText=cl,e.setRowSaveState=ol,e.setText=Ze,e.settledRows=sl,e.shortcutKey=Et,e.shortcutName=Tt,e.shortcutsOff=At,e.showResultToast=so,e.showToast=co,e.stepperHeaderItems=pu,e.storeTheme=xm,e.syncGroupSelect=Au,e.syncSelectAll=ku,e.syncTargets=Ip,e.themeBootScript=wm,e.themeKeyframes=Fm,e.tickedKeys=xp,e.timeZoneLabel=Js,e.timeoutFromAttribute=ha,e.toInstant=q,e.todayIn=ns,e.transitionTheme=Lm,e.validateFile=sf,e.virtualRange=Fc,e.wallClockOf=ts,e.watchSystemTheme=Em,e.whenElementsReady=Vn,e.withTrustedLabel=Tr,e.writeColumnWidths=Rc,e.wuiFetch=Sa,e.wuiUpload=uu,e.zoneOffsetMs=Qo,e.zoneParts=Zo,e})({});
1
+ var WeborityUiElements=(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var t=Object.defineProperty,n=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},r=n({defineElement:()=>i});function i(e,t){if(typeof customElements>`u`||customElements.get(e))return;let n=[];if(typeof document<`u`)for(let r of document.querySelectorAll(e))for(let i of Object.keys(r)){let a=Object.getOwnPropertyDescriptor(t.prototype,i);if(a&&(a.set||a.get)&&(n.push([r,i,Reflect.get(r,i)]),!Reflect.deleteProperty(r,i)))throw Error(`defineElement: could not clear the early "${i}" property on <${e}>.`)}customElements.define(e,t);for(let[t,r,i]of n)if(!Reflect.set(t,r,i))throw Error(`defineElement: could not restore the "${r}" property on <${e}>.`)}var a=n({ElementBase:()=>s,NO_DOM_MESSAGE:()=>o}),o=`@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server`;if(typeof HTMLElement>`u`)throw Error(o);var s=HTMLElement,c=n({isRtl:()=>l,mirrorKey:()=>u});function l(e){return getComputedStyle(e).direction===`rtl`}function u(e,t){return t?e===`ArrowRight`?`ArrowLeft`:e===`ArrowLeft`?`ArrowRight`:e:e}var d=n({anchorOverlay:()=>w,bindReanchor:()=>te,unbindReanchor:()=>T}),f=4,p=8,m=300,h=400;function g(e,t,n){let r=t.offsetWidth,i=t.offsetHeight,a=n?e.left-f-r<f:e.right+f+r>window.innerWidth-f,o=n?!a:a,s=o?e.left-f-r:e.right+f;t.style.left=`${Math.max(f,s)}px`,t.style.top=`${Math.max(f,Math.min(e.top,window.innerHeight-i-f))}px`,t.dataset.side=o?`start`:`end`}function _(e,t){return t?e===`start`?`end`:e===`end`?`start`:e:e}var v=8,y={top:`bottom`,bottom:`top`,start:`end`,end:`start`},b=[`bottom`,`top`,`end`,`start`];function x(e,t){return e===`bottom`?window.innerHeight-t.bottom:e===`top`?t.top:e===`end`?window.innerWidth-t.right:t.left}function S(e,t,n,r){return e===`start`?t:e===`end`?n-r:t+(n-t-r)/2}function C(e,t,n){return Math.max(v,Math.min(e,t-n-v))}function ee(e,t,n,r){let i=r.gap??f,a=r.align??`start`,o=t.offsetWidth,s=t.offsetHeight,c=n===`auto`?b.reduce((t,n)=>x(n,e)>x(t,e)?n:t):n,l=c===`top`||c===`bottom`,u=(l?s:o)+i,d=x(c,e)<u&&x(y[c],e)>x(c,e)?y[c]:c,p=s;if(r.clampHeight){let n=d===`bottom`?window.innerHeight-e.bottom-i-f:d===`top`?e.top-i-f:window.innerHeight-8;n<s&&(p=Math.max(n,0),t.style.maxHeight=`${p}px`)}let m,h;if(l){h=d===`bottom`?e.bottom+i:Math.max(f,e.top-p-i);let t=S(a,e.left,e.right,o);r.flipAlign&&a===`start`&&t+o>window.innerWidth-f&&e.right-o>=f?t=e.right-o:r.flipAlign&&a===`end`&&t<f&&e.left+o<=window.innerWidth-f&&(t=e.left),m=Math.max(f,Math.min(t,window.innerWidth-o-f))}else m=Math.max(f,d===`end`?e.right+i:e.left-o-i),h=Math.max(f,Math.min(S(a,e.top,e.bottom,p),window.innerHeight-p-f));t.style.left=`${m}px`,t.style.top=`${h}px`,t.dataset.side=d;let g=r.arrow;if(g){if(l){let t=(e.left+e.right)/2-m-g.offsetWidth/2;g.style.left=`${C(t,o,g.offsetWidth)}px`}else{let t=(e.top+e.bottom)/2-h-g.offsetHeight/2;g.style.top=`${C(t,p,g.offsetHeight)}px`}}}function w(e,t,n={}){if(!e)throw Error(`anchorOverlay: missing trigger`);if(!t)throw Error(`anchorOverlay: missing panel`);t.style.position=`fixed`;let r=e.getBoundingClientRect(),i=e instanceof Element&&l(e);if(n.beside){g(r,t,i);return}if(n.side!==void 0){let e=n.clampHeight?Array.from(t.children,e=>[e,e.scrollTop]):[];t.classList.remove(`drop-up`),t.style.maxHeight=``,ee(r,t,n.side===`auto`?`auto`:_(n.side,i),n);for(let[t,n]of e)t.scrollTop=n;return}let a=n.clampHeight?t.scrollTop:0;n.clampHeight&&(t.style.maxHeight=``);let o=t.offsetHeight,s=window.innerHeight-r.bottom,c=!n.below&&s<o+f&&r.top>s;if(t.classList.toggle(`drop-up`,c),t.style.top=c?`${Math.max(f,r.top-o-f)}px`:`${r.bottom+f}px`,n.clampHeight){let e=c?r.top-8:window.innerHeight-r.bottom-8;e<o&&(t.style.maxHeight=`${Math.max(e,0)}px`),t.scrollTop=a}n.matchWidth&&(r.width>=m?(t.style.minWidth=`${r.width}px`,t.style.width=`${r.width}px`,t.style.maxWidth=`${r.width}px`):(t.style.minWidth=`${r.width}px`,t.style.width=`max-content`,t.style.maxWidth=`${Math.min(h,window.innerWidth-8)}px`));let u=t.offsetWidth;if(n.alignEnd){let e=r.right-u,n=e>=p?e:r.left,i=Math.max(p,Math.min(n,window.innerWidth-u-p));t.style.left=`${i}px`}else{let e=n.flipAlign&&r.left+u>window.innerWidth-f&&r.right-u>=f,i=Math.min(e?r.right-u:r.left,window.innerWidth-u-f);t.style.left=`${Math.max(f,i)}px`}}function te(e,t){T(e),e._reanchor=t,e._reanchorScroll=n=>{n.composedPath().includes(e)||t()},window.addEventListener(`resize`,e._reanchor),window.addEventListener(`scroll`,e._reanchorScroll,!0)}function T(e){if(!e?._reanchor)return;window.removeEventListener(`resize`,e._reanchor);let t=e._reanchorScroll;t&&window.removeEventListener(`scroll`,t,!0),e._reanchor=null,e._reanchorScroll=null}var ne=n({CLOSE_MOTION_LIMIT_MS:()=>400,CLOSING_ATTRIBUTE:()=>O,DISMISS_ATTRIBUTE:()=>D,OPEN_ATTRIBUTE:()=>E,closeAnchoredPopover:()=>Me,closeModalDialog:()=>Ae,isPopoverOpen:()=>k,onOverlayRootChange:()=>Le,openAnchoredPopover:()=>je,openModalDialog:()=>ke,overlayRoot:()=>Ie,raisePopover:()=>Pe,returnFocus:()=>Ee,setPopoverOpen:()=>Ne,wireOpenTriggers:()=>Re}),E=`data-wui-open`,D=`data-wui-dismiss`,O=`data-wui-closing`,re=`[${D}]`,ie=`[${E}]`,ae=`(prefers-reduced-motion: reduce)`,oe=`a[href],button:not([disabled]),input:not([disabled]),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex="-1"])`,se=400,ce=new WeakSet,le=new WeakSet,ue=new WeakSet,de=Symbol.for(`webority.ui.modal-stack`),fe=Symbol.for(`webority.ui.root-watches`);function pe(e){let t=e;return t[fe]??=new Set,t[fe]}var me=new WeakMap,he=new WeakMap,ge=new WeakMap;function _e(e){let t=e.querySelector(`[data-autofocus]`);if(t)return t;let n=null;for(let t of e.querySelectorAll(oe))if(!t.closest(`[hidden],[inert]`)){if(!t.closest(`${re},.wui-modal-back`))return t;n??=t}return n}function ve(e){let t=[],n=new Map;for(let r of e.querySelectorAll(oe))if(!(r.closest(`[hidden],[inert]`)||r.closest(`dialog`)!==e)&&!(r.tabIndex<0||r.getClientRects().length===0)){if(r instanceof HTMLInputElement&&r.type===`radio`&&r.name){let e=n.get(r.name);e?r.checked&&!e.checked&&(e.checked=r,t[t.indexOf(e.first)]=r):(n.set(r.name,{first:r,checked:r.checked?r:null}),t.push(r))}else t.push(r)}return t}function ye(e){return e.localName.includes(`-`)&&`show`in e&&typeof e.show==`function`}function be(e){return e.localName.includes(`-`)&&customElements.get(e.localName)===void 0}function xe(e){let t=e;return t[de]??=[],t[de]}function Se(e){Ce(e),xe(e.ownerDocument).push(e)}function Ce(e){let t=xe(e.ownerDocument),n=t.indexOf(e);n>=0&&t.splice(n,1)}function we(e){for(let t of pe(e)){let n=Ie(e);t.last!==n&&(t.last=n,t.listener(n))}}function Te(e){let t=Promise.allSettled(e.getAnimations().map(e=>e.finished));return new Promise(e=>{let n=window.setTimeout(e,400);t.then(()=>{window.clearTimeout(n),e()})})}function Ee(e,t){if(!e?.isConnected)return;let n=e.ownerDocument.activeElement;(!n||n===e.ownerDocument.body||t.contains(n))&&e.focus()}function De(e){let t=e.getBoundingClientRect();return t.bottom<0||t.right<0||t.top>window.innerHeight||t.left>window.innerWidth}function Oe(e,t){ge.get(e)?.();let n=t.ownerDocument,r=0,i=()=>{window.clearTimeout(o),window.clearTimeout(r),n.removeEventListener(`pointerdown`,i,!0),n.removeEventListener(`keydown`,i,!0),t.removeEventListener(`click`,a,!0),ge.delete(e)},a=()=>{t.removeEventListener(`click`,a,!0),r=window.setTimeout(i,0)},o=window.setTimeout(i,se);n.addEventListener(`pointerdown`,i,!0),n.addEventListener(`keydown`,i,!0),t.addEventListener(`click`,a,!0),ge.set(e,i)}function ke(e,t){let n=t.focus===`first-control`?_e(e):null,r=n??e,i=r===e&&!e.hasAttribute(`tabindex`);i&&e.setAttribute(`tabindex`,`-1`);let a=!t.escape&&!e.hasAttribute(`closedby`);a&&e.setAttribute(`closedby`,`none`),ce.add(e);let o=()=>{if(Se(e),!e.hasAttribute(`open`)){let t=n!==null&&!e.querySelector(`[autofocus]`);t&&n.setAttribute(`autofocus`,``);try{e.showModal()}catch(t){throw Ce(e),t}finally{t&&n.removeAttribute(`autofocus`)}}r.focus(),we(e.ownerDocument)},s=!1,c=n=>{if(n.key!==`Escape`||n.defaultPrevented||!t.escape||n.altKey||n.ctrlKey||n.metaKey)return;let r=e.ownerDocument;Ie(r)===e&&(e.querySelector(`:popover-open`)||r.querySelector(`[popover=""]:popover-open, [popover="auto"]:popover-open`)||(s=!0,window.setTimeout(()=>{s&&ce.has(e)&&e.open&&(s=!1,t.onRequestClose(`escape`))},0)))},l=t=>{if(t.key!==`Tab`||t.defaultPrevented||t.altKey||t.ctrlKey||t.metaKey)return;let n=e.ownerDocument;if(Ie(n)!==e||e.querySelector(`:popover-open`))return;t.preventDefault();let r=ve(e),i=r[0],a=r[r.length-1];if(!i||!a){e.focus();return}let o=n.activeElement,s=o?r.findIndex(e=>e===o||e.contains(o)):-1;s<0?(t.shiftKey?a:i).focus():r[((t.shiftKey?s-1:s+1)+r.length)%r.length]?.focus()},u=e=>{s=!1,e.preventDefault(),t.escape&&t.onRequestClose(`escape`)},d=n=>{let r=n.target;if(!(r instanceof Element))return;let i=r.closest(re);if(i&&i.closest(`dialog`)===e){t.onRequestClose(`dismiss`);return}if(r!==e||!t.backdrop)return;let a=e.getBoundingClientRect();(n.clientX<a.left||n.clientX>a.right||n.clientY<a.top||n.clientY>a.bottom)&&t.onRequestClose(`backdrop`)},f=()=>{let n=s;s=!1,Ce(e),ce.has(e)?(o(),n&&t.onRequestClose(`escape`)):we(e.ownerDocument)},p=e.ownerDocument;return p.addEventListener(`keydown`,c),p.addEventListener(`keydown`,l),e.addEventListener(`cancel`,u),e.addEventListener(`click`,d),e.addEventListener(`close`,f),o(),()=>{p.removeEventListener(`keydown`,c),p.removeEventListener(`keydown`,l),e.removeEventListener(`cancel`,u),e.removeEventListener(`click`,d),e.removeEventListener(`close`,f),ce.delete(e),i&&e.removeAttribute(`tabindex`),a&&e.removeAttribute(`closedby`),Ce(e),we(e.ownerDocument)}}async function Ae(e){ce.delete(e),e.setAttribute(O,``),!window.matchMedia(ae).matches&&typeof e.getAnimations==`function`&&e.getAnimations().length>0&&await Te(e),e.close(),Ce(e),we(e.ownerDocument),e.removeAttribute(O)}function je(e,t,n){let r=ge.get(t);if(r){r();return}me.get(t)?.(),t.setAttribute(`popover`,n.mode),t.showPopover();let i=()=>w(e,t,n);try{i()}catch(e){throw Me(t),e}te(t,()=>{!k(t)||!t.isConnected?he.get(t)?.():e.isConnected&&n.scrollSettling?.()?i():!e.isConnected||!n.keepOffscreen&&De(e)?Me(t):i()});let a=new ResizeObserver(()=>{k(t)&&t.isConnected&&e.isConnected&&i()});a.observe(t);let o=e=>{`newState`in e&&e.newState===`closed`&&he.get(t)?.()},s=()=>{n.mode===`auto`&&k(t)&&Oe(t,e)};t.addEventListener(`toggle`,o),e.addEventListener(`pointerdown`,s,!0),me.set(t,()=>{t.removeEventListener(`toggle`,o),e.removeEventListener(`pointerdown`,s,!0),T(t),a.disconnect(),me.delete(t),he.delete(t)}),he.set(t,()=>{me.get(t)?.(),n.onClosed?.()})}function Me(e){k(e)&&e.hidePopover(),he.get(e)?.()}function k(e){return e.matches(`:popover-open`)}function Ne(e,t){Fe(e),k(e)!==t&&(t?e.showPopover():e.hidePopover())}function Pe(e){if(Fe(e),!e.isConnected)throw Error(`nativeOverlay: raisePopover was given a panel that is not on the page; a caller whose overlay root can leave the page skips the raise until the panel moves to the new root`);e.hidePopover(),e.showPopover()}function Fe(e){if(!e.hasAttribute(`popover`))throw Error(`nativeOverlay: the panel has no popover attribute`)}function Ie(e=document){let t=xe(e);for(let e=t.length-1;e>=0;e--){let n=t[e];if(n?.isConnected&&n.hasAttribute(`open`))return n}return e.body}function Le(e,t=document){le.has(t)||(le.add(t),t.addEventListener(`toggle`,()=>we(t),!0),t.addEventListener(`close`,()=>we(t),!0));let n={last:Ie(t),listener:e};return pe(t).add(n),()=>{pe(t).delete(n)}}function Re(e){ue.has(e)||(ue.add(e),e.addEventListener(`click`,t=>{let n=t.target,r=n instanceof Element?n.closest(ie):null;if(!(r instanceof HTMLElement))return;let i=(r.getAttribute(`data-wui-open`)??``).replace(/^#/,``),a=e.getElementById(i);if(!a)throw Error(`[data-wui-open] names #${i}, which is not on the page.`);ye(a)?(t.preventDefault(),a.show(r)):be(a)&&(t.preventDefault(),customElements.whenDefined(a.localName).then(()=>{a.isConnected&&ye(a)&&a.show(r)}))}))}var ze=n({closestOf:()=>Ve,elementOf:()=>Be,make:()=>j,must:()=>A});function A(e,t){if(e==null)throw Error(t);return e}function Be(e,t,n){if(!(e instanceof t))throw TypeError(n);return e}function Ve(e,t){return e instanceof Element?e.closest(t):null}function j(e,t,...n){if(e.toLowerCase()===`svg`)throw Error(`make() builds HTML elements; use svgRoot for svg`);let r=document.createElement(e);for(let[e,n]of Object.entries(t??{}))n===!0?r.setAttribute(e,``):(typeof n==`string`||typeof n==`number`)&&r.setAttribute(e,String(n));let i=[];for(let e of n)e instanceof Node?i.push(e):(typeof e==`string`||typeof e==`number`)&&i.push(document.createTextNode(String(e)));return r.append(...i),r}var He=n({fillText:()=>N,pluralCategory:()=>rt,pluralText:()=>it,readText:()=>M,setText:()=>Ze,subscribeText:()=>Qe,textLocale:()=>$e}),Ue=`en-IN`,We=/\{([A-Za-z0-9_]+)\}/g,Ge=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,Ke,qe=new Map,Je=0,Ye=new Set,Xe=new Map;function Ze(e){let t=new Map,n,r=Object.entries(e);for(let[e,i]of r)if(i!==void 0){if(e===`locale`){if(typeof i!=`string`)throw RangeError(`Text locale must be a BCP 47 tag string.`);n=i}else{if(!at(i))throw RangeError(`Text ${e} must be an object of string keys.`);t.set(e,ot(e,i))}}Ke=n,qe=t,Je+=1;for(let e of Array.from(Ye))e()}function M(e,t){let n=qe.get(e);if(n===void 0)return t;let r=Xe.get(e);if(r!==void 0&&r.version===Je&&r.english===t&&ct(r.merged,t))return r.merged;let i=st(e,n,t);return Xe.set(e,{version:Je,english:t,merged:i}),i}function Qe(e){return Ye.add(e),()=>{Ye.delete(e)}}function $e(){return Ke??Ue}var et=e=>e===1?`one`:`other`,tt=e=>Math.trunc(Math.abs(e))===0||e===1?`one`:`other`,nt={en:et,ta:et,te:et,ml:et,mr:et,ne:et,or:et,ur:et,hi:tt,bn:tt,gu:tt,kn:tt,as:tt,pa:tt};function rt(e,t){let n=e.split(/[-_]/)[0]?.toLowerCase()??``,r=Ge(nt,n)?nt[n]:void 0;if(r===void 0)throw RangeError(`No plural rule for locale "${e}". Supported languages: ${Object.keys(nt).join(`, `)}.`);return r(t)}function N(e,t){return e.replace(We,(e,n)=>Ge(t,n)?String(t[n]):e)}function it(e,t,n,r){let i=`${t}Other`;if(!Ge(e,i))throw RangeError(`Plural text ${t} has no ${i} key; every plural needs its Other form.`);let a=rt($e(),n),o=`${t}${a.charAt(0).toUpperCase()}${a.slice(1)}`,s=e[Ge(e,o)?o:i];if(s===void 0)throw RangeError(`Plural text ${t} has no ${o} key.`);return N(s,{count:n,...r})}function at(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ot(e,t){let n={};for(let[r,i]of Object.entries(t)){if(typeof i!=`string`)throw RangeError(`Text ${e}.${r} must be a string.`);n[r]=i}return n}function st(e,t,n){let r={};for(let[i,a]of Object.entries(t)){let t=Ge(n,i)?n[i]:void 0;if(t===void 0)throw RangeError(`Text ${e}.${i} is not a key of the English text. Allowed keys: ${Object.keys(n).join(`, `)}.`);let o=lt(t);for(let t of lt(a))if(!o.includes(t))throw RangeError(`Text ${e}.${i} uses {${t}}, which the English text does not have. Allowed placeholders: ${o.length===0?`none`:o.map(e=>`{${e}}`).join(`, `)}.`);r[i]=a}return Object.assign({},n,r)}function ct(e,t){let n=Object.keys(t);return Object.keys(e).length===n.length&&n.every(t=>Ge(e,t))}function lt(e){return Array.from(e.matchAll(We),e=>e[1]??``)}var ut={closeLabel:`Close`,helpLabel:`Show these shortcuts`,nextItemLabel:`Next item`,openItemLabel:`Open the item`,previousItemLabel:`Previous item`,selectItemLabel:`Select the item`,sheetTitle:`Keyboard shortcuts`},dt=n({SHORTCUTS_OFF_ATTRIBUTE:()=>pt,SHORTCUT_EVENT:()=>ht,SHORTCUT_SCOPE_ATTRIBUTE:()=>mt,ariaKeyShortcuts:()=>Dt,inShortcutScope:()=>jt,isTypingTarget:()=>Ot,listKeys:()=>_t,moveFocus:()=>Nt,runShortcut:()=>Mt,selectKey:()=>vt,shortcutKey:()=>Et,shortcutName:()=>Tt,shortcutText:()=>gt,shortcutsOff:()=>At}),ft=()=>M(`shortcutKeys`,ut),pt=`data-wui-shortcuts`,mt=`data-shortcut-scope`,ht=`wui:shortcut`,gt=()=>({title:ft().sheetTitle,close:ft().closeLabel,help:ft().helpLabel}),_t=()=>[{key:`J`,label:ft().nextItemLabel},{key:`K`,label:ft().previousItemLabel},{key:`Enter`,label:ft().openItemLabel}],vt=()=>({key:`X`,label:ft().selectItemLabel}),yt={"/":`slash`,"?":`help`,Escape:`esc`,Esc:`esc`,Enter:`enter`},bt={esc:`Esc`,escape:`Esc`,enter:`Enter`,slash:`/`,help:`?`},xt={esc:`Escape`,ctrl:`Control`,cmd:`Meta`,option:`Alt`,opt:`Alt`},St=new Set([`checkbox`,`radio`,`button`,`submit`,`reset`,`range`,`color`,`file`,`image`]),Ct=new Set([`textbox`,`searchbox`,`combobox`]),wt=`a[href], button, summary, input, select, textarea, [role="button"], [role="link"], [role="menuitem"], [role="option"], [role="tab"], [role="checkbox"], [role="switch"]`;function Tt(e){if(!e||e.ctrlKey||e.metaKey||e.altKey)return null;let t=e.key;return typeof t!=`string`||!t?null:yt[t]?yt[t]:t.length===1&&t.trim()?t.toLowerCase():null}function Et(e){let t=String(e??``).trim();return t.length===1?t.toUpperCase():bt[t.toLowerCase()]??t}function Dt(e){return String(e??``).trim().split(/\s+/).filter(Boolean).map(e=>xt[e.toLowerCase()]??(e.length===1?e.toUpperCase():e)).join(`+`)}function Ot(e){if(!e||!kt(e))return!1;if(e instanceof HTMLElement&&e.isContentEditable||e.closest?.(`[contenteditable=""], [contenteditable="true"], [contenteditable="plaintext-only"]`)||e.tagName===`TEXTAREA`||e.tagName===`SELECT`)return!0;if(e.tagName===`INPUT`){let t=e instanceof HTMLInputElement&&e.type?e.type:`text`;return!St.has(t.toLowerCase())}return Ct.has(e.getAttribute?.(`role`))}function kt(e){return e.nodeType===1}function At(e=typeof document>`u`?null:document){return e?.documentElement?.getAttribute(pt)===`off`}function jt(e,t){if(!t||e&&t.contains(e))return!0;let n=t.ownerDocument;return(!e||e===n.body||e===n.documentElement)&&n.querySelector(`[data-shortcut-scope]`)===t}function Mt(e,t,n=null){let r=e.target instanceof Node?e.target:null;if(!t||e.defaultPrevented||At(r?.ownerDocument??void 0))return!1;let i=Tt(e);if(!i||!jt(r,n)||Ot(r))return!1;let a=t[i]??(i.length===1?t[i.toUpperCase()]:void 0);return typeof a!=`function`||i===`enter`&&r instanceof Element&&r.closest(wt)?!1:(e.preventDefault(),a(e),!0)}function Nt(e,t){let n=e[0]?.ownerDocument;if(!n)return null;let r=n.activeElement,i=e.findIndex(e=>e===r||e.contains(r));if(i<0&&r&&r!==n.body){let t=r.closest?.(`li, tr`);t&&(i=e.findIndex(e=>t.contains(e)))}i<0&&(i=e.findIndex(e=>e.getAttribute(`aria-current`)===`true`));let a=A(e[i<0?t>0?0:e.length-1:Math.min(e.length-1,Math.max(0,i+t))],`moveFocus: no item at the clamped index`);return a.focus(),a.scrollIntoView?.({block:`nearest`}),a}function Pt(e){"@babel/helpers - typeof";return Pt=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Pt(e)}function Ft(e,t){if(Pt(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Pt(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function It(e){var t=Ft(e,`string`);return Pt(t)==`symbol`?t:t+``}function P(e,t,n){return(t=It(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Lt=2,Rt=`wui-filter-popover-pinned`,zt=`.wui-filter-popover-trigger`,Bt=`.wui-filter-popover-panel`,Vt=`.wui-filter-popover-head`,Ht=`input:not([type]),input[type="text"],input[type="search"]`,Ut=`a[href],button:not([disabled]),input:not([disabled]):not([type='hidden']),select:not([disabled]),textarea:not([disabled]),[tabindex]:not([tabindex='-1'])`;function Wt(){try{return sessionStorage.getItem(Rt)===`1`}catch{return!1}}function Gt(e){try{e?sessionStorage.setItem(Rt,`1`):sessionStorage.removeItem(Rt)}catch(e){if(!(e instanceof DOMException))throw e}}function Kt(e){if(e===null||e instanceof Node)return e;throw TypeError(`event target is not a node`)}function qt(e,t){let n=e?.querySelector(t)??null;return n instanceof HTMLElement?n:null}var Jt=class extends s{constructor(){super(),P(this,`_doc`,void 0),P(this,`_timer`,void 0),P(this,`_sticky`,void 0),P(this,`_closingByCode`,void 0),P(this,`_inside`,void 0),P(this,`_pendingSubmit`,void 0),P(this,`_onEnter`,void 0),P(this,`_onLeave`,void 0),P(this,`_onClick`,void 0),P(this,`_onChange`,void 0),P(this,`_onListClose`,void 0),P(this,`_onFocusOut`,void 0),P(this,`_onKeyDown`,void 0),P(this,`_onShortcut`,void 0),this._doc=null,this._timer=null,this._sticky=!1,this._closingByCode=!1,this._inside=!1,this._pendingSubmit=!1,this._onEnter=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!0,this._schedule(!0))},this._onLeave=e=>{e.pointerType!==`touch`&&e.pointerType!==`pen`&&(this._inside=!1,this._schedule(!1))},this._onClick=e=>{this._trigger?.contains(Kt(e.target))&&(this._clear(),this.isOpen&&this._sticky?this._close(!0):this._open(!0,e.detail===0))},this._onChange=e=>{let t=this._pin;if(t&&e.target===t){Gt(t.checked),t.checked?this._clear():this._schedule(!1);return}let n=e.target;if(n instanceof Element&&n.closest(`wui-select[mode="multiple"], wui-select[mode="tag"]`)?.querySelector(`[aria-expanded="true"]`)){this._pendingSubmit=!0;return}let r=this.closest(`form.wui-filter-form`);r instanceof HTMLFormElement&&r.requestSubmit()},this._onListClose=()=>{if(!this._pendingSubmit)return;this._pendingSubmit=!1;let e=this.closest(`form.wui-filter-form`);e instanceof HTMLFormElement&&e.requestSubmit()},this._onFocusOut=e=>{this.contains(Kt(e.relatedTarget))||this._schedule(!1)},this._onKeyDown=e=>{let t=e.target;if(e.key!==`Enter`||!(t instanceof Element)||!this._panel?.contains(t)||!t.matches(Ht))return;e.preventDefault();let n=this.closest(`form.wui-filter-form`);n instanceof HTMLFormElement&&n.requestSubmit()},this._onShortcut=e=>{this.ownerDocument.querySelector(`wui-filter-popover`)===this&&Mt(e,{f:()=>this._open(!0,!0)})}}get isOpen(){let e=this._panel;return e?k(e):!1}connectedCallback(){this._doc=this.ownerDocument,this.addEventListener(`pointerenter`,this._onEnter),this.addEventListener(`pointerleave`,this._onLeave),this.addEventListener(`click`,this._onClick),this.addEventListener(`change`,this._onChange),this.addEventListener(`focusout`,this._onFocusOut),this.addEventListener(`keydown`,this._onKeyDown),this.addEventListener(`wui-select:close`,this._onListClose),this._doc.addEventListener(`keydown`,this._onShortcut),Wt()&&this._pin&&(this._pin.checked=!0,this._open(!1,!1))}disconnectedCallback(){this._clear();let e=this._panel;e&&this._closeByCode(e),this.removeEventListener(`pointerenter`,this._onEnter),this.removeEventListener(`pointerleave`,this._onLeave),this.removeEventListener(`click`,this._onClick),this.removeEventListener(`change`,this._onChange),this.removeEventListener(`focusout`,this._onFocusOut),this.removeEventListener(`keydown`,this._onKeyDown),this.removeEventListener(`wui-select:close`,this._onListClose),this._doc?.removeEventListener(`keydown`,this._onShortcut),this._doc=null}get _trigger(){return qt(this,zt)}get _panel(){return qt(this,Bt)}get _pin(){let e=this.querySelector(`${Vt} input[type="checkbox"]`);return e instanceof HTMLInputElement?e:null}get _pinned(){return this._pin?.checked===!0}_clear(){this._timer!==null&&clearTimeout(this._timer),this._timer=null}_schedule(e){if(this._clear(),e){if(this.isOpen)return;this._timer=setTimeout(()=>{this._timer=null,this._open(!1,!1)},150)}else this.isOpen&&!this._stayOpen()&&(this._timer=setTimeout(()=>{this._timer=null,this._stayOpen()||this._close(!1)},400))}_stayOpen(){let e=this._panel;return e?this._pinned||this._inside||e.contains(this.ownerDocument.activeElement)||e.querySelector(`[aria-expanded="true"]`)!==null:!1}_open(e,t){this._clear();let n=this._panel,r=this._trigger;n&&r&&(this.isOpen?e&&(this._sticky=!0):(r.setAttribute(`aria-expanded`,`true`),this._sticky=e,je(r,n,{mode:`auto`,clampHeight:!0,alignEnd:!0,onClosed:()=>this._closed()})),t&&(qt(n.querySelector(`.wui-filter-popover-grid`),Ut)??qt(n,Ut))?.focus())}_close(e){this._clear();let t=this._panel;if(!t||!this.isOpen)return;let n=t.contains(this.ownerDocument.activeElement);this._closeByCode(t),e&&n&&this._trigger?.focus()}_closeByCode(e){this._closingByCode=!0;try{Me(e)}finally{this._closingByCode=!1}}_closed(){if(this._trigger?.setAttribute(`aria-expanded`,`false`),this._sticky=!1,this._closingByCode)return;let e=this._trigger,t=this._panel,n=this.ownerDocument.activeElement;e&&(n===this.ownerDocument.body||t?.contains(n))&&e.focus()}};function Yt(){i(`wui-filter-popover`,Jt)}var Xt=class extends s{static get observedAttributes(){return[`open`,`static`,`no-escape`]}constructor(){super(),P(this,`_doc`,void 0),P(this,`_release`,void 0),P(this,`_opener`,void 0),P(this,`_returnTo`,void 0),P(this,`_session`,void 0),P(this,`_closing`,void 0),P(this,`_reopen`,void 0),this._doc=null,this._release=null,this._opener=null,this._returnTo=null,this._session=0,this._closing=!1,this._reopen=!1}connectedCallback(){this._doc=this.ownerDocument,Re(this._doc),this.hasAttribute(`open`)&&this._open()}disconnectedCallback(){this._session++,this._closing=!1,this._reopen=!1;let e=this.querySelector(`dialog`);this._release&&e instanceof HTMLDialogElement&&e.close(),this._releaseDialog(),this._opener=null,this._returnTo=null,this._doc=null}attributeChangedCallback(e){this._doc&&e===`open`&&(this.hasAttribute(`open`)?this._open():this._close())}get isOpen(){return this.hasAttribute(`open`)}show(e){e&&(this._opener=e),this.setAttribute(`open`,``)}hide(){this.removeAttribute(`open`)}_open(){if(this._closing){this._reopen=!0;return}if(this._release)return;let e=++this._session,t=this._opener;if(this._returnTo=t,this._opener=null,this.dispatchEvent(new CustomEvent(`wui-modal-open`,{bubbles:!0,detail:{trigger:t}})),!this.isOpen)return;let n=this._dialog();this._release=ke(n,{escape:!this.hasAttribute(`no-escape`),backdrop:!this.hasAttribute(`static`),focus:`first-control`,onRequestClose:e=>this._requestClose(e)}),this._settle(e,n)}_close(){if(this._closing){this._reopen=!1;return}if(!this._release)return;this._closing=!0;let e=this._session,t=this._dialog();Ae(t).then(()=>{e===this._session&&(this._closing=!1,this._releaseDialog(),Ee(this._returnTo,t),this._returnTo=null,this.dispatchEvent(new CustomEvent(`wui-modal-closed`,{bubbles:!0})),this._reopen&&(this._reopen=!1,this.isOpen&&this._open()))})}_settle(e,t){let n=t.getAnimations?.()??[];n.length?Promise.allSettled(n.map(e=>e.finished)).then(()=>{e===this._session&&this.isOpen&&this._announceOpened()}):this._announceOpened()}_announceOpened(){this.dispatchEvent(new CustomEvent(`wui-modal-opened`,{bubbles:!0}))}_requestClose(e){this.dispatchEvent(new CustomEvent(`wui-modal-close`,{bubbles:!0,cancelable:!0,detail:{reason:e}}))&&this.removeAttribute(`open`)}_releaseDialog(){let e=this._release;this._release=null,e?.()}_dialog(){let e=this.querySelector(`dialog`);if(!(e instanceof HTMLDialogElement))throw TypeError(`wui-modal has no <dialog>`);return e}},Zt=n({avatarNode:()=>$t,safeImageUrl:()=>Qt}),Qt=e=>{let t=String(e??``).trim();return/^(https?:)?\/\//i.test(t)||/^\/(?!\/)/.test(t)||/^data:image\/(png|jpe?g|gif|webp|avif);/i.test(t)?t:``};function $t(e,t=`wui-opt-avatar`){let n=Qt(e.avatar);return!n&&!e.initials?null:j(`span`,{class:`avatar ${t}`,"aria-hidden":`true`},j(`span`,{class:`avatar-face`},e.initials??``),n?j(`img`,{class:`avatar-img`,src:n,alt:``}):null)}var en=n({devError:()=>nn,devWarn:()=>tn});function tn(e,...t){console.warn(e,...t)}function nn(e,...t){console.error(e,...t)}var rn=n({BUSY_CLASS:()=>an,isInert:()=>F,isReadOnly:()=>on,syncFieldState:()=>sn}),an=`wui-field-busy`,on=e=>e.hasAttribute(`readonly`),F=e=>e.hasAttribute(`disabled`)||e.hasAttribute(`readonly`)||e.hasAttribute(`loading`);function sn(e,t){let n=e.hasAttribute(`loading`);n?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),t&&(t.classList.toggle(an,n),on(e)?t.setAttribute(`aria-readonly`,`true`):t.removeAttribute(`aria-readonly`))}var cn=n({syncFormMirror:()=>fn,syncFormMirrors:()=>pn}),ln=`data-wui-mirror`;function un(e,t,n,r){t.name=n,t.value=r==null?``:String(r);for(let n of[...t.attributes])n.name.startsWith(`data-val`)&&!e.hasAttribute(n.name)&&t.removeAttribute(n.name);for(let n of e.attributes)n.name.startsWith(`data-val`)&&t.setAttribute(n.name,n.value);t.disabled=e.hasAttribute(`disabled`)}function dn(e){let t=document.createElement(`input`);return t.type=`hidden`,t.setAttribute(ln,``),e.appendChild(t),t}function fn(e,t){let n=e.getAttribute(`name`)??``,r=e.querySelector(`:scope > input[${ln}]`),i=r instanceof HTMLInputElement?r:null;n?(i||=dn(e),un(e,i,n,t)):i?.remove()}function pn(e,t){let n=e.getAttribute(`name`)??``,r=[...e.querySelectorAll(`:scope > input[${ln}]`)].filter(e=>e instanceof HTMLInputElement),i=[...e.attributes].some(e=>e.name.startsWith(`data-val`)),a=n?t.length>0?t:i?[``]:[]:[];for(let e of r.splice(a.length))e.remove();a.forEach((t,i)=>{un(e,r[i]??dn(e),n,t)})}var mn=n({hasOwn:()=>hn}),hn=(e,t)=>Object.getOwnPropertyDescriptor(e,t)!==void 0,gn=Object.freeze({serverActions:`[data-wui-confirm], [data-wui-post], form[data-wui-post-form], [data-wui-row-action], [data-wui-auto-submit]`,unsavedChanges:`form[data-wui-unsaved]`,remoteModal:`[data-wui-modal], [data-wui-drawer], [data-wui-pane], wui-modal[data-wui-remote-url]`,serverTable:`[data-wui-server]`,drawerDiscard:`wui-drawer[confirm-discard], wui-modal form`}),_n=Object.freeze({carousel:{entries:[`elements/carousel.ts`],tags:[`wui-carousel`]},"data-table":{entries:[`elements/data-table.ts`],tags:[`wui-data-table`]},dock:{entries:[`elements/dock.ts`],tags:[`wui-dock`]},"hover-card":{entries:[`elements/hover-card.ts`],tags:[`wui-hover-card`]},"navigation-menu":{entries:[`elements/navigation-menu.ts`],tags:[`wui-navigation-menu`]},"notification-center":{entries:[`elements/notification-center.ts`],tags:[`wui-notification-center`]},"onboarding-checklist":{entries:[`elements/onboarding-checklist.ts`],tags:[`wui-onboarding-checklist`]},otp:{entries:[`elements/otp.ts`],tags:[`wui-otp`]},overflow:{entries:[`elements/overflow.ts`],tags:[`wui-overflow`]},rating:{entries:[`elements/rating.ts`],tags:[`wui-rating`]},"record-pager":{entries:[`elements/record-pager.ts`],tags:[`wui-record-pager`]},"relative-time":{entries:[`elements/relative-time.ts`],tags:[`wui-relative-time`]},shortcuts:{entries:[`elements/shortcuts.ts`],tags:[`wui-shortcuts`]},"show-more":{entries:[`elements/show-more.ts`],tags:[`wui-show-more`]},"calendar-views":{entries:[`elements/calendar-views.ts`],tags:[`wui-calendar-views`]},truncate:{entries:[`elements/truncate.ts`],tags:[`wui-truncate`]},"whats-new":{entries:[`elements/whats-new.ts`],tags:[`wui-whats-new`]},"offline-banner":{entries:[`elements/offline-banner.ts`],tags:[`wui-offline-banner`]},"code-block":{entries:[`elements/code-block.ts`],tags:[`wui-code-block`]},"command-palette":{entries:[`elements/command-palette.ts`],tags:[`wui-command-palette`]},"comment-thread":{entries:[`elements/comment-thread.ts`],tags:[`wui-mention-input`,`wui-comment-thread`]},"consent-banner":{entries:[`elements/consent-banner.ts`],tags:[`wui-consent-banner`]},"context-menu":{entries:[`elements/context-menu.ts`],tags:[`wui-context-menu`]},"date-range":{entries:[`elements/date-range.ts`],tags:[`wui-date-range`]},"date-time":{entries:[`elements/date-time.ts`],tags:[`wui-date-time`]},datepicker:{entries:[`elements/datepicker.ts`],tags:[`wui-datepicker`]},"mini-calendar":{entries:[`elements/mini-calendar.ts`],tags:[`wui-mini-calendar`]},drawer:{entries:[`elements/drawer.ts`],tags:[`wui-drawer`]},dropdown:{entries:[`elements/dropdown.ts`],tags:[`wui-dropdown`]},"entry-grid":{entries:[`elements/entry-grid.ts`],tags:[`wui-entry-grid`]},gantt:{entries:[`elements/gantt.ts`],tags:[`wui-gantt`]},"image-crop":{entries:[`elements/image-crop.ts`],tags:[`wui-image-crop`]},"inline-edit":{entries:[`elements/inline-edit.ts`],tags:[`wui-inline-edit`]},kanban:{entries:[`elements/kanban.ts`],tags:[`wui-kanban`]},"dashboard-grid":{entries:[`elements/dashboard-grid.ts`],tags:[`wui-dashboard-grid`]},"lead-popup":{entries:[`elements/lead-popup.ts`],tags:[`wui-lead-popup`]},lightbox:{entries:[`elements/lightbox.ts`],tags:[`wui-lightbox`]},"org-tree":{entries:[`elements/org-tree.ts`],tags:[`wui-org-tree`]},markdown:{entries:[`elements/markdown.ts`],tags:[`wui-markdown`]},phone:{entries:[`elements/phone.ts`,`global/parts/select-country.ts`],tags:[`wui-phone`]},popover:{entries:[`elements/popover.ts`],tags:[`wui-popover`]},"saved-views":{entries:[`elements/saved-views.ts`],tags:[`wui-saved-views`]},glyphs:{entries:[`global/parts/glyphs.ts`],tags:[]},"select-chips":{entries:[`global/parts/select-chips.ts`],tags:[]},"select-recents":{entries:[`global/parts/select-recents.ts`],tags:[]},"select-search":{entries:[`global/parts/select-search.ts`],tags:[]},"select-window":{entries:[`global/parts/select-window.ts`],tags:[]},"table-export":{entries:[`global/parts/table-export.ts`],tags:[]},server:{entries:[`global/parts/server.ts`],tags:[],markers:Object.values(gn).join(`, `)},shell:{entries:[`global/parts/shell.ts`],tags:[],markers:`[data-app-shell]`},slider:{entries:[`elements/slider.ts`],tags:[`wui-slider`]},sortable:{entries:[`elements/sortable.ts`],tags:[`wui-sortable`]},"status-icon":{entries:[`elements/status-icon.ts`],tags:[`wui-status-icon`]},timepicker:{entries:[`elements/timepicker.ts`],tags:[`wui-timepicker`]},tour:{entries:[`elements/tour.ts`],tags:[`wui-tour`]},tree:{entries:[`elements/tree.ts`],tags:[`wui-tree`]},"tree-picker":{entries:[`elements/tree-picker.ts`],tags:[`wui-tree-picker`]},wizard:{entries:[`elements/wizard.ts`],tags:[`wui-wizard-step`,`wui-wizard`]},chart:{file:`ui-chart.global.js`,tags:[`wui-chart`],selfContained:!0},calendar:{file:`ui-calendar.global.js`,tags:[`wui-calendar`],selfContained:!0},"rich-text":{file:`ui-rich-text.global.js`,tags:[`wui-rich-text`],selfContained:!0},"file-viewer":{file:`ui-file-viewer.global.js`,tags:[`wui-file-viewer`],selfContained:!0}});Object.freeze({anchorOverlay:`anchorOverlay.ts`,avatarNode:`avatarNode.ts`,buttonClass:`buttonClass.ts`,calendarMath:`calendarMath.ts`,copyText:`copyText.ts`,dataTable:`dataTable.ts`,dataTableText:`text/web/dataTable.g.ts`,datePickerText:`text/web/datePicker.g.ts`,defineElement:`defineElement.ts`,devWarn:`devWarn.ts`,dom:`dom.ts`,drawerText:`text/web/drawer.g.ts`,elementBase:`elementBase.ts`,fieldState:`fieldState.ts`,flash:`server/flash.ts`,formatters:`formatters.ts`,formMirror:`formMirror.ts`,glyphs:`global/glyphs.ts`,hasOwn:`hasOwn.ts`,httpFailureText:`text/web/httpFailure.g.ts`,iconGlyphs:`iconGlyphs.g.ts`,imeSafeEnter:`imeSafeEnter.ts`,isDrawn:`isDrawn.ts`,listboxKeyNav:`listboxKeyNav.ts`,loader:`global/loader.ts`,mentionText:`mentionText.ts`,menuKeyNav:`menuKeyNav.ts`,nativeOverlay:`nativeOverlay.ts`,notificationCentreText:`text/web/notificationCentre.g.ts`,notificationDays:`notificationDays.ts`,optionLabel:`optionLabel.ts`,partRegistry:`select/partRegistry.ts`,postError:`server/postError.ts`,refreshAfter:`server/refreshAfter.ts`,regions:`server/regions.ts`,relativeTime:`relativeTime.ts`,rtl:`rtl.ts`,selectList:`select/list.ts`,selectRemote:`select/remote.ts`,selectText:`text/web/select.g.ts`,selectWindow:`select/window.ts`,server:`global/server.ts`,serverHtml:`server/serverHtml.ts`,serverTableRegistry:`server/serverTableRegistry.ts`,shellRegistry:`server/shellRegistry.ts`,shortcutKeys:`shortcutKeys.ts`,stepperHeader:`stepperHeader.ts`,svgNodes:`svgNodes.ts`,tableExport:`global/tableExport.ts`,tableSelect:`tableSelect.ts`,textMatch:`textMatch.ts`,textStore:`text/textStore.ts`,toastAction:`server/toastAction.ts`,toastHeader:`server/toastHeader.ts`,tooltips:`tooltips.ts`,wuiHost:`server/wuiHost.ts`,wuiHttp:`server/wuiHttp.ts`,wuiUpload:`server/wuiUpload.ts`,WuiSelect:`WuiSelect.ts`,zone:`zone.ts`});var vn=`ui-elements/`;function yn(e){let t=_n[e];if(t===void 0)throw Error(`[webority-ui] No on-demand element chunk is named ${e}.`);return t}function bn(e){let t=yn(e);if(!t.selfContained)return`${vn+e}.global.js`;if(t.file===void 0)throw Error(`[webority-ui] The self-contained element chunk ${e} names no file.`);return t.file}var xn=n({CHUNK_DIR:()=>vn,CHUNK_RETRY_MS:()=>wn,ELEMENTS_DEFINED_EVENT:()=>Sn,ELEMENTS_LOAD_ERROR_EVENT:()=>Cn,assetUrl:()=>Hn,chunkReadyCheckKeys:()=>Un,loadChunk:()=>L,registerChunkReadyCheck:()=>I,startElementLoader:()=>zn,stopElementLoader:()=>Bn,whenElementsReady:()=>Vn}),Sn=`wui-elements:defined`,Cn=`wui-elements:load-error`,wn=1e3,Tn={"ui-elements/carousel.global.js":`5f3ca43a844d`,"ui-elements/data-table.global.js":`2a0bf5fac393`,"ui-elements/dock.global.js":`b6ecc73ab804`,"ui-elements/hover-card.global.js":`d276cc6b0e09`,"ui-elements/navigation-menu.global.js":`9a79c1c4e6f8`,"ui-elements/notification-center.global.js":`00fad978ecb2`,"ui-elements/onboarding-checklist.global.js":`634283b66d64`,"ui-elements/otp.global.js":`26be6c899777`,"ui-elements/overflow.global.js":`e8ce2cdbd172`,"ui-elements/rating.global.js":`13a643398654`,"ui-elements/record-pager.global.js":`a60038d3e9a7`,"ui-elements/relative-time.global.js":`20dd5b404959`,"ui-elements/shortcuts.global.js":`8afc8abf91f5`,"ui-elements/show-more.global.js":`fd901dfe4fb1`,"ui-elements/calendar-views.global.js":`748351a39ece`,"ui-elements/truncate.global.js":`59cb8caa3785`,"ui-elements/whats-new.global.js":`46391d9b2da9`,"ui-elements/offline-banner.global.js":`b8ed642ceb43`,"ui-elements/code-block.global.js":`b70d76e32d64`,"ui-elements/command-palette.global.js":`8d21bcef732e`,"ui-elements/comment-thread.global.js":`90cb8507c60d`,"ui-elements/consent-banner.global.js":`80b90c7c3231`,"ui-elements/context-menu.global.js":`c9a352f0e201`,"ui-elements/date-range.global.js":`9dcc20b95f7c`,"ui-elements/date-time.global.js":`0a27662a929f`,"ui-elements/datepicker.global.js":`e1289fc5731e`,"ui-elements/mini-calendar.global.js":`f491c6402953`,"ui-elements/drawer.global.js":`608da4ff685d`,"ui-elements/dropdown.global.js":`973cf0c6f5e4`,"ui-elements/entry-grid.global.js":`f9fc46c8a11e`,"ui-elements/gantt.global.js":`a4947eab111f`,"ui-elements/image-crop.global.js":`4e07f270fd19`,"ui-elements/inline-edit.global.js":`e75c4ea5d01b`,"ui-elements/kanban.global.js":`90f6df0d2c4c`,"ui-elements/dashboard-grid.global.js":`c79be70d76bb`,"ui-elements/lead-popup.global.js":`28baf0ca41d4`,"ui-elements/lightbox.global.js":`ee38935960a8`,"ui-elements/org-tree.global.js":`2625ae25c705`,"ui-elements/markdown.global.js":`6216380b3870`,"ui-elements/phone.global.js":`0007ba6399dd`,"ui-elements/popover.global.js":`345398d80199`,"ui-elements/saved-views.global.js":`3536b284d621`,"ui-elements/glyphs.global.js":`b765af7c66e8`,"ui-elements/select-chips.global.js":`801ebed40397`,"ui-elements/select-recents.global.js":`51085c3dc7b2`,"ui-elements/select-search.global.js":`27485582d603`,"ui-elements/select-window.global.js":`fd673bf4b9a4`,"ui-elements/table-export.global.js":`d21fd7192dcc`,"ui-elements/server.global.js":`11df91c8c836`,"ui-elements/shell.global.js":`3492d4ab55bd`,"ui-elements/slider.global.js":`e7d67fd31761`,"ui-elements/sortable.global.js":`2a1959cd1c8d`,"ui-elements/status-icon.global.js":`889a9323e62c`,"ui-elements/timepicker.global.js":`2cc2fd715385`,"ui-elements/tour.global.js":`46f1a8d89f9c`,"ui-elements/tree.global.js":`c32f8e5f99a0`,"ui-elements/tree-picker.global.js":`c631f10db621`,"ui-elements/wizard.global.js":`efcdc7781abc`,"ui-chart.global.js":`c8f028fa9ba2`,"ui-calendar.global.js":`e4de59e25e99`,"ui-rich-text.global.js":`64dcebd2efc3`,"ui-file-viewer.global.js":`97495f2e4ffa`,"ui-phone.global.js":`c646775bc1d1`},En=new Map;for(let[e,t]of Object.entries(_n))for(let n of t.tags)En.set(n,e);var Dn=[...En.keys()].join(`,`),On=[];for(let[e,t]of Object.entries(_n))t.markers!==void 0&&On.push([e,t.markers]);var kn=[...new Set(On.flatMap(([,e])=>[...e.matchAll(/\[([a-z-]+)\]/g)]).flatMap(e=>e[1]===void 0?[]:[e[1]]))],An=null,jn=``,Mn=!1,Nn=null,Pn=new Map,Fn=new Map,In=`The file ran but did not hand over its modules; see the error above.`,Ln=`The file has no ready check, so the loader cannot tell whether it ran.`;function Rn(){let e=document.currentScript;return e instanceof HTMLScriptElement?e:null}function zn(e=Rn()){Mn||(Mn=!0,An=e?.src?e.src:null,jn=e?.nonce||``,qn(document),Nn=new MutationObserver(e=>{for(let t of e)if(t.type===`attributes`)t.target instanceof Element&&qn(t.target);else for(let e of t.addedNodes)e instanceof Element&&qn(e)}),Nn.observe(document.documentElement,{childList:!0,subtree:!0,...kn.length>0?{attributes:!0,attributeFilter:kn}:{}}))}function Bn(){Nn?.disconnect(),Nn=null,Mn=!1,An=null,jn=``,Pn.clear()}function Vn(e=document){return Promise.all([...Kn(e)].map(e=>L(e))).then(()=>void 0)}function Hn(e){if(An===null)throw Error(`The on-demand element files have no address to load from.`);let t=new URL(e,An);return t.search=hn(Tn,e)?`?v=${Tn[e]}`:``,t.href}function I(e,t){yn(e),Fn.set(e,t)}function Un(){return[...Fn.keys()]}function L(e){let t=Pn.get(e)?.promise??null;if(t!==null)return t;let n=yn(e),{tags:r}=n,i=bn(e),a=()=>Promise.all(r.map(e=>customElements.whenDefined(e))),o={status:`loading`,promise:null},s=new Promise((t,s)=>{let c=``,l=()=>{Nn&&Object.keys(_n).every(e=>Pn.get(e)?.status===`loaded`||Pn.get(e)?.status===`failed`)&&Nn.disconnect()},u=()=>{o.status=`loaded`,l(),document.dispatchEvent(new CustomEvent(Sn,{detail:{chunk:e,tags:r}})),t()},d=t=>{o.status=`failed`,l(),nn(`[webority-ui] Could not load ${c} for ${r.length?r.join(`, `):e}.${t?` ${t.message}`:``}`),document.dispatchEvent(new CustomEvent(Cn,{detail:{chunk:e,url:c,tags:r}})),s(Error(`[webority-ui] The ${e} elements failed to load.`))},f=(t,i)=>{let o=document.createElement(`script`);o.src=t,o.async=!1,jn&&(o.nonce=jn),o.addEventListener(`load`,()=>{if(!n.selfContained&&!r.every(e=>customElements.get(e))){d(Error(`The file ran but did not define its elements; see the error above.`));return}if(!n.selfContained&&r.length===0&&!Fn.has(e)){d(Error(Ln));return}let t=Fn.get(e);t!==void 0&&!t()?d(Error(In)):a().then(u)}),o.addEventListener(`error`,()=>{o.remove(),i?d():setTimeout(()=>f(t,!0),wn)}),document.head.append(o)},p=[...document.scripts].find(e=>new URL(e.src,location.href).pathname.endsWith(`/${i}`));if(p!==void 0){let t=Fn.get(e);if(r.length>0||t===void 0&&n.selfContained){a().then(u);return}if(t===void 0){d(Error(Ln));return}if(t()){u();return}if(document.readyState===`complete`){d(Error(`The page's own tag for this file ran without handing over its modules.`));return}let i=!1,o=()=>{i||(i=!0,t()?u():d(Error(In)))};p.addEventListener(`load`,o),window.addEventListener(`load`,o),p.addEventListener(`error`,()=>{i||(i=!0,d())})}else{try{c=Hn(i)}catch(e){d(e instanceof Error?e:void 0);return}f(c,!1)}});return o.promise=s,Pn.set(e,o),s}function Wn(e){return En.has(e.localName)&&!customElements.get(e.localName)}function Gn(e,t){let n=En.get(t.localName);n!==void 0&&Wn(t)&&e.add(n)}function Kn(e){let t=new Set;e instanceof Element&&Gn(t,e);for(let n of e.querySelectorAll(Dn))Gn(t,n);for(let[n,r]of On)Pn.get(n)?.status!==`loaded`&&(e instanceof Element&&e.matches(r)||e.querySelector(r)!==null)&&t.add(n);return t}function qn(e){for(let t of Kn(e))Promise.allSettled([L(t)])}var Jn={add:[[`path`,{d:`M6 12h12M12 18V6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-circle":[[`path`,{d:`M12 7.75V13M21.08 8.58v6.84c0 1.12-.6 2.16-1.57 2.73l-5.94 3.43c-.97.56-2.17.56-3.15 0l-5.94-3.43a3.15 3.15 0 0 1-1.57-2.73V8.58c0-1.12.6-2.16 1.57-2.73l5.94-3.43c.97-.56 2.17-.56 3.15 0l5.94 3.43c.97.57 1.57 1.6 1.57 2.73Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.2v.1`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"alert-triangle":[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"arrow-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.57 5.93L3.5 12l6.07 6.07M20.5 12H3.67`}]],"arrow-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M14.43 5.93L20.5 12l-6.07 6.07M3.5 12h16.83`}]],at:[[`path`,{d:`M16 12a4 4 0 1 1-8 0 4 4 0 1 1 8 0M16 12v1.5a2.5 2.5 0 0 0 5 0V12a9 9 0 1 0-3.5 7.13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],calendar:[[`path`,{d:`M8 2v3M16 2v3M3.5 9.09h17M21 8.5V17c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V8.5c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.695 13.7h.009M15.695 16.7h.009M11.995 13.7h.01M11.995 16.7h.01M8.294 13.7h.01M8.294 16.7h.01`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"calendar-dots":[[`path`,{d:`M8 2v3M16 2v3M16 3.5c3.33.18 5 1.45 5 6.15v6.18c0 4.12-1 6.18-6 6.18H9c-5 0-6-2.06-6-6.18V9.65c0-4.7 1.67-5.96 5-6.15h8ZM20.75 17.6H3.25`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 8.25c-1.23 0-2.27.67-2.27 1.97 0 .62.29 1.09.73 1.39-.61.36-.96.94-.96 1.62 0 1.24.95 2.01 2.5 2.01 1.54 0 2.5-.77 2.5-2.01 0-.68-.35-1.27-.97-1.62.45-.31.73-.77.73-1.39 0-1.3-1.03-1.97-2.26-1.97Zm0 2.84c-.52 0-.9-.31-.9-.8 0-.5.38-.79.9-.79s.9.29.9.79c0 .49-.38.8-.9.8ZM12 14c-.66 0-1.14-.33-1.14-.93 0-.6.48-.92 1.14-.92.66 0 1.14.33 1.14.92 0 .6-.48.93-1.14.93Z`,fill:`currentColor`}]],chart:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.5 18.5c1.1 0 2-.9 2-2v-9c0-1.1-.9-2-2-2s-2 .9-2 2v9a2 2 0 0 0 2 2ZM8.5 18.5c1.1 0 2-.9 2-2V13c0-1.1-.9-2-2-2s-2 .9-2 2v3.5a2 2 0 0 0 2 2Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],check:[[`path`,{d:`m5 12.75 4.5 4.5L19 7.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"check-circle":[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m7.75 12 2.83 2.83 5.67-5.66`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"chevron-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 8.95l-6.52 6.52c-.77.77-2.03.77-2.8 0L4.08 8.95`}]],"chevron-left":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M15 19.92L8.48 13.4c-.77-.77-.77-2.03 0-2.8L15 4.08`}]],"chevron-right":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M8.91 19.92l6.52-6.52c.77-.77.77-2.03 0-2.8L8.91 4.08`}]],"chevron-up":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M19.92 15.05L13.4 8.53c-.77-.77-2.03-.77-2.8 0l-6.52 6.52`}]],"chevrons-up-down":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.01 20.5l-5.02-5.01M9.01 3.5v17M14.99 3.5l5.02 5.01M14.99 20.5v-17`}]],circle:[[`path`,{d:`M11.97 22c5.523 0 10-4.477 10-10s-4.477-10-10-10-10 4.477-10 10 4.477 10 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 16.23a4.23 4.23 0 1 0 0-8.46 4.23 4.23 0 0 0 0 8.46Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],clock:[[`path`,{d:`M22 12c0 5.52-4.48 10-10 10S2 17.52 2 12 6.48 2 12 2s10 4.48 10 10Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m15.71 15.18-3.1-1.85c-.54-.32-.98-1.09-.98-1.72v-4.1`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],code:[[`path`,{d:`M9 13c-.66.33-1.21.82-1.62 1.43-.23.35-.23.79 0 1.14.41.61.96 1.1 1.62 1.43M15.21 13c.66.33 1.21.82 1.62 1.43.23.35.23.79 0 1.14-.41.61-.96 1.1-1.62 1.43`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM2.23 8.01 21.45 8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],comment:[[`path`,{d:`M8.5 19H8c-4 0-6-1-6-6V8c0-4 2-6 6-6h8c4 0 6 2 6 6v5c0 4-2 6-6 6h-.5c-.31 0-.61.15-.8.4l-1.5 2c-.66.88-1.74.88-2.4 0l-1.5-2c-.16-.22-.53-.4-.8-.4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M15.996 11h.01M11.995 11h.01M7.995 11h.008`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],danger:[[`path`,{d:`M12 9v5M12 21.41H5.94c-3.47 0-4.92-2.48-3.24-5.51l3.12-5.62L8.76 5c1.78-3.21 4.7-3.21 6.48 0l2.94 5.29 3.12 5.62c1.68 3.03.22 5.51-3.24 5.51H12v-.01Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 17h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],database:[[`path`,{d:`M18.5 12.65v3.7c0 3.12-2.91 5.65-6.5 5.65s-6.5-2.53-6.5-5.65v-3.7C5.5 15.77 8.41 18 12 18s6.5-2.23 6.5-5.35Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65c0 .91-.25 1.75-.69 2.47C16.74 11.88 14.54 13 12 13c-2.54 0-4.74-1.12-5.81-2.88-.44-.72-.69-1.56-.69-2.47 0-1.56.73-2.97 1.9-3.99C8.58 2.63 10.2 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M18.5 7.65v5c0 3.12-2.91 5.35-6.5 5.35s-6.5-2.23-6.5-5.35v-5C5.5 4.53 8.41 2 12 2c1.8 0 3.42.63 4.6 1.65 1.17 1.03 1.9 2.44 1.9 4Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],display:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],document:[[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],download:[[`path`,{d:`M9 11v6l2-2M9 17l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10v5c0 5-2 7-7 7H9c-5 0-7-2-7-7V9c0-5 2-7 7-7h5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M22 10h-4c-3 0-4-1-4-4V2l8 8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],edit:[[`path`,{d:`m13.26 3.6-8.21 8.69c-.31.33-.61.98-.67 1.43l-.37 3.24c-.13 1.17.71 1.97 1.87 1.77l3.22-.55c.45-.08 1.08-.41 1.39-.75l8.21-8.69c1.42-1.5 2.06-3.21-.15-5.3-2.2-2.07-3.87-1.34-5.29.16Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.89 5.05a6.126 6.126 0 0 0 5.45 5.15M3 22h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],ellipsis:[[`path`,{d:`M5 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM19 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2ZM12 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2Z`,stroke:`currentColor`,"stroke-width":`1.5`}]],export:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-miterlimit":`10`,"stroke-width":`1.5`,d:`M9.32 6.5l2.56-2.56 2.56 2.56M11.88 14.18V4.01M4 12c0 4.42 3 8 8 8s8-3.58 8-8`}]],"file-text":[[`path`,{d:`M21 7v10c0 3-1.5 5-5 5H8c-3.5 0-5-2-5-5V7c0-3 1.5-5 5-5h8c3.5 0 5 2 5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 4.5v2c0 1.1.9 2 2 2h2M8 13h4M8 17h8`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],files:[[`path`,{d:`M17 13.4v3c0 4-1.6 5.6-5.6 5.6H7.6c-4 0-5.6-1.6-5.6-5.6v-3.8C2 8.6 3.6 7 7.6 7h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 13.4h-3.2c-2.4 0-3.2-.8-3.2-3.2V7l6.4 6.4ZM11.6 2h4M7 5c0-1.66 1.34-3 3-3h2.62M22 8v6.19c0 1.55-1.26 2.81-2.81 2.81M22 8h-3c-2.25 0-3-.75-3-3V2l6 6Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],filter:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],flag:[[`path`,{d:`M5.15 2v20M5.15 4h11.2c2.7 0 3.3 1.5 1.4 3.4l-1.2 1.2c-.8.8-.8 2.1 0 2.8l1.2 1.2c1.9 1.9 1.2 3.4-1.4 3.4H5.15`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],funnel:[[`path`,{d:`M5.4 2.1h13.2c1.1 0 2 .9 2 2v2.2c0 .8-.5 1.8-1 2.3l-4.3 3.8c-.6.5-1 1.5-1 2.3V19c0 .6-.4 1.4-.9 1.7l-1.4.9c-1.3.8-3.1-.1-3.1-1.7v-5.3c0-.7-.4-1.6-.8-2.1l-3.8-4c-.5-.5-.9-1.4-.9-2V4.2c0-1.2.9-2.1 2-2.1ZM10.93 2.1 6 10`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],gauge:[[`path`,{d:`M19.14 19.5a9.964 9.964 0 0 0 2.86-7c0-5.52-4.48-10-10-10S2 6.98 2 12.5c0 2.72 1.08 5.18 2.84 6.99`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M12 21.5a3.38 3.38 0 1 0 0-6.76 3.38 3.38 0 0 0 0 6.76ZM15.25 12H16c.82 0 1.5-.67 1.5-1.5 0-.82-.68-1.5-1.5-1.5s-1.5.67-1.5 1.5v.75c0 .41.34.75.75.75Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],grid:[[`path`,{d:`M22 8.52V3.98C22 2.57 21.36 2 19.77 2h-4.04c-1.59 0-2.23.57-2.23 1.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM22 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23h-4.04c-1.59 0-2.23.64-2.23 2.23v4.04c0 1.59.64 2.23 2.23 2.23h4.04c1.59 0 2.23-.64 2.23-2.23ZM10.5 8.52V3.98C10.5 2.57 9.86 2 8.27 2H4.23C2.64 2 2 2.57 2 3.98v4.53c0 1.42.64 1.98 2.23 1.98h4.04c1.59.01 2.23-.56 2.23-1.97ZM10.5 19.77v-4.04c0-1.59-.64-2.23-2.23-2.23H4.23c-1.59 0-2.23.64-2.23 2.23v4.04C2 21.36 2.64 22 4.23 22h4.04c1.59 0 2.23-.64 2.23-2.23Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],image:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9 10a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM2.67 18.95l4.93-3.31c.79-.53 1.93-.47 2.64.14l.33.29c.78.67 2.04.67 2.82 0l4.16-3.57c.78-.67 2.04-.67 2.82 0L22 13.9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],info:[[`g`,{transform:`rotate(180 12 12)`},[[`path`,{d:`M12 22c5.5 0 10-4.5 10-10S17.5 2 12 2 2 6.5 2 12s4.5 10 10 10ZM12 8v5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M11.995 16h.009`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]]],key:[[`path`,{d:`M19.79 14.93a7.575 7.575 0 0 1-7.6 1.87l-4.71 4.7c-.34.35-1.01.56-1.49.49l-2.18-.3c-.72-.1-1.39-.78-1.5-1.5l-.3-2.18c-.07-.48.16-1.15.49-1.49l4.7-4.7c-.8-2.6-.18-5.55 1.88-7.6 2.95-2.95 7.74-2.95 10.7 0 2.96 2.95 2.96 7.76.01 10.71ZM6.89 17.49l2.3 2.3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M14.5 11a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],list:[[`path`,{d:`M3 4.5h18M3 9.5h9.47M3 14.5h18M3 19.5h9.47`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],lock:[[`path`,{d:`M6 10V8c0-3.31 1-6 6-6s6 2.69 6 6v2M12 18.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17 22H7c-4 0-5-1-5-5v-2c0-4 1-5 5-5h10c4 0 5 1 5 5v2c0 4-1 5-5 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"maximize-4":[[`path`,{d:`M21 9V3h-6M3 15v6h6M21 3l-7.5 7.5M10.5 13.5 3 21`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],menu:[[`path`,{d:`M3 7h18M3 12h18M3 17h18`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],minus:[[`path`,{d:`M6 12h12`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],monitor:[[`path`,{d:`M6.44 2h11.11C21.11 2 22 2.89 22 6.44v6.33c0 3.56-.89 4.44-4.44 4.44H6.44C2.89 17.22 2 16.33 2 12.78V6.44C2 2.89 2.89 2 6.44 2ZM12 17.22V22M2 13h20M7.5 22h9`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],moon:[[`path`,{d:`M2.03 12.42c.36 5.15 4.73 9.34 9.96 9.57 3.69.16 6.99-1.56 8.97-4.27.82-1.11.38-1.85-.99-1.6-.67.12-1.36.17-2.08.14C13 16.06 9 11.97 8.98 7.14c-.01-1.3.26-2.53.75-3.65.54-1.24-.11-1.83-1.36-1.3C4.41 3.86 1.7 7.85 2.03 12.42Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],music:[[`path`,{d:`M6.28 22a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M20.84 16.8V4.6c0-2.6-1.63-2.96-3.28-2.51l-6.24 1.7C10.18 4.1 9.4 5 9.4 6.3v12.57`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M17.72 19.92a3.12 3.12 0 1 0 0-6.24 3.12 3.12 0 0 0 0 6.24ZM9.4 9.52 20.84 6.4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],pause:[[`path`,{d:`M10.65 19.11V4.89c0-1.35-.57-1.89-2.01-1.89H5.01C3.57 3 3 3.54 3 4.89v14.22C3 20.46 3.57 21 5.01 21h3.63c1.44 0 2.01-.54 2.01-1.89ZM21 19.11V4.89C21 3.54 20.43 3 18.99 3h-3.63c-1.43 0-2.01.54-2.01 1.89v14.22c0 1.35.57 1.89 2.01 1.89h3.63c1.44 0 2.01-.54 2.01-1.89Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],people:[[`path`,{d:`M18 7.16a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58A2.589 2.589 0 0 1 18 7.16ZM16.97 14.44c1.37.23 2.88-.01 3.94-.72 1.41-.94 1.41-2.48 0-3.42-1.07-.71-2.6-.95-3.97-.71M5.97 7.16c.06-.01.13-.01.19 0a2.573 2.573 0 0 0 2.48-2.58C8.64 3.15 7.49 2 6.06 2a2.58 2.58 0 0 0-2.58 2.58c.01 1.4 1.11 2.53 2.49 2.58ZM7 14.44c-1.37.23-2.88-.01-3.94-.72-1.41-.94-1.41-2.48 0-3.42 1.07-.71 2.6-.95 3.97-.71M12 14.63a.605.605 0 0 0-.19 0 2.573 2.573 0 0 1-2.48-2.58c0-1.43 1.15-2.58 2.58-2.58a2.58 2.58 0 0 1 2.58 2.58c-.01 1.4-1.11 2.54-2.49 2.58ZM9.09 17.78c-1.41.94-1.41 2.48 0 3.42 1.6 1.07 4.22 1.07 5.82 0 1.41-.94 1.41-2.48 0-3.42-1.59-1.06-4.22-1.06-5.82 0Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],phone:[[`path`,{d:`M21.97 18.33c0 .36-.08.73-.25 1.09-.17.36-.39.7-.68 1.02-.49.54-1.03.93-1.64 1.18-.6.25-1.25.38-1.95.38-1.02 0-2.11-.24-3.26-.73s-2.3-1.15-3.44-1.98a28.75 28.75 0 0 1-3.28-2.8 28.414 28.414 0 0 1-2.79-3.27c-.82-1.14-1.48-2.28-1.96-3.41C2.24 8.67 2 7.58 2 6.54c0-.68.12-1.33.36-1.93.24-.61.62-1.17 1.15-1.67C4.15 2.31 4.85 2 5.59 2c.28 0 .56.06.81.18.26.12.49.3.67.56l2.32 3.27c.18.25.31.48.4.7.09.21.14.42.14.61 0 .24-.07.48-.21.71-.13.23-.32.47-.56.71l-.76.79c-.11.11-.16.24-.16.4 0 .08.01.15.03.23.03.08.06.14.08.2.18.33.49.76.93 1.28.45.52.93 1.05 1.45 1.58.54.53 1.06 1.02 1.59 1.47.52.44.95.74 1.29.92.05.02.11.05.18.08.08.03.16.04.25.04.17 0 .3-.06.41-.17l.76-.75c.25-.25.49-.44.72-.56.23-.14.46-.21.71-.21.19 0 .39.04.61.13.22.09.45.22.7.39l3.31 2.35c.26.18.44.39.55.64.1.25.16.5.16.78Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`}]],play:[[`path`,{d:`M4 12V8.44c0-4.42 3.13-6.23 6.96-4.02l3.09 1.78 3.09 1.78c3.83 2.21 3.83 5.83 0 8.04l-3.09 1.78-3.09 1.78C7.13 21.79 4 19.98 4 15.56V12Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],printer:[[`path`,{d:`M7.25 7h9.5V5c0-2-.75-3-3-3h-3.5c-2.25 0-3 1-3 3v2ZM16 15v4c0 2-1 3-3 3h-2c-2 0-3-1-3-3v-4h8Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M21 10v5c0 2-1 3-3 3h-2v-3H8v3H6c-2 0-3-1-3-3v-5c0-2 1-3 3-3h12c2 0 3 1 3 3ZM17 15H7M7 11h3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],refresh:[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M22 12c0 5.52-4.48 10-10 10s-8.89-5.56-8.89-5.56m0 0h4.52m-4.52 0v5M2 12C2 6.48 6.44 2 12 2c6.67 0 10 5.56 10 5.56m0 0v-5m0 5h-4.44`}]],"rotate-ccw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M9.11 5.08c.87-.26 1.83-.43 2.89-.43 4.79 0 8.67 3.88 8.67 8.67s-3.88 8.67-8.67 8.67-8.67-3.88-8.67-8.67c0-1.78.54-3.44 1.46-4.82M7.87 5.32L10.76 2M7.87 5.32l3.37 2.46`}]],"rotate-cw":[[`path`,{stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`1.5`,d:`M14.89 5.08c-.87-.26-1.83-.43-2.89-.43-4.79 0-8.67 3.88-8.67 8.67C3.33 18.12 7.21 22 12 22s8.67-3.88 8.67-8.67c0-1.78-.54-3.44-1.46-4.82M16.13 5.32L13.24 2M16.13 5.32l-3.37 2.46`}]],search:[[`path`,{d:`M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],send:[[`path`,{d:`m7.4 6.32 8.49-2.83c3.81-1.27 5.88.81 4.62 4.62l-2.83 8.49c-1.9 5.71-5.02 5.71-6.92 0l-.84-2.52-2.52-.84c-5.71-1.9-5.71-5.01 0-6.92ZM10.11 13.65l3.58-3.59`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],server:[[`path`,{d:`M19.32 10H4.69c-1.48 0-2.68-1.21-2.68-2.68V4.69c0-1.48 1.21-2.68 2.68-2.68h14.63C20.8 2.01 22 3.22 22 4.69v2.63C22 8.79 20.79 10 19.32 10ZM19.32 22H4.69c-1.48 0-2.68-1.21-2.68-2.68v-2.63c0-1.48 1.21-2.68 2.68-2.68h14.63c1.48 0 2.68 1.21 2.68 2.68v2.63c0 1.47-1.21 2.68-2.68 2.68ZM6 5v2M10 5v2M6 17v2M10 17v2M14 6h4M14 18h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sort:[[`path`,{d:`M3 7h18M6 12h12M10 17h4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}]],stop:[[`path`,{d:`M9.3 21h5.4c4.5 0 6.3-1.8 6.3-6.3V9.3C21 4.8 19.2 3 14.7 3H9.3C4.8 3 3 4.8 3 9.3v5.4C3 19.2 4.8 21 9.3 21Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],subtitle:[[`path`,{d:`M9 22h6c5 0 7-2 7-7V9c0-5-2-7-7-7H9C4 2 2 4 2 9v6c0 5 2 7 7 7ZM17.5 17.08h-1.85M12.97 17.08H6.5M17.5 13.32h-5.53M9.27 13.32H6.5`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],sun:[[`path`,{d:`M12 18.5a6.5 6.5 0 1 0 0-13 6.5 6.5 0 0 0 0 13Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`m19.14 19.14-.13-.13m0-14.02.13-.13-.13.13ZM4.86 19.14l.13-.13-.13.13ZM12 2.08V2v.08ZM12 22v-.08.08ZM2.08 12H2h.08ZM22 12h-.08.08ZM4.99 4.99l-.13-.13.13.13Z`,stroke:`currentColor`,"stroke-width":`2`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],tag:[[`path`,{d:`m4.405 15.526 4.53 4.53a4.78 4.78 0 0 0 6.75 0l4.39-4.39a4.78 4.78 0 0 0 0-6.75l-4.54-4.52a4.75 4.75 0 0 0-3.6-1.39l-5 .24c-2 .09-3.59 1.68-3.69 3.67l-.24 5c-.06 1.35.45 2.66 1.4 3.61Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}],[`path`,{d:`M9.735 12.226a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`}],[`path`,{d:`m13.235 17.226 4-4`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-miterlimit":`10`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],text:[[`path`,{d:`M2.67 7.17V5.35c0-1.15.93-2.07 2.07-2.07h14.52c1.15 0 2.07.93 2.07 2.07v1.82M12 20.72V4.11M8.06 20.72h7.88`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"two-page":[[`path`,{d:`M22 16.74V4.67c0-1.2-.98-2.09-2.17-1.99h-.06c-2.1.18-5.29 1.25-7.07 2.37l-.17.11c-.29.18-.77.18-1.06 0l-.25-.15C9.44 3.9 6.26 2.84 4.16 2.67 2.97 2.57 2 3.47 2 4.66v12.08c0 .96.78 1.86 1.74 1.98l.29.04c2.17.29 5.52 1.39 7.44 2.44l.04.02c.27.15.7.15.96 0 1.92-1.06 5.28-2.17 7.46-2.46l.33-.04c.96-.12 1.74-1.02 1.74-1.98ZM12 5.49v15M7.75 8.49H5.5M8.5 11.49h-3`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],user:[[`path`,{d:`M12 12a5 5 0 1 0 0-10 5 5 0 0 0 0 10ZM20.59 22c0-3.87-3.85-7-8.59-7s-8.59 3.13-8.59 7`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-high":[[`path`,{d:`M2 10v4c0 2 1 3 3 3h1.43c.37 0 .74.11 1.06.3l2.92 1.83c2.52 1.58 4.59.43 4.59-2.54V7.41c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3Z`,stroke:`currentColor`,"stroke-width":`1.5`}],[`path`,{d:`M18 8a6.66 6.66 0 0 1 0 8M19.83 5.5a10.83 10.83 0 0 1 0 13`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"volume-mute":[[`path`,{d:`M15 8.37v-.96c0-2.98-2.07-4.12-4.59-2.54L7.49 6.7c-.32.19-.69.3-1.06.3H5c-2 0-3 1-3 3v4c0 2 1 3 3 3h2M10.41 19.13c2.52 1.58 4.59.43 4.59-2.54v-3.64M18.81 9.42c.9 2.15.63 4.66-.81 6.58M21.15 7.8a10.82 10.82 0 0 1-1.32 10.7M22 2 2 22`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],x:[[`path`,{d:`M6.4 6.4l11.2 11.2M17.6 6.4 6.4 17.6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-in":[[`path`,{d:`M11 20a9 9 0 1 0 0-18 9 9 0 0 0 0 18ZM8.5 11h5M11 13.5v-5M18.93 20.69c.53 1.6 1.74 1.76 2.67.36.85-1.28.29-2.33-1.25-2.33-1.14-.01-1.78.88-1.42 1.97Z`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]],"zoom-out":[[`path`,{d:`M9 11.7h5M11.5 21a9.5 9.5 0 1 0 0-19 9.5 9.5 0 0 0 0 19ZM22 22l-2-2`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`}]]},Yn=n({svgNodes:()=>Zn,svgRoot:()=>Qn}),Xn=`http://www.w3.org/2000/svg`;function Zn(e){return e.map($n)}function Qn(e,t){let n=document.createElementNS(Xn,`svg`);return er(n,e),n.append(...Zn(t)),n}function $n(e){let[t,n,r]=e,i=document.createElementNS(Xn,t);return er(i,n),typeof r==`string`?i.append(document.createTextNode(r)):r&&i.append(...Zn(r)),i}function er(e,t){for(let[n,r]of Object.entries(t))r===!0?e.setAttribute(n,``):(typeof r==`string`||typeof r==`number`)&&e.setAttribute(n,String(r))}var tr=n({GLYPH_CHUNK:()=>nr,GLYPH_PENDING_ATTRIBUTE:()=>rr,glyphNode:()=>R,lazyGlyphsRegistered:()=>mr,registerGlyphs:()=>hr}),nr=`glyphs`,rr=`data-wui-glyph-pending`,ir=`svg[${rr}]`,ar=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,or={...Jn},sr=new Map,cr=!1,lr=!1,ur=null;function dr(e){return hn(or,e)?or[e]:void 0}function fr(e,t,n,r){return{class:n?`wui-icon ${n}`:`wui-icon`,"data-icon":e,[rr]:r?!0:void 0,width:t,height:t,viewBox:`0 0 24 24`,fill:`none`,"aria-hidden":`true`}}function R(e,{size:t=16,className:n=``}={}){let r=dr(e);if(r!==void 0){let i=`${e}|${t}|${n}`,a=sr.get(i);return a===void 0&&(a=Qn(fr(e,t,n,!1),r),sr.set(i,a)),Be(a.cloneNode(!0),SVGSVGElement,`glyphNode: ${e} did not clone to an svg`)}return cr||!ar.test(e)?null:(Promise.allSettled([L(nr)]),Qn(fr(e,t,n,!0),[]))}function pr(e){let t=e instanceof Element&&e.matches(ir)?[e]:[];for(let n of[...t,...e.querySelectorAll(ir)]){let e=dr(n.getAttribute(`data-icon`)??``);e===void 0?n.remove():(n.removeAttribute(rr),n.replaceChildren(...Zn(e)))}}function mr(){return lr}function hr(e){Object.assign(or,e),cr=!0,lr=!0,pr(document),ur===null&&(ur=new MutationObserver(e=>{for(let t of e)for(let e of t.addedNodes)e instanceof Element&&pr(e)}),ur.observe(document.documentElement,{childList:!0,subtree:!0}))}var gr=n({isImeComposing:()=>_r,isImeSafeEnter:()=>vr});function _r(e){return e.isComposing||e.keyCode===229}function vr(e){return e.key===`Enter`&&!_r(e)}var yr=n({createListboxKeyNav:()=>xr,moveActiveRow:()=>Sr}),br=e=>e.target instanceof Element?e.target.tagName:void 0;function xr(e){let{getVisibleOptions:t,getActive:n,setActive:r,onEnter:i,onEscape:a,onTypeahead:o,typeaheadMs:s=500,getCount:c,getOptionAt:l,findByPrefix:u}=e,d=``,f=null,p=()=>{clearTimeout(f??void 0),f=null,d=``};return{handler:e=>{let m=c?[]:t(),h=c?c():m.length,g=()=>c?t():m,_=n(),v=br(e)===`INPUT`||br(e)===`TEXTAREA`;if(e.key===`ArrowDown`)e.preventDefault(),r(Math.min(_+1,h-1));else if(e.key===`ArrowUp`)e.preventDefault(),r(Math.max(_-1,0));else if(e.key===`Home`&&!v)e.preventDefault(),h&&r(0);else if(e.key===`End`&&!v)e.preventDefault(),h&&r(h-1);else if(e.key===`PageDown`&&!v){if(e.preventDefault(),!h)return;r(Math.min(Math.max(0,_)+8,h-1))}else if(e.key===`PageUp`&&!v){if(e.preventDefault(),!h)return;r(Math.max(Math.max(0,_)-8,0))}else if(vr(e))i&&(e.preventDefault(),i(l?l(_):m[_],g()));else if(e.key===`Escape`)a&&a(e);else if(e.key.length===1&&!e.ctrlKey&&!e.metaKey&&!e.altKey&&br(e)!==`INPUT`&&br(e)!==`TEXTAREA`){e.preventDefault(),clearTimeout(f??void 0),d+=e.key.toLowerCase(),f=setTimeout(p,s);let t=u?u(d,Math.max(0,_)):m.findIndex(e=>e.textContent.trim().toLowerCase().startsWith(d));t>=0&&(r(t),o&&o(e.key,t,g()))}},clearTypeahead:p}}function Sr(e,t){let n=e.querySelector(`.is-active`);n!==t&&(n?.classList.remove(`is-active`),t?.classList.add(`is-active`))}var Cr=n({TRUSTED_LABEL:()=>wr,optionLabelNodes:()=>Ar,optionText:()=>jr,stripTags:()=>Dr,withTrustedLabel:()=>Tr}),wr=Symbol(`wui.trustedLabel`),Tr=(e,t)=>{let n=document.createDocumentFragment();return n.append(t.cloneNode(!0)),{...e,[wr]:n}},Er=e=>`wui-flag wui-flag-${e}`,Dr=e=>String(e??``).replace(/<[^>]*>/g,``),Or=e=>{if(!e)return null;let t=String(e).toLowerCase().replace(/[^a-z0-9-]/g,``);return t?R(t):null},kr=e=>{let t=String(e??``).toLowerCase();return/^[a-z]{2}$/.test(t)?j(`span`,{class:Er(t),"aria-hidden":`true`}):null};function Ar(e){if(e==null)return[];let t=kr(e.flag),n=Or(e.icon),r=e[wr],i=r?[...r.cloneNode(!0).childNodes]:[document.createTextNode(String(e.label??``))];return!t&&!n?i:[j(`span`,{class:`wui-opt-label`},t,n,...i)]}var jr=e=>{if(e==null)return``;let t=e[wr];return t?t.textContent??``:Dr(e.label)},Mr=n({SELECT_TEXT:()=>Nr}),Nr={addLabel:`Add '{query}'`,addTagsLabel:`Add tags`,allCountriesLabel:`All countries`,clearAllLabel:`Clear all`,clearSelectionLabel:`Clear selection`,countryPlaceholder:`Select country`,countrySearchPlaceholder:`Search countries…`,createLabel:`Create '{text}'`,defaultSearchPlaceholder:`Search {labelText}…`,emptyText:`No matches`,fallbackName:`Select`,helpLabel:`More information`,hintText:`Type to search…`,invalidMessage:`That option is not available.`,loadingMoreText:`Loading more…`,optionalLabel:`(optional)`,partLoadMessage:`This control could not load. Reload the page.`,placeholder:`Select…`,recentsLabel:`Recent`,removeText:`Remove {text}`,searchingText:`Searching…`,selectedText:`{count} selected`,suggestedLabel:`Suggested`,tagPlaceholder:`Add…`},Pr=n({clearOptions:()=>Hr,drawn:()=>Lr,filterOptions:()=>Ir,nodesSignature:()=>zr,optionRow:()=>Xr,posAttrMap:()=>Rr,refreshWindow:()=>Kr,registerWindowImpl:()=>Vr,renderOptions:()=>Ur,revealRow:()=>qr,rowId:()=>Wr,rowIndexByPrefix:()=>Yr,rowIndexOfValue:()=>Jr,windowImplRegistered:()=>Br}),Fr=()=>M(`select`,Nr);function Ir(e,t){let n=String(t??``).trim().toLowerCase();return n?e.filter(e=>[jr(e),e.description,e.meta].some(e=>String(e??``).toLowerCase().includes(n))):e}var Lr=new WeakMap,Rr=e=>e?{"data-index":String(e.index),"aria-setsize":String(e.size),"aria-posinset":String(e.index+1)}:{},zr=e=>e.map(e=>e instanceof Element?e.outerHTML:e.textContent??``).join(``),z;function Br(){return z!==void 0}function Vr(e){z=e}function Hr(e){z?.clear(e),Lr.delete(e),e.replaceChildren()}function Ur(e,t,n={}){let{selected:r=[],query:i=``,status:a=`idle`,emptyText:o=Fr().emptyText,searchingText:s=Fr().searchingText,loadingMoreText:c=Fr().loadingMoreText,hintText:l=Fr().hintText,actionRow:u=[],recents:d=null}=n,f=new Set(r.map(String)),p=Ir(t,i),m=e.id,h=u.filter(e=>e.position===`top`),g=u.filter(e=>e.position===`bottom`),_=d?.options.length?d.options:[],v=h.length+_.length+p.length+g.length,y=p.length>300,b=z,x=y&&b!==void 0,S=e=>x?{index:e,size:v}:void 0,C=0,ee=e=>{let t=C++;return j(`button`,{type:`button`,role:`option`,id:Wr(m,t),class:`wui-select-option wui-select-add`,"data-value":String(e.value??``),"data-custom":`true`,"aria-selected":`false`,...Rr(S(t))},e.label)},w=e=>{let t=C++;return Xr(e,Wr(m,t),f.has(String(e.value)),S(t))},te=h.map(ee),T=_.length&&d?[j(`div`,{class:`wui-select-group`},d.label),..._.map(w),j(`div`,{class:`wui-select-sep`,"aria-hidden":`true`})]:[],ne=C,E=[];if(x)C+=p.length;else{let e=``;for(let t of p)t.group&&t.group!==e&&E.push(j(`div`,{class:`wui-select-group`},t.group)),e=t.group??``,E.push(w(t))}let D=g.map(ee),O=[];if(a===`loading`||a===`more`?O=[j(`div`,{class:`wui-select-loading`},j(`span`,{class:`wui-select-spinner spinner-border spinner-border-sm`,role:`status`,"aria-hidden":`true`}),a===`more`?c:s)]:a===`hint`?O=[j(`div`,{class:`wui-select-hint`},l)]:(a===`empty`||p.length===0&&u.length===0)&&(O=[j(`div`,{class:`wui-select-empty`},o)]),x&&b){let n=[...te,...T],r=[...D,...O];return b.render(e,{options:t,query:i,rows:p,pre:n,post:r,preSig:zr(n),postSig:zr(r),picked:f,top:h,recent:_,bottom:g,bodyBase:ne,total:v}),{rows:v,windowed:!0,long:y}}b?.clear(e);let re=[...te,...T,...E,...D,...O],ie=zr(re);return Lr.get(e)===ie||(Lr.set(e,ie),e.replaceChildren(...re)),{rows:C,windowed:!1,long:y}}var Wr=(e,t)=>`${e}-opt-${t}`,Gr=e=>[...e.querySelectorAll(`.wui-select-option`)];function Kr(e){return z?z.refresh(e):!1}function qr(e,t){return z?z.reveal(e,t):Gr(e)[t]??null}function Jr(e,t){if(z)return z.indexOfValue(e,t);let n=new Set(t.map(String));return Gr(e).findIndex(e=>n.has(e.dataset.value??``))}function Yr(e,t){return z?z.indexByPrefix(e,t):Gr(e).findIndex(e=>(e.textContent??``).trim().toLowerCase().startsWith(t))}function Xr(e,t,n,r){let i=!!e.disabled,a={id:t,role:`option`,"data-value":String(e.value??``),"aria-selected":String(n),"aria-disabled":i?`true`:void 0,title:i&&e.disabledHint?e.disabledHint:void 0,...Rr(r)},o=j(`span`,{class:`wui-select-check`,"aria-hidden":`true`},R(`check`));if(!e.description&&!e.meta)return j(`button`,{type:`button`,class:`wui-select-option${n?` selected`:``}`,...a},$t(e),j(`span`,{class:`wui-select-opt-name`},...Ar(e)),o);let s=e.description?j(`span`,{class:`wui-select-opt-desc`},e.description):null,c=e.meta?j(`span`,{class:`wui-select-opt-meta`},e.meta):null;return j(`div`,{class:`wui-select-option wui-select-option-rich${n?` selected`:``}`,...a},$t(e),j(`span`,{class:`wui-select-option-text`},j(`span`,{class:`wui-opt-label`},...Ar(e)),s),c,o)}var Zr=Object.freeze([`single`,`multiple`,`search`,`tag`,`country`]),B=e=>e===`multiple`||e===`tag`,Qr=n({registerSelectPart:()=>ei,selectPart:()=>ti}),$r=new Map;function ei(e,t){$r.set(e,t)}function ti(e){return $r.get(e)}var ni={chips:`select-chips`,search:`select-search`,country:`phone`,recents:`select-recents`};function ri(e){let t=hn(ni,e)?ni[e]:void 0;if(!t)return Promise.reject(Error(`Unknown <wui-select> part: ${e}.`));let n=ti(e);return n?Promise.resolve(n):L(t).then(()=>A(ti(e),`The ${e} part of <wui-select> did not register.`))}var ii=n({searchesRemotely:()=>ai}),ai=e=>typeof e.loadOptions==`function`||!!e.getAttribute(`source`)||e.hasAttribute(`remote`),oi=()=>L(`select-window`),si={requiredFieldMessage:`Please fill in this field.`},ci={clearLabel:`Clear search`,placeholder:`Search…`,searchLabel:`Search`},li=n({WuiSelect:()=>pi}),V=()=>M(`select`,Nr),ui=()=>M(`search`,ci),di=()=>M(`field`,si),fi=160,pi=class extends s{static get observedAttributes(){return`class.mode.value.placeholder.search-placeholder.empty-text.searchable.clearable.disabled.readonly.loading.required.size.density.icon.prefix.open.open-on-hover.lazy-options.aria-label.aria-describedby.aria-invalid.min-chars.debounce.source.remote.allow-custom.add-label.searching-text.hint-text.value-label.value-avatar.value-initials.max-tags.allow-duplicates.separators.pattern.invalid-message.create-label.collapse-chips.selected-text.clear-all-label.countries.suggested.suggested-label.all-countries-label.recents-key.recents-limit.recents-label`.split(`.`)}constructor(){super(),P(this,`_internals`,void 0),P(this,`_value`,void 0),P(this,`_optionsProp`,void 0),P(this,`_partOptions`,void 0),P(this,`_known`,void 0),P(this,`_loadOptionsFn`,void 0),P(this,`_validateFn`,void 0),P(this,`_declared`,void 0),P(this,`_query`,void 0),P(this,`_ownsFilter`,void 0),P(this,`_active`,void 0),P(this,`_rows`,void 0),P(this,`_windowed`,void 0),P(this,`_windowLoad`,void 0),P(this,`_windowFailed`,void 0),P(this,`_scrollFrame`,void 0),P(this,`_endFrame`,void 0),P(this,`_status`,void 0),P(this,`_error`,void 0),P(this,`_nav`,void 0),P(this,`_parts`,void 0),P(this,`_partSig`,void 0),P(this,`_partsMounted`,void 0),P(this,`_partToken`,void 0),P(this,`_rendered`,void 0),P(this,`_searchShown`,void 0),P(this,`_defaultValue`,void 0),P(this,`_warnedMode`,void 0),P(this,`_warnedDensity`,void 0),P(this,`_hoverTimer`,void 0),P(this,`_hoverOpened`,void 0),P(this,`_onHoverOver`,void 0),P(this,`_onHoverOut`,void 0),P(this,`_panelShown`,void 0),P(this,`_pressOpen`,void 0);try{this._internals=this.attachInternals()}catch{this._internals=null}this._value=``,this._optionsProp=null,this._partOptions=null,this._known=new Map,this._loadOptionsFn=null,this._validateFn=null,this._declared=void 0,this._query=``,this._ownsFilter=!1,this._active=-1,this._rows=0,this._windowed=!1,this._windowLoad=null,this._windowFailed=!1,this._scrollFrame=null,this._endFrame=null,this._status=`idle`,this._error=``,this._nav=null,this._parts=null,this._partSig=``,this._partsMounted=!1,this._partToken=0,this._rendered=!1,this._searchShown=!1,this._defaultValue=void 0,this._warnedMode=null,this._hoverTimer=null,this._hoverOpened=!1,this._panelShown=!1,this._pressOpen=null,this._onHoverOver=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&(this._clearHover(),!this._menuOpen()&&this._hoverEligible()&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,!this._menuOpen()&&this._hoverEligible()&&(this._open({focus:!1}),this._hoverOpened=!0)},_i)))},this._onHoverOut=e=>{e.pointerType===`mouse`&&this._hoverZone(e.target)&&!this._hoverZone(e.relatedTarget)&&(this._clearHover(),this._menuOpen()&&this.hasAttribute(`open-on-hover`)&&(this._hoverTimer=setTimeout(()=>{this._hoverTimer=null,this._close()},vi)))}}connectedCallback(){this.addEventListener(`pointerover`,this._onHoverOver),this.addEventListener(`pointerout`,this._onHoverOut),this._rendered||this.render(),this._ensureParts(),this._mountParts()}disconnectedCallback(){this.removeEventListener(`pointerover`,this._onHoverOver),this.removeEventListener(`pointerout`,this._onHoverOut),this._clearHover(),this._dropMenu(),this._teardown(),this._teardownParts()}attributeChangedCallback(e,t,n){e===`class`?this._syncUnderline():e===`value`?(this._value=wi(n,B(this.mode)),this._applyValue()):e===`aria-invalid`?this._syncInvalid():e===`open`?this._rendered&&(this.hasAttribute(`open`)?this._open({focus:!1}):this._close({force:!0})):e===`open-on-hover`?this.hasAttribute(`open-on-hover`)||this._clearHover():e!==`lazy-options`&&(e===`mode`&&(this._value=wi(this._value,B(this.mode)),this._partOptions=null,this._known.clear(),this._ensureParts()),(e===`source`||e===`remote`||e===`recents-key`)&&this._ensureParts(),Si.has(e)?this._rendered&&(this._drawValue(),this.renderList()):xi.has(e)?this._remountParts():this._rendered&&this.render())}formResetCallback(){if(this.value=this._defaultValue??``,!this._rendered)return;let e=this._refs();e.input&&(e.input.value=``,e.input.removeAttribute(`aria-invalid`)),e.search&&(e.search.value=``),this.setError(``),this._query!==``&&this._onQueryChange(``)}get mode(){let e=this.getAttribute(`mode`);return e===null?`single`:hi(e)?e:(e!==this._warnedMode&&(this._warnedMode=e,tn(`<wui-select> mode "${e}" is not one of ${Zr.join(`, `)}; it is treated as "single".`)),`single`)}_checkDensity(){let e=this.getAttribute(`density`);e===null||gi.includes(e)||e===this._warnedDensity||(this._warnedDensity=e,tn(`<wui-select> density "${e}" is not one of ${gi.join(`, `)}; it is treated as "comfortable".`))}set mode(e){this.setAttribute(`mode`,String(e))}get value(){return Array.isArray(this._value)?this._value.slice():this._value}set value(e){this._value=wi(e,B(this.mode)),this._applyValue()}get options(){return this._readOptions()}set options(e){this._optionsProp=Array.isArray(e)?e:null,this.mode!==`country`&&(this._partOptions=null);for(let e of this._activePartsList())e.onOptions?.();if(this._rendered){if(this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._autoSearch()!==this._searchShown){this.render();return}this._drawValue(),this.renderList()}}get loadOptions(){return this._loadOptionsFn}set loadOptions(e){this._loadOptionsFn=typeof e==`function`?e:null,this._ensureParts()}get validate(){return this._validateFn}set validate(e){this._validateFn=typeof e==`function`?e:null}commit(e,t={}){this.value=e,this.dispatchEvent(new CustomEvent(`change`,{bubbles:!0,detail:{isCustom:!!t.isCustom}}))}setPartOptions(e){this._partOptions=Array.isArray(e)?e:null,this._drawValue(),this.renderList()}setStatus(e){this._status=e,this.renderList()}setError(e){this._error=e?String(e):``,this._syncError()}openMenu(){F(this)||this._open({focus:!1})}closeMenu({focusControl:e=!1}={}){this._close(),e&&this._refs().control?.focus()}renderList(){let e=this._refs();if(!e.list)return;let t=this._ownsFilter?``:this._query,n=this._actionRows(),r=this._recents();if(this.hasAttribute(`lazy-options`)&&!this._menuOpen()){this._rows=Ir(this._listOptions(),t).length+n.length+(r?.options.length??0),this._windowed=!1,Hr(e.list),this._anchorMenu();return}let i=Ur(e.list,this._listOptions(),{selected:this._selectedValues(),query:t,status:this._status,emptyText:this.getAttribute(`empty-text`)||V().emptyText,searchingText:this.getAttribute(`searching-text`)||V().searchingText,loadingMoreText:V().loadingMoreText,hintText:this.getAttribute(`hint-text`)||void 0,actionRow:n,recents:r});this._rows=i.rows,this._windowed=i.windowed,i.long&&!i.windowed&&!this._windowFailed&&this._loadWindow(),this._active>=this._rowCount()&&(this._active=-1),this._active>=0&&this._setActive(this._active,{reveal:!1}),this._anchorMenu(),this._watchListEnd()}_watchListEnd(){this._endFrame===null&&this._activePartsList().some(e=>e.onListEnd)&&(this._endFrame=requestAnimationFrame(()=>{this._endFrame=null,this._checkListEnd()}))}_checkListEnd(){let e=this._refs().list;if(e?.clientHeight&&this._menuOpen()&&!(e.scrollTop+e.clientHeight<e.scrollHeight-fi))for(let e of this._activePartsList())e.onListEnd?.()}render(){this._dropMenu();let e=this._carry();this._teardownParts(),this._snapshotDeclared();let t=this.mode;this._checkDensity();let n=B(t),r=t===`tag`,i=n&&(r||this.hasAttribute(`allow-custom`));this._value=wi(this._value,n),this._defaultValue===void 0&&n&&this._value.length===0&&(this._value=this._declaredSelected()),n||this._preselect(),this._defaultValue===void 0&&(this._defaultValue=wi(this._value,n));let a=this.getAttribute(`size`),o=a===`sm`?` wui-select-sm`:a===`lg`?` wui-select-lg`:a===`xl`?` wui-select-xl`:``,s=this.getAttribute(`icon`),c=this.getAttribute(`prefix`),l=this.hasAttribute(`clearable`),u=this.hasAttribute(`disabled`);if(!this.id){let e=crypto.getRandomValues(new Uint8Array(8));this.id=`wui-select-${Array.from(e,e=>e.toString(16).padStart(2,`0`)).join(``)}`}let d=`${this.id}-listbox`,f=`${this.id}-entry-error`,p=this.getAttribute(`aria-describedby`)?.trim(),m=p?`${p} ${f}`:f,h=this.hasAttribute(`aria-invalid`)||!!this._error,g=this.hasAttribute(`required`)&&!i,_=this._accessibleName(),v=i?{}:{role:`combobox`,"aria-haspopup":`listbox`,"aria-expanded":`false`,"aria-controls":d},y={"aria-label":_,"aria-describedby":m,"aria-invalid":h?`true`:void 0,"aria-required":g?`true`:void 0},b=n?j(`div`,{class:`form-control wui-select-control wui-select-multi`,...v,...y,"aria-disabled":u?`true`:void 0,tabindex:!u&&!r?`0`:void 0}):j(`button`,{type:`button`,class:`form-control wui-select-control`,...v,...y,disabled:u||void 0}),x=[s?R(s,{className:`wui-select-icon`}):null,c?j(`span`,{class:`wui-select-prefix`},c):null,j(`span`,{class:`wui-select-value`,"data-label":!0}),l?j(`span`,{class:`wui-select-reset`,role:`button`,"aria-label":V().clearSelectionLabel,hidden:!0},R(`x`)):null,R(`chevron-down`,{className:`wui-select-caret`})];b.append(...x.filter(e=>e!==null));let S=this.getAttribute(`searchable`),C=S===null?t===`multiple`||t===`country`||this._autoSearch():S!==`false`,ee=t===`search`||C&&!i;this._searchShown=ee;let w=this.getAttribute(`search-placeholder`)||(t===`country`?V().countrySearchPlaceholder:ui().placeholder),te=j(`div`,{class:`wui-select-menu wui-select-menu-fixed`,popover:`auto`},ee?j(`div`,{class:`wui-select-search`},R(`search`),j(`input`,{class:`wui-select-input`,placeholder:w,"aria-label":w,"aria-autocomplete":`list`}),j(`button`,{type:`button`,class:`wui-select-clear`,"aria-label":ui().clearLabel,hidden:!0},R(`x`))):null,j(`div`,{class:`wui-select-options`,role:`listbox`,id:d,tabindex:`-1`,"aria-multiselectable":n?`true`:void 0})),T=j(`div`,{class:`field-error wui-select-error`,id:f,"aria-live":`polite`,hidden:!this._error||void 0},this._error||null);this.replaceChildren(j(`div`,{class:`wui-select${o}`},b,te),T),this._rendered=!0,this._syncMirror(),this._syncValidity(),this._drawValue(),this._syncReset(),this.renderList(),this._wire(),sn(this,this.querySelector(`.wui-select-control`)),this._syncUnderline(),this._mountParts(e)}_accessibleName(){return this.getAttribute(`aria-label`)||this.getAttribute(`placeholder`)||V().fallbackName}_snapshotDeclared(){if(this._declared)return;let e=[...this.querySelectorAll(`:scope > wui-option`)];e.length&&(this._declared=e.map(e=>{let t=document.createDocumentFragment();for(let n of e.childNodes)t.append(n.cloneNode(!0));let n={value:e.getAttribute(`value`)??Ai(e).trim(),label:t.textContent??``,selected:e.hasAttribute(`selected`)};for(let[t,r]of Ci){let i=e.getAttribute(t);i&&(n[r]=i)}return e.hasAttribute(`disabled`)&&(n.disabled=!0),Tr(n,t)}))}_readOptions(){return this.mode===`country`?this._partOptions||[]:this._partOptions?this._partOptions:this._optionsProp?this._optionsProp:(this._snapshotDeclared(),this._declared||[])}_listOptions(){let e=this._readOptions(),t=this.getAttribute(`value-label`);if(this.mode!==`search`||!t||this._value===``)return e;let n=String(this._value);return e.some(e=>String(e.value)===n)?e:[...e,{value:n,label:t}]}_declaredSelected(){return this._optionsProp?[]:(this._declared??[]).filter(e=>e.selected).map(e=>String(e.value))}_preselect(){let e=this._readOptions(),t=this._value!==``&&e.find(e=>String(e.value)===this._value)||e.find(e=>`selected`in e&&!!e.selected);t&&(this._value=String(t.value))}_optionFor(e){let t=String(e),n=this._readOptions().find(e=>String(e.value)===t);return n?(this._known.set(t,n),n):this._known.get(t)}_placeholder(){return this.getAttribute(`placeholder`)||bi()[this.mode]}_hasValue(){return Array.isArray(this._value)?this._value.length>0:this._value!==``}_selectedValues(){return Array.isArray(this._value)?this._value:this._value===``?this._listOptions().some(e=>String(e.value)===``)?[``]:[]:[this._value]}_applyValue(){this._syncMirror(),this._syncValidity(),this._rendered&&(this._drawValue(),this._syncReset(),this.renderList())}_syncMirror(){B(this.mode)?pn(this,this._selectedValues()):fn(this,this._value)}_drawValue(){let e=this._refs();if(!e.value)return;let t=B(this.mode),n=t?void 0:this._optionFor(this._value);if(this._syncTitle(n),this._syncValueAvatar(),this._activePartsList().some(e=>e.renderValue?.()===!0))return;if(t){e.value.classList.remove(`wui-select-placeholder`),e.value.textContent=``;return}e.value.classList.toggle(`wui-select-placeholder`,!n);let r=this._placeholder();e.value.replaceChildren(...n?Ar(n):r?[r]:[])}_syncTitle(e){let t=this.querySelector(`.wui-select-control`);if(!t)return;let n=e&&!this.hasAttribute(`title`)?jr(e).trim():``;n?t.setAttribute(`title`,n):t.removeAttribute(`title`)}_syncValueAvatar(){let e=this.querySelector(`.wui-select-control`);if(!e)return;e.querySelector(`:scope > .wui-select-value-avatar`)?.remove();let t=!B(this.mode)&&this._hasValue()?$t({avatar:this.getAttribute(`value-avatar`),initials:this.getAttribute(`value-initials`)},`avatar-xs`):null;e.classList.toggle(`wui-has-value-avatar`,!!t),t&&e.prepend(j(`span`,{class:`wui-select-value-avatar`,"aria-hidden":`true`},t))}_syncValidity(){let e=this._internals;if(typeof e?.setValidity==`function`){if(this.hasAttribute(`required`)&&!this._hasValue()){let t=this.querySelector(`.wui-select-control`);e.setValidity({valueMissing:!0},di().requiredFieldMessage,t instanceof HTMLElement?t:void 0)}else e.setValidity({})}}_syncReset(){let e=H(this,`.wui-select-reset`,HTMLElement);e&&(e.hidden=!(this.hasAttribute(`clearable`)&&this._hasValue()&&!F(this)))}_syncUnderline(){this.querySelector(`.wui-select-control`)?.classList.toggle(`wui-input-underline`,this.classList.contains(`wui-input-underline`))}_syncInvalid(){let e=this.querySelector(`.wui-select-control`);e&&(this.hasAttribute(`aria-invalid`)||this._error?e.setAttribute(`aria-invalid`,`true`):e.removeAttribute(`aria-invalid`))}_syncError(){let e=H(this,`.wui-select-error`,HTMLElement);e&&(e.textContent=this._error,e.hidden=!this._error),this._syncInvalid()}_refs(){return{control:H(this,`.wui-select-control`,HTMLElement),value:H(this,`.wui-select-value`,HTMLElement),menu:H(this,`.wui-select-menu`,HTMLElement),list:H(this,`.wui-select-options`,HTMLElement),search:H(this,`.wui-select-search input`,HTMLInputElement),input:H(this,`.wui-select-draft`,HTMLInputElement)}}_menuOpen(){let e=H(this,`.wui-select-menu`,HTMLElement);return e!==null&&k(e)}_hoverZone(e){if(!(e instanceof Element))return!1;let t=e.closest(`.wui-select-control, .wui-select-menu`);return t!==null&&this.contains(t)}_hoverEligible(){if(!this.hasAttribute(`open-on-hover`)||F(this)||this.mode===`tag`)return!1;let e=this._refs();return e.search===null&&e.input===null}_clearHover(){this._hoverTimer!==null&&clearTimeout(this._hoverTimer),this._hoverTimer=null}_autoSearch(){return this.mode===`single`&&this.getAttribute(`searchable`)===null&&this._readOptions().length>yi}_visible(){let e=this._refs();return e.list?ki(e.list,`.wui-select-option`):[]}_rowCount(){return this._windowed?this._rows:this._visible().length}_rowEl(e){if(!this._windowed)return this._visible()[e];let t=this._refs().list?.querySelector(`[data-index="${e}"]`);return t instanceof HTMLElement?t:void 0}_setActive(e,{reveal:t=!0}={}){let n=this._refs();if(!n.list||!n.control)return;this._active=e;let r=null;e>=0&&e<this._rowCount()&&(r=this._rowEl(e)??(this._windowed&&t?qr(n.list,e):null)),Sr(n.list,r),r?(t&&r.scrollIntoView({block:`nearest`}),n.control.setAttribute(`aria-activedescendant`,r.id)):n.control.removeAttribute(`aria-activedescendant`)}_onListScroll(){this._scrollFrame=null;let e=this._refs().list;e&&(this._windowed&&Kr(e)&&this._active>=0&&this._setActive(this._active,{reveal:!1}),this._checkListEnd())}_actionRows(){let e=[];for(let t of this._activePartsList()){let n=t.actionRow?.(this._query);n&&e.push(n)}return e}_recents(){if(this._query.trim()!==``)return null;for(let e of this._activePartsList()){let t=e.recents?.(this._listOptions());if(t)return t}return null}_menuPlacement(e,t){let n=this.hasAttribute(`open`)?{below:!0}:{};if(this.getAttribute(`density`)!==`compact`)return{matchWidth:!0,...n};let r=e.getBoundingClientRect();return t.style.width=`max-content`,t.style.minWidth=`${r.width}px`,t.style.maxWidth=`280px`,n}_anchorMenu(){let e=this._refs();e.control&&e.menu&&this._menuOpen()&&w(e.control,e.menu,this._menuPlacement(e.control,e.menu))}_showMenu(e,t){je(e,t,{...this._menuPlacement(e,t),mode:`auto`,keepOffscreen:this.hasAttribute(`open`),onClosed:()=>this._onPanelClosed()}),this._panelShown=!0}_onPanelClosed(){if(!this._panelShown)return;this._panelShown=!1;let e=this._refs();e.control&&(e.control.setAttribute(`aria-expanded`,`false`),this._setActive(-1),this._nav?.clearTypeahead(),this.dispatchEvent(new CustomEvent(`wui-select:close`,{bubbles:!0})))}_open({focus:e=!0}={}){let t=this._refs();if(!t.menu||!t.control)return;let n=this._menuOpen();this._hoverOpened=!1,t.control.setAttribute(`aria-expanded`,`true`),this._query=t.input?t.input.value:``,this._ownsFilter=this._ownsFilter&&this._query!==``;let r=H(this,`.wui-select-search .wui-select-clear`,HTMLElement);if(r&&(r.hidden=!0),t.search&&(t.search.value=``),n||this._showMenu(t.control,t.menu),this.renderList(),e&&(t.search?.focus(),this._setActive(this._windowed&&t.list?Jr(t.list,this._selectedValues()):this._visible().findIndex(e=>e.classList.contains(`selected`)))),!n){this.dispatchEvent(new CustomEvent(`wui-select:open`,{bubbles:!0}));for(let e of this._activePartsList())e.onOpen?.()}}_close({force:e=!1}={}){if(!e&&this.hasAttribute(`open`))return;let t=this._refs();if(!t.menu||!t.control)return;this._hoverOpened=!1;let n=t.menu.contains(document.activeElement);k(t.menu)&&Me(t.menu),this._onPanelClosed(),n&&t.control.focus()}_onQueryChange(e){this._query=e,this._setActive(-1);let t=H(this,`.wui-select-search .wui-select-clear`,HTMLElement);t&&(t.hidden=!e);let n=!1;for(let t of this._activePartsList())t.onQuery?.(e)===!0&&(n=!0);this._ownsFilter=n,this.renderList()}_pick(e){if(e.getAttribute(`aria-disabled`)===`true`)return;let t=e.dataset.custom===`true`,n=e.dataset.value??``,r=t?{value:n,label:Ai(e).trim()}:this._listOptions().find(e=>String(e.value)===n)??{value:n,label:n},i=this._activePartsList().some(e=>e.onPick?.(r,{isCustom:t})===!0);B(this.mode)||(i||this.commit(n,{isCustom:t}),this._close(),this._refs().control?.focus())}_draftOpens(){return this.mode===`multiple`?this.hasAttribute(`allow-custom`):this.mode===`tag`&&ai(this)}_onKeyDown(e){if(!F(this)){for(let t of this._activePartsList())if(t.onKey?.(e)===!0)return;if(!this._menuOpen()){if(e.target instanceof HTMLInputElement){if(e.key!==`ArrowDown`||!this._draftOpens())return;this._open({focus:!1})}else{(e.key===`ArrowDown`||vr(e)||e.key===` `)&&(e.preventDefault(),this._open({focus:!0}));return}}A(this._nav,`Listbox keys are not wired.`).handler(e)}}_wire(){this._teardown();let e=this._refs(),t=e.control,n=e.list;if(!t||!e.menu||!n)return;let r=A(H(this,`.wui-select`,HTMLElement),`The select wrapper is missing.`),i=H(this,`.wui-select-search .wui-select-clear`,HTMLElement),a=H(this,`.wui-select-reset`,HTMLElement);this._nav=xr({getVisibleOptions:()=>this._visible(),getActive:()=>this._active,setActive:e=>this._setActive(e),getCount:()=>this._rowCount(),getOptionAt:e=>this._rowEl(e),findByPrefix:e=>this._windowed?Yr(n,e):this._visible().findIndex(t=>t.textContent.trim().toLowerCase().startsWith(e)),onEnter:(e,t)=>{if(e)this._pick(e);else if(this._query.trim()!==``){let e=t.find(e=>e.dataset.custom===`true`);if(e)this._pick(e);else if(t.length===1){let e=t[0];e&&this._pick(e)}}},onEscape:e=>{e.preventDefault(),this._nav?.clearTypeahead(),this._close(),t.focus()}}),r.addEventListener(`keydown`,e=>this._onKeyDown(e)),r.addEventListener(`input`,e=>{let t=e.target;if(!(t instanceof HTMLInputElement)||!t.matches(`.wui-select-input, .wui-select-draft`))return;this._onQueryChange(t.value);let n=t.matches(`.wui-select-draft`),r=this._rows>0||this._actionRows().length>0;n&&r&&!this._menuOpen()&&!F(this)&&this._draftOpens()&&this._open({focus:!1})}),r.addEventListener(`focusout`,e=>{let t=e.relatedTarget;t instanceof Node&&this.contains(t)||!this._activePartsList().some(e=>e.onBlur?.()===!0)&&t&&this._close()}),i?.addEventListener(`click`,()=>{let t=A(e.search,`The search input is missing.`);t.value=``,this._onQueryChange(``),t.focus()}),t.addEventListener(`pointerdown`,()=>{this._pressOpen=this._menuOpen()}),t.addEventListener(`click`,e=>{if(e.target instanceof Element&&e.target.closest(`[data-remove]`))return;if(this.mode===`tag`){if(F(this))return;this._refs().input?.focus(),!this._menuOpen()&&this._draftOpens()&&this._open({focus:!1});return}if(e.target instanceof HTMLInputElement){!this._menuOpen()&&!F(this)&&this._open({focus:!1});return}let t=e.detail>0&&this._pressOpen!==null?this._pressOpen:this._menuOpen();this._pressOpen=null,this._clearHover(),this._hoverOpened&&t?(this._hoverOpened=!1,this._open({focus:!0})):t?this._close():F(this)||this._open({focus:!0})}),a?.addEventListener(`click`,e=>{e.stopPropagation(),this.commit(B(this.mode)?[]:``),this._close(),t.focus()}),n.addEventListener(`click`,n=>{let r=Oi(n).closest(`.wui-select-option`);if(r instanceof HTMLElement&&(this._pick(r),B(this.mode))){let n=this.querySelector(`.wui-select-draft`);(e.search??(n instanceof HTMLElement?n:t)).focus()}}),n.addEventListener(`mousedown`,e=>{B(this.mode)&&e.target instanceof Element&&e.target.closest(`.wui-select-option`)&&e.preventDefault()}),n.addEventListener(`mousemove`,e=>{let t=Oi(e).closest(`.wui-select-option`);t instanceof HTMLElement&&!t.classList.contains(`is-active`)&&this._setActive(this._windowed?Number(t.dataset.index):this._visible().indexOf(t),{reveal:!1})}),n.addEventListener(`scroll`,()=>{this._scrollFrame===null&&(this._scrollFrame=requestAnimationFrame(()=>this._onListScroll()))},{passive:!0}),n.addEventListener(`mouseleave`,()=>this._setActive(-1)),n.addEventListener(`error`,e=>{let t=e.target;t instanceof Element&&t.classList.contains(`avatar-img`)&&t.remove()},!0),this.hasAttribute(`open`)&&this._open({focus:!1})}_teardown(){this._nav?.clearTypeahead(),this._scrollFrame!==null&&cancelAnimationFrame(this._scrollFrame),this._scrollFrame=null,this._endFrame!==null&&cancelAnimationFrame(this._endFrame),this._endFrame=null}_dropMenu(){let e=H(this,`.wui-select-menu`,HTMLElement);e&&Me(e)}_activePartsList(){return this._partsMounted?A(this._parts,`The mounted parts are missing.`):[]}_ensureParts(){if(!this.isConnected)return;(this.hasAttribute(`source`)||this.hasAttribute(`remote`)||this.hasAttribute(`recents-key`)||this._loadOptionsFn!==null)&&this._loadWindow();let e=Ei(this,this.mode),t=e.join(`,`);if(t===this._partSig)return;this._teardownParts(),this._parts=null,this._partSig=t;let n=++this._partToken;Promise.all(e.map(e=>ji(this,e))).then(e=>{n===this._partToken&&(this._parts=e.filter(e=>e!==null),this._mountParts())})}_loadWindow(){this._windowLoad===null&&(this._windowLoad=oi().then(()=>this.renderList(),()=>{this._windowFailed=!0,document.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{chunk:`select-window`}})),this.setError(V().partLoadMessage)}))}_mountParts(e={draft:``,query:``}){if(!this._parts||this._partsMounted||!this._rendered||!this.isConnected)return;this._partsMounted=!0;let t=mi(this._refs());for(let n of this._parts)n.mount(this,t,{carry:e});this._drawValue(),this.renderList()}_teardownParts(){let e=this._activePartsList();this._partsMounted=!1;for(let t of e)t.teardown()}_remountParts(){if(!this._partsMounted)return;let e=this._carry();this._teardownParts(),this._mountParts(e)}_carry(){let e=this._refs();return{draft:e.input?.value??``,query:e.search?.value??``}}};P(pi,`formAssociated`,!0);var mi=e=>{let{control:t,value:n,menu:r,list:i}=e;return{control:A(t,`control missing`),value:A(n,`value missing`),menu:A(r,`menu missing`),list:A(i,`list missing`),search:e.search,input:e.input}},hi=e=>Zr.includes(e),gi=[`comfortable`,`compact`],_i=150,vi=250,yi=10,bi=()=>{let e=V();return{single:e.placeholder,search:e.placeholder,multiple:e.placeholder,tag:e.tagPlaceholder,country:e.countryPlaceholder}},xi=new Set([`countries`,`suggested`,`suggested-label`,`all-countries-label`,`max-tags`,`pattern`,`collapse-chips`,`source`,`remote`,`min-chars`]),Si=new Set([`separators`,`allow-duplicates`,`invalid-message`,`create-label`,`add-label`,`selected-text`,`clear-all-label`,`value-label`,`value-avatar`,`value-initials`,`hint-text`,`recents-key`,`recents-limit`,`recents-label`]),Ci=[[`icon`,`icon`],[`description`,`description`],[`meta`,`meta`],[`group`,`group`],[`avatar`,`avatar`],[`initials`,`initials`],[`disabled-hint`,`disabledHint`]],wi=(e,t)=>t?Array.isArray(e)?e.map(String):e==null||e===``?[]:String(e).split(`,`).map(e=>e.trim()).filter(Boolean):Array.isArray(e)?e.length?String(e[0]):``:e==null?``:String(e),Ti=(e,t)=>t===`multiple`?ai(e)?[`chips`,`search`]:[`chips`]:t===`search`?[`search`]:t===`country`?[`country`]:t===`tag`?ai(e)?[`chips`,`search`]:[`chips`]:[],Ei=(e,t)=>e.hasAttribute(`recents-key`)?[`recents`,...Ti(e,t)]:Ti(e,t),Di=e=>typeof e==`object`&&!!e&&`default`in e&&typeof e.default==`function`,Oi=e=>{if(e.target instanceof Element)return e.target;throw Error(`The event target is not an element.`)},H=(e,t,n)=>{let r=e.querySelector(t);return r instanceof n?r:null},ki=(e,t)=>[...e.querySelectorAll(t)].filter(e=>e instanceof HTMLElement),Ai=e=>{let t=e.textContent;if(t===null)throw Error(`The element has no text.`);return t},ji=(e,t)=>ri(t).then(e=>{if(!Di(e))throw Error(`The part ${t} has no default export.`);return e.default()}).catch(()=>(document.dispatchEvent(new CustomEvent(Cn,{bubbles:!0,composed:!0,detail:{chunk:t}})),e.setError(V().partLoadMessage),null)),Mi=n({TABLE_EXPORT_CHUNK:()=>Ni,loadTableExport:()=>Fi,registerTableExport:()=>Ii,tableExportRegistered:()=>Li}),Ni=`table-export`,Pi=null;function Fi(){return Pi===null?L(Ni).then(()=>{if(Pi===null)throw Error(`[webority-ui] The table-export chunk ran without handing over its writers.`);return Pi}):Promise.resolve(Pi)}function Ii(e){Pi=e}function Li(){return Pi!==null}function Ri(){I(`glyphs`,mr),I(`select-chips`,()=>ti(`chips`)!==void 0),I(`select-recents`,()=>ti(`recents`)!==void 0),I(`select-search`,()=>ti(`search`)!==void 0),I(`select-window`,Br),I(`table-export`,Li)}var zi={closeLabel:`Close`,error:`Error`,failedText:`That did not work. Try again.`,loading:`Loading...`,moreText:`more`,success:`Done`},Bi=n({TOAST_ACTION_METHODS:()=>Vi,parseToastAction:()=>Wi}),Vi=Object.freeze([`POST`,`PUT`,`PATCH`,`DELETE`]),Hi=e=>(tn(`[@webority/ui-elements] Wui-Toast-Action: ${e}; the toast shows no action.`),null),Ui=e=>typeof e==`object`&&!!e;function Wi(e){if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch{return Hi(`the value is not JSON`)}let n=Ui(t)?t:{},r=n.label,i=n.url,a=String(n.method??`POST`).toUpperCase();return typeof r!=`string`||r===``||typeof i!=`string`||i===``?Hi(`label and url must be non-empty strings`):Vi.includes(a)?{label:r,url:i,method:a}:Hi(`method must be one of ${Vi.join(`, `)}`)}var Gi=n({FLASH_STORAGE_KEY:()=>Ji,FLASH_VARIANTS:()=>Ki,isToastVariant:()=>qi,storeFlash:()=>Yi,takeStoredFlash:()=>Zi}),Ki=Object.freeze([`success`,`info`,`warning`,`danger`]),qi=e=>Ki.some(t=>t===e),Ji=`wui.flash`;function Yi(e,t,n){e&&window.sessionStorage.setItem(Ji,JSON.stringify({message:e,variant:t,action:n??null}))}var Xi=e=>{if(typeof e!=`object`||!e||!(`label`in e)||!(`url`in e)||!(`method`in e))throw TypeError(`stored flash action is not an action.`);let{label:t,url:n,method:r}=e;if(typeof t!=`string`||t===``||typeof n!=`string`||n===``||typeof r!=`string`||!Vi.includes(r))throw TypeError(`stored flash action is not an action.`);return{label:t,url:n,method:r}};function Zi(){let e=window.sessionStorage.getItem(Ji);if(e===null)return null;window.sessionStorage.removeItem(Ji);let t=JSON.parse(e);if(typeof t!=`object`||!t)throw TypeError(`stored flash is not an object.`);let n=`message`in t?t.message:void 0,r=`variant`in t?t.variant:void 0;if(typeof r!=`string`||!qi(r))throw TypeError(`stored flash variant "${String(r)}" is not supported.`);if(typeof n!=`string`)throw TypeError(`stored flash message is not text.`);let i=`action`in t?t.action:null;return{message:n,variant:r,action:i===null?null:Xi(i)}}var Qi=n({parseServerHtml:()=>$i});function $i(e){let t=document.createElement(`template`);return t.innerHTML=e,t.content}var ea=n({wuiHost:()=>ta});function ta(){return A(window.WUI,`window.WUI is not defined: the Razor behaviour script did not load on this page.`)}var na=n({CSRF_META_NAME:()=>ra,DEFAULT_CSRF_HEADER:()=>ia,DEFAULT_TIMEOUT_MS:()=>ma,HTTP_KINDS:()=>ca,WUI_HEADERS:()=>U,WUI_REQUEST_HEADER:()=>sa,classifyStatus:()=>fa,configureCsrf:()=>oa,createRequestQueue:()=>Ca,isSameOrigin:()=>da,readCsrf:()=>ua,settleResponse:()=>xa,timeoutFromAttribute:()=>ha,wuiFetch:()=>Sa}),ra=`wui-csrf`,ia=`RequestVerificationToken`,aa={metaName:ra,header:ia};function oa({metaName:e=ra,header:t=ia}={}){aa={metaName:e,header:t}}var sa=`Wui-Request`,U=Object.freeze({fragment:`Wui-Fragment`,message:`Wui-Message`,redirect:`Wui-Redirect`,result:`Wui-Result`,keepOpen:`Wui-Keep-Open`,toastVariant:`Wui-Toast-Variant`,toastAction:`Wui-Toast-Action`,refresh:`Wui-Refresh`,next:`Wui-Next`}),ca=Object.freeze([`ok`,`validation`,`forbidden`,`networkCheck`,`client`,`server`,`network`,`timeout`,`aborted`,`stale`,`session`]),la=new Set([`GET`,`HEAD`]);function ua(e=document){let t=[...e.querySelectorAll(`meta`)].find(e=>e.getAttribute(`name`)===aa.metaName),n=t?.getAttribute(`content`);return!t||!n?null:{header:t.getAttribute(`data-header`)||aa.header,token:n}}var da=e=>{try{return new URL(e,window.location.href).origin===window.location.origin}catch{return!1}};function fa(e,t=null){return e>=200&&e<300?`ok`:e===401?`session`:e===403?t?.get(`cf-mitigated`)===`challenge`?`networkCheck`:`forbidden`:e===422?`validation`:e>=400&&e<500?`client`:`server`}var pa=e=>typeof e==`object`&&!!e&&`name`in e&&e.name===`AbortError`,ma=3e4;function ha(e){let t=e?.trim()??``;return/^\d+$/.test(t)?Number(t):void 0}var ga=`The ${U.refresh} response header must be {tables, regions, reloadPage}.`,_a=e=>e===`all`||Array.isArray(e)&&e.every(e=>typeof e==`string`),va=e=>{if(e==null||e===``)return null;let t;try{t=JSON.parse(e)}catch(e){throw TypeError(`The ${U.refresh} response header is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}if(typeof t!=`object`||!t||!(`tables`in t)||!(`regions`in t)||!(`reloadPage`in t))throw TypeError(ga);let{tables:n,regions:r,reloadPage:i}=t;if(!_a(n)||!_a(r)||typeof i!=`boolean`)throw TypeError(ga);return{tables:n,regions:r,reloadPage:i}},ya=(e,t)=>{if(!/json/i.test(e?.headers.get(`Content-Type`)??``)||t.trim()===``)return null;try{return JSON.parse(t)}catch(e){throw TypeError(`The JSON answer body is not JSON: ${e instanceof Error?e.message:String(e)}`,{cause:e})}},ba=e=>{if(e==null)return null;try{return decodeURIComponent(e)}catch{return e}};function xa(e,t=null,n=``){let r=e=>t?.headers.get(e)??null;return{kind:e,ok:e===`ok`,status:t?.status??0,html:n,response:t,message:ba(r(U.message)),redirect:r(U.redirect),result:r(U.result),keepOpen:r(U.keepOpen)===`1`,toastVariant:r(U.toastVariant),toastAction:Wi(r(U.toastAction)),fragment:r(U.fragment)===`1`,data:ya(t,n),next:r(U.next),refresh:va(ba(r(U.refresh)))}}async function Sa(e,t={}){let n=(t.method||`GET`).toUpperCase(),r=t.navigate||(e=>window.location.assign(e)),i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[sa]:`1`,...t.headers};if(!la.has(n)&&da(e)){let e=ua();e&&(i[e.header]=e.token)}let a=new AbortController,o=()=>a.abort(),s=t.signal;s?.aborted&&a.abort(),s?.addEventListener(`abort`,o,{once:!0});let c=t.timeoutMs??0,l=!1,u=c>0?setTimeout(()=>{l=!0,a.abort()},c):void 0,d=e=>s?.aborted?`aborted`:l?`timeout`:pa(e)?`aborted`:`network`;try{let o;try{o=await fetch(e,{method:n,...t.body===void 0?{}:{body:t.body},headers:i,signal:a.signal,credentials:`same-origin`})}catch(e){return xa(d(e))}let s=fa(o.status,o.headers);if(s===`ok`&&o.redirected&&o.headers.get(U.fragment)!==`1`&&(s=`session`),s===`session`)return r(o.status===401?o.headers.get(`Location`)||window.location.href:o.url),xa(s,o);let c=``;if(s===`ok`||s===`validation`)try{c=await o.text()}catch(e){return xa(d(e),o)}return xa(s,o,c)}finally{clearTimeout(u),s?.removeEventListener(`abort`,o)}}function Ca(){let e=null,t=0;return{async run(n,r={}){e?.abort();let i=new AbortController;e=i;let a=++t,o=r.signal;o&&(o.aborted?i.abort():o.addEventListener(`abort`,()=>i.abort(),{once:!0}));let s;try{s=await Sa(n,{...r,signal:i.signal})}finally{e===i&&(e=null)}return a!==t&&s.kind!==`aborted`?{...s,kind:`stale`,ok:!1}:s},abort(){e?.abort(),e=null}}}var wa=n({REFRESH_ATTR:()=>Da,REGION_KEY_ATTR:()=>Ea,REGION_SRC_ATTR:()=>Ta,refreshRegions:()=>Aa}),Ta=`data-wui-region-src`,Ea=`data-wui-region-key`,Da=`data-wui-refresh`,Oa=new WeakSet,ka=new Map;async function Aa(e=`all`){if(e!==`all`&&e.length===0)return;let t=e===`all`?null:new Set(e),n=new Map;for(let e of document.querySelectorAll(`[${Ta}]`)){if(!(e instanceof HTMLElement)||e.getAttribute(`data-wui-refresh`)===`none`)continue;let r=e.getAttribute(`data-wui-region-src`)??``,i=e.getAttribute(Ea);if(!i){Oa.has(e)||(Oa.add(e),nn(Error(`A [${Ta}] element needs ${Ea}: ${r}`)));continue}if(t&&!t.has(i))continue;let a=n.get(r)??[];a.push(e),n.set(r,a)}await Promise.all([...n].map(([e,t])=>ja(e,t)))}async function ja(e,t){let n=(ka.get(e)??0)+1;ka.set(e,n);let r=await Sa(e);if(ka.get(e)!==n||r.kind===`aborted`||r.kind===`stale`||r.kind===`session`)return;if(!r.ok){tn(`A region refresh failed; the region keeps its content.`,e,r.kind);return}let i=new Map;for(let e of $i(r.html).querySelectorAll(`[${Ea}]`)){if(!(e instanceof HTMLElement))continue;let t=e.getAttribute(Ea);t!==null&&!i.has(t)&&i.set(t,e)}for(let n of t){if(!n.isConnected)continue;let t=n.getAttribute(`data-wui-region-key`)??``,r=i.get(t);r?Ma(n,r):tn(`A region refresh reply has no element for the region's key; the region keeps its content.`,e,t)}}function Ma(e,t){for(let t of Array.from(e.children))t.dispatchEvent(new CustomEvent(`wui:teardown`,{bubbles:!0}));e.replaceChildren(...Array.from(t.childNodes,e=>document.importNode(e,!0))),e.hidden=t.hidden;let n=t.getAttribute(`title`);n===null?e.removeAttribute(`title`):e.setAttribute(`title`,n);for(let t of Array.from(e.classList))t.startsWith(`tone-`)&&e.classList.remove(t);for(let n of Array.from(t.classList))n.startsWith(`tone-`)&&e.classList.add(n);ta().refresh(e)}var Na=n({getServerTable:()=>La,isServerTableWired:()=>Ia,registerServerTable:()=>Fa}),Pa=new WeakMap;function Fa(e,t){Pa.set(e,t)}function Ia(e){return Pa.has(e)}function La(e){let t=e instanceof Element?e.closest(`[data-wui-server]`):null;return t instanceof HTMLElement&&Pa.get(t)||null}var Ra=n({applyPlan:()=>eo,applyRefresh:()=>no,holdInDialog:()=>Ya,isRefreshOff:()=>Ba,mergePlans:()=>Wa,planOf:()=>Va,planReloads:()=>Ga,refreshAfter:()=>to,refreshesNothing:()=>Xa,reloadPage:()=>qa,reloadsPage:()=>Ka,setDialogHold:()=>Ja}),za=null;function Ba(e){return e?.getAttribute(`data-wui-refresh`)===`none`}function Va(e){if(!e.ok)return null;let t=e.message,n=e.toastVariant||`success`,r=e.toastAction,i=e.refresh;return i===null?{tables:`all`,regions:`all`,reload:`auto`,message:t,variant:n,action:r}:{tables:i.tables,regions:i.regions,reload:i.reloadPage?`page`:`never`,message:t,variant:n,action:r}}var Ha={never:0,auto:1,page:2},Ua=(e,t)=>e===`all`||t===`all`?`all`:[...new Set([...e,...t])];function Wa(e,t){return e===null?t:{tables:Ua(e.tables,t.tables),regions:Ua(e.regions,t.regions),reload:Ha[e.reload]>=Ha[t.reload]?e.reload:t.reload,message:t.message,variant:t.variant,action:t.action}}function Ga(e){return e.reload===`page`||e.reload===`auto`&&document.querySelector(`[data-wui-server]`)===null}function Ka(e){let t=Va(e);return t!==null&&Ga(t)}function qa(){let e=new URL(window.location.href);e.hash=``,window.location.assign(e.href)}function Ja(e){za=e}function Ya(e,t){return za?za(t,e):!1}function Xa(e){return e!==null&&e.tables!==`all`&&e.tables.length===0&&e.regions!==`all`&&e.regions.length===0&&e.reload===`never`}var Za=e=>[e.querySelector(`.table-wrap`)?.id??``,e.id].filter(e=>e!==``),Qa=(e,t)=>{let n=[...document.querySelectorAll(`[data-wui-server]`)].filter(e=>e instanceof HTMLElement),r=n;if(e.tables!==`all`){let t=e.tables,i=new Set(n.flatMap(Za));for(let e of t)i.has(e)||tn(`A refresh names the table "${e}", which is not on this page.`);r=n.filter(e=>Za(e).some(e=>t.includes(e)))}return r.filter(e=>(!t||e!==t&&!e.contains(t))&&!Ba(e))},$a=async e=>{await La(e)?.reload({quiet:!0})};async function eo(e,t={}){if(t.origin&&Ya(e,t.origin))return`held`;if(Ga(e)&&(e.reload===`page`||t.allowReload!==!1))return Yi(e.message,e.variant,e.action),qa(),`reloaded`;let n=Qa(e,t.skip).map(e=>$a(e).catch(nn));return(e.regions===`all`||e.regions.length>0)&&n.push(Aa(e.regions).catch(nn)),await Promise.all(n),`refreshed`}async function to(e,t={}){let n=Va(e);return n===null?`none`:eo(n,t)}async function no(){await eo({tables:`all`,regions:`all`,reload:`never`,message:null,variant:`success`,action:null},{allowReload:!1})}var ro=n({TOAST_ACTION_MS:()=>io,runToastAction:()=>lo,showResultToast:()=>so,showToast:()=>co}),io=8e3,ao=()=>M(`toast`,zi);function oo(e){if(!qi(e))throw RangeError(`Unknown toast variant "${e}".`);return e}function so(e,t=`success`){e?.message&&co(e.message,t,e.toastAction)}function co(e,t,n=null){n?ta().toast(e,{variant:oo(t),duration:io,action:{label:n.label,onClick:e=>void lo(n,e)}}):ta().toast(e,{variant:oo(t)})}async function lo(e,t=null){let n=await Sa(e.url,{method:e.method});n.kind!==`session`&&n.kind!==`aborted`&&(n.ok?(Ka(n)||so(n,n.toastVariant||`success`),await to(n,{origin:t})):ta().toast(n.message||ao().failedText,{variant:`danger`}))}var uo=n({HTTP_FAILURE_TEXT:()=>fo}),fo={networkCheckText:`A network check stopped this request. Try again, or report it if it keeps happening.`,networkText:`We could not reach the server. Check your network or firewall and try again.`},po=n({SERVER_CHUNK:()=>mo,SHELL_CHUNK:()=>ho,loadServer:()=>vo,loadShell:()=>xo,loadedServer:()=>yo,loadedShell:()=>So,registerServer:()=>bo,registerShellParts:()=>Co}),mo=`server`,ho=`shell`,go=null,_o=null;I(mo,()=>go!==null),I(ho,()=>_o!==null);function vo(){return go===null?L(mo).then(()=>{if(go===null)throw Error(`[webority-ui] The server chunk ran without handing over its modules.`);return go}):Promise.resolve(go)}function yo(){return go}function bo(e){go=e}function xo(){return _o===null?L(ho).then(()=>{if(_o===null)throw Error(`[webority-ui] The shell chunk ran without handing over its modules.`);return _o}):Promise.resolve(_o)}function So(){return _o}function Co(e){_o=e}var wo=`[data-wui-confirm]:not(form), [data-wui-post], [data-wui-row-action], [data-wui-modal], [data-wui-drawer], [data-wui-pane]`,To=`form[data-wui-post-form], form[data-wui-confirm]`,Eo=`[data-wui-confirm]`,Do=`a[href]:is([data-wui-modal], [data-wui-drawer], [data-wui-pane]):not([data-wui-confirm], [data-wui-post])`,Oo=new WeakSet,ko=new WeakMap;function Ao(e=document){Oo.has(e)||(Oo.add(e),e.addEventListener(`click`,jo,!0),e.addEventListener(`submit`,Mo,!0))}function jo(e){if(yo()!==null||!(e.target instanceof Element))return;let t=e.target.closest(wo);t instanceof HTMLElement&&((e.ctrlKey||e.metaKey||e.shiftKey||e.button!==0)&&t.matches(Do)||No(e,t,()=>t.click()))}function Mo(e){if(yo()!==null||!(e.target instanceof HTMLFormElement))return;let t=e.target,n=e.submitter??null;(t.matches(To)||(n?.matches(Eo)??!1))&&No(e,t,()=>Po(t,n))}function No(e,t,n){e.preventDefault(),e.stopImmediatePropagation(),ko.has(t)||(ko.set(t,!0),vo().then(()=>{ko.delete(t),t.isConnected&&n()},()=>{ko.delete(t),co(M(`httpFailure`,fo).networkText,`danger`)}))}function Po(e,t){let n=t instanceof HTMLButtonElement||t instanceof HTMLInputElement?t.form===e:!1;t!==null&&n?e.requestSubmit(t):e.requestSubmit()}var Fo=n({APP_BUTTON_MARKER:()=>Io,buttonClass:()=>Bo}),Io=`AppButton`,Lo=new Set([`primary`,`success`,`warning`,`danger`,`info`,`neutral`]),Ro={solid:e=>`btn-${e}`,soft:e=>`btn-soft-${e}`,outline:e=>`btn-outline-${e}`,ghost:e=>`btn-ghost-${e}`,link:e=>`btn-link-${e}`,glass:()=>`btn-glass`};function zo(e){return hn(Ro,e)}function Bo(e=`primary`,t=`solid`,n=`md`){if(!Lo.has(e))throw RangeError(`buttonClass: unknown tone "${e}"`);if(!zo(t))throw RangeError(`buttonClass: unknown variant "${t}"`);let r=Ro[t](e);return n===`md`?`btn ${r}`:`btn ${r} btn-${n}`}var Vo=`INR`,Ho=Object.freeze({INR:`₹`,USD:`$`,EUR:`€`,GBP:`£`,JPY:`¥`}),Uo=e=>typeof e==`string`&&/^[A-Z]{3}$/.test(e),Wo=(e=`INR`)=>Ho[e]??`${e} `,Go={aprShortLabel:`Apr`,aprilLabel:`April`,augShortLabel:`Aug`,augustLabel:`August`,decShortLabel:`Dec`,decemberLabel:`December`,emptyValueLabel:`-`,febShortLabel:`Feb`,februaryLabel:`February`,friMinLabel:`Fr`,friShortLabel:`Fri`,fridayLabel:`Friday`,janShortLabel:`Jan`,januaryLabel:`January`,julShortLabel:`Jul`,julyLabel:`July`,junShortLabel:`Jun`,juneLabel:`June`,marShortLabel:`Mar`,marchLabel:`March`,mayLabel:`May`,mayShortLabel:`May`,monMinLabel:`Mo`,monShortLabel:`Mon`,mondayLabel:`Monday`,novShortLabel:`Nov`,novemberLabel:`November`,octShortLabel:`Oct`,octoberLabel:`October`,satMinLabel:`Sa`,satShortLabel:`Sat`,saturdayLabel:`Saturday`,sepShortLabel:`Sep`,septemberLabel:`September`,sunMinLabel:`Su`,sunShortLabel:`Sun`,sundayLabel:`Sunday`,thuMinLabel:`Th`,thuShortLabel:`Thu`,thursdayLabel:`Thursday`,tueMinLabel:`Tu`,tueShortLabel:`Tue`,tuesdayLabel:`Tuesday`,wedMinLabel:`We`,wedShortLabel:`Wed`,wednesdayLabel:`Wednesday`},Ko=n({IST_OFFSET_MS:()=>qo,IST_TIME_ZONE:()=>W,isTimeZone:()=>Xo,nowIn:()=>rs,todayIn:()=>ns,wallClockOf:()=>ts,wallToInstant:()=>$o,zoneOffsetMs:()=>Qo,zoneParts:()=>Zo}),W=`Asia/Kolkata`,qo=198e5,Jo=new Map;function Yo(e){let t=Jo.get(e);return t||(t=new Intl.DateTimeFormat(`en-US`,{timeZone:e,hourCycle:`h23`,year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,second:`2-digit`}),Jo.set(e,t)),t}function Xo(e){if(typeof e!=`string`||e===``)return!1;try{return Yo(e),!0}catch{return!1}}function Zo(e,t=W){if(t===`Asia/Kolkata`){let t=new Date(e+qo);return{year:t.getUTCFullYear(),month:t.getUTCMonth(),day:t.getUTCDate(),hour:t.getUTCHours(),minute:t.getUTCMinutes(),second:t.getUTCSeconds()}}let n=Object.fromEntries(Yo(t).formatToParts(e).map(e=>[e.type,Number(e.value)]));return{year:Number(n.year),month:Number(n.month)-1,day:Number(n.day),hour:Number(n.hour)%24,minute:Number(n.minute),second:Number(n.second)}}function Qo(e,t=W){if(t===`Asia/Kolkata`)return qo;let n=Zo(e,t),r=new Date(0);return r.setUTCFullYear(n.year,n.month,n.day),r.setUTCHours(n.hour,n.minute,n.second,0),r.getTime()-Math.floor(e/1e3)*1e3}function $o(e,t=W){let n=e-Qo(e,t);return n=e-Qo(n,t),n}var es=e=>e instanceof Date?e.getTime():e;function ts(e,t=W){return new Date(e+Qo(e,t)).toISOString().slice(0,19)}function ns(e=W,t=Date.now()){return ts(es(t),e).slice(0,10)}function rs(e=W,t=Date.now()){let n=es(t);return new Date(n+Qo(n,e))}var is=n({CURRENCIES:()=>os,DATE_PATTERNS:()=>ls,DURATION_UNITS:()=>cs,FORMAT_STYLES:()=>as,IST_OFFSET_MS:()=>qo,IST_TIME_ZONE:()=>W,MAX_DECIMALS:()=>20,MONEY_UNITS:()=>ss,compactFormatOf:()=>Ws,emptyValueLabel:()=>G,formatCompact:()=>Ls,formatCurrency:()=>Fs,formatDate:()=>J,formatDateTime:()=>Gs,formatDayShort:()=>Hs,formatDuration:()=>Bs,formatNumber:()=>K,formatPercent:()=>Rs,formatValue:()=>Us,isMoneyUnit:()=>us,istParts:()=>Vs,monthLabel:()=>_s,monthLongLabel:()=>vs,paiseToRupeeText:()=>js,timeZoneLabel:()=>Js,toInstant:()=>q,weekdayLabel:()=>ys}),as=[`number`,`currency`,`percent`,`compact`,`duration`,`date`],os=[`INR`,`USD`,`EUR`,`GBP`],ss=[`rupees`,`paise`],cs=[`ms`,`s`,`min`,`h`],ls=[`day`,`month`,`year`,`datetime`,`time`];function us(e){return ss.some(t=>t===e)}var ds=()=>M(`formatters`,Go),G=()=>ds().emptyValueLabel,fs=`−`,ps=[`janShortLabel`,`febShortLabel`,`marShortLabel`,`aprShortLabel`,`mayShortLabel`,`junShortLabel`,`julShortLabel`,`augShortLabel`,`sepShortLabel`,`octShortLabel`,`novShortLabel`,`decShortLabel`],ms=[`januaryLabel`,`februaryLabel`,`marchLabel`,`aprilLabel`,`mayLabel`,`juneLabel`,`julyLabel`,`augustLabel`,`septemberLabel`,`octoberLabel`,`novemberLabel`,`decemberLabel`],hs={short:[`sunShortLabel`,`monShortLabel`,`tueShortLabel`,`wedShortLabel`,`thuShortLabel`,`friShortLabel`,`satShortLabel`],long:[`sundayLabel`,`mondayLabel`,`tuesdayLabel`,`wednesdayLabel`,`thursdayLabel`,`fridayLabel`,`saturdayLabel`],min:[`sunMinLabel`,`monMinLabel`,`tueMinLabel`,`wedMinLabel`,`thuMinLabel`,`friMinLabel`,`satMinLabel`]},gs=(e,t)=>ds()[A(e[t],`no date name at index ${t}`)],_s=e=>gs(ps,e),vs=e=>gs(ms,e);function ys(e,t){return gs(hs[t],e)}var bs=(e,t)=>A(e[t],`no compact unit at index ${t}`),xs=[[1e7,`Cr`],[1e5,`L`],[1e3,`K`]],Ss=[[1e9,`B`],[1e6,`M`],[1e3,`K`]],Cs=e=>!e||e===`INR`?`en-IN`:`en-US`,ws=(e,t)=>typeof e==`number`&&Number.isInteger(e)&&e>=0&&e<=20?e:t,Ts=new Map,Es=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ts.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:0,maximumFractionDigits:e}),Ts.set(n,r)),r},Ds=new Map,Os=(e,t=`en-IN`)=>{let n=`${t}:${e}`,r=Ds.get(n);return r||(r=new Intl.NumberFormat(t,{minimumFractionDigits:e,maximumFractionDigits:e}),Ds.set(n,r)),r},ks=e=>typeof e==`number`&&Number.isFinite(e),As=e=>e<0&&!Object.is(Math.abs(e),0)?fs:``;function js(e){if(!Number.isInteger(e))throw Error(`A paise amount must be a whole number, got ${e}`);let t=BigInt(Math.abs(e)).toString().padStart(3,`0`);return`${e<0?`-`:``}${t.slice(0,-2)}.${t.slice(-2)}`}var Ms=(e,t)=>t===`paise`?Number(js(e)):e,Ns=2,Ps=(e,t,n)=>{let r=Math.min(t,Ns),i=10n**BigInt(Ns-r),a=(BigInt(js(e).replace(`.`,``))+i/2n)/i,o=10n**BigInt(r),s=Os(0,n).format(a/o);return t===0?s:`${s}.${(a%o).toString().padStart(r,`0`)}${`0`.repeat(t-r)}`};function K(e,{decimals:t}={}){if(!ks(e))return G();let n=Es(ws(t,2)).format(Math.abs(e));return n===`0`?`0`:As(e)+n}function Fs(e,t){if(!t?.currency)throw TypeError(`[@webority/ui-elements] formatCurrency needs options.currency, an ISO 4217 code such as "INR".`);if(!ks(e))return G();let{unit:n=`rupees`,decimals:r,currency:i}=t,a=ws(r,0),o=Cs(i),s=n===`paise`?Ps(Math.abs(e),a,o):Os(a,o).format(Math.abs(e));return(Number(s.replace(/,/g,``))===0?``:As(e))+Wo(i)+s}var Is=e=>e>0&&e<.1?Math.min(20,1-Math.floor(Math.log10(e))):2;function Ls(e,{currency:t,unit:n=`rupees`}={}){if(!ks(e))return G();let r=t?Ms(e,n):e,i=t?Wo(t):``,a=t?Cs(t):`en-IN`,o=a===`en-IN`?xs:Ss,s=Math.abs(r),c=o.findIndex(([e])=>s>=e);if(c===-1){let e=Es(Is(s),a).format(s);if(e!==`1,000`)return(e===`0`?``:As(r))+i+e;c=o.length-1}let[l,u]=bs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f));return p>=100&&c>0&&(--c,[l,u]=bs(o,c),d=s/l,f=d>=100?0:d>=10?1:2,p=Number(d.toFixed(f))),`${As(r)}${i}${Es(f,a).format(p)} ${u}`}function Rs(e,{decimals:t}={}){return ks(e)?`${K(e*100,{decimals:ws(t,1)})}%`:G()}var zs={ms:1,s:1e3,min:6e4,h:36e5};function Bs(e,{unit:t=`s`}={}){if(!ks(e))return G();let n=zs[t]??1e3,r=Math.abs(e*n),i=As(e);if(Math.round(r)<1e3)return`${i}${Es(0).format(r)} ms`;let a=r/1e3;if(a<10)return`${i}${Es(1).format(a)}s`;let o=Math.round(a);if(o<60)return`${i}${o}s`;let s=e=>String(e).padStart(2,`0`),c=Math.floor(o/60);if(c<60)return`${i}${c}m ${s(o%60)}s`;let l=Math.floor(c/60);return`${i}${Es(0).format(l)}h ${s(c%60)}m`}function q(e,t=W){if(e instanceof Date)return e.getTime();if(ks(e))return e;if(typeof e!=`string`)return NaN;let n=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());if(n){let[e,r,i]=[Number(n[1]),Number(n[2]),Number(n[3])],a=new Date(Date.UTC(2e3,r-1,i));return a.setUTCFullYear(e),a.getUTCFullYear()===e&&a.getUTCMonth()===r-1&&a.getUTCDate()===i?$o(a.getTime(),t):NaN}return Date.parse(e)}function Vs(e,t=W){let{year:n,month:r,day:i,hour:a,minute:o}=Zo(e,t);return{year:n,month:r,day:i,hour:a,minute:o}}function J(e,{pattern:t=`day`,timeZone:n=W}={}){let r=q(e,n);if(!Number.isFinite(r))return G();let i=Vs(r,n),a=e=>String(e).padStart(2,`0`),o=`${a(i.day)}-${_s(i.month)}-${i.year}`,s=`${a(i.hour)}:${a(i.minute)}`;switch(t){case`month`:return`${_s(i.month)}-${i.year}`;case`year`:return String(i.year);case`datetime`:return`${o} ${s}`;case`time`:return s;default:return o}}function Hs(e,{timeZone:t=W}={}){let n=q(e,t);if(!Number.isFinite(n))return G();let r=Vs(n,t);return`${String(r.day).padStart(2,`0`)}-${_s(r.month)}`}function Us(e,t){if(e==null||e===``)return G();let n=t?.style;if(n===`date`)return J(e,t);if(typeof e!=`number`)return String(e);switch(n){case`currency`:return Fs(e,{...t,currency:t?.currency??``});case`percent`:return Rs(e,t);case`compact`:return Ls(e,t);case`duration`:return Bs(e,t);default:return K(e,t)}}function Ws(e){let t=e?.style;if(t===`currency`){if(!e?.currency)throw TypeError(`[@webority/ui-elements] a currency format needs a currency, an ISO 4217 code such as "INR".`);return{style:`compact`,currency:e.currency,unit:e.unit}}return!t||t===`number`?{style:`compact`}:e??{}}function Gs(e,{timeZone:t=W}={}){let n=q(e);if(!Number.isFinite(n))return G();let r=Object.fromEntries(qs(t).formatToParts(n).map(e=>[e.type,e.value])),i=r.dayPeriod;if(i===void 0)throw Error(`Intl returned no day period for a 12-hour clock`);return`${r.day}-${_s(Number(r.month)-1)}-${r.year}, ${r.hour}:${r.minute} ${i.toUpperCase()}`}var Ks=new Map;function qs(e){let t=Ks.get(e);return t||(t=new Intl.DateTimeFormat(`en-IN`,{day:`2-digit`,month:`numeric`,year:`numeric`,hour:`numeric`,minute:`2-digit`,hour12:!0,timeZone:e}),Ks.set(e,t)),t}function Js(e=W){return new Intl.DateTimeFormat(`en-IN`,{timeZone:e,timeZoneName:`short`}).formatToParts(new Date).find(e=>e.type===`timeZoneName`)?.value??e}var Ys=n({DISPLAY_FORMAT:()=>tc,MONTH_DISPLAY_FORMAT:()=>ac,YEAR_DISPLAY_FORMAT:()=>lc,clampMonth:()=>fc,daysIn:()=>dc,firstWeekday:()=>Zs,fmt:()=>nc,fmtMonth:()=>oc,fmtYear:()=>uc,pad:()=>Qs,parseIso:()=>ec,parseIsoMonth:()=>rc,parseIsoYear:()=>sc,toIso:()=>$s,toIsoMonth:()=>ic,toIsoYear:()=>cc}),Xs=e=>{let t=String(e??``).trim();return/^[0-6]$/.test(t)?Number(t):null},Zs=e=>Xs(e.getAttribute(`first-day`))??Xs(getComputedStyle(e).getPropertyValue(`--wui-first-day`))??1,Qs=e=>String(e).padStart(2,`0`),$s=(e,t,n)=>`${e}-${Qs(t+1)}-${Qs(n)}`,ec=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r,i]=t;if(n===void 0||r===void 0||i===void 0)throw Error(`ISO date parts missing`);let a=+n,o=+r,s=+i;return o<1||o>12||s<1||s>dc(a,o-1)?null:{y:a,m:o-1,d:s}},tc=`dd-MMM-yyyy`,nc=(e,t=tc)=>{let n=ec(e);if(!n)return``;let r={yyyy:n.y,MMMM:vs(n.m),MMM:_s(n.m),MM:Qs(n.m+1),dd:Qs(n.d),d:n.d};return(t||`dd-MMM-yyyy`).replace(/yyyy|MMMM|MMM|MM|dd|d/g,e=>String(r[e]))},rc=e=>{let t=/^(\d{4})-(\d{2})$/.exec(e||``);if(!t)return null;let[,n,r]=t;if(n===void 0||r===void 0)throw Error(`ISO month parts missing`);let i=+r;return i<1||i>12?null:{y:+n,m:i-1}},ic=(e,t)=>`${e}-${Qs(t+1)}`,ac=`MMM yyyy`,oc=(e,t=ac)=>{let n=rc(e);if(!n)return``;let r={yyyy:n.y,MMMM:vs(n.m),MMM:_s(n.m),MM:Qs(n.m+1)};return(t||`MMM yyyy`).replace(/yyyy|MMMM|MMM|MM/g,e=>String(r[e]))},sc=e=>{let t=/^(\d{4})$/.exec(e||``);if(!t)return null;let[,n]=t;if(n===void 0)throw Error(`ISO year part missing`);return{y:+n}},cc=e=>String(e).padStart(4,`0`),lc=`yyyy`,uc=(e,t=lc)=>{let n=sc(e);return n?(t||`yyyy`).replace(/yyyy/g,String(n.y)):``},dc=(e,t)=>{let n=new Date(0);return n.setFullYear(e,t+1,0),n.getDate()},fc=(e,t)=>{for(;t<0;)t+=12,--e;for(;t>11;)t-=12,e+=1;return{y:e,m:t}},pc=n({COPY_FEEDBACK_MS:()=>mc,copyTextToClipboard:()=>hc}),mc=2e3;async function hc(e){if(!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch(e){if(!(e instanceof DOMException))throw e;return!1}}var gc=n({DATA_TABLE_TEXT:()=>_c}),_c={actionFailedMessage:`That did not work. Try again.`,actionForbiddenMessage:`You do not have permission to do that.`,collapseRowLabel:`Collapse row`,densityComfortableLabel:`Comfortable rows`,densityCompactLabel:`Compact rows`,densityLabel:`Row density`,empty:`No records found.`,emptyLabel:`No rows`,errorText:`These rows did not load. Try again.`,expandLabel:`Expand`,expandRowLabel:`Expand row`,exportCsvLabel:`Download CSV`,exportExcelLabel:`Download Excel`,forbiddenMessage:`You do not have access to these rows.`,groupRowsOne:`1 row`,groupRowsOther:`{count} rows`,loadingText:`Loading rows`,moreActionsForText:`More actions for {firstValue}`,networkMessage:`The connection dropped before the rows loaded. Check it and try again.`,pageTextOne:`Page {page} of {pages}, {total} row`,pageTextOther:`Page {page} of {pages}, {total} rows`,pageTextPending:`Page {page}`,resizeColumnLabel:`Resize column`,resizeColumnText:`Resize {label} column`,resizeText:`{px} pixels`,retryLabel:`Retry`,rowActionsLabel:`Actions`,rowSavedText:`Row saved.`,rowWasNotSavedText:`Row was not saved.`,rowsSavedText:`{n} rows saved.`,saveBusyLabel:`Saving`,saveDoneLabel:`Saved`,saveFailedLabel:`Not saved`,savedText:`{label} saved.`,selectAllRowsLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`,timeoutMessage:`The server did not answer in time. Check your connection and try again.`,wasNotSavedText:`{label} was not saved.`},vc=n({COLUMN_MAX_WIDTH:()=>bc,COLUMN_MIN_WIDTH:()=>48,PIN_AT_VAR:()=>Bc,PIN_SIDES:()=>Cc,RESIZE_STEP:()=>10,RESIZE_STEP_LARGE:()=>50,ROW_HEIGHTS:()=>Tc,ROW_MOVE_LIMIT:()=>200,ROW_MOVE_MS:()=>220,ROW_SAVE_ATTR:()=>$c,ROW_SAVE_ERROR_CLASS:()=>el,ROW_SAVE_STATES:()=>Qc,ROW_STATUS_CLASS:()=>tl,VIRTUAL_OVERSCAN:()=>8,clampColumnWidth:()=>Nc,groupCount:()=>Mc,groupItems:()=>Pc,groupRowsText:()=>Oc,identityCell:()=>nl,measureRows:()=>Yc,notSavedText:()=>jc,paintSaveStatus:()=>al,pinAtValue:()=>Vc,pinClasses:()=>Uc,pinOffsetVar:()=>zc,planPins:()=>Hc,playRowMoves:()=>Xc,readColumnWidths:()=>Lc,resizeName:()=>Ec,rowLabel:()=>rl,rowOrderChanged:()=>Zc,saveOutcomeText:()=>cl,savedManyText:()=>Ac,savedText:()=>kc,setRowSaveState:()=>ol,settledRows:()=>sl,virtualRange:()=>Fc,widthText:()=>Dc,writeColumnWidths:()=>Rc}),yc=48,bc=1200,xc=10,Sc=50,Cc=[`start`,`end`],wc=8,Tc={comfortable:72,cozy:48,compact:40},Y=()=>M(`dataTable`,_c),Ec=e=>e?N(Y().resizeColumnText,{label:e}):Y().resizeColumnLabel,Dc=e=>N(Y().resizeText,{px:e}),Oc=e=>it(Y(),`groupRows`,e,{count:K(e,{decimals:0})}),kc=e=>e?N(Y().savedText,{label:e}):Y().rowSavedText,Ac=e=>N(Y().rowsSavedText,{n:K(e,{decimals:0})}),jc=(e,t)=>`${e?N(Y().wasNotSavedText,{label:e}):Y().rowWasNotSavedText}${t?` ${t}`:``}`,Mc=e=>K(e,{decimals:0}),Nc=e=>Math.min(bc,Math.max(48,Math.round(Number(e)||0)));function Pc(e,t,n=[]){let r=new Map(n.map(e=>[e,[]]));return e.forEach((e,n)=>{let i=t(e,n),a=r.get(i);a||(a=[],r.set(i,a)),a.push(e)}),[...r].filter(([,e])=>e.length>0).map(([e,t])=>({key:e,items:t}))}function Fc({scrollTop:e,viewport:t,rowHeight:n,count:r,overscan:i=8}){let a=n>0?n:Tc.cozy,o=Math.floor(Math.max(0,e)/a),s=Math.max(0,o-i);s-=s%2;let c=Math.min(r,o+Math.ceil(Math.max(0,t)/a)+i),l=Math.min(s,c);return{start:l,end:c,before:l*a,after:Math.max(0,r-c)*a}}var Ic=e=>`wui-widths:${e}`;function Lc(e){if(!e)return{};try{let t=JSON.parse(window.localStorage.getItem(Ic(e))||`{}`),n={};if(t&&typeof t==`object`)for(let[e,r]of Object.entries(t))Number.isFinite(r)&&(n[e]=Nc(r));return n}catch{return{}}}function Rc(e,t){if(e)try{Object.keys(t).length?window.localStorage.setItem(Ic(e),JSON.stringify(t)):window.localStorage.removeItem(Ic(e))}catch(e){if(!(e instanceof DOMException))throw e}}var zc=(e,t)=>`--wui-pin-${e}-${t}`,Bc=`--wui-pin-at`,Vc=(e,t)=>`var(${zc(e,t)}, 0px)`;function Hc(e){let t=e.map(()=>null),n=-1;e.forEach((e,t)=>{e===`start`&&(n=t)});let r=0;for(let i=0;i<=n;i++)(e[i]===`start`||e[i]===`lead`)&&(t[i]={side:`start`,ordinal:r++,edge:!1});let i=t[n];i&&(i.edge=!0);let a=-1;r=0;for(let n=e.length-1;n>=0;n--)e[n]===`end`&&(t[n]={side:`end`,ordinal:r++,edge:!1},a=n);let o=t[a];return o&&(o.edge=!0),t}var Uc=e=>e?`wui-pin-${e.side}${e.edge?` wui-pin-${e.side}-edge`:``}`:``,Wc=200,Gc=220,Kc=`cubic-bezier(0.22, 1, 0.36, 1)`,qc=()=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(`(prefers-reduced-motion: reduce)`).matches,Jc=e=>e.getAttribute(`data-row-key`)??e;function Yc(e){let t=[...e];if(t.length>200)return null;let n=new Map;for(let e of t)e.hidden||n.set(Jc(e),e.offsetTop);return n}function Xc(e,t){let n=[...e];if(!t||n.length>200||qc())return 0;let r=0;for(let e of n){if(e.hidden||typeof e.animate!=`function`)continue;let n=t.get(Jc(e));if(n===void 0)continue;let i=n-e.offsetTop;Math.abs(i)<1||(e.animate([{transform:`translateY(${i}px)`},{transform:`translateY(0)`}],{duration:220,easing:Kc}),r++)}return r}function Zc(e,t){if(!e||!t)return!1;let n=new Set(t),r=new Set(e),i=e.filter(e=>n.has(e)),a=t.filter(e=>r.has(e));return i.some((e,t)=>e!==a[t])}var Qc=[`saving`,`error`,`saved`],$c=`data-wui-save-state`,el=`wui-row-save-error`,tl=`wui-row-status`,nl=e=>{let t=e.querySelector(`:scope > .wui-name-cell`);return t instanceof HTMLTableCellElement?t:[...e.cells].find(e=>!e.matches(`.wui-select-cell, .wui-expand-cell`))??null};function rl(e){let t=nl(e);if(!t)return``;let n=t.querySelector(`.u-name`);if(n)return(n.textContent??``).trim();let r=``;for(let e of t.childNodes)e instanceof Element&&(e.classList.contains(`wui-row-save-error`)||e.classList.contains(`wui-row-status`))||(r+=e.textContent??``);return r.replace(/\s+/g,` `).trim()}function il(e,t){let n=e.closest(`.table-wrap`);if(!n?.hasAttribute(`data-wui-save-labels`))return null;let r=Y();return t===`saving`?n.getAttribute(`data-wui-save-busy`)??r.saveBusyLabel:t===`saved`?n.getAttribute(`data-wui-save-done`)??r.saveDoneLabel:n.getAttribute(`data-wui-save-failed`)??r.saveFailedLabel}function al(e,t){e.querySelector(`:scope > * > .${tl}`)?.remove();let n=t===null?null:il(e,t),r=n===null?null:nl(e);if(t!==null&&n!==null&&r){let i=e.ownerDocument.createElement(`span`);i.className=`${tl} ${tl}-${t}`,i.textContent=n,r.prepend(i)}let i=t===`saving`&&n!==null;e.querySelectorAll(`.u-row-actions`).forEach(e=>{e.toggleAttribute(`hidden`,i)})}function ol(e,t,n=``){if(t!==null&&!Qc.includes(t))throw Error(`A row's save state is ${Qc.join(` or `)} (or null to clear it), not "${t}".`);e.querySelector(`:scope > * > .${el}`)?.remove(),t===null?e.removeAttribute($c):e.setAttribute($c,t),t===`saving`?e.setAttribute(`aria-busy`,`true`):e.removeAttribute(`aria-busy`),al(e,t);let r=t===`error`&&n?nl(e):null;if(r){let t=e.ownerDocument.createElement(`span`);t.className=el,t.textContent=n,r.append(t)}}function sl(e,t){let n=[];if(!e)return n;for(let[r,i]of e){let e=t.get(r);i.state===`saving`&&e&&e.state!==`saving`&&n.push({label:e.label,ok:e.state!==`error`,message:e.message||``})}return n}function cl(e){let t=e.filter(e=>e.ok),n=[],[r]=t;t.length===1&&r?n.push(kc(r.label)):t.length>1&&n.push(Ac(t.length));for(let t of e)t.ok||n.push(jc(t.label,t.message));return n.join(` `)}var ll=n({isDrawn:()=>ul});function ul(e){return typeof e.checkVisibility==`function`?e.checkVisibility():e.closest(`[hidden]`)===null&&getComputedStyle(e).display!==`none`}var dl=n({MENTION_ID_PATTERN:()=>fl,mentionLabel:()=>hl,mentionTextFromValue:()=>vl,mentionValueFromText:()=>yl,mentionedIds:()=>bl,parseMentionValue:()=>_l}),fl=/^[A-Za-z0-9_.:-]{1,64}$/,pl=/@(\\+)\[|@\[([^[\]\n]{1,100})\]\(([A-Za-z0-9_.:-]{1,64})\)/g,ml=/@(\\*)\[/g;function hl(e){return String(e??``).replace(/[[\]\r\n]+/g,` `).replace(/\s+/g,` `).trim().slice(0,100)}var gl=e=>e.replace(ml,(e,t)=>`@\\${t}[`);function _l(e){let t=String(e??``),n=[],r=e=>{if(!e)return;let t=n[n.length-1];t&&`text`in t?t.text+=e:n.push({text:e})},i=0;for(let e of t.matchAll(pl))r(t.slice(i,e.index)),e[1]===void 0?n.push({id:e[3]??``,label:e[2]??``}):r(`@${e[1].slice(1)}[`),i=e.index+e[0].length;return r(t.slice(i)),n}function vl(e){let t=``,n=[];for(let r of _l(e)){if(`text`in r){t+=r.text;continue}let e=`@${r.label}`;n.push({start:t.length,end:t.length+e.length,id:r.id,label:r.label}),t+=e}return{text:t,mentions:n}}function yl(e,t=[]){let n=String(e??``),r=[...t].sort((e,t)=>e.start-t.start),i=``,a=0;for(let e of r)e.start<a||n.slice(e.start,e.end)!==`@${e.label}`||!fl.test(e.id)||(i+=gl(n.slice(a,e.start)),i+=`@[${e.label}](${e.id})`,a=e.end);return i+gl(n.slice(a))}function bl(e){let t=[];for(let n of _l(e))`id`in n&&!t.includes(n.id)&&t.push(n.id);return t}var xl=n({bindMenuKeys:()=>El}),Sl=500,Cl=10,wl=new Set([`INPUT`,`TEXTAREA`,`SELECT`]);function Tl(e){return e instanceof HTMLElement?wl.has(e.tagName)||e.isContentEditable:!1}function El(e,t){let{items:n,typeahead:r=!0}=t,i=``,a=null,o=()=>{a!==null&&clearTimeout(a),a=null,i=``},s=e=>{let t=n().filter(ul),s=t.length;if(s===0)return;let c=e.target,l=t.findIndex(e=>c instanceof Node&&e.contains(c)),u=n=>{e.preventDefault(),e.stopPropagation(),t[n]?.focus()},d=Tl(c);if(e.key===`ArrowDown`){u(l<0?0:(l+1)%s);return}if(e.key===`ArrowUp`){u(l<0?s-1:(l-1+s)%s);return}if(e.key===`Home`&&!d){u(0);return}if(e.key===`End`&&!d){u(s-1);return}if(e.key===`PageDown`){u(Math.min((l<0?-1:l)+Cl,s-1));return}if(e.key===`PageUp`){u(Math.max((l<0?s:l)-Cl,0));return}if(!r||!/^\S$/.test(e.key)||e.ctrlKey||e.metaKey||e.altKey||d)return;e.preventDefault(),e.stopPropagation(),a!==null&&clearTimeout(a),i+=e.key.toLowerCase(),a=setTimeout(o,Sl);let f=i.length>1&&Array.from(i).every(e=>e===i[0]),p=f?i[0]??``:i,m=i.length===1||f?l+1:Math.max(l,0);for(let e=0;e<s;e++){let n=(m+e)%s;if((t[n]?.textContent??``).trim().toLowerCase().startsWith(p)){t[n]?.focus();return}}};return e.addEventListener(`keydown`,s),()=>{e.removeEventListener(`keydown`,s),o()}}var Dl=n({NOTIFICATION_CENTRE_TEXT:()=>Ol}),Ol={allLabel:`All`,allReadText:`All notifications marked as read.`,archivedLabel:`Archived`,clientMessage:`These could not be marked as read. Refresh the page and try again.`,earlierLabel:`See earlier`,emptyText:`You are all caught up.`,errorText:`Notifications did not load`,forbiddenMessage:`You do not have permission to mark these as read.`,label:`Notifications`,loadingText:`Loading notifications…`,markAllLabel:`Mark all read`,networkMessage:`Could not reach the server, so these were not marked as read. Check your connection and try again.`,noneUnreadText:`No unread notifications`,retryLabel:`Try again`,scrollTabsBackwardLabel:`Scroll tabs backward`,scrollTabsForwardLabel:`Scroll tabs forward`,serverMessage:`Something went wrong on our side, so these were not marked as read. Try again in a moment.`,todayLabel:`Today`,unreadAnnouncementTextOne:`{unread} unread notification`,unreadAnnouncementTextOther:`{unread} unread notifications`,unreadLabel:`Unread`,unreadPrefixText:`Unread:`,unreadWordLabel:`unread`,viewAllLabel:`View all`,yesterdayLabel:`Yesterday`},kl=n({NOTIFICATION_COUNT_CAP:()=>99,groupNotificationsByDay:()=>Rl,notificationCountText:()=>Nl,notificationDayHeading:()=>Ll,notificationTime:()=>Il,notificationTriggerLabel:()=>Pl,notificationUnreadAnnouncement:()=>Fl}),Al=99,jl=864e5,Ml=()=>M(`notificationCentre`,Ol);function Nl(e){return e>99?`99+`:String(e)}function Pl(e,t){return t===0?e:`${e}, ${Nl(t)} ${Ml().unreadWordLabel}`}function Fl(e){return e===0?Ml().noneUnreadText:it(Ml(),`unreadAnnouncementText`,e,{unread:Nl(e)})}function Il(e){return/^\d{4}-\d{2}-\d{2}$/.test(e)?``:J(e,{pattern:`time`})}function Ll(e,t=Date.now()){let n=J(e);return n===J(t)?Ml().todayLabel:n===J(q(t)-jl)?Ml().yesterdayLabel:n}function Rl(e,t=Date.now()){let n=new Map;for(let r of e){if(!Number.isFinite(q(r.at)))throw Error(`<AppNotificationCenter> item "${r.id}": at must be an ISO date-time with its zone (or a YYYY-MM-DD day), got ${String(r.at)}.`);let e=J(r.at),i=n.get(e);i||(i={key:e,heading:Ll(r.at,t),items:[]},n.set(e,i)),i.items.push(r)}return[...n.values()]}var zl={daysAgoTextOne:`{count} day ago`,daysAgoTextOther:`{count} days ago`,hoursAgoTextOne:`{count} hour ago`,hoursAgoTextOther:`{count} hours ago`,inDaysTextOne:`in {count} day`,inDaysTextOther:`in {count} days`,inHoursTextOne:`in {count} hour`,inHoursTextOther:`in {count} hours`,inMinutesTextOne:`in {count} minute`,inMinutesTextOther:`in {count} minutes`,justNowText:`just now`,minutesAgoTextOne:`{count} minute ago`,minutesAgoTextOther:`{count} minutes ago`},Bl=n({RELATIVE_LIMIT_DAYS:()=>7,formatRelativeTime:()=>ql,relativeTimeTitle:()=>Jl}),Vl=6e4,Hl=60*Vl,Ul=24*Hl,Wl=()=>M(`relativeTime`,zl),Gl={minute:`minutesAgoText`,hour:`hoursAgoText`,day:`daysAgoText`},Kl={minute:`inMinutesText`,hour:`inHoursText`,day:`inDaysText`};function ql(e,t=Date.now()){let n=q(e);if(!Number.isFinite(n))return G();let r=t-n,i=Math.abs(r);if(i>=7*Ul)return J(n);if(i<Vl)return Wl().justNowText;let[a,o]=i<Hl?[Math.floor(i/Vl),`minute`]:i<Ul?[Math.floor(i/Hl),`hour`]:[Math.floor(i/Ul),`day`];return it(Wl(),(r>0?Gl:Kl)[o],a)}function Jl(e){let t=q(e);return Number.isFinite(t)?`${J(t,{pattern:`datetime`})} IST`:G()}var Yl=n({FALLBACK_ROW_HEIGHT:()=>36,SELECT_WINDOW_OVERSCAN:()=>8,createHeightIndex:()=>Zl,scrollTopToReveal:()=>$l,windowRange:()=>Ql}),Xl=.5;function Zl(e,t=36){let n=Math.max(0,Math.floor(e)),r=new Float64Array(n),i=null,a=e=>{let t=e>=0&&e<n?r[e]??0:0;return t>0?t:s.estimate},o=()=>{if(i)return i;let e=new Float64Array(n+1);for(let t=0;t<n;t++)e[t+1]=(e[t]??0)+a(t);return i=e,e},s={count:n,estimate:t,setEstimate(e){!(e>0)||Math.abs(e-s.estimate)<=Xl||(s.estimate=e,i=null)},set(e,t){if(e<0||e>=n||!(t>0))return!1;let o=a(e);return r[e]=t,Math.abs(o-t)<=Xl?!1:(i=null,!0)},heightOf:a,offsetOf(e){return o()[Math.min(Math.max(0,Math.floor(e)),n)]??0},total(){return o()[n]??0},indexAt(e){if(n===0)return 0;let t=o(),r=0,i=n-1;for(;r<i;){let n=r+i+1>>1;(t[n]??0)<=e?r=n:i=n-1}return r}};return s}function Ql(e,t){if(e.count===0)return{start:0,end:0,before:0,after:0};let{overscan:n=8}=t,r=Math.max(0,t.scrollTop),i=e.indexAt(r),a=e.indexAt(r+Math.max(0,t.viewport)),o=Math.max(0,i-n),s=Math.min(e.count,a+1+n);return{start:o,end:s,before:e.offsetOf(o),after:e.total()-e.offsetOf(s)}}function $l(e,t,n){let r=e.offsetOf(t),i=r+e.heightOf(t);return r<n.scrollTop?r:i>n.scrollTop+n.viewport?i-n.viewport:n.scrollTop}var eu=n({WuiPostError:()=>tu}),tu=class extends Error{constructor(e,t){super(e,t.cause===void 0?void 0:{cause:t.cause}),P(this,`code`,void 0),P(this,`status`,void 0),P(this,`html`,void 0),P(this,`body`,void 0),P(this,`kind`,void 0),this.name=`WuiPostError`,this.code=t.code,this.status=t.status,this.html=t.html,this.body=t.body,this.kind=t.kind}},nu=n({forgetShell:()=>au,registerShell:()=>iu,wiredShell:()=>ou}),ru=new WeakMap;function iu(e,t){ru.set(e,t)}function au(e){ru.delete(e)}function ou(e){let t=e?.closest(`[data-app-shell]`);return(t&&ru.get(t))??null}var su=n({wuiUpload:()=>uu}),cu=new Set([204,205,304]),lu=e=>{let t=new Headers;for(let n of e.split(/\r?\n/)){let e=n.indexOf(`:`);e>0&&t.append(n.slice(0,e).trim(),n.slice(e+1).trim())}return t};async function uu(e,t,n={}){if(!(t instanceof FormData))throw TypeError(`wuiUpload: body must be FormData`);let r=n.timeoutMs;if(r!==void 0&&!(Number.isFinite(r)&&r>0))throw TypeError(`wuiUpload: timeoutMs must be a positive number`);let i={Accept:`text/html`,"X-Requested-With":`XMLHttpRequest`,[sa]:`1`,...n.headers};if(da(e)){let e=ua();e&&(i[e.header]=e.token)}let a=n.signal,o=n.navigate||(e=>window.location.assign(e));return a?.aborted?xa(`aborted`):new Promise(s=>{let c=new XMLHttpRequest,l=!1,u,d=()=>c.abort(),f=(e,t=null,n=``)=>{u!==void 0&&clearTimeout(u),a?.removeEventListener(`abort`,d),s(xa(e,t,n))};c.upload.onprogress=e=>{n.onProgress?.(e.loaded,e.lengthComputable?e.total:0)},c.onload=()=>{let t=c.status;if(t===0){f(`network`);return}let n=lu(c.getAllResponseHeaders()),r=fa(t,n),i=c.responseURL!==``&&c.responseURL!==new URL(e,window.location.href).href;r===`ok`&&i&&n.get(U.fragment)!==`1`&&(r=`session`);let a=c.responseText,s=r===`ok`||r===`validation`?a:``;if(t<200||t>599){f(r,null,s);return}let l=new Response(cu.has(t)?null:a,{status:t,headers:n});r===`session`?(o(t===401?n.get(`Location`)||window.location.href:c.responseURL),f(`session`,l)):f(r,l,s)},c.onerror=()=>f(`network`),c.onabort=()=>{f(a?.aborted?`aborted`:l?`timeout`:`aborted`)},r!==void 0&&(u=setTimeout(()=>{l=!0,c.abort()},r)),a?.addEventListener(`abort`,d,{once:!0}),c.open(`POST`,e,!0);for(let[e,t]of Object.entries(i))c.setRequestHeader(e,t);c.send(t)})}var du=n({deriveStepStatus:()=>fu,stepperHeaderItems:()=>pu});function fu(e,t){return typeof t==`number`?e<t?`done`:e===t?`active`:`pending`:`pending`}function pu(e,t){let{statusOf:n,journey:r,connectors:i}=t;return e.map((t,a)=>{let o=n(a),s;return s=o===`done`?{icon:`check`}:o===`error`?{icon:`alert-triangle`}:o===`skipped`?{icon:`minus`}:t.icon?{icon:t.icon}:{number:a+1},{index:a,status:o,className:o===`pending`?`step`:`step ${o}`,glyph:s,current:o===`active`,line:r&&i&&a<e.length-1?{done:o===`done`}:null}})}var mu={selectAllLabel:`Select all rows`,selectGroupLabel:`Select all in {group}`,selectRowLabel:`Select row`},hu=n({GROUP_SELECT_CLASS:()=>_u,SELECT_CELL_CLASS:()=>X,addRowSelectCells:()=>Du,addSelectColumn:()=>Ou,attachShiftRange:()=>Mu,createGroupSelectCell:()=>Su,createSelectHeaderCell:()=>yu,createSelectRowCell:()=>bu,createSelectSpacerCell:()=>xu,groupRowsOf:()=>Cu,syncGroupSelect:()=>Au,syncSelectAll:()=>ku}),gu=()=>M(`tableSelect`,mu),X=`wui-select-cell`,_u=`wui-group-select`,vu=(e,t)=>{let n=e.createElement(`input`);return n.type=`checkbox`,n.className=`form-check-input`,n.setAttribute(`aria-label`,t),n};function yu(e=document){let t=e.createElement(`th`);return t.className=X,t.appendChild(vu(e,gu().selectAllLabel)),t}function bu(e=document,{disabled:t=!1}={}){let n=e.createElement(`td`);n.className=X;let r=vu(e,gu().selectRowLabel);return r.disabled=t,n.appendChild(r),n}function xu(e=document){let t=e.createElement(`td`);return t.className=X,t}function Su(e,t){let n=e.createElement(`td`);return n.className=`${X} ${_u}`,n.appendChild(vu(e,N(gu().selectGroupLabel,{group:t}))),n}function Cu(e){let t=[];for(let n=e.nextElementSibling;n instanceof HTMLTableRowElement&&!n.matches(`.wui-group-row, .wui-virtual-spacer`);n=n.nextElementSibling)n.matches(`.wui-row-expanded`)||t.push(n);return t}var wu=e=>e.firstElementChild?.classList.contains(X),Tu=e=>e.matches(`.wui-group-row, .wui-virtual-spacer, .wui-row-expanded`),Eu=(e,t,n)=>[...e.querySelectorAll(t)].filter(e=>e instanceof n);function Du(e){for(let t of e){if(wu(t)||Tu(t))continue;let e=t.getAttribute(`data-row-selectable`)===`false`;t.insertBefore(bu(t.ownerDocument,{disabled:e}),t.firstChild)}}function Ou(e){let t=e.querySelector(`thead tr`);if(!(t instanceof HTMLTableRowElement))return null;wu(t)||t.insertBefore(yu(e.ownerDocument),t.firstChild),Du(Eu(e,`tbody tr`,HTMLTableRowElement));for(let t of Eu(e,`tfoot tr`,HTMLTableRowElement))wu(t)||t.insertBefore(xu(e.ownerDocument),t.firstChild);let n=t.querySelector(`.${X} .form-check-input`);return n instanceof HTMLInputElement?n:null}function ku(e){let t=e.querySelector(`thead .${X} .form-check-input`),n=Eu(e,`tbody tr:not(.wui-group-row) .form-check-input:not(:disabled)`,HTMLInputElement),r=n.length,i=n.filter(e=>e.checked).length;t instanceof HTMLInputElement&&(t.checked=r>0&&i===r,t.indeterminate=i>0&&i<r);for(let t of Eu(e,`tbody tr:not(.wui-group-row)`,HTMLTableRowElement)){let e=t.querySelector(`.form-check-input`);t.classList.toggle(`is-selected`,e instanceof HTMLInputElement&&e.checked)}return{selected:i,total:r}}function Au(e){for(let t of Eu(e,`tbody tr.wui-group-row`,HTMLTableRowElement)){let e=t.querySelector(`.${_u} .form-check-input`);if(!(e instanceof HTMLInputElement))continue;let n=Cu(t).flatMap(e=>Eu(e,`.${X} .form-check-input:not(:disabled)`,HTMLInputElement)),r=n.filter(e=>e.checked).length;e.disabled=n.length===0,e.checked=r>0&&r===n.length,e.indeterminate=r>0&&r<n.length}}var ju=`tbody tr:not(.wui-group-row) .${X} .form-check-input:not(:disabled)`;function Mu(e,t){let n=null,r=e=>e instanceof Element&&e.matches(`.wui-select-cell .form-check-input:not(:disabled)`)&&!!e.closest(`tbody`)&&!e.closest(`tr.wui-group-row`);e.addEventListener(`mousedown`,e=>{e.shiftKey&&r(e.target)&&e.preventDefault()}),e.addEventListener(`click`,i=>{let a=i.target;if(r(a)){if(i.shiftKey&&n?.isConnected&&n!==a){let r=Eu(e,ju,HTMLInputElement),i=r.indexOf(n),o=r.indexOf(a);if(i>=0&&o>=0){let e=[];for(let t of r.slice(Math.min(i,o),Math.max(i,o)+1))t!==a&&t.checked!==a.checked&&(t.checked=a.checked,e.push(t));e.length&&t?.(e,a.checked)}}n=a}})}var Nu=n({DATE_PICKER_TEXT:()=>Pu}),Pu={chooseMonthYearLabel:`Choose month and year`,chooseYearLabel:`Choose year`,clearLabel:`Clear`,dateTimeLabel:`Time`,helpLabel:`More information`,monthPlaceholder:`Choose a month`,nextDecadeLabel:`Next decade`,nextMonth:`Next month`,nextYearLabel:`Next year`,optionalLabel:`(optional)`,placeholder:`Choose a date`,previousDecadeLabel:`Previous decade`,previousMonth:`Previous month`,previousYearLabel:`Previous year`,todayLabel:`Today`,yearPlaceholder:`Choose a year`,zoneNote:`Times are shown in {zone}.`},Fu=n({DRAWER_TEXT:()=>Iu}),Iu={closeLabel:`Close`,confirmDiscard:`Discard your changes?`,discardLabel:`Discard`,keepLabel:`Keep editing`,screenText:`{now}% of the screen`,sheetHeightLabel:`Sheet height`},Lu=n({matchSegments:()=>Ru});function Ru(e,t){let n=String(e??``),r=String(t??``).trim();if(!r||!n)return[{text:n,match:!1}];let i=n.toLowerCase(),a=r.toLowerCase();if(i.length!==n.length)return[{text:n,match:!1}];let o=[],s=0,c=i.indexOf(a,s);for(;c!==-1;)c>s&&o.push({text:n.slice(s,c),match:!1}),o.push({text:n.slice(c,c+a.length),match:!0}),s=c+a.length,c=i.indexOf(a,s);return s<n.length&&o.push({text:n.slice(s),match:!1}),o}var zu=n({TOOLTIP_ATTRIBUTE:()=>Bu,TOOLTIP_CLASS_ATTRIBUTE:()=>Hu,TOOLTIP_ID_ATTRIBUTE:()=>Uu,TOOLTIP_OPEN_ATTRIBUTE:()=>Wu,TOOLTIP_PLACEMENT_ATTRIBUTE:()=>Vu,TOOLTIP_SHORTCUT_ATTRIBUTE:()=>Gu,showPinnedTooltips:()=>qu,wireTooltips:()=>Ku}),Bu=`data-wui-tooltip`,Vu=`data-wui-tooltip-placement`,Hu=`data-wui-tooltip-class`,Uu=`data-wui-tooltip-id`,Wu=`data-wui-tooltip-open`,Gu=`data-wui-tooltip-shortcut`;function Ku(e){Zu.has(e)||(Zu.add(e),e.addEventListener(`pointerover`,t=>{let n=nd(t.target);n&&!id(e,n)&&sd(e,n,!1)}),e.addEventListener(`pointerout`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||cd(e,n))}),e.addEventListener(`focusin`,t=>{let n=t.target;if(!(n instanceof Element)||!n.matches(`:focus-visible`))return;let r=nd(n);r&&!id(e,r)&&sd(e,r,!1)}),e.addEventListener(`focusout`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&(t.relatedTarget instanceof Node&&n.trigger.contains(t.relatedTarget)||cd(e,n))}),e.addEventListener(`click`,t=>{let n=$u(e).transient;n&&nd(t.target)===n.trigger&&cd(e,n)}))}function qu(e){let t=e instanceof Document?e:e.ownerDocument;for(let n of e.querySelectorAll(`[${Wu}]`))sd(t,n,!0)}var Ju=[`top`,`bottom`,`start`,`end`],Yu=`wui-tooltip`,Xu=`[${Bu}], [${Uu}]`,Zu=new WeakSet,Qu=new WeakMap;function $u(e){let t=Qu.get(e);return t||(t={bubble:null,transient:null,pinned:new Map,pinnedCount:0,onEscape:t=>{t.key===`Escape`&&(t.preventDefault(),t.stopPropagation(),ld(e))}},Qu.set(e,t)),t}function ed(e){return Ju.includes(e)}function td(e){return e===`auto`||ed(e)}function nd(e){if(!(e instanceof Element))return null;let t=e.closest(Xu);return t instanceof HTMLElement?t:null}function rd(e,t){return e.transient?.trigger===t?e.transient:e.pinned.get(t)}function id(e,t){return rd($u(e),t)!==void 0}function ad(e,t){let n=e.createElement(`div`);n.id=t,n.setAttribute(`role`,`tooltip`),n.setAttribute(`popover`,`manual`);let r=e.createElement(`div`);r.className=`tooltip-arrow`;let i=e.createElement(`div`);return i.className=`tooltip-inner`,n.append(r,i),{el:n,arrow:r,inner:i}}function od(e,t){return t.bubble||=ad(e,Yu),t.bubble}function sd(e,t,n){let r=t.getAttribute(Bu),i=t.getAttribute(Uu);if(r===null&&i===null)throw Error(`a tooltip trigger carries ${Bu} or ${Uu}`);if(r!==null&&i!==null)throw Error(`a tooltip trigger carries ${Bu} or ${Uu}, not both`);let a=t.getAttribute(`data-wui-tooltip-placement`)??`top`;if(!td(a))throw Error(`${Vu} "${a}" is not auto, top, bottom, start or end`);let o=$u(e);cd(e,n?o.pinned.get(t):o.transient);let s,c=null,l=null,u=!1;if(i!==null){let t=e.getElementById(i);if(!(t instanceof HTMLElement))throw Error(`no element with id "${i}" for a tooltip`);s=t,c=e.createComment(`wui-tooltip`),s.replaceWith(c),l=s.getAttribute(`popover`),s.setAttribute(`popover`,`manual`)}else{let i=n?ad(e,`${Yu}-pinned-${++o.pinnedCount}`):od(e,o);u=n;let c=t.getAttribute(`data-wui-tooltip-class`)??``;i.el.className=`tooltip wui-tooltip bs-tooltip-${a} ${c}`.trim();let l=t.getAttribute(Gu);i.inner.replaceChildren(r??``,...l?[j(`span`,{class:`wui-kbd`},l)]:[]),s=i.el}let d=t.getAttribute(`aria-describedby`);t.setAttribute(`aria-describedby`,s.id);let f=()=>w(t,s,{side:a,align:`center`,gap:6,arrow:s.querySelector(`.tooltip-arrow`)});Ie(e).append(s),s.showPopover(),f();let p=Le(e=>{s.parentElement!==e&&e.append(s),Pe(s),f()},e),m=new MutationObserver(()=>{t.isConnected||cd(e,rd($u(e),t))});m.observe(e,{childList:!0,subtree:!0});let h={el:s,trigger:t,pinned:n,own:u,home:c,popover:l,describedBy:d,watch:m,unroot:p};n?o.pinned.set(t,h):o.transient=h,e.addEventListener(`keydown`,o.onEscape,!0)}function cd(e,t){if(!t)return;let n=$u(e);t.pinned?n.pinned.delete(t.trigger):n.transient=null,!n.transient&&n.pinned.size===0&&e.removeEventListener(`keydown`,n.onEscape,!0),t.watch.disconnect(),t.unroot(),t.el.hidePopover(),t.home?(t.popover===null?t.el.removeAttribute(`popover`):t.el.setAttribute(`popover`,t.popover),t.home.replaceWith(t.el)):t.own&&t.el.remove(),t.describedBy===null?t.trigger.removeAttribute(`aria-describedby`):t.trigger.setAttribute(`aria-describedby`,t.describedBy)}function ld(e){let t=$u(e);cd(e,t.transient);for(let n of[...t.pinned.values()])cd(e,n)}var ud=Object.freeze({anchorOverlay:d,avatarNode:Zt,buttonClass:Fo,calendarMath:Ys,copyText:pc,dataTable:vc,dataTableText:gc,datePickerText:Nu,defineElement:r,devWarn:en,dom:ze,drawerText:Fu,elementBase:a,fieldState:rn,flash:Gi,formatters:is,formMirror:cn,glyphs:tr,hasOwn:mn,httpFailureText:uo,iconGlyphs:tr,imeSafeEnter:gr,isDrawn:ll,listboxKeyNav:yr,loader:xn,mentionText:dl,menuKeyNav:xl,nativeOverlay:ne,notificationCentreText:Dl,notificationDays:kl,optionLabel:Cr,partRegistry:Qr,postError:eu,refreshAfter:Ra,regions:wa,relativeTime:Bl,rtl:c,selectList:Pr,selectRemote:ii,selectText:Mr,selectWindow:Yl,server:po,serverHtml:Qi,serverTableRegistry:Na,shellRegistry:nu,shortcutKeys:dt,stepperHeader:du,svgNodes:Yn,tableExport:Mi,tableSelect:hu,textMatch:Lu,textStore:He,toastAction:ro,toastHeader:Bi,tooltips:zu,wuiHost:ea,wuiHttp:na,wuiUpload:su,WuiSelect:li,zone:Ko}),dd={avatarCropFailed:`That photo could not be saved. Try again, or choose another one.`,avatarDialogSubtitle:`Drag to position the photo, then zoom or rotate it.`,avatarDialogTitle:`Edit photo`,avatarSave:`Save photo`,cameraLabel:`Take photo`,cancel:`Cancel`,changeLabel:`Change photo`,closeLabel:`Close`,cropFailed:`That image could not be cropped. Choose another one.`,dialogSubtitle:`Drag the frame and zoom to choose what to keep.`,dialogTitle:`Crop photo`,heicUnreadableMessage:`This browser cannot open HEIC photos. Choose a JPG, PNG or WebP image instead.`,optionalLabel:`(optional)`,overlayLabel:`Update photo`,photoUnreadableMessage:`That photo could not be opened. Choose a JPG, PNG or WebP image.`,removeLabel:`Remove photo`,save:`Apply`,unreadable:`That image could not be opened. Choose another one.`,uploadLabel:`Upload photo`},fd=`image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif`,pd=10,md=512,hd=`image/webp`,gd=[96,48];function _d(e){if(!e)return!1;let t=String(e.type||``).toLowerCase();return t===`image/heic`||t===`image/heif`||/\.hei[cf]$/i.test(String(e.name||``))}function vd(e){let t=M(`imagePicker`,dd);return _d(e)?t.heicUnreadableMessage:t.photoUnreadableMessage}function yd(e,t){let n=Number(t);return{name:e?.name||`photo`,type:hd,size:Number.isInteger(n)&&n>0?n:512}}var bd=`/`,xd=`.search-wrap.wui-search-collapsible`,Sd=`.wui-topsearch-panel`,Cd=`.modal, wui-drawer[open]`,wd=new WeakSet,Td=e=>{let t=e.querySelector(`.wui-search-toggle`);return t instanceof HTMLElement?t:null},Ed=e=>{let t=e.querySelector(`.search-input`);return t instanceof HTMLInputElement?t:null},Dd=e=>[...e.querySelectorAll(xd)].filter(e=>e instanceof HTMLElement);function Od(e){e.classList.remove(`is-collapsed`),Td(e)?.setAttribute(`aria-expanded`,`true`),Ed(e)?.focus()}function kd(e){Ed(e)?.value||(e.classList.add(`is-collapsed`),Td(e)?.setAttribute(`aria-expanded`,`false`))}function Ad(e){if(e.dataset.wuiCollapseWired)return;e.dataset.wuiCollapseWired=`1`;let t=Td(e),n=Ed(e);t?.addEventListener(`click`,()=>Od(e)),n?.addEventListener(`keydown`,r=>{r.key!==`Escape`||n?.value||(r.preventDefault(),kd(e),t?.focus())}),e.addEventListener(`focusout`,t=>{let n=t.relatedTarget;n instanceof Node&&e.contains(n)||kd(e)})}function jd(e){wd.has(e)||(wd.add(e),e.addEventListener(`keydown`,t=>{if(t.key!==`/`||t.ctrlKey||t.altKey||t.metaKey||t.defaultPrevented||Ot(t.target instanceof Node?t.target:null)||t.target instanceof Element&&t.target.closest(Cd)||e.querySelector(Sd))return;let n=Dd(e).find(e=>e.offsetParent!==null);n&&(t.preventDefault(),Od(n))}))}function Md(e=document){let t=e;for(let e of Dd(t))Ad(e);jd(e instanceof Element?e.ownerDocument:e)}var Nd=`data-wui-command-shortcut`,Pd=`k`,Fd=new WeakSet,Id=/ \(Ctrl\+([^)]+)\)$/;function Ld(e=navigator){return/mac|iphone|ipad/i.test(e.userAgentData?.platform??e.platform)}function Rd(e,t){return!(e.ctrlKey||e.metaKey)||e.altKey||e.shiftKey||e.repeat?!1:String(e.key).toLowerCase()===String(t).toLowerCase()}function zd(e){return e.nodeType===Node.DOCUMENT_NODE}function Bd(e){e.closest(`wui-modal`)?.show()}function Vd(e){if(Ld())for(let t of e.querySelectorAll(`[${Nd}]`)){let e=t.getAttribute(`placeholder`);e!==null&&t.setAttribute(`placeholder`,e.replace(Id,(e,t)=>` (⌘${t})`))}}function Hd(e){let t=zd(e)?e:e.ownerDocument;e.querySelector(`[data-wui-command-shortcut]`)&&(Vd(t),Fd.has(t)||(Fd.add(t),t.addEventListener(`keydown`,e=>{for(let n of t.querySelectorAll(`[${Nd}]`))if(Rd(e,n.getAttribute(`data-wui-command-shortcut`)||Pd)){e.preventDefault(),n.localName===`wui-command-palette`||n.localName===`wui-modal`?Bd(n):(n.focus(),`select`in n&&typeof n.select==`function`&&n.select());return}})))}var Ud={audioLabel:`audio`,byteLabel:`B`,chooseText:`Choose {label}.`,gigabyteLabel:`GB`,imagesLabel:`images`,keepFileUnderMbText:`Keep the file under {maxSizeMb} MB.`,kilobyteLabel:`KB`,megabyteLabel:`MB`,orText:`{names} or {last}`,supportedLabel:`supported`,textFileLabel:`text file`,videosLabel:`videos`},Z=()=>M(`fileValidation`,Ud),Wd=`image/png,image/jpeg,image/webp`,Gd=5,Kd={"image/png":[`.png`],"image/jpeg":[`.jpg`,`.jpeg`],"image/webp":[`.webp`],"image/gif":[`.gif`],"image/svg+xml":[`.svg`],"image/heic":[`.heic`],"image/heif":[`.heif`],"application/pdf":[`.pdf`],"text/plain":[`.txt`]},qd={"image/png":`PNG`,"image/jpeg":`JPG`,"image/webp":`WEBP`,"image/gif":`GIF`,"image/svg+xml":`SVG`,"image/heic":`HEIC`,"image/heif":`HEIC`,"application/pdf":`PDF`,".png":`PNG`,".jpg":`JPG`,".jpeg":`JPG`,".webp":`WEBP`,".gif":`GIF`,".svg":`SVG`,".heic":`HEIC`,".heif":`HEIC`,".pdf":`PDF`},Jd={"text/plain":`textFileLabel`,".txt":`textFileLabel`,"image/*":`imagesLabel`,"video/*":`videosLabel`,"audio/*":`audioLabel`},Yd=new Set([`image/*`,`video/*`,`audio/*`]),Xd=e=>{let t=Jd[e];return t?Z()[t]:qd[e]},Zd=e=>String(e||``).split(`,`).map(e=>e.trim().toLowerCase()).filter(Boolean),Qd=[`.png`,`.jpg`,`.jpeg`,`.webp`,`.gif`,`.svg`,`.bmp`,`.avif`,`.heic`,`.heif`];function $d(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t.startsWith(`image/`);let n=typeof e==`string`?e:e.name||e.url||``,r=String(n).toLowerCase();return Qd.some(e=>r.endsWith(e))}var ef=[`kilobyteLabel`,`megabyteLabel`,`gigabyteLabel`];function tf(e){if(e<1024)return`${e} ${Z().byteLabel}`;let t=e/1024,n=0;for(;t>=1024&&n<ef.length-1;)t/=1024,n+=1;return`${t.toFixed(1)} ${Z()[ef[n]??`gigabyteLabel`]}`}function nf(e){if(!e)return!1;let t=typeof e==`object`&&e.type?String(e.type).toLowerCase():``;if(t)return t===`application/pdf`;let n=typeof e==`string`?e:e.name||e.url||``;return String(n).toLowerCase().replace(/[?#][\s\S]*$/,``).endsWith(`.pdf`)}function rf(e){let t=Zd(e);return t.length?t.every(e=>e.startsWith(`.`)?Qd.includes(e):e===`image/*`||e.startsWith(`image/`)):!1}function af(e){let t=[];for(let n of Zd(e)){let e=Xd(n)||(n.startsWith(`.`)?n.slice(1).toUpperCase():n.toUpperCase());t.includes(e)||t.push(e)}return t.length<=1?t[0]||Z().supportedLabel:N(Z().orText,{names:t.slice(0,-1).join(`, `),last:t.slice(-1).join(``)})}function of(e,t){let n=Zd(t);if(!n.length)return!0;let r=(e.type||``).toLowerCase(),i=(e.name||``).toLowerCase();return n.some(e=>e.startsWith(`.`)?i.endsWith(e):e.endsWith(`/*`)?r.startsWith(e.slice(0,-1)):r&&r===e?!0:!r&&(Kd[e]||[]).some(e=>i.endsWith(e)))}function sf(e,t={}){if(!e)return null;let n=t.accept===void 0?Wd:t.accept,r=t.maxSizeMb===void 0?5:t.maxSizeMb;if(!of(e,n)){let e=af(n),t=Zd(n).map(e=>Yd.has(e));return t.every(Boolean)?N(Z().chooseText,{label:e}):t.some(Boolean)?N(Z().chooseText,{label:e.endsWith(` file`)?`${e}s`:`${e} files`}):N(Z().chooseText,{label:`a ${e.endsWith(` file`)?e:`${e} file`}`})}return r!==null&&r>0&&e.size>r*1024*1024?N(Z().keepFileUnderMbText,{maxSizeMb:r}):null}function cf(e,t){let n=Array.from(e||[]),r=t.multiple?n:n.slice(0,1),i=[],a=[];for(let e of r){let n=sf(e,{accept:t.accept,maxSizeMb:t.maxSizeMb});n?a.push({file:e,message:n}):i.push(e)}return{files:i,rejections:a}}function lf(e,t){let{overClass:n,isDisabled:r=()=>!1,onFiles:i,onReject:a,...o}=t,s=0,c=t=>e.classList.toggle(n,t),l=e=>{e.preventDefault(),r()||(s+=1,c(!0))},u=e=>{e.preventDefault(),r()||c(!0)},d=e=>{e.preventDefault(),r()||(s=Math.max(0,s-1),s===0&&c(!1))},f=e=>{if(e.preventDefault(),s=0,c(!1),r())return;let{files:t,rejections:n}=cf(e.dataTransfer?.files,o);t.length&&i(t);let l=n[0];l&&a(l)};return e.addEventListener(`dragenter`,l),e.addEventListener(`dragover`,u),e.addEventListener(`dragleave`,d),e.addEventListener(`drop`,f),()=>{e.removeEventListener(`dragenter`,l),e.removeEventListener(`dragover`,u),e.removeEventListener(`dragleave`,d),e.removeEventListener(`drop`,f)}}var uf={aadhaarMessage:`Enter a valid 12-digit Aadhaar number`,amountMessage:`Enter a valid amount`,dateMessage:`Enter a valid date as DD-MM-YYYY`,gstinMessage:`Enter a valid GSTIN`,ifscMessage:`Enter a valid IFSC`,incompleteMessage:`Enter the full value`,panMessage:`Enter a valid PAN`,phoneInMessage:`Enter a 10-digit mobile number`,pinCodeMessage:`Enter a valid 6-digit PIN code`},df=/[0-9]/,ff={9:df,A:/[A-Za-z]/,"*":/[0-9A-Za-z]/},pf=/[9A*]/,mf=new Set([`text`,`tel`,`search`,`url`,`password`]),hf=e=>{let t=e.replace(/\D/g,``);return t.length===12&&t.startsWith(`91`)?t.slice(2):t.length===11&&t.startsWith(`0`)?t.slice(1):e},gf=e=>{let t=Number(e.slice(0,2)),n=Number(e.slice(2,4)),r=Number(e.slice(4,8));if(r<1)return!1;let i=new Date(Date.UTC(r,n-1,t));return i.getUTCFullYear()===r&&i.getUTCMonth()===n-1&&i.getUTCDate()===t},_f=e=>e.length<=3?e:`${e.slice(0,-3).replace(/\B(?=(\d{2})+(?!\d))/g,`,`)},${e.slice(-3)}`,vf=e=>{let t=/^(\d{4})-(\d{2})-(\d{2})$/.exec(e.trim());return t?`${t[3]}-${t[2]}-${t[1]}`:e},Q=()=>M(`inputMask`,uf);function yf(e,{upper:t=!1,normalize:n,valid:r,post:i=e=>e,message:a=Q().incompleteMessage}={}){let o=[...e].map(e=>{let t=ff[e];return t?{re:t}:{lit:e}}),s=o.filter(e=>e.re).length;return{inputMode:o.every(e=>!e.re||e.re===df)?`numeric`:`text`,normalize:n,post:i,message:a,extract(e){let n=``,r=0;for(let i of e){for(;r<o.length&&o[r]?.lit!==void 0&&o[r]?.lit!==i;)r++;if(r>=o.length)break;let e=o[r];e?.lit===void 0?e?.re.test(i)&&(n+=t?i.toUpperCase():i,r++):r++}return n},layout(e){let t=``,n=[],r=0;for(let i=0;i<o.length&&r<e.length;i++){let a=o[i];a?.lit===void 0?(t+=e.charAt(r++),n.push(!0)):(t+=a.lit,n.push(!1))}return{text:t,isRaw:n}},isValid:e=>e.length===s&&(!r||r(e))}}function bf(){return{inputMode:`decimal`,post:e=>e,message:Q().amountMessage,extract(e){let t=``,n=!1,r=0;for(let i of e)df.test(i)?n?r<2&&(t+=i,r++):t+=i:i===`.`&&!n&&(n=!0,t+=i);return t.startsWith(`.`)&&(t=`0${t}`),t.replace(/^0+(?=\d)/,``)},layout(e){let[t=``,n]=e.split(`.`),r=_f(t)+(e.includes(`.`)?`.${n}`:``);return{text:r,isRaw:[...r].map(e=>e!==`,`)}},isValid:e=>/^\d+(\.\d{1,2})?$/.test(e)}}var xf={"phone-in":()=>yf(`99999 99999`,{normalize:hf,valid:e=>/^[6-9]/.test(e),message:Q().phoneInMessage}),pan:()=>yf(`AAAAA9999A`,{upper:!0,valid:e=>/^[A-Z]{5}\d{4}[A-Z]$/.test(e),message:Q().panMessage}),gstin:()=>yf(`99AAAAA9999A***`,{upper:!0,valid:e=>/^\d{2}[A-Z]{5}\d{4}[A-Z][1-9A-Z]Z[0-9A-Z]$/.test(e),message:Q().gstinMessage}),aadhaar:()=>yf(`9999 9999 9999`,{valid:e=>/^[2-9]/.test(e),message:Q().aadhaarMessage}),ifsc:()=>yf(`AAAA*******`,{upper:!0,valid:e=>/^[A-Z]{4}0[A-Z0-9]{6}$/.test(e),message:Q().ifscMessage}),"pin-code":()=>yf(`999999`,{valid:e=>/^[1-9]/.test(e),message:Q().pinCodeMessage}),date:()=>yf(`99-99-9999`,{normalize:vf,valid:gf,post:(e,t)=>e.length===8&&gf(e)?`${e.slice(4)}-${e.slice(2,4)}-${e.slice(0,2)}`:t,message:Q().dateMessage}),amount:bf},Sf=Object.keys(xf),Cf=e=>{let t=String(e).toLowerCase();return hn(xf,t)?t:void 0},wf=e=>pf.test(String(e))&&Cf(e)===void 0,Tf=new Map;Qe(()=>Tf.clear());function Ef(e){if(e==null||e===``)return null;let t=String(e),n=Tf.get(t);return n===void 0&&(n=wf(t)?yf(t):hn(xf,t)?xf[t]?.()??null:null,Tf.set(t,n)),n}var $=(e,t)=>e.normalize?e.normalize(t):t;function Df(e,t){let n=Ef(e);return n?n.extract($(n,String(t??``))):String(t??``)}function Of(e,t){let n=Ef(e);if(!n)return String(t??``);let r=n.extract($(n,String(t??``)));return n.post(r,n.layout(r).text)}function kf(e,t){let n=Ef(e);return n?n.layout(n.extract($(n,String(t??``)))).text:String(t??``)}var Af=(e,t)=>{if(t<=0)return 0;let n=0;for(let r=0;r<e.length;r++)if(e[r]&&++n===t)return r+1;return e.length},jf=new WeakMap,Mf=e=>jf.get(e)?.(),Nf=new WeakMap;function Pf(e,t,n,r){let i=e.getAll(t),a=Nf.get(e)??new Set;Nf.set(e,a);let o=i.findIndex((e,r)=>e===n&&!a.has(`${t}\u0000${r}`));if(!(o<0)){if(a.add(`${t}\u0000${o}`),i[o]=r,i.length===1)e.set(t,r);else{e.delete(t);for(let n of i)e.append(t,n)}}}function Ff(e){let t=null,n=null,r=!1,i=(t,n)=>{n===null?e.removeAttribute(t):n!==void 0&&e.setAttribute(t,n)},a,o,s=()=>{t?.remove(),t=null,n&&(n.hidden=!1),n=null,r&&e.classList.remove(`error`),r=!1,i(`aria-invalid`,a),i(`aria-describedby`,o),a=void 0,o=void 0};return i=>{if(!i){s();return}let c=e.closest(`.field`),l=c instanceof HTMLElement?c:null,u=l?.querySelector(`.field-error`);if(!(u&&u!==t&&u.textContent?.trim())){if(!t){if(r=!e.classList.contains(`error`),e.classList.add(`error`),a=e.getAttribute(`aria-invalid`),o=e.getAttribute(`aria-describedby`),l){t=document.createElement(`div`),t.className=`field-error`,e.id&&(t.id=`${e.id}-error`);let r=l.querySelector(`.field-hint`);n=r instanceof HTMLElement?r:null,n&&(n.hidden=!0),l.insertBefore(t,[...l.children].find(e=>e.classList.contains(`field-count`))??null),t.id&&e.setAttribute(`aria-describedby`,t.id)}e.setAttribute(`aria-invalid`,`true`)}t&&(t.textContent=i)}}}function If(e,{mask:t,postFormatted:n=!1,onChange:r,onInvalidChange:i}={}){let a=Ef(t);if(!a||!mf.has(e.type))return()=>{};let o=Object.getPrototypeOf(e),s=Object.getOwnPropertyDescriptor(o,`value`);if(!s?.set)throw Error(`input value setter missing`);let c=s.set,l=!e.hasAttribute(`inputmode`);l&&e.setAttribute(`inputmode`,a.inputMode);let u=i??Ff(e),d=null,f=!1,p=!1,m=!1,h=``,g=``,_,v=()=>{let e=m?h:``;e!==g&&(g=e,u(g))},y=(t,n,i)=>{let o=a.extract(t.slice(0,n)).length,s=a.extract(t),{text:l,isRaw:u}=a.layout(s);if(e.value!==l&&(c.call(e,l),document.activeElement===e&&mf.has(e.type))){let t=Af(u,o);e.setSelectionRange(t,t)}e.dataset.maskRaw=s,h=s&&!a.isValid(s)?a.message:``,e.setCustomValidity(h),v(),i&&s!==d&&r?.(s,l),d=s},b=Object.getOwnPropertyDescriptor(e,`value`),x=b??s;Object.defineProperty(e,"value",{configurable:!0,...x.enumerable===void 0?{}:{enumerable:x.enumerable},get:()=>A(x.get,`input value getter missing`).call(e),set:t=>{if(A(x.set,`input value setter missing`).call(e,t),p)return;let n=$(a,e.value);y(n,n.length,!0)}});let S=()=>{f=!0,e.dispatchEvent(new Event(`input`,{bubbles:!0})),f=!1},C=t=>{let n=t instanceof InputEvent?t:null;if(f||p||n?.isComposing)return;let r=n?.inputType===`insertText`&&(n.data?.length??0)<=1||n?.inputType?.startsWith(`delete`)?e.value:$(a,e.value);y(r,e.selectionStart??r.length,!0)},ee=()=>{p=!0},w=()=>{p=!1;let t=$(a,e.value);y(t,e.selectionStart??t.length,!0),S()},te=t=>{let n=t.inputType===`deleteContentBackward`;if(!n&&t.inputType!==`deleteContentForward`||t.isComposing)return;let r=e.selectionStart;if(r==null||r!==e.selectionEnd)return;let{isRaw:i}=a.layout(a.extract(e.value)),o=n?r-1:r;for(;o>=0&&o<i.length&&!i[o];)o+=n?-1:1;o!==(n?r-1:r)&&(t.preventDefault(),o<0||o>=i.length||(y(e.value.slice(0,o)+e.value.slice(o+1),n?o:r,!0),S()))},T=t=>{if(e.readOnly||e.disabled)return;let n=t.clipboardData?.getData(`text`);if(n==null)return;t.preventDefault();let r=$(a,n),i=e.selectionStart??e.value.length,o=e.selectionEnd??i;y(e.value.slice(0,i)+r+e.value.slice(o),i+r.length,!0),S()},ne=()=>{let t=a.extract(e.value);return a.post(t,a.layout(t).text)},E=()=>{m=!0,v()};e.addEventListener(`input`,C),e.addEventListener(`beforeinput`,te),e.addEventListener(`paste`,T),e.addEventListener(`compositionstart`,ee),e.addEventListener(`compositionend`,w),e.addEventListener(`blur`,E),e.addEventListener(`invalid`,E);let D=e.form,O=t=>{e.name&&!e.disabled&&Pf(t.formData,e.name,e.value,ne())},re=()=>{clearTimeout(_),_=setTimeout(()=>{m=!1,y($(a,e.value),e.value.length,!0)},0)};n||(D?.addEventListener(`formdata`,O),jf.set(e,ne)),D?.addEventListener(`reset`,re),D?.addEventListener(`submit`,E);let ie=$(a,e.value);return y(ie,ie.length,!1),()=>{clearTimeout(_),e.removeEventListener(`input`,C),e.removeEventListener(`beforeinput`,te),e.removeEventListener(`paste`,T),e.removeEventListener(`compositionstart`,ee),e.removeEventListener(`compositionend`,w),e.removeEventListener(`blur`,E),e.removeEventListener(`invalid`,E),D?.removeEventListener(`formdata`,O),D?.removeEventListener(`reset`,re),D?.removeEventListener(`submit`,E),jf.delete(e),b?Object.defineProperty(e,"value",b):Reflect.deleteProperty(e,`value`),m=!1,h=``,v(),e.setCustomValidity(``),delete e.dataset.maskRaw,l&&e.removeAttribute(`inputmode`)}}function Lf(){let e=typeof window>`u`?void 0:window.jQuery?.validator?.prototype;if(!e||e.wuiMaskHook)return;let t=e.elementValue;e.elementValue=function(e){let n=Mf(e);return n===void 0?t.call(this,e):n},e.wuiMaskHook=!0}var Rf=new WeakMap,zf,Bf=e=>{Rf.has(e)||Rf.set(e,If(e,{mask:e.dataset.appMask,postFormatted:e.hasAttribute(`data-mask-post-formatted`)}))},Vf=e=>[...e.querySelectorAll(`input[data-app-mask]`)].filter(e=>e instanceof HTMLInputElement),Hf=e=>e instanceof Element?[...e instanceof HTMLInputElement&&e.matches(`input[data-app-mask]`)?[e]:[],...Vf(e)]:[];function Uf(){zf||typeof MutationObserver>`u`||(zf=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Hf(e))Rf.get(t)?.(),Rf.delete(t);for(let e of t.addedNodes)for(let t of Hf(e))Bf(t)}}),zf.observe(document.documentElement,{childList:!0,subtree:!0}))}function Wf(e=document){Lf();for(let t of Vf(e))Bf(t);e===document&&Uf()}var Gf=`data-wui-bulk-in-bar`,Kf=`[data-wui-page-header-bar][data-wui-bulk-for]`,qf=new WeakSet;function Jf(e){return`${K(e,{decimals:0})} selected`}function Yf(e){let t=e.dataset.wuiBulkFor;return t===void 0?null:document.getElementById(t)}function Xf(e){return typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`}function Zf(e,t){return[...e.querySelectorAll(t)].flatMap(e=>e instanceof HTMLElement?[e]:[])}function Qf(e,t){for(let n of Zf(e,`[data-wui-bar-swap]`))n.hidden=t>0;let n=e.querySelector(`[data-wui-bar-bulk]`);if(!n)return;if(!(n instanceof HTMLElement))throw Error(`The bulk slot is not an HTML element.`);n.hidden=t===0;let r=n.querySelector(`.page-header-bar-bulk-count`);if(!(r instanceof HTMLElement))throw Error(`The bulk slot has no count element.`);r.textContent=t>0?Jf(t):``}function $f(e=document){for(let t of Zf(e,Kf))Yf(t)?.setAttribute(Gf,``);qf.has(document)||(qf.add(document),document.addEventListener(`selectionchange`,e=>{if(!(e instanceof CustomEvent)||!Xf(e.detail))return;let t=e.target;if(t!==null&&!(t instanceof Node))throw Error(`The selection changed on a target that is not a node.`);for(let n of Zf(document,Kf))Yf(n)?.contains(t)&&Qf(n,e.detail.selected)}))}var ep={digitText:`At least one digit`,lengthText:`At least {minLength} characters long`,lowercaseText:`At least one lowercase letter`,requirementsTitle:`Password requirements`,specialText:`At least one special character`,uniqueCharsTextOne:`At least {n} unique character`,uniqueCharsTextOther:`At least {n} unique characters`,uppercaseText:`At least one uppercase letter`},tp={minLength:10,uppercase:!0,lowercase:!0,digit:!0,special:!0,uniqueChars:0,customRules:[]},np=()=>M(`passwordRules`,ep);function rp(e){return e===!0||e==null?{...tp}:{...tp,...e}}function ip(e){let t=rp(e),n=[];if(t.minLength>0&&n.push({key:`length`,label:N(np().lengthText,{minLength:t.minLength}),test:e=>e.length>=t.minLength}),t.uppercase&&n.push({key:`uppercase`,label:np().uppercaseText,test:e=>/[A-Z]/.test(e)}),t.lowercase&&n.push({key:`lowercase`,label:np().lowercaseText,test:e=>/[a-z]/.test(e)}),t.digit&&n.push({key:`digit`,label:np().digitText,test:e=>/[0-9]/.test(e)}),t.special&&n.push({key:`special`,label:np().specialText,test:e=>/[^A-Za-z0-9]/.test(e)}),t.uniqueChars>0){let e=t.uniqueChars;n.push({key:`unique`,label:it(np(),`uniqueCharsText`,e,{n:e}),test:t=>new Set(t).size>=e})}for(let[e,r]of(t.customRules??[]).entries()){let t=new RegExp(r.pattern);n.push({key:`custom-${e}`,label:r.label,test:e=>t.test(e)})}return n}function ap(e,t){let n=e==null?``:String(e);return ip(t).map(e=>({key:e.key,label:e.label,met:e.test(n)}))}function op(e,t){return ap(e,t).every(e=>e.met)}var sp={moveLabel:`Move to`,moveText:`Move to {label}`},cp=`wui:row-drop`,lp=`is-drop-over`,up=`application/x-wui-rows`,dp=`wui-row-dragging`,fp=`[data-wui-drop-target]`,pp=`tbody tr[data-row-key]`,mp=`input, button, a, select, textarea, label`,hp=`.wui-select-cell .form-check-input`,gp=new WeakMap,_p=new WeakSet,vp=null,yp=null;function bp(e){let t=e.querySelector(hp);return t instanceof HTMLInputElement&&t.checked}function xp(e){let t=[];for(let n of e.querySelectorAll(`tbody tr:not(.wui-group-row)`))n instanceof HTMLElement&&bp(n)&&t.push(n.dataset.rowKey);return t}function Sp(e,t){return Ve(e,t)}function Cp(e,t){let n=Sp(e,t);return n instanceof HTMLElement?n:null}function wp(e){let t=e.textContent;if(t===null)throw Error(`A drop target has no text content.`);return t.trim()}var Tp=e=>typeof e==`object`&&!!e&&`selected`in e&&typeof e.selected==`number`;function Ep(){vp=null,document.body.classList.remove(dp);for(let e of document.querySelectorAll(`${fp}.${lp}`))e.classList.remove(lp)}function Dp(e,t,n){e.dispatchEvent(new CustomEvent(cp,{bubbles:!0,detail:{keys:t,target:n.dataset.wuiDropTarget}}))}function Op(e){let t=Cp(e.target,fp);if(!t||!vp)return;e.preventDefault();let n=A(e.dataTransfer,`A drag event arrived without its DataTransfer.`);n.dropEffect=`move`,t.classList.add(lp)}function kp(e){let t=Cp(e.target,fp);!t||e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||t.classList.remove(lp)}function Ap(e){let t=Cp(e.target,fp);if(!t||!vp)return;e.preventDefault(),t.classList.remove(lp);let{root:n,keys:r}=vp;Dp(n,r,t),Ep()}function jp(e){let t=Cp(e.target,fp);t&&yp?.keys.length&&(e.preventDefault(),Dp(yp.root,yp.keys,t))}function Mp(e){(vr(e)||e.key===` `)&&jp(e)}function Np(e){_p.has(e)||(_p.add(e),e.addEventListener(`dragover`,Op),e.addEventListener(`dragenter`,Op),e.addEventListener(`dragleave`,kp),e.addEventListener(`drop`,Ap),e.addEventListener(`click`,jp),e.addEventListener(`keydown`,Mp))}function Pp(e){let t=gp.get(e);if(t)return t;Np(e.ownerDocument||e);let n=t=>{let n=Cp(t.target,pp);if(!n||!e.contains(n))return;let r=Sp(t.target,mp);r&&n.contains(r)||(n.draggable=!0)},r=t=>{let n=Cp(t.target,pp);if(!n||!e.contains(n))return;let r=bp(n)?xp(e):[n.dataset.rowKey],i=A(t.dataTransfer,`A drag event arrived without its DataTransfer.`);i.setData(up,JSON.stringify(r)),i.setData(`text/plain`,r.join(`,`)),i.effectAllowed=`move`,vp={root:e,keys:r},document.body.classList.add(dp)},i=t=>{let n=t instanceof CustomEvent?t.detail:void 0;if(Tp(n)){let{keys:t}=n;n.selected>0?yp={root:e,keys:Array.isArray(t)?t:xp(e)}:n.selected===0&&(yp=null)}Ip(document)};e.addEventListener(`pointerdown`,n),e.addEventListener(`dragstart`,r),e.addEventListener(`dragend`,Ep),e.addEventListener(`selectionchange`,i);let a=()=>{e.removeEventListener(`pointerdown`,n),e.removeEventListener(`dragstart`,r),e.removeEventListener(`dragend`,Ep),e.removeEventListener(`selectionchange`,i),gp.delete(e)};return gp.set(e,a),a}var Fp=()=>M(`rowDrop`,sp);function Ip(e=document){let t=e.querySelector(`[data-wui-row-drag] tbody tr:not(.wui-group-row) ${hp}:checked`)!==null;for(let n of e.querySelectorAll(fp)){n.tagName!==`BUTTON`&&(n.setAttribute(`role`,`button`),n.setAttribute(`tabindex`,`0`)),t?n.removeAttribute(`aria-disabled`):n.setAttribute(`aria-disabled`,`true`);let e=n.getAttribute(`data-wui-drop-label`)||wp(n);n.setAttribute(`aria-label`,N(Fp().moveText,{label:e}))}for(let t of e.querySelectorAll(`.wui-drop-tray`))t.hasAttribute(`role`)||(t.setAttribute(`role`,`toolbar`),t.setAttribute(`aria-label`,Fp().moveLabel))}function Lp(e=document){for(let t of e.querySelectorAll(`[data-wui-row-drag]`))t instanceof HTMLElement&&Pp(t);Ip(e.ownerDocument||e)}var Rp=`.table-wrap, .table-responsive, [class*="table-responsive-"]`,zp=1;function Bp(e){let t=()=>{let t=e.scrollWidth-e.clientWidth,n=Math.abs(e.scrollLeft);e.toggleAttribute(`data-wui-overflow-start`,t>zp&&n>zp),e.toggleAttribute(`data-wui-overflow-end`,t>zp&&n<t-zp),e.toggleAttribute(`data-wui-overflow-top`,e.scrollTop>zp)},n=()=>{if(e.scrollWidth-e.clientWidth>zp){let t=getComputedStyle(e);e.style.setProperty(`--wui-scroll-pad-start`,t.paddingInlineStart),e.style.setProperty(`--wui-scroll-pad-end`,t.paddingInlineEnd)}else e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))},r=()=>{n(),t()};e.addEventListener(`scroll`,t,{passive:!0});let i=null;if(typeof ResizeObserver<`u`){i=new ResizeObserver(r),i.observe(e);for(let t of e.children)i.observe(t)}return r(),()=>{e.removeEventListener(`scroll`,t),i?.disconnect(),e.removeAttribute(`data-wui-overflow-start`),e.removeAttribute(`data-wui-overflow-end`),e.removeAttribute(`data-wui-overflow-top`),e.style.getPropertyValue(`--wui-scroll-pad-end`)&&(e.style.removeProperty(`--wui-scroll-pad-start`),e.style.removeProperty(`--wui-scroll-pad-end`))}}var Vp=new WeakMap,Hp,Up=e=>{Vp.has(e)||Vp.set(e,Bp(e))},Wp=e=>{if(!(e instanceof HTMLElement))return[];let t=e.matches(`.table-wrap, .table-responsive, [class*="table-responsive-"]`)?[e]:[];if(e.firstElementChild===null)return t;let n=[...e.querySelectorAll(Rp)].filter(e=>e instanceof HTMLElement);return[...t,...n]};function Gp(){Hp||typeof MutationObserver>`u`||(Hp=new MutationObserver(e=>{for(let t of e){for(let e of t.removedNodes)for(let t of Wp(e))Vp.get(t)?.(),Vp.delete(t);for(let e of t.addedNodes)for(let t of Wp(e))Up(t)}}),Hp.observe(document.documentElement,{childList:!0,subtree:!0}))}function Kp(e=document){for(let t of e.querySelectorAll(Rp))t instanceof HTMLElement&&Up(t);e===document&&Gp()}var qp=new WeakSet;function Jp(e){let t=e.querySelectorAll?[...e.querySelectorAll(`[data-wui-flash]`)]:[];e instanceof Element&&e.matches(`[data-wui-flash]`)&&t.unshift(e);for(let e of t){let t=e.getAttribute(`data-wui-flash-variant`)||`success`;if(!qi(t))throw TypeError(`data-wui-flash-variant="${t}" is not supported. Use ${Ki.join(`, `)}.`);let n=e.getAttribute(`data-wui-flash`)||(e.textContent??``).trim();e.remove(),n&&co(n,t)}}function Yp(e=document){let t=e instanceof Element?e.ownerDocument:e;if(!qp.has(t)){qp.add(t);let e=Zi();e&&co(e.message,e.variant,e.action)}Jp(e)}var Xp=`data-wui-submit-once`,Zp=`data-wui-submit-pending`,Qp=`wui-submit-spinner`,$p=new WeakSet,em=new WeakMap;function tm(e){return e instanceof HTMLButtonElement||e instanceof HTMLInputElement?e:null}function nm(e){if(e.setAttribute(`aria-busy`,`true`),e.tagName===`INPUT`||e.querySelector(`.${Qp}`))return;let t=e.ownerDocument.createElement(`span`);t.className=`spinner-border spinner-border-sm me-2 ${Qp}`,t.setAttribute(`aria-hidden`,`true`),e.prepend(t)}function rm(e){e.removeAttribute(`aria-busy`),e.querySelector(`.${Qp}`)?.remove()}function im(e){return e.method===`post`&&e.target!==`_blank`&&e.getAttribute(`data-wui-submit-once`)!==`off`}function am(e){let t=e.target;if(!(t instanceof HTMLFormElement)||!im(t))return;if(t.hasAttribute(Zp)){e.preventDefault();return}t.setAttribute(Zp,``);let n=tm(e.submitter);setTimeout(()=>{t.hasAttribute(Zp)&&(e.defaultPrevented?t.removeAttribute(Zp):n&&(n.disabled=!0,nm(n),em.set(t,n)))},0)}var om=e=>[...e.querySelectorAll(`form[${Zp}]`)].filter(e=>e instanceof HTMLFormElement);function sm(e){for(let t of om(e)){t.removeAttribute(Zp);let e=em.get(t);e&&(e.disabled=!1,rm(e),em.delete(t))}}function cm(e){let t=e.ownerDocument===null?e:e.ownerDocument;$p.has(t)||($p.add(t),t.addEventListener(`submit`,am,!0),t.defaultView?.addEventListener(`pageshow`,()=>sm(t)))}var lm=[`light`,`dark`,`auto`],um=[`wave`,`circle`,`slide`,`blinds`,`fade`,`none`],dm=`fade`,fm=`theme`,pm={wave:1100,circle:700,slide:600,blinds:900,fade:350,none:0},mm=`wui-theme-switching`,hm=`wui:theme:change`,gm=`(prefers-color-scheme: dark)`,_m=e=>typeof window<`u`&&typeof window.matchMedia==`function`&&window.matchMedia(e).matches,vm=e=>lm.some(t=>t===e);function ym(e){return e===`dark`||e===`auto`&&_m(gm)?`dark`:`light`}function bm(e=fm){let t=null;try{t=window.localStorage.getItem(e)}catch(e){if(!(e instanceof DOMException))throw e}return vm(t)?t:`auto`}function xm(e,t=fm){try{window.localStorage.setItem(t,e)}catch(e){if(!(e instanceof DOMException))throw e}}function Sm(e){let t=document.documentElement,n=ym(e);t.setAttribute(`data-theme`,e),t.setAttribute(`data-bs-theme`,n),document.dispatchEvent(new CustomEvent(hm,{detail:{mode:n,preference:e}}))}var Cm=`((k)=>{let m;try{m=localStorage.getItem(k)}catch{m=null}if(m!=='light'&&m!=='dark')m='auto';const r=document.documentElement,q=window.matchMedia?window.matchMedia('(prefers-color-scheme: dark)'):null;function s(){const t=r.getAttribute('data-theme');r.setAttribute('data-bs-theme',t==='auto'?(q?.matches?'dark':'light'):t)}r.setAttribute('data-theme',m);s();if(q?.addEventListener)q.addEventListener('change',()=>{if(r.getAttribute('data-theme')==='auto')s()})})(`;function wm(e=fm){return`${Cm}${JSON.stringify(String(e)).replace(/</g,`\\u003c`)})`}function Tm(e,{includeAuto:t=!1}={}){return e===`light`?`dark`:e===`dark`&&t?`auto`:`light`}function Em(e){if(typeof window>`u`||typeof window.matchMedia!=`function`)return()=>{};let t=window.matchMedia(gm),n=()=>e(t.matches?`dark`:`light`);return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}var Dm=60,Om=e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,km=e=>e.toFixed(1),Am=(e,t)=>`${km(e)}px ${km(t)}px`,jm={amplitude:22,segments:36,cycles:1.5,ripples:2},Mm=6,Nm=(e,t,n,r,i)=>{let{amplitude:a,segments:o,cycles:s}=jm,c=n*(t+2*a),l=i?t+a-c:c-a,u=i?t+2*a:-2*a,d=[Am(0,u)];for(let t=0;t<=o;t++){let n=e*t/o,i=l+a*Math.sin(2*Math.PI*s*t/o+r);d.push(Am(n,i))}return d.push(Am(e,u)),`polygon(${d.join(`, `)})`},Pm=(e,t,n,r)=>{let i=t/Mm,a=[];for(let t=0;t<Mm;t++){let o=t*i,s=i*n,c=r?o+i-s:o,l=r?o+i:o+s;a.push(Am(0,c),Am(e,c),Am(e,l),Am(0,l))}return`polygon(${a.join(`, `)})`};function Fm(e,{width:t,height:n,to:r=`dark`,origin:i}){let a=r===`dark`,o=[];for(let r=0;r<=Dm;r++){let s=r/Dm,c=Om(s);switch(e){case`circle`:{let e=i?.x??t/2,r=i?.y??n/2,a=Math.hypot(Math.max(e,t-e),Math.max(r,n-r));o.push({clipPath:`circle(${km(a*c)}px at ${km(e)}px ${km(r)}px)`});break}case`slide`:{let e=n*(1-c);o.push({clipPath:a?`inset(${km(e)}px 0px 0px 0px)`:`inset(0px 0px ${km(e)}px 0px)`});break}case`blinds`:o.push({clipPath:Pm(t,n,c,a)});break;case`fade`:o.push({clipPath:`none`,opacity:c});break;case`none`:return[];default:o.push({clipPath:Nm(t,n,c,s*jm.ripples*2*Math.PI,a)})}}return o}var Im=e=>{e instanceof DOMException&&(e.name===`AbortError`||e.name===`InvalidStateError`)||nn(`[@webority/ui-elements] The theme view transition failed:`,e)};function Lm(e,{effect:t=dm,to:n,origin:r,duration:i}={}){let a=document.documentElement,o=n!==void 0&&a.getAttribute(`data-bs-theme`)===n;if(t===`none`||o||_m(`(prefers-reduced-motion: reduce)`)||typeof document.startViewTransition!=`function`||typeof a.animate!=`function`)return e(),Promise.resolve(!1);a.classList.add(mm);let s=document.startViewTransition(e),c=i??pm[t]??pm.fade;return s.ready.then(()=>{let e=Fm(t,{width:window.innerWidth,height:window.innerHeight,to:n,origin:r});a.animate(e,{duration:c,easing:`linear`,fill:`both`,pseudoElement:`::view-transition-new(root)`})}).catch(Im),s.finished.catch(Im).finally(()=>a.classList.remove(mm)).then(()=>!0)}function Rm(){Yt(),i(`wui-select`,pi),i(`wui-modal`,Xt)}return globalThis.WeborityUiElementsInternal||(globalThis.WeborityUiElementsInternal={version:`0.191.2`,modules:ud}),Ri(),zn(),Ao(),Rm(),e.AVATAR_ACCEPT=fd,e.AVATAR_MAX_SIZE_MB=pd,e.AVATAR_OUTPUT_SIZE=md,e.AVATAR_OUTPUT_TYPE=hd,e.AVATAR_PREVIEW_SIZES=gd,e.BAR_BULK_IN_BAR_ATTRIBUTE=Gf,e.COLUMN_MAX_WIDTH=bc,e.COLUMN_MIN_WIDTH=yc,e.COMMAND_SHORTCUT_ATTRIBUTE=Nd,e.COPY_FEEDBACK_MS=mc,e.CSRF_META_NAME=ra,e.CURRENCIES=os,e.CURRENCY_SYMBOLS=Ho,e.DATE_PATTERNS=ls,e.DEFAULT_CSRF_HEADER=ia,e.DEFAULT_CURRENCY=Vo,e.DEFAULT_IMAGE_ACCEPT=Wd,e.DEFAULT_MAX_SIZE_MB=Gd,e.DEFAULT_PASSWORD_RULES=tp,e.DEFAULT_THEME_EFFECT=dm,e.DEFAULT_THEME_STORAGE_KEY=fm,e.DROP_OVER_CLASS=lp,e.DURATION_UNITS=cs,e.FILTER_POPOVER_MAX_CHIPS=Lt,e.FLASH_STORAGE_KEY=Ji,e.FLASH_VARIANTS=Ki,e.FORMAT_STYLES=as,e.GROUP_SELECT_CLASS=_u,e.HTTP_KINDS=ca,e.IST_TIME_ZONE=W,e.MASK_INPUT_TYPES=mf,e.MASK_NAMES=Sf,e.MENTION_ID_PATTERN=fl,e.MONEY_UNITS=ss,e.NOTIFICATION_COUNT_CAP=Al,e.PIN_AT_VAR=Bc,e.PIN_SIDES=Cc,e.RESIZE_STEP=xc,e.RESIZE_STEP_LARGE=Sc,e.ROW_DRAG_TYPE=up,e.ROW_DROP_EVENT=cp,e.ROW_HEIGHTS=Tc,e.ROW_MOVE_LIMIT=Wc,e.ROW_MOVE_MS=Gc,e.ROW_SAVE_ATTR=$c,e.ROW_SAVE_ERROR_CLASS=el,e.ROW_SAVE_STATES=Qc,e.SCROLL_EDGE_SELECTOR=Rp,e.SEARCH_OPEN_KEY=bd,e.SELECT_CELL_CLASS=X,e.SHORTCUTS_OFF_ATTRIBUTE=pt,e.SHORTCUT_EVENT=ht,e.SHORTCUT_SCOPE_ATTRIBUTE=mt,e.SUBMIT_ONCE_ATTRIBUTE=Xp,e.THEME_BOOT_SCRIPT_BODY=Cm,e.THEME_CHANGE_EVENT=hm,e.THEME_EFFECTS=um,e.THEME_EFFECT_DURATION=pm,e.THEME_MODES=lm,e.THEME_SWITCHING_CLASS=mm,e.TOAST_ACTION_METHODS=Vi,e.TOAST_ACTION_MS=io,e.VIRTUAL_OVERSCAN=wc,e.WUI_HEADERS=U,e.WuiPostError=tu,e.WuiSelect=pi,e.acceptDroppedFiles=cf,e.acceptLabel=af,e.addRowSelectCells=Du,e.addSelectColumn=Ou,e.applyBarBulk=Qf,e.applyRefresh=no,e.applyTheme=Sm,e.ariaKeyShortcuts=Dt,e.attachFileDrop=lf,e.attachInputMask=If,e.attachRowDrag=Pp,e.attachScrollEdges=Bp,e.attachShiftRange=Mu,e.avatarCropOptions=yd,e.avatarUnreadableMessage=vd,e.barBulkCountText=Jf,e.buildPasswordRules=ip,e.clampColumnWidth=Nc,e.classifyStatus=fa,e.collapseSearch=kd,e.configureCsrf=oa,e.copyTextToClipboard=hc,e.createGroupSelectCell=Su,e.createRequestQueue=Ca,e.createSelectHeaderCell=yu,e.createSelectRowCell=bu,e.createSelectSpacerCell=xu,e.currencyPrefix=Wo,e.deriveStepStatus=fu,e.emptyValueLabel=G,e.evaluatePassword=ap,e.fillText=N,e.formatCompact=Ls,e.formatCurrency=Fs,e.formatDate=J,e.formatDateTime=Gs,e.formatDuration=Bs,e.formatFileSize=tf,e.formatMasked=kf,e.formatNumber=K,e.formatPercent=Rs,e.formatRelativeTime=ql,e.formatValue=Us,e.glyphNode=R,e.groupCount=Mc,e.groupItems=Pc,e.groupNotificationsByDay=Rl,e.groupRowsOf=Cu,e.identityCell=nl,e.inShortcutScope=jt,e.initCollapsibleSearch=Md,e.initCommandShortcuts=Hd,e.initFlashToasts=Yp,e.initInputMasks=Wf,e.initPageBarBulk=$f,e.initRowDrag=Lp,e.initScrollEdges=Kp,e.initSubmitOnce=cm,e.isCommandChord=Rd,e.isCurrencyCode=Uo,e.isHeicFile=_d,e.isImageFile=$d,e.isImageOnlyAccept=rf,e.isMaskPattern=wf,e.isPdfFile=nf,e.isTimeZone=Xo,e.isTypingTarget=Ot,e.loadServer=vo,e.loadShell=xo,e.loadedServer=yo,e.loadedShell=So,e.maskedPostValue=Mf,e.matchSegments=Ru,e.matchesAccept=of,e.measureRows=Yc,e.mentionLabel=hl,e.mentionTextFromValue=vl,e.mentionValueFromText=yl,e.mentionedIds=bl,e.moveFocus=Nt,e.nextTheme=Tm,e.notificationCountText=Nl,e.notificationDayHeading=Ll,e.notificationTime=Il,e.notificationTriggerLabel=Pl,e.notificationUnreadAnnouncement=Fl,e.openSearch=Od,e.parseMentionValue=_l,e.parseServerHtml=$i,e.parseToastAction=Wi,e.passwordSatisfies=op,e.pinAtValue=Vc,e.pinClasses=Uc,e.pinOffsetVar=zc,e.planPins=Hc,e.playRowMoves=Xc,e.pluralText=it,e.postedMasked=Of,e.rawMasked=Df,e.readColumnWidths=Lc,e.readCsrf=ua,e.readStoredTheme=bm,e.readText=M,e.refreshAfter=to,e.refreshRegions=Aa,e.relativeTimeTitle=Jl,e.reloadsPage=Ka,e.resolveMask=Ef,e.resolveTheme=ym,e.rowLabel=rl,e.rowOrderChanged=Zc,e.runShortcut=Mt,e.runToastAction=lo,e.saveOutcomeText=cl,e.setRowSaveState=ol,e.setText=Ze,e.settledRows=sl,e.shortcutKey=Et,e.shortcutName=Tt,e.shortcutsOff=At,e.showResultToast=so,e.showToast=co,e.stepperHeaderItems=pu,e.storeTheme=xm,e.syncGroupSelect=Au,e.syncSelectAll=ku,e.syncTargets=Ip,e.themeBootScript=wm,e.themeKeyframes=Fm,e.tickedKeys=xp,e.timeZoneLabel=Js,e.timeoutFromAttribute=ha,e.toInstant=q,e.todayIn=ns,e.transitionTheme=Lm,e.validateFile=sf,e.virtualRange=Fc,e.wallClockOf=ts,e.watchSystemTheme=Em,e.whenElementsReady=Vn,e.withTrustedLabel=Tr,e.writeColumnWidths=Rc,e.wuiFetch=Sa,e.wuiUpload=uu,e.zoneOffsetMs=Qo,e.zoneParts=Zo,e})({});