const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('viewer', '', 'js/index-BMjRru9I.chunk.mjs'),window.OC.filePath('viewer', '', 'js/previewUtils-mb7vuryY.chunk.mjs'),window.OC.filePath('viewer', '', 'css/previewUtils-6cpbKhU6.chunk.css')])))=>i.map(i=>d[i]); import{K as Yr,V as ie,L as Po,n as St,u as l0,N as zo,M as Vo,O as Er,P as $o,Q as ve,R as sr,S as Qo,T as Wo,U as Ko,b as ai,W as it,X as qo,Y as Ie,Z as Xo,$ as Jo,a0 as P,o as Pe,a1 as ga,a2 as tl,s as u0,m as c0,a3 as el,a4 as Xa,a5 as rl,a6 as Ja,a7 as Ni,a8 as ea,a9 as il,aa as Fa,ab as ze,ac as nl,ad as al,ae as T0,af as sl,ag as ra,ah as Ra,ai as d0,aj as h0,ak as ol,al as ll,D as Mn,E as wn,am as ul,an as f0,ao as cl,ap as Tl,aq as dl,ar as hl,as as p0,at as fl,au as pl,G as gr,t as Na,av as A0,aw as Al,ax as E0,ay as El,az as Dl,aA as ml,aB as Sl,aC as gl,aD as Fl,aE as D0,aI as Rl,aJ as Nl,aK as Ol,aL as vl,aM as yl,aN as bl,aO as Yl,aP as Ml,aQ as wl,aR as m0,aS as S0,aT as _l,aU as Zl,aV as Bl,aW as Cl,aX as xl,aY as Ll,aZ as Il,a_ as g0,a$ as kl,b0 as ts,b1 as Hl,b2 as Gl,b3 as Ul,b4 as jl,b5 as Pl,b6 as zl,b7 as Vl,b8 as $l,b9 as Ql,ba as li,q as Wl,J as w,v as re,w as es,bb as Kl,x as _n,bc as ql,bd as Xl,_ as Oa,be as Zn,g as Jl,d as tu,bf as eu,bg as ru,e as iu,p as nu,bh as au}from"./previewUtils-mb7vuryY.chunk.mjs";import su from"./NcActionButton-BfBFARjv.chunk.mjs";import ou from"./NcActionLink-D9-Y2nQS.chunk.mjs";import{A as F0}from"./actionText-fFcUPi2g-gjw6zxAU.chunk.mjs";const o0="viewer",jo="6.0.0-dev.0";function lu(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Yr()),r=e.getWeekInfo?.()??e.weekInfo;return r?r.firstDay%7:1}function uu(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Yr();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 cu(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Yr();return[new Date(1970,0,4).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,5).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,6).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,7).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,8).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,9).toLocaleDateString(e,{weekday:"short"}),new Date(1970,0,10).toLocaleDateString(e,{weekday:"short"})]}function Tu(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Yr();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 du(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Yr();return[new Date(1970,0).toLocaleDateString(e,{month:"long"}),new Date(1970,1).toLocaleDateString(e,{month:"long"}),new Date(1970,2).toLocaleDateString(e,{month:"long"}),new Date(1970,3).toLocaleDateString(e,{month:"long"}),new Date(1970,4).toLocaleDateString(e,{month:"long"}),new Date(1970,5).toLocaleDateString(e,{month:"long"}),new Date(1970,6).toLocaleDateString(e,{month:"long"}),new Date(1970,7).toLocaleDateString(e,{month:"long"}),new Date(1970,8).toLocaleDateString(e,{month:"long"}),new Date(1970,9).toLocaleDateString(e,{month:"long"}),new Date(1970,10).toLocaleDateString(e,{month:"long"}),new Date(1970,11).toLocaleDateString(e,{month:"long"})]}function hu(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Yr();return[new Date(1970,0).toLocaleDateString(e,{month:"short"}),new Date(1970,1).toLocaleDateString(e,{month:"short"}),new Date(1970,2).toLocaleDateString(e,{month:"short"}),new Date(1970,3).toLocaleDateString(e,{month:"short"}),new Date(1970,4).toLocaleDateString(e,{month:"short"}),new Date(1970,5).toLocaleDateString(e,{month:"short"}),new Date(1970,6).toLocaleDateString(e,{month:"short"}),new Date(1970,7).toLocaleDateString(e,{month:"short"}),new Date(1970,8).toLocaleDateString(e,{month:"short"}),new Date(1970,9).toLocaleDateString(e,{month:"short"}),new Date(1970,10).toLocaleDateString(e,{month:"short"}),new Date(1970,11).toLocaleDateString(e,{month:"short"})]}function fu(e,r,i){const n=`#initial-state-${e}-${r}`;if(window._nc_initial_state?.has(n))return window._nc_initial_state.get(n);window._nc_initial_state||(window._nc_initial_state=new Map);const a=document.querySelector(n);if(a===null)throw new Error(`Could not find initial state ${r} of ${e}`);try{const s=JSON.parse(atob(a.value));return window._nc_initial_state.set(n,s),s}catch(s){throw console.error("[@nextcloud/initial-state] Could not parse initial state",{key:r,app:e,error:s}),new Error(`Could not parse initial state ${r} of ${e}`,{cause:s})}}function pn(){try{return fu("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function pu(e,r,i=()=>{}){const n=document.createElement("div");(typeof r?.container=="string"&&document.querySelector(r.container)||document.body).appendChild(n);const a=new ie({el:n,name:"VueDialogHelper",render:s=>s(e,{props:r,on:{close:(...l)=>{i(...l.map(u=>Po(u))),a.$destroy(),n.remove()}}})});return a}const Au=l0({name:"NcDialog",components:{NcDialogButton:Vo,NcModal:zo},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="string"||r instanceof HTMLElement),default:()=>[]},container:{type:String,required:!1,default:"body"},open:{type:Boolean,default:!0},size:{type:String,required:!1,default:"small",validator:e=>typeof e=="string"&&["small","normal","large","full"].includes(e)},buttons:{type:Array,required:!1,default:()=>[],validator:e=>Array.isArray(e)&&e.every(r=>typeof r=="object")},noClose:{type:Boolean,default:!1},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!1},isForm:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},navigationAriaLabel:{type:String,required:!1,default:""},navigationAriaLabelledby:{type:String,required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open","submit"],setup(e,{emit:r,slots:i}){const n=Er(),{width:a}=$o(n,{width:900}),s=ve(()=>a.value<876),l=ve(()=>i?.navigation!==void 0),u=sr(),o=ve(()=>e.navigationAriaLabel||void 0),T=ve(()=>{if(!e.navigationAriaLabel)return e.navigationAriaLabelledby||u}),c=Er(),d=ve(()=>e.isForm&&!l.value?"form":"div"),h=ve(()=>d.value==="form"?{submit(N){N.preventDefault(),r("submit",N)},reset(N){N.preventDefault(),r("reset",N)}}:{}),f=Er(!0);function D(N,M){(N.type==="submit"||N.nativeType==="submit")&&d.value==="form"&&!c.value.reportValidity()||(E(M),window.setTimeout(()=>R(),300))}const E=N=>{f.value=!1,r("closing",N)},R=()=>{f.value=!0,r("update:open",!1)},v=ve(()=>({noClose:e.noClose||!e.canClose,container:e.container===void 0?"body":e.container,labelId:u,size:e.size,show:e.open&&f.value,outTransition:e.outTransition,closeOnClickOutside:e.closeOnClickOutside,additionalTrapElements:e.additionalTrapElements}));return{dialogElement:c,dialogListeners:h,dialogTagName:d,handleButtonClose:D,handleClosing:E,handleClosed:R,hasNavigation:l,navigationId:u,navigationAriaLabelAttr:o,navigationAriaLabelledbyAttr:T,isNavigationCollapsed:s,modalProps:v,wrapper:n}}});var Eu=function(){var e=this,r=e._self._c;return e._self._setupProxy,e.open?r("NcModal",e._b({staticClass:"dialog__modal",attrs:{"enable-slideshow":!1,"enable-swipe":!1},on:{close:e.handleClosed,"update:show":function(i){return e.handleClosing()}}},"NcModal",e.modalProps,!1),[r("h2",{staticClass:"dialog__name",attrs:{id:e.navigationId},domProps:{textContent:e._s(e.name)}}),r(e.dialogTagName,e._g({ref:"dialogElement",tag:"component",staticClass:"dialog",class:e.dialogClasses},e.dialogListeners),[r("div",{ref:"wrapper",class:["dialog__wrapper",{"dialog__wrapper--collapsed":e.isNavigationCollapsed}]},[e.hasNavigation?r("nav",{staticClass:"dialog__navigation",class:e.navigationClasses,attrs:{"aria-label":e.navigationAriaLabelAttr,"aria-labelledby":e.navigationAriaLabelledbyAttr}},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),r("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[r("p",{staticClass:"dialog__text"},[e._v(" "+e._s(e.message)+" ")])]})],2)]),r("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(i,n){return r("NcDialogButton",e._b({key:n,on:{click:(a,s)=>e.handleButtonClose(i,s)}},"NcDialogButton",i,!1))})})],2)])],1):e._e()},Du=[],mu=St(Au,Eu,Du,!1,null,"49ff4e77");const Su=mu.exports,gu={name:"CheckboxMarkedCircleIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Fu=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon checkbox-marked-circle-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Ru=[],Nu=St(gu,Fu,Ru,!1,null,null);const Ou=Nu.exports,vu={name:"AlertDecagramIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yu=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-decagram-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},bu=[],Yu=St(vu,yu,bu,!1,null,null);const Mu=Yu.exports,wu={name:"AlertIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _u=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Zu=[],Bu=St(wu,_u,Zu,!1,null,null);const rs=Bu.exports,Cu={name:"InformationIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var xu=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon information-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Lu=[],Iu=St(Cu,xu,Lu,!1,null,null);const ku=Iu.exports,Hu={name:"NcNoteCard",props:{type:{type:String,default:"warning",validator:e=>["success","info","warning","error"].includes(e)},showAlert:{type:Boolean,default:!1},heading:{type:String,default:""},text:{type:String,default:""}},computed:{shouldShowAlert(){return this.showAlert||this.type==="error"},icon(){switch(this.type){case"error":return Mu;case"success":return Ou;case"info":return ku;case"warning":return rs;default:return rs}},color(){switch(this.type){case"error":return"var(--color-error)";case"success":return"var(--color-success)";case"info":return"var(--color-info)";case"warning":return"var(--color-warning)";default:return"var(--color-warning)"}}}};var Gu=function(){var e=this,r=e._self._c;return r("div",{staticClass:"notecard",class:`notecard--${e.type}`,attrs:{role:e.shouldShowAlert?"alert":"note"}},[e._t("icon",function(){return[r(e.icon,{tag:"component",staticClass:"notecard__icon",class:{"notecard__icon--heading":e.heading},attrs:{"fill-color":e.color,size:20}})]}),r("div",[e.heading?r("p",{staticClass:"notecard__heading"},[e._v(" "+e._s(e.heading)+" ")]):e._e(),e._t("default",function(){return[r("p",{staticClass:"notecard__text"},[e._v(" "+e._s(e.text)+" ")])]})],2)],2)},Uu=[],ju=St(Hu,Gu,Uu,!1,null,"7df28e9e");const Pu=ju.exports,zu=l0({__name:"GenericDialog",props:{name:null,text:null,html:null,buttons:null,severity:null},setup(e){const r=e,i=()=>`${r.name}: ${r.text}`;return Wo(()=>window.addEventListener("unload",i)),Ko(()=>window.removeEventListener("unload",i)),{__sfc:!0,props:r,handleUnload:i,NcDialog:Su,NcNoteCard:Pu}}});var Vu=function(){var e=this,r=e._self._c,i=e._self._setupProxy;return r(i.NcDialog,{attrs:{"dialog-classes":"nc-generic-dialog",buttons:e.buttons,name:e.name,message:e.text},on:{"update:open":function(n){return e.$emit("close")}}},[e.severity?r(i.NcNoteCard,{attrs:{type:e.severity}},[r("p",{domProps:{textContent:e._s(e.text)}})]):e._e(),e.html?r("div",{domProps:{innerHTML:e._s(e.html)}}):e._e()],1)},$u=[],Qu=Qo(zu,Vu,$u);const Wu=Qu.exports;class Ku{#t;#e;#r;#n;#a;#l;constructor(r,i,n=[],a){this.#t=r,this.#e=i,this.#r=n,this.#n=a,this.#a=void 0,this.#l=void 0}setHTML(r){return this.#l=r,this}async show(){return this.#a&&this.#a.$destroy(),new Promise(r=>{this.#a=pu(Wu,{buttons:this.#r,name:this.#t,text:this.#e,severity:this.#n,html:this.#l},r)})}hide(){this.#a?.$destroy()}}class qu{#t;#e;#r;#n;constructor(r){this.#t=void 0,this.#e="",this.#r=r??"",this.#n=[]}setName(r){return this.#r=r,this}setText(r){return this.#e=r,this}setSeverity(r){return this.#t=r,this}setButtons(r){return this.#n.length>0&&console.warn("[@nextcloud/dialogs] Dialog buttons are already set - this overrides previous buttons."),this.#n=r,this}addButton(r){return this.#n.push(r),this}build(){return new Ku(this.#r,this.#e,this.#n,this.#t)}}function ui(e,r,i){e.$set(e.$data._asyncComputed[r],"state",i),e.$set(e.$data._asyncComputed[r],"updating",i==="updating"),e.$set(e.$data._asyncComputed[r],"error",i==="error"),e.$set(e.$data._asyncComputed[r],"success",i==="success")}function Xu(e){return typeof e=="function"?e:e.get}function ia(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function va(e){return ia(e,"lazy")&&e.lazy}function Ju(e,r){return e[ya+r]}var ya="async_computed$lazy_active$",Qr="async_computed$lazy_data$";function tc(e,r,i){e[ya+r]=!1,e[Qr+r]=i}function ec(e){return{get:function(){return this[ya+e]=!0,this[Qr+e]},set:function(r){this[Qr+e]=r}}}function rc(e,r,i){e[Qr+r]=i}function ic(e,r){return e[Qr+r]}var nc=function(e){return function(){var r=this;return e.watch.forEach(function(i){var n=i.split(".");if(n.length===1)r[i];else try{var a=r;n.forEach(function(s){a=a[s]})}catch(s){throw console.error("AsyncComputed: bad path: ",i),s}}),e.get.call(this)}},ac=function(e){return function(){return e.watch.call(this),e.get.call(this)}};function sc(e){if(typeof e.watch=="function")return ac(e);if(Array.isArray(e.watch))return e.watch.forEach(function(r){if(typeof r!="string")throw new Error("AsyncComputed: watch elemnts must be strings")}),nc(e);throw Error("AsyncComputed: watch should be function or an array")}var R0=typeof Symbol=="function"?Symbol("did-not-update"):{},oc=function(e,r){return function(){return e.shouldUpdate.call(this)?r.call(this):R0}},lc=function(e){return R0===e},N0="_async_computed$",An={install:function(e,r){r=r||{},e.config.optionMergeStrategies.asyncComputed=e.config.optionMergeStrategies.computed,e.mixin({data:function(){return{_asyncComputed:{}}},computed:{$asyncComputed:function(){return this.$data._asyncComputed}},beforeCreate:function(){var i=this.$options.asyncComputed||{};if(Object.keys(i).length){for(var n in i){var a=Tc(n,i[n]);this.$options.computed[N0+n]=a}this.$options.data=cc(this.$options,r)}},created:function(){for(var i in this.$options.asyncComputed||{}){var n=this.$options.asyncComputed[i],a=O0.call(this,n,r);va(n)?rc(this,i,a):this[i]=a}for(var s in this.$options.asyncComputed||{})uc(this,s,r,e)}})}};function uc(e,r,i,n){var a=0,s=function(l){var u=++a;lc(l)||((!l||!l.then)&&(l=Promise.resolve(l)),ui(e,r,"updating"),l.then(function(o){u===a&&(ui(e,r,"success"),e[r]=o)}).catch(function(o){if(u===a&&(ui(e,r,"error"),n.set(e.$data._asyncComputed[r],"exception",o),i.errorHandler!==!1)){var T=i.errorHandler===void 0?console.error.bind(console,"Error evaluating async computed property:"):i.errorHandler;i.useRawError?T(o,e,o.stack):T(o.stack)}}))};n.set(e.$data._asyncComputed,r,{exception:null,update:function(){e._isDestroyed||s(Xu(e.$options.asyncComputed[r]).apply(e))}}),ui(e,r,"updating"),e.$watch(N0+r,s,{immediate:!0})}function cc(e,r){var i=e.data,n=e.asyncComputed||{};return function(a){var s=(typeof i=="function"?i.call(this,a):i)||{};for(var l in n){var u=this.$options.asyncComputed[l],o=O0.call(this,u,r);va(u)?(tc(s,l,o),this.$options.computed[l]=ec(l)):s[l]=o}return s}}function Tc(e,r){if(typeof r=="function")return r;var i=r.get;if(ia(r,"watch")&&(i=sc(r)),ia(r,"shouldUpdate")&&(i=oc(r,i)),va(r)){var n=i;i=function(){return Ju(this,e)?n.call(this):ic(this,e)}}return i}function O0(e,r){var i=null;return"default"in e?i=e.default:"default"in r&&(i=r.default),typeof i=="function"?i.call(this):i}typeof window<"u"&&window.Vue&&window.Vue.use(An);const dc={name:"PlayCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var hc=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon play-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M10,16.5L16,12L10,7.5V16.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},fc=[],pc=ai(dc,hc,fc,!1,null,null);const Ac=pc.exports;it();function si(e,r,i=!1){const n=qo().proxy;return i&&n.$props[e]===void 0&&n.$props.modelValue===void 0&&ie.util.warn(`Missing required prop: "modelValue" or old "${e}"`),ve({get(){return n.$props[e]!==void 0?n.$props[e]:n.$props.modelValue},set(a){n.$emit("update:modelValue",a),n.$emit("update:model-value",a),n.$emit(r,a)}})}class En{static fromString(r){return new En(r)}constructor(r){this.value=r}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(r){this.value=this._b64_encode(r)}_b64_encode(r){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,a,s,l,u,o,T,c,d=0,h=0,f="",D=[];if(!r)return r;do n=r.charCodeAt(d++),a=r.charCodeAt(d++),s=r.charCodeAt(d++),c=n<<16|a<<8|s,l=c>>18&63,u=c>>12&63,o=c>>6&63,T=c&63,D[h++]=i.charAt(l)+i.charAt(u)+i.charAt(o)+i.charAt(T);while(d>16&255,a=c>>8&255,s=c&255,o==64?D[h++]=String.fromCharCode(n):T==64?D[h++]=String.fromCharCode(n,a):D[h++]=String.fromCharCode(n,a,s);while(dn)-(i12||(a=n[r],r==2&&(a+=_.isLeapYear(i))),a}static isLeapYear(r){return r<=1752?r%4==0:r%4==0&&r%100!=0||r%400==0}static fromDayOfYear(r,i){let n=i,a=r,s=new _;s.auto_normalize=!1;let l=_.isLeapYear(n)?1:0;if(a<1)return n--,l=_.isLeapYear(n)?1:0,a+=_.daysInYearPassedMonth[l][12],_.fromDayOfYear(a,n);if(a>_.daysInYearPassedMonth[l][12])return l=_.isLeapYear(n)?1:0,a-=_.daysInYearPassedMonth[l][12],n++,_.fromDayOfYear(a,n);s.year=n,s.isDate=!0;for(let u=11;u>=0;u--)if(a>_.daysInYearPassedMonth[l][u]){s.month=u+1,s.day=a-_.daysInYearPassedMonth[l][u];break}return s.auto_normalize=!0,s}static fromStringv2(r){return new _({year:parseInt(r.slice(0,4),10),month:parseInt(r.slice(5,7),10),day:parseInt(r.slice(8,10),10),isDate:!0})}static fromDateString(r){return new _({year:Ht(r.slice(0,4)),month:Ht(r.slice(5,7)),day:Ht(r.slice(8,10)),isDate:!0})}static fromDateTimeString(r,i){if(r.length<19)throw new Error('invalid date-time value: "'+r+'"');let n,a;r[19]&&r[19]==="Z"?n=ft.utcTimezone:i&&(a=i.getParameter("tzid"),i.parent&&(i.parent.name==="standard"||i.parent.name==="daylight"?n=ft.localTimezone:a&&(n=i.parent.getTimeZoneByID(a))));const s={year:Ht(r.slice(0,4)),month:Ht(r.slice(5,7)),day:Ht(r.slice(8,10)),hour:Ht(r.slice(11,13)),minute:Ht(r.slice(14,16)),second:Ht(r.slice(17,19))};return a&&!n&&(s.timezone=a),new _(s,n)}static fromString(r,i){return r.length>10?_.fromDateTimeString(r,i):_.fromDateString(r)}static fromJSDate(r,i){return new _().fromJSDate(r,i)}static fromData=function(r,i){return new _().fromData(r,i)};static now(){return _.fromJSDate(new Date,!1)}static weekOneStarts(r,i){let n=_.fromData({year:r,month:1,day:1,isDate:!0}),a=n.dayOfWeek(),s=i||_.DEFAULT_WEEK_START;return a>_.THURSDAY&&(n.day+=7),s>_.THURSDAY&&(n.day-=7),n.day-=a-s,n}static getDominicalLetter(r){let i="GFEDCBA",n=(r+(r/4|0)+(r/400|0)-(r/100|0)-1)%7;return _.isLeapYear(r)?i[(n+6)%7]+i[n]:i[n]}static#t=null;static get epochTime(){return this.#t||(this.#t=_.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"})),this.#t}static _cmp_attr(r,i,n){return r[n]>i[n]?1:r[n]=0){u.day=1,s!=0&&s--,l=u.day;let o=u.dayOfWeek(),T=r-o;T<0&&(T+=7),l+=T,l-=r,a=r}else{u.day=n;let o=u.dayOfWeek();s++,a=o-r,a<0&&(a+=7),a=n-a}return a+=s*7,l+a}isNthWeekDay(r,i){let n=this.dayOfWeek();return i===0&&n===r||this.nthWeekDay(r,i)===this.day}weekNumber(r){let i=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(i in _._wnCache)return _._wnCache[i];let n,a=this.clone();a.isDate=!0;let s=this.year;a.month==12&&a.day>25?(n=_.weekOneStarts(s+1,r),a.compare(n)<0?n=_.weekOneStarts(s,r):s++):(n=_.weekOneStarts(s,r),a.compare(n)<0&&(n=_.weekOneStarts(--s,r)));let l=a.subtractDate(n).toSeconds()/86400,u=Zt(l/7)+1;return _._wnCache[i]=u,u}addDuration(r){let i=r.isNegative?-1:1,n=this.second,a=this.minute,s=this.hour,l=this.day;n+=i*r.seconds,a+=i*r.minutes,s+=i*r.hours,l+=i*r.days,l+=i*7*r.weeks,this.second=n,this.minute=a,this.hour=s,this.day=l,this._cachedUnixTime=null}subtractDate(r){let i=this.toUnixTime()+this.utcOffset(),n=r.toUnixTime()+r.utcOffset();return jt.fromSeconds(i-n)}subtractDateTz(r){let i=this.toUnixTime(),n=r.toUnixTime();return jt.fromSeconds(i-n)}compare(r){let i=this.toUnixTime(),n=r.toUnixTime();return i>n?1:n>i?-1:0}compareDateOnlyTz(r,i){let n=this.convertToZone(i),a=r.convertToZone(i),s=0;return(s=_._cmp_attr(n,a,"year"))!=0||(s=_._cmp_attr(n,a,"month"))!=0||(s=_._cmp_attr(n,a,"day"))!=0,s}convertToZone(r){let i=this.clone(),n=this.zone.tzid==r.tzid;return!this.isDate&&!n&&ft.convert_time(i,this.zone,r),i.zone=r,i}utcOffset(){return this.zone==ft.localTimezone||this.zone==ft.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let r=this.toString();return r.length>10?Bt.icalendar.value["date-time"].toICAL(r):Bt.icalendar.value.date.toICAL(r)}toString(){let r=this.year+"-"+Qt(this.month)+"-"+Qt(this.day);return this.isDate||(r+="T"+Qt(this.hour)+":"+Qt(this.minute)+":"+Qt(this.second),this.zone===ft.utcTimezone&&(r+="Z")),r}toJSDate(){return this.zone==ft.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)}_normalize(){return this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this}adjust(r,i,n,a,s){let l,u,o=0,T=0,c,d,h,f,D,E=s||this._time;if(E.isDate||(c=E.second+a,E.second=c%60,l=Zt(c/60),E.second<0&&(E.second+=60,l--),d=E.minute+n+l,E.minute=d%60,u=Zt(d/60),E.minute<0&&(E.minute+=60,u--),h=E.hour+i+u,E.hour=h%24,o=Zt(h/24),E.hour<0&&(E.hour+=24,o--)),E.month>12?T=Zt((E.month-1)/12):E.month<1&&(T=Zt(E.month/12)-1),E.year+=T,E.month-=12*T,f=E.day+r+o,f>0)for(;D=_.daysInMonth(E.month,E.year),!(f<=D);)E.month++,E.month>12&&(E.year++,E.month=1),f-=D;else for(;f<=0;)E.month==1?(E.year--,E.month=12):E.month--,f+=_.daysInMonth(E.month,E.year);return E.day=f,this._cachedUnixTime=null,this}fromUnixTime(r){this.zone=ft.utcTimezone;let i=new Date(r*1e3);this.year=i.getUTCFullYear(),this.month=i.getUTCMonth()+1,this.day=i.getUTCDate(),this._time.isDate?(this.hour=0,this.minute=0,this.second=0):(this.hour=i.getUTCHours(),this.minute=i.getUTCMinutes(),this.second=i.getUTCSeconds()),this._cachedUnixTime=null}toUnixTime(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;let r=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-r);return this._cachedUnixTime=i/1e3,this._cachedUnixTime}toJSON(){let r=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,a=r.length,s;for(;n1)throw new Xe("invalid ical body. component began but did not end");return r=null,i.length==1?i[0]:i}ut.property=function(e,r){let i={component:[[],[]],designSet:r||Bt.defaultSet};return ut._handleContentLine(e,i),i.component[1][0]},ut.component=function(e){return ut(e)};class Xe extends Error{name=this.constructor.name}ut.ParserError=Xe,ut._handleContentLine=function(e,r){let i=e.indexOf(ci),n=e.indexOf(Bn),a,s,l,u,o={};n!==-1&&i!==-1&&n>i&&(n=-1);let T;if(n!==-1){if(l=e.slice(0,Math.max(0,n)).toLowerCase(),T=ut._parseParameters(e.slice(Math.max(0,n)),0,r.designSet),T[2]==-1)throw new Xe("Invalid parameters in '"+e+"'");if(o=T[0],a=T[1].length+T[2]+n,(s=e.slice(Math.max(0,a)).indexOf(ci))!==-1)u=e.slice(Math.max(0,a+s+1));else throw new Xe("Missing parameter value in '"+e+"'")}else if(i!==-1){if(l=e.slice(0,Math.max(0,i)).toLowerCase(),u=e.slice(Math.max(0,i+1)),l==="begin"){let v=[u.toLowerCase(),[],[]];r.stack.length===1?r.component.push(v):r.component[2].push(v),r.stack.push(r.component),r.component=v,r.designSet||(r.designSet=Bt.getDesignSet(r.component[0]));return}else if(l==="end"){r.component=r.stack.pop();return}}else throw new Xe('invalid line (no token ";" or ":") "'+e+'"');let c,d=!1,h=!1,f,D,E;r.designSet.propertyGroups&&l.indexOf(".")!==-1?(D=l.split("."),o.group=D[0],E=D[1]):E=l,E in r.designSet.property&&(f=r.designSet.property[E],"multiValue"in f&&(d=f.multiValue),"structuredValue"in f&&(h=f.structuredValue),u&&"detectType"in f&&(c=f.detectType(u))),c||("value"in o?c=o.value.toLowerCase():f?c=f.defaultType:c=Fc),delete o.value;let R;d&&h?(u=ut._parseMultiValue(u,h,c,[],d,r.designSet,h),R=[E,o,c,u]):d?(R=[E,o,c],ut._parseMultiValue(u,d,c,R,null,r.designSet,!1)):h?(u=ut._parseMultiValue(u,h,c,[],null,r.designSet,h),R=[E,o,c,u]):(u=ut._parseValue(u,c,r.designSet,!1),R=[E,o,c,u]),r.component[0]==="vcard"&&r.component[1].length===0&&!(l==="version"&&u==="4.0")&&(r.designSet=Bt.getDesignSet("vcard3")),r.component[1].push(R)},ut._parseValue=function(e,r,i,n){return r in i.value&&"fromICAL"in i.value[r]?i.value[r].fromICAL(e,n):e},ut._parseParameters=function(e,r,i){let n=r,a=0,s=gc,l={},u,o,T,c=-1,d,h,f;for(;a!==!1&&(a=e.indexOf(s,a+1))!==-1;){if(u=e.slice(n+1,a),u.length==0)throw new Xe("Empty parameter name in '"+e+"'");if(o=u.toLowerCase(),f=!1,h=!1,o in i.param&&i.param[o].valueType?d=i.param[o].valueType:d=Rc,o in i.param&&(h=i.param[o].multiValue,i.param[o].multiValueSeparateDQuote&&(f=ut._rfc6868Escape('"'+h+'"'))),e[a+1]==='"'){if(c=a+2,a=e.indexOf('"',c),h&&a!=-1){let R=!0;for(;R;)e[a+1]==h&&e[a+2]=='"'?a=e.indexOf('"',a+3):R=!1}if(a===-1)throw new Xe('invalid line (no matching double quote) "'+e+'"');T=e.slice(c,a),n=e.indexOf(Bn,a);let E=e.indexOf(ci,a);(n===-1||E!==-1&&n>E)&&(a=!1)}else{c=a+1;let E=e.indexOf(Bn,c),R=e.indexOf(ci,c);R!==-1&&E>R?(E=R,a=!1):E===-1?(R===-1?E=e.length:E=R,a=!1):(n=E,a=E),T=e.slice(c,E)}const D=T.length;if(T=ut._rfc6868Escape(T),c+=D-T.length,h){let E=f||h;T=ut._parseMultiValue(T,E,d,[],null,i)}else T=ut._parseValue(T,d,i);h&&o in l?Array.isArray(l[o])?l[o].push(T):l[o]=[l[o],T]:l[o]=T}return[l,T,c]},ut._rfc6868Escape=function(e){return e.replace(/\^['n^]/g,function(r){return Nc[r]})},ut._parseMultiValue=function(e,r,i,n,a,s,l){let u=0,o=0,T;if(r.length===0)return e;for(;(u=v0(e,r,o))!==-1;)T=e.slice(o,u),a?T=ut._parseMultiValue(T,a,i,[],null,s,l):T=ut._parseValue(T,i,s,l),n.push(T),o=u+r.length;return T=e.slice(o),a?T=ut._parseMultiValue(T,a,i,[],null,s,l):T=ut._parseValue(T,i,s,l),n.push(T),n.length==1?n[0]:n},ut._eachLine=function(e,r){let i=e.length,n=e.search(Sc),a=n,s,l,u;do a=e.indexOf(` `,n)+1,a>1&&e[a-2]==="\r"?u=2:u=1,a===0&&(a=i,u=0),l=e[n],l===" "||l===" "?s+=e.slice(n+1,a-u):(s&&r(null,s),s=e.slice(n,a-u)),n=a;while(a!==i);s=s.trim(),s.length&&r(null,s)};const Oc=["tzid","location","tznames","latitude","longitude"];let ft=class dt{static _compare_change_fn(r,i){return r.yeari.year?1:r.monthi.month?1:r.dayi.day?1:r.houri.hour?1:r.minutei.minute?1:r.secondi.second?1:0}static convert_time(r,i,n){if(r.isDate||i.tzid==n.tzid||i==dt.localTimezone||n==dt.localTimezone)return r.zone=n,r;let a=i.utcOffset(r);return r.adjust(0,0,0,-a),a=n.utcOffset(r),r.adjust(0,0,0,a),null}static fromData(r){return new dt().fromData(r)}static#t=null;static get utcTimezone(){return this.#t||(this.#t=dt.fromData({tzid:"UTC"})),this.#t}static#e=null;static get localTimezone(){return this.#e||(this.#e=dt.fromData({tzid:"floating"})),this.#e}static adjust_change(r,i,n,a,s){return _.prototype.adjust.call(r,i,n,a,s,r)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(r){this.wrappedJSObject=this,this.fromData(r)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(r){if(this.expandedUntilYear=0,this.changes=[],r instanceof qt)this.component=r;else{if(r&&"component"in r)if(typeof r.component=="string"){let i=ut(r.component);this.component=new qt(i)}else r.component instanceof qt?this.component=r.component:this.component=null;for(let i of Oc)r&&i in r&&(this[i]=r[i])}return this.component instanceof qt&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(r){if(this==dt.utcTimezone||this==dt.localTimezone||(this._ensureCoverage(r.year),!this.changes.length))return 0;let i={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second},n=this._findNearbyChange(i),a=-1,s=1;for(;;){let u=or(this.changes[n],!0);if(u.utcOffset=0?a=n:s=-1,s==-1&&a!=-1)break;if(n+=s,n<0)return 0;if(n>=this.changes.length)break}let l=this.changes[a];if(l.utcOffset-l.prevUtcOffset<0&&a>0){let u=or(l,!0);if(dt.adjust_change(u,0,0,0,u.prevUtcOffset),dt._compare_change_fn(i,u)<0){let o=this.changes[a-1],T=!1;l.is_daylight!=T&&o.is_daylight==T&&(l=o)}}return l.utcOffset}_findNearbyChange(r){let i=rr(this.changes,r,dt._compare_change_fn);return i>=this.changes.length?this.changes.length-1:i}_ensureCoverage(r){if(dt._minimumExpansionYear==-1){let n=_.now();dt._minimumExpansionYear=n.year}let i=r;if(ii||!d));)s.year=d.year,s.month=d.month,s.day=d.day,s.hour=d.hour,s.minute=d.minute,s.second=d.second,s.isDate=d.isDate,dt.adjust_change(s,0,0,0,-s.prevUtcOffset),n.push(s)}}return n}toString(){return this.tznames?this.tznames:this.tzid}},zt=null;const _i={get count(){return zt===null?0:Object.keys(zt).length},reset:function(){zt=Object.create(null);let e=ft.utcTimezone;zt.Z=e,zt.UTC=e,zt.GMT=e},_hard_reset:function(){zt=null},has:function(e){return zt===null?!1:!!zt[e]},get:function(e){return zt===null&&this.reset(),zt[e]},register:function(e,r){if(zt===null&&this.reset(),typeof e=="string"&&r instanceof ft&&([e,r]=[r,e]),r||(e instanceof ft?r=e.tzid:e.name==="vtimezone"&&(e=new ft(e),r=e.tzid)),!r)throw new TypeError("Neither a timezone nor a name was passed");if(e instanceof ft)zt[r]=e;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(e){return zt===null?null:delete zt[e]}};function vc(e){let r,i,n,a,s;if(!e||e.name!=="vcalendar")return e;for(r=e.getAllSubcomponents(),i=[],n={},s=0;s"u"))return e instanceof r?e:new r(e)}function v0(e,r,i){for(;(i=e.indexOf(r,i))!==-1;)if(i>0&&e[i-1]==="\\")i+=1;else return i;return-1}function rr(e,r,i){if(!e.length)return 0;let n=0,a=e.length-1,s,l;for(;n<=a;)if(s=n+Math.floor((a-n)/2),l=i(r,e[s]),l<0)a=s-1;else if(l>0)n=s+1;else break;return l<0?s:l>0?s+1:s}function or(e,r){if(!e||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if("clone"in e)return e.clone();if(Array.isArray(e)){let i=[];for(let n=0;n65535?2:1:(r+=Yt.newLineChar+" "+i.slice(0,Math.max(0,n)),i=i.slice(Math.max(0,n)),n=a=0)}return r.slice(Yt.newLineChar.length+1)}function Qt(e){switch(typeof e!="string"&&(typeof e=="number"&&(e=parseInt(e)),e=String(e)),e.length){case 0:return"00";case 1:return"0"+e;default:return e}}function Zt(e){return e<0?Math.ceil(e):Math.floor(e)}function ur(e,r){for(let i in e){let n=Object.getOwnPropertyDescriptor(e,i);n&&!Object.getOwnPropertyDescriptor(r,i)&&Object.defineProperty(r,i,n)}return r}var yc=Object.freeze({__proto__:null,updateTimezones:vc,isStrictlyNaN:Wr,strictParseInt:Ht,formatClassType:ye,unescapedIndexOf:v0,binsearchInsert:rr,clone:or,foldline:y0,pad2:Qt,trunc:Zt,extend:ur});class oe{static fromString(r){let i={};return i.factor=r[0]==="+"?1:-1,i.hours=Ht(r.slice(1,3)),i.minutes=Ht(r.slice(4,6)),new oe(i)}static fromSeconds(r){let i=new oe;return i.fromSeconds(r),i}constructor(r){this.fromData(r)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return oe.fromSeconds(this.toSeconds())}fromData(r){if(r)for(let[i,n]of Object.entries(r))this[i]=n;this._normalize()}fromSeconds(r){let i=Math.abs(r);return this.factor=r<0?-1:1,this.hours=Zt(i/3600),i-=this.hours*3600,this.minutes=Zt(i/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(r){let i=this.toSeconds(),n=r.toSeconds();return(i>n)-(n>i)}_normalize(){let r=this.toSeconds(),i=this.factor;for(;r<-43200;)r+=97200;for(;r>50400;)r-=97200;this.fromSeconds(r),r==0&&(this.factor=i)}toICALString(){return Bt.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(this.factor==1?"+":"-")+Qt(this.hours)+":"+Qt(this.minutes)}}class je extends _{static fromDateAndOrTimeString(r,i){function n(E,R,v){return E?Ht(E.slice(R,R+v)):null}let a=r.split("T"),s=a[0],l=a[1],u=l?Bt.vcard.value.time._splitZone(l):[],o=u[0],T=u[1],c=s?s.length:0,d=T?T.length:0,h=s&&s[0]=="-"&&s[1]=="-",f=T&&T[0]=="-",D={year:h?null:n(s,0,4),month:h&&(c==4||c==7)?n(s,2,2):c==7||c==10?n(s,5,2):null,day:c==5?n(s,3,2):c==7&&h?n(s,5,2):c==10?n(s,8,2):null,hour:f?null:n(T,0,2),minute:f&&d==3?n(T,1,2):d>4?f?n(T,1,2):n(T,3,2):null,second:d==4?n(T,2,2):d==6?n(T,4,2):d==8?n(T,6,2):null};return o=="Z"?o=ft.utcTimezone:o&&o[3]==":"?o=oe.fromString(o):o=null,new je(D,o,i)}constructor(r,i,n){super(r,i),this.icaltype=n||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new je(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof oe?this.zone.toSeconds():_.prototype.utcOffset.apply(this,arguments)}toICALString(){return Bt.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let r=this.year,i=this.month,n=this.day,a=this.hour,s=this.minute,l=this.second,u=r!==null,o=i!==null,T=n!==null,c=a!==null,d=s!==null,h=l!==null,f=(u?Qt(r)+(o||T?"-":""):o||T?"--":"")+(o?Qt(i):"")+(T?"-"+Qt(n):""),D=(c?Qt(a):"-")+(c&&d?":":"")+(d?Qt(s):"")+(!c&&!d?"-":"")+(d&&h?":":"")+(h?Qt(l):""),E;switch(this.zone===ft.utcTimezone?E="Z":this.zone instanceof oe?E=this.zone.toString():this.zone===ft.localTimezone?E="":this.zone instanceof ft?E=oe.fromSeconds(this.zone.utcOffset(this)).toString():E="",this.icaltype){case"time":return D+E;case"date-and-or-time":case"date-time":return f+(D=="--"?"":"T"+D+E);case"date":return f}return null}}class fe{static _indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8};static _expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]};static UNKNOWN=0;static CONTRACT=1;static EXPAND=2;static ILLEGAL=3;constructor(r){this.fromData(r)}completed=!1;rule=null;dtstart=null;last=null;occurrence_number=0;by_indices=null;initialized=!1;by_data=null;days=null;days_index=0;fromData(r){if(this.rule=ye(r.rule,Ut),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=ye(r.dtstart,_),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(r.by_data?this.by_data=r.by_data:this.by_data=or(this.rule.parts,!0),r.occurrence_number&&(this.occurrence_number=r.occurrence_number),this.days=r.days||[],r.last&&(this.last=ye(r.last,_)),this.by_indices=r.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=r.initialized||!1,!this.initialized)try{this.init()}catch(i){if(i instanceof is)this.completed=!0;else throw i}}init(){this.initialized=!0,this.last=this.dtstart.clone();let r=this.by_data;if("BYDAY"in r&&this.sort_byday_rules(r.BYDAY),"BYYEARDAY"in r&&("BYMONTH"in r||"BYWEEKNO"in r||"BYMONTHDAY"in r||"BYDAY"in r))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in r&&"BYMONTHDAY"in r)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in r||"BYWEEKNO"in r))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in r||"BYMONTHDAY"in r))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in r)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),this.rule.freq=="WEEKLY")if("BYDAY"in r){let[,i]=this.ruleDayOfWeek(r.BYDAY[0],this.rule.wkst),n=i-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)=0||n<0)&&(this.last.day+=n)}else{let i=Ut.numericDayToIcalDay(this.dtstart.dayOfWeek());r.BYDAY=[i]}if(this.rule.freq=="YEARLY"){const i=this.rule.until?this.rule.until.year:2e4;for(;this.last.year<=i&&(this.expand_year_days(this.last.year),!(this.days.length>0));)this.increment_year(this.rule.interval);if(this.days.length==0)throw new is;this._nextByYearDay()}if(this.rule.freq=="MONTHLY"){if(this.has_by_data("BYDAY")){let i=null,n=this.last.clone(),a=_.daysInMonth(this.last.month,this.last.year);for(let s of this.by_data.BYDAY){this.last=n.clone();let[l,u]=this.ruleDayOfWeek(s),o=this.last.nthWeekDay(u,l);if(l>=6||l<=-6)throw new Error("Malformed values in BYDAY part");if(o>a||o<=0){if(i&&i.month==n.month)continue;for(;o>a||o<=0;)this.increment_month(),a=_.daysInMonth(this.last.month,this.last.year),o=this.last.nthWeekDay(u,l)}this.last.day=o,(!i||this.last.compare(i)<0)&&(i=this.last.clone())}if(this.last=i.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>a||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")){this.last.day=1;let i=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY).filter(n=>n>=this.last.day);if(i.length)this.last.day=i[0],this.by_data.BYMONTHDAY=i;else if(!this.next_month()&&!this.next_month()&&!this.next_month())throw new Error("No possible occurrences")}}}next(r=!1){let i=this.last?this.last.clone():null;if((this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)&&(this.completed=!0),this.completed)return null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;let n;do switch(n=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":n=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!n);if(this.last.compare(i)==0){if(r)throw new Error("Same occurrence found twice, protecting you from death by recursion");this.next(!0)}return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)}next_second(){return this.next_generic("BYSECOND","SECONDLY","second","minute")}increment_second(r){return this.increment_generic(r,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(r){return this.increment_generic(r,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(r){this.increment_generic(r,"hour",24,"monthday")}next_day(){let r=this.rule.freq=="DAILY";return this.next_hour()==0||(r?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let r=0;if(this.next_weekday_by_week()==0)return r;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,r=1),this.last.month=1,this.last.day=1;let i=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*i,r&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return r}normalizeByMonthDayRules(r,i,n){let a=_.daysInMonth(i,r),s=[],l=0,u=n.length,o;for(;la)){if(o<0)o=a+(o+1);else if(o===0)continue;s.indexOf(o)===-1&&s.push(o)}}return s.sort(function(T,c){return T-c})}_byDayAndMonthDay(r){let i,n=this.by_data.BYDAY,a,s=0,l,u=n.length,o=0,T,c=this,d=this.last.day;function h(){for(T=_.daysInMonth(c.last.month,c.last.year),i=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),l=i.length;i[s]<=d&&!(r&&i[s]==d)&&sT){f();continue}let E=i[s++];if(E>=a)d=E;else{f();continue}for(let R=0;Ri&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(r=1):r=0)}else if(this.has_by_data("BYMONTHDAY")){if(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month(),this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length))return 0;let i=_.daysInMonth(this.last.month,this.last.year),n=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];n<0&&(n=i+n+1),n>i?(this.last.day=1,r=this.is_day_in_byday(this.last)):this.last.day=n}else{this.increment_month();let i=_.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>i?r=0:this.last.day=this.by_data.BYMONTHDAY[0]}return r}next_weekday_by_week(){let r=0;if(this.next_hour()==0)return r;if(!this.has_by_data("BYDAY"))return 1;for(;;){let i=new _;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,r=1);let n=this.by_data.BYDAY[this.by_indices.BYDAY],a=this.ruleDayOfWeek(n)[1];a-=this.rule.wkst,a<0&&(a+=7),i.year=this.last.year,i.month=this.last.month,i.day=this.last.day;let s=i.startDoyWeek(this.rule.wkst);if(a+s<1&&!r)continue;let l=_.fromDayOfYear(s+a,this.last.year);return this.last.year=l.year,this.last.month=l.month,this.last.day=l.day,r}}next_year(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY)),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1}_nextByYearDay(){let r=this.days[this.days_index],i=this.last.year;r<1&&(r+=1,i+=1);let n=_.fromDayOfYear(r,i);this.last.day=n.day,this.last.month=n.month}ruleDayOfWeek(r,i){let n=r.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(n){let a=parseInt(n[1]||0,10);return r=Ut.icalDayToNumericDay(n[2],i),[a,r]}else return[0,0]}next_generic(r,i,n,a,s){let l=r in this.by_data,u=this.rule.freq==i,o=0;if(s&&this[s]()==0)return o;if(l){this.by_indices[r]++;let T=this.by_data[r];this.by_indices[r]==T.length&&(this.by_indices[r]=0,o=1),this.last[n]=T[this.by_indices[r]]}else u&&this["increment_"+n](this.rule.interval);return l&&o&&u&&this["increment_"+a](1),o}increment_monthday(r){for(let i=0;in&&(this.last.day-=n,this.increment_month())}}increment_month(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;let r=Zt(this.last.month/12);this.last.month%=12,this.last.month++,r!=0&&this.increment_year(r)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(r){this.last.day=1,this.last.year+=r}increment_generic(r,i,n,a){this.last[i]+=r;let s=Zt(this.last[i]/n);this.last[i]%=n,s!=0&&this["increment_"+a](s)}has_by_data(r){return r in this.rule.parts}expand_year_days(r){let i=new _;this.days=[];let n={},a=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(let u of a)u in this.rule.parts&&(n[u]=this.rule.parts[u]);if("BYMONTH"in n&&"BYWEEKNO"in n){let u=1,o={};i.year=r,i.isDate=!0;for(let T=0;T0?(R=v+(D-1)*7,R<=o&&this.days.push(c+R)):(R=N+(D+1)*7,R>0&&this.days.push(c+R))}}this.days.sort(function(u,o){return u-o})}else if(s==2&&"BYDAY"in n&&"BYMONTHDAY"in n){let u=this.expand_by_day(r);for(let o of u){let T=_.fromDayOfYear(o,r);this.by_data.BYMONTHDAY.indexOf(T.day)>=0&&this.days.push(o)}}else if(s==3&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n){let u=this.expand_by_day(r);for(let o of u){let T=_.fromDayOfYear(o,r);this.by_data.BYMONTH.indexOf(T.month)>=0&&this.by_data.BYMONTHDAY.indexOf(T.day)>=0&&this.days.push(o)}}else if(s==2&&"BYDAY"in n&&"BYWEEKNO"in n){let u=this.expand_by_day(r);for(let o of u){let T=_.fromDayOfYear(o,r).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(T)&&this.days.push(o)}}else s==3&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(s==1&&"BYYEARDAY"in n?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);let l=_.isLeapYear(r)?366:365;return this.days.sort((u,o)=>(u<0&&(u+=l+1),o<0&&(o+=l+1),u-o)),0}expand_by_day(r){let i=[],n=this.last.clone();n.year=r,n.month=1,n.day=1,n.isDate=!0;let a=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;let s=n.dayOfWeek(),l=n.dayOfYear();for(let u of this.by_data.BYDAY){let o=this.ruleDayOfWeek(u),T=o[0],c=o[1];if(T==0){let d=(c+7-a)%7+1;for(let h=d;h<=l;h+=7)i.push(h)}else if(T>0){let d;c>=a?d=c-a+1:d=c-a+8,i.push(d+(T-1)*7)}else{let d;T=-T,c<=s?d=l-s+c:d=l-s+c-7,i.push(d-(T-1)*7)}}return i}is_day_in_byday(r){if(this.by_data.BYDAY)for(let i of this.by_data.BYDAY){let n=this.ruleDayOfWeek(i),a=n[0],s=n[1],l=r.dayOfWeek();if(a==0&&s==l||r.nthWeekDay(s,a)==r.day)return 1}return 0}check_set_position(r){return this.has_by_data("BYSETPOS")?this.by_data.BYSETPOS.indexOf(r)!==-1:!1}sort_byday_rules(r){for(let i=0;is){let l=r[i];r[i]=r[n],r[n]=l}}}check_contract_restriction(r,i){let n=fe._indexMap[r],a=fe._expandMap[this.rule.freq][n],s=!1;if(r in this.by_data&&a==fe.CONTRACT){let l=this.by_data[r];for(let u of l)if(u==i){s=!0;break}}else s=!0;return s}check_contracting_rules(){let r=this.last.dayOfWeek(),i=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",Ut.numericDayToIcalDay(r))&&this.check_contract_restriction("BYWEEKNO",i)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)}setup_defaults(r,i,n){let a=fe._indexMap[r];return fe._expandMap[this.rule.freq][a]!=fe.CONTRACT&&(r in this.by_data||(this.by_data[r]=[n]),this.rule.freq!=i)?this.by_data[r][0]:n}toJSON(){let r=Object.create(null);return r.initialized=this.initialized,r.rule=this.rule.toJSON(),r.dtstart=this.dtstart.toJSON(),r.by_data=this.by_data,r.days=this.days,r.last=this.last.toJSON(),r.by_indices=this.by_indices,r.occurrence_number=this.occurrence_number,r}}class is extends Error{constructor(){super("Recurrence rule has no valid occurrences")}}const bc=/^(SU|MO|TU|WE|TH|FR|SA)$/,Yc=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,b0={SU:_.SUNDAY,MO:_.MONDAY,TU:_.TUESDAY,WE:_.WEDNESDAY,TH:_.THURSDAY,FR:_.FRIDAY,SA:_.SATURDAY},Mc=Object.fromEntries(Object.entries(b0).map(e=>e.reverse())),ns=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Ut{static fromString(r){let i=this._stringToData(r,!1);return new Ut(i)}static fromData(r){return new Ut(r)}static _stringToData(r,i){let n=Object.create(null),a=r.split(";"),s=a.length;for(let l=0;l7&&(a-=7),Mc[a]}constructor(r){this.wrappedJSObject=this,this.parts={},r&&typeof r=="object"&&this.fromData(r)}parts=null;interval=1;wkst=_.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(r){return new fe({rule:this,dtstart:r})}clone(){return new Ut(this.toJSON())}isFinite(){return!!(this.count||this.until)}isByCount(){return!!(this.count&&!this.until)}addComponent(r,i){let n=r.toUpperCase();n in this.parts?this.parts[n].push(i):this.parts[n]=[i]}setComponent(r,i){this.parts[r.toUpperCase()]=i.slice()}getComponent(r){let i=r.toUpperCase();return i in this.parts?this.parts[i].slice():[]}getNextOccurrence(r,i){let n=this.iterator(r),a;do a=n.next();while(a&&a.compare(i)<=0);return a&&i.zone&&(a.zone=i.zone),a}fromData(r){for(let i in r){let n=i.toUpperCase();n in xn?Array.isArray(r[i])?this.parts[n]=r[i]:this.parts[n]=[r[i]]:this[i]=r[i]}this.interval&&typeof this.interval!="number"&&Cn.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=Ut.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof _)&&(this.until=_.fromString(this.until))}toJSON(){let r=Object.create(null);r.freq=this.freq,this.count&&(r.count=this.count),this.interval>1&&(r.interval=this.interval);for(let[i,n]of Object.entries(this.parts))Array.isArray(n)&&n.length==1?r[i.toLowerCase()]=n[0]:r[i.toLowerCase()]=or(n);return this.until&&(r.until=this.until.toString()),"wkst"in this&&this.wkst!==_.DEFAULT_WEEK_START&&(r.wkst=Ut.numericDayToIcalDay(this.wkst)),r}toString(){let r="FREQ="+this.freq;this.count&&(r+=";COUNT="+this.count),this.interval>1&&(r+=";INTERVAL="+this.interval);for(let[i,n]of Object.entries(this.parts))r+=";"+i+"="+n;return this.until&&(r+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==_.DEFAULT_WEEK_START&&(r+=";WKST="+Ut.numericDayToIcalDay(this.wkst)),r}}function we(e,r,i,n){let a=n;if(n[0]==="+"&&(a=n.slice(1)),a=Ht(a),r!==void 0&&n '+r);if(i!==void 0&&n>i)throw new Error(e+': invalid value "'+n+'" must be < '+r);return a}const Cn={FREQ:function(e,r,i){if(ns.indexOf(e)!==-1)r.freq=e;else throw new Error('invalid frequency "'+e+'" expected: "'+ns.join(", ")+'"')},COUNT:function(e,r,i){r.count=Ht(e)},INTERVAL:function(e,r,i){r.interval=Ht(e),r.interval<1&&(r.interval=1)},UNTIL:function(e,r,i){e.length>10?r.until=Bt.icalendar.value["date-time"].fromICAL(e):r.until=Bt.icalendar.value.date.fromICAL(e),i||(r.until=_.fromString(r.until))},WKST:function(e,r,i){if(bc.test(e))r.wkst=Ut.icalDayToNumericDay(e);else throw new Error('invalid WKST value "'+e+'"')}},xn={BYSECOND:we.bind(void 0,"BYSECOND",0,60),BYMINUTE:we.bind(void 0,"BYMINUTE",0,59),BYHOUR:we.bind(void 0,"BYHOUR",0,23),BYDAY:function(e){if(Yc.test(e))return e;throw new Error('invalid BYDAY value "'+e+'"')},BYMONTHDAY:we.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:we.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:we.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:we.bind(void 0,"BYMONTH",1,12),BYSETPOS:we.bind(void 0,"BYSETPOS",-366,366)};class ke{static fromString(r,i){let n=r.split("/");if(n.length!==2)throw new Error('Invalid string value: "'+r+'" must contain a "/" char.');let a={start:_.fromDateTimeString(n[0],i)},s=n[1];return jt.isValueString(s)?a.duration=jt.fromString(s):a.end=_.fromDateTimeString(s,i),new ke(a)}static fromData(r){return new ke(r)}static fromJSON(r,i,n){function a(s,l){return n?_.fromString(s,l):_.fromDateTimeString(s,l)}return jt.isValueString(r[1])?ke.fromData({start:a(r[0],i),duration:jt.fromString(r[1])}):ke.fromData({start:a(r[0],i),end:a(r[1],i)})}constructor(r){if(this.wrappedJSObject=this,r&&"start"in r){if(r.start&&!(r.start instanceof _))throw new TypeError(".start must be an instance of ICAL.Time");this.start=r.start}if(r&&r.end&&r.duration)throw new Error("cannot accept both end and duration");if(r&&"end"in r){if(r.end&&!(r.end instanceof _))throw new TypeError(".end must be an instance of ICAL.Time");this.end=r.end}if(r&&"duration"in r){if(r.duration&&!(r.duration instanceof jt))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=r.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return ke.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})}getDuration(){return this.duration?this.duration:this.end.subtractDate(this.start)}getEnd(){if(this.end)return this.end;{let r=this.start.clone();return r.addDuration(this.duration),r}}toString(){return this.start+"/"+(this.end||this.duration)}toJSON(){return[this.start.toString(),(this.end||this.duration).toString()]}toICALString(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}}const wc=/\\\\|\\;|\\,|\\[Nn]/g,_c=/\\|;|,|\n/g,as=/\\\\|\\,|\\[Nn]/g,ss=/\\|,|\n/g;function na(e,r){return{matches:/.*/,fromICAL:function(i,n){return Bc(i,e,n)},toICAL:function(i,n){let a=r;return n&&(a=new RegExp(a.source+"|"+n,a.flags)),i.replace(a,function(s){switch(s){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case` `:return"\\n";default:return s}})}}}const lt={defaultType:"text"},Kr={defaultType:"text",multiValue:","},Zi={defaultType:"text",structuredValue:";"},Ti={defaultType:"integer"},di={defaultType:"date-time",allowedTypes:["date-time","date"]},hi={defaultType:"date-time"},$t={defaultType:"uri"},os={defaultType:"utc-offset"},ls={defaultType:"recur"},us={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function Zc(e){switch(e){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return` `;default:return e}}function Bc(e,r,i){return e.indexOf("\\")===-1?e:(i&&(r=new RegExp(r.source+"|\\\\"+i,r.flags)),e.replace(r,Zc))}let ba={categories:Kr,url:$t,version:lt,uid:lt},Ya={boolean:{values:["TRUE","FALSE"],fromICAL:function(e){switch(e){case"TRUE":return!0;case"FALSE":return!1;default:return!1}},toICAL:function(e){return e?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(e){let r=parseFloat(e);return Wr(r)?0:r},toICAL:function(e){return String(e)}},integer:{fromICAL:function(e){let r=parseInt(e);return Wr(r)?0:r},toICAL:function(e){return String(e)}},"utc-offset":{toICAL:function(e){return e.length<7?e.slice(0,3)+e.slice(4,6):e.slice(0,3)+e.slice(4,6)+e.slice(7,9)},fromICAL:function(e){return e.length<6?e.slice(0,3)+":"+e.slice(3,5):e.slice(0,3)+":"+e.slice(3,5)+":"+e.slice(5,7)},decorate:function(e){return oe.fromString(e)},undecorate:function(e){return e.toString()}}},Cc={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}};const Gt=ur(Ya,{text:na(wc,_c),uri:{},binary:{decorate:function(e){return En.fromString(e)},undecorate:function(e){return e.toString()}},"cal-address":{},date:{decorate:function(e,r){return _.fromDateString(e,r)},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)},toICAL:function(e){let r=e.length;return r==10?e.slice(0,4)+e.slice(5,7)+e.slice(8,10):r>=19?Gt["date-time"].toICAL(e):e}},"date-time":{fromICAL:function(e){{let r=e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+"T"+e.slice(9,11)+":"+e.slice(11,13)+":"+e.slice(13,15);return e[15]&&e[15]==="Z"&&(r+="Z"),r}},toICAL:function(e){if(e.length>=19){let r=e.slice(0,4)+e.slice(5,7)+e.slice(8,13)+e.slice(14,16)+e.slice(17,19);return e[19]&&e[19]==="Z"&&(r+="Z"),r}else return e},decorate:function(e,r){return _.fromDateTimeString(e,r)},undecorate:function(e){return e.toString()}},duration:{decorate:function(e){return jt.fromString(e)},undecorate:function(e){return e.toString()}},period:{fromICAL:function(e){let r=e.split("/");return r[0]=Gt["date-time"].fromICAL(r[0]),jt.isValueString(r[1])||(r[1]=Gt["date-time"].fromICAL(r[1])),r},toICAL:function(e){return e=e.slice(),e[0]=Gt["date-time"].toICAL(e[0]),jt.isValueString(e[1])||(e[1]=Gt["date-time"].toICAL(e[1])),e.join("/")},decorate:function(e,r){return ke.fromJSON(e,r,!1)},undecorate:function(e){return e.toJSON()}},recur:{fromICAL:function(e){return Ut._stringToData(e,!0)},toICAL:function(e){let r="";for(let[i,n]of Object.entries(e))i=="until"?n.length>10?n=Gt["date-time"].toICAL(n):n=Gt.date.toICAL(n):i=="wkst"?typeof n=="number"&&(n=Ut.numericDayToIcalDay(n)):Array.isArray(n)&&(n=n.join(",")),r+=i.toUpperCase()+"="+n+";";return r.slice(0,Math.max(0,r.length-1))},decorate:function(e){return Ut.fromData(e)},undecorate:function(e){return e.toJSON()}},time:{fromICAL:function(e){if(e.length<6)return e;let r=e.slice(0,2)+":"+e.slice(2,4)+":"+e.slice(4,6);return e[6]==="Z"&&(r+="Z"),r},toICAL:function(e){if(e.length<8)return e;let r=e.slice(0,2)+e.slice(3,5)+e.slice(6,8);return e[8]==="Z"&&(r+="Z"),r}}});let xc=ur(ba,{action:lt,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:lt,class:lt,comment:lt,completed:hi,contact:lt,created:hi,description:lt,dtend:di,dtstamp:hi,dtstart:di,due:di,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:ls,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":hi,location:lt,method:lt,organizer:{defaultType:"cal-address"},"percent-complete":Ti,priority:Ti,prodid:lt,"related-to":lt,repeat:Ti,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(e){return e.indexOf("/")!==-1?"period":e.indexOf("T")===-1?"date":"date-time"}},"recurrence-id":di,resources:Kr,"request-status":Zi,rrule:ls,sequence:Ti,status:lt,summary:lt,transp:lt,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:os,tzoffsetto:os,tzurl:$t,tzid:lt,tzname:lt});const ee=ur(Ya,{text:na(as,ss),uri:na(as,ss),date:{decorate:function(e){return je.fromDateAndOrTimeString(e,"date")},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.length==8?Gt.date.fromICAL(e):e[0]=="-"&&e.length==6?e.slice(0,4)+"-"+e.slice(4):e},toICAL:function(e){return e.length==10?Gt.date.toICAL(e):e[0]=="-"&&e.length==7?e.slice(0,4)+e.slice(5):e}},time:{decorate:function(e){return je.fromDateAndOrTimeString("T"+e,"time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=ee.time._splitZone(e,!0),i=r[0],n=r[1];return n.length==6?n=n.slice(0,2)+":"+n.slice(2,4)+":"+n.slice(4,6):n.length==4&&n[0]!="-"?n=n.slice(0,2)+":"+n.slice(2,4):n.length==5&&(n=n.slice(0,3)+":"+n.slice(3,5)),i.length==5&&(i[0]=="-"||i[0]=="+")&&(i=i.slice(0,3)+":"+i.slice(3)),n+i},toICAL:function(e){let r=ee.time._splitZone(e),i=r[0],n=r[1];return n.length==8?n=n.slice(0,2)+n.slice(3,5)+n.slice(6,8):n.length==5&&n[0]!="-"?n=n.slice(0,2)+n.slice(3,5):n.length==6&&(n=n.slice(0,3)+n.slice(4,6)),i.length==6&&(i[0]=="-"||i[0]=="+")&&(i=i.slice(0,3)+i.slice(4)),n+i},_splitZone:function(e,r){let i=e.length-1,n=e.length-(r?5:6),a=e[n],s,l;return e[i]=="Z"?(s=e[i],l=e.slice(0,Math.max(0,i))):e.length>6&&(a=="-"||a=="+")?(s=e.slice(n),l=e.slice(0,Math.max(0,n))):(s="",l=e),[s,l]}},"date-time":{decorate:function(e){return je.fromDateAndOrTimeString(e,"date-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){return ee["date-and-or-time"].fromICAL(e)},toICAL:function(e){return ee["date-and-or-time"].toICAL(e)}},"date-and-or-time":{decorate:function(e){return je.fromDateAndOrTimeString(e,"date-and-or-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=e.split("T");return(r[0]?ee.date.fromICAL(r[0]):"")+(r[1]?"T"+ee.time.fromICAL(r[1]):"")},toICAL:function(e){let r=e.split("T");return ee.date.toICAL(r[0])+(r[1]?"T"+ee.time.toICAL(r[1]):"")}},timestamp:Gt["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(e){return Array.from(e).filter(function(r){return r==="\\"?void 0:r}).join("")},toICAL:function(e){return Array.from(e).map(function(r){return r===","||r===";"?"\\"+r:r}).join("")}}});let Lc={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},Ic=ur(ba,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:us,bday:us,caladruri:$t,caluri:$t,clientpidmap:Zi,email:lt,fburl:$t,fn:lt,gender:Zi,geo:$t,impp:$t,key:$t,kind:lt,lang:{defaultType:"language-tag"},logo:$t,member:$t,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Kr,note:lt,org:{defaultType:"text",structuredValue:";"},photo:$t,related:$t,rev:{defaultType:"timestamp"},role:lt,sound:$t,source:$t,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:lt,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:lt}),kc=ur(Ya,{binary:Gt.binary,date:ee.date,"date-time":ee["date-time"],"phone-number":ee["phone-number"],uri:Gt.uri,text:Gt.text,time:Gt.time,vcard:Gt.text,"utc-offset":{toICAL:function(e){return e.slice(0,7)},fromICAL:function(e){return e.slice(0,7)},decorate:function(e){return oe.fromString(e)},undecorate:function(e){return e.toString()}}}),Hc={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},Gc=ur(ba,{fn:lt,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:Kr,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:lt,tel:{defaultType:"phone-number"},email:lt,mailer:lt,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:lt,role:lt,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:Zi,note:Kr,prodid:lt,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},"sort-string":lt,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:lt,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),me={value:Gt,param:Cc,property:xc,propertyGroups:!1},cs={value:ee,param:Lc,property:Ic,propertyGroups:!0},Ts={value:kc,param:Hc,property:Gc,propertyGroups:!0};const Oi={strict:!0,defaultSet:me,defaultType:"unknown",components:{vcard:cs,vcard3:Ts,vevent:me,vtodo:me,vjournal:me,valarm:me,vtimezone:me,daylight:me,standard:me},icalendar:me,vcard:cs,vcard3:Ts,getDesignSet:function(e){return e&&e in Oi.components?Oi.components[e]:Oi.defaultSet}};var Bt=Oi;const vi=`\r `,ds="unknown",Uc={'"':"^'","\n":"^n","^":"^^"};function mt(e){typeof e[0]=="string"&&(e=[e]);let r=0,i=e.length,n="";for(;r0&&!(e[1][0][0]==="version"&&e[1][0][3]==="4.0")&&(u="vcard3"),r=r||Bt.getDesignSet(u);s0&&typeof r[0]=="object"&&"icaltype"in r[0]&&this.resetType(r[0].icaltype),this.isDecorated)for(;n=0;l--)(!n||s[l][Ze]===n)&&this._removeObjectByIndex(r,a,l)}addSubcomponent(r){this._components||(this._components=[],this._hydratedComponentCount=0),r.parent&&r.parent.removeSubcomponent(r);let i=this.jCal[Be].push(r.jCal);return this._components[i-1]=r,this._hydratedComponentCount++,r.parent=this,r}removeSubcomponent(r){let i=this._removeObject(Be,"_components",r);return i&&this._hydratedComponentCount--,i}removeAllSubcomponents(r){let i=this._removeAllObjects(Be,"_components",r);return this._hydratedComponentCount=0,i}addProperty(r){if(!(r instanceof ir))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),r.parent&&r.parent.removeProperty(r);let i=this.jCal[Se].push(r.jCal);return this._properties[i-1]=r,this._hydratedPropertyCount++,r.parent=this,r}addPropertyWithValue(r,i){let n=new ir(r);return n.setValue(i),this.addProperty(n),n}updatePropertyWithValue(r,i){let n=this.getFirstProperty(r);return n?n.setValue(i):n=this.addPropertyWithValue(r,i),n}removeProperty(r){let i=this._removeObject(Se,"_properties",r);return i&&this._hydratedPropertyCount--,i}removeAllProperties(r){let i=this._removeAllObjects(Se,"_properties",r);return this._hydratedPropertyCount=0,i}toJSON(){return this.jCal}toString(){return mt.component(this.jCal,this._designSet)}getTimeZoneByID(r){if(this.parent)return this.parent.getTimeZoneByID(r);if(!this._timezoneCache)return null;if(this._timezoneCache.has(r))return this._timezoneCache.get(r);const i=this.getAllSubcomponents("vtimezone");for(const n of i)if(n.getFirstProperty("tzid").getFirstValue()===r){const a=new ft({component:n,tzid:r});return this._timezoneCache.set(r,a),a}return null}}class Y0{constructor(r){this.ruleDates=[],this.exDates=[],this.fromData(r)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(r){let i=ye(r.dtstart,_);if(i)this.dtstart=i;else throw new Error(".dtstart (ICAL.Time) must be given");if(r.component)this._init(r.component);else{if(this.last=ye(r.last,_)||i.clone(),!r.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=r.ruleIterators.map(function(n){return ye(n,fe)}),this.ruleDateInc=r.ruleDateInc,this.exDateInc=r.exDateInc,r.ruleDates&&(this.ruleDates=r.ruleDates.map(n=>ye(n,_)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.exDates&&(this.exDates=r.exDates.map(n=>ye(n,_)),this.exDate=this.exDates[this.exDateInc]),typeof r.complete<"u"&&(this.complete=r.complete)}}next(){let r,i,n,a=500,s=0;for(;;){if(s++>a)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(i=this.ruleDate,r=this._nextRecurrenceIter(this.last),!i&&!r){this.complete=!0;break}if((!i||r&&i.compare(r.last)>0)&&(i=r.last.clone(),r.next()),this.ruleDate===i&&this._nextRuleDay(),this.last=i,this.exDate&&(n=this.exDate.compare(this.last),n<0&&this._nextExDay(),n===0)){this._nextExDay();continue}return this.last}}toJSON(){function r(n){return n.toJSON()}let i=Object.create(null);return i.ruleIterators=this.ruleIterators.map(r),this.ruleDates&&(i.ruleDates=this.ruleDates.map(r)),this.exDates&&(i.exDates=this.exDates.map(r)),i.ruleDateInc=this.ruleDateInc,i.exDateInc=this.exDateInc,i.last=this.last.toJSON(),i.dtstart=this.dtstart.toJSON(),i.complete=this.complete,i}_extractDates(r,i){let n=[],a=r.getAllProperties(i);for(let s=0,l=a.length;sT.compare(c));n.splice(o,0,u)}return n}_init(r){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!r.hasProperty("rdate")&&!r.hasProperty("rrule")&&!r.hasProperty("recurrence-id")){this.ruleDate=this.last.clone(),this.complete=!0;return}if(r.hasProperty("rdate")&&(this.ruleDates=this._extractDates(r,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=rr(this.ruleDates,this.last,(i,n)=>i.compare(n)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.hasProperty("rrule")){let i=r.getAllProperties("rrule"),n=0,a=i.length,s,l;for(;ni.compare(n)),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let r=this.ruleIterators;if(r.length===0)return null;let i=r.length,n,a,s=0,l;for(;s0)&&(l=n)}return l}}class qr{constructor(r,i){r instanceof qt||(i=r,r=null),r?this.component=r:this.component=new qt("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],i&&i.strictExceptions&&(this.strictExceptions=i.strictExceptions),i&&i.exceptions?i.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(n){n.hasProperty("recurrence-id")&&this.relateException(n)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(r){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(r instanceof qt&&(r=new qr(r)),this.strictExceptions&&r.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let i=r.recurrenceId.toString();if(this.exceptions[i]=r,r.modifiesFuture()){let n=[r.recurrenceId.toUnixTime(),i],a=rr(this.rangeExceptions,n,fs);this.rangeExceptions.splice(a,0,n)}}modifiesFuture(){return this.component.hasProperty("recurrence-id")?this.component.getFirstProperty("recurrence-id").getParameter("range")===qr.THISANDFUTURE:!1}findRangeException(r){if(!this.rangeExceptions.length)return null;let i=r.toUnixTime(),n=rr(this.rangeExceptions,[i],fs);if(n-=1,n<0)return null;let a=this.rangeExceptions[n];return ir[0]?1:r[0]>e[0]?-1:0}class jc{constructor(r){typeof r>"u"&&(r={});for(let[i,n]of Object.entries(r))this[i]=n}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(r){};ontimezone=function(r){};onevent=function(r){};process(r){typeof r=="string"&&(r=ut(r)),r instanceof qt||(r=new qt(r));let i=r.getAllSubcomponents(),n=0,a=i.length,s;for(;nn!==r.timezoneId?!0:(Yt.TimezoneService.register(r.toICALTimezone(),i),!1))}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${wr.version} of the timezone database`);for(const r in wr.zones){const i=["BEGIN:VTIMEZONE","TZID:"+r,...wr.zones[r].ics,"END:VTIMEZONE"].join(`\r `);this.registerTimezoneFromICS(r,i)}for(const r in wr.aliases)this.registerAlias(r,wr.aliases[r].aliasTo)}registerTimezoneFromICS(r,i){const n=new He(r,i);this.registerTimezone(n)}registerAlias(r,i){this._aliases.set(r,i);const n=this.getTimezoneForId(i);if(!n){this._pendingAliases.push([r,i]);return}Yt.TimezoneService.register(n.toICALTimezone(),r)}unregisterTimezones(r){this._timezones.delete(r),Yt.TimezoneService.remove(r)}unregisterAlias(r){this._aliases.delete(r),this._pendingAliases=this._pendingAliases.filter(([i])=>i!==r),Yt.TimezoneService.remove(r)}clearAllTimezones(){this._aliases=new Map,this._pendingAliases=[],this._timezones=new Map,Yt.TimezoneService.reset(),Ar.registerTimezone(He.utc),Ar.registerTimezone(He.floating),Ar.registerAlias("GMT",He.utc.timezoneId),Ar.registerAlias("Z",He.utc.timezoneId)}}const Ar=new $c;Ar.clearAllTimezones();function Qc(){return Ar}var M0={exports:{}};(function(e,r){(function(i,n){e.exports=n()})(typeof self<"u"?self:Ie,function(){return(()=>{var i={646:l=>{l.exports=function(u){if(Array.isArray(u)){for(var o=0,T=new Array(u.length);o{l.exports=function(u,o,T){return o in u?Object.defineProperty(u,o,{value:T,enumerable:!0,configurable:!0,writable:!0}):u[o]=T,u}},860:l=>{l.exports=function(u){if(Symbol.iterator in Object(u)||Object.prototype.toString.call(u)==="[object Arguments]")return Array.from(u)}},206:l=>{l.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(l,u,o)=>{var T=o(646),c=o(860),d=o(206);l.exports=function(h){return T(h)||c(h)||d()}},8:l=>{function u(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l.exports=u=function(T){return typeof T}:l.exports=u=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(o)}l.exports=u}},n={};function a(l){var u=n[l];if(u!==void 0)return u.exports;var o=n[l]={exports:{}};return i[l](o,o.exports,a),o.exports}a.n=l=>{var u=l&&l.__esModule?()=>l.default:()=>l;return a.d(u,{a:u}),u},a.d=(l,u)=>{for(var o in u)a.o(u,o)&&!a.o(l,o)&&Object.defineProperty(l,o,{enumerable:!0,get:u[o]})},a.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),a.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s={};return(()=>{a.r(s),a.d(s,{VueSelect:()=>K,default:()=>j,mixins:()=>Q});var l=a(319),u=a.n(l),o=a(8),T=a.n(o),c=a(713),d=a.n(c);const h={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(A){var y=this;this.autoscroll&&A&&this.$nextTick(function(){return y.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var A,y=((A=this.$refs.dropdownMenu)===null||A===void 0?void 0:A.children[this.typeAheadPointer])||!1;if(y){var b=this.getDropdownViewport(),Z=y.getBoundingClientRect(),V=Z.top,x=Z.bottom,X=Z.height;if(Vb.bottom)return this.$refs.dropdownMenu.scrollTop=y.offsetTop-(b.height-X)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},f={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var A=0;A=0;A--)if(this.selectable(this.filteredOptions[A])){this.typeAheadPointer=A;break}},typeAheadDown:function(){for(var A=this.typeAheadPointer+1;A0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=A??!this.mutableLoading}}};function E(A,y,b,Z,V,x,X,tt){var pt,nt=typeof A=="function"?A.options:A;return y&&(nt.render=y,nt.staticRenderFns=b,nt._compiled=!0),{exports:A,options:nt}}const R={Deselect:E({},function(){var A=this.$createElement,y=this._self._c||A;return y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[y("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:E({},function(){var A=this.$createElement,y=this._self._c||A;return y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[y("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},v={inserted:function(A,y,b){var Z=b.context;if(Z.appendToBody){document.body.appendChild(A);var V=Z.$refs.toggle.getBoundingClientRect(),x=V.height,X=V.top,tt=V.left,pt=V.width,nt=window.scrollX||window.pageXOffset,ct=window.scrollY||window.pageYOffset;A.unbindPosition=Z.calculatePosition(A,Z,{width:pt+"px",left:nt+tt+"px",top:ct+X+x+"px"})}},unbind:function(A,y,b){b.context.appendToBody&&(A.unbindPosition&&typeof A.unbindPosition=="function"&&A.unbindPosition(),A.parentNode&&A.parentNode.removeChild(A))}},N=function(A){var y={};return Object.keys(A).sort().forEach(function(b){y[b]=A[b]}),JSON.stringify(y)};var M=0;const z=function(){return++M};function H(A,y){var b=Object.keys(A);if(Object.getOwnPropertySymbols){var Z=Object.getOwnPropertySymbols(A);y&&(Z=Z.filter(function(V){return Object.getOwnPropertyDescriptor(A,V).enumerable})),b.push.apply(b,Z)}return b}function C(A){for(var y=1;y-1}},filter:{type:Function,default:function(A,y){var b=this;return A.filter(function(Z){var V=b.getOptionLabel(Z);return typeof V=="number"&&(V=V.toString()),b.filterBy(Z,V,y)})}},createOption:{type:Function,default:function(A){return T()(this.optionList[0])==="object"?d()({},this.label,A):A}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(A){return["function","boolean"].includes(T()(A))}},clearSearchOnBlur:{type:Function,default:function(A){var y=A.clearSearchOnSelect,b=A.multiple;return y&&!b}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(A,y){return A}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(A,y,b){var Z=b.width,V=b.top,x=b.left;A.style.top=V,A.style.left=x,A.style.width=Z}},dropdownShouldOpen:{type:Function,default:function(A){var y=A.noDrop,b=A.open,Z=A.mutableLoading;return!y&&b&&!Z}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return z()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var A=this.value;return this.isTrackingValues&&(A=this.$data._value),A!=null&&A!==""?[].concat(A):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var A=this,y={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:C({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return A.isComposing=!0},compositionend:function(){return A.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(b){return A.search=b.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:y,listFooter:y,header:C({},y,{deselect:this.deselect}),footer:C({},y,{deselect:this.deselect})}},childComponents:function(){return C({},R,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var A=this,y=function(x){return A.limit!==null?x.slice(0,A.limit):x},b=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return y(b);var Z=this.search.length?this.filter(b,this.search,this):b;if(this.taggable&&this.search.length)try{var V=this.createOption(this.search);this.optionExists(V)||Z.unshift(V)}catch{}return y(Z)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(A,y){var b=this;!this.taggable&&(typeof b.resetOnOptionsChange=="function"?b.resetOnOptionsChange(A,y,b.selectedValue):b.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(A){this.isTrackingValues&&this.setInternalValueFromOptions(A)}},multiple:function(){this.clearSelection()},open:function(A){this.$emit(A?"open":"close")},search:function(A){A.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(A){var y=this;Array.isArray(A)?this.$data._value=A.map(function(b){return y.findOptionFromReducedValue(b)}):this.$data._value=this.findOptionFromReducedValue(A)},select:function(A){this.$emit("option:selecting",A),this.isOptionSelected(A)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(A):(this.taggable&&!this.optionExists(A)&&this.$emit("option:created",A),this.multiple&&(A=this.selectedValue.concat(A)),this.updateValue(A),this.$emit("option:selected",A)),this.onAfterSelect(A)},deselect:function(A){var y=this;this.$emit("option:deselecting",A),this.updateValue(this.selectedValue.filter(function(b){return!y.optionComparator(b,A)})),this.$emit("option:deselected",A)},keyboardDeselect:function(A,y){var b,Z;this.deselect(A);var V=(b=this.$refs.deselectButtons)===null||b===void 0?void 0:b[y+1],x=(Z=this.$refs.deselectButtons)===null||Z===void 0?void 0:Z[y-1],X=V??x;X?X.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(A){var y=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return y.$refs.search.focus()})},updateValue:function(A){var y=this;this.value===void 0&&(this.$data._value=A),A!==null&&(A=Array.isArray(A)?A.map(function(b){return y.reduce(b)}):this.reduce(A)),this.$emit("input",A)},toggleDropdown:function(A){var y=A.target!==this.searchEl;y&&A.preventDefault();var b=[].concat(u()(this.$refs.deselectButtons||[]),u()([this.$refs.clearButton]));this.searchEl===void 0||b.filter(Boolean).some(function(Z){return Z.contains(A.target)||Z===A.target})?A.preventDefault():this.open&&y?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(A){var y=this;return this.selectedValue.some(function(b){return y.optionComparator(b,A)})},isOptionDeselectable:function(A){return this.isOptionSelected(A)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(A){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&A===this.typeAheadPointer},optionComparator:function(A,y){return this.getOptionKey(A)===this.getOptionKey(y)},findOptionFromReducedValue:function(A){var y=this,b=[].concat(u()(this.options),u()(this.pushedTags)).filter(function(Z){return JSON.stringify(y.reduce(Z))===JSON.stringify(A)});return b.length===1?b[0]:b.find(function(Z){return y.optionComparator(Z,y.$data._value)})||A},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var A=null;this.multiple&&(A=u()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(A)}},optionExists:function(A){var y=this;return this.optionList.some(function(b){return y.optionComparator(b,A)})},optionAriaSelected:function(A){return this.selectable(A)?String(this.isOptionSelected(A)):null},normalizeOptionForSlot:function(A){return T()(A)==="object"?A:d()({},this.label,A)},pushTag:function(A){this.pushedTags.push(A)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var A=this.clearSearchOnSelect,y=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:A,multiple:y})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(A,y){this.isKeyboardNavigation=!1,this.selectable(A)&&(this.typeAheadPointer=y)},onSearchKeyDown:function(A){var y=this,b=function(x){if(x.preventDefault(),y.open)return!y.isComposing&&y.typeAheadSelect();y.open=!0},Z={8:function(x){return y.maybeDeleteValue()},9:function(x){return y.onTab()},27:function(x){return y.onEscape()},38:function(x){if(x.preventDefault(),y.isKeyboardNavigation=!0,y.open)return y.typeAheadUp();y.open=!0},40:function(x){if(x.preventDefault(),y.isKeyboardNavigation=!0,y.open)return y.typeAheadDown();y.open=!0}};this.selectOnKeyCodes.forEach(function(x){return Z[x]=b});var V=this.mapKeydown(Z,this);if(typeof V[A.keyCode]=="function")return V[A.keyCode](A)},onSearchKeyPress:function(A){this.open||A.keyCode!==32||(A.preventDefault(),this.open=!0)}}},function(){var A=this,y=A.$createElement,b=A._self._c||y;return b("div",{staticClass:"v-select",class:A.stateClasses,attrs:{id:"v-select-"+A.uid,dir:A.dir}},[A._t("header",null,null,A.scope.header),A._v(" "),b("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[b("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:A.toggleDropdown}},[A._l(A.selectedValue,function(Z,V){return A._t("selected-option-container",[b("span",{key:A.getOptionKey(Z),staticClass:"vs__selected"},[A._t("selected-option",[A._v(` `+A._s(A.getOptionLabel(Z))+` `)],null,A.normalizeOptionForSlot(Z)),A._v(" "),A.multiple?b("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:A.disabled,type:"button",title:A.ariaLabelDeselectOption(A.getOptionLabel(Z)),"aria-label":A.ariaLabelDeselectOption(A.getOptionLabel(Z))},on:{mousedown:function(x){return x.stopPropagation(),A.deselect(Z)},keydown:function(x){return!x.type.indexOf("key")&&A._k(x.keyCode,"enter",13,x.key,"Enter")?null:A.keyboardDeselect(Z,V)}}},[b(A.childComponents.Deselect,{tag:"component"})],1):A._e()],2)],{option:A.normalizeOptionForSlot(Z),deselect:A.deselect,multiple:A.multiple,disabled:A.disabled})}),A._v(" "),A._t("search",[b("input",A._g(A._b({staticClass:"vs__search"},"input",A.scope.search.attributes,!1),A.scope.search.events))],null,A.scope.search)],2),A._v(" "),b("div",{ref:"actions",staticClass:"vs__actions"},[b("button",{directives:[{name:"show",rawName:"v-show",value:A.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:A.disabled,type:"button",title:A.ariaLabelClearSelected,"aria-label":A.ariaLabelClearSelected},on:{click:A.clearSelection}},[b(A.childComponents.Deselect,{tag:"component"})],1),A._v(" "),A.noDrop?A._e():b("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+A.uid+"__listbox","aria-controls":"vs-"+A.uid+"__listbox","aria-expanded":A.dropdownOpen.toString()},on:{mousedown:A.toggleDropdown}},[A._t("open-indicator",[b(A.childComponents.OpenIndicator,A._b({tag:"component"},"component",A.scope.openIndicator.attributes,!1))],null,A.scope.openIndicator)],2),A._v(" "),A._t("spinner",[b("div",{directives:[{name:"show",rawName:"v-show",value:A.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[A._v("Loading...")])],null,A.scope.spinner)],2)]),A._v(" "),b("transition",{attrs:{name:A.transition}},[A.dropdownOpen?b("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+A.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+A.uid+"__listbox",role:"listbox","aria-label":A.ariaLabelListbox,"aria-multiselectable":A.multiple,tabindex:"-1"},on:{mousedown:function(Z){return Z.preventDefault(),A.onMousedown(Z)},mouseup:A.onMouseUp}},[A._t("list-header",null,null,A.scope.listHeader),A._v(" "),A._l(A.filteredOptions,function(Z,V){return b("li",{key:A.getOptionKey(Z),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":A.isOptionDeselectable(Z)&&V===A.typeAheadPointer,"vs__dropdown-option--selected":A.isOptionSelected(Z),"vs__dropdown-option--highlight":V===A.typeAheadPointer,"vs__dropdown-option--kb-focus":A.hasKeyboardFocusBorder(V),"vs__dropdown-option--disabled":!A.selectable(Z)},attrs:{id:"vs-"+A.uid+"__option-"+V,role:"option","aria-selected":A.optionAriaSelected(Z)},on:{mousemove:function(x){return A.onMouseMove(Z,V)},click:function(x){x.preventDefault(),x.stopPropagation(),A.selectable(Z)&&A.select(Z)}}},[A._t("option",[A._v(` `+A._s(A.getOptionLabel(Z))+` `)],null,A.normalizeOptionForSlot(Z))],2)}),A._v(" "),A.filteredOptions.length===0?b("li",{staticClass:"vs__no-options"},[A._t("no-options",[A._v(` Sorry, no matching options. `)],null,A.scope.noOptions)],2):A._e(),A._v(" "),A._t("list-footer",null,null,A.scope.listFooter)],2):b("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+A.uid+"__listbox",role:"listbox","aria-label":A.ariaLabelListbox}})]),A._v(" "),A._t("footer",null,null,A.scope.footer)],2)},[]).exports,Q={ajax:D,pointer:f,pointerScroll:h},j=K})(),s})()})})(M0);var Ke=M0.exports;const Bi=Math.min,nr=Math.max,Ci=Math.round,Ai=Math.floor,Ae=e=>({x:e,y:e}),Wc={left:"right",right:"left",bottom:"top",top:"bottom"},Kc={start:"end",end:"start"};function ps(e,r,i){return nr(e,Bi(r,i))}function Fr(e,r){return typeof e=="function"?e(r):e}function $e(e){return e.split("-")[0]}function Dn(e){return e.split("-")[1]}function Ma(e){return e==="x"?"y":"x"}function w0(e){return e==="y"?"height":"width"}const qc=new Set(["top","bottom"]);function be(e){return qc.has($e(e))?"y":"x"}function _0(e){return Ma(be(e))}function Xc(e,r,i){i===void 0&&(i=!1);const n=Dn(e),a=_0(e),s=w0(a);let l=a==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(l=xi(l)),[l,xi(l)]}function Jc(e){const r=xi(e);return[aa(e),r,aa(r)]}function aa(e){return e.replace(/start|end/g,r=>Kc[r])}const As=["left","right"],Es=["right","left"],tT=["top","bottom"],eT=["bottom","top"];function rT(e,r,i){switch(e){case"top":case"bottom":return i?r?Es:As:r?As:Es;case"left":case"right":return r?tT:eT;default:return[]}}function iT(e,r,i,n){const a=Dn(e);let s=rT($e(e),i==="start",n);return a&&(s=s.map(l=>l+"-"+a),r&&(s=s.concat(s.map(aa)))),s}function xi(e){return e.replace(/left|right|bottom|top/g,r=>Wc[r])}function nT(e){return{top:0,right:0,bottom:0,left:0,...e}}function aT(e){return typeof e!="number"?nT(e):{top:e,right:e,bottom:e,left:e}}function Li(e){const{x:r,y:i,width:n,height:a}=e;return{width:n,height:a,top:i,left:r,right:r+n,bottom:i+a,x:r,y:i}}function Ds(e,r,i){let{reference:n,floating:a}=e;const s=be(r),l=_0(r),u=w0(l),o=$e(r),T=s==="y",c=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,h=n[u]/2-a[u]/2;let f;switch(o){case"top":f={x:c,y:n.y-a.height};break;case"bottom":f={x:c,y:n.y+n.height};break;case"right":f={x:n.x+n.width,y:d};break;case"left":f={x:n.x-a.width,y:d};break;default:f={x:n.x,y:n.y}}switch(Dn(r)){case"start":f[l]-=h*(i&&T?-1:1);break;case"end":f[l]+=h*(i&&T?-1:1);break}return f}const sT=async(e,r,i)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:l}=i,u=s.filter(Boolean),o=await(l.isRTL==null?void 0:l.isRTL(r));let T=await l.getElementRects({reference:e,floating:r,strategy:a}),{x:c,y:d}=Ds(T,n,o),h=n,f={},D=0;for(let E=0;EV<=0)){var y,b;const V=(((y=s.flip)==null?void 0:y.index)||0)+1,x=K[V];if(x&&(!(d==="alignment"&&N!==be(x))||A.every(tt=>be(tt.placement)===N?tt.overflows[0]>0:!0)))return{data:{index:V,overflows:A},reset:{placement:x}};let X=(b=A.filter(tt=>tt.overflows[0]<=0).sort((tt,pt)=>tt.overflows[1]-pt.overflows[1])[0])==null?void 0:b.placement;if(!X)switch(f){case"bestFit":{var Z;const tt=(Z=A.filter(pt=>{if(C){const nt=be(pt.placement);return nt===N||nt==="y"}return!0}).map(pt=>[pt.placement,pt.overflows.filter(nt=>nt>0).reduce((nt,ct)=>nt+ct,0)]).sort((pt,nt)=>pt[1]-nt[1])[0])==null?void 0:Z[0];tt&&(X=tt);break}case"initialPlacement":X=u;break}if(a!==X)return{reset:{placement:X}}}return{}}}},B0=new Set(["left","top"]);async function lT(e,r){const{placement:i,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),l=$e(i),u=Dn(i),o=be(i)==="y",T=B0.has(l)?-1:1,c=s&&o?-1:1,d=Fr(r,e);let{mainAxis:h,crossAxis:f,alignmentAxis:D}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&typeof D=="number"&&(f=u==="end"?D*-1:D),o?{x:f*c,y:h*T}:{x:h*T,y:f*c}}const uT=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var i,n;const{x:a,y:s,placement:l,middlewareData:u}=r,o=await lT(r,e);return l===((i=u.offset)==null?void 0:i.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:a+o.x,y:s+o.y,data:{...o,placement:l}}}}},cT=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:n,placement:a}=r,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:R=>{let{x:v,y:N}=R;return{x:v,y:N}}},...o}=Fr(e,r),T={x:i,y:n},c=await Z0(r,o),d=be($e(a)),h=Ma(d);let f=T[h],D=T[d];if(s){const R=h==="y"?"top":"left",v=h==="y"?"bottom":"right",N=f+c[R],M=f-c[v];f=ps(N,f,M)}if(l){const R=d==="y"?"top":"left",v=d==="y"?"bottom":"right",N=D+c[R],M=D-c[v];D=ps(N,D,M)}const E=u.fn({...r,[h]:f,[d]:D});return{...E,data:{x:E.x-i,y:E.y-n,enabled:{[h]:s,[d]:l}}}}}},TT=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:i,y:n,placement:a,rects:s,middlewareData:l}=r,{offset:u=0,mainAxis:o=!0,crossAxis:T=!0}=Fr(e,r),c={x:i,y:n},d=be(a),h=Ma(d);let f=c[h],D=c[d];const E=Fr(u,r),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(o){const M=h==="y"?"height":"width",z=s.reference[h]-s.floating[M]+R.mainAxis,H=s.reference[h]+s.reference[M]-R.mainAxis;fH&&(f=H)}if(T){var v,N;const M=h==="y"?"width":"height",z=B0.has($e(a)),H=s.reference[d]-s.floating[M]+(z&&((v=l.offset)==null?void 0:v[d])||0)+(z?0:R.crossAxis),C=s.reference[d]+s.reference[M]+(z?0:((N=l.offset)==null?void 0:N[d])||0)-(z?R.crossAxis:0);DC&&(D=C)}return{[h]:f,[d]:D}}}};function mn(){return typeof window<"u"}function Mr(e){return C0(e)?(e.nodeName||"").toLowerCase():"#document"}function Xt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function De(e){var r;return(r=(C0(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function C0(e){return mn()?e instanceof Node||e instanceof Xt(e).Node:!1}function le(e){return mn()?e instanceof Element||e instanceof Xt(e).Element:!1}function Ee(e){return mn()?e instanceof HTMLElement||e instanceof Xt(e).HTMLElement:!1}function ms(e){return!mn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Xt(e).ShadowRoot}const dT=new Set(["inline","contents"]);function oi(e){const{overflow:r,overflowX:i,overflowY:n,display:a}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+i)&&!dT.has(a)}const hT=new Set(["table","td","th"]);function fT(e){return hT.has(Mr(e))}const pT=[":popover-open",":modal"];function Sn(e){return pT.some(r=>{try{return e.matches(r)}catch{return!1}})}const AT=["transform","translate","scale","rotate","perspective"],ET=["transform","translate","scale","rotate","perspective","filter"],DT=["paint","layout","strict","content"];function wa(e){const r=_a(),i=le(e)?ue(e):e;return AT.some(n=>i[n]?i[n]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||ET.some(n=>(i.willChange||"").includes(n))||DT.some(n=>(i.contain||"").includes(n))}function mT(e){let r=Qe(e);for(;Ee(r)&&!Rr(r);){if(wa(r))return r;if(Sn(r))return null;r=Qe(r)}return null}function _a(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const ST=new Set(["html","body","#document"]);function Rr(e){return ST.has(Mr(e))}function ue(e){return Xt(e).getComputedStyle(e)}function gn(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qe(e){if(Mr(e)==="html")return e;const r=e.assignedSlot||e.parentNode||ms(e)&&e.host||De(e);return ms(r)?r.host:r}function x0(e){const r=Qe(e);return Rr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ee(r)&&oi(r)?r:x0(r)}function Xr(e,r,i){var n;r===void 0&&(r=[]),i===void 0&&(i=!0);const a=x0(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),l=Xt(a);if(s){const u=sa(l);return r.concat(l,l.visualViewport||[],oi(a)?a:[],u&&i?Xr(u):[])}return r.concat(a,Xr(a,[],i))}function sa(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function L0(e){const r=ue(e);let i=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=Ee(e),s=a?e.offsetWidth:i,l=a?e.offsetHeight:n,u=Ci(i)!==s||Ci(n)!==l;return u&&(i=s,n=l),{width:i,height:n,$:u}}function Za(e){return le(e)?e:e.contextElement}function Dr(e){const r=Za(e);if(!Ee(r))return Ae(1);const i=r.getBoundingClientRect(),{width:n,height:a,$:s}=L0(r);let l=(s?Ci(i.width):i.width)/n,u=(s?Ci(i.height):i.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const gT=Ae(0);function I0(e){const r=Xt(e);return!_a()||!r.visualViewport?gT:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function FT(e,r,i){return r===void 0&&(r=!1),!i||r&&i!==Xt(e)?!1:r}function lr(e,r,i,n){r===void 0&&(r=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),s=Za(e);let l=Ae(1);r&&(n?le(n)&&(l=Dr(n)):l=Dr(e));const u=FT(s,i,n)?I0(s):Ae(0);let o=(a.left+u.x)/l.x,T=(a.top+u.y)/l.y,c=a.width/l.x,d=a.height/l.y;if(s){const h=Xt(s),f=n&&le(n)?Xt(n):n;let D=h,E=sa(D);for(;E&&n&&f!==D;){const R=Dr(E),v=E.getBoundingClientRect(),N=ue(E),M=v.left+(E.clientLeft+parseFloat(N.paddingLeft))*R.x,z=v.top+(E.clientTop+parseFloat(N.paddingTop))*R.y;o*=R.x,T*=R.y,c*=R.x,d*=R.y,o+=M,T+=z,D=Xt(E),E=sa(D)}}return Li({width:c,height:d,x:o,y:T})}function Fn(e,r){const i=gn(e).scrollLeft;return r?r.left+i:lr(De(e)).left+i}function k0(e,r){const i=e.getBoundingClientRect(),n=i.left+r.scrollLeft-Fn(e,i),a=i.top+r.scrollTop;return{x:n,y:a}}function RT(e){let{elements:r,rect:i,offsetParent:n,strategy:a}=e;const s=a==="fixed",l=De(n),u=r?Sn(r.floating):!1;if(n===l||u&&s)return i;let o={scrollLeft:0,scrollTop:0},T=Ae(1);const c=Ae(0),d=Ee(n);if((d||!d&&!s)&&((Mr(n)!=="body"||oi(l))&&(o=gn(n)),Ee(n))){const f=lr(n);T=Dr(n),c.x=f.x+n.clientLeft,c.y=f.y+n.clientTop}const h=l&&!d&&!s?k0(l,o):Ae(0);return{width:i.width*T.x,height:i.height*T.y,x:i.x*T.x-o.scrollLeft*T.x+c.x+h.x,y:i.y*T.y-o.scrollTop*T.y+c.y+h.y}}function NT(e){return Array.from(e.getClientRects())}function OT(e){const r=De(e),i=gn(e),n=e.ownerDocument.body,a=nr(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=nr(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let l=-i.scrollLeft+Fn(e);const u=-i.scrollTop;return ue(n).direction==="rtl"&&(l+=nr(r.clientWidth,n.clientWidth)-a),{width:a,height:s,x:l,y:u}}const Ss=25;function vT(e,r){const i=Xt(e),n=De(e),a=i.visualViewport;let s=n.clientWidth,l=n.clientHeight,u=0,o=0;if(a){s=a.width,l=a.height;const c=_a();(!c||c&&r==="fixed")&&(u=a.offsetLeft,o=a.offsetTop)}const T=Fn(n);if(T<=0){const c=n.ownerDocument,d=c.body,h=getComputedStyle(d),f=c.compatMode==="CSS1Compat"&&parseFloat(h.marginLeft)+parseFloat(h.marginRight)||0,D=Math.abs(n.clientWidth-d.clientWidth-f);D<=Ss&&(s-=D)}else T<=Ss&&(s+=T);return{width:s,height:l,x:u,y:o}}const yT=new Set(["absolute","fixed"]);function bT(e,r){const i=lr(e,!0,r==="fixed"),n=i.top+e.clientTop,a=i.left+e.clientLeft,s=Ee(e)?Dr(e):Ae(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,o=a*s.x,T=n*s.y;return{width:l,height:u,x:o,y:T}}function gs(e,r,i){let n;if(r==="viewport")n=vT(e,i);else if(r==="document")n=OT(De(e));else if(le(r))n=bT(r,i);else{const a=I0(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Li(n)}function H0(e,r){const i=Qe(e);return i===r||!le(i)||Rr(i)?!1:ue(i).position==="fixed"||H0(i,r)}function YT(e,r){const i=r.get(e);if(i)return i;let n=Xr(e,[],!1).filter(u=>le(u)&&Mr(u)!=="body"),a=null;const s=ue(e).position==="fixed";let l=s?Qe(e):e;for(;le(l)&&!Rr(l);){const u=ue(l),o=wa(l);!o&&u.position==="fixed"&&(a=null),(s?!o&&!a:!o&&u.position==="static"&&a&&yT.has(a.position)||oi(l)&&!o&&H0(e,l))?n=n.filter(T=>T!==l):a=u,l=Qe(l)}return r.set(e,n),n}function MT(e){let{element:r,boundary:i,rootBoundary:n,strategy:a}=e;const s=[...i==="clippingAncestors"?Sn(r)?[]:YT(r,this._c):[].concat(i),n],l=s[0],u=s.reduce((o,T)=>{const c=gs(r,T,a);return o.top=nr(c.top,o.top),o.right=Bi(c.right,o.right),o.bottom=Bi(c.bottom,o.bottom),o.left=nr(c.left,o.left),o},gs(r,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function wT(e){const{width:r,height:i}=L0(e);return{width:r,height:i}}function _T(e,r,i){const n=Ee(r),a=De(r),s=i==="fixed",l=lr(e,!0,s,r);let u={scrollLeft:0,scrollTop:0};const o=Ae(0);function T(){o.x=Fn(a)}if(n||!n&&!s)if((Mr(r)!=="body"||oi(a))&&(u=gn(r)),n){const f=lr(r,!0,s,r);o.x=f.x+r.clientLeft,o.y=f.y+r.clientTop}else a&&T();s&&!n&&a&&T();const c=a&&!n&&!s?k0(a,u):Ae(0),d=l.left+u.scrollLeft-o.x-c.x,h=l.top+u.scrollTop-o.y-c.y;return{x:d,y:h,width:l.width,height:l.height}}function Ln(e){return ue(e).position==="static"}function Fs(e,r){if(!Ee(e)||ue(e).position==="fixed")return null;if(r)return r(e);let i=e.offsetParent;return De(e)===i&&(i=i.ownerDocument.body),i}function G0(e,r){const i=Xt(e);if(Sn(e))return i;if(!Ee(e)){let a=Qe(e);for(;a&&!Rr(a);){if(le(a)&&!Ln(a))return a;a=Qe(a)}return i}let n=Fs(e,r);for(;n&&fT(n)&&Ln(n);)n=Fs(n,r);return n&&Rr(n)&&Ln(n)&&!wa(n)?i:n||mT(e)||i}const ZT=async function(e){const r=this.getOffsetParent||G0,i=this.getDimensions,n=await i(e.floating);return{reference:_T(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function BT(e){return ue(e).direction==="rtl"}const CT={convertOffsetParentRelativeRectToViewportRelativeRect:RT,getDocumentElement:De,getClippingRect:MT,getOffsetParent:G0,getElementRects:ZT,getClientRects:NT,getDimensions:wT,getScale:Dr,isElement:le,isRTL:BT};function U0(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function xT(e,r){let i=null,n;const a=De(e);function s(){var u;clearTimeout(n),(u=i)==null||u.disconnect(),i=null}function l(u,o){u===void 0&&(u=!1),o===void 0&&(o=1),s();const T=e.getBoundingClientRect(),{left:c,top:d,width:h,height:f}=T;if(u||r(),!h||!f)return;const D=Ai(d),E=Ai(a.clientWidth-(c+h)),R=Ai(a.clientHeight-(d+f)),v=Ai(c),N={rootMargin:-D+"px "+-E+"px "+-R+"px "+-v+"px",threshold:nr(0,Bi(1,o))||1};let M=!0;function z(H){const C=H[0].intersectionRatio;if(C!==o){if(!M)return l();C?l(!1,C):n=setTimeout(()=>{l(!1,1e-7)},1e3)}C===1&&!U0(T,e.getBoundingClientRect())&&l(),M=!1}try{i=new IntersectionObserver(z,{...N,root:a.ownerDocument})}catch{i=new IntersectionObserver(z,N)}i.observe(e)}return l(!0),s}function LT(e,r,i,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:o=!1}=n,T=Za(e),c=a||s?[...T?Xr(T):[],...Xr(r)]:[];c.forEach(v=>{a&&v.addEventListener("scroll",i,{passive:!0}),s&&v.addEventListener("resize",i)});const d=T&&u?xT(T,i):null;let h=-1,f=null;l&&(f=new ResizeObserver(v=>{let[N]=v;N&&N.target===T&&f&&(f.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var M;(M=f)==null||M.observe(r)})),i()}),T&&!o&&f.observe(T),f.observe(r));let D,E=o?lr(e):null;o&&R();function R(){const v=lr(e);E&&!U0(E,v)&&i(),E=v,D=requestAnimationFrame(R)}return i(),()=>{var v;c.forEach(N=>{a&&N.removeEventListener("scroll",i),s&&N.removeEventListener("resize",i)}),d?.(),(v=f)==null||v.disconnect(),f=null,o&&cancelAnimationFrame(D)}}const IT=uT,kT=cT,HT=oT,GT=TT,UT=(e,r,i)=>{const n=new Map,a={platform:CT,...i},s={...a.platform,_c:n};return sT(e,r,{...a,platform:s})},jT={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var PT=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},zT=[],VT=St(jT,PT,zT,!1,null,null);const $T=VT.exports,j0=(e,r)=>{const i=[];let n=0,a=e.toLowerCase().indexOf(r.toLowerCase(),n),s=0;for(;a>-1&&s[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=j0(this.text,this.search),e.forEach((r,i)=>{r.end(i.start0&&r.push({start:i.start<0?0:i.start,end:i.end>this.text.length?this.text.length:i.end}),r),[]),e.sort((r,i)=>r.start-i.start),e=e.reduce((r,i)=>{if(!r.length)r.push(i);else{const n=r.length-1;r[n].end>=i.start?r[n]={start:r[n].start,end:Math.max(r[n].end,i.end)}:r.push(i)}return r},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let r=0,i=0;for(;r=this.ranges.length&&rr.highlight?e("strong",{},r.text):r.text)):e("span",{},this.text)}},WT=null,KT=null;var qT=St(QT,WT,KT,!1,null,null);const P0=qT.exports,XT={name:"NcEllipsisedOption",components:{NcHighlight:P0},props:{name:{type:String,default:""},search:{type:String,default:""}},computed:{needsTruncate(){return this.name&&this.name.length>=10},split(){return this.name.length-Math.min(Math.floor(this.name.length/2),10)},part1(){return this.needsTruncate?this.name.slice(0,this.split):this.name},part2(){return this.needsTruncate?this.name.slice(this.split):""},highlight1(){return this.search?j0(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var JT=function(){var e=this,r=e._self._c;return r("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[r("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?r("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},td=[],ed=St(XT,JT,td,!1,null,"f6384352");const rd=ed.exports,id={name:"NcActionRouter",mixins:[F0],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var nd=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(i){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[r("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?r("span",{staticClass:"action-router__longtext-wrapper"},[r("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},ad=[],sd=St(id,nd,ad,!1,null,"579c6b4d");const od=sd.exports,ld={name:"NcActionText",mixins:[F0],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var ud=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?r("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?r("span",{staticClass:"action-text__longtext-wrapper"},[r("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},cd=[],Td=St(ld,ud,cd,!1,null,"6a01d6d2");const dd=Td.exports,hd=` `,Rs=` `,fd=` `,Ns=` `;it(Xo);const z0=e=>{switch(e){case"away":return P("away");case"busy":return P("busy");case"dnd":return P("do not disturb");case"online":return P("online");case"invisible":return P("invisible");case"offline":return P("offline");default:return e}};it(Jo);const pd={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return{online:hd,away:Rs,busy:Rs,dnd:fd,invisible:Ns,offline:Ns}[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:P("User status: {status}",{status:z0(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e,r){if(!e||!pn()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:i}=await Pe.get(ga("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=i.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var Ad=function(){var e=this,r=e._self._c;return e.activeStatus?r("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},Ed=[],Dd=St(pd,Ad,Ed,!1,null,"0555d8d0");const md=Dd.exports;it(tl);class Nt{constructor(r,i,n,a){this.r=r,this.g=i,this.b=n,a&&(this.name=a)}get color(){const r=i=>`00${i.toString(16)}`.slice(-2);return`#${r(this.r)}${r(this.g)}${r(this.b)}`}}function Sd(e,r){const i=new Array(3);return i[0]=(r[1].r-r[0].r)/e,i[1]=(r[1].g-r[0].g)/e,i[2]=(r[1].b-r[0].b)/e,i}function In(e,r,i){const n=[];n.push(r);const a=Sd(e,[r,i]);for(let s=1;s>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return r.rotl(i,8)&16711935|r.rotl(i,24)&4278255360;for(var n=0;n0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],a=0,s=0;a>>5]|=i[a]<<24-s%32;return n},wordsToBytes:function(i){for(var n=[],a=0;a>>5]>>>24-a%32&255);return n},bytesToHex:function(i){for(var n=[],a=0;a>>4).toString(16)),n.push((i[a]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],a=0;a>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,s=0;a>>6-s*2);return n}};$0.exports=r})();var Fd=$0.exports,oa={utf8:{stringToBytes:function(e){return oa.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(oa.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],i=0;i>>24)&16711935|(u[f]<<24|u[f]>>>8)&4278255360;u[o>>>5]|=128<>>9<<4)+14]=o;for(var D=a._ff,E=a._gg,R=a._hh,v=a._ii,f=0;f>>0,c=c+M>>>0,d=d+z>>>0,h=h+H>>>0}return e.endian([T,c,d,h])};a._ff=function(s,l,u,o,T,c,d){var h=s+(l&u|~l&o)+(T>>>0)+d;return(h<>>32-c)+l},a._gg=function(s,l,u,o,T,c,d){var h=s+(l&o|u&~o)+(T>>>0)+d;return(h<>>32-c)+l},a._hh=function(s,l,u,o,T,c,d){var h=s+(l^u^o)+(T>>>0)+d;return(h<>>32-c)+l},a._ii=function(s,l,u,o,T,c,d){var h=s+(u^(l|~o))+(T>>>0)+d;return(h<>>32-c)+l},a._blocksize=16,a._digestsize=16,V0.exports=function(s,l){if(s==null)throw new Error("Illegal argument "+s);var u=e.wordsToBytes(a(s,l));return l&&l.asBytes?u:l&&l.asString?n.bytesToString(u):e.bytesToHex(u)}})();var Od=V0.exports;const vd=u0(Od),vs=function(e){let r=e.toLowerCase();r.match(/^([0-9a-f]{4}-?){8}$/)===null&&(r=vd(r)),r=r.replace(/[^0-9a-f]/g,"");const i=6,n=gd(i);function a(s,l){let u=0;const o=[];for(let T=0;T{const n=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";return c0("/avatar"+(i?"/guest":"")+"/{user}/{size}"+(n?"/dark":""),{user:e,size:r})},W0=el().detectUser().setApp("@nextcloud/vue").build();function bd(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(r=>r.enabled(e)):[]}const Yd=(e,r)=>{const i=(c,d)=>c.startsWith(d)?c.slice(d.length):c,n=(c,...d)=>d.reduce((h,f)=>i(h,f),c);if(!e)return null;const a=/^https?:\/\//.test(r),s=/^[a-z][a-z0-9+.-]*:.+/.test(r);if(!a&&s||a&&!r.startsWith(Xa())||!a&&!r.startsWith("/"))return null;const l=a?n(r,Xa(),"/index.php"):r,u=n(e.history.base,rl(),"/index.php"),o=n(l,u)||"/",T=e.resolve(o).route;return T.matched.length?T.fullPath:null};var Md={exports:{}};(function(e){(function(r){if(typeof i!="function"){var i=function(D){return D};i.nonNative=!0}const n=i("plaintext"),a=i("html"),s=i("comment"),l=/<(\w*)>/g,u=/<\/?([^\s\/>]+)/;function o(D,E,R){D=D||"",E=E||[],R=R||"";let v=c(E,R);return d(D,v)}function T(D,E){D=D||[],E=E||"";let R=c(D,E);return function(v){return d(v||"",R)}}o.init_streaming_mode=T;function c(D,E){return D=h(D),{allowable_tags:D,tag_replacement:E,state:n,tag_buffer:"",depth:0,in_quote_char:""}}function d(D,E){if(typeof D!="string")throw new TypeError("'html' parameter must be a string");let R=E.allowable_tags,v=E.tag_replacement,N=E.state,M=E.tag_buffer,z=E.depth,H=E.in_quote_char,C="";for(let K=0,Q=D.length;K":if(H)break;if(z){z--;break}H="",N=n,M+=">",R.has(f(M))?C+=M:C+=v,M="";break;case'"':case"'":j===H?H="":H=H||j,M+=j;break;case"-":M==="":M.slice(-2)=="--"&&(N=n),M="";break;default:M+=j;break}}return E.state=N,E.tag_buffer=M,E.depth=z,E.in_quote_char=H,C}function h(D){let E=new Set;if(typeof D=="string"){let R;for(;R=l.exec(D);)E.add(R[1])}else!i.nonNative&&typeof D[i.iterator]=="function"?E=new Set(D):typeof D.forEach=="function"&&D.forEach(E.add,E);return E}function f(D){let E=u.exec(D);return E?E[1].toLowerCase():null}e.exports?e.exports=o:r.striptags=o})(Ie)})(Md);var yi={},Ii={},Jr={};Object.defineProperty(Jr,"__esModule",{value:!0}),Jr.default=void 0;function ki(e,r,i){return r=wd(r),r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function wd(e){var r=_d(e,"string");return typeof r=="symbol"?r:r+""}function _d(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}class mr{constructor(r,i,n){ki(this,"scope",void 0),ki(this,"wrapped",void 0),this.scope="".concat(n?mr.GLOBAL_SCOPE_PERSISTENT:mr.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(r),"_"),this.wrapped=i}scopeKey(r){return"".concat(this.scope).concat(r)}setItem(r,i){this.wrapped.setItem(this.scopeKey(r),i)}getItem(r){return this.wrapped.getItem(this.scopeKey(r))}removeItem(r){this.wrapped.removeItem(this.scopeKey(r))}clear(){Object.keys(this.wrapped).filter(r=>r.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}Jr.default=mr,ki(mr,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),ki(mr,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Object.defineProperty(Ii,"__esModule",{value:!0}),Ii.default=void 0;var Zd=Bd(Jr);function Bd(e){return e&&e.__esModule?e:{default:e}}function kn(e,r,i){return r=Cd(r),r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function Cd(e){var r=xd(e,"string");return typeof r=="symbol"?r:r+""}function xd(e,r){if(typeof e!="object"||!e)return e;var i=e[Symbol.toPrimitive];if(i!==void 0){var n=i.call(e,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(e)}class Ld{constructor(r){kn(this,"appId",void 0),kn(this,"persisted",!1),kn(this,"clearedOnLogout",!1),this.appId=r}persist(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=r,this}clearOnLogout(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=r,this}build(){return new Zd.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}Ii.default=Ld,Object.defineProperty(yi,"__esModule",{value:!0}),yi.clearAll=Gd,yi.clearNonPersistent=Ud;var Ba=yi.getBuilder=Hd,Id=K0(Ii),kd=K0(Jr);function K0(e){return e&&e.__esModule?e:{default:e}}function Hd(e){return new Id.default(e)}function q0(e,r){Object.keys(e).filter(i=>r?r(i):!0).map(e.removeItem.bind(e))}function Gd(){[window.sessionStorage,window.localStorage].map(e=>q0(e))}function Ud(){[window.sessionStorage,window.localStorage].map(e=>q0(e,r=>!r.startsWith(kd.default.GLOBAL_SCOPE_PERSISTENT)))}ie.util.warn;const X0=il?window:void 0;function Zr(e){var r;const i=ze(e);return(r=i?.$el)!=null?r:i}function bi(...e){let r,i,n,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,n,a]=e,r=X0):[r,i,n,a]=e,!r)return Ni;Array.isArray(i)||(i=[i]),Array.isArray(n)||(n=[n]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},u=(c,d,h,f)=>(c.addEventListener(d,h,f),()=>c.removeEventListener(d,h,f)),o=Fa(()=>[Zr(r),ze(a)],([c,d])=>{if(l(),!c)return;const h=nl(d)?{...d}:d;s.push(...i.flatMap(f=>n.map(D=>u(c,f,D,h))))},{immediate:!0,flush:"post"}),T=()=>{o(),l()};return T0(T),T}let ys=!1;function bs(e,r,i={}){const{window:n=X0,ignore:a=[],capture:s=!0,detectIframe:l=!1}=i;if(!n)return Ni;ea&&!ys&&(ys=!0,Array.from(n.document.body.children).forEach(D=>D.addEventListener("click",Ni)),n.document.documentElement.addEventListener("click",Ni));let u=!0;const o=D=>ze(a).some(E=>{if(typeof E=="string")return Array.from(n.document.querySelectorAll(E)).some(R=>R===D.target||D.composedPath().includes(R));{const R=Zr(E);return R&&(D.target===R||D.composedPath().includes(R))}});function T(D){const E=ze(D);return E&&E.$.subTree.shapeFlag===16}function c(D,E){const R=ze(D),v=R.$.subTree&&R.$.subTree.children;return v==null||!Array.isArray(v)?!1:v.some(N=>N.el===E.target||E.composedPath().includes(N.el))}const d=D=>{const E=Zr(e);if(D.target!=null&&!(!(E instanceof Element)&&T(e)&&c(e,D))&&!(!E||E===D.target||D.composedPath().includes(E))){if(D.detail===0&&(u=!o(D)),!u){u=!0;return}r(D)}};let h=!1;const f=[bi(n,"click",D=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(D))},{passive:!0,capture:s}),bi(n,"pointerdown",D=>{const E=Zr(e);u=!o(D)&&!!(E&&!D.composedPath().includes(E))},{passive:!0}),l&&bi(n,"blur",D=>{setTimeout(()=>{var E;const R=Zr(e);((E=n.document.activeElement)==null?void 0:E.tagName)==="IFRAME"&&!R?.contains(n.document.activeElement)&&r(D)},0)})].filter(Boolean);return()=>f.forEach(D=>D())}const jd={[Ja.mounted](e,r){const i=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=bs(e,r.value,{capture:i});else{const[n,a]=r.value;e.__onClickOutside_stop=bs(e,n,Object.assign({capture:i},a))}},[Ja.unmounted](e){e.__onClickOutside_stop()}};function Hn(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function J0(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth1?!0:(r.preventDefault&&r.preventDefault(),!1)}const Gn=new WeakMap;function zd(e,r=!1){const i=Er(r);let n=null,a="";Fa(al(e),u=>{const o=Hn(ze(u));if(o){const T=o;if(Gn.get(T)||Gn.set(T,T.style.overflow),T.style.overflow!=="hidden"&&(a=T.style.overflow),T.style.overflow==="hidden")return i.value=!0;if(i.value)return T.style.overflow="hidden"}},{immediate:!0});const s=()=>{const u=Hn(ze(e));!u||i.value||(ea&&(n=bi(u,"touchmove",o=>{Pd(o)},{passive:!1})),u.style.overflow="hidden",i.value=!0)},l=()=>{const u=Hn(ze(e));!u||!i.value||(ea&&n?.(),u.style.overflow=a,Gn.delete(u),i.value=!1)};return T0(l),ve({get(){return i.value},set(u){u?s():l()}})}function Vd(){let e=!1;const r=Er(!1);return(i,n)=>{if(r.value=n.value,e)return;e=!0;const a=zd(i,n.value);Fa(r,s=>a.value=s)}}Vd(),it(sl);const to={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const r=pn();if(!(!Object.prototype.hasOwnProperty.call(r,"user_status")||!r.user_status.enabled)&&ra())try{const{data:i}=await Pe.get(ga("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:n,message:a,icon:s}=i.ocs.data;this.userStatus.status=n,this.userStatus.message=a||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(i){if(i.response.status===404&&i.response.data.ocs?.data?.length===0)return;console.error(i)}}}},eo=Ba("nextcloud").persist().build();function $d(e){const r=eo.getItem("user-has-avatar."+e);return typeof r=="string"?!!r:null}function Ys(e,r){e&&eo.setItem("user-has-avatar."+e,r)}const Qd={name:"NcAvatar",directives:{ClickOutside:jd},components:{DotsHorizontal:ll,NcActions:ol,NcButton:h0,NcIconSvgWrapper:d0,NcLoadingIcon:Ra,NcUserStatusIcon:md},mixins:[to],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?P("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:z0(this.userStatus.status)}):P("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===ra()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:r,b:i}=vs(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${r}, ${i}, 0.1)`}},initialsStyle(){const{r:e,g:r,b:i}=vs(this.userIdentifier);return{color:`rgb(${e}, ${r}, ${i})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const r=this.userIdentifier.trim();if(r==="")return e;const i=r.match(/[\p{L}\p{N}\s]/gu);if(i==null)return e;const n=i.join(""),a=n.lastIndexOf(" ");e=String.fromCodePoint(n.codePointAt(0)),a!==-1&&(e=e.concat(String.fromCodePoint(n.codePointAt(a+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(i=>{const n=Yd(this.$router,i.hyperlink);return{ncActionComponent:n?od:ou,ncActionComponentProps:n?{to:n,icon:i.icon}:{href:i.hyperlink,icon:i.icon},text:i.title}});for(const i of bd(this.contactsMenuData))try{e.push({ncActionComponent:su,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>i.callback(this.contactsMenuData)},text:i.displayName(this.contactsMenuData),iconSvg:i.iconSvg(this.contactsMenuData)})}catch(n){W0.error(`Failed to render ContactsMenu action ${i.id}`,{error:n,action:i})}function r(i){const n=document.createTextNode(i),a=document.createElement("p");return a.appendChild(n),a.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const i=` ${r(this.userStatus.icon)} `;return[{ncActionComponent:dd,ncActionComponentProps:{},iconSvg:this.userStatus.icon?i:void 0,text:`${this.userStatus.message}`}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),wn("settings:avatar:updated",this.loadAvatarUrl),wn("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),wn("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){Mn("settings:avatar:updated",this.loadAvatarUrl),Mn("settings:display-name:updated",this.loadAvatarUrl),Mn("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:P,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:r}=await Pe.post(c0("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=r,this.contactsMenuActions=r.topAction?[r.topAction].concat(r.actions):r.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),r=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,r)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,r){let i=yd(e,r,this.isGuest);return e===ra()?.uid&&typeof oc_userconfig<"u"&&(i+="?v="+oc_userconfig.avatar.version),i},updateImageIfValid(e,r=null){const i=$d(this.user);if(this.isUserDefined&&typeof i=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),i===!1&&(this.userDoesNotExist=!0);return}const n=new Image;n.onload=()=>{this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),this.isAvatarLoaded=!0,Ys(this.user,!0)},n.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,Ys(this.user,!1)},r&&(n.srcset=r),n.src=e}}};var Wd=function(){var e=this,r=e._self._c;return r("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],ref:"main",staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?r("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?r("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?r("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?r("NcLoadingIcon"):r("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?r("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(i){e.contactsMenuOpenState=i},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[r("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(i,n){return r(i.ncActionComponent,e._g(e._b({key:n,tag:"component",scopedSlots:e._u([i.iconSvg?{key:"icon",fn:function(){return[r("NcIconSvgWrapper",{attrs:{svg:i.iconSvg}})]},proxy:!0}:null],null,!0)},"component",i.ncActionComponentProps,!1),i.ncActionComponentHandlers),[e._v(" "+e._s(i.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?r("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?r("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?r("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[r("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},Kd=[],qd=St(Qd,Wd,Kd,!1,null,"e37fc087");const Xd=qd.exports,Jd=8,Ms=32,th={name:"NcListItemIcon",components:{NcAvatar:Xd,NcHighlight:P0,NcIconSvgWrapper:d0},mixins:[to],props:{name:{type:String,required:!0},subname:{type:String,default:""},icon:{type:String,default:""},iconSvg:{type:String,default:""},iconName:{type:String,default:""},search:{type:String,default:""},avatarSize:{type:Number,default:Ms},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:Jd,defaultSize:Ms}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,r=this.search.match(e);return this.isNoUser||!r?[this.search,this.search]:[r[1].trim(),r[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var eh=function(){var e=this,r=e._self._c;return r("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize({...e,...r.props}),{}),ariaLabelClearSelected:{type:String,default:P("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:P("Options")},ariaLabelDeselectOption:{type:Function,default:e=>P("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(cl,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:r})=>e?!1:r},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${sr()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,r){return{...e,27:i=>{r.open&&i.stopPropagation(),e[27](i)}}}},uid:{type:String,default:()=>sr()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),r=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),i=e-2*r,n=si("value","input");return{avatarSize:i,model:n}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,r,{width:i})=>{e.style.width=i;const n={name:"addClass",fn(l){return e.classList.add("vs__dropdown-menu--floating"),{}}},a={name:"togglePlacementClass",fn({placement:l}){return r.$el.classList.toggle("select--drop-up",l==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",l==="top"),{}}},s=()=>{UT(r.$refs.toggle,e,{placement:this.placement,middleware:[IT(-1),n,a,HT(),kT({limiter:GT()})]}).then(({x:l,y:u})=>{Object.assign(e.style,{left:`${l}px`,top:`${u}px`,width:`${r.$refs.toggle.getBoundingClientRect().width}px`})})};return LT(r.$refs.toggle,e,s)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(r,i,n)=>{const a=n.match(e);return a&&r.subname?.toLocaleLowerCase?.()?.indexOf(a[1].toLocaleLowerCase())>-1||`${i} ${r.subname}`.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}:Ke.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Ke.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Ke.VueSelect.props),...Ke.VueSelect.mixins.flatMap(r=>Object.keys(r.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([r,i])=>e.includes(r))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:e=>{this.model=e}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&ie.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&ie.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:P}};var sh=function(){var e=this,r=e._self._c;return r("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:i=>e.search=i},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[r("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:i,events:n}){return[r("input",e._g(e._b({class:["vs__search",e.inputClass],attrs:{required:e.inputRequired,dir:"auto"}},"input",i,!1),n))]}},{key:"open-indicator",fn:function({attributes:i}){return[r("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",i,!1))]}},{key:"option",fn:function(i){return[e._t("option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:i[e.localLabel],search:e.search}},"NcListItemIcon",i,!1)):r("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},null,i)]}},{key:"selected-option",fn:function(i){return[e._t("selected-option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:i[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",i,!1)):r("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},{vBind:i})]}},{key:"spinner",fn:function(i){return[i.loading?r("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(i,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},oh=[],lh=St(ah,sh,oh,!1,null,null);const ro=lh.exports;it(Tl);function uh(e=[],r=[]){const i={},n=[];for(const a of e){const s=a.split("/");let[l,u]=[s.shift(),s.join("/")];u||(u=l,l=P("Global")),i[l]=i[l]||{continent:l,regions:[]},i[l].regions.push({label:io(u),cities:[],timezoneId:a})}for(const a of r){const{continent:s,label:l,timezoneId:u}=a;i[s]=i[s]||{continent:s,regions:[]},i[s].regions.push({label:l,cities:[],timezoneId:u})}for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a].regions.sort((s,l)=>s.labela.continent[]},value:{type:String,default:void 0},modelValue:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${sr(5)}`}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:si("value","input")}},computed:{placeholder(){return P("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.model)return e;return{label:io(this.model),timezoneId:this.model}},options(){const e=ch(),r=uh(e.listAllTimezones(),this.additionalTimezones);let i=[];return Object.values(r).forEach(n=>{i=i.concat(n.regions)}),i}},methods:{t:P,change(e){e&&(this.model=e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,r,i){const n=i.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(a=>this.matchTimezoneId(a.timezoneId,n)):this.matchTimezoneId(e.timezoneId,n)},matchTimezoneId(e,r){return r.every(i=>e.toLowerCase().includes(i.toLowerCase()))}}};var dh=function(){var e=this,r=e._self._c;return r("NcSelect",{attrs:{"aria-label-combobox":e.t("Search for time zone"),clearable:!1,"filter-by":e.filterBy,multiple:!1,options:e.options,placeholder:e.placeholder,selectable:e.isSelectable,uid:e.uid,value:e.selectedTimezone,label:"label"},on:{"option:selected":e.change}})},hh=[],fh=St(Th,dh,hh,!1,null,null);const ph=fh.exports;function no(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Rn(e){return no(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function Ah(e){return no(e)&&!isNaN(e.getTime())}function ao(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var i=Rn(e),n=i.getDay(),a=(n+7-r)%7;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function so(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.firstDayOfWeek,n=i===void 0?0:i,a=r.firstWeekContainsDate,s=a===void 0?1:a;if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var l=Rn(e),u=l.getFullYear(),o=new Date(0),T=u+1;T>=u-1&&(o.setFullYear(T,0,s),o.setHours(0,0,0,0),o=ao(o,n),!(l.getTime()>=o.getTime()));T--);return o}function Ca(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.firstDayOfWeek,n=i===void 0?0:i,a=r.firstWeekContainsDate,s=a===void 0?1:a,l=Rn(e),u=ao(l,n),o=so(l,{firstDayOfWeek:n,firstWeekContainsDate:s}),T=u.getTime()-o.getTime();return Math.round(T/(7*24*3600*1e3))+1}var oo={months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],weekdaysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],firstDayOfWeek:0,firstWeekContainsDate:1},Eh=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function Wt(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,i="".concat(Math.abs(e)),n=e<0?"-":"";i.length1&&arguments[1]!==void 0?arguments[1]:"",i=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),s=n%60;return i+Wt(a,2)+r+Wt(s,2)}var Cs=function(e,r,i){var n=e<12?"AM":"PM";return i?n.toLocaleLowerCase():n},xr={Y:function(e){var r=e.getFullYear();return r<=9999?"".concat(r):"+".concat(r)},YY:function(e){return Wt(e.getFullYear(),4).substr(2)},YYYY:function(e){return Wt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return Wt(e.getMonth()+1,2)},MMM:function(e,r){return r.monthsShort[e.getMonth()]},MMMM:function(e,r){return r.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return Wt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return Wt(e.getHours(),2)},h:function(e){var r=e.getHours();return r===0?12:r>12?r%12:r},hh:function(){var e=xr.h.apply(xr,arguments);return Wt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return Wt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Wt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Wt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Wt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,r){return r.weekdaysMin[e.getDay()]},ddd:function(e,r){return r.weekdaysShort[e.getDay()]},dddd:function(e,r){return r.weekdays[e.getDay()]},A:function(e,r){var i=r.meridiem||Cs;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,r){var i=r.meridiem||Cs;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return Bs(Zs(e),":")},ZZ:function(e){return Bs(Zs(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,r){return Ca(e,{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate})},ww:function(e,r){return Wt(xr.w(e,r),2)}};function Nn(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r?String(r):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=Rn(e);if(!Ah(a))return"Invalid Date";var s=i.locale||oo;return n.replace(Eh,function(l,u){return u||(typeof xr[l]=="function"?"".concat(xr[l](a,s)):l)})}function xs(e){return Sh(e)||mh(e)||Dh()}function Dh(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function mh(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Sh(e){if(Array.isArray(e)){for(var r=0,i=new Array(e.length);r68?i-1:i)*100+n,Ge({},Un,n)}),ht("YYYY",bh,Un),ht("M",hr,function(e){return Ge({},Ei,parseInt(e,10)-1)}),ht("MM",xe,function(e){return Ge({},Ei,parseInt(e,10)-1)}),ht("MMM",Lr("monthsShort"),Ir("monthsShort",Ei)),ht("MMMM",Lr("months"),Ir("months",Ei)),ht("D",hr,Is),ht("DD",xe,Is),ht(["H","h"],hr,ks),ht(["HH","hh"],xe,ks),ht("m",hr,Hs),ht("mm",xe,Hs),ht("s",hr,Gs),ht("ss",xe,Gs),ht("S",lo,function(e){return Ge({},jn,parseInt(e,10)*100)}),ht("SS",xe,function(e){return Ge({},jn,parseInt(e,10)*10)}),ht("SSS",yh,jn);function _h(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function Zh(e){return"".concat(e).toLowerCase().charAt(0)==="p"}ht(["A","a"],_h,function(e,r){var i=typeof r.isPM=="function"?r.isPM(e):Zh(e);return{isPM:i}});function Bh(e){var r=e.match(/([+-]|\d\d)/g)||["-","0","0"],i=Fh(r,3),n=i[0],a=i[1],s=i[2],l=parseInt(a,10)*60+parseInt(s,10);return l===0?0:n==="+"?-l:+l}ht(["Z","ZZ"],Yh,function(e){return{offset:Bh(e)}}),ht("x",uo,function(e){return{date:new Date(parseInt(e,10))}}),ht("X",Mh,function(e){return{date:new Date(parseFloat(e)*1e3)}}),ht("d",lo,"weekday"),ht("dd",Lr("weekdaysMin"),Ir("weekdaysMin","weekday")),ht("ddd",Lr("weekdaysShort"),Ir("weekdaysShort","weekday")),ht("dddd",Lr("weekdays"),Ir("weekdays","weekday")),ht("w",hr,"week"),ht("ww",xe,"week");function Ch(e,r){if(e!==void 0&&r!==void 0){if(r){if(e<12)return e+12}else if(e===12)return 0}return e}function xh(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,i=[0,0,1,0,0,0,0],n=[r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()],a=!0,s=0;s<7;s++)e[s]===void 0?i[s]=a?n[s]:i[s]:(i[s]=e[s],a=!1);return i}function Lh(e,r,i,n,a,s,l){var u;return e<100&&e>=0?(u=new Date(e+400,r,i,n,a,s,l),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,r,i,n,a,s,l),u}function Ih(){for(var e,r=arguments.length,i=new Array(r),n=0;n=0?(i[0]+=400,e=new Date(Date.UTC.apply(Date,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(a)):e=new Date(Date.UTC.apply(Date,i)),e}function kh(e,r,i){var n=r.match(vh);if(!n)throw new Error;for(var a=n.length,s={},l=0;l2&&arguments[2]!==void 0?arguments[2]:{};try{var n=i.locale,a=n===void 0?oo:n,s=i.backupDate,l=s===void 0?new Date:s,u=kh(e,r,a),o=u.year,T=u.month,c=u.day,d=u.hour,h=u.minute,f=u.second,D=u.millisecond,E=u.isPM,R=u.date,v=u.offset,N=u.weekday,M=u.week;if(R)return R;var z=[o,T,c,d,h,f,D];if(z[3]=Ch(z[3],E),M!==void 0&&T===void 0&&c===void 0){var H=so(o===void 0?l:new Date(o,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(H.getTime()+(M-1)*7*24*3600*1e3)}var C,K=xh(z,l);return v!==void 0?(K[6]+=v*60*1e3,C=Ih.apply(void 0,xs(K))):C=Lh.apply(void 0,xs(K)),N!==void 0&&C.getDay()!==N?new Date(NaN):C}catch{return new Date(NaN)}}function Yi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Yi=function(r){return typeof r}:Yi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Yi(e)}function tr(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function la(){return la=Object.assign||function(e){for(var r=1;r=0)&&(i[a]=e[a]);return i}function Uh(e,r){if(e==null)return{};var i=Gh(e,r),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function kr(e,r){return jh(e)||Ph(e,r)||zh(e,r)||Vh()}function jh(e){if(Array.isArray(e))return e}function Ph(e,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var i=[],n=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(n=(u=l.next()).done)&&(i.push(u.value),!(r&&i.length===r));n=!0);}catch(o){a=!0,s=o}finally{try{!n&&l.return!=null&&l.return()}finally{if(a)throw s}}return i}}function zh(e,r){if(e){if(typeof e=="string")return js(e,r);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return js(e,r)}}function js(e,r){(r==null||r>e.length)&&(r=e.length);for(var i=0,n=new Array(r);i1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,u=new Date(e,r,i,n,a,s,l);return e<100&&e>=0&&u.setFullYear(e),u}function Me(e){return e instanceof Date&&!isNaN(e)}function On(e){return Array.isArray(e)&&e.length===2&&e.every(Me)&&e[0]<=e[1]}function Xh(e){return Array.isArray(e)&&e.every(Me)}function Nr(e){var r=new Date(e);if(Me(r))return r;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===r)return null;var i=function(s,l){return getComputedStyle(s,null).getPropertyValue(l)},n=/(auto|scroll)/,a=n.test(i(e,"overflow")+i(e,"overflow-y")+i(e,"overflow-x"));return a?e:vn(e.parentNode,r)}var c1={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var r=this;this.$nextTick(function(){e&&r.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var r=this.$parent.$el;this._displayPopup=o1(function(){return e.displayPopup()}),this._scrollParent=vn(r)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var r=e.target,i=this.$el;i&&!i.contains(r)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,r=this.$parent.$el,i=this.appendToBody;this._popupRect||(this._popupRect=l1(e));var n=this._popupRect,a=n.width,s=n.height,l=u1(r,a,s,i),u=l.left,o=l.top;this.left=u,this.top=o}}}};function ne(e,r,i,n,a,s,l,u,o,T){var c=typeof i=="function"?i.options:i;return e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i}var T1=c1,d1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?i("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},h1=[],f1=void 0,p1=ne({render:d1,staticRenderFns:h1},f1,T1),A1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},E1=[],D1=void 0,m1=ne({render:A1,staticRenderFns:E1},D1,{}),S1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),i("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),i("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},g1=[],F1=void 0,R1=ne({render:S1,staticRenderFns:g1},F1,{}),N1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},O1=[],v1=void 0,y1=ne({render:N1,staticRenderFns:O1},v1,{}),b1={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},Y1=b1,M1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[i("i",{class:e.prefixClass+"-icon-"+e.type})])},w1=[],_1=void 0,La=ne({render:M1,staticRenderFns:w1},_1,Y1),Z1={name:"TableDate",components:{IconButton:La},inject:{getLocale:{default:function(){return yr}},getWeek:{default:function(){return Ca}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),r=e.yearFormat,i=e.monthBeforeYear,n=e.monthFormat,a=n===void 0?"MMM":n,s={panel:"year",label:this.formatDate(this.calendar,r)},l={panel:"month",label:this.formatDate(this.calendar,a)};return i?[l,s]:[s,l]},days:function(){var e=this.getLocale(),r=e.days||e.formatLocale.weekdaysMin;return r.concat(r).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),r=this.calendar.getMonth(),i=e1({firstDayOfWeek:this.firstDayOfWeek,year:e,month:r});return xa(i,7)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,r.getMonth()+1,0),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1);break;case"last-month":r.setMonth(r.getMonth(),0),r.setHours(23,59,59,999);break;case"next-month":r.setMonth(r.getMonth()+1);break}return this.disabledCalendarChanger(r,e)},handleIconLeftClick:function(){this.$emit("changecalendar",Ta(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",Ta(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-row-col");if(i){var n=i.split(",").map(function(o){return parseInt(o,10)}),a=kr(n,2),s=a[0],l=a[1],u=this.dates[s][l];this.$emit("select",new Date(u))}},formatDate:function(e,r){return Nn(e,r,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var r=this.titleFormat;return this.formatDate(e,r)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},B1=Z1,C1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(n){return i("button",{key:n.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+n.panel,attrs:{type:"button"},on:{click:function(a){return e.handlePanelChange(n.panel)}}},[e._v(` `+e._s(n.label)+` `)])}),0)],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[i("thead",[i("tr",[e.showWeekNumber?i("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(n){return i("th",{key:n},[e._v(e._s(n))])})],2)]),e._v(" "),i("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(n,a){return i("tr",{key:a,class:[e.prefixClass+"-date-row",e.getRowClasses(n)]},[e.showWeekNumber?i("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":a+",0"}},[e._v(` `+e._s(e.getWeekNumber(n[0]))+` `)]):e._e(),e._v(" "),e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-row-col":a+","+l,title:e.getCellTitle(s)},on:{mouseenter:function(u){return e.handleMouseEnter(s)},mouseleave:function(u){return e.handleMouseLeave(s)}}},[i("div",[e._v(e._s(s.getDate()))])])})],2)}),0)])])])},x1=[],L1=void 0,I1=ne({render:C1,staticRenderFns:x1},L1,B1),k1={name:"TableMonth",components:{IconButton:La},inject:{getLocale:{default:function(){return yr}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),r=e.months||e.formatLocale.monthsShort,i=r.map(function(n,a){return{text:n,month:a}});return xa(i,3)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,11,31),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(r,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-month");i&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},H1=k1,G1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(` `+e._s(e.calendarYear)+` `)])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(n,a){return i("tr",{key:a},e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s.month),attrs:{"data-month":s.month}},[i("div",[e._v(e._s(s.text))])])}),0)}),0)])])},U1=[],j1=void 0,P1=ne({render:G1,staticRenderFns:U1},j1,H1),z1={name:"TableYear",components:{IconButton:La},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return typeof this.getYearPanel=="function"?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(r){return r[r.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-decade":r.setFullYear(this.firstYear-1,11,31),r.setHours(23,59,59,999);break;case"next-decade":r.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(r,e)},getYears:function(e){for(var r=Math.floor(e.getFullYear()/10)*10,i=[],n=0;n<10;n++)i.push(r+n);return xa(i,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",Or(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-year");i&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},V1=z1,$1=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("span",[e._v(e._s(e.firstYear))]),e._v(" "),i("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),i("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(n,a){return i("tr",{key:a},e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-year":s}},[i("div",[e._v(e._s(s))])])}),0)}),0)])])},Q1=[],W1=void 0,K1=ne({render:$1,staticRenderFns:Q1},W1,V1),ar={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],r=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),i=r!==-1?e[r]:"date";return{panel:i,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],r={year:Jh,month:ca,date:t1},i=r[this.type]||r.date;return e.filter(Me).map(function(n){return i(n)})},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!Me(e)){var r=this.innerValue.length;e=Nr(r>0?this.innerValue[r-1]:this.defaultValue)}this.innerCalendar=ca(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,r){this.isDisabled(e)||(this.$emit("select",e,r,this.innerValue),this.dispatchDatePicker("pick",e,r))},handleCalendarChange:function(e,r){var i=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,i,r)},handelPanelChange:function(e){var r=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,r)},handleSelectYear:function(e){if(this.type==="year"){var r=this.getYearCellDate(e);this.emitDate(r,"year")}else if(this.handleCalendarChange(Ye(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(e),this.emitDate(i,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var r=this.getMonthCellDate(e);this.emitDate(r,"month")}else if(this.handleCalendarChange(Ye(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(this.calendarYear),this.emitDate(Ta(i,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return Ye(this.calendarYear,e)},getYearCellDate:function(e){return Ye(e,0)},getDateClasses:function(e){var r=e.getMonth()!==this.calendarMonth,i=[];e.getTime()===new Date().setHours(0,0,0,0)&&i.push("today"),r&&i.push("not-current-month");var n=this.getStateClass(e);return n==="active"&&r||i.push(n),i.concat(this.getClasses(e,this.innerValue,i.join(" ")))},getMonthClasses:function(e){var r=[];if(this.type!=="month"){this.calendarMonth===e&&r.push("active");var i=this.getMonthCellDate(e);return this.disabledCalendarChanger(i,"month")&&r.push("disabled"),r}var n=this.getMonthCellDate(e);return r.push(this.getStateClass(n)),r.concat(this.getClasses(n,this.innerValue,r.join(" ")))},getYearClasses:function(e){var r=[];if(this.type!=="year"){this.calendarYear===e&&r.push("active");var i=this.getYearCellDate(e);return this.disabledCalendarChanger(i,"year")&&r.push("disabled"),r}var n=this.getYearCellDate(e);return r.push(this.getStateClass(n)),r.concat(this.getClasses(n,this.innerValue,r.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(r){return r.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var r=e[0].getTime(),i=e[6].getTime(),n=this.innerValue.some(function(a){var s=a.getTime();return s>=r&&s<=i});return n?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],r=this.panel,i=this.innerCalendar;return r==="year"?e(K1,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):r==="month"?e(P1,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(I1,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:tr({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},Hr={name:"CalendarRange",components:{CalendarPanel:ar},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:At({},ar.props),data:function(){return{innerValue:[],calendars:[],hoveredValue:null}},computed:{calendarMinDiff:function(){var e={date:1,month:12,year:120};return e[this.type]||e.date},calendarMaxDiff:function(){return 1/0},defaultValues:function(){return Array.isArray(this.defaultValue)?this.defaultValue:[this.defaultValue,this.defaultValue]}},watch:{value:{immediate:!0,handler:function(){var e=this;this.innerValue=On(this.value)?this.value:[new Date(NaN),new Date(NaN)];var r=this.innerValue.map(function(i,n){return ca(Nr(i,e.defaultValues[n]))});this.updateCalendars(r)}}},methods:{handleSelect:function(e,r){var i=kr(this.innerValue,2),n=i[0],a=i[1];Me(n)&&!Me(a)?(n.getTime()>e.getTime()?this.innerValue=[e,n]:this.innerValue=[n,e],this.emitDate(this.innerValue,r)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,r){this.$emit("select",e,r)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i=this.getCalendarGap(e);if(i){var n=new Date(e[r]);n.setMonth(n.getMonth()+(r===0?-i:i)),e[r]=n}this.calendars=e},getCalendarGap:function(e){var r=kr(e,2),i=r[0],n=r[1],a=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth(),l=a*12+s,u=this.calendarMinDiff,o=this.calendarMaxDiff;return lo?o-l:0},getRangeClasses:function(e,r,i){var n=[].concat(this.getClasses(e,r,i));if(/disabled|active/.test(i))return n;var a=function(s,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(D){return D.getTime()},o=u(s),T=l.map(u),c=kr(T,2),d=c[0],h=c[1];if(d>h){var f=[h,d];d=f[0],h=f[1]}return o>d&&o"u")return 0;if(Di!==void 0)return Di;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var r=document.createElement("div");return r.style.width="100%",e.appendChild(r),Di=e.offsetWidth-r.offsetWidth,e.parentNode.removeChild(e),Di}var X1={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=q1(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var r=e.clientHeight*100/e.scrollHeight;this.thumbHeight=r<100?"".concat(r,"%"):""}},handleScroll:function(e){var r=e.currentTarget,i=r.scrollHeight,n=r.scrollTop;this.thumbTop="".concat(n*100/i,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var r=this.$refs.thumb.offsetTop;this._prevY=e.clientY-r,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var r=e.clientY,i=this.$refs.wrap,n=i.scrollHeight,a=i.clientHeight,s=r-this._prevY,l=s*n/a;i.scrollTop=l}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},J1=X1,tf=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[i("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),i("div",{class:e.prefixClass+"-scrollbar-track"},[i("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},ef=[],rf=void 0,fo=ne({render:tf,staticRenderFns:ef},rf,J1),Pn=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},zn=function(e,r,i){if(Array.isArray(i))return i.filter(function(s){return s>=0&&s2&&arguments[2]!==void 0?arguments[2]:0;if(n<=0){requestAnimationFrame(function(){r.scrollTop=i});return}var a=i-r.scrollTop,s=a/n*10;requestAnimationFrame(function(){var l=r.scrollTop+s;if(l>=i){r.scrollTop=i;return}r.scrollTop=l,e(r,i,n-10)})},af={name:"ListColumns",components:{ScrollbarVertical:fo},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(r){return r.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return zn(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(r){var i=new Date(e.date),n=Pn(r);e.use12h&&(r===0&&(n="12"),i.getHours()>=12&&(r+=12));var a=i.setHours(r);return{value:a,text:n}})},getMinutesList:function(){var e=this;return zn(60,this.minuteStep,this.minuteOptions).map(function(r){var i=new Date(e.date).setMinutes(r);return{value:i,text:Pn(r)}})},getSecondsList:function(){var e=this;return zn(60,this.secondStep,this.secondOptions).map(function(r){var i=new Date(e.date).setSeconds(r);return{value:i,text:Pn(r)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(r,i){var n=new Date(e.date),a=n.setHours(n.getHours()%12+i*12);return{text:r,value:a}})},scrollToSelected:function(e){for(var r=this.$el.querySelectorAll(".active"),i=0;i0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(":");if(r.length>=2){var i=parseInt(r[0],10),n=parseInt(r[1],10);return{hours:i,minutes:n}}return null}var Tf=function(e,r){e&&(e.scrollTop=r)},df={name:"ListOptions",components:{ScrollbarVertical:fo},inject:{getLocale:{default:function(){return yr}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],r=this.options;if(typeof r=="function")return r()||[];var i=Vn(r.start),n=Vn(r.end),a=Vn(r.step),s=r.format||this.format;if(i&&n&&a)for(var l=i.minutes+i.hours*60,u=n.minutes+n.hours*60,o=a.minutes+a.hours*60,T=Math.floor((u-l)/o),c=0;c<=T;c++){var d=l+c*o,h=Math.floor(d/60),f=d%60,D=new Date(this.date).setHours(h,f,0);e.push({value:D,text:this.formatDate(D,s)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,r){return Nn(e,r,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var r=vn(e,this.$el);if(r){var i=e.offsetTop;Tf(r,i)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},hf=df,ff=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("scrollbar-vertical",e._l(e.list,function(n){return i("div",{key:n.value,class:[e.prefixClass+"-time-option",e.getClasses(n.value)],on:{click:function(a){return e.handleSelect(n.value)}}},[e._v(` `+e._s(n.text)+` `)])}),0)},pf=[],Af=void 0,Ef=ne({render:ff,staticRenderFns:pf},Af,hf),Df={name:"TimePanel",components:{ListColumns:cf,ListOptions:Ef},inject:{getLocale:{default:function(){return yr}},prefixClass:{default:"mx"}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},format:{default:"HH:mm:ss"},timeTitleFormat:{type:String,default:"YYYY-MM-DD"},showTimeHeader:{type:Boolean,default:!1},disabledTime:{type:Function,default:function(){return!1}},timePickerOptions:{type:[Object,Function],default:function(){return null}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},showHour:{type:Boolean,default:void 0},showMinute:{type:Boolean,default:void 0},showSecond:{type:Boolean,default:void 0},use12h:{type:Boolean,default:void 0},scrollDuration:{type:Number,default:100}},data:function(){return{innerValue:Nr(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,r=new Date(this.innerValue);return this.formatDate(r,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,r=this.innerForamt,i={showHour:/[HhKk]/.test(r),showMinute:/m/.test(r),showSecond:/s/.test(r),use12h:/a/i.test(r)},n={};return Object.keys(i).forEach(function(a){n[a]=typeof e[a]=="boolean"?e[a]:i[a]}),n}},watch:{value:{immediate:!0,handler:function(){this.innerValue=Nr(this.value,this.defaultValue)}}},methods:{formatDate:function(e,r){return Nn(e,r,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setMinutes(0,0,0))&&this.isDisabledTime(r.setMinutes(59,59,999))},isDisabledMinute:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setSeconds(0,0))&&this.isDisabledTime(r.setSeconds(59,999))},isDisabledAMPM:function(e){var r=new Date(e),i=r.getHours()<12?0:12,n=i+11;return this.isDisabledTime(r)&&this.isDisabledTime(r.setHours(i,0,0,0))&&this.isDisabledTime(r.setHours(n,59,59,999))},isDisabled:function(e,r){return r==="hour"?this.isDisabledHour(e):r==="minute"?this.isDisabledMinute(e):r==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,r){var i=new Date(e);this.isDisabled(e,r)||(this.innerValue=i,this.isDisabledTime(i)||this.$emit("select",i,r))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,r){var i=new Date(e);return this.isDisabled(e,r)?"disabled":i.getTime()===this.innerValue.getTime()?"active":""}}},mf=Df,Sf=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?i("div",{class:e.prefixClass+"-time-header"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(` `+e._s(e.title)+` `)])]):e._e(),e._v(" "),i("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?i("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):i("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},gf=[],Ff=void 0,Ve=ne({render:Sf,staticRenderFns:gf},Ff,mf),Gr={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:At({},Ve.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(On(this.value)){var e=kr(this.value,2),r=e[0],i=e[1];this.startValue=r,this.endValue=i}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,r){var i=[this.startValue,this.endValue];this.$emit("select",i,e==="time"?"time-range":e,r)},handleSelectStart:function(e,r){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(r,0)},handleSelectEnd:function(e,r){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(r,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var n=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",n),this.$emit("change",n,r),i&&this.closePopup(),n},isValidValue:function(e){return this.validMultipleType?Xh(e):this.range?On(e):Me(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var r=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},i=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(n){return!r(n)&&!i(n)})},handleMultipleDates:function(e,r){if(this.validMultipleType&&r){var i=r.filter(function(n){return n.getTime()!==e.getTime()});return i.length===r.length&&i.push(e),i}return e},handleSelectDate:function(e,r,i){e=this.handleMultipleDates(e,i),this.confirm?this.currentValue=e:this.emitValue(e,r,!this.validMultipleType&&(r===this.type||r==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var r=e.currentTarget.getAttribute("data-index"),i=this.shortcuts[parseInt(r,10)];if(pe(i)&&typeof i.onClick=="function"){var n=i.onClick(this);n&&this.emitValue(n)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var r=this.userInput.trim();if(this.userInput=null,r===""){this.clear();return}var i;if(this.validMultipleType)i=r.split(this.innerRangeSeparator).map(function(a){return e.parseDate(a.trim())});else if(this.range){var n=r.split(this.innerRangeSeparator);n.length!==2&&(n=r.split(this.innerRangeSeparator.trim())),i=n.map(function(a){return e.parseDate(a.trim())})}else i=this.parseDate(r);this.isValidValueAndNotDisabled(i)?(this.emitValue(i),this.blur()):this.$emit("input-error",r)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var r=e.keyCode;r===9?this.closePopup():r===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,r,i){var n=this.$scopedSlots[e];return n?n(i)||r:this.$slots[e]||r},renderInput:function(){var e=this.$createElement,r=this.prefixClass,i=At({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),n=i.value,a=i.class,s=Uh(i,["value","class"]),l={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},u=this.renderSlot("input",e("input",{domProps:{value:n},class:a,attrs:At({},s),on:At({},l),ref:"input"}),{props:i,events:l}),o=this.type==="time"?e(R1):e(m1);return e("div",{class:"".concat(r,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[u,this.showClearIcon?e("i",{class:"".concat(r,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(y1))]):e("i",{class:"".concat(r,"-icon-calendar")},[this.renderSlot("icon-calendar",o)])])},renderContent:function(){var e=this.$createElement,r=this.range?Nf:Rf,i=r[this.type]||r.default,n=At({},vr(this.$props,Object.keys(i.props)),{value:this.currentValue}),a=At({},vr(this.$listeners,i.emits||[]),{select:this.handleSelectDate}),s=e(i,ti([{},{props:n,on:a,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",s,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,r=this.$createElement,i=this.prefixClass;return r("div",{class:"".concat(i,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(n,a){return r("button",{key:a,attrs:{"data-index":a,type:"button"},class:"".concat(i,"-btn ").concat(i,"-btn-text ").concat(i,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[n.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,r=this.prefixClass;return e("div",{class:"".concat(r,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(r,"-btn ").concat(r,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,r=arguments[0],i=this.prefixClass,n=this.inline,a=this.disabled,s=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,l=r("div",{class:"".concat(i,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return r("div",{class:(e={},tr(e,"".concat(i,"-datepicker"),!0),tr(e,"".concat(i,"-datepicker-range"),this.range),tr(e,"".concat(i,"-datepicker-inline"),n),tr(e,"disabled",a),e)},[n?null:this.renderInput(),n?r("div",{class:"".concat(i,"-datepicker-main")},[s,l]):r(p1,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[s,l])])}};Je.locale=ho,Je.install=function(e){e.component(Je.name,Je)},typeof window<"u"&&window.Vue&&Je.install(window.Vue),la(Je,{CalendarPanel:ar,CalendarRange:Hr,TimePanel:Ve,TimeRange:Gr,DatetimePanel:Ia,DatetimeRange:po}),it(hl);const Of={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vf=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},yf=[],bf=St(Of,vf,yf,!1,null,null);const Yf=bf.exports,Mf={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var wf=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},_f=[],Zf=St(Mf,wf,_f,!1,null,null);const Bf=Zf.exports,Ps={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},Cf={name:"NcDateTimePicker",components:{CalendarBlank:Yf,DatePicker:Je,NcPopover:fl,NcTimezonePicker:ph,Web:Bf},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date",validator:e=>["date","time","datetime","week","month","year","date-range","time-range","datetime-range"].includes(e)},format:{type:[String,Function],default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:void 0},modelValue:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null},range:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","update:model-value","update:timezone-id"],setup(){return{model:si("value","update:value"),timezoneDialogHeaderId:`timezone-dialog-header-${sr()}`}},data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{realType(){return this.type.split("-")[0]},defaultLang(){return{formatLocale:{months:du(),monthsShort:hu(),weekdays:uu(),weekdaysShort:cu(),weekdaysMin:Tu(),firstDayOfWeek:lu()},monthFormat:"MMMM"}},defaultPlaceholder(){return this.realType==="time"?P("Pick a time"):this.realType==="month"?P("Pick a month"):this.realType==="year"?P("Pick a year"):this.realType==="week"?P("Pick a week"):this.realType==="date"?P("Pick a date"):P("Pick a date and a time")},internalRange(){return this.range||this.type.endsWith("-range")},internalFormat(){return this.format&&typeof this.format=="string"?this.format:Ps[this.realType]||Ps.date},internalFormatter(){return{getWeek:e=>{const r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));r.setUTCDate(r.getUTCDate()+4-(r.getUTCDay()||7));const i=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r-i)/864e5+1)/7)},...typeof this.format=="function"?{stringify:this.format}:{},...this.formatter??{}}}},methods:{t:P,handleSelectYear(e){const r=this.$refs.datepicker.currentValue;if(r)try{const i=new Date(new Date(r).setFullYear(e));this.$refs.datepicker.selectDate(i)}catch{console.error("Invalid value",r,e)}},handleSelectMonth(e){const r=this.$refs.datepicker.currentValue;if(r)try{const i=new Date(new Date(r).setMonth(e));this.$refs.datepicker.selectDate(i)}catch{console.error("Invalid value",r,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var xf=function(){var e=this,r=e._self._c;return r("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.internalFormat,formatter:e.internalFormatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},range:e.internalRange,"show-week-number":e.showWeekNumber,type:e.realType,value:e.model},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,input:function(i){e.model=i}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?r("NcPopover",{attrs:{"popup-role":"dialog",shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(i){e.showTimezonePopover=i}},scopedSlots:e._u([{key:"trigger",fn:function({attrs:i}){return[r("button",e._b({staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),(()=>{}).apply(null,arguments)}}},"button",i,!1),[r("Web",{attrs:{size:20}})],1)]}}],null,!1,270852355)},[r("div",{attrs:{role:"dialog","aria-labelledby":e.timezoneDialogHeaderId}},[r("div",{staticClass:"timezone-popover-wrapper__label"},[r("strong",{attrs:{id:e.timezoneDialogHeaderId}},[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),r("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(i){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(i){e.tzVal=i},expression:"tzVal"}})],1)]):r("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(i,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},Lf=[],If=St(Cf,xf,Lf,!1,null,"9cec8c69");const kf=If.exports;p0(kf);const Hf=["date","datetime-local","month","time","week"],Gf={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+sr(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>Hf.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:si("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const r=e.target.value;if(this.model===""){const{yyyy:i,MM:n,dd:a}=this.getReadableDate(new Date);this.model=new Date(`${i}-${n}-${a}T${r}`)}else{const{yyyy:i,MM:n,dd:a}=this.getReadableDate(this.model);this.model=new Date(`${i}-${n}-${a}T${r}`)}}else if(this.type==="month"){const r=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:i,dd:n,hh:a,mm:s}=this.getReadableDate(new Date);this.model=new Date(`${i}-${r}-${n}T${a}:${s}`)}else{const{yyyy:i,dd:n,hh:a,mm:s}=this.getReadableDate(this.model);this.model=new Date(`${i}-${r}-${n}T${a}:${s}`)}}else{const r=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,i=e.target.valueAsNumber+r;this.model=new Date(i)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const r=e.getFullYear().toString().padStart(4,"0"),i=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),a=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0");return{yyyy:r,MM:i,dd:n,hh:a,mm:s}}},formatValue(e){if(e instanceof Date){const{yyyy:r,MM:i,dd:n,hh:a,mm:s}=this.getReadableDate(e);if(this.type==="datetime-local")return`${r}-${i}-${n}T${a}:${s}`;if(this.type==="date")return`${r}-${i}-${n}`;if(this.type==="month")return`${r}-${i}`;if(this.type==="time")return`${a}:${s}`;if(this.type==="week"){const l=new Date(r,0,1),u=Math.floor((e-l)/(24*60*60*1e3)),o=Math.ceil(u/7);return`${r}-W${o}`}}else return""}}};var Uf=function(){var e=this,r=e._self._c;return r("div",{staticClass:"native-datetime-picker"},[r("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),r("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},jf=[],Pf=St(Gf,Uf,jf,!1,null,"9e776556");const zf=Pf.exports;p0(zf);const Vf={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var $f=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Qf=[],Wf=St(Vf,$f,Qf,!1,null,null);const Kf=Wf.exports,qf={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xf=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Jf=[],tp=St(qf,Xf,Jf,!1,null,null);const ep=tp.exports,rp={name:"NcInputField",components:{NcButton:h0,AlertCircle:Kf,Check:ep},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){return{model:si("value","update:value",!0)}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+sr()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const r=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=r},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var ip=function(){var e=this,r=e._self._c;return r("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill}},[r("div",{staticClass:"input-field__main-wrapper"},[r("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?r("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?r("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?r("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?r("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?r("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?r("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?r("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?r("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},np=[],ap=St(rp,ip,np,!1,null,"8f3abf17");const mi=ap.exports;it(pl),gr("core","capabilities",{}).password_policy,new Set(Object.keys(mi.props)),{...mi.props},Na(async function(e){try{const{data:r}=await Pe.post(ga("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=r.ocs.data.passed,r.ocs.data.passed){this.internalHelpMessage=P("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=r.ocs.data.reason,this.$emit("invalid")}catch(r){W0.error("Password policy returned an error",r)}},500),it(Al,A0),new Set(Object.keys(mi.props)),{...mi.props},it(E0),P("Submit"),it(El),Ba("nextcloud").persist().build(),pn().theming?.name;const zs=gr("core","active-app",o0),$n=gr("core","apps",{});Array.isArray($n)?$n.find(e=>e.id===zs)?.name:$n[zs]?.name,window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),it(Dl),window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),it(ml),it(Sl),it(gl,A0),it(D0,Fl);P("Search…"),it(Rl),P("Settings"),it(Nl),Na(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);let sp="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",op=(e=21)=>{let r="",i=e|0;for(;i--;)r+=sp[Math.random()*64|0];return r};function Mi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Mi=function(r){return typeof r}:Mi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Mi(e)}var Ao={selector:"vue-portal-target-".concat(op())},lp=function(e){return Ao.selector=e},Qn=typeof window<"u"&&(typeof document>"u"?"undefined":Mi(document))!==void 0,up=ie.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var r=this.updatedNodes&&this.updatedNodes();return r?r.length===1&&!r[0].text?r:e(this.tag||"DIV",r):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),cp=ie.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Ao.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var r=this.$scopedSlots&&this.$scopedSlots.default();return r?r.length<2&&!r[0].text?r:e(this.tag,r):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(Qn)return document.querySelector(this.selector)},insertTargetEl:function(){if(Qn){var e=document.querySelector("body"),r=document.createElement(this.tag);r.id=this.selector.substring(1),e.appendChild(r)}},mount:function(){if(Qn){var e=this.getTargetEl(),r=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),this.container=new up({el:r,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function Tp(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(r.name||"portal",cp),r.defaultSelector&&lp(r.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===ie&&ie.use(Tp),it();const dp="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",hp="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",da="numeric",ha="ascii",fa="alpha",Ur="asciinumeric",Cr="alphanumeric",pa="domain",Eo="emoji",fp="scheme",pp="slashscheme",Wn="whitespace";function Ap(e,r){return e in r||(r[e]=[]),r[e]}function er(e,r,i){r[da]&&(r[Ur]=!0,r[Cr]=!0),r[ha]&&(r[Ur]=!0,r[fa]=!0),r[Ur]&&(r[Cr]=!0),r[fa]&&(r[Cr]=!0),r[Cr]&&(r[pa]=!0),r[Eo]&&(r[pa]=!0);for(const n in r){const a=Ap(n,i);a.indexOf(e)<0&&a.push(e)}}function Ep(e,r){const i={};for(const n in r)r[n].indexOf(e)>=0&&(i[n]=!0);return i}function Kt(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Kt.groups={},Kt.prototype={accepts(){return!!this.t},go(e){const r=this,i=r.j[e];if(i)return i;for(let n=0;ne.ta(r,i,n,a),Rt=(e,r,i,n,a)=>e.tr(r,i,n,a),Vs=(e,r,i,n,a)=>e.ts(r,i,n,a),L=(e,r,i,n,a)=>e.tt(r,i,n,a),Re="WORD",Aa="UWORD",Do="ASCIINUMERICAL",mo="ALPHANUMERICAL",ei="LOCALHOST",Ea="TLD",Da="UTLD",wi="SCHEME",pr="SLASH_SCHEME",ka="NUM",ma="WS",Ha="NL",jr="OPENBRACE",Pr="CLOSEBRACE",Gi="OPENBRACKET",Ui="CLOSEBRACKET",ji="OPENPAREN",Pi="CLOSEPAREN",zi="OPENANGLEBRACKET",Vi="CLOSEANGLEBRACKET",$i="FULLWIDTHLEFTPAREN",Qi="FULLWIDTHRIGHTPAREN",Wi="LEFTCORNERBRACKET",Ki="RIGHTCORNERBRACKET",qi="LEFTWHITECORNERBRACKET",Xi="RIGHTWHITECORNERBRACKET",Ji="FULLWIDTHLESSTHAN",tn="FULLWIDTHGREATERTHAN",en="AMPERSAND",rn="APOSTROPHE",nn="ASTERISK",Le="AT",an="BACKSLASH",sn="BACKTICK",on="CARET",Ue="COLON",Ga="COMMA",ln="DOLLAR",de="DOT",un="EQUALS",Ua="EXCLAMATION",te="HYPHEN",zr="PERCENT",cn="PIPE",Tn="PLUS",dn="POUND",Vr="QUERY",ja="QUOTE",So="FULLWIDTHMIDDLEDOT",Pa="SEMI",he="SLASH",$r="TILDE",hn="UNDERSCORE",go="EMOJI",fn="SYM";var Fo=Object.freeze({__proto__:null,ALPHANUMERICAL:mo,AMPERSAND:en,APOSTROPHE:rn,ASCIINUMERICAL:Do,ASTERISK:nn,AT:Le,BACKSLASH:an,BACKTICK:sn,CARET:on,CLOSEANGLEBRACKET:Vi,CLOSEBRACE:Pr,CLOSEBRACKET:Ui,CLOSEPAREN:Pi,COLON:Ue,COMMA:Ga,DOLLAR:ln,DOT:de,EMOJI:go,EQUALS:un,EXCLAMATION:Ua,FULLWIDTHGREATERTHAN:tn,FULLWIDTHLEFTPAREN:$i,FULLWIDTHLESSTHAN:Ji,FULLWIDTHMIDDLEDOT:So,FULLWIDTHRIGHTPAREN:Qi,HYPHEN:te,LEFTCORNERBRACKET:Wi,LEFTWHITECORNERBRACKET:qi,LOCALHOST:ei,NL:Ha,NUM:ka,OPENANGLEBRACKET:zi,OPENBRACE:jr,OPENBRACKET:Gi,OPENPAREN:ji,PERCENT:zr,PIPE:cn,PLUS:Tn,POUND:dn,QUERY:Vr,QUOTE:ja,RIGHTCORNERBRACKET:Ki,RIGHTWHITECORNERBRACKET:Xi,SCHEME:wi,SEMI:Pa,SLASH:he,SLASH_SCHEME:pr,SYM:fn,TILDE:$r,TLD:Ea,UNDERSCORE:hn,UTLD:Da,UWORD:Aa,WORD:Re,WS:ma});const ge=/[a-z]/,_r=new RegExp("\\p{L}","u"),Kn=new RegExp("\\p{Emoji}","u"),Fe=/\d/,qn=/\s/,$s="\r",Xn=` `,Dp="️",mp="‍",Jn="";let Si=null,gi=null;function Sp(e=[]){const r={};Kt.groups=r;const i=new Kt;Si==null&&(Si=Qs(dp)),gi==null&&(gi=Qs(hp)),L(i,"'",rn),L(i,"{",jr),L(i,"}",Pr),L(i,"[",Gi),L(i,"]",Ui),L(i,"(",ji),L(i,")",Pi),L(i,"<",zi),L(i,">",Vi),L(i,"(",$i),L(i,")",Qi),L(i,"「",Wi),L(i,"」",Ki),L(i,"『",qi),L(i,"』",Xi),L(i,"<",Ji),L(i,">",tn),L(i,"&",en),L(i,"*",nn),L(i,"@",Le),L(i,"`",sn),L(i,"^",on),L(i,":",Ue),L(i,",",Ga),L(i,"$",ln),L(i,".",de),L(i,"=",un),L(i,"!",Ua),L(i,"-",te),L(i,"%",zr),L(i,"|",cn),L(i,"+",Tn),L(i,"#",dn),L(i,"?",Vr),L(i,'"',ja),L(i,"/",he),L(i,";",Pa),L(i,"~",$r),L(i,"_",hn),L(i,"\\",an),L(i,"・",So);const n=Rt(i,Fe,ka,{[da]:!0});Rt(n,Fe,n);const a=Rt(n,ge,Do,{[Ur]:!0}),s=Rt(n,_r,mo,{[Cr]:!0}),l=Rt(i,ge,Re,{[ha]:!0});Rt(l,Fe,a),Rt(l,ge,l),Rt(a,Fe,a),Rt(a,ge,a);const u=Rt(i,_r,Aa,{[fa]:!0});Rt(u,ge),Rt(u,Fe,s),Rt(u,_r,u),Rt(s,Fe,s),Rt(s,ge),Rt(s,_r,s);const o=L(i,Xn,Ha,{[Wn]:!0}),T=L(i,$s,ma,{[Wn]:!0}),c=Rt(i,qn,ma,{[Wn]:!0});L(i,Jn,c),L(T,Xn,o),L(T,Jn,c),Rt(T,qn,c),L(c,$s),L(c,Xn),Rt(c,qn,c),L(c,Jn,c);const d=Rt(i,Kn,go,{[Eo]:!0});L(d,"#"),Rt(d,Kn,d),L(d,Dp,d);const h=L(d,mp);L(h,"#"),Rt(h,Kn,d);const f=[[ge,l],[Fe,a]],D=[[ge,null],[_r,u],[Fe,s]];for(let E=0;EE[0]>R[0]?1:-1);for(let E=0;E=0?v[pa]=!0:ge.test(R)?Fe.test(R)?v[Ur]=!0:v[ha]=!0:v[da]=!0,Vs(i,R,R,v)}return Vs(i,"localhost",ei,{ascii:!0}),i.jd=new Kt(fn),{start:i,tokens:Object.assign({groups:r},Fo)}}function Ro(e,r){const i=gp(r.replace(/[A-Z]/g,u=>u.toLowerCase())),n=i.length,a=[];let s=0,l=0;for(;l=0&&(d+=i[l].length,h++),T+=i[l].length,s+=i[l].length,l++;s-=d,l-=h,T-=d,a.push({t:c.t,v:r.slice(s-T,s),s:s-T,e:s})}return a}function gp(e){const r=[],i=e.length;let n=0;for(;n56319||n+1===i||(s=e.charCodeAt(n+1))<56320||s>57343?e[n]:e.slice(n,n+2);r.push(l),n+=l.length}return r}function Ce(e,r,i,n,a){let s;const l=r.length;for(let u=0;u=0;)s++;if(s>0){r.push(i.join(""));for(let l=parseInt(e.substring(n,n+s),10);l>0;l--)i.pop();n+=s}else i.push(e[n]),n++}return r}const ri={defaultProtocol:"http",events:null,format:Ws,formatHref:Ws,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function za(e,r=null){let i=Object.assign({},ri);e&&(i=Object.assign(i,e instanceof za?e.o:e));const n=i.ignoreTags,a=[];for(let s=0;si?n.substring(0,i)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=ri.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const r=this,i=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",i,this),a=e.get("tagName",i,r),s=this.toFormattedString(e),l={},u=e.get("className",i,r),o=e.get("target",i,r),T=e.get("rel",i,r),c=e.getObj("attributes",i,r),d=e.getObj("events",i,r);return l.href=n,u&&(l.class=u),o&&(l.target=o),T&&(l.rel=T),c&&Object.assign(l,c),{tagName:a,attributes:l,content:s,eventListeners:d}}};function yn(e,r){class i extends No{constructor(a,s){super(a,s),this.t=e}}for(const n in r)i.prototype[n]=r[n];return i.t=e,i}const Ks=yn("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),qs=yn("text"),Fp=yn("nl"),Fi=yn("url",{isLink:!0,toHref(e=ri.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==ei&&e[1].t===Ue}}),Jt=e=>new Kt(e);function Rp({groups:e}){const r=e.domain.concat([en,nn,Le,an,sn,on,ln,un,te,ka,zr,cn,Tn,dn,he,fn,$r,hn]),i=[rn,Ue,Ga,de,Ua,zr,Vr,ja,Pa,zi,Vi,jr,Pr,Ui,Gi,ji,Pi,$i,Qi,Wi,Ki,qi,Xi,Ji,tn],n=[en,rn,nn,an,sn,on,ln,un,te,jr,Pr,zr,cn,Tn,dn,Vr,he,fn,$r,hn],a=Jt(),s=L(a,$r);st(s,n,s),st(s,e.domain,s);const l=Jt(),u=Jt(),o=Jt();st(a,e.domain,l),st(a,e.scheme,u),st(a,e.slashscheme,o),st(l,n,s),st(l,e.domain,l);const T=L(l,Le);L(s,Le,T),L(u,Le,T),L(o,Le,T);const c=L(s,de);st(c,n,s),st(c,e.domain,s);const d=Jt();st(T,e.domain,d),st(d,e.domain,d);const h=L(d,de);st(h,e.domain,d);const f=Jt(Ks);st(h,e.tld,f),st(h,e.utld,f),L(T,ei,f);const D=L(d,te);L(D,te,D),st(D,e.domain,d),st(f,e.domain,d),L(f,de,h),L(f,te,D);const E=L(f,Ue);st(E,e.numeric,Ks);const R=L(l,te),v=L(l,de);L(R,te,R),st(R,e.domain,l),st(v,n,s),st(v,e.domain,l);const N=Jt(Fi);st(v,e.tld,N),st(v,e.utld,N),st(N,e.domain,l),st(N,n,s),L(N,de,v),L(N,te,R),L(N,Le,T);const M=L(N,Ue),z=Jt(Fi);st(M,e.numeric,z);const H=Jt(Fi),C=Jt();st(H,r,H),st(H,i,C),st(C,r,H),st(C,i,C),L(N,he,H),L(z,he,H);const K=L(u,Ue),Q=L(o,Ue),j=L(Q,he),A=L(j,he);st(u,e.domain,l),L(u,de,v),L(u,te,R),st(o,e.domain,l),L(o,de,v),L(o,te,R),st(K,e.domain,H),L(K,he,H),L(K,Vr,H),st(A,e.domain,H),st(A,r,H),L(A,he,H);const y=[[jr,Pr],[Gi,Ui],[ji,Pi],[zi,Vi],[$i,Qi],[Wi,Ki],[qi,Xi],[Ji,tn]];for(let b=0;b=0&&h++,a++,c++;if(h<0)a-=c,a0&&(s.push(ta(qs,r,l)),l=[]),a-=h,c-=h;const f=d.t,D=i.slice(a-c,a);s.push(ta(f,r,D))}}return l.length>0&&s.push(ta(qs,r,l)),s}function ta(e,r,i){const n=i[0].s,a=i[i.length-1].e,s=r.slice(n,a);return new e(s,i)}const kt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function Op(){kt.scanner=Sp(kt.customSchemes);for(let e=0;e/g,">")}function vp(e){return e.replace(/"/g,""")}function yp(e){const r=[];for(const i in e){let n=e[i]+"";r.push(`${i}="${vp(n)}"`)}return r.join(" ")}function bp({tagName:e,attributes:r,content:i}){return`<${e} ${yp(r)}>${vo(i)}`}function Yp(e,r={}){r=new za(r,bp);const i=Oo(e),n=[];for(let a=0;a `):!s.isLink||!r.check(s)?n.push(vo(s.toString())):n.push(r.render(s))}return n.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return Yp(this,e)}}),it(Ol);var yo={exports:{}};(function(e){var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function a(o,T,c){this.fn=o,this.context=T,this.once=c||!1}function s(o,T,c,d,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var f=new a(c,d||o,h),D=i?i+T:T;return o._events[D]?o._events[D].fn?o._events[D]=[o._events[D],f]:o._events[D].push(f):(o._events[D]=f,o._eventsCount++),o}function l(o,T){--o._eventsCount===0?o._events=new n:delete o._events[T]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var o=[],T,c;if(this._eventsCount===0)return o;for(c in T=this._events)r.call(T,c)&&o.push(i?c.slice(1):c);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(T)):o},u.prototype.listeners=function(o){var T=i?i+o:o,c=this._events[T];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,f=new Array(h);dglobalThis.DOMException===void 0?new _p(e):new DOMException(e),Js=e=>{const r=e.reason===void 0?Xs("This operation was aborted."):e.reason;return r instanceof Error?r:Xs(r)};function Zp(e,r){const{milliseconds:i,fallback:n,message:a,customTimers:s={setTimeout,clearTimeout}}=r;let l,u;const o=new Promise((T,c)=>{if(typeof i!="number"||Math.sign(i)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${i}\``);if(r.signal){const{signal:h}=r;h.aborted&&c(Js(h)),u=()=>{c(Js(h))},h.addEventListener("abort",u,{once:!0})}if(i===Number.POSITIVE_INFINITY){e.then(T,c);return}const d=new bo;l=s.setTimeout.call(void 0,()=>{if(n){try{T(n())}catch(h){c(h)}return}typeof e.cancel=="function"&&e.cancel(),a===!1?T():a instanceof Error?c(a):(d.message=a??`Promise timed out after ${i} milliseconds`,c(d))},i),(async()=>{try{T(await e)}catch(h){c(h)}})()}).finally(()=>{o.clear(),u&&r.signal&&r.signal.removeEventListener("abort",u)});return o.clear=()=>{s.clearTimeout.call(void 0,l),l=void 0},o}function Bp(e,r,i){let n=0,a=e.length;for(;a>0;){const s=Math.trunc(a/2);let l=n+s;i(e[l],r)<=0?(n=++l,a-=s+1):a=s}return n}class Cp{#t=[];enqueue(r,i){i={priority:0,...i};const n={priority:i.priority,id:i.id,run:r};if(this.size===0||this.#t[this.size-1].priority>=i.priority){this.#t.push(n);return}const a=Bp(this.#t,n,(s,l)=>l.priority-s.priority);this.#t.splice(a,0,n)}setPriority(r,i){const n=this.#t.findIndex(s=>s.id===r);if(n===-1)throw new ReferenceError(`No promise function with the id "${r}" exists in the queue.`);const[a]=this.#t.splice(n,1);this.enqueue(a.run,{priority:i,id:r})}dequeue(){return this.#t.shift()?.run}filter(r){return this.#t.filter(i=>i.priority===r.priority).map(i=>i.run)}get size(){return this.#t.length}}class xp extends wp{#t;#e;#r=0;#n;#a;#l=0;#s;#c;#i;#p;#o=0;#T;#u;#A;#m=1n;timeout;constructor(r){if(super(),r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:Cp,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${r.intervalCap?.toString()??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${r.interval?.toString()??""}\` (${typeof r.interval})`);this.#t=r.carryoverConcurrencyCount,this.#e=r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0,this.#n=r.intervalCap,this.#a=r.interval,this.#i=new r.queueClass,this.#p=r.queueClass,this.concurrency=r.concurrency,this.timeout=r.timeout,this.#A=r.throwOnTimeout===!0,this.#u=r.autoStart===!1}get#S(){return this.#e||this.#r{this.#R()},i)),!0}return!1}#d(){if(this.#i.size===0)return this.#s&&clearInterval(this.#s),this.#s=void 0,this.emit("empty"),this.#o===0&&this.emit("idle"),!1;if(!this.#u){const r=!this.#N;if(this.#S&&this.#g){const i=this.#i.dequeue();return i?(this.emit("active"),i(),r&&this.#E(),!0):!1}}return!1}#E(){this.#e||this.#s!==void 0||(this.#s=setInterval(()=>{this.#D()},this.#a),this.#l=Date.now()+this.#a)}#D(){this.#r===0&&this.#o===0&&this.#s&&(clearInterval(this.#s),this.#s=void 0),this.#r=this.#t?this.#o:0,this.#h()}#h(){for(;this.#d(););}get concurrency(){return this.#T}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);this.#T=r,this.#h()}async#O(r){return new Promise((i,n)=>{r.addEventListener("abort",()=>{n(r.reason)},{once:!0})})}setPriority(r,i){this.#i.setPriority(r,i)}async add(r,i={}){return i.id??=(this.#m++).toString(),i={timeout:this.timeout,throwOnTimeout:this.#A,...i},new Promise((n,a)=>{this.#i.enqueue(async()=>{this.#o++;try{i.signal?.throwIfAborted(),this.#r++;let s=r({signal:i.signal});i.timeout&&(s=Zp(Promise.resolve(s),{milliseconds:i.timeout})),i.signal&&(s=Promise.race([s,this.#O(i.signal)]));const l=await s;n(l),this.emit("completed",l)}catch(s){if(s instanceof bo&&!i.throwOnTimeout){n();return}a(s),this.emit("error",s)}finally{this.#F()}},i),this.emit("add"),this.#d()})}async addAll(r,i){return Promise.all(r.map(async n=>this.add(n,i)))}start(){return this.#u?(this.#u=!1,this.#h(),this):this}pause(){this.#u=!0}clear(){this.#i=new this.#p}async onEmpty(){this.#i.size!==0&&await this.#f("empty")}async onSizeLessThan(r){this.#i.sizethis.#i.size{const a=()=>{i&&!i()||(this.off(r,a),n())};this.on(r,a)})}get size(){return this.#i.size}sizeBy(r){return this.#i.filter(r).length}get pending(){return this.#o}get isPaused(){return this.#u}}new xp({concurrency:5}),it(vl),it(yl);var Lp={exports:{}};(function(e,r){(function(i,n){e.exports=n()})(typeof self<"u"?self:Ie,function(){return function(i){function n(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var a={};return n.m=i,n.c=a,n.d=function(s,l,u){n.o(s,l)||Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:u})},n.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(l,"a",l),l},n.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},n.p="",n(n.s=59)}([function(i,n){function a(l,u){var o=l[1]||"",T=l[3];if(!T)return o;if(u&&typeof btoa=="function"){var c=s(T);return[o].concat(T.sources.map(function(d){return"/*# sourceURL="+T.sourceRoot+d+" */"})).concat([c]).join(` `)}return[o].join(` `)}function s(l){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */"}i.exports=function(l){var u=[];return u.toString=function(){return this.map(function(o){var T=a(o,l);return o[2]?"@media "+o[2]+"{"+T+"}":T}).join("")},u.i=function(o,T){typeof o=="string"&&(o=[[null,o,""]]);for(var c={},d=0;dQ.parts.length&&(j.parts.length=Q.parts.length)}else{for(var y=[],A=0;A"u"||(v=__VUE_SSR_CONTEXT__),u&&u.call(this,v),v&&v._registeredComponents&&v._registeredComponents.add(T)},f._ssrRegister=D):u&&(D=u),D){var E=f.functional,R=E?f.render:f.beforeCreate;E?(f._injectStyles=D,f.render=function(v,N){return D.call(N),R(v,N)}):f.beforeCreate=R?[].concat(R,D):[D]}return{esModule:c,exports:d,options:f}}},function(i,n,a){function s(o,T){var c,d=o&&o.a;!(c=o&&o.hsl?(0,u.default)(o.hsl):o&&o.hex&&o.hex.length>0?(0,u.default)(o.hex):o&&o.hsv?(0,u.default)(o.hsv):o&&o.rgba?(0,u.default)(o.rgba):o&&o.rgb?(0,u.default)(o.rgb):(0,u.default)(o))||c._a!==void 0&&c._a!==null||c.setAlpha(d||1);var h=c.toHsl(),f=c.toHsv();return h.s===0&&(f.h=h.h=o.h||o.hsl&&o.hsl.h||T||0),{hsl:h,hex:c.toHexString().toUpperCase(),hex8:c.toHex8String().toUpperCase(),rgba:c.toRgb(),hsv:f,oldHue:o.h||T||h.h,source:o.source,a:o.a||c.getAlpha()}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(64),u=function(o){return o&&o.__esModule?o:{default:o}}(l);n.default={props:["value"],data:function(){return{val:s(this.value)}},computed:{colors:{get:function(){return this.val},set:function(o){this.val=o,this.$emit("input",o)}}},watch:{value:function(o){this.val=s(o)}},methods:{colorChange:function(o,T){this.oldHue=this.colors.hsl.h,this.colors=s(o,T||this.oldHue)},isValidHex:function(o){return(0,u.default)(o).isValid()},simpleCheckForValidColor:function(o){for(var T=["r","g","b","a","h","s","l","v"],c=0,d=0,h=0;h0?s:a)(l)}},function(i,n){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(i,n){i.exports=!0},function(i,n){var a=i.exports={version:"2.5.1"};typeof __e=="number"&&(__e=a)},function(i,n,a){var s=a(14);i.exports=function(l,u){if(!s(l))return l;var o,T;if(u&&typeof(o=l.toString)=="function"&&!s(T=o.call(l))||typeof(o=l.valueOf)=="function"&&!s(T=o.call(l))||!u&&typeof(o=l.toString)=="function"&&!s(T=o.call(l)))return T;throw TypeError("Can't convert object to primitive value")}},function(i,n){i.exports={}},function(i,n,a){var s=a(46),l=a(30);i.exports=Object.keys||function(u){return s(u,l)}},function(i,n,a){var s=a(29)("keys"),l=a(17);i.exports=function(u){return s[u]||(s[u]=l(u))}},function(i,n,a){var s=a(4),l=s["__core-js_shared__"]||(s["__core-js_shared__"]={});i.exports=function(u){return l[u]||(l[u]={})}},function(i,n){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,n,a){var s=a(8).f,l=a(6),u=a(11)("toStringTag");i.exports=function(o,T,c){o&&!l(o=c?o:o.prototype,u)&&s(o,u,{configurable:!0,value:T})}},function(i,n,a){n.f=a(11)},function(i,n,a){var s=a(4),l=a(24),u=a(23),o=a(32),T=a(8).f;i.exports=function(c){var d=l.Symbol||(l.Symbol=u?{}:s.Symbol||{});c.charAt(0)=="_"||c in d||T(d,c,{value:o.f(c)})}},function(i,n){n.f={}.propertyIsEnumerable},function(i,n,a){function s(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(3),u=s(l),o=a(5),T=s(o),c=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];n.default={name:"Compact",mixins:[u.default],props:{palette:{type:Array,default:function(){return c}}},components:{"ed-in":T.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(d){this.colorChange({hex:d,source:"hex"})}}}},function(i,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(s){if(!(this.max!==void 0&&+s>this.max))return s;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(s){this.handleChange(s.target.value)},handleChange:function(s){var l={};l[this.label]=s,l.hex===void 0&&l["#"]===void 0?this.$emit("change",l):s.length>5&&this.$emit("change",l)},handleKeyDown:function(s){var l=this.val,u=Number(l);if(u){var o=this.arrowOffset||1;s.keyCode===38&&(l=u+o,this.handleChange(l),s.preventDefault()),s.keyCode===40&&(l=u-o,this.handleChange(l),s.preventDefault())}}}}},function(i,n,a){Object.defineProperty(n,"__esModule",{value:!0});var s=a(3),l=function(o){return o&&o.__esModule?o:{default:o}}(s),u=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];n.default={name:"Grayscale",mixins:[l.default],props:{palette:{type:Array,default:function(){return u}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(o){this.colorChange({hex:o,source:"hex"})}}}},function(i,n,a){function s(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(5),u=s(l),o=a(3),T=s(o);n.default={name:"Material",mixins:[T.default],components:{"ed-in":u.default},methods:{onChange:function(c){c&&(c.hex?this.isValidHex(c.hex)&&this.colorChange({hex:c.hex,source:"hex"}):(c.r||c.g||c.b)&&this.colorChange({r:c.r||this.colors.rgba.r,g:c.g||this.colors.rgba.g,b:c.b||this.colors.rgba.b,a:c.a||this.colors.rgba.a,source:"rgba"}))}}}},function(i,n,a){function s(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(80),u=s(l),o=a(3),T=s(o),c=a(12),d=s(c);n.default={name:"Slider",mixins:[T.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:d.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(h){return(h===void 0?"undefined":(0,u.default)(h))!=="object"?{s:.5,l:h}:h})}},methods:{isActive:function(h,f){var D=this.colors.hsl;return D.l===1&&h.l===1||D.l===0&&h.l===0||Math.abs(D.l-h.l)<.01&&Math.abs(D.s-h.s)<.01},hueChange:function(h){this.colorChange(h)},handleSwClick:function(h,f){this.colorChange({h:this.colors.hsl.h,s:f.s,l:f.l,source:"hsl"})}}}},function(i,n,a){var s=a(23),l=a(41),u=a(44),o=a(7),T=a(6),c=a(26),d=a(87),h=a(31),f=a(94),D=a(11)("iterator"),E=!([].keys&&"next"in[].keys()),R=function(){return this};i.exports=function(v,N,M,z,H,C,K){d(M,N,z);var Q,j,A,y=function(ct){if(!E&&ct in x)return x[ct];switch(ct){case"keys":case"values":return function(){return new M(this,ct)}}return function(){return new M(this,ct)}},b=N+" Iterator",Z=H=="values",V=!1,x=v.prototype,X=x[D]||x["@@iterator"]||H&&x[H],tt=X||y(H),pt=H?Z?y("entries"):tt:void 0,nt=N=="Array"&&x.entries||X;if(nt&&(A=f(nt.call(new v)))!==Object.prototype&&A.next&&(h(A,b,!0),s||T(A,D)||o(A,D,R)),Z&&X&&X.name!=="values"&&(V=!0,tt=function(){return X.call(this)}),s&&!K||!E&&!V&&x[D]||o(x,D,tt),c[N]=tt,c[b]=R,H)if(Q={values:Z?tt:y("values"),keys:C?tt:y("keys"),entries:pt},K)for(j in Q)j in x||u(x,j,Q[j]);else l(l.P+l.F*(E||V),N,Q);return Q}},function(i,n,a){var s=a(4),l=a(24),u=a(85),o=a(7),T=function(c,d,h){var f,D,E,R=c&T.F,v=c&T.G,N=c&T.S,M=c&T.P,z=c&T.B,H=c&T.W,C=v?l:l[d]||(l[d]={}),K=C.prototype,Q=v?s:N?s[d]:(s[d]||{}).prototype;v&&(h=d);for(f in h)(D=!R&&Q&&Q[f]!==void 0)&&f in C||(E=D?Q[f]:h[f],C[f]=v&&typeof Q[f]!="function"?h[f]:z&&D?u(E,s):H&&Q[f]==E?function(j){var A=function(y,b,Z){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(y);case 2:return new j(y,b)}return new j(y,b,Z)}return j.apply(this,arguments)};return A.prototype=j.prototype,A}(E):M&&typeof E=="function"?u(Function.call,E):E,M&&((C.virtual||(C.virtual={}))[f]=E,c&T.R&&K&&!K[f]&&o(K,f,E)))};T.F=1,T.G=2,T.S=4,T.P=8,T.B=16,T.W=32,T.U=64,T.R=128,i.exports=T},function(i,n,a){i.exports=!a(9)&&!a(15)(function(){return Object.defineProperty(a(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(i,n,a){var s=a(14),l=a(4).document,u=s(l)&&s(l.createElement);i.exports=function(o){return u?l.createElement(o):{}}},function(i,n,a){i.exports=a(7)},function(i,n,a){var s=a(13),l=a(88),u=a(30),o=a(28)("IE_PROTO"),T=function(){},c=function(){var d,h=a(43)("iframe"),f=u.length;for(h.style.display="none",a(93).appendChild(h),h.src="javascript:",d=h.contentWindow.document,d.open(),d.write("