aesirx-analytics 2.4.3 → 2.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/analytics.js CHANGED
@@ -1,4 +1,4 @@
1
- (()=>{var ut=Object.create;var Ae=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ft=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var W=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var pt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of lt(e))!dt.call(r,i)&&i!==t&&Ae(r,i,{get:()=>e[i],enumerable:!(n=ct(e,i))||n.enumerable});return r};var re=(r,e,t)=>(t=r!=null?ut(ft(r)):{},pt(e||!r||!r.__esModule?Ae(t,"default",{value:r,enumerable:!0}):t,r));var xe=W((V,ie)=>{(function(r,e){typeof V=="object"&&typeof ie=="object"?ie.exports=e():typeof define=="function"&&define.amd?define([],e):typeof V=="object"?V.bowser=e():r.bowser=e()})(V,function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,s){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},t.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var u in n)t.d(s,u,function(o){return n[o]}.bind(null,u));return s},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=90)}({17:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(18),i=function(){function s(){}return s.getFirstMatch=function(u,o){var a=o.match(u);return a&&a.length>0&&a[1]||""},s.getSecondMatch=function(u,o){var a=o.match(u);return a&&a.length>1&&a[2]||""},s.matchAndReturnConst=function(u,o,a){if(u.test(o))return a},s.getWindowsVersionName=function(u){switch(u){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}},s.getMacOSVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),o[0]===10)switch(o[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}},s.getAndroidVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),!(o[0]===1&&o[1]<5))return o[0]===1&&o[1]<6?"Cupcake":o[0]===1&&o[1]>=6?"Donut":o[0]===2&&o[1]<2?"Eclair":o[0]===2&&o[1]===2?"Froyo":o[0]===2&&o[1]>2?"Gingerbread":o[0]===3?"Honeycomb":o[0]===4&&o[1]<1?"Ice Cream Sandwich":o[0]===4&&o[1]<4?"Jelly Bean":o[0]===4&&o[1]>=4?"KitKat":o[0]===5?"Lollipop":o[0]===6?"Marshmallow":o[0]===7?"Nougat":o[0]===8?"Oreo":o[0]===9?"Pie":void 0},s.getVersionPrecision=function(u){return u.split(".").length},s.compareVersions=function(u,o,a){a===void 0&&(a=!1);var c=s.getVersionPrecision(u),d=s.getVersionPrecision(o),f=Math.max(c,d),h=0,p=s.map([u,o],function(g){var m=f-s.getVersionPrecision(g),y=g+new Array(m+1).join(".0");return s.map(y.split("."),function(_){return new Array(20-_.length).join("0")+_}).reverse()});for(a&&(h=f-Math.min(c,d)),f-=1;f>=h;){if(p[0][f]>p[1][f])return 1;if(p[0][f]===p[1][f]){if(f===h)return 0;f-=1}else if(p[0][f]<p[1][f])return-1}},s.map=function(u,o){var a,c=[];if(Array.prototype.map)return Array.prototype.map.call(u,o);for(a=0;a<u.length;a+=1)c.push(o(u[a]));return c},s.find=function(u,o){var a,c;if(Array.prototype.find)return Array.prototype.find.call(u,o);for(a=0,c=u.length;a<c;a+=1){var d=u[a];if(o(d,a))return d}},s.assign=function(u){for(var o,a,c=u,d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];if(Object.assign)return Object.assign.apply(Object,[u].concat(f));var p=function(){var g=f[o];typeof g=="object"&&g!==null&&Object.keys(g).forEach(function(m){c[m]=g[m]})};for(o=0,a=f.length;o<a;o+=1)p();return u},s.getBrowserAlias=function(u){return n.BROWSER_ALIASES_MAP[u]},s.getBrowserTypeByAlias=function(u){return n.BROWSER_MAP[u]||""},s}();e.default=i,r.exports=e.default},18:function(r,e,t){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.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"},e.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"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.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"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(91))&&n.__esModule?n:{default:n},s=t(18);function u(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}var o=function(){function a(){}var c,d,f;return a.getParser=function(h,p){if(p===void 0&&(p=!1),typeof h!="string")throw new Error("UserAgent should be a string");return new i.default(h,p)},a.parse=function(h){return new i.default(h).getResult()},c=a,f=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(d=null)&&u(c.prototype,d),f&&u(c,f),a}();e.default=o,r.exports=e.default},91:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=a(t(92)),i=a(t(93)),s=a(t(94)),u=a(t(95)),o=a(t(17));function a(d){return d&&d.__esModule?d:{default:d}}var c=function(){function d(h,p){if(p===void 0&&(p=!1),h==null||h==="")throw new Error("UserAgent parameter can't be empty");this._ua=h,this.parsedResult={},p!==!0&&this.parse()}var f=d.prototype;return f.getUA=function(){return this._ua},f.test=function(h){return h.test(this._ua)},f.parseBrowser=function(){var h=this;this.parsedResult.browser={};var p=o.default.find(n.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.browser=p.describe(this.getUA())),this.parsedResult.browser},f.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},f.getBrowserName=function(h){return h?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},f.getBrowserVersion=function(){return this.getBrowser().version},f.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},f.parseOS=function(){var h=this;this.parsedResult.os={};var p=o.default.find(i.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.os=p.describe(this.getUA())),this.parsedResult.os},f.getOSName=function(h){var p=this.getOS().name;return h?String(p).toLowerCase()||"":p||""},f.getOSVersion=function(){return this.getOS().version},f.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},f.getPlatformType=function(h){h===void 0&&(h=!1);var p=this.getPlatform().type;return h?String(p).toLowerCase()||"":p||""},f.parsePlatform=function(){var h=this;this.parsedResult.platform={};var p=o.default.find(s.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.platform=p.describe(this.getUA())),this.parsedResult.platform},f.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},f.getEngineName=function(h){return h?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},f.parseEngine=function(){var h=this;this.parsedResult.engine={};var p=o.default.find(u.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.engine=p.describe(this.getUA())),this.parsedResult.engine},f.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},f.getResult=function(){return o.default.assign({},this.parsedResult)},f.satisfies=function(h){var p=this,g={},m=0,y={},_=0;if(Object.keys(h).forEach(function(v){var q=h[v];typeof q=="string"?(y[v]=q,_+=1):typeof q=="object"&&(g[v]=q,m+=1)}),m>0){var B=Object.keys(g),L=o.default.find(B,function(v){return p.isOS(v)});if(L){var k=this.satisfies(g[L]);if(k!==void 0)return k}var O=o.default.find(B,function(v){return p.isPlatform(v)});if(O){var T=this.satisfies(g[O]);if(T!==void 0)return T}}if(_>0){var R=Object.keys(y),S=o.default.find(R,function(v){return p.isBrowser(v,!0)});if(S!==void 0)return this.compareVersion(y[S])}},f.isBrowser=function(h,p){p===void 0&&(p=!1);var g=this.getBrowserName().toLowerCase(),m=h.toLowerCase(),y=o.default.getBrowserTypeByAlias(m);return p&&y&&(m=y.toLowerCase()),m===g},f.compareVersion=function(h){var p=[0],g=h,m=!1,y=this.getBrowserVersion();if(typeof y=="string")return h[0]===">"||h[0]==="<"?(g=h.substr(1),h[1]==="="?(m=!0,g=h.substr(2)):p=[],h[0]===">"?p.push(1):p.push(-1)):h[0]==="="?g=h.substr(1):h[0]==="~"&&(m=!0,g=h.substr(1)),p.indexOf(o.default.compareVersions(y,g,m))>-1},f.isOS=function(h){return this.getOSName(!0)===String(h).toLowerCase()},f.isPlatform=function(h){return this.getPlatformType(!0)===String(h).toLowerCase()},f.isEngine=function(h){return this.getEngineName(!0)===String(h).toLowerCase()},f.is=function(h,p){return p===void 0&&(p=!1),this.isBrowser(h,p)||this.isOS(h)||this.isPlatform(h)},f.some=function(h){var p=this;return h===void 0&&(h=[]),h.some(function(g){return p.is(g)})},d}();e.default=c,r.exports=e.default},92:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,u=[{test:[/googlebot/i],describe:function(o){var a={name:"Googlebot"},c=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/opera/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opr\/|opios/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/SamsungBrowser/i],describe:function(o){var a={name:"Samsung Internet for Android"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Whale/i],describe:function(o){var a={name:"NAVER Whale Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MZBrowser/i],describe:function(o){var a={name:"MZ Browser"},c=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/focus/i],describe:function(o){var a={name:"Focus"},c=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/swing/i],describe:function(o){var a={name:"Swing"},c=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/coast/i],describe:function(o){var a={name:"Opera Coast"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(o){var a={name:"Opera Touch"},c=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/yabrowser/i],describe:function(o){var a={name:"Yandex Browser"},c=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/ucbrowser/i],describe:function(o){var a={name:"UC Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Maxthon|mxios/i],describe:function(o){var a={name:"Maxthon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/epiphany/i],describe:function(o){var a={name:"Epiphany"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/puffin/i],describe:function(o){var a={name:"Puffin"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sleipnir/i],describe:function(o){var a={name:"Sleipnir"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/k-meleon/i],describe:function(o){var a={name:"K-Meleon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/micromessenger/i],describe:function(o){var a={name:"WeChat"},c=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qqbrowser/i],describe:function(o){var a={name:/qqbrowserlite/i.test(o)?"QQ Browser Lite":"QQ Browser"},c=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/msie|trident/i],describe:function(o){var a={name:"Internet Explorer"},c=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/\sedg\//i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/edg([ea]|ios)/i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/vivaldi/i],describe:function(o){var a={name:"Vivaldi"},c=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/seamonkey/i],describe:function(o){var a={name:"SeaMonkey"},c=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sailfish/i],describe:function(o){var a={name:"Sailfish"},c=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,o);return c&&(a.version=c),a}},{test:[/silk/i],describe:function(o){var a={name:"Amazon Silk"},c=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/phantom/i],describe:function(o){var a={name:"PhantomJS"},c=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/slimerjs/i],describe:function(o){var a={name:"SlimerJS"},c=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a={name:"BlackBerry"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a={name:"WebOS Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/bada/i],describe:function(o){var a={name:"Bada"},c=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/tizen/i],describe:function(o){var a={name:"Tizen"},c=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qupzilla/i],describe:function(o){var a={name:"QupZilla"},c=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/firefox|iceweasel|fxios/i],describe:function(o){var a={name:"Firefox"},c=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/electron/i],describe:function(o){var a={name:"Electron"},c=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MiuiBrowser/i],describe:function(o){var a={name:"Miui"},c=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/chromium/i],describe:function(o){var a={name:"Chromium"},c=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/chrome|crios|crmo/i],describe:function(o){var a={name:"Chrome"},c=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/GSA/i],describe:function(o){var a={name:"Google Search"},c=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a={name:"Android Browser"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/playstation 4/i],describe:function(o){var a={name:"PlayStation 4"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/safari|applewebkit/i],describe:function(o){var a={name:"Safari"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/.*/i],describe:function(o){var a=o.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(a,o),version:i.default.getSecondMatch(a,o)}}}];e.default=u,r.exports=e.default},93:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/Roku\/DVP/],describe:function(o){var a=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,o);return{name:s.OS_MAP.Roku,version:a}}},{test:[/windows phone/i],describe:function(o){var a=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.WindowsPhone,version:a}}},{test:[/windows /i],describe:function(o){var a=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,o),c=i.default.getWindowsVersionName(a);return{name:s.OS_MAP.Windows,version:a,versionName:c}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(o){var a={name:s.OS_MAP.iOS},c=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,o);return c&&(a.version=c),a}},{test:[/macintosh/i],describe:function(o){var a=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,o).replace(/[_\s]/g,"."),c=i.default.getMacOSVersionName(a),d={name:s.OS_MAP.MacOS,version:a};return c&&(d.versionName=c),d}},{test:[/(ipod|iphone|ipad)/i],describe:function(o){var a=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,o).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:a}}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,o),c=i.default.getAndroidVersionName(a),d={name:s.OS_MAP.Android,version:a};return c&&(d.versionName=c),d}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,o),c={name:s.OS_MAP.WebOS};return a&&a.length&&(c.version=a),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,o)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,o)||i.default.getFirstMatch(/\bbb(\d+)/i,o);return{name:s.OS_MAP.BlackBerry,version:a}}},{test:[/bada/i],describe:function(o){var a=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Bada,version:a}}},{test:[/tizen/i],describe:function(o){var a=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Tizen,version:a}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(o){var a=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.PlayStation4,version:a}}}];e.default=u,r.exports=e.default},94:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(o){var a=i.default.getFirstMatch(/(can-l01)/i,o)&&"Nova",c={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return a&&(c.model=a),c}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){var a=o.test(/ipod|iphone/i),c=o.test(/like (ipod|iphone)/i);return a&&!c},describe:function(o){var a=i.default.getFirstMatch(/(ipod|iphone)/i,o);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:a}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(o){return o.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(o){var a=Number(String(o.getOSVersion()).split(".")[0]);return o.getOSName(!0)==="android"&&a>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){return o.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(o){return o.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(o){return o.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=u,r.exports=e.default},95:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:function(o){return o.getBrowserName(!0)==="microsoft edge"},describe:function(o){if(/\sedg\//i.test(o))return{name:s.ENGINE_MAP.Blink};var a=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,o);return{name:s.ENGINE_MAP.EdgeHTML,version:a}}},{test:[/trident/i],describe:function(o){var a={name:s.ENGINE_MAP.Trident},c=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){return o.test(/presto/i)},describe:function(o){var a={name:s.ENGINE_MAP.Presto},c=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=o.test(/gecko/i),c=o.test(/like gecko/i);return a&&!c},describe:function(o){var a={name:s.ENGINE_MAP.Gecko},c=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(o){var a={name:s.ENGINE_MAP.WebKit},c=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}}];e.default=u,r.exports=e.default}})})});var ve=W((lr,oe)=>{function Et(r,e){var t,n,i,s,u,o,a,c,d,f;for(t=r.length&3,n=r.length-t,i=e,u=3432918353,a=461845907,f=0;f<n;)d=r.charCodeAt(f)&255|(r.charCodeAt(++f)&255)<<8|(r.charCodeAt(++f)&255)<<16|(r.charCodeAt(++f)&255)<<24,++f,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d,i=i<<13|i>>>19,s=(i&65535)*5+(((i>>>16)*5&65535)<<16)&4294967295,i=(s&65535)+27492+(((s>>>16)+58964&65535)<<16);switch(d=0,t){case 3:d^=(r.charCodeAt(f+2)&255)<<16;case 2:d^=(r.charCodeAt(f+1)&255)<<8;case 1:d^=r.charCodeAt(f)&255,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d}return i^=r.length,i^=i>>>16,i=(i&65535)*2246822507+(((i>>>16)*2246822507&65535)<<16)&4294967295,i^=i>>>13,i=(i&65535)*3266489909+(((i>>>16)*3266489909&65535)<<16)&4294967295,i^=i>>>16,i>>>0}typeof oe<"u"&&(oe.exports=Et)});var De=W(X=>{"use strict";X.byteLength=Ft;X.toByteArray=It;X.fromByteArray=Ot;var M=[],x=[],Mt=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,ke=ce.length;U<ke;++U)M[U]=ce[U],x[ce.charCodeAt(U)]=U;var U,ke;x[45]=62;x[95]=63;function Ue(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Ft(r){var e=Ue(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Tt(r,e,t){return(e+t)*3/4-t}function It(r){var e,t=Ue(r),n=t[0],i=t[1],s=new Mt(Tt(r,n,i)),u=0,o=i>0?n-4:n,a;for(a=0;a<o;a+=4)e=x[r.charCodeAt(a)]<<18|x[r.charCodeAt(a+1)]<<12|x[r.charCodeAt(a+2)]<<6|x[r.charCodeAt(a+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=e&255;return i===2&&(e=x[r.charCodeAt(a)]<<2|x[r.charCodeAt(a+1)]>>4,s[u++]=e&255),i===1&&(e=x[r.charCodeAt(a)]<<10|x[r.charCodeAt(a+1)]<<4|x[r.charCodeAt(a+2)]>>2,s[u++]=e>>8&255,s[u++]=e&255),s}function Pt(r){return M[r>>18&63]+M[r>>12&63]+M[r>>6&63]+M[r&63]}function Lt(r,e,t){for(var n,i=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),i.push(Pt(n));return i.join("")}function Ot(r){for(var e,t=r.length,n=t%3,i=[],s=16383,u=0,o=t-n;u<o;u+=s)i.push(Lt(r,u,u+s>o?o:u+s));return n===1?(e=r[t-1],i.push(M[e>>2]+M[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(M[e>>10]+M[e>>4&63]+M[e<<2&63]+"=")),i.join("")}});var qe=W(le=>{le.read=function(r,e,t,n,i){var s,u,o=i*8-n-1,a=(1<<o)-1,c=a>>1,d=-7,f=t?i-1:0,h=t?-1:1,p=r[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=o;d>0;s=s*256+r[e+f],f+=h,d-=8);for(u=s&(1<<-d)-1,s>>=-d,d+=n;d>0;u=u*256+r[e+f],f+=h,d-=8);if(s===0)s=1-c;else{if(s===a)return u?NaN:(p?-1:1)*(1/0);u=u+Math.pow(2,n),s=s-c}return(p?-1:1)*u*Math.pow(2,s-n)};le.write=function(r,e,t,n,i,s){var u,o,a,c=s*8-i-1,d=(1<<c)-1,f=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,g=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,u=d):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),u+f>=1?e+=h/a:e+=h*Math.pow(2,1-f),e*a>=2&&(u++,a/=2),u+f>=d?(o=0,u=d):u+f>=1?(o=(e*a-1)*Math.pow(2,i),u=u+f):(o=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;r[t+p]=o&255,p+=g,o/=256,i-=8);for(u=u<<i|o,c+=i;c>0;r[t+p]=u&255,p+=g,u/=256,c-=8);r[t+p-g]|=m*128}});var nt=W($=>{"use strict";var fe=De(),H=qe(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;$.Buffer=l;$.SlowBuffer=Dt;$.INSPECT_MAX_BYTES=50;var Z=2147483647;$.kMaxLength=Z;l.TYPED_ARRAY_SUPPORT=Rt();!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rt(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function P(r){if(r>Z)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,l.prototype),e}function l(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ge(r)}return We(r,e,t)}l.poolSize=8192;function We(r,e,t){if(typeof r=="string")return Ct(r,e);if(ArrayBuffer.isView(r))return kt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(F(r,ArrayBuffer)||r&&F(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(F(r,SharedArrayBuffer)||r&&F(r.buffer,SharedArrayBuffer)))return pe(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,e,t);let i=Ut(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,e,t){return We(r,e,t)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ve(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Nt(r,e,t){return Ve(r),r<=0?P(r):e!==void 0?typeof t=="string"?P(r).fill(e,t):P(r).fill(e):P(r)}l.alloc=function(r,e,t){return Nt(r,e,t)};function ge(r){return Ve(r),P(r<0?0:me(r)|0)}l.allocUnsafe=function(r){return ge(r)};l.allocUnsafeSlow=function(r){return ge(r)};function Ct(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Ke(r,e)|0,n=P(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function de(r){let e=r.length<0?0:me(r.length)|0,t=P(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function kt(r){if(F(r,Uint8Array)){let e=new Uint8Array(r);return pe(e.buffer,e.byteOffset,e.byteLength)}return de(r)}function pe(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,l.prototype),n}function Ut(r){if(l.isBuffer(r)){let e=me(r.length)|0,t=P(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||ye(r.length)?P(0):de(r);if(r.type==="Buffer"&&Array.isArray(r.data))return de(r.data)}function me(r){if(r>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return r|0}function Dt(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,t){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),F(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let s=0,u=Math.min(n,i);s<u;++s)if(e[s]!==t[s]){n=e[s],i=t[s];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=l.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){let u=e[n];if(F(u,Uint8Array))s+u.length>i.length?(l.isBuffer(u)||(u=l.from(u)),u.copy(i,s)):Uint8Array.prototype.set.call(i,u,s);else if(l.isBuffer(u))u.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=u.length}return i};function Ke(r,e){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||F(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return he(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return rt(r).length;default:if(i)return n?-1:he(r).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ke;function qt(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Jt(this,e,t);case"utf8":case"utf-8":return ze(this,e,t);case"ascii":return Yt(this,e,t);case"latin1":case"binary":return zt(this,e,t);case"base64":return Vt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function D(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}l.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)D(this,t,t+1);return this};l.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)D(this,t,t+3),D(this,t+1,t+2);return this};l.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(this,t+3,t+4);return this};l.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?ze(this,0,e):qt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){let e="",t=$.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,t,n,i,s){if(F(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;let u=s-i,o=n-t,a=Math.min(u,o),c=this.slice(i,s),d=e.slice(t,n);for(let f=0;f<a;++f)if(c[f]!==d[f]){u=c[f],o=d[f];break}return u<o?-1:o<u?1:0};function Ye(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ye(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):He(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function He(r,e,t,n,i){let s=1,u=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,u/=2,o/=2,t/=2}function a(d,f){return s===1?d[f]:d.readUInt16BE(f*s)}let c;if(i){let d=-1;for(c=t;c<u;c++)if(a(r,c)===a(e,d===-1?0:c-d)){if(d===-1&&(d=c),c-d+1===o)return d*s}else d!==-1&&(c-=c-d),d=-1}else for(t+o>u&&(t=u-o),c=t;c>=0;c--){let d=!0;for(let f=0;f<o;f++)if(a(r,c+f)!==a(e,f)){d=!1;break}if(d)return c}return-1}l.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};l.prototype.indexOf=function(e,t,n){return Ye(this,e,t,n,!0)};l.prototype.lastIndexOf=function(e,t,n){return Ye(this,e,t,n,!1)};function Gt(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=e.length;n>s/2&&(n=s/2);let u;for(u=0;u<n;++u){let o=parseInt(e.substr(u*2,2),16);if(ye(o))return u;r[t+u]=o}return u}function Ht(r,e,t,n){return Q(he(e,r.length-t),r,t,n)}function jt(r,e,t,n){return Q(tr(e),r,t,n)}function $t(r,e,t,n){return Q(rt(e),r,t,n)}function Wt(r,e,t,n){return Q(rr(e,r.length-t),r,t,n)}l.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let u=!1;for(;;)switch(i){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return Ht(this,e,t,n);case"ascii":case"latin1":case"binary":return jt(this,e,t,n);case"base64":return $t(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Wt(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vt(r,e,t){return e===0&&t===r.length?fe.fromByteArray(r):fe.fromByteArray(r.slice(e,t))}function ze(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let s=r[i],u=null,o=s>239?4:s>223?3:s>191?2:1;if(i+o<=t){let a,c,d,f;switch(o){case 1:s<128&&(u=s);break;case 2:a=r[i+1],(a&192)===128&&(f=(s&31)<<6|a&63,f>127&&(u=f));break;case 3:a=r[i+1],c=r[i+2],(a&192)===128&&(c&192)===128&&(f=(s&15)<<12|(a&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:a=r[i+1],c=r[i+2],d=r[i+3],(a&192)===128&&(c&192)===128&&(d&192)===128&&(f=(s&15)<<18|(a&63)<<12|(c&63)<<6|d&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,o=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=o}return Kt(n)}var je=4096;function Kt(r){let e=r.length;if(e<=je)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=je));return t}function Yt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function zt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function Jt(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=e;s<t;++s)i+=nr[r[s]];return i}function Xt(r,e,t){let n=r.slice(e,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i};function E(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e+--t],s=1;for(;t>0&&(s*=256);)i+=this[e+--t]*s;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||E(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readBigUInt64LE=C(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});l.prototype.readBigUInt64BE=C(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});l.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i};l.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||E(e,t,this.length);let i=t,s=1,u=this[e+--i];for(;i>0&&(s*=256);)u+=this[e+--i]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*t)),u};l.prototype.readInt8=function(e,t){return e=e>>>0,t||E(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,t){e=e>>>0,t||E(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,t){return e=e>>>0,t||E(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readBigInt64LE=C(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});l.prototype.readBigInt64BE=C(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});l.prototype.readFloatLE=function(e,t){return e=e>>>0,t||E(e,4,this.length),H.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,t){return e=e>>>0,t||E(e,4,this.length),H.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||E(e,8,this.length),H.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||E(e,8,this.length),H.read(this,e,!1,52,8)};function A(r,e,t,n,i,s){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=1,u=0;for(this[t]=e&255;++u<n&&(s*=256);)this[t+u]=e/s&255;return t+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;A(this,e,t,n,o,0)}let s=n-1,u=1;for(this[t+s]=e&255;--s>=0&&(u*=256);)this[t+s]=e/u&255;return t+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,255,0),this[t]=e&255,t+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Je(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,t}function Xe(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=u,u=u>>8,r[t+2]=u,u=u>>8,r[t+1]=u,u=u>>8,r[t]=u,t+8}l.prototype.writeBigUInt64LE=C(function(e,t=0){return Je(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=C(function(e,t=0){return Xe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=0,u=1,o=0;for(this[t]=e&255;++s<n&&(u*=256);)e<0&&o===0&&this[t+s-1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);A(this,e,t,n,a-1,-a)}let s=n-1,u=1,o=0;for(this[t+s]=e&255;--s>=0&&(u*=256);)e<0&&o===0&&this[t+s+1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};l.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};l.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};l.prototype.writeBigInt64LE=C(function(e,t=0){return Je(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=C(function(e,t=0){return Xe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ze(r,e,t,n,i,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Qe(r,e,t,n,i){return e=+e,t=t>>>0,i||Ze(r,e,t,4,34028234663852886e22,-34028234663852886e22),H.write(r,e,t,n,23,4),t+4}l.prototype.writeFloatLE=function(e,t,n){return Qe(this,e,t,!0,n)};l.prototype.writeFloatBE=function(e,t,n){return Qe(this,e,t,!1,n)};function et(r,e,t,n,i){return e=+e,t=t>>>0,i||Ze(r,e,t,8,17976931348623157e292,-17976931348623157e292),H.write(r,e,t,n,52,8),t+8}l.prototype.writeDoubleLE=function(e,t,n){return et(this,e,t,!0,n)};l.prototype.writeDoubleBE=function(e,t,n){return et(this,e,t,!1,n)};l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);let s=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),s};l.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let u=e.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(e=u)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<n;++s)this[s]=e;else{let u=l.isBuffer(e)?e:l.from(e,i),o=u.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=u[s%o]}return this};var G={};function we(r,e,t){G[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);we("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);we("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=$e(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=$e(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function $e(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Zt(r,e,t){j(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&K(e,r.length-(t+1))}function tt(r,e,t,n,i,s){if(r>t||r<e){let u=typeof e=="bigint"?"n":"",o;throw s>3?e===0||e===BigInt(0)?o=`>= 0${u} and < 2${u} ** ${(s+1)*8}${u}`:o=`>= -(2${u} ** ${(s+1)*8-1}${u}) and < 2 ** ${(s+1)*8-1}${u}`:o=`>= ${e}${u} and <= ${t}${u}`,new G.ERR_OUT_OF_RANGE("value",o,r)}Zt(n,i,s)}function j(r,e){if(typeof r!="number")throw new G.ERR_INVALID_ARG_TYPE(e,"number",r)}function K(r,e,t){throw Math.floor(r)!==r?(j(r,t),new G.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var Qt=/[^+/0-9A-Za-z-_]/g;function er(r){if(r=r.split("=")[0],r=r.trim().replace(Qt,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function he(r,e){e=e||1/0;let t,n=r.length,i=null,s=[];for(let u=0;u<n;++u){if(t=r.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function tr(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function rr(r,e){let t,n,i,s=[];for(let u=0;u<r.length&&!((e-=2)<0);++u)t=r.charCodeAt(u),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function rt(r){return fe.toByteArray(er(r))}function Q(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function F(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function ye(r){return r!==r}var nr=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function C(r){return typeof BigInt>"u"?ir:r}function ir(){throw new Error("BigInt not supported")}});var ht,gt=(r,e)=>(Object.keys(e).forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r),ne=async(r,e)=>{let n=await(await fetch(r,{method:"POST",body:JSON.stringify(e),headers:gt({"Content-Type":"application/json"},{"x-tracker-cache":ht})})).json();if(n.error)throw n.error;return n};var ae=re(xe(),1);var mt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_HASH_KEY||process.env.REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.VITE_SECURE_LOCAL_STORAGE_HASH_KEY:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},wt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_PREFIX||process.env.REACT_APP_SECURE_LOCAL_STORAGE_PREFIX||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX||process.env.VITE_SECURE_LOCAL_STORAGE_PREFIX:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},yt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},_t={getHashKey:mt,getStoragePrefix:wt,getDisabledKeys:yt},Y=_t;var Me=re(ve(),1);var w={USERAGENT:"UserAgent",SCREEN_PRINT:"ScreenPrint",PLUGINS:"Plugins",FONTS:"Fonts",LOCAL_STORAGE:"LocalStorage",SESSION_STORAGE:"SessionStorage",TIMEZONE:"TimeZone",LANGUAGE:"Language",SYSTEM_LANGUAGE:"SystemLanguage",COOKIE:"Cookie",CANVAS:"Canvas",HOSTNAME:"Hostname"},Be=()=>{let r=Y.getDisabledKeys()||"";if(r==="")return[];let e=[w.USERAGENT,w.SCREEN_PRINT,w.PLUGINS,w.FONTS,w.LOCAL_STORAGE,w.SESSION_STORAGE,w.TIMEZONE,w.LANGUAGE,w.SYSTEM_LANGUAGE,w.COOKIE,w.CANVAS,w.HOSTNAME],t=[];return r.split("|").forEach(n=>{n===""?console.log("test"):e.includes(n)?t.push(n):console.warn(`react-secure-storage : ${n} is not present in the available disabled keys options! Please go through the documentation`)}),t};var St=class{getFingerprint(){let r="|",e=Be(),t="";return e.includes(w.USERAGENT)||(t+=navigator.userAgent+r),e.includes(w.HOSTNAME)||(t+=window.location.hostname+r),e.includes(w.SCREEN_PRINT)||(t+=this.getScreenPrint()+r),e.includes(w.PLUGINS)||(t+=this.getPlugins()+r),e.includes(w.FONTS)||(t+=this.getFonts()+r),e.includes(w.LOCAL_STORAGE)||(t+=this.isLocalStorage()+r),e.includes(w.SESSION_STORAGE)||(t+=this.isSessionStorage()+r),e.includes(w.TIMEZONE)||(t+=this.getTimeZone()+r),e.includes(w.LANGUAGE)||(t+=this.getLanguage()+r),e.includes(w.SYSTEM_LANGUAGE)||(t+=this.getSystemLanguage()+r),e.includes(w.COOKIE)||(t+=this.isCookie()+r),e.includes(w.CANVAS)||(t+=this.getCanvasPrint()),t.endsWith(r)&&(t=t.substring(0,t.length-1)),(0,Me.default)(t,256)}getScreenPrint(){return"Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()}getColorDepth(){return window.screen.colorDepth}getCurrentResolution(){return window.screen.width+"x"+window.screen.height}getAvailableResolution(){return window.screen.availWidth+"x"+window.screen.availHeight}getDeviceXDPI(){return""}getDeviceYDPI(){return""}getPlugins(){let r="";for(let e=0;e<navigator.plugins.length;e++)e===navigator.plugins.length-1?r+=navigator.plugins[e].name:r+=navigator.plugins[e].name+", ";return r}getFonts(){return""}isLocalStorage(){try{return!!localStorage}catch{return!0}}isSessionStorage(){try{return!!sessionStorage}catch{return!0}}isCookie(){return navigator.cookieEnabled}getTimeZone(){let r=new Date,e,t,n;return e=String(-(r.getTimezoneOffset()/60)),e<0?(e=e*-1,t=("0"+e).slice(-2),n="-"+t):(t=("0"+e).slice(-2),n="+"+t),n}getLanguage(){return navigator.language}getSystemLanguage(){return navigator.language||window.navigator.language}getCanvasPrint(){let r=document.createElement("canvas"),e;try{e=r.getContext("2d")}catch{return""}let t="ClientJS,org <canvas> 1.0";return e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(t,4,17),r.toDataURL()}},bt=new St,Fe=bt;var At="E86E2612010258B35137",xt=()=>{let r=Y.getHashKey()||At;return typeof window>"u"?r:Fe.getFingerprint()+r},se=xt;var vt=(r,e)=>`${r}/visitor/v1/${e}`,Ie=(r,e)=>`${r}/visitor/v2/${e}`,Bt=(r,e)=>`${r}/remember_flow/${e}`,z=async(r,e,t,n,i)=>{let s=sessionStorage.getItem("aesirx-analytics-allow"),u=sessionStorage.getItem("aesirx-analytics-rejected");if(s==="0"||u==="true")return null;let{location:o,document:a}=window,{pathname:c,search:d,origin:f}=o;e=`${f}${c}${d}`,t=t?o.protocol+"//"+o.host+t:a.referrer?a.referrer:window.referer?window.referer==="/"?o.protocol+"//"+o.host:o.protocol+"//"+o.host+window.referer:"",n=window.navigator.userAgent;let h=ae.default.parse(window.navigator.userAgent),p=h?.browser?.name,g=h?.browser?.version??"0",m=window.navigator.userLanguage||window.navigator.language,y=h?.platform?.model??h?.platform?.type,_=window.location.search,B=new URLSearchParams(_),L="",k=Intl.DateTimeFormat().resolvedOptions()?.timeZone;try{let O=se(),T=[];for(let S of B.keys())(S.startsWith("utm_")||S.startsWith("gad_"))&&B.get(S)&&T.push({name:S,value:B.get(S)});i?.length&&i?.forEach(S=>{S?.name&&T.push({name:S?.name,value:S?.value})});let R=await ne(Ie(r,"start"),{fingerprint:O,url:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...t&&(t!==e||a.referrer)&&{referer:t!==e?t?.replace(/^(https?:\/\/)?(www\.)?/,"$1"):a.referrer?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:n,ip:L,browser_name:p,browser_version:g,lang:m,device:y?.includes("iPhone")?"mobile":y?.includes("iPad")?"tablet":y,timezone:k,...T?.length&&{event_name:"visit",event_type:"action",attributes:T}});if(window.aesirxTrackEcommerce==="true"&&sessionStorage.getItem("aesirx-analytics-flow")!==(await R)?.flow_uuid){sessionStorage.setItem("aesirx-analytics-flow",(await R)?.flow_uuid);try{await ne(Bt(window.location.origin,(await R)?.flow_uuid),{})}catch(S){console.log("Remember Flow Error",S)}}return R}catch(O){console.error("Analytics Error: ",O)}},N=async(r,e,t,n)=>{let i=sessionStorage.getItem("aesirx-analytics-allow"),s=sessionStorage.getItem("aesirx-analytics-rejected");if(i==="0"||s==="true")return null;let{location:u,document:o}=window;e=e?u.protocol+"//"+u.host+e:o.referrer?o.referrer:window.referer?window.referer==="/"?u.protocol+"//"+u.host:u.protocol+"//"+u.host+window.referer:"";let a=n||u.protocol+"//"+u.host+u.pathname,c=window.navigator.userAgent,d=ae.default.parse(window.navigator.userAgent),f=d?.browser?.name,h=d?.browser?.version??"0",p=window.navigator.userLanguage||window.navigator.language,g=d?.platform?.model??d?.platform?.type,m="",y=Intl.DateTimeFormat().resolvedOptions()?.timeZone,_=se(),B={type:"application/json"},L=new Blob([JSON.stringify({fingerprint:_,url:a?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...e!=="/"&&e&&{referer:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:c,ip:m,browser_name:f,browser_version:h,lang:p,timezone:y,device:g?.includes("iPhone")?"mobile":g?.includes("iPad")?"tablet":g,...t})],B);return navigator.sendBeacon(Ie(r,"start"),L)},Te=(r,e,t)=>{if(e&&t){let n={event_uuid:e,visitor_uuid:t},i={type:"application/json"},s=new Blob([JSON.stringify(n)],i);navigator.sendBeacon(vt(r,"end"),s)}},Pe=r=>{document.addEventListener("visibilitychange",async()=>{if(document.visibilityState==="hidden"&&Te(r,window.event_uuid,window.visitor_uuid),document.visibilityState==="visible"){let e=await z(r,"","","",window.attributes);window.event_uuid=e?.event_uuid}}),window.addEventListener("pagehide",e=>{e.persisted&&Te(r,window.event_uuid,window.visitor_uuid)},!1)};var Le=window.aesirx1stparty?window.aesirx1stparty:"",J=Le?Le.replace(/\/$/,""):"",Oe=()=>{Array.from(document.querySelectorAll(".cart:not(.variations_form) .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value;i.classList.contains("disabled")||n(s,i.value,u)})}),Array.from(document.querySelectorAll(".add_to_cart_button.product_type_simple")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".woocommerce-loop-product__title")?.innerText;i.classList.contains("disabled")||n(s,i.dataset.product_id,"1")})}),Array.from(document.querySelectorAll(".cart.variations_form .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value,o=i.closest(".product").querySelector('input[name="product_id"]').value,a=i.closest(".product").querySelector('input[name="variation_id"]').value;i.classList.contains("disabled")||n(s,o,u,a)})});let n=(i,s,u=null,o=null)=>{let a={};a.product_name=i,a.product_id=s,o&&(a.variant_id=o),a.quantity=u,N(J,"",{event_name:"Add to cart",event_type:"submit",attributes:[{name:"woo.addtocart",value:JSON.stringify(a)}]})}},Re=()=>{Array.from(document.querySelectorAll('form[role="search"] button[type="submit"]')).forEach(t=>{t.addEventListener("click",()=>{let n=t.closest("form").querySelector('input[type="search"]')?.value;!t.classList.contains("disabled")&&t.closest("form").querySelector('input[name="post_type"]')?.value==="product"&&e(n)})});let e=t=>{let n=Array();ue(n,"1","analytics_woocommerce"),ue(n,t,"wooocommerce_search"),N(J,"",{event_name:"Search product",event_type:"submit",attributes:n})}},Ne=()=>{document.querySelector("form.woocommerce-checkout")?.addEventListener("submit",function(r){jQuery("form.woocommerce-checkout").on("checkout_place_order",function(){let e=r.target,t={},n=[];e.querySelectorAll(".cart_item").forEach(b=>{let ee=b.querySelector(".product-name"),Se="";for(let I=0;I<ee.childNodes.length;++I)ee.childNodes[I].nodeType===Node.TEXT_NODE&&(Se+=ee.childNodes[I]?.textContent);let st=b.querySelector(".product-quantity").innerText?.replace("\xD7",""),te=b.querySelector(".woocommerce-Price-amount bdi"),be="";for(let I=0;I<te.childNodes.length;++I)te.childNodes[I].nodeType===Node.TEXT_NODE&&(be+=te.childNodes[I]?.textContent);let at=b.querySelector(".woocommerce-Price-amount .woocommerce-Price-currencySymbol");n.push({name:Se?.trim(),quantity:st?.trim(),price:be?.trim(),symbol:at?.innerText})}),t.products=n;let s=e.querySelector(".order-total .woocommerce-Price-amount bdi"),u="";for(let b=0;b<s.childNodes.length;++b)s.childNodes[b].nodeType===Node.TEXT_NODE&&(u+=s.childNodes[b]?.textContent);t["order-total"]=u?.trim();let o=e.querySelector('input[name="billing_first_name"]'),a=e.querySelector('input[name="billing_last_name"]'),c=e.querySelector('input[name="billing_company"]'),d=e.querySelector('input[name="billing_address_1"]'),f=e.querySelector('input[name="billing_address_2"]'),h=e.querySelector('input[name="billing_postcode"]'),p=e.querySelector('input[name="billing_city"]'),g=e.querySelector('input[name="billing_state"]'),m=e.querySelector('input[name="billing_phone"]'),y=e.querySelector('input[name="billing_email"]'),_=e.querySelector('input[name="shipping_first_name"]'),B=e.querySelector('input[name="shipping_last_name"]'),L=e.querySelector('input[name="shipping_company"]'),k=e.querySelector('input[name="shipping_address_1"]'),O=e.querySelector('input[name="shipping_address_2"]'),T=e.querySelector('input[name="shipping_postcode"]'),R=e.querySelector('input[name="shipping_city"]'),S=e.querySelector('input[name="shipping_state"]'),v=e.querySelectorAll('input[name="shipping_method[0]"]'),q=e.querySelectorAll('input[name="payment_method"]'),ot=e.querySelector('input[name="mailpoet_woocommerce_checkout_optin"]'),_e="";q?.forEach(b=>{b.checked&&(_e=b?.value)});let Ee="";v?.forEach(b=>{b.checked&&(Ee=b?.value)}),t.billing_first_name=o?.value,t.billing_last_name=a?.value,t.billing_company=c?.value,t.billing_address_1=d?.value,t.billing_address_2=f?.value,t.billing_postcode=h?.value,t.billing_city=p?.value,t.billing_state=g?.value,t.billing_phone=m?.value,t.billing_email=y?.value,t.shipping_first_name=_.value,t.shipping_last_name=B.value,t.shipping_company=L?.value,t.shipping_address_1=k?.value,t.shipping_address_2=O?.value,t.shipping_postcode=T?.value,t.shipping_city=R?.value,t.shipping_state=S?.value,t.shipping_method=Ee,t.payment_method=_e,t.mailpoet_woocommerce_checkout_optin=ot?.value,N(J,"",{event_name:"Checkout",event_type:"submit",attributes:[{name:"woo.checkout",value:JSON.stringify(t)}]})})})},Ce=()=>{if(document.body.classList.contains("woocommerce")&&document.body.classList.contains("single-product")){let r=document.querySelector(".wp-block-post-title")?.innerText;if(r){let e=Array();ue(e,r,"woo.view_product"),N(J,"",{event_name:"View product",event_type:"view",attributes:e})}}},ue=(r,e,t)=>{e&&r.push({name:t,value:e??""})};var it=re(nt(),1);window.Buffer=it.Buffer;var or=()=>{window["aesirx-analytics-enable"]="true";let r=(p,g,m)=>{let y=p[g];return(..._)=>(m.apply(null,_),y.apply(p,_))},e=async p=>{if(!p)return;let{pathname:g,search:m,origin:y}=location;p=`${y}${g}${m}`;let _=p.toString();_.substring(0,4)==="http"?p="/"+_.split("/").splice(3).join("/"):p=_};if(!window.tracker){let p=g=>g;p.startTracker=z,window.tracker=p}history.pushState=r(history,"pushState",e),history.replaceState=r(history,"replaceState",e);let t=window.aesirx1stparty?window.aesirx1stparty:"",n=t?t.replace(/\/$/,""):"",{currentScript:i}=document;if(!i)return;let a=i.getAttribute.bind(i)("data-"+"aesirx-event-name")!=="false",c="[data-aesirx-event-name]",d=async()=>{if(document.readyState==="complete"){if(window["aesirx-consent-enable"]!=="true"){let p=await z(n);p&&(window.event_uuid=p.event_uuid,window.visitor_uuid=p.visitor_uuid)}a&&f(document)}};document.addEventListener("readystatechange",d,!0),Pe(n);let f=p=>{let g=p.querySelectorAll(c);Array.prototype.forEach.call(g,h)},h=p=>{p.addEventListener("click",()=>{let g=[];Object.keys(p.dataset).forEach(m=>{m.startsWith("aesirxEventAttribute")&&g.push({name:m.replace("aesirxEventAttribute","").toLowerCase(),value:p.dataset[m]})}),N(n,"",{event_name:p.dataset.aesirxEventName,event_type:p.dataset.aesirxEventType,attributes:g})},!0)};d()},sr=()=>{Oe(),Re(),Ne(),Ce()};or();document.addEventListener("DOMContentLoaded",()=>{(document.body.classList.contains("woocommerce-js")||document.body.classList.contains("woocommerce-no-js"))&&sr()});window.trackEventAnalytics=N;})();
1
+ (()=>{var ut=Object.create;var Ae=Object.defineProperty;var ct=Object.getOwnPropertyDescriptor;var lt=Object.getOwnPropertyNames;var ft=Object.getPrototypeOf,dt=Object.prototype.hasOwnProperty;var $=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports);var pt=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of lt(e))!dt.call(r,i)&&i!==t&&Ae(r,i,{get:()=>e[i],enumerable:!(n=ct(e,i))||n.enumerable});return r};var re=(r,e,t)=>(t=r!=null?ut(ft(r)):{},pt(e||!r||!r.__esModule?Ae(t,"default",{value:r,enumerable:!0}):t,r));var xe=$((V,ie)=>{(function(r,e){typeof V=="object"&&typeof ie=="object"?ie.exports=e():typeof define=="function"&&define.amd?define([],e):typeof V=="object"?V.bowser=e():r.bowser=e()})(V,function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var i=e[n]={i:n,l:!1,exports:{}};return r[n].call(i.exports,i,i.exports,t),i.l=!0,i.exports}return t.m=r,t.c=e,t.d=function(n,i,s){t.o(n,i)||Object.defineProperty(n,i,{enumerable:!0,get:s})},t.r=function(n){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},t.t=function(n,i){if(1&i&&(n=t(n)),8&i||4&i&&typeof n=="object"&&n&&n.__esModule)return n;var s=Object.create(null);if(t.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:n}),2&i&&typeof n!="string")for(var u in n)t.d(s,u,function(o){return n[o]}.bind(null,u));return s},t.n=function(n){var i=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(i,"a",i),i},t.o=function(n,i){return Object.prototype.hasOwnProperty.call(n,i)},t.p="",t(t.s=90)}({17:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=t(18),i=function(){function s(){}return s.getFirstMatch=function(u,o){var a=o.match(u);return a&&a.length>0&&a[1]||""},s.getSecondMatch=function(u,o){var a=o.match(u);return a&&a.length>1&&a[2]||""},s.matchAndReturnConst=function(u,o,a){if(u.test(o))return a},s.getWindowsVersionName=function(u){switch(u){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}},s.getMacOSVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),o[0]===10)switch(o[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}},s.getAndroidVersionName=function(u){var o=u.split(".").splice(0,2).map(function(a){return parseInt(a,10)||0});if(o.push(0),!(o[0]===1&&o[1]<5))return o[0]===1&&o[1]<6?"Cupcake":o[0]===1&&o[1]>=6?"Donut":o[0]===2&&o[1]<2?"Eclair":o[0]===2&&o[1]===2?"Froyo":o[0]===2&&o[1]>2?"Gingerbread":o[0]===3?"Honeycomb":o[0]===4&&o[1]<1?"Ice Cream Sandwich":o[0]===4&&o[1]<4?"Jelly Bean":o[0]===4&&o[1]>=4?"KitKat":o[0]===5?"Lollipop":o[0]===6?"Marshmallow":o[0]===7?"Nougat":o[0]===8?"Oreo":o[0]===9?"Pie":void 0},s.getVersionPrecision=function(u){return u.split(".").length},s.compareVersions=function(u,o,a){a===void 0&&(a=!1);var c=s.getVersionPrecision(u),d=s.getVersionPrecision(o),f=Math.max(c,d),h=0,p=s.map([u,o],function(g){var m=f-s.getVersionPrecision(g),y=g+new Array(m+1).join(".0");return s.map(y.split("."),function(E){return new Array(20-E.length).join("0")+E}).reverse()});for(a&&(h=f-Math.min(c,d)),f-=1;f>=h;){if(p[0][f]>p[1][f])return 1;if(p[0][f]===p[1][f]){if(f===h)return 0;f-=1}else if(p[0][f]<p[1][f])return-1}},s.map=function(u,o){var a,c=[];if(Array.prototype.map)return Array.prototype.map.call(u,o);for(a=0;a<u.length;a+=1)c.push(o(u[a]));return c},s.find=function(u,o){var a,c;if(Array.prototype.find)return Array.prototype.find.call(u,o);for(a=0,c=u.length;a<c;a+=1){var d=u[a];if(o(d,a))return d}},s.assign=function(u){for(var o,a,c=u,d=arguments.length,f=new Array(d>1?d-1:0),h=1;h<d;h++)f[h-1]=arguments[h];if(Object.assign)return Object.assign.apply(Object,[u].concat(f));var p=function(){var g=f[o];typeof g=="object"&&g!==null&&Object.keys(g).forEach(function(m){c[m]=g[m]})};for(o=0,a=f.length;o<a;o+=1)p();return u},s.getBrowserAlias=function(u){return n.BROWSER_ALIASES_MAP[u]},s.getBrowserTypeByAlias=function(u){return n.BROWSER_MAP[u]||""},s}();e.default=i,r.exports=e.default},18:function(r,e,t){"use strict";e.__esModule=!0,e.ENGINE_MAP=e.OS_MAP=e.PLATFORMS_MAP=e.BROWSER_MAP=e.BROWSER_ALIASES_MAP=void 0,e.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"},e.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"},e.PLATFORMS_MAP={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},e.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"},e.ENGINE_MAP={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"}},90:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(91))&&n.__esModule?n:{default:n},s=t(18);function u(a,c){for(var d=0;d<c.length;d++){var f=c[d];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(a,f.key,f)}}var o=function(){function a(){}var c,d,f;return a.getParser=function(h,p){if(p===void 0&&(p=!1),typeof h!="string")throw new Error("UserAgent should be a string");return new i.default(h,p)},a.parse=function(h){return new i.default(h).getResult()},c=a,f=[{key:"BROWSER_MAP",get:function(){return s.BROWSER_MAP}},{key:"ENGINE_MAP",get:function(){return s.ENGINE_MAP}},{key:"OS_MAP",get:function(){return s.OS_MAP}},{key:"PLATFORMS_MAP",get:function(){return s.PLATFORMS_MAP}}],(d=null)&&u(c.prototype,d),f&&u(c,f),a}();e.default=o,r.exports=e.default},91:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n=a(t(92)),i=a(t(93)),s=a(t(94)),u=a(t(95)),o=a(t(17));function a(d){return d&&d.__esModule?d:{default:d}}var c=function(){function d(h,p){if(p===void 0&&(p=!1),h==null||h==="")throw new Error("UserAgent parameter can't be empty");this._ua=h,this.parsedResult={},p!==!0&&this.parse()}var f=d.prototype;return f.getUA=function(){return this._ua},f.test=function(h){return h.test(this._ua)},f.parseBrowser=function(){var h=this;this.parsedResult.browser={};var p=o.default.find(n.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.browser=p.describe(this.getUA())),this.parsedResult.browser},f.getBrowser=function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()},f.getBrowserName=function(h){return h?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""},f.getBrowserVersion=function(){return this.getBrowser().version},f.getOS=function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()},f.parseOS=function(){var h=this;this.parsedResult.os={};var p=o.default.find(i.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.os=p.describe(this.getUA())),this.parsedResult.os},f.getOSName=function(h){var p=this.getOS().name;return h?String(p).toLowerCase()||"":p||""},f.getOSVersion=function(){return this.getOS().version},f.getPlatform=function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()},f.getPlatformType=function(h){h===void 0&&(h=!1);var p=this.getPlatform().type;return h?String(p).toLowerCase()||"":p||""},f.parsePlatform=function(){var h=this;this.parsedResult.platform={};var p=o.default.find(s.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.platform=p.describe(this.getUA())),this.parsedResult.platform},f.getEngine=function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()},f.getEngineName=function(h){return h?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""},f.parseEngine=function(){var h=this;this.parsedResult.engine={};var p=o.default.find(u.default,function(g){if(typeof g.test=="function")return g.test(h);if(g.test instanceof Array)return g.test.some(function(m){return h.test(m)});throw new Error("Browser's test function is not valid")});return p&&(this.parsedResult.engine=p.describe(this.getUA())),this.parsedResult.engine},f.parse=function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this},f.getResult=function(){return o.default.assign({},this.parsedResult)},f.satisfies=function(h){var p=this,g={},m=0,y={},E=0;if(Object.keys(h).forEach(function(_){var q=h[_];typeof q=="string"?(y[_]=q,E+=1):typeof q=="object"&&(g[_]=q,m+=1)}),m>0){var v=Object.keys(g),O=o.default.find(v,function(_){return p.isOS(_)});if(O){var F=this.satisfies(g[O]);if(F!==void 0)return F}var T=o.default.find(v,function(_){return p.isPlatform(_)});if(T){var M=this.satisfies(g[T]);if(M!==void 0)return M}}if(E>0){var I=Object.keys(y),b=o.default.find(I,function(_){return p.isBrowser(_,!0)});if(b!==void 0)return this.compareVersion(y[b])}},f.isBrowser=function(h,p){p===void 0&&(p=!1);var g=this.getBrowserName().toLowerCase(),m=h.toLowerCase(),y=o.default.getBrowserTypeByAlias(m);return p&&y&&(m=y.toLowerCase()),m===g},f.compareVersion=function(h){var p=[0],g=h,m=!1,y=this.getBrowserVersion();if(typeof y=="string")return h[0]===">"||h[0]==="<"?(g=h.substr(1),h[1]==="="?(m=!0,g=h.substr(2)):p=[],h[0]===">"?p.push(1):p.push(-1)):h[0]==="="?g=h.substr(1):h[0]==="~"&&(m=!0,g=h.substr(1)),p.indexOf(o.default.compareVersions(y,g,m))>-1},f.isOS=function(h){return this.getOSName(!0)===String(h).toLowerCase()},f.isPlatform=function(h){return this.getPlatformType(!0)===String(h).toLowerCase()},f.isEngine=function(h){return this.getEngineName(!0)===String(h).toLowerCase()},f.is=function(h,p){return p===void 0&&(p=!1),this.isBrowser(h,p)||this.isOS(h)||this.isPlatform(h)},f.some=function(h){var p=this;return h===void 0&&(h=[]),h.some(function(g){return p.is(g)})},d}();e.default=c,r.exports=e.default},92:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=/version\/(\d+(\.?_?\d+)+)/i,u=[{test:[/googlebot/i],describe:function(o){var a={name:"Googlebot"},c=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/opera/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opr\/|opios/i],describe:function(o){var a={name:"Opera"},c=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/SamsungBrowser/i],describe:function(o){var a={name:"Samsung Internet for Android"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Whale/i],describe:function(o){var a={name:"NAVER Whale Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MZBrowser/i],describe:function(o){var a={name:"MZ Browser"},c=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/focus/i],describe:function(o){var a={name:"Focus"},c=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/swing/i],describe:function(o){var a={name:"Swing"},c=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/coast/i],describe:function(o){var a={name:"Opera Coast"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(o){var a={name:"Opera Touch"},c=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/yabrowser/i],describe:function(o){var a={name:"Yandex Browser"},c=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/ucbrowser/i],describe:function(o){var a={name:"UC Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/Maxthon|mxios/i],describe:function(o){var a={name:"Maxthon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/epiphany/i],describe:function(o){var a={name:"Epiphany"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/puffin/i],describe:function(o){var a={name:"Puffin"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sleipnir/i],describe:function(o){var a={name:"Sleipnir"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/k-meleon/i],describe:function(o){var a={name:"K-Meleon"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/micromessenger/i],describe:function(o){var a={name:"WeChat"},c=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qqbrowser/i],describe:function(o){var a={name:/qqbrowserlite/i.test(o)?"QQ Browser Lite":"QQ Browser"},c=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/msie|trident/i],describe:function(o){var a={name:"Internet Explorer"},c=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/\sedg\//i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/edg([ea]|ios)/i],describe:function(o){var a={name:"Microsoft Edge"},c=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/vivaldi/i],describe:function(o){var a={name:"Vivaldi"},c=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/seamonkey/i],describe:function(o){var a={name:"SeaMonkey"},c=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/sailfish/i],describe:function(o){var a={name:"Sailfish"},c=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,o);return c&&(a.version=c),a}},{test:[/silk/i],describe:function(o){var a={name:"Amazon Silk"},c=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/phantom/i],describe:function(o){var a={name:"PhantomJS"},c=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/slimerjs/i],describe:function(o){var a={name:"SlimerJS"},c=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a={name:"BlackBerry"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a={name:"WebOS Browser"},c=i.default.getFirstMatch(s,o)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/bada/i],describe:function(o){var a={name:"Bada"},c=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/tizen/i],describe:function(o){var a={name:"Tizen"},c=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/qupzilla/i],describe:function(o){var a={name:"QupZilla"},c=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/firefox|iceweasel|fxios/i],describe:function(o){var a={name:"Firefox"},c=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/electron/i],describe:function(o){var a={name:"Electron"},c=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/MiuiBrowser/i],describe:function(o){var a={name:"Miui"},c=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/chromium/i],describe:function(o){var a={name:"Chromium"},c=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,o)||i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/chrome|crios|crmo/i],describe:function(o){var a={name:"Chrome"},c=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/GSA/i],describe:function(o){var a={name:"Google Search"},c=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a={name:"Android Browser"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/playstation 4/i],describe:function(o){var a={name:"PlayStation 4"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/safari|applewebkit/i],describe:function(o){var a={name:"Safari"},c=i.default.getFirstMatch(s,o);return c&&(a.version=c),a}},{test:[/.*/i],describe:function(o){var a=o.search("\\(")!==-1?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(a,o),version:i.default.getSecondMatch(a,o)}}}];e.default=u,r.exports=e.default},93:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/Roku\/DVP/],describe:function(o){var a=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,o);return{name:s.OS_MAP.Roku,version:a}}},{test:[/windows phone/i],describe:function(o){var a=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.WindowsPhone,version:a}}},{test:[/windows /i],describe:function(o){var a=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,o),c=i.default.getWindowsVersionName(a);return{name:s.OS_MAP.Windows,version:a,versionName:c}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(o){var a={name:s.OS_MAP.iOS},c=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,o);return c&&(a.version=c),a}},{test:[/macintosh/i],describe:function(o){var a=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,o).replace(/[_\s]/g,"."),c=i.default.getMacOSVersionName(a),d={name:s.OS_MAP.MacOS,version:a};return c&&(d.versionName=c),d}},{test:[/(ipod|iphone|ipad)/i],describe:function(o){var a=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,o).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:a}}},{test:function(o){var a=!o.test(/like android/i),c=o.test(/android/i);return a&&c},describe:function(o){var a=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,o),c=i.default.getAndroidVersionName(a),d={name:s.OS_MAP.Android,version:a};return c&&(d.versionName=c),d}},{test:[/(web|hpw)[o0]s/i],describe:function(o){var a=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,o),c={name:s.OS_MAP.WebOS};return a&&a.length&&(c.version=a),c}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(o){var a=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,o)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,o)||i.default.getFirstMatch(/\bbb(\d+)/i,o);return{name:s.OS_MAP.BlackBerry,version:a}}},{test:[/bada/i],describe:function(o){var a=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Bada,version:a}}},{test:[/tizen/i],describe:function(o){var a=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.Tizen,version:a}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(o){var a=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,o);return{name:s.OS_MAP.PlayStation4,version:a}}}];e.default=u,r.exports=e.default},94:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(o){var a=i.default.getFirstMatch(/(can-l01)/i,o)&&"Nova",c={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return a&&(c.model=a),c}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){var a=o.test(/ipod|iphone/i),c=o.test(/like (ipod|iphone)/i);return a&&!c},describe:function(o){var a=i.default.getFirstMatch(/(ipod|iphone)/i,o);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:a}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName(!0)==="blackberry"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(o){return o.getBrowserName(!0)==="bada"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getBrowserName()==="windows phone"},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(o){var a=Number(String(o.getOSVersion()).split(".")[0]);return o.getOSName(!0)==="android"&&a>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(o){return o.getOSName(!0)==="android"},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(o){return o.getOSName(!0)==="macos"},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(o){return o.getOSName(!0)==="windows"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="linux"},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(o){return o.getOSName(!0)==="playstation 4"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(o){return o.getOSName(!0)==="roku"},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];e.default=u,r.exports=e.default},95:function(r,e,t){"use strict";e.__esModule=!0,e.default=void 0;var n,i=(n=t(17))&&n.__esModule?n:{default:n},s=t(18),u=[{test:function(o){return o.getBrowserName(!0)==="microsoft edge"},describe:function(o){if(/\sedg\//i.test(o))return{name:s.ENGINE_MAP.Blink};var a=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,o);return{name:s.ENGINE_MAP.EdgeHTML,version:a}}},{test:[/trident/i],describe:function(o){var a={name:s.ENGINE_MAP.Trident},c=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){return o.test(/presto/i)},describe:function(o){var a={name:s.ENGINE_MAP.Presto},c=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:function(o){var a=o.test(/gecko/i),c=o.test(/like gecko/i);return a&&!c},describe:function(o){var a={name:s.ENGINE_MAP.Gecko},c=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(o){var a={name:s.ENGINE_MAP.WebKit},c=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,o);return c&&(a.version=c),a}}];e.default=u,r.exports=e.default}})})});var ve=$((lr,oe)=>{function Et(r,e){var t,n,i,s,u,o,a,c,d,f;for(t=r.length&3,n=r.length-t,i=e,u=3432918353,a=461845907,f=0;f<n;)d=r.charCodeAt(f)&255|(r.charCodeAt(++f)&255)<<8|(r.charCodeAt(++f)&255)<<16|(r.charCodeAt(++f)&255)<<24,++f,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d,i=i<<13|i>>>19,s=(i&65535)*5+(((i>>>16)*5&65535)<<16)&4294967295,i=(s&65535)+27492+(((s>>>16)+58964&65535)<<16);switch(d=0,t){case 3:d^=(r.charCodeAt(f+2)&255)<<16;case 2:d^=(r.charCodeAt(f+1)&255)<<8;case 1:d^=r.charCodeAt(f)&255,d=(d&65535)*u+(((d>>>16)*u&65535)<<16)&4294967295,d=d<<15|d>>>17,d=(d&65535)*a+(((d>>>16)*a&65535)<<16)&4294967295,i^=d}return i^=r.length,i^=i>>>16,i=(i&65535)*2246822507+(((i>>>16)*2246822507&65535)<<16)&4294967295,i^=i>>>13,i=(i&65535)*3266489909+(((i>>>16)*3266489909&65535)<<16)&4294967295,i^=i>>>16,i>>>0}typeof oe<"u"&&(oe.exports=Et)});var De=$(X=>{"use strict";X.byteLength=Ft;X.toByteArray=It;X.fromByteArray=Ot;var P=[],B=[],Mt=typeof Uint8Array<"u"?Uint8Array:Array,ce="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";for(U=0,ke=ce.length;U<ke;++U)P[U]=ce[U],B[ce.charCodeAt(U)]=U;var U,ke;B[45]=62;B[95]=63;function Ue(r){var e=r.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var t=r.indexOf("=");t===-1&&(t=e);var n=t===e?0:4-t%4;return[t,n]}function Ft(r){var e=Ue(r),t=e[0],n=e[1];return(t+n)*3/4-n}function Tt(r,e,t){return(e+t)*3/4-t}function It(r){var e,t=Ue(r),n=t[0],i=t[1],s=new Mt(Tt(r,n,i)),u=0,o=i>0?n-4:n,a;for(a=0;a<o;a+=4)e=B[r.charCodeAt(a)]<<18|B[r.charCodeAt(a+1)]<<12|B[r.charCodeAt(a+2)]<<6|B[r.charCodeAt(a+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=e&255;return i===2&&(e=B[r.charCodeAt(a)]<<2|B[r.charCodeAt(a+1)]>>4,s[u++]=e&255),i===1&&(e=B[r.charCodeAt(a)]<<10|B[r.charCodeAt(a+1)]<<4|B[r.charCodeAt(a+2)]>>2,s[u++]=e>>8&255,s[u++]=e&255),s}function Pt(r){return P[r>>18&63]+P[r>>12&63]+P[r>>6&63]+P[r&63]}function Lt(r,e,t){for(var n,i=[],s=e;s<t;s+=3)n=(r[s]<<16&16711680)+(r[s+1]<<8&65280)+(r[s+2]&255),i.push(Pt(n));return i.join("")}function Ot(r){for(var e,t=r.length,n=t%3,i=[],s=16383,u=0,o=t-n;u<o;u+=s)i.push(Lt(r,u,u+s>o?o:u+s));return n===1?(e=r[t-1],i.push(P[e>>2]+P[e<<4&63]+"==")):n===2&&(e=(r[t-2]<<8)+r[t-1],i.push(P[e>>10]+P[e>>4&63]+P[e<<2&63]+"=")),i.join("")}});var qe=$(le=>{le.read=function(r,e,t,n,i){var s,u,o=i*8-n-1,a=(1<<o)-1,c=a>>1,d=-7,f=t?i-1:0,h=t?-1:1,p=r[e+f];for(f+=h,s=p&(1<<-d)-1,p>>=-d,d+=o;d>0;s=s*256+r[e+f],f+=h,d-=8);for(u=s&(1<<-d)-1,s>>=-d,d+=n;d>0;u=u*256+r[e+f],f+=h,d-=8);if(s===0)s=1-c;else{if(s===a)return u?NaN:(p?-1:1)*(1/0);u=u+Math.pow(2,n),s=s-c}return(p?-1:1)*u*Math.pow(2,s-n)};le.write=function(r,e,t,n,i,s){var u,o,a,c=s*8-i-1,d=(1<<c)-1,f=d>>1,h=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,p=n?0:s-1,g=n?1:-1,m=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(o=isNaN(e)?1:0,u=d):(u=Math.floor(Math.log(e)/Math.LN2),e*(a=Math.pow(2,-u))<1&&(u--,a*=2),u+f>=1?e+=h/a:e+=h*Math.pow(2,1-f),e*a>=2&&(u++,a/=2),u+f>=d?(o=0,u=d):u+f>=1?(o=(e*a-1)*Math.pow(2,i),u=u+f):(o=e*Math.pow(2,f-1)*Math.pow(2,i),u=0));i>=8;r[t+p]=o&255,p+=g,o/=256,i-=8);for(u=u<<i|o,c+=i;c>0;r[t+p]=u&255,p+=g,u/=256,c-=8);r[t+p-g]|=m*128}});var nt=$(W=>{"use strict";var fe=De(),H=qe(),Ge=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;W.Buffer=l;W.SlowBuffer=Dt;W.INSPECT_MAX_BYTES=50;var Z=2147483647;W.kMaxLength=Z;l.TYPED_ARRAY_SUPPORT=Rt();!l.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function Rt(){try{let r=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(r,e),r.foo()===42}catch{return!1}}Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}});Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}});function N(r){if(r>Z)throw new RangeError('The value "'+r+'" is invalid for option "size"');let e=new Uint8Array(r);return Object.setPrototypeOf(e,l.prototype),e}function l(r,e,t){if(typeof r=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return ge(r)}return $e(r,e,t)}l.poolSize=8192;function $e(r,e,t){if(typeof r=="string")return Ct(r,e);if(ArrayBuffer.isView(r))return kt(r);if(r==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r);if(L(r,ArrayBuffer)||r&&L(r.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(L(r,SharedArrayBuffer)||r&&L(r.buffer,SharedArrayBuffer)))return pe(r,e,t);if(typeof r=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let n=r.valueOf&&r.valueOf();if(n!=null&&n!==r)return l.from(n,e,t);let i=Ut(r);if(i)return i;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof r[Symbol.toPrimitive]=="function")return l.from(r[Symbol.toPrimitive]("string"),e,t);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof r)}l.from=function(r,e,t){return $e(r,e,t)};Object.setPrototypeOf(l.prototype,Uint8Array.prototype);Object.setPrototypeOf(l,Uint8Array);function Ve(r){if(typeof r!="number")throw new TypeError('"size" argument must be of type number');if(r<0)throw new RangeError('The value "'+r+'" is invalid for option "size"')}function Nt(r,e,t){return Ve(r),r<=0?N(r):e!==void 0?typeof t=="string"?N(r).fill(e,t):N(r).fill(e):N(r)}l.alloc=function(r,e,t){return Nt(r,e,t)};function ge(r){return Ve(r),N(r<0?0:me(r)|0)}l.allocUnsafe=function(r){return ge(r)};l.allocUnsafeSlow=function(r){return ge(r)};function Ct(r,e){if((typeof e!="string"||e==="")&&(e="utf8"),!l.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let t=Ke(r,e)|0,n=N(t),i=n.write(r,e);return i!==t&&(n=n.slice(0,i)),n}function de(r){let e=r.length<0?0:me(r.length)|0,t=N(e);for(let n=0;n<e;n+=1)t[n]=r[n]&255;return t}function kt(r){if(L(r,Uint8Array)){let e=new Uint8Array(r);return pe(e.buffer,e.byteOffset,e.byteLength)}return de(r)}function pe(r,e,t){if(e<0||r.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(r.byteLength<e+(t||0))throw new RangeError('"length" is outside of buffer bounds');let n;return e===void 0&&t===void 0?n=new Uint8Array(r):t===void 0?n=new Uint8Array(r,e):n=new Uint8Array(r,e,t),Object.setPrototypeOf(n,l.prototype),n}function Ut(r){if(l.isBuffer(r)){let e=me(r.length)|0,t=N(e);return t.length===0||r.copy(t,0,0,e),t}if(r.length!==void 0)return typeof r.length!="number"||ye(r.length)?N(0):de(r);if(r.type==="Buffer"&&Array.isArray(r.data))return de(r.data)}function me(r){if(r>=Z)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+Z.toString(16)+" bytes");return r|0}function Dt(r){return+r!=r&&(r=0),l.alloc(+r)}l.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==l.prototype};l.compare=function(e,t){if(L(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),L(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,i=t.length;for(let s=0,u=Math.min(n,i);s<u;++s)if(e[s]!==t[s]){n=e[s],i=t[s];break}return n<i?-1:i<n?1:0};l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}};l.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return l.alloc(0);let n;if(t===void 0)for(t=0,n=0;n<e.length;++n)t+=e[n].length;let i=l.allocUnsafe(t),s=0;for(n=0;n<e.length;++n){let u=e[n];if(L(u,Uint8Array))s+u.length>i.length?(l.isBuffer(u)||(u=l.from(u)),u.copy(i,s)):Uint8Array.prototype.set.call(i,u,s);else if(l.isBuffer(u))u.copy(i,s);else throw new TypeError('"list" argument must be an Array of Buffers');s+=u.length}return i};function Ke(r,e){if(l.isBuffer(r))return r.length;if(ArrayBuffer.isView(r)||L(r,ArrayBuffer))return r.byteLength;if(typeof r!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof r);let t=r.length,n=arguments.length>2&&arguments[2]===!0;if(!n&&t===0)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return t;case"utf8":case"utf-8":return he(r).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return t*2;case"hex":return t>>>1;case"base64":return rt(r).length;default:if(i)return n?-1:he(r).length;e=(""+e).toLowerCase(),i=!0}}l.byteLength=Ke;function qt(r,e,t){let n=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((t===void 0||t>this.length)&&(t=this.length),t<=0)||(t>>>=0,e>>>=0,t<=e))return"";for(r||(r="utf8");;)switch(r){case"hex":return Jt(this,e,t);case"utf8":case"utf-8":return ze(this,e,t);case"ascii":return Yt(this,e,t);case"latin1":case"binary":return zt(this,e,t);case"base64":return Vt(this,e,t);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Xt(this,e,t);default:if(n)throw new TypeError("Unknown encoding: "+r);r=(r+"").toLowerCase(),n=!0}}l.prototype._isBuffer=!0;function D(r,e,t){let n=r[e];r[e]=r[t],r[t]=n}l.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let t=0;t<e;t+=2)D(this,t,t+1);return this};l.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let t=0;t<e;t+=4)D(this,t,t+3),D(this,t+1,t+2);return this};l.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let t=0;t<e;t+=8)D(this,t,t+7),D(this,t+1,t+6),D(this,t+2,t+5),D(this,t+3,t+4);return this};l.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?ze(this,0,e):qt.apply(this,arguments)};l.prototype.toLocaleString=l.prototype.toString;l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:l.compare(this,e)===0};l.prototype.inspect=function(){let e="",t=W.INSPECT_MAX_BYTES;return e=this.toString("hex",0,t).replace(/(.{2})/g,"$1 ").trim(),this.length>t&&(e+=" ... "),"<Buffer "+e+">"};Ge&&(l.prototype[Ge]=l.prototype.inspect);l.prototype.compare=function(e,t,n,i,s){if(L(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(t===void 0&&(t=0),n===void 0&&(n=e?e.length:0),i===void 0&&(i=0),s===void 0&&(s=this.length),t<0||n>e.length||i<0||s>this.length)throw new RangeError("out of range index");if(i>=s&&t>=n)return 0;if(i>=s)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,i>>>=0,s>>>=0,this===e)return 0;let u=s-i,o=n-t,a=Math.min(u,o),c=this.slice(i,s),d=e.slice(t,n);for(let f=0;f<a;++f)if(c[f]!==d[f]){u=c[f],o=d[f];break}return u<o?-1:o<u?1:0};function Ye(r,e,t,n,i){if(r.length===0)return-1;if(typeof t=="string"?(n=t,t=0):t>2147483647?t=2147483647:t<-2147483648&&(t=-2147483648),t=+t,ye(t)&&(t=i?0:r.length-1),t<0&&(t=r.length+t),t>=r.length){if(i)return-1;t=r.length-1}else if(t<0)if(i)t=0;else return-1;if(typeof e=="string"&&(e=l.from(e,n)),l.isBuffer(e))return e.length===0?-1:He(r,e,t,n,i);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?i?Uint8Array.prototype.indexOf.call(r,e,t):Uint8Array.prototype.lastIndexOf.call(r,e,t):He(r,[e],t,n,i);throw new TypeError("val must be string, number or Buffer")}function He(r,e,t,n,i){let s=1,u=r.length,o=e.length;if(n!==void 0&&(n=String(n).toLowerCase(),n==="ucs2"||n==="ucs-2"||n==="utf16le"||n==="utf-16le")){if(r.length<2||e.length<2)return-1;s=2,u/=2,o/=2,t/=2}function a(d,f){return s===1?d[f]:d.readUInt16BE(f*s)}let c;if(i){let d=-1;for(c=t;c<u;c++)if(a(r,c)===a(e,d===-1?0:c-d)){if(d===-1&&(d=c),c-d+1===o)return d*s}else d!==-1&&(c-=c-d),d=-1}else for(t+o>u&&(t=u-o),c=t;c>=0;c--){let d=!0;for(let f=0;f<o;f++)if(a(r,c+f)!==a(e,f)){d=!1;break}if(d)return c}return-1}l.prototype.includes=function(e,t,n){return this.indexOf(e,t,n)!==-1};l.prototype.indexOf=function(e,t,n){return Ye(this,e,t,n,!0)};l.prototype.lastIndexOf=function(e,t,n){return Ye(this,e,t,n,!1)};function Gt(r,e,t,n){t=Number(t)||0;let i=r.length-t;n?(n=Number(n),n>i&&(n=i)):n=i;let s=e.length;n>s/2&&(n=s/2);let u;for(u=0;u<n;++u){let o=parseInt(e.substr(u*2,2),16);if(ye(o))return u;r[t+u]=o}return u}function Ht(r,e,t,n){return Q(he(e,r.length-t),r,t,n)}function jt(r,e,t,n){return Q(tr(e),r,t,n)}function Wt(r,e,t,n){return Q(rt(e),r,t,n)}function $t(r,e,t,n){return Q(rr(e,r.length-t),r,t,n)}l.prototype.write=function(e,t,n,i){if(t===void 0)i="utf8",n=this.length,t=0;else if(n===void 0&&typeof t=="string")i=t,n=this.length,t=0;else if(isFinite(t))t=t>>>0,isFinite(n)?(n=n>>>0,i===void 0&&(i="utf8")):(i=n,n=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let s=this.length-t;if((n===void 0||n>s)&&(n=s),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");let u=!1;for(;;)switch(i){case"hex":return Gt(this,e,t,n);case"utf8":case"utf-8":return Ht(this,e,t,n);case"ascii":case"latin1":case"binary":return jt(this,e,t,n);case"base64":return Wt(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $t(this,e,t,n);default:if(u)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),u=!0}};l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Vt(r,e,t){return e===0&&t===r.length?fe.fromByteArray(r):fe.fromByteArray(r.slice(e,t))}function ze(r,e,t){t=Math.min(r.length,t);let n=[],i=e;for(;i<t;){let s=r[i],u=null,o=s>239?4:s>223?3:s>191?2:1;if(i+o<=t){let a,c,d,f;switch(o){case 1:s<128&&(u=s);break;case 2:a=r[i+1],(a&192)===128&&(f=(s&31)<<6|a&63,f>127&&(u=f));break;case 3:a=r[i+1],c=r[i+2],(a&192)===128&&(c&192)===128&&(f=(s&15)<<12|(a&63)<<6|c&63,f>2047&&(f<55296||f>57343)&&(u=f));break;case 4:a=r[i+1],c=r[i+2],d=r[i+3],(a&192)===128&&(c&192)===128&&(d&192)===128&&(f=(s&15)<<18|(a&63)<<12|(c&63)<<6|d&63,f>65535&&f<1114112&&(u=f))}}u===null?(u=65533,o=1):u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u),i+=o}return Kt(n)}var je=4096;function Kt(r){let e=r.length;if(e<=je)return String.fromCharCode.apply(String,r);let t="",n=0;for(;n<e;)t+=String.fromCharCode.apply(String,r.slice(n,n+=je));return t}function Yt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]&127);return n}function zt(r,e,t){let n="";t=Math.min(r.length,t);for(let i=e;i<t;++i)n+=String.fromCharCode(r[i]);return n}function Jt(r,e,t){let n=r.length;(!e||e<0)&&(e=0),(!t||t<0||t>n)&&(t=n);let i="";for(let s=e;s<t;++s)i+=nr[r[s]];return i}function Xt(r,e,t){let n=r.slice(e,t),i="";for(let s=0;s<n.length-1;s+=2)i+=String.fromCharCode(n[s]+n[s+1]*256);return i}l.prototype.slice=function(e,t){let n=this.length;e=~~e,t=t===void 0?n:~~t,e<0?(e+=n,e<0&&(e=0)):e>n&&(e=n),t<0?(t+=n,t<0&&(t=0)):t>n&&(t=n),t<e&&(t=e);let i=this.subarray(e,t);return Object.setPrototypeOf(i,l.prototype),i};function S(r,e,t){if(r%1!==0||r<0)throw new RangeError("offset is not uint");if(r+e>t)throw new RangeError("Trying to access beyond buffer length")}l.prototype.readUintLE=l.prototype.readUIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||S(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return i};l.prototype.readUintBE=l.prototype.readUIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||S(e,t,this.length);let i=this[e+--t],s=1;for(;t>0&&(s*=256);)i+=this[e+--t]*s;return i};l.prototype.readUint8=l.prototype.readUInt8=function(e,t){return e=e>>>0,t||S(e,1,this.length),this[e]};l.prototype.readUint16LE=l.prototype.readUInt16LE=function(e,t){return e=e>>>0,t||S(e,2,this.length),this[e]|this[e+1]<<8};l.prototype.readUint16BE=l.prototype.readUInt16BE=function(e,t){return e=e>>>0,t||S(e,2,this.length),this[e]<<8|this[e+1]};l.prototype.readUint32LE=l.prototype.readUInt32LE=function(e,t){return e=e>>>0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216};l.prototype.readUint32BE=l.prototype.readUInt32BE=function(e,t){return e=e>>>0,t||S(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])};l.prototype.readBigUInt64LE=k(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,s=this[++e]+this[++e]*2**8+this[++e]*2**16+n*2**24;return BigInt(i)+(BigInt(s)<<BigInt(32))});l.prototype.readBigUInt64BE=k(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=t*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],s=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n;return(BigInt(i)<<BigInt(32))+BigInt(s)});l.prototype.readIntLE=function(e,t,n){e=e>>>0,t=t>>>0,n||S(e,t,this.length);let i=this[e],s=1,u=0;for(;++u<t&&(s*=256);)i+=this[e+u]*s;return s*=128,i>=s&&(i-=Math.pow(2,8*t)),i};l.prototype.readIntBE=function(e,t,n){e=e>>>0,t=t>>>0,n||S(e,t,this.length);let i=t,s=1,u=this[e+--i];for(;i>0&&(s*=256);)u+=this[e+--i]*s;return s*=128,u>=s&&(u-=Math.pow(2,8*t)),u};l.prototype.readInt8=function(e,t){return e=e>>>0,t||S(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]};l.prototype.readInt16LE=function(e,t){e=e>>>0,t||S(e,2,this.length);let n=this[e]|this[e+1]<<8;return n&32768?n|4294901760:n};l.prototype.readInt16BE=function(e,t){e=e>>>0,t||S(e,2,this.length);let n=this[e+1]|this[e]<<8;return n&32768?n|4294901760:n};l.prototype.readInt32LE=function(e,t){return e=e>>>0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24};l.prototype.readInt32BE=function(e,t){return e=e>>>0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]};l.prototype.readBigInt64LE=k(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(n<<24);return(BigInt(i)<<BigInt(32))+BigInt(t+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)});l.prototype.readBigInt64BE=k(function(e){e=e>>>0,j(e,"offset");let t=this[e],n=this[e+7];(t===void 0||n===void 0)&&K(e,this.length-8);let i=(t<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(i)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+n)});l.prototype.readFloatLE=function(e,t){return e=e>>>0,t||S(e,4,this.length),H.read(this,e,!0,23,4)};l.prototype.readFloatBE=function(e,t){return e=e>>>0,t||S(e,4,this.length),H.read(this,e,!1,23,4)};l.prototype.readDoubleLE=function(e,t){return e=e>>>0,t||S(e,8,this.length),H.read(this,e,!0,52,8)};l.prototype.readDoubleBE=function(e,t){return e=e>>>0,t||S(e,8,this.length),H.read(this,e,!1,52,8)};function x(r,e,t,n,i,s){if(!l.isBuffer(r))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(t+n>r.length)throw new RangeError("Index out of range")}l.prototype.writeUintLE=l.prototype.writeUIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}let s=1,u=0;for(this[t]=e&255;++u<n&&(s*=256);)this[t+u]=e/s&255;return t+n};l.prototype.writeUintBE=l.prototype.writeUIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,n=n>>>0,!i){let o=Math.pow(2,8*n)-1;x(this,e,t,n,o,0)}let s=n-1,u=1;for(this[t+s]=e&255;--s>=0&&(u*=256);)this[t+s]=e/u&255;return t+n};l.prototype.writeUint8=l.prototype.writeUInt8=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,1,255,0),this[t]=e&255,t+1};l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,2,65535,0),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=e&255,t+4};l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};function Je(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s,s=s>>8,r[t++]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,u=u>>8,r[t++]=u,t}function Xe(r,e,t,n,i){tt(e,n,i,r,t,7);let s=Number(e&BigInt(4294967295));r[t+7]=s,s=s>>8,r[t+6]=s,s=s>>8,r[t+5]=s,s=s>>8,r[t+4]=s;let u=Number(e>>BigInt(32)&BigInt(4294967295));return r[t+3]=u,u=u>>8,r[t+2]=u,u=u>>8,r[t+1]=u,u=u>>8,r[t]=u,t+8}l.prototype.writeBigUInt64LE=k(function(e,t=0){return Je(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeBigUInt64BE=k(function(e,t=0){return Xe(this,e,t,BigInt(0),BigInt("0xffffffffffffffff"))});l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}let s=0,u=1,o=0;for(this[t]=e&255;++s<n&&(u*=256);)e<0&&o===0&&this[t+s-1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t=t>>>0,!i){let a=Math.pow(2,8*n-1);x(this,e,t,n,a-1,-a)}let s=n-1,u=1,o=0;for(this[t+s]=e&255;--s>=0&&(u*=256);)e<0&&o===0&&this[t+s+1]!==0&&(o=1),this[t+s]=(e/u>>0)-o&255;return t+n};l.prototype.writeInt8=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=e&255,t+1};l.prototype.writeInt16LE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,2,32767,-32768),this[t]=e&255,this[t+1]=e>>>8,t+2};l.prototype.writeInt16BE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=e&255,t+2};l.prototype.writeInt32LE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,4,2147483647,-2147483648),this[t]=e&255,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4};l.prototype.writeInt32BE=function(e,t,n){return e=+e,t=t>>>0,n||x(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=e&255,t+4};l.prototype.writeBigInt64LE=k(function(e,t=0){return Je(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});l.prototype.writeBigInt64BE=k(function(e,t=0){return Xe(this,e,t,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ze(r,e,t,n,i,s){if(t+n>r.length)throw new RangeError("Index out of range");if(t<0)throw new RangeError("Index out of range")}function Qe(r,e,t,n,i){return e=+e,t=t>>>0,i||Ze(r,e,t,4,34028234663852886e22,-34028234663852886e22),H.write(r,e,t,n,23,4),t+4}l.prototype.writeFloatLE=function(e,t,n){return Qe(this,e,t,!0,n)};l.prototype.writeFloatBE=function(e,t,n){return Qe(this,e,t,!1,n)};function et(r,e,t,n,i){return e=+e,t=t>>>0,i||Ze(r,e,t,8,17976931348623157e292,-17976931348623157e292),H.write(r,e,t,n,52,8),t+8}l.prototype.writeDoubleLE=function(e,t,n){return et(this,e,t,!0,n)};l.prototype.writeDoubleBE=function(e,t,n){return et(this,e,t,!1,n)};l.prototype.copy=function(e,t,n,i){if(!l.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),!i&&i!==0&&(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n||e.length===0||this.length===0)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);let s=i-n;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(t,n,i):Uint8Array.prototype.set.call(e,this.subarray(n,i),t),s};l.prototype.fill=function(e,t,n,i){if(typeof e=="string"){if(typeof t=="string"?(i=t,t=0,n=this.length):typeof n=="string"&&(i=n,n=this.length),i!==void 0&&typeof i!="string")throw new TypeError("encoding must be a string");if(typeof i=="string"&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i);if(e.length===1){let u=e.charCodeAt(0);(i==="utf8"&&u<128||i==="latin1")&&(e=u)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;t=t>>>0,n=n===void 0?this.length:n>>>0,e||(e=0);let s;if(typeof e=="number")for(s=t;s<n;++s)this[s]=e;else{let u=l.isBuffer(e)?e:l.from(e,i),o=u.length;if(o===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(s=0;s<n-t;++s)this[s+t]=u[s%o]}return this};var G={};function we(r,e,t){G[r]=class extends t{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${r}]`,this.stack,delete this.name}get code(){return r}set code(i){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:i,writable:!0})}toString(){return`${this.name} [${r}]: ${this.message}`}}}we("ERR_BUFFER_OUT_OF_BOUNDS",function(r){return r?`${r} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError);we("ERR_INVALID_ARG_TYPE",function(r,e){return`The "${r}" argument must be of type number. Received type ${typeof e}`},TypeError);we("ERR_OUT_OF_RANGE",function(r,e,t){let n=`The value of "${r}" is out of range.`,i=t;return Number.isInteger(t)&&Math.abs(t)>2**32?i=We(String(t)):typeof t=="bigint"&&(i=String(t),(t>BigInt(2)**BigInt(32)||t<-(BigInt(2)**BigInt(32)))&&(i=We(i)),i+="n"),n+=` It must be ${e}. Received ${i}`,n},RangeError);function We(r){let e="",t=r.length,n=r[0]==="-"?1:0;for(;t>=n+4;t-=3)e=`_${r.slice(t-3,t)}${e}`;return`${r.slice(0,t)}${e}`}function Zt(r,e,t){j(e,"offset"),(r[e]===void 0||r[e+t]===void 0)&&K(e,r.length-(t+1))}function tt(r,e,t,n,i,s){if(r>t||r<e){let u=typeof e=="bigint"?"n":"",o;throw s>3?e===0||e===BigInt(0)?o=`>= 0${u} and < 2${u} ** ${(s+1)*8}${u}`:o=`>= -(2${u} ** ${(s+1)*8-1}${u}) and < 2 ** ${(s+1)*8-1}${u}`:o=`>= ${e}${u} and <= ${t}${u}`,new G.ERR_OUT_OF_RANGE("value",o,r)}Zt(n,i,s)}function j(r,e){if(typeof r!="number")throw new G.ERR_INVALID_ARG_TYPE(e,"number",r)}function K(r,e,t){throw Math.floor(r)!==r?(j(r,t),new G.ERR_OUT_OF_RANGE(t||"offset","an integer",r)):e<0?new G.ERR_BUFFER_OUT_OF_BOUNDS:new G.ERR_OUT_OF_RANGE(t||"offset",`>= ${t?1:0} and <= ${e}`,r)}var Qt=/[^+/0-9A-Za-z-_]/g;function er(r){if(r=r.split("=")[0],r=r.trim().replace(Qt,""),r.length<2)return"";for(;r.length%4!==0;)r=r+"=";return r}function he(r,e){e=e||1/0;let t,n=r.length,i=null,s=[];for(let u=0;u<n;++u){if(t=r.charCodeAt(u),t>55295&&t<57344){if(!i){if(t>56319){(e-=3)>-1&&s.push(239,191,189);continue}else if(u+1===n){(e-=3)>-1&&s.push(239,191,189);continue}i=t;continue}if(t<56320){(e-=3)>-1&&s.push(239,191,189),i=t;continue}t=(i-55296<<10|t-56320)+65536}else i&&(e-=3)>-1&&s.push(239,191,189);if(i=null,t<128){if((e-=1)<0)break;s.push(t)}else if(t<2048){if((e-=2)<0)break;s.push(t>>6|192,t&63|128)}else if(t<65536){if((e-=3)<0)break;s.push(t>>12|224,t>>6&63|128,t&63|128)}else if(t<1114112){if((e-=4)<0)break;s.push(t>>18|240,t>>12&63|128,t>>6&63|128,t&63|128)}else throw new Error("Invalid code point")}return s}function tr(r){let e=[];for(let t=0;t<r.length;++t)e.push(r.charCodeAt(t)&255);return e}function rr(r,e){let t,n,i,s=[];for(let u=0;u<r.length&&!((e-=2)<0);++u)t=r.charCodeAt(u),n=t>>8,i=t%256,s.push(i),s.push(n);return s}function rt(r){return fe.toByteArray(er(r))}function Q(r,e,t,n){let i;for(i=0;i<n&&!(i+t>=e.length||i>=r.length);++i)e[i+t]=r[i];return i}function L(r,e){return r instanceof e||r!=null&&r.constructor!=null&&r.constructor.name!=null&&r.constructor.name===e.name}function ye(r){return r!==r}var nr=function(){let r="0123456789abcdef",e=new Array(256);for(let t=0;t<16;++t){let n=t*16;for(let i=0;i<16;++i)e[n+i]=r[t]+r[i]}return e}();function k(r){return typeof BigInt>"u"?ir:r}function ir(){throw new Error("BigInt not supported")}});var ht,gt=(r,e)=>(Object.keys(e).forEach(t=>{e[t]!==void 0&&(r[t]=e[t])}),r),ne=async(r,e)=>{let n=await(await fetch(r,{method:"POST",body:JSON.stringify(e),headers:gt({"Content-Type":"application/json"},{"x-tracker-cache":ht})})).json();if(n.error)throw n.error;return n};var ae=re(xe(),1);var mt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_HASH_KEY||process.env.REACT_APP_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_HASH_KEY||process.env.VITE_SECURE_LOCAL_STORAGE_HASH_KEY:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},wt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_PREFIX||process.env.REACT_APP_SECURE_LOCAL_STORAGE_PREFIX||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_PREFIX||process.env.VITE_SECURE_LOCAL_STORAGE_PREFIX:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},yt=()=>{let r=null;try{typeof process.env<"u"?r=process.env.SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.REACT_APP_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.NEXT_PUBLIC_SECURE_LOCAL_STORAGE_DISABLED_KEYS||process.env.VITE_SECURE_LOCAL_STORAGE_DISABLED_KEYS:console.warn("react-secure-storage : process is not defined! Just a warning!")}catch{return null}return r},_t={getHashKey:mt,getStoragePrefix:wt,getDisabledKeys:yt},Y=_t;var Me=re(ve(),1);var w={USERAGENT:"UserAgent",SCREEN_PRINT:"ScreenPrint",PLUGINS:"Plugins",FONTS:"Fonts",LOCAL_STORAGE:"LocalStorage",SESSION_STORAGE:"SessionStorage",TIMEZONE:"TimeZone",LANGUAGE:"Language",SYSTEM_LANGUAGE:"SystemLanguage",COOKIE:"Cookie",CANVAS:"Canvas",HOSTNAME:"Hostname"},Be=()=>{let r=Y.getDisabledKeys()||"";if(r==="")return[];let e=[w.USERAGENT,w.SCREEN_PRINT,w.PLUGINS,w.FONTS,w.LOCAL_STORAGE,w.SESSION_STORAGE,w.TIMEZONE,w.LANGUAGE,w.SYSTEM_LANGUAGE,w.COOKIE,w.CANVAS,w.HOSTNAME],t=[];return r.split("|").forEach(n=>{n===""?console.log("test"):e.includes(n)?t.push(n):console.warn(`react-secure-storage : ${n} is not present in the available disabled keys options! Please go through the documentation`)}),t};var St=class{getFingerprint(){let r="|",e=Be(),t="";return e.includes(w.USERAGENT)||(t+=navigator.userAgent+r),e.includes(w.HOSTNAME)||(t+=window.location.hostname+r),e.includes(w.SCREEN_PRINT)||(t+=this.getScreenPrint()+r),e.includes(w.PLUGINS)||(t+=this.getPlugins()+r),e.includes(w.FONTS)||(t+=this.getFonts()+r),e.includes(w.LOCAL_STORAGE)||(t+=this.isLocalStorage()+r),e.includes(w.SESSION_STORAGE)||(t+=this.isSessionStorage()+r),e.includes(w.TIMEZONE)||(t+=this.getTimeZone()+r),e.includes(w.LANGUAGE)||(t+=this.getLanguage()+r),e.includes(w.SYSTEM_LANGUAGE)||(t+=this.getSystemLanguage()+r),e.includes(w.COOKIE)||(t+=this.isCookie()+r),e.includes(w.CANVAS)||(t+=this.getCanvasPrint()),t.endsWith(r)&&(t=t.substring(0,t.length-1)),(0,Me.default)(t,256)}getScreenPrint(){return"Color Depth: "+this.getColorDepth()+", Device XDPI: "+this.getDeviceXDPI()+", Device YDPI: "+this.getDeviceYDPI()}getColorDepth(){return window.screen.colorDepth}getCurrentResolution(){return window.screen.width+"x"+window.screen.height}getAvailableResolution(){return window.screen.availWidth+"x"+window.screen.availHeight}getDeviceXDPI(){return""}getDeviceYDPI(){return""}getPlugins(){let r="";for(let e=0;e<navigator.plugins.length;e++)e===navigator.plugins.length-1?r+=navigator.plugins[e].name:r+=navigator.plugins[e].name+", ";return r}getFonts(){return""}isLocalStorage(){try{return!!localStorage}catch{return!0}}isSessionStorage(){try{return!!sessionStorage}catch{return!0}}isCookie(){return navigator.cookieEnabled}getTimeZone(){let r=new Date,e,t,n;return e=String(-(r.getTimezoneOffset()/60)),e<0?(e=e*-1,t=("0"+e).slice(-2),n="-"+t):(t=("0"+e).slice(-2),n="+"+t),n}getLanguage(){return navigator.language}getSystemLanguage(){return navigator.language||window.navigator.language}getCanvasPrint(){let r=document.createElement("canvas"),e;try{e=r.getContext("2d")}catch{return""}let t="ClientJS,org <canvas> 1.0";return e.textBaseline="top",e.font="14px 'Arial'",e.textBaseline="alphabetic",e.fillStyle="#f60",e.fillRect(125,1,62,20),e.fillStyle="#069",e.fillText(t,2,15),e.fillStyle="rgba(102, 204, 0, 0.7)",e.fillText(t,4,17),r.toDataURL()}},bt=new St,Fe=bt;var At="E86E2612010258B35137",xt=()=>{let r=Y.getHashKey()||At;return typeof window>"u"?r:Fe.getFingerprint()+r},se=xt;var vt=(r,e)=>`${r}/visitor/v1/${e}`,Ie=(r,e)=>`${r}/visitor/v2/${e}`,Bt=(r,e)=>`${r}/remember_flow/${e}`,z=async(r,e,t,n,i)=>{let s=sessionStorage.getItem("aesirx-analytics-allow"),u=sessionStorage.getItem("aesirx-analytics-rejected");if(s==="0"||u==="true")return null;let{location:o,document:a}=window,{pathname:c,search:d,origin:f}=o;e=`${f}${c}${d}`,t=t?o.protocol+"//"+o.host+t:a.referrer?a.referrer:window.referer?window.referer==="/"?o.protocol+"//"+o.host:o.protocol+"//"+o.host+window.referer:"",n=window.navigator.userAgent;let h=ae.default.parse(window.navigator.userAgent),p=h?.browser?.name,g=h?.browser?.version??"0",m=window.navigator.userLanguage||window.navigator.language,y=h?.platform?.model??h?.platform?.type,E=window.location.search,v=new URLSearchParams(E),O="",F=Intl.DateTimeFormat().resolvedOptions()?.timeZone;try{let T=se(),M=[];for(let b of v.keys())(b.startsWith("utm_")||b.startsWith("gad_"))&&v.get(b)&&M.push({name:b,value:v.get(b)});i?.length&&i?.forEach(b=>{b?.name&&M.push({name:b?.name,value:b?.value})});let I=await ne(Ie(r,"start"),{fingerprint:T,url:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...t&&(t!==e||a.referrer)&&{referer:t!==e?t?.replace(/^(https?:\/\/)?(www\.)?/,"$1"):a.referrer?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:n,ip:O,browser_name:p,browser_version:g,lang:m,device:y?.includes("iPhone")?"mobile":y?.includes("iPad")?"tablet":y,timezone:F,...M?.length&&{event_name:"visit",event_type:"action",attributes:M}});if(window.aesirxTrackEcommerce==="true"&&sessionStorage.getItem("aesirx-analytics-flow")!==(await I)?.flow_uuid){sessionStorage.setItem("aesirx-analytics-flow",(await I)?.flow_uuid);try{await ne(Bt(window.location.origin,(await I)?.flow_uuid),{})}catch(b){console.log("Remember Flow Error",b)}}return I}catch(T){console.error("Analytics Error: ",T)}},C=async(r,e,t,n)=>{let i=sessionStorage.getItem("aesirx-analytics-allow"),s=sessionStorage.getItem("aesirx-analytics-rejected");if(i==="0"||s==="true")return null;let{location:u,document:o}=window;e=e?u.protocol+"//"+u.host+e:o.referrer?o.referrer:window.referer?window.referer==="/"?u.protocol+"//"+u.host:u.protocol+"//"+u.host+window.referer:"";let a=n||u.protocol+"//"+u.host+u.pathname,c=window.navigator.userAgent,d=ae.default.parse(window.navigator.userAgent),f=d?.browser?.name,h=d?.browser?.version??"0",p=window.navigator.userLanguage||window.navigator.language,g=d?.platform?.model??d?.platform?.type,m="",y=Intl.DateTimeFormat().resolvedOptions()?.timeZone,E=window.location.search,v=new URLSearchParams(E),O=t?.attributes,F=[];for(let _ of v.keys())(_.startsWith("utm_")||_.startsWith("gad_"))&&v.get(_)&&F.push({name:_,value:v.get(_)});O?.length&&O?.forEach(_=>{_?.name&&F.push({name:_?.name,value:_?.value})}),t.attributes=F;let T=se(),M={type:"application/json"},I=new Blob([JSON.stringify({fingerprint:T,url:a?.replace(/^(https?:\/\/)?(www\.)?/,"$1"),...e!=="/"&&e&&{referer:e?.replace(/^(https?:\/\/)?(www\.)?/,"$1")},user_agent:c,ip:m,browser_name:f,browser_version:h,lang:p,timezone:y,device:g?.includes("iPhone")?"mobile":g?.includes("iPad")?"tablet":g,...t})],M);return navigator.sendBeacon(Ie(r,"start"),I)},Te=(r,e,t)=>{if(e&&t){let n={event_uuid:e,visitor_uuid:t},i={type:"application/json"},s=new Blob([JSON.stringify(n)],i);navigator.sendBeacon(vt(r,"end"),s)}},Pe=r=>{document.addEventListener("visibilitychange",async()=>{if(document.visibilityState==="hidden"&&Te(r,window.event_uuid,window.visitor_uuid),document.visibilityState==="visible"){let e=await z(r,"","","",window.attributes);window.event_uuid=e?.event_uuid}}),window.addEventListener("pagehide",e=>{e.persisted&&Te(r,window.event_uuid,window.visitor_uuid)},!1)};var Le=window.aesirx1stparty?window.aesirx1stparty:"",J=Le?Le.replace(/\/$/,""):"",Oe=()=>{Array.from(document.querySelectorAll(".cart:not(.variations_form) .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value;i.classList.contains("disabled")||n(s,i.value,u)})}),Array.from(document.querySelectorAll(".add_to_cart_button.product_type_simple")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".woocommerce-loop-product__title")?.innerText;i.classList.contains("disabled")||n(s,i.dataset.product_id,"1")})}),Array.from(document.querySelectorAll(".cart.variations_form .single_add_to_cart_button")).forEach(i=>{i.addEventListener("click",()=>{let s=i.closest(".product").querySelector(".product_title")?.innerText,u=i.closest(".product").querySelector('input[name="quantity"]').value,o=i.closest(".product").querySelector('input[name="product_id"]').value,a=i.closest(".product").querySelector('input[name="variation_id"]').value;i.classList.contains("disabled")||n(s,o,u,a)})});let n=(i,s,u=null,o=null)=>{let a={};a.product_name=i,a.product_id=s,o&&(a.variant_id=o),a.quantity=u,C(J,"",{event_name:"Add to cart",event_type:"submit",attributes:[{name:"woo.addtocart",value:JSON.stringify(a)}]})}},Re=()=>{Array.from(document.querySelectorAll('form[role="search"] button[type="submit"]')).forEach(t=>{t.addEventListener("click",()=>{let n=t.closest("form").querySelector('input[type="search"]')?.value;!t.classList.contains("disabled")&&t.closest("form").querySelector('input[name="post_type"]')?.value==="product"&&e(n)})});let e=t=>{let n=Array();ue(n,"1","analytics_woocommerce"),ue(n,t,"wooocommerce_search"),C(J,"",{event_name:"Search product",event_type:"submit",attributes:n})}},Ne=()=>{document.querySelector("form.woocommerce-checkout")?.addEventListener("submit",function(r){jQuery("form.woocommerce-checkout").on("checkout_place_order",function(){let e=r.target,t={},n=[];e.querySelectorAll(".cart_item").forEach(A=>{let ee=A.querySelector(".product-name"),Se="";for(let R=0;R<ee.childNodes.length;++R)ee.childNodes[R].nodeType===Node.TEXT_NODE&&(Se+=ee.childNodes[R]?.textContent);let st=A.querySelector(".product-quantity").innerText?.replace("\xD7",""),te=A.querySelector(".woocommerce-Price-amount bdi"),be="";for(let R=0;R<te.childNodes.length;++R)te.childNodes[R].nodeType===Node.TEXT_NODE&&(be+=te.childNodes[R]?.textContent);let at=A.querySelector(".woocommerce-Price-amount .woocommerce-Price-currencySymbol");n.push({name:Se?.trim(),quantity:st?.trim(),price:be?.trim(),symbol:at?.innerText})}),t.products=n;let s=e.querySelector(".order-total .woocommerce-Price-amount bdi"),u="";for(let A=0;A<s.childNodes.length;++A)s.childNodes[A].nodeType===Node.TEXT_NODE&&(u+=s.childNodes[A]?.textContent);t["order-total"]=u?.trim();let o=e.querySelector('input[name="billing_first_name"]'),a=e.querySelector('input[name="billing_last_name"]'),c=e.querySelector('input[name="billing_company"]'),d=e.querySelector('input[name="billing_address_1"]'),f=e.querySelector('input[name="billing_address_2"]'),h=e.querySelector('input[name="billing_postcode"]'),p=e.querySelector('input[name="billing_city"]'),g=e.querySelector('input[name="billing_state"]'),m=e.querySelector('input[name="billing_phone"]'),y=e.querySelector('input[name="billing_email"]'),E=e.querySelector('input[name="shipping_first_name"]'),v=e.querySelector('input[name="shipping_last_name"]'),O=e.querySelector('input[name="shipping_company"]'),F=e.querySelector('input[name="shipping_address_1"]'),T=e.querySelector('input[name="shipping_address_2"]'),M=e.querySelector('input[name="shipping_postcode"]'),I=e.querySelector('input[name="shipping_city"]'),b=e.querySelector('input[name="shipping_state"]'),_=e.querySelectorAll('input[name="shipping_method[0]"]'),q=e.querySelectorAll('input[name="payment_method"]'),ot=e.querySelector('input[name="mailpoet_woocommerce_checkout_optin"]'),_e="";q?.forEach(A=>{A.checked&&(_e=A?.value)});let Ee="";_?.forEach(A=>{A.checked&&(Ee=A?.value)}),t.billing_first_name=o?.value,t.billing_last_name=a?.value,t.billing_company=c?.value,t.billing_address_1=d?.value,t.billing_address_2=f?.value,t.billing_postcode=h?.value,t.billing_city=p?.value,t.billing_state=g?.value,t.billing_phone=m?.value,t.billing_email=y?.value,t.shipping_first_name=E.value,t.shipping_last_name=v.value,t.shipping_company=O?.value,t.shipping_address_1=F?.value,t.shipping_address_2=T?.value,t.shipping_postcode=M?.value,t.shipping_city=I?.value,t.shipping_state=b?.value,t.shipping_method=Ee,t.payment_method=_e,t.mailpoet_woocommerce_checkout_optin=ot?.value,C(J,"",{event_name:"Checkout",event_type:"submit",attributes:[{name:"woo.checkout",value:JSON.stringify(t)}]})})})},Ce=()=>{if(document.body.classList.contains("woocommerce")&&document.body.classList.contains("single-product")){let r=document.querySelector(".wp-block-post-title")?.innerText;if(r){let e=Array();ue(e,r,"woo.view_product"),C(J,"",{event_name:"View product",event_type:"view",attributes:e})}}},ue=(r,e,t)=>{e&&r.push({name:t,value:e??""})};var it=re(nt(),1);window.Buffer=it.Buffer;var or=()=>{window["aesirx-analytics-enable"]="true";let r=(p,g,m)=>{let y=p[g];return(...E)=>(m.apply(null,E),y.apply(p,E))},e=async p=>{if(!p)return;let{pathname:g,search:m,origin:y}=location;p=`${y}${g}${m}`;let E=p.toString();E.substring(0,4)==="http"?p="/"+E.split("/").splice(3).join("/"):p=E};if(!window.tracker){let p=g=>g;p.startTracker=z,window.tracker=p}history.pushState=r(history,"pushState",e),history.replaceState=r(history,"replaceState",e);let t=window.aesirx1stparty?window.aesirx1stparty:"",n=t?t.replace(/\/$/,""):"",{currentScript:i}=document;if(!i)return;let a=i.getAttribute.bind(i)("data-"+"aesirx-event-name")!=="false",c="[data-aesirx-event-name]",d=async()=>{if(document.readyState==="complete"){if(window["aesirx-consent-enable"]!=="true"){let p=await z(n);p&&(window.event_uuid=p.event_uuid,window.visitor_uuid=p.visitor_uuid)}a&&f(document)}};document.addEventListener("readystatechange",d,!0),Pe(n);let f=p=>{let g=p.querySelectorAll(c);Array.prototype.forEach.call(g,h)},h=p=>{p.addEventListener("click",()=>{let g=[];Object.keys(p.dataset).forEach(m=>{m.startsWith("aesirxEventAttribute")&&g.push({name:m.replace("aesirxEventAttribute","").toLowerCase(),value:p.dataset[m]})}),C(n,"",{event_name:p.dataset.aesirxEventName,event_type:p.dataset.aesirxEventType,attributes:g})},!0)};d()},sr=()=>{Oe(),Re(),Ne(),Ce()};or();document.addEventListener("DOMContentLoaded",()=>{(document.body.classList.contains("woocommerce-js")||document.body.classList.contains("woocommerce-no-js"))&&sr()});window.trackEventAnalytics=C;})();
2
2
  /*! Bundled license information:
3
3
 
4
4
  ieee754/index.js:
package/dist/index.d.ts CHANGED
@@ -23,7 +23,7 @@ interface AnalyticsReact {
23
23
  declare const AnalyticsReact: ({ location, history, children }: AnalyticsReact) => React.JSX.Element;
24
24
 
25
25
  declare const startTracker: (endpoint: string, url?: string, referer?: string, user_agent?: string, attributesVisit?: any) => Promise<any>;
26
- declare const trackEvent: (endpoint: string, referer?: string, data?: object, _url?: string) => Promise<boolean>;
26
+ declare const trackEvent: (endpoint: string, referer?: string, data?: any, _url?: string) => Promise<boolean>;
27
27
  declare const endTrackerVisibilityState: (endPoint: string) => void;
28
28
 
29
29
  interface Props {
package/dist/index.js CHANGED
@@ -443,6 +443,21 @@ var trackEvent = async (endpoint, referer, data, _url) => {
443
443
  const device = browser?.platform?.model ?? browser?.platform?.type;
444
444
  const ip = "";
445
445
  const userTimeZone = Intl.DateTimeFormat().resolvedOptions()?.timeZone;
446
+ const queryString = window.location.search;
447
+ const urlParams = new URLSearchParams(queryString);
448
+ const attributesVisit = data?.attributes;
449
+ const attributes = [];
450
+ for (const key of urlParams.keys()) {
451
+ if (key.startsWith("utm_") || key.startsWith("gad_")) {
452
+ urlParams.get(key) && attributes.push({ name: key, value: urlParams.get(key) });
453
+ }
454
+ }
455
+ if (attributesVisit?.length) {
456
+ attributesVisit?.forEach((element) => {
457
+ element?.name && attributes.push({ name: element?.name, value: element?.value });
458
+ });
459
+ }
460
+ data.attributes = attributes;
446
461
  const fingerprint = fingerprint_default();
447
462
  const headers = { type: "application/json" };
448
463
  const blobData = new Blob(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aesirx-analytics",
3
- "version": "2.4.3",
3
+ "version": "2.4.4",
4
4
  "license": "GPL-3.0-only",
5
5
  "author": "AesirX",
6
6
  "repository": "https://gitlab.redweb.dk/aesirx/analytics",