PageSourceSearch

https://onerecord.com/_next/static/chunks/50c25a04-7a54358b478556fb.js

js onerecord.com collected 2026-10-02 21:16:34 UTC 63,951 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[936],{3790:function(e,t,n){var i=n(8764).Buffer;e.exports=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 t(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e){for(var n=1;n<arguments.length;n++){var i=null!=arguments[n]?arguments[n]:{},r=Object.keys(i);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(i).filter((function(e){return Object.getOwnPropertyDescriptor(i,e).enumerable})))),r.forEach((function(n){t(e,n,i[n])}))}return e}var o={DEFAULT_INSTANCE:"$default_instance",API_VERSION:2,MAX_STRING_LENGTH:4096,MAX_PROPERTY_KEYS:1e3,IDENTIFY_EVENT:"$identify",GROUP_IDENTIFY_EVENT:"$groupidentify",LAST_EVENT_ID:"amplitude_lastEventId",LAST_EVENT_TIME:"amplitude_lastEventTime",LAST_IDENTIFY_ID:"amplitude_lastIdentifyId",LAST_SEQUENCE_NUMBER:"amplitude_lastSequenceNumber",SESSION_ID:"amplitude_sessionId",DEVICE_ID:"amplitude_deviceId",OPT_OUT:"amplitude_optOut",USER_ID:"amplitude_userId",COOKIE_TEST:"amplitude_cookie_test",REVENUE_EVENT:"revenue_amount",REVENUE_PRODUCT_ID:"$productId",REVENUE_QUANTITY:"$quantity",REVENUE_PRICE:"$price",REVENUE_REVENUE_TYPE:"$revenueType",AMP_DEVICE_ID_PARAM:"amp_device_id",REFERRER:"referrer",UTM_SOURCE:"utm_source",UTM_MEDIUM:"utm_medium",UTM_CAMPAIGN:"utm_campaign",UTM_TERM:"utm_term",UTM_CONTENT:"utm_content"},s={encode: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},decode:function(e){for(var t="",n=0,i=0,r=0,o=0;n<e.length;)(i=e.charCodeAt(n))<128?(t+=String.fromCharCode(i),n++):i>191&&i<224?(r=e.charCodeAt(n+1),t+=String.fromCharCode((31&i)<<6|63&r),n+=2):(r=e.charCodeAt(n+1),o=e.charCodeAt(n+2),t+=String.fromCharCode((15&i)<<12|(63&r)<<6|63&o),n+=3);return t}},a={_keyStr:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",encode:function(e){try{if(window.btoa&&window.atob)return window.btoa(unescape(encodeURIComponent(e)))}catch(t){}return a._encode(e)},_encode:function(e){var t,n,i,r,o,u,c,p="",l=0;for(e=s.encode(e);l<e.length;)r=(t=e.charCodeAt(l++))>>2,o=(3&t)<<4|(n=e.charCodeAt(l++))>>4,u=(15&n)<<2|(i=e.charCodeAt(l++))>>6,c=63&i,isNaN(n)?u=c=64:isNaN(i)&&(c=64),p=p+a._keyStr.charAt(r)+a._keyStr.charAt(o)+a._keyStr.charAt(u)+a._keyStr.charAt(c);return p},decode:function(e){try{if(window.btoa&&window.atob)return decodeURIComponent(escape(window.atob(e)))}catch(t){}return a._decode(e)},_decode:function(e){var t,n,i,r,o,u,c="",p=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");p<e.length;)t=a._keyStr.indexOf(e.charAt(p++))<<2|(r=a._keyStr.indexOf(e.charAt(p++)))>>4,n=(15&r)<<4|(o=a._keyStr.indexOf(e.charAt(p++)))>>2,i=(3&o)<<6|(u=a._keyStr.indexOf(e.charAt(p++))),c+=String.fromCharCode(t),64!==o&&(c+=String.fromCharCode(n)),64!==u&&(c+=String.fromCharCode(i));return c=s.decode(c)}},u=Object.prototype.toString;function c(t){switch(u.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 p,l={DISABLE:0,ERROR:1,WARN:2,INFO:3},d=l.WARN,f={error:function(e){d>=l.ERROR&&h(e)},warn:function(e){d>=l.WARN&&h(e)},info:function(e){d>=l.INFO&&h(e)}},h=function(e){try{console.log("[Amplitude] "+e)}catch(t){}},g=function e(t){if("array"===c(t))for(var n=0;n<t.length;n++)t[n]=e(t[n]);else if("object"===c(t))for(var i in t)t.hasOwnProperty(i)&&(t[i]=e(t[i]));else t=v(t);return t},v=function(e){return"string"===c(e)&&e.length>
1o.MAX_STRING_LENGTH?e.substring(0,o.MAX_STRING_LENGTH):e},y=function(e,t,n){return c(e)===n||(f.error("Invalid "+t+" input type. Expected "+n+" but received "+c(e)),!1)},m=function(e){var t=c(e);if("object"!==t)return f.error("Error: invalid properties format. Expecting Javascript object, received "+t+", ignoring"),{};if(Object.keys(e).length>o.MAX_PROPERTY_KEYS)return f.error("Error: too many properties (more than 1000), ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,s=c(r);"string"!==s&&(r=String(r),f.warn("WARNING: Non-string property key, received type "+s+', coercing to string "'+r+'"'));var a=I(r,e[i]);null!==a&&(n[r]=a)}return n},_=["nan","function","arguments","regexp","element"],I=function e(t,n){var i=c(n);if(-1!==_.indexOf(i))f.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),f.warn('WARNING: Property key "'+t+'" with value type error, coercing to '+n);else if("array"===i){for(var r=[],o=0;o<n.length;o++){var s=n[o],a=c(s);"array"!==a?"object"===a?r.push(m(s)):r.push(e(t,s)):f.warn("WARNING: Cannot have "+a+" nested in an array property value, skipping")}n=r}else"object"===i&&(n=m(n));return n},w=function(e){var t=c(e);if("object"!==t)return f.error("Error: invalid groups format. Expecting Javascript object, received "+t+", ignoring"),{};var n={};for(var i in e)if(e.hasOwnProperty(i)){var r=i,o=c(r);"string"!==o&&(r=String(r),f.warn("WARNING: Non-string groupType, received type "+o+', coercing to string "'+r+'"'));var s=E(r,e[i]);null!==s&&(n[r]=s)}return n},E=function(e,t){var n=c(t);if("string"===n)return t;if("date"===n||"number"===n||"boolean"===n)return t=String(t),f.warn("WARNING: Non-string groupName, received type "+n+', coercing to string "'+t+'"'),t;if("array"===n){for(var i=[],r=0;r<t.length;r++){var o=t[r],s=c(o);"array"!==s&&"object"!==s?"string"===s?i.push(o):"date"!==s&&"number"!==s&&"boolean"!==s||(o=String(o),f.warn("WARNING: Non-string groupName, received type "+s+', coercing to string "'+o+'"'),i.push(o)):f.warn("WARNING: Skipping nested "+s+" in array groupName")}return i}f.warn("WARNING: Non-string groupName, received type "+n+". Please use strings or array of strings for groupName")},b={setLogLevel:function(e){l.hasOwnProperty(e)&&(d=l[e])},getLogLevel:function(){return d},logLevels:l,log:f,isEmptyString:function(e){return!e||0===e.length},getQueryParam:function(e,t){e=e.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+e+"=([^&#]*)").exec(t);return null===n?void 0:decodeURIComponent(n[1].replace(/\+/g," "))},sessionStorageEnabled:function(){try{if(window.sessionStorage)return!0}catch(e){}return!1},truncate:g,validateGroups:w,validateInput:y,validateProperties:m},S=function(){return window.location},N={set:function(e,t,n){var i=null!==t?n.expirationDays:-1;if(i){var r=new Date;r.setTime(r.getTime()+24*i*60*60*1e3),i=r}var o=e+"="+t;i&&(o+="; expires="+i.toUTCString()),o+="; path=/",n.domain&&(o+="; domain="+n.domain),n.secure&&(o+="; Secure"),n.sameSite&&(o+="; SameSite="+n.sameSite),document.cookie=o},get:function(e){try{for(var t=document.cookie.split(";"),n=null,i=0;i<t.length;i++){for(var r=t[i];" "===r.charAt(0);)r=r.substring(1,r.length);if(0===r.indexOf(e)){n=r.substring(e.length,r.length);break}}return n}catch(o){return null}}},T={expirationDays:void 0,domain:void 0},O=function(e){var t=document.createElement("a");return t.href=e,t.hostname||location.hostname},x=function(e){var t=O(e).split("."),n=t[t.length-1],i=[];if(4===t.length&&n===parseInt(n,10))return i;if(t.length<=1)return i;for(var r=t.length-2;r>=0;--r)i.push(t.slice(r).join("."));for(var o=0;o<i.length;++o){var s="__tld_test__",a=i[o],u={domain:"."+a};if(N.set(s,1,u),N.get(s))return N.set(s,null,u),a}return""},A=function(e){if(0===arguments.length)return T;e=e||{},T.expirationDays=e.expirationDays,T.secure=e.secure,T.sameSite=e.sameSite;var t=b.isEmptyString(e.domain)?"."+x(S().href):e.domain,n=Math.random();T.domain=t,P("amplitude_test",n);var i=k("amplitude_test");return i&&i===n||(t=null),U("amplitude_test"),T.domain=t,T},R=function(e){var t="";return T.domain&&(t="."===T.domain.charAt(0)?T.domain.substring(1):T.domain),e+t},k=function(e){var t=R(e)+"=",n=N.get(t);try{if(n)return JSON.parse(a.decode(n))}catch(i){return null}return null},P=function(e,t){try{return N.set(R(e),a.encode(JSON.stringify(t)),T),!0}catch(n){return!1}},U=function(e){try{return N.set(R(e),null,T),!0}catch(t){return!1}},C={reset:function(){T={expirationDays:void 0,domain:void 0}},options:A,get:k,set:P,remove:U};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}())p=window.localStorage;else if(window.globalStorage)try{p=window.globalStorage[window.location.hostname]}catch(ze){}else if("undefined"!==typeof document){var D=document.createElement("div"),q="localStorage";D.style.display="none",document.getElementsByTagName("head")[0].appendChild(D),D.addBehavior&&(D.addBehavior("#default#userdata"),p={length:0,setItem:function(e,t){D.load(q),D.getAttribute(e)||this.length++,D.setAttribute(e,t),D.save(q)},getItem:function(e){return D.load(q),D.getAttribute(e)},removeItem:function(e){D.load(q),D.getAttribute(e)&&this.length--,D.removeAttribute(e),D.save(q)},clear:function(){D.load(q);for(var e,t=0;e=D.XMLDocument.documentElement.attributes[t++];)D.removeAttribute(e.name);D.save(q),this.length=0},key:function(e){return D.load(q),D.XMLDocument.documentElement.attributes[e]}},D.load(q),p.length=D.XMLDocument.documentElement.attributes.length)}p||(p={length:0,setItem:function(e,t){},getItem:function(e){},removeItem:function(e){},clear:function(){},key:function(e){}});var M=p,j=function(){this.storage=null};j.prototype._cookiesEnabled=function(){var e,t=String(new Date);try{return C.set(o.COOKIE_TEST,t),e=C.get(o.COOKIE_TEST)===t,C.remove(o.COOKIE_TEST),e}catch(ze){}return!1},j.prototype.getStorage=function(){if(null!==this.storage)return this.storage;if(this._cookiesEnabled())this.storage=C;else{var e="amp_cookiestore_";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(t){try{return JSON.parse(M.getItem(e+t))}catch(ze){}return null},set:function(t,n){try{return M.setItem(e+t,JSON.stringify(n)),!0}catch(ze){}return!1},remove:function(t){try{M.removeItem(e+t)}catch(ze){return!1}}}}return this.storage};var V=function(e,t){var n=e?"?"+e.split(".").slice(-1)[0].replace(/\|/g,"&"):"",i=function(e,t,n,i){return b.getQueryParam(e,t)||b.getQueryParam(n,i)},r=i(o.UTM_SOURCE,t,"utmcsr",n),s=i(o.UTM_MEDIUM,t,"utmcmd",n),a=i(o.UTM_CAMPAIGN,t,"utmccn",n),u=i(o.UTM_TERM,t,"utmctr",n),c=i(o.UTM_CONTENT,t,"utmcct",n),p={},l=function(e,t){b.isEmptyString(t)||(p[e]=t)};return l(o.UTM_SOURCE,r),l(o.UTM_MEDIUM,s),l(o.UTM_CAMPAIGN,a),l(o.UTM_TERM,u),l(o.UTM_CONTENT,c),p},F="$add",G="$append",L="$clearAll",K="$prepend",z="$set",B="$setOnce",W="$unset",Q=function(){this.userPropertiesOperations={},this.properties=[]};Q.prototype.add=function(e,t){return"number"===c(t)||"string"===c(t)?this._addOperation(F,e,t):b.log.error("Unsupported type for value: "+c(t)+", expecting number or string"),this},Q.prototype.append=function(e,t){return this._addOperation(G,e,t),this},Q.prototype.clearAll=function(){return Object.keys(this.userPropertiesOperations).length>0?(this.userPropertiesOperations.hasOwnProperty(L)||b.log.error("Need to send $clearAll on its own Identify object without any other operations, skipping $clearAll"),this):(this.userPropertiesOperations[L]="-",this)},Q.prototype.prepend=function(e,t){return this._addOperation(K,e,t),this},Q.prototype.set=function(e,t){return this._addOperation(z,e,t),this},Q.prototype.setOnce=function(e,t){return this._addOperation(B,e,t),this},Q.prototype.unset=function(e){return this._addOperation(W,e,"-"),this},Q.prototype._addOperation=function(e,t,n){this.userPropertiesOperations.hasOwnProperty(L)?b.log.error("This identify already contains a $clearAll operation, skipping operation "+e):-1===this.properties.indexOf(t)?(this.userPropertiesOperations.hasOwnProperty(e)||(this.userPropertiesOperations[e]={}),this.userPropertiesOperations[e][t]=n,this.properties.push(t)):b.log.error('User property "'+t+'" already used in this identify, skipping operation '+e)};var $="undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function Y(e,t){return e(t={exports:{}},t.exports),t.exports}var J=Y((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){return e<<t|e>>>32-t}function r(e,t,r,o,s,a){return n(i(n(n(t,e),n(o,a)),s),r)}function o(e,t,n,i,o,s,a){return r(t&n|~t&i,e,t,o,s,a)}function s(e,t,n,i,o,s,a){return r(t&i|n&~i,e,t,o,s,a)}function a(e,t,n,i,o,s,a){return r(t^n^i,e,t,o,s,a)}function u(e,t,n,i,o,s,a){return r(n^(t|~i),e,t,o,s,a)}function c(e,t){var i,r,c,p,l;e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;var d=1732584193,f=-271733879,h=-1732584194,g=271733878;for(i=0;i<e.length;i+=16)r=d,c=f,p=h,l=g,d=o(d,f,h,g,e[i],7,-680876936),g=o(g,d,f,h,e[i+1],12,-389564586),h=o(h,g,d,f,e[i+2],17,606105819),f=o(f,h,g,d,e[i+3],22,-1044525330),d=o(d,f,h,g,e[i+4],7,-176418897),g=o(g,d,f,h,e[i+5],12,1200080426),h=o(h,g,d,f,e[i+6],17,-1473231341),f=o(f,h,g,d,e[i+7],22,-45705983),d=o(d,f,h,g,e[i+8],7,1770035416),g=o(g,d,f,h,e[i+9],12,-1958414417),h=o(h,g,d,f,e[i+10],17,-42063),f=o(f,h,g,d,e[i+11],22,-1990404162),d=o(d,f,h,g,e[i+12],7,1804603682),g=o(g,d,f,h,e[i+13],12,-40341101),h=o(h,g,d,f,e[i+14],17,-1502002290),d=s(d,f=o(f,h,g,d,e[i+15],22,1236535329),h,g,e[i+1],5,-165796510),g=s(g,d,f,h,e[i+6],9,-1069501632),h=s(h,g,d,f,e[i+11],14,643717713),f=s(f,h,g,d,e[i],20,-373897302),d=s(d,f,h,g,e[i+5],5,-701558691),g=s(g,d,f,h,e[i+10],9,38016083),h=s(h,g,d,f,e[i+15],14,-660478335),f=s(f,h,g,d,e[i+4],20,-405537848),d=s(d,f,h,g,e[i+9],5,568446438),g=s(g,d,f,h,e[i+14],9,-1019803690),h=s(h,g,d,f,e[i+3],14,-187363961),f=s(f,h,g,d,e[i+8],20,1163531501),d=s(d,f,h,g,e[i+13],5,-1444681467),g=s(g,d,f,h,e[i+2],9,-51403784),h=s(h,g,d,f,e[i+7],14,1735328473),d=a(d,f=s(f,h,g,d,e[i+12],20,-1926607734),h,g,e[i+5],4,-378558),g=a(g,d,f,h,e[i+8],11,-2022574463),h=a(h,g,d,f,e[i+11],16,1839030562),f=a(f,h,g,d,e[i+14],23,-35309556),d=a(d,f,h,g,e[i+1],4,-1530992060),g=a(g,d,f,h,e[i+4],11,1272893353),h=a(h,g,d,f,e[i+7],16,-155497632),f=a(f,h,g,d,e[i+10],23,-1094730640),d=a(d,f,h,g,e[i+13],4,681279174),g=a(g,d,f,h,e[i],11,-358537222),h=a(h,g,d,f,e[i+3],16,-722521979),f=a(f,h,g,d,e[i+6],23,76029189),d=a(d,f,h,g,e[i+9],4,-640364487),g=a(g,d,f,h,e[i+12],11,-421815835),h=a(h,g,d,f,e[i+15],16,530742520),d=u(d,f=a(f,h,g,d,e[i+2],23,-995338651),h,g,e[i],6,-198630844),g=u(g,d,f,h,e[i+7],10,1126891415),h=u(h,g,d,f,e[i+14],15,-1416354905),f=u(f,h,g,d,e[i+5],21,-57434055),d=u(d,f,h,g,e[i+12],
16,1700485571),g=u(g,d,f,h,e[i+3],10,-1894986606),h=u(h,g,d,f,e[i+10],15,-1051523),f=u(f,h,g,d,e[i+1],21,-2054922799),d=u(d,f,h,g,e[i+8],6,1873313359),g=u(g,d,f,h,e[i+15],10,-30611744),h=u(h,g,d,f,e[i+6],15,-1560198380),f=u(f,h,g,d,e[i+13],21,1309151649),d=u(d,f,h,g,e[i+4],6,-145523070),g=u(g,d,f,h,e[i+11],10,-1120210379),h=u(h,g,d,f,e[i+2],15,718787259),f=u(f,h,g,d,e[i+9],21,-343485551),d=n(d,r),f=n(f,c),h=n(h,p),g=n(g,l);return[d,f,h,g]}function p(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 l(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 d(e){return p(c(l(e),8*e.length))}function f(e,t){var n,i,r=l(e),o=[],s=[];for(o[15]=s[15]=void 0,r.length>16&&(r=c(r,8*e.length)),n=0;n<16;n+=1)o[n]=909522486^r[n],s[n]=1549556828^r[n];return i=c(o.concat(l(t)),512+8*t.length),p(c(s.concat(i),640))}function h(e){var t,n,i="0123456789abcdef",r="";for(n=0;n<e.length;n+=1)t=e.charCodeAt(n),r+=i.charAt(t>>>4&15)+i.charAt(15&t);return r}function g(e){return unescape(encodeURIComponent(e))}function v(e){return d(g(e))}function y(e){return h(v(e))}function m(e,t){return f(g(e),g(t))}function _(e,t){return h(m(e,t))}function I(e,t,n){return t?n?m(t,e):_(t,e):n?v(e):y(e)}e.exports?e.exports=I:t.md5=I}($)})),X=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,(function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()}))},H=Object.getOwnPropertySymbols,Z=Object.prototype.hasOwnProperty,ee=Object.prototype.propertyIsEnumerable;function te(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function ne(){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(r){return!1}}var ie=ne()?Object.assign:function(e,t){for(var n,i,r=te(e),o=1;o<arguments.length;o++){for(var s in n=Object(arguments[o]))Z.call(n,s)&&(r[s]=n[s]);if(H){i=H(n);for(var a=0;a<i.length;a++)ee.call(n,i[a])&&(r[i[a]]=n[i[a]])}}return r},re="%[a-f0-9]{2}",oe=new RegExp(re,"gi"),se=new RegExp("("+re+")+","gi");function ae(e,t){try{return decodeURIComponent(e.join(""))}catch(r){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),i=e.slice(t);return Array.prototype.concat.call([],ae(n),ae(i))}function ue(e){try{return decodeURIComponent(e)}catch(i){for(var t=e.match(oe),n=1;n<t.length;n++)t=(e=ae(t,n).join("")).match(oe);return e}}function ce(e){for(var t={"%FE%FF":"\ufffd\ufffd","%FF%FE":"\ufffd\ufffd"},n=se.exec(e);n;){try{t[n[0]]=decodeURIComponent(n[0])}catch(a){var i=ue(n[0]);i!==n[0]&&(t[n[0]]=i)}n=se.exec(e)}t["%C2"]="\ufffd";for(var r=Object.keys(t),o=0;o<r.length;o++){var s=r[o];e=e.replace(new RegExp(s,"g"),t[s])}return e}var pe=function(e){if("string"!==typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+typeof e+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return ce(e)}};function le(e){switch(e.arrayFormat){case"index":return function(t,n,i){return null===n?[fe(t,e),"[",i,"]"].join(""):[fe(t,e),"[",fe(i,e),"]=",fe(n,e)].join("")};case"bracket":return function(t,n){return null===n?fe(t,e):[fe(t,e),"[]=",fe(n,e)].join("")};default:return function(t,n){return null===n?fe(t,e):[fe(t,e),"=",fe(n,e)].join("")}}}function de(e){var t;switch(e.arrayFormat){case"index":return function(e,n,i){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===i[e]&&(i[e]={}),i[e][t[1]]=n):i[e]=n};case"bracket":return function(e,n,i){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==i[e]?i[e]=[].concat(i[e],n):i[e]=[n]:i[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function fe(e,t){return t.encode?t.strict?X(e):encodeURIComponent(e):e}function he(e){return Array.isArray(e)?e.sort():"object"===typeof e?he(Object.keys(e)).sort((function(e,t){return Number(e)-Number(t)})).map((function(t){return e[t]})):e}function ge(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function ve(e,t){var n=de(t=ie({arrayFormat:"none"},t)),i=Object.create(null);return"string"!==typeof e?i:(e=e.trim().replace(/^[?#&]/,""))?(e.split("&").forEach((function(e){var t=e.replace(/\+/g," ").split("="),r=t.shift(),o=t.length>0?t.join("="):void 0;o=void 0===o?null:pe(o),n(pe(r),o,i)})),Object.keys(i).sort().reduce((function(e,t){var n=i[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=he(n):e[t]=n,e}),Object.create(null))):i}var ye={extract:ge,parse:ve,stringify:function(e,t){!1===(t=ie({encode:!0,strict:!0,arrayFormat:"none"},t)).sort&&(t.sort=function(){});var n=le(t);return e?Object.keys(e).sort(t.sort).map((function(i){var r=e[i];if(void 0===r)return"";if(null===r)return fe(i,t);if(Array.isArray(r)){var o=[];
1return r.slice().forEach((function(e){void 0!==e&&o.push(n(i,e,o.length))})),o.join("&")}return fe(i,t)+"="+fe(r,t)})).filter((function(e){return e.length>0})).join("&"):""},parseUrl:function(e,t){return{url:e.split("?")[0]||"",query:ve(ge(e),t)}}},me=function(e,t){this.url=e,this.data=t||{}};me.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(ye.stringify(this.data))}else{var n=new XMLHttpRequest;n.open("POST",this.url,!0),n.onreadystatechange=function(){4===n.readyState&&e(n.status,n.responseText)},n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.send(ye.stringify(this.data))}};var _e=function(){this._price=null,this._productId=null,this._quantity=1,this._revenueType=null,this._properties=null};_e.prototype.setProductId=function(e){return"string"!==c(e)?b.log.error("Unsupported type for productId: "+c(e)+", expecting string"):b.isEmptyString(e)?b.log.error("Invalid empty productId"):this._productId=e,this},_e.prototype.setQuantity=function(e){return"number"!==c(e)?b.log.error("Unsupported type for quantity: "+c(e)+", expecting number"):this._quantity=parseInt(e),this},_e.prototype.setPrice=function(e){return"number"!==c(e)?b.log.error("Unsupported type for price: "+c(e)+", expecting number"):this._price=e,this},_e.prototype.setRevenueType=function(e){return"string"!==c(e)?b.log.error("Unsupported type for revenueType: "+c(e)+", expecting string"):this._revenueType=e,this},_e.prototype.setEventProperties=function(e){return"object"!==c(e)?b.log.error("Unsupported type for eventProperties: "+c(e)+", expecting object"):this._properties=b.validateProperties(e),this},_e.prototype._isValidRevenue=function(){return"number"===c(this._price)||(b.log.error("Invalid revenue, need to set price field"),!1)},_e.prototype._toJSONObject=function(){var e="object"===c(this._properties)?this._properties:{};return null!==this._productId&&(e[o.REVENUE_PRODUCT_ID]=this._productId),null!==this._quantity&&(e[o.REVENUE_QUANTITY]=this._quantity),null!==this._price&&(e[o.REVENUE_PRICE]=this._price),null!==this._revenueType&&(e[o.REVENUE_REVENUE_TYPE]=this._revenueType),e};var Ie,we,Ee=Y((function(e,t){!function(n,i){var r="0.7.19",o="",s="?",a="function",u="undefined",c="object",p="string",l="major",d="model",f="name",h="type",g="vendor",v="version",y="architecture",m="console",_="mobile",I="tablet",w="smarttv",E="wearable",b="embedded",S={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 typeof e===p?e.replace(/[^\d\.]/g,"").split(".")[0]:i},trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},N={rgx:function(e,t){for(var n,r,o,s,u,p,l=0;l<t.length&&!u;){var d=t[l],f=t[l+1];for(n=r=0;n<d.length&&!u;)if(u=d[n++].exec(e))for(o=0;o<f.length;o++)p=u[++r],typeof(s=f[o])===c&&s.length>0?2==s.length?typeof s[1]==a?this[s[0]]=s[1].call(this,p):this[s[0]]=s[1]:3==s.length?typeof s[1]!==a||s[1].exec&&s[1].test?this[s[0]]=p?p.replace(s[1],s[2]):i:this[s[0]]=p?s[1].call(this,p,s[2]):i:4==s.length&&(this[s[0]]=p?s[3].call(this,p.replace(s[1],s[2])):i):this[s]=p||i;l+=2}},str:function(e,t){for(var n in t)if(typeof t[n]===c&&t[n].length>0){for(var r=0;r<t[n].length;r++)if(S.has(t[n][r],e))return n===s?i:n}else if(S.has(t[n],e))return n===s?i:n;return e}},T={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","?":"/"}},name:{"Opera Mobile":"Opera Mobi","IE Mobile":"IEMobile"}},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"},name:{"Windows Phone":"Windows Phone OS"}}}}
1,O={browser:[[/(opera\smini)\/([\w\.-]+)/i,/(opera\s[mobiletab]+).+version\/([\w\.-]+)/i,/(opera).+version\/([\w\.]+)/i,/(opera)[\/\s]+([\w\.]+)/i],[f,v],[/(opios)[\/\s]+([\w\.]+)/i],[[f,"Opera Mini"],v],[/\s(opr)\/([\w\.]+)/i],[[f,"Opera"],v],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/\s]?([\w\.]*)/i,/(avant\s|iemobile|slim|baidu)(?:browser)?[\/\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],[f,v],[/(konqueror)\/([\w\.]+)/i],[[f,"Konqueror"],v],[/(trident).+rv[:\s]([\w\.]+).+like\sgecko/i],[[f,"IE"],v],[/(edge|edgios|edga)\/((\d+)?[\w\.]+)/i],[[f,"Edge"],v],[/(yabrowser)\/([\w\.]+)/i],[[f,"Yandex"],v],[/(puffin)\/([\w\.]+)/i],[[f,"Puffin"],v],[/(focus)\/([\w\.]+)/i],[[f,"Firefox Focus"],v],[/(opt)\/([\w\.]+)/i],[[f,"Opera Touch"],v],[/((?:[\s\/])uc?\s?browser|(?:juc.+)ucweb)[\/\s]?([\w\.]+)/i],[[f,"UCBrowser"],v],[/(comodo_dragon)\/([\w\.]+)/i],[[f,/_/g," "],v],[/((?:android.+)crmo|crios)\/([\w\.]+)/i,/android.+(chrome)\/([\w\.]+)\s+(?:mobile\s?safari)/i],[[f,"Chrome Mobile"],v],[/(micromessenger)\/([\w\.]+)/i],[[f,"WeChat"],v],[/(brave)\/([\w\.]+)/i],[[f,"Brave"],v],[/(qqbrowserlite)\/([\w\.]+)/i],[f,v],[/(QQ)\/([\d\.]+)/i],[f,v],[/m?(qqbrowser)[\/\s]?([\w\.]+)/i],[f,v],[/(BIDUBrowser)[\/\s]?([\w\.]+)/i],[f,v],[/(2345Explorer)[\/\s]?([\w\.]+)/i],[f,v],[/(MetaSr)[\/\s]?([\w\.]+)/i],[f],[/(LBBROWSER)/i],[f],[/xiaomi\/miuibrowser\/([\w\.]+)/i],[v,[f,"MIUI Browser"]],[/;fbav\/([\w\.]+);/i],[v,[f,"Facebook"]],[/safari\s(line)\/([\w\.]+)/i,/android.+(line)\/([\w\.]+)\/iab/i],[f,v],[/headlesschrome(?:\/([\w\.]+)|\s)/i],[v,[f,"Chrome Headless"]],[/\swv\).+(chrome)\/([\w\.]+)/i],[[f,/(.+)/,"$1 WebView"],v],[/((?:oculus|samsung)browser)\/([\w\.]+)/i],[[f,/(.+(?:g|us))(.+)/,"$1 $2"],v],[/android.+version\/([\w\.]+)\s+(?:mobile\s?safari|safari)*/i],[v,[f,"Android Browser"]],[/(chrome|omniweb|arora|[tizenoka]{5}\s?browser)\/v?([\w\.]+)/i],[f,v],[/(dolfin)\/([\w\.]+)/i],[[f,"Dolphin"],v],[/(coast)\/([\w\.]+)/i],[[f,"Opera Coast"],v],[/fxios\/([\w\.-]+)/i],[v,[f,"Firefox"]],[/version\/([\w\.]+).+?mobile\/\w+\s(safari)/i],[v,[f,"Mobile Safari"]],[/version\/([\w\.]+).+?(mobile\s?safari|safari)/i],[v,f],[/webkit.+?(gsa)\/([\w\.]+).+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[[f,"GSA"],v],[/webkit.+?(mobile\s?safari|safari)(\/[\w\.]+)/i],[f,[v,N.str,T.browser.oldsafari.version]],[/(webkit|khtml)\/([\w\.]+)/i],[f,v],[/(navigator|netscape)\/([\w\.-]+)/i],[[f,"Netscape"],v],[/(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\:.
vendor: 4,173 bytes, line 1
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],[f,v]],cpu:[[/(?:(amd|x(?:(?:86|64)[_-])?|wow|win)64)[;\)]/i],[[y,"amd64"]],[/(ia32(?=;))/i],[[y,S.lowerize]],[/((?:i[346]|x)86)[;\)]/i],[[y,"ia32"]],[/windows\s(ce|mobile);\sppc;/i],[[y,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?:\smac|;|\))/i],[[y,/ower/,"",S.lowerize]],[/(sun4\w)[;\)]/i],[[y,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|arm(?:64|(?=v\d+[;l]))|(?=atmel\s)avr|(?:irix|mips|sparc)(?:64)?(?=;)|pa-risc)/i],[[y,S.lowerize]]],device:[[/\((ipad|playbook);[\w\s\),;-]+(rim|apple)/i],[d,g,[h,I]],[/applecoremedia\/[\w\.]+ \((ipad)/],[d,[g,"Apple"],[h,I]],[/(apple\s{0,1}tv)/i],[[d,"Apple TV"],[g,"Apple"]],[/(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],[g,d,[h,I]],[/(kf[A-z]+)\sbuild\/.+silk\//i],[d,[g,"Amazon"],[h,I]],[/(sd|kf)[0349hijorstuw]+\sbuild\/.+silk\//i],[[d,N.str,T.device.amazon.model],[g,"Amazon"],[h,_]],[/android.+aft([bms])\sbuild/i],[d,[g,"Amazon"],[h,w]],[/\((ip[honed|\s\w*]+);.+(apple)/i],[d,g,[h,_]],[/\((ip[honed|\s\w*]+);/i],[d,[g,"Apple"],[h,_]],[/(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],[g,d,[h,_]],[/\(bb10;\s(\w+)/i],[d,[g,"BlackBerry"],[h,_]],[/android.+(transfo[prime\s]{4,10}\s\w+|eeepc|slider\s\w+|nexus 7|padfone|p00c)/i],[d,[g,"Asus"],[h,I]],[/(sony)\s(tablet\s[ps])\sbuild\//i,/(sony)?(?:sgp.+)\sbuild\//i],[[g,"Sony"],[d,"Xperia Tablet"],[h,I]],[/android.+\s([c-g]\d{4}|so[-l]\w+)(?=\sbuild\/|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[g,"Sony"],[h,_]],[/\s(ouya)\s/i,/(nintendo)\s([wids3u]+)/i],[g,d,[h,m]],[/android.+;\s(shield)\sbuild/i],[d,[g,"Nvidia"],[h,m]],[/(playstation\s[34portablevi]+)/i],[d,[g,"Sony"],[h,m]],[/(sprint\s(\w+))/i],[[g,N.str,T.device.sprint.vendor],[d,N.str,T.device.sprint.model],[h,_]],[/(lenovo)\s?(S(?:5000|6000)+(?:[-][\w+]))/i],[g,d,[h,I]],[/(htc)[;_\s-]+([\w\s]+(?=\)|\sbuild)|\w+)/i,/(zte)-(\w*)/i,/(alcatel|geeksphone|lenovo|nexian|panasonic|(?=;\s)sony)[_\s-]?([\w-]*)/i],[g,[d,/_/g," "],[h,_]],[/(nexus\s9)/i],[d,[g,"HTC"],[h,I]],[/d\/huawei([\w\s-]+)[;\)]/i,/(nexus\s6p)/i],[d,[g,"Huawei"],[h,_]],[/(microsoft);\s(lumia[\s\w]+)/i],[g,d,[h,_]],[/[\s\(;](xbox(?:\sone)?)[\s\);]/i],[d,[g,"Microsoft"],[h,m]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[g,"Microsoft"],[h,_]],[/\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],[d,[g,"Motorola"],[h,_]],[/android.+\s(mz60\d|xoom[\s2]{0,2})\sbuild\//i],[d,[g,"Motorola"],[h,I]],[/hbbtv\/\d+\.\d+\.\d+\s+\([\w\s]*;\s*(\w[^;]*);([^;]*)/i],[[g,S.trim],[d,S.trim],[h,w]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[g,"Samsung"],[h,w]],[/\(dtv[\);].+(aquos)/i],[d,[g,"Sharp"],[h,w]],[/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],[[g,"Samsung"],d,[h,I]],[/smart-tv.+(samsung)/i],[g,[h,w],d],[/((s[cgp]h-\w+|gt-\w+|galaxy\snexus|sm-\w[\w\d]+))/i,/(sam[sung]*)[\s-]*(\w+-?[\w-]*)/i,/sec-((sgh\w+))/i],[[g,"Samsung"],d,[h,_]],[/sie-(\w*)/i],[d,[g,"Siemens"],[h,_]],[/(maemo|nokia).*(n900|lumia\s\d+)/i,/(nokia)[\s_-]?([\w-]*)/i],[[g,"Nokia"],d,[h,_]],[/android[x\d\.\s;]+\s([ab][1-7]\-?[0178a]\d\d?)/i],[d,[g,"Acer"],[h,I]],[/android.+([vl]k\-?\d{3})\s+build/i],[d,[g,"LG"],[h,I]],[/android\s3\.[\s\w;-]{10}(lg?)-([06cv9]{3,4})/i],[[g,"LG"],d,[h,I]],[/(lg) netcast\.tv/i],[g,d,[h,w]],[/(nexus\s[45])/i,/lg[e;\s\/-]+(\w*)/i,/android.+lg(\-?[\d\w]+)\s+build/i],[d,[g,"LG"],[h,_]],[/android.+(ideatab[a-z0-9\-\s]+)/i],[d,[g,"Lenovo"],[h,I]],[/linux;.+((jolla));/i],[g,d,[h,_]],[/((pebble))app\/[\d\.]+\s/i],[g,d,[h,E]],[/android.+;\s(oppo)\s?([\w\s]+)\sbuild/i],[g,d,[h,_]],[/crkey/i],[[d,"Chromecast"],[g,"Google"]],[/android.+;\s(glass)\s\d/i],[d,[g,"Google"],[h,E]],[/android.+;\s(pixel c)[\s)]/i],[d,[g,"Google"],[h,I]],[/android.+;\s(pixel( [23])?( xl)?)\s/i],[d,[g,"Google"],[h,_]],[/android.+;
1\s(\w+)\s+build\/hm\1/i,/android.+(hm[\s\-_]*note?[\s_]*(?:\d\w)?)\s+build/i,/android.+(mi[\s\-_]*(?:one|one[\s_]plus|note lte)?[\s_]*(?:\d?\w?)[\s_]*(?:plus)?)\s+build/i,/android.+(redmi[\s\-_]*(?:note)?(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[g,"Xiaomi"],[h,_]],[/android.+(mi[\s\-_]*(?:pad)(?:[\s_]*[\w\s]+))\s+build/i],[[d,/_/g," "],[g,"Xiaomi"],[h,I]],[/android.+;\s(m[1-5]\snote)\sbuild/i],[d,[g,"Meizu"],[h,I]],[/(mz)-([\w-]{2,})/i],[[g,"Meizu"],d,[h,_]],[/android.+a000(1)\s+build/i,/android.+oneplus\s(a\d{4})\s+build/i],[d,[g,"OnePlus"],[h,_]],[/android.+[;\/]\s*(RCT[\d\w]+)\s+build/i],[d,[g,"RCA"],[h,I]],[/android.+[;\/\s]+(Venue[\d\s]{2,7})\s+build/i],[d,[g,"Dell"],[h,I]],[/android.+[;\/]\s*(Q[T|M][\d\w]+)\s+build/i],[d,[g,"Verizon"],[h,I]],[/android.+[;\/]\s+(Barnes[&\s]+Noble\s+|BN[RT])(V?.*)\s+build/i],[[g,"Barnes & Noble"],d,[h,I]],[/android.+[;\/]\s+(TM\d{3}.*\b)\s+build/i],[d,[g,"NuVision"],[h,I]],[/android.+;\s(k88)\sbuild/i],[d,[g,"ZTE"],[h,I]],[/android.+[;\/]\s*(gen\d{3})\s+build.*49h/i],[d,[g,"Swiss"],[h,_]],[/android.+[;\/]\s*(zur\d{3})\s+build/i],[d,[g,"Swiss"],[h,I]],[/android.+[;\/]\s*((Zeki)?TB.*\b)\s+build/i],[d,[g,"Zeki"],[h,I]],[/(android).+[;\/]\s+([YR]\d{2})\s+build/i,/android.+[;\/]\s+(Dragon[\-\s]+Touch\s+|DT)(\w{5})\sbuild/i],[[g,"Dragon Touch"],d,[h,I]],[/android.+[;\/]\s*(NS-?\w{0,9})\sbuild/i],[d,[g,"Insignia"],[h,I]],[/android.+[;\/]\s*((NX|Next)-?\w{0,9})\s+build/i],[d,[g,"NextBook"],[h,I]],[/android.+[;\/]\s*(Xtreme\_)?(V(1[045]|2[015]|30|40|60|7[05]|90))\s+build/i],[[g,"Voice"],d,[h,_]],[/android.+[;\/]\s*(LVTEL\-)?(V1[12])\s+build/i],[[g,"LvTel"],d,[h,_]],[/android.+;\s(PH-1)\s/i],[d,[g,"Essential"],[h,_]],[/android.+[;\/]\s*(V(100MD|700NA|7011|917G).*\b)\s+build/i],[d,[g,"Envizen"],[h,I]],[/android.+[;\/]\s*(Le[\s\-]+Pan)[\s\-]+(\w{1,9})\s+build/i],[g,d,[h,I]],[/android.+[;\/]\s*(Trio[\s\-]*.*)\s+build/i],[d,[g,"MachSpeed"],[h,I]],[/android.+[;\/]\s*(Trinity)[\-\s]*(T\d{3})\s+build/i],[g,d,[h,I]],[/android.+[;\/]\s*TU_(1491)\s+build/i],[d,[g,"Rotor"],[h,I]],[/android.+(KS(.+))\s+build/i],[d,[g,"Amazon"],[h,I]],[/android.+(Gigaset)[\s\-]+(Q\w{1,9})\s+build/i],[g,d,[h,I]],[/\s(tablet|tab)[;\/]/i,/\s(mobile)(?:[;\/]|\ssafari)/i],[[h,S.lowerize],g,d],[/[\s\/\(](smart-?tv)[;\)]/i],[[h,w]],[/(android[\w\.\s\-]{0,9});.+build/i],[d,[g,"Generic"]]],engine:[[/windows.+\sedge\/([\w\.]+)/i],[v,[f,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)/i],[[f,"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],[f,v],[/rv\:([\w\.]{1,9}).+(gecko)/i],[v,f]],os:[[/microsoft\s(windows)\s(vista|xp)/i],[f,v],[/(windows)\snt\s6\.2;\s(arm)/i,/(windows\sphone(?:\sos)*)[\s\/]?([\d\.\s\w]*)/i,/(windows\smobile|windows)[\s\/]?([ntce\d\.\s]+\w)/i],[[f,N.str,T.os.windows.name],[v,N.str,T.os.windows.version]],[/(win(?=3|9|n)|win\s9x\s)([nt\d\.]+)/i],[[f,"Windows"],[v,N.str,T.os.windows.version]],[/\((bb)(10);
1/i],[[f,"BlackBerry"],v],[/(blackberry)\w*\/?([\w\.]*)/i,/(tizen)[\/\s]([\w\.]+)/i,/(android|webos|palm\sos|qnx|bada|rim\stablet\sos|meego|contiki)[\/\s-]?([\w\.]*)/i,/linux;.+(sailfish);/i],[f,v],[/(symbian\s?os|symbos|s60(?=;))[\/\s-]?([\w\.]*)/i],[[f,"Symbian"],v],[/\((series40);/i],[f],[/mozilla.+\(mobile;.+gecko.+firefox/i],[[f,"Firefox OS"],v],[/(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],[[f,"Linux"],v],[/(cros)\s[\w]+\s([\w\.]+\w)/i],[[f,"Chromium OS"],v],[/(sunos)\s?([\w\.\d]*)/i],[[f,"Solaris"],v],[/\s([frentopc-]{0,4}bsd|dragonfly)\s?([\w\.]*)/i],[[f,"Linux"],v],[/(iphone)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[f,"iPhone"],[v,/_/g,"."]],[/(ipad)(?:.*os\s*([\w]*)\slike\smac|;\sopera)/i],[[f,"iPad"],[v,/_/g,"."]],[/(haiku)\s(\w+)/i],[f,v],[/cfnetwork\/.+darwin/i,/ip[honead]{2,4}(?:.*os\s([\w]+)\slike\smac|;\sopera)/i],[[v,/_/g,"."],[f,"iOS"]],[/(mac\sos\sx)\s?([\w\s\.]*)/i,/(macintosh|mac(?=_powerpc)\s)/i],[[f,"Mac"],[v,/_/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],[f,v]]},x=function(e,t){if("object"===typeof e&&(t=e,e=i),!(this instanceof x))return new x(e,t).getResult();var r=e||(n&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:o),s=t?S.extend(O,t):O;return this.getBrowser=function(){var e={name:i,version:i};return N.rgx.call(e,r,s.browser),e.major=S.major(e.version),e},this.getCPU=function(){var e={architecture:i};return N.rgx.call(e,r,s.cpu),e},this.getDevice=function(){var e={vendor:i,model:i,type:i};return N.rgx.call(e,r,s.device),e},this.getEngine=function(){var e={name:i,version:i};return N.rgx.call(e,r,s.engine),e},this.getOS=function(){var e={name:i,version:i};return N.rgx.call(e,r,s.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 r},this.setUA=function(e){return r=e,this},this};x.VERSION=r,x.BROWSER={NAME:f,MAJOR:l,VERSION:v},x.CPU={ARCHITECTURE:y},x.DEVICE={MODEL:d,VENDOR:g,TYPE:h,CONSOLE:m,MOBILE:_,SMARTTV:w,TABLET:I,WEARABLE:E,EMBEDDED:b},x.ENGINE={NAME:f,VERSION:v},x.OS={NAME:f,VERSION:v},e.exports&&(t=e.exports=x),t.UAParser=x;var A=n&&(n.jQuery||n.Zepto);if(typeof A!==u&&!A.ua){var R=new x;A.ua=R.getResult(),A.ua.get=function(){return R.getUA()},A.ua.set=function(e){R.setUA(e);var t=R.getResult();for(var n in t)A.ua[n]=t[n]}}}("object"===typeof window?window:$)})),be=(Ee.UAParser,function e(t){return t?(t^16*Math.random()>>t/4).toString(16):([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g,e)}),Se="5.11.0",Ne={language:navigator&&(navigator.languages&&navigator.languages[0]||navigator.language||navigator.userLanguage)||void 0},Te="Web",Oe={apiEndpoint:"api.amplitude.com",batchEvents:!1,cookieExpiration:3650,cookieName:"amplitude_id",sameSiteCookie:"None",deviceIdFromUrlParam:!1,domain:"",eventUploadPeriodMillis:3e4,eventUploadThreshold:30,forceHttps:!0,includeGclid:!1,includeReferrer:!1,includeUtm:!1,language:Ne.language,logLevel:"WARN",optOut:!1,onError:function(){},platform:Te,savedMaxCount:1e3,saveEvents:!0,saveParamsReferrerOncePerSession:!0,secureCookie:!1,sessionTimeout:18e5,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},unsetParamsReferrerOnNewSession:!1,unsentKey:"amplitude_unsent",unsentIdentifyKey:"amplitude_unsent_identify",uploadBatchSize:100},xe=function(e){this._instanceName=b.isEmptyString(e)?o.DEFAULT_INSTANCE:e.toLowerCase(),this._legacyStorageSuffix=this._instanceName===o.DEFAULT_INSTANCE?"":"_"+this._instanceName,this._unsentEvents=[],this._unsentIdentifys=[],this._ua=new Ee(navigator.userAgent).getResult(),this.options=r({},Oe,{trackingOptions:r({},Oe.trackingOptions)}),this.cookieStorage=(new j).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};xe.prototype.Identify=Q,xe.prototype.Revenue=_e,xe.prototype.init=function(e,t,n,i){var r=this;if("string"!==c(e)||b.isEmptyString(e))b.log.error("Invalid apiKey. Please re-initialize with a valid apiKey");else try{this.options.apiKey=e,this._storageSuffix="_"+e+this._legacyStorageSuffix;var s=!!this.cookieStorage.get(this.options.cookieName+this._storageSuffix
1);if(n&&n.deferInitialization&&!s)return void this._deferInitialization(e,t,n,i);Ae(this.options,n),"string"===c(this.options.logLevel)&&b.setLogLevel(this.options.logLevel);var a=Me(this);this._apiPropertiesTrackingOptions=Object.keys(a).length>0?{tracking_options:a}:{},this.cookieStorage.options({expirationDays:this.options.cookieExpiration,domain:this.options.domain,secure:this.options.secureCookie,sameSite:this.options.sameSiteCookie}),this.options.domain=this.cookieStorage.options().domain,this._instanceName===o.DEFAULT_INSTANCE&&Re(this),ke(this),this._pendingReadStorage=!0;var u=function(e){r.options.deviceId="object"===c(n)&&"string"===c(n.deviceId)&&!b.isEmptyString(n.deviceId)&&n.deviceId||r.options.deviceIdFromUrlParam&&r._getDeviceIdFromUrlParam(r._getUrlParams())||r.options.deviceId||e||be()+"R",r.options.userId="string"===c(t)&&!b.isEmptyString(t)&&t||"number"===c(t)&&t.toString()||r.options.userId||null;var i=(new Date).getTime();if((!r._sessionId||!r._lastEventTime||i-r._lastEventTime>r.options.sessionTimeout)&&(r.options.unsetParamsReferrerOnNewSession&&r._unsetUTMParams(),r._newSession=!0,r._sessionId=i,r.options.saveParamsReferrerOncePerSession&&r._trackParamsAndReferrer()),r.options.saveParamsReferrerOncePerSession||r._trackParamsAndReferrer(),r.options.saveEvents){for(var o=0;o<r._unsentEvents.length;o++){var s=r._unsentEvents[o].event_properties,a=r._unsentEvents[o].groups;r._unsentEvents[o].event_properties=b.validateProperties(s),r._unsentEvents[o].groups=b.validateGroups(a)}for(var u=0;u<r._unsentIdentifys.length;u++){var p=r._unsentIdentifys[u].user_properties,l=r._unsentIdentifys[u].groups;r._unsentIdentifys[u].user_properties=b.validateProperties(p),r._unsentIdentifys[u].groups=b.validateGroups(l)}}r._lastEventTime=i,Ue(r),r._pendingReadStorage=!1,r._sendEventsIfReady();for(var d=0;d<r._onInit.length;d++)r._onInit[d]();r._onInit=[],r._isInitialized=!0};Ie?this._migrateUnsentEvents((function(){Promise.all([Ie.getItem(r._storageSuffix
1),Ie.getItem(r.options.unsentKey+r._storageSuffix),Ie.getItem(r.options.unsentIdentifyKey+r._storageSuffix)]).then((function(e){if(e[0]){var t=JSON.parse(e[0]);t&&Pe(r,t)}r.options.saveEvents&&(r._unsentEvents=r._parseSavedUnsentEventsString(e[1]).concat(r._unsentEvents),r._unsentIdentifys=r._parseSavedUnsentEventsString(e[2]).concat(r._unsentIdentifys)),we?Promise.all([we.getCarrier(),we.getModel(),we.getManufacturer(),we.getVersion(),we.getUniqueId()]).then((function(e){r.deviceInfo={carrier:e[0],model:e[1],manufacturer:e[2],version:e[3]},u(e[4]),r.runQueuedFunctions(),"function"===c(i)&&i(r)})).catch((function(e){r.options.onError(e)})):(u(),r.runQueuedFunctions())})).catch((function(e){r.options.onError(e)}))})):(this.options.saveEvents&&(this._unsentEvents=this._loadSavedUnsentEvents(this.options.unsentKey).concat(this._unsentEvents),this._unsentIdentifys=this._loadSavedUnsentEvents(this.options.unsentIdentifyKey).concat(this._unsentIdentifys)),u(),this.runQueuedFunctions(),"function"===c(i)&&i(this))}catch(p){b.log.error(p),this.options.onError(p)}},xe.prototype._migrateUnsentEvents=function(e){var t=this;Promise.all([Ie.getItem(this.options.unsentKey),Ie.getItem(this.options.unsentIdentifyKey)]).then((function(e){if(t.options.saveEvents){var n=e[0],i=e[1],r=[],o=[];n&&(r.push(Ie.setItem(t.options.unsentKey+t._storageSuffix,JSON.stringify(n))),o.push(Ie.removeItem(t.options.unsentKey))),i&&(r.push(Ie.setItem(t.options.unsentIdentifyKey+t._storageSuffix,JSON.stringify(i))),o.push(Ie.removeItem(t.options.unsentIdentifyKey))),r.length>0&&Promise.all(r).then((function(){})).catch((function(e){t.options.onError(e)}))}})).then(e).catch((function(e){t.options.onError(e)}))},xe.prototype._trackParamsAndReferrer=function(){this.options.includeUtm&&this._initUtmData(),this.options.includeReferrer&&this._saveReferrer(this._getReferrer()),this.options.includeGclid&&this._saveGclid(this._getUrlParams())};var Ae=function e(t,n){if("object"===c(n)){var i=function(i){if(t.hasOwnProperty(i)){var r=n[i],o=c(t[i]);b.validateInput(r,i+" option",o)&&("boolean"===o?t[i]=!!r:"string"===o&&!b.isEmptyString(r)||"number"===o&&r>0?t[i]=r:"object"===o&&e(t[i],r))}};for(var r in n)n.hasOwnProperty(r)&&i(r)}};xe.prototype.runQueuedFunctions=function(){var e=this._q;this._q=[];for(var t=0;t<e.length;t++){var n=this[e[t][0]];"function"===c(n)&&n.apply(this,e[t].slice(1))}},xe.prototype._apiKeySet=function(e){return!b.isEmptyString(this.options.apiKey)||(b.log.error("Invalid apiKey. Please set a valid apiKey with init() before calling "+e),!1)},xe.prototype._loadSavedUnsentEvents=function(e){var t=this._getFromStorage(M,e),n=this._parseSavedUnsentEventsString(t,e);return this._setInStorage(M,e,JSON.stringify(n)),n},xe.prototype._parseSavedUnsentEventsString=function(e,t){if(b.isEmptyString(e))return[];if("string"===c(e))try{var n=JSON.parse(e);if("array"===c(n))return n}catch(ze){}return b.log.error("Unable to load "+t+" events. Restart with a new empty queue."),[]},xe.prototype.isNewSession=function(){return this._newSession},xe.prototype.onInit=function(e){this._isInitialized?e():this._onInit.push(e)},xe.prototype.getSessionId=function(){return this._sessionId},xe.prototype.nextEventId=function(){return this._eventId++,this._eventId},xe.prototype.nextIdentifyId=function(){return this._identifyId++,this._identifyId},xe.prototype.nextSequenceNumber=function(){return this._sequenceNumber++,this._sequenceNumber},xe.prototype._unsentCount=function(){return this._unsentEvents.length+this._unsentIdentifys.length},xe.prototype._sendEventsIfReady=function(e){return 0!==this._unsentCount()&&(this.options.batchEvents?this._unsentCount()>=this.options.eventUploadThreshold?(this.sendEvents(e),!0):(this._updateScheduled||(this._updateScheduled=!0,setTimeout(function(){this._updateScheduled=!1,this.sendEvents()}.bind(this),this.options.eventUploadPeriodMillis)),!1):(this.sendEvents(e),!0))},xe.prototype._getFromStorage=function(e,t){return e.getItem(t+this._storageSuffix
1)},xe.prototype._setInStorage=function(e,t,n){e.setItem(t+this._storageSuffix,n)};var Re=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix);if("object"!==c(t)&&!("object"===c(t=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix))&&t.deviceId&&t.sessionId&&t.lastEventTime)){var n=function(e){var t=M.getItem(e);return M.removeItem(e),t},i="string"===c(e.options.apiKey)&&"_"+e.options.apiKey.slice(0,6)||"",r=n(o.DEVICE_ID+i),s=n(o.USER_ID+i),a=n(o.OPT_OUT+i);null!==a&&void 0!==a&&(a="true"===String(a));var u=parseInt(n(o.SESSION_ID)),p=parseInt(n(o.LAST_EVENT_TIME)),l=parseInt(n(o.LAST_EVENT_ID)),d=parseInt(n(o.LAST_IDENTIFY_ID)),f=parseInt(n(o.LAST_SEQUENCE_NUMBER)),h=function(e){return"object"===c(t)&&t[e]};e.options.deviceId=h("deviceId")||r,e.options.userId=h("userId")||s,e._sessionId=h("sessionId")||u||e._sessionId,e._lastEventTime=h("lastEventTime")||p||e._lastEventTime,e._eventId=h("eventId")||l||e._eventId,e._identifyId=h("identifyId")||d||e._identifyId,e._sequenceNumber=h("sequenceNumber")||f||e._sequenceNumber,e.options.optOut=a||!1,t&&void 0!==t.optOut&&null!==t.optOut&&(e.options.optOut="true"===String(t.optOut)),Ue(e)}},ke=function(e){var t=e.cookieStorage.get(e.options.cookieName+e._storageSuffix
1);if("object"===c(t))Pe(e,t);else{var n=e.cookieStorage.get(e.options.cookieName+e._legacyStorageSuffix);"object"===c(n)&&(e.cookieStorage.remove(e.options.cookieName+e._legacyStorageSuffix),Pe(e,n))}},Pe=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)),t.lastEventTime&&(e._lastEventTime=parseInt(t.lastEventTime)),t.eventId&&(e._eventId=parseInt(t.eventId)),t.identifyId&&(e._identifyId=parseInt(t.identifyId)),t.sequenceNumber&&(e._sequenceNumber=parseInt(t.sequenceNumber))},Ue=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};Ie&&Ie.setItem(e._storageSuffix,JSON.stringify(t)),e.cookieStorage.set(e.options.cookieName+e._storageSuffix,t)};xe.prototype._initUtmData=function(e,t){e=e||this._getUrlParams(),t=t||this.cookieStorage.get("__utmz");var n=V(t,e);Ce(this,n)},xe.prototype._unsetUTMParams=function(){var e=new Q;e.unset(o.REFERRER),e.unset(o.UTM_SOURCE),e.unset(o.UTM_MEDIUM),e.unset(o.UTM_CAMPAIGN),e.unset(o.UTM_TERM),e.unset(o.UTM_CONTENT),this.identify(e)};var Ce=function(e,t){if("object"===c(t)&&0!==Object.keys(t).length){var n=new Q;for(var i in t)t.hasOwnProperty(i)&&(n.setOnce("initial_"+i,t[i]),n.set(i,t[i]));e.identify(n)}};xe.prototype._getReferrer=function(){return document.referrer},xe.prototype._getUrlParams=function(){return location.search},xe.prototype._saveGclid=function(e){var t=b.getQueryParam("gclid",e);b.isEmptyString(t)||Ce(this,{gclid:t})},xe.prototype._getDeviceIdFromUrlParam=function(e){return b.getQueryParam(o.AMP_DEVICE_ID_PARAM,e)},xe.prototype._getReferringDomain=function(e){if(b.isEmptyString(e))return null;var t=e.split("/");return t.length>=3?t[2]:null},xe.prototype._saveReferrer=function(e){if(!b.isEmptyString(e)){var t={referrer:e,referring_domain:this._getReferringDomain(e)};Ce(this,t)}},xe.prototype.saveEvents=function(){try{Ie?Ie.setItem(this.options.unsentKey+this._storageSuffix,JSON.stringify(this._unsentEvents)):this._setInStorage(M,this.options.unsentKey,JSON.stringify(this._unsentEvents))}catch(ze){}try{Ie?Ie.setItem(this.options.unsentIdentifyKey+this._storageSuffix,JSON.stringify(this._unsentIdentifys)):this._setInStorage(M,this.options.unsentIdentifyKey,JSON.stringify(this._unsentIdentifys))}catch(ze){}},xe.prototype.setDomain=function(e){if(this._shouldDeferCall())return this._q.push(["setDomain"].concat(Array.prototype.slice.call(arguments,0)));if(b.validateInput(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,ke(this),Ue(this)}catch(ze){b.log.error(ze)}},xe.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,Ue(this)}catch(ze){b.log.error(ze)}},xe.prototype.setGroup=function(e,t){if(this._shouldDeferCall())return this._q.push(["setGroup"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setGroup()")&&b.validateInput(e,"groupType","string")&&!b.isEmptyString(e)){var n={};n[e]=t;var i=(new Q).set(e,t);this._logEvent(o.IDENTIFY_EVENT,null,null,i.userPropertiesOperations,n,null,null,null)}},xe.prototype.setOptOut=function(e){if(this._shouldDeferCall())return this._q.push(["setOptOut"].concat(Array.prototype.slice.call(arguments,0)));if(b.validateInput(e,"enable","boolean"))try{this.options.optOut=e,Ue(this)}catch(ze){b.log.error(ze)}},xe.prototype.setSessionId=function(e){if(b.validateInput(e,"sessionId","number"))try{this._sessionId=e,Ue(this)}catch(ze){b.log.error(ze)}},xe.prototype.resetSessionId=function(){this.setSessionId((new Date).getTime())},xe.prototype.regenerateDeviceId=function(){if(this._shouldDeferCall())return this._q.push(["regenerateDeviceId"].concat(Array.prototype.slice.call(arguments,0)));this.setDeviceId(be()+"R")},xe.prototype.setDeviceId=function(e){if(this._shouldDeferCall())return this._q.push(["setDeviceId"].concat(Array.prototype.slice.call(arguments,0)));if(b.validateInput(e,"deviceId","string"))try{b.isEmptyString(e)||(this.options.deviceId=""+e,Ue(this))}catch(ze){b.log.error(ze)}},xe.prototype.setUserProperties=function(e){if(this._shouldDeferCall())return this._q.push(["setUserProperties"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("setUserProperties()")&&b.validateInput(e,"userProperties","object")){var t=b.truncate(b.validateProperties(e));if(0!==Object.keys(t).length){var n=new Q;for(var i in t)t.hasOwnProperty(i)&&n.set(i,t[i]);this.identify(n)}}},xe.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 Q;e.clearAll(),this.identify(e)}};var De=function(e,t){for(var n=0;n<t._q.length;n++){var i=e[t._q[n][0]];"function"===c(i)&&i.apply(e,t._q[n].slice(1))}return e};xe.prototype.identify=function(e,t){if(this._shouldDeferCall())return this._q.push(["identify"].
1concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("identify()"))if("object"===c(e)&&e.hasOwnProperty("_q")&&(e=De(new Q,e)),e instanceof Q){if(Object.keys(e.userPropertiesOperations).length>0)return this._logEvent(o.IDENTIFY_EVENT,null,null,e.userPropertiesOperations,null,null,null,t);"function"===c(t)&&t(0,"No request sent",{reason:"No user property operations"})}else b.log.error("Invalid identify input type. Expected Identify object but saw "+c(e)),"function"===c(t)&&t(0,"No request sent",{reason:"Invalid identify input type"});else"function"===c(t)&&t(0,"No request sent",{reason:"API key is not set"})},xe.prototype.groupIdentify=function(e,n,i,r){if(this._shouldDeferCall())return this._q.push(["groupIdentify"].concat(Array.prototype.slice.call(arguments,0)));if(this._apiKeySet("groupIdentify()"))if(b.validateInput(e,"group_type","string")&&!b.isEmptyString(e))if(null!==n&&void 0!==n)if("object"===c(i)&&i.hasOwnProperty("_q")&&(i=De(new Q,i)),i instanceof Q){if(Object.keys(i.userPropertiesOperations).length>0)return this._logEvent(o.GROUP_IDENTIFY_EVENT,null,null,null,t({},e,n),i.userPropertiesOperations,null,r);"function"===c(r)&&r(0,"No request sent",{reason:"No group property operations"})}else b.log.error("Invalid identify input type. Expected Identify object but saw "+c(i)),"function"===c(r)&&r(0,"No request sent",{reason:"Invalid identify input type"});else"function"===c(r)&&r(0,"No request sent",{reason:"Invalid group name"});else"function"===c(r)&&r(0,"No request sent",{reason:"Invalid group type"});else"function"===c(r)&&r(0,"No request sent",{reason:"API key is not set"})},xe.prototype.setVersionName=function(e){if(this._shouldDeferCall())return this._q.push(["setVersionName"].concat(Array.prototype.slice.call(arguments,0)));b.validateInput(e,"versionName","string")&&(this.options.versionName=e)},xe.prototype._logEvent=function(e,t,n,i,s,a,u,p){if(ke(this),e)if(this.options.optOut)"function"===c(p)&&p(0,"No request sent",{reason:"optOut is set to true"});else try{var l;l=e===o.IDENTIFY_EVENT||e===o.GROUP_IDENTIFY_EVENT?this.nextIdentifyId():this.nextEventId();var d=this.nextSequenceNumber(),f="number"===c(u)?u:(new Date).getTime();(!this._sessionId||!this._lastEventTime||f-this._lastEventTime>this.options.sessionTimeout)&&(this._sessionId=f),this._lastEventTime=f,Ue(this);var h,g,v=this._ua.browser.name,y=this._ua.browser.major,m=this._ua.device.model,_=this._ua.device.vendor;i=i||{};var I=r({},this._apiPropertiesTrackingOptions);n=r({},n||{},I),t=t||{},s=s||{},a=a||{};var w={device_id:this.options.deviceId,user_id:this.options.userId,timestamp:f,event_id:l,session_id:this._sessionId||-1,event_type:e,version_name:qe(this,"version_name")&&(this.options.versionName||h)||null,platform:qe(this,"platform")?this.options.platform:null,os_name:qe(this,"os_name")&&v||null,os_version:qe(this,"os_version")&&y||null,device_model:qe(this,"device_model")&&m||null,device_manufacturer:qe(this,"device_manufacturer")&&_||null,language:qe(this,"language")?this.options.language:null,carrier:qe(this,"carrier")&&g||null,api_properties:n,event_properties:b.truncate(b.validateProperties(t)),user_properties:b.truncate(b.validateProperties(i)),uuid:be(),library:{name:"amplitude-js",version:Se},sequence_number:d,groups:b.truncate(b.validateGroups(s)),group_properties:b.truncate(b.validateProperties(a)),user_agent:this._userAgent};return e===o.IDENTIFY_EVENT||e===o.GROUP_IDENTIFY_EVENT?(this._unsentIdentifys.push(w),this._limitEventsQueued(this._unsentIdentifys)):(this._unsentEvents.push(w),this._limitEventsQueued(this._unsentEvents)),this.options.saveEvents&&this.saveEvents(),this._sendEventsIfReady(p)||"function"!==c(p)||p(0,"No request sent",{reason:"No events to send or upload queued"}),l}catch(ze){b.log.error(ze)}else"function"===c(p)&&p(0,"No request sent",{reason:"Missing eventType"})};var qe=function(e,t){return!!e.options.trackingOptions[t]},Me=function(e){for(var t=["city","country","dma","ip_address","region"],n={},i=0;i<t.length;i++){var r=t[i];qe(e,r)||(n[r]=!1)}return n};xe.prototype._limitEventsQueued=function(e){e.length>this.options.savedMaxCount&&e.splice(0,e.length-this.options.savedMaxCount)},xe.prototype.logEvent=function(e,t,n){return this._shouldDeferCall()?this._q.push(["logEvent"].concat(Array.prototype.slice.call(arguments,0))):this.logEventWithTimestamp(e,t,null,n)},xe.prototype.logEventWithTimestamp=function(e,t,n,i){return this._shouldDeferCall()?this._q.push(["logEventWithTimestamp"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEvent()")?b.validateInput(e,"eventType","string")?b.isEmptyString(e)?("function"===c(i)&&i(0,"No request sent",{reason:"Missing eventType"}),-1):this._logEvent(e,t,null,null,null,null,n,i):("function"===c(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===c(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)},xe.prototype.logEventWithGroups=function(e,t,n,i){return this._shouldDeferCall()?this._q.push(["logEventWithGroups"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logEventWithGroups()")?b.validateInput(e,"eventType","string")?this._logEvent(e,t,null,null,n,null,null,i):("function"===c(i)&&i(0,"No request sent",{reason:"Invalid type for eventType"}),-1):("function"===c(i)&&i(0,"No request sent",{reason:"API key not set"}),-1)};var je=function(e){return!isNaN(parseFloat(e))&&isFinite(e)};xe.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"===c(e)&&e.hasOwnProperty("_q")&&(e=De(new _e,e)),e instanceof _e){if(e&&e._isValidRevenue())return this.logEvent(o.REVENUE_EVENT,e._toJSONObject())}else b.log.error("Invalid revenue input type. Expected Revenue object but saw "+c(e))},xe.prototype.logRevenue=function(e,t,n){return this._shouldDeferCall()?this._q.push(["logRevenue"].concat(Array.prototype.slice.call(arguments,0))):this._apiKeySet("logRevenue()")&&je(e)&&(void 0===t||je(t))?this._logEvent(o.REVENUE_EVENT,{},{productId:n,special:"revenue_amount",quantity:t||1,price:e}
1,null,null,null,null,null):-1},xe.prototype.removeEvents=function(e,t){Ve(this,"_unsentEvents",e),Ve(this,"_unsentIdentifys",t)};var Ve=function(e,t,n){if(!(n<0)){for(var i=[],r=0;r<e[t].length;r++)e[t][r].event_id>n&&i.push(e[t][r]);e[t]=i}};xe.prototype.sendEvents=function(e){if(this._apiKeySet("sendEvents()"))if(this.options.optOut)"function"===c(e)&&e(0,"No request sent",{reason:"optOut is set to true"});else if(0!==this._unsentCount())if(this._sending)"function"===c(e)&&e(0,"No request sent",{reason:"Request already in progress. Events will be sent once this request is complete"});else{this._sending=!0;var t=(this.options.forceHttps||"https:"===window.location.protocol?"https":"http")+"://"+this.options.apiEndpoint,n=Math.min(this._unsentCount(),this.options.uploadBatchSize),i=this._mergeEventsAndIdentifys(n),r=i.maxEventId,s=i.maxIdentifyId,a=JSON.stringify(i.eventsToSend),u=(new Date).getTime(),p={client:this.options.apiKey,e:a,v:o.API_VERSION,upload_time:u,checksum:J(o.API_VERSION+this.options.apiKey+a+u)},l=this;new me(t,p).send((function(t,i){l._sending=!1;try{200===t&&"success"===i?(l.removeEvents(r,s),l.options.saveEvents&&l.saveEvents(),l._sendEventsIfReady(e)||"function"!==c(e)||e(t,i)):413===t?(1===l.options.uploadBatchSize&&l.removeEvents(r,s),l.options.uploadBatchSize=Math.ceil(n/2),l.sendEvents(e)):"function"===c(e)&&e(t,i)}catch(ze){}}))}else"function"===c(e)&&e(0,"No request sent",{reason:"No events to send"});else"function"===c(e)&&e(0,"No request sent",{reason:"API key not set"})},xe.prototype._mergeEventsAndIdentifys=function(e){for(var t=[],n=0,i=-1,r=0,o=-1;t.length<e;){var s,a=r>=this._unsentIdentifys.length,u=n>=this._unsentEvents.length;if(u&&a){b.log.error("Merging Events and Identifys, less events and identifys than expected");break}a?i=(s=this._unsentEvents[n++]).event_id:u?o=(s=this._unsentIdentifys[r++]).event_id:!("sequence_number"in this._unsentEvents[n])||this._unsentEvents[n].sequence_number<this._unsentIdentifys[r].sequence_number?i=(s=this._unsentEvents[n++]).event_id:o=(s=this._unsentIdentifys[r++]).event_id,t.push(s)}return{eventsToSend:t,maxEventId:i,maxIdentifyId:o}},xe.prototype.setGlobalUserProperties=function(e){this.setUserProperties(e)},xe.prototype.__VERSION__=Se,xe.prototype._shouldDeferCall=function(){return this._pendingReadStorage||this._initializationDeferred},xe.prototype._deferInitialization=function(){this._initializationDeferred=!0,this._q.push(["init"].concat(Array.prototype.slice.call(arguments,0)))},xe.prototype.enableTracking=function(){this._initializationDeferred=!1,Ue(this),this.runQueuedFunctions()};var Fe=function(){this.options=r({},Oe),this._q=[],this._instances={}};Fe.prototype.Identify=Q,Fe.prototype.Revenue=_e,Fe.prototype.getInstance=function(e){e=b.isEmptyString(e)?o.DEFAULT_INSTANCE:e.toLowerCase();var t=this._instances[e];return void 0===t&&(t=new xe(e),this._instances[e]=t),t},Fe.prototype.runQueuedFunctions=function(){for(var e=0;e<this._q.length;e++){var t=this[this._q[e][0]];"function"===c(t)&&t.apply(this,this._q[e].slice(1))}for(var n in this._q=[],this._instances)this._instances.hasOwnProperty(n)&&this._instances[n].runQueuedFunctions()},Fe.prototype.init=function(e,t,n,i){this.getInstance().init(e,t,n,function(e){this.options=e.options,"function"===c(i)&&i(e)}.bind(this))},Fe.prototype.isNewSession=function(){return this.getInstance().isNewSession()},Fe.prototype.getSessionId=function(){return this.getInstance().getSessionId()},Fe.prototype.nextEventId=function(){return this.getInstance().nextEventId()},Fe.prototype.nextIdentifyId=function(){return this.getInstance().nextIdentifyId()},Fe.prototype.nextSequenceNumber=function(){return this.getInstance().nextSequenceNumber()},Fe.prototype.saveEvents=function(){this.getInstance().saveEvents()},Fe.prototype.setDomain=function(e){this.getInstance().setDomain(e)},Fe.prototype.setUserId=function(e){this.getInstance().setUserId(e)},Fe.prototype.setGroup=function(e,t){this.getInstance().setGroup(e,t)},Fe.prototype.setOptOut=function(e){this.getInstance().setOptOut(e)},Fe.prototype.regenerateDeviceId=function(){this.getInstance().regenerateDeviceId()},Fe.prototype.setDeviceId=function(e){this.getInstance().setDeviceId(e)},Fe.prototype.setUserProperties=function(e){this.getInstance().setUserProperties(e)},Fe.prototype.clearUserProperties=function(){this.getInstance().clearUserProperties()},Fe.prototype.identify=function(e,t){this.getInstance().identify(e,t)},Fe.prototype.setVersionName=function(e){this.getInstance().setVersionName(e)},Fe.prototype.logEvent=function(e,t,n){return this.getInstance().logEvent(e,t,n)},Fe.prototype.logEventWithGroups=function(e,t,n,i){return this.getInstance().logEventWithGroups(e,t,n,i)},Fe.prototype.logRevenueV2=function(e){return this.getInstance().logRevenueV2(e)},Fe.prototype.logRevenue=function(e,t,n){return this.getInstance().logRevenue(e,t,n)},Fe.prototype.removeEvents=function(e,t){this.getInstance().removeEvents(e,t)},Fe.prototype.sendEvents=function(e){this.getInstance().sendEvents(e)},Fe.prototype.setGlobalUserProperties=function(e){this.getInstance().setUserProperties(e)},Fe.prototype.__VERSION__=Se;var Ge=window.amplitude||{},Le=new Fe;for(var Ke in Le._q=Ge._q||[],Ge._iq)Ge._iq.hasOwnProperty(Ke)&&(Le.getInstance(Ke)._q=Ge._iq[Ke]._q||[]);return Le.runQueuedFunctions(),Le}()}}]);

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.