diff --git a/js/Activity-92762149.mjs b/js/Activity-9dc8fb62.mjs
similarity index 94%
rename from js/Activity-92762149.mjs
rename to js/Activity-9dc8fb62.mjs
index a645d52de..25950479e 100644
--- a/js/Activity-92762149.mjs
+++ b/js/Activity-9dc8fb62.mjs
@@ -39,12 +39,12 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see .
*
- */.material-design-icon[data-v-44bb430a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.textarea[data-v-44bb430a]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px;resize:vertical}.textarea__main-wrapper[data-v-44bb430a]{position:relative}.textarea--disabled[data-v-44bb430a]{opacity:.7;filter:saturate(.7)}.textarea__input[data-v-44bb430a]{margin:0;padding-inline:10px 6px;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer}.textarea__input[data-v-44bb430a]:active:not([disabled]),.textarea__input[data-v-44bb430a]:hover:not([disabled]),.textarea__input[data-v-44bb430a]:focus:not([disabled]){border-color:var(--color-primary-element)}.textarea__input[data-v-44bb430a]:not(:focus,.textarea__input--label-outside)::placeholder{opacity:0}.textarea__input[data-v-44bb430a]:focus{cursor:text}.textarea__input[data-v-44bb430a]:disabled{cursor:default}.textarea__input[data-v-44bb430a]:focus-visible{box-shadow:unset!important}.textarea__input--success[data-v-44bb430a]{border-color:var(--color-success)!important}.textarea__input--success[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--success:focus+.textarea__label[data-v-44bb430a],.textarea__input--success:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-success-text)}.textarea__input--error[data-v-44bb430a]{border-color:var(--color-error)!important}.textarea__input--error[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--error:focus+.textarea__label[data-v-44bb430a],.textarea__input--error:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-error-text)}.textarea__input:not(.textarea__input--success,.textarea__input--error):focus+.textarea__label[data-v-44bb430a],.textarea__input:not(.textarea__input--success,.textarea__input--error):hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-primary-element)}.textarea__label[data-v-44bb430a]{position:absolute;margin-inline:12px 0;height:17px;max-width:fit-content;line-height:1;inset-block-start:12px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.textarea__input:focus+.textarea__label[data-v-44bb430a],.textarea__input:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{inset-block-start:-6px;font-size:13px;background-color:var(--color-main-background);height:14px;padding-inline:4px;margin-inline-start:8px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.textarea__helper-text-message[data-v-44bb430a]{padding-block:4px;display:flex;align-items:center}.textarea__helper-text-message__icon[data-v-44bb430a]{margin-inline-end:8px}.textarea__helper-text-message--error[data-v-44bb430a]{color:var(--color-error-text)}.textarea__helper-text-message--success[data-v-44bb430a]{color:var(--color-success-text)}.rich-text-file .icon-home[data-v-f30ef6d6]{display:inline-block;vertical-align:text-top}strong[data-v-b8794790]{padding:2px 5px;border-radius:3px;background-color:var(--color-background-darker);font-weight:400}.activity-entry[data-v-58cdc304]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;height:var(--height);min-height:32px;padding:8px 0}.activity-entry__icon[data-v-58cdc304]{opacity:.5;margin-top:2px;margin-right:8px}.activity-entry .avatardiv[data-v-58cdc304]{background-color:unset!important}.activity-entry__content[data-v-58cdc304]{display:flex;flex-basis:min-content;flex-direction:column;flex-grow:1;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word;overflow:hidden}.activity-entry__content__message[data-v-58cdc304]{color:var(--color-text-lighter)}.activity-entry__content[data-v-58cdc304] a{font-weight:700}.activity-entry__content[data-v-58cdc304] a:hover{opacity:.7;text-decoration:underline}.activity-entry__date[data-v-58cdc304]{color:var(--color-text-lighter);margin-left:5px;flex-shrink:0}.activity-entry__preview-wrapper[data-v-58cdc304]{flex:0 0 100%;gap:12px;margin-inline-start:24px}.activity-entry__preview[data-v-58cdc304]:hover{opacity:.75}.activity-entry__preview-image[data-v-58cdc304]{height:50px;width:50px}.activity-entry__preview-image[data-v-58cdc304]:not(.activity-entry__preview-mimetype){border:2px solid var(--color-border);border-radius:var(--border-radius-large)}.activity-entry__preview-image[data-v-58cdc304]:not(.activity-entry__preview-mimetype):hover{border-color:var(--color-main-text);outline:2px solid var(--color-main-background)}`)),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
+ */.material-design-icon[data-v-44bb430a]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.textarea[data-v-44bb430a]{position:relative;width:100%;border-radius:var(--border-radius-large);margin-block-start:6px;resize:vertical}.textarea__main-wrapper[data-v-44bb430a]{position:relative}.textarea--disabled[data-v-44bb430a]{opacity:.7;filter:saturate(.7)}.textarea__input[data-v-44bb430a]{margin:0;padding-inline:10px 6px;width:100%;font-size:var(--default-font-size);text-overflow:ellipsis;background-color:var(--color-main-background);color:var(--color-main-text);border:2px solid var(--color-border-maxcontrast);border-radius:var(--border-radius-large);cursor:pointer}.textarea__input[data-v-44bb430a]:active:not([disabled]),.textarea__input[data-v-44bb430a]:hover:not([disabled]),.textarea__input[data-v-44bb430a]:focus:not([disabled]){border-color:var(--color-primary-element)}.textarea__input[data-v-44bb430a]:not(:focus,.textarea__input--label-outside)::placeholder{opacity:0}.textarea__input[data-v-44bb430a]:focus{cursor:text}.textarea__input[data-v-44bb430a]:disabled{cursor:default}.textarea__input[data-v-44bb430a]:focus-visible{box-shadow:unset!important}.textarea__input--success[data-v-44bb430a]{border-color:var(--color-success)!important}.textarea__input--success[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--success:focus+.textarea__label[data-v-44bb430a],.textarea__input--success:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-success-text)}.textarea__input--error[data-v-44bb430a]{border-color:var(--color-error)!important}.textarea__input--error[data-v-44bb430a]:focus-visible{box-shadow:#f8fafc 0 0 0 2px,var(--color-primary-element) 0 0 0 4px,#0000000d 0 1px 2px}.textarea__input--error:focus+.textarea__label[data-v-44bb430a],.textarea__input--error:hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-error-text)}.textarea__input:not(.textarea__input--success,.textarea__input--error):focus+.textarea__label[data-v-44bb430a],.textarea__input:not(.textarea__input--success,.textarea__input--error):hover:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{color:var(--color-primary-element)}.textarea__label[data-v-44bb430a]{position:absolute;margin-inline:12px 0;height:17px;max-width:fit-content;line-height:1;inset-block-start:12px;inset-inline:0;color:var(--color-text-maxcontrast);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;pointer-events:none;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick),background-color var(--animation-quick) var(--animation-slow)}.textarea__input:focus+.textarea__label[data-v-44bb430a],.textarea__input:not(:placeholder-shown)+.textarea__label[data-v-44bb430a]{inset-block-start:-6px;font-size:13px;background-color:var(--color-main-background);height:14px;padding-inline:4px;margin-inline-start:8px;transition:height var(--animation-quick),inset-block-start var(--animation-quick),font-size var(--animation-quick),color var(--animation-quick)}.textarea__helper-text-message[data-v-44bb430a]{padding-block:4px;display:flex;align-items:center}.textarea__helper-text-message__icon[data-v-44bb430a]{margin-inline-end:8px}.textarea__helper-text-message--error[data-v-44bb430a]{color:var(--color-error-text)}.textarea__helper-text-message--success[data-v-44bb430a]{color:var(--color-success-text)}.rich-text-file .icon-home[data-v-f30ef6d6]{display:inline-block;vertical-align:text-top}strong[data-v-b8794790]{padding:2px 5px;border-radius:3px;background-color:var(--color-background-darker);font-weight:400}.activity-entry[data-v-b7772a8c]{display:flex;flex-wrap:wrap;align-items:flex-start;width:100%;height:var(--height);min-height:32px;padding:8px 0}.activity-entry__icon[data-v-b7772a8c]{opacity:.5;margin-top:2px;margin-right:8px}.activity-entry .avatardiv[data-v-b7772a8c]{background-color:unset!important}.activity-entry__content[data-v-b7772a8c]{display:flex;flex-basis:min-content;flex-direction:column;flex-grow:1;overflow-wrap:break-word;white-space:pre-wrap;word-break:break-word;overflow:hidden}.activity-entry__content__message[data-v-b7772a8c]{color:var(--color-text-lighter)}.activity-entry__content[data-v-b7772a8c] a{font-weight:700}.activity-entry__content[data-v-b7772a8c] a:hover{opacity:.7;text-decoration:underline}.activity-entry__date[data-v-b7772a8c]{color:var(--color-text-lighter);margin-left:5px;flex-shrink:0}.activity-entry__preview-wrapper[data-v-b7772a8c]{flex:0 0 100%;gap:12px;margin-inline-start:24px}.activity-entry__preview[data-v-b7772a8c]:hover{opacity:.75}.activity-entry__preview-image[data-v-b7772a8c]{height:50px;width:50px}.activity-entry__preview-image[data-v-b7772a8c]:not(.activity-entry__preview-mimetype){border:2px solid var(--color-border);border-radius:var(--border-radius-large)}.activity-entry__preview-image[data-v-b7772a8c]:not(.activity-entry__preview-mimetype):hover{border-color:var(--color-main-text);outline:2px solid var(--color-main-background)}`)),document.head.appendChild(e)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
/*! third party licenses: js/vendor.LICENSE.txt */
-import{r as O_,v as ce,e as fr,l as ie,i as x_,a as g0,j as B_,d as Ml,k as Ys,s as zo,u as Vo,c as Va,g as so,f as Ls,w as pn,m as Aa,o as Yl,p as zc,_ as _0,q as F0,t as lo,x as C_,y as uo,z as co,A as M_,B as Ll,C as Y_,D as L_,E as Z_,F as I_,G as Vc,H as Zl,I as j_,J as P_,K as Il,L as G_,M as $c,N as Wc,O as Qc,P as Jc,Q as Kc,R as U_,S as jl,T as q_,U as H_,V as z_,W as Xc,X as V_,Y as $_,Z as W_,n as Tn}from"./logger-496b5c71.mjs";import{i as Pl,j as Q_,g as Xa,a as gr,V as Sa,k as J_,l as K_,m as X_,r as gt,n as eF,p as tF,u as aF,q as i0,c as st,w as ei,s as iF,v as nF,o as rF,x as oF,h as Ia,e as _r,b as $a,y as sF,z as lF,A as uF,B as dF,C as cF,D as hF,d as eh,E as SM,F as fF,G as kM,t as gF}from"./index-a6a8c3a6.mjs";const w_="activity";var th={exports:{}},ah;function ae(){return ah.apply(null,arguments)}function _F(e){ah=e}function Ut(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function Di(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function xe(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Gl(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(xe(e,t))return!1;return!0}function mt(e){return e===void 0}function Ta(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function m0(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function ih(e,t){var a=[],i,n=e.length;for(i=0;i>>0,i;for(i=0;i0)for(a=0;a>>0,i;for(i=0;i0)for(a=0;a=0;return(r?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var zl=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,v0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wo={},Ji={};function _e(e,t,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Ji[e]=n),t&&(Ji[t[0]]=function(){return Xt(n.apply(this,arguments),t[1],t[2])}),a&&(Ji[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function DF(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function EF(e){var t=e.match(zl),a,i;for(a=0,i=t.length;a=0&&v0.test(e);)e=e.replace(v0,i),v0.lastIndex=0,a-=1;return e}var bF={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function yF(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(zl).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var AF="Invalid date";function SF(){return this._invalidDate}var kF="%d",vF=/\d{1,2}/;function RF(e){return this._ordinal.replace("%d",e)}var NF={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wF(e,t,a,i){var n=this._relativeTime[a];return ua(n)?n(e,t,a,i):n.replace(/%d/i,e)}function OF(e,t){var a=this._relativeTime[e>0?"future":"past"];return ua(a)?a(t):a.replace(/%s/i,t)}var Mn={};function ut(e,t){var a=e.toLowerCase();Mn[a]=Mn[a+"s"]=Mn[t]=e}function It(e){return typeof e=="string"?Mn[e]||Mn[e.toLowerCase()]:void 0}function Vl(e){var t={},a,i;for(i in e)xe(e,i)&&(a=It(i),a&&(t[a]=e[i]));return t}var sh={};function dt(e,t){sh[e]=t}function xF(e){var t=[],a;for(a in e)xe(e,a)&&t.push({unit:a,priority:sh[a]});return t.sort(function(i,n){return i.priority-n.priority}),t}function fo(e){return e%4===0&&e%100!==0||e%400===0}function Bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=Bt(t)),a}function Dn(e,t){return function(a){return a!=null?(lh(this,e,a),ae.updateOffset(this,t),this):Fr(this,e)}}function Fr(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function lh(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&fo(e.year())&&e.month()===1&&e.date()===29?(a=Ae(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),go(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function BF(e){return e=It(e),ua(this[e])?this[e]():this}function CF(e,t){if(typeof e=="object"){e=Vl(e);var a=xF(e),i,n=a.length;for(i=0;i68?1900:2e3)};var sd=Dn("FullYear",!0);function XF(){return fo(this.year())}function em(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function r0(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Er(e,t,a){var i=7+t-a,n=(7+r0(e,0,i).getUTCDay()-t)%7;return-n+i-1}function _h(e,t,a,i,n){var r=(7+a-i)%7,o=Er(e,i,n),s=1+7*(t-1)+r+o,l,d;return s<=0?(l=e-1,d=Yn(l)+s):s>Yn(e)?(l=e+1,d=s-Yn(e)):(l=e,d=s),{year:l,dayOfYear:d}}function o0(e,t,a){var i=Er(e.year(),t,a),n=Math.floor((e.dayOfYear()-i-1)/7)+1,r,o;return n<1?(o=e.year()-1,r=n+ma(o,t,a)):n>ma(e.year(),t,a)?(r=n-ma(e.year(),t,a),o=e.year()+1):(o=e.year(),r=n),{week:r,year:o}}function ma(e,t,a){var i=Er(e,t,a),n=Er(e+1,t,a);return(Yn(e)-i+n)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),ut("week","w"),ut("isoWeek","W"),dt("week",5),dt("isoWeek",5),oe("w",Ge),oe("ww",Ge,Rt),oe("W",Ge),oe("WW",Ge,Rt),n0(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=Ae(e)});function tm(e){return o0(e,this._week.dow,this._week.doy).week}var am={dow:0,doy:6};function im(){return this._week.dow}function nm(){return this._week.doy}function rm(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function om(e){var t=o0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),ut("day","d"),ut("weekday","e"),ut("isoWeekday","E"),dt("day",11),dt("weekday",11),dt("isoWeekday",11),oe("d",Ge),oe("e",Ge),oe("E",Ge),oe("dd",function(e,t){return t.weekdaysMinRegex(e)}),oe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),oe("dddd",function(e,t){return t.weekdaysRegex(e)}),n0(["dd","ddd","dddd"],function(e,t,a,i){var n=a._locale.weekdaysParse(e,i,a._strict);n!=null?t.d=n:Ee(a).invalidWeekday=e}),n0(["d","e","E"],function(e,t,a,i){t[i]=Ae(e)});function sm(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function lm(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function $l(e,t){return e.slice(t,7).concat(e.slice(0,t))}var um="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Fh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cm=T0,hm=T0,fm=T0;function gm(e,t){var a=Ut(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?$l(a,this._week.dow):e?a[e.day()]:a}function _m(e){return e===!0?$l(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Fm(e){return e===!0?$l(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function mm(e,t,a){var i,n,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=la([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return a?t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1||(n=Qe.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Qe.call(this._minWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function pm(e,t,a){var i,n,r;if(this._weekdaysParseExact)return mm.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++)if(n=la([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e)||a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e)||a&&t==="dd"&&this._minWeekdaysParse[i].test(e)||!a&&this._weekdaysParse[i].test(e))return i}function Tm(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=sm(e,this.localeData()),this.add(e-t,"d")):t}function Dm(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Em(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=lm(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function bm(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Wl.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=cm),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ym(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Wl.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hm),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Am(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Wl.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fm),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Wl(){function e(u,c){return c.length-u.length}var t=[],a=[],i=[],n=[],r,o,s,l,d;for(r=0;r<7;r++)o=la([2e3,1]).day(r),s=St(this.weekdaysMin(o,"")),l=St(this.weekdaysShort(o,"")),d=St(this.weekdays(o,"")),t.push(s),a.push(l),i.push(d),n.push(s),n.push(l),n.push(d);t.sort(e),a.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qo(){return this.hours()%12||12}function Sm(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Qo),_e("k",["kk",2],0,Sm),_e("hmm",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)+Xt(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)+Xt(this.seconds(),2)});function ld(e,t){_e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ld("a",!0),ld("A",!1),ut("hour","h"),dt("hour",13);function ud(e,t){return t._meridiemParse}oe("a",ud),oe("A",ud),oe("H",Ge),oe("h",Ge),oe("k",Ge),oe("HH",Ge,Rt),oe("hh",Ge,Rt),oe("kk",Ge,Rt),oe("hmm",nd),oe("hmmss",rd),oe("Hmm",nd),oe("Hmmss",rd),Le(["H","HH"],tt),Le(["k","kk"],function(e,t,a){var i=Ae(e);t[tt]=i===24?0:i}),Le(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Le(["h","hh"],function(e,t,a){t[tt]=Ae(e),Ee(a).bigHour=!0}),Le("hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i)),Ee(a).bigHour=!0}),Le("hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n)),Ee(a).bigHour=!0}),Le("Hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i))}),Le("Hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n))});function km(e){return(e+"").toLowerCase().charAt(0)==="p"}var vm=/[ap]\.?m?\.?/i,Rm=Dn("Hours",!0);function Nm(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var mh={calendar:pF,longDateFormat:bF,invalidDate:AF,ordinal:kF,dayOfMonthOrdinalParse:vF,relativeTime:NF,months:UF,monthsShort:ch,week:am,weekdays:um,weekdaysMin:dm,weekdaysShort:Fh,meridiemParse:vm},He={},An={},s0;function wm(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a0;){if(n=_o(r.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&wm(r,i)>=a-1)break;a--}t++}return s0}function xm(e){return e.match("^[^/\\\\]*$")!=null}function _o(e){var t=null,a;if(He[e]===void 0&&typeof module<"u"&&module&&module.exports&&xm(e))try{t=s0._abbr,a=require,a("./locale/"+e),Ha(t)}catch{He[e]=null}return He[e]}function Ha(e,t){var a;return e&&(mt(t)?a=ka(e):a=Ql(e,t),a?s0=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),s0._abbr}function Ql(e,t){if(t!==null){var a,i=mh;if(t.abbr=e,He[e]!=null)rh("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=He[e]._config;else if(t.parentLocale!=null)if(He[t.parentLocale]!=null)i=He[t.parentLocale]._config;else if(a=_o(t.parentLocale),a!=null)i=a._config;else return An[t.parentLocale]||(An[t.parentLocale]=[]),An[t.parentLocale].push({name:e,config:t}),null;return He[e]=new Hl(Is(i,t)),An[e]&&An[e].forEach(function(n){Ql(n.name,n.config)}),Ha(e),He[e]}else return delete He[e],null}function Bm(e,t){if(t!=null){var a,i,n=mh;He[e]!=null&&He[e].parentLocale!=null?He[e].set(Is(He[e]._config,t)):(i=_o(e),i!=null&&(n=i._config),t=Is(n,t),i==null&&(t.abbr=e),a=new Hl(t),a.parentLocale=He[e],He[e]=a),Ha(e)}else He[e]!=null&&(He[e].parentLocale!=null?(He[e]=He[e].parentLocale,e===Ha()&&Ha(e)):He[e]!=null&&delete He[e]);return He[e]}function ka(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return s0;if(!Ut(e)){if(t=_o(e),t)return t;e=[e]}return Om(e)}function Cm(){return js(He)}function Jl(e){var t,a=e._a;return a&&Ee(e).overflow===-2&&(t=a[ga]<0||a[ga]>11?ga:a[ea]<1||a[ea]>go(a[lt],a[ga])?ea:a[tt]<0||a[tt]>24||a[tt]===24&&(a[Gt]!==0||a[_a]!==0||a[mi]!==0)?tt:a[Gt]<0||a[Gt]>59?Gt:a[_a]<0||a[_a]>59?_a:a[mi]<0||a[mi]>999?mi:-1,Ee(e)._overflowDayOfYear&&(tea)&&(t=ea),Ee(e)._overflowWeeks&&t===-1&&(t=jF),Ee(e)._overflowWeekday&&t===-1&&(t=PF),Ee(e).overflow=t),e}var Mm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ym=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lm=/Z|[+-]\d\d(?::?\d\d)?/,R0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zm=/^\/?Date\((-?\d+)/i,Im=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function ph(e){var t,a,i=e._i,n=Mm.exec(i)||Ym.exec(i),r,o,s,l,d=R0.length,u=Jo.length;if(n){for(Ee(e).iso=!0,t=0,a=d;tYn(o)||e._dayOfYear===0)&&(Ee(e)._overflowDayOfYear=!0),a=r0(o,0,e._dayOfYear),e._a[ga]=a.getUTCMonth(),e._a[ea]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[tt]===24&&e._a[Gt]===0&&e._a[_a]===0&&e._a[mi]===0&&(e._nextDay=!0,e._a[tt]=0),e._d=(e._useUTC?r0:em).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&(Ee(e).weekdayMismatch=!0)}}function $m(e){var t,a,i,n,r,o,s,l,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,o=4,a=Ii(t.GG,e._a[lt],o0(Ue(),1,4).year),i=Ii(t.W,1),n=Ii(t.E,1),(n<1||n>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,d=o0(Ue(),r,o),a=Ii(t.gg,e._a[lt],d.year),i=Ii(t.w,d.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+r,(t.e<0||t.e>6)&&(l=!0)):n=r),i<1||i>ma(a,r,o)?Ee(e)._overflowWeeks=!0:l!=null?Ee(e)._overflowWeekday=!0:(s=_h(a,i,n,r,o),e._a[lt]=s.year,e._dayOfYear=s.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function Xl(e){if(e._f===ae.ISO_8601){ph(e);return}if(e._f===ae.RFC_2822){Th(e);return}e._a=[],Ee(e).empty=!0;var t=""+e._i,a,i,n,r,o,s=t.length,l=0,d,u;for(n=oh(e._f,e._locale).match(zl)||[],u=n.length,a=0;a0&&Ee(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Ji[r]?(i?Ee(e).empty=!1:Ee(e).unusedTokens.push(r),IF(r,i,e)):e._strict&&!i&&Ee(e).unusedTokens.push(r);Ee(e).charsLeftOver=s-l,t.length>0&&Ee(e).unusedInput.push(t),e._a[tt]<=12&&Ee(e).bigHour===!0&&e._a[tt]>0&&(Ee(e).bigHour=void 0),Ee(e).parsedDateParts=e._a.slice(0),Ee(e).meridiem=e._meridiem,e._a[tt]=Wm(e._locale,e._a[tt],e._meridiem),d=Ee(e).era,d!==null&&(e._a[lt]=e._locale.erasConvertYear(d,e._a[lt])),Kl(e),Jl(e)}function Wm(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Qm(e){var t,a,i,n,r,o,s=!1,l=e._f.length;if(l===0){Ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;nthis?this:e:ho()});function bh(e,t){var a,i;if(t.length===1&&Ut(t[0])&&(t=t[0]),!t.length)return Ue();for(a=t[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mp(){if(!mt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return ql(e,this),e=Dh(e),e._a?(t=e._isUTC?la(e._a):Ue(e._a),this._isDSTShifted=this.isValid()&&lp(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pp(){return this.isValid()?!this._isUTC:!1}function Tp(){return this.isValid()?this._isUTC:!1}function hd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ep=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var a=e,i=null,n,r,o;return K0(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Ta(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Dp.exec(e))?(n=i[1]==="-"?-1:1,a={y:0,d:Ae(i[ea])*n,h:Ae(i[tt])*n,m:Ae(i[Gt])*n,s:Ae(i[_a])*n,ms:Ae(qs(i[mi]*1e3))*n}):(i=Ep.exec(e))?(n=i[1]==="-"?-1:1,a={y:oi(i[2],n),M:oi(i[3],n),w:oi(i[4],n),d:oi(i[5],n),h:oi(i[6],n),m:oi(i[7],n),s:oi(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=bp(Ue(a.from),Ue(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new Fo(a),K0(e)&&xe(e,"_locale")&&(r._locale=e._locale),K0(e)&&xe(e,"_isValid")&&(r._isValid=e._isValid),r}Ht.fn=Fo.prototype,Ht.invalid=sp;function oi(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function fd(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function bp(e,t){var a;return e.isValid()&&t.isValid()?(t=tu(t,e),e.isBefore(t)?a=fd(e,t):(a=fd(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function yh(e,t){return function(a,i){var n,r;return i!==null&&!isNaN(+i)&&(rh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=a,a=i,i=r),n=Ht(a,i),Ah(this,n,e),this}}function Ah(e,t,a,i){var n=t._milliseconds,r=qs(t._days),o=qs(t._months);e.isValid()&&(i=i??!0,o&&fh(e,Fr(e,"Month")+o*a),r&&lh(e,"Date",Fr(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),i&&ae.updateOffset(e,r||o))}var yp=yh(1,"add"),Ap=yh(-1,"subtract");function Sh(e){return typeof e=="string"||e instanceof String}function Sp(e){return qt(e)||m0(e)||Sh(e)||Ta(e)||vp(e)||kp(e)||e===null||e===void 0}function kp(e){var t=Di(e)&&!Gl(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,r,o=i.length;for(n=0;na.valueOf():a.valueOf()9999?W0(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ua(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",W0(a,"Z")):W0(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Pp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,n,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(a+i+n+r)}function Gp(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=W0(this,e);return this.localeData().postformat(t)}function Up(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function qp(e){return this.from(Ue(),e)}function Hp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zp(e){return this.to(Ue(),e)}function kh(e){var t;return e===void 0?this._locale._abbr:(t=ka(e),t!=null&&(this._locale=t),this)}var vh=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Rh(){return this._locale}var br=1e3,Ki=60*br,yr=60*Ki,Nh=(365*400+97)*24*yr;function Xi(e,t){return(e%t+t)%t}function wh(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-Nh:new Date(e,t,a).valueOf()}function Oh(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-Nh:Date.UTC(e,t,a)}function Vp(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Oh:wh,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xi(t+(this._isUTC?0:this.utcOffset()*Ki),yr);break;case"minute":t=this._d.valueOf(),t-=Xi(t,Ki);break;case"second":t=this._d.valueOf(),t-=Xi(t,br);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function $p(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?Oh:wh,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=yr-Xi(t+(this._isUTC?0:this.utcOffset()*Ki),yr)-1;break;case"minute":t=this._d.valueOf(),t+=Ki-Xi(t,Ki)-1;break;case"second":t=this._d.valueOf(),t+=br-Xi(t,br)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Wp(){return this._d.valueOf()-(this._offset||0)*6e4}function Qp(){return Math.floor(this.valueOf()/1e3)}function Jp(){return new Date(this.valueOf())}function Kp(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Xp(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function eT(){return this.isValid()?this.toISOString():null}function tT(){return Ul(this)}function aT(){return Ua({},Ee(this))}function iT(){return Ee(this).overflow}function nT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),oe("N",Ko),oe("NN",Ko),oe("NNN",Ko),oe("NNNN",_T),oe("NNNNN",FT),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var n=a._locale.erasParse(e,i,a._strict);n?Ee(a).era=n:Ee(a).invalidEra=e}),oe("y",Ui),oe("yy",Ui),oe("yyy",Ui),oe("yyyy",Ui),oe("yo",mT),Le(["y","yy","yyy","yyyy"],lt),Le(["yo"],function(e,t,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[lt]=a._locale.eraYearOrdinalParse(e,n):t[lt]=parseInt(e,10)});function rT(e,t){var a,i,n,r=this._eras||ka("en")._eras;for(a=0,i=r.length;a=0)return r[i]}function sT(e,t){var a=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*a}function lT(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;er&&(t=r),AT.call(this,e,t,a,i,n))}function AT(e,t,a,i,n){var r=_h(e,t,a,i,n),o=r0(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_e("Q",0,"Qo","quarter"),ut("quarter","Q"),dt("quarter",7),oe("Q",uh),Le("Q",function(e,t){t[ga]=(Ae(e)-1)*3});function ST(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),ut("date","D"),dt("date",9),oe("D",Ge),oe("DD",Ge,Rt),oe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],ea),Le("Do",function(e,t){t[ea]=Ae(e.match(Ge)[0])});var gd=Dn("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),ut("dayOfYear","DDD"),dt("dayOfYear",4),oe("DDD",Q0),oe("DDDD",dh),Le(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Ae(e)});function kT(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_e("m",["mm",2],0,"minute"),ut("minute","m"),dt("minute",14),oe("m",Ge),oe("mm",Ge,Rt),Le(["m","mm"],Gt);var vT=Dn("Minutes",!1);_e("s",["ss",2],0,"second"),ut("second","s"),dt("second",15),oe("s",Ge),oe("ss",Ge,Rt),Le(["s","ss"],_a);var RT=Dn("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ut("millisecond","ms"),dt("millisecond",16),oe("S",Q0,uh),oe("SS",Q0,Rt),oe("SSS",Q0,dh);var qa,Bh;for(qa="SSSS";qa.length<=9;qa+="S")oe(qa,Ui);function NT(e,t){t[mi]=Ae(("0."+e)*1e3)}for(qa="S";qa.length<=9;qa+="S")Le(qa,NT);Bh=Dn("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function wT(){return this._isUTC?"UTC":""}function OT(){return this._isUTC?"Coordinated Universal Time":""}var Q=p0.prototype;Q.add=yp,Q.calendar=wp,Q.clone=Op,Q.diff=Zp,Q.endOf=$p,Q.format=Gp,Q.from=Up,Q.fromNow=qp,Q.to=Hp,Q.toNow=zp,Q.get=BF,Q.invalidAt=iT,Q.isAfter=xp,Q.isBefore=Bp,Q.isBetween=Cp,Q.isSame=Mp,Q.isSameOrAfter=Yp,Q.isSameOrBefore=Lp,Q.isValid=tT,Q.lang=vh,Q.locale=kh,Q.localeData=Rh,Q.max=tp,Q.min=ep,Q.parsingFlags=aT,Q.set=CF,Q.startOf=Vp,Q.subtract=Ap,Q.toArray=Kp,Q.toObject=Xp,Q.toDate=Jp,Q.toISOString=jp,Q.inspect=Pp,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=eT,Q.toString=Ip,Q.unix=Qp,Q.valueOf=Wp,Q.creationData=nT,Q.eraName=lT,Q.eraNarrow=uT,Q.eraAbbr=dT,Q.eraYear=cT,Q.year=sd,Q.isLeapYear=XF,Q.weekYear=pT,Q.isoWeekYear=TT,Q.quarter=Q.quarters=ST,Q.month=od,Q.daysInMonth=QF,Q.week=Q.weeks=rm,Q.isoWeek=Q.isoWeeks=om,Q.weeksInYear=bT,Q.weeksInWeekYear=yT,Q.isoWeeksInYear=DT,Q.isoWeeksInISOWeekYear=ET,Q.date=gd,Q.day=Q.days=Tm,Q.weekday=Dm,Q.isoWeekday=Em,Q.dayOfYear=kT,Q.hour=Q.hours=Rm,Q.minute=Q.minutes=vT,Q.second=Q.seconds=RT,Q.millisecond=Q.milliseconds=Bh,Q.utcOffset=dp,Q.utc=hp,Q.local=fp,Q.parseZone=gp,Q.hasAlignedHourOffset=_p,Q.isDST=Fp,Q.isLocal=pp,Q.isUtcOffset=Tp,Q.isUtc=hd,Q.isUTC=hd,Q.zoneAbbr=wT,Q.zoneName=OT,Q.dates=Mt("dates accessor is deprecated. Use date instead.",gd),Q.months=Mt("months accessor is deprecated. Use month instead",od),Q.years=Mt("years accessor is deprecated. Use year instead",sd),Q.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cp),Q.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mp);function xT(e){return Ue(e*1e3)}function BT(){return Ue.apply(null,arguments).parseZone()}function _d(e){return e}var Oe=Hl.prototype;Oe.calendar=TF,Oe.longDateFormat=yF,Oe.invalidDate=SF,Oe.ordinal=RF,Oe.preparse=_d,Oe.postformat=_d,Oe.relativeTime=wF,Oe.pastFuture=OF,Oe.set=mF,Oe.eras=rT,Oe.erasParse=oT,Oe.erasConvertYear=sT,Oe.erasAbbrRegex=fT,Oe.erasNameRegex=hT,Oe.erasNarrowRegex=gT,Oe.months=zF,Oe.monthsShort=VF,Oe.monthsParse=WF,Oe.monthsRegex=KF,Oe.monthsShortRegex=JF,Oe.week=tm,Oe.firstDayOfYear=nm,Oe.firstDayOfWeek=im,Oe.weekdays=gm,Oe.weekdaysMin=Fm,Oe.weekdaysShort=_m,Oe.weekdaysParse=pm,Oe.weekdaysRegex=bm,Oe.weekdaysShortRegex=ym,Oe.weekdaysMinRegex=Am,Oe.isPM=km,Oe.meridiem=Nm;function Ar(e,t,a,i){var n=ka(),r=la().set(i,t);return n[a](r,e)}function Ch(e,t,a){if(Ta(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ar(e,t,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Ar(e,i,a,"month");return n}function iu(e,t,a,i){typeof e=="boolean"?(Ta(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Ta(t)&&(a=t,t=void 0),t=t||"");var n=ka(),r=e?n._week.dow:0,o,s=[];if(a!=null)return Ar(t,(a+r)%7,i,"day");for(o=0;o<7;o++)s[o]=Ar(t,(o+r)%7,i,"day");return s}function CT(e,t){return Ch(e,t,"months")}function MT(e,t){return Ch(e,t,"monthsShort")}function YT(e,t,a){return iu(e,t,a,"weekdays")}function LT(e,t,a){return iu(e,t,a,"weekdaysShort")}function ZT(e,t,a){return iu(e,t,a,"weekdaysMin")}Ha("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=Ae(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),ae.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",Ha),ae.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",ka);var ca=Math.abs;function IT(){var e=this._data;return this._milliseconds=ca(this._milliseconds),this._days=ca(this._days),this._months=ca(this._months),e.milliseconds=ca(e.milliseconds),e.seconds=ca(e.seconds),e.minutes=ca(e.minutes),e.hours=ca(e.hours),e.months=ca(e.months),e.years=ca(e.years),this}function Mh(e,t,a,i){var n=Ht(t,a);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function jT(e,t){return Mh(this,e,t,1)}function PT(e,t){return Mh(this,e,t,-1)}function Fd(e){return e<0?Math.floor(e):Math.ceil(e)}function GT(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,n,r,o,s,l;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=Fd(zs(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,n=Bt(e/1e3),i.seconds=n%60,r=Bt(n/60),i.minutes=r%60,o=Bt(r/60),i.hours=o%24,t+=Bt(o/24),l=Bt(Yh(t)),a+=l,t-=Fd(zs(l)),s=Bt(a/12),a%=12,i.days=t,i.months=a,i.years=s,this}function Yh(e){return e*4800/146097}function zs(e){return e*146097/4800}function UT(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=It(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Yh(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(zs(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function qT(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Ae(this._months/12)*31536e6:NaN}function va(e){return function(){return this.as(e)}}var HT=va("ms"),zT=va("s"),VT=va("m"),$T=va("h"),WT=va("d"),QT=va("w"),JT=va("M"),KT=va("Q"),XT=va("y");function e2(){return Ht(this)}function t2(e){return e=It(e),this.isValid()?this[e+"s"]():NaN}function Ri(e){return function(){return this.isValid()?this._data[e]:NaN}}var a2=Ri("milliseconds"),i2=Ri("seconds"),n2=Ri("minutes"),r2=Ri("hours"),o2=Ri("days"),s2=Ri("months"),l2=Ri("years");function u2(){return Bt(this.days()/7)}var fa=Math.round,qi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function d2(e,t,a,i,n){return n.relativeTime(t||1,!!a,e,i)}function c2(e,t,a,i){var n=Ht(e).abs(),r=fa(n.as("s")),o=fa(n.as("m")),s=fa(n.as("h")),l=fa(n.as("d")),d=fa(n.as("M")),u=fa(n.as("w")),c=fa(n.as("y")),f=r<=a.ss&&["s",r]||r0,f[4]=i,d2.apply(null,f)}function h2(e){return e===void 0?fa:typeof e=="function"?(fa=e,!0):!1}function f2(e,t){return qi[e]===void 0?!1:t===void 0?qi[e]:(qi[e]=t,e==="s"&&(qi.ss=t-1),!0)}function g2(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=qi,n,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},qi,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),r=c2(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var Xo=Math.abs;function Oi(e){return(e>0)-(e<0)||+e}function w0(){if(!this.isValid())return this.localeData().invalidDate();var e=Xo(this._milliseconds)/1e3,t=Xo(this._days),a=Xo(this._months),i,n,r,o,s=this.asSeconds(),l,d,u,c;return s?(i=Bt(e/60),n=Bt(i/60),e%=60,i%=60,r=Bt(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",d=Oi(this._months)!==Oi(s)?"-":"",u=Oi(this._days)!==Oi(s)?"-":"",c=Oi(this._milliseconds)!==Oi(s)?"-":"",l+"P"+(r?d+r+"Y":"")+(a?d+a+"M":"")+(t?u+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var Ne=Fo.prototype;Ne.isValid=op,Ne.abs=IT,Ne.add=jT,Ne.subtract=PT,Ne.as=UT,Ne.asMilliseconds=HT,Ne.asSeconds=zT,Ne.asMinutes=VT,Ne.asHours=$T,Ne.asDays=WT,Ne.asWeeks=QT,Ne.asMonths=JT,Ne.asQuarters=KT,Ne.asYears=XT,Ne.valueOf=qT,Ne._bubble=GT,Ne.clone=e2,Ne.get=t2,Ne.milliseconds=a2,Ne.seconds=i2,Ne.minutes=n2,Ne.hours=r2,Ne.days=o2,Ne.weeks=u2,Ne.months=s2,Ne.years=l2,Ne.humanize=g2,Ne.toISOString=w0,Ne.toString=w0,Ne.toJSON=w0,Ne.locale=kh,Ne.localeData=Rh,Ne.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",w0),Ne.lang=vh,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),oe("x",Tr),oe("X",YF),Le("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),Le("x",function(e,t,a){a._d=new Date(Ae(e))});ae.version="2.29.4",_F(Ue),ae.fn=Q,ae.min=ap,ae.max=ip,ae.now=np,ae.utc=la,ae.unix=xT,ae.months=CT,ae.isDate=m0,ae.locale=Ha,ae.invalid=ho,ae.duration=Ht,ae.isMoment=qt,ae.weekdays=YT,ae.parseZone=BT,ae.localeData=ka,ae.isDuration=K0,ae.monthsShort=MT,ae.weekdaysMin=ZT,ae.defineLocale=Ql,ae.updateLocale=Bm,ae.locales=Cm,ae.weekdaysShort=LT,ae.normalizeUnits=It,ae.relativeTimeRounding=h2,ae.relativeTimeThreshold=f2,ae.calendarFormat=Np,ae.prototype=Q,ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const _2=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),F2=Pl(_2),m2=Pl(Q_);(function(e,t){(function(a,i){e.exports=i()})(self,function(){return function(){var a={n:function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return a.d(h,{a:h}),h},d:function(f,h){for(var _ in h)a.o(h,_)&&!a.o(f,_)&&Object.defineProperty(f,_,{enumerable:!0,get:h[_]})},o:function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},r:function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},i={};a.r(i),a.d(i,{default:function(){return c}});var n=F2,r=a.n(n),o=O_(),s=a.n(o),l=m2,d=new(s()),u=(0,l.getLocale)();[{locale:"ar",json:{charset:"utf-8",headers:{"Last-Translator":"Ali , 2023","Language-Team":"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)","Content-Type":"text/plain; charset=UTF-8",Language:"ar","Plural-Forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"},translations:{"":{"":{msgid:"",comments:{translator:`
+`+new Error().stack),a=!1}return t.apply(this,arguments)},t)}var nd={};function oh(e,t){ae.deprecationHandler!=null&&ae.deprecationHandler(e,t),nd[e]||(rh(t),nd[e]=!0)}ae.suppressDeprecationWarnings=!1,ae.deprecationHandler=null;function ua(e){return typeof Function<"u"&&e instanceof Function||Object.prototype.toString.call(e)==="[object Function]"}function mF(e){var t,a;for(a in e)xe(e,a)&&(t=e[a],ua(t)?this[a]=t:this["_"+a]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function Is(e,t){var a=Ua({},e),i;for(i in t)xe(t,i)&&(Di(e[i])&&Di(t[i])?(a[i]={},Ua(a[i],e[i]),Ua(a[i],t[i])):t[i]!=null?a[i]=t[i]:delete a[i]);for(i in e)xe(e,i)&&!xe(t,i)&&Di(e[i])&&(a[i]=Ua({},a[i]));return a}function zl(e){e!=null&&this.set(e)}var js;Object.keys?js=Object.keys:js=function(e){var t,a=[];for(t in e)xe(e,t)&&a.push(t);return a};var pF={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function TF(e,t,a){var i=this._calendar[e]||this._calendar.sameElse;return ua(i)?i.call(t,a):i}function Xt(e,t,a){var i=""+Math.abs(e),n=t-i.length,r=e>=0;return(r?a?"+":"":"-")+Math.pow(10,Math.max(0,n)).toString().substr(1)+i}var Vl=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,v0=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,Wo={},Ji={};function _e(e,t,a,i){var n=i;typeof i=="string"&&(n=function(){return this[i]()}),e&&(Ji[e]=n),t&&(Ji[t[0]]=function(){return Xt(n.apply(this,arguments),t[1],t[2])}),a&&(Ji[a]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function DF(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function EF(e){var t=e.match(Vl),a,i;for(a=0,i=t.length;a=0&&v0.test(e);)e=e.replace(v0,i),v0.lastIndex=0,a-=1;return e}var bF={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"};function yF(e){var t=this._longDateFormat[e],a=this._longDateFormat[e.toUpperCase()];return t||!a?t:(this._longDateFormat[e]=a.match(Vl).map(function(i){return i==="MMMM"||i==="MM"||i==="DD"||i==="dddd"?i.slice(1):i}).join(""),this._longDateFormat[e])}var AF="Invalid date";function SF(){return this._invalidDate}var kF="%d",vF=/\d{1,2}/;function RF(e){return this._ordinal.replace("%d",e)}var NF={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function wF(e,t,a,i){var n=this._relativeTime[a];return ua(n)?n(e,t,a,i):n.replace(/%d/i,e)}function OF(e,t){var a=this._relativeTime[e>0?"future":"past"];return ua(a)?a(t):a.replace(/%s/i,t)}var Mn={};function ut(e,t){var a=e.toLowerCase();Mn[a]=Mn[a+"s"]=Mn[t]=e}function It(e){return typeof e=="string"?Mn[e]||Mn[e.toLowerCase()]:void 0}function $l(e){var t={},a,i;for(i in e)xe(e,i)&&(a=It(i),a&&(t[a]=e[i]));return t}var lh={};function dt(e,t){lh[e]=t}function xF(e){var t=[],a;for(a in e)xe(e,a)&&t.push({unit:a,priority:lh[a]});return t.sort(function(i,n){return i.priority-n.priority}),t}function fo(e){return e%4===0&&e%100!==0||e%400===0}function Bt(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Ae(e){var t=+e,a=0;return t!==0&&isFinite(t)&&(a=Bt(t)),a}function Dn(e,t){return function(a){return a!=null?(uh(this,e,a),ae.updateOffset(this,t),this):Fr(this,e)}}function Fr(e,t){return e.isValid()?e._d["get"+(e._isUTC?"UTC":"")+t]():NaN}function uh(e,t,a){e.isValid()&&!isNaN(a)&&(t==="FullYear"&&fo(e.year())&&e.month()===1&&e.date()===29?(a=Ae(a),e._d["set"+(e._isUTC?"UTC":"")+t](a,e.month(),go(a,e.month()))):e._d["set"+(e._isUTC?"UTC":"")+t](a))}function BF(e){return e=It(e),ua(this[e])?this[e]():this}function CF(e,t){if(typeof e=="object"){e=$l(e);var a=xF(e),i,n=a.length;for(i=0;i68?1900:2e3)};var ld=Dn("FullYear",!0);function XF(){return fo(this.year())}function em(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function r0(e){var t,a;return e<100&&e>=0?(a=Array.prototype.slice.call(arguments),a[0]=e+400,t=new Date(Date.UTC.apply(null,a)),isFinite(t.getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function Er(e,t,a){var i=7+t-a,n=(7+r0(e,0,i).getUTCDay()-t)%7;return-n+i-1}function Fh(e,t,a,i,n){var r=(7+a-i)%7,o=Er(e,i,n),s=1+7*(t-1)+r+o,l,d;return s<=0?(l=e-1,d=Yn(l)+s):s>Yn(e)?(l=e+1,d=s-Yn(e)):(l=e,d=s),{year:l,dayOfYear:d}}function o0(e,t,a){var i=Er(e.year(),t,a),n=Math.floor((e.dayOfYear()-i-1)/7)+1,r,o;return n<1?(o=e.year()-1,r=n+ma(o,t,a)):n>ma(e.year(),t,a)?(r=n-ma(e.year(),t,a),o=e.year()+1):(o=e.year(),r=n),{week:r,year:o}}function ma(e,t,a){var i=Er(e,t,a),n=Er(e+1,t,a);return(Yn(e)-i+n)/7}_e("w",["ww",2],"wo","week"),_e("W",["WW",2],"Wo","isoWeek"),ut("week","w"),ut("isoWeek","W"),dt("week",5),dt("isoWeek",5),oe("w",Ge),oe("ww",Ge,Rt),oe("W",Ge),oe("WW",Ge,Rt),n0(["w","ww","W","WW"],function(e,t,a,i){t[i.substr(0,1)]=Ae(e)});function tm(e){return o0(e,this._week.dow,this._week.doy).week}var am={dow:0,doy:6};function im(){return this._week.dow}function nm(){return this._week.doy}function rm(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function om(e){var t=o0(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}_e("d",0,"do","day"),_e("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),_e("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),_e("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),_e("e",0,0,"weekday"),_e("E",0,0,"isoWeekday"),ut("day","d"),ut("weekday","e"),ut("isoWeekday","E"),dt("day",11),dt("weekday",11),dt("isoWeekday",11),oe("d",Ge),oe("e",Ge),oe("E",Ge),oe("dd",function(e,t){return t.weekdaysMinRegex(e)}),oe("ddd",function(e,t){return t.weekdaysShortRegex(e)}),oe("dddd",function(e,t){return t.weekdaysRegex(e)}),n0(["dd","ddd","dddd"],function(e,t,a,i){var n=a._locale.weekdaysParse(e,i,a._strict);n!=null?t.d=n:Ee(a).invalidWeekday=e}),n0(["d","e","E"],function(e,t,a,i){t[i]=Ae(e)});function sm(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function lm(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function Wl(e,t){return e.slice(t,7).concat(e.slice(0,t))}var um="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),mh="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),dm="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),cm=T0,hm=T0,fm=T0;function gm(e,t){var a=Ut(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?Wl(a,this._week.dow):e?a[e.day()]:a}function _m(e){return e===!0?Wl(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function Fm(e){return e===!0?Wl(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function mm(e,t,a){var i,n,r,o=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=la([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return a?t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1?n:null):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null):(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null):t==="dddd"?(n=Qe.call(this._weekdaysParse,o),n!==-1||(n=Qe.call(this._shortWeekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):t==="ddd"?(n=Qe.call(this._shortWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._minWeekdaysParse,o),n!==-1?n:null)):(n=Qe.call(this._minWeekdaysParse,o),n!==-1||(n=Qe.call(this._weekdaysParse,o),n!==-1)?n:(n=Qe.call(this._shortWeekdaysParse,o),n!==-1?n:null))}function pm(e,t,a){var i,n,r;if(this._weekdaysParseExact)return mm.call(this,e,t,a);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++)if(n=la([2e3,1]).day(i),a&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),a&&t==="dddd"&&this._fullWeekdaysParse[i].test(e)||a&&t==="ddd"&&this._shortWeekdaysParse[i].test(e)||a&&t==="dd"&&this._minWeekdaysParse[i].test(e)||!a&&this._weekdaysParse[i].test(e))return i}function Tm(e){if(!this.isValid())return e!=null?this:NaN;var t=this._isUTC?this._d.getUTCDay():this._d.getDay();return e!=null?(e=sm(e,this.localeData()),this.add(e-t,"d")):t}function Dm(e){if(!this.isValid())return e!=null?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return e==null?t:this.add(e-t,"d")}function Em(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=lm(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function bm(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(xe(this,"_weekdaysRegex")||(this._weekdaysRegex=cm),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function ym(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(xe(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=hm),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function Am(e){return this._weekdaysParseExact?(xe(this,"_weekdaysRegex")||Ql.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(xe(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=fm),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function Ql(){function e(u,c){return c.length-u.length}var t=[],a=[],i=[],n=[],r,o,s,l,d;for(r=0;r<7;r++)o=la([2e3,1]).day(r),s=St(this.weekdaysMin(o,"")),l=St(this.weekdaysShort(o,"")),d=St(this.weekdays(o,"")),t.push(s),a.push(l),i.push(d),n.push(s),n.push(l),n.push(d);t.sort(e),a.sort(e),i.sort(e),n.sort(e),this._weekdaysRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function Qo(){return this.hours()%12||12}function Sm(){return this.hours()||24}_e("H",["HH",2],0,"hour"),_e("h",["hh",2],0,Qo),_e("k",["kk",2],0,Sm),_e("hmm",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)}),_e("hmmss",0,0,function(){return""+Qo.apply(this)+Xt(this.minutes(),2)+Xt(this.seconds(),2)}),_e("Hmm",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)}),_e("Hmmss",0,0,function(){return""+this.hours()+Xt(this.minutes(),2)+Xt(this.seconds(),2)});function ud(e,t){_e(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}ud("a",!0),ud("A",!1),ut("hour","h"),dt("hour",13);function dd(e,t){return t._meridiemParse}oe("a",dd),oe("A",dd),oe("H",Ge),oe("h",Ge),oe("k",Ge),oe("HH",Ge,Rt),oe("hh",Ge,Rt),oe("kk",Ge,Rt),oe("hmm",rd),oe("hmmss",od),oe("Hmm",rd),oe("Hmmss",od),Le(["H","HH"],tt),Le(["k","kk"],function(e,t,a){var i=Ae(e);t[tt]=i===24?0:i}),Le(["a","A"],function(e,t,a){a._isPm=a._locale.isPM(e),a._meridiem=e}),Le(["h","hh"],function(e,t,a){t[tt]=Ae(e),Ee(a).bigHour=!0}),Le("hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i)),Ee(a).bigHour=!0}),Le("hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n)),Ee(a).bigHour=!0}),Le("Hmm",function(e,t,a){var i=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i))}),Le("Hmmss",function(e,t,a){var i=e.length-4,n=e.length-2;t[tt]=Ae(e.substr(0,i)),t[Gt]=Ae(e.substr(i,2)),t[_a]=Ae(e.substr(n))});function km(e){return(e+"").toLowerCase().charAt(0)==="p"}var vm=/[ap]\.?m?\.?/i,Rm=Dn("Hours",!0);function Nm(e,t,a){return e>11?a?"pm":"PM":a?"am":"AM"}var ph={calendar:pF,longDateFormat:bF,invalidDate:AF,ordinal:kF,dayOfMonthOrdinalParse:vF,relativeTime:NF,months:UF,monthsShort:hh,week:am,weekdays:um,weekdaysMin:dm,weekdaysShort:mh,meridiemParse:vm},He={},An={},s0;function wm(e,t){var a,i=Math.min(e.length,t.length);for(a=0;a0;){if(n=_o(r.slice(0,a).join("-")),n)return n;if(i&&i.length>=a&&wm(r,i)>=a-1)break;a--}t++}return s0}function xm(e){return e.match("^[^/\\\\]*$")!=null}function _o(e){var t=null,a;if(He[e]===void 0&&typeof module<"u"&&module&&module.exports&&xm(e))try{t=s0._abbr,a=require,a("./locale/"+e),Ha(t)}catch{He[e]=null}return He[e]}function Ha(e,t){var a;return e&&(mt(t)?a=ka(e):a=Jl(e,t),a?s0=a:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),s0._abbr}function Jl(e,t){if(t!==null){var a,i=ph;if(t.abbr=e,He[e]!=null)oh("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),i=He[e]._config;else if(t.parentLocale!=null)if(He[t.parentLocale]!=null)i=He[t.parentLocale]._config;else if(a=_o(t.parentLocale),a!=null)i=a._config;else return An[t.parentLocale]||(An[t.parentLocale]=[]),An[t.parentLocale].push({name:e,config:t}),null;return He[e]=new zl(Is(i,t)),An[e]&&An[e].forEach(function(n){Jl(n.name,n.config)}),Ha(e),He[e]}else return delete He[e],null}function Bm(e,t){if(t!=null){var a,i,n=ph;He[e]!=null&&He[e].parentLocale!=null?He[e].set(Is(He[e]._config,t)):(i=_o(e),i!=null&&(n=i._config),t=Is(n,t),i==null&&(t.abbr=e),a=new zl(t),a.parentLocale=He[e],He[e]=a),Ha(e)}else He[e]!=null&&(He[e].parentLocale!=null?(He[e]=He[e].parentLocale,e===Ha()&&Ha(e)):He[e]!=null&&delete He[e]);return He[e]}function ka(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return s0;if(!Ut(e)){if(t=_o(e),t)return t;e=[e]}return Om(e)}function Cm(){return js(He)}function Kl(e){var t,a=e._a;return a&&Ee(e).overflow===-2&&(t=a[ga]<0||a[ga]>11?ga:a[ea]<1||a[ea]>go(a[lt],a[ga])?ea:a[tt]<0||a[tt]>24||a[tt]===24&&(a[Gt]!==0||a[_a]!==0||a[mi]!==0)?tt:a[Gt]<0||a[Gt]>59?Gt:a[_a]<0||a[_a]>59?_a:a[mi]<0||a[mi]>999?mi:-1,Ee(e)._overflowDayOfYear&&(tea)&&(t=ea),Ee(e)._overflowWeeks&&t===-1&&(t=jF),Ee(e)._overflowWeekday&&t===-1&&(t=PF),Ee(e).overflow=t),e}var Mm=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Ym=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Lm=/Z|[+-]\d\d(?::?\d\d)?/,R0=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Jo=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],Zm=/^\/?Date\((-?\d+)/i,Im=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,jm={UT:0,GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Th(e){var t,a,i=e._i,n=Mm.exec(i)||Ym.exec(i),r,o,s,l,d=R0.length,u=Jo.length;if(n){for(Ee(e).iso=!0,t=0,a=d;tYn(o)||e._dayOfYear===0)&&(Ee(e)._overflowDayOfYear=!0),a=r0(o,0,e._dayOfYear),e._a[ga]=a.getUTCMonth(),e._a[ea]=a.getUTCDate()),t=0;t<3&&e._a[t]==null;++t)e._a[t]=i[t]=n[t];for(;t<7;t++)e._a[t]=i[t]=e._a[t]==null?t===2?1:0:e._a[t];e._a[tt]===24&&e._a[Gt]===0&&e._a[_a]===0&&e._a[mi]===0&&(e._nextDay=!0,e._a[tt]=0),e._d=(e._useUTC?r0:em).apply(null,i),r=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[tt]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==r&&(Ee(e).weekdayMismatch=!0)}}function $m(e){var t,a,i,n,r,o,s,l,d;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(r=1,o=4,a=Ii(t.GG,e._a[lt],o0(Ue(),1,4).year),i=Ii(t.W,1),n=Ii(t.E,1),(n<1||n>7)&&(l=!0)):(r=e._locale._week.dow,o=e._locale._week.doy,d=o0(Ue(),r,o),a=Ii(t.gg,e._a[lt],d.year),i=Ii(t.w,d.week),t.d!=null?(n=t.d,(n<0||n>6)&&(l=!0)):t.e!=null?(n=t.e+r,(t.e<0||t.e>6)&&(l=!0)):n=r),i<1||i>ma(a,r,o)?Ee(e)._overflowWeeks=!0:l!=null?Ee(e)._overflowWeekday=!0:(s=Fh(a,i,n,r,o),e._a[lt]=s.year,e._dayOfYear=s.dayOfYear)}ae.ISO_8601=function(){},ae.RFC_2822=function(){};function eu(e){if(e._f===ae.ISO_8601){Th(e);return}if(e._f===ae.RFC_2822){Dh(e);return}e._a=[],Ee(e).empty=!0;var t=""+e._i,a,i,n,r,o,s=t.length,l=0,d,u;for(n=sh(e._f,e._locale).match(Vl)||[],u=n.length,a=0;a0&&Ee(e).unusedInput.push(o),t=t.slice(t.indexOf(i)+i.length),l+=i.length),Ji[r]?(i?Ee(e).empty=!1:Ee(e).unusedTokens.push(r),IF(r,i,e)):e._strict&&!i&&Ee(e).unusedTokens.push(r);Ee(e).charsLeftOver=s-l,t.length>0&&Ee(e).unusedInput.push(t),e._a[tt]<=12&&Ee(e).bigHour===!0&&e._a[tt]>0&&(Ee(e).bigHour=void 0),Ee(e).parsedDateParts=e._a.slice(0),Ee(e).meridiem=e._meridiem,e._a[tt]=Wm(e._locale,e._a[tt],e._meridiem),d=Ee(e).era,d!==null&&(e._a[lt]=e._locale.erasConvertYear(d,e._a[lt])),Xl(e),Kl(e)}function Wm(e,t,a){var i;return a==null?t:e.meridiemHour!=null?e.meridiemHour(t,a):(e.isPM!=null&&(i=e.isPM(a),i&&t<12&&(t+=12),!i&&t===12&&(t=0)),t)}function Qm(e){var t,a,i,n,r,o,s=!1,l=e._f.length;if(l===0){Ee(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;nthis?this:e:ho()});function yh(e,t){var a,i;if(t.length===1&&Ut(t[0])&&(t=t[0]),!t.length)return Ue();for(a=t[0],i=1;ithis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function mp(){if(!mt(this._isDSTShifted))return this._isDSTShifted;var e={},t;return Hl(e,this),e=Eh(e),e._a?(t=e._isUTC?la(e._a):Ue(e._a),this._isDSTShifted=this.isValid()&&lp(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function pp(){return this.isValid()?!this._isUTC:!1}function Tp(){return this.isValid()?this._isUTC:!1}function fd(){return this.isValid()?this._isUTC&&this._offset===0:!1}var Dp=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,Ep=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Ht(e,t){var a=e,i=null,n,r,o;return K0(e)?a={ms:e._milliseconds,d:e._days,M:e._months}:Ta(e)||!isNaN(+e)?(a={},t?a[t]=+e:a.milliseconds=+e):(i=Dp.exec(e))?(n=i[1]==="-"?-1:1,a={y:0,d:Ae(i[ea])*n,h:Ae(i[tt])*n,m:Ae(i[Gt])*n,s:Ae(i[_a])*n,ms:Ae(qs(i[mi]*1e3))*n}):(i=Ep.exec(e))?(n=i[1]==="-"?-1:1,a={y:oi(i[2],n),M:oi(i[3],n),w:oi(i[4],n),d:oi(i[5],n),h:oi(i[6],n),m:oi(i[7],n),s:oi(i[8],n)}):a==null?a={}:typeof a=="object"&&("from"in a||"to"in a)&&(o=bp(Ue(a.from),Ue(a.to)),a={},a.ms=o.milliseconds,a.M=o.months),r=new Fo(a),K0(e)&&xe(e,"_locale")&&(r._locale=e._locale),K0(e)&&xe(e,"_isValid")&&(r._isValid=e._isValid),r}Ht.fn=Fo.prototype,Ht.invalid=sp;function oi(e,t){var a=e&&parseFloat(e.replace(",","."));return(isNaN(a)?0:a)*t}function gd(e,t){var a={};return a.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(a.months,"M").isAfter(t)&&--a.months,a.milliseconds=+t-+e.clone().add(a.months,"M"),a}function bp(e,t){var a;return e.isValid()&&t.isValid()?(t=au(t,e),e.isBefore(t)?a=gd(e,t):(a=gd(t,e),a.milliseconds=-a.milliseconds,a.months=-a.months),a):{milliseconds:0,months:0}}function Ah(e,t){return function(a,i){var n,r;return i!==null&&!isNaN(+i)&&(oh(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),r=a,a=i,i=r),n=Ht(a,i),Sh(this,n,e),this}}function Sh(e,t,a,i){var n=t._milliseconds,r=qs(t._days),o=qs(t._months);e.isValid()&&(i=i??!0,o&&gh(e,Fr(e,"Month")+o*a),r&&uh(e,"Date",Fr(e,"Date")+r*a),n&&e._d.setTime(e._d.valueOf()+n*a),i&&ae.updateOffset(e,r||o))}var yp=Ah(1,"add"),Ap=Ah(-1,"subtract");function kh(e){return typeof e=="string"||e instanceof String}function Sp(e){return qt(e)||m0(e)||kh(e)||Ta(e)||vp(e)||kp(e)||e===null||e===void 0}function kp(e){var t=Di(e)&&!Ul(e),a=!1,i=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],n,r,o=i.length;for(n=0;na.valueOf():a.valueOf()9999?W0(a,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):ua(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",W0(a,"Z")):W0(a,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function Pp(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",a,i,n,r;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),a="["+e+'("]',i=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n="-MM-DD[T]HH:mm:ss.SSS",r=t+'[")]',this.format(a+i+n+r)}function Gp(e){e||(e=this.isUtc()?ae.defaultFormatUtc:ae.defaultFormat);var t=W0(this,e);return this.localeData().postformat(t)}function Up(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function qp(e){return this.from(Ue(),e)}function Hp(e,t){return this.isValid()&&(qt(e)&&e.isValid()||Ue(e).isValid())?Ht({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function zp(e){return this.to(Ue(),e)}function vh(e){var t;return e===void 0?this._locale._abbr:(t=ka(e),t!=null&&(this._locale=t),this)}var Rh=Mt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function Nh(){return this._locale}var br=1e3,Ki=60*br,yr=60*Ki,wh=(365*400+97)*24*yr;function Xi(e,t){return(e%t+t)%t}function Oh(e,t,a){return e<100&&e>=0?new Date(e+400,t,a)-wh:new Date(e,t,a).valueOf()}function xh(e,t,a){return e<100&&e>=0?Date.UTC(e+400,t,a)-wh:Date.UTC(e,t,a)}function Vp(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?xh:Oh,e){case"year":t=a(this.year(),0,1);break;case"quarter":t=a(this.year(),this.month()-this.month()%3,1);break;case"month":t=a(this.year(),this.month(),1);break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":t=a(this.year(),this.month(),this.date());break;case"hour":t=this._d.valueOf(),t-=Xi(t+(this._isUTC?0:this.utcOffset()*Ki),yr);break;case"minute":t=this._d.valueOf(),t-=Xi(t,Ki);break;case"second":t=this._d.valueOf(),t-=Xi(t,br);break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function $p(e){var t,a;if(e=It(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(a=this._isUTC?xh:Oh,e){case"year":t=a(this.year()+1,0,1)-1;break;case"quarter":t=a(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":t=a(this.year(),this.month()+1,1)-1;break;case"week":t=a(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":t=a(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":t=a(this.year(),this.month(),this.date()+1)-1;break;case"hour":t=this._d.valueOf(),t+=yr-Xi(t+(this._isUTC?0:this.utcOffset()*Ki),yr)-1;break;case"minute":t=this._d.valueOf(),t+=Ki-Xi(t,Ki)-1;break;case"second":t=this._d.valueOf(),t+=br-Xi(t,br)-1;break}return this._d.setTime(t),ae.updateOffset(this,!0),this}function Wp(){return this._d.valueOf()-(this._offset||0)*6e4}function Qp(){return Math.floor(this.valueOf()/1e3)}function Jp(){return new Date(this.valueOf())}function Kp(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function Xp(){var e=this;return{years:e.year(),months:e.month(),date:e.date(),hours:e.hours(),minutes:e.minutes(),seconds:e.seconds(),milliseconds:e.milliseconds()}}function eT(){return this.isValid()?this.toISOString():null}function tT(){return ql(this)}function aT(){return Ua({},Ee(this))}function iT(){return Ee(this).overflow}function nT(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}_e("N",0,0,"eraAbbr"),_e("NN",0,0,"eraAbbr"),_e("NNN",0,0,"eraAbbr"),_e("NNNN",0,0,"eraName"),_e("NNNNN",0,0,"eraNarrow"),_e("y",["y",1],"yo","eraYear"),_e("y",["yy",2],0,"eraYear"),_e("y",["yyy",3],0,"eraYear"),_e("y",["yyyy",4],0,"eraYear"),oe("N",Ko),oe("NN",Ko),oe("NNN",Ko),oe("NNNN",_T),oe("NNNNN",FT),Le(["N","NN","NNN","NNNN","NNNNN"],function(e,t,a,i){var n=a._locale.erasParse(e,i,a._strict);n?Ee(a).era=n:Ee(a).invalidEra=e}),oe("y",Ui),oe("yy",Ui),oe("yyy",Ui),oe("yyyy",Ui),oe("yo",mT),Le(["y","yy","yyy","yyyy"],lt),Le(["yo"],function(e,t,a,i){var n;a._locale._eraYearOrdinalRegex&&(n=e.match(a._locale._eraYearOrdinalRegex)),a._locale.eraYearOrdinalParse?t[lt]=a._locale.eraYearOrdinalParse(e,n):t[lt]=parseInt(e,10)});function rT(e,t){var a,i,n,r=this._eras||ka("en")._eras;for(a=0,i=r.length;a=0)return r[i]}function sT(e,t){var a=e.since<=e.until?1:-1;return t===void 0?ae(e.since).year():ae(e.since).year()+(t-e.offset)*a}function lT(){var e,t,a,i=this.localeData().eras();for(e=0,t=i.length;er&&(t=r),AT.call(this,e,t,a,i,n))}function AT(e,t,a,i,n){var r=Fh(e,t,a,i,n),o=r0(r.year,0,r.dayOfYear);return this.year(o.getUTCFullYear()),this.month(o.getUTCMonth()),this.date(o.getUTCDate()),this}_e("Q",0,"Qo","quarter"),ut("quarter","Q"),dt("quarter",7),oe("Q",dh),Le("Q",function(e,t){t[ga]=(Ae(e)-1)*3});function ST(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}_e("D",["DD",2],"Do","date"),ut("date","D"),dt("date",9),oe("D",Ge),oe("DD",Ge,Rt),oe("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),Le(["D","DD"],ea),Le("Do",function(e,t){t[ea]=Ae(e.match(Ge)[0])});var _d=Dn("Date",!0);_e("DDD",["DDDD",3],"DDDo","dayOfYear"),ut("dayOfYear","DDD"),dt("dayOfYear",4),oe("DDD",Q0),oe("DDDD",ch),Le(["DDD","DDDD"],function(e,t,a){a._dayOfYear=Ae(e)});function kT(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}_e("m",["mm",2],0,"minute"),ut("minute","m"),dt("minute",14),oe("m",Ge),oe("mm",Ge,Rt),Le(["m","mm"],Gt);var vT=Dn("Minutes",!1);_e("s",["ss",2],0,"second"),ut("second","s"),dt("second",15),oe("s",Ge),oe("ss",Ge,Rt),Le(["s","ss"],_a);var RT=Dn("Seconds",!1);_e("S",0,0,function(){return~~(this.millisecond()/100)}),_e(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),_e(0,["SSS",3],0,"millisecond"),_e(0,["SSSS",4],0,function(){return this.millisecond()*10}),_e(0,["SSSSS",5],0,function(){return this.millisecond()*100}),_e(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3}),_e(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4}),_e(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5}),_e(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6}),ut("millisecond","ms"),dt("millisecond",16),oe("S",Q0,dh),oe("SS",Q0,Rt),oe("SSS",Q0,ch);var qa,Ch;for(qa="SSSS";qa.length<=9;qa+="S")oe(qa,Ui);function NT(e,t){t[mi]=Ae(("0."+e)*1e3)}for(qa="S";qa.length<=9;qa+="S")Le(qa,NT);Ch=Dn("Milliseconds",!1),_e("z",0,0,"zoneAbbr"),_e("zz",0,0,"zoneName");function wT(){return this._isUTC?"UTC":""}function OT(){return this._isUTC?"Coordinated Universal Time":""}var Q=p0.prototype;Q.add=yp,Q.calendar=wp,Q.clone=Op,Q.diff=Zp,Q.endOf=$p,Q.format=Gp,Q.from=Up,Q.fromNow=qp,Q.to=Hp,Q.toNow=zp,Q.get=BF,Q.invalidAt=iT,Q.isAfter=xp,Q.isBefore=Bp,Q.isBetween=Cp,Q.isSame=Mp,Q.isSameOrAfter=Yp,Q.isSameOrBefore=Lp,Q.isValid=tT,Q.lang=Rh,Q.locale=vh,Q.localeData=Nh,Q.max=tp,Q.min=ep,Q.parsingFlags=aT,Q.set=CF,Q.startOf=Vp,Q.subtract=Ap,Q.toArray=Kp,Q.toObject=Xp,Q.toDate=Jp,Q.toISOString=jp,Q.inspect=Pp,typeof Symbol<"u"&&Symbol.for!=null&&(Q[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),Q.toJSON=eT,Q.toString=Ip,Q.unix=Qp,Q.valueOf=Wp,Q.creationData=nT,Q.eraName=lT,Q.eraNarrow=uT,Q.eraAbbr=dT,Q.eraYear=cT,Q.year=ld,Q.isLeapYear=XF,Q.weekYear=pT,Q.isoWeekYear=TT,Q.quarter=Q.quarters=ST,Q.month=sd,Q.daysInMonth=QF,Q.week=Q.weeks=rm,Q.isoWeek=Q.isoWeeks=om,Q.weeksInYear=bT,Q.weeksInWeekYear=yT,Q.isoWeeksInYear=DT,Q.isoWeeksInISOWeekYear=ET,Q.date=_d,Q.day=Q.days=Tm,Q.weekday=Dm,Q.isoWeekday=Em,Q.dayOfYear=kT,Q.hour=Q.hours=Rm,Q.minute=Q.minutes=vT,Q.second=Q.seconds=RT,Q.millisecond=Q.milliseconds=Ch,Q.utcOffset=dp,Q.utc=hp,Q.local=fp,Q.parseZone=gp,Q.hasAlignedHourOffset=_p,Q.isDST=Fp,Q.isLocal=pp,Q.isUtcOffset=Tp,Q.isUtc=fd,Q.isUTC=fd,Q.zoneAbbr=wT,Q.zoneName=OT,Q.dates=Mt("dates accessor is deprecated. Use date instead.",_d),Q.months=Mt("months accessor is deprecated. Use month instead",sd),Q.years=Mt("years accessor is deprecated. Use year instead",ld),Q.zone=Mt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",cp),Q.isDSTShifted=Mt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",mp);function xT(e){return Ue(e*1e3)}function BT(){return Ue.apply(null,arguments).parseZone()}function Fd(e){return e}var Oe=zl.prototype;Oe.calendar=TF,Oe.longDateFormat=yF,Oe.invalidDate=SF,Oe.ordinal=RF,Oe.preparse=Fd,Oe.postformat=Fd,Oe.relativeTime=wF,Oe.pastFuture=OF,Oe.set=mF,Oe.eras=rT,Oe.erasParse=oT,Oe.erasConvertYear=sT,Oe.erasAbbrRegex=fT,Oe.erasNameRegex=hT,Oe.erasNarrowRegex=gT,Oe.months=zF,Oe.monthsShort=VF,Oe.monthsParse=WF,Oe.monthsRegex=KF,Oe.monthsShortRegex=JF,Oe.week=tm,Oe.firstDayOfYear=nm,Oe.firstDayOfWeek=im,Oe.weekdays=gm,Oe.weekdaysMin=Fm,Oe.weekdaysShort=_m,Oe.weekdaysParse=pm,Oe.weekdaysRegex=bm,Oe.weekdaysShortRegex=ym,Oe.weekdaysMinRegex=Am,Oe.isPM=km,Oe.meridiem=Nm;function Ar(e,t,a,i){var n=ka(),r=la().set(i,t);return n[a](r,e)}function Mh(e,t,a){if(Ta(e)&&(t=e,e=void 0),e=e||"",t!=null)return Ar(e,t,a,"month");var i,n=[];for(i=0;i<12;i++)n[i]=Ar(e,i,a,"month");return n}function nu(e,t,a,i){typeof e=="boolean"?(Ta(t)&&(a=t,t=void 0),t=t||""):(t=e,a=t,e=!1,Ta(t)&&(a=t,t=void 0),t=t||"");var n=ka(),r=e?n._week.dow:0,o,s=[];if(a!=null)return Ar(t,(a+r)%7,i,"day");for(o=0;o<7;o++)s[o]=Ar(t,(o+r)%7,i,"day");return s}function CT(e,t){return Mh(e,t,"months")}function MT(e,t){return Mh(e,t,"monthsShort")}function YT(e,t,a){return nu(e,t,a,"weekdays")}function LT(e,t,a){return nu(e,t,a,"weekdaysShort")}function ZT(e,t,a){return nu(e,t,a,"weekdaysMin")}Ha("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,a=Ae(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+a}}),ae.lang=Mt("moment.lang is deprecated. Use moment.locale instead.",Ha),ae.langData=Mt("moment.langData is deprecated. Use moment.localeData instead.",ka);var ca=Math.abs;function IT(){var e=this._data;return this._milliseconds=ca(this._milliseconds),this._days=ca(this._days),this._months=ca(this._months),e.milliseconds=ca(e.milliseconds),e.seconds=ca(e.seconds),e.minutes=ca(e.minutes),e.hours=ca(e.hours),e.months=ca(e.months),e.years=ca(e.years),this}function Yh(e,t,a,i){var n=Ht(t,a);return e._milliseconds+=i*n._milliseconds,e._days+=i*n._days,e._months+=i*n._months,e._bubble()}function jT(e,t){return Yh(this,e,t,1)}function PT(e,t){return Yh(this,e,t,-1)}function md(e){return e<0?Math.floor(e):Math.ceil(e)}function GT(){var e=this._milliseconds,t=this._days,a=this._months,i=this._data,n,r,o,s,l;return e>=0&&t>=0&&a>=0||e<=0&&t<=0&&a<=0||(e+=md(zs(a)+t)*864e5,t=0,a=0),i.milliseconds=e%1e3,n=Bt(e/1e3),i.seconds=n%60,r=Bt(n/60),i.minutes=r%60,o=Bt(r/60),i.hours=o%24,t+=Bt(o/24),l=Bt(Lh(t)),a+=l,t-=md(zs(l)),s=Bt(a/12),a%=12,i.days=t,i.months=a,i.years=s,this}function Lh(e){return e*4800/146097}function zs(e){return e*146097/4800}function UT(e){if(!this.isValid())return NaN;var t,a,i=this._milliseconds;if(e=It(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+i/864e5,a=this._months+Lh(t),e){case"month":return a;case"quarter":return a/3;case"year":return a/12}else switch(t=this._days+Math.round(zs(this._months)),e){case"week":return t/7+i/6048e5;case"day":return t+i/864e5;case"hour":return t*24+i/36e5;case"minute":return t*1440+i/6e4;case"second":return t*86400+i/1e3;case"millisecond":return Math.floor(t*864e5)+i;default:throw new Error("Unknown unit "+e)}}function qT(){return this.isValid()?this._milliseconds+this._days*864e5+this._months%12*2592e6+Ae(this._months/12)*31536e6:NaN}function va(e){return function(){return this.as(e)}}var HT=va("ms"),zT=va("s"),VT=va("m"),$T=va("h"),WT=va("d"),QT=va("w"),JT=va("M"),KT=va("Q"),XT=va("y");function e2(){return Ht(this)}function t2(e){return e=It(e),this.isValid()?this[e+"s"]():NaN}function Ri(e){return function(){return this.isValid()?this._data[e]:NaN}}var a2=Ri("milliseconds"),i2=Ri("seconds"),n2=Ri("minutes"),r2=Ri("hours"),o2=Ri("days"),s2=Ri("months"),l2=Ri("years");function u2(){return Bt(this.days()/7)}var fa=Math.round,qi={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function d2(e,t,a,i,n){return n.relativeTime(t||1,!!a,e,i)}function c2(e,t,a,i){var n=Ht(e).abs(),r=fa(n.as("s")),o=fa(n.as("m")),s=fa(n.as("h")),l=fa(n.as("d")),d=fa(n.as("M")),u=fa(n.as("w")),c=fa(n.as("y")),f=r<=a.ss&&["s",r]||r0,f[4]=i,d2.apply(null,f)}function h2(e){return e===void 0?fa:typeof e=="function"?(fa=e,!0):!1}function f2(e,t){return qi[e]===void 0?!1:t===void 0?qi[e]:(qi[e]=t,e==="s"&&(qi.ss=t-1),!0)}function g2(e,t){if(!this.isValid())return this.localeData().invalidDate();var a=!1,i=qi,n,r;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(a=e),typeof t=="object"&&(i=Object.assign({},qi,t),t.s!=null&&t.ss==null&&(i.ss=t.s-1)),n=this.localeData(),r=c2(this,!a,i,n),a&&(r=n.pastFuture(+this,r)),n.postformat(r)}var Xo=Math.abs;function Oi(e){return(e>0)-(e<0)||+e}function w0(){if(!this.isValid())return this.localeData().invalidDate();var e=Xo(this._milliseconds)/1e3,t=Xo(this._days),a=Xo(this._months),i,n,r,o,s=this.asSeconds(),l,d,u,c;return s?(i=Bt(e/60),n=Bt(i/60),e%=60,i%=60,r=Bt(a/12),a%=12,o=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=s<0?"-":"",d=Oi(this._months)!==Oi(s)?"-":"",u=Oi(this._days)!==Oi(s)?"-":"",c=Oi(this._milliseconds)!==Oi(s)?"-":"",l+"P"+(r?d+r+"Y":"")+(a?d+a+"M":"")+(t?u+t+"D":"")+(n||i||e?"T":"")+(n?c+n+"H":"")+(i?c+i+"M":"")+(e?c+o+"S":"")):"P0D"}var Ne=Fo.prototype;Ne.isValid=op,Ne.abs=IT,Ne.add=jT,Ne.subtract=PT,Ne.as=UT,Ne.asMilliseconds=HT,Ne.asSeconds=zT,Ne.asMinutes=VT,Ne.asHours=$T,Ne.asDays=WT,Ne.asWeeks=QT,Ne.asMonths=JT,Ne.asQuarters=KT,Ne.asYears=XT,Ne.valueOf=qT,Ne._bubble=GT,Ne.clone=e2,Ne.get=t2,Ne.milliseconds=a2,Ne.seconds=i2,Ne.minutes=n2,Ne.hours=r2,Ne.days=o2,Ne.weeks=u2,Ne.months=s2,Ne.years=l2,Ne.humanize=g2,Ne.toISOString=w0,Ne.toString=w0,Ne.toJSON=w0,Ne.locale=vh,Ne.localeData=Nh,Ne.toIsoString=Mt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",w0),Ne.lang=Rh,_e("X",0,0,"unix"),_e("x",0,0,"valueOf"),oe("x",Tr),oe("X",YF),Le("X",function(e,t,a){a._d=new Date(parseFloat(e)*1e3)}),Le("x",function(e,t,a){a._d=new Date(Ae(e))});ae.version="2.29.4",_F(Ue),ae.fn=Q,ae.min=ap,ae.max=ip,ae.now=np,ae.utc=la,ae.unix=xT,ae.months=CT,ae.isDate=m0,ae.locale=Ha,ae.invalid=ho,ae.duration=Ht,ae.isMoment=qt,ae.weekdays=YT,ae.parseZone=BT,ae.localeData=ka,ae.isDuration=K0,ae.monthsShort=MT,ae.weekdaysMin=ZT,ae.defineLocale=Jl,ae.updateLocale=Bm,ae.locales=Cm,ae.weekdaysShort=LT,ae.normalizeUnits=It,ae.relativeTimeRounding=h2,ae.relativeTimeThreshold=f2,ae.calendarFormat=Np,ae.prototype=Q,ae.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const _2=Object.freeze(Object.defineProperty({__proto__:null,default:ae},Symbol.toStringTag,{value:"Module"})),F2=Ml(_2),m2=Ml(x_);(function(e,t){(function(a,i){e.exports=i()})(self,function(){return function(){var a={n:function(f){var h=f&&f.__esModule?function(){return f.default}:function(){return f};return a.d(h,{a:h}),h},d:function(f,h){for(var _ in h)a.o(h,_)&&!a.o(f,_)&&Object.defineProperty(f,_,{enumerable:!0,get:h[_]})},o:function(f,h){return Object.prototype.hasOwnProperty.call(f,h)},r:function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})}},i={};a.r(i),a.d(i,{default:function(){return c}});var n=F2,r=a.n(n),o=Q_(),s=a.n(o),l=m2,d=new(s()),u=(0,l.getLocale)();[{locale:"ar",json:{charset:"utf-8",headers:{"Last-Translator":"Ali , 2023","Language-Team":"Arabic (https://app.transifex.com/nextcloud/teams/64236/ar/)","Content-Type":"text/plain; charset=UTF-8",Language:"ar","Plural-Forms":"nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 && n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;"},translations:{"":{"":{msgid:"",comments:{translator:`
Translators:
Ali , 2023
`},msgstr:[`Last-Translator: Ali , 2023
@@ -924,7 +924,7 @@ Language-Team: Chinese (Taiwan) (https://app.transifex.com/nextcloud/teams/64236
Content-Type: text/plain; charset=UTF-8
Language: zh_TW
Plural-Forms: nplurals=1; plural=0;
-`]},seconds:{msgid:"seconds",comments:{reference:"lib/index.ts:22"},msgstr:["秒"]}}}}}].find(function(f){return f.locale===u}))&&r().updateLocale(r().locale(),{relativeTime:{s:d.gettext("seconds")}});var c=r();return i}()})})(th);var p2=th.exports;const es=Xa(p2);const T2={name:"NcButton",props:{alignment:{type:String,default:"center",validator:e=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(e)},disabled:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:"secondary"},nativeType:{type:String,validator(e){return["submit","reset","button"].indexOf(e)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":this.pressed===!1&&this.type==="primary"?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(e){var t,a,i;const n=!!this.$slots.default,r=(t=this.$slots)==null?void 0:t.icon;!n&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:(i=(a=this.$slots.default)==null?void 0:a[0])==null?void 0:i.text,ariaLabel:this.ariaLabel},this);const o=({navigate:s,isActive:l,isExactActive:d}={})=>e(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":r&&!n,"button-vue--text-only":n&&!r,"button-vue--icon-and-text":r&&n,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:l,"router-link-exact-active":d}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:u=>{typeof this.pressed=="boolean"&&this.$emit("update:pressed",!this.pressed),this.$emit("click",u),s?.(u)}}},[e("span",{class:"button-vue__wrapper"},[r?e("span",{class:"button-vue__icon",attrs:{"aria-hidden":this.ariaHidden}},[this.$slots.icon]):null,n?e("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?e("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:o}}):o()}},D2=null,E2=null;var b2=ce(T2,D2,E2,!1,null,"f507b497",null,null);const ti=b2.exports;function Ra(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function D0(e){return["top","bottom"].includes(Ra(e))?"x":"y"}function nu(e){return e==="y"?"height":"width"}function md(e){let{reference:t,floating:a,placement:i}=e;const n=t.x+t.width/2-a.width/2,r=t.y+t.height/2-a.height/2;let o;switch(Ra(i)){case"top":o={x:n,y:t.y-a.height};break;case"bottom":o={x:n,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-a.width,y:r};break;default:o={x:t.x,y:t.y}}const s=D0(i),l=nu(s);switch(en(i)){case"start":o[s]=o[s]-(t[l]/2-a[l]/2);break;case"end":o[s]=o[s]+(t[l]/2-a[l]/2);break}return o}const y2=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a;let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:d}=md({...s,placement:i}),u=i,c={};for(let f=0;f({name:"arrow",options:e,async fn(t){const{element:a,padding:i=0}=e??{},{x:n,y:r,placement:o,rects:s,platform:l}=t;if(a==null)return{};const d=Lh(i),u={x:n,y:r},c=Ra(o),f=D0(c),h=nu(f),_=await l.getDimensions({element:a}),m=f==="y"?"top":"left",p=f==="y"?"bottom":"right",T=s.reference[h]+s.reference[f]-u[f]-s.floating[h],R=u[f]-s.reference[f],S=await l.getOffsetParent({element:a}),C=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,j=T/2-R/2,E=d[m],I=C-_[h]-d[p],M=C/2-_[h]/2+j,P=$s(E,M,I);return{data:{[f]:P,centerOffset:M-P}}}}),v2={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e){return e.replace(/left|right|bottom|top/g,t=>v2[t])}function Zh(e,t){const a=en(e)==="start",i=D0(e),n=nu(i);let r=i==="x"?a?"right":"left":a?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=Sr(r)),{main:r,cross:Sr(r)}}const R2={start:"end",end:"start"};function Ws(e){return e.replace(/start|end/g,t=>R2[t])}const N2=["top","right","bottom","left"],w2=N2.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function O2(e,t,a){return(e?[...a.filter(i=>en(i)===e),...a.filter(i=>en(i)!==e)]:a.filter(i=>Ra(i)===i)).filter(i=>e?en(i)===e||(t?Ws(i)!==i:!1):!0)}const x2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,n,r,o,s;const{x:l,y:d,rects:u,middlewareData:c,placement:f}=t,{alignment:h=null,allowedPlacements:_=w2,autoAlignment:m=!0,...p}=e;if((a=c.autoPlacement)!=null&&a.skip)return{};const T=O2(h,m,_),R=await mo(t,p),S=(i=(n=c.autoPlacement)==null?void 0:n.index)!=null?i:0,C=T[S],{main:j,cross:E}=Zh(C,u);if(f!==C)return{x:l,y:d,reset:{placement:T[0]}};const I=[R[Ra(C)],R[j],R[E]],M=[...(r=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?r:[],{placement:C,overflows:I}],P=T[S+1];if(P)return{data:{index:S+1,overflows:M},reset:{placement:P}};const g=M.slice().sort((k,x)=>k.overflows[0]-x.overflows[0]),D=(s=g.find(k=>{let{overflows:x}=k;return x.every(L=>L<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:D??g[0].placement}}}}};function B2(e){const t=Sr(e);return[Ws(e),t,Ws(t)]}const C2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:n,middlewareData:r,rects:o,initialPlacement:s}=t;if((a=r.flip)!=null&&a.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",flipAlignment:f=!0,...h}=e,_=Ra(n),m=u||(_===s||!f?[Sr(s)]:B2(s)),p=[s,...m],T=await mo(t,h),R=[];let S=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&R.push(T[_]),d){const{main:I,cross:M}=Zh(n,o);R.push(T[I],T[M])}if(S=[...S,{placement:n,overflows:R}],!R.every(I=>I<=0)){var C,j;const I=((C=(j=r.flip)==null?void 0:j.index)!=null?C:0)+1,M=p[I];if(M)return{data:{index:I,overflows:S},reset:{placement:M}};let P="bottom";switch(c){case"bestFit":{var E;const g=(E=S.slice().sort((D,k)=>D.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0)-k.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0))[0])==null?void 0:E.placement;g&&(P=g);break}case"initialPlacement":P=s;break}return{data:{skip:!0},reset:{placement:P}}}return{}}}};function M2(e){let{placement:t,rects:a,value:i}=e;const n=Ra(t),r=["left","top"].includes(n)?-1:1,o=typeof i=="function"?i({...a,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof o=="number"?{mainAxis:o,crossAxis:0}:{mainAxis:0,crossAxis:0,...o};return D0(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const Y2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:a,y:i,placement:n,rects:r}=t,o=M2({placement:n,rects:r,value:e});return{x:a+o.x,y:i+o.y,data:o}}}};function L2(e){return e==="x"?"y":"x"}const Z2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=e,d={x:a,y:i},u=await mo(t,l),c=D0(Ra(n)),f=L2(c);let h=d[c],_=d[f];if(r){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=$s(R,h,S)}if(o){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=$s(R,_,S)}const m=s.fn({...t,[c]:h,[f]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},I2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a;const{placement:i,rects:n,middlewareData:r}=t,{apply:o,...s}=e;if((a=r.size)!=null&&a.skip)return{};const l=await mo(t,s),d=Ra(i),u=en(i)==="end";let c,f;d==="top"||d==="bottom"?(c=d,f=u?"left":"right"):(f=d,c=u?"top":"bottom");const h=ci(l.left,0),_=ci(l.right,0),m=ci(l.top,0),p=ci(l.bottom,0),T={height:n.floating.height-(["left","right"].includes(i)?2*(m!==0||p!==0?m+p:ci(l.top,l.bottom)):l[c]),width:n.floating.width-(["top","bottom"].includes(i)?2*(h!==0||_!==0?h+_:ci(l.left,l.right)):l[f])};return o?.({...T,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function ru(e){return e?.toString()==="[object Window]"}function ai(e){if(e==null)return window;if(!ru(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){return ai(e).getComputedStyle(e)}function Da(e){return ru(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ea(e){return e instanceof ai(e).HTMLElement}function kr(e){return e instanceof ai(e).Element}function j2(e){return e instanceof ai(e).Node}function Ih(e){const t=ai(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function To(e){const{overflow:t,overflowX:a,overflowY:i}=po(e);return/auto|scroll|overlay|hidden/.test(t+i+a)}function P2(e){return["table","td","th"].includes(Da(e))}function jh(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),a=po(e);return a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].includes(a.willChange)||t&&a.willChange==="filter"||t&&(a.filter?a.filter!=="none":!1)}const pd=Math.min,Ln=Math.max,vr=Math.round;function sn(e,t){t===void 0&&(t=!1);const a=e.getBoundingClientRect();let i=1,n=1;return t&&Ea(e)&&(i=e.offsetWidth>0&&vr(a.width)/e.offsetWidth||1,n=e.offsetHeight>0&&vr(a.height)/e.offsetHeight||1),{width:a.width/i,height:a.height/n,top:a.top/n,right:a.right/i,bottom:a.bottom/n,left:a.left/i,x:a.left/i,y:a.top/n}}function ii(e){return((j2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Do(e){return ru(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ph(e){return sn(ii(e)).left+Do(e).scrollLeft}function G2(e){const t=sn(e);return vr(t.width)!==e.offsetWidth||vr(t.height)!==e.offsetHeight}function U2(e,t,a){const i=Ea(t),n=ii(t),r=sn(e,i&&G2(t));let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Da(t)!=="body"||To(n))&&(o=Do(t)),Ea(t)){const l=sn(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=Ph(n));return{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Eo(e){return Da(e)==="html"?e:e.assignedSlot||e.parentNode||(Ih(e)?e.host:null)||ii(e)}function Td(e){return!Ea(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function q2(e){let t=Eo(e);for(;Ea(t)&&!["html","body"].includes(Da(t));){if(jh(t))return t;t=t.parentNode}return null}function Qs(e){const t=ai(e);let a=Td(e);for(;a&&P2(a)&&getComputedStyle(a).position==="static";)a=Td(a);return a&&(Da(a)==="html"||Da(a)==="body"&&getComputedStyle(a).position==="static"&&!jh(a))?t:a||q2(e)||t}function Dd(e){return{width:e.offsetWidth,height:e.offsetHeight}}function H2(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=Ea(a),r=ii(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((Da(a)!=="body"||To(r))&&(o=Do(a)),Ea(a))){const l=sn(a,!0);s.x=l.x+a.clientLeft,s.y=l.y+a.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}}function z2(e){const t=ai(e),a=ii(e),i=t.visualViewport;let n=a.clientWidth,r=a.clientHeight,o=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(o=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:o,y:s}}function V2(e){var t;const a=ii(e),i=Do(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=Ln(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Ln(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+Ph(e);const l=-i.scrollTop;return po(n||a).direction==="rtl"&&(s+=Ln(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:s,y:l}}function Gh(e){return["html","body","#document"].includes(Da(e))?e.ownerDocument.body:Ea(e)&&To(e)?e:Gh(Eo(e))}function Rr(e,t){var a;t===void 0&&(t=[]);const i=Gh(e),n=i===((a=e.ownerDocument)==null?void 0:a.body),r=ai(i),o=n?[r].concat(r.visualViewport||[],To(i)?i:[]):i,s=t.concat(o);return n?s:s.concat(Rr(Eo(o)))}function $2(e,t){const a=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(a&&Ih(a)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function W2(e){const t=sn(e),a=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:a,left:i,x:i,y:a,right:i+e.clientWidth,bottom:a+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function Ed(e,t){return t==="viewport"?Vs(z2(e)):kr(t)?W2(t):Vs(V2(ii(e)))}function Q2(e){const t=Rr(Eo(e)),a=["absolute","fixed"].includes(po(e).position)&&Ea(e)?Qs(e):e;return kr(a)?t.filter(i=>kr(i)&&$2(i,a)&&Da(i)!=="body"):[]}function J2(e){let{element:t,boundary:a,rootBoundary:i}=e;const n=[...a==="clippingParents"?Q2(t):[].concat(a),i],r=n[0],o=n.reduce((s,l)=>{const d=Ed(t,l);return s.top=Ln(d.top,s.top),s.right=pd(d.right,s.right),s.bottom=pd(d.bottom,s.bottom),s.left=Ln(d.left,s.left),s},Ed(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}const K2={getElementRects:e=>{let{reference:t,floating:a,strategy:i}=e;return{reference:U2(t,Qs(a),i),floating:{...Dd(a),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>H2(e),getOffsetParent:e=>{let{element:t}=e;return Qs(t)},isElement:e=>kr(e),getDocumentElement:e=>{let{element:t}=e;return ii(t)},getClippingClientRect:e=>J2(e),getDimensions:e=>{let{element:t}=e;return Dd(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},X2=(e,t,a)=>y2(e,t,{platform:K2,...a});var e3=Object.defineProperty,t3=Object.defineProperties,a3=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,Uh=Object.prototype.hasOwnProperty,qh=Object.prototype.propertyIsEnumerable,bd=(e,t,a)=>t in e?e3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ja=(e,t)=>{for(var a in t||(t={}))Uh.call(t,a)&&bd(e,a,t[a]);if(Nr)for(var a of Nr(t))qh.call(t,a)&&bd(e,a,t[a]);return e},bo=(e,t)=>t3(e,a3(t)),i3=(e,t)=>{var a={};for(var i in e)Uh.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Nr)for(var i of Nr(e))t.indexOf(i)<0&&qh.call(e,i)&&(a[i]=e[i]);return a};function Hh(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?Hh(e[a],t[a]):e[a]=t[a])}const ia={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function ln(e,t){let a=ia.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=ia.themes[a.$extend]||{}:(a=null,i=ia[t]):a=null;while(a);return i}function n3(e){const t=[e];let a=ia.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function yd(e){const t=[e];let a=ia.themes[e]||{};do a.$extend?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t}let Ai=!1;if(typeof window<"u"){Ai=!1;try{const e=Object.defineProperty({},"passive",{get(){Ai=!0}});window.addEventListener("test",null,e)}catch{}}let zh=!1;typeof window<"u"&&typeof navigator<"u"&&(zh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Vh=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Ad={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},Sd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function kd(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function ts(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Pt=[];let si=null;const vd={};function Rd(e){let t=vd[e];return t||(t=vd[e]=[]),t}let Js=function(){};typeof window<"u"&&(Js=window.Element);function we(e){return function(){const t=this.$props;return ln(t.theme,e)}}const as="__floating-vue__popper";var $h=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:we("disabled")},positioningDisabled:{type:Boolean,default:we("positioningDisabled")},placement:{type:String,default:we("placement"),validator:e=>Vh.includes(e)},delay:{type:[String,Number,Object],default:we("delay")},distance:{type:[Number,String],default:we("distance")},skidding:{type:[Number,String],default:we("skidding")},triggers:{type:Array,default:we("triggers")},showTriggers:{type:[Array,Function],default:we("showTriggers")},hideTriggers:{type:[Array,Function],default:we("hideTriggers")},popperTriggers:{type:Array,default:we("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:we("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:we("popperHideTriggers")},container:{type:[String,Object,Js,Boolean],default:we("container")},boundary:{type:[String,Js],default:we("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:we("strategy")},autoHide:{type:[Boolean,Function],default:we("autoHide")},handleResize:{type:Boolean,default:we("handleResize")},instantMove:{type:Boolean,default:we("instantMove")},eagerMount:{type:Boolean,default:we("eagerMount")},popperClass:{type:[String,Array,Object],default:we("popperClass")},computeTransformOrigin:{type:Boolean,default:we("computeTransformOrigin")},autoMinSize:{type:Boolean,default:we("autoMinSize")},autoSize:{type:[Boolean,String],default:we("autoSize")},autoMaxSize:{type:Boolean,default:we("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:we("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:we("preventOverflow")},overflowPadding:{type:[Number,String],default:we("overflowPadding")},arrowPadding:{type:[Number,String],default:we("arrowPadding")},arrowOverflow:{type:Boolean,default:we("arrowOverflow")},flip:{type:Boolean,default:we("flip")},shift:{type:Boolean,default:we("shift")},shiftCrossAxis:{type:Boolean,default:we("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:we("noAutoFocus")}},provide(){return{[as]:{parentPopper:this}}},inject:{[as]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:bo(ja({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var e;return(e=this[as])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:ja(ja({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1,skipAiming:a=!1}={}){var i;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!a&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Y2({mainAxis:this.distance,crossAxis:this.skidding}));const a=this.placement.startsWith("auto");if(a?t.middleware.push(x2({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Z2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!a&&this.flip&&t.middleware.push(C2({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(k2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:o})=>{let s;const{centerOffset:l}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let d,u;return o.startsWith("top")||o.startsWith("bottom")?d=r.reference.width:u=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(I2({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await X2(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:ja(ja({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),si&&this.instantMove&&si.instantMove&&si!==this.parentPopper){si.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(si=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ts(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Rr(this.$_referenceNode),...Rr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+a.offsetLeft),r=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,kd(Pt,this),Pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of yd(this.theme)){const i=Rd(a);kd(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}si===this&&(si=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=ln(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ts(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Ad,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Ad,this.popperTriggers,this.popperShowTriggers,e);const t=a=>i=>{i.usedByTooltip||this.hide({event:i,skipAiming:a})};this.$_registerTriggerListeners(this.$_targetNodes,Sd,this.triggers,this.hideTriggers,t(!1)),this.$_registerTriggerListeners([this.$_popperNode],Sd,this.popperTriggers,this.popperHideTriggers,t(!0))},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,Ai?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,n){let r=a;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(o=>{const s=t[o];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:n,handler:r}=a;!e||e===n?i.forEach(o=>o.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$el.getBoundingClientRect();if(Zn>=e.left&&Zn<=e.right&&In>=e.top&&In<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=Zn-Ca,i=In-Ma,n=t.left+t.width/2-Ca+(t.top+t.height/2)-Ma+t.width+t.height,r=Ca+a*n,o=Ma+i*n;return O0(Ca,Ma,r,o,t.left,t.top,t.left,t.bottom)||O0(Ca,Ma,r,o,t.left,t.top,t.right,t.top)||O0(Ca,Ma,r,o,t.right,t.top,t.right,t.bottom)||O0(Ca,Ma,r,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(zh?(document.addEventListener("touchstart",Nd,Ai?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",o3,Ai?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",Nd,!0),window.addEventListener("click",r3,!0)),window.addEventListener("resize",u3));function Nd(e){for(let t=0;t=0;i--){const n=Pt[i];try{const r=n.$_containsGlobalTarget=s3(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!a[n.randomId]&&wd(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let o=n.parentPopper;for(;o&&wd(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function s3(e,t){const a=e.popperNode();return e.$_mouseDownContains||a.contains(t.target)}function wd(e,t,a){return a.closeAllPopover||a.closePopover&&t||l3(e,a)&&!t}function l3(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function u3(e){for(let t=0;t{Ca=Zn,Ma=In,Zn=e.clientX,In=e.clientY},Ai?{passive:!0}:void 0);function O0(e,t,a,i,n,r,o,s){const l=((o-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t)),d=((a-e)*(t-r)-(i-t)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}function d3(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}var er;function Ks(){Ks.init||(Ks.init=!0,er=d3()!==-1)}var c3={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Ks(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",er&&this.$el.appendChild(t),t.data="about:blank",er||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!er&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function h3(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var f3=c3,Qh=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},g3=[];Qh._withStripped=!0;var _3=void 0,F3="data-v-8859cc6c",m3=void 0,p3=!1,Xs=h3({render:Qh,staticRenderFns:g3},_3,f3,F3,p3,m3,!1,void 0,void 0,void 0);function T3(e){e.component("resize-observer",Xs),e.component("ResizeObserver",Xs)}var D3={version:"1.0.1",install:T3},x0=null;typeof window<"u"?x0=window.Vue:typeof gr.global<"u"&&(x0=gr.global.Vue),x0&&x0.use(D3);var Jh={computed:{themeClass(){return n3(this.theme)}}},E3={name:"VPopperContent",components:{ResizeObserver:Xs},mixins:[Jh],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}},b3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}],style:e.result?{position:e.result.strategy,transform:"translate3d("+Math.round(e.result.x)+"px,"+Math.round(e.result.y)+"px,0)"}:void 0,attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0},on:{keyup:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[a("div",{staticClass:"v-popper__backdrop",on:{click:function(i){e.autoHide&&e.$emit("hide")}}}),a("div",{staticClass:"v-popper__wrapper",style:e.result?{transformOrigin:e.result.transformOrigin}:void 0},[a("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[a("div",[e._t("default")],2),e.handleResize?a("ResizeObserver",{on:{notify:function(i){return e.$emit("resize",i)}}}):e._e()]:e._e()],2),a("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0},[a("div",{staticClass:"v-popper__arrow-outer"}),a("div",{staticClass:"v-popper__arrow-inner"})])])])},y3=[];function En(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const Od={};var A3=En(E3,b3,y3,!1,S3,null,null,null);function S3(e){for(let t in Od)this[t]=Od[t]}var Kh=function(){return A3.exports}(),ou={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},k3={name:"VPopperWrapper",components:{Popper:$h(),PopperContent:Kh},mixins:[ou,Jh],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}},v3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el}},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.show,u=i.hide,c=i.handleResize,f=i.onResize,h=i.classes,_=i.result;return[a("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:d,hide:u}),a("PopperContent",{ref:"popperContent",attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":c,classes:h,result:_},on:{hide:u,resize:f}},[e._t("popper",null,{shown:r,hide:u})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},R3=[];const xd={};var N3=En(k3,v3,R3,!1,w3,null,null,null);function w3(e){for(let t in xd)this[t]=xd[t]}var su=function(){return N3.exports}(),O3=bo(ja({},su),{name:"VDropdown",vPopperTheme:"dropdown"});let x3,B3;const Bd={};var C3=En(O3,x3,B3,!1,M3,null,null,null);function M3(e){for(let t in Bd)this[t]=Bd[t]}var el=function(){return C3.exports}(),Y3=bo(ja({},su),{name:"VMenu",vPopperTheme:"menu"});let L3,Z3;const Cd={};var I3=En(Y3,L3,Z3,!1,j3,null,null,null);function j3(e){for(let t in Cd)this[t]=Cd[t]}var Md=function(){return I3.exports}(),P3=bo(ja({},su),{name:"VTooltip",vPopperTheme:"tooltip"});let G3,U3;const Yd={};var q3=En(P3,G3,U3,!1,H3,null,null,null);function H3(e){for(let t in Yd)this[t]=Yd[t]}var Ld=function(){return q3.exports}(),z3={name:"VTooltipDirective",components:{Popper:$h(),PopperContent:Kh},mixins:[ou],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return ln(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return ln(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(e){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},V3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.hide,u=i.handleResize,c=i.onResize,f=i.classes,h=i.result;return[a("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":u,classes:f,result:h},on:{hide:d,resize:c}},[e.html?a("div",{domProps:{innerHTML:e._s(e.finalContent)}}):a("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},$3=[];const Zd={};var W3=En(z3,V3,$3,!1,Q3,null,null,null);function Q3(e){for(let t in Zd)this[t]=Zd[t]}var J3=function(){return W3.exports}();const Xh="v-popper--has-tooltip";function K3(e,t){let a=e.placement;if(!a&&t)for(const i of Vh)t[i]&&(a=i);return a||(a=ln(e.theme||"tooltip","placement")),a}function ef(e,t,a){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=K3(i,a),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}function X3(e,t,a){const i=ef(e,t,a),n=e.$_popper=new Sa({mixins:[ou],data(){return{options:i}},render(o){const s=this.options,{theme:l,html:d,content:u,loadingContent:c}=s,f=i3(s,["theme","html","content","loadingContent"]);return o(J3,{props:{theme:l,html:d,content:u,loadingContent:c},attrs:f,ref:"popper"})},devtools:{hide:!0}}),r=document.createElement("div");return document.body.appendChild(r),n.$mount(r),e.classList&&e.classList.add(Xh),n}function tf(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(Xh)}function Id(e,{value:t,oldValue:a,modifiers:i}){const n=ef(e,t,i);if(!n.content||ln(n.theme||"tooltip","disabled"))tf(e);else{let r;e.$_popper?(r=e.$_popper,r.options=n):r=X3(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var af={bind:Id,update:Id,unbind(e){tf(e)}};function jd(e){e.addEventListener("click",nf),e.addEventListener("touchstart",rf,Ai?{passive:!0}:!1)}function Pd(e){e.removeEventListener("click",nf),e.removeEventListener("touchstart",rf),e.removeEventListener("touchend",of),e.removeEventListener("touchcancel",sf)}function nf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function rf(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",of),t.addEventListener("touchcancel",sf)}}function of(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-i.screenY)<20&&Math.abs(a.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function sf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var eD={bind(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&jd(e)},update(e,{value:t,oldValue:a,modifiers:i}){e.$_closePopoverModifiers=i,t!==a&&(typeof t>"u"||t?jd(e):Pd(e))},unbind(e){Pd(e)}};const B0=ia,lf=af,tD=el;function aD(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Hh(ia,t),e.directive("tooltip",af),e.directive("close-popper",eD),e.component("v-tooltip",Ld),e.component("VTooltip",Ld),e.component("v-dropdown",el),e.component("VDropdown",el),e.component("v-menu",Md),e.component("VMenu",Md))}const iD={version:"1.0.0-beta.19",install:aD,options:ia};let C0=null;typeof window<"u"?C0=window.Vue:typeof gr.global<"u"&&(C0=gr.global.Vue),C0&&C0.use(iD);B0.themes.tooltip.html=!1,B0.themes.tooltip.delay={show:500,hide:200},B0.themes.tooltip.distance=10,B0.themes.tooltip["arrow-padding"]=3;const nD={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rD=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},oD=[],sD=ce(nD,rD,oD,!1,null,null,null,null);const uf=sD.exports,is=new Sa({data(){return{isMobile:!1}},watch:{isMobile(e){this.$emit("changed",e)}},created(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},methods:{handleWindowResize(){this.isMobile=document.documentElement.clientWidth<1024}}}),lD={data(){return{isMobile:!1}},mounted(){is.$on("changed",this.onIsMobileChanged),this.isMobile=is.isMobile},beforeDestroy(){is.$off("changed",this.onIsMobileChanged)},methods:{onIsMobileChanged(e){this.isMobile=e}}};var tr={},wr={},l0={};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=void 0;function Or(e,t,a){return t=uD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function uD(e){var t=dD(e,"string");return typeof t=="symbol"?t:String(t)}function dD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tn{constructor(t,a,i){Or(this,"scope",void 0),Or(this,"wrapped",void 0),this.scope=`${i?tn.GLOBAL_SCOPE_PERSISTENT:tn.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=a}scopeKey(t){return`${this.scope}${t}`}setItem(t,a){this.wrapped.setItem(this.scopeKey(t),a)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}l0.default=tn,Or(tn,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),Or(tn,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var cD=hD(l0);function hD(e){return e&&e.__esModule?e:{default:e}}function ns(e,t,a){return t=fD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function fD(e){var t=gD(e,"string");return typeof t=="symbol"?t:String(t)}function gD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class _D{constructor(t){ns(this,"appId",void 0),ns(this,"persisted",!1),ns(this,"clearedOnLogout",!1),this.appId=t}persist(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=t,this}clearOnLogout(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=t,this}build(){return new cD.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}wr.default=_D,Object.defineProperty(tr,"__esModule",{value:!0}),tr.clearAll=TD,tr.clearNonPersistent=DD;var df=tr.getBuilder=pD,FD=cf(wr),mD=cf(l0);function cf(e){return e&&e.__esModule?e:{default:e}}function pD(e){return new FD.default(e)}function hf(e,t){Object.keys(e).filter(a=>t?t(a):!0).map(e.removeItem.bind(e))}function TD(){[window.sessionStorage,window.localStorage].map(e=>hf(e))}function DD(){[window.sessionStorage,window.localStorage].map(e=>hf(e,t=>!t.startsWith(mD.default.GLOBAL_SCOPE_PERSISTENT)))}Sa.util.warn;function E0(e){return eF()?(tF(e),!0):!1}function nt(e){return typeof e=="function"?e():aF(e)}const lu=typeof window<"u"&&typeof document<"u",ED=e=>e!=null,bD=Object.prototype.toString,ff=e=>bD.call(e)==="[object Object]",ct=()=>{},tl=yD();function yD(){var e;return lu&&((e=window?.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function gf(e,t){function a(...i){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(n).catch(r)})}return a}function AD(e,t={}){let a,i,n=ct;const r=o=>{clearTimeout(o),n(),n=ct};return o=>{const s=nt(e),l=nt(t.maxWait);return a&&r(a),s<=0||l!==void 0&&l<=0?(i&&(r(i),i=null),Promise.resolve(o())):new Promise((d,u)=>{n=t.rejectOnCancel?u:d,l&&!i&&(i=setTimeout(()=>{a&&r(a),i=null,d(o())},l)),a=setTimeout(()=>{i&&r(i),i=null,d(o())},s)})}}function SD(e,t=!0,a=!0,i=!1){let n=0,r,o=!0,s=ct,l;const d=()=>{r&&(clearTimeout(r),r=void 0,s(),s=ct)};return u=>{const c=nt(e),f=Date.now()-n,h=()=>l=u();return d(),c<=0?(n=Date.now(),h()):(f>c&&(a||!o)?(n=Date.now(),h()):t&&(l=new Promise((_,m)=>{s=i?m:_,r=setTimeout(()=>{n=Date.now(),o=!0,_(h()),d()},Math.max(0,c-f))})),!a&&!r&&(r=setTimeout(()=>o=!0,c)),o=!1,l)}}const Gd={mounted:"inserted",updated:"componentUpdated",unmounted:"unbind"};function kD(...e){if(e.length!==1)return J_(...e);const t=e[0];return typeof t=="function"?K_(X_(()=>({get:t,set:ct}))):gt(t)}function vD(e,t=200,a={}){return gf(AD(t,a),e)}function RD(e,t=200,a=!1,i=!0,n=!1){return gf(SD(t,a,i,n),e)}Sa.util.warn;function pa(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const Ni=lu?window:void 0;function jn(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=Ni):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[pa(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=ff(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}function ND(){const e=gt(!1);return nF()&&rF(()=>{e.value=!0}),e}function _f(e){const t=ND();return st(()=>(t.value,!!e()))}function wD(e,t,a={}){const{window:i=Ni,...n}=a;let r;const o=_f(()=>i&&"ResizeObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},l=st(()=>Array.isArray(e)?e.map(c=>pa(c)):[pa(e)]),d=ei(l,c=>{if(s(),o.value&&i){r=new ResizeObserver(t);for(const f of c)f&&r.observe(f,n)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),d()};return E0(u),{isSupported:o,stop:u}}function OD(e,t={width:0,height:0},a={}){const{window:i=Ni,box:n="content-box"}=a,r=st(()=>{var l,d;return(d=(l=pa(e))==null?void 0:l.namespaceURI)==null?void 0:d.includes("svg")}),o=gt(t.width),s=gt(t.height);return wD(e,([l])=>{const d=n==="border-box"?l.borderBoxSize:n==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(i&&r.value){const u=pa(e);if(u){const c=i.getComputedStyle(u);o.value=Number.parseFloat(c.width),s.value=Number.parseFloat(c.height)}}else if(d){const u=Array.isArray(d)?d:[d];o.value=u.reduce((c,{inlineSize:f})=>c+f,0),s.value=u.reduce((c,{blockSize:f})=>c+f,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},a),ei(()=>pa(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}function xD(e,t,a={}){const{root:i,rootMargin:n="0px",threshold:r=.1,window:o=Ni,immediate:s=!0}=a,l=_f(()=>o&&"IntersectionObserver"in o),d=st(()=>{const _=nt(e);return(Array.isArray(_)?_:[_]).map(pa).filter(ED)});let u=ct;const c=gt(s),f=l.value?ei(()=>[d.value,pa(i),c.value],([_,m])=>{if(u(),!c.value||!_.length)return;const p=new IntersectionObserver(t,{root:pa(m),rootMargin:n,threshold:r});_.forEach(T=>T&&p.observe(T)),u=()=>{p.disconnect(),u=ct}},{immediate:s,flush:"post"}):ct,h=()=>{u(),f(),c.value=!1};return E0(h),{isSupported:l,isActive:c,pause(){u(),c.value=!1},resume(){c.value=!0},stop:h}}function BD(e,t={}){const{window:a=Ni,scrollTarget:i}=t,n=gt(!1);return xD(e,([{isIntersecting:r}])=>{n.value=r},{root:i,window:a,threshold:0}),n}const Ud=1;function CD(e,t={}){const{throttle:a=0,idle:i=200,onStop:n=ct,onScroll:r=ct,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:d=Ni}=t,u=gt(0),c=gt(0),f=st({get(){return u.value},set(E){_(E,void 0)}}),h=st({get(){return c.value},set(E){_(void 0,E)}});function _(E,I){var M,P,g;if(!d)return;const D=nt(e);D&&((g=D instanceof Document?d.document.body:D)==null||g.scrollTo({top:(M=nt(I))!=null?M:h.value,left:(P=nt(E))!=null?P:f.value,behavior:nt(l)}))}const m=gt(!1),p=i0({left:!0,right:!1,top:!0,bottom:!1}),T=i0({left:!1,right:!1,top:!1,bottom:!1}),R=E=>{m.value&&(m.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,n(E))},S=vD(R,a+i),C=E=>{var I;if(!d)return;const M=E.document?E.document.documentElement:(I=E.documentElement)!=null?I:E,{display:P,flexDirection:g}=getComputedStyle(M),D=M.scrollLeft;T.left=Du.value;const k=Math.abs(D)<=0+(o.left||0),x=Math.abs(D)+M.clientWidth>=M.scrollWidth-(o.right||0)-Ud;P==="flex"&&g==="row-reverse"?(p.left=x,p.right=k):(p.left=k,p.right=x),u.value=D;let L=M.scrollTop;E===d.document&&!L&&(L=d.document.body.scrollTop),T.top=Lc.value;const Z=Math.abs(L)<=0+(o.top||0),$=Math.abs(L)+M.clientHeight>=M.scrollHeight-(o.bottom||0)-Ud;P==="flex"&&g==="column-reverse"?(p.top=$,p.bottom=Z):(p.top=Z,p.bottom=$),c.value=L},j=E=>{var I;if(!d)return;const M=(I=E.target.documentElement)!=null?I:E.target;C(M),m.value=!0,S(E),r(E)};return jn(e,"scroll",a?RD(j,a,!0,!1):j,s),jn(e,"scrollend",R,s),{x:f,y:h,isScrolling:m,arrivedState:p,directions:T,measure(){const E=nt(e);d&&E&&C(E)}}}function MD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function vM(e,t,a={}){var i;const{direction:n="bottom",interval:r=100}=a,o=i0(CD(e,{...a,offset:{[n]:(i=a.distance)!=null?i:0,...a.offset}})),s=gt(),l=st(()=>!!s.value),d=st(()=>MD(nt(e))),u=BD(d);function c(){if(o.measure(),!d.value||!u.value)return;const{scrollHeight:f,clientHeight:h,scrollWidth:_,clientWidth:m}=d.value,p=n==="bottom"||n==="top"?f<=h:_<=m;(o.arrivedState[n]||p)&&(s.value||(s.value=Promise.all([t(o),new Promise(T=>setTimeout(T,r))]).finally(()=>{s.value=null,iF(()=>c())})))}return ei(()=>[o.arrivedState[n],u.value],c,{immediate:!0}),{isLoading:l}}function Ff(e,t={}){const{threshold:a=50,onSwipe:i,onSwipeEnd:n,onSwipeStart:r,passive:o=!0,window:s=Ni}=t,l=i0({x:0,y:0}),d=i0({x:0,y:0}),u=st(()=>l.x-d.x),c=st(()=>l.y-d.y),{max:f,abs:h}=Math,_=st(()=>f(h(u.value),h(c.value))>=a),m=gt(!1),p=st(()=>_.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),T=M=>[M.touches[0].clientX,M.touches[0].clientY],R=(M,P)=>{l.x=M,l.y=P},S=(M,P)=>{d.x=M,d.y=P};let C;const j=YD(s?.document);o?C=j?{passive:!0}:{capture:!1}:C=j?{passive:!1,capture:!0}:{capture:!0};const E=M=>{m.value&&n?.(M,p.value),m.value=!1},I=[jn(e,"touchstart",M=>{if(M.touches.length!==1)return;C.capture&&!C.passive&&M.preventDefault();const[P,g]=T(M);R(P,g),S(P,g),r?.(M)},C),jn(e,"touchmove",M=>{if(M.touches.length!==1)return;const[P,g]=T(M);S(P,g),!m.value&&_.value&&(m.value=!0),m.value&&i?.(M)},C),jn(e,["touchend","touchcancel"],E,C)];return{isPassiveEventSupported:j,isSwiping:m,direction:p,coordsStart:l,coordsEnd:d,lengthX:u,lengthY:c,stop:()=>I.forEach(M=>M())}}function YD(e){if(!e)return!1;let t=!1;const a={get passive(){return t=!0,!1}};return e.addEventListener("x",ct,a),e.removeEventListener("x",ct),t}var LD=Object.defineProperty,ZD=Object.defineProperties,ID=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,mf=Object.prototype.hasOwnProperty,pf=Object.prototype.propertyIsEnumerable,qd=(e,t,a)=>t in e?LD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,jD=(e,t)=>{for(var a in t||(t={}))mf.call(t,a)&&qd(e,a,t[a]);if(xr)for(var a of xr(t))pf.call(t,a)&&qd(e,a,t[a]);return e},PD=(e,t)=>ZD(e,ID(t)),GD=(e,t)=>{var a={};for(var i in e)mf.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&xr)for(var i of xr(e))t.indexOf(i)<0&&pf.call(e,i)&&(a[i]=e[i]);return a};function Tf(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const UD={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let a=0;this.panes=this.panes.map((i,n)=>(i.size=n===t?i.max:i.min,n!==t&&(a+=i.min),i)),this.panes[t].size-=a,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let a={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:a.prevPanesSize),n=100-(this.pushOtherPanes?0:a.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),n),i);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const d=s.max<100&&r>=s.max+a.prevPanesSize,u=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(d||u){d?(s.size=s.max,l.size=Math.max(100-s.max-a.prevPanesSize-a.nextPanesSize,0)):(s.size=Math.max(100-l.max-a.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(a,r);if(!c)return;({sums:a,panesToResize:o}=c),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(r-a.prevPanesSize-a.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-r-a.nextPanesSize-a.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const a=this.touch.activeSplitter,i=[a,a+1];return t{r>i[0]&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,r)=>{r>0&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(a).index,e.nextReachedMinPanes=0,i[1]>a+1&&this.panes.forEach((n,r)=>{r>a&&r{r=a+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,a,i)=>t+(it+(i>e+1?a.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),a=e.classList.contains("splitpanes__splitter");if(!t&&!a){e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(e,t,a=!1){const i=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),a||(n.onmousedown=r=>this.onMouseDown(r,i),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=r=>this.onMouseDown(r,i)),n.onclick=r=>this.onSplitterClick(r,i+1)),this.dblClickSplitter&&(n.ondblclick=r=>this.onSplitterDblClick(r,i+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(a=>{a.className.includes("splitpanes__splitter")&&this.removeSplitter(a)});let t=0;e.forEach(a=>{a.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,a,!0):t&&this.addSplitter(t,a),t++)})},requestUpdate(e){var t=e,{target:a}=t,i=GD(t,["target"]);const n=this.indexedPanes[a._uid];Object.entries(i).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const a=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(a)?0:a,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,r)=>n.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._uid),a=this.panes.splice(t,1)[0];this.panes.forEach((i,n)=>i.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:PD(jD({},a),{index:t})}),this.$emit("pane-remove",{removed:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0,a=[],i=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&a.push(n.id),n.size<=n.min&&i.push(n.id)}),t>.1&&this.readjustSizes(t,a,i)},initialPanesSizing(){100/this.panesCount;let e=100,t=[],a=[],i=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&i++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&a.push(r.id)});let n=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-i),r.max),r.min)),n-=r.size}),n>.1&&this.readjustSizes(e,t,a))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let a=100/this.panesCount,i=0,n=[],r=[];e&&e.givenSize!==null&&(a=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(a,o.max),o.min)),i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),i>.1&&this.readjustSizes(i,n,r))},readjustSizes(e,t,a){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-a.length),this.panes.forEach((n,r)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}else if(!a.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,a)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,a):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let qD,HD;const Hd={};var zD=Tf(UD,qD,HD,!1,VD,null,null,null);function VD(e){for(let t in Hd)this[t]=Hd[t]}var $D=function(){return zD.exports}(),WD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(i){return e.onPaneClick(i,e._uid)}}},[e._t("default")],2)},QD=[];const JD={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},zd={};var KD=Tf(JD,WD,QD,!1,XD,null,null,null);function XD(e){for(let t in zd)this[t]=zd[t]}var eE=function(){return KD.exports}();const tE={name:"NcAppDetailsToggle",directives:{tooltip:lf},components:{NcButton:ti,ArrowRight:uf},computed:{title(){return ie("Go back to the list")}},beforeMount(){this.toggleAppNavigationButton(!0)},beforeDestroy(){this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(e=!0){const t=document.querySelector(".app-navigation .app-navigation-toggle");t&&(t.style.display=e?"none":null,e===!0&&fr("toggle-navigation",{open:!1}))}}};var aE=function(){var e=this,t=e._self._c;return t("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.title,expression:"title"}],staticClass:"app-details-toggle",attrs:{"aria-label":e.title},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},iE=[],nE=ce(tE,aE,iE,!1,null,"5244e83e",null,null);const rE=nE.exports,Vd=df("nextcloud").persist().build(),oE={name:"NcAppContent",components:{NcAppDetailsToggle:rE,Pane:eE,Splitpanes:$D},mixins:[lD],props:{allowSwipeNavigation:{type:Boolean,default:!0},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},pageHeading:{type:String,default:null}},emits:["update:showDetails","resize:list"],data(){return{contentHeight:0,hasList:!1,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${w_}`}catch{return console.info("[INFO] AppContent:","falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}}},updated(){this.checkListSlot()},mounted(){this.allowSwipeNavigation&&(this.swiping=Ff(this.$el,{onSwipeEnd:this.handleSwipe})),this.checkListSlot(),this.restorePaneConfig()},methods:{handleSwipe(e,t){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&t==="right"?fr("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&t==="left"&&fr("toggle-navigation",{open:!1}))},handlePaneResize(e){const t=parseInt(e[0].size,10);Vd.setItem(this.paneConfigID,JSON.stringify(t)),this.listPaneSize=t,this.$emit("resize:list",{size:t}),console.debug("AppContent pane config",t)},checkListSlot(){const e=!!this.$slots.list;this.hasList!==e&&(this.hasList=e)},restorePaneConfig(){const e=parseInt(Vd.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return console.debug("AppContent pane config",e),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}};var sE=function(){var e=this,t=e._self._c;return t("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":e.hasList},attrs:{id:"app-content-vue"}},[e.pageHeading?t("h1",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.pageHeading)+" ")]):e._e(),e.hasList?[e.isMobile?t("div",{staticClass:"app-content-wrapper app-content-wrapper--mobile",class:e.showDetails?"app-content-wrapper--show-details":"app-content-wrapper--show-list"},[e.hasList&&e.showDetails?t("NcAppDetailsToggle",{nativeOn:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.hideDetails.apply(null,arguments)}}}):e._e(),e._t("list"),e._t("default")],2):t("div",{staticClass:"app-content-wrapper"},[t("Splitpanes",{staticClass:"default-theme",on:{resized:e.handlePaneResize}},[t("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:e.listPaneSize||e.paneDefaults.list.size,"min-size":e.paneDefaults.list.min,"max-size":e.paneDefaults.list.max}},[e._t("list")],2),t("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:e.detailsPaneSize,"min-size":e.paneDefaults.details.min,"max-size":e.paneDefaults.details.max}},[e._t("default")],2)],1)],1)]:e._t("default")],2)},lE=[],uE=ce(oE,sE,lE,!1,null,"424ef3d1",null,null);const RM=uE.exports;const dE={name:"NcIconSvgWrapper",props:{svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""}},computed:{cleanSvg(){if(!this.svg||this.path)return;const e=oF.sanitize(this.svg),t=new DOMParser().parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(Sa.util.warn("SVG is not valid"),""):(t.documentElement.id&&t.documentElement.removeAttribute("id"),t.documentElement.outerHTML)},attributes(){return{class:"icon-vue",role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var cE=function(){var e=this,t=e._self._c;return e.cleanSvg?t("span",e._b({domProps:{innerHTML:e._s(e.cleanSvg)}},"span",e.attributes,!1)):t("span",e._b({},"span",e.attributes,!1),[t("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:e.path}})])])},hE=[],fE=ce(dE,cE,hE,!1,null,"6176f396",null,null);const Df=fE.exports;const gE={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){var e;return this.description!==""||((e=this.$slots.description)==null?void 0:e[0])}}};var _E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},FE=[],mE=ce(gE,_E,FE,!1,null,"458108e7",null,null);const uu=mE.exports;class pE{constructor(t){if(typeof t!="object")throw new Error("Received activity data is not an object.");if(typeof t.activity_id!="number")throw new Error("The activity_id argument is not a valid string");if(typeof t.type!="string"||t.type.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.subject!="string"||t.subject.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.icon!="string"||t.icon.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.datetime!="string"||t.datetime.trim()==="")throw new Error("The activity_id argument is not a valid string");this._activity=t}get id(){return this._activity.activity_id}get app(){return this._activity.app}get type(){return this._activity.type}get user(){return this._activity.user}get subject(){return this._activity.subject}get subjectRichTemplate(){return this._activity.subject_rich[0]}get subjectRichObjects(){return Array.isArray(this._activity.subject_rich[1])?{}:this._activity.subject_rich[1]}get message(){return this._activity.message}get messageRichTemplate(){return this._activity.message_rich[0]}get messageRichObjects(){return Array.isArray(this._activity.message_rich[1])?this._activity.message_rich[1]:{}}get objectType(){return this._activity.object_type}get objectId(){return this._activity.object_id}get objectName(){return this._activity.object_name}get link(){return this._activity.link}get icon(){return this._activity.icon}get datetime(){return this._activity.datetime}get dateFromNow(){return es(this._activity.datetime).fromNow()}get formattedDate(){return es(this._activity.datetime).format("LLL")}get timestamp(){return es(this._activity.datetime).unix()}get previews(){return this._activity.previews??[]}}const TE={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var DE=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},EE=[],bE=ce(TE,DE,EE,!1,null,null,null,null);const Ef=bE.exports,yE={before(){(!this.$slots.default||this.text.trim()==="")&&(Sa.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`,this),this.$destroy(),this.$el.remove())},beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},AE=function(e,t){let a=e.$parent;for(;a;){if(a.$options.name===t)return a;a=a.$parent}},bf={mixins:[yE],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=AE(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},SE={name:"NcActionButton",components:{ChevronRightIcon:Ef},mixins:[bf],props:{disabled:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},isMenu:{type:Boolean,default:!1}},computed:{isFocusable(){return!this.disabled}}};var kE=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[t("button",{staticClass:"action-button",class:{focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,title:e.title,role:"menuitem",type:"button"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-button__longtext-wrapper"},[t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(e._s(e.text))]),e.isMenu?t("ChevronRightIcon",{staticClass:"action-button__menu-icon"}):e._e(),e._e()],2)])},vE=[],RE=ce(SE,kE,vE,!1,null,"4ad257bb",null,null);const NE=RE.exports;const yf=x_.getLoggerBuilder().detectUser().setApp("@nextcloud/vue").build();var Af={exports:{}};(function(e){var t;(function(){t=e.exports})(),t.foldLength=75,t.newLineChar=`\r
+`]},seconds:{msgid:"seconds",comments:{reference:"lib/index.ts:22"},msgstr:["秒"]}}}}}].find(function(f){return f.locale===u}))&&r().updateLocale(r().locale(),{relativeTime:{s:d.gettext("seconds")}});var c=r();return i}()})})(ah);var p2=ah.exports;const es=Xa(p2);const T2={name:"NcButton",props:{alignment:{type:String,default:"center",validator:e=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(e)},disabled:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:"secondary"},nativeType:{type:String,validator(e){return["submit","reset","button"].indexOf(e)!==-1},default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":this.pressed===!1&&this.type==="primary"?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(e){var t,a,i;const n=!!this.$slots.default,r=(t=this.$slots)==null?void 0:t.icon;!n&&!this.ariaLabel&&console.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:(i=(a=this.$slots.default)==null?void 0:a[0])==null?void 0:i.text,ariaLabel:this.ariaLabel},this);const o=({navigate:s,isActive:l,isExactActive:d}={})=>e(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":r&&!n,"button-vue--text-only":n&&!r,"button-vue--icon-and-text":r&&n,[`button-vue--vue-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:this.flexAlignment!=="center","button-vue--reverse":this.isReverseAligned,active:l,"router-link-exact-active":d}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:u=>{typeof this.pressed=="boolean"&&this.$emit("update:pressed",!this.pressed),this.$emit("click",u),s?.(u)}}},[e("span",{class:"button-vue__wrapper"},[r?e("span",{class:"button-vue__icon",attrs:{"aria-hidden":this.ariaHidden}},[this.$slots.icon]):null,n?e("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?e("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:o}}):o()}},D2=null,E2=null;var b2=ce(T2,D2,E2,!1,null,"f507b497",null,null);const ti=b2.exports;function Ra(e){return e.split("-")[0]}function en(e){return e.split("-")[1]}function D0(e){return["top","bottom"].includes(Ra(e))?"x":"y"}function ru(e){return e==="y"?"height":"width"}function pd(e){let{reference:t,floating:a,placement:i}=e;const n=t.x+t.width/2-a.width/2,r=t.y+t.height/2-a.height/2;let o;switch(Ra(i)){case"top":o={x:n,y:t.y-a.height};break;case"bottom":o={x:n,y:t.y+t.height};break;case"right":o={x:t.x+t.width,y:r};break;case"left":o={x:t.x-a.width,y:r};break;default:o={x:t.x,y:t.y}}const s=D0(i),l=ru(s);switch(en(i)){case"start":o[s]=o[s]-(t[l]/2-a[l]/2);break;case"end":o[s]=o[s]+(t[l]/2-a[l]/2);break}return o}const y2=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a;let s=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:l,y:d}=pd({...s,placement:i}),u=i,c={};for(let f=0;f({name:"arrow",options:e,async fn(t){const{element:a,padding:i=0}=e??{},{x:n,y:r,placement:o,rects:s,platform:l}=t;if(a==null)return{};const d=Zh(i),u={x:n,y:r},c=Ra(o),f=D0(c),h=ru(f),_=await l.getDimensions({element:a}),m=f==="y"?"top":"left",p=f==="y"?"bottom":"right",T=s.reference[h]+s.reference[f]-u[f]-s.floating[h],R=u[f]-s.reference[f],S=await l.getOffsetParent({element:a}),C=S?f==="y"?S.clientHeight||0:S.clientWidth||0:0,j=T/2-R/2,E=d[m],I=C-_[h]-d[p],M=C/2-_[h]/2+j,P=$s(E,M,I);return{data:{[f]:P,centerOffset:M-P}}}}),v2={left:"right",right:"left",bottom:"top",top:"bottom"};function Sr(e){return e.replace(/left|right|bottom|top/g,t=>v2[t])}function Ih(e,t){const a=en(e)==="start",i=D0(e),n=ru(i);let r=i==="x"?a?"right":"left":a?"bottom":"top";return t.reference[n]>t.floating[n]&&(r=Sr(r)),{main:r,cross:Sr(r)}}const R2={start:"end",end:"start"};function Ws(e){return e.replace(/start|end/g,t=>R2[t])}const N2=["top","right","bottom","left"],w2=N2.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function O2(e,t,a){return(e?[...a.filter(i=>en(i)===e),...a.filter(i=>en(i)!==e)]:a.filter(i=>Ra(i)===i)).filter(i=>e?en(i)===e||(t?Ws(i)!==i:!1):!0)}const x2=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var a,i,n,r,o,s;const{x:l,y:d,rects:u,middlewareData:c,placement:f}=t,{alignment:h=null,allowedPlacements:_=w2,autoAlignment:m=!0,...p}=e;if((a=c.autoPlacement)!=null&&a.skip)return{};const T=O2(h,m,_),R=await mo(t,p),S=(i=(n=c.autoPlacement)==null?void 0:n.index)!=null?i:0,C=T[S],{main:j,cross:E}=Ih(C,u);if(f!==C)return{x:l,y:d,reset:{placement:T[0]}};const I=[R[Ra(C)],R[j],R[E]],M=[...(r=(o=c.autoPlacement)==null?void 0:o.overflows)!=null?r:[],{placement:C,overflows:I}],P=T[S+1];if(P)return{data:{index:S+1,overflows:M},reset:{placement:P}};const g=M.slice().sort((k,x)=>k.overflows[0]-x.overflows[0]),D=(s=g.find(k=>{let{overflows:x}=k;return x.every(L=>L<=0)}))==null?void 0:s.placement;return{data:{skip:!0},reset:{placement:D??g[0].placement}}}}};function B2(e){const t=Sr(e);return[Ws(e),t,Ws(t)]}const C2=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var a,i;const{placement:n,middlewareData:r,rects:o,initialPlacement:s}=t;if((a=r.flip)!=null&&a.skip)return{};const{mainAxis:l=!0,crossAxis:d=!0,fallbackPlacements:u,fallbackStrategy:c="bestFit",flipAlignment:f=!0,...h}=e,_=Ra(n),m=u||(_===s||!f?[Sr(s)]:B2(s)),p=[s,...m],T=await mo(t,h),R=[];let S=((i=r.flip)==null?void 0:i.overflows)||[];if(l&&R.push(T[_]),d){const{main:I,cross:M}=Ih(n,o);R.push(T[I],T[M])}if(S=[...S,{placement:n,overflows:R}],!R.every(I=>I<=0)){var C,j;const I=((C=(j=r.flip)==null?void 0:j.index)!=null?C:0)+1,M=p[I];if(M)return{data:{index:I,overflows:S},reset:{placement:M}};let P="bottom";switch(c){case"bestFit":{var E;const g=(E=S.slice().sort((D,k)=>D.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0)-k.overflows.filter(x=>x>0).reduce((x,L)=>x+L,0))[0])==null?void 0:E.placement;g&&(P=g);break}case"initialPlacement":P=s;break}return{data:{skip:!0},reset:{placement:P}}}return{}}}};function M2(e){let{placement:t,rects:a,value:i}=e;const n=Ra(t),r=["left","top"].includes(n)?-1:1,o=typeof i=="function"?i({...a,placement:t}):i,{mainAxis:s,crossAxis:l}=typeof o=="number"?{mainAxis:o,crossAxis:0}:{mainAxis:0,crossAxis:0,...o};return D0(n)==="x"?{x:l,y:s*r}:{x:s*r,y:l}}const Y2=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:a,y:i,placement:n,rects:r}=t,o=M2({placement:n,rects:r,value:e});return{x:a+o.x,y:i+o.y,data:o}}}};function L2(e){return e==="x"?"y":"x"}const Z2=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=e,d={x:a,y:i},u=await mo(t,l),c=D0(Ra(n)),f=L2(c);let h=d[c],_=d[f];if(r){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=$s(R,h,S)}if(o){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=$s(R,_,S)}const m=s.fn({...t,[c]:h,[f]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},I2=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var a;const{placement:i,rects:n,middlewareData:r}=t,{apply:o,...s}=e;if((a=r.size)!=null&&a.skip)return{};const l=await mo(t,s),d=Ra(i),u=en(i)==="end";let c,f;d==="top"||d==="bottom"?(c=d,f=u?"left":"right"):(f=d,c=u?"top":"bottom");const h=ci(l.left,0),_=ci(l.right,0),m=ci(l.top,0),p=ci(l.bottom,0),T={height:n.floating.height-(["left","right"].includes(i)?2*(m!==0||p!==0?m+p:ci(l.top,l.bottom)):l[c]),width:n.floating.width-(["top","bottom"].includes(i)?2*(h!==0||_!==0?h+_:ci(l.left,l.right)):l[f])};return o?.({...T,...n}),{data:{skip:!0},reset:{rects:!0}}}}};function ou(e){return e?.toString()==="[object Window]"}function ai(e){if(e==null)return window;if(!ou(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function po(e){return ai(e).getComputedStyle(e)}function Da(e){return ou(e)?"":e?(e.nodeName||"").toLowerCase():""}function Ea(e){return e instanceof ai(e).HTMLElement}function kr(e){return e instanceof ai(e).Element}function j2(e){return e instanceof ai(e).Node}function jh(e){const t=ai(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function To(e){const{overflow:t,overflowX:a,overflowY:i}=po(e);return/auto|scroll|overlay|hidden/.test(t+i+a)}function P2(e){return["table","td","th"].includes(Da(e))}function Ph(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),a=po(e);return a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].includes(a.willChange)||t&&a.willChange==="filter"||t&&(a.filter?a.filter!=="none":!1)}const Td=Math.min,Ln=Math.max,vr=Math.round;function sn(e,t){t===void 0&&(t=!1);const a=e.getBoundingClientRect();let i=1,n=1;return t&&Ea(e)&&(i=e.offsetWidth>0&&vr(a.width)/e.offsetWidth||1,n=e.offsetHeight>0&&vr(a.height)/e.offsetHeight||1),{width:a.width/i,height:a.height/n,top:a.top/n,right:a.right/i,bottom:a.bottom/n,left:a.left/i,x:a.left/i,y:a.top/n}}function ii(e){return((j2(e)?e.ownerDocument:e.document)||window.document).documentElement}function Do(e){return ou(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Gh(e){return sn(ii(e)).left+Do(e).scrollLeft}function G2(e){const t=sn(e);return vr(t.width)!==e.offsetWidth||vr(t.height)!==e.offsetHeight}function U2(e,t,a){const i=Ea(t),n=ii(t),r=sn(e,i&&G2(t));let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if(i||!i&&a!=="fixed")if((Da(t)!=="body"||To(n))&&(o=Do(t)),Ea(t)){const l=sn(t,!0);s.x=l.x+t.clientLeft,s.y=l.y+t.clientTop}else n&&(s.x=Gh(n));return{x:r.left+o.scrollLeft-s.x,y:r.top+o.scrollTop-s.y,width:r.width,height:r.height}}function Eo(e){return Da(e)==="html"?e:e.assignedSlot||e.parentNode||(jh(e)?e.host:null)||ii(e)}function Dd(e){return!Ea(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function q2(e){let t=Eo(e);for(;Ea(t)&&!["html","body"].includes(Da(t));){if(Ph(t))return t;t=t.parentNode}return null}function Qs(e){const t=ai(e);let a=Dd(e);for(;a&&P2(a)&&getComputedStyle(a).position==="static";)a=Dd(a);return a&&(Da(a)==="html"||Da(a)==="body"&&getComputedStyle(a).position==="static"&&!Ph(a))?t:a||q2(e)||t}function Ed(e){return{width:e.offsetWidth,height:e.offsetHeight}}function H2(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=Ea(a),r=ii(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0};const s={x:0,y:0};if((n||!n&&i!=="fixed")&&((Da(a)!=="body"||To(r))&&(o=Do(a)),Ea(a))){const l=sn(a,!0);s.x=l.x+a.clientLeft,s.y=l.y+a.clientTop}return{...t,x:t.x-o.scrollLeft+s.x,y:t.y-o.scrollTop+s.y}}function z2(e){const t=ai(e),a=ii(e),i=t.visualViewport;let n=a.clientWidth,r=a.clientHeight,o=0,s=0;return i&&(n=i.width,r=i.height,Math.abs(t.innerWidth/i.scale-i.width)<.01&&(o=i.offsetLeft,s=i.offsetTop)),{width:n,height:r,x:o,y:s}}function V2(e){var t;const a=ii(e),i=Do(e),n=(t=e.ownerDocument)==null?void 0:t.body,r=Ln(a.scrollWidth,a.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),o=Ln(a.scrollHeight,a.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0);let s=-i.scrollLeft+Gh(e);const l=-i.scrollTop;return po(n||a).direction==="rtl"&&(s+=Ln(a.clientWidth,n?n.clientWidth:0)-r),{width:r,height:o,x:s,y:l}}function Uh(e){return["html","body","#document"].includes(Da(e))?e.ownerDocument.body:Ea(e)&&To(e)?e:Uh(Eo(e))}function Rr(e,t){var a;t===void 0&&(t=[]);const i=Uh(e),n=i===((a=e.ownerDocument)==null?void 0:a.body),r=ai(i),o=n?[r].concat(r.visualViewport||[],To(i)?i:[]):i,s=t.concat(o);return n?s:s.concat(Rr(Eo(o)))}function $2(e,t){const a=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(a&&jh(a)){let i=t;do{if(i&&e===i)return!0;i=i.parentNode||i.host}while(i)}return!1}function W2(e){const t=sn(e),a=t.top+e.clientTop,i=t.left+e.clientLeft;return{top:a,left:i,x:i,y:a,right:i+e.clientWidth,bottom:a+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function bd(e,t){return t==="viewport"?Vs(z2(e)):kr(t)?W2(t):Vs(V2(ii(e)))}function Q2(e){const t=Rr(Eo(e)),a=["absolute","fixed"].includes(po(e).position)&&Ea(e)?Qs(e):e;return kr(a)?t.filter(i=>kr(i)&&$2(i,a)&&Da(i)!=="body"):[]}function J2(e){let{element:t,boundary:a,rootBoundary:i}=e;const n=[...a==="clippingParents"?Q2(t):[].concat(a),i],r=n[0],o=n.reduce((s,l)=>{const d=bd(t,l);return s.top=Ln(d.top,s.top),s.right=Td(d.right,s.right),s.bottom=Td(d.bottom,s.bottom),s.left=Ln(d.left,s.left),s},bd(t,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}const K2={getElementRects:e=>{let{reference:t,floating:a,strategy:i}=e;return{reference:U2(t,Qs(a),i),floating:{...Ed(a),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>H2(e),getOffsetParent:e=>{let{element:t}=e;return Qs(t)},isElement:e=>kr(e),getDocumentElement:e=>{let{element:t}=e;return ii(t)},getClippingClientRect:e=>J2(e),getDimensions:e=>{let{element:t}=e;return Ed(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},X2=(e,t,a)=>y2(e,t,{platform:K2,...a});var e3=Object.defineProperty,t3=Object.defineProperties,a3=Object.getOwnPropertyDescriptors,Nr=Object.getOwnPropertySymbols,qh=Object.prototype.hasOwnProperty,Hh=Object.prototype.propertyIsEnumerable,yd=(e,t,a)=>t in e?e3(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,ja=(e,t)=>{for(var a in t||(t={}))qh.call(t,a)&&yd(e,a,t[a]);if(Nr)for(var a of Nr(t))Hh.call(t,a)&&yd(e,a,t[a]);return e},bo=(e,t)=>t3(e,a3(t)),i3=(e,t)=>{var a={};for(var i in e)qh.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&Nr)for(var i of Nr(e))t.indexOf(i)<0&&Hh.call(e,i)&&(a[i]=e[i]);return a};function zh(e,t){for(const a in t)Object.prototype.hasOwnProperty.call(t,a)&&(typeof t[a]=="object"&&e[a]?zh(e[a],t[a]):e[a]=t[a])}const ia={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function ln(e,t){let a=ia.themes[e]||{},i;do i=a[t],typeof i>"u"?a.$extend?a=ia.themes[a.$extend]||{}:(a=null,i=ia[t]):a=null;while(a);return i}function n3(e){const t=[e];let a=ia.themes[e]||{};do a.$extend&&!a.$resetCss?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t.map(i=>`v-popper--theme-${i}`)}function Ad(e){const t=[e];let a=ia.themes[e]||{};do a.$extend?(t.push(a.$extend),a=ia.themes[a.$extend]||{}):a=null;while(a);return t}let Ai=!1;if(typeof window<"u"){Ai=!1;try{const e=Object.defineProperty({},"passive",{get(){Ai=!0}});window.addEventListener("test",null,e)}catch{}}let Vh=!1;typeof window<"u"&&typeof navigator<"u"&&(Vh=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const $h=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Sd={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},kd={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function vd(e,t){const a=e.indexOf(t);a!==-1&&e.splice(a,1)}function ts(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Pt=[];let si=null;const Rd={};function Nd(e){let t=Rd[e];return t||(t=Rd[e]=[]),t}let Js=function(){};typeof window<"u"&&(Js=window.Element);function we(e){return function(){const t=this.$props;return ln(t.theme,e)}}const as="__floating-vue__popper";var Wh=()=>({name:"VPopper",props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,required:!0},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:we("disabled")},positioningDisabled:{type:Boolean,default:we("positioningDisabled")},placement:{type:String,default:we("placement"),validator:e=>$h.includes(e)},delay:{type:[String,Number,Object],default:we("delay")},distance:{type:[Number,String],default:we("distance")},skidding:{type:[Number,String],default:we("skidding")},triggers:{type:Array,default:we("triggers")},showTriggers:{type:[Array,Function],default:we("showTriggers")},hideTriggers:{type:[Array,Function],default:we("hideTriggers")},popperTriggers:{type:Array,default:we("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:we("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:we("popperHideTriggers")},container:{type:[String,Object,Js,Boolean],default:we("container")},boundary:{type:[String,Js],default:we("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:we("strategy")},autoHide:{type:[Boolean,Function],default:we("autoHide")},handleResize:{type:Boolean,default:we("handleResize")},instantMove:{type:Boolean,default:we("instantMove")},eagerMount:{type:Boolean,default:we("eagerMount")},popperClass:{type:[String,Array,Object],default:we("popperClass")},computeTransformOrigin:{type:Boolean,default:we("computeTransformOrigin")},autoMinSize:{type:Boolean,default:we("autoMinSize")},autoSize:{type:[Boolean,String],default:we("autoSize")},autoMaxSize:{type:Boolean,default:we("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:we("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:we("preventOverflow")},overflowPadding:{type:[Number,String],default:we("overflowPadding")},arrowPadding:{type:[Number,String],default:we("arrowPadding")},arrowOverflow:{type:Boolean,default:we("arrowOverflow")},flip:{type:Boolean,default:we("flip")},shift:{type:Boolean,default:we("shift")},shiftCrossAxis:{type:Boolean,default:we("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:we("noAutoFocus")}},provide(){return{[as]:{parentPopper:this}}},inject:{[as]:{default:null}},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:bo(ja({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result}},parentPopper(){var e;return(e=this[as])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:ja(ja({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeDestroy(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:a=!1}={}){var i,n;(i=this.parentPopper)!=null&&i.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(a||!this.disabled)&&(((n=this.parentPopper)==null?void 0:n.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1,skipAiming:a=!1}={}){var i;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(!a&&this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=this.referenceNode(),this.$_targetNodes=this.targetNodes().filter(e=>e.nodeType===e.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(Y2({mainAxis:this.distance,crossAxis:this.skidding}));const a=this.placement.startsWith("auto");if(a?t.middleware.push(x2({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(Z2({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!a&&this.flip&&t.middleware.push(C2({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(k2({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:n,rects:r,middlewareData:o})=>{let s;const{centerOffset:l}=o.arrow;return n.startsWith("top")||n.startsWith("bottom")?s=Math.abs(l)>r.reference.width/2:s=Math.abs(l)>r.reference.height/2,{data:{overflow:s}}}}),this.autoMinSize||this.autoSize){const n=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:r,placement:o,middlewareData:s})=>{var l;if((l=s.autoSize)!=null&&l.skip)return{};let d,u;return o.startsWith("top")||o.startsWith("bottom")?d=r.reference.width:u=r.reference.height,this.$_innerNode.style[n==="min"?"minWidth":n==="max"?"maxWidth":"width"]=d!=null?`${d}px`:null,this.$_innerNode.style[n==="min"?"minHeight":n==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(I2({boundary:this.boundary,padding:this.overflowPadding,apply:({width:n,height:r})=>{this.$_innerNode.style.maxWidth=n!=null?`${n}px`:null,this.$_innerNode.style.maxHeight=r!=null?`${r}px`:null}})));const i=await X2(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:i.x,y:i.y,placement:i.placement,strategy:i.strategy,arrow:ja(ja({},i.middlewareData.arrow),i.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),si&&this.instantMove&&si.instantMove&&si!==this.parentPopper){si.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(si=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await ts(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Rr(this.$_referenceNode),...Rr(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),a=this.$_popperNode.querySelector(".v-popper__wrapper"),i=a.parentNode.getBoundingClientRect(),n=t.x+t.width/2-(i.left+a.offsetLeft),r=t.y+t.height/2-(i.top+a.offsetTop);this.result.transformOrigin=`${n}px ${r}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let a=0;a0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,vd(Pt,this),Pt.length===0&&document.body.classList.remove("v-popper--some-open");for(const a of Ad(this.theme)){const i=Nd(a);vd(i,this),i.length===0&&document.body.classList.remove(`v-popper--some-open--${a}`)}si===this&&(si=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=ln(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await ts(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=a=>{this.isShown&&!this.$_hideInProgress||(a.usedByTooltip=!0,!this.$_preventShow&&this.show({event:a}))};this.$_registerTriggerListeners(this.$_targetNodes,Sd,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Sd,this.popperTriggers,this.popperShowTriggers,e);const t=a=>i=>{i.usedByTooltip||this.hide({event:i,skipAiming:a})};this.$_registerTriggerListeners(this.$_targetNodes,kd,this.triggers,this.hideTriggers,t(!1)),this.$_registerTriggerListeners([this.$_popperNode],kd,this.popperTriggers,this.popperHideTriggers,t(!0))},$_registerEventListeners(e,t,a){this.$_events.push({targetNodes:e,eventType:t,handler:a}),e.forEach(i=>i.addEventListener(t,a,Ai?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,a,i,n){let r=a;i!=null&&(r=typeof i=="function"?i(r):i),r.forEach(o=>{const s=t[o];s&&this.$_registerEventListeners(e,s,n)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(a=>{const{targetNodes:i,eventType:n,handler:r}=a;!e||e===n?i.forEach(o=>o.removeEventListener(n,r)):t.push(a)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const a of this.$_targetNodes){const i=a.getAttribute(e);i&&(a.removeAttribute(e),a.setAttribute(t,i))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const a in e){const i=e[a];i==null?t.removeAttribute(a):t.setAttribute(a,i)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$el.getBoundingClientRect();if(Zn>=e.left&&Zn<=e.right&&In>=e.top&&In<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),a=Zn-Ca,i=In-Ma,n=t.left+t.width/2-Ca+(t.top+t.height/2)-Ma+t.width+t.height,r=Ca+a*n,o=Ma+i*n;return O0(Ca,Ma,r,o,t.left,t.top,t.left,t.bottom)||O0(Ca,Ma,r,o,t.left,t.top,t.right,t.top)||O0(Ca,Ma,r,o,t.right,t.top,t.right,t.bottom)||O0(Ca,Ma,r,o,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$scopedSlots.default(this.slotData)[0]}});typeof document<"u"&&typeof window<"u"&&(Vh?(document.addEventListener("touchstart",wd,Ai?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",o3,Ai?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",wd,!0),window.addEventListener("click",r3,!0)),window.addEventListener("resize",u3));function wd(e){for(let t=0;t=0;i--){const n=Pt[i];try{const r=n.$_containsGlobalTarget=s3(n,e);n.$_pendingHide=!1,requestAnimationFrame(()=>{if(n.$_pendingHide=!1,!a[n.randomId]&&Od(n,r,e)){if(n.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&r){let s=n.parentPopper;for(;s;)a[s.randomId]=!0,s=s.parentPopper;return}let o=n.parentPopper;for(;o&&Od(o,o.$_containsGlobalTarget,e);)o.$_handleGlobalClose(e,t),o=o.parentPopper}})}catch{}}}function s3(e,t){const a=e.popperNode();return e.$_mouseDownContains||a.contains(t.target)}function Od(e,t,a){return a.closeAllPopover||a.closePopover&&t||l3(e,a)&&!t}function l3(e,t){if(typeof e.autoHide=="function"){const a=e.autoHide(t);return e.lastAutoHide=a,a}return e.autoHide}function u3(e){for(let t=0;t{Ca=Zn,Ma=In,Zn=e.clientX,In=e.clientY},Ai?{passive:!0}:void 0);function O0(e,t,a,i,n,r,o,s){const l=((o-n)*(t-r)-(s-r)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t)),d=((a-e)*(t-r)-(i-t)*(e-n))/((s-r)*(a-e)-(o-n)*(i-t));return l>=0&&l<=1&&d>=0&&d<=1}function d3(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var a=e.indexOf("Trident/");if(a>0){var i=e.indexOf("rv:");return parseInt(e.substring(i+3,e.indexOf(".",i)),10)}var n=e.indexOf("Edge/");return n>0?parseInt(e.substring(n+5,e.indexOf(".",n)),10):-1}var er;function Ks(){Ks.init||(Ks.init=!0,er=d3()!==-1)}var c3={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},mounted:function(){var e=this;Ks(),this.$nextTick(function(){e._w=e.$el.offsetWidth,e._h=e.$el.offsetHeight,e.emitOnMount&&e.emitSize()});var t=document.createElement("object");this._resizeObject=t,t.setAttribute("aria-hidden","true"),t.setAttribute("tabindex",-1),t.onload=this.addResizeHandlers,t.type="text/html",er&&this.$el.appendChild(t),t.data="about:blank",er||this.$el.appendChild(t)},beforeDestroy:function(){this.removeResizeHandlers()},methods:{compareAndNotify:function(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize:function(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers:function(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers:function(){this._resizeObject&&this._resizeObject.onload&&(!er&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};function h3(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var f3=c3,Jh=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"resize-observer",attrs:{tabindex:"-1"}})},g3=[];Jh._withStripped=!0;var _3=void 0,F3="data-v-8859cc6c",m3=void 0,p3=!1,Xs=h3({render:Jh,staticRenderFns:g3},_3,f3,F3,p3,m3,!1,void 0,void 0,void 0);function T3(e){e.component("resize-observer",Xs),e.component("ResizeObserver",Xs)}var D3={version:"1.0.1",install:T3},x0=null;typeof window<"u"?x0=window.Vue:typeof fr.global<"u"&&(x0=fr.global.Vue),x0&&x0.use(D3);var Kh={computed:{themeClass(){return n3(this.theme)}}},E3={name:"VPopperContent",components:{ResizeObserver:Xs},mixins:[Kh],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}},b3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"popover",staticClass:"v-popper__popper",class:[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}],style:e.result?{position:e.result.strategy,transform:"translate3d("+Math.round(e.result.x)+"px,"+Math.round(e.result.y)+"px,0)"}:void 0,attrs:{id:e.popperId,"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0},on:{keyup:function(i){if(!i.type.indexOf("key")&&e._k(i.keyCode,"esc",27,i.key,["Esc","Escape"]))return null;e.autoHide&&e.$emit("hide")}}},[a("div",{staticClass:"v-popper__backdrop",on:{click:function(i){e.autoHide&&e.$emit("hide")}}}),a("div",{staticClass:"v-popper__wrapper",style:e.result?{transformOrigin:e.result.transformOrigin}:void 0},[a("div",{ref:"inner",staticClass:"v-popper__inner"},[e.mounted?[a("div",[e._t("default")],2),e.handleResize?a("ResizeObserver",{on:{notify:function(i){return e.$emit("resize",i)}}}):e._e()]:e._e()],2),a("div",{ref:"arrow",staticClass:"v-popper__arrow-container",style:e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0},[a("div",{staticClass:"v-popper__arrow-outer"}),a("div",{staticClass:"v-popper__arrow-inner"})])])])},y3=[];function En(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const xd={};var A3=En(E3,b3,y3,!1,S3,null,null,null);function S3(e){for(let t in xd)this[t]=xd[t]}var Xh=function(){return A3.exports}(),su={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}},k3={name:"VPopperWrapper",components:{Popper:Wh(),PopperContent:Xh},mixins:[su,Kh],inheritAttrs:!1,props:{theme:{type:String,default(){return this.$options.vPopperTheme}}},methods:{getTargetNodes(){return Array.from(this.$refs.reference.children).filter(e=>e!==this.$refs.popperContent.$el)}}},v3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"target-nodes":e.getTargetNodes,"reference-node":function(){return e.$refs.reference},"popper-node":function(){return e.$refs.popperContent.$el}},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.show,u=i.hide,c=i.handleResize,f=i.onResize,h=i.classes,_=i.result;return[a("div",{ref:"reference",staticClass:"v-popper",class:[e.themeClass,{"v-popper--shown":r}]},[e._t("default",null,{shown:r,show:d,hide:u}),a("PopperContent",{ref:"popperContent",attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":c,classes:h,result:_},on:{hide:u,resize:f}},[e._t("popper",null,{shown:r,hide:u})],2)],2)]}}],null,!0)},"Popper",e.$attrs,!1),e.$listeners))},R3=[];const Bd={};var N3=En(k3,v3,R3,!1,w3,null,null,null);function w3(e){for(let t in Bd)this[t]=Bd[t]}var lu=function(){return N3.exports}(),O3=bo(ja({},lu),{name:"VDropdown",vPopperTheme:"dropdown"});let x3,B3;const Cd={};var C3=En(O3,x3,B3,!1,M3,null,null,null);function M3(e){for(let t in Cd)this[t]=Cd[t]}var el=function(){return C3.exports}(),Y3=bo(ja({},lu),{name:"VMenu",vPopperTheme:"menu"});let L3,Z3;const Md={};var I3=En(Y3,L3,Z3,!1,j3,null,null,null);function j3(e){for(let t in Md)this[t]=Md[t]}var Yd=function(){return I3.exports}(),P3=bo(ja({},lu),{name:"VTooltip",vPopperTheme:"tooltip"});let G3,U3;const Ld={};var q3=En(P3,G3,U3,!1,H3,null,null,null);function H3(e){for(let t in Ld)this[t]=Ld[t]}var Zd=function(){return q3.exports}(),z3={name:"VTooltipDirective",components:{Popper:Wh(),PopperContent:Xh},mixins:[su],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default(){return ln(this.theme,"html")}},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default(){return ln(this.theme,"loadingContent")}}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(e){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,a=this.content(this);a.then?a.then(i=>this.onResult(t,i)):this.onResult(t,a)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}},V3=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("Popper",e._g(e._b({ref:"popper",attrs:{theme:e.theme,"popper-node":function(){return e.$refs.popperContent.$el}},on:{"apply-show":e.onShow,"apply-hide":e.onHide},scopedSlots:e._u([{key:"default",fn:function(i){var n=i.popperId,r=i.isShown,o=i.shouldMountContent,s=i.skipTransition,l=i.autoHide,d=i.hide,u=i.handleResize,c=i.onResize,f=i.classes,h=i.result;return[a("PopperContent",{ref:"popperContent",class:{"v-popper--tooltip-loading":e.loading},attrs:{"popper-id":n,theme:e.theme,shown:r,mounted:o,"skip-transition":s,"auto-hide":l,"handle-resize":u,classes:f,result:h},on:{hide:d,resize:c}},[e.html?a("div",{domProps:{innerHTML:e._s(e.finalContent)}}):a("div",{domProps:{textContent:e._s(e.finalContent)}})])]}}])},"Popper",e.$attrs,!1),e.$listeners))},$3=[];const Id={};var W3=En(z3,V3,$3,!1,Q3,null,null,null);function Q3(e){for(let t in Id)this[t]=Id[t]}var J3=function(){return W3.exports}();const ef="v-popper--has-tooltip";function K3(e,t){let a=e.placement;if(!a&&t)for(const i of $h)t[i]&&(a=i);return a||(a=ln(e.theme||"tooltip","placement")),a}function tf(e,t,a){let i;const n=typeof t;return n==="string"?i={content:t}:t&&n==="object"?i=t:i={content:!1},i.placement=K3(i,a),i.targetNodes=()=>[e],i.referenceNode=()=>e,i}function X3(e,t,a){const i=tf(e,t,a),n=e.$_popper=new Aa({mixins:[su],data(){return{options:i}},render(o){const s=this.options,{theme:l,html:d,content:u,loadingContent:c}=s,f=i3(s,["theme","html","content","loadingContent"]);return o(J3,{props:{theme:l,html:d,content:u,loadingContent:c},attrs:f,ref:"popper"})},devtools:{hide:!0}}),r=document.createElement("div");return document.body.appendChild(r),n.$mount(r),e.classList&&e.classList.add(ef),n}function af(e){e.$_popper&&(e.$_popper.$destroy(),delete e.$_popper,delete e.$_popperOldShown),e.classList&&e.classList.remove(ef)}function jd(e,{value:t,oldValue:a,modifiers:i}){const n=tf(e,t,i);if(!n.content||ln(n.theme||"tooltip","disabled"))af(e);else{let r;e.$_popper?(r=e.$_popper,r.options=n):r=X3(e,t,i),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?r.show():r.hide())}}var nf={bind:jd,update:jd,unbind(e){af(e)}};function Pd(e){e.addEventListener("click",rf),e.addEventListener("touchstart",of,Ai?{passive:!0}:!1)}function Gd(e){e.removeEventListener("click",rf),e.removeEventListener("touchstart",of),e.removeEventListener("touchend",sf),e.removeEventListener("touchcancel",lf)}function rf(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function of(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const a=e.changedTouches[0];t.$_vclosepopover_touchPoint=a,t.addEventListener("touchend",sf),t.addEventListener("touchcancel",lf)}}function sf(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const a=e.changedTouches[0],i=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(a.screenY-i.screenY)<20&&Math.abs(a.screenX-i.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function lf(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var eD={bind(e,{value:t,modifiers:a}){e.$_closePopoverModifiers=a,(typeof t>"u"||t)&&Pd(e)},update(e,{value:t,oldValue:a,modifiers:i}){e.$_closePopoverModifiers=i,t!==a&&(typeof t>"u"||t?Pd(e):Gd(e))},unbind(e){Gd(e)}};const B0=ia,uf=nf,tD=el;function aD(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,zh(ia,t),e.directive("tooltip",nf),e.directive("close-popper",eD),e.component("v-tooltip",Zd),e.component("VTooltip",Zd),e.component("v-dropdown",el),e.component("VDropdown",el),e.component("v-menu",Yd),e.component("VMenu",Yd))}const iD={version:"1.0.0-beta.19",install:aD,options:ia};let C0=null;typeof window<"u"?C0=window.Vue:typeof fr.global<"u"&&(C0=fr.global.Vue),C0&&C0.use(iD);B0.themes.tooltip.html=!1,B0.themes.tooltip.delay={show:500,hide:200},B0.themes.tooltip.distance=10,B0.themes.tooltip["arrow-padding"]=3;const nD={name:"ArrowRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rD=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},oD=[],sD=ce(nD,rD,oD,!1,null,null,null,null);const df=sD.exports,is=new Aa({data(){return{isMobile:!1}},watch:{isMobile(e){this.$emit("changed",e)}},created(){window.addEventListener("resize",this.handleWindowResize),this.handleWindowResize()},beforeDestroy(){window.removeEventListener("resize",this.handleWindowResize)},methods:{handleWindowResize(){this.isMobile=document.documentElement.clientWidth<1024}}}),lD={data(){return{isMobile:!1}},mounted(){is.$on("changed",this.onIsMobileChanged),this.isMobile=is.isMobile},beforeDestroy(){is.$off("changed",this.onIsMobileChanged)},methods:{onIsMobileChanged(e){this.isMobile=e}}};var tr={},wr={},l0={};Object.defineProperty(l0,"__esModule",{value:!0}),l0.default=void 0;function Or(e,t,a){return t=uD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function uD(e){var t=dD(e,"string");return typeof t=="symbol"?t:String(t)}function dD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class tn{constructor(t,a,i){Or(this,"scope",void 0),Or(this,"wrapped",void 0),this.scope=`${i?tn.GLOBAL_SCOPE_PERSISTENT:tn.GLOBAL_SCOPE_VOLATILE}_${btoa(t)}_`,this.wrapped=a}scopeKey(t){return`${this.scope}${t}`}setItem(t,a){this.wrapped.setItem(this.scopeKey(t),a)}getItem(t){return this.wrapped.getItem(this.scopeKey(t))}removeItem(t){this.wrapped.removeItem(this.scopeKey(t))}clear(){Object.keys(this.wrapped).filter(t=>t.startsWith(this.scope)).map(this.wrapped.removeItem.bind(this.wrapped))}}l0.default=tn,Or(tn,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),Or(tn,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per"),Object.defineProperty(wr,"__esModule",{value:!0}),wr.default=void 0;var cD=hD(l0);function hD(e){return e&&e.__esModule?e:{default:e}}function ns(e,t,a){return t=fD(t),t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function fD(e){var t=gD(e,"string");return typeof t=="symbol"?t:String(t)}function gD(e,t){if(typeof e!="object"||e===null)return e;var a=e[Symbol.toPrimitive];if(a!==void 0){var i=a.call(e,t||"default");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class _D{constructor(t){ns(this,"appId",void 0),ns(this,"persisted",!1),ns(this,"clearedOnLogout",!1),this.appId=t}persist(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.persisted=t,this}clearOnLogout(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return this.clearedOnLogout=t,this}build(){return new cD.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}wr.default=_D,Object.defineProperty(tr,"__esModule",{value:!0}),tr.clearAll=TD,tr.clearNonPersistent=DD;var cf=tr.getBuilder=pD,FD=hf(wr),mD=hf(l0);function hf(e){return e&&e.__esModule?e:{default:e}}function pD(e){return new FD.default(e)}function ff(e,t){Object.keys(e).filter(a=>t?t(a):!0).map(e.removeItem.bind(e))}function TD(){[window.sessionStorage,window.localStorage].map(e=>ff(e))}function DD(){[window.sessionStorage,window.localStorage].map(e=>ff(e,t=>!t.startsWith(mD.default.GLOBAL_SCOPE_PERSISTENT)))}Aa.util.warn;function E0(e){return Y_()?(L_(e),!0):!1}function nt(e){return typeof e=="function"?e():Z_(e)}const uu=typeof window<"u"&&typeof document<"u",ED=e=>e!=null,bD=Object.prototype.toString,gf=e=>bD.call(e)==="[object Object]",ct=()=>{},tl=yD();function yD(){var e;return uu&&((e=window?.navigator)==null?void 0:e.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent)}function _f(e,t){function a(...i){return new Promise((n,r)=>{Promise.resolve(e(()=>t.apply(this,i),{fn:t,thisArg:this,args:i})).then(n).catch(r)})}return a}function AD(e,t={}){let a,i,n=ct;const r=o=>{clearTimeout(o),n(),n=ct};return o=>{const s=nt(e),l=nt(t.maxWait);return a&&r(a),s<=0||l!==void 0&&l<=0?(i&&(r(i),i=null),Promise.resolve(o())):new Promise((d,u)=>{n=t.rejectOnCancel?u:d,l&&!i&&(i=setTimeout(()=>{a&&r(a),i=null,d(o())},l)),a=setTimeout(()=>{i&&r(i),i=null,d(o())},s)})}}function SD(e,t=!0,a=!0,i=!1){let n=0,r,o=!0,s=ct,l;const d=()=>{r&&(clearTimeout(r),r=void 0,s(),s=ct)};return u=>{const c=nt(e),f=Date.now()-n,h=()=>l=u();return d(),c<=0?(n=Date.now(),h()):(f>c&&(a||!o)?(n=Date.now(),h()):t&&(l=new Promise((_,m)=>{s=i?m:_,r=setTimeout(()=>{n=Date.now(),o=!0,_(h()),d()},Math.max(0,c-f))})),!a&&!r&&(r=setTimeout(()=>o=!0,c)),o=!1,l)}}const Ud={mounted:"inserted",updated:"componentUpdated",unmounted:"unbind"};function kD(...e){if(e.length!==1)return B_(...e);const t=e[0];return typeof t=="function"?C_(M_(()=>({get:t,set:ct}))):gt(t)}function vD(e,t=200,a={}){return _f(AD(t,a),e)}function RD(e,t=200,a=!1,i=!0,n=!1){return _f(SD(t,a,i,n),e)}Aa.util.warn;function pa(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const Ni=uu?window:void 0;function jn(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=Ni):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[pa(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=gf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}function ND(){const e=gt(!1);return j_()&&P_(()=>{e.value=!0}),e}function Ff(e){const t=ND();return st(()=>(t.value,!!e()))}function wD(e,t,a={}){const{window:i=Ni,...n}=a;let r;const o=Ff(()=>i&&"ResizeObserver"in i),s=()=>{r&&(r.disconnect(),r=void 0)},l=st(()=>Array.isArray(e)?e.map(c=>pa(c)):[pa(e)]),d=ei(l,c=>{if(s(),o.value&&i){r=new ResizeObserver(t);for(const f of c)f&&r.observe(f,n)}},{immediate:!0,flush:"post",deep:!0}),u=()=>{s(),d()};return E0(u),{isSupported:o,stop:u}}function OD(e,t={width:0,height:0},a={}){const{window:i=Ni,box:n="content-box"}=a,r=st(()=>{var l,d;return(d=(l=pa(e))==null?void 0:l.namespaceURI)==null?void 0:d.includes("svg")}),o=gt(t.width),s=gt(t.height);return wD(e,([l])=>{const d=n==="border-box"?l.borderBoxSize:n==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(i&&r.value){const u=pa(e);if(u){const c=i.getComputedStyle(u);o.value=Number.parseFloat(c.width),s.value=Number.parseFloat(c.height)}}else if(d){const u=Array.isArray(d)?d:[d];o.value=u.reduce((c,{inlineSize:f})=>c+f,0),s.value=u.reduce((c,{blockSize:f})=>c+f,0)}else o.value=l.contentRect.width,s.value=l.contentRect.height},a),ei(()=>pa(e),l=>{o.value=l?t.width:0,s.value=l?t.height:0}),{width:o,height:s}}function xD(e,t,a={}){const{root:i,rootMargin:n="0px",threshold:r=.1,window:o=Ni,immediate:s=!0}=a,l=Ff(()=>o&&"IntersectionObserver"in o),d=st(()=>{const _=nt(e);return(Array.isArray(_)?_:[_]).map(pa).filter(ED)});let u=ct;const c=gt(s),f=l.value?ei(()=>[d.value,pa(i),c.value],([_,m])=>{if(u(),!c.value||!_.length)return;const p=new IntersectionObserver(t,{root:pa(m),rootMargin:n,threshold:r});_.forEach(T=>T&&p.observe(T)),u=()=>{p.disconnect(),u=ct}},{immediate:s,flush:"post"}):ct,h=()=>{u(),f(),c.value=!1};return E0(h),{isSupported:l,isActive:c,pause(){u(),c.value=!1},resume(){c.value=!0},stop:h}}function BD(e,t={}){const{window:a=Ni,scrollTarget:i}=t,n=gt(!1);return xD(e,([{isIntersecting:r}])=>{n.value=r},{root:i,window:a,threshold:0}),n}const qd=1;function CD(e,t={}){const{throttle:a=0,idle:i=200,onStop:n=ct,onScroll:r=ct,offset:o={left:0,right:0,top:0,bottom:0},eventListenerOptions:s={capture:!1,passive:!0},behavior:l="auto",window:d=Ni}=t,u=gt(0),c=gt(0),f=st({get(){return u.value},set(E){_(E,void 0)}}),h=st({get(){return c.value},set(E){_(void 0,E)}});function _(E,I){var M,P,g;if(!d)return;const D=nt(e);D&&((g=D instanceof Document?d.document.body:D)==null||g.scrollTo({top:(M=nt(I))!=null?M:h.value,left:(P=nt(E))!=null?P:f.value,behavior:nt(l)}))}const m=gt(!1),p=i0({left:!0,right:!1,top:!0,bottom:!1}),T=i0({left:!1,right:!1,top:!1,bottom:!1}),R=E=>{m.value&&(m.value=!1,T.left=!1,T.right=!1,T.top=!1,T.bottom=!1,n(E))},S=vD(R,a+i),C=E=>{var I;if(!d)return;const M=E.document?E.document.documentElement:(I=E.documentElement)!=null?I:E,{display:P,flexDirection:g}=getComputedStyle(M),D=M.scrollLeft;T.left=Du.value;const k=Math.abs(D)<=0+(o.left||0),x=Math.abs(D)+M.clientWidth>=M.scrollWidth-(o.right||0)-qd;P==="flex"&&g==="row-reverse"?(p.left=x,p.right=k):(p.left=k,p.right=x),u.value=D;let L=M.scrollTop;E===d.document&&!L&&(L=d.document.body.scrollTop),T.top=Lc.value;const Z=Math.abs(L)<=0+(o.top||0),$=Math.abs(L)+M.clientHeight>=M.scrollHeight-(o.bottom||0)-qd;P==="flex"&&g==="column-reverse"?(p.top=$,p.bottom=Z):(p.top=Z,p.bottom=$),c.value=L},j=E=>{var I;if(!d)return;const M=(I=E.target.documentElement)!=null?I:E.target;C(M),m.value=!0,S(E),r(E)};return jn(e,"scroll",a?RD(j,a,!0,!1):j,s),jn(e,"scrollend",R,s),{x:f,y:h,isScrolling:m,arrivedState:p,directions:T,measure(){const E=nt(e);d&&E&&C(E)}}}function MD(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function vM(e,t,a={}){var i;const{direction:n="bottom",interval:r=100}=a,o=i0(CD(e,{...a,offset:{[n]:(i=a.distance)!=null?i:0,...a.offset}})),s=gt(),l=st(()=>!!s.value),d=st(()=>MD(nt(e))),u=BD(d);function c(){if(o.measure(),!d.value||!u.value)return;const{scrollHeight:f,clientHeight:h,scrollWidth:_,clientWidth:m}=d.value,p=n==="bottom"||n==="top"?f<=h:_<=m;(o.arrivedState[n]||p)&&(s.value||(s.value=Promise.all([t(o),new Promise(T=>setTimeout(T,r))]).finally(()=>{s.value=null,I_(()=>c())})))}return ei(()=>[o.arrivedState[n],u.value],c,{immediate:!0}),{isLoading:l}}function mf(e,t={}){const{threshold:a=50,onSwipe:i,onSwipeEnd:n,onSwipeStart:r,passive:o=!0,window:s=Ni}=t,l=i0({x:0,y:0}),d=i0({x:0,y:0}),u=st(()=>l.x-d.x),c=st(()=>l.y-d.y),{max:f,abs:h}=Math,_=st(()=>f(h(u.value),h(c.value))>=a),m=gt(!1),p=st(()=>_.value?h(u.value)>h(c.value)?u.value>0?"left":"right":c.value>0?"up":"down":"none"),T=M=>[M.touches[0].clientX,M.touches[0].clientY],R=(M,P)=>{l.x=M,l.y=P},S=(M,P)=>{d.x=M,d.y=P};let C;const j=YD(s?.document);o?C=j?{passive:!0}:{capture:!1}:C=j?{passive:!1,capture:!0}:{capture:!0};const E=M=>{m.value&&n?.(M,p.value),m.value=!1},I=[jn(e,"touchstart",M=>{if(M.touches.length!==1)return;C.capture&&!C.passive&&M.preventDefault();const[P,g]=T(M);R(P,g),S(P,g),r?.(M)},C),jn(e,"touchmove",M=>{if(M.touches.length!==1)return;const[P,g]=T(M);S(P,g),!m.value&&_.value&&(m.value=!0),m.value&&i?.(M)},C),jn(e,["touchend","touchcancel"],E,C)];return{isPassiveEventSupported:j,isSwiping:m,direction:p,coordsStart:l,coordsEnd:d,lengthX:u,lengthY:c,stop:()=>I.forEach(M=>M())}}function YD(e){if(!e)return!1;let t=!1;const a={get passive(){return t=!0,!1}};return e.addEventListener("x",ct,a),e.removeEventListener("x",ct),t}var LD=Object.defineProperty,ZD=Object.defineProperties,ID=Object.getOwnPropertyDescriptors,xr=Object.getOwnPropertySymbols,pf=Object.prototype.hasOwnProperty,Tf=Object.prototype.propertyIsEnumerable,Hd=(e,t,a)=>t in e?LD(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a,jD=(e,t)=>{for(var a in t||(t={}))pf.call(t,a)&&Hd(e,a,t[a]);if(xr)for(var a of xr(t))Tf.call(t,a)&&Hd(e,a,t[a]);return e},PD=(e,t)=>ZD(e,ID(t)),GD=(e,t)=>{var a={};for(var i in e)pf.call(e,i)&&t.indexOf(i)<0&&(a[i]=e[i]);if(e!=null&&xr)for(var i of xr(e))t.indexOf(i)<0&&Tf.call(e,i)&&(a[i]=e[i]);return a};function Df(e,t,a,i,n,r,o,s){var l=typeof e=="function"?e.options:e;t&&(l.render=t,l.staticRenderFns=a,l._compiled=!0),i&&(l.functional=!0),r&&(l._scopeId="data-v-"+r);var d;if(o?(d=function(f){f=f||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!f&&typeof __VUE_SSR_CONTEXT__<"u"&&(f=__VUE_SSR_CONTEXT__),n&&n.call(this,f),f&&f._registeredComponents&&f._registeredComponents.add(o)},l._ssrRegister=d):n&&(d=s?function(){n.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:n),d)if(l.functional){l._injectStyles=d;var u=l.render;l.render=function(f,h){return d.call(h),u(f,h)}}else{var c=l.beforeCreate;l.beforeCreate=c?[].concat(c,d):[d]}return{exports:e,options:l}}const UD={name:"splitpanes",props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let a=0;this.panes=this.panes.map((i,n)=>(i.size=n===t?i.max:i.min,n!==t&&(a+=i.min),i)),this.panes[t].size-=a,this.$emit("pane-maximize",this.panes[t])},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:a,clientY:i}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:a-t.left,y:i-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let a={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const i=0+(this.pushOtherPanes?0:a.prevPanesSize),n=100-(this.pushOtherPanes?0:a.nextPanesSize),r=Math.max(Math.min(this.getCurrentDragPercentage(e),n),i);let o=[t,t+1],s=this.panes[o[0]]||null,l=this.panes[o[1]]||null;const d=s.max<100&&r>=s.max+a.prevPanesSize,u=l.max<100&&r<=100-(l.max+this.sumNextPanesSize(t+1));if(d||u){d?(s.size=s.max,l.size=Math.max(100-s.max-a.prevPanesSize-a.nextPanesSize,0)):(s.size=Math.max(100-l.max-a.prevPanesSize-this.sumNextPanesSize(t+1),0),l.size=l.max);return}if(this.pushOtherPanes){const c=this.doPushOtherPanes(a,r);if(!c)return;({sums:a,panesToResize:o}=c),s=this.panes[o[0]]||null,l=this.panes[o[1]]||null}s!==null&&(s.size=Math.min(Math.max(r-a.prevPanesSize-a.prevReachedMinPanes,s.min),s.max)),l!==null&&(l.size=Math.min(Math.max(100-r-a.nextPanesSize-a.nextReachedMinPanes,l.min),l.max))},doPushOtherPanes(e,t){const a=this.touch.activeSplitter,i=[a,a+1];return t{r>i[0]&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),e.prevPanesSize=this.sumPrevPanesSize(i[0]),i[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((n,r)=>{r>0&&r<=a&&(n.size=n.min,e.prevReachedMinPanes+=n.min)}),this.panes[i[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[i[1]].min&&(i[1]=this.findNextExpandedPane(a).index,e.nextReachedMinPanes=0,i[1]>a+1&&this.panes.forEach((n,r)=>{r>a&&r{r=a+1&&(n.size=n.min,e.nextReachedMinPanes+=n.min)}),this.panes[i[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:i}},sumPrevPanesSize(e){return this.panes.reduce((t,a,i)=>t+(it+(i>e+1?a.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.indext.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),a=e.classList.contains("splitpanes__splitter");if(!t&&!a){e.parentNode.removeChild(e),console.warn("Splitpanes: Only elements are allowed at the root of . One of your DOM nodes was removed.");return}})},addSplitter(e,t,a=!1){const i=e-1,n=document.createElement("div");n.classList.add("splitpanes__splitter"),a||(n.onmousedown=r=>this.onMouseDown(r,i),typeof window<"u"&&"ontouchstart"in window&&(n.ontouchstart=r=>this.onMouseDown(r,i)),n.onclick=r=>this.onSplitterClick(r,i+1)),this.dblClickSplitter&&(n.ondblclick=r=>this.onSplitterDblClick(r,i+1)),t.parentNode.insertBefore(n,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(a=>{a.className.includes("splitpanes__splitter")&&this.removeSplitter(a)});let t=0;e.forEach(a=>{a.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,a,!0):t&&this.addSplitter(t,a),t++)})},requestUpdate(e){var t=e,{target:a}=t,i=GD(t,["target"]);const n=this.indexedPanes[a._uid];Object.entries(i).forEach(([r,o])=>n[r]=o)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(n=>(n.className.includes("splitpanes__pane")&&t++,n===e.$el));const a=parseFloat(e.minSize),i=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._uid,index:t,min:isNaN(a)?0:a,max:isNaN(i)?100:i,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((n,r)=>n.index=r),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(n=>({min:n.min,max:n.max,size:n.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(i=>i.id===e._uid),a=this.panes.splice(t,1)[0];this.panes.forEach((i,n)=>i.index=n),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:PD(jD({},a),{index:t})}),this.$emit("pane-remove",{removed:a,panes:this.panes.map(i=>({min:i.min,max:i.max,size:i.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0,a=[],i=[];this.panes.forEach(n=>{n.size=Math.max(Math.min(e,n.max),n.min),t-=n.size,n.size>=n.max&&a.push(n.id),n.size<=n.min&&i.push(n.id)}),t>.1&&this.readjustSizes(t,a,i)},initialPanesSizing(){100/this.panesCount;let e=100,t=[],a=[],i=0;this.panes.forEach(r=>{e-=r.size,r.size!==null&&i++,r.size>=r.max&&t.push(r.id),r.size<=r.min&&a.push(r.id)});let n=100;e>.1&&(this.panes.forEach(r=>{r.size===null&&(r.size=Math.max(Math.min(e/(this.panesCount-i),r.max),r.min)),n-=r.size}),n>.1&&this.readjustSizes(e,t,a))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let a=100/this.panesCount,i=0,n=[],r=[];e&&e.givenSize!==null&&(a=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(o=>{i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),!(Math.abs(i)<.1)&&(this.panes.forEach(o=>{e&&e.givenSize!==null&&e.id===o.id||(o.size=Math.max(Math.min(a,o.max),o.min)),i-=o.size,o.size>=o.max&&n.push(o.id),o.size<=o.min&&r.push(o.id)}),i>.1&&this.readjustSizes(i,n,r))},readjustSizes(e,t,a){let i;e>0?i=e/(this.panesCount-t.length):i=e/(this.panesCount-a.length),this.panes.forEach((n,r)=>{if(e>0&&!t.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}else if(!a.includes(n.id)){const o=Math.max(Math.min(n.size+i,n.max),n.min),s=o-n.size;e-=s,n.size=o}n.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[n.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,a)=>{t.ondblclick=e?i=>this.onSplitterDblClick(i,a):void 0})}},beforeDestroy(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(e){return e("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default)}};let qD,HD;const zd={};var zD=Df(UD,qD,HD,!1,VD,null,null,null);function VD(e){for(let t in zd)this[t]=zd[t]}var $D=function(){return zD.exports}(),WD=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"splitpanes__pane",style:e.style,on:{click:function(i){return e.onPaneClick(i,e._uid)}}},[e._t("default")],2)},QD=[];const JD={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeDestroy(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}},Vd={};var KD=Df(JD,WD,QD,!1,XD,null,null,null);function XD(e){for(let t in Vd)this[t]=Vd[t]}var eE=function(){return KD.exports}();const tE={name:"NcAppDetailsToggle",directives:{tooltip:uf},components:{NcButton:ti,ArrowRight:df},computed:{title(){return ie("Go back to the list")}},beforeMount(){this.toggleAppNavigationButton(!0)},beforeDestroy(){this.toggleAppNavigationButton(!1)},methods:{toggleAppNavigationButton(e=!0){const t=document.querySelector(".app-navigation .app-navigation-toggle");t&&(t.style.display=e?"none":null,e===!0&&_r("toggle-navigation",{open:!1}))}}};var aE=function(){var e=this,t=e._self._c;return t("NcButton",{directives:[{name:"tooltip",rawName:"v-tooltip",value:e.title,expression:"title"}],staticClass:"app-details-toggle",attrs:{"aria-label":e.title},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ArrowRight",{attrs:{size:20}})]},proxy:!0}])})},iE=[],nE=ce(tE,aE,iE,!1,null,"5244e83e",null,null);const rE=nE.exports,$d=cf("nextcloud").persist().build(),oE={name:"NcAppContent",components:{NcAppDetailsToggle:rE,Pane:eE,Splitpanes:$D},mixins:[lD],props:{allowSwipeNavigation:{type:Boolean,default:!0},listSize:{type:Number,default:20},listMinWidth:{type:Number,default:15},listMaxWidth:{type:Number,default:40},paneConfigKey:{type:String,default:""},showDetails:{type:Boolean,default:!0},pageHeading:{type:String,default:null}},emits:["update:showDetails","resize:list"],data(){return{contentHeight:0,hasList:!1,swiping:{},listPaneSize:this.restorePaneConfig()}},computed:{paneConfigID(){if(this.paneConfigKey!=="")return`pane-list-size-${this.paneConfigKey}`;try{return`pane-list-size-${O_}`}catch{return console.info("[INFO] AppContent:","falling back to global nextcloud pane config"),"pane-list-size-nextcloud"}},detailsPaneSize(){return this.listPaneSize?100-this.listPaneSize:this.paneDefaults.details.size},paneDefaults(){return{list:{size:this.listSize,min:this.listMinWidth,max:this.listMaxWidth},details:{size:100-this.listSize,min:100-this.listMaxWidth,max:100-this.listMinWidth}}}},updated(){this.checkListSlot()},mounted(){this.allowSwipeNavigation&&(this.swiping=mf(this.$el,{onSwipeEnd:this.handleSwipe})),this.checkListSlot(),this.restorePaneConfig()},methods:{handleSwipe(e,t){Math.abs(this.swiping.lengthX)>70&&(this.swiping.coordsStart.x<300/2&&t==="right"?_r("toggle-navigation",{open:!0}):this.swiping.coordsStart.x<300*1.5&&t==="left"&&_r("toggle-navigation",{open:!1}))},handlePaneResize(e){const t=parseInt(e[0].size,10);$d.setItem(this.paneConfigID,JSON.stringify(t)),this.listPaneSize=t,this.$emit("resize:list",{size:t}),console.debug("AppContent pane config",t)},checkListSlot(){const e=!!this.$slots.list;this.hasList!==e&&(this.hasList=e)},restorePaneConfig(){const e=parseInt($d.getItem(this.paneConfigID),10);if(!isNaN(e)&&e!==this.listPaneSize)return console.debug("AppContent pane config",e),this.listPaneSize=e,e},hideDetails(){this.$emit("update:showDetails",!1)}}};var sE=function(){var e=this,t=e._self._c;return t("main",{staticClass:"app-content no-snapper",class:{"app-content--has-list":e.hasList},attrs:{id:"app-content-vue"}},[e.pageHeading?t("h1",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.pageHeading)+" ")]):e._e(),e.hasList?[e.isMobile?t("div",{staticClass:"app-content-wrapper app-content-wrapper--mobile",class:e.showDetails?"app-content-wrapper--show-details":"app-content-wrapper--show-list"},[e.hasList&&e.showDetails?t("NcAppDetailsToggle",{nativeOn:{click:function(a){return a.stopPropagation(),a.preventDefault(),e.hideDetails.apply(null,arguments)}}}):e._e(),e._t("list"),e._t("default")],2):t("div",{staticClass:"app-content-wrapper"},[t("Splitpanes",{staticClass:"default-theme",on:{resized:e.handlePaneResize}},[t("Pane",{staticClass:"splitpanes__pane-list",attrs:{size:e.listPaneSize||e.paneDefaults.list.size,"min-size":e.paneDefaults.list.min,"max-size":e.paneDefaults.list.max}},[e._t("list")],2),t("Pane",{staticClass:"splitpanes__pane-details",attrs:{size:e.detailsPaneSize,"min-size":e.paneDefaults.details.min,"max-size":e.paneDefaults.details.max}},[e._t("default")],2)],1)],1)]:e._t("default")],2)},lE=[],uE=ce(oE,sE,lE,!1,null,"424ef3d1",null,null);const RM=uE.exports;const dE={name:"NcIconSvgWrapper",props:{svg:{type:String,default:""},name:{type:String,default:""},path:{type:String,default:""}},computed:{cleanSvg(){if(!this.svg||this.path)return;const e=G_.sanitize(this.svg),t=new DOMParser().parseFromString(e,"image/svg+xml");return t.querySelector("parsererror")?(Aa.util.warn("SVG is not valid"),""):(t.documentElement.id&&t.documentElement.removeAttribute("id"),t.documentElement.outerHTML)},attributes(){return{class:"icon-vue",role:"img","aria-hidden":this.name?void 0:!0,"aria-label":this.name||void 0}}}};var cE=function(){var e=this,t=e._self._c;return e.cleanSvg?t("span",e._b({domProps:{innerHTML:e._s(e.cleanSvg)}},"span",e.attributes,!1)):t("span",e._b({},"span",e.attributes,!1),[t("svg",{attrs:{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:e.path}})])])},hE=[],fE=ce(dE,cE,hE,!1,null,"6176f396",null,null);const Ef=fE.exports;const gE={name:"NcEmptyContent",props:{name:{type:String,default:""},description:{type:String,default:""}},computed:{hasName(){return this.name!==""},hasDescription(){var e;return this.description!==""||((e=this.$slots.description)==null?void 0:e[0])}}};var _E=function(){var e=this,t=e._self._c;return t("div",{staticClass:"empty-content",attrs:{role:"note"}},[e.$slots.icon?t("div",{staticClass:"empty-content__icon",attrs:{"aria-hidden":"true"}},[e._t("icon")],2):e._e(),e._t("name",function(){return[e.hasName?t("span",{staticClass:"empty-content__name"},[e._v(" "+e._s(e.name)+" ")]):e._e()]}),e.hasDescription?t("p",{staticClass:"empty-content__description"},[e._t("description",function(){return[e._v(" "+e._s(e.description)+" ")]})],2):e._e(),e.$slots.action?t("div",{staticClass:"empty-content__action"},[e._t("action")],2):e._e()],2)},FE=[],mE=ce(gE,_E,FE,!1,null,"458108e7",null,null);const du=mE.exports;class pE{constructor(t){if(typeof t!="object")throw new Error("Received activity data is not an object.");if(typeof t.activity_id!="number")throw new Error("The activity_id argument is not a valid string");if(typeof t.type!="string"||t.type.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.subject!="string"||t.subject.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.icon!="string"||t.icon.trim()==="")throw new Error("The activity_id argument is not a valid string");if(typeof t.datetime!="string"||t.datetime.trim()==="")throw new Error("The activity_id argument is not a valid string");this._activity=t}get id(){return this._activity.activity_id}get app(){return this._activity.app}get type(){return this._activity.type}get user(){return this._activity.user}get subject(){return this._activity.subject}get subjectRichTemplate(){return this._activity.subject_rich[0]}get subjectRichObjects(){return Array.isArray(this._activity.subject_rich[1])?{}:this._activity.subject_rich[1]}get message(){return this._activity.message}get messageRichTemplate(){return this._activity.message_rich[0]}get messageRichObjects(){return Array.isArray(this._activity.message_rich[1])?this._activity.message_rich[1]:{}}get objectType(){return this._activity.object_type}get objectId(){return this._activity.object_id}get objectName(){return this._activity.object_name}get link(){return this._activity.link}get icon(){return this._activity.icon}get datetime(){return this._activity.datetime}get dateFromNow(){return es(this._activity.datetime).fromNow()}get formattedDate(){return es(this._activity.datetime).format("LLL")}get timestamp(){return es(this._activity.datetime).unix()}get previews(){return this._activity.previews??[]}}const TE={name:"ChevronRightIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var DE=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-right-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},EE=[],bE=ce(TE,DE,EE,!1,null,null,null,null);const bf=bE.exports,yE={before(){(!this.$slots.default||this.text.trim()==="")&&(Aa.util.warn(`${this.$options.name} cannot be empty and requires a meaningful text content`,this),this.$destroy(),this.$el.remove())},beforeUpdate(){this.text=this.getText()},data(){return{text:this.getText()}},computed:{isLongText(){return this.text&&this.text.trim().length>20}},methods:{getText(){return this.$slots.default?this.$slots.default[0].text.trim():""}}},AE=function(e,t){let a=e.$parent;for(;a;){if(a.$options.name===t)return a;a=a.$parent}},yf={mixins:[yE],props:{icon:{type:String,default:""},name:{type:String,default:""},title:{type:String,default:""},closeAfterClick:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},ariaHidden:{type:Boolean,default:null}},emits:["click"],computed:{isIconUrl(){try{return new URL(this.icon)}catch{return!1}}},methods:{onClick(e){if(this.$emit("click",e),this.closeAfterClick){const t=AE(this,"NcActions");t&&t.closeMenu&&t.closeMenu(!1)}}}},SE={name:"NcActionButton",components:{ChevronRightIcon:bf},mixins:[yf],props:{disabled:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},isMenu:{type:Boolean,default:!1}},computed:{isFocusable(){return!this.disabled}}};var kE=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action",class:{"action--disabled":e.disabled}},[t("button",{staticClass:"action-button",class:{focusable:e.isFocusable},attrs:{"aria-label":e.ariaLabel,title:e.title,role:"menuitem",type:"button"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-button__icon",class:[e.isIconUrl?"action-button__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-button__longtext-wrapper"},[t("strong",{staticClass:"action-button__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-button__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-button__text"},[e._v(e._s(e.text))]),e.isMenu?t("ChevronRightIcon",{staticClass:"action-button__menu-icon"}):e._e(),e._e()],2)])},vE=[],RE=ce(SE,kE,vE,!1,null,"4ad257bb",null,null);const NE=RE.exports;const Af=J_.getLoggerBuilder().detectUser().setApp("@nextcloud/vue").build();var Sf={exports:{}};(function(e){var t;(function(){t=e.exports})(),t.foldLength=75,t.newLineChar=`\r
`,t.helpers={updateTimezones:function(a){var i,n,r,o,s,l;if(!a||a.name!=="vcalendar")return a;for(i=a.getAllSubcomponents(),n=[],r={},s=0;s"u"))return a instanceof i?a:new i(a)},unescapedIndexOf:function(a,i,n){for(;(n=a.indexOf(i,n))!==-1;)if(n>0&&a[n-1]==="\\")n+=1;else return n;return-1},binsearchInsert:function(a,i,n){if(!a.length)return 0;for(var r=0,o=a.length-1,s,l;r<=o;)if(s=r+Math.floor((o-r)/2),l=n(i,a[s]),l<0)o=s-1;else if(l>0)r=s+1;else break;return l<0?s:l>0?s+1:s},dumpn:function(){t.debug&&(typeof console<"u"&&"log"in console?t.helpers.dumpn=function(a){console.log(a)}:t.helpers.dumpn=function(a){dump(a+`
`)},t.helpers.dumpn(arguments[0]))},clone:function(a,i){if(!a||typeof a!="object")return a;if(a instanceof Date)return new Date(a.getTime());if("clone"in a)return a.clone();if(Array.isArray(a)){for(var n=[],r=0;r65535?2:1:(i+=t.newLineChar+" "+n.substring(0,r),n=n.substring(r),r=o=0)}return i.substr(t.newLineChar.length+1)},pad2:function(a){typeof a!="string"&&(typeof a=="number"&&(a=parseInt(a)),a=String(a));var i=a.length;switch(i){case 0:return"00";case 1:return"0"+a;default:return a}},trunc:function(a){return a<0?Math.ceil(a):Math.floor(a)},inherits:function(a,i,n){function r(){}r.prototype=a.prototype,i.prototype=new r,n&&t.helpers.extend(n,i.prototype)},extend:function(a,i){for(var n in a){var r=Object.getOwnPropertyDescriptor(a,n);r&&!Object.getOwnPropertyDescriptor(i,n)&&Object.defineProperty(i,n,r)}return i}},t.design=function(){var a=/\\\\|\\;|\\,|\\[Nn]/g,i=/\\|;|,|\n/g,n=/\\\\|\\,|\\[Nn]/g,r=/\\|,|\n/g;function o(y,U){var A={matches:/.*/,fromICAL:function(z,re){return R(z,y,re)},toICAL:function(z,re){var O=U;return re&&(O=new RegExp(O.source+"|"+re)),z.replace(O,function(ge){switch(ge){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case`
`:return"\\n";default:return ge}})}};return A}var s={defaultType:"text"},l={defaultType:"text",multiValue:","},d={defaultType:"text",structuredValue:";"},u={defaultType:"integer"},c={defaultType:"date-time",allowedTypes:["date-time","date"]},f={defaultType:"date-time"},h={defaultType:"uri"},_={defaultType:"utc-offset"},m={defaultType:"recur"},p={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function T(y){switch(y){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return`
@@ -934,7 +934,7 @@ Plural-Forms: nplurals=1; plural=0;
`)}}}u.prototype=Error.prototype;function c(h){var _={},m=_.component=[];if(_.stack=[m],c._eachLine(h,function(p,T){c._handleContentLine(T,_)}),_.stack.length>1)throw new u("invalid ical body. component began but did not end");return _=null,m.length==1?m[0]:m}c.property=function(h,_){var m={component:[[],[]],designSet:_||l.defaultSet};return c._handleContentLine(h,m),m.component[1][0]},c.component=function(h){return c(h)},c.ParserError=u,c._handleContentLine=function(h,_){var m=h.indexOf(i),p=h.indexOf(n),T,R,S,C,j={};p!==-1&&m!==-1&&p>m&&(p=-1);var E;if(p!==-1){if(S=h.substring(0,p).toLowerCase(),E=c._parseParameters(h.substring(p),0,_.designSet),E[2]==-1)throw new u("Invalid parameters in '"+h+"'");if(j=E[0],T=E[1].length+E[2]+p,(R=h.substring(T).indexOf(i))!==-1)C=h.substring(T+R+1);else throw new u("Missing parameter value in '"+h+"'")}else if(m!==-1){if(S=h.substring(0,m).toLowerCase(),C=h.substring(m+1),S==="begin"){var I=[C.toLowerCase(),[],[]];_.stack.length===1?_.component.push(I):_.component[2].push(I),_.stack.push(_.component),_.component=I,_.designSet||(_.designSet=l.getDesignSet(_.component[0]));return}else if(S==="end"){_.component=_.stack.pop();return}}else throw new u('invalid line (no token ";" or ":") "'+h+'"');var M,P=!1,g=!1,D;S in _.designSet.property&&(D=_.designSet.property[S],"multiValue"in D&&(P=D.multiValue),"structuredValue"in D&&(g=D.structuredValue),C&&"detectType"in D&&(M=D.detectType(C))),M||("value"in j?M=j.value.toLowerCase():D?M=D.defaultType:M=o),delete j.value;var k;P&&g?(C=c._parseMultiValue(C,g,M,[],P,_.designSet,g),k=[S,j,M,C]):P?(k=[S,j,M],c._parseMultiValue(C,P,M,k,null,_.designSet,!1)):g?(C=c._parseMultiValue(C,g,M,[],null,_.designSet,g),k=[S,j,M,C]):(C=c._parseValue(C,M,_.designSet,!1),k=[S,j,M,C]),_.component[0]==="vcard"&&_.component[1].length===0&&!(S==="version"&&C==="4.0")&&(_.designSet=l.getDesignSet("vcard3")),_.component[1].push(k)},c._parseValue=function(h,_,m,p){return _ in m.value&&"fromICAL"in m.value[_]?m.value[_].fromICAL(h,p):h},c._parseParameters=function(h,_,m){for(var p=_,T=0,R=r,S={},C,j,E,I=-1,M,P,g;T!==!1&&(T=d.unescapedIndexOf(h,R,T+1))!==-1;){if(C=h.substr(p+1,T-p-1),C.length==0)throw new u("Empty parameter name in '"+h+"'");j=C.toLowerCase(),g=!1,P=!1,j in m.param&&m.param[j].valueType?M=m.param[j].valueType:M=s,j in m.param&&(P=m.param[j].multiValue,m.param[j].multiValueSeparateDQuote&&(g=c._rfc6868Escape('"'+P+'"')));var D=h[T+1];if(D==='"'){if(I=T+2,T=d.unescapedIndexOf(h,'"',I),P&&T!=-1)for(var k=!0;k;)h[T+1]==P&&h[T+2]=='"'?T=d.unescapedIndexOf(h,'"',T+3):k=!1;if(T===-1)throw new u('invalid line (no matching double quote) "'+h+'"');E=h.substr(I,T-I),p=d.unescapedIndexOf(h,n,T),p===-1&&(T=!1)}else{I=T+1;var x=d.unescapedIndexOf(h,n,I),L=d.unescapedIndexOf(h,i,I);L!==-1&&x>L?(x=L,T=!1):x===-1?(L===-1?x=h.length:x=L,T=!1):(p=x,T=x),E=h.substr(I,x-I)}if(E=c._rfc6868Escape(E),P){var Z=g||P;E=c._parseMultiValue(E,Z,M,[],null,m)}else E=c._parseValue(E,M,m);P&&j in S?Array.isArray(S[j])?S[j].push(E):S[j]=[S[j],E]:S[j]=E}return[S,E,I]},c._rfc6868Escape=function(h){return h.replace(/\^['n^]/g,function(_){return f[_]})};var f={"^'":'"',"^n":`
`,"^^":"^"};return c._parseMultiValue=function(h,_,m,p,T,R,S){var C=0,j=0,E;if(_.length===0)return h;for(;(C=d.unescapedIndexOf(h,_,j))!==-1;)E=h.substr(j,C-j),T?E=c._parseMultiValue(E,T,m,[],null,R,S):E=c._parseValue(E,m,R,S),p.push(E),j=C+_.length;return E=h.substr(j),T?E=c._parseMultiValue(E,T,m,[],null,R,S):E=c._parseValue(E,m,R,S),p.push(E),p.length==1?p[0]:p},c._eachLine=function(h,_){var m=h.length,p=h.search(a),T=p,R,S,C;do T=h.indexOf(`
`,p)+1,T>1&&h[T-2]==="\r"?C=2:C=1,T===0&&(T=m,C=0),S=h[p],S===" "||S===" "?R+=h.substr(p+1,T-p-(C+1)):(R&&_(null,R),R=h.substr(p,T-p-C)),p=T;while(T!==m);R=R.trim(),R.length&&_(null,R)},c}(),t.Component=function(){var a=1,i=2,n=0;function r(o,s){typeof o=="string"&&(o=[o,[],[]]),this.jCal=o,this.parent=s||null}return r.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[n]},get _designSet(){var o=this.parent&&this.parent._designSet;return o||t.design.getDesignSet(this.name)},_hydrateComponent:function(o){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[o])return this._components[o];var s=new r(this.jCal[i][o],this);return this._hydratedComponentCount++,this._components[o]=s},_hydrateProperty:function(o){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[o])return this._properties[o];var s=new t.Property(this.jCal[a][o],this);return this._hydratedPropertyCount++,this._properties[o]=s},getFirstSubcomponent:function(o){if(o){for(var s=0,l=this.jCal[i],d=l.length;s=0;c--)(!l||u[c][n]===l)&&this._removeObjectByIndex(o,d,c)},addSubcomponent:function(o){this._components||(this._components=[],this._hydratedComponentCount=0),o.parent&&o.parent.removeSubcomponent(o);var s=this.jCal[i].push(o.jCal);return this._components[s-1]=o,this._hydratedComponentCount++,o.parent=this,o},removeSubcomponent:function(o){var s=this._removeObject(i,"_components",o);return s&&this._hydratedComponentCount--,s},removeAllSubcomponents:function(o){var s=this._removeAllObjects(i,"_components",o);return this._hydratedComponentCount=0,s},addProperty:function(o){if(!(o instanceof t.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),o.parent&&o.parent.removeProperty(o);var s=this.jCal[a].push(o.jCal);return this._properties[s-1]=o,this._hydratedPropertyCount++,o.parent=this,o},addPropertyWithValue:function(o,s){var l=new t.Property(o);return l.setValue(s),this.addProperty(l),l},updatePropertyWithValue:function(o,s){var l=this.getFirstProperty(o);return l?l.setValue(s):l=this.addPropertyWithValue(o,s),l},removeProperty:function(o){var s=this._removeObject(a,"_properties",o);return s&&this._hydratedPropertyCount--,s},removeAllProperties:function(o){var s=this._removeAllObjects(a,"_properties",o);return this._hydratedPropertyCount=0,s},toJSON:function(){return this.jCal},toString:function(){return t.stringify.component(this.jCal,this._designSet)}},r.fromString=function(o){return new r(t.parse.component(o))},r}(),t.Property=function(){var a=0,i=1,n=2,r=3,o=t.design;function s(l,d){this._parent=d||null,typeof l=="string"?(this.jCal=[l,{},o.defaultType],this.jCal[n]=this.getDefaultType()):this.jCal=l,this._updateType()}return s.prototype={get type(){return this.jCal[n]},get name(){return this.jCal[a]},get parent(){return this._parent},set parent(l){var d=!this._parent||l&&l._designSet!=this._parent._designSet;return this._parent=l,this.type==o.defaultType&&d&&(this.jCal[n]=this.getDefaultType(),this._updateType()),l},get _designSet(){return this.parent?this.parent._designSet:o.defaultSet},_updateType:function(){var l=this._designSet;this.type in l.value&&(l.value[this.type],"decorate"in l.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in l.property&&(this.isMultiValue="multiValue"in l.property[this.name],this.isStructuredValue="structuredValue"in l.property[this.name]))},_hydrateValue:function(l){return this._values&&this._values[l]?this._values[l]:this.jCal.length<=r+l?null:this.isDecorated?(this._values||(this._values=[]),this._values[l]=this._decorate(this.jCal[r+l])):this.jCal[r+l]},_decorate:function(l){return this._designSet.value[this.type].decorate(l,this)},_undecorate:function(l){return this._designSet.value[this.type].undecorate(l,this)},_setDecoratedValue:function(l,d){this._values||(this._values=[]),typeof l=="object"&&"icaltype"in l?(this.jCal[r+d]=this._undecorate(l),this._values[d]=l):(this.jCal[r+d]=l,this._values[d]=this._decorate(l))},getParameter:function(l){if(l in this.jCal[i])return this.jCal[i][l]},getFirstParameter:function(l){var d=this.getParameter(l);return Array.isArray(d)?d[0]:d},setParameter:function(l,d){var u=l.toLowerCase();typeof d=="string"&&u in this._designSet.param&&"multiValue"in this._designSet.param[u]&&(d=[d]),this.jCal[i][l]=d},removeParameter:function(l){delete this.jCal[i][l]},getDefaultType:function(){var l=this.jCal[a],d=this._designSet;if(l in d.property){var u=d.property[l];if("defaultType"in u)return u.defaultType}return o.defaultType},resetType:function(l){this.removeAllValues(),this.jCal[n]=l,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var l=this.jCal.length-r;if(l<1)return[];for(var d=0,u=[];d0&&typeof l[0]=="object"&&"icaltype"in l[0]&&this.resetType(l[0].icaltype),this.isDecorated)for(;ur)-(r>n)},_normalize:function(){for(var i=this.toSeconds(),n=this.factor;i<-43200;)i+=97200;for(;i>50400;)i-=97200;this.fromSeconds(i),i==0&&(this.factor=n)},toICALString:function(){return t.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(this.factor==1?"+":"-")+t.helpers.pad2(this.hours)+":"+t.helpers.pad2(this.minutes)}},a.fromString=function(i){var n={};return n.factor=i[0]==="+"?1:-1,n.hours=t.helpers.strictParseInt(i.substr(1,2)),n.minutes=t.helpers.strictParseInt(i.substr(4,2)),new t.UtcOffset(n)},a.fromSeconds=function(i){var n=new a;return n.fromSeconds(i),n},a}(),t.Binary=function(){function a(i){this.value=i}return a.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(i){this.value=this._b64_encode(i)},_b64_encode:function(i){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,o,s,l,d,u,c,f,h=0,_=0,m="",p=[];if(!i)return i;do r=i.charCodeAt(h++),o=i.charCodeAt(h++),s=i.charCodeAt(h++),f=r<<16|o<<8|s,l=f>>18&63,d=f>>12&63,u=f>>6&63,c=f&63,p[_++]=n.charAt(l)+n.charAt(d)+n.charAt(u)+n.charAt(c);while(h>16&255,o=f>>8&255,s=f&255,u==64?p[_++]=String.fromCharCode(r):c==64?p[_++]=String.fromCharCode(r,o):p[_++]=String.fromCharCode(r,o,s);while(ho)-(r=0?o=r:s=-1,s==-1&&o!=-1)break;if(r+=s,r<0)return 0;if(r>=this.changes.length)break}var u=this.changes[o],c=u.utcOffset-u.prevUtcOffset;if(c<0&&o>0){var f=t.helpers.clone(u,!0);if(t.Timezone.adjust_change(f,0,0,0,f.prevUtcOffset),t.Timezone._compare_change_fn(n,f)<0){var h=this.changes[o-1],_=!1;u.is_daylight!=_&&h.is_daylight==_&&(u=h)}}return u.utcOffset},_findNearbyChange:function(i){var n=t.helpers.binsearchInsert(this.changes,i,t.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(i){if(t.Timezone._minimumExpansionYear==-1){var n=t.Time.now();t.Timezone._minimumExpansionYear=n.year}var r=i;if(rt.Timezone.MAX_YEAR&&(r=t.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYearn||!p));)s.year=p.year,s.month=p.month,s.day=p.day,s.hour=p.hour,s.minute=p.minute,s.second=p.second,s.isDate=p.isDate,t.Timezone.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s)}}return r},toString:function(){return this.tznames?this.tznames:this.tzid}},t.Timezone._compare_change_fn=function(i,n){return i.yearn.year?1:i.monthn.month?1:i.dayn.day?1:i.hourn.hour?1:i.minuten.minute?1:i.secondn.second?1:0},t.Timezone.convert_time=function(i,n,r){if(i.isDate||n.tzid==r.tzid||n==t.Timezone.localTimezone||r==t.Timezone.localTimezone)return i.zone=r,i;var o=n.utcOffset(i);return i.adjust(0,0,0,-o),o=r.utcOffset(i),i.adjust(0,0,0,o),null},t.Timezone.fromData=function(i){var n=new t.Timezone;return n.fromData(i)},t.Timezone.utcTimezone=t.Timezone.fromData({tzid:"UTC"}),t.Timezone.localTimezone=t.Timezone.fromData({tzid:"floating"}),t.Timezone.adjust_change=function(i,n,r,o,s){return t.Time.prototype.adjust.call(i,n,r,o,s,i)},t.Timezone._minimumExpansionYear=-1,t.Timezone.MAX_YEAR=2035,t.Timezone.EXTRA_COVERAGE=5}(),t.TimezoneService=function(){var a,i={get count(){return Object.keys(a).length},reset:function(){a=Object.create(null);var n=t.Timezone.utcTimezone;a.Z=n,a.UTC=n,a.GMT=n},has:function(n){return!!a[n]},get:function(n){return a[n]},register:function(n,r){if(n instanceof t.Component&&n.name==="vtimezone"&&(r=new t.Timezone(n),n=r.tzid),r instanceof t.Timezone)a[n]=r;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(n){return delete a[n]}};return i.reset(),i}(),function(){t.Time=function(a,i){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(a,i)},t.Time._dowCache={},t.Time._wnCache={},t.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new t.Time(this._time,this.zone)},reset:function(){this.fromData(t.Time.epochTime),this.zone=t.Timezone.utcTimezone},resetTo:function(a,i,n,r,o,s,l){this.fromData({year:a,month:i,day:n,hour:r,minute:o,second:s,zone:l})},fromJSDate:function(a,i){return a?i?(this.zone=t.Timezone.utcTimezone,this.year=a.getUTCFullYear(),this.month=a.getUTCMonth()+1,this.day=a.getUTCDate(),this.hour=a.getUTCHours(),this.minute=a.getUTCMinutes(),this.second=a.getUTCSeconds()):(this.zone=t.Timezone.localTimezone,this.year=a.getFullYear(),this.month=a.getMonth()+1,this.day=a.getDate(),this.hour=a.getHours(),this.minute=a.getMinutes(),this.second=a.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(a,i){if(a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){if(n==="icaltype")continue;this[n]=a[n]}}if(i&&(this.zone=i),a&&!("isDate"in a)?this.isDate=!("hour"in a):a&&"isDate"in a&&(this.isDate=a.isDate),a&&"timezone"in a){var r=t.TimezoneService.get(a.timezone);this.zone=r||t.Timezone.localTimezone}return a&&"zone"in a&&(this.zone=a.zone),this.zone||(this.zone=t.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(a){var i=a||t.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+i;if(n in t.Time._dowCache)return t.Time._dowCache[n];var r=this.day,o=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),l=r+s+t.helpers.trunc((o+1)*26/10)+t.helpers.trunc(s/4);return l+=t.helpers.trunc(s/100)*6+t.helpers.trunc(s/400),l=(l+7-i)%7+1,t.Time._dowCache[n]=l,l},dayOfYear:function(){var a=t.Time.isLeapYear(this.year)?1:0,i=t.Time.daysInYearPassedMonth;return i[a][this.month-1]+this.day},startOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-i)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+i-t.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var a=this.clone();return a.day=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfMonth:function(){var a=this.clone();return a.day=t.Time.daysInMonth(a.month,a.year),a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startOfYear:function(){var a=this.clone();return a.day=1,a.month=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfYear:function(){var a=this.clone();return a.day=31,a.month=12,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startDoyWeek:function(a){var i=a||t.Time.SUNDAY,n=this.dayOfWeek()-i;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return t.Time.getDominicalLetter(this.year)},nthWeekDay:function(a,i){var n=t.Time.daysInMonth(this.month,this.year),r,o=i,s=0,l=this.clone();if(o>=0){l.day=1,o!=0&&o--,s=l.day;var d=l.dayOfWeek(),u=a-d;u<0&&(u+=7),s+=u,s-=a,r=a}else{l.day=n;var c=l.dayOfWeek();o++,r=c-a,r<0&&(r+=7),r=n-r}return r+=o*7,s+r},isNthWeekDay:function(a,i){var n=this.dayOfWeek();if(i===0&&n===a)return!0;var r=this.nthWeekDay(a,i);return r===this.day},weekNumber:function(a){var i=(this.year<<12)+(this.month<<8)+(this.day<<3)+a;if(i in t.Time._wnCache)return t.Time._wnCache[i];var n,r=this.clone();r.isDate=!0;var o=this.year;r.month==12&&r.day>25?(n=t.Time.weekOneStarts(o+1,a),r.compare(n)<0?n=t.Time.weekOneStarts(o,a):o++):(n=t.Time.weekOneStarts(o,a),r.compare(n)<0&&(n=t.Time.weekOneStarts(--o,a)));var s=r.subtractDate(n).toSeconds()/86400,l=t.helpers.trunc(s/7)+1;return t.Time._wnCache[i]=l,l},addDuration:function(a){var i=a.isNegative?-1:1,n=this.second,r=this.minute,o=this.hour,s=this.day;n+=i*a.seconds,r+=i*a.minutes,o+=i*a.hours,s+=i*a.days,s+=i*7*a.weeks,this.second=n,this.minute=r,this.hour=o,this.day=s,this._cachedUnixTime=null},subtractDate:function(a){var i=this.toUnixTime()+this.utcOffset(),n=a.toUnixTime()+a.utcOffset();return t.Duration.fromSeconds(i-n)},subtractDateTz:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return t.Duration.fromSeconds(i-n)},compare:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return i>n?1:n>i?-1:0},compareDateOnlyTz:function(a,i){function n(l){return t.Time._cmp_attr(r,o,l)}var r=this.convertToZone(i),o=a.convertToZone(i),s=0;return(s=n("year"))!=0||(s=n("month"))!=0||(s=n("day"))!=0,s},convertToZone:function(a){var i=this.clone(),n=this.zone.tzid==a.tzid;return!this.isDate&&!n&&t.Timezone.convert_time(i,this.zone,a),i.zone=a,i},utcOffset:function(){return this.zone==t.Timezone.localTimezone||this.zone==t.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var a=this.toString();return a.length>10?t.design.icalendar.value["date-time"].toICAL(a):t.design.icalendar.value.date.toICAL(a)},toString:function(){var a=this.year+"-"+t.helpers.pad2(this.month)+"-"+t.helpers.pad2(this.day);return this.isDate||(a+="T"+t.helpers.pad2(this.hour)+":"+t.helpers.pad2(this.minute)+":"+t.helpers.pad2(this.second),this.zone===t.Timezone.utcTimezone&&(a+="Z")),a},toJSDate:function(){return this.zone==t.Timezone.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:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(a,i,n,r,o){var s,l,d=0,u=0,c,f,h,_,m,p=o||this._time;if(p.isDate||(c=p.second+r,p.second=c%60,s=t.helpers.trunc(c/60),p.second<0&&(p.second+=60,s--),f=p.minute+n+s,p.minute=f%60,l=t.helpers.trunc(f/60),p.minute<0&&(p.minute+=60,l--),h=p.hour+i+l,p.hour=h%24,d=t.helpers.trunc(h/24),p.hour<0&&(p.hour+=24,d--)),p.month>12?u=t.helpers.trunc((p.month-1)/12):p.month<1&&(u=t.helpers.trunc(p.month/12)-1),p.year+=u,p.month-=12*u,_=p.day+a+d,_>0)for(;m=t.Time.daysInMonth(p.month,p.year),!(_<=m);)p.month++,p.month>12&&(p.year++,p.month=1),_-=m;else for(;_<=0;)p.month==1?(p.year--,p.month=12):p.month--,_+=t.Time.daysInMonth(p.month,p.year);return p.day=_,this._cachedUnixTime=null,this},fromUnixTime:function(a){this.zone=t.Timezone.utcTimezone;var i=t.Time.epochTime.clone();i.adjust(0,0,0,a),this.year=i.year,this.month=i.month,this.day=i.day,this.hour=i.hour,this.minute=i.minute,this.second=Math.floor(i.second),this._cachedUnixTime=null},toUnixTime:function(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;var a=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-a);return this._cachedUnixTime=i/1e3,this._cachedUnixTime},toJSON:function(){for(var a=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,r=a.length,o;n12||(r=n[a],a==2&&(r+=t.Time.isLeapYear(i))),r},t.Time.isLeapYear=function(a){return a<=1752?a%4==0:a%4==0&&a%100!=0||a%400==0},t.Time.fromDayOfYear=function(a,i){var n=i,r=a,o=new t.Time;o.auto_normalize=!1;var s=t.Time.isLeapYear(n)?1:0;if(r<1)return n--,s=t.Time.isLeapYear(n)?1:0,r+=t.Time.daysInYearPassedMonth[s][12],t.Time.fromDayOfYear(r,n);if(r>t.Time.daysInYearPassedMonth[s][12])return s=t.Time.isLeapYear(n)?1:0,r-=t.Time.daysInYearPassedMonth[s][12],n++,t.Time.fromDayOfYear(r,n);o.year=n,o.isDate=!0;for(var l=11;l>=0;l--)if(r>t.Time.daysInYearPassedMonth[s][l]){o.month=l+1,o.day=r-t.Time.daysInYearPassedMonth[s][l];break}return o.auto_normalize=!0,o},t.Time.fromStringv2=function(a){return new t.Time({year:parseInt(a.substr(0,4),10),month:parseInt(a.substr(5,2),10),day:parseInt(a.substr(8,2),10),isDate:!0})},t.Time.fromDateString=function(a){return new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),isDate:!0})},t.Time.fromDateTimeString=function(a,i){if(a.length<19)throw new Error('invalid date-time value: "'+a+'"');var n;a[19]&&a[19]==="Z"?n="Z":i&&(n=i.getParameter("tzid"));var r=new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),hour:t.helpers.strictParseInt(a.substr(11,2)),minute:t.helpers.strictParseInt(a.substr(14,2)),second:t.helpers.strictParseInt(a.substr(17,2)),timezone:n});return r},t.Time.fromString=function(a,i){return a.length>10?t.Time.fromDateTimeString(a,i):t.Time.fromDateString(a)},t.Time.fromJSDate=function(a,i){var n=new t.Time;return n.fromJSDate(a,i)},t.Time.fromData=function(a,i){var n=new t.Time;return n.fromData(a,i)},t.Time.now=function(){return t.Time.fromJSDate(new Date,!1)},t.Time.weekOneStarts=function(a,i){var n=t.Time.fromData({year:a,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),o=i||t.Time.DEFAULT_WEEK_START;return r>t.Time.THURSDAY&&(n.day+=7),o>t.Time.THURSDAY&&(n.day-=7),n.day-=r-o,n},t.Time.getDominicalLetter=function(a){var i="GFEDCBA",n=(a+(a/4|0)+(a/400|0)-(a/100|0)-1)%7,r=t.Time.isLeapYear(a);return r?i[(n+6)%7]+i[n]:i[n]},t.Time.epochTime=t.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),t.Time._cmp_attr=function(a,i,n){return a[n]>i[n]?1:a[n]4?_?n(u,1,2):n(u,3,2):null,second:f==4?n(u,2,2):f==6?n(u,4,2):f==8?n(u,6,2):null};return d=="Z"?d=t.Timezone.utcTimezone:d&&d[3]==":"?d=t.UtcOffset.fromString(d):d=null,new t.VCardTime(m,d,i)}}(),function(){var a={SU:t.Time.SUNDAY,MO:t.Time.MONDAY,TU:t.Time.TUESDAY,WE:t.Time.WEDNESDAY,TH:t.Time.THURSDAY,FR:t.Time.FRIDAY,SA:t.Time.SATURDAY},i={};for(var n in a)a.hasOwnProperty(n)&&(i[a[n]]=n);t.Recur=function(c){this.wrappedJSObject=this,this.parts={},c&&typeof c=="object"&&this.fromData(c)},t.Recur.prototype={parts:null,interval:1,wkst:t.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(c){return new t.RecurIterator({rule:this,dtstart:c})},clone:function(){return new t.Recur(this.toJSON())},isFinite:function(){return!!(this.count||this.until)},isByCount:function(){return!!(this.count&&!this.until)},addComponent:function(c,f){var h=c.toUpperCase();h in this.parts?this.parts[h].push(f):this.parts[h]=[f]},setComponent:function(c,f){this.parts[c.toUpperCase()]=f.slice()},getComponent:function(c){var f=c.toUpperCase();return f in this.parts?this.parts[f].slice():[]},getNextOccurrence:function(c,f){var h=this.iterator(c),_;do _=h.next();while(_&&_.compare(f)<=0);return _&&f.zone&&(_.zone=f.zone),_},fromData:function(c){for(var f in c){var h=f.toUpperCase();h in u?Array.isArray(c[f])?this.parts[h]=c[f]:this.parts[h]=[c[f]]:this[f]=c[f]}this.interval&&typeof this.interval!="number"&&d.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=t.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof t.Time)&&(this.until=t.Time.fromString(this.until))},toJSON:function(){var c=Object.create(null);c.freq=this.freq,this.count&&(c.count=this.count),this.interval>1&&(c.interval=this.interval);for(var f in this.parts)if(this.parts.hasOwnProperty(f)){var h=this.parts[f];Array.isArray(h)&&h.length==1?c[f.toLowerCase()]=h[0]:c[f.toLowerCase()]=t.helpers.clone(this.parts[f])}return this.until&&(c.until=this.until.toString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c.wkst=t.Recur.numericDayToIcalDay(this.wkst)),c},toString:function(){var c="FREQ="+this.freq;this.count&&(c+=";COUNT="+this.count),this.interval>1&&(c+=";INTERVAL="+this.interval);for(var f in this.parts)this.parts.hasOwnProperty(f)&&(c+=";"+f+"="+this.parts[f]);return this.until&&(c+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c+=";WKST="+t.Recur.numericDayToIcalDay(this.wkst)),c}};function r(c,f,h,_){var m=_;if(_[0]==="+"&&(m=_.substr(1)),m=t.helpers.strictParseInt(m),f!==void 0&&_ '+f);if(h!==void 0&&_>h)throw new Error(c+': invalid value "'+_+'" must be < '+f);return m}t.Recur.icalDayToNumericDay=function(c,f){var h=f||t.Time.SUNDAY;return(a[c]-h+7)%7+1},t.Recur.numericDayToIcalDay=function(c,f){var h=f||t.Time.SUNDAY,_=c+h-t.Time.SUNDAY;return _>7&&(_-=7),i[_]};var o=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,l=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],d={FREQ:function(c,f,h){if(l.indexOf(c)!==-1)f.freq=c;else throw new Error('invalid frequency "'+c+'" expected: "'+l.join(", ")+'"')},COUNT:function(c,f,h){f.count=t.helpers.strictParseInt(c)},INTERVAL:function(c,f,h){f.interval=t.helpers.strictParseInt(c),f.interval<1&&(f.interval=1)},UNTIL:function(c,f,h){c.length>10?f.until=t.design.icalendar.value["date-time"].fromICAL(c):f.until=t.design.icalendar.value.date.fromICAL(c),h||(f.until=t.Time.fromString(f.until))},WKST:function(c,f,h){if(o.test(c))f.wkst=t.Recur.icalDayToNumericDay(c);else throw new Error('invalid WKST value "'+c+'"')}},u={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(c){if(s.test(c))return c;throw new Error('invalid BYDAY value "'+c+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",1,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};t.Recur.fromString=function(c){var f=t.Recur._stringToData(c,!1);return new t.Recur(f)},t.Recur.fromData=function(c){return new t.Recur(c)},t.Recur._stringToData=function(c,f){for(var h=Object.create(null),_=c.split(";"),m=_.length,p=0;p=0||s<0)&&(this.last.day+=s)}else{var l=t.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());i.BYDAY=[l]}if(this.rule.freq=="YEARLY"){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if(this.rule.freq=="MONTHLY"&&this.has_by_data("BYDAY")){var d=null,u=this.last.clone(),c=t.Time.daysInMonth(this.last.month,this.last.year);for(var f in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(f)){this.last=u.clone();var n=this.ruleDayOfWeek(this.by_data.BYDAY[f]),r=n[0],o=n[1],h=this.last.nthWeekDay(o,r);if(r>=6||r<=-6)throw new Error("Malformed values in BYDAY part");if(h>c||h<=0){if(d&&d.month==u.month)continue;for(;h>c||h<=0;)this.increment_month(),c=t.Time.daysInMonth(this.last.month,this.last.year),h=this.last.nthWeekDay(o,r)}this.last.day=h,(!d||this.last.compare(d)<0)&&(d=this.last.clone())}if(this.last=d.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>c||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){var c=t.Time.daysInMonth(this.last.month,this.last.year);this.last.day=c+this.last.day+1}},next:function(){var 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)return this.completed=!0,null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;var 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)throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(i){return this.increment_generic(i,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(i){return this.increment_generic(i,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(i){this.increment_generic(i,"hour",24,"monthday")},next_day:function(){"BYDAY"in this.by_data;var i=this.rule.freq=="DAILY";return this.next_hour()==0||(i?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var i=0;if(this.next_weekday_by_week()==0)return i;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,i=1),this.last.month=1,this.last.day=1;var n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,i&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return i},normalizeByMonthDayRules:function(i,n,r){for(var o=t.Time.daysInMonth(n,i),s=[],l=0,d=r.length,u;lo)){if(u<0)u=o+(u+1);else if(u===0)continue;s.indexOf(u)===-1&&s.push(u)}return s.sort(function(c,f){return c-f})},_byDayAndMonthDay:function(i){var n,r=this.by_data.BYDAY,o,s=0,l,d=r.length,u=0,c,f=this,h=this.last.day;function _(){for(c=t.Time.daysInMonth(f.last.month,f.last.year),n=f.normalizeByMonthDayRules(f.last.year,f.last.month,f.by_data.BYMONTHDAY),l=n.length;n[s]<=h&&!(i&&n[s]==h)&&sc){m();continue}var T=n[s++];if(T>=o)h=T;else{m();continue}for(var R=0;Rn&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(i=1):i=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());var n=t.Time.daysInMonth(this.last.month,this.last.year),l=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];l<0&&(l=n+l+1),l>n?(this.last.day=1,i=this.is_day_in_byday(this.last)):this.last.day=l}else{this.increment_month();var n=t.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?i=0:this.last.day=this.by_data.BYMONTHDAY[0]}return i},next_weekday_by_week:function(){var i=0;if(this.next_hour()==0)return i;if(!this.has_by_data("BYDAY"))return 1;for(;;){var n=new t.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,i=1);var r=this.by_data.BYDAY[this.by_indices.BYDAY],o=this.ruleDayOfWeek(r),s=o[1];s-=this.rule.wkst,s<0&&(s+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var l=n.startDoyWeek(this.rule.wkst);if(!(s+l<1&&!i)){var d=t.Time.fromDayOfYear(l+s,this.last.year);return this.last.year=d.year,this.last.month=d.month,this.last.day=d.day,i}}},next_year:function(){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.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1},_nextByYearDay:function(){var i=this.days[this.days_index],n=this.last.year;i<1&&(i+=1,n+=1);var r=t.Time.fromDayOfYear(i,n);this.last.day=r.day,this.last.month=r.month},ruleDayOfWeek:function(i,n){var r=i.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){var o=parseInt(r[1]||0,10);return i=t.Recur.icalDayToNumericDay(r[2],n),[o,i]}else return[0,0]},next_generic:function(i,n,r,o,s){var l=i in this.by_data,d=this.rule.freq==n,u=0;if(s&&this[s]()==0)return u;if(l){this.by_indices[i]++,this.by_indices[i];var c=this.by_data[i];this.by_indices[i]==c.length&&(this.by_indices[i]=0,u=1),this.last[r]=c[this.by_indices[i]]}else d&&this["increment_"+r](this.rule.interval);return l&&u&&d&&this["increment_"+o](1),u},increment_monthday:function(i){for(var n=0;nr&&(this.last.day-=r,this.increment_month())}},increment_month:function(){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--;var i=t.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,i!=0&&this.increment_year(i)}},increment_year:function(i){this.last.year+=i},increment_generic:function(i,n,r,o){this.last[n]+=i;var s=t.helpers.trunc(this.last[n]/r);this.last[n]%=r,s!=0&&this["increment_"+o](s)},has_by_data:function(i){return i in this.rule.parts},expand_year_days:function(i){var n=new t.Time;this.days=[];var r={},o=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];l in this.rule.parts&&(r[l]=this.rule.parts[l])}if("BYMONTH"in r&&"BYWEEKNO"in r){var d=1,u={};n.year=i,n.isDate=!0;for(var c=0;c0?(z=re+(U-1)*7,z<=M&&this.days.push(D+z)):(z=O+(U+1)*7,z>0&&this.days.push(D+z))}}this.days.sort(function(Ze,Re){return Ze-Re})}else if(T==2&&"BYDAY"in r&&"BYMONTHDAY"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTH.indexOf(Fe.month)>=0&&this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==2&&"BYDAY"in r&&"BYWEEKNO"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i),p=Fe.weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(p)&&this.days.push(L)}}else T==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(T==1&&"BYYEARDAY"in r?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);return 0},expand_by_day:function(i){var n=[],r=this.last.clone();r.year=i,r.month=1,r.day=1,r.isDate=!0;var o=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var s=r.dayOfWeek(),l=r.dayOfYear();for(var d in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(d)){var u=this.by_data.BYDAY[d],c=this.ruleDayOfWeek(u),f=c[0],h=c[1];if(f==0)for(var _=(h+7-o)%7+1,m=_;m<=l;m+=7)n.push(m);else if(f>0){var p;h>=o?p=h-o+1:p=h-o+8,n.push(p+(f-1)*7)}else{var T;f=-f,h<=s?T=l-s+h:T=l-s+h-7,n.push(T-(f-1)*7)}}return n},is_day_in_byday:function(i){for(var n in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(n)){var r=this.by_data.BYDAY[n],o=this.ruleDayOfWeek(r),s=o[0],l=o[1],d=i.dayOfWeek();if(s==0&&l==d||i.nthWeekDay(l,s)==i.day)return 1}return 0},check_set_position:function(i){if(this.has_by_data("BYSETPOS")){var n=this.by_data.BYSETPOS.indexOf(i);return n!==-1}return!1},sort_byday_rules:function(i){for(var n=0;ns){var l=i[n];i[n]=i[r],i[r]=l}}},check_contract_restriction:function(i,n){var r=a._indexMap[i],o=a._expandMap[this.rule.freq][r],s=!1;if(i in this.by_data&&o==a.CONTRACT){var l=this.by_data[i];for(var d in l)if(l.hasOwnProperty(d)&&l[d]==n){s=!0;break}}else s=!0;return s},check_contracting_rules:function(){var i=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=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",t.Recur.numericDayToIcalDay(i))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)},setup_defaults:function(i,n,r){var o=a._indexMap[i],s=a._expandMap[this.rule.freq][o];return s!=a.CONTRACT&&(i in this.by_data||(this.by_data[i]=[r]),this.rule.freq!=n)?this.by_data[i][0]:r},toJSON:function(){var i=Object.create(null);return i.initialized=this.initialized,i.rule=this.rule.toJSON(),i.dtstart=this.dtstart.toJSON(),i.by_data=this.by_data,i.days=this.days,i.last=this.last.toJSON(),i.by_indices=this.by_indices,i.occurrence_number=this.occurrence_number,i}},a._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},a._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]},a.UNKNOWN=0,a.CONTRACT=1,a.EXPAND=2,a.ILLEGAL=3,a}(),t.RecurExpansion=function(){function a(o){return t.helpers.formatClassType(o,t.Time)}function i(o,s){return o.compare(s)}function n(o){return o.hasProperty("rdate")||o.hasProperty("rrule")||o.hasProperty("recurrence-id")}function r(o){this.ruleDates=[],this.exDates=[],this.fromData(o)}return r.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(o){var s=t.helpers.formatClassType(o.dtstart,t.Time);if(s)this.dtstart=s;else throw new Error(".dtstart (ICAL.Time) must be given");if(o.component)this._init(o.component);else{if(this.last=a(o.last)||s.clone(),!o.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=o.ruleIterators.map(function(l){return t.helpers.formatClassType(l,t.RecurIterator)}),this.ruleDateInc=o.ruleDateInc,this.exDateInc=o.exDateInc,o.ruleDates&&(this.ruleDates=o.ruleDates.map(a),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.exDates&&(this.exDates=o.exDates.map(a),this.exDate=this.exDates[this.exDateInc]),typeof o.complete<"u"&&(this.complete=o.complete)}},next:function(){for(var o,s,l,d=500,u=0;;){if(u++>d)throw new Error("max tries have occured, rule may be impossible to forfill.");if(s=this.ruleDate,o=this._nextRecurrenceIter(this.last),!s&&!o){this.complete=!0;break}if((!s||o&&s.compare(o.last)>0)&&(s=o.last.clone(),o.next()),this.ruleDate===s&&this._nextRuleDay(),this.last=s,this.exDate&&(l=this.exDate.compare(this.last),l<0&&this._nextExDay(),l===0)){this._nextExDay();continue}return this.last}},toJSON:function(){function o(l){return l.toJSON()}var s=Object.create(null);return s.ruleIterators=this.ruleIterators.map(o),this.ruleDates&&(s.ruleDates=this.ruleDates.map(o)),this.exDates&&(s.exDates=this.exDates.map(o)),s.ruleDateInc=this.ruleDateInc,s.exDateInc=this.exDateInc,s.last=this.last.toJSON(),s.dtstart=this.dtstart.toJSON(),s.complete=this.complete,s},_extractDates:function(o,s){function l(_){h=t.helpers.binsearchInsert(d,_,i),d.splice(h,0,_)}for(var d=[],u=o.getAllProperties(s),c=u.length,f=0,h;f0)&&(c=l)}return c}},r}(),t.Event=function(){function a(n,r){n instanceof t.Component||(r=n,n=null),n?this.component=n:this.component=new t.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(o){o.hasProperty("recurrence-id")&&this.relateException(o)},this)}a.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(n){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(n instanceof t.Component&&(n=new t.Event(n)),this.strictExceptions&&n.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var r=n.recurrenceId.toString();if(this.exceptions[r]=n,n.modifiesFuture()){var o=[n.recurrenceId.toUnixTime(),r],s=t.helpers.binsearchInsert(this.rangeExceptions,o,i);this.rangeExceptions.splice(s,0,o)}},modifiesFuture:function(){if(!this.component.hasProperty("recurrence-id"))return!1;var n=this.component.getFirstProperty("recurrence-id").getParameter("range");return n===this.THISANDFUTURE},findRangeException:function(n){if(!this.rangeExceptions.length)return null;var r=n.toUnixTime(),o=t.helpers.binsearchInsert(this.rangeExceptions,[r],i);if(o-=1,o<0)return null;var s=this.rangeExceptions[o];return rr[0]?1:r[0]>n[0]?-1:0}return a}(),t.ComponentParser=function(){function a(i){typeof i>"u"&&(i={});var n;for(n in i)i.hasOwnProperty(n)&&(this[n]=i[n])}return a.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(i){},ontimezone:function(i){},onevent:function(i){},process:function(i){typeof i=="string"&&(i=t.parse(i)),i instanceof t.Component||(i=new t.Component(i));for(var n=i.getAllSubcomponents(),r=0,o=n.length,s;r0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}isMultiValue(){return Array.isArray(this._value)}clone(){const t=new this.constructor(this._name);return this.isMultiValue()?t.value=this._value.slice():t.value=this._value,t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Yt extends Ao(yo(class{})){constructor(t){if(new.target===Yt)throw new TypeError("Cannot instantiate abstract class AbstractValue");super(),this._innerValue=t}toICALJs(){return this._innerValue}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class pt extends Yt{get rawValue(){return this._innerValue.value}set rawValue(t){this._modifyContent(),this._innerValue.value=t}get value(){return this._innerValue.decodeValue()}set value(t){this._modifyContent(),this._innerValue.setEncodedValue(t)}clone(){return pt.fromRawValue(this._innerValue.value)}static fromICALJs(t){return new pt(t)}static fromRawValue(t){const a=new me.Binary(t);return pt.fromICALJs(a)}static fromDecodedValue(t){const a=new me.Binary;return a.setEncodedValue(t),pt.fromICALJs(a)}}class Lt extends Yt{get weeks(){return this._innerValue.weeks}set weeks(t){if(this._modifyContent(),t<0)throw new TypeError("Weeks cannot be negative, use isNegative instead");this._innerValue.weeks=t}get days(){return this._innerValue.days}set days(t){if(this._modifyContent(),t<0)throw new TypeError("Days cannot be negative, use isNegative instead");this._innerValue.days=t}get hours(){return this._innerValue.hours}set hours(t){if(this._modifyContent(),t<0)throw new TypeError("Hours cannot be negative, use isNegative instead");this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){if(this._modifyContent(),t<0)throw new TypeError("Minutes cannot be negative, use isNegative instead");this._innerValue.minutes=t}get seconds(){return this._innerValue.seconds}set seconds(t){if(this._modifyContent(),t<0)throw new TypeError("Seconds cannot be negative, use isNegative instead");this._innerValue.seconds=t}get isNegative(){return this._innerValue.isNegative}set isNegative(t){this._modifyContent(),this._innerValue.isNegative=!!t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}addDuration(t){this._modifyContent(),this.totalSeconds+=t.totalSeconds,this._innerValue.normalize()}subtractDuration(t){this._modifyContent(),this.totalSeconds-=t.totalSeconds,this._innerValue.normalize()}clone(){return Lt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Lt(t)}static fromSeconds(t){const a=me.Duration.fromSeconds(t);return new Lt(a)}static fromData(t){const a=me.Duration.fromData(t);return new Lt(a)}}class Te extends Yt{get year(){return this._innerValue.year}set year(t){this._modifyContent(),this._innerValue.year=t}get month(){return this._innerValue.month}set month(t){if(this._modifyContent(),t<1||t>12)throw new TypeError("Month out of range");this._innerValue.month=t}get day(){return this._innerValue.day}set day(t){if(this._modifyContent(),t<1||t>31)throw new TypeError("Day out of range");this._innerValue.day=t}get hour(){return this._innerValue.hour}set hour(t){if(this._modifyContent(),t<0||t>23)throw new TypeError("Hour out of range");this._innerValue.hour=t}get minute(){return this._innerValue.minute}set minute(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Minute out of range");this._innerValue.minute=t}get second(){return this._innerValue.second}set second(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Second out of range");this._innerValue.second=t}get timezoneId(){return this._innerValue.zone.tzid&&this._innerValue.zone.tzid!=="floating"&&this._innerValue.zone.tzid==="UTC"?this._innerValue.zone.tzid:this._innerValue.timezone?this._innerValue.timezone:this._innerValue.zone.tzid||null}get isDate(){return this._innerValue.isDate}set isDate(t){this._modifyContent(),this._innerValue.isDate=!!t,t&&(this._innerValue.hour=0,this._innerValue.minute=0,this._innerValue.second=0)}get unixTime(){return this._innerValue.toUnixTime()}get jsDate(){return this._innerValue.toJSDate()}addDuration(t){this._innerValue.addDuration(t.toICALJs())}subtractDateWithoutTimezone(t){const a=this._innerValue.subtractDate(t.toICALJs());return Lt.fromICALJs(a)}subtractDateWithTimezone(t){const a=this._innerValue.subtractDateTz(t.toICALJs());return Lt.fromICALJs(a)}compare(t){return this._innerValue.compare(t.toICALJs())}compareDateOnlyInGivenTimezone(t,a){return this._innerValue.compareDateOnlyTz(t.toICALJs(),a.toICALTimezone())}getInTimezone(t){const a=this._innerValue.convertToZone(t.toICALTimezone());return Te.fromICALJs(a)}getICALTimezone(){return this._innerValue.zone}getInICALTimezone(t){const a=this._innerValue.convertToZone(t);return Te.fromICALJs(a)}getInUTC(){const t=this._innerValue.convertToZone(me.Timezone.utcTimezone);return Te.fromICALJs(t)}silentlyReplaceTimezone(t){this._modify(),this._innerValue=new me.Time({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate,timezone:t})}replaceTimezone(t){this._modifyContent(),this._innerValue=me.Time.fromData({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate},t.toICALTimezone())}utcOffset(){return this._innerValue.utcOffset()}isFloatingTime(){return this._innerValue.zone.tzid==="floating"}clone(){return Te.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Te(t)}static fromJSDate(t,a=!1){const i=me.Time.fromJSDate(t,a);return Te.fromICALJs(i)}static fromData(t,a){const i=me.Time.fromData(t,a?a.toICALTimezone():void 0);return Te.fromICALJs(i)}}Te.SUNDAY=me.Time.SUNDAY,Te.MONDAY=me.Time.MONDAY,Te.TUESDAY=me.Time.TUESDAY,Te.WEDNESDAY=me.Time.WEDNESDAY,Te.THURSDAY=me.Time.THURSDAY,Te.FRIDAY=me.Time.FRIDAY,Te.SATURDAY=me.Time.SATURDAY,Te.DEFAULT_WEEK_START=Te.MONDAY;class Tt extends Yt{constructor(...t){super(...t),this._start=Te.fromICALJs(this._innerValue.start),this._end=null,this._duration=null}get start(){return this._start}set start(t){this._modifyContent(),this._start=t,this._innerValue.start=t.toICALJs()}get end(){return this._end||(this._duration&&(this._duration.lock(),this._duration=null),this._innerValue.end=this._innerValue.getEnd(),this._end=Te.fromICALJs(this._innerValue.end),this._innerValue.duration=null,this.isLocked()&&this._end.lock()),this._end}set end(t){this._modifyContent(),this._innerValue.duration=null,this._innerValue.end=t.toICALJs(),this._end=t}get duration(){return this._duration||(this._end&&(this._end.lock(),this._end=null),this._innerValue.duration=this._innerValue.getDuration(),this._duration=Lt.fromICALJs(this._innerValue.duration),this._innerValue.end=null,this.isLocked()&&this._duration.lock()),this._duration}set duration(t){this._modifyContent(),this._innerValue.end=null,this._innerValue.duration=t.toICALJs(),this._duration=t}lock(){super.lock(),this.start.lock(),this._end&&this._end.lock(),this._duration&&this._duration.lock()}unlock(){super.unlock(),this.start.unlock(),this._end&&this._end.unlock(),this._duration&&this._duration.unlock()}clone(){return Tt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Tt(t)}static fromDataWithEnd(t){const a=me.Period.fromData({start:t.start.toICALJs(),end:t.end.toICALJs()});return Tt.fromICALJs(a)}static fromDataWithDuration(t){const a=me.Period.fromData({start:t.start.toICALJs(),duration:t.duration.toICALJs()});return Tt.fromICALJs(a)}}const ZE=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Pn extends Yt{constructor(t,a){super(t),this._until=a}get interval(){return this._innerValue.interval}set interval(t){this._modifyContent(),this._innerValue.interval=parseInt(t,10)}get weekStart(){return this._innerValue.wkst}set weekStart(t){if(this._modifyContent(),tTe.SATURDAY)throw new TypeError("Weekstart out of range");this._innerValue.wkst=t}get until(){return!this._until&&this._innerValue.until&&(this._until=Te.fromICALJs(this._innerValue.until)),this._until}set until(t){this._modifyContent(),this._until&&this._until.lock(),this._until=t,this._innerValue.count=null,this._innerValue.until=t.toICALJs()}get count(){return this._innerValue.count}set count(t){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=parseInt(t,10)}get frequency(){return this._innerValue.freq}set frequency(t){if(this._modifyContent(),!ZE.includes(t))throw new TypeError("Unknown frequency");this._innerValue.freq=t}setToInfinite(){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=null}isFinite(){return this._innerValue.isFinite()}isByCount(){return this._innerValue.isByCount()}addComponent(t,a){this._modifyContent(),this._innerValue.addComponent(t,a)}setComponent(t,a){this._modifyContent(),a.length===0?delete this._innerValue.parts[t.toUpperCase()]:this._innerValue.setComponent(t,a)}removeComponent(t){delete this._innerValue.parts[Ce(t)]}getComponent(t){return this._innerValue.getComponent(t)}isRuleValid(){return!0}lock(){super.lock(),this._until&&this._until.lock()}unlock(){super.unlock(),this._until&&this._until.unlock()}clone(){return Pn.fromICALJs(this._innerValue.clone())}static fromICALJs(t,a=null){return new Pn(t,a)}static fromData(t){let a=null;t.until&&(a=t.until,t.until=t.until.toICALJs());const i=me.Recur.fromData(t);return Pn.fromICALJs(i,a)}}class Hi extends Yt{get hours(){return this._innerValue.hours}set hours(t){this._modifyContent(),this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){this._modifyContent(),this._innerValue.minutes=t}get factor(){return this._innerValue.factor}set factor(t){if(this._modifyContent(),t!==1&&t!==-1)throw new TypeError("Factor may only be set to 1 or -1");this._innerValue.factor=t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}clone(){return Hi.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Hi(t)}static fromData(t){const a=new me.UtcOffset;return a.fromData(t),Hi.fromICALJs(a)}static fromSeconds(t){const a=me.UtcOffset.fromSeconds(t);return Hi.fromICALJs(a)}}class IE extends Error{}function jE(e){switch(ra(e)){case"binary":return pt;case"date":case"date-time":return Te;case"duration":return Lt;case"period":return Tt;case"recur":return Pn;case"utc-offset":return Hi;default:throw new IE}}class Dt extends Ao(yo(class{})){constructor(t,a=null,i=[],n=null,r=null){super(),this._name=Ce(t),this._value=a,this._parameters=new Map,this._root=n,this._parent=r,this._setParametersFromConstructor(i),a instanceof Yt&&a.subscribe(()=>this._notifySubscribers())}get name(){return this._name}get value(){return this._value}set value(t){this._modifyContent(),this._value=t,t instanceof Yt&&t.subscribe(()=>this._notifySubscribers())}get root(){return this._root}set root(t){this._modify(),this._root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstValue(){if(this.isMultiValue()){if(this.value.length>0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}addValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");this._modifyContent(),this.value.push(t)}hasValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");return this.value.includes(t)}removeValue(t){if(!this.hasValue(t))return;this._modifyContent();const a=this.value.indexOf(t);this.value.splice(a,1)}setParameter(t){this._modify(),this._parameters.set(t.name,t),t.subscribe(()=>this._notifySubscribers())}getParameter(t){return this._parameters.get(Ce(t))}*getParametersIterator(){yield*this._parameters.values()}getParameterFirstValue(t){const a=this.getParameter(t);return a instanceof xn?a.isMultiValue()?a.value[0]:a.value:null}hasParameter(t){return this._parameters.has(Ce(t))}deleteParameter(t){this._modify(),this._parameters.delete(Ce(t))}updateParameterIfExist(t,a){if(this._modify(),this.hasParameter(t)){const i=this.getParameter(t);i.value=a}else{const i=new xn(Ce(t),a);this.setParameter(i)}}isMultiValue(){return Array.isArray(this._value)}isDecoratedValue(){return this.isMultiValue()?this._value[0]instanceof Yt:this._value instanceof Yt}lock(){super.lock();for(const t of this.getParametersIterator())t.lock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.lock()}unlock(){super.unlock();for(const t of this.getParametersIterator())t.unlock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.unlock()}clone(){const t=[];for(const a of this.getParametersIterator())t.push(a.clone());return new this.constructor(this.name,this._cloneValue(),t,this.root,this.parent)}_cloneValue(){return this.isDecoratedValue()?this.isMultiValue()?this._value.map(t=>t.clone()):this._value.clone():this.isMultiValue()?this._value.slice():this._value}_setParametersFromConstructor(t){t.forEach(a=>{a instanceof xn||(a=new xn(a[0],a[1])),this.setParameter(a)})}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Property))throw new kf;let n;if(t.isDecorated){const o=jE(t.getFirstValue().icaltype);t.isMultiValue?n=t.getValues().map(s=>o.fromICALJs(s)):n=o.fromICALJs(t.getFirstValue())}else t.isMultiValue?n=t.getValues():n=t.getFirstValue();const r=[];return Object.keys(Object.assign({},t.toJSON()[1])).forEach(o=>{Ce(o)!=="TZID"&&r.push([o,t.getParameter(o)])}),new this(t.name,n,r,a,i)}toICALJs(){const t=du(ra(this.name));this.isMultiValue()?this.isDecoratedValue()?t.setValues(this.value.map(i=>i.toICALJs())):t.setValues(this.value):this.isDecoratedValue()?t.setValue(this.value.toICALJs()):t.setValue(this.value);for(const i of this.getParametersIterator())t.setParameter(ra(i.name),i.value);const a=this.getFirstValue();return a instanceof Te&&a.timezoneId!=="floating"&&a.timezoneId!=="UTC"&&!a.isDate&&t.setParameter("tzid",a.timezoneId),t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Si extends Dt{get formatType(){return this.getParameterFirstValue("FMTTYPE")}set formatType(t){this.updateParameterIfExist("FMTTYPE",t)}get uri(){return this._value instanceof pt?null:this._value}set uri(t){this.value=t}get encoding(){return this._value instanceof pt?"BASE64":null}get data(){return this._value instanceof pt?this._value.value:null}set data(t){this.value instanceof pt?this.value.value=t:this.value=pt.fromDecodedValue(t)}toICALJs(){const t=super.toICALJs();return this._value instanceof pt&&this.getParameterFirstValue("ENCODING")!=="BASE64"&&t.setParameter("ENCODING","BASE64"),t}static fromData(t,a=null){const i=pt.fromDecodedValue(t),n=new Si("ATTACH",i);return a&&(n.formatType=a),n}static fromLink(t,a=null){const i=new Si("ATTACH",t);return a&&(i.formatType=a),i}}class na extends Dt{get role(){const t=["CHAIR","REQ-PARTICIPANT","OPT-PARTICIPANT","NON-PARTICIPANT"],a="REQ-PARTICIPANT";if(this.hasParameter("ROLE")){const i=this.getParameterFirstValue("ROLE");if(t.includes(i))return i}return a}set role(t){this.updateParameterIfExist("ROLE",t)}get userType(){const t=["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"];if(this.hasParameter("CUTYPE")){const a=this.getParameterFirstValue("CUTYPE");return t.includes(a)?a:"UNKNOWN"}else return"INDIVIDUAL"}set userType(t){this.updateParameterIfExist("CUTYPE",t)}get rsvp(){if(this.hasParameter("RSVP")){const t=this.getParameterFirstValue("RSVP");return Ce(t)==="TRUE"}else return!1}set rsvp(t){this.updateParameterIfExist("RSVP",t?"TRUE":"FALSE")}get commonName(){return this.getParameterFirstValue("CN")}set commonName(t){this.updateParameterIfExist("CN",t)}get participationStatus(){let t;this.parent?t=this.parent.name:t="VEVENT";const a={VEVENT:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED"],VJOURNAL:["NEEDS-ACTION","ACCEPTED","DECLINED"],VTODO:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"]};if(this.hasParameter("PARTSTAT")){const i=this.getParameterFirstValue("PARTSTAT");return a[t].includes(i)?i:"NEEDS-ACTION"}else return"NEEDS-ACTION"}set participationStatus(t){this.updateParameterIfExist("PARTSTAT",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}get email(){return this.value}set email(t){this.value=Y0(t,"mailto:")}get member(){return this.getParameter("MEMBER")?.value??null}set member(t){t=t.map(a=>Y0(a,"mailto:")),this.updateParameterIfExist("MEMBER",t)}isOrganizer(){return this._name==="ORGANIZER"}static fromNameAndEMail(t,a,i=!1){const n=i?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(n,a,[["CN",t]])}static fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,o=!1){const s=o?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(s,a,[["CN",t],["ROLE",i],["CUTYPE",n],["RSVP",r?"TRUE":"FALSE"]])}}me.design.icalendar.property.conference={defaultType:"uri"},me.design.icalendar.param.feature={valueType:"cal-address",multiValue:","};class b0 extends Dt{*getFeatureIterator(){this.hasParameter("FEATURE")&&(yield*this.getParameter("FEATURE").getValueIterator())}listAllFeatures(){return this.hasParameter("FEATURE")?this.getParameter("FEATURE").value.slice():[]}addFeature(t){if(this._modify(),!this.hasParameter("FEATURE"))this.updateParameterIfExist("FEATURE",[t]);else{if(this.hasFeature(t))return;this.getParameter("FEATURE").value.push(t)}}removeFeature(t){if(this._modify(),!this.hasFeature(t))return;const a=this.getParameter("FEATURE"),i=a.value.indexOf(t);a.value.splice(i,1)}clearAllFeatures(){this.deleteParameter("FEATURE")}hasFeature(t){if(!this.hasParameter("FEATURE"))return!1;const a=this.getParameter("FEATURE");return Array.isArray(a.value)?a.value.includes(t):!1}get label(){return this.getParameterFirstValue("LABEL")}set label(t){this.updateParameterIfExist("LABEL",t)}get uri(){return this.value}set uri(t){this.value=t}toICALJs(){const t=super.toICALJs();return t.setParameter("value","URI"),t}static fromURILabelAndFeatures(t,a=null,i=null){const n=new b0("CONFERENCE",t);return a&&n.updateParameterIfExist("label",a),i&&n.updateParameterIfExist("feature",i),n}}class cu extends Dt{get type(){const t=["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],a="BUSY";if(this.hasParameter("FBTYPE")){const i=this.getParameterFirstValue("FBTYPE");if(t.includes(i))return i}return a}set type(t){this.updateParameterIfExist("FBTYPE",t)}static fromPeriodAndType(t,a){return new cu("FREEBUSY",t,[["fbtype",a]])}}class y0 extends Dt{constructor(t,a=[0,0],i=[],n=null,r=null){super(t,a,i,n,r)}get latitude(){return this._value[0]}set latitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[0]=t}get longitude(){return this._value[1]}set longitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[1]=t}toICALJs(){const t=du(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromPosition(t,a){return new y0("GEO",[t,a])}}class un extends Si{get display(){return this.getParameterFirstValue("DISPLAY")||"BADGE"}set display(t){this.updateParameterIfExist("DISPLAY",t)}static fromData(t,a=null,i=null){const n=pt.fromDecodedValue(t),r=new un("IMAGE",n);return a&&(r.display=a),i&&(r.formatType=i),r}static fromLink(t,a=null,i=null){const n=new un("IMAGE",t);return a&&(n.display=a),i&&(n.formatType=i),n}}class So extends Dt{get relationType(){const t=["PARENT","CHILD","SIBLING"],a="PARENT";if(this.hasParameter("RELTYPE")){const i=this.getParameterFirstValue("RELTYPE");return t.includes(i)?i:a}else return a}set relationType(t){this.updateParameterIfExist("RELTYPE",t)}get relatedId(){return this.value}set relatedId(t){this.value=t}static fromRelTypeAndId(t,a){return new So("RELATED-TO",a,[["RELTYPE",t]])}}class ke extends Dt{constructor(t,a=["1","Pending"],i=[],n=null,r=null){super(t,a,i,n,r)}get statusCode(){return parseFloat(this.value[0])}set statusCode(t){this._modifyContent(),this.value[0]=t.toString(),t===Math.floor(t)&&(this.value[0]+=".0")}get statusMessage(){return this.value[1]}set statusMessage(t){this._modifyContent(),this.value[1]=t}get exceptionData(){return this.value[2]?this.value[2]:null}set exceptionData(t){this._modifyContent(),this.value[2]=t}isPending(){return this.statusCode>=1&&this.statusCode<2}isSuccessful(){return this.statusCode>=2&&this.statusCode<3}isClientError(){return this.statusCode>=3&&this.statusCode<4}isSchedulingError(){return this.statusCode>=4&&this.statusCode<5}toICALJs(){const t=du(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromCodeAndMessage(t,a){return new ke("REQUEST-STATUS",[t.toString(),a])}}ke.SUCCESS=[2,"Success"],ke.SUCCESS_FALLBACK=[2.1,"Success, but fallback taken on one or more property values."],ke.SUCCESS_PROP_IGNORED=[2.2,"Success; invalid property ignored."],ke.SUCCESS_PROPPARAM_IGNORED=[2.3,"Success; invalid property parameter ignored."],ke.SUCCESS_NONSTANDARD_PROP_IGNORED=[2.4,"Success; unknown, non-standard property ignored."],ke.SUCCESS_NONSTANDARD_PROPPARAM_IGNORED=[2.5,"Success; unknown, non-standard property value ignored."],ke.SUCCESS_COMP_IGNORED=[2.6,"Success; invalid calendar component ignored."],ke.SUCCESS_FORWARDED=[2.7,"Success; request forwarded to Calendar User."],ke.SUCCESS_REPEATING_IGNORED=[2.8,"Success; repeating event ignored. Scheduled as a single component."],ke.SUCCESS_TRUNCATED_END=[2.9,"Success; truncated end date time to date boundary."],ke.SUCCESS_REPEATING_VTODO_IGNORED=[2.1,"Success; repeating VTODO ignored. Scheduled as a single VTODO."],ke.SUCCESS_UNBOUND_RRULE_CLIPPED=[2.11,"Success; unbounded RRULE clipped at some finite number of instances."],ke.CLIENT_INVALID_PROPNAME=[3,"Invalid property name."],ke.CLIENT_INVALID_PROPVALUE=[3.1,"Invalid property value."],ke.CLIENT_INVALID_PROPPARAM=[3.2,"Invalid property parameter."],ke.CLIENT_INVALID_PROPPARAMVALUE=[3.3,"Invalid property parameter value."],ke.CLIENT_INVALUD_CALENDAR_COMP_SEQ=[3.4,"Invalid calendar component sequence."],ke.CLIENT_INVALID_DATE_TIME=[3.5,"Invalid date or time."],ke.CLIENT_INVALID_RRULE=[3.6,"Invalid rule."],ke.CLIENT_INVALID_CU=[3.7,"Invalid Calendar User."],ke.CLIENT_NO_AUTHORITY=[3.8,"No authority."],ke.CLIENT_UNSUPPORTED_VERSION=[3.9,"Unsupported version."],ke.CLIENT_TOO_LARGE=[3.1,"Request entity too large."],ke.CLIENT_REQUIRED_COMP_OR_PROP_MISSING=[3.11,"Required component or property missing."],ke.CLIENT_UNKNOWN_COMP_OR_PROP=[3.12,"Unknown component or property found."],ke.CLIENT_UNSUPPORTED_COMP_OR_PROP=[3.13,"Unsupported component or property found."],ke.CLIENT_UNSUPPORTED_CAPABILITY=[3.14,"Unsupported capability."],ke.SCHEDULING_EVENT_CONFLICT=[4,"Event conflict. Date/time is busy."],ke.SERVER_REQUEST_NOT_SUPPORTED=[5,"Request not supported."],ke.SERVER_SERVICE_UNAVAILABLE=[5.1,"Service unavailable."],ke.SERVER_INVALID_CALENDAR_SERVICE=[5.2,"Invalid calendar service."],ke.SERVER_NO_SCHEDULING_FOR_USER=[5.3,"No scheduling support for user."];class Br extends Dt{get alternateText(){return this.getParameterFirstValue("ALTREP")}set alternateText(t){this.updateParameterIfExist("ALTREP",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}}class Wa extends Dt{get related(){return this.hasParameter("RELATED")?this.getParameterFirstValue("RELATED"):"START"}set related(t){this.updateParameterIfExist("RELATED",t)}get value(){return super.value}set value(t){super.value=t,t instanceof Te&&(this.deleteParameter("RELATED"),super.value=t.getInUTC())}isRelative(){return this.getFirstValue()instanceof Lt}static fromAbsolute(t){return new Wa("TRIGGER",t)}static fromRelativeAndRelated(t,a=!0){return new Wa("TRIGGER",t,[["RELATED",a?"START":"END"]])}}function rs(e){switch(Ce(e)){case"ATTACH":return Si;case"ATTENDEE":case"ORGANIZER":return na;case"CONFERENCE":return b0;case"FREEBUSY":return cu;case"GEO":return y0;case"IMAGE":return un;case"RELATED-TO":return So;case"REQUEST-STATUS":return ke;case"TRIGGER":return Wa;case"COMMENT":case"CONTACT":case"DESCRIPTION":case"LOCATION":case"SUMMARY":return Br;default:return Dt}}class Na extends Ao(yo(class{})){constructor(t,a=[],i=[],n=null,r=null){super(),this._name=Ce(t),this._properties=new Map,this._components=new Map,this._root=n,this._parent=r,this._setPropertiesFromConstructor(a),this._setComponentsFromConstructor(i)}get name(){return this._name}get root(){return this._root}set root(t){this._modify(),this._root=t;for(const a of this.getPropertyIterator())a.root=t;for(const a of this.getComponentIterator())a.root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstProperty(t){return this._properties.has(Ce(t))?this._properties.get(Ce(t))[0]:null}getFirstPropertyFirstValue(t){const a=this.getFirstProperty(t);return a?a.getFirstValue():null}updatePropertyWithValue(t,a){this._modify();const i=this.getFirstProperty(t);if(i)i.value=a;else{const n=rs(t),r=new n(t,a,[],this,this.root);this.addProperty(r)}}*getPropertyIterator(t=null){if(t){if(!this.hasProperty(t))return;yield*this._properties.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._properties.keys())yield*this.getPropertyIterator(a)}*_getAllOfPropertyByLang(t,a){for(const i of this.getPropertyIterator(t))i.getParameterFirstValue("LANGUAGE")===a&&(yield i)}_getFirstOfPropertyByLang(t,a){return this._getAllOfPropertyByLang(t,a).next().value||null}addProperty(t){if(this._modify(),t.root=this.root,t.parent=this,this._properties.has(t.name)){const a=this._properties.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._properties.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasProperty(t){return this._properties.has(Ce(t))}deleteProperty(t){if(this._modify(),!this._properties.has(t.name))return!1;const a=this._properties.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._properties.delete(t.name):a.splice(i,1),!0)}deleteAllProperties(t){return this._modify(),this._properties.delete(Ce(t))}getFirstComponent(t){return this.hasComponent(t)?this._components.get(Ce(t))[0]:null}*getComponentIterator(t){if(t){if(!this.hasComponent(t))return;yield*this._components.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._components.keys())yield*this.getComponentIterator(a)}addComponent(t){if(this._modify(),t.root=this.root,t.parent=this,this._components.has(t.name)){const a=this._components.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._components.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasComponent(t){return this._components.has(Ce(t))}deleteComponent(t){if(this._modify(),!this._components.has(t.name))return!1;const a=this._components.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._components.delete(t.name):a.splice(i,1),!0)}deleteAllComponents(t){return this._modify(),this._components.delete(Ce(t))}lock(){super.lock();for(const t of this.getPropertyIterator())t.lock();for(const t of this.getComponentIterator())t.lock()}unlock(){super.unlock();for(const t of this.getPropertyIterator())t.unlock();for(const t of this.getComponentIterator())t.unlock()}clone(){const t=[];for(const i of this.getPropertyIterator())t.push(i.clone());const a=[];for(const i of this.getComponentIterator())a.push(i.clone());return new this.constructor(this.name,t,a,this.root,this.parent)}_setPropertiesFromConstructor(t){for(let a of t){if(Array.isArray(a)){const i=rs(a[0]);a=new i(a[0],a[1])}this.addProperty(a)}}_setComponentsFromConstructor(t){for(const a of t)this.addComponent(a)}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Component))throw new kf;const n=t.name,r=new this(n,[],[],a,i);for(const o of t.getAllProperties()){const s=rs(o.name).fromICALJs(o,a,r);r.addProperty(s)}for(const o of t.getAllSubcomponents()){const s=this._getConstructorForComponentName(o.name).fromICALJs(o,a,r);r.addComponent(s)}return r}static _getConstructorForComponentName(t){return Na}toICALJs(){const t=LE(ra(this.name));for(const a of this.getPropertyIterator())t.addProperty(a.toICALJs());for(const a of this.getComponentIterator())t.addSubcomponent(a.toICALJs());return t}}function ve(e,t,a=!0){t=GE(t),Object.defineProperty(e,t.name,{get(){const i=this.getFirstPropertyFirstValue(t.iCalendarName);return i?Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i)?t.unknownValue:i:t.defaultValue},set(i){if(this._modify(),i===null){this.deleteAllProperties(t.iCalendarName);return}if(Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i))throw new TypeError("Illegal value");this.updatePropertyWithValue(t.iCalendarName,i)}})}function xt(e,t){t=vf(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getPropertyIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteProperty(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllProperties(t.iCalendarName)}}function hu(e,t){t=vf(t),e["get"+ot(t.name)+"Iterator"]=function*(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))yield*i.getValueIterator()},e["get"+ot(t.name)+"List"]=function(a=null){return Array.from(this["get"+ot(t.name)+"Iterator"](a))},e["add"+ot(t.name)]=function(a,i=null){const n=this._getFirstOfPropertyByLang(t.iCalendarName,i);if(n)n.addValue(a);else{const r=new Dt(t.iCalendarName,[a]);if(i){const o=new xn("LANGUAGE",i);r.setParameter(o)}this.addProperty(r)}},e["remove"+ot(t.name)]=function(a,i=null){for(const n of this._getAllOfPropertyByLang(t.iCalendarName,i))if(n.isMultiValue()&&n.hasValue(a))return n.value.length===1?(this.deleteProperty(n),!0):(n.removeValue(a),!0);return!1},e["clearAll"+ot(t.pluralName)]=function(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))this.deleteProperty(i)}}function PE(e,t){t=UE(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getComponentIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteComponent(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllComponents(t.iCalendarName)}}function GE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s",allowedValues:null,defaultValue:null,unknownValue:null},e)}function vf(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s"},e)}function UE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:"V"+Ce(e.name),pluralName:e.name+"s"},e)}function Oa(){return new Date}class qE extends Error{}class HE{constructor(t){this._masterItem=t,this._recurrenceExceptionItems=new Map,this._rangeRecurrenceExceptionItemsIndex=[],this._rangeRecurrenceExceptionItemsDiffCache=new Map,this._rangeRecurrenceExceptionItems=new Map}get masterItem(){return this._masterItem}set masterItem(t){this._masterItem=t}*getRecurrenceExceptionIterator(){yield*this._recurrenceExceptionItems.values()}getRecurrenceExceptionList(){return Array.from(this.getRecurrenceExceptionIterator())}hasRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.has(t)}getRecurrenceException(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.get(t)||null}hasRangeRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsIndex.length===0?!1:this._rangeRecurrenceExceptionItemsIndex[0]n-r);if(a===0)return null;const i=this._rangeRecurrenceExceptionItemsIndex[a-1];return this._rangeRecurrenceExceptionItems.get(i)}getRangeRecurrenceExceptionDiff(t){if(t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsDiffCache.has(t))return this._rangeRecurrenceExceptionItemsDiffCache.get(t);const a=this.getRangeRecurrenceExceptionForId(t);if(!a)return null;const i=a.recurrenceId,n=a.startDate.subtractDateWithTimezone(i);return n.lock(),this._rangeRecurrenceExceptionItemsDiffCache.set(t,n),n}relateRecurrenceException(t){this._modify();const a=this._getRecurrenceIdKey(t);if(this._recurrenceExceptionItems.set(a,t),t.modifiesFuture()){this._rangeRecurrenceExceptionItems.set(a,t);const i=me.helpers.binsearchInsert(this._rangeRecurrenceExceptionItemsIndex,a,(n,r)=>n-r);this._rangeRecurrenceExceptionItemsIndex.splice(i,0,a)}t.recurrenceManager=this}removeRecurrenceException(t){const a=this._getRecurrenceIdKey(t);this.removeRecurrenceExceptionByRecurrenceId(a)}removeRecurrenceExceptionByRecurrenceId(t){this._modify(),this._recurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItemsDiffCache.delete(t);const a=this._rangeRecurrenceExceptionItemsIndex.indexOf(t);a!==-1&&this._rangeRecurrenceExceptionItemsIndex.splice(a,1)}_getRecurrenceIdKey(t){return t.recurrenceId.unixTime}*getRecurrenceRuleIterator(){for(const t of this._masterItem.getPropertyIterator("RRULE"))yield t.getFirstValue()}getRecurrenceRuleList(){return Array.from(this.getRecurrenceRuleIterator())}addRecurrenceRule(t){this._modify(),this.resetCache();const a=new Dt("RRULE",t);this._masterItem.addProperty(a)}removeRecurrenceRule(t){this._modify(),this.resetCache();for(const a of this._masterItem.getPropertyIterator("RRULE"))a.getFirstValue()===t&&this._masterItem.deleteProperty(a)}clearAllRecurrenceRules(){this._modify(),this.resetCache(),this._masterItem.deleteAllProperties("RRULE")}*getRecurrenceDateIterator(t=!1,a=null){for(const i of this._getPropertiesForRecurrenceDate(t,a))yield*i.getValueIterator()}listAllRecurrenceDates(t=!1,a=null){return Array.from(this.getRecurrenceDateIterator(t,a))}addRecurrenceDate(t=!1,a){this._modify(),this.resetCache();let i=null;a instanceof Te&&!a.isDate&&(i=a.timezoneId);const n=this._getValueTypeByValue(a),r=this._getPropertiesForRecurrenceDate(t,n,i).next.value;if(r instanceof Dt)r.value.push(a),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE");else{const o=this._getPropertyNameByIsNegative(t),s=new Dt(o,a);this._masterItem.addProperty(s)}}hasRecurrenceDate(t=!1,a){for(let i of this.getRecurrenceDateIterator(t))if(i instanceof Tt&&(i=i.start),i.compare(a)===0)return!0;return!1}getRecurrenceDate(t=!1,a){for(const i of this.getRecurrenceDateIterator(t)){let n=i;if(n instanceof Tt&&(n=n.start),n.compare(a)===0)return i}return null}removeRecurrenceDate(t=!1,a){this._modify(),this.resetCache();const i=this._getValueTypeByValue(a);for(const n of this._getPropertiesForRecurrenceDate(t,i))for(const r of n.getValueIterator())if(a===r){const o=n.value;if(o.length===1){this.masterItem.deleteProperty(n);continue}const s=o.indexOf(a);o.splice(s,1),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE")}}clearAllRecurrenceDates(t=!1,a=null){this._modify(),this.resetCache();for(const i of this._getPropertiesForRecurrenceDate(t,a))this._masterItem.deleteProperty(i)}_getPropertyNameByIsNegative(t){return t?"EXDATE":"RDATE"}_getValueTypeByValue(t){return t instanceof Tt?"PERIOD":t.isDate?"DATE":"DATETIME"}*_getPropertiesForRecurrenceDate(t,a,i=null){const n=this._getPropertyNameByIsNegative(t);for(const r of this._masterItem.getPropertyIterator(n))a===null?yield r:Ce(a)==="PERIOD"&&r.getFirstValue()instanceof Tt?yield r:Ce(a)==="DATE"&&r.getFirstValue().isDate?yield r:Ce(a)==="DATETIME"&&!r.getFirstValue().isDate&&(i===null||r.getFirstValue().timezoneId===i)&&(yield r)}isFinite(){return this.getRecurrenceRuleList().every(t=>t.isFinite())}isEmptyRecurrenceSet(){return this._getRecurExpansionObject().next()===void 0}getOccurrenceAtExactly(t){if(!this.masterItem.isRecurring())return this.masterItem.getReferenceRecurrenceId().compare(t)===0?this.masterItem:null;const a=this._getRecurExpansionObject(),i=t.toICALJs();let n;for(;n=a.next();){if(n.compare(i)===0)return this._getOccurrenceAtRecurrenceId(Te.fromICALJs(n));if(n.compare(i)===1)return null}return null}getClosestOccurrence(t){if(!this.masterItem.isRecurring())return this.masterItem;const a=this._getRecurExpansionObject();t=t.toICALJs();let i=null,n;for(;n=a.next();)if(n.compare(t)===-1)i=n;else{const o=Te.fromICALJs(n);return this._getOccurrenceAtRecurrenceId(o)}const r=Te.fromICALJs(i);return this._getOccurrenceAtRecurrenceId(r)}countAllOccurrencesBetween(t,a){if(!this.masterItem.isRecurring())return typeof this.masterItem.isInTimeFrame=="function"&&!this.masterItem.isInTimeFrame(t,a)?0:1;const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs();let o=0,s;for(;s=i.next();)if(s.compare(n)!==-1){if(s.compare(r)===1)break;o+=1}return o}*getAllOccurrencesBetweenIterator(t,a){if(!this.masterItem.isRecurring()){typeof this.masterItem.isInTimeFrame!="function"&&(yield this.masterItem),this.masterItem.isInTimeFrame(t,a)&&(yield this.masterItem);return}const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs(),o=Array.from(this._recurrenceExceptionItems.keys()),s=Math.max.apply(Math,o);let l;for(;l=i.next();){const d=Te.fromICALJs(l),u=this._getOccurrenceAtRecurrenceId(d);let c=null;switch(Ce(u.name)){case"VEVENT":case"VTODO":c=u.endDate.toICALJs();break;case"VJOURNAL":default:c=l;break}if(c.compare(n)===-1)continue;const f=u.startDate.toICALJs();if((!u.isRecurrenceException()||u.modifiesFuture())&&f.compare(r)===1){if(this._recurrenceExceptionItems.size===0||l.toUnixTime()>s)break;continue}typeof u.isInTimeFrame!="function"&&(yield u),u.isInTimeFrame(t,a)&&(yield u)}}getAllOccurrencesBetween(t,a){return Array.from(this.getAllOccurrencesBetweenIterator(t,a))}updateUID(t){this._masterItem.updatePropertyWithValue("UID",t);for(const a of this.getRecurrenceExceptionIterator())a.updatePropertyWithValue("UID",t)}updateStartDateOfMasterItem(t,a){const i=t.subtractDateWithTimezone(a);for(const n of this.getRecurrenceDateIterator(!0))this.hasRecurrenceDate(!1,n)||n.addDuration(i);for(const n of this.getRecurrenceExceptionIterator())this.hasRecurrenceDate(!1,n.recurrenceId)||(this.removeRecurrenceException(n),n.recurrenceId.addDuration(i),this.relateRecurrenceException(n));for(const n of this.getRecurrenceRuleIterator())n.until&&n.until.addDuration(i)}_getOccurrenceAtRecurrenceId(t){if(this.hasRecurrenceExceptionForId(t)){const a=this.getRecurrenceException(t);return a.canCreateRecurrenceExceptions()?a.forkItem(t):a}else if(this.hasRangeRecurrenceExceptionForId(t)){const a=this.getRangeRecurrenceExceptionForId(t),i=this.getRangeRecurrenceExceptionDiff(t);return a.forkItem(t,i)}else return t.compare(this._masterItem.startDate)===0?this._masterItem.canCreateRecurrenceExceptions()?this._masterItem.forkItem(t):this._masterItem:this._masterItem.forkItem(t)}resetCache(){}_getRecurExpansionObject(){if(this._masterItem.startDate===null)throw new qE;const t=this._masterItem.startDate.toICALJs();let a=t.clone();const i=[];let n;const r=[];let o=null;const s=[],l=!1;for(const c of this.getRecurrenceRuleIterator())i.push(c.toICALJs().iterator(t)),i[i.length-1].next();for(let c of this.getRecurrenceDateIterator()){c instanceof Tt&&(c=c.start),c=c.toICALJs();const f=me.helpers.binsearchInsert(r,c,(h,_)=>h.compare(_));r.splice(f,0,c)}r.length>0&&r[0].compare(t)===-1?(n=0,a=r[0].clone()):(n=me.helpers.binsearchInsert(r,t,(c,f)=>c.compare(f)),o=s[n]);for(let c of this.getRecurrenceDateIterator(!0)){c=c.toICALJs();const f=me.helpers.binsearchInsert(s,c,(h,_)=>h.compare(_));s.splice(f,0,c)}const d=me.helpers.binsearchInsert(s,t,(c,f)=>c.compare(f)),u=s[d];return new me.RecurExpansion({dtstart:t,last:a,ruleIterators:i,ruleDateInc:n,exDateInc:d,ruleDates:r,ruleDate:o,exDates:s,exDate:u,complete:l})}_modify(){if(this._masterItem.isLocked())throw new Sf}}class kt{constructor(t,a){this._timezoneId=null,this._ics=null,this._innerValue=null,this._initialized=!1,t instanceof me.Timezone?(this._innerValue=t,this._initialized=!0):t instanceof me.Component?(this._innerValue=new me.Timezone(t),this._initialized=!0):(this._timezoneId=t,this._ics=a)}get timezoneId(){return this._initialized?this._innerValue.tzid:this._timezoneId}offsetForArray(t,a,i,n,r,o){this._initialize();const s=new me.Time({year:t,month:a,day:i,hour:n,minute:r,second:o,isDate:!1});return this._innerValue.utcOffset(s)}timestampToArray(t){this._initialize();const a=me.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});a.fromUnixTime(Math.floor(t/1e3));const i=a.convertToZone(this._innerValue);return[i.year,i.month,i.day,i.hour,i.minute,i.second]}toICALTimezone(){return this._initialize(),this._innerValue}toICALJs(){return this._initialize(),this._innerValue.component}_initialize(){if(!this._initialized){const t=me.parse(this._ics),a=new me.Component(t);this._innerValue=new me.Timezone(a),this._initialized=!0}}}kt.utc=new kt(me.Timezone.utcTimezone),kt.floating=new kt(me.Timezone.localTimezone);class Kt extends Na{addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this.addProperty(i)}get trigger(){return this.getFirstProperty("TRIGGER")}setTriggerFromAbsolute(t){const a=Wa.fromAbsolute(t);this.deleteAllProperties("TRIGGER"),this.addProperty(a)}setTriggerFromRelative(t,a=!0){const i=Wa.fromRelativeAndRelated(t,a);this.deleteAllProperties("TRIGGER"),this.addProperty(i)}}ve(Kt.prototype,"action"),ve(Kt.prototype,"description"),ve(Kt.prototype,"summary"),ve(Kt.prototype,"duration"),ve(Kt.prototype,"repeat"),ve(Kt.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(Kt.prototype,"attendee");function zE(e){switch(Ce(e)){case"VALARM":return Kt;default:return Na}}class ze extends Na{constructor(...t){super(...t),this._primaryItem=null,this._isExactForkOfPrimary=!1,this._originalRecurrenceId=null,this._recurrenceManager=null,this._dirty=!1,this._significantChange=!1,this._cachedId=null}get primaryItem(){return this._primaryItem}set primaryItem(t){this._modify(),this._primaryItem=t}get isExactForkOfPrimary(){return this._isExactForkOfPrimary}set isExactForkOfPrimary(t){this._isExactForkOfPrimary=t}get originalRecurrenceId(){return this._originalRecurrenceId}set originalRecurrenceId(t){this._originalRecurrenceId=t}get recurrenceManager(){return this._recurrenceManager}set recurrenceManager(t){this._recurrenceManager=t}get masterItem(){return this.recurrenceManager.masterItem}isMasterItem(){return this.masterItem===this}get id(){return this._cachedId?this._cachedId:this.startDate===null?(this._cachedId=encodeURIComponent(this.uid),this._cachedId):(this._cachedId=[encodeURIComponent(this.uid),encodeURIComponent(this.getReferenceRecurrenceId().unixTime.toString())].join("###"),this._cachedId)}get uid(){return this.getFirstPropertyFirstValue("UID")}set uid(t){this._recurrenceManager.updateUID(t)}get startDate(){return this.getFirstPropertyFirstValue("dtstart")}set startDate(t){const a=this.startDate;this.updatePropertyWithValue("dtstart",t),this.isMasterItem()&&this._recurrenceManager.updateStartDateOfMasterItem(t,a)}isPartOfRecurrenceSet(){return this.masterItem.isRecurring()}isRecurring(){return this.hasProperty("RRULE")||this.hasProperty("RDATE")}isRecurrenceException(){return this.hasProperty("RECURRENCE-ID")}modifiesFuture(){return this.isRecurrenceException()?this.getFirstProperty("RECURRENCE-ID").getParameterFirstValue("RANGE")==="THISANDFUTURE":!1}forkItem(t,a=null){const i=this.clone();if(i.recurrenceManager=this.recurrenceManager,i.primaryItem=this,i.getReferenceRecurrenceId().compare(t)===0&&(i.isExactForkOfPrimary=!0),!i.hasProperty("DTSTART"))throw new TypeError("Can't fork item without a DTSTART");const n=i.getFirstPropertyFirstValue("RRULE");if(n?.count){let l=i.recurrenceManager.countAllOccurrencesBetween(i.getReferenceRecurrenceId(),t);l-=1,n.count-=l,n.count<1&&(n.count=1)}if(i.getFirstPropertyFirstValue("DTSTART").timezoneId!==t.timezoneId){const l=i.getFirstPropertyFirstValue("DTSTART").getICALTimezone();t=t.getInICALTimezone(l)}i.originalRecurrenceId=t.clone();const r=i.getFirstPropertyFirstValue("DTSTART");let o=null;if(this._recurrenceManager.hasRecurrenceDate(!1,t)){const l=this._recurrenceManager.getRecurrenceDate(!1,t);l instanceof Tt&&(o=l)}let s;if(i.hasProperty("DTEND")?s=i.getFirstPropertyFirstValue("DTEND").subtractDateWithTimezone(r):i.hasProperty("DUE")&&(s=i.getFirstPropertyFirstValue("DUE").subtractDateWithTimezone(r)),!(i.isRecurrenceException()&&i.isExactForkOfPrimary)){if(i.updatePropertyWithValue("DTSTART",t.clone()),a&&i.startDate.addDuration(a),i.hasProperty("DTEND")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DTEND",l)}else if(i.hasProperty("DUE")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DUE",l)}o&&(i.deleteAllProperties("DTEND"),i.deleteAllProperties("DURATION"),i.updatePropertyWithValue("DTEND",o.end.clone()))}return i.resetDirty(),i}canCreateRecurrenceExceptions(){let t=!1;return this.primaryItem&&this.primaryItem.isRecurring()&&(t=!0),this.isRecurring()||this.modifiesFuture()||!this.isRecurring()&&t}createRecurrenceException(t=!1){if(!this.canCreateRecurrenceExceptions())throw new Error("Can't create recurrence-exceptions for non-recurring items");const a=this.primaryItem;if(t){if(this.isExactForkOfPrimary&&this.primaryItem.isMasterItem())return this._overridePrimaryItem(),[this,this];this.removeThisOccurrence(!0),this.recurrenceManager=new HE(this),this._originalRecurrenceId=null,this.primaryItem=this,this.updatePropertyWithValue("UID",ME()),this._cachedId=null,this.addRelation("SIBLING",a.uid),a.addRelation("SIBLING",this.uid),this.deleteAllProperties("RECURRENCE-ID"),this.deleteAllProperties("RDATE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this._significantChange=!1,this._dirty=!1,this.root=this.root.constructor.fromEmpty(),this.root.addComponent(this),this.parent=this.root;for(const i of this.getAttendeeIterator())i.rsvp=!0}else{if(this.deleteAllProperties("RECURRENCE-ID"),this.recurrenceId=this.getReferenceRecurrenceId().clone(),this.root.addComponent(this),this.recurrenceManager.relateRecurrenceException(this),this.primaryItem=this,this.deleteAllProperties("RDATE"),this.deleteAllProperties("RRULE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const i=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());if(i instanceof Tt){const n=i.start;this.recurrenceManager.removeRecurrenceDate(!1,i),this.recurrenceManager.addRecurrenceDate(!1,n)}}this.originalRecurrenceId=null}return[a,this]}removeThisOccurrence(t=!1){if(!this.isPartOfRecurrenceSet())return!0;if(t){const a=this.getReferenceRecurrenceId().clone(),i=a.getInTimezone(kt.utc);i.addDuration(Lt.fromSeconds(-1));for(const n of this.recurrenceManager.getRecurrenceRuleIterator())n.until=i.clone();for(const n of this.recurrenceManager.getRecurrenceDateIterator()){let r=n;n instanceof Tt&&(r=r.start),a.compare(r)<=0&&this.recurrenceManager.removeRecurrenceDate(!1,n)}for(const n of this.recurrenceManager.getRecurrenceDateIterator(!0))a.compare(n)<=0&&this.recurrenceManager.removeRecurrenceDate(!0,n);for(const n of this.recurrenceManager.getRecurrenceExceptionList())a.compare(n.recurrenceId)<=0&&(this.root.deleteComponent(n),this.recurrenceManager.removeRecurrenceException(n))}else if(this.isRecurrenceException()&&!this.modifiesFuture()&&(this.root.deleteComponent(this),this.recurrenceManager.removeRecurrenceException(this)),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const a=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());this.recurrenceManager.removeRecurrenceDate(!1,a)}else this.recurrenceManager.addRecurrenceDate(!0,this.getReferenceRecurrenceId().clone());return this.recurrenceManager.isEmptyRecurrenceSet()}clone(){const t=super.clone();return t.resetDirty(),t}_addAttendee(t){for(const a of this.getAttendeeIterator())if(a.email===t.email)return!1;return this.addProperty(t),!0}addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this._addAttendee(i)}addAttendeeFromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r){const o=na.fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,!1);return this._addAttendee(o)}setOrganizerFromNameAndEMail(t,a){this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}addAttachmentFromData(t,a=null){this.addProperty(Si.fromData(t,a))}addAttachmentFromLink(t,a=null){this.addProperty(Si.fromLink(t,a))}addContact(t){this.addProperty(new Br("CONTACT",t))}addComment(t){this.addProperty(new Br("COMMENT",t))}addImageFromData(t,a=null,i=null){this.addProperty(un.fromData(t,a,i))}addImageFromLink(t,a=null,i=null){this.addProperty(un.fromLink(t,a,i))}addRelation(t,a){this.addProperty(So.fromRelTypeAndId(t,a))}addRequestStatus(t,a){this.addProperty(ke.fromCodeAndMessage(t,a))}addAbsoluteAlarm(t,a){const i=new Kt("VALARM",[["action",t],Wa.fromAbsolute(a)]);return this.addComponent(i),i}addRelativeAlarm(t,a,i=!0){const n=new Kt("VALARM",[["action",t],Wa.fromRelativeAndRelated(a,i)]);return this.addComponent(n),n}markPropertyAsDirty(t){this.markDirty(),["DTSTART","DTEND","DURATION","RRULE","RDATE","EXDATE","STATUS",...al("property-list-significant-change",[])].includes(Ce(t))&&this.markChangesAsSignificant()}markSubComponentAsDirty(t){this.markDirty(),al("component-list-significant-change",[]).includes(t)&&this.markChangesAsSignificant()}isDirty(){return this._dirty||this._significantChange}markDirty(){this._dirty=!0}markChangesAsSignificant(){this._significantChange=!0}undirtify(){return this.isDirty()?(this.hasProperty("SEQUENCE")||(this.sequence=0),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this._significantChange&&this.sequence++,this.resetDirty(),!0):!1}resetDirty(){this._dirty=!1,this._significantChange=!1}updatePropertyWithValue(t,a){super.updatePropertyWithValue(t,a),Ce(t)==="UID"&&(this._cachedId=null),this.markPropertyAsDirty(t)}addProperty(t){return this.markPropertyAsDirty(t.name),t.subscribe(()=>this.markPropertyAsDirty(t.name)),super.addProperty(t)}deleteProperty(t){return this.markPropertyAsDirty(t.name),super.deleteProperty(t)}deleteAllProperties(t){return this.markPropertyAsDirty(t),super.deleteAllProperties(t)}addComponent(t){return this.markSubComponentAsDirty(t.name),t.subscribe(()=>this.markSubComponentAsDirty(t.name)),super.addComponent(t)}deleteComponent(t){return this.markSubComponentAsDirty(t.name),super.deleteComponent(t)}deleteAllComponents(t){return this.markSubComponentAsDirty(t),super.deleteAllComponents(t)}getReferenceRecurrenceId(){return this.originalRecurrenceId?this.originalRecurrenceId:this.recurrenceId?this.recurrenceId:this.startDate?this.startDate:null}_overridePrimaryItem(){const t=this.primaryItem.startDate;for(const a of this.primaryItem.getPropertyIterator())this.primaryItem.deleteProperty(a);for(const a of this.getPropertyIterator())this.primaryItem.addProperty(a);this.recurrenceManager.resetCache(),this.startDate.compare(t)!==0&&this.recurrenceManager.updateStartDateOfMasterItem(this.startDate,t)}static _getConstructorForComponentName(t){return zE(t)}static fromICALJs(...t){const a=super.fromICALJs(...t);return a.resetDirty(),a}}ve(ze.prototype,{name:"stampTime",iCalendarName:"DTSTAMP"}),ve(ze.prototype,{name:"recurrenceId",iCalendarName:"RECURRENCE-ID"}),ve(ze.prototype,"color"),ve(ze.prototype,{name:"creationTime",iCalendarName:"CREATED"}),ve(ze.prototype,{name:"modificationTime",iCalendarName:"LAST-MODIFIED"}),ve(ze.prototype,"organizer"),ve(ze.prototype,"sequence"),ve(ze.prototype,"status"),ve(ze.prototype,"url"),ve(ze.prototype,{name:"title",iCalendarName:"SUMMARY"}),ve(ze.prototype,{name:"accessClass",iCalendarName:"class",allowedValues:["PUBLIC","PRIVATE","CONFIDENTIAL"],defaultValue:"PUBLIC",unknownValue:"PRIVATE"}),hu(ze.prototype,{name:"category",pluralName:"categories",iCalendarName:"CATEGORIES"}),xt(ze.prototype,{name:"attendee"}),xt(ze.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(ze.prototype,{name:"relation",iCalendarName:"RELATED-TO"}),xt(ze.prototype,"comment"),xt(ze.prototype,"contact"),xt(ze.prototype,"image"),xt(ze.prototype,{name:"requestStatus",pluralName:"requestStatus",iCalendarName:"REQUEST-STATUS"}),PE(ze.prototype,"alarm");function Rf(e){return e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-FIELD-TYPE")}function VE(e){switch(Rf(e)){case"BDAY":return"🎂";case"DEATHDATE":return"⚰️";case"ANNIVERSARY":return"💍";default:return null}}function $E(e,t){if(!e.hasProperty("X-NEXTCLOUD-BC-YEAR"))return null;const a=e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-YEAR");return parseInt(t,10)-parseInt(a,10)}class Ya extends ze{isAllDay(){return this.startDate.isDate&&this.endDate.isDate}canModifyAllDay(){return!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("dtend"))return this.getFirstPropertyFirstValue("dtend");const t=this.startDate.clone();return this.hasProperty("duration")?t.addDuration(this.getFirstPropertyFirstValue("duration")):this.startDate.isDate&&t.addDuration(Lt.fromSeconds(60*60*24)),t}set endDate(t){this.deleteAllProperties("duration"),this.updatePropertyWithValue("dtend",t)}get duration(){return this.hasProperty("duration")?this.getFirstPropertyFirstValue("duration"):this.startDate.subtractDateWithTimezone(this.endDate)}set duration(t){this.deleteAllProperties("dtend"),this.updatePropertyWithValue("duration",t)}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this._modify(),this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}addDurationToStart(t){this.startDate.addDuration(t)}addDurationToEnd(t){const a=this.endDate;a.addDuration(t),this.endDate=a}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this event");if(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&(this.startDate.replaceTimezone(i),this.endDate=this.startDate.clone(),this.endDate.addDuration(r)),!o&&a&&(this.endDate=this.startDate.clone(),this.endDate.addDuration(n)),o===a){const s=this.endDate;s.addDuration(t),this.endDate=s}}isBirthdayEvent(){return Rf(this)==="BDAY"}getIconForBirthdayEvent(){return VE(this)}getAgeForBirthdayEvent(){return $E(this,this.startDate.year)}toICSEntireSeries(){return this.root.toICS()}toICSThisOccurrence(){const t=this.clone();return t.deleteAllProperties("RRULE"),t.deleteAllProperties("EXRULE"),t.deleteAllProperties("RDATE"),t.deleteAllProperties("EXDATE"),t.deleteAllProperties("RECURRENCE-ID"),t.root=t.root.constructor.fromEmpty(),t.parent=t.root,t.root.addComponent(t),t.root.toICS()}isInTimeFrame(t,a){return t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}}ve(Ya.prototype,{name:"timeTransparency",iCalendarName:"TRANSP",allowedValues:["OPAQUE","TRANSPARENT"],defaultValue:"OPAQUE"}),ve(Ya.prototype,"description"),ve(Ya.prototype,{name:"geographicalPosition",iCalendarName:"GEO"}),ve(Ya.prototype,"location"),ve(Ya.prototype,{name:"priority",allowedValues:Array(9).keys(),defaultValue:0,unknownValue:0}),hu(Ya.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Ya.prototype,"conference");class ar extends Na{get startDate(){return this.getFirstPropertyFirstValue("DTSTART")}set startDate(t){this._modify(),this.updatePropertyWithValue("DTSTART",t.getInTimezone(kt.utc))}get endDate(){return this.getFirstPropertyFirstValue("DTEND")}set endDate(t){this._modify(),this.updatePropertyWithValue("DTEND",t.getInTimezone(kt.utc))}*getFreeBusyIterator(){yield*this.getPropertyIterator("FREEBUSY")}addAttendeeFromNameAndEMail(t,a){this._modify(),this.addProperty(na.fromNameAndEMail(t,a))}setOrganizerFromNameAndEMail(t,a){this._modify(),this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}}ve(ar.prototype,"organizer"),ve(ar.prototype,"uid"),xt(ar.prototype,"attendee");class Nf extends ze{addDescription(t){this.addProperty(new Br("DESCRIPTION",t))}}xt(Nf.prototype,"description");class wf extends Na{toTimezone(){return new kt(this.toICALJs())}}ve(wf.prototype,{name:"timezoneId",iCalendarName:"tzid"});class Vt extends ze{isAllDay(){const t=["DTSTART","DUE"];for(const a of t)if(this.hasProperty(a))return this.getFirstPropertyFirstValue(a).isDate;return!0}canModifyAllDay(){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!1:!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("due"))return this.getFirstPropertyFirstValue("due");if(!this.hasProperty("dtstart")||!this.hasProperty("duration"))return null;const t=this.startDate.clone();return t.addDuration(this.getFirstPropertyFirstValue("duration")),t}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(!this.hasProperty("dtstart")&&!this.hasProperty("due"))throw new TypeError("This task does not have a start-date nor due-date");if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this todo");this.hasProperty("dtstart")&&(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&this.startDate.replaceTimezone(i)),this.hasProperty("due")&&(this.dueTime.isDate=a,this.dueTime.addDuration(t),o&&!a&&this.dueTime.replaceTimezone(i))}isInTimeFrame(t,a){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!0:!this.hasProperty("dtstart")&&this.hasProperty("due")?t.compare(this.endDate)<=0:t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}get geographicalPosition(){return this.getFirstProperty("GEO")}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}getReferenceRecurrenceId(){return super.getReferenceRecurrenceId()??this.endDate}}ve(Vt.prototype,{name:"completedTime",iCalendarName:"COMPLETED"}),ve(Vt.prototype,{name:"dueTime",iCalendarName:"DUE"}),ve(Vt.prototype,{name:"duration"}),ve(Vt.prototype,{name:"percent",iCalendarName:"PERCENT-COMPLETE"}),ve(Vt.prototype,"description"),ve(Vt.prototype,"location"),ve(Vt.prototype,{name:"priority",allowedValues:Array.from(Array(10).keys()),defaultValue:0,unknownValue:0}),hu(Vt.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Vt.prototype,"conference");function WE(e){switch(Ce(e)){case"VEVENT":return Ya;case"VFREEBUSY":return ar;case"VJOURNAL":return Nf;case"VTIMEZONE":return wf;case"VTODO":return Vt;default:return Na}}class L0 extends Na{constructor(t="VCALENDAR",a=[],i=[]){super(t,a,i),this.root=this,this.parent=null}*getTimezoneIterator(){yield*this.getComponentIterator("vtimezone")}*getVObjectIterator(){yield*this.getEventIterator(),yield*this.getJournalIterator(),yield*this.getTodoIterator()}*getEventIterator(){yield*this.getComponentIterator("vevent")}*getFreebusyIterator(){yield*this.getComponentIterator("vfreebusy")}*getJournalIterator(){yield*this.getComponentIterator("vjournal")}*getTodoIterator(){yield*this.getComponentIterator("vtodo")}static _getConstructorForComponentName(t){return WE(t)}toICS(t=!0){for(const i of this.getVObjectIterator())i.undirtify();const a=this.toICALJs();return t&&me.helpers.updateTimezones(a),a.toString()}static fromEmpty(t=[]){return new this("VCALENDAR",[["prodid",al("PRODID","-//IDN georgehrke.com//calendar-js//EN")],["calscale","GREGORIAN"],["version","2.0"]].concat(t))}static fromMethod(t){return this.fromEmpty([["method",t]])}static fromICALJs(t){const a=super.fromICALJs(t);return a.root=a,a}}ve(L0.prototype,{name:"productId",iCalendarName:"PRODID"}),ve(L0.prototype,{name:"version"}),ve(L0.prototype,{name:"calendarScale",iCalendarName:"CALSCALE",defaultValue:"GREGORIAN"}),ve(L0.prototype,{name:"method"});var QE="2.2023c",JE={"AUS Central Standard Time":{aliasTo:"Australia/Darwin"},"AUS Eastern Standard Time":{aliasTo:"Australia/Sydney"},"Afghanistan Standard Time":{aliasTo:"Asia/Kabul"},"Africa/Asmera":{aliasTo:"Africa/Asmara"},"Africa/Timbuktu":{aliasTo:"Africa/Bamako"},"Alaskan Standard Time":{aliasTo:"America/Anchorage"},"America/Argentina/ComodRivadavia":{aliasTo:"America/Argentina/Catamarca"},"America/Buenos_Aires":{aliasTo:"America/Argentina/Buenos_Aires"},"America/Louisville":{aliasTo:"America/Kentucky/Louisville"},"America/Montreal":{aliasTo:"America/Toronto"},"America/Santa_Isabel":{aliasTo:"America/Tijuana"},"Arab Standard Time":{aliasTo:"Asia/Riyadh"},"Arabian Standard Time":{aliasTo:"Asia/Dubai"},"Arabic Standard Time":{aliasTo:"Asia/Baghdad"},"Argentina Standard Time":{aliasTo:"America/Argentina/Buenos_Aires"},"Asia/Calcutta":{aliasTo:"Asia/Kolkata"},"Asia/Katmandu":{aliasTo:"Asia/Kathmandu"},"Asia/Rangoon":{aliasTo:"Asia/Yangon"},"Asia/Saigon":{aliasTo:"Asia/Ho_Chi_Minh"},"Atlantic Standard Time":{aliasTo:"America/Halifax"},"Atlantic/Faeroe":{aliasTo:"Atlantic/Faroe"},"Atlantic/Jan_Mayen":{aliasTo:"Europe/Oslo"},"Azerbaijan Standard Time":{aliasTo:"Asia/Baku"},"Azores Standard Time":{aliasTo:"Atlantic/Azores"},"Bahia Standard Time":{aliasTo:"America/Bahia"},"Bangladesh Standard Time":{aliasTo:"Asia/Dhaka"},"Belarus Standard Time":{aliasTo:"Europe/Minsk"},"Canada Central Standard Time":{aliasTo:"America/Regina"},"Cape Verde Standard Time":{aliasTo:"Atlantic/Cape_Verde"},"Caucasus Standard Time":{aliasTo:"Asia/Yerevan"},"Cen. Australia Standard Time":{aliasTo:"Australia/Adelaide"},"Central America Standard Time":{aliasTo:"America/Guatemala"},"Central Asia Standard Time":{aliasTo:"Asia/Almaty"},"Central Brazilian Standard Time":{aliasTo:"America/Cuiaba"},"Central Europe Standard Time":{aliasTo:"Europe/Budapest"},"Central European Standard Time":{aliasTo:"Europe/Warsaw"},"Central Pacific Standard Time":{aliasTo:"Pacific/Guadalcanal"},"Central Standard Time":{aliasTo:"America/Chicago"},"Central Standard Time (Mexico)":{aliasTo:"America/Mexico_City"},"China Standard Time":{aliasTo:"Asia/Shanghai"},"E. Africa Standard Time":{aliasTo:"Africa/Nairobi"},"E. Australia Standard Time":{aliasTo:"Australia/Brisbane"},"E. South America Standard Time":{aliasTo:"America/Sao_Paulo"},"Eastern Standard Time":{aliasTo:"America/New_York"},"Egypt Standard Time":{aliasTo:"Africa/Cairo"},"Ekaterinburg Standard Time":{aliasTo:"Asia/Yekaterinburg"},"Etc/GMT":{aliasTo:"UTC"},"Etc/GMT+0":{aliasTo:"UTC"},"Etc/UCT":{aliasTo:"UTC"},"Etc/UTC":{aliasTo:"UTC"},"Etc/Unversal":{aliasTo:"UTC"},"Etc/Zulu":{aliasTo:"UTC"},"Europe/Belfast":{aliasTo:"Europe/London"},"FLE Standard Time":{aliasTo:"Europe/Kiev"},"Fiji Standard Time":{aliasTo:"Pacific/Fiji"},GMT:{aliasTo:"UTC"},"GMT Standard Time":{aliasTo:"Europe/London"},"GMT+0":{aliasTo:"UTC"},GMT0:{aliasTo:"UTC"},"GTB Standard Time":{aliasTo:"Europe/Bucharest"},"Georgian Standard Time":{aliasTo:"Asia/Tbilisi"},"Greenland Standard Time":{aliasTo:"America/Godthab"},Greenwich:{aliasTo:"UTC"},"Greenwich Standard Time":{aliasTo:"Atlantic/Reykjavik"},"Hawaiian Standard Time":{aliasTo:"Pacific/Honolulu"},"India Standard Time":{aliasTo:"Asia/Calcutta"},"Iran Standard Time":{aliasTo:"Asia/Tehran"},"Israel Standard Time":{aliasTo:"Asia/Jerusalem"},"Jordan Standard Time":{aliasTo:"Asia/Amman"},"Kaliningrad Standard Time":{aliasTo:"Europe/Kaliningrad"},"Korea Standard Time":{aliasTo:"Asia/Seoul"},"Libya Standard Time":{aliasTo:"Africa/Tripoli"},"Line Islands Standard Time":{aliasTo:"Pacific/Kiritimati"},"Magadan Standard Time":{aliasTo:"Asia/Magadan"},"Mauritius Standard Time":{aliasTo:"Indian/Mauritius"},"Middle East Standard Time":{aliasTo:"Asia/Beirut"},"Montevideo Standard Time":{aliasTo:"America/Montevideo"},"Morocco Standard Time":{aliasTo:"Africa/Casablanca"},"Mountain Standard Time":{aliasTo:"America/Denver"},"Mountain Standard Time (Mexico)":{aliasTo:"America/Chihuahua"},"Myanmar Standard Time":{aliasTo:"Asia/Rangoon"},"N. Central Asia Standard Time":{aliasTo:"Asia/Novosibirsk"},"Namibia Standard Time":{aliasTo:"Africa/Windhoek"},"Nepal Standard Time":{aliasTo:"Asia/Katmandu"},"New Zealand Standard Time":{aliasTo:"Pacific/Auckland"},"Newfoundland Standard Time":{aliasTo:"America/St_Johns"},"North Asia East Standard Time":{aliasTo:"Asia/Irkutsk"},"North Asia Standard Time":{aliasTo:"Asia/Krasnoyarsk"},"Pacific SA Standard Time":{aliasTo:"America/Santiago"},"Pacific Standard Time":{aliasTo:"America/Los_Angeles"},"Pacific Standard Time (Mexico)":{aliasTo:"America/Santa_Isabel"},"Pacific/Johnston":{aliasTo:"Pacific/Honolulu"},"Pakistan Standard Time":{aliasTo:"Asia/Karachi"},"Paraguay Standard Time":{aliasTo:"America/Asuncion"},"Romance Standard Time":{aliasTo:"Europe/Paris"},"Russia Time Zone 10":{aliasTo:"Asia/Srednekolymsk"},"Russia Time Zone 11":{aliasTo:"Asia/Kamchatka"},"Russia Time Zone 3":{aliasTo:"Europe/Samara"},"Russian Standard Time":{aliasTo:"Europe/Moscow"},"SA Eastern Standard Time":{aliasTo:"America/Cayenne"},"SA Pacific Standard Time":{aliasTo:"America/Bogota"},"SA Western Standard Time":{aliasTo:"America/La_Paz"},"SE Asia Standard Time":{aliasTo:"Asia/Bangkok"},"Samoa Standard Time":{aliasTo:"Pacific/Apia"},"Singapore Standard Time":{aliasTo:"Asia/Singapore"},"South Africa Standard Time":{aliasTo:"Africa/Johannesburg"},"Sri Lanka Standard Time":{aliasTo:"Asia/Colombo"},"Syria Standard Time":{aliasTo:"Asia/Damascus"},"Taipei Standard Time":{aliasTo:"Asia/Taipei"},"Tasmania Standard Time":{aliasTo:"Australia/Hobart"},"Tokyo Standard Time":{aliasTo:"Asia/Tokyo"},"Tonga Standard Time":{aliasTo:"Pacific/Tongatapu"},"Turkey Standard Time":{aliasTo:"Europe/Istanbul"},UCT:{aliasTo:"UTC"},"US Eastern Standard Time":{aliasTo:"America/Indiana/Indianapolis"},"US Mountain Standard Time":{aliasTo:"America/Phoenix"},"US/Central":{aliasTo:"America/Chicago"},"US/Eastern":{aliasTo:"America/New_York"},"US/Mountain":{aliasTo:"America/Denver"},"US/Pacific":{aliasTo:"America/Los_Angeles"},"US/Pacific-New":{aliasTo:"America/Los_Angeles"},"Ulaanbaatar Standard Time":{aliasTo:"Asia/Ulaanbaatar"},Universal:{aliasTo:"UTC"},"Venezuela Standard Time":{aliasTo:"America/Caracas"},"Vladivostok Standard Time":{aliasTo:"Asia/Vladivostok"},"W. Australia Standard Time":{aliasTo:"Australia/Perth"},"W. Central Africa Standard Time":{aliasTo:"Africa/Lagos"},"W. Europe Standard Time":{aliasTo:"Europe/Berlin"},"West Asia Standard Time":{aliasTo:"Asia/Tashkent"},"West Pacific Standard Time":{aliasTo:"Pacific/Port_Moresby"},"Yakutsk Standard Time":{aliasTo:"Asia/Yakutsk"},Z:{aliasTo:"UTC"},Zulu:{aliasTo:"UTC"},utc:{aliasTo:"UTC"}},KE={"Africa/Abidjan":{ics:[`BEGIN:STANDARD\r
+override isMultiValue`);var d=l.length,u=0;if(this.removeAllValues(),d>0&&typeof l[0]=="object"&&"icaltype"in l[0]&&this.resetType(l[0].icaltype),this.isDecorated)for(;ur)-(r>n)},_normalize:function(){for(var i=this.toSeconds(),n=this.factor;i<-43200;)i+=97200;for(;i>50400;)i-=97200;this.fromSeconds(i),i==0&&(this.factor=n)},toICALString:function(){return t.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(this.factor==1?"+":"-")+t.helpers.pad2(this.hours)+":"+t.helpers.pad2(this.minutes)}},a.fromString=function(i){var n={};return n.factor=i[0]==="+"?1:-1,n.hours=t.helpers.strictParseInt(i.substr(1,2)),n.minutes=t.helpers.strictParseInt(i.substr(4,2)),new t.UtcOffset(n)},a.fromSeconds=function(i){var n=new a;return n.fromSeconds(i),n},a}(),t.Binary=function(){function a(i){this.value=i}return a.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(i){this.value=this._b64_encode(i)},_b64_encode:function(i){var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",r,o,s,l,d,u,c,f,h=0,_=0,m="",p=[];if(!i)return i;do r=i.charCodeAt(h++),o=i.charCodeAt(h++),s=i.charCodeAt(h++),f=r<<16|o<<8|s,l=f>>18&63,d=f>>12&63,u=f>>6&63,c=f&63,p[_++]=n.charAt(l)+n.charAt(d)+n.charAt(u)+n.charAt(c);while(h>16&255,o=f>>8&255,s=f&255,u==64?p[_++]=String.fromCharCode(r):c==64?p[_++]=String.fromCharCode(r,o):p[_++]=String.fromCharCode(r,o,s);while(ho)-(r=0?o=r:s=-1,s==-1&&o!=-1)break;if(r+=s,r<0)return 0;if(r>=this.changes.length)break}var u=this.changes[o],c=u.utcOffset-u.prevUtcOffset;if(c<0&&o>0){var f=t.helpers.clone(u,!0);if(t.Timezone.adjust_change(f,0,0,0,f.prevUtcOffset),t.Timezone._compare_change_fn(n,f)<0){var h=this.changes[o-1],_=!1;u.is_daylight!=_&&h.is_daylight==_&&(u=h)}}return u.utcOffset},_findNearbyChange:function(i){var n=t.helpers.binsearchInsert(this.changes,i,t.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(i){if(t.Timezone._minimumExpansionYear==-1){var n=t.Time.now();t.Timezone._minimumExpansionYear=n.year}var r=i;if(rt.Timezone.MAX_YEAR&&(r=t.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYearn||!p));)s.year=p.year,s.month=p.month,s.day=p.day,s.hour=p.hour,s.minute=p.minute,s.second=p.second,s.isDate=p.isDate,t.Timezone.adjust_change(s,0,0,0,-s.prevUtcOffset),r.push(s)}}return r},toString:function(){return this.tznames?this.tznames:this.tzid}},t.Timezone._compare_change_fn=function(i,n){return i.yearn.year?1:i.monthn.month?1:i.dayn.day?1:i.hourn.hour?1:i.minuten.minute?1:i.secondn.second?1:0},t.Timezone.convert_time=function(i,n,r){if(i.isDate||n.tzid==r.tzid||n==t.Timezone.localTimezone||r==t.Timezone.localTimezone)return i.zone=r,i;var o=n.utcOffset(i);return i.adjust(0,0,0,-o),o=r.utcOffset(i),i.adjust(0,0,0,o),null},t.Timezone.fromData=function(i){var n=new t.Timezone;return n.fromData(i)},t.Timezone.utcTimezone=t.Timezone.fromData({tzid:"UTC"}),t.Timezone.localTimezone=t.Timezone.fromData({tzid:"floating"}),t.Timezone.adjust_change=function(i,n,r,o,s){return t.Time.prototype.adjust.call(i,n,r,o,s,i)},t.Timezone._minimumExpansionYear=-1,t.Timezone.MAX_YEAR=2035,t.Timezone.EXTRA_COVERAGE=5}(),t.TimezoneService=function(){var a,i={get count(){return Object.keys(a).length},reset:function(){a=Object.create(null);var n=t.Timezone.utcTimezone;a.Z=n,a.UTC=n,a.GMT=n},has:function(n){return!!a[n]},get:function(n){return a[n]},register:function(n,r){if(n instanceof t.Component&&n.name==="vtimezone"&&(r=new t.Timezone(n),n=r.tzid),r instanceof t.Timezone)a[n]=r;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(n){return delete a[n]}};return i.reset(),i}(),function(){t.Time=function(a,i){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(a,i)},t.Time._dowCache={},t.Time._wnCache={},t.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new t.Time(this._time,this.zone)},reset:function(){this.fromData(t.Time.epochTime),this.zone=t.Timezone.utcTimezone},resetTo:function(a,i,n,r,o,s,l){this.fromData({year:a,month:i,day:n,hour:r,minute:o,second:s,zone:l})},fromJSDate:function(a,i){return a?i?(this.zone=t.Timezone.utcTimezone,this.year=a.getUTCFullYear(),this.month=a.getUTCMonth()+1,this.day=a.getUTCDate(),this.hour=a.getUTCHours(),this.minute=a.getUTCMinutes(),this.second=a.getUTCSeconds()):(this.zone=t.Timezone.localTimezone,this.year=a.getFullYear(),this.month=a.getMonth()+1,this.day=a.getDate(),this.hour=a.getHours(),this.minute=a.getMinutes(),this.second=a.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(a,i){if(a){for(var n in a)if(Object.prototype.hasOwnProperty.call(a,n)){if(n==="icaltype")continue;this[n]=a[n]}}if(i&&(this.zone=i),a&&!("isDate"in a)?this.isDate=!("hour"in a):a&&"isDate"in a&&(this.isDate=a.isDate),a&&"timezone"in a){var r=t.TimezoneService.get(a.timezone);this.zone=r||t.Timezone.localTimezone}return a&&"zone"in a&&(this.zone=a.zone),this.zone||(this.zone=t.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(a){var i=a||t.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+i;if(n in t.Time._dowCache)return t.Time._dowCache[n];var r=this.day,o=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),l=r+s+t.helpers.trunc((o+1)*26/10)+t.helpers.trunc(s/4);return l+=t.helpers.trunc(s/100)*6+t.helpers.trunc(s/400),l=(l+7-i)%7+1,t.Time._dowCache[n]=l,l},dayOfYear:function(){var a=t.Time.isLeapYear(this.year)?1:0,i=t.Time.daysInYearPassedMonth;return i[a][this.month-1]+this.day},startOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-i)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(a){var i=a||t.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+i-t.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},startOfMonth:function(){var a=this.clone();return a.day=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfMonth:function(){var a=this.clone();return a.day=t.Time.daysInMonth(a.month,a.year),a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startOfYear:function(){var a=this.clone();return a.day=1,a.month=1,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},endOfYear:function(){var a=this.clone();return a.day=31,a.month=12,a.isDate=!0,a.hour=0,a.minute=0,a.second=0,a},startDoyWeek:function(a){var i=a||t.Time.SUNDAY,n=this.dayOfWeek()-i;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return t.Time.getDominicalLetter(this.year)},nthWeekDay:function(a,i){var n=t.Time.daysInMonth(this.month,this.year),r,o=i,s=0,l=this.clone();if(o>=0){l.day=1,o!=0&&o--,s=l.day;var d=l.dayOfWeek(),u=a-d;u<0&&(u+=7),s+=u,s-=a,r=a}else{l.day=n;var c=l.dayOfWeek();o++,r=c-a,r<0&&(r+=7),r=n-r}return r+=o*7,s+r},isNthWeekDay:function(a,i){var n=this.dayOfWeek();if(i===0&&n===a)return!0;var r=this.nthWeekDay(a,i);return r===this.day},weekNumber:function(a){var i=(this.year<<12)+(this.month<<8)+(this.day<<3)+a;if(i in t.Time._wnCache)return t.Time._wnCache[i];var n,r=this.clone();r.isDate=!0;var o=this.year;r.month==12&&r.day>25?(n=t.Time.weekOneStarts(o+1,a),r.compare(n)<0?n=t.Time.weekOneStarts(o,a):o++):(n=t.Time.weekOneStarts(o,a),r.compare(n)<0&&(n=t.Time.weekOneStarts(--o,a)));var s=r.subtractDate(n).toSeconds()/86400,l=t.helpers.trunc(s/7)+1;return t.Time._wnCache[i]=l,l},addDuration:function(a){var i=a.isNegative?-1:1,n=this.second,r=this.minute,o=this.hour,s=this.day;n+=i*a.seconds,r+=i*a.minutes,o+=i*a.hours,s+=i*a.days,s+=i*7*a.weeks,this.second=n,this.minute=r,this.hour=o,this.day=s,this._cachedUnixTime=null},subtractDate:function(a){var i=this.toUnixTime()+this.utcOffset(),n=a.toUnixTime()+a.utcOffset();return t.Duration.fromSeconds(i-n)},subtractDateTz:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return t.Duration.fromSeconds(i-n)},compare:function(a){var i=this.toUnixTime(),n=a.toUnixTime();return i>n?1:n>i?-1:0},compareDateOnlyTz:function(a,i){function n(l){return t.Time._cmp_attr(r,o,l)}var r=this.convertToZone(i),o=a.convertToZone(i),s=0;return(s=n("year"))!=0||(s=n("month"))!=0||(s=n("day"))!=0,s},convertToZone:function(a){var i=this.clone(),n=this.zone.tzid==a.tzid;return!this.isDate&&!n&&t.Timezone.convert_time(i,this.zone,a),i.zone=a,i},utcOffset:function(){return this.zone==t.Timezone.localTimezone||this.zone==t.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var a=this.toString();return a.length>10?t.design.icalendar.value["date-time"].toICAL(a):t.design.icalendar.value.date.toICAL(a)},toString:function(){var a=this.year+"-"+t.helpers.pad2(this.month)+"-"+t.helpers.pad2(this.day);return this.isDate||(a+="T"+t.helpers.pad2(this.hour)+":"+t.helpers.pad2(this.minute)+":"+t.helpers.pad2(this.second),this.zone===t.Timezone.utcTimezone&&(a+="Z")),a},toJSDate:function(){return this.zone==t.Timezone.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:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(a,i,n,r,o){var s,l,d=0,u=0,c,f,h,_,m,p=o||this._time;if(p.isDate||(c=p.second+r,p.second=c%60,s=t.helpers.trunc(c/60),p.second<0&&(p.second+=60,s--),f=p.minute+n+s,p.minute=f%60,l=t.helpers.trunc(f/60),p.minute<0&&(p.minute+=60,l--),h=p.hour+i+l,p.hour=h%24,d=t.helpers.trunc(h/24),p.hour<0&&(p.hour+=24,d--)),p.month>12?u=t.helpers.trunc((p.month-1)/12):p.month<1&&(u=t.helpers.trunc(p.month/12)-1),p.year+=u,p.month-=12*u,_=p.day+a+d,_>0)for(;m=t.Time.daysInMonth(p.month,p.year),!(_<=m);)p.month++,p.month>12&&(p.year++,p.month=1),_-=m;else for(;_<=0;)p.month==1?(p.year--,p.month=12):p.month--,_+=t.Time.daysInMonth(p.month,p.year);return p.day=_,this._cachedUnixTime=null,this},fromUnixTime:function(a){this.zone=t.Timezone.utcTimezone;var i=t.Time.epochTime.clone();i.adjust(0,0,0,a),this.year=i.year,this.month=i.month,this.day=i.day,this.hour=i.hour,this.minute=i.minute,this.second=Math.floor(i.second),this._cachedUnixTime=null},toUnixTime:function(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;var a=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-a);return this._cachedUnixTime=i/1e3,this._cachedUnixTime},toJSON:function(){for(var a=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,r=a.length,o;n12||(r=n[a],a==2&&(r+=t.Time.isLeapYear(i))),r},t.Time.isLeapYear=function(a){return a<=1752?a%4==0:a%4==0&&a%100!=0||a%400==0},t.Time.fromDayOfYear=function(a,i){var n=i,r=a,o=new t.Time;o.auto_normalize=!1;var s=t.Time.isLeapYear(n)?1:0;if(r<1)return n--,s=t.Time.isLeapYear(n)?1:0,r+=t.Time.daysInYearPassedMonth[s][12],t.Time.fromDayOfYear(r,n);if(r>t.Time.daysInYearPassedMonth[s][12])return s=t.Time.isLeapYear(n)?1:0,r-=t.Time.daysInYearPassedMonth[s][12],n++,t.Time.fromDayOfYear(r,n);o.year=n,o.isDate=!0;for(var l=11;l>=0;l--)if(r>t.Time.daysInYearPassedMonth[s][l]){o.month=l+1,o.day=r-t.Time.daysInYearPassedMonth[s][l];break}return o.auto_normalize=!0,o},t.Time.fromStringv2=function(a){return new t.Time({year:parseInt(a.substr(0,4),10),month:parseInt(a.substr(5,2),10),day:parseInt(a.substr(8,2),10),isDate:!0})},t.Time.fromDateString=function(a){return new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),isDate:!0})},t.Time.fromDateTimeString=function(a,i){if(a.length<19)throw new Error('invalid date-time value: "'+a+'"');var n;a[19]&&a[19]==="Z"?n="Z":i&&(n=i.getParameter("tzid"));var r=new t.Time({year:t.helpers.strictParseInt(a.substr(0,4)),month:t.helpers.strictParseInt(a.substr(5,2)),day:t.helpers.strictParseInt(a.substr(8,2)),hour:t.helpers.strictParseInt(a.substr(11,2)),minute:t.helpers.strictParseInt(a.substr(14,2)),second:t.helpers.strictParseInt(a.substr(17,2)),timezone:n});return r},t.Time.fromString=function(a,i){return a.length>10?t.Time.fromDateTimeString(a,i):t.Time.fromDateString(a)},t.Time.fromJSDate=function(a,i){var n=new t.Time;return n.fromJSDate(a,i)},t.Time.fromData=function(a,i){var n=new t.Time;return n.fromData(a,i)},t.Time.now=function(){return t.Time.fromJSDate(new Date,!1)},t.Time.weekOneStarts=function(a,i){var n=t.Time.fromData({year:a,month:1,day:1,isDate:!0}),r=n.dayOfWeek(),o=i||t.Time.DEFAULT_WEEK_START;return r>t.Time.THURSDAY&&(n.day+=7),o>t.Time.THURSDAY&&(n.day-=7),n.day-=r-o,n},t.Time.getDominicalLetter=function(a){var i="GFEDCBA",n=(a+(a/4|0)+(a/400|0)-(a/100|0)-1)%7,r=t.Time.isLeapYear(a);return r?i[(n+6)%7]+i[n]:i[n]},t.Time.epochTime=t.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),t.Time._cmp_attr=function(a,i,n){return a[n]>i[n]?1:a[n]4?_?n(u,1,2):n(u,3,2):null,second:f==4?n(u,2,2):f==6?n(u,4,2):f==8?n(u,6,2):null};return d=="Z"?d=t.Timezone.utcTimezone:d&&d[3]==":"?d=t.UtcOffset.fromString(d):d=null,new t.VCardTime(m,d,i)}}(),function(){var a={SU:t.Time.SUNDAY,MO:t.Time.MONDAY,TU:t.Time.TUESDAY,WE:t.Time.WEDNESDAY,TH:t.Time.THURSDAY,FR:t.Time.FRIDAY,SA:t.Time.SATURDAY},i={};for(var n in a)a.hasOwnProperty(n)&&(i[a[n]]=n);t.Recur=function(c){this.wrappedJSObject=this,this.parts={},c&&typeof c=="object"&&this.fromData(c)},t.Recur.prototype={parts:null,interval:1,wkst:t.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(c){return new t.RecurIterator({rule:this,dtstart:c})},clone:function(){return new t.Recur(this.toJSON())},isFinite:function(){return!!(this.count||this.until)},isByCount:function(){return!!(this.count&&!this.until)},addComponent:function(c,f){var h=c.toUpperCase();h in this.parts?this.parts[h].push(f):this.parts[h]=[f]},setComponent:function(c,f){this.parts[c.toUpperCase()]=f.slice()},getComponent:function(c){var f=c.toUpperCase();return f in this.parts?this.parts[f].slice():[]},getNextOccurrence:function(c,f){var h=this.iterator(c),_;do _=h.next();while(_&&_.compare(f)<=0);return _&&f.zone&&(_.zone=f.zone),_},fromData:function(c){for(var f in c){var h=f.toUpperCase();h in u?Array.isArray(c[f])?this.parts[h]=c[f]:this.parts[h]=[c[f]]:this[f]=c[f]}this.interval&&typeof this.interval!="number"&&d.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=t.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof t.Time)&&(this.until=t.Time.fromString(this.until))},toJSON:function(){var c=Object.create(null);c.freq=this.freq,this.count&&(c.count=this.count),this.interval>1&&(c.interval=this.interval);for(var f in this.parts)if(this.parts.hasOwnProperty(f)){var h=this.parts[f];Array.isArray(h)&&h.length==1?c[f.toLowerCase()]=h[0]:c[f.toLowerCase()]=t.helpers.clone(this.parts[f])}return this.until&&(c.until=this.until.toString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c.wkst=t.Recur.numericDayToIcalDay(this.wkst)),c},toString:function(){var c="FREQ="+this.freq;this.count&&(c+=";COUNT="+this.count),this.interval>1&&(c+=";INTERVAL="+this.interval);for(var f in this.parts)this.parts.hasOwnProperty(f)&&(c+=";"+f+"="+this.parts[f]);return this.until&&(c+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==t.Time.DEFAULT_WEEK_START&&(c+=";WKST="+t.Recur.numericDayToIcalDay(this.wkst)),c}};function r(c,f,h,_){var m=_;if(_[0]==="+"&&(m=_.substr(1)),m=t.helpers.strictParseInt(m),f!==void 0&&_ '+f);if(h!==void 0&&_>h)throw new Error(c+': invalid value "'+_+'" must be < '+f);return m}t.Recur.icalDayToNumericDay=function(c,f){var h=f||t.Time.SUNDAY;return(a[c]-h+7)%7+1},t.Recur.numericDayToIcalDay=function(c,f){var h=f||t.Time.SUNDAY,_=c+h-t.Time.SUNDAY;return _>7&&(_-=7),i[_]};var o=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,l=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],d={FREQ:function(c,f,h){if(l.indexOf(c)!==-1)f.freq=c;else throw new Error('invalid frequency "'+c+'" expected: "'+l.join(", ")+'"')},COUNT:function(c,f,h){f.count=t.helpers.strictParseInt(c)},INTERVAL:function(c,f,h){f.interval=t.helpers.strictParseInt(c),f.interval<1&&(f.interval=1)},UNTIL:function(c,f,h){c.length>10?f.until=t.design.icalendar.value["date-time"].fromICAL(c):f.until=t.design.icalendar.value.date.fromICAL(c),h||(f.until=t.Time.fromString(f.until))},WKST:function(c,f,h){if(o.test(c))f.wkst=t.Recur.icalDayToNumericDay(c);else throw new Error('invalid WKST value "'+c+'"')}},u={BYSECOND:r.bind(this,"BYSECOND",0,60),BYMINUTE:r.bind(this,"BYMINUTE",0,59),BYHOUR:r.bind(this,"BYHOUR",0,23),BYDAY:function(c){if(s.test(c))return c;throw new Error('invalid BYDAY value "'+c+'"')},BYMONTHDAY:r.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:r.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:r.bind(this,"BYWEEKNO",-53,53),BYMONTH:r.bind(this,"BYMONTH",1,12),BYSETPOS:r.bind(this,"BYSETPOS",-366,366)};t.Recur.fromString=function(c){var f=t.Recur._stringToData(c,!1);return new t.Recur(f)},t.Recur.fromData=function(c){return new t.Recur(c)},t.Recur._stringToData=function(c,f){for(var h=Object.create(null),_=c.split(";"),m=_.length,p=0;p=0||s<0)&&(this.last.day+=s)}else{var l=t.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());i.BYDAY=[l]}if(this.rule.freq=="YEARLY"){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if(this.rule.freq=="MONTHLY"&&this.has_by_data("BYDAY")){var d=null,u=this.last.clone(),c=t.Time.daysInMonth(this.last.month,this.last.year);for(var f in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(f)){this.last=u.clone();var n=this.ruleDayOfWeek(this.by_data.BYDAY[f]),r=n[0],o=n[1],h=this.last.nthWeekDay(o,r);if(r>=6||r<=-6)throw new Error("Malformed values in BYDAY part");if(h>c||h<=0){if(d&&d.month==u.month)continue;for(;h>c||h<=0;)this.increment_month(),c=t.Time.daysInMonth(this.last.month,this.last.year),h=this.last.nthWeekDay(o,r)}this.last.day=h,(!d||this.last.compare(d)<0)&&(d=this.last.clone())}if(this.last=d.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>c||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")&&this.last.day<0){var c=t.Time.daysInMonth(this.last.month,this.last.year);this.last.day=c+this.last.day+1}},next:function(){var 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)return this.completed=!0,null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;var 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)throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(i){return this.increment_generic(i,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(i){return this.increment_generic(i,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(i){this.increment_generic(i,"hour",24,"monthday")},next_day:function(){"BYDAY"in this.by_data;var i=this.rule.freq=="DAILY";return this.next_hour()==0||(i?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var i=0;if(this.next_weekday_by_week()==0)return i;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,i=1),this.last.month=1,this.last.day=1;var n=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*n,i&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return i},normalizeByMonthDayRules:function(i,n,r){for(var o=t.Time.daysInMonth(n,i),s=[],l=0,d=r.length,u;lo)){if(u<0)u=o+(u+1);else if(u===0)continue;s.indexOf(u)===-1&&s.push(u)}return s.sort(function(c,f){return c-f})},_byDayAndMonthDay:function(i){var n,r=this.by_data.BYDAY,o,s=0,l,d=r.length,u=0,c,f=this,h=this.last.day;function _(){for(c=t.Time.daysInMonth(f.last.month,f.last.year),n=f.normalizeByMonthDayRules(f.last.year,f.last.month,f.by_data.BYMONTHDAY),l=n.length;n[s]<=h&&!(i&&n[s]==h)&&sc){m();continue}var T=n[s++];if(T>=o)h=T;else{m();continue}for(var R=0;Rn&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(i=1):i=0)}else if(this.has_by_data("BYMONTHDAY")){this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month());var n=t.Time.daysInMonth(this.last.month,this.last.year),l=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];l<0&&(l=n+l+1),l>n?(this.last.day=1,i=this.is_day_in_byday(this.last)):this.last.day=l}else{this.increment_month();var n=t.Time.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>n?i=0:this.last.day=this.by_data.BYMONTHDAY[0]}return i},next_weekday_by_week:function(){var i=0;if(this.next_hour()==0)return i;if(!this.has_by_data("BYDAY"))return 1;for(;;){var n=new t.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,i=1);var r=this.by_data.BYDAY[this.by_indices.BYDAY],o=this.ruleDayOfWeek(r),s=o[1];s-=this.rule.wkst,s<0&&(s+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var l=n.startDoyWeek(this.rule.wkst);if(!(s+l<1&&!i)){var d=t.Time.fromDayOfYear(l+s,this.last.year);return this.last.year=d.year,this.last.month=d.month,this.last.day=d.day,i}}},next_year:function(){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.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1},_nextByYearDay:function(){var i=this.days[this.days_index],n=this.last.year;i<1&&(i+=1,n+=1);var r=t.Time.fromDayOfYear(i,n);this.last.day=r.day,this.last.month=r.month},ruleDayOfWeek:function(i,n){var r=i.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(r){var o=parseInt(r[1]||0,10);return i=t.Recur.icalDayToNumericDay(r[2],n),[o,i]}else return[0,0]},next_generic:function(i,n,r,o,s){var l=i in this.by_data,d=this.rule.freq==n,u=0;if(s&&this[s]()==0)return u;if(l){this.by_indices[i]++,this.by_indices[i];var c=this.by_data[i];this.by_indices[i]==c.length&&(this.by_indices[i]=0,u=1),this.last[r]=c[this.by_indices[i]]}else d&&this["increment_"+r](this.rule.interval);return l&&u&&d&&this["increment_"+o](1),u},increment_monthday:function(i){for(var n=0;nr&&(this.last.day-=r,this.increment_month())}},increment_month:function(){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--;var i=t.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,i!=0&&this.increment_year(i)}},increment_year:function(i){this.last.year+=i},increment_generic:function(i,n,r,o){this.last[n]+=i;var s=t.helpers.trunc(this.last[n]/r);this.last[n]%=r,s!=0&&this["increment_"+o](s)},has_by_data:function(i){return i in this.rule.parts},expand_year_days:function(i){var n=new t.Time;this.days=[];var r={},o=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var s in o)if(o.hasOwnProperty(s)){var l=o[s];l in this.rule.parts&&(r[l]=this.rule.parts[l])}if("BYMONTH"in r&&"BYWEEKNO"in r){var d=1,u={};n.year=i,n.isDate=!0;for(var c=0;c0?(z=re+(U-1)*7,z<=M&&this.days.push(D+z)):(z=O+(U+1)*7,z>0&&this.days.push(D+z))}}this.days.sort(function(Ze,Re){return Ze-Re})}else if(T==2&&"BYDAY"in r&&"BYMONTHDAY"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==3&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i);this.by_data.BYMONTH.indexOf(Fe.month)>=0&&this.by_data.BYMONTHDAY.indexOf(Fe.day)>=0&&this.days.push(L)}}else if(T==2&&"BYDAY"in r&&"BYWEEKNO"in r){var ge=this.expand_by_day(i);for(var Se in ge)if(ge.hasOwnProperty(Se)){var L=ge[Se],Fe=t.Time.fromDayOfYear(L,i),p=Fe.weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(p)&&this.days.push(L)}}else T==3&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(T==1&&"BYYEARDAY"in r?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);return 0},expand_by_day:function(i){var n=[],r=this.last.clone();r.year=i,r.month=1,r.day=1,r.isDate=!0;var o=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var s=r.dayOfWeek(),l=r.dayOfYear();for(var d in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(d)){var u=this.by_data.BYDAY[d],c=this.ruleDayOfWeek(u),f=c[0],h=c[1];if(f==0)for(var _=(h+7-o)%7+1,m=_;m<=l;m+=7)n.push(m);else if(f>0){var p;h>=o?p=h-o+1:p=h-o+8,n.push(p+(f-1)*7)}else{var T;f=-f,h<=s?T=l-s+h:T=l-s+h-7,n.push(T-(f-1)*7)}}return n},is_day_in_byday:function(i){for(var n in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(n)){var r=this.by_data.BYDAY[n],o=this.ruleDayOfWeek(r),s=o[0],l=o[1],d=i.dayOfWeek();if(s==0&&l==d||i.nthWeekDay(l,s)==i.day)return 1}return 0},check_set_position:function(i){if(this.has_by_data("BYSETPOS")){var n=this.by_data.BYSETPOS.indexOf(i);return n!==-1}return!1},sort_byday_rules:function(i){for(var n=0;ns){var l=i[n];i[n]=i[r],i[r]=l}}},check_contract_restriction:function(i,n){var r=a._indexMap[i],o=a._expandMap[this.rule.freq][r],s=!1;if(i in this.by_data&&o==a.CONTRACT){var l=this.by_data[i];for(var d in l)if(l.hasOwnProperty(d)&&l[d]==n){s=!0;break}}else s=!0;return s},check_contracting_rules:function(){var i=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=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",t.Recur.numericDayToIcalDay(i))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)},setup_defaults:function(i,n,r){var o=a._indexMap[i],s=a._expandMap[this.rule.freq][o];return s!=a.CONTRACT&&(i in this.by_data||(this.by_data[i]=[r]),this.rule.freq!=n)?this.by_data[i][0]:r},toJSON:function(){var i=Object.create(null);return i.initialized=this.initialized,i.rule=this.rule.toJSON(),i.dtstart=this.dtstart.toJSON(),i.by_data=this.by_data,i.days=this.days,i.last=this.last.toJSON(),i.by_indices=this.by_indices,i.occurrence_number=this.occurrence_number,i}},a._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},a._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]},a.UNKNOWN=0,a.CONTRACT=1,a.EXPAND=2,a.ILLEGAL=3,a}(),t.RecurExpansion=function(){function a(o){return t.helpers.formatClassType(o,t.Time)}function i(o,s){return o.compare(s)}function n(o){return o.hasProperty("rdate")||o.hasProperty("rrule")||o.hasProperty("recurrence-id")}function r(o){this.ruleDates=[],this.exDates=[],this.fromData(o)}return r.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(o){var s=t.helpers.formatClassType(o.dtstart,t.Time);if(s)this.dtstart=s;else throw new Error(".dtstart (ICAL.Time) must be given");if(o.component)this._init(o.component);else{if(this.last=a(o.last)||s.clone(),!o.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=o.ruleIterators.map(function(l){return t.helpers.formatClassType(l,t.RecurIterator)}),this.ruleDateInc=o.ruleDateInc,this.exDateInc=o.exDateInc,o.ruleDates&&(this.ruleDates=o.ruleDates.map(a),this.ruleDate=this.ruleDates[this.ruleDateInc]),o.exDates&&(this.exDates=o.exDates.map(a),this.exDate=this.exDates[this.exDateInc]),typeof o.complete<"u"&&(this.complete=o.complete)}},next:function(){for(var o,s,l,d=500,u=0;;){if(u++>d)throw new Error("max tries have occured, rule may be impossible to forfill.");if(s=this.ruleDate,o=this._nextRecurrenceIter(this.last),!s&&!o){this.complete=!0;break}if((!s||o&&s.compare(o.last)>0)&&(s=o.last.clone(),o.next()),this.ruleDate===s&&this._nextRuleDay(),this.last=s,this.exDate&&(l=this.exDate.compare(this.last),l<0&&this._nextExDay(),l===0)){this._nextExDay();continue}return this.last}},toJSON:function(){function o(l){return l.toJSON()}var s=Object.create(null);return s.ruleIterators=this.ruleIterators.map(o),this.ruleDates&&(s.ruleDates=this.ruleDates.map(o)),this.exDates&&(s.exDates=this.exDates.map(o)),s.ruleDateInc=this.ruleDateInc,s.exDateInc=this.exDateInc,s.last=this.last.toJSON(),s.dtstart=this.dtstart.toJSON(),s.complete=this.complete,s},_extractDates:function(o,s){function l(_){h=t.helpers.binsearchInsert(d,_,i),d.splice(h,0,_)}for(var d=[],u=o.getAllProperties(s),c=u.length,f=0,h;f0)&&(c=l)}return c}},r}(),t.Event=function(){function a(n,r){n instanceof t.Component||(r=n,n=null),n?this.component=n:this.component=new t.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(o){o.hasProperty("recurrence-id")&&this.relateException(o)},this)}a.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(n){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(n instanceof t.Component&&(n=new t.Event(n)),this.strictExceptions&&n.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var r=n.recurrenceId.toString();if(this.exceptions[r]=n,n.modifiesFuture()){var o=[n.recurrenceId.toUnixTime(),r],s=t.helpers.binsearchInsert(this.rangeExceptions,o,i);this.rangeExceptions.splice(s,0,o)}},modifiesFuture:function(){if(!this.component.hasProperty("recurrence-id"))return!1;var n=this.component.getFirstProperty("recurrence-id").getParameter("range");return n===this.THISANDFUTURE},findRangeException:function(n){if(!this.rangeExceptions.length)return null;var r=n.toUnixTime(),o=t.helpers.binsearchInsert(this.rangeExceptions,[r],i);if(o-=1,o<0)return null;var s=this.rangeExceptions[o];return rr[0]?1:r[0]>n[0]?-1:0}return a}(),t.ComponentParser=function(){function a(i){typeof i>"u"&&(i={});var n;for(n in i)i.hasOwnProperty(n)&&(this[n]=i[n])}return a.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(i){},ontimezone:function(i){},onevent:function(i){},process:function(i){typeof i=="string"&&(i=t.parse(i)),i instanceof t.Component||(i=new t.Component(i));for(var n=i.getAllSubcomponents(),r=0,o=n.length,s;r0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}isMultiValue(){return Array.isArray(this._value)}clone(){const t=new this.constructor(this._name);return this.isMultiValue()?t.value=this._value.slice():t.value=this._value,t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Yt extends Ao(yo(class{})){constructor(t){if(new.target===Yt)throw new TypeError("Cannot instantiate abstract class AbstractValue");super(),this._innerValue=t}toICALJs(){return this._innerValue}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class pt extends Yt{get rawValue(){return this._innerValue.value}set rawValue(t){this._modifyContent(),this._innerValue.value=t}get value(){return this._innerValue.decodeValue()}set value(t){this._modifyContent(),this._innerValue.setEncodedValue(t)}clone(){return pt.fromRawValue(this._innerValue.value)}static fromICALJs(t){return new pt(t)}static fromRawValue(t){const a=new me.Binary(t);return pt.fromICALJs(a)}static fromDecodedValue(t){const a=new me.Binary;return a.setEncodedValue(t),pt.fromICALJs(a)}}class Lt extends Yt{get weeks(){return this._innerValue.weeks}set weeks(t){if(this._modifyContent(),t<0)throw new TypeError("Weeks cannot be negative, use isNegative instead");this._innerValue.weeks=t}get days(){return this._innerValue.days}set days(t){if(this._modifyContent(),t<0)throw new TypeError("Days cannot be negative, use isNegative instead");this._innerValue.days=t}get hours(){return this._innerValue.hours}set hours(t){if(this._modifyContent(),t<0)throw new TypeError("Hours cannot be negative, use isNegative instead");this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){if(this._modifyContent(),t<0)throw new TypeError("Minutes cannot be negative, use isNegative instead");this._innerValue.minutes=t}get seconds(){return this._innerValue.seconds}set seconds(t){if(this._modifyContent(),t<0)throw new TypeError("Seconds cannot be negative, use isNegative instead");this._innerValue.seconds=t}get isNegative(){return this._innerValue.isNegative}set isNegative(t){this._modifyContent(),this._innerValue.isNegative=!!t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}addDuration(t){this._modifyContent(),this.totalSeconds+=t.totalSeconds,this._innerValue.normalize()}subtractDuration(t){this._modifyContent(),this.totalSeconds-=t.totalSeconds,this._innerValue.normalize()}clone(){return Lt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Lt(t)}static fromSeconds(t){const a=me.Duration.fromSeconds(t);return new Lt(a)}static fromData(t){const a=me.Duration.fromData(t);return new Lt(a)}}class Te extends Yt{get year(){return this._innerValue.year}set year(t){this._modifyContent(),this._innerValue.year=t}get month(){return this._innerValue.month}set month(t){if(this._modifyContent(),t<1||t>12)throw new TypeError("Month out of range");this._innerValue.month=t}get day(){return this._innerValue.day}set day(t){if(this._modifyContent(),t<1||t>31)throw new TypeError("Day out of range");this._innerValue.day=t}get hour(){return this._innerValue.hour}set hour(t){if(this._modifyContent(),t<0||t>23)throw new TypeError("Hour out of range");this._innerValue.hour=t}get minute(){return this._innerValue.minute}set minute(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Minute out of range");this._innerValue.minute=t}get second(){return this._innerValue.second}set second(t){if(this._modifyContent(),t<0||t>59)throw new TypeError("Second out of range");this._innerValue.second=t}get timezoneId(){return this._innerValue.zone.tzid&&this._innerValue.zone.tzid!=="floating"&&this._innerValue.zone.tzid==="UTC"?this._innerValue.zone.tzid:this._innerValue.timezone?this._innerValue.timezone:this._innerValue.zone.tzid||null}get isDate(){return this._innerValue.isDate}set isDate(t){this._modifyContent(),this._innerValue.isDate=!!t,t&&(this._innerValue.hour=0,this._innerValue.minute=0,this._innerValue.second=0)}get unixTime(){return this._innerValue.toUnixTime()}get jsDate(){return this._innerValue.toJSDate()}addDuration(t){this._innerValue.addDuration(t.toICALJs())}subtractDateWithoutTimezone(t){const a=this._innerValue.subtractDate(t.toICALJs());return Lt.fromICALJs(a)}subtractDateWithTimezone(t){const a=this._innerValue.subtractDateTz(t.toICALJs());return Lt.fromICALJs(a)}compare(t){return this._innerValue.compare(t.toICALJs())}compareDateOnlyInGivenTimezone(t,a){return this._innerValue.compareDateOnlyTz(t.toICALJs(),a.toICALTimezone())}getInTimezone(t){const a=this._innerValue.convertToZone(t.toICALTimezone());return Te.fromICALJs(a)}getICALTimezone(){return this._innerValue.zone}getInICALTimezone(t){const a=this._innerValue.convertToZone(t);return Te.fromICALJs(a)}getInUTC(){const t=this._innerValue.convertToZone(me.Timezone.utcTimezone);return Te.fromICALJs(t)}silentlyReplaceTimezone(t){this._modify(),this._innerValue=new me.Time({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate,timezone:t})}replaceTimezone(t){this._modifyContent(),this._innerValue=me.Time.fromData({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate},t.toICALTimezone())}utcOffset(){return this._innerValue.utcOffset()}isFloatingTime(){return this._innerValue.zone.tzid==="floating"}clone(){return Te.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Te(t)}static fromJSDate(t,a=!1){const i=me.Time.fromJSDate(t,a);return Te.fromICALJs(i)}static fromData(t,a){const i=me.Time.fromData(t,a?a.toICALTimezone():void 0);return Te.fromICALJs(i)}}Te.SUNDAY=me.Time.SUNDAY,Te.MONDAY=me.Time.MONDAY,Te.TUESDAY=me.Time.TUESDAY,Te.WEDNESDAY=me.Time.WEDNESDAY,Te.THURSDAY=me.Time.THURSDAY,Te.FRIDAY=me.Time.FRIDAY,Te.SATURDAY=me.Time.SATURDAY,Te.DEFAULT_WEEK_START=Te.MONDAY;class Tt extends Yt{constructor(...t){super(...t),this._start=Te.fromICALJs(this._innerValue.start),this._end=null,this._duration=null}get start(){return this._start}set start(t){this._modifyContent(),this._start=t,this._innerValue.start=t.toICALJs()}get end(){return this._end||(this._duration&&(this._duration.lock(),this._duration=null),this._innerValue.end=this._innerValue.getEnd(),this._end=Te.fromICALJs(this._innerValue.end),this._innerValue.duration=null,this.isLocked()&&this._end.lock()),this._end}set end(t){this._modifyContent(),this._innerValue.duration=null,this._innerValue.end=t.toICALJs(),this._end=t}get duration(){return this._duration||(this._end&&(this._end.lock(),this._end=null),this._innerValue.duration=this._innerValue.getDuration(),this._duration=Lt.fromICALJs(this._innerValue.duration),this._innerValue.end=null,this.isLocked()&&this._duration.lock()),this._duration}set duration(t){this._modifyContent(),this._innerValue.end=null,this._innerValue.duration=t.toICALJs(),this._duration=t}lock(){super.lock(),this.start.lock(),this._end&&this._end.lock(),this._duration&&this._duration.lock()}unlock(){super.unlock(),this.start.unlock(),this._end&&this._end.unlock(),this._duration&&this._duration.unlock()}clone(){return Tt.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Tt(t)}static fromDataWithEnd(t){const a=me.Period.fromData({start:t.start.toICALJs(),end:t.end.toICALJs()});return Tt.fromICALJs(a)}static fromDataWithDuration(t){const a=me.Period.fromData({start:t.start.toICALJs(),duration:t.duration.toICALJs()});return Tt.fromICALJs(a)}}const ZE=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Pn extends Yt{constructor(t,a){super(t),this._until=a}get interval(){return this._innerValue.interval}set interval(t){this._modifyContent(),this._innerValue.interval=parseInt(t,10)}get weekStart(){return this._innerValue.wkst}set weekStart(t){if(this._modifyContent(),tTe.SATURDAY)throw new TypeError("Weekstart out of range");this._innerValue.wkst=t}get until(){return!this._until&&this._innerValue.until&&(this._until=Te.fromICALJs(this._innerValue.until)),this._until}set until(t){this._modifyContent(),this._until&&this._until.lock(),this._until=t,this._innerValue.count=null,this._innerValue.until=t.toICALJs()}get count(){return this._innerValue.count}set count(t){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=parseInt(t,10)}get frequency(){return this._innerValue.freq}set frequency(t){if(this._modifyContent(),!ZE.includes(t))throw new TypeError("Unknown frequency");this._innerValue.freq=t}setToInfinite(){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=null}isFinite(){return this._innerValue.isFinite()}isByCount(){return this._innerValue.isByCount()}addComponent(t,a){this._modifyContent(),this._innerValue.addComponent(t,a)}setComponent(t,a){this._modifyContent(),a.length===0?delete this._innerValue.parts[t.toUpperCase()]:this._innerValue.setComponent(t,a)}removeComponent(t){delete this._innerValue.parts[Ce(t)]}getComponent(t){return this._innerValue.getComponent(t)}isRuleValid(){return!0}lock(){super.lock(),this._until&&this._until.lock()}unlock(){super.unlock(),this._until&&this._until.unlock()}clone(){return Pn.fromICALJs(this._innerValue.clone())}static fromICALJs(t,a=null){return new Pn(t,a)}static fromData(t){let a=null;t.until&&(a=t.until,t.until=t.until.toICALJs());const i=me.Recur.fromData(t);return Pn.fromICALJs(i,a)}}class Hi extends Yt{get hours(){return this._innerValue.hours}set hours(t){this._modifyContent(),this._innerValue.hours=t}get minutes(){return this._innerValue.minutes}set minutes(t){this._modifyContent(),this._innerValue.minutes=t}get factor(){return this._innerValue.factor}set factor(t){if(this._modifyContent(),t!==1&&t!==-1)throw new TypeError("Factor may only be set to 1 or -1");this._innerValue.factor=t}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(t){this._modifyContent(),this._innerValue.fromSeconds(t)}compare(t){return this._innerValue.compare(t.toICALJs())}clone(){return Hi.fromICALJs(this._innerValue.clone())}static fromICALJs(t){return new Hi(t)}static fromData(t){const a=new me.UtcOffset;return a.fromData(t),Hi.fromICALJs(a)}static fromSeconds(t){const a=me.UtcOffset.fromSeconds(t);return Hi.fromICALJs(a)}}class IE extends Error{}function jE(e){switch(ra(e)){case"binary":return pt;case"date":case"date-time":return Te;case"duration":return Lt;case"period":return Tt;case"recur":return Pn;case"utc-offset":return Hi;default:throw new IE}}class Dt extends Ao(yo(class{})){constructor(t,a=null,i=[],n=null,r=null){super(),this._name=Ce(t),this._value=a,this._parameters=new Map,this._root=n,this._parent=r,this._setParametersFromConstructor(i),a instanceof Yt&&a.subscribe(()=>this._notifySubscribers())}get name(){return this._name}get value(){return this._value}set value(t){this._modifyContent(),this._value=t,t instanceof Yt&&t.subscribe(()=>this._notifySubscribers())}get root(){return this._root}set root(t){this._modify(),this._root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstValue(){if(this.isMultiValue()){if(this.value.length>0)return this.value[0]}else return this.value;return null}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}addValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");this._modifyContent(),this.value.push(t)}hasValue(t){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");return this.value.includes(t)}removeValue(t){if(!this.hasValue(t))return;this._modifyContent();const a=this.value.indexOf(t);this.value.splice(a,1)}setParameter(t){this._modify(),this._parameters.set(t.name,t),t.subscribe(()=>this._notifySubscribers())}getParameter(t){return this._parameters.get(Ce(t))}*getParametersIterator(){yield*this._parameters.values()}getParameterFirstValue(t){const a=this.getParameter(t);return a instanceof xn?a.isMultiValue()?a.value[0]:a.value:null}hasParameter(t){return this._parameters.has(Ce(t))}deleteParameter(t){this._modify(),this._parameters.delete(Ce(t))}updateParameterIfExist(t,a){if(this._modify(),this.hasParameter(t)){const i=this.getParameter(t);i.value=a}else{const i=new xn(Ce(t),a);this.setParameter(i)}}isMultiValue(){return Array.isArray(this._value)}isDecoratedValue(){return this.isMultiValue()?this._value[0]instanceof Yt:this._value instanceof Yt}lock(){super.lock();for(const t of this.getParametersIterator())t.lock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.lock()}unlock(){super.unlock();for(const t of this.getParametersIterator())t.unlock();if(this.isDecoratedValue())for(const t of this.getValueIterator())t.unlock()}clone(){const t=[];for(const a of this.getParametersIterator())t.push(a.clone());return new this.constructor(this.name,this._cloneValue(),t,this.root,this.parent)}_cloneValue(){return this.isDecoratedValue()?this.isMultiValue()?this._value.map(t=>t.clone()):this._value.clone():this.isMultiValue()?this._value.slice():this._value}_setParametersFromConstructor(t){t.forEach(a=>{a instanceof xn||(a=new xn(a[0],a[1])),this.setParameter(a)})}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Property))throw new vf;let n;if(t.isDecorated){const o=jE(t.getFirstValue().icaltype);t.isMultiValue?n=t.getValues().map(s=>o.fromICALJs(s)):n=o.fromICALJs(t.getFirstValue())}else t.isMultiValue?n=t.getValues():n=t.getFirstValue();const r=[];return Object.keys(Object.assign({},t.toJSON()[1])).forEach(o=>{Ce(o)!=="TZID"&&r.push([o,t.getParameter(o)])}),new this(t.name,n,r,a,i)}toICALJs(){const t=cu(ra(this.name));this.isMultiValue()?this.isDecoratedValue()?t.setValues(this.value.map(i=>i.toICALJs())):t.setValues(this.value):this.isDecoratedValue()?t.setValue(this.value.toICALJs()):t.setValue(this.value);for(const i of this.getParametersIterator())t.setParameter(ra(i.name),i.value);const a=this.getFirstValue();return a instanceof Te&&a.timezoneId!=="floating"&&a.timezoneId!=="UTC"&&!a.isDate&&t.setParameter("tzid",a.timezoneId),t}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Si extends Dt{get formatType(){return this.getParameterFirstValue("FMTTYPE")}set formatType(t){this.updateParameterIfExist("FMTTYPE",t)}get uri(){return this._value instanceof pt?null:this._value}set uri(t){this.value=t}get encoding(){return this._value instanceof pt?"BASE64":null}get data(){return this._value instanceof pt?this._value.value:null}set data(t){this.value instanceof pt?this.value.value=t:this.value=pt.fromDecodedValue(t)}toICALJs(){const t=super.toICALJs();return this._value instanceof pt&&this.getParameterFirstValue("ENCODING")!=="BASE64"&&t.setParameter("ENCODING","BASE64"),t}static fromData(t,a=null){const i=pt.fromDecodedValue(t),n=new Si("ATTACH",i);return a&&(n.formatType=a),n}static fromLink(t,a=null){const i=new Si("ATTACH",t);return a&&(i.formatType=a),i}}class na extends Dt{get role(){const t=["CHAIR","REQ-PARTICIPANT","OPT-PARTICIPANT","NON-PARTICIPANT"],a="REQ-PARTICIPANT";if(this.hasParameter("ROLE")){const i=this.getParameterFirstValue("ROLE");if(t.includes(i))return i}return a}set role(t){this.updateParameterIfExist("ROLE",t)}get userType(){const t=["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"];if(this.hasParameter("CUTYPE")){const a=this.getParameterFirstValue("CUTYPE");return t.includes(a)?a:"UNKNOWN"}else return"INDIVIDUAL"}set userType(t){this.updateParameterIfExist("CUTYPE",t)}get rsvp(){if(this.hasParameter("RSVP")){const t=this.getParameterFirstValue("RSVP");return Ce(t)==="TRUE"}else return!1}set rsvp(t){this.updateParameterIfExist("RSVP",t?"TRUE":"FALSE")}get commonName(){return this.getParameterFirstValue("CN")}set commonName(t){this.updateParameterIfExist("CN",t)}get participationStatus(){let t;this.parent?t=this.parent.name:t="VEVENT";const a={VEVENT:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED"],VJOURNAL:["NEEDS-ACTION","ACCEPTED","DECLINED"],VTODO:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"]};if(this.hasParameter("PARTSTAT")){const i=this.getParameterFirstValue("PARTSTAT");return a[t].includes(i)?i:"NEEDS-ACTION"}else return"NEEDS-ACTION"}set participationStatus(t){this.updateParameterIfExist("PARTSTAT",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}get email(){return this.value}set email(t){this.value=Y0(t,"mailto:")}get member(){return this.getParameter("MEMBER")?.value??null}set member(t){t=t.map(a=>Y0(a,"mailto:")),this.updateParameterIfExist("MEMBER",t)}isOrganizer(){return this._name==="ORGANIZER"}static fromNameAndEMail(t,a,i=!1){const n=i?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(n,a,[["CN",t]])}static fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,o=!1){const s=o?"ORGANIZER":"ATTENDEE";return a=Y0(a,"mailto:"),new na(s,a,[["CN",t],["ROLE",i],["CUTYPE",n],["RSVP",r?"TRUE":"FALSE"]])}}me.design.icalendar.property.conference={defaultType:"uri"},me.design.icalendar.param.feature={valueType:"cal-address",multiValue:","};class b0 extends Dt{*getFeatureIterator(){this.hasParameter("FEATURE")&&(yield*this.getParameter("FEATURE").getValueIterator())}listAllFeatures(){return this.hasParameter("FEATURE")?this.getParameter("FEATURE").value.slice():[]}addFeature(t){if(this._modify(),!this.hasParameter("FEATURE"))this.updateParameterIfExist("FEATURE",[t]);else{if(this.hasFeature(t))return;this.getParameter("FEATURE").value.push(t)}}removeFeature(t){if(this._modify(),!this.hasFeature(t))return;const a=this.getParameter("FEATURE"),i=a.value.indexOf(t);a.value.splice(i,1)}clearAllFeatures(){this.deleteParameter("FEATURE")}hasFeature(t){if(!this.hasParameter("FEATURE"))return!1;const a=this.getParameter("FEATURE");return Array.isArray(a.value)?a.value.includes(t):!1}get label(){return this.getParameterFirstValue("LABEL")}set label(t){this.updateParameterIfExist("LABEL",t)}get uri(){return this.value}set uri(t){this.value=t}toICALJs(){const t=super.toICALJs();return t.setParameter("value","URI"),t}static fromURILabelAndFeatures(t,a=null,i=null){const n=new b0("CONFERENCE",t);return a&&n.updateParameterIfExist("label",a),i&&n.updateParameterIfExist("feature",i),n}}class hu extends Dt{get type(){const t=["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],a="BUSY";if(this.hasParameter("FBTYPE")){const i=this.getParameterFirstValue("FBTYPE");if(t.includes(i))return i}return a}set type(t){this.updateParameterIfExist("FBTYPE",t)}static fromPeriodAndType(t,a){return new hu("FREEBUSY",t,[["fbtype",a]])}}class y0 extends Dt{constructor(t,a=[0,0],i=[],n=null,r=null){super(t,a,i,n,r)}get latitude(){return this._value[0]}set latitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[0]=t}get longitude(){return this._value[1]}set longitude(t){this._modifyContent(),typeof t!="number"&&(t=parseFloat(t)),this._value[1]=t}toICALJs(){const t=cu(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromPosition(t,a){return new y0("GEO",[t,a])}}class un extends Si{get display(){return this.getParameterFirstValue("DISPLAY")||"BADGE"}set display(t){this.updateParameterIfExist("DISPLAY",t)}static fromData(t,a=null,i=null){const n=pt.fromDecodedValue(t),r=new un("IMAGE",n);return a&&(r.display=a),i&&(r.formatType=i),r}static fromLink(t,a=null,i=null){const n=new un("IMAGE",t);return a&&(n.display=a),i&&(n.formatType=i),n}}class So extends Dt{get relationType(){const t=["PARENT","CHILD","SIBLING"],a="PARENT";if(this.hasParameter("RELTYPE")){const i=this.getParameterFirstValue("RELTYPE");return t.includes(i)?i:a}else return a}set relationType(t){this.updateParameterIfExist("RELTYPE",t)}get relatedId(){return this.value}set relatedId(t){this.value=t}static fromRelTypeAndId(t,a){return new So("RELATED-TO",a,[["RELTYPE",t]])}}class ke extends Dt{constructor(t,a=["1","Pending"],i=[],n=null,r=null){super(t,a,i,n,r)}get statusCode(){return parseFloat(this.value[0])}set statusCode(t){this._modifyContent(),this.value[0]=t.toString(),t===Math.floor(t)&&(this.value[0]+=".0")}get statusMessage(){return this.value[1]}set statusMessage(t){this._modifyContent(),this.value[1]=t}get exceptionData(){return this.value[2]?this.value[2]:null}set exceptionData(t){this._modifyContent(),this.value[2]=t}isPending(){return this.statusCode>=1&&this.statusCode<2}isSuccessful(){return this.statusCode>=2&&this.statusCode<3}isClientError(){return this.statusCode>=3&&this.statusCode<4}isSchedulingError(){return this.statusCode>=4&&this.statusCode<5}toICALJs(){const t=cu(ra(this.name));return t.setValue(this.value),this._parameters.forEach(a=>{t.setParameter(ra(a.name),a.value)}),t}static fromCodeAndMessage(t,a){return new ke("REQUEST-STATUS",[t.toString(),a])}}ke.SUCCESS=[2,"Success"],ke.SUCCESS_FALLBACK=[2.1,"Success, but fallback taken on one or more property values."],ke.SUCCESS_PROP_IGNORED=[2.2,"Success; invalid property ignored."],ke.SUCCESS_PROPPARAM_IGNORED=[2.3,"Success; invalid property parameter ignored."],ke.SUCCESS_NONSTANDARD_PROP_IGNORED=[2.4,"Success; unknown, non-standard property ignored."],ke.SUCCESS_NONSTANDARD_PROPPARAM_IGNORED=[2.5,"Success; unknown, non-standard property value ignored."],ke.SUCCESS_COMP_IGNORED=[2.6,"Success; invalid calendar component ignored."],ke.SUCCESS_FORWARDED=[2.7,"Success; request forwarded to Calendar User."],ke.SUCCESS_REPEATING_IGNORED=[2.8,"Success; repeating event ignored. Scheduled as a single component."],ke.SUCCESS_TRUNCATED_END=[2.9,"Success; truncated end date time to date boundary."],ke.SUCCESS_REPEATING_VTODO_IGNORED=[2.1,"Success; repeating VTODO ignored. Scheduled as a single VTODO."],ke.SUCCESS_UNBOUND_RRULE_CLIPPED=[2.11,"Success; unbounded RRULE clipped at some finite number of instances."],ke.CLIENT_INVALID_PROPNAME=[3,"Invalid property name."],ke.CLIENT_INVALID_PROPVALUE=[3.1,"Invalid property value."],ke.CLIENT_INVALID_PROPPARAM=[3.2,"Invalid property parameter."],ke.CLIENT_INVALID_PROPPARAMVALUE=[3.3,"Invalid property parameter value."],ke.CLIENT_INVALUD_CALENDAR_COMP_SEQ=[3.4,"Invalid calendar component sequence."],ke.CLIENT_INVALID_DATE_TIME=[3.5,"Invalid date or time."],ke.CLIENT_INVALID_RRULE=[3.6,"Invalid rule."],ke.CLIENT_INVALID_CU=[3.7,"Invalid Calendar User."],ke.CLIENT_NO_AUTHORITY=[3.8,"No authority."],ke.CLIENT_UNSUPPORTED_VERSION=[3.9,"Unsupported version."],ke.CLIENT_TOO_LARGE=[3.1,"Request entity too large."],ke.CLIENT_REQUIRED_COMP_OR_PROP_MISSING=[3.11,"Required component or property missing."],ke.CLIENT_UNKNOWN_COMP_OR_PROP=[3.12,"Unknown component or property found."],ke.CLIENT_UNSUPPORTED_COMP_OR_PROP=[3.13,"Unsupported component or property found."],ke.CLIENT_UNSUPPORTED_CAPABILITY=[3.14,"Unsupported capability."],ke.SCHEDULING_EVENT_CONFLICT=[4,"Event conflict. Date/time is busy."],ke.SERVER_REQUEST_NOT_SUPPORTED=[5,"Request not supported."],ke.SERVER_SERVICE_UNAVAILABLE=[5.1,"Service unavailable."],ke.SERVER_INVALID_CALENDAR_SERVICE=[5.2,"Invalid calendar service."],ke.SERVER_NO_SCHEDULING_FOR_USER=[5.3,"No scheduling support for user."];class Br extends Dt{get alternateText(){return this.getParameterFirstValue("ALTREP")}set alternateText(t){this.updateParameterIfExist("ALTREP",t)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(t){this.updateParameterIfExist("LANGUAGE",t)}}class Wa extends Dt{get related(){return this.hasParameter("RELATED")?this.getParameterFirstValue("RELATED"):"START"}set related(t){this.updateParameterIfExist("RELATED",t)}get value(){return super.value}set value(t){super.value=t,t instanceof Te&&(this.deleteParameter("RELATED"),super.value=t.getInUTC())}isRelative(){return this.getFirstValue()instanceof Lt}static fromAbsolute(t){return new Wa("TRIGGER",t)}static fromRelativeAndRelated(t,a=!0){return new Wa("TRIGGER",t,[["RELATED",a?"START":"END"]])}}function rs(e){switch(Ce(e)){case"ATTACH":return Si;case"ATTENDEE":case"ORGANIZER":return na;case"CONFERENCE":return b0;case"FREEBUSY":return hu;case"GEO":return y0;case"IMAGE":return un;case"RELATED-TO":return So;case"REQUEST-STATUS":return ke;case"TRIGGER":return Wa;case"COMMENT":case"CONTACT":case"DESCRIPTION":case"LOCATION":case"SUMMARY":return Br;default:return Dt}}class Na extends Ao(yo(class{})){constructor(t,a=[],i=[],n=null,r=null){super(),this._name=Ce(t),this._properties=new Map,this._components=new Map,this._root=n,this._parent=r,this._setPropertiesFromConstructor(a),this._setComponentsFromConstructor(i)}get name(){return this._name}get root(){return this._root}set root(t){this._modify(),this._root=t;for(const a of this.getPropertyIterator())a.root=t;for(const a of this.getComponentIterator())a.root=t}get parent(){return this._parent}set parent(t){this._modify(),this._parent=t}getFirstProperty(t){return this._properties.has(Ce(t))?this._properties.get(Ce(t))[0]:null}getFirstPropertyFirstValue(t){const a=this.getFirstProperty(t);return a?a.getFirstValue():null}updatePropertyWithValue(t,a){this._modify();const i=this.getFirstProperty(t);if(i)i.value=a;else{const n=rs(t),r=new n(t,a,[],this,this.root);this.addProperty(r)}}*getPropertyIterator(t=null){if(t){if(!this.hasProperty(t))return;yield*this._properties.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._properties.keys())yield*this.getPropertyIterator(a)}*_getAllOfPropertyByLang(t,a){for(const i of this.getPropertyIterator(t))i.getParameterFirstValue("LANGUAGE")===a&&(yield i)}_getFirstOfPropertyByLang(t,a){return this._getAllOfPropertyByLang(t,a).next().value||null}addProperty(t){if(this._modify(),t.root=this.root,t.parent=this,this._properties.has(t.name)){const a=this._properties.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._properties.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasProperty(t){return this._properties.has(Ce(t))}deleteProperty(t){if(this._modify(),!this._properties.has(t.name))return!1;const a=this._properties.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._properties.delete(t.name):a.splice(i,1),!0)}deleteAllProperties(t){return this._modify(),this._properties.delete(Ce(t))}getFirstComponent(t){return this.hasComponent(t)?this._components.get(Ce(t))[0]:null}*getComponentIterator(t){if(t){if(!this.hasComponent(t))return;yield*this._components.get(Ce(t)).slice()[Symbol.iterator]()}else for(const a of this._components.keys())yield*this.getComponentIterator(a)}addComponent(t){if(this._modify(),t.root=this.root,t.parent=this,this._components.has(t.name)){const a=this._components.get(t.name);if(a.indexOf(t)!==-1)return!1;a.push(t)}else this._components.set(t.name,[t]);return t.subscribe(()=>this._notifySubscribers()),!0}hasComponent(t){return this._components.has(Ce(t))}deleteComponent(t){if(this._modify(),!this._components.has(t.name))return!1;const a=this._components.get(t.name),i=a.indexOf(t);return i===-1?!1:(i!==-1&&a.length===1?this._components.delete(t.name):a.splice(i,1),!0)}deleteAllComponents(t){return this._modify(),this._components.delete(Ce(t))}lock(){super.lock();for(const t of this.getPropertyIterator())t.lock();for(const t of this.getComponentIterator())t.lock()}unlock(){super.unlock();for(const t of this.getPropertyIterator())t.unlock();for(const t of this.getComponentIterator())t.unlock()}clone(){const t=[];for(const i of this.getPropertyIterator())t.push(i.clone());const a=[];for(const i of this.getComponentIterator())a.push(i.clone());return new this.constructor(this.name,t,a,this.root,this.parent)}_setPropertiesFromConstructor(t){for(let a of t){if(Array.isArray(a)){const i=rs(a[0]);a=new i(a[0],a[1])}this.addProperty(a)}}_setComponentsFromConstructor(t){for(const a of t)this.addComponent(a)}static fromICALJs(t,a=null,i=null){if(!(t instanceof me.Component))throw new vf;const n=t.name,r=new this(n,[],[],a,i);for(const o of t.getAllProperties()){const s=rs(o.name).fromICALJs(o,a,r);r.addProperty(s)}for(const o of t.getAllSubcomponents()){const s=this._getConstructorForComponentName(o.name).fromICALJs(o,a,r);r.addComponent(s)}return r}static _getConstructorForComponentName(t){return Na}toICALJs(){const t=LE(ra(this.name));for(const a of this.getPropertyIterator())t.addProperty(a.toICALJs());for(const a of this.getComponentIterator())t.addSubcomponent(a.toICALJs());return t}}function ve(e,t,a=!0){t=GE(t),Object.defineProperty(e,t.name,{get(){const i=this.getFirstPropertyFirstValue(t.iCalendarName);return i?Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i)?t.unknownValue:i:t.defaultValue},set(i){if(this._modify(),i===null){this.deleteAllProperties(t.iCalendarName);return}if(Array.isArray(t.allowedValues)&&!t.allowedValues.includes(i))throw new TypeError("Illegal value");this.updatePropertyWithValue(t.iCalendarName,i)}})}function xt(e,t){t=Rf(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getPropertyIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteProperty(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllProperties(t.iCalendarName)}}function fu(e,t){t=Rf(t),e["get"+ot(t.name)+"Iterator"]=function*(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))yield*i.getValueIterator()},e["get"+ot(t.name)+"List"]=function(a=null){return Array.from(this["get"+ot(t.name)+"Iterator"](a))},e["add"+ot(t.name)]=function(a,i=null){const n=this._getFirstOfPropertyByLang(t.iCalendarName,i);if(n)n.addValue(a);else{const r=new Dt(t.iCalendarName,[a]);if(i){const o=new xn("LANGUAGE",i);r.setParameter(o)}this.addProperty(r)}},e["remove"+ot(t.name)]=function(a,i=null){for(const n of this._getAllOfPropertyByLang(t.iCalendarName,i))if(n.isMultiValue()&&n.hasValue(a))return n.value.length===1?(this.deleteProperty(n),!0):(n.removeValue(a),!0);return!1},e["clearAll"+ot(t.pluralName)]=function(a=null){for(const i of this._getAllOfPropertyByLang(t.iCalendarName,a))this.deleteProperty(i)}}function PE(e,t){t=UE(t),e["get"+ot(t.name)+"Iterator"]=function*(){yield*this.getComponentIterator(t.iCalendarName)},e["get"+ot(t.name)+"List"]=function(){return Array.from(this["get"+ot(t.name)+"Iterator"]())},e["remove"+ot(t.name)]=function(a){this.deleteComponent(a)},e["clearAll"+ot(t.pluralName)]=function(){this.deleteAllComponents(t.iCalendarName)}}function GE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s",allowedValues:null,defaultValue:null,unknownValue:null},e)}function Rf(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:Ce(e.name),pluralName:e.name+"s"},e)}function UE(e){return typeof e=="string"&&(e={name:e}),Object.assign({},{iCalendarName:"V"+Ce(e.name),pluralName:e.name+"s"},e)}function Oa(){return new Date}class qE extends Error{}class HE{constructor(t){this._masterItem=t,this._recurrenceExceptionItems=new Map,this._rangeRecurrenceExceptionItemsIndex=[],this._rangeRecurrenceExceptionItemsDiffCache=new Map,this._rangeRecurrenceExceptionItems=new Map}get masterItem(){return this._masterItem}set masterItem(t){this._masterItem=t}*getRecurrenceExceptionIterator(){yield*this._recurrenceExceptionItems.values()}getRecurrenceExceptionList(){return Array.from(this.getRecurrenceExceptionIterator())}hasRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.has(t)}getRecurrenceException(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._recurrenceExceptionItems.get(t)||null}hasRangeRecurrenceExceptionForId(t){return t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsIndex.length===0?!1:this._rangeRecurrenceExceptionItemsIndex[0]n-r);if(a===0)return null;const i=this._rangeRecurrenceExceptionItemsIndex[a-1];return this._rangeRecurrenceExceptionItems.get(i)}getRangeRecurrenceExceptionDiff(t){if(t instanceof Te?t=t.unixTime:t instanceof me.Time&&(t=t.toUnixTime()),this._rangeRecurrenceExceptionItemsDiffCache.has(t))return this._rangeRecurrenceExceptionItemsDiffCache.get(t);const a=this.getRangeRecurrenceExceptionForId(t);if(!a)return null;const i=a.recurrenceId,n=a.startDate.subtractDateWithTimezone(i);return n.lock(),this._rangeRecurrenceExceptionItemsDiffCache.set(t,n),n}relateRecurrenceException(t){this._modify();const a=this._getRecurrenceIdKey(t);if(this._recurrenceExceptionItems.set(a,t),t.modifiesFuture()){this._rangeRecurrenceExceptionItems.set(a,t);const i=me.helpers.binsearchInsert(this._rangeRecurrenceExceptionItemsIndex,a,(n,r)=>n-r);this._rangeRecurrenceExceptionItemsIndex.splice(i,0,a)}t.recurrenceManager=this}removeRecurrenceException(t){const a=this._getRecurrenceIdKey(t);this.removeRecurrenceExceptionByRecurrenceId(a)}removeRecurrenceExceptionByRecurrenceId(t){this._modify(),this._recurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItems.delete(t),this._rangeRecurrenceExceptionItemsDiffCache.delete(t);const a=this._rangeRecurrenceExceptionItemsIndex.indexOf(t);a!==-1&&this._rangeRecurrenceExceptionItemsIndex.splice(a,1)}_getRecurrenceIdKey(t){return t.recurrenceId.unixTime}*getRecurrenceRuleIterator(){for(const t of this._masterItem.getPropertyIterator("RRULE"))yield t.getFirstValue()}getRecurrenceRuleList(){return Array.from(this.getRecurrenceRuleIterator())}addRecurrenceRule(t){this._modify(),this.resetCache();const a=new Dt("RRULE",t);this._masterItem.addProperty(a)}removeRecurrenceRule(t){this._modify(),this.resetCache();for(const a of this._masterItem.getPropertyIterator("RRULE"))a.getFirstValue()===t&&this._masterItem.deleteProperty(a)}clearAllRecurrenceRules(){this._modify(),this.resetCache(),this._masterItem.deleteAllProperties("RRULE")}*getRecurrenceDateIterator(t=!1,a=null){for(const i of this._getPropertiesForRecurrenceDate(t,a))yield*i.getValueIterator()}listAllRecurrenceDates(t=!1,a=null){return Array.from(this.getRecurrenceDateIterator(t,a))}addRecurrenceDate(t=!1,a){this._modify(),this.resetCache();let i=null;a instanceof Te&&!a.isDate&&(i=a.timezoneId);const n=this._getValueTypeByValue(a),r=this._getPropertiesForRecurrenceDate(t,n,i).next.value;if(r instanceof Dt)r.value.push(a),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE");else{const o=this._getPropertyNameByIsNegative(t),s=new Dt(o,a);this._masterItem.addProperty(s)}}hasRecurrenceDate(t=!1,a){for(let i of this.getRecurrenceDateIterator(t))if(i instanceof Tt&&(i=i.start),i.compare(a)===0)return!0;return!1}getRecurrenceDate(t=!1,a){for(const i of this.getRecurrenceDateIterator(t)){let n=i;if(n instanceof Tt&&(n=n.start),n.compare(a)===0)return i}return null}removeRecurrenceDate(t=!1,a){this._modify(),this.resetCache();const i=this._getValueTypeByValue(a);for(const n of this._getPropertiesForRecurrenceDate(t,i))for(const r of n.getValueIterator())if(a===r){const o=n.value;if(o.length===1){this.masterItem.deleteProperty(n);continue}const s=o.indexOf(a);o.splice(s,1),this.masterItem.markPropertyAsDirty(t?"EXDATE":"RDATE")}}clearAllRecurrenceDates(t=!1,a=null){this._modify(),this.resetCache();for(const i of this._getPropertiesForRecurrenceDate(t,a))this._masterItem.deleteProperty(i)}_getPropertyNameByIsNegative(t){return t?"EXDATE":"RDATE"}_getValueTypeByValue(t){return t instanceof Tt?"PERIOD":t.isDate?"DATE":"DATETIME"}*_getPropertiesForRecurrenceDate(t,a,i=null){const n=this._getPropertyNameByIsNegative(t);for(const r of this._masterItem.getPropertyIterator(n))a===null?yield r:Ce(a)==="PERIOD"&&r.getFirstValue()instanceof Tt?yield r:Ce(a)==="DATE"&&r.getFirstValue().isDate?yield r:Ce(a)==="DATETIME"&&!r.getFirstValue().isDate&&(i===null||r.getFirstValue().timezoneId===i)&&(yield r)}isFinite(){return this.getRecurrenceRuleList().every(t=>t.isFinite())}isEmptyRecurrenceSet(){return this._getRecurExpansionObject().next()===void 0}getOccurrenceAtExactly(t){if(!this.masterItem.isRecurring())return this.masterItem.getReferenceRecurrenceId().compare(t)===0?this.masterItem:null;const a=this._getRecurExpansionObject(),i=t.toICALJs();let n;for(;n=a.next();){if(n.compare(i)===0)return this._getOccurrenceAtRecurrenceId(Te.fromICALJs(n));if(n.compare(i)===1)return null}return null}getClosestOccurrence(t){if(!this.masterItem.isRecurring())return this.masterItem;const a=this._getRecurExpansionObject();t=t.toICALJs();let i=null,n;for(;n=a.next();)if(n.compare(t)===-1)i=n;else{const o=Te.fromICALJs(n);return this._getOccurrenceAtRecurrenceId(o)}const r=Te.fromICALJs(i);return this._getOccurrenceAtRecurrenceId(r)}countAllOccurrencesBetween(t,a){if(!this.masterItem.isRecurring())return typeof this.masterItem.isInTimeFrame=="function"&&!this.masterItem.isInTimeFrame(t,a)?0:1;const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs();let o=0,s;for(;s=i.next();)if(s.compare(n)!==-1){if(s.compare(r)===1)break;o+=1}return o}*getAllOccurrencesBetweenIterator(t,a){if(!this.masterItem.isRecurring()){typeof this.masterItem.isInTimeFrame!="function"&&(yield this.masterItem),this.masterItem.isInTimeFrame(t,a)&&(yield this.masterItem);return}const i=this._getRecurExpansionObject(),n=t.toICALJs(),r=a.toICALJs(),o=Array.from(this._recurrenceExceptionItems.keys()),s=Math.max.apply(Math,o);let l;for(;l=i.next();){const d=Te.fromICALJs(l),u=this._getOccurrenceAtRecurrenceId(d);let c=null;switch(Ce(u.name)){case"VEVENT":case"VTODO":c=u.endDate.toICALJs();break;case"VJOURNAL":default:c=l;break}if(c.compare(n)===-1)continue;const f=u.startDate.toICALJs();if((!u.isRecurrenceException()||u.modifiesFuture())&&f.compare(r)===1){if(this._recurrenceExceptionItems.size===0||l.toUnixTime()>s)break;continue}typeof u.isInTimeFrame!="function"&&(yield u),u.isInTimeFrame(t,a)&&(yield u)}}getAllOccurrencesBetween(t,a){return Array.from(this.getAllOccurrencesBetweenIterator(t,a))}updateUID(t){this._masterItem.updatePropertyWithValue("UID",t);for(const a of this.getRecurrenceExceptionIterator())a.updatePropertyWithValue("UID",t)}updateStartDateOfMasterItem(t,a){const i=t.subtractDateWithTimezone(a);for(const n of this.getRecurrenceDateIterator(!0))this.hasRecurrenceDate(!1,n)||n.addDuration(i);for(const n of this.getRecurrenceExceptionIterator())this.hasRecurrenceDate(!1,n.recurrenceId)||(this.removeRecurrenceException(n),n.recurrenceId.addDuration(i),this.relateRecurrenceException(n));for(const n of this.getRecurrenceRuleIterator())n.until&&n.until.addDuration(i)}_getOccurrenceAtRecurrenceId(t){if(this.hasRecurrenceExceptionForId(t)){const a=this.getRecurrenceException(t);return a.canCreateRecurrenceExceptions()?a.forkItem(t):a}else if(this.hasRangeRecurrenceExceptionForId(t)){const a=this.getRangeRecurrenceExceptionForId(t),i=this.getRangeRecurrenceExceptionDiff(t);return a.forkItem(t,i)}else return t.compare(this._masterItem.startDate)===0?this._masterItem.canCreateRecurrenceExceptions()?this._masterItem.forkItem(t):this._masterItem:this._masterItem.forkItem(t)}resetCache(){}_getRecurExpansionObject(){if(this._masterItem.startDate===null)throw new qE;const t=this._masterItem.startDate.toICALJs();let a=t.clone();const i=[];let n;const r=[];let o=null;const s=[],l=!1;for(const c of this.getRecurrenceRuleIterator())i.push(c.toICALJs().iterator(t)),i[i.length-1].next();for(let c of this.getRecurrenceDateIterator()){c instanceof Tt&&(c=c.start),c=c.toICALJs();const f=me.helpers.binsearchInsert(r,c,(h,_)=>h.compare(_));r.splice(f,0,c)}r.length>0&&r[0].compare(t)===-1?(n=0,a=r[0].clone()):(n=me.helpers.binsearchInsert(r,t,(c,f)=>c.compare(f)),o=s[n]);for(let c of this.getRecurrenceDateIterator(!0)){c=c.toICALJs();const f=me.helpers.binsearchInsert(s,c,(h,_)=>h.compare(_));s.splice(f,0,c)}const d=me.helpers.binsearchInsert(s,t,(c,f)=>c.compare(f)),u=s[d];return new me.RecurExpansion({dtstart:t,last:a,ruleIterators:i,ruleDateInc:n,exDateInc:d,ruleDates:r,ruleDate:o,exDates:s,exDate:u,complete:l})}_modify(){if(this._masterItem.isLocked())throw new kf}}class kt{constructor(t,a){this._timezoneId=null,this._ics=null,this._innerValue=null,this._initialized=!1,t instanceof me.Timezone?(this._innerValue=t,this._initialized=!0):t instanceof me.Component?(this._innerValue=new me.Timezone(t),this._initialized=!0):(this._timezoneId=t,this._ics=a)}get timezoneId(){return this._initialized?this._innerValue.tzid:this._timezoneId}offsetForArray(t,a,i,n,r,o){this._initialize();const s=new me.Time({year:t,month:a,day:i,hour:n,minute:r,second:o,isDate:!1});return this._innerValue.utcOffset(s)}timestampToArray(t){this._initialize();const a=me.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0});a.fromUnixTime(Math.floor(t/1e3));const i=a.convertToZone(this._innerValue);return[i.year,i.month,i.day,i.hour,i.minute,i.second]}toICALTimezone(){return this._initialize(),this._innerValue}toICALJs(){return this._initialize(),this._innerValue.component}_initialize(){if(!this._initialized){const t=me.parse(this._ics),a=new me.Component(t);this._innerValue=new me.Timezone(a),this._initialized=!0}}}kt.utc=new kt(me.Timezone.utcTimezone),kt.floating=new kt(me.Timezone.localTimezone);class Kt extends Na{addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this.addProperty(i)}get trigger(){return this.getFirstProperty("TRIGGER")}setTriggerFromAbsolute(t){const a=Wa.fromAbsolute(t);this.deleteAllProperties("TRIGGER"),this.addProperty(a)}setTriggerFromRelative(t,a=!0){const i=Wa.fromRelativeAndRelated(t,a);this.deleteAllProperties("TRIGGER"),this.addProperty(i)}}ve(Kt.prototype,"action"),ve(Kt.prototype,"description"),ve(Kt.prototype,"summary"),ve(Kt.prototype,"duration"),ve(Kt.prototype,"repeat"),ve(Kt.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(Kt.prototype,"attendee");function zE(e){switch(Ce(e)){case"VALARM":return Kt;default:return Na}}class ze extends Na{constructor(...t){super(...t),this._primaryItem=null,this._isExactForkOfPrimary=!1,this._originalRecurrenceId=null,this._recurrenceManager=null,this._dirty=!1,this._significantChange=!1,this._cachedId=null}get primaryItem(){return this._primaryItem}set primaryItem(t){this._modify(),this._primaryItem=t}get isExactForkOfPrimary(){return this._isExactForkOfPrimary}set isExactForkOfPrimary(t){this._isExactForkOfPrimary=t}get originalRecurrenceId(){return this._originalRecurrenceId}set originalRecurrenceId(t){this._originalRecurrenceId=t}get recurrenceManager(){return this._recurrenceManager}set recurrenceManager(t){this._recurrenceManager=t}get masterItem(){return this.recurrenceManager.masterItem}isMasterItem(){return this.masterItem===this}get id(){return this._cachedId?this._cachedId:this.startDate===null?(this._cachedId=encodeURIComponent(this.uid),this._cachedId):(this._cachedId=[encodeURIComponent(this.uid),encodeURIComponent(this.getReferenceRecurrenceId().unixTime.toString())].join("###"),this._cachedId)}get uid(){return this.getFirstPropertyFirstValue("UID")}set uid(t){this._recurrenceManager.updateUID(t)}get startDate(){return this.getFirstPropertyFirstValue("dtstart")}set startDate(t){const a=this.startDate;this.updatePropertyWithValue("dtstart",t),this.isMasterItem()&&this._recurrenceManager.updateStartDateOfMasterItem(t,a)}isPartOfRecurrenceSet(){return this.masterItem.isRecurring()}isRecurring(){return this.hasProperty("RRULE")||this.hasProperty("RDATE")}isRecurrenceException(){return this.hasProperty("RECURRENCE-ID")}modifiesFuture(){return this.isRecurrenceException()?this.getFirstProperty("RECURRENCE-ID").getParameterFirstValue("RANGE")==="THISANDFUTURE":!1}forkItem(t,a=null){const i=this.clone();if(i.recurrenceManager=this.recurrenceManager,i.primaryItem=this,i.getReferenceRecurrenceId().compare(t)===0&&(i.isExactForkOfPrimary=!0),!i.hasProperty("DTSTART"))throw new TypeError("Can't fork item without a DTSTART");const n=i.getFirstPropertyFirstValue("RRULE");if(n?.count){let l=i.recurrenceManager.countAllOccurrencesBetween(i.getReferenceRecurrenceId(),t);l-=1,n.count-=l,n.count<1&&(n.count=1)}if(i.getFirstPropertyFirstValue("DTSTART").timezoneId!==t.timezoneId){const l=i.getFirstPropertyFirstValue("DTSTART").getICALTimezone();t=t.getInICALTimezone(l)}i.originalRecurrenceId=t.clone();const r=i.getFirstPropertyFirstValue("DTSTART");let o=null;if(this._recurrenceManager.hasRecurrenceDate(!1,t)){const l=this._recurrenceManager.getRecurrenceDate(!1,t);l instanceof Tt&&(o=l)}let s;if(i.hasProperty("DTEND")?s=i.getFirstPropertyFirstValue("DTEND").subtractDateWithTimezone(r):i.hasProperty("DUE")&&(s=i.getFirstPropertyFirstValue("DUE").subtractDateWithTimezone(r)),!(i.isRecurrenceException()&&i.isExactForkOfPrimary)){if(i.updatePropertyWithValue("DTSTART",t.clone()),a&&i.startDate.addDuration(a),i.hasProperty("DTEND")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DTEND",l)}else if(i.hasProperty("DUE")){const l=i.startDate.clone();l.addDuration(s),i.updatePropertyWithValue("DUE",l)}o&&(i.deleteAllProperties("DTEND"),i.deleteAllProperties("DURATION"),i.updatePropertyWithValue("DTEND",o.end.clone()))}return i.resetDirty(),i}canCreateRecurrenceExceptions(){let t=!1;return this.primaryItem&&this.primaryItem.isRecurring()&&(t=!0),this.isRecurring()||this.modifiesFuture()||!this.isRecurring()&&t}createRecurrenceException(t=!1){if(!this.canCreateRecurrenceExceptions())throw new Error("Can't create recurrence-exceptions for non-recurring items");const a=this.primaryItem;if(t){if(this.isExactForkOfPrimary&&this.primaryItem.isMasterItem())return this._overridePrimaryItem(),[this,this];this.removeThisOccurrence(!0),this.recurrenceManager=new HE(this),this._originalRecurrenceId=null,this.primaryItem=this,this.updatePropertyWithValue("UID",ME()),this._cachedId=null,this.addRelation("SIBLING",a.uid),a.addRelation("SIBLING",this.uid),this.deleteAllProperties("RECURRENCE-ID"),this.deleteAllProperties("RDATE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this._significantChange=!1,this._dirty=!1,this.root=this.root.constructor.fromEmpty(),this.root.addComponent(this),this.parent=this.root;for(const i of this.getAttendeeIterator())i.rsvp=!0}else{if(this.deleteAllProperties("RECURRENCE-ID"),this.recurrenceId=this.getReferenceRecurrenceId().clone(),this.root.addComponent(this),this.recurrenceManager.relateRecurrenceException(this),this.primaryItem=this,this.deleteAllProperties("RDATE"),this.deleteAllProperties("RRULE"),this.deleteAllProperties("EXDATE"),this.updatePropertyWithValue("CREATED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("SEQUENCE",0),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const i=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());if(i instanceof Tt){const n=i.start;this.recurrenceManager.removeRecurrenceDate(!1,i),this.recurrenceManager.addRecurrenceDate(!1,n)}}this.originalRecurrenceId=null}return[a,this]}removeThisOccurrence(t=!1){if(!this.isPartOfRecurrenceSet())return!0;if(t){const a=this.getReferenceRecurrenceId().clone(),i=a.getInTimezone(kt.utc);i.addDuration(Lt.fromSeconds(-1));for(const n of this.recurrenceManager.getRecurrenceRuleIterator())n.until=i.clone();for(const n of this.recurrenceManager.getRecurrenceDateIterator()){let r=n;n instanceof Tt&&(r=r.start),a.compare(r)<=0&&this.recurrenceManager.removeRecurrenceDate(!1,n)}for(const n of this.recurrenceManager.getRecurrenceDateIterator(!0))a.compare(n)<=0&&this.recurrenceManager.removeRecurrenceDate(!0,n);for(const n of this.recurrenceManager.getRecurrenceExceptionList())a.compare(n.recurrenceId)<=0&&(this.root.deleteComponent(n),this.recurrenceManager.removeRecurrenceException(n))}else if(this.isRecurrenceException()&&!this.modifiesFuture()&&(this.root.deleteComponent(this),this.recurrenceManager.removeRecurrenceException(this)),this.recurrenceManager.hasRecurrenceDate(!1,this.getReferenceRecurrenceId())){const a=this.recurrenceManager.getRecurrenceDate(!1,this.getReferenceRecurrenceId());this.recurrenceManager.removeRecurrenceDate(!1,a)}else this.recurrenceManager.addRecurrenceDate(!0,this.getReferenceRecurrenceId().clone());return this.recurrenceManager.isEmptyRecurrenceSet()}clone(){const t=super.clone();return t.resetDirty(),t}_addAttendee(t){for(const a of this.getAttendeeIterator())if(a.email===t.email)return!1;return this.addProperty(t),!0}addAttendeeFromNameAndEMail(t,a){const i=na.fromNameAndEMail(t,a);return this._addAttendee(i)}addAttendeeFromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r){const o=na.fromNameEMailRoleUserTypeAndRSVP(t,a,i,n,r,!1);return this._addAttendee(o)}setOrganizerFromNameAndEMail(t,a){this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}addAttachmentFromData(t,a=null){this.addProperty(Si.fromData(t,a))}addAttachmentFromLink(t,a=null){this.addProperty(Si.fromLink(t,a))}addContact(t){this.addProperty(new Br("CONTACT",t))}addComment(t){this.addProperty(new Br("COMMENT",t))}addImageFromData(t,a=null,i=null){this.addProperty(un.fromData(t,a,i))}addImageFromLink(t,a=null,i=null){this.addProperty(un.fromLink(t,a,i))}addRelation(t,a){this.addProperty(So.fromRelTypeAndId(t,a))}addRequestStatus(t,a){this.addProperty(ke.fromCodeAndMessage(t,a))}addAbsoluteAlarm(t,a){const i=new Kt("VALARM",[["action",t],Wa.fromAbsolute(a)]);return this.addComponent(i),i}addRelativeAlarm(t,a,i=!0){const n=new Kt("VALARM",[["action",t],Wa.fromRelativeAndRelated(a,i)]);return this.addComponent(n),n}markPropertyAsDirty(t){this.markDirty(),["DTSTART","DTEND","DURATION","RRULE","RDATE","EXDATE","STATUS",...al("property-list-significant-change",[])].includes(Ce(t))&&this.markChangesAsSignificant()}markSubComponentAsDirty(t){this.markDirty(),al("component-list-significant-change",[]).includes(t)&&this.markChangesAsSignificant()}isDirty(){return this._dirty||this._significantChange}markDirty(){this._dirty=!0}markChangesAsSignificant(){this._significantChange=!0}undirtify(){return this.isDirty()?(this.hasProperty("SEQUENCE")||(this.sequence=0),this.updatePropertyWithValue("DTSTAMP",Te.fromJSDate(Oa(),!0)),this.updatePropertyWithValue("LAST-MODIFIED",Te.fromJSDate(Oa(),!0)),this._significantChange&&this.sequence++,this.resetDirty(),!0):!1}resetDirty(){this._dirty=!1,this._significantChange=!1}updatePropertyWithValue(t,a){super.updatePropertyWithValue(t,a),Ce(t)==="UID"&&(this._cachedId=null),this.markPropertyAsDirty(t)}addProperty(t){return this.markPropertyAsDirty(t.name),t.subscribe(()=>this.markPropertyAsDirty(t.name)),super.addProperty(t)}deleteProperty(t){return this.markPropertyAsDirty(t.name),super.deleteProperty(t)}deleteAllProperties(t){return this.markPropertyAsDirty(t),super.deleteAllProperties(t)}addComponent(t){return this.markSubComponentAsDirty(t.name),t.subscribe(()=>this.markSubComponentAsDirty(t.name)),super.addComponent(t)}deleteComponent(t){return this.markSubComponentAsDirty(t.name),super.deleteComponent(t)}deleteAllComponents(t){return this.markSubComponentAsDirty(t),super.deleteAllComponents(t)}getReferenceRecurrenceId(){return this.originalRecurrenceId?this.originalRecurrenceId:this.recurrenceId?this.recurrenceId:this.startDate?this.startDate:null}_overridePrimaryItem(){const t=this.primaryItem.startDate;for(const a of this.primaryItem.getPropertyIterator())this.primaryItem.deleteProperty(a);for(const a of this.getPropertyIterator())this.primaryItem.addProperty(a);this.recurrenceManager.resetCache(),this.startDate.compare(t)!==0&&this.recurrenceManager.updateStartDateOfMasterItem(this.startDate,t)}static _getConstructorForComponentName(t){return zE(t)}static fromICALJs(...t){const a=super.fromICALJs(...t);return a.resetDirty(),a}}ve(ze.prototype,{name:"stampTime",iCalendarName:"DTSTAMP"}),ve(ze.prototype,{name:"recurrenceId",iCalendarName:"RECURRENCE-ID"}),ve(ze.prototype,"color"),ve(ze.prototype,{name:"creationTime",iCalendarName:"CREATED"}),ve(ze.prototype,{name:"modificationTime",iCalendarName:"LAST-MODIFIED"}),ve(ze.prototype,"organizer"),ve(ze.prototype,"sequence"),ve(ze.prototype,"status"),ve(ze.prototype,"url"),ve(ze.prototype,{name:"title",iCalendarName:"SUMMARY"}),ve(ze.prototype,{name:"accessClass",iCalendarName:"class",allowedValues:["PUBLIC","PRIVATE","CONFIDENTIAL"],defaultValue:"PUBLIC",unknownValue:"PRIVATE"}),fu(ze.prototype,{name:"category",pluralName:"categories",iCalendarName:"CATEGORIES"}),xt(ze.prototype,{name:"attendee"}),xt(ze.prototype,{name:"attachment",iCalendarName:"ATTACH"}),xt(ze.prototype,{name:"relation",iCalendarName:"RELATED-TO"}),xt(ze.prototype,"comment"),xt(ze.prototype,"contact"),xt(ze.prototype,"image"),xt(ze.prototype,{name:"requestStatus",pluralName:"requestStatus",iCalendarName:"REQUEST-STATUS"}),PE(ze.prototype,"alarm");function Nf(e){return e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-FIELD-TYPE")}function VE(e){switch(Nf(e)){case"BDAY":return"🎂";case"DEATHDATE":return"⚰️";case"ANNIVERSARY":return"💍";default:return null}}function $E(e,t){if(!e.hasProperty("X-NEXTCLOUD-BC-YEAR"))return null;const a=e.getFirstPropertyFirstValue("X-NEXTCLOUD-BC-YEAR");return parseInt(t,10)-parseInt(a,10)}class Ya extends ze{isAllDay(){return this.startDate.isDate&&this.endDate.isDate}canModifyAllDay(){return!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("dtend"))return this.getFirstPropertyFirstValue("dtend");const t=this.startDate.clone();return this.hasProperty("duration")?t.addDuration(this.getFirstPropertyFirstValue("duration")):this.startDate.isDate&&t.addDuration(Lt.fromSeconds(60*60*24)),t}set endDate(t){this.deleteAllProperties("duration"),this.updatePropertyWithValue("dtend",t)}get duration(){return this.hasProperty("duration")?this.getFirstPropertyFirstValue("duration"):this.startDate.subtractDateWithTimezone(this.endDate)}set duration(t){this.deleteAllProperties("dtend"),this.updatePropertyWithValue("duration",t)}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this._modify(),this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}addDurationToStart(t){this.startDate.addDuration(t)}addDurationToEnd(t){const a=this.endDate;a.addDuration(t),this.endDate=a}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this event");if(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&(this.startDate.replaceTimezone(i),this.endDate=this.startDate.clone(),this.endDate.addDuration(r)),!o&&a&&(this.endDate=this.startDate.clone(),this.endDate.addDuration(n)),o===a){const s=this.endDate;s.addDuration(t),this.endDate=s}}isBirthdayEvent(){return Nf(this)==="BDAY"}getIconForBirthdayEvent(){return VE(this)}getAgeForBirthdayEvent(){return $E(this,this.startDate.year)}toICSEntireSeries(){return this.root.toICS()}toICSThisOccurrence(){const t=this.clone();return t.deleteAllProperties("RRULE"),t.deleteAllProperties("EXRULE"),t.deleteAllProperties("RDATE"),t.deleteAllProperties("EXDATE"),t.deleteAllProperties("RECURRENCE-ID"),t.root=t.root.constructor.fromEmpty(),t.parent=t.root,t.root.addComponent(t),t.root.toICS()}isInTimeFrame(t,a){return t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}}ve(Ya.prototype,{name:"timeTransparency",iCalendarName:"TRANSP",allowedValues:["OPAQUE","TRANSPARENT"],defaultValue:"OPAQUE"}),ve(Ya.prototype,"description"),ve(Ya.prototype,{name:"geographicalPosition",iCalendarName:"GEO"}),ve(Ya.prototype,"location"),ve(Ya.prototype,{name:"priority",allowedValues:Array(9).keys(),defaultValue:0,unknownValue:0}),fu(Ya.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Ya.prototype,"conference");class ar extends Na{get startDate(){return this.getFirstPropertyFirstValue("DTSTART")}set startDate(t){this._modify(),this.updatePropertyWithValue("DTSTART",t.getInTimezone(kt.utc))}get endDate(){return this.getFirstPropertyFirstValue("DTEND")}set endDate(t){this._modify(),this.updatePropertyWithValue("DTEND",t.getInTimezone(kt.utc))}*getFreeBusyIterator(){yield*this.getPropertyIterator("FREEBUSY")}addAttendeeFromNameAndEMail(t,a){this._modify(),this.addProperty(na.fromNameAndEMail(t,a))}setOrganizerFromNameAndEMail(t,a){this._modify(),this.deleteAllProperties("ORGANIZER"),this.addProperty(na.fromNameAndEMail(t,a,!0))}}ve(ar.prototype,"organizer"),ve(ar.prototype,"uid"),xt(ar.prototype,"attendee");class wf extends ze{addDescription(t){this.addProperty(new Br("DESCRIPTION",t))}}xt(wf.prototype,"description");class Of extends Na{toTimezone(){return new kt(this.toICALJs())}}ve(Of.prototype,{name:"timezoneId",iCalendarName:"tzid"});class Vt extends ze{isAllDay(){const t=["DTSTART","DUE"];for(const a of t)if(this.hasProperty(a))return this.getFirstPropertyFirstValue(a).isDate;return!0}canModifyAllDay(){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!1:!this.recurrenceManager.masterItem.isRecurring()}get endDate(){if(this.hasProperty("due"))return this.getFirstPropertyFirstValue("due");if(!this.hasProperty("dtstart")||!this.hasProperty("duration"))return null;const t=this.startDate.clone();return t.addDuration(this.getFirstPropertyFirstValue("duration")),t}shiftByDuration(t,a,i,n,r){const o=this.isAllDay();if(!this.hasProperty("dtstart")&&!this.hasProperty("due"))throw new TypeError("This task does not have a start-date nor due-date");if(o!==a&&!this.canModifyAllDay())throw new TypeError("Can't modify all-day of this todo");this.hasProperty("dtstart")&&(this.startDate.isDate=a,this.startDate.addDuration(t),o&&!a&&this.startDate.replaceTimezone(i)),this.hasProperty("due")&&(this.dueTime.isDate=a,this.dueTime.addDuration(t),o&&!a&&this.dueTime.replaceTimezone(i))}isInTimeFrame(t,a){return!this.hasProperty("dtstart")&&!this.hasProperty("due")?!0:!this.hasProperty("dtstart")&&this.hasProperty("due")?t.compare(this.endDate)<=0:t.compare(this.endDate)<=0&&a.compare(this.startDate)>=0}get geographicalPosition(){return this.getFirstProperty("GEO")}setGeographicalPositionFromLatitudeAndLongitude(t,a){this.deleteAllProperties("GEO"),this.addProperty(y0.fromPosition(t,a))}addConference(t,a=null,i=null){this.addProperty(b0.fromURILabelAndFeatures(t,a,i))}getReferenceRecurrenceId(){return super.getReferenceRecurrenceId()??this.endDate}}ve(Vt.prototype,{name:"completedTime",iCalendarName:"COMPLETED"}),ve(Vt.prototype,{name:"dueTime",iCalendarName:"DUE"}),ve(Vt.prototype,{name:"duration"}),ve(Vt.prototype,{name:"percent",iCalendarName:"PERCENT-COMPLETE"}),ve(Vt.prototype,"description"),ve(Vt.prototype,"location"),ve(Vt.prototype,{name:"priority",allowedValues:Array.from(Array(10).keys()),defaultValue:0,unknownValue:0}),fu(Vt.prototype,{name:"resource",iCalendarName:"RESOURCES"}),xt(Vt.prototype,"conference");function WE(e){switch(Ce(e)){case"VEVENT":return Ya;case"VFREEBUSY":return ar;case"VJOURNAL":return wf;case"VTIMEZONE":return Of;case"VTODO":return Vt;default:return Na}}class L0 extends Na{constructor(t="VCALENDAR",a=[],i=[]){super(t,a,i),this.root=this,this.parent=null}*getTimezoneIterator(){yield*this.getComponentIterator("vtimezone")}*getVObjectIterator(){yield*this.getEventIterator(),yield*this.getJournalIterator(),yield*this.getTodoIterator()}*getEventIterator(){yield*this.getComponentIterator("vevent")}*getFreebusyIterator(){yield*this.getComponentIterator("vfreebusy")}*getJournalIterator(){yield*this.getComponentIterator("vjournal")}*getTodoIterator(){yield*this.getComponentIterator("vtodo")}static _getConstructorForComponentName(t){return WE(t)}toICS(t=!0){for(const i of this.getVObjectIterator())i.undirtify();const a=this.toICALJs();return t&&me.helpers.updateTimezones(a),a.toString()}static fromEmpty(t=[]){return new this("VCALENDAR",[["prodid",al("PRODID","-//IDN georgehrke.com//calendar-js//EN")],["calscale","GREGORIAN"],["version","2.0"]].concat(t))}static fromMethod(t){return this.fromEmpty([["method",t]])}static fromICALJs(t){const a=super.fromICALJs(t);return a.root=a,a}}ve(L0.prototype,{name:"productId",iCalendarName:"PRODID"}),ve(L0.prototype,{name:"version"}),ve(L0.prototype,{name:"calendarScale",iCalendarName:"CALSCALE",defaultValue:"GREGORIAN"}),ve(L0.prototype,{name:"method"});var QE="2.2023c",JE={"AUS Central Standard Time":{aliasTo:"Australia/Darwin"},"AUS Eastern Standard Time":{aliasTo:"Australia/Sydney"},"Afghanistan Standard Time":{aliasTo:"Asia/Kabul"},"Africa/Asmera":{aliasTo:"Africa/Asmara"},"Africa/Timbuktu":{aliasTo:"Africa/Bamako"},"Alaskan Standard Time":{aliasTo:"America/Anchorage"},"America/Argentina/ComodRivadavia":{aliasTo:"America/Argentina/Catamarca"},"America/Buenos_Aires":{aliasTo:"America/Argentina/Buenos_Aires"},"America/Louisville":{aliasTo:"America/Kentucky/Louisville"},"America/Montreal":{aliasTo:"America/Toronto"},"America/Santa_Isabel":{aliasTo:"America/Tijuana"},"Arab Standard Time":{aliasTo:"Asia/Riyadh"},"Arabian Standard Time":{aliasTo:"Asia/Dubai"},"Arabic Standard Time":{aliasTo:"Asia/Baghdad"},"Argentina Standard Time":{aliasTo:"America/Argentina/Buenos_Aires"},"Asia/Calcutta":{aliasTo:"Asia/Kolkata"},"Asia/Katmandu":{aliasTo:"Asia/Kathmandu"},"Asia/Rangoon":{aliasTo:"Asia/Yangon"},"Asia/Saigon":{aliasTo:"Asia/Ho_Chi_Minh"},"Atlantic Standard Time":{aliasTo:"America/Halifax"},"Atlantic/Faeroe":{aliasTo:"Atlantic/Faroe"},"Atlantic/Jan_Mayen":{aliasTo:"Europe/Oslo"},"Azerbaijan Standard Time":{aliasTo:"Asia/Baku"},"Azores Standard Time":{aliasTo:"Atlantic/Azores"},"Bahia Standard Time":{aliasTo:"America/Bahia"},"Bangladesh Standard Time":{aliasTo:"Asia/Dhaka"},"Belarus Standard Time":{aliasTo:"Europe/Minsk"},"Canada Central Standard Time":{aliasTo:"America/Regina"},"Cape Verde Standard Time":{aliasTo:"Atlantic/Cape_Verde"},"Caucasus Standard Time":{aliasTo:"Asia/Yerevan"},"Cen. Australia Standard Time":{aliasTo:"Australia/Adelaide"},"Central America Standard Time":{aliasTo:"America/Guatemala"},"Central Asia Standard Time":{aliasTo:"Asia/Almaty"},"Central Brazilian Standard Time":{aliasTo:"America/Cuiaba"},"Central Europe Standard Time":{aliasTo:"Europe/Budapest"},"Central European Standard Time":{aliasTo:"Europe/Warsaw"},"Central Pacific Standard Time":{aliasTo:"Pacific/Guadalcanal"},"Central Standard Time":{aliasTo:"America/Chicago"},"Central Standard Time (Mexico)":{aliasTo:"America/Mexico_City"},"China Standard Time":{aliasTo:"Asia/Shanghai"},"E. Africa Standard Time":{aliasTo:"Africa/Nairobi"},"E. Australia Standard Time":{aliasTo:"Australia/Brisbane"},"E. South America Standard Time":{aliasTo:"America/Sao_Paulo"},"Eastern Standard Time":{aliasTo:"America/New_York"},"Egypt Standard Time":{aliasTo:"Africa/Cairo"},"Ekaterinburg Standard Time":{aliasTo:"Asia/Yekaterinburg"},"Etc/GMT":{aliasTo:"UTC"},"Etc/GMT+0":{aliasTo:"UTC"},"Etc/UCT":{aliasTo:"UTC"},"Etc/UTC":{aliasTo:"UTC"},"Etc/Unversal":{aliasTo:"UTC"},"Etc/Zulu":{aliasTo:"UTC"},"Europe/Belfast":{aliasTo:"Europe/London"},"FLE Standard Time":{aliasTo:"Europe/Kiev"},"Fiji Standard Time":{aliasTo:"Pacific/Fiji"},GMT:{aliasTo:"UTC"},"GMT Standard Time":{aliasTo:"Europe/London"},"GMT+0":{aliasTo:"UTC"},GMT0:{aliasTo:"UTC"},"GTB Standard Time":{aliasTo:"Europe/Bucharest"},"Georgian Standard Time":{aliasTo:"Asia/Tbilisi"},"Greenland Standard Time":{aliasTo:"America/Godthab"},Greenwich:{aliasTo:"UTC"},"Greenwich Standard Time":{aliasTo:"Atlantic/Reykjavik"},"Hawaiian Standard Time":{aliasTo:"Pacific/Honolulu"},"India Standard Time":{aliasTo:"Asia/Calcutta"},"Iran Standard Time":{aliasTo:"Asia/Tehran"},"Israel Standard Time":{aliasTo:"Asia/Jerusalem"},"Jordan Standard Time":{aliasTo:"Asia/Amman"},"Kaliningrad Standard Time":{aliasTo:"Europe/Kaliningrad"},"Korea Standard Time":{aliasTo:"Asia/Seoul"},"Libya Standard Time":{aliasTo:"Africa/Tripoli"},"Line Islands Standard Time":{aliasTo:"Pacific/Kiritimati"},"Magadan Standard Time":{aliasTo:"Asia/Magadan"},"Mauritius Standard Time":{aliasTo:"Indian/Mauritius"},"Middle East Standard Time":{aliasTo:"Asia/Beirut"},"Montevideo Standard Time":{aliasTo:"America/Montevideo"},"Morocco Standard Time":{aliasTo:"Africa/Casablanca"},"Mountain Standard Time":{aliasTo:"America/Denver"},"Mountain Standard Time (Mexico)":{aliasTo:"America/Chihuahua"},"Myanmar Standard Time":{aliasTo:"Asia/Rangoon"},"N. Central Asia Standard Time":{aliasTo:"Asia/Novosibirsk"},"Namibia Standard Time":{aliasTo:"Africa/Windhoek"},"Nepal Standard Time":{aliasTo:"Asia/Katmandu"},"New Zealand Standard Time":{aliasTo:"Pacific/Auckland"},"Newfoundland Standard Time":{aliasTo:"America/St_Johns"},"North Asia East Standard Time":{aliasTo:"Asia/Irkutsk"},"North Asia Standard Time":{aliasTo:"Asia/Krasnoyarsk"},"Pacific SA Standard Time":{aliasTo:"America/Santiago"},"Pacific Standard Time":{aliasTo:"America/Los_Angeles"},"Pacific Standard Time (Mexico)":{aliasTo:"America/Santa_Isabel"},"Pacific/Johnston":{aliasTo:"Pacific/Honolulu"},"Pakistan Standard Time":{aliasTo:"Asia/Karachi"},"Paraguay Standard Time":{aliasTo:"America/Asuncion"},"Romance Standard Time":{aliasTo:"Europe/Paris"},"Russia Time Zone 10":{aliasTo:"Asia/Srednekolymsk"},"Russia Time Zone 11":{aliasTo:"Asia/Kamchatka"},"Russia Time Zone 3":{aliasTo:"Europe/Samara"},"Russian Standard Time":{aliasTo:"Europe/Moscow"},"SA Eastern Standard Time":{aliasTo:"America/Cayenne"},"SA Pacific Standard Time":{aliasTo:"America/Bogota"},"SA Western Standard Time":{aliasTo:"America/La_Paz"},"SE Asia Standard Time":{aliasTo:"Asia/Bangkok"},"Samoa Standard Time":{aliasTo:"Pacific/Apia"},"Singapore Standard Time":{aliasTo:"Asia/Singapore"},"South Africa Standard Time":{aliasTo:"Africa/Johannesburg"},"Sri Lanka Standard Time":{aliasTo:"Asia/Colombo"},"Syria Standard Time":{aliasTo:"Asia/Damascus"},"Taipei Standard Time":{aliasTo:"Asia/Taipei"},"Tasmania Standard Time":{aliasTo:"Australia/Hobart"},"Tokyo Standard Time":{aliasTo:"Asia/Tokyo"},"Tonga Standard Time":{aliasTo:"Pacific/Tongatapu"},"Turkey Standard Time":{aliasTo:"Europe/Istanbul"},UCT:{aliasTo:"UTC"},"US Eastern Standard Time":{aliasTo:"America/Indiana/Indianapolis"},"US Mountain Standard Time":{aliasTo:"America/Phoenix"},"US/Central":{aliasTo:"America/Chicago"},"US/Eastern":{aliasTo:"America/New_York"},"US/Mountain":{aliasTo:"America/Denver"},"US/Pacific":{aliasTo:"America/Los_Angeles"},"US/Pacific-New":{aliasTo:"America/Los_Angeles"},"Ulaanbaatar Standard Time":{aliasTo:"Asia/Ulaanbaatar"},Universal:{aliasTo:"UTC"},"Venezuela Standard Time":{aliasTo:"America/Caracas"},"Vladivostok Standard Time":{aliasTo:"Asia/Vladivostok"},"W. Australia Standard Time":{aliasTo:"Australia/Perth"},"W. Central Africa Standard Time":{aliasTo:"Africa/Lagos"},"W. Europe Standard Time":{aliasTo:"Europe/Berlin"},"West Asia Standard Time":{aliasTo:"Asia/Tashkent"},"West Pacific Standard Time":{aliasTo:"Pacific/Port_Moresby"},"Yakutsk Standard Time":{aliasTo:"Asia/Yakutsk"},Z:{aliasTo:"UTC"},Zulu:{aliasTo:"UTC"},utc:{aliasTo:"UTC"}},KE={"Africa/Abidjan":{ics:[`BEGIN:STANDARD\r
TZOFFSETFROM:+0000\r
TZOFFSETTO:+0000\r
TZNAME:GMT\r
@@ -4787,7 +4787,7 @@ TZOFFSETTO:-1100\r
TZNAME:SST\r
DTSTART:19700101T000000\r
END:STANDARD`]}},li={version:QE,aliases:JE,zones:KE};class XE{constructor(){this._aliases=new Map,this._timezones=new Map}getTimezoneForId(t){return this._getTimezoneForIdRec(t,0)}_getTimezoneForIdRec(t,a){if(this._timezones.has(t))return this._timezones.get(t);if(a>=20)return console.error("TimezoneManager.getTimezoneForIdRec() exceeds recursion limits"),null;if(this._aliases.has(t)){const i=this._aliases.get(t);return this._getTimezoneForIdRec(i,a+1)}return null}hasTimezoneForId(t){return this._timezones.has(t)||this._aliases.has(t)}isAlias(t){return!this._timezones.has(t)&&this._aliases.has(t)}listAllTimezones(t=!1){const a=Array.from(this._timezones.keys());return t?a.concat(Array.from(this._aliases.keys())):a}registerTimezone(t){this._timezones.set(t.timezoneId,t)}registerDefaultTimezones(){console.debug(`@nextcloud/calendar-js app is using version ${li.version} of the timezone database`);for(const t in li.zones)if(Object.prototype.hasOwnProperty.call(li.zones,[t])){const a=["BEGIN:VTIMEZONE","TZID:"+t,...li.zones[t].ics,"END:VTIMEZONE"].join(`\r
-`);this.registerTimezoneFromICS(t,a)}for(const t in li.aliases)Object.prototype.hasOwnProperty.call(li.aliases,[t])&&this.registerAlias(t,li.aliases[t].aliasTo)}registerTimezoneFromICS(t,a){const i=new kt(t,a);this.registerTimezone(i)}registerAlias(t,a){this._aliases.set(t,a)}unregisterTimezones(t){this._timezones.delete(t)}unregisterAlias(t){this._aliases.delete(t)}clearAllTimezones(){this._aliases=new Map,this._timezones=new Map,zi.registerTimezone(kt.utc),zi.registerTimezone(kt.floating),zi.registerAlias("GMT",kt.utc.timezoneId),zi.registerAlias("Z",kt.utc.timezoneId)}}const zi=new XE;zi.clearAllTimezones();function Of(){return zi}class Wd{constructor(t){this._timezoneManager=t}has(t){return this._timezoneManager.hasTimezoneForId(t)}get(t){const a=this._timezoneManager.getTimezoneForId(t);if(a)return a.toICALTimezone()}register(){throw new TypeError("Not allowed to register new timezone")}remove(){throw new TypeError("Not allowed to remove timezone")}reset(){throw new TypeError("Not allowed to reset TimezoneService")}}me.TimezoneService instanceof Wd||(me.TimezoneService=new Wd(Of()));var xf={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return(()=>{var a={646:o=>{o.exports=function(s){if(Array.isArray(s)){for(var l=0,d=new Array(s.length);l{o.exports=function(s,l,d){return l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d,s}},860:o=>{o.exports=function(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,s,l)=>{var d=l(646),u=l(860),c=l(206);o.exports=function(f){return d(f)||u(f)||c()}},8:o=>{function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=s=function(d){return typeof d}:o.exports=s=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},s(l)}o.exports=s}},i={};function n(o){var s=i[o];if(s!==void 0)return s.exports;var l=i[o]={exports:{}};return a[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{VueSelect:()=>I,default:()=>P,mixins:()=>M});var o=n(319),s=n.n(o),l=n(8),d=n.n(l),u=n(713),c=n.n(u);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(g){var D=this;this.autoscroll&&g&&this.$nextTick(function(){return D.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var g,D=((g=this.$refs.dropdownMenu)===null||g===void 0?void 0:g.children[this.typeAheadPointer])||!1;if(D){var k=this.getDropdownViewport(),x=D.getBoundingClientRect(),L=x.top,Z=x.bottom,$=x.height;if(Lk.bottom)return this.$refs.dropdownMenu.scrollTop=D.offsetTop-(k.height-$)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},h={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var g=0;g=0;g--)if(this.selectable(this.filteredOptions[g])){this.typeAheadPointer=g;break}},typeAheadDown:function(){for(var g=this.typeAheadPointer+1;g0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=g??!this.mutableLoading}}};function m(g,D,k,x,L,Z,$,V){var y,U=typeof g=="function"?g.options:g;if(D&&(U.render=D,U.staticRenderFns=k,U._compiled=!0),x&&(U.functional=!0),Z&&(U._scopeId="data-v-"+Z),$?(y=function(re){(re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(re=__VUE_SSR_CONTEXT__),L&&L.call(this,re),re&&re._registeredComponents&&re._registeredComponents.add($)},U._ssrRegister=y):L&&(y=V?function(){L.call(this,(U.functional?this.parent:this).$root.$options.shadowRoot)}:L),y)if(U.functional){U._injectStyles=y;var A=U.render;U.render=function(re,O){return y.call(O),A(re,O)}}else{var z=U.beforeCreate;U.beforeCreate=z?[].concat(z,y):[y]}return{exports:g,options:U}}const p={Deselect:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[D("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"}})])},[],!1,null,null,null).exports,OpenIndicator:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[D("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"}})])},[],!1,null,null,null).exports},T={inserted:function(g,D,k){var x=k.context;if(x.appendToBody){document.body.appendChild(g);var L=x.$refs.toggle.getBoundingClientRect(),Z=L.height,$=L.top,V=L.left,y=L.width,U=window.scrollX||window.pageXOffset,A=window.scrollY||window.pageYOffset;g.unbindPosition=x.calculatePosition(g,x,{width:y+"px",left:U+V+"px",top:A+$+Z+"px"})}},unbind:function(g,D,k){k.context.appendToBody&&(g.unbindPosition&&typeof g.unbindPosition=="function"&&g.unbindPosition(),g.parentNode&&g.parentNode.removeChild(g))}},R=function(g){var D={};return Object.keys(g).sort().forEach(function(k){D[k]=g[k]}),JSON.stringify(D)};var S=0;const C=function(){return++S};function j(g,D){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);D&&(x=x.filter(function(L){return Object.getOwnPropertyDescriptor(g,L).enumerable})),k.push.apply(k,x)}return k}function E(g){for(var D=1;D{var a={646:o=>{o.exports=function(s){if(Array.isArray(s)){for(var l=0,d=new Array(s.length);l{o.exports=function(s,l,d){return l in s?Object.defineProperty(s,l,{value:d,enumerable:!0,configurable:!0,writable:!0}):s[l]=d,s}},860:o=>{o.exports=function(s){if(Symbol.iterator in Object(s)||Object.prototype.toString.call(s)==="[object Arguments]")return Array.from(s)}},206:o=>{o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(o,s,l)=>{var d=l(646),u=l(860),c=l(206);o.exports=function(f){return d(f)||u(f)||c()}},8:o=>{function s(l){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?o.exports=s=function(d){return typeof d}:o.exports=s=function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},s(l)}o.exports=s}},i={};function n(o){var s=i[o];if(s!==void 0)return s.exports;var l=i[o]={exports:{}};return a[o](l,l.exports,n),l.exports}n.n=o=>{var s=o&&o.__esModule?()=>o.default:()=>o;return n.d(s,{a:s}),s},n.d=(o,s)=>{for(var l in s)n.o(s,l)&&!n.o(o,l)&&Object.defineProperty(o,l,{enumerable:!0,get:s[l]})},n.o=(o,s)=>Object.prototype.hasOwnProperty.call(o,s),n.r=o=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(o,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(o,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{VueSelect:()=>I,default:()=>P,mixins:()=>M});var o=n(319),s=n.n(o),l=n(8),d=n.n(l),u=n(713),c=n.n(u);const f={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(g){var D=this;this.autoscroll&&g&&this.$nextTick(function(){return D.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var g,D=((g=this.$refs.dropdownMenu)===null||g===void 0?void 0:g.children[this.typeAheadPointer])||!1;if(D){var k=this.getDropdownViewport(),x=D.getBoundingClientRect(),L=x.top,Z=x.bottom,$=x.height;if(Lk.bottom)return this.$refs.dropdownMenu.scrollTop=D.offsetTop-(k.height-$)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},h={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var g=0;g=0;g--)if(this.selectable(this.filteredOptions[g])){this.typeAheadPointer=g;break}},typeAheadDown:function(){for(var g=this.typeAheadPointer+1;g0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=g??!this.mutableLoading}}};function m(g,D,k,x,L,Z,$,V){var y,U=typeof g=="function"?g.options:g;if(D&&(U.render=D,U.staticRenderFns=k,U._compiled=!0),x&&(U.functional=!0),Z&&(U._scopeId="data-v-"+Z),$?(y=function(re){(re=re||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(re=__VUE_SSR_CONTEXT__),L&&L.call(this,re),re&&re._registeredComponents&&re._registeredComponents.add($)},U._ssrRegister=y):L&&(y=V?function(){L.call(this,(U.functional?this.parent:this).$root.$options.shadowRoot)}:L),y)if(U.functional){U._injectStyles=y;var A=U.render;U.render=function(re,O){return y.call(O),A(re,O)}}else{var z=U.beforeCreate;U.beforeCreate=z?[].concat(z,y):[y]}return{exports:g,options:U}}const p={Deselect:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[D("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"}})])},[],!1,null,null,null).exports,OpenIndicator:m({},function(){var g=this.$createElement,D=this._self._c||g;return D("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[D("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"}})])},[],!1,null,null,null).exports},T={inserted:function(g,D,k){var x=k.context;if(x.appendToBody){document.body.appendChild(g);var L=x.$refs.toggle.getBoundingClientRect(),Z=L.height,$=L.top,V=L.left,y=L.width,U=window.scrollX||window.pageXOffset,A=window.scrollY||window.pageYOffset;g.unbindPosition=x.calculatePosition(g,x,{width:y+"px",left:U+V+"px",top:A+$+Z+"px"})}},unbind:function(g,D,k){k.context.appendToBody&&(g.unbindPosition&&typeof g.unbindPosition=="function"&&g.unbindPosition(),g.parentNode&&g.parentNode.removeChild(g))}},R=function(g){var D={};return Object.keys(g).sort().forEach(function(k){D[k]=g[k]}),JSON.stringify(D)};var S=0;const C=function(){return++S};function j(g,D){var k=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);D&&(x=x.filter(function(L){return Object.getOwnPropertyDescriptor(g,L).enumerable})),k.push.apply(k,x)}return k}function E(g){for(var D=1;D-1}},filter:{type:Function,default:function(g,D){var k=this;return g.filter(function(x){var L=k.getOptionLabel(x);return typeof L=="number"&&(L=L.toString()),k.filterBy(x,L,D)})}},createOption:{type:Function,default:function(g){return d()(this.optionList[0])==="object"?c()({},this.label,g):g}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(g){return["function","boolean"].includes(d()(g))}},clearSearchOnBlur:{type:Function,default:function(g){var D=g.clearSearchOnSelect,k=g.multiple;return D&&!k}},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(g,D){return g}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(g,D,k){var x=k.width,L=k.top,Z=k.left;g.style.top=L,g.style.left=Z,g.style.width=x}},dropdownShouldOpen:{type:Function,default:function(g){var D=g.noDrop,k=g.open,x=g.mutableLoading;return!D&&k&&!x}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return C()}}},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 g=this.value;return this.isTrackingValues&&(g=this.$data._value),g!=null&&g!==""?[].concat(g):[]},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 g=this,D={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:E({disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,id:this.inputId,"aria-autocomplete":"list","aria-labelledby":"vs".concat(this.uid,"__combobox"),"aria-controls":"vs".concat(this.uid,"__listbox"),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 g.isComposing=!0},compositionend:function(){return g.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(k){return g.search=k.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:D,listFooter:D,header:E({},D,{deselect:this.deselect}),footer:E({},D,{deselect:this.deselect})}},childComponents:function(){return E({},p,{},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 g=this,D=function(Z){return g.limit!==null?Z.slice(0,g.limit):Z},k=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return D(k);var x=this.search.length?this.filter(k,this.search,this):k;if(this.taggable&&this.search.length){var L=this.createOption(this.search);this.optionExists(L)||x.unshift(L)}return D(x)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(g,D){var k=this;!this.taggable&&(typeof k.resetOnOptionsChange=="function"?k.resetOnOptionsChange(g,D,k.selectedValue):k.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(g){this.isTrackingValues&&this.setInternalValueFromOptions(g)}},multiple:function(){this.clearSelection()},open:function(g){this.$emit(g?"open":"close")},search:function(g){g.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(g){var D=this;Array.isArray(g)?this.$data._value=g.map(function(k){return D.findOptionFromReducedValue(k)}):this.$data._value=this.findOptionFromReducedValue(g)},select:function(g){this.$emit("option:selecting",g),this.isOptionSelected(g)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(g):(this.taggable&&!this.optionExists(g)&&this.$emit("option:created",g),this.multiple&&(g=this.selectedValue.concat(g)),this.updateValue(g),this.$emit("option:selected",g)),this.onAfterSelect(g)},deselect:function(g){var D=this;this.$emit("option:deselecting",g),this.updateValue(this.selectedValue.filter(function(k){return!D.optionComparator(k,g)})),this.$emit("option:deselected",g)},keyboardDeselect:function(g,D){var k,x;this.deselect(g);var L=(k=this.$refs.deselectButtons)===null||k===void 0?void 0:k[D+1],Z=(x=this.$refs.deselectButtons)===null||x===void 0?void 0:x[D-1],$=L??Z;$?$.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(g){var D=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return D.$refs.search.focus()})},updateValue:function(g){var D=this;this.value===void 0&&(this.$data._value=g),g!==null&&(g=Array.isArray(g)?g.map(function(k){return D.reduce(k)}):this.reduce(g)),this.$emit("input",g)},toggleDropdown:function(g){var D=g.target!==this.searchEl;D&&g.preventDefault();var k=[].concat(s()(this.$refs.deselectButtons||[]),s()([this.$refs.clearButton]));this.searchEl===void 0||k.filter(Boolean).some(function(x){return x.contains(g.target)||x===g.target})?g.preventDefault():this.open&&D?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(g){var D=this;return this.selectedValue.some(function(k){return D.optionComparator(k,g)})},isOptionDeselectable:function(g){return this.isOptionSelected(g)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(g){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&g===this.typeAheadPointer},optionComparator:function(g,D){return this.getOptionKey(g)===this.getOptionKey(D)},findOptionFromReducedValue:function(g){var D=this,k=[].concat(s()(this.options),s()(this.pushedTags)).filter(function(x){return JSON.stringify(D.reduce(x))===JSON.stringify(g)});return k.length===1?k[0]:k.find(function(x){return D.optionComparator(x,D.$data._value)})||g},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var g=null;this.multiple&&(g=s()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(g)}},optionExists:function(g){var D=this;return this.optionList.some(function(k){return D.optionComparator(k,g)})},optionAriaSelected:function(g){return this.selectable(g)?String(this.isOptionSelected(g)):null},normalizeOptionForSlot:function(g){return d()(g)==="object"?g:c()({},this.label,g)},pushTag:function(g){this.pushedTags.push(g)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var g=this.clearSearchOnSelect,D=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:g,multiple:D})&&(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(g,D){this.isKeyboardNavigation=!1,this.selectable(g)&&(this.typeAheadPointer=D)},onSearchKeyDown:function(g){var D=this,k=function(Z){if(Z.preventDefault(),D.open)return!D.isComposing&&D.typeAheadSelect();D.open=!0},x={8:function(Z){return D.maybeDeleteValue()},9:function(Z){return D.onTab()},27:function(Z){return D.onEscape()},38:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadUp();D.open=!0},40:function(Z){if(Z.preventDefault(),D.isKeyboardNavigation=!0,D.open)return D.typeAheadDown();D.open=!0}};this.selectOnKeyCodes.forEach(function(Z){return x[Z]=k});var L=this.mapKeydown(x,this);if(typeof L[g.keyCode]=="function")return L[g.keyCode](g)},onSearchKeyPress:function(g){this.open||g.keyCode!==32||(g.preventDefault(),this.open=!0)}}},function(){var g=this,D=g.$createElement,k=g._self._c||D;return k("div",{staticClass:"v-select",class:g.stateClasses,attrs:{dir:g.dir}},[g._t("header",null,null,g.scope.header),g._v(" "),k("div",{ref:"toggle",staticClass:"vs__dropdown-toggle",attrs:{id:"vs"+g.uid+"__combobox",role:"combobox","aria-expanded":g.dropdownOpen.toString(),"aria-owns":"vs"+g.uid+"__listbox","aria-label":g.ariaLabelCombobox},on:{mousedown:function(x){return g.toggleDropdown(x)}}},[k("div",{ref:"selectedOptions",staticClass:"vs__selected-options"},[g._l(g.selectedValue,function(x,L){return g._t("selected-option-container",[k("span",{key:g.getOptionKey(x),staticClass:"vs__selected"},[g._t("selected-option",[g._v(`
`+g._s(g.getOptionLabel(x))+`
@@ -4795,10 +4795,10 @@ https://vue-select.org/api/props.html#getoptionkey`,g,D)}}},onTab:{type:Function
`+g._s(g.getOptionLabel(x))+`
`)],null,g.normalizeOptionForSlot(x))],2)}),g._v(" "),g.filteredOptions.length===0?k("li",{staticClass:"vs__no-options"},[g._t("no-options",[g._v(`
Sorry, no matching options.
- `)],null,g.scope.noOptions)],2):g._e(),g._v(" "),g._t("list-footer",null,null,g.scope.listFooter)],2):k("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs"+g.uid+"__listbox",role:"listbox"}})]),g._v(" "),g._t("footer",null,null,g.scope.footer)],2)},[],!1,null,null,null).exports,M={ajax:_,pointer:h,pointerScroll:f},P=I})(),r})()})})(xf);var Z0=xf.exports;const Cr=Math.min,Ei=Math.max,Mr=Math.round,I0=Math.floor,Qa=e=>({x:e,y:e}),eb={left:"right",right:"left",bottom:"top",top:"bottom"},tb={start:"end",end:"start"};function Qd(e,t,a){return Ei(e,Cr(t,a))}function dn(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function fu(e){return e==="x"?"y":"x"}function Bf(e){return e==="y"?"height":"width"}function A0(e){return["top","bottom"].includes(Ja(e))?"y":"x"}function Cf(e){return fu(A0(e))}function ab(e,t,a){a===void 0&&(a=!1);const i=ko(e),n=Cf(e),r=Bf(n);let o=n==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=Yr(o)),[o,Yr(o)]}function ib(e){const t=Yr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>tb[t])}function nb(e,t,a){const i=["left","right"],n=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:i:t?i:n;case"left":case"right":return t?r:o;default:return[]}}function rb(e,t,a,i){const n=ko(e);let r=nb(Ja(e),a==="start",i);return n&&(r=r.map(o=>o+"-"+n),t&&(r=r.concat(r.map(il)))),r}function Yr(e){return e.replace(/left|right|bottom|top/g,t=>eb[t])}function ob(e){return{top:0,right:0,bottom:0,left:0,...e}}function sb(e){return typeof e!="number"?ob(e):{top:e,right:e,bottom:e,left:e}}function Lr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jd(e,t,a){let{reference:i,floating:n}=e;const r=A0(t),o=Cf(t),s=Bf(o),l=Ja(t),d=r==="y",u=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,f=i[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:c};break;case"left":h={x:i.x-n.width,y:c};break;default:h={x:i.x,y:i.y}}switch(ko(t)){case"start":h[o]-=f*(a&&d?-1:1);break;case"end":h[o]+=f*(a&&d?-1:1);break}return h}const lb=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a,s=r.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:c}=Jd(d,i,l),f=i,h={},_=0;for(let m=0;mk<=0)){var P,g;const k=(((P=r.flip)==null?void 0:P.index)||0)+1,x=j[k];if(x)return{data:{index:k,overflows:M},reset:{placement:x}};let L=(g=M.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:g.placement;if(!L)switch(h){case"bestFit":{var D;const Z=(D=M.map($=>[$.placement,$.overflows.filter(V=>V>0).reduce((V,y)=>V+y,0)]).sort(($,V)=>$[1]-V[1])[0])==null?void 0:D[0];Z&&(L=Z);break}case"initialPlacement":L=s;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function db(e,t){const{placement:a,platform:i,elements:n}=e,r=await(i.isRTL==null?void 0:i.isRTL(n.floating)),o=Ja(a),s=ko(a),l=A0(a)==="y",d=["left","top"].includes(o)?-1:1,u=r&&l?-1:1,c=dn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:_}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof _=="number"&&(h=s==="end"?_*-1:_),l?{x:h*u,y:f*d}:{x:f*d,y:h*u}}const cb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:a,y:i}=t,n=await db(t,e);return{x:a+n.x,y:i+n.y,data:n}}}},hb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=dn(e,t),d={x:a,y:i},u=await Mf(t,l),c=A0(Ja(n)),f=fu(c);let h=d[f],_=d[c];if(r){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=Qd(R,h,S)}if(o){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=Qd(R,_,S)}const m=s.fn({...t,[f]:h,[c]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},fb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:n,rects:r,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=dn(e,t),u={x:a,y:i},c=A0(n),f=fu(c);let h=u[f],_=u[c];const m=dn(s,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",C=r.reference[f]-r.floating[S]+p.mainAxis,j=r.reference[f]+r.reference[S]-p.mainAxis;hj&&(h=j)}if(d){var T,R;const S=f==="y"?"width":"height",C=["top","left"].includes(Ja(n)),j=r.reference[c]-r.floating[S]+(C&&((T=o.offset)==null?void 0:T[c])||0)+(C?0:p.crossAxis),E=r.reference[c]+r.reference[S]+(C?0:((R=o.offset)==null?void 0:R[c])||0)-(C?p.crossAxis:0);_E&&(_=E)}return{[f]:h,[c]:_}}}};function Ka(e){return Yf(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wa(e){var t;return(t=(Yf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Yf(e){return e instanceof Node||e instanceof Nt(e).Node}function ba(e){return e instanceof Element||e instanceof Nt(e).Element}function oa(e){return e instanceof HTMLElement||e instanceof Nt(e).HTMLElement}function Kd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function S0(e){const{overflow:t,overflowX:a,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(n)}function gb(e){return["table","td","th"].includes(Ka(e))}function gu(e){const t=_u(),a=Zt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function _b(e){let t=cn(e);for(;oa(t)&&!vo(t);){if(gu(t))return t;t=cn(t)}return null}function _u(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(Ka(e))}function Zt(e){return Nt(e).getComputedStyle(e)}function Ro(e){return ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cn(e){if(Ka(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Kd(e)&&e.host||wa(e);return Kd(t)?t.host:t}function Lf(e){const t=cn(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:oa(t)&&S0(t)?t:Lf(t)}function u0(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Lf(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),o=Nt(n);return r?t.concat(o,o.visualViewport||[],S0(n)?n:[],o.frameElement&&a?u0(o.frameElement):[]):t.concat(n,u0(n,[],a))}function Zf(e){const t=Zt(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=oa(e),r=n?e.offsetWidth:a,o=n?e.offsetHeight:i,s=Mr(a)!==r||Mr(i)!==o;return s&&(a=r,i=o),{width:a,height:i,$:s}}function Fu(e){return ba(e)?e:e.contextElement}function an(e){const t=Fu(e);if(!oa(t))return Qa(1);const a=t.getBoundingClientRect(),{width:i,height:n,$:r}=Zf(t);let o=(r?Mr(a.width):a.width)/i,s=(r?Mr(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Fb=Qa(0);function If(e){const t=Nt(e);return!_u()||!t.visualViewport?Fb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mb(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Nt(e)?!1:t}function ki(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),r=Fu(e);let o=Qa(1);t&&(i?ba(i)&&(o=an(i)):o=an(e));const s=mb(r,a,i)?If(r):Qa(0);let l=(n.left+s.x)/o.x,d=(n.top+s.y)/o.y,u=n.width/o.x,c=n.height/o.y;if(r){const f=Nt(r),h=i&&ba(i)?Nt(i):i;let _=f.frameElement;for(;_&&i&&h!==f;){const m=an(_),p=_.getBoundingClientRect(),T=Zt(_),R=p.left+(_.clientLeft+parseFloat(T.paddingLeft))*m.x,S=p.top+(_.clientTop+parseFloat(T.paddingTop))*m.y;l*=m.x,d*=m.y,u*=m.x,c*=m.y,l+=R,d+=S,_=Nt(_).frameElement}}return Lr({width:u,height:c,x:l,y:d})}function pb(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=oa(a),r=wa(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0},s=Qa(1);const l=Qa(0);if((n||!n&&i!=="fixed")&&((Ka(a)!=="body"||S0(r))&&(o=Ro(a)),oa(a))){const d=ki(a);s=an(a),l.x=d.x+a.clientLeft,l.y=d.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function Tb(e){return Array.from(e.getClientRects())}function jf(e){return ki(wa(e)).left+Ro(e).scrollLeft}function Db(e){const t=wa(e),a=Ro(e),i=e.ownerDocument.body,n=Ei(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=Ei(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-a.scrollLeft+jf(e);const s=-a.scrollTop;return Zt(i).direction==="rtl"&&(o+=Ei(t.clientWidth,i.clientWidth)-n),{width:n,height:r,x:o,y:s}}function Eb(e,t){const a=Nt(e),i=wa(e),n=a.visualViewport;let r=i.clientWidth,o=i.clientHeight,s=0,l=0;if(n){r=n.width,o=n.height;const d=_u();(!d||d&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:s,y:l}}function bb(e,t){const a=ki(e,!0,t==="fixed"),i=a.top+e.clientTop,n=a.left+e.clientLeft,r=oa(e)?an(e):Qa(1),o=e.clientWidth*r.x,s=e.clientHeight*r.y,l=n*r.x,d=i*r.y;return{width:o,height:s,x:l,y:d}}function Xd(e,t,a){let i;if(t==="viewport")i=Eb(e,a);else if(t==="document")i=Db(wa(e));else if(ba(t))i=bb(t,a);else{const n=If(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return Lr(i)}function Pf(e,t){const a=cn(e);return a===t||!ba(a)||vo(a)?!1:Zt(a).position==="fixed"||Pf(a,t)}function yb(e,t){const a=t.get(e);if(a)return a;let i=u0(e,[],!1).filter(s=>ba(s)&&Ka(s)!=="body"),n=null;const r=Zt(e).position==="fixed";let o=r?cn(e):e;for(;ba(o)&&!vo(o);){const s=Zt(o),l=gu(o);!l&&s.position==="fixed"&&(n=null),(r?!l&&!n:!l&&s.position==="static"&&n&&["absolute","fixed"].includes(n.position)||S0(o)&&!l&&Pf(e,o))?i=i.filter(d=>d!==o):n=s,o=cn(o)}return t.set(e,i),i}function Ab(e){let{element:t,boundary:a,rootBoundary:i,strategy:n}=e;const r=[...a==="clippingAncestors"?yb(t,this._c):[].concat(a),i],o=r[0],s=r.reduce((l,d)=>{const u=Xd(t,d,n);return l.top=Ei(u.top,l.top),l.right=Cr(u.right,l.right),l.bottom=Cr(u.bottom,l.bottom),l.left=Ei(u.left,l.left),l},Xd(t,o,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Sb(e){return Zf(e)}function kb(e,t,a){const i=oa(t),n=wa(t),r=a==="fixed",o=ki(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=Qa(0);if(i||!i&&!r)if((Ka(t)!=="body"||S0(n))&&(s=Ro(t)),i){const d=ki(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else n&&(l.x=jf(n));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function e1(e,t){return!oa(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Gf(e,t){const a=Nt(e);if(!oa(e))return a;let i=e1(e,t);for(;i&&gb(i)&&Zt(i).position==="static";)i=e1(i,t);return i&&(Ka(i)==="html"||Ka(i)==="body"&&Zt(i).position==="static"&&!gu(i))?a:i||_b(e)||a}const vb=async function(e){let{reference:t,floating:a,strategy:i}=e;const n=this.getOffsetParent||Gf,r=this.getDimensions;return{reference:kb(t,await n(a),i),floating:{x:0,y:0,...await r(a)}}};function Rb(e){return Zt(e).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:pb,getDocumentElement:wa,getClippingRect:Ab,getOffsetParent:Gf,getElementRects:vb,getClientRects:Tb,getDimensions:Sb,getScale:an,isElement:ba,isRTL:Rb};function wb(e,t){let a=null,i;const n=wa(e);function r(){clearTimeout(i),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const{left:d,top:u,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const h=I0(u),_=I0(n.clientWidth-(d+c)),m=I0(n.clientHeight-(u+f)),p=I0(d),T={rootMargin:-h+"px "+-_+"px "+-m+"px "+-p+"px",threshold:Ei(0,Cr(1,l))||1};let R=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!R)return o();j?o(!1,j):i=setTimeout(()=>{o(!1,1e-7)},100)}R=!1}try{a=new IntersectionObserver(S,{...T,root:n.ownerDocument})}catch{a=new IntersectionObserver(S,T)}a.observe(e)}return o(!0),r}function Ob(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=Fu(e),u=n||r?[...d?u0(d):[],...u0(t)]:[];u.forEach(T=>{n&&T.addEventListener("scroll",a,{passive:!0}),r&&T.addEventListener("resize",a)});const c=d&&s?wb(d,a):null;let f=-1,h=null;o&&(h=new ResizeObserver(T=>{let[R]=T;R&&R.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),d&&!l&&h.observe(d),h.observe(t));let _,m=l?ki(e):null;l&&p();function p(){const T=ki(e);m&&(T.x!==m.x||T.y!==m.y||T.width!==m.width||T.height!==m.height)&&a(),m=T,_=requestAnimationFrame(p)}return a(),()=>{u.forEach(T=>{n&&T.removeEventListener("scroll",a),r&&T.removeEventListener("resize",a)}),c&&c(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(_)}}const xb=(e,t,a)=>{const i=new Map,n={platform:Nb,...a},r={...n.platform,_c:i};return lb(e,t,{...n,platform:r})},Bb={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cb=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Mb=[],Yb=ce(Bb,Cb,Mb,!1,null,null,null,null);const Lb=Yb.exports,Zb={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ib=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},jb=[],Pb=ce(Zb,Ib,jb,!1,null,null,null,null);const No=Pb.exports;const Uf=(e,t)=>{const a=[];let i=0,n=e.toLowerCase().indexOf(t.toLowerCase(),i),r=0;for(;n>-1&&r[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=Uf(this.text,this.search),e.forEach((t,a)=>{t.end(a.start0&&t.push({start:a.start<0?0:a.start,end:a.end>this.text.length?this.text.length:a.end}),t),[]),e.sort((t,a)=>t.start-a.start),e=e.reduce((t,a)=>{if(!t.length)t.push(a);else{const i=t.length-1;t[i].end>=a.start?t[i]={start:t[i].start,end:Math.max(t[i].end,a.end)}:t.push(a)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,a=0;for(;t=this.ranges.length&&tt.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},Ub=null,qb=null;var Hb=ce(Gb,Ub,qb,!1,null,null,null,null);const wo=Hb.exports,zb={name:"NcEllipsisedOption",components:{NcHighlight:wo},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?Uf(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var Vb=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},$b=[],Wb=ce(zb,Vb,$b,!1,null,"08c4259e",null,null);const Qb=Wb.exports;var qf=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Zr=qf.join(","),Hf=typeof Element>"u",vi=Hf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ir=!Hf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},jr=function e(t,a){var i;a===void 0&&(a=!0);var n=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),r=n===""||n==="true",o=r||a&&t&&e(t.parentNode);return o},Jb=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},zf=function(e,t,a){if(jr(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Zr));return t&&vi.call(e,Zr)&&i.unshift(e),i=i.filter(a),i},Vf=function e(t,a,i){for(var n=[],r=Array.from(t);r.length;){var o=r.shift();if(!jr(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,d=e(l,!0,i);i.flatten?n.push.apply(n,d):n.push({scopeParent:o,candidates:d})}else{var u=vi.call(o,Zr);u&&i.filter(o)&&(a||!t.includes(o))&&n.push(o);var c=o.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(o),f=!jr(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(c&&f){var h=e(c===!0?o.children:c.children,!0,i);i.flatten?n.push.apply(n,h):n.push({scopeParent:o,candidates:h})}else r.unshift.apply(r,o.children)}}return n},$f=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},fi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Jb(e))&&!$f(e)?0:e.tabIndex},Kb=function(e,t){var a=fi(e);return a<0&&t&&!$f(e)?0:a},Xb=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Wf=function(e){return e.tagName==="INPUT"},ey=function(e){return Wf(e)&&e.type==="hidden"},ty=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},ay=function(e,t){for(var a=0;asummary:first-of-type"),r=n?e.parentElement:e;if(vi.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var s=e.parentElement,l=Ir(e);if(s&&!s.shadowRoot&&i(s)===!0)return t1(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=o}if(oy(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return t1(e);return!1},ly=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},dy=function e(t){var a=[],i=[];return t.forEach(function(n,r){var o=!!n.scopeParent,s=o?n.scopeParent:n,l=Kb(s,o),d=o?e(n.candidates):s;l===0?o?a.push.apply(a,d):a.push(s):i.push({documentOrder:r,tabIndex:l,item:n,isScope:o,content:d})}),i.sort(Xb).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(a)},cy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Vf([e],t.includeContainer,{filter:nl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:uy}):a=zf(e,t.includeContainer,nl.bind(null,t)),dy(a)},hy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=Vf([e],t.includeContainer,{filter:Pr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=zf(e,t.includeContainer,Pr.bind(null,t)),a},xi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return vi.call(e,Zr)===!1?!1:nl(t,e)},fy=qf.concat("iframe").join(","),os=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return vi.call(e,fy)===!1?!1:Pr(t,e)};function a1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,i)}return a}function i1(e){for(var t=1;t0){var a=e[e.length-1];a!==t&&a.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},my=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},py=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Gn=function(e){return e?.key==="Tab"||e?.keyCode===9},Ty=function(e){return Gn(e)&&!e.shiftKey},Dy=function(e){return Gn(e)&&e.shiftKey},r1=function(e){return setTimeout(e,0)},o1=function(e,t){var a=-1;return e.every(function(i,n){return t(i)?(a=n,!1):!0}),a},kn=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?k-1:0),L=1;L=0)g=a.activeElement;else{var D=r.tabbableGroups[0],k=D&&D.firstTabbableNode;g=k||d("fallbackFocus")}if(!g)throw new Error("Your focus-trap needs to have at least one focusable element");return g},c=function(){if(r.containerGroups=r.containers.map(function(g){var D=cy(g,n.tabbableOptions),k=hy(g,n.tabbableOptions),x=D.length>0?D[0]:void 0,L=D.length>0?D[D.length-1]:void 0,Z=k.find(function(y){return xi(y)}),$=k.slice().reverse().find(function(y){return xi(y)}),V=!!D.find(function(y){return fi(y)>0});return{container:g,tabbableNodes:D,focusableNodes:k,posTabIndexesFound:V,firstTabbableNode:x,lastTabbableNode:L,firstDomTabbableNode:Z,lastDomTabbableNode:$,nextTabbableNode:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=D.indexOf(y);return A<0?U?k.slice(k.indexOf(y)+1).find(function(z){return xi(z)}):k.slice(0,k.indexOf(y)).reverse().find(function(z){return xi(z)}):D[A+(U?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(g){return g.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(g){return g.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function g(D){var k=D.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?g(k.shadowRoot):k},h=function g(D){if(D!==!1&&D!==f(document)){if(!D||!D.focus){g(u());return}D.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=D,my(D)&&D.select()}},_=function(g){var D=d("setReturnFocus",g);return D||(D===!1?!1:g)},m=function(g){var D=g.target,k=g.event,x=g.isBackward,L=x===void 0?!1:x;D=D||j0(k),c();var Z=null;if(r.tabbableGroups.length>0){var $=l(D,k),V=$>=0?r.containerGroups[$]:void 0;if($<0)L?Z=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:Z=r.tabbableGroups[0].firstTabbableNode;else if(L){var y=o1(r.tabbableGroups,function(ge){var Se=ge.firstTabbableNode;return D===Se});if(y<0&&(V.container===D||os(D,n.tabbableOptions)&&!xi(D,n.tabbableOptions)&&!V.nextTabbableNode(D,!1))&&(y=$),y>=0){var U=y===0?r.tabbableGroups.length-1:y-1,A=r.tabbableGroups[U];Z=fi(D)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D,!1))}else{var z=o1(r.tabbableGroups,function(ge){var Se=ge.lastTabbableNode;return D===Se});if(z<0&&(V.container===D||os(D,n.tabbableOptions)&&!xi(D,n.tabbableOptions)&&!V.nextTabbableNode(D))&&(z=$),z>=0){var re=z===r.tabbableGroups.length-1?0:z+1,O=r.tabbableGroups[re];Z=fi(D)>=0?O.firstTabbableNode:O.firstDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D))}}else Z=d("fallbackFocus");return Z},p=function(g){var D=j0(g);if(!(l(D,g)>=0)){if(kn(n.clickOutsideDeactivates,g)){o.deactivate({returnFocus:n.returnFocusOnDeactivate});return}kn(n.allowOutsideClick,g)||g.preventDefault()}},T=function(g){var D=j0(g),k=l(D,g)>=0;if(k||D instanceof Document)k&&(r.mostRecentlyFocusedNode=D);else{g.stopImmediatePropagation();var x,L=!0;if(r.mostRecentlyFocusedNode)if(fi(r.mostRecentlyFocusedNode)>0){var Z=l(r.mostRecentlyFocusedNode),$=r.containerGroups[Z].tabbableNodes;if($.length>0){var V=$.findIndex(function(y){return y===r.mostRecentlyFocusedNode});V>=0&&(n.isKeyForward(r.recentNavEvent)?V+1<$.length&&(x=$[V+1],L=!1):V-1>=0&&(x=$[V-1],L=!1))}}else r.containerGroups.some(function(y){return y.tabbableNodes.some(function(U){return fi(U)>0})})||(L=!1);else L=!1;L&&(x=m({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),h(x||r.mostRecentlyFocusedNode||u())}r.recentNavEvent=void 0},R=function(g){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=g;var k=m({event:g,isBackward:D});k&&(Gn(g)&&g.preventDefault(),h(k))},S=function(g){if(py(g)&&kn(n.escapeDeactivates,g)!==!1){g.preventDefault(),o.deactivate();return}(n.isKeyForward(g)||n.isKeyBackward(g))&&R(g,n.isKeyBackward(g))},C=function(g){var D=j0(g);l(D,g)>=0||kn(n.clickOutsideDeactivates,g)||kn(n.allowOutsideClick,g)||(g.preventDefault(),g.stopImmediatePropagation())},j=function(){if(r.active)return n1.activateTrap(i,o),r.delayInitialFocusTimer=n.delayInitialFocus?r1(function(){h(u())}):h(u()),a.addEventListener("focusin",T,!0),a.addEventListener("mousedown",p,{capture:!0,passive:!1}),a.addEventListener("touchstart",p,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",S,{capture:!0,passive:!1}),o},E=function(){if(r.active)return a.removeEventListener("focusin",T,!0),a.removeEventListener("mousedown",p,!0),a.removeEventListener("touchstart",p,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",S,!0),o},I=function(g){var D=g.some(function(k){var x=Array.from(k.removedNodes);return x.some(function(L){return L===r.mostRecentlyFocusedNode})});D&&h(u())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,P=function(){M&&(M.disconnect(),r.active&&!r.paused&&r.containers.map(function(g){M.observe(g,{subtree:!0,childList:!0})}))};return o={get active(){return r.active},get paused(){return r.paused},activate:function(g){if(r.active)return this;var D=s(g,"onActivate"),k=s(g,"onPostActivate"),x=s(g,"checkCanFocusTrap");x||c(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,D?.();var L=function(){x&&c(),j(),P(),k?.()};return x?(x(r.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(g){if(!r.active)return this;var D=i1({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},g);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,E(),r.active=!1,r.paused=!1,P(),n1.deactivateTrap(i,o);var k=s(D,"onDeactivate"),x=s(D,"onPostDeactivate"),L=s(D,"checkCanReturnFocus"),Z=s(D,"returnFocus","returnFocusOnDeactivate");k?.();var $=function(){r1(function(){Z&&h(_(r.nodeFocusedBeforeActivation)),x?.()})};return Z&&L?(L(_(r.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(g){if(r.paused||!r.active)return this;var D=s(g,"onPause"),k=s(g,"onPostPause");return r.paused=!0,D?.(),E(),P(),k?.(),this},unpause:function(g){if(!r.paused||!r.active)return this;var D=s(g,"onUnpause"),k=s(g,"onPostUnpause");return r.paused=!1,D?.(),c(),j(),P(),k?.(),this},updateContainerElements:function(g){var D=[].concat(g).filter(Boolean);return r.containers=D.map(function(k){return typeof k=="string"?a.querySelector(k):k}),r.active&&c(),P(),this}},o.updateContainerElements(e),o};const rl=function(){return Object.assign(window,{_nc_focus_trap:window._nc_focus_trap||[]}),window._nc_focus_trap},by={name:"NcPopover",components:{Dropdown:tD},inheritAttrs:!1,props:{popoverBaseClass:{type:String,default:""},focusTrap:{type:Boolean,default:!0},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean]}},emits:["after-show","after-hide"],beforeDestroy(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{getPopoverContentElement(){var e,t;return(t=(e=this.$refs.popover)==null?void 0:e.$refs.popperContent)==null?void 0:t.$el},async useFocusTrap(){if(await this.$nextTick(),!this.focusTrap)return;const e=this.getPopoverContentElement();e&&(this.$focusTrap=Qf(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:rl()}),this.$focusTrap.activate())},clearFocusTrap(e={}){var t;try{(t=this.$focusTrap)==null||t.deactivate(e),this.$focusTrap=null}catch(a){console.warn(a)}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},afterShow(){this.$nextTick(()=>{this.$emit("after-show"),this.useFocusTrap(),this.addEscapeStopPropagation()})},afterHide(){this.$emit("after-hide"),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};var yy=function(){var e=this,t=e._self._c;return t("Dropdown",e._g(e._b({ref:"popover",attrs:{distance:10,"arrow-padding":10,"no-auto-focus":!0,"popper-class":e.popoverBaseClass},on:{"apply-show":e.afterShow,"apply-hide":e.afterHide},scopedSlots:e._u([{key:"popper",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)},"Dropdown",e.$attrs,!1),e.$listeners),[e._t("trigger")],2)},Ay=[],Sy=ce(by,yy,Ay,!1,null,null,null,null);const mu=Sy.exports,ky={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ry=[],Ny=ce(ky,vy,Ry,!1,null,null,null,null);const pu=Ny.exports,Bi=".focusable",wy={name:"NcActions",components:{NcButton:ti,DotsHorizontal:pu,NcPopover:mu},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:null},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:ie("Actions")},ariaHidden:{type:Boolean,default:null},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.querySelector("body")},container:{type:[String,Object,Element,Boolean],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0}},emits:["open","update:open","close","focus","blur"],data(){return{opened:this.open,focusIndex:0,randomId:`menu-${g0()}`}},computed:{triggerBtnType(){return this.type||(this.primary?"primary":this.menuName?"secondary":"tertiary")}},watch:{open(e){e!==this.opened&&(this.opened=e)}},methods:{isValidSingleAction(e){var t,a,i,n,r;const o=(r=(i=(a=(t=e?.componentOptions)==null?void 0:t.Ctor)==null?void 0:a.extendOptions)==null?void 0:i.name)!=null?r:(n=e?.componentOptions)==null?void 0:n.tag;return["NcActionButton","NcActionLink","NcActionRouter"].includes(o)},openMenu(e){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},closeMenu(e=!0){this.opened&&(this.opened=!1,this.$refs.popover.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,this.$refs.menuButton.$el.focus())},onOpen(e){this.$nextTick(()=>{this.focusFirstAction(e)})},onMouseFocusAction(e){if(document.activeElement===e.target)return;const t=e.target.closest("li");if(t){const a=t.querySelector(Bi);if(a){const i=[...this.$refs.menu.querySelectorAll(Bi)].indexOf(a);i>-1&&(this.focusIndex=i,this.focusAction())}}},onKeydown(e){(e.keyCode===38||e.keyCode===9&&e.shiftKey)&&this.focusPreviousAction(e),(e.keyCode===40||e.keyCode===9&&!e.shiftKey)&&this.focusNextAction(e),e.keyCode===33&&this.focusFirstAction(e),e.keyCode===34&&this.focusLastAction(e),e.keyCode===27&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.$refs.menu.querySelectorAll(Bi)[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.$refs.menu.querySelectorAll(Bi).length-1;this.focusIndex===t?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.$refs.menu.querySelectorAll(Bi)].findIndex(a=>a.parentElement.getAttribute("aria-selected"));this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.$refs.menu.querySelectorAll(Bi).length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)}},render(e){const t=(this.$slots.default||[]).filter(s=>{var l,d,u,c;return((l=s?.componentOptions)==null?void 0:l.tag)||((c=(u=(d=s?.componentOptions)==null?void 0:d.Ctor)==null?void 0:u.extendOptions)==null?void 0:c.name)}),a=s=>{var l,d,u,c,f,h,_;const m=(f=(u=(d=(l=s?.componentOptions)==null?void 0:l.Ctor)==null?void 0:d.extendOptions)==null?void 0:u.name)!=null?f:(c=s?.componentOptions)==null?void 0:c.tag,p=(_=(h=s?.componentOptions)==null?void 0:h.propsData)==null?void 0:_.href;return m==="NcActionLink"&&!(p!=null&&p.startsWith("#"))&&new URL(p,window.location.origin).origin===window.location.origin},i=t.every(a);let n=t.filter(this.isValidSingleAction);if(this.forceMenu&&n.length>0&&this.inline>0&&(Sa.util.warn("Specifying forceMenu will ignore any inline actions rendering."),n=[]),t.length===0)return;const r=s=>{var l,d,u,c,f,h,_,m,p,T,R,S,C,j,E,I,M,P,g,D,k,x,L;const Z=((u=(d=(l=s?.data)==null?void 0:l.scopedSlots)==null?void 0:d.icon())==null?void 0:u[0])||e("span",{class:["icon",(f=(c=s?.componentOptions)==null?void 0:c.propsData)==null?void 0:f.icon]}),$=((h=s?.data)==null?void 0:h.attrs)||{},V=(m=(_=s?.componentOptions)==null?void 0:_.listeners)==null?void 0:m.click,y=(C=(S=(R=(T=(p=s?.componentOptions)==null?void 0:p.children)==null?void 0:T[0])==null?void 0:R.text)==null?void 0:S.trim)==null?void 0:C.call(S),U=((E=(j=s?.componentOptions)==null?void 0:j.propsData)==null?void 0:E.ariaLabel)||y,A=this.forceName?y:"";let z=(M=(I=s?.componentOptions)==null?void 0:I.propsData)==null?void 0:M.title;return this.forceName||z||(z=y),e("NcButton",{class:["action-item action-item--single",(P=s?.data)==null?void 0:P.staticClass,(g=s?.data)==null?void 0:g.class],attrs:{...$,"aria-label":U,title:z},ref:(D=s?.data)==null?void 0:D.ref,props:{type:this.type||(A?"secondary":"tertiary"),disabled:this.disabled||((x=(k=s?.componentOptions)==null?void 0:k.propsData)==null?void 0:x.disabled),ariaHidden:this.ariaHidden,...(L=s?.componentOptions)==null?void 0:L.propsData},on:{focus:this.onFocus,blur:this.onBlur,...!!V&&{click:re=>{V&&V(re)}}}},[e("template",{slot:"icon"},[Z]),A])},o=s=>{var l,d;const u=((l=this.$slots.icon)==null?void 0:l[0])||(this.defaultIcon?e("span",{class:["icon",this.defaultIcon]}):e("DotsHorizontal",{props:{size:20}})),c=()=>i||this.opened?this.opened.toString():null;return e("NcPopover",{ref:"popover",props:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,popoverBaseClass:"action-item__popper",setReturnFocus:(d=this.$refs.menuButton)==null?void 0:d.$el},attrs:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]}},on:{show:this.openMenu,"after-show":this.onOpen,hide:this.closeMenu}},[e("NcButton",{class:"action-item__menutoggle",props:{type:this.triggerBtnType,disabled:this.disabled,ariaHidden:this.ariaHidden},slot:"trigger",ref:"menuButton",attrs:{"aria-haspopup":i?null:"menu","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened?this.randomId:null,"aria-expanded":c()},on:{focus:this.onFocus,blur:this.onBlur}},[e("template",{slot:"icon"},[u]),this.menuName]),e("div",{class:{open:this.opened},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown,mousemove:this.onMouseFocusAction},ref:"menu"},[e("ul",{attrs:{id:this.randomId,tabindex:"-1",role:i?null:"menu"}},[s])])])};if(t.length===1&&n.length===1&&!this.forceMenu)return r(n[0]);if(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),n.length>0&&this.inline>0){const s=n.slice(0,this.inline),l=t.filter(d=>!s.includes(d));return e("div",{class:["action-items",`action-item--${this.triggerBtnType}`]},[...s.map(r),l.length>0?e("div",{class:["action-item",{"action-item--open":this.opened}]},[o(l)]):null])}return e("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerBtnType}`,{"action-item--open":this.opened}]},[o(t)])}},Oy=null,xy=null;var By=ce(wy,Oy,xy,!1,null,"f797c400",null,null);const Tu=By.exports;const Cy={name:"NcActionLink",mixins:[bf],props:{href:{type:String,default:"#",required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var My=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action"},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},Yy=[],Ly=ce(Cy,My,Yy,!1,null,"979f3026",null,null);const Zy=Ly.exports;function ir(e,t,a){this.r=e,this.g=t,this.b=a}function Iy(e,t){const a=new Array(3);return a[0]=(t[1].r-t[0].r)/e,a[1]=(t[1].g-t[0].g)/e,a[2]=(t[1].b-t[0].b)/e,a}function ss(e,t,a){const i=[];i.push(t);const n=Iy(e,[t,a]);for(let r=1;r>>32-i},rotr:function(a,i){return a<<32-i|a>>>i},endian:function(a){if(a.constructor==Number)return t.rotl(a,8)&16711935|t.rotl(a,24)&4278255360;for(var i=0;i0;a--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(a){for(var i=[],n=0,r=0;n>>5]|=a[n]<<24-r%32;return i},wordsToBytes:function(a){for(var i=[],n=0;n>>5]>>>24-n%32&255);return i},bytesToHex:function(a){for(var i=[],n=0;n>>4).toString(16)),i.push((a[n]&15).toString(16));return i.join("")},hexToBytes:function(a){for(var i=[],n=0;n>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],n=0,r=0;n>>6-r*2);return i}};Kf.exports=t})();var Py=Kf.exports,ol={utf8:{stringToBytes:function(e){return ol.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ol.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],a=0;a>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var _=n._ff,m=n._gg,p=n._hh,T=n._ii,h=0;h>>0,u=u+S>>>0,c=c+C>>>0,f=f+j>>>0}return e.endian([d,u,c,f])};n._ff=function(r,o,s,l,d,u,c){var f=r+(o&s|~o&l)+(d>>>0)+c;return(f<>>32-u)+o},n._gg=function(r,o,s,l,d,u,c){var f=r+(o&l|s&~l)+(d>>>0)+c;return(f<>>32-u)+o},n._hh=function(r,o,s,l,d,u,c){var f=r+(o^s^l)+(d>>>0)+c;return(f<>>32-u)+o},n._ii=function(r,o,s,l,d,u,c){var f=r+(s^(o|~l))+(d>>>0)+c;return(f<>>32-u)+o},n._blocksize=16,n._digestsize=16,Jf.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var s=e.wordsToBytes(n(r,o));return o&&o.asBytes?s:o&&o.asString?i.bytesToString(s):e.bytesToHex(s)}})();var qy=Jf.exports;const Hy=Xa(qy),l1=function(e){let t=e.toLowerCase();t.match(/^([0-9a-f]{4}-?){8}$/)===null&&(t=Hy(t)),t=t.replace(/[^0-9a-f]/g,"");const a=6,i=jy(a);function n(r,o){let s=0;const l=[];for(let d=0;d{for(const a in t)e[a]=t[a];return e},sl="numeric",ll="ascii",ul="alpha",nr="asciinumeric",P0="alphanumeric",dl="domain",eg="emoji",$y="scheme",Wy="slashscheme",u1="whitespace";function Qy(e,t){return e in t||(t[e]=[]),t[e]}function pi(e,t,a){t[sl]&&(t[nr]=!0,t[P0]=!0),t[ll]&&(t[nr]=!0,t[ul]=!0),t[nr]&&(t[P0]=!0),t[ul]&&(t[P0]=!0),t[P0]&&(t[dl]=!0),t[eg]&&(t[dl]=!0);for(const i in t){const n=Qy(i,a);n.indexOf(e)<0&&n.push(e)}}function Jy(e,t){const a={};for(const i in t)t[i].indexOf(e)>=0&&(a[i]=!0);return a}function At(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}At.groups={},At.prototype={accepts(){return!!this.t},go(e){const t=this,a=t.j[e];if(a)return a;for(let i=0;ie.ta(t,a,i,n),wt=(e,t,a,i,n)=>e.tr(t,a,i,n),d1=(e,t,a,i,n)=>e.ts(t,a,i,n),X=(e,t,a,i,n)=>e.tt(t,a,i,n),ha="WORD",cl="UWORD",d0="LOCALHOST",hl="TLD",fl="UTLD",rr="SCHEME",ji="SLASH_SCHEME",Du="NUM",tg="WS",Eu="NL",Vi="OPENBRACE",Un="OPENBRACKET",qn="OPENANGLEBRACKET",Hn="OPENPAREN",gi="CLOSEBRACE",$i="CLOSEBRACKET",Wi="CLOSEANGLEBRACKET",_i="CLOSEPAREN",Gr="AMPERSAND",Ur="APOSTROPHE",qr="ASTERISK",Za="AT",Hr="BACKSLASH",zr="BACKTICK",Vr="CARET",Pa="COLON",bu="COMMA",$r="DOLLAR",$t="DOT",Wr="EQUALS",yu="EXCLAMATION",Wt="HYPHEN",Qr="PERCENT",Jr="PIPE",Kr="PLUS",Xr="POUND",eo="QUERY",Au="QUOTE",Su="SEMI",Qt="SLASH",zn="TILDE",to="UNDERSCORE",ag="EMOJI",ao="SYM";var ig=Object.freeze({__proto__:null,WORD:ha,UWORD:cl,LOCALHOST:d0,TLD:hl,UTLD:fl,SCHEME:rr,SLASH_SCHEME:ji,NUM:Du,WS:tg,NL:Eu,OPENBRACE:Vi,OPENBRACKET:Un,OPENANGLEBRACKET:qn,OPENPAREN:Hn,CLOSEBRACE:gi,CLOSEBRACKET:$i,CLOSEANGLEBRACKET:Wi,CLOSEPAREN:_i,AMPERSAND:Gr,APOSTROPHE:Ur,ASTERISK:qr,AT:Za,BACKSLASH:Hr,BACKTICK:zr,CARET:Vr,COLON:Pa,COMMA:bu,DOLLAR:$r,DOT:$t,EQUALS:Wr,EXCLAMATION:yu,HYPHEN:Wt,PERCENT:Qr,PIPE:Jr,PLUS:Kr,POUND:Xr,QUERY:eo,QUOTE:Au,SEMI:Su,SLASH:Qt,TILDE:zn,UNDERSCORE:to,EMOJI:ag,SYM:ao});const Ci=/[a-z]/,ls=/\p{L}/u,us=/\p{Emoji}/u,ds=/\d/,c1=/\s/,h1=`
-`,Ky="️",Xy="";let G0=null,U0=null;function e4(e){e===void 0&&(e=[]);const t={};At.groups=t;const a=new At;G0==null&&(G0=f1(zy)),U0==null&&(U0=f1(Vy)),X(a,"'",Ur),X(a,"{",Vi),X(a,"[",Un),X(a,"<",qn),X(a,"(",Hn),X(a,"}",gi),X(a,"]",$i),X(a,">",Wi),X(a,")",_i),X(a,"&",Gr),X(a,"*",qr),X(a,"@",Za),X(a,"`",zr),X(a,"^",Vr),X(a,":",Pa),X(a,",",bu),X(a,"$",$r),X(a,".",$t),X(a,"=",Wr),X(a,"!",yu),X(a,"-",Wt),X(a,"%",Qr),X(a,"|",Jr),X(a,"+",Kr),X(a,"#",Xr),X(a,"?",eo),X(a,'"',Au),X(a,"/",Qt),X(a,";",Su),X(a,"~",zn),X(a,"_",to),X(a,"\\",Hr);const i=wt(a,ds,Du,{[sl]:!0});wt(i,ds,i);const n=wt(a,Ci,ha,{[ll]:!0});wt(n,Ci,n);const r=wt(a,ls,cl,{[ul]:!0});wt(r,Ci),wt(r,ls,r);const o=wt(a,c1,tg,{[u1]:!0});X(a,h1,Eu,{[u1]:!0}),X(o,h1),wt(o,c1,o);const s=wt(a,us,ag,{[eg]:!0});wt(s,us,s),X(s,Ky,s);const l=X(s,Xy);wt(l,us,s);const d=[[Ci,n]],u=[[Ci,null],[ls,r]];for(let c=0;cc[0]>f[0]?1:-1);for(let c=0;c=0?h[dl]=!0:Ci.test(f)?ds.test(f)?h[nr]=!0:h[ll]=!0:h[sl]=!0,d1(a,f,f,h)}return d1(a,"localhost",d0,{ascii:!0}),a.jd=new At(ao),{start:a,tokens:hn({groups:t},ig)}}function t4(e,t){const a=a4(t.replace(/[A-Z]/g,s=>s.toLowerCase())),i=a.length,n=[];let r=0,o=0;for(;o=0&&(c+=a[o].length,f++),d+=a[o].length,r+=a[o].length,o++;r-=c,o-=f,d-=c,n.push({t:u.t,v:t.slice(r-d,r),s:r-d,e:r})}return n}function a4(e){const t=[],a=e.length;let i=0;for(;i56319||i+1===a||(r=e.charCodeAt(i+1))<56320||r>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}function xa(e,t,a,i,n){let r;const o=t.length;for(let s=0;s=0;)r++;if(r>0){t.push(a.join(""));for(let o=parseInt(e.substring(i,i+r),10);o>0;o--)a.pop();i+=r}else a.push(e[i]),i++}return t}const c0={defaultProtocol:"http",events:null,format:g1,formatHref:g1,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function ku(e,t){t===void 0&&(t=null);let a=hn({},c0);e&&(a=hn(a,e instanceof ku?e.o:e));const i=a.ignoreTags,n=[];for(let r=0;ra?i.substring(0,a)+"…":i},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){return e===void 0&&(e=c0.defaultProtocol),{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 t=this,a=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",a,this),n=e.get("tagName",a,t),r=this.toFormattedString(e),o={},s=e.get("className",a,t),l=e.get("target",a,t),d=e.get("rel",a,t),u=e.getObj("attributes",a,t),c=e.getObj("events",a,t);return o.href=i,s&&(o.class=s),l&&(o.target=l),d&&(o.rel=d),u&&hn(o,u),{tagName:n,attributes:o,content:r,eventListeners:c}}};function Oo(e,t){class a extends ng{constructor(n,r){super(n,r),this.t=e}}for(const i in t)a.prototype[i]=t[i];return a.t=e,a}const _1=Oo("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),F1=Oo("text"),i4=Oo("nl"),ui=Oo("url",{isLink:!0,toHref(e){return e===void 0&&(e=c0.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==d0&&e[1].t===Pa}}),at=e=>new At(e);function n4(e){let{groups:t}=e;const a=t.domain.concat([Gr,qr,Za,Hr,zr,Vr,$r,Wr,Wt,Du,Qr,Jr,Kr,Xr,Qt,ao,zn,to]),i=[Ur,Wi,gi,$i,_i,Pa,bu,$t,yu,qn,Vi,Un,Hn,eo,Au,Su],n=[Gr,Ur,qr,Hr,zr,Vr,gi,$r,Wr,Wt,Vi,Qr,Jr,Kr,Xr,eo,Qt,ao,zn,to],r=at(),o=X(r,zn);he(o,n,o),he(o,t.domain,o);const s=at(),l=at(),d=at();he(r,t.domain,s),he(r,t.scheme,l),he(r,t.slashscheme,d),he(s,n,o),he(s,t.domain,s);const u=X(s,Za);X(o,Za,u),X(l,Za,u),X(d,Za,u);const c=X(o,$t);he(c,n,o),he(c,t.domain,o);const f=at();he(u,t.domain,f),he(f,t.domain,f);const h=X(f,$t);he(h,t.domain,f);const _=at(_1);he(h,t.tld,_),he(h,t.utld,_),X(u,d0,_);const m=X(f,Wt);he(m,t.domain,f),he(_,t.domain,f),X(_,$t,h),X(_,Wt,m);const p=X(_,Pa);he(p,t.numeric,_1);const T=X(s,Wt),R=X(s,$t);he(T,t.domain,s),he(R,n,o),he(R,t.domain,s);const S=at(ui);he(R,t.tld,S),he(R,t.utld,S),he(S,t.domain,s),he(S,n,o),X(S,$t,R),X(S,Wt,T),X(S,Za,u);const C=X(S,Pa),j=at(ui);he(C,t.numeric,j);const E=at(ui),I=at();he(E,a,E),he(E,i,I),he(I,a,E),he(I,i,I),X(S,Qt,E),X(j,Qt,E);const M=X(l,Pa),P=X(d,Pa),g=X(P,Qt),D=X(g,Qt);he(l,t.domain,s),X(l,$t,R),X(l,Wt,T),he(d,t.domain,s),X(d,$t,R),X(d,Wt,T),he(M,t.domain,E),X(M,Qt,E),he(D,t.domain,E),he(D,a,E),X(D,Qt,E);const k=X(E,Vi),x=X(E,Un),L=X(E,qn),Z=X(E,Hn);X(I,Vi,k),X(I,Un,x),X(I,qn,L),X(I,Hn,Z),X(k,gi,E),X(x,$i,E),X(L,Wi,E),X(Z,_i,E),X(k,gi,E);const $=at(ui),V=at(ui),y=at(ui),U=at(ui);he(k,a,$),he(x,a,V),he(L,a,y),he(Z,a,U);const A=at(),z=at(),re=at(),O=at();return he(k,i),he(x,i),he(L,i),he(Z,i),he($,a,$),he(V,a,V),he(y,a,y),he(U,a,U),he($,i,$),he(V,i,V),he(y,i,y),he(U,i,U),he(A,a,A),he(z,a,V),he(re,a,y),he(O,a,U),he(A,i,A),he(z,i,z),he(re,i,re),he(O,i,O),X(V,$i,E),X(y,Wi,E),X(U,_i,E),X($,gi,E),X(z,$i,E),X(re,Wi,E),X(O,_i,E),X(A,_i,E),X(r,d0,S),X(r,Eu,i4),{start:r,tokens:ig}}function r4(e,t,a){let i=a.length,n=0,r=[],o=[];for(;n=0&&f++,n++,u++;if(f<0)n-=u,n0&&(r.push(cs(F1,t,o)),o=[]),n-=f,u-=f;const h=c.t,_=a.slice(n-u,n);r.push(cs(h,t,_))}}return o.length>0&&r.push(cs(F1,t,o)),r}function cs(e,t,a){const i=a[0].s,n=a[a.length-1].e,r=t.slice(i,n);return new e(r,a)}const ft={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function o4(){ft.scanner=e4(ft.customSchemes);for(let e=0;e/g,">")}function l4(e){return e.replace(/"/g,""")}function u4(e){const t=[];for(const a in e){let i=e[a]+"";t.push(`${a}="${l4(i)}"`)}return t.join(" ")}function d4(e){let{tagName:t,attributes:a,content:i}=e;return`<${t} ${u4(a)}>${rg(i)}${t}>`}function c4(e,t){t===void 0&&(t={}),t=new ku(t,d4);const a=s4(e),i=[];for(let n=0;n
-`):!r.isLink||!t.check(r)?i.push(rg(r.toString())):i.push(t.render(r))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return c4(this,e)}});var og={exports:{}};(function(e){(function(t){if(typeof a!="function"){var a=function(_){return _};a.nonNative=!0}const i=a("plaintext"),n=a("html"),r=a("comment"),o=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function l(_,m,p){_=_||"",m=m||[],p=p||"";let T=u(m,p);return c(_,T)}function d(_,m){_=_||[],m=m||"";let p=u(_,m);return function(T){return c(T||"",p)}}l.init_streaming_mode=d;function u(_,m){return _=f(_),{allowable_tags:_,tag_replacement:m,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function c(_,m){if(typeof _!="string")throw new TypeError("'html' parameter must be a string");let p=m.allowable_tags,T=m.tag_replacement,R=m.state,S=m.tag_buffer,C=m.depth,j=m.in_quote_char,E="";for(let I=0,M=_.length;I":if(j)break;if(C){C--;break}j="",R=i,S+=">",p.has(h(S))?E+=S:E+=T,S="";break;case'"':case"'":P===j?j="":j=j||P,S+=P;break;case"-":S==="":S.slice(-2)=="--"&&(R=i),S="";break;default:S+=P;break}}return m.state=R,m.tag_buffer=S,m.depth=C,m.in_quote_char=j,E}function f(_){let m=new Set;if(typeof _=="string"){let p;for(;p=o.exec(_);)m.add(p[1])}else!a.nonNative&&typeof _[a.iterator]=="function"?m=new Set(_):typeof _.forEach=="function"&&_.forEach(m.add,m);return m}function h(_){let m=s.exec(_);return m?m[1].toLowerCase():null}e.exports?e.exports=l:t.striptags=l})(Ia)})(og);var h4=og.exports;const NM=Xa(h4);var sg={};const f4=Pl(B_);Object.defineProperty(sg,"__esModule",{value:!0});var g4=sg.getCapabilities=F4,_4=f4;function F4(){try{return(0,_4.loadState)("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}Sa.util.warn;function Bn(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const lg=lu?window:void 0;function or(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=lg):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[Bn(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=ff(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}let m1=!1;function p1(e,t,a={}){const{window:i=lg,ignore:n=[],capture:r=!0,detectIframe:o=!1}=a;if(!i)return;tl&&!m1&&(m1=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",ct)),i.document.documentElement.addEventListener("click",ct));let s=!0;const l=u=>n.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Bn(c);return f&&(u.target===f||u.composedPath().includes(f))}}),d=[or(i,"click",u=>{const c=Bn(e);if(!(!c||c===u.target||u.composedPath().includes(c))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:r}),or(i,"pointerdown",u=>{const c=Bn(e);c&&(s=!u.composedPath().includes(c)&&!l(u))},{passive:!0}),o&&or(i,"blur",u=>{setTimeout(()=>{var c;const f=Bn(e);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!f?.contains(i.document.activeElement)&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const ug={[Gd.mounted](e,t){const a=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=p1(e,t.value,{capture:a});else{const[i,n]=t.value;e.__onClickOutside_stop=p1(e,i,Object.assign({capture:a},n))}},[Gd.unmounted](e){e.__onClickOutside_stop()}};function hs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function dg(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}function p4(e,t=!1){const a=gt(t);let i=null,n;ei(kD(e),s=>{const l=hs(nt(s));if(l){const d=l;n=d.style.overflow,a.value&&(d.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=hs(nt(e));!s||a.value||(tl&&(i=or(s,"touchmove",l=>{m4(l)},{passive:!1})),s.style.overflow="hidden",a.value=!0)},o=()=>{const s=hs(nt(e));!s||!a.value||(tl&&i?.(),s.style.overflow=n,a.value=!1)};return E0(o),st({get(){return a.value},set(s){s?r():o()}})}function T4(){let e=!1;const t=gt(!1);return(a,i)=>{if(t.value=i.value,e)return;e=!0;const n=p4(a,i.value);ei(t,r=>n.value=r)}}T4();const cg={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,a;if(!e)return;const i=g4();if(!(!Object.prototype.hasOwnProperty.call(i,"user_status")||!i.user_status.enabled)&&Ys())try{const{data:n}=await Va.get($a("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:r,message:o,icon:s}=n.ocs.data;this.userStatus.status=r,this.userStatus.message=o||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&((a=(t=n.response.data.ocs)==null?void 0:t.data)==null?void 0:a.length)===0)return;console.error(n)}}}},hg=df("nextcloud").persist().build();function D4(e){const t=hg.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function T1(e,t){e&&hg.setItem("user-has-avatar."+e,t)}const E4={name:"NcAvatar",directives:{ClickOutside:ug},components:{DotsHorizontal:pu,NcActions:Tu,NcActionLink:Zy,NcButton:ti,NcLoadingIcon:Ml},mixins:[cg],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!0},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},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,contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var e,t;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?ie("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:this.userStatusText}):ie("Avatar of {displayName}",{displayName:(t=this.displayName)!=null?t:this.user})},userStatusText(){switch(this.userStatus.status){case"away":return ie("away");case"dnd":return ie("do not disturb");case"online":return ie("online");case"offline":return ie("offline");default:return this.userStatus.status}},userStatusRole(){return this.hasMenu?void 0:{role:"img","aria-label":ie("User status: {status}",{status:this.userStatusText})}},canDisplayUserStatus(){return this.showUserStatus&&this.hasStatus&&["online","away","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return this.showUserStatus&&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(){var e;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((e=Ys())==null?void 0:e.uid)||this.userDoesNotExist||this.url)},showInitials(){return this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.size+"px",fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:a}=l1(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${t}, ${a}, 0.1)`}},initialsStyle(){const{r:e,g:t,b:a}=l1(this.userIdentifier);return{color:`rgb(${e}, ${t}, ${a})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return"?";const a=t.match(/[\p{L}\p{N}\s]/gu).join(""),i=a.lastIndexOf(" ");e=String.fromCodePoint(a.codePointAt(0)),i!==-1&&(e=e.concat(String.fromCodePoint(a.codePointAt(i+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(a=>({href:a.hyperlink,icon:a.icon,text:a.title}));function t(a){const i=document.createTextNode(a),n=document.createElement("p");return n.appendChild(i),n.innerHTML}return this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)?[{href:"#",icon:`data:image/svg+xml;utf8,`,text:`${this.userStatus.message}`}].concat(e):e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),zo("settings:avatar:updated",this.loadAvatarUrl),zo("settings:display-name:updated",this.loadAvatarUrl),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),zo("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){Vo("settings:avatar:updated",this.loadAvatarUrl),Vo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&Vo("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:ie,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message})},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:t}=await Va.post(_r("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser)){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),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){var a;const i=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";let n="/avatar/{user}/{size}"+(i?"/dark":"");this.isGuest&&(n="/avatar/guest/{user}/{size}"+(i?"/dark":""));let r=_r(n,{user:e,size:t});return e===((a=Ys())==null?void 0:a.uid)&&typeof oc_userconfig<"u"&&(r+="?v="+oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const a=D4(this.user);if(this.isUserDefined&&typeof a=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),a===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,T1(this.user,!0)},i.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,T1(this.user,!1)},t&&(i.srcset=t),i.src=e}}};var b4=function(){var e=this,t=e._self._c;return t("span",e._g({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,tabindex:e.hasMenu?"0":void 0,"aria-label":e.avatarAriaLabel,role:e.hasMenu?"button":void 0}},e.hasMenu?{click:e.toggleMenu,keydown:e.toggleMenu}:null),[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&!e.menu.length?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.t("Open contact menu"),type:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?t("NcActions",{attrs:{"force-menu":"","manual-open":"",type:"tertiary-no-background",container:e.menuContainer,open:e.contactsMenuOpenState},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(a,i){return t("NcActionLink",{key:i,attrs:{href:a.href,icon:a.icon}},[e._v(" "+e._s(a.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("span",e._b({staticClass:"avatardiv__user-status",class:"avatardiv__user-status--"+e.userStatus.status},"span",e.userStatusRole,!1)):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},y4=[],A4=ce(E4,b4,y4,!1,null,"b9bda6c2",null,null);const xo=A4.exports,S4=8,D1=32,k4={name:"NcListItemIcon",components:{NcAvatar:xo,NcHighlight:wo,NcIconSvgWrapper:Df},mixins:[cg],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:D1},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},data(){return{margin:S4}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var e,t;return((t=(e=this.subname)==null?void 0:e.trim)==null?void 0:t.call(e))!==""},isSizeBigEnough(){return this.avatarSize>=D1},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var v4=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",style:e.cssVars,attrs:{id:e.id}},e.$listeners),[t("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),t("div",{staticClass:"option__details"},[t("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?t("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?t("span",[t("span",[e._v(e._s(e.userStatus.icon))]),t("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?t("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?t("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},R4=[],N4=ce(k4,v4,R4,!1,null,"562c32c6",null,null);const w4=N4.exports,O4={name:"NcSelect",components:{ChevronDown:Lb,NcEllipsisedOption:Qb,NcListItemIcon:w4,NcLoadingIcon:Ml,VueSelect:Z0.VueSelect},mixins:[so],props:{...Z0.VueSelect.props,ariaLabelClearSelected:{type:String,default:ie("Clear selected")},ariaLabelCombobox:{type:String,default:ie("Search for options")},ariaLabelDeselectOption:{type:Function,default:e=>ie("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:e=>e(No,{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:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:null},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,t){return{...e,27:a=>{t.open&&a.stopPropagation(),e[27](a)}}}},uid:{type:String,default:()=>"-"+g0()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:null}," ":{}},emits:[" "],data(){return{search:""}},computed:{localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:a})=>{e.style.width=a;const i={name:"addClass",fn(o){return e.classList.add("vs__dropdown-menu--floating"),{}}},n={name:"togglePlacementClass",fn({placement:o}){return t.$el.classList.toggle("select--drop-up",o==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",o==="top"),{}}},r=()=>{xb(t.$refs.toggle,e,{placement:this.placement,middleware:[cb(-1),i,n,ub(),hb({limiter:fb()})]}).then(({x:o,y:s})=>{Object.assign(e.style,{left:`${o}px`,top:`${s}px`})})};return Ob(t.$refs.toggle,e,r)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,a,i)=>{var n,r,o;const s=i.match(e);return s&&((o=(r=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:r.call(n))==null?void 0:o.indexOf(s[1].toLocaleLowerCase()))>-1||`${a} ${t.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:Z0.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Z0.VueSelect.props.label.default},propsToForward(){const{inputClass:e,noWrap:t,placement:a,userSelect:i,...n}=this.$props;return{...n,calculatePosition:this.localCalculatePosition,filterBy:this.localFilterBy,label:this.localLabel}}}};var x4=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:a=>e.search=a},scopedSlots:e._u([{key:"search",fn:function({attributes:a,events:i}){return[t("input",e._g(e._b({class:["vs__search",e.inputClass]},"input",a,!1),i))]}},{key:"open-indicator",fn:function({attributes:a}){return[t("ChevronDown",e._b({attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",a,!1))]}},{key:"option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"selected-option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"spinner",fn:function(a){return[a.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.$listeners))},B4=[],C4=ce(O4,x4,B4,!1,null,null,null,null);const Bo=C4.exports;function M4(e=[],t=[]){const a={},i=[];for(const n of e){const r=n.split("/");let[o,s]=[r.shift(),r.join("/")];s||(s=o,o=ie("Global")),a[o]=a[o]||{continent:o,regions:[]},a[o].regions.push({label:fg(s),cities:[],timezoneId:n})}for(const n of t){const{continent:r,label:o,timezoneId:s}=n;a[r]=a[r]||{continent:r,regions:[]},a[r].regions.push({label:o,cities:[],timezoneId:s})}for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&(a[n].regions.sort((r,o)=>r.labeln.continent({x:e,y:e}),eb={left:"right",right:"left",bottom:"top",top:"bottom"},tb={start:"end",end:"start"};function Jd(e,t,a){return Ei(e,Cr(t,a))}function dn(e,t){return typeof e=="function"?e(t):e}function Ja(e){return e.split("-")[0]}function ko(e){return e.split("-")[1]}function gu(e){return e==="x"?"y":"x"}function Cf(e){return e==="y"?"height":"width"}function A0(e){return["top","bottom"].includes(Ja(e))?"y":"x"}function Mf(e){return gu(A0(e))}function ab(e,t,a){a===void 0&&(a=!1);const i=ko(e),n=Mf(e),r=Cf(n);let o=n==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[r]>t.floating[r]&&(o=Yr(o)),[o,Yr(o)]}function ib(e){const t=Yr(e);return[il(e),t,il(t)]}function il(e){return e.replace(/start|end/g,t=>tb[t])}function nb(e,t,a){const i=["left","right"],n=["right","left"],r=["top","bottom"],o=["bottom","top"];switch(e){case"top":case"bottom":return a?t?n:i:t?i:n;case"left":case"right":return t?r:o;default:return[]}}function rb(e,t,a,i){const n=ko(e);let r=nb(Ja(e),a==="start",i);return n&&(r=r.map(o=>o+"-"+n),t&&(r=r.concat(r.map(il)))),r}function Yr(e){return e.replace(/left|right|bottom|top/g,t=>eb[t])}function ob(e){return{top:0,right:0,bottom:0,left:0,...e}}function sb(e){return typeof e!="number"?ob(e):{top:e,right:e,bottom:e,left:e}}function Lr(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Kd(e,t,a){let{reference:i,floating:n}=e;const r=A0(t),o=Mf(t),s=Cf(o),l=Ja(t),d=r==="y",u=i.x+i.width/2-n.width/2,c=i.y+i.height/2-n.height/2,f=i[s]/2-n[s]/2;let h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:c};break;case"left":h={x:i.x-n.width,y:c};break;default:h={x:i.x,y:i.y}}switch(ko(t)){case"start":h[o]-=f*(a&&d?-1:1);break;case"end":h[o]+=f*(a&&d?-1:1);break}return h}const lb=async(e,t,a)=>{const{placement:i="bottom",strategy:n="absolute",middleware:r=[],platform:o}=a,s=r.filter(Boolean),l=await(o.isRTL==null?void 0:o.isRTL(t));let d=await o.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:c}=Kd(d,i,l),f=i,h={},_=0;for(let m=0;mk<=0)){var P,g;const k=(((P=r.flip)==null?void 0:P.index)||0)+1,x=j[k];if(x)return{data:{index:k,overflows:M},reset:{placement:x}};let L=(g=M.filter(Z=>Z.overflows[0]<=0).sort((Z,$)=>Z.overflows[1]-$.overflows[1])[0])==null?void 0:g.placement;if(!L)switch(h){case"bestFit":{var D;const Z=(D=M.map($=>[$.placement,$.overflows.filter(V=>V>0).reduce((V,y)=>V+y,0)]).sort(($,V)=>$[1]-V[1])[0])==null?void 0:D[0];Z&&(L=Z);break}case"initialPlacement":L=s;break}if(n!==L)return{reset:{placement:L}}}return{}}}};async function db(e,t){const{placement:a,platform:i,elements:n}=e,r=await(i.isRTL==null?void 0:i.isRTL(n.floating)),o=Ja(a),s=ko(a),l=A0(a)==="y",d=["left","top"].includes(o)?-1:1,u=r&&l?-1:1,c=dn(t,e);let{mainAxis:f,crossAxis:h,alignmentAxis:_}=typeof c=="number"?{mainAxis:c,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...c};return s&&typeof _=="number"&&(h=s==="end"?_*-1:_),l?{x:h*u,y:f*d}:{x:f*d,y:h*u}}const cb=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){const{x:a,y:i}=t,n=await db(t,e);return{x:a+n.x,y:i+n.y,data:n}}}},hb=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:a,y:i,placement:n}=t,{mainAxis:r=!0,crossAxis:o=!1,limiter:s={fn:p=>{let{x:T,y:R}=p;return{x:T,y:R}}},...l}=dn(e,t),d={x:a,y:i},u=await Yf(t,l),c=A0(Ja(n)),f=gu(c);let h=d[f],_=d[c];if(r){const p=f==="y"?"top":"left",T=f==="y"?"bottom":"right",R=h+u[p],S=h-u[T];h=Jd(R,h,S)}if(o){const p=c==="y"?"top":"left",T=c==="y"?"bottom":"right",R=_+u[p],S=_-u[T];_=Jd(R,_,S)}const m=s.fn({...t,[f]:h,[c]:_});return{...m,data:{x:m.x-a,y:m.y-i}}}}},fb=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:a,y:i,placement:n,rects:r,middlewareData:o}=t,{offset:s=0,mainAxis:l=!0,crossAxis:d=!0}=dn(e,t),u={x:a,y:i},c=A0(n),f=gu(c);let h=u[f],_=u[c];const m=dn(s,t),p=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(l){const S=f==="y"?"height":"width",C=r.reference[f]-r.floating[S]+p.mainAxis,j=r.reference[f]+r.reference[S]-p.mainAxis;hj&&(h=j)}if(d){var T,R;const S=f==="y"?"width":"height",C=["top","left"].includes(Ja(n)),j=r.reference[c]-r.floating[S]+(C&&((T=o.offset)==null?void 0:T[c])||0)+(C?0:p.crossAxis),E=r.reference[c]+r.reference[S]+(C?0:((R=o.offset)==null?void 0:R[c])||0)-(C?p.crossAxis:0);_E&&(_=E)}return{[f]:h,[c]:_}}}};function Ka(e){return Lf(e)?(e.nodeName||"").toLowerCase():"#document"}function Nt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function wa(e){var t;return(t=(Lf(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Lf(e){return e instanceof Node||e instanceof Nt(e).Node}function ba(e){return e instanceof Element||e instanceof Nt(e).Element}function oa(e){return e instanceof HTMLElement||e instanceof Nt(e).HTMLElement}function Xd(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Nt(e).ShadowRoot}function S0(e){const{overflow:t,overflowX:a,overflowY:i,display:n}=Zt(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+a)&&!["inline","contents"].includes(n)}function gb(e){return["table","td","th"].includes(Ka(e))}function _u(e){const t=Fu(),a=Zt(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!t&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!t&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function _b(e){let t=cn(e);for(;oa(t)&&!vo(t);){if(_u(t))return t;t=cn(t)}return null}function Fu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function vo(e){return["html","body","#document"].includes(Ka(e))}function Zt(e){return Nt(e).getComputedStyle(e)}function Ro(e){return ba(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cn(e){if(Ka(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Xd(e)&&e.host||wa(e);return Xd(t)?t.host:t}function Zf(e){const t=cn(e);return vo(t)?e.ownerDocument?e.ownerDocument.body:e.body:oa(t)&&S0(t)?t:Zf(t)}function u0(e,t,a){var i;t===void 0&&(t=[]),a===void 0&&(a=!0);const n=Zf(e),r=n===((i=e.ownerDocument)==null?void 0:i.body),o=Nt(n);return r?t.concat(o,o.visualViewport||[],S0(n)?n:[],o.frameElement&&a?u0(o.frameElement):[]):t.concat(n,u0(n,[],a))}function If(e){const t=Zt(e);let a=parseFloat(t.width)||0,i=parseFloat(t.height)||0;const n=oa(e),r=n?e.offsetWidth:a,o=n?e.offsetHeight:i,s=Mr(a)!==r||Mr(i)!==o;return s&&(a=r,i=o),{width:a,height:i,$:s}}function mu(e){return ba(e)?e:e.contextElement}function an(e){const t=mu(e);if(!oa(t))return Qa(1);const a=t.getBoundingClientRect(),{width:i,height:n,$:r}=If(t);let o=(r?Mr(a.width):a.width)/i,s=(r?Mr(a.height):a.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}const Fb=Qa(0);function jf(e){const t=Nt(e);return!Fu()||!t.visualViewport?Fb:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function mb(e,t,a){return t===void 0&&(t=!1),!a||t&&a!==Nt(e)?!1:t}function ki(e,t,a,i){t===void 0&&(t=!1),a===void 0&&(a=!1);const n=e.getBoundingClientRect(),r=mu(e);let o=Qa(1);t&&(i?ba(i)&&(o=an(i)):o=an(e));const s=mb(r,a,i)?jf(r):Qa(0);let l=(n.left+s.x)/o.x,d=(n.top+s.y)/o.y,u=n.width/o.x,c=n.height/o.y;if(r){const f=Nt(r),h=i&&ba(i)?Nt(i):i;let _=f.frameElement;for(;_&&i&&h!==f;){const m=an(_),p=_.getBoundingClientRect(),T=Zt(_),R=p.left+(_.clientLeft+parseFloat(T.paddingLeft))*m.x,S=p.top+(_.clientTop+parseFloat(T.paddingTop))*m.y;l*=m.x,d*=m.y,u*=m.x,c*=m.y,l+=R,d+=S,_=Nt(_).frameElement}}return Lr({width:u,height:c,x:l,y:d})}function pb(e){let{rect:t,offsetParent:a,strategy:i}=e;const n=oa(a),r=wa(a);if(a===r)return t;let o={scrollLeft:0,scrollTop:0},s=Qa(1);const l=Qa(0);if((n||!n&&i!=="fixed")&&((Ka(a)!=="body"||S0(r))&&(o=Ro(a)),oa(a))){const d=ki(a);s=an(a),l.x=d.x+a.clientLeft,l.y=d.y+a.clientTop}return{width:t.width*s.x,height:t.height*s.y,x:t.x*s.x-o.scrollLeft*s.x+l.x,y:t.y*s.y-o.scrollTop*s.y+l.y}}function Tb(e){return Array.from(e.getClientRects())}function Pf(e){return ki(wa(e)).left+Ro(e).scrollLeft}function Db(e){const t=wa(e),a=Ro(e),i=e.ownerDocument.body,n=Ei(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),r=Ei(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight);let o=-a.scrollLeft+Pf(e);const s=-a.scrollTop;return Zt(i).direction==="rtl"&&(o+=Ei(t.clientWidth,i.clientWidth)-n),{width:n,height:r,x:o,y:s}}function Eb(e,t){const a=Nt(e),i=wa(e),n=a.visualViewport;let r=i.clientWidth,o=i.clientHeight,s=0,l=0;if(n){r=n.width,o=n.height;const d=Fu();(!d||d&&t==="fixed")&&(s=n.offsetLeft,l=n.offsetTop)}return{width:r,height:o,x:s,y:l}}function bb(e,t){const a=ki(e,!0,t==="fixed"),i=a.top+e.clientTop,n=a.left+e.clientLeft,r=oa(e)?an(e):Qa(1),o=e.clientWidth*r.x,s=e.clientHeight*r.y,l=n*r.x,d=i*r.y;return{width:o,height:s,x:l,y:d}}function e1(e,t,a){let i;if(t==="viewport")i=Eb(e,a);else if(t==="document")i=Db(wa(e));else if(ba(t))i=bb(t,a);else{const n=jf(e);i={...t,x:t.x-n.x,y:t.y-n.y}}return Lr(i)}function Gf(e,t){const a=cn(e);return a===t||!ba(a)||vo(a)?!1:Zt(a).position==="fixed"||Gf(a,t)}function yb(e,t){const a=t.get(e);if(a)return a;let i=u0(e,[],!1).filter(s=>ba(s)&&Ka(s)!=="body"),n=null;const r=Zt(e).position==="fixed";let o=r?cn(e):e;for(;ba(o)&&!vo(o);){const s=Zt(o),l=_u(o);!l&&s.position==="fixed"&&(n=null),(r?!l&&!n:!l&&s.position==="static"&&n&&["absolute","fixed"].includes(n.position)||S0(o)&&!l&&Gf(e,o))?i=i.filter(d=>d!==o):n=s,o=cn(o)}return t.set(e,i),i}function Ab(e){let{element:t,boundary:a,rootBoundary:i,strategy:n}=e;const r=[...a==="clippingAncestors"?yb(t,this._c):[].concat(a),i],o=r[0],s=r.reduce((l,d)=>{const u=e1(t,d,n);return l.top=Ei(u.top,l.top),l.right=Cr(u.right,l.right),l.bottom=Cr(u.bottom,l.bottom),l.left=Ei(u.left,l.left),l},e1(t,o,n));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}}function Sb(e){return If(e)}function kb(e,t,a){const i=oa(t),n=wa(t),r=a==="fixed",o=ki(e,!0,r,t);let s={scrollLeft:0,scrollTop:0};const l=Qa(0);if(i||!i&&!r)if((Ka(t)!=="body"||S0(n))&&(s=Ro(t)),i){const d=ki(t,!0,r,t);l.x=d.x+t.clientLeft,l.y=d.y+t.clientTop}else n&&(l.x=Pf(n));return{x:o.left+s.scrollLeft-l.x,y:o.top+s.scrollTop-l.y,width:o.width,height:o.height}}function t1(e,t){return!oa(e)||Zt(e).position==="fixed"?null:t?t(e):e.offsetParent}function Uf(e,t){const a=Nt(e);if(!oa(e))return a;let i=t1(e,t);for(;i&&gb(i)&&Zt(i).position==="static";)i=t1(i,t);return i&&(Ka(i)==="html"||Ka(i)==="body"&&Zt(i).position==="static"&&!_u(i))?a:i||_b(e)||a}const vb=async function(e){let{reference:t,floating:a,strategy:i}=e;const n=this.getOffsetParent||Uf,r=this.getDimensions;return{reference:kb(t,await n(a),i),floating:{x:0,y:0,...await r(a)}}};function Rb(e){return Zt(e).direction==="rtl"}const Nb={convertOffsetParentRelativeRectToViewportRelativeRect:pb,getDocumentElement:wa,getClippingRect:Ab,getOffsetParent:Uf,getElementRects:vb,getClientRects:Tb,getDimensions:Sb,getScale:an,isElement:ba,isRTL:Rb};function wb(e,t){let a=null,i;const n=wa(e);function r(){clearTimeout(i),a&&a.disconnect(),a=null}function o(s,l){s===void 0&&(s=!1),l===void 0&&(l=1),r();const{left:d,top:u,width:c,height:f}=e.getBoundingClientRect();if(s||t(),!c||!f)return;const h=I0(u),_=I0(n.clientWidth-(d+c)),m=I0(n.clientHeight-(u+f)),p=I0(d),T={rootMargin:-h+"px "+-_+"px "+-m+"px "+-p+"px",threshold:Ei(0,Cr(1,l))||1};let R=!0;function S(C){const j=C[0].intersectionRatio;if(j!==l){if(!R)return o();j?o(!1,j):i=setTimeout(()=>{o(!1,1e-7)},100)}R=!1}try{a=new IntersectionObserver(S,{...T,root:n.ownerDocument})}catch{a=new IntersectionObserver(S,T)}a.observe(e)}return o(!0),r}function Ob(e,t,a,i){i===void 0&&(i={});const{ancestorScroll:n=!0,ancestorResize:r=!0,elementResize:o=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:l=!1}=i,d=mu(e),u=n||r?[...d?u0(d):[],...u0(t)]:[];u.forEach(T=>{n&&T.addEventListener("scroll",a,{passive:!0}),r&&T.addEventListener("resize",a)});const c=d&&s?wb(d,a):null;let f=-1,h=null;o&&(h=new ResizeObserver(T=>{let[R]=T;R&&R.target===d&&h&&(h.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{h&&h.observe(t)})),a()}),d&&!l&&h.observe(d),h.observe(t));let _,m=l?ki(e):null;l&&p();function p(){const T=ki(e);m&&(T.x!==m.x||T.y!==m.y||T.width!==m.width||T.height!==m.height)&&a(),m=T,_=requestAnimationFrame(p)}return a(),()=>{u.forEach(T=>{n&&T.removeEventListener("scroll",a),r&&T.removeEventListener("resize",a)}),c&&c(),h&&h.disconnect(),h=null,l&&cancelAnimationFrame(_)}}const xb=(e,t,a)=>{const i=new Map,n={platform:Nb,...a},r={...n.platform,_c:i};return lb(e,t,{...n,platform:r})},Bb={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Cb=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Mb=[],Yb=ce(Bb,Cb,Mb,!1,null,null,null,null);const Lb=Yb.exports,Zb={name:"CloseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Ib=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon close-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},jb=[],Pb=ce(Zb,Ib,jb,!1,null,null,null,null);const No=Pb.exports;const qf=(e,t)=>{const a=[];let i=0,n=e.toLowerCase().indexOf(t.toLowerCase(),i),r=0;for(;n>-1&&r[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=qf(this.text,this.search),e.forEach((t,a)=>{t.end(a.start0&&t.push({start:a.start<0?0:a.start,end:a.end>this.text.length?this.text.length:a.end}),t),[]),e.sort((t,a)=>t.start-a.start),e=e.reduce((t,a)=>{if(!t.length)t.push(a);else{const i=t.length-1;t[i].end>=a.start?t[i]={start:t[i].start,end:Math.max(t[i].end,a.end)}:t.push(a)}return t},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let t=0,a=0;for(;t=this.ranges.length&&tt.highlight?e("strong",{},t.text):t.text)):e("span",{},this.text)}},Ub=null,qb=null;var Hb=ce(Gb,Ub,qb,!1,null,null,null,null);const wo=Hb.exports,zb={name:"NcEllipsisedOption",components:{NcHighlight:wo},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?qf(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var Vb=function(){var e=this,t=e._self._c;return t("span",{staticClass:"name-parts",attrs:{title:e.name}},[t("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?t("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},$b=[],Wb=ce(zb,Vb,$b,!1,null,"08c4259e",null,null);const Qb=Wb.exports;var Hf=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],Zr=Hf.join(","),zf=typeof Element>"u",vi=zf?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Ir=!zf&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},jr=function e(t,a){var i;a===void 0&&(a=!0);var n=t==null||(i=t.getAttribute)===null||i===void 0?void 0:i.call(t,"inert"),r=n===""||n==="true",o=r||a&&t&&e(t.parentNode);return o},Jb=function(e){var t,a=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return a===""||a==="true"},Vf=function(e,t,a){if(jr(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(Zr));return t&&vi.call(e,Zr)&&i.unshift(e),i=i.filter(a),i},$f=function e(t,a,i){for(var n=[],r=Array.from(t);r.length;){var o=r.shift();if(!jr(o,!1))if(o.tagName==="SLOT"){var s=o.assignedElements(),l=s.length?s:o.children,d=e(l,!0,i);i.flatten?n.push.apply(n,d):n.push({scopeParent:o,candidates:d})}else{var u=vi.call(o,Zr);u&&i.filter(o)&&(a||!t.includes(o))&&n.push(o);var c=o.shadowRoot||typeof i.getShadowRoot=="function"&&i.getShadowRoot(o),f=!jr(c,!1)&&(!i.shadowRootFilter||i.shadowRootFilter(o));if(c&&f){var h=e(c===!0?o.children:c.children,!0,i);i.flatten?n.push.apply(n,h):n.push({scopeParent:o,candidates:h})}else r.unshift.apply(r,o.children)}}return n},Wf=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},fi=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||Jb(e))&&!Wf(e)?0:e.tabIndex},Kb=function(e,t){var a=fi(e);return a<0&&t&&!Wf(e)?0:a},Xb=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},Qf=function(e){return e.tagName==="INPUT"},ey=function(e){return Qf(e)&&e.type==="hidden"},ty=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(a){return a.tagName==="SUMMARY"});return t},ay=function(e,t){for(var a=0;asummary:first-of-type"),r=n?e.parentElement:e;if(vi.call(r,"details:not([open]) *"))return!0;if(!a||a==="full"||a==="legacy-full"){if(typeof i=="function"){for(var o=e;e;){var s=e.parentElement,l=Ir(e);if(s&&!s.shadowRoot&&i(s)===!0)return a1(e);e.assignedSlot?e=e.assignedSlot:!s&&l!==e.ownerDocument?e=l.host:e=s}e=o}if(oy(e))return!e.getClientRects().length;if(a!=="legacy-full")return!0}else if(a==="non-zero-area")return a1(e);return!1},ly=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var a=0;a=0)},dy=function e(t){var a=[],i=[];return t.forEach(function(n,r){var o=!!n.scopeParent,s=o?n.scopeParent:n,l=Kb(s,o),d=o?e(n.candidates):s;l===0?o?a.push.apply(a,d):a.push(s):i.push({documentOrder:r,tabIndex:l,item:n,isScope:o,content:d})}),i.sort(Xb).reduce(function(n,r){return r.isScope?n.push.apply(n,r.content):n.push(r.content),n},[]).concat(a)},cy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=$f([e],t.includeContainer,{filter:nl.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:uy}):a=Vf(e,t.includeContainer,nl.bind(null,t)),dy(a)},hy=function(e,t){t=t||{};var a;return t.getShadowRoot?a=$f([e],t.includeContainer,{filter:Pr.bind(null,t),flatten:!0,getShadowRoot:t.getShadowRoot}):a=Vf(e,t.includeContainer,Pr.bind(null,t)),a},xi=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return vi.call(e,Zr)===!1?!1:nl(t,e)},fy=Hf.concat("iframe").join(","),os=function(e,t){if(t=t||{},!e)throw new Error("No node provided");return vi.call(e,fy)===!1?!1:Pr(t,e)};function i1(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),a.push.apply(a,i)}return a}function n1(e){for(var t=1;t0){var a=e[e.length-1];a!==t&&a.pause()}var i=e.indexOf(t);i===-1||e.splice(i,1),e.push(t)},deactivateTrap:function(e,t){var a=e.indexOf(t);a!==-1&&e.splice(a,1),e.length>0&&e[e.length-1].unpause()}},my=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},py=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},Gn=function(e){return e?.key==="Tab"||e?.keyCode===9},Ty=function(e){return Gn(e)&&!e.shiftKey},Dy=function(e){return Gn(e)&&e.shiftKey},o1=function(e){return setTimeout(e,0)},s1=function(e,t){var a=-1;return e.every(function(i,n){return t(i)?(a=n,!1):!0}),a},kn=function(e){for(var t=arguments.length,a=new Array(t>1?t-1:0),i=1;i1?k-1:0),L=1;L=0)g=a.activeElement;else{var D=r.tabbableGroups[0],k=D&&D.firstTabbableNode;g=k||d("fallbackFocus")}if(!g)throw new Error("Your focus-trap needs to have at least one focusable element");return g},c=function(){if(r.containerGroups=r.containers.map(function(g){var D=cy(g,n.tabbableOptions),k=hy(g,n.tabbableOptions),x=D.length>0?D[0]:void 0,L=D.length>0?D[D.length-1]:void 0,Z=k.find(function(y){return xi(y)}),$=k.slice().reverse().find(function(y){return xi(y)}),V=!!D.find(function(y){return fi(y)>0});return{container:g,tabbableNodes:D,focusableNodes:k,posTabIndexesFound:V,firstTabbableNode:x,lastTabbableNode:L,firstDomTabbableNode:Z,lastDomTabbableNode:$,nextTabbableNode:function(y){var U=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,A=D.indexOf(y);return A<0?U?k.slice(k.indexOf(y)+1).find(function(z){return xi(z)}):k.slice(0,k.indexOf(y)).reverse().find(function(z){return xi(z)}):D[A+(U?1:-1)]}}}),r.tabbableGroups=r.containerGroups.filter(function(g){return g.tabbableNodes.length>0}),r.tabbableGroups.length<=0&&!d("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(r.containerGroups.find(function(g){return g.posTabIndexesFound})&&r.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},f=function g(D){var k=D.activeElement;if(k)return k.shadowRoot&&k.shadowRoot.activeElement!==null?g(k.shadowRoot):k},h=function g(D){if(D!==!1&&D!==f(document)){if(!D||!D.focus){g(u());return}D.focus({preventScroll:!!n.preventScroll}),r.mostRecentlyFocusedNode=D,my(D)&&D.select()}},_=function(g){var D=d("setReturnFocus",g);return D||(D===!1?!1:g)},m=function(g){var D=g.target,k=g.event,x=g.isBackward,L=x===void 0?!1:x;D=D||j0(k),c();var Z=null;if(r.tabbableGroups.length>0){var $=l(D,k),V=$>=0?r.containerGroups[$]:void 0;if($<0)L?Z=r.tabbableGroups[r.tabbableGroups.length-1].lastTabbableNode:Z=r.tabbableGroups[0].firstTabbableNode;else if(L){var y=s1(r.tabbableGroups,function(ge){var Se=ge.firstTabbableNode;return D===Se});if(y<0&&(V.container===D||os(D,n.tabbableOptions)&&!xi(D,n.tabbableOptions)&&!V.nextTabbableNode(D,!1))&&(y=$),y>=0){var U=y===0?r.tabbableGroups.length-1:y-1,A=r.tabbableGroups[U];Z=fi(D)>=0?A.lastTabbableNode:A.lastDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D,!1))}else{var z=s1(r.tabbableGroups,function(ge){var Se=ge.lastTabbableNode;return D===Se});if(z<0&&(V.container===D||os(D,n.tabbableOptions)&&!xi(D,n.tabbableOptions)&&!V.nextTabbableNode(D))&&(z=$),z>=0){var re=z===r.tabbableGroups.length-1?0:z+1,O=r.tabbableGroups[re];Z=fi(D)>=0?O.firstTabbableNode:O.firstDomTabbableNode}else Gn(k)||(Z=V.nextTabbableNode(D))}}else Z=d("fallbackFocus");return Z},p=function(g){var D=j0(g);if(!(l(D,g)>=0)){if(kn(n.clickOutsideDeactivates,g)){o.deactivate({returnFocus:n.returnFocusOnDeactivate});return}kn(n.allowOutsideClick,g)||g.preventDefault()}},T=function(g){var D=j0(g),k=l(D,g)>=0;if(k||D instanceof Document)k&&(r.mostRecentlyFocusedNode=D);else{g.stopImmediatePropagation();var x,L=!0;if(r.mostRecentlyFocusedNode)if(fi(r.mostRecentlyFocusedNode)>0){var Z=l(r.mostRecentlyFocusedNode),$=r.containerGroups[Z].tabbableNodes;if($.length>0){var V=$.findIndex(function(y){return y===r.mostRecentlyFocusedNode});V>=0&&(n.isKeyForward(r.recentNavEvent)?V+1<$.length&&(x=$[V+1],L=!1):V-1>=0&&(x=$[V-1],L=!1))}}else r.containerGroups.some(function(y){return y.tabbableNodes.some(function(U){return fi(U)>0})})||(L=!1);else L=!1;L&&(x=m({target:r.mostRecentlyFocusedNode,isBackward:n.isKeyBackward(r.recentNavEvent)})),h(x||r.mostRecentlyFocusedNode||u())}r.recentNavEvent=void 0},R=function(g){var D=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;r.recentNavEvent=g;var k=m({event:g,isBackward:D});k&&(Gn(g)&&g.preventDefault(),h(k))},S=function(g){if(py(g)&&kn(n.escapeDeactivates,g)!==!1){g.preventDefault(),o.deactivate();return}(n.isKeyForward(g)||n.isKeyBackward(g))&&R(g,n.isKeyBackward(g))},C=function(g){var D=j0(g);l(D,g)>=0||kn(n.clickOutsideDeactivates,g)||kn(n.allowOutsideClick,g)||(g.preventDefault(),g.stopImmediatePropagation())},j=function(){if(r.active)return r1.activateTrap(i,o),r.delayInitialFocusTimer=n.delayInitialFocus?o1(function(){h(u())}):h(u()),a.addEventListener("focusin",T,!0),a.addEventListener("mousedown",p,{capture:!0,passive:!1}),a.addEventListener("touchstart",p,{capture:!0,passive:!1}),a.addEventListener("click",C,{capture:!0,passive:!1}),a.addEventListener("keydown",S,{capture:!0,passive:!1}),o},E=function(){if(r.active)return a.removeEventListener("focusin",T,!0),a.removeEventListener("mousedown",p,!0),a.removeEventListener("touchstart",p,!0),a.removeEventListener("click",C,!0),a.removeEventListener("keydown",S,!0),o},I=function(g){var D=g.some(function(k){var x=Array.from(k.removedNodes);return x.some(function(L){return L===r.mostRecentlyFocusedNode})});D&&h(u())},M=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(I):void 0,P=function(){M&&(M.disconnect(),r.active&&!r.paused&&r.containers.map(function(g){M.observe(g,{subtree:!0,childList:!0})}))};return o={get active(){return r.active},get paused(){return r.paused},activate:function(g){if(r.active)return this;var D=s(g,"onActivate"),k=s(g,"onPostActivate"),x=s(g,"checkCanFocusTrap");x||c(),r.active=!0,r.paused=!1,r.nodeFocusedBeforeActivation=a.activeElement,D?.();var L=function(){x&&c(),j(),P(),k?.()};return x?(x(r.containers.concat()).then(L,L),this):(L(),this)},deactivate:function(g){if(!r.active)return this;var D=n1({onDeactivate:n.onDeactivate,onPostDeactivate:n.onPostDeactivate,checkCanReturnFocus:n.checkCanReturnFocus},g);clearTimeout(r.delayInitialFocusTimer),r.delayInitialFocusTimer=void 0,E(),r.active=!1,r.paused=!1,P(),r1.deactivateTrap(i,o);var k=s(D,"onDeactivate"),x=s(D,"onPostDeactivate"),L=s(D,"checkCanReturnFocus"),Z=s(D,"returnFocus","returnFocusOnDeactivate");k?.();var $=function(){o1(function(){Z&&h(_(r.nodeFocusedBeforeActivation)),x?.()})};return Z&&L?(L(_(r.nodeFocusedBeforeActivation)).then($,$),this):($(),this)},pause:function(g){if(r.paused||!r.active)return this;var D=s(g,"onPause"),k=s(g,"onPostPause");return r.paused=!0,D?.(),E(),P(),k?.(),this},unpause:function(g){if(!r.paused||!r.active)return this;var D=s(g,"onUnpause"),k=s(g,"onPostUnpause");return r.paused=!1,D?.(),c(),j(),P(),k?.(),this},updateContainerElements:function(g){var D=[].concat(g).filter(Boolean);return r.containers=D.map(function(k){return typeof k=="string"?a.querySelector(k):k}),r.active&&c(),P(),this}},o.updateContainerElements(e),o};const rl=function(){return Object.assign(window,{_nc_focus_trap:window._nc_focus_trap||[]}),window._nc_focus_trap},by={name:"NcPopover",components:{Dropdown:tD},inheritAttrs:!1,props:{popoverBaseClass:{type:String,default:""},focusTrap:{type:Boolean,default:!0},setReturnFocus:{default:void 0,type:[HTMLElement,SVGElement,String,Boolean]}},emits:["after-show","after-hide"],beforeDestroy(){this.clearFocusTrap(),this.clearEscapeStopPropagation()},methods:{getPopoverContentElement(){var e,t;return(t=(e=this.$refs.popover)==null?void 0:e.$refs.popperContent)==null?void 0:t.$el},async useFocusTrap(){if(await this.$nextTick(),!this.focusTrap)return;const e=this.getPopoverContentElement();e&&(this.$focusTrap=Jf(e,{escapeDeactivates:!1,allowOutsideClick:!0,setReturnFocus:this.setReturnFocus,trapStack:rl()}),this.$focusTrap.activate())},clearFocusTrap(e={}){var t;try{(t=this.$focusTrap)==null||t.deactivate(e),this.$focusTrap=null}catch(a){console.warn(a)}},addEscapeStopPropagation(){this.getPopoverContentElement()?.addEventListener("keydown",this.stopKeydownEscapeHandler)},clearEscapeStopPropagation(){this.getPopoverContentElement()?.removeEventListener("keydown",this.stopKeydownEscapeHandler)},stopKeydownEscapeHandler(e){e.type==="keydown"&&e.key==="Escape"&&e.stopPropagation()},afterShow(){this.$nextTick(()=>{this.$emit("after-show"),this.useFocusTrap(),this.addEscapeStopPropagation()})},afterHide(){this.$emit("after-hide"),this.clearFocusTrap(),this.clearEscapeStopPropagation()}}};var yy=function(){var e=this,t=e._self._c;return t("Dropdown",e._g(e._b({ref:"popover",attrs:{distance:10,"arrow-padding":10,"no-auto-focus":!0,"popper-class":e.popoverBaseClass},on:{"apply-show":e.afterShow,"apply-hide":e.afterHide},scopedSlots:e._u([{key:"popper",fn:function(){return[e._t("default")]},proxy:!0}],null,!0)},"Dropdown",e.$attrs,!1),e.$listeners),[e._t("trigger")],2)},Ay=[],Sy=ce(by,yy,Ay,!1,null,null,null,null);const pu=Sy.exports,ky={name:"DotsHorizontalIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var vy=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon dots-horizontal-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ry=[],Ny=ce(ky,vy,Ry,!1,null,null,null,null);const Tu=Ny.exports,Bi=".focusable",wy={name:"NcActions",components:{NcButton:ti,DotsHorizontal:Tu,NcPopover:pu},props:{open:{type:Boolean,default:!1},manualOpen:{type:Boolean,default:!1},forceMenu:{type:Boolean,default:!1},forceName:{type:Boolean,default:!1},menuName:{type:String,default:null},primary:{type:Boolean,default:!1},type:{type:String,validator(e){return["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(e)!==-1},default:null},defaultIcon:{type:String,default:""},ariaLabel:{type:String,default:ie("Actions")},ariaHidden:{type:Boolean,default:null},placement:{type:String,default:"bottom"},boundariesElement:{type:Element,default:()=>document.querySelector("body")},container:{type:[String,Object,Element,Boolean],default:"body"},disabled:{type:Boolean,default:!1},inline:{type:Number,default:0}},emits:["open","update:open","close","focus","blur"],data(){return{opened:this.open,focusIndex:0,randomId:`menu-${g0()}`}},computed:{triggerBtnType(){return this.type||(this.primary?"primary":this.menuName?"secondary":"tertiary")}},watch:{open(e){e!==this.opened&&(this.opened=e)}},methods:{isValidSingleAction(e){var t,a,i,n,r;const o=(r=(i=(a=(t=e?.componentOptions)==null?void 0:t.Ctor)==null?void 0:a.extendOptions)==null?void 0:i.name)!=null?r:(n=e?.componentOptions)==null?void 0:n.tag;return["NcActionButton","NcActionLink","NcActionRouter"].includes(o)},openMenu(e){this.opened||(this.opened=!0,this.$emit("update:open",!0),this.$emit("open"))},closeMenu(e=!0){this.opened&&(this.opened=!1,this.$refs.popover.clearFocusTrap({returnFocus:e}),this.$emit("update:open",!1),this.$emit("close"),this.focusIndex=0,this.$refs.menuButton.$el.focus())},onOpen(e){this.$nextTick(()=>{this.focusFirstAction(e)})},onMouseFocusAction(e){if(document.activeElement===e.target)return;const t=e.target.closest("li");if(t){const a=t.querySelector(Bi);if(a){const i=[...this.$refs.menu.querySelectorAll(Bi)].indexOf(a);i>-1&&(this.focusIndex=i,this.focusAction())}}},onKeydown(e){(e.keyCode===38||e.keyCode===9&&e.shiftKey)&&this.focusPreviousAction(e),(e.keyCode===40||e.keyCode===9&&!e.shiftKey)&&this.focusNextAction(e),e.keyCode===33&&this.focusFirstAction(e),e.keyCode===34&&this.focusLastAction(e),e.keyCode===27&&(this.closeMenu(),e.preventDefault())},removeCurrentActive(){const e=this.$refs.menu.querySelector("li.active");e&&e.classList.remove("active")},focusAction(){const e=this.$refs.menu.querySelectorAll(Bi)[this.focusIndex];if(e){this.removeCurrentActive();const t=e.closest("li.action");e.focus(),t&&t.classList.add("active")}},focusPreviousAction(e){this.opened&&(this.focusIndex===0?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex-1),this.focusAction())},focusNextAction(e){if(this.opened){const t=this.$refs.menu.querySelectorAll(Bi).length-1;this.focusIndex===t?this.closeMenu():(this.preventIfEvent(e),this.focusIndex=this.focusIndex+1),this.focusAction()}},focusFirstAction(e){if(this.opened){this.preventIfEvent(e);const t=[...this.$refs.menu.querySelectorAll(Bi)].findIndex(a=>a.parentElement.getAttribute("aria-selected"));this.focusIndex=t>-1?t:0,this.focusAction()}},focusLastAction(e){this.opened&&(this.preventIfEvent(e),this.focusIndex=this.$refs.menu.querySelectorAll(Bi).length-1,this.focusAction())},preventIfEvent(e){e&&(e.preventDefault(),e.stopPropagation())},onFocus(e){this.$emit("focus",e)},onBlur(e){this.$emit("blur",e)}},render(e){const t=(this.$slots.default||[]).filter(s=>{var l,d,u,c;return((l=s?.componentOptions)==null?void 0:l.tag)||((c=(u=(d=s?.componentOptions)==null?void 0:d.Ctor)==null?void 0:u.extendOptions)==null?void 0:c.name)}),a=s=>{var l,d,u,c,f,h,_;const m=(f=(u=(d=(l=s?.componentOptions)==null?void 0:l.Ctor)==null?void 0:d.extendOptions)==null?void 0:u.name)!=null?f:(c=s?.componentOptions)==null?void 0:c.tag,p=(_=(h=s?.componentOptions)==null?void 0:h.propsData)==null?void 0:_.href;return m==="NcActionLink"&&!(p!=null&&p.startsWith("#"))&&new URL(p,window.location.origin).origin===window.location.origin},i=t.every(a);let n=t.filter(this.isValidSingleAction);if(this.forceMenu&&n.length>0&&this.inline>0&&(Aa.util.warn("Specifying forceMenu will ignore any inline actions rendering."),n=[]),t.length===0)return;const r=s=>{var l,d,u,c,f,h,_,m,p,T,R,S,C,j,E,I,M,P,g,D,k,x,L;const Z=((u=(d=(l=s?.data)==null?void 0:l.scopedSlots)==null?void 0:d.icon())==null?void 0:u[0])||e("span",{class:["icon",(f=(c=s?.componentOptions)==null?void 0:c.propsData)==null?void 0:f.icon]}),$=((h=s?.data)==null?void 0:h.attrs)||{},V=(m=(_=s?.componentOptions)==null?void 0:_.listeners)==null?void 0:m.click,y=(C=(S=(R=(T=(p=s?.componentOptions)==null?void 0:p.children)==null?void 0:T[0])==null?void 0:R.text)==null?void 0:S.trim)==null?void 0:C.call(S),U=((E=(j=s?.componentOptions)==null?void 0:j.propsData)==null?void 0:E.ariaLabel)||y,A=this.forceName?y:"";let z=(M=(I=s?.componentOptions)==null?void 0:I.propsData)==null?void 0:M.title;return this.forceName||z||(z=y),e("NcButton",{class:["action-item action-item--single",(P=s?.data)==null?void 0:P.staticClass,(g=s?.data)==null?void 0:g.class],attrs:{...$,"aria-label":U,title:z},ref:(D=s?.data)==null?void 0:D.ref,props:{type:this.type||(A?"secondary":"tertiary"),disabled:this.disabled||((x=(k=s?.componentOptions)==null?void 0:k.propsData)==null?void 0:x.disabled),ariaHidden:this.ariaHidden,...(L=s?.componentOptions)==null?void 0:L.propsData},on:{focus:this.onFocus,blur:this.onBlur,...!!V&&{click:re=>{V&&V(re)}}}},[e("template",{slot:"icon"},[Z]),A])},o=s=>{var l,d;const u=((l=this.$slots.icon)==null?void 0:l[0])||(this.defaultIcon?e("span",{class:["icon",this.defaultIcon]}):e("DotsHorizontal",{props:{size:20}})),c=()=>i||this.opened?this.opened.toString():null;return e("NcPopover",{ref:"popover",props:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,popoverBaseClass:"action-item__popper",setReturnFocus:(d=this.$refs.menuButton)==null?void 0:d.$el},attrs:{delay:0,handleResize:!0,shown:this.opened,placement:this.placement,boundary:this.boundariesElement,container:this.container,...this.manualOpen&&{triggers:[]}},on:{show:this.openMenu,"after-show":this.onOpen,hide:this.closeMenu}},[e("NcButton",{class:"action-item__menutoggle",props:{type:this.triggerBtnType,disabled:this.disabled,ariaHidden:this.ariaHidden},slot:"trigger",ref:"menuButton",attrs:{"aria-haspopup":i?null:"menu","aria-label":this.menuName?null:this.ariaLabel,"aria-controls":this.opened?this.randomId:null,"aria-expanded":c()},on:{focus:this.onFocus,blur:this.onBlur}},[e("template",{slot:"icon"},[u]),this.menuName]),e("div",{class:{open:this.opened},attrs:{tabindex:"-1"},on:{keydown:this.onKeydown,mousemove:this.onMouseFocusAction},ref:"menu"},[e("ul",{attrs:{id:this.randomId,tabindex:"-1",role:i?null:"menu"}},[s])])])};if(t.length===1&&n.length===1&&!this.forceMenu)return r(n[0]);if(this.$nextTick(()=>{this.opened&&this.$refs.menu&&(this.$refs.menu.querySelector("li.active")||[]).length===0&&this.focusFirstAction()}),n.length>0&&this.inline>0){const s=n.slice(0,this.inline),l=t.filter(d=>!s.includes(d));return e("div",{class:["action-items",`action-item--${this.triggerBtnType}`]},[...s.map(r),l.length>0?e("div",{class:["action-item",{"action-item--open":this.opened}]},[o(l)]):null])}return e("div",{class:["action-item action-item--default-popover",`action-item--${this.triggerBtnType}`,{"action-item--open":this.opened}]},[o(t)])}},Oy=null,xy=null;var By=ce(wy,Oy,xy,!1,null,"f797c400",null,null);const Du=By.exports;const Cy={name:"NcActionLink",mixins:[yf],props:{href:{type:String,default:"#",required:!0,validator:e=>{try{return new URL(e)}catch{return e.startsWith("#")||e.startsWith("/")}}},download:{type:String,default:null},target:{type:String,default:"_self",validator:e=>e&&(!e.startsWith("_")||["_blank","_self","_parent","_top"].indexOf(e)>-1)},title:{type:String,default:null},ariaHidden:{type:Boolean,default:null}}};var My=function(){var e=this,t=e._self._c;return t("li",{staticClass:"action"},[t("a",{staticClass:"action-link focusable",attrs:{download:e.download,href:e.href,"aria-label":e.ariaLabel,target:e.target,title:e.title,rel:"nofollow noreferrer noopener",role:"menuitem"},on:{click:e.onClick}},[e._t("icon",function(){return[t("span",{staticClass:"action-link__icon",class:[e.isIconUrl?"action-link__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":e.ariaHidden}})]}),e.name?t("span",{staticClass:"action-link__longtext-wrapper"},[t("strong",{staticClass:"action-link__name"},[e._v(" "+e._s(e.name)+" ")]),t("br"),t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?t("span",{staticClass:"action-link__longtext",domProps:{textContent:e._s(e.text)}}):t("span",{staticClass:"action-link__text"},[e._v(e._s(e.text))]),e._e()],2)])},Yy=[],Ly=ce(Cy,My,Yy,!1,null,"979f3026",null,null);const Zy=Ly.exports;function ir(e,t,a){this.r=e,this.g=t,this.b=a}function Iy(e,t){const a=new Array(3);return a[0]=(t[1].r-t[0].r)/e,a[1]=(t[1].g-t[0].g)/e,a[2]=(t[1].b-t[0].b)/e,a}function ss(e,t,a){const i=[];i.push(t);const n=Iy(e,[t,a]);for(let r=1;r>>32-i},rotr:function(a,i){return a<<32-i|a>>>i},endian:function(a){if(a.constructor==Number)return t.rotl(a,8)&16711935|t.rotl(a,24)&4278255360;for(var i=0;i0;a--)i.push(Math.floor(Math.random()*256));return i},bytesToWords:function(a){for(var i=[],n=0,r=0;n>>5]|=a[n]<<24-r%32;return i},wordsToBytes:function(a){for(var i=[],n=0;n>>5]>>>24-n%32&255);return i},bytesToHex:function(a){for(var i=[],n=0;n>>4).toString(16)),i.push((a[n]&15).toString(16));return i.join("")},hexToBytes:function(a){for(var i=[],n=0;n>>6*(3-o)&63)):i.push("=");return i.join("")},base64ToBytes:function(a){a=a.replace(/[^A-Z0-9+\/]/ig,"");for(var i=[],n=0,r=0;n>>6-r*2);return i}};Xf.exports=t})();var Py=Xf.exports,ol={utf8:{stringToBytes:function(e){return ol.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(ol.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],a=0;a>>24)&16711935|(s[h]<<24|s[h]>>>8)&4278255360;s[l>>>5]|=128<>>9<<4)+14]=l;for(var _=n._ff,m=n._gg,p=n._hh,T=n._ii,h=0;h>>0,u=u+S>>>0,c=c+C>>>0,f=f+j>>>0}return e.endian([d,u,c,f])};n._ff=function(r,o,s,l,d,u,c){var f=r+(o&s|~o&l)+(d>>>0)+c;return(f<>>32-u)+o},n._gg=function(r,o,s,l,d,u,c){var f=r+(o&l|s&~l)+(d>>>0)+c;return(f<>>32-u)+o},n._hh=function(r,o,s,l,d,u,c){var f=r+(o^s^l)+(d>>>0)+c;return(f<>>32-u)+o},n._ii=function(r,o,s,l,d,u,c){var f=r+(s^(o|~l))+(d>>>0)+c;return(f<>>32-u)+o},n._blocksize=16,n._digestsize=16,Kf.exports=function(r,o){if(r==null)throw new Error("Illegal argument "+r);var s=e.wordsToBytes(n(r,o));return o&&o.asBytes?s:o&&o.asString?i.bytesToString(s):e.bytesToHex(s)}})();var qy=Kf.exports;const Hy=Xa(qy),u1=function(e){let t=e.toLowerCase();t.match(/^([0-9a-f]{4}-?){8}$/)===null&&(t=Hy(t)),t=t.replace(/[^0-9a-f]/g,"");const a=6,i=jy(a);function n(r,o){let s=0;const l=[];for(let d=0;d{for(const a in t)e[a]=t[a];return e},sl="numeric",ll="ascii",ul="alpha",nr="asciinumeric",P0="alphanumeric",dl="domain",tg="emoji",$y="scheme",Wy="slashscheme",d1="whitespace";function Qy(e,t){return e in t||(t[e]=[]),t[e]}function pi(e,t,a){t[sl]&&(t[nr]=!0,t[P0]=!0),t[ll]&&(t[nr]=!0,t[ul]=!0),t[nr]&&(t[P0]=!0),t[ul]&&(t[P0]=!0),t[P0]&&(t[dl]=!0),t[tg]&&(t[dl]=!0);for(const i in t){const n=Qy(i,a);n.indexOf(e)<0&&n.push(e)}}function Jy(e,t){const a={};for(const i in t)t[i].indexOf(e)>=0&&(a[i]=!0);return a}function At(e){e===void 0&&(e=null),this.j={},this.jr=[],this.jd=null,this.t=e}At.groups={},At.prototype={accepts(){return!!this.t},go(e){const t=this,a=t.j[e];if(a)return a;for(let i=0;ie.ta(t,a,i,n),wt=(e,t,a,i,n)=>e.tr(t,a,i,n),c1=(e,t,a,i,n)=>e.ts(t,a,i,n),X=(e,t,a,i,n)=>e.tt(t,a,i,n),ha="WORD",cl="UWORD",d0="LOCALHOST",hl="TLD",fl="UTLD",rr="SCHEME",ji="SLASH_SCHEME",Eu="NUM",ag="WS",bu="NL",Vi="OPENBRACE",Un="OPENBRACKET",qn="OPENANGLEBRACKET",Hn="OPENPAREN",gi="CLOSEBRACE",$i="CLOSEBRACKET",Wi="CLOSEANGLEBRACKET",_i="CLOSEPAREN",Gr="AMPERSAND",Ur="APOSTROPHE",qr="ASTERISK",Za="AT",Hr="BACKSLASH",zr="BACKTICK",Vr="CARET",Pa="COLON",yu="COMMA",$r="DOLLAR",$t="DOT",Wr="EQUALS",Au="EXCLAMATION",Wt="HYPHEN",Qr="PERCENT",Jr="PIPE",Kr="PLUS",Xr="POUND",eo="QUERY",Su="QUOTE",ku="SEMI",Qt="SLASH",zn="TILDE",to="UNDERSCORE",ig="EMOJI",ao="SYM";var ng=Object.freeze({__proto__:null,WORD:ha,UWORD:cl,LOCALHOST:d0,TLD:hl,UTLD:fl,SCHEME:rr,SLASH_SCHEME:ji,NUM:Eu,WS:ag,NL:bu,OPENBRACE:Vi,OPENBRACKET:Un,OPENANGLEBRACKET:qn,OPENPAREN:Hn,CLOSEBRACE:gi,CLOSEBRACKET:$i,CLOSEANGLEBRACKET:Wi,CLOSEPAREN:_i,AMPERSAND:Gr,APOSTROPHE:Ur,ASTERISK:qr,AT:Za,BACKSLASH:Hr,BACKTICK:zr,CARET:Vr,COLON:Pa,COMMA:yu,DOLLAR:$r,DOT:$t,EQUALS:Wr,EXCLAMATION:Au,HYPHEN:Wt,PERCENT:Qr,PIPE:Jr,PLUS:Kr,POUND:Xr,QUERY:eo,QUOTE:Su,SEMI:ku,SLASH:Qt,TILDE:zn,UNDERSCORE:to,EMOJI:ig,SYM:ao});const Ci=/[a-z]/,ls=/\p{L}/u,us=/\p{Emoji}/u,ds=/\d/,h1=/\s/,f1=`
+`,Ky="️",Xy="";let G0=null,U0=null;function e4(e){e===void 0&&(e=[]);const t={};At.groups=t;const a=new At;G0==null&&(G0=g1(zy)),U0==null&&(U0=g1(Vy)),X(a,"'",Ur),X(a,"{",Vi),X(a,"[",Un),X(a,"<",qn),X(a,"(",Hn),X(a,"}",gi),X(a,"]",$i),X(a,">",Wi),X(a,")",_i),X(a,"&",Gr),X(a,"*",qr),X(a,"@",Za),X(a,"`",zr),X(a,"^",Vr),X(a,":",Pa),X(a,",",yu),X(a,"$",$r),X(a,".",$t),X(a,"=",Wr),X(a,"!",Au),X(a,"-",Wt),X(a,"%",Qr),X(a,"|",Jr),X(a,"+",Kr),X(a,"#",Xr),X(a,"?",eo),X(a,'"',Su),X(a,"/",Qt),X(a,";",ku),X(a,"~",zn),X(a,"_",to),X(a,"\\",Hr);const i=wt(a,ds,Eu,{[sl]:!0});wt(i,ds,i);const n=wt(a,Ci,ha,{[ll]:!0});wt(n,Ci,n);const r=wt(a,ls,cl,{[ul]:!0});wt(r,Ci),wt(r,ls,r);const o=wt(a,h1,ag,{[d1]:!0});X(a,f1,bu,{[d1]:!0}),X(o,f1),wt(o,h1,o);const s=wt(a,us,ig,{[tg]:!0});wt(s,us,s),X(s,Ky,s);const l=X(s,Xy);wt(l,us,s);const d=[[Ci,n]],u=[[Ci,null],[ls,r]];for(let c=0;cc[0]>f[0]?1:-1);for(let c=0;c=0?h[dl]=!0:Ci.test(f)?ds.test(f)?h[nr]=!0:h[ll]=!0:h[sl]=!0,c1(a,f,f,h)}return c1(a,"localhost",d0,{ascii:!0}),a.jd=new At(ao),{start:a,tokens:hn({groups:t},ng)}}function t4(e,t){const a=a4(t.replace(/[A-Z]/g,s=>s.toLowerCase())),i=a.length,n=[];let r=0,o=0;for(;o=0&&(c+=a[o].length,f++),d+=a[o].length,r+=a[o].length,o++;r-=c,o-=f,d-=c,n.push({t:u.t,v:t.slice(r-d,r),s:r-d,e:r})}return n}function a4(e){const t=[],a=e.length;let i=0;for(;i56319||i+1===a||(r=e.charCodeAt(i+1))<56320||r>57343?e[i]:e.slice(i,i+2);t.push(o),i+=o.length}return t}function xa(e,t,a,i,n){let r;const o=t.length;for(let s=0;s=0;)r++;if(r>0){t.push(a.join(""));for(let o=parseInt(e.substring(i,i+r),10);o>0;o--)a.pop();i+=r}else a.push(e[i]),i++}return t}const c0={defaultProtocol:"http",events:null,format:_1,formatHref:_1,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function vu(e,t){t===void 0&&(t=null);let a=hn({},c0);e&&(a=hn(a,e instanceof vu?e.o:e));const i=a.ignoreTags,n=[];for(let r=0;ra?i.substring(0,a)+"…":i},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){return e===void 0&&(e=c0.defaultProtocol),{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 t=this,a=this.toHref(e.get("defaultProtocol")),i=e.get("formatHref",a,this),n=e.get("tagName",a,t),r=this.toFormattedString(e),o={},s=e.get("className",a,t),l=e.get("target",a,t),d=e.get("rel",a,t),u=e.getObj("attributes",a,t),c=e.getObj("events",a,t);return o.href=i,s&&(o.class=s),l&&(o.target=l),d&&(o.rel=d),u&&hn(o,u),{tagName:n,attributes:o,content:r,eventListeners:c}}};function Oo(e,t){class a extends rg{constructor(n,r){super(n,r),this.t=e}}for(const i in t)a.prototype[i]=t[i];return a.t=e,a}const F1=Oo("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),m1=Oo("text"),i4=Oo("nl"),ui=Oo("url",{isLink:!0,toHref(e){return e===void 0&&(e=c0.defaultProtocol),this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==d0&&e[1].t===Pa}}),at=e=>new At(e);function n4(e){let{groups:t}=e;const a=t.domain.concat([Gr,qr,Za,Hr,zr,Vr,$r,Wr,Wt,Eu,Qr,Jr,Kr,Xr,Qt,ao,zn,to]),i=[Ur,Wi,gi,$i,_i,Pa,yu,$t,Au,qn,Vi,Un,Hn,eo,Su,ku],n=[Gr,Ur,qr,Hr,zr,Vr,gi,$r,Wr,Wt,Vi,Qr,Jr,Kr,Xr,eo,Qt,ao,zn,to],r=at(),o=X(r,zn);he(o,n,o),he(o,t.domain,o);const s=at(),l=at(),d=at();he(r,t.domain,s),he(r,t.scheme,l),he(r,t.slashscheme,d),he(s,n,o),he(s,t.domain,s);const u=X(s,Za);X(o,Za,u),X(l,Za,u),X(d,Za,u);const c=X(o,$t);he(c,n,o),he(c,t.domain,o);const f=at();he(u,t.domain,f),he(f,t.domain,f);const h=X(f,$t);he(h,t.domain,f);const _=at(F1);he(h,t.tld,_),he(h,t.utld,_),X(u,d0,_);const m=X(f,Wt);he(m,t.domain,f),he(_,t.domain,f),X(_,$t,h),X(_,Wt,m);const p=X(_,Pa);he(p,t.numeric,F1);const T=X(s,Wt),R=X(s,$t);he(T,t.domain,s),he(R,n,o),he(R,t.domain,s);const S=at(ui);he(R,t.tld,S),he(R,t.utld,S),he(S,t.domain,s),he(S,n,o),X(S,$t,R),X(S,Wt,T),X(S,Za,u);const C=X(S,Pa),j=at(ui);he(C,t.numeric,j);const E=at(ui),I=at();he(E,a,E),he(E,i,I),he(I,a,E),he(I,i,I),X(S,Qt,E),X(j,Qt,E);const M=X(l,Pa),P=X(d,Pa),g=X(P,Qt),D=X(g,Qt);he(l,t.domain,s),X(l,$t,R),X(l,Wt,T),he(d,t.domain,s),X(d,$t,R),X(d,Wt,T),he(M,t.domain,E),X(M,Qt,E),he(D,t.domain,E),he(D,a,E),X(D,Qt,E);const k=X(E,Vi),x=X(E,Un),L=X(E,qn),Z=X(E,Hn);X(I,Vi,k),X(I,Un,x),X(I,qn,L),X(I,Hn,Z),X(k,gi,E),X(x,$i,E),X(L,Wi,E),X(Z,_i,E),X(k,gi,E);const $=at(ui),V=at(ui),y=at(ui),U=at(ui);he(k,a,$),he(x,a,V),he(L,a,y),he(Z,a,U);const A=at(),z=at(),re=at(),O=at();return he(k,i),he(x,i),he(L,i),he(Z,i),he($,a,$),he(V,a,V),he(y,a,y),he(U,a,U),he($,i,$),he(V,i,V),he(y,i,y),he(U,i,U),he(A,a,A),he(z,a,V),he(re,a,y),he(O,a,U),he(A,i,A),he(z,i,z),he(re,i,re),he(O,i,O),X(V,$i,E),X(y,Wi,E),X(U,_i,E),X($,gi,E),X(z,$i,E),X(re,Wi,E),X(O,_i,E),X(A,_i,E),X(r,d0,S),X(r,bu,i4),{start:r,tokens:ng}}function r4(e,t,a){let i=a.length,n=0,r=[],o=[];for(;n=0&&f++,n++,u++;if(f<0)n-=u,n0&&(r.push(cs(m1,t,o)),o=[]),n-=f,u-=f;const h=c.t,_=a.slice(n-u,n);r.push(cs(h,t,_))}}return o.length>0&&r.push(cs(m1,t,o)),r}function cs(e,t,a){const i=a[0].s,n=a[a.length-1].e,r=t.slice(i,n);return new e(r,a)}const ft={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function o4(){ft.scanner=e4(ft.customSchemes);for(let e=0;e/g,">")}function l4(e){return e.replace(/"/g,""")}function u4(e){const t=[];for(const a in e){let i=e[a]+"";t.push(`${a}="${l4(i)}"`)}return t.join(" ")}function d4(e){let{tagName:t,attributes:a,content:i}=e;return`<${t} ${u4(a)}>${og(i)}${t}>`}function c4(e,t){t===void 0&&(t={}),t=new vu(t,d4);const a=s4(e),i=[];for(let n=0;n
+`):!r.isLink||!t.check(r)?i.push(og(r.toString())):i.push(t.render(r))}return i.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return c4(this,e)}});var sg={exports:{}};(function(e){(function(t){if(typeof a!="function"){var a=function(_){return _};a.nonNative=!0}const i=a("plaintext"),n=a("html"),r=a("comment"),o=/<(\w*)>/g,s=/<\/?([^\s\/>]+)/;function l(_,m,p){_=_||"",m=m||[],p=p||"";let T=u(m,p);return c(_,T)}function d(_,m){_=_||[],m=m||"";let p=u(_,m);return function(T){return c(T||"",p)}}l.init_streaming_mode=d;function u(_,m){return _=f(_),{allowable_tags:_,tag_replacement:m,state:i,tag_buffer:"",depth:0,in_quote_char:""}}function c(_,m){if(typeof _!="string")throw new TypeError("'html' parameter must be a string");let p=m.allowable_tags,T=m.tag_replacement,R=m.state,S=m.tag_buffer,C=m.depth,j=m.in_quote_char,E="";for(let I=0,M=_.length;I":if(j)break;if(C){C--;break}j="",R=i,S+=">",p.has(h(S))?E+=S:E+=T,S="";break;case'"':case"'":P===j?j="":j=j||P,S+=P;break;case"-":S==="":S.slice(-2)=="--"&&(R=i),S="";break;default:S+=P;break}}return m.state=R,m.tag_buffer=S,m.depth=C,m.in_quote_char=j,E}function f(_){let m=new Set;if(typeof _=="string"){let p;for(;p=o.exec(_);)m.add(p[1])}else!a.nonNative&&typeof _[a.iterator]=="function"?m=new Set(_):typeof _.forEach=="function"&&_.forEach(m.add,m);return m}function h(_){let m=s.exec(_);return m?m[1].toLowerCase():null}e.exports?e.exports=l:t.striptags=l})(Ia)})(sg);var h4=sg.exports;const NM=Xa(h4);var lg={};const f4=Ml(K_);Object.defineProperty(lg,"__esModule",{value:!0});var g4=lg.getCapabilities=F4,_4=f4;function F4(){try{return(0,_4.loadState)("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}Aa.util.warn;function Bn(e){var t;const a=nt(e);return(t=a?.$el)!=null?t:a}const ug=uu?window:void 0;function or(...e){let t,a,i,n;if(typeof e[0]=="string"||Array.isArray(e[0])?([a,i,n]=e,t=ug):[t,a,i,n]=e,!t)return ct;Array.isArray(a)||(a=[a]),Array.isArray(i)||(i=[i]);const r=[],o=()=>{r.forEach(u=>u()),r.length=0},s=(u,c,f,h)=>(u.addEventListener(c,f,h),()=>u.removeEventListener(c,f,h)),l=ei(()=>[Bn(t),nt(n)],([u,c])=>{if(o(),!u)return;const f=gf(c)?{...c}:c;r.push(...a.flatMap(h=>i.map(_=>s(u,h,_,f))))},{immediate:!0,flush:"post"}),d=()=>{l(),o()};return E0(d),d}let p1=!1;function T1(e,t,a={}){const{window:i=ug,ignore:n=[],capture:r=!0,detectIframe:o=!1}=a;if(!i)return;tl&&!p1&&(p1=!0,Array.from(i.document.body.children).forEach(u=>u.addEventListener("click",ct)),i.document.documentElement.addEventListener("click",ct));let s=!0;const l=u=>n.some(c=>{if(typeof c=="string")return Array.from(i.document.querySelectorAll(c)).some(f=>f===u.target||u.composedPath().includes(f));{const f=Bn(c);return f&&(u.target===f||u.composedPath().includes(f))}}),d=[or(i,"click",u=>{const c=Bn(e);if(!(!c||c===u.target||u.composedPath().includes(c))){if(u.detail===0&&(s=!l(u)),!s){s=!0;return}t(u)}},{passive:!0,capture:r}),or(i,"pointerdown",u=>{const c=Bn(e);c&&(s=!u.composedPath().includes(c)&&!l(u))},{passive:!0}),o&&or(i,"blur",u=>{setTimeout(()=>{var c;const f=Bn(e);((c=i.document.activeElement)==null?void 0:c.tagName)==="IFRAME"&&!f?.contains(i.document.activeElement)&&t(u)},0)})].filter(Boolean);return()=>d.forEach(u=>u())}const dg={[Ud.mounted](e,t){const a=!t.modifiers.bubble;if(typeof t.value=="function")e.__onClickOutside_stop=T1(e,t.value,{capture:a});else{const[i,n]=t.value;e.__onClickOutside_stop=T1(e,i,Object.assign({capture:a},n))}},[Ud.unmounted](e){e.__onClickOutside_stop()}};function hs(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function cg(e){const t=window.getComputedStyle(e);if(t.overflowX==="scroll"||t.overflowY==="scroll"||t.overflowX==="auto"&&e.clientWidth1?!0:(t.preventDefault&&t.preventDefault(),!1)}function p4(e,t=!1){const a=gt(t);let i=null,n;ei(kD(e),s=>{const l=hs(nt(s));if(l){const d=l;n=d.style.overflow,a.value&&(d.style.overflow="hidden")}},{immediate:!0});const r=()=>{const s=hs(nt(e));!s||a.value||(tl&&(i=or(s,"touchmove",l=>{m4(l)},{passive:!1})),s.style.overflow="hidden",a.value=!0)},o=()=>{const s=hs(nt(e));!s||!a.value||(tl&&i?.(),s.style.overflow=n,a.value=!1)};return E0(o),st({get(){return a.value},set(s){s?r():o()}})}function T4(){let e=!1;const t=gt(!1);return(a,i)=>{if(t.value=i.value,e)return;e=!0;const n=p4(a,i.value);ei(t,r=>n.value=r)}}T4();const hg={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){var t,a;if(!e)return;const i=g4();if(!(!Object.prototype.hasOwnProperty.call(i,"user_status")||!i.user_status.enabled)&&Ys())try{const{data:n}=await $a.get(Va("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:r,message:o,icon:s}=n.ocs.data;this.userStatus.status=r,this.userStatus.message=o||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(n){if(n.response.status===404&&((a=(t=n.response.data.ocs)==null?void 0:t.data)==null?void 0:a.length)===0)return;console.error(n)}}}},fg=cf("nextcloud").persist().build();function D4(e){const t=fg.getItem("user-has-avatar."+e);return typeof t=="string"?!!t:null}function D1(e,t){e&&fg.setItem("user-has-avatar."+e,t)}const E4={name:"NcAvatar",directives:{ClickOutside:dg},components:{DotsHorizontal:Tu,NcActions:Du,NcActionLink:Zy,NcButton:ti,NcLoadingIcon:Ll},mixins:[hg],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},showUserStatus:{type:Boolean,default:!0},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},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,contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){var e,t;if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?ie("Avatar of {displayName}, {status}",{displayName:(e=this.displayName)!=null?e:this.user,status:this.userStatusText}):ie("Avatar of {displayName}",{displayName:(t=this.displayName)!=null?t:this.user})},userStatusText(){switch(this.userStatus.status){case"away":return ie("away");case"dnd":return ie("do not disturb");case"online":return ie("online");case"offline":return ie("offline");default:return this.userStatus.status}},userStatusRole(){return this.hasMenu?void 0:{role:"img","aria-label":ie("User status: {status}",{status:this.userStatusText})}},canDisplayUserStatus(){return this.showUserStatus&&this.hasStatus&&["online","away","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return this.showUserStatus&&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(){var e;return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===((e=Ys())==null?void 0:e.uid)||this.userDoesNotExist||this.url)},showInitials(){return this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.size+"px",fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:t,b:a}=u1(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${t}, ${a}, 0.1)`}},initialsStyle(){const{r:e,g:t,b:a}=u1(this.userIdentifier);return{color:`rgb(${e}, ${t}, ${a})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const t=this.userIdentifier.trim();if(t==="")return"?";const a=t.match(/[\p{L}\p{N}\s]/gu).join(""),i=a.lastIndexOf(" ");e=String.fromCodePoint(a.codePointAt(0)),i!==-1&&(e=e.concat(String.fromCodePoint(a.codePointAt(i+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(a=>({href:a.hyperlink,icon:a.icon,text:a.title}));function t(a){const i=document.createTextNode(a),n=document.createElement("p");return n.appendChild(i),n.innerHTML}return this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)?[{href:"#",icon:`data:image/svg+xml;utf8,`,text:`${this.userStatus.message}`}].concat(e):e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),zo("settings:avatar:updated",this.loadAvatarUrl),zo("settings:display-name:updated",this.loadAvatarUrl),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),zo("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){Vo("settings:avatar:updated",this.loadAvatarUrl),Vo("settings:display-name:updated",this.loadAvatarUrl),this.showUserStatus&&this.user&&!this.isNoUser&&Vo("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:ie,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message})},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:t}=await $a.post(gr("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuActions=t.topAction?[t.topAction].concat(t.actions):t.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser)){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),t=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,t)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,t){var a;const i=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";let n="/avatar/{user}/{size}"+(i?"/dark":"");this.isGuest&&(n="/avatar/guest/{user}/{size}"+(i?"/dark":""));let r=gr(n,{user:e,size:t});return e===((a=Ys())==null?void 0:a.uid)&&typeof oc_userconfig<"u"&&(r+="?v="+oc_userconfig.avatar.version),r},updateImageIfValid(e,t=null){const a=D4(this.user);if(this.isUserDefined&&typeof a=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),a===!1&&(this.userDoesNotExist=!0);return}const i=new Image;i.onload=()=>{this.avatarUrlLoaded=e,t&&(this.avatarSrcSetLoaded=t),this.isAvatarLoaded=!0,D1(this.user,!0)},i.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,D1(this.user,!1)},t&&(i.srcset=t),i.src=e}}};var b4=function(){var e=this,t=e._self._c;return t("span",e._g({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,tabindex:e.hasMenu?"0":void 0,"aria-label":e.avatarAriaLabel,role:e.hasMenu?"button":void 0}},e.hasMenu?{click:e.toggleMenu,keydown:e.toggleMenu}:null),[e._t("icon",function(){return[e.iconClass?t("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?t("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&!e.menu.length?t("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.t("Open contact menu"),type:"tertiary-no-background"},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?t("NcLoadingIcon"):t("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?t("NcActions",{attrs:{"force-menu":"","manual-open":"",type:"tertiary-no-background",container:e.menuContainer,open:e.contactsMenuOpenState},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[t("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(a,i){return t("NcActionLink",{key:i,attrs:{href:a.href,icon:a.icon}},[e._v(" "+e._s(a.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?t("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?t("span",e._b({staticClass:"avatardiv__user-status",class:"avatardiv__user-status--"+e.userStatus.status},"span",e.userStatusRole,!1)):e._e(),e.showInitials?t("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[t("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},y4=[],A4=ce(E4,b4,y4,!1,null,"b9bda6c2",null,null);const xo=A4.exports,S4=8,E1=32,k4={name:"NcListItemIcon",components:{NcAvatar:xo,NcHighlight:wo,NcIconSvgWrapper:Ef},mixins:[hg],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:E1},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},data(){return{margin:S4}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){var e,t;return((t=(e=this.subname)==null?void 0:e.trim)==null?void 0:t.call(e))!==""},isSizeBigEnough(){return this.avatarSize>=E1},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,t=this.search.match(e);return this.isNoUser||!t?[this.search,this.search]:[t[1].trim(),t[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var v4=function(){var e=this,t=e._self._c;return t("span",e._g({staticClass:"option",style:e.cssVars,attrs:{id:e.id}},e.$listeners),[t("NcAvatar",e._b({staticClass:"option__avatar",attrs:{"disable-menu":!0,"disable-tooltip":!0,"display-name":e.displayName||e.name,"is-no-user":e.isNoUser,size:e.avatarSize}},"NcAvatar",e.$attrs,!1)),t("div",{staticClass:"option__details"},[t("NcHighlight",{staticClass:"option__lineone",attrs:{text:e.name,search:e.searchParts[0]}}),e.isValidSubname&&e.isSizeBigEnough?t("NcHighlight",{staticClass:"option__linetwo",attrs:{text:e.subname,search:e.searchParts[1]}}):e.hasStatus?t("span",[t("span",[e._v(e._s(e.userStatus.icon))]),t("span",[e._v(e._s(e.userStatus.message))])]):e._e()],1),e._t("default",function(){return[e.hasIconSvg?t("NcIconSvgWrapper",{staticClass:"option__icon",attrs:{svg:e.iconSvg,name:e.iconName}}):e.hasIcon?t("span",{staticClass:"icon option__icon",class:e.icon,attrs:{"aria-label":e.iconName}}):e._e()]})],2)},R4=[],N4=ce(k4,v4,R4,!1,null,"562c32c6",null,null);const w4=N4.exports,O4={name:"NcSelect",components:{ChevronDown:Lb,NcEllipsisedOption:Qb,NcListItemIcon:w4,NcLoadingIcon:Ll,VueSelect:Z0.VueSelect},mixins:[so],props:{...Z0.VueSelect.props,ariaLabelClearSelected:{type:String,default:ie("Clear selected")},ariaLabelCombobox:{type:String,default:ie("Search for options")},ariaLabelDeselectOption:{type:Function,default:e=>ie("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},components:{type:Object,default:()=>({Deselect:{render:e=>e(No,{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:t})=>e?!1:t},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:null},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,t){return{...e,27:a=>{t.open&&a.stopPropagation(),e[27](a)}}}},uid:{type:String,default:()=>"-"+g0()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:null}," ":{}},emits:[" "],data(){return{search:""}},computed:{localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,t,{width:a})=>{e.style.width=a;const i={name:"addClass",fn(o){return e.classList.add("vs__dropdown-menu--floating"),{}}},n={name:"togglePlacementClass",fn({placement:o}){return t.$el.classList.toggle("select--drop-up",o==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",o==="top"),{}}},r=()=>{xb(t.$refs.toggle,e,{placement:this.placement,middleware:[cb(-1),i,n,ub(),hb({limiter:fb()})]}).then(({x:o,y:s})=>{Object.assign(e.style,{left:`${o}px`,top:`${s}px`})})};return Ob(t.$refs.toggle,e,r)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(t,a,i)=>{var n,r,o;const s=i.match(e);return s&&((o=(r=(n=t.subname)==null?void 0:n.toLocaleLowerCase)==null?void 0:r.call(n))==null?void 0:o.indexOf(s[1].toLocaleLowerCase()))>-1||`${a} ${t.subname}`.toLocaleLowerCase().indexOf(i.toLocaleLowerCase())>-1}:Z0.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Z0.VueSelect.props.label.default},propsToForward(){const{inputClass:e,noWrap:t,placement:a,userSelect:i,...n}=this.$props;return{...n,calculatePosition:this.localCalculatePosition,filterBy:this.localFilterBy,label:this.localLabel}}}};var x4=function(){var e=this,t=e._self._c;return t("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:a=>e.search=a},scopedSlots:e._u([{key:"search",fn:function({attributes:a,events:i}){return[t("input",e._g(e._b({class:["vs__search",e.inputClass]},"input",a,!1),i))]}},{key:"open-indicator",fn:function({attributes:a}){return[t("ChevronDown",e._b({attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",a,!1))]}},{key:"option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"selected-option",fn:function(a){return[e.userSelect?t("NcListItemIcon",e._b({attrs:{"avatar-size":24,name:a[e.localLabel],search:e.search}},"NcListItemIcon",a,!1)):t("NcEllipsisedOption",{attrs:{name:String(a[e.localLabel]),search:e.search}})]}},{key:"spinner",fn:function(a){return[a.loading?t("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.$listeners))},B4=[],C4=ce(O4,x4,B4,!1,null,null,null,null);const Bo=C4.exports;function M4(e=[],t=[]){const a={},i=[];for(const n of e){const r=n.split("/");let[o,s]=[r.shift(),r.join("/")];s||(s=o,o=ie("Global")),a[o]=a[o]||{continent:o,regions:[]},a[o].regions.push({label:gg(s),cities:[],timezoneId:n})}for(const n of t){const{continent:r,label:o,timezoneId:s}=n;a[r]=a[r]||{continent:r,regions:[]},a[r].regions.push({label:o,cities:[],timezoneId:s})}for(const n in a)Object.prototype.hasOwnProperty.call(a,n)&&(a[n].regions.sort((r,o)=>r.labeln.continent[]},value:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${g0(5)}`}},emits:["input"],computed:{placeholder(){return ie("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.value)return e;return{label:fg(this.value),timezoneId:this.value}},options(){const e=I4(),t=M4(e.listAllTimezones(),this.additionalTimezones);let a=[];return Object.values(t).forEach(i=>{a.push({label:i.continent,timezoneId:`tz-group__${i.continent}`,regions:i.regions}),a=a.concat(i.regions)}),a}},methods:{change(e){e&&this.$emit("input",e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,t,a){const i=a.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(n=>this.matchTimezoneId(n.timezoneId,i)):this.matchTimezoneId(e.timezoneId,i)},matchTimezoneId(e,t){return t.every(a=>e.toLowerCase().includes(a.toLowerCase()))}}};var G4=function(){var e=this,t=e._self._c;return t("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}})},U4=[],q4=ce(P4,G4,U4,!1,null,null,null,null);const H4=q4.exports;function _g(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Co(e){return _g(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function z4(e){return _g(e)&&!isNaN(e.getTime())}function Fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var a=Co(e),i=a.getDay(),n=(i+7-t)%7;return a.setDate(a.getDate()-n),a.setHours(0,0,0,0),a}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n;if(!(r>=1&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var o=Co(e),s=o.getFullYear(),l=new Date(0),d=s+1;d>=s-1&&(l.setFullYear(d,0,r),l.setHours(0,0,0,0),l=Fg(l,i),!(o.getTime()>=l.getTime()));d--);return l}function vu(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n,o=Co(e),s=Fg(o,i),l=mg(o,{firstDayOfWeek:i,firstWeekContainsDate:r}),d=s.getTime()-l.getTime();return Math.round(d/(7*24*3600*1e3))+1}var pg={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},V4=/\[([^\]]+)]|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 yt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,a="".concat(Math.abs(e)),i=e<0?"-":"";a.length1&&arguments[1]!==void 0?arguments[1]:"",a=e>0?"-":"+",i=Math.abs(e),n=Math.floor(i/60),r=i%60;return a+yt(n,2)+t+yt(r,2)}var y1=function(e,t,a){var i=e<12?"AM":"PM";return a?i.toLocaleLowerCase():i},Vn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return yt(e.getFullYear(),4).substr(2)},YYYY:function(e){return yt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return yt(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return yt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return yt(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=Vn.h.apply(Vn,arguments);return yt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return yt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return yt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return yt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return yt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var a=t.meridiem||y1;return a(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var a=t.meridiem||y1;return a(e.getHours(),e.getMinutes(),!0)},Z:function(e){return b1(E1(e),":")},ZZ:function(e){return b1(E1(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return vu(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return yt(Vn.w(e,t),2)}};function Mo(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",n=Co(e);if(!z4(n))return"Invalid Date";var r=a.locale||pg;return i.replace(V4,function(o,s){return s||(typeof Vn[o]=="function"?"".concat(Vn[o](n,r)):o)})}function A1(e){return Q4(e)||W4(e)||$4()}function $4(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function W4(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Q4(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t68?a-1:a)*100+i,Ga({},fs,i)}),Ye("YYYY",nA,fs),Ye("M",Pi,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MM",La,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MMM",$n("monthsShort"),Wn("monthsShort",q0)),Ye("MMMM",$n("months"),Wn("months",q0)),Ye("D",Pi,k1),Ye("DD",La,k1),Ye(["H","h"],Pi,v1),Ye(["HH","hh"],La,v1),Ye("m",Pi,R1),Ye("mm",La,R1),Ye("s",Pi,N1),Ye("ss",La,N1),Ye("S",Tg,function(e){return Ga({},gs,parseInt(e,10)*100)}),Ye("SS",La,function(e){return Ga({},gs,parseInt(e,10)*10)}),Ye("SSS",iA,gs);function lA(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function uA(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Ye(["A","a"],lA,function(e,t){var a=typeof t.isPM=="function"?t.isPM(e):uA(e);return{isPM:a}});function dA(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],a=K4(t,3),i=a[0],n=a[1],r=a[2],o=parseInt(n,10)*60+parseInt(r,10);return o===0?0:i==="+"?-o:+o}Ye(["Z","ZZ"],rA,function(e){return{offset:dA(e)}}),Ye("x",Dg,function(e){return{date:new Date(parseInt(e,10))}}),Ye("X",oA,function(e){return{date:new Date(parseFloat(e)*1e3)}}),Ye("d",Tg,"weekday"),Ye("dd",$n("weekdaysMin"),Wn("weekdaysMin","weekday")),Ye("ddd",$n("weekdaysShort"),Wn("weekdaysShort","weekday")),Ye("dddd",$n("weekdays"),Wn("weekdays","weekday")),Ye("w",Pi,"week"),Ye("ww",La,"week");function cA(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function hA(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,a=[0,0,1,0,0,0,0],i=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],n=!0,r=0;r<7;r++)e[r]===void 0?a[r]=n?i[r]:a[r]:(a[r]=e[r],n=!1);return a}function fA(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function gA(){for(var e,t=arguments.length,a=new Array(t),i=0;i=0?(a[0]+=400,e=new Date(Date.UTC.apply(Date,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(Date,a)),e}function _A(e,t,a){var i=t.match(aA);if(!i)throw new Error;for(var n=i.length,r={},o=0;o2&&arguments[2]!==void 0?arguments[2]:{};try{var i=a.locale,n=i===void 0?pg:i,r=a.backupDate,o=r===void 0?new Date:r,s=_A(e,t,n),l=s.year,d=s.month,u=s.day,c=s.hour,f=s.minute,h=s.second,_=s.millisecond,m=s.isPM,p=s.date,T=s.offset,R=s.weekday,S=s.week;if(p)return p;var C=[l,d,u,c,f,h,_];if(C[3]=cA(C[3],m),S!==void 0&&d===void 0&&u===void 0){var j=mg(l===void 0?o:new Date(l,3),{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate});return new Date(j.getTime()+(S-1)*7*24*3600*1e3)}var E,I=hA(C,o);return T!==void 0?(I[6]+=T*60*1e3,E=gA.apply(void 0,A1(I))):E=fA.apply(void 0,A1(I)),R!==void 0&&E.getDay()!==R?new Date(NaN):E}catch{return new Date(NaN)}}function sr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sr=function(t){return typeof t}:sr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}function Ti(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _l(){return _l=Object.assign||function(e){for(var t=1;t=0)&&(a[n]=e[n]);return a}function pA(e,t){if(e==null)return{};var a=mA(e,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function Qn(e,t){return TA(e)||DA(e,t)||EA(e,t)||bA()}function TA(e){if(Array.isArray(e))return e}function DA(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var a=[],i=!0,n=!1,r=void 0;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(a.push(s.value),!(t&&a.length===t));i=!0);}catch(l){n=!0,r=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw r}}return a}}function EA(e,t){if(e){if(typeof e=="string")return O1(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return O1(e,t)}}function O1(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,s=new Date(e,t,a,i,n,r,o);return e<100&&e>=0&&s.setFullYear(e),s}function ya(e){return e instanceof Date&&!isNaN(e)}function Yo(e){return Array.isArray(e)&&e.length===2&&e.every(ya)&&e[0]<=e[1]}function RA(e){return Array.isArray(e)&&e.every(ya)}function fn(e){var t=new Date(e);if(ya(t))return t;for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===t)return null;var a=function(r,o){return getComputedStyle(r,null).getPropertyValue(o)},i=/(auto|scroll)/,n=i.test(a(e,"overflow")+a(e,"overflow-y")+a(e,"overflow-x"));return n?e:Lo(e.parentNode,t)}var jA={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 t=this;this.$nextTick(function(){e&&t.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 t=this.$parent.$el;this._displayPopup=LA(function(){return e.displayPopup()}),this._scrollParent=Lo(t)||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 t=e.target,a=this.$el;a&&!a.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,a=this.appendToBody;this._popupRect||(this._popupRect=ZA(e));var i=this._popupRect,n=i.width,r=i.height,o=IA(t,n,r,a),s=o.left,l=o.top;this.left=s,this.top=l}}}};function jt(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var PA=jA,GA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?a("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()])},UA=[],qA=void 0,HA=void 0,zA=void 0,VA=!1,$A=jt({render:GA,staticRenderFns:UA},qA,PA,HA,VA,zA,!1,void 0,void 0,void 0),WA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("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"}})])},QA=[],JA=void 0,KA=void 0,XA=void 0,eS=!1,tS=jt({render:WA,staticRenderFns:QA},JA,{},KA,eS,XA,!1,void 0,void 0,void 0),aS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),a("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(" "),a("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},iS=[],nS=void 0,rS=void 0,oS=void 0,sS=!1,lS=jt({render:aS,staticRenderFns:iS},nS,{},rS,sS,oS,!1,void 0,void 0,void 0),uS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("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"}})])},dS=[],cS=void 0,hS=void 0,fS=void 0,gS=!1,_S=jt({render:uS,staticRenderFns:dS},cS,{},hS,gS,fS,!1,void 0,void 0,void 0),FS={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},mS=FS,pS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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),[a("i",{class:e.prefixClass+"-icon-"+e.type})])},TS=[],DS=void 0,ES=void 0,bS=void 0,yS=!1,Nu=jt({render:pS,staticRenderFns:TS},DS,mS,ES,yS,bS,!1,void 0,void 0,void 0),AS={name:"TableDate",components:{IconButton:Nu},inject:{getLocale:{default:function(){return Fn}},getWeek:{default:function(){return vu}},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(),t=e.yearFormat,a=e.monthBeforeYear,i=e.monthFormat,n=i===void 0?"MMM":i,r={panel:"year",label:this.formatDate(this.calendar,t)},o={panel:"month",label:this.formatDate(this.calendar,n)};return a?[o,r]:[r,o]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),a=OA({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return Ru(a,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",gn(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 t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-row-col");if(a){var i=a.split(",").map(function(l){return parseInt(l,10)}),n=Qn(i,2),r=n[0],o=n[1],s=this.dates[r][o];this.$emit("select",new Date(s))}},formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},SS=AS,kS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(i){return a("button",{key:i.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+i.panel,attrs:{type:"button"},on:{click:function(n){return e.handlePanelChange(i.panel)}}},[e._v(`
+END:STANDARD`],latitude:"-0131800",longitude:"-1761000"}},di={version:Y4,aliases:L4,zones:Z4},gl=xf();let _g=!1;function I4(){return _g||j4(),gl}function j4(){Af.debug(`Using version ${di.version} of the timezone database`);for(const e in di.zones)if(Object.prototype.hasOwnProperty.call(di.zones,[e])){const t=["BEGIN:VTIMEZONE","TZID:"+e,...di.zones[e].ics,"END:VTIMEZONE"].join(`\r
+`);gl.registerTimezoneFromICS(e,t)}for(const e in di.aliases)Object.prototype.hasOwnProperty.call(di.aliases,[e])&&gl.registerAlias(e,di.aliases[e].aliasTo);_g=!0}const P4={name:"NcTimezonePicker",components:{NcSelect:Bo},props:{additionalTimezones:{type:Array,default:()=>[]},value:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${g0(5)}`}},emits:["input"],computed:{placeholder(){return ie("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.value)return e;return{label:gg(this.value),timezoneId:this.value}},options(){const e=I4(),t=M4(e.listAllTimezones(),this.additionalTimezones);let a=[];return Object.values(t).forEach(i=>{a.push({label:i.continent,timezoneId:`tz-group__${i.continent}`,regions:i.regions}),a=a.concat(i.regions)}),a}},methods:{change(e){e&&this.$emit("input",e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,t,a){const i=a.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(n=>this.matchTimezoneId(n.timezoneId,i)):this.matchTimezoneId(e.timezoneId,i)},matchTimezoneId(e,t){return t.every(a=>e.toLowerCase().includes(a.toLowerCase()))}}};var G4=function(){var e=this,t=e._self._c;return t("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}})},U4=[],q4=ce(P4,G4,U4,!1,null,null,null,null);const H4=q4.exports;function Fg(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Co(e){return Fg(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function z4(e){return Fg(e)&&!isNaN(e.getTime())}function mg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(t>=0&&t<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var a=Co(e),i=a.getDay(),n=(i+7-t)%7;return a.setDate(a.getDate()-n),a.setHours(0,0,0,0),a}function pg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n;if(!(r>=1&&r<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var o=Co(e),s=o.getFullYear(),l=new Date(0),d=s+1;d>=s-1&&(l.setFullYear(d,0,r),l.setHours(0,0,0,0),l=mg(l,i),!(o.getTime()>=l.getTime()));d--);return l}function Ru(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=t.firstDayOfWeek,i=a===void 0?0:a,n=t.firstWeekContainsDate,r=n===void 0?1:n,o=Co(e),s=mg(o,i),l=pg(o,{firstDayOfWeek:i,firstWeekContainsDate:r}),d=s.getTime()-l.getTime();return Math.round(d/(7*24*3600*1e3))+1}var Tg={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},V4=/\[([^\]]+)]|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 yt(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,a="".concat(Math.abs(e)),i=e<0?"-":"";a.length1&&arguments[1]!==void 0?arguments[1]:"",a=e>0?"-":"+",i=Math.abs(e),n=Math.floor(i/60),r=i%60;return a+yt(n,2)+t+yt(r,2)}var A1=function(e,t,a){var i=e<12?"AM":"PM";return a?i.toLocaleLowerCase():i},Vn={Y:function(e){var t=e.getFullYear();return t<=9999?"".concat(t):"+".concat(t)},YY:function(e){return yt(e.getFullYear(),4).substr(2)},YYYY:function(e){return yt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return yt(e.getMonth()+1,2)},MMM:function(e,t){return t.monthsShort[e.getMonth()]},MMMM:function(e,t){return t.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return yt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return yt(e.getHours(),2)},h:function(e){var t=e.getHours();return t===0?12:t>12?t%12:t},hh:function(){var e=Vn.h.apply(Vn,arguments);return yt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return yt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return yt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return yt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return yt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,t){return t.weekdaysMin[e.getDay()]},ddd:function(e,t){return t.weekdaysShort[e.getDay()]},dddd:function(e,t){return t.weekdays[e.getDay()]},A:function(e,t){var a=t.meridiem||A1;return a(e.getHours(),e.getMinutes(),!1)},a:function(e,t){var a=t.meridiem||A1;return a(e.getHours(),e.getMinutes(),!0)},Z:function(e){return y1(b1(e),":")},ZZ:function(e){return y1(b1(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,t){return Ru(e,{firstDayOfWeek:t.firstDayOfWeek,firstWeekContainsDate:t.firstWeekContainsDate})},ww:function(e,t){return yt(Vn.w(e,t),2)}};function Mo(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=t?String(t):"YYYY-MM-DDTHH:mm:ss.SSSZ",n=Co(e);if(!z4(n))return"Invalid Date";var r=a.locale||Tg;return i.replace(V4,function(o,s){return s||(typeof Vn[o]=="function"?"".concat(Vn[o](n,r)):o)})}function S1(e){return Q4(e)||W4(e)||$4()}function $4(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function W4(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function Q4(e){if(Array.isArray(e)){for(var t=0,a=new Array(e.length);t68?a-1:a)*100+i,Ga({},fs,i)}),Ye("YYYY",nA,fs),Ye("M",Pi,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MM",La,function(e){return Ga({},q0,parseInt(e,10)-1)}),Ye("MMM",$n("monthsShort"),Wn("monthsShort",q0)),Ye("MMMM",$n("months"),Wn("months",q0)),Ye("D",Pi,v1),Ye("DD",La,v1),Ye(["H","h"],Pi,R1),Ye(["HH","hh"],La,R1),Ye("m",Pi,N1),Ye("mm",La,N1),Ye("s",Pi,w1),Ye("ss",La,w1),Ye("S",Dg,function(e){return Ga({},gs,parseInt(e,10)*100)}),Ye("SS",La,function(e){return Ga({},gs,parseInt(e,10)*10)}),Ye("SSS",iA,gs);function lA(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function uA(e){return"".concat(e).toLowerCase().charAt(0)==="p"}Ye(["A","a"],lA,function(e,t){var a=typeof t.isPM=="function"?t.isPM(e):uA(e);return{isPM:a}});function dA(e){var t=e.match(/([+-]|\d\d)/g)||["-","0","0"],a=K4(t,3),i=a[0],n=a[1],r=a[2],o=parseInt(n,10)*60+parseInt(r,10);return o===0?0:i==="+"?-o:+o}Ye(["Z","ZZ"],rA,function(e){return{offset:dA(e)}}),Ye("x",Eg,function(e){return{date:new Date(parseInt(e,10))}}),Ye("X",oA,function(e){return{date:new Date(parseFloat(e)*1e3)}}),Ye("d",Dg,"weekday"),Ye("dd",$n("weekdaysMin"),Wn("weekdaysMin","weekday")),Ye("ddd",$n("weekdaysShort"),Wn("weekdaysShort","weekday")),Ye("dddd",$n("weekdays"),Wn("weekdays","weekday")),Ye("w",Pi,"week"),Ye("ww",La,"week");function cA(e,t){if(e!==void 0&&t!==void 0){if(t){if(e<12)return e+12}else if(e===12)return 0}return e}function hA(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,a=[0,0,1,0,0,0,0],i=[t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()],n=!0,r=0;r<7;r++)e[r]===void 0?a[r]=n?i[r]:a[r]:(a[r]=e[r],n=!1);return a}function fA(e,t,a,i,n,r,o){var s;return e<100&&e>=0?(s=new Date(e+400,t,a,i,n,r,o),isFinite(s.getFullYear())&&s.setFullYear(e)):s=new Date(e,t,a,i,n,r,o),s}function gA(){for(var e,t=arguments.length,a=new Array(t),i=0;i=0?(a[0]+=400,e=new Date(Date.UTC.apply(Date,a)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(n)):e=new Date(Date.UTC.apply(Date,a)),e}function _A(e,t,a){var i=t.match(aA);if(!i)throw new Error;for(var n=i.length,r={},o=0;o2&&arguments[2]!==void 0?arguments[2]:{};try{var i=a.locale,n=i===void 0?Tg:i,r=a.backupDate,o=r===void 0?new Date:r,s=_A(e,t,n),l=s.year,d=s.month,u=s.day,c=s.hour,f=s.minute,h=s.second,_=s.millisecond,m=s.isPM,p=s.date,T=s.offset,R=s.weekday,S=s.week;if(p)return p;var C=[l,d,u,c,f,h,_];if(C[3]=cA(C[3],m),S!==void 0&&d===void 0&&u===void 0){var j=pg(l===void 0?o:new Date(l,3),{firstDayOfWeek:n.firstDayOfWeek,firstWeekContainsDate:n.firstWeekContainsDate});return new Date(j.getTime()+(S-1)*7*24*3600*1e3)}var E,I=hA(C,o);return T!==void 0?(I[6]+=T*60*1e3,E=gA.apply(void 0,S1(I))):E=fA.apply(void 0,S1(I)),R!==void 0&&E.getDay()!==R?new Date(NaN):E}catch{return new Date(NaN)}}function sr(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?sr=function(t){return typeof t}:sr=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sr(e)}function Ti(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function _l(){return _l=Object.assign||function(e){for(var t=1;t=0)&&(a[n]=e[n]);return a}function pA(e,t){if(e==null)return{};var a=mA(e,t),i,n;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(a[i]=e[i])}return a}function Qn(e,t){return TA(e)||DA(e,t)||EA(e,t)||bA()}function TA(e){if(Array.isArray(e))return e}function DA(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var a=[],i=!0,n=!1,r=void 0;try{for(var o=e[Symbol.iterator](),s;!(i=(s=o.next()).done)&&(a.push(s.value),!(t&&a.length===t));i=!0);}catch(l){n=!0,r=l}finally{try{!i&&o.return!=null&&o.return()}finally{if(n)throw r}}return a}}function EA(e,t){if(e){if(typeof e=="string")return x1(e,t);var a=Object.prototype.toString.call(e).slice(8,-1);if(a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set")return Array.from(a);if(a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a))return x1(e,t)}}function x1(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,i=new Array(t);a1&&arguments[1]!==void 0?arguments[1]:0,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,r=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,s=new Date(e,t,a,i,n,r,o);return e<100&&e>=0&&s.setFullYear(e),s}function ya(e){return e instanceof Date&&!isNaN(e)}function Yo(e){return Array.isArray(e)&&e.length===2&&e.every(ya)&&e[0]<=e[1]}function RA(e){return Array.isArray(e)&&e.every(ya)}function fn(e){var t=new Date(e);if(ya(t))return t;for(var a=arguments.length,i=new Array(a>1?a-1:0),n=1;n1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===t)return null;var a=function(r,o){return getComputedStyle(r,null).getPropertyValue(o)},i=/(auto|scroll)/,n=i.test(a(e,"overflow")+a(e,"overflow-y")+a(e,"overflow-x"));return n?e:Lo(e.parentNode,t)}var jA={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 t=this;this.$nextTick(function(){e&&t.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 t=this.$parent.$el;this._displayPopup=LA(function(){return e.displayPopup()}),this._scrollParent=Lo(t)||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 t=e.target,a=this.$el;a&&!a.contains(t)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,t=this.$parent.$el,a=this.appendToBody;this._popupRect||(this._popupRect=ZA(e));var i=this._popupRect,n=i.width,r=i.height,o=IA(t,n,r,a),s=o.left,l=o.top;this.left=s,this.top=l}}}};function jt(e,t,a,i,n,r,o,s,l,d){typeof o!="boolean"&&(l=s,s=o,o=!1);var u=typeof a=="function"?a.options:a;e&&e.render&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0,n&&(u.functional=!0)),i&&(u._scopeId=i);var c;if(r?(c=function(_){_=_||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!_&&typeof __VUE_SSR_CONTEXT__<"u"&&(_=__VUE_SSR_CONTEXT__),t&&t.call(this,l(_)),_&&_._registeredComponents&&_._registeredComponents.add(r)},u._ssrRegister=c):t&&(c=o?function(_){t.call(this,d(_,this.$root.$options.shadowRoot))}:function(_){t.call(this,s(_))}),c)if(u.functional){var f=u.render;u.render=function(_,m){return c.call(m),f(_,m)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return a}var PA=jA,GA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?a("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()])},UA=[],qA=void 0,HA=void 0,zA=void 0,VA=!1,$A=jt({render:GA,staticRenderFns:UA},qA,PA,HA,VA,zA,!1,void 0,void 0,void 0),WA=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("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"}})])},QA=[],JA=void 0,KA=void 0,XA=void 0,eS=!1,tS=jt({render:WA,staticRenderFns:QA},JA,{},KA,eS,XA,!1,void 0,void 0,void 0),aS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[a("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),a("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(" "),a("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},iS=[],nS=void 0,rS=void 0,oS=void 0,sS=!1,lS=jt({render:aS,staticRenderFns:iS},nS,{},rS,sS,oS,!1,void 0,void 0,void 0),uS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[a("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"}})])},dS=[],cS=void 0,hS=void 0,fS=void 0,gS=!1,_S=jt({render:uS,staticRenderFns:dS},cS,{},hS,gS,fS,!1,void 0,void 0,void 0),FS={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},mS=FS,pS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("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),[a("i",{class:e.prefixClass+"-icon-"+e.type})])},TS=[],DS=void 0,ES=void 0,bS=void 0,yS=!1,wu=jt({render:pS,staticRenderFns:TS},DS,mS,ES,yS,bS,!1,void 0,void 0,void 0),AS={name:"TableDate",components:{IconButton:wu},inject:{getLocale:{default:function(){return Fn}},getWeek:{default:function(){return Ru}},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(),t=e.yearFormat,a=e.monthBeforeYear,i=e.monthFormat,n=i===void 0?"MMM":i,r={panel:"year",label:this.formatDate(this.calendar,t)},o={panel:"month",label:this.formatDate(this.calendar,n)};return a?[o,r]:[r,o]},days:function(){var e=this.getLocale(),t=e.days||e.formatLocale.weekdaysMin;return t.concat(t).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),t=this.calendar.getMonth(),a=OA({firstDayOfWeek:this.firstDayOfWeek,year:e,month:t});return Nu(a,7)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,t.getMonth()+1,0),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1);break;case"last-month":t.setMonth(t.getMonth(),0),t.setHours(23,59,59,999);break;case"next-month":t.setMonth(t.getMonth()+1);break}return this.disabledCalendarChanger(t,e)},handleIconLeftClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",pl(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",gn(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 t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-row-col");if(a){var i=a.split(",").map(function(l){return parseInt(l,10)}),n=Qn(i,2),r=n[0],o=n[1],s=this.dates[r][o];this.$emit("select",new Date(s))}},formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var t=this.titleFormat;return this.formatDate(e,t)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},SS=AS,kS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(i){return a("button",{key:i.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+i.panel,attrs:{type:"button"},on:{click:function(n){return e.handlePanelChange(i.panel)}}},[e._v(`
`+e._s(i.label)+`
`)])}),0)],1),e._v(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[a("thead",[a("tr",[e.showWeekNumber?a("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(i){return a("th",{key:i},[e._v(e._s(i))])})],2)]),e._v(" "),a("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(i,n){return a("tr",{key:n,class:[e.prefixClass+"-date-row",e.getRowClasses(i)]},[e.showWeekNumber?a("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":n+",0"}},[e._v(`
`+e._s(e.getWeekNumber(i[0]))+`
- `)]):e._e(),e._v(" "),e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-row-col":n+","+o,title:e.getCellTitle(r)},on:{mouseenter:function(s){return e.handleMouseEnter(r)},mouseleave:function(s){return e.handleMouseLeave(r)}}},[a("div",[e._v(e._s(r.getDate()))])])})],2)}),0)])])])},vS=[],RS=void 0,NS=void 0,wS=void 0,OS=!1,xS=jt({render:kS,staticRenderFns:vS},RS,SS,NS,OS,wS,!1,void 0,void 0,void 0),BS={name:"TableMonth",components:{IconButton:Nu},inject:{getLocale:{default:function(){return Fn}},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(),t=e.months||e.formatLocale.monthsShort,a=t.map(function(i,n){return{text:i,month:n}});return Ru(a,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-month");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},CS=BS,MS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(`
+ `)]):e._e(),e._v(" "),e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-row-col":n+","+o,title:e.getCellTitle(r)},on:{mouseenter:function(s){return e.handleMouseEnter(r)},mouseleave:function(s){return e.handleMouseLeave(r)}}},[a("div",[e._v(e._s(r.getDate()))])])})],2)}),0)])])])},vS=[],RS=void 0,NS=void 0,wS=void 0,OS=!1,xS=jt({render:kS,staticRenderFns:vS},RS,SS,NS,OS,wS,!1,void 0,void 0,void 0),BS={name:"TableMonth",components:{IconButton:wu},inject:{getLocale:{default:function(){return Fn}},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(),t=e.months||e.formatLocale.monthsShort,a=t.map(function(i,n){return{text:i,month:n}});return Nu(a,3)}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-year":t.setFullYear(t.getFullYear()-1,11,31),t.setHours(23,59,59,999);break;case"next-year":t.setFullYear(t.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(t,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-month");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},CS=BS,MS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("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(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(i,n){return a("tr",{key:n},e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r.month),attrs:{"data-month":r.month}},[a("div",[e._v(e._s(r.text))])])}),0)}),0)])])},YS=[],LS=void 0,ZS=void 0,IS=void 0,jS=!1,PS=jt({render:MS,staticRenderFns:YS},LS,CS,ZS,jS,IS,!1,void 0,void 0,void 0),GS={name:"TableYear",components:{IconButton:Nu},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(t){return t[t.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var t=new Date(this.calendar);switch(e){case"last-decade":t.setFullYear(this.firstYear-1,11,31),t.setHours(23,59,59,999);break;case"next-decade":t.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(t,e)},getYears:function(e){for(var t=Math.floor(e.getFullYear()/10)*10,a=[],i=0;i<10;i++)a.push(t+i);return Ru(a,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",gn(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var t=e.target;t.tagName.toUpperCase()==="DIV"&&(t=t.parentNode);var a=t.getAttribute("data-year");a&&!t.classList.contains("disabled")&&this.$emit("select",parseInt(a,10))}}},US=GS,qS=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[a("div",{class:e.prefixClass+"-calendar-header"},[a("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),a("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),a("span",{class:e.prefixClass+"-calendar-header-label"},[a("span",[e._v(e._s(e.firstYear))]),e._v(" "),a("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),a("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),a("div",{class:e.prefixClass+"-calendar-content"},[a("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(i,n){return a("tr",{key:n},e._l(i,function(r,o){return a("td",{key:o,staticClass:"cell",class:e.getCellClasses(r),attrs:{"data-year":r}},[a("div",[e._v(e._s(r))])])}),0)}),0)])])},HS=[],zS=void 0,VS=void 0,$S=void 0,WS=!1,QS=jt({render:qS,staticRenderFns:HS},zS,US,VS,WS,$S,!1,void 0,void 0,void 0),bi={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"],t=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),a=t!==-1?e[t]:"date";return{panel:a,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],t={year:NA,month:ml,date:wA},a=t[this.type]||t.date;return e.filter(ya).map(function(i){return a(i)})},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(!ya(e)){var t=this.innerValue.length;e=fn(t>0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=ml(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var a=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,a,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if(this.type==="year"){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(Fa(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(e),this.emitDate(a,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(Fa(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(this.calendarYear),this.emitDate(pl(a,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return Fa(this.calendarYear,e)},getYearCellDate:function(e){return Fa(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,a=[];e.getTime()===new Date().setHours(0,0,0,0)&&a.push("today"),t&&a.push("not-current-month");var i=this.getStateClass(e);return i==="active"&&t||a.push(i),a.concat(this.getClasses(e,this.innerValue,a.join(" ")))},getMonthClasses:function(e){var t=[];if(this.type!=="month"){this.calendarMonth===e&&t.push("active");var a=this.getMonthCellDate(e);return this.disabledCalendarChanger(a,"month")&&t.push("disabled"),t}var i=this.getMonthCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if(this.type!=="year"){this.calendarYear===e&&t.push("active");var a=this.getYearCellDate(e);return this.disabledCalendarChanger(a,"year")&&t.push("disabled"),t}var i=this.getYearCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(t){return t.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var t=e[0].getTime(),a=e[6].getTime(),i=this.innerValue.some(function(n){var r=n.getTime();return r>=t&&r<=a});return i?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,a=this.innerCalendar;return t==="year"?e(QS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):t==="month"?e(PS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(xS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:Ti({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},Jn={name:"CalendarRange",components:{CalendarPanel:bi},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:je({},bi.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=Yo(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map(function(a,i){return ml(fn(a,e.defaultValues[i]))});this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var a=Qn(this.innerValue,2),i=a[0],n=a[1];ya(i)&&!ya(n)?(i.getTime()>e.getTime()?this.innerValue=[e,i]:this.innerValue=[i,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.getCalendarGap(e);if(a){var i=new Date(e[t]);i.setMonth(i.getMonth()+(t===0?-a:a)),e[t]=i}this.calendars=e},getCalendarGap:function(e){var t=Qn(e,2),a=t[0],i=t[1],n=i.getFullYear()-a.getFullYear(),r=i.getMonth()-a.getMonth(),o=n*12+r,s=this.calendarMinDiff,l=this.calendarMaxDiff;return ol?l-o:0},getRangeClasses:function(e,t,a){var i=[].concat(this.getClasses(e,t,a));if(/disabled|active/.test(a))return i;var n=function(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(_){return _.getTime()},l=s(r),d=o.map(s),u=Qn(d,2),c=u[0],f=u[1];if(c>f){var h=[f,c];c=h[0],f=h[1]}return l>c&&l"u")return 0;if(H0!==void 0)return H0;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 t=document.createElement("div");return t.style.width="100%",e.appendChild(t),H0=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),H0}var KS={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=JS(),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 t=e.clientHeight*100/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,a=t.scrollHeight,i=t.scrollTop;this.thumbTop="".concat(i*100/a,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,a=this.$refs.wrap,i=a.scrollHeight,n=a.clientHeight,r=t-this._prevY,o=r*i/n;a.scrollTop=o}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},XS=KS,e6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[a("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),a("div",{class:e.prefixClass+"-scrollbar-track"},[a("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},t6=[],a6=void 0,i6=void 0,n6=void 0,r6=!1,Ag=jt({render:e6,staticRenderFns:t6},a6,XS,i6,r6,n6,!1,void 0,void 0,void 0),_s=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Fs=function(e,t,a){if(Array.isArray(a))return a.filter(function(r){return r>=0&&r2&&arguments[2]!==void 0?arguments[2]:0;if(i<=0){requestAnimationFrame(function(){t.scrollTop=a});return}var n=a-t.scrollTop,r=n/i*10;requestAnimationFrame(function(){var o=t.scrollTop+r;if(o>=a){t.scrollTop=a;return}t.scrollTop=o,e(t,a,i-10)})},s6={name:"ListColumns",components:{ScrollbarVertical:Ag},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(t){return t.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 Fs(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(t){var a=new Date(e.date),i=_s(t);e.use12h&&(t===0&&(i="12"),a.getHours()>=12&&(t+=12));var n=a.setHours(t);return{value:n,text:i}})},getMinutesList:function(){var e=this;return Fs(60,this.minuteStep,this.minuteOptions).map(function(t){var a=new Date(e.date).setMinutes(t);return{value:a,text:_s(t)}})},getSecondsList:function(){var e=this;return Fs(60,this.secondStep,this.secondOptions).map(function(t){var a=new Date(e.date).setSeconds(t);return{value:a,text:_s(t)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(t,a){var i=new Date(e.date),n=i.setHours(i.getHours()%12+a*12);return{text:t,value:n}})},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),a=0;a0?this.innerValue[t-1]:this.defaultValue)}this.innerCalendar=ml(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,t){this.isDisabled(e)||(this.$emit("select",e,t,this.innerValue),this.dispatchDatePicker("pick",e,t))},handleCalendarChange:function(e,t){var a=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,a,t)},handelPanelChange:function(e){var t=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,t)},handleSelectYear:function(e){if(this.type==="year"){var t=this.getYearCellDate(e);this.emitDate(t,"year")}else if(this.handleCalendarChange(Fa(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(e),this.emitDate(a,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var t=this.getMonthCellDate(e);this.emitDate(t,"month")}else if(this.handleCalendarChange(Fa(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var a=new Date(this.innerValue[0]);a.setFullYear(this.calendarYear),this.emitDate(pl(a,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return Fa(this.calendarYear,e)},getYearCellDate:function(e){return Fa(e,0)},getDateClasses:function(e){var t=e.getMonth()!==this.calendarMonth,a=[];e.getTime()===new Date().setHours(0,0,0,0)&&a.push("today"),t&&a.push("not-current-month");var i=this.getStateClass(e);return i==="active"&&t||a.push(i),a.concat(this.getClasses(e,this.innerValue,a.join(" ")))},getMonthClasses:function(e){var t=[];if(this.type!=="month"){this.calendarMonth===e&&t.push("active");var a=this.getMonthCellDate(e);return this.disabledCalendarChanger(a,"month")&&t.push("disabled"),t}var i=this.getMonthCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getYearClasses:function(e){var t=[];if(this.type!=="year"){this.calendarYear===e&&t.push("active");var a=this.getYearCellDate(e);return this.disabledCalendarChanger(a,"year")&&t.push("disabled"),t}var i=this.getYearCellDate(e);return t.push(this.getStateClass(i)),t.concat(this.getClasses(i,this.innerValue,t.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(t){return t.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var t=e[0].getTime(),a=e[6].getTime(),i=this.innerValue.some(function(n){var r=n.getTime();return r>=t&&r<=a});return i?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],t=this.panel,a=this.innerCalendar;return t==="year"?e(QS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):t==="month"?e(PS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(xS,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:a,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:Ti({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},Jn={name:"CalendarRange",components:{CalendarPanel:bi},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:je({},bi.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=Yo(this.value)?this.value:[new Date(NaN),new Date(NaN)];var t=this.innerValue.map(function(a,i){return ml(fn(a,e.defaultValues[i]))});this.updateCalendars(t)}}},methods:{handleSelect:function(e,t){var a=Qn(this.innerValue,2),i=a[0],n=a[1];ya(i)&&!ya(n)?(i.getTime()>e.getTime()?this.innerValue=[e,i]:this.innerValue=[i,e],this.emitDate(this.innerValue,t)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,t){this.$emit("select",e,t)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,a=this.getCalendarGap(e);if(a){var i=new Date(e[t]);i.setMonth(i.getMonth()+(t===0?-a:a)),e[t]=i}this.calendars=e},getCalendarGap:function(e){var t=Qn(e,2),a=t[0],i=t[1],n=i.getFullYear()-a.getFullYear(),r=i.getMonth()-a.getMonth(),o=n*12+r,s=this.calendarMinDiff,l=this.calendarMaxDiff;return ol?l-o:0},getRangeClasses:function(e,t,a){var i=[].concat(this.getClasses(e,t,a));if(/disabled|active/.test(a))return i;var n=function(r,o){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(_){return _.getTime()},l=s(r),d=o.map(s),u=Qn(d,2),c=u[0],f=u[1];if(c>f){var h=[f,c];c=h[0],f=h[1]}return l>c&&l"u")return 0;if(H0!==void 0)return H0;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 t=document.createElement("div");return t.style.width="100%",e.appendChild(t),H0=e.offsetWidth-t.offsetWidth,e.parentNode.removeChild(e),H0}var KS={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=JS(),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 t=e.clientHeight*100/e.scrollHeight;this.thumbHeight=t<100?"".concat(t,"%"):""}},handleScroll:function(e){var t=e.currentTarget,a=t.scrollHeight,i=t.scrollTop;this.thumbTop="".concat(i*100/a,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var t=this.$refs.thumb.offsetTop;this._prevY=e.clientY-t,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var t=e.clientY,a=this.$refs.wrap,i=a.scrollHeight,n=a.clientHeight,r=t-this._prevY,o=r*i/n;a.scrollTop=o}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},XS=KS,e6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[a("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),a("div",{class:e.prefixClass+"-scrollbar-track"},[a("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},t6=[],a6=void 0,i6=void 0,n6=void 0,r6=!1,Sg=jt({render:e6,staticRenderFns:t6},a6,XS,i6,r6,n6,!1,void 0,void 0,void 0),_s=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Fs=function(e,t,a){if(Array.isArray(a))return a.filter(function(r){return r>=0&&r2&&arguments[2]!==void 0?arguments[2]:0;if(i<=0){requestAnimationFrame(function(){t.scrollTop=a});return}var n=a-t.scrollTop,r=n/i*10;requestAnimationFrame(function(){var o=t.scrollTop+r;if(o>=a){t.scrollTop=a;return}t.scrollTop=o,e(t,a,i-10)})},s6={name:"ListColumns",components:{ScrollbarVertical:Sg},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(t){return t.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 Fs(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(t){var a=new Date(e.date),i=_s(t);e.use12h&&(t===0&&(i="12"),a.getHours()>=12&&(t+=12));var n=a.setHours(t);return{value:n,text:i}})},getMinutesList:function(){var e=this;return Fs(60,this.minuteStep,this.minuteOptions).map(function(t){var a=new Date(e.date).setMinutes(t);return{value:a,text:_s(t)}})},getSecondsList:function(){var e=this;return Fs(60,this.secondStep,this.secondOptions).map(function(t){var a=new Date(e.date).setSeconds(t);return{value:a,text:_s(t)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(t,a){var i=new Date(e.date),n=i.setHours(i.getHours()%12+a*12);return{text:t,value:n}})},scrollToSelected:function(e){for(var t=this.$el.querySelectorAll(".active"),a=0;a0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(":");if(t.length>=2){var a=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:a,minutes:i}}return null}var F6=function(e,t){e&&(e.scrollTop=t)},m6={name:"ListOptions",components:{ScrollbarVertical:Ag},inject:{getLocale:{default:function(){return Fn}},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=[],t=this.options;if(typeof t=="function")return t()||[];var a=ms(t.start),i=ms(t.end),n=ms(t.step),r=t.format||this.format;if(a&&i&&n)for(var o=a.minutes+a.hours*60,s=i.minutes+i.hours*60,l=n.minutes+n.hours*60,d=Math.floor((s-o)/l),u=0;u<=d;u++){var c=o+u*l,f=Math.floor(c/60),h=c%60,_=new Date(this.date).setHours(f,h,0);e.push({value:_,text:this.formatDate(_,r)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=Lo(e,this.$el);if(t){var a=e.offsetTop;F6(t,a)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},p6=m6,T6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("scrollbar-vertical",e._l(e.list,function(i){return a("div",{key:i.value,class:[e.prefixClass+"-time-option",e.getClasses(i.value)],on:{click:function(n){return e.handleSelect(i.value)}}},[e._v(`
+ `)])}),0)])}),1)},d6=[],c6=void 0,h6=void 0,f6=void 0,g6=!1,_6=jt({render:u6,staticRenderFns:d6},c6,l6,h6,g6,f6,!1,void 0,void 0,void 0);function ms(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=e.split(":");if(t.length>=2){var a=parseInt(t[0],10),i=parseInt(t[1],10);return{hours:a,minutes:i}}return null}var F6=function(e,t){e&&(e.scrollTop=t)},m6={name:"ListOptions",components:{ScrollbarVertical:Sg},inject:{getLocale:{default:function(){return Fn}},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=[],t=this.options;if(typeof t=="function")return t()||[];var a=ms(t.start),i=ms(t.end),n=ms(t.step),r=t.format||this.format;if(a&&i&&n)for(var o=a.minutes+a.hours*60,s=i.minutes+i.hours*60,l=n.minutes+n.hours*60,d=Math.floor((s-o)/l),u=0;u<=d;u++){var c=o+u*l,f=Math.floor(c/60),h=c%60,_=new Date(this.date).setHours(f,h,0);e.push({value:_,text:this.formatDate(_,r)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var t=Lo(e,this.$el);if(t){var a=e.offsetTop;F6(t,a)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},p6=m6,T6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("scrollbar-vertical",e._l(e.list,function(i){return a("div",{key:i.value,class:[e.prefixClass+"-time-option",e.getClasses(i.value)],on:{click:function(n){return e.handleSelect(i.value)}}},[e._v(`
`+e._s(i.text)+`
`)])}),0)},D6=[],E6=void 0,b6=void 0,y6=void 0,A6=!1,S6=jt({render:T6,staticRenderFns:D6},E6,p6,b6,A6,y6,!1,void 0,void 0,void 0),k6={name:"TimePanel",components:{ListColumns:_6,ListOptions:S6},inject:{getLocale:{default:function(){return Fn}},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:fn(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,t=new Date(this.innerValue);return this.formatDate(t,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,t=this.innerForamt,a={showHour:/[HhKk]/.test(t),showMinute:/m/.test(t),showSecond:/s/.test(t),use12h:/a/i.test(t)},i={};return Object.keys(a).forEach(function(n){i[n]=typeof e[n]=="boolean"?e[n]:a[n]}),i}},watch:{value:{immediate:!0,handler:function(){this.innerValue=fn(this.value,this.defaultValue)}}},methods:{formatDate:function(e,t){return Mo(e,t,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setMinutes(0,0,0))&&this.isDisabledTime(t.setMinutes(59,59,999))},isDisabledMinute:function(e){var t=new Date(e);return this.isDisabledTime(t)&&this.isDisabledTime(t.setSeconds(0,0))&&this.isDisabledTime(t.setSeconds(59,999))},isDisabledAMPM:function(e){var t=new Date(e),a=t.getHours()<12?0:12,i=a+11;return this.isDisabledTime(t)&&this.isDisabledTime(t.setHours(a,0,0,0))&&this.isDisabledTime(t.setHours(i,59,59,999))},isDisabled:function(e,t){return t==="hour"?this.isDisabledHour(e):t==="minute"?this.isDisabledMinute(e):t==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,t){var a=new Date(e);this.isDisabled(e,t)||(this.innerValue=a,this.isDisabledTime(a)||this.$emit("select",a,t))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,t){var a=new Date(e);return this.isDisabled(e,t)?"disabled":a.getTime()===this.innerValue.getTime()?"active":""}}},v6=k6,R6=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?a("div",{class:e.prefixClass+"-time-header"},[a("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(" "),a("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?a("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):a("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)])},N6=[],w6=void 0,O6=void 0,x6=void 0,B6=!1,za=jt({render:R6,staticRenderFns:N6},w6,v6,O6,B6,x6,!1,void 0,void 0,void 0),Kn={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:je({},za.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(Yo(this.value)){var e=Qn(this.value,2),t=e[0],a=e[1];this.startValue=t,this.endValue=a}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var a=[this.startValue,this.endValue];this.$emit("select",a,e==="time"?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,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 i=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",i),this.$emit("change",i,t),a&&this.closePopup(),i},isValidValue:function(e){return this.validMultipleType?RA(e):this.range?Yo(e):ya(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},a=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(i){return!t(i)&&!a(i)})},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var a=t.filter(function(i){return i.getTime()!==e.getTime()});return a.length===t.length&&a.push(e),a}return e},handleSelectDate:function(e,t,a){e=this.handleMultipleDates(e,a),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||t==="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 t=e.currentTarget.getAttribute("data-index"),a=this.shortcuts[parseInt(t,10)];if(ta(a)&&typeof a.onClick=="function"){var i=a.onClick(this);i&&this.emitValue(i)}},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 t=this.userInput.trim();if(this.userInput=null,t===""){this.clear();return}var a;if(this.validMultipleType)a=t.split(this.innerRangeSeparator).map(function(n){return e.parseDate(n.trim())});else if(this.range){var i=t.split(this.innerRangeSeparator);i.length!==2&&(i=t.split(this.innerRangeSeparator.trim())),a=i.map(function(n){return e.parseDate(n.trim())})}else a=this.parseDate(t);this.isValidValueAndNotDisabled(a)?(this.emitValue(a),this.blur()):this.$emit("input-error",t)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;t===9?this.closePopup():t===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,t,a){var i=this.$scopedSlots[e];return i?i(a)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,a=je({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),i=a.value,n=a.class,r=pA(a,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",e("input",{domProps:{value:i},class:n,attrs:je({},r),on:je({},o),ref:"input"}),{props:a,events:o}),l=this.type==="time"?e(lS):e(tS);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[s,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(_S))]):e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?M6:C6,a=t[this.type]||t.default,i=je({},_n(this.$props,Object.keys(a.props)),{value:this.currentValue}),n=je({},_n(this.$listeners,a.emits||[]),{select:this.handleSelectDate}),r=e(a,h0([{},{props:i,on:n,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",r,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,a=this.prefixClass;return t("div",{class:"".concat(a,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(i,n){return t("button",{key:n,attrs:{"data-index":n,type:"button"},class:"".concat(a,"-btn ").concat(a,"-btn-text ").concat(a,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[i.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,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],a=this.prefixClass,i=this.inline,n=this.disabled,r=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=t("div",{class:"".concat(a,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},Ti(e,"".concat(a,"-datepicker"),!0),Ti(e,"".concat(a,"-datepicker-range"),this.range),Ti(e,"".concat(a,"-datepicker-inline"),i),Ti(e,"disabled",n),e)},[i?null:this.renderInput(),i?t("div",{class:"".concat(a,"-datepicker-main")},[r,o]):t($A,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[r,o])])}};hi.locale=yg,hi.install=function(e){e.component(hi.name,hi)},typeof window<"u"&&window.Vue&&hi.install(window.Vue),_l(hi,{CalendarPanel:bi,CalendarRange:Jn,TimePanel:za,TimeRange:Kn,DatetimePanel:wu,DatetimeRange:Sg});const Ou=e=>{e.mounted?Array.isArray(e.mounted)||(e.mounted=[e.mounted]):e.mounted=[],e.mounted.push(function(){this.$el.setAttribute("data-v-cfad8df","")})},Y6={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var L6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},Z6=[],I6=ce(Y6,L6,Z6,!1,null,null,null,null);const j6=I6.exports,P6={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var G6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},U6=[],q6=ce(P6,G6,U6,!1,null,null,null,null);const H6=q6.exports,x1={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},z6={name:"NcDateTimePicker",components:{CalendarBlank:j6,DatePicker:hi,NcPopover:mu,NcTimezonePicker:H4,Web:H6},mixins:[so],inheritAttrs:!1,props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date"},format:{type:String,default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{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}},emits:["update:value","update:timezone-id"],data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{defaultLang(){return{formatLocale:{months:sF(),monthsShort:lF(),weekdays:uF(),weekdaysShort:dF(),weekdaysMin:cF(),firstDayOfWeek:hF()},monthFormat:"MMM"}},defaultPlaceholder(){return this.type==="time"?ie("Pick a time"):this.type==="month"?ie("Pick a month"):this.type==="year"?ie("Pick a year"):this.type==="week"?ie("Pick a week"):this.type==="date"?ie("Pick a date"):ie("Pick a date and a time")},formatTypeMap(){var e;return(e=x1[this.type])!=null?e:x1.date}},methods:{handleSelectYear(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setFullYear(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},handleSelectMonth(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setMonth(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var V6=function(){var e=this,t=e._self._c;return t("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.format?e.format:e.formatTypeMap,formatter:e.formatter,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},"show-week-number":e.showWeekNumber,type:e.type,value:e.value},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,"update:value":function(a){return e.$emit("update:value",e.value)}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?t("NcPopover",{attrs:{shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(a){e.showTimezonePopover=a}},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("button",{staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),(()=>{}).apply(null,arguments)}}},[t("Web",{attrs:{size:20}})],1)]},proxy:!0}],null,!1,3375037618)},[t("div",{staticClass:"timezone-popover-wrapper__label"},[t("strong",[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),t("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(a){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(a){e.tzVal=a},expression:"tzVal"}})],1):t("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},$6=[],W6=ce(z6,V6,$6,!1,null,"26676d3b",null,null);const Q6=W6.exports;Ou(Q6);const J6=["date","datetime-local","month","time","week"],K6={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:e=>J6.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"],computed:{formattedValue(){return this.formatValue(this.value)},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))return this.$emit("input",null);if(this.type==="time"){const i=e.target.value;if(this.value===""){const{yyyy:s,MM:l,dd:d}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${s}-${l}-${d}T${i}`))}const{yyyy:n,MM:r,dd:o}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${r}-${o}T${i}`))}else if(this.type==="month"){const i=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.value===""){const{yyyy:l,dd:d,hh:u,mm:c}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${l}-${i}-${d}T${u}:${c}`))}const{yyyy:n,dd:r,hh:o,mm:s}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${i}-${r}T${o}:${s}`))}const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,a=e.target.valueAsNumber+t;return this.$emit("input",new Date(a))}}}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),n=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:a,dd:i,hh:n,mm:r}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:a,dd:i,hh:n,mm:r}=this.getReadableDate(e);if(this.type==="datetime-local")return`${t}-${a}-${i}T${n}:${r}`;if(this.type==="date")return`${t}-${a}-${i}`;if(this.type==="month")return`${t}-${a}`;if(this.type==="time")return`${n}:${r}`;if(this.type==="week"){const o=new Date(t,0,1),s=Math.floor((e-o)/(24*60*60*1e3)),l=Math.ceil(s/7);return`${t}-W${l}`}}else return""}}};var X6=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(e._s(e.label))]),t("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))])},ek=[],tk=ce(K6,X6,ek,!1,null,"22982259",null,null);const ak=tk.exports;Ou(ak);const ik={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},rk=[],ok=ce(ik,nk,rk,!1,null,null,null,null);const sk=ok.exports,lk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dk=[],ck=ce(lk,uk,dk,!1,null,null,null,null);const hk=ck.exports,fk={name:"NcInputField",components:{NcButton:ti,AlertCircle:sk,Check:hk},inheritAttrs:!1,props:{value:{type:String,required:!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},inputClass:{type:[Object,String],default:""}},emits:["update:value","trailing-button-click"],computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+g0()},hasLeadingIcon(){return this.$slots.default},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){this.$emit("update:value",e.target.value)},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var gk=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__input--leading-icon":e.hasLeadingIcon,"input-field__input--label-outside":e.labelOutside,"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.value},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",class:[{"input-field__label--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__label--leading-icon":e.hasLeadingIcon}],attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasLeadingIcon,expression:"hasLeadingIcon"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("default")],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":e.trailingButtonLabel,disabled:e.disabled},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?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("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?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},_k=[],Fk=ce(fk,gk,_k,!1,null,"31a36009",null,null);const mn=Fk.exports;function Tl(e,t,a){var i,n,r,o,s;t==null&&(t=100);function l(){var u=Date.now()-o;u=0?i=setTimeout(l,t-u):(i=null,a||(s=e.apply(r,n),r=n=null))}var d=function(){r=this,n=arguments,o=Date.now();var u=a&&!i;return i||(i=setTimeout(l,t)),u&&(s=e.apply(r,n),r=n=null),s};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.flush=function(){i&&(s=e.apply(r,n),r=n=null,clearTimeout(i),i=null)},d}Tl.debounce=Tl;var kg=Tl;const xu=Xa(kg),mk={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Tk=[],Dk=ce(mk,pk,Tk,!1,null,null,null,null);const Ek=Dk.exports,bk={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ak=[],Sk=ce(bk,yk,Ak,!1,null,null,null,null);const kk=Sk.exports,B1=Ls("core","capabilities",{}).password_policy||null,vk=new Set(Object.keys(mn.props)),Rk={name:"NcPasswordField",components:{NcInputField:mn,Eye:Ek,EyeOff:kk},inheritAttrs:!1,props:{" ":{},...mn.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null}},emits:["valid","invalid","update:value"],data(){return{isPasswordHidden:!0,internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??B1?.minLength}},trailingButtonLabelPassword(){return this.isPasswordHidden?ie("Show password"):ie("Hide password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>vk.has(e)))}}},watch:{value(e){if(this.checkPasswordStrength){if(B1===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)},togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden},checkPassword:xu(async function(e){try{const{data:t}=await Va.post($a("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=ie("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){yf.error("Password policy returned an error",t)}},500)}};var Nk=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.isPasswordHidden?"password":"text","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength},on:{"trailing-button-click":e.togglePasswordVisibility,input:e.handleInput},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[e.isPasswordHidden?t("Eye",{attrs:{size:18}}):t("EyeOff",{attrs:{size:18}})]},proxy:!0}])},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},wk=[],Ok=ce(Rk,Nk,wk,!1,null,null,null,null);const wM=Ok.exports,xk={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ck=[],Mk=ce(xk,Bk,Ck,!1,null,null,null,null);const Yk=Mk.exports,Lk=new Set(Object.keys(mn.props)),Zk={name:"NcTextField",components:{NcInputField:mn,Close:No,ArrowRight:uf,Undo:Yk},inheritAttrs:!1,props:{" ":{},...mn.props,trailingButtonLabel:{type:String,default:ie("Clear text")},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowRight","undo"].includes(e)}},emits:["update:value"],computed:{propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Lk.has(e)))}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)}}};var Ik=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",on:{input:e.handleInput},scopedSlots:e._u([e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.trailingButtonIcon==="close"?t("Close",{attrs:{size:20}}):e.trailingButtonIcon==="arrowRight"?t("ArrowRight",{attrs:{size:20}}):e.trailingButtonIcon==="undo"?t("Undo",{attrs:{size:20}}):e._e()]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},jk=[],Pk=ce(Zk,Ik,jk,!1,null,null,null,null);const Gk=Pk.exports;ie("Submit");const Uk={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(e){var t,a,i;return this.vnodes||((t=this.$slots)==null?void 0:t.default)||((i=(a=this.$scopedSlots)==null?void 0:a.default)==null?void 0:i.call(a))}},qk=null,Hk=null;var zk=ce(Uk,qk,Hk,!1,null,null,null,null);const OM=zk.exports;const Vk={props:{excludeClickOutsideSelectors:{type:[String,Array],default:()=>[]}},computed:{clickOutsideOptions(){return{ignore:Array.isArray(this.excludeClickOutsideSelectors)?this.excludeClickOutsideSelectors:[this.excludeClickOutsideSelectors]}}}},$k={name:"CogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Wk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon cog-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Qk=[],Jk=ce($k,Wk,Qk,!1,null,null,null,null);const Kk=Jk.exports,Xk={directives:{ClickOutside:ug},components:{Cog:Kk},mixins:[Vk],props:{name:{type:String,required:!1,default:ie("Settings")}},data(){return{open:!1}},computed:{clickOutsideConfig(){return[this.closeMenu,this.clickOutsideOptions]},ariaLabel(){return ie("Open settings menu")}},methods:{toggleMenu(){this.open=!this.open},closeMenu(){this.open=!1}}};var ev=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideConfig,expression:"clickOutsideConfig"}],class:{open:e.open},attrs:{id:"app-settings"}},[t("div",{attrs:{id:"app-settings__header"}},[t("button",{staticClass:"settings-button",attrs:{type:"button","aria-expanded":e.open?"true":"false","aria-controls":"app-settings__content","aria-label":e.ariaLabel},on:{click:e.toggleMenu}},[t("Cog",{staticClass:"settings-button__icon",attrs:{size:20}}),t("span",{staticClass:"settings-button__label"},[e._v(e._s(e.name))])],1)]),t("transition",{attrs:{name:"slide-up"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],attrs:{id:"app-settings__content"}},[e._t("default")],2)])],1)},tv=[],av=ce(Xk,ev,tv,!1,null,"db4cc195",null,null);const xM=av.exports;function iv(e,t){let a,i,n=t,r;this.start=function(){r=!0,i=new Date,a=setTimeout(e,n)},this.pause=function(){r=!1,clearTimeout(a),n-=new Date-i},this.clear=function(){r=!1,clearTimeout(a),n=0},this.getTimeLeft=function(){return r&&(this.pause(),this.start()),n},this.getStateRunning=function(){return r},this.start()}const nv={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ov=[],sv=ce(nv,rv,ov,!1,null,null,null,null);const lv=sv.exports,uv={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var dv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pause-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},cv=[],hv=ce(uv,dv,cv,!1,null,null,null,null);const fv=hv.exports,gv={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _v=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon play-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Fv=[],mv=ce(gv,_v,Fv,!1,null,null,null,null);const pv=mv.exports,Tv={name:"NcModal",components:{NcActions:Tu,ChevronLeft:lv,ChevronRight:Ef,Close:No,Pause:fv,Play:pv,NcButton:ti},directives:{tooltip:lf},mixins:[so],props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:e=>["small","normal","large","full"].includes(e)},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonContained:{type:Boolean,default:!0},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0}},emits:["previous","next","close","update:show"],data(){return{mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:g0(),internalShow:!0}},computed:{showModal(){return this.show===void 0?this.internalShow:this.show},modalTransitionName(){return`modal-${this.outTransition?"out":"in"}`},playPauseName(){return this.playing?ie("Pause slideshow"):ie("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel(){return ie("Close modal")},prevButtonAriaLabel(){return ie("Previous")},nextButtonAriaLabel(){return ie("Next")}},watch:{slideshowPaused(e){this.slideshowTimeout&&(e?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(e){if(this.focusTrap){const t=this.$refs.mask;this.focusTrap.updateContainerElements([t,...e])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){this.useFocusTrap(),this.mc=Ff(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&(this.container==="body"?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},destroyed(){this.clearFocusTrap(),this.$el.remove()},methods:{previous(e){this.hasPrevious&&(e&&this.resetSlideshow(),this.$emit("previous",e))},next(e){this.hasNext&&(e&&this.resetSlideshow(),this.$emit("next",e))},close(e){this.canClose&&(this.internalShow=!1,this.$emit("update:show",!1),setTimeout(()=>{this.$emit("close",e)},300))},handleClickModalWrapper(e){this.closeOnClickOutside&&this.close(e)},handleKeydown(e){if(e.key==="Escape"){const a=rl();return a.length>0&&a[a.length-1]!==this.focusTrap?void 0:this.close(e)}const t={ArrowLeft:this.previous,ArrowRight:this.next};if(t[e.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:t[e.key](e)},handleSwipe(e,t){this.enableSwipe&&(t==="left"?this.next(e):t==="right"&&this.previous(e))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick(function(){this.togglePlayPause()})},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new iv(()=>{this.next(),this.handleSlideshow()},this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const e=this.$refs.mask;await this.$nextTick();const t={allowOutsideClick:!0,fallbackFocus:e,trapStack:rl(),escapeDeactivates:!1};this.focusTrap=Qf([e,...this.additionalTrapElements],t),this.focusTrap.activate()},clearFocusTrap(){var e;this.focusTrap&&((e=this.focusTrap)==null||e.deactivate(),this.focusTrap=null)}}};var Dv=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"fade",appear:""},on:{"after-enter":e.useFocusTrap,"before-leave":e.clearFocusTrap}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":e.dark},style:e.cssVariables,attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"modal-name-"+e.randId,"aria-describedby":"modal-description-"+e.randId,tabindex:"-1"}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("div",{staticClass:"modal-header"},[e.name.trim()!==""?t("h2",{staticClass:"modal-name",attrs:{id:"modal-name-"+e.randId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),t("div",{staticClass:"icons-menu"},[e.hasNext&&e.enableSlideshow?t("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:e.playPauseName,expression:"playPauseName",modifiers:{auto:!0}}],staticClass:"play-pause-icons",class:{"play-pause-icons--paused":e.slideshowPaused},attrs:{type:"button"},on:{click:e.togglePlayPause}},[e.playing?t("Pause",{staticClass:"play-pause-icons__pause",attrs:{size:e.iconSize}}):t("Play",{staticClass:"play-pause-icons__play",attrs:{size:e.iconSize}}),t("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.playPauseName)+" ")]),e.playing?t("svg",{staticClass:"progress-ring",attrs:{height:"50",width:"50"}},[t("circle",{staticClass:"progress-ring__circle",attrs:{stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"}})]):e._e()],1):e._e(),t("NcActions",{staticClass:"header-actions",attrs:{inline:e.inlineActions}},[e._t("actions")],2),e.canClose&&!e.closeButtonContained?t("NcButton",{staticClass:"header-close",attrs:{"aria-label":e.closeButtonAriaLabel,type:"tertiary"},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:e.iconSize}})]},proxy:!0}],null,!1,1841713362)}):e._e()],1)])]),t("transition",{attrs:{name:e.modalTransitionName,appear:""}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"modal-wrapper",class:[`modal-wrapper--${e.size}`,{"modal-wrapper--spread-navigation":e.spreadNavigation}],on:{mousedown:function(a){return a.target!==a.currentTarget?null:e.handleClickModalWrapper.apply(null,arguments)}}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasPrevious,expression:"hasPrevious"}],staticClass:"prev",attrs:{type:"tertiary-no-background","aria-label":e.prevButtonAriaLabel},on:{click:e.previous},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronLeft",{attrs:{size:40}})]},proxy:!0}])})],1),t("div",{staticClass:"modal-container",attrs:{id:"modal-description-"+e.randId}},[e.canClose&&e.closeButtonContained?t("NcButton",{staticClass:"modal-container__close",attrs:{type:"tertiary","aria-label":e.closeButtonAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):e._e(),t("div",{staticClass:"modal-container__content"},[e._t("default")],2)],1),t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"next",attrs:{type:"tertiary-no-background","aria-label":e.nextButtonAriaLabel},on:{click:e.next},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronRight",{attrs:{size:40}})]},proxy:!0}])})],1)],1)])],1)])},Ev=[],bv=ce(Tv,Dv,Ev,!1,null,"45e668d9",null,null);const Bu=bv.exports;Ou(Bu);const yv=eh({name:"NcDialogButton",components:{NcButton:ti,NcIconSvgWrapper:Df},props:{callback:{type:Function,required:!0},label:{type:String,required:!0},icon:{type:String,required:!1,default:void 0},type:{type:String,required:!1,default:"secondary",validator:e=>typeof e=="string"&&["primary","secondary","error","warning","success"].includes(e)}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{var i;(i=e.callback)==null||i.call(e),t("click",a)}}}});var Av=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcButton",{attrs:{"aria-label":e.label,type:e.type},on:{click:e.handleClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon",function(){return[e.icon!==void 0?t("NcIconSvgWrapper",{attrs:{svg:e.icon}}):e._e()]})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.label)+" ")])},Sv=[],kv=ce(yv,Av,Sv,!1,null,null,null,null);const vv=kv.exports,Rv=eh({name:"NcDialog",components:{NcDialogButton:vv,NcModal:Bu},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),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(t=>typeof t=="object")},canClose:{type:Boolean,default:!0},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open"],setup(e,{emit:t,slots:a}){const i=gt(),{width:n}=OD(i),r=st(()=>n.value<876),o=st(()=>a?.navigation!==void 0),s=gt(!0),l=()=>{d(),window.setTimeout(()=>u(),300)},d=()=>{s.value=!1,t("closing")},u=()=>{s.value=!0,t("update:open",!1)},c=st(()=>({canClose:e.canClose,container:e.container===void 0?"body":e.container,size:e.size,show:e.open&&s.value,outTransition:e.outTransition,class:"dialog__modal",closeOnClickOutside:!1,enableSlideshow:!1,enableSwipe:!1}));return{handleButtonClose:l,handleClosing:d,handleClosed:u,hasNavigation:o,isNavigationCollapsed:r,modalProps:c,wrapper:i}}});var Nv=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.open?t("NcModal",e._b({on:{close:e.handleClosed,"update:show":e.handleClosing}},"NcModal",e.modalProps,!1),[t("h2",{staticClass:"dialog__name",domProps:{textContent:e._s(e.name)}}),t("div",{staticClass:"dialog",class:e.dialogClasses},[t("div",{ref:"wrapper",class:["dialog__wrapper",{"dialog__wrapper--collapsed":e.isNavigationCollapsed}]},[e.hasNavigation?t("nav",{staticClass:"dialog__navigation",class:e.navigationClasses},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),t("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[t("p",[e._v(e._s(e.message))])]})],2)]),t("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(a,i){return t("NcDialogButton",e._b({key:i,on:{click:e.handleButtonClose}},"NcDialogButton",a,!1))})})],2)])]):e._e()},wv=[],Ov=ce(Rv,Nv,wv,!1,null,"cf1c45bf",null,null);const BM=Ov.exports;xu(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);const xv={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Cv=[],Mv=ce(xv,Bv,Cv,!1,null,null,null,null);const Yv=Mv.exports;var Lv={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(a){function i(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return a[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}var n={};return i.m=a,i.c=n,i.d=function(r,o,s){i.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(o,"a",o),o},i.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},i.p="",i(i.s=60)}([function(a,i){function n(o,s){var l=o[1]||"",d=o[3];if(!d)return l;if(s&&typeof btoa=="function"){var u=r(d);return[l].concat(d.sources.map(function(c){return"/*# sourceURL="+d.sourceRoot+c+" */"})).concat([u]).join(`
+ `)])]):e._e(),e._v(" "),a("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?a("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):a("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)])},N6=[],w6=void 0,O6=void 0,x6=void 0,B6=!1,za=jt({render:R6,staticRenderFns:N6},w6,v6,O6,B6,x6,!1,void 0,void 0,void 0),Kn={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:je({},za.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(Yo(this.value)){var e=Qn(this.value,2),t=e[0],a=e[1];this.startValue=t,this.endValue=a}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,t){var a=[this.startValue,this.endValue];this.$emit("select",a,e==="time"?"time-range":e,t)},handleSelectStart:function(e,t){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(t,0)},handleSelectEnd:function(e,t){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(t,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 i=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",i),this.$emit("change",i,t),a&&this.closePopup(),i},isValidValue:function(e){return this.validMultipleType?RA(e):this.range?Yo(e):ya(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var t=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},a=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(i){return!t(i)&&!a(i)})},handleMultipleDates:function(e,t){if(this.validMultipleType&&t){var a=t.filter(function(i){return i.getTime()!==e.getTime()});return a.length===t.length&&a.push(e),a}return e},handleSelectDate:function(e,t,a){e=this.handleMultipleDates(e,a),this.confirm?this.currentValue=e:this.emitValue(e,t,!this.validMultipleType&&(t===this.type||t==="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 t=e.currentTarget.getAttribute("data-index"),a=this.shortcuts[parseInt(t,10)];if(ta(a)&&typeof a.onClick=="function"){var i=a.onClick(this);i&&this.emitValue(i)}},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 t=this.userInput.trim();if(this.userInput=null,t===""){this.clear();return}var a;if(this.validMultipleType)a=t.split(this.innerRangeSeparator).map(function(n){return e.parseDate(n.trim())});else if(this.range){var i=t.split(this.innerRangeSeparator);i.length!==2&&(i=t.split(this.innerRangeSeparator.trim())),a=i.map(function(n){return e.parseDate(n.trim())})}else a=this.parseDate(t);this.isValidValueAndNotDisabled(a)?(this.emitValue(a),this.blur()):this.$emit("input-error",t)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var t=e.keyCode;t===9?this.closePopup():t===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,t,a){var i=this.$scopedSlots[e];return i?i(a)||t:this.$slots[e]||t},renderInput:function(){var e=this.$createElement,t=this.prefixClass,a=je({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),i=a.value,n=a.class,r=pA(a,["value","class"]),o={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},s=this.renderSlot("input",e("input",{domProps:{value:i},class:n,attrs:je({},r),on:je({},o),ref:"input"}),{props:a,events:o}),l=this.type==="time"?e(lS):e(tS);return e("div",{class:"".concat(t,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[s,this.showClearIcon?e("i",{class:"".concat(t,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(_S))]):e("i",{class:"".concat(t,"-icon-calendar")},[this.renderSlot("icon-calendar",l)])])},renderContent:function(){var e=this.$createElement,t=this.range?M6:C6,a=t[this.type]||t.default,i=je({},_n(this.$props,Object.keys(a.props)),{value:this.currentValue}),n=je({},_n(this.$listeners,a.emits||[]),{select:this.handleSelectDate}),r=e(a,h0([{},{props:i,on:n,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",r,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,t=this.$createElement,a=this.prefixClass;return t("div",{class:"".concat(a,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(i,n){return t("button",{key:n,attrs:{"data-index":n,type:"button"},class:"".concat(a,"-btn ").concat(a,"-btn-text ").concat(a,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[i.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,t=this.prefixClass;return e("div",{class:"".concat(t,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(t,"-btn ").concat(t,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,t=arguments[0],a=this.prefixClass,i=this.inline,n=this.disabled,r=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,o=t("div",{class:"".concat(a,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return t("div",{class:(e={},Ti(e,"".concat(a,"-datepicker"),!0),Ti(e,"".concat(a,"-datepicker-range"),this.range),Ti(e,"".concat(a,"-datepicker-inline"),i),Ti(e,"disabled",n),e)},[i?null:this.renderInput(),i?t("div",{class:"".concat(a,"-datepicker-main")},[r,o]):t($A,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[r,o])])}};hi.locale=Ag,hi.install=function(e){e.component(hi.name,hi)},typeof window<"u"&&window.Vue&&hi.install(window.Vue),_l(hi,{CalendarPanel:bi,CalendarRange:Jn,TimePanel:za,TimeRange:Kn,DatetimePanel:Ou,DatetimeRange:kg});const xu=e=>{e.mounted?Array.isArray(e.mounted)||(e.mounted=[e.mounted]):e.mounted=[],e.mounted.push(function(){this.$el.setAttribute("data-v-cfad8df","")})},Y6={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var L6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},Z6=[],I6=ce(Y6,L6,Z6,!1,null,null,null,null);const j6=I6.exports,P6={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var G6=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},U6=[],q6=ce(P6,G6,U6,!1,null,null,null,null);const H6=q6.exports,B1={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},z6={name:"NcDateTimePicker",components:{CalendarBlank:j6,DatePicker:hi,NcPopover:pu,NcTimezonePicker:H4,Web:H6},mixins:[so],inheritAttrs:!1,props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date"},format:{type:String,default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{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}},emits:["update:value","update:timezone-id"],data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{defaultLang(){return{formatLocale:{months:U_(),monthsShort:q_(),weekdays:H_(),weekdaysShort:z_(),weekdaysMin:V_(),firstDayOfWeek:$_()},monthFormat:"MMM"}},defaultPlaceholder(){return this.type==="time"?ie("Pick a time"):this.type==="month"?ie("Pick a month"):this.type==="year"?ie("Pick a year"):this.type==="week"?ie("Pick a week"):this.type==="date"?ie("Pick a date"):ie("Pick a date and a time")},formatTypeMap(){var e;return(e=B1[this.type])!=null?e:B1.date}},methods:{handleSelectYear(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setFullYear(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},handleSelectMonth(e){const t=this.$refs.datepicker.currentValue;if(t)try{const a=new Date(new Date(t).setMonth(e));this.$refs.datepicker.selectDate(a)}catch{console.error("Invalid value",t,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var V6=function(){var e=this,t=e._self._c;return t("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.format?e.format:e.formatTypeMap,formatter:e.formatter,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},"show-week-number":e.showWeekNumber,type:e.type,value:e.value},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,"update:value":function(a){return e.$emit("update:value",e.value)}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?t("NcPopover",{attrs:{shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(a){e.showTimezonePopover=a}},scopedSlots:e._u([{key:"trigger",fn:function(){return[t("button",{staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(a){return a.stopPropagation(),a.preventDefault(),(()=>{}).apply(null,arguments)}}},[t("Web",{attrs:{size:20}})],1)]},proxy:!0}],null,!1,3375037618)},[t("div",{staticClass:"timezone-popover-wrapper__label"},[t("strong",[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),t("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(a){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(a){e.tzVal=a},expression:"tzVal"}})],1):t("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(a,i){return{key:i,fn:function(n){return[e._t(i,null,null,n)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},$6=[],W6=ce(z6,V6,$6,!1,null,"26676d3b",null,null);const Q6=W6.exports;xu(Q6);const J6=["date","datetime-local","month","time","week"],K6={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:e=>J6.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"],computed:{formattedValue(){return this.formatValue(this.value)},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))return this.$emit("input",null);if(this.type==="time"){const i=e.target.value;if(this.value===""){const{yyyy:s,MM:l,dd:d}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${s}-${l}-${d}T${i}`))}const{yyyy:n,MM:r,dd:o}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${r}-${o}T${i}`))}else if(this.type==="month"){const i=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.value===""){const{yyyy:l,dd:d,hh:u,mm:c}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${l}-${i}-${d}T${u}:${c}`))}const{yyyy:n,dd:r,hh:o,mm:s}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${n}-${i}-${r}T${o}:${s}`))}const t=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,a=e.target.valueAsNumber+t;return this.$emit("input",new Date(a))}}}},methods:{getReadableDate(e){if(e instanceof Date){const t=e.getFullYear().toString().padStart(4,"0"),a=(e.getMonth()+1).toString().padStart(2,"0"),i=e.getDate().toString().padStart(2,"0"),n=e.getHours().toString().padStart(2,"0"),r=e.getMinutes().toString().padStart(2,"0");return{yyyy:t,MM:a,dd:i,hh:n,mm:r}}},formatValue(e){if(e instanceof Date){const{yyyy:t,MM:a,dd:i,hh:n,mm:r}=this.getReadableDate(e);if(this.type==="datetime-local")return`${t}-${a}-${i}T${n}:${r}`;if(this.type==="date")return`${t}-${a}-${i}`;if(this.type==="month")return`${t}-${a}`;if(this.type==="time")return`${n}:${r}`;if(this.type==="week"){const o=new Date(t,0,1),s=Math.floor((e-o)/(24*60*60*1e3)),l=Math.ceil(s/7);return`${t}-W${l}`}}else return""}}};var X6=function(){var e=this,t=e._self._c;return t("div",{staticClass:"native-datetime-picker"},[t("label",{class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(e._s(e.label))]),t("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))])},ek=[],tk=ce(K6,X6,ek,!1,null,"22982259",null,null);const ak=tk.exports;xu(ak);const ik={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var nk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("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?t("title",[e._v(e._s(e.title))]):e._e()])])])},rk=[],ok=ce(ik,nk,rk,!1,null,null,null,null);const sk=ok.exports,lk={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var uk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},dk=[],ck=ce(lk,uk,dk,!1,null,null,null,null);const hk=ck.exports,fk={name:"NcInputField",components:{NcButton:ti,AlertCircle:sk,Check:hk},inheritAttrs:!1,props:{value:{type:String,required:!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},inputClass:{type:[Object,String],default:""}},emits:["update:value","trailing-button-click"],computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+g0()},hasLeadingIcon(){return this.$slots.default},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){this.$emit("update:value",e.target.value)},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var gk=function(){var e=this,t=e._self._c;return t("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled}},[t("div",{staticClass:"input-field__main-wrapper"},[t("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__input--leading-icon":e.hasLeadingIcon,"input-field__input--label-outside":e.labelOutside,"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.value},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?t("label",{staticClass:"input-field__label",class:[{"input-field__label--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field__label--leading-icon":e.hasLeadingIcon}],attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),t("div",{directives:[{name:"show",rawName:"v-show",value:e.hasLeadingIcon,expression:"hasLeadingIcon"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("default")],2),e.showTrailingButton?t("NcButton",{staticClass:"input-field__trailing-button",attrs:{type:"tertiary-no-background","aria-label":e.trailingButtonLabel,disabled:e.disabled},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?t("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?t("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?t("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?t("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?t("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?t("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},_k=[],Fk=ce(fk,gk,_k,!1,null,"31a36009",null,null);const mn=Fk.exports;function Tl(e,t,a){var i,n,r,o,s;t==null&&(t=100);function l(){var u=Date.now()-o;u=0?i=setTimeout(l,t-u):(i=null,a||(s=e.apply(r,n),r=n=null))}var d=function(){r=this,n=arguments,o=Date.now();var u=a&&!i;return i||(i=setTimeout(l,t)),u&&(s=e.apply(r,n),r=n=null),s};return d.clear=function(){i&&(clearTimeout(i),i=null)},d.flush=function(){i&&(s=e.apply(r,n),r=n=null,clearTimeout(i),i=null)},d}Tl.debounce=Tl;var vg=Tl;const Bu=Xa(vg),mk={name:"EyeIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var pk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Tk=[],Dk=ce(mk,pk,Tk,!1,null,null,null,null);const Ek=Dk.exports,bk={name:"EyeOffIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var yk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon eye-off-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ak=[],Sk=ce(bk,yk,Ak,!1,null,null,null,null);const kk=Sk.exports,C1=Ls("core","capabilities",{}).password_policy||null,vk=new Set(Object.keys(mn.props)),Rk={name:"NcPasswordField",components:{NcInputField:mn,Eye:Ek,EyeOff:kk},inheritAttrs:!1,props:{" ":{},...mn.props,showTrailingButton:{type:Boolean,default:!0},trailingButtonLabel:void 0,checkPasswordStrength:{type:Boolean,default:!1},minlength:{type:Number,default:0},maxlength:{type:Number,default:null}},emits:["valid","invalid","update:value"],data(){return{isPasswordHidden:!0,internalHelpMessage:"",isValid:null}},computed:{computedError(){return this.error||this.isValid===!1},computedSuccess(){return this.success||this.isValid===!0},computedHelperText(){return this.helperText.length>0?this.helperText:this.internalHelpMessage},rules(){const{minlength:e}=this;return{minlength:e??C1?.minLength}},trailingButtonLabelPassword(){return this.isPasswordHidden?ie("Show password"):ie("Hide password")},propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>vk.has(e)))}}},watch:{value(e){if(this.checkPasswordStrength){if(C1===null)return;this.checkPassword(e)}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)},togglePasswordVisibility(){this.isPasswordHidden=!this.isPasswordHidden},checkPassword:Bu(async function(e){try{const{data:t}=await $a.post(Va("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=t.ocs.data.passed,t.ocs.data.passed){this.internalHelpMessage=ie("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=t.ocs.data.reason,this.$emit("invalid")}catch(t){Af.error("Password policy returned an error",t)}},500)}};var Nk=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",attrs:{type:e.isPasswordHidden?"password":"text","trailing-button-label":e.trailingButtonLabelPassword,"helper-text":e.computedHelperText,error:e.computedError,success:e.computedSuccess,minlength:e.rules.minlength},on:{"trailing-button-click":e.togglePasswordVisibility,input:e.handleInput},scopedSlots:e._u([{key:"trailing-button-icon",fn:function(){return[e.isPasswordHidden?t("Eye",{attrs:{size:18}}):t("EyeOff",{attrs:{size:18}})]},proxy:!0}])},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},wk=[],Ok=ce(Rk,Nk,wk,!1,null,null,null,null);const wM=Ok.exports,xk={name:"UndoVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon undo-variant-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M13.5,7A6.5,6.5 0 0,1 20,13.5A6.5,6.5 0 0,1 13.5,20H10V18H13.5C16,18 18,16 18,13.5C18,11 16,9 13.5,9H7.83L10.91,12.09L9.5,13.5L4,8L9.5,2.5L10.92,3.91L7.83,7H13.5M6,18H8V20H6V18Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Ck=[],Mk=ce(xk,Bk,Ck,!1,null,null,null,null);const Yk=Mk.exports,Lk=new Set(Object.keys(mn.props)),Zk={name:"NcTextField",components:{NcInputField:mn,Close:No,ArrowRight:df,Undo:Yk},inheritAttrs:!1,props:{" ":{},...mn.props,trailingButtonLabel:{type:String,default:ie("Clear text")},trailingButtonIcon:{type:String,default:"close",validator:e=>["close","arrowRight","undo"].includes(e)}},emits:["update:value"],computed:{propsAndAttrsToForward(){return{...this.$attrs,...Object.fromEntries(Object.entries(this.$props).filter(([e])=>Lk.has(e)))}}},methods:{focus(){this.$refs.inputField.focus()},select(){this.$refs.inputField.select()},handleInput(e){this.$emit("update:value",e.target.value)}}};var Ik=function(){var e=this,t=e._self._c;return t("NcInputField",e._g(e._b({ref:"inputField",on:{input:e.handleInput},scopedSlots:e._u([e.type!=="search"?{key:"trailing-button-icon",fn:function(){return[e.trailingButtonIcon==="close"?t("Close",{attrs:{size:20}}):e.trailingButtonIcon==="arrowRight"?t("ArrowRight",{attrs:{size:20}}):e.trailingButtonIcon==="undo"?t("Undo",{attrs:{size:20}}):e._e()]},proxy:!0}:null],null,!0)},"NcInputField",e.propsAndAttrsToForward,!1),e.$listeners),[e._t("default")],2)},jk=[],Pk=ce(Zk,Ik,jk,!1,null,null,null,null);const Gk=Pk.exports;ie("Submit");const Uk={name:"NcVNodes",props:{vnodes:{type:[Array,Object],default:null}},render(e){var t,a,i;return this.vnodes||((t=this.$slots)==null?void 0:t.default)||((i=(a=this.$scopedSlots)==null?void 0:a.default)==null?void 0:i.call(a))}},qk=null,Hk=null;var zk=ce(Uk,qk,Hk,!1,null,null,null,null);const OM=zk.exports;const Vk={props:{excludeClickOutsideSelectors:{type:[String,Array],default:()=>[]}},computed:{clickOutsideOptions(){return{ignore:Array.isArray(this.excludeClickOutsideSelectors)?this.excludeClickOutsideSelectors:[this.excludeClickOutsideSelectors]}}}},$k={name:"CogIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Wk=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon cog-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Qk=[],Jk=ce($k,Wk,Qk,!1,null,null,null,null);const Kk=Jk.exports,Xk={directives:{ClickOutside:dg},components:{Cog:Kk},mixins:[Vk],props:{name:{type:String,required:!1,default:ie("Settings")}},data(){return{open:!1}},computed:{clickOutsideConfig(){return[this.closeMenu,this.clickOutsideOptions]},ariaLabel(){return ie("Open settings menu")}},methods:{toggleMenu(){this.open=!this.open},closeMenu(){this.open=!1}}};var ev=function(){var e=this,t=e._self._c;return t("div",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.clickOutsideConfig,expression:"clickOutsideConfig"}],class:{open:e.open},attrs:{id:"app-settings"}},[t("div",{attrs:{id:"app-settings__header"}},[t("button",{staticClass:"settings-button",attrs:{type:"button","aria-expanded":e.open?"true":"false","aria-controls":"app-settings__content","aria-label":e.ariaLabel},on:{click:e.toggleMenu}},[t("Cog",{staticClass:"settings-button__icon",attrs:{size:20}}),t("span",{staticClass:"settings-button__label"},[e._v(e._s(e.name))])],1)]),t("transition",{attrs:{name:"slide-up"}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],attrs:{id:"app-settings__content"}},[e._t("default")],2)])],1)},tv=[],av=ce(Xk,ev,tv,!1,null,"db4cc195",null,null);const xM=av.exports;function iv(e,t){let a,i,n=t,r;this.start=function(){r=!0,i=new Date,a=setTimeout(e,n)},this.pause=function(){r=!1,clearTimeout(a),n-=new Date-i},this.clear=function(){r=!1,clearTimeout(a),n=0},this.getTimeLeft=function(){return r&&(this.pause(),this.start()),n},this.getStateRunning=function(){return r},this.start()}const nv={name:"ChevronLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var rv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon chevron-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},ov=[],sv=ce(nv,rv,ov,!1,null,null,null,null);const lv=sv.exports,uv={name:"PauseIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var dv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon pause-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M14,19H18V5H14M6,19H10V5H6V19Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},cv=[],hv=ce(uv,dv,cv,!1,null,null,null,null);const fv=hv.exports,gv={name:"PlayIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var _v=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon play-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M8,5.14V19.14L19,12.14L8,5.14Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Fv=[],mv=ce(gv,_v,Fv,!1,null,null,null,null);const pv=mv.exports,Tv={name:"NcModal",components:{NcActions:Du,ChevronLeft:lv,ChevronRight:bf,Close:No,Pause:fv,Play:pv,NcButton:ti},directives:{tooltip:uf},mixins:[so],props:{name:{type:String,default:""},hasPrevious:{type:Boolean,default:!1},hasNext:{type:Boolean,default:!1},outTransition:{type:Boolean,default:!1},enableSlideshow:{type:Boolean,default:!1},slideshowDelay:{type:Number,default:5e3},slideshowPaused:{type:Boolean,default:!1},enableSwipe:{type:Boolean,default:!0},spreadNavigation:{type:Boolean,default:!1},size:{type:String,default:"normal",validator:e=>["small","normal","large","full"].includes(e)},canClose:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},dark:{type:Boolean,default:!1},container:{type:[String,null],default:"body"},closeButtonContained:{type:Boolean,default:!0},additionalTrapElements:{type:Array,default:()=>[]},inlineActions:{type:Number,default:0},show:{type:Boolean,default:void 0}},emits:["previous","next","close","update:show"],data(){return{mc:null,playing:!1,slideshowTimeout:null,iconSize:24,focusTrap:null,randId:g0(),internalShow:!0}},computed:{showModal(){return this.show===void 0?this.internalShow:this.show},modalTransitionName(){return`modal-${this.outTransition?"out":"in"}`},playPauseName(){return this.playing?ie("Pause slideshow"):ie("Start slideshow")},cssVariables(){return{"--slideshow-duration":this.slideshowDelay+"ms","--icon-size":this.iconSize+"px"}},closeButtonAriaLabel(){return ie("Close modal")},prevButtonAriaLabel(){return ie("Previous")},nextButtonAriaLabel(){return ie("Next")}},watch:{slideshowPaused(e){this.slideshowTimeout&&(e?this.slideshowTimeout.pause():this.slideshowTimeout.start())},additionalTrapElements(e){if(this.focusTrap){const t=this.$refs.mask;this.focusTrap.updateContainerElements([t,...e])}}},beforeMount(){window.addEventListener("keydown",this.handleKeydown)},beforeDestroy(){window.removeEventListener("keydown",this.handleKeydown),this.mc.stop()},mounted(){this.useFocusTrap(),this.mc=mf(this.$refs.mask,{onSwipeEnd:this.handleSwipe}),this.container&&(this.container==="body"?document.body.insertBefore(this.$el,document.body.lastChild):document.querySelector(this.container).appendChild(this.$el))},destroyed(){this.clearFocusTrap(),this.$el.remove()},methods:{previous(e){this.hasPrevious&&(e&&this.resetSlideshow(),this.$emit("previous",e))},next(e){this.hasNext&&(e&&this.resetSlideshow(),this.$emit("next",e))},close(e){this.canClose&&(this.internalShow=!1,this.$emit("update:show",!1),setTimeout(()=>{this.$emit("close",e)},300))},handleClickModalWrapper(e){this.closeOnClickOutside&&this.close(e)},handleKeydown(e){if(e.key==="Escape"){const a=rl();return a.length>0&&a[a.length-1]!==this.focusTrap?void 0:this.close(e)}const t={ArrowLeft:this.previous,ArrowRight:this.next};if(t[e.key])return document.activeElement&&!this.$el.contains(document.activeElement)?void 0:t[e.key](e)},handleSwipe(e,t){this.enableSwipe&&(t==="left"?this.next(e):t==="right"&&this.previous(e))},togglePlayPause(){this.playing=!this.playing,this.playing?this.handleSlideshow():this.clearSlideshowTimeout()},resetSlideshow(){this.playing=!this.playing,this.clearSlideshowTimeout(),this.$nextTick(function(){this.togglePlayPause()})},handleSlideshow(){this.playing=!0,this.hasNext?this.slideshowTimeout=new iv(()=>{this.next(),this.handleSlideshow()},this.slideshowDelay):(this.playing=!1,this.clearSlideshowTimeout())},clearSlideshowTimeout(){this.slideshowTimeout&&this.slideshowTimeout.clear()},async useFocusTrap(){if(!this.showModal||this.focusTrap)return;const e=this.$refs.mask;await this.$nextTick();const t={allowOutsideClick:!0,fallbackFocus:e,trapStack:rl(),escapeDeactivates:!1};this.focusTrap=Jf([e,...this.additionalTrapElements],t),this.focusTrap.activate()},clearFocusTrap(){var e;this.focusTrap&&((e=this.focusTrap)==null||e.deactivate(),this.focusTrap=null)}}};var Dv=function(){var e=this,t=e._self._c;return t("transition",{attrs:{name:"fade",appear:""},on:{"after-enter":e.useFocusTrap,"before-leave":e.clearFocusTrap}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],ref:"mask",staticClass:"modal-mask",class:{"modal-mask--dark":e.dark},style:e.cssVariables,attrs:{role:"dialog","aria-modal":"true","aria-labelledby":"modal-name-"+e.randId,"aria-describedby":"modal-description-"+e.randId,tabindex:"-1"}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("div",{staticClass:"modal-header"},[e.name.trim()!==""?t("h2",{staticClass:"modal-name",attrs:{id:"modal-name-"+e.randId}},[e._v(" "+e._s(e.name)+" ")]):e._e(),t("div",{staticClass:"icons-menu"},[e.hasNext&&e.enableSlideshow?t("button",{directives:[{name:"tooltip",rawName:"v-tooltip.auto",value:e.playPauseName,expression:"playPauseName",modifiers:{auto:!0}}],staticClass:"play-pause-icons",class:{"play-pause-icons--paused":e.slideshowPaused},attrs:{type:"button"},on:{click:e.togglePlayPause}},[e.playing?t("Pause",{staticClass:"play-pause-icons__pause",attrs:{size:e.iconSize}}):t("Play",{staticClass:"play-pause-icons__play",attrs:{size:e.iconSize}}),t("span",{staticClass:"hidden-visually"},[e._v(" "+e._s(e.playPauseName)+" ")]),e.playing?t("svg",{staticClass:"progress-ring",attrs:{height:"50",width:"50"}},[t("circle",{staticClass:"progress-ring__circle",attrs:{stroke:"white","stroke-width":"2",fill:"transparent",r:"15",cx:"25",cy:"25"}})]):e._e()],1):e._e(),t("NcActions",{staticClass:"header-actions",attrs:{inline:e.inlineActions}},[e._t("actions")],2),e.canClose&&!e.closeButtonContained?t("NcButton",{staticClass:"header-close",attrs:{"aria-label":e.closeButtonAriaLabel,type:"tertiary"},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:e.iconSize}})]},proxy:!0}],null,!1,1841713362)}):e._e()],1)])]),t("transition",{attrs:{name:e.modalTransitionName,appear:""}},[t("div",{directives:[{name:"show",rawName:"v-show",value:e.showModal,expression:"showModal"}],staticClass:"modal-wrapper",class:[`modal-wrapper--${e.size}`,{"modal-wrapper--spread-navigation":e.spreadNavigation}],on:{mousedown:function(a){return a.target!==a.currentTarget?null:e.handleClickModalWrapper.apply(null,arguments)}}},[t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasPrevious,expression:"hasPrevious"}],staticClass:"prev",attrs:{type:"tertiary-no-background","aria-label":e.prevButtonAriaLabel},on:{click:e.previous},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronLeft",{attrs:{size:40}})]},proxy:!0}])})],1),t("div",{staticClass:"modal-container",attrs:{id:"modal-description-"+e.randId}},[e.canClose&&e.closeButtonContained?t("NcButton",{staticClass:"modal-container__close",attrs:{type:"tertiary","aria-label":e.closeButtonAriaLabel},on:{click:e.close},scopedSlots:e._u([{key:"icon",fn:function(){return[t("Close",{attrs:{size:20}})]},proxy:!0}],null,!1,2121748766)}):e._e(),t("div",{staticClass:"modal-container__content"},[e._t("default")],2)],1),t("transition",{attrs:{name:"fade-visibility",appear:""}},[t("NcButton",{directives:[{name:"show",rawName:"v-show",value:e.hasNext,expression:"hasNext"}],staticClass:"next",attrs:{type:"tertiary-no-background","aria-label":e.nextButtonAriaLabel},on:{click:e.next},scopedSlots:e._u([{key:"icon",fn:function(){return[t("ChevronRight",{attrs:{size:40}})]},proxy:!0}])})],1)],1)])],1)])},Ev=[],bv=ce(Tv,Dv,Ev,!1,null,"45e668d9",null,null);const Cu=bv.exports;xu(Cu);const yv=Yl({name:"NcDialogButton",components:{NcButton:ti,NcIconSvgWrapper:Ef},props:{callback:{type:Function,required:!0},label:{type:String,required:!0},icon:{type:String,required:!1,default:void 0},type:{type:String,required:!1,default:"secondary",validator:e=>typeof e=="string"&&["primary","secondary","error","warning","success"].includes(e)}},emits:["click"],setup(e,{emit:t}){return{handleClick:a=>{var i;(i=e.callback)==null||i.call(e),t("click",a)}}}});var Av=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("NcButton",{attrs:{"aria-label":e.label,type:e.type},on:{click:e.handleClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("icon",function(){return[e.icon!==void 0?t("NcIconSvgWrapper",{attrs:{svg:e.icon}}):e._e()]})]},proxy:!0}],null,!0)},[e._v(" "+e._s(e.label)+" ")])},Sv=[],kv=ce(yv,Av,Sv,!1,null,null,null,null);const vv=kv.exports,Rv=Yl({name:"NcDialog",components:{NcDialogButton:vv,NcModal:Cu},props:{name:{type:String,required:!0},message:{type:String,default:""},additionalTrapElements:{type:Array,validator:e=>Array.isArray(e)&&e.every(t=>typeof t=="string"),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(t=>typeof t=="object")},canClose:{type:Boolean,default:!0},outTransition:{type:Boolean,default:!1},navigationClasses:{type:[String,Array,Object],required:!1,default:""},contentClasses:{type:[String,Array,Object],required:!1,default:""},dialogClasses:{type:[String,Array,Object],required:!1,default:""}},emits:["closing","update:open"],setup(e,{emit:t,slots:a}){const i=gt(),{width:n}=OD(i),r=st(()=>n.value<876),o=st(()=>a?.navigation!==void 0),s=gt(!0),l=()=>{d(),window.setTimeout(()=>u(),300)},d=()=>{s.value=!1,t("closing")},u=()=>{s.value=!0,t("update:open",!1)},c=st(()=>({canClose:e.canClose,container:e.container===void 0?"body":e.container,size:e.size,show:e.open&&s.value,outTransition:e.outTransition,class:"dialog__modal",closeOnClickOutside:!1,enableSlideshow:!1,enableSwipe:!1}));return{handleButtonClose:l,handleClosing:d,handleClosed:u,hasNavigation:o,isNavigationCollapsed:r,modalProps:c,wrapper:i}}});var Nv=function(){var e=this,t=e._self._c;return e._self._setupProxy,e.open?t("NcModal",e._b({on:{close:e.handleClosed,"update:show":e.handleClosing}},"NcModal",e.modalProps,!1),[t("h2",{staticClass:"dialog__name",domProps:{textContent:e._s(e.name)}}),t("div",{staticClass:"dialog",class:e.dialogClasses},[t("div",{ref:"wrapper",class:["dialog__wrapper",{"dialog__wrapper--collapsed":e.isNavigationCollapsed}]},[e.hasNavigation?t("nav",{staticClass:"dialog__navigation",class:e.navigationClasses},[e._t("navigation",null,{isCollapsed:e.isNavigationCollapsed})],2):e._e(),t("div",{staticClass:"dialog__content",class:e.contentClasses},[e._t("default",function(){return[t("p",[e._v(e._s(e.message))])]})],2)]),t("div",{staticClass:"dialog__actions"},[e._t("actions",function(){return e._l(e.buttons,function(a,i){return t("NcDialogButton",e._b({key:i,on:{click:e.handleButtonClose}},"NcDialogButton",a,!1))})})],2)])]):e._e()},wv=[],Ov=ce(Rv,Nv,wv,!1,null,"cf1c45bf",null,null);const BM=Ov.exports;Bu(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);const xv={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Bv=function(){var e=this,t=e._self._c;return t("span",e._b({staticClass:"material-design-icon arrow-left-icon",attrs:{"aria-hidden":!e.title,"aria-label":e.title,role:"img"},on:{click:function(a){return e.$emit("click",a)}}},"span",e.$attrs,!1),[t("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[t("path",{attrs:{d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"}},[e.title?t("title",[e._v(e._s(e.title))]):e._e()])])])},Cv=[],Mv=ce(xv,Bv,Cv,!1,null,null,null,null);const Yv=Mv.exports;var Lv={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(a){function i(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return a[r].call(o.exports,o,o.exports,i),o.l=!0,o.exports}var n={};return i.m=a,i.c=n,i.d=function(r,o,s){i.o(r,o)||Object.defineProperty(r,o,{configurable:!1,enumerable:!0,get:s})},i.n=function(r){var o=r&&r.__esModule?function(){return r.default}:function(){return r};return i.d(o,"a",o),o},i.o=function(r,o){return Object.prototype.hasOwnProperty.call(r,o)},i.p="",i(i.s=60)}([function(a,i){function n(o,s){var l=o[1]||"",d=o[3];if(!d)return l;if(s&&typeof btoa=="function"){var u=r(d);return[l].concat(d.sources.map(function(c){return"/*# sourceURL="+d.sourceRoot+c+" */"})).concat([u]).join(`
`)}return[l].join(`
`)}function r(o){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"}a.exports=function(o){var s=[];return s.toString=function(){return this.map(function(l){var d=n(l,o);return l[2]?"@media "+l[2]+"{"+d+"}":d}).join("")},s.i=function(l,d){typeof l=="string"&&(l=[[null,l,""]]);for(var u={},c=0;cM.parts.length&&(P.parts.length=M.parts.length)}else{for(var D=[],g=0;g({})},forceMenu:{type:Boolean,default:!0}},data(){return{hovered:!1}},computed:{item(){return{id:this.id,targetUrl:this.targetUrl,avatarUrl:this.avatarUrl,avatarUsername:this.avatarUsername,overlayIconUrl:this.overlayIconUrl,mainText:this.mainText,subText:this.subText}},gotMenu(){return Object.keys(this.itemMenu).length!==0||!!this.$slots.actions},gotOverlayIcon(){return this.overlayIconUrl&&this.overlayIconUrl!==""}},methods:{onLinkClick(e){e.target.closest(".action-item")&&e.preventDefault()}}};var Iv=function(){var e=this,t=e._self._c;return t("div",{on:{mouseover:function(a){e.hovered=!0},mouseleave:function(a){e.hovered=!1}}},[t(e.targetUrl?"a":"div",{tag:"component",class:{"item-list__entry":!0,"item-list__entry--has-actions-menu":e.gotMenu},attrs:{href:e.targetUrl||void 0,target:e.targetUrl?"_blank":void 0},on:{click:e.onLinkClick}},[e._t("avatar",function(){return[t("NcAvatar",{staticClass:"item-avatar",attrs:{size:44,url:e.avatarUrl,user:e.avatarUsername,"is-no-user":e.avatarIsNoUser,"show-user-status":!e.gotOverlayIcon}})]},{avatarUrl:e.avatarUrl,avatarUsername:e.avatarUsername}),e.overlayIconUrl?t("img",{staticClass:"item-icon",attrs:{alt:"",src:e.overlayIconUrl}}):e._e(),t("div",{staticClass:"item__details"},[t("h3",{attrs:{title:e.mainText}},[e._v(" "+e._s(e.mainText)+" ")]),t("span",{staticClass:"message",attrs:{title:e.subText}},[e._v(" "+e._s(e.subText)+" ")])]),e.gotMenu?t("NcActions",{attrs:{"force-menu":e.forceMenu}},[e._t("actions",function(){return e._l(e.itemMenu,function(a,i){return t("NcActionButton",{key:i,attrs:{icon:a.icon,"close-after-click":!0},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.$emit(i,e.item)}}},[e._v(" "+e._s(a.text)+" ")])})})],2):e._e()],2)],1)},jv=[],Pv=ce(Zv,Iv,jv,!1,null,"00e861ef",null,null);const CM=Pv.exports;ie("More items …"),ie("a few seconds ago"),ie("seconds ago"),ie("sec. ago");var vg={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(){var a={661:function(){typeof window<"u"&&function(){for(var o=0,s=["ms","moz","webkit","o"],l=0;lF.length)&&(b=F.length);for(var N=0,B=new Array(b);N=ee.length?{done:!0}:{done:!1,value:ee[fe++]}},e:function($e){throw $e},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+`,""])},function(a,i,n){var r=function(){var l=this,d=l.$createElement,u=l._self._c||d;return u("div",{staticClass:"vc-twitter",class:{"vc-twitter-hide-triangle ":l.triangle==="hide","vc-twitter-top-left-triangle ":l.triangle==="top-left","vc-twitter-top-right-triangle ":l.triangle==="top-right"},style:{width:typeof l.width=="number"?l.width+"px":l.width}},[u("div",{staticClass:"vc-twitter-triangle-shadow"}),l._v(" "),u("div",{staticClass:"vc-twitter-triangle"}),l._v(" "),u("div",{staticClass:"vc-twitter-body"},[l._l(l.defaultColors,function(c,f){return u("span",{key:f,staticClass:"vc-twitter-swatch",style:{background:c,boxShadow:"0 0 4px "+(l.equal(c)?c:"transparent")},on:{click:function(h){return l.handlerClick(c)}}})}),l._v(" "),u("div",{staticClass:"vc-twitter-hash"},[l._v("#")]),l._v(" "),u("editable-input",{attrs:{label:"#",value:l.hex},on:{change:l.inputChange}}),l._v(" "),u("div",{staticClass:"vc-twitter-clear"})],2)])},o=[];r._withStripped=!0;var s={render:r,staticRenderFns:o};i.a=s}])})})(Lv);const Zv={name:"NcDashboardWidgetItem",components:{NcAvatar:xo,NcActions:Du,NcActionButton:NE},props:{id:{type:[String,Number],default:void 0},targetUrl:{type:String,default:void 0},avatarUrl:{type:String,default:void 0},avatarUsername:{type:String,default:void 0},avatarIsNoUser:{type:Boolean,default:!1},overlayIconUrl:{type:String,default:void 0},mainText:{type:String,required:!0},subText:{type:String,default:""},itemMenu:{type:Object,default:()=>({})},forceMenu:{type:Boolean,default:!0}},data(){return{hovered:!1}},computed:{item(){return{id:this.id,targetUrl:this.targetUrl,avatarUrl:this.avatarUrl,avatarUsername:this.avatarUsername,overlayIconUrl:this.overlayIconUrl,mainText:this.mainText,subText:this.subText}},gotMenu(){return Object.keys(this.itemMenu).length!==0||!!this.$slots.actions},gotOverlayIcon(){return this.overlayIconUrl&&this.overlayIconUrl!==""}},methods:{onLinkClick(e){e.target.closest(".action-item")&&e.preventDefault()}}};var Iv=function(){var e=this,t=e._self._c;return t("div",{on:{mouseover:function(a){e.hovered=!0},mouseleave:function(a){e.hovered=!1}}},[t(e.targetUrl?"a":"div",{tag:"component",class:{"item-list__entry":!0,"item-list__entry--has-actions-menu":e.gotMenu},attrs:{href:e.targetUrl||void 0,target:e.targetUrl?"_blank":void 0},on:{click:e.onLinkClick}},[e._t("avatar",function(){return[t("NcAvatar",{staticClass:"item-avatar",attrs:{size:44,url:e.avatarUrl,user:e.avatarUsername,"is-no-user":e.avatarIsNoUser,"show-user-status":!e.gotOverlayIcon}})]},{avatarUrl:e.avatarUrl,avatarUsername:e.avatarUsername}),e.overlayIconUrl?t("img",{staticClass:"item-icon",attrs:{alt:"",src:e.overlayIconUrl}}):e._e(),t("div",{staticClass:"item__details"},[t("h3",{attrs:{title:e.mainText}},[e._v(" "+e._s(e.mainText)+" ")]),t("span",{staticClass:"message",attrs:{title:e.subText}},[e._v(" "+e._s(e.subText)+" ")])]),e.gotMenu?t("NcActions",{attrs:{"force-menu":e.forceMenu}},[e._t("actions",function(){return e._l(e.itemMenu,function(a,i){return t("NcActionButton",{key:i,attrs:{icon:a.icon,"close-after-click":!0},on:{click:function(n){return n.preventDefault(),n.stopPropagation(),e.$emit(i,e.item)}}},[e._v(" "+e._s(a.text)+" ")])})})],2):e._e()],2)],1)},jv=[],Pv=ce(Zv,Iv,jv,!1,null,"00e861ef",null,null);const CM=Pv.exports;ie("More items …"),ie("a few seconds ago"),ie("seconds ago"),ie("sec. ago");var Rg={exports:{}};(function(e,t){(function(a,i){e.exports=i()})(typeof self<"u"?self:Ia,function(){return function(){var a={661:function(){typeof window<"u"&&function(){for(var o=0,s=["ms","moz","webkit","o"],l=0;lF.length)&&(b=F.length);for(var N=0,B=new Array(b);N=ee.length?{done:!0}:{done:!1,value:ee[fe++]}},e:function($e){throw $e},f:de}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ve,da=!0,rt=!1;return{s:function(){ue=ue.call(ee)},n:function(){var $e=ue.next();return da=$e.done,$e},e:function($e){rt=!0,Ve=$e},f:function(){try{da||ue.return==null||ue.return()}finally{if(rt)throw Ve}}}}(Object.getOwnPropertyNames(F));try{for(N.s();!(b=N.n()).done;){var B=b.value,H=F[B];F[B]=H&&h(H)==="object"?T(H):H}}catch(ee){N.e(ee)}finally{N.f()}return Object.freeze(F)}var R,S,C=function(F){if(!F.compressed)return F;for(var b in F.compressed=!1,F.emojis){var N=F.emojis[b];for(var B in m)N[B]=N[m[B]],delete N[m[B]];N.short_names||(N.short_names=[]),N.short_names.unshift(b),N.sheet_x=N.sheet[0],N.sheet_y=N.sheet[1],delete N.sheet,N.text||(N.text=""),N.added_in||(N.added_in=6),N.added_in=N.added_in.toFixed(1),N.search=p(N)}return T(F)},j=["+1","grinning","kissing_heart","heart_eyes","laughing","stuck_out_tongue_winking_eye","sweat_smile","joy","scream","disappointed","unamused","weary","sob","sunglasses","heart","hankey"],E={};function I(){S=!0,R=f.get("frequently")}var M={add:function(F){S||I();var b=F.id;R||(R=E),R[b]||(R[b]=0),R[b]+=1,f.set("last",b),f.set("frequently",R)},get:function(F){if(S||I(),!R){E={};for(var b=[],N=Math.min(F,j.length),B=0;B',custom:'',flags:'',foods:'',nature:'',objects:'',smileys:'',people:'',places:'',recent:'',symbols:''};function g(F,b,N,B,H,ee,te,ue){var fe,de=typeof F=="function"?F.options:F;if(b&&(de.render=b,de.staticRenderFns=N,de._compiled=!0),B&&(de.functional=!0),ee&&(de._scopeId="data-v-"+ee),te?(fe=function(rt){(rt=rt||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||typeof __VUE_SSR_CONTEXT__>"u"||(rt=__VUE_SSR_CONTEXT__),H&&H.call(this,rt),rt&&rt._registeredComponents&&rt._registeredComponents.add(te)},de._ssrRegister=fe):H&&(fe=ue?function(){H.call(this,(de.functional?this.parent:this).$root.$options.shadowRoot)}:H),fe)if(de.functional){de._injectStyles=fe;var Ve=de.render;de.render=function(rt,$e){return fe.call($e),Ve(rt,$e)}}else{var da=de.beforeCreate;de.beforeCreate=da?[].concat(da,fe):[fe]}return{exports:F,options:de}}var D=g({props:{i18n:{type:Object,required:!0},color:{type:String},categories:{type:Array,required:!0},activeCategory:{type:Object,default:function(){return{}}}},created:function(){this.svgs=P}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-anchors",attrs:{role:"tablist"}},F._l(F.categories,function(B){return N("button",{key:B.id,class:{"emoji-mart-anchor":!0,"emoji-mart-anchor-selected":B.id==F.activeCategory.id},style:{color:B.id==F.activeCategory.id?F.color:""},attrs:{role:"tab",type:"button","aria-label":B.name,"aria-selected":B.id==F.activeCategory.id,"data-title":F.i18n.categories[B.id]},on:{click:function(H){return F.$emit("click",B)}}},[N("div",{attrs:{"aria-hidden":"true"},domProps:{innerHTML:F._s(F.svgs[B.id])}}),F._v(" "),N("span",{staticClass:"emoji-mart-anchor-bar",style:{backgroundColor:F.color},attrs:{"aria-hidden":"true"}})])}),0)},[],!1,null,null,null),k=D.exports;function x(F,b){if(!(F instanceof b))throw new TypeError("Cannot call a class as a function")}function L(F,b){for(var N=0;N1114111||Math.floor(te)!=te)throw RangeError("Invalid code point: "+te);te<=65535?N.push(te):(F=55296+((te-=65536)>>10),b=te%1024+56320,N.push(F,b)),(B+1===H||N.length>16384)&&(ee+=String.fromCharCode.apply(null,N),N.length=0)}return ee};function V(F){var b=F.split("-").map(function(N){return"0x".concat(N)});return $.apply(null,b)}function y(F){return F.reduce(function(b,N){return b.indexOf(N)===-1&&b.push(N),b},[])}function U(F,b){var N=y(F),B=y(b);return N.filter(function(H){return B.indexOf(H)>=0})}function A(F,b){var N={};for(var B in F){var H=F[B],ee=H;b.hasOwnProperty(B)&&(ee=b[B]),h(ee)==="object"&&(ee=A(H,ee)),N[B]=ee}return N}function z(F,b){var N=typeof Symbol<"u"&&F[Symbol.iterator]||F["@@iterator"];if(!N){if(Array.isArray(F)||(N=function(fe,de){if(fe){if(typeof fe=="string")return re(fe,de);var Ve=Object.prototype.toString.call(fe).slice(8,-1);return Ve==="Object"&&fe.constructor&&(Ve=fe.constructor.name),Ve==="Map"||Ve==="Set"?Array.from(fe):Ve==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Ve)?re(fe,de):void 0}}(F))||b&&F&&typeof F.length=="number"){N&&(F=N);var B=0,H=function(){};return{s:H,n:function(){return B>=F.length?{done:!0}:{done:!1,value:F[B++]}},e:function(fe){throw fe},f:H}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
-In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,te=!0,ue=!1;return{s:function(){N=N.call(F)},n:function(){var fe=N.next();return te=fe.done,fe},e:function(fe){ue=!0,ee=fe},f:function(){try{te||N.return==null||N.return()}finally{if(ue)throw ee}}}}function re(F,b){(b==null||b>F.length)&&(b=F.length);for(var N=0,B=new Array(b);N1&&arguments[1]!==void 0?arguments[1]:{},B=N.emojisToShowFilter,H=N.include,ee=N.exclude,te=N.custom,ue=N.recent,fe=N.recentLength,de=fe===void 0?20:fe;x(this,F),this._data=C(b),this._emojisFilter=B||null,this._include=H||null,this._exclude=ee||null,this._custom=te||[],this._recent=ue||M.get(de),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}return Z(F,[{key:"buildIndex",value:function(){var b=this,N=this._data.categories;if(this._include&&(N=(N=N.filter(function(te){return b._include.includes(te.id)})).sort(function(te,ue){var fe=b._include.indexOf(te.id),de=b._include.indexOf(ue.id);return fede?1:0})),N.forEach(function(te){if(b.isCategoryNeeded(te.id)){var ue={id:te.id,name:te.name,emojis:[]};te.emojis.forEach(function(fe){var de=b.addEmoji(fe);de&&ue.emojis.push(de)}),ue.emojis.length&&b._categories.push(ue)}}),this.isCategoryNeeded("custom")){if(this._custom.length>0){var B,H=z(this._custom);try{for(H.s();!(B=H.n()).done;){var ee=B.value;this.addCustomEmoji(ee)}}catch(te){H.e(te)}finally{H.f()}}this._customCategory.emojis.length&&this._categories.push(this._customCategory)}this.isCategoryNeeded("recent")&&(this._recent.length&&this._recent.map(function(te){var ue,fe=z(b._customCategory.emojis);try{for(fe.s();!(ue=fe.n()).done;){var de=ue.value;if(de.id===te)return void b._recentCategory.emojis.push(de)}}catch(Ve){fe.e(Ve)}finally{fe.f()}b.hasEmoji(te)&&b._recentCategory.emojis.push(b.emoji(te))}),this._recentCategory.emojis.length&&this._categories.unshift(this._recentCategory))}},{key:"findEmoji",value:function(b,N){var B=b.match(O);if(B&&(b=B[1],B[2]&&(N=parseInt(B[2],10))),this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),this._emojis.hasOwnProperty(b)){var H=this._emojis[b];return N?H.getSkin(N):H}return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"categories",value:function(){return this._categories}},{key:"emoji",value:function(b){this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]);var N=this._emojis[b];if(!N)throw new Error("Can not find emoji by id: "+b);return N}},{key:"firstEmoji",value:function(){var b=this._emojis[Object.keys(this._emojis)[0]];if(!b)throw new Error("Can not get first emoji");return b}},{key:"hasEmoji",value:function(b){return this._data.aliases.hasOwnProperty(b)&&(b=this._data.aliases[b]),!!this._emojis[b]}},{key:"nativeEmoji",value:function(b){return this._nativeEmojis.hasOwnProperty(b)?this._nativeEmojis[b]:null}},{key:"search",value:function(b,N){var B=this;if(N||(N=75),!b.length)return null;if(b=="-"||b=="-1")return[this.emoji("-1")];var H,ee=b.toLowerCase().split(/[\s|,|\-|_]+/);ee.length>2&&(ee=[ee[0],ee[1]]),H=ee.map(function(ue){for(var fe=B._emojis,de=B._searchIndex,Ve=0,da=0;da1?U.apply(null,H):H.length?H[0]:[])&&te.length>N&&(te=te.slice(0,N)),te}},{key:"addCustomEmoji",value:function(b){var N=Object.assign({},b,{id:b.short_names[0],custom:!0});N.search||(N.search=p(N));var B=new Fe(N);return this._emojis[B.id]=B,this._customCategory.emojis.push(B),B}},{key:"addEmoji",value:function(b){var N=this,B=this._data.emojis[b];if(!this.isEmojiNeeded(B))return!1;var H=new Fe(B);if(this._emojis[b]=H,H.native&&(this._nativeEmojis[H.native]=H),H._skins)for(var ee in H._skins){var te=H._skins[ee];te.native&&(this._nativeEmojis[te.native]=te)}return H.emoticons&&H.emoticons.forEach(function(ue){N._emoticons[ue]||(N._emoticons[ue]=b)}),H}},{key:"isCategoryNeeded",value:function(b){var N=!this._include||!this._include.length||this._include.indexOf(b)>-1,B=!(!this._exclude||!this._exclude.length)&&this._exclude.indexOf(b)>-1;return!(!N||B)}},{key:"isEmojiNeeded",value:function(b){return!this._emojisFilter||this._emojisFilter(b)}}]),F}(),Fe=function(){function F(b){if(x(this,F),this._data=Object.assign({},b),this._skins=null,this._data.skin_variations)for(var N in this._skins=[],ge){var B=ge[N],H=this._data.skin_variations[B],ee=Object.assign({},b);for(var te in H)ee[te]=H[te];delete ee.skin_variations,ee.skin_tone=parseInt(N)+1,this._skins.push(new F(ee))}for(var ue in this._sanitized=Re(this._data),this._sanitized)this[ue]=this._sanitized[ue];this.short_names=this._data.short_names,this.short_name=this._data.short_names[0],Object.freeze(this)}return Z(F,[{key:"getSkin",value:function(b){return b&&b!="native"&&this._skins?this._skins[b-1]:this}},{key:"getPosition",value:function(){var b=+(1.6666666666666667*this._data.sheet_x).toFixed(2),N=+(100/60*this._data.sheet_y).toFixed(2);return"".concat(b,"% ").concat(N,"%")}},{key:"ariaLabel",value:function(){return[this.native].concat(this.short_names).filter(Boolean).join(", ")}}]),F}(),Ze=function(){function F(b,N,B,H,ee,te,ue){x(this,F),this._emoji=b,this._native=H,this._skin=N,this._set=B,this._fallback=ee,this.canRender=this._canRender(),this.cssClass=this._cssClass(),this.cssStyle=this._cssStyle(ue),this.content=this._content(),this.title=te===!0?b.short_name:null,this.ariaLabel=b.ariaLabel(),Object.freeze(this)}return Z(F,[{key:"getEmoji",value:function(){return this._emoji.getSkin(this._skin)}},{key:"_canRender",value:function(){return this._isCustom()||this._isNative()||this._hasEmoji()||this._fallback}},{key:"_cssClass",value:function(){return["emoji-set-"+this._set,"emoji-type-"+this._emojiType()]}},{key:"_cssStyle",value:function(b){var N={};return this._isCustom()?N={backgroundImage:"url("+this.getEmoji()._data.imageUrl+")",backgroundSize:"100%",width:b+"px",height:b+"px"}:this._hasEmoji()&&!this._isNative()&&(N={backgroundPosition:this.getEmoji().getPosition()}),b&&(N=this._isNative()?Object.assign(N,{fontSize:Math.round(.95*b*10)/10+"px"}):Object.assign(N,{width:b+"px",height:b+"px"})),N}},{key:"_content",value:function(){return this._isCustom()?"":this._isNative()?this.getEmoji().native:this._hasEmoji()?"":this._fallback?this._fallback(this.getEmoji()):null}},{key:"_isNative",value:function(){return this._native}},{key:"_isCustom",value:function(){return this.getEmoji().custom}},{key:"_hasEmoji",value:function(){if(!this.getEmoji()._data)return!1;var b=this.getEmoji()._data["has_img_"+this._set];return b===void 0||b}},{key:"_emojiType",value:function(){return this._isCustom()?"custom":this._isNative()?"native":this._hasEmoji()?"image":"fallback"}}]),F}();function Re(F){var b=F.name,N=F.short_names,B=F.skin_tone,H=F.skin_variations,ee=F.emoticons,te=F.unified,ue=F.custom,fe=F.imageUrl,de=F.id||N[0],Ve=":".concat(de,":");return ue?{id:de,name:b,colons:Ve,emoticons:ee,custom:ue,imageUrl:fe}:(B&&(Ve+=":skin-tone-".concat(B,":")),{id:de,name:b,colons:Ve,emoticons:ee,unified:te.toLowerCase(),skin:B||(H?1:null),native:V(te)})}function We(F,b,N){return b in F?Object.defineProperty(F,b,{value:N,enumerable:!0,configurable:!0,writable:!0}):F[b]=N,F}var le={native:{type:Boolean,default:!1},tooltip:{type:Boolean,default:!1},fallback:{type:Function},skin:{type:Number,default:1},set:{type:String,default:"apple"},emoji:{type:[String,Object],required:!0},size:{type:Number,default:null},tag:{type:String,default:"span"}},qe={perLine:{type:Number,default:9},maxSearchResults:{type:Number,default:75},emojiSize:{type:Number,default:24},title:{type:String,default:"Emoji Mart™"},emoji:{type:String,default:"department_store"},color:{type:String,default:"#ae65c5"},set:{type:String,default:"apple"},skin:{type:Number,default:null},defaultSkin:{type:Number,default:1},native:{type:Boolean,default:!1},emojiTooltip:{type:Boolean,default:!1},autoFocus:{type:Boolean,default:!1},i18n:{type:Object,default:function(){return{}}},showPreview:{type:Boolean,default:!0},showSearch:{type:Boolean,default:!0},showCategories:{type:Boolean,default:!0},showSkinTones:{type:Boolean,default:!0},infiniteScroll:{type:Boolean,default:!0},pickerStyles:{type:Object,default:function(){return{}}}};function ye(F,b){var N=Object.keys(F);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(F);b&&(B=B.filter(function(H){return Object.getOwnPropertyDescriptor(F,H).enumerable})),N.push.apply(N,B)}return N}function Je(F){for(var b=1;b0},emojiObjects:function(){var F=this;return this.emojis.map(function(b){return{emojiObject:b,emojiView:new Ze(b,F.emojiProps.skin,F.emojiProps.set,F.emojiProps.native,F.emojiProps.fallback,F.emojiProps.emojiTooltip,F.emojiProps.emojiSize)}})}},components:{Emoji:Ke}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return F.isVisible&&(F.isSearch||F.hasResults)?N("section",{class:{"emoji-mart-category":!0,"emoji-mart-no-results":!F.hasResults},attrs:{"aria-label":F.i18n.categories[F.id]}},[N("div",{staticClass:"emoji-mart-category-label"},[N("h3",{staticClass:"emoji-mart-category-label"},[F._v(F._s(F.i18n.categories[F.id]))])]),F._v(" "),F._l(F.emojiObjects,function(B){var H=B.emojiObject,ee=B.emojiView;return[ee.canRender?N("button",{key:H.id,staticClass:"emoji-mart-emoji",class:F.activeClass(H),attrs:{"aria-label":ee.ariaLabel,role:"option","aria-selected":"false","aria-posinset":"1","aria-setsize":"1812",type:"button","data-title":H.short_name,title:ee.title},on:{mouseenter:function(te){F.emojiProps.onEnter(ee.getEmoji())},mouseleave:function(te){F.emojiProps.onLeave(ee.getEmoji())},click:function(te){F.emojiProps.onClick(ee.getEmoji())}}},[N("span",{class:ee.cssClass,style:ee.cssStyle},[F._v(F._s(ee.content))])]):F._e()]}),F._v(" "),F.hasResults?F._e():N("div",[N("emoji",{attrs:{data:F.data,emoji:"sleuth_or_spy",native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}}),F._v(" "),N("div",{staticClass:"emoji-mart-no-results-label"},[F._v(F._s(F.i18n.notfound))])],1)],2):F._e()},[],!1,null,null,null).exports,Xe=g({props:{skin:{type:Number,required:!0}},data:function(){return{opened:!1}},methods:{onClick:function(F){this.opened&&F!=this.skin&&this.$emit("change",F),this.opened=!this.opened}}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{class:{"emoji-mart-skin-swatches":!0,"emoji-mart-skin-swatches-opened":F.opened}},F._l(6,function(B){return N("span",{key:B,class:{"emoji-mart-skin-swatch":!0,"emoji-mart-skin-swatch-selected":F.skin==B}},[N("span",{class:"emoji-mart-skin emoji-mart-skin-tone-"+B,on:{click:function(H){return F.onClick(B)}}})])}),0)},[],!1,null,null,null).exports,v=g({props:{data:{type:Object,required:!0},title:{type:String,required:!0},emoji:{type:[String,Object]},idleEmoji:{type:[String,Object],required:!0},showSkinTones:{type:Boolean,default:!0},emojiProps:{type:Object,required:!0},skinProps:{type:Object,required:!0},onSkinChange:{type:Function,required:!0}},computed:{emojiData:function(){return this.emoji?this.emoji:{}},emojiShortNames:function(){return this.emojiData.short_names},emojiEmoticons:function(){return this.emojiData.emoticons}},components:{Emoji:Ke,Skins:Xe}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-preview"},[F.emoji?[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.emoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("div",{staticClass:"emoji-mart-preview-name"},[F._v(F._s(F.emoji.name))]),F._v(" "),N("div",{staticClass:"emoji-mart-preview-shortnames"},F._l(F.emojiShortNames,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-shortname"},[F._v(":"+F._s(B)+":")])}),0),F._v(" "),N("div",{staticClass:"emoji-mart-preview-emoticons"},F._l(F.emojiEmoticons,function(B){return N("span",{key:B,staticClass:"emoji-mart-preview-emoticon"},[F._v(F._s(B))])}),0)])]:[N("div",{staticClass:"emoji-mart-preview-emoji"},[N("emoji",{attrs:{data:F.data,emoji:F.idleEmoji,native:F.emojiProps.native,skin:F.emojiProps.skin,set:F.emojiProps.set}})],1),F._v(" "),N("div",{staticClass:"emoji-mart-preview-data"},[N("span",{staticClass:"emoji-mart-title-label"},[F._v(F._s(F.title))])]),F._v(" "),F.showSkinTones?N("div",{staticClass:"emoji-mart-preview-skins"},[N("skins",{attrs:{skin:F.skinProps.skin},on:{change:function(B){return F.onSkinChange(B)}}})],1):F._e()]],2)},[],!1,null,null,null).exports,Y=g({props:{data:{type:Object,required:!0},i18n:{type:Object,required:!0},autoFocus:{type:Boolean,default:!1},onSearch:{type:Function,required:!0},onArrowLeft:{type:Function,required:!1},onArrowRight:{type:Function,required:!1},onArrowDown:{type:Function,required:!1},onArrowUp:{type:Function,required:!1},onEnter:{type:Function,required:!1}},data:function(){return{value:""}},computed:{emojiIndex:function(){return this.data}},watch:{value:function(){this.$emit("search",this.value)}},methods:{clear:function(){this.value=""}},mounted:function(){var F=this.$el.querySelector("input");this.autoFocus&&F.focus()}},function(){var F=this,b=F.$createElement,N=F._self._c||b;return N("div",{staticClass:"emoji-mart-search"},[N("input",{directives:[{name:"model",rawName:"v-model",value:F.value,expression:"value"}],attrs:{type:"text",placeholder:F.i18n.search,role:"textbox","aria-autocomplete":"list","aria-owns":"emoji-mart-list","aria-label":"Search for an emoji","aria-describedby":"emoji-mart-search-description"},domProps:{value:F.value},on:{keydown:[function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"left",37,B.key,["Left","ArrowLeft"])||"button"in B&&B.button!==0?null:(function(H){return F.$emit("arrowLeft",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"right",39,B.key,["Right","ArrowRight"])||"button"in B&&B.button!==2?null:(function(){return F.$emit("arrowRight")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"down",40,B.key,["Down","ArrowDown"])?null:(function(){return F.$emit("arrowDown")}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"up",38,B.key,["Up","ArrowUp"])?null:(function(H){return F.$emit("arrowUp",H)}).apply(null,arguments)},function(B){return!B.type.indexOf("key")&&F._k(B.keyCode,"enter",13,B.key,"Enter")?null:(function(){return F.$emit("enter")}).apply(null,arguments)}],input:function(B){B.target.composing||(F.value=B.target.value)}}}),F._v(" "),N("span",{staticClass:"hidden",attrs:{id:"emoji-picker-search-description"}},[F._v(`Use the left, right, up and down arrow keys to navigate the emoji search
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var ee,te=!0,ue=!1;return{s:function(){N=N.call(F)},n:function(){var fe=N.next();return te=fe.done,fe},e:function(fe){ue=!0,ee=fe},f:function(){try{te||N.return==null||N.return()}finally{if(ue)throw ee}}}}function re(F,b){(b==null||b>F.length)&&(b=F.length);for(var N=0,B=new Array(b);N1&&arguments[1]!==void 0?arguments[1]:{},B=N.emojisToShowFilter,H=N.include,ee=N.exclude,te=N.custom,ue=N.recent,fe=N.recentLength,de=fe===void 0?20:fe;x(this,F),this._data=C(b),this._emojisFilter=B||null,this._include=H||null,this._exclude=ee||null,this._custom=te||[],this._recent=ue||M.get(de),this._emojis={},this._nativeEmojis={},this._emoticons={},this._categories=[],this._recentCategory={id:"recent",name:"Recent",emojis:[]},this._customCategory={id:"custom",name:"Custom",emojis:[]},this._searchIndex={},this.buildIndex(),Object.freeze(this)}return Z(F,[{key:"buildIndex",value:function(){var b=this,N=this._data.categories;if(this._include&&(N=(N=N.filter(function(te){return b._include.includes(te.id)})).sort(function(te,ue){var fe=b._include.indexOf(te.id),de=b._include.indexOf(ue.id);return fe