(()=>{var t={534:function(t){t.exports=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=90)}({17:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r=n(18),i=function(){function t(){}return t.getFirstMatch=function(t,e){var n=e.match(t);return n&&n.length>0&&n[1]||""},t.getSecondMatch=function(t,e){var n=e.match(t);return n&&n.length>1&&n[2]||""},t.matchAndReturnConst=function(t,e,n){if(t.test(e))return n},t.getWindowsVersionName=function(t){switch(t){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}},t.getMacOSVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),10===e[0])switch(e[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}},t.getAndroidVersionName=function(t){var e=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(e.push(0),!(1===e[0]&&e[1]<5))return 1===e[0]&&e[1]<6?"Cupcake":1===e[0]&&e[1]>=6?"Donut":2===e[0]&&e[1]<2?"Eclair":2===e[0]&&2===e[1]?"Froyo":2===e[0]&&e[1]>2?"Gingerbread":3===e[0]?"Honeycomb":4===e[0]&&e[1]<1?"Ice Cream Sandwich":4===e[0]&&e[1]<4?"Jelly Bean":4===e[0]&&e[1]>=4?"KitKat":5===e[0]?"Lollipop":6===e[0]?"Marshmallow":7===e[0]?"Nougat":8===e[0]?"Oreo":9===e[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(e,n,r){void 0===r&&(r=!1);var i=t.getVersionPrecision(e),o=t.getVersionPrecision(n),s=Math.max(i,o),a=0,u=t.map([e,n],(function(e){var n=s-t.getVersionPrecision(e),r=e+new Array(n+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(a=s-Math.min(i,o)),s-=1;s>=a;){if(u[0][s]>u[1][s])return 1;if(u[0][s]===u[1][s]){if(s===a)return 0;s-=1}else if(u[0][s]1?i-1:0),s=1;s0){var s=Object.keys(n),u=a.default.find(s,(function(t){return e.isOS(t)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}var f=a.default.find(s,(function(t){return e.isPlatform(t)}));if(f){var d=this.satisfies(n[f]);if(void 0!==d)return d}}if(o>0){var l=Object.keys(i),h=a.default.find(l,(function(t){return e.isBrowser(t,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},e.isBrowser=function(t,e){void 0===e&&(e=!1);var n=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return e&&i&&(r=i.toLowerCase()),r===n},e.compareVersion=function(t){var e=[0],n=t,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(n=t.substr(1),"="===t[1]?(r=!0,n=t.substr(2)):e=[],">"===t[0]?e.push(1):e.push(-1)):"="===t[0]?n=t.substr(1):"~"===t[0]&&(r=!0,n=t.substr(1)),e.indexOf(a.default.compareVersions(i,n,r))>-1},e.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},e.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},e.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},e.is=function(t,e){return void 0===e&&(e=!1),this.isBrowser(t,e)||this.isOS(t)||this.isPlatform(t)},e.some=function(t){var e=this;return void 0===t&&(t=[]),t.some((function(t){return e.is(t)}))},t}();e.default=c,t.exports=e.default},92:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=/version\/(\d+(\.?_?\d+)+)/i,s=[{test:[/googlebot/i],describe:function(t){var e={name:"Googlebot"},n=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/opera/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opr\/|opios/i],describe:function(t){var e={name:"Opera"},n=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/SamsungBrowser/i],describe:function(t){var e={name:"Samsung Internet for Android"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Whale/i],describe:function(t){var e={name:"NAVER Whale Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MZBrowser/i],describe:function(t){var e={name:"MZ Browser"},n=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/focus/i],describe:function(t){var e={name:"Focus"},n=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/swing/i],describe:function(t){var e={name:"Swing"},n=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/coast/i],describe:function(t){var e={name:"Opera Coast"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var e={name:"Opera Touch"},n=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/yabrowser/i],describe:function(t){var e={name:"Yandex Browser"},n=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/ucbrowser/i],describe:function(t){var e={name:"UC Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/Maxthon|mxios/i],describe:function(t){var e={name:"Maxthon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/epiphany/i],describe:function(t){var e={name:"Epiphany"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/puffin/i],describe:function(t){var e={name:"Puffin"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sleipnir/i],describe:function(t){var e={name:"Sleipnir"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/k-meleon/i],describe:function(t){var e={name:"K-Meleon"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/micromessenger/i],describe:function(t){var e={name:"WeChat"},n=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qqbrowser/i],describe:function(t){var e={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},n=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/msie|trident/i],describe:function(t){var e={name:"Internet Explorer"},n=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/\sedg\//i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/edg([ea]|ios)/i],describe:function(t){var e={name:"Microsoft Edge"},n=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/vivaldi/i],describe:function(t){var e={name:"Vivaldi"},n=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/seamonkey/i],describe:function(t){var e={name:"SeaMonkey"},n=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/sailfish/i],describe:function(t){var e={name:"Sailfish"},n=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return n&&(e.version=n),e}},{test:[/silk/i],describe:function(t){var e={name:"Amazon Silk"},n=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/phantom/i],describe:function(t){var e={name:"PhantomJS"},n=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/slimerjs/i],describe:function(t){var e={name:"SlimerJS"},n=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e={name:"BlackBerry"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e={name:"WebOS Browser"},n=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/bada/i],describe:function(t){var e={name:"Bada"},n=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/tizen/i],describe:function(t){var e={name:"Tizen"},n=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/qupzilla/i],describe:function(t){var e={name:"QupZilla"},n=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var e={name:"Firefox"},n=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/electron/i],describe:function(t){var e={name:"Electron"},n=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/MiuiBrowser/i],describe:function(t){var e={name:"Miui"},n=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/chromium/i],describe:function(t){var e={name:"Chromium"},n=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/chrome|crios|crmo/i],describe:function(t){var e={name:"Chrome"},n=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/GSA/i],describe:function(t){var e={name:"Google Search"},n=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e={name:"Android Browser"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/playstation 4/i],describe:function(t){var e={name:"PlayStation 4"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/safari|applewebkit/i],describe:function(t){var e={name:"Safari"},n=i.default.getFirstMatch(o,t);return n&&(e.version=n),e}},{test:[/.*/i],describe:function(t){var e=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(e,t),version:i.default.getSecondMatch(e,t)}}}];e.default=s,t.exports=e.default},93:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/Roku\/DVP/],describe:function(t){var e=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:e}}},{test:[/windows phone/i],describe:function(t){var e=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:e}}},{test:[/windows /i],describe:function(t){var e=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),n=i.default.getWindowsVersionName(e);return{name:o.OS_MAP.Windows,version:e,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var e={name:o.OS_MAP.iOS},n=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return n&&(e.version=n),e}},{test:[/macintosh/i],describe:function(t){var e=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),n=i.default.getMacOSVersionName(e),r={name:o.OS_MAP.MacOS,version:e};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var e=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:e}}},{test:function(t){var e=!t.test(/like android/i),n=t.test(/android/i);return e&&n},describe:function(t){var e=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),n=i.default.getAndroidVersionName(e),r={name:o.OS_MAP.Android,version:e};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var e=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),n={name:o.OS_MAP.WebOS};return e&&e.length&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var e=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:e}}},{test:[/bada/i],describe:function(t){var e=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:e}}},{test:[/tizen/i],describe:function(t){var e=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:e}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var e=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:e}}}];e.default=s,t.exports=e.default},94:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var e=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",n={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return e&&(n.model=e),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var e=t.test(/ipod|iphone/i),n=t.test(/like (ipod|iphone)/i);return e&&!n},describe:function(t){var e=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:e}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var e=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&e>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];e.default=s,t.exports=e.default},95:function(t,e,n){"use strict";e.__esModule=!0,e.default=void 0;var r,i=(r=n(17))&&r.__esModule?r:{default:r},o=n(18),s=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var e=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:e}}},{test:[/trident/i],describe:function(t){var e={name:o.ENGINE_MAP.Trident},n=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){return t.test(/presto/i)},describe:function(t){var e={name:o.ENGINE_MAP.Presto},n=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:function(t){var e=t.test(/gecko/i),n=t.test(/like gecko/i);return e&&!n},describe:function(t){var e={name:o.ENGINE_MAP.Gecko},n=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var e={name:o.ENGINE_MAP.WebKit},n=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return n&&(e.version=n),e}}];e.default=s,t.exports=e.default}})}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var o=n[e]={exports:{}};return t[e].call(o.exports,o,o.exports,r),o.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{"use strict";var t={};r.r(t),r.d(t,{getPushState:()=>be,registerPush:()=>we});var n={};function i(){return Function("return this")()}function o(t){const e=i();return e[t]=e[t]||[]}function a(t,e){return Object.prototype.hasOwnProperty.call(Object(t),e)}r.r(n),r.d(n,{getPushState:()=>Se,registerPush:()=>ye});const u=/:[0-9]+$/;function c(t){return decodeURIComponent(t).replace(/\+/g," ")}function f(t){let e=t||window.location.search;return"?"!==e[0]&&"#"!==e[0]||(e=e.substr(1)),e}function d(t){const e={};return f(t).split("&").forEach((function(t){const n=t.split("=");e[c(n[0])]=c(n[1])})),e}function l(t,e){const n=(e=f(e)).split("&");for(const e of n){const n=e.split("=");if(c(n[0])===t)return c(n.slice(1).join("="))}}function h(t){setTimeout(t,0)}const p=/\[object (Boolean|Number|String|Function|Array|Date|RegExp|Arguments)\]/;function m(t){if(null==t)return String(t);const e=p.exec(Object.prototype.toString.call(Object(t)));return e?e[1].toLowerCase():"object"}function g(t){return"function"==typeof t}function v(t){return null!==t&&"object"==typeof t}function b(t){return"[object RegExp]"===toString.call(t)}function w(t){return"array"===m(t)}function y(t){return"string"===m(t)}function S(t,e,n){for(let s=0,a=e.length;s1?Array.prototype.slice.call(arguments,1):[];_(this.registry[t],(function(t,n){n&&2===n.length&&n[0].apply(n[1],e)}))}};const O=new A;function x(t,e){O.on(t,e)}function k(){try{O.emit.apply(O,arguments)}catch(t){console.error(t.message),console.error(t.stack||t)}}const E={none:0,error:1,warning:2,info:3,debug:4};let N=E.error||E.info;function F(t,e){return function(){if(t<=N){const t=arguments.length,n=Array(t+1);for(let e=0;e127&&r<2048?(e+=String.fromCharCode(r>>6|192),e+=String.fromCharCode(63&r|128)):(e+=String.fromCharCode(r>>12|224),e+=String.fromCharCode(r>>6&63|128),e+=String.fromCharCode(63&r|128))}return e}(t);for(var e=-1,n=0;n>>8^(L||(L=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}()),L)[255&(e^t.charCodeAt(n))];return(-1^e)>>>0}(t)))}function V(){var t=(new Date).getTime(),e=i();return e.performance&&"function"==typeof e.performance.now&&(t+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(e){var n=(t+16*Math.random())%16|0;return t=Math.floor(t/16),("x"==e?n:3&n|8).toString(16)}))}function W(t){if(t){const t="_nm_test";try{return localStorage.setItem(t,t),localStorage.removeItem(t),!0}catch(t){return!1}}return!1}const K={setKV:function(t,e,n){let r,i="";0===n?i="; expires=0":(n=n||3650,r=new Date,r.setTime(r.getTime()+24*n*36e5),i="; expires="+r.toGMTString()),document.cookie=t+"="+encodeURIComponent(e)+i+"; path=/; SameSite=Lax;"},getV:function(t,e){return function(t,e){const n=document.cookie.split(";");for(let e=0;e0)for(;i{n=!0,t(e)},r.reject=t=>{n=!0,i(t)},e>0&&setTimeout((()=>{n||r.reject("timeout")}),e)})),r};Ft.Promise=Promise;const Bt={};function Ct(t,e){let n=(e=e||{}).callback;if(a(Bt,t)){if(g(n)){const e=Bt[t];n(e)}return}let r=document.createElement("script");return r.type="text/javascript",r.async=!!e.async,e.id&&r.setAttribute("id",e.id),g(n)&&(void 0!==r.onreadystatechange?r.onreadystatechange=function(){"loaded"!=this.readyState&&"complete"!=this.readyState||(n(r),r.onreadystatechange=null)}:r.onload=()=>{n(r)}),r.src=t,document.getElementsByTagName("head")[0].appendChild(r),Bt[t]=r,r}const It="4.2.15",Tt="https://ntm.netmera-web.com";function Rt(t){const e=yn();if(e&&e.length){const n={event:t.event||t.code,__clear:!0,__source:"nmsdk",eventModel:M({},t)};for(const t of e)o("netmera-dl-"+t).push(n)}}function Lt(){const t=yn()||[],e=gn();for(const n of t)window["netmera_"+n]||Ct(`${Tt}/container/${n}-web-${e}.js`);const n=$("nm_wref")||d(window.location.hash).wref;n&&!window.netmera_widget_web&&Ct(`${Tt}/container/${e}-widget-${n}.js`)}const jt="utm_medium",Vt="utm_source",Wt="utm_campaign";let Kt,Dt,zt,Gt=!1,qt=new Ft;function Ut(){return nn((function(){const t=new Date,e={ids:tn(),cfgV:pn&&pn.v||0,info:{osV:Mt().getBrowserVersion(),lang:window.navigator.language||"en",ao:window.origin},tz:60*-t.getTimezoneOffset(),ts:t.getTime()};return on(e),ie("session/init",e)})).then((function(t){var e;t&&t.user&&En(t.user),t&&t.cfg&&(e=t.cfg,pn=e,X(Z,pn),function(){const t=arguments;h((()=>k.apply(O,t)))}(R))})).catch((function(t){C("Init session failed! => "+t)}))}function Ht(){return J(et)}function Jt(){const t=new Date,e=new Date;e.setMinutes(e.getMinutes()+(pn&&pn.sessionLength?pn.sessionLength:30)),t.getDate()!==e.getDate()&&e.setHours(23,59,59,999),U(rt,e.getTime())}function Qt(){Kt=V(),Gt=!0,U(nt,Kt),H(lt),H(dt),H(ft),H(et),Jt()}function Xt(){Kt=J(nt);const t=J(rt);return!Kt||!t||Number(t)new Promise((e=>{Xt()?Qt():Jt(),Gt?Ut().then((()=>{Rt({event:"nmSessionRenew"}),cn(t),Gt=!1,e()})):(cn(t),e())}))))}function Yt(){Gt=!1,h((()=>{Zt({code:"n:oa"});const t=Q(ot);t&&Mn.wasNewUid&&sn(t)})),qt.resolve(!0)}function te(){return Et(ct).then((t=>{t&&!t.handled&&(U(et,t.pid),setTimeout((()=>{t.handled=!0,Nt(ct,t)}),3e3))})).then((()=>{Gt?(function(){let t=J(ut);t=t?1*t+1:1,U(ut,t)}(),Ut().then(Yt)):qt.resolve(!0)})),qt.promise}function ee(){return zt||(zt=new Headers((Dt||(Dt={"X-netmera-api-key":vn(),"X-netmera-os":"Chrome"===St()?"CHROME":Pt()?"FIREFOX":"Microsoft Edge"===St()?"EDGE":_t()?"MACOS":"Opera"===St()?"OPERA":"Yandex Browser"===St()?"YANDEX":"WEBOTH","X-netmera-device-type":"tablet"===Mt().getPlatformType()?"TABLET":At()?"MOBILE":"DESKTOP","X-netmera-sdkV":It,Accept:"application/json","Content-Type":"application/json"},gn()&&(Dt["X-netmera-app"]=gn()),Object.freeze(Dt)),Dt))),zt}function ne(t,e){return function(n,r){n?e({status:0,message:n.toString()}):r.ok?r.json().then(t).catch((()=>t(null))):e({status:r.status,message:r.statusText})}}function re(t){return"http"===t.substr(0,4)?t:"https://wsdkapi.netmera.com/sdk/3.0/"+t}function ie(t,e){return new Promise(((n,r)=>{T(`Netmera call::POST::${t}`,e);const i=ne(n,r);fetch(re(t),{method:"POST",headers:ee(),body:JSON.stringify(e)}).then((t=>i(null,t)),(t=>i(t,null)))}))}const oe="fbox_ready",se={background:"transparent",zIndex:"9999999999",position:"fixed",marginTop:"10px",width:"450px",height:"180px",border:"none",display:"block",borderRadius:"0px",left:"50%"},ae={background:"transparent",zIndex:"999999999",position:"fixed",top:"-150px",width:"100%",height:"180px",border:"none",display:"block",borderRadius:"0px",left:"50%"};let ue=null,ce=null;function fe(t,e){for(let n in e)t.style[n]=e[n]}function de(t){setTimeout((function(){let e=-150;const n=setInterval((function(){-10===e?clearInterval(n):(e+=10,t.style.top=e+"px")}),30)}),200)}function le(t,e){setTimeout((function(){let n=window.innerHeight+e;const r=setInterval((function(){n===window.innerHeight-e-10-115?clearInterval(r):(n--,t.style.top=n+"px")}),3)}),200)}function he(){fe(ue,{display:"none"})}function pe(t,e){let n={type:t,data:e||{}};(ue.contentWindow||ue).postMessage(JSON.stringify(n),window.location.origin)}function me(t){ce=new class{constructor(t){this.origin=t||window.location.origin,this.trustedDomains=["netmera-dev.com","sdpaas.com","netmera.com",new URL(this.origin).hostname]}doInSandBox(t){const e=this.trustedDomains;return function(n){if(!n||!n.origin)return;if(!e.some((t=>new URL(n.origin).hostname.endsWith(t))))return void T("Message received from an un-trusted origin",n.origin);let r;try{r=JSON.parse(n.data)}catch(e){T("Got invalid JSON string for command: ",n.data),t(n.data)}void 0===r||void 0===r.type?T("Message received with no type parameter",r):t(r)}}sendMsgToCaller(t,e){const n=JSON.stringify({type:t,data:e||{}}),r=window.opener||window.parent;r&&r.postMessage(n,this.origin)}},window.addEventListener("message",ce.doInSandBox(t),!1),ue=function(t,e){const n=document.createElement("iframe");return n.style.display="none",n.src=t,document.body.appendChild(n),n}(function(t){let e=M({origin:window.location.origin,wSrc:"https://ntm.netmera-web.com/wsdk2/fbox.js?v=4.2.15"},t),n=e.origin;return mn()&&(n+="/"+mn()),n+"/netmera_worker.html"+function(t){const e=function(t){const e=[];if(t&&"object"==typeof t)for(var n in t)a(t,n)&&e.push(n+"="+encodeURIComponent(t[n]));return e.length?e.join("&"):""}(t);return e?"#"+e:""}(e)}({cb_msg:oe}))}function ge(t){const e=(t+"=".repeat((4-t.length%4)%4)).replace(/\-/g,"+").replace(/_/g,"/"),n=atob(e),r=new Uint8Array(n.length);for(var i=0;i "+e})}))})):t({error:"no_vapid_key"}):t({error:"no_perm"}):t({error:"no_sw"})}))}function be(){return new Promise((function(t){"serviceWorker"in navigator?navigator.serviceWorker.getRegistration().then((function(n){n?n.pushManager.getSubscription().then((function(n){n&&function(t){if(!Sn())return!0;const e=t.options;return!(!e||!e.applicationServerKey||function(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(t.length!==e.length)return!1;for(let n=0;n "+e.toString()})})).catch((function(e){const n="Vapid key changed but unsubscribe failed";B(n,e),t({error:n+" -> "+e.toString()})}))):n||"granted"!==Notification.permission?t({subscription:n}):(I("No subscription exists in granted state. Re-subscribing for pushes..."),ve().then(t))})).catch((function(e){t({error:"Error getting current subscription ->"+e.toString()})})):t({error:"no_sw"})})):t({error:"no_sw"})})).then((function(t){const e={subscription:t.subscription,promptable:!("default"!==Notification.permission||t.error||!Sn()),error:t.error||(Sn()?"":"no_vapid_key")};return e.error||"denied"!==Notification.permission||(e.error="permission denied by user"),e}))}function we(){return new Promise((function(t){Notification.requestPermission().then((function(e){const n={};let r=Promise.resolve();"granted"===e?r=r.then(ve).then((function(t){n.subscription=t.subscription,n.promptable=!t.error})):n.promptable="default"===e,r.then((function(){t(n)}))}))}))}function ye(){return new Promise((function(t){const e={apiKey:vn()};window.safari.pushNotification.requestPermission("https://wsdkapi.netmera.com/wsdk/3.0/safari",bn(),e,(function(e){var n;n=e.permission,z.setKV("_n_operm",n,0),h((function(){Se().then(t)}))}))}))}function Se(){const t={};if(bn()){const e=$(at),n=window.safari.pushNotification.permission(bn());"default"===n.permission?"denied"===e?(t.promptable=!1,t.error="package error (possibly)"):t.promptable=!0:"denied"===n.permission&&(t.error="permission denied by user"),n.deviceToken&&(t.subscription={token:n.deviceToken})}else t.promptable=!1,t.error="config error (Website Push ID is missing)";return Promise.resolve(t)}function Me(t,e,n,r){t.addEventListener?t.addEventListener(e,n,!!r):t.attachEvent&&t.attachEvent("on"+e,n)}const _e=[],Pe=[],Ae=document,Oe=window;let xe=!1,ke=!1;function Ee(){if(!xe){let t="complete"==Ae.readyState,e="interactive"==Ae.readyState;(t||e)&&(xe=!0,Pe.forEach(h),Pe.length=0,Pe.push=function(){return arguments.forEach(h),0})}}function Ne(){ke||(ke=!0,_e.forEach(h),_e.length=0,_e.push=function(){return arguments.forEach(h),0})}function Fe(t){ke?h(t):_e.push(t)}"interactive"==Ae.readyState?Ee():(Me(Ae,"DOMContentLoaded",Ee),Me(Ae,"readystatechange",Ee)),ke=!1,"complete"===Ae.readyState?Ne():Me(Oe,"load",Ne);const Be=_t()?n:t,Ce="/netmera_sw1.js";let Ie,Te={did:je("_n_did",!1),iid:je("_n_iid",!0),oldSubscription:Q(ot)||{},promptable:!1},Re=!1;function Le(){return"serviceWorker"in navigator&&"undefined"!=typeof ServiceWorkerRegistration&&"showNotification"in ServiceWorkerRegistration.prototype&&"PushManager"in window||_t()&&"pushNotification"in window.safari}function je(t,e){let n=q(t);return n||(n=V(),e&&(n=j(n)),G(t,n)),n}function Ve(){const t=navigator.geolocation;t&&t.getCurrentPosition((function(t){const e=t.coords;T("Getting geolocation",e),e&&cn({code:"n:lu",fw:e.accuracy,fv:e.latitude+","+e.longitude})}),(function(t){T("Getting geolocation error",t.code)}),{timeout:3e4})}function We(t){if(Te.subscription=t.subscription||{},Te.promptable=t.promptable,t.error&&(Te.error=t.error,B("Push system error -> "+t.error)),Te.subscription){const t=JSON.stringify(Te.oldSubscription),e=JSON.stringify(Te.subscription);t!==e&&"{}"!==e&&(I("Sending subscription token",Te.subscription),sn(Te.subscription).then((function(){U(ot,e)})))}}function Ke(t){T("processing message",t),t.type===oe?(pe("init_fd",function(){const t={customHtml:pn.customHtml,appKey:pn.appKey,fbLogoWidth:pn.fbLogoWidth,fbLogoHeight:pn.fbLogoHeight};return pn.customHtml||M(t,{btnAllow:{bgColor:pn.allowBgColor||"",fontColor:pn.allowBgFontColor||"",fontStyle:pn.fbButtonFontStyle,fontSize:pn.fbButtonTextSize,borderRadius:pn.fbButtonRadius},btnLater:{bgColor:pn.laterBgColor||"",fontColor:pn.laterBgFontColor||"",fontStyle:pn.fbButtonFontStyle,fontSize:pn.fbButtonTextSize,borderRadius:pn.fbButtonRadius},ntfDlg:{borderRadius:pn.fbRadius,backgroundColor:pn.fbBackgroundColor},ntfTitle:{fontStyle:pn.fbHeaderFontStyle,fontSize:pn.fbHeaderTextSize,color:pn.fbHeaderFontColor},ntfInfo:{fontStyle:pn.fbInfoFontStyle,fontSize:pn.fbInfoTextSize,color:pn.fbInfoFontColor},textsMap:pn.texts||{}}),t}()),Ie()):"fd_accept"===t.type?(cn({code:"n:fba"}),he(),Be.registerPush().then(We)):"fd_ask_later"===t.type&&(cn({code:"n:fbl"}),he(),U(st,(new Date).getTime()),Te.dismiss=!0)}function De(){if(!Te.promptable)return;const t=J(st),e=J(ut)||1,n=pn.promptAfter||1;Te.dismiss=!1,Te.paStatus=e%n==0,Te.paStatus?!t||(new Date).getTime()-t>864e5*(pn.dmPeriod||1)?ze():(Te.dismiss=!0,I("User is in dismiss period")):I("Prompt after not matched. visitCount=%s, promptAfter=%s",e,n)}function ze(){Te.promptable&&((At()?pn.fancyBoxEnabledMobile:void 0===pn.fancyBoxEnabled||pn.fancyBoxEnabled)||_t()||Pt()?Fe((()=>{(Re?Promise.resolve(!0):new Promise((function(t){Ie=function(){Re=!0,t(!0)},setTimeout((function(){Re||t(!1,"fbox-timed-out")}),1e4),me(Ke)}))).then(((t,e)=>{t?(pe("fd_show"),function(){let t,e=pn.fbDirection||0,n=At()?ae:se;switch(At()?(e=0,ae.width="100%"):(n.width=pn.fbWidth||n.width,n.borderRadius=pn.fbRadius||n.borderRadius),t=function(){let t=pn.fbHeight;if(!t){let e=ht(document.domain);1431120686!==e&&1431120634!==e&&1431120303!==e&&1431120153!==e&&726424586!==e||(t="220px")}return t}()||n.height,n.height=(parseInt(t,10)+33).toString()+"px",ue.contentWindow.document.head.insertAdjacentHTML("beforeend",""),e){case 1:n.top="auto!important",n.bottom=0,n.transform="translateX(-50%)",fe(ue,n),le(ue,t);break;case 2:n.top=window.outerHeight+180,n.left="0%",n.marginLeft="0px",fe(ue,n),le(ue,t);break;case 3:n.top="auto",n.right=0,n.left="auto",n.marginLeft="0px",fe(ue,n),le(ue,t);break;case 4:n.left="auto",n.right=0,n.marginLeft="0px",fe(ue,n),de(ue);break;case 5:n.left="0%",n.marginLeft="0px",fe(ue,n),de(ue);break;default:1293313689===ht(document.domain)?(n.top="10px",n.transform="translateX(-50%)",fe(ue,n)):(n.transform="translateX(-50%)",fe(ue,n),de(ue))}}(),cn({code:"n:fbs"})):B("Fancy box init failed. reason="+e)})).catch((function(t){B("Fancy box init failed",t)}))})):Be.registerPush().then(We))}function Ge(t){return I("Registering service worker...",t),new Promise((function(e){const n=mn()+(t?"/netmera_sw2.js":Ce)+"?t="+Date.now();navigator.serviceWorker.register(n,{scope:"/"}).then((function(){navigator.serviceWorker.ready.then((function(t){I(`Service worker is ready. scope=${t.scope}`),e(t)})).catch((function(t){B("Error registering service worker",t)}))})).catch((function(t){B("Error registering service worker",t),e(null)}))}))}function qe(){const t={apiKey:vn(),appKey:gn(),uid:xn(),xid:kn(),iid:Te.iid,did:Te.did};return new Promise((function(e){Nt("_n_wcfg",JSON.stringify(t)).then((()=>{navigator.serviceWorker.getRegistration().then((function(t){t?(t.active?Et("_n_swsdkv").then((function(t){return It!==t?(I("A new sdk version detected. oldVer="+t+", newVer="+It),!0):(T("sdk and service worker versions are matched. version=4.2.15"),!1)})).then((function(n){n?(I("Re-registering the service worker for new version. newVer=%s",It),Ge((""+t.active.scriptURL).indexOf(Ce)>-1).then(e)):e(t)})):null==t.installing&&Ge(!1).then(e),T("Service worker is OK."),e(t)):Ge(!1).then(e)})).catch((function(t){B("Error getting service worker registration",t),e(null)}))}))}))}function Ue(){pn.geolocation&&h(Ve);let t=Promise.resolve();if(!window.isSecureContext)return C("Not secure context. Push system will not initialize."),t;"serviceWorker"in navigator&&(t=t.then(qe));const e=function(){if(void 0===pn.pushEnabled){const t=ht(document.domain);return-673753442!==t&&-1508315408!==t&&-300565097!==t&&532838990!==t&&-1197830281!==t&&-687524245!==t}return pn.pushEnabled}(),n=Le();return e&&n?t=t.then(Be.getPushState).then(We).then((function(){wn()&&h(De)})).catch((function(t){B("Device init failed!",t)})):I("Push system will not initialize. enabled="+e+", supported="+n),t}const He={},Je=!(!window||!window.localStorage),Qe="event_send",Xe=new Set([408,500,502,503,504,522,524]);let $e,Ze=0,Ye=!1;function tn(){const t={uid:xn(),iid:Te.iid,did:Te.did,sid:Kt},e=Ht(),n=kn();return isNaN(Number(e))||(t.pid=e),n&&(t.xid=n),t}function en(t,e){var n=He[t]||Promise.resolve();return n=n.then(e).catch((function(e){throw He[t]=null,e})),He[t]=n}function nn(t){return en("grp1",t)}function rn(t){return en("grp3",t)}function on(t){t.ntmp=1}function sn(t){return nn((function(){return ie("push/register",{ids:tn(),subscription:t})}))}function an(t){return rn((function(){return ie("event/fire",t)}))}function un(){return $e||($e="_n_ee_"+hn+"_"),$e}function cn(t){h((()=>Rt(t))),t.ts=Date.now();const e={ids:tn(),events:[t]};Je?(localStorage.setItem(un()+t.ts,JSON.stringify(e)),h((()=>vt(Qe,dn)))):an(e)}function fn(t,e,n=12,r=1e3){an(t).then(e).catch((function(i){const o=i.status;n>0&&Xe.has(o)?setTimeout((()=>{fn(t,e,n-1,2*r)}),r):e()}))}function dn(){if(!Ye)return Ye=!0,new Promise((function(t){const e=function(){let t=[];for(let e=0;et.data.events[0].ts-e.data.events[0].ts)),t}();let n=Promise.resolve();for(let t of e)n=n.then((()=>new Promise((e=>{fn(t.data,e)})))).then((()=>localStorage.removeItem(t.key)));n.then((function(){Ze&&(Ze=0,h((()=>vt(Qe,dn)))),Ye=!1,t()}))}));Ze++}Je&&h((()=>vt(Qe,dn)));let ln,hn,pn=Q(Z);function mn(){return pn.filePath||""}function gn(){return pn&&pn.appKey}function vn(){return ln}function bn(){return pn.swspid}function wn(){return void 0===pn.autoPrompt||pn.autoPrompt}function yn(){return pn.ctypes||[]}function Sn(){return pn&&pn.publicVapidKey}let Mn=function(){let t=Q(it);if(t)t.wasNewUid=!1;else{const e=q(Y);t={uid:On(Y,!0),xid:q(tt),prfl:{},wasNewUid:!e},X(it,t)}return t}(),_n=function(){let t=null,e={},n={};function r(t){return function(n){return e[t]=n,this}}function i(t){return function(e){return n[t]=e,this}}function o(t,e){return"DATE"===e||"TIME_STAMP"===e?y(t)?new Date(t).getTime():1*t:"INT"===e||"LONG"===e||"DOUBLE"===e?1*t:"BOOLEAN"===e?y(t)?"true"===t:!!t:""+t}return{save:function(){return Pn=Pn.then((function(){let r=null,i=M({prfl:e},n);var o;return r=t&&t!==Mn.xid?function(t,e){return nn((function(){const n=M({ids:tn()},e);return n.ids.xid=t,on(n),ie("user/identify",n)}))}(t,i).then((function(e){G(tt,t),Mn.xid=t,t=null,e.uid&&(G(Y,e.uid),Mn.uid=e.uid),e.user&&En(e.user)})):(o=i,nn((function(){const t=M({ids:tn()},o);return on(t),ie("user/update",t)}))).then((function(){En(M({},Mn,{prfl:e},n))})),r.then((function(){e={},n={}})).then(An)})).catch((function(t){throw Pn=Promise.resolve(),B("Error saving user",t),t}))},setCustomId:function(e){return t=e,this},setEmail:i("email"),setGsmNo:i("msisdn"),setName:r("pa"),setSurName:r("pb"),addProfileAttr:function(t,n){const r=function(t){let e=pn.prfAttrs[t];if(!e)for(const n in pn.prfAttrs)if(a(pn.prfAttrs,n)&&pn.prfAttrs[n].code==t){e=pn.prfAttrs[n];break}return e}(t);return r?r.array?(e[r.code]=e[r.code]||[],e[r.code].push(o(n,r.type))):e[r.code]=o(n,r.type):B("No such profile attribute! name="+t),this}}}(),Pn=Promise.resolve();function An(){k("user_updated")}function On(t,e){let n=q(t);return n||(n=V(),e&&(n=j(n)),G(t,n)),n}function xn(){return Mn.uid}function kn(){return Mn.xid}function En(t){t&&(Mn=t,X(it,t),Mn.wasNewUid=!1)}const Nn="Auto prompt is on for your site. Switch it off on the netmera panel and try again.",Fn=i();let Bn;const Cn={push:function(t){if(Array.isArray(t)&&t.length>1)if("function"==typeof t[1])x(t[0],t[1]);else if("sendEvent"===t[0]&&"string"==typeof t[1]){if(t.length>2&&"object"!=typeof t[2])return void B("Bad event command",t);let e=t.length>2?t[2]:{};e.code=t[1],h((()=>Zt(e)))}else B("Bad command",t);else"function"==typeof t?h((()=>t.call(Cn,Cn))):B("Bad command",t)},getUser:function(){return _n},isPromptable:function(){return Le()&&Te.promptable},getDeviceInfo:function(){return Te},prompt:function(){wn()?I(Nn):De()},pushRegister:function(){wn()?I(Nn):ze()},isPushSupported:function(){return Le()},sendEvent:function(t){h((()=>Zt(t)))},OrderApproveEvent:function(){this.code="n:oap",this.setApproveTime=function(t){this.fu=t},this.setPaymentMethod=function(t){this.em=t},this.setOrderId=function(t){this.ea=t},this.setGrandTotal=function(t){this.es=t},this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t}},ProductCommentEvent:function(){this.code="n:cp",this.setBrandName=function(t){this.eh=t},this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setVariant=function(t){this.ei=t},this.setBrandId=function(t){this.gd=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setPrice=function(t){this.eq=t}},OrderCancelEvent:function(){this.code="n:co",this.setPaymentMethod=function(t){this.em=t},this.setGrandTotal=function(t){this.es=t},this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t}},ViewCategoryEvent:function(){this.code="n:cv",this.setCategoryName=function(t){this.ef=t},this.setCategoryId=function(t){this.ga=t}},PurchaseEvent:function(){this.code="n:ph",this.setDiscount=function(t){this.el=t},this.setCoupon=function(t){this.ek=t},this.setShippingCost=function(t){this.ep=t},this.setPaymentMethod=function(t){this.em=t},this.setGrandTotal=function(t){this.es=t},this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t},this.setPurchaseLineItemEvent=function(t){this.items=t}},RegisterEvent:function(){this.code="n:rg",this.setUserId=function(t){this.uid=t}},LoginEvent:function(){this.code="n:cl",this.setUserId=function(t){this.uid=t}},ProductRateEvent:function(){this.code="n:rp",this.setBrandName=function(t){this.eh=t},this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setVariant=function(t){this.ei=t},this.setBrandId=function(t){this.gd=t},this.setRating=function(t){this.eo=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setPrice=function(t){this.eq=t}},RemoveFromCartEvent:function(){this.code="n:rcp",this.setBrandName=function(t){this.eh=t},this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setVariant=function(t){this.ei=t},this.setBrandId=function(t){this.gd=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setItemCount=function(t){this.ec=t},this.setPrice=function(t){this.eq=t}},ViewCartEvent:function(){this.code="n:vt",this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t}},CommentEvent:function(){this.code="n:cc",this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setProvider=function(t){this.ee=t},this.setItemId=function(t){this.ea=t},this.setCategoryId=function(t){this.ga=t},this.setContentType=function(t){this.ed=t}},ProductViewEvent:function(){this.code="n:vp",this.setBrandName=function(t){this.eh=t},this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setVariant=function(t){this.ei=t},this.setBrandId=function(t){this.gd=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setPrice=function(t){this.eq=t}},InAppPurchaseEvent:function(){this.code="n:ip",this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setItemCount=function(t){this.ec=t},this.setPrice=function(t){this.eq=t}},ViewContentEvent:function(){this.code="n:vc",this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setProvider=function(t){this.ee=t},this.setItemId=function(t){this.ea=t},this.setCategoryId=function(t){this.ga=t},this.setContentType=function(t){this.ed=t}},ShareEvent:function(){this.code="n:sh",this.setChannel=function(t){this.ej=t},this.setItemId=function(t){this.ea=t}},SearchEvent:function(){this.code="n:sr",this.setQuery=function(t){this.en=t},this.setItemCount=function(t){this.ec=t}},OrderDeliverEvent:function(){this.code="n:od",this.setDeliverTime=function(t){this.fu=t},this.setPaymentMethod=function(t){this.em=t},this.setOrderId=function(t){this.ea=t},this.setGrandTotal=function(t){this.es=t},this.setCarrier=function(t){this.eb=t},this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t}},AddToCartEvent:function(){this.code="n:acp",this.setBrandName=function(t){this.eh=t},this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setVariant=function(t){this.ei=t},this.setBrandId=function(t){this.gd=t},this.setItemId=function(t){this.ea=t},this.setItemName=function(t){this.eb=t},this.setCategoryId=function(t){this.ga=t},this.setItemCount=function(t){this.ec=t},this.setPrice=function(t){this.eq=t}},BannerClickEvent:function(){this.code="n:bc",this.setKeywords=function(t){this.eg=t},this.setItemId=function(t){this.ea=t}},RateEvent:function(){this.code="n:rc",this.setKeywords=function(t){this.eg=t},this.setCategoryName=function(t){this.ef=t},this.setProvider=function(t){this.ee=t},this.setRating=function(t){this.eo=t},this.setItemId=function(t){this.ea=t},this.setCategoryId=function(t){this.ga=t},this.setContentType=function(t){this.ed=t}},OrderShipEvent:function(){this.code="n:os",this.setShipTime=function(t){this.fu=t},this.setPaymentMethod=function(t){this.em=t},this.setOrderId=function(t){this.ea=t},this.setGrandTotal=function(t){this.es=t},this.setCarrier=function(t){this.eb=t},this.setSubTotal=function(t){this.er=t},this.setItemCount=function(t){this.ec=t}}};function In(t){let e=Fn.netmera,n=[];for(let r=0;rt.length>1&&"function"==typeof t[1])),h((()=>k("onReady"))),In((()=>!0)),Fn.netmera.push=Cn.push,Fn.netmera=Cn,I("Netmera is ready..."),T("Device Info",Cn.getDeviceInfo())}function Rn(){var t;-1!==Fn.location.href.indexOf("?nm_invite")&&(t=l("nm_invite"),rn((function(){return ie("push/test",{ids:tn(),prms:t})}))).then((()=>Fn.alert("You are added as a tester.")))}function Ln(){$("ntm_exp_edit")&&Fe((()=>new Promise((t=>{fetch("https://panel.netmera.com/exp-editor/index.html",{method:"GET"}).then((e=>{t(e.text())}),(e=>t(String(e))))})).then((t=>function(t){document.body.style="top: 96px !important; overflow: visible !important;";const e=document.createElement("div");e.id="ntm-exp-editor",e.style="position: fixed !important; inset: 0px !important; border: none !important; width: auto !important; height: auto; margin: 0px !important; padding: 0px !important; background-color: transparent !important; display: block !important; z-index: 1000000000;";const n=document.createElement("iframe");n.frameBorder="0",n.style="left:0 !important; width:100% !important; top:0 !important; height:100% !important; background-color:transparent !important; margin:0 !important; padding:0 !important; display:block !important; visibility:visible !important; max-width:none !important; max-height:none !important",e.appendChild(n),document.body.appendChild(e);const r=n.contentDocument||n.contentWindow.document;r.open(),r.write(t),r.close()}(t)))))}!function(){const t=l("nm_log_level");t&&function(t="warn"){N=E[t]||E.info}(t);const e=Fn.netmera=Fn.netmera||[];if(Array.isArray(e)){if(e.apiKey)Bn=Cn.apiKey=e.apiKey;else{const t=document.currentScript&&document.currentScript.src;if(!t)return void B("Unsupported browser!. ");const n=function(t){let e=new URL(t),n=e.pathname;n.startsWith("/")||(n="/"+n);let r=e.hostname.replace(u,"");return{href:e.href,protocol:e.protocol,host:e.host,hostname:r,pathname:n,search:e.search,hash:e.hash,port:e.port}}(t).pathname.split("/");Bn=Cn.apiKey=e.apiKey=n[n.length-1]}var n;x(R,Lt),(n=Bn,ln=n,hn=ht(n),pn?Promise.resolve(pn):nn((function(){return t="config/get",new Promise(((n,r)=>{T(`Netmera call::GET::${t}`,e);const i=ne(n,r),o={method:"GET",headers:ee()};fetch(re(t),o).then((t=>i(null,t)),(t=>i(t,null)))}));var t,e})).then((function(t){return pn=t.cfg||t,X(Z,pn),pn})).catch((function(t){throw"Can not fetch netmera config.[ reason="+t.message+"]"}))).then($t).then(Ln).then(Lt).then(te).then(Rn).then(Ue).then(Tn).then((()=>{"debug"===t&&alert(JSON.stringify(Cn.getDeviceInfo()))})).catch((t=>{B("Netmera could not be initialized!!",t)}))}else B('Bad Netmera init usage!. Correct usage is "var netmera = netmera || [];"')}()})()})();