Sindbad~EG File Manager

Current Path : /home/bintopia/public_html/p/assets/
Upload File :
Current File : /home/bintopia/public_html/p/assets/pushnotifications.js

/*! Push Notifications - 2.3.9 (c) United Internet, 2023 */
var OAO;(()=>{var e={527:(e,t,n)=>{var r=n(187).EventEmitter,o="EXTERNAL_EVENT",i=Object.assign({},r.prototype,{emitExternalEvent:function(e){this.emit(o,e)},addEventListener:function(e){this.on(o,e)}});e.exports=i},385:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(i,"string"),"symbol"===t(a)?a:String(a)),o)}var i,a}var r=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null!=t&&(t=t||{},this.hash=t.hash)}var t,r,o;return t=e,(r=[{key:"setHash",value:function(e){e&&(this.hash=e)}},{key:"getHash",value:function(){return this.hash}},{key:"equals",value:function(e){return e.getHash()===this.getHash()}}])&&n(t.prototype,r),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},98:e=>{function t(e){return t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(e)}function n(e,n){for(var r=0;r<n.length;r++){var o=n[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,n){if("object"!==t(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,n||"default");if("object"!==t(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}(i,"string"),"symbol"===t(a)?a:String(a)),o)}var i,a}var r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.setTopic(t),this.setSubscribed(n)}var t,r,o;return t=e,(r=[{key:"setTopic",value:function(e){e&&(this.topic=e)}},{key:"getTopic",value:function(){return this.topic}},{key:"setSubscribed",value:function(e){null==e&&(this.subscribed=!1),this.subscribed=e}},{key:"isSubscribed",value:function(){return this.subscribed}},{key:"equals",value:function(e){return e.getTopic()===this.getTopic()&&e.isSubscribed()===this.isSubscribed()}}])&&n(t.prototype,r),o&&n(t,o),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=r},819:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}var i=n(98),a=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),null!=t){(t=t||{}).topics=t.topics||[];for(var n=[],r=0;r<t.topics.length;r++){var o=t.topics[r];n.push(new i(o.topic,o.subscribed))}this.topics=n}}var t,n,r;return t=e,(n=[{key:"getTopics",value:function(){return void 0===this.topics||null===this.topics?[]:this.topics}},{key:"equals",value:function(e){if(e.getTopics().length!==this.getTopics().length)return!1;var t,n=e.getTopics().length;for(t=0;t<n;t+=1){var r=e.getTopics()[t],o=this.getTopics()[t];if(!r.equals(o))return!1}return!0}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=a},185:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var c=n(206),u=n(724),f=n(711),l=n(385),p=n(187).EventEmitter,d="change",h="oao.push.CustomerStore",g=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(p,e);var t,n,r,s=a(p);function p(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,p),(e=s.call(this)).loading=!1,e.error=!1,e.data=!1,e}return t=p,(n=[{key:"_getData",value:function(){return u.isCached(h)?new l(u.getData(h)):null}},{key:"update",value:function(e,t,n){if(n||!u.isCached(h)||u.shouldRefresh(h,10)){this.loading=!0;var r=this;e||(e="tenants/IONOS_"+f.getMarket()+"/frontend/info"),c.getServiceData(e,(function(e){r.error=!1,r.loading=!1,u.updateData(h,e),!1===e&&(u.resetData(h),r.error=!0);var t=new l(e);r.data&&"function"==typeof r.data.equals&&r.data.equals(t)||(r.data=t,r.emit(d))}),(function(){r.loading=!1,r.error=!0}),"POST"===t)}}},{key:"getCustomerInfo",value:function(){return this._getData()}},{key:"getHash",value:function(){return null==this._getData()?null:this._getData().getHash()}},{key:"hasData",value:function(){if(!u.isCached(h))return!1;var e=u.getData(h);return null!=e}},{key:"isLoading",value:function(){return this.loading}},{key:"isError",value:function(){return this.error}},{key:"resetData",value:function(){u.resetData(h),this.data=!1}},{key:"addChangeListener",value:function(e){var t=this;return this.on(d,e),function(){t.removeListener(d,e)}}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),p}(p);e.exports=new g},426:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(){return i="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var o=Object.getOwnPropertyDescriptor(r,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},i.apply(this,arguments)}function a(e,t){return a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}var u=n(206),f=n(724),l=n(915),p=n(711),d=n(185),h=n(527),g=n(187).EventEmitter,y="change",v="oao.pushnotifications.token",m="oao.push.DeviceStore",b="tenants/",S=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a(e,t)}(S,e);var t,n,r,g=s(S);function S(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,S),g.call(this)}return t=S,(n=[{key:"registerUpdateDevice",value:function(e,t,n){(!0!==n||f.shouldRefresh(m,360))&&u.putServiceData(b+"IONOS_"+p.getMarket()+"/frontend/devices/"+e,{locale:p.getLanguage(),type:t,client:p.getClient()},(function(){l.localStorage.setItem(v,d.getHash()),l.sessionStorage.setItem(m+"_updated",new Date),h.emitExternalEvent((!0===n?"UPDATE":"REGISTRATION")+".SUCCESS")}),(function(){h.emitExternalEvent((!0===n?"UPDATE":"REGISTRATION")+".ERROR")}))}},{key:"emit",value:function(e){i(c(S.prototype),"emit",this).call(this,e)}},{key:"unregisterDevice",value:function(e){u.deleteServiceData(b+"IONOS_"+p.getMarket()+"/frontend/devices/"+e,!1,(function(){l.localStorage.removeItem(v),h.emitExternalEvent("DEREGISTRATION.SUCCESS")}),(function(){h.emitExternalEvent("DEREGISTRATION.ERROR")}))}},{key:"addChangeListener",value:function(e){var t=this;return this.on(y,e),function(){t.removeListener(y,e)}}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),S}(g);e.exports=new S},711:(e,t,n)=>{var r=n(497),o=r.Market,i=r.Mode,a=r.Language,s=r.DefaultLanguageForMarket,c=n(187).EventEmitter,u="change",f=o.DE,l=i.PROD,p=!1,d=!1,h=!1,g=!1,y=Object.assign({},c.prototype,{emitChange:function(){this.emit(u)},addChangeListener:function(e){var t=this;return this.on(u,e),function(){t.removeListener(u,e)}},getBasePath:function(){return g},setBasePath:function(e){e||(e=!1);var t=e!==g;return g=e,!!t},getMarket:function(){return f},setMarket:function(e){e?(e=e.toUpperCase(),e=o[e]||o.DE):e=o.DE;var t=e!==f;f=e,t&&this.emitChange()},getLanguage:function(){return p||(s[f]||a.de_DE)},setLanguage:function(e){if(e){var t=a[e];if(t){var n=p!==t;p=t,n&&this.emitChange()}else p=!1}else p=!1},getMode:function(){return l},setMode:function(e){e?(e=e.toUpperCase(),e=i[e]||i.PROD):e=i.PROD;var t=e!==l;l=e,t&&this.emitChange()},getPageName:function(){return d},setPageName:function(e){if(e){var t=d!==e;d=e,t&&this.emitChange()}else e=!1},getClient:function(){return h},setClient:function(e){if(e){var t=h!==e;h=e,t&&this.emitChange()}else e=!1},isProd:function(){return l===i.PROD},getVersion:function(){return"2.3.9"}});e.exports=y},722:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}function a(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=s(e);if(t){var i=s(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function s(e){return s=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},s(e)}var c=n(206),u=n(724),f=n(711),l=n(527),p=n(819),d=n(187).EventEmitter,h="change",g="oao.push.SubscriptionStore",y="tenants/",v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(d,e);var t,n,r,s=a(d);function d(){var e;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,d),(e=s.call(this)).loading=!1,e.error=!1,e.data=!1,l.addEventListener((function(t){"REGISTRATION.SUCCESS"===t&&e.update(!1,!1,!0)})),e}return t=d,(n=[{key:"_getData",value:function(){return u.isCached(g)?new p(u.getData(g)):null}},{key:"update",value:function(e,t,n){if(n||!u.isCached(g)||u.shouldRefresh(g,10)){this.loading=!0;var r=this;e||(e=y+"IONOS_"+f.getMarket()+"/frontend/topics");var o=function(e){r.error=!1,r.loading=!1,u.updateData(g,e),!1===e&&(u.resetData(g),r.error=!0);var t=new p(e);r.data&&"function"==typeof r.data.equals&&r.data.equals(t)||(r.data=t,r.emit(h))},i=function(){r.loading=!1,r.error=!0};"PUT"!==t?"DELETE"!==t?c.getServiceData(e,o,i,"POST"===t):c.deleteServiceData(e,!1,o,i):c.putServiceData(e,!1,o,i)}}},{key:"getTopics",value:function(){return this._getData()}},{key:"hasData",value:function(){if(!u.isCached(g))return!1;var e=u.getData(g);return null!=e}},{key:"isLoading",value:function(){return this.loading}},{key:"isError",value:function(){return this.error}},{key:"resetData",value:function(){u.resetData(g),this.data=!1}},{key:"subscribeTopic",value:function(e){var t=y+"IONOS_"+f.getMarket()+"/frontend/topics/";this.update(t+e,"PUT",!0)}},{key:"unsubscribeTopic",value:function(e){var t=y+"IONOS_"+f.getMarket()+"/frontend/topics/";this.update(t+e,"DELETE",!0)}},{key:"subscribeAllTopics",value:function(){this.setAllSubscribeStatus(!0)}},{key:"unsubscribeAllTopics",value:function(){this.setAllSubscribeStatus(!1)}},{key:"setAllSubscribeStatus",value:function(e){if(this.getTopics()){for(var t=this.getTopics(),n=0;n<t.topics.length;n++)t.topics[n].setSubscribed(e);this.loading=!0;var r=this,o=y+"IONOS_"+f.getMarket()+"/frontend/topics";c.putServiceData(o,t,(function(e){r.error=!1,r.loading=!1,u.updateData(g,e),!1===e&&(u.resetData(g),r.error=!0);var t=new p(e);r.data&&"function"==typeof r.data.equals&&r.data.equals(t)||(r.data=t,r.emit(h))}),(function(){r.loading=!1,r.error=!0}))}}},{key:"addChangeListener",value:function(e){var t=this;return this.on(h,e),function(){t.removeListener(h,e)}}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),d}(d);e.exports=new v},931:(e,t,n)=>{var r=n(724),o=n(497),i=n(187).EventEmitter,a="change",s="oao.push.TOKEN",c=o.TokenIdentChange,u=!1,f=Object.assign({},i.prototype,{emitChange:function(){this.emit(a)},addChangeListener:function(e){var t=this;return this.on(a,e),function(){t.removeListener(a,e)}},getToken:function(){return!1===u&&(u=r.getData(s)||!1),u},setToken:function(e){e||(e=!1),!1===u&&(u=r.getData(s)||!1);var t=e!==u;return u=e,t?(r.updateData(s,e),this.emitChange(),r.updateData(c,!0),!0):(r.updateData(c,!1),!1)}});e.exports=f},724:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}var i=n(820),a=n(242),s=n(915),c=n(497).TokenIdentChange,u=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"resetData",value:function(e){s.sessionStorage.removeItem(e+"_updated"),s.sessionStorage.removeItem(e)}},{key:"updateData",value:function(e,t){void 0!==t&&(s.sessionStorage.setItem(e+"_updated",new Date),s.sessionStorage.setItem(e,this._stringifyJson(t)))}},{key:"isCached",value:function(e){var t=s.sessionStorage.getItem(e,null);return!(null==t)}},{key:"getData",value:function(e){var t=s.sessionStorage.getItem(e);return!1===t?null:this._parseJson(t,e)}},{key:"shouldRefresh",value:function(e,t){if(!s.sessionStorage.isAvailable())return!0;var n=this.getData(c);if(!0===n||null===n)return!0;var r=s.sessionStorage.getItem(e+"_updated");if(void 0===r||null==r)return!0;var o=new Date(r),i=(new Date).getTime()-o.getTime();return Math.floor(i/6e4)>t}},{key:"_stringifyJson",value:function(e){var t=!1;try{t=i.stringify(e)}catch(e){a.reportError(e),t=!1}return t}},{key:"_parseJson",value:function(e,t){var n=!1;try{n=i.parse(e)}catch(e){a.reportError(e),n=!1,this.resetData(t)}return n}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=new u},497:(e,t,n)=>{var r=n(584);e.exports={Mode:r.Mode,Market:r.Market,Language:r.Language,DefaultLanguageForMarket:r.DefaultLanguageForMarket,DateFormat:{CA:"MM/dd/yyyy",DE:"dd.MM.yyyy",ES:"dd/MM/yyyy",FR:"dd/MM/yyyy",IT:"dd/MM/yyyy",MX:"dd/MM/yyyy",PL:"dd.MM.yyyy",UK:"dd/MM/yyyy",US:"MM/dd/yyyy"},TokenIdentChange:"oao.push.TOKEN_changed"}},420:(e,t,n)=>{var r=n(187).EventEmitter,o="push",i=n(885);i.OAO=i.OAO||{},i.OAO.q=i.OAO.q||{};var a=i.OAO.q.notifications||[],s=Object.assign({},r.prototype,{addPushListener:function(e){this.on(o,e)},removePushListener:function(e){this.removeListener(o,e)},push:function(e){var t=e||[];if(t&&t.length&&!(t.length<1)){var n=t[0];t=t.slice(1),this.emit(o,n,t)}},process:function(){for(var e=0;e<a.length;e+=1){var t=[];t.push(a[e]),s.push.apply(s,t)}i.OAO.q.notifications=c,a=[]}}),c={push:function(e){s.push(e)}};e.exports=s},206:(e,t,n)=>{function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(i=o.key,a=void 0,a=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(i,"string"),"symbol"===r(a)?a:String(a)),o)}var i,a}var i=n(818),a=n(318),s=n(820),c=n(242),u=n(711),f=n(931),l=n(497).Mode,p=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,(n=[{key:"_buildServiceUrl",value:function(e){var t="frontend-services.ionos.com";u.getMode()===l.LOCAL&&(t="localhost:7080/");var n={protocol:"https",host:t,path:"/pushnotifications/"+e};return u.getMode()===l.LOCAL&&(n.protocol="http"),a.build(n)}},{key:"getServiceData",value:function(e,t,n,r){var o=this;e=this._buildServiceUrl(e);try{var a={Accept:"application/json, text/plain, */*"};if(!1!==f.getToken()&&(a["X-Frontend-Token"]=f.getToken()),r)return void i.post(e,!1,(function(e,r,i){(i=i||{}).status=i.status||200,i.status<200||i.status>299?n.apply(o,[i.status]):"function"==typeof t&&t.apply(o,[o._parseJson(e)])}),n,a);i.get(e,(function(e,r,i){(i=i||{}).status=i.status||200,i.status<200||i.status>299?n.apply(o,[i.status]):"function"==typeof t&&t.apply(o,[o._parseJson(e)])}),n,a)}catch(e){c.reportError(e),"function"==typeof n&&n.apply(this,[e.message])}}},{key:"postServiceData",value:function(e,t,n,r){var o=this;e=this._buildServiceUrl(e);try{var a={};!1!==f.getToken()&&(a["X-Frontend-Token"]=f.getToken()),i.post(e,t,(function(e,t,i){(i=i||{}).status=i.status||200,i.status<200||i.status>299?r.apply(o,[i.status]):"function"==typeof n&&n.apply(o,[o._parseJson(e)])}),r,a)}catch(e){c.reportError(e),"function"==typeof r&&r.apply(this,[e.message])}}},{key:"putServiceData",value:function(e,t,n,r){var o=this;e=this._buildServiceUrl(e);try{var a={};!1!==f.getToken()&&(a["X-Frontend-Token"]=f.getToken()),i.put(e,t,(function(e,t,i){(i=i||{}).status=i.status||200,i.status<200||i.status>299?r.apply(o,[i.status]):"function"==typeof n&&n.apply(o,[o._parseJson(e)])}),r,a)}catch(e){c.reportError(e),"function"==typeof r&&r.apply(this,[e.message])}}},{key:"deleteServiceData",value:function(e,t,n,r){var o=this;e=this._buildServiceUrl(e);try{var a={};!1!==f.getToken()&&(a["X-Frontend-Token"]=f.getToken()),i.del(e,t,(function(e,t,i){(i=i||{}).status=i.status||200,i.status<200||i.status>299?r.apply(o,[i.status]):"function"==typeof n&&n.apply(o,[o._parseJson(e)])}),r,a)}catch(e){c.reportError(e),"function"==typeof r&&r.apply(this,[e.message])}}},{key:"_parseJson",value:function(e){var t=!1;if(e){try{t=s.parse(e)}catch(e){c.reportError(e),t=!1}return t}}}])&&o(t.prototype,n),r&&o(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();e.exports=new p},584:e=>{e.exports={Mode:{PROD:"PROD",STAGE:"STAGE",LOCAL:"LOCAL",DEMO:"DEMO"},Market:{CA:"CA",DE:"DE",ES:"ES",FR:"FR",IT:"IT",MX:"MX",PL:"PL",UK:"UK",GB:"UK",US:"US",NL:"NL"},Language:{en_CA:"en_CA",de_DE:"de_DE",es_ES:"es_ES",fr_FR:"fr_FR",it_IT:"it_IT",es_MX:"es_MX",pl_PL:"pl_PL",en_GB:"en_GB",en_US:"en_US",nl_NL:"nl_NL",sv_SE:"sv_SE"},Tenant:{IONOS:"IONOS_DE",IONOS_DE:"IONOS_DE",IONOS_ES:"IONOS_ES",IONOS_FR:"IONOS_FR",IONOS_IT:"IONOS_IT",IONOS_MX:"IONOS_MX",IONOS_US:"IONOS_US",IONOS_UK:"IONOS_UK",IONOS_GB:"IONOS_UK",IONOS_CA:"IONOS_CA",IONOS_PL:"IONOS_PL",IONOS_CLOUD_DE:"IONOS_CLOUD_DE",IONOS_CLOUD_ES:"IONOS_CLOUD_ES",IONOS_CLOUD_FR:"IONOS_CLOUD_FR",IONOS_CLOUD_IT:"IONOS_CLOUD_IT",IONOS_CLOUD_MX:"IONOS_CLOUD_MX",IONOS_CLOUD_US:"IONOS_CLOUD_US",IONOS_CLOUD_UK:"IONOS_CLOUD_UK",IONOS_CLOUD_GB:"IONOS_CLOUD_UK",IONOS_CLOUD_CA:"IONOS_CLOUD_CA",STRATO_DE:"STRATO_DE",STRATO_NL:"STRATO_NL",STRATO_ES:"STRATO_ES",STRATO_EA:"STRATO_EA",STRATO_FR:"STRATO_FR",STRATO_IT:"STRATO_IT",STRATO_GB:"STRATO_GB",STRATO_SE:"STRATO_SE",SEDO_DE:"SEDO_DE",SEDO_ES:"SEDO_ES",SEDO_UK:"SEDO_UK",SEDO_FR:"SEDO_FR",SEDO_US:"SEDO_US",ARSYS:"ARSYS",ARSYS_FR:"ARSYS_FR",ARSYS_ES_EN:"ARSYS_ES_EN",FASTHOSTS:"FASTHOSTS",HOME_PL:"HOME_PL",HOME_PL_LEGACY:"HOME_PL_LEGACY",PIENSA_SOLUTIONS:"PIENSA_SOLUTIONS",UNITED_DOMAINS:"UNITED_DOMAINS",WORLD4YOU_DE:"WORLD4YOU_DE",WORLD4YOU_US:"WORLD4YOU_US",INTERNETX_DE:"INTERNETX_DE",INTERNETX_US:"INTERNETX_US"},DefaultLanguageForMarket:{CA:"en_CA",DE:"de_DE",ES:"es_ES",FR:"fr_FR",IT:"it_IT",MX:"es_MX",PL:"pl_PL",UK:"en_GB",US:"en_US",NL:"nl_NL"}}},159:(e,t,n)=>{var r=n(885),o=r.document,i="oao-hidden",a=/[^\x20\t\r\n\f]+/g,s=" ",c=function(e,t,n){e&&(e.addEventListener?e.addEventListener(t,n):e.attachEvent&&e.attachEvent("on"+t,n))},u=function(e,t,n){e&&(e.removeEventListener?e.removeEventListener(t,n):e.detachEvent&&e.detachEvent("on"+t,n))};function f(e){return(e.match(a)||[]).join(" ")}function l(e){var t=e.className;return t instanceof SVGAnimatedString?t.baseVal:t}function p(e,t){if(e&&t){Array.isArray(t)||(t=[t]);for(var n,r=s+f(l(e)||"")+s,o=0;o<t.length;o+=1)(n=t[o])&&r.indexOf(s+n+s)<0&&(r+=n+s);var i=f(r);i!==r&&(e.className=i)}}function d(e,t){if(e&&t){Array.isArray(t)||(t=[t]);for(var n,r=s+f(l(e)||"")+s,o=0;o<t.length;o+=1)if(n=t[o])for(;r.indexOf(s+n+s)>-1;)r=r.replace(s+n+s,s);var i=f(r);i!==r&&(e.className=i)}}function h(e,t){return!(!e||!t)&&(s+f(l(e)||"")+s).indexOf(s+t+s)>-1}e.exports={getElementByIdInclShadows:function e(t,n=document){let r=n.getElementById(t)||!1;if(!1!==r)return r;const o=Array.from(n.querySelectorAll("*")).map((e=>e.shadowRoot)).filter(Boolean);for(let n=0;n<o.length;n++){const r=e(t,o[n]);if(!1!==r)return r}return!1},querySelectorAllInclShadows:function e(t,n=document.body){const r=Array.from(n.querySelectorAll("*")).map((e=>e.shadowRoot)).filter(Boolean).map((n=>e(t,n)));return Array.from(n.querySelectorAll(t)).concat(r).flat()},onReady:function(e){if("complete"===o.readyState)r.setTimeout(e,0);else{var t=function t(){u(o,"DOMContentLoaded",t),u(r,"load",t),e()};c(o,"DOMContentLoaded",t),c(r,"load",t)}},on:c,off:u,stopPropagation:function(e){(e||(e=window.event))&&(void 0!==e.stopPropagation?e.stopPropagation():e.cancelBubble=!0)},selectAll:function(e,t){return t||(t=o),"function"==typeof t.querySelectorAll?t.querySelectorAll(e):[]},select:function(e,t){return t||(t=o),"function"==typeof t.querySelector||"object"==typeof t.querySelector?t.querySelector(e):null},show:function(e){d(e,i)},hide:function(e){p(e,i)},isNode:function(e){return!(!e||null==e.nodeType)},closest:function(e,t){if(!e)return null;var n,r=!1;if(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"].some((function(e){return"function"==typeof document.body[e]&&(r=e,!0)})),!r)return null;if(e[r](t))return e;for(;e;){if((n=e.parentElement)&&n[r](t))return n;e=n}return null},createNode:function(e,t){if(!e)throw new Error("The tag name is missing!");var n=document.createElement(e);if(!t)return n;for(var r in t)t.hasOwnProperty(r)&&n.setAttribute(r,t[r]);return n},getOffset:function(e){if(!e)throw new Error("No node given!");var t=!1;void 0!==window.pageXOffset&&(t=window.pageXOffset),!1===t&&(t=window.document.documentElement.scrollLeft||window.document.body.scrollLeft);var n=!1;void 0!==window.pageYOffset&&(n=window.pageYOffset),!1===n&&(n=window.document.documentElement.scrollTop||window.document.body.scrollTop),this.elementOrParentIsFixed(e)&&(t=0,n=0);var r,o,i=e.getBoundingClientRect(),a=Math.round(i.left)+document.body.offsetLeft+t,s=Math.round(i.top)+document.body.offsetTop+n;if(e instanceof SVGElement){var c=e.getBoundingClientRect();r=c.width,o=c.height}else r=e.offsetWidth,o=e.offsetHeight;return{left:a,top:s,right:a+r,bottom:s+o}},elementOrParentIsFixed:function(e){for(var t=e,n=[];t&&"body"!==t.nodeName.toLowerCase();)n.unshift(t),t=t.parentNode;for(var r=0;r<n.length;r++){var o=n[r]||{};if("fixed"===window.getComputedStyle(o).getPropertyValue("position").toLowerCase()||"sticky"===window.getComputedStyle(o).getPropertyValue("position").toLowerCase()||"-webkit-sticky"===window.getComputedStyle(o).getPropertyValue("position").toLowerCase())return!0}return!1},scrollToPosition:function(e,t,n){var r=n||document.scrollingElement||document.documentElement;if(t<=0)r.scrollTop=e;else{var o=(e-r.scrollTop)/t*10,i=this;setTimeout((function(){r.scrollTop=r.scrollTop+o,r.scrollTop!==e&&i.scrollToPosition(e,t-10,n)}),10)}},elementInViewPort:function(e){if(!e)throw new Error("No node given!");var t=e.getBoundingClientRect();return t.y>90&&t.bottom<=(window.innerHeight||document.documentElement.clientHeight)},hasClass:h,addClass:p,removeClass:d,toggleClass:function(e,t){h(e,t)?d(e,t):p(e,t)}}},820:(e,t,n)=>{var r=n(885);e.exports={stringify:function(e){return!(!r.JSON||"function"!=typeof r.JSON.stringify)&&r.JSON.stringify(e)},parse:function(e){return!(!r.JSON||"function"!=typeof r.JSON.parse)&&r.JSON.parse(e)}}},242:(e,t,n)=>{var r,o,i=n(929),a=n(885),s=(a.document,"UNKNOWN"),c=s,u=s,f=!1,l=!1,p=!1,d=!1,h=!1,g=!1;function y(){return a&&a.performance&&"function"==typeof a.performance.now?a.performance.now():(new Date).getTime()}var v=y();e.exports={setClient:function(e){c=e||s},setClientVersion:function(e){u=e||s},setSentryDsn:function(e){f=e||!1},setSentryProject:function(e){l=e||!1},setSentryEnvironment:function(e){p=e||!1,g&&this.init()},init:function(){if(!1!==f)if(a.Sentry&&a.Sentry.BrowserClient&&window.Sentry.Hub){var e={dsn:f,environment:p||"prod",beforeSend:e=>e.extra&&e.extra.oaoClient&&e.extra.oaoClient===c?e:null};!1!==l&&(e.release=l+"@"+u);var t=new a.Sentry.BrowserClient(e);(d=new a.Sentry.Hub).bindClient(t),g=!0,!1!==h&&(this.reportError(h,r,o),h=!1,r=!1,o=!1)}else{var n=i.getDefaultHostnameByScriptTag()||"frontend-services.ionos.com/t";i.loadScript("https://"+n+"/sentry/bundle.min.js",function(){this.init()}.bind(this))}},reportError:function(e,t,n){if(!1===d)return this.init(),h=e,r=t,void(o=n);d.withScope((r=>{r.setExtra("oaoClient",c),r.setExtra("oaoClientVersion",u),r.setExtra("oaoTimeSinceInit",function(e){if(!e)return!1;var t=y();return!!t&&Math.ceil(t-e)}(v)),r.setExtra("oaoUrl",window.location.href||""),t&&r.setExtras(t),n&&r.setTags(n),d.captureException(e)}))},getCurrentTime:y}},929:(e,t,n)=>{var r=n(242),o=n(885).document;e.exports={loadScript:function(e,t){var n,i,a,s=!1;return(i=o.createElement("script")).type="text/javascript",i.async=!0,"function"==typeof t&&(a=function(){if(!(s||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState)){s=!0;try{t()}catch(e){r.reportError(e)}i.onload=null,i.onreadystatechange=null}},i.onload=a,i.onreadystatechange=a),i.src=e,(n=o.getElementsByTagName("script")[0]).parentNode.insertBefore(i,n),i},getDefaultHostnameByScriptTag:function(){var e=function(){var e=document,t=[];return e.querySelectorAll&&(t=e.querySelectorAll("#oaotag")).length>0?t[0]:null}();if(!e)return!1;var t=e.src;if(!t)return!1;var n=t.replace("https://","");"//"===(n=n.replace("http://","")).substr(0,2)&&(n=n.substr(2));var r=n.indexOf("/tag");return-1!==r&&(n=n.substr(0,r))}}},915:(e,t,n)=>{var r=n(885);function o(e){this.storage=e,this.isAvailable()||(this.storage=!1)}o.prototype={isAvailable:function(){var e="TEST";try{return this.storage.setItem(e,e),this.storage.removeItem(e),!0}catch(e){return!1}},getItem:function(e,t){return this.storage?this.storage.getItem(e):void 0!==t&&t},setItem:function(e,t){return!!this.storage&&this.storage.setItem(e,t)},removeItem:function(e){return!!this.storage&&this.storage.removeItem(e)},clear:function(){if(this.storage)return this.storage.clear()}},e.exports={sessionStorage:new o(r.sessionStorage),localStorage:new o(r.localStorage)}},318:(e,t,n)=>{var r=n(885).document;e.exports={build:function(e,t){var n,r,o=encodeURIComponent,i="",a="";if(!e)return!1;if(i+=e.protocol?e.protocol+":":"",!(r=e.host))return!1;if("/"===r.substr(-1)&&(r=r.substr(0,r.length-1)),i+=!0===t?r+"/":"//"+r+"/",e.path&&("/"===e.path.substr(0,1)&&(e.path=e.path.substr(1)),i+=e.path),e.query){for(n in e.query)e.query.hasOwnProperty(n)&&(a+=""===a?"?":"&",a+=n+"="+o(e.query[n]));i+=a}return i},getQueryParams:function(e){var t,n,o,i,a,s={};if(!e){var c=r.location;if(!c)return s;if(!(e=c.search))return s}if("?"===e.substr(0,1)&&(e=e.substr(1)),t=e.split("&"))for(o=0;o<t.length;o+=1)t[o]&&2===(n=t[o].split("=")).length&&(i=n[0],a=n[1],i&&a&&(s[i]=a));return s},ensureSameProtocol:function(e){var t=r.location.protocol;return!!e&&(0===e.indexOf(t)||("http:"===t?e=e.replace("https://","http://"):"https:"===t&&(e=e.replace("http://","https://"))),e)},isFullQualified:function(e){return!!e&&(0===e.indexOf("http://")||0===e.indexOf("https://"))}}},818:(e,t,n)=>{var r=n(820),o=n(318),i="Accept",a="Content-Type",s="application/json",c=function(e,t,n,r,i,a,s){if(!t)return!1;var c;if(e=e||"GET",a=a||{},"undefined"!=typeof XMLHttpRequest){for(var u in(c=new XMLHttpRequest).open(e,t,!0),!0!==s&&(c.withCredentials=!0),c.onload=function(){var e=c.response;"function"==typeof n&&n.apply(this,[e,c.statusText,c])},c.onerror=function(){"function"==typeof r&&r.apply(this,[c.statusText,c])},a)a.hasOwnProperty(u)&&c.setRequestHeader(u,a[u]);i?c.send(i):c.send()}else"undefined"!=typeof XDomainRequest&&((c=new XDomainRequest).onprogress=function(){},c.ontimeout=function(){window.setTimeout((function(){"function"==typeof r&&r.apply(this,[void 0,c])}),1)},c.onerror=function(){window.setTimeout((function(){"function"==typeof r&&r.apply(this,[void 0,c])}),1)},c.onload=function(){var e=c.responseText;window.setTimeout((function(){"function"==typeof n&&n.apply(this,[e,void 0,c])}),1)},c.open(e,o.ensureSameProtocol(t)),i?c.send(i):c.send())},u=function(e){return void 0===e[a]&&(e[a]=s),void 0===e[i]&&(e[i]=s),e};e.exports={post:function(e,t,n,o,i,a){i=u(i=i||{}),t&&(t=r.stringify(t)),c("POST",e,n,o,t,i,a)},put:function(e,t,n,o,i,a){i=u(i=i||{}),t&&(t=r.stringify(t)),c("PUT",e,n,o,t,i,a)},del:function(e,t,n,o,i,a){i=u(i=i||{}),t&&(t=r.stringify(t)),c("DELETE",e,n,o,t,i,a)},get:function(e,t,n,r,o){c("GET",e,t,n,!1,r,o)}}},187:e=>{"use strict";var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var o=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}e.exports=i,e.exports.once=function(e,t){return new Promise((function(n,r){function o(n){e.removeListener(t,i),r(n)}function i(){"function"==typeof e.removeListener&&e.removeListener("error",o),n([].slice.call(arguments))}g(e,t,i,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&g(e,"error",t,n)}(e,o,{once:!0})}))},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function c(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function u(e,t,n,r){var o,i,a,u;if(s(n),void 0===(i=e._events)?(i=e._events=Object.create(null),e._eventsCount=0):(void 0!==i.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),i=e._events),a=i[t]),void 0===a)a=i[t]=n,++e._eventsCount;else if("function"==typeof a?a=i[t]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(o=c(e))>0&&a.length>o&&!a.warned){a.warned=!0;var f=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=e,f.type=t,f.count=a.length,u=f,console&&console.warn&&console.warn(u)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function l(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=f.bind(r);return o.listener=n,r.wrapFn=o,o}function p(e,t,n){var r=e._events;if(void 0===r)return[];var o=r[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):h(o,o.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function h(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function g(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,(function o(i){r.once&&e.removeEventListener(t,o),n(i)}))}}Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");a=e}}),i.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||o(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var o="error"===e,i=this._events;if(void 0!==i)o=o&&void 0===i.error;else if(!o)return!1;if(o){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var c=i[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var u=c.length,f=h(c,u);for(n=0;n<u;++n)r(f[n],this,t)}return!0},i.prototype.addListener=function(e,t){return u(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return u(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,l(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,l(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,o,i,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,i=n.length-1;i>=0;i--)if(n[i]===t||n[i].listener===t){a=n[i].listener,o=i;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,i=Object.keys(n);for(r=0;r<i.length;++r)"removeListener"!==(o=i[r])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return p(this,e,!0)},i.prototype.rawListeners=function(e){return p(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},885:e=>{"use strict";e.exports=window}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var r={};(()=>{"use strict";n.d(r,{default:()=>Ir});const e=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);o<128?t[n++]=o:o<2048?(t[n++]=o>>6|192,t[n++]=63&o|128):55296==(64512&o)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(o=65536+((1023&o)<<10)+(1023&e.charCodeAt(++r)),t[n++]=o>>18|240,t[n++]=o>>12&63|128,t[n++]=o>>6&63|128,t[n++]=63&o|128):(t[n++]=o>>12|224,t[n++]=o>>6&63|128,t[n++]=63&o|128)}return t},t={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){const o=e[t],i=t+1<e.length,a=i?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,u=o>>2,f=(3&o)<<4|a>>4;let l=(15&a)<<2|c>>6,p=63&c;s||(p=64,i||(l=64)),r.push(n[u],n[f],n[l],n[p])}return r.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(e(t),n)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):function(e){const t=[];let n=0,r=0;for(;n<e.length;){const o=e[n++];if(o<128)t[r++]=String.fromCharCode(o);else if(o>191&&o<224){const i=e[n++];t[r++]=String.fromCharCode((31&o)<<6|63&i)}else if(o>239&&o<365){const i=((7&o)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(i>>10)),t[r++]=String.fromCharCode(56320+(1023&i))}else{const i=e[n++],a=e[n++];t[r++]=String.fromCharCode((15&o)<<12|(63&i)<<6|63&a)}}return t.join("")}(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();const n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){const i=n[e.charAt(t++)],a=t<e.length?n[e.charAt(t)]:0;++t;const s=t<e.length?n[e.charAt(t)]:64;++t;const c=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==a||null==s||null==c)throw new o;const u=i<<2|a>>4;if(r.push(u),64!==s){const e=a<<4&240|s>>2;if(r.push(e),64!==c){const e=s<<6&192|c;r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class o extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const i=function(n){return function(n){const r=e(n);return t.encodeByteArray(r,!0)}(n).replace(/\./g,"")},a=function(e){try{return t.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};const s=()=>function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==n.g)return n.g;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__,c=()=>{try{return s()||(()=>{if("undefined"==typeof process||void 0===process.env)return;const e=process.env.__FIREBASE_DEFAULTS__;return e?JSON.parse(e):void 0})()||(()=>{if("undefined"==typeof document)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}const t=e&&a(e[1]);return t&&JSON.parse(t)})()}catch(e){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`)}},u=()=>{var e;return null===(e=c())||void 0===e?void 0:e.config};class f{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),"function"==typeof e&&(this.promise.catch((()=>{})),1===e.length?e(t):e(t,n))}}}function l(){try{return"object"==typeof indexedDB}catch(e){return!1}}function p(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",o=self.indexedDB.open(r);o.onsuccess=()=>{o.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},o.onupgradeneeded=()=>{n=!1},o.onerror=()=>{var e;t((null===(e=o.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}class d extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,d.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,h.prototype.create)}}class h{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,o=this.errors[e],i=o?function(e,t){return e.replace(g,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(o,n):"Error",a=`${this.serviceName}: ${i} (${r}).`;return new d(r,a,n)}}const g=/\{\$([^}]+)}/g;function y(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const o of n){if(!r.includes(o))return!1;const n=e[o],i=t[o];if(v(n)&&v(i)){if(!y(n,i))return!1}else if(n!==i)return!1}for(const e of r)if(!n.includes(e))return!1;return!0}function v(e){return null!==e&&"object"==typeof e}function m(e){return e&&e._delegate?e._delegate:e}class b{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}const S="[DEFAULT]";class w{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){const e=new f;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{const n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;const n=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),r=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(!this.isInitialized(n)&&!this.shouldAutoInitialize()){if(r)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:n})}catch(e){if(r)return null;throw e}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(function(e){return"EAGER"===e.instantiationMode}(e))try{this.getOrInitializeService({instanceIdentifier:S})}catch(e){}for(const[e,t]of this.instancesDeferred.entries()){const n=this.normalizeInstanceIdentifier(e);try{const e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch(e){}}}}clearInstance(e=S){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter((e=>"INTERNAL"in e)).map((e=>e.INTERNAL.delete())),...e.filter((e=>"_delete"in e)).map((e=>e._delete()))])}isComponentSet(){return null!=this.component}isInitialized(e=S){return this.instances.has(e)}getOptions(e=S){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(const[e,t]of this.instancesDeferred.entries()){n===this.normalizeInstanceIdentifier(e)&&t.resolve(r)}return r}onInit(e,t){var n;const r=this.normalizeInstanceIdentifier(t),o=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;o.add(e),this.onInitCallbacks.set(r,o);const i=this.instances.get(r);return i&&e(i,r),()=>{o.delete(e)}}invokeOnInitCallbacks(e,t){const n=this.onInitCallbacks.get(t);if(n)for(const r of n)try{r(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:(r=e,r===S?void 0:r),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch(e){}var r;return n||null}normalizeInstanceIdentifier(e=S){return this.component?this.component.multipleInstances?e:S:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class E{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const t=this.getProvider(e.name);if(t.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const t=new w(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const O=[];var T;!function(e){e[e.DEBUG=0]="DEBUG",e[e.VERBOSE=1]="VERBOSE",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.SILENT=5]="SILENT"}(T||(T={}));const _={debug:T.DEBUG,verbose:T.VERBOSE,info:T.INFO,warn:T.WARN,error:T.ERROR,silent:T.SILENT},I=T.INFO,D={[T.DEBUG]:"log",[T.VERBOSE]:"log",[T.INFO]:"info",[T.WARN]:"warn",[T.ERROR]:"error"},C=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),o=D[t];if(!o)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[o](`[${r}]  ${e.name}:`,...n)};const k=(e,t)=>t.some((t=>e instanceof t));let A,L;const N=new WeakMap,R=new WeakMap,P=new WeakMap,j=new WeakMap,M=new WeakMap;let B={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return R.get(e);if("objectStoreNames"===t)return e.objectStoreNames||P.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return F(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function x(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(L||(L=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(H(this),t),F(N.get(this))}:function(...t){return F(e.apply(H(this),t))}:function(t,...n){const r=e.call(H(this),t,...n);return P.set(r,t.sort?t.sort():[t]),F(r)}}function U(e){return"function"==typeof e?x(e):(e instanceof IDBTransaction&&function(e){if(R.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));R.set(e,t)}(e),k(e,A||(A=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,B):e)}function F(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(F(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&N.set(t,e)})).catch((()=>{})),M.set(t,e),t}(e);if(j.has(e))return j.get(e);const t=U(e);return t!==e&&(j.set(e,t),M.set(t,e)),t}const H=e=>M.get(e);const K=["get","getKey","getAll","getAllKeys","count"],$=["put","add","delete","clear"],q=new Map;function V(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(q.get(t))return q.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=$.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!K.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return q.set(t,i),i}B=(e=>({...e,get:(t,n,r)=>V(t,n)||e.get(t,n,r),has:(t,n)=>!!V(t,n)||e.has(t,n)}))(B);class G{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map((e=>{if(function(e){const t=e.getComponent();return"VERSION"===(null==t?void 0:t.type)}(e)){const t=e.getImmediate();return`${t.library}/${t.version}`}return null})).filter((e=>e)).join(" ")}}const W="@firebase/app",z="0.9.15",X=new class{constructor(e){this.name=e,this._logLevel=I,this._logHandler=C,this._userLogHandler=null,O.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in T))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?_[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,T.DEBUG,...e),this._logHandler(this,T.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,T.VERBOSE,...e),this._logHandler(this,T.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,T.INFO,...e),this._logHandler(this,T.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,T.WARN,...e),this._logHandler(this,T.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,T.ERROR,...e),this._logHandler(this,T.ERROR,...e)}}("@firebase/app"),J="[DEFAULT]",Y={[W]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","fire-js":"fire-js",firebase:"fire-js-all"},Q=new Map,Z=new Map;function ee(e,t){try{e.container.addComponent(t)}catch(n){X.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function te(e){const t=e.name;if(Z.has(t))return X.debug(`There were multiple attempts to register component ${t}.`),!1;Z.set(t,e);for(const t of Q.values())ee(t,e);return!0}function ne(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const re=new h("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}."});class oe{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new b("app",(()=>this),"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw re.create("app-deleted",{appName:this._name})}}function ie(e,t={}){let n=e;if("object"!=typeof t){t={name:t}}const r=Object.assign({name:J,automaticDataCollectionEnabled:!1},t),o=r.name;if("string"!=typeof o||!o)throw re.create("bad-app-name",{appName:String(o)});if(n||(n=u()),!n)throw re.create("no-options");const i=Q.get(o);if(i){if(y(n,i.options)&&y(r,i.config))return i;throw re.create("duplicate-app",{appName:o})}const a=new E(o);for(const e of Z.values())a.addComponent(e);const s=new oe(n,r,a);return Q.set(o,s),s}function ae(e,t,n){var r;let o=null!==(r=Y[e])&&void 0!==r?r:e;n&&(o+=`-${n}`);const i=o.match(/\s|\//),a=t.match(/\s|\//);if(i||a){const e=[`Unable to register library "${o}" with version "${t}":`];return i&&e.push(`library name "${o}" contains illegal characters (whitespace or "/")`),i&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void X.warn(e.join(" "))}te(new b(`${o}-version`,(()=>({library:o,version:t})),"VERSION"))}const se="firebase-heartbeat-database",ce=1,ue="firebase-heartbeat-store";let fe=null;function le(){return fe||(fe=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=F(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(F(a.result),e.oldVersion,e.newVersion,F(a.transaction),e)})),n&&a.addEventListener("blocked",(e=>n(e.oldVersion,e.newVersion,e))),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(e=>o(e.oldVersion,e.newVersion,e)))})).catch((()=>{})),s}(se,ce,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(ue)}}).catch((e=>{throw re.create("idb-open",{originalErrorMessage:e.message})}))),fe}async function pe(e,t){try{const n=(await le()).transaction(ue,"readwrite"),r=n.objectStore(ue);await r.put(t,de(e)),await n.done}catch(e){if(e instanceof d)X.warn(e.message);else{const t=re.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});X.warn(t.message)}}}function de(e){return`${e.name}!${e.options.appId}`}class he{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new ye(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=ge();if(null===this._heartbeatsCache&&(this._heartbeatsCache=await this._heartbeatsCachePromise),this._heartbeatsCache.lastSentHeartbeatDate!==t&&!this._heartbeatsCache.heartbeats.some((e=>e.date===t)))return this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter((e=>{const t=new Date(e.date).valueOf();return Date.now()-t<=2592e6})),this._storage.overwrite(this._heartbeatsCache)}async getHeartbeatsHeader(){if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,null===this._heartbeatsCache||0===this._heartbeatsCache.heartbeats.length)return"";const e=ge(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const o of e){const e=n.find((e=>e.agent===o.agent));if(e){if(e.dates.push(o.date),ve(n)>t){e.dates.pop();break}}else if(n.push({agent:o.agent,dates:[o.date]}),ve(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=i(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}}function ge(){return(new Date).toISOString().substring(0,10)}class ye{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!l()&&p().then((()=>!0)).catch((()=>!1))}async read(){if(await this._canUseIndexedDBPromise){return await async function(e){try{const t=await le();return await t.transaction(ue).objectStore(ue).get(de(e))}catch(e){if(e instanceof d)X.warn(e.message);else{const t=re.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});X.warn(t.message)}}}(this.app)||{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return pe(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function ve(e){return i(JSON.stringify({version:2,heartbeats:e})).length}var me;me="",te(new b("platform-logger",(e=>new G(e)),"PRIVATE")),te(new b("heartbeat",(e=>new he(e)),"PRIVATE")),ae(W,z,me),ae(W,z,"esm2017"),ae("fire-js","");ae("firebase","10.1.0","app");const be=(e,t)=>t.some((t=>e instanceof t));let Se,we;const Ee=new WeakMap,Oe=new WeakMap,Te=new WeakMap,_e=new WeakMap,Ie=new WeakMap;let De={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Oe.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Te.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ae(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Ce(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(we||(we=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Le(this),t),Ae(Ee.get(this))}:function(...t){return Ae(e.apply(Le(this),t))}:function(t,...n){const r=e.call(Le(this),t,...n);return Te.set(r,t.sort?t.sort():[t]),Ae(r)}}function ke(e){return"function"==typeof e?Ce(e):(e instanceof IDBTransaction&&function(e){if(Oe.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));Oe.set(e,t)}(e),be(e,Se||(Se=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,De):e)}function Ae(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(Ae(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&Ee.set(t,e)})).catch((()=>{})),Ie.set(t,e),t}(e);if(_e.has(e))return _e.get(e);const t=ke(e);return t!==e&&(_e.set(e,t),Ie.set(t,e)),t}const Le=e=>Ie.get(e);const Ne=["get","getKey","getAll","getAllKeys","count"],Re=["put","add","delete","clear"],Pe=new Map;function je(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Pe.get(t))return Pe.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=Re.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!Ne.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return Pe.set(t,i),i}!function(e){De=e(De)}((e=>({...e,get:(t,n,r)=>je(t,n)||e.get(t,n,r),has:(t,n)=>!!je(t,n)||e.has(t,n)})));const Me="@firebase/installations",Be="0.6.4",xe=1e4,Ue=`w:${Be}`,Fe="FIS_v2",He="https://firebaseinstallations.googleapis.com/v1",Ke=36e5,$e=new h("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function qe(e){return e instanceof d&&e.code.includes("request-failed")}function Ve({projectId:e}){return`${He}/projects/${e}/installations`}function Ge(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function We(e,t){const n=(await t.json()).error;return $e.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function ze({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}function Xe(e,{refreshToken:t}){const n=ze(e);return n.append("Authorization",function(e){return`${Fe} ${e}`}(t)),n}async function Je(e){const t=await e();return t.status>=500&&t.status<600?e():t}function Ye(e){return new Promise((t=>{setTimeout(t,e)}))}const Qe=/^[cdef][\w-]{21}$/,Ze="";function et(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){const t=(n=e,btoa(String.fromCharCode(...n)).replace(/\+/g,"-").replace(/\//g,"_"));var n;return t.substr(0,22)}(e);return Qe.test(t)?t:Ze}catch(e){return Ze}}function tt(e){return`${e.appName}!${e.appId}`}const nt=new Map;function rt(e,t){const n=tt(e);ot(n,t),function(e,t){const n=at();n&&n.postMessage({key:e,fid:t});st()}(n,t)}function ot(e,t){const n=nt.get(e);if(n)for(const e of n)e(t)}let it=null;function at(){return!it&&"BroadcastChannel"in self&&(it=new BroadcastChannel("[Firebase] FID Change"),it.onmessage=e=>{ot(e.data.key,e.data.fid)}),it}function st(){0===nt.size&&it&&(it.close(),it=null)}const ct="firebase-installations-database",ut=1,ft="firebase-installations-store";let lt=null;function pt(){return lt||(lt=function(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=Ae(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(Ae(a.result),e.oldVersion,e.newVersion,Ae(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),s}(ct,ut,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(ft)}})),lt}async function dt(e,t){const n=tt(e),r=(await pt()).transaction(ft,"readwrite"),o=r.objectStore(ft),i=await o.get(n);return await o.put(t,n),await r.done,i&&i.fid===t.fid||rt(e,t.fid),t}async function ht(e){const t=tt(e),n=(await pt()).transaction(ft,"readwrite");await n.objectStore(ft).delete(t),await n.done}async function gt(e,t){const n=tt(e),r=(await pt()).transaction(ft,"readwrite"),o=r.objectStore(ft),i=await o.get(n),a=t(i);return void 0===a?await o.delete(n):await o.put(a,n),await r.done,!a||i&&i.fid===a.fid||rt(e,a.fid),a}async function yt(e){let t;const n=await gt(e.appConfig,(n=>{const r=function(e){const t=e||{fid:et(),registrationStatus:0};return bt(t)}(n),o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine){return{installationEntry:t,registrationPromise:Promise.reject($e.create("app-offline"))}}const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},r=async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=Ve(e),o=ze(e),i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}const a={fid:n,authVersion:Fe,appId:e.appId,sdkVersion:Ue},s={method:"POST",headers:o,body:JSON.stringify(a)},c=await Je((()=>fetch(r,s)));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:Ge(e.authToken)}}throw await We("Create Installation",c)}(e,t);return dt(e.appConfig,n)}catch(n){throw qe(n)&&409===n.customData.serverCode?await ht(e.appConfig):await dt(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n);return{installationEntry:n,registrationPromise:r}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:vt(e)}:{installationEntry:t}}(e,r);return t=o.registrationPromise,o.installationEntry}));return n.fid===Ze?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function vt(e){let t=await mt(e.appConfig);for(;1===t.registrationStatus;)await Ye(100),t=await mt(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await yt(e);return n||t}return t}function mt(e){return gt(e,(e=>{if(!e)throw $e.create("installation-not-found");return bt(e)}))}function bt(e){return 1===(t=e).registrationStatus&&t.registrationTime+xe<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function St({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${Ve(e)}/${t}/authTokens:generate`}(e,n),o=Xe(e,n),i=t.getImmediate({optional:!0});if(i){const e=await i.getHeartbeatsHeader();e&&o.append("x-firebase-client",e)}const a={installation:{sdkVersion:Ue,appId:e.appId}},s={method:"POST",headers:o,body:JSON.stringify(a)},c=await Je((()=>fetch(r,s)));if(c.ok){return Ge(await c.json())}throw await We("Generate Auth Token",c)}async function wt(e,t=!1){let n;const r=await gt(e.appConfig,(r=>{if(!Ot(r))throw $e.create("not-registered");const o=r.authToken;if(!t&&function(e){return 2===e.requestStatus&&!function(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+Ke}(e)}(o))return r;if(1===o.requestStatus)return n=async function(e,t){let n=await Et(e.appConfig);for(;1===n.authToken.requestStatus;)await Ye(100),n=await Et(e.appConfig);const r=n.authToken;return 0===r.requestStatus?wt(e,t):r}(e,t),r;{if(!navigator.onLine)throw $e.create("app-offline");const t=function(e){const t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(r);return n=async function(e,t){try{const n=await St(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await dt(e.appConfig,r),n}catch(n){if(!qe(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await dt(e.appConfig,n)}else await ht(e.appConfig);throw n}}(e,t),t}}));return n?await n:r.authToken}function Et(e){return gt(e,(e=>{if(!Ot(e))throw $e.create("not-registered");const t=e.authToken;return 1===(n=t).requestStatus&&n.requestTime+xe<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var n}))}function Ot(e){return void 0!==e&&2===e.registrationStatus}async function Tt(e,t=!1){const n=e;await async function(e){const{registrationPromise:t}=await yt(e);t&&await t}(n);return(await wt(n,t)).token}function _t(e){return $e.create("missing-app-config-values",{valueName:e})}const It="installations",Dt=e=>{const t=ne(e.getProvider("app").getImmediate(),It).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await yt(t);return r?r.catch(console.error):wt(t).catch(console.error),n.fid}(t),getToken:e=>Tt(t,e)}};te(new b(It,(e=>{const t=e.getProvider("app").getImmediate(),n=function(e){if(!e||!e.options)throw _t("App Configuration");if(!e.name)throw _t("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw _t(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t);return{app:t,appConfig:n,heartbeatServiceProvider:ne(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),te(new b("installations-internal",Dt,"PRIVATE")),ae(Me,Be),ae(Me,Be,"esm2017");const Ct=(e,t)=>t.some((t=>e instanceof t));let kt,At;const Lt=new WeakMap,Nt=new WeakMap,Rt=new WeakMap,Pt=new WeakMap,jt=new WeakMap;let Mt={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return Nt.get(e);if("objectStoreNames"===t)return e.objectStoreNames||Rt.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return Ut(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function Bt(e){return e!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(At||(At=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(e)?function(...t){return e.apply(Ft(this),t),Ut(Lt.get(this))}:function(...t){return Ut(e.apply(Ft(this),t))}:function(t,...n){const r=e.call(Ft(this),t,...n);return Rt.set(r,t.sort?t.sort():[t]),Ut(r)}}function xt(e){return"function"==typeof e?Bt(e):(e instanceof IDBTransaction&&function(e){if(Nt.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",i),e.removeEventListener("abort",i)},o=()=>{t(),r()},i=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",o),e.addEventListener("error",i),e.addEventListener("abort",i)}));Nt.set(e,t)}(e),Ct(e,kt||(kt=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]))?new Proxy(e,Mt):e)}function Ut(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",o),e.removeEventListener("error",i)},o=()=>{t(Ut(e.result)),r()},i=()=>{n(e.error),r()};e.addEventListener("success",o),e.addEventListener("error",i)}));return t.then((t=>{t instanceof IDBCursor&&Lt.set(t,e)})).catch((()=>{})),jt.set(t,e),t}(e);if(Pt.has(e))return Pt.get(e);const t=xt(e);return t!==e&&(Pt.set(e,t),jt.set(t,e)),t}const Ft=e=>jt.get(e);function Ht(e,t,{blocked:n,upgrade:r,blocking:o,terminated:i}={}){const a=indexedDB.open(e,t),s=Ut(a);return r&&a.addEventListener("upgradeneeded",(e=>{r(Ut(a.result),e.oldVersion,e.newVersion,Ut(a.transaction))})),n&&a.addEventListener("blocked",(()=>n())),s.then((e=>{i&&e.addEventListener("close",(()=>i())),o&&e.addEventListener("versionchange",(()=>o()))})).catch((()=>{})),s}function Kt(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),Ut(n).then((()=>{}))}const $t=["get","getKey","getAll","getAllKeys","count"],qt=["put","add","delete","clear"],Vt=new Map;function Gt(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(Vt.get(t))return Vt.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,o=qt.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!o&&!$t.includes(n))return;const i=async function(e,...t){const i=this.transaction(e,o?"readwrite":"readonly");let a=i.store;return r&&(a=a.index(t.shift())),(await Promise.all([a[n](...t),o&&i.done]))[0]};return Vt.set(t,i),i}!function(e){Mt=e(Mt)}((e=>({...e,get:(t,n,r)=>Gt(t,n)||e.get(t,n,r),has:(t,n)=>!!Gt(t,n)||e.has(t,n)})));const Wt="/firebase-messaging-sw.js",zt="/firebase-cloud-messaging-push-scope",Xt="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",Jt="https://fcmregistrations.googleapis.com/v1",Yt="google.c.a.c_id",Qt="google.c.a.c_l",Zt="google.c.a.ts";var en,tn;function nn(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function rn(e){const t=(e+"=".repeat((4-e.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(t),r=new Uint8Array(n.length);for(let e=0;e<n.length;++e)r[e]=n.charCodeAt(e);return r}!function(e){e[e.DATA_MESSAGE=1]="DATA_MESSAGE",e[e.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION"}(en||(en={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(tn||(tn={}));const on="fcm_token_details_db",an=5,sn="fcm_token_object_Store";const cn="firebase-messaging-database",un=1,fn="firebase-messaging-store";let ln=null;function pn(){return ln||(ln=Ht(cn,un,{upgrade:(e,t)=>{if(0===t)e.createObjectStore(fn)}})),ln}async function dn(e){const t=gn(e),n=await pn(),r=await n.transaction(fn).objectStore(fn).get(t);if(r)return r;{const t=await async function(e){if("databases"in indexedDB){const e=(await indexedDB.databases()).map((e=>e.name));if(!e.includes(on))return null}let t=null;return(await Ht(on,an,{upgrade:async(n,r,o,i)=>{var a;if(r<2)return;if(!n.objectStoreNames.contains(sn))return;const s=i.objectStore(sn),c=await s.index("fcmSenderId").get(e);if(await s.clear(),c)if(2===r){const e=c;if(!e.auth||!e.p256dh||!e.endpoint)return;t={token:e.fcmToken,createTime:null!==(a=e.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"==typeof e.vapidKey?e.vapidKey:nn(e.vapidKey)}}}else if(3===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:nn(e.auth),p256dh:nn(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:nn(e.vapidKey)}}}else if(4===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:nn(e.auth),p256dh:nn(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:nn(e.vapidKey)}}}}})).close(),await Kt(on),await Kt("fcm_vapid_details_db"),await Kt("undefined"),function(e){if(!e||!e.subscriptionOptions)return!1;const{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?t:null}(e.appConfig.senderId);if(t)return await hn(e,t),t}}async function hn(e,t){const n=gn(e),r=(await pn()).transaction(fn,"readwrite");return await r.objectStore(fn).put(t,n),await r.done,t}function gn({appConfig:e}){return e.appId}const yn=new h("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invalid-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function vn(e,t){const n={method:"DELETE",headers:await bn(e)};try{const r=await fetch(`${mn(e.appConfig)}/${t}`,n),o=await r.json();if(o.error){const e=o.error.message;throw yn.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw yn.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function mn({projectId:e}){return`${Jt}/projects/${e}/registrations`}async function bn({appConfig:e,installations:t}){const n=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${n}`})}function Sn({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const o={web:{endpoint:n,auth:t,p256dh:e}};return r!==Xt&&(o.web.applicationPubKey=r),o}const wn=6048e5;async function En(e){const t=await async function(e,t){const n=await e.pushManager.getSubscription();if(n)return n;return e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:rn(t)})}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:nn(t.getKey("auth")),p256dh:nn(t.getKey("p256dh"))},r=await dn(e.firebaseDependencies);if(r){if(function(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,o=t.auth===e.auth,i=t.p256dh===e.p256dh;return n&&r&&o&&i}(r.subscriptionOptions,n))return Date.now()>=r.createTime+wn?async function(e,t){try{const n=await async function(e,t){const n=await bn(e),r=Sn(t.subscriptionOptions),o={method:"PATCH",headers:n,body:JSON.stringify(r)};let i;try{const n=await fetch(`${mn(e.appConfig)}/${t.token}`,o);i=await n.json()}catch(e){throw yn.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(i.error){const e=i.error.message;throw yn.create("token-update-failed",{errorInfo:e})}if(!i.token)throw yn.create("token-update-no-token");return i.token}(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await hn(e.firebaseDependencies,r),n}catch(t){throw await On(e),t}}(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await vn(e.firebaseDependencies,r.token)}catch(e){console.warn(e)}return Tn(e.firebaseDependencies,n)}return Tn(e.firebaseDependencies,n)}async function On(e){const t=await dn(e.firebaseDependencies);t&&(await vn(e.firebaseDependencies,t.token),await async function(e){const t=gn(e),n=(await pn()).transaction(fn,"readwrite");await n.objectStore(fn).delete(t),await n.done}(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return!n||n.unsubscribe()}async function Tn(e,t){const n=await async function(e,t){const n=await bn(e),r=Sn(t),o={method:"POST",headers:n,body:JSON.stringify(r)};let i;try{const t=await fetch(mn(e.appConfig),o);i=await t.json()}catch(e){throw yn.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(i.error){const e=i.error.message;throw yn.create("token-subscribe-failed",{errorInfo:e})}if(!i.token)throw yn.create("token-subscribe-no-token");return i.token}(e,t),r={token:n,createTime:Date.now(),subscriptionOptions:t};return await hn(e,r),r.token}function _n(e){const t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};const n=t.notification.title;n&&(e.notification.title=n);const r=t.notification.body;r&&(e.notification.body=r);const o=t.notification.image;o&&(e.notification.image=o);const i=t.notification.icon;i&&(e.notification.icon=i)}(t,e),function(e,t){if(!t.data)return;e.data=t.data}(t,e),function(e,t){var n,r,o,i,a;if(!t.fcmOptions&&!(null===(n=t.notification)||void 0===n?void 0:n.click_action))return;e.fcmOptions={};const s=null!==(o=null===(r=t.fcmOptions)||void 0===r?void 0:r.link)&&void 0!==o?o:null===(i=t.notification)||void 0===i?void 0:i.click_action;s&&(e.fcmOptions.link=s);const c=null===(a=t.fcmOptions)||void 0===a?void 0:a.analytics_label;c&&(e.fcmOptions.analyticsLabel=c)}(t,e),t}function In(e,t){const n=[];for(let r=0;r<e.length;r++)n.push(e.charAt(r)),r<t.length&&n.push(t.charAt(r));return n.join("")}function Dn(e){return yn.create("missing-app-config-values",{valueName:e})}In("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),In("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class Cn{constructor(e,t,n){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroundMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;const r=function(e){if(!e||!e.options)throw Dn("App Configuration Object");if(!e.name)throw Dn("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const e of t)if(!n[e])throw Dn(e);return{appName:e.name,projectId:n.projectId,apiKey:n.apiKey,appId:n.appId,senderId:n.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:r,installations:t,analyticsProvider:n}}_delete(){return Promise.resolve()}}async function kn(e){try{e.swRegistration=await navigator.serviceWorker.register(Wt,{scope:zt}),e.swRegistration.update().catch((()=>{}))}catch(e){throw yn.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}async function An(e,t){if(!navigator)throw yn.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw yn.create("permission-blocked");return await async function(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=Xt)}(e,null==t?void 0:t.vapidKey),await async function(e,t){if(t||e.swRegistration||await kn(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw yn.create("invalid-sw-registration");e.swRegistration=t}}(e,null==t?void 0:t.serviceWorkerRegistration),En(e)}async function Ln(e,t,n){const r=function(e){switch(e){case tn.NOTIFICATION_CLICKED:return"notification_open";case tn.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n[Yt],message_name:n[Qt],message_time:n[Zt],message_device_time:Math.floor(Date.now()/1e3)})}async function Nn(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===tn.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(_n(n)):e.onMessageHandler.next(_n(n)));const r=n.data;var o;"object"==typeof(o=r)&&o&&Yt in o&&"1"===r["google.c.a.e"]&&await Ln(e,n.messageType,r)}const Rn="@firebase/messaging",Pn="0.12.4",jn=e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:e=>An(t,e)}};async function Mn(){try{await p()}catch(e){return!1}return"undefined"!=typeof window&&l()&&!("undefined"==typeof navigator||!navigator.cookieEnabled)&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function Bn(e=function(e=J){const t=Q.get(e);if(!t&&e===J&&u())return ie();if(!t)throw re.create("no-app",{appName:e});return t}()){return Mn().then((e=>{if(!e)throw yn.create("unsupported-browser")}),(e=>{throw yn.create("indexed-db-unsupported")})),ne(m(e),"messaging").getImmediate()}async function xn(e,t){return An(e=m(e),t)}function Un(e,t){return function(e,t){if(!navigator)throw yn.create("only-available-in-window");return e.onMessageHandler=t,()=>{e.onMessageHandler=null}}(e=m(e),t)}function Fn(e){return Fn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Fn(e)}function Hn(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==Fn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Fn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Fn(i)?i:String(i)),r)}var o,i}te(new b("messaging",(e=>{const t=new Cn(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",(e=>Nn(t,e))),t}),"PUBLIC")),te(new b("messaging-internal",jn,"PRIVATE")),ae(Rn,Pn),ae(Rn,Pn,"esm2017");var Kn=n(915),$n=n(527),qn=n(426),Vn=n(185),Gn="oao.pushnotifications.token",Wn=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e);this.vapidKey="BINpbAbOLkCSlbJfvGe4pCo4miCTvcbG748eiNZUlAUT7sVAweA3S71XaIwqhgpIXSVTGwoDlormXn_hVCsoYyw";var t=ie({apiKey:"AIzaSyDYHTXSzlfGK0lBSSQuXzHh-YiqvL7Ikgo",authDomain:"hosting-manager.firebaseapp.com",databaseURL:"https://hosting-manager.firebaseio.com",projectId:"hosting-manager",storageBucket:"hosting-manager.appspot.com",messagingSenderId:"119303132917",appId:"1:119303132917:web:844fbefce2cefe2af957bc"});this.messaging=void 0,"true"===Kn.sessionStorage.getItem("oao.push.browserIsSupported","false")?(this.messaging=Bn(t),this.startListeningForMessages()):Mn().then(function(e){!1!==e&&(this.messaging=Bn(t),this.startListeningForMessages(),this.updateDevice())}.bind(this)).catch((function(){}))}var t,n,r;return t=e,n=[{key:"startListeningForMessages",value:function(){void 0!==this.messaging&&Un(this.messaging,(function(e){if(e){var t=e.notification||{};if(t.title&&t.body&&t.click_action){var n={body:t.body};t.icon&&(n.icon=t.icon),t.actions&&(n.actions=t.actions),new Notification(t.title,n).onclick=function(){window.open(t.click_action)}}}}))}},{key:"requestPermission",value:function(){Notification.requestPermission().then(function(e){"granted"!==e?"denied"!==e?$n.emitExternalEvent("REGISTRATION.ERROR"):$n.emitExternalEvent("REGISTRATION.DENIED"):this.registerOnServer()}.bind(this)).catch((function(){$n.emitExternalEvent("REGISTRATION.ERROR")}))}},{key:"registerOnServer",value:function(){void 0!==this.messaging&&("granted"!==Notification.permission&&this.requestPermission(),xn(this.messaging,{vapidKey:this.vapidKey}).then(function(e){e?qn.registerUpdateDevice(e,"BROWSERPUSH",!1):this.requestPermission()}.bind(this)).catch((function(){$n.emitExternalEvent("REGISTRATION.ERROR")})))}},{key:"unregisterCurrentDevice",value:function(){void 0!==this.messaging&&"granted"===Notification.permission&&xn(this.messaging,{vapidKey:this.vapidKey}).then((function(e){e&&qn.unregisterDevice(e)})).catch((function(){$n.emitExternalEvent("DEREGISTRATION.ERROR")}))}},{key:"isRegistered",value:function(e){"granted"===Notification.permission?void 0!==this.messaging&&xn(this.messaging,{vapidKey:this.vapidKey}).then((function(t){if(t){var n=Kn.localStorage.getItem(Gn,!1);if(!1===n||null===n)return void e("STATE.NOT_REGISTERED");if(Vn.addChangeListener((function(){n===Vn.getHash()?e("STATE.REGISTERED"):e("STATE.REGISTERED_NEW_CUSTOMER")})),null===Vn.getCustomerInfo())return;if(n!==Vn.getHash())return void e("STATE.REGISTERED_NEW_CUSTOMER");e("STATE.REGISTERED")}else e("STATE.NOT_REGISTERED")})).catch((function(){e("STATE.NOT_REGISTERED")})):e("STATE.NOT_REGISTERED")}},{key:"updateDevice",value:function(){"granted"===Notification.permission&&void 0!==this.messaging&&xn(this.messaging,{vapidKey:this.vapidKey}).then((function(e){if(e){var t=Kn.localStorage.getItem(Gn,!1);if(!1===t||null===t)return;if(t!==Vn.getHash())return;qn.registerUpdateDevice(e,"BROWSERPUSH",!0)}}))}},{key:"isSupported",value:function(){return"Notification"in window&&Kn.sessionStorage.getItem("oao.push.browserIsSupported",!1)}}],n&&Hn(t.prototype,n),r&&Hn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const zn=new Wn;function Xn(e){return Xn="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Xn(e)}function Jn(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==Xn(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==Xn(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===Xn(i)?i:String(i)),r)}var o,i}var Yn=n(915),Qn=n(527),Zn=n(426),er=n(185),tr="oao.pushnotifications.token",nr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"requestPermission",value:function(){window.safari.pushNotification.requestPermission("https://frontend-services.ionos.com/pushnotifications/apple","web.com.ionos.my",{},this.registerOnServer.bind(this))}},{key:"registerOnServer",value:function(){var e=window.safari.pushNotification.permission("web.com.ionos.my");if("default"===e.permission)this.requestPermission();else if("denied"===e.permission)Qn.emitExternalEvent("REGISTRATION.DENIED");else if("granted"===e.permission){if(!e.deviceToken)return void Qn.emitExternalEvent("REGISTRATION.ERROR");Zn.registerUpdateDevice(e.deviceToken,"APNS",!1)}}},{key:"isRegistered",value:function(e){var t=window.safari.pushNotification.permission("web.com.ionos.my");if("default"===t.permission)e("STATE.NOT_REGISTERED");else if("denied"===t.permission)e("STATE.NOT_REGISTERED");else if("granted"===t.permission)if(t.deviceToken){var n=Yn.localStorage.getItem(tr,!1);if(!1===n||null===n)return void e("STATE.NOT_REGISTERED");if(er.addChangeListener((function(){n===er.getHash()?e("STATE.REGISTERED"):e("STATE.REGISTERED_NEW_CUSTOMER")})),null===er.getCustomerInfo())return;if(n!==er.getHash())return void e("STATE.REGISTERED_NEW_CUSTOMER");e("STATE.REGISTERED")}else e("STATE.NOT_REGISTERED")}},{key:"updateDevice",value:function(){var e=window.safari.pushNotification.permission("web.com.ionos.my");if(e.deviceToken){var t=Yn.localStorage.getItem(tr,!1);if(!1===t||null===t)return;if(t!==er.getHash())return;Zn.registerUpdateDevice(e.deviceToken,"APNS",!0)}}},{key:"isSupported",value:function(){return"safari"in window&&"pushNotification"in window.safari}},{key:"unregisterCurrentDevice",value:function(){var e=window.safari.pushNotification.permission("web.com.ionos.my");if("granted"===e.permission){if(!e.deviceToken)return void Qn.emitExternalEvent("REGISTRATION.ERROR");Zn.unregisterDevice(e.deviceToken)}else Qn.emitExternalEvent("DEREGISTRATION.ERROR")}}],n&&Jn(t.prototype,n),r&&Jn(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const rr=new nr;function or(e){return or="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},or(e)}function ir(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==or(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==or(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===or(i)?i:String(i)),r)}var o,i}var ar=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"isPushSupported",value:function(){return!!zn.isSupported()||!!rr.isSupported()}},{key:"isRegistered",value:function(e){return zn.isSupported()?zn.isRegistered(e):rr.isSupported()?rr.isRegistered(e):void 0}},{key:"updateDevice",value:function(){zn.isSupported()?zn.updateDevice():rr.isSupported()&&rr.updateDevice()}},{key:"registerForNotifications",value:function(){zn.isSupported()?zn.registerOnServer():rr.isSupported()&&rr.registerOnServer()}},{key:"unregisterCurrentDevice",value:function(){zn.isSupported()?zn.unregisterCurrentDevice():rr.isSupported()&&rr.unregisterCurrentDevice()}}],n&&ir(t.prototype,n),r&&ir(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}();const sr=new ar;function cr(e){return cr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},cr(e)}function ur(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,(o=r.key,i=void 0,i=function(e,t){if("object"!==cr(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==cr(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(o,"string"),"symbol"===cr(i)?i:String(i)),r)}var o,i}var fr=n(885),lr=n(242),pr=n(722),dr=n(185),hr=n(711),gr=n(527),yr=n(931),vr=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,n,r;return t=e,n=[{key:"init",value:function(){var e=this;this.updateData(),this.removeListener=yr.addChangeListener((function(){e.updateData()})),fr.setInterval(this.keepAlive.bind(this),12e5)}},{key:"keepAlive",value:function(){!1!==yr.getToken()&&sr.isPushSupported()&&(pr.update(),dr.update())}},{key:"updateData",value:function(){!1!==yr.getToken()&&sr.isPushSupported()&&(pr.update(),dr.update(),sr.updateDevice())}},{key:"setMarket",value:function(e){hr.setMarket(e)}},{key:"setLanguage",value:function(e){hr.setLanguage(e)}},{key:"setMode",value:function(e){hr.setMode(e),lr.setSentryEnvironment(e.toLocaleLowerCase())}},{key:"setBasePath",value:function(e){hr.setBasePath(e)}},{key:"isPushSupported",value:function(e){e&&e(sr.isPushSupported())}},{key:"isRegistered",value:function(e){e&&sr.isRegistered(e)}},{key:"registerForNotifications",value:function(){sr.registerForNotifications()}},{key:"unregisterCurrentDevice",value:function(){sr.unregisterCurrentDevice()}},{key:"registerForTopicUpdates",value:function(e){e&&(pr.hasData()&&e(pr.getTopics()),pr.addChangeListener((function(){pr.hasData()&&e(pr.getTopics())})))}},{key:"subscribeTopic",value:function(e){e&&pr.subscribeTopic(e)}},{key:"subscribeAllTopics",value:function(){pr.subscribeAllTopics()}},{key:"unsubscribeTopic",value:function(e){e&&pr.unsubscribeTopic(e)}},{key:"unsubscribeAllTopics",value:function(){pr.unsubscribeAllTopics()}},{key:"setFrontendToken",value:function(e){yr.setToken(e)}},{key:"setPageName",value:function(e){hr.setPageName(e)}},{key:"setClient",value:function(e){hr.setClient(e)}},{key:"addEventListener",value:function(e){gr.addEventListener(e)}}],n&&ur(t.prototype,n),r&&ur(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}(),mr=new vr;mr.data={get settings(){var e={};return e.market=hr.getMarket(),e.language=hr.getLanguage(),e.mode=hr.getMode(),e.basePath=hr.getBasePath(),e.client=hr.getClient(),e}},mr.__version=hr.getVersion();const br=mr;function Sr(e){return function(e){if(Array.isArray(e))return wr(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return wr(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return wr(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function wr(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Er=n(420),Or=n(159),Tr=n(242),_r=n(915);Tr.setClient("NOTIFICATIONS"),Tr.setClientVersion("2.3.9"),Tr.setSentryDsn("https://56d19b6ac74d42bc94d4cadac53535f2@sentry.ionos.com/21"),Tr.setSentryProject("pushnotifications-fi"),Tr.init();const Ir=function(){Er.addPushListener((function(e,t){e&&(t=t||[],"function"==typeof br[e]&&br[e].apply(br,Sr(t)))})),Mn().then((function(e){_r.sessionStorage.setItem("oao.push.browserIsSupported",e),Er.process()})).catch((function(){_r.sessionStorage.setItem("oao.push.browserIsSupported",!1),Er.process()}));return Or.onReady((function(){try{br.init()}catch(e){Tr.reportError(e)}})),br}()})(),(OAO=void 0===OAO?{}:OAO).notifications=r.default})();

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists