5 lines
100 KiB
JavaScript
5 lines
100 KiB
JavaScript
import{n as be,s as Ln,v as wo,p as nt,q as Vt,x as gt,X as bo,al as So,y as z,ad as ee,W as To,a3 as In,a2 as xo,D as M,ac as yt,S as en,u as I,G as ot,b as Oe,am as _o,an as $o,o as G,c as $e,r as je,w as V,i as ye,k as W,m as wt,ao as Ao,f as le,g as q,H as qt,h as fe,R as kt,a4 as No,F as it,N as Ft,O as Bt,ap as ko,aq as Eo,a9 as Y,t as Mn,a7 as zn,l as Ce,a5 as Po,z as Co,A as Oo,E as Do,K as Ue,ag as De,M as Fo,L as Xe,ab as Bo,C as tn,a1 as Ro}from"./preload-helper-DoJVKVMq.chunk.mjs";import{l as Lo,N as _e,T as Io,U as Mo,g as nn,V as zo,S as Ho}from"./mdi-BUoBIgaz.chunk.mjs";import{_ as bt,r as Kt,T as jo,b as J,c as Hn,U as Go,V as Wo,z as Vo,N as Fe}from"./NcIconSvgWrapper-De-2-ukl-CcvQeIAt.chunk.mjs";import{b as St,g as Et,i as qo}from"./translation-DoG5ZELJ-DJHEP2RB.chunk.mjs";function xs(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(St()),t=e.getWeekInfo?.()??e.weekInfo;return t?t.firstDay%7:1}function _s(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=St();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"long"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"long"})]}function $s(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=St();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"narrow"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"narrow"})]}function Ko(e=Date.now(),t={}){const n={ignoreSeconds:!1,language:Et(),relativeTime:"long",...t},o=new Date(e),r=new Intl.RelativeTimeFormat([n.language,Et()],{numeric:"auto",style:n.relativeTime}),i=(o.getTime()-Date.now())/1e3;if(Math.abs(i)<59.5)return n.ignoreSeconds||r.format(Math.round(i),"second");const s=i/60;if(Math.abs(s)<=59)return r.format(Math.round(s),"minute");const a=s/60;if(Math.abs(a)<23.5)return r.format(Math.round(a),"hour");const l=a/24;if(Math.abs(l)<6.5)return r.format(Math.round(l),"day");if(Math.abs(l)<27.5){const c=l/7;return r.format(Math.round(c),"week")}const u=l/30,h=Math.abs(u)<11?{month:n.relativeTime,day:"numeric"}:{year:n.relativeTime==="narrow"?"2-digit":"numeric",month:n.relativeTime};return new Intl.DateTimeFormat([n.language,Et()],h).format(o)}function Ae(e,t){return Ln()?(wo(e,t),!0):!1}const Pt=new WeakMap,Uo=(...e)=>{var t;const n=e[0],o=(t=gt())===null||t===void 0?void 0:t.proxy,r=o??Ln();if(r==null&&!In())throw new Error("injectLocal must be called in setup");return r&&Pt.has(r)&&n in Pt.get(r)?Pt.get(r)[n]:xo(...e)},rt=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const jn=e=>e!=null,Xo=Object.prototype.toString,Yo=e=>Xo.call(e)==="[object Object]",Qe=()=>{};function on(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function Ee(e){return Array.isArray(e)?e:[e]}function Jo(e){return gt()}function As(e){if(!rt)return e;let t=0,n,o;const r=()=>{t-=1,o&&t<=0&&(o.stop(),n=void 0,o=void 0)};return((...i)=>(t+=1,o||(o=To(!0),n=o.run(()=>e(...i))),Ae(r),n))}function Zo(e,t=!0,n){Jo()?nt(e,n):t?e():Vt(e)}function Qo(e,t=1e3,n={}){const{immediate:o=!0,immediateCallback:r=!1}=n;let i=null;const s=ee(!1);function a(){i&&(clearInterval(i),i=null)}function l(){s.value=!1,a()}function u(){const h=z(t);h<=0||(s.value=!0,r&&e(),a(),s.value&&(i=setInterval(e,h)))}return o&&rt&&u(),(bo(t)||typeof t=="function")&&Ae(be(t,()=>{s.value&&rt&&u()})),Ae(l),{isActive:So(s),pause:l,resume:u}}function ei(e,t,n){return be(e,t,{...n,immediate:!0})}const se=rt?window:void 0;function U(e){var t;const n=z(e);return(t=n?.$el)!==null&&t!==void 0?t:n}function ue(...e){const t=(o,r,i,s)=>(o.addEventListener(r,i,s),()=>o.removeEventListener(r,i,s)),n=M(()=>{const o=Ee(z(e[0])).filter(r=>r!=null);return o.every(r=>typeof r!="string")?o:void 0});return ei(()=>{var o,r;return[(o=(r=n.value)===null||r===void 0?void 0:r.map(i=>U(i)))!==null&&o!==void 0?o:[se].filter(i=>i!=null),Ee(z(n.value?e[1]:e[0])),Ee(I(n.value?e[2]:e[1])),z(n.value?e[3]:e[2])]},([o,r,i,s],a,l)=>{if(!o?.length||!r?.length||!i?.length)return;const u=Yo(s)?{...s}:s,h=o.flatMap(c=>r.flatMap(m=>i.map(p=>t(c,m,p,u))));l(()=>{h.forEach(c=>c())})},{flush:"post"})}function ti(){const e=ee(!1),t=gt();return t&&nt(()=>{e.value=!0},t),e}function Tt(e){const t=ti();return M(()=>(t.value,!!e()))}function ni(e,t,n={}){const{window:o=se,...r}=n;let i;const s=Tt(()=>o&&"MutationObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=be(M(()=>{const c=Ee(z(e)).map(U).filter(jn);return new Set(c)}),c=>{a(),s.value&&c.size&&(i=new MutationObserver(t),c.forEach(m=>i.observe(m,r)))},{immediate:!0,flush:"post"}),u=()=>i?.takeRecords(),h=()=>{l(),a()};return Ae(h),{isSupported:s,stop:h,takeRecords:u}}function oi(e,t,n={}){const{window:o=se,document:r=o?.document,flush:i="sync"}=n;if(!o||!r)return Qe;let s;const a=h=>{s?.(),s=h},l=yt(()=>{const h=U(e);if(h){const{stop:c}=ni(r,m=>{m.map(p=>[...p.removedNodes]).flat().some(p=>p===h||p.contains(h))&&t(m)},{window:o,childList:!0,subtree:!0});a(c)}},{flush:i}),u=()=>{l(),a()};return Ae(u),u}function ii(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function rn(...e){let t,n,o={};e.length===3?(t=e[0],n=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,n=e[0],o=e[1]):(t=e[0],n=e[1]):(t=!0,n=e[0]);const{target:r=se,eventName:i="keydown",passive:s=!1,dedupe:a=!1}=o,l=ii(t);return ue(r,i,u=>{u.repeat&&z(a)||l(u)&&n(u)},s)}function ri(e={}){var t;const{window:n=se,deep:o=!0,triggerOnRemoval:r=!1}=e,i=(t=e.document)!==null&&t!==void 0?t:n?.document,s=()=>{let u=i?.activeElement;if(o)for(var h;u?.shadowRoot;)u=u==null||(h=u.shadowRoot)===null||h===void 0?void 0:h.activeElement;return u},a=ee(),l=()=>{a.value=s()};if(n){const u={capture:!0,passive:!0};ue(n,"blur",h=>{h.relatedTarget===null&&l()},u),ue(n,"focus",l,u)}return r&&oi(a,l,{document:i}),l(),a}const si=Symbol("vueuse-ssr-width");function ai(){const e=In()?Uo(si,null):null;return typeof e=="number"?e:void 0}function li(e,t={}){const{window:n=se,ssrWidth:o=ai()}=t,r=Tt(()=>n&&"matchMedia"in n&&typeof n.matchMedia=="function"),i=ee(typeof o=="number"),s=ee(),a=ee(!1),l=u=>{a.value=u.matches};return yt(()=>{if(i.value){i.value=!r.value,a.value=z(e).split(",").some(u=>{const h=u.includes("not all"),c=u.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),m=u.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let p=!!(c||m);return c&&p&&(p=o>=on(c[1])),m&&p&&(p=o<=on(m[1])),h?!p:p});return}r.value&&(s.value=n.matchMedia(z(e)),a.value=s.value.matches)}),ue(s,"change",l,{passive:!0}),M(()=>a.value)}function Ns(e){return li("(prefers-color-scheme: dark)",e)}function ui(e,t,n={}){const{window:o=se,...r}=n;let i;const s=Tt(()=>o&&"ResizeObserver"in o),a=()=>{i&&(i.disconnect(),i=void 0)},l=be(M(()=>{const h=z(e);return Array.isArray(h)?h.map(c=>U(c)):[U(h)]}),h=>{if(a(),s.value&&o){i=new ResizeObserver(t);for(const c of h)c&&i.observe(c,r)}},{immediate:!0,flush:"post"}),u=()=>{a(),l()};return Ae(u),{isSupported:s,stop:u}}function ks(e,t={width:0,height:0},n={}){const{window:o=se,box:r="content-box"}=n,i=M(()=>{var c;return(c=U(e))===null||c===void 0||(c=c.namespaceURI)===null||c===void 0?void 0:c.includes("svg")}),s=ee(t.width),a=ee(t.height),{stop:l}=ui(e,([c])=>{const m=r==="border-box"?c.borderBoxSize:r==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(o&&i.value){const p=U(e);if(p){const v=p.getBoundingClientRect();s.value=v.width,a.value=v.height}}else if(m){const p=Ee(m);s.value=p.reduce((v,{inlineSize:w})=>v+w,0),a.value=p.reduce((v,{blockSize:w})=>v+w,0)}else s.value=c.contentRect.width,a.value=c.contentRect.height},n);Zo(()=>{const c=U(e);c&&(s.value="offsetWidth"in c?c.offsetWidth:t.width,a.value="offsetHeight"in c?c.offsetHeight:t.height)});const u=be(()=>U(e),c=>{s.value=c?t.width:0,a.value=c?t.height:0});function h(){l(),u()}return{width:s,height:a,stop:h}}function Es(e,t,n={}){const{root:o,rootMargin:r,threshold:i=0,window:s=se,immediate:a=!0}=n,l=Tt(()=>s&&"IntersectionObserver"in s),u=M(()=>Ee(z(e)).map(U).filter(jn));let h=Qe;const c=ee(a),m=l.value?be(()=>[u.value,U(o),z(r),c.value],([v,w,T])=>{if(h(),!c.value||!v.length)return;const x=new IntersectionObserver(t,{root:U(w),rootMargin:T,threshold:i});v.forEach(b=>b&&x.observe(b)),h=()=>{x.disconnect(),h=Qe}},{immediate:a,flush:"post"}):Qe,p=()=>{h(),m(),c.value=!1};return Ae(p),{isSupported:l,isActive:c,pause(){h(),c.value=!1},resume(){c.value=!0},stop:p}}const ci="focusin",di="focusout",pi=":focus-within";function Ps(e,t={}){const{window:n=se}=t,o=M(()=>U(e)),r=ee(!1),i=M(()=>r.value);if(!n||!ri(t).value)return{focused:i};const s={passive:!0};return ue(o,ci,()=>r.value=!0,s),ue(o,di,()=>{var a,l,u;return r.value=(a=(l=o.value)===null||l===void 0||(u=l.matches)===null||u===void 0?void 0:u.call(l,pi))!==null&&a!==void 0?a:!1},s),{focused:i}}function hi(e,t={}){const{threshold:n=50,onSwipe:o,onSwipeEnd:r,onSwipeStart:i,passive:s=!0}=t,a=en({x:0,y:0}),l=en({x:0,y:0}),u=M(()=>a.x-l.x),h=M(()=>a.y-l.y),{max:c,abs:m}=Math,p=M(()=>c(m(u.value),m(h.value))>=n),v=ee(!1),w=M(()=>p.value?m(u.value)>m(h.value)?u.value>0?"left":"right":h.value>0?"up":"down":"none"),T=S=>[S.touches[0].clientX,S.touches[0].clientY],x=(S,E)=>{a.x=S,a.y=E},b=(S,E)=>{l.x=S,l.y=E},$={passive:s,capture:!s},C=S=>{v.value&&r?.(S,w.value),v.value=!1},L=[ue(e,"touchstart",S=>{if(S.touches.length!==1)return;const[E,O]=T(S);x(E,O),b(E,O),i?.(S)},$),ue(e,"touchmove",S=>{if(S.touches.length!==1)return;const[E,O]=T(S);b(E,O),$.capture&&!$.passive&&Math.abs(u.value)>Math.abs(h.value)&&S.preventDefault(),!v.value&&p.value&&(v.value=!0),v.value&&o?.(S)},$),ue(e,["touchend","touchcancel"],C,$)];return{isSwiping:v,direction:w,coordsStart:a,coordsEnd:l,lengthX:u,lengthY:h,stop:()=>L.forEach(S=>S())}}var Gn=["input:not([inert]):not([inert] *)","select:not([inert]):not([inert] *)","textarea:not([inert]):not([inert] *)","a[href]:not([inert]):not([inert] *)","button:not([inert]):not([inert] *)","[tabindex]:not(slot):not([inert]):not([inert] *)","audio[controls]:not([inert]):not([inert] *)","video[controls]:not([inert]):not([inert] *)",'[contenteditable]:not([contenteditable="false"]):not([inert]):not([inert] *)',"details>summary:first-of-type:not([inert]):not([inert] *)","details:not([inert]):not([inert] *)"],st=Gn.join(","),Wn=typeof Element>"u",Ne=Wn?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,at=!Wn&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},lt=function(e,t){var n;t===void 0&&(t=!0);var o=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),r=o===""||o==="true",i=r||t&&e&&(typeof e.closest=="function"?e.closest("[inert]"):lt(e.parentNode));return i},fi=function(e){var t,n=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return n===""||n==="true"},Vn=function(e,t,n){if(lt(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(st));return t&&Ne.call(e,st)&&o.unshift(e),o=o.filter(n),o},ut=function(e,t,n){for(var o=[],r=Array.from(e);r.length;){var i=r.shift();if(!lt(i,!1))if(i.tagName==="SLOT"){var s=i.assignedElements(),a=s.length?s:i.children,l=ut(a,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:i,candidates:l})}else{var u=Ne.call(i,st);u&&n.filter(i)&&(t||!e.includes(i))&&o.push(i);var h=i.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(i),c=!lt(h,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(i));if(h&&c){var m=ut(h===!0?i.children:h.children,!0,n);n.flatten?o.push.apply(o,m):o.push({scopeParent:i,candidates:m})}else r.unshift.apply(r,i.children)}}return o},qn=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},xe=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||fi(e))&&!qn(e)?0:e.tabIndex},mi=function(e,t){var n=xe(e);return n<0&&t&&!qn(e)?0:n},vi=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Kn=function(e){return e.tagName==="INPUT"},gi=function(e){return Kn(e)&&e.type==="hidden"},yi=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return t},wi=function(e,t){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===t)return e[n]},bi=function(e){if(!e.name)return!0;var t=e.form||at(e),n=function(i){return t.querySelectorAll('input[type="radio"][name="'+i+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=n(window.CSS.escape(e.name));else try{o=n(e.name)}catch(i){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",i.message),!1}var r=wi(o,e.form);return!r||r===e},Si=function(e){return Kn(e)&&e.type==="radio"},Ti=function(e){return Si(e)&&!bi(e)},xi=function(e){var t,n=e&&at(e),o=(t=n)===null||t===void 0?void 0:t.host,r=!1;if(n&&n!==e){var i,s,a;for(r=!!((i=o)!==null&&i!==void 0&&(s=i.ownerDocument)!==null&&s!==void 0&&s.contains(o)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!r&&o;){var l,u,h;n=at(o),o=(l=n)===null||l===void 0?void 0:l.host,r=!!((u=o)!==null&&u!==void 0&&(h=u.ownerDocument)!==null&&h!==void 0&&h.contains(o))}}return r},sn=function(e){var t=e.getBoundingClientRect(),n=t.width,o=t.height;return n===0&&o===0},_i=function(e,t){var n=t.displayCheck,o=t.getShadowRoot;if(n==="full-native"&&"checkVisibility"in e){var r=e.checkVisibility({checkOpacity:!1,opacityProperty:!1,contentVisibilityAuto:!0,visibilityProperty:!0,checkVisibilityCSS:!0});return!r}if(getComputedStyle(e).visibility==="hidden")return!0;var i=Ne.call(e,"details>summary:first-of-type"),s=i?e.parentElement:e;if(Ne.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="full-native"||n==="legacy-full"){if(typeof o=="function"){for(var a=e;e;){var l=e.parentElement,u=at(e);if(l&&!l.shadowRoot&&o(l)===!0)return sn(e);e.assignedSlot?e=e.assignedSlot:!l&&u!==e.ownerDocument?e=u.host:e=l}e=a}if(xi(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return sn(e);return!1},$i=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var n=0;n<t.children.length;n++){var o=t.children.item(n);if(o.tagName==="LEGEND")return Ne.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},ct=function(e,t){return!(t.disabled||gi(t)||_i(t,e)||yi(t)||$i(t))},Rt=function(e,t){return!(Ti(t)||xe(t)<0||!ct(e,t))},Ai=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},Un=function(e){var t=[],n=[];return e.forEach(function(o,r){var i=!!o.scopeParent,s=i?o.scopeParent:o,a=mi(s,i),l=i?Un(o.candidates):s;a===0?i?t.push.apply(t,l):t.push(s):n.push({documentOrder:r,tabIndex:a,item:o,isScope:i,content:l})}),n.sort(vi).reduce(function(o,r){return r.isScope?o.push.apply(o,r.content):o.push(r.content),o},[]).concat(t)},Ni=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ut([e],t.includeContainer,{filter:Rt.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:Ai}):n=Vn(e,t.includeContainer,Rt.bind(null,t)),Un(n)},ki=function(e,t){t=t||{};var n;return t.getShadowRoot?n=ut([e],t.includeContainer,{filter:ct.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):n=Vn(e,t.includeContainer,ct.bind(null,t)),n},ke=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ne.call(e,st)===!1?!1:Rt(t,e)},Ei=Gn.concat("iframe:not([inert]):not([inert] *)").join(","),Ct=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return Ne.call(e,Ei)===!1?!1:ct(t,e)};function Lt(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=Array(t);n<t;n++)o[n]=e[n];return o}function Pi(e){if(Array.isArray(e))return Lt(e)}function an(e,t,n,o,r,i,s){try{var a=e[i](s),l=a.value}catch(u){return void n(u)}a.done?t(l):Promise.resolve(l).then(o,r)}function ln(e){return function(){var t=this,n=arguments;return new Promise(function(o,r){var i=e.apply(t,n);function s(l){an(i,o,r,s,a,"next",l)}function a(l){an(i,o,r,s,a,"throw",l)}s(void 0)})}}function un(e,t){var n=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=Xn(e))||t){n&&(e=n);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(l){throw l},f:r}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var i,s=!0,a=!1;return{s:function(){n=n.call(e)},n:function(){var l=n.next();return s=l.done,l},e:function(l){a=!0,i=l},f:function(){try{s||n.return==null||n.return()}finally{if(a)throw i}}}}function Ci(e,t,n){return(t=Ri(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Di(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function cn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,o)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?cn(Object(n),!0).forEach(function(o){Ci(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):cn(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function Re(){var e,t,n=typeof Symbol=="function"?Symbol:{},o=n.iterator||"@@iterator",r=n.toStringTag||"@@toStringTag";function i(p,v,w,T){var x=v&&v.prototype instanceof a?v:a,b=Object.create(x.prototype);return K(b,"_invoke",(function($,C,L){var S,E,O,R=0,g=L||[],B=!1,d={p:0,n:0,v:e,a:f,f:f.bind(e,4),d:function(y,k){return S=y,E=0,O=e,d.n=k,s}};function f(y,k){for(E=y,O=k,t=0;!B&&R&&!N&&t<g.length;t++){var N,_=g[t],A=d.p,P=_[2];y>3?(N=P===k)&&(O=_[(E=_[4])?5:(E=3,3)],_[4]=_[5]=e):_[0]<=A&&((N=y<2&&A<_[1])?(E=0,d.v=k,d.n=_[1]):A<P&&(N=y<3||_[0]>k||k>P)&&(_[4]=y,_[5]=k,d.n=P,E=0))}if(N||y>1)return s;throw B=!0,k}return function(y,k,N){if(R>1)throw TypeError("Generator is already running");for(B&&k===1&&f(k,N),E=k,O=N;(t=E<2?e:O)||!B;){S||(E?E<3?(E>1&&(d.n=-1),f(E,O)):d.n=O:d.v=O);try{if(R=2,S){if(E||(y="next"),t=S[y]){if(!(t=t.call(S,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,E<2&&(E=0)}else E===1&&(t=S.return)&&t.call(S),E<2&&(O=TypeError("The iterator does not provide a '"+y+"' method"),E=1);S=e}else if((t=(B=d.n<0)?O:$.call(C,d))!==s)break}catch(_){S=e,E=1,O=_}finally{R=1}}return{value:t,done:B}}})(p,w,T),!0),b}var s={};function a(){}function l(){}function u(){}t=Object.getPrototypeOf;var h=[][o]?t(t([][o]())):(K(t={},o,function(){return this}),t),c=u.prototype=a.prototype=Object.create(h);function m(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,u):(p.__proto__=u,K(p,r,"GeneratorFunction")),p.prototype=Object.create(c),p}return l.prototype=u,K(c,"constructor",u),K(u,"constructor",l),l.displayName="GeneratorFunction",K(u,r,"GeneratorFunction"),K(c),K(c,r,"Generator"),K(c,o,function(){return this}),K(c,"toString",function(){return"[object Generator]"}),(Re=function(){return{w:i,m}})()}function K(e,t,n,o){var r=Object.defineProperty;try{r({},"",{})}catch{r=0}K=function(i,s,a,l){function u(h,c){K(i,h,function(m){return this._invoke(h,c,m)})}s?r?r(i,s,{value:a,enumerable:!l,configurable:!l,writable:!l}):i[s]=a:(u("next",0),u("throw",1),u("return",2))},K(e,t,n,o)}function Fi(e){return Pi(e)||Oi(e)||Xn(e)||Di()}function Bi(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t);if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ri(e){var t=Bi(e,"string");return typeof t=="symbol"?t:t+""}function Xn(e,t){if(e){if(typeof e=="string")return Lt(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Lt(e,t):void 0}}var ae={getActiveTrap:function(e){return e?.length>0?e[e.length-1]:null},activateTrap:function(e,t){var n=ae.getActiveTrap(e);t!==n&&ae.pauseTrap(e);var o=e.indexOf(t);o===-1||e.splice(o,1),e.push(t)},deactivateTrap:function(e,t){var n=e.indexOf(t);n!==-1&&e.splice(n,1),ae.unpauseTrap(e)},pauseTrap:function(e){var t=ae.getActiveTrap(e);t?._setPausedState(!0)},unpauseTrap:function(e){var t=ae.getActiveTrap(e);t&&!t._isManuallyPaused()&&t._setPausedState(!1)}},Li=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},Ii=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Le=function(e){return e?.key==="Tab"||e?.keyCode===9},Mi=function(e){return Le(e)&&!e.shiftKey},zi=function(e){return Le(e)&&e.shiftKey},pn=function(e){return setTimeout(e,0)},Be=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];return typeof e=="function"?e.apply(void 0,n):e},Ye=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},Hi=[],Yn=function(e,t){var n=t?.document||document,o=t?.trapStack||Hi,r=dn({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isolateSubtrees:!1,isKeyForward:Mi,isKeyBackward:zi},t),i={containers:[],containerGroups:[],tabbableGroups:[],adjacentElements:new Set,alreadySilent:new Set,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},s,a=function(d,f,y){return d&&d[f]!==void 0?d[f]:r[y||f]},l=function(d,f){var y=typeof f?.composedPath=="function"?f.composedPath():void 0;return i.containerGroups.findIndex(function(k){var N=k.container,_=k.tabbableNodes;return N.contains(d)||y?.includes(N)||_.find(function(A){return A===d})})},u=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},y=f.hasFallback,k=y===void 0?!1:y,N=f.params,_=N===void 0?[]:N,A=r[d];if(typeof A=="function"&&(A=A.apply(void 0,Fi(_))),A===!0&&(A=void 0),!A){if(A===void 0||A===!1)return A;throw new Error("`".concat(d,"` was specified but was not a node, or did not return a node"))}var P=A;if(typeof A=="string"){try{P=n.querySelector(A)}catch(D){throw new Error("`".concat(d,'` appears to be an invalid selector; error="').concat(D.message,'"'))}if(!P&&!k)throw new Error("`".concat(d,"` as selector refers to no known node"))}return P},h=function(){var d=u("initialFocus",{hasFallback:!0});if(d===!1)return!1;if(d===void 0||d&&!Ct(d,r.tabbableOptions))if(l(n.activeElement)>=0)d=n.activeElement;else{var f=i.tabbableGroups[0],y=f&&f.firstTabbableNode;d=y||u("fallbackFocus")}else d===null&&(d=u("fallbackFocus"));if(!d)throw new Error("Your focus-trap needs to have at least one focusable element");return d},c=function(){if(i.containerGroups=i.containers.map(function(d){var f=Ni(d,r.tabbableOptions),y=ki(d,r.tabbableOptions),k=f.length>0?f[0]:void 0,N=f.length>0?f[f.length-1]:void 0,_=y.find(function(D){return ke(D)}),A=y.slice().reverse().find(function(D){return ke(D)}),P=!!f.find(function(D){return xe(D)>0});return{container:d,tabbableNodes:f,focusableNodes:y,posTabIndexesFound:P,firstTabbableNode:k,lastTabbableNode:N,firstDomTabbableNode:_,lastDomTabbableNode:A,nextTabbableNode:function(D){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,X=f.indexOf(D);return X<0?H?y.slice(y.indexOf(D)+1).find(function(j){return ke(j)}):y.slice(0,y.indexOf(D)).reverse().find(function(j){return ke(j)}):f[X+(H?1:-1)]}}}),i.tabbableGroups=i.containerGroups.filter(function(d){return d.tabbableNodes.length>0}),i.tabbableGroups.length<=0&&!u("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(i.containerGroups.find(function(d){return d.posTabIndexesFound})&&i.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},m=function(d){var f=d.activeElement;if(f)return f.shadowRoot&&f.shadowRoot.activeElement!==null?m(f.shadowRoot):f},p=function(d){if(d!==!1&&d!==m(document)){if(!d||!d.focus){p(h());return}d.focus({preventScroll:!!r.preventScroll}),i.mostRecentlyFocusedNode=d,Li(d)&&d.select()}},v=function(d){var f=u("setReturnFocus",{params:[d]});return f||(f===!1?!1:d)},w=function(d){var f=d.target,y=d.event,k=d.isBackward,N=k===void 0?!1:k;f=f||Ye(y),c();var _=null;if(i.tabbableGroups.length>0){var A=l(f,y),P=A>=0?i.containerGroups[A]:void 0;if(A<0)N?_=i.tabbableGroups[i.tabbableGroups.length-1].lastTabbableNode:_=i.tabbableGroups[0].firstTabbableNode;else if(N){var D=i.tabbableGroups.findIndex(function(At){var Nt=At.firstTabbableNode;return f===Nt});if(D<0&&(P.container===f||Ct(f,r.tabbableOptions)&&!ke(f,r.tabbableOptions)&&!P.nextTabbableNode(f,!1))&&(D=A),D>=0){var H=D===0?i.tabbableGroups.length-1:D-1,X=i.tabbableGroups[H];_=xe(f)>=0?X.lastTabbableNode:X.lastDomTabbableNode}else Le(y)||(_=P.nextTabbableNode(f,!1))}else{var j=i.tabbableGroups.findIndex(function(At){var Nt=At.lastTabbableNode;return f===Nt});if(j<0&&(P.container===f||Ct(f,r.tabbableOptions)&&!ke(f,r.tabbableOptions)&&!P.nextTabbableNode(f))&&(j=A),j>=0){var $t=j===i.tabbableGroups.length-1?0:j+1,de=i.tabbableGroups[$t];_=xe(f)>=0?de.firstTabbableNode:de.firstDomTabbableNode}else Le(y)||(_=P.nextTabbableNode(f))}}else _=u("fallbackFocus");return _},T=function(d){var f=Ye(d);if(!(l(f,d)>=0)){if(Be(r.clickOutsideDeactivates,d)){s.deactivate({returnFocus:r.returnFocusOnDeactivate});return}Be(r.allowOutsideClick,d)||d.preventDefault()}},x=function(d){var f=Ye(d),y=l(f,d)>=0;if(y||f instanceof Document)y&&(i.mostRecentlyFocusedNode=f);else{d.stopImmediatePropagation();var k,N=!0;if(i.mostRecentlyFocusedNode)if(xe(i.mostRecentlyFocusedNode)>0){var _=l(i.mostRecentlyFocusedNode),A=i.containerGroups[_].tabbableNodes;if(A.length>0){var P=A.findIndex(function(D){return D===i.mostRecentlyFocusedNode});P>=0&&(r.isKeyForward(i.recentNavEvent)?P+1<A.length&&(k=A[P+1],N=!1):P-1>=0&&(k=A[P-1],N=!1))}}else i.containerGroups.some(function(D){return D.tabbableNodes.some(function(H){return xe(H)>0})})||(N=!1);else N=!1;N&&(k=w({target:i.mostRecentlyFocusedNode,isBackward:r.isKeyBackward(i.recentNavEvent)})),p(k||i.mostRecentlyFocusedNode||h())}i.recentNavEvent=void 0},b=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;i.recentNavEvent=d;var y=w({event:d,isBackward:f});y&&(Le(d)&&d.preventDefault(),p(y))},$=function(d){(r.isKeyForward(d)||r.isKeyBackward(d))&&b(d,r.isKeyBackward(d))},C=function(d){Ii(d)&&Be(r.escapeDeactivates,d)!==!1&&(d.preventDefault(),s.deactivate())},L=function(d){var f=Ye(d);l(f,d)>=0||Be(r.clickOutsideDeactivates,d)||Be(r.allowOutsideClick,d)||(d.preventDefault(),d.stopImmediatePropagation())},S=function(){if(!i.active)return Promise.resolve();ae.activateTrap(o,s);var d;return r.delayInitialFocus?d=new Promise(function(f){i.delayInitialFocusTimer=pn(function(){p(h()),f()})}):(d=Promise.resolve(),p(h())),n.addEventListener("focusin",x,!0),n.addEventListener("mousedown",T,{capture:!0,passive:!1}),n.addEventListener("touchstart",T,{capture:!0,passive:!1}),n.addEventListener("click",L,{capture:!0,passive:!1}),n.addEventListener("keydown",$,{capture:!0,passive:!1}),n.addEventListener("keydown",C),d},E=function(d){i.active&&!i.paused&&s._setSubtreeIsolation(!1),i.adjacentElements.clear(),i.alreadySilent.clear();var f=new Set,y=new Set,k=un(d),N;try{for(k.s();!(N=k.n()).done;){var _=N.value;f.add(_);for(var A=typeof ShadowRoot<"u"&&_.getRootNode()instanceof ShadowRoot,P=_;P;){f.add(P);var D=P.parentElement,H=[];D?H=D.children:!D&&A&&(H=P.getRootNode().children,D=P.getRootNode().host,A=typeof ShadowRoot<"u"&&D.getRootNode()instanceof ShadowRoot);var X=un(H),j;try{for(X.s();!(j=X.n()).done;){var $t=j.value;y.add($t)}}catch(de){X.e(de)}finally{X.f()}P=D}}}catch(de){k.e(de)}finally{k.f()}f.forEach(function(de){y.delete(de)}),i.adjacentElements=y},O=function(){if(i.active)return n.removeEventListener("focusin",x,!0),n.removeEventListener("mousedown",T,!0),n.removeEventListener("touchstart",T,!0),n.removeEventListener("click",L,!0),n.removeEventListener("keydown",$,!0),n.removeEventListener("keydown",C),s},R=function(d){var f=d.some(function(y){var k=Array.from(y.removedNodes);return k.some(function(N){return N===i.mostRecentlyFocusedNode})});f&&p(h())},g=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(R):void 0,B=function(){g&&(g.disconnect(),i.active&&!i.paused&&i.containers.map(function(d){g.observe(d,{subtree:!0,childList:!0})}))};return s={get active(){return i.active},get paused(){return i.paused},activate:function(d){if(i.active)return this;var f=a(d,"onActivate"),y=a(d,"onPostActivate"),k=a(d,"checkCanFocusTrap"),N=ae.getActiveTrap(o),_=!1;if(N&&!N.paused){var A;(A=N._setSubtreeIsolation)===null||A===void 0||A.call(N,!1),_=!0}try{k||c(),i.active=!0,i.paused=!1,i.nodeFocusedBeforeActivation=m(n),f?.();var P=(function(){var H=ln(Re().m(function X(){return Re().w(function(j){for(;;)switch(j.n){case 0:return k&&c(),j.n=1,S();case 1:s._setSubtreeIsolation(!0),B(),y?.();case 2:return j.a(2)}},X)}));return function(){return H.apply(this,arguments)}})();if(k)return k(i.containers.concat()).then(P,P),this;P()}catch(H){if(N===ae.getActiveTrap(o)&&_){var D;(D=N._setSubtreeIsolation)===null||D===void 0||D.call(N,!0)}throw H}return this},deactivate:function(d){if(!i.active)return this;var f=dn({onDeactivate:r.onDeactivate,onPostDeactivate:r.onPostDeactivate,checkCanReturnFocus:r.checkCanReturnFocus},d);clearTimeout(i.delayInitialFocusTimer),i.delayInitialFocusTimer=void 0,i.paused||s._setSubtreeIsolation(!1),i.alreadySilent.clear(),O(),i.active=!1,i.paused=!1,B(),ae.deactivateTrap(o,s);var y=a(f,"onDeactivate"),k=a(f,"onPostDeactivate"),N=a(f,"checkCanReturnFocus"),_=a(f,"returnFocus","returnFocusOnDeactivate");y?.();var A=function(){pn(function(){_&&p(v(i.nodeFocusedBeforeActivation)),k?.()})};return _&&N?(N(v(i.nodeFocusedBeforeActivation)).then(A,A),this):(A(),this)},pause:function(d){return i.active?(i.manuallyPaused=!0,this._setPausedState(!0,d)):this},unpause:function(d){return i.active?(i.manuallyPaused=!1,o[o.length-1]!==this?this:this._setPausedState(!1,d)):this},updateContainerElements:function(d){var f=[].concat(d).filter(Boolean);return i.containers=f.map(function(y){return typeof y=="string"?n.querySelector(y):y}),r.isolateSubtrees&&E(i.containers),i.active&&(c(),i.paused||s._setSubtreeIsolation(!0)),B(),this}},Object.defineProperties(s,{_isManuallyPaused:{value:function(){return i.manuallyPaused}},_setPausedState:{value:function(d,f){if(i.paused===d)return this;if(i.paused=d,d){var y=a(f,"onPause"),k=a(f,"onPostPause");y?.(),O(),s._setSubtreeIsolation(!1),B(),k?.()}else{var N=a(f,"onUnpause"),_=a(f,"onPostUnpause");N?.();var A=(function(){var P=ln(Re().m(function D(){return Re().w(function(H){for(;;)switch(H.n){case 0:return c(),H.n=1,S();case 1:s._setSubtreeIsolation(!0),B(),_?.();case 2:return H.a(2)}},D)}));return function(){return P.apply(this,arguments)}})();A()}return this}},_setSubtreeIsolation:{value:function(d){r.isolateSubtrees&&i.adjacentElements.forEach(function(f){var y;d?r.isolateSubtrees==="aria-hidden"?((f.ariaHidden==="true"||((y=f.getAttribute("aria-hidden"))===null||y===void 0?void 0:y.toLowerCase())==="true")&&i.alreadySilent.add(f),f.setAttribute("aria-hidden","true")):((f.inert||f.hasAttribute("inert"))&&i.alreadySilent.add(f),f.setAttribute("inert",!0)):i.alreadySilent.has(f)||(r.isolateSubtrees==="aria-hidden"?f.removeAttribute("aria-hidden"):f.removeAttribute("inert"))})}}}),s.updateContainerElements(e),s};function Ge(){return window._nc_focus_trap??=[],window._nc_focus_trap}function ji(){let e=[];return{pause(){e=[...Ge()];for(const t of e)t.pause()},unpause(){if(e.length===Ge().length)for(const t of e)t.unpause();e=[]}}}function Gi(e,t={}){const n=ji();be(e,()=>{z(t.disabled)||(z(e)?n.pause():n.unpause())}),ot(()=>{n.unpause()})}const Wi=["top","right","bottom","left"],hn=["start","end"],fn=Wi.reduce((e,t)=>e.concat(t,t+"-"+hn[0],t+"-"+hn[1]),[]),We=Math.min,Te=Math.max,Cs=Math.round,Os=Math.floor,Ds=e=>({x:e,y:e}),Vi={left:"right",right:"left",bottom:"top",top:"bottom"};function It(e,t,n){return Te(e,We(t,n))}function ce(e,t){return typeof e=="function"?e(t):e}function ne(e){return e.split("-")[0]}function te(e){return e.split("-")[1]}function Ut(e){return e==="x"?"y":"x"}function Xt(e){return e==="y"?"height":"width"}function oe(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function Yt(e){return Ut(oe(e))}function Jn(e,t,n){n===void 0&&(n=!1);const o=te(e),r=Yt(e),i=Xt(r);let s=r==="x"?o===(n?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[i]>t.floating[i]&&(s=pt(s)),[s,pt(s)]}function qi(e){const t=pt(e);return[dt(e),t,dt(t)]}function dt(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const mn=["left","right"],vn=["right","left"],Ki=["top","bottom"],Ui=["bottom","top"];function Xi(e,t,n){switch(e){case"top":case"bottom":return n?t?vn:mn:t?mn:vn;case"left":case"right":return t?Ki:Ui;default:return[]}}function Yi(e,t,n,o){const r=te(e);let i=Xi(ne(e),n==="start",o);return r&&(i=i.map(s=>s+"-"+r),t&&(i=i.concat(i.map(dt)))),i}function pt(e){const t=ne(e);return Vi[t]+e.slice(t.length)}function Ji(e){return{top:0,right:0,bottom:0,left:0,...e}}function Zn(e){return typeof e!="number"?Ji(e):{top:e,right:e,bottom:e,left:e}}function Ie(e){const{x:t,y:n,width:o,height:r}=e;return{width:o,height:r,top:n,left:t,right:t+o,bottom:n+r,x:t,y:n}}function gn(e,t,n){let{reference:o,floating:r}=e;const i=oe(t),s=Yt(t),a=Xt(s),l=ne(t),u=i==="y",h=o.x+o.width/2-r.width/2,c=o.y+o.height/2-r.height/2,m=o[a]/2-r[a]/2;let p;switch(l){case"top":p={x:h,y:o.y-r.height};break;case"bottom":p={x:h,y:o.y+o.height};break;case"right":p={x:o.x+o.width,y:c};break;case"left":p={x:o.x-r.width,y:c};break;default:p={x:o.x,y:o.y}}switch(te(t)){case"start":p[s]-=m*(n&&u?-1:1);break;case"end":p[s]+=m*(n&&u?-1:1);break}return p}async function Zi(e,t){var n;t===void 0&&(t={});const{x:o,y:r,platform:i,rects:s,elements:a,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:h="viewport",elementContext:c="floating",altBoundary:m=!1,padding:p=0}=ce(t,e),v=Zn(p),w=a[m?c==="floating"?"reference":"floating":c],T=Ie(await i.getClippingRect({element:(n=await(i.isElement==null?void 0:i.isElement(w)))==null||n?w:w.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(a.floating)),boundary:u,rootBoundary:h,strategy:l})),x=c==="floating"?{x:o,y:r,width:s.floating.width,height:s.floating.height}:s.reference,b=await(i.getOffsetParent==null?void 0:i.getOffsetParent(a.floating)),$=await(i.isElement==null?void 0:i.isElement(b))?await(i.getScale==null?void 0:i.getScale(b))||{x:1,y:1}:{x:1,y:1},C=Ie(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:x,offsetParent:b,strategy:l}):x);return{top:(T.top-C.top+v.top)/$.y,bottom:(C.bottom-T.bottom+v.bottom)/$.y,left:(T.left-C.left+v.left)/$.x,right:(C.right-T.right+v.right)/$.x}}const Qi=50,er=async(e,t,n)=>{const{placement:o="bottom",strategy:r="absolute",middleware:i=[],platform:s}=n,a=s.detectOverflow?s:{...s,detectOverflow:Zi},l=await(s.isRTL==null?void 0:s.isRTL(t));let u=await s.getElementRects({reference:e,floating:t,strategy:r}),{x:h,y:c}=gn(u,o,l),m=o,p=0;const v={};for(let w=0;w<i.length;w++){const T=i[w];if(!T)continue;const{name:x,fn:b}=T,{x:$,y:C,data:L,reset:S}=await b({x:h,y:c,initialPlacement:o,placement:m,strategy:r,middlewareData:v,rects:u,platform:a,elements:{reference:e,floating:t}});h=$??h,c=C??c,v[x]={...v[x],...L},S&&p<Qi&&(p++,typeof S=="object"&&(S.placement&&(m=S.placement),S.rects&&(u=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:r}):S.rects),{x:h,y:c}=gn(u,m,l)),w=-1)}return{x:h,y:c,placement:m,strategy:r,middlewareData:v}},tr=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:o,placement:r,rects:i,platform:s,elements:a,middlewareData:l}=t,{element:u,padding:h=0}=ce(e,t)||{};if(u==null)return{};const c=Zn(h),m={x:n,y:o},p=Yt(r),v=Xt(p),w=await s.getDimensions(u),T=p==="y",x=T?"top":"left",b=T?"bottom":"right",$=T?"clientHeight":"clientWidth",C=i.reference[v]+i.reference[p]-m[p]-i.floating[v],L=m[p]-i.reference[p],S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(u));let E=S?S[$]:0;(!E||!await(s.isElement==null?void 0:s.isElement(S)))&&(E=a.floating[$]||i.floating[v]);const O=C/2-L/2,R=E/2-w[v]/2-1,g=We(c[x],R),B=We(c[b],R),d=g,f=E-w[v]-B,y=E/2-w[v]/2+O,k=It(d,y,f),N=!l.arrow&&te(r)!=null&&y!==k&&i.reference[v]/2-(y<d?g:B)-w[v]/2<0,_=N?y<d?y-d:y-f:0;return{[p]:m[p]+_,data:{[p]:k,centerOffset:y-k-_,...N&&{alignmentOffset:_}},reset:N}}});function nr(e,t,n){return(e?[...n.filter(o=>te(o)===e),...n.filter(o=>te(o)!==e)]:n.filter(o=>ne(o)===o)).filter(o=>e?te(o)===e||(t?dt(o)!==o:!1):!0)}const or=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var n,o,r;const{rects:i,middlewareData:s,placement:a,platform:l,elements:u}=t,{crossAxis:h=!1,alignment:c,allowedPlacements:m=fn,autoAlignment:p=!0,...v}=ce(e,t),w=c!==void 0||m===fn?nr(c||null,p,m):m,T=await l.detectOverflow(t,v),x=((n=s.autoPlacement)==null?void 0:n.index)||0,b=w[x];if(b==null)return{};const $=Jn(b,i,await(l.isRTL==null?void 0:l.isRTL(u.floating)));if(a!==b)return{reset:{placement:w[0]}};const C=[T[ne(b)],T[$[0]],T[$[1]]],L=[...((o=s.autoPlacement)==null?void 0:o.overflows)||[],{placement:b,overflows:C}],S=w[x+1];if(S)return{data:{index:x+1,overflows:L},reset:{placement:S}};const E=L.map(R=>{const g=te(R.placement);return[R.placement,g&&h?R.overflows.slice(0,2).reduce((B,d)=>B+d,0):R.overflows[0],R.overflows]}).sort((R,g)=>R[1]-g[1]),O=((r=E.filter(R=>R[2].slice(0,te(R[0])?2:3).every(g=>g<=0))[0])==null?void 0:r[0])||E[0][0];return O!==a?{data:{index:x+1,overflows:L},reset:{placement:O}}:{}}}},ir=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var n,o;const{placement:r,middlewareData:i,rects:s,initialPlacement:a,platform:l,elements:u}=t,{mainAxis:h=!0,crossAxis:c=!0,fallbackPlacements:m,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:w=!0,...T}=ce(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};const x=ne(r),b=oe(a),$=ne(a)===a,C=await(l.isRTL==null?void 0:l.isRTL(u.floating)),L=m||($||!w?[pt(a)]:qi(a)),S=v!=="none";!m&&S&&L.push(...Yi(a,w,v,C));const E=[a,...L],O=await l.detectOverflow(t,T),R=[];let g=((o=i.flip)==null?void 0:o.overflows)||[];if(h&&R.push(O[x]),c){const y=Jn(r,s,C);R.push(O[y[0]],O[y[1]])}if(g=[...g,{placement:r,overflows:R}],!R.every(y=>y<=0)){var B,d;const y=(((B=i.flip)==null?void 0:B.index)||0)+1,k=E[y];if(k&&(!(c==="alignment"&&b!==oe(k))||g.every(_=>oe(_.placement)===b?_.overflows[0]>0:!0)))return{data:{index:y,overflows:g},reset:{placement:k}};let N=(d=g.filter(_=>_.overflows[0]<=0).sort((_,A)=>_.overflows[1]-A.overflows[1])[0])==null?void 0:d.placement;if(!N)switch(p){case"bestFit":{var f;const _=(f=g.filter(A=>{if(S){const P=oe(A.placement);return P===b||P==="y"}return!0}).map(A=>[A.placement,A.overflows.filter(P=>P>0).reduce((P,D)=>P+D,0)]).sort((A,P)=>A[1]-P[1])[0])==null?void 0:f[0];_&&(N=_);break}case"initialPlacement":N=a;break}if(r!==N)return{reset:{placement:N}}}return{}}}},Qn=new Set(["left","top"]);async function rr(e,t){const{placement:n,platform:o,elements:r}=e,i=await(o.isRTL==null?void 0:o.isRTL(r.floating)),s=ne(n),a=te(n),l=oe(n)==="y",u=Qn.has(s)?-1:1,h=i&&l?-1:1,c=ce(t,e);let{mainAxis:m,crossAxis:p,alignmentAxis:v}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:c.mainAxis||0,crossAxis:c.crossAxis||0,alignmentAxis:c.alignmentAxis};return a&&typeof v=="number"&&(p=a==="end"?v*-1:v),l?{x:p*h,y:m*u}:{x:m*u,y:p*h}}const sr=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var n,o;const{x:r,y:i,placement:s,middlewareData:a}=t,l=await rr(t,e);return s===((n=a.offset)==null?void 0:n.placement)&&(o=a.arrow)!=null&&o.alignmentOffset?{}:{x:r+l.x,y:i+l.y,data:{...l,placement:s}}}}},ar=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:o,placement:r,platform:i}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:x=>{let{x:b,y:$}=x;return{x:b,y:$}}},...u}=ce(e,t),h={x:n,y:o},c=await i.detectOverflow(t,u),m=oe(ne(r)),p=Ut(m);let v=h[p],w=h[m];if(s){const x=p==="y"?"top":"left",b=p==="y"?"bottom":"right",$=v+c[x],C=v-c[b];v=It($,v,C)}if(a){const x=m==="y"?"top":"left",b=m==="y"?"bottom":"right",$=w+c[x],C=w-c[b];w=It($,w,C)}const T=l.fn({...t,[p]:v,[m]:w});return{...T,data:{x:T.x-n,y:T.y-o,enabled:{[p]:s,[m]:a}}}}}},Fs=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:n,y:o,placement:r,rects:i,middlewareData:s}=t,{offset:a=0,mainAxis:l=!0,crossAxis:u=!0}=ce(e,t),h={x:n,y:o},c=oe(r),m=Ut(c);let p=h[m],v=h[c];const w=ce(a,t),T=typeof w=="number"?{mainAxis:w,crossAxis:0}:{mainAxis:0,crossAxis:0,...w};if(l){const $=m==="y"?"height":"width",C=i.reference[m]-i.floating[$]+T.mainAxis,L=i.reference[m]+i.reference[$]-T.mainAxis;p<C?p=C:p>L&&(p=L)}if(u){var x,b;const $=m==="y"?"width":"height",C=Qn.has(ne(r)),L=i.reference[c]-i.floating[$]+(C&&((x=s.offset)==null?void 0:x[c])||0)+(C?0:T.crossAxis),S=i.reference[c]+i.reference[$]+(C?0:((b=s.offset)==null?void 0:b[c])||0)-(C?T.crossAxis:0);v<L?v=L:v>S&&(v=S)}return{[m]:p,[c]:v}}}},lr=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var n,o;const{placement:r,rects:i,platform:s,elements:a}=t,{apply:l=()=>{},...u}=ce(e,t),h=await s.detectOverflow(t,u),c=ne(r),m=te(r),p=oe(r)==="y",{width:v,height:w}=i.floating;let T,x;c==="top"||c==="bottom"?(T=c,x=m===(await(s.isRTL==null?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(x=c,T=m==="end"?"top":"bottom");const b=w-h.top-h.bottom,$=v-h.left-h.right,C=We(w-h[T],b),L=We(v-h[x],$),S=!t.middlewareData.shift;let E=C,O=L;if((n=t.middlewareData.shift)!=null&&n.enabled.x&&(O=$),(o=t.middlewareData.shift)!=null&&o.enabled.y&&(E=b),S&&!m){const g=Te(h.left,0),B=Te(h.right,0),d=Te(h.top,0),f=Te(h.bottom,0);p?O=v-2*(g!==0||B!==0?g+B:Te(h.left,h.right)):E=w-2*(d!==0||f!==0?d+f:Te(h.top,h.bottom))}await l({...t,availableWidth:O,availableHeight:E});const R=await s.getDimensions(a.floating);return v!==R.width||w!==R.height?{reset:{rects:!0}}:{}}}};function Z(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function ie(e){return Z(e).getComputedStyle(e)}const yn=Math.min,Me=Math.max,ht=Math.round;function eo(e){const t=ie(e);let n=parseFloat(t.width),o=parseFloat(t.height);const r=e.offsetWidth,i=e.offsetHeight,s=ht(n)!==r||ht(o)!==i;return s&&(n=r,o=i),{width:n,height:o,fallback:s}}function we(e){return no(e)?(e.nodeName||"").toLowerCase():""}let Je;function to(){if(Je)return Je;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Je=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Je):navigator.userAgent}function re(e){return e instanceof Z(e).HTMLElement}function me(e){return e instanceof Z(e).Element}function no(e){return e instanceof Z(e).Node}function wn(e){return typeof ShadowRoot>"u"?!1:e instanceof Z(e).ShadowRoot||e instanceof ShadowRoot}function xt(e){const{overflow:t,overflowX:n,overflowY:o,display:r}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+n)&&!["inline","contents"].includes(r)}function ur(e){return["table","td","th"].includes(we(e))}function Mt(e){const t=/firefox/i.test(to()),n=ie(e),o=n.backdropFilter||n.WebkitBackdropFilter;return n.transform!=="none"||n.perspective!=="none"||!!o&&o!=="none"||t&&n.willChange==="filter"||t&&!!n.filter&&n.filter!=="none"||["transform","perspective"].some((r=>n.willChange.includes(r)))||["paint","layout","strict","content"].some((r=>{const i=n.contain;return i!=null&&i.includes(r)}))}function oo(){return!/^((?!chrome|android).)*safari/i.test(to())}function Jt(e){return["html","body","#document"].includes(we(e))}function io(e){return me(e)?e:e.contextElement}const ro={x:1,y:1};function Pe(e){const t=io(e);if(!re(t))return ro;const n=t.getBoundingClientRect(),{width:o,height:r,fallback:i}=eo(t);let s=(i?ht(n.width):n.width)/o,a=(i?ht(n.height):n.height)/r;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}function Ve(e,t,n,o){var r,i;t===void 0&&(t=!1),n===void 0&&(n=!1);const s=e.getBoundingClientRect(),a=io(e);let l=ro;t&&(o?me(o)&&(l=Pe(o)):l=Pe(e));const u=a?Z(a):window,h=!oo()&&n;let c=(s.left+(h&&((r=u.visualViewport)==null?void 0:r.offsetLeft)||0))/l.x,m=(s.top+(h&&((i=u.visualViewport)==null?void 0:i.offsetTop)||0))/l.y,p=s.width/l.x,v=s.height/l.y;if(a){const w=Z(a),T=o&&me(o)?Z(o):o;let x=w.frameElement;for(;x&&o&&T!==w;){const b=Pe(x),$=x.getBoundingClientRect(),C=getComputedStyle(x);$.x+=(x.clientLeft+parseFloat(C.paddingLeft))*b.x,$.y+=(x.clientTop+parseFloat(C.paddingTop))*b.y,c*=b.x,m*=b.y,p*=b.x,v*=b.y,c+=$.x,m+=$.y,x=Z(x).frameElement}}return{width:p,height:v,top:m,right:c+p,bottom:m+v,left:c,x:c,y:m}}function ve(e){return((no(e)?e.ownerDocument:e.document)||window.document).documentElement}function _t(e){return me(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function so(e){return Ve(ve(e)).left+_t(e).scrollLeft}function qe(e){if(we(e)==="html")return e;const t=e.assignedSlot||e.parentNode||wn(e)&&e.host||ve(e);return wn(t)?t.host:t}function ao(e){const t=qe(e);return Jt(t)?t.ownerDocument.body:re(t)&&xt(t)?t:ao(t)}function ft(e,t){var n;t===void 0&&(t=[]);const o=ao(e),r=o===((n=e.ownerDocument)==null?void 0:n.body),i=Z(o);return r?t.concat(i,i.visualViewport||[],xt(o)?o:[]):t.concat(o,ft(o))}function bn(e,t,n){return t==="viewport"?Ie((function(o,r){const i=Z(o),s=ve(o),a=i.visualViewport;let l=s.clientWidth,u=s.clientHeight,h=0,c=0;if(a){l=a.width,u=a.height;const m=oo();(m||!m&&r==="fixed")&&(h=a.offsetLeft,c=a.offsetTop)}return{width:l,height:u,x:h,y:c}})(e,n)):me(t)?Ie((function(o,r){const i=Ve(o,!0,r==="fixed"),s=i.top+o.clientTop,a=i.left+o.clientLeft,l=re(o)?Pe(o):{x:1,y:1};return{width:o.clientWidth*l.x,height:o.clientHeight*l.y,x:a*l.x,y:s*l.y}})(t,n)):Ie((function(o){const r=ve(o),i=_t(o),s=o.ownerDocument.body,a=Me(r.scrollWidth,r.clientWidth,s.scrollWidth,s.clientWidth),l=Me(r.scrollHeight,r.clientHeight,s.scrollHeight,s.clientHeight);let u=-i.scrollLeft+so(o);const h=-i.scrollTop;return ie(s).direction==="rtl"&&(u+=Me(r.clientWidth,s.clientWidth)-a),{width:a,height:l,x:u,y:h}})(ve(e)))}function Sn(e){return re(e)&&ie(e).position!=="fixed"?e.offsetParent:null}function Tn(e){const t=Z(e);let n=Sn(e);for(;n&&ur(n)&&ie(n).position==="static";)n=Sn(n);return n&&(we(n)==="html"||we(n)==="body"&&ie(n).position==="static"&&!Mt(n))?t:n||(function(o){let r=qe(o);for(;re(r)&&!Jt(r);){if(Mt(r))return r;r=qe(r)}return null})(e)||t}function cr(e,t,n){const o=re(t),r=ve(t),i=Ve(e,!0,n==="fixed",t);let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(o||!o&&n!=="fixed")if((we(t)!=="body"||xt(r))&&(s=_t(t)),re(t)){const l=Ve(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else r&&(a.x=so(r));return{x:i.left+s.scrollLeft-a.x,y:i.top+s.scrollTop-a.y,width:i.width,height:i.height}}const dr={getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:o,strategy:r}=e;const i=n==="clippingAncestors"?(function(u,h){const c=h.get(u);if(c)return c;let m=ft(u).filter((T=>me(T)&&we(T)!=="body")),p=null;const v=ie(u).position==="fixed";let w=v?qe(u):u;for(;me(w)&&!Jt(w);){const T=ie(w),x=Mt(w);(v?x||p:x||T.position!=="static"||!p||!["absolute","fixed"].includes(p.position))?p=T:m=m.filter((b=>b!==w)),w=qe(w)}return h.set(u,m),m})(t,this._c):[].concat(n),s=[...i,o],a=s[0],l=s.reduce(((u,h)=>{const c=bn(t,h,r);return u.top=Me(c.top,u.top),u.right=yn(c.right,u.right),u.bottom=yn(c.bottom,u.bottom),u.left=Me(c.left,u.left),u}),bn(t,a,r));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:n,strategy:o}=e;const r=re(n),i=ve(n);if(n===i)return t;let s={scrollLeft:0,scrollTop:0},a={x:1,y:1};const l={x:0,y:0};if((r||!r&&o!=="fixed")&&((we(n)!=="body"||xt(i))&&(s=_t(n)),re(n))){const u=Ve(n);a=Pe(n),l.x=u.x+n.clientLeft,l.y=u.y+n.clientTop}return{width:t.width*a.x,height:t.height*a.y,x:t.x*a.x-s.scrollLeft*a.x+l.x,y:t.y*a.y-s.scrollTop*a.y+l.y}},isElement:me,getDimensions:function(e){return re(e)?eo(e):e.getBoundingClientRect()},getOffsetParent:Tn,getDocumentElement:ve,getScale:Pe,async getElementRects(e){let{reference:t,floating:n,strategy:o}=e;const r=this.getOffsetParent||Tn,i=this.getDimensions;return{reference:cr(t,await r(n),o),floating:{x:0,y:0,...await i(n)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>ie(e).direction==="rtl"},pr=(e,t,n)=>{const o=new Map,r={platform:dr,...n},i={...r.platform,_c:o};return er(e,t,{...r,platform:i})},ge={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function zt(e,t){let n=ge.themes[e]||{},o;do o=n[t],typeof o>"u"?n.$extend?n=ge.themes[n.$extend]||{}:(n=null,o=ge[t]):n=null;while(n);return o}function hr(e){const t=[e];let n=ge.themes[e]||{};do n.$extend&&!n.$resetCss?(t.push(n.$extend),n=ge.themes[n.$extend]||{}):n=null;while(n);return t.map(o=>`v-popper--theme-${o}`)}function xn(e){const t=[e];let n=ge.themes[e]||{};do n.$extend?(t.push(n.$extend),n=ge.themes[n.$extend]||{}):n=null;while(n);return t}let Ke=!1;if(typeof window<"u"){Ke=!1;try{const e=Object.defineProperty({},"passive",{get(){Ke=!0}});window.addEventListener("test",null,e)}catch{}}let lo=!1;typeof window<"u"&&typeof navigator<"u"&&(lo=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const fr=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),_n={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},$n={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function An(e,t){const n=e.indexOf(t);n!==-1&&e.splice(n,1)}function Ot(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Q=[];let Se=null;const Nn={};function kn(e){let t=Nn[e];return t||(t=Nn[e]=[]),t}let Ht=function(){};typeof window<"u"&&(Ht=window.Element);function F(e){return function(t){return zt(t.theme,e)}}const Dt="__floating-vue__popper",uo=()=>Oe({name:"VPopper",provide(){return{[Dt]:{parentPopper:this}}},inject:{[Dt]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:F("disabled")},positioningDisabled:{type:Boolean,default:F("positioningDisabled")},placement:{type:String,default:F("placement"),validator:e=>fr.includes(e)},delay:{type:[String,Number,Object],default:F("delay")},distance:{type:[Number,String],default:F("distance")},skidding:{type:[Number,String],default:F("skidding")},triggers:{type:Array,default:F("triggers")},showTriggers:{type:[Array,Function],default:F("showTriggers")},hideTriggers:{type:[Array,Function],default:F("hideTriggers")},popperTriggers:{type:Array,default:F("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:F("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:F("popperHideTriggers")},container:{type:[String,Object,Ht,Boolean],default:F("container")},boundary:{type:[String,Ht],default:F("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:F("strategy")},autoHide:{type:[Boolean,Function],default:F("autoHide")},handleResize:{type:Boolean,default:F("handleResize")},instantMove:{type:Boolean,default:F("instantMove")},eagerMount:{type:Boolean,default:F("eagerMount")},popperClass:{type:[String,Array,Object],default:F("popperClass")},computeTransformOrigin:{type:Boolean,default:F("computeTransformOrigin")},autoMinSize:{type:Boolean,default:F("autoMinSize")},autoSize:{type:[Boolean,String],default:F("autoSize")},autoMaxSize:{type:Boolean,default:F("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:F("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:F("preventOverflow")},overflowPadding:{type:[Number,String],default:F("overflowPadding")},arrowPadding:{type:[Number,String],default:F("arrowPadding")},arrowOverflow:{type:Boolean,default:F("arrowOverflow")},flip:{type:Boolean,default:F("flip")},shift:{type:Boolean,default:F("shift")},shiftCrossAxis:{type:Boolean,default:F("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:F("noAutoFocus")},disposeTimeout:{type:Number,default:F("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Dt])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:n=!1}={}){var o,r;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(n||!this.disabled)&&(((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var n;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(sr({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(or({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(ar({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(ir({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(tr({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:r,middlewareData:i})=>{let s;const{centerOffset:a}=i.arrow;return o.startsWith("top")||o.startsWith("bottom")?s=Math.abs(a)>r.reference.width/2:s=Math.abs(a)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:r,placement:i,middlewareData:s})=>{var a;if((a=s.autoSize)!=null&&a.skip)return{};let l,u;return i.startsWith("top")||i.startsWith("bottom")?l=r.reference.width:u=r.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=l!=null?`${l}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(lr({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:r})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const n=await pr(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:{...n.middlewareData.arrow,...n.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),Se&&this.instantMove&&Se.instantMove&&Se!==this.parentPopper){Se.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(Se=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Ot(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...ft(this.$_referenceNode),...ft(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),n=this.$_popperNode.querySelector(".v-popper__wrapper"),o=n.parentNode.getBoundingClientRect(),r=t.x+t.width/2-(o.left+n.offsetLeft),i=t.y+t.height/2-(o.top+n.offsetTop);this.result.transformOrigin=`${r}px ${i}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let n=0;n<Q.length;n++)t=Q[n],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Q.push(this),document.body.classList.add("v-popper--some-open");for(const t of xn(this.theme))kn(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Ot(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,An(Q,this),Q.length===0&&document.body.classList.remove("v-popper--some-open");for(const n of xn(this.theme)){const o=kn(n);An(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${n}`)}Se===this&&(Se=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Ot(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=n=>{this.isShown&&!this.$_hideInProgress||(n.usedByTooltip=!0,!this.$_preventShow&&this.show({event:n}))};this.$_registerTriggerListeners(this.$_targetNodes,_n,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],_n,this.popperTriggers,this.popperShowTriggers,e);const t=n=>{n.usedByTooltip||this.hide({event:n})};this.$_registerTriggerListeners(this.$_targetNodes,$n,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],$n,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,n){this.$_events.push({targetNodes:e,eventType:t,handler:n}),e.forEach(o=>o.addEventListener(t,n,Ke?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,n,o,r){let i=n;o!=null&&(i=typeof o=="function"?o(i):o),i.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,r)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(n=>{const{targetNodes:o,eventType:r,handler:i}=n;!e||e===r?o.forEach(s=>s.removeEventListener(r,i)):t.push(n)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const n of this.$_targetNodes){const o=n.getAttribute(e);o&&(n.removeAttribute(e),n.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const n in e){const o=e[n];o==null?t.removeAttribute(n):t.setAttribute(n,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(ze>=e.left&&ze<=e.right&&He>=e.top&&He<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),n=ze-pe,o=He-he,r=t.left+t.width/2-pe+(t.top+t.height/2)-he+t.width+t.height,i=pe+n*r,s=he+o*r;return Ze(pe,he,i,s,t.left,t.top,t.left,t.bottom)||Ze(pe,he,i,s,t.left,t.top,t.right,t.top)||Ze(pe,he,i,s,t.right,t.top,t.right,t.bottom)||Ze(pe,he,i,s,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(lo){const e=Ke?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>En(t),e),document.addEventListener("touchend",t=>Pn(t,!0),e)}else window.addEventListener("mousedown",e=>En(e),!0),window.addEventListener("click",e=>Pn(e,!1),!0);window.addEventListener("resize",gr)}function En(e,t){for(let n=0;n<Q.length;n++){const o=Q[n];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Pn(e,t){mr(e,t)}function mr(e,t){const n={};for(let o=Q.length-1;o>=0;o--){const r=Q[o];try{const i=r.containsGlobalTarget=r.mouseDownContains||r.popperNode().contains(e.target);r.pendingHide=!1,requestAnimationFrame(()=>{if(r.pendingHide=!1,!n[r.randomId]&&Cn(r,i,e)){if(r.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&i){let a=r.parentPopper;for(;a;)n[a.randomId]=!0,a=a.parentPopper;return}let s=r.parentPopper;for(;s&&Cn(s,s.containsGlobalTarget,e);)s.$_handleGlobalClose(e,t),s=s.parentPopper}})}catch{}}}function Cn(e,t,n){return n.closeAllPopover||n.closePopover&&t||vr(e,n)&&!t}function vr(e,t){if(typeof e.autoHide=="function"){const n=e.autoHide(t);return e.lastAutoHide=n,n}return e.autoHide}function gr(){for(let e=0;e<Q.length;e++)Q[e].$_computePosition()}let pe=0,he=0,ze=0,He=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{pe=ze,he=He,ze=e.clientX,He=e.clientY},Ke?{passive:!0}:void 0);function Ze(e,t,n,o,r,i,s,a){const l=((s-r)*(t-i)-(a-i)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t)),u=((n-e)*(t-i)-(o-t)*(e-r))/((a-i)*(n-e)-(s-r)*(o-t));return l>=0&&l<=1&&u>=0&&u<=1}const yr={extends:uo()},Zt=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};function wr(e,t,n,o,r,i){return G(),le("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[ye(e.$slots,"default",Ft(Bt(e.slotData)))],2)}const br=Zt(yr,[["render",wr]]);function Sr(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let et;function jt(){jt.init||(jt.init=!0,et=Sr()!==-1)}var tt={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){jt(),Vt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",et&&this.$el.appendChild(e),e.data="about:blank",et||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!et&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Tr=Ao();_o("data-v-b329ee4c");const xr={class:"resize-observer",tabindex:"-1"};$o();const _r=Tr((e,t,n,o,r,i)=>(G(),$e("div",xr)));tt.render=_r,tt.__scopeId="data-v-b329ee4c",tt.__file="src/components/ResizeObserver.vue";const co=(e="theme")=>({computed:{themeClass(){return hr(this[e])}}}),$r=Oe({name:"VPopperContent",components:{ResizeObserver:tt},mixins:[co()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),Ar=["id","aria-hidden","tabindex","data-popper-placement"],Nr={ref:"inner",class:"v-popper__inner"},kr=q("div",{class:"v-popper__arrow-outer"},null,-1),Er=q("div",{class:"v-popper__arrow-inner"},null,-1),Pr=[kr,Er];function Cr(e,t,n,o,r,i){const s=je("ResizeObserver");return G(),le("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:kt(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=No(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[q("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),q("div",{class:"v-popper__wrapper",style:kt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[q("div",Nr,[e.mounted?(G(),le(qt,{key:0},[q("div",null,[ye(e.$slots,"default")]),e.handleResize?(G(),$e(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):fe("",!0)],64)):fe("",!0)],512),q("div",{ref:"arrow",class:"v-popper__arrow-container",style:kt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Pr,4)],4)],46,Ar)}const po=Zt($r,[["render",Cr]]),ho={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let Gt=function(){};typeof window<"u"&&(Gt=window.Element);const Or=Oe({name:"VPopperWrapper",components:{Popper:br,PopperContent:po},mixins:[ho,co("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,Gt,Boolean],default:void 0},boundary:{type:[String,Gt],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function Dr(e,t,n,o,r,i){const s=je("PopperContent"),a=je("Popper");return G(),$e(a,wt({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=l=>e.$emit("update:shown",l)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:V(({popperId:l,isShown:u,shouldMountContent:h,skipTransition:c,autoHide:m,show:p,hide:v,handleResize:w,onResize:T,classes:x,result:b})=>[ye(e.$slots,"default",{shown:u,show:p,hide:v}),W(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:u,mounted:h,"skip-transition":c,"auto-hide":m,"handle-resize":w,classes:x,result:b,onHide:v,onResize:T},{default:V(()=>[ye(e.$slots,"popper",{shown:u,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Wt=Zt(Or,[["render",Dr]]),Fr={...Wt,name:"VDropdown",vPopperTheme:"dropdown"};({...Wt},{...Wt}),Oe({name:"VTooltipDirective",components:{Popper:uo(),PopperContent:po},mixins:[ho],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>zt(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>zt(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,n=this.content(this);n.then?n.then(o=>this.onResult(t,o)):this.onResult(t,n)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}});const On=ge,Br=Fr,mt=qo(),Rr=Oe({name:"NcPopoverTriggerProvider",provide(){return{"NcPopover:trigger:shown":()=>this.shown,"NcPopover:trigger:attrs":()=>this.triggerAttrs}},props:{shown:{type:Boolean,required:!0},popupRole:{type:String,default:void 0}},computed:{triggerAttrs(){return{"aria-haspopup":this.popupRole,"aria-expanded":this.shown.toString()}}},render(){return this.$slots.default?.({attrs:this.triggerAttrs})}}),Lr="_ncPopover_HjJ88",Ir={"material-design-icon":"_material-design-icon_FKPyJ",ncPopover:Lr},fo="nc-popover-9";On.themes[fo]=structuredClone(On.themes.dropdown);const Mr={name:"NcPopover",components:{Dropdown:Br,NcPopoverTriggerProvider:Rr},props:{boundary:{type:[String,Object],default:""},closeOnClickOutside:{type:Boolean,default:!0},noCloseOnClickOutside:{type:Boolean,default:!1},container:{type:[Boolean,String],default:"body"},delay:{type:[Number,Object],default:0},noFocusTrap:{type:Boolean,default:!1},placement:{type:String,default:"bottom"},popoverBaseClass:{type:String,default:""},popoverTriggers:{type:[Array,Object],default:null},popupRole:{type:String,default:void 0,validator:e=>["menu","listbox","tree","grid","dialog","true"].includes(e)},setReturnFocus:{default:void 0,type:[Boolean,HTMLElement,SVGElement,String,Function]},shown:{type:Boolean,default:!1},triggers:{type:[Array,Object],default:()=>["click"]}},emits:["afterShow","afterHide","update:shown"],setup(){return{theme:fo}},data(){return{internalShown:this.shown}},computed:{popperTriggers(){if(this.popoverTriggers&&Array.isArray(this.popoverTriggers))return this.popoverTriggers},popperHideTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.hide},popperShowTriggers(){if(this.popoverTriggers&&typeof this.popoverTriggers=="object")return this.popoverTriggers.show},internalTriggers(){if(this.triggers&&Array.isArray(this.triggers))return this.triggers},hideTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.hide},showTriggers(){if(this.triggers&&typeof this.triggers=="object")return this.triggers.show},internalPlacement(){return this.placement==="start"?mt?"right":"left":this.placement==="end"?mt?"left":"right":this.placement}},watch:{shown(e){this.internalShown=e},internalShown(e){this.$emit("update:shown",e)}},mounted(){this.checkTriggerA11y()},beforeUnmount(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{checkTriggerA11y(){window.OC?.debug&&this.getPopoverTriggerContainerElement().querySelector("[aria-expanded]")},removeFloatingVueAriaDescribedBy(){const e=this.getPopoverTriggerContainerElement().querySelectorAll("[data-popper-shown]");for(const t of e)t.removeAttribute("aria-describedby")},getPopoverContentElement(){return this.$refs.popover?.$refs.popperContent?.$el},getPopoverTriggerContainerElement(){return this.$refs.popover?.$refs.popper?.$refs.reference},async useFocusTrap(){if(await this.$nextTick(),this.noFocusTrap)return;const e=this.getPopoverContentElement();e.tabIndex=-1,e&&(this.$focusTrap=Yn(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:Ge(),fallBackFocus:e}),this.$focusTrap.activate())},clearFocusTrap(e={}){try{this.$focusTrap?.deactivate(e),this.$focusTrap=null}catch(t){Lo.warn("[NcPopover] Failed to clear focus trap",{error:t})}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},async afterShow(){this.getPopoverContentElement().addEventListener("transitionend",()=>{this.$emit("afterShow")},{once:!0,passive:!0}),this.removeFloatingVueAriaDescribedBy(),await this.$nextTick(),await this.useFocusTrap(),this.addEscapeStopPropagation()},afterHide(){this.getPopoverContentElement()?.addEventListener("transitionend",()=>{this.$emit("afterHide")},{once:!0,passive:!0}),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};function zr(e,t,n,o,r,i){const s=je("NcPopoverTriggerProvider"),a=je("Dropdown");return G(),$e(a,{ref:"popover",shown:r.internalShown,"onUpdate:shown":[t[0]||(t[0]=l=>r.internalShown=l),t[1]||(t[1]=l=>r.internalShown=l)],arrowPadding:10,autoHide:!n.noCloseOnClickOutside&&n.closeOnClickOutside,boundary:n.boundary||void 0,container:n.container,delay:n.delay,distance:10,handleResize:"",noAutoFocus:!0,placement:i.internalPlacement,popperClass:[e.$style.ncPopover,n.popoverBaseClass],popperTriggers:i.popperTriggers,popperHideTriggers:i.popperHideTriggers,popperShowTriggers:i.popperShowTriggers,theme:o.theme,triggers:i.internalTriggers,hideTriggers:i.hideTriggers,showTriggers:i.showTriggers,onApplyShow:i.afterShow,onApplyHide:i.afterHide},{popper:V(l=>[ye(e.$slots,"default",Ft(Bt(l)))]),default:V(()=>[W(s,{shown:r.internalShown,popupRole:n.popupRole},{default:V(l=>[ye(e.$slots,"trigger",Ft(Bt(l)))]),_:3},8,["shown","popupRole"])]),_:3},8,["shown","autoHide","boundary","container","delay","placement","popperClass","popperTriggers","popperHideTriggers","popperShowTriggers","theme","triggers","hideTriggers","showTriggers","onApplyShow","onApplyHide"])}const Hr={$style:Ir},Dn=bt(Mr,[["render",zr],["__cssModules",Hr]]),jr=Symbol.for("NcActions:isSemanticMenu"),Gr=Symbol.for("NcActions:closeMenu"),Wr={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Vr=["aria-hidden","aria-label"],qr=["fill","width","height"],Kr={d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"},Ur={key:0};function Xr(e,t,n,o,r,i){return G(),le("span",wt(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon dots-horizontal-icon",role:"img",onClick:t[0]||(t[0]=s=>e.$emit("click",s))}),[(G(),le("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[q("path",Kr,[n.title?(G(),le("title",Ur,Mn(n.title),1)):fe("",!0)])],8,qr))],16,Vr)}const Yr=bt(Wr,[["render",Xr]]);Kt(jo);function mo(e){return Array.isArray(e)&&e.some(t=>{if(t===null)return!1;if(typeof t=="object"){const n=t;if(n.type===ko||n.type===qt&&!mo(n.children)||n.type===Eo&&!n.children.trim())return!1}return!0})}const Jr=".focusable",Zr={name:"NcActions",components:{NcButton:_e,NcPopover:Dn},provide(){return{[jr]:M(()=>this.actionsMenuSemanticType==="menu"),[Gr]:this.closeMenu}},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:J("Actions")},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.getElementById("content-vue")??document.querySelector("body")},container:{type:[Boolean,String,Object,Element],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0},variant:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].includes(e)},default:null},size:{type:String,default:"normal",validator(e){return["small","normal","large"].includes(e)}}},emits:["click","blur","focus","close","closed","open","opened","update:open"],setup(){return{randomId:Hn()}},data(){return{opened:this.open,focusIndex:0,actionsMenuSemanticType:"unknown"}},computed:{triggerButtonVariant(){return this.variant||(this.primary?"primary":this.menuName?"secondary":"tertiary")},config(){return{menu:{popupRole:"menu",withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!1},navigation:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!1},dialog:{popupRole:"dialog",withArrowNavigation:!1,withTabNavigation:!0,withFocusTrap:!0},tooltip:{popupRole:void 0,withArrowNavigation:!1,withTabNavigation:!1,withFocusTrap:!1},unknown:{popupRole:void 0,role:void 0,withArrowNavigation:!0,withTabNavigation:!1,withFocusTrap:!0}}[this.actionsMenuSemanticType]},withFocusTrap(){return this.config.withFocusTrap}},watch:{open(e){e!==this.opened&&(this.opened=e)},opened(){this.opened?document.body.addEventListener("keydown",this.handleEscapePressed):document.body.removeEventListener("keydown",this.handleEscapePressed)}},created(){Gi(()=>this.opened,{disabled:()=>this.config.withFocusTrap}),"ariaHidden"in this.$attrs},methods:{getActionName(e){return e?.type?.name},isValidSingleAction(e){return["NcActionButton","NcActionLink","NcActionRouter"].includes(this.getActionName(e))},isAction(e){return this.getActionName(e)?.startsWith?.("NcAction")},isIconUrl(e){try{return!!new URL(e,e.startsWith("/")?window.location.origin:void 0)}catch{return!1}},toggleMenu(e){e?this.openMenu():this.closeMenu()},openMenu(){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},async closeMenu(e=!0){this.opened&&(await this.$nextTick(),this.opened=!1,this.$refs.popover?.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,e&&this.$refs.triggerButton?.$el.focus())},onOpened(){this.$nextTick(()=>{this.focusFirstAction(null),this.$emit("opened")})},onClosed(){this.$emit("closed")},getCurrentActiveMenuItemElement(){return this.$refs.menu.querySelector("li.active")},getFocusableMenuItemElements(){return this.$refs.menu.querySelectorAll(Jr)},onKeydown(e){if(e.key==="Tab"){if(this.config.withFocusTrap)return;if(!this.config.withTabNavigation){this.closeMenu(!0);return}e.preventDefault();const t=this.getFocusableMenuItemElements(),n=[...t].indexOf(document.activeElement);if(n===-1)return;const o=e.shiftKey?n-1:n+1;(o<0||o===t.length)&&this.closeMenu(!0),this.focusIndex=o,this.focusAction();return}this.config.withArrowNavigation&&(e.key==="ArrowUp"&&this.focusPreviousAction(e),e.key==="ArrowDown"&&this.focusNextAction(e),e.key==="PageUp"&&this.focusFirstAction(e),e.key==="PageDown"&&this.focusLastAction(e)),this.handleEscapePressed(e)},onTriggerKeydown(e){e.key==="Escape"&&this.actionsMenuSemanticType==="tooltip"&&this.closeMenu()},handleEscapePressed(e){e.key==="Escape"&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.getFocusableMenuItemElements()[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.focusLastAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.getFocusableMenuItemElements().length-1;this.focusIndex===t?this.focusFirstAction(e):(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.getFocusableMenuItemElements()].findIndex(n=>n.getAttribute("aria-checked")==="true"&&n.getAttribute("role")==="menuitemradio");this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.getFocusableMenuItemElements().length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e),this.actionsMenuSemanticType==="tooltip"&&this.$refs.menu&&this.getFocusableMenuItemElements().length===0&&this.closeMenu(!1)},onClick(e){this.$emit("click",e)}},render(){const e=[],t=(p,v)=>{p.forEach(w=>{if(this.isAction(w)){v.push(w);return}w.type===qt&&t(w.children,v)})};if(t(this.$slots.default?.(),e),e.length===0)return;let n=e.filter(this.isValidSingleAction);this.forceMenu&&n.length>0&&this.inline>0&&(n=[]);const o=n.slice(0,this.inline),r=e.filter(p=>!o.includes(p)),i=["NcActionButton","NcActionButtonGroup","NcActionCheckbox","NcActionRadio"],s=["NcActionInput","NcActionTextEditable"],a=["NcActionLink","NcActionRouter"],l=r.some(p=>s.includes(this.getActionName(p))),u=r.some(p=>i.includes(this.getActionName(p))),h=r.some(p=>a.includes(this.getActionName(p)));l?this.actionsMenuSemanticType="dialog":u?this.actionsMenuSemanticType="menu":h?this.actionsMenuSemanticType="navigation":e.filter(p=>this.getActionName(p).startsWith("NcAction")).length===e.length?this.actionsMenuSemanticType="tooltip":this.actionsMenuSemanticType="unknown";const c=p=>{const v=p?.props?.icon,w=p?.children?.icon?.()?.[0]??(this.isIconUrl(v)?Y("img",{class:"action-item__menutoggle__icon",src:v,alt:""}):Y("span",{class:["icon",v]})),T=p?.children?.default?.()?.[0]?.children?.trim(),x=this.forceName?T:"";let b=p?.props?.title;this.forceName||b||(b=T);const $={...p?.props??{}},C=["submit","reset"].includes($.type)?$.modelValue:"button";return delete $.modelValue,delete $.type,Y(_e,wt($,{class:"action-item action-item--single","aria-label":p?.props?.["aria-label"]||T,title:b,disabled:this.disabled||p?.props?.disabled,pressed:p?.props?.modelValue,size:this.size,type:C,variant:this.variant||(x?"secondary":"tertiary"),onFocus:this.onFocus,onBlur:this.onBlur,"onUpdate:pressed":p?.props?.["onUpdate:modelValue"]??(()=>{})}),{default:()=>x,icon:()=>w})},m=p=>{const v=mo(this.$slots.icon?.())?this.$slots.icon?.():this.defaultIcon?Y("span",{class:["icon",this.defaultIcon]}):Y(Yr,{size:20}),w=`${this.randomId}-trigger`;return Y(Dn,{ref:"popover",delay:0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,autoBoundaryMaxSize:!0,container:this.container,...this.manualOpen&&{triggers:[]},noCloseOnClickOutside:this.manualOpen,popoverBaseClass:"action-item__popper",popupRole:this.config.popupRole,setReturnFocus:this.config.withFocusTrap?this.$refs.triggerButton?.$el:void 0,noFocusTrap:!this.config.withFocusTrap,"onUpdate:shown":this.toggleMenu,onAfterShow:this.onOpened,onAfterClose:this.onClosed},{trigger:()=>Y(_e,{id:w,class:"action-item__menutoggle",disabled:this.disabled,size:this.size,variant:this.triggerButtonVariant,ref:"triggerButton","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened&&this.config.popupRole?this.randomId:null,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onKeydown:this.onTriggerKeydown},{icon:()=>v,default:()=>this.menuName}),default:()=>Y("div",{class:{open:this.opened},tabindex:"-1",onKeydown:this.onKeydown,ref:"menu"},[Y("ul",{id:this.randomId,tabindex:"-1",ref:"menuList",role:this.config.popupRole,"aria-labelledby":w,"aria-modal":this.actionsMenuSemanticType==="dialog"?"true":void 0},[p])])})};return e.length===1&&n.length===1&&!this.forceMenu?c(e[0]):(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),o.length>0&&this.inline>0?Y("div",{class:["action-items",`action-item--${this.triggerButtonVariant}`]},[...o.map(c),r.length>0?Y("div",{class:["action-item",{"action-item--open":this.opened}]},[m(r)]):null]):Y("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerButtonVariant}`,{"action-item--open":this.opened}]},[m(e)]))}},Qr=bt(Zr,[["__scopeId","data-v-5f7eed6b"]]);Kt(Go);const es={long:J("a few seconds ago"),short:J("seconds ago"),narrow:J("sec. ago")};function Bs(e=Date.now(),t={}){let n;const o=M(()=>new Date(z(e))),r=M(()=>{const{language:a,relativeTime:l,ignoreSeconds:u}=z(t);return{...a&&{language:a},...l&&{relativeTime:l},ignoreSeconds:u?es[l||"long"]:!1}}),i=Ce("");yt(()=>s());function s(){if(i.value=Ko(o.value,r.value),z(t).update!==!1){const a=Math.abs(Date.now()-new Date(z(e)).getTime()),l=a>12e4||r.value.ignoreSeconds?Math.min(a/60,18e5):1e3;n=window.setTimeout(s,l)}}return ot(()=>n&&window.clearTimeout(n)),zn(i)}function Rs(e,t){const n=M(()=>({locale:St(),format:{dateStyle:"short",timeStyle:"medium"},...z(t)})),o=M(()=>new Intl.DateTimeFormat(n.value.locale,n.value.format));return M(()=>o.value.format(z(e)))}const ts=/mac|ipad|iphone|darwin/i.test(navigator.userAgent),ns=window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),os=/^[a-zA-Z0-9]$/,is=/^[^\x20-\x7F]$/;function rs(e,t){return!(e.target instanceof HTMLElement)||e.target instanceof HTMLInputElement||e.target instanceof HTMLTextAreaElement||e.target instanceof HTMLSelectElement||e.target.isContentEditable?!0:t.allowInModal?!1:Array.from(document.getElementsByClassName("modal-mask")).filter(n=>n.checkVisibility()).length>0}function Fn(e,t){return n=>{if((ts?n.metaKey:n.ctrlKey)===!!t.ctrl){if(n.altKey!==!!t.alt||t.shift!==void 0&&n.shiftKey!==!!t.shift||rs(n,t))return;t.prevent&&n.preventDefault(),t.stop&&n.stopPropagation(),e(n)}}}function Bn(e,t=()=>{},n={}){if(ns)return()=>{};const o=(a,l)=>{if(a.key===l)return!0;if(n.caseSensitive){const u=l===l.toLowerCase(),h=a.key===a.key.toLowerCase();if(u!==h)return!1}return os.test(l)&&is.test(a.key)?a.code.replace(/^(?:Key|Digit|Numpad)/,"")===l.toUpperCase():a.key.toLowerCase()===l.toLowerCase()},r=a=>typeof e=="function"?e(a):typeof e=="string"?o(a,e):Array.isArray(e)?e.some(l=>o(a,l)):!0,i=rn(r,Fn(t,n),{eventName:"keydown",dedupe:!0,passive:!n.prevent}),s=n.push?rn(r,Fn(t,n),{eventName:"keyup",passive:!n.prevent}):()=>{};return()=>{i(),s()}}function ss(e=document.body){const t=window.getComputedStyle(e).getPropertyValue("--background-invert-if-dark");return t!==void 0?t==="invert(100%)":!1}ss();const as=Ce(vo());window.addEventListener("resize",()=>{as.value=vo()});function vo(){return window.outerHeight===window.screen.height}const Qt=1024,go=Qt/2,vt=e=>document.documentElement.clientWidth<e,yo=Ce(vt(Qt)),ls=Ce(vt(go));window.addEventListener("resize",()=>{yo.value=vt(Qt),ls.value=vt(go)},{passive:!0});function Ls(){return zn(yo)}function Rn(e){return!e.parent||"vapor"in e||"vapor"in e.parent||e.parent.subTree!==e.vnode?null:e.parent}function us(e){const t=[e];let n=Rn(e);for(;n;)t.push(n),n=Rn(n);return t}function cs(){const e=gt();if(!e)throw new Error("useScopeId must be called within a setup context");const t=us(e).map(n=>n.vnode.scopeId).filter(Boolean);return Object.fromEntries(t.map(n=>[n,""]))}Kt(Vo,Wo);const ds=["aria-labelledby","aria-describedby"],ps=["data-theme-light","data-theme-dark"],hs=["id"],fs={class:"icons-menu"},ms=["title"],vs=["id"],gs={class:"modal-container__content"},ys=Oe({inheritAttrs:!1,__name:"NcModal",props:tn({name:{default:""},hasPrevious:{type:Boolean},hasNext:{type:Boolean},outTransition:{type:Boolean},enableSlideshow:{type:Boolean},slideshowDelay:{default:5e3},slideshowPaused:{type:Boolean},disableSwipe:{type:Boolean},spreadNavigation:{type:Boolean},size:{default:"normal"},noClose:{type:Boolean},closeOnClickOutside:{type:Boolean},dark:{type:Boolean},lightBackdrop:{type:Boolean},container:{default:"body"},closeButtonOutside:{type:Boolean},additionalTrapElements:{default:()=>[]},inlineActions:{default:0},labelId:{default:""},setReturnFocus:{default:void 0}},{show:{type:Boolean,default:!0},showModifiers:{}}),emits:tn(["next","previous","close","update:show"],["update:show"]),setup(e,{emit:t}){Po(g=>({"5a2241b0":x.value,"6e8e498c":v.value}));const n=Co(e,"show"),o=e,r=t,i=cs(),s=Hn(),a=Oo("mask");let l;nt(()=>O()),ot(()=>R()),be(()=>o.additionalTrapElements,g=>{l&&l.updateContainerElements([a.value,...g])});const{isActive:u,pause:h,resume:c}=Qo(b,Ro(()=>o.slideshowDelay),{immediate:!1}),m=Ce(0),p=Ce(!1);yt(()=>{p.value&&!o.slideshowPaused?c():u.value&&h()});const v=M(()=>`${o.slideshowDelay}ms`),{stop:w}=hi(a,{onSwipeEnd:C});ot(w),Bn("Escape",()=>{Ge().at(-1)===l&&S()},{allowInModal:!0}),Bn(["ArrowLeft","ArrowRight"],g=>{document.activeElement&&!a.value.contains(document.activeElement)||(g.key==="ArrowLeft"!==mt?$():b())},{allowInModal:!0});const T=Do(),x=M(()=>{let g=0;return o.hasNext&&o.enableSlideshow&&g++,!o.noClose&&o.closeButtonOutside&&g++,T.actions&&g++,g});nt(()=>{!o.name&&o.labelId});function b(g){if(!o.hasNext){p.value=!1;return}g&&u.value&&L(),r("next",g)}function $(g){o.hasPrevious&&(g&&u.value&&L(),r("previous",g))}function C(g,B){if(!o.disableSwipe){if(B!=="left"&&B!=="right")return;B==="left"!==mt?b(g):$(g)}}function L(){h(),c(),m.value++}function S(g){o.noClose||(n.value=!1,setTimeout(()=>{r("close",g)},300))}function E(g){o.closeOnClickOutside&&S(g)}async function O(){if(!n.value||l)return;await Vt();const g={allowOutsideClick:!0,fallbackFocus:a.value,trapStack:Ge(),escapeDeactivates:!1,setReturnFocus:o.setReturnFocus};l=Yn([a.value,...o.additionalTrapElements],g),l.activate()}function R(){l&&(l?.deactivate(),l=void 0)}return(g,B)=>(G(),$e(Bo,{disabled:g.container===null,to:g.container},[W(De,{name:"fade",appear:"",onAfterEnter:O,onBeforeLeave:R},{default:V(()=>[Ue(q("div",wt({...g.$attrs,...I(i)},{ref:"mask",class:["modal-mask",{"modal-mask--opaque":g.dark||g.closeButtonOutside||g.hasPrevious||g.hasNext,"modal-mask--light":g.lightBackdrop}],role:"dialog","aria-modal":"true","aria-labelledby":g.labelId||`modal-name-${I(s)}`,"aria-describedby":"modal-description-"+I(s),tabindex:"-1"}),[W(De,{name:"fade-visibility",appear:""},{default:V(()=>[q("div",{class:"modal-header","data-theme-light":g.lightBackdrop,"data-theme-dark":!g.lightBackdrop},[g.name.trim()!==""?(G(),le("h2",{key:0,id:"modal-name-"+I(s),class:"modal-header__name"},Mn(g.name),9,hs)):fe("",!0),q("div",fs,[g.hasNext&&g.enableSlideshow?(G(),le("button",{key:0,class:it(["play-pause-icons",{"play-pause-icons--paused":g.slideshowPaused}]),title:I(u)?I(J)("Pause slideshow"):I(J)("Start slideshow"),type:"button",onClick:B[0]||(B[0]=d=>p.value=!p.value)},[W(Fe,{class:"play-pause-icons__icon",inline:"",name:I(u)?I(J)("Pause slideshow"):I(J)("Start slideshow"),path:I(u)?I(Io):I(Mo)},null,8,["name","path"]),I(u)?(G(),le("svg",{key:`${I(s)}-animation-${m.value}`,class:"progress-ring",height:"50",width:"50"},[...B[1]||(B[1]=[q("circle",{class:"progress-ring__circle",stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"},null,-1)])])):fe("",!0)],10,ms)):fe("",!0),W(Qr,{class:"header-actions",inline:g.inlineActions},{default:V(()=>[ye(g.$slots,"actions",{},void 0,!0)]),_:3},8,["inline"]),!g.noClose&&g.closeButtonOutside?(G(),$e(_e,{key:1,"aria-label":I(J)("Close"),class:"header-close",variant:"tertiary",onClick:S},{icon:V(()=>[W(Fe,{path:I(nn)},null,8,["path"])]),_:1},8,["aria-label"])):fe("",!0)])],8,ps)]),_:3}),W(De,{name:`modal-${g.outTransition?"out":"in"}`,appear:""},{default:V(()=>[Ue(q("div",{class:it(["modal-wrapper",[`modal-wrapper--${g.size}`,{"modal-wrapper--spread-navigation":g.spreadNavigation}]]),onMousedown:Fo(E,["self"])},[W(De,{name:"fade-visibility",appear:""},{default:V(()=>[Ue(W(_e,{"aria-label":I(J)("Previous"),class:"prev",variant:"tertiary-no-background",onClick:$},{icon:V(()=>[W(Fe,{directional:"",path:I(zo),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[Xe,g.hasPrevious]])]),_:1}),q("div",{id:"modal-description-"+I(s),class:"modal-container"},[q("div",gs,[ye(g.$slots,"default",{},void 0,!0)]),!g.noClose&&!g.closeButtonOutside?(G(),$e(_e,{key:0,"aria-label":I(J)("Close"),class:"modal-container__close",variant:"tertiary",onClick:S},{icon:V(()=>[W(Fe,{path:I(nn)},null,8,["path"])]),_:1},8,["aria-label"])):fe("",!0)],8,vs),W(De,{name:"fade-visibility",appear:""},{default:V(()=>[Ue(W(_e,{"aria-label":I(J)("Next"),class:"next",variant:"tertiary-no-background",onClick:b},{icon:V(()=>[W(Fe,{directional:"",path:I(Ho),size:40},null,8,["path"])]),_:1},8,["aria-label"]),[[Xe,g.hasNext]])]),_:1})],34),[[Xe,n.value]])]),_:3},8,["name"])],16,ds),[[Xe,n.value]])]),_:3})],8,["disabled","to"]))}}),Is=bt(ys,[["__scopeId","data-v-3a70b8e0"]]);export{Gi as A,Bs as B,Rs as C,Gr as D,Ps as E,$s as F,_s as G,Es as H,Yr as I,Is as N,Qr as a,hi as b,Ls as c,As as d,ss as e,Ko as f,ni as g,Ns as h,mt as i,jr as j,xs as k,mo as l,Ds as m,Os as n,Cs as o,er as p,Te as q,Ie as r,We as s,sr as t,ks as u,ir as v,ar as w,Fs as x,Dn as y,Ct as z};
|
|
//# sourceMappingURL=NcModal-kyWZ3UFC-BxKwwKAq.chunk.mjs.map
|