mixpanel-browser 2.56.0 → 2.58.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,114 +1,124 @@
1
1
  (function() {
2
- var l=void 0,m=!0,r=null,D=!1;
3
- (function(){function Ba(){function a(){if(!a.Hc)la=a.Hc=m,ma=D,c.a(F,function(a){a.uc()})}function b(){try{u.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(u.addEventListener)"complete"===u.readyState?a():u.addEventListener("DOMContentLoaded",a,D);else if(u.attachEvent){u.attachEvent("onreadystatechange",a);var d=D;try{d=n.frameElement===r}catch(h){}u.documentElement.doScroll&&d&&b()}c.Xb(n,"load",a,m)}function Ca(){x.init=function(a,b,d){if(d)return x[d]||(x[d]=F[d]=S(a,
4
- b,d),x[d].la()),x[d];d=x;if(F.mixpanel)d=F.mixpanel;else if(a)d=S(a,b,"mixpanel"),d.la(),F.mixpanel=d;x=d;1===ca&&(n.mixpanel=x);Da()}}function Da(){c.a(F,function(a,b){"mixpanel"!==b&&(x[b]=a)});x._=c}function da(a){a=c.g(a)?a:c.e(a)?{}:{days:a};return c.extend({},Ea,a)}function S(a,b,d){var h,f="mixpanel"===d?x:x[d];if(f&&0===ca)h=f;else{if(f&&!c.isArray(f)){o.error("You have already initialized "+d);return}h=new e}h.mb={};h.Y(a,b,d);h.people=new k;h.people.Y(h);if(!h.c("skip_first_touch_marketing")){var a=
5
- c.info.Z(r),g={},v=D;c.a(a,function(a,b){(g["initial_"+b]=a)&&(v=m)});v&&h.people.O(g)}J=J||h.c("debug");!c.e(f)&&c.isArray(f)&&(h.Ba.call(h.people,f.people),h.Ba(f));return h}function e(){}function P(){}function Fa(a){return a}function na(a){throw Error(a+" not available in this build.");}function q(a){this.props={};this.Fd=D;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)o.B("Unknown persistence type "+b+"; falling back to cookie"),
6
- b=a.persistence="cookie";this.j="localStorage"===b&&c.localStorage.ua()?c.localStorage:c.cookie;this.load();this.pc(a);this.Bd();this.save()}function k(){}function t(){}function C(a,b){this.L=b.L;this.ca=new G(a,{L:c.bind(this.h,this),j:b.j,v:b.v});this.C=b.C;this.dd=b.ed;this.ma=b.ma;this.od=b.pd;this.G=this.C.batch_size;this.qa=this.C.batch_flush_interval_ms;this.fa=!this.C.batch_autostart;this.Ka=0;this.J={};this.Fb=b.Fb||D}function oa(a,b){var d=[];c.a(a,function(a){var c=a.id;if(c in b){if(c=
7
- b[c],c!==r)a.payload=c,d.push(a)}else d.push(a)});return d}function pa(a,b){var d=[];c.a(a,function(a){a.id&&!b[a.id]&&d.push(a)});return d}function G(a,b){b=b||{};this.P=a;if(this.v=b.v)this.j=b.j||window.localStorage,this.Ya=new qa(a,{j:this.j});this.h=b.L||c.bind(ra.error,ra);this.wa=b.wa||r;this.D=[]}function qa(a,b){b=b||{};this.P=a;this.j=b.j||window.localStorage;this.Vb=b.Vb||100;this.jc=b.jc||2E3}function T(){this.Sb="submit"}function M(){this.Sb="click"}function E(){}function Ga(){var a=
8
- n.navigator.onLine;return c.e(a)||a}function sa(a){var b=Ha,d=a.split("."),d=d[d.length-1];if(4<d.length||"com"===d||"org"===d)b=Ia;return(a=a.match(b))?a[0]:""}function ea(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function U(a,b){if(fa!==r&&!b)return fa;var d=m;try{var a=a||window.localStorage,c="__mplss_"+ea(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(d=D);a.removeItem(c)}catch(f){d=D}return fa=d}function ga(a){return{log:ha(o.log,
9
- a),error:ha(o.error,a),B:ha(o.B,a)}}function ha(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(o,arguments)}}function Ja(a,b){ta(m,a,b)}function Ka(a,b){ta(D,a,b)}function La(a,b){return"1"===V(b).get(W(a,b))}function ua(a,b){if(Ma(b))return o.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),m;var d=
10
- "0"===V(b).get(W(a,b));d&&o.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return d}function K(a){return ia(a,function(a){return this.c(a)})}function H(a){return ia(a,function(a){return this.p(a)})}function N(a){return ia(a,function(a){return this.p(a)})}function Na(a,b){b=b||{};V(b).remove(W(a,b),!!b.Ab,b.yb)}function V(a){a=a||{};return"localStorage"===a.Ub?c.localStorage:c.cookie}function W(a,b){b=b||{};return(b.Tb||Oa)+a}function Ma(a){if(a&&
11
- a.Jb)return D;var a=a&&a.window||n,b=a.navigator||{},d=D;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.i([m,1,"1","yes"],a)&&(d=m)});return d}function ta(a,b,d){!c.Xa(b)||!b.length?o.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},V(d).set(W(b,d),a?1:0,c.Nb(d.zb)?d.zb:r,!!d.Ab,!!d.cd,!!d.Ec,d.yb),d.o&&a&&d.o(d.ud||"$opt_in",d.vd,{send_immediately:m}))}function ia(a,b){return function(){var d=D;try{var c=b.call(this,"token"),f=b.call(this,"ignore_dnt"),g=
12
- b.call(this,"opt_out_tracking_persistence_type"),v=b.call(this,"opt_out_tracking_cookie_prefix"),e=b.call(this,"window");c&&(d=ua(c,{Jb:f,Ub:g,Tb:v,window:e}))}catch(j){o.error("Unexpected error when checking tracking opt-out status: "+j)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var J=D,n;if("undefined"===typeof window){var A={hostname:""};n={navigator:{userAgent:"",onLine:m},document:{location:A,referrer:""},screen:{width:0,height:0},location:A}}else n=
13
- window;var A=Array.prototype,va=Object.prototype,L=A.slice,Q=va.toString,X=va.hasOwnProperty,y=n.console,I=n.navigator,u=n.document,Y=n.opera,Z=n.screen,z=I.userAgent,ja=Function.prototype.bind,wa=A.forEach,xa=A.indexOf,ya=A.map,A=Array.isArray,ka={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},o={log:function(){if(J&&!c.e(y)&&y)try{y.log.apply(y,arguments)}catch(a){c.a(arguments,function(a){y.log(a)})}},warn:function(){if(J&&!c.e(y)&&y){var a=["Mixpanel warning:"].concat(c.Q(arguments));
14
- try{y.warn.apply(y,a)}catch(b){c.a(a,function(a){y.warn(a)})}}},error:function(){if(J&&!c.e(y)&&y){var a=["Mixpanel error:"].concat(c.Q(arguments));try{y.error.apply(y,a)}catch(b){c.a(a,function(a){y.error(a)})}}},B:function(){if(!c.e(y)&&y){var a=["Mixpanel error:"].concat(c.Q(arguments));try{y.error.apply(y,a)}catch(b){c.a(a,function(a){y.error(a)})}}}};c.bind=function(a,b){var d,h;if(ja&&a.bind===ja)return ja.apply(a,L.call(arguments,1));if(!c.Wa(a))throw new TypeError;d=L.call(arguments,2);return h=
15
- function(){if(!(this instanceof h))return a.apply(b,d.concat(L.call(arguments)));var c={};c.prototype=a.prototype;var g=new c;c.prototype=r;c=a.apply(g,d.concat(L.call(arguments)));return Object(c)===c?c:g}};c.a=function(a,b,d){if(!(a===r||a===l))if(wa&&a.forEach===wa)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,f=a.length;c<f&&!(c in a&&b.call(d,a[c],c,a)===ka);c++);else for(c in a)if(X.call(a,c)&&b.call(d,a[c],c,a)===ka)break};c.extend=function(a){c.a(L.call(arguments,1),function(b){for(var d in b)b[d]!==
16
- l&&(a[d]=b[d])});return a};c.isArray=A||function(a){return"[object Array]"===Q.call(a)};c.Wa=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return D}};c.Qc=function(a){return!(!a||!X.call(a,"callee"))};c.Q=function(a){return!a?[]:a.Q?a.Q():c.isArray(a)||c.Qc(a)?L.call(a):c.Dd(a)};c.map=function(a,b,d){if(ya&&a.map===ya)return a.map(b,d);var h=[];c.a(a,function(a){h.push(b.call(d,a))});return h};c.keys=function(a){var b=[];if(a===r)return b;c.a(a,function(a,c){b[b.length]=c});return b};
17
- c.Dd=function(a){var b=[];if(a===r)return b;c.a(a,function(a){b[b.length]=a});return b};c.Ua=function(a,b){var d=D;if(a===r)return d;if(xa&&a.indexOf===xa)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ka});return d};c.i=function(a,b){return-1!==a.indexOf(b)};c.Lb=function(a,b){a.prototype=new b;a.rd=b.prototype};c.g=function(a){return a===Object(a)&&!c.isArray(a)};c.ta=function(a){if(c.g(a)){for(var b in a)if(X.call(a,b))return D;return m}return D};c.e=function(a){return a===l};
18
- c.Xa=function(a){return"[object String]"==Q.call(a)};c.Rc=function(a){return"[object Date]"==Q.call(a)};c.Nb=function(a){return"[object Number]"==Q.call(a)};c.Sc=function(a){return!!(a&&1===a.nodeType)};c.Na=function(a){c.a(a,function(b,d){c.Rc(b)?a[d]=c.Jc(b):c.g(b)&&(a[d]=c.Na(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.Jc=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+
19
- "T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.ga=function(a){var b={};c.a(a,function(a,h){c.Xa(a)&&0<a.length&&(b[h]=a)});return b};c.truncate=function(a,b){var d;"string"===typeof a?d=a.slice(0,b):c.isArray(a)?(d=[],c.a(a,function(a){d.push(c.truncate(a,b))})):c.g(a)?(d={},c.a(a,function(a,f){d[f]=c.truncate(a,b)})):d=a;return d};c.ia=function(){return function(a){function b(a,c){var g="",e=0,i=e="",i=0,j=g,p=[],s=c[a];s&&"object"===typeof s&&"function"===typeof s.toJSON&&
20
- (s=s.toJSON(a));switch(typeof s){case "string":return d(s);case "number":return isFinite(s)?""+s:"null";case "boolean":case "null":return""+s;case "object":if(!s)return"null";g+=" ";p=[];if("[object Array]"===Q.apply(s)){i=s.length;for(e=0;e<i;e+=1)p[e]=b(e,s)||"null";return i=0===p.length?"[]":g?"[\n"+g+p.join(",\n"+g)+"\n"+j+"]":"["+p.join(",")+"]"}for(e in s)X.call(s,e)&&(i=b(e,s))&&p.push(d(e)+(g?": ":":")+i);return i=0===p.length?"{}":g?"{"+p.join(",")+""+j+"}":"{"+p.join(",")+"}"}}function d(a){var b=
21
- /[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.T=function(){function a(){switch(i){case "t":return f("t"),f("r"),f("u"),f("e"),m;case "f":return f("f"),
22
- f("a"),f("l"),f("s"),f("e"),D;case "n":return f("n"),f("u"),f("l"),f("l"),r}g('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)f()}function d(){var a,b,d="",c;if('"'===i)for(;f();){if('"'===i)return f(),d;if("\\"===i)if(f(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(f(),16);if(!isFinite(a))break;c=16*c+a}d+=String.fromCharCode(c)}else if("string"===typeof j[i])d+=j[i];else break;else d+=i}g("Bad string")}function c(){var a;a="";"-"===i&&(a="-",f("-"));for(;"0"<=i&&"9">=i;)a+=i,f();if("."===i)for(a+=
23
- ".";f()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;f();if("-"===i||"+"===i)a+=i,f();for(;"0"<=i&&"9">=i;)a+=i,f()}a=+a;if(isFinite(a))return a;g("Bad number")}function f(a){a&&a!==i&&g("Expected '"+a+"' instead of '"+i+"'");i=p.charAt(e);e+=1;return i}function g(a){a=new SyntaxError(a);a.Ed=e;a.text=p;throw a;}var e,i,j={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},p,s;s=function(){b();switch(i){case "{":var e;a:{var v,j={};if("{"===i){f("{");b();if("}"===i){f("}");e=
24
- j;break a}for(;i;){v=d();b();f(":");Object.hasOwnProperty.call(j,v)&&g('Duplicate key "'+v+'"');j[v]=s();b();if("}"===i){f("}");e=j;break a}f(",");b()}}g("Bad object")}return e;case "[":a:{e=[];if("["===i){f("[");b();if("]"===i){f("]");v=e;break a}for(;i;){e.push(s());b();if("]"===i){f("]");v=e;break a}f(",");b()}}g("Bad array")}return v;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){p=a;e=0;i=" ";a=s();b();i&&g("Syntax error");return a}}();c.Cc=
25
- function(a){var b,d,h,f,g=0,e=0,i="",i=[];if(!a)return a;a=c.Cd(a);do b=a.charCodeAt(g++),d=a.charCodeAt(g++),h=a.charCodeAt(g++),f=b<<16|d<<8|h,b=f>>18&63,d=f>>12&63,h=f>>6&63,f&=63,i[e++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);
26
- while(g<a.length);i=i.join("");switch(a.length%3){case 1:i=i.slice(0,-2)+"==";break;case 2:i=i.slice(0,-1)+"="}return i};c.Cd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,f=0,g;d=c=0;f=a.length;for(g=0;g<f;g++){var e=a.charCodeAt(g),i=r;128>e?c++:i=127<e&&2048>e?String.fromCharCode(e>>6|192,e&63|128):String.fromCharCode(e>>12|224,e>>6&63|128,e&63|128);i!==r&&(c>d&&(b+=a.substring(d,c)),b+=i,d=c=g+1)}c>d&&(b+=a.substring(d,a.length));return b};c.kb=function(){function a(){function a(b,
27
- c){var d,h=0;for(d=0;d<c.length;d++)h|=g[d]<<8*d;return b^h}var b,c,g=[],e=0;for(b=0;b<z.length;b++)c=z.charCodeAt(b),g.unshift(c&255),4<=g.length&&(e=a(e,g),g=[]);0<g.length&&(e=a(e,g));return e.toString(16)}function b(){var a=1*new Date,b;if(n.performance&&n.performance.now)b=n.performance.now();else for(b=0;a==1*new Date;)b++;return a.toString(16)+Math.floor(b).toString(16)}return function(){var c=(Z.height*Z.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+
28
- "-"+c+"-"+b()}}();var za="ahrefsbot,ahrefssiteaudit,baiduspider,bingbot,bingpreview,chrome-lighthouse,facebookexternal,petalbot,pinterest,screaming frog,yahoo! slurp,yandexbot,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleweblight,mediapartners-google,storebot-google".split(",");c.Mb=function(a){var b,a=a.toLowerCase();for(b=0;b<za.length;b++)if(-1!==a.indexOf(za[b]))return m;return D};c.jb=function(a){var b,d,h,f=
29
- [];c.e(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());h=encodeURIComponent(b);f[f.length]=h+"="+d});return f.join(b)};c.Ra=function(a,b){var b=b.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===r||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(h){o.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")};c.cookie={get:function(a){for(var a=a+"=",b=u.cookie.split(";"),
30
- c=0;c<b.length;c++){for(var h=b[c];" "==h.charAt(0);)h=h.substring(1,h.length);if(0===h.indexOf(a))return decodeURIComponent(h.substring(a.length,h.length))}return r},parse:function(a){var b;try{b=c.T(c.cookie.get(a))||{}}catch(d){}return b},Id:function(a,b,c,h,f,g,e){var i="",j="",p="";e?i="; domain="+e:h&&(i=(i=sa(u.location.hostname))?"; domain=."+i:"");c&&(j=new Date,j.setTime(j.getTime()+1E3*c),j="; expires="+j.toGMTString());g&&(f=m,p="; SameSite=None");f&&(p+="; secure");u.cookie=a+"="+encodeURIComponent(b)+
31
- j+"; path=/"+i+p},set:function(a,b,c,h,f,g,e){var i="",j="",p="";e?i="; domain="+e:h&&(i=(i=sa(u.location.hostname))?"; domain=."+i:"");c&&(j=new Date,j.setTime(j.getTime()+864E5*c),j="; expires="+j.toGMTString());g&&(f=m,p="; SameSite=None");f&&(p+="; secure");a=a+"="+encodeURIComponent(b)+j+"; path=/"+i+p;return u.cookie=a},remove:function(a,b,d){c.cookie.set(a,"",-1,b,D,D,d)}};var fa=r;c.localStorage={ua:function(a){(a=U(r,a))||o.error("localStorage unsupported; falling back to cookie store");
32
- return a},error:function(a){o.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return r},parse:function(a){try{return c.T(c.localStorage.get(a))||{}}catch(b){}return r},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(d){c.localStorage.error(d)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){c.localStorage.error(b)}}};c.Xb=function(){function a(a,h,f){return function(g){if(g=g||b(window.event)){var e=
33
- m,i;c.Wa(f)&&(i=f(g));g=h.call(a,g);if(D===i||D===g)e=D;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=D};b.stopPropagation=function(){this.cancelBubble=m};return function(b,c,f,g,e){b?b.addEventListener&&!g?b.addEventListener(c,f,!!e):(c="on"+c,b[c]=a(b,f,b[c])):o.error("No valid element provided to register_event")}}();var Pa=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;c.Gc=function(){function a(a,
34
- b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!u.getElementsByTagName)return[];var b=b.split(" "),d,g,e,i,j,p,s,w=[u];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){g=d.split("#");d=g[0];w=u.getElementById(g[1]);if(!w||d&&w.nodeName.toLowerCase()!=d)return[];w=[w]}else if(-1<d.indexOf(".")){g=d.split(".");d=g[0];var B=g[1];d||(d="*");g=[];for(j=e=0;j<w.length;j++){s="*"==d?w[j].all?w[j].all:w[j].getElementsByTagName("*"):
35
- w[j].getElementsByTagName(d);for(p=0;p<s.length;p++)g[e++]=s[p]}w=[];for(j=d=0;j<g.length;j++)g[j].className&&c.Xa(g[j].className)&&a(g[j],B)&&(w[d++]=g[j])}else if(g=d.match(Pa)){d=g[1];var k=g[2],B=g[3],n=g[4];d||(d="*");g=[];for(j=e=0;j<w.length;j++){s="*"==d?w[j].all?w[j].all:w[j].getElementsByTagName("*"):w[j].getElementsByTagName(d);for(p=0;p<s.length;p++)g[e++]=s[p]}w=[];d=0;switch(B){case "=":B=function(a){return a.getAttribute(k)==n};break;case "~":B=function(a){return a.getAttribute(k).match(RegExp("\\b"+
36
- n+"\\b"))};break;case "|":B=function(a){return a.getAttribute(k).match(RegExp("^"+n+"-?"))};break;case "^":B=function(a){return 0===a.getAttribute(k).indexOf(n)};break;case "$":B=function(a){return a.getAttribute(k).lastIndexOf(n)==a.getAttribute(k).length-n.length};break;case "*":B=function(a){return-1<a.getAttribute(k).indexOf(n)};break;default:B=function(a){return a.getAttribute(k)}}w=[];for(j=d=0;j<g.length;j++)B(g[j])&&(w[d++]=g[j])}else{g=[];for(j=e=0;j<w.length;j++){s=w[j].getElementsByTagName(d);
37
- for(p=0;p<s.length;p++)g[e++]=s[p]}w=g}return w}var d=/[\t\r\n]/g;return function(a){return c.Sc(a)?[a]:c.g(a)&&!c.e(a.length)?a:b.call(this,a)}}();var Qa="utm_source,utm_medium,utm_campaign,utm_content,utm_term,utm_id,utm_source_platform,utm_campaign_id,utm_creative_format,utm_marketing_tactic".split(","),Ra="dclid,fbclid,gclid,ko_click_id,li_fat_id,msclkid,sccid,ttclid,twclid,wbraid".split(",");c.info={Z:function(a){var b="",d={};c.a(Qa,function(h){b=c.Ra(u.URL,h);b.length?d[h]=b:a!==l&&(d[h]=a)});
38
- return d},xb:function(){var a="",b={};c.a(Ra,function(d){a=c.Ra(u.URL,d);a.length&&(b[d]=a)});return b},Tc:function(){return c.extend(c.info.Z(),c.info.xb())},ad:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":r},bd:function(a){var b=c.info.ad(a),d={};if(b!==r)d.$search_engine=b,a=c.Ra(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=
39
- a);return d},na:function(a,b,d){return d||c.i(a," OPR/")?c.i(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.i(a,"IEMobile")||c.i(a,"WPDesktop")?"Internet Explorer Mobile":c.i(a,"SamsungBrowser/")?"Samsung Internet":c.i(a,"Edge")||c.i(a,"Edg/")?"Microsoft Edge":c.i(a,"FBIOS")?"Facebook Mobile":c.i(a,"Chrome")?"Chrome":c.i(a,"CriOS")?"Chrome iOS":c.i(a,"UCWEB")||c.i(a,"UCBrowser")?"UC Browser":c.i(a,"FxiOS")?"Firefox iOS":c.i(b||"","Apple")?c.i(a,"Mobile")?"Mobile Safari":
40
- "Safari":c.i(a,"Android")?"Android Mobile":c.i(a,"Konqueror")?"Konqueror":c.i(a,"Firefox")?"Firefox":c.i(a,"MSIE")||c.i(a,"Trident/")?"Internet Explorer":c.i(a,"Gecko")?"Mozilla":""},Ja:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,
41
- Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.na(a,b,d)];if(b===l)return r;a=a.match(b);return!a?r:parseFloat(a[a.length-2])},Rb:function(){return/Windows/i.test(z)?/Phone/.test(z)||/WPDesktop/.test(z)?"Windows Phone":"Windows":
42
- /(iPhone|iPad|iPod)/.test(z)?"iOS":/Android/.test(z)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(z)?"BlackBerry":/Mac/i.test(z)?"Mac OS X":/Linux/.test(z)?"Linux":/CrOS/.test(z)?"Chrome OS":""},Eb:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},Wb:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Ma:function(){return n.location.href},
43
- ba:function(a){"object"!==typeof a&&(a={});return c.extend(c.ga({$os:c.info.Rb(),$browser:c.info.na(z,I.vendor,Y),$referrer:u.referrer,$referring_domain:c.info.Wb(u.referrer),$device:c.info.Eb(z)}),{$current_url:c.info.Ma(),$browser_version:c.info.Ja(z,I.vendor,Y),$screen_height:Z.height,$screen_width:Z.width,mp_lib:"web",$lib_version:"2.56.0",$insert_id:ea(),time:c.timestamp()/1E3},c.ga(a))},Xc:function(){return c.extend(c.ga({$os:c.info.Rb(),$browser:c.info.na(z,I.vendor,Y)}),{$browser_version:c.info.Ja(z,
44
- I.vendor,Y)})},Uc:function(){return c.ga({current_page_title:u.title,current_domain:n.location.hostname,current_url_path:n.location.pathname,current_url_protocol:n.location.protocol,current_url_search:n.location.search})}};var Ia=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Ha=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,$=r,aa=r;if("undefined"!==typeof JSON)$=JSON.stringify,aa=JSON.parse;$=$||c.ia;aa=aa||c.T;c.toArray=c.Q;c.isObject=c.g;c.JSONEncode=c.ia;c.JSONDecode=c.T;c.isBlockedUA=c.Mb;c.isEmptyObject=c.ta;c.info=
45
- c.info;c.info.device=c.info.Eb;c.info.browser=c.info.na;c.info.browserVersion=c.info.Ja;c.info.properties=c.info.ba;E.prototype.pa=function(){};E.prototype.Pa=function(){};E.prototype.Ha=function(){};E.prototype.Va=function(a){this.Ob=a;return this};E.prototype.o=function(a,b,d,h){var f=this,e=c.Gc(a);if(0===e.length)o.error("The DOM query ("+a+") returned 0 elements");else return c.a(e,function(a){c.Xb(a,this.Sb,function(a){var c={},e=f.pa(d,this),g=f.Ob.c("track_links_timeout");f.Pa(a,this,c);window.setTimeout(f.lc(h,
46
- e,c,m),g);f.Ob.o(b,e,f.lc(h,e,c))})},this),m};E.prototype.lc=function(a,b,c,h){var h=h||D,f=this;return function(){if(!c.Dc)c.Dc=m,a&&a(h,b)===D||f.Ha(b,c,h)}};E.prototype.pa=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Lb(M,E);M.prototype.pa=function(a,b){var c=M.rd.pa.apply(this,arguments);if(b.href)c.url=b.href;return c};M.prototype.Pa=function(a,b,c){c.Pb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Pb||a.preventDefault()};M.prototype.Ha=function(a,
47
- b){b.Pb||setTimeout(function(){window.location=b.href},0)};c.Lb(T,E);T.prototype.Pa=function(a,b,c){c.element=b;a.preventDefault()};T.prototype.Ha=function(a,b){setTimeout(function(){b.element.submit()},0)};var Sa=ga("lock");qa.prototype.ib=function(a,b,c){function h(){k.setItem(o,"1");try{a()}finally{k.removeItem(o),k.getItem(q)===j&&k.removeItem(q),k.getItem(n)===j&&k.removeItem(n)}}function f(){k.setItem(n,j);v(e,function(){k.getItem(n)===j?h():i(function(){k.getItem(q)!==j?f():v(function(){return!k.getItem(o)},
48
- h)})})}function e(){var a=k.getItem(q);if(a&&a!==j)return D;k.setItem(q,j);if(k.getItem(q)===j)return m;if(!U(k,m))throw Error("localStorage support dropped while acquiring lock");return D}function v(a,b){a()?b():i(function(){v(a,b)})}function i(a){(new Date).getTime()-p>B?(Sa.error("Timeout waiting for mutex on "+s+"; clearing lock. ["+j+"]"),k.removeItem(o),k.removeItem(q),f()):setTimeout(function(){try{a()}catch(c){b&&b(c)}},w*(Math.random()+0.1))}!c&&"function"!==typeof b&&(c=b,b=r);var j=c||
49
- (new Date).getTime()+"|"+Math.random(),p=(new Date).getTime(),s=this.P,w=this.Vb,B=this.jc,k=this.j,n=s+":X",q=s+":Y",o=s+":Z";try{if(U(k,m))f();else throw Error("localStorage support check failed");}catch(u){b&&b(u)}};var ra=ga("batch");G.prototype.Oa=function(a,b,d){var h={id:ea(),flushAfter:(new Date).getTime()+2*b,payload:a};this.v?this.Ya.ib(c.bind(function(){var b;try{var c=this.ea();c.push(h);(b=this.ab(c))&&this.D.push(h)}catch(e){this.h("Error enqueueing item",a),b=D}d&&d(b)},this),c.bind(function(a){this.h("Error acquiring storage lock",
50
- a);d&&d(D)},this),this.wa):(this.D.push(h),d&&d(m))};G.prototype.Ic=function(a){var b=this.D.slice(0,a);if(this.v&&b.length<a){var d=this.ea();if(d.length){var h={};c.a(b,function(a){h[a.id]=m});for(var e=0;e<d.length;e++){var g=d[e];if((new Date).getTime()>g.flushAfter&&!h[g.id]&&(g.Wc=m,b.push(g),b.length>=a))break}}}return b};G.prototype.Yc=function(a,b){var d={};c.a(a,function(a){d[a]=m});this.D=pa(this.D,d);if(this.v){var h=c.bind(function(){var b;try{var c=this.ea(),c=pa(c,d);if(b=this.ab(c))for(var c=
51
- this.ea(),h=0;h<c.length;h++){var e=c[h];if(e.id&&d[e.id])return this.h("Item not removed from storage"),D}}catch(j){this.h("Error removing items",a),b=D}return b},this);this.Ya.ib(function(){var a=h();b&&b(a)},c.bind(function(a){var c=D;this.h("Error acquiring storage lock",a);if(!U(this.j,m)&&(c=h(),!c))try{this.j.removeItem(this.P)}catch(d){this.h("Error clearing queue",d)}b&&b(c)},this),this.wa)}else b&&b(m)};G.prototype.Ad=function(a){this.D=oa(this.D,a);this.v&&this.Ya.ib(c.bind(function(){try{var b=
52
- this.ea(),b=oa(b,a);this.ab(b)}catch(c){this.h("Error updating items",a)}},this),c.bind(function(a){this.h("Error acquiring storage lock",a)},this),this.wa)};G.prototype.ea=function(){var a;try{if(a=this.j.getItem(this.P))a=aa(a),c.isArray(a)||(this.h("Invalid storage entry:",a),a=r)}catch(b){this.h("Error retrieving queue",b),a=r}return a||[]};G.prototype.ab=function(a){try{return this.j.setItem(this.P,$(a)),m}catch(b){return this.h("Error saving queue",b),D}};G.prototype.clear=function(){this.D=
53
- [];this.v&&this.j.removeItem(this.P)};var R=ga("batch");C.prototype.Oa=function(a,b){this.ca.Oa(a,this.qa,b)};C.prototype.start=function(){this.fa=D;this.Ka=0;this.flush()};C.prototype.stop=function(){this.fa=m;if(this.eb)clearTimeout(this.eb),this.eb=r};C.prototype.clear=function(){this.ca.clear()};C.prototype.$b=function(){this.G=this.C.batch_size};C.prototype.N=function(){this.bc(this.C.batch_flush_interval_ms)};C.prototype.bc=function(a){this.qa=a;if(!this.fa)this.eb=setTimeout(c.bind(function(){this.fa||
54
- this.flush()},this),this.qa)};C.prototype.flush=function(a){try{if(this.Zb)R.log("Flush: Request already in progress");else{var a=a||{},b=this.C.batch_request_timeout_ms,d=(new Date).getTime(),h=this.G,e=this.ca.Ic(h),g=e.length===h,v=[],i={};c.a(e,function(a){var b=a.payload;this.ma&&!a.Wc&&(b=this.ma(b));if(b){b.event&&b.properties&&(b.properties=c.extend({},b.properties,{mp_sent_by_lib_version:"2.56.0"}));var d=m,h=a.id;if(h){if(5<(this.J[h]||0))this.h("[dupe] item ID sent too many times, not sending",
55
- {item:a,G:e.length,td:this.J[h]}),d=D}else this.h("[dupe] found item with no ID",{item:a});d&&v.push(b)}i[a.id]=b},this);if(1>v.length)this.N();else{this.Zb=m;var j=c.bind(function(j){this.Zb=D;try{var k=D;if(a.nc)this.ca.Ad(i);else if(c.g(j)&&"timeout"===j.error&&(new Date).getTime()-d>=b)this.h("Network timeout; retrying"),this.flush();else if(c.g(j)&&(500<=j.sa||429===j.sa||0>=j.sa&&!Ga()||"timeout"===j.error)){var v=2*this.qa;j.ac&&(v=1E3*parseInt(j.ac,10)||v);v=Math.min(6E5,v);this.h("Error; retry in "+
56
- v+" ms");this.bc(v)}else if(c.g(j)&&413===j.sa)if(1<e.length){var p=Math.max(1,Math.floor(h/2));this.G=Math.min(this.G,p,e.length-1);this.h("413 response; reducing batch size to "+this.G);this.N()}else this.h("Single-event request too large; dropping",e),this.$b(),k=m;else k=m;k&&(this.ca.Yc(c.map(e,function(a){return a.id}),c.bind(function(a){a?(this.Ka=0,this.Fb&&!g?this.N():this.flush()):(this.h("Failed to remove items from queue"),5<++this.Ka?(this.h("Too many queue failures; disabling batching system."),
57
- this.od()):this.N())},this)),c.a(e,c.bind(function(a){var b=a.id;b?(this.J[b]=this.J[b]||0,this.J[b]++,5<this.J[b]&&this.h("[dupe] item ID sent too many times",{item:a,G:e.length,td:this.J[b]})):this.h("[dupe] found item with no ID while removing",{item:a})},this)))}catch(s){this.h("Error handling API response",s),this.N()}},this),k={method:"POST",rc:m,Oc:m,kc:b};if(a.nc)k.gb="sendBeacon";R.log("MIXPANEL REQUEST:",v);this.dd(v,k,j)}}}catch(s){this.h("Error flushing request queue",s),this.N()}};C.prototype.h=
58
- function(a,b){R.error.apply(R.error,arguments);if(this.L)try{b instanceof Error||(b=Error(a)),this.L(a,b)}catch(c){R.error(c)}};var Oa="__mp_opt_in_out_",A={dc:function(a,b){var d={},h={};c.g(a)?c.a(a,function(a,b){this.A(b)||(h[b]=a)},this):h[a]=b;d.$set=h;return d},oc:function(a){var b={},d=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.A(a)||d.push(a)},this);b.$unset=d;return b},gc:function(a,b){var d={},h={};c.g(a)?c.a(a,function(a,b){this.A(b)||(h[b]=a)},this):h[a]=b;d.$set_once=h;return d},
59
- mc:function(a,b){var d={},h={};c.g(a)?c.a(a,function(a,b){this.A(b)||(h[b]=c.isArray(a)?a:[a])},this):h[a]=c.isArray(b)?b:[b];d.$union=h;return d},Bc:function(a,b){var d={},h={};c.g(a)?c.a(a,function(a,b){this.A(b)||(h[b]=a)},this):h[a]=b;d.$append=h;return d},Yb:function(a,b){var d={},h={};c.g(a)?c.a(a,function(a,b){this.A(b)||(h[b]=a)},this):h[a]=b;d.$remove=h;return d},Gd:function(){return{$delete:""}}};c.extend(t.prototype,A);t.prototype.Y=function(a,b,c){this.d=a;this.Da=b;this.Ca=c};t.prototype.set=
60
- N(function(a,b,d){var h=this.dc(a,b);c.g(a)&&(d=b);return this.k(h,d)});t.prototype.O=N(function(a,b,d){var h=this.gc(a,b);c.g(a)&&(d=b);return this.k(h,d)});t.prototype.xa=N(function(a,b){return this.k(this.oc(a),b)});t.prototype.ha=N(function(a,b,d){c.g(a)&&(d=b);return this.k(this.mc(a,b),d)});t.prototype["delete"]=N(function(a){return this.k({$delete:""},a)});t.prototype.remove=N(function(a,b,c){return this.k(this.Yb(a,b),c)});t.prototype.k=function(a,b){a.$group_key=this.Da;a.$group_id=this.Ca;
61
- a.$token=this.p("token");return this.d.Ga({type:"groups",data:c.Na(a),H:this.p("api_host")+"/"+this.p("api_routes").groups,Ia:this.d.u.Sa},b)};t.prototype.A=function(a){return"$group_key"===a||"$group_id"===a};t.prototype.p=function(a){return this.d.c(a)};t.prototype.toString=function(){return this.d.toString()+".group."+this.Da+"."+this.Ca};t.prototype.remove=t.prototype.remove;t.prototype.set=t.prototype.set;t.prototype.set_once=t.prototype.O;t.prototype.union=t.prototype.ha;t.prototype.unset=t.prototype.xa;
62
- t.prototype.toString=t.prototype.toString;c.extend(k.prototype,A);k.prototype.Y=function(a){this.d=a};k.prototype.set=H(function(a,b,d){var h=this.dc(a,b);c.g(a)&&(d=b);this.p("save_referrer")&&this.d.persistence.hb(document.referrer);h.$set=c.extend({},c.info.Xc(),h.$set);return this.k(h,d)});k.prototype.O=H(function(a,b,d){var h=this.gc(a,b);c.g(a)&&(d=b);return this.k(h,d)});k.prototype.xa=H(function(a,b){return this.k(this.oc(a),b)});k.prototype.Kb=H(function(a,b,d){var h={},e={};c.g(a)?(c.a(a,
63
- function(a,b){this.A(b)||(isNaN(parseFloat(a))?o.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):e[b]=a)},this),d=b):(c.e(b)&&(b=1),e[a]=b);h.$add=e;return this.k(h,d)});k.prototype.append=H(function(a,b,d){c.g(a)&&(d=b);return this.k(this.Bc(a,b),d)});k.prototype.remove=H(function(a,b,d){c.g(a)&&(d=b);return this.k(this.Yb(a,b),d)});k.prototype.ha=H(function(a,b,d){c.g(a)&&(d=b);return this.k(this.mc(a,b),d)});k.prototype.wd=H(function(a,b,d){if(!c.Nb(a)&&
64
- (a=parseFloat(a),isNaN(a))){o.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",c.extend({$amount:a},b),d)});k.prototype.vb=function(a){return this.set("$transactions",[],a)};k.prototype.Db=function(){if(this.Ea())return this.k({$delete:this.d.I()});o.error("mixpanel.people.delete_user() requires you to call identify() first")};k.prototype.toString=function(){return this.d.toString()+".people"};k.prototype.k=function(a,b){a.$token=
65
- this.p("token");a.$distinct_id=this.d.I();var d=this.d.s("$device_id"),h=this.d.s("$user_id"),e=this.d.s("$had_persisted_distinct_id");d&&(a.$device_id=d);h&&(a.$user_id=h);e&&(a.$had_persisted_distinct_id=e);d=c.Na(a);return!this.Ea()?(this.vc(a),c.e(b)||(this.p("verbose")?b({status:-1,error:r}):b(-1)),c.truncate(d,255)):this.d.Ga({type:"people",data:d,H:this.p("api_host")+"/"+this.p("api_routes").engage,Ia:this.d.u.$a},b)};k.prototype.p=function(a){return this.d.c(a)};k.prototype.Ea=function(){return this.d.V.Ib===
66
- m};k.prototype.vc=function(a){"$set"in a?this.d.persistence.q("$set",a):"$set_once"in a?this.d.persistence.q("$set_once",a):"$unset"in a?this.d.persistence.q("$unset",a):"$add"in a?this.d.persistence.q("$add",a):"$append"in a?this.d.persistence.q("$append",a):"$remove"in a?this.d.persistence.q("$remove",a):"$union"in a?this.d.persistence.q("$union",a):o.error("Invalid call to _enqueue():",a)};k.prototype.W=function(a,b,d,e){var f=this,g=c.extend({},this.d.persistence.aa(a)),k=g;!c.e(g)&&c.g(g)&&!c.ta(g)&&
67
- (f.d.persistence.w(a,g),f.d.persistence.save(),e&&(k=e(g)),b.call(f,k,function(b,e){0===b&&f.d.persistence.q(a,g);c.e(d)||d(b,e)}))};k.prototype.wc=function(a,b,d,e,f,g,k){var i=this;this.W("$set",this.set,a);this.W("$set_once",this.O,e);this.W("$unset",this.xa,g,function(a){return c.keys(a)});this.W("$add",this.Kb,b);this.W("$union",this.ha,f);a=this.d.persistence.aa("$append");if(!c.e(a)&&c.isArray(a)&&a.length)for(var j,b=function(a,b){0===a&&i.d.persistence.q("$append",j);c.e(d)||d(a,b)},e=a.length-
68
- 1;0<=e;e--)a=this.d.persistence.aa("$append"),j=a.pop(),i.d.persistence.save(),c.ta(j)||i.append(j,b);a=this.d.persistence.aa("$remove");if(!c.e(a)&&c.isArray(a)&&a.length)for(var p,b=function(a,b){0===a&&i.d.persistence.q("$remove",p);c.e(k)||k(a,b)},e=a.length-1;0<=e;e--)a=this.d.persistence.aa("$remove"),p=a.pop(),i.d.persistence.save(),c.ta(p)||i.remove(p,b)};k.prototype.A=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};k.prototype.set=
69
- k.prototype.set;k.prototype.set_once=k.prototype.O;k.prototype.unset=k.prototype.xa;k.prototype.increment=k.prototype.Kb;k.prototype.append=k.prototype.append;k.prototype.remove=k.prototype.remove;k.prototype.union=k.prototype.ha;k.prototype.track_charge=k.prototype.wd;k.prototype.clear_charges=k.prototype.vb;k.prototype.delete_user=k.prototype.Db;k.prototype.toString=k.prototype.toString;var Ta="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__timers".split(",");q.prototype.ba=
70
- function(){var a={};this.load();c.a(this.props,function(b,d){c.Ua(Ta,d)||(a[d]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=this.j.parse(this.name);a&&(this.props=c.extend({},a))}};q.prototype.Bd=function(){var a;this.j===c.localStorage?(a=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,m),a&&this.z(a)):this.j===c.cookie&&(a=c.localStorage.parse(this.name),c.localStorage.remove(this.name),a&&this.z(a))};q.prototype.save=function(){this.disabled||
71
- this.j.set(this.name,c.ia(this.props),this.Qa,this.La,this.cc,this.Bb,this.oa)};q.prototype.va=function(a){this.load();return this.props[a]};q.prototype.remove=function(){this.j.remove(this.name,D,this.oa);this.j.remove(this.name,m,this.oa)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.z=function(a,b,d){return c.g(a)?("undefined"===typeof b&&(b="None"),this.Qa="undefined"===typeof d?this.Cb:d,this.load(),c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===
72
- b)this.props[c]=a},this),this.save(),m):D};q.prototype.m=function(a,b){return c.g(a)?(this.Qa="undefined"===typeof b?this.Cb:b,this.load(),c.extend(this.props,a),this.save(),m):D};q.prototype.S=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};q.prototype.qc=function(a){this.m(c.info.bd(a))};q.prototype.hb=function(a){this.z({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.Wb(a)||"$direct"},"")};q.prototype.Mc=function(){return c.ga({$initial_referrer:this.props.$initial_referrer,
73
- $initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.pc=function(a){this.Cb=this.Qa=a.cookie_expiration;this.fc(a.disable_persistence);this.gd(a.cookie_domain);this.hd(a.cross_site_cookie);this.jd(a.cross_subdomain_cookie);this.md(a.secure_cookie)};q.prototype.fc=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.gd=function(a){if(a!==this.oa)this.remove(),this.oa=a,this.save()};q.prototype.hd=function(a){if(a!==this.Bb)this.Bb=a,this.remove(),this.save()};
74
- q.prototype.jd=function(a){if(a!==this.La)this.La=a,this.remove(),this.save()};q.prototype.Kc=function(){return this.La};q.prototype.md=function(a){if(a!==this.cc)this.cc=a?m:D,this.remove(),this.save()};q.prototype.q=function(a,b){var d=this.ka(a),e=b[a],f=this.F("$set"),g=this.F("$set_once"),k=this.F("$unset"),i=this.F("$add"),j=this.F("$union"),p=this.F("$remove",[]),n=this.F("$append",[]);"__mps"===d?(c.extend(f,e),this.w("$add",e),this.w("$union",e),this.w("$unset",e)):"__mpso"===d?(c.a(e,function(a,
75
- b){b in g||(g[b]=a)}),this.w("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([f,g,i,j],function(b){a in b&&delete b[a]});c.a(n,function(b){a in b&&delete b[a]});k[a]=m}):"__mpa"===d?(c.a(e,function(a,b){b in f?f[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.w("$unset",e)):"__mpu"===d?(c.a(e,function(a,b){c.isArray(a)&&(b in j||(j[b]=[]),j[b]=j[b].concat(a))}),this.w("$unset",e)):"__mpr"===d?(p.push(e),this.w("$append",e)):"__mpap"===d&&(n.push(e),this.w("$unset",e));o.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");
76
- o.log(b);this.save()};q.prototype.w=function(a,b){var d=this.props[this.ka(a)];c.e(d)||c.a(b,function(b,e){"$append"===a||"$remove"===a?c.a(d,function(a){a[e]===b&&delete a[e]}):delete d[e]},this)};q.prototype.aa=function(a){return this.va(this.ka(a))};q.prototype.ka=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";o.error("Invalid queue:",
77
- a)};q.prototype.F=function(a,b){var d=this.ka(a),b=c.e(b)?{}:b;return this.props[d]||(this.props[d]=b)};q.prototype.kd=function(a){var b=(new Date).getTime(),c=this.va("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};q.prototype.Zc=function(a){var b=(this.va("__timers")||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var ca,x,O=n.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ma=!O&&-1===z.indexOf("MSIE")&&-1===z.indexOf("Mozilla"),ba=r;I.sendBeacon&&(ba=function(){return I.sendBeacon.apply(I,
78
- arguments)});var A={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},Aa={api_host:"https://api-js.mixpanel.com",api_routes:A,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:D,cross_subdomain_cookie:m,error_reporter:P,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:P,mp_loader:r,track_marketing:m,track_pageview:D,skip_first_touch_marketing:D,store_google:m,
79
- stop_utm_persistence:D,save_referrer:m,test:D,verbose:D,img:D,debug:D,track_links_timeout:300,cookie_expiration:365,upgrade:D,disable_persistence:D,disable_cookie:D,secure_cookie:D,ip:m,opt_out_tracking_by_default:D,opt_out_persistence_by_default:D,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:r,property_blacklist:[],xhr_headers:{},ignore_dnt:D,batch_requests:m,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:m,hooks:{},record_block_class:/^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$/,
80
- record_block_selector:"img, video",record_collect_fonts:D,record_idle_timeout_ms:18E5,record_mask_text_class:/^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$/,record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},la=D;e.prototype.Va=function(a,b,d){if(c.e(d))this.l("You must name your new library: init(token, config, name)");else if("mixpanel"===d)this.l("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
81
- else return a=S(a,b,d),x[d]=a,a.la(),a};e.prototype.Y=function(a,b,d){b=b||{};this.__loaded=m;this.config={};var e={};"api_payload_format"in b||(b.api_host||Aa.api_host).match(/\.mixpanel\.com/)&&(e.api_payload_format="json");this.ec(c.extend({},Aa,e,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=P;this.za=[];this.Aa=[];this.ya=[];this.V={disable_all_events:D,identify_called:D};this.u={};if(this.U=this.c("batch_requests"))if(!c.localStorage.ua(m)||!O)this.U=D,
82
- o.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),c.a(this.Gb(),function(a){o.log("Clearing batch queue "+a.da);c.localStorage.remove(a.da)});else if(this.Pc(),ba&&n.addEventListener){var f=c.bind(function(){this.u.M.fa||this.u.M.flush({nc:m})},this);n.addEventListener("pagehide",function(a){a.persisted&&f()});n.addEventListener("visibilitychange",function(){"hidden"===u.visibilityState&&f()})}this.persistence=this.cookie=new q(this.config);this.R={};this.xc();a=c.kb();
83
- this.I()||this.z({distinct_id:"$device:"+a,$device_id:a},"");(a=this.c("track_pageview"))&&this.yc(a);0<this.c("record_sessions_percent")&&100*Math.random()<=this.c("record_sessions_percent")&&this.ic()};e.prototype.ic=K(function(){if(n.MutationObserver){var a=c.bind(function(){this.K=this.K||new n.__mp_recorder(this);this.K.startRecording()},this);c.e(n.__mp_recorder)?na(this.c("recorder_src"),a):a()}else o.B("Browser does not support MutationObserver; skipping session recording")});e.prototype.qd=
84
- function(){this.K?this.K.stopRecording():o.B("Session recorder module not loaded")};e.prototype.Hb=function(){var a={},b=this.pb();b&&(a.$mp_replay_id=b);return a};e.prototype.Nc=function(){var a=r,b=this.pb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+c.jb({replay_id:b,distinct_id:this.I(),token:this.c("token")}));return a};e.prototype.pb=function(){var a=r;this.K&&(a=this.K.replayId);return a||r};e.prototype.la=function(){this.c("loaded")(this);this.tb();this.people.O(this.persistence.Mc());
85
- if(this.c("store_google")&&this.c("stop_utm_persistence")){var a=c.info.Z(r);c.a(a,function(a,c){this.S(c)}.bind(this))}};e.prototype.tb=function(){this.persistence.qc(u.referrer);this.c("store_google")&&!this.c("stop_utm_persistence")&&this.m(c.info.Z());this.c("save_referrer")&&this.persistence.hb(u.referrer)};e.prototype.uc=function(){c.a(this.za,function(a){this.Fa.apply(this,a)},this);this.$()||c.a(this.Aa,function(a){this.k.apply(this,a)},this);delete this.za;delete this.Aa};e.prototype.Fa=
86
- function(a,b){if(this.c("img"))return this.l("You can't use DOM tracking functions with img = true."),D;if(!la)return this.za.push([a,b]),D;var c=(new a).Va(this);return c.o.apply(c,b)};e.prototype.yc=function(a){var b="";this.fb()&&(b=c.info.Ma());if(c.Ua(["full-url","url-with-path-and-query-string","url-with-path"],a)){n.addEventListener("popstate",function(){n.dispatchEvent(new Event("mp_locationchange"))});n.addEventListener("hashchange",function(){n.dispatchEvent(new Event("mp_locationchange"))});
87
- var d=n.history.pushState;if("function"===typeof d)n.history.pushState=function(a,b,c){d.call(n.history,a,b,c);n.dispatchEvent(new Event("mp_locationchange"))};var e=n.history.replaceState;if("function"===typeof e)n.history.replaceState=function(a,b,c){e.call(n.history,a,b,c);n.dispatchEvent(new Event("mp_locationchange"))};n.addEventListener("mp_locationchange",function(){var d=c.info.Ma(),e=D;"full-url"===a?e=d!==b:"url-with-path-and-query-string"===a?e=d.split("#")[0]!==b.split("#")[0]:"url-with-path"===
88
- a&&(e=d.split("#")[0].split("?")[0]!==b.split("#")[0].split("?")[0]);e&&this.fb()&&(b=d)}.bind(this))}};e.prototype.qb=function(a,b){if(c.e(a))return r;if(O)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return f};e.prototype.k=function(a,b,d,e){var f=m;if(ma)return this.Aa.push(arguments),f;var g={method:this.c("api_method"),gb:this.c("api_transport"),rc:this.c("verbose")},k=r;if(!e&&(c.Wa(d)||"string"===
89
- typeof d))e=d,d=r;d=c.extend(g,d||{});if(!O)d.method="GET";var g="POST"===d.method,i=ba&&g&&"sendbeacon"===d.gb.toLowerCase(),j=d.rc;b.verbose&&(j=m);this.c("test")&&(b.test=1);j&&(b.verbose=1);this.c("img")&&(b.img=1);if(!O)if(e)b.callback=e;else if(j||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();g&&(k="data="+encodeURIComponent(b.data),delete b.data);var a=a+("?"+c.jb(b)),p=this;if("img"in b)k=u.createElement("img"),k.src=a,u.body.appendChild(k);
90
- else if(i){try{f=ba(a,k)}catch(n){p.l(n),f=D}try{e&&e(f?1:0)}catch(q){p.l(q)}}else if(O)try{var o=new XMLHttpRequest;o.open(d.method,a,m);var t=this.c("xhr_headers");g&&(t["Content-Type"]="application/x-www-form-urlencoded");c.a(t,function(a,b){o.setRequestHeader(b,a)});if(d.kc&&"undefined"!==typeof o.timeout){o.timeout=d.kc;var x=(new Date).getTime()}o.withCredentials=m;o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){if(e)if(j){var a;try{a=c.T(o.responseText)}catch(b){if(p.l(b),
91
- d.Oc)a=o.responseText;else return}e(a)}else e(Number(o.responseText))}else a=o.timeout&&!o.status&&(new Date).getTime()-x>=o.timeout?"timeout":"Bad HTTP status: "+o.status+" "+o.statusText,p.l(a),e&&(j?e({status:0,sa:o.status,error:a,ac:(o.responseHeaders||{})["Retry-After"]}):e(0))};o.send(k)}catch(y){p.l(y),f=D}else k=u.createElement("script"),k.type="text/javascript",k.async=m,k.defer=m,k.src=a,t=u.getElementsByTagName("script")[0],t.parentNode.insertBefore(k,t);return f};e.prototype.Ba=function(a){function b(a,
92
- b){c.a(a,function(a){if(c.isArray(a[0])){var d=b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],f=[],g=[];c.a(a,function(a){a&&(d=a[0],c.isArray(d)?g.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?g.push(a):f.push(a))},this);b(e,this);b(f,this);b(g,this)};e.prototype.ub=function(){return!!this.u.M};e.prototype.Gb=function(){var a="__mpq_"+this.c("token"),
93
- b=this.c("api_routes");return this.lb=this.lb||{M:{type:"events",H:"/"+b.track,da:a+"_ev"},$a:{type:"people",H:"/"+b.engage,da:a+"_pp"},Sa:{type:"groups",H:"/"+b.groups,da:a+"_gr"}}};e.prototype.Pc=function(){if(!this.ub()){var a=c.bind(function(a){return new C(a.da,{C:this.config,L:this.c("error_reporter"),ed:c.bind(function(b,c,e){this.k(this.c("api_host")+a.H,this.nb(b),c,this.qb(e,b))},this),ma:c.bind(function(b){return this.sb("before_send_"+a.type,b)},this),pd:c.bind(this.cb,this),v:m})},this),
94
- b=this.Gb();this.u={M:a(b.M),$a:a(b.$a),Sa:a(b.Sa)}}this.c("batch_autostart")&&this.bb()};e.prototype.bb=function(){this.sc=m;if(this.ub())this.U=m,c.a(this.u,function(a){a.start()})};e.prototype.cb=function(){this.U=D;c.a(this.u,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.Ba([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.V.Fc=m:this.ya=this.ya.concat(a)};e.prototype.nb=function(a){a=c.ia(a);"base64"===this.c("api_payload_format")&&(a=c.Cc(a));return{data:a}};
95
- e.prototype.Ga=function(a,b){var d=c.truncate(a.data,255),e=a.H,f=a.Ia,g=a.nd,k=a.fd||{},b=b||P,i=m,j=c.bind(function(){k.hc||(d=this.sb("before_send_"+a.type,d));return d?(o.log("MIXPANEL REQUEST:"),o.log(d),this.k(e,this.nb(d),k,this.qb(b,d))):r},this);this.U&&!g?f.Oa(d,function(a){a?b(1,d):j()}):i=j();return i&&d};e.prototype.o=K(function(a,b,d,e){!e&&"function"===typeof d&&(e=d,d=r);var d=d||{},f=d.transport;if(f)d.gb=f;f=d.send_immediately;"function"!==typeof e&&(e=P);if(c.e(a))this.l("No event name provided to mixpanel.track");
96
- else if(this.ob(a))e(0);else{b=c.extend({},b);b.token=this.c("token");var g=this.persistence.Zc(a);c.e(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.tb();g=this.c("track_marketing")?c.info.Tc():{};b=c.extend({},c.info.ba({mp_loader:this.c("mp_loader")}),g,this.persistence.ba(),this.R,this.Hb(),b);g=this.c("property_blacklist");c.isArray(g)?c.a(g,function(a){delete b[a]}):this.l("Invalid value for property_blacklist config: "+g);return this.Ga({type:"events",data:{event:a,
97
- properties:b},H:this.c("api_host")+"/"+this.c("api_routes").track,Ia:this.u.M,nd:f,fd:d},e)}});e.prototype.ld=K(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.m(e);return this.people.set(a,b,d)});e.prototype.zc=K(function(a,b,c){var e=this.s(a),f={};e===l?(f[a]=[b],this.m(f)):-1===e.indexOf(b)&&(e.push(b),f[a]=e,this.m(f));return this.people.ha(a,b,c)});e.prototype.$c=K(function(a,b,c){var e=this.s(a);if(e!==l){var f=e.indexOf(b);-1<f&&(e.splice(f,1),this.m({Hd:e}));0===e.length&&this.S(a)}return this.people.remove(a,
98
- b,c)});e.prototype.zd=K(function(a,b,d,e){var f=c.extend({},b||{});c.a(d,function(a,b){a!==r&&a!==l&&(f[b]=a)});return this.o(a,f,e)});e.prototype.tc=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.Lc=function(a,b){var c=this.tc(a,b),e=this.mb[c];if(e===l||e.Da!==a||e.Ca!==b)e=new t,e.Y(this,a,b),this.mb[c]=e;return e};e.prototype.fb=K(function(a,b){"object"!==typeof a&&(a={});var b=b||{},d=b.event_name||"$mp_web_page_view",e=c.extend(c.info.Uc(),c.info.Z(),c.info.xb()),e=c.extend({},e,
99
- a);return this.o(d,e)});e.prototype.yd=function(){return this.Fa.call(this,M,arguments)};e.prototype.xd=function(){return this.Fa.call(this,T,arguments)};e.prototype.sd=function(a){c.e(a)?this.l("No event name provided to mixpanel.time_event"):this.ob(a)||this.persistence.kd(a)};var Ea={persistent:m};e.prototype.m=function(a,b){var d=da(b);d.persistent?this.persistence.m(a,d.days):c.extend(this.R,a)};e.prototype.z=function(a,b,d){d=da(d);d.persistent?this.persistence.z(a,b,d.days):("undefined"===
100
- typeof b&&(b="None"),c.a(a,function(a,c){if(!this.R.hasOwnProperty(c)||this.R[c]===b)this.R[c]=a},this))};e.prototype.S=function(a,b){b=da(b);b.persistent?this.persistence.S(a):delete this.R[a]};e.prototype.rb=function(a,b){var c={};c[a]=b;this.m(c)};e.prototype.Ta=function(a,b,c,e,f,g,k,i){var j=this.I();if(a&&j!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.l("distinct_id cannot have $device: prefix"),-1;this.m({$user_id:a})}this.s("$device_id")||this.z({$had_persisted_distinct_id:m,
101
- $device_id:j},"");a!==j&&a!==this.s("__alias")&&(this.S("__alias"),this.m({distinct_id:a}));this.V.Ib=m;this.people.wc(b,c,e,f,g,k,i);a!==j&&this.o("$identify",{distinct_id:a,$anon_distinct_id:j},{hc:m})};e.prototype.reset=function(){this.persistence.clear();this.V.Ib=D;var a=c.kb();this.z({distinct_id:"$device:"+a,$device_id:a},"")};e.prototype.I=function(){return this.s("distinct_id")};e.prototype.Ac=function(a,b){if(a===this.s("$people_distinct_id"))return this.l("Attempting to create alias for existing People user - aborting."),
102
- -2;var d=this;c.e(b)&&(b=this.I());if(a!==b)return this.rb("__alias",a),this.o("$create_alias",{alias:a,distinct_id:b},{hc:m},function(){d.Ta(a)});this.l("alias matches current distinct_id - skipping api call.");this.Ta(a);return-1};e.prototype.Vc=function(a){this.rb("mp_name_tag",a)};e.prototype.ec=function(a){if(c.g(a))c.extend(this.config,a),a.batch_size&&c.a(this.u,function(a){a.$b()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
103
- (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.pc(this.config),J=J||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.sb=function(a){var b=(this.config.hooks[a]||Fa).apply(this,L.call(arguments,1));"undefined"===typeof b&&(this.l(a+" hook did not return a value"),b=r);return b};e.prototype.s=function(a){return this.persistence.va([a])};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);
104
- return a};e.prototype.ob=function(a){return c.Mb(z)||this.V.Fc||c.Ua(this.ya,a)};e.prototype.xc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.ua()&&(!this.ra()&&this.ra({persistence_type:"cookie"})&&this.Qb({enable_persistence:D}),!this.$()&&this.$({persistence_type:"cookie"})&&this.Za({clear_persistence:D}),this.wb({persistence_type:"cookie",enable_persistence:D}));if(this.$())this.ja({clear_persistence:m});else if(!this.ra()&&(this.c("opt_out_tracking_by_default")||
105
- c.cookie.get("mp_optout")))c.cookie.remove("mp_optout"),this.Za({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.ja=function(a){if(a&&a.clear_persistence)a=m;else if(a&&a.enable_persistence)a=D;else return;!this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.fc(a);a?this.cb():this.sc&&this.bb()};e.prototype.X=function(a,b){b=c.extend({track:c.bind(this.o,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),
106
- cookie_expiration:this.c("cookie_expiration"),cross_site_cookie:this.c("cross_site_cookie"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),cookie_domain:this.c("cookie_domain"),secure_cookie:this.c("secure_cookie"),ignore_dnt:this.c("ignore_dnt")},b);c.localStorage.ua()||(b.persistence_type="cookie");return a(this.c("token"),{o:b.track,ud:b.track_event_name,vd:b.track_properties,Ub:b.persistence_type,Tb:b.cookie_prefix,yb:b.cookie_domain,zb:b.cookie_expiration,Ec:b.cross_site_cookie,Ab:b.cross_subdomain_cookie,
107
- cd:b.secure_cookie,Jb:b.ignore_dnt})};e.prototype.Qb=function(a){a=c.extend({enable_persistence:m},a);this.X(Ja,a);this.ja(a)};e.prototype.Za=function(a){a=c.extend({clear_persistence:m,delete_user:m},a);a.delete_user&&this.people&&this.people.Ea()&&(this.people.Db(),this.people.vb());this.X(Ka,a);this.ja(a)};e.prototype.ra=function(a){return this.X(La,a)};e.prototype.$=function(a){return this.X(ua,a)};e.prototype.wb=function(a){a=c.extend({enable_persistence:m},a);this.X(Na,a);this.ja(a)};e.prototype.l=
108
- function(a,b){o.error.apply(o.error,arguments);try{!b&&!(a instanceof Error)&&(a=Error(a)),this.c("error_reporter")(a,b)}catch(c){o.error(c)}};e.prototype.init=e.prototype.Va;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.sd;e.prototype.track=e.prototype.o;e.prototype.track_links=e.prototype.yd;e.prototype.track_forms=e.prototype.xd;e.prototype.track_pageview=e.prototype.fb;e.prototype.register=e.prototype.m;e.prototype.register_once=
109
- e.prototype.z;e.prototype.unregister=e.prototype.S;e.prototype.identify=e.prototype.Ta;e.prototype.alias=e.prototype.Ac;e.prototype.name_tag=e.prototype.Vc;e.prototype.set_config=e.prototype.ec;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.s;e.prototype.get_distinct_id=e.prototype.I;e.prototype.toString=e.prototype.toString;e.prototype.opt_out_tracking=e.prototype.Za;e.prototype.opt_in_tracking=e.prototype.Qb;e.prototype.has_opted_out_tracking=e.prototype.$;e.prototype.has_opted_in_tracking=
110
- e.prototype.ra;e.prototype.clear_opt_in_out_tracking=e.prototype.wb;e.prototype.get_group=e.prototype.Lc;e.prototype.set_group=e.prototype.ld;e.prototype.add_group=e.prototype.zc;e.prototype.remove_group=e.prototype.$c;e.prototype.track_with_groups=e.prototype.zd;e.prototype.start_batch_senders=e.prototype.bb;e.prototype.stop_batch_senders=e.prototype.cb;e.prototype.start_session_recording=e.prototype.ic;e.prototype.stop_session_recording=e.prototype.qd;e.prototype.get_session_recording_properties=
111
- e.prototype.Hb;e.prototype.get_session_replay_url=e.prototype.Nc;e.prototype.DEFAULT_API_ROUTES=A;q.prototype.properties=q.prototype.ba;q.prototype.update_search_keyword=q.prototype.qc;q.prototype.update_referrer_info=q.prototype.hb;q.prototype.get_cross_subdomain=q.prototype.Kc;q.prototype.clear=q.prototype.clear;var F={};(function(a){na=a;ca=1;x=n.mixpanel;c.e(x)?o.B('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
112
- x.__loaded||x.config&&x.persistence?o.B("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):1.1>(x.__SV||0)?o.B("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(x._i,function(a){a&&c.isArray(a)&&(F[a[a.length-1]]=S.apply(this,a))}),Ca(),x.init(),c.a(F,function(a){a.la()}),Ba())})(function(a,b){var c=
113
- document.createElement("script");c.type="text/javascript";c.async=m;c.onload=b;c.src=a;document.head.appendChild(c)})})();
2
+ var j=void 0,l=!0,r=null,B=!1;
3
+ (function(){function Ua(){function a(){if(!a.Rc)ua=a.Rc=l,va=B,c.a(G,function(a){a.Ec()})}function b(){try{t.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(t.addEventListener)"complete"===t.readyState?a():t.addEventListener("DOMContentLoaded",a,B);else if(t.attachEvent){t.attachEvent("onreadystatechange",a);var d=B;try{d=p.frameElement===r}catch(f){}t.documentElement.doScroll&&d&&b()}c.gc(p,"load",a,l)}function Va(){x.init=function(a,b,d){if(d)return x[d]||(x[d]=G[d]=W(a,
4
+ b,d),x[d].ra()),x[d];d=x;if(G.mixpanel)d=G.mixpanel;else if(a)d=W(a,b,"mixpanel"),d.ra(),G.mixpanel=d;x=d;1===ia&&(p.mixpanel=x);Wa()}}function Wa(){c.a(G,function(a,b){"mixpanel"!==b&&(x[b]=a)});x._=c}function ja(a){a=c.g(a)?a:c.e(a)?{}:{days:a};return c.extend({},Xa,a)}function W(a,b,d){var f,g="mixpanel"===d?x:x[d];if(g&&0===ia)f=g;else{if(g&&!c.isArray(g)){o.error("You have already initialized "+d);return}f=new e}f.vb={};f.ba(a,b,d);f.people=new q;f.people.ba(f);if(!f.c("skip_first_touch_marketing")){var a=
5
+ c.info.ca(r),h={},v=B;c.a(a,function(a,b){(h["initial_"+b]=a)&&(v=l)});v&&f.people.S(h)}L=L||f.c("debug");!c.e(g)&&c.isArray(g)&&(f.Ia.call(f.people,g.people),f.Ia(g));return f}function e(){}function R(){}function Ya(a){return a}function wa(a){throw Error(a+" not available in this build.");}function m(a){this.props={};this.Ud=B;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)o.D("Unknown persistence type "+b+"; falling back to cookie"),
6
+ b=a.persistence="cookie";this.l="localStorage"===b&&c.localStorage.Ba()?c.localStorage:c.cookie;this.load();this.zc(a);this.Qd();this.save()}function q(){}function u(){}function D(a,b){this.O=b.O;this.ha=new E(a,{O:c.bind(this.h,this),v:b.v,qc:b.qc,q:b.q});this.F=b.F;this.rd=b.sd;this.sa=b.sa;this.Cd=b.Dd;this.I=this.F.batch_size;this.xa=this.F.batch_flush_interval_ms;this.ka=!this.F.batch_autostart;this.Ra=0;this.M={};this.Ob=b.Ob||B}function xa(a,b){var d=[];c.a(a,function(a){var c=a.id;if(c in
7
+ b){if(c=b[c],c!==r)a.payload=c,d.push(a)}else d.push(a)});return d}function ya(a,b){var d=[];c.a(a,function(a){a.id&&!b[a.id]&&d.push(a)});return d}function E(a,b){b=b||{};this.T=a;if(this.q=b.q)this.v=b.v||new S,this.fb=new za(a,{l:b.qc||window.localStorage}),this.v.Q();this.h=b.O||c.bind(Aa.error,Aa);this.Da=b.Da||r;this.G=[];this.bb=B}function S(a){this.l=a||localStorage}function za(a,b){b=b||{};this.T=a;this.l=b.l||window.localStorage;this.dc=b.dc||100;this.tc=b.tc||2E3;this.ec=b.ec||y}function X(){this.ac=
8
+ "submit"}function O(){this.ac="click"}function F(){}function Ba(a){var b=Za,d=a.split("."),d=d[d.length-1];if(4<d.length||"com"===d||"org"===d)b=$a;return(a=a.match(b))?a[0]:""}function ka(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?b.substring(0,a):b}function Y(a,b){if(la!==r&&!b)return la;var d=l;try{var a=a||p.localStorage,c="__mplss_"+ka(8);a.setItem(c,"xyz");"xyz"!==a.getItem(c)&&(d=B);a.removeItem(c)}catch(g){d=B}return la=d}function ma(a){return{log:na(o.log,
9
+ a),error:na(o.error,a),D:na(o.D,a)}}function na(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(o,arguments)}}function Z(a,b){oa.add(a,b);pa||(pa=ab(oa.Sc))}function Ca(a){var b,d=typeof a;if(a!==r&&("object"===d||"function"===d))b=a.then;return"function"===typeof b?b:B}function qa(){for(var a=0;a<this.C.length;a++){var b=1===this.state?this.C[a].Fd:this.C[a].Tc,d=this.C[a],c=j,g=j;try{b===B?d.reject(this.fa):(c=b===l?this.fa:b.call(j,this.fa),c===d.ib?d.reject(TypeError("Promise-chain cycle")):
10
+ (g=Ca(c))?g.call(c,d.resolve,d.reject):d.resolve(c))}catch(h){d.reject(h)}}this.C.length=0}function Da(a){var b,d=this;if(!d.ma){d.ma=l;if(d.wa)d=d.wa;try{(b=Ca(a))?Z(function(){var c=new Ea(d);try{b.call(a,function(){Da.apply(c,arguments)},function(){T.apply(c,arguments)})}catch(f){T.call(c,f)}}):(d.fa=a,d.state=1,0<d.C.length&&Z(qa,d))}catch(c){T.call(new Ea(d),c)}}}function T(a){var b=this;if(!b.ma){b.ma=l;if(b.wa)b=b.wa;b.fa=a;b.state=2;0<b.C.length&&Z(qa,b)}}function Fa(a,b,d,c){for(var g=0;g<
11
+ b.length;g++)(function(g){a.resolve(b[g]).then(function(a){d(g,a)},c)})(g)}function Ea(a){this.wa=a;this.ma=B}function bb(a){this.ib=a;this.state=0;this.ma=B;this.C=[];this.fa=j}function H(a){if("function"!==typeof a)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var b=new bb(this);this.then=function(a,d){var c={Fd:"function"===typeof a?a:l,Tc:"function"===typeof d?d:B};c.ib=new this.constructor(function(a,b){if("function"!==typeof a||"function"!==
12
+ typeof b)throw TypeError("Not a function");c.resolve=a;c.reject=b});b.C.push(c);0!==b.state&&Z(qa,b);return c.ib};this["catch"]=function(a){return this.then(j,a)};try{a.call(j,function(a){Da.call(b,a)},function(a){T.call(b,a)})}catch(d){T.call(b,d)}}function cb(a,b){Ga(l,a,b)}function db(a,b){Ga(B,a,b)}function eb(a,b){return"1"===$(b).get(aa(a,b))}function Ha(a,b){if(fb(b))return o.warn('This browser has "Do Not Track" enabled. This will prevent the Mixpanel SDK from sending any data. To ignore the "Do Not Track" browser setting, initialize the Mixpanel instance with the config "ignore_dnt: true"'),
13
+ l;var d="0"===$(b).get(aa(a,b));d&&o.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");return d}function M(a){return ra(a,function(a){return this.c(a)})}function I(a){return ra(a,function(a){return this.p(a)})}function P(a){return ra(a,function(a){return this.p(a)})}function gb(a,b){b=b||{};$(b).remove(aa(a,b),!!b.Jb,b.Hb)}function $(a){a=a||{};return"localStorage"===a.cc?c.localStorage:c.cookie}function aa(a,b){b=b||{};return(b.bc||hb)+a}function fb(a){if(a&&
14
+ a.Sb)return B;var a=a&&a.window||p,b=a.navigator||{},d=B;c.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){c.i([l,1,"1","yes"],a)&&(d=l)});return d}function Ga(a,b,d){!c.eb(b)||!b.length?o.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(d=d||{},$(d).set(aa(b,d),a?1:0,c.Wb(d.Ib)?d.Ib:r,!!d.Jb,!!d.qd,!!d.Oc,d.Hb),d.o&&a&&d.o(d.Jd||"$opt_in",d.Kd,{send_immediately:l}))}function ra(a,b){return function(){var d=B;try{var c=b.call(this,"token"),g=b.call(this,"ignore_dnt"),
15
+ h=b.call(this,"opt_out_tracking_persistence_type"),e=b.call(this,"opt_out_tracking_cookie_prefix"),i=b.call(this,"window");c&&(d=Ha(c,{Sb:g,cc:h,bc:e,window:i}))}catch(k){o.error("Unexpected error when checking tracking opt-out status: "+k)}if(!d)return a.apply(this,arguments);d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var L=B,p;if("undefined"===typeof window){var Ia={hostname:""};p={navigator:{userAgent:"",onLine:l},document:{location:Ia,referrer:""},screen:{width:0,height:0},location:Ia}}else p=
16
+ window;var Ja=p.setImmediate,J,pa,oa,Ka=Object.prototype.toString,ab="undefined"!==typeof Ja?function(a){return Ja(a)}:setTimeout;try{Object.defineProperty({},"x",{}),J=function(a,b,d,c){return Object.defineProperty(a,b,{value:d,writable:l,configurable:c!==B})}}catch(ob){J=function(a,b,d){a[b]=d;return a}}oa=function(){function a(a,b){this.Vc=a;this.self=b;this.next=j}var b,d,c;return{add:function(g,h){c=new a(g,h);d?d.next=c:b=c;d=c;c=j},Sc:function(){var a=b;for(b=d=pa=j;a;)a.Vc.call(a.self),a=
17
+ a.next}}}();var La=J({},"constructor",H,B);H.prototype=La;J(La,"__NPO__",0,B);J(H,"resolve",function(a){return a&&"object"===typeof a&&1===a.__NPO__?a:new this(function(b,d){if("function"!==typeof b||"function"!==typeof d)throw TypeError("Not a function");b(a)})});J(H,"reject",function(a){return new this(function(b,d){if("function"!==typeof b||"function"!==typeof d)throw TypeError("Not a function");d(a)})});J(H,"all",function(a){var b=this;return"[object Array]"!==Ka.call(a)?b.reject(TypeError("Not an array")):
18
+ 0===a.length?b.resolve([]):new b(function(d,c){if("function"!==typeof d||"function"!==typeof c)throw TypeError("Not a function");var g=a.length,h=Array(g),e=0;Fa(b,a,function(a,b){h[a]=b;++e===g&&d(h)},c)})});J(H,"race",function(a){var b=this;return"[object Array]"!==Ka.call(a)?b.reject(TypeError("Not an array")):new b(function(d,c){if("function"!==typeof d||"function"!==typeof c)throw TypeError("Not a function");Fa(b,a,function(a,b){d(b)},c)})});var y;y="undefined"!==typeof Promise&&-1!==Promise.toString().indexOf("[native code]")?
19
+ Promise:H;var ba=Array.prototype,Ma=Object.prototype,N=ba.slice,U=Ma.toString,ca=Ma.hasOwnProperty,z=p.console,K=p.navigator,t=p.document,da=p.opera,ea=p.screen,A=K.userAgent,sa=Function.prototype.bind,Na=ba.forEach,Oa=ba.indexOf,Pa=ba.map,ib=Array.isArray,ta={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},o={log:function(){if(L&&!c.e(z)&&z)try{z.log.apply(z,arguments)}catch(a){c.a(arguments,function(a){z.log(a)})}},warn:function(){if(L&&!c.e(z)&&z){var a=["Mixpanel warning:"].concat(c.U(arguments));
20
+ try{z.warn.apply(z,a)}catch(b){c.a(a,function(a){z.warn(a)})}}},error:function(){if(L&&!c.e(z)&&z){var a=["Mixpanel error:"].concat(c.U(arguments));try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}},D:function(){if(!c.e(z)&&z){var a=["Mixpanel error:"].concat(c.U(arguments));try{z.error.apply(z,a)}catch(b){c.a(a,function(a){z.error(a)})}}}};c.bind=function(a,b){var d,f;if(sa&&a.bind===sa)return sa.apply(a,N.call(arguments,1));if(!c.cb(a))throw new TypeError;d=N.call(arguments,2);return f=
21
+ function(){if(!(this instanceof f))return a.apply(b,d.concat(N.call(arguments)));var c={};c.prototype=a.prototype;var h=new c;c.prototype=r;c=a.apply(h,d.concat(N.call(arguments)));return Object(c)===c?c:h}};c.a=function(a,b,d){if(!(a===r||a===j))if(Na&&a.forEach===Na)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,g=a.length;c<g&&!(c in a&&b.call(d,a[c],c,a)===ta);c++);else for(c in a)if(ca.call(a,c)&&b.call(d,a[c],c,a)===ta)break};c.extend=function(a){c.a(N.call(arguments,1),function(b){for(var d in b)b[d]!==
22
+ j&&(a[d]=b[d])});return a};c.isArray=ib||function(a){return"[object Array]"===U.call(a)};c.cb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return B}};c.cd=function(a){return!(!a||!ca.call(a,"callee"))};c.U=function(a){return!a?[]:a.U?a.U():c.isArray(a)||c.cd(a)?N.call(a):c.Sd(a)};c.map=function(a,b,d){if(Pa&&a.map===Pa)return a.map(b,d);var f=[];c.a(a,function(a){f.push(b.call(d,a))});return f};c.keys=function(a){var b=[];if(a===r)return b;c.a(a,function(a,c){b[b.length]=c});return b};
23
+ c.Sd=function(a){var b=[];if(a===r)return b;c.a(a,function(a){b[b.length]=a});return b};c.ab=function(a,b){var d=B;if(a===r)return d;if(Oa&&a.indexOf===Oa)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return ta});return d};c.i=function(a,b){return-1!==a.indexOf(b)};c.Ub=function(a,b){a.prototype=new b;a.prototype.constructor=a;a.Gd=b.prototype};c.g=function(a){return a===Object(a)&&!c.isArray(a)};c.Aa=function(a){if(c.g(a)){for(var b in a)if(ca.call(a,b))return B;return l}return B};c.e=
24
+ function(a){return a===j};c.eb=function(a){return"[object String]"==U.call(a)};c.dd=function(a){return"[object Date]"==U.call(a)};c.Wb=function(a){return"[object Number]"==U.call(a)};c.ed=function(a){return!!(a&&1===a.nodeType)};c.Ua=function(a){c.a(a,function(b,d){c.dd(b)?a[d]=c.Wc(b):c.g(b)&&(a[d]=c.Ua(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.Wc=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+
25
+ 1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.la=function(a){var b={};c.a(a,function(a,f){c.eb(a)&&0<a.length&&(b[f]=a)});return b};c.truncate=function(a,b){var d;"string"===typeof a?d=a.slice(0,b):c.isArray(a)?(d=[],c.a(a,function(a){d.push(c.truncate(a,b))})):c.g(a)?(d={},c.a(a,function(a,g){d[g]=c.truncate(a,b)})):d=a;return d};c.oa=function(){return function(a){function b(a,g){var h="",e=0,i=e="",i=0,k=h,n=[],s=g[a];s&&"object"===typeof s&&
26
+ "function"===typeof s.toJSON&&(s=s.toJSON(a));switch(typeof s){case "string":return c(s);case "number":return isFinite(s)?""+s:"null";case "boolean":case "null":return""+s;case "object":if(!s)return"null";h+=" ";n=[];if("[object Array]"===U.apply(s)){i=s.length;for(e=0;e<i;e+=1)n[e]=b(e,s)||"null";return i=0===n.length?"[]":h?"[\n"+h+n.join(",\n"+h)+"\n"+k+"]":"["+n.join(",")+"]"}for(e in s)ca.call(s,e)&&(i=b(e,s))&&n.push(c(e)+(h?": ":":")+i);return i=0===n.length?"{}":h?"{"+n.join(",")+""+k+
27
+ "}":"{"+n.join(",")+"}"}}function c(a){var b=/[\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.X=function(){function a(){switch(i){case "t":return g("t"),
28
+ g("r"),g("u"),g("e"),l;case "f":return g("f"),g("a"),g("l"),g("s"),g("e"),B;case "n":return g("n"),g("u"),g("l"),g("l"),r}h('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)g()}function c(){var a,b,d="",f;if('"'===i)for(;g();){if('"'===i)return g(),d;if("\\"===i)if(g(),"u"===i){for(b=f=0;4>b;b+=1){a=parseInt(g(),16);if(!isFinite(a))break;f=16*f+a}d+=String.fromCharCode(f)}else if("string"===typeof k[i])d+=k[i];else break;else d+=i}h("Bad string")}function f(){var a;a="";"-"===i&&(a="-",g("-"));
29
+ for(;"0"<=i&&"9">=i;)a+=i,g();if("."===i)for(a+=".";g()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;g();if("-"===i||"+"===i)a+=i,g();for(;"0"<=i&&"9">=i;)a+=i,g()}a=+a;if(isFinite(a))return a;h("Bad number")}function g(a){a&&a!==i&&h("Expected '"+a+"' instead of '"+i+"'");i=n.charAt(e);e+=1;return i}function h(a){a=new SyntaxError(a);a.Td=e;a.text=n;throw a;}var e,i,k={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},n,s;s=function(){b();switch(i){case "{":var e;a:{var v,
30
+ k={};if("{"===i){g("{");b();if("}"===i){g("}");e=k;break a}for(;i;){v=c();b();g(":");Object.hasOwnProperty.call(k,v)&&h('Duplicate key "'+v+'"');k[v]=s();b();if("}"===i){g("}");e=k;break a}g(",");b()}}h("Bad object")}return e;case "[":a:{e=[];if("["===i){g("[");b();if("]"===i){g("]");v=e;break a}for(;i;){e.push(s());b();if("]"===i){g("]");v=e;break a}g(",");b()}}h("Bad array")}return v;case '"':return c();case "-":return f();default:return"0"<=i&&"9">=i?f():a()}};return function(a){n=a;e=0;i=" ";
31
+ a=s();b();i&&h("Syntax error");return a}}();c.Mc=function(a){var b,d,f,g,h=0,e=0,i="",i=[];if(!a)return a;a=c.Rd(a);do b=a.charCodeAt(h++),d=a.charCodeAt(h++),f=a.charCodeAt(h++),g=b<<16|d<<8|f,b=g>>18&63,d=g>>12&63,f=g>>6&63,g&=63,i[e++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(g);
32
+ while(h<a.length);i=i.join("");switch(a.length%3){case 1:i=i.slice(0,-2)+"==";break;case 2:i=i.slice(0,-1)+"="}return i};c.Rd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",c,f,g=0,h;c=f=0;g=a.length;for(h=0;h<g;h++){var e=a.charCodeAt(h),i=r;128>e?f++:i=127<e&&2048>e?String.fromCharCode(e>>6|192,e&63|128):String.fromCharCode(e>>12|224,e>>6&63|128,e&63|128);i!==r&&(f>c&&(b+=a.substring(c,f)),b+=i,c=f=h+1)}f>c&&(b+=a.substring(c,a.length));return b};c.tb=function(){function a(){function a(b,
33
+ c){var d,f=0;for(d=0;d<c.length;d++)f|=h[d]<<8*d;return b^f}var b,c,h=[],e=0;for(b=0;b<A.length;b++)c=A.charCodeAt(b),h.unshift(c&255),4<=h.length&&(e=a(e,h),h=[]);0<h.length&&(e=a(e,h));return e.toString(16)}function b(){var a=1*new Date,b;if(p.performance&&p.performance.now)b=p.performance.now();else for(b=0;a==1*new Date;)b++;return a.toString(16)+Math.floor(b).toString(16)}return function(){var c=(ea.height*ea.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+
34
+ "-"+c+"-"+b()}}();var Qa="ahrefsbot,ahrefssiteaudit,baiduspider,bingbot,bingpreview,chrome-lighthouse,facebookexternal,petalbot,pinterest,screaming frog,yahoo! slurp,yandexbot,adsbot-google,apis-google,duplexweb-google,feedfetcher-google,google favicon,google web preview,google-read-aloud,googlebot,googleweblight,mediapartners-google,storebot-google".split(",");c.Vb=function(a){var b,a=a.toLowerCase();for(b=0;b<Qa.length;b++)if(-1!==a.indexOf(Qa[b]))return l;return B};c.sb=function(a){var b,d,f,g=
35
+ [];c.e(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());f=encodeURIComponent(b);g[g.length]=f+"="+d});return g.join(b)};c.Ya=function(a,b){var b=b.replace(/[[]/g,"\\[").replace(/[\]]/g,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===r||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(f){o.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")};c.cookie={get:function(a){for(var a=a+"=",b=t.cookie.split(";"),
36
+ c=0;c<b.length;c++){for(var f=b[c];" "==f.charAt(0);)f=f.substring(1,f.length);if(0===f.indexOf(a))return decodeURIComponent(f.substring(a.length,f.length))}return r},parse:function(a){var b;try{b=c.X(c.cookie.get(a))||{}}catch(d){}return b},Xd:function(a,b,c,f,g,h,e){var i="",k="",n="";e?i="; domain="+e:f&&(i=(i=Ba(t.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+1E3*c),k="; expires="+k.toGMTString());h&&(g=l,n="; SameSite=None");g&&(n+="; secure");t.cookie=a+"="+encodeURIComponent(b)+
37
+ k+"; path=/"+i+n},set:function(a,b,c,f,g,h,e){var i="",k="",n="";e?i="; domain="+e:f&&(i=(i=Ba(t.location.hostname))?"; domain=."+i:"");c&&(k=new Date,k.setTime(k.getTime()+864E5*c),k="; expires="+k.toGMTString());h&&(g=l,n="; SameSite=None");g&&(n+="; secure");a=a+"="+encodeURIComponent(b)+k+"; path=/"+i+n;return t.cookie=a},remove:function(a,b,d){c.cookie.set(a,"",-1,b,B,B,d)}};var la=r;c.localStorage={Ba:function(a){(a=Y(r,a))||o.error("localStorage unsupported; falling back to cookie store");
38
+ return a},error:function(a){o.error("localStorage error: "+a)},get:function(a){try{return p.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return r},parse:function(a){try{return c.X(c.localStorage.get(a))||{}}catch(b){}return r},set:function(a,b){try{p.localStorage.setItem(a,b)}catch(d){c.localStorage.error(d)}},remove:function(a){try{p.localStorage.removeItem(a)}catch(b){c.localStorage.error(b)}}};c.gc=function(){function a(a,f,g){return function(h){if(h=h||b(p.event)){var e=l,i;c.cb(g)&&
39
+ (i=g(h));h=f.call(a,h);if(B===i||B===h)e=B;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=B};b.stopPropagation=function(){this.cancelBubble=l};return function(b,c,g,h,e){b?b.addEventListener&&!h?b.addEventListener(c,g,!!e):(c="on"+c,b[c]=a(b,g,b[c])):o.error("No valid element provided to register_event")}}();var jb=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;c.Qc=function(){function a(a,
40
+ b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!t.getElementsByTagName)return[];var b=b.split(" "),d,h,e,i,k,n,s,w=[t];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){h=d.split("#");d=h[0];w=t.getElementById(h[1]);if(!w||d&&w.nodeName.toLowerCase()!=d)return[];w=[w]}else if(-1<d.indexOf(".")){h=d.split(".");d=h[0];var C=h[1];d||(d="*");h=[];for(k=e=0;k<w.length;k++){s="*"==d?w[k].all?w[k].all:w[k].getElementsByTagName("*"):
41
+ w[k].getElementsByTagName(d);for(n=0;n<s.length;n++)h[e++]=s[n]}w=[];for(k=d=0;k<h.length;k++)h[k].className&&c.eb(h[k].className)&&a(h[k],C)&&(w[d++]=h[k])}else if(h=d.match(jb)){d=h[1];var p=h[2],C=h[3],q=h[4];d||(d="*");h=[];for(k=e=0;k<w.length;k++){s="*"==d?w[k].all?w[k].all:w[k].getElementsByTagName("*"):w[k].getElementsByTagName(d);for(n=0;n<s.length;n++)h[e++]=s[n]}w=[];d=0;switch(C){case "=":C=function(a){return a.getAttribute(p)==q};break;case "~":C=function(a){return a.getAttribute(p).match(RegExp("\\b"+
42
+ q+"\\b"))};break;case "|":C=function(a){return a.getAttribute(p).match(RegExp("^"+q+"-?"))};break;case "^":C=function(a){return 0===a.getAttribute(p).indexOf(q)};break;case "$":C=function(a){return a.getAttribute(p).lastIndexOf(q)==a.getAttribute(p).length-q.length};break;case "*":C=function(a){return-1<a.getAttribute(p).indexOf(q)};break;default:C=function(a){return a.getAttribute(p)}}w=[];for(k=d=0;k<h.length;k++)C(h[k])&&(w[d++]=h[k])}else{h=[];for(k=e=0;k<w.length;k++){s=w[k].getElementsByTagName(d);
43
+ for(n=0;n<s.length;n++)h[e++]=s[n]}w=h}return w}var d=/[\t\r\n]/g;return function(a){return c.ed(a)?[a]:c.g(a)&&!c.e(a.length)?a:b.call(this,a)}}();var kb="utm_source,utm_medium,utm_campaign,utm_content,utm_term,utm_id,utm_source_platform,utm_campaign_id,utm_creative_format,utm_marketing_tactic".split(","),lb="dclid,fbclid,gclid,ko_click_id,li_fat_id,msclkid,sccid,ttclid,twclid,wbraid".split(",");c.info={ca:function(a){var b="",d={};c.a(kb,function(f){b=c.Ya(t.URL,f);b.length?d[f]=b:a!==j&&(d[f]=
44
+ a)});return d},Gb:function(){var a="",b={};c.a(lb,function(d){a=c.Ya(t.URL,d);a.length&&(b[d]=a)});return b},fd:function(){return c.extend(c.info.ca(),c.info.Gb())},od:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?"bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":r},pd:function(a){var b=c.info.od(a),d={};if(b!==r)d.$search_engine=b,a=c.Ya(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=
45
+ a);return d},ta:function(a,b,d){return d||c.i(a," OPR/")?c.i(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.i(a,"IEMobile")||c.i(a,"WPDesktop")?"Internet Explorer Mobile":c.i(a,"SamsungBrowser/")?"Samsung Internet":c.i(a,"Edge")||c.i(a,"Edg/")?"Microsoft Edge":c.i(a,"FBIOS")?"Facebook Mobile":c.i(a,"Chrome")?"Chrome":c.i(a,"CriOS")?"Chrome iOS":c.i(a,"UCWEB")||c.i(a,"UCBrowser")?"UC Browser":c.i(a,"FxiOS")?"Firefox iOS":c.i(b||"","Apple")?c.i(a,"Mobile")?"Mobile Safari":
46
+ "Safari":c.i(a,"Android")?"Android Mobile":c.i(a,"Konqueror")?"Konqueror":c.i(a,"Firefox")?"Firefox":c.i(a,"MSIE")||c.i(a,"Trident/")?"Internet Explorer":c.i(a,"Gecko")?"Mozilla":""},Qa:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,
47
+ Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Samsung Internet":/SamsungBrowser\/(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ta(a,b,d)];if(b===j)return r;a=a.match(b);return!a?r:parseFloat(a[a.length-2])},$b:function(){return/Windows/i.test(A)?/Phone/.test(A)||/WPDesktop/.test(A)?"Windows Phone":"Windows":
48
+ /(iPhone|iPad|iPod)/.test(A)?"iOS":/Android/.test(A)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(A)?"BlackBerry":/Mac/i.test(A)?"Mac OS X":/Linux/.test(A)?"Linux":/CrOS/.test(A)?"Chrome OS":""},Nb:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?"iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},fc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},Ta:function(){return p.location.href},
49
+ ga:function(a){"object"!==typeof a&&(a={});return c.extend(c.la({$os:c.info.$b(),$browser:c.info.ta(A,K.vendor,da),$referrer:t.referrer,$referring_domain:c.info.fc(t.referrer),$device:c.info.Nb(A)}),{$current_url:c.info.Ta(),$browser_version:c.info.Qa(A,K.vendor,da),$screen_height:ea.height,$screen_width:ea.width,mp_lib:"web",$lib_version:"2.58.0",$insert_id:ka(),time:c.timestamp()/1E3},c.la(a))},kd:function(){return c.extend(c.la({$os:c.info.$b(),$browser:c.info.ta(A,K.vendor,da)}),{$browser_version:c.info.Qa(A,
50
+ K.vendor,da)})},gd:function(){return c.la({current_page_title:t.title,current_domain:p.location.hostname,current_url_path:p.location.pathname,current_url_protocol:p.location.protocol,current_url_search:p.location.search})}};var $a=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Za=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,fa=r,ga=r;if("undefined"!==typeof JSON)fa=JSON.stringify,ga=JSON.parse;fa=fa||c.oa;ga=ga||c.X;c.toArray=c.U;c.isObject=c.g;c.JSONEncode=c.oa;c.JSONDecode=c.X;c.isBlockedUA=c.Vb;c.isEmptyObject=c.Aa;c.info=
51
+ c.info;c.info.device=c.info.Nb;c.info.browser=c.info.ta;c.info.browserVersion=c.info.Qa;c.info.properties=c.info.ga;c.NPO=H;F.prototype.va=function(){};F.prototype.Wa=function(){};F.prototype.Oa=function(){};F.prototype.Q=function(a){this.Xb=a;return this};F.prototype.o=function(a,b,d,f){var g=this,e=c.Qc(a);if(0===e.length)o.error("The DOM query ("+a+") returned 0 elements");else return c.a(e,function(a){c.gc(a,this.ac,function(a){var c={},e=g.va(d,this),h=g.Xb.c("track_links_timeout");g.Wa(a,this,
52
+ c);window.setTimeout(g.vc(f,e,c,l),h);g.Xb.o(b,e,g.vc(f,e,c))})},this),l};F.prototype.vc=function(a,b,c,f){var f=f||B,g=this;return function(){if(!c.Nc)c.Nc=l,a&&a(f,b)===B||g.Oa(b,c,f)}};F.prototype.va=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Ub(O,F);O.prototype.va=function(a,b){var c=O.Gd.va.apply(this,arguments);if(b.href)c.url=b.href;return c};O.prototype.Wa=function(a,b,c){c.Yb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Yb||a.preventDefault()};
53
+ O.prototype.Oa=function(a,b){b.Yb||setTimeout(function(){window.location=b.href},0)};c.Ub(X,F);X.prototype.Wa=function(a,b,c){c.element=b;a.preventDefault()};X.prototype.Oa=function(a,b){setTimeout(function(){b.element.submit()},0)};var mb=ma("lock");za.prototype.rb=function(a,b){return new this.ec(c.bind(function(c,f){function g(){function b(){m.removeItem(u);m.getItem(t)===n&&m.removeItem(t);m.getItem(o)===n&&m.removeItem(o)}m.setItem(u,"1");a().then(function(a){b();c(a)}).catch(function(a){b();
54
+ f(a)})}function e(){m.setItem(o,n);i(v,function(){m.getItem(o)===n?g():k(function(){m.getItem(t)!==n?e():i(function(){return!m.getItem(u)},g)})})}function v(){var a=m.getItem(t);if(a&&a!==n)return B;m.setItem(t,n);if(m.getItem(t)===n)return l;Y(m,l)||f(Error("localStorage support dropped while acquiring lock"));return B}function i(a,b){a()?b():k(function(){i(a,b)})}function k(a){(new Date).getTime()-p>q?(mb.error("Timeout waiting for mutex on "+w+"; clearing lock. ["+n+"]"),m.removeItem(u),m.removeItem(t),
55
+ e()):setTimeout(function(){try{a()}catch(b){f(b)}},C*(Math.random()+0.1))}var n=b||(new Date).getTime()+"|"+Math.random(),p=(new Date).getTime(),w=this.T,C=this.dc,q=this.tc,m=this.l,o=w+":X",t=w+":Y",u=w+":Z";try{if(Y(m,l))e();else throw Error("localStorage support check failed");}catch(x){f(x)}},this))};S.prototype.Q=function(){return y.resolve()};S.prototype.setItem=function(a,b){return new y(c.bind(function(c,f){try{this.l.setItem(a,b)}catch(g){f(g)}c()},this))};S.prototype.getItem=function(a){return new y(c.bind(function(b,
56
+ c){var f;try{f=this.l.getItem(a)}catch(g){c(g)}b(f)},this))};S.prototype.removeItem=function(a){return new y(c.bind(function(b,c){try{this.l.removeItem(a)}catch(f){c(f)}b()},this))};var Aa=ma("batch");E.prototype.K=function(){return this.bb?y.resolve():this.v.Q().then(c.bind(function(){this.bb=l},this)).catch(c.bind(function(a){this.h("Error initializing queue persistence. Disabling persistence",a);this.bb=l;this.q=B},this))};E.prototype.Va=function(a,b){var d={id:ka(),flushAfter:(new Date).getTime()+
57
+ 2*b,payload:a};if(this.q)return this.fb.rb(c.bind(function(){return this.K().then(c.bind(function(){return this.ja()},this)).then(c.bind(function(a){a.push(d);return this.kb(a)},this)).then(c.bind(function(a){a&&this.G.push(d);return a},this)).catch(c.bind(function(b){this.h("Error enqueueing item",b,a);return B},this))},this),this.Da).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return B},this));this.G.push(d);return y.resolve(l)};E.prototype.Uc=function(a){var b=this.G.slice(0,
58
+ a);return this.q&&b.length<a?this.K().then(c.bind(function(){return this.ja()},this)).then(c.bind(function(d){if(d.length){var f={};c.a(b,function(a){f[a.id]=l});for(var g=0;g<d.length;g++){var e=d[g];if((new Date).getTime()>e.flushAfter&&!f[e.id]&&(e.jd=l,b.push(e),b.length>=a))break}}return b},this)):y.resolve(b)};E.prototype.ld=function(a){var b={};c.a(a,function(a){b[a]=l});this.G=ya(this.G,b);if(this.q){var d=c.bind(function(){return this.K().then(c.bind(function(){return this.ja()},this)).then(c.bind(function(a){a=
59
+ ya(a,b);return this.kb(a)},this)).then(c.bind(function(){return this.ja()},this)).then(c.bind(function(a){for(var c=0;c<a.length;c++){var d=a[c];if(d.id&&b[d.id])throw Error("Item not removed from storage");}return l},this)).catch(c.bind(function(b){this.h("Error removing items",b,a);return B},this))},this);return this.fb.rb(d,this.Da).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return Y(this.v.l,l)?B:d().then(c.bind(function(a){return!a?this.v.removeItem(this.T).then(function(){return a}):
60
+ a},this)).catch(c.bind(function(a){this.h("Error clearing queue",a);return B},this))},this))}return y.resolve(l)};E.prototype.Pd=function(a){this.G=xa(this.G,a);return this.q?this.fb.rb(c.bind(function(){return this.K().then(c.bind(function(){return this.ja()},this)).then(c.bind(function(b){b=xa(b,a);return this.kb(b)},this)).catch(c.bind(function(b){this.h("Error updating items",a,b);return B},this))},this),this.Da).catch(c.bind(function(a){this.h("Error acquiring storage lock",a);return B},this)):
61
+ y.resolve(l)};E.prototype.ja=function(){return this.K().then(c.bind(function(){return this.v.getItem(this.T)},this)).then(c.bind(function(a){a&&(a=ga(a),c.isArray(a)||(this.h("Invalid storage entry:",a),a=r));return a||[]},this)).catch(c.bind(function(a){this.h("Error retrieving queue",a);return[]},this))};E.prototype.kb=function(a){try{var b=fa(a)}catch(d){return this.h("Error serializing queue",d),y.resolve(B)}return this.K().then(c.bind(function(){return this.v.setItem(this.T,b)},this)).then(function(){return l}).catch(c.bind(function(a){this.h("Error saving queue",
62
+ a);return B},this))};E.prototype.clear=function(){this.G=[];return this.q?this.K().then(c.bind(function(){return this.v.removeItem(this.T)},this)):y.resolve()};var V=ma("batch");D.prototype.Va=function(a){return this.ha.Va(a,this.xa)};D.prototype.start=function(){this.ka=B;this.Ra=0;return this.flush()};D.prototype.stop=function(){this.ka=l;if(this.nb)clearTimeout(this.nb),this.nb=r};D.prototype.clear=function(){return this.ha.clear()};D.prototype.ic=function(){this.I=this.F.batch_size};D.prototype.R=
63
+ function(){this.kc(this.F.batch_flush_interval_ms)};D.prototype.kc=function(a){this.xa=a;if(!this.ka)this.nb=setTimeout(c.bind(function(){this.ka||this.flush()},this),this.xa)};D.prototype.td=function(a,b){return new y(c.bind(function(c){this.rd(a,b,c)},this))};D.prototype.flush=function(a){if(this.jb)return V.log("Flush: Request already in progress"),y.resolve();this.jb=l;var a=a||{},b=this.F.batch_request_timeout_ms,d=(new Date).getTime(),f=this.I;return this.ha.Uc(f).then(c.bind(function(g){var e=
64
+ g.length===f,v=[],i={};c.a(g,function(a){var b=a.payload;this.sa&&!a.jd&&(b=this.sa(b));if(b){b.event&&b.properties&&(b.properties=c.extend({},b.properties,{mp_sent_by_lib_version:"2.58.0"}));var d=l,f=a.id;if(f){if(5<(this.M[f]||0))this.h("[dupe] item ID sent too many times, not sending",{item:a,I:g.length,Id:this.M[f]}),d=B}else this.h("[dupe] found item with no ID",{item:a});d&&v.push(b)}i[a.id]=b},this);if(1>v.length)return this.jb=B,this.R(),y.resolve();var k=c.bind(function(){return this.ha.ld(c.map(g,
65
+ function(a){return a.id})).then(c.bind(function(a){c.a(g,c.bind(function(a){var b=a.id;b?(this.M[b]=this.M[b]||0,this.M[b]++,5<this.M[b]&&this.h("[dupe] item ID sent too many times",{item:a,I:g.length,Id:this.M[b]})):this.h("[dupe] found item with no ID while removing",{item:a})},this));if(a){this.Ra=0;return this.Ob&&!e?(this.R(),y.resolve()):this.flush()}5<++this.Ra?(this.h("Too many queue failures; disabling batching system."),this.Cd()):this.R();return y.resolve()},this))},this),n=c.bind(function(e){this.jb=
66
+ B;try{if(a.xc)return this.ha.Pd(i);if(c.g(e)&&"timeout"===e.error&&(new Date).getTime()-d>=b)return this.h("Network timeout; retrying"),this.flush();var h;if(h=c.g(e)){var v;if(!(v=500<=e.za)){var n;if(!(n=429===e.za)){var m;if(m=0>=e.za){var q=p.navigator.onLine;m=!(c.e(q)||q)}n=m||"timeout"===e.error}v=n}h=v}if(h){var s=2*this.xa;e.jc&&(s=1E3*parseInt(e.jc,10)||s);s=Math.min(6E5,s);this.h("Error; retry in "+s+" ms");this.kc(s);return y.resolve()}if(c.g(e)&&413===e.za){if(1<g.length){var o=Math.max(1,
67
+ Math.floor(f/2));this.I=Math.min(this.I,o,g.length-1);this.h("413 response; reducing batch size to "+this.I);this.R();return y.resolve()}this.h("Single-event request too large; dropping",g);this.ic()}return k()}catch(t){this.h("Error handling API response",t),this.R()}},this),m={method:"POST",Bc:l,ad:l,uc:b};if(a.xc)m.pb="sendBeacon";V.log("MIXPANEL REQUEST:",v);return this.td(v,m).then(n)},this)).catch(c.bind(function(a){this.h("Error flushing request queue",a);this.R()},this))};D.prototype.h=function(a,
68
+ b){V.error.apply(V.error,arguments);if(this.O)try{b instanceof Error||(b=Error(a)),this.O(a,b)}catch(c){V.error(c)}};var hb="__mp_opt_in_out_",Ra={mc:function(a,b){var d={},f={};c.g(a)?c.a(a,function(a,b){this.B(b)||(f[b]=a)},this):f[a]=b;d.$set=f;return d},yc:function(a){var b={},d=[];c.isArray(a)||(a=[a]);c.a(a,function(a){this.B(a)||d.push(a)},this);b.$unset=d;return b},pc:function(a,b){var d={},f={};c.g(a)?c.a(a,function(a,b){this.B(b)||(f[b]=a)},this):f[a]=b;d.$set_once=f;return d},wc:function(a,
69
+ b){var d={},f={};c.g(a)?c.a(a,function(a,b){this.B(b)||(f[b]=c.isArray(a)?a:[a])},this):f[a]=c.isArray(b)?b:[b];d.$union=f;return d},Lc:function(a,b){var d={},f={};c.g(a)?c.a(a,function(a,b){this.B(b)||(f[b]=a)},this):f[a]=b;d.$append=f;return d},hc:function(a,b){var d={},f={};c.g(a)?c.a(a,function(a,b){this.B(b)||(f[b]=a)},this):f[a]=b;d.$remove=f;return d},Vd:function(){return{$delete:""}}};c.extend(u.prototype,Ra);u.prototype.ba=function(a,b,c){this.d=a;this.Ka=b;this.Ja=c};u.prototype.set=P(function(a,
70
+ b,d){var f=this.mc(a,b);c.g(a)&&(d=b);return this.j(f,d)});u.prototype.S=P(function(a,b,d){var f=this.pc(a,b);c.g(a)&&(d=b);return this.j(f,d)});u.prototype.Ea=P(function(a,b){return this.j(this.yc(a),b)});u.prototype.na=P(function(a,b,d){c.g(a)&&(d=b);return this.j(this.wc(a,b),d)});u.prototype["delete"]=P(function(a){return this.j({$delete:""},a)});u.prototype.remove=P(function(a,b,c){return this.j(this.hc(a,b),c)});u.prototype.j=function(a,b){a.$group_key=this.Ka;a.$group_id=this.Ja;a.$token=this.p("token");
71
+ return this.d.Na({type:"groups",data:c.Ua(a),J:this.p("api_host")+"/"+this.p("api_routes").groups,Pa:this.d.w.Za},b)};u.prototype.B=function(a){return"$group_key"===a||"$group_id"===a};u.prototype.p=function(a){return this.d.c(a)};u.prototype.toString=function(){return this.d.toString()+".group."+this.Ka+"."+this.Ja};u.prototype.remove=u.prototype.remove;u.prototype.set=u.prototype.set;u.prototype.set_once=u.prototype.S;u.prototype.union=u.prototype.na;u.prototype.unset=u.prototype.Ea;u.prototype.toString=
72
+ u.prototype.toString;c.extend(q.prototype,Ra);q.prototype.ba=function(a){this.d=a};q.prototype.set=I(function(a,b,d){var f=this.mc(a,b);c.g(a)&&(d=b);this.p("save_referrer")&&this.d.persistence.qb(document.referrer);f.$set=c.extend({},c.info.kd(),f.$set);return this.j(f,d)});q.prototype.S=I(function(a,b,d){var f=this.pc(a,b);c.g(a)&&(d=b);return this.j(f,d)});q.prototype.Ea=I(function(a,b){return this.j(this.yc(a),b)});q.prototype.Tb=I(function(a,b,d){var f={},e={};c.g(a)?(c.a(a,function(a,b){this.B(b)||
73
+ (isNaN(parseFloat(a))?o.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):e[b]=a)},this),d=b):(c.e(b)&&(b=1),e[a]=b);f.$add=e;return this.j(f,d)});q.prototype.append=I(function(a,b,d){c.g(a)&&(d=b);return this.j(this.Lc(a,b),d)});q.prototype.remove=I(function(a,b,d){c.g(a)&&(d=b);return this.j(this.hc(a,b),d)});q.prototype.na=I(function(a,b,d){c.g(a)&&(d=b);return this.j(this.wc(a,b),d)});q.prototype.Ld=I(function(a,b,d){if(!c.Wb(a)&&(a=parseFloat(a),isNaN(a))){o.error("Invalid value passed to mixpanel.people.track_charge - must be a number");
74
+ return}return this.append("$transactions",c.extend({$amount:a},b),d)});q.prototype.Eb=function(a){return this.set("$transactions",[],a)};q.prototype.Mb=function(){if(this.La())return this.j({$delete:this.d.L()});o.error("mixpanel.people.delete_user() requires you to call identify() first")};q.prototype.toString=function(){return this.d.toString()+".people"};q.prototype.j=function(a,b){a.$token=this.p("token");a.$distinct_id=this.d.L();var d=this.d.u("$device_id"),f=this.d.u("$user_id"),e=this.d.u("$had_persisted_distinct_id");
75
+ d&&(a.$device_id=d);f&&(a.$user_id=f);e&&(a.$had_persisted_distinct_id=e);d=c.Ua(a);return!this.La()?(this.Fc(a),c.e(b)||(this.p("verbose")?b({status:-1,error:r}):b(-1)),c.truncate(d,255)):this.d.Na({type:"people",data:d,J:this.p("api_host")+"/"+this.p("api_routes").engage,Pa:this.d.w.hb},b)};q.prototype.p=function(a){return this.d.c(a)};q.prototype.La=function(){return this.d.Z.Rb===l};q.prototype.Fc=function(a){"$set"in a?this.d.persistence.s("$set",a):"$set_once"in a?this.d.persistence.s("$set_once",
76
+ a):"$unset"in a?this.d.persistence.s("$unset",a):"$add"in a?this.d.persistence.s("$add",a):"$append"in a?this.d.persistence.s("$append",a):"$remove"in a?this.d.persistence.s("$remove",a):"$union"in a?this.d.persistence.s("$union",a):o.error("Invalid call to _enqueue():",a)};q.prototype.$=function(a,b,d,f){var e=this,h=c.extend({},this.d.persistence.ea(a)),v=h;!c.e(h)&&c.g(h)&&!c.Aa(h)&&(e.d.persistence.z(a,h),e.d.persistence.save(),f&&(v=f(h)),b.call(e,v,function(b,f){0===b&&e.d.persistence.s(a,h);
77
+ c.e(d)||d(b,f)}))};q.prototype.Gc=function(a,b,d,f,e,h,v){var i=this;this.$("$set",this.set,a);this.$("$set_once",this.S,f);this.$("$unset",this.Ea,h,function(a){return c.keys(a)});this.$("$add",this.Tb,b);this.$("$union",this.na,e);a=this.d.persistence.ea("$append");if(!c.e(a)&&c.isArray(a)&&a.length)for(var k,b=function(a,b){0===a&&i.d.persistence.s("$append",k);c.e(d)||d(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.ea("$append"),k=a.pop(),i.d.persistence.save(),c.Aa(k)||i.append(k,b);a=this.d.persistence.ea("$remove");
78
+ if(!c.e(a)&&c.isArray(a)&&a.length)for(var n,b=function(a,b){0===a&&i.d.persistence.s("$remove",n);c.e(v)||v(a,b)},f=a.length-1;0<=f;f--)a=this.d.persistence.ea("$remove"),n=a.pop(),i.d.persistence.save(),c.Aa(n)||i.remove(n,b)};q.prototype.B=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};q.prototype.set=q.prototype.set;q.prototype.set_once=q.prototype.S;q.prototype.unset=q.prototype.Ea;q.prototype.increment=q.prototype.Tb;q.prototype.append=
79
+ q.prototype.append;q.prototype.remove=q.prototype.remove;q.prototype.union=q.prototype.na;q.prototype.track_charge=q.prototype.Ld;q.prototype.clear_charges=q.prototype.Eb;q.prototype.delete_user=q.prototype.Mb;q.prototype.toString=q.prototype.toString;var nb="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__timers".split(",");m.prototype.ga=function(){var a={};this.load();c.a(this.props,function(b,d){c.ab(nb,d)||(a[d]=b)});return a};m.prototype.load=function(){if(!this.disabled){var a=
80
+ this.l.parse(this.name);a&&(this.props=c.extend({},a))}};m.prototype.Qd=function(){var a;this.l===c.localStorage?(a=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,l),a&&this.A(a)):this.l===c.cookie&&(a=c.localStorage.parse(this.name),c.localStorage.remove(this.name),a&&this.A(a))};m.prototype.save=function(){this.disabled||this.l.set(this.name,c.oa(this.props),this.Xa,this.Sa,this.lc,this.Kb,this.ua)};m.prototype.Ca=function(a){this.load();return this.props[a]};m.prototype.remove=
81
+ function(){this.l.remove(this.name,B,this.ua);this.l.remove(this.name,l,this.ua)};m.prototype.clear=function(){this.remove();this.props={}};m.prototype.A=function(a,b,d){return c.g(a)?("undefined"===typeof b&&(b="None"),this.Xa="undefined"===typeof d?this.Lb:d,this.load(),c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),l):B};m.prototype.m=function(a,b){return c.g(a)?(this.Xa="undefined"===typeof b?this.Lb:b,this.load(),c.extend(this.props,
82
+ a),this.save(),l):B};m.prototype.W=function(a){this.load();a in this.props&&(delete this.props[a],this.save())};m.prototype.Ac=function(a){this.m(c.info.pd(a))};m.prototype.qb=function(a){this.A({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.fc(a)||"$direct"},"")};m.prototype.Zc=function(){return c.la({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};m.prototype.zc=function(a){this.Lb=this.Xa=a.cookie_expiration;this.oc(a.disable_persistence);
83
+ this.vd(a.cookie_domain);this.wd(a.cross_site_cookie);this.xd(a.cross_subdomain_cookie);this.Ad(a.secure_cookie)};m.prototype.oc=function(a){(this.disabled=a)?this.remove():this.save()};m.prototype.vd=function(a){if(a!==this.ua)this.remove(),this.ua=a,this.save()};m.prototype.wd=function(a){if(a!==this.Kb)this.Kb=a,this.remove(),this.save()};m.prototype.xd=function(a){if(a!==this.Sa)this.Sa=a,this.remove(),this.save()};m.prototype.Xc=function(){return this.Sa};m.prototype.Ad=function(a){if(a!==this.lc)this.lc=
84
+ a?l:B,this.remove(),this.save()};m.prototype.s=function(a,b){var d=this.qa(a),f=b[a],e=this.H("$set"),h=this.H("$set_once"),v=this.H("$unset"),i=this.H("$add"),k=this.H("$union"),n=this.H("$remove",[]),m=this.H("$append",[]);"__mps"===d?(c.extend(e,f),this.z("$add",f),this.z("$union",f),this.z("$unset",f)):"__mpso"===d?(c.a(f,function(a,b){b in h||(h[b]=a)}),this.z("$unset",f)):"__mpus"===d?c.a(f,function(a){c.a([e,h,i,k],function(b){a in b&&delete b[a]});c.a(m,function(b){a in b&&delete b[a]});v[a]=
85
+ l}):"__mpa"===d?(c.a(f,function(a,b){b in e?e[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.z("$unset",f)):"__mpu"===d?(c.a(f,function(a,b){c.isArray(a)&&(b in k||(k[b]=[]),k[b]=k[b].concat(a))}),this.z("$unset",f)):"__mpr"===d?(n.push(f),this.z("$append",f)):"__mpap"===d&&(m.push(f),this.z("$unset",f));o.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");o.log(b);this.save()};m.prototype.z=function(a,b){var d=this.props[this.qa(a)];c.e(d)||c.a(b,function(b,e){"$append"===a||"$remove"===a?
86
+ c.a(d,function(a){a[e]===b&&delete a[e]}):delete d[e]},this)};m.prototype.ea=function(a){return this.Ca(this.qa(a))};m.prototype.qa=function(a){if("$set"===a)return"__mps";if("$set_once"===a)return"__mpso";if("$unset"===a)return"__mpus";if("$add"===a)return"__mpa";if("$append"===a)return"__mpap";if("$remove"===a)return"__mpr";if("$union"===a)return"__mpu";o.error("Invalid queue:",a)};m.prototype.H=function(a,b){var d=this.qa(a),b=c.e(b)?{}:b;return this.props[d]||(this.props[d]=b)};m.prototype.yd=
87
+ function(a){var b=(new Date).getTime(),c=this.Ca("__timers")||{};c[a]=b;this.props.__timers=c;this.save()};m.prototype.md=function(a){var b=(this.Ca("__timers")||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var ia,x,Q=p.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,va=!Q&&-1===A.indexOf("MSIE")&&-1===A.indexOf("Mozilla"),ha=r;K.sendBeacon&&(ha=function(){return K.sendBeacon.apply(K,arguments)});var Sa={track:"track/",engage:"engage/",groups:"groups/",record:"record/"},
88
+ Ta={api_host:"https://api-js.mixpanel.com",api_routes:Sa,api_method:"POST",api_transport:"XHR",api_payload_format:"base64",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:B,cross_subdomain_cookie:l,error_reporter:R,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:R,mp_loader:r,track_marketing:l,track_pageview:B,skip_first_touch_marketing:B,store_google:l,stop_utm_persistence:B,save_referrer:l,test:B,verbose:B,img:B,debug:B,track_links_timeout:300,
89
+ cookie_expiration:365,upgrade:B,disable_persistence:B,disable_cookie:B,secure_cookie:B,ip:l,opt_out_tracking_by_default:B,opt_out_persistence_by_default:B,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:r,property_blacklist:[],xhr_headers:{},ignore_dnt:B,batch_requests:l,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:l,hooks:{},record_block_class:/^(mp-block|fs-exclude|amp-block|rr-block|ph-no-capture)$/,record_block_selector:"img, video",
90
+ record_canvas:B,record_collect_fonts:B,record_idle_timeout_ms:18E5,record_mask_text_class:/^(mp-mask|fs-mask|amp-mask|rr-mask|ph-mask)$/,record_mask_text_selector:"*",record_max_ms:864E5,record_min_ms:0,record_sessions_percent:0,recorder_src:"https://cdn.mxpnl.com/libs/mixpanel-recorder.min.js"},ua=B;e.prototype.Q=function(a,b,d){if(c.e(d))this.k("You must name your new library: init(token, config, name)");else if("mixpanel"===d)this.k("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");
91
+ else return a=W(a,b,d),x[d]=a,a.ra(),a};e.prototype.ba=function(a,b,d){b=b||{};this.__loaded=l;this.config={};var e={};"api_payload_format"in b||(b.api_host||Ta.api_host).match(/\.mixpanel\.com/)&&(e.api_payload_format="json");this.nc(c.extend({},Ta,e,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=R;this.Ga=[];this.Ha=[];this.Fa=[];this.Z={disable_all_events:B,identify_called:B};this.w={};if(this.Y=this.c("batch_requests"))if(!c.localStorage.Ba(l)||!Q)this.Y=B,
92
+ o.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support"),c.a(this.Pb(),function(a){o.log("Clearing batch queue "+a.ia);c.localStorage.remove(a.ia)});else if(this.bd(),ha&&p.addEventListener){var g=c.bind(function(){this.w.P.ka||this.w.P.flush({xc:l})},this);p.addEventListener("pagehide",function(a){a.persisted&&g()});p.addEventListener("visibilitychange",function(){"hidden"===t.visibilityState&&g()})}this.persistence=this.cookie=new m(this.config);this.V={};this.Hc();a=c.tb();
93
+ this.L()||this.A({distinct_id:"$device:"+a,$device_id:a},"");(a=this.c("track_pageview"))&&this.Ic(a);0<this.c("record_sessions_percent")&&100*Math.random()<=this.c("record_sessions_percent")&&this.sc()};e.prototype.sc=M(function(){if(p.MutationObserver){var a=c.bind(function(){this.N=this.N||new p.__mp_recorder(this);this.N.startRecording()},this);c.e(p.__mp_recorder)?wa(this.c("recorder_src"),a):a()}else o.D("Browser does not support MutationObserver; skipping session recording")});e.prototype.Ed=
94
+ function(){this.N?this.N.stopRecording():o.D("Session recorder module not loaded")};e.prototype.Qb=function(){var a={},b=this.yb();b&&(a.$mp_replay_id=b);return a};e.prototype.$c=function(){var a=r,b=this.yb();b&&(a="https://mixpanel.com/projects/replay-redirect?"+c.sb({replay_id:b,distinct_id:this.L(),token:this.c("token")}));return a};e.prototype.yb=function(){var a=r;this.N&&(a=this.N.replayId);return a||r};e.prototype.ra=function(){this.c("loaded")(this);this.Cb();this.people.S(this.persistence.Zc());
95
+ if(this.c("store_google")&&this.c("stop_utm_persistence")){var a=c.info.ca(r);c.a(a,function(a,c){this.W(c)}.bind(this))}};e.prototype.Cb=function(){this.persistence.Ac(t.referrer);this.c("store_google")&&!this.c("stop_utm_persistence")&&this.m(c.info.ca());this.c("save_referrer")&&this.persistence.qb(t.referrer)};e.prototype.Ec=function(){c.a(this.Ga,function(a){this.Ma.apply(this,a)},this);this.da()||c.a(this.Ha,function(a){this.j.apply(this,a)},this);delete this.Ga;delete this.Ha};e.prototype.Ma=
96
+ function(a,b){if(this.c("img"))return this.k("You can't use DOM tracking functions with img = true."),B;if(!ua)return this.Ga.push([a,b]),B;var c=(new a).Q(this);return c.o.apply(c,b)};e.prototype.Ic=function(a){var b="";this.ob()&&(b=c.info.Ta());if(c.ab(["full-url","url-with-path-and-query-string","url-with-path"],a)){p.addEventListener("popstate",function(){p.dispatchEvent(new Event("mp_locationchange"))});p.addEventListener("hashchange",function(){p.dispatchEvent(new Event("mp_locationchange"))});
97
+ var d=p.history.pushState;if("function"===typeof d)p.history.pushState=function(a,b,c){d.call(p.history,a,b,c);p.dispatchEvent(new Event("mp_locationchange"))};var e=p.history.replaceState;if("function"===typeof e)p.history.replaceState=function(a,b,c){e.call(p.history,a,b,c);p.dispatchEvent(new Event("mp_locationchange"))};p.addEventListener("mp_locationchange",function(){var d=c.info.Ta(),e=B;"full-url"===a?e=d!==b:"url-with-path-and-query-string"===a?e=d.split("#")[0]!==b.split("#")[0]:"url-with-path"===
98
+ a&&(e=d.split("#")[0].split("?")[0]!==b.split("#")[0].split("?")[0]);e&&this.ob()&&(b=d)}.bind(this))}};e.prototype.zb=function(a,b){if(c.e(a))return r;if(Q)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),g=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return g};e.prototype.j=function(a,b,d,e){var g=l;if(va)return this.Ha.push(arguments),g;var h={method:this.c("api_method"),pb:this.c("api_transport"),Bc:this.c("verbose")},m=r;if(!e&&(c.cb(d)||"string"===
99
+ typeof d))e=d,d=r;d=c.extend(h,d||{});if(!Q)d.method="GET";var h="POST"===d.method,i=ha&&h&&"sendbeacon"===d.pb.toLowerCase(),k=d.Bc;b.verbose&&(k=l);this.c("test")&&(b.test=1);k&&(b.verbose=1);this.c("img")&&(b.img=1);if(!Q)if(e)b.callback=e;else if(k||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();h&&(m="data="+encodeURIComponent(b.data),delete b.data);var a=a+("?"+c.sb(b)),n=this;if("img"in b)m=t.createElement("img"),m.src=a,t.body.appendChild(m);
100
+ else if(i){try{g=ha(a,m)}catch(p){n.k(p),g=B}try{e&&e(g?1:0)}catch(q){n.k(q)}}else if(Q)try{var o=new XMLHttpRequest;o.open(d.method,a,l);var u=this.c("xhr_headers");h&&(u["Content-Type"]="application/x-www-form-urlencoded");c.a(u,function(a,b){o.setRequestHeader(b,a)});if(d.uc&&"undefined"!==typeof o.timeout){o.timeout=d.uc;var x=(new Date).getTime()}o.withCredentials=l;o.onreadystatechange=function(){if(4===o.readyState)if(200===o.status){if(e)if(k){var a;try{a=c.X(o.responseText)}catch(b){if(n.k(b),
101
+ d.ad)a=o.responseText;else return}e(a)}else e(Number(o.responseText))}else a=o.timeout&&!o.status&&(new Date).getTime()-x>=o.timeout?"timeout":"Bad HTTP status: "+o.status+" "+o.statusText,n.k(a),e&&(k?e({status:0,za:o.status,error:a,jc:(o.responseHeaders||{})["Retry-After"]}):e(0))};o.send(m)}catch(y){n.k(y),g=B}else m=t.createElement("script"),m.type="text/javascript",m.async=l,m.defer=l,m.src=a,u=t.getElementsByTagName("script")[0],u.parentNode.insertBefore(m,u);return g};e.prototype.Ia=function(a){function b(a,
102
+ b){c.a(a,function(a){if(c.isArray(a[0])){var d=b;c.a(a,function(a){d=d[a[0]].apply(d,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],g=[],h=[];c.a(a,function(a){a&&(d=a[0],c.isArray(d)?h.push(a):"function"===typeof a?a.call(this):c.isArray(a)&&"alias"===d?e.push(a):c.isArray(a)&&-1!==d.indexOf("track")&&"function"===typeof this[d]?h.push(a):g.push(a))},this);b(e,this);b(g,this);b(h,this)};e.prototype.Db=function(){return!!this.w.P};e.prototype.Pb=function(){var a="__mpq_"+this.c("token"),
103
+ b=this.c("api_routes");return this.ub=this.ub||{P:{type:"events",J:"/"+b.track,ia:a+"_ev"},hb:{type:"people",J:"/"+b.engage,ia:a+"_pp"},Za:{type:"groups",J:"/"+b.groups,ia:a+"_gr"}}};e.prototype.bd=function(){if(!this.Db()){var a=c.bind(function(a){return new D(a.ia,{F:this.config,O:this.c("error_reporter"),sd:c.bind(function(b,c,e){this.j(this.c("api_host")+a.J,this.wb(b),c,this.zb(e,b))},this),sa:c.bind(function(b){return this.Bb("before_send_"+a.type,b)},this),Dd:c.bind(this.mb,this),q:l})},this),
104
+ b=this.Pb();this.w={P:a(b.P),hb:a(b.hb),Za:a(b.Za)}}this.c("batch_autostart")&&this.lb()};e.prototype.lb=function(){this.Cc=l;if(this.Db())this.Y=l,c.a(this.w,function(a){a.start()})};e.prototype.mb=function(){this.Y=B;c.a(this.w,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.Ia([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.Z.Pc=l:this.Fa=this.Fa.concat(a)};e.prototype.wb=function(a){a=c.oa(a);"base64"===this.c("api_payload_format")&&(a=c.Mc(a));return{data:a}};
105
+ e.prototype.Na=function(a,b){var d=c.truncate(a.data,255),e=a.J,g=a.Pa,h=a.Bd,m=a.ud||{},b=b||R,i=l,k=c.bind(function(){m.rc||(d=this.Bb("before_send_"+a.type,d));return d?(o.log("MIXPANEL REQUEST:"),o.log(d),this.j(e,this.wb(d),m,this.zb(b,d))):r},this);this.Y&&!h?g.Va(d).then(function(a){a?b(1,d):k()}):i=k();return i&&d};e.prototype.o=M(function(a,b,d,e){!e&&"function"===typeof d&&(e=d,d=r);var d=d||{},g=d.transport;if(g)d.pb=g;g=d.send_immediately;"function"!==typeof e&&(e=R);if(c.e(a))this.k("No event name provided to mixpanel.track");
106
+ else if(this.xb(a))e(0);else{b=c.extend({},b);b.token=this.c("token");var h=this.persistence.md(a);c.e(h)||(b.$duration=parseFloat((((new Date).getTime()-h)/1E3).toFixed(3)));this.Cb();h=this.c("track_marketing")?c.info.fd():{};b=c.extend({},c.info.ga({mp_loader:this.c("mp_loader")}),h,this.persistence.ga(),this.V,this.Qb(),b);h=this.c("property_blacklist");c.isArray(h)?c.a(h,function(a){delete b[a]}):this.k("Invalid value for property_blacklist config: "+h);return this.Na({type:"events",data:{event:a,
107
+ properties:b},J:this.c("api_host")+"/"+this.c("api_routes").track,Pa:this.w.P,Bd:g,ud:d},e)}});e.prototype.zd=M(function(a,b,d){c.isArray(b)||(b=[b]);var e={};e[a]=b;this.m(e);return this.people.set(a,b,d)});e.prototype.Jc=M(function(a,b,c){var e=this.u(a),g={};e===j?(g[a]=[b],this.m(g)):-1===e.indexOf(b)&&(e.push(b),g[a]=e,this.m(g));return this.people.na(a,b,c)});e.prototype.nd=M(function(a,b,c){var e=this.u(a);if(e!==j){var g=e.indexOf(b);-1<g&&(e.splice(g,1),this.m({Wd:e}));0===e.length&&this.W(a)}return this.people.remove(a,
108
+ b,c)});e.prototype.Od=M(function(a,b,d,e){var g=c.extend({},b||{});c.a(d,function(a,b){a!==r&&a!==j&&(g[b]=a)});return this.o(a,g,e)});e.prototype.Dc=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.Yc=function(a,b){var c=this.Dc(a,b),e=this.vb[c];if(e===j||e.Ka!==a||e.Ja!==b)e=new u,e.ba(this,a,b),this.vb[c]=e;return e};e.prototype.ob=M(function(a,b){"object"!==typeof a&&(a={});var b=b||{},d=b.event_name||"$mp_web_page_view",e=c.extend(c.info.gd(),c.info.ca(),c.info.Gb()),e=c.extend({},
109
+ e,a);return this.o(d,e)});e.prototype.Nd=function(){return this.Ma.call(this,O,arguments)};e.prototype.Md=function(){return this.Ma.call(this,X,arguments)};e.prototype.Hd=function(a){c.e(a)?this.k("No event name provided to mixpanel.time_event"):this.xb(a)||this.persistence.yd(a)};var Xa={persistent:l};e.prototype.m=function(a,b){var d=ja(b);d.persistent?this.persistence.m(a,d.days):c.extend(this.V,a)};e.prototype.A=function(a,b,d){d=ja(d);d.persistent?this.persistence.A(a,b,d.days):("undefined"===
110
+ typeof b&&(b="None"),c.a(a,function(a,c){if(!this.V.hasOwnProperty(c)||this.V[c]===b)this.V[c]=a},this))};e.prototype.W=function(a,b){b=ja(b);b.persistent?this.persistence.W(a):delete this.V[a]};e.prototype.Ab=function(a,b){var c={};c[a]=b;this.m(c)};e.prototype.$a=function(a,b,c,e,g,h,m,i){var k=this.L();if(a&&k!==a){if("string"===typeof a&&0===a.indexOf("$device:"))return this.k("distinct_id cannot have $device: prefix"),-1;this.m({$user_id:a})}this.u("$device_id")||this.A({$had_persisted_distinct_id:l,
111
+ $device_id:k},"");a!==k&&a!==this.u("__alias")&&(this.W("__alias"),this.m({distinct_id:a}));this.Z.Rb=l;this.people.Gc(b,c,e,g,h,m,i);a!==k&&this.o("$identify",{distinct_id:a,$anon_distinct_id:k},{rc:l})};e.prototype.reset=function(){this.persistence.clear();this.Z.Rb=B;var a=c.tb();this.A({distinct_id:"$device:"+a,$device_id:a},"")};e.prototype.L=function(){return this.u("distinct_id")};e.prototype.Kc=function(a,b){if(a===this.u("$people_distinct_id"))return this.k("Attempting to create alias for existing People user - aborting."),
112
+ -2;var d=this;c.e(b)&&(b=this.L());if(a!==b)return this.Ab("__alias",a),this.o("$create_alias",{alias:a,distinct_id:b},{rc:l},function(){d.$a(a)});this.k("alias matches current distinct_id - skipping api call.");this.$a(a);return-1};e.prototype.hd=function(a){this.Ab("mp_name_tag",a)};e.prototype.nc=function(a){if(c.g(a))c.extend(this.config,a),a.batch_size&&c.a(this.w,function(a){a.ic()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
113
+ (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.zc(this.config),L=L||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.Bb=function(a){var b=(this.config.hooks[a]||Ya).apply(this,N.call(arguments,1));"undefined"===typeof b&&(this.k(a+" hook did not return a value"),b=r);return b};e.prototype.u=function(a){return this.persistence.Ca([a])};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);
114
+ return a};e.prototype.xb=function(a){return c.Vb(A)||this.Z.Pc||c.ab(this.Fa,a)};e.prototype.Hc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.Ba()&&(!this.ya()&&this.ya({persistence_type:"cookie"})&&this.Zb({enable_persistence:B}),!this.da()&&this.da({persistence_type:"cookie"})&&this.gb({clear_persistence:B}),this.Fb({persistence_type:"cookie",enable_persistence:B}));if(this.da())this.pa({clear_persistence:l});else if(!this.ya()&&(this.c("opt_out_tracking_by_default")||
115
+ c.cookie.get("mp_optout")))c.cookie.remove("mp_optout"),this.gb({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.pa=function(a){if(a&&a.clear_persistence)a=l;else if(a&&a.enable_persistence)a=B;else return;!this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.oc(a);a?this.mb():this.Cc&&this.lb()};e.prototype.aa=function(a,b){b=c.extend({track:c.bind(this.o,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),
116
+ cookie_expiration:this.c("cookie_expiration"),cross_site_cookie:this.c("cross_site_cookie"),cross_subdomain_cookie:this.c("cross_subdomain_cookie"),cookie_domain:this.c("cookie_domain"),secure_cookie:this.c("secure_cookie"),ignore_dnt:this.c("ignore_dnt")},b);c.localStorage.Ba()||(b.persistence_type="cookie");return a(this.c("token"),{o:b.track,Jd:b.track_event_name,Kd:b.track_properties,cc:b.persistence_type,bc:b.cookie_prefix,Hb:b.cookie_domain,Ib:b.cookie_expiration,Oc:b.cross_site_cookie,Jb:b.cross_subdomain_cookie,
117
+ qd:b.secure_cookie,Sb:b.ignore_dnt})};e.prototype.Zb=function(a){a=c.extend({enable_persistence:l},a);this.aa(cb,a);this.pa(a)};e.prototype.gb=function(a){a=c.extend({clear_persistence:l,delete_user:l},a);a.delete_user&&this.people&&this.people.La()&&(this.people.Mb(),this.people.Eb());this.aa(db,a);this.pa(a)};e.prototype.ya=function(a){return this.aa(eb,a)};e.prototype.da=function(a){return this.aa(Ha,a)};e.prototype.Fb=function(a){a=c.extend({enable_persistence:l},a);this.aa(gb,a);this.pa(a)};
118
+ e.prototype.k=function(a,b){o.error.apply(o.error,arguments);try{!b&&!(a instanceof Error)&&(a=Error(a)),this.c("error_reporter")(a,b)}catch(c){o.error(c)}};e.prototype.init=e.prototype.Q;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.Hd;e.prototype.track=e.prototype.o;e.prototype.track_links=e.prototype.Nd;e.prototype.track_forms=e.prototype.Md;e.prototype.track_pageview=e.prototype.ob;e.prototype.register=e.prototype.m;e.prototype.register_once=
119
+ e.prototype.A;e.prototype.unregister=e.prototype.W;e.prototype.identify=e.prototype.$a;e.prototype.alias=e.prototype.Kc;e.prototype.name_tag=e.prototype.hd;e.prototype.set_config=e.prototype.nc;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.u;e.prototype.get_distinct_id=e.prototype.L;e.prototype.toString=e.prototype.toString;e.prototype.opt_out_tracking=e.prototype.gb;e.prototype.opt_in_tracking=e.prototype.Zb;e.prototype.has_opted_out_tracking=e.prototype.da;e.prototype.has_opted_in_tracking=
120
+ e.prototype.ya;e.prototype.clear_opt_in_out_tracking=e.prototype.Fb;e.prototype.get_group=e.prototype.Yc;e.prototype.set_group=e.prototype.zd;e.prototype.add_group=e.prototype.Jc;e.prototype.remove_group=e.prototype.nd;e.prototype.track_with_groups=e.prototype.Od;e.prototype.start_batch_senders=e.prototype.lb;e.prototype.stop_batch_senders=e.prototype.mb;e.prototype.start_session_recording=e.prototype.sc;e.prototype.stop_session_recording=e.prototype.Ed;e.prototype.get_session_recording_properties=
121
+ e.prototype.Qb;e.prototype.get_session_replay_url=e.prototype.$c;e.prototype.DEFAULT_API_ROUTES=Sa;m.prototype.properties=m.prototype.ga;m.prototype.update_search_keyword=m.prototype.Ac;m.prototype.update_referrer_info=m.prototype.qb;m.prototype.get_cross_subdomain=m.prototype.Xc;m.prototype.clear=m.prototype.clear;var G={};(function(a){wa=a;ia=1;x=p.mixpanel;c.e(x)?o.D('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
122
+ x.__loaded||x.config&&x.persistence?o.D("The Mixpanel library has already been downloaded at least once. Ensure that the Mixpanel code snippet only appears once on the page (and is not double-loaded by a tag manager) in order to avoid errors."):1.1>(x.__SV||0)?o.D("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(x._i,function(a){a&&c.isArray(a)&&(G[a[a.length-1]]=W.apply(this,a))}),Va(),x.init(),c.a(G,function(a){a.ra()}),Ua())})(function(a,b){var c=
123
+ document.createElement("script");c.type="text/javascript";c.async=l;c.onload=b;c.src=a;document.head.appendChild(c)})})();
114
124
  })();