You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nextcloud/dist/dav-settings-personal-avail...

3 lines
217 KiB
JavaScript

This file contains invisible Unicode characters!

This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

/*! For license information please see dav-settings-personal-availability.js.LICENSE.txt */
(()=>{var e,r,n,i={13387:(e,r,n)=>{"use strict";var i=n(20144),a=n(31352),s=n(67912),o=n(74628),u=n(49368),l=n(70653),c=n(37008),d=n(79753),f=n(93664);function h(t){return`${t.getUTCFullYear()}-${(t.getUTCMonth()+1).toString().padStart(2,"0")}-${t.getUTCDate().toString().padStart(2,"0")}`}var p=n(43554),m=n(64024);const y={name:"AbsenceForm",components:{NcButton:o.Z,NcTextField:u.Z,NcTextArea:l.Z,NcDateTimePickerNative:c.Z},data(){const{firstDay:t,lastDay:e,status:r,message:n}=(0,p.j)("dav","absence",{});return{loading:!1,status:r??"",message:n??"",firstDay:t?new Date(t):new Date,lastDay:e?new Date(e):null}},computed:{valid(){return!!this.firstDay&&!!this.lastDay&&!!this.status&&this.lastDay>this.firstDay}},methods:{resetForm(){this.status="",this.message="",this.firstDay=new Date,this.lastDay=null},async saveForm(){if(this.valid){this.loading=!0;try{await f.Z.post((0,d.generateUrl)("/apps/dav/settings/absence"),{firstDay:h(this.firstDay),lastDay:h(this.lastDay),status:this.status,message:this.message})}catch(t){(0,m.x2)(this.$t("dav","Failed to save your absence settings"))}finally{this.loading=!1}}},async clearAbsence(){this.loading=!0;try{await f.Z.delete((0,d.generateUrl)("/apps/dav/settings/absence")),this.resetForm()}catch(t){(0,m.x2)(this.$t("dav","Failed to clear your absence settings"))}finally{this.loading=!1}}}};var v=n(93379),T=n.n(v),g=n(7795),A=n.n(g),b=n(90569),S=n.n(b),E=n(3565),_=n.n(E),D=n(19216),C=n.n(D),O=n(44589),w=n.n(O),x=n(49980),I={};I.styleTagTransform=w(),I.setAttributes=_(),I.insert=S().bind(null,"head"),I.domAPI=A(),I.insertStyleElement=C(),T()(x.Z,I),x.Z&&x.Z.locals&&x.Z.locals;var N=n(51900),U=(0,N.Z)(y,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"absence"},[e("div",{staticClass:"absence__dates"},[e("NcDateTimePickerNative",{staticClass:"absence__dates__picker",attrs:{id:"absence-first-day",label:t.$t("dav","First day")},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)")},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")},on:{"update:value":function(e){t.status=e}}}),t._v(" "),e("NcTextArea",{attrs:{value:t.message,label:t.$t("dav","Long absence Message")},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"},on:{click:t.saveForm}},[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,"5a6b66ca",null);const M=U.exports;var L=n(25108),P=n(34155),Y=n(18350);function k(t,e,r,n,i,a,s,o){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._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)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}!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-f507b497]{display:flex;align-self:center;justify-self:center;align-items:center;justify-content:center}.button-vue[data-v-f507b497]{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-f507b497],.button-vue span[data-v-f507b497]{cursor:pointer}.button-vue[data-v-f507b497]:focus{outline:none}.button-vue[data-v-f507b497]:disabled{cursor:default;opacity:.5;filter:saturate(.7)}.button-vue:disabled *[data-v-f507b497]{cursor:default}.button-vue[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-light-hover)}.button-vue[data-v-f507b497]:active{background-color:var(--color-primary-element-light)}.button-vue__wrapper[data-v-f507b497]{display:inline-flex;align-items:center;justify-content:center;width:100%}.button-vue--end .button-vue__wrapper[data-v-f507b497]{justify-content:end}.button-vue--start .button-vue__wrapper[data-v-f507b497]{justify-content:start}.button-vue--reverse .button-vue__wrapper[data-v-f507b497]{flex-direction:row-reverse}.button-vue--reverse.button-vue--icon-and-text[data-v-f507b497]{padding-inline:calc(var(--default-grid-baseline) * 4) var(--default-grid-baseline)}.button-vue__icon[data-v-f507b497]{height:44px;width:44px;min-height:44px;min-width:44px;display:flex;justify-content:center;align-items:center}.button-vue__text[data-v-f507b497]{font-weight:700;margin-bottom:1px;padding:2px 0;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.button-vue--icon-only[data-v-f507b497]{width:44px!important}.button-vue--text-only[data-v-f507b497]{padding:0 12px}.button-vue--text-only .button-vue__text[data-v-f507b497]{margin-left:4px;margin-right:4px}.button-vue--icon-and-text[data-v-f507b497]{padding-block:0;padding-inline:var(--default-grid-baseline) calc(var(--default-grid-baseline) * 4)}.button-vue--wide[data-v-f507b497]{width:100%}.button-vue[data-v-f507b497]: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-f507b497]{outline:2px solid var(--color-primary-element-text);border-radius:var(--border-radius);background-color:transparent}.button-vue--vue-primary[data-v-f507b497]{background-color:var(--color-primary-element);color:var(--color-primary-element-text)}.button-vue--vue-primary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-primary-element-hover)}.button-vue--vue-primary[data-v-f507b497]:active{background-color:var(--color-primary-element)}.button-vue--vue-secondary[data-v-f507b497]{color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light)}.button-vue--vue-secondary[data-v-f507b497]:hover:not(:disabled){color:var(--color-primary-element-light-text);background-color:var(--color-primary-element-light-hover)}.button-vue--vue-tertiary[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-background-hover)}.button-vue--vue-tertiary-no-background[data-v-f507b497]{color:var(--color-main-text);background-color:transparent}.button-vue--vue-tertiary-no-background[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]{color:var(--color-primary-element-text);background-color:transparent}.button-vue--vue-tertiary-on-primary[data-v-f507b497]:hover:not(:disabled){background-color:transparent}.button-vue--vue-success[data-v-f507b497]{background-color:var(--color-success);color:#fff}.button-vue--vue-success[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-success-hover)}.button-vue--vue-success[data-v-f507b497]:active{background-color:var(--color-success)}.button-vue--vue-warning[data-v-f507b497]{background-color:var(--color-warning);color:#fff}.button-vue--vue-warning[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-warning-hover)}.button-vue--vue-warning[data-v-f507b497]:active{background-color:var(--color-warning)}.button-vue--vue-error[data-v-f507b497]{background-color:var(--color-error);color:#fff}.button-vue--vue-error[data-v-f507b497]:hover:not(:disabled){background-color:var(--color-error-hover)}.button-vue--vue-error[data-v-f507b497]:active{background-color:var(--color-error)}.availability-day[data-v-31358f1f]{padding:0 10px;position:absolute}.availability-slots[data-v-31358f1f]{display:flex;white-space:nowrap}.availability-slot[data-v-31358f1f]{display:flex;flex-direction:row;align-items:center}.availability-slot-group[data-v-31358f1f]{display:flex;flex-direction:column}[data-v-31358f1f] .mx-input-wrapper{width:85px}[data-v-31358f1f] .mx-datepicker{width:97px}[data-v-31358f1f] .multiselect{border:1px solid var(--color-border-dark);width:120px}.time-zone[data-v-31358f1f]{padding:32px 12px 12px 0}.grid-table[data-v-31358f1f]{display:grid;margin-bottom:32px;grid-column-gap:24px;grid-row-gap:6px;grid-template-columns:min-content min-content min-content}.button[data-v-31358f1f]{align-self:flex-end}.label-weekday[data-v-31358f1f]{position:relative;display:flex;align-items:flex-start}.label-weekday>span[data-v-31358f1f]{height:50px;display:flex;align-items:center}.add-another[data-v-31358f1f]{background-color:transparent;border:none;opacity:.5;display:inline-flex;padding:0;margin:0 0 3px}.add-another[data-v-31358f1f]:hover{opacity:1}.to-text[data-v-31358f1f]{padding-right:12px}.time-zone-text[data-v-31358f1f]{padding-left:22px}.empty-content[data-v-31358f1f]{color:var(--color-text-lighter);display:inline-flex;align-items:center}.start-date[data-v-31358f1f]{padding-right:12px}')),document.head.appendChild(t)}}catch(t){L.error("vite-plugin-css-injected-by-js",t)}}();const R=["date","datetime-local","month","time","week"],B={name:"NcDateTimePickerNative",inheritAttrs:!1,props:{value:{type:Date,default:null},id:{type:String,required:!0},type:{type:String,default:"date",validate:t=>R.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:r,dd:n}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${t}-${r}-${n}T${e}`))}const{yyyy:r,MM:n,dd:i}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${r}-${n}-${i}T${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:r,hh:n,mm:i}=this.getReadableDate(new Date);return this.$emit("input",new Date(`${t}-${e}-${r}T${n}:${i}`))}const{yyyy:r,dd:n,hh:i,mm:a}=this.getReadableDate(this.value);return this.$emit("input",new Date(`${r}-${e}-${n}T${i}:${a}`))}const e=1e3*new Date(t.target.valueAsNumber).getTimezoneOffset()*60,r=t.target.valueAsNumber+e;return this.$emit("input",new Date(r))}}}},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:r,dd:n,hh:i,mm:a}=this.getReadableDate(t);if("datetime-local"===this.type)return`${e}-${r}-${n}T${i}:${a}`;if("date"===this.type)return`${e}-${r}-${n}`;if("month"===this.type)return`${e}-${r}`;if("time"===this.type)return`${i}:${a}`;if("week"===this.type){const r=new Date(e,0,1),n=Math.floor((t-r)/864e5);return`${e}-W${Math.ceil(n/7)}`}}}}};var j=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 z=k(B,j,[],!1,null,"22982259",null,null).exports;var F;(F=z).mounted?Array.isArray(F.mounted)||(F.mounted=[F.mounted]):F.mounted=[],F.mounted.push((function(){this.$el.setAttribute("data-v-cfad8df","")}));const W={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,r,n;const i=!!this.$slots.default,a=null==(e=this.$slots)?void 0:e.icon;!i&&!this.ariaLabel&&L.warn("You need to fill either the text or the ariaLabel props in the button component.",{text:null==(n=null==(r=this.$slots.default)?void 0:r[0])?void 0:n.text,ariaLabel:this.ariaLabel},this);const s=({navigate:e,isActive:r,isExactActive:n}={})=>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-${this.realType}`]:this.realType,"button-vue--wide":this.wide,[`button-vue--${this.flexAlignment}`]:"center"!==this.flexAlignment,"button-vue--reverse":this.isReverseAligned,active:r,"router-link-exact-active":n}],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":this.ariaHidden}},[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()}},$=k(W,null,null,!1,null,"f507b497",null,null).exports;function V(t,e,r,n,i,a,s,o){var u,l="function"==typeof t?t.options:t;if(e&&(l.render=e,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),a&&(l._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)},l._ssrRegister=u):i&&(u=o?function(){i.call(this,(l.functional?this.parent:this).$root.$options.shadowRoot)}:i),u)if(l.functional){l._injectStyles=u;var c=l.render;l.render=function(t,e){return u.call(e),c(t,e)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,u):[u]}return{exports:t,options:l}}const H=V({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,G={name:"CalendarAvailability",components:{NcDateTimePickerNative:z,NcButton:$,IconAdd:V({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:H},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 ${t}`},l10nEndPickerLabel:{type:Function,default:t=>`Pick a end time for ${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:r})=>{t[e]=r.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 r=new Date;r.setHours(17,0,0,0),t.slots.push({start:e,end:r}),this.onChangeSlots()},removeSlot(t,e){t.slots.splice(e,1),this.onChangeSlots()},onChangeSlots(){this.$emit("update:slots",this.internalDataToSlots())}}},Z=V(G,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"grid-table"},[t._l(t.internalSlots,(function(r){return[e("div",{key:`day-label-${r.id}`,staticClass:"label-weekday"},[e("span",[t._v(t._s(r.displayName))])]),e("div",{key:`day-slots-${r.id}`,staticClass:"availability-slots"},[e("div",{staticClass:"availability-slot-group"},[t._l(r.slots,(function(n,i){var a,s;return[e("div",{key:`slot-${r.id}-${i}`,staticClass:"availability-slot"},[e("NcDateTimePickerNative",{staticClass:"start-date",attrs:{id:`start-${r.id}-${i}`,type:"time",label:null==(a=t.l10nStartPickerLabel)?void 0:a.call(t,r.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:n.start,callback:function(e){t.$set(n,"start",e)},expression:"slot.start"}}),e("span",{staticClass:"to-text"},[t._v(" "+t._s(t.l10nTo)+" ")]),e("NcDateTimePickerNative",{staticClass:"end-date",attrs:{id:`end-${r.id}-${i}`,type:"time",label:null==(s=t.l10nEndPickerLabel)?void 0:s.call(t,r.displayName),"hide-label":!0},on:{change:t.onChangeSlots},model:{value:n.end,callback:function(e){t.$set(n,"end",e)},expression:"slot.end"}}),e("NcButton",{key:`slot-${r.id}-${i}-btn`,staticClass:"button",attrs:{type:"tertiary","aria-label":t.l10nDeleteSlot,title:t.l10nDeleteSlot},on:{click:function(e){return t.removeSlot(r,i)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconDelete",{attrs:{size:20}})]},proxy:!0}],null,!0)})],1)]}))],2),0===r.slots.length?e("span",{staticClass:"empty-content"},[t._v(" "+t._s(t.l10nEmptyDay)+" ")]):t._e()]),e("NcButton",{key:`add-slot-${r.id}`,staticClass:"add-another button",attrs:{disabled:t.loading,title:t.l10nAddSlot,"aria-label":t.l10nAddSlot},on:{click:function(e){return t.addSlot(r)}},scopedSlots:t._u([{key:"icon",fn:function(){return[e("IconAdd",{attrs:{size:20}})]},proxy:!0}],null,!0)})]}))],2)}),[],!1,null,"31358f1f",null,null).exports;var K=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},q={},X={};Object.defineProperty(X,"__esModule",{value:!0}),X.zonesMap=X.defaultStart=void 0,X.defaultStart="19700101T000000",X.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(q,"__esModule",{value:!0});var J=q.getZoneString=q.getZoneLines=void 0;const Q=X;function tt(t){const{n:e,f:r,t:n,r:i,s:a}=t;return[`TZNAME:${e}`,`TZOFFSETFROM:${r}`,`TZOFFSETTO:${n||r}`,`DTSTART:${a||Q.defaultStart}`,...i?[`RRULE:FREQ=${i.f||"YEARLY"};BYMONTH=${i.m};BYDAY=${i.d}`]:[]]}function et(t,e=!0){const r=Q.zonesMap.get(t);if(r){const{s:n,d:i}=r;return[...e?["BEGIN:VTIMEZONE"]:[],`TZID:${t}`,"BEGIN:STANDARD",...tt(n),"END:STANDARD",...i?["BEGIN:DAYLIGHT",...tt(i),"END:DAYLIGHT"]:[],...e?["END:VTIMEZONE"]:[]]}}q.getZoneLines=et,J=q.getZoneString=function(t,e=!0){const r=et(t,e);return null==r?void 0:r.join("\r\n")};var rt={exports:{}};!function(t){var e,r;(e=t.exports).foldLength=75,e.newLineChar="\r\n",e.helpers={updateTimezones:function(t){var r,n,i,a,s,o;if(!t||"vcalendar"!==t.name)return t;for(r=t.getAllSubcomponents(),n=[],i={},s=0;s<r.length;s++)"vtimezone"===r[s].name?i[o=r[s].getFirstProperty("tzid").getFirstValue()]=r[s]:n=n.concat(r[s].getAllProperties());for(a={},s=0;s<n.length;s++)(o=n[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 r=parseInt(t,10);if(e.helpers.isStrictlyNaN(r))throw new Error('Could not extract integer from "'+t+'"');return r},formatClassType:function(t,e){if(!(typeof t>"u"))return t instanceof e?t:new e(t)},unescapedIndexOf:function(t,e,r){for(;-1!==(r=t.indexOf(e,r));){if(!(r>0&&"\\"===t[r-1]))return r;r+=1}return-1},binsearchInsert:function(t,e,r){if(!t.length)return 0;for(var n,i,a=0,s=t.length-1;a<=s;)if((i=r(e,t[n=a+Math.floor((s-a)/2)]))<0)s=n-1;else{if(!(i>0))break;a=n+1}return i<0?n:i>0?n+1:n},dumpn:function(){e.debug&&(e.helpers.dumpn=typeof L<"u"&&"log"in L?function(t){L.log(t)}:function(t){dump(t+"\n")},e.helpers.dumpn(arguments[0]))},clone:function(t,r){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 n=[],i=0;i<t.length;i++)n.push(r?e.helpers.clone(t[i],!0):t[i]);return n}var a={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(a[s]=r?e.helpers.clone(t[s],!0):t[s]);return a},foldline:function(t){for(var r="",n=t||"",i=0,a=0;n.length;){var s=n.codePointAt(i);s<128?++a:a+=s<2048?2:s<65536?3:4,a<e.foldLength+1?i+=s>65535?2:1:(r+=e.newLineChar+" "+n.substring(0,i),n=n.substring(i),i=a=0)}return r.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,r,n){function i(){}i.prototype=t.prototype,r.prototype=new i,n&&e.helpers.extend(n,r.prototype)},extend:function(t,e){for(var r in t){var n=Object.getOwnPropertyDescriptor(t,r);n&&!Object.getOwnPropertyDescriptor(e,r)&&Object.defineProperty(e,r,n)}return e}},e.design=function(){var t=/\\\\|\\,|\\[Nn]/g,r=/\\|,|\n/g;function n(t,e){var r={matches:/.*/,fromICAL:function(e,r){return function(t,e,r){return-1===t.indexOf("\\")?t:(r&&(e=new RegExp(e.source+"|\\\\"+r)),t.replace(e,p))}(e,t,r)},toICAL:function(t,r){var n=e;return r&&(n=new RegExp(n.source+"|"+r)),t.replace(n,(function(t){switch(t){case"\\":return"\\\\";case";":return"\\;";case",":return"\\,";case"\n":return"\\n";default:return t}}))}};return r}var i={defaultType:"text"},a={defaultType:"text",multiValue:","},s={defaultType:"text",structuredValue:";"},o={defaultType:"integer"},u={defaultType:"date-time",allowedTypes:["date-time","date"]},l={defaultType:"date-time"},c={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:c,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 r=parseFloat(t);return e.helpers.isStrictlyNaN(r)?0:r},toICAL:function(t){return String(t)}},integer:{fromICAL:function(t){var r=parseInt(t);return e.helpers.isStrictlyNaN(r)?0:r},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:n(/\\\\|\\;|\\,|\\[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,r){return C.strict?e.Time.fromDateString(t,r):e.Time.fromString(t,r)},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 r=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]&&(r+="Z"),r}return t},decorate:function(t,r){return C.strict?e.Time.fromDateTimeString(t,r):e.Time.fromString(t,r)},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 r=t.split("/");return r[0]=v["date-time"].fromICAL(r[0]),e.Duration.isValueString(r[1])||(r[1]=v["date-time"].fromICAL(r[1])),r},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,r){return e.Period.fromJSON(t,r,!C.strict)},undecorate:function(t){return t.toJSON()}},recur:{fromICAL:function(t){return e.Recur._stringToData(t,!0)},toICAL:function(t){var r="";for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){var i=t[n];"until"==n?i=i.length>10?v["date-time"].toICAL(i):v.date.toICAL(i):"wkst"==n?"number"==typeof i&&(i=e.Recur.numericDayToIcalDay(i)):Array.isArray(i)&&(i=i.join(",")),r+=n.toUpperCase()+"="+i+";"}return r.substr(0,r.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:l,contact:i,created:l,description:i,dtend:u,dtstamp:l,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":l,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:c,tzid:i,tzname:i}),g=e.helpers.extend(y,{text:n(t,r),uri:n(t,r),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),r=e[0],n=e[1];return 6==n.length?n=n.substr(0,2)+":"+n.substr(2,2)+":"+n.substr(4,2):4==n.length&&"-"!=n[0]?n=n.substr(0,2)+":"+n.substr(2,2):5==n.length&&(n=n.substr(0,3)+":"+n.substr(3,2)),5==r.length&&("-"==r[0]||"+"==r[0])&&(r=r.substr(0,3)+":"+r.substr(3)),n+r},toICAL:function(t){var e=g.time._splitZone(t),r=e[0],n=e[1];return 8==n.length?n=n.substr(0,2)+n.substr(3,2)+n.substr(6,2):5==n.length&&"-"!=n[0]?n=n.substr(0,2)+n.substr(3,2):6==n.length&&(n=n.substr(0,3)+n.substr(4,2)),6==r.length&&("-"==r[0]||"+"==r[0])&&(r=r.substr(0,3)+r.substr(4)),n+r},_splitZone:function(t,e){var r,n,i=t.length-1,a=t.length-(e?5:6),s=t[a];return"Z"==t[i]?(r=t[i],n=t.substr(0,i)):t.length>6&&("-"==s||"+"==s)?(r=t.substr(a),n=t.substr(0,a)):(r="",n=t),[r,n]}},"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:c,caluri:c,clientpidmap:s,email:i,fburl:c,fn:i,gender:s,geo:c,impp:c,key:c,kind:i,lang:{defaultType:"language-tag"},logo:c,member:c,n:{defaultType:"text",structuredValue:";",multiValue:","},nickname:a,note:i,org:{defaultType:"text",structuredValue:";"},photo:c,related:c,rev:{defaultType:"timestamp"},role:i,sound:c,source:c,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",r="unknown",n=e.design,i=e.helpers;function a(e){"string"==typeof e[0]&&(e=[e]);for(var r=0,n=e.length,i="";r<n;r++)i+=a.component(e[r])+t;return i}a.component=function(e,r){var i=e[0].toUpperCase(),s="BEGIN:"+i+t,o=e[1],u=0,l=o.length,c=e[0];for("vcard"===c&&e[1].length>0&&!("version"===e[1][0][0]&&"4.0"===e[1][0][3])&&(c="vcard3"),r=r||n.getDesignSet(c);u<l;u++)s+=a.property(o[u],r)+t;for(var d=e[2]||[],f=0,h=d.length;f<h;f++)s+=a.component(d[f],r)+t;return s+"END:"+i},a.property=function(t,i,s){var o,u=t[0].toUpperCase(),l=t[0],c=t[1],d=u;for(o in c){var f=c[o];c.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=n.defaultSet);var p,m=!1,y=!1,v=!1;return l in i.property?("multiValue"in(p=i.property[l])&&(m=p.multiValue),"structuredValue"in p&&Array.isArray(t[3])&&(y=p.structuredValue),"defaultType"in p?h===p.defaultType&&(v=!0):h===r&&(v=!0)):h===r&&(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,r,n,i,s){for(var o="",u=t.length,l=0;l<u;l++)n&&Array.isArray(t[l])?o+=a.multiValue(t[l],n,r,null,i,s):o+=a.value(t[l],r,i,s),l!==u-1&&(o+=e);return o},a.value=function(t,e,r,n){return e in r.value&&"toICAL"in r.value[e]?r.value[e].toICAL(t,n):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]/,r=e.design,n=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={},r=e.component=[];if(e.stack=[r],a._eachLine(t,(function(t,r){a._handleContentLine(r,e)})),e.stack.length>1)throw new i("invalid ical body. component began but did not end");return e=null,1==r.length?r[0]:r}i.prototype=Error.prototype,a.property=function(t,e){var n={component:[[],[]],designSet:e||r.defaultSet};return a._handleContentLine(t,n),n.component[1][0]},a.component=function(t){return a(t)},a.ParserError=i,a._handleContentLine=function(t,e){var n,s,o,u,l,c=t.indexOf(":"),d=t.indexOf(";"),f={};if(-1!==d&&-1!==c&&d>c&&(d=-1),-1!==d){if(o=t.substring(0,d).toLowerCase(),-1==(l=a._parseParameters(t.substring(d),0,e.designSet))[2])throw new i("Invalid parameters in '"+t+"'");if(f=l[0],n=l[1].length+l[2]+d,-1===(s=t.substring(n).indexOf(":")))throw new i("Missing parameter value in '"+t+"'");u=t.substring(n+s+1)}else{if(-1===c)throw new i('invalid line (no token ";" or ":") "'+t+'"');if(o=t.substring(0,c).toLowerCase(),u=t.substring(c+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=r.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=r.getDesignSet("vcard3")),e.component[1].push(y)},a._parseValue=function(t,e,r,n){return e in r.value&&"fromICAL"in r.value[e]?r.value[e].fromICAL(t,n):t},a._parseParameters=function(t,e,r){for(var s,o,u,l,c,d,f=e,h=0,p={},m=-1;!1!==h&&-1!==(h=n.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,c=!1,l=(o=s.toLowerCase())in r.param&&r.param[o].valueType?r.param[o].valueType:"text",o in r.param&&(c=r.param[o].multiValue,r.param[o].multiValueSeparateDQuote&&(d=a._rfc6868Escape('"'+c+'"'))),'"'===t[h+1]){if(m=h+2,h=n.unescapedIndexOf(t,'"',m),c&&-1!=h)for(var y=!0;y;)t[h+1]==c&&'"'==t[h+2]?h=n.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=n.unescapedIndexOf(t,";",h))&&(h=!1)}else{m=h+1;var v=n.unescapedIndexOf(t,";",m),T=n.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),c){var g=d||c;u=a._parseMultiValue(u,g,l,[],null,r)}else u=a._parseValue(u,l,r);c&&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,r,i,s,o,u){var l,c=0,d=0;if(0===e.length)return t;for(;-1!==(c=n.unescapedIndexOf(t,e,d));)l=t.substr(d,c-d),l=s?a._parseMultiValue(l,s,r,[],null,o,u):a._parseValue(l,r,o,u),i.push(l),d=c+e.length;return l=t.substr(d),l=s?a._parseMultiValue(l,s,r,[],null,o,u):a._parseValue(l,r,o,u),i.push(l),1==i.length?i[0]:i},a._eachLine=function(e,r){var n,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?n+=e.substr(o+1,u-o-(a+1)):(n&&r(null,n),n=e.substr(o,u-o-a)),o=u}while(u!==s);(n=n.trim()).length&&r(null,n)},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 r=new t(this.jCal[2][e],this);return this._hydratedComponentCount++,this._components[e]=r},_hydrateProperty:function(t){if(this._properties||(this._properties=[],this._hydratedPropertyCount=0),this._properties[t])return this._properties[t];var r=new e.Property(this.jCal[1][t],this);return this._hydratedPropertyCount++,this._properties[t]=r},getFirstSubcomponent:function(t){if(t){for(var e=0,r=this.jCal[2],n=r.length;e<n;e++)if(r[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,r=0;if(t){for(var n=this.jCal[2],i=[];r<e;r++)t===n[r][0]&&i.push(this._hydrateComponent(r));return i}if(!this._components||this._hydratedComponentCount!==e)for(;r<e;r++)this._hydrateComponent(r);return this._components||[]},hasProperty:function(t){for(var e=this.jCal[1],r=e.length,n=0;n<r;n++)if(e[n][0]===t)return!0;return!1},getFirstProperty:function(t){if(t){for(var e=0,r=this.jCal[1],n=r.length;e<n;e++)if(r[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,r=0;if(t){for(var n=this.jCal[1],i=[];r<e;r++)t===n[r][0]&&i.push(this._hydrateProperty(r));return i}if(!this._properties||this._hydratedPropertyCount!==e)for(;r<e;r++)this._hydrateProperty(r);return this._properties||[]},_removeObjectByIndex:function(t,e,r){if((e=e||[])[r]){var n=e[r];"parent"in n&&(n.parent=null)}e.splice(r,1),this.jCal[t].splice(r,1)},_removeObject:function(t,e,r){var n=0,i=this.jCal[t],a=i.length,s=this[e];if("string"==typeof r){for(;n<a;n++)if(i[n][0]===r)return this._removeObjectByIndex(t,s,n),!0}else if(s)for(;n<a;n++)if(s[n]&&s[n]===r)return this._removeObjectByIndex(t,s,n),!0;return!1},_removeAllObjects:function(t,e,r){for(var n=this[e],i=this.jCal[t],a=i.length-1;a>=0;a--)(!r||i[a][0]===r)&&this._removeObjectByIndex(t,n,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 r=this.jCal[1].push(t.jCal);return this._properties[r-1]=t,this._hydratedPropertyCount++,t.parent=this,t},addPropertyWithValue:function(t,r){var n=new e.Property(t);return n.setValue(r),this.addProperty(n),n},updatePropertyWithValue:function(t,e){var r=this.getFirstProperty(t);return r?r.setValue(e):r=this.addPropertyWithValue(t,e),r},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(r){return new t(e.parse.component(r))},t}(),e.Property=function(){var t=e.design;function r(e,r){this._parent=r||null,"string"==typeof e?(this.jCal=[e,{},t.defaultType],this.jCal[2]=this.getDefaultType()):this.jCal=e,this._updateType()}return r.prototype={get type(){return this.jCal[2]},get name(){return this.jCal[0]},get parent(){return this._parent},set parent(e){var r=!this._parent||e&&e._designSet!=this._parent._designSet;return this._parent=e,this.type==t.defaultType&&r&&(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 r=t.toLowerCase();"string"==typeof e&&r in this._designSet.param&&"multiValue"in this._designSet.param[r]&&(e=[e]),this.jCal[1][t]=e},removeParameter:function(t){delete this.jCal[1][t]},getDefaultType:function(){var e=this.jCal[0],r=this._designSet;if(e in r.property){var n=r.property[e];if("defaultType"in n)return n.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,r=[];e<t;e++)r[e]=this._hydrateValue(e);return r},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,r=0;if(this.removeAllValues(),e>0&&"object"==typeof t[0]&&"icaltype"in t[0]&&this.resetType(t[0].icaltype),this.isDecorated)for(;r<e;r++)this._setDecoratedValue(t[r],r);else for(;r<e;r++)this.jCal[3+r]=t[r]},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)}},r.fromString=function(t,n){return new r(e.parse.property(t,n))},r}(),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 r=Math.abs(t);return this.factor=t<0?-1:1,this.hours=e.helpers.trunc(r/3600),r-=3600*this.hours,this.minutes=e.helpers.trunc(r/60),this},toSeconds:function(){return this.factor*(60*this.minutes+3600*this.hours)},compare:function(t){var e=this.toSeconds(),r=t.toSeconds();return(e>r)-(r>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 r={};return r.factor="+"===t[0]?1:-1,r.hours=e.helpers.strictParseInt(t.substr(1,2)),r.minutes=e.helpers.strictParseInt(t.substr(4,2)),new e.UtcOffset(r)},t.fromSeconds=function(e){var r=new t;return r.fromSeconds(e),r},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,r,n,i,a,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",o=0,u=0,l="",c=[];if(!t)return t;do{e=(a=t.charCodeAt(o++)<<16|t.charCodeAt(o++)<<8|t.charCodeAt(o++))>>18&63,r=a>>12&63,n=a>>6&63,i=63&a,c[u++]=s.charAt(e)+s.charAt(r)+s.charAt(n)+s.charAt(i)}while(o<t.length);l=c.join("");var d=t.length%3;return(d?l.slice(0,d-3):l)+"===".slice(d||3)},_b64_decode:function(t){var e,r,n,i,a,s,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,l=0,c=[];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,r=s>>8&255,n=255&s,c[l++]=64==i?String.fromCharCode(e):64==a?String.fromCharCode(e,r):String.fromCharCode(e,r,n)}while(u<t.length);return c.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,r){var n=t.split("/");if(2!==n.length)throw new Error('Invalid string value: "'+t+'" must contain a "/" char.');var i={start:e.Time.fromDateTimeString(n[0],r)},a=n[1];return e.Duration.isValueString(a)?i.duration=e.Duration.fromString(a):i.end=e.Time.fromDateTimeString(a,r),new e.Period(i)},e.Period.fromData=function(t){return new e.Period(t)},e.Period.fromJSON=function(t,r,n){function i(t,r){return n?e.Time.fromString(t,r):e.Time.fromDateTimeString(t,r)}return e.Duration.isValueString(t[1])?e.Period.fromData({start:i(t[0],r),duration:e.Duration.fromString(t[1])}):e.Period.fromData({start:i(t[0],r),end:i(t[1],r)})},function(){var t=/([PDWHMTS]{1,1})/;function r(t,r,n){var i;switch(t){case"P":n.isNegative=!(!r||"-"!==r);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(!r&&0!==r)throw new Error('invalid duration value: Missing number before "'+t+'"');var a=parseInt(r,10);if(e.helpers.isStrictlyNaN(a))throw new Error('invalid duration value: Invalid number "'+r+'" before "'+t+'"');n[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 r=Math.abs(t);return this.isNegative=t<0,this.days=e.helpers.trunc(r/86400),this.days%7==0?(this.weeks=this.days/7,this.days=0):this.weeks=0,r-=86400*(this.days+7*this.weeks),this.hours=e.helpers.trunc(r/3600),r-=3600*this.hours,this.minutes=e.helpers.trunc(r/60),r-=60*this.minutes,this.seconds=r,this},fromData:function(t){var e=["weeks","days","hours","minutes","seconds","isNegative"];for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];this[n]=t&&n in t?t[n]: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(),r=t.toSeconds();return(e>r)-(e<r)},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(n){for(var i=0,a=Object.create(null),s=0;-1!==(i=n.search(t));){var o=n[i],u=n.substr(0,i);n=n.substr(i+1),s+=r(o,u,a)}if(s<2)throw new Error('invalid duration value: Not enough duration components in "'+n+'"');return new e.Duration(a)},e.Duration.fromData=function(t){return new e.Duration(t)}}(),r=["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 n=e.parse(t.component);this.component=new e.Component(n)}else t.component instanceof e.Component?this.component=t.component:this.component=null;for(var i in r)if(r.hasOwnProperty(i)){var a=r[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 r={year:t.year,month:t.month,day:t.day,hour:t.hour,minute:t.minute,second:t.second},n=this._findNearbyChange(r),i=-1,a=1;;){var s=e.helpers.clone(this.changes[n],!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(r,s)>=0?i=n:a=-1,-1==a&&-1!=i)break;if((n+=a)<0)return 0;if(n>=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(r,u)<0){var l=this.changes[i-1];0!=o.is_daylight&&0==l.is_daylight&&(o=l)}}return o.utcOffset},_findNearbyChange:function(t){var r=e.helpers.binsearchInsert(this.changes,t,e.Timezone._compare_change_fn);return r>=this.changes.length?this.changes.length-1:r},_ensureCoverage:function(t){if(-1==e.Timezone._minimumExpansionYear){var r=e.Time.now();e.Timezone._minimumExpansionYear=r.year}var n=t;if(n<e.Timezone._minimumExpansionYear&&(n=e.Timezone._minimumExpansionYear),(n+=e.Timezone.EXTRA_COVERAGE)>e.Timezone.MAX_YEAR&&(n=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],n,this.changes);this.changes.sort(e.Timezone._compare_change_fn),this.expandedUntilYear=n}},_expandComponent:function(t,r,n){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 l in u)if(u.hasOwnProperty(l)){var c=u[l].getFirstValue();(i=o()).year=c.year,i.month=c.month,i.day=c.day,c.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=c.hour,i.minute=c.minute,i.second=c.second,c.zone!=e.Timezone.utcTimezone&&e.Timezone.adjust_change(i,0,0,0,-i.prevUtcOffset)),n.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>r)&&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),n.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),n.push(i);return n},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,r,n){if(t.isDate||r.tzid==n.tzid||r==e.Timezone.localTimezone||n==e.Timezone.localTimezone)return t.zone=n,t;var i=r.utcOffset(t);return t.adjust(0,0,0,-i),i=n.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,r,n,i,a){return e.Time.prototype.adjust.call(t,r,n,i,a,t)},e.Timezone._minimumExpansionYear=-1,e.Timezone.MAX_YEAR=2035,e.Timezone.EXTRA_COVERAGE=5,e.TimezoneService=function(){var t,r={get count(){return Object.keys(t).length},reset:function(){t=Object.create(null);var r=e.Timezone.utcTimezone;t.Z=r,t.UTC=r,t.GMT=r},has:function(e){return!!t[e]},get:function(e){return t[e]},register:function(r,n){if(r instanceof e.Component&&"vtimezone"===r.name&&(r=(n=new e.Timezone(r)).tzid),!(n instanceof e.Timezone))throw new TypeError("timezone must be ICAL.Timezone or ICAL.Component");t[r]=n},remove:function(e){return delete t[e]}};return r.reset(),r}(),e.Time=function(t,e){this.wrappedJSObject=this;var r=this._time=Object.create(null);r.year=0,r.month=1,r.day=1,r.hour=0,r.minute=0,r.second=0,r.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,r,n,i,a,s){this.fromData({year:t,month:e,day:r,hour:n,minute:i,second:a,zone:s})},fromJSDate:function(t,r){return t?r?(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,r){if(t)for(var n in t)if(Object.prototype.hasOwnProperty.call(t,n)){if("icaltype"===n)continue;this[n]=t[n]}if(r&&(this.zone=r),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 r=t||e.Time.SUNDAY,n=(this.year<<12)+(this.month<<8)+(this.day<<3)+r;if(n in e.Time._dowCache)return e.Time._dowCache[n];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-r)%7+1,e.Time._dowCache[n]=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 r=t||e.Time.SUNDAY,n=this.clone();return n.day-=(this.dayOfWeek()+7-r)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},endOfWeek:function(t){var r=t||e.Time.SUNDAY,n=this.clone();return n.day+=(7-this.dayOfWeek()+r-e.Time.SUNDAY)%7,n.isDate=!0,n.hour=0,n.minute=0,n.second=0,n},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 r=t||e.Time.SUNDAY,n=this.dayOfWeek()-r;return n<0&&(n+=7),this.dayOfYear()-n},getDominicalLetter:function(){return e.Time.getDominicalLetter(this.year)},nthWeekDay:function(t,r){var n,i=e.Time.daysInMonth(this.month,this.year),a=r,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,n=t}else o.day=i,a++,(n=o.dayOfWeek()-t)<0&&(n+=7),n=i-n;return s+(n+7*a)},isNthWeekDay:function(t,e){var r=this.dayOfWeek();return 0===e&&r===t||this.nthWeekDay(t,e)===this.day},weekNumber:function(t){var r=(this.year<<12)+(this.month<<8)+(this.day<<3)+t;if(r in e.Time._wnCache)return e.Time._wnCache[r];var n,i=this.clone();i.isDate=!0;var a=this.year;12==i.month&&i.day>25?(n=e.Time.weekOneStarts(a+1,t),i.compare(n)<0?n=e.Time.weekOneStarts(a,t):a++):(n=e.Time.weekOneStarts(a,t),i.compare(n)<0&&(n=e.Time.weekOneStarts(--a,t)));var s=i.subtractDate(n).toSeconds()/86400,o=e.helpers.trunc(s/7)+1;return e.Time._wnCache[r]=o,o},addDuration:function(t){var e=t.isNegative?-1:1,r=this.second,n=this.minute,i=this.hour,a=this.day;r+=e*t.seconds,n+=e*t.minutes,i+=e*t.hours,a+=e*t.days,a+=7*e*t.weeks,this.second=r,this.minute=n,this.hour=i,this.day=a,this._cachedUnixTime=null},subtractDate:function(t){var r=this.toUnixTime()+this.utcOffset(),n=t.toUnixTime()+t.utcOffset();return e.Duration.fromSeconds(r-n)},subtractDateTz:function(t){var r=this.toUnixTime(),n=t.toUnixTime();return e.Duration.fromSeconds(r-n)},compare:function(t){var e=this.toUnixTime(),r=t.toUnixTime();return e>r?1:r>e?-1:0},compareDateOnlyTz:function(t,r){function n(t){return e.Time._cmp_attr(i,a,t)}var i=this.convertToZone(r),a=t.convertToZone(r),s=0;return 0!=(s=n("year"))||0!=(s=n("month"))||(s=n("day")),s},convertToZone:function(t){var r=this.clone(),n=this.zone.tzid==t.tzid;return!this.isDate&&!n&&e.Timezone.convert_time(r,this.zone,t),r.zone=t,r},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,r,n,i,a){var s,o,u,l,c,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--),l=m.minute+n+s,m.minute=l%60,o=e.helpers.trunc(l/60),m.minute<0&&(m.minute+=60,o--),c=m.hour+r+o,m.hour=c%24,h=e.helpers.trunc(c/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 r=e.Time.epochTime.clone();r.adjust(0,0,0,t),this.year=r.year,this.month=r.month,this.day=r.day,this.hour=r.hour,this.minute=r.minute,this.second=Math.floor(r.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"],r=Object.create(null),n=0,i=e.length;n<i;n++)r[t=e[n]]=this[t];return this.zone&&(r.timezone=this.zone.tzid),r}},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,r){var n=30;return t<1||t>12||(n=[0,31,28,31,30,31,30,31,31,30,31,30,31][t],2==t&&(n+=e.Time.isLeapYear(r))),n},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,r){var n=r,i=t,a=new e.Time;a.auto_normalize=!1;var s=e.Time.isLeapYear(n)?1:0;if(i<1)return n--,s=e.Time.isLeapYear(n)?1:0,i+=e.Time.daysInYearPassedMonth[s][12],e.Time.fromDayOfYear(i,n);if(i>e.Time.daysInYearPassedMonth[s][12])return s=e.Time.isLeapYear(n)?1:0,i-=e.Time.daysInYearPassedMonth[s][12],n++,e.Time.fromDayOfYear(i,n);a.year=n,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,r){if(t.length<19)throw new Error('invalid date-time value: "'+t+'"');var n;return t[19]&&"Z"===t[19]?n="Z":r&&(n=r.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:n})},e.Time.fromString=function(t,r){return t.length>10?e.Time.fromDateTimeString(t,r):e.Time.fromDateString(t)},e.Time.fromJSDate=function(t,r){return(new e.Time).fromJSDate(t,r)},e.Time.fromData=function(t,r){return(new e.Time).fromData(t,r)},e.Time.now=function(){return e.Time.fromJSDate(new Date,!1)},e.Time.weekOneStarts=function(t,r){var n=e.Time.fromData({year:t,month:1,day:1,isDate:!0}),i=n.dayOfWeek(),a=r||e.Time.DEFAULT_WEEK_START;return i>e.Time.THURSDAY&&(n.day+=7),a>e.Time.THURSDAY&&(n.day-=7),n.day-=i-a,n},e.Time.getDominicalLetter=function(t){var r="GFEDCBA",n=(t+(t/4|0)+(t/400|0)-(t/100|0)-1)%7;return e.Time.isLeapYear(t)?r[(n+6)%7]+r[n]:r[n]},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,r){return t[r]>e[r]?1:t[r]<e[r]?-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,r){this.wrappedJSObject=this;var n=this._time=Object.create(null);n.year=null,n.month=null,n.day=null,n.hour=null,n.minute=null,n.second=null,this.icaltype=r||"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,r=e.helpers.pad2,n=this.year,i=this.month,a=this.day,s=this.hour,o=this.minute,u=this.second,l=null!==i,c=null!==a,d=null!==s,f=null!==o,h=null!==u,p=(null!==n?r(n)+(l||c?"-":""):l||c?"--":"")+(l?r(i):"")+(c?"-"+r(a):""),m=(d?r(s):"-")+(d&&f?":":"")+(f?r(o):"")+(d||f?"":"-")+(f&&h?":":"")+(h?r(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,r){function n(t,r,n){return t?e.helpers.strictParseInt(t.substr(r,n)):null}var i=t.split("T"),a=i[0],s=i[1],o=s?e.design.vcard.value.time._splitZone(s):[],u=o[0],l=o[1];e.helpers.strictParseInt;var c=a?a.length:0,d=l?l.length:0,f=a&&"-"==a[0]&&"-"==a[1],h=l&&"-"==l[0],p={year:f?null:n(a,0,4),month:!f||4!=c&&7!=c?7==c||10==c?n(a,5,2):null:n(a,2,2),day:5==c?n(a,3,2):7==c&&f?n(a,5,2):10==c?n(a,8,2):null,hour:h?null:n(l,0,2),minute:h&&3==d?n(l,1,2):d>4?n(l,h?1:3,2):null,second:4==d?n(l,2,2):6==d?n(l,4,2):8==d?n(l,6,2):null};return u="Z"==u?e.Timezone.utcTimezone:u&&":"==u[3]?e.UtcOffset.fromString(u):null,new e.VCardTime(p,u,r)},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},r={};for(var n in t)t.hasOwnProperty(n)&&(r[t[n]]=n);function i(t,r,n,i){var a=i;if("+"===i[0]&&(a=i.substr(1)),a=e.helpers.strictParseInt(a),void 0!==r&&i<r)throw new Error(t+': invalid value "'+i+'" must be > '+r);if(void 0!==n&&i>n)throw new Error(t+': invalid value "'+i+'" must be < '+r);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 r=t.toUpperCase();r in this.parts?this.parts[r].push(e):this.parts[r]=[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 r,n=this.iterator(t);do{r=n.next()}while(r&&r.compare(e)<=0);return r&&e.zone&&(r.zone=e.zone),r},fromData:function(t){for(var r in t){var n=r.toUpperCase();n in l?Array.isArray(t[r])?this.parts[n]=t[r]:this.parts[n]=[t[r]]:this[r]=t[r]}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 r in t.freq=this.freq,this.count&&(t.count=this.count),this.interval>1&&(t.interval=this.interval),this.parts)if(this.parts.hasOwnProperty(r)){var n=this.parts[r];Array.isArray(n)&&1==n.length?t[r.toLowerCase()]=n[0]:t[r.toLowerCase()]=e.helpers.clone(this.parts[r])}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 r in this.count&&(t+=";COUNT="+this.count),this.interval>1&&(t+=";INTERVAL="+this.interval),this.parts)this.parts.hasOwnProperty(r)&&(t+=";"+r+"="+this.parts[r]);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(r,n){var i=n||e.Time.SUNDAY;return(t[r]-i+7)%7+1},e.Recur.numericDayToIcalDay=function(t,n){var i=t+(n||e.Time.SUNDAY)-e.Time.SUNDAY;return i>7&&(i-=7),r[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,r){if(-1===o.indexOf(t))throw new Error('invalid frequency "'+t+'" expected: "'+o.join(", ")+'"');e.freq=t},COUNT:function(t,r,n){r.count=e.helpers.strictParseInt(t)},INTERVAL:function(t,r,n){r.interval=e.helpers.strictParseInt(t),r.interval<1&&(r.interval=1)},UNTIL:function(t,r,n){t.length>10?r.until=e.design.icalendar.value["date-time"].fromICAL(t):r.until=e.design.icalendar.value.date.fromICAL(t),n||(r.until=e.Time.fromString(r.until))},WKST:function(t,r,n){if(!a.test(t))throw new Error('invalid WKST value "'+t+'"');r.wkst=e.Recur.icalDayToNumericDay(t)}},l={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 r=e.Recur._stringToData(t,!1);return new e.Recur(r)},e.Recur.fromData=function(t){return new e.Recur(t)},e.Recur._stringToData=function(t,e){for(var r=Object.create(null),n=t.split(";"),i=n.length,a=0;a<i;a++){var s=n[a].split("="),o=s[0].toUpperCase(),c=s[0].toLowerCase(),d=e?c:o,f=s[1];if(o in l){for(var h=f.split(","),p=0,m=h.length;p<m;p++)h[p]=l[o](h[p]);r[d]=1==h.length?h[0]:h}else o in u?u[o](f,r,e):r[c]=f}return r}}(),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 r=(l=this.ruleDayOfWeek(t.BYDAY[0],this.rule.wkst))[0],n=(c=l[1])-this.last.dayOfWeek(this.rule.wkst);(this.last.dayOfWeek(this.rule.wkst)<c&&n>=0||n<0)&&(this.last.day+=n)}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(),r=(l=this.ruleDayOfWeek(this.by_data.BYDAY[u]))[0];var l,c=l[1],d=this.last.nthWeekDay(c,r);if(r>=6||r<=-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(c,r)}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,r,n){for(var i,a=e.Time.daysInMonth(r,t),s=[],o=0,u=n.length;o<u;o++)if(i=n[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 r,n,i,a,s=this.by_data.BYDAY,o=0,u=s.length,l=0,c=this,d=this.last.day;function f(){for(a=e.Time.daysInMonth(c.last.month,c.last.year),r=c.normalizeByMonthDayRules(c.last.year,c.last.month,c.by_data.BYMONTHDAY),i=r.length;r[o]<=d&&(!t||r[o]!=d)&&o<i-1;)o++}function h(){d=0,c.increment_month(),o=0,f()}f(),t&&(d-=1);for(var p=48;!l&&p;)if(p--,(n=d+1)>a)h();else{var m=r[o++];if(m>=n){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)){l=1;break}}l||o!==i||h()}else h()}if(p<=0)throw new Error("Malformed values in BYDAY combined with BYMONTHDAY parts");return l},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 r=e.Time.daysInMonth(this.last.month,this.last.year),n=0,i=0;if(this.has_by_data("BYSETPOS")){for(var a=this.last.day,s=1;s<=r;s++)this.last.day=s,this.is_day_in_byday(this.last)&&(i++,s<=a&&n++);this.last.day=a}for(t=0,s=this.last.day+1;s<=r;s++)if(this.last.day=s,this.is_day_in_byday(this.last)&&(!this.has_by_data("BYSETPOS")||this.check_set_position(++n)||this.check_set_position(n-i-1))){t=1;break}s>r&&(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()),r=e.Time.daysInMonth(this.last.month,this.last.year),(s=this.by_data.BYMONTHDAY[this.by_indices.BYMONTHDAY])<0&&(s=r+s+1),s>r?(this.last.day=1,t=this.is_day_in_byday(this.last)):this.last.day=s):(this.increment_month(),r=e.Time.daysInMonth(this.last.month,this.last.year),this.by_data.BYMONTHDAY[0]>r?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 r=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 n=this.by_data.BYDAY[this.by_indices.BYDAY],i=this.ruleDayOfWeek(n)[1];(i-=this.rule.wkst)<0&&(i+=7),r.year=this.last.year,r.month=this.last.month,r.day=this.last.day;var a=r.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],r=this.last.year;t<1&&(t+=1,r+=1);var n=e.Time.fromDayOfYear(t,r);this.last.day=n.day,this.last.month=n.month},ruleDayOfWeek:function(t,r){var n=t.match(/([+-]?[0-9])?(MO|TU|WE|TH|FR|SA|SU)/);return n?[parseInt(n[1]||0,10),t=e.Recur.icalDayToNumericDay(n[2],r)]:[0,0]},next_generic:function(t,e,r,n,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[r]=u[this.by_indices[t]]}else s&&this["increment_"+r](this.rule.interval);return a&&o&&s&&this["increment_"+n](1),o},increment_monthday:function(t){for(var r=0;r<t;r++){var n=e.Time.daysInMonth(this.last.month,this.last.year);this.last.day++,this.last.day>n&&(this.last.day-=n,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,r,n,i){this.last[r]+=t;var a=e.helpers.trunc(this.last[r]/n);this.last[r]%=n,0!=a&&this["increment_"+i](a)},has_by_data:function(t){return t in this.rule.parts},expand_year_days:function(t){var r=new e.Time;this.days=[];var n={},i=["BYDAY","BYWEEKNO","BYMONTHDAY","BYMONTH","BYYEARDAY"];for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];s in this.rule.parts&&(n[s]=this.rule.parts[s])}if("BYMONTH"in n&&"BYWEEKNO"in n){var o=1,u={};r.year=t,r.isDate=!0;for(var l=0;l<this.by_data.BYMONTH.length;l++){var c=this.by_data.BYMONTH[l];r.month=c,r.day=1;var d=r.weekNumber(this.rule.wkst);r.day=e.Time.daysInMonth(c,t);var f=r.weekNumber(this.rule.wkst);for(l=d;l<f;l++)u[l]=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 n.BYMONTH:delete n.BYWEEKNO}var p=Object.keys(n).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 n){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 n){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 n&&"BYMONTH"in n){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),r.day=S,r.month=A,r.year=t,r.isDate=!0,this.days.push(r.dayOfYear())}}}else if(!(1==p&&"BYWEEKNO"in n||2==p&&"BYWEEKNO"in n&&"BYMONTHDAY"in n))if(1==p&&"BYDAY"in n)this.days=this.days.concat(this.expand_by_day(t));else if(2==p&&"BYDAY"in n&&"BYMONTH"in n){for(var y in this.by_data.BYMONTH)if(this.by_data.BYMONTH.hasOwnProperty(y)){c=this.by_data.BYMONTH[y],b=e.Time.daysInMonth(c,t),r.year=t,r.month=this.by_data.BYMONTH[y],r.day=1,r.isDate=!0;var E=r.dayOfWeek(),_=r.dayOfYear()-1;r.day=b;var D=r.dayOfWeek();if(this.has_by_data("BYSETPOS")){for(var C=[],O=1;O<=b;O++)r.day=O,this.is_day_in_byday(r)&&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),M=U[0],L=U[1],P=(L+7-E)%7+1,Y=b-(D+7-L)%7;if(0==M)for(O=P;O<=b;O+=7)this.days.push(_+O);else M>0?(I=P+7*(M-1))<=b&&this.days.push(_+I):(I=Y+7*(M+1))>0&&this.days.push(_+I)}}this.days.sort((function(t,e){return t-e}))}else if(2==p&&"BYDAY"in n&&"BYMONTHDAY"in n){var k=this.expand_by_day(t);for(var R in k)if(k.hasOwnProperty(R)){O=k[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 n&&"BYMONTHDAY"in n&&"BYMONTH"in n)for(var R in k=this.expand_by_day(t))k.hasOwnProperty(R)&&(O=k[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 n&&"BYWEEKNO"in n){for(var R in k=this.expand_by_day(t))if(k.hasOwnProperty(R)){O=k[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 n&&"BYWEEKNO"in n&&"BYMONTHDAY"in n||(this.days=1==p&&"BYYEARDAY"in n?this.days.concat(this.by_data.BYYEARDAY):[]);return 0},expand_by_day:function(t){var e=[],r=this.last.clone();r.year=t,r.month=1,r.day=1,r.isDate=!0;var n=r.dayOfWeek();r.month=12,r.day=31,r.isDate=!0;var i=r.dayOfWeek(),a=r.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),l=u[0],c=u[1];if(0==l)for(var d=(c+7-n)%7+1;d<=a;d+=7)e.push(d);else if(l>0){var f;f=c>=n?c-n+1:c-n+8,e.push(f+7*(l-1))}else{var h;l=-l,h=c<=i?a-i+c:a-i+c-7,e.push(h-7*(l-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 r=this.by_data.BYDAY[e],n=this.ruleDayOfWeek(r),i=n[0],a=n[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 r=0;r<e;r++)if(this.ruleDayOfWeek(t[r],this.rule.wkst)[1]>this.ruleDayOfWeek(t[e],this.rule.wkst)[1]){var n=t[e];t[e]=t[r],t[r]=n}},check_contract_restriction:function(e,r){var n=t._indexMap[e],i=t._expandMap[this.rule.freq][n],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]==r){a=!0;break}}else a=!0;return a},check_contracting_rules:function(){var t=this.last.dayOfWeek(),r=this.last.weekNumber(this.rule.wkst),n=this.last.dayOfYear();return this.check_contract_restriction("BYSECOND",this.last.second)&&this.check_contract_restriction("BYMINUTE",this.last.minute)&&this.check_contract_restriction("BYHOUR",this.last.hour)&&this.check_contract_restriction("BYDAY",e.Recur.numericDayToIcalDay(t))&&this.check_contract_restriction("BYWEEKNO",r)&&this.check_contract_restriction("BYMONTHDAY",this.last.day)&&this.check_contract_restriction("BYMONTH",this.last.month)&&this.check_contract_restriction("BYYEARDAY",n)},setup_defaults:function(e,r,n){var i=t._indexMap[e];return t._expandMap[this.rule.freq][i]!=t.CONTRACT&&(e in this.by_data||(this.by_data[e]=[n]),this.rule.freq!=r)?this.by_data[e][0]:n},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 r(t,e){return t.compare(e)}function n(t){this.ruleDates=[],this.exDates=[],this.fromData(t)}return n.prototype={complete:!1,ruleIterators:null,ruleDates:null,exDates:null,ruleDateInc:0,exDateInc:0,exDate:null,ruleDate:null,dtstart:null,last:null,fromData:function(r){var n=e.helpers.formatClassType(r.dtstart,e.Time);if(!n)throw new Error(".dtstart (ICAL.Time) must be given");if(this.dtstart=n,r.component)this._init(r.component);else{if(this.last=t(r.last)||n.clone(),!r.ruleIterators)throw new Error(".ruleIterators or .component must be given");this.ruleIterators=r.ruleIterators.map((function(t){return e.helpers.formatClassType(t,e.RecurIterator)})),this.ruleDateInc=r.ruleDateInc,this.exDateInc=r.exDateInc,r.ruleDates&&(this.ruleDates=r.ruleDates.map(t),this.ruleDate=this.ruleDates[this.ruleDateInc]),r.exDates&&(this.exDates=r.exDates.map(t),this.exDate=this.exDates[this.exDateInc]),typeof r.complete<"u"&&(this.complete=r.complete)}},next:function(){for(var t,e,r,n=0;;){if(n++>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||((r=this.exDate.compare(this.last))<0&&this._nextExDay(),0!==r))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,n){function i(t){a=e.helpers.binsearchInsert(s,t,r),s.splice(a,0,t)}for(var a,s=[],o=t.getAllProperties(n),u=o.length,l=0;l<u;l++)o[l].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,r),this.ruleDate=this.ruleDates[this.ruleDateInc]),t.hasProperty("rrule"))for(var n,i=t.getAllProperties("rrule"),a=0,s=i.length;a<s;a++)n=i[a].getFirstValue().iterator(this.dtstart),this.ruleIterators.push(n),n.next();t.hasProperty("exdate")&&(this.exDates=this._extractDates(t,"exdate"),this.exDateInc=e.helpers.binsearchInsert(this.exDates,this.last,r),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,r,n,i=t.length,a=0;a<i;a++)r=(e=t[a]).last,e.completed?(i--,0!==a&&a--,t.splice(a,1)):(!n||n.last.compare(r)>0)&&(n=e);return n}},n}(),e.Event=function(){function t(t,r){t instanceof e.Component||(r=t,t=null),this.component=t||new e.Component("vevent"),this._rangeExceptionCache=Object.create(null),this.exceptions=Object.create(null),this.rangeExceptions=[],r&&r.strictExceptions&&(this.strictExceptions=r.strictExceptions),r&&r.exceptions?r.exceptions.forEach(this.relateException,this):this.component.parent&&!this.isRecurrenceException()&&this.component.parent.getAllSubcomponents("vevent").forEach((function(t){t.hasProperty("recurrence-id")&&this.relateException(t)}),this)}function r(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 n=t.recurrenceId.toString();if(this.exceptions[n]=t,t.modifiesFuture()){var i=[t.recurrenceId.toUnixTime(),n],a=e.helpers.binsearchInsert(this.rangeExceptions,i,r);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 n=t.toUnixTime(),i=e.helpers.binsearchInsert(this.rangeExceptions,[n],r);if((i-=1)<0)return null;var a=this.rangeExceptions[i];return n<a[0]?null:a[1]},getOccurrenceDetails:function(t){var r,n=t.toString(),i=t.convertToZone(e.Timezone.utcTimezone).toString(),a={recurrenceId:t};if(n in this.exceptions)r=a.item=this.exceptions[n],a.startDate=r.startDate,a.endDate=r.endDate,a.item=r;else if(i in this.exceptions)r=this.exceptions[i],a.startDate=r.startDate,a.endDate=r.endDate,a.item=r;else{var s,o=this.findRangeException(t);if(o){var u=this.exceptions[o];a.item=u;var l=this._rangeExceptionCache[o];if(!l){var c=u.recurrenceId.clone(),d=u.startDate.clone();c.zone=d.zone,l=d.subtractDate(c),this._rangeExceptionCache[o]=l}var f=t.clone();f.zone=u.startDate.zone,f.addDuration(l),(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,r=t.length,n=Object.create(null);e<r;e++)n[t[e].getFirstValue().freq]=!0;return n},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,r){var n=this.component.getFirstProperty(t);n||(n=new e.Property(t),this.component.addProperty(n)),r.zone===e.Timezone.localTimezone||r.zone===e.Timezone.utcTimezone?n.removeParameter("tzid"):n.setParameter("tzid",r.zone.tzid),n.setValue(r)},_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 r,n=t.getAllSubcomponents(),i=0,a=n.length;i<a;i++)switch(r=n[i],r.name){case"vtimezone":if(this.parseTimezone){var s=r.getFirstPropertyValue("tzid");s&&this.ontimezone(new e.Timezone({tzid:s,component:r}))}break;case"vevent":this.parseEvent&&this.onevent(new e.Event(r));break;default:continue}this.oncomplete()}},t}()}(rt);var nt=rt.exports;let it;const at=new Uint8Array(16);function st(){if(!it&&(it=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!it))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return it(at)}const ot=[];for(let t=0;t<256;++t)ot.push((t+256).toString(16).slice(1));const ut={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function lt(t,e,r){if(ut.randomUUID&&!e&&!t)return ut.randomUUID();const n=(t=t||{}).random||(t.rng||st)();if(n[6]=15&n[6]|64,n[8]=63&n[8]|128,e){r=r||0;for(let t=0;t<16;++t)e[r+t]=n[t];return e}return function(t,e=0){return ot[t[e+0]]+ot[t[e+1]]+ot[t[e+2]]+ot[t[e+3]]+"-"+ot[t[e+4]]+ot[t[e+5]]+"-"+ot[t[e+6]]+ot[t[e+7]]+"-"+ot[t[e+8]]+ot[t[e+9]]+"-"+ot[t[e+10]]+ot[t[e+11]]+ot[t[e+12]]+ot[t[e+13]]+ot[t[e+14]]+ot[t[e+15]]}(n)}var ct={},dt=function(t){return t&&t.Math===Math&&t},ft=dt("object"==typeof globalThis&&globalThis)||dt("object"==typeof window&&window)||dt("object"==typeof self&&self)||dt("object"==typeof K&&K)||function(){return this}()||K||Function("return this")(),ht={},pt=function(t){try{return!!t()}catch{return!0}},mt=!pt((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})),yt=!pt((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})),vt=yt,Tt=Function.prototype.call,gt=vt?Tt.bind(Tt):function(){return Tt.apply(Tt,arguments)},At={},bt={}.propertyIsEnumerable,St=Object.getOwnPropertyDescriptor,Et=St&&!bt.call({1:2},1);At.f=Et?function(t){var e=St(this,t);return!!e&&e.enumerable}:bt;var _t,Dt,Ct=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}},Ot=yt,wt=Function.prototype,xt=wt.call,It=Ot&&wt.bind.bind(xt,xt),Nt=Ot?It:function(t){return function(){return xt.apply(t,arguments)}},Ut=Nt,Mt=Ut({}.toString),Lt=Ut("".slice),Pt=function(t){return Lt(Mt(t),8,-1)},Yt=pt,kt=Pt,Rt=Object,Bt=Nt("".split),jt=Yt((function(){return!Rt("z").propertyIsEnumerable(0)}))?function(t){return"String"===kt(t)?Bt(t,""):Rt(t)}:Rt,zt=function(t){return null==t},Ft=zt,Wt=TypeError,$t=function(t){if(Ft(t))throw new Wt("Can't call method on "+t);return t},Vt=jt,Ht=$t,Gt=function(t){return Vt(Ht(t))},Zt="object"==typeof document&&document.all,Kt={all:Zt,IS_HTMLDDA:typeof Zt>"u"&&void 0!==Zt},qt=Kt.all,Xt=Kt.IS_HTMLDDA?function(t){return"function"==typeof t||t===qt}:function(t){return"function"==typeof t},Jt=Xt,Qt=Kt.all,te=Kt.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:Jt(t)||t===Qt}:function(t){return"object"==typeof t?null!==t:Jt(t)},ee=ft,re=Xt,ne=function(t,e){return arguments.length<2?function(t){return re(t)?t:void 0}(ee[t]):ee[t]&&ee[t][e]},ie=Nt({}.isPrototypeOf),ae=ft,se=typeof navigator<"u"&&String(navigator.userAgent)||"",oe=ae.process,ue=ae.Deno,le=oe&&oe.versions||ue&&ue.version,ce=le&&le.v8;ce&&(Dt=(_t=ce.split("."))[0]>0&&_t[0]<4?1:+(_t[0]+_t[1])),!Dt&&se&&(!(_t=se.match(/Edge\/(\d+)/))||_t[1]>=74)&&(_t=se.match(/Chrome\/(\d+)/))&&(Dt=+_t[1]);var de=Dt,fe=pt,he=ft.String,pe=!!Object.getOwnPropertySymbols&&!fe((function(){var t=Symbol("symbol detection");return!he(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&de&&de<41})),me=pe&&!Symbol.sham&&"symbol"==typeof Symbol.iterator,ye=ne,ve=Xt,Te=ie,ge=Object,Ae=me?function(t){return"symbol"==typeof t}:function(t){var e=ye("Symbol");return ve(e)&&Te(e.prototype,ge(t))},be=String,Se=function(t){try{return be(t)}catch{return"Object"}},Ee=Xt,_e=Se,De=TypeError,Ce=function(t){if(Ee(t))return t;throw new De(_e(t)+" is not a function")},Oe=Ce,we=zt,xe=gt,Ie=Xt,Ne=te,Ue=TypeError,Me=function(t,e){var r,n;if("string"===e&&Ie(r=t.toString)&&!Ne(n=xe(r,t))||Ie(r=t.valueOf)&&!Ne(n=xe(r,t))||"string"!==e&&Ie(r=t.toString)&&!Ne(n=xe(r,t)))return n;throw new Ue("Can't convert object to primitive value")},Le={exports:{}},Pe=ft,Ye=Object.defineProperty,ke=function(t,e){try{Ye(Pe,t,{value:e,configurable:!0,writable:!0})}catch{Pe[t]=e}return e},Re=ke,Be="__core-js_shared__",je=ft[Be]||Re(Be,{}),ze=je;(Le.exports=function(t,e){return ze[t]||(ze[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 Fe=Le.exports,We=$t,$e=Object,Ve=function(t){return $e(We(t))},He=Ve,Ge=Nt({}.hasOwnProperty),Ze=Object.hasOwn||function(t,e){return Ge(He(t),e)},Ke=Nt,qe=0,Xe=Math.random(),Je=Ke(1..toString),Qe=function(t){return"Symbol("+(void 0===t?"":t)+")_"+Je(++qe+Xe,36)},tr=Fe,er=Ze,rr=Qe,nr=pe,ir=me,ar=ft.Symbol,sr=tr("wks"),or=ir?ar.for||ar:ar&&ar.withoutSetter||rr,ur=function(t){return er(sr,t)||(sr[t]=nr&&er(ar,t)?ar[t]:or("Symbol."+t)),sr[t]},lr=gt,cr=te,dr=Ae,fr=Me,hr=TypeError,pr=ur("toPrimitive"),mr=function(t,e){if(!cr(t)||dr(t))return t;var r,n=function(t,e){var r=t[e];return we(r)?void 0:Oe(r)}(t,pr);if(n){if(void 0===e&&(e="default"),r=lr(n,t,e),!cr(r)||dr(r))return r;throw new hr("Can't convert object to primitive value")}return void 0===e&&(e="number"),fr(t,e)},yr=mr,vr=Ae,Tr=function(t){var e=yr(t,"string");return vr(e)?e:e+""},gr=te,Ar=ft.document,br=gr(Ar)&&gr(Ar.createElement),Sr=function(t){return br?Ar.createElement(t):{}},Er=Sr,_r=!mt&&!pt((function(){return 7!==Object.defineProperty(Er("div"),"a",{get:function(){return 7}}).a})),Dr=mt,Cr=gt,Or=At,wr=Ct,xr=Gt,Ir=Tr,Nr=Ze,Ur=_r,Mr=Object.getOwnPropertyDescriptor;ht.f=Dr?Mr:function(t,e){if(t=xr(t),e=Ir(e),Ur)try{return Mr(t,e)}catch{}if(Nr(t,e))return wr(!Cr(Or.f,t,e),t[e])};var Lr={},Pr=mt&&pt((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})),Yr=te,kr=String,Rr=TypeError,Br=function(t){if(Yr(t))return t;throw new Rr(kr(t)+" is not an object")},jr=mt,zr=_r,Fr=Pr,Wr=Br,$r=Tr,Vr=TypeError,Hr=Object.defineProperty,Gr=Object.getOwnPropertyDescriptor,Zr="enumerable",Kr="configurable",qr="writable";Lr.f=jr?Fr?function(t,e,r){if(Wr(t),e=$r(e),Wr(r),"function"==typeof t&&"prototype"===e&&"value"in r&&qr in r&&!r[qr]){var n=Gr(t,e);n&&n[qr]&&(t[e]=r.value,r={configurable:Kr in r?r[Kr]:n[Kr],enumerable:Zr in r?r[Zr]:n[Zr],writable:!1})}return Hr(t,e,r)}:Hr:function(t,e,r){if(Wr(t),e=$r(e),Wr(r),zr)try{return Hr(t,e,r)}catch{}if("get"in r||"set"in r)throw new Vr("Accessors not supported");return"value"in r&&(t[e]=r.value),t};var Xr=Lr,Jr=Ct,Qr=mt?function(t,e,r){return Xr.f(t,e,Jr(1,r))}:function(t,e,r){return t[e]=r,t},tn={exports:{}},en=mt,rn=Ze,nn=Function.prototype,an=en&&Object.getOwnPropertyDescriptor,sn=rn(nn,"name"),on={EXISTS:sn,PROPER:sn&&"something"===function(){}.name,CONFIGURABLE:sn&&(!en||en&&an(nn,"name").configurable)},un=Xt,ln=je,cn=Nt(Function.toString);un(ln.inspectSource)||(ln.inspectSource=function(t){return cn(t)});var dn,fn,hn,pn=ln.inspectSource,mn=Xt,yn=ft.WeakMap,vn=mn(yn)&&/native code/.test(String(yn)),Tn=Qe,gn=Fe("keys"),An=function(t){return gn[t]||(gn[t]=Tn(t))},bn={},Sn=vn,En=ft,_n=te,Dn=Qr,Cn=Ze,On=je,wn=An,xn=bn,In="Object already initialized",Nn=En.TypeError,Un=En.WeakMap;if(Sn||On.state){var Mn=On.state||(On.state=new Un);Mn.get=Mn.get,Mn.has=Mn.has,Mn.set=Mn.set,dn=function(t,e){if(Mn.has(t))throw new Nn(In);return e.facade=t,Mn.set(t,e),e},fn=function(t){return Mn.get(t)||{}},hn=function(t){return Mn.has(t)}}else{var Ln=wn("state");xn[Ln]=!0,dn=function(t,e){if(Cn(t,Ln))throw new Nn(In);return e.facade=t,Dn(t,Ln,e),e},fn=function(t){return Cn(t,Ln)?t[Ln]:{}},hn=function(t){return Cn(t,Ln)}}var Pn={set:dn,get:fn,has:hn,enforce:function(t){return hn(t)?fn(t):dn(t,{})},getterFor:function(t){return function(e){var r;if(!_n(e)||(r=fn(e)).type!==t)throw new Nn("Incompatible receiver, "+t+" required");return r}}},Yn=Nt,kn=pt,Rn=Xt,Bn=Ze,jn=mt,zn=on.CONFIGURABLE,Fn=pn,Wn=Pn.enforce,$n=Pn.get,Vn=String,Hn=Object.defineProperty,Gn=Yn("".slice),Zn=Yn("".replace),Kn=Yn([].join),qn=jn&&!kn((function(){return 8!==Hn((function(){}),"length",{value:8}).length})),Xn=String(String).split("String"),Jn=tn.exports=function(t,e,r){"Symbol("===Gn(Vn(e),0,7)&&(e="["+Zn(Vn(e),/^Symbol\(([^)]*)\)/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Bn(t,"name")||zn&&t.name!==e)&&(jn?Hn(t,"name",{value:e,configurable:!0}):t.name=e),qn&&r&&Bn(r,"arity")&&t.length!==r.arity&&Hn(t,"length",{value:r.arity});try{r&&Bn(r,"constructor")&&r.constructor?jn&&Hn(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch{}var n=Wn(t);return Bn(n,"source")||(n.source=Kn(Xn,"string"==typeof e?e:"")),t};Function.prototype.toString=Jn((function(){return Rn(this)&&$n(this).source||Fn(this)}),"toString");var Qn=tn.exports,ti=Xt,ei=Lr,ri=Qn,ni=ke,ii=function(t,e,r,n){n||(n={});var i=n.enumerable,a=void 0!==n.name?n.name:e;if(ti(r)&&ri(r,a,n),n.global)i?t[e]=r:ni(e,r);else{try{n.unsafe?t[e]&&(i=!0):delete t[e]}catch{}i?t[e]=r:ei.f(t,e,{value:r,enumerable:!1,configurable:!n.nonConfigurable,writable:!n.nonWritable})}return t},ai={},si=Math.ceil,oi=Math.floor,ui=Math.trunc||function(t){var e=+t;return(e>0?oi:si)(e)},li=function(t){var e=+t;return e!=e||0===e?0:ui(e)},ci=li,di=Math.max,fi=Math.min,hi=function(t,e){var r=ci(t);return r<0?di(r+e,0):fi(r,e)},pi=li,mi=Math.min,yi=function(t){return function(t){return t>0?mi(pi(t),9007199254740991):0}(t.length)},vi=Gt,Ti=hi,gi=yi,Ai=function(t){return function(e,r,n){var i,a=vi(e),s=gi(a),o=Ti(n,s);if(t&&r!=r){for(;s>o;)if((i=a[o++])!=i)return!0}else for(;s>o;o++)if((t||o in a)&&a[o]===r)return t||o||0;return!t&&-1}},bi={includes:Ai(!0),indexOf:Ai(!1)},Si=Ze,Ei=Gt,_i=bi.indexOf,Di=bn,Ci=Nt([].push),Oi=function(t,e){var r,n=Ei(t),i=0,a=[];for(r in n)!Si(Di,r)&&Si(n,r)&&Ci(a,r);for(;e.length>i;)Si(n,r=e[i++])&&(~_i(a,r)||Ci(a,r));return a},wi=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"],xi=Oi,Ii=wi.concat("length","prototype");ai.f=Object.getOwnPropertyNames||function(t){return xi(t,Ii)};var Ni={};Ni.f=Object.getOwnPropertySymbols;var Ui=ne,Mi=ai,Li=Ni,Pi=Br,Yi=Nt([].concat),ki=Ui("Reflect","ownKeys")||function(t){var e=Mi.f(Pi(t)),r=Li.f;return r?Yi(e,r(t)):e},Ri=Ze,Bi=ki,ji=ht,zi=Lr,Fi=function(t,e,r){for(var n=Bi(e),i=zi.f,a=ji.f,s=0;s<n.length;s++){var o=n[s];!Ri(t,o)&&(!r||!Ri(r,o))&&i(t,o,a(e,o))}},Wi=pt,$i=Xt,Vi=/#|\.prototype\./,Hi=function(t,e){var r=Zi[Gi(t)];return r===qi||r!==Ki&&($i(e)?Wi(e):!!e)},Gi=Hi.normalize=function(t){return String(t).replace(Vi,".").toLowerCase()},Zi=Hi.data={},Ki=Hi.NATIVE="N",qi=Hi.POLYFILL="P",Xi=Hi,Ji=ft,Qi=ht.f,ta=Qr,ea=ii,ra=ke,na=Fi,ia=Xi,aa=function(t,e){var r,n,i,a,s,o=t.target,u=t.global,l=t.stat;if(r=u?Ji:l?Ji[o]||ra(o,{}):(Ji[o]||{}).prototype)for(n in e){if(a=e[n],i=t.dontCallGetSet?(s=Qi(r,n))&&s.value:r[n],!ia(u?n:o+(l?".":"#")+n,t.forced)&&void 0!==i){if(typeof a==typeof i)continue;na(a,i)}(t.sham||i&&i.sham)&&ta(a,"sham",!0),ea(r,n,a,t)}},sa=aa,oa=mt,ua=Lr.f;sa({target:"Object",stat:!0,forced:Object.defineProperty!==ua,sham:!oa},{defineProperty:ua});var la={},ca=ft,da={},fa=ur;da.f=fa;var ha=ca,pa=Ze,ma=da,ya=Lr.f,va=function(t){var e=ha.Symbol||(ha.Symbol={});pa(e,t)||ya(e,t,{value:ma.f(t)})};va("iterator");var Ta={},ga=Oi,Aa=wi,ba=Object.keys||function(t){return ga(t,Aa)},Sa=mt,Ea=Pr,_a=Lr,Da=Br,Ca=Gt,Oa=ba;Ta.f=Sa&&!Ea?Object.defineProperties:function(t,e){Da(t);for(var r,n=Ca(e),i=Oa(e),a=i.length,s=0;a>s;)_a.f(t,r=i[s++],n[r]);return t};var wa,xa=ne("document","documentElement"),Ia=Br,Na=Ta,Ua=wi,Ma=bn,La=xa,Pa=Sr,Ya="prototype",ka="script",Ra=An("IE_PROTO"),Ba=function(){},ja=function(t){return"<"+ka+">"+t+"</"+ka+">"},za=function(t){t.write(ja("")),t.close();var e=t.parentWindow.Object;return t=null,e},Fa=function(){try{wa=new ActiveXObject("htmlfile")}catch{}Fa=typeof document<"u"?document.domain&&wa?za(wa):function(){var t,e=Pa("iframe"),r="java"+ka+":";return e.style.display="none",La.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(ja("document.F=Object")),t.close(),t.F}():za(wa);for(var t=Ua.length;t--;)delete Fa[Ya][Ua[t]];return Fa()};Ma[Ra]=!0;var Wa=Object.create||function(t,e){var r;return null!==t?(Ba[Ya]=Ia(t),r=new Ba,Ba[Ya]=null,r[Ra]=t):r=Fa(),void 0===e?r:Na.f(r,e)},$a=ur,Va=Wa,Ha=Lr.f,Ga=$a("unscopables"),Za=Array.prototype;void 0===Za[Ga]&&Ha(Za,Ga,{configurable:!0,value:Va(null)});var Ka,qa,Xa,Ja={},Qa=!pt((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})),ts=Ze,es=Xt,rs=Ve,ns=Qa,is=An("IE_PROTO"),as=Object,ss=as.prototype,os=ns?as.getPrototypeOf:function(t){var e=rs(t);if(ts(e,is))return e[is];var r=e.constructor;return es(r)&&e instanceof r?r.prototype:e instanceof as?ss:null},us=pt,ls=Xt,cs=te,ds=os,fs=ii,hs=ur("iterator"),ps=!1;[].keys&&("next"in(Xa=[].keys())?(qa=ds(ds(Xa)))!==Object.prototype&&(Ka=qa):ps=!0);var ms=!cs(Ka)||us((function(){var t={};return Ka[hs].call(t)!==t}));ms&&(Ka={}),ls(Ka[hs])||fs(Ka,hs,(function(){return this}));var ys={IteratorPrototype:Ka,BUGGY_SAFARI_ITERATORS:ps},vs=Lr.f,Ts=Ze,gs=ur("toStringTag"),As=function(t,e,r){t&&!r&&(t=t.prototype),t&&!Ts(t,gs)&&vs(t,gs,{configurable:!0,value:e})},bs=ys.IteratorPrototype,Ss=Wa,Es=Ct,_s=As,Ds=Ja,Cs=function(){return this},Os=Nt,ws=Ce,xs=Xt,Is=String,Ns=TypeError,Us=Br,Ms=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=function(t,e,r){try{return Os(ws(Object.getOwnPropertyDescriptor(t,e)[r]))}catch{}}(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch{}return function(r,n){return Us(r),function(t){if("object"==typeof t||xs(t))return t;throw new Ns("Can't set "+Is(t)+" as a prototype")}(n),e?t(r,n):r.__proto__=n,r}}():void 0),Ls=aa,Ps=gt,Ys=Xt,ks=os,Rs=Ms,Bs=As,js=Qr,zs=ii,Fs=Ja,Ws=on.PROPER,$s=on.CONFIGURABLE,Vs=ys.IteratorPrototype,Hs=ys.BUGGY_SAFARI_ITERATORS,Gs=ur("iterator"),Zs="keys",Ks="values",qs="entries",Xs=function(){return this},Js=function(t,e,r,n,i,a,s){!function(t,e,r,n){var i=e+" Iterator";t.prototype=Ss(bs,{next:Es(+!n,r)}),_s(t,i,!1),Ds[i]=Cs}(r,e,n);var o,u,l,c=function(t){if(t===i&&m)return m;if(!Hs&&t&&t in h)return h[t];switch(t){case Zs:case Ks:case qs:return function(){return new r(this,t)}}return function(){return new r(this)}},d=e+" Iterator",f=!1,h=t.prototype,p=h[Gs]||h["@@iterator"]||i&&h[i],m=!Hs&&p||c(i),y="Array"===e&&h.entries||p;if(y&&(o=ks(y.call(new t)))!==Object.prototype&&o.next&&(ks(o)!==Vs&&(Rs?Rs(o,Vs):Ys(o[Gs])||zs(o,Gs,Xs)),Bs(o,d,!0)),Ws&&i===Ks&&p&&p.name!==Ks&&($s?js(h,"name",Ks):(f=!0,m=function(){return Ps(p,this)})),i)if(u={values:c(Ks),keys:a?m:c(Zs),entries:c(qs)},s)for(l in u)(Hs||f||!(l in h))&&zs(h,l,u[l]);else Ls({target:e,proto:!0,forced:Hs||f},u);return h[Gs]!==m&&zs(h,Gs,m,{name:i}),Fs[e]=m,u},Qs=function(t,e){return{value:t,done:e}},to=Gt,eo=function(t){Za[Ga][t]=!0},ro=Ja,no=Pn,io=Lr.f,ao=Js,so=Qs,oo=mt,uo="Array Iterator",lo=no.set,co=no.getterFor(uo),fo=ao(Array,"Array",(function(t,e){lo(this,{type:uo,target:to(t),index:0,kind:e})}),(function(){var t=co(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,so(void 0,!0);switch(r){case"keys":return so(n,!1);case"values":return so(e[n],!1)}return so([n,e[n]],!1)}),"values"),ho=ro.Arguments=ro.Array;if(eo("keys"),eo("values"),eo("entries"),oo&&"values"!==ho.name)try{io(ho,"name",{value:"values"})}catch{}var po={};po[ur("toStringTag")]="z";var mo="[object z]"===String(po),yo=mo,vo=Xt,To=Pt,go=ur("toStringTag"),Ao=Object,bo="Arguments"===To(function(){return arguments}()),So=yo?To:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch{}}(e=Ao(t),go))?r:bo?To(e):"Object"===(n=To(e))&&vo(e.callee)?"Arguments":n},Eo=So,_o=String,Do=function(t){if("Symbol"===Eo(t))throw new TypeError("Cannot convert a Symbol value to a string");return _o(t)},Co=Nt,Oo=li,wo=Do,xo=$t,Io=Co("".charAt),No=Co("".charCodeAt),Uo=Co("".slice),Mo=function(t){return function(e,r){var n,i,a=wo(xo(e)),s=Oo(r),o=a.length;return s<0||s>=o?t?"":void 0:(n=No(a,s))<55296||n>56319||s+1===o||(i=No(a,s+1))<56320||i>57343?t?Io(a,s):n:t?Uo(a,s,s+2):i-56320+(n-55296<<10)+65536}},Lo=(Mo(!1),Mo(!0)),Po=Do,Yo=Pn,ko=Js,Ro=Qs,Bo="String Iterator",jo=Yo.set,zo=Yo.getterFor(Bo);ko(String,"String",(function(t){jo(this,{type:Bo,string:Po(t),index:0})}),(function(){var t,e=zo(this),r=e.string,n=e.index;return n>=r.length?Ro(void 0,!0):(t=Lo(r,n),e.index+=t.length,Ro(t,!1))}));var Fo=Sr("span").classList,Wo=Fo&&Fo.constructor&&Fo.constructor.prototype,$o=Wo===Object.prototype?void 0:Wo,Vo=ft,Ho={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},Go=$o,Zo=fo,Ko=Qr,qo=ur,Xo=qo("iterator"),Jo=qo("toStringTag"),Qo=Zo.values,tu=function(t,e){if(t){if(t[Xo]!==Qo)try{Ko(t,Xo,Qo)}catch{t[Xo]=Qo}if(t[Jo]||Ko(t,Jo,e),Ho[e])for(var r in Zo)if(t[r]!==Zo[r])try{Ko(t,r,Zo[r])}catch{t[r]=Zo[r]}}};for(var eu in Ho)tu(Vo[eu]&&Vo[eu].prototype,eu);tu(Go,"DOMTokenList");var ru=mt,nu=Nt,iu=gt,au=pt,su=ba,ou=Ni,uu=At,lu=Ve,cu=jt,du=Object.assign,fu=Object.defineProperty,hu=nu([].concat),pu=!du||au((function(){if(ru&&1!==du({b:1},du(fu({},"a",{enumerable:!0,get:function(){fu(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},e={},r=Symbol("assign detection"),n="abcdefghijklmnopqrst";return t[r]=7,n.split("").forEach((function(t){e[t]=t})),7!==du({},t)[r]||su(du({},e)).join("")!==n}))?function(t,e){for(var r=lu(t),n=arguments.length,i=1,a=ou.f,s=uu.f;n>i;)for(var o,u=cu(arguments[i++]),l=a?hu(su(u),a(u)):su(u),c=l.length,d=0;c>d;)o=l[d++],(!ru||iu(s,u,o))&&(r[o]=u[o]);return r}:du,mu=pu;aa({target:"Object",stat:!0,arity:2,forced:Object.assign!==mu},{assign:mu});var yu=gt,vu=ne,Tu=ur,gu=ii,Au=function(){var t=vu("Symbol"),e=t&&t.prototype,r=e&&e.valueOf,n=Tu("toPrimitive");e&&!e[n]&&gu(e,n,(function(t){return yu(r,this)}),{arity:1})},bu=Au;va("toPrimitive"),bu();var Su=Br,Eu=Me,_u=TypeError,Du=Ze,Cu=ii,Ou=ur("toPrimitive"),wu=Date.prototype;Du(wu,Ou)||Cu(wu,Ou,(function(t){if(Su(this),"string"===t||"default"===t)t="string";else if("number"!==t)throw new _u("Incorrect hint");return Eu(this,t)}));var xu={},Iu=Tr,Nu=Lr,Uu=Ct,Mu=hi,Lu=yi,Pu=function(t,e,r){var n=Iu(e);n in t?Nu.f(t,n,Uu(0,r)):t[n]=r},Yu=Array,ku=Math.max,Ru=Pt,Bu=Gt,ju=ai.f,zu="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];xu.f=function(t){return zu&&"Window"===Ru(t)?function(t){try{return ju(t)}catch{return function(t,e,r){for(var n=Lu(t),i=Mu(e,n),a=Mu(void 0===r?n:r,n),s=Yu(ku(a-i,0)),o=0;i<a;i++,o++)Pu(s,o,t[i]);return s.length=o,s}(zu)}}(t):ju(Bu(t))};var Fu=Qn,Wu=Lr,$u=function(t,e,r){return r.get&&Fu(r.get,e,{getter:!0}),r.set&&Fu(r.set,e,{setter:!0}),Wu.f(t,e,r)},Vu=Pt,Hu=Nt,Gu=function(t){if("Function"===Vu(t))return Hu(t)},Zu=Ce,Ku=yt,qu=Gu(Gu.bind),Xu=Pt,Ju=Array.isArray||function(t){return"Array"===Xu(t)},Qu=Nt,tl=pt,el=Xt,rl=So,nl=pn,il=function(){},al=[],sl=ne("Reflect","construct"),ol=/^\s*(?:class|function)\b/,ul=Qu(ol.exec),ll=!ol.test(il),cl=function(t){if(!el(t))return!1;try{return sl(il,al,t),!0}catch{return!1}},dl=function(t){if(!el(t))return!1;switch(rl(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return ll||!!ul(ol,nl(t))}catch{return!0}};dl.sham=!0;var fl=!sl||tl((function(){var t;return cl(cl.call)||!cl(Object)||!cl((function(){t=!0}))||t}))?dl:cl,hl=Ju,pl=fl,ml=te,yl=ur("species"),vl=Array,Tl=jt,gl=Ve,Al=yi,bl=function(t,e){return new(function(t){var e;return hl(t)&&(e=t.constructor,(pl(e)&&(e===vl||hl(e.prototype))||ml(e)&&null===(e=e[yl]))&&(e=void 0)),void 0===e?vl:e}(t))(0===e?0:e)},Sl=Nt([].push),El=function(t){var e=1===t,r=2===t,n=3===t,i=4===t,a=6===t,s=7===t,o=5===t||a;return function(u,l,c,d){for(var f,h,p=gl(u),m=Tl(p),y=function(t,e){return Zu(t),void 0===e?t:Ku?qu(t,e):function(){return t.apply(e,arguments)}}(l,c),v=Al(m),T=0,g=d||bl,A=e?g(u,v):r||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:Sl(A,f)}else switch(t){case 4:return!1;case 7:Sl(A,f)}return a?-1:n||i?i:A}},_l={forEach:El(0),map:El(1),filter:El(2),some:El(3),every:El(4),find:El(5),findIndex:El(6),filterReject:El(7)},Dl=aa,Cl=ft,Ol=gt,wl=Nt,xl=mt,Il=pe,Nl=pt,Ul=Ze,Ml=ie,Ll=Br,Pl=Gt,Yl=Tr,kl=Do,Rl=Ct,Bl=Wa,jl=ba,zl=ai,Fl=xu,Wl=Ni,$l=ht,Vl=Lr,Hl=Ta,Gl=At,Zl=ii,Kl=$u,ql=Fe,Xl=bn,Jl=Qe,Ql=ur,tc=da,ec=va,rc=Au,nc=As,ic=Pn,ac=_l.forEach,sc=An("hidden"),oc="Symbol",uc="prototype",lc=ic.set,cc=ic.getterFor(oc),dc=Object[uc],fc=Cl.Symbol,hc=fc&&fc[uc],pc=Cl.RangeError,mc=Cl.TypeError,yc=Cl.QObject,vc=$l.f,Tc=Vl.f,gc=Fl.f,Ac=Gl.f,bc=wl([].push),Sc=ql("symbols"),Ec=ql("op-symbols"),_c=ql("wks"),Dc=!yc||!yc[uc]||!yc[uc].findChild,Cc=function(t,e,r){var n=vc(dc,e);n&&delete dc[e],Tc(t,e,r),n&&t!==dc&&Tc(dc,e,n)},Oc=xl&&Nl((function(){return 7!==Bl(Tc({},"a",{get:function(){return Tc(this,"a",{value:7}).a}})).a}))?Cc:Tc,wc=function(t,e){var r=Sc[t]=Bl(hc);return lc(r,{type:oc,tag:t,description:e}),xl||(r.description=e),r},xc=function(t,e,r){t===dc&&xc(Ec,e,r),Ll(t);var n=Yl(e);return Ll(r),Ul(Sc,n)?(r.enumerable?(Ul(t,sc)&&t[sc][n]&&(t[sc][n]=!1),r=Bl(r,{enumerable:Rl(0,!1)})):(Ul(t,sc)||Tc(t,sc,Rl(1,{})),t[sc][n]=!0),Oc(t,n,r)):Tc(t,n,r)},Ic=function(t,e){Ll(t);var r=Pl(e),n=jl(r).concat(Lc(r));return ac(n,(function(e){(!xl||Ol(Nc,r,e))&&xc(t,e,r[e])})),t},Nc=function(t){var e=Yl(t),r=Ol(Ac,this,e);return!(this===dc&&Ul(Sc,e)&&!Ul(Ec,e))&&(!(r||!Ul(this,e)||!Ul(Sc,e)||Ul(this,sc)&&this[sc][e])||r)},Uc=function(t,e){var r=Pl(t),n=Yl(e);if(r!==dc||!Ul(Sc,n)||Ul(Ec,n)){var i=vc(r,n);return i&&Ul(Sc,n)&&!(Ul(r,sc)&&r[sc][n])&&(i.enumerable=!0),i}},Mc=function(t){var e=gc(Pl(t)),r=[];return ac(e,(function(t){!Ul(Sc,t)&&!Ul(Xl,t)&&bc(r,t)})),r},Lc=function(t){var e=t===dc,r=gc(e?Ec:Pl(t)),n=[];return ac(r,(function(t){Ul(Sc,t)&&(!e||Ul(dc,t))&&bc(n,Sc[t])})),n};Il||(Zl(hc=(fc=function(){if(Ml(hc,this))throw new mc("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?kl(arguments[0]):void 0,e=Jl(t),r=function(t){this===dc&&Ol(r,Ec,t),Ul(this,sc)&&Ul(this[sc],e)&&(this[sc][e]=!1);var n=Rl(1,t);try{Oc(this,e,n)}catch(t){if(!(t instanceof pc))throw t;Cc(this,e,n)}};return xl&&Dc&&Oc(dc,e,{configurable:!0,set:r}),wc(e,t)})[uc],"toString",(function(){return cc(this).tag})),Zl(fc,"withoutSetter",(function(t){return wc(Jl(t),t)})),Gl.f=Nc,Vl.f=xc,Hl.f=Ic,$l.f=Uc,zl.f=Fl.f=Mc,Wl.f=Lc,tc.f=function(t){return wc(Ql(t),t)},xl&&(Kl(hc,"description",{configurable:!0,get:function(){return cc(this).description}}),Zl(dc,"propertyIsEnumerable",Nc,{unsafe:!0}))),Dl({global:!0,constructor:!0,wrap:!0,forced:!Il,sham:!Il},{Symbol:fc}),ac(jl(_c),(function(t){ec(t)})),Dl({target:oc,stat:!0,forced:!Il},{useSetter:function(){Dc=!0},useSimple:function(){Dc=!1}}),Dl({target:"Object",stat:!0,forced:!Il,sham:!xl},{create:function(t,e){return void 0===e?Bl(t):Ic(Bl(t),e)},defineProperty:xc,defineProperties:Ic,getOwnPropertyDescriptor:Uc}),Dl({target:"Object",stat:!0,forced:!Il},{getOwnPropertyNames:Mc}),rc(),nc(fc,oc),Xl[sc]=!0;var Pc=pe&&!!Symbol.for&&!!Symbol.keyFor,Yc=aa,kc=ne,Rc=Ze,Bc=Do,jc=Fe,zc=Pc,Fc=jc("string-to-symbol-registry"),Wc=jc("symbol-to-string-registry");Yc({target:"Symbol",stat:!0,forced:!zc},{for:function(t){var e=Bc(t);if(Rc(Fc,e))return Fc[e];var r=kc("Symbol")(e);return Fc[e]=r,Wc[r]=e,r}});var $c=aa,Vc=Ze,Hc=Ae,Gc=Se,Zc=Pc,Kc=Fe("symbol-to-string-registry");$c({target:"Symbol",stat:!0,forced:!Zc},{keyFor:function(t){if(!Hc(t))throw new TypeError(Gc(t)+" is not a symbol");if(Vc(Kc,t))return Kc[t]}});var qc=yt,Xc=Function.prototype,Jc=Xc.apply,Qc=Xc.call,td="object"==typeof Reflect&&Reflect.apply||(qc?Qc.bind(Jc):function(){return Qc.apply(Jc,arguments)}),ed=Nt([].slice),rd=Ju,nd=Xt,id=Pt,ad=Do,sd=Nt([].push),od=aa,ud=ne,ld=td,cd=gt,dd=Nt,fd=pt,hd=Xt,pd=Ae,md=ed,yd=pe,vd=String,Td=ud("JSON","stringify"),gd=dd(/./.exec),Ad=dd("".charAt),bd=dd("".charCodeAt),Sd=dd("".replace),Ed=dd(1..toString),_d=/[\uD800-\uDFFF]/g,Dd=/^[\uD800-\uDBFF]$/,Cd=/^[\uDC00-\uDFFF]$/,Od=!yd||fd((function(){var t=ud("Symbol")("stringify detection");return"[null]"!==Td([t])||"{}"!==Td({a:t})||"{}"!==Td(Object(t))})),wd=fd((function(){return'"\\udf06\\ud834"'!==Td("\udf06\ud834")||'"\\udead"'!==Td("\udead")})),xd=function(t,e){var r=md(arguments),n=function(t){if(nd(t))return t;if(rd(t)){for(var e=t.length,r=[],n=0;n<e;n++){var i=t[n];"string"==typeof i?sd(r,i):("number"==typeof i||"Number"===id(i)||"String"===id(i))&&sd(r,ad(i))}var a=r.length,s=!0;return function(t,e){if(s)return s=!1,e;if(rd(this))return e;for(var n=0;n<a;n++)if(r[n]===t)return e}}}(e);if(hd(n)||void 0!==t&&!pd(t))return r[1]=function(t,e){if(hd(n)&&(e=cd(n,this,vd(t),e)),!pd(e))return e},ld(Td,null,r)},Id=function(t,e,r){var n=Ad(r,e-1),i=Ad(r,e+1);return gd(Dd,t)&&!gd(Cd,i)||gd(Cd,t)&&!gd(Dd,n)?"\\u"+Ed(bd(t,0),16):t};Td&&od({target:"JSON",stat:!0,arity:3,forced:Od||wd},{stringify:function(t,e,r){var n=md(arguments),i=ld(Od?xd:Td,null,n);return wd&&"string"==typeof i?Sd(i,_d,Id):i}});var Nd=Ni,Ud=Ve;aa({target:"Object",stat:!0,forced:!pe||pt((function(){Nd.f(1)}))},{getOwnPropertySymbols:function(t){var e=Nd.f;return e?e(Ud(t)):[]}});var Md=aa,Ld=mt,Pd=Nt,Yd=Ze,kd=Xt,Rd=ie,Bd=Do,jd=$u,zd=Fi,Fd=ft.Symbol,Wd=Fd&&Fd.prototype;if(Ld&&kd(Fd)&&(!("description"in Wd)||void 0!==Fd().description)){var $d={},Vd=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:Bd(arguments[0]),e=Rd(Wd,this)?new Fd(t):void 0===t?Fd():Fd(t);return""===t&&($d[e]=!0),e};zd(Vd,Fd),Vd.prototype=Wd,Wd.constructor=Vd;var Hd="Symbol(description detection)"===String(Fd("description detection")),Gd=Pd(Wd.valueOf),Zd=Pd(Wd.toString),Kd=/^Symbol\((.*)\)[^)]+$/,qd=Pd("".replace),Xd=Pd("".slice);jd(Wd,"description",{configurable:!0,get:function(){var t=Gd(this);if(Yd($d,t))return"";var e=Zd(t),r=Hd?Xd(e,7,-1):qd(e,Kd,"$1");return""===r?void 0:r}}),Md({global:!0,constructor:!0,forced:!0},{Symbol:Vd})}var Jd=So,Qd=mo?{}.toString:function(){return"[object "+Jd(this)+"]"};mo||ii(Object.prototype,"toString",Qd,{unsafe:!0});var tf=Xt,ef=te,rf=Ms,nf=Nt(1..valueOf),af=$t,sf=Do,of="\t\n\v\f\r    \u2028\u2029\ufeff",uf=Nt("".replace),lf=RegExp("^["+of+"]+"),cf=RegExp("(^|[^"+of+"])["+of+"]+$"),df=function(t){return function(e){var r=sf(af(e));return 1&t&&(r=uf(r,lf,"")),2&t&&(r=uf(r,cf,"$1")),r}},ff={start:df(1),end:df(2),trim:df(3)},hf=aa,pf=mt,mf=ft,yf=ca,vf=Nt,Tf=Xi,gf=Ze,Af=ie,bf=Ae,Sf=mr,Ef=pt,_f=ai.f,Df=ht.f,Cf=Lr.f,Of=nf,wf=ff.trim,xf="Number",If=mf[xf];yf[xf];var Nf=If.prototype,Uf=mf.TypeError,Mf=vf("".slice),Lf=vf("".charCodeAt),Pf=Tf(xf,!If(" 0o1")||!If("0b1")||If("+0x1")),Yf=function(t){var e=arguments.length<1?0:If(function(t){var e=Sf(t,"number");return"bigint"==typeof e?e:function(t){var e,r,n,i,a,s,o,u,l=Sf(t,"number");if(bf(l))throw new Uf("Cannot convert a Symbol value to a number");if("string"==typeof l&&l.length>2)if(l=wf(l),43===(e=Lf(l,0))||45===e){if(88===(r=Lf(l,2))||120===r)return NaN}else if(48===e){switch(Lf(l,1)){case 66:case 98:n=2,i=49;break;case 79:case 111:n=8,i=55;break;default:return+l}for(s=(a=Mf(l,2)).length,o=0;o<s;o++)if((u=Lf(a,o))<48||u>i)return NaN;return parseInt(a,n)}return+l}(e)}(t));return function(t){return Af(Nf,t)&&Ef((function(){Of(t)}))}(this)?function(t,e,r){var n,i;return rf&&tf(n=e.constructor)&&n!==r&&ef(i=n.prototype)&&i!==r.prototype&&rf(t,i),t}(Object(e),this,Yf):e};Yf.prototype=Nf,Pf&&(Nf.constructor=Yf),hf({global:!0,constructor:!0,wrap:!0,forced:Pf},{Number:Yf}),Pf&&function(t,e){for(var r,n=pf?_f(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;n.length>i;i++)gf(e,r=n[i])&&!gf(t,r)&&Cf(t,r,Df(e,r))}(yf[xf],If);var kf={};Object.defineProperty(kf,"__esModule",{value:!0}),kf.LogLevel=void 0;var Rf=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}({});kf.LogLevel=Rf,Object.defineProperty(la,"__esModule",{value:!0}),la.ConsoleLogger=void 0,la.buildConsoleLogger=function(t){return new Wf(t)};var Bf=kf;function jf(t){return(jf="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 zf(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Ff(n.key),n)}}function Ff(t){var e=function(t,e){if("object"!==jf(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==jf(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===jf(e)?e:String(e)}var Wf=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,r){(e=Ff(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r}(this,"context",void 0),this.context=e||{}}return function(t,e,r){e&&zf(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1})}(t,[{key:"formatMessage",value:function(t,e,r){var n="["+Bf.LogLevel[e].toUpperCase()+"] ";return r&&r.app&&(n+=r.app+": "),"string"==typeof t?n+t:(n+="Unexpected ".concat(t.name),t.message&&(n+=' "'.concat(t.message,'"')),e===Bf.LogLevel.Debug&&t.stack&&(n+="\n\nStack trace:\n".concat(t.stack)),n)}},{key:"log",value:function(t,e,r){var n,i;if(!("number"==typeof(null===(n=this.context)||void 0===n?void 0:n.level)&&t<(null===(i=this.context)||void 0===i?void 0:i.level)))switch("object"===jf(e)&&void 0===(null==r?void 0:r.error)&&(r.error=e),t){case Bf.LogLevel.Debug:L.debug(this.formatMessage(e,Bf.LogLevel.Debug,r),r);break;case Bf.LogLevel.Info:L.info(this.formatMessage(e,Bf.LogLevel.Info,r),r);break;case Bf.LogLevel.Warn:L.warn(this.formatMessage(e,Bf.LogLevel.Warn,r),r);break;case Bf.LogLevel.Error:L.error(this.formatMessage(e,Bf.LogLevel.Error,r),r);break;case Bf.LogLevel.Fatal:default:L.error(this.formatMessage(e,Bf.LogLevel.Fatal,r),r)}}},{key:"debug",value:function(t,e){this.log(Bf.LogLevel.Debug,t,Object.assign({},this.context,e))}},{key:"info",value:function(t,e){this.log(Bf.LogLevel.Info,t,Object.assign({},this.context,e))}},{key:"warn",value:function(t,e){this.log(Bf.LogLevel.Warn,t,Object.assign({},this.context,e))}},{key:"error",value:function(t,e){this.log(Bf.LogLevel.Error,t,Object.assign({},this.context,e))}},{key:"fatal",value:function(t,e){this.log(Bf.LogLevel.Fatal,t,Object.assign({},this.context,e))}}]),t}();la.ConsoleLogger=Wf;var $f={},Vf={},Hf={};const Gf="object"==typeof P&&P.env&&P.env.NODE_DEBUG&&/\bsemver\b/i.test(P.env.NODE_DEBUG)?(...t)=>L.error("SEMVER",...t):()=>{};var Zf=Gf,Kf={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},qf={exports:{}};!function(t,e){const{MAX_SAFE_COMPONENT_LENGTH:r,MAX_SAFE_BUILD_LENGTH:n,MAX_LENGTH:i}=Kf,a=Zf,s=(e=t.exports={}).re=[],o=e.safeRe=[],u=e.src=[],l=e.t={};let c=0;const d="[a-zA-Z0-9-]",f=[["\\s",1],["\\d",i],[d,n]],h=(t,e,r)=>{const n=(t=>{for(const[e,r]of f)t=t.split(`${e}*`).join(`${e}{0,${r}}`).split(`${e}+`).join(`${e}{1,${r}}`);return t})(e),i=c++;a(t,i,e),l[t]=i,u[i]=e,s[i]=new RegExp(e,r?"g":void 0),o[i]=new RegExp(n,r?"g":void 0)};h("NUMERICIDENTIFIER","0|[1-9]\\d*"),h("NUMERICIDENTIFIERLOOSE","\\d+"),h("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${d}*`),h("MAINVERSION",`(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})\\.(${u[l.NUMERICIDENTIFIER]})`),h("MAINVERSIONLOOSE",`(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})\\.(${u[l.NUMERICIDENTIFIERLOOSE]})`),h("PRERELEASEIDENTIFIER",`(?:${u[l.NUMERICIDENTIFIER]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASEIDENTIFIERLOOSE",`(?:${u[l.NUMERICIDENTIFIERLOOSE]}|${u[l.NONNUMERICIDENTIFIER]})`),h("PRERELEASE",`(?:-(${u[l.PRERELEASEIDENTIFIER]}(?:\\.${u[l.PRERELEASEIDENTIFIER]})*))`),h("PRERELEASELOOSE",`(?:-?(${u[l.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${u[l.PRERELEASEIDENTIFIERLOOSE]})*))`),h("BUILDIDENTIFIER",`${d}+`),h("BUILD",`(?:\\+(${u[l.BUILDIDENTIFIER]}(?:\\.${u[l.BUILDIDENTIFIER]})*))`),h("FULLPLAIN",`v?${u[l.MAINVERSION]}${u[l.PRERELEASE]}?${u[l.BUILD]}?`),h("FULL",`^${u[l.FULLPLAIN]}$`),h("LOOSEPLAIN",`[v=\\s]*${u[l.MAINVERSIONLOOSE]}${u[l.PRERELEASELOOSE]}?${u[l.BUILD]}?`),h("LOOSE",`^${u[l.LOOSEPLAIN]}$`),h("GTLT","((?:<|>)?=?)"),h("XRANGEIDENTIFIERLOOSE",`${u[l.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),h("XRANGEIDENTIFIER",`${u[l.NUMERICIDENTIFIER]}|x|X|\\*`),h("XRANGEPLAIN",`[v=\\s]*(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:\\.(${u[l.XRANGEIDENTIFIER]})(?:${u[l.PRERELEASE]})?${u[l.BUILD]}?)?)?`),h("XRANGEPLAINLOOSE",`[v=\\s]*(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:\\.(${u[l.XRANGEIDENTIFIERLOOSE]})(?:${u[l.PRERELEASELOOSE]})?${u[l.BUILD]}?)?)?`),h("XRANGE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAIN]}$`),h("XRANGELOOSE",`^${u[l.GTLT]}\\s*${u[l.XRANGEPLAINLOOSE]}$`),h("COERCE",`(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?(?:$|[^\\d])`),h("COERCERTL",u[l.COERCE],!0),h("LONETILDE","(?:~>?)"),h("TILDETRIM",`(\\s*)${u[l.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",h("TILDE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAIN]}$`),h("TILDELOOSE",`^${u[l.LONETILDE]}${u[l.XRANGEPLAINLOOSE]}$`),h("LONECARET","(?:\\^)"),h("CARETTRIM",`(\\s*)${u[l.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",h("CARET",`^${u[l.LONECARET]}${u[l.XRANGEPLAIN]}$`),h("CARETLOOSE",`^${u[l.LONECARET]}${u[l.XRANGEPLAINLOOSE]}$`),h("COMPARATORLOOSE",`^${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]})$|^$`),h("COMPARATOR",`^${u[l.GTLT]}\\s*(${u[l.FULLPLAIN]})$|^$`),h("COMPARATORTRIM",`(\\s*)${u[l.GTLT]}\\s*(${u[l.LOOSEPLAIN]}|${u[l.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",h("HYPHENRANGE",`^\\s*(${u[l.XRANGEPLAIN]})\\s+-\\s+(${u[l.XRANGEPLAIN]})\\s*$`),h("HYPHENRANGELOOSE",`^\\s*(${u[l.XRANGEPLAINLOOSE]})\\s+-\\s+(${u[l.XRANGEPLAINLOOSE]})\\s*$`),h("STAR","(<|>)?=?\\s*\\*"),h("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),h("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")}(qf,qf.exports);var Xf=qf.exports;const Jf=Object.freeze({loose:!0}),Qf=Object.freeze({});const th=/^[0-9]+$/,eh=(t,e)=>{const r=th.test(t),n=th.test(e);return r&&n&&(t=+t,e=+e),t===e?0:r&&!n?-1:n&&!r?1:t<e?-1:1};var rh={compareIdentifiers:eh,rcompareIdentifiers:(t,e)=>eh(e,t)};const nh=Zf,{MAX_LENGTH:ih,MAX_SAFE_INTEGER:ah}=Kf,{safeRe:sh,t:oh}=Xf,uh=t=>t?"object"!=typeof t?Jf:t:Qf,{compareIdentifiers:lh}=rh;var ch=class t{constructor(e,r){if(r=uh(r),e instanceof t){if(e.loose===!!r.loose&&e.includePrerelease===!!r.includePrerelease)return e;e=e.version}else if("string"!=typeof e)throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ih)throw new TypeError(`version is longer than ${ih} characters`);nh("SemVer",e,r),this.options=r,this.loose=!!r.loose,this.includePrerelease=!!r.includePrerelease;const n=e.trim().match(r.loose?sh[oh.LOOSE]:sh[oh.FULL]);if(!n)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>ah||this.major<0)throw new TypeError("Invalid major version");if(this.minor>ah||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>ah||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((t=>{if(/^[0-9]+$/.test(t)){const e=+t;if(e>=0&&e<ah)return e}return t})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(nh("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 r=0;do{const t=this.prerelease[r],n=e.prerelease[r];if(nh("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return lh(t,n)}while(++r)}compareBuild(e){e instanceof t||(e=new t(e,this.options));let r=0;do{const t=this.build[r],n=e.build[r];if(nh("prerelease compare",r,t,n),void 0===t&&void 0===n)return 0;if(void 0===n)return 1;if(void 0===t)return-1;if(t!==n)return lh(t,n)}while(++r)}inc(t,e,r){switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",e,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",e,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",e,r),this.inc("pre",e,r);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",e,r),this.inc("pre",e,r);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(r)?1:0;if(!e&&!1===r)throw new Error("invalid increment argument: identifier is empty");if(0===this.prerelease.length)this.prerelease=[t];else{let n=this.prerelease.length;for(;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);if(-1===n){if(e===this.prerelease.join(".")&&!1===r)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(t)}}if(e){let n=[e,t];!1===r&&(n=[e]),0===lh(this.prerelease[0],e)?isNaN(this.prerelease[1])&&(this.prerelease=n):this.prerelease=n}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const dh=ch;const fh=(t,e,r=!1)=>{if(t instanceof dh)return t;try{return new dh(t,e)}catch(t){if(!r)return null;throw t}};var hh=(t,e)=>{const r=fh(t,e);return r?r.version:null};const ph=ch;Object.defineProperty(Hf,"__esModule",{value:!0});var mh=(t,e)=>new ph(t,e).major;function yh(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var vh=yh(hh),Th=yh(mh),gh=function(){function t(t){"function"==typeof t.getVersion&&vh.default(t.getVersion())?Th.default(t.getVersion())!==Th.default(this.getVersion())&&L.warn("Proxying an event bus of version "+t.getVersion()+" with "+this.getVersion()):L.warn("Proxying an event bus with an unknown or invalid version"),this.bus=t}return t.prototype.getVersion=function(){return"3.0.2"},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}(),Ah=function(){function t(){this.handlers=new Map}return t.prototype.getVersion=function(){return"3.0.2"},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){L.error("could not invoke event listener",t)}}))},t}(),bh=(typeof window.OC<"u"&&window.OC._eventBus&&typeof window._nc_event_bus>"u"&&(L.warn("found old event bus instance at OC._eventBus. Update your version!"),window._nc_event_bus=window.OC._eventBus),typeof window._nc_event_bus<"u"?new gh(window._nc_event_bus):window._nc_event_bus=new Ah);Hf.ProxyBus=gh,Hf.SimpleBus=Ah,Hf.emit=function(t,e){bh.emit(t,e)},Hf.subscribe=function(t,e){bh.subscribe(t,e)},Hf.unsubscribe=function(t,e){bh.unsubscribe(t,e)},Object.defineProperty(Vf,"__esModule",{value:!0});var Sh=Hf,Eh=document.getElementsByTagName("head")[0],_h=Eh?Eh.getAttribute("data-requesttoken"):null,Dh=[];Sh.subscribe("csrf-token-update",(function(t){_h=t.token,Dh.forEach((function(e){try{e(t.token)}catch(t){L.error("error updating CSRF token observer",t)}}))}));var Ch=function(t,e){return t?t.getAttribute(e):null},Oh=document.getElementsByTagName("head")[0],wh=Ch(Oh,"data-user"),xh=Ch(Oh,"data-user-displayname"),Ih=!(typeof OC>"u")&&OC.isUserAdmin();Vf.getCurrentUser=function(){return null===wh?null:{uid:wh,displayName:xh,isAdmin:Ih}},Vf.getRequestToken=function(){return _h},Vf.onRequestTokenUpdate=function(t){Dh.push(t)},Object.defineProperty($f,"__esModule",{value:!0}),$f.LoggerBuilder=void 0;var Nh=Vf,Uh=kf;function Mh(t){return(Mh="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 Lh(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,Yh(n.key),n)}}function Ph(t,e,r){return(e=Yh(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Yh(t){var e=function(t,e){if("object"!==Mh(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,"string");if("object"!==Mh(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"===Mh(e)?e:String(e)}var kh=function(){function t(e){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),Ph(this,"context",void 0),Ph(this,"factory",void 0),this.context={},this.factory=e}return function(t,e,r){e&&Lh(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,Nh.getCurrentUser)();return null!==t&&(this.context.uid=t.uid),this}},{key:"detectLogLevel",value:function(){var t=this;return function e(){var r,n;"complete"===document.readyState||"interactive"===document.readyState?(t.context.level=null!==(r=null===(n=window._oc_config)||void 0===n?void 0:n.loglevel)&&void 0!==r?r:Uh.LogLevel.Warn,window._oc_debug&&(t.context.level=Uh.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}();$f.LoggerBuilder=kh,function(t){Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LogLevel",{enumerable:!0,get:function(){return n.LogLevel}}),t.getLogger=function(){return i().build()},t.getLoggerBuilder=i;var e=la,r=$f,n=kf;function i(){return new r.LoggerBuilder(e.buildConsoleLogger)}}(ct);const Rh=ct.getLoggerBuilder().detectUser().setApp("@nextcloud/calendar-availability-vue").build();var Bh=n(14596),jh=n(56580),zh=n.n(jh),Fh=n(77958);const Wh=zh()((t=>(f.Z.defaults.headers["X-Requested-With"]="XMLHttpRequest",Bh.lD().patch("request",f.Z),Bh.eI((0,d.generateRemoteUrl)(`dav/${t}/${(0,Fh.ts)().uid}`))))),$h=(0,n(17499).IY)().setApp("dav").detectUser().build();var Vh=n(10038),Hh=n(13888),Gh=n(25108);const Zh={name:"AvailabilityForm",components:{NcButton:o.Z,NcCheckboxRadioSwitch:Vh.Z,CalendarAvailability:Z,NcTimezonePicker:Hh.Z},data:()=>({loading:!0,saving:!1,timezone:(new Intl.DateTimeFormat)?.resolvedOptions()?.timeZone??"UTC",slots:{MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]},automated:"yes"===(0,p.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=Wh("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>'}),r=await(0,Bh.sw)(e.data);if(!r)return;const n=r?.multistatus?.response[0]?.propstat?.prop["calendar-availability"];return n?function(t){const e=nt.parse(t),r=new nt.Component(e),n=r.getFirstSubcomponent("vavailability");let i;const a=r.getFirstSubcomponent("vtimezone");a&&(i=a.getFirstProperty("tzid").getFirstValue());const s=n.getAllSubcomponents("available"),o={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]};return s.forEach((t=>{const e=t.getFirstProperty("dtstart").getFirstValue().toJSDate(),r=t.getFirstProperty("dtend").getFirstValue().toJSDate(),n=t.getFirstProperty("rrule");"WEEKLY"===n.getFirstValue().freq?n.getFirstValue().getComponent("BYDAY").forEach((t=>{o[t].push({start:e.getTime()/1e3,end:r.getTime()/1e3})})):Rh.warn("rrule not supported",{rrule:n.toICALString()})})),{slots:o,timezoneId:i}}(n):void 0}();if(t){const{slots:e,timezoneId:r}=t;this.slots=e,r&&(this.timezone=r),Gh.info("availability loaded",this.slots,this.timezoneId)}else Gh.info("no availability is set"),this.slots={MO:[],TU:[],WE:[],TH:[],FR:[],SA:[],SU:[]}}catch(e){Gh.error("could not load existing availability",e),(0,m.x2)(t("dav","Failed to load availability"))}finally{this.loading=!1}},methods:{async save(){try{this.saving=!0,await async function(t,e){const r=function(t,e){const r=new Y.Component("vcalendar");r.addPropertyWithValue("prodid","Nextcloud DAV app");const n=J(e);if(n){const t=new Y.Component(Y.parse(n));r.addSubcomponent(t)}else{const t=new Y.Component("vtimezone");t.addPropertyWithValue("tzid",e),r.addSubcomponent(t)}const i=new Y.Component("vavailability"),a=t.reduce(((t,e)=>{var r;const n=new Date(1e3*e.start),i=new Date(1e3*e.end),a=[n.getHours(),n.getMinutes(),i.getHours(),i.getMinutes()].join("-");return{...t,[a]:[...null!=(r=t[a])?r:[],e]}}),{});return Object.keys(a).map((t=>{const r=a[t],n=r[0].start,i=r[0].end,s=r.map((t=>t.day)).filter(((t,e,r)=>r.indexOf(t)===e)),o=new Y.Component("available");return o.addPropertyWithValue("dtstart",Y.Time.fromJSDate(new Date(1e3*n),!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)),r.addSubcomponent(i),r.toString()}([...Object.keys(t).flatMap((e=>t[e].map((t=>({...t,day:e})))))],e);$h.debug("New availability ical created",{vavailability:r});const n=Wh("calendars");await n.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">${r}</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 f.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 f.Z.delete((0,d.generateOcsUrl)("/apps/provisioning_api/api/v1/config/users/{appId}/{configKey}",{appId:"dav",configKey:"user_status_automation"}))}(),(0,m.s$)(t("dav","Saved availability"))}catch(e){Gh.error("could not save availability",e),(0,m.x2)(t("dav","Failed to save availability"))}finally{this.saving=!1}}}};var Kh=n(67228),qh={};qh.styleTagTransform=w(),qh.setAttributes=_(),qh.insert=S().bind(null,"head"),qh.domAPI=A(),qh.insertStyleElement=C(),T()(Kh.Z,qh),Kh.Z&&Kh.Z.locals&&Kh.Z.locals;var Xh=(0,N.Z)(Zh,(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);const Jh=Xh.exports,Qh={name:"Availability",components:{NcSettingsSection:s.Z,AbsenceForm:M,AvailabilityForm:Jh},data:()=>({hideAbsenceSettings:(0,p.j)("dav","hide_absence_settings",!0)})};var tp=(0,N.Z)(Qh,(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);const ep=tp.exports;i.default.prototype.$t=a.Iu,new(i.default.extend(ep))({}).$mount("#settings-personal-availability")},49980:(t,e,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(87537),i=r.n(n),a=r(23645),s=r.n(a)()(i());s.push([t.id,".absence[data-v-5a6b66ca]{display:flex;flex-direction:column;gap:5px}.absence__dates[data-v-5a6b66ca]{display:flex;gap:10px;width:100%}.absence__dates__picker[data-v-5a6b66ca]{flex:1 auto}.absence__dates__picker[data-v-5a6b66ca] .native-datetime-picker--input{margin-bottom:0}.absence__buttons[data-v-5a6b66ca]{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,r)=>{"use strict";r.d(e,{Z:()=>o});var n=r(87537),i=r.n(n),a=r(23645),s=r.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,r)=>{var n=r(3118),i=r(9435);function a(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=4294967295,this.__views__=[]}a.prototype=n(i.prototype),a.prototype.constructor=a,t.exports=a},7548:(t,e,r)=>{var n=r(3118),i=r(9435);function a(t,e){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!e,this.__index__=0,this.__values__=void 0}a.prototype=n(i.prototype),a.prototype.constructor=a,t.exports=a},21078:(t,e,r)=>{var n=r(62488),i=r(37285);t.exports=function t(e,r,a,s,o){var u=-1,l=e.length;for(a||(a=i),o||(o=[]);++u<l;){var c=e[u];r>0&&a(c)?r>1?t(c,r-1,a,s,o):n(o,c):s||(o[o.length]=c)}return o}},9435:t=>{t.exports=function(){}},28045:(t,e,r)=>{var n=r(6557),i=r(89250),a=i?function(t,e){return i.set(t,e),t}:n;t.exports=a},52157:t=>{var e=Math.max;t.exports=function(t,r,n,i){for(var a=-1,s=t.length,o=n.length,u=-1,l=r.length,c=e(s-o,0),d=Array(l+c),f=!i;++u<l;)d[u]=r[u];for(;++a<o;)(f||a<s)&&(d[n[a]]=t[a]);for(;c--;)d[u++]=t[a++];return d}},14054:t=>{var e=Math.max;t.exports=function(t,r,n,i){for(var a=-1,s=t.length,o=-1,u=n.length,l=-1,c=r.length,d=e(s-u,0),f=Array(d+c),h=!i;++a<d;)f[a]=t[a];for(var p=a;++l<c;)f[p+l]=r[l];for(;++o<u;)(h||a<s)&&(f[p+n[o]]=t[a++]);return f}},97991:t=>{t.exports=function(t,e){for(var r=t.length,n=0;r--;)t[r]===e&&++n;return n}},22402:(t,e,r)=>{var n=r(71774),i=r(55639);t.exports=function(t,e,r){var a=1&e,s=n(t);return function e(){return(this&&this!==i&&this instanceof e?s:t).apply(a?r:this,arguments)}}},71774:(t,e,r)=>{var n=r(3118),i=r(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 r=n(t.prototype),a=t.apply(r,e);return i(a)?a:r}}},46347:(t,e,r)=>{var n=r(96874),i=r(71774),a=r(86935),s=r(94487),o=r(20893),u=r(46460),l=r(55639);t.exports=function(t,e,r){var c=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)<r?s(t,e,a,i.placeholder,void 0,f,m,void 0,void 0,r-d):n(this&&this!==l&&this instanceof i?c:t,this,f)}}},86935:(t,e,r)=>{var n=r(52157),i=r(14054),a=r(97991),s=r(71774),o=r(94487),u=r(20893),l=r(90451),c=r(46460),d=r(55639);t.exports=function t(e,r,f,h,p,m,y,v,T,g){var A=128&r,b=1&r,S=2&r,E=24&r,_=512&r,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=n(w,h,p,E)),m&&(w=i(w,m,y,E)),O-=N,E&&O<g){var U=c(w,I);return o(e,r,t,C.placeholder,f,w,U,v,T,g-O)}var M=b?f:this,L=S?M[e]:e;return O=w.length,v?w=l(w,v):_&&O>1&&w.reverse(),A&&T<O&&(w.length=T),this&&this!==d&&this instanceof C&&(L=D||s(L)),L.apply(M,w)}}},84375:(t,e,r)=>{var n=r(96874),i=r(71774),a=r(55639);t.exports=function(t,e,r,s){var o=1&e,u=i(t);return function e(){for(var i=-1,l=arguments.length,c=-1,d=s.length,f=Array(d+l),h=this&&this!==a&&this instanceof e?u:t;++c<d;)f[c]=s[c];for(;l--;)f[c++]=arguments[++i];return n(h,o?r:this,f)}}},94487:(t,e,r)=>{var n=r(86528),i=r(258),a=r(69255);t.exports=function(t,e,r,s,o,u,l,c,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?l:void 0,h?void 0:u,h?void 0:l,c,d,f],m=r.apply(void 0,p);return n(t)&&i(m,p),m.placeholder=s,a(m,t,e)}},97727:(t,e,r)=>{var n=r(28045),i=r(22402),a=r(46347),s=r(86935),o=r(84375),u=r(66833),l=r(63833),c=r(258),d=r(69255),f=r(40554),h=Math.max;t.exports=function(t,e,r,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,r,p,m,b,S,y,v,T];if(E&&l(_,E),t=_[0],e=_[1],r=_[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,r,p);else var D=i(t,e,r);return d((E?n:c)(D,_),t,e)}},99021:(t,e,r)=>{var n=r(85564),i=r(45357),a=r(30061);t.exports=function(t){return a(i(t,void 0,n),t+"")}},66833:(t,e,r)=>{var n=r(89250),i=r(50308),a=n?function(t){return n.get(t)}:i;t.exports=a},97658:(t,e,r)=>{var n=r(52060),i=Object.prototype.hasOwnProperty;t.exports=function(t){for(var e=t.name+"",r=n[e],a=i.call(n,e)?r.length:0;a--;){var s=r[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 (.+)\] \*/,r=/,? & /;t.exports=function(t){var n=t.match(e);return n?n[1].split(r):[]}},83112:t=>{var e=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;t.exports=function(t,r){var n=r.length;if(!n)return t;var i=n-1;return r[i]=(n>1?"& ":"")+r[i],r=r.join(n>2?", ":" "),t.replace(e,"{\n/* [wrapped with "+r+"] */\n")}},37285:(t,e,r)=>{var n=r(62705),i=r(35694),a=r(1469),s=n?n.isConcatSpreadable:void 0;t.exports=function(t){return a(t)||i(t)||!!(s&&t&&t[s])}},86528:(t,e,r)=>{var n=r(96425),i=r(66833),a=r(97658),s=r(8111);t.exports=function(t){var e=a(t),r=s[e];if("function"!=typeof r||!(e in n.prototype))return!1;if(t===r)return!0;var o=i(r);return!!o&&t===o[0]}},63833:(t,e,r)=>{var n=r(52157),i=r(14054),a=r(46460),s="__lodash_placeholder__",o=Math.min;t.exports=function(t,e){var r=t[1],u=e[1],l=r|u,c=l<131,d=128==u&&8==r||128==u&&256==r&&t[7].length<=e[8]||384==u&&e[7].length<=e[8]&&8==r;if(!c&&!d)return t;1&u&&(t[2]=e[2],l|=1&r?0:4);var f=e[3];if(f){var h=t[3];t[3]=h?n(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]=l,t}},89250:(t,e,r)=>{var n=r(70577),i=n&&new n;t.exports=i},52060:t=>{t.exports={}},90451:(t,e,r)=>{var n=r(278),i=r(65776),a=Math.min;t.exports=function(t,e){for(var r=t.length,s=a(e.length,r),o=n(t);s--;){var u=e[s];t[s]=i(u,r)?o[u]:void 0}return t}},46460:t=>{var e="__lodash_placeholder__";t.exports=function(t,r){for(var n=-1,i=t.length,a=0,s=[];++n<i;){var o=t[n];o!==r&&o!==e||(t[n]=e,s[a++]=n)}return s}},258:(t,e,r)=>{var n=r(28045),i=r(21275)(n);t.exports=i},69255:(t,e,r)=>{var n=r(58775),i=r(83112),a=r(30061),s=r(87241);t.exports=function(t,e,r){var o=e+"";return a(t,i(o,s(n(o),r)))}},87241:(t,e,r)=>{var n=r(77412),i=r(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 n(a,(function(r){var n="_."+r[0];e&r[1]&&!i(t,n)&&t.push(n)})),t.sort()}},21913:(t,e,r)=>{var n=r(96425),i=r(7548),a=r(278);t.exports=function(t){if(t instanceof n)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,r)=>{var n=r(97727);t.exports=function(t,e,r){return e=r?void 0:e,e=t&&null==e?t.length:e,n(t,128,void 0,void 0,void 0,void 0,e)}},40087:(t,e,r)=>{var n=r(97727);function i(t,e,r){var a=n(t,8,void 0,void 0,void 0,void 0,void 0,e=r?void 0:e);return a.placeholder=i.placeholder,a}i.placeholder={},t.exports=i},85564:(t,e,r)=>{var n=r(21078);t.exports=function(t){return null!=t&&t.length?n(t,1):[]}},84599:(t,e,r)=>{var n=r(68836),i=r(69306),a=Array.prototype.push;function s(t,e){return 2==e?function(e,r){return t(e,r)}:function(e){return t(e)}}function o(t){for(var e=t?t.length:0,r=Array(e);e--;)r[e]=t[e];return r}function u(t,e){return function(){var r=arguments.length;if(r){for(var n=Array(r);r--;)n[r]=arguments[r];var i=n[0]=e.apply(void 0,n);return t.apply(void 0,n),i}}}t.exports=function t(e,r,l,c){var d="function"==typeof r,f=r===Object(r);if(f&&(c=l,l=r,r=void 0),null==l)throw new TypeError;c||(c={});var h={cap:!("cap"in c)||c.cap,curry:!("curry"in c)||c.curry,fixed:!("fixed"in c)||c.fixed,immutable:!("immutable"in c)||c.immutable,rearg:!("rearg"in c)||c.rearg},p=d?l:i,m="curry"in c&&c.curry,y="fixed"in c&&c.fixed,v="rearg"in c&&c.rearg,T=d?l.runInContext():void 0,g=d?l:{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,M=x(n.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],r=t(arguments[0],e),n=r.length;return h.cap&&"number"==typeof e?(e=e>2?e-2:1,n&&n<=e?r:s(r,e)):r}},mixin:function(t){return function(e){var r=this;if(!O(r))return t(r,Object(e));var n=[];return _(x(e),(function(t){O(e[t])&&n.push([t,r.prototype[t]])})),t(r,Object(e)),_(n,(function(t){var e=t[1];O(e)?r.prototype[t[0]]=e:delete r.prototype[t[0]]})),r}},nthArg:function(t){return function(e){var r=e<0?1:N(e)+1;return E(t(e),r)}},rearg:function(t){return function(e,r){var n=r?r.length:0;return E(t(e,r),n)}},runInContext:function(r){return function(n){return t(e,r(n),c)}}};function P(t,e,r){if(h.fixed&&(y||!n.skipFixed[t])){var i=n.methodSpread[t],s=i&&i.start;return void 0===s?A(e,r):function(t,e){return function(){for(var r=arguments.length,n=r-1,i=Array(r);r--;)i[r]=arguments[r];var s=i[e],o=i.slice(0,e);return s&&a.apply(o,s),e!=n&&a.apply(o,i.slice(e+1)),t.apply(this,o)}}(e,s)}return e}function Y(t,e,r){return h.rearg&&r>1&&(v||!n.skipRearg[t])?I(e,n.methodRearg[t]||n.aryRearg[r]):e}function k(t,e){for(var r=-1,n=(e=U(e)).length,i=n-1,a=S(Object(t)),s=a;null!=s&&++r<n;){var o=e[r],u=s[o];null==u||O(u)||C(u)||w(u)||(s[o]=S(r==i?u:Object(u))),s=s[o]}return a}function R(e,r){var i=n.aliasToReal[e]||e,a=n.remap[i]||i,s=c;return function(e){var n=d?T:g,o=d?T[a]:r,u=b(b({},s),e);return t(n,i,o,u)}}function B(t,e){return function(){var r=arguments.length;if(!r)return t();for(var n=Array(r);r--;)n[r]=arguments[r];var i=h.rearg?0:r-1;return n[i]=e(n[i]),t.apply(void 0,n)}}function j(t,e,r){var i,a=n.aliasToReal[t]||t,l=e,c=L[a];return c?l=c(e):h.immutable&&(n.mutate.array[a]?l=u(e,o):n.mutate.object[a]?l=u(e,function(t){return function(e){return t({},e)}}(e)):n.mutate.set[a]&&(l=u(e,k))),_(M,(function(t){return _(n.aryMethod[t],(function(e){if(a==e){var r=n.methodSpread[a],o=r&&r.afterRearg;return i=o?P(a,Y(a,l,t),t):Y(a,P(a,l,t),t),i=function(t,e,r){return m||h.curry&&r>1?E(e,r):e}(0,i=function(t,e){if(h.cap){var r=n.iterateeRearg[t];if(r)return function(t,e){return B(t,(function(t){var r=e.length;return function(t,e){return 2==e?function(e,r){return t.apply(void 0,arguments)}:function(e){return t.apply(void 0,arguments)}}(I(s(t,r),e),r)}))}(e,r);var i=!d&&n.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=l),i==e&&(i=m?E(i,1):function(){return e.apply(this,arguments)}),i.convert=R(a,e),i.placeholder=e.placeholder=r,i}if(!f)return j(r,l,p);var z=l,F=[];return _(M,(function(t){_(n.aryMethod[t],(function(t){var e=z[n.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 r=F.length;r--;)if(F[r][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){_(n.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,r=e.aliasToReal,n={};for(var i in r){var a=r[i];t.call(n,a)?n[a].push(i):n[a]=[i]}return n}(),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,r)=>{t.exports={ary:r(39514),assign:r(44037),clone:r(66678),curry:r(40087),forEach:r(77412),isArray:r(1469),isError:r(64647),isFunction:r(23560),isWeakMap:r(81018),iteratee:r(72594),keys:r(280),rearg:r(4963),toInteger:r(40554),toPath:r(30084)}},92822:(t,e,r)=>{var n=r(84599),i=r(4269);t.exports=function(t,e,r){return n(i,t,e,r)}},56580:(t,e,r)=>{var n=r(92822)("memoize",r(88306));n.placeholder=r(69306),t.exports=n},69306:t=>{t.exports={}},64647:(t,e,r)=>{var n=r(44239),i=r(37005),a=r(68630);t.exports=function(t){if(!i(t))return!1;var e=n(t);return"[object Error]"==e||"[object DOMException]"==e||"string"==typeof t.message&&"string"==typeof t.name&&!a(t)}},81018:(t,e,r)=>{var n=r(64160),i=r(37005);t.exports=function(t){return i(t)&&"[object WeakMap]"==n(t)}},72594:(t,e,r)=>{var n=r(85990),i=r(67206);t.exports=function(t){return i("function"==typeof t?t:n(t,1))}},4963:(t,e,r)=>{var n=r(97727),i=r(99021)((function(t,e){return n(t,256,void 0,void 0,void 0,e)}));t.exports=i},18601:(t,e,r)=>{var n=r(14841);t.exports=function(t){return t?Infinity===(t=n(t))||t===-1/0?17976931348623157e292*(t<0?-1:1):t==t?t:0:0===t?t:0}},40554:(t,e,r)=>{var n=r(18601);t.exports=function(t){var e=n(t),r=e%1;return e==e?r?e-r:e:0}},30084:(t,e,r)=>{var n=r(29932),i=r(278),a=r(1469),s=r(33448),o=r(55514),u=r(40327),l=r(79833);t.exports=function(t){return a(t)?n(t,u):s(t)?[t]:i(o(l(t)))}},8111:(t,e,r)=>{var n=r(96425),i=r(7548),a=r(9435),s=r(1469),o=r(37005),u=r(21913),l=Object.prototype.hasOwnProperty;function c(t){if(o(t)&&!s(t)&&!(t instanceof n)){if(t instanceof i)return t;if(l.call(t,"__wrapped__"))return u(t)}return new i(t)}c.prototype=a.prototype,c.prototype.constructor=c,t.exports=c},42761:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTS00LTRoMjR2MjRILTRWLTR6IiBmaWxsPSJub25lIi8+PHBhdGggZD0iTTggMEMzLjYgMCAwIDMuNiAwIDhzMy42IDggOCA4IDgtMy42IDgtOC0zLjYtOC04LTh6IiBmaWxsPSIjZWQ0ODRjIi8+PHBhdGggZD0iTTUgNi41aDZjLjggMCAxLjUuNyAxLjUgMS41cy0uNyAxLjUtMS41IDEuNUg1Yy0uOCAwLTEuNS0uNy0xLjUtMS41UzQuMiA2LjUgNSA2LjV6IiBmaWxsPSIjZmRmZmZmIi8+PC9zdmc+Cg=="},87210:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZD0iTTQuOCAxMS4yaDYuNFY0LjhINC44djYuNHpNOCAwQzMuNiAwIDAgMy42IDAgOHMzLjYgOCA4IDggOC0zLjYgOC04LTMuNi04LTgtOHoiIGZpbGw9IiM0OWIzODIiLz48L3N2Zz4K"},94659:t=>{"use strict";t.exports="data:image/svg+xml;base64,PCEtLSBUaGlzIGljb24gaXMgcGFydCBvZiBNYXRlcmlhbCBVSSBJY29ucy4gQ29weXJpZ2h0IDIwMjAgR29vZ2xlIEluYy4sIEFwYWNoZS0yLjAgTGljZW5zZSAtLT4KPHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxNiAxNiI+PHBhdGggZmlsbD0ibm9uZSIgZD0iTS00LTRoMjR2MjRILTR6Ii8+PHBhdGggZD0iTTYuOS4xQzMgLjYtLjEgNC0uMSA4YzAgNC40IDMuNiA4IDggOCA0IDAgNy40LTMgOC02LjktMS4yIDEuMy0yLjkgMi4xLTQuNyAyLjEtMy41IDAtNi40LTIuOS02LjQtNi40IDAtMS45LjgtMy42IDIuMS00Ljd6IiBmaWxsPSIjZjRhMzMxIi8+PC9zdmc+Cg=="}},a={};function s(t){var e=a[t];if(void 0!==e)return e.exports;var r=a[t]={id:t,loaded:!1,exports:{}};return i[t].call(r.exports,r,r.exports,s),r.loaded=!0,r.exports}s.m=i,e=[],s.O=(t,r,n,i)=>{if(!r){var a=1/0;for(c=0;c<e.length;c++){r=e[c][0],n=e[c][1],i=e[c][2];for(var o=!0,u=0;u<r.length;u++)(!1&i||a>=i)&&Object.keys(s.O).every((t=>s.O[t](r[u])))?r.splice(u--,1):(o=!1,i<a&&(a=i));if(o){e.splice(c--,1);var l=n();void 0!==l&&(t=l)}}return t}i=i||0;for(var c=e.length;c>0&&e[c-1][2]>i;c--)e[c]=e[c-1];e[c]=[r,n,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 r in e)s.o(e,r)&&!s.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},s.f={},s.e=t=>Promise.all(Object.keys(s.f).reduce(((e,r)=>(s.f[r](t,e),e)),[])),s.u=t=>t+"-"+t+".js?v="+{2048:"78a82614529a3cefcde7",4180:"fe82f3a2dac70d6b82bc"}[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),r={},n="nextcloud:",s.l=(t,e,i,a)=>{if(r[t])r[t].push(e);else{var o,u;if(void 0!==i)for(var l=document.getElementsByTagName("script"),c=0;c<l.length;c++){var d=l[c];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==n+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",n+i),o.src=t),r[t]=[e];var f=(e,n)=>{o.onerror=o.onload=null,clearTimeout(h);var i=r[t];if(delete r[t],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((t=>t(n))),e)return e(n)},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 r=e.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&!t;)t=r[n--].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,r)=>{var n=s.o(t,e)?t[e]:void 0;if(0!==n)if(n)r.push(n[2]);else{var i=new Promise(((r,i)=>n=t[e]=[r,i]));r.push(n[2]=i);var a=s.p+s.u(e),o=new Error;s.l(a,(r=>{if(s.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=r&&("load"===r.type?"missing":r.type),a=r&&r.target&&r.target.src;o.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",o.name="ChunkLoadError",o.type=i,o.request=a,n[1](o)}}),"chunk-"+e,e)}},s.O.j=e=>0===t[e];var e=(e,r)=>{var n,i,a=r[0],o=r[1],u=r[2],l=0;if(a.some((e=>0!==t[e]))){for(n in o)s.o(o,n)&&(s.m[n]=o[n]);if(u)var c=u(s)}for(e&&e(r);l<a.length;l++)i=a[l],s.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return s.O(c)},r=self.webpackChunknextcloud=self.webpackChunknextcloud||[];r.forEach(e.bind(null,0)),r.push=e.bind(null,r.push.bind(r))})(),s.nc=void 0;var o=s.O(void 0,[7874],(()=>s(13387)));o=s.O(o)})();
//# sourceMappingURL=dav-settings-personal-availability.js.map?v=945b504e7be230324857