123 |
- /*! For license information please see dav-settings-personal-availability.js.LICENSE.txt */
- (()=>{var e,n,r,i={2253:(e,n,r)=>{"use strict";var i=r(20144),a=r(31352),s=r(67912),o=r(74628),u=r(49368),c=r(4409),l=r(65027),d=r(79753),f=r(77958),h=r(93664);function p(t){return`${t.getFullYear()}-${(t.getMonth()+1).toString().padStart(2,"0")}-${t.getDate().toString().padStart(2,"0")}`}var m=r(43554),y=r(64024);const v=(0,r(17499).IY)().setApp("dav").detectUser().build(),T={name:"AbsenceForm",components:{NcButton:o.Z,NcTextField:u.Z,NcTextArea:c.Z,NcDateTimePickerNative:l.Z},data(){const{firstDay:t,lastDay:e,status:n,message:r}=(0,m.j)("dav","absence",{});return{loading:!1,status:n??"",message:r??"",firstDay:t?new Date(t):new Date,lastDay:e?new Date(e):null}},computed:{valid(){const t=new Date(this.firstDay?.getTime()),e=new Date(this.lastDay?.getTime());return t?.setHours(0,0,0,0),e?.setHours(0,0,0,0),!!this.firstDay&&!!this.lastDay&&!!this.status&&!!this.message&&e>=t}},methods:{resetForm(){this.status="",this.message="",this.firstDay=new Date,this.lastDay=null},async saveForm(){if(this.valid){this.loading=!0;try{await h.Z.post((0,d.generateOcsUrl)("/apps/dav/api/v1/outOfOffice/{userId}",{userId:(0,f.ts)().uid}),{firstDay:p(this.firstDay),lastDay:p(this.lastDay),status:this.status,message:this.message}),(0,y.s$)(this.$t("dav","Absence saved"))}catch(t){(0,y.x2)(this.$t("dav","Failed to save your absence settings")),v.error("Could not save absence",{error:t})}finally{this.loading=!1}}},async clearAbsence(){this.loading=!0;try{await h.Z.delete((0,d.generateOcsUrl)("/apps/dav/api/v1/outOfOffice/{userId}",{userId:(0,f.ts)().uid})),this.resetForm(),(0,y.s$)(this.$t("dav","Absence cleared"))}catch(t){(0,y.x2)(this.$t("dav","Failed to clear your absence settings")),v.error("Could not clear absence",{error:t})}finally{this.loading=!1}}}};var g=r(93379),A=r.n(g),b=r(7795),S=r.n(b),E=r(90569),_=r.n(E),D=r(3565),C=r.n(D),O=r(19216),w=r.n(O),x=r(44589),I=r.n(x),N=r(16745),U={};U.styleTagTransform=I(),U.setAttributes=C(),U.insert=_().bind(null,"head"),U.domAPI=S(),U.insertStyleElement=w(),A()(N.Z,U),N.Z&&N.Z.locals&&N.Z.locals;var P=r(51900);const L=(0,P.Z)(T,(function(){var t=this,e=t._self._c;return e("form",{staticClass:"absence",on:{submit:function(e){return e.preventDefault(),t.saveForm.apply(null,arguments)}}},[e("div",{staticClass:"absence__dates"},[e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-first-day",label:t.$t("dav","First day"),required:!0},model:{value:t.firstDay,callback:function(e){t.firstDay=e},expression:"firstDay"}}),t._v(" "),e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-last-day",label:t.$t("dav","Last day (inclusive)"),required:!0},model:{value:t.lastDay,callback:function(e){t.lastDay=e},expression:"lastDay"}})],1),t._v(" "),e("NcTextField",{attrs:{value:t.status,label:t.$t("dav","Short absence status"),required:!0},on:{"update:value":function(e){t.status=e}}}),t._v(" "),e("NcTextArea",{attrs:{value:t.message,label:t.$t("dav","Long absence Message"),required:!0},on:{"update:value":function(e){t.message=e}}}),t._v(" "),e("div",{staticClass:"absence__buttons"},[e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"primary","native-type":"submit"}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Save"))+"\n\t\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||!t.valid,type:"error"},on:{click:t.clearAbsence}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Disable absence"))+"\n\t\t")])],1)],1)}),[],!1,null,"716172ba",null).exports;var k=r(25108),M=r(34155),Y=r(18350);function R(t,e,n,r,i,a,s,o){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(u=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=o?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}!function(){try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('@charset "UTF-8";.material-design-icon[data-v-22982259]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.native-datetime-picker[data-v-22982259]{display:flex;flex-direction:column}.native-datetime-picker .native-datetime-picker--input[data-v-22982259]{width:100%;flex:0 0 auto;padding-right:4px}/**\n * @copyright Copyright (c) 2019 John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @author John Molakvoæ <skjnldsv@protonmail.com>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n *\n */.material-design-icon[data-v-8f4e0666]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue[data-v-8f4e0666]{position:relative;width:fit-content;overflow:hidden;border:0;padding:0;font-size:var(--default-font-size);font-weight:700;min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:22px;transition-property:color,border-color,background-color;transition-duration:.1s;transition-timing-function:linear;color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue *[data-v-8f4e0666],.button-vue span[data-v-8f4e0666]{cursor:pointer}.button-vue[data-v-8f4e0666]:focus{outline:none}.button-vue[data-v-8f4e0666]:disabled{cursor:default;opacity:.5;filter:saturate(.7)}.button-vue:disabled *[data-v-8f4e0666]{cursor:default}.button-vue[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-primary-element-light-hover)}.button-vue[data-v-8f4e0666]:active{background-color:var(--color-primary-element-light)}.button-vue__wrapper[data-v-8f4e0666]{display:inline-flex;align-items:center;justify-content:center;width:100%}.button-vue--end .button-vue__wrapper[data-v-8f4e0666]{justify-content:end}.button-vue--start .button-vue__wrapper[data-v-8f4e0666]{justify-content:start}.button-vue--reverse .button-vue__wrapper[data-v-8f4e0666]{flex-direction:row-reverse}.button-vue--reverse.button-vue--icon-and-text[data-v-8f4e0666]{padding-inline:calc(var(--default-grid-baseline) * 4) var(--default-grid-baseline)}.button-vue__icon[data-v-8f4e0666]{height:44px;width:44px;min-height:44px;min-width:44px;display:flex;justify-content:center;align-items:center}.button-vue__text[data-v-8f4e0666]{font-weight:700;margin-bottom:1px;padding:2px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.button-vue--icon-only[data-v-8f4e0666]{width:44px!important}.button-vue--text-only[data-v-8f4e0666]{padding:0 12px}.button-vue--text-only .button-vue__text[data-v-8f4e0666]{margin-left:4px;margin-right:4px}.button-vue--icon-and-text[data-v-8f4e0666]{padding-block:0;padding-inline:var(--default-grid-baseline) calc(var(--default-grid-baseline) * 4)}.button-vue--wide[data-v-8f4e0666]{width:100%}.button-vue[data-v-8f4e0666]:focus-visible{outline:2px solid var(--color-main-text)!important;box-shadow:0 0 0 4px var(--color-main-background)!important}.button-vue:focus-visible.button-vue--vue-tertiary-on-primary[data-v-8f4e0666]{outline:2px solid var(--color-primary-element-text);border-radius:var(--border-radius);background-color:transparent}.button-vue--vue-primary[data-v-8f4e0666]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.button-vue--vue-primary[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-primary-element-hover)}.button-vue--vue-primary[data-v-8f4e0666]:active{background-color:var(--color-primary-element)}.button-vue--vue-secondary[data-v-8f4e0666]{color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue--vue-secondary[data-v-8f4e0666]:hover:not(:disabled){color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light-hover)}.button-vue--vue-tertiary[data-v-8f4e0666]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-background-hover)}.button-vue--vue-tertiary-no-background[data-v-8f4e0666]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary-no-background[data-v-8f4e0666]:hover:not(:disabled){background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-8f4e0666]{color:var(--color-primary-element-text);background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-8f4e0666]:hover:not(:disabled){background-color:transparent}.button-vue--vue-success[data-v-8f4e0666]{background-color:var(--color-success);color:#fff}.button-vue--vue-success[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-success-hover)}.button-vue--vue-success[data-v-8f4e0666]:active{background-color:var(--color-success)}.button-vue--vue-warning[data-v-8f4e0666]{background-color:var(--color-warning);color:#fff}.button-vue--vue-warning[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-warning-hover)}.button-vue--vue-warning[data-v-8f4e0666]:active{background-color:var(--color-warning)}.button-vue--vue-error[data-v-8f4e0666]{background-color:var(--color-error);color:#fff}.button-vue--vue-error[data-v-8f4e0666]:hover:not(:disabled){background-color:var(--color-error-hover)}.button-vue--vue-error[data-v-8f4e0666]:active{background-color:var(--color-error)}.availability-day[data-v-bad669e2]{padding:0 10px;position:absolute}.availability-slots[data-v-bad669e2]{max-width:332px;width:100%;display:flex;justify-content:flex-start;white-space:nowrap}.availability-slot[data-v-bad669e2]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-bad669e2]{display:flex;flex-direction:column}[data-v-bad669e2] .mx-input-wrapper{width:85px}[data-v-bad669e2] .mx-datepicker{width:97px}[data-v-bad669e2] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-bad669e2]{padding:32px 12px 12px 0}.week-day-container[data-v-bad669e2]{box-sizing:border-box;margin-bottom:32px;max-width:500px;width:100%;display:flex;flex-direction:column;align-items:flex-start;gap:6px}.button[data-v-bad669e2]{align-self:flex-end}.label-weekday[data-v-bad669e2]{position:relative;display:flex;align-items:flex-start;min-width:77px;width:77px}.label-weekday>span[data-v-bad669e2]{height:50px;display:flex;align-items:center}.add-another[data-v-bad669e2]{background-color:transparent;border:none;opacity:.5;display:inline-flex;padding:0;margin:0 0 3px}.add-another[data-v-bad669e2]:hover{opacity:1}.to-text[data-v-bad669e2]{padding-right:12px}.time-zone-text[data-v-bad669e2]{padding-left:22px}.empty-content[data-v-bad669e2]{color:var(--color-text-lighter);display:inline-flex;align-items:center}.start-date[data-v-bad669e2]{padding-right:12px}.day-container[data-v-bad669e2]{display:flex;max-width:500px;width:100%;gap:24px}')),document.head.appendChild(t)}}catch(t){k.error("vite-plugin-css-injected-by-js",t)}}();const B=["date","datetime-local","month","time","week"],j={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:t=>B.includes(t)},label:{type:String,default:"Please choose a date"},min:{type:[Date,Boolean],default:null},max:{type:[Date,Boolean],default:null},hideLabel:{type:Boolean,default:!1},inputClass:{type:[Object,String],default:""}},emits:["input"],computed:{formattedValue(){return this.formatValue(this.value)},formattedMin(){return!!this.min&&this.formatValue(this.min)},formattedMax(){return!!this.max&&this.formatValue(this.max)},listeners(){return{...this.$listeners,input:t=>{if(isNaN(t.target.valueAsNumber))return this.$emit("input",null);if("time"===this.type){const e=t.target.value;if(""===this.value){const{yyyy:t,MM:n,dd:r}=this.getReadableDate(new Date);return this.$emit("input",new Date("".concat(t,"-").concat(n,"-").concat(r,"T").concat(e)))}const{yyyy:n,MM:r,dd:i}=this.getReadableDate(this.value);return this.$emit("input",new Date("".concat(n,"-").concat(r,"-").concat(i,"T").concat(e)))}if("month"===this.type){const e=(new Date(t.target.value).getMonth()+1).toString().padStart(2,"0");if(""===this.value){const{yyyy:t,dd:n,hh:r,mm:i}=this.getReadableDate(new Date);return this.$emit("input",new Date("".concat(t,"-").concat(e,"-").concat(n,"T").concat(r,":").concat(i)))}const{yyyy:n,dd:r,hh:i,mm:a}=this.getReadableDate(this.value);return this.$emit("input",new Date("".concat(n,"-").concat(e,"-").concat(r,"T").concat(i,":").concat(a)))}const e=1e3*new Date(t.target.valueAsNumber).getTimezoneOffset()*60,n=t.target.valueAsNumber+e;return this.$emit("input",new Date(n))}}}},methods:{getReadableDate(t){if(t instanceof Date)return{yyyy:t.getFullYear().toString().padStart(4,"0"),MM:(t.getMonth()+1).toString().padStart(2,"0"),dd:t.getDate().toString().padStart(2,"0"),hh:t.getHours().toString().padStart(2,"0"),mm:t.getMinutes().toString().padStart(2,"0")}},formatValue(t){if(!(t instanceof Date))return"";{const{yyyy:e,MM:n,dd:r,hh:i,mm:a}=this.getReadableDate(t);if("datetime-local"===this.type)return"".concat(e,"-").concat(n,"-").concat(r,"T").concat(i,":").concat(a);if("date"===this.type)return"".concat(e,"-").concat(n,"-").concat(r);if("month"===this.type)return"".concat(e,"-").concat(n);if("time"===this.type)return"".concat(i,":").concat(a);if("week"===this.type){const n=new Date(e,0,1),r=Math.floor((t-n)/864e5),i=Math.ceil(r/7);return"".concat(e,"-W").concat(i)}}}}};var z=function(){var t=this,e=t._self._c;return e("div",{staticClass:"native-datetime-picker"},[e("label",{class:{"hidden-visually":t.hideLabel},attrs:{for:t.id}},[t._v(t._s(t.label))]),e("input",t._g(t._b({staticClass:"native-datetime-picker--input",class:t.inputClass,attrs:{id:t.id,type:t.type,min:t.formattedMin,max:t.formattedMax},domProps:{value:t.formattedValue}},"input",t.$attrs,!1),t.listeners))])};const F=R(j,z,[],!1,null,"22982259",null,null).exports;var W;(W=F).mounted?Array.isArray(W.mounted)||(W.mounted=[W.mounted]):W.mounted=[],W.mounted.push((function(){this.$el.setAttribute("data-v-c7eb113","")}));const V={name:"NcButton",props:{alignment:{type:String,default:"center",validator:t=>["start","start-reverse","center","center-reverse","end","end-reverse"].includes(t)},disabled:{type:Boolean,default:!1},type:{type:String,validator:t=>-1!==["primary","secondary","tertiary","tertiary-no-background","tertiary-on-primary","error","warning","success"].indexOf(t),default:"secondary"},nativeType:{type:String,validator:t=>-1!==["submit","reset","button"].indexOf(t),default:"button"},wide:{type:Boolean,default:!1},ariaLabel:{type:String,default:null},href:{type:String,default:null},download:{type:String,default:null},to:{type:[String,Object],default:null},exact:{type:Boolean,default:!1},ariaHidden:{type:Boolean,default:null},pressed:{type:Boolean,default:null}},emits:["update:pressed","click"],computed:{realType(){return this.pressed?"primary":!1===this.pressed&&"primary"===this.type?"secondary":this.type},flexAlignment(){return this.alignment.split("-")[0]},isReverseAligned(){return this.alignment.includes("-")}},render(t){var e,n,r;const i=!!this.$slots.default,a=null==(e=this.$slots)?void 0:e.icon;!i&&!this.ariaLabel&&k.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:null==(r=null==(n=this.$slots.default)?void 0:n[0])?void 0:r.text,ariaLabel:this.ariaLabel},this);const s=({navigate:e,isActive:n,isExactActive:r}={})=>t(this.to||!this.href?"button":"a",{class:["button-vue",{"button-vue--icon-only":a&&!i,"button-vue--text-only":i&&!a,"button-vue--icon-and-text":a&&i,["button-vue--vue-".concat(this.realType)]:this.realType,"button-vue--wide":this.wide,["button-vue--".concat(this.flexAlignment)]:"center"!==this.flexAlignment,"button-vue--reverse":this.isReverseAligned,active:n,"router-link-exact-active":r}],attrs:{"aria-label":this.ariaLabel,"aria-pressed":this.pressed,disabled:this.disabled,type:this.href?null:this.nativeType,role:this.href?"button":null,href:!this.to&&this.href?this.href:null,target:!this.to&&this.href?"_self":null,rel:!this.to&&this.href?"nofollow noreferrer noopener":null,download:!this.to&&this.href&&this.download?this.download:null,...this.$attrs},on:{...this.$listeners,click:t=>{"boolean"==typeof this.pressed&&this.$emit("update:pressed",!this.pressed),this.$emit("click",t),null==e||e(t)}}},[t("span",{class:"button-vue__wrapper"},[a?t("span",{class:"button-vue__icon",attrs:{"aria-hidden":"true"}},[this.$slots.icon]):null,i?t("span",{class:"button-vue__text"},[this.$slots.default]):null])]);return this.to?t("router-link",{props:{custom:!0,to:this.to,exact:this.exact},scopedSlots:{default:s}}):s()}},H=R(V,null,null,!1,null,"8f4e0666",null,null).exports;function G(t,e,n,r,i,a,s,o){var u,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),r&&(c.functional=!0),a&&(c._scopeId="data-v-"+a),s?(u=function(t){!(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)&&typeof __VUE_SSR_CONTEXT__<"u"&&(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(s)},c._ssrRegister=u):i&&(u=o?function(){i.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(c.functional){c._injectStyles=u;var l=c.render;c.render=function(t,e){return u.call(e),l(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:c}}const $=G({name:"DeleteIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon delete-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null,null).exports,K={name:"CalendarAvailability",components:{NcDateTimePickerNative:F,NcButton:H,IconAdd:G({name:"PlusIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},(function(){var t=this,e=t._self._c;return e("span",t._b({staticClass:"material-design-icon plus-icon",attrs:{"aria-hidden":!t.title,"aria-label":t.title,role:"img"},on:{click:function(e){return t.$emit("click",e)}}},"span",t.$attrs,!1),[e("svg",{staticClass:"material-design-icon__svg",attrs:{fill:t.fillColor,width:t.size,height:t.size,viewBox:"0 0 24 24"}},[e("path",{attrs:{d:"M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z"}},[t.title?e("title",[t._v(t._s(t.title))]):t._e()])])])}),[],!1,null,null,null,null).exports,IconDelete:$},props:{slots:{type:Object,required:!0},loading:{type:Boolean,default:!1},l10nTo:{type:String,required:!0},l10nDeleteSlot:{type:String,required:!0},l10nEmptyDay:{type:String,required:!0},l10nAddSlot:{type:String,required:!0},l10nMonday:{type:String,required:!0},l10nTuesday:{type:String,required:!0},l10nWednesday:{type:String,required:!0},l10nThursday:{type:String,required:!0},l10nFriday:{type:String,required:!0},l10nSaturday:{type:String,required:!0},l10nSunday:{type:String,required:!0},l10nStartPickerLabel:{type:Function,default:t=>"Pick a start time for ".concat(t)},l10nEndPickerLabel:{type:Function,default:t=>"Pick a end time for ".concat(t)}},data(){return{internalSlots:this.slotsToInternalData(this.slots)}},watch:{slots(){this.internalSlots=this.slotsToInternalData(this.slots)}},methods:{timeStampSlotsToDateObjectSlots:t=>t.map((t=>({start:new Date(1e3*t.start),end:new Date(1e3*t.end)}))),slotsToInternalData(){const t=[{id:"MO",displayName:this.l10nMonday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.MO)},{id:"TU",displayName:this.l10nTuesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TU)},{id:"WE",displayName:this.l10nWednesday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.WE)},{id:"TH",displayName:this.l10nThursday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.TH)},{id:"FR",displayName:this.l10nFriday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.FR)},{id:"SA",displayName:this.l10nSaturday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SA)}],e={id:"SU",displayName:this.l10nSunday,slots:this.timeStampSlotsToDateObjectSlots(this.slots.SU)};return 1===(0,a.yo)()?[...t,e]:[e,...t]},internalDataToSlots(){const t={};return this.internalSlots.forEach((({id:e,slots:n})=>{t[e]=n.map((t=>({start:Math.round(t.start.getTime()/1e3),end:Math.round(t.end.getTime()/1e3)})))})),t},addSlot(t){const e=new Date;e.setHours(9,0,0,0);const n=new Date;n.setHours(17,0,0,0),t.slots.push({start:e,end:n}),this.onChangeSlots()},removeSlot(t,e){t.slots.splice(e,1),this.onChangeSlots()},onChangeSlots(){this.$emit("update:slots",this.internalDataToSlots())}}},q=G(K,(function(){var t=this,e=t._self._c;return e("ul",{staticClass:"week-day-container"},[t._l(t.internalSlots,(function(n){return[e("li",{key:"day-label-".concat(n.id),staticClass:"day-container",attrs:{"aria-labelledby":n.displayName+"-label"}},[e("div",{staticClass:"label-weekday"},[e("span",{attrs:{id:n.displayName+"-label"}},[t._v(t._s(n.displayName))])]),e("div",{key:"day-slots-".concat(n.id),staticClass:"availability-slots"},[e("div",{staticClass:"availability-slot-group"},[t._l(n.slots,(function(r,i){var a,s;return[e("div",{key:"slot-".concat(n.id,"-").concat(i),staticClass:"availability-slot"},[e("NcDateTimePickerNative",{staticClass:"start-date",attrs:{id:"start-".concat(n.id,"-").concat(i),type:"time",label:null==(a=t.l10nStartPickerLabel)?void 0:a.call(t,n.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:r.start,callback:function(e){t.$set(r,"start",e)},expression:"slot.start"}}),e("span",{staticClass:"to-text"},[t._v(" "+t._s(t.l10nTo)+" ")]),e("NcDateTimePickerNative",{staticClass:"end-date",attrs:{id:"end-".concat(n.id,"-").concat(i),type:"time",label:null==(s=t.l10nEndPickerLabel)?void 0:s.call(t,n.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:r.end,callback:function(e){t.$set(r,"end",e)},expression:"slot.end"}}),e("NcButton",{key:"slot-".concat(n.id,"-").concat(i,"-btn"),staticClass:"button",attrs:{type:"tertiary","aria-label":t.l10nDeleteSlot,title:t.l10nDeleteSlot},on:{click:function(e){return t.removeSlot(n,i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})],1)]}))],2),0===n.slots.length?e("span",{staticClass:"empty-content"},[t._v(" "+t._s(t.l10nEmptyDay)+" ")]):t._e()]),e("NcButton",{key:"add-slot-".concat(n.id),staticClass:"add-another button",attrs:{disabled:t.loading,title:t.l10nAddSlot,"aria-label":t.l10nAddSlot},on:{click:function(e){return t.addSlot(n)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!0)})],1)]}))],2)}),[],!1,null,"bad669e2",null,null).exports;var Z=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},X={},J={};Object.defineProperty(J,"__esModule",{value:!0}),J.zonesMap=J.defaultStart=void 0,J.defaultStart="19700101T000000",J.zonesMap=new Map([["Africa/Abidjan",{s:{f:"+0000",n:"GMT"}}],["Africa/Accra",{s:{f:"+0000",n:"GMT"}}],["Africa/Addis_Ababa",{s:{f:"+0300",n:"EAT"}}],["Africa/Algiers",{s:{f:"+0100",n:"CET"}}],["Africa/Asmara",{s:{f:"+0300",n:"EAT"}}],["Africa/Bamako",{s:{f:"+0000",n:"GMT"}}],["Africa/Bangui",{s:{f:"+0100",n:"WAT"}}],["Africa/Banjul",{s:{f:"+0000",n:"GMT"}}],["Africa/Bissau",{s:{f:"+0000",n:"GMT"}}],["Africa/Blantyre",{s:{f:"+0200",n:"CAT"}}],["Africa/Brazzaville",{s:{f:"+0100",n:"WAT"}}],["Africa/Bujumbura",{s:{f:"+0200",n:"CAT"}}],["Africa/Cairo",{s:{f:"+0200",n:"EET"}}],["Africa/Casablanca",{s:{f:"+0100",n:"+01"}}],["Africa/Ceuta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Africa/Conakry",{s:{f:"+0000",n:"GMT"}}],["Africa/Dakar",{s:{f:"+0000",n:"GMT"}}],["Africa/Dar_es_Salaam",{s:{f:"+0300",n:"EAT"}}],["Africa/Djibouti",{s:{f:"+0300",n:"EAT"}}],["Africa/Douala",{s:{f:"+0100",n:"WAT"}}],["Africa/El_Aaiun",{s:{f:"+0100",n:"+01"}}],["Africa/Freetown",{s:{f:"+0000",n:"GMT"}}],["Africa/Gaborone",{s:{f:"+0200",n:"CAT"}}],["Africa/Harare",{s:{f:"+0200",n:"CAT"}}],["Africa/Johannesburg",{s:{f:"+0200",n:"SAST"}}],["Africa/Juba",{s:{f:"+0300",n:"EAT"}}],["Africa/Kampala",{s:{f:"+0300",n:"EAT"}}],["Africa/Khartoum",{s:{f:"+0200",n:"CAT"}}],["Africa/Kigali",{s:{f:"+0200",n:"CAT"}}],["Africa/Kinshasa",{s:{f:"+0100",n:"WAT"}}],["Africa/Lagos",{s:{f:"+0100",n:"WAT"}}],["Africa/Libreville",{s:{f:"+0100",n:"WAT"}}],["Africa/Lome",{s:{f:"+0000",n:"GMT"}}],["Africa/Luanda",{s:{f:"+0100",n:"WAT"}}],["Africa/Lubumbashi",{s:{f:"+0200",n:"CAT"}}],["Africa/Lusaka",{s:{f:"+0200",n:"CAT"}}],["Africa/Malabo",{s:{f:"+0100",n:"WAT"}}],["Africa/Maputo",{s:{f:"+0200",n:"CAT"}}],["Africa/Maseru",{s:{f:"+0200",n:"SAST"}}],["Africa/Mbabane",{s:{f:"+0200",n:"SAST"}}],["Africa/Mogadishu",{s:{f:"+0300",n:"EAT"}}],["Africa/Monrovia",{s:{f:"+0000",n:"GMT"}}],["Africa/Nairobi",{s:{f:"+0300",n:"EAT"}}],["Africa/Ndjamena",{s:{f:"+0100",n:"WAT"}}],["Africa/Niamey",{s:{f:"+0100",n:"WAT"}}],["Africa/Nouakchott",{s:{f:"+0000",n:"GMT"}}],["Africa/Ouagadougou",{s:{f:"+0000",n:"GMT"}}],["Africa/Porto-Novo",{s:{f:"+0100",n:"WAT"}}],["Africa/Sao_Tome",{s:{f:"+0100",n:"WAT"}}],["Africa/Tripoli",{s:{f:"+0200",n:"EET"}}],["Africa/Tunis",{s:{f:"+0100",n:"CET"}}],["Africa/Windhoek",{s:{f:"+0200",n:"CAT"}}],["America/Adak",{s:{f:"-0900",t:"-1000",n:"HST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-1000",t:"-0900",n:"HDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anchorage",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Anguilla",{s:{f:"-0400",n:"AST"}}],["America/Antigua",{s:{f:"-0400",n:"AST"}}],["America/Araguaina",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Buenos_Aires",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Catamarca",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Cordoba",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Jujuy",{s:{f:"-0300",n:"-03"}}],["America/Argentina/La_Rioja",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Mendoza",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Rio_Gallegos",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Salta",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Juan",{s:{f:"-0300",n:"-03"}}],["America/Argentina/San_Luis",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Tucuman",{s:{f:"-0300",n:"-03"}}],["America/Argentina/Ushuaia",{s:{f:"-0300",n:"-03"}}],["America/Aruba",{s:{f:"-0400",n:"AST"}}],["America/Asuncion",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700322T000000",r:{m:3,d:"4SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701004T000000",r:{m:10,d:"1SU"}}}],["America/Atikokan",{s:{f:"-0500",n:"EST"}}],["America/Bahia_Banderas",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Bahia",{s:{f:"-0300",n:"-03"}}],["America/Barbados",{s:{f:"-0400",n:"AST"}}],["America/Belem",{s:{f:"-0300",n:"-03"}}],["America/Belize",{s:{f:"-0600",n:"CST"}}],["America/Blanc-Sablon",{s:{f:"-0400",n:"AST"}}],["America/Boa_Vista",{s:{f:"-0400",n:"-04"}}],["America/Bogota",{s:{f:"-0500",n:"-05"}}],["America/Boise",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Cambridge_Bay",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Campo_Grande",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Cancun",{s:{f:"-0500",n:"EST"}}],["America/Caracas",{s:{f:"-0400",n:"-04"}}],["America/Cayenne",{s:{f:"-0300",n:"-03"}}],["America/Cayman",{s:{f:"-0500",n:"EST"}}],["America/Chicago",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Chihuahua",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Costa_Rica",{s:{f:"-0600",n:"CST"}}],["America/Creston",{s:{f:"-0700",n:"MST"}}],["America/Cuiaba",{s:{f:"-0400",n:"-04",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Curacao",{s:{f:"-0400",n:"AST"}}],["America/Danmarkshavn",{s:{f:"+0000",n:"GMT"}}],["America/Dawson_Creek",{s:{f:"-0700",n:"MST"}}],["America/Dawson",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Denver",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Detroit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Dominica",{s:{f:"-0400",n:"AST"}}],["America/Edmonton",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Eirunepe",{s:{f:"-0500",n:"-05"}}],["America/El_Salvador",{s:{f:"-0600",n:"CST"}}],["America/Fort_Nelson",{s:{f:"-0700",n:"MST"}}],["America/Fortaleza",{s:{f:"-0300",n:"-03"}}],["America/Glace_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Godthab",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701024T230000",r:{m:10,d:"-1SA"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700328T220000",r:{m:3,d:"-1SA"}}}],["America/Goose_Bay",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grand_Turk",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Grenada",{s:{f:"-0400",n:"AST"}}],["America/Guadeloupe",{s:{f:"-0400",n:"AST"}}],["America/Guatemala",{s:{f:"-0600",n:"CST"}}],["America/Guayaquil",{s:{f:"-0500",n:"-05"}}],["America/Guyana",{s:{f:"-0400",n:"-04"}}],["America/Halifax",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Havana",{s:{f:"-0400",t:"-0500",n:"CST",s:"19701101T010000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"CDT",s:"19700308T000000",r:{m:3,d:"2SU"}}}],["America/Hermosillo",{s:{f:"-0700",n:"MST"}}],["America/Indiana/Indianapolis",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Knox",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Marengo",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Petersburg",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Tell_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vevay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Vincennes",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Indiana/Winamac",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Inuvik",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Iqaluit",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Jamaica",{s:{f:"-0500",n:"EST"}}],["America/Juneau",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Louisville",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kentucky/Monticello",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Kralendijk",{s:{f:"-0400",n:"AST"}}],["America/La_Paz",{s:{f:"-0400",n:"-04"}}],["America/Lima",{s:{f:"-0500",n:"-05"}}],["America/Los_Angeles",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Lower_Princes",{s:{f:"-0400",n:"AST"}}],["America/Maceio",{s:{f:"-0300",n:"-03"}}],["America/Managua",{s:{f:"-0600",n:"CST"}}],["America/Manaus",{s:{f:"-0400",n:"-04"}}],["America/Marigot",{s:{f:"-0400",n:"AST"}}],["America/Martinique",{s:{f:"-0400",n:"AST"}}],["America/Matamoros",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mazatlan",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Menominee",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Merida",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Metlakatla",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Mexico_City",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Miquelon",{s:{f:"-0200",t:"-0300",n:"-03",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Moncton",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Monterrey",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700405T020000",r:{m:4,d:"1SU"}}}],["America/Montevideo",{s:{f:"-0300",n:"-03"}}],["America/Montserrat",{s:{f:"-0400",n:"AST"}}],["America/Nassau",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/New_York",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nipigon",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Nome",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Noronha",{s:{f:"-0200",n:"-02"}}],["America/North_Dakota/Beulah",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/Center",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/North_Dakota/New_Salem",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Ojinaga",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Panama",{s:{f:"-0500",n:"EST"}}],["America/Pangnirtung",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Paramaribo",{s:{f:"-0300",n:"-03"}}],["America/Phoenix",{s:{f:"-0700",n:"MST"}}],["America/Port_of_Spain",{s:{f:"-0400",n:"AST"}}],["America/Port-au-Prince",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Porto_Velho",{s:{f:"-0400",n:"-04"}}],["America/Puerto_Rico",{s:{f:"-0400",n:"AST"}}],["America/Punta_Arenas",{s:{f:"-0300",n:"-03"}}],["America/Rainy_River",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rankin_Inlet",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Recife",{s:{f:"-0300",n:"-03"}}],["America/Regina",{s:{f:"-0600",n:"CST"}}],["America/Resolute",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Rio_Branco",{s:{f:"-0500",n:"-05"}}],["America/Santarem",{s:{f:"-0300",n:"-03"}}],["America/Santiago",{s:{f:"-0300",t:"-0400",n:"-04",s:"19700405T000000",r:{m:4,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"-03",s:"19700906T000000",r:{m:9,d:"1SU"}}}],["America/Santo_Domingo",{s:{f:"-0400",n:"AST"}}],["America/Sao_Paulo",{s:{f:"-0300",n:"-03",s:"19700215T000000",r:{m:2,d:"3SU"}},d:{f:"-0300",t:"-0200",n:"-02",s:"19701101T000000",r:{m:11,d:"1SU"}}}],["America/Scoresbysund",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["America/Sitka",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Barthelemy",{s:{f:"-0400",n:"AST"}}],["America/St_Johns",{s:{f:"-0230",t:"-0330",n:"NST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0330",t:"-0230",n:"NDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/St_Kitts",{s:{f:"-0400",n:"AST"}}],["America/St_Lucia",{s:{f:"-0400",n:"AST"}}],["America/St_Thomas",{s:{f:"-0400",n:"AST"}}],["America/St_Vincent",{s:{f:"-0400",n:"AST"}}],["America/Swift_Current",{s:{f:"-0600",n:"CST"}}],["America/Tegucigalpa",{s:{f:"-0600",n:"CST"}}],["America/Thule",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Thunder_Bay",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tijuana",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Toronto",{s:{f:"-0400",t:"-0500",n:"EST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0500",t:"-0400",n:"EDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Tortola",{s:{f:"-0400",n:"AST"}}],["America/Vancouver",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Whitehorse",{s:{f:"-0700",t:"-0800",n:"PST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0800",t:"-0700",n:"PDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Winnipeg",{s:{f:"-0500",t:"-0600",n:"CST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0600",t:"-0500",n:"CDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yakutat",{s:{f:"-0800",t:"-0900",n:"AKST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0900",t:"-0800",n:"AKDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["America/Yellowknife",{s:{f:"-0600",t:"-0700",n:"MST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0700",t:"-0600",n:"MDT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Antarctica/Casey",{s:{f:"+0800",n:"+08"}}],["Antarctica/Davis",{s:{f:"+0700",n:"+07"}}],["Antarctica/DumontDUrville",{s:{f:"+1000",n:"+10"}}],["Antarctica/Macquarie",{s:{f:"+1100",n:"+11"}}],["Antarctica/Mawson",{s:{f:"+0500",n:"+05"}}],["Antarctica/McMurdo",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Antarctica/Palmer",{s:{f:"-0300",n:"-03"}}],["Antarctica/Rothera",{s:{f:"-0300",n:"-03"}}],["Antarctica/Syowa",{s:{f:"+0300",n:"+03"}}],["Antarctica/Troll",{s:{f:"+0200",t:"+0000",n:"+00",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0200",n:"+02",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Antarctica/Vostok",{s:{f:"+0600",n:"+06"}}],["Arctic/Longyearbyen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Asia/Aden",{s:{f:"+0300",n:"+03"}}],["Asia/Almaty",{s:{f:"+0600",n:"+06"}}],["Asia/Amman",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T010000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700326T235959",r:{m:3,d:"-1TH"}}}],["Asia/Anadyr",{s:{f:"+1200",n:"+12"}}],["Asia/Aqtau",{s:{f:"+0500",n:"+05"}}],["Asia/Aqtobe",{s:{f:"+0500",n:"+05"}}],["Asia/Ashgabat",{s:{f:"+0500",n:"+05"}}],["Asia/Atyrau",{s:{f:"+0500",n:"+05"}}],["Asia/Baghdad",{s:{f:"+0300",n:"+03"}}],["Asia/Bahrain",{s:{f:"+0300",n:"+03"}}],["Asia/Baku",{s:{f:"+0400",n:"+04"}}],["Asia/Bangkok",{s:{f:"+0700",n:"+07"}}],["Asia/Barnaul",{s:{f:"+0700",n:"+07"}}],["Asia/Beirut",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T000000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Asia/Bishkek",{s:{f:"+0600",n:"+06"}}],["Asia/Brunei",{s:{f:"+0800",n:"+08"}}],["Asia/Chita",{s:{f:"+0900",n:"+09"}}],["Asia/Choibalsan",{s:{f:"+0800",n:"+08"}}],["Asia/Colombo",{s:{f:"+0530",n:"+0530"}}],["Asia/Damascus",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701030T000000",r:{m:10,d:"-1FR"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700327T000000",r:{m:3,d:"-1FR"}}}],["Asia/Dhaka",{s:{f:"+0600",n:"+06"}}],["Asia/Dili",{s:{f:"+0900",n:"+09"}}],["Asia/Dubai",{s:{f:"+0400",n:"+04"}}],["Asia/Dushanbe",{s:{f:"+0500",n:"+05"}}],["Asia/Famagusta",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Gaza",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Hebron",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701031T010000",r:{m:10,d:"-1SA"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700328T010000",r:{m:3,d:"4SA"}}}],["Asia/Ho_Chi_Minh",{s:{f:"+0700",n:"+07"}}],["Asia/Hong_Kong",{s:{f:"+0800",n:"HKT"}}],["Asia/Hovd",{s:{f:"+0700",n:"+07"}}],["Asia/Irkutsk",{s:{f:"+0800",n:"+08"}}],["Asia/Istanbul",{s:{f:"+0300",n:"+03"}}],["Asia/Jakarta",{s:{f:"+0700",n:"WIB"}}],["Asia/Jayapura",{s:{f:"+0900",n:"WIT"}}],["Asia/Jerusalem",{s:{f:"+0300",t:"+0200",n:"IST",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"IDT",s:"19700327T020000",r:{m:3,d:"-1FR"}}}],["Asia/Kabul",{s:{f:"+0430",n:"+0430"}}],["Asia/Kamchatka",{s:{f:"+1200",n:"+12"}}],["Asia/Karachi",{s:{f:"+0500",n:"PKT"}}],["Asia/Kathmandu",{s:{f:"+0545",n:"+0545"}}],["Asia/Khandyga",{s:{f:"+0900",n:"+09"}}],["Asia/Kolkata",{s:{f:"+0530",n:"IST"}}],["Asia/Krasnoyarsk",{s:{f:"+0700",n:"+07"}}],["Asia/Kuala_Lumpur",{s:{f:"+0800",n:"+08"}}],["Asia/Kuching",{s:{f:"+0800",n:"+08"}}],["Asia/Kuwait",{s:{f:"+0300",n:"+03"}}],["Asia/Macau",{s:{f:"+0800",n:"CST"}}],["Asia/Magadan",{s:{f:"+1100",n:"+11"}}],["Asia/Makassar",{s:{f:"+0800",n:"WITA"}}],["Asia/Manila",{s:{f:"+0800",n:"PST"}}],["Asia/Muscat",{s:{f:"+0400",n:"+04"}}],["Asia/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Asia/Novokuznetsk",{s:{f:"+0700",n:"+07"}}],["Asia/Novosibirsk",{s:{f:"+0700",n:"+07"}}],["Asia/Omsk",{s:{f:"+0600",n:"+06"}}],["Asia/Oral",{s:{f:"+0500",n:"+05"}}],["Asia/Phnom_Penh",{s:{f:"+0700",n:"+07"}}],["Asia/Pontianak",{s:{f:"+0700",n:"WIB"}}],["Asia/Pyongyang",{s:{f:"+0900",n:"KST"}}],["Asia/Qatar",{s:{f:"+0300",n:"+03"}}],["Asia/Qyzylorda",{s:{f:"+0600",n:"+06"}}],["Asia/Riyadh",{s:{f:"+0300",n:"+03"}}],["Asia/Sakhalin",{s:{f:"+1100",n:"+11"}}],["Asia/Samarkand",{s:{f:"+0500",n:"+05"}}],["Asia/Seoul",{s:{f:"+0900",n:"KST"}}],["Asia/Shanghai",{s:{f:"+0800",n:"CST"}}],["Asia/Singapore",{s:{f:"+0800",n:"+08"}}],["Asia/Srednekolymsk",{s:{f:"+1100",n:"+11"}}],["Asia/Taipei",{s:{f:"+0800",n:"CST"}}],["Asia/Tashkent",{s:{f:"+0500",n:"+05"}}],["Asia/Tbilisi",{s:{f:"+0400",n:"+04"}}],["Asia/Tehran",{s:{f:"+0430",t:"+0330",n:"+0330",s:"19700921T000000",r:{m:9,d:"3SU"}},d:{f:"+0330",t:"+0430",n:"+0430",s:"19700321T000000",r:{m:3,d:"3SU"}}}],["Asia/Thimphu",{s:{f:"+0600",n:"+06"}}],["Asia/Tokyo",{s:{f:"+0900",n:"JST"}}],["Asia/Tomsk",{s:{f:"+0700",n:"+07"}}],["Asia/Ulaanbaatar",{s:{f:"+0800",n:"+08"}}],["Asia/Urumqi",{s:{f:"+0600",n:"+06"}}],["Asia/Ust-Nera",{s:{f:"+1000",n:"+10"}}],["Asia/Vientiane",{s:{f:"+0700",n:"+07"}}],["Asia/Vladivostok",{s:{f:"+1000",n:"+10"}}],["Asia/Yakutsk",{s:{f:"+0900",n:"+09"}}],["Asia/Yangon",{s:{f:"+0630",n:"+0630"}}],["Asia/Yekaterinburg",{s:{f:"+0500",n:"+05"}}],["Asia/Yerevan",{s:{f:"+0400",n:"+04"}}],["Atlantic/Azores",{s:{f:"+0000",t:"-0100",n:"-01",s:"19701025T010000",r:{m:10,d:"-1SU"}},d:{f:"-0100",t:"+0000",n:"+00",s:"19700329T000000",r:{m:3,d:"-1SU"}}}],["Atlantic/Bermuda",{s:{f:"-0300",t:"-0400",n:"AST",s:"19701101T020000",r:{m:11,d:"1SU"}},d:{f:"-0400",t:"-0300",n:"ADT",s:"19700308T020000",r:{m:3,d:"2SU"}}}],["Atlantic/Canary",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Cape_Verde",{s:{f:"-0100",n:"-01"}}],["Atlantic/Faroe",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Madeira",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Atlantic/Reykjavik",{s:{f:"+0000",n:"GMT"}}],["Atlantic/South_Georgia",{s:{f:"-0200",n:"-02"}}],["Atlantic/St_Helena",{s:{f:"+0000",n:"GMT"}}],["Atlantic/Stanley",{s:{f:"-0300",n:"-03"}}],["Australia/Adelaide",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Brisbane",{s:{f:"+1000",n:"AEST"}}],["Australia/Broken_Hill",{s:{f:"+1030",t:"+0930",n:"ACST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+0930",t:"+1030",n:"ACDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Currie",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Darwin",{s:{f:"+0930",n:"ACST"}}],["Australia/Eucla",{s:{f:"+0845",n:"+0845"}}],["Australia/Hobart",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Lindeman",{s:{f:"+1000",n:"AEST"}}],["Australia/Lord_Howe",{s:{f:"+1100",t:"+1030",n:"+1030",s:"19700405T020000",r:{m:4,d:"1SU"}},d:{f:"+1030",t:"+1100",n:"+11",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Melbourne",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Australia/Perth",{s:{f:"+0800",n:"AWST"}}],["Australia/Sydney",{s:{f:"+1100",t:"+1000",n:"AEST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1000",t:"+1100",n:"AEDT",s:"19701004T020000",r:{m:10,d:"1SU"}}}],["Etc/GMT-0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT-1",{s:{f:"-0100",n:"-01"}}],["Etc/GMT-10",{s:{f:"-1000",n:"-10"}}],["Etc/GMT-11",{s:{f:"-1100",n:"-11"}}],["Etc/GMT-12",{s:{f:"-1200",n:"-12"}}],["Etc/GMT-2",{s:{f:"-0200",n:"-02"}}],["Etc/GMT-3",{s:{f:"-0300",n:"-03"}}],["Etc/GMT-4",{s:{f:"-0400",n:"-04"}}],["Etc/GMT-5",{s:{f:"-0500",n:"-05"}}],["Etc/GMT-6",{s:{f:"-0600",n:"-06"}}],["Etc/GMT-7",{s:{f:"-0700",n:"-07"}}],["Etc/GMT-8",{s:{f:"-0800",n:"-08"}}],["Etc/GMT-9",{s:{f:"-0900",n:"-09"}}],["Etc/GMT",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+0",{s:{f:"+0000",n:"GMT"}}],["Etc/GMT+1",{s:{f:"+0100",n:"+01"}}],["Etc/GMT+10",{s:{f:"+1000",n:"+10"}}],["Etc/GMT+11",{s:{f:"+1100",n:"+11"}}],["Etc/GMT+12",{s:{f:"+1200",n:"+12"}}],["Etc/GMT+13",{s:{f:"+1300",n:"+13"}}],["Etc/GMT+14",{s:{f:"+1400",n:"+14"}}],["Etc/GMT+2",{s:{f:"+0200",n:"+02"}}],["Etc/GMT+3",{s:{f:"+0300",n:"+03"}}],["Etc/GMT+4",{s:{f:"+0400",n:"+04"}}],["Etc/GMT+5",{s:{f:"+0500",n:"+05"}}],["Etc/GMT+6",{s:{f:"+0600",n:"+06"}}],["Etc/GMT+7",{s:{f:"+0700",n:"+07"}}],["Etc/GMT+8",{s:{f:"+0800",n:"+08"}}],["Etc/GMT+9",{s:{f:"+0900",n:"+09"}}],["Etc/GMT0",{s:{f:"+0000",n:"GMT"}}],["Etc/Greenwich",{s:{f:"+0000",n:"GMT"}}],["Etc/UCT",{s:{f:"+0000",n:"UCT"}}],["Etc/Universal",{s:{f:"+0000",n:"UTC"}}],["Etc/UTC",{s:{f:"+0000",n:"UTC"}}],["Etc/Zulu",{s:{f:"+0000",n:"UTC"}}],["Europe/Amsterdam",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Andorra",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Astrakhan",{s:{f:"+0400",n:"+04"}}],["Europe/Athens",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Belgrade",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Berlin",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bratislava",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Brussels",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Bucharest",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Budapest",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Busingen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Chisinau",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Copenhagen",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Dublin",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"IST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Gibraltar",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Guernsey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Helsinki",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Isle_of_Man",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Istanbul",{s:{f:"+0300",n:"+03"}}],["Europe/Jersey",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Kaliningrad",{s:{f:"+0200",n:"EET"}}],["Europe/Kiev",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Kirov",{s:{f:"+0300",n:"+03"}}],["Europe/Lisbon",{s:{f:"+0100",t:"+0000",n:"WET",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"WEST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Ljubljana",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/London",{s:{f:"+0100",t:"+0000",n:"GMT",s:"19701025T020000",r:{m:10,d:"-1SU"}},d:{f:"+0000",t:"+0100",n:"BST",s:"19700329T010000",r:{m:3,d:"-1SU"}}}],["Europe/Luxembourg",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Madrid",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Malta",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Mariehamn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Minsk",{s:{f:"+0300",n:"+03"}}],["Europe/Monaco",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Moscow",{s:{f:"+0300",n:"MSK"}}],["Europe/Nicosia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Oslo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Paris",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Podgorica",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Prague",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Riga",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Rome",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Samara",{s:{f:"+0400",n:"+04"}}],["Europe/San_Marino",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sarajevo",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Saratov",{s:{f:"+0400",n:"+04"}}],["Europe/Simferopol",{s:{f:"+0300",n:"MSK"}}],["Europe/Skopje",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Sofia",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Stockholm",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Tallinn",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Tirane",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Ulyanovsk",{s:{f:"+0400",n:"+04"}}],["Europe/Uzhgorod",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Vaduz",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vatican",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vienna",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Vilnius",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Volgograd",{s:{f:"+0400",n:"+04"}}],["Europe/Warsaw",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zagreb",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Europe/Zaporozhye",{s:{f:"+0300",t:"+0200",n:"EET",s:"19701025T040000",r:{m:10,d:"-1SU"}},d:{f:"+0200",t:"+0300",n:"EEST",s:"19700329T030000",r:{m:3,d:"-1SU"}}}],["Europe/Zurich",{s:{f:"+0200",t:"+0100",n:"CET",s:"19701025T030000",r:{m:10,d:"-1SU"}},d:{f:"+0100",t:"+0200",n:"CEST",s:"19700329T020000",r:{m:3,d:"-1SU"}}}],["Indian/Antananarivo",{s:{f:"+0300",n:"EAT"}}],["Indian/Chagos",{s:{f:"+0600",n:"+06"}}],["Indian/Christmas",{s:{f:"+0700",n:"+07"}}],["Indian/Cocos",{s:{f:"+0630",n:"+0630"}}],["Indian/Comoro",{s:{f:"+0300",n:"EAT"}}],["Indian/Kerguelen",{s:{f:"+0500",n:"+05"}}],["Indian/Mahe",{s:{f:"+0400",n:"+04"}}],["Indian/Maldives",{s:{f:"+0500",n:"+05"}}],["Indian/Mauritius",{s:{f:"+0400",n:"+04"}}],["Indian/Mayotte",{s:{f:"+0300",n:"EAT"}}],["Indian/Reunion",{s:{f:"+0400",n:"+04"}}],["Pacific/Apia",{s:{f:"+1400",t:"+1300",n:"+13",s:"19700405T040000",r:{m:4,d:"1SU"}},d:{f:"+1300",t:"+1400",n:"+14",s:"19700927T030000",r:{m:9,d:"-1SU"}}}],["Pacific/Auckland",{s:{f:"+1300",t:"+1200",n:"NZST",s:"19700405T030000",r:{m:4,d:"1SU"}},d:{f:"+1200",t:"+1300",n:"NZDT",s:"19700927T020000",r:{m:9,d:"-1SU"}}}],["Pacific/Bougainville",{s:{f:"+1100",n:"+11"}}],["Pacific/Chatham",{s:{f:"+1345",t:"+1245",n:"+1245",s:"19700405T034500",r:{m:4,d:"1SU"}},d:{f:"+1245",t:"+1345",n:"+1345",s:"19700927T024500",r:{m:9,d:"-1SU"}}}],["Pacific/Chuuk",{s:{f:"+1000",n:"+10"}}],["Pacific/Easter",{s:{f:"-0500",t:"-0600",n:"-06",s:"19700404T220000",r:{m:4,d:"1SA"}},d:{f:"-0600",t:"-0500",n:"-05",s:"19700905T220000",r:{m:9,d:"1SA"}}}],["Pacific/Efate",{s:{f:"+1100",n:"+11"}}],["Pacific/Enderbury",{s:{f:"+1300",n:"+13"}}],["Pacific/Fakaofo",{s:{f:"+1300",n:"+13"}}],["Pacific/Fiji",{s:{f:"+1300",t:"+1200",n:"+12",s:"19700118T030000",r:{m:1,d:"-2SU"}},d:{f:"+1200",t:"+1300",n:"+13",s:"19701101T020000",r:{m:11,d:"1SU"}}}],["Pacific/Funafuti",{s:{f:"+1200",n:"+12"}}],["Pacific/Galapagos",{s:{f:"-0600",n:"-06"}}],["Pacific/Gambier",{s:{f:"-0900",n:"-09"}}],["Pacific/Guadalcanal",{s:{f:"+1100",n:"+11"}}],["Pacific/Guam",{s:{f:"+1000",n:"ChST"}}],["Pacific/Honolulu",{s:{f:"-1000",n:"HST"}}],["Pacific/Kiritimati",{s:{f:"+1400",n:"+14"}}],["Pacific/Kosrae",{s:{f:"+1100",n:"+11"}}],["Pacific/Kwajalein",{s:{f:"+1200",n:"+12"}}],["Pacific/Majuro",{s:{f:"+1200",n:"+12"}}],["Pacific/Marquesas",{s:{f:"-0930",n:"-0930"}}],["Pacific/Midway",{s:{f:"-1100",n:"SST"}}],["Pacific/Nauru",{s:{f:"+1200",n:"+12"}}],["Pacific/Niue",{s:{f:"-1100",n:"-11"}}],["Pacific/Norfolk",{s:{f:"+1100",n:"+11"}}],["Pacific/Noumea",{s:{f:"+1100",n:"+11"}}],["Pacific/Pago_Pago",{s:{f:"-1100",n:"SST"}}],["Pacific/Palau",{s:{f:"+0900",n:"+09"}}],["Pacific/Pitcairn",{s:{f:"-0800",n:"-08"}}],["Pacific/Pohnpei",{s:{f:"+1100",n:"+11"}}],["Pacific/Port_Moresby",{s:{f:"+1000",n:"+10"}}],["Pacific/Rarotonga",{s:{f:"-1000",n:"-10"}}],["Pacific/Saipan",{s:{f:"+1000",n:"ChST"}}],["Pacific/Tahiti",{s:{f:"-1000",n:"-10"}}],["Pacific/Tarawa",{s:{f:"+1200",n:"+12"}}],["Pacific/Tongatapu",{s:{f:"+1300",n:"+13"}}],["Pacific/Wake",{s:{f:"+1200",n:"+12"}}],["Pacific/Wallis",{s:{f:"+1200",n:"+12"}}]]),Object.defineProperty(X,"__esModule",{value:!0});var Q=X.getZoneString=X.getZoneLines=void 0;const tt=J;function et(t){const{n:e,f:n,t:r,r:i,s:a}=t;return["TZNAME:".concat(e),"TZOFFSETFROM:".concat(n),"TZOFFSETTO:".concat(r||n),"DTSTART:".concat(a||tt.defaultStart),...i?["RRULE:FREQ=".concat(i.f||"YEARLY",";BYMONTH=").concat(i.m,";BYDAY=").concat(i.d)]:[]]}function nt(t,e=!0){const n=tt.zonesMap.get(t);if(n){const{s:r,d:i}=n;return[...e?["BEGIN:VTIMEZONE"]:[],"TZID:".concat(t),"BEGIN:STANDARD",...et(r),"END:STANDARD",...i?["BEGIN:DAYLIGHT",...et(i),"END:DAYLIGHT"]:[],...e?["END:VTIMEZONE"]:[]]}}X.getZoneLines=nt,Q=X.getZoneString=function(t,e=!0){const n=nt(t,e);return null==n?void 0:n.join("\r\n")};var rt={exports:{}};!function(t){var e,n;(e=t.exports).foldLength=75,e.newLineChar="\r\n",e.helpers={updateTimezones:function(t){var n,r,i,a,s,o;if(!t||"vcalendar"!==t.name)return t;for(n=t.getAllSubcomponents(),r=[],i={},s=0;s<n.length;s++)"vtimezone"===n[s].name?i[o=n[s].getFirstProperty("tzid").getFirstValue()]=n[s]:r=r.concat(n[s].getAllProperties());for(a={},s=0;s<r.length;s++)(o=r[s].getParameter("tzid"))&&(a[o]=!0);for(s in i)i.hasOwnProperty(s)&&!a[s]&&t.removeSubcomponent(i[s]);for(s in a)a.hasOwnProperty(s)&&!i[s]&&e.TimezoneService.has(s)&&t.addSubcomponent(e.TimezoneService.get(s).component);return t},isStrictlyNaN:function(t){return"number"==typeof t&&isNaN(t)},strictParseInt:function(t){var n=parseInt(t,10);if(e.helpers.isStrictlyNaN(n))throw new Error('Could not extract integer from "'+t+'"');return n},formatClassType:function(t,e){if(!(typeof t>"u"))return t instanceof e?t:new e(t)},unescapedIndexOf:function(t,e,n){for(;-1!==(n=t.indexOf(e,n));){if(!(n>0&&"\\"===t[n-1]))return n;n+=1}return-1},binsearchInsert:function(t,e,n){if(!t.length)return 0;for(var r,i,a=0,s=t.length-1;a<=s;)if((i=n(e,t[r=a+Math.floor((s-a)/2)]))<0)s=r-1;else{if(!(i>0))break;a=r+1}return i<0?r:i>0?r+1:r},dumpn:function(){e.debug&&(e.helpers.dumpn=typeof k<"u"&&"log"in k?function(t){k.log(t)}:function(t){dump(t+"\n")},e.helpers.dumpn(arguments[0]))},clone:function(t,n){if(!t||"object"!=typeof t)return t;if(t instanceof Date)return new Date(t.getTime());if("clone"in t)return t.clone();if(Array.isArray(t)){for(var r=[],i=0;i<t.length;i++)r.push(n?e.helpers.clone(t[i],!0):t[i]);return r}var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=n?e.helpers.clone(t[s],!0):t[s]);return a},foldline:function(t){for(var n="",r=t||"",i=0,a=0;r.length;){var s=r.codePointAt(i);s<128?++a:a+=s<2048?2:s<65536?3:4,a<e.foldLength+1?i+=s>65535?2:1:(n+=e.newLineChar+" "+r.substring(0,i),r=r.substring(i),i=a=0)}return n.substr(e.newLineChar.length+1)},pad2:function(t){switch("string"!=typeof t&&("number"==typeof t&&(t=parseInt(t)),t=String(t)),t.length){case 0:return"00";case 1:return"0"+t;default:return t}},trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)},inherits:function(t,n,r){function i(){}i.prototype=t.prototype,n.prototype=new i,r&&e.helpers.extend(r,n.prototype)},extend:function(t,e){for(var n in t){var r=Object.getOwnPropertyDescriptor(t,n);r&&!Object.getOwnPropertyDescriptor(e,n)&&Object.defineProperty(e,n,r)}return e}},e.design=function(){var t=/\\\\|\\,|\\[Nn]/g,n=/\\|,|\n/g;function r(t,e){var n={matches:/.*/,fromICAL:function(e,n){return function(t,e,n){return-1===t.indexOf("\\")?t:(n&&(e=new RegExp(e.source+"|\\\\"+n)),t.replace(e,p))}(e,t,n)},toICAL:function(t,n){var r=e;return n&&(r=new RegExp(r.source+"|"+n)),t.replace(r,(function(t){switch(t){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return t}}))}};return n}var i={defaultType:"text"},a={defaultType:"text",multiValue:","},s={defaultType:"text",structuredValue:";"},o={defaultType:"integer"},u={defaultType:"date-time",allowedTypes:["date-time","date"]},c={defaultType:"date-time"},l={defaultType:"uri"},d={defaultType:"utc-offset"},f={defaultType:"recur"},h={defaultType:"date-and-or-time",allowedTypes:["date-time","date","text"]};function p(t){switch(t){case"\\\\":return"\\";case"\\;":return";";case"\\,":return",";case"\\n":case"\\N":return"\n";default:return t}}var m={categories:a,url:l,version:i,uid:i},y={boolean:{values:["TRUE","FALSE"],fromICAL:function(t){return"TRUE"===t},toICAL:function(t){return t?"TRUE":"FALSE"}},float:{matches:/^[+-]?\d+\.\d+$/,fromICAL:function(t){var n=parseFloat(t);return e.helpers.isStrictlyNaN(n)?0:n},toICAL:function(t){return String(t)}},integer:{fromICAL:function(t){var n=parseInt(t);return e.helpers.isStrictlyNaN(n)?0:n},toICAL:function(t){return String(t)}},"utc-offset":{toICAL:function(t){return t.length<7?t.substr(0,3)+t.substr(4,2):t.substr(0,3)+t.substr(4,2)+t.substr(7,2)},fromICAL:function(t){return t.length<6?t.substr(0,3)+":"+t.substr(3,2):t.substr(0,3)+":"+t.substr(3,2)+":"+t.substr(5,2)},decorate:function(t){return e.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}},v=e.helpers.extend(y,{text:r(/\\\\|\\;|\\,|\\[Nn]/g,/\\|;|,|\n/g),uri:{},binary:{decorate:function(t){return e.Binary.fromString(t)},undecorate:function(t){return t.toString()}},"cal-address":{},date:{decorate:function(t,n){return C.strict?e.Time.fromDateString(t,n):e.Time.fromString(t,n)},undecorate:function(t){return t.toString()},fromICAL:function(t){return!C.strict&&t.length>=15?v["date-time"].fromICAL(t):t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)},toICAL:function(t){var e=t.length;return 10==e?t.substr(0,4)+t.substr(5,2)+t.substr(8,2):e>=19?v["date-time"].toICAL(t):t}},"date-time":{fromICAL:function(t){if(!C.strict&&8==t.length)return v.date.fromICAL(t);var e=t.substr(0,4)+"-"+t.substr(4,2)+"-"+t.substr(6,2)+"T"+t.substr(9,2)+":"+t.substr(11,2)+":"+t.substr(13,2);return t[15]&&"Z"===t[15]&&(e+="Z"),e},toICAL:function(t){var e=t.length;if(10==e&&!C.strict)return v.date.toICAL(t);if(e>=19){var n=t.substr(0,4)+t.substr(5,2)+t.substr(8,5)+t.substr(14,2)+t.substr(17,2);return t[19]&&"Z"===t[19]&&(n+="Z"),n}return t},decorate:function(t,n){return C.strict?e.Time.fromDateTimeString(t,n):e.Time.fromString(t,n)},undecorate:function(t){return t.toString()}},duration:{decorate:function(t){return e.Duration.fromString(t)},undecorate:function(t){return t.toString()}},period:{fromICAL:function(t){var n=t.split("/");return n[0]=v["date-time"].fromICAL(n[0]),e.Duration.isValueString(n[1])||(n[1]=v["date-time"].fromICAL(n[1])),n},toICAL:function(t){return C.strict||10!=t[0].length?t[0]=v["date-time"].toICAL(t[0]):t[0]=v.date.toICAL(t[0]),e.Duration.isValueString(t[1])||(C.strict||10!=t[1].length?t[1]=v["date-time"].toICAL(t[1]):t[1]=v.date.toICAL(t[1])),t.join("/")},decorate:function(t,n){return e.Period.fromJSON(t,n,!C.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return e.Recur._stringToData(t,!0)},toICAL:function(t){var n="";for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var i=t[r];"until"==r?i=i.length>10?v["date-time"].toICAL(i):v.date.toICAL(i):"wkst"==r?"number"==typeof i&&(i=e.Recur.numericDayToIcalDay(i)):Array.isArray(i)&&(i=i.join(",")),n+=r.toUpperCase()+"="+i+";"}return n.substr(0,n.length-1)},decorate:function(t){return e.Recur.fromData(t)},undecorate:function(t){return t.toJSON()}},time:{fromICAL:function(t){if(t.length<6)return t;var e=t.substr(0,2)+":"+t.substr(2,2)+":"+t.substr(4,2);return"Z"===t[6]&&(e+="Z"),e},toICAL:function(t){if(t.length<8)return t;var e=t.substr(0,2)+t.substr(3,2)+t.substr(6,2);return"Z"===t[8]&&(e+="Z"),e}}}),T=e.helpers.extend(m,{action:i,attach:{defaultType:"uri"},attendee:{defaultType:"cal-address"},calscale:i,class:i,comment:i,completed:c,contact:i,created:c,description:i,dtend:u,dtstamp:c,dtstart:u,due:u,duration:{defaultType:"duration"},exdate:{defaultType:"date-time",allowedTypes:["date-time","date"],multiValue:","},exrule:f,freebusy:{defaultType:"period",multiValue:","},geo:{defaultType:"float",structuredValue:";"},"last-modified":c,location:i,method:i,organizer:{defaultType:"cal-address"},"percent-complete":o,priority:o,prodid:i,"related-to":i,repeat:o,rdate:{defaultType:"date-time",allowedTypes:["date-time","date","period"],multiValue:",",detectType:function(t){return-1!==t.indexOf("/")?"period":-1===t.indexOf("T")?"date":"date-time"}},"recurrence-id":u,resources:a,"request-status":s,rrule:f,sequence:o,status:i,summary:i,transp:i,trigger:{defaultType:"duration",allowedTypes:["duration","date-time"]},tzoffsetfrom:d,tzoffsetto:d,tzurl:l,tzid:i,tzname:i}),g=e.helpers.extend(y,{text:r(t,n),uri:r(t,n),date:{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date")},undecorate:function(t){return t.toString()},fromICAL:function(t){return 8==t.length?v.date.fromICAL(t):"-"==t[0]&&6==t.length?t.substr(0,4)+"-"+t.substr(4):t},toICAL:function(t){return 10==t.length?v.date.toICAL(t):"-"==t[0]&&7==t.length?t.substr(0,4)+t.substr(5):t}},time:{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString("T"+t,"time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=g.time._splitZone(t,!0),n=e[0],r=e[1];return 6==r.length?r=r.substr(0,2)+":"+r.substr(2,2)+":"+r.substr(4,2):4==r.length&&"-"!=r[0]?r=r.substr(0,2)+":"+r.substr(2,2):5==r.length&&(r=r.substr(0,3)+":"+r.substr(3,2)),5==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.substr(0,3)+":"+n.substr(3)),r+n},toICAL:function(t){var e=g.time._splitZone(t),n=e[0],r=e[1];return 8==r.length?r=r.substr(0,2)+r.substr(3,2)+r.substr(6,2):5==r.length&&"-"!=r[0]?r=r.substr(0,2)+r.substr(3,2):6==r.length&&(r=r.substr(0,3)+r.substr(4,2)),6==n.length&&("-"==n[0]||"+"==n[0])&&(n=n.substr(0,3)+n.substr(4)),r+n},_splitZone:function(t,e){var n,r,i=t.length-1,a=t.length-(e?5:6),s=t[a];return"Z"==t[i]?(n=t[i],r=t.substr(0,i)):t.length>6&&("-"==s||"+"==s)?(n=t.substr(a),r=t.substr(0,a)):(n="",r=t),[n,r]}},"date-time":{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){return g["date-and-or-time"].fromICAL(t)},toICAL:function(t){return g["date-and-or-time"].toICAL(t)}},"date-and-or-time":{decorate:function(t){return e.VCardTime.fromDateAndOrTimeString(t,"date-and-or-time")},undecorate:function(t){return t.toString()},fromICAL:function(t){var e=t.split("T");return(e[0]?g.date.fromICAL(e[0]):"")+(e[1]?"T"+g.time.fromICAL(e[1]):"")},toICAL:function(t){var e=t.split("T");return g.date.toICAL(e[0])+(e[1]?"T"+g.time.toICAL(e[1]):"")}},timestamp:v["date-time"],"language-tag":{matches:/^[a-zA-Z0-9-]+$/}}),A=e.helpers.extend(m,{adr:{defaultType:"text",structuredValue:";",multiValue:","},anniversary:h,bday:h,caladruri:l,caluri:l,clientpidmap:s,email:i,fburl:l,fn:i,gender:s,geo:l,impp:l,key:l,kind:i,lang:{defaultType:"language-tag"},logo:l,member:l,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:a,note:i,org:{defaultType:"text",structuredValue:";"},photo:l,related:l,rev:{defaultType:"timestamp"},role:i,sound:l,source:l,tel:{defaultType:"uri",allowedTypes:["uri","text"]},title:i,tz:{defaultType:"text",allowedTypes:["text","utc-offset","uri"]},xml:i}),b=e.helpers.extend(y,{binary:v.binary,date:g.date,"date-time":g["date-time"],"phone-number":{},uri:v.uri,text:v.text,time:v.time,vcard:v.text,"utc-offset":{toICAL:function(t){return t.substr(0,7)},fromICAL:function(t){return t.substr(0,7)},decorate:function(t){return e.UtcOffset.fromString(t)},undecorate:function(t){return t.toString()}}}),S=e.helpers.extend(m,{fn:i,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:a,photo:{defaultType:"binary",allowedTypes:["binary","uri"]},bday:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},adr:{defaultType:"text",structuredValue:";",multiValue:","},label:i,tel:{defaultType:"phone-number"},email:i,mailer:i,tz:{defaultType:"utc-offset",allowedTypes:["utc-offset","text"]},geo:{defaultType:"float",structuredValue:";"},title:i,role:i,logo:{defaultType:"binary",allowedTypes:["binary","uri"]},agent:{defaultType:"vcard",allowedTypes:["vcard","text","uri"]},org:s,note:a,prodid:i,rev:{defaultType:"date-time",allowedTypes:["date-time","date"],detectType:function(t){return-1===t.indexOf("T")?"date":"date-time"}},"sort-string":i,sound:{defaultType:"binary",allowedTypes:["binary","uri"]},class:i,key:{defaultType:"binary",allowedTypes:["binary","text"]}}),E={value:v,param:{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}},property:T},_={value:g,param:{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}},property:A},D={value:b,param:{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}},property:S},C={strict:!0,defaultSet:E,defaultType:"unknown",components:{vcard:_,vcard3:D,vevent:E,vtodo:E,vjournal:E,valarm:E,vtimezone:E,daylight:E,standard:E},icalendar:E,vcard:_,vcard3:D,getDesignSet:function(t){return t&&t in C.components?C.components[t]:C.defaultSet}};return C}(),e.stringify=function(){var t="\r\n",n="unknown",r=e.design,i=e.helpers;function a(e){"string"==typeof e[0]&&(e=[e]);for(var n=0,r=e.length,i="";n<r;n++)i+=a.component(e[n])+t;return i}a.component=function(e,n){var i=e[0].toUpperCase(),s="BEGIN:"+i+t,o=e[1],u=0,c=o.length,l=e[0];for("vcard"===l&&e[1].length>0&&!("version"===e[1][0][0]&&"4.0"===e[1][0][3])&&(l="vcard3"),n=n||r.getDesignSet(l);u<c;u++)s+=a.property(o[u],n)+t;for(var d=e[2]||[],f=0,h=d.length;f<h;f++)s+=a.component(d[f],n)+t;return s+"END:"+i},a.property=function(t,i,s){var o,u=t[0].toUpperCase(),c=t[0],l=t[1],d=u;for(o in l){var f=l[o];l.hasOwnProperty(o)&&((m=o in i.param&&i.param[o].multiValue)&&Array.isArray(f)?(i.param[o].multiValueSeparateDQuote&&(m='"'+m+'"'),f=f.map(a._rfc6868Unescape),f=a.multiValue(f,m,"unknown",null,i)):f=a._rfc6868Unescape(f),d+=";"+o.toUpperCase(),d+="="+a.propertyValue(f))}if(3===t.length)return d+":";var h=t[2];i||(i=r.defaultSet);var p,m=!1,y=!1,v=!1;return c in i.property?("multiValue"in(p=i.property[c])&&(m=p.multiValue),"structuredValue"in p&&Array.isArray(t[3])&&(y=p.structuredValue),"defaultType"in p?h===p.defaultType&&(v=!0):h===n&&(v=!0)):h===n&&(v=!0),v||(d+=";VALUE="+h.toUpperCase()),d+=":",d+=m&&y?a.multiValue(t[3],y,h,m,i,y):m?a.multiValue(t.slice(3),m,h,null,i,!1):y?a.multiValue(t[3],y,h,null,i,y):a.value(t[3],h,i,!1),s?d:e.helpers.foldline(d)},a.propertyValue=function(t){return-1===i.unescapedIndexOf(t,",")&&-1===i.unescapedIndexOf(t,":")&&-1===i.unescapedIndexOf(t,";")?t:'"'+t+'"'},a.multiValue=function(t,e,n,r,i,s){for(var o="",u=t.length,c=0;c<u;c++)r&&Array.isArray(t[c])?o+=a.multiValue(t[c],r,n,null,i,s):o+=a.value(t[c],n,i,s),c!==u-1&&(o+=e);return o},a.value=function(t,e,n,r){return e in n.value&&"toICAL"in n.value[e]?n.value[e].toICAL(t,r):t},a._rfc6868Unescape=function(t){return t.replace(/[\n^"]/g,(function(t){return s[t]}))};var s={'"':"^'","\n":"^n","^":"^^"};return a}(),e.parse=function(){var t=/[^ \t]/,n=e.design,r=e.helpers;function i(t){this.message=t,this.name="ParserError";try{throw new Error}catch(t){if(t.stack){var e=t.stack.split("\n");e.shift(),this.stack=e.join("\n")}}}function a(t){var e={},n=e.component=[];if(e.stack=[n],a._eachLine(t,(function(t,n){a._handleContentLine(n,e)})),e.stack.length>1)throw new i("invalid ical body. component began but did not end");return e=null,1==n.length?n[0]:n}i.prototype=Error.prototype,a.property=function(t,e){var r={component:[[],[]],designSet:e||n.defaultSet};return a._handleContentLine(t,r),r.component[1][0]},a.component=function(t){return a(t)},a.ParserError=i,a._handleContentLine=function(t,e){var r,s,o,u,c,l=t.indexOf(":"),d=t.indexOf(";"),f={};if(-1!==d&&-1!==l&&d>l&&(d=-1),-1!==d){if(o=t.substring(0,d).toLowerCase(),-1==(c=a._parseParameters(t.substring(d),0,e.designSet))[2])throw new i("Invalid parameters in '"+t+"'");if(f=c[0],r=c[1].length+c[2]+d,-1===(s=t.substring(r).indexOf(":")))throw new i("Missing parameter value in '"+t+"'");u=t.substring(r+s+1)}else{if(-1===l)throw new i('invalid line (no token ";" or ":") "'+t+'"');if(o=t.substring(0,l).toLowerCase(),u=t.substring(l+1),"begin"===o){var h=[u.toLowerCase(),[],[]];return 1===e.stack.length?e.component.push(h):e.component[2].push(h),e.stack.push(e.component),e.component=h,void(e.designSet||(e.designSet=n.getDesignSet(e.component[0])))}if("end"===o)return void(e.component=e.stack.pop())}var p,m,y,v=!1,T=!1;o in e.designSet.property&&("multiValue"in(m=e.designSet.property[o])&&(v=m.multiValue),"structuredValue"in m&&(T=m.structuredValue),u&&"detectType"in m&&(p=m.detectType(u))),p||(p="value"in f?f.value.toLowerCase():m?m.defaultType:"unknown"),delete f.value,v&&T?y=[o,f,p,u=a._parseMultiValue(u,T,p,[],v,e.designSet,T)]:v?(y=[o,f,p],a._parseMultiValue(u,v,p,y,null,e.designSet,!1)):y=T?[o,f,p,u=a._parseMultiValue(u,T,p,[],null,e.designSet,T)]:[o,f,p,u=a._parseValue(u,p,e.designSet,!1)],"vcard"===e.component[0]&&0===e.component[1].length&&!("version"===o&&"4.0"===u)&&(e.designSet=n.getDesignSet("vcard3")),e.component[1].push(y)},a._parseValue=function(t,e,n,r){return e in n.value&&"fromICAL"in n.value[e]?n.value[e].fromICAL(t,r):t},a._parseParameters=function(t,e,n){for(var s,o,u,c,l,d,f=e,h=0,p={},m=-1;!1!==h&&-1!==(h=r.unescapedIndexOf(t,"=",h+1));){if(0==(s=t.substr(f+1,h-f-1)).length)throw new i("Empty parameter name in '"+t+"'");if(d=!1,l=!1,c=(o=s.toLowerCase())in n.param&&n.param[o].valueType?n.param[o].valueType:"text",o in n.param&&(l=n.param[o].multiValue,n.param[o].multiValueSeparateDQuote&&(d=a._rfc6868Escape('"'+l+'"'))),'"'===t[h+1]){if(m=h+2,h=r.unescapedIndexOf(t,'"',m),l&&-1!=h)for(var y=!0;y;)t[h+1]==l&&'"'==t[h+2]?h=r.unescapedIndexOf(t,'"',h+3):y=!1;if(-1===h)throw new i('invalid line (no matching double quote) "'+t+'"');u=t.substr(m,h-m),-1===(f=r.unescapedIndexOf(t,";",h))&&(h=!1)}else{m=h+1;var v=r.unescapedIndexOf(t,";",m),T=r.unescapedIndexOf(t,":",m);-1!==T&&v>T?(v=T,h=!1):-1===v?(v=-1===T?t.length:T,h=!1):(f=v,h=v),u=t.substr(m,v-m)}if(u=a._rfc6868Escape(u),l){var g=d||l;u=a._parseMultiValue(u,g,c,[],null,n)}else u=a._parseValue(u,c,n);l&&o in p?Array.isArray(p[o])?p[o].push(u):p[o]=[p[o],u]:p[o]=u}return[p,u,m]},a._rfc6868Escape=function(t){return t.replace(/\^['n^]/g,(function(t){return s[t]}))};var s={"^'":'"',"^n":"\n","^^":"^"};return a._parseMultiValue=function(t,e,n,i,s,o,u){var c,l=0,d=0;if(0===e.length)return t;for(;-1!==(l=r.unescapedIndexOf(t,e,d));)c=t.substr(d,l-d),c=s?a._parseMultiValue(c,s,n,[],null,o,u):a._parseValue(c,n,o,u),i.push(c),d=l+e.length;return c=t.substr(d),c=s?a._parseMultiValue(c,s,n,[],null,o,u):a._parseValue(c,n,o,u),i.push(c),1==i.length?i[0]:i},a._eachLine=function(e,n){var r,i,a,s=e.length,o=e.search(t),u=o;do{a=(u=e.indexOf("\n",o)+1)>1&&"\r"===e[u-2]?2:1,0===u&&(u=s,a=0)," "===(i=e[o])||"\t"===i?r+=e.substr(o+1,u-o-(a+1)):(r&&n(null,r),r=e.substr(o,u-o-a)),o=u}while(u!==s);(r=r.trim()).length&&n(null,r)},a}(),e.Component=function(){function t(t,e){"string"==typeof t&&(t=[t,[],[]]),this.jCal=t,this.parent=e||null}return t.prototype={_hydratedPropertyCount:0,_hydratedComponentCount:0,get name(){return this.jCal[0]},get _designSet(){return this.parent&&this.parent._designSet||e.design.getDesignSet(this.name)},_hydrateComponent:function(e){if(this._components||(this._components=[],this._hydratedComponentCount=0),this._components[e])return this._components[e];var n=new t(this.jCal[2][e],this);return this._hydratedComponentCount++,this._components[e]=n},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var n=new e.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=n},getFirstSubcomponent:function(t){if(t){for(var e=0,n=this.jCal[2],r=n.length;e<r;e++)if(n[e][0]===t)return this._hydrateComponent(e)}else if(this.jCal[2].length)return this._hydrateComponent(0);return null},getAllSubcomponents:function(t){var e=this.jCal[2].length,n=0;if(t){for(var r=this.jCal[2],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateComponent(n));return i}if(!this._components||this._hydratedComponentCount!==e)for(;n<e;n++)this._hydrateComponent(n);return this._components||[]},hasProperty:function(t){for(var e=this.jCal[1],n=e.length,r=0;r<n;r++)if(e[r][0]===t)return!0;return!1},getFirstProperty:function(t){if(t){for(var e=0,n=this.jCal[1],r=n.length;e<r;e++)if(n[e][0]===t)return this._hydrateProperty(e)}else if(this.jCal[1].length)return this._hydrateProperty(0);return null},getFirstPropertyValue:function(t){var e=this.getFirstProperty(t);return e?e.getFirstValue():null},getAllProperties:function(t){var e=this.jCal[1].length,n=0;if(t){for(var r=this.jCal[1],i=[];n<e;n++)t===r[n][0]&&i.push(this._hydrateProperty(n));return i}if(!this._properties||this._hydratedPropertyCount!==e)for(;n<e;n++)this._hydrateProperty(n);return this._properties||[]},_removeObjectByIndex:function(t,e,n){if((e=e||[])[n]){var r=e[n];"parent"in r&&(r.parent=null)}e.splice(n,1),this.jCal[t].splice(n,1)},_removeObject:function(t,e,n){var r=0,i=this.jCal[t],a=i.length,s=this[e];if("string"==typeof n){for(;r<a;r++)if(i[r][0]===n)return this._removeObjectByIndex(t,s,r),!0}else if(s)for(;r<a;r++)if(s[r]&&s[r]===n)return this._removeObjectByIndex(t,s,r),!0;return!1},_removeAllObjects:function(t,e,n){for(var r=this[e],i=this.jCal[t],a=i.length-1;a>=0;a--)(!n||i[a][0]===n)&&this._removeObjectByIndex(t,r,a)},addSubcomponent:function(t){this._components||(this._components=[],this._hydratedComponentCount=0),t.parent&&t.parent.removeSubcomponent(t);var e=this.jCal[2].push(t.jCal);return this._components[e-1]=t,this._hydratedComponentCount++,t.parent=this,t},removeSubcomponent:function(t){var e=this._removeObject(2,"_components",t);return e&&this._hydratedComponentCount--,e},removeAllSubcomponents:function(t){var e=this._removeAllObjects(2,"_components",t);return this._hydratedComponentCount=0,e},addProperty:function(t){if(!(t instanceof e.Property))throw new TypeError("must instance of ICAL.Property");this._properties||(this._properties=[],this._hydratedPropertyCount=0),t.parent&&t.parent.removeProperty(t);var n=this.jCal[1].push(t.jCal);return this._properties[n-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,n){var r=new e.Property(t);return r.setValue(n),this.addProperty(r),r},updatePropertyWithValue:function(t,e){var n=this.getFirstProperty(t);return n?n.setValue(e):n=this.addPropertyWithValue(t,e),n},removeProperty:function(t){var e=this._removeObject(1,"_properties",t);return e&&this._hydratedPropertyCount--,e},removeAllProperties:function(t){var e=this._removeAllObjects(1,"_properties",t);return this._hydratedPropertyCount=0,e},toJSON:function(){return this.jCal},toString:function(){return e.stringify.component(this.jCal,this._designSet)}},t.fromString=function(n){return new t(e.parse.component(n))},t}(),e.Property=function(){var t=e.design;function n(e,n){this._parent=n||null,"string"==typeof e?(this.jCal=[e,{},t.defaultType],this.jCal[2]=this.getDefaultType()):this.jCal=e,this._updateType()}return n.prototype={get type(){return this.jCal[2]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(e){var n=!this._parent||e&&e._designSet!=this._parent._designSet;return this._parent=e,this.type==t.defaultType&&n&&(this.jCal[2]=this.getDefaultType(),this._updateType()),e},get _designSet(){return this.parent?this.parent._designSet:t.defaultSet},_updateType:function(){var t=this._designSet;this.type in t.value&&(t.value[this.type],"decorate"in t.value[this.type]?this.isDecorated=!0:this.isDecorated=!1,this.name in t.property&&(this.isMultiValue="multiValue"in t.property[this.name],this.isStructuredValue="structuredValue"in t.property[this.name]))},_hydrateValue:function(t){return this._values&&this._values[t]?this._values[t]:this.jCal.length<=3+t?null:this.isDecorated?(this._values||(this._values=[]),this._values[t]=this._decorate(this.jCal[3+t])):this.jCal[3+t]},_decorate:function(t){return this._designSet.value[this.type].decorate(t,this)},_undecorate:function(t){return this._designSet.value[this.type].undecorate(t,this)},_setDecoratedValue:function(t,e){this._values||(this._values=[]),"object"==typeof t&&"icaltype"in t?(this.jCal[3+e]=this._undecorate(t),this._values[e]=t):(this.jCal[3+e]=t,this._values[e]=this._decorate(t))},getParameter:function(t){if(t in this.jCal[1])return this.jCal[1][t]},getFirstParameter:function(t){var e=this.getParameter(t);return Array.isArray(e)?e[0]:e},setParameter:function(t,e){var n=t.toLowerCase();"string"==typeof e&&n in this._designSet.param&&"multiValue"in this._designSet.param[n]&&(e=[e]),this.jCal[1][t]=e},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var e=this.jCal[0],n=this._designSet;if(e in n.property){var r=n.property[e];if("defaultType"in r)return r.defaultType}return t.defaultType},resetType:function(t){this.removeAllValues(),this.jCal[2]=t,this._updateType()},getFirstValue:function(){return this._hydrateValue(0)},getValues:function(){var t=this.jCal.length-3;if(t<1)return[];for(var e=0,n=[];e<t;e++)n[e]=this._hydrateValue(e);return n},removeAllValues:function(){this._values&&(this._values.length=0),this.jCal.length=3},setValues:function(t){if(!this.isMultiValue)throw new Error(this.name+": does not not support mulitValue.\noverride isMultiValue");var e=t.length,n=0;if(this.removeAllValues(),e>0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;n<e;n++)this._setDecoratedValue(t[n],n);else for(;n<e;n++)this.jCal[3+n]=t[n]},setValue:function(t){this.removeAllValues(),"object"==typeof t&&"icaltype"in t&&this.resetType(t.icaltype),this.isDecorated?this._setDecoratedValue(t,0):this.jCal[3]=t},toJSON:function(){return this.jCal},toICALString:function(){return e.stringify.property(this.jCal,this._designSet,!0)}},n.fromString=function(t,r){return new n(e.parse.property(t,r))},n}(),e.UtcOffset=function(){function t(t){this.fromData(t)}return t.prototype={hours:0,minutes:0,factor:1,icaltype:"utc-offset",clone:function(){return e.UtcOffset.fromSeconds(this.toSeconds())},fromData:function(t){if(t)for(var e in t)t.hasOwnProperty(e)&&(this[e]=t[e]);this._normalize()},fromSeconds:function(t){var n=Math.abs(t);return this.factor=t<0?-1:1,this.hours=e.helpers.trunc(n/3600),n-=3600*this.hours,this.minutes=e.helpers.trunc(n/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(n>e)},_normalize:function(){for(var t=this.toSeconds(),e=this.factor;t<-43200;)t+=97200;for(;t>50400;)t-=97200;this.fromSeconds(t),0==t&&(this.factor=e)},toICALString:function(){return e.design.icalendar.value["utc-offset"].toICAL(this.toString())},toString:function(){return(1==this.factor?"+":"-")+e.helpers.pad2(this.hours)+":"+e.helpers.pad2(this.minutes)}},t.fromString=function(t){var n={};return n.factor="+"===t[0]?1:-1,n.hours=e.helpers.strictParseInt(t.substr(1,2)),n.minutes=e.helpers.strictParseInt(t.substr(4,2)),new e.UtcOffset(n)},t.fromSeconds=function(e){var n=new t;return n.fromSeconds(e),n},t}(),e.Binary=function(){function t(t){this.value=t}return t.prototype={icaltype:"binary",decodeValue:function(){return this._b64_decode(this.value)},setEncodedValue:function(t){this.value=this._b64_encode(t)},_b64_encode:function(t){var e,n,r,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,u=0,c="",l=[];if(!t)return t;do{e=(a=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,n=a>>12&63,r=a>>6&63,i=63&a,l[u++]=s.charAt(e)+s.charAt(n)+s.charAt(r)+s.charAt(i)}while(o<t.length);c=l.join("");var d=t.length%3;return(d?c.slice(0,d-3):c)+"===".slice(d||3)},_b64_decode:function(t){var e,n,r,i,a,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,c=0,l=[];if(!t)return t;t+="";do{e=(s=o.indexOf(t.charAt(u++))<<18|o.indexOf(t.charAt(u++))<<12|(i=o.indexOf(t.charAt(u++)))<<6|(a=o.indexOf(t.charAt(u++))))>>16&255,n=s>>8&255,r=255&s,l[c++]=64==i?String.fromCharCode(e):64==a?String.fromCharCode(e,n):String.fromCharCode(e,n,r)}while(u<t.length);return l.join("")},toString:function(){return this.value}},t.fromString=function(e){return new t(e)},t}(),e.Period=function(t){if(this.wrappedJSObject=this,t&&"start"in t){if(t.start&&!(t.start instanceof e.Time))throw new TypeError(".start must be an instance of ICAL.Time");this.start=t.start}if(t&&t.end&&t.duration)throw new Error("cannot accept both end and duration");if(t&&"end"in t){if(t.end&&!(t.end instanceof e.Time))throw new TypeError(".end must be an instance of ICAL.Time");this.end=t.end}if(t&&"duration"in t){if(t.duration&&!(t.duration instanceof e.Duration))throw new TypeError(".duration must be an instance of ICAL.Duration");this.duration=t.duration}},e.Period.prototype={start:null,end:null,duration:null,icalclass:"icalperiod",icaltype:"period",clone:function(){return e.Period.fromData({start:this.start?this.start.clone():null,end:this.end?this.end.clone():null,duration:this.duration?this.duration.clone():null})},getDuration:function(){return this.duration?this.duration:this.end.subtractDate(this.start)},getEnd:function(){if(this.end)return this.end;var t=this.start.clone();return t.addDuration(this.duration),t},toString:function(){return this.start+"/"+(this.end||this.duration)},toJSON:function(){return[this.start.toString(),(this.end||this.duration).toString()]},toICALString:function(){return this.start.toICALString()+"/"+(this.end||this.duration).toICALString()}},e.Period.fromString=function(t,n){var r=t.split("/");if(2!==r.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');var i={start:e.Time.fromDateTimeString(r[0],n)},a=r[1];return e.Duration.isValueString(a)?i.duration=e.Duration.fromString(a):i.end=e.Time.fromDateTimeString(a,n),new e.Period(i)},e.Period.fromData=function(t){return new e.Period(t)},e.Period.fromJSON=function(t,n,r){function i(t,n){return r?e.Time.fromString(t,n):e.Time.fromDateTimeString(t,n)}return e.Duration.isValueString(t[1])?e.Period.fromData({start:i(t[0],n),duration:e.Duration.fromString(t[1])}):e.Period.fromData({start:i(t[0],n),end:i(t[1],n)})},function(){var t=/([PDWHMTS]{1,1})/;function n(t,n,r){var i;switch(t){case"P":r.isNegative=!(!n||"-"!==n);break;case"D":i="days";break;case"W":i="weeks";break;case"H":i="hours";break;case"M":i="minutes";break;case"S":i="seconds";break;default:return 0}if(i){if(!n&&0!==n)throw new Error('invalid duration value: Missing number before "'+t+'"');var a=parseInt(n,10);if(e.helpers.isStrictlyNaN(a))throw new Error('invalid duration value: Invalid number "'+n+'" before "'+t+'"');r[i]=a}return 1}e.Duration=function(t){this.wrappedJSObject=this,this.fromData(t)},e.Duration.prototype={weeks:0,days:0,hours:0,minutes:0,seconds:0,isNegative:!1,icalclass:"icalduration",icaltype:"duration",clone:function(){return e.Duration.fromData(this)},toSeconds:function(){var t=this.seconds+60*this.minutes+3600*this.hours+86400*this.days+604800*this.weeks;return this.isNegative?-t:t},fromSeconds:function(t){var n=Math.abs(t);return this.isNegative=t<0,this.days=e.helpers.trunc(n/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,n-=86400*(this.days+7*this.weeks),this.hours=e.helpers.trunc(n/3600),n-=3600*this.hours,this.minutes=e.helpers.trunc(n/60),n-=60*this.minutes,this.seconds=n,this},fromData:function(t){var e=["weeks","days","hours","minutes","seconds","isNegative"];for(var n in e)if(e.hasOwnProperty(n)){var r=e[n];this[r]=t&&r in t?t[r]:0}},reset:function(){this.isNegative=!1,this.weeks=0,this.days=0,this.hours=0,this.minutes=0,this.seconds=0},compare:function(t){var e=this.toSeconds(),n=t.toSeconds();return(e>n)-(e<n)},normalize:function(){this.fromSeconds(this.toSeconds())},toString:function(){if(0==this.toSeconds())return"PT0S";var t="";return this.isNegative&&(t+="-"),t+="P",this.weeks&&(t+=this.weeks+"W"),this.days&&(t+=this.days+"D"),(this.hours||this.minutes||this.seconds)&&(t+="T",this.hours&&(t+=this.hours+"H"),this.minutes&&(t+=this.minutes+"M"),this.seconds&&(t+=this.seconds+"S")),t},toICALString:function(){return this.toString()}},e.Duration.fromSeconds=function(t){return(new e.Duration).fromSeconds(t)},e.Duration.isValueString=function(t){return"P"===t[0]||"P"===t[1]},e.Duration.fromString=function(r){for(var i=0,a=Object.create(null),s=0;-1!==(i=r.search(t));){var o=r[i],u=r.substr(0,i);r=r.substr(i+1),s+=n(o,u,a)}if(s<2)throw new Error('invalid duration value: Not enough duration components in "'+r+'"');return new e.Duration(a)},e.Duration.fromData=function(t){return new e.Duration(t)}}(),n=["tzid","location","tznames","latitude","longitude"],e.Timezone=function(t){this.wrappedJSObject=this,this.fromData(t)},e.Timezone.prototype={tzid:"",location:"",tznames:"",latitude:0,longitude:0,component:null,expandedUntilYear:0,icalclass:"icaltimezone",fromData:function(t){if(this.expandedUntilYear=0,this.changes=[],t instanceof e.Component)this.component=t;else{if(t&&"component"in t)if("string"==typeof t.component){var r=e.parse(t.component);this.component=new e.Component(r)}else t.component instanceof e.Component?this.component=t.component:this.component=null;for(var i in n)if(n.hasOwnProperty(i)){var a=n[i];t&&a in t&&(this[a]=t[a])}}return this.component instanceof e.Component&&!this.tzid&&(this.tzid=this.component.getFirstPropertyValue("tzid")),this},utcOffset:function(t){if(this==e.Timezone.utcTimezone||this==e.Timezone.localTimezone||(this._ensureCoverage(t.year),!this.changes.length))return 0;for(var n={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},r=this._findNearbyChange(n),i=-1,a=1;;){var s=e.helpers.clone(this.changes[r],!0);if(s.utcOffset<s.prevUtcOffset?e.Timezone.adjust_change(s,0,0,0,s.utcOffset):e.Timezone.adjust_change(s,0,0,0,s.prevUtcOffset),e.Timezone._compare_change_fn(n,s)>=0?i=r:a=-1,-1==a&&-1!=i)break;if((r+=a)<0)return 0;if(r>=this.changes.length)break}var o=this.changes[i];if(o.utcOffset-o.prevUtcOffset<0&&i>0){var u=e.helpers.clone(o,!0);if(e.Timezone.adjust_change(u,0,0,0,u.prevUtcOffset),e.Timezone._compare_change_fn(n,u)<0){var c=this.changes[i-1];0!=o.is_daylight&&0==c.is_daylight&&(o=c)}}return o.utcOffset},_findNearbyChange:function(t){var n=e.helpers.binsearchInsert(this.changes,t,e.Timezone._compare_change_fn);return n>=this.changes.length?this.changes.length-1:n},_ensureCoverage:function(t){if(-1==e.Timezone._minimumExpansionYear){var n=e.Time.now();e.Timezone._minimumExpansionYear=n.year}var r=t;if(r<e.Timezone._minimumExpansionYear&&(r=e.Timezone._minimumExpansionYear),(r+=e.Timezone.EXTRA_COVERAGE)>e.Timezone.MAX_YEAR&&(r=e.Timezone.MAX_YEAR),!this.changes.length||this.expandedUntilYear<t){for(var i=this.component.getAllSubcomponents(),a=i.length,s=0;s<a;s++)this._expandComponent(i[s],r,this.changes);this.changes.sort(e.Timezone._compare_change_fn),this.expandedUntilYear=r}},_expandComponent:function(t,n,r){if(!t.hasProperty("dtstart")||!t.hasProperty("tzoffsetto")||!t.hasProperty("tzoffsetfrom"))return null;var i,a=t.getFirstProperty("dtstart").getFirstValue();function s(t){return t.factor*(3600*t.hours+60*t.minutes)}function o(){var e={};return e.is_daylight="daylight"==t.name,e.utcOffset=s(t.getFirstProperty("tzoffsetto").getFirstValue()),e.prevUtcOffset=s(t.getFirstProperty("tzoffsetfrom").getFirstValue()),e}if(t.hasProperty("rrule")||t.hasProperty("rdate")){var u=t.getAllProperties("rdate");for(var c in u)if(u.hasOwnProperty(c)){var l=u[c].getFirstValue();(i=o()).year=l.year,i.month=l.month,i.day=l.day,l.isDate?(i.hour=a.hour,i.minute=a.minute,i.second=a.second,a.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset)):(i.hour=l.hour,i.minute=l.minute,i.second=l.second,l.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset)),r.push(i)}var d=t.getFirstProperty("rrule");if(d){d=d.getFirstValue(),i=o(),d.until&&d.until.zone==e.Timezone.utcTimezone&&(d.until.adjust(0,0,0,i.prevUtcOffset),d.until.zone=e.Timezone.localTimezone);for(var f,h=d.iterator(a);(f=h.next())&&(i=o(),!(f.year>n)&&f);)i.year=f.year,i.month=f.month,i.day=f.day,i.hour=f.hour,i.minute=f.minute,i.second=f.second,i.isDate=f.isDate,e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset),r.push(i)}}else(i=o()).year=a.year,i.month=a.month,i.day=a.day,i.hour=a.hour,i.minute=a.minute,i.second=a.second,e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset),r.push(i);return r},toString:function(){return this.tznames?this.tznames:this.tzid}},e.Timezone._compare_change_fn=function(t,e){return t.year<e.year?-1:t.year>e.year?1:t.month<e.month?-1:t.month>e.month?1:t.day<e.day?-1:t.day>e.day?1:t.hour<e.hour?-1:t.hour>e.hour?1:t.minute<e.minute?-1:t.minute>e.minute?1:t.second<e.second?-1:t.second>e.second?1:0},e.Timezone.convert_time=function(t,n,r){if(t.isDate||n.tzid==r.tzid||n==e.Timezone.localTimezone||r==e.Timezone.localTimezone)return t.zone=r,t;var i=n.utcOffset(t);return t.adjust(0,0,0,-i),i=r.utcOffset(t),t.adjust(0,0,0,i),null},e.Timezone.fromData=function(t){return(new e.Timezone).fromData(t)},e.Timezone.utcTimezone=e.Timezone.fromData({tzid:"UTC"}),e.Timezone.localTimezone=e.Timezone.fromData({tzid:"floating"}),e.Timezone.adjust_change=function(t,n,r,i,a){return e.Time.prototype.adjust.call(t,n,r,i,a,t)},e.Timezone._minimumExpansionYear=-1,e.Timezone.MAX_YEAR=2035,e.Timezone.EXTRA_COVERAGE=5,e.TimezoneService=function(){var t,n={get count(){return Object.keys(t).length},reset:function(){t=Object.create(null);var n=e.Timezone.utcTimezone;t.Z=n,t.UTC=n,t.GMT=n},has:function(e){return!!t[e]},get:function(e){return t[e]},register:function(n,r){if(n instanceof e.Component&&"vtimezone"===n.name&&(n=(r=new e.Timezone(n)).tzid),!(r instanceof e.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");t[n]=r},remove:function(e){return delete t[e]}};return n.reset(),n}(),e.Time=function(t,e){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=0,n.month=1,n.day=1,n.hour=0,n.minute=0,n.second=0,n.isDate=!1,this.fromData(t,e)},e.Time._dowCache={},e.Time._wnCache={},e.Time.prototype={icalclass:"icaltime",_cachedUnixTime:null,get icaltype(){return this.isDate?"date":"date-time"},zone:null,_pendingNormalization:!1,clone:function(){return new e.Time(this._time,this.zone)},reset:function(){this.fromData(e.Time.epochTime),this.zone=e.Timezone.utcTimezone},resetTo:function(t,e,n,r,i,a,s){this.fromData({year:t,month:e,day:n,hour:r,minute:i,second:a,zone:s})},fromJSDate:function(t,n){return t?n?(this.zone=e.Timezone.utcTimezone,this.year=t.getUTCFullYear(),this.month=t.getUTCMonth()+1,this.day=t.getUTCDate(),this.hour=t.getUTCHours(),this.minute=t.getUTCMinutes(),this.second=t.getUTCSeconds()):(this.zone=e.Timezone.localTimezone,this.year=t.getFullYear(),this.month=t.getMonth()+1,this.day=t.getDate(),this.hour=t.getHours(),this.minute=t.getMinutes(),this.second=t.getSeconds()):this.reset(),this._cachedUnixTime=null,this},fromData:function(t,n){if(t)for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if("icaltype"===r)continue;this[r]=t[r]}if(n&&(this.zone=n),t&&!("isDate"in t)?this.isDate=!("hour"in t):t&&"isDate"in t&&(this.isDate=t.isDate),t&&"timezone"in t){var i=e.TimezoneService.get(t.timezone);this.zone=i||e.Timezone.localTimezone}return t&&"zone"in t&&(this.zone=t.zone),this.zone||(this.zone=e.Timezone.localTimezone),this._cachedUnixTime=null,this},dayOfWeek:function(t){var n=t||e.Time.SUNDAY,r=(this.year<<12)+(this.month<<8)+(this.day<<3)+n;if(r in e.Time._dowCache)return e.Time._dowCache[r];var i=this.day,a=this.month+(this.month<3?12:0),s=this.year-(this.month<3?1:0),o=i+s+e.helpers.trunc(26*(a+1)/10)+e.helpers.trunc(s/4);return o=((o+=6*e.helpers.trunc(s/100)+e.helpers.trunc(s/400))+7-n)%7+1,e.Time._dowCache[r]=o,o},dayOfYear:function(){var t=e.Time.isLeapYear(this.year)?1:0;return e.Time.daysInYearPassedMonth[t][this.month-1]+this.day},startOfWeek:function(t){var n=t||e.Time.SUNDAY,r=this.clone();return r.day-=(this.dayOfWeek()+7-n)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r},endOfWeek:function(t){var n=t||e.Time.SUNDAY,r=this.clone();return r.day+=(7-this.dayOfWeek()+n-e.Time.SUNDAY)%7,r.isDate=!0,r.hour=0,r.minute=0,r.second=0,r},startOfMonth:function(){var t=this.clone();return t.day=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfMonth:function(){var t=this.clone();return t.day=e.Time.daysInMonth(t.month,t.year),t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startOfYear:function(){var t=this.clone();return t.day=1,t.month=1,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},endOfYear:function(){var t=this.clone();return t.day=31,t.month=12,t.isDate=!0,t.hour=0,t.minute=0,t.second=0,t},startDoyWeek:function(t){var n=t||e.Time.SUNDAY,r=this.dayOfWeek()-n;return r<0&&(r+=7),this.dayOfYear()-r},getDominicalLetter:function(){return e.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,n){var r,i=e.Time.daysInMonth(this.month,this.year),a=n,s=0,o=this.clone();if(a>=0){o.day=1,0!=a&&a--,s=o.day;var u=t-o.dayOfWeek();u<0&&(u+=7),s+=u,s-=t,r=t}else o.day=i,a++,(r=o.dayOfWeek()-t)<0&&(r+=7),r=i-r;return s+(r+7*a)},isNthWeekDay:function(t,e){var n=this.dayOfWeek();return 0===e&&n===t||this.nthWeekDay(t,e)===this.day},weekNumber:function(t){var n=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(n in e.Time._wnCache)return e.Time._wnCache[n];var r,i=this.clone();i.isDate=!0;var a=this.year;12==i.month&&i.day>25?(r=e.Time.weekOneStarts(a+1,t),i.compare(r)<0?r=e.Time.weekOneStarts(a,t):a++):(r=e.Time.weekOneStarts(a,t),i.compare(r)<0&&(r=e.Time.weekOneStarts(--a,t)));var s=i.subtractDate(r).toSeconds()/86400,o=e.helpers.trunc(s/7)+1;return e.Time._wnCache[n]=o,o},addDuration:function(t){var e=t.isNegative?-1:1,n=this.second,r=this.minute,i=this.hour,a=this.day;n+=e*t.seconds,r+=e*t.minutes,i+=e*t.hours,a+=e*t.days,a+=7*e*t.weeks,this.second=n,this.minute=r,this.hour=i,this.day=a,this._cachedUnixTime=null},subtractDate:function(t){var n=this.toUnixTime()+this.utcOffset(),r=t.toUnixTime()+t.utcOffset();return e.Duration.fromSeconds(n-r)},subtractDateTz:function(t){var n=this.toUnixTime(),r=t.toUnixTime();return e.Duration.fromSeconds(n-r)},compare:function(t){var e=this.toUnixTime(),n=t.toUnixTime();return e>n?1:n>e?-1:0},compareDateOnlyTz:function(t,n){function r(t){return e.Time._cmp_attr(i,a,t)}var i=this.convertToZone(n),a=t.convertToZone(n),s=0;return 0!=(s=r("year"))||0!=(s=r("month"))||(s=r("day")),s},convertToZone:function(t){var n=this.clone(),r=this.zone.tzid==t.tzid;return!this.isDate&&!r&&e.Timezone.convert_time(n,this.zone,t),n.zone=t,n},utcOffset:function(){return this.zone==e.Timezone.localTimezone||this.zone==e.Timezone.utcTimezone?0:this.zone.utcOffset(this)},toICALString:function(){var t=this.toString();return t.length>10?e.design.icalendar.value["date-time"].toICAL(t):e.design.icalendar.value.date.toICAL(t)},toString:function(){var t=this.year+"-"+e.helpers.pad2(this.month)+"-"+e.helpers.pad2(this.day);return this.isDate||(t+="T"+e.helpers.pad2(this.hour)+":"+e.helpers.pad2(this.minute)+":"+e.helpers.pad2(this.second),this.zone===e.Timezone.utcTimezone&&(t+="Z")),t},toJSDate:function(){return this.zone==e.Timezone.localTimezone?this.isDate?new Date(this.year,this.month-1,this.day):new Date(this.year,this.month-1,this.day,this.hour,this.minute,this.second,0):new Date(1e3*this.toUnixTime())},_normalize:function(){return this._time.isDate,this._time.isDate&&(this._time.hour=0,this._time.minute=0,this._time.second=0),this.adjust(0,0,0,0),this},adjust:function(t,n,r,i,a){var s,o,u,c,l,d,f,h=0,p=0,m=a||this._time;if(m.isDate||(u=m.second+i,m.second=u%60,s=e.helpers.trunc(u/60),m.second<0&&(m.second+=60,s--),c=m.minute+r+s,m.minute=c%60,o=e.helpers.trunc(c/60),m.minute<0&&(m.minute+=60,o--),l=m.hour+n+o,m.hour=l%24,h=e.helpers.trunc(l/24),m.hour<0&&(m.hour+=24,h--)),m.month>12?p=e.helpers.trunc((m.month-1)/12):m.month<1&&(p=e.helpers.trunc(m.month/12)-1),m.year+=p,m.month-=12*p,(d=m.day+t+h)>0)for(;!(d<=(f=e.Time.daysInMonth(m.month,m.year)));)m.month++,m.month>12&&(m.year++,m.month=1),d-=f;else for(;d<=0;)1==m.month?(m.year--,m.month=12):m.month--,d+=e.Time.daysInMonth(m.month,m.year);return m.day=d,this._cachedUnixTime=null,this},fromUnixTime:function(t){this.zone=e.Timezone.utcTimezone;var n=e.Time.epochTime.clone();n.adjust(0,0,0,t),this.year=n.year,this.month=n.month,this.day=n.day,this.hour=n.hour,this.minute=n.minute,this.second=Math.floor(n.second),this._cachedUnixTime=null},toUnixTime:function(){if(null!==this._cachedUnixTime)return this._cachedUnixTime;var t=this.utcOffset(),e=Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second-t);return this._cachedUnixTime=e/1e3,this._cachedUnixTime},toJSON:function(){for(var t,e=["year","month","day","hour","minute","second","isDate"],n=Object.create(null),r=0,i=e.length;r<i;r++)n[t=e[r]]=this[t];return this.zone&&(n.timezone=this.zone.tzid),n}},function(){function t(t){Object.defineProperty(e.Time.prototype,t,{get:function(){return this._pendingNormalization&&(this._normalize(),this._pendingNormalization=!1),this._time[t]},set:function(e){return"isDate"===t&&e&&!this._time.isDate&&this.adjust(0,0,0,0),this._cachedUnixTime=null,this._pendingNormalization=!0,this._time[t]=e,e}})}"defineProperty"in Object&&(t("year"),t("month"),t("day"),t("hour"),t("minute"),t("second"),t("isDate"))}(),e.Time.daysInMonth=function(t,n){var r=30;return t<1||t>12||(r=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(r+=e.Time.isLeapYear(n))),r},e.Time.isLeapYear=function(t){return t<=1752?t%4==0:t%4==0&&t%100!=0||t%400==0},e.Time.fromDayOfYear=function(t,n){var r=n,i=t,a=new e.Time;a.auto_normalize=!1;var s=e.Time.isLeapYear(r)?1:0;if(i<1)return r--,s=e.Time.isLeapYear(r)?1:0,i+=e.Time.daysInYearPassedMonth[s][12],e.Time.fromDayOfYear(i,r);if(i>e.Time.daysInYearPassedMonth[s][12])return s=e.Time.isLeapYear(r)?1:0,i-=e.Time.daysInYearPassedMonth[s][12],r++,e.Time.fromDayOfYear(i,r);a.year=r,a.isDate=!0;for(var o=11;o>=0;o--)if(i>e.Time.daysInYearPassedMonth[s][o]){a.month=o+1,a.day=i-e.Time.daysInYearPassedMonth[s][o];break}return a.auto_normalize=!0,a},e.Time.fromStringv2=function(t){return new e.Time({year:parseInt(t.substr(0,4),10),month:parseInt(t.substr(5,2),10),day:parseInt(t.substr(8,2),10),isDate:!0})},e.Time.fromDateString=function(t){return new e.Time({year:e.helpers.strictParseInt(t.substr(0,4)),month:e.helpers.strictParseInt(t.substr(5,2)),day:e.helpers.strictParseInt(t.substr(8,2)),isDate:!0})},e.Time.fromDateTimeString=function(t,n){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var r;return t[19]&&"Z"===t[19]?r="Z":n&&(r=n.getParameter("tzid")),new e.Time({year:e.helpers.strictParseInt(t.substr(0,4)),month:e.helpers.strictParseInt(t.substr(5,2)),day:e.helpers.strictParseInt(t.substr(8,2)),hour:e.helpers.strictParseInt(t.substr(11,2)),minute:e.helpers.strictParseInt(t.substr(14,2)),second:e.helpers.strictParseInt(t.substr(17,2)),timezone:r})},e.Time.fromString=function(t,n){return t.length>10?e.Time.fromDateTimeString(t,n):e.Time.fromDateString(t)},e.Time.fromJSDate=function(t,n){return(new e.Time).fromJSDate(t,n)},e.Time.fromData=function(t,n){return(new e.Time).fromData(t,n)},e.Time.now=function(){return e.Time.fromJSDate(new Date,!1)},e.Time.weekOneStarts=function(t,n){var r=e.Time.fromData({year:t,month:1,day:1,isDate:!0}),i=r.dayOfWeek(),a=n||e.Time.DEFAULT_WEEK_START;return i>e.Time.THURSDAY&&(r.day+=7),a>e.Time.THURSDAY&&(r.day-=7),r.day-=i-a,r},e.Time.getDominicalLetter=function(t){var n="GFEDCBA",r=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return e.Time.isLeapYear(t)?n[(r+6)%7]+n[r]:n[r]},e.Time.epochTime=e.Time.fromData({year:1970,month:1,day:1,hour:0,minute:0,second:0,isDate:!1,timezone:"Z"}),e.Time._cmp_attr=function(t,e,n){return t[n]>e[n]?1:t[n]<e[n]?-1:0},e.Time.daysInYearPassedMonth=[[0,31,59,90,120,151,181,212,243,273,304,334,365],[0,31,60,91,121,152,182,213,244,274,305,335,366]],e.Time.SUNDAY=1,e.Time.MONDAY=2,e.Time.TUESDAY=3,e.Time.WEDNESDAY=4,e.Time.THURSDAY=5,e.Time.FRIDAY=6,e.Time.SATURDAY=7,e.Time.DEFAULT_WEEK_START=e.Time.MONDAY,e.VCardTime=function(t,e,n){this.wrappedJSObject=this;var r=this._time=Object.create(null);r.year=null,r.month=null,r.day=null,r.hour=null,r.minute=null,r.second=null,this.icaltype=n||"date-and-or-time",this.fromData(t,e)},e.helpers.inherits(e.Time,e.VCardTime,{icalclass:"vcardtime",icaltype:"date-and-or-time",zone:null,clone:function(){return new e.VCardTime(this._time,this.zone,this.icaltype)},_normalize:function(){return this},utcOffset:function(){return this.zone instanceof e.UtcOffset?this.zone.toSeconds():e.Time.prototype.utcOffset.apply(this,arguments)},toICALString:function(){return e.design.vcard.value[this.icaltype].toICAL(this.toString())},toString:function(){var t,n=e.helpers.pad2,r=this.year,i=this.month,a=this.day,s=this.hour,o=this.minute,u=this.second,c=null!==i,l=null!==a,d=null!==s,f=null!==o,h=null!==u,p=(null!==r?n(r)+(c||l?"-":""):c||l?"--":"")+(c?n(i):"")+(l?"-"+n(a):""),m=(d?n(s):"-")+(d&&f?":":"")+(f?n(o):"")+(d||f?"":"-")+(f&&h?":":"")+(h?n(u):"");switch(t=this.zone===e.Timezone.utcTimezone?"Z":this.zone instanceof e.UtcOffset?this.zone.toString():this.zone===e.Timezone.localTimezone?"":this.zone instanceof e.Timezone?e.UtcOffset.fromSeconds(this.zone.utcOffset(this)).toString():"",this.icaltype){case"time":return m+t;case"date-and-or-time":case"date-time":return p+("--"==m?"":"T"+m+t);case"date":return p}return null}}),e.VCardTime.fromDateAndOrTimeString=function(t,n){function r(t,n,r){return t?e.helpers.strictParseInt(t.substr(n,r)):null}var i=t.split("T"),a=i[0],s=i[1],o=s?e.design.vcard.value.time._splitZone(s):[],u=o[0],c=o[1];e.helpers.strictParseInt;var l=a?a.length:0,d=c?c.length:0,f=a&&"-"==a[0]&&"-"==a[1],h=c&&"-"==c[0],p={year:f?null:r(a,0,4),month:!f||4!=l&&7!=l?7==l||10==l?r(a,5,2):null:r(a,2,2),day:5==l?r(a,3,2):7==l&&f?r(a,5,2):10==l?r(a,8,2):null,hour:h?null:r(c,0,2),minute:h&&3==d?r(c,1,2):d>4?r(c,h?1:3,2):null,second:4==d?r(c,2,2):6==d?r(c,4,2):8==d?r(c,6,2):null};return u="Z"==u?e.Timezone.utcTimezone:u&&":"==u[3]?e.UtcOffset.fromString(u):null,new e.VCardTime(p,u,n)},function(){var t={SU:e.Time.SUNDAY,MO:e.Time.MONDAY,TU:e.Time.TUESDAY,WE:e.Time.WEDNESDAY,TH:e.Time.THURSDAY,FR:e.Time.FRIDAY,SA:e.Time.SATURDAY},n={};for(var r in t)t.hasOwnProperty(r)&&(n[t[r]]=r);function i(t,n,r,i){var a=i;if("+"===i[0]&&(a=i.substr(1)),a=e.helpers.strictParseInt(a),void 0!==n&&i<n)throw new Error(t+': invalid value "'+i+'" must be > '+n);if(void 0!==r&&i>r)throw new Error(t+': invalid value "'+i+'" must be < '+n);return a}e.Recur=function(t){this.wrappedJSObject=this,this.parts={},t&&"object"==typeof t&&this.fromData(t)},e.Recur.prototype={parts:null,interval:1,wkst:e.Time.MONDAY,until:null,count:null,freq:null,icalclass:"icalrecur",icaltype:"recur",iterator:function(t){return new e.RecurIterator({rule:this,dtstart:t})},clone:function(){return new e.Recur(this.toJSON())},isFinite:function(){return!(!this.count&&!this.until)},isByCount:function(){return!(!this.count||this.until)},addComponent:function(t,e){var n=t.toUpperCase();n in this.parts?this.parts[n].push(e):this.parts[n]=[e]},setComponent:function(t,e){this.parts[t.toUpperCase()]=e.slice()},getComponent:function(t){var e=t.toUpperCase();return e in this.parts?this.parts[e].slice():[]},getNextOccurrence:function(t,e){var n,r=this.iterator(t);do{n=r.next()}while(n&&n.compare(e)<=0);return n&&e.zone&&(n.zone=e.zone),n},fromData:function(t){for(var n in t){var r=n.toUpperCase();r in c?Array.isArray(t[n])?this.parts[r]=t[n]:this.parts[r]=[t[n]]:this[n]=t[n]}this.interval&&"number"!=typeof this.interval&&u.INTERVAL(this.interval,this),this.wkst&&"number"!=typeof this.wkst&&(this.wkst=e.Recur.icalDayToNumericDay(this.wkst)),this.until&&!(this.until instanceof e.Time)&&(this.until=e.Time.fromString(this.until))},toJSON:function(){var t=Object.create(null);for(var n in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(n)){var r=this.parts[n];Array.isArray(r)&&1==r.length?t[n.toLowerCase()]=r[0]:t[n.toLowerCase()]=e.helpers.clone(this.parts[n])}return this.until&&(t.until=this.until.toString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(t.wkst=e.Recur.numericDayToIcalDay(this.wkst)),t},toString:function(){var t="FREQ="+this.freq;for(var n in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(n)&&(t+=";"+n+"="+this.parts[n]);return this.until&&(t+=";UNTIL="+this.until.toICALString()),"wkst"in this&&this.wkst!==e.Time.DEFAULT_WEEK_START&&(t+=";WKST="+e.Recur.numericDayToIcalDay(this.wkst)),t}},e.Recur.icalDayToNumericDay=function(n,r){var i=r||e.Time.SUNDAY;return(t[n]-i+7)%7+1},e.Recur.numericDayToIcalDay=function(t,r){var i=t+(r||e.Time.SUNDAY)-e.Time.SUNDAY;return i>7&&(i-=7),n[i]};var a=/^(SU|MO|TU|WE|TH|FR|SA)$/,s=/^([+-])?(5[0-3]|[1-4][0-9]|[1-9])?(SU|MO|TU|WE|TH|FR|SA)$/,o=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"],u={FREQ:function(t,e,n){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');e.freq=t},COUNT:function(t,n,r){n.count=e.helpers.strictParseInt(t)},INTERVAL:function(t,n,r){n.interval=e.helpers.strictParseInt(t),n.interval<1&&(n.interval=1)},UNTIL:function(t,n,r){t.length>10?n.until=e.design.icalendar.value["date-time"].fromICAL(t):n.until=e.design.icalendar.value.date.fromICAL(t),r||(n.until=e.Time.fromString(n.until))},WKST:function(t,n,r){if(!a.test(t))throw new Error('invalid WKST value "'+t+'"');n.wkst=e.Recur.icalDayToNumericDay(t)}},c={BYSECOND:i.bind(this,"BYSECOND",0,60),BYMINUTE:i.bind(this,"BYMINUTE",0,59),BYHOUR:i.bind(this,"BYHOUR",0,23),BYDAY:function(t){if(s.test(t))return t;throw new Error('invalid BYDAY value "'+t+'"')},BYMONTHDAY:i.bind(this,"BYMONTHDAY",-31,31),BYYEARDAY:i.bind(this,"BYYEARDAY",-366,366),BYWEEKNO:i.bind(this,"BYWEEKNO",-53,53),BYMONTH:i.bind(this,"BYMONTH",1,12),BYSETPOS:i.bind(this,"BYSETPOS",-366,366)};e.Recur.fromString=function(t){var n=e.Recur._stringToData(t,!1);return new e.Recur(n)},e.Recur.fromData=function(t){return new e.Recur(t)},e.Recur._stringToData=function(t,e){for(var n=Object.create(null),r=t.split(";"),i=r.length,a=0;a<i;a++){var s=r[a].split("="),o=s[0].toUpperCase(),l=s[0].toLowerCase(),d=e?l:o,f=s[1];if(o in c){for(var h=f.split(","),p=0,m=h.length;p<m;p++)h[p]=c[o](h[p]);n[d]=1==h.length?h[0]:h}else o in u?u[o](f,n,e):n[l]=f}return n}}(),e.RecurIterator=function(){function t(t){this.fromData(t)}return t.prototype={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:function(t){if(this.rule=e.helpers.formatClassType(t.rule,e.Recur),!this.rule)throw new Error("iterator requires a (ICAL.Recur) rule");if(this.dtstart=e.helpers.formatClassType(t.dtstart,e.Time),!this.dtstart)throw new Error("iterator requires a (ICAL.Time) dtstart");t.by_data?this.by_data=t.by_data:this.by_data=e.helpers.clone(this.rule.parts,!0),t.occurrence_number&&(this.occurrence_number=t.occurrence_number),this.days=t.days||[],t.last&&(this.last=e.helpers.formatClassType(t.last,e.Time)),this.by_indices=t.by_indices,this.by_indices||(this.by_indices={BYSECOND:0,BYMINUTE:0,BYHOUR:0,BYDAY:0,BYMONTH:0,BYWEEKNO:0,BYMONTHDAY:0}),this.initialized=t.initialized||!1,this.initialized||this.init()},init:function(){this.initialized=!0,this.last=this.dtstart.clone();var t=this.by_data;if("BYDAY"in t&&this.sort_byday_rules(t.BYDAY),"BYYEARDAY"in t&&("BYMONTH"in t||"BYWEEKNO"in t||"BYMONTHDAY"in t||"BYDAY"in t))throw new Error("Invalid BYYEARDAY rule");if("BYWEEKNO"in t&&"BYMONTHDAY"in t)throw new Error("BYWEEKNO does not fit to BYMONTHDAY");if("MONTHLY"==this.rule.freq&&("BYYEARDAY"in t||"BYWEEKNO"in t))throw new Error("For MONTHLY recurrences neither BYYEARDAY nor BYWEEKNO may appear");if("WEEKLY"==this.rule.freq&&("BYYEARDAY"in t||"BYMONTHDAY"in t))throw new Error("For WEEKLY recurrences neither BYMONTHDAY nor BYYEARDAY may appear");if("YEARLY"!=this.rule.freq&&"BYYEARDAY"in t)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),"WEEKLY"==this.rule.freq)if("BYDAY"in t){var n=(c=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst))[0],r=(l=c[1])-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<l&&r>=0||r<0)&&(this.last.day+=r)}else{var i=e.Recur.numericDayToIcalDay(this.dtstart.dayOfWeek());t.BYDAY=[i]}if("YEARLY"==this.rule.freq){for(;this.expand_year_days(this.last.year),!(this.days.length>0);)this.increment_year(this.rule.interval);this._nextByYearDay()}if("MONTHLY"==this.rule.freq&&this.has_by_data("BYDAY")){var a=null,s=this.last.clone(),o=e.Time.daysInMonth(this.last.month,this.last.year);for(var u in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(u)){this.last=s.clone(),n=(c=this.ruleDayOfWeek(this.by_data.BYDAY[u]))[0];var c,l=c[1],d=this.last.nthWeekDay(l,n);if(n>=6||n<=-6)throw new Error("Malformed values in BYDAY part");if(d>o||d<=0){if(a&&a.month==s.month)continue;for(;d>o||d<=0;)this.increment_month(),o=e.Time.daysInMonth(this.last.month,this.last.year),d=this.last.nthWeekDay(l,n)}this.last.day=d,(!a||this.last.compare(a)<0)&&(a=this.last.clone())}if(this.last=a.clone(),this.has_by_data("BYMONTHDAY")&&this._byDayAndMonthDay(!0),this.last.day>o||0==this.last.day)throw new Error("Malformed values in BYDAY part")}else this.has_by_data("BYMONTHDAY")&&this.last.day<0&&(o=e.Time.daysInMonth(this.last.month,this.last.year),this.last.day=o+this.last.day+1)},next:function(){var t,e=this.last?this.last.clone():null;if(this.rule.count&&this.occurrence_number>=this.rule.count||this.rule.until&&this.last.compare(this.rule.until)>0)return this.completed=!0,null;if(0==this.occurrence_number&&this.last.compare(this.dtstart)>=0)return this.occurrence_number++,this.last;do{switch(t=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":t=this.next_month();break;case"YEARLY":this.next_year();break;default:return null}}while(!this.check_contracting_rules()||this.last.compare(this.dtstart)<0||!t);if(0==this.last.compare(e))throw new Error("Same occurrence found twice, protecting you from death by recursion");return this.rule.until&&this.last.compare(this.rule.until)>0?(this.completed=!0,null):(this.occurrence_number++,this.last)},next_second:function(){return this.next_generic("BYSECOND","SECONDLY","second","minute")},increment_second:function(t){return this.increment_generic(t,"second",60,"minute")},next_minute:function(){return this.next_generic("BYMINUTE","MINUTELY","minute","hour","next_second")},increment_minute:function(t){return this.increment_generic(t,"minute",60,"hour")},next_hour:function(){return this.next_generic("BYHOUR","HOURLY","hour","monthday","next_minute")},increment_hour:function(t){this.increment_generic(t,"hour",24,"monthday")},next_day:function(){this.by_data;var t="DAILY"==this.rule.freq;return 0==this.next_hour()||(t?this.increment_monthday(this.rule.interval):this.increment_monthday(1)),0},next_week:function(){var t=0;if(0==this.next_weekday_by_week())return t;if(this.has_by_data("BYWEEKNO")){++this.by_indices.BYWEEKNO,this.by_indices.BYWEEKNO==this.by_data.BYWEEKNO.length&&(this.by_indices.BYWEEKNO=0,t=1),this.last.month=1,this.last.day=1;var e=this.by_data.BYWEEKNO[this.by_indices.BYWEEKNO];this.last.day+=7*e,t&&this.increment_year(1)}else this.increment_monthday(7*this.rule.interval);return t},normalizeByMonthDayRules:function(t,n,r){for(var i,a=e.Time.daysInMonth(n,t),s=[],o=0,u=r.length;o<u;o++)if(i=r[o],!(Math.abs(i)>a)){if(i<0)i=a+(i+1);else if(0===i)continue;-1===s.indexOf(i)&&s.push(i)}return s.sort((function(t,e){return t-e}))},_byDayAndMonthDay:function(t){var n,r,i,a,s=this.by_data.BYDAY,o=0,u=s.length,c=0,l=this,d=this.last.day;function f(){for(a=e.Time.daysInMonth(l.last.month,l.last.year),n=l.normalizeByMonthDayRules(l.last.year,l.last.month,l.by_data.BYMONTHDAY),i=n.length;n[o]<=d&&(!t||n[o]!=d)&&o<i-1;)o++}function h(){d=0,l.increment_month(),o=0,f()}f(),t&&(d-=1);for(var p=48;!c&&p;)if(p--,(r=d+1)>a)h();else{var m=n[o++];if(m>=r){d=m;for(var y=0;y<u;y++){var v=this.ruleDayOfWeek(s[y]),T=v[0],g=v[1];if(this.last.day=d,this.last.isNthWeekDay(g,T)){c=1;break}}c||o!==i||h()}else h()}if(p<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return c},next_month:function(){this.rule.freq;var t=1;if(0==this.next_hour())return t;if(this.has_by_data("BYDAY")&&this.has_by_data("BYMONTHDAY"))t=this._byDayAndMonthDay();else if(this.has_by_data("BYDAY")){var n=e.Time.daysInMonth(this.last.month,this.last.year),r=0,i=0;if(this.has_by_data("BYSETPOS")){for(var a=this.last.day,s=1;s<=n;s++)this.last.day=s,this.is_day_in_byday(this.last)&&(i++,s<=a&&r++);this.last.day=a}for(t=0,s=this.last.day+1;s<=n;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++r)||this.check_set_position(r-i-1))){t=1;break}s>n&&(this.last.day=1,this.increment_month(),this.is_day_in_byday(this.last)?(!this.has_by_data("BYSETPOS")||this.check_set_position(1))&&(t=1):t=0)}else this.has_by_data("BYMONTHDAY")?(this.by_indices.BYMONTHDAY++,this.by_indices.BYMONTHDAY>=this.by_data.BYMONTHDAY.length&&(this.by_indices.BYMONTHDAY=0,this.increment_month()),n=e.Time.daysInMonth(this.last.month,this.last.year),(s=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(s=n+s+1),s>n?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=s):(this.increment_month(),n=e.Time.daysInMonth(this.last.month,this.last.year),this.by_data.BYMONTHDAY[0]>n?t=0:this.last.day=this.by_data.BYMONTHDAY[0]);return t},next_weekday_by_week:function(){var t=0;if(0==this.next_hour())return t;if(!this.has_by_data("BYDAY"))return 1;for(;;){var n=new e.Time;this.by_indices.BYDAY++,this.by_indices.BYDAY==Object.keys(this.by_data.BYDAY).length&&(this.by_indices.BYDAY=0,t=1);var r=this.by_data.BYDAY[this.by_indices.BYDAY],i=this.ruleDayOfWeek(r)[1];(i-=this.rule.wkst)<0&&(i+=7),n.year=this.last.year,n.month=this.last.month,n.day=this.last.day;var a=n.startDoyWeek(this.rule.wkst);if(!(i+a<1)||t){var s=e.Time.fromDayOfYear(a+i,this.last.year);return this.last.year=s.year,this.last.month=s.month,this.last.day=s.day,t}}},next_year:function(){if(0==this.next_hour())return 0;if(++this.days_index==this.days.length){this.days_index=0;do{this.increment_year(this.rule.interval),this.expand_year_days(this.last.year)}while(0==this.days.length)}return this._nextByYearDay(),1},_nextByYearDay:function(){var t=this.days[this.days_index],n=this.last.year;t<1&&(t+=1,n+=1);var r=e.Time.fromDayOfYear(t,n);this.last.day=r.day,this.last.month=r.month},ruleDayOfWeek:function(t,n){var r=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return r?[parseInt(r[1]||0,10),t=e.Recur.icalDayToNumericDay(r[2],n)]:[0,0]},next_generic:function(t,e,n,r,i){var a=t in this.by_data,s=this.rule.freq==e,o=0;if(i&&0==this[i]())return o;if(a){this.by_indices[t]++,this.by_indices[t];var u=this.by_data[t];this.by_indices[t]==u.length&&(this.by_indices[t]=0,o=1),this.last[n]=u[this.by_indices[t]]}else s&&this["increment_"+n](this.rule.interval);return a&&o&&s&&this["increment_"+r](1),o},increment_monthday:function(t){for(var n=0;n<t;n++){var r=e.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>r&&(this.last.day-=r,this.increment_month())}},increment_month:function(){if(this.last.day=1,this.has_by_data("BYMONTH"))this.by_indices.BYMONTH++,this.by_indices.BYMONTH==this.by_data.BYMONTH.length&&(this.by_indices.BYMONTH=0,this.increment_year(1)),this.last.month=this.by_data.BYMONTH[this.by_indices.BYMONTH];else{"MONTHLY"==this.rule.freq?this.last.month+=this.rule.interval:this.last.month++,this.last.month--;var t=e.helpers.trunc(this.last.month/12);this.last.month%=12,this.last.month++,0!=t&&this.increment_year(t)}},increment_year:function(t){this.last.year+=t},increment_generic:function(t,n,r,i){this.last[n]+=t;var a=e.helpers.trunc(this.last[n]/r);this.last[n]%=r,0!=a&&this["increment_"+i](a)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var n=new e.Time;this.days=[];var r={},i=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s in this.rule.parts&&(r[s]=this.rule.parts[s])}if("BYMONTH"in r&&"BYWEEKNO"in r){var o=1,u={};n.year=t,n.isDate=!0;for(var c=0;c<this.by_data.BYMONTH.length;c++){var l=this.by_data.BYMONTH[c];n.month=l,n.day=1;var d=n.weekNumber(this.rule.wkst);n.day=e.Time.daysInMonth(l,t);var f=n.weekNumber(this.rule.wkst);for(c=d;c<f;c++)u[c]=1}for(var h=0;h<this.by_data.BYWEEKNO.length&&o;h++)(j=this.by_data.BYWEEKNO[h])<52?o&=u[h]:o=0;o?delete r.BYMONTH:delete r.BYWEEKNO}var p=Object.keys(r).length;if(0==p){var m=this.dtstart.clone();m.year=this.last.year,this.days.push(m.dayOfYear())}else if(1==p&&"BYMONTH"in r){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){var v=this.dtstart.clone();v.year=t,v.month=this.by_data.BYMONTH[y],v.isDate=!0,this.days.push(v.dayOfYear())}}else if(1==p&&"BYMONTHDAY"in r){for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var g=this.dtstart.clone();(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+(b=e.Time.daysInMonth(g.month,t))+1),g.day=S,g.year=t,g.isDate=!0,this.days.push(g.dayOfYear())}}else if(2==p&&"BYMONTHDAY"in r&&"BYMONTH"in r){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){var A=this.by_data.BYMONTH[y],b=e.Time.daysInMonth(A,t);for(var T in this.by_data.BYMONTHDAY)if(this.by_data.BYMONTHDAY.hasOwnProperty(T)){var S;(S=this.by_data.BYMONTHDAY[T])<0&&(S=S+b+1),n.day=S,n.month=A,n.year=t,n.isDate=!0,this.days.push(n.dayOfYear())}}}else if(!(1==p&&"BYWEEKNO"in r||2==p&&"BYWEEKNO"in r&&"BYMONTHDAY"in r))if(1==p&&"BYDAY"in r)this.days=this.days.concat(this.expand_by_day(t));else if(2==p&&"BYDAY"in r&&"BYMONTH"in r){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){l=this.by_data.BYMONTH[y],b=e.Time.daysInMonth(l,t),n.year=t,n.month=this.by_data.BYMONTH[y],n.day=1,n.isDate=!0;var E=n.dayOfWeek(),_=n.dayOfYear()-1;n.day=b;var D=n.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var C=[],O=1;O<=b;O++)n.day=O,this.is_day_in_byday(n)&&C.push(O);for(var w=0;w<C.length;w++)(this.check_set_position(w+1)||this.check_set_position(w-C.length))&&this.days.push(_+C[w])}else for(var x in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(x)){var I,N=this.by_data.BYDAY[x],U=this.ruleDayOfWeek(N),P=U[0],L=U[1],k=(L+7-E)%7+1,M=b-(D+7-L)%7;if(0==P)for(O=k;O<=b;O+=7)this.days.push(_+O);else P>0?(I=k+7*(P-1))<=b&&this.days.push(_+I):(I=M+7*(P+1))>0&&this.days.push(_+I)}}this.days.sort((function(t,e){return t-e}))}else if(2==p&&"BYDAY"in r&&"BYMONTHDAY"in r){var Y=this.expand_by_day(t);for(var R in Y)if(Y.hasOwnProperty(R)){O=Y[R];var B=e.Time.fromDayOfYear(O,t);this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(O)}}else if(3==p&&"BYDAY"in r&&"BYMONTHDAY"in r&&"BYMONTH"in r)for(var R in Y=this.expand_by_day(t))Y.hasOwnProperty(R)&&(O=Y[R],B=e.Time.fromDayOfYear(O,t),this.by_data.BYMONTH.indexOf(B.month)>=0&&this.by_data.BYMONTHDAY.indexOf(B.day)>=0&&this.days.push(O));else if(2==p&&"BYDAY"in r&&"BYWEEKNO"in r){for(var R in Y=this.expand_by_day(t))if(Y.hasOwnProperty(R)){O=Y[R];var j=(B=e.Time.fromDayOfYear(O,t)).weekNumber(this.rule.wkst);this.by_data.BYWEEKNO.indexOf(j)&&this.days.push(O)}}else 3==p&&"BYDAY"in r&&"BYWEEKNO"in r&&"BYMONTHDAY"in r||(this.days=1==p&&"BYYEARDAY"in r?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var e=[],n=this.last.clone();n.year=t,n.month=1,n.day=1,n.isDate=!0;var r=n.dayOfWeek();n.month=12,n.day=31,n.isDate=!0;var i=n.dayOfWeek(),a=n.dayOfYear();for(var s in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(s)){var o=this.by_data.BYDAY[s],u=this.ruleDayOfWeek(o),c=u[0],l=u[1];if(0==c)for(var d=(l+7-r)%7+1;d<=a;d+=7)e.push(d);else if(c>0){var f;f=l>=r?l-r+1:l-r+8,e.push(f+7*(c-1))}else{var h;c=-c,h=l<=i?a-i+l:a-i+l-7,e.push(h-7*(c-1))}}return e},is_day_in_byday:function(t){for(var e in this.by_data.BYDAY)if(this.by_data.BYDAY.hasOwnProperty(e)){var n=this.by_data.BYDAY[e],r=this.ruleDayOfWeek(n),i=r[0],a=r[1],s=t.dayOfWeek();if(0==i&&a==s||t.nthWeekDay(a,i)==t.day)return 1}return 0},check_set_position:function(t){return!!this.has_by_data("BYSETPOS")&&-1!==this.by_data.BYSETPOS.indexOf(t)},sort_byday_rules:function(t){for(var e=0;e<t.length;e++)for(var n=0;n<e;n++)if(this.ruleDayOfWeek(t[n],this.rule.wkst)[1]>this.ruleDayOfWeek(t[e],this.rule.wkst)[1]){var r=t[e];t[e]=t[n],t[n]=r}},check_contract_restriction:function(e,n){var r=t._indexMap[e],i=t._expandMap[this.rule.freq][r],a=!1;if(e in this.by_data&&i==t.CONTRACT){var s=this.by_data[e];for(var o in s)if(s.hasOwnProperty(o)&&s[o]==n){a=!0;break}}else a=!0;return a},check_contracting_rules:function(){var t=this.last.dayOfWeek(),n=this.last.weekNumber(this.rule.wkst),r=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",e.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",n)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",r)},setup_defaults:function(e,n,r){var i=t._indexMap[e];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(e in this.by_data||(this.by_data[e]=[r]),this.rule.freq!=n)?this.by_data[e][0]:r},toJSON:function(){var t=Object.create(null);return t.initialized=this.initialized,t.rule=this.rule.toJSON(),t.dtstart=this.dtstart.toJSON(),t.by_data=this.by_data,t.days=this.days,t.last=this.last.toJSON(),t.by_indices=this.by_indices,t.occurrence_number=this.occurrence_number,t}},t._indexMap={BYSECOND:0,BYMINUTE:1,BYHOUR:2,BYDAY:3,BYMONTHDAY:4,BYYEARDAY:5,BYWEEKNO:6,BYMONTH:7,BYSETPOS:8},t._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]},t.UNKNOWN=0,t.CONTRACT=1,t.EXPAND=2,t.ILLEGAL=3,t}(),e.RecurExpansion=function(){function t(t){return e.helpers.formatClassType(t,e.Time)}function n(t,e){return t.compare(e)}function r(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return r.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(n){var r=e.helpers.formatClassType(n.dtstart,e.Time);if(!r)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=r,n.component)this._init(n.component);else{if(this.last=t(n.last)||r.clone(),!n.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=n.ruleIterators.map((function(t){return e.helpers.formatClassType(t,e.RecurIterator)})),this.ruleDateInc=n.ruleDateInc,this.exDateInc=n.exDateInc,n.ruleDates&&(this.ruleDates=n.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),n.exDates&&(this.exDates=n.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),typeof n.complete<"u"&&(this.complete=n.complete)}},next:function(){for(var t,e,n,r=0;;){if(r++>500)throw new Error("max tries have occured, rule may be impossible to forfill.");if(e=this.ruleDate,t=this._nextRecurrenceIter(this.last),!e&&!t){this.complete=!0;break}if((!e||t&&e.compare(t.last)>0)&&(e=t.last.clone(),t.next()),this.ruleDate===e&&this._nextRuleDay(),this.last=e,!this.exDate||((n=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==n))return this.last;this._nextExDay()}},toJSON:function(){function t(t){return t.toJSON()}var e=Object.create(null);return e.ruleIterators=this.ruleIterators.map(t),this.ruleDates&&(e.ruleDates=this.ruleDates.map(t)),this.exDates&&(e.exDates=this.exDates.map(t)),e.ruleDateInc=this.ruleDateInc,e.exDateInc=this.exDateInc,e.last=this.last.toJSON(),e.dtstart=this.dtstart.toJSON(),e.complete=this.complete,e},_extractDates:function(t,r){function i(t){a=e.helpers.binsearchInsert(s,t,n),s.splice(a,0,t)}for(var a,s=[],o=t.getAllProperties(r),u=o.length,c=0;c<u;c++)o[c].getValues().forEach(i);return s},_init:function(t){if(this.ruleIterators=[],this.last=this.dtstart.clone(),!function(t){return t.hasProperty("rdate")||t.hasProperty("rrule")||t.hasProperty("recurrence-id")}(t))return this.ruleDate=this.last.clone(),void(this.complete=!0);if(t.hasProperty("rdate")&&(this.ruleDates=this._extractDates(t,"rdate"),this.ruleDates[0]&&this.ruleDates[0].compare(this.dtstart)<0?(this.ruleDateInc=0,this.last=this.ruleDates[0].clone()):this.ruleDateInc=e.helpers.binsearchInsert(this.ruleDates,this.last,n),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule"))for(var r,i=t.getAllProperties("rrule"),a=0,s=i.length;a<s;a++)r=i[a].getFirstValue().iterator(this.dtstart),this.ruleIterators.push(r),r.next();t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=e.helpers.binsearchInsert(this.exDates,this.last,n),this.exDate=this.exDates[this.exDateInc])},_nextExDay:function(){this.exDate=this.exDates[++this.exDateInc]},_nextRuleDay:function(){this.ruleDate=this.ruleDates[++this.ruleDateInc]},_nextRecurrenceIter:function(){var t=this.ruleIterators;if(0===t.length)return null;for(var e,n,r,i=t.length,a=0;a<i;a++)n=(e=t[a]).last,e.completed?(i--,0!==a&&a--,t.splice(a,1)):(!r||r.last.compare(n)>0)&&(r=e);return r}},r}(),e.Event=function(){function t(t,n){t instanceof e.Component||(n=t,t=null),this.component=t||new e.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],n&&n.strictExceptions&&(this.strictExceptions=n.strictExceptions),n&&n.exceptions?n.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach((function(t){t.hasProperty("recurrence-id")&&this.relateException(t)}),this)}function n(t,e){return t[0]>e[0]?1:e[0]>t[0]?-1:0}return t.prototype={THISANDFUTURE:"THISANDFUTURE",exceptions:null,strictExceptions:!1,relateException:function(t){if(this.isRecurrenceException())throw new Error("cannot relate exception to exceptions");if(t instanceof e.Component&&(t=new e.Event(t)),this.strictExceptions&&t.uid!==this.uid)throw new Error("attempted to relate unrelated exception");var r=t.recurrenceId.toString();if(this.exceptions[r]=t,t.modifiesFuture()){var i=[t.recurrenceId.toUnixTime(),r],a=e.helpers.binsearchInsert(this.rangeExceptions,i,n);this.rangeExceptions.splice(a,0,i)}},modifiesFuture:function(){return!!this.component.hasProperty("recurrence-id")&&this.component.getFirstProperty("recurrence-id").getParameter("range")===this.THISANDFUTURE},findRangeException:function(t){if(!this.rangeExceptions.length)return null;var r=t.toUnixTime(),i=e.helpers.binsearchInsert(this.rangeExceptions,[r],n);if((i-=1)<0)return null;var a=this.rangeExceptions[i];return r<a[0]?null:a[1]},getOccurrenceDetails:function(t){var n,r=t.toString(),i=t.convertToZone(e.Timezone.utcTimezone).toString(),a={recurrenceId:t};if(r in this.exceptions)n=a.item=this.exceptions[r],a.startDate=n.startDate,a.endDate=n.endDate,a.item=n;else if(i in this.exceptions)n=this.exceptions[i],a.startDate=n.startDate,a.endDate=n.endDate,a.item=n;else{var s,o=this.findRangeException(t);if(o){var u=this.exceptions[o];a.item=u;var c=this._rangeExceptionCache[o];if(!c){var l=u.recurrenceId.clone(),d=u.startDate.clone();l.zone=d.zone,c=d.subtractDate(l),this._rangeExceptionCache[o]=c}var f=t.clone();f.zone=u.startDate.zone,f.addDuration(c),(s=f.clone()).addDuration(u.duration),a.startDate=f,a.endDate=s}else(s=t.clone()).addDuration(this.duration),a.endDate=s,a.startDate=t,a.item=this}return a},iterator:function(t){return new e.RecurExpansion({component:this.component,dtstart:t||this.startDate})},isRecurring:function(){var t=this.component;return t.hasProperty("rrule")||t.hasProperty("rdate")},isRecurrenceException:function(){return this.component.hasProperty("recurrence-id")},getRecurrenceTypes:function(){for(var t=this.component.getAllProperties("rrule"),e=0,n=t.length,r=Object.create(null);e<n;e++)r[t[e].getFirstValue().freq]=!0;return r},get uid(){return this._firstProp("uid")},set uid(t){this._setProp("uid",t)},get startDate(){return this._firstProp("dtstart")},set startDate(t){this._setTime("dtstart",t)},get endDate(){var t=this._firstProp("dtend");if(!t){var e=this._firstProp("duration");t=this.startDate.clone(),e?t.addDuration(e):t.isDate&&(t.day+=1)}return t},set endDate(t){this.component.hasProperty("duration")&&this.component.removeProperty("duration"),this._setTime("dtend",t)},get duration(){return this._firstProp("duration")||this.endDate.subtractDateTz(this.startDate)},set duration(t){this.component.hasProperty("dtend")&&this.component.removeProperty("dtend"),this._setProp("duration",t)},get location(){return this._firstProp("location")},set location(t){return this._setProp("location",t)},get attendees(){return this.component.getAllProperties("attendee")},get summary(){return this._firstProp("summary")},set summary(t){this._setProp("summary",t)},get description(){return this._firstProp("description")},set description(t){this._setProp("description",t)},get color(){return this._firstProp("color")},set color(t){this._setProp("color",t)},get organizer(){return this._firstProp("organizer")},set organizer(t){this._setProp("organizer",t)},get sequence(){return this._firstProp("sequence")},set sequence(t){this._setProp("sequence",t)},get recurrenceId(){return this._firstProp("recurrence-id")},set recurrenceId(t){this._setTime("recurrence-id",t)},_setTime:function(t,n){var r=this.component.getFirstProperty(t);r||(r=new e.Property(t),this.component.addProperty(r)),n.zone===e.Timezone.localTimezone||n.zone===e.Timezone.utcTimezone?r.removeParameter("tzid"):r.setParameter("tzid",n.zone.tzid),r.setValue(n)},_setProp:function(t,e){this.component.updatePropertyWithValue(t,e)},_firstProp:function(t){return this.component.getFirstPropertyValue(t)},toString:function(){return this.component.toString()}},t}(),e.ComponentParser=function(){function t(t){var e;for(e in typeof t>"u"&&(t={}),t)t.hasOwnProperty(e)&&(this[e]=t[e])}return t.prototype={parseEvent:!0,parseTimezone:!0,oncomplete:function(){},onerror:function(t){},ontimezone:function(t){},onevent:function(t){},process:function(t){"string"==typeof t&&(t=e.parse(t)),t instanceof e.Component||(t=new e.Component(t));for(var n,r=t.getAllSubcomponents(),i=0,a=r.length;i<a;i++)switch(n=r[i],n.name){case"vtimezone":if(this.parseTimezone){var s=n.getFirstPropertyValue("tzid");s&&this.ontimezone(new e.Timezone({tzid:s,component:n}))}break;case"vevent":this.parseEvent&&this.onevent(new e.Event(n));break;default:continue}this.oncomplete()}},t}()}(rt);var it=rt.exports;let at;const st=new Uint8Array(16);function ot(){if(!at&&(at=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!at))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return at(st)}const ut=[];for(let t=0;t<256;++t)ut.push((t+256).toString(16).slice(1));const ct={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lt(t,e,n){if(ct.randomUUID&&!e&&!t)return ct.randomUUID();const r=(t=t||{}).random||(t.rng||ot)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(let t=0;t<16;++t)e[n+t]=r[t];return e}return function(t,e=0){return ut[t[e+0]]+ut[t[e+1]]+ut[t[e+2]]+ut[t[e+3]]+"-"+ut[t[e+4]]+ut[t[e+5]]+"-"+ut[t[e+6]]+ut[t[e+7]]+"-"+ut[t[e+8]]+ut[t[e+9]]+"-"+ut[t[e+10]]+ut[t[e+11]]+ut[t[e+12]]+ut[t[e+13]]+ut[t[e+14]]+ut[t[e+15]]}(r)}var dt={},ft=function(t){return t&&t.Math===Math&&t},ht=ft("object"==typeof globalThis&&globalThis)||ft("object"==typeof window&&window)||ft("object"==typeof self&&self)||ft("object"==typeof Z&&Z)||function(){return this}()||Z||Function("return this")(),pt={},mt=function(t){try{return!!t()}catch{return!0}},yt=!mt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),vt=!mt((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),Tt=vt,gt=Function.prototype.call,At=Tt?gt.bind(gt):function(){return gt.apply(gt,arguments)},bt={},St={}.propertyIsEnumerable,Et=Object.getOwnPropertyDescriptor,_t=Et&&!St.call({1:2},1);bt.f=_t?function(t){var e=Et(this,t);return!!e&&e.enumerable}:St;var Dt,Ct,Ot=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},wt=vt,xt=Function.prototype,It=xt.call,Nt=wt&&xt.bind.bind(It,It),Ut=wt?Nt:function(t){return function(){return It.apply(t,arguments)}},Pt=Ut,Lt=Pt({}.toString),kt=Pt("".slice),Mt=function(t){return kt(Lt(t),8,-1)},Yt=mt,Rt=Mt,Bt=Object,jt=Ut("".split),zt=Yt((function(){return!Bt("z").propertyIsEnumerable(0)}))?function(t){return"String"===Rt(t)?jt(t,""):Bt(t)}:Bt,Ft=function(t){return null==t},Wt=Ft,Vt=TypeError,Ht=function(t){if(Wt(t))throw new Vt("Can't call method on "+t);return t},Gt=zt,$t=Ht,Kt=function(t){return Gt($t(t))},qt="object"==typeof document&&document.all,Zt={all:qt,IS_HTMLDDA:typeof qt>"u"&&void 0!==qt},Xt=Zt.all,Jt=Zt.IS_HTMLDDA?function(t){return"function"==typeof t||t===Xt}:function(t){return"function"==typeof t},Qt=Jt,te=Zt.all,ee=Zt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Qt(t)||t===te}:function(t){return"object"==typeof t?null!==t:Qt(t)},ne=ht,re=Jt,ie=function(t,e){return arguments.length<2?function(t){return re(t)?t:void 0}(ne[t]):ne[t]&&ne[t][e]},ae=Ut({}.isPrototypeOf),se=ht,oe=typeof navigator<"u"&&String(navigator.userAgent)||"",ue=se.process,ce=se.Deno,le=ue&&ue.versions||ce&&ce.version,de=le&&le.v8;de&&(Ct=(Dt=de.split("."))[0]>0&&Dt[0]<4?1:+(Dt[0]+Dt[1])),!Ct&&oe&&(!(Dt=oe.match(/Edge\/(\d+)/))||Dt[1]>=74)&&(Dt=oe.match(/Chrome\/(\d+)/))&&(Ct=+Dt[1]);var fe=Ct,he=mt,pe=ht.String,me=!!Object.getOwnPropertySymbols&&!he((function(){var t=Symbol("symbol detection");return!pe(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&fe&&fe<41})),ye=me&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ve=ie,Te=Jt,ge=ae,Ae=Object,be=ye?function(t){return"symbol"==typeof t}:function(t){var e=ve("Symbol");return Te(e)&&ge(e.prototype,Ae(t))},Se=String,Ee=function(t){try{return Se(t)}catch{return"Object"}},_e=Jt,De=Ee,Ce=TypeError,Oe=function(t){if(_e(t))return t;throw new Ce(De(t)+" is not a function")},we=Oe,xe=Ft,Ie=At,Ne=Jt,Ue=ee,Pe=TypeError,Le=function(t,e){var n,r;if("string"===e&&Ne(n=t.toString)&&!Ue(r=Ie(n,t))||Ne(n=t.valueOf)&&!Ue(r=Ie(n,t))||"string"!==e&&Ne(n=t.toString)&&!Ue(r=Ie(n,t)))return r;throw new Pe("Can't convert object to primitive value")},ke={exports:{}},Me=ht,Ye=Object.defineProperty,Re=function(t,e){try{Ye(Me,t,{value:e,configurable:!0,writable:!0})}catch{Me[t]=e}return e},Be=Re,je="__core-js_shared__",ze=ht[je]||Be(je,{}),Fe=ze;(ke.exports=function(t,e){return Fe[t]||(Fe[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"});var We=ke.exports,Ve=Ht,He=Object,Ge=function(t){return He(Ve(t))},$e=Ge,Ke=Ut({}.hasOwnProperty),qe=Object.hasOwn||function(t,e){return Ke($e(t),e)},Ze=Ut,Xe=0,Je=Math.random(),Qe=Ze(1..toString),tn=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Qe(++Xe+Je,36)},en=We,nn=qe,rn=tn,an=me,sn=ye,on=ht.Symbol,un=en("wks"),cn=sn?on.for||on:on&&on.withoutSetter||rn,ln=function(t){return nn(un,t)||(un[t]=an&&nn(on,t)?on[t]:cn("Symbol."+t)),un[t]},dn=At,fn=ee,hn=be,pn=Le,mn=TypeError,yn=ln("toPrimitive"),vn=function(t,e){if(!fn(t)||hn(t))return t;var n,r=function(t,e){var n=t[e];return xe(n)?void 0:we(n)}(t,yn);if(r){if(void 0===e&&(e="default"),n=dn(r,t,e),!fn(n)||hn(n))return n;throw new mn("Can't convert object to primitive value")}return void 0===e&&(e="number"),pn(t,e)},Tn=vn,gn=be,An=function(t){var e=Tn(t,"string");return gn(e)?e:e+""},bn=ee,Sn=ht.document,En=bn(Sn)&&bn(Sn.createElement),_n=function(t){return En?Sn.createElement(t):{}},Dn=_n,Cn=!yt&&!mt((function(){return 7!==Object.defineProperty(Dn("div"),"a",{get:function(){return 7}}).a})),On=yt,wn=At,xn=bt,In=Ot,Nn=Kt,Un=An,Pn=qe,Ln=Cn,kn=Object.getOwnPropertyDescriptor;pt.f=On?kn:function(t,e){if(t=Nn(t),e=Un(e),Ln)try{return kn(t,e)}catch{}if(Pn(t,e))return In(!wn(xn.f,t,e),t[e])};var Mn={},Yn=yt&&mt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Rn=ee,Bn=String,jn=TypeError,zn=function(t){if(Rn(t))return t;throw new jn(Bn(t)+" is not an object")},Fn=yt,Wn=Cn,Vn=Yn,Hn=zn,Gn=An,$n=TypeError,Kn=Object.defineProperty,qn=Object.getOwnPropertyDescriptor,Zn="enumerable",Xn="configurable",Jn="writable";Mn.f=Fn?Vn?function(t,e,n){if(Hn(t),e=Gn(e),Hn(n),"function"==typeof t&&"prototype"===e&&"value"in n&&Jn in n&&!n[Jn]){var r=qn(t,e);r&&r[Jn]&&(t[e]=n.value,n={configurable:Xn in n?n[Xn]:r[Xn],enumerable:Zn in n?n[Zn]:r[Zn],writable:!1})}return Kn(t,e,n)}:Kn:function(t,e,n){if(Hn(t),e=Gn(e),Hn(n),Wn)try{return Kn(t,e,n)}catch{}if("get"in n||"set"in n)throw new $n("Accessors not supported");return"value"in n&&(t[e]=n.value),t};var Qn=Mn,tr=Ot,er=yt?function(t,e,n){return Qn.f(t,e,tr(1,n))}:function(t,e,n){return t[e]=n,t},nr={exports:{}},rr=yt,ir=qe,ar=Function.prototype,sr=rr&&Object.getOwnPropertyDescriptor,or=ir(ar,"name"),ur={EXISTS:or,PROPER:or&&"something"===function(){}.name,CONFIGURABLE:or&&(!rr||rr&&sr(ar,"name").configurable)},cr=Jt,lr=ze,dr=Ut(Function.toString);cr(lr.inspectSource)||(lr.inspectSource=function(t){return dr(t)});var fr,hr,pr,mr=lr.inspectSource,yr=Jt,vr=ht.WeakMap,Tr=yr(vr)&&/native code/.test(String(vr)),gr=tn,Ar=We("keys"),br=function(t){return Ar[t]||(Ar[t]=gr(t))},Sr={},Er=Tr,_r=ht,Dr=ee,Cr=er,Or=qe,wr=ze,xr=br,Ir=Sr,Nr="Object already initialized",Ur=_r.TypeError,Pr=_r.WeakMap;if(Er||wr.state){var Lr=wr.state||(wr.state=new Pr);Lr.get=Lr.get,Lr.has=Lr.has,Lr.set=Lr.set,fr=function(t,e){if(Lr.has(t))throw new Ur(Nr);return e.facade=t,Lr.set(t,e),e},hr=function(t){return Lr.get(t)||{}},pr=function(t){return Lr.has(t)}}else{var kr=xr("state");Ir[kr]=!0,fr=function(t,e){if(Or(t,kr))throw new Ur(Nr);return e.facade=t,Cr(t,kr,e),e},hr=function(t){return Or(t,kr)?t[kr]:{}},pr=function(t){return Or(t,kr)}}var Mr={set:fr,get:hr,has:pr,enforce:function(t){return pr(t)?hr(t):fr(t,{})},getterFor:function(t){return function(e){var n;if(!Dr(e)||(n=hr(e)).type!==t)throw new Ur("Incompatible receiver, "+t+" required");return n}}},Yr=Ut,Rr=mt,Br=Jt,jr=qe,zr=yt,Fr=ur.CONFIGURABLE,Wr=mr,Vr=Mr.enforce,Hr=Mr.get,Gr=String,$r=Object.defineProperty,Kr=Yr("".slice),qr=Yr("".replace),Zr=Yr([].join),Xr=zr&&!Rr((function(){return 8!==$r((function(){}),"length",{value:8}).length})),Jr=String(String).split("String"),Qr=nr.exports=function(t,e,n){"Symbol("===Kr(Gr(e),0,7)&&(e="["+qr(Gr(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!jr(t,"name")||Fr&&t.name!==e)&&(zr?$r(t,"name",{value:e,configurable:!0}):t.name=e),Xr&&n&&jr(n,"arity")&&t.length!==n.arity&&$r(t,"length",{value:n.arity});try{n&&jr(n,"constructor")&&n.constructor?zr&&$r(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var r=Vr(t);return jr(r,"source")||(r.source=Zr(Jr,"string"==typeof e?e:"")),t};Function.prototype.toString=Qr((function(){return Br(this)&&Hr(this).source||Wr(this)}),"toString");var ti=nr.exports,ei=Jt,ni=Mn,ri=ti,ii=Re,ai=function(t,e,n,r){r||(r={});var i=r.enumerable,a=void 0!==r.name?r.name:e;if(ei(n)&&ri(n,a,r),r.global)i?t[e]=n:ii(e,n);else{try{r.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=n:ni.f(t,e,{value:n,enumerable:!1,configurable:!r.nonConfigurable,writable:!r.nonWritable})}return t},si={},oi=Math.ceil,ui=Math.floor,ci=Math.trunc||function(t){var e=+t;return(e>0?ui:oi)(e)},li=function(t){var e=+t;return e!=e||0===e?0:ci(e)},di=li,fi=Math.max,hi=Math.min,pi=function(t,e){var n=di(t);return n<0?fi(n+e,0):hi(n,e)},mi=li,yi=Math.min,vi=function(t){return function(t){return t>0?yi(mi(t),9007199254740991):0}(t.length)},Ti=Kt,gi=pi,Ai=vi,bi=function(t){return function(e,n,r){var i,a=Ti(e),s=Ai(a),o=gi(r,s);if(t&&n!=n){for(;s>o;)if((i=a[o++])!=i)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===n)return t||o||0;return!t&&-1}},Si={includes:bi(!0),indexOf:bi(!1)},Ei=qe,_i=Kt,Di=Si.indexOf,Ci=Sr,Oi=Ut([].push),wi=function(t,e){var n,r=_i(t),i=0,a=[];for(n in r)!Ei(Ci,n)&&Ei(r,n)&&Oi(a,n);for(;e.length>i;)Ei(r,n=e[i++])&&(~Di(a,n)||Oi(a,n));return a},xi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],Ii=wi,Ni=xi.concat("length","prototype");si.f=Object.getOwnPropertyNames||function(t){return Ii(t,Ni)};var Ui={};Ui.f=Object.getOwnPropertySymbols;var Pi=ie,Li=si,ki=Ui,Mi=zn,Yi=Ut([].concat),Ri=Pi("Reflect","ownKeys")||function(t){var e=Li.f(Mi(t)),n=ki.f;return n?Yi(e,n(t)):e},Bi=qe,ji=Ri,zi=pt,Fi=Mn,Wi=function(t,e,n){for(var r=ji(e),i=Fi.f,a=zi.f,s=0;s<r.length;s++){var o=r[s];!Bi(t,o)&&(!n||!Bi(n,o))&&i(t,o,a(e,o))}},Vi=mt,Hi=Jt,Gi=/#|\.prototype\./,$i=function(t,e){var n=qi[Ki(t)];return n===Xi||n!==Zi&&(Hi(e)?Vi(e):!!e)},Ki=$i.normalize=function(t){return String(t).replace(Gi,".").toLowerCase()},qi=$i.data={},Zi=$i.NATIVE="N",Xi=$i.POLYFILL="P",Ji=$i,Qi=ht,ta=pt.f,ea=er,na=ai,ra=Re,ia=Wi,aa=Ji,sa=function(t,e){var n,r,i,a,s,o=t.target,u=t.global,c=t.stat;if(n=u?Qi:c?Qi[o]||ra(o,{}):(Qi[o]||{}).prototype)for(r in e){if(a=e[r],i=t.dontCallGetSet?(s=ta(n,r))&&s.value:n[r],!aa(u?r:o+(c?".":"#")+r,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;ia(a,i)}(t.sham||i&&i.sham)&&ea(a,"sham",!0),na(n,r,a,t)}},oa=sa,ua=yt,ca=Mn.f;oa({target:"Object",stat:!0,forced:Object.defineProperty!==ca,sham:!ua},{defineProperty:ca});var la={},da=ht,fa={},ha=ln;fa.f=ha;var pa=da,ma=qe,ya=fa,va=Mn.f,Ta=function(t){var e=pa.Symbol||(pa.Symbol={});ma(e,t)||va(e,t,{value:ya.f(t)})};Ta("iterator");var ga={},Aa=wi,ba=xi,Sa=Object.keys||function(t){return Aa(t,ba)},Ea=yt,_a=Yn,Da=Mn,Ca=zn,Oa=Kt,wa=Sa;ga.f=Ea&&!_a?Object.defineProperties:function(t,e){Ca(t);for(var n,r=Oa(e),i=wa(e),a=i.length,s=0;a>s;)Da.f(t,n=i[s++],r[n]);return t};var xa,Ia=ie("document","documentElement"),Na=zn,Ua=ga,Pa=xi,La=Sr,ka=Ia,Ma=_n,Ya="prototype",Ra="script",Ba=br("IE_PROTO"),ja=function(){},za=function(t){return"<"+Ra+">"+t+"</"+Ra+">"},Fa=function(t){t.write(za("")),t.close();var e=t.parentWindow.Object;return t=null,e},Wa=function(){try{xa=new ActiveXObject("htmlfile")}catch{}Wa=typeof document<"u"?document.domain&&xa?Fa(xa):function(){var t,e=Ma("iframe"),n="java"+Ra+":";return e.style.display="none",ka.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(za("document.F=Object")),t.close(),t.F}():Fa(xa);for(var t=Pa.length;t--;)delete Wa[Ya][Pa[t]];return Wa()};La[Ba]=!0;var Va=Object.create||function(t,e){var n;return null!==t?(ja[Ya]=Na(t),n=new ja,ja[Ya]=null,n[Ba]=t):n=Wa(),void 0===e?n:Ua.f(n,e)},Ha=ln,Ga=Va,$a=Mn.f,Ka=Ha("unscopables"),qa=Array.prototype;void 0===qa[Ka]&&$a(qa,Ka,{configurable:!0,value:Ga(null)});var Za,Xa,Ja,Qa={},ts=!mt((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),es=qe,ns=Jt,rs=Ge,is=ts,as=br("IE_PROTO"),ss=Object,os=ss.prototype,us=is?ss.getPrototypeOf:function(t){var e=rs(t);if(es(e,as))return e[as];var n=e.constructor;return ns(n)&&e instanceof n?n.prototype:e instanceof ss?os:null},cs=mt,ls=Jt,ds=ee,fs=us,hs=ai,ps=ln("iterator"),ms=!1;[].keys&&("next"in(Ja=[].keys())?(Xa=fs(fs(Ja)))!==Object.prototype&&(Za=Xa):ms=!0);var ys=!ds(Za)||cs((function(){var t={};return Za[ps].call(t)!==t}));ys&&(Za={}),ls(Za[ps])||hs(Za,ps,(function(){return this}));var vs={IteratorPrototype:Za,BUGGY_SAFARI_ITERATORS:ms},Ts=Mn.f,gs=qe,As=ln("toStringTag"),bs=function(t,e,n){t&&!n&&(t=t.prototype),t&&!gs(t,As)&&Ts(t,As,{configurable:!0,value:e})},Ss=vs.IteratorPrototype,Es=Va,_s=Ot,Ds=bs,Cs=Qa,Os=function(){return this},ws=Ut,xs=Oe,Is=Jt,Ns=String,Us=TypeError,Ps=zn,Ls=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=function(t,e,n){try{return ws(xs(Object.getOwnPropertyDescriptor(t,e)[n]))}catch{}}(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch{}return function(n,r){return Ps(n),function(t){if("object"==typeof t||Is(t))return t;throw new Us("Can't set "+Ns(t)+" as a prototype")}(r),e?t(n,r):n.__proto__=r,n}}():void 0),ks=sa,Ms=At,Ys=Jt,Rs=us,Bs=Ls,js=bs,zs=er,Fs=ai,Ws=Qa,Vs=ur.PROPER,Hs=ur.CONFIGURABLE,Gs=vs.IteratorPrototype,$s=vs.BUGGY_SAFARI_ITERATORS,Ks=ln("iterator"),qs="keys",Zs="values",Xs="entries",Js=function(){return this},Qs=function(t,e,n,r,i,a,s){!function(t,e,n,r){var i=e+" Iterator";t.prototype=Es(Ss,{next:_s(+!r,n)}),Ds(t,i,!1),Cs[i]=Os}(n,e,r);var o,u,c,l=function(t){if(t===i&&m)return m;if(!$s&&t&&t in h)return h[t];switch(t){case qs:case Zs:case Xs:return function(){return new n(this,t)}}return function(){return new n(this)}},d=e+" Iterator",f=!1,h=t.prototype,p=h[Ks]||h["@@iterator"]||i&&h[i],m=!$s&&p||l(i),y="Array"===e&&h.entries||p;if(y&&(o=Rs(y.call(new t)))!==Object.prototype&&o.next&&(Rs(o)!==Gs&&(Bs?Bs(o,Gs):Ys(o[Ks])||Fs(o,Ks,Js)),js(o,d,!0)),Vs&&i===Zs&&p&&p.name!==Zs&&(Hs?zs(h,"name",Zs):(f=!0,m=function(){return Ms(p,this)})),i)if(u={values:l(Zs),keys:a?m:l(qs),entries:l(Xs)},s)for(c in u)($s||f||!(c in h))&&Fs(h,c,u[c]);else ks({target:e,proto:!0,forced:$s||f},u);return h[Ks]!==m&&Fs(h,Ks,m,{name:i}),Ws[e]=m,u},to=function(t,e){return{value:t,done:e}},eo=Kt,no=function(t){qa[Ka][t]=!0},ro=Qa,io=Mr,ao=Mn.f,so=Qs,oo=to,uo=yt,co="Array Iterator",lo=io.set,fo=io.getterFor(co),ho=so(Array,"Array",(function(t,e){lo(this,{type:co,target:eo(t),index:0,kind:e})}),(function(){var t=fo(this),e=t.target,n=t.kind,r=t.index++;if(!e||r>=e.length)return t.target=void 0,oo(void 0,!0);switch(n){case"keys":return oo(r,!1);case"values":return oo(e[r],!1)}return oo([r,e[r]],!1)}),"values"),po=ro.Arguments=ro.Array;if(no("keys"),no("values"),no("entries"),uo&&"values"!==po.name)try{ao(po,"name",{value:"values"})}catch{}var mo={};mo[ln("toStringTag")]="z";var yo="[object z]"===String(mo),vo=yo,To=Jt,go=Mt,Ao=ln("toStringTag"),bo=Object,So="Arguments"===go(function(){return arguments}()),Eo=vo?go:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch{}}(e=bo(t),Ao))?n:So?go(e):"Object"===(r=go(e))&&To(e.callee)?"Arguments":r},_o=Eo,Do=String,Co=function(t){if("Symbol"===_o(t))throw new TypeError("Cannot convert a Symbol value to a string");return Do(t)},Oo=Ut,wo=li,xo=Co,Io=Ht,No=Oo("".charAt),Uo=Oo("".charCodeAt),Po=Oo("".slice),Lo=function(t){return function(e,n){var r,i,a=xo(Io(e)),s=wo(n),o=a.length;return s<0||s>=o?t?"":void 0:(r=Uo(a,s))<55296||r>56319||s+1===o||(i=Uo(a,s+1))<56320||i>57343?t?No(a,s):r:t?Po(a,s,s+2):i-56320+(r-55296<<10)+65536}},ko=(Lo(!1),Lo(!0)),Mo=Co,Yo=Mr,Ro=Qs,Bo=to,jo="String Iterator",zo=Yo.set,Fo=Yo.getterFor(jo);Ro(String,"String",(function(t){zo(this,{type:jo,string:Mo(t),index:0})}),(function(){var t,e=Fo(this),n=e.string,r=e.index;return r>=n.length?Bo(void 0,!0):(t=ko(n,r),e.index+=t.length,Bo(t,!1))}));var Wo=_n("span").classList,Vo=Wo&&Wo.constructor&&Wo.constructor.prototype,Ho=Vo===Object.prototype?void 0:Vo,Go=ht,$o={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},Ko=Ho,qo=ho,Zo=er,Xo=ln,Jo=Xo("iterator"),Qo=Xo("toStringTag"),tu=qo.values,eu=function(t,e){if(t){if(t[Jo]!==tu)try{Zo(t,Jo,tu)}catch{t[Jo]=tu}if(t[Qo]||Zo(t,Qo,e),$o[e])for(var n in qo)if(t[n]!==qo[n])try{Zo(t,n,qo[n])}catch{t[n]=qo[n]}}};for(var nu in $o)eu(Go[nu]&&Go[nu].prototype,nu);eu(Ko,"DOMTokenList");var ru=yt,iu=Ut,au=At,su=mt,ou=Sa,uu=Ui,cu=bt,lu=Ge,du=zt,fu=Object.assign,hu=Object.defineProperty,pu=iu([].concat),mu=!fu||su((function(){if(ru&&1!==fu({b:1},fu(hu({},"a",{enumerable:!0,get:function(){hu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},n=Symbol("assign detection"),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach((function(t){e[t]=t})),7!==fu({},t)[n]||ou(fu({},e)).join("")!==r}))?function(t,e){for(var n=lu(t),r=arguments.length,i=1,a=uu.f,s=cu.f;r>i;)for(var o,u=du(arguments[i++]),c=a?pu(ou(u),a(u)):ou(u),l=c.length,d=0;l>d;)o=c[d++],(!ru||au(s,u,o))&&(n[o]=u[o]);return n}:fu,yu=mu;sa({target:"Object",stat:!0,arity:2,forced:Object.assign!==yu},{assign:yu});var vu=At,Tu=ie,gu=ln,Au=ai,bu=function(){var t=Tu("Symbol"),e=t&&t.prototype,n=e&&e.valueOf,r=gu("toPrimitive");e&&!e[r]&&Au(e,r,(function(t){return vu(n,this)}),{arity:1})},Su=bu;Ta("toPrimitive"),Su();var Eu=zn,_u=Le,Du=TypeError,Cu=qe,Ou=ai,wu=ln("toPrimitive"),xu=Date.prototype;Cu(xu,wu)||Ou(xu,wu,(function(t){if(Eu(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new Du("Incorrect hint");return _u(this,t)}));var Iu={},Nu=An,Uu=Mn,Pu=Ot,Lu=pi,ku=vi,Mu=function(t,e,n){var r=Nu(e);r in t?Uu.f(t,r,Pu(0,n)):t[r]=n},Yu=Array,Ru=Math.max,Bu=Mt,ju=Kt,zu=si.f,Fu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];Iu.f=function(t){return Fu&&"Window"===Bu(t)?function(t){try{return zu(t)}catch{return function(t,e,n){for(var r=ku(t),i=Lu(e,r),a=Lu(void 0===n?r:n,r),s=Yu(Ru(a-i,0)),o=0;i<a;i++,o++)Mu(s,o,t[i]);return s.length=o,s}(Fu)}}(t):zu(ju(t))};var Wu=ti,Vu=Mn,Hu=function(t,e,n){return n.get&&Wu(n.get,e,{getter:!0}),n.set&&Wu(n.set,e,{setter:!0}),Vu.f(t,e,n)},Gu=Mt,$u=Ut,Ku=function(t){if("Function"===Gu(t))return $u(t)},qu=Oe,Zu=vt,Xu=Ku(Ku.bind),Ju=Mt,Qu=Array.isArray||function(t){return"Array"===Ju(t)},tc=Ut,ec=mt,nc=Jt,rc=Eo,ic=mr,ac=function(){},sc=[],oc=ie("Reflect","construct"),uc=/^\s*(?:class|function)\b/,cc=tc(uc.exec),lc=!uc.test(ac),dc=function(t){if(!nc(t))return!1;try{return oc(ac,sc,t),!0}catch{return!1}},fc=function(t){if(!nc(t))return!1;switch(rc(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return lc||!!cc(uc,ic(t))}catch{return!0}};fc.sham=!0;var hc=!oc||ec((function(){var t;return dc(dc.call)||!dc(Object)||!dc((function(){t=!0}))||t}))?fc:dc,pc=Qu,mc=hc,yc=ee,vc=ln("species"),Tc=Array,gc=zt,Ac=Ge,bc=vi,Sc=function(t,e){return new(function(t){var e;return pc(t)&&(e=t.constructor,(mc(e)&&(e===Tc||pc(e.prototype))||yc(e)&&null===(e=e[vc]))&&(e=void 0)),void 0===e?Tc:e}(t))(0===e?0:e)},Ec=Ut([].push),_c=function(t){var e=1===t,n=2===t,r=3===t,i=4===t,a=6===t,s=7===t,o=5===t||a;return function(u,c,l,d){for(var f,h,p=Ac(u),m=gc(p),y=function(t,e){return qu(t),void 0===e?t:Zu?Xu(t,e):function(){return t.apply(e,arguments)}}(c,l),v=bc(m),T=0,g=d||Sc,A=e?g(u,v):n||s?g(u,0):void 0;v>T;T++)if((o||T in m)&&(h=y(f=m[T],T,p),t))if(e)A[T]=h;else if(h)switch(t){case 3:return!0;case 5:return f;case 6:return T;case 2:Ec(A,f)}else switch(t){case 4:return!1;case 7:Ec(A,f)}return a?-1:r||i?i:A}},Dc={forEach:_c(0),map:_c(1),filter:_c(2),some:_c(3),every:_c(4),find:_c(5),findIndex:_c(6),filterReject:_c(7)},Cc=sa,Oc=ht,wc=At,xc=Ut,Ic=yt,Nc=me,Uc=mt,Pc=qe,Lc=ae,kc=zn,Mc=Kt,Yc=An,Rc=Co,Bc=Ot,jc=Va,zc=Sa,Fc=si,Wc=Iu,Vc=Ui,Hc=pt,Gc=Mn,$c=ga,Kc=bt,qc=ai,Zc=Hu,Xc=We,Jc=Sr,Qc=tn,tl=ln,el=fa,nl=Ta,rl=bu,il=bs,al=Mr,sl=Dc.forEach,ol=br("hidden"),ul="Symbol",cl="prototype",ll=al.set,dl=al.getterFor(ul),fl=Object[cl],hl=Oc.Symbol,pl=hl&&hl[cl],ml=Oc.RangeError,yl=Oc.TypeError,vl=Oc.QObject,Tl=Hc.f,gl=Gc.f,Al=Wc.f,bl=Kc.f,Sl=xc([].push),El=Xc("symbols"),_l=Xc("op-symbols"),Dl=Xc("wks"),Cl=!vl||!vl[cl]||!vl[cl].findChild,Ol=function(t,e,n){var r=Tl(fl,e);r&&delete fl[e],gl(t,e,n),r&&t!==fl&&gl(fl,e,r)},wl=Ic&&Uc((function(){return 7!==jc(gl({},"a",{get:function(){return gl(this,"a",{value:7}).a}})).a}))?Ol:gl,xl=function(t,e){var n=El[t]=jc(pl);return ll(n,{type:ul,tag:t,description:e}),Ic||(n.description=e),n},Il=function(t,e,n){t===fl&&Il(_l,e,n),kc(t);var r=Yc(e);return kc(n),Pc(El,r)?(n.enumerable?(Pc(t,ol)&&t[ol][r]&&(t[ol][r]=!1),n=jc(n,{enumerable:Bc(0,!1)})):(Pc(t,ol)||gl(t,ol,Bc(1,{})),t[ol][r]=!0),wl(t,r,n)):gl(t,r,n)},Nl=function(t,e){kc(t);var n=Mc(e),r=zc(n).concat(kl(n));return sl(r,(function(e){(!Ic||wc(Ul,n,e))&&Il(t,e,n[e])})),t},Ul=function(t){var e=Yc(t),n=wc(bl,this,e);return!(this===fl&&Pc(El,e)&&!Pc(_l,e))&&(!(n||!Pc(this,e)||!Pc(El,e)||Pc(this,ol)&&this[ol][e])||n)},Pl=function(t,e){var n=Mc(t),r=Yc(e);if(n!==fl||!Pc(El,r)||Pc(_l,r)){var i=Tl(n,r);return i&&Pc(El,r)&&!(Pc(n,ol)&&n[ol][r])&&(i.enumerable=!0),i}},Ll=function(t){var e=Al(Mc(t)),n=[];return sl(e,(function(t){!Pc(El,t)&&!Pc(Jc,t)&&Sl(n,t)})),n},kl=function(t){var e=t===fl,n=Al(e?_l:Mc(t)),r=[];return sl(n,(function(t){Pc(El,t)&&(!e||Pc(fl,t))&&Sl(r,El[t])})),r};Nc||(qc(pl=(hl=function(){if(Lc(pl,this))throw new yl("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?Rc(arguments[0]):void 0,e=Qc(t),n=function(t){this===fl&&wc(n,_l,t),Pc(this,ol)&&Pc(this[ol],e)&&(this[ol][e]=!1);var r=Bc(1,t);try{wl(this,e,r)}catch(t){if(!(t instanceof ml))throw t;Ol(this,e,r)}};return Ic&&Cl&&wl(fl,e,{configurable:!0,set:n}),xl(e,t)})[cl],"toString",(function(){return dl(this).tag})),qc(hl,"withoutSetter",(function(t){return xl(Qc(t),t)})),Kc.f=Ul,Gc.f=Il,$c.f=Nl,Hc.f=Pl,Fc.f=Wc.f=Ll,Vc.f=kl,el.f=function(t){return xl(tl(t),t)},Ic&&(Zc(pl,"description",{configurable:!0,get:function(){return dl(this).description}}),qc(fl,"propertyIsEnumerable",Ul,{unsafe:!0}))),Cc({global:!0,constructor:!0,wrap:!0,forced:!Nc,sham:!Nc},{Symbol:hl}),sl(zc(Dl),(function(t){nl(t)})),Cc({target:ul,stat:!0,forced:!Nc},{useSetter:function(){Cl=!0},useSimple:function(){Cl=!1}}),Cc({target:"Object",stat:!0,forced:!Nc,sham:!Ic},{create:function(t,e){return void 0===e?jc(t):Nl(jc(t),e)},defineProperty:Il,defineProperties:Nl,getOwnPropertyDescriptor:Pl}),Cc({target:"Object",stat:!0,forced:!Nc},{getOwnPropertyNames:Ll}),rl(),il(hl,ul),Jc[ol]=!0;var Ml=me&&!!Symbol.for&&!!Symbol.keyFor,Yl=sa,Rl=ie,Bl=qe,jl=Co,zl=We,Fl=Ml,Wl=zl("string-to-symbol-registry"),Vl=zl("symbol-to-string-registry");Yl({target:"Symbol",stat:!0,forced:!Fl},{for:function(t){var e=jl(t);if(Bl(Wl,e))return Wl[e];var n=Rl("Symbol")(e);return Wl[e]=n,Vl[n]=e,n}});var Hl=sa,Gl=qe,$l=be,Kl=Ee,ql=Ml,Zl=We("symbol-to-string-registry");Hl({target:"Symbol",stat:!0,forced:!ql},{keyFor:function(t){if(!$l(t))throw new TypeError(Kl(t)+" is not a symbol");if(Gl(Zl,t))return Zl[t]}});var Xl=vt,Jl=Function.prototype,Ql=Jl.apply,td=Jl.call,ed="object"==typeof Reflect&&Reflect.apply||(Xl?td.bind(Ql):function(){return td.apply(Ql,arguments)}),nd=Ut([].slice),rd=Qu,id=Jt,ad=Mt,sd=Co,od=Ut([].push),ud=sa,cd=ie,ld=ed,dd=At,fd=Ut,hd=mt,pd=Jt,md=be,yd=nd,vd=me,Td=String,gd=cd("JSON","stringify"),Ad=fd(/./.exec),bd=fd("".charAt),Sd=fd("".charCodeAt),Ed=fd("".replace),_d=fd(1..toString),Dd=/[\uD800-\uDFFF]/g,Cd=/^[\uD800-\uDBFF]$/,Od=/^[\uDC00-\uDFFF]$/,wd=!vd||hd((function(){var t=cd("Symbol")("stringify detection");return"[null]"!==gd([t])||"{}"!==gd({a:t})||"{}"!==gd(Object(t))})),xd=hd((function(){return'"\\udf06\\ud834"'!==gd("\udf06\ud834")||'"\\udead"'!==gd("\udead")})),Id=function(t,e){var n=yd(arguments),r=function(t){if(id(t))return t;if(rd(t)){for(var e=t.length,n=[],r=0;r<e;r++){var i=t[r];"string"==typeof i?od(n,i):("number"==typeof i||"Number"===ad(i)||"String"===ad(i))&&od(n,sd(i))}var a=n.length,s=!0;return function(t,e){if(s)return s=!1,e;if(rd(this))return e;for(var r=0;r<a;r++)if(n[r]===t)return e}}}(e);if(pd(r)||void 0!==t&&!md(t))return n[1]=function(t,e){if(pd(r)&&(e=dd(r,this,Td(t),e)),!md(e))return e},ld(gd,null,n)},Nd=function(t,e,n){var r=bd(n,e-1),i=bd(n,e+1);return Ad(Cd,t)&&!Ad(Od,i)||Ad(Od,t)&&!Ad(Cd,r)?"\\u"+_d(Sd(t,0),16):t};gd&&ud({target:"JSON",stat:!0,arity:3,forced:wd||xd},{stringify:function(t,e,n){var r=yd(arguments),i=ld(wd?Id:gd,null,r);return xd&&"string"==typeof i?Ed(i,Dd,Nd):i}});var Ud=Ui,Pd=Ge;sa({target:"Object",stat:!0,forced:!me||mt((function(){Ud.f(1)}))},{getOwnPropertySymbols:function(t){var e=Ud.f;return e?e(Pd(t)):[]}});var Ld=sa,kd=yt,Md=Ut,Yd=qe,Rd=Jt,Bd=ae,jd=Co,zd=Hu,Fd=Wi,Wd=ht.Symbol,Vd=Wd&&Wd.prototype;if(kd&&Rd(Wd)&&(!("description"in Vd)||void 0!==Wd().description)){var Hd={},Gd=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:jd(arguments[0]),e=Bd(Vd,this)?new Wd(t):void 0===t?Wd():Wd(t);return""===t&&(Hd[e]=!0),e};Fd(Gd,Wd),Gd.prototype=Vd,Vd.constructor=Gd;var $d="Symbol(description detection)"===String(Wd("description detection")),Kd=Md(Vd.valueOf),qd=Md(Vd.toString),Zd=/^Symbol\((.*)\)[^)]+$/,Xd=Md("".replace),Jd=Md("".slice);zd(Vd,"description",{configurable:!0,get:function(){var t=Kd(this);if(Yd(Hd,t))return"";var e=qd(t),n=$d?Jd(e,7,-1):Xd(e,Zd,"$1");return""===n?void 0:n}}),Ld({global:!0,constructor:!0,forced:!0},{Symbol:Gd})}var Qd=Eo,tf=yo?{}.toString:function(){return"[object "+Qd(this)+"]"};yo||ai(Object.prototype,"toString",tf,{unsafe:!0});var ef=Jt,nf=ee,rf=Ls,af=Ut(1..valueOf),sf=Ht,of=Co,uf="\t\n\v\f\r \u2028\u2029\ufeff",cf=Ut("".replace),lf=RegExp("^["+uf+"]+"),df=RegExp("(^|[^"+uf+"])["+uf+"]+$"),ff=function(t){return function(e){var n=of(sf(e));return 1&t&&(n=cf(n,lf,"")),2&t&&(n=cf(n,df,"$1")),n}},hf={start:ff(1),end:ff(2),trim:ff(3)},pf=sa,mf=yt,yf=ht,vf=da,Tf=Ut,gf=Ji,Af=qe,bf=ae,Sf=be,Ef=vn,_f=mt,Df=si.f,Cf=pt.f,Of=Mn.f,wf=af,xf=hf.trim,If="Number",Nf=yf[If];vf[If];var Uf=Nf.prototype,Pf=yf.TypeError,Lf=Tf("".slice),kf=Tf("".charCodeAt),Mf=gf(If,!Nf(" 0o1")||!Nf("0b1")||Nf("+0x1")),Yf=function(t){var e=arguments.length<1?0:Nf(function(t){var e=Ef(t,"number");return"bigint"==typeof e?e:function(t){var e,n,r,i,a,s,o,u,c=Ef(t,"number");if(Sf(c))throw new Pf("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=xf(c),43===(e=kf(c,0))||45===e){if(88===(n=kf(c,2))||120===n)return NaN}else if(48===e){switch(kf(c,1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+c}for(s=(a=Lf(c,2)).length,o=0;o<s;o++)if((u=kf(a,o))<48||u>i)return NaN;return parseInt(a,r)}return+c}(e)}(t));return function(t){return bf(Uf,t)&&_f((function(){wf(t)}))}(this)?function(t,e,n){var r,i;return rf&&ef(r=e.constructor)&&r!==n&&nf(i=r.prototype)&&i!==n.prototype&&rf(t,i),t}(Object(e),this,Yf):e};Yf.prototype=Uf,Mf&&(Uf.constructor=Yf),pf({global:!0,constructor:!0,wrap:!0,forced:Mf},{Number:Yf}),Mf&&function(t,e){for(var n,r=mf?Df(e):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),i=0;r.length>i;i++)Af(e,n=r[i])&&!Af(t,n)&&Of(t,n,Cf(e,n))}(vf[If],Nf);var Rf={};Object.defineProperty(Rf,"__esModule",{value:!0}),Rf.LogLevel=void 0;var Bf=function(t){return t[t.Debug=0]="Debug",t[t.Info=1]="Info",t[t.Warn=2]="Warn",t[t.Error=3]="Error",t[t.Fatal=4]="Fatal",t}({});Rf.LogLevel=Bf,Object.defineProperty(la,"__esModule",{value:!0}),la.ConsoleLogger=void 0,la.buildConsoleLogger=function(t){return new Vf(t)};var jf=Rf;function zf(t){return(zf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Ff(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Wf(r.key),r)}}function Wf(t){var e=function(t,e){if("object"!==zf(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==zf(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===zf(e)?e:String(e)}var Vf=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),function(t,e,n){(e=Wf(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n}(this,"context",void 0),this.context=e||{}}return function(t,e,n){e&&Ff(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"formatMessage",value:function(t,e,n){var r="["+jf.LogLevel[e].toUpperCase()+"] ";return n&&n.app&&(r+=n.app+": "),"string"==typeof t?r+t:(r+="Unexpected ".concat(t.name),t.message&&(r+=' "'.concat(t.message,'"')),e===jf.LogLevel.Debug&&t.stack&&(r+="\n\nStack trace:\n".concat(t.stack)),r)}},{key:"log",value:function(t,e,n){var r,i;if(!("number"==typeof(null===(r=this.context)||void 0===r?void 0:r.level)&&t<(null===(i=this.context)||void 0===i?void 0:i.level)))switch("object"===zf(e)&&void 0===(null==n?void 0:n.error)&&(n.error=e),t){case jf.LogLevel.Debug:k.debug(this.formatMessage(e,jf.LogLevel.Debug,n),n);break;case jf.LogLevel.Info:k.info(this.formatMessage(e,jf.LogLevel.Info,n),n);break;case jf.LogLevel.Warn:k.warn(this.formatMessage(e,jf.LogLevel.Warn,n),n);break;case jf.LogLevel.Error:k.error(this.formatMessage(e,jf.LogLevel.Error,n),n);break;case jf.LogLevel.Fatal:default:k.error(this.formatMessage(e,jf.LogLevel.Fatal,n),n)}}},{key:"debug",value:function(t,e){this.log(jf.LogLevel.Debug,t,Object.assign({},this.context,e))}},{key:"info",value:function(t,e){this.log(jf.LogLevel.Info,t,Object.assign({},this.context,e))}},{key:"warn",value:function(t,e){this.log(jf.LogLevel.Warn,t,Object.assign({},this.context,e))}},{key:"error",value:function(t,e){this.log(jf.LogLevel.Error,t,Object.assign({},this.context,e))}},{key:"fatal",value:function(t,e){this.log(jf.LogLevel.Fatal,t,Object.assign({},this.context,e))}}]),t}();la.ConsoleLogger=Vf;var Hf={},Gf={},$f={};const Kf="object"==typeof M&&M.env&&M.env.NODE_DEBUG&&/\bsemver\b/i.test(M.env.NODE_DEBUG)?(...t)=>k.error("SEMVER",...t):()=>{};var qf=Kf,Zf={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:16,MAX_SAFE_BUILD_LENGTH:250,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:"2.0.0",FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},Xf={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:n,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:i}=Zf,a=qf,s=(e=t.exports={}).re=[],o=e.safeRe=[],u=e.src=[],c=e.t={};let l=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,r]],h=(t,e,n)=>{const r=(t=>{for(const[e,n]of f)t=t.split("".concat(e,"*")).join("".concat(e,"{0,").concat(n,"}")).split("".concat(e,"+")).join("".concat(e,"{1,").concat(n,"}"));return t})(e),i=l++;a(t,i,e),c[t]=i,u[i]=e,s[i]=new RegExp(e,n?"g":void 0),o[i]=new RegExp(r,n?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER","\\d*[a-zA-Z-]".concat(d,"*")),h("MAINVERSION","(".concat(u[c.NUMERICIDENTIFIER],")\\.")+"(".concat(u[c.NUMERICIDENTIFIER],")\\.")+"(".concat(u[c.NUMERICIDENTIFIER],")")),h("MAINVERSIONLOOSE","(".concat(u[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[c.NUMERICIDENTIFIERLOOSE],")\\.")+"(".concat(u[c.NUMERICIDENTIFIERLOOSE],")")),h("PRERELEASEIDENTIFIER","(?:".concat(u[c.NUMERICIDENTIFIER],"|").concat(u[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASEIDENTIFIERLOOSE","(?:".concat(u[c.NUMERICIDENTIFIERLOOSE],"|").concat(u[c.NONNUMERICIDENTIFIER],")")),h("PRERELEASE","(?:-(".concat(u[c.PRERELEASEIDENTIFIER],"(?:\\.").concat(u[c.PRERELEASEIDENTIFIER],")*))")),h("PRERELEASELOOSE","(?:-?(".concat(u[c.PRERELEASEIDENTIFIERLOOSE],"(?:\\.").concat(u[c.PRERELEASEIDENTIFIERLOOSE],")*))")),h("BUILDIDENTIFIER","".concat(d,"+")),h("BUILD","(?:\\+(".concat(u[c.BUILDIDENTIFIER],"(?:\\.").concat(u[c.BUILDIDENTIFIER],")*))")),h("FULLPLAIN","v?".concat(u[c.MAINVERSION]).concat(u[c.PRERELEASE],"?").concat(u[c.BUILD],"?")),h("FULL","^".concat(u[c.FULLPLAIN],"$")),h("LOOSEPLAIN","[v=\\s]*".concat(u[c.MAINVERSIONLOOSE]).concat(u[c.PRERELEASELOOSE],"?").concat(u[c.BUILD],"?")),h("LOOSE","^".concat(u[c.LOOSEPLAIN],"$")),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE","".concat(u[c.NUMERICIDENTIFIERLOOSE],"|x|X|\\*")),h("XRANGEIDENTIFIER","".concat(u[c.NUMERICIDENTIFIER],"|x|X|\\*")),h("XRANGEPLAIN","[v=\\s]*(".concat(u[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[c.XRANGEIDENTIFIER],")")+"(?:\\.(".concat(u[c.XRANGEIDENTIFIER],")")+"(?:".concat(u[c.PRERELEASE],")?").concat(u[c.BUILD],"?")+")?)?"),h("XRANGEPLAINLOOSE","[v=\\s]*(".concat(u[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[c.XRANGEIDENTIFIERLOOSE],")")+"(?:\\.(".concat(u[c.XRANGEIDENTIFIERLOOSE],")")+"(?:".concat(u[c.PRERELEASELOOSE],")?").concat(u[c.BUILD],"?")+")?)?"),h("XRANGE","^".concat(u[c.GTLT],"\\s*").concat(u[c.XRANGEPLAIN],"$")),h("XRANGELOOSE","^".concat(u[c.GTLT],"\\s*").concat(u[c.XRANGEPLAINLOOSE],"$")),h("COERCE","(^|[^\\d])(\\d{1,".concat(n,"})")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:\\.(\\d{1,".concat(n,"}))?")+"(?:$|[^\\d])"),h("COERCERTL",u[c.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM","(\\s*)".concat(u[c.LONETILDE],"\\s+"),!0),e.tildeTrimReplace="$1~",h("TILDE","^".concat(u[c.LONETILDE]).concat(u[c.XRANGEPLAIN],"$")),h("TILDELOOSE","^".concat(u[c.LONETILDE]).concat(u[c.XRANGEPLAINLOOSE],"$")),h("LONECARET","(?:\\^)"),h("CARETTRIM","(\\s*)".concat(u[c.LONECARET],"\\s+"),!0),e.caretTrimReplace="$1^",h("CARET","^".concat(u[c.LONECARET]).concat(u[c.XRANGEPLAIN],"$")),h("CARETLOOSE","^".concat(u[c.LONECARET]).concat(u[c.XRANGEPLAINLOOSE],"$")),h("COMPARATORLOOSE","^".concat(u[c.GTLT],"\\s*(").concat(u[c.LOOSEPLAIN],")$|^$")),h("COMPARATOR","^".concat(u[c.GTLT],"\\s*(").concat(u[c.FULLPLAIN],")$|^$")),h("COMPARATORTRIM","(\\s*)".concat(u[c.GTLT],"\\s*(").concat(u[c.LOOSEPLAIN],"|").concat(u[c.XRANGEPLAIN],")"),!0),e.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE","^\\s*(".concat(u[c.XRANGEPLAIN],")")+"\\s+-\\s+"+"(".concat(u[c.XRANGEPLAIN],")")+"\\s*$"),h("HYPHENRANGELOOSE","^\\s*(".concat(u[c.XRANGEPLAINLOOSE],")")+"\\s+-\\s+"+"(".concat(u[c.XRANGEPLAINLOOSE],")")+"\\s*$"),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(Xf,Xf.exports);var Jf=Xf.exports;const Qf=Object.freeze({loose:!0}),th=Object.freeze({});const eh=/^[0-9]+$/,nh=(t,e)=>{const n=eh.test(t),r=eh.test(e);return n&&r&&(t=+t,e=+e),t===e?0:n&&!r?-1:r&&!n?1:t<e?-1:1};var rh={compareIdentifiers:nh,rcompareIdentifiers:(t,e)=>nh(e,t)};const ih=qf,{MAX_LENGTH:ah,MAX_SAFE_INTEGER:sh}=Zf,{safeRe:oh,t:uh}=Jf,ch=t=>t?"object"!=typeof t?Qf:t:th,{compareIdentifiers:lh}=rh;var dh=class t{constructor(e,n){if(n=ch(n),e instanceof t){if(e.loose===!!n.loose&&e.includePrerelease===!!n.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError('Invalid version. Must be a string. Got type "'.concat(typeof e,'".'));if(e.length>ah)throw new TypeError("version is longer than ".concat(ah," characters"));ih("SemVer",e,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;const r=e.trim().match(n.loose?oh[uh.LOOSE]:oh[uh.FULL]);if(!r)throw new TypeError("Invalid Version: ".concat(e));if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>sh||this.major<0)throw new TypeError("Invalid major version");if(this.minor>sh||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>sh||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<sh)return e}return t})):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version="".concat(this.major,".").concat(this.minor,".").concat(this.patch),this.prerelease.length&&(this.version+="-".concat(this.prerelease.join("."))),this.version}toString(){return this.version}compare(e){if(ih("SemVer.compare",this.version,this.options,e),!(e instanceof t)){if("string"==typeof e&&e===this.version)return 0;e=new t(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof t||(e=new t(e,this.options)),lh(this.major,e.major)||lh(this.minor,e.minor)||lh(this.patch,e.patch)}comparePre(e){if(e instanceof t||(e=new t(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let n=0;do{const t=this.prerelease[n],r=e.prerelease[n];if(ih("prerelease compare",n,t,r),void 0===t&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===t)return-1;if(t!==r)return lh(t,r)}while(++n)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let n=0;do{const t=this.build[n],r=e.build[n];if(ih("prerelease compare",n,t,r),void 0===t&&void 0===r)return 0;if(void 0===r)return 1;if(void 0===t)return-1;if(t!==r)return lh(t,r)}while(++n)}inc(t,e,n){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,n);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,n);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,n),this.inc("pre",e,n);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,n),this.inc("pre",e,n);break;case"major":(0!==this.minor||0!==this.patch||0===this.prerelease.length)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(0!==this.patch||0===this.prerelease.length)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":{const t=Number(n)?1:0;if(!e&&!1===n)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let r=this.prerelease.length;for(;--r>=0;)"number"==typeof this.prerelease[r]&&(this.prerelease[r]++,r=-2);if(-1===r){if(e===this.prerelease.join(".")&&!1===n)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let r=[e,t];!1===n&&(r=[e]),0===lh(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=r):this.prerelease=r}break}default:throw new Error("invalid increment argument: ".concat(t))}return this.raw=this.format(),this.build.length&&(this.raw+="+".concat(this.build.join("."))),this}};const fh=dh;const hh=(t,e,n=!1)=>{if(t instanceof fh)return t;try{return new fh(t,e)}catch(t){if(!n)return null;throw t}};var ph=(t,e)=>{const n=hh(t,e);return n?n.version:null};const mh=dh;Object.defineProperty($f,"__esModule",{value:!0});var yh=(t,e)=>new mh(t,e).major;function vh(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var Th=vh(ph),gh=vh(yh),Ah=function(){function t(t){"function"==typeof t.getVersion&&Th.default(t.getVersion())?gh.default(t.getVersion())!==gh.default(this.getVersion())&&k.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):k.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}return t.prototype.getVersion=function(){return"3.1.0"},t.prototype.subscribe=function(t,e){this.bus.subscribe(t,e)},t.prototype.unsubscribe=function(t,e){this.bus.unsubscribe(t,e)},t.prototype.emit=function(t,e){this.bus.emit(t,e)},t}(),bh=function(){function t(){this.handlers=new Map}return t.prototype.getVersion=function(){return"3.1.0"},t.prototype.subscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).concat(e))},t.prototype.unsubscribe=function(t,e){this.handlers.set(t,(this.handlers.get(t)||[]).filter((function(t){return t!=e})))},t.prototype.emit=function(t,e){(this.handlers.get(t)||[]).forEach((function(t){try{t(e)}catch(t){k.error("could not invoke event listener",t)}}))},t}(),Sh=null;function Eh(){return null!==Sh?Sh:typeof window>"u"?new Proxy({},{get:function(){return function(){return k.error("Window not available, EventBus can not be established!")}}}):(typeof window.OC<"u"&&window.OC._eventBus&&typeof window._nc_event_bus>"u"&&(k.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),Sh=typeof(null==window?void 0:window._nc_event_bus)<"u"?new Ah(window._nc_event_bus):window._nc_event_bus=new bh)}$f.ProxyBus=Ah,$f.SimpleBus=bh,$f.emit=function(t,e){Eh().emit(t,e)},$f.subscribe=function(t,e){Eh().subscribe(t,e)},$f.unsubscribe=function(t,e){Eh().unsubscribe(t,e)};var _h=void 0,Dh=[];$f.subscribe("csrf-token-update",(function(t){_h=t.token,Dh.forEach((function(e){try{e(t.token)}catch(t){k.error("error updating CSRF token observer",t)}}))}));var Ch=function(t,e){return t?t.getAttribute(e):null},Oh=void 0;Gf.getCurrentUser=function(){if(void 0!==Oh)return Oh;var t=null==document?void 0:document.getElementsByTagName("head")[0];if(!t)return null;var e=Ch(t,"data-user");return Oh=null===e?null:{uid:e,displayName:Ch(t,"data-user-displayname"),isAdmin:!!window._oc_isadmin}},Gf.getRequestToken=function(){if(void 0===_h){var t=null==document?void 0:document.getElementsByTagName("head")[0];_h=t?t.getAttribute("data-requesttoken"):null}return _h},Gf.onRequestTokenUpdate=function(t){Dh.push(t)},Object.defineProperty(Hf,"__esModule",{value:!0}),Hf.LoggerBuilder=void 0;var wh=Gf,xh=Rf;function Ih(t){return(Ih="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function Nh(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Ph(r.key),r)}}function Uh(t,e,n){return(e=Ph(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ph(t){var e=function(t,e){if("object"!==Ih(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,"string");if("object"!==Ih(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Ih(e)?e:String(e)}var Lh=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Uh(this,"context",void 0),Uh(this,"factory",void 0),this.context={},this.factory=e}return function(t,e,n){e&&Nh(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"setApp",value:function(t){return this.context.app=t,this}},{key:"setLogLevel",value:function(t){return this.context.level=t,this}},{key:"setUid",value:function(t){return this.context.uid=t,this}},{key:"detectUser",value:function(){var t=(0,wh.getCurrentUser)();return null!==t&&(this.context.uid=t.uid),this}},{key:"detectLogLevel",value:function(){var t=this;return function e(){var n,r;"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=null!==(n=null===(r=window._oc_config)||void 0===r?void 0:r.loglevel)&&void 0!==n?n:xh.LogLevel.Warn,window._oc_debug&&(t.context.level=xh.LogLevel.Debug),document.removeEventListener("readystatechange",e)):document.addEventListener("readystatechange",e)}(),this}},{key:"build",value:function(){return void 0===this.context.level&&this.detectLogLevel(),this.factory(this.context)}}]),t}();Hf.LoggerBuilder=Lh,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return r.LogLevel}}),t.getLogger=function(){return i().build()},t.getLoggerBuilder=i;var e=la,n=Hf,r=Rf;function i(){return new n.LoggerBuilder(e.buildConsoleLogger)}}(dt);const kh=dt.getLoggerBuilder().detectUser().setApp("@nextcloud/calendar-availability-vue").build();var Mh=r(14596),Yh=r(56580);const Rh=r.n(Yh)()((t=>(h.Z.defaults.headers["X-Requested-With"]="XMLHttpRequest",Mh.lD().patch("request",h.Z),Mh.eI((0,d.generateRemoteUrl)(`dav/${t}/${(0,f.ts)().uid}`)))));var Bh=r(96),jh=r(13888),zh=r(25108);const Fh={name:"AvailabilityForm",components:{NcButton:o.Z,NcCheckboxRadioSwitch:Bh.Z,CalendarAvailability:q,NcTimezonePicker:jh.Z},data:()=>({loading:!0,saving:!1,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone??"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,m.j)("dav","user_status_automation")}),computed:{timeZonePickerId:()=>`tz-${(Math.random()+1).toString(36).substring(7)}`},async mounted(){try{const t=await async function(){const t=Rh("calendars"),e=await t.customRequest("inbox",{method:"PROPFIND",data:'<?xml version="1.0"?>\n\t\t\t<x0:propfind xmlns:x0="DAV:">\n\t\t\t <x0:prop>\n\t\t\t\t<x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav"/>\n\t\t\t </x0:prop>\n\t\t\t</x0:propfind>'}),n=await(0,Mh.sw)(e.data);if(!n)return;const r=n?.multistatus?.response[0]?.propstat?.prop["calendar-availability"];return r?function(t){const e=it.parse(t),n=new it.Component(e),r=n.getFirstSubcomponent("vavailability");let i;const a=n.getFirstSubcomponent("vtimezone");a&&(i=a.getFirstProperty("tzid").getFirstValue());const s=r.getAllSubcomponents("available"),o={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]};return s.forEach((t=>{const e=t.getFirstProperty("dtstart").getFirstValue().toJSDate(),n=t.getFirstProperty("dtend").getFirstValue().toJSDate(),r=t.getFirstProperty("rrule");"WEEKLY"===r.getFirstValue().freq?r.getFirstValue().getComponent("BYDAY").forEach((t=>{o[t].push({start:e.getTime()/1e3,end:n.getTime()/1e3})})):kh.warn("rrule not supported",{rrule:r.toICALString()})})),{slots:o,timezoneId:i}}(r):void 0}();if(t){const{slots:e,timezoneId:n}=t;this.slots=e,n&&(this.timezone=n),zh.info("availability loaded",this.slots,this.timezoneId)}else zh.info("no availability is set"),this.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}}catch(e){zh.error("could not load existing availability",e),(0,y.x2)(t("dav","Failed to load availability"))}finally{this.loading=!1}},methods:{async save(){try{this.saving=!0,await async function(t,e){const n=function(t,e){const n=new Y.Component("vcalendar");n.addPropertyWithValue("prodid","Nextcloud DAV app");const r=Q(e);if(r){const t=new Y.Component(Y.parse(r));n.addSubcomponent(t)}else{const t=new Y.Component("vtimezone");t.addPropertyWithValue("tzid",e),n.addSubcomponent(t)}const i=new Y.Component("vavailability"),a=t.reduce(((t,e)=>{var n;const r=new Date(1e3*e.start),i=new Date(1e3*e.end),a=[r.getHours(),r.getMinutes(),i.getHours(),i.getMinutes()].join("-");return{...t,[a]:[...null!=(n=t[a])?n:[],e]}}),{});return Object.keys(a).map((t=>{const n=a[t],r=n[0].start,i=n[0].end,s=n.map((t=>t.day)).filter(((t,e,n)=>n.indexOf(t)===e)),o=new Y.Component("available");return o.addPropertyWithValue("dtstart",Y.Time.fromJSDate(new Date(1e3*r),!1)).setParameter("tzid",e),o.addPropertyWithValue("dtend",Y.Time.fromJSDate(new Date(1e3*i),!1)).setParameter("tzid",e),o.addPropertyWithValue("uid",lt()),o.addPropertyWithValue("rrule",{freq:"WEEKLY",byday:s}),o})).map(i.addSubcomponent.bind(i)),n.addSubcomponent(i),n.toString()}([...Object.keys(t).flatMap((e=>t[e].map((t=>({...t,day:e})))))],e);v.debug("New availability ical created",{vavailability:n});const r=Rh("calendars");await r.customRequest("inbox",{method:"PROPPATCH",data:`<?xml version="1.0"?>\n\t\t\t<x0:propertyupdate xmlns:x0="DAV:">\n\t\t\t <x0:set>\n\t\t\t\t<x0:prop>\n\t\t\t\t <x1:calendar-availability xmlns:x1="urn:ietf:params:xml:ns:caldav">${n}</x1:calendar-availability>\n\t\t\t\t</x0:prop>\n\t\t\t </x0:set>\n\t\t\t</x0:propertyupdate>`})}(this.slots,this.timezone),this.automated?await async function(){return await h.Z.post((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}),{configValue:"yes"})}():await async function(){return await h.Z.delete((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}))}(),(0,y.s$)(t("dav","Saved availability"))}catch(e){zh.error("could not save availability",e),(0,y.x2)(t("dav","Failed to save availability"))}finally{this.saving=!1}}}};var Wh=r(67228),Vh={};Vh.styleTagTransform=I(),Vh.setAttributes=C(),Vh.insert=_().bind(null,"head"),Vh.domAPI=S(),Vh.insertStyleElement=w(),A()(Wh.Z,Vh),Wh.Z&&Wh.Z.locals&&Wh.Z.locals;const Hh=(0,P.Z)(Fh,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"time-zone"},[e("label",{staticClass:"time-zone__heading",attrs:{for:`vs${t.timeZonePickerId}__combobox`}},[t._v("\n\t\t\t"+t._s(t.$t("dav","Time zone:"))+"\n\t\t")]),t._v(" "),e("span",{staticClass:"time-zone-text"},[e("NcTimezonePicker",{attrs:{uid:t.timeZonePickerId},model:{value:t.timezone,callback:function(e){t.timezone=e},expression:"timezone"}})],1)]),t._v(" "),e("CalendarAvailability",{attrs:{slots:t.slots,loading:t.loading,"l10n-to":t.$t("dav","to"),"l10n-delete-slot":t.$t("dav","Delete slot"),"l10n-empty-day":t.$t("dav","No working hours set"),"l10n-add-slot":t.$t("dav","Add slot"),"l10n-monday":t.$t("dav","Monday"),"l10n-tuesday":t.$t("dav","Tuesday"),"l10n-wednesday":t.$t("dav","Wednesday"),"l10n-thursday":t.$t("dav","Thursday"),"l10n-friday":t.$t("dav","Friday"),"l10n-saturday":t.$t("dav","Saturday"),"l10n-sunday":t.$t("dav","Sunday"),"l10n-start-picker-label":e=>t.$t("dav","Pick a start time for {dayName}",{dayName:e}),"l10n-end-picker-label":e=>t.$t("dav","Pick a end time for {dayName}",{dayName:e})},on:{"update:slots":function(e){t.slots=e}}}),t._v(" "),e("NcCheckboxRadioSwitch",{attrs:{checked:t.automated},on:{"update:checked":function(e){t.automated=e}}},[t._v("\n\t\t"+t._s(t.$t("dav",'Automatically set user status to "Do not disturb" outside of availability to mute all notifications.'))+"\n\t")]),t._v(" "),e("NcButton",{attrs:{disabled:t.loading||t.saving,type:"primary"},on:{click:t.save}},[t._v("\n\t\t"+t._s(t.$t("dav","Save"))+"\n\t")])],1)}),[],!1,null,"6052111b",null).exports,Gh={name:"Availability",components:{NcSettingsSection:s.Z,AbsenceForm:L,AvailabilityForm:Hh},data:()=>({hideAbsenceSettings:(0,m.j)("dav","hide_absence_settings",!0)})};const $h=(0,P.Z)(Gh,(function(){var t=this,e=t._self._c;return e("div",[e("NcSettingsSection",{attrs:{name:t.$t("dav","Availability"),description:t.$t("dav","If you configure your working hours, other users will see when you are out of office when they book a meeting.")}},[e("AvailabilityForm")],1),t._v(" "),t.hideAbsenceSettings?t._e():e("NcSettingsSection",{attrs:{name:t.$t("dav","Absence"),description:t.$t("dav","Configure your next absence period.")}},[e("AbsenceForm")],1)],1)}),[],!1,null,null,null).exports;i.default.prototype.$t=a.Iu,new(i.default.extend($h))({}).$mount("#settings-personal-availability")},16745:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(87537),i=n.n(r),a=n(23645),s=n.n(a)()(i());s.push([t.id,".absence[data-v-716172ba]{display:flex;flex-direction:column;gap:5px}.absence__dates[data-v-716172ba]{display:flex;gap:10px;width:100%}.absence__dates__picker[data-v-716172ba]{flex:1 auto}.absence__dates__picker[data-v-716172ba] .native-datetime-picker--input{margin-bottom:0}.absence__buttons[data-v-716172ba]{display:flex;gap:5px}","",{version:3,sources:["webpack://./apps/dav/src/components/AbsenceForm.vue"],names:[],mappings:"AACA,0BACC,YAAA,CACA,qBAAA,CACA,OAAA,CAEA,iCACC,YAAA,CACA,QAAA,CACA,UAAA,CAEA,yCACC,WAAA,CAEA,wEACC,eAAA,CAKH,mCACC,YAAA,CACA,OAAA",sourcesContent:["\n.absence {\n\tdisplay: flex;\n\tflex-direction: column;\n\tgap: 5px;\n\n\t&__dates {\n\t\tdisplay: flex;\n\t\tgap: 10px;\n\t\twidth: 100%;\n\n\t\t&__picker {\n\t\t\tflex: 1 auto;\n\n\t\t\t::v-deep .native-datetime-picker--input {\n\t\t\t\tmargin-bottom: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t&__buttons {\n\t\tdisplay: flex;\n\t\tgap: 5px;\n\t}\n}\n"],sourceRoot:""}]);const o=s},67228:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});var r=n(87537),i=n.n(r),a=n(23645),s=n.n(a)()(i());s.push([t.id,"[data-v-6052111b] .availability-day{padding:0 10px 0 10px;position:absolute}[data-v-6052111b] .availability-slots{display:flex;white-space:normal}[data-v-6052111b] .availability-slot{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap}[data-v-6052111b] .availability-slot-group{display:flex;flex-direction:column}[data-v-6052111b] .mx-input-wrapper{width:85px}[data-v-6052111b] .mx-datepicker{width:97px}[data-v-6052111b] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-6052111b]{padding:32px 12px 12px 0;display:flex;flex-wrap:wrap}.time-zone__heading[data-v-6052111b]{margin-right:calc(var(--default-grid-baseline)*2);line-height:var(--default-clickable-area);font-weight:bold}.grid-table[data-v-6052111b]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content auto min-content;max-width:500px}.button[data-v-6052111b]{align-self:flex-end}[data-v-6052111b] .label-weekday{position:relative;display:inline-flex;padding-top:4px;align-self:center}[data-v-6052111b] .delete-slot{padding-bottom:unset}[data-v-6052111b] .add-another{align-self:center}.to-text[data-v-6052111b]{padding-right:12px}.empty-content[data-v-6052111b]{color:var(--color-text-lighter);margin-top:4px;align-self:center}","",{version:3,sources:["webpack://./apps/dav/src/components/AvailabilityForm.vue"],names:[],mappings:"AACA,oCACC,qBAAA,CACA,iBAAA,CAED,sCACC,YAAA,CACA,kBAAA,CAED,qCACC,YAAA,CACA,kBAAA,CACA,kBAAA,CACA,cAAA,CAED,2CACC,YAAA,CACA,qBAAA,CAED,oCACC,UAAA,CAED,iCACC,UAAA,CAED,+BACC,yCAAA,CACA,WAAA,CAED,4BACC,wBAAA,CACG,YAAA,CACA,cAAA,CAEH,qCACC,iDAAA,CACA,yCAAA,CACA,gBAAA,CAGF,6BACC,YAAA,CACA,kBAAA,CACA,oBAAA,CACA,gBAAA,CACA,kDAAA,CACA,eAAA,CAED,yBACC,mBAAA,CAED,iCACC,iBAAA,CACA,mBAAA,CACA,eAAA,CACA,iBAAA,CAGD,+BACC,oBAAA,CAGD,+BACC,iBAAA,CAGD,0BACC,kBAAA,CAGD,gCACC,+BAAA,CACA,cAAA,CACA,iBAAA",sourcesContent:["\n:deep(.availability-day) {\n\tpadding: 0 10px 0 10px;\n\tposition: absolute;\n}\n:deep(.availability-slots) {\n\tdisplay: flex;\n\twhite-space: normal;\n}\n:deep(.availability-slot) {\n\tdisplay: flex;\n\tflex-direction: row;\n\talign-items: center;\n\tflex-wrap: wrap;\n}\n:deep(.availability-slot-group) {\n\tdisplay: flex;\n\tflex-direction: column;\n}\n:deep(.mx-input-wrapper) {\n\twidth: 85px;\n}\n:deep(.mx-datepicker) {\n\twidth: 97px;\n}\n:deep(.multiselect) {\n\tborder: 1px solid var(--color-border-dark);\n\twidth: 120px;\n}\n.time-zone {\n\tpadding: 32px 12px 12px 0;\n display: flex;\n flex-wrap: wrap;\n\n\t&__heading {\n\t\tmargin-right: calc(var(--default-grid-baseline) * 2);\n\t\tline-height: var(--default-clickable-area);\n\t\tfont-weight: bold;\n\t}\n}\n.grid-table {\n\tdisplay: grid;\n\tmargin-bottom: 32px;\n\tgrid-column-gap: 24px;\n\tgrid-row-gap: 6px;\n\tgrid-template-columns: min-content auto min-content;\n\tmax-width: 500px;\n}\n.button {\n\talign-self: flex-end;\n}\n:deep(.label-weekday) {\n\tposition: relative;\n\tdisplay: inline-flex;\n\tpadding-top: 4px;\n\talign-self: center;\n}\n\n:deep(.delete-slot) {\n\tpadding-bottom: unset;\n}\n\n:deep(.add-another) {\n\talign-self: center;\n}\n\n.to-text {\n\tpadding-right: 12px;\n}\n\n.empty-content {\n\tcolor: var(--color-text-lighter);\n\tmargin-top: 4px;\n\talign-self: center;\n}\n"],sourceRoot:""}]);const o=s},96425:(t,e,n)=>{var r=n(3118),i=n(9435);function a(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=r(i.prototype),a.prototype.constructor=a,t.exports=a},7548:(t,e,n)=>{var r=n(3118),i=n(9435);function a(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}a.prototype=r(i.prototype),a.prototype.constructor=a,t.exports=a},21078:(t,e,n)=>{var r=n(62488),i=n(37285);t.exports=function t(e,n,a,s,o){var u=-1,c=e.length;for(a||(a=i),o||(o=[]);++u<c;){var l=e[u];n>0&&a(l)?n>1?t(l,n-1,a,s,o):r(o,l):s||(o[o.length]=l)}return o}},9435:t=>{t.exports=function(){}},28045:(t,e,n)=>{var r=n(6557),i=n(89250),a=i?function(t,e){return i.set(t,e),t}:r;t.exports=a},52157:t=>{var e=Math.max;t.exports=function(t,n,r,i){for(var a=-1,s=t.length,o=r.length,u=-1,c=n.length,l=e(s-o,0),d=Array(c+l),f=!i;++u<c;)d[u]=n[u];for(;++a<o;)(f||a<s)&&(d[r[a]]=t[a]);for(;l--;)d[u++]=t[a++];return d}},14054:t=>{var e=Math.max;t.exports=function(t,n,r,i){for(var a=-1,s=t.length,o=-1,u=r.length,c=-1,l=n.length,d=e(s-u,0),f=Array(d+l),h=!i;++a<d;)f[a]=t[a];for(var p=a;++c<l;)f[p+c]=n[c];for(;++o<u;)(h||a<s)&&(f[p+r[o]]=t[a++]);return f}},97991:t=>{t.exports=function(t,e){for(var n=t.length,r=0;n--;)t[n]===e&&++r;return r}},22402:(t,e,n)=>{var r=n(71774),i=n(55639);t.exports=function(t,e,n){var a=1&e,s=r(t);return function e(){return(this&&this!==i&&this instanceof e?s:t).apply(a?n:this,arguments)}}},71774:(t,e,n)=>{var r=n(3118),i=n(13218);t.exports=function(t){return function(){var e=arguments;switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3]);case 5:return new t(e[0],e[1],e[2],e[3],e[4]);case 6:return new t(e[0],e[1],e[2],e[3],e[4],e[5]);case 7:return new t(e[0],e[1],e[2],e[3],e[4],e[5],e[6])}var n=r(t.prototype),a=t.apply(n,e);return i(a)?a:n}}},46347:(t,e,n)=>{var r=n(96874),i=n(71774),a=n(86935),s=n(94487),o=n(20893),u=n(46460),c=n(55639);t.exports=function(t,e,n){var l=i(t);return function i(){for(var d=arguments.length,f=Array(d),h=d,p=o(i);h--;)f[h]=arguments[h];var m=d<3&&f[0]!==p&&f[d-1]!==p?[]:u(f,p);return(d-=m.length)<n?s(t,e,a,i.placeholder,void 0,f,m,void 0,void 0,n-d):r(this&&this!==c&&this instanceof i?l:t,this,f)}}},86935:(t,e,n)=>{var r=n(52157),i=n(14054),a=n(97991),s=n(71774),o=n(94487),u=n(20893),c=n(90451),l=n(46460),d=n(55639);t.exports=function t(e,n,f,h,p,m,y,v,T,g){var A=128&n,b=1&n,S=2&n,E=24&n,_=512&n,D=S?void 0:s(e);return function C(){for(var O=arguments.length,w=Array(O),x=O;x--;)w[x]=arguments[x];if(E)var I=u(C),N=a(w,I);if(h&&(w=r(w,h,p,E)),m&&(w=i(w,m,y,E)),O-=N,E&&O<g){var U=l(w,I);return o(e,n,t,C.placeholder,f,w,U,v,T,g-O)}var P=b?f:this,L=S?P[e]:e;return O=w.length,v?w=c(w,v):_&&O>1&&w.reverse(),A&&T<O&&(w.length=T),this&&this!==d&&this instanceof C&&(L=D||s(L)),L.apply(P,w)}}},84375:(t,e,n)=>{var r=n(96874),i=n(71774),a=n(55639);t.exports=function(t,e,n,s){var o=1&e,u=i(t);return function e(){for(var i=-1,c=arguments.length,l=-1,d=s.length,f=Array(d+c),h=this&&this!==a&&this instanceof e?u:t;++l<d;)f[l]=s[l];for(;c--;)f[l++]=arguments[++i];return r(h,o?n:this,f)}}},94487:(t,e,n)=>{var r=n(86528),i=n(258),a=n(69255);t.exports=function(t,e,n,s,o,u,c,l,d,f){var h=8&e;e|=h?32:64,4&(e&=~(h?64:32))||(e&=-4);var p=[t,e,o,h?u:void 0,h?c:void 0,h?void 0:u,h?void 0:c,l,d,f],m=n.apply(void 0,p);return r(t)&&i(m,p),m.placeholder=s,a(m,t,e)}},97727:(t,e,n)=>{var r=n(28045),i=n(22402),a=n(46347),s=n(86935),o=n(84375),u=n(66833),c=n(63833),l=n(258),d=n(69255),f=n(40554),h=Math.max;t.exports=function(t,e,n,p,m,y,v,T){var g=2&e;if(!g&&"function"!=typeof t)throw new TypeError("Expected a function");var A=p?p.length:0;if(A||(e&=-97,p=m=void 0),v=void 0===v?v:h(f(v),0),T=void 0===T?T:f(T),A-=m?m.length:0,64&e){var b=p,S=m;p=m=void 0}var E=g?void 0:u(t),_=[t,e,n,p,m,b,S,y,v,T];if(E&&c(_,E),t=_[0],e=_[1],n=_[2],p=_[3],m=_[4],!(T=_[9]=void 0===_[9]?g?0:t.length:h(_[9]-A,0))&&24&e&&(e&=-25),e&&1!=e)D=8==e||16==e?a(t,e,T):32!=e&&33!=e||m.length?s.apply(void 0,_):o(t,e,n,p);else var D=i(t,e,n);return d((E?r:l)(D,_),t,e)}},99021:(t,e,n)=>{var r=n(85564),i=n(45357),a=n(30061);t.exports=function(t){return a(i(t,void 0,r),t+"")}},66833:(t,e,n)=>{var r=n(89250),i=n(50308),a=r?function(t){return r.get(t)}:i;t.exports=a},97658:(t,e,n)=>{var r=n(52060),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",n=r[e],a=i.call(r,e)?n.length:0;a--;){var s=n[a],o=s.func;if(null==o||o==t)return s.name}return e}},20893:t=>{t.exports=function(t){return t.placeholder}},58775:t=>{var e=/\{\n\/\* \[wrapped with (.+)\] \*/,n=/,? & /;t.exports=function(t){var r=t.match(e);return r?r[1].split(n):[]}},83112:t=>{var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,n){var r=n.length;if(!r)return t;var i=r-1;return n[i]=(r>1?"& ":"")+n[i],n=n.join(r>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+n+"] */\n")}},37285:(t,e,n)=>{var r=n(62705),i=n(35694),a=n(1469),s=r?r.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(s&&t&&t[s])}},86528:(t,e,n)=>{var r=n(96425),i=n(66833),a=n(97658),s=n(8111);t.exports=function(t){var e=a(t),n=s[e];if("function"!=typeof n||!(e in r.prototype))return!1;if(t===n)return!0;var o=i(n);return!!o&&t===o[0]}},63833:(t,e,n)=>{var r=n(52157),i=n(14054),a=n(46460),s="__lodash_placeholder__",o=Math.min;t.exports=function(t,e){var n=t[1],u=e[1],c=n|u,l=c<131,d=128==u&&8==n||128==u&&256==n&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==n;if(!l&&!d)return t;1&u&&(t[2]=e[2],c|=1&n?0:4);var f=e[3];if(f){var h=t[3];t[3]=h?r(h,f,e[4]):f,t[4]=h?a(t[3],s):e[4]}return(f=e[5])&&(h=t[5],t[5]=h?i(h,f,e[6]):f,t[6]=h?a(t[5],s):e[6]),(f=e[7])&&(t[7]=f),128&u&&(t[8]=null==t[8]?e[8]:o(t[8],e[8])),null==t[9]&&(t[9]=e[9]),t[0]=e[0],t[1]=c,t}},89250:(t,e,n)=>{var r=n(70577),i=r&&new r;t.exports=i},52060:t=>{t.exports={}},90451:(t,e,n)=>{var r=n(278),i=n(65776),a=Math.min;t.exports=function(t,e){for(var n=t.length,s=a(e.length,n),o=r(t);s--;){var u=e[s];t[s]=i(u,n)?o[u]:void 0}return t}},46460:t=>{var e="__lodash_placeholder__";t.exports=function(t,n){for(var r=-1,i=t.length,a=0,s=[];++r<i;){var o=t[r];o!==n&&o!==e||(t[r]=e,s[a++]=r)}return s}},258:(t,e,n)=>{var r=n(28045),i=n(21275)(r);t.exports=i},69255:(t,e,n)=>{var r=n(58775),i=n(83112),a=n(30061),s=n(87241);t.exports=function(t,e,n){var o=e+"";return a(t,i(o,s(r(o),n)))}},87241:(t,e,n)=>{var r=n(77412),i=n(47443),a=[["ary",128],["bind",1],["bindKey",2],["curry",8],["curryRight",16],["flip",512],["partial",32],["partialRight",64],["rearg",256]];t.exports=function(t,e){return r(a,(function(n){var r="_."+n[0];e&n[1]&&!i(t,r)&&t.push(r)})),t.sort()}},21913:(t,e,n)=>{var r=n(96425),i=n(7548),a=n(278);t.exports=function(t){if(t instanceof r)return t.clone();var e=new i(t.__wrapped__,t.__chain__);return e.__actions__=a(t.__actions__),e.__index__=t.__index__,e.__values__=t.__values__,e}},39514:(t,e,n)=>{var r=n(97727);t.exports=function(t,e,n){return e=n?void 0:e,e=t&&null==e?t.length:e,r(t,128,void 0,void 0,void 0,void 0,e)}},40087:(t,e,n)=>{var r=n(97727);function i(t,e,n){var a=r(t,8,void 0,void 0,void 0,void 0,void 0,e=n?void 0:e);return a.placeholder=i.placeholder,a}i.placeholder={},t.exports=i},85564:(t,e,n)=>{var r=n(21078);t.exports=function(t){return null!=t&&t.length?r(t,1):[]}},84599:(t,e,n)=>{var r=n(68836),i=n(69306),a=Array.prototype.push;function s(t,e){return 2==e?function(e,n){return t(e,n)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,n=Array(e);e--;)n[e]=t[e];return n}function u(t,e){return function(){var n=arguments.length;if(n){for(var r=Array(n);n--;)r[n]=arguments[n];var i=r[0]=e.apply(void 0,r);return t.apply(void 0,r),i}}}t.exports=function t(e,n,c,l){var d="function"==typeof n,f=n===Object(n);if(f&&(l=c,c=n,n=void 0),null==c)throw new TypeError;l||(l={});var h={cap:!("cap"in l)||l.cap,curry:!("curry"in l)||l.curry,fixed:!("fixed"in l)||l.fixed,immutable:!("immutable"in l)||l.immutable,rearg:!("rearg"in l)||l.rearg},p=d?c:i,m="curry"in l&&l.curry,y="fixed"in l&&l.fixed,v="rearg"in l&&l.rearg,T=d?c.runInContext():void 0,g=d?c:{ary:e.ary,assign:e.assign,clone:e.clone,curry:e.curry,forEach:e.forEach,isArray:e.isArray,isError:e.isError,isFunction:e.isFunction,isWeakMap:e.isWeakMap,iteratee:e.iteratee,keys:e.keys,rearg:e.rearg,toInteger:e.toInteger,toPath:e.toPath},A=g.ary,b=g.assign,S=g.clone,E=g.curry,_=g.forEach,D=g.isArray,C=g.isError,O=g.isFunction,w=g.isWeakMap,x=g.keys,I=g.rearg,N=g.toInteger,U=g.toPath,P=x(r.aryMethod),L={castArray:function(t){return function(){var e=arguments[0];return D(e)?t(o(e)):t.apply(void 0,arguments)}},iteratee:function(t){return function(){var e=arguments[1],n=t(arguments[0],e),r=n.length;return h.cap&&"number"==typeof e?(e=e>2?e-2:1,r&&r<=e?n:s(n,e)):n}},mixin:function(t){return function(e){var n=this;if(!O(n))return t(n,Object(e));var r=[];return _(x(e),(function(t){O(e[t])&&r.push([t,n.prototype[t]])})),t(n,Object(e)),_(r,(function(t){var e=t[1];O(e)?n.prototype[t[0]]=e:delete n.prototype[t[0]]})),n}},nthArg:function(t){return function(e){var n=e<0?1:N(e)+1;return E(t(e),n)}},rearg:function(t){return function(e,n){var r=n?n.length:0;return E(t(e,n),r)}},runInContext:function(n){return function(r){return t(e,n(r),l)}}};function k(t,e,n){if(h.fixed&&(y||!r.skipFixed[t])){var i=r.methodSpread[t],s=i&&i.start;return void 0===s?A(e,n):function(t,e){return function(){for(var n=arguments.length,r=n-1,i=Array(n);n--;)i[n]=arguments[n];var s=i[e],o=i.slice(0,e);return s&&a.apply(o,s),e!=r&&a.apply(o,i.slice(e+1)),t.apply(this,o)}}(e,s)}return e}function M(t,e,n){return h.rearg&&n>1&&(v||!r.skipRearg[t])?I(e,r.methodRearg[t]||r.aryRearg[n]):e}function Y(t,e){for(var n=-1,r=(e=U(e)).length,i=r-1,a=S(Object(t)),s=a;null!=s&&++n<r;){var o=e[n],u=s[o];null==u||O(u)||C(u)||w(u)||(s[o]=S(n==i?u:Object(u))),s=s[o]}return a}function R(e,n){var i=r.aliasToReal[e]||e,a=r.remap[i]||i,s=l;return function(e){var r=d?T:g,o=d?T[a]:n,u=b(b({},s),e);return t(r,i,o,u)}}function B(t,e){return function(){var n=arguments.length;if(!n)return t();for(var r=Array(n);n--;)r[n]=arguments[n];var i=h.rearg?0:n-1;return r[i]=e(r[i]),t.apply(void 0,r)}}function j(t,e,n){var i,a=r.aliasToReal[t]||t,c=e,l=L[a];return l?c=l(e):h.immutable&&(r.mutate.array[a]?c=u(e,o):r.mutate.object[a]?c=u(e,function(t){return function(e){return t({},e)}}(e)):r.mutate.set[a]&&(c=u(e,Y))),_(P,(function(t){return _(r.aryMethod[t],(function(e){if(a==e){var n=r.methodSpread[a],o=n&&n.afterRearg;return i=o?k(a,M(a,c,t),t):M(a,k(a,c,t),t),i=function(t,e,n){return m||h.curry&&n>1?E(e,n):e}(0,i=function(t,e){if(h.cap){var n=r.iterateeRearg[t];if(n)return function(t,e){return B(t,(function(t){var n=e.length;return function(t,e){return 2==e?function(e,n){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(I(s(t,n),e),n)}))}(e,n);var i=!d&&r.iterateeAry[t];if(i)return function(t,e){return B(t,(function(t){return"function"==typeof t?s(t,e):t}))}(e,i)}return e}(a,i),t),!1}})),!i})),i||(i=c),i==e&&(i=m?E(i,1):function(){return e.apply(this,arguments)}),i.convert=R(a,e),i.placeholder=e.placeholder=n,i}if(!f)return j(n,c,p);var z=c,F=[];return _(P,(function(t){_(r.aryMethod[t],(function(t){var e=z[r.remap[t]||t];e&&F.push([t,j(t,e,z)])}))})),_(x(z),(function(t){var e=z[t];if("function"==typeof e){for(var n=F.length;n--;)if(F[n][0]==t)return;e.convert=R(t,e),F.push([t,e])}})),_(F,(function(t){z[t[0]]=t[1]})),z.convert=function(t){return z.runInContext.convert(t)(void 0)},z.placeholder=z,_(x(z),(function(t){_(r.realToAlias[t]||[],(function(e){z[e]=z[t]}))})),z}},68836:(t,e)=>{e.aliasToReal={each:"forEach",eachRight:"forEachRight",entries:"toPairs",entriesIn:"toPairsIn",extend:"assignIn",extendAll:"assignInAll",extendAllWith:"assignInAllWith",extendWith:"assignInWith",first:"head",conforms:"conformsTo",matches:"isMatch",property:"get",__:"placeholder",F:"stubFalse",T:"stubTrue",all:"every",allPass:"overEvery",always:"constant",any:"some",anyPass:"overSome",apply:"spread",assoc:"set",assocPath:"set",complement:"negate",compose:"flowRight",contains:"includes",dissoc:"unset",dissocPath:"unset",dropLast:"dropRight",dropLastWhile:"dropRightWhile",equals:"isEqual",identical:"eq",indexBy:"keyBy",init:"initial",invertObj:"invert",juxt:"over",omitAll:"omit",nAry:"ary",path:"get",pathEq:"matchesProperty",pathOr:"getOr",paths:"at",pickAll:"pick",pipe:"flow",pluck:"map",prop:"get",propEq:"matchesProperty",propOr:"getOr",props:"at",symmetricDifference:"xor",symmetricDifferenceBy:"xorBy",symmetricDifferenceWith:"xorWith",takeLast:"takeRight",takeLastWhile:"takeRightWhile",unapply:"rest",unnest:"flatten",useWith:"overArgs",where:"conformsTo",whereEq:"isMatch",zipObj:"zipObject"},e.aryMethod={1:["assignAll","assignInAll","attempt","castArray","ceil","create","curry","curryRight","defaultsAll","defaultsDeepAll","floor","flow","flowRight","fromPairs","invert","iteratee","memoize","method","mergeAll","methodOf","mixin","nthArg","over","overEvery","overSome","rest","reverse","round","runInContext","spread","template","trim","trimEnd","trimStart","uniqueId","words","zipAll"],2:["add","after","ary","assign","assignAllWith","assignIn","assignInAllWith","at","before","bind","bindAll","bindKey","chunk","cloneDeepWith","cloneWith","concat","conformsTo","countBy","curryN","curryRightN","debounce","defaults","defaultsDeep","defaultTo","delay","difference","divide","drop","dropRight","dropRightWhile","dropWhile","endsWith","eq","every","filter","find","findIndex","findKey","findLast","findLastIndex","findLastKey","flatMap","flatMapDeep","flattenDepth","forEach","forEachRight","forIn","forInRight","forOwn","forOwnRight","get","groupBy","gt","gte","has","hasIn","includes","indexOf","intersection","invertBy","invoke","invokeMap","isEqual","isMatch","join","keyBy","lastIndexOf","lt","lte","map","mapKeys","mapValues","matchesProperty","maxBy","meanBy","merge","mergeAllWith","minBy","multiply","nth","omit","omitBy","overArgs","pad","padEnd","padStart","parseInt","partial","partialRight","partition","pick","pickBy","propertyOf","pull","pullAll","pullAt","random","range","rangeRight","rearg","reject","remove","repeat","restFrom","result","sampleSize","some","sortBy","sortedIndex","sortedIndexOf","sortedLastIndex","sortedLastIndexOf","sortedUniqBy","split","spreadFrom","startsWith","subtract","sumBy","take","takeRight","takeRightWhile","takeWhile","tap","throttle","thru","times","trimChars","trimCharsEnd","trimCharsStart","truncate","union","uniqBy","uniqWith","unset","unzipWith","without","wrap","xor","zip","zipObject","zipObjectDeep"],3:["assignInWith","assignWith","clamp","differenceBy","differenceWith","findFrom","findIndexFrom","findLastFrom","findLastIndexFrom","getOr","includesFrom","indexOfFrom","inRange","intersectionBy","intersectionWith","invokeArgs","invokeArgsMap","isEqualWith","isMatchWith","flatMapDepth","lastIndexOfFrom","mergeWith","orderBy","padChars","padCharsEnd","padCharsStart","pullAllBy","pullAllWith","rangeStep","rangeStepRight","reduce","reduceRight","replace","set","slice","sortedIndexBy","sortedLastIndexBy","transform","unionBy","unionWith","update","xorBy","xorWith","zipWith"],4:["fill","setWith","updateWith"]},e.aryRearg={2:[1,0],3:[2,0,1],4:[3,2,0,1]},e.iterateeAry={dropRightWhile:1,dropWhile:1,every:1,filter:1,find:1,findFrom:1,findIndex:1,findIndexFrom:1,findKey:1,findLast:1,findLastFrom:1,findLastIndex:1,findLastIndexFrom:1,findLastKey:1,flatMap:1,flatMapDeep:1,flatMapDepth:1,forEach:1,forEachRight:1,forIn:1,forInRight:1,forOwn:1,forOwnRight:1,map:1,mapKeys:1,mapValues:1,partition:1,reduce:2,reduceRight:2,reject:1,remove:1,some:1,takeRightWhile:1,takeWhile:1,times:1,transform:2},e.iterateeRearg={mapKeys:[1],reduceRight:[1,0]},e.methodRearg={assignInAllWith:[1,0],assignInWith:[1,2,0],assignAllWith:[1,0],assignWith:[1,2,0],differenceBy:[1,2,0],differenceWith:[1,2,0],getOr:[2,1,0],intersectionBy:[1,2,0],intersectionWith:[1,2,0],isEqualWith:[1,2,0],isMatchWith:[2,1,0],mergeAllWith:[1,0],mergeWith:[1,2,0],padChars:[2,1,0],padCharsEnd:[2,1,0],padCharsStart:[2,1,0],pullAllBy:[2,1,0],pullAllWith:[2,1,0],rangeStep:[1,2,0],rangeStepRight:[1,2,0],setWith:[3,1,2,0],sortedIndexBy:[2,1,0],sortedLastIndexBy:[2,1,0],unionBy:[1,2,0],unionWith:[1,2,0],updateWith:[3,1,2,0],xorBy:[1,2,0],xorWith:[1,2,0],zipWith:[1,2,0]},e.methodSpread={assignAll:{start:0},assignAllWith:{start:0},assignInAll:{start:0},assignInAllWith:{start:0},defaultsAll:{start:0},defaultsDeepAll:{start:0},invokeArgs:{start:2},invokeArgsMap:{start:2},mergeAll:{start:0},mergeAllWith:{start:0},partial:{start:1},partialRight:{start:1},without:{start:1},zipAll:{start:0}},e.mutate={array:{fill:!0,pull:!0,pullAll:!0,pullAllBy:!0,pullAllWith:!0,pullAt:!0,remove:!0,reverse:!0},object:{assign:!0,assignAll:!0,assignAllWith:!0,assignIn:!0,assignInAll:!0,assignInAllWith:!0,assignInWith:!0,assignWith:!0,defaults:!0,defaultsAll:!0,defaultsDeep:!0,defaultsDeepAll:!0,merge:!0,mergeAll:!0,mergeAllWith:!0,mergeWith:!0},set:{set:!0,setWith:!0,unset:!0,update:!0,updateWith:!0}},e.realToAlias=function(){var t=Object.prototype.hasOwnProperty,n=e.aliasToReal,r={};for(var i in n){var a=n[i];t.call(r,a)?r[a].push(i):r[a]=[i]}return r}(),e.remap={assignAll:"assign",assignAllWith:"assignWith",assignInAll:"assignIn",assignInAllWith:"assignInWith",curryN:"curry",curryRightN:"curryRight",defaultsAll:"defaults",defaultsDeepAll:"defaultsDeep",findFrom:"find",findIndexFrom:"findIndex",findLastFrom:"findLast",findLastIndexFrom:"findLastIndex",getOr:"get",includesFrom:"includes",indexOfFrom:"indexOf",invokeArgs:"invoke",invokeArgsMap:"invokeMap",lastIndexOfFrom:"lastIndexOf",mergeAll:"merge",mergeAllWith:"mergeWith",padChars:"pad",padCharsEnd:"padEnd",padCharsStart:"padStart",propertyOf:"get",rangeStep:"range",rangeStepRight:"rangeRight",restFrom:"rest",spreadFrom:"spread",trimChars:"trim",trimCharsEnd:"trimEnd",trimCharsStart:"trimStart",zipAll:"zip"},e.skipFixed={castArray:!0,flow:!0,flowRight:!0,iteratee:!0,mixin:!0,rearg:!0,runInContext:!0},e.skipRearg={add:!0,assign:!0,assignIn:!0,bind:!0,bindKey:!0,concat:!0,difference:!0,divide:!0,eq:!0,gt:!0,gte:!0,isEqual:!0,lt:!0,lte:!0,matchesProperty:!0,merge:!0,multiply:!0,overArgs:!0,partial:!0,partialRight:!0,propertyOf:!0,random:!0,range:!0,rangeRight:!0,subtract:!0,zip:!0,zipObject:!0,zipObjectDeep:!0}},4269:(t,e,n)=>{t.exports={ary:n(39514),assign:n(44037),clone:n(66678),curry:n(40087),forEach:n(77412),isArray:n(1469),isError:n(64647),isFunction:n(23560),isWeakMap:n(81018),iteratee:n(72594),keys:n(280),rearg:n(4963),toInteger:n(40554),toPath:n(30084)}},92822:(t,e,n)=>{var r=n(84599),i=n(4269);t.exports=function(t,e,n){return r(i,t,e,n)}},56580:(t,e,n)=>{var r=n(92822)("memoize",n(88306));r.placeholder=n(69306),t.exports=r},69306:t=>{t.exports={}},64647:(t,e,n)=>{var r=n(44239),i=n(37005),a=n(68630);t.exports=function(t){if(!i(t))return!1;var e=r(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!a(t)}},81018:(t,e,n)=>{var r=n(64160),i=n(37005);t.exports=function(t){return i(t)&&"[object WeakMap]"==r(t)}},72594:(t,e,n)=>{var r=n(85990),i=n(67206);t.exports=function(t){return i("function"==typeof t?t:r(t,1))}},4963:(t,e,n)=>{var r=n(97727),i=n(99021)((function(t,e){return r(t,256,void 0,void 0,void 0,e)}));t.exports=i},18601:(t,e,n)=>{var r=n(14841);t.exports=function(t){return t?Infinity===(t=r(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,n)=>{var r=n(18601);t.exports=function(t){var e=r(t),n=e%1;return e==e?n?e-n:e:0}},30084:(t,e,n)=>{var r=n(29932),i=n(278),a=n(1469),s=n(33448),o=n(55514),u=n(40327),c=n(79833);t.exports=function(t){return a(t)?r(t,u):s(t)?[t]:i(o(c(t)))}},8111:(t,e,n)=>{var r=n(96425),i=n(7548),a=n(9435),s=n(1469),o=n(37005),u=n(21913),c=Object.prototype.hasOwnProperty;function l(t){if(o(t)&&!s(t)&&!(t instanceof r)){if(t instanceof i)return t;if(c.call(t,"__wrapped__"))return u(t)}return new i(t)}l.prototype=a.prototype,l.prototype.constructor=l,t.exports=l}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var n=a[t]={id:t,loaded:!1,exports:{}};return i[t].call(n.exports,n,n.exports,s),n.loaded=!0,n.exports}s.m=i,e=[],s.O=(t,n,r,i)=>{if(!n){var a=1/0;for(l=0;l<e.length;l++){n=e[l][0],r=e[l][1],i=e[l][2];for(var o=!0,u=0;u<n.length;u++)(!1&i||a>=i)&&Object.keys(s.O).every((t=>s.O[t](n[u])))?n.splice(u--,1):(o=!1,i<a&&(a=i));if(o){e.splice(l--,1);var c=r();void 0!==c&&(t=c)}}return t}i=i||0;for(var l=e.length;l>0&&e[l-1][2]>i;l--)e[l]=e[l-1];e[l]=[n,r,i]},s.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return s.d(e,{a:e}),e},s.d=(t,e)=>{for(var n in e)s.o(e,n)&&!s.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,n)=>(s.f[n](t,e),e)),[])),s.u=t=>t+"-"+t+".js?v="+{1697:"17920ffa1ad36f333ac6",5076:"5df17ad2d937c26c5b50"}[t],s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),s.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n={},r="nextcloud:",s.l=(t,e,i,a)=>{if(n[t])n[t].push(e);else{var o,u;if(void 0!==i)for(var c=document.getElementsByTagName("script"),l=0;l<c.length;l++){var d=c[l];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==r+i){o=d;break}}o||(u=!0,(o=document.createElement("script")).charset="utf-8",o.timeout=120,s.nc&&o.setAttribute("nonce",s.nc),o.setAttribute("data-webpack",r+i),o.src=t),n[t]=[e];var f=(e,r)=>{o.onerror=o.onload=null,clearTimeout(h);var i=n[t];if(delete n[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((t=>t(r))),e)return e(r)},h=setTimeout(f.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=f.bind(null,o.onerror),o.onload=f.bind(null,o.onload),u&&document.head.appendChild(o)}},s.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},s.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),s.j=3347,(()=>{var t;s.g.importScripts&&(t=s.g.location+"");var e=s.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!t;)t=n[r--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=t})(),(()=>{s.b=document.baseURI||self.location.href;var t={3347:0};s.f.j=(e,n)=>{var r=s.o(t,e)?t[e]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=t[e]=[n,i]));n.push(r[2]=i);var a=s.p+s.u(e),o=new Error;s.l(a,(n=>{if(s.o(t,e)&&(0!==(r=t[e])&&(t[e]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,r[1](o)}}),"chunk-"+e,e)}},s.O.j=e=>0===t[e];var e=(e,n)=>{var r,i,a=n[0],o=n[1],u=n[2],c=0;if(a.some((e=>0!==t[e]))){for(r in o)s.o(o,r)&&(s.m[r]=o[r]);if(u)var l=u(s)}for(e&&e(n);c<a.length;c++)i=a[c],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(l)},n=self.webpackChunknextcloud=self.webpackChunknextcloud||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})(),s.nc=void 0;var o=s.O(void 0,[7874],(()=>s(2253)));o=s.O(o)})();
- //# sourceMappingURL=dav-settings-personal-availability.js.map?v=c3d191323f790e975c1d
|