summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Molakvoæ <skjnldsv@protonmail.com>2022-09-06 17:11:59 +0200
committerJohn Molakvoæ <skjnldsv@protonmail.com>2022-09-06 17:12:36 +0200
commit880a78ce55716e329293bcf42c0da68835072a55 (patch)
treef729b02cc7644e0d1850f7c65c0101a0af8b6e6e
parentc5f1724f03c07b89e2bce0396f4e38e9c63118e7 (diff)
Revert "Bump @nextcloud/event-bus from 3.0.0 to 3.0.1"revert/835d4d8
-rw-r--r--js/photos-main.js4
-rw-r--r--js/photos-main.js.map2
-rw-r--r--package-lock.json14
-rw-r--r--package.json2
4 files changed, 11 insertions, 11 deletions
diff --git a/js/photos-main.js b/js/photos-main.js
index e88dbe87..3e9f1689 100644
--- a/js/photos-main.js
+++ b/js/photos-main.js
@@ -1,3 +1,3 @@
/*! For license information please see photos-main.js.LICENSE.txt */
-(()=>{var e,n,r={45994:(e,t,n)=>{"use strict";n.d(t,{ts:()=>g,IH:()=>u,_S:()=>l});var r=n(10520),a=n(25108);const i=document.getElementsByTagName("head")[0];let o=i?i.getAttribute("data-requesttoken"):null;const s=[];function u(){return o}function l(e){s.push(e)}(0,r.Ld)("csrf-token-update",(e=>{o=e.token,s.forEach((t=>{try{t(e.token)}catch(e){a.error("error updating CSRF token observer",e)}}))}));const c=(e,t)=>e?e.getAttribute(t):null,d=document.getElementsByTagName("head")[0],f=c(d,"data-user"),h=c(d,"data-user-displayname"),p="undefined"!=typeof OC&&OC.isUserAdmin();function g(){return null===f?null:{uid:f,displayName:h,isAdmin:p}}},22200:(e,t,n)=>{"use strict";var r=n(25108);Object.defineProperty(t,"__esModule",{value:!0});var a=n(51026),i=document.getElementsByTagName("head")[0],o=i?i.getAttribute("data-requesttoken"):null,s=[];a.subscribe("csrf-token-update",(function(e){o=e.token,s.forEach((function(t){try{t(e.token)}catch(e){r.error("error updating CSRF token observer",e)}}))}));var u=function(e,t){return e?e.getAttribute(t):null},l=document.getElementsByTagName("head")[0],c=u(l,"data-user"),d=u(l,"data-user-displayname"),f="undefined"!=typeof OC&&OC.isUserAdmin();t.getCurrentUser=function(){return null===c?null:{uid:c,displayName:d,isAdmin:f}},t.getRequestToken=function(){return o},t.onRequestTokenUpdate=function(e){s.push(e)}},26937:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(9669),a=n.n(r),i=n(45994);const o=a().create({headers:{requesttoken:(0,i.IH)()??""}}),s=Object.assign(o,{CancelToken:a().CancelToken,isCancel:a().isCancel});(0,i._S)((e=>o.defaults.headers.requesttoken=e))},4820:(e,t,n)=>{"use strict";var r=n(9669),a=n(22200);function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o,s=i(r),u=s.default.create({headers:{requesttoken:null!==(o=a.getRequestToken())&&void 0!==o?o:""}}),l=Object.assign(u,{CancelToken:s.default.CancelToken,isCancel:s.default.isCancel});a.onRequestTokenUpdate((function(e){return u.defaults.headers.requesttoken=e})),e.exports=l},62556:(e,t,n)=>{"use strict";n(73292),n(25918),n(38227),n(43584),Object.defineProperty(t,"__esModule",{value:!0}),t.getBuilder=function(e){return new r.default(e)},t.clearAll=function(){[window.sessionStorage,window.localStorage].map((function(e){return o(e)}))},t.clearNonPersistent=function(){[window.sessionStorage,window.localStorage].map((function(e){return o(e,(function(e){return!e.startsWith(a.default.GLOBAL_SCOPE_PERSISTENT)}))}))};var r=i(n(71957)),a=i(n(48971));function i(e){return e&&e.__esModule?e:{default:e}}function o(e,t){Object.keys(e).filter((function(e){return!t||t(e)})).map(e.removeItem.bind(e))}},48971:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n(31013),n(73292),n(25918),n(38227),n(43584),Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=function(){function e(t,n,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),a(this,"scope",void 0),a(this,"wrapped",void 0),this.scope="".concat(r?e.GLOBAL_SCOPE_PERSISTENT:e.GLOBAL_SCOPE_VOLATILE,"_").concat(btoa(t),"_"),this.wrapped=n}var t,n,i;return t=e,(n=[{key:"scopeKey",value:function(e){return"".concat(this.scope).concat(e)}},{key:"setItem",value:function(e,t){this.wrapped.setItem(this.scopeKey(e),t)}},{key:"getItem",value:function(e){return this.wrapped.getItem(this.scopeKey(e))}},{key:"removeItem",value:function(e){this.wrapped.removeItem(this.scopeKey(e))}},{key:"clear",value:function(){var e=this;Object.keys(this.wrapped).filter((function(t){return t.startsWith(e.scope)})).map(this.wrapped.removeItem.bind(this.wrapped))}}])&&r(t.prototype,n),i&&r(t,i),e}();t.default=i,a(i,"GLOBAL_SCOPE_VOLATILE","nextcloud_vol"),a(i,"GLOBAL_SCOPE_PERSISTENT","nextcloud_per")},71957:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r,a=(r=n(48971))&&r.__esModule?r:{default:r};function i(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),o(this,"appId",void 0),o(this,"persisted",!1),o(this,"clearedOnLogout",!1),this.appId=t}var t,n,r;return t=e,n=[{key:"persist",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.persisted=e,this}},{key:"clearOnLogout",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.clearedOnLogout=e,this}},{key:"build",value:function(){return new a.default(this.appId,this.persisted?window.localStorage:window.sessionStorage,!this.clearedOnLogout)}}],n&&i(t.prototype,n),r&&i(t,r),e}();t.default=s},84611:e=>{e.exports=function(e){if("function"!=typeof e)throw TypeError(String(e)+" is not a function");return e}},20266:(e,t,n)=>{var r=n(2167);e.exports=function(e){if(!r(e))throw TypeError(String(e)+" is not an object");return e}},31524:(e,t,n)=>{var r=n(75775),a=n(1138),i=n(47518),o=function(e){return function(t,n,o){var s,u=r(t),l=a(u.length),c=i(o,l);if(e&&n!=n){for(;l>c;)if((s=u[c++])!=s)return!0}else for(;l>c;c++)if((e||c in u)&&u[c]===n)return e||c||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},99910:(e,t,n)=>{var r=n(3391),a=n(49479),i=n(44937),o=n(1138),s=n(79315),u=[].push,l=function(e){var t=1==e,n=2==e,l=3==e,c=4==e,d=6==e,f=5==e||d;return function(h,p,g,m){for(var _,F,A=i(h),b=a(A),T=r(p,g,3),y=o(b.length),v=0,D=m||s,E=t?D(h,y):n?D(h,0):void 0;y>v;v++)if((f||v in b)&&(F=T(_=b[v],v,A),e))if(t)E[v]=F;else if(F)switch(e){case 3:return!0;case 5:return _;case 6:return v;case 2:u.call(E,_)}else if(c)return!1;return d?-1:l||c?c:E}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}},3919:(e,t,n)=>{var r=n(28590),a=n(81141),i=n(74217),o=a("species");e.exports=function(e){return i>=51||!r((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},79315:(e,t,n)=>{var r=n(2167),a=n(12075),i=n(81141)("species");e.exports=function(e,t){var n;return a(e)&&("function"!=typeof(n=e.constructor)||n!==Array&&!a(n.prototype)?r(n)&&null===(n=n[i])&&(n=void 0):n=void 0),new(void 0===n?Array:n)(0===t?0:t)}},3391:(e,t,n)=>{var r=n(84611);e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,a){return e.call(t,n,r,a)}}return function(){return e.apply(t,arguments)}}},84692:e=>{var t={}.toString;e.exports=function(e){return t.call(e).slice(8,-1)}},20541:(e,t,n)=>{var r=n(45612),a=n(66794),i=n(40647),o=n(19974);e.exports=function(e,t){for(var n=a(t),s=o.f,u=i.f,l=0;l<n.length;l++){var c=n[l];r(e,c)||s(e,c,u(t,c))}}},33769:(e,t,n)=>{var r=n(81141)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,"/./"[e](t)}catch(e){}}return!1}},25208:(e,t,n)=>{var r=n(28646),a=n(19974),i=n(82071);e.exports=r?function(e,t,n){return a.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},82071:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},90024:(e,t,n)=>{"use strict";var r=n(4356),a=n(19974),i=n(82071);e.exports=function(e,t,n){var o=r(t);o in e?a.f(e,o,i(0,n)):e[o]=n}},28646:(e,t,n)=>{var r=n(28590);e.exports=!r((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},71871:(e,t,n)=>{var r=n(84586),a=n(2167),i=r.document,o=a(i)&&a(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},29276:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},58615:(e,t,n)=>{var r=n(84586),a=n(40647).f,i=n(25208),o=n(62165),s=n(60312),u=n(20541),l=n(66673);e.exports=function(e,t){var n,c,d,f,h,p=e.target,g=e.global,m=e.stat;if(n=g?r:m?r[p]||s(p,{}):(r[p]||{}).prototype)for(c in t){if(f=t[c],d=e.noTargetGet?(h=a(n,c))&&h.value:n[c],!l(g?c:p+(m?".":"#")+c,e.forced)&&void 0!==d){if(typeof f==typeof d)continue;u(f,d)}(e.sham||d&&d.sham)&&i(f,"sham",!0),o(n,c,f,e)}}},28590:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},63930:(e,t,n)=>{var r=n(23265),a=n(84586),i=function(e){return"function"==typeof e?e:void 0};e.exports=function(e,t){return arguments.length<2?i(r[e])||i(a[e]):r[e]&&r[e][t]||a[e]&&a[e][t]}},84586:(e,t,n)=>{var r=function(e){return e&&e.Math==Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||Function("return this")()},45612:e=>{var t={}.hasOwnProperty;e.exports=function(e,n){return t.call(e,n)}},86275:e=>{e.exports={}},24959:(e,t,n)=>{var r=n(28646),a=n(28590),i=n(71871);e.exports=!r&&!a((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},49479:(e,t,n)=>{var r=n(28590),a=n(84692),i="".split;e.exports=r((function(){return!Object("z").propertyIsEnumerable(0)}))?function(e){return"String"==a(e)?i.call(e,""):Object(e)}:Object},24850:(e,t,n)=>{var r=n(39530),a=Function.toString;"function"!=typeof r.inspectSource&&(r.inspectSource=function(e){return a.call(e)}),e.exports=r.inspectSource},23042:(e,t,n)=>{var r,a,i,o=n(90533),s=n(84586),u=n(2167),l=n(25208),c=n(45612),d=n(75019),f=n(86275),h=s.WeakMap;if(o){var p=new h,g=p.get,m=p.has,_=p.set;r=function(e,t){return _.call(p,e,t),t},a=function(e){return g.call(p,e)||{}},i=function(e){return m.call(p,e)}}else{var F=d("state");f[F]=!0,r=function(e,t){return l(e,F,t),t},a=function(e){return c(e,F)?e[F]:{}},i=function(e){return c(e,F)}}e.exports={set:r,get:a,has:i,enforce:function(e){return i(e)?a(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!u(t)||(n=a(t)).type!==e)throw TypeError("Incompatible receiver, "+e+" required");return n}}}},12075:(e,t,n)=>{var r=n(84692);e.exports=Array.isArray||function(e){return"Array"==r(e)}},66673:(e,t,n)=>{var r=n(28590),a=/#|\.prototype\./,i=function(e,t){var n=s[o(e)];return n==l||n!=u&&("function"==typeof t?r(t):!!t)},o=i.normalize=function(e){return String(e).replace(a,".").toLowerCase()},s=i.data={},u=i.NATIVE="N",l=i.POLYFILL="P";e.exports=i},2167:e=>{e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},21935:e=>{e.exports=!1},35696:(e,t,n)=>{var r=n(2167),a=n(84692),i=n(81141)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==a(e))}},20982:(e,t,n)=>{var r=n(28590);e.exports=!!Object.getOwnPropertySymbols&&!r((function(){return!String(Symbol())}))},90533:(e,t,n)=>{var r=n(84586),a=n(24850),i=r.WeakMap;e.exports="function"==typeof i&&/native code/.test(a(i))},22651:(e,t,n)=>{var r=n(35696);e.exports=function(e){if(r(e))throw TypeError("The method doesn't accept regular expressions");return e}},19974:(e,t,n)=>{var r=n(28646),a=n(24959),i=n(20266),o=n(4356),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(i(e),t=o(t,!0),i(n),a)try{return s(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},40647:(e,t,n)=>{var r=n(28646),a=n(459),i=n(82071),o=n(75775),s=n(4356),u=n(45612),l=n(24959),c=Object.getOwnPropertyDescriptor;t.f=r?c:function(e,t){if(e=o(e),t=s(t,!0),l)try{return c(e,t)}catch(e){}if(u(e,t))return i(!a.f.call(e,t),e[t])}},28969:(e,t,n)=>{var r=n(62121),a=n(29276).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,a)}},80724:(e,t)=>{t.f=Object.getOwnPropertySymbols},62121:(e,t,n)=>{var r=n(45612),a=n(75775),i=n(31524).indexOf,o=n(86275);e.exports=function(e,t){var n,s=a(e),u=0,l=[];for(n in s)!r(o,n)&&r(s,n)&&l.push(n);for(;t.length>u;)r(s,n=t[u++])&&(~i(l,n)||l.push(n));return l}},83147:(e,t,n)=>{var r=n(62121),a=n(29276);e.exports=Object.keys||function(e){return r(e,a)}},459:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,a=r&&!n.call({1:2},1);t.f=a?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},66794:(e,t,n)=>{var r=n(63930),a=n(28969),i=n(80724),o=n(20266);e.exports=r("Reflect","ownKeys")||function(e){var t=a.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},23265:(e,t,n)=>{var r=n(84586);e.exports=r},62165:(e,t,n)=>{var r=n(84586),a=n(25208),i=n(45612),o=n(60312),s=n(24850),u=n(23042),l=u.get,c=u.enforce,d=String(String).split("String");(e.exports=function(e,t,n,s){var u=!!s&&!!s.unsafe,l=!!s&&!!s.enumerable,f=!!s&&!!s.noTargetGet;"function"==typeof n&&("string"!=typeof t||i(n,"name")||a(n,"name",t),c(n).source=d.join("string"==typeof t?t:"")),e!==r?(u?!f&&e[t]&&(l=!0):delete e[t],l?e[t]=n:a(e,t,n)):l?e[t]=n:o(t,n)})(Function.prototype,"toString",(function(){return"function"==typeof this&&l(this).source||s(this)}))},24063:e=>{e.exports=function(e){if(null==e)throw TypeError("Can't call method on "+e);return e}},60312:(e,t,n)=>{var r=n(84586),a=n(25208);e.exports=function(e,t){try{a(r,e,t)}catch(n){r[e]=t}return t}},75019:(e,t,n)=>{var r=n(25484),a=n(9299),i=r("keys");e.exports=function(e){return i[e]||(i[e]=a(e))}},39530:(e,t,n)=>{var r=n(84586),a=n(60312),i="__core-js_shared__",o=r[i]||a(i,{});e.exports=o},25484:(e,t,n)=>{var r=n(21935),a=n(39530);(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.6.1",mode:r?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},47518:(e,t,n)=>{var r=n(33328),a=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?a(n+t,0):i(n,t)}},75775:(e,t,n)=>{var r=n(49479),a=n(24063);e.exports=function(e){return r(a(e))}},33328:e=>{var t=Math.ceil,n=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?n:t)(e)}},1138:(e,t,n)=>{var r=n(33328),a=Math.min;e.exports=function(e){return e>0?a(r(e),9007199254740991):0}},44937:(e,t,n)=>{var r=n(24063);e.exports=function(e){return Object(r(e))}},4356:(e,t,n)=>{var r=n(2167);e.exports=function(e,t){if(!r(e))return e;var n,a;if(t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;if("function"==typeof(n=e.valueOf)&&!r(a=n.call(e)))return a;if(!t&&"function"==typeof(n=e.toString)&&!r(a=n.call(e)))return a;throw TypeError("Can't convert object to primitive value")}},9299:e=>{var t=0,n=Math.random();e.exports=function(e){return"Symbol("+String(void 0===e?"":e)+")_"+(++t+n).toString(36)}},91677:(e,t,n)=>{var r=n(20982);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},68864:(e,t,n)=>{var r=n(63930);e.exports=r("navigator","userAgent")||""},74217:(e,t,n)=>{var r,a,i=n(84586),o=n(68864),s=i.process,u=s&&s.versions,l=u&&u.v8;l?a=(r=l.split("."))[0]+r[1]:o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(a=r[1]),e.exports=a&&+a},81141:(e,t,n)=>{var r=n(84586),a=n(25484),i=n(45612),o=n(9299),s=n(20982),u=n(91677),l=a("wks"),c=r.Symbol,d=u?c:c&&c.withoutSetter||o;e.exports=function(e){return i(l,e)||(s&&i(c,e)?l[e]=c[e]:l[e]=d("Symbol."+e)),l[e]}},31013:(e,t,n)=>{"use strict";var r=n(58615),a=n(28590),i=n(12075),o=n(2167),s=n(44937),u=n(1138),l=n(90024),c=n(79315),d=n(3919),f=n(81141),h=n(74217),p=f("isConcatSpreadable"),g=9007199254740991,m="Maximum allowed index exceeded",_=h>=51||!a((function(){var e=[];return e[p]=!1,e.concat()[0]!==e})),F=d("concat"),A=function(e){if(!o(e))return!1;var t=e[p];return void 0!==t?!!t:i(e)};r({target:"Array",proto:!0,forced:!_||!F},{concat:function(e){var t,n,r,a,i,o=s(this),d=c(o,0),f=0;for(t=-1,r=arguments.length;t<r;t++)if(A(i=-1===t?o:arguments[t])){if(f+(a=u(i.length))>g)throw TypeError(m);for(n=0;n<a;n++,f++)n in i&&l(d,f,i[n])}else{if(f>=g)throw TypeError(m);l(d,f++,i)}return d.length=f,d}})},73292:(e,t,n)=>{"use strict";var r=n(58615),a=n(99910).filter,i=n(28590),o=n(3919)("filter"),s=o&&!i((function(){[].filter.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!o||!s},{filter:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},25918:(e,t,n)=>{"use strict";var r=n(58615),a=n(99910).map,i=n(28590),o=n(3919)("map"),s=o&&!i((function(){[].map.call({length:-1,0:1},(function(e){throw e}))}));r({target:"Array",proto:!0,forced:!o||!s},{map:function(e){return a(this,e,arguments.length>1?arguments[1]:void 0)}})},38227:(e,t,n)=>{var r=n(58615),a=n(44937),i=n(83147);r({target:"Object",stat:!0,forced:n(28590)((function(){i(1)}))},{keys:function(e){return i(a(e))}})},43584:(e,t,n)=>{"use strict";var r,a=n(58615),i=n(40647).f,o=n(1138),s=n(22651),u=n(24063),l=n(33769),c=n(21935),d="".startsWith,f=Math.min,h=l("startsWith");a({target:"String",proto:!0,forced:!!(c||h||(r=i(String.prototype,"startsWith"),!r||r.writable))&&!h},{startsWith:function(e){var t=String(u(this));s(e);var n=o(f(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return d?d.call(t,r,n):t.slice(n,n+r.length)===r}})},46296:(e,t,n)=>{"use strict";n.d(t,{ko:()=>_e});var r,a=n(18350),i=n.n(a),o=new Uint8Array(16);function s(){if(!r&&!(r="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(o)}const u=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const l=function(e){return"string"==typeof e&&u.test(e)};for(var c=[],d=0;d<256;++d)c.push((d+256).toString(16).substr(1));const f=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n};const h=function(e,t,n){var r=(e=e||{}).random||(e.rng||s)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var a=0;a<16;++a)t[n+a]=r[a];return t}return f(r)};var p=n(25108);class g extends Error{}function m(e){return class extends e{constructor(...e){super(...e),this._mutable=!0}isLocked(){return!this._mutable}lock(){this._mutable=!1}unlock(){this._mutable=!0}_modify(){if(!this._mutable)throw new g}_modifyContent(){this._modify()}}}class _ extends Error{}function F(e){return e.toLowerCase()}function A(e){return e.toUpperCase()}function b(e){return e.charAt(0).toUpperCase()+e.slice(1)}function T(e,t){return e.startsWith(t)||(e=t+e),e}const y=new Map;function v(e,t){return y.get(e)||t}function D(e){return new(i().Property)(F(e))}function E(e){return class extends e{constructor(...e){super(...e),this._subscribers=[]}subscribe(e){this._subscribers.push(e)}unsubscribe(e){const t=this._subscribers.indexOf(e);-1!==t&&this._subscribers.splice(t,1)}_notifySubscribers(...e){for(const t of this._subscribers)t(...e)}}}class C extends(E(m(class{}))){constructor(e,t=null){super(),this._name=A(e),this._value=t}get name(){return this._name}get value(){return this._value}set value(e){this._modifyContent(),this._value=e}getFirstValue(){return this.isMultiValue()?this.value.length>0?this.value[0]:null:this.value}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}isMultiValue(){return Array.isArray(this._value)}clone(){const e=new this.constructor(this._name);return this.isMultiValue()?e.value=this._value.slice():e.value=this._value,e}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class w extends(E(m(class{}))){constructor(e){if(new.target===w)throw new TypeError("Cannot instantiate abstract class AbstractValue");super(),this._innerValue=e}toICALJs(){return this._innerValue}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class k extends w{get rawValue(){return this._innerValue.value}set rawValue(e){this._modifyContent(),this._innerValue.value=e}get value(){return this._innerValue.decodeValue()}set value(e){this._modifyContent(),this._innerValue.setEncodedValue(e)}clone(){return k.fromRawValue(this._innerValue.value)}static fromICALJs(e){return new k(e)}static fromRawValue(e){const t=new(i().Binary)(e);return k.fromICALJs(t)}static fromDecodedValue(e){const t=new(i().Binary);return t.setEncodedValue(e),k.fromICALJs(t)}}class S extends w{get weeks(){return this._innerValue.weeks}set weeks(e){if(this._modifyContent(),e<0)throw new TypeError("Weeks cannot be negative, use isNegative instead");this._innerValue.weeks=e}get days(){return this._innerValue.days}set days(e){if(this._modifyContent(),e<0)throw new TypeError("Days cannot be negative, use isNegative instead");this._innerValue.days=e}get hours(){return this._innerValue.hours}set hours(e){if(this._modifyContent(),e<0)throw new TypeError("Hours cannot be negative, use isNegative instead");this._innerValue.hours=e}get minutes(){return this._innerValue.minutes}set minutes(e){if(this._modifyContent(),e<0)throw new TypeError("Minutes cannot be negative, use isNegative instead");this._innerValue.minutes=e}get seconds(){return this._innerValue.seconds}set seconds(e){if(this._modifyContent(),e<0)throw new TypeError("Seconds cannot be negative, use isNegative instead");this._innerValue.seconds=e}get isNegative(){return this._innerValue.isNegative}set isNegative(e){this._modifyContent(),this._innerValue.isNegative=!!e}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(e){this._modifyContent(),this._innerValue.fromSeconds(e)}compare(e){return this._innerValue.compare(e.toICALJs())}addDuration(e){this._modifyContent(),this.totalSeconds+=e.totalSeconds,this._innerValue.normalize()}subtractDuration(e){this._modifyContent(),this.totalSeconds-=e.totalSeconds,this._innerValue.normalize()}clone(){return S.fromICALJs(this._innerValue.clone())}static fromICALJs(e){return new S(e)}static fromSeconds(e){const t=i().Duration.fromSeconds(e);return new S(t)}static fromData(e){const t=i().Duration.fromData(e);return new S(t)}}class x extends w{get year(){return this._innerValue.year}set year(e){this._modifyContent(),this._innerValue.year=e}get month(){return this._innerValue.month}set month(e){if(this._modifyContent(),e<1||e>12)throw new TypeError("Month out of range");this._innerValue.month=e}get day(){return this._innerValue.day}set day(e){if(this._modifyContent(),e<1||e>31)throw new TypeError("Day out of range");this._innerValue.day=e}get hour(){return this._innerValue.hour}set hour(e){if(this._modifyContent(),e<0||e>23)throw new TypeError("Hour out of range");this._innerValue.hour=e}get minute(){return this._innerValue.minute}set minute(e){if(this._modifyContent(),e<0||e>59)throw new TypeError("Minute out of range");this._innerValue.minute=e}get second(){return this._innerValue.second}set second(e){if(this._modifyContent(),e<0||e>59)throw new TypeError("Second out of range");this._innerValue.second=e}get timezoneId(){return this._innerValue.zone.tzid&&"floating"!==this._innerValue.zone.tzid&&"UTC"===this._innerValue.zone.tzid?this._innerValue.zone.tzid:this._innerValue.timezone?this._innerValue.timezone:this._innerValue.zone.tzid||null}get isDate(){return this._innerValue.isDate}set isDate(e){this._modifyContent(),this._innerValue.isDate=!!e,e&&(this._innerValue.hour=0,this._innerValue.minute=0,this._innerValue.second=0)}get unixTime(){return this._innerValue.toUnixTime()}get jsDate(){return this._innerValue.toJSDate()}addDuration(e){this._innerValue.addDuration(e.toICALJs())}subtractDateWithoutTimezone(e){const t=this._innerValue.subtractDate(e.toICALJs());return S.fromICALJs(t)}subtractDateWithTimezone(e){const t=this._innerValue.subtractDateTz(e.toICALJs());return S.fromICALJs(t)}compare(e){return this._innerValue.compare(e.toICALJs())}compareDateOnlyInGivenTimezone(e,t){return this._innerValue.compareDateOnlyTz(e.toICALJs(),t.toICALTimezone())}getInTimezone(e){const t=this._innerValue.convertToZone(e.toICALTimezone());return x.fromICALJs(t)}getICALTimezone(){return this._innerValue.zone}getInICALTimezone(e){const t=this._innerValue.convertToZone(e);return x.fromICALJs(t)}getInUTC(){const e=this._innerValue.convertToZone(i().Timezone.utcTimezone);return x.fromICALJs(e)}silentlyReplaceTimezone(e){this._modify(),this._innerValue=new(i().Time)({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate,timezone:e})}replaceTimezone(e){this._modifyContent(),this._innerValue=i().Time.fromData({year:this.year,month:this.month,day:this.day,hour:this.hour,minute:this.minute,second:this.second,isDate:this.isDate},e.toICALTimezone())}utcOffset(){return this._innerValue.utcOffset()}isFloatingTime(){return"floating"===this._innerValue.zone.tzid}clone(){return x.fromICALJs(this._innerValue.clone())}static fromICALJs(e){return new x(e)}static fromJSDate(e,t=!1){const n=i().Time.fromJSDate(e,t);return x.fromICALJs(n)}static fromData(e,t){const n=i().Time.fromData(e,t?t.toICALTimezone():void 0);return x.fromICALJs(n)}}x.SUNDAY=i().Time.SUNDAY,x.MONDAY=i().Time.MONDAY,x.TUESDAY=i().Time.TUESDAY,x.WEDNESDAY=i().Time.WEDNESDAY,x.THURSDAY=i().Time.THURSDAY,x.FRIDAY=i().Time.FRIDAY,x.SATURDAY=i().Time.SATURDAY,x.DEFAULT_WEEK_START=x.MONDAY;class N extends w{constructor(...e){super(...e),this._start=x.fromICALJs(this._innerValue.start),this._end=null,this._duration=null}get start(){return this._start}set start(e){this._modifyContent(),this._start=e,this._innerValue.start=e.toICALJs()}get end(){return this._end||(this._duration&&(this._duration.lock(),this._duration=null),this._innerValue.end=this._innerValue.getEnd(),this._end=x.fromICALJs(this._innerValue.end),this._innerValue.duration=null,this.isLocked()&&this._end.lock()),this._end}set end(e){this._modifyContent(),this._innerValue.duration=null,this._innerValue.end=e.toICALJs(),this._end=e}get duration(){return this._duration||(this._end&&(this._end.lock(),this._end=null),this._innerValue.duration=this._innerValue.getDuration(),this._duration=S.fromICALJs(this._innerValue.duration),this._innerValue.end=null,this.isLocked()&&this._duration.lock()),this._duration}set duration(e){this._modifyContent(),this._innerValue.end=null,this._innerValue.duration=e.toICALJs(),this._duration=e}lock(){super.lock(),this.start.lock(),this._end&&this._end.lock(),this._duration&&this._duration.lock()}unlock(){super.unlock(),this.start.unlock(),this._end&&this._end.unlock(),this._duration&&this._duration.unlock()}clone(){return N.fromICALJs(this._innerValue.clone())}static fromICALJs(e){return new N(e)}static fromDataWithEnd(e){const t=i().Period.fromData({start:e.start.toICALJs(),end:e.end.toICALJs()});return N.fromICALJs(t)}static fromDataWithDuration(e){const t=i().Period.fromData({start:e.start.toICALJs(),duration:e.duration.toICALJs()});return N.fromICALJs(t)}}const R=["SECONDLY","MINUTELY","HOURLY","DAILY","WEEKLY","MONTHLY","YEARLY"];class O extends w{constructor(e,t){super(e),this._until=t}get interval(){return this._innerValue.interval}set interval(e){this._modifyContent(),this._innerValue.interval=parseInt(e,10)}get weekStart(){return this._innerValue.wkst}set weekStart(e){if(this._modifyContent(),e<x.SUNDAY||e>x.SATURDAY)throw new TypeError("Weekstart out of range");this._innerValue.wkst=e}get until(){return!this._until&&this._innerValue.until&&(this._until=x.fromICALJs(this._innerValue.until)),this._until}set until(e){this._modifyContent(),this._until&&this._until.lock(),this._until=e,this._innerValue.count=null,this._innerValue.until=e.toICALJs()}get count(){return this._innerValue.count}set count(e){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=parseInt(e,10)}get frequency(){return this._innerValue.freq}set frequency(e){if(this._modifyContent(),!R.includes(e))throw new TypeError("Unknown frequency");this._innerValue.freq=e}setToInfinite(){this._modifyContent(),this._until&&(this._until.lock(),this._until=null),this._innerValue.until=null,this._innerValue.count=null}isFinite(){return this._innerValue.isFinite()}isByCount(){return this._innerValue.isByCount()}addComponent(e,t){this._modifyContent(),this._innerValue.addComponent(e,t)}setComponent(e,t){this._modifyContent(),0===t.length?delete this._innerValue.parts[e.toUpperCase()]:this._innerValue.setComponent(e,t)}removeComponent(e){delete this._innerValue.parts[A(e)]}getComponent(e){return this._innerValue.getComponent(e)}isRuleValid(){return!0}lock(){super.lock(),this._until&&this._until.lock()}unlock(){super.unlock(),this._until&&this._until.unlock()}clone(){return O.fromICALJs(this._innerValue.clone())}static fromICALJs(e,t=null){return new O(e,t)}static fromData(e){let t=null;e.until&&(t=e.until,e.until=e.until.toICALJs());const n=i().Recur.fromData(e);return O.fromICALJs(n,t)}}class M extends w{get hours(){return this._innerValue.hours}set hours(e){this._modifyContent(),this._innerValue.hours=e}get minutes(){return this._innerValue.minutes}set minutes(e){this._modifyContent(),this._innerValue.minutes=e}get factor(){return this._innerValue.factor}set factor(e){if(this._modifyContent(),1!==e&&-1!==e)throw new TypeError("Factor may only be set to 1 or -1");this._innerValue.factor=e}get totalSeconds(){return this._innerValue.toSeconds()}set totalSeconds(e){this._modifyContent(),this._innerValue.fromSeconds(e)}compare(e){return this._innerValue.compare(e.toICALJs())}clone(){return M.fromICALJs(this._innerValue.clone())}static fromICALJs(e){return new M(e)}static fromData(e){const t=new(i().UtcOffset);return t.fromData(e),M.fromICALJs(t)}static fromSeconds(e){const t=i().UtcOffset.fromSeconds(e);return M.fromICALJs(t)}}class B extends Error{}class L extends(E(m(class{}))){constructor(e,t=null,n=[],r=null,a=null){super(),this._name=A(e),this._value=t,this._parameters=new Map,this._root=r,this._parent=a,this._setParametersFromConstructor(n),t instanceof w&&t.subscribe((()=>this._notifySubscribers()))}get name(){return this._name}get value(){return this._value}set value(e){this._modifyContent(),this._value=e,e instanceof w&&e.subscribe((()=>this._notifySubscribers()))}get root(){return this._root}set root(e){this._modify(),this._root=e}get parent(){return this._parent}set parent(e){this._modify(),this._parent=e}getFirstValue(){return this.isMultiValue()?this.value.length>0?this.value[0]:null:this.value}*getValueIterator(){this.isMultiValue()?yield*this.value.slice()[Symbol.iterator]():yield this.value}addValue(e){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");this._modifyContent(),this.value.push(e)}hasValue(e){if(!this.isMultiValue())throw new TypeError("This is not a multivalue property");return this.value.includes(e)}removeValue(e){if(!this.hasValue(e))return;this._modifyContent();const t=this.value.indexOf(e);this.value.splice(t,1)}setParameter(e){this._modify(),this._parameters.set(e.name,e),e.subscribe((()=>this._notifySubscribers()))}getParameter(e){return this._parameters.get(A(e))}*getParametersIterator(){yield*this._parameters.values()}getParameterFirstValue(e){const t=this.getParameter(e);return t instanceof C?t.isMultiValue()?t.value[0]:t.value:null}hasParameter(e){return this._parameters.has(A(e))}deleteParameter(e){this._modify(),this._parameters.delete(A(e))}updateParameterIfExist(e,t){if(this._modify(),this.hasParameter(e)){this.getParameter(e).value=t}else{const n=new C(A(e),t);this.setParameter(n)}}isMultiValue(){return Array.isArray(this._value)}isDecoratedValue(){return this.isMultiValue()?this._value[0]instanceof w:this._value instanceof w}lock(){super.lock();for(const e of this.getParametersIterator())e.lock();if(this.isDecoratedValue())for(const e of this.getValueIterator())e.lock()}unlock(){super.unlock();for(const e of this.getParametersIterator())e.unlock();if(this.isDecoratedValue())for(const e of this.getValueIterator())e.unlock()}clone(){const e=[];for(const t of this.getParametersIterator())e.push(t.clone());return new this.constructor(this.name,this._cloneValue(),e,this.root,this.parent)}_cloneValue(){return this.isDecoratedValue()?this.isMultiValue()?this._value.map((e=>e.clone())):this._value.clone():this.isMultiValue()?this._value.slice():this._value}_setParametersFromConstructor(e){e.forEach((e=>{e instanceof C||(e=new C(e[0],e[1])),this.setParameter(e)}))}static fromICALJs(e,t=null,n=null){if(!(e instanceof i().Property))throw new _;let r;if(e.isDecorated){const t=function(e){switch(F(e)){case"binary":return k;case"date":case"date-time":return x;case"duration":return S;case"period":return N;case"recur":return O;case"utc-offset":return M;default:throw new B}}(e.getFirstValue().icaltype);r=e.isMultiValue?e.getValues().map((e=>t.fromICALJs(e))):t.fromICALJs(e.getFirstValue())}else r=e.isMultiValue?e.getValues():e.getFirstValue();const a=[];return Object.keys(Object.assign({},e.toJSON()[1])).forEach((t=>{"TZID"!==A(t)&&a.push([t,e.getParameter(t)])})),new this(e.name,r,a,t,n)}toICALJs(){const e=D(F(this.name));this.isMultiValue()?this.isDecoratedValue()?e.setValues(this.value.map((e=>e.toICALJs()))):e.setValues(this.value):this.isDecoratedValue()?e.setValue(this.value.toICALJs()):e.setValue(this.value);for(const t of this.getParametersIterator())e.setParameter(F(t.name),t.value);const t=this.getFirstValue();return t instanceof x&&"floating"!==t.timezoneId&&"UTC"!==t.timezoneId&&!t.isDate&&e.setParameter("tzid",t.timezoneId),e}_modifyContent(){super._modifyContent(),this._notifySubscribers()}}class Y extends L{get formatType(){return this.getParameterFirstValue("FMTTYPE")}set formatType(e){this.updateParameterIfExist("FMTTYPE",e)}get uri(){return this._value instanceof k?null:this._value}set uri(e){this.value=e}get encoding(){return this._value instanceof k?"BASE64":null}get data(){return this._value instanceof k?this._value.value:null}set data(e){this.value instanceof k?this.value.value=e:this.value=k.fromDecodedValue(e)}toICALJs(){const e=super.toICALJs();return this._value instanceof k&&e.setParameter("ENCODING","BASE64"),e}static fromData(e,t=null){const n=k.fromDecodedValue(e),r=new Y("ATTACH",n);return t&&(r.formatType=t),r}static fromLink(e,t=null){const n=new Y("ATTACH",e);return t&&(n.formatType=t),n}}class j extends L{get role(){const e=["CHAIR","REQ-PARTICIPANT","OPT-PARTICIPANT","NON-PARTICIPANT"];if(this.hasParameter("ROLE")){const t=this.getParameterFirstValue("ROLE");if(e.includes(t))return t}return"REQ-PARTICIPANT"}set role(e){this.updateParameterIfExist("ROLE",e)}get userType(){const e=["INDIVIDUAL","GROUP","RESOURCE","ROOM","UNKNOWN"];if(this.hasParameter("CUTYPE")){const t=this.getParameterFirstValue("CUTYPE");return e.includes(t)?t:"UNKNOWN"}return"INDIVIDUAL"}set userType(e){this.updateParameterIfExist("CUTYPE",e)}get rsvp(){if(this.hasParameter("RSVP")){return"TRUE"===A(this.getParameterFirstValue("RSVP"))}return!1}set rsvp(e){this.updateParameterIfExist("RSVP",e?"TRUE":"FALSE")}get commonName(){return this.getParameterFirstValue("CN")}set commonName(e){this.updateParameterIfExist("CN",e)}get participationStatus(){let e;e=this.parent?this.parent.name:"VEVENT";const t={VEVENT:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED"],VJOURNAL:["NEEDS-ACTION","ACCEPTED","DECLINED"],VTODO:["NEEDS-ACTION","ACCEPTED","DECLINED","TENTATIVE","DELEGATED","COMPLETED","IN-PROCESS"]};if(this.hasParameter("PARTSTAT")){const n=this.getParameterFirstValue("PARTSTAT");return t[e].includes(n)?n:"NEEDS-ACTION"}return"NEEDS-ACTION"}set participationStatus(e){this.updateParameterIfExist("PARTSTAT",e)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(e){this.updateParameterIfExist("LANGUAGE",e)}get email(){return this.value}set email(e){this.value=T(e,"mailto:")}isOrganizer(){return"ORGANIZER"===this._name}static fromNameAndEMail(e,t,n=!1){const r=n?"ORGANIZER":"ATTENDEE";return t=T(t,"mailto:"),new j(r,t,[["CN",e]])}static fromNameEMailRoleUserTypeAndRSVP(e,t,n,r,a,i=!1){const o=i?"ORGANIZER":"ATTENDEE";return t=T(t,"mailto:"),new j(o,t,[["CN",e],["ROLE",n],["CUTYPE",r],["RSVP",a?"TRUE":"FALSE"]])}}i().design.icalendar.property.conference={defaultType:"uri"},i().design.icalendar.param.feature={valueType:"cal-address",multiValue:","};class I extends L{*getFeatureIterator(){if(!this.hasParameter("FEATURE"))return;const e=this.getParameter("FEATURE");yield*e.getValueIterator()}listAllFeatures(){return this.hasParameter("FEATURE")?this.getParameter("FEATURE").value.slice():[]}addFeature(e){if(this._modify(),this.hasParameter("FEATURE")){if(this.hasFeature(e))return;this.getParameter("FEATURE").value.push(e)}else this.updateParameterIfExist("FEATURE",[e])}removeFeature(e){if(this._modify(),!this.hasFeature(e))return;const t=this.getParameter("FEATURE"),n=t.value.indexOf(e);t.value.splice(n,1)}clearAllFeatures(){this.deleteParameter("FEATURE")}hasFeature(e){if(!this.hasParameter("FEATURE"))return!1;const t=this.getParameter("FEATURE");return!!Array.isArray(t.value)&&t.value.includes(e)}get label(){return this.getParameterFirstValue("LABEL")}set label(e){this.updateParameterIfExist("LABEL",e)}get uri(){return this.value}set uri(e){this.value=e}toICALJs(){const e=super.toICALJs();return e.setParameter("value","URI"),e}static fromURILabelAndFeatures(e,t=null,n=null){const r=new I("CONFERENCE",e);return t&&r.updateParameterIfExist("label",t),n&&r.updateParameterIfExist("feature",n),r}}class P extends L{get type(){const e=["FREE","BUSY","BUSY-UNAVAILABLE","BUSY-TENTATIVE"];if(this.hasParameter("FBTYPE")){const t=this.getParameterFirstValue("FBTYPE");if(e.includes(t))return t}return"BUSY"}set type(e){this.updateParameterIfExist("FBTYPE",e)}static fromPeriodAndType(e,t){return new P("FREEBUSY",e,[["fbtype",t]])}}class Z extends L{constructor(e,t=[0,0],n=[],r=null,a=null){super(e,t,n,r,a)}get latitude(){return this._value[0]}set latitude(e){this._modifyContent(),"number"!=typeof e&&(e=parseFloat(e)),this._value[0]=e}get longitude(){return this._value[1]}set longitude(e){this._modifyContent(),"number"!=typeof e&&(e=parseFloat(e)),this._value[1]=e}toICALJs(){const e=D(F(this.name));return e.setValue(this.value),this._parameters.forEach((t=>{e.setParameter(F(t.name),t.value)})),e}static fromPosition(e,t){return new Z("GEO",[e,t])}}class U extends Y{get display(){return this.getParameterFirstValue("DISPLAY")||"BADGE"}set display(e){this.updateParameterIfExist("DISPLAY",e)}static fromData(e,t=null,n=null){const r=k.fromDecodedValue(e),a=new U("IMAGE",r);return t&&(a.display=t),n&&(a.formatType=n),a}static fromLink(e,t=null,n=null){const r=new U("IMAGE",e);return t&&(r.display=t),n&&(r.formatType=n),r}}class H extends L{get relationType(){const e=["PARENT","CHILD","SIBLING"],t="PARENT";if(this.hasParameter("RELTYPE")){const n=this.getParameterFirstValue("RELTYPE");return e.includes(n)?n:t}return t}set relationType(e){this.updateParameterIfExist("RELTYPE",e)}get relatedId(){return this.value}set relatedId(e){this.value=e}static fromRelTypeAndId(e,t){return new H("RELATED-TO",t,[["RELTYPE",e]])}}class G extends L{constructor(e,t=["1","Pending"],n=[],r=null,a=null){super(e,t,n,r,a)}get statusCode(){return parseFloat(this.value[0])}set statusCode(e){this._modifyContent(),this.value[0]=e.toString(),e===Math.floor(e)&&(this.value[0]+=".0")}get statusMessage(){return this.value[1]}set statusMessage(e){this._modifyContent(),this.value[1]=e}get exceptionData(){return this.value[2]?this.value[2]:null}set exceptionData(e){this._modifyContent(),this.value[2]=e}isPending(){return this.statusCode>=1&&this.statusCode<2}isSuccessful(){return this.statusCode>=2&&this.statusCode<3}isClientError(){return this.statusCode>=3&&this.statusCode<4}isSchedulingError(){return this.statusCode>=4&&this.statusCode<5}toICALJs(){const e=D(F(this.name));return e.setValue(this.value),this._parameters.forEach((t=>{e.setParameter(F(t.name),t.value)})),e}static fromCodeAndMessage(e,t){return new G("REQUEST-STATUS",[e.toString(),t])}}G.SUCCESS=[2,"Success"],G.SUCCESS_FALLBACK=[2.1,"Success, but fallback taken on one or more property values."],G.SUCCESS_PROP_IGNORED=[2.2,"Success; invalid property ignored."],G.SUCCESS_PROPPARAM_IGNORED=[2.3,"Success; invalid property parameter ignored."],G.SUCCESS_NONSTANDARD_PROP_IGNORED=[2.4,"Success; unknown, non-standard property ignored."],G.SUCCESS_NONSTANDARD_PROPPARAM_IGNORED=[2.5,"Success; unknown, non-standard property value ignored."],G.SUCCESS_COMP_IGNORED=[2.6,"Success; invalid calendar component ignored."],G.SUCCESS_FORWARDED=[2.7,"Success; request forwarded to Calendar User."],G.SUCCESS_REPEATING_IGNORED=[2.8,"Success; repeating event ignored. Scheduled as a single component."],G.SUCCESS_TRUNCATED_END=[2.9,"Success; truncated end date time to date boundary."],G.SUCCESS_REPEATING_VTODO_IGNORED=[2.1,"Success; repeating VTODO ignored. Scheduled as a single VTODO."],G.SUCCESS_UNBOUND_RRULE_CLIPPED=[2.11,"Success; unbounded RRULE clipped at some finite number of instances."],G.CLIENT_INVALID_PROPNAME=[3,"Invalid property name."],G.CLIENT_INVALID_PROPVALUE=[3.1,"Invalid property value."],G.CLIENT_INVALID_PROPPARAM=[3.2,"Invalid property parameter."],G.CLIENT_INVALID_PROPPARAMVALUE=[3.3,"Invalid property parameter value."],G.CLIENT_INVALUD_CALENDAR_COMP_SEQ=[3.4,"Invalid calendar component sequence."],G.CLIENT_INVALID_DATE_TIME=[3.5,"Invalid date or time."],G.CLIENT_INVALID_RRULE=[3.6,"Invalid rule."],G.CLIENT_INVALID_CU=[3.7,"Invalid Calendar User."],G.CLIENT_NO_AUTHORITY=[3.8,"No authority."],G.CLIENT_UNSUPPORTED_VERSION=[3.9,"Unsupported version."],G.CLIENT_TOO_LARGE=[3.1,"Request entity too large."],G.CLIENT_REQUIRED_COMP_OR_PROP_MISSING=[3.11,"Required component or property missing."],G.CLIENT_UNKNOWN_COMP_OR_PROP=[3.12,"Unknown component or property found."],G.CLIENT_UNSUPPORTED_COMP_OR_PROP=[3.13,"Unsupported component or property found."],G.CLIENT_UNSUPPORTED_CAPABILITY=[3.14,"Unsupported capability."],G.SCHEDULING_EVENT_CONFLICT=[4,"Event conflict. Date/time is busy."],G.SERVER_REQUEST_NOT_SUPPORTED=[5,"Request not supported."],G.SERVER_SERVICE_UNAVAILABLE=[5.1,"Service unavailable."],G.SERVER_INVALID_CALENDAR_SERVICE=[5.2,"Invalid calendar service."],G.SERVER_NO_SCHEDULING_FOR_USER=[5.3,"No scheduling support for user."];class q extends L{get alternateText(){return this.getParameterFirstValue("ALTREP")}set alternateText(e){this.updateParameterIfExist("ALTREP",e)}get language(){return this.getParameterFirstValue("LANGUAGE")}set language(e){this.updateParameterIfExist("LANGUAGE",e)}}class $ extends L{get related(){return this.hasParameter("RELATED")?this.getParameterFirstValue("RELATED"):"START"}set related(e){this.updateParameterIfExist("RELATED",e)}get value(){return super.value}set value(e){super.value=e,e instanceof x&&(this.deleteParameter("RELATED"),super.value=e.getInUTC())}isRelative(){return this.getFirstValue()instanceof S}static fromAbsolute(e){return new $("TRIGGER",e)}static fromRelativeAndRelated(e,t=!0){return new $("TRIGGER",e,[["RELATED",t?"START":"END"]])}}function z(e){switch(A(e)){case"ATTACH":return Y;case"ATTENDEE":case"ORGANIZER":return j;case"CONFERENCE":return I;case"FREEBUSY":return P;case"GEO":return Z;case"IMAGE":return U;case"RELATED-TO":return H;case"REQUEST-STATUS":return G;case"TRIGGER":return $;case"COMMENT":case"CONTACT":case"DESCRIPTION":case"LOCATION":case"SUMMARY":return q;default:return L}}class W extends(E(m(class{}))){constructor(e,t=[],n=[],r=null,a=null){super(),this._name=A(e),this._properties=new Map,this._components=new Map,this._root=r,this._parent=a,this._setPropertiesFromConstructor(t),this._setComponentsFromConstructor(n)}get name(){return this._name}get root(){return this._root}set root(e){this._modify(),this._root=e;for(const t of this.getPropertyIterator())t.root=e;for(const t of this.getComponentIterator())t.root=e}get parent(){return this._parent}set parent(e){this._modify(),this._parent=e}getFirstProperty(e){return this._properties.has(A(e))?this._properties.get(A(e))[0]:null}getFirstPropertyFirstValue(e){const t=this.getFirstProperty(e);return t?t.getFirstValue():null}updatePropertyWithValue(e,t){this._modify();const n=this.getFirstProperty(e);if(n)n.value=t;else{const n=new(z(e))(e,t,[],this,this.root);this.addProperty(n)}}*getPropertyIterator(e=null){if(e){if(!this.hasProperty(e))return;yield*this._properties.get(A(e)).slice()[Symbol.iterator]()}else for(const e of this._properties.keys())yield*this.getPropertyIterator(e)}*_getAllOfPropertyByLang(e,t){for(const n of this.getPropertyIterator(e))n.getParameterFirstValue("LANGUAGE")===t&&(yield n)}_getFirstOfPropertyByLang(e,t){return this._getAllOfPropertyByLang(e,t).next().value||null}addProperty(e){if(this._modify(),e.root=this.root,e.parent=this,this._properties.has(e.name)){const t=this._properties.get(e.name);if(-1!==t.indexOf(e))return!1;t.push(e)}else this._properties.set(e.name,[e]);return e.subscribe((()=>this._notifySubscribers())),!0}hasProperty(e){return this._properties.has(A(e))}deleteProperty(e){if(this._modify(),!this._properties.has(e.name))return!1;const t=this._properties.get(e.name),n=t.indexOf(e);return-1!==n&&(-1!==n&&1===t.length?this._properties.delete(e.name):t.splice(n,1),!0)}deleteAllProperties(e){return this._modify(),this._properties.delete(A(e))}getFirstComponent(e){return this.hasComponent(e)?this._components.get(A(e))[0]:null}*getComponentIterator(e){if(e){if(!this.hasComponent(e))return;yield*this._components.get(A(e)).slice()[Symbol.iterator]()}else for(const e of this._components.keys())yield*this.getComponentIterator(e)}addComponent(e){if(this._modify(),e.root=this.root,e.parent=this,this._components.has(e.name)){const t=this._components.get(e.name);if(-1!==t.indexOf(e))return!1;t.push(e)}else this._components.set(e.name,[e]);return e.subscribe((()=>this._notifySubscribers())),!0}hasComponent(e){return this._components.has(A(e))}deleteComponent(e){if(this._modify(),!this._components.has(e.name))return!1;const t=this._components.get(e.name),n=t.indexOf(e);return-1!==n&&(-1!==n&&1===t.length?this._components.delete(e.name):t.splice(n,1),!0)}deleteAllComponents(e){return this._modify(),this._components.delete(A(e))}lock(){super.lock();for(const e of this.getPropertyIterator())e.lock();for(const e of this.getComponentIterator())e.lock()}unlock(){super.unlock();for(const e of this.getPropertyIterator())e.unlock();for(const e of this.getComponentIterator())e.unlock()}clone(){const e=[];for(const t of this.getPropertyIterator())e.push(t.clone());const t=