1(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[3],{UcKQ:function(e,t,n){(function(t,n,i){var o;o=function(){"use strict";function e(t){return(e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(t)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),i.forEach((function(t){r(e,t,n[t])}))}return e}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var u,c,p,l;function d(){return"object"===typeof window&&void 0!==(null===window||void 0===window?void 0:window.document)}!function(e){e.IDENTIFY="$identify"}(u||(u={})),function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preinsert",e.POSTINSERT="$postinsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"}(c||(c={})),function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose"}(p||(p={})),function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed"}(l||(l={})),function(e){e.fromHttpCode=function(t){return t>=200&&t<300?e.Success:429===t?e.RateLimit:413===t?e.PayloadTooLarge:t>=400&&t<500?e.Invalid:t>=500?e.Failed:e.Unknown}}(l||(l={})),l.Skipped;var h={},f=function(){return function(){var e;return"object"===typeof t&&void 0!==(null===(e=null===t||void 0===t?void 0:t.versions)||void 0===e?void 0:e.node)}()?n:"undefined"!==typeof window?window:"undefined"!==typeof self?self:h},v=function(){var e=f();return e.__AMPLITUDE__=e.__AMPLITUDE__||{},e.__AMPLITUDE__}(),g="Amplitude Logger ",y=function(){function e(){this._logLevel=0}return e.prototype.disable=function(){this._logLevel=0},e.prototype.enable=function(e){void 0===e&&(e=p.Warn),this._logLevel=e},e.prototype.log=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel<p.Verbose||n.console.log(g+"[Log]: "+e.join(" "))},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel<p.Warn||n.console.warn(g+"[Warn]: "+e.join(" "))},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this._logLevel<p.Error||n.console.error(g+"[Error]: "+e.join(" "))},e}(),m=(v.logger||(v.logger=new y),"$default_instance"),w=2,_=4096,b=1e3,I="$identify",S="$groupidentify",k=0,E=1,O=2,x=3,N=4,A=5,C=6,T=7,P="amp_cookie_test",j="amp",R="",D="cookies",q="none",U="localStorage",L="sessionStorage",M="revenue_amount",K="$productId",z="$quantity",B="$price",F="$revenueType",V="amp_device_id",G="referrer",W="utm_source",$="utm_medium",J="utm_campaign",H="utm_term",Q="utm_content",X="[Amplitude] Attribution Captured",Z="http",Y="beacon",ee=function(e){for(var t="",n=0;n<e.length;n++){var i=e.charCodeAt(n);i<128?t+=String.fromCharCode(i):i>127&&i<2048?(t+=String.fromCharCode(i>>6|192),t+=String.fromCharCode(63&i|128)):(t+=String.fromCharCode(i>>12|224),t+=String.fromCharCode(i>>6&63|128),t+=String.fromCharCode(63&i|128))}return t},te=function(e){for(var t="",n=0,i=0,o=0,r=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(o=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&o),n+=2):(o=e.charCodeAt(n+1),r=e.charCodeAt(n+2),t+=String.fromCharCode((1
vendor: 5,598 bytes, line 1
15&i)<<12|(63&o)<<6|63&r),n+=3);return t},ne={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(t){}return ne._encode(e)},_encode:function(e){var t,n,i,o,r,s,a,u="",c=0;for(e=ee(e);c<e.length;)o=(t=e.charCodeAt(c++))>>2,r=(3&t)<<4|(n=e.charCodeAt(c++))>>4,s=(15&n)<<2|(i=e.charCodeAt(c++))>>6,a=63&i,isNaN(n)?s=a=64:isNaN(i)&&(a=64),u=u+ne._keyStr.charAt(o)+ne._keyStr.charAt(r)+ne._keyStr.charAt(s)+ne._keyStr.charAt(a);return u},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(t){}return ne._decode(e)},_decode:function(e){var t,n,i,o,r,s,a="",u=0;for(e=e.replace(/[^A-Za-z0-9+/=]/g,"");u<e.length;)t=ne._keyStr.indexOf(e.charAt(u++))<<2|(o=ne._keyStr.indexOf(e.charAt(u++)))>>4,n=(15&o)<<4|(r=ne._keyStr.indexOf(e.charAt(u++)))>>2,i=(3&r)<<6|(s=ne._keyStr.indexOf(e.charAt(u++))),a+=String.fromCharCode(t),64!==r&&(a+=String.fromCharCode(n)),64!==s&&(a+=String.fromCharCode(i));return a=te(a)}},ie=Object.prototype.toString;function oe(t){switch(ie.call(t)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===t?"null":void 0===t?"undefined":t!==t?"nan":t&&1===t.nodeType?"element":"undefined"!==typeof i&&"function"===typeof i.isBuffer&&i.isBuffer(t)?"buffer":e(t=t.valueOf?t.valueOf():Object.prototype.valueOf.apply(t))}var re,se={DISABLE:0,ERROR:1,WARN:2,INFO:3},ae=se.WARN,ue={error:function(e){ae>=se.ERROR&&ce(e)},warn:function(e){ae>=se.WARN&&ce(e)},info:function(e){ae>=se.INFO&&ce(e)}},ce=function(e){try{console.log("[Amplitude] "+e)}catch(t){}},pe=function(e){return"string"===oe(e)&&e.length>_?e.substring(0,_):e},le=function(e,t,n){return oe(e)===n||(ue.error("Invalid "+t+" input type. Expected "+n+" but received "+oe(e)),!1)},de=function(e){var t=oe(e);if("object"!==t)return ue.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>b)return ue.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=i,r=oe(o);"string"!==r&&(o=String(o),ue.warn("WARNING: Non-string property key, received type "+r+', coercing to string "'+o+'"'));var s=fe(o,e[i]);null!==s&&(n[o]=s)}return n},he=["nan","function","arguments","regexp","element"],fe=function e(t,n){var i=oe(n);if(-1!==he.indexOf(i))ue.warn('WARNING: Property key "'+t+'" with invalid value type '+i+", ignoring"),n=null;else if("undefined"===i)n=null;else if("error"===i)n=String(n),ue.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===i){for(var o=[],r=0;r<n.length;r++){var s=n[r],a=oe(s);"array"!==a?"object"===a?o.push(de(s)):o.push(e(t,s)):ue.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping")}n=o}else"object"===i&&(n=de(n));return n},ve=function(e,t){var n=oe(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),ue.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var i=[],o=0;o<t.length;o++){var r=t[o],s=oe(r);"array"!==s&&"object"!==s?"string"===s?i.push(r):"date"!==s&&"number"!==s&&"boolean"!==s||(r=String(r),ue.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+r+'"'),i.push(r)):ue.warn("WARNING: Skipping nested "+s+" in array groupName")}return i}ue.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},ge=function(e){Object.prototype.hasOwnProperty.call(se,e)&&(ae=se[e])},ye=ue,me=function(e){return!e||0===e.length},we=function(e,t){e=e.replace(/[[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},_e=function e(t){if("array"===oe(t))for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if("object"===oe(t))for(var i in t)i in t&&(t[i]=e(t[i]));else t=pe(t);return t},be=function(e){var t=oe(e);if("object"!==t)return ue.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=i,r=oe(o);"string"!==r&&(o=String(o),ue.warn("WARNING: Non-string groupType, received type "+r+', coercing to string "'+o+'"'));var s=ve(o,e[i]);null!==s&&(n[o]=s)}return n},Ie=le,Se=de,ke=function(e){return!!le(e,"deviceId","string")&&(!e.includes(".")||(ue.error("Device IDs may not contain '.' characters. Value will be ignored: \"".concat(e,'"')),!1))},Ee=function(e){return!!le(e,"transport","string")&&(e!==Z&&e!==Y?(ue.error("transport value must be one of '".concat(Y,"' or '").concat(Z,"'")),!1):!(e!==Z&&!navigator.sendBeacon)||(ue.error("browser does not support sendBeacon, so transport must be HTTP"),!1))},Oe=function(){return window.location},xe=function(){for(var e="",t=0;t<22;++t)e+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_".charAt(Math.floor(64*Math.random()));return e},Ne=function(e){try{for(var t=document.cookie.split(";"),n=null,i=0;i<t.length;i++){for(var o=t[i];" "===o.charAt(0);)o=o.substring(1,o.length);if(0===o.indexOf(e)){n=o.substring(e.length,o.length);break}}return n}catch(r){return null}},Ae=function(e,t,n){var i=null!==t?n.expirationDays:-1;if(i){var o=new Date;o.setTime(o.getTime()+24*i*60*60*1e3),i=o}
1var r=e+"="+t;i&&(r+="; expires="+i.toUTCString()),r+="; path=/",n.domain&&(r+="; domain="+n.domain),n.secure&&(r+="; Secure"),n.sameSite&&(r+="; SameSite="+n.sameSite),document.cookie=r},Ce=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=t.split(".")[N];return n&&(e=parseInt(n,32)),e||(ye.warn("unable to parse malformed cookie: ".concat(t)),0)},Te=Ae,Pe=Ne,je=function(e){try{var t=document.cookie.split(";").map((function(e){return e.trimStart()})),n=[],i=!0,o=!1,r=void 0;try{for(var s,a=t[Symbol.iterator]();!(i=(s=a.next()).done);i=!0){for(var u=s.value;" "===u.charAt(0);)u=u.substring(1);0===u.indexOf(e)&&n.push(u.substring(e.length))}}catch(c){o=!0,r=c}finally{try{i||null==a.return||a.return()}finally{if(o)throw r}}return n}catch(p){return[]}},Re=function(e){return a(e).sort((function(e,t){var n=Ce(e);return Ce(t)-n}))},De=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=P+xe(),n=!1;try{var i=String(new Date);Ae(t,i,e),ye.info("Testing if cookies available"),n=Ne(t+"=")===i}catch(o){ye.warn('Error thrown when checking for cookies. Reason: "'.concat(o,'"'))}finally{ye.info("Cleaning up cookies availability test"),Ae(t,null,e)}return n},qe=function(e){var t=document.createElement("a");return t.href=e,t.hostname||location.hostname},Ue=function(e){for(var t=qe(e).split("."),n=[],i="_tldtest_"+xe(),o=t.length-2;o>=0;--o)n.push(t.slice(o).join("."));for(var r=0;r<n.length;++r){var s=n[r],a={domain:"."+s};if(Te(i,1,a),Pe(i))return Te(i,null,a),s}return""},Le={expirationDays:void 0,domain:void 0},Me=function(e){var t="";return Le.domain&&(t="."===Le.domain.charAt(0)?Le.domain.substring(1):Le.domain),e+t},Ke=function(e){var t=Me(e)+"=",n=Pe(t);try{if(n)return JSON.parse(ne.decode(n))}catch(i){return null}return null},ze=function(e,t){try{return Te(Me(e),ne.encode(JSON.stringify(t)),Le),!0}catch(n){return!1}},Be=function(e){try{return Te(Me(e),null,Le),!0}catch(t){return!1}},Fe={reset:function(){Le={expirationDays:void 0,domain:void 0}},options:function(e){if(0===arguments.length)return Le;e=e||{},Le.expirationDays=e.expirationDays,Le.secure=e.secure,Le.sameSite=e.sameSite;var t=me(e.domain)?"."+Ue(Oe().href):e.domain,n=Math.random();Le.domain=t,ze("amplitude_test",n);var i=Ke("amplitude_test");return i&&i===n||(t=null),Be("amplitude_test"),Le.domain=t,Le},get:Ke,set:ze,remove:Be,setRaw:function(e,t){try{return Te(Me(e),t,Le),!0}catch(n){return!1}},getRaw:function(e){var t=Me(e)+"=";return Pe(t)}};if(function(){var e,t=new Date;try{return window.localStorage.setItem(t,t),e=window.localStorage.getItem(t)===String(t),window.localStorage.removeItem(t),e}catch(n){}return!1}())re=window.localStorage;else if(window.globalStorage)try{re=window.globalStorage[window.location.hostname]}catch(Ct){}else if("undefined"!==typeof document){var Ve=document.createElement("div"),Ge="localStorage";Ve.style.display="none",document.getElementsByTagName("head")[0].appendChild(Ve),Ve.addBehavior&&(Ve.addBehavior("#default#userdata"),re={length:0,setItem:function(e,t){Ve.load(Ge),Ve.getAttribute(e)||this.length++,Ve.setAttribute(e,t),Ve.save(Ge)},getItem:function(e){return Ve.load(Ge),Ve.getAttribute(e)},removeItem:function(e){Ve.load(Ge),Ve.getAttribute(e)&&this.length--,Ve.removeAttribute(e),Ve.save(Ge)},clear:function(){Ve.load(Ge);for(var e,t=0;e=Ve.XMLDocument.documentElement.attributes[t++];)Ve.removeAttribute(e.name);Ve.save(Ge),this.length=0},key:function(e){return Ve.load(Ge),Ve.XMLDocument.documentElement.attributes[e]}},Ve.load(Ge),re.length=Ve.XMLDocument.documentElement.attributes.length)}re||(re={length:0,setItem:function(e,t){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}});var We,$e=re,Je=function(){this.storage=null};Je.prototype.getStorage=function(){return null!==this.storage||(De()?this.storage=Fe:this.storage={_options:{expirationDays:void 0,domain:void 0,secure:!1},reset:function(){this._options={expirationDays:void 0,domain:void 0,secure:!1}},options:function(e){return 0===arguments.length?this._options:(e=e||{},this._options.expirationDays=e.expirationDays||this._options.expirationDays,this._options.domain=e.domain||this._options.domain||window&&window.location&&window.location.hostname,this._options.secure=e.secure||!1)},get:function(e){try{return JSON.parse($e.getItem("amp_cookiestore_"+e))}catch(Ct){}return null},set:function(e,t){try{return $e.setItem("amp_cookiestore_"+e,JSON.stringify(t)),!0}catch(Ct){}return!1},remove:function(e){try{$e.removeItem("amp_cookiestore_"+e)}catch(Ct){return!1}}}),this.storage};var He=(r(We={},D,!0),r(We,q,!0),r(We,U,!0),r(We,L,!0),We),Qe=function(){function e(t){var n=t.storageKey,i=t.disableCookies,o=t.domain,r=t.secure,s=t.sameSite,a=t.expirationDays,u=t.storage;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageKey=n,this.domain=o,this.secure=r,this.sameSite=s,this.expirationDays=a,this.cookieDomain="";var c=Ue(Oe().href);if(this.cookieDomain=o||(c?"."+c:null),He[u])this.storage=u;else{var p=i||!De({domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays});this.storage=p?U:D}}var t,n,i;return t=e,(n=[{key:"getCookieStorageKey",value:function(){if(!this.domain)return this.storageKey;var e="."===this.domain.charAt(0)?this.domain.substring(1):this.domain;return"".concat(this.storageKey).concat(e?"_".concat(e):"")}},{key:"save",value:function(e){var t=e.deviceId,n=e.userId,i=e.optOut,o=e.sessionId,r=e.lastEventTime,s=e.eventId,a=e.identifyId,u=e.sequenceNumber;if(this.storage!==q){var c=[t,ne.encode(n||""),i?"1":"",o?o.toString(32):"0",r?r.toString(32):"0",s?s.toString(32):"0",a?a.toString(32):"0",u?u.toString(32):"0"].join(".");switch(this.storage){case L:window.sessionStorage&&window.sessionStorage.setItem(this.storageKey,c);break;case U:$e.setItem(this.storageKey,c);break;case D:this.saveCookie(c)}}}},{key:"saveCookie",value:function(e){Te(this.getCookieStorageKey(),e,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:this.expirationDays})}},{key:"load",value:function(){var e,t=this;if(this.storage===D){var n=this.getCookieStorageKey()+"=",i=je(n);if(0===i.length||1===i.length)e=i[0];else{var o=Re(i)[0];
1i.forEach((function(){return Te(t.getCookieStorageKey(),null,{})})),this.saveCookie(o),e=Pe(n)}}if(e||(e=$e.getItem(this.storageKey)),!e)try{e=window.sessionStorage&&window.sessionStorage.getItem(this.storageKey)}catch(Ct){ye.info('window.sessionStorage unavailable. Reason: "'.concat(Ct,'"'))}if(!e)return null;var r=e.split("."),s=null;if(r[E])try{s=ne.decode(r[E])}catch(Ct){s=null}return{deviceId:r[k],userId:s,optOut:"1"===r[O],sessionId:parseInt(r[x],32),lastEventTime:parseInt(r[N],32),eventId:parseInt(r[A],32),identifyId:parseInt(r[C],32),sequenceNumber:parseInt(r[T],32)}}},{key:"clear",value:function(){var e;if(this.storage===D&&(e=Pe(this.getCookieStorageKey()+"="),Te(this.getCookieStorageKey(),null,{domain:this.cookieDomain,secure:this.secure,sameSite:this.sameSite,expirationDays:0})),e||(e=$e.getItem(this.storageKey),$e.clear()),!e)try{e=window.sessionStorage&&window.sessionStorage.getItem(this.storageKey),window.sessionStorage.clear()}catch(Ct){ye.info('window.sessionStorage unavailable. Reason: "'.concat(Ct,'"'))}return!!e}}])&&o(t.prototype,n),i&&o(t,i),e}(),Xe=function(){this.userPropertiesOperations={},this.properties=[]};Xe.prototype.add=function(e,t){return"number"===oe(t)||"string"===oe(t)?this._addOperation("$add",e,t):ye.error("Unsupported type for value: "+oe(t)+", expecting number or string"),this},Xe.prototype.append=function(e,t){return this._addOperation("$append",e,t),this},Xe.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,"$clearAll")||ye.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations.$clearAll="-",this)},Xe.prototype.prepend=function(e,t){return this._addOperation("$prepend",e,t),this},Xe.prototype.set=function(e,t){return this._addOperation("$set",e,t),this},Xe.prototype.setOnce=function(e,t){return this._addOperation("$setOnce",e,t),this},Xe.prototype.unset=function(e){return this._addOperation("$unset",e,"-"),this},Xe.prototype.preInsert=function(e,t){return this._addOperation("$preInsert",e,t),this},Xe.prototype.postInsert=function(e,t){return this._addOperation("$postInsert",e,t),this},Xe.prototype.remove=function(e,t){return this._addOperation("$remove",e,t),this},Xe.prototype._addOperation=function(e,t,n){Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,"$clearAll")?ye.error("This identify already contains a $clearAll operation, skipping operation "+e):-1===this.properties.indexOf(t)?(Object.prototype.hasOwnProperty.call(this.userPropertiesOperations,e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)):ye.error('User property "'+t+'" already used in this identify, skipping operation '+e)};var Ze="undefined"!==typeof window?window:"undefined"!==typeof n?n:"undefined"!==typeof self?self:{};function Ye(e,t){return e(t={exports:{}},t.exports),t.exports}var et=Ye((function(e){!function(t){function n(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function i(e,t,i,o,r,s){return n((a=n(n(t,e),n(o,s)))<<(u=r)|a>>>32-u,i);var a,u}function o(e,t,n,o,r,s,a){return i(t&n|~t&o,e,t,r,s,a)}function r(e,t,n,o,r,s,a){return i(t&o|n&~o,e,t,r,s,a)}function s(e,t,n,o,r,s,a){return i(t^n^o,e,t,r,s,a)}function a(e,t,n,o,r,s,a){return i(n^(t|~o),e,t,r,s,a)}function u(e,t){var i,u,c,p,l;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var d=1732584193,h=-271733879,f=-1732584194,v=271733878;for(i=0;i<e.length;i+=16)u=d,c=h,p=f,l=v,d=o(d,h,f,v,e[i],7,-680876936),v=o(v,d,h,f,e[i+1],12,-389564586),f=o(f,v,d,h,e[i+2],17,606105819),h=o(h,f,v,d,e[i+3],22,-1044525330),d=o(d,h,f,v,e[i+4],7,-176418897),v=o(v,d,h,f,e[i+5],12,1200080426),f=o(f,v,d,h,e[i+6],17,-1473231341),h=o(h,f,v,d,e[i+7],22,-45705983),d=o(d,h,f,v,e[i+8],7,1770035416),v=o(v,d,h,f,e[i+9],12,-1958414417),f=o(f,v,d,h,e[i+10],17,-42063),h=o(h,f,v,d,e[i+11],22,-1990404162),d=o(d,h,f,v,e[i+12],7,1804603682),v=o(v,d,h,f,e[i+13],12,-40341101),f=o(f,v,d,h,e[i+14],17,-1502002290),d=r(d,h=o(h,f,v,d,e[i+15],22,1236535329),f,v,e[i+1],5,-165796510),v=r(v,d,h,f,e[i+6],9,-1069501632),f=r(f,v,d,h,e[i+11],14,643717713),h=r(h,f,v,d,e[i],20,-373897302),d=r(d,h,f,v,e[i+5],5,-701558691),v=r(v,d,h,f,e[i+10],9,38016083),f=r(f,v,d,h,e[i+15],14,-660478335),h=r(h,f,v,d,e[i+4],20,-405537848),d=r(d,h,f,v,e[i+9],5,568446438),v=r(v,d,h,f,e[i+14],9,-1019803690),f=r(f,v,d,h,e[i+3],14,-187363961),h=r(h,f,v,d,e[i+8],20,1163531501),d=r(d,h,f,v,e[i+13],5,-1444681467),v=r(v,d,h,f,e[i+2],9,-51403784),f=r(f,v,d,h,e[i+7],14,1735328473),d=s(d,h=r(h,f,v,d,e[i+12],20,-1926607734),f,v,e[i+5],4,-378558),v=s(v,d,h,f,e[i+8],11,-2022574463),f=s(f,v,d,h,e[i+11],16,1839030562),h=s(h,f,v,d,e[i+14],23,-35309556),d=s(d,h,f,v,e[i+1],4,-1530992060),v=s(v,d,h,f,e[i+4],11,1272893353),f=s(f,v,d,h,e[i+7],16,-155497632),h=s(h,f,v,d,e[i+10],23,-1094730640),d=s(d,h,f,v,e[i+13],4,681279174),v=s(v,d,h,f,e[i],11,-358537222),f=s(f,v,d,h,e[i+3],16,-722521979),h=s(h,f,v,d,e[i+6],23,76029189),d=s(d,h,f,v,e[i+9],4,-640364487),v=s(v,d,h,f,e[i+12],11,-421815835),f=s(f,v,d,h,e[i+15],16,530742520),d=a(d,h=s(h,f,v,d,e[i+2],23,-995338651),f,v,e[i],6,-198630844),v=a(v,d,h,f,e[i+7],10,1126891415),f=a(f,v,d,h,e[i+14],15,-1416354905),h=a(h,f,v,d,e[i+5],21,-57434055),d=a(d,h,f,v,e[i+12],
16,1700485571),v=a(v,d,h,f,e[i+3],10,-1894986606),f=a(f,v,d,h,e[i+10],15,-1051523),h=a(h,f,v,d,e[i+1],21,-2054922799),d=a(d,h,f,v,e[i+8],6,1873313359),v=a(v,d,h,f,e[i+15],10,-30611744),f=a(f,v,d,h,e[i+6],15,-1560198380),h=a(h,f,v,d,e[i+13],21,1309151649),d=a(d,h,f,v,e[i+4],6,-145523070),v=a(v,d,h,f,e[i+11],10,-1120210379),f=a(f,v,d,h,e[i+2],15,718787259),h=a(h,f,v,d,e[i+9],21,-343485551),d=n(d,u),h=n(h,c),f=n(f,p),v=n(v,l);return[d,h,f,v]}function c(e){var t,n="",i=32*e.length;for(t=0;t<i;t+=8)n+=String.fromCharCode(e[t>>5]>>>t%32&255);return n}function p(e){var t,n=[];for(n[(e.length>>2)-1]=void 0,t=0;t<n.length;t+=1)n[t]=0;var i=8*e.length;for(t=0;t<i;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<t%32;return n}function l(e){var t,n,i="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),i+="0123456789abcdef".charAt(t>>>4&15)+"0123456789abcdef".charAt(15&t);return i}function d(e){return unescape(encodeURIComponent(e))}function h(e){return function(e){return c(u(p(e),8*e.length))}(d(e))}function f(e,t){return function(e,t){var n,i,o=p(e),r=[],s=[];for(r[15]=s[15]=void 0,o.length>16&&(o=u(o,8*e.length)),n=0;n<16;n+=1)r[n]=909522486^o[n],s[n]=1549556828^o[n];return i=u(r.concat(p(t)),512+8*t.length),c(u(s.concat(i),640))}(d(e),d(t))}function v(e,t,n){return t?n?f(t,e):l(f(t,e)):n?h(e):l(h(e))}e.exports?e.exports=v:t.md5=v}(Ze)})),tt=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,it=Object.prototype.propertyIsEnumerable;function ot(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}var rt=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach((function(e){i[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var n,i,o=ot(e),r=1;r<arguments.length;r++){for(var s in n=Object(arguments[r]))nt.call(n,s)&&(o[s]=n[s]);if(tt){i=tt(n);for(var a=0;a<i.length;a++)it.call(n,i[a])&&(o[i[a]]=n[i[a]])}}return o};function st(e,t){return t.encode?t.strict?encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})):encodeURIComponent(e):e}new RegExp("%[a-f0-9]{2}","gi"),new RegExp("(%[a-f0-9]{2})+","gi");var at=function(e,t){!1===(t=rt({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=function(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[st(t,e),"[",i,"]"].join(""):[st(t,e),"[",st(i,e),"]=",st(n,e)].join("")};case"bracket":return function(t,n){return null===n?st(t,e):[st(t,e),"[]=",st(n,e)].join("")};default:return function(t,n){return null===n?st(t,e):[st(t,e),"=",st(n,e)].join("")}}}(t);return e?Object.keys(e).sort(t.sort).map((function(i){var o=e[i];if(void 0===o)return"";if(null===o)return st(i,t);if(Array.isArray(o)){var r=[];return o.slice().forEach((function(e){void 0!==e&&r.push(n(i,e,r.length))})),r.join("&")}return st(i,t)+"="+st(o,t)})).filter((function(e){return e.length>0})).join("&"):""},ut=function(e,t,n){this.url=e,this.data=t||{},this.headers=n};ut.prototype.send=function(e){if(window.XDomainRequest){var t=new window.XDomainRequest;t.open("POST",this.url,!0),t.onload=function(){e(200,t.responseText)},t.onerror=function(){"Request Entity Too Large"===t.responseText?e(413,t.responseText):e(500,t.responseText)},t.ontimeout=function(){},t.onprogress=function(){},t.send(at(this.data))}else{var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)},function(e,t){for(var n in t)e.setRequestHeader(n,t[n])}(n,this.headers),n.send(at(this.data))}};var ct=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};ct.prototype.setProductId=function(e){return"string"!==oe(e)?ye.error("Unsupported type for productId: "+oe(e)+", expecting string"):me(e)?ye.error("Invalid empty productId"):this._productId=e,this},ct.prototype.setQuantity=function(e){return"number"!==oe(e)?ye.error("Unsupported type for quantity: "+oe(e)+", expecting number"):this._quantity=parseInt(e),this},ct.prototype.setPrice=function(e){return"number"!==oe(e)?ye.error("Unsupported type for price: "+oe(e)+", expecting number"):this._price=e,this},ct.prototype.setRevenueType=function(e){return"string"!==oe(e)?ye.error("Unsupported type for revenueType: "+oe(e)+", expecting string"):this._revenueType=e,this},ct.prototype.setEventProperties=function(e){return"object"!==oe(e)?ye.error("Unsupported type for eventProperties: "+oe(e)+", expecting object"):this._properties=Se(e),this},ct.prototype._isValidRevenue=function(){return"number"===oe(this._price)||(ye.error("Invalid revenue, need to set price field"),!1)},ct.prototype._toJSONObject=function(){var e="object"===oe(this._properties)?this._properties:{};return null!==this._productId&&(e[K]=this._productId),null!==this._quantity&&(e[z]=this._quantity),null!==this._price&&(e[B]=this._price),null!==this._revenueType&&(e[F]=this._revenueType),e};var pt=Ye((function(e,t){!function(n,i){var o="model",r="name",s="type",a="vendor",u="version",c="mobile",p="tablet",l="smarttv",d={extend:function(e,t){var n={};for(var i in e)t[i]&&t[i].length%2===0?n[i]=t[i].concat(e[i]):n[i]=e[i];return n},has:function(e,t){return"string"===typeof e&&-1!==t.toLowerCase().indexOf(e.toLowerCase())},lowerize:function(e){return e.toLowerCase()},major:function(e){return"string"===typeof e?e.replace(/[^\d\.]/g,"").split(".")[0]:void 0},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},h={rgx:function(e,t){for(var n,i,o,r,s,a,u=0;u<t.length&&!s;){var c=t[u],p=t[u+1];for(n=i=0;n<c.length&&!s;)if(s=c[n++].exec(e))for(o=0;o<p.length;o++)a=s[++i],"object"===typeof(r=p[o])&&r.length>0?2==r.length?"function"==typeof r[1]?this[r[0]]=r[1].call(this,a):this[r[0]]=r[1]:3==r.length?"function"!==typeof r[1]||r[1].exec&&r[1].test?this[r[0]]=a?a.replace(r[1],r[2]):void 0:this[r[0]]=a?r[1].call(this,a,r[2]):void 0:4==r.length&&(this[r[0]]=a?r[3].call(this,a.replace(r[1],r[2])):void 0):this[r]=a||void 0;u+=2}},str:function(e,t){for(var n in t)if("object"===typeof t[n]&&t[n].length>0){for(var i=0;i<t[n].length;i++)if(d.has(t[n][i],e))return"?"===n?void 0:n}else if(d.has(t[n],e))return"?"===n?void 0:n;return e}},f={browser:{oldsafari:{version:{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}}},device:{amazon:{model:{"Fire Phone":["SD","KF"]}},sprint:{model:{"Evo Shift 4G":"7373KT"},vendor:{HTC:"APA",Sprint:"Sprint"}}},os:{windows:{version:{ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"}}}},v={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[r,u],[/(opios)[\/\s]+([\w\.]+)/i],[[r,"Opera Mini"],u],[/\s(opr)\/([\w\.]+)/i],[[r,"Opera"],u],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim)(?:browser)?[\/\s]?([\w\.]*)/i,/(bidubrowser|baidubrowser)[\/\s]?([\w\.]+)/i,/(?:ms|\()(ie)\s([\w\.]+)/i,/(rekonq)\/([\w\.]*)/i,/(chromium|flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon)\/([\w\.-]+)/i],[r,u],[/(konqueror)\/([\w\.]+)/i],[[r,"Konqueror"],u],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[r,"IE"],u],[/(edge|edgios|edga|edg)\/((\d+)?[\w\.]+)/i],[[r,"Edge"],u],[/(yabrowser)\/([\w\.]+)/i],[[r,"Yandex"],u],[/(Avast)\/([\w\.]+)/i],[[r,"Avast Secure Browser"],u],[/(AVG)\/([\w\.]+)/i],[[r,"AVG Secure Browser"],u],[/(puffin)\/([\w\.]+)/i],[[r,"Puffin"],u],[/(focus)\/([\w\.]+)/i],[[r,"Firefox Focus"],u],[/(opt)\/([\w\.]+)/i],[[r,"Opera Touch"],u],[/((?:[\s\/]
1)uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[r,"UCBrowser"],u],[/(comodo_dragon)\/([\w\.]+)/i],[[r,/_/g," "],u],[/(windowswechat qbcore)\/([\w\.]+)/i],[[r,"WeChat(Win) Desktop"],u],[/(micromessenger)\/([\w\.]+)/i],[[r,"WeChat"],u],[/(brave)\/([\w\.]+)/i],[[r,"Brave"],u],[/(qqbrowserlite)\/([\w\.]+)/i],[r,u],[/(QQ)\/([\d\.]+)/i],[r,u],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[r,u],[/(baiduboxapp)[\/\s]?([\w\.]+)/i],[r,u],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[r,u],[/(MetaSr)[\/\s]?([\w\.]+)/i],[r],[/(LBBROWSER)/i],[r],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[u,[r,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[u,[r,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[r,u],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[u,[r,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[r,/(.+)/,"$1 WebView"],u],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[r,/(.+(?:g|us))(.+)/,"$1 $2"],u],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[r,"Chrome Mobile"],u],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[u,[r,"Android Browser"]],[/(sailfishbrowser)\/([\w\.]+)/i],[[r,"Sailfish Browser"],u],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[r,u],[/(dolfin)\/([\w\.]+)/i],[[r,"Dolphin"],u],[/(qihu|qhbrowser|qihoobrowser|360browser)/i],[[r,"360 Browser"]],[/(coast)\/([\w\.]+)/i],[[r,"Opera Coast"],u],[/fxios\/([\w\.-]+)/i],[u,[r,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[u,[r,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[u,r],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[r,"GSA"],u],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[r,[u,h.str,f.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[r,u],[/(navigator|netscape)\/([\w\.-]+)/i],[[r,"Netscape"],u],[/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo\sbrowser|minimo|conkeror)[\/\s]?([\w\.\+]+)/i,/(firefox|seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([\w\.-]+)/i,/(mozilla)\/([\w\.]+).+rv\:.
1+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir)[\/\s]?([\w\.]+)/i,/(links)\s\(([\w\.]+)/i,/(gobrowser)\/?([\w\.]*)/i,/(ice\s?browser)\/v?([\w\._]+)/i,/(mosaic)[\/\s]([\w\.]+)/i],[r,u]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[["architecture","amd64"]],[/(ia32(?=;))/i],[["architecture",d.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[["architecture","ia32"]],[/windows\s(ce|mobile);\sppc;/i],[["architecture","arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[["architecture",/ower/,"",d.lowerize]],[/(sun4\w)[;\)]/i],[["architecture","sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[["architecture",d.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[o,a,[s,p]],[/applecoremedia\/[\w\.]+ \((ipad)/],[o,[a,"Apple"],[s,p]],[/(apple\s{0,1}tv)/i],[[o,"Apple TV"],[a,"Apple"],[s,l]],[/(archos)\s(gamepad2?)/i,/(hp).+(touchpad)/i,/(hp).+(tablet)/i,/(kindle)\/([\w\.]+)/i,/\s(nook)[\w\s]+build\/(\w+)/i,/(dell)\s(strea[kpr\s\d]*[\dko])/i],[a,o,[s,p]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[o,[a,"Amazon"],[s,p]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[o,h.str,f.device.amazon.model],[a,"Amazon"],[s,c]],[/android.+aft([bms])\sbuild/i],[o,[a,"Amazon"],[s,l]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[o,a,[s,c]],[/\((ip[honed|\s\w*]+);/i],[o,[a,"Apple"],[s,c]],[/(blackberry)[\s-]?(\w+)/i,/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[\s_-]?([\w-]*)/i,/(hp)\s([\w\s]+\w)/i,/(asus)-?(\w+)/i],[a,o,[s,c]],[/\(bb10;\s(\w+)/i],[o,[a,"BlackBerry"],[s,c]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[o,[a,"Asus"],[s,p]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[a,"Sony"],[o,"Xperia Tablet"],[s,p]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[o,[a,"Sony"],[s,c]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[a,o,[s,"console"]],[/android.+;\s(shield)\sbuild/i],[o,[a,"Nvidia"],[s,"console"]],[/(playstation\s[34portablevi]+)/i],[o,[a,"Sony"],[s,"console"]],[/(sprint\s(\w+))/i],[[a,h.str,f.device.sprint.vendor],[o,h.str,f.device.sprint.model],[s,c]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[a,[o,/_/g," "],[s,c]],[/(nexus\s9)/i],[o,[a,"HTC"],[s,p]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p|vog-l29|ane-lx1|eml-l29)/i],[o,[a,"Huawei"],[s,c]],[/android.+(bah2?-a?[lw]\d{2})/i],[o,[a,"Huawei"],[s,p]],[/(microsoft);\s(lumia[\s\w]+)/i],[a,o,[s,c]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[o,[a,"Microsoft"],[s,"console"]],[/(kin\.[onetw]{3})/i],[[o,/\./g," "],[a,"Microsoft"],[s,c]],[/\s(milestone|droid(?:[2-4x]|\s(?:bionic|x2|pro|razr))?:?(\s4g)?)[\w\s]+build\//i,/mot[\s-]?(\w*)/i,/(XT\d{3,4}) build\//i,/(nexus\s6)/i],[o,[a,"Motorola"],[s,c]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[o,[a,"Motorola"],[s,p]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[a,d.trim],[o,d.trim],[s,l]],[/hbbtv.+maple;(\d+)/i],[[o,/^/,"SmartTV"],[a,"Samsung"],[s,l]],[/\(dtv[\);].+(aquos)/i],[o,[a,"Sharp"],[s,l]],[/android.+((sch-i[89]0\d|shw-m380s|gt-p\d{4}|gt-n\d+|sgh-t8[56]9|nexus 10))/i,/((SM-T\w+))/i],[[a,"Samsung"],o,[s,p]],[/smart-tv.+(samsung)/i],[a,[s,l],o],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[a,"Samsung"],o,[s,c]],[/sie-(\w*)/i],[o,[a,"Siemens"],[s,c]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[a,"Nokia"],o,[s,c]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[o,[a,"Acer"],[s,p]],[/android.+([vl]k\-?\d{3})\s+build/i],[o,[a,"LG"],[s,p]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[a,"LG"],o,[s,p]],[/(lg) netcast\.tv/i],[a,o,[s,l]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[o,[a,"LG"],[s,c]],[/(lenovo)\s?(s(?:5000|6000)(?:[\w-]+)|tab(?:[\s\w]+))/i],[a,o,[s,p]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[o,[a,"Lenovo"],[s,p]],[/(lenovo)[_\s-]?([\w-]+)/i],[a,o,[s,c]],[/linux;.+((jolla));/i],[a,o,[s,c]],[/((pebble))app\/[\d\.]+\s/i],[a,o,[s,"wearable"]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[a,o,[s,c]],[/crkey/i],[[o,"Chromecast"],[a,"Google"],[s,l]],[/android.+;\s(glass)\s\d/i],[o,[a,"Google"],[s,"wearable"]],[/android.+;\s(pixel c)[\s)]/i],[o,[a,"Google"],[s,p]],[/android.+;\s(pixel( [23])?( xl)?)[\s)]/i],[o,[a,"Google"],[s,c]],[/android.+;
1\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:a\d|one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[o,/_/g," "],[a,"Xiaomi"],[s,c]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[o,/_/g," "],[a,"Xiaomi"],[s,p]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[o,[a,"Meizu"],[s,c]],[/(mz)-([\w-]{2,})/i],[[a,"Meizu"],o,[s,c]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})[\s)]/i],[o,[a,"OnePlus"],[s,c]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[o,[a,"RCA"],[s,p]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[o,[a,"Dell"],[s,p]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[o,[a,"Verizon"],[s,p]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[a,"Barnes & Noble"],o,[s,p]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[o,[a,"NuVision"],[s,p]],[/android.+;\s(k88)\sbuild/i],[o,[a,"ZTE"],[s,p]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[o,[a,"Swiss"],[s,c]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[o,[a,"Swiss"],[s,p]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[o,[a,"Zeki"],[s,p]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[a,"Dragon Touch"],o,[s,p]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[o,[a,"Insignia"],[s,p]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[o,[a,"NextBook"],[s,p]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[a,"Voice"],o,[s,c]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[a,"LvTel"],o,[s,c]],[/android.+;\s(PH-1)\s/i],[o,[a,"Essential"],[s,c]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[o,[a,"Envizen"],[s,p]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[a,o,[s,p]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[o,[a,"MachSpeed"],[s,p]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[a,o,[s,p]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[o,[a,"Rotor"],[s,p]],[/android.+(KS(.+))\s+build/i],[o,[a,"Amazon"],[s,p]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[a,o,[s,p]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[s,d.lowerize],a,o],[/[\s\/\(](smart-?tv)[;\)]/i],[[s,l]],[/(android[\w\.\s\-]{0,9});.+build/i],[o,[a,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[u,[r,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[u,[r,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/(khtml|tasman|links)[\/\s]\(?([\w\.]+)/i,/(icab)[\/\s]([23]\.[\d\.]+)/i],[r,u],[/rv\:([\w\.]{1,9}).+(gecko)/i],[u,r]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[r,u],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[r,h.str,f.os.windows.name],[u,h.str,f.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[r,"Windows"],[u,h.str,f.os.windows.version]],[/\((bb)(10);
1/i],[[r,"BlackBerry"],u],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen|kaios)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|sailfish|contiki)[\/\s-]?([\w\.]*)/i],[r,u],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[r,"Symbian"],u],[/\((series40);/i],[r],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[r,"Firefox OS"],u],[/(nintendo|playstation)\s([wids34portablevu]+)/i,/(mint)[\/\s\(]?(\w*)/i,/(mageia|vectorlinux)[;\s]/i,/(joli|[kxln]?ubuntu|debian|suse|opensuse|gentoo|(?=\s)arch|slackware|fedora|mandriva|centos|pclinuxos|redhat|zenwalk|linpus)[\/\s-]?(?!chrom)([\w\.-]*)/i,/(hurd|linux)\s?([\w\.]*)/i,/(gnu)\s?([\w\.]*)/i],[[r,"Linux"],u],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[r,"Chromium OS"],u],[/(sunos)\s?([\w\.\d]*)/i],[[r,"Solaris"],u],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[r,"Linux"],u],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[r,"iPhone"],[u,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[r,"iPad"],[u,/_/g,"."]],[/(haiku)\s(\w+)/i],[r,u],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[u,/_/g,"."],[r,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[r,"Mac"],[u,/_/g,"."]],[/((?:open)?solaris)[\/\s-]?([\w\.]*)/i,/(aix)\s((\d)(?=\.|\)|\s)[\w\.])*/i,/(plan\s9|minix|beos|os\/2|amigaos|morphos|risc\sos|openvms|fuchsia)/i,/(unix)\s?([\w\.]*)/i],[r,u]]},g=function(e,t){if("object"===typeof e&&(t=e,e=void 0),!(this instanceof g))return new g(e,t).getResult();var i=e||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:""),o=t?d.extend(v,t):v;return this.getBrowser=function(){var e={name:void 0,version:void 0};return h.rgx.call(e,i,o.browser),e.major=d.major(e.version),e},this.getCPU=function(){var e={architecture:void 0};return h.rgx.call(e,i,o.cpu),e},this.getDevice=function(){var e={vendor:void 0,model:void 0,type:void 0};return h.rgx.call(e,i,o.device),e},this.getEngine=function(){var e={name:void 0,version:void 0};return h.rgx.call(e,i,o.engine),e},this.getOS=function(){var e={name:void 0,version:void 0};return h.rgx.call(e,i,o.os),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return i},this.setUA=function(e){return i=e,this},this};g.VERSION="0.7.21",g.BROWSER={NAME:r,MAJOR:"major",VERSION:u},g.CPU={ARCHITECTURE:"architecture"},g.DEVICE={MODEL:o,VENDOR:a,TYPE:s,CONSOLE:"console",MOBILE:c,SMARTTV:l,TABLET:p,WEARABLE:"wearable",EMBEDDED:"embedded"},g.ENGINE={NAME:r,VERSION:u},g.OS={NAME:r,VERSION:u},e.exports&&(t=e.exports=g),t.UAParser=g;var y=n&&(n.jQuery||n.Zepto);if(y&&!y.ua){var m=new g;y.ua=m.getResult(),y.ua.get=function(){return m.getUA()},y.ua.set=function(e){m.setUA(e);var t=m.getResult();for(var n in t)y.ua[n]=t[n]}}}("object"===typeof window?window:Ze)})),lt=(pt.UAParser,{apiEndpoint:"api.amplitude.com",batchEvents:!1,cookieExpiration:365,cookieName:"amplitude_id",sameSiteCookie:"Lax",cookieForceUpgrade:!1,deferInitialization:!1,disableCookies:!1,deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeFbclid:!1,includeGclid:!1,includeReferrer:!1,includeUtm:!1,language:navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||"",logLevel:"WARN",logAttributionCapturedEvent:!1,optOut:!1,onError:function(){},onExitPage:function(){},platform:"Web",savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,storage:R,trackingOptions:{city:!0,country:!0,carrier:!0,device_manufacturer:!0,device_model:!0,dma:!0,ip_address:!0,language:!0,os_name:!0,os_version:!0,platform:!0,region:!0,version_name:!0},transport:Z,unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100,headers:{"Content-Type":"application/x-www-form-urlencoded; charset=UTF-8"}}),dt=function(e){d()||ye.warn("amplitude-js will not work in a non-browser environment. If you are planning to add Amplitude to a node environment, please use @amplitude/node"),this._instanceName=me(e)?m:e.toLowerCase(),this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new pt(navigator.userAgent).getResult(),this.options=s({},lt,{trackingOptions:s({},lt.trackingOptions)}),this.cookieStorage=(new Je).getStorage(),this._q=[],this._sending=!1,this._updateScheduled=!1,this._onInit=[],this._eventId=0,this._identifyId=0,this._lastEventTime=null,this._newSession=!1,this._sequenceNumber=0,this._sessionId=null,this._isInitialized=!1,this._userAgent=navigator&&navigator.userAgent||null};dt.prototype.Identify=Xe,dt.prototype.Revenue=ct,dt.prototype.init=function(e,t,n,i){var o=this;if("string"!==oe(e)||me(e))ye.error("Invalid apiKey. Please re-initialize with a valid apiKey");else try{ft(this.options,n),d()&&void 0!==window.Prototype&&Array.prototype.toJSON&&(function(){var e;if(d()){var t=window,n=Array;if(void 0!==t.Prototype&&void 0!==(null===(e=n.prototype)||void 0===e?void 0:e.toJSON))delete n.prototype.toJSON}}(),ye.warn("Prototype.js injected Array.prototype.toJSON. Deleting Array.prototype.toJSON to prevent double-stringify")),this.options.cookieName!==lt.cookieName&&ye.warn("The cookieName option is deprecated. We will be ignoring it for newer cookies"),this.options.apiKey=e,this._storageSuffix="_"+e+(this._instanceName===m?"":"_"+this._instanceName),this._storageSuffixV5=e.slice(0,6),this._oldCookiename=this.options.cookieName+this._storageSuffix,this._unsentKey=this.options.unsentKey+this._storageSuffix,this._unsentIdentifyKey=this.options.unsentIdentifyKey+this._storageSuffix,this._cookieName=j+"_"+this._storageSuffixV5,this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this._metadataStorage=new Qe({storageKey:this._cookieName,disableCookies:this.options.disableCookies,expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie,storage:this.options.storage});var r=!!this.cookieStorage.get(this._oldCookiename),s=!!this._metadataStorage.load();this._useOldCookie=!s&&r&&!this.options.cookieForceUpgrade;var a=s||r;if(this.options.domain=this.cookieStorage.options().domain,this.options.deferInitialization&&!a)return void this._deferInitialization(e,t,n,i);"string"===oe(this.options.logLevel)&&ge(this.options.logLevel);var u=It(this);this._apiPropertiesTrackingOptions=Object.keys(u).length>0?{tracking_options:u}:{},this.options.cookieForceUpgrade&&r&&(s||gt(this),this.cookieStorage.remove(this._oldCookiename)),vt(this),this._pendingReadStorage=!0,this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).map((function(e){return{event:e}})).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).map((function(e){return{event:e}})).concat(this._unsentIdentifys)),function(e){n&&n.deviceId&&!ke(n.deviceId)&&(ye.error('Invalid device ID rejected. Randomly generated UUID will be used instead of "'.concat(n.deviceId,'"')),delete n.deviceId),o.options.deviceId=o._getInitialDeviceId(n&&n.deviceId,e),o.options.userId="string"===oe(t)&&!me(t)&&t||"number"===oe(t)&&t.toString()||o.options.userId||null;var i=(new Date).getTime();(!o._sessionId||!o._lastEventTime||i-o._lastEventTime>o.options.sessionTimeout)&&(o.options.unsetParamsReferrerOnNewSession&&o._unsetUTMParams(),o._newSession=!0,o._sessionId=i,o.options.saveParamsReferrerOncePerSession&&o._trackParamsAndReferrer()),o.options.saveParamsReferrerOncePerSession||o._trackParamsAndReferrer(),o.options.saveEvents&&(ht(o._unsentEvents),ht(o._unsentIdentifys)),o._lastEventTime=i,mt(o),o._pendingReadStorage=!1,o._sendEventsIfReady();for(var r=0;r<o._onInit.length;r++)o._onInit[r](o);o._onInit=[],o._isInitialized=!0}(),this.runQueuedFunctions(),"function"===oe(i)&&i(this);var c=this.options.onExitPage;"function"!==oe(c)||this.pageHandlersAdded||(this.pageHandlersAdded=!0,window.addEventListener("pagehide",(function(){!function(){var e=o.options.transport;o.setTransport(Y),c(),o.setTransport(e)}()}),!1))}catch(p){ye.error(p),"function"===oe(n.onError)&&n.onError(p)}},dt.prototype.deleteLowerLevelDomainCookies=function(){var e=qe(),t=this.options.domain&&"."===this.options.domain[0]?this.options.domain.slice(1):this.options.domain;if(t&&e!==t&&new RegExp(t+"$").test(e)){for(var n=e.split("."),i=t.split("."),o=n.length;o>i.length;--o){var r=n.slice(n.length-o).join(".");Te(this._cookieName,null,{domain:"."+r})}Te(this._cookieName,null,{})}},dt.prototype._getInitialDeviceId=function(e,t){if(e)return e;if(this.options.deviceIdFromUrlParam){var n=this._getDeviceIdFromUrlParam(this._getUrlParams());if(n)return n}return this.options.deviceId?this.options.deviceId:t||xe()};var ht=function(e){for(var t=0;t<e.length;t++){var n=e[t].event.user_properties,i=e[t].event.event_properties,o=e[t].event.groups;e[t].event.user_properties=Se(n),e[t].event.event_properties=Se(i),e[t].event.groups=be(o)}};dt.prototype._trackParamsAndReferrer=function(){var e,t,n,i;if(this.options.includeUtm&&(e=this._initUtmData()),this.options.includeReferrer&&(t=this._saveReferrer(this._getReferrer())),this.options.includeGclid&&(n=this._saveGclid(this._getUrlParams())),this.options.includeFbclid&&(i=this._saveFbclid(this._getUrlParams())),this.options.logAttributionCapturedEvent){var o=s({},e,t,n,i);Object.keys(o).length>0&&this.logEvent(X,o)}};var ft=function e(t,n){if("object"===oe(n)){var i=new Set(["headers"]),o=function(i){if(Object.prototype.hasOwnProperty.call(t,i)){var o=n[i],r=oe(t[i]);("transport"!==i||Ee(o))&&Ie(o,i+" option",r)&&("boolean"===r?t[i]=!!o:"string"===r&&!me(o)||"number"===r&&o>0||"function"===r?t[i]=o:"object"===r&&e(t[i],o))}};for(var r in n)i.has(r)?t[r]=s({},t[r],n[r]):Object.prototype.hasOwnProperty.call(n,r)&&o(r)}};dt.prototype.runQueuedFunctions=function(){var e=this._q;this._q=[];for(var t=0;t<e.length;t++){var n=this[e[t][0]];"function"===oe(n)&&n.apply(this,e[t].slice(1))}},dt.prototype._apiKeySet=function(e){return!me(this.options.apiKey)||(ye.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},dt.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage($e,e),n=this._parseSavedUnsentEventsString(t,e);return this._setInStorage($e,e,JSON.stringify(n)),n},dt.prototype._parseSavedUnsentEventsString=function(e,t){if(me(e))return[];if("string"===oe(e))try{var n=JSON.parse(e);if("array"===oe(n))return n}catch(Ct){}return ye.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},dt.prototype.isNewSession=function(){return this._newSession},dt.prototype.onInit=function(e){this._isInitialized?e(this):this._onInit.push(e)},dt.prototype.getSessionId=function(){return this._sessionId},dt.prototype.nextEventId=function(){return this._eventId++,this._eventId},dt.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},dt.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},dt.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},dt.prototype._sendEventsIfReady=function(){return 0!==this._unsentCount()&&(this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold||this.options.transport===Y?(this.sendEvents(),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout(function(){this._updateScheduled=!1,this.sendEvents()}.bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(),!0))},dt.prototype.clearStorage=function(){return this._metadataStorage.clear()},dt.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix
1)},dt.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var vt=function(e){if(e._useOldCookie){var t=e.cookieStorage.get(e._oldCookiename);"object"!==oe(t)||yt(e,t)}else{var n=e._metadataStorage.load();"object"===oe(n)&&yt(e,n)}},gt=function(e){var t=e.cookieStorage.get(e._oldCookiename);"object"===oe(t)&&(yt(e,t),mt(e))},yt=function(e,t){t.deviceId&&(e.options.deviceId=t.deviceId),t.userId&&(e.options.userId=t.userId),null!==t.optOut&&void 0!==t.optOut&&!1!==t.optOut&&(e.options.optOut=t.optOut),t.sessionId&&(e._sessionId=parseInt(t.sessionId,10)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime,10)),t.eventId&&(e._eventId=parseInt(t.eventId,10)),t.identifyId&&(e._identifyId=parseInt(t.identifyId,10)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber,10))},mt=function(e){var t={deviceId:e.options.deviceId,userId:e.options.userId,optOut:e.options.optOut,sessionId:e._sessionId,lastEventTime:e._lastEventTime,eventId:e._eventId,identifyId:e._identifyId,sequenceNumber:e._sequenceNumber};e._useOldCookie?e.cookieStorage.set(e.options.cookieName+e._storageSuffix,t):e._metadataStorage.save(t)};dt.prototype._initUtmData=function(e,t){e=e||this._getUrlParams();var n=function(e,t){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",i=function(e,t,n,i){return we(e,t)||we(n,i)},o=i(W,t,"utmcsr",n),r=i($,t,"utmcmd",n),s=i(J,t,"utmccn",n),a=i(H,t,"utmctr",n),u=i(Q,t,"utmcct",n),c={},p=function(e,t){me(t)||(c[e]=t)};return p(W,o),p($,r),p(J,s),p(H,a),p(Q,u),c}(t=t||this.cookieStorage.get("__utmz"),e);return wt(this,n),n},dt.prototype._unsetUTMParams=function(){var e=new Xe;e.unset(G),e.unset(W),e.unset($),e.unset(J),e.unset(H),e.unset(Q),this.identify(e)};var wt=function(e,t){if("object"===oe(t)&&0!==Object.keys(t).length){var n=new Xe;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n.setOnce("initial_"+i,t[i]),n.set(i,t[i]));e.identify(n)}};dt.prototype._getReferrer=function(){return document.referrer},dt.prototype._getUrlParams=function(){return location.search},dt.prototype._saveGclid=function(e){var t=we("gclid",e);if(!me(t)){var n={gclid:t};return wt(this,n),n}},dt.prototype._saveFbclid=function(e){var t=we("fbclid",e);if(!me(t)){var n={fbclid:t};return wt(this,n),n}},dt.prototype._getDeviceIdFromUrlParam=function(e){return we(V,e)},dt.prototype._getReferringDomain=function(e){if(me(e))return null;var t=e.split("/");return t.length>=3?t[2]:null},dt.prototype._saveReferrer=function(e){if(!me(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};return wt(this,t),t}},dt.prototype.saveEvents=function(){try{var e=JSON.stringify(this._unsentEvents.map((function(e){return e.event})));this._setInStorage($e,this.options.unsentKey,e)}catch(Ct){}try{var t=JSON.stringify(this._unsentIdentifys.map((function(e){return e.event})));this._setInStorage($e,this.options.unsentIdentifyKey,t)}catch(Ct){}},dt.prototype.setDomain=function(e){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(Ie(e,"domain","string"))try{this.cookieStorage.options({expirationDays:this.options.cookieExpiration,secure:this.options.secureCookie,domain:e,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,vt(this),mt(this)}catch(Ct){ye.error(Ct)}},dt.prototype.setUserId=function(e){if(this._shouldDeferCall())return this._q.push(["setUserId"].concat(Array.prototype.slice.call(arguments,0)));try{this.options.userId=void 0!==e&&null!==e&&""+e||null,mt(this)}catch(Ct){ye.error(Ct)}},dt.prototype.setGroup=function(e,t){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setGroup()")&&Ie(e,"groupType","string")&&!me(e)){var n={};n[e]=t;var i=(new Xe).set(e,t);this._logEvent(I,null,null,i.userPropertiesOperations,n,null,null,null)}},dt.prototype.setOptOut=function(e){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(Ie(e,"enable","boolean"))try{this.options.optOut=e,mt(this)}catch(Ct){ye.error(Ct)}},dt.prototype.setSessionId=function(e){if(Ie(e,"sessionId","number"))try{this._sessionId=e,mt(this)}catch(Ct){ye.error(Ct)}},dt.prototype.resetSessionId=function(){this.setSessionId((new Date).getTime())},dt.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(xe())},dt.prototype.setDeviceId=function(e){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(ke(e))try{me(e)||(this.options.deviceId=""+e,mt(this))}catch(Ct){ye.error(Ct)}},dt.prototype.setTransport=function(e){if(this._shouldDeferCall())return this._q.push(["setTransport"].concat(Array.prototype.slice.call(arguments,0)));Ee(e)&&(this.options.transport=e)},dt.prototype.setUserProperties=function(e){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setUserProperties()")&&Ie(e,"userProperties","object")){var t=_e(Se(e));if(0!==Object.keys(t).length){var n=new Xe;for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&n.set(i,t[i]);this.identify(n)}}},dt.prototype.clearUserProperties=function(){if(this._shouldDeferCall())return this._q.push(["clearUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("clearUserProperties()")){var e=new Xe;e.clearAll(),this.identify(e)}};var _t=function(e,t){for(var n=0;n<t._q.length;n++){var i=e[t._q[n][0]];"function"===oe(i)&&i.apply(e,t._q[n].slice(1))}return e};dt.prototype.identify=function(e,t,n){if(this._shouldDeferCall())return this._q.push(["identify"].
1concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("identify()"))if("object"===oe(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=_t(new Xe,e)),e instanceof Xe){if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(I,null,null,e.userPropertiesOperations,null,null,null,t,n);kt(t,n,0,"No request sent",{reason:"No user property operations"})}else ye.error("Invalid identify input type. Expected Identify object but saw "+oe(e)),kt(t,n,0,"No request sent",{reason:"Invalid identify input type"});else kt(t,n,0,"No request sent",{reason:"API key is not set"})},dt.prototype.groupIdentify=function(e,t,n,i,o){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("groupIdentify()"))if(Ie(e,"group_type","string")&&!me(e))if(null!==t&&void 0!==t)if("object"===oe(n)&&Object.prototype.hasOwnProperty.call(n,"_q")&&(n=_t(new Xe,n)),n instanceof Xe){if(Object.keys(n.userPropertiesOperations).length>0)return this._logEvent(S,null,null,null,r({},e,t),n.userPropertiesOperations,null,i,o);kt(i,o,0,"No request sent",{reason:"No group property operations"})}else ye.error("Invalid identify input type. Expected Identify object but saw "+oe(n)),kt(i,o,0,"No request sent",{reason:"Invalid identify input type"});else kt(i,o,0,"No request sent",{reason:"Invalid group name"});else kt(i,o,0,"No request sent",{reason:"Invalid group type"});else kt(i,o,0,"No request sent",{reason:"API key is not set"})},dt.prototype.setVersionName=function(e){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));Ie(e,"versionName","string")&&(this.options.versionName=e)},dt.prototype._logEvent=function(e,t,n,i,o,r,a,u,c){if(vt(this),e)if(this.options.optOut)kt(u,c,0,"No request sent",{reason:"optOut is set to true"});else try{var p;p=e===I||e===S?this.nextIdentifyId():this.nextEventId();var l=this.nextSequenceNumber(),d="number"===oe(a)?a:(new Date).getTime();(!this._sessionId||!this._lastEventTime||d-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=d),this._lastEventTime=d,mt(this);var h=this._ua.browser.name,f=this._ua.browser.major,v=this._ua.os.name;i=i||{};var g=s({},this._apiPropertiesTrackingOptions);n=s({},n||{},g),t=t||{},o=o||{},r=r||{};var y={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:d,event_id:p,session_id:this._sessionId||-1,event_type:e,version_name:this.options.versionName||null,platform:bt(this,"platform")?this.options.platform:null,os_name:bt(this,"os_name")&&h||null,os_version:bt(this,"os_version")&&f||null,device_model:bt(this,"device_model")&&v||null,language:bt(this,"language")?this.options.language:null,api_properties:n,event_properties:_e(Se(t)),user_properties:_e(Se(i)),uuid:(pt.UAParser,function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)})(),library:{name:"amplitude-js",version:"8.5.0"},sequence_number:l,groups:_e(be(o)),group_properties:_e(Se(r)),user_agent:this._userAgent};return e===I||e===S?(this._unsentIdentifys.push({event:y,callback:u,errorCallback:c}),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push({event:y,callback:u,errorCallback:c}),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(),p}catch(Ct){ye.error(Ct)}else kt(u,c,0,"No request sent",{reason:"Missing eventType"})};var bt=function(e,t){return!!e.options.trackingOptions[t]},It=function(e){for(var t=["city","country","dma","ip_address","region"],n={},i=0;i<t.length;i++){var o=t[i];bt(e,o)||(n[o]=!1)}return n};dt.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount).forEach((function(e){kt(e.callback,e.errorCallback,0,"No request sent",{reason:"Event dropped because options.savedMaxCount exceeded. User may be offline or have a content blocker"})}))},dt.prototype.logEvent=function(e,t,n,i){return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(e,t,null,n,i)},dt.prototype.logEventWithTimestamp=function(e,t,n,i,o){return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?Ie(e,"eventType","string")?me(e)?(kt(i,o,0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(e,t,null,null,null,null,n,i,o):(kt(i,o,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(kt(i,o,0,"No request sent",{reason:"API key not set"}),-1)},dt.prototype.logEventWithGroups=function(e,t,n,i,o){return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?Ie(e,"eventType","string")?this._logEvent(e,t,null,null,n,null,null,i,o):(kt(event.callback,event.errorCallback,0,"No request sent",{reason:"Invalid type for eventType"}),-1):(kt(event.callback,event.errorCallback,0,"No request sent",{reason:"API key not set"}),-1)};var St=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},kt=function(e,t,n,i,o){"function"===oe(e)&&e(n,i,o),"function"===oe(t)&&t(n,i,o)};dt.prototype.logRevenueV2=function(e){if(this._shouldDeferCall())return this._q.push(["logRevenueV2"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("logRevenueV2()"))if("object"===oe(e)&&Object.prototype.hasOwnProperty.call(e,"_q")&&(e=_t(new ct,e)),e instanceof ct){if(e&&e._isValidRevenue())return this.logEvent(M,e._toJSONObject())}else ye.error("Invalid revenue input type. Expected Revenue object but saw "+oe(e))},dt.prototype.logRevenue=function(e,t,n){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logRevenue()")&&St(e)&&(void 0===t||St(t))?this._logEvent(M,{},{productId:n,special:"revenue_amount",quantity:t||1,price:e}
vendor: 5,854 bytes, line 1
1,null,null,null,null,null):-1},dt.prototype._logErrorsOnEvents=function(e,t,n,i){for(var o=["_unsentEvents","_unsentIdentifys"],r=0;r<o.length;r++)for(var s=o[r],a="_unsentEvents"===s?e:t,u=0;u<this[s].length;u++){var c=this[s][u];c.event.event_id<=a&&c.errorCallback&&c.errorCallback(n,i)}},dt.prototype.removeEvents=function(e,t,n,i){Et(this,"_unsentEvents",e,n,i),Et(this,"_unsentIdentifys",t,n,i)};var Et=function(e,t,n,i,o){if(!(n<0)){for(var r=[],s=0;s<e[t].length;s++){var a=e[t][s];a.event.event_id>n?r.push(a):a.callback&&a.callback(i,o)}e[t]=r}};dt.prototype.sendEvents=function(){if(this._apiKeySet("sendEvents()")){if(this.options.optOut)this.removeEvents(1/0,1/0,0,"No request sent",{reason:"Opt out is set to true"});else if(0!==this._unsentCount()){if(this.options.transport!==Y){if(this._sending)return;this._sending=!0}var e=(this.options.forceHttps||"https:"===window.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,t=Math.min(this._unsentCount(),this.options.uploadBatchSize),n=this._mergeEventsAndIdentifys(t),i=n.maxEventId,o=n.maxIdentifyId,r=JSON.stringify(n.eventsToSend.map((function(e){return e.event}))),s=(new Date).getTime(),a={client:this.options.apiKey,e:r,v:w,upload_time:s,checksum:et(w+this.options.apiKey+r+s)};if(this.options.transport!==Y){var u=this;new ut(e,a,this.options.headers).send((function(e,n){u._sending=!1;try{200===e&&"success"===n?(u.removeEvents(i,o,e,n),u.options.saveEvents&&u.saveEvents(),u._sendEventsIfReady()):(u._logErrorsOnEvents(i,o,e,n),413===e&&(1===u.options.uploadBatchSize&&u.removeEvents(i,o,e,n),u.options.uploadBatchSize=Math.ceil(t/2),u.sendEvents()))}catch(Ct){}}))}else navigator.sendBeacon(e,new URLSearchParams(a))?(this.removeEvents(i,o,200,"success"),this.options.saveEvents&&this.saveEvents()):this._logErrorsOnEvents(i,o,0,"")}}else this.removeEvents(1/0,1/0,0,"No request sent",{reason:"API key not set"})},dt.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,i=-1,o=0,r=-1;t.length<e;){var s=void 0,a=o>=this._unsentIdentifys.length,u=n>=this._unsentEvents.length;if(u&&a){ye.error("Merging Events and Identifys, less events and identifys than expected");break}a?i=(s=this._unsentEvents[n++]).event.event_id:u?r=(s=this._unsentIdentifys[o++]).event.event_id:!("sequence_number"in this._unsentEvents[n].event)||this._unsentEvents[n].event.sequence_number<this._unsentIdentifys[o].event.sequence_number?i=(s=this._unsentEvents[n++]).event.event_id:r=(s=this._unsentIdentifys[o++]).event.event_id,t.push(s)}return{eventsToSend:t,maxEventId:i,maxIdentifyId:r}},dt.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},dt.prototype.__VERSION__="8.5.0",dt.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},dt.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},dt.prototype.enableTracking=function(){this._initializationDeferred=!1,mt(this),this.runQueuedFunctions()};var Ot=function(){this.options=s({},lt),this._q=[],this._instances={}};Ot.prototype.Identify=Xe,Ot.prototype.Revenue=ct,Ot.prototype.getInstance=function(e){e=me(e)?m:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new dt(e),this._instances[e]=t),t},Ot.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===oe(t)&&t.apply(this,this._q[e].slice(1))}for(var n in this._q=[],this._instances)Object.prototype.hasOwnProperty.call(this._instances,n)&&this._instances[n].runQueuedFunctions()},Ot.prototype.init=function(e,t,n,i){this.getInstance().init(e,t,n,function(e){this.options=e.options,"function"===oe(i)&&i(e)}.bind(this))},Ot.prototype.isNewSession=function(){return this.getInstance().isNewSession()},Ot.prototype.getSessionId=function(){return this.getInstance().getSessionId()},Ot.prototype.nextEventId=function(){return this.getInstance().nextEventId()},Ot.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},Ot.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},Ot.prototype.saveEvents=function(){this.getInstance().saveEvents()},Ot.prototype.setDomain=function(e){this.getInstance().setDomain(e)},Ot.prototype.setUserId=function(e){this.getInstance().setUserId(e)},Ot.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},Ot.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},Ot.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},Ot.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},Ot.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},Ot.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},Ot.prototype.identify=function(e,t){this.getInstance().identify(e,t)},Ot.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},Ot.prototype.logEvent=function(e,t,n){return this.getInstance().logEvent(e,t,n)},Ot.prototype.logEventWithGroups=function(e,t,n,i){return this.getInstance().logEventWithGroups(e,t,n,i)},Ot.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},Ot.prototype.logRevenue=function(e,t,n){return this.getInstance().logRevenue(e,t,n)},Ot.prototype.removeEvents=function(e,t){this.getInstance().removeEvents(e,t)},Ot.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},Ot.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},Ot.prototype.__VERSION__="8.5.0";var xt=window.amplitude||{},Nt=new Ot;for(var At in Nt._q=xt._q||[],xt._iq)Object.prototype.hasOwnProperty.call(xt._iq,At)&&(Nt.getInstance(At)._q=xt._iq[At]._q||[]);return Nt.runQueuedFunctions(),Nt},e.exports=o()}).call(this,n("8oxB"),n("yLpj"),n("HDXh").Buffer)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.