const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('viewer', '', 'js/index-C3hE5pwG.chunk.mjs'),window.OC.filePath('viewer', '', 'js/previewUtils-BWqM5-N0.chunk.mjs'),window.OC.filePath('viewer', '', 'css/previewUtils-6cpbKhU6.chunk.css')])))=>i.map(i=>d[i]); import{K as Nr,G as nr,b as Xr,L as nt,M as yo,V as oe,N as Q0,O as Ce,n as It,P as bo,Q as Yo,R as P,m as He,S as ca,T as Mo,q as W0,_ as K0,U as wo,W as ja,X as Zo,Y as Pa,Z as Di,$ as Pn,a0 as _o,a1 as Ta,a2 as Ue,a3 as Bo,a4 as da,a5 as Co,a6 as q0,a7 as Lo,a8 as ha,a9 as zn,aa as fa,ab as J0,ac as X0,ad as xo,ae as Io,D as mn,E as gn,af as ko,ag as ts,ah as Ar,ai as Go,aj as Ho,ak as Uo,al as jo,am as es,an as Po,ao as zo,s as pa,ap as rs,aq as Vo,ar as is,as as $o,at as Qo,au as Wo,av as Ko,aw as qo,ax as Jo,ay as ns,aC as Xo,aD as tl,aE as el,aF as rl,aG as il,aH as nl,aI as al,aJ as sl,aK as ol,aL as as,aM as ss,aN as ll,aO as ul,aP as cl,aQ as Tl,aR as dl,aS as hl,aT as fl,aU as os,aV as pl,aW as za,aX as Al,aY as El,aZ as Dl,a_ as Sl,a$ as ml,b0 as gl,b1 as Fl,b2 as Rl,b3 as Nl,b4 as ri,J as w,b5 as cr,v as re,b6 as Ol,w as Va,b7 as vl,x as Fn,b8 as yl,b9 as bl,u as Aa,ba as Rn,g as Yl,d as Ml,bb as wl,bc as Zl,e as _l,o as Bl,bd as Cl}from"./previewUtils-BWqM5-N0.chunk.mjs";import Ll from"./NcActionButton-C031NBgu.chunk.mjs";import xl from"./NcActionLink-C0XLXW7A.chunk.mjs";import{A as ls}from"./actionText-fFcUPi2g-gjw6zxAU.chunk.mjs";const $0="viewer",vo="5.0.0-dev.0";function Il(){if(typeof globalThis.firstDay<"u")return globalThis.firstDay;const e=new Intl.Locale(Nr()),r=e.getWeekInfo?.()??e.weekInfo;return r?r.firstDay%7:1}function kl(){if(typeof globalThis.dayNames<"u")return globalThis.dayNames;const e=Nr();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"long"})]}function Gl(){if(typeof globalThis.dayNamesShort<"u")return globalThis.dayNamesShort;const e=Nr();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"short"})]}function Hl(){if(typeof globalThis.dayNamesMin<"u")return globalThis.dayNamesMin;const e=Nr();return[new Date("1970-01-04T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-05T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-06T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-07T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-08T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-09T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"}),new Date("1970-01-10T00:00:00.000Z").toLocaleDateString(e,{weekday:"narrow"})]}function Ul(){if(typeof globalThis.monthNames<"u")return globalThis.monthNames;const e=Nr();return[new Date("1970-01-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-02-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-03-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-04-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-05-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-06-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-07-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-08-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-09-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-10-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-11-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"}),new Date("1970-12-01T00:00:00.000Z").toLocaleDateString(e,{month:"long"})]}function jl(){if(typeof globalThis.monthNamesShort<"u")return globalThis.monthNamesShort;const e=Nr();return[new Date("1970-01-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-02-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-03-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-04-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-05-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-06-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-07-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-08-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-09-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-10-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-11-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"}),new Date("1970-12-01T00:00:00.000Z").toLocaleDateString(e,{month:"short"})]}function sn(){try{return nr("core","capabilities")}catch{return console.debug("Could not find capabilities initial state fall back to _oc_capabilities"),"_oc_capabilities"in window?window._oc_capabilities:{}}}function ii(e,r,i){e.$set(e.$data._asyncComputed[r],"state",i),e.$set(e.$data._asyncComputed[r],"updating",i==="updating"),e.$set(e.$data._asyncComputed[r],"error",i==="error"),e.$set(e.$data._asyncComputed[r],"success",i==="success")}function Pl(e){return typeof e=="function"?e:e.get}function Vn(e,r){return Object.prototype.hasOwnProperty.call(e,r)}function Ea(e){return Vn(e,"lazy")&&e.lazy}function zl(e,r){return e[Da+r]}var Da="async_computed$lazy_active$",jr="async_computed$lazy_data$";function Vl(e,r,i){e[Da+r]=!1,e[jr+r]=i}function $l(e){return{get:function(){return this[Da+e]=!0,this[jr+e]},set:function(r){this[jr+e]=r}}}function Ql(e,r,i){e[jr+r]=i}function Wl(e,r){return e[jr+r]}var Kl=function(e){return function(){var r=this;return e.watch.forEach(function(i){var n=i.split(".");if(n.length===1)r[i];else try{var a=r;n.forEach(function(s){a=a[s]})}catch(s){throw console.error("AsyncComputed: bad path: ",i),s}}),e.get.call(this)}},ql=function(e){return function(){return e.watch.call(this),e.get.call(this)}};function Jl(e){if(typeof e.watch=="function")return ql(e);if(Array.isArray(e.watch))return e.watch.forEach(function(r){if(typeof r!="string")throw new Error("AsyncComputed: watch elemnts must be strings")}),Kl(e);throw Error("AsyncComputed: watch should be function or an array")}var us=typeof Symbol=="function"?Symbol("did-not-update"):{},Xl=function(e,r){return function(){return e.shouldUpdate.call(this)?r.call(this):us}},tu=function(e){return us===e},cs="_async_computed$",on={install:function(e,r){r=r||{},e.config.optionMergeStrategies.asyncComputed=e.config.optionMergeStrategies.computed,e.mixin({data:function(){return{_asyncComputed:{}}},computed:{$asyncComputed:function(){return this.$data._asyncComputed}},beforeCreate:function(){var i=this.$options.asyncComputed||{};if(Object.keys(i).length){for(var n in i){var a=iu(n,i[n]);this.$options.computed[cs+n]=a}this.$options.data=ru(this.$options,r)}},created:function(){for(var i in this.$options.asyncComputed||{}){var n=this.$options.asyncComputed[i],a=Ts.call(this,n,r);Ea(n)?Ql(this,i,a):this[i]=a}for(var s in this.$options.asyncComputed||{})eu(this,s,r,e)}})}};function eu(e,r,i,n){var a=0,s=function(l){var u=++a;tu(l)||((!l||!l.then)&&(l=Promise.resolve(l)),ii(e,r,"updating"),l.then(function(o){u===a&&(ii(e,r,"success"),e[r]=o)}).catch(function(o){if(u===a&&(ii(e,r,"error"),n.set(e.$data._asyncComputed[r],"exception",o),i.errorHandler!==!1)){var T=i.errorHandler===void 0?console.error.bind(console,"Error evaluating async computed property:"):i.errorHandler;i.useRawError?T(o,e,o.stack):T(o.stack)}}))};n.set(e.$data._asyncComputed,r,{exception:null,update:function(){e._isDestroyed||s(Pl(e.$options.asyncComputed[r]).apply(e))}}),ii(e,r,"updating"),e.$watch(cs+r,s,{immediate:!0})}function ru(e,r){var i=e.data,n=e.asyncComputed||{};return function(a){var s=(typeof i=="function"?i.call(this,a):i)||{};for(var l in n){var u=this.$options.asyncComputed[l],o=Ts.call(this,u,r);Ea(u)?(Vl(s,l,o),this.$options.computed[l]=$l(l)):s[l]=o}return s}}function iu(e,r){if(typeof r=="function")return r;var i=r.get;if(Vn(r,"watch")&&(i=Jl(r)),Vn(r,"shouldUpdate")&&(i=Xl(r,i)),Ea(r)){var n=i;i=function(){return zl(this,e)?n.call(this):Wl(this,e)}}return i}function Ts(e,r){var i=null;return"default"in e?i=e.default:"default"in r&&(i=r.default),typeof i=="function"?i.call(this):i}typeof window<"u"&&window.Vue&&window.Vue.use(on);const nu={name:"PlayCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var au=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon play-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M10,16.5L16,12L10,7.5V16.5Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},su=[],ou=Xr(nu,au,su,!1,null,null);const lu=ou.exports;nt();function ti(e,r,i=!1){const n=yo().proxy;return i&&n.$props[e]===void 0&&n.$props.modelValue===void 0&&oe.util.warn(`Missing required prop: "modelValue" or old "${e}"`),Q0({get(){return n.$props[e]!==void 0?n.$props[e]:n.$props.modelValue},set(a){n.$emit("update:modelValue",a),n.$emit("update:model-value",a),n.$emit(r,a)}})}class ln{static fromString(r){return new ln(r)}constructor(r){this.value=r}icaltype="binary";decodeValue(){return this._b64_decode(this.value)}setEncodedValue(r){this.value=this._b64_encode(r)}_b64_encode(r){let i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,a,s,l,u,o,T,c,d=0,h=0,p="",D=[];if(!r)return r;do n=r.charCodeAt(d++),a=r.charCodeAt(d++),s=r.charCodeAt(d++),c=n<<16|a<<8|s,l=c>>18&63,u=c>>12&63,o=c>>6&63,T=c&63,D[h++]=i.charAt(l)+i.charAt(u)+i.charAt(o)+i.charAt(T);while(d>16&255,a=c>>8&255,s=c&255,o==64?D[h++]=String.fromCharCode(n):T==64?D[h++]=String.fromCharCode(n,a):D[h++]=String.fromCharCode(n,a,s);while(dn)-(i12||(a=n[r],r==2&&(a+=Z.isLeapYear(i))),a}static isLeapYear(r){return r<=1752?r%4==0:r%4==0&&r%100!=0||r%400==0}static fromDayOfYear(r,i){let n=i,a=r,s=new Z;s.auto_normalize=!1;let l=Z.isLeapYear(n)?1:0;if(a<1)return n--,l=Z.isLeapYear(n)?1:0,a+=Z.daysInYearPassedMonth[l][12],Z.fromDayOfYear(a,n);if(a>Z.daysInYearPassedMonth[l][12])return l=Z.isLeapYear(n)?1:0,a-=Z.daysInYearPassedMonth[l][12],n++,Z.fromDayOfYear(a,n);s.year=n,s.isDate=!0;for(let u=11;u>=0;u--)if(a>Z.daysInYearPassedMonth[l][u]){s.month=u+1,s.day=a-Z.daysInYearPassedMonth[l][u];break}return s.auto_normalize=!0,s}static fromStringv2(r){return new Z({year:parseInt(r.slice(0,4),10),month:parseInt(r.slice(5,7),10),day:parseInt(r.slice(8,10),10),isDate:!0})}static fromDateString(r){return new Z({year:Gt(r.slice(0,4)),month:Gt(r.slice(5,7)),day:Gt(r.slice(8,10)),isDate:!0})}static fromDateTimeString(r,i){if(r.length<19)throw new Error('invalid date-time value: "'+r+'"');let n,a;r[19]&&r[19]==="Z"?n=ft.utcTimezone:i&&(a=i.getParameter("tzid"),i.parent&&(i.parent.name==="standard"||i.parent.name==="daylight"?n=ft.localTimezone:a&&(n=i.parent.getTimeZoneByID(a))));const s={year:Gt(r.slice(0,4)),month:Gt(r.slice(5,7)),day:Gt(r.slice(8,10)),hour:Gt(r.slice(11,13)),minute:Gt(r.slice(14,16)),second:Gt(r.slice(17,19))};return a&&!n&&(s.timezone=a),new Z(s,n)}static fromString(r,i){return r.length>10?Z.fromDateTimeString(r,i):Z.fromDateString(r)}static fromJSDate(r,i){return new Z().fromJSDate(r,i)}static fromData=function(r,i){return new Z().fromData(r,i)};static now(){return Z.fromJSDate(new Date,!1)}static weekOneStarts(r,i){let n=Z.fromData({year:r,month:1,day:1,isDate:!0}),a=n.dayOfWeek(),s=i||Z.DEFAULT_WEEK_START;return a>Z.THURSDAY&&(n.day+=7),s>Z.THURSDAY&&(n.day-=7),n.day-=a-s,n}static getDominicalLetter(r){let i="GFEDCBA",n=(r+(r/4|0)+(r/400|0)-(r/100|0)-1)%7;return Z.isLeapYear(r)?i[(n+6)%7]+i[n]:i[n]}static#t=null;static get epochTime(){return this.#t||(this.#t=Z.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"})),this.#t}static _cmp_attr(r,i,n){return r[n]>i[n]?1:r[n]=0){u.day=1,s!=0&&s--,l=u.day;let o=u.dayOfWeek(),T=r-o;T<0&&(T+=7),l+=T,l-=r,a=r}else{u.day=n;let o=u.dayOfWeek();s++,a=o-r,a<0&&(a+=7),a=n-a}return a+=s*7,l+a}isNthWeekDay(r,i){let n=this.dayOfWeek();return i===0&&n===r||this.nthWeekDay(r,i)===this.day}weekNumber(r){let i=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(i in Z._wnCache)return Z._wnCache[i];let n,a=this.clone();a.isDate=!0;let s=this.year;a.month==12&&a.day>25?(n=Z.weekOneStarts(s+1,r),a.compare(n)<0?n=Z.weekOneStarts(s,r):s++):(n=Z.weekOneStarts(s,r),a.compare(n)<0&&(n=Z.weekOneStarts(--s,r)));let l=a.subtractDate(n).toSeconds()/86400,u=Zt(l/7)+1;return Z._wnCache[i]=u,u}addDuration(r){let i=r.isNegative?-1:1,n=this.second,a=this.minute,s=this.hour,l=this.day;n+=i*r.seconds,a+=i*r.minutes,s+=i*r.hours,l+=i*r.days,l+=i*7*r.weeks,this.second=n,this.minute=a,this.hour=s,this.day=l,this._cachedUnixTime=null}subtractDate(r){let i=this.toUnixTime()+this.utcOffset(),n=r.toUnixTime()+r.utcOffset();return jt.fromSeconds(i-n)}subtractDateTz(r){let i=this.toUnixTime(),n=r.toUnixTime();return jt.fromSeconds(i-n)}compare(r){let i=this.toUnixTime(),n=r.toUnixTime();return i>n?1:n>i?-1:0}compareDateOnlyTz(r,i){let n=this.convertToZone(i),a=r.convertToZone(i),s=0;return(s=Z._cmp_attr(n,a,"year"))!=0||(s=Z._cmp_attr(n,a,"month"))!=0||(s=Z._cmp_attr(n,a,"day"))!=0,s}convertToZone(r){let i=this.clone(),n=this.zone.tzid==r.tzid;return!this.isDate&&!n&&ft.convert_time(i,this.zone,r),i.zone=r,i}utcOffset(){return this.zone==ft.localTimezone||this.zone==ft.utcTimezone?0:this.zone.utcOffset(this)}toICALString(){let r=this.toString();return r.length>10?_t.icalendar.value["date-time"].toICAL(r):_t.icalendar.value.date.toICAL(r)}toString(){let r=this.year+"-"+Qt(this.month)+"-"+Qt(this.day);return this.isDate||(r+="T"+Qt(this.hour)+":"+Qt(this.minute)+":"+Qt(this.second),this.zone===ft.utcTimezone&&(r+="Z")),r}toJSDate(){return this.zone==ft.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(this.toUnixTime()*1e3)}_normalize(){return this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this}adjust(r,i,n,a,s){let l,u,o=0,T=0,c,d,h,p,D,E=s||this._time;if(E.isDate||(c=E.second+a,E.second=c%60,l=Zt(c/60),E.second<0&&(E.second+=60,l--),d=E.minute+n+l,E.minute=d%60,u=Zt(d/60),E.minute<0&&(E.minute+=60,u--),h=E.hour+i+u,E.hour=h%24,o=Zt(h/24),E.hour<0&&(E.hour+=24,o--)),E.month>12?T=Zt((E.month-1)/12):E.month<1&&(T=Zt(E.month/12)-1),E.year+=T,E.month-=12*T,p=E.day+r+o,p>0)for(;D=Z.daysInMonth(E.month,E.year),!(p<=D);)E.month++,E.month>12&&(E.year++,E.month=1),p-=D;else for(;p<=0;)E.month==1?(E.year--,E.month=12):E.month--,p+=Z.daysInMonth(E.month,E.year);return E.day=p,this._cachedUnixTime=null,this}fromUnixTime(r){this.zone=ft.utcTimezone;let i=new Date(r*1e3);this.year=i.getUTCFullYear(),this.month=i.getUTCMonth()+1,this.day=i.getUTCDate(),this._time.isDate?(this.hour=0,this.minute=0,this.second=0):(this.hour=i.getUTCHours(),this.minute=i.getUTCMinutes(),this.second=i.getUTCSeconds()),this._cachedUnixTime=null}toUnixTime(){if(this._cachedUnixTime!==null)return this._cachedUnixTime;let r=this.utcOffset(),i=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-r);return this._cachedUnixTime=i/1e3,this._cachedUnixTime}toJSON(){let r=["year","month","day","hour","minute","second","isDate"],i=Object.create(null),n=0,a=r.length,s;for(;n1)throw new Ke("invalid ical body. component began but did not end");return r=null,i.length==1?i[0]:i}ct.property=function(e,r){let i={component:[[],[]],designSet:r||_t.defaultSet};return ct._handleContentLine(e,i),i.component[1][0]},ct.component=function(e){return ct(e)};class Ke extends Error{name=this.constructor.name}ct.ParserError=Ke,ct._handleContentLine=function(e,r){let i=e.indexOf(ni),n=e.indexOf(Nn),a,s,l,u,o={};n!==-1&&i!==-1&&n>i&&(n=-1);let T;if(n!==-1){if(l=e.slice(0,Math.max(0,n)).toLowerCase(),T=ct._parseParameters(e.slice(Math.max(0,n)),0,r.designSet),T[2]==-1)throw new Ke("Invalid parameters in '"+e+"'");if(o=T[0],a=T[1].length+T[2]+n,(s=e.slice(Math.max(0,a)).indexOf(ni))!==-1)u=e.slice(Math.max(0,a+s+1));else throw new Ke("Missing parameter value in '"+e+"'")}else if(i!==-1){if(l=e.slice(0,Math.max(0,i)).toLowerCase(),u=e.slice(Math.max(0,i+1)),l==="begin"){let O=[u.toLowerCase(),[],[]];r.stack.length===1?r.component.push(O):r.component[2].push(O),r.stack.push(r.component),r.component=O,r.designSet||(r.designSet=_t.getDesignSet(r.component[0]));return}else if(l==="end"){r.component=r.stack.pop();return}}else throw new Ke('invalid line (no token ";" or ":") "'+e+'"');let c,d=!1,h=!1,p,D,E;r.designSet.propertyGroups&&l.indexOf(".")!==-1?(D=l.split("."),o.group=D[0],E=D[1]):E=l,E in r.designSet.property&&(p=r.designSet.property[E],"multiValue"in p&&(d=p.multiValue),"structuredValue"in p&&(h=p.structuredValue),u&&"detectType"in p&&(c=p.detectType(u))),c||("value"in o?c=o.value.toLowerCase():p?c=p.defaultType:c=fu),delete o.value;let R;d&&h?(u=ct._parseMultiValue(u,h,c,[],d,r.designSet,h),R=[E,o,c,u]):d?(R=[E,o,c],ct._parseMultiValue(u,d,c,R,null,r.designSet,!1)):h?(u=ct._parseMultiValue(u,h,c,[],null,r.designSet,h),R=[E,o,c,u]):(u=ct._parseValue(u,c,r.designSet,!1),R=[E,o,c,u]),r.component[0]==="vcard"&&r.component[1].length===0&&!(l==="version"&&u==="4.0")&&(r.designSet=_t.getDesignSet("vcard3")),r.component[1].push(R)},ct._parseValue=function(e,r,i,n){return r in i.value&&"fromICAL"in i.value[r]?i.value[r].fromICAL(e,n):e},ct._parseParameters=function(e,r,i){let n=r,a=0,s=hu,l={},u,o,T,c=-1,d,h,p;for(;a!==!1&&(a=e.indexOf(s,a+1))!==-1;){if(u=e.slice(n+1,a),u.length==0)throw new Ke("Empty parameter name in '"+e+"'");if(o=u.toLowerCase(),p=!1,h=!1,o in i.param&&i.param[o].valueType?d=i.param[o].valueType:d=pu,o in i.param&&(h=i.param[o].multiValue,i.param[o].multiValueSeparateDQuote&&(p=ct._rfc6868Escape('"'+h+'"'))),e[a+1]==='"'){if(c=a+2,a=e.indexOf('"',c),h&&a!=-1){let R=!0;for(;R;)e[a+1]==h&&e[a+2]=='"'?a=e.indexOf('"',a+3):R=!1}if(a===-1)throw new Ke('invalid line (no matching double quote) "'+e+'"');T=e.slice(c,a),n=e.indexOf(Nn,a);let E=e.indexOf(ni,a);(n===-1||E!==-1&&n>E)&&(a=!1)}else{c=a+1;let E=e.indexOf(Nn,c),R=e.indexOf(ni,c);R!==-1&&E>R?(E=R,a=!1):E===-1?(R===-1?E=e.length:E=R,a=!1):(n=E,a=E),T=e.slice(c,E)}const D=T.length;if(T=ct._rfc6868Escape(T),c+=D-T.length,h){let E=p||h;T=ct._parseMultiValue(T,E,d,[],null,i)}else T=ct._parseValue(T,d,i);h&&o in l?Array.isArray(l[o])?l[o].push(T):l[o]=[l[o],T]:l[o]=T}return[l,T,c]},ct._rfc6868Escape=function(e){return e.replace(/\^['n^]/g,function(r){return Au[r]})},ct._parseMultiValue=function(e,r,i,n,a,s,l){let u=0,o=0,T;if(r.length===0)return e;for(;(u=ds(e,r,o))!==-1;)T=e.slice(o,u),a?T=ct._parseMultiValue(T,a,i,[],null,s,l):T=ct._parseValue(T,i,s,l),n.push(T),o=u+r.length;return T=e.slice(o),a?T=ct._parseMultiValue(T,a,i,[],null,s,l):T=ct._parseValue(T,i,s,l),n.push(T),n.length==1?n[0]:n},ct._eachLine=function(e,r){let i=e.length,n=e.search(du),a=n,s,l,u;do a=e.indexOf(` `,n)+1,a>1&&e[a-2]==="\r"?u=2:u=1,a===0&&(a=i,u=0),l=e[n],l===" "||l===" "?s+=e.slice(n+1,a-u):(s&&r(null,s),s=e.slice(n,a-u)),n=a;while(a!==i);s=s.trim(),s.length&&r(null,s)};const Eu=["tzid","location","tznames","latitude","longitude"];let ft=class dt{static _compare_change_fn(r,i){return r.yeari.year?1:r.monthi.month?1:r.dayi.day?1:r.houri.hour?1:r.minutei.minute?1:r.secondi.second?1:0}static convert_time(r,i,n){if(r.isDate||i.tzid==n.tzid||i==dt.localTimezone||n==dt.localTimezone)return r.zone=n,r;let a=i.utcOffset(r);return r.adjust(0,0,0,-a),a=n.utcOffset(r),r.adjust(0,0,0,a),null}static fromData(r){return new dt().fromData(r)}static#t=null;static get utcTimezone(){return this.#t||(this.#t=dt.fromData({tzid:"UTC"})),this.#t}static#n=null;static get localTimezone(){return this.#n||(this.#n=dt.fromData({tzid:"floating"})),this.#n}static adjust_change(r,i,n,a,s){return Z.prototype.adjust.call(r,i,n,a,s,r)}static _minimumExpansionYear=-1;static EXTRA_COVERAGE=5;constructor(r){this.wrappedJSObject=this,this.fromData(r)}tzid="";location="";tznames="";latitude=0;longitude=0;component=null;expandedUntilYear=0;icalclass="icaltimezone";fromData(r){if(this.expandedUntilYear=0,this.changes=[],r instanceof qt)this.component=r;else{if(r&&"component"in r)if(typeof r.component=="string"){let i=ct(r.component);this.component=new qt(i)}else r.component instanceof qt?this.component=r.component:this.component=null;for(let i of Eu)r&&i in r&&(this[i]=r[i])}return this.component instanceof qt&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this}utcOffset(r){if(this==dt.utcTimezone||this==dt.localTimezone||(this._ensureCoverage(r.year),!this.changes.length))return 0;let i={year:r.year,month:r.month,day:r.day,hour:r.hour,minute:r.minute,second:r.second},n=this._findNearbyChange(i),a=-1,s=1;for(;;){let u=ar(this.changes[n],!0);if(u.utcOffset=0?a=n:s=-1,s==-1&&a!=-1)break;if(n+=s,n<0)return 0;if(n>=this.changes.length)break}let l=this.changes[a];if(l.utcOffset-l.prevUtcOffset<0&&a>0){let u=ar(l,!0);if(dt.adjust_change(u,0,0,0,u.prevUtcOffset),dt._compare_change_fn(i,u)<0){let o=this.changes[a-1],T=!1;l.is_daylight!=T&&o.is_daylight==T&&(l=o)}}return l.utcOffset}_findNearbyChange(r){let i=tr(this.changes,r,dt._compare_change_fn);return i>=this.changes.length?this.changes.length-1:i}_ensureCoverage(r){if(dt._minimumExpansionYear==-1){let n=Z.now();dt._minimumExpansionYear=n.year}let i=r;if(ii||!d));)s.year=d.year,s.month=d.month,s.day=d.day,s.hour=d.hour,s.minute=d.minute,s.second=d.second,s.isDate=d.isDate,dt.adjust_change(s,0,0,0,-s.prevUtcOffset),n.push(s)}}return n}toString(){return this.tznames?this.tznames:this.tzid}},zt=null;const Oi={get count(){return zt===null?0:Object.keys(zt).length},reset:function(){zt=Object.create(null);let e=ft.utcTimezone;zt.Z=e,zt.UTC=e,zt.GMT=e},_hard_reset:function(){zt=null},has:function(e){return zt===null?!1:!!zt[e]},get:function(e){return zt===null&&this.reset(),zt[e]},register:function(e,r){if(zt===null&&this.reset(),typeof e=="string"&&r instanceof ft&&([e,r]=[r,e]),r||(e instanceof ft?r=e.tzid:e.name==="vtimezone"&&(e=new ft(e),r=e.tzid)),!r)throw new TypeError("Neither a timezone nor a name was passed");if(e instanceof ft)zt[r]=e;else throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component")},remove:function(e){return zt===null?null:delete zt[e]}};function Du(e){let r,i,n,a,s;if(!e||e.name!=="vcalendar")return e;for(r=e.getAllSubcomponents(),i=[],n={},s=0;s"u"))return e instanceof r?e:new r(e)}function ds(e,r,i){for(;(i=e.indexOf(r,i))!==-1;)if(i>0&&e[i-1]==="\\")i+=1;else return i;return-1}function tr(e,r,i){if(!e.length)return 0;let n=0,a=e.length-1,s,l;for(;n<=a;)if(s=n+Math.floor((a-n)/2),l=i(r,e[s]),l<0)a=s-1;else if(l>0)n=s+1;else break;return l<0?s:l>0?s+1:s}function ar(e,r){if(!e||typeof e!="object")return e;if(e instanceof Date)return new Date(e.getTime());if("clone"in e)return e.clone();if(Array.isArray(e)){let i=[];for(let n=0;n65535?2:1:(r+=bt.newLineChar+" "+i.slice(0,Math.max(0,n)),i=i.slice(Math.max(0,n)),n=a=0)}return r.slice(bt.newLineChar.length+1)}function Qt(e){switch(typeof e!="string"&&(typeof e=="number"&&(e=parseInt(e)),e=String(e)),e.length){case 0:return"00";case 1:return"0"+e;default:return e}}function Zt(e){return e<0?Math.ceil(e):Math.floor(e)}function or(e,r){for(let i in e){let n=Object.getOwnPropertyDescriptor(e,i);n&&!Object.getOwnPropertyDescriptor(r,i)&&Object.defineProperty(r,i,n)}return r}var Su=Object.freeze({__proto__:null,updateTimezones:Du,isStrictlyNaN:Pr,strictParseInt:Gt,formatClassType:Oe,unescapedIndexOf:ds,binsearchInsert:tr,clone:ar,foldline:hs,pad2:Qt,trunc:Zt,extend:or});class se{static fromString(r){let i={};return i.factor=r[0]==="+"?1:-1,i.hours=Gt(r.slice(1,3)),i.minutes=Gt(r.slice(4,6)),new se(i)}static fromSeconds(r){let i=new se;return i.fromSeconds(r),i}constructor(r){this.fromData(r)}hours=0;minutes=0;factor=1;icaltype="utc-offset";clone(){return se.fromSeconds(this.toSeconds())}fromData(r){if(r)for(let[i,n]of Object.entries(r))this[i]=n;this._normalize()}fromSeconds(r){let i=Math.abs(r);return this.factor=r<0?-1:1,this.hours=Zt(i/3600),i-=this.hours*3600,this.minutes=Zt(i/60),this}toSeconds(){return this.factor*(60*this.minutes+3600*this.hours)}compare(r){let i=this.toSeconds(),n=r.toSeconds();return(i>n)-(n>i)}_normalize(){let r=this.toSeconds(),i=this.factor;for(;r<-43200;)r+=97200;for(;r>50400;)r-=97200;this.fromSeconds(r),r==0&&(this.factor=i)}toICALString(){return _t.icalendar.value["utc-offset"].toICAL(this.toString())}toString(){return(this.factor==1?"+":"-")+Qt(this.hours)+":"+Qt(this.minutes)}}class Ge extends Z{static fromDateAndOrTimeString(r,i){function n(E,R,O){return E?Gt(E.slice(R,R+O)):null}let a=r.split("T"),s=a[0],l=a[1],u=l?_t.vcard.value.time._splitZone(l):[],o=u[0],T=u[1],c=s?s.length:0,d=T?T.length:0,h=s&&s[0]=="-"&&s[1]=="-",p=T&&T[0]=="-",D={year:h?null:n(s,0,4),month:h&&(c==4||c==7)?n(s,2,2):c==7||c==10?n(s,5,2):null,day:c==5?n(s,3,2):c==7&&h?n(s,5,2):c==10?n(s,8,2):null,hour:p?null:n(T,0,2),minute:p&&d==3?n(T,1,2):d>4?p?n(T,1,2):n(T,3,2):null,second:d==4?n(T,2,2):d==6?n(T,4,2):d==8?n(T,6,2):null};return o=="Z"?o=ft.utcTimezone:o&&o[3]==":"?o=se.fromString(o):o=null,new Ge(D,o,i)}constructor(r,i,n){super(r,i),this.icaltype=n||"date-and-or-time"}icalclass="vcardtime";icaltype="date-and-or-time";clone(){return new Ge(this._time,this.zone,this.icaltype)}_normalize(){return this}utcOffset(){return this.zone instanceof se?this.zone.toSeconds():Z.prototype.utcOffset.apply(this,arguments)}toICALString(){return _t.vcard.value[this.icaltype].toICAL(this.toString())}toString(){let r=this.year,i=this.month,n=this.day,a=this.hour,s=this.minute,l=this.second,u=r!==null,o=i!==null,T=n!==null,c=a!==null,d=s!==null,h=l!==null,p=(u?Qt(r)+(o||T?"-":""):o||T?"--":"")+(o?Qt(i):"")+(T?"-"+Qt(n):""),D=(c?Qt(a):"-")+(c&&d?":":"")+(d?Qt(s):"")+(!c&&!d?"-":"")+(d&&h?":":"")+(h?Qt(l):""),E;switch(this.zone===ft.utcTimezone?E="Z":this.zone instanceof se?E=this.zone.toString():this.zone===ft.localTimezone?E="":this.zone instanceof ft?E=se.fromSeconds(this.zone.utcOffset(this)).toString():E="",this.icaltype){case"time":return D+E;case"date-and-or-time":case"date-time":return p+(D=="--"?"":"T"+D+E);case"date":return p}return null}}class he{static _indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8};static _expandMap={SECONDLY:[1,1,1,1,1,1,1,1],MINUTELY:[2,1,1,1,1,1,1,1],HOURLY:[2,2,1,1,1,1,1,1],DAILY:[2,2,2,1,1,1,1,1],WEEKLY:[2,2,2,2,3,3,1,1],MONTHLY:[2,2,2,2,2,3,3,1],YEARLY:[2,2,2,2,2,2,2,2]};static UNKNOWN=0;static CONTRACT=1;static EXPAND=2;static ILLEGAL=3;constructor(r){this.fromData(r)}completed=!1;rule=null;dtstart=null;last=null;occurrence_number=0;by_indices=null;initialized=!1;by_data=null;days=null;days_index=0;fromData(r){if(this.rule=Oe(r.rule,Ut),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=Oe(r.dtstart,Z),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");if(r.by_data?this.by_data=r.by_data:this.by_data=ar(this.rule.parts,!0),r.occurrence_number&&(this.occurrence_number=r.occurrence_number),this.days=r.days||[],r.last&&(this.last=Oe(r.last,Z)),this.by_indices=r.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=r.initialized||!1,!this.initialized)try{this.init()}catch(i){if(i instanceof $a)this.completed=!0;else throw i}}init(){this.initialized=!0,this.last=this.dtstart.clone();let r=this.by_data;if("BYDAY"in r&&this.sort_byday_rules(r.BYDAY),"BYYEARDAY"in r&&("BYMONTH"in r||"BYWEEKNO"in r||"BYMONTHDAY"in r||"BYDAY"in r))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in r&&"BYMONTHDAY"in r)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if(this.rule.freq=="MONTHLY"&&("BYYEARDAY"in r||"BYWEEKNO"in r))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if(this.rule.freq=="WEEKLY"&&("BYYEARDAY"in r||"BYMONTHDAY"in r))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if(this.rule.freq!="YEARLY"&&"BYYEARDAY"in r)throw new Error("BYYEARDAY may only appear in YEARLY rules");if(this.last.second=this.setup_defaults("BYSECOND","SECONDLY",this.dtstart.second),this.last.minute=this.setup_defaults("BYMINUTE","MINUTELY",this.dtstart.minute),this.last.hour=this.setup_defaults("BYHOUR","HOURLY",this.dtstart.hour),this.last.day=this.setup_defaults("BYMONTHDAY","DAILY",this.dtstart.day),this.last.month=this.setup_defaults("BYMONTH","MONTHLY",this.dtstart.month),this.rule.freq=="WEEKLY")if("BYDAY"in r){let[,i]=this.ruleDayOfWeek(r.BYDAY[0],this.rule.wkst),n=i-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)=0||n<0)&&(this.last.day+=n)}else{let i=Ut.numericDayToIcalDay(this.dtstart.dayOfWeek());r.BYDAY=[i]}if(this.rule.freq=="YEARLY"){const i=this.rule.until?this.rule.until.year:2e4;for(;this.last.year<=i&&(this.expand_year_days(this.last.year),!(this.days.length>0));)this.increment_year(this.rule.interval);if(this.days.length==0)throw new $a;this._nextByYearDay()}if(this.rule.freq=="MONTHLY"){if(this.has_by_data("BYDAY")){let i=null,n=this.last.clone(),a=Z.daysInMonth(this.last.month,this.last.year);for(let s of this.by_data.BYDAY){this.last=n.clone();let[l,u]=this.ruleDayOfWeek(s),o=this.last.nthWeekDay(u,l);if(l>=6||l<=-6)throw new Error("Malformed values in BYDAY part");if(o>a||o<=0){if(i&&i.month==n.month)continue;for(;o>a||o<=0;)this.increment_month(),a=Z.daysInMonth(this.last.month,this.last.year),o=this.last.nthWeekDay(u,l)}this.last.day=o,(!i||this.last.compare(i)<0)&&(i=this.last.clone())}if(this.last=i.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>a||this.last.day==0)throw new Error("Malformed values in BYDAY part")}else if(this.has_by_data("BYMONTHDAY")){this.last.day=1;let i=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY).filter(n=>n>=this.last.day);if(i.length)this.last.day=i[0],this.by_data.BYMONTHDAY=i;else if(!this.next_month()&&!this.next_month()&&!this.next_month())throw new Error("No possible occurrences")}}}next(r=!1){let i=this.last?this.last.clone():null;if((this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)&&(this.completed=!0),this.completed)return null;if(this.occurrence_number==0&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;let n;do switch(n=1,this.rule.freq){case"SECONDLY":this.next_second();break;case"MINUTELY":this.next_minute();break;case"HOURLY":this.next_hour();break;case"DAILY":this.next_day();break;case"WEEKLY":this.next_week();break;case"MONTHLY":n=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!n);if(this.last.compare(i)==0){if(r)throw new Error("Same occurrence found twice, protecting you from death by recursion");this.next(!0)}return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)}next_second(){return this.next_generic("BYSECOND","SECONDLY","second","minute")}increment_second(r){return this.increment_generic(r,"second",60,"minute")}next_minute(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")}increment_minute(r){return this.increment_generic(r,"minute",60,"hour")}next_hour(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")}increment_hour(r){this.increment_generic(r,"hour",24,"monthday")}next_day(){let r=this.rule.freq=="DAILY";return this.next_hour()==0||(r?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0}next_week(){let r=0;if(this.next_weekday_by_week()==0)return r;if(this.has_by_data("BYWEEKNO")){this.by_indices.BYWEEKNO++,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,r=1),this.last.month=1,this.last.day=1;let i=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*i,r&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return r}normalizeByMonthDayRules(r,i,n){let a=Z.daysInMonth(i,r),s=[],l=0,u=n.length,o;for(;la)){if(o<0)o=a+(o+1);else if(o===0)continue;s.indexOf(o)===-1&&s.push(o)}}return s.sort(function(T,c){return T-c})}_byDayAndMonthDay(r){let i,n=this.by_data.BYDAY,a,s=0,l,u=n.length,o=0,T,c=this,d=this.last.day;function h(){for(T=Z.daysInMonth(c.last.month,c.last.year),i=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),l=i.length;i[s]<=d&&!(r&&i[s]==d)&&sT){p();continue}let E=i[s++];if(E>=a)d=E;else{p();continue}for(let R=0;Ri&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(r=1):r=0)}else if(this.has_by_data("BYMONTHDAY")){if(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month(),this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length))return 0;let i=Z.daysInMonth(this.last.month,this.last.year),n=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY];n<0&&(n=i+n+1),n>i?(this.last.day=1,r=this.is_day_in_byday(this.last)):this.last.day=n}else{this.increment_month();let i=Z.daysInMonth(this.last.month,this.last.year);this.by_data.BYMONTHDAY[0]>i?r=0:this.last.day=this.by_data.BYMONTHDAY[0]}return r}next_weekday_by_week(){let r=0;if(this.next_hour()==0)return r;if(!this.has_by_data("BYDAY"))return 1;for(;;){let i=new Z;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,r=1);let n=this.by_data.BYDAY[this.by_indices.BYDAY],a=this.ruleDayOfWeek(n)[1];a-=this.rule.wkst,a<0&&(a+=7),i.year=this.last.year,i.month=this.last.month,i.day=this.last.day;let s=i.startDoyWeek(this.rule.wkst);if(a+s<1&&!r)continue;let l=Z.fromDayOfYear(s+a,this.last.year);return this.last.year=l.year,this.last.month=l.month,this.last.day=l.day,r}}next_year(){if(this.next_hour()==0)return 0;if(++this.days_index==this.days.length){this.days_index=0;do this.increment_year(this.rule.interval),this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY)),this.expand_year_days(this.last.year);while(this.days.length==0)}return this._nextByYearDay(),1}_nextByYearDay(){let r=this.days[this.days_index],i=this.last.year;r<1&&(r+=1,i+=1);let n=Z.fromDayOfYear(r,i);this.last.day=n.day,this.last.month=n.month}ruleDayOfWeek(r,i){let n=r.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);if(n){let a=parseInt(n[1]||0,10);return r=Ut.icalDayToNumericDay(n[2],i),[a,r]}else return[0,0]}next_generic(r,i,n,a,s){let l=r in this.by_data,u=this.rule.freq==i,o=0;if(s&&this[s]()==0)return o;if(l){this.by_indices[r]++;let T=this.by_data[r];this.by_indices[r]==T.length&&(this.by_indices[r]=0,o=1),this.last[n]=T[this.by_indices[r]]}else u&&this["increment_"+n](this.rule.interval);return l&&o&&u&&this["increment_"+a](1),o}increment_monthday(r){for(let i=0;in&&(this.last.day-=n,this.increment_month())}}increment_month(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{this.rule.freq=="MONTHLY"?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;let r=Zt(this.last.month/12);this.last.month%=12,this.last.month++,r!=0&&this.increment_year(r)}this.has_by_data("BYMONTHDAY")&&(this.by_data.BYMONTHDAY=this.normalizeByMonthDayRules(this.last.year,this.last.month,this.rule.parts.BYMONTHDAY))}increment_year(r){this.last.day=1,this.last.year+=r}increment_generic(r,i,n,a){this.last[i]+=r;let s=Zt(this.last[i]/n);this.last[i]%=n,s!=0&&this["increment_"+a](s)}has_by_data(r){return r in this.rule.parts}expand_year_days(r){let i=new Z;this.days=[];let n={},a=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(let u of a)u in this.rule.parts&&(n[u]=this.rule.parts[u]);if("BYMONTH"in n&&"BYWEEKNO"in n){let u=1,o={};i.year=r,i.isDate=!0;for(let T=0;T0?(R=O+(D-1)*7,R<=o&&this.days.push(c+R)):(R=v+(D+1)*7,R>0&&this.days.push(c+R))}}this.days.sort(function(u,o){return u-o})}else if(s==2&&"BYDAY"in n&&"BYMONTHDAY"in n){let u=this.expand_by_day(r);for(let o of u){let T=Z.fromDayOfYear(o,r);this.by_data.BYMONTHDAY.indexOf(T.day)>=0&&this.days.push(o)}}else if(s==3&&"BYDAY"in n&&"BYMONTHDAY"in n&&"BYMONTH"in n){let u=this.expand_by_day(r);for(let o of u){let T=Z.fromDayOfYear(o,r);this.by_data.BYMONTH.indexOf(T.month)>=0&&this.by_data.BYMONTHDAY.indexOf(T.day)>=0&&this.days.push(o)}}else if(s==2&&"BYDAY"in n&&"BYWEEKNO"in n){let u=this.expand_by_day(r);for(let o of u){let T=Z.fromDayOfYear(o,r).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(T)&&this.days.push(o)}}else s==3&&"BYDAY"in n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(s==1&&"BYYEARDAY"in n?this.days=this.days.concat(this.by_data.BYYEARDAY):this.days=[]);let l=Z.isLeapYear(r)?366:365;return this.days.sort((u,o)=>(u<0&&(u+=l+1),o<0&&(o+=l+1),u-o)),0}expand_by_day(r){let i=[],n=this.last.clone();n.year=r,n.month=1,n.day=1,n.isDate=!0;let a=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;let s=n.dayOfWeek(),l=n.dayOfYear();for(let u of this.by_data.BYDAY){let o=this.ruleDayOfWeek(u),T=o[0],c=o[1];if(T==0){let d=(c+7-a)%7+1;for(let h=d;h<=l;h+=7)i.push(h)}else if(T>0){let d;c>=a?d=c-a+1:d=c-a+8,i.push(d+(T-1)*7)}else{let d;T=-T,c<=s?d=l-s+c:d=l-s+c-7,i.push(d-(T-1)*7)}}return i}is_day_in_byday(r){if(this.by_data.BYDAY)for(let i of this.by_data.BYDAY){let n=this.ruleDayOfWeek(i),a=n[0],s=n[1],l=r.dayOfWeek();if(a==0&&s==l||r.nthWeekDay(s,a)==r.day)return 1}return 0}check_set_position(r){return this.has_by_data("BYSETPOS")?this.by_data.BYSETPOS.indexOf(r)!==-1:!1}sort_byday_rules(r){for(let i=0;is){let l=r[i];r[i]=r[n],r[n]=l}}}check_contract_restriction(r,i){let n=he._indexMap[r],a=he._expandMap[this.rule.freq][n],s=!1;if(r in this.by_data&&a==he.CONTRACT){let l=this.by_data[r];for(let u of l)if(u==i){s=!0;break}}else s=!0;return s}check_contracting_rules(){let r=this.last.dayOfWeek(),i=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",Ut.numericDayToIcalDay(r))&&this.check_contract_restriction("BYWEEKNO",i)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)}setup_defaults(r,i,n){let a=he._indexMap[r];return he._expandMap[this.rule.freq][a]!=he.CONTRACT&&(r in this.by_data||(this.by_data[r]=[n]),this.rule.freq!=i)?this.by_data[r][0]:n}toJSON(){let r=Object.create(null);return r.initialized=this.initialized,r.rule=this.rule.toJSON(),r.dtstart=this.dtstart.toJSON(),r.by_data=this.by_data,r.days=this.days,r.last=this.last.toJSON(),r.by_indices=this.by_indices,r.occurrence_number=this.occurrence_number,r}}class $a extends Error{constructor(){super("Recurrence rule has no valid occurrences")}}const mu=/^(SU|MO|TU|WE|TH|FR|SA)$/,gu=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,fs={SU:Z.SUNDAY,MO:Z.MONDAY,TU:Z.TUESDAY,WE:Z.WEDNESDAY,TH:Z.THURSDAY,FR:Z.FRIDAY,SA:Z.SATURDAY},Fu=Object.fromEntries(Object.entries(fs).map(e=>e.reverse())),Qa=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class Ut{static fromString(r){let i=this._stringToData(r,!1);return new Ut(i)}static fromData(r){return new Ut(r)}static _stringToData(r,i){let n=Object.create(null),a=r.split(";"),s=a.length;for(let l=0;l7&&(a-=7),Fu[a]}constructor(r){this.wrappedJSObject=this,this.parts={},r&&typeof r=="object"&&this.fromData(r)}parts=null;interval=1;wkst=Z.MONDAY;until=null;count=null;freq=null;icalclass="icalrecur";icaltype="recur";iterator(r){return new he({rule:this,dtstart:r})}clone(){return new Ut(this.toJSON())}isFinite(){return!!(this.count||this.until)}isByCount(){return!!(this.count&&!this.until)}addComponent(r,i){let n=r.toUpperCase();n in this.parts?this.parts[n].push(i):this.parts[n]=[i]}setComponent(r,i){this.parts[r.toUpperCase()]=i.slice()}getComponent(r){let i=r.toUpperCase();return i in this.parts?this.parts[i].slice():[]}getNextOccurrence(r,i){let n=this.iterator(r),a;do a=n.next();while(a&&a.compare(i)<=0);return a&&i.zone&&(a.zone=i.zone),a}fromData(r){for(let i in r){let n=i.toUpperCase();n in vn?Array.isArray(r[i])?this.parts[n]=r[i]:this.parts[n]=[r[i]]:this[i]=r[i]}this.interval&&typeof this.interval!="number"&&On.INTERVAL(this.interval,this),this.wkst&&typeof this.wkst!="number"&&(this.wkst=Ut.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof Z)&&(this.until=Z.fromString(this.until))}toJSON(){let r=Object.create(null);r.freq=this.freq,this.count&&(r.count=this.count),this.interval>1&&(r.interval=this.interval);for(let[i,n]of Object.entries(this.parts))Array.isArray(n)&&n.length==1?r[i.toLowerCase()]=n[0]:r[i.toLowerCase()]=ar(n);return this.until&&(r.until=this.until.toString()),"wkst"in this&&this.wkst!==Z.DEFAULT_WEEK_START&&(r.wkst=Ut.numericDayToIcalDay(this.wkst)),r}toString(){let r="FREQ="+this.freq;this.count&&(r+=";COUNT="+this.count),this.interval>1&&(r+=";INTERVAL="+this.interval);for(let[i,n]of Object.entries(this.parts))r+=";"+i+"="+n;return this.until&&(r+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==Z.DEFAULT_WEEK_START&&(r+=";WKST="+Ut.numericDayToIcalDay(this.wkst)),r}}function be(e,r,i,n){let a=n;if(n[0]==="+"&&(a=n.slice(1)),a=Gt(a),r!==void 0&&n '+r);if(i!==void 0&&n>i)throw new Error(e+': invalid value "'+n+'" must be < '+r);return a}const On={FREQ:function(e,r,i){if(Qa.indexOf(e)!==-1)r.freq=e;else throw new Error('invalid frequency "'+e+'" expected: "'+Qa.join(", ")+'"')},COUNT:function(e,r,i){r.count=Gt(e)},INTERVAL:function(e,r,i){r.interval=Gt(e),r.interval<1&&(r.interval=1)},UNTIL:function(e,r,i){e.length>10?r.until=_t.icalendar.value["date-time"].fromICAL(e):r.until=_t.icalendar.value.date.fromICAL(e),i||(r.until=Z.fromString(r.until))},WKST:function(e,r,i){if(mu.test(e))r.wkst=Ut.icalDayToNumericDay(e);else throw new Error('invalid WKST value "'+e+'"')}},vn={BYSECOND:be.bind(void 0,"BYSECOND",0,60),BYMINUTE:be.bind(void 0,"BYMINUTE",0,59),BYHOUR:be.bind(void 0,"BYHOUR",0,23),BYDAY:function(e){if(gu.test(e))return e;throw new Error('invalid BYDAY value "'+e+'"')},BYMONTHDAY:be.bind(void 0,"BYMONTHDAY",-31,31),BYYEARDAY:be.bind(void 0,"BYYEARDAY",-366,366),BYWEEKNO:be.bind(void 0,"BYWEEKNO",-53,53),BYMONTH:be.bind(void 0,"BYMONTH",1,12),BYSETPOS:be.bind(void 0,"BYSETPOS",-366,366)};class Le{static fromString(r,i){let n=r.split("/");if(n.length!==2)throw new Error('Invalid string value: "'+r+'" must contain a "/" char.');let a={start:Z.fromDateTimeString(n[0],i)},s=n[1];return jt.isValueString(s)?a.duration=jt.fromString(s):a.end=Z.fromDateTimeString(s,i),new Le(a)}static fromData(r){return new Le(r)}static fromJSON(r,i,n){function a(s,l){return n?Z.fromString(s,l):Z.fromDateTimeString(s,l)}return jt.isValueString(r[1])?Le.fromData({start:a(r[0],i),duration:jt.fromString(r[1])}):Le.fromData({start:a(r[0],i),end:a(r[1],i)})}constructor(r){if(this.wrappedJSObject=this,r&&"start"in r){if(r.start&&!(r.start instanceof Z))throw new TypeError(".start must be an instance of ICAL.Time");this.start=r.start}if(r&&r.end&&r.duration)throw new Error("cannot accept both end and duration");if(r&&"end"in r){if(r.end&&!(r.end instanceof Z))throw new TypeError(".end must be an instance of ICAL.Time");this.end=r.end}if(r&&"duration"in r){if(r.duration&&!(r.duration instanceof jt))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=r.duration}}start=null;end=null;duration=null;icalclass="icalperiod";icaltype="period";clone(){return Le.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})}getDuration(){return this.duration?this.duration:this.end.subtractDate(this.start)}getEnd(){if(this.end)return this.end;{let r=this.start.clone();return r.addDuration(this.duration),r}}toString(){return this.start+"/"+(this.end||this.duration)}toJSON(){return[this.start.toString(),(this.end||this.duration).toString()]}toICALString(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}}const Ru=/\\\\|\\;|\\,|\\[Nn]/g,Nu=/\\|;|,|\n/g,Wa=/\\\\|\\,|\\[Nn]/g,Ka=/\\|,|\n/g;function $n(e,r){return{matches:/.*/,fromICAL:function(i,n){return vu(i,e,n)},toICAL:function(i,n){let a=r;return n&&(a=new RegExp(a.source+"|"+n,a.flags)),i.replace(a,function(s){switch(s){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case` `:return"\\n";default:return s}})}}}const ut={defaultType:"text"},zr={defaultType:"text",multiValue:","},vi={defaultType:"text",structuredValue:";"},ai={defaultType:"integer"},si={defaultType:"date-time",allowedTypes:["date-time","date"]},oi={defaultType:"date-time"},$t={defaultType:"uri"},qa={defaultType:"utc-offset"},Ja={defaultType:"recur"},Xa={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function Ou(e){switch(e){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return` `;default:return e}}function vu(e,r,i){return e.indexOf("\\")===-1?e:(i&&(r=new RegExp(r.source+"|\\\\"+i,r.flags)),e.replace(r,Ou))}let Sa={categories:zr,url:$t,version:ut,uid:ut},ma={boolean:{values:["TRUE","FALSE"],fromICAL:function(e){switch(e){case"TRUE":return!0;case"FALSE":return!1;default:return!1}},toICAL:function(e){return e?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(e){let r=parseFloat(e);return Pr(r)?0:r},toICAL:function(e){return String(e)}},integer:{fromICAL:function(e){let r=parseInt(e);return Pr(r)?0:r},toICAL:function(e){return String(e)}},"utc-offset":{toICAL:function(e){return e.length<7?e.slice(0,3)+e.slice(4,6):e.slice(0,3)+e.slice(4,6)+e.slice(7,9)},fromICAL:function(e){return e.length<6?e.slice(0,3)+":"+e.slice(3,5):e.slice(0,3)+":"+e.slice(3,5)+":"+e.slice(5,7)},decorate:function(e){return se.fromString(e)},undecorate:function(e){return e.toString()}}},yu={cutype:{values:["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"],allowXName:!0,allowIanaToken:!0},"delegated-from":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},"delegated-to":{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},encoding:{values:["8BIT","BASE64"]},fbtype:{values:["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"],allowXName:!0,allowIanaToken:!0},member:{valueType:"cal-address",multiValue:",",multiValueSeparateDQuote:!0},partstat:{values:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"],allowXName:!0,allowIanaToken:!0},range:{values:["THISANDFUTURE"]},related:{values:["START","END"]},reltype:{values:["PARENT","CHILD","SIBLING"],allowXName:!0,allowIanaToken:!0},role:{values:["REQ-PARTICIPANT","CHAIR","OPT-PARTICIPANT","NON-PARTICIPANT"],allowXName:!0,allowIanaToken:!0},rsvp:{values:["TRUE","FALSE"]},"sent-by":{valueType:"cal-address"},tzid:{matches:/^\//},value:{values:["binary","boolean","cal-address","date","date-time","duration","float","integer","period","recur","text","time","uri","utc-offset"],allowXName:!0,allowIanaToken:!0}};const Ht=or(ma,{text:$n(Ru,Nu),uri:{},binary:{decorate:function(e){return ln.fromString(e)},undecorate:function(e){return e.toString()}},"cal-address":{},date:{decorate:function(e,r){return Z.fromDateString(e,r)},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)},toICAL:function(e){let r=e.length;return r==10?e.slice(0,4)+e.slice(5,7)+e.slice(8,10):r>=19?Ht["date-time"].toICAL(e):e}},"date-time":{fromICAL:function(e){{let r=e.slice(0,4)+"-"+e.slice(4,6)+"-"+e.slice(6,8)+"T"+e.slice(9,11)+":"+e.slice(11,13)+":"+e.slice(13,15);return e[15]&&e[15]==="Z"&&(r+="Z"),r}},toICAL:function(e){if(e.length>=19){let r=e.slice(0,4)+e.slice(5,7)+e.slice(8,13)+e.slice(14,16)+e.slice(17,19);return e[19]&&e[19]==="Z"&&(r+="Z"),r}else return e},decorate:function(e,r){return Z.fromDateTimeString(e,r)},undecorate:function(e){return e.toString()}},duration:{decorate:function(e){return jt.fromString(e)},undecorate:function(e){return e.toString()}},period:{fromICAL:function(e){let r=e.split("/");return r[0]=Ht["date-time"].fromICAL(r[0]),jt.isValueString(r[1])||(r[1]=Ht["date-time"].fromICAL(r[1])),r},toICAL:function(e){return e=e.slice(),e[0]=Ht["date-time"].toICAL(e[0]),jt.isValueString(e[1])||(e[1]=Ht["date-time"].toICAL(e[1])),e.join("/")},decorate:function(e,r){return Le.fromJSON(e,r,!1)},undecorate:function(e){return e.toJSON()}},recur:{fromICAL:function(e){return Ut._stringToData(e,!0)},toICAL:function(e){let r="";for(let[i,n]of Object.entries(e))i=="until"?n.length>10?n=Ht["date-time"].toICAL(n):n=Ht.date.toICAL(n):i=="wkst"?typeof n=="number"&&(n=Ut.numericDayToIcalDay(n)):Array.isArray(n)&&(n=n.join(",")),r+=i.toUpperCase()+"="+n+";";return r.slice(0,Math.max(0,r.length-1))},decorate:function(e){return Ut.fromData(e)},undecorate:function(e){return e.toJSON()}},time:{fromICAL:function(e){if(e.length<6)return e;let r=e.slice(0,2)+":"+e.slice(2,4)+":"+e.slice(4,6);return e[6]==="Z"&&(r+="Z"),r},toICAL:function(e){if(e.length<8)return e;let r=e.slice(0,2)+e.slice(3,5)+e.slice(6,8);return e[8]==="Z"&&(r+="Z"),r}}});let bu=or(Sa,{action:ut,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:ut,class:ut,comment:ut,completed:oi,contact:ut,created:oi,description:ut,dtend:si,dtstamp:oi,dtstart:si,due:si,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:Ja,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":oi,location:ut,method:ut,organizer:{defaultType:"cal-address"},"percent-complete":ai,priority:ai,prodid:ut,"related-to":ut,repeat:ai,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(e){return e.indexOf("/")!==-1?"period":e.indexOf("T")===-1?"date":"date-time"}},"recurrence-id":si,resources:zr,"request-status":vi,rrule:Ja,sequence:ai,status:ut,summary:ut,transp:ut,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:qa,tzoffsetto:qa,tzurl:$t,tzid:ut,tzname:ut});const ee=or(ma,{text:$n(Wa,Ka),uri:$n(Wa,Ka),date:{decorate:function(e){return Ge.fromDateAndOrTimeString(e,"date")},undecorate:function(e){return e.toString()},fromICAL:function(e){return e.length==8?Ht.date.fromICAL(e):e[0]=="-"&&e.length==6?e.slice(0,4)+"-"+e.slice(4):e},toICAL:function(e){return e.length==10?Ht.date.toICAL(e):e[0]=="-"&&e.length==7?e.slice(0,4)+e.slice(5):e}},time:{decorate:function(e){return Ge.fromDateAndOrTimeString("T"+e,"time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=ee.time._splitZone(e,!0),i=r[0],n=r[1];return n.length==6?n=n.slice(0,2)+":"+n.slice(2,4)+":"+n.slice(4,6):n.length==4&&n[0]!="-"?n=n.slice(0,2)+":"+n.slice(2,4):n.length==5&&(n=n.slice(0,3)+":"+n.slice(3,5)),i.length==5&&(i[0]=="-"||i[0]=="+")&&(i=i.slice(0,3)+":"+i.slice(3)),n+i},toICAL:function(e){let r=ee.time._splitZone(e),i=r[0],n=r[1];return n.length==8?n=n.slice(0,2)+n.slice(3,5)+n.slice(6,8):n.length==5&&n[0]!="-"?n=n.slice(0,2)+n.slice(3,5):n.length==6&&(n=n.slice(0,3)+n.slice(4,6)),i.length==6&&(i[0]=="-"||i[0]=="+")&&(i=i.slice(0,3)+i.slice(4)),n+i},_splitZone:function(e,r){let i=e.length-1,n=e.length-(r?5:6),a=e[n],s,l;return e[i]=="Z"?(s=e[i],l=e.slice(0,Math.max(0,i))):e.length>6&&(a=="-"||a=="+")?(s=e.slice(n),l=e.slice(0,Math.max(0,n))):(s="",l=e),[s,l]}},"date-time":{decorate:function(e){return Ge.fromDateAndOrTimeString(e,"date-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){return ee["date-and-or-time"].fromICAL(e)},toICAL:function(e){return ee["date-and-or-time"].toICAL(e)}},"date-and-or-time":{decorate:function(e){return Ge.fromDateAndOrTimeString(e,"date-and-or-time")},undecorate:function(e){return e.toString()},fromICAL:function(e){let r=e.split("T");return(r[0]?ee.date.fromICAL(r[0]):"")+(r[1]?"T"+ee.time.fromICAL(r[1]):"")},toICAL:function(e){let r=e.split("T");return ee.date.toICAL(r[0])+(r[1]?"T"+ee.time.toICAL(r[1]):"")}},timestamp:Ht["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/},"phone-number":{fromICAL:function(e){return Array.from(e).filter(function(r){return r==="\\"?void 0:r}).join("")},toICAL:function(e){return Array.from(e).map(function(r){return r===","||r===";"?"\\"+r:r}).join("")}}});let Yu={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","time","date-time","date-and-or-time","timestamp","boolean","integer","float","utc-offset","language-tag"],allowXName:!0,allowIanaToken:!0}},Mu=or(Sa,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:Xa,bday:Xa,caladruri:$t,caluri:$t,clientpidmap:vi,email:ut,fburl:$t,fn:ut,gender:vi,geo:$t,impp:$t,key:$t,kind:ut,lang:{defaultType:"language-tag"},logo:$t,member:$t,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:zr,note:ut,org:{defaultType:"text",structuredValue:";"},photo:$t,related:$t,rev:{defaultType:"timestamp"},role:ut,sound:$t,source:$t,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:ut,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:ut}),wu=or(ma,{binary:Ht.binary,date:ee.date,"date-time":ee["date-time"],"phone-number":ee["phone-number"],uri:Ht.uri,text:Ht.text,time:Ht.time,vcard:Ht.text,"utc-offset":{toICAL:function(e){return e.slice(0,7)},fromICAL:function(e){return e.slice(0,7)},decorate:function(e){return se.fromString(e)},undecorate:function(e){return e.toString()}}}),Zu={type:{valueType:"text",multiValue:","},value:{values:["text","uri","date","date-time","phone-number","time","boolean","integer","float","utc-offset","vcard","binary"],allowXName:!0,allowIanaToken:!0}},_u=or(Sa,{fn:ut,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:zr,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:ut,tel:{defaultType:"phone-number"},email:ut,mailer:ut,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:ut,role:ut,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:vi,note:zr,prodid:ut,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(e){return e.indexOf("T")===-1?"date":"date-time"}},"sort-string":ut,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:ut,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),De={value:Ht,param:yu,property:bu,propertyGroups:!1},t0={value:ee,param:Yu,property:Mu,propertyGroups:!0},e0={value:wu,param:Zu,property:_u,propertyGroups:!0};const Si={strict:!0,defaultSet:De,defaultType:"unknown",components:{vcard:t0,vcard3:e0,vevent:De,vtodo:De,vjournal:De,valarm:De,vtimezone:De,daylight:De,standard:De},icalendar:De,vcard:t0,vcard3:e0,getDesignSet:function(e){return e&&e in Si.components?Si.components[e]:Si.defaultSet}};var _t=Si;const mi=`\r `,r0="unknown",Bu={'"':"^'","\n":"^n","^":"^^"};function St(e){typeof e[0]=="string"&&(e=[e]);let r=0,i=e.length,n="";for(;r0&&!(e[1][0][0]==="version"&&e[1][0][3]==="4.0")&&(u="vcard3"),r=r||_t.getDesignSet(u);s0&&typeof r[0]=="object"&&"icaltype"in r[0]&&this.resetType(r[0].icaltype),this.isDecorated)for(;n=0;l--)(!n||s[l][Me]===n)&&this._removeObjectByIndex(r,a,l)}addSubcomponent(r){this._components||(this._components=[],this._hydratedComponentCount=0),r.parent&&r.parent.removeSubcomponent(r);let i=this.jCal[we].push(r.jCal);return this._components[i-1]=r,this._hydratedComponentCount++,r.parent=this,r}removeSubcomponent(r){let i=this._removeObject(we,"_components",r);return i&&this._hydratedComponentCount--,i}removeAllSubcomponents(r){let i=this._removeAllObjects(we,"_components",r);return this._hydratedComponentCount=0,i}addProperty(r){if(!(r instanceof er))throw new TypeError("must be instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),r.parent&&r.parent.removeProperty(r);let i=this.jCal[Se].push(r.jCal);return this._properties[i-1]=r,this._hydratedPropertyCount++,r.parent=this,r}addPropertyWithValue(r,i){let n=new er(r);return n.setValue(i),this.addProperty(n),n}updatePropertyWithValue(r,i){let n=this.getFirstProperty(r);return n?n.setValue(i):n=this.addPropertyWithValue(r,i),n}removeProperty(r){let i=this._removeObject(Se,"_properties",r);return i&&this._hydratedPropertyCount--,i}removeAllProperties(r){let i=this._removeAllObjects(Se,"_properties",r);return this._hydratedPropertyCount=0,i}toJSON(){return this.jCal}toString(){return St.component(this.jCal,this._designSet)}getTimeZoneByID(r){if(this.parent)return this.parent.getTimeZoneByID(r);if(!this._timezoneCache)return null;if(this._timezoneCache.has(r))return this._timezoneCache.get(r);const i=this.getAllSubcomponents("vtimezone");for(const n of i)if(n.getFirstProperty("tzid").getFirstValue()===r){const a=new ft({component:n,tzid:r});return this._timezoneCache.set(r,a),a}return null}}class ps{constructor(r){this.ruleDates=[],this.exDates=[],this.fromData(r)}complete=!1;ruleIterators=null;ruleDates=null;exDates=null;ruleDateInc=0;exDateInc=0;exDate=null;ruleDate=null;dtstart=null;last=null;fromData(r){let i=Oe(r.dtstart,Z);if(i)this.dtstart=i;else throw new Error(".dtstart (ICAL.Time) must be given");if(r.component)this._init(r.component);else{if(this.last=Oe(r.last,Z)||i.clone(),!r.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=r.ruleIterators.map(function(n){return Oe(n,he)}),this.ruleDateInc=r.ruleDateInc,this.exDateInc=r.exDateInc,r.ruleDates&&(this.ruleDates=r.ruleDates.map(n=>Oe(n,Z)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.exDates&&(this.exDates=r.exDates.map(n=>Oe(n,Z)),this.exDate=this.exDates[this.exDateInc]),typeof r.complete<"u"&&(this.complete=r.complete)}}next(){let r,i,n,a=500,s=0;for(;;){if(s++>a)throw new Error("max tries have occurred, rule may be impossible to fulfill.");if(i=this.ruleDate,r=this._nextRecurrenceIter(this.last),!i&&!r){this.complete=!0;break}if((!i||r&&i.compare(r.last)>0)&&(i=r.last.clone(),r.next()),this.ruleDate===i&&this._nextRuleDay(),this.last=i,this.exDate&&(n=this.exDate.compare(this.last),n<0&&this._nextExDay(),n===0)){this._nextExDay();continue}return this.last}}toJSON(){function r(n){return n.toJSON()}let i=Object.create(null);return i.ruleIterators=this.ruleIterators.map(r),this.ruleDates&&(i.ruleDates=this.ruleDates.map(r)),this.exDates&&(i.exDates=this.exDates.map(r)),i.ruleDateInc=this.ruleDateInc,i.exDateInc=this.exDateInc,i.last=this.last.toJSON(),i.dtstart=this.dtstart.toJSON(),i.complete=this.complete,i}_extractDates(r,i){let n=[],a=r.getAllProperties(i);for(let s=0,l=a.length;sT.compare(c));n.splice(o,0,u)}return n}_init(r){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!r.hasProperty("rdate")&&!r.hasProperty("rrule")&&!r.hasProperty("recurrence-id")){this.ruleDate=this.last.clone(),this.complete=!0;return}if(r.hasProperty("rdate")&&(this.ruleDates=this._extractDates(r,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=tr(this.ruleDates,this.last,(i,n)=>i.compare(n)),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.hasProperty("rrule")){let i=r.getAllProperties("rrule"),n=0,a=i.length,s,l;for(;ni.compare(n)),this.exDate=this.exDates[this.exDateInc])}_nextExDay(){this.exDate=this.exDates[++this.exDateInc]}_nextRuleDay(){this.ruleDate=this.ruleDates[++this.ruleDateInc]}_nextRecurrenceIter(){let r=this.ruleIterators;if(r.length===0)return null;let i=r.length,n,a,s=0,l;for(;s0)&&(l=n)}return l}}class Vr{constructor(r,i){r instanceof qt||(i=r,r=null),r?this.component=r:this.component=new qt("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],i&&i.strictExceptions&&(this.strictExceptions=i.strictExceptions),i&&i.exceptions?i.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach(function(n){n.hasProperty("recurrence-id")&&this.relateException(n)},this)}static THISANDFUTURE="THISANDFUTURE";exceptions=null;strictExceptions=!1;relateException(r){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(r instanceof qt&&(r=new Vr(r)),this.strictExceptions&&r.uid!==this.uid)throw new Error("attempted to relate unrelated exception");let i=r.recurrenceId.toString();if(this.exceptions[i]=r,r.modifiesFuture()){let n=[r.recurrenceId.toUnixTime(),i],a=tr(this.rangeExceptions,n,n0);this.rangeExceptions.splice(a,0,n)}}modifiesFuture(){return this.component.hasProperty("recurrence-id")?this.component.getFirstProperty("recurrence-id").getParameter("range")===Vr.THISANDFUTURE:!1}findRangeException(r){if(!this.rangeExceptions.length)return null;let i=r.toUnixTime(),n=tr(this.rangeExceptions,[i],n0);if(n-=1,n<0)return null;let a=this.rangeExceptions[n];return ir[0]?1:r[0]>e[0]?-1:0}class Cu{constructor(r){typeof r>"u"&&(r={});for(let[i,n]of Object.entries(r))this[i]=n}parseEvent=!0;parseTimezone=!0;oncomplete=function(){};onerror=function(r){};ontimezone=function(r){};onevent=function(r){};process(r){typeof r=="string"&&(r=ct(r)),r instanceof qt||(r=new qt(r));let i=r.getAllSubcomponents(),n=0,a=i.length,s;for(;nn!==r.timezoneId?!0:(bt.TimezoneService.register(r.toICALTimezone(),i),!1))}registerDefaultTimezones(){console.debug(`@f7cloud/calendar-js app is using version ${vr.version} of the timezone database`);for(const r in vr.zones){const i=["BEGIN:VTIMEZONE","TZID:"+r,...vr.zones[r].ics,"END:VTIMEZONE"].join(`\r `);this.registerTimezoneFromICS(r,i)}for(const r in vr.aliases)this.registerAlias(r,vr.aliases[r].aliasTo)}registerTimezoneFromICS(r,i){const n=new xe(r,i);this.registerTimezone(n)}registerAlias(r,i){this._aliases.set(r,i);const n=this.getTimezoneForId(i);if(!n){this._pendingAliases.push([r,i]);return}bt.TimezoneService.register(n.toICALTimezone(),r)}unregisterTimezones(r){this._timezones.delete(r),bt.TimezoneService.remove(r)}unregisterAlias(r){this._aliases.delete(r),this._pendingAliases=this._pendingAliases.filter(([i])=>i!==r),bt.TimezoneService.remove(r)}clearAllTimezones(){this._aliases=new Map,this._pendingAliases=[],this._timezones=new Map,bt.TimezoneService.reset(),fr.registerTimezone(xe.utc),fr.registerTimezone(xe.floating),fr.registerAlias("GMT",xe.utc.timezoneId),fr.registerAlias("Z",xe.utc.timezoneId)}}const fr=new ku;fr.clearAllTimezones();function Gu(){return fr}var As={exports:{}};(function(e,r){(function(i,n){e.exports=n()})(typeof self<"u"?self:Ce,function(){return(()=>{var i={646:l=>{l.exports=function(u){if(Array.isArray(u)){for(var o=0,T=new Array(u.length);o{l.exports=function(u,o,T){return o in u?Object.defineProperty(u,o,{value:T,enumerable:!0,configurable:!0,writable:!0}):u[o]=T,u}},860:l=>{l.exports=function(u){if(Symbol.iterator in Object(u)||Object.prototype.toString.call(u)==="[object Arguments]")return Array.from(u)}},206:l=>{l.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}},319:(l,u,o)=>{var T=o(646),c=o(860),d=o(206);l.exports=function(h){return T(h)||c(h)||d()}},8:l=>{function u(o){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?l.exports=u=function(T){return typeof T}:l.exports=u=function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},u(o)}l.exports=u}},n={};function a(l){var u=n[l];if(u!==void 0)return u.exports;var o=n[l]={exports:{}};return i[l](o,o.exports,a),o.exports}a.n=l=>{var u=l&&l.__esModule?()=>l.default:()=>l;return a.d(u,{a:u}),u},a.d=(l,u)=>{for(var o in u)a.o(u,o)&&!a.o(l,o)&&Object.defineProperty(l,o,{enumerable:!0,get:u[o]})},a.o=(l,u)=>Object.prototype.hasOwnProperty.call(l,u),a.r=l=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(l,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(l,"__esModule",{value:!0})};var s={};return(()=>{a.r(s),a.d(s,{VueSelect:()=>K,default:()=>j,mixins:()=>$});var l=a(319),u=a.n(l),o=a(8),T=a.n(o),c=a(713),d=a.n(c);const h={props:{autoscroll:{type:Boolean,default:!0}},watch:{typeAheadPointer:function(){this.autoscroll&&this.maybeAdjustScroll()},open:function(A){var y=this;this.autoscroll&&A&&this.$nextTick(function(){return y.maybeAdjustScroll()})}},methods:{maybeAdjustScroll:function(){var A,y=((A=this.$refs.dropdownMenu)===null||A===void 0?void 0:A.children[this.typeAheadPointer])||!1;if(y){var b=this.getDropdownViewport(),_=y.getBoundingClientRect(),Q=_.top,C=_.bottom,J=_.height;if(Qb.bottom)return this.$refs.dropdownMenu.scrollTop=y.offsetTop-(b.height-J)}},getDropdownViewport:function(){return this.$refs.dropdownMenu?this.$refs.dropdownMenu.getBoundingClientRect():{height:0,top:0,bottom:0}}}},p={data:function(){return{typeAheadPointer:-1}},watch:{filteredOptions:function(){if(this.resetFocusOnOptionsChange){for(var A=0;A=0;A--)if(this.selectable(this.filteredOptions[A])){this.typeAheadPointer=A;break}},typeAheadDown:function(){for(var A=this.typeAheadPointer+1;A0&&arguments[0]!==void 0?arguments[0]:null;return this.mutableLoading=A??!this.mutableLoading}}};function E(A,y,b,_,Q,C,J,et){var pt,it=typeof A=="function"?A.options:A;return y&&(it.render=y,it.staticRenderFns=b,it._compiled=!0),{exports:A,options:it}}const R={Deselect:E({},function(){var A=this.$createElement,y=this._self._c||A;return y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"10"}},[y("path",{attrs:{d:"M6.895455 5l2.842897-2.842898c.348864-.348863.348864-.914488 0-1.263636L9.106534.261648c-.348864-.348864-.914489-.348864-1.263636 0L5 3.104545 2.157102.261648c-.348863-.348864-.914488-.348864-1.263636 0L.261648.893466c-.348864.348864-.348864.914489 0 1.263636L3.104545 5 .261648 7.842898c-.348864.348863-.348864.914488 0 1.263636l.631818.631818c.348864.348864.914773.348864 1.263636 0L5 6.895455l2.842898 2.842897c.348863.348864.914772.348864 1.263636 0l.631818-.631818c.348864-.348864.348864-.914489 0-1.263636L6.895455 5z"}})])},[]).exports,OpenIndicator:E({},function(){var A=this.$createElement,y=this._self._c||A;return y("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"10"}},[y("path",{attrs:{d:"M9.211364 7.59931l4.48338-4.867229c.407008-.441854.407008-1.158247 0-1.60046l-.73712-.80023c-.407008-.441854-1.066904-.441854-1.474243 0L7 5.198617 2.51662.33139c-.407008-.441853-1.066904-.441853-1.474243 0l-.737121.80023c-.407008.441854-.407008 1.158248 0 1.600461l4.48338 4.867228L7 10l2.211364-2.40069z"}})])},[]).exports},O={inserted:function(A,y,b){var _=b.context;if(_.appendToBody){document.body.appendChild(A);var Q=_.$refs.toggle.getBoundingClientRect(),C=Q.height,J=Q.top,et=Q.left,pt=Q.width,it=window.scrollX||window.pageXOffset,ot=window.scrollY||window.pageYOffset;A.unbindPosition=_.calculatePosition(A,_,{width:pt+"px",left:it+et+"px",top:ot+J+C+"px"})}},unbind:function(A,y,b){b.context.appendToBody&&(A.unbindPosition&&typeof A.unbindPosition=="function"&&A.unbindPosition(),A.parentNode&&A.parentNode.removeChild(A))}},v=function(A){var y={};return Object.keys(A).sort().forEach(function(b){y[b]=A[b]}),JSON.stringify(y)};var M=0;const z=function(){return++M};function G(A,y){var b=Object.keys(A);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(A);y&&(_=_.filter(function(Q){return Object.getOwnPropertyDescriptor(A,Q).enumerable})),b.push.apply(b,_)}return b}function L(A){for(var y=1;y-1}},filter:{type:Function,default:function(A,y){var b=this;return A.filter(function(_){var Q=b.getOptionLabel(_);return typeof Q=="number"&&(Q=Q.toString()),b.filterBy(_,Q,y)})}},createOption:{type:Function,default:function(A){return T()(this.optionList[0])==="object"?d()({},this.label,A):A}},resetFocusOnOptionsChange:{type:Boolean,default:!0},resetOnOptionsChange:{default:!1,validator:function(A){return["function","boolean"].includes(T()(A))}},clearSearchOnBlur:{type:Function,default:function(A){var y=A.clearSearchOnSelect,b=A.multiple;return y&&!b}},noDrop:{type:Boolean,default:!1},inputId:{type:String},dir:{type:String,default:"auto"},selectOnTab:{type:Boolean,default:!1},selectOnKeyCodes:{type:Array,default:function(){return[13]}},searchInputQuerySelector:{type:String,default:"[type=search]"},mapKeydown:{type:Function,default:function(A,y){return A}},appendToBody:{type:Boolean,default:!1},calculatePosition:{type:Function,default:function(A,y,b){var _=b.width,Q=b.top,C=b.left;A.style.top=Q,A.style.left=C,A.style.width=_}},dropdownShouldOpen:{type:Function,default:function(A){var y=A.noDrop,b=A.open,_=A.mutableLoading;return!y&&b&&!_}},keyboardFocusBorder:{type:Boolean,default:!1},uid:{type:[String,Number],default:function(){return z()}}},data:function(){return{search:"",open:!1,isComposing:!1,isKeyboardNavigation:!1,pushedTags:[],_value:[]}},computed:{isTrackingValues:function(){return this.value===void 0||this.$options.propsData.hasOwnProperty("reduce")},selectedValue:function(){var A=this.value;return this.isTrackingValues&&(A=this.$data._value),A!=null&&A!==""?[].concat(A):[]},optionList:function(){return this.options.concat(this.pushTags?this.pushedTags:[])},searchEl:function(){return this.$scopedSlots.search?this.$refs.selectedOptions.querySelector(this.searchInputQuerySelector):this.$refs.search},scope:function(){var A=this,y={search:this.search,loading:this.loading,searching:this.searching,filteredOptions:this.filteredOptions};return{search:{attributes:L({id:this.inputId,disabled:this.disabled,placeholder:this.searchPlaceholder,tabindex:this.tabindex,readonly:!this.searchable,role:"combobox","aria-autocomplete":"list","aria-label":this.ariaLabelCombobox,"aria-controls":"vs-".concat(this.uid,"__listbox"),"aria-owns":"vs-".concat(this.uid,"__listbox"),"aria-expanded":this.dropdownOpen.toString(),ref:"search",type:"search",autocomplete:this.autocomplete,value:this.search},this.dropdownOpen&&this.filteredOptions[this.typeAheadPointer]?{"aria-activedescendant":"vs-".concat(this.uid,"__option-").concat(this.typeAheadPointer)}:{}),events:{compositionstart:function(){return A.isComposing=!0},compositionend:function(){return A.isComposing=!1},keydown:this.onSearchKeyDown,keypress:this.onSearchKeyPress,blur:this.onSearchBlur,focus:this.onSearchFocus,input:function(b){return A.search=b.target.value}}},spinner:{loading:this.mutableLoading},noOptions:{search:this.search,loading:this.mutableLoading,searching:this.searching},openIndicator:{attributes:{ref:"openIndicator",role:"presentation",class:"vs__open-indicator"}},listHeader:y,listFooter:y,header:L({},y,{deselect:this.deselect}),footer:L({},y,{deselect:this.deselect})}},childComponents:function(){return L({},R,{},this.components)},stateClasses:function(){return{"vs--open":this.dropdownOpen,"vs--single":!this.multiple,"vs--multiple":this.multiple,"vs--searching":this.searching&&!this.noDrop,"vs--searchable":this.searchable&&!this.noDrop,"vs--unsearchable":!this.searchable,"vs--loading":this.mutableLoading,"vs--disabled":this.disabled}},searching:function(){return!!this.search},dropdownOpen:function(){return this.dropdownShouldOpen(this)},searchPlaceholder:function(){return this.isValueEmpty&&this.placeholder?this.placeholder:void 0},filteredOptions:function(){var A=this,y=function(C){return A.limit!==null?C.slice(0,A.limit):C},b=[].concat(this.optionList);if(!this.filterable&&!this.taggable)return y(b);var _=this.search.length?this.filter(b,this.search,this):b;if(this.taggable&&this.search.length){var Q=this.createOption(this.search);this.optionExists(Q)||_.unshift(Q)}return y(_)},isValueEmpty:function(){return this.selectedValue.length===0},showClearButton:function(){return!this.multiple&&this.clearable&&!this.open&&!this.isValueEmpty}},watch:{options:function(A,y){var b=this;!this.taggable&&(typeof b.resetOnOptionsChange=="function"?b.resetOnOptionsChange(A,y,b.selectedValue):b.resetOnOptionsChange)&&this.clearSelection(),this.value&&this.isTrackingValues&&this.setInternalValueFromOptions(this.value)},value:{immediate:!0,handler:function(A){this.isTrackingValues&&this.setInternalValueFromOptions(A)}},multiple:function(){this.clearSelection()},open:function(A){this.$emit(A?"open":"close")},search:function(A){A.length&&(this.open=!0)}},created:function(){this.mutableLoading=this.loading,this.$on("option:created",this.pushTag)},methods:{setInternalValueFromOptions:function(A){var y=this;Array.isArray(A)?this.$data._value=A.map(function(b){return y.findOptionFromReducedValue(b)}):this.$data._value=this.findOptionFromReducedValue(A)},select:function(A){this.$emit("option:selecting",A),this.isOptionSelected(A)?this.deselectFromDropdown&&(this.clearable||this.multiple&&this.selectedValue.length>1)&&this.deselect(A):(this.taggable&&!this.optionExists(A)&&this.$emit("option:created",A),this.multiple&&(A=this.selectedValue.concat(A)),this.updateValue(A),this.$emit("option:selected",A)),this.onAfterSelect(A)},deselect:function(A){var y=this;this.$emit("option:deselecting",A),this.updateValue(this.selectedValue.filter(function(b){return!y.optionComparator(b,A)})),this.$emit("option:deselected",A)},keyboardDeselect:function(A,y){var b,_;this.deselect(A);var Q=(b=this.$refs.deselectButtons)===null||b===void 0?void 0:b[y+1],C=(_=this.$refs.deselectButtons)===null||_===void 0?void 0:_[y-1],J=Q??C;J?J.focus():this.searchEl.focus()},clearSelection:function(){this.updateValue(this.multiple?[]:null),this.searchEl.focus()},onAfterSelect:function(A){var y=this;this.closeOnSelect&&(this.open=!this.open),this.clearSearchOnSelect&&(this.search=""),this.noDrop&&this.multiple&&this.$nextTick(function(){return y.$refs.search.focus()})},updateValue:function(A){var y=this;this.value===void 0&&(this.$data._value=A),A!==null&&(A=Array.isArray(A)?A.map(function(b){return y.reduce(b)}):this.reduce(A)),this.$emit("input",A)},toggleDropdown:function(A){var y=A.target!==this.searchEl;y&&A.preventDefault();var b=[].concat(u()(this.$refs.deselectButtons||[]),u()([this.$refs.clearButton]));this.searchEl===void 0||b.filter(Boolean).some(function(_){return _.contains(A.target)||_===A.target})?A.preventDefault():this.open&&y?this.searchEl.blur():this.disabled||(this.open=!0,this.searchEl.focus())},isOptionSelected:function(A){var y=this;return this.selectedValue.some(function(b){return y.optionComparator(b,A)})},isOptionDeselectable:function(A){return this.isOptionSelected(A)&&this.deselectFromDropdown},hasKeyboardFocusBorder:function(A){return!(!this.keyboardFocusBorder||!this.isKeyboardNavigation)&&A===this.typeAheadPointer},optionComparator:function(A,y){return this.getOptionKey(A)===this.getOptionKey(y)},findOptionFromReducedValue:function(A){var y=this,b=[].concat(u()(this.options),u()(this.pushedTags)).filter(function(_){return JSON.stringify(y.reduce(_))===JSON.stringify(A)});return b.length===1?b[0]:b.find(function(_){return y.optionComparator(_,y.$data._value)})||A},closeSearchOptions:function(){this.open=!1,this.$emit("search:blur")},maybeDeleteValue:function(){if(!this.searchEl.value.length&&this.selectedValue&&this.selectedValue.length&&this.clearable){var A=null;this.multiple&&(A=u()(this.selectedValue.slice(0,this.selectedValue.length-1))),this.updateValue(A)}},optionExists:function(A){var y=this;return this.optionList.some(function(b){return y.optionComparator(b,A)})},optionAriaSelected:function(A){return this.selectable(A)?String(this.isOptionSelected(A)):null},normalizeOptionForSlot:function(A){return T()(A)==="object"?A:d()({},this.label,A)},pushTag:function(A){this.pushedTags.push(A)},onEscape:function(){this.search.length?this.search="":this.open=!1},onSearchBlur:function(){if(!this.mousedown||this.searching){var A=this.clearSearchOnSelect,y=this.multiple;return this.clearSearchOnBlur({clearSearchOnSelect:A,multiple:y})&&(this.search=""),void this.closeSearchOptions()}this.mousedown=!1,this.search.length!==0||this.options.length!==0||this.closeSearchOptions()},onSearchFocus:function(){this.open=!0,this.$emit("search:focus")},onMousedown:function(){this.mousedown=!0},onMouseUp:function(){this.mousedown=!1},onMouseMove:function(A,y){this.isKeyboardNavigation=!1,this.selectable(A)&&(this.typeAheadPointer=y)},onSearchKeyDown:function(A){var y=this,b=function(C){if(C.preventDefault(),y.open)return!y.isComposing&&y.typeAheadSelect();y.open=!0},_={8:function(C){return y.maybeDeleteValue()},9:function(C){return y.onTab()},27:function(C){return y.onEscape()},38:function(C){if(C.preventDefault(),y.isKeyboardNavigation=!0,y.open)return y.typeAheadUp();y.open=!0},40:function(C){if(C.preventDefault(),y.isKeyboardNavigation=!0,y.open)return y.typeAheadDown();y.open=!0}};this.selectOnKeyCodes.forEach(function(C){return _[C]=b});var Q=this.mapKeydown(_,this);if(typeof Q[A.keyCode]=="function")return Q[A.keyCode](A)},onSearchKeyPress:function(A){this.open||A.keyCode!==32||(A.preventDefault(),this.open=!0)}}},function(){var A=this,y=A.$createElement,b=A._self._c||y;return b("div",{staticClass:"v-select",class:A.stateClasses,attrs:{id:"v-select-"+A.uid,dir:A.dir}},[A._t("header",null,null,A.scope.header),A._v(" "),b("div",{ref:"toggle",staticClass:"vs__dropdown-toggle"},[b("div",{ref:"selectedOptions",staticClass:"vs__selected-options",on:{mousedown:A.toggleDropdown}},[A._l(A.selectedValue,function(_,Q){return A._t("selected-option-container",[b("span",{key:A.getOptionKey(_),staticClass:"vs__selected"},[A._t("selected-option",[A._v(` `+A._s(A.getOptionLabel(_))+` `)],null,A.normalizeOptionForSlot(_)),A._v(" "),A.multiple?b("button",{ref:"deselectButtons",refInFor:!0,staticClass:"vs__deselect",attrs:{disabled:A.disabled,type:"button",title:A.ariaLabelDeselectOption(A.getOptionLabel(_)),"aria-label":A.ariaLabelDeselectOption(A.getOptionLabel(_))},on:{mousedown:function(C){return C.stopPropagation(),A.deselect(_)},keydown:function(C){return!C.type.indexOf("key")&&A._k(C.keyCode,"enter",13,C.key,"Enter")?null:A.keyboardDeselect(_,Q)}}},[b(A.childComponents.Deselect,{tag:"component"})],1):A._e()],2)],{option:A.normalizeOptionForSlot(_),deselect:A.deselect,multiple:A.multiple,disabled:A.disabled})}),A._v(" "),A._t("search",[b("input",A._g(A._b({staticClass:"vs__search"},"input",A.scope.search.attributes,!1),A.scope.search.events))],null,A.scope.search)],2),A._v(" "),b("div",{ref:"actions",staticClass:"vs__actions"},[b("button",{directives:[{name:"show",rawName:"v-show",value:A.showClearButton,expression:"showClearButton"}],ref:"clearButton",staticClass:"vs__clear",attrs:{disabled:A.disabled,type:"button",title:A.ariaLabelClearSelected,"aria-label":A.ariaLabelClearSelected},on:{click:A.clearSelection}},[b(A.childComponents.Deselect,{tag:"component"})],1),A._v(" "),A.noDrop?A._e():b("button",{ref:"openIndicatorButton",staticClass:"vs__open-indicator-button",attrs:{type:"button",tabindex:"-1","aria-labelledby":"vs-"+A.uid+"__listbox","aria-controls":"vs-"+A.uid+"__listbox","aria-expanded":A.dropdownOpen.toString()},on:{mousedown:A.toggleDropdown}},[A._t("open-indicator",[b(A.childComponents.OpenIndicator,A._b({tag:"component"},"component",A.scope.openIndicator.attributes,!1))],null,A.scope.openIndicator)],2),A._v(" "),A._t("spinner",[b("div",{directives:[{name:"show",rawName:"v-show",value:A.mutableLoading,expression:"mutableLoading"}],staticClass:"vs__spinner"},[A._v("Loading...")])],null,A.scope.spinner)],2)]),A._v(" "),b("transition",{attrs:{name:A.transition}},[A.dropdownOpen?b("ul",{directives:[{name:"append-to-body",rawName:"v-append-to-body"}],key:"vs-"+A.uid+"__listbox",ref:"dropdownMenu",staticClass:"vs__dropdown-menu",attrs:{id:"vs-"+A.uid+"__listbox",role:"listbox","aria-label":A.ariaLabelListbox,"aria-multiselectable":A.multiple,tabindex:"-1"},on:{mousedown:function(_){return _.preventDefault(),A.onMousedown(_)},mouseup:A.onMouseUp}},[A._t("list-header",null,null,A.scope.listHeader),A._v(" "),A._l(A.filteredOptions,function(_,Q){return b("li",{key:A.getOptionKey(_),staticClass:"vs__dropdown-option",class:{"vs__dropdown-option--deselect":A.isOptionDeselectable(_)&&Q===A.typeAheadPointer,"vs__dropdown-option--selected":A.isOptionSelected(_),"vs__dropdown-option--highlight":Q===A.typeAheadPointer,"vs__dropdown-option--kb-focus":A.hasKeyboardFocusBorder(Q),"vs__dropdown-option--disabled":!A.selectable(_)},attrs:{id:"vs-"+A.uid+"__option-"+Q,role:"option","aria-selected":A.optionAriaSelected(_)},on:{mousemove:function(C){return A.onMouseMove(_,Q)},click:function(C){C.preventDefault(),C.stopPropagation(),A.selectable(_)&&A.select(_)}}},[A._t("option",[A._v(` `+A._s(A.getOptionLabel(_))+` `)],null,A.normalizeOptionForSlot(_))],2)}),A._v(" "),A.filteredOptions.length===0?b("li",{staticClass:"vs__no-options"},[A._t("no-options",[A._v(` Sorry, no matching options. `)],null,A.scope.noOptions)],2):A._e(),A._v(" "),A._t("list-footer",null,null,A.scope.listFooter)],2):b("ul",{staticStyle:{display:"none",visibility:"hidden"},attrs:{id:"vs-"+A.uid+"__listbox",role:"listbox","aria-label":A.ariaLabelListbox}})]),A._v(" "),A._t("footer",null,null,A.scope.footer)],2)},[]).exports,$={ajax:D,pointer:p,pointerScroll:h},j=K})(),s})()})})(As);var Qe=As.exports;const yi=Math.min,rr=Math.max,bi=Math.round,ci=Math.floor,pe=e=>({x:e,y:e}),Hu={left:"right",right:"left",bottom:"top",top:"bottom"},Uu={start:"end",end:"start"};function a0(e,r,i){return rr(e,yi(r,i))}function Er(e,r){return typeof e=="function"?e(r):e}function ze(e){return e.split("-")[0]}function un(e){return e.split("-")[1]}function ga(e){return e==="x"?"y":"x"}function Es(e){return e==="y"?"height":"width"}function je(e){return["top","bottom"].includes(ze(e))?"y":"x"}function Ds(e){return ga(je(e))}function ju(e,r,i){i===void 0&&(i=!1);const n=un(e),a=Ds(e),s=Es(a);let l=a==="x"?n===(i?"end":"start")?"right":"left":n==="start"?"bottom":"top";return r.reference[s]>r.floating[s]&&(l=Yi(l)),[l,Yi(l)]}function Pu(e){const r=Yi(e);return[Qn(e),r,Qn(r)]}function Qn(e){return e.replace(/start|end/g,r=>Uu[r])}function zu(e,r,i){const n=["left","right"],a=["right","left"],s=["top","bottom"],l=["bottom","top"];switch(e){case"top":case"bottom":return i?r?a:n:r?n:a;case"left":case"right":return r?s:l;default:return[]}}function Vu(e,r,i,n){const a=un(e);let s=zu(ze(e),i==="start",n);return a&&(s=s.map(l=>l+"-"+a),r&&(s=s.concat(s.map(Qn)))),s}function Yi(e){return e.replace(/left|right|bottom|top/g,r=>Hu[r])}function $u(e){return{top:0,right:0,bottom:0,left:0,...e}}function Qu(e){return typeof e!="number"?$u(e):{top:e,right:e,bottom:e,left:e}}function Mi(e){const{x:r,y:i,width:n,height:a}=e;return{width:n,height:a,top:i,left:r,right:r+n,bottom:i+a,x:r,y:i}}function s0(e,r,i){let{reference:n,floating:a}=e;const s=je(r),l=Ds(r),u=Es(l),o=ze(r),T=s==="y",c=n.x+n.width/2-a.width/2,d=n.y+n.height/2-a.height/2,h=n[u]/2-a[u]/2;let p;switch(o){case"top":p={x:c,y:n.y-a.height};break;case"bottom":p={x:c,y:n.y+n.height};break;case"right":p={x:n.x+n.width,y:d};break;case"left":p={x:n.x-a.width,y:d};break;default:p={x:n.x,y:n.y}}switch(un(r)){case"start":p[l]-=h*(i&&T?-1:1);break;case"end":p[l]+=h*(i&&T?-1:1);break}return p}const Wu=async(e,r,i)=>{const{placement:n="bottom",strategy:a="absolute",middleware:s=[],platform:l}=i,u=s.filter(Boolean),o=await(l.isRTL==null?void 0:l.isRTL(r));let T=await l.getElementRects({reference:e,floating:r,strategy:a}),{x:c,y:d}=s0(T,n,o),h=n,p={},D=0;for(let E=0;EC<=0)){var y,b;const C=(((y=s.flip)==null?void 0:y.index)||0)+1,J=K[C];if(J){var _;const pt=d==="alignment"?v!==je(J):!1,it=((_=A[0])==null?void 0:_.overflows[0])>0;if(!pt||it)return{data:{index:C,overflows:A},reset:{placement:J}}}let et=(b=A.filter(pt=>pt.overflows[0]<=0).sort((pt,it)=>pt.overflows[1]-it.overflows[1])[0])==null?void 0:b.placement;if(!et)switch(p){case"bestFit":{var Q;const pt=(Q=A.filter(it=>{if(L){const ot=je(it.placement);return ot===v||ot==="y"}return!0}).map(it=>[it.placement,it.overflows.filter(ot=>ot>0).reduce((ot,Nt)=>ot+Nt,0)]).sort((it,ot)=>it[1]-ot[1])[0])==null?void 0:Q[0];pt&&(et=pt);break}case"initialPlacement":et=u;break}if(a!==et)return{reset:{placement:et}}}return{}}}};async function qu(e,r){const{placement:i,platform:n,elements:a}=e,s=await(n.isRTL==null?void 0:n.isRTL(a.floating)),l=ze(i),u=un(i),o=je(i)==="y",T=["left","top"].includes(l)?-1:1,c=s&&o?-1:1,d=Er(r,e);let{mainAxis:h,crossAxis:p,alignmentAxis:D}=typeof d=="number"?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return u&&typeof D=="number"&&(p=u==="end"?D*-1:D),o?{x:p*c,y:h*T}:{x:h*T,y:p*c}}const Ju=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(r){var i,n;const{x:a,y:s,placement:l,middlewareData:u}=r,o=await qu(r,e);return l===((i=u.offset)==null?void 0:i.placement)&&(n=u.arrow)!=null&&n.alignmentOffset?{}:{x:a+o.x,y:s+o.y,data:{...o,placement:l}}}}},Xu=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(r){const{x:i,y:n,placement:a}=r,{mainAxis:s=!0,crossAxis:l=!1,limiter:u={fn:R=>{let{x:O,y:v}=R;return{x:O,y:v}}},...o}=Er(e,r),T={x:i,y:n},c=await Ss(r,o),d=je(ze(a)),h=ga(d);let p=T[h],D=T[d];if(s){const R=h==="y"?"top":"left",O=h==="y"?"bottom":"right",v=p+c[R],M=p-c[O];p=a0(v,p,M)}if(l){const R=d==="y"?"top":"left",O=d==="y"?"bottom":"right",v=D+c[R],M=D-c[O];D=a0(v,D,M)}const E=u.fn({...r,[h]:p,[d]:D});return{...E,data:{x:E.x-i,y:E.y-n,enabled:{[h]:s,[d]:l}}}}}},tc=function(e){return e===void 0&&(e={}),{options:e,fn(r){const{x:i,y:n,placement:a,rects:s,middlewareData:l}=r,{offset:u=0,mainAxis:o=!0,crossAxis:T=!0}=Er(e,r),c={x:i,y:n},d=je(a),h=ga(d);let p=c[h],D=c[d];const E=Er(u,r),R=typeof E=="number"?{mainAxis:E,crossAxis:0}:{mainAxis:0,crossAxis:0,...E};if(o){const M=h==="y"?"height":"width",z=s.reference[h]-s.floating[M]+R.mainAxis,G=s.reference[h]+s.reference[M]-R.mainAxis;pG&&(p=G)}if(T){var O,v;const M=h==="y"?"width":"height",z=["top","left"].includes(ze(a)),G=s.reference[d]-s.floating[M]+(z&&((O=l.offset)==null?void 0:O[d])||0)+(z?0:R.crossAxis),L=s.reference[d]+s.reference[M]+(z?0:((v=l.offset)==null?void 0:v[d])||0)-(z?R.crossAxis:0);DL&&(D=L)}return{[h]:p,[d]:D}}}};function cn(){return typeof window<"u"}function Or(e){return ms(e)?(e.nodeName||"").toLowerCase():"#document"}function Jt(e){var r;return(e==null||(r=e.ownerDocument)==null?void 0:r.defaultView)||window}function Ee(e){var r;return(r=(ms(e)?e.ownerDocument:e.document)||window.document)==null?void 0:r.documentElement}function ms(e){return cn()?e instanceof Node||e instanceof Jt(e).Node:!1}function le(e){return cn()?e instanceof Element||e instanceof Jt(e).Element:!1}function Ae(e){return cn()?e instanceof HTMLElement||e instanceof Jt(e).HTMLElement:!1}function o0(e){return!cn()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Jt(e).ShadowRoot}function ei(e){const{overflow:r,overflowX:i,overflowY:n,display:a}=ue(e);return/auto|scroll|overlay|hidden|clip/.test(r+n+i)&&!["inline","contents"].includes(a)}function ec(e){return["table","td","th"].includes(Or(e))}function Tn(e){return[":popover-open",":modal"].some(r=>{try{return e.matches(r)}catch{return!1}})}function Fa(e){const r=Ra(),i=le(e)?ue(e):e;return["transform","translate","scale","rotate","perspective"].some(n=>i[n]?i[n]!=="none":!1)||(i.containerType?i.containerType!=="normal":!1)||!r&&(i.backdropFilter?i.backdropFilter!=="none":!1)||!r&&(i.filter?i.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(i.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(i.contain||"").includes(n))}function rc(e){let r=Ve(e);for(;Ae(r)&&!Dr(r);){if(Fa(r))return r;if(Tn(r))return null;r=Ve(r)}return null}function Ra(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function Dr(e){return["html","body","#document"].includes(Or(e))}function ue(e){return Jt(e).getComputedStyle(e)}function dn(e){return le(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ve(e){if(Or(e)==="html")return e;const r=e.assignedSlot||e.parentNode||o0(e)&&e.host||Ee(e);return o0(r)?r.host:r}function gs(e){const r=Ve(e);return Dr(r)?e.ownerDocument?e.ownerDocument.body:e.body:Ae(r)&&ei(r)?r:gs(r)}function $r(e,r,i){var n;r===void 0&&(r=[]),i===void 0&&(i=!0);const a=gs(e),s=a===((n=e.ownerDocument)==null?void 0:n.body),l=Jt(a);if(s){const u=Wn(l);return r.concat(l,l.visualViewport||[],ei(a)?a:[],u&&i?$r(u):[])}return r.concat(a,$r(a,[],i))}function Wn(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Fs(e){const r=ue(e);let i=parseFloat(r.width)||0,n=parseFloat(r.height)||0;const a=Ae(e),s=a?e.offsetWidth:i,l=a?e.offsetHeight:n,u=bi(i)!==s||bi(n)!==l;return u&&(i=s,n=l),{width:i,height:n,$:u}}function Na(e){return le(e)?e:e.contextElement}function pr(e){const r=Na(e);if(!Ae(r))return pe(1);const i=r.getBoundingClientRect(),{width:n,height:a,$:s}=Fs(r);let l=(s?bi(i.width):i.width)/n,u=(s?bi(i.height):i.height)/a;return(!l||!Number.isFinite(l))&&(l=1),(!u||!Number.isFinite(u))&&(u=1),{x:l,y:u}}const ic=pe(0);function Rs(e){const r=Jt(e);return!Ra()||!r.visualViewport?ic:{x:r.visualViewport.offsetLeft,y:r.visualViewport.offsetTop}}function nc(e,r,i){return r===void 0&&(r=!1),!i||r&&i!==Jt(e)?!1:r}function sr(e,r,i,n){r===void 0&&(r=!1),i===void 0&&(i=!1);const a=e.getBoundingClientRect(),s=Na(e);let l=pe(1);r&&(n?le(n)&&(l=pr(n)):l=pr(e));const u=nc(s,i,n)?Rs(s):pe(0);let o=(a.left+u.x)/l.x,T=(a.top+u.y)/l.y,c=a.width/l.x,d=a.height/l.y;if(s){const h=Jt(s),p=n&&le(n)?Jt(n):n;let D=h,E=Wn(D);for(;E&&n&&p!==D;){const R=pr(E),O=E.getBoundingClientRect(),v=ue(E),M=O.left+(E.clientLeft+parseFloat(v.paddingLeft))*R.x,z=O.top+(E.clientTop+parseFloat(v.paddingTop))*R.y;o*=R.x,T*=R.y,c*=R.x,d*=R.y,o+=M,T+=z,D=Jt(E),E=Wn(D)}}return Mi({width:c,height:d,x:o,y:T})}function Oa(e,r){const i=dn(e).scrollLeft;return r?r.left+i:sr(Ee(e)).left+i}function Ns(e,r,i){i===void 0&&(i=!1);const n=e.getBoundingClientRect(),a=n.left+r.scrollLeft-(i?0:Oa(e,n)),s=n.top+r.scrollTop;return{x:a,y:s}}function ac(e){let{elements:r,rect:i,offsetParent:n,strategy:a}=e;const s=a==="fixed",l=Ee(n),u=r?Tn(r.floating):!1;if(n===l||u&&s)return i;let o={scrollLeft:0,scrollTop:0},T=pe(1);const c=pe(0),d=Ae(n);if((d||!d&&!s)&&((Or(n)!=="body"||ei(l))&&(o=dn(n)),Ae(n))){const p=sr(n);T=pr(n),c.x=p.x+n.clientLeft,c.y=p.y+n.clientTop}const h=l&&!d&&!s?Ns(l,o,!0):pe(0);return{width:i.width*T.x,height:i.height*T.y,x:i.x*T.x-o.scrollLeft*T.x+c.x+h.x,y:i.y*T.y-o.scrollTop*T.y+c.y+h.y}}function sc(e){return Array.from(e.getClientRects())}function oc(e){const r=Ee(e),i=dn(e),n=e.ownerDocument.body,a=rr(r.scrollWidth,r.clientWidth,n.scrollWidth,n.clientWidth),s=rr(r.scrollHeight,r.clientHeight,n.scrollHeight,n.clientHeight);let l=-i.scrollLeft+Oa(e);const u=-i.scrollTop;return ue(n).direction==="rtl"&&(l+=rr(r.clientWidth,n.clientWidth)-a),{width:a,height:s,x:l,y:u}}function lc(e,r){const i=Jt(e),n=Ee(e),a=i.visualViewport;let s=n.clientWidth,l=n.clientHeight,u=0,o=0;if(a){s=a.width,l=a.height;const T=Ra();(!T||T&&r==="fixed")&&(u=a.offsetLeft,o=a.offsetTop)}return{width:s,height:l,x:u,y:o}}function uc(e,r){const i=sr(e,!0,r==="fixed"),n=i.top+e.clientTop,a=i.left+e.clientLeft,s=Ae(e)?pr(e):pe(1),l=e.clientWidth*s.x,u=e.clientHeight*s.y,o=a*s.x,T=n*s.y;return{width:l,height:u,x:o,y:T}}function l0(e,r,i){let n;if(r==="viewport")n=lc(e,i);else if(r==="document")n=oc(Ee(e));else if(le(r))n=uc(r,i);else{const a=Rs(e);n={x:r.x-a.x,y:r.y-a.y,width:r.width,height:r.height}}return Mi(n)}function Os(e,r){const i=Ve(e);return i===r||!le(i)||Dr(i)?!1:ue(i).position==="fixed"||Os(i,r)}function cc(e,r){const i=r.get(e);if(i)return i;let n=$r(e,[],!1).filter(u=>le(u)&&Or(u)!=="body"),a=null;const s=ue(e).position==="fixed";let l=s?Ve(e):e;for(;le(l)&&!Dr(l);){const u=ue(l),o=Fa(l);!o&&u.position==="fixed"&&(a=null),(s?!o&&!a:!o&&u.position==="static"&&a&&["absolute","fixed"].includes(a.position)||ei(l)&&!o&&Os(e,l))?n=n.filter(T=>T!==l):a=u,l=Ve(l)}return r.set(e,n),n}function Tc(e){let{element:r,boundary:i,rootBoundary:n,strategy:a}=e;const s=[...i==="clippingAncestors"?Tn(r)?[]:cc(r,this._c):[].concat(i),n],l=s[0],u=s.reduce((o,T)=>{const c=l0(r,T,a);return o.top=rr(c.top,o.top),o.right=yi(c.right,o.right),o.bottom=yi(c.bottom,o.bottom),o.left=rr(c.left,o.left),o},l0(r,l,a));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function dc(e){const{width:r,height:i}=Fs(e);return{width:r,height:i}}function hc(e,r,i){const n=Ae(r),a=Ee(r),s=i==="fixed",l=sr(e,!0,s,r);let u={scrollLeft:0,scrollTop:0};const o=pe(0);function T(){o.x=Oa(a)}if(n||!n&&!s)if((Or(r)!=="body"||ei(a))&&(u=dn(r)),n){const p=sr(r,!0,s,r);o.x=p.x+r.clientLeft,o.y=p.y+r.clientTop}else a&&T();s&&!n&&a&&T();const c=a&&!n&&!s?Ns(a,u):pe(0),d=l.left+u.scrollLeft-o.x-c.x,h=l.top+u.scrollTop-o.y-c.y;return{x:d,y:h,width:l.width,height:l.height}}function yn(e){return ue(e).position==="static"}function u0(e,r){if(!Ae(e)||ue(e).position==="fixed")return null;if(r)return r(e);let i=e.offsetParent;return Ee(e)===i&&(i=i.ownerDocument.body),i}function vs(e,r){const i=Jt(e);if(Tn(e))return i;if(!Ae(e)){let a=Ve(e);for(;a&&!Dr(a);){if(le(a)&&!yn(a))return a;a=Ve(a)}return i}let n=u0(e,r);for(;n&&ec(n)&&yn(n);)n=u0(n,r);return n&&Dr(n)&&yn(n)&&!Fa(n)?i:n||rc(e)||i}const fc=async function(e){const r=this.getOffsetParent||vs,i=this.getDimensions,n=await i(e.floating);return{reference:hc(e.reference,await r(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function pc(e){return ue(e).direction==="rtl"}const Ac={convertOffsetParentRelativeRectToViewportRelativeRect:ac,getDocumentElement:Ee,getClippingRect:Tc,getOffsetParent:vs,getElementRects:fc,getClientRects:sc,getDimensions:dc,getScale:pr,isElement:le,isRTL:pc};function ys(e,r){return e.x===r.x&&e.y===r.y&&e.width===r.width&&e.height===r.height}function Ec(e,r){let i=null,n;const a=Ee(e);function s(){var u;clearTimeout(n),(u=i)==null||u.disconnect(),i=null}function l(u,o){u===void 0&&(u=!1),o===void 0&&(o=1),s();const T=e.getBoundingClientRect(),{left:c,top:d,width:h,height:p}=T;if(u||r(),!h||!p)return;const D=ci(d),E=ci(a.clientWidth-(c+h)),R=ci(a.clientHeight-(d+p)),O=ci(c),v={rootMargin:-D+"px "+-E+"px "+-R+"px "+-O+"px",threshold:rr(0,yi(1,o))||1};let M=!0;function z(G){const L=G[0].intersectionRatio;if(L!==o){if(!M)return l();L?l(!1,L):n=setTimeout(()=>{l(!1,1e-7)},1e3)}L===1&&!ys(T,e.getBoundingClientRect())&&l(),M=!1}try{i=new IntersectionObserver(z,{...v,root:a.ownerDocument})}catch{i=new IntersectionObserver(z,v)}i.observe(e)}return l(!0),s}function Dc(e,r,i,n){n===void 0&&(n={});const{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:l=typeof ResizeObserver=="function",layoutShift:u=typeof IntersectionObserver=="function",animationFrame:o=!1}=n,T=Na(e),c=a||s?[...T?$r(T):[],...$r(r)]:[];c.forEach(O=>{a&&O.addEventListener("scroll",i,{passive:!0}),s&&O.addEventListener("resize",i)});const d=T&&u?Ec(T,i):null;let h=-1,p=null;l&&(p=new ResizeObserver(O=>{let[v]=O;v&&v.target===T&&p&&(p.unobserve(r),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var M;(M=p)==null||M.observe(r)})),i()}),T&&!o&&p.observe(T),p.observe(r));let D,E=o?sr(e):null;o&&R();function R(){const O=sr(e);E&&!ys(E,O)&&i(),E=O,D=requestAnimationFrame(R)}return i(),()=>{var O;c.forEach(v=>{a&&v.removeEventListener("scroll",i),s&&v.removeEventListener("resize",i)}),d?.(),(O=p)==null||O.disconnect(),p=null,o&&cancelAnimationFrame(D)}}const Sc=Ju,mc=Xu,gc=Ku,Fc=tc,Rc=(e,r,i)=>{const n=new Map,a={platform:Ac,...i},s={...a.platform,_c:n};return Wu(e,r,{...a,platform:s})},Nc={name:"ChevronDownIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Oc=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon chevron-down-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},vc=[],yc=It(Nc,Oc,vc,!1,null,null);const bc=yc.exports,bs=(e,r)=>{const i=[];let n=0,a=e.toLowerCase().indexOf(r.toLowerCase(),n),s=0;for(;a>-1&&s[]}},computed:{ranges(){let e=[];return!this.search&&this.highlight.length===0||(this.highlight.length>0?e=this.highlight:e=bs(this.text,this.search),e.forEach((r,i)=>{r.end(i.start0&&r.push({start:i.start<0?0:i.start,end:i.end>this.text.length?this.text.length:i.end}),r),[]),e.sort((r,i)=>r.start-i.start),e=e.reduce((r,i)=>{if(!r.length)r.push(i);else{const n=r.length-1;r[n].end>=i.start?r[n]={start:r[n].start,end:Math.max(r[n].end,i.end)}:r.push(i)}return r},[])),e},chunks(){if(this.ranges.length===0)return[{start:0,end:this.text.length,highlight:!1,text:this.text}];const e=[];let r=0,i=0;for(;r=this.ranges.length&&rr.highlight?e("strong",{},r.text):r.text)):e("span",{},this.text)}},Mc=null,wc=null;var Zc=It(Yc,Mc,wc,!1,null,null);const Ys=Zc.exports,_c={name:"NcEllipsisedOption",components:{NcHighlight:Ys},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?bs(this.name,this.search):[]},highlight2(){return this.highlight1.map(e=>({start:e.start-this.split,end:e.end-this.split}))}}};var Bc=function(){var e=this,r=e._self._c;return r("span",{staticClass:"name-parts",attrs:{dir:"auto",title:e.name}},[r("NcHighlight",{staticClass:"name-parts__first",attrs:{text:e.part1,search:e.search,highlight:e.highlight1}}),e.part2?r("NcHighlight",{staticClass:"name-parts__last",attrs:{text:e.part2,search:e.search,highlight:e.highlight2}}):e._e()],1)},Cc=[],Lc=It(_c,Bc,Cc,!1,null,"f6384352");const xc=Lc.exports,Ic={name:"NcActionRouter",mixins:[ls],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}},props:{to:{type:[String,Object],default:"",required:!0},exact:{type:Boolean,default:!1}}};var kc=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("RouterLink",{staticClass:"action-router focusable",attrs:{to:e.to,"aria-label":e.ariaLabel,exact:e.exact,title:e.title,rel:"nofollow noreferrer noopener",role:e.isInSemanticMenu&&"menuitem"},nativeOn:{click:function(i){return e.onClick.apply(null,arguments)}}},[e._t("icon",function(){return[r("span",{staticClass:"action-router__icon",class:[e.isIconUrl?"action-router__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}})]}),e.name?r("span",{staticClass:"action-router__longtext-wrapper"},[r("strong",{staticClass:"action-router__name"},[e._v(" "+e._s(e.name)+" ")]),r("br"),r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-router__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-router__text"},[e._v(e._s(e.text))]),e._e()],2)],1)},Gc=[],Hc=It(Ic,kc,Gc,!1,null,"579c6b4d");const Uc=Hc.exports,jc={name:"NcActionText",mixins:[ls],inject:{isInSemanticMenu:{from:"NcActions:isSemanticMenu",default:!1}}};var Pc=function(){var e=this,r=e._self._c;return r("li",{staticClass:"action",attrs:{role:e.isInSemanticMenu&&"presentation"}},[r("span",{staticClass:"action-text",on:{click:e.onClick}},[e._t("icon",function(){return[e.icon!==""?r("span",{staticClass:"action-text__icon",class:[e.isIconUrl?"action-text__icon--url":e.icon],style:{backgroundImage:e.isIconUrl?`url(${e.icon})`:null},attrs:{"aria-hidden":"true"}}):e._e()]}),e.name?r("span",{staticClass:"action-text__longtext-wrapper"},[r("strong",{staticClass:"action-text__name"},[e._v(" "+e._s(e.name)+" ")]),r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}})]):e.isLongText?r("span",{staticClass:"action-text__longtext",domProps:{textContent:e._s(e.text)}}):r("span",{staticClass:"action-text__text"},[e._v(e._s(e.text))]),e._e()],2)])},zc=[],Vc=It(jc,Pc,zc,!1,null,"6a01d6d2");const $c=Vc.exports,Qc=` `,c0=` `,Wc=` `,T0=` `;nt(bo);const Ms=e=>{switch(e){case"away":return P("away");case"busy":return P("busy");case"dnd":return P("do not disturb");case"online":return P("online");case"invisible":return P("invisible");case"offline":return P("offline");default:return e}};nt(Yo);const Kc={name:"NcUserStatusIcon",props:{user:{type:String,default:null},status:{type:String,default:null,validator:e=>["online","away","busy","dnd","invisible","offline"].includes(e)},ariaHidden:{type:String,default:null,validator:e=>["true","false"].includes(e)}},data(){return{fetchedUserStatus:null}},computed:{activeStatus(){return this.status??this.fetchedUserStatus},activeSvg(){return{online:Qc,away:c0,busy:c0,dnd:Wc,invisible:T0,offline:T0}[this.activeStatus]??null},ariaLabel(){return this.ariaHidden==="true"?null:P("User status: {status}",{status:Ms(this.activeStatus)})}},watch:{user:{immediate:!0,async handler(e,r){if(!e||!sn()?.user_status?.enabled){this.fetchedUserStatus=null;return}try{const{data:i}=await He.get(ca("/apps/user_status/api/v1/statuses/{user}",{user:e}));this.fetchedUserStatus=i.ocs?.data?.status}catch{this.fetchedUserStatus=null}}}}};var qc=function(){var e=this,r=e._self._c;return e.activeStatus?r("span",{staticClass:"user-status-icon",class:{"user-status-icon--invisible":["invisible","offline"].includes(e.status)},attrs:{role:"img","aria-hidden":e.ariaHidden,"aria-label":e.ariaLabel},domProps:{innerHTML:e._s(e.activeSvg)}}):e._e()},Jc=[],Xc=It(Kc,qc,Jc,!1,null,"0555d8d0");const tT=Xc.exports;nt(Mo);class Rt{constructor(r,i,n,a){this.r=r,this.g=i,this.b=n,a&&(this.name=a)}get color(){const r=i=>`00${i.toString(16)}`.slice(-2);return`#${r(this.r)}${r(this.g)}${r(this.b)}`}}function eT(e,r){const i=new Array(3);return i[0]=(r[1].r-r[0].r)/e,i[1]=(r[1].g-r[0].g)/e,i[2]=(r[1].b-r[0].b)/e,i}function bn(e,r,i){const n=[];n.push(r);const a=eT(e,[r,i]);for(let s=1;s>>32-n},rotr:function(i,n){return i<<32-n|i>>>n},endian:function(i){if(i.constructor==Number)return r.rotl(i,8)&16711935|r.rotl(i,24)&4278255360;for(var n=0;n0;i--)n.push(Math.floor(Math.random()*256));return n},bytesToWords:function(i){for(var n=[],a=0,s=0;a>>5]|=i[a]<<24-s%32;return n},wordsToBytes:function(i){for(var n=[],a=0;a>>5]>>>24-a%32&255);return n},bytesToHex:function(i){for(var n=[],a=0;a>>4).toString(16)),n.push((i[a]&15).toString(16));return n.join("")},hexToBytes:function(i){for(var n=[],a=0;a>>6*(3-l)&63)):n.push("=");return n.join("")},base64ToBytes:function(i){i=i.replace(/[^A-Z0-9+\/]/ig,"");for(var n=[],a=0,s=0;a>>6-s*2);return n}};Zs.exports=r})();var iT=Zs.exports,Kn={utf8:{stringToBytes:function(e){return Kn.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(Kn.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var r=[],i=0;i>>24)&16711935|(u[p]<<24|u[p]>>>8)&4278255360;u[o>>>5]|=128<>>9<<4)+14]=o;for(var D=a._ff,E=a._gg,R=a._hh,O=a._ii,p=0;p>>0,c=c+M>>>0,d=d+z>>>0,h=h+G>>>0}return e.endian([T,c,d,h])};a._ff=function(s,l,u,o,T,c,d){var h=s+(l&u|~l&o)+(T>>>0)+d;return(h<>>32-c)+l},a._gg=function(s,l,u,o,T,c,d){var h=s+(l&o|u&~o)+(T>>>0)+d;return(h<>>32-c)+l},a._hh=function(s,l,u,o,T,c,d){var h=s+(l^u^o)+(T>>>0)+d;return(h<>>32-c)+l},a._ii=function(s,l,u,o,T,c,d){var h=s+(u^(l|~o))+(T>>>0)+d;return(h<>>32-c)+l},a._blocksize=16,a._digestsize=16,ws.exports=function(s,l){if(s==null)throw new Error("Illegal argument "+s);var u=e.wordsToBytes(a(s,l));return l&&l.asBytes?u:l&&l.asString?n.bytesToString(u):e.bytesToHex(u)}})();var sT=ws.exports;const oT=W0(sT),h0=function(e){let r=e.toLowerCase();r.match(/^([0-9a-f]{4}-?){8}$/)===null&&(r=oT(r)),r=r.replace(/[^0-9a-f]/g,"");const i=6,n=rT(i);function a(s,l){let u=0;const o=[];for(let T=0;T{const n=window.getComputedStyle(document.body).getPropertyValue("--background-invert-if-dark")==="invert(100%)";return K0("/avatar"+(i?"/guest":"")+"/{user}/{size}"+(n?"/dark":""),{user:e,size:r})},Bs=wo().detectUser().setApp("@f7cloud/vue").build();function uT(e){return window._nc_contacts_menu_hooks?Object.values(window._nc_contacts_menu_hooks).filter(r=>r.enabled(e)):[]}const cT=(e,r)=>{const i=(c,d)=>c.startsWith(d)?c.slice(d.length):c,n=(c,...d)=>d.reduce((h,p)=>i(h,p),c);if(!e)return null;const a=/^https?:\/\//.test(r),s=/^[a-z][a-z0-9+.-]*:.+/.test(r);if(!a&&s||a&&!r.startsWith(ja())||!a&&!r.startsWith("/"))return null;const l=a?n(r,ja(),"/index.php"):r,u=n(e.history.base,Zo(),"/index.php"),o=n(l,u)||"/",T=e.resolve(o).route;return T.matched.length?T.fullPath:null};var TT={exports:{}};(function(e){(function(r){if(typeof i!="function"){var i=function(D){return D};i.nonNative=!0}const n=i("plaintext"),a=i("html"),s=i("comment"),l=/<(\w*)>/g,u=/<\/?([^\s\/>]+)/;function o(D,E,R){D=D||"",E=E||[],R=R||"";let O=c(E,R);return d(D,O)}function T(D,E){D=D||[],E=E||"";let R=c(D,E);return function(O){return d(O||"",R)}}o.init_streaming_mode=T;function c(D,E){return D=h(D),{allowable_tags:D,tag_replacement:E,state:n,tag_buffer:"",depth:0,in_quote_char:""}}function d(D,E){if(typeof D!="string")throw new TypeError("'html' parameter must be a string");let R=E.allowable_tags,O=E.tag_replacement,v=E.state,M=E.tag_buffer,z=E.depth,G=E.in_quote_char,L="";for(let K=0,$=D.length;K<$;K++){let j=D[K];if(v===n)switch(j){case"<":v=a,M+=j;break;default:L+=j;break}else if(v===a)switch(j){case"<":if(G)break;z++;break;case">":if(G)break;if(z){z--;break}G="",v=n,M+=">",R.has(p(M))?L+=M:L+=O,M="";break;case'"':case"'":j===G?G="":G=G||j,M+=j;break;case"-":M==="":M.slice(-2)=="--"&&(v=n),M="";break;default:M+=j;break}}return E.state=v,E.tag_buffer=M,E.depth=z,E.in_quote_char=G,L}function h(D){let E=new Set;if(typeof D=="string"){let R;for(;R=l.exec(D);)E.add(R[1])}else!i.nonNative&&typeof D[i.iterator]=="function"?E=new Set(D):typeof D.forEach=="function"&&D.forEach(E.add,E);return E}function p(D){let E=u.exec(D);return E?E[1].toLowerCase():null}e.exports?e.exports=o:r.striptags=o})(Ce)})(TT),oe.util.warn;const Cs=_o?window:void 0;function br(e){var r;const i=Ue(e);return(r=i?.$el)!=null?r:i}function gi(...e){let r,i,n,a;if(typeof e[0]=="string"||Array.isArray(e[0])?([i,n,a]=e,r=Cs):[r,i,n,a]=e,!r)return Di;Array.isArray(i)||(i=[i]),Array.isArray(n)||(n=[n]);const s=[],l=()=>{s.forEach(c=>c()),s.length=0},u=(c,d,h,p)=>(c.addEventListener(d,h,p),()=>c.removeEventListener(d,h,p)),o=Ta(()=>[br(r),Ue(a)],([c,d])=>{if(l(),!c)return;const h=Bo(d)?{...d}:d;s.push(...i.flatMap(p=>n.map(D=>u(c,p,D,h))))},{immediate:!0,flush:"post"}),T=()=>{o(),l()};return q0(T),T}let f0=!1;function p0(e,r,i={}){const{window:n=Cs,ignore:a=[],capture:s=!0,detectIframe:l=!1}=i;if(!n)return Di;Pn&&!f0&&(f0=!0,Array.from(n.document.body.children).forEach(D=>D.addEventListener("click",Di)),n.document.documentElement.addEventListener("click",Di));let u=!0;const o=D=>Ue(a).some(E=>{if(typeof E=="string")return Array.from(n.document.querySelectorAll(E)).some(R=>R===D.target||D.composedPath().includes(R));{const R=br(E);return R&&(D.target===R||D.composedPath().includes(R))}});function T(D){const E=Ue(D);return E&&E.$.subTree.shapeFlag===16}function c(D,E){const R=Ue(D),O=R.$.subTree&&R.$.subTree.children;return O==null||!Array.isArray(O)?!1:O.some(v=>v.el===E.target||E.composedPath().includes(v.el))}const d=D=>{const E=br(e);if(D.target!=null&&!(!(E instanceof Element)&&T(e)&&c(e,D))&&!(!E||E===D.target||D.composedPath().includes(E))){if(D.detail===0&&(u=!o(D)),!u){u=!0;return}r(D)}};let h=!1;const p=[gi(n,"click",D=>{h||(h=!0,setTimeout(()=>{h=!1},0),d(D))},{passive:!0,capture:s}),gi(n,"pointerdown",D=>{const E=br(e);u=!o(D)&&!!(E&&!D.composedPath().includes(E))},{passive:!0}),l&&gi(n,"blur",D=>{setTimeout(()=>{var E;const R=br(e);((E=n.document.activeElement)==null?void 0:E.tagName)==="IFRAME"&&!R?.contains(n.document.activeElement)&&r(D)},0)})].filter(Boolean);return()=>p.forEach(D=>D())}const dT={[Pa.mounted](e,r){const i=!r.modifiers.bubble;if(typeof r.value=="function")e.__onClickOutside_stop=p0(e,r.value,{capture:i});else{const[n,a]=r.value;e.__onClickOutside_stop=p0(e,n,Object.assign({capture:i},a))}},[Pa.unmounted](e){e.__onClickOutside_stop()}};function Yn(e){return typeof Window<"u"&&e instanceof Window?e.document.documentElement:typeof Document<"u"&&e instanceof Document?e.documentElement:e}function Ls(e){const r=window.getComputedStyle(e);if(r.overflowX==="scroll"||r.overflowY==="scroll"||r.overflowX==="auto"&&e.clientWidth1?!0:(r.preventDefault&&r.preventDefault(),!1)}const Mn=new WeakMap;function fT(e,r=!1){const i=da(r);let n=null,a="";Ta(Co(e),u=>{const o=Yn(Ue(u));if(o){const T=o;if(Mn.get(T)||Mn.set(T,T.style.overflow),T.style.overflow!=="hidden"&&(a=T.style.overflow),T.style.overflow==="hidden")return i.value=!0;if(i.value)return T.style.overflow="hidden"}},{immediate:!0});const s=()=>{const u=Yn(Ue(e));!u||i.value||(Pn&&(n=gi(u,"touchmove",o=>{hT(o)},{passive:!1})),u.style.overflow="hidden",i.value=!0)},l=()=>{const u=Yn(Ue(e));!u||!i.value||(Pn&&n?.(),u.style.overflow=a,Mn.delete(u),i.value=!1)};return q0(l),Q0({get(){return i.value},set(u){u?s():l()}})}function pT(){let e=!1;const r=da(!1);return(i,n)=>{if(r.value=n.value,e)return;e=!0;const a=fT(i,n.value);Ta(r,s=>a.value=s)}}pT(),nt(Lo);const xs={data(){return{hasStatus:!1,userStatus:{status:null,message:null,icon:null}}},methods:{async fetchUserStatus(e){if(!e)return;const r=sn();if(!(!Object.prototype.hasOwnProperty.call(r,"user_status")||!r.user_status.enabled)&&zn())try{const{data:i}=await He.get(ca("apps/user_status/api/v1/statuses/{userId}",{userId:e})),{status:n,message:a,icon:s}=i.ocs.data;this.userStatus.status=n,this.userStatus.message=a||"",this.userStatus.icon=s||"",this.hasStatus=!0}catch(i){if(i.response.status===404&&i.response.data.ocs?.data?.length===0)return;console.error(i)}}}},Is=ha("nextcloud").persist().build();function AT(e){const r=Is.getItem("user-has-avatar."+e);return typeof r=="string"?!!r:null}function A0(e,r){e&&Is.setItem("user-has-avatar."+e,r)}const ET={name:"NcAvatar",directives:{ClickOutside:dT},components:{DotsHorizontal:Io,NcActions:xo,NcButton:X0,NcIconSvgWrapper:J0,NcLoadingIcon:fa,NcUserStatusIcon:tT},mixins:[xs],props:{url:{type:String,default:void 0},iconClass:{type:String,default:void 0},user:{type:String,default:void 0},hideStatus:{type:Boolean,default:!1},showUserStatus:{type:Boolean,default:!0},verboseStatus:{type:Boolean,default:!1},showUserStatusCompact:{type:Boolean,default:!0},preloadedUserStatus:{type:Object,default:void 0},isGuest:{type:Boolean,default:!1},displayName:{type:String,default:void 0},size:{type:Number,default:32},noPlaceholder:{type:Boolean,default:!1},allowPlaceholder:{type:Boolean,default:!0},disableTooltip:{type:Boolean,default:!1},disableMenu:{type:Boolean,default:!1},tooltipMessage:{type:String,default:null},isNoUser:{type:Boolean,default:!1},menuContainer:{type:[String,Object,Element,Boolean],default:"body"}},data(){return{avatarUrlLoaded:null,avatarSrcSetLoaded:null,userDoesNotExist:!1,isAvatarLoaded:!1,isMenuLoaded:!1,contactsMenuLoading:!1,contactsMenuData:{},contactsMenuActions:[],contactsMenuOpenState:!1}},computed:{avatarAriaLabel(){if(this.hasMenu)return this.canDisplayUserStatus||this.showUserStatusIconOnAvatar?P("Avatar of {displayName}, {status}",{displayName:this.displayName??this.user,status:Ms(this.userStatus.status)}):P("Avatar of {displayName}",{displayName:this.displayName??this.user})},canDisplayUserStatus(){return!this.hideStatus&&this.showUserStatus&&this.hasStatus&&["online","away","busy","dnd"].includes(this.userStatus.status)},showUserStatusIconOnAvatar(){return!this.hideStatus&&this.showUserStatus&&!this.verboseStatus&&this.showUserStatusCompact&&this.hasStatus&&this.userStatus.status!=="dnd"&&this.userStatus.icon},userIdentifier(){return this.isDisplayNameDefined?this.displayName:this.isUserDefined?this.user:""},isUserDefined(){return typeof this.user<"u"},isDisplayNameDefined(){return typeof this.displayName<"u"},isUrlDefined(){return typeof this.url<"u"},hasMenu(){return this.disableMenu?!1:this.isMenuLoaded?this.menu.length>0:!(this.user===zn()?.uid||this.userDoesNotExist||this.url)},showInitials(){return!this.noPlaceholder&&this.allowPlaceholder&&this.userDoesNotExist&&!(this.iconClass||this.$slots.icon)},avatarStyle(){return{"--size":this.size+"px",lineHeight:this.showInitials?this.size+"px":0,fontSize:Math.round(this.size*.45)+"px"}},initialsWrapperStyle(){const{r:e,g:r,b:i}=h0(this.userIdentifier);return{backgroundColor:`rgba(${e}, ${r}, ${i}, 0.1)`}},initialsStyle(){const{r:e,g:r,b:i}=h0(this.userIdentifier);return{color:`rgb(${e}, ${r}, ${i})`}},tooltip(){return this.disableTooltip?!1:this.tooltipMessage?this.tooltipMessage:this.displayName},initials(){let e="?";if(this.showInitials){const r=this.userIdentifier.trim();if(r==="")return e;const i=r.match(/[\p{L}\p{N}\s]/gu);if(i==null)return e;const n=i.join(""),a=n.lastIndexOf(" ");e=String.fromCodePoint(n.codePointAt(0)),a!==-1&&(e=e.concat(String.fromCodePoint(n.codePointAt(a+1))))}return e.toLocaleUpperCase()},menu(){const e=this.contactsMenuActions.map(i=>{const n=cT(this.$router,i.hyperlink);return{ncActionComponent:n?Uc:xl,ncActionComponentProps:n?{to:n,icon:i.icon}:{href:i.hyperlink,icon:i.icon},text:i.title}});for(const i of uT(this.contactsMenuData))try{e.push({ncActionComponent:Ll,ncActionComponentProps:{},ncActionComponentHandlers:{click:()=>i.callback(this.contactsMenuData)},text:i.displayName(this.contactsMenuData),iconSvg:i.iconSvg(this.contactsMenuData)})}catch(n){Bs.error(`Failed to render ContactsMenu action ${i.id}`,{error:n,action:i})}function r(i){const n=document.createTextNode(i),a=document.createElement("p");return a.appendChild(n),a.innerHTML}if(!this.hideStatus&&this.showUserStatus&&(this.userStatus.icon||this.userStatus.message)){const i=` ${r(this.userStatus.icon)} `;return[{ncActionComponent:$c,ncActionComponentProps:{},iconSvg:this.userStatus.icon?i:void 0,text:`${this.userStatus.message}`}].concat(e)}return e}},watch:{url(){this.userDoesNotExist=!1,this.loadAvatarUrl()},user(){this.userDoesNotExist=!1,this.isMenuLoaded=!1,this.loadAvatarUrl()}},mounted(){this.loadAvatarUrl(),gn("settings:avatar:updated",this.loadAvatarUrl),gn("settings:display-name:updated",this.loadAvatarUrl),!this.hideStatus&&this.showUserStatus&&this.user&&!this.isNoUser&&(this.preloadedUserStatus?(this.userStatus.status=this.preloadedUserStatus.status||"",this.userStatus.message=this.preloadedUserStatus.message||"",this.userStatus.icon=this.preloadedUserStatus.icon||"",this.hasStatus=this.preloadedUserStatus.status!==null):this.fetchUserStatus(this.user),gn("user_status:status.updated",this.handleUserStatusUpdated))},beforeDestroy(){mn("settings:avatar:updated",this.loadAvatarUrl),mn("settings:display-name:updated",this.loadAvatarUrl),mn("user_status:status.updated",this.handleUserStatusUpdated)},methods:{t:P,handleUserStatusUpdated(e){this.user===e.userId&&(this.userStatus={status:e.status,icon:e.icon,message:e.message},this.hasStatus=e.status!==null)},async toggleMenu(e){e.type==="keydown"&&e.key!=="Enter"||(this.contactsMenuOpenState||await this.fetchContactsMenu(),this.contactsMenuOpenState=!this.contactsMenuOpenState)},closeMenu(){this.contactsMenuOpenState=!1},async fetchContactsMenu(){this.contactsMenuLoading=!0;try{const e=encodeURIComponent(this.user),{data:r}=await He.post(K0("contactsmenu/findOne"),`shareType=0&shareWith=${e}`);this.contactsMenuData=r,this.contactsMenuActions=r.topAction?[r.topAction].concat(r.actions):r.actions}catch{this.contactsMenuOpenState=!1}this.contactsMenuLoading=!1,this.isMenuLoaded=!0},loadAvatarUrl(){if(this.isAvatarLoaded=!1,!this.isUrlDefined&&(!this.isUserDefined||this.isNoUser||this.iconClass)){this.isAvatarLoaded=!0,this.userDoesNotExist=!0;return}if(this.isUrlDefined){this.updateImageIfValid(this.url);return}if(this.size<=64){const e=this.avatarUrlGenerator(this.user,64),r=[e+" 1x",this.avatarUrlGenerator(this.user,512)+" 8x"].join(", ");this.updateImageIfValid(e,r)}else{const e=this.avatarUrlGenerator(this.user,512);this.updateImageIfValid(e)}},avatarUrlGenerator(e,r){let i=lT(e,r,this.isGuest);return e===zn()?.uid&&typeof oc_userconfig<"u"&&(i+="?v="+oc_userconfig.avatar.version),i},updateImageIfValid(e,r=null){const i=AT(this.user);if(this.isUserDefined&&typeof i=="boolean"){this.isAvatarLoaded=!0,this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),i===!1&&(this.userDoesNotExist=!0);return}const n=new Image;n.onload=()=>{this.avatarUrlLoaded=e,r&&(this.avatarSrcSetLoaded=r),this.isAvatarLoaded=!0,A0(this.user,!0)},n.onerror=()=>{console.debug("Invalid avatar url",e),this.avatarUrlLoaded=null,this.avatarSrcSetLoaded=null,this.userDoesNotExist=!0,this.isAvatarLoaded=!1,A0(this.user,!1)},r&&(n.srcset=r),n.src=e}}};var DT=function(){var e=this,r=e._self._c;return r("span",{directives:[{name:"click-outside",rawName:"v-click-outside",value:e.closeMenu,expression:"closeMenu"}],ref:"main",staticClass:"avatardiv popovermenu-wrapper",class:{"avatardiv--unknown":e.userDoesNotExist,"avatardiv--with-menu":e.hasMenu,"avatardiv--with-menu-loading":e.contactsMenuLoading},style:e.avatarStyle,attrs:{title:e.tooltip}},[e._t("icon",function(){return[e.iconClass?r("span",{staticClass:"avatar-class-icon",class:e.iconClass}):e.isAvatarLoaded&&!e.userDoesNotExist?r("img",{attrs:{src:e.avatarUrlLoaded,srcset:e.avatarSrcSetLoaded,alt:""}}):e._e()]}),e.hasMenu&&e.menu.length===0?r("NcButton",{staticClass:"action-item action-item__menutoggle",attrs:{"aria-label":e.avatarAriaLabel,variant:"tertiary-no-background"},on:{click:e.toggleMenu},scopedSlots:e._u([{key:"icon",fn:function(){return[e.contactsMenuLoading?r("NcLoadingIcon"):r("DotsHorizontal",{attrs:{size:20}})]},proxy:!0}],null,!1,2617833509)}):e.hasMenu?r("NcActions",{attrs:{"aria-label":e.avatarAriaLabel,container:e.menuContainer,"force-menu":"","manual-open":"",open:e.contactsMenuOpenState,variant:"tertiary-no-background"},on:{"update:open":function(i){e.contactsMenuOpenState=i},click:e.toggleMenu},scopedSlots:e._u([e.contactsMenuLoading?{key:"icon",fn:function(){return[r("NcLoadingIcon")]},proxy:!0}:null],null,!0)},e._l(e.menu,function(i,n){return r(i.ncActionComponent,e._g(e._b({key:n,tag:"component",scopedSlots:e._u([i.iconSvg?{key:"icon",fn:function(){return[r("NcIconSvgWrapper",{attrs:{svg:i.iconSvg}})]},proxy:!0}:null],null,!0)},"component",i.ncActionComponentProps,!1),i.ncActionComponentHandlers),[e._v(" "+e._s(i.text)+" ")])}),1):e._e(),e.showUserStatusIconOnAvatar?r("span",{staticClass:"avatardiv__user-status avatardiv__user-status--icon"},[e._v(" "+e._s(e.userStatus.icon)+" ")]):e.canDisplayUserStatus?r("NcUserStatusIcon",{staticClass:"avatardiv__user-status",attrs:{status:e.userStatus.status,"aria-hidden":String(e.hasMenu)}}):e._e(),e.showInitials?r("span",{staticClass:"avatardiv__initials-wrapper",style:e.initialsWrapperStyle},[r("span",{staticClass:"avatardiv__initials",style:e.initialsStyle},[e._v(" "+e._s(e.initials)+" ")])]):e._e()],2)},ST=[],mT=It(ET,DT,ST,!1,null,"e37fc087");const gT=mT.exports,FT=8,E0=32,RT={name:"NcListItemIcon",components:{NcAvatar:gT,NcHighlight:Ys,NcIconSvgWrapper:J0},mixins:[xs],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:E0},noMargin:{type:Boolean,default:!1},displayName:{type:String,default:null},isNoUser:{type:Boolean,default:!1},id:{type:String,default:null}},setup(){return{margin:FT,defaultSize:E0}},computed:{hasIcon(){return this.icon!==""},hasIconSvg(){return this.iconSvg!==""},isValidSubname(){return this.subname?.trim?.()!==""},isSizeBigEnough(){return this.avatarSize>=26},cssVars(){const e=this.noMargin?0:this.margin;return{"--height":this.avatarSize+2*e+"px","--margin":this.margin+"px"}},searchParts(){const e=/^([^<]*)<([^>]+)>?$/,r=this.search.match(e);return this.isNoUser||!r?[this.search,this.search]:[r[1].trim(),r[2]]}},beforeMount(){!this.isNoUser&&!this.subname&&this.fetchUserStatus(this.user)}};var NT=function(){var e=this,r=e._self._c;return r("span",e._g({staticClass:"option",class:{"option--compact":e.avatarSize({...e,...r.props}),{}),ariaLabelClearSelected:{type:String,default:P("Clear selected")},ariaLabelCombobox:{type:String,default:null},ariaLabelListbox:{type:String,default:P("Options")},ariaLabelDeselectOption:{type:Function,default:e=>P("Deselect {option}",{option:e})},appendToBody:{type:Boolean,default:!0},calculatePosition:{type:Function,default:null},closeOnSelect:{type:Boolean,default:!0},keepOpen:{type:Boolean,default:!1},components:{type:Object,default:()=>({Deselect:{render:e=>e(Go,{props:{size:20,fillColor:"var(--vs-controls-color)"},style:{cursor:"pointer"}})}})},limit:{type:Number,default:null},disabled:{type:Boolean,default:!1},dropdownShouldOpen:{type:Function,default:({noDrop:e,open:r})=>e?!1:r},filterBy:{type:Function,default:null},inputClass:{type:[String,Object],default:null},inputId:{type:String,default:()=>`select-input-${Ar()}`},inputLabel:{type:String,default:null},labelOutside:{type:Boolean,default:!1},keyboardFocusBorder:{type:Boolean,default:!0},label:{type:String,default:null},loading:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},noWrap:{type:Boolean,default:!1},options:{type:Array,default:()=>[]},placeholder:{type:String,default:""},mapKeydown:{type:Function,default(e,r){return{...e,27:i=>{r.open&&i.stopPropagation(),e[27](i)}}}},uid:{type:String,default:()=>Ar()},placement:{type:String,default:"bottom"},resetFocusOnOptionsChange:{type:Boolean,default:!0},userSelect:{type:Boolean,default:!1},value:{type:[String,Number,Object,Array],default:void 0},modelValue:{type:[String,Number,Object,Array],default:null},required:{type:Boolean,default:!1}," ":{}},emits:[" ","input","update:modelValue","update:model-value"],setup(){const e=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-clickable-area")),r=Number.parseInt(window.getComputedStyle(document.body).getPropertyValue("--default-grid-baseline")),i=e-2*r,n=ti("value","input");return{avatarSize:i,model:n}},data(){return{search:""}},computed:{inputRequired(){return this.required?this.model===null||Array.isArray(this.model)&&this.model.length===0:null},localCalculatePosition(){return this.calculatePosition!==null?this.calculatePosition:(e,r,{width:i})=>{e.style.width=i;const n={name:"addClass",fn(l){return e.classList.add("vs__dropdown-menu--floating"),{}}},a={name:"togglePlacementClass",fn({placement:l}){return r.$el.classList.toggle("select--drop-up",l==="top"),e.classList.toggle("vs__dropdown-menu--floating-placement-top",l==="top"),{}}},s=()=>{Rc(r.$refs.toggle,e,{placement:this.placement,middleware:[Sc(-1),n,a,gc(),mc({limiter:Fc()})]}).then(({x:l,y:u})=>{Object.assign(e.style,{left:`${l}px`,top:`${u}px`,width:`${r.$refs.toggle.getBoundingClientRect().width}px`})})};return Dc(r.$refs.toggle,e,s)}},localFilterBy(){const e=/[^<]*<([^>]+)/;return this.filterBy!==null?this.filterBy:this.userSelect?(r,i,n)=>{const a=n.match(e);return a&&r.subname?.toLocaleLowerCase?.()?.indexOf(a[1].toLocaleLowerCase())>-1||`${i} ${r.subname}`.toLocaleLowerCase().indexOf(n.toLocaleLowerCase())>-1}:Qe.VueSelect.props.filterBy.default},localLabel(){return this.label!==null?this.label:this.userSelect?"displayName":Qe.VueSelect.props.label.default},propsToForward(){const e=[...Object.keys(Qe.VueSelect.props),...Qe.VueSelect.mixins.flatMap(r=>Object.keys(r.props??{}))];return{...Object.fromEntries(Object.entries(this.$props).filter(([r,i])=>e.includes(r))),value:this.model,calculatePosition:this.localCalculatePosition,closeOnSelect:this.closeOnSelect&&!this.keepOpen,filterBy:this.localFilterBy,label:this.localLabel}},listenersToForward(){return{...this.$listeners,input:e=>{this.model=e}}}},mounted(){!this.labelOutside&&!this.inputLabel&&!this.ariaLabelCombobox&&oe.util.warn("[NcSelect] An `inputLabel` or `ariaLabelCombobox` should be set. If an external label is used, `labelOutside` should be set to `true`."),this.inputLabel&&this.ariaLabelCombobox&&oe.util.warn("[NcSelect] Only one of `inputLabel` or `ariaLabelCombobox` should to be set.")},methods:{t:P}};var YT=function(){var e=this,r=e._self._c;return r("VueSelect",e._g(e._b({staticClass:"select",class:{"select--no-wrap":e.noWrap,"user-select":e.userSelect},on:{search:i=>e.search=i},scopedSlots:e._u([!e.labelOutside&&e.inputLabel?{key:"header",fn:function(){return[r("label",{staticClass:"select__label",attrs:{for:e.inputId}},[e._v(" "+e._s(e.inputLabel)+" ")])]},proxy:!0}:null,{key:"search",fn:function({attributes:i,events:n}){return[r("input",e._g(e._b({class:["vs__search",e.inputClass],attrs:{required:e.inputRequired,dir:"auto"}},"input",i,!1),n))]}},{key:"open-indicator",fn:function({attributes:i}){return[r("ChevronDown",e._b({style:{cursor:e.disabled?null:"pointer"},attrs:{"fill-color":"var(--vs-controls-color)",size:26}},"ChevronDown",i,!1))]}},{key:"option",fn:function(i){return[e._t("option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":32,name:i[e.localLabel],search:e.search}},"NcListItemIcon",i,!1)):r("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},null,i)]}},{key:"selected-option",fn:function(i){return[e._t("selected-option",function(){return[e.userSelect?r("NcListItemIcon",e._b({attrs:{"avatar-size":e.avatarSize,name:i[e.localLabel],"no-margin":"",search:e.search}},"NcListItemIcon",i,!1)):r("NcEllipsisedOption",{attrs:{name:String(i[e.localLabel]),search:e.search}})]},{vBind:i})]}},{key:"spinner",fn:function(i){return[i.loading?r("NcLoadingIcon"):e._e()]}},{key:"no-options",fn:function(){return[e._v(" "+e._s(e.t("No results"))+" ")]},proxy:!0},e._l(e.$scopedSlots,function(i,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)},"VueSelect",e.propsToForward,!1),e.listenersToForward))},MT=[],wT=It(bT,YT,MT,!1,null,null);const ks=wT.exports;nt(Ho);function ZT(e=[],r=[]){const i={},n=[];for(const a of e){const s=a.split("/");let[l,u]=[s.shift(),s.join("/")];u||(u=l,l=P("Global")),i[l]=i[l]||{continent:l,regions:[]},i[l].regions.push({label:Gs(u),cities:[],timezoneId:a})}for(const a of r){const{continent:s,label:l,timezoneId:u}=a;i[s]=i[s]||{continent:s,regions:[]},i[s].regions.push({label:l,cities:[],timezoneId:u})}for(const a in i)Object.prototype.hasOwnProperty.call(i,a)&&(i[a].regions.sort((s,l)=>s.labela.continent[]},value:{type:String,default:void 0},modelValue:{type:String,default:"floating"},uid:{type:[String,Number],default:()=>`tz-${Ar(5)}`}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:ti("value","input")}},computed:{placeholder(){return P("Type to search time zone")},selectedTimezone(){for(const e of this.additionalTimezones)if(e.timezoneId===this.model)return e;return{label:Gs(this.model),timezoneId:this.model}},options(){const e=_T(),r=ZT(e.listAllTimezones(),this.additionalTimezones);let i=[];return Object.values(r).forEach(n=>{i=i.concat(n.regions)}),i}},methods:{t:P,change(e){e&&(this.model=e.timezoneId)},isSelectable(e){return!e.timezoneId.startsWith("tz-group__")},filterBy(e,r,i){const n=i.trim().split(" ");return e.timezoneId.startsWith("tz-group__")?e.regions.some(a=>this.matchTimezoneId(a.timezoneId,n)):this.matchTimezoneId(e.timezoneId,n)},matchTimezoneId(e,r){return r.every(i=>e.toLowerCase().includes(i.toLowerCase()))}}};var CT=function(){var e=this,r=e._self._c;return r("NcSelect",{attrs:{"aria-label-combobox":e.t("Search for time zone"),clearable:!1,"filter-by":e.filterBy,multiple:!1,options:e.options,placeholder:e.placeholder,selectable:e.isSelectable,uid:e.uid,value:e.selectedTimezone,label:"label"},on:{"option:selected":e.change}})},LT=[],xT=It(BT,CT,LT,!1,null,null);const IT=xT.exports;function Hs(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function hn(e){return Hs(e)?new Date(e.getTime()):e==null?new Date(NaN):new Date(e)}function kT(e){return Hs(e)&&!isNaN(e.getTime())}function Us(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;if(!(r>=0&&r<=6))throw new RangeError("weekStartsOn must be between 0 and 6");var i=hn(e),n=i.getDay(),a=(n+7-r)%7;return i.setDate(i.getDate()-a),i.setHours(0,0,0,0),i}function js(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.firstDayOfWeek,n=i===void 0?0:i,a=r.firstWeekContainsDate,s=a===void 0?1:a;if(!(s>=1&&s<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7");for(var l=hn(e),u=l.getFullYear(),o=new Date(0),T=u+1;T>=u-1&&(o.setFullYear(T,0,s),o.setHours(0,0,0,0),o=Us(o,n),!(l.getTime()>=o.getTime()));T--);return o}function va(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.firstDayOfWeek,n=i===void 0?0:i,a=r.firstWeekContainsDate,s=a===void 0?1:a,l=hn(e),u=Us(l,n),o=js(l,{firstDayOfWeek:n,firstWeekContainsDate:s}),T=u.getTime()-o.getTime();return Math.round(T/(7*24*3600*1e3))+1}var Ps={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},GT=/\[([^\]]+)]|YYYY|YY?|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|m{1,2}|s{1,2}|Z{1,2}|S{1,3}|w{1,2}|x|X|a|A/g;function Wt(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2,i="".concat(Math.abs(e)),n=e<0?"-":"";i.length1&&arguments[1]!==void 0?arguments[1]:"",i=e>0?"-":"+",n=Math.abs(e),a=Math.floor(n/60),s=n%60;return i+Wt(a,2)+r+Wt(s,2)}var F0=function(e,r,i){var n=e<12?"AM":"PM";return i?n.toLocaleLowerCase():n},wr={Y:function(e){var r=e.getFullYear();return r<=9999?"".concat(r):"+".concat(r)},YY:function(e){return Wt(e.getFullYear(),4).substr(2)},YYYY:function(e){return Wt(e.getFullYear(),4)},M:function(e){return e.getMonth()+1},MM:function(e){return Wt(e.getMonth()+1,2)},MMM:function(e,r){return r.monthsShort[e.getMonth()]},MMMM:function(e,r){return r.months[e.getMonth()]},D:function(e){return e.getDate()},DD:function(e){return Wt(e.getDate(),2)},H:function(e){return e.getHours()},HH:function(e){return Wt(e.getHours(),2)},h:function(e){var r=e.getHours();return r===0?12:r>12?r%12:r},hh:function(){var e=wr.h.apply(wr,arguments);return Wt(e,2)},m:function(e){return e.getMinutes()},mm:function(e){return Wt(e.getMinutes(),2)},s:function(e){return e.getSeconds()},ss:function(e){return Wt(e.getSeconds(),2)},S:function(e){return Math.floor(e.getMilliseconds()/100)},SS:function(e){return Wt(Math.floor(e.getMilliseconds()/10),2)},SSS:function(e){return Wt(e.getMilliseconds(),3)},d:function(e){return e.getDay()},dd:function(e,r){return r.weekdaysMin[e.getDay()]},ddd:function(e,r){return r.weekdaysShort[e.getDay()]},dddd:function(e,r){return r.weekdays[e.getDay()]},A:function(e,r){var i=r.meridiem||F0;return i(e.getHours(),e.getMinutes(),!1)},a:function(e,r){var i=r.meridiem||F0;return i(e.getHours(),e.getMinutes(),!0)},Z:function(e){return g0(m0(e),":")},ZZ:function(e){return g0(m0(e))},X:function(e){return Math.floor(e.getTime()/1e3)},x:function(e){return e.getTime()},w:function(e,r){return va(e,{firstDayOfWeek:r.firstDayOfWeek,firstWeekContainsDate:r.firstWeekContainsDate})},ww:function(e,r){return Wt(wr.w(e,r),2)}};function fn(e,r){var i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=r?String(r):"YYYY-MM-DDTHH:mm:ss.SSSZ",a=hn(e);if(!kT(a))return"Invalid Date";var s=i.locale||Ps;return n.replace(GT,function(l,u){return u||(typeof wr[l]=="function"?"".concat(wr[l](a,s)):l)})}function R0(e){return jT(e)||UT(e)||HT()}function HT(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function UT(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function jT(e){if(Array.isArray(e)){for(var r=0,i=new Array(e.length);r68?i-1:i)*100+n,Ie({},wn,n)}),ht("YYYY",qT,wn),ht("M",Tr,function(e){return Ie({},Ti,parseInt(e,10)-1)}),ht("MM",_e,function(e){return Ie({},Ti,parseInt(e,10)-1)}),ht("MMM",Zr("monthsShort"),_r("monthsShort",Ti)),ht("MMMM",Zr("months"),_r("months",Ti)),ht("D",Tr,O0),ht("DD",_e,O0),ht(["H","h"],Tr,v0),ht(["HH","hh"],_e,v0),ht("m",Tr,y0),ht("mm",_e,y0),ht("s",Tr,b0),ht("ss",_e,b0),ht("S",zs,function(e){return Ie({},Zn,parseInt(e,10)*100)}),ht("SS",_e,function(e){return Ie({},Zn,parseInt(e,10)*10)}),ht("SSS",KT,Zn);function ed(e){return e.meridiemParse||/[ap]\.?m?\.?/i}function rd(e){return"".concat(e).toLowerCase().charAt(0)==="p"}ht(["A","a"],ed,function(e,r){var i=typeof r.isPM=="function"?r.isPM(e):rd(e);return{isPM:i}});function id(e){var r=e.match(/([+-]|\d\d)/g)||["-","0","0"],i=zT(r,3),n=i[0],a=i[1],s=i[2],l=parseInt(a,10)*60+parseInt(s,10);return l===0?0:n==="+"?-l:+l}ht(["Z","ZZ"],JT,function(e){return{offset:id(e)}}),ht("x",Vs,function(e){return{date:new Date(parseInt(e,10))}}),ht("X",XT,function(e){return{date:new Date(parseFloat(e)*1e3)}}),ht("d",zs,"weekday"),ht("dd",Zr("weekdaysMin"),_r("weekdaysMin","weekday")),ht("ddd",Zr("weekdaysShort"),_r("weekdaysShort","weekday")),ht("dddd",Zr("weekdays"),_r("weekdays","weekday")),ht("w",Tr,"week"),ht("ww",_e,"week");function nd(e,r){if(e!==void 0&&r!==void 0){if(r){if(e<12)return e+12}else if(e===12)return 0}return e}function ad(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Date,i=[0,0,1,0,0,0,0],n=[r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()],a=!0,s=0;s<7;s++)e[s]===void 0?i[s]=a?n[s]:i[s]:(i[s]=e[s],a=!1);return i}function sd(e,r,i,n,a,s,l){var u;return e<100&&e>=0?(u=new Date(e+400,r,i,n,a,s,l),isFinite(u.getFullYear())&&u.setFullYear(e)):u=new Date(e,r,i,n,a,s,l),u}function od(){for(var e,r=arguments.length,i=new Array(r),n=0;n=0?(i[0]+=400,e=new Date(Date.UTC.apply(Date,i)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(a)):e=new Date(Date.UTC.apply(Date,i)),e}function ld(e,r,i){var n=r.match(WT);if(!n)throw new Error;for(var a=n.length,s={},l=0;l2&&arguments[2]!==void 0?arguments[2]:{};try{var n=i.locale,a=n===void 0?Ps:n,s=i.backupDate,l=s===void 0?new Date:s,u=ld(e,r,a),o=u.year,T=u.month,c=u.day,d=u.hour,h=u.minute,p=u.second,D=u.millisecond,E=u.isPM,R=u.date,O=u.offset,v=u.weekday,M=u.week;if(R)return R;var z=[o,T,c,d,h,p,D];if(z[3]=nd(z[3],E),M!==void 0&&T===void 0&&c===void 0){var G=js(o===void 0?l:new Date(o,3),{firstDayOfWeek:a.firstDayOfWeek,firstWeekContainsDate:a.firstWeekContainsDate});return new Date(G.getTime()+(M-1)*7*24*3600*1e3)}var L,K=ad(z,l);return O!==void 0?(K[6]+=O*60*1e3,L=od.apply(void 0,R0(K))):L=sd.apply(void 0,R0(K)),v!==void 0&&L.getDay()!==v?new Date(NaN):L}catch{return new Date(NaN)}}function Fi(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Fi=function(r){return typeof r}:Fi=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Fi(e)}function Je(e,r,i){return r in e?Object.defineProperty(e,r,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[r]=i,e}function qn(){return qn=Object.assign||function(e){for(var r=1;r=0)&&(i[a]=e[a]);return i}function Td(e,r){if(e==null)return{};var i=cd(e,r),n,a;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(a=0;a=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Br(e,r){return dd(e)||hd(e,r)||fd(e,r)||pd()}function dd(e){if(Array.isArray(e))return e}function hd(e,r){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var i=[],n=!0,a=!1,s=void 0;try{for(var l=e[Symbol.iterator](),u;!(n=(u=l.next()).done)&&(i.push(u.value),!(r&&i.length===r));n=!0);}catch(o){a=!0,s=o}finally{try{!n&&l.return!=null&&l.return()}finally{if(a)throw s}}return i}}function fd(e,r){if(e){if(typeof e=="string")return M0(e,r);var i=Object.prototype.toString.call(e).slice(8,-1);if(i==="Object"&&e.constructor&&(i=e.constructor.name),i==="Map"||i==="Set")return Array.from(i);if(i==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return M0(e,r)}}function M0(e,r){(r==null||r>e.length)&&(r=e.length);for(var i=0,n=new Array(r);i1&&arguments[1]!==void 0?arguments[1]:0,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,l=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,u=new Date(e,r,i,n,a,s,l);return e<100&&e>=0&&u.setFullYear(e),u}function ye(e){return e instanceof Date&&!isNaN(e)}function pn(e){return Array.isArray(e)&&e.length===2&&e.every(ye)&&e[0]<=e[1]}function gd(e){return Array.isArray(e)&&e.every(ye)}function Sr(e){var r=new Date(e);if(ye(r))return r;for(var i=arguments.length,n=new Array(i>1?i-1:0),a=1;a1&&arguments[1]!==void 0?arguments[1]:document.body;if(!e||e===r)return null;var i=function(s,l){return getComputedStyle(s,null).getPropertyValue(l)},n=/(auto|scroll)/,a=n.test(i(e,"overflow")+i(e,"overflow-y")+i(e,"overflow-x"));return a?e:An(e.parentNode,r)}var _d={name:"Popup",inject:{prefixClass:{default:"mx"}},props:{visible:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!0}},data:function(){return{top:"",left:""}},watch:{visible:{immediate:!0,handler:function(e){var r=this;this.$nextTick(function(){e&&r.displayPopup()})}}},mounted:function(){var e=this;this.appendToBody&&document.body.appendChild(this.$el),this._clickoutEvent="ontouchend"in document?"touchstart":"mousedown",document.addEventListener(this._clickoutEvent,this.handleClickOutside);var r=this.$parent.$el;this._displayPopup=Md(function(){return e.displayPopup()}),this._scrollParent=An(r)||window,this._scrollParent.addEventListener("scroll",this._displayPopup),window.addEventListener("resize",this._displayPopup)},beforeDestroy:function(){this.appendToBody&&this.$el.parentNode&&this.$el.parentNode.removeChild(this.$el),document.removeEventListener(this._clickoutEvent,this.handleClickOutside),this._scrollParent.removeEventListener("scroll",this._displayPopup),window.removeEventListener("resize",this._displayPopup)},methods:{handleClickOutside:function(e){if(this.visible){var r=e.target,i=this.$el;i&&!i.contains(r)&&this.$emit("clickoutside",e)}},displayPopup:function(){if(this.visible){var e=this.$el,r=this.$parent.$el,i=this.appendToBody;this._popupRect||(this._popupRect=wd(e));var n=this._popupRect,a=n.width,s=n.height,l=Zd(r,a,s,i),u=l.left,o=l.top;this.left=u,this.top=o}}}};function ie(e,r,i,n,a,s,l,u,o,T){var c=typeof i=="function"?i.options:i;return e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0),i}var Bd=_d,Cd=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("transition",{attrs:{name:e.prefixClass+"-zoom-in-down"}},[e.visible?i("div",{class:e.prefixClass+"-datepicker-main "+e.prefixClass+"-datepicker-popup",style:{top:e.top,left:e.left,position:"absolute"}},[e._t("default")],2):e._e()])},Ld=[],xd=void 0,Id=ie({render:Cd,staticRenderFns:Ld},xd,Bd),kd=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M940.218182 107.054545h-209.454546V46.545455h-65.163636v60.50909H363.054545V46.545455H297.890909v60.50909H83.781818c-18.618182 0-32.581818 13.963636-32.581818 32.581819v805.236363c0 18.618182 13.963636 32.581818 32.581818 32.581818h861.090909c18.618182 0 32.581818-13.963636 32.581818-32.581818V139.636364c-4.654545-18.618182-18.618182-32.581818-37.236363-32.581819zM297.890909 172.218182V232.727273h65.163636V172.218182h307.2V232.727273h65.163637V172.218182h176.872727v204.8H116.363636V172.218182h181.527273zM116.363636 912.290909V442.181818h795.927273v470.109091H116.363636z"}})])},Gd=[],Hd=void 0,Ud=ie({render:kd,staticRenderFns:Gd},Hd,{}),jd=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M0 0h24v24H0z",fill:"none"}}),e._v(" "),i("path",{attrs:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}}),e._v(" "),i("path",{attrs:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}})])},Pd=[],zd=void 0,Vd=ie({render:jd,staticRenderFns:Pd},zd,{}),$d=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("svg",{attrs:{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024",width:"1em",height:"1em"}},[i("path",{attrs:{d:"M810.005333 274.005333l-237.994667 237.994667 237.994667 237.994667-60.010667 60.010667-237.994667-237.994667-237.994667 237.994667-60.010667-60.010667 237.994667-237.994667-237.994667-237.994667 60.010667-60.010667 237.994667 237.994667 237.994667-237.994667z"}})])},Qd=[],Wd=void 0,Kd=ie({render:$d,staticRenderFns:Qd},Wd,{}),qd={props:{type:String,disabled:Boolean},inject:{prefixClass:{default:"mx"}}},Jd=qd,Xd=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("button",e._g({class:[e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-icon-"+e.type,{disabled:e.disabled}],attrs:{type:"button",disabled:e.disabled}},e.$listeners),[i("i",{class:e.prefixClass+"-icon-"+e.type})])},th=[],eh=void 0,ba=ie({render:Xd,staticRenderFns:th},eh,Jd),rh={name:"TableDate",components:{IconButton:ba},inject:{getLocale:{default:function(){return Fr}},getWeek:{default:function(){return va}},prefixClass:{default:"mx"},onDateMouseEnter:{default:void 0},onDateMouseLeave:{default:void 0}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},showWeekNumber:{type:Boolean,default:!1},titleFormat:{type:String,default:"YYYY-MM-DD"},getRowClasses:{type:Function,default:function(){return[]}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{firstDayOfWeek:function(){return this.getLocale().formatLocale.firstDayOfWeek||0},yearMonth:function(){var e=this.getLocale(),r=e.yearFormat,i=e.monthBeforeYear,n=e.monthFormat,a=n===void 0?"MMM":n,s={panel:"year",label:this.formatDate(this.calendar,r)},l={panel:"month",label:this.formatDate(this.calendar,a)};return i?[l,s]:[s,l]},days:function(){var e=this.getLocale(),r=e.days||e.formatLocale.weekdaysMin;return r.concat(r).slice(this.firstDayOfWeek,this.firstDayOfWeek+7)},dates:function(){var e=this.calendar.getFullYear(),r=this.calendar.getMonth(),i=Nd({firstDayOfWeek:this.firstDayOfWeek,year:e,month:r});return ya(i,7)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,r.getMonth()+1,0),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1);break;case"last-month":r.setMonth(r.getMonth(),0),r.setHours(23,59,59,999);break;case"next-month":r.setMonth(r.getMonth()+1);break}return this.disabledCalendarChanger(r,e)},handleIconLeftClick:function(){this.$emit("changecalendar",ta(this.calendar,function(e){return e-1}),"last-month")},handleIconRightClick:function(){this.$emit("changecalendar",ta(this.calendar,function(e){return e+1}),"next-month")},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(e){this.$emit("changepanel",e)},handleMouseEnter:function(e){typeof this.onDateMouseEnter=="function"&&this.onDateMouseEnter(e)},handleMouseLeave:function(e){typeof this.onDateMouseLeave=="function"&&this.onDateMouseLeave(e)},handleCellClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-row-col");if(i){var n=i.split(",").map(function(o){return parseInt(o,10)}),a=Br(n,2),s=a[0],l=a[1],u=this.dates[s][l];this.$emit("select",new Date(u))}},formatDate:function(e,r){return fn(e,r,{locale:this.getLocale().formatLocale})},getCellTitle:function(e){var r=this.titleFormat;return this.formatDate(e,r)},getWeekNumber:function(e){return this.getWeek(e,this.getLocale().formatLocale)}}},ih=rh,nh=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-date"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"left",disabled:e.isDisabledArrows("last-month")},on:{click:e.handleIconLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("icon-button",{attrs:{type:"right",disabled:e.isDisabledArrows("next-month")},on:{click:e.handleIconRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},e._l(e.yearMonth,function(n){return i("button",{key:n.panel,class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-btn-current-"+n.panel,attrs:{type:"button"},on:{click:function(a){return e.handlePanelChange(n.panel)}}},[e._v(` `+e._s(n.label)+` `)])}),0)],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-date"},[i("thead",[i("tr",[e.showWeekNumber?i("th",{class:e.prefixClass+"-week-number-header"}):e._e(),e._v(" "),e._l(e.days,function(n){return i("th",{key:n},[e._v(e._s(n))])})],2)]),e._v(" "),i("tbody",{on:{click:e.handleCellClick}},e._l(e.dates,function(n,a){return i("tr",{key:a,class:[e.prefixClass+"-date-row",e.getRowClasses(n)]},[e.showWeekNumber?i("td",{class:e.prefixClass+"-week-number",attrs:{"data-row-col":a+",0"}},[e._v(` `+e._s(e.getWeekNumber(n[0]))+` `)]):e._e(),e._v(" "),e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-row-col":a+","+l,title:e.getCellTitle(s)},on:{mouseenter:function(u){return e.handleMouseEnter(s)},mouseleave:function(u){return e.handleMouseLeave(s)}}},[i("div",[e._v(e._s(s.getDate()))])])})],2)}),0)])])])},ah=[],sh=void 0,oh=ie({render:nh,staticRenderFns:ah},sh,ih),lh={name:"TableMonth",components:{IconButton:ba},inject:{getLocale:{default:function(){return Fr}},prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}}},computed:{calendarYear:function(){return this.calendar.getFullYear()},months:function(){var e=this.getLocale(),r=e.months||e.formatLocale.monthsShort,i=r.map(function(n,a){return{text:n,month:a}});return ya(i,3)}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-year":r.setFullYear(r.getFullYear()-1,11,31),r.setHours(23,59,59,999);break;case"next-year":r.setFullYear(r.getFullYear()+1,0,1);break}return this.disabledCalendarChanger(r,e)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e-1}),"last-year")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e+1}),"next-year")},handlePanelChange:function(){this.$emit("changepanel","year")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-month");i&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},uh=lh,ch=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-month"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-year")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-year")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text",attrs:{type:"button"},on:{click:e.handlePanelChange}},[e._v(` `+e._s(e.calendarYear)+` `)])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-month",on:{click:e.handleClick}},e._l(e.months,function(n,a){return i("tr",{key:a},e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s.month),attrs:{"data-month":s.month}},[i("div",[e._v(e._s(s.text))])])}),0)}),0)])])},Th=[],dh=void 0,hh=ie({render:ch,staticRenderFns:Th},dh,uh),fh={name:"TableYear",components:{IconButton:ba},inject:{prefixClass:{default:"mx"}},props:{disabledCalendarChanger:{type:Function,default:function(){return!1}},calendar:{type:Date,default:function(){return new Date}},getCellClasses:{type:Function,default:function(){return[]}},getYearPanel:{type:Function}},computed:{years:function(){var e=new Date(this.calendar);return typeof this.getYearPanel=="function"?this.getYearPanel(e):this.getYears(e)},firstYear:function(){return this.years[0][0]},lastYear:function(){var e=function(r){return r[r.length-1]};return e(e(this.years))}},methods:{isDisabledArrows:function(e){var r=new Date(this.calendar);switch(e){case"last-decade":r.setFullYear(this.firstYear-1,11,31),r.setHours(23,59,59,999);break;case"next-decade":r.setFullYear(this.lastYear+1,0,1);break}return this.disabledCalendarChanger(r,e)},getYears:function(e){for(var r=Math.floor(e.getFullYear()/10)*10,i=[],n=0;n<10;n++)i.push(r+n);return ya(i,2)},handleIconDoubleLeftClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e-10}),"last-decade")},handleIconDoubleRightClick:function(){this.$emit("changecalendar",mr(this.calendar,function(e){return e+10}),"next-decade")},handleClick:function(e){var r=e.target;r.tagName.toUpperCase()==="DIV"&&(r=r.parentNode);var i=r.getAttribute("data-year");i&&!r.classList.contains("disabled")&&this.$emit("select",parseInt(i,10))}}},ph=fh,Ah=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-calendar "+e.prefixClass+"-calendar-panel-year"},[i("div",{class:e.prefixClass+"-calendar-header"},[i("icon-button",{attrs:{type:"double-left",disabled:e.isDisabledArrows("last-decade")},on:{click:e.handleIconDoubleLeftClick}}),e._v(" "),i("icon-button",{attrs:{type:"double-right",disabled:e.isDisabledArrows("next-decade")},on:{click:e.handleIconDoubleRightClick}}),e._v(" "),i("span",{class:e.prefixClass+"-calendar-header-label"},[i("span",[e._v(e._s(e.firstYear))]),e._v(" "),i("span",{class:e.prefixClass+"-calendar-decade-separator"}),e._v(" "),i("span",[e._v(e._s(e.lastYear))])])],1),e._v(" "),i("div",{class:e.prefixClass+"-calendar-content"},[i("table",{class:e.prefixClass+"-table "+e.prefixClass+"-table-year",on:{click:e.handleClick}},e._l(e.years,function(n,a){return i("tr",{key:a},e._l(n,function(s,l){return i("td",{key:l,staticClass:"cell",class:e.getCellClasses(s),attrs:{"data-year":s}},[i("div",[e._v(e._s(s))])])}),0)}),0)])])},Eh=[],Dh=void 0,Sh=ie({render:Ah,staticRenderFns:Eh},Dh,ph),ir={name:"CalendarPanel",inject:{prefixClass:{default:"mx"},dispatchDatePicker:{default:function(){return function(){}}}},props:{value:{},defaultValue:{default:function(){var e=new Date;return e.setHours(0,0,0,0),e}},defaultPanel:{type:String},disabledCalendarChanger:{type:Function,default:function(){return!1}},disabledDate:{type:Function,default:function(){return!1}},type:{type:String,default:"date"},getClasses:{type:Function,default:function(){return[]}},showWeekNumber:{type:Boolean,default:void 0},getYearPanel:{type:Function},titleFormat:{type:String,default:"YYYY-MM-DD"},calendar:Date,partialUpdate:{type:Boolean,default:!1}},data:function(){var e=["date","month","year"],r=Math.max(e.indexOf(this.type),e.indexOf(this.defaultPanel)),i=r!==-1?e[r]:"date";return{panel:i,innerCalendar:new Date}},computed:{innerValue:function(){var e=Array.isArray(this.value)?this.value:[this.value],r={year:Fd,month:Xn,date:Rd},i=r[this.type]||r.date;return e.filter(ye).map(function(n){return i(n)})},calendarYear:function(){return this.innerCalendar.getFullYear()},calendarMonth:function(){return this.innerCalendar.getMonth()}},watch:{value:{immediate:!0,handler:"initCalendar"},calendar:{handler:"initCalendar"},defaultValue:{handler:"initCalendar"}},methods:{initCalendar:function(){var e=this.calendar;if(!ye(e)){var r=this.innerValue.length;e=Sr(r>0?this.innerValue[r-1]:this.defaultValue)}this.innerCalendar=Xn(e)},isDisabled:function(e){return this.disabledDate(new Date(e),this.innerValue)},emitDate:function(e,r){this.isDisabled(e)||(this.$emit("select",e,r,this.innerValue),this.dispatchDatePicker("pick",e,r))},handleCalendarChange:function(e,r){var i=new Date(this.innerCalendar);this.innerCalendar=e,this.$emit("update:calendar",e),this.dispatchDatePicker("calendar-change",e,i,r)},handelPanelChange:function(e){var r=this.panel;this.panel=e,this.dispatchDatePicker("panel-change",e,r)},handleSelectYear:function(e){if(this.type==="year"){var r=this.getYearCellDate(e);this.emitDate(r,"year")}else if(this.handleCalendarChange(ve(e,this.calendarMonth),"year"),this.handelPanelChange("month"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(e),this.emitDate(i,"year")}},handleSelectMonth:function(e){if(this.type==="month"){var r=this.getMonthCellDate(e);this.emitDate(r,"month")}else if(this.handleCalendarChange(ve(this.calendarYear,e),"month"),this.handelPanelChange("date"),this.partialUpdate&&this.innerValue.length===1){var i=new Date(this.innerValue[0]);i.setFullYear(this.calendarYear),this.emitDate(ta(i,e),"month")}},handleSelectDate:function(e){this.emitDate(e,this.type==="week"?"week":"date")},getMonthCellDate:function(e){return ve(this.calendarYear,e)},getYearCellDate:function(e){return ve(e,0)},getDateClasses:function(e){var r=e.getMonth()!==this.calendarMonth,i=[];e.getTime()===new Date().setHours(0,0,0,0)&&i.push("today"),r&&i.push("not-current-month");var n=this.getStateClass(e);return n==="active"&&r||i.push(n),i.concat(this.getClasses(e,this.innerValue,i.join(" ")))},getMonthClasses:function(e){var r=[];if(this.type!=="month"){this.calendarMonth===e&&r.push("active");var i=this.getMonthCellDate(e);return this.disabledCalendarChanger(i,"month")&&r.push("disabled"),r}var n=this.getMonthCellDate(e);return r.push(this.getStateClass(n)),r.concat(this.getClasses(n,this.innerValue,r.join(" ")))},getYearClasses:function(e){var r=[];if(this.type!=="year"){this.calendarYear===e&&r.push("active");var i=this.getYearCellDate(e);return this.disabledCalendarChanger(i,"year")&&r.push("disabled"),r}var n=this.getYearCellDate(e);return r.push(this.getStateClass(n)),r.concat(this.getClasses(n,this.innerValue,r.join(" ")))},getStateClass:function(e){return this.isDisabled(e)?"disabled":this.innerValue.some(function(r){return r.getTime()===e.getTime()})?"active":""},getWeekState:function(e){if(this.type!=="week")return"";var r=e[0].getTime(),i=e[6].getTime(),n=this.innerValue.some(function(a){var s=a.getTime();return s>=r&&s<=i});return n?"".concat(this.prefixClass,"-active-week"):""}},render:function(){var e=arguments[0],r=this.panel,i=this.innerCalendar;return r==="year"?e(Sh,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getYearClasses,getYearPanel:this.getYearPanel},on:{select:this.handleSelectYear,changecalendar:this.handleCalendarChange}}):r==="month"?e(hh,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getMonthClasses},on:{select:this.handleSelectMonth,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}}):e(oh,{attrs:{disabledCalendarChanger:this.disabledCalendarChanger,calendar:i,getCellClasses:this.getDateClasses,getRowClasses:this.getWeekState,titleFormat:this.titleFormat,showWeekNumber:typeof this.showWeekNumber=="boolean"?this.showWeekNumber:this.type==="week"},class:Je({},"".concat(this.prefixClass,"-calendar-week-mode"),this.type==="week"),on:{select:this.handleSelectDate,changepanel:this.handelPanelChange,changecalendar:this.handleCalendarChange}})}},Cr={name:"CalendarRange",components:{CalendarPanel:ir},provide:function(){return{onDateMouseEnter:this.onDateMouseEnter,onDateMouseLeave:this.onDateMouseLeave}},inject:{prefixClass:{default:"mx"}},props:At({},ir.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=pn(this.value)?this.value:[new Date(NaN),new Date(NaN)];var r=this.innerValue.map(function(i,n){return Xn(Sr(i,e.defaultValues[n]))});this.updateCalendars(r)}}},methods:{handleSelect:function(e,r){var i=Br(this.innerValue,2),n=i[0],a=i[1];ye(n)&&!ye(a)?(n.getTime()>e.getTime()?this.innerValue=[e,n]:this.innerValue=[n,e],this.emitDate(this.innerValue,r)):this.innerValue=[e,new Date(NaN)]},onDateMouseEnter:function(e){this.hoveredValue=e},onDateMouseLeave:function(){this.hoveredValue=null},emitDate:function(e,r){this.$emit("select",e,r)},updateStartCalendar:function(e){this.updateCalendars([e,this.calendars[1]],1)},updateEndCalendar:function(e){this.updateCalendars([this.calendars[0],e],0)},updateCalendars:function(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,i=this.getCalendarGap(e);if(i){var n=new Date(e[r]);n.setMonth(n.getMonth()+(r===0?-i:i)),e[r]=n}this.calendars=e},getCalendarGap:function(e){var r=Br(e,2),i=r[0],n=r[1],a=n.getFullYear()-i.getFullYear(),s=n.getMonth()-i.getMonth(),l=a*12+s,u=this.calendarMinDiff,o=this.calendarMaxDiff;return lo?o-l:0},getRangeClasses:function(e,r,i){var n=[].concat(this.getClasses(e,r,i));if(/disabled|active/.test(i))return n;var a=function(s,l){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(D){return D.getTime()},o=u(s),T=l.map(u),c=Br(T,2),d=c[0],h=c[1];if(d>h){var p=[h,d];d=p[0],h=p[1]}return o>d&&o"u")return 0;if(di!==void 0)return di;var e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",e.style.width="100px",e.style.position="absolute",e.style.top="-9999px",document.body.appendChild(e);var r=document.createElement("div");return r.style.width="100%",e.appendChild(r),di=e.offsetWidth-r.offsetWidth,e.parentNode.removeChild(e),di}var gh={inject:{prefixClass:{default:"mx"}},data:function(){return{scrollbarWidth:0,thumbTop:"",thumbHeight:""}},created:function(){this.scrollbarWidth=mh(),document.addEventListener("mouseup",this.handleDragend)},beforeDestroy:function(){document.addEventListener("mouseup",this.handleDragend)},mounted:function(){this.$nextTick(this.getThumbSize)},methods:{getThumbSize:function(){var e=this.$refs.wrap;if(e){var r=e.clientHeight*100/e.scrollHeight;this.thumbHeight=r<100?"".concat(r,"%"):""}},handleScroll:function(e){var r=e.currentTarget,i=r.scrollHeight,n=r.scrollTop;this.thumbTop="".concat(n*100/i,"%")},handleDragstart:function(e){e.stopImmediatePropagation(),this._draggable=!0;var r=this.$refs.thumb.offsetTop;this._prevY=e.clientY-r,document.addEventListener("mousemove",this.handleDraging)},handleDraging:function(e){if(this._draggable){var r=e.clientY,i=this.$refs.wrap,n=i.scrollHeight,a=i.clientHeight,s=r-this._prevY,l=s*n/a;i.scrollTop=l}},handleDragend:function(){this._draggable&&(this._draggable=!1,document.removeEventListener("mousemove",this.handleDraging))}}},Fh=gh,Rh=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-scrollbar",style:{position:"relative",overflow:"hidden"}},[i("div",{ref:"wrap",class:e.prefixClass+"-scrollbar-wrap",style:{marginRight:"-"+e.scrollbarWidth+"px"},on:{scroll:e.handleScroll}},[e._t("default")],2),e._v(" "),i("div",{class:e.prefixClass+"-scrollbar-track"},[i("div",{ref:"thumb",class:e.prefixClass+"-scrollbar-thumb",style:{height:e.thumbHeight,top:e.thumbTop},on:{mousedown:e.handleDragstart}})])])},Nh=[],Oh=void 0,Ks=ie({render:Rh,staticRenderFns:Nh},Oh,Fh),_n=function(e){return e=parseInt(e,10),e<10?"0".concat(e):"".concat(e)},Bn=function(e,r,i){if(Array.isArray(i))return i.filter(function(s){return s>=0&&s2&&arguments[2]!==void 0?arguments[2]:0;if(n<=0){requestAnimationFrame(function(){r.scrollTop=i});return}var a=i-r.scrollTop,s=a/n*10;requestAnimationFrame(function(){var l=r.scrollTop+s;if(l>=i){r.scrollTop=i;return}r.scrollTop=l,e(r,i,n-10)})},yh={name:"ListColumns",components:{ScrollbarVertical:Ks},inject:{prefixClass:{default:"mx"}},props:{date:Date,scrollDuration:{type:Number,default:100},getClasses:{type:Function,default:function(){return[]}},hourOptions:Array,minuteOptions:Array,secondOptions:Array,showHour:{type:Boolean,default:!0},showMinute:{type:Boolean,default:!0},showSecond:{type:Boolean,default:!0},hourStep:{type:Number,default:1},minuteStep:{type:Number,default:1},secondStep:{type:Number,default:1},use12h:{type:Boolean,default:!1}},computed:{columns:function(){var e=[];return this.showHour&&e.push({type:"hour",list:this.getHoursList()}),this.showMinute&&e.push({type:"minute",list:this.getMinutesList()}),this.showSecond&&e.push({type:"second",list:this.getSecondsList()}),this.use12h&&e.push({type:"ampm",list:this.getAMPMList()}),e.filter(function(r){return r.list.length>0})}},watch:{date:{handler:function(){var e=this;this.$nextTick(function(){e.scrollToSelected(e.scrollDuration)})}}},mounted:function(){this.scrollToSelected(0)},methods:{getHoursList:function(){var e=this;return Bn(this.use12h?12:24,this.hourStep,this.hourOptions).map(function(r){var i=new Date(e.date),n=_n(r);e.use12h&&(r===0&&(n="12"),i.getHours()>=12&&(r+=12));var a=i.setHours(r);return{value:a,text:n}})},getMinutesList:function(){var e=this;return Bn(60,this.minuteStep,this.minuteOptions).map(function(r){var i=new Date(e.date).setMinutes(r);return{value:i,text:_n(r)}})},getSecondsList:function(){var e=this;return Bn(60,this.secondStep,this.secondOptions).map(function(r){var i=new Date(e.date).setSeconds(r);return{value:i,text:_n(r)}})},getAMPMList:function(){var e=this;return["AM","PM"].map(function(r,i){var n=new Date(e.date),a=n.setHours(n.getHours()%12+i*12);return{text:r,value:a}})},scrollToSelected:function(e){for(var r=this.$el.querySelectorAll(".active"),i=0;i0&&arguments[0]!==void 0?arguments[0]:"",r=e.split(":");if(r.length>=2){var i=parseInt(r[0],10),n=parseInt(r[1],10);return{hours:i,minutes:n}}return null}var _h=function(e,r){e&&(e.scrollTop=r)},Bh={name:"ListOptions",components:{ScrollbarVertical:Ks},inject:{getLocale:{default:function(){return Fr}},prefixClass:{default:"mx"}},props:{date:Date,options:{type:[Object,Function],default:function(){return[]}},format:{type:String,default:"HH:mm:ss"},getClasses:{type:Function,default:function(){return[]}}},computed:{list:function(){var e=[],r=this.options;if(typeof r=="function")return r()||[];var i=Cn(r.start),n=Cn(r.end),a=Cn(r.step),s=r.format||this.format;if(i&&n&&a)for(var l=i.minutes+i.hours*60,u=n.minutes+n.hours*60,o=a.minutes+a.hours*60,T=Math.floor((u-l)/o),c=0;c<=T;c++){var d=l+c*o,h=Math.floor(d/60),p=d%60,D=new Date(this.date).setHours(h,p,0);e.push({value:D,text:this.formatDate(D,s)})}return e}},mounted:function(){this.scrollToSelected()},methods:{formatDate:function(e,r){return fn(e,r,{locale:this.getLocale().formatLocale})},scrollToSelected:function(){var e=this.$el.querySelector(".active");if(e){var r=An(e,this.$el);if(r){var i=e.offsetTop;_h(r,i)}}},handleSelect:function(e){this.$emit("select",e,"time")}}},Ch=Bh,Lh=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("scrollbar-vertical",e._l(e.list,function(n){return i("div",{key:n.value,class:[e.prefixClass+"-time-option",e.getClasses(n.value)],on:{click:function(a){return e.handleSelect(n.value)}}},[e._v(` `+e._s(n.text)+` `)])}),0)},xh=[],Ih=void 0,kh=ie({render:Lh,staticRenderFns:xh},Ih,Ch),Gh={name:"TimePanel",components:{ListColumns:Zh,ListOptions:kh},inject:{getLocale:{default:function(){return Fr}},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:Sr(this.value,this.defaultValue)}},computed:{title:function(){var e=this.timeTitleFormat,r=new Date(this.innerValue);return this.formatDate(r,e)},innerForamt:function(){return typeof this.format=="string"?this.format:"HH:mm:ss"},ShowHourMinuteSecondAMPM:function(){var e=this,r=this.innerForamt,i={showHour:/[HhKk]/.test(r),showMinute:/m/.test(r),showSecond:/s/.test(r),use12h:/a/i.test(r)},n={};return Object.keys(i).forEach(function(a){n[a]=typeof e[a]=="boolean"?e[a]:i[a]}),n}},watch:{value:{immediate:!0,handler:function(){this.innerValue=Sr(this.value,this.defaultValue)}}},methods:{formatDate:function(e,r){return fn(e,r,{locale:this.getLocale().formatLocale})},isDisabledTime:function(e){return this.disabledTime(new Date(e))},isDisabledHour:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setMinutes(0,0,0))&&this.isDisabledTime(r.setMinutes(59,59,999))},isDisabledMinute:function(e){var r=new Date(e);return this.isDisabledTime(r)&&this.isDisabledTime(r.setSeconds(0,0))&&this.isDisabledTime(r.setSeconds(59,999))},isDisabledAMPM:function(e){var r=new Date(e),i=r.getHours()<12?0:12,n=i+11;return this.isDisabledTime(r)&&this.isDisabledTime(r.setHours(i,0,0,0))&&this.isDisabledTime(r.setHours(n,59,59,999))},isDisabled:function(e,r){return r==="hour"?this.isDisabledHour(e):r==="minute"?this.isDisabledMinute(e):r==="ampm"?this.isDisabledAMPM(e):this.isDisabledTime(e)},handleSelect:function(e,r){var i=new Date(e);this.isDisabled(e,r)||(this.innerValue=i,this.isDisabledTime(i)||this.$emit("select",i,r))},handleClickTitle:function(){this.$emit("clicktitle")},getClasses:function(e,r){var i=new Date(e);return this.isDisabled(e,r)?"disabled":i.getTime()===this.innerValue.getTime()?"active":""}}},Hh=Gh,Uh=function(){var e=this,r=e.$createElement,i=e._self._c||r;return i("div",{class:e.prefixClass+"-time"},[e.showTimeHeader?i("div",{class:e.prefixClass+"-time-header"},[i("button",{class:e.prefixClass+"-btn "+e.prefixClass+"-btn-text "+e.prefixClass+"-time-header-title",attrs:{type:"button"},on:{click:e.handleClickTitle}},[e._v(` `+e._s(e.title)+` `)])]):e._e(),e._v(" "),i("div",{class:e.prefixClass+"-time-content"},[e.timePickerOptions?i("list-options",{attrs:{date:e.innerValue,"get-classes":e.getClasses,options:e.timePickerOptions,format:e.innerForamt},on:{select:e.handleSelect}}):i("list-columns",e._b({attrs:{date:e.innerValue,"get-classes":e.getClasses,"hour-options":e.hourOptions,"minute-options":e.minuteOptions,"second-options":e.secondOptions,"hour-step":e.hourStep,"minute-step":e.minuteStep,"second-step":e.secondStep,"scroll-duration":e.scrollDuration},on:{select:e.handleSelect}},"list-columns",e.ShowHourMinuteSecondAMPM,!1))],1)])},jh=[],Ph=void 0,Pe=ie({render:Uh,staticRenderFns:jh},Ph,Hh),Lr={name:"TimeRange",inject:{prefixClass:{default:"mx"}},props:At({},Pe.props),data:function(){return{startValue:new Date(NaN),endValue:new Date(NaN)}},watch:{value:{immediate:!0,handler:function(){if(pn(this.value)){var e=Br(this.value,2),r=e[0],i=e[1];this.startValue=r,this.endValue=i}else this.startValue=new Date(NaN),this.endValue=new Date(NaN)}}},methods:{emitChange:function(e,r){var i=[this.startValue,this.endValue];this.$emit("select",i,e==="time"?"time-range":e,r)},handleSelectStart:function(e,r){this.startValue=e,this.endValue.getTime()>=e.getTime()||(this.endValue=e),this.emitChange(r,0)},handleSelectEnd:function(e,r){this.endValue=e,this.startValue.getTime()<=e.getTime()||(this.startValue=e),this.emitChange(r,1)},disabledStartTime:function(e){return this.disabledTime(e,0)},disabledEndTime:function(e){return e.getTime()2&&arguments[2]!==void 0?arguments[2]:!0;this.userInput=null;var n=Array.isArray(e)?e.map(this.date2value):this.date2value(e);return this.$emit("input",n),this.$emit("change",n,r),i&&this.closePopup(),n},isValidValue:function(e){return this.validMultipleType?gd(e):this.range?pn(e):ye(e)},isValidValueAndNotDisabled:function(e){if(!this.isValidValue(e))return!1;var r=typeof this.disabledDate=="function"?this.disabledDate:function(){return!1},i=typeof this.disabledTime=="function"?this.disabledTime:function(){return!1};return Array.isArray(e)||(e=[e]),e.every(function(n){return!r(n)&&!i(n)})},handleMultipleDates:function(e,r){if(this.validMultipleType&&r){var i=r.filter(function(n){return n.getTime()!==e.getTime()});return i.length===r.length&&i.push(e),i}return e},handleSelectDate:function(e,r,i){e=this.handleMultipleDates(e,i),this.confirm?this.currentValue=e:this.emitValue(e,r,!this.validMultipleType&&(r===this.type||r==="time"))},clear:function(){this.emitValue(this.range?[null,null]:null),this.$emit("clear")},handleClear:function(e){e.stopPropagation(),this.clear()},handleConfirmDate:function(){var e=this.emitValue(this.currentValue);this.$emit("confirm",e)},handleSelectShortcut:function(e){var r=e.currentTarget.getAttribute("data-index"),i=this.shortcuts[parseInt(r,10)];if(fe(i)&&typeof i.onClick=="function"){var n=i.onClick(this);n&&this.emitValue(n)}},openPopup:function(e){this.popupVisible||this.disabled||(this.defaultOpen=!0,this.$emit("open",e),this.$emit("update:open",!0))},closePopup:function(){this.popupVisible&&(this.defaultOpen=!1,this.$emit("close"),this.$emit("update:open",!1))},blur:function(){this.$refs.input&&this.$refs.input.blur()},focus:function(){this.$refs.input&&this.$refs.input.focus()},handleInputChange:function(){var e=this;if(!(!this.editable||this.userInput===null)){var r=this.userInput.trim();if(this.userInput=null,r===""){this.clear();return}var i;if(this.validMultipleType)i=r.split(this.innerRangeSeparator).map(function(a){return e.parseDate(a.trim())});else if(this.range){var n=r.split(this.innerRangeSeparator);n.length!==2&&(n=r.split(this.innerRangeSeparator.trim())),i=n.map(function(a){return e.parseDate(a.trim())})}else i=this.parseDate(r);this.isValidValueAndNotDisabled(i)?(this.emitValue(i),this.blur()):this.$emit("input-error",r)}},handleInputInput:function(e){this.userInput=typeof e=="string"?e:e.target.value},handleInputKeydown:function(e){var r=e.keyCode;r===9?this.closePopup():r===13&&this.handleInputChange()},handleInputBlur:function(e){this.$emit("blur",e)},handleInputFocus:function(e){this.openPopup(e),this.$emit("focus",e)},hasSlot:function(e){return!!(this.$slots[e]||this.$scopedSlots[e])},renderSlot:function(e,r,i){var n=this.$scopedSlots[e];return n?n(i)||r:this.$slots[e]||r},renderInput:function(){var e=this.$createElement,r=this.prefixClass,i=At({name:"date",type:"text",autocomplete:"off",value:this.text,class:this.inputClass||"".concat(this.prefixClass,"-input"),readonly:!this.editable,disabled:this.disabled,placeholder:this.placeholder},this.inputAttr),n=i.value,a=i.class,s=Td(i,["value","class"]),l={keydown:this.handleInputKeydown,focus:this.handleInputFocus,blur:this.handleInputBlur,input:this.handleInputInput,change:this.handleInputChange},u=this.renderSlot("input",e("input",{domProps:{value:n},class:a,attrs:At({},s),on:At({},l),ref:"input"}),{props:i,events:l}),o=this.type==="time"?e(Vd):e(Ud);return e("div",{class:"".concat(r,"-input-wrapper"),on:{mouseenter:this.handleMouseEnter,mouseleave:this.handleMouseLeave,click:this.openPopup},ref:"inputWrapper"},[u,this.showClearIcon?e("i",{class:"".concat(r,"-icon-clear"),on:{click:this.handleClear}},[this.renderSlot("icon-clear",e(Kd))]):e("i",{class:"".concat(r,"-icon-calendar")},[this.renderSlot("icon-calendar",o)])])},renderContent:function(){var e=this.$createElement,r=this.range?Vh:zh,i=r[this.type]||r.default,n=At({},gr(this.$props,Object.keys(i.props)),{value:this.currentValue}),a=At({},gr(this.$listeners,i.emits||[]),{select:this.handleSelectDate}),s=e(i,Qr([{},{props:n,on:a,ref:"picker"}]));return e("div",{class:"".concat(this.prefixClass,"-datepicker-body")},[this.renderSlot("content",s,{value:this.currentValue,emit:this.handleSelectDate})])},renderSidebar:function(){var e=this,r=this.$createElement,i=this.prefixClass;return r("div",{class:"".concat(i,"-datepicker-sidebar")},[this.renderSlot("sidebar",null,{value:this.currentValue,emit:this.handleSelectDate}),this.shortcuts.map(function(n,a){return r("button",{key:a,attrs:{"data-index":a,type:"button"},class:"".concat(i,"-btn ").concat(i,"-btn-text ").concat(i,"-btn-shortcut"),on:{click:e.handleSelectShortcut}},[n.text])})])},renderHeader:function(){var e=this.$createElement;return e("div",{class:"".concat(this.prefixClass,"-datepicker-header")},[this.renderSlot("header",null,{value:this.currentValue,emit:this.handleSelectDate})])},renderFooter:function(){var e=this.$createElement,r=this.prefixClass;return e("div",{class:"".concat(r,"-datepicker-footer")},[this.renderSlot("footer",null,{value:this.currentValue,emit:this.handleSelectDate}),this.confirm?e("button",{attrs:{type:"button"},class:"".concat(r,"-btn ").concat(r,"-datepicker-btn-confirm"),on:{click:this.handleConfirmDate}},[this.confirmText]):null])}},render:function(){var e,r=arguments[0],i=this.prefixClass,n=this.inline,a=this.disabled,s=this.hasSlot("sidebar")||this.shortcuts.length?this.renderSidebar():null,l=r("div",{class:"".concat(i,"-datepicker-content")},[this.hasSlot("header")?this.renderHeader():null,this.renderContent(),this.hasSlot("footer")||this.confirm?this.renderFooter():null]);return r("div",{class:(e={},Je(e,"".concat(i,"-datepicker"),!0),Je(e,"".concat(i,"-datepicker-range"),this.range),Je(e,"".concat(i,"-datepicker-inline"),n),Je(e,"disabled",a),e)},[n?null:this.renderInput(),n?r("div",{class:"".concat(i,"-datepicker-main")},[s,l]):r(Id,{ref:"popup",class:this.popupClass,style:this.popupStyle,attrs:{visible:this.popupVisible,appendToBody:this.appendToBody},on:{clickoutside:this.handleClickOutSide}},[s,l])])}};qe.locale=Ws,qe.install=function(e){e.component(qe.name,qe)},typeof window<"u"&&window.Vue&&qe.install(window.Vue),qn(qe,{CalendarPanel:ir,CalendarRange:Cr,TimePanel:Pe,TimeRange:Lr,DatetimePanel:Ya,DatetimeRange:qs}),nt(jo);const $h={name:"CalendarBlankIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Qh=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon calendar-blank-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},Wh=[],Kh=It($h,Qh,Wh,!1,null,null);const qh=Kh.exports,Jh={name:"WebIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var Xh=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon web-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},t1=[],e1=It(Jh,Xh,t1,!1,null,null);const r1=e1.exports,w0={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD H:mm:ss",year:"YYYY",month:"YYYY-MM",time:"H:mm:ss",week:"w"},i1={name:"NcDateTimePicker",components:{CalendarBlank:qh,DatePicker:qe,NcPopover:Po,NcTimezonePicker:IT,Web:r1},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{clearable:{type:Boolean,default:!1},minuteStep:{type:Number,default:10},type:{type:String,default:"date",validator:e=>["date","time","datetime","week","month","year","date-range","time-range","datetime-range"].includes(e)},format:{type:[String,Function],default:null},formatter:{type:Object,default:null},lang:{type:Object,default:null},value:{default:void 0},modelValue:{default:()=>new Date},timezoneId:{type:String,default:"UTC"},showTimezoneSelect:{type:Boolean,default:!1},highlightTimezone:{type:Boolean,default:!1},appendToBody:{type:Boolean,default:!1},showWeekNumber:{type:Boolean,default:!1},placeholder:{type:String,default:null},range:{type:Boolean,default:!1}},emits:["update:value","update:modelValue","update:model-value","update:timezone-id"],setup(){return{model:ti("value","update:value"),timezoneDialogHeaderId:`timezone-dialog-header-${Ar()}`}},data(){return{showTimezonePopover:!1,tzVal:this.timezoneId}},computed:{realType(){return this.type.split("-")[0]},defaultLang(){return{formatLocale:{months:Ul(),monthsShort:jl(),weekdays:kl(),weekdaysShort:Gl(),weekdaysMin:Hl(),firstDayOfWeek:Il()},monthFormat:"MMMM"}},defaultPlaceholder(){return this.realType==="time"?P("Pick a time"):this.realType==="month"?P("Pick a month"):this.realType==="year"?P("Pick a year"):this.realType==="week"?P("Pick a week"):this.realType==="date"?P("Pick a date"):P("Pick a date and a time")},internalRange(){return this.range||this.type.endsWith("-range")},internalFormat(){return this.format&&typeof this.format=="string"?this.format:w0[this.realType]||w0.date},internalFormatter(){return{getWeek:e=>{const r=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate()));r.setUTCDate(r.getUTCDate()+4-(r.getUTCDay()||7));const i=new Date(Date.UTC(r.getUTCFullYear(),0,1));return Math.ceil(((r-i)/864e5+1)/7)},...typeof this.format=="function"?{stringify:this.format}:{},...this.formatter??{}}}},methods:{t:P,handleSelectYear(e){const r=this.$refs.datepicker.currentValue;if(r)try{const i=new Date(new Date(r).setFullYear(e));this.$refs.datepicker.selectDate(i)}catch{console.error("Invalid value",r,e)}},handleSelectMonth(e){const r=this.$refs.datepicker.currentValue;if(r)try{const i=new Date(new Date(r).setMonth(e));this.$refs.datepicker.selectDate(i)}catch{console.error("Invalid value",r,e)}},toggleTimezonePopover(){this.showTimezoneSelect&&(this.showTimezonePopover=!this.showTimezonePopover)}}};var n1=function(){var e=this,r=e._self._c;return r("DatePicker",e._g(e._b({ref:"datepicker",attrs:{"append-to-body":e.appendToBody,clearable:e.clearable,format:e.internalFormat,formatter:e.internalFormatter,lang:e.lang?e.lang:e.defaultLang,"minute-step":e.minuteStep,placeholder:e.placeholder?e.placeholder:e.defaultPlaceholder,"popup-class":{"show-week-number":e.showWeekNumber},range:e.internalRange,"show-week-number":e.showWeekNumber,type:e.realType,value:e.model},on:{"select-year":e.handleSelectYear,"select-month":e.handleSelectMonth,input:function(i){e.model=i}},scopedSlots:e._u([{key:"icon-calendar",fn:function(){return[e.showTimezoneSelect?r("NcPopover",{attrs:{"popup-role":"dialog",shown:e.showTimezonePopover,"popover-base-class":"timezone-select__popper"},on:{"update:shown":function(i){e.showTimezonePopover=i}},scopedSlots:e._u([{key:"trigger",fn:function({attrs:i}){return[r("button",e._b({staticClass:"datetime-picker-inline-icon",class:{"datetime-picker-inline-icon--highlighted":e.highlightTimezone},on:{mousedown:function(n){return n.stopPropagation(),n.preventDefault(),(()=>{}).apply(null,arguments)}}},"button",i,!1),[r("Web",{attrs:{size:20}})],1)]}}],null,!1,270852355)},[r("div",{attrs:{role:"dialog","aria-labelledby":e.timezoneDialogHeaderId}},[r("div",{staticClass:"timezone-popover-wrapper__label"},[r("strong",{attrs:{id:e.timezoneDialogHeaderId}},[e._v(" "+e._s(e.t("Please select a time zone:"))+" ")])]),r("NcTimezonePicker",{staticClass:"timezone-popover-wrapper__timezone-select",on:{input:function(i){return e.$emit("update:timezone-id",arguments[0])}},model:{value:e.tzVal,callback:function(i){e.tzVal=i},expression:"tzVal"}})],1)]):r("CalendarBlank",{attrs:{size:20}})]},proxy:!0},e._l(e.$scopedSlots,function(i,n){return{key:n,fn:function(a){return[e._t(n,null,null,a)]}}})],null,!0)},"DatePicker",e.$attrs,!1),e.$listeners))},a1=[],s1=It(i1,n1,a1,!1,null,"9cec8c69");const o1=s1.exports;es(o1);const l1=["date","datetime-local","month","time","week"],u1={name:"NcDateTimePickerNative",inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:Date,default:void 0},modelValue:{type:Date,default:null},id:{type:String,default:()=>"date-time-picker-"+Ar(),validator:e=>e.trim()!==""},type:{type:String,default:"date",validate:e=>l1.includes(e)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input","update:modelValue","update:model-value"],setup(){return{model:ti("value","input")}},computed:{formattedValue(){return this.formatValue(this.model)},formattedMin(){return this.min?this.formatValue(this.min):!1},formattedMax(){return this.max?this.formatValue(this.max):!1},listeners(){return{...this.$listeners,input:e=>{if(isNaN(e.target.valueAsNumber))this.model=null;else if(this.type==="time"){const r=e.target.value;if(this.model===""){const{yyyy:i,MM:n,dd:a}=this.getReadableDate(new Date);this.model=new Date(`${i}-${n}-${a}T${r}`)}else{const{yyyy:i,MM:n,dd:a}=this.getReadableDate(this.model);this.model=new Date(`${i}-${n}-${a}T${r}`)}}else if(this.type==="month"){const r=(new Date(e.target.value).getMonth()+1).toString().padStart(2,"0");if(this.model===""){const{yyyy:i,dd:n,hh:a,mm:s}=this.getReadableDate(new Date);this.model=new Date(`${i}-${r}-${n}T${a}:${s}`)}else{const{yyyy:i,dd:n,hh:a,mm:s}=this.getReadableDate(this.model);this.model=new Date(`${i}-${r}-${n}T${a}:${s}`)}}else{const r=new Date(e.target.valueAsNumber).getTimezoneOffset()*1e3*60,i=e.target.valueAsNumber+r;this.model=new Date(i)}}}}},methods:{getReadableDate(e){if(e instanceof Date){const r=e.getFullYear().toString().padStart(4,"0"),i=(e.getMonth()+1).toString().padStart(2,"0"),n=e.getDate().toString().padStart(2,"0"),a=e.getHours().toString().padStart(2,"0"),s=e.getMinutes().toString().padStart(2,"0");return{yyyy:r,MM:i,dd:n,hh:a,mm:s}}},formatValue(e){if(e instanceof Date){const{yyyy:r,MM:i,dd:n,hh:a,mm:s}=this.getReadableDate(e);if(this.type==="datetime-local")return`${r}-${i}-${n}T${a}:${s}`;if(this.type==="date")return`${r}-${i}-${n}`;if(this.type==="month")return`${r}-${i}`;if(this.type==="time")return`${a}:${s}`;if(this.type==="week"){const l=new Date(r,0,1),u=Math.floor((e-l)/(24*60*60*1e3)),o=Math.ceil(u/7);return`${r}-W${o}`}}else return""}}};var c1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"native-datetime-picker"},[r("label",{staticClass:"native-datetime-picker--label",class:{"hidden-visually":e.hideLabel},attrs:{for:e.id}},[e._v(" "+e._s(e.label)+" ")]),r("input",e._g(e._b({staticClass:"native-datetime-picker--input",class:e.inputClass,attrs:{id:e.id,type:e.type,min:e.formattedMin,max:e.formattedMax},domProps:{value:e.formattedValue}},"input",e.$attrs,!1),e.listeners))])},T1=[],d1=It(u1,c1,T1,!1,null,"9e776556");const h1=d1.exports;es(h1);const f1={name:"AlertCircleOutlineIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var p1=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon alert-circle-outline-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},A1=[],E1=It(f1,p1,A1,!1,null,null);const D1=E1.exports,S1={name:"CheckIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}};var m1=function(){var e=this,r=e._self._c;return r("span",e._b({staticClass:"material-design-icon check-icon",attrs:{"aria-hidden":e.title?null:"true","aria-label":e.title,role:"img"},on:{click:function(i){return e.$emit("click",i)}}},"span",e.$attrs,!1),[r("svg",{staticClass:"material-design-icon__svg",attrs:{fill:e.fillColor,width:e.size,height:e.size,viewBox:"0 0 24 24"}},[r("path",{attrs:{d:"M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z"}},[e.title?r("title",[e._v(e._s(e.title))]):e._e()])])])},g1=[],F1=It(S1,m1,g1,!1,null,null);const R1=F1.exports,N1={name:"NcInputField",components:{NcButton:X0,AlertCircle:D1,Check:R1},inheritAttrs:!1,model:{prop:"modelValue",event:"update:modelValue"},props:{value:{type:[String,Number],default:void 0},modelValue:{type:[String,Number],default:void 0},type:{type:String,default:"text",validator:e=>["text","password","email","tel","url","search","number"].includes(e)},label:{type:String,default:void 0},labelOutside:{type:Boolean,default:!1},placeholder:{type:String,default:void 0},showTrailingButton:{type:Boolean,default:!1},trailingButtonLabel:{type:String,default:""},success:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{type:String,default:""},disabled:{type:Boolean,default:!1},pill:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["update:value","update:modelValue","update:model-value","trailing-button-click"],setup(){return{model:ti("value","update:value",!0)}},computed:{computedId(){return this.$attrs.id&&this.$attrs.id!==""?this.$attrs.id:this.inputName},inputName(){return"input"+Ar()},hasTrailingIcon(){return this.success},hasPlaceholder(){return this.placeholder!==""&&this.placeholder!==void 0},computedPlaceholder(){return this.hasPlaceholder?this.placeholder:this.label},isValidLabel(){const e=this.label||this.labelOutside;return e||console.warn("You need to add a label to the NcInputField component. Either use the prop label or use an external one, as per the example in the documentation."),e},ariaDescribedby(){const e=[];return this.helperText.length>0&&e.push(`${this.inputName}-helper-text`),this.$attrs["aria-describedby"]&&e.push(this.$attrs["aria-describedby"]),e.join(" ")||null}},methods:{focus(){this.$refs.input.focus()},select(){this.$refs.input.select()},handleInput(e){const r=this.type==="number"&&typeof this.model=="number"?parseFloat(e.target.value,10):e.target.value;this.model=r},handleTrailingButtonClick(e){this.$emit("trailing-button-click",e)}}};var O1=function(){var e=this,r=e._self._c;return r("div",{staticClass:"input-field",class:{"input-field--disabled":e.disabled,"input-field--label-outside":e.labelOutside||!e.isValidLabel,"input-field--leading-icon":!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,"input-field--trailing-icon":e.showTrailingButton||e.hasTrailingIcon,"input-field--pill":e.pill}},[r("div",{staticClass:"input-field__main-wrapper"},[r("input",e._g(e._b({ref:"input",staticClass:"input-field__input",class:[e.inputClass,{"input-field__input--success":e.success,"input-field__input--error":e.error}],attrs:{id:e.computedId,type:e.type,disabled:e.disabled,placeholder:e.computedPlaceholder,"aria-describedby":e.ariaDescribedby,"aria-live":"polite"},domProps:{value:e.model?.toString()},on:{input:e.handleInput}},"input",e.$attrs,!1),e.$listeners)),!e.labelOutside&&e.isValidLabel?r("label",{staticClass:"input-field__label",attrs:{for:e.computedId}},[e._v(" "+e._s(e.label)+" ")]):e._e(),r("div",{directives:[{name:"show",rawName:"v-show",value:!!e.$scopedSlots.icon||!!e.$scopedSlots.default||!!e.$slots.default,expression:"!!$scopedSlots.icon || !!$scopedSlots.default || !!$slots.default"}],staticClass:"input-field__icon input-field__icon--leading"},[e._t("icon",function(){return[e._t("default")]})],2),e.showTrailingButton?r("NcButton",{staticClass:"input-field__trailing-button",attrs:{"aria-label":e.trailingButtonLabel,disabled:e.disabled,variant:"tertiary-no-background"},on:{click:e.handleTrailingButtonClick},scopedSlots:e._u([{key:"icon",fn:function(){return[e._t("trailing-button-icon")]},proxy:!0}],null,!0)}):e.success||e.error?r("div",{staticClass:"input-field__icon input-field__icon--trailing"},[e.success?r("Check",{staticStyle:{color:"var(--color-success-text)"},attrs:{size:20}}):e.error?r("AlertCircle",{staticStyle:{color:"var(--color-error-text)"},attrs:{size:20}}):e._e()],1):e._e()],1),e.helperText.length>0?r("p",{staticClass:"input-field__helper-text-message",class:{"input-field__helper-text-message--error":e.error,"input-field__helper-text-message--success":e.success},attrs:{id:`${e.inputName}-helper-text`}},[e.success?r("Check",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e.error?r("AlertCircle",{staticClass:"input-field__helper-text-message__icon",attrs:{size:18}}):e._e(),e._v(" "+e._s(e.helperText)+" ")],1):e._e()])},v1=[],y1=It(N1,O1,v1,!1,null,"8f3abf17");const hi=y1.exports;nt(zo),nr("core","capabilities",{}).password_policy,new Set(Object.keys(hi.props)),{...hi.props},pa(async function(e){try{const{data:r}=await He.post(ca("apps/password_policy/api/v1/validate"),{password:e});if(this.isValid=r.ocs.data.passed,r.ocs.data.passed){this.internalHelpMessage=P("Password is secure"),this.$emit("valid");return}this.internalHelpMessage=r.ocs.data.reason,this.$emit("invalid")}catch(r){Bs.error("Password policy returned an error",r)}},500),nt(Vo,rs),new Set(Object.keys(hi.props)),{...hi.props},nt(is),P("Submit"),nt($o),ha("nextcloud").persist().build(),sn().theming?.name;const Z0=nr("core","active-app",$0),Ln=nr("core","apps",{});Array.isArray(Ln)?Ln.find(e=>e.id===Z0)?.name:Ln[Z0]?.name,window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),nt(Qo),window.OCP?.Accessibility?.disableKeyboardShortcuts?.(),nt(Wo),nt(Ko),nt(qo,rs),nt(ns,Jo);P("Search…"),nt(Xo),P("Settings"),nt(tl),pa(function(){this.selectedSection="",document.activeElement.className.includes("navigation-list__link")&&document.activeElement.blur()},300);let b1="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",Y1=(e=21)=>{let r="",i=e|0;for(;i--;)r+=b1[Math.random()*64|0];return r};function Ri(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Ri=function(r){return typeof r}:Ri=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Ri(e)}var Js={selector:"vue-portal-target-".concat(Y1())},M1=function(e){return Js.selector=e},xn=typeof window<"u"&&(typeof document>"u"?"undefined":Ri(document))!==void 0,w1=oe.extend({abstract:!0,name:"PortalOutlet",props:["nodes","tag"],data:function(e){return{updatedNodes:e.nodes}},render:function(e){var r=this.updatedNodes&&this.updatedNodes();return r?r.length===1&&!r[0].text?r:e(this.tag||"DIV",r):e()},destroyed:function(){var e=this.$el;e&&e.parentNode.removeChild(e)}}),Z1=oe.extend({name:"VueSimplePortal",props:{disabled:{type:Boolean},prepend:{type:Boolean},selector:{type:String,default:function(){return"#".concat(Js.selector)}},tag:{type:String,default:"DIV"}},render:function(e){if(this.disabled){var r=this.$scopedSlots&&this.$scopedSlots.default();return r?r.length<2&&!r[0].text?r:e(this.tag,r):e()}return e()},created:function(){this.getTargetEl()||this.insertTargetEl()},updated:function(){var e=this;this.$nextTick(function(){!e.disabled&&e.slotFn!==e.$scopedSlots.default&&(e.container.updatedNodes=e.$scopedSlots.default),e.slotFn=e.$scopedSlots.default})},beforeDestroy:function(){this.unmount()},watch:{disabled:{immediate:!0,handler:function(e){e?this.unmount():this.$nextTick(this.mount)}}},methods:{getTargetEl:function(){if(xn)return document.querySelector(this.selector)},insertTargetEl:function(){if(xn){var e=document.querySelector("body"),r=document.createElement(this.tag);r.id=this.selector.substring(1),e.appendChild(r)}},mount:function(){if(xn){var e=this.getTargetEl(),r=document.createElement("DIV");this.prepend&&e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),this.container=new w1({el:r,parent:this,propsData:{tag:this.tag,nodes:this.$scopedSlots.default}})}},unmount:function(){this.container&&(this.container.$destroy(),delete this.container)}}});function _1(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};e.component(r.name||"portal",Z1),r.defaultSelector&&M1(r.defaultSelector)}typeof window<"u"&&window.Vue&&window.Vue===oe&&oe.use(_1),nt();const B1="aaa1rp3bb0ott3vie4c1le2ogado5udhabi7c0ademy5centure6ountant0s9o1tor4d0s1ult4e0g1ro2tna4f0l1rica5g0akhan5ency5i0g1rbus3force5tel5kdn3l0ibaba4pay4lfinanz6state5y2sace3tom5m0azon4ericanexpress7family11x2fam3ica3sterdam8nalytics7droid5quan4z2o0l2partments8p0le4q0uarelle8r0ab1mco4chi3my2pa2t0e3s0da2ia2sociates9t0hleta5torney7u0ction5di0ble3o3spost5thor3o0s4w0s2x0a2z0ure5ba0by2idu3namex4d1k2r0celona5laycard4s5efoot5gains6seball5ketball8uhaus5yern5b0c1t1va3cg1n2d1e0ats2uty4er2rlin4st0buy5t2f1g1h0arti5i0ble3d1ke2ng0o3o1z2j1lack0friday9ockbuster8g1omberg7ue3m0s1w2n0pparibas9o0ats3ehringer8fa2m1nd2o0k0ing5sch2tik2on4t1utique6x2r0adesco6idgestone9oadway5ker3ther5ussels7s1t1uild0ers6siness6y1zz3v1w1y1z0h3ca0b1fe2l0l1vinklein9m0era3p2non3petown5ital0one8r0avan4ds2e0er0s4s2sa1e1h1ino4t0ering5holic7ba1n1re3c1d1enter4o1rn3f0a1d2g1h0anel2nel4rity4se2t2eap3intai5ristmas6ome4urch5i0priani6rcle4sco3tadel4i0c2y3k1l0aims4eaning6ick2nic1que6othing5ud3ub0med6m1n1o0ach3des3ffee4llege4ogne5m0mbank4unity6pany2re3uter5sec4ndos3struction8ulting7tact3ractors9oking4l1p2rsica5untry4pon0s4rses6pa2r0edit0card4union9icket5own3s1uise0s6u0isinella9v1w1x1y0mru3ou3z2dad1nce3ta1e1ing3sun4y2clk3ds2e0al0er2s3gree4livery5l1oitte5ta3mocrat6ntal2ist5si0gn4v2hl2iamonds6et2gital5rect0ory7scount3ver5h2y2j1k1m1np2o0cs1tor4g1mains5t1wnload7rive4tv2ubai3nlop4pont4rban5vag2r2z2earth3t2c0o2deka3u0cation8e1g1mail3erck5nergy4gineer0ing9terprises10pson4quipment8r0icsson6ni3s0q1tate5t1u0rovision8s2vents5xchange6pert3osed4ress5traspace10fage2il1rwinds6th3mily4n0s2rm0ers5shion4t3edex3edback6rrari3ero6i0delity5o2lm2nal1nce1ial7re0stone6mdale6sh0ing5t0ness6j1k1lickr3ghts4r2orist4wers5y2m1o0o0d1tball6rd1ex2sale4um3undation8x2r0ee1senius7l1ogans4ntier7tr2ujitsu5n0d2rniture7tbol5yi3ga0l0lery3o1up4me0s3p1rden4y2b0iz3d0n2e0a1nt0ing5orge5f1g0ee3h1i0ft0s3ves2ing5l0ass3e1obal2o4m0ail3bh2o1x2n1odaddy5ld0point6f2o0dyear5g0le4p1t1v2p1q1r0ainger5phics5tis4een3ipe3ocery4up4s1t1u0cci3ge2ide2tars5ru3w1y2hair2mburg5ngout5us3bo2dfc0bank7ealth0care8lp1sinki6re1mes5iphop4samitsu7tachi5v2k0t2m1n1ockey4ldings5iday5medepot5goods5s0ense7nda3rse3spital5t0ing5t0els3mail5use3w2r1sbc3t1u0ghes5yatt3undai7ibm2cbc2e1u2d1e0ee3fm2kano4l1m0amat4db2mo0bilien9n0c1dustries8finiti5o2g1k1stitute6urance4e4t0ernational10uit4vestments10o1piranga7q1r0ish4s0maili5t0anbul7t0au2v3jaguar4va3cb2e0ep2tzt3welry6io2ll2m0p2nj2o0bs1urg4t1y2p0morgan6rs3uegos4niper7kaufen5ddi3e0rryhotels6properties14fh2g1h1i0a1ds2m1ndle4tchen5wi3m1n1oeln3matsu5sher5p0mg2n2r0d1ed3uokgroup8w1y0oto4z2la0caixa5mborghini8er3nd0rover6xess5salle5t0ino3robe5w0yer5b1c1ds2ease3clerc5frak4gal2o2xus4gbt3i0dl2fe0insurance9style7ghting6ke2lly3mited4o2ncoln4k2ve1ing5k1lc1p2oan0s3cker3us3l1ndon4tte1o3ve3pl0financial11r1s1t0d0a3u0ndbeck6xe1ury5v1y2ma0drid4if1son4keup4n0agement7go3p1rket0ing3s4riott5shalls7ttel5ba2c0kinsey7d1e0d0ia3et2lbourne7me1orial6n0u2rckmsd7g1h1iami3crosoft7l1ni1t2t0subishi9k1l0b1s2m0a2n1o0bi0le4da2e1i1m1nash3ey2ster5rmon3tgage6scow4to0rcycles9v0ie4p1q1r1s0d2t0n1r2u0seum3ic4v1w1x1y1z2na0b1goya4me2vy3ba2c1e0c1t0bank4flix4work5ustar5w0s2xt0direct7us4f0l2g0o2hk2i0co2ke1on3nja3ssan1y5l1o0kia3rton4w0ruz3tv4p1r0a1w2tt2u1yc2z2obi1server7ffice5kinawa6layan0group9lo3m0ega4ne1g1l0ine5oo2pen3racle3nge4g0anic5igins6saka4tsuka4t2vh3pa0ge2nasonic7ris2s1tners4s1y3y2ccw3e0t2f0izer5g1h0armacy6d1ilips5one2to0graphy6s4ysio5ics1tet2ures6d1n0g1k2oneer5zza4k1l0ace2y0station9umbing5s3m1n0c2ohl2ker3litie5rn2st3r0axi3ess3ime3o0d0uctions8f1gressive8mo2perties3y5tection8u0dential9s1t1ub2w0c2y2qa1pon3uebec3st5racing4dio4e0ad1lestate6tor2y4cipes5d0stone5umbrella9hab3ise0n3t2liance6n0t0als5pair3ort3ublican8st0aurant8view0s5xroth6ich0ardli6oh3l1o1p2o0cks3deo3gers4om3s0vp3u0gby3hr2n2w0e2yukyu6sa0arland6fe0ty4kura4le1on3msclub4ung5ndvik0coromant12ofi4p1rl2s1ve2xo3b0i1s2c0b1haeffler7midt4olarships8ol3ule3warz5ience5ot3d1e0arch3t2cure1ity6ek2lect4ner3rvices6ven3w1x0y3fr2g1h0angrila6rp3ell3ia1ksha5oes2p0ping5uji3w3i0lk2na1gles5te3j1k0i0n2y0pe4l0ing4m0art3ile4n0cf3o0ccer3ial4ftbank4ware6hu2lar2utions7ng1y2y2pa0ce3ort2t3r0l2s1t0ada2ples4r1tebank4farm7c0group6ockholm6rage3e3ream4udio2y3yle4u0cks3pplies3y2ort5rf1gery5zuki5v1watch4iss4x1y0dney4stems6z2tab1ipei4lk2obao4rget4tamotors6r2too4x0i3c0i2d0k2eam2ch0nology8l1masek5nnis4va3f1g1h0d1eater2re6iaa2ckets5enda4ps2res2ol4j0maxx4x2k0maxx5l1m0all4n1o0day3kyo3ols3p1ray3shiba5tal3urs3wn2yota3s3r0ade1ing4ining5vel0ers0insurance16ust3v2t1ube2i1nes3shu4v0s2w1z2ua1bank3s2g1k1nicom3versity8o2ol2ps2s1y1z2va0cations7na1guard7c1e0gas3ntures6risign5mögensberater2ung14sicherung10t2g1i0ajes4deo3g1king4llas4n1p1rgin4sa1ion4va1o3laanderen9n1odka3lvo3te1ing3o2yage5u2wales2mart4ter4ng0gou5tch0es6eather0channel12bcam3er2site5d0ding5ibo2r3f1hoswho6ien2ki2lliamhill9n0dows4e1ners6me2olterskluwer11odside6rk0s2ld3w2s1tc1f3xbox3erox4ihuan4n2xx2yz3yachts4hoo3maxun5ndex5e1odobashi7ga2kohama6u0tube6t1un3za0ppos4ra3ero3ip2m1one3uerich6w2",C1="ελ1υ2бг1ел3дети4ею2католик6ом3мкд2он1сква6онлайн5рг3рус2ф2сайт3рб3укр3қаз3հայ3ישראל5קום3ابوظبي5رامكو5لاردن4بحرين5جزائر5سعودية6عليان5مغرب5مارات5یران5بارت2زار4يتك3ھارت5تونس4سودان3رية5شبكة4عراق2ب2مان4فلسطين6قطر3كاثوليك6وم3مصر2ليسيا5وريتانيا7قع4همراه5پاکستان7ڀارت4कॉम3नेट3भारत0म्3ोत5संगठन5বাংলা5ভারত2ৰত4ਭਾਰਤ4ભારત4ଭାରତ4இந்தியா6லங்கை6சிங்கப்பூர்11భారత్5ಭಾರತ4ഭാരതം5ලංකා4คอม3ไทย3ລາວ3გე2みんな3アマゾン4クラウド4グーグル4コム2ストア3セール3ファッション6ポイント4世界2中信1国1國1文网3亚马逊3企业2佛山2信息2健康2八卦2公司1益2台湾1灣2商城1店1标2嘉里0大酒店5在线2大拿2天主教3娱乐2家電2广东2微博2慈善2我爱你3手机2招聘2政务1府2新加坡2闻2时尚2書籍2机构2淡马锡3游戏2澳門2点看2移动2组织机构4网址1店1站1络2联通2谷歌2购物2通販2集团2電訊盈科4飞利浦3食品2餐厅2香格里拉3港2닷넷1컴2삼성2한국2",ea="numeric",ra="ascii",ia="alpha",xr="asciinumeric",Mr="alphanumeric",na="domain",Xs="emoji",L1="scheme",x1="slashscheme",In="whitespace";function I1(e,r){return e in r||(r[e]=[]),r[e]}function Xe(e,r,i){r[ea]&&(r[xr]=!0,r[Mr]=!0),r[ra]&&(r[xr]=!0,r[ia]=!0),r[xr]&&(r[Mr]=!0),r[ia]&&(r[Mr]=!0),r[Mr]&&(r[na]=!0),r[Xs]&&(r[na]=!0);for(const n in r){const a=I1(n,i);a.indexOf(e)<0&&a.push(e)}}function k1(e,r){const i={};for(const n in r)r[n].indexOf(e)>=0&&(i[n]=!0);return i}function Kt(e=null){this.j={},this.jr=[],this.jd=null,this.t=e}Kt.groups={},Kt.prototype={accepts(){return!!this.t},go(e){const r=this,i=r.j[e];if(i)return i;for(let n=0;ne.ta(r,i,n,a),Ft=(e,r,i,n,a)=>e.tr(r,i,n,a),_0=(e,r,i,n,a)=>e.ts(r,i,n,a),x=(e,r,i,n,a)=>e.tt(r,i,n,a),Fe="WORD",aa="UWORD",to="ASCIINUMERICAL",eo="ALPHANUMERICAL",Wr="LOCALHOST",sa="TLD",oa="UTLD",Ni="SCHEME",hr="SLASH_SCHEME",Ma="NUM",la="WS",wa="NL",Ir="OPENBRACE",kr="CLOSEBRACE",Zi="OPENBRACKET",_i="CLOSEBRACKET",Bi="OPENPAREN",Ci="CLOSEPAREN",Li="OPENANGLEBRACKET",xi="CLOSEANGLEBRACKET",Ii="FULLWIDTHLEFTPAREN",ki="FULLWIDTHRIGHTPAREN",Gi="LEFTCORNERBRACKET",Hi="RIGHTCORNERBRACKET",Ui="LEFTWHITECORNERBRACKET",ji="RIGHTWHITECORNERBRACKET",Pi="FULLWIDTHLESSTHAN",zi="FULLWIDTHGREATERTHAN",Vi="AMPERSAND",$i="APOSTROPHE",Qi="ASTERISK",Be="AT",Wi="BACKSLASH",Ki="BACKTICK",qi="CARET",ke="COLON",Za="COMMA",Ji="DOLLAR",Te="DOT",Xi="EQUALS",_a="EXCLAMATION",te="HYPHEN",Gr="PERCENT",tn="PIPE",en="PLUS",rn="POUND",Hr="QUERY",Ba="QUOTE",ro="FULLWIDTHMIDDLEDOT",Ca="SEMI",de="SLASH",Ur="TILDE",nn="UNDERSCORE",io="EMOJI",an="SYM";var no=Object.freeze({__proto__:null,ALPHANUMERICAL:eo,AMPERSAND:Vi,APOSTROPHE:$i,ASCIINUMERICAL:to,ASTERISK:Qi,AT:Be,BACKSLASH:Wi,BACKTICK:Ki,CARET:qi,CLOSEANGLEBRACKET:xi,CLOSEBRACE:kr,CLOSEBRACKET:_i,CLOSEPAREN:Ci,COLON:ke,COMMA:Za,DOLLAR:Ji,DOT:Te,EMOJI:io,EQUALS:Xi,EXCLAMATION:_a,FULLWIDTHGREATERTHAN:zi,FULLWIDTHLEFTPAREN:Ii,FULLWIDTHLESSTHAN:Pi,FULLWIDTHMIDDLEDOT:ro,FULLWIDTHRIGHTPAREN:ki,HYPHEN:te,LEFTCORNERBRACKET:Gi,LEFTWHITECORNERBRACKET:Ui,LOCALHOST:Wr,NL:wa,NUM:Ma,OPENANGLEBRACKET:Li,OPENBRACE:Ir,OPENBRACKET:Zi,OPENPAREN:Bi,PERCENT:Gr,PIPE:tn,PLUS:en,POUND:rn,QUERY:Hr,QUOTE:Ba,RIGHTCORNERBRACKET:Hi,RIGHTWHITECORNERBRACKET:ji,SCHEME:Ni,SEMI:Ca,SLASH:de,SLASH_SCHEME:hr,SYM:an,TILDE:Ur,TLD:sa,UNDERSCORE:nn,UTLD:oa,UWORD:aa,WORD:Fe,WS:la});const me=/[a-z]/,yr=new RegExp("\\p{L}","u"),kn=new RegExp("\\p{Emoji}","u"),ge=/\d/,Gn=/\s/,B0="\r",Hn=` `,G1="️",H1="‍",Un="";let fi=null,pi=null;function U1(e=[]){const r={};Kt.groups=r;const i=new Kt;fi==null&&(fi=C0(B1)),pi==null&&(pi=C0(C1)),x(i,"'",$i),x(i,"{",Ir),x(i,"}",kr),x(i,"[",Zi),x(i,"]",_i),x(i,"(",Bi),x(i,")",Ci),x(i,"<",Li),x(i,">",xi),x(i,"(",Ii),x(i,")",ki),x(i,"「",Gi),x(i,"」",Hi),x(i,"『",Ui),x(i,"』",ji),x(i,"<",Pi),x(i,">",zi),x(i,"&",Vi),x(i,"*",Qi),x(i,"@",Be),x(i,"`",Ki),x(i,"^",qi),x(i,":",ke),x(i,",",Za),x(i,"$",Ji),x(i,".",Te),x(i,"=",Xi),x(i,"!",_a),x(i,"-",te),x(i,"%",Gr),x(i,"|",tn),x(i,"+",en),x(i,"#",rn),x(i,"?",Hr),x(i,'"',Ba),x(i,"/",de),x(i,";",Ca),x(i,"~",Ur),x(i,"_",nn),x(i,"\\",Wi),x(i,"・",ro);const n=Ft(i,ge,Ma,{[ea]:!0});Ft(n,ge,n);const a=Ft(n,me,to,{[xr]:!0}),s=Ft(n,yr,eo,{[Mr]:!0}),l=Ft(i,me,Fe,{[ra]:!0});Ft(l,ge,a),Ft(l,me,l),Ft(a,ge,a),Ft(a,me,a);const u=Ft(i,yr,aa,{[ia]:!0});Ft(u,me),Ft(u,ge,s),Ft(u,yr,u),Ft(s,ge,s),Ft(s,me),Ft(s,yr,s);const o=x(i,Hn,wa,{[In]:!0}),T=x(i,B0,la,{[In]:!0}),c=Ft(i,Gn,la,{[In]:!0});x(i,Un,c),x(T,Hn,o),x(T,Un,c),Ft(T,Gn,c),x(c,B0),x(c,Hn),Ft(c,Gn,c),x(c,Un,c);const d=Ft(i,kn,io,{[Xs]:!0});x(d,"#"),Ft(d,kn,d),x(d,G1,d);const h=x(d,H1);x(h,"#"),Ft(h,kn,d);const p=[[me,l],[ge,a]],D=[[me,null],[yr,u],[ge,s]];for(let E=0;EE[0]>R[0]?1:-1);for(let E=0;E=0?O[na]=!0:me.test(R)?ge.test(R)?O[xr]=!0:O[ra]=!0:O[ea]=!0,_0(i,R,R,O)}return _0(i,"localhost",Wr,{ascii:!0}),i.jd=new Kt(an),{start:i,tokens:Object.assign({groups:r},no)}}function ao(e,r){const i=j1(r.replace(/[A-Z]/g,u=>u.toLowerCase())),n=i.length,a=[];let s=0,l=0;for(;l=0&&(d+=i[l].length,h++),T+=i[l].length,s+=i[l].length,l++;s-=d,l-=h,T-=d,a.push({t:c.t,v:r.slice(s-T,s),s:s-T,e:s})}return a}function j1(e){const r=[],i=e.length;let n=0;for(;n56319||n+1===i||(s=e.charCodeAt(n+1))<56320||s>57343?e[n]:e.slice(n,n+2);r.push(l),n+=l.length}return r}function Ze(e,r,i,n,a){let s;const l=r.length;for(let u=0;u=0;)s++;if(s>0){r.push(i.join(""));for(let l=parseInt(e.substring(n,n+s),10);l>0;l--)i.pop();n+=s}else i.push(e[n]),n++}return r}const Kr={defaultProtocol:"http",events:null,format:L0,formatHref:L0,nl2br:!1,tagName:"a",target:null,rel:null,validate:!0,truncate:1/0,className:null,attributes:null,ignoreTags:[],render:null};function La(e,r=null){let i=Object.assign({},Kr);e&&(i=Object.assign(i,e instanceof La?e.o:e));const n=i.ignoreTags,a=[];for(let s=0;si?n.substring(0,i)+"…":n},toFormattedHref(e){return e.get("formatHref",this.toHref(e.get("defaultProtocol")),this)},startIndex(){return this.tk[0].s},endIndex(){return this.tk[this.tk.length-1].e},toObject(e=Kr.defaultProtocol){return{type:this.t,value:this.toString(),isLink:this.isLink,href:this.toHref(e),start:this.startIndex(),end:this.endIndex()}},toFormattedObject(e){return{type:this.t,value:this.toFormattedString(e),isLink:this.isLink,href:this.toFormattedHref(e),start:this.startIndex(),end:this.endIndex()}},validate(e){return e.get("validate",this.toString(),this)},render(e){const r=this,i=this.toHref(e.get("defaultProtocol")),n=e.get("formatHref",i,this),a=e.get("tagName",i,r),s=this.toFormattedString(e),l={},u=e.get("className",i,r),o=e.get("target",i,r),T=e.get("rel",i,r),c=e.getObj("attributes",i,r),d=e.getObj("events",i,r);return l.href=n,u&&(l.class=u),o&&(l.target=o),T&&(l.rel=T),c&&Object.assign(l,c),{tagName:a,attributes:l,content:s,eventListeners:d}}};function En(e,r){class i extends so{constructor(a,s){super(a,s),this.t=e}}for(const n in r)i.prototype[n]=r[n];return i.t=e,i}const x0=En("email",{isLink:!0,toHref(){return"mailto:"+this.toString()}}),I0=En("text"),P1=En("nl"),Ai=En("url",{isLink:!0,toHref(e=Kr.defaultProtocol){return this.hasProtocol()?this.v:`${e}://${this.v}`},hasProtocol(){const e=this.tk;return e.length>=2&&e[0].t!==Wr&&e[1].t===ke}}),Xt=e=>new Kt(e);function z1({groups:e}){const r=e.domain.concat([Vi,Qi,Be,Wi,Ki,qi,Ji,Xi,te,Ma,Gr,tn,en,rn,de,an,Ur,nn]),i=[$i,ke,Za,Te,_a,Gr,Hr,Ba,Ca,Li,xi,Ir,kr,_i,Zi,Bi,Ci,Ii,ki,Gi,Hi,Ui,ji,Pi,zi],n=[Vi,$i,Qi,Wi,Ki,qi,Ji,Xi,te,Ir,kr,Gr,tn,en,rn,Hr,de,an,Ur,nn],a=Xt(),s=x(a,Ur);st(s,n,s),st(s,e.domain,s);const l=Xt(),u=Xt(),o=Xt();st(a,e.domain,l),st(a,e.scheme,u),st(a,e.slashscheme,o),st(l,n,s),st(l,e.domain,l);const T=x(l,Be);x(s,Be,T),x(u,Be,T),x(o,Be,T);const c=x(s,Te);st(c,n,s),st(c,e.domain,s);const d=Xt();st(T,e.domain,d),st(d,e.domain,d);const h=x(d,Te);st(h,e.domain,d);const p=Xt(x0);st(h,e.tld,p),st(h,e.utld,p),x(T,Wr,p);const D=x(d,te);x(D,te,D),st(D,e.domain,d),st(p,e.domain,d),x(p,Te,h),x(p,te,D);const E=x(p,ke);st(E,e.numeric,x0);const R=x(l,te),O=x(l,Te);x(R,te,R),st(R,e.domain,l),st(O,n,s),st(O,e.domain,l);const v=Xt(Ai);st(O,e.tld,v),st(O,e.utld,v),st(v,e.domain,l),st(v,n,s),x(v,Te,O),x(v,te,R),x(v,Be,T);const M=x(v,ke),z=Xt(Ai);st(M,e.numeric,z);const G=Xt(Ai),L=Xt();st(G,r,G),st(G,i,L),st(L,r,G),st(L,i,L),x(v,de,G),x(z,de,G);const K=x(u,ke),$=x(o,ke),j=x($,de),A=x(j,de);st(u,e.domain,l),x(u,Te,O),x(u,te,R),st(o,e.domain,l),x(o,Te,O),x(o,te,R),st(K,e.domain,G),x(K,de,G),x(K,Hr,G),st(A,e.domain,G),st(A,r,G),x(A,de,G);const y=[[Ir,kr],[Zi,_i],[Bi,Ci],[Li,xi],[Ii,ki],[Gi,Hi],[Ui,ji],[Pi,zi]];for(let b=0;b=0&&h++,a++,c++;if(h<0)a-=c,a0&&(s.push(jn(I0,r,l)),l=[]),a-=h,c-=h;const p=d.t,D=i.slice(a-c,a);s.push(jn(p,r,D))}}return l.length>0&&s.push(jn(I0,r,l)),s}function jn(e,r,i){const n=i[0].s,a=i[i.length-1].e,s=r.slice(n,a);return new e(s,i)}const kt={scanner:null,parser:null,tokenQueue:[],pluginQueue:[],customSchemes:[],initialized:!1};function $1(){kt.scanner=U1(kt.customSchemes);for(let e=0;e/g,">")}function Q1(e){return e.replace(/"/g,""")}function W1(e){const r=[];for(const i in e){let n=e[i]+"";r.push(`${i}="${Q1(n)}"`)}return r.join(" ")}function K1({tagName:e,attributes:r,content:i}){return`<${e} ${W1(r)}>${lo(i)}`}function q1(e,r={}){r=new La(r,K1);const i=oo(e),n=[];for(let a=0;a `):!s.isLink||!r.check(s)?n.push(lo(s.toString())):n.push(r.render(s))}return n.join("")}String.prototype.linkify||Object.defineProperty(String.prototype,"linkify",{writable:!1,value:function(e){return q1(this,e)}}),nt(el);var uo={exports:{}};(function(e){var r=Object.prototype.hasOwnProperty,i="~";function n(){}Object.create&&(n.prototype=Object.create(null),new n().__proto__||(i=!1));function a(o,T,c){this.fn=o,this.context=T,this.once=c||!1}function s(o,T,c,d,h){if(typeof c!="function")throw new TypeError("The listener must be a function");var p=new a(c,d||o,h),D=i?i+T:T;return o._events[D]?o._events[D].fn?o._events[D]=[o._events[D],p]:o._events[D].push(p):(o._events[D]=p,o._eventsCount++),o}function l(o,T){--o._eventsCount===0?o._events=new n:delete o._events[T]}function u(){this._events=new n,this._eventsCount=0}u.prototype.eventNames=function(){var o=[],T,c;if(this._eventsCount===0)return o;for(c in T=this._events)r.call(T,c)&&o.push(i?c.slice(1):c);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(T)):o},u.prototype.listeners=function(o){var T=i?i+o:o,c=this._events[T];if(!c)return[];if(c.fn)return[c.fn];for(var d=0,h=c.length,p=new Array(h);dglobalThis.DOMException===void 0?new tf(e):new DOMException(e),G0=e=>{const r=e.reason===void 0?k0("This operation was aborted."):e.reason;return r instanceof Error?r:k0(r)};function ef(e,r){const{milliseconds:i,fallback:n,message:a,customTimers:s={setTimeout,clearTimeout}}=r;let l,u;const o=new Promise((T,c)=>{if(typeof i!="number"||Math.sign(i)!==1)throw new TypeError(`Expected \`milliseconds\` to be a positive number, got \`${i}\``);if(r.signal){const{signal:h}=r;h.aborted&&c(G0(h)),u=()=>{c(G0(h))},h.addEventListener("abort",u,{once:!0})}if(i===Number.POSITIVE_INFINITY){e.then(T,c);return}const d=new co;l=s.setTimeout.call(void 0,()=>{if(n){try{T(n())}catch(h){c(h)}return}typeof e.cancel=="function"&&e.cancel(),a===!1?T():a instanceof Error?c(a):(d.message=a??`Promise timed out after ${i} milliseconds`,c(d))},i),(async()=>{try{T(await e)}catch(h){c(h)}})()}).finally(()=>{o.clear(),u&&r.signal&&r.signal.removeEventListener("abort",u)});return o.clear=()=>{s.clearTimeout.call(void 0,l),l=void 0},o}function rf(e,r,i){let n=0,a=e.length;for(;a>0;){const s=Math.trunc(a/2);let l=n+s;i(e[l],r)<=0?(n=++l,a-=s+1):a=s}return n}class nf{#t=[];enqueue(r,i){i={priority:0,...i};const n={priority:i.priority,id:i.id,run:r};if(this.size===0||this.#t[this.size-1].priority>=i.priority){this.#t.push(n);return}const a=rf(this.#t,n,(s,l)=>l.priority-s.priority);this.#t.splice(a,0,n)}setPriority(r,i){const n=this.#t.findIndex(s=>s.id===r);if(n===-1)throw new ReferenceError(`No promise function with the id "${r}" exists in the queue.`);const[a]=this.#t.splice(n,1);this.enqueue(a.run,{priority:i,id:r})}dequeue(){return this.#t.shift()?.run}filter(r){return this.#t.filter(i=>i.priority===r.priority).map(i=>i.run)}get size(){return this.#t.length}}class af extends X1{#t;#n;#s=0;#h;#o;#f=0;#r;#l;#e;#p;#i=0;#u;#a;#A;#S=1n;timeout;constructor(r){if(super(),r={carryoverConcurrencyCount:!1,intervalCap:Number.POSITIVE_INFINITY,interval:0,concurrency:Number.POSITIVE_INFINITY,autoStart:!0,queueClass:nf,...r},!(typeof r.intervalCap=="number"&&r.intervalCap>=1))throw new TypeError(`Expected \`intervalCap\` to be a number from 1 and up, got \`${r.intervalCap?.toString()??""}\` (${typeof r.intervalCap})`);if(r.interval===void 0||!(Number.isFinite(r.interval)&&r.interval>=0))throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${r.interval?.toString()??""}\` (${typeof r.interval})`);this.#t=r.carryoverConcurrencyCount,this.#n=r.intervalCap===Number.POSITIVE_INFINITY||r.interval===0,this.#h=r.intervalCap,this.#o=r.interval,this.#e=new r.queueClass,this.#p=r.queueClass,this.concurrency=r.concurrency,this.timeout=r.timeout,this.#A=r.throwOnTimeout===!0,this.#a=r.autoStart===!1}get#m(){return this.#n||this.#s{this.#R()},i)),!0}return!1}#c(){if(this.#e.size===0)return this.#r&&clearInterval(this.#r),this.#r=void 0,this.emit("empty"),this.#i===0&&this.emit("idle"),!1;if(!this.#a){const r=!this.#N;if(this.#m&&this.#g){const i=this.#e.dequeue();return i?(this.emit("active"),i(),r&&this.#E(),!0):!1}}return!1}#E(){this.#n||this.#r!==void 0||(this.#r=setInterval(()=>{this.#D()},this.#o),this.#f=Date.now()+this.#o)}#D(){this.#s===0&&this.#i===0&&this.#r&&(clearInterval(this.#r),this.#r=void 0),this.#s=this.#t?this.#i:0,this.#T()}#T(){for(;this.#c(););}get concurrency(){return this.#u}set concurrency(r){if(!(typeof r=="number"&&r>=1))throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${r}\` (${typeof r})`);this.#u=r,this.#T()}async#O(r){return new Promise((i,n)=>{r.addEventListener("abort",()=>{n(r.reason)},{once:!0})})}setPriority(r,i){this.#e.setPriority(r,i)}async add(r,i={}){return i.id??=(this.#S++).toString(),i={timeout:this.timeout,throwOnTimeout:this.#A,...i},new Promise((n,a)=>{this.#e.enqueue(async()=>{this.#i++,this.#s++;try{i.signal?.throwIfAborted();let s=r({signal:i.signal});i.timeout&&(s=ef(Promise.resolve(s),{milliseconds:i.timeout})),i.signal&&(s=Promise.race([s,this.#O(i.signal)]));const l=await s;n(l),this.emit("completed",l)}catch(s){if(s instanceof co&&!i.throwOnTimeout){n();return}a(s),this.emit("error",s)}finally{this.#F()}},i),this.emit("add"),this.#c()})}async addAll(r,i){return Promise.all(r.map(async n=>this.add(n,i)))}start(){return this.#a?(this.#a=!1,this.#T(),this):this}pause(){this.#a=!0}clear(){this.#e=new this.#p}async onEmpty(){this.#e.size!==0&&await this.#d("empty")}async onSizeLessThan(r){this.#e.sizethis.#e.size{const a=()=>{i&&!i()||(this.off(r,a),n())};this.on(r,a)})}get size(){return this.#e.size}sizeBy(r){return this.#e.filter(r).length}get pending(){return this.#i}get isPaused(){return this.#a}}new af({concurrency:5}),nt(rl),nt(il);var sf={exports:{}};(function(e,r){(function(i,n){e.exports=n()})(typeof self<"u"?self:Ce,function(){return function(i){function n(s){if(a[s])return a[s].exports;var l=a[s]={i:s,l:!1,exports:{}};return i[s].call(l.exports,l,l.exports,n),l.l=!0,l.exports}var a={};return n.m=i,n.c=a,n.d=function(s,l,u){n.o(s,l)||Object.defineProperty(s,l,{configurable:!1,enumerable:!0,get:u})},n.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return n.d(l,"a",l),l},n.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)},n.p="",n(n.s=59)}([function(i,n){function a(l,u){var o=l[1]||"",T=l[3];if(!T)return o;if(u&&typeof btoa=="function"){var c=s(T);return[o].concat(T.sources.map(function(d){return"/*# sourceURL="+T.sourceRoot+d+" */"})).concat([c]).join(` `)}return[o].join(` `)}function s(l){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(l))))+" */"}i.exports=function(l){var u=[];return u.toString=function(){return this.map(function(o){var T=a(o,l);return o[2]?"@media "+o[2]+"{"+T+"}":T}).join("")},u.i=function(o,T){typeof o=="string"&&(o=[[null,o,""]]);for(var c={},d=0;d$.parts.length&&(j.parts.length=$.parts.length)}else{for(var y=[],A=0;A<$.parts.length;A++)y.push(u($.parts[A]));h[$.id]={id:$.id,refs:1,parts:y}}}}function l(){var L=document.createElement("style");return L.type="text/css",p.appendChild(L),L}function u(L){var K,$,j=document.querySelector("style["+M+'~="'+L.id+'"]');if(j){if(R)return O;j.parentNode.removeChild(j)}if(z){var A=E++;j=D||(D=l()),K=o.bind(null,j,A,!1),$=o.bind(null,j,A,!0)}else j=l(),K=T.bind(null,j),$=function(){j.parentNode.removeChild(j)};return K(L),function(y){if(y){if(y.css===L.css&&y.media===L.media&&y.sourceMap===L.sourceMap)return;K(L=y)}else $()}}function o(L,K,$,j){var A=$?"":j.css;if(L.styleSheet)L.styleSheet.cssText=G(K,A);else{var y=document.createTextNode(A),b=L.childNodes;b[K]&&L.removeChild(b[K]),b.length?L.insertBefore(y,b[K]):L.appendChild(y)}}function T(L,K){var $=K.css,j=K.media,A=K.sourceMap;if(j&&L.setAttribute("media",j),v.ssrId&&L.setAttribute(M,K.id),A&&($+=` /*# sourceURL=`+A.sources[0]+" */",$+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(A))))+" */"),L.styleSheet)L.styleSheet.cssText=$;else{for(;L.firstChild;)L.removeChild(L.firstChild);L.appendChild(document.createTextNode($))}}var c=typeof document<"u";if(typeof DEBUG<"u"&&DEBUG&&!c)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var d=a(63),h={},p=c&&(document.head||document.getElementsByTagName("head")[0]),D=null,E=0,R=!1,O=function(){},v=null,M="data-vue-ssr-id",z=typeof navigator<"u"&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());i.exports=function(L,K,$,j){R=$,v=j||{};var A=d(L,K);return s(A),function(y){for(var b=[],_=0;_"u"||(O=__VUE_SSR_CONTEXT__),u&&u.call(this,O),O&&O._registeredComponents&&O._registeredComponents.add(T)},p._ssrRegister=D):u&&(D=u),D){var E=p.functional,R=E?p.render:p.beforeCreate;E?(p._injectStyles=D,p.render=function(O,v){return D.call(v),R(O,v)}):p.beforeCreate=R?[].concat(R,D):[D]}return{esModule:c,exports:d,options:p}}},function(i,n,a){function s(o,T){var c,d=o&&o.a;!(c=o&&o.hsl?(0,u.default)(o.hsl):o&&o.hex&&o.hex.length>0?(0,u.default)(o.hex):o&&o.hsv?(0,u.default)(o.hsv):o&&o.rgba?(0,u.default)(o.rgba):o&&o.rgb?(0,u.default)(o.rgb):(0,u.default)(o))||c._a!==void 0&&c._a!==null||c.setAlpha(d||1);var h=c.toHsl(),p=c.toHsv();return h.s===0&&(p.h=h.h=o.h||o.hsl&&o.hsl.h||T||0),{hsl:h,hex:c.toHexString().toUpperCase(),hex8:c.toHex8String().toUpperCase(),rgba:c.toRgb(),hsv:p,oldHue:o.h||T||h.h,source:o.source,a:o.a||c.getAlpha()}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(64),u=function(o){return o&&o.__esModule?o:{default:o}}(l);n.default={props:["value"],data:function(){return{val:s(this.value)}},computed:{colors:{get:function(){return this.val},set:function(o){this.val=o,this.$emit("input",o)}}},watch:{value:function(o){this.val=s(o)}},methods:{colorChange:function(o,T){this.oldHue=this.colors.hsl.h,this.colors=s(o,T||this.oldHue)},isValidHex:function(o){return(0,u.default)(o).isValid()},simpleCheckForValidColor:function(o){for(var T=["r","g","b","a","h","s","l","v"],c=0,d=0,h=0;h0?s:a)(l)}},function(i,n){i.exports=function(a){if(a==null)throw TypeError("Can't call method on "+a);return a}},function(i,n){i.exports=!0},function(i,n){var a=i.exports={version:"2.5.1"};typeof __e=="number"&&(__e=a)},function(i,n,a){var s=a(14);i.exports=function(l,u){if(!s(l))return l;var o,T;if(u&&typeof(o=l.toString)=="function"&&!s(T=o.call(l))||typeof(o=l.valueOf)=="function"&&!s(T=o.call(l))||!u&&typeof(o=l.toString)=="function"&&!s(T=o.call(l)))return T;throw TypeError("Can't convert object to primitive value")}},function(i,n){i.exports={}},function(i,n,a){var s=a(46),l=a(30);i.exports=Object.keys||function(u){return s(u,l)}},function(i,n,a){var s=a(29)("keys"),l=a(17);i.exports=function(u){return s[u]||(s[u]=l(u))}},function(i,n,a){var s=a(4),l=s["__core-js_shared__"]||(s["__core-js_shared__"]={});i.exports=function(u){return l[u]||(l[u]={})}},function(i,n){i.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(i,n,a){var s=a(8).f,l=a(6),u=a(11)("toStringTag");i.exports=function(o,T,c){o&&!l(o=c?o:o.prototype,u)&&s(o,u,{configurable:!0,value:T})}},function(i,n,a){n.f=a(11)},function(i,n,a){var s=a(4),l=a(24),u=a(23),o=a(32),T=a(8).f;i.exports=function(c){var d=l.Symbol||(l.Symbol=u?{}:s.Symbol||{});c.charAt(0)=="_"||c in d||T(d,c,{value:o.f(c)})}},function(i,n){n.f={}.propertyIsEnumerable},function(i,n,a){function s(d){return d&&d.__esModule?d:{default:d}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(3),u=s(l),o=a(5),T=s(o),c=["#4D4D4D","#999999","#FFFFFF","#F44E3B","#FE9200","#FCDC00","#DBDF00","#A4DD00","#68CCCA","#73D8FF","#AEA1FF","#FDA1FF","#333333","#808080","#CCCCCC","#D33115","#E27300","#FCC400","#B0BC00","#68BC00","#16A5A5","#009CE0","#7B64FF","#FA28FF","#000000","#666666","#B3B3B3","#9F0500","#C45100","#FB9E00","#808900","#194D33","#0C797D","#0062B1","#653294","#AB149E"];n.default={name:"Compact",mixins:[u.default],props:{palette:{type:Array,default:function(){return c}}},components:{"ed-in":T.default},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(d){this.colorChange({hex:d,source:"hex"})}}}},function(i,n,a){Object.defineProperty(n,"__esModule",{value:!0}),n.default={name:"editableInput",props:{label:String,labelText:String,desc:String,value:[String,Number],max:Number,min:Number,arrowOffset:{type:Number,default:1}},computed:{val:{get:function(){return this.value},set:function(s){if(!(this.max!==void 0&&+s>this.max))return s;this.$refs.input.value=this.max}},labelId:function(){return"input__label__"+this.label+"__"+Math.random().toString().slice(2,5)},labelSpanText:function(){return this.labelText||this.label}},methods:{update:function(s){this.handleChange(s.target.value)},handleChange:function(s){var l={};l[this.label]=s,l.hex===void 0&&l["#"]===void 0?this.$emit("change",l):s.length>5&&this.$emit("change",l)},handleKeyDown:function(s){var l=this.val,u=Number(l);if(u){var o=this.arrowOffset||1;s.keyCode===38&&(l=u+o,this.handleChange(l),s.preventDefault()),s.keyCode===40&&(l=u-o,this.handleChange(l),s.preventDefault())}}}}},function(i,n,a){Object.defineProperty(n,"__esModule",{value:!0});var s=a(3),l=function(o){return o&&o.__esModule?o:{default:o}}(s),u=["#FFFFFF","#F2F2F2","#E6E6E6","#D9D9D9","#CCCCCC","#BFBFBF","#B3B3B3","#A6A6A6","#999999","#8C8C8C","#808080","#737373","#666666","#595959","#4D4D4D","#404040","#333333","#262626","#0D0D0D","#000000"];n.default={name:"Grayscale",mixins:[l.default],props:{palette:{type:Array,default:function(){return u}}},components:{},computed:{pick:function(){return this.colors.hex.toUpperCase()}},methods:{handlerClick:function(o){this.colorChange({hex:o,source:"hex"})}}}},function(i,n,a){function s(c){return c&&c.__esModule?c:{default:c}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(5),u=s(l),o=a(3),T=s(o);n.default={name:"Material",mixins:[T.default],components:{"ed-in":u.default},methods:{onChange:function(c){c&&(c.hex?this.isValidHex(c.hex)&&this.colorChange({hex:c.hex,source:"hex"}):(c.r||c.g||c.b)&&this.colorChange({r:c.r||this.colors.rgba.r,g:c.g||this.colors.rgba.g,b:c.b||this.colors.rgba.b,a:c.a||this.colors.rgba.a,source:"rgba"}))}}}},function(i,n,a){function s(h){return h&&h.__esModule?h:{default:h}}Object.defineProperty(n,"__esModule",{value:!0});var l=a(80),u=s(l),o=a(3),T=s(o),c=a(12),d=s(c);n.default={name:"Slider",mixins:[T.default],props:{swatches:{type:Array,default:function(){return[{s:.5,l:.8},{s:.5,l:.65},{s:.5,l:.5},{s:.5,l:.35},{s:.5,l:.2}]}}},components:{hue:d.default},computed:{normalizedSwatches:function(){return this.swatches.map(function(h){return(h===void 0?"undefined":(0,u.default)(h))!=="object"?{s:.5,l:h}:h})}},methods:{isActive:function(h,p){var D=this.colors.hsl;return D.l===1&&h.l===1||D.l===0&&h.l===0||Math.abs(D.l-h.l)<.01&&Math.abs(D.s-h.s)<.01},hueChange:function(h){this.colorChange(h)},handleSwClick:function(h,p){this.colorChange({h:this.colors.hsl.h,s:p.s,l:p.l,source:"hsl"})}}}},function(i,n,a){var s=a(23),l=a(41),u=a(44),o=a(7),T=a(6),c=a(26),d=a(87),h=a(31),p=a(94),D=a(11)("iterator"),E=!([].keys&&"next"in[].keys()),R=function(){return this};i.exports=function(O,v,M,z,G,L,K){d(M,v,z);var $,j,A,y=function(ot){if(!E&&ot in C)return C[ot];switch(ot){case"keys":case"values":return function(){return new M(this,ot)}}return function(){return new M(this,ot)}},b=v+" Iterator",_=G=="values",Q=!1,C=O.prototype,J=C[D]||C["@@iterator"]||G&&C[G],et=J||y(G),pt=G?_?y("entries"):et:void 0,it=v=="Array"&&C.entries||J;if(it&&(A=p(it.call(new O)))!==Object.prototype&&A.next&&(h(A,b,!0),s||T(A,D)||o(A,D,R)),_&&J&&J.name!=="values"&&(Q=!0,et=function(){return J.call(this)}),s&&!K||!E&&!Q&&C[D]||o(C,D,et),c[v]=et,c[b]=R,G)if($={values:_?et:y("values"),keys:L?et:y("keys"),entries:pt},K)for(j in $)j in C||u(C,j,$[j]);else l(l.P+l.F*(E||Q),v,$);return $}},function(i,n,a){var s=a(4),l=a(24),u=a(85),o=a(7),T=function(c,d,h){var p,D,E,R=c&T.F,O=c&T.G,v=c&T.S,M=c&T.P,z=c&T.B,G=c&T.W,L=O?l:l[d]||(l[d]={}),K=L.prototype,$=O?s:v?s[d]:(s[d]||{}).prototype;O&&(h=d);for(p in h)(D=!R&&$&&$[p]!==void 0)&&p in L||(E=D?$[p]:h[p],L[p]=O&&typeof $[p]!="function"?h[p]:z&&D?u(E,s):G&&$[p]==E?function(j){var A=function(y,b,_){if(this instanceof j){switch(arguments.length){case 0:return new j;case 1:return new j(y);case 2:return new j(y,b)}return new j(y,b,_)}return j.apply(this,arguments)};return A.prototype=j.prototype,A}(E):M&&typeof E=="function"?u(Function.call,E):E,M&&((L.virtual||(L.virtual={}))[p]=E,c&T.R&&K&&!K[p]&&o(K,p,E)))};T.F=1,T.G=2,T.S=4,T.P=8,T.B=16,T.W=32,T.U=64,T.R=128,i.exports=T},function(i,n,a){i.exports=!a(9)&&!a(15)(function(){return Object.defineProperty(a(43)("div"),"a",{get:function(){return 7}}).a!=7})},function(i,n,a){var s=a(14),l=a(4).document,u=s(l)&&s(l.createElement);i.exports=function(o){return u?l.createElement(o):{}}},function(i,n,a){i.exports=a(7)},function(i,n,a){var s=a(13),l=a(88),u=a(30),o=a(28)("IE_PROTO"),T=function(){},c=function(){var d,h=a(43)("iframe"),p=u.length;for(h.style.display="none",a(93).appendChild(h),h.src="javascript:",d=h.contentWindow.document,d.open(),d.write("