   /*! For license information please see webalert-notification-current.js.LICENSE.txt */
(()=>{var e={228:e=>{e.exports=function(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}},858:e=>{e.exports=function(e){if(Array.isArray(e))return e}},646:(e,t,n)=>{var r=n(228);e.exports=function(e){if(Array.isArray(e))return r(e)}},506:e=>{e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},926:e=>{function t(e,t,n,r,i,a,o){try{var s=e[a](o),c=s.value}catch(e){return void n(e)}s.done?t(c):Promise.resolve(c).then(r,i)}e.exports=function(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,c,"next",e)}function c(e){t(o,i,a,s,c,"throw",e)}s(void 0)}))}}},575:e=>{e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},913:e=>{function t(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}e.exports=function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}},713:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},754:e=>{function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},t(n)}e.exports=t},205:(e,t,n)=>{var r=n(489);e.exports=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}}),t&&r(e,t)}},860:e=>{e.exports=function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}},884:e=>{e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(r=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);r=!0);}catch(e){i=!0,a=e}finally{try{r||null==s.return||s.return()}finally{if(i)throw a}}return n}}},521:e=>{e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}},271:e=>{e.exports=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.")}},585:(e,t,n)=>{var r=n(8),i=n(506);e.exports=function(e,t){return!t||"object"!==r(t)&&"function"!=typeof t?i(e):t}},489:e=>{function t(n,r){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(n,r)}e.exports=t},38:(e,t,n)=>{var r=n(858),i=n(884),a=n(379),o=n(521);e.exports=function(e,t){return r(e)||i(e,t)||a(e,t)||o()}},319:(e,t,n)=>{var r=n(646),i=n(860),a=n(379),o=n(271);e.exports=function(e){return r(e)||i(e)||a(e)||o()}},8:e=>{function t(n){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=t=function(e){return typeof e}:e.exports=t=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t(n)}e.exports=t},379:(e,t,n)=>{var r=n(228);e.exports=function(e,t){if(e){if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}}},757:(e,t,n)=>{e.exports=n(666)},206:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=90)}({17:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=n(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""},e.getSecondMatch=function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""},e.matchAndReturnConst=function(e,t,n){if(e.test(t))return n},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,n,r){void 0===r&&(r=!1);var i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,c=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(c[0][o]>c[1][o])return 1;if(c[0][o]===c[1][o]){if(o===s)return 0;o-=1}else if(c[0][o]<c[1][o])return-1}},e.map=function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r},e.find=function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}},e.assign=function(e){for(var t,n,r=e,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));var s=function(){var e=a[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=a.length;t<n;t+=1)s();return e},e.getBrowserAlias=function(e){return r.BROWSER_ALIASES_MAP[e]},e.getBrowserTypeByAlias=function(e){return r.BROWSER_MAP[e]||""},e}();t.default=i,e.exports=t.default},18:function(e,t,n){"use strict";t.__esModule=!0,t.ENGINE_MAP=t.OS_MAP=t.PLATFORMS_MAP=t.BROWSER_MAP=t.BROWSER_ALIASES_MAP=void 0,t.BROWSER_ALIASES_MAP={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},t.BROWSER_MAP={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},t.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},t.OS_MAP={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},t.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(91))&&r.__esModule?r:{default:r},a=n(18);function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}var s=function(){function e(){}var t,n;return e.getParser=function(e,t){if(void 0===t&&(t=!1),"string"!=typeof e)throw new Error("UserAgent should be a string");return new i.default(e,t)},e.parse=function(e){return new i.default(e).getResult()},t=e,n=[{key:"BROWSER_MAP",get:function(){return a.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return a.ENGINE_MAP}},{key:"OS_MAP",get:function(){return a.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return a.PLATFORMS_MAP}}],null&&o(t.prototype,null),n&&o(t,n),e}();t.default=s,e.exports=t.default},91:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r=c(n(92)),i=c(n(93)),a=c(n(94)),o=c(n(95)),s=c(n(17));function c(e){return e&&e.__esModule?e:{default:e}}var u=function(){function e(e,t){if(void 0===t&&(t=!1),null==e||""===e)throw new Error("UserAgent parameter can't be empty");this._ua=e,this.parsedResult={},!0!==t&&this.parse()}var t=e.prototype;return t.getUA=function(){return this._ua},t.test=function(e){return e.test(this._ua)},t.parseBrowser=function(){var e=this;this.parsedResult.browser={};var t=s.default.find(r.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser},t.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},t.getBrowserName=function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},t.getBrowserVersion=function(){return this.getBrowser().version},t.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},t.parseOS=function(){var e=this;this.parsedResult.os={};var t=s.default.find(i.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os},t.getOSName=function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""},t.getOSVersion=function(){return this.getOS().version},t.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},t.getPlatformType=function(e){void 0===e&&(e=!1);var t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""},t.parsePlatform=function(){var e=this;this.parsedResult.platform={};var t=s.default.find(a.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform},t.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},t.getEngineName=function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},t.parseEngine=function(){var e=this;this.parsedResult.engine={};var t=s.default.find(o.default,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine},t.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},t.getResult=function(){return s.default.assign({},this.parsedResult)},t.satisfies=function(e){var t=this,n={},r=0,i={},a=0;if(Object.keys(e).forEach((function(t){var o=e[t];"string"==typeof o?(i[t]=o,a+=1):"object"==typeof o&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),c=s.default.find(o,(function(e){return t.isOS(e)}));if(c){var u=this.satisfies(n[c]);if(void 0!==u)return u}var l=s.default.find(o,(function(e){return t.isPlatform(e)}));if(l){var f=this.satisfies(n[l]);if(void 0!==f)return f}}if(a>0){var d=Object.keys(i),p=s.default.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==p)return this.compareVersion(i[p])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=s.default.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n},t.compareVersion=function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(s.default.compareVersions(i,n,r))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=u,e.exports=t.default},92:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=/version\/(\d+(\.?_?\d+)+)/i,o=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=i.default.getFirstMatch(a,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=i.default.getFirstMatch(a,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=o,e.exports=t.default},93:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:a.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=i.default.getWindowsVersionName(t);return{name:a.OS_MAP.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:a.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(t),r={name:a.OS_MAP.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:a.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=i.default.getAndroidVersionName(t),r={name:a.OS_MAP.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:a.OS_MAP.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:a.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:a.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:a.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:a.OS_MAP.PlayStation4,version:t}}}];t.default=o,e.exports=t.default},94:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:a.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:a.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:a.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:a.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:a.PLATFORMS_MAP.tv}}}];t.default=o,e.exports=t.default},95:function(e,t,n){"use strict";t.__esModule=!0,t.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},a=n(18),o=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:a.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:a.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:a.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:a.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:a.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:a.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:a.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}];t.default=o,e.exports=t.default}})},666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",o=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function c(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{c({},"")}catch(e){c=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=t&&t.prototype instanceof b?t:b,a=Object.create(i.prototype),o=new P(r||[]);return a._invoke=function(e,t,n){var r=f;return function(i,a){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw a;return T()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=x(o,n);if(s){if(s===g)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=l(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",g={};function b(){}function m(){}function v(){}var w={};w[a]=function(){return this};var y=Object.getPrototypeOf,_=y&&y(y(E([])));_&&_!==n&&r.call(_,a)&&(w=_);var k=v.prototype=b.prototype=Object.create(w);function S(e){["next","throw","return"].forEach((function(t){c(e,t,(function(e){return this._invoke(t,e)}))}))}function M(e,t){function n(i,a,o,s){var c=l(e[i],e,a);if("throw"!==c.type){var u=c.arg,f=u.value;return f&&"object"==typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,o,s)}),(function(e){n("throw",e,o,s)})):t.resolve(f).then((function(e){u.value=e,o(u)}),(function(e){return n("throw",e,o,s)}))}s(c.arg)}var i;this._invoke=function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}}function x(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method))return g;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return g}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,g;var a=i.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function A(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(A,this),this.reset(!0)}function E(e){if(e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return o.next=o}}return{next:T}}function T(){return{value:t,done:!0}}return m.prototype=k.constructor=v,v.constructor=m,m.displayName=c(v,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,c(e,s,"GeneratorFunction")),e.prototype=Object.create(k),e},e.awrap=function(e){return{__await:e}},S(M.prototype),M.prototype[o]=function(){return this},e.AsyncIterator=M,e.async=function(t,n,r,i,a){void 0===a&&(a=Promise);var o=new M(u(t,n,r,i),a);return e.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(k),c(k,s,"Generator"),k[a]=function(){return this},k.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(O),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),u=r.call(o,"finallyLoc");if(c&&u){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:E(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}(e.exports);try{regeneratorRuntime=t}catch(e){Function("r","regeneratorRuntime = r")(t)}}},t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},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),(()=>{"use strict";var e=n(8),t=n.n(e),r=n(206),i=n.n(r),a=/iPhone/i,o=/iPod/i,s=/iPad/i,c=/\biOS-universal(?:.+)Mac\b/i,u=/\bAndroid(?:.+)Mobile\b/i,l=/Android/i,f=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,d=/Silk/i,p=/Windows Phone/i,h=/\bWindows(?:.+)ARM\b/i,g=/BlackBerry/i,b=/BB10/i,m=/Opera Mini/i,v=/\b(CriOS|Chrome)(?:.+)Mobile/i,w=/Mobile(?:.+)Firefox\b/i,y=function(e){return void 0!==e&&"MacIntel"===e.platform&&"number"==typeof e.maxTouchPoints&&e.maxTouchPoints>1&&"undefined"==typeof MSStream};function _(e){var t={userAgent:"",platform:"",maxTouchPoints:0};e||"undefined"==typeof navigator?"string"==typeof e?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0}):t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0};var n=t.userAgent,r=n.split("[FBAN");void 0!==r[1]&&(n=r[0]),void 0!==(r=n.split("Twitter"))[1]&&(n=r[0]);var i=function(e){return function(t){return t.test(e)}}(n),_={apple:{phone:i(a)&&!i(p),ipod:i(o),tablet:!i(a)&&(i(s)||y(t))&&!i(p),universal:i(c),device:(i(a)||i(o)||i(s)||i(c)||y(t))&&!i(p)},amazon:{phone:i(f),tablet:!i(f)&&i(d),device:i(f)||i(d)},android:{phone:!i(p)&&i(f)||!i(p)&&i(u),tablet:!i(p)&&!i(f)&&!i(u)&&(i(d)||i(l)),device:!i(p)&&(i(f)||i(d)||i(u)||i(l))||i(/\bokhttp\b/i)},windows:{phone:i(p),tablet:i(h),device:i(p)||i(h)},other:{blackberry:i(g),blackberry10:i(b),opera:i(m),firefox:i(w),chrome:i(v),device:i(g)||i(b)||i(m)||i(w)||i(v)},any:!1,phone:!1,tablet:!1};return _.any=_.apple.device||_.android.device||_.windows.device||_.other.device,_.phone=_.apple.phone||_.android.phone||_.windows.phone,_.tablet=_.apple.tablet||_.android.tablet||_.windows.tablet,_}var k=n(319),S=n.n(k),M=n(757),x=n.n(M),A=n(926),O=n.n(A),P=n(575),E=n.n(P),T=n(913),I=n.n(T);const C={apiKey:"AIzaSyC7xCg9LEYqiDKkCBsjhMFg-MKTNakYuj8",authDomain:"web-alerts-1194.firebaseapp.com",projectId:"web-alerts-1194",appId:"1:370456186282:web:a1818e52c9bb508cf2efd3",databaseURL:"https://web-alerts-1194.firebaseio.com/",storageBucket:"gcm-demo-13f40.appspot.com",messagingSenderId:"370456186282"};var D=function(){function e(t,n){E()(this,e),this.prepare(t,n),this.init(t)}var t,n,r,i,a,o;return I()(e,[{key:"init",value:(o=O()(x().mark((function e(t){var n,r,i,a,o,s,c;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.tools.log.info('({ version: "'.concat("1.20.14",'" })')),this.tools.log.info("Starting application..."),n=t.Validator,r=t.UserManager,i=t.NotificationManager,a=t.SubscriptionManager,o=t.View,e.next=6,n.validate();case 6:return this.tools.log.info("Context validated successfully"),e.next=9,this.handleLegacyApp(r,a);case 9:if(!this.context.disableUi){e.next=11;break}return e.abrupt("return",this.handleUnavailableNotification(r,a));case 11:return e.next=13,r.getUser(!0,["gaID"]);case 13:return s=e.sent,e.next=16,i.getNotification(s);case 16:if(c=e.sent){e.next=19;break}return e.abrupt("return",this.handleUnavailableNotification(r,a));case 19:return this.tools.log.info("Notification found: ".concat(c.campaign)),e.next=22,n.validate("lgpd");case 22:return e.abrupt("return",o.show(c,this.onAccept(r,a),this.onDimiss(a)));case 25:e.prev=25,e.t0=e.catch(0),this.tools.log.error("".concat(e.t0.message));case 28:case"end":return e.stop()}}),e,this,[[0,25]])}))),function(e){return o.apply(this,arguments)})},{key:"handleLegacyApp",value:(a=O()(x().mark((function e(t,n){var r,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=this.tools.storage.get()||{},!Object.keys(r).length&&this.context.legacyAppLasted){e.next=3;break}return e.abrupt("return");case 3:return e.next=5,this.hasLegacyAppInstallation();case 5:if(e.sent){e.next=8;break}return e.abrupt("return");case 8:return this.tools.log.info("Syncing legacy app token"),e.next=11,t.getUser(!1);case 11:if((i=e.sent).token){e.next=14;break}return e.abrupt("return");case 14:return e.abrupt("return",n.getUserAndUpdateBySubscription(r,i));case 15:case"end":return e.stop()}}),e,this)}))),function(e,t){return a.apply(this,arguments)})},{key:"hasLegacyAppInstallation",value:(i=O()(x().mark((function e(){var t,n,r,i,a,o,s;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=!1,n=new Date(this.context.legacyAppLasted),r="firebase-installations-database",i=1,a="firebase-installations-store",o=function(e){return new Date(e)<=n},e.next=8,window.indexedDB.databases();case 8:if(e.sent.find((function(e){return e.name===r}))){e.next=12;break}return e.abrupt("return",t);case 12:return s=indexedDB.open(r,i),e.abrupt("return",new Promise((function(e){s.onsuccess=function(n){var r=n.target;try{var i=r.result.transaction(a,"readonly").objectStore(a).get("[DEFAULT]!".concat(C.appId));i.onsuccess=function(n){if(!(n.target&&n.target.result&&n.target.result.authToken))return e(t);var r=n.target.result.authToken.creationTime;s.result.close(),e(o(r))},i.onerror=function(){s.result.close(),e(t)}}catch(n){s.result.close(),e(t)}},s.onerror=function(){return e(t)},s.onblocked=function(){return e(t)}})));case 14:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"handleUnavailableNotification",value:(r=O()(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.context.disableUi&&this.tools.log.info("UI disabled"),this.tools.log.info("Notification not found"),e.next=4,this.handleIsSynced(t,n);case 4:this.tools.log.info("Data has been synced");case 5:case"end":return e.stop()}}),e,this)}))),function(e,t){return r.apply(this,arguments)})},{key:"onAccept",value:function(e,t){var n=this;return function(){var r=O()(x().mark((function r(i){var a;return x().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,e.getUser(!1);case 2:if((a=r.sent).token||"granted"===a.permission){r.next=6;break}return n.tools.log.info("User is not able: Invalid token and permission"),r.abrupt("return",t.onDimiss(i));case 6:t.onAccept(a,i);case 7:case"end":return r.stop()}}),r)})));return function(e){return r.apply(this,arguments)}}()}},{key:"onDimiss",value:function(e){return function(t){return e.onDimiss(t)}}},{key:"handleIsSynced",value:(n=O()(x().mark((function e(t,n){var r,i,a,o,s,c,u,l,f,d,p;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.tools.log.info("Synchronizing data"),i={channel:{}},a=Object.assign(i,this.tools.storage.get()),o=this.context.channelAlias,e.next=6,t.getUser(!0,["permission"]);case 6:if(s=e.sent,c="granted"===s.permission,u=1==a.synced,l=!(null===(r=a.channel[o])||void 0===r||!r.accept),c||!u){e.next=12;break}return e.abrupt("return",this.disableSynced(a));case 12:if(f=(this.context.tags||[]).length,!(c&&u&&l&&f)){e.next=18;break}if(d=a.channel[o].tags,p=this.context.tags,d.length&&d.every((function(e){return p.includes(e)}))){e.next=18;break}return e.abrupt("return",this.updateSubscriptionBookmarks(n,a));case 18:case"end":return e.stop()}}),e,this)}))),function(e,t){return n.apply(this,arguments)})},{key:"disableSynced",value:function(){this.tools.log.info("Notification blocked and synced is true, sync must be canceled"),this.tools.storage.set({})}},{key:"enableSynced",value:(t=O()(x().mark((function e(t,n,r){var i,a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.tools.log.info("Notification accepted and synced is false, sync must be performed"),i=this.context.channelAlias,e.next=4,t.getUser(!1);case 4:return(a=e.sent).bookmarks=a.bookmarks&&a.bookmarks.length?[].concat(S()(a.bookmarks),[i]):[i],e.abrupt("return",n.insertSubscription(r,a));case 7:case"end":return e.stop()}}),e,this)}))),function(e,n,r){return t.apply(this,arguments)})},{key:"updateSubscriptionBookmarks",value:function(e,t){var n,r,i=this.context,a=i.tags,o=i.channelAlias;this.tools.log.info("Updating bookmarks: "+a);var s=null===(n=t.channel)||void 0===n||null===(r=n[o])||void 0===r?void 0:r.tags;t.channel[o].tags=null!=s&&s.length?[].concat(S()(s),S()(a)):[];var c=this.context.tags.map((function(e){return"".concat(o,"-").concat(e)}));return e.updateSubscription(t,{token:t.token,bookmarks:c})}},{key:"prepare",value:function(e,t){for(var n in this.context=t.context,this.tools=t.tools,e)"function"==typeof e[n].prepare&&e[n].prepare(t)}}]),e}(),N=n(205),L=n.n(N),B=n(585),j=n.n(B),F=n(754),R=n.n(F),U=function(){function e(){E()(this,e)}return I()(e,[{key:"prepare",value:function(e){for(var t in e)this[t]=e[t];return this}}]),e}();var V=function(e){L()(a,e);var t,n,r,i=(n=a,r=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R()(n);if(r){var i=R()(this).constructor;e=Reflect.construct(t,arguments,i)}else e=t.apply(this,arguments);return j()(this,e)});function a(){return E()(this,a),i.call(this)}return I()(a,[{key:"validate",value:(t=O()(x().mark((function e(t){var n,r,i=this;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n={mandatory:{support:function(){var e,t,n={LocalStorage:"localStorage"in window!=1,Notification:"Notification"in window!=1,Promise:"Promise"in window!=1,SubscriptionManagererviceWorker:"serviceWorker"in navigator!=1,PushManager:"PushManager"in window!=1,Fetch:"fetch"in window!=1,Safari:"Safari"==i.tools.browser.name,NotMediaType:"special"==(null===(e=window.universal_variable)||void 0===e||null===(t=e.aud)||void 0===t?void 0:t.mediaType)};for(var r in n)if(!0===n[r])return Promise.reject("UNSUPPORTED_BROWSER: ".concat(r));return Promise.resolve()},duckslake:function(){var e=1,t=function t(n){window.DucksLake||e>5?n():(e+=1,setTimeout((function(){return t(n)}),500))};return new Promise((function(e){return t(e)}))}},optional:{lgpd:function(){return 0==i.tools.isMobile.phone?Promise.resolve():(window.uolPolicyBanner=window.uolPolicyBanner||[],new Promise((function(e){window.uolPolicyBanner.push((function(t){var n=t.action;"skip"!==n&&"hide"!==n||e()}))})))},talker:function(){return Promise.resolve()}}},!t){e.next=3;break}return e.abrupt("return",n.optional[t]());case 3:e.t0=x().keys(n.mandatory);case 4:if((e.t1=e.t0()).done){e.next=10;break}return r=e.t1.value,e.next=8,n.mandatory[r]();case 8:e.next=4;break;case 10:case"end":return e.stop()}}),e)}))),function(e){return t.apply(this,arguments)})}]),a}(U);const W=function(e){const t=[];let n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=63&i|128):55296==(64512&i)&&r+1<e.length&&56320==(64512&e.charCodeAt(r+1))?(i=65536+((1023&i)<<10)+(1023&e.charCodeAt(++r)),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=63&i|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=63&i|128)}return t},z={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 i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,u=i>>2,l=(3&i)<<4|o>>4;let f=(15&o)<<2|c>>6,d=63&c;s||(d=64,a||(f=64)),r.push(n[u],n[l],n[f],n[d])}return r.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(W(e),t)},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 i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){const a=e[n++];t[r++]=String.fromCharCode((31&i)<<6|63&a)}else if(i>239&&i<365){const a=((7&i)<<18|(63&e[n++])<<12|(63&e[n++])<<6|63&e[n++])-65536;t[r++]=String.fromCharCode(55296+(a>>10)),t[r++]=String.fromCharCode(56320+(1023&a))}else{const a=e[n++],o=e[n++];t[r++]=String.fromCharCode((15&i)<<12|(63&a)<<6|63&o)}}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 o=t<e.length?n[e.charAt(t)]:64;++t;const s=t<e.length?n[e.charAt(t)]:64;if(++t,null==i||null==a||null==o||null==s)throw Error();const c=i<<2|a>>4;if(r.push(c),64!==o){const e=a<<4&240|o>>2;if(r.push(e),64!==s){const e=o<<6&192|s;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)}}},G=function(e){return function(e){const t=W(e);return z.encodeByteArray(t,!0)}(e).replace(/\./g,"")};class H{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 q(){return"object"==typeof indexedDB}function $(){return new Promise(((e,t)=>{try{let n=!0;const r="validate-browser-context-for-indexeddb-analytics-module",i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{var e;t((null===(e=i.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}}))}class K extends Error{constructor(e,t,n){super(t),this.code=e,this.customData=n,this.name="FirebaseError",Object.setPrototypeOf(this,K.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Q.prototype.create)}}class Q{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){const n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?function(e,t){return e.replace(J,((e,n)=>{const r=t[n];return null!=r?String(r):`<${n}?>`}))}(i,n):"Error",o=`${this.serviceName}: ${a} (${r}).`;return new K(r,o,n)}}const J=/\{\$([^}]+)}/g;function Z(e,t){if(e===t)return!0;const n=Object.keys(e),r=Object.keys(t);for(const i of n){if(!r.includes(i))return!1;const n=e[i],a=t[i];if(Y(n)&&Y(a)){if(!Z(n,a))return!1}else if(n!==a)return!1}for(const e of r)if(!n.includes(e))return!1;return!0}function Y(e){return null!==e&&"object"==typeof e}function X(e){return e&&e._delegate?e._delegate:e}class ee{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 te="[DEFAULT]";class ne{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 H;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:te})}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="[DEFAULT]"){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="[DEFAULT]"){return this.instances.has(e)}getOptions(e="[DEFAULT]"){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),i=null!==(n=this.onInitCallbacks.get(r))&&void 0!==n?n:new Set;i.add(e),this.onInitCallbacks.set(r,i);const a=this.instances.get(r);return a&&e(a,r),()=>{i.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===te?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="[DEFAULT]"){return this.component?this.component.multipleInstances?e:te:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class re{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 ne(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}const ie=[];var ae;!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"}(ae||(ae={}));const oe={debug:ae.DEBUG,verbose:ae.VERBOSE,info:ae.INFO,warn:ae.WARN,error:ae.ERROR,silent:ae.SILENT},se=ae.INFO,ce={[ae.DEBUG]:"log",[ae.VERBOSE]:"log",[ae.INFO]:"info",[ae.WARN]:"warn",[ae.ERROR]:"error"},ue=(e,t,...n)=>{if(t<e.logLevel)return;const r=(new Date).toISOString(),i=ce[t];if(!i)throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`);console[i](`[${r}]  ${e.name}:`,...n)};let le,fe;const de=new WeakMap,pe=new WeakMap,he=new WeakMap,ge=new WeakMap,be=new WeakMap;let me={get(e,t,n){if(e instanceof IDBTransaction){if("done"===t)return pe.get(e);if("objectStoreNames"===t)return e.objectStoreNames||he.get(e);if("store"===t)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return we(e[t])},set:(e,t,n)=>(e[t]=n,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function ve(e){return"function"==typeof e?(t=e)!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(fe||(fe=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(ye(this),e),we(de.get(this))}:function(...e){return we(t.apply(ye(this),e))}:function(e,...n){const r=t.call(ye(this),e,...n);return he.set(r,e.sort?e.sort():[e]),we(r)}:(e instanceof IDBTransaction&&function(e){if(pe.has(e))return;const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("complete",i),e.removeEventListener("error",a),e.removeEventListener("abort",a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException("AbortError","AbortError")),r()};e.addEventListener("complete",i),e.addEventListener("error",a),e.addEventListener("abort",a)}));pe.set(e,t)}(e),n=e,(le||(le=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])).some((e=>n instanceof e))?new Proxy(e,me):e);var t,n}function we(e){if(e instanceof IDBRequest)return function(e){const t=new Promise(((t,n)=>{const r=()=>{e.removeEventListener("success",i),e.removeEventListener("error",a)},i=()=>{t(we(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener("success",i),e.addEventListener("error",a)}));return t.then((t=>{t instanceof IDBCursor&&de.set(t,e)})).catch((()=>{})),be.set(t,e),t}(e);if(ge.has(e))return ge.get(e);const t=ve(e);return t!==e&&(ge.set(e,t),be.set(t,e)),t}const ye=e=>be.get(e);function _e(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){const o=indexedDB.open(e,t),s=we(o);return r&&o.addEventListener("upgradeneeded",(e=>{r(we(o.result),e.oldVersion,e.newVersion,we(o.transaction))})),n&&o.addEventListener("blocked",(()=>n())),s.then((e=>{a&&e.addEventListener("close",(()=>a())),i&&e.addEventListener("versionchange",(()=>i()))})).catch((()=>{})),s}function ke(e,{blocked:t}={}){const n=indexedDB.deleteDatabase(e);return t&&n.addEventListener("blocked",(()=>t())),we(n).then((()=>{}))}const Se=["get","getKey","getAll","getAllKeys","count"],Me=["put","add","delete","clear"],xe=new Map;function Ae(e,t){if(!(e instanceof IDBDatabase)||t in e||"string"!=typeof t)return;if(xe.get(t))return xe.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=Me.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!i&&!Se.includes(n))return;const a=async function(e,...t){const a=this.transaction(e,i?"readwrite":"readonly");let o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return xe.set(t,a),a}var Oe;Oe=me,me={...Oe,get:(e,t,n)=>Ae(e,t)||Oe.get(e,t,n),has:(e,t)=>!!Ae(e,t)||Oe.has(e,t)};class Pe{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 Ee="@firebase/app",Te="0.7.25",Ie=new class{constructor(e){this.name=e,this._logLevel=se,this._logHandler=ue,this._userLogHandler=null,ie.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in ae))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?oe[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,ae.DEBUG,...e),this._logHandler(this,ae.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,ae.VERBOSE,...e),this._logHandler(this,ae.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,ae.INFO,...e),this._logHandler(this,ae.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,ae.WARN,...e),this._logHandler(this,ae.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,ae.ERROR,...e),this._logHandler(this,ae.ERROR,...e)}}("@firebase/app"),Ce={[Ee]:"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"},De=new Map,Ne=new Map;function Le(e,t){try{e.container.addComponent(t)}catch(n){Ie.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Be(e){const t=e.name;if(Ne.has(t))return Ie.debug(`There were multiple attempts to register component ${t}.`),!1;Ne.set(t,e);for(const t of De.values())Le(t,e);return!0}function je(e,t){const n=e.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}const Fe=new Q("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call Firebase App.initializeApp()","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","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.","storage-open":"Error thrown when opening storage. Original error: {$originalErrorMessage}.","storage-get":"Error thrown when reading from storage. Original error: {$originalErrorMessage}.","storage-set":"Error thrown when writing to storage. Original error: {$originalErrorMessage}.","storage-delete":"Error thrown when deleting from storage. Original error: {$originalErrorMessage}."});class Re{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 ee("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 Fe.create("app-deleted",{appName:this._name})}}function Ue(e,t={}){"object"!=typeof t&&(t={name:t});const n=Object.assign({name:"[DEFAULT]",automaticDataCollectionEnabled:!1},t),r=n.name;if("string"!=typeof r||!r)throw Fe.create("bad-app-name",{appName:String(r)});const i=De.get(r);if(i){if(Z(e,i.options)&&Z(n,i.config))return i;throw Fe.create("duplicate-app",{appName:r})}const a=new re(r);for(const e of Ne.values())a.addComponent(e);const o=new Re(e,n,a);return De.set(r,o),o}function Ve(e,t,n){var r;let i=null!==(r=Ce[e])&&void 0!==r?r:e;n&&(i+=`-${n}`);const a=i.match(/\s|\//),o=t.match(/\s|\//);if(a||o){const e=[`Unable to register library "${i}" with version "${t}":`];return a&&e.push(`library name "${i}" contains illegal characters (whitespace or "/")`),a&&o&&e.push("and"),o&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),void Ie.warn(e.join(" "))}Be(new ee(`${i}-version`,(()=>({library:i,version:t})),"VERSION"))}const We="firebase-heartbeat-store";let ze=null;function Ge(){return ze||(ze=_e("firebase-heartbeat-database",1,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(We)}}}).catch((e=>{throw Fe.create("storage-open",{originalErrorMessage:e.message})}))),ze}async function He(e,t){try{const n=(await Ge()).transaction(We,"readwrite"),r=n.objectStore(We);return await r.put(t,qe(e)),n.done}catch(e){throw Fe.create("storage-set",{originalErrorMessage:e.message})}}function qe(e){return`${e.name}!${e.options.appId}`}class $e{constructor(e){this.container=e,this._heartbeatsCache=null;const t=this.container.getProvider("app").getImmediate();this._storage=new Qe(t),this._heartbeatsCachePromise=this._storage.read().then((e=>(this._heartbeatsCache=e,e)))}async triggerHeartbeat(){const e=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),t=Ke();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=Ke(),{heartbeatsToSend:t,unsentEntries:n}=function(e,t=1024){const n=[];let r=e.slice();for(const i of e){const e=n.find((e=>e.agent===i.agent));if(e){if(e.dates.push(i.date),Je(n)>t){e.dates.pop();break}}else if(n.push({agent:i.agent,dates:[i.date]}),Je(n)>t){n.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}(this._heartbeatsCache.heartbeats),r=G(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 Ke(){return(new Date).toISOString().substring(0,10)}class Qe{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!q()&&$().then((()=>!0)).catch((()=>!1))}async read(){return await this._canUseIndexedDBPromise&&await async function(e){try{return(await Ge()).transaction(We).objectStore(We).get(qe(e))}catch(e){throw Fe.create("storage-get",{originalErrorMessage:e.message})}}(this.app)||{heartbeats:[]}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){const n=await this.read();return He(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 He(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:n.lastSentHeartbeatDate,heartbeats:[...n.heartbeats,...e.heartbeats]})}}}function Je(e){return G(JSON.stringify({version:2,heartbeats:e})).length}Be(new ee("platform-logger",(e=>new Pe(e)),"PRIVATE")),Be(new ee("heartbeat",(e=>new $e(e)),"PRIVATE")),Ve(Ee,Te,""),Ve(Ee,Te,"esm2017"),Ve("fire-js",""),Ve("firebase","9.8.2","app");const Ze="@firebase/installations",Ye="0.5.9",Xe="w:0.5.9",et=new Q("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 tt(e){return e instanceof K&&e.code.includes("request-failed")}function nt({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}function rt(e){return{token:e.token,requestStatus:2,expiresIn:(t=e.expiresIn,Number(t.replace("s","000"))),creationTime:Date.now()};var t}async function it(e,t){const n=(await t.json()).error;return et.create("request-failed",{requestName:e,serverCode:n.code,serverMessage:n.message,serverStatus:n.status})}function at({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function ot(e){const t=await e();return t.status>=500&&t.status<600?e():t}function st(e){return new Promise((t=>{setTimeout(t,e)}))}const ct=/^[cdef][\w-]{21}$/;function ut(){try{const e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;const t=function(e){return(t=e,btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_")).substr(0,22);var t}(e);return ct.test(t)?t:""}catch(e){return""}}function lt(e){return`${e.appName}!${e.appId}`}const ft=new Map;function dt(e,t){const n=lt(e);pt(n,t),function(e,t){const n=(!ht&&"BroadcastChannel"in self&&(ht=new BroadcastChannel("[Firebase] FID Change"),ht.onmessage=e=>{pt(e.data.key,e.data.fid)}),ht);n&&n.postMessage({key:e,fid:t}),0===ft.size&&ht&&(ht.close(),ht=null)}(n,t)}function pt(e,t){const n=ft.get(e);if(n)for(const e of n)e(t)}let ht=null;const gt="firebase-installations-store";let bt=null;function mt(){return bt||(bt=_e("firebase-installations-database",1,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(gt)}}})),bt}async function vt(e,t){const n=lt(e),r=(await mt()).transaction(gt,"readwrite"),i=r.objectStore(gt),a=await i.get(n);return await i.put(t,n),await r.done,a&&a.fid===t.fid||dt(e,t.fid),t}async function wt(e){const t=lt(e),n=(await mt()).transaction(gt,"readwrite");await n.objectStore(gt).delete(t),await n.done}async function yt(e,t){const n=lt(e),r=(await mt()).transaction(gt,"readwrite"),i=r.objectStore(gt),a=await i.get(n),o=t(a);return void 0===o?await i.delete(n):await i.put(o,n),await r.done,!o||a&&a.fid===o.fid||dt(e,o.fid),o}async function _t(e){let t;const n=await yt(e.appConfig,(n=>{const r=function(e){return Mt(e||{fid:ut(),registrationStatus:0})}(n),i=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(et.create("app-offline"))};const n={fid:t.fid,registrationStatus:1,registrationTime:Date.now()};return{installationEntry:n,registrationPromise:async function(e,t){try{const n=await async function({appConfig:e,heartbeatServiceProvider:t},{fid:n}){const r=nt(e),i=at(e),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={fid:n,authVersion:"FIS_v2",appId:e.appId,sdkVersion:Xe},s={method:"POST",headers:i,body:JSON.stringify(o)},c=await ot((()=>fetch(r,s)));if(c.ok){const e=await c.json();return{fid:e.fid||n,registrationStatus:2,refreshToken:e.refreshToken,authToken:rt(e.authToken)}}throw await it("Create Installation",c)}(e,t);return vt(e.appConfig,n)}catch(n){throw tt(n)&&409===n.customData.serverCode?await wt(e.appConfig):await vt(e.appConfig,{fid:t.fid,registrationStatus:0}),n}}(e,n)}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:kt(e)}:{installationEntry:t}}(e,r);return t=i.registrationPromise,i.installationEntry}));return""===n.fid?{installationEntry:await t}:{installationEntry:n,registrationPromise:t}}async function kt(e){let t=await St(e.appConfig);for(;1===t.registrationStatus;)await st(100),t=await St(e.appConfig);if(0===t.registrationStatus){const{installationEntry:t,registrationPromise:n}=await _t(e);return n||t}return t}function St(e){return yt(e,(e=>{if(!e)throw et.create("installation-not-found");return Mt(e)}))}function Mt(e){return 1===(t=e).registrationStatus&&t.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e;var t}async function xt({appConfig:e,heartbeatServiceProvider:t},n){const r=function(e,{fid:t}){return`${nt(e)}/${t}/authTokens:generate`}(e,n),i=function(e,{refreshToken:t}){const n=at(e);return n.append("Authorization",function(e){return`FIS_v2 ${e}`}(t)),n}(e,n),a=t.getImmediate({optional:!0});if(a){const e=await a.getHeartbeatsHeader();e&&i.append("x-firebase-client",e)}const o={installation:{sdkVersion:Xe,appId:e.appId}},s={method:"POST",headers:i,body:JSON.stringify(o)},c=await ot((()=>fetch(r,s)));if(c.ok)return rt(await c.json());throw await it("Generate Auth Token",c)}async function At(e,t=!1){let n;const r=await yt(e.appConfig,(r=>{if(!Pt(r))throw et.create("not-registered");const i=r.authToken;if(!t&&(2===(a=i).requestStatus&&!function(e){const t=Date.now();return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(a)))return r;var a;if(1===i.requestStatus)return n=async function(e,t){let n=await Ot(e.appConfig);for(;1===n.authToken.requestStatus;)await st(100),n=await Ot(e.appConfig);const r=n.authToken;return 0===r.requestStatus?At(e,t):r}(e,t),r;{if(!navigator.onLine)throw et.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 xt(e,t),r=Object.assign(Object.assign({},t),{authToken:n});return await vt(e.appConfig,r),n}catch(n){if(!tt(n)||401!==n.customData.serverCode&&404!==n.customData.serverCode){const n=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await vt(e.appConfig,n)}else await wt(e.appConfig);throw n}}(e,t),t}}));return n?await n:r.authToken}function Ot(e){return yt(e,(e=>{if(!Pt(e))throw et.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e;var t}))}function Pt(e){return void 0!==e&&2===e.registrationStatus}function Et(e){return et.create("missing-app-config-values",{valueName:e})}const Tt="installations";Be(new ee(Tt,(e=>{const t=e.getProvider("app").getImmediate();return{app:t,appConfig:function(e){if(!e||!e.options)throw Et("App Configuration");if(!e.name)throw Et("App Name");const t=["projectId","apiKey","appId"];for(const n of t)if(!e.options[n])throw Et(n);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),heartbeatServiceProvider:je(t,"heartbeat"),_delete:()=>Promise.resolve()}}),"PUBLIC")),Be(new ee("installations-internal",(e=>{const t=je(e.getProvider("app").getImmediate(),Tt).getImmediate();return{getId:()=>async function(e){const t=e,{installationEntry:n,registrationPromise:r}=await _t(t);return r?r.catch(console.error):At(t).catch(console.error),n.fid}(t),getToken:e=>async function(e,t=!1){const n=e;return await async function(e){const{registrationPromise:t}=await _t(e);t&&await t}(n),(await At(n,t)).token}(t,e)}}),"PRIVATE")),Ve(Ze,Ye),Ve(Ze,Ye,"esm2017");const It="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4";var Ct,Dt;function Nt(e){const t=new Uint8Array(e);return btoa(String.fromCharCode(...t)).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}function Lt(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"}(Ct||(Ct={})),function(e){e.PUSH_RECEIVED="push-received",e.NOTIFICATION_CLICKED="notification-clicked"}(Dt||(Dt={}));const Bt="fcm_token_details_db",jt="fcm_token_object_Store",Ft="firebase-messaging-store";let Rt=null;function Ut(){return Rt||(Rt=_e("firebase-messaging-database",1,{upgrade:(e,t)=>{switch(t){case 0:e.createObjectStore(Ft)}}})),Rt}async function Vt(e){const t=zt(e),n=await Ut(),r=await n.transaction(Ft).objectStore(Ft).get(t);if(r)return r;{const t=await async function(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map((e=>e.name)).includes(Bt))return null;let t=null;return(await _e(Bt,5,{upgrade:async(n,r,i,a)=>{var o;if(r<2)return;if(!n.objectStoreNames.contains(jt))return;const s=a.objectStore(jt),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!==(o=e.createTime)&&void 0!==o?o:Date.now(),subscriptionOptions:{auth:e.auth,p256dh:e.p256dh,endpoint:e.endpoint,swScope:e.swScope,vapidKey:"string"==typeof e.vapidKey?e.vapidKey:Nt(e.vapidKey)}}}else if(3===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Nt(e.auth),p256dh:Nt(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Nt(e.vapidKey)}}}else if(4===r){const e=c;t={token:e.fcmToken,createTime:e.createTime,subscriptionOptions:{auth:Nt(e.auth),p256dh:Nt(e.p256dh),endpoint:e.endpoint,swScope:e.swScope,vapidKey:Nt(e.vapidKey)}}}}})).close(),await ke(Bt),await ke("fcm_vapid_details_db"),await ke("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 Wt(e,t),t}}async function Wt(e,t){const n=zt(e),r=(await Ut()).transaction(Ft,"readwrite");return await r.objectStore(Ft).put(t,n),await r.done,t}function zt({appConfig:e}){return e.appId}const Gt=new Q("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 Ht(e,t){const n={method:"DELETE",headers:await $t(e)};try{const r=await fetch(`${qt(e.appConfig)}/${t}`,n),i=await r.json();if(i.error){const e=i.error.message;throw Gt.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw Gt.create("token-unsubscribe-failed",{errorInfo:e})}}function qt({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function $t({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 Kt({p256dh:e,auth:t,endpoint:n,vapidKey:r}){const i={web:{endpoint:n,auth:t,p256dh:e}};return r!==It&&(i.web.applicationPubKey=r),i}async function Qt(e){const t=await async function(e,t){const n=await e.pushManager.getSubscription();return n||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:Lt(t)})}(e.swRegistration,e.vapidKey),n={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:Nt(t.getKey("auth")),p256dh:Nt(t.getKey("p256dh"))},r=await Vt(e.firebaseDependencies);if(r){if(function(e,t){const n=t.vapidKey===e.vapidKey,r=t.endpoint===e.endpoint,i=t.auth===e.auth,a=t.p256dh===e.p256dh;return n&&r&&i&&a}(r.subscriptionOptions,n))return Date.now()>=r.createTime+6048e5?async function(e,t){try{const n=await async function(e,t){const n=await $t(e),r=Kt(t.subscriptionOptions),i={method:"PATCH",headers:n,body:JSON.stringify(r)};let a;try{const n=await fetch(`${qt(e.appConfig)}/${t.token}`,i);a=await n.json()}catch(e){throw Gt.create("token-update-failed",{errorInfo:e})}if(a.error){const e=a.error.message;throw Gt.create("token-update-failed",{errorInfo:e})}if(!a.token)throw Gt.create("token-update-no-token");return a.token}(e.firebaseDependencies,t),r=Object.assign(Object.assign({},t),{token:n,createTime:Date.now()});return await Wt(e.firebaseDependencies,r),n}catch(t){throw await async function(e){const t=await Vt(e.firebaseDependencies);t&&(await Ht(e.firebaseDependencies,t.token),await async function(e){const t=zt(e),n=(await Ut()).transaction(Ft,"readwrite");await n.objectStore(Ft).delete(t),await n.done}(e.firebaseDependencies));const n=await e.swRegistration.pushManager.getSubscription();return!n||n.unsubscribe()}(e),t}}(e,{token:r.token,createTime:Date.now(),subscriptionOptions:n}):r.token;try{await Ht(e.firebaseDependencies,r.token)}catch(e){console.warn(e)}return Jt(e.firebaseDependencies,n)}return Jt(e.firebaseDependencies,n)}async function Jt(e,t){const n={token:await async function(e,t){const n=await $t(e),r=Kt(t),i={method:"POST",headers:n,body:JSON.stringify(r)};let a;try{const t=await fetch(qt(e.appConfig),i);a=await t.json()}catch(e){throw Gt.create("token-subscribe-failed",{errorInfo:e})}if(a.error){const e=a.error.message;throw Gt.create("token-subscribe-failed",{errorInfo:e})}if(!a.token)throw Gt.create("token-subscribe-no-token");return a.token}(e,t),createTime:Date.now(),subscriptionOptions:t};return await Wt(e,n),n.token}function Zt(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 i=t.notification.image;i&&(e.notification.image=i)}(t,e),function(e,t){t.data&&(e.data=t.data)}(t,e),function(e,t){if(!t.fcmOptions)return;e.fcmOptions={};const n=t.fcmOptions.link;n&&(e.fcmOptions.link=n);const r=t.fcmOptions.analytics_label;r&&(e.fcmOptions.analyticsLabel=r)}(t,e),t}function Yt(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 Xt(e){return Gt.create("missing-app-config-values",{valueName:e})}Yt("hts/frbslgigp.ogepscmv/ieo/eaylg","tp:/ieaeogn-agolai.o/1frlglgc/o"),Yt("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class en{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 Xt("App Configuration Object");if(!e.name)throw Xt("App Name");const t=["projectId","apiKey","appId","messagingSenderId"],{options:n}=e;for(const e of t)if(!n[e])throw Xt(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 tn(e,t){if(!navigator)throw Gt.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw Gt.create("permission-blocked");return await async function(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=It)}(e,null==t?void 0:t.vapidKey),await async function(e,t){if(t||e.swRegistration||await async function(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch((()=>{}))}catch(e){throw Gt.create("failed-service-worker-registration",{browserErrorMessage:e.message})}}(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw Gt.create("invalid-sw-registration");e.swRegistration=t}}(e,null==t?void 0:t.serviceWorkerRegistration),Qt(e)}async function nn(e,t){const n=t.data;if(!n.isFirebaseMessaging)return;e.onMessageHandler&&n.messageType===Dt.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(Zt(n)):e.onMessageHandler.next(Zt(n)));const r=n.data;var i;"object"==typeof(i=r)&&i&&"google.c.a.c_id"in i&&"1"===r["google.c.a.e"]&&await async function(e,t,n){const r=function(e){switch(e){case Dt.NOTIFICATION_CLICKED:return"notification_open";case Dt.PUSH_RECEIVED:return"notification_foreground";default:throw new Error}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(r,{message_id:n["google.c.a.c_id"],message_name:n["google.c.a.c_l"],message_time:n["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}(e,n.messageType,r)}const rn="@firebase/messaging",an="0.9.13";function on(e=function(e="[DEFAULT]"){const t=De.get(e);if(!t)throw Fe.create("no-app",{appName:e});return t}()){return async function(){try{await $()}catch(e){return!1}return"undefined"!=typeof window&&q()&&!("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")}().then((e=>{if(!e)throw Gt.create("unsupported-browser")}),(e=>{throw Gt.create("indexed-db-unsupported")})),je(X(e),"messaging").getImmediate()}Be(new ee("messaging",(e=>{const t=new en(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",(e=>nn(t,e))),t}),"PUBLIC")),Be(new ee("messaging-internal",(e=>{const t=e.getProvider("messaging").getImmediate();return{getToken:e=>tn(t,e)}}),"PRIVATE")),Ve(rn,an),Ve(rn,an,"esm2017");var sn=function(e){L()(l,e);var t,n,r,i,a,o,s,c,u=(s=l,c=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R()(s);if(c){var n=R()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j()(this,e)});function l(){var e;return E()(this,l),(e=u.call(this)).permission="default",e.token="",e}return I()(l,[{key:"getUser",value:(o=O()(x().mark((function e(){var t,n,r,i=arguments;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=!(i.length>0&&void 0!==i[0])||i[0],n=i.length>1?i[1]:void 0,!t){e.next=4;break}return e.abrupt("return",this.buildUser(this.token,n||[]));case 4:return e.next=6,this.getToken();case 6:return r=e.sent,e.abrupt("return",this.buildUser(r,n||[]));case 8:case"end":return e.stop()}}),e,this)}))),function(){return o.apply(this,arguments)})},{key:"getToken",value:(a=O()(x().mark((function e(){var t,n;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t={granted:this.handleTokenGrantedNotification,default:this.handleTokenDefaultNotification,denied:this.handleTokenDeniedNotification},n=this.getUserNotificationPermission(),e.abrupt("return",t[n].bind(this)());case 3:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"handleTokenGrantedNotification",value:(i=O()(x().mark((function e(){var t,n,r,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initFirebase();case 2:return t=e.sent,n=this.getMessagingFirebase(t),e.next=6,this.initServiceWorker();case 6:return r=e.sent,e.next=9,this.getTokenFirebase(n,r);case 9:return i=e.sent,this.permission="granted",this.token=i,e.abrupt("return",i);case 13:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"handleTokenDefaultNotification",value:(r=O()(x().mark((function e(){var t;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.setUserNotificationPermission();case 2:if("granted"!==(t=e.sent)){e.next=5;break}return e.abrupt("return",this.handleTokenGrantedNotification());case 5:if("denied"!==t){e.next=7;break}return e.abrupt("return",this.handleTokenDeniedNotification());case 7:return e.abrupt("return","");case 8:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"handleTokenDeniedNotification",value:(n=O()(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.permission="denied",this.token="",e.abrupt("return","");case 3:case"end":return e.stop()}}),e,this)}))),function(){return n.apply(this,arguments)})},{key:"buildUser",value:function(e,t){var n={token:e},r={uolID:this.getUOLID(),gaID:this.getGaId(),domain:this.getDomain(),bookmarks:this.getBookmarks(),location:this.getLocation(),preferences:this.getPreferences(),platform:this.getPlatform(),permission:this.getUserNotificationPermission()},i=function(e){try{var t=r[e];t&&(n[e]=t)}catch(e){}};if(t&&t.length)return t.forEach((function(e){return i(e)})),n;for(var a in r)i(a);return n}},{key:"getDomain",value:function(){return this.context.central}},{key:"getUOLID",value:function(){var e,t;return null===(e=window.UOLPD)||void 0===e||null===(t=e.dataLayer)||void 0===t?void 0:t.UOLID}},{key:"getGaId",value:function(){return this.tools.cookies.get("_ga")}},{key:"getBookmarks",value:function(){return this.context.tags||null}},{key:"getLocation",value:function(){var e=this,t=function(t){return e.tools.isObject(t)&&Object.keys(t).length},n=["country","state","city"];return function(){var r={},i=e.tools.cookies.get("geoloc");if(!i)return null;var a={country:1,state:4,city:3},o=unescape(i).split(",");return Array.isArray(o)&&n.forEach((function(e){var t=o[a[e]];t&&(r[e]=t)})),t(r)?r:null}()||function(){var r={},i=e.tools.storage.get("geo-location");if(!i)return null;var a={country:"country",state:"region"},o=JSON.parse(i.data);return n.forEach((function(e){var t=o[a[e]];t&&(r[e]=t)})),t(r)?r:null}()}},{key:"getPreferences",value:function(){var e,t={},n={favoriteTeam:this.getTeam(),sign:this.getSign(),newsletters:this.getNewsletters(),subscriber:this.getSubscriberUol()};for(var r in n){var i=n[r];i&&(t[r]=i)}return e=t,this.tools.isObject(e)&&Object.keys(e).length?t:null}},{key:"getPlatform",value:function(){var e=this.tools.isMobile||{},t={isMobile:e.phone||!1,device:"pc",browser:this.tools.browser.name};if(!0===e.tablet&&(t.device="tablet"),e.phone)for(var n=0,r=["amazon","android","apple"];n<r.length;n++){var i=r[n];if(!0===e[i].device){t.device=i;break}}return t}},{key:"getSign",value:function(){return this.tools.cookies.get("meuSigno")}},{key:"getTeam",value:function(){return this.tools.cookies.get("meuTime")}},{key:"getNewsletters",value:function(){return this.tools.cookies.get("_idsNewsletter")}},{key:"getSubscriberUol",value:function(){var e,t,n;return null===(e=window)||void 0===e||null===(t=e.tp)||void 0===t||null===(n=t.customVariables)||void 0===n?void 0:n["uol-subscriber"]}},{key:"setUserNotificationPermission",value:function(){return Notification.requestPermission()}},{key:"getUserNotificationPermission",value:function(){return Notification.permission}},{key:"initFirebase",value:(t=O()(x().mark((function e(){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ue(C));case 1:case"end":return e.stop()}}),e)}))),function(){return t.apply(this,arguments)})},{key:"getMessagingFirebase",value:function(e){return on(e)}},{key:"getTokenFirebase",value:function(e,t){return async function(e,t){return tn(e=X(e),t)}(e,{vapidKey:"BEd84XGoGhdVq4piMRrbvvgp__QmDjh3oqdGnyx4slV4lGGgwoeRbcALLcNss2WTl34N0gXmGOsMM3lCOJOn1cA",serviceWorkerRegistration:t})}},{key:"initServiceWorker",value:function(){var e,t=(null===(e=this.context)||void 0===e?void 0:e.swPath)||"/firebase-messaging-sw.js",n=this.isDebug?"".concat(t,"?debug"):t;return navigator.serviceWorker.register(n,{scope:"/firebase-cloud-messaging-push-scope",type:"module"})}}]),l}(U),cn=n(38),un=n.n(cn);const ln=[{notification:{layout:"custom",campaign:"horoscope",title:"Você quer receber notificações para não perder previsões e dicas do seu signo?"},validate:function(e){var t=e.sc,n=e.tools;if(!/(www\.uol\.com\.br\/universa\/?)|(www\.uol\.com\.br\/?$)/.test(location.href)||["Violência contra a mulher"].includes(t.collection))return null;var r=n.cookies.get("meuSigno")||location.href.replace(/.*\/universa\/horoscopo\/(.+?)\/.*/,"$1"),i=this.getGroup(r);return r&&i?Object.assign({hasGroup:!0},this.notification,i):null},getGroup:function(e){var t,n=["aries","touro","gemeos","cancer","leao","virgem","libra","escorpiao","sagitario","capricornio","aquario","peixes"].find((function(t){return t===e}));return n?{name:n,img:(t=e,"https://conteudo.imguol.com.br/c/webmasters/campanhas/webalert/signos/".concat(t,".jpg"))}:null}},{notification:{layout:"custom",campaign:"teams",title:"Você quer receber notificações em tempo real para não perder nenhuma notícia do seu time?"},validate:function(e){var t=e.tools;if(!/(www\.uol\.com\.br\/esporte\/?)|(www\.uol\.com\.br\/?$)/.test(location.href))return null;var n=t.cookie.get("meuTime")||"";if(n){var r=this.getGroup({id:n});if(r)return Object.assign({},this.notification,r)}var i=!!window.Collection&&Collection.search.tags.split(",")[0];if(i){var a=this.getGroup({tag:i});if(a)return Object.assign({},this.notification,a)}return null},getGroup:function(e){var t=e.id,n=e.tag,r=function(e){return"https://conteudo.imguol.com.br/c/webmasters/campanhas/webalert/times/".concat(e,".jpg")},i=["1094,15424,Atlético-GO","3,15425,Atlético-PR","4,15423,Atlético-MG","30,15442,Bahia","5,15485,Botafogo","984,15509,Bragantino","33,15530,Ceará","695,15546,Chapecoense","6,15586,Corinthians","7,15582,Coritiba","9,15604,Cruzeiro","1,15663,Flamengo","11,15659,Fluminense","35,15701,Fortaleza","12,15694,Goiás","13,15737,Grêmio","15,15800,Internacional","17,16026,Palmeiras","22,16147,Santos","24,16130,São Paulo","76,16209,Sport","25,16237,Vasco"].find((function(e){return function(e){var r=e.split(","),i=un()(r,2),a=i[0],o=i[1];return t?t==a:n?n==o:void 0}(e)}));return i?function(e){var t,n=e.split(","),i=un()(n,3),a=i[0],o=i[1],s=i[2],c=s.normalize("NFD").replace(/[\u0300-\u036f]/g,"").replace("\n","-").toLowerCase();return{name:c,id:Number(a),tag:Number(o),title:(t=s,"Você quer receber notificações em tempo real para não perder nenhuma notícia do ".concat(t,"?")),img:r(c)}}(i):null}},{notification:{layout:"custom",campaign:"tag-80427",name:"economia-mais",title:"Você quer receber notificações para investir de forma inteligente?",img:"https://conteudo.imguol.com.br/c/webmasters/campanhas/webalert/economia/economia-mais-bg.png"},validate:function(){return/(economia\.uol\.com\.br\/mais\/?)/.test(location.href)?Object.assign({},this.notification):null}},{notification:{layout:"custom",campaign:"tag-80835",name:"reality-show",title:"Curte BBB e outros reality shows? Receba notificações em tempo real para não perder nenhuma notícia do seu programa favorito",img:"https://conteudo.imguol.com.br/c/webmasters/campanhas/webalert/bbb-22.jpg"},validate:function(e){var t,n,r=e.tags,i=/(https:\/\/tvefamosos\.uol\.com\.br\/bbb\/?|https:\/\/tvefamosos\.uol\.com\.br\/reality-shows\/?|https:\/\/tvefamosos\.uol\.com\.br\/a-fazenda\/?)|(https:\/\/www\.uol\.com\.br\/splash\/reality-shows\/?)|(https:\/\/www\.uol\.com\.br\/splash\/bbb\/?)/.exec(location.href);return t=this.userTags,(null===(n=window.universal_variable.page)||void 0===n?void 0:n.tags.some((function(e){return t.find((function(t){return t==e}))})))||i&&i[0]==location.href||i&&i[2]==location.href&&isValidUserTag(r,["80037","20524","80554","80557"])?Object.assign({},this.notification):null}},{notification:{layout:"custom",campaign:"tag-79875",name:"uol-ve-tv",title:"Quer receber notificações das análises do mundo da televisão do Podcast UOL Vê TV?",img:"https://conteudo.imguol.com.br/c/webmasters/campanhas/webalert/uol-ve-tv.jpg"},validate:function(){return/www\.uol\.com\.br\/play\/splash\/podcast\/splash-ve-tv/.exec(location.href)?Object.assign({},this.notification):null}},{notification:{campaign:"tag-16566",name:"mercado-da-bola",title:"Que tal receber notícias em tempo real do Mercado da Bola e todas as movimentações do futebol?",props:{cancelText:"Cancele quando quiser"}},validate:function(){var e,t,n=/www\.uol\.com\.br\/esporte\/futebol\/mercado-da-bola/.test(location.href),r=(e=["16566"],null===(t=window.universal_variable.page)||void 0===t?void 0:t.tags.some((function(t){return e.find((function(e){return e==t}))})));return n||r?Object.assign({},this.notification):null}},{notification:{campaign:"curious-world",name:"curiosidades",title:"Que tal receber notícias dos acontecimentos mais curiosos do mundo?",props:{cancelText:"Cancele quando quiser"}},validate:function(){var e,t;return e=["80620","17229","64748","10761","10773","11126","27533","10764","79771"],(null===(t=window.universal_variable.page)||void 0===t?void 0:t.tags.some((function(t){return e.find((function(e){return e==t}))})))?Object.assign({},this.notification):null}},{notification:{campaign:"good-news",name:"boas-noticias",title:"Receba notificações das notícias mais positivas, que nos inspiram a um mundo melhor",props:{cancelText:"Cancele quando quiser"}},validate:function(){var e,t;return e=["79738","79736","80808","80394","12640","78684","78762"],(null===(t=window.universal_variable.page)||void 0===t?void 0:t.tags.some((function(t){return e.find((function(e){return e==t}))})))?Object.assign({},this.notification):null}},{notification:{campaign:"anonymous-tab",name:"aba-anonima",title:"Você quer receber notificações em tempo real das reportagens sobre sexo, prazer e erotismo do TAB?",props:{cancelText:"Cancele quando quiser"}},validate:function(){var e,t;return e=["81827"],(null===(t=window.universal_variable.page)||void 0===t?void 0:t.tags.some((function(t){return e.find((function(e){return e==t}))})))?Object.assign({},this.notification):null}},{notification:{campaign:"offers-monitor",name:"monitor-de-ofertas",title:"De olho nos descontos! Ative as notificações do Monitor de Ofertas e receba a nossa curadoria",props:{cancelText:"Cancele quando quiser"}},validate:function(){return/(economia.uol.com.br\/ao-vivo)(?=.*monitor-de-ofertas-uol)/.test(location.href)?Object.assign({},this.notification):null}}];var fn=(new Date).getTime(),dn=function(e){L()(o,e);var t,n,r,i,a=(r=o,i=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R()(r);if(i){var n=R()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j()(this,e)});function o(e){var t;return E()(this,o),(t=a.call(this)).subscriptionManager=e,t}return I()(o,[{key:"getNotification",value:(n=O()(x().mark((function e(t){var n,r,i,a;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this.tools.storage.get()||{},window.DucksLake){e.next=3;break}return e.abrupt("return",this.getDefaultNotification(n));case 3:return e.next=5,this.getCampaign(t,n);case 5:return r=e.sent,i=this.getDefaultNotification(n),a=this.tools.isObject(r),e.abrupt("return",a?this.doViewSort(i,r):i);case 9:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getDefaultNotification",value:function(e){var t,n=(null==e||null===(t=e.channel)||void 0===t?void 0:t[this.context.channelAlias])||{},r=n.accept,i=n.lastTime;return this.isValidToDisplay(r,i)?{campaign:"default",name:"default",title:"Você quer receber notificações em tempo real e não perder nenhuma notícia importante?",icon:"https://imguol.com.br/c/_layout/v3/logoUOL2021/logo_completo_black.svg"}:null}},{key:"getCampaign",value:(t=O()(x().mark((function e(t,n){var r,i,a,o,s,c,u,l,f,d=this;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=window.universal_variable||{},i=r.sc,a=void 0===i?{}:i,e.next=4,this.subscriptionManager.getTagsHistory(t.gaID);case 4:if(o=e.sent,s=o.data,(c=ln.reduce((function(e,t){try{if("function"==typeof t.validate){var n=t.validate({tags:s,sc:a,tools:d.tools});d.tools.isObject(n)&&e.push(n)}}catch(e){}return e}),[])).length){e.next=9;break}return e.abrupt("return",null);case 9:if(u=(null==n?void 0:n.campaigns)||{},(l=c.reduce((function(e,t){return d.handleValidCampaign(e,t,u)}),[])).length){e.next=13;break}return e.abrupt("return",null);case 13:return f=Math.floor(Math.random()*l.length),e.abrupt("return",l[f]);case 17:return e.prev=17,e.t0=e.catch(0),e.abrupt("return",null);case 20:case"end":return e.stop()}}),e,this,[[0,17]])}))),function(e,n){return t.apply(this,arguments)})},{key:"handleValidCampaign",value:function(e,t,n){var r=n[t.campaign];return(t.hasGroup?this.isValidGroupCampaign(r||[],t):this.isValidCampaign(r||{}))&&e.push(t),e}},{key:"isValidCampaign",value:function(e){var t=e.accept,n=e.lastTime;return this.isValidToDisplay(t,n)}},{key:"isValidGroupCampaign",value:function(e,t){var n=t.name;if(!e.length)return!0;var r=e.find((function(e){return e.name===n}));if(!r)return!0;var i=r.accept,a=r.lastTime;return this.isValidToDisplay(i,a)}},{key:"isValidToDisplay",value:function(e,t){return null==e&&null==t||!this.isAlreadySubscribed(e)&&this.isRetryPeriod(t)}},{key:"isRetryPeriod",value:function(e){try{return fn-new Date(e).getTime()>6048e5}catch(e){return!1}}},{key:"isAlreadySubscribed",value:function(e){return 1==e}},{key:"doViewSort",value:function(e,t){var n=[];return e&&n.push(e),t&&n.push(t),n[Math.floor(Math.random()*n.length)]}}]),o}(U),pn=n(713),hn=n.n(pn);function gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function bn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gn(Object(n),!0).forEach((function(t){hn()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var mn=function(e){L()(s,e);var t,n,r,i,a,o=(i=s,a=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,t=R()(i);if(a){var n=R()(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return j()(this,e)});function s(){return E()(this,s),o.call(this)}return I()(s,[{key:"uri",get:function(){return this._uri||(this._uri=this.isProd?"https://push-webalert.conteudo.uol/roswell":"http://localhost:9292/roswell"),this._uri}},{key:"onAccept",value:function(e,t){var n=t.campaign,r=Object.assign({campaigns:{},channel:{}},this.tools.storage.get());if("default"===n)return this.handleAcceptChannel(r,e);this.handleAcceptCampaign(r,t,e)}},{key:"onDimiss",value:function(e){var t=e.campaign,n=Object.assign({campaigns:{},channel:{}},this.tools.storage.get());if("default"===t)return this.handleDimissChannel(n);this.handleDimissCampaign(n,e)}},{key:"handleAcceptChannel",value:function(e,t){var n,r=this.context.channelAlias,i=e.channel,a=t.bookmarks,o=void 0===a?[]:a,s=bn(bn({},t),{},{bookmarks:o.length?[].concat(S()(o.map((function(e){return"".concat(r,"-").concat(e)}))),[r]):[r]}),c=bn(bn({},e),{},{channel:bn(bn({},i),{},hn()({},r,{accept:!0,lastTime:new Date,tags:null!=i&&null!==(n=i[r])&&void 0!==n&&n.tags?[].concat(S()(i[r].tags),S()(o||[])):S()(o||[])}))});this.sync(c,s)}},{key:"handleAcceptCampaign",value:function(e,t,n){var r=t.hasGroup,i=t.campaign,a=t.name,o=bn({},e),s=o.campaigns[i],c={accept:!0,lastTime:new Date};r?Array.isArray(s)?s.push(bn(bn({},c),{},{name:a})):o.campaigns[i]=[bn(bn({},c),{},{name:a})]:o.campaigns[i]=c;var u=r?"cp-".concat(i,"-gp-").concat(a):"cp-".concat(i),l=bn(bn({},n),{},{bookmarks:[u]});this.sync(o,l)}},{key:"handleDimissChannel",value:function(e){var t=this.context.channelAlias;if(this.context.channel){var n=e.channel||{},r=bn(bn({},e),{},{channel:bn(bn({},n),{},hn()({},t,{accept:!1,lastTime:new Date}))});this.tools.storage.set(r)}}},{key:"handleDimissCampaign",value:function(e,t){var n=t.hasGroup,r=t.campaign,i=t.name,a=bn({},e),o=a.campaigns[r],s={accept:!1,lastTime:new Date};n?Array.isArray(o)?o.push(bn(bn({},s),{},{name:i})):a.campaigns[r]=[bn(bn({},s),{},{name:i})]:a.campaigns[r]=s,this.tools.storage.set(a)}},{key:"getTagsHistory",value:function(){return DucksLake.getUserTagsInfo()}},{key:"getSubscriptions",value:function(){return DucksLake.getSubscription("webalert")}},{key:"sync",value:function(e,t){var n=1==e.synced?"update":"insert";return{insert:this.insertSubscription,update:this.updateSubscription}[n].bind(this)(e,t)}},{key:"insertSubscription",value:(r=O()(x().mark((function e(t,n){return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("".concat(this.uri,"/subscription/insert"),{method:"POST",body:JSON.stringify(n),credentials:"omit",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"}});case 3:if(201===e.sent.status){e.next=6;break}return e.abrupt("return",this.getUserAndUpdateBySubscription(t,n));case 6:this.tools.storage.set(bn(bn({},t),{},{token:n.token,synced:!0})),this.tools.log.info("Subscription successfully added"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),this.tools.log.error("".concat(e.t0.message));case 13:case"end":return e.stop()}}),e,this,[[0,10]])}))),function(e,t){return r.apply(this,arguments)})},{key:"updateSubscription",value:(n=O()(x().mark((function e(t,n){var r,i;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,r={},["bookmarks","preferences"].forEach((function(e){var t=n[e];t&&(r[e]=t)})),Object.keys(r).length){e.next=6;break}return e.abrupt("return");case 6:return i={token:n.token,update:r},e.next=9,fetch("".concat(this.uri,"/subscription/update"),{method:"PUT",body:JSON.stringify(i),credentials:"omit",mode:"cors",cache:"no-cache",headers:{"Content-Type":"application/json"}});case 9:202==e.sent.status&&Object.keys(t).length&&this.tools.storage.set(bn(bn({},t),{},{token:n.token,synced:!0})),this.tools.log.info("Subscription successfully updated"),e.next=17;break;case 14:e.prev=14,e.t0=e.catch(0),this.tools.log.error("".concat(e.t0.message));case 17:case"end":return e.stop()}}),e,this,[[0,14]])}))),function(e,t){return n.apply(this,arguments)})},{key:"getUserAndUpdateBySubscription",value:(t=O()(x().mark((function e(t,n){var r,i,a,o;return x().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,this.tools.log.info("Getting an existing subscription..."),e.next=4,fetch("".concat(this.uri,"/subscription/get?token=").concat(n.token,"&fields=bookmarks"));case 4:if(200!=(r=e.sent).status){e.next=13;break}return this.tools.log.info("Subscription found"),e.next=9,r.json();case 9:return i=e.sent,a=i.data.bookmarks,o=this.getChannelAndCampaigns(t,a||[]),e.abrupt("return",this.updateSubscription(o,n));case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(0),this.tools.log.error("".concat(e.t0.message));case 18:this.tools.log.info("Subscription not found");case 19:case"end":return e.stop()}}),e,this,[[0,15]])}))),function(e,n){return t.apply(this,arguments)})},{key:"getChannelAndCampaigns",value:function(e,t){var n={campaigns:e.campaigns||{},channel:e.channel||{}},r={accept:!0,lastTime:new Date};return t.reduce((function(e,n){if(2!=n.length&&"geral"!==n||(e.channel[n]=bn(bn({},r),{},{tags:t.filter((function(e){return e.startsWith("".concat(n,"-"))})).map((function(e){return e.replace("".concat(n,"-"),"")}))})),n.startsWith("cp-")){var i=n.replace("cp-","");if(i.includes("-gp-")){var a=i.split("-gp-"),o=un()(a,2),s=o[0],c=o[1];Array.isArray(e.campaigns[s])?e.campaigns[s].find((function(e){return e.name===c}))||e.campaigns[s].push(bn(bn({},r),{},{name:c})):e.campaigns[s]=[bn(bn({},r),{},{name:c})]}else e.campaigns[i]=r}return e}),n)}}]),s}(U);var vn=function(e){L()(i,e);var t,n,r=(t=i,n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}(),function(){var e,r=R()(t);if(n){var i=R()(this).constructor;e=Reflect.construct(r,arguments,i)}else e=r.apply(this,arguments);return j()(this,e)});function i(){return E()(this,i),r.apply(this,arguments)}return I()(i,[{key:"show",value:function(e,t,n){var r=this,i=this.loadModal(e);window.addEventListener("scroll",(function(){return r.handleScroll(i)})),document.querySelectorAll(".webalert_container_click").forEach((function(a){a.addEventListener("click",(function(a){r.destroy(i);var o=a.srcElement.getAttribute("role");"sim"===o&&t(e),"nao"===o&&n(e)}))}))}},{key:"loadModal",value:function(e){var t=document.querySelector(this.context.selector),n=document.createElement("div");return n.className="webalert_".concat((new Date).getTime()," webalert_view_container container"),n.innerHTML=this.modalType(this.getContent(e)),this.writeCss(document.head),t.insertBefore(n,t.firstChild),n}},{key:"getContent",value:function(e){return Object.assign({img:"https://imguol.com.br/c/_layout/v3/logoUOL2021/logo_completo_black.svg"},e)}},{key:"modalType",value:function(e){var t,n="desktop"==(/android|webos|iphone|ipad|ipod|blackberry|mobile |iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())?"mobile":"desktop")?"webalert_show_confirmation_message":"";return"custom"===e.layout?(t=e,'\n                <div class="webalert_container '.concat(n," webalert_layout_custom webalert_layout_").concat(t.campaign,'" campaign="').concat(t.campaign,'"\n                style="background-image: url(').concat(t.img,');">\n                    <p class="webalert_container_description">').concat(t.title,'</p>\n                    <p class="webalert_container_subdescription">Você pode cancelar quando quiser</p>\n                    <button type="button" role="sim" class="webalert_container_click webalert_container_button webalert_container_button_yes">aceito</button>\n                    <button type="button" role="nao" class="webalert_container_click webalert_container_button webalert_container_button_no">não</button>\n                </div>\n            ')):function(e){var t;return'\n                <div class="webalert_container '.concat(n,'" campaign="').concat(e.name,'">\n                    <img width="50" height="auto" class="webalert_container_logo_icon" src="').concat(e.img,'" alt="UOL - O melhor conteúdo" />\n                    <p class="webalert_container_description">').concat(e.title,'</p>\n                    <p class="webalert_container_subdescription">').concat(e.cancelText||"Você pode cancelar quando quiser",'</p>\n                    <div class="webalert_container_button_wrapper">\n                        ').concat(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t="webalert_container_button_no--close",n=e.dismiss,r=e.accept||"aceito";return'\n            <button type="button" role="nao" class="webalert_container_click webalert_container_button webalert_container_button_no '.concat(t,'"></button>\n            ').concat(n?'<button type="button" role="nao" class="webalert_container_click webalert_container_button webalert_container_button_no">'.concat(n,"</button>"):"",' \n            <button type="button" role="sim" class="webalert_container_click webalert_container_button webalert_container_button_yes">').concat(r,"</button>")}(null==e||null===(t=e.props)||void 0===t?void 0:t.buttons),"\n                    </div>\n                </div>\n            ")}(e)}},{key:"writeCss",value:function(e){var t,n,r=document.createElement("link");r.setAttribute("rel","stylesheet"),r.setAttribute("type","text/css"),r.setAttribute("href","data:text/css;charset=UTF-8,"+encodeURIComponent(".webalert_view_container {\n            display: flex;\n            justify-content: center;\n        }\n    \n        .webalert_view_container.container {\n            min-height: 0 !important;\n            height: 0 !important;\n        }\n    \n        @media (min-width: 1230px) {\n            .header .webalert_view_container {\n                justify-content: flex-start;\n            }\n        }\n    \n        .webalert_container,\n        .webalert_container * {\n            box-sizing: border-box;\n            font-family: ".concat(n="UOLText",";\n        }\n    \n        .webalert_container {\n            position: fixed;\n            top: -100%;\n            z-index: 6000001;\n            padding: 24px 24px 16px 24px;\n            width: ").concat(400,"px;\n            max-width: 100%;\n            height: ").concat("auto",";\n            border-radius: 12px;\n            box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.32);\n            background-color: #ffffff;\n            transition: top 0.3s;\n            border-left: 5px solid #d6001e;\n        }\n    \n        .webalert_container_show {\n            top: 55px;\n        }\n    \n        /** oculta o container se tiver a classe webalert_hidden_container */\n        .webalert_hidden_container .webalert_container_show {\n            top: -100% !important;\n        }\n    \n        @media (max-width: 767px) {\n            .webalert_container_show {\n                top: calc(100% - 380px);\n            }\n        }\n    \n        .webalert_container_logo_icon {\n            width: 88px;\n            height: 31.53px;\n            top: 20px;\n            left: 20px;\n        }\n    \n        .webalert_container_description {\n            padding: 0;\n            font-weight: 400;\n            font-size: 16px;\n            line-height: 24px;\n            letter-spacing: normal;\n            color: #202020;\n            margin: 16px 0 0;\n            font-style: normal;\n        }\n    \n        .webalert_container_subdescription {\n            padding: 0;\n            font-weight: 400;\n            font-size: 12px;\n            font-style: normal;\n            line-height: 16px;\n            letter-spacing: normal;\n            color: #4d4d4d;\n            margin: 8px 0 0;\n        }\n    \n        .webalert_hidden {\n            display: none;\n        }\n    \n        .webalert_container_click {\n            cursor: pointer;\n        }\n    \n        .webalert_container_button_wrapper {\n            display: flex;\n            justify-content: end;\n            margin: 16px 0 0 0;\n        }\n    \n        .webalert_container_button {\n            line-height: 16px;\n            border-radius: 8px;\n            padding: 8px 16px;\n            border: solid 1px #cccccc;\n            background-color: #fff;\n            text-transform: capitalize;\n            font-size: 16px;\n            letter-spacing: 0.96px;\n            text-align: center;\n            transition: opacity 0.3s;\n            font-style: normal;\n            font-weight: 700;\n            height: 36px;\n            transition: opacity 0.3s;\n        }\n    \n        .webalert_container_button_no {\n            background-color: #fff;\n            border: 1px solid #4d4d4d;\n            background: #fff;\n            color: #4d4d4d;\n        }\n    \n        .webalert_container_button_yes {\n            border-width: 0;\n            background: #d6001e;\n            color: #fff;\n            margin-left: 8px;\n        }\n    \n        .webalert_container_click:hover {\n            opacity: 0.6;\n        }\n    \n        .webalert_confirmation_wrapper {\n            position: fixed;\n            height: 100vh;\n            width: 100%;\n            background: rgba(0, 0, 0, 0.8);\n            z-index: 30000001;\n        }\n    \n        .webalert_show_confirmation {\n            overflow: auto;\n        }\n    \n        .webalert_confirmation_text {\n            position: absolute;\n            width: auto;\n            padding: 10px 20px;\n            font-family: ").concat(n,";\n            font-size: 14px;\n            font-weight: 600;\n            text-align: right;\n            color: #fff;\n            background: #2977f3;\n            border-radius: 5px;\n            ").concat((t={firefox:"\n            top: 135px;\n            left: 373px;\n        ",chrome:"\n            top: 145px;\n            left: 133px;\n        "})[/Firefox/i.test(navigator.userAgent.toLowerCase())?"firefox":"chrome"]||t.chrome,'\n        }\n    \n        /* Times e horóscopo */\n        .webalert_container.webalert_layout_custom {\n            padding: 20px 108px 15px 27px;\n            color: #fff;\n            background-position: 100% 100%;\n            background-size: cover;\n            border: none;\n            width: 355px;\n            box-shadow: 0 2px 4px 0 rgb(0 0 0 / 50%);\n            background-color: #fcfcfc;\n            border-radius: 10px;\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_description,\n        .webalert_container.webalert_layout_custom .webalert_container_subdescription {\n            margin-right: 6px;\n            color: #fff;\n            line-height: 1.29;\n            margin: 0 0 20px 0;\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_description {\n            font-weight: normal;\n            font-size: 14px;\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_subdescription {\n            font-weight: normal;\n            font-style: italic;\n            line-height: 1.29;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-horoscope .webalert_container_description {\n            margin-right: 10px;\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_button {\n            width: 100px;\n            line-height: 35px;\n            border-radius: 2px;\n            padding: 0;\n            text-transform: uppercase;\n            font-size: 12px;\n            color: #666;\n            text-align: center;\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_button_no {\n            color: #fff;\n            background-color: transparent;\n            float: right\n        }\n    \n        .webalert_container.webalert_layout_custom .webalert_container_button_yes {\n            background: #fff;\n            margin-left: 0;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-teams .webalert_container_button_yes {\n            color: #000;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-tag-80427 .webalert_container_button_yes {\n            color: #000;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-horoscope .webalert_container_button_yes {\n            color: #1f1a42;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-tag-80835 .webalert_container_button_yes {\n            color: #8B00D5;\n        }\n    \n        .webalert_container.webalert_layout_custom.webalert_layout_campaign-tag-79875 .webalert_container_button_yes {\n            color: #7301ce;\n        }\n    \n        .webalert_container_button_no--close {\n            top: 0 !important;\n            position: absolute !important;\n            border: none !important;\n            right: 0 !important;\n            color: #09121F !important;\n            background: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNCIgaGVpZ2h0PSIxNCIgZmlsbD0ibm9uZSI+PHBhdGggZmlsbD0iIzA5MTIxRiIgZD0ibTcgNS41ODYgNC45NS00Ljk1IDEuNDE0IDEuNDE0TDguNDE0IDdsNC45NSA0Ljk1LTEuNDE0IDEuNDE0TDcgOC40MTRsLTQuOTUgNC45NUwuNjM2IDExLjk1IDUuNTg2IDcgLjYzNiAyLjA1IDIuMDUuNjM2IDcgNS41ODZaIi8+PC9zdmc+") no-repeat center !important;\n            width: 40px !important;\n            height: 40px !important;\n        }'))),e.appendChild(r)}},{key:"handleScroll",value:function(e){var t=e.querySelector(".webalert_container");this.showOnScroll(t,"webalert_container_show")}},{key:"showOnScroll",value:function(e,t){var n=window.innerHeight;document.documentElement.scrollTop>n?e.classList.add(t):e.classList.remove(t)}},{key:"destroy",value:function(e){e.parentNode.removeChild(e)}}]),i}(U);function wn(e){return e?{info:function(e){return console.log.call(console,"[webalert-notification:info] ".concat(e))},error:function(e){return console.error.call(console,"[webalert-notification:error] ".concat(e))},warn:function(e){return console.warn.call(console,"[webalert-notification:warn] ".concat(e))}}:{info:function(){},error:function(){},warn:function(){}}}!function(){var e=function(){var e,n,r,a=(n=location.search.includes("webalert=debug"),r=!location.search.includes("webalert=dev"),{tools:{cookies:new Map(document.cookie.split("; ").map((function(e){return e.split("=")}))),isObject:function(e){return"object"===t()(e)&&null!==e},isMobile:_(window.navigator),storage:{get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"WebalertNotificationUOL";return JSON.parse(localStorage.getItem(e))},set:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"WebalertNotificationUOL";return localStorage.setItem(t,JSON.stringify(e))}},browser:(e=i().getParser(window.navigator.userAgent),{model:e.getBrowser(),name:e.getBrowserName()}),log:wn(n)},context:function(){var e={disableUi:!1,central:location.hostname.split(".")[0],channel:location.hostname,selector:"body",channelAlias:"geral"},t=document.querySelector(".uol-notifications-widget");if(t)for(var n=0,r=["data-container","service-worker-path","channel","themes","central","disable-ui","legacy-app-lasted"];n<r.length;n++){var i=r[n],a=t.getAttribute(i);if(null!==a)switch(i){case"data-container":e.selector=a;break;case"service-worker-path":e.swPath=a;break;case"channel":e.channel=a;break;case"themes":e.tags=a.split(",").filter((function(e){return"geral"!==e}));break;case"central":e.central=a;break;case"disable-ui":e.disableUi="true"===a;break;case"legacy-app-lasted":e.legacyAppLasted=a}}return"geral"!==e.channel&&(e.channelAlias=e.channel.slice(0,2)),e}(),isProd:r,isDebug:n}),o=new mn;new D({SubscriptionManager:o,Validator:new V,UserManager:new sn,NotificationManager:new dn(o),View:new vn},a)};if(/interactive|complete|loaded/.test(document.readyState))return e();document.addEventListener("DOMContentLoaded",(function(){return e()}))}()})()})();   