mixpanel-browser 2.40.0 → 2.42.1

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,163 +1,152 @@
1
1
  (function() {
2
- function k(la){throw la;}var l=void 0,n=!0,w=null,F=!1;
3
- (function(){function la(){function a(){if(!a.qe)xa=a.qe=n,ya=F,d.a(K,function(a){a.Gd()})}function b(){try{t.documentElement.doScroll("left")}catch(c){setTimeout(b,1);return}a()}if(t.addEventListener)"complete"===t.readyState?a():t.addEventListener("DOMContentLoaded",a,F);else if(t.attachEvent){t.attachEvent("onreadystatechange",a);var c=F;try{c=B.frameElement===w}catch(f){}t.documentElement.doScroll&&c&&b()}d.L(B,"load",a,n)}function Ka(){x.init=function(a,b,c){if(c)return x[c]||(x[c]=K[c]=Z(a,b,
4
- c),x[c].Ma()),x[c];c=x;if(K.mixpanel)c=K.mixpanel;else if(a)c=Z(a,b,"mixpanel"),c.Ma(),K.mixpanel=c;x=c;1===ma&&(B.mixpanel=x);La()}}function La(){d.a(K,function(a,b){"mixpanel"!==b&&(x[b]=a)});x._=d}function na(a){a=d.e(a)?a:d.g(a)?{}:{days:a};return d.extend({},Ma,a)}function za(a){a=d.Ha(a);return{data:d.fe(a)}}function Z(a,b,c){var f,h="mixpanel"===c?x:x[c];if(h&&0===ma)f=h;else{if(h&&!d.isArray(h)){p.error("You have already initialized "+c);return}f=new e}f.$b={};f.rc=F;f.fc=[];f.pa(a,b,c);f.people=
5
- new m;f.people.pa(f);L=L||f.c("debug");f.__autotrack_enabled=f.c("autotrack");if(f.c("autotrack"))V.re(f.c("token"),100,100)?V.Be()?V.ea(f):(f.__autotrack_enabled=F,p.log("Disabling Automatic Event Collection because this browser is not supported")):(f.__autotrack_enabled=F,p.log("Not in active bucket: disabling Automatic Event Collection."));!d.g(h)&&d.isArray(h)&&(f.rb.call(f.people,h.people),f.rb(h));return f}function e(){}function $(){}function Na(a){return a}function m(){}function g(a,b){d.vc(this);
6
- this.fa=b;this.Sb=this.fa.persistence;this.cb=this.fa.c("inapp_protocol");this.Qa=this.fa.c("cdn");this.K=d.V(a.id);this.Rc=d.V(a.message_id);this.body=(d.V(a.body)||"").replace(/\n/g,"<br/>");this.le=d.V(a.cta)||"Close";this.wa=d.V(a.type)||"takeover";this.style=d.V(a.style)||"light";this.title=d.V(a.title)||"";this.Fa=g.Cd;this.ia=g.Bd;this.Hc=a.display_triggers||[];this.da=a.cta_url||w;this.Nb=a.image_url||w;this.A=a.thumb_image_url||w;this.kb=a.video_url||w;if(this.A&&0===this.A.indexOf("//"))this.A=
7
- this.A.replace("//",this.cb);this.Ra=n;if(!this.da)this.da="#dismiss",this.Ra=F;this.v="mini"===this.wa;if(!this.v)this.wa="takeover";this.Ee=!this.v?g.la:g.lb;this.pc();this.Xa=this.Pd();this.Sd()}function q(a){this.props={};this.wc=F;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)p.P("Unknown persistence type "+b+"; falling back to cookie"),b=a.persistence="cookie";this.i="localStorage"===b&&d.localStorage.Za()?
8
- d.localStorage:d.cookie;this.load();this.td(a);this.pf(a);this.save()}function u(){}function G(a,b){this.za=new M(a,{i:b.i});this.R=b.R;this.Re=b.Se;this.Oa=b.Oa;this.qa=this.R.batch_size;this.Va=this.R.batch_flush_interval_ms;this.fb=!this.R.batch_autostart}function Aa(a,b){var c=[];d.a(a,function(a){var d=a.id;if(d in b){if(d=b[d],d!==w)a.payload=d,c.push(a)}else c.push(a)});return c}function Ba(a,b){var c=[];d.a(a,function(a){a.id&&!b[a.id]&&c.push(a)});return c}function M(a,b){b=b||{};this.Aa=
9
- a;this.i=b.i||window.localStorage;this.Ob=new Ca(a,{i:this.i});this.$a=b.$a||w;this.Y=[]}function Ca(a,b){b=b||{};this.Aa=a;this.i=b.i||window.localStorage;this.Yc=b.Yc||100;this.nd=b.nd||2E3}function aa(){this.Vc="submit"}function R(){this.Vc="click"}function H(){}function Da(a){var b=Oa,c=a.split("."),c=c[c.length-1];if(4<c.length||"com"===c||"org"===c)b=Pa;return(a=a.match(b))?a[0]:""}function oa(a){var b=Math.random().toString(36).substring(2,10)+Math.random().toString(36).substring(2,10);return a?
10
- b.substring(0,a):b}function pa(a,b){if(qa!==w&&!b)return qa;var c=n;try{var a=a||window.localStorage,d="__mplss_"+oa(8);a.setItem(d,"xyz");"xyz"!==a.getItem(d)&&(c=F);a.removeItem(d)}catch(h){c=F}return qa=c}function ra(a){return{log:sa(p.log,a),error:sa(p.error,a),P:sa(p.P,a)}}function sa(a,b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(p,arguments)}}function ba(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.wf||a.getAttribute("class")||
11
- "";default:return""}}function Qa(a){var b="";ca(a)&&a.childNodes&&a.childNodes.length&&d.a(a.childNodes,function(a){a&&3===a.nodeType&&a.textContent&&(b+=d.trim(a.textContent).split(/(\s+)/).filter(da).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return d.trim(b)}function S(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function Ra(a,b){if(!a||S(a,"html")||!(a&&1===a.nodeType))return F;switch(a.tagName.toLowerCase()){case "html":return F;case "form":return"submit"===
12
- b.type;case "input":return-1===["button","submit"].indexOf(a.getAttribute("type"))?"change"===b.type:"click"===b.type;case "select":case "textarea":return"change"===b.type;default:return"click"===b.type}}function ca(a){for(var b=a;b.parentNode&&!S(b,"body");b=b.parentNode){var c=ba(b).split(" ");if(d.h(c,"mp-sensitive")||d.h(c,"mp-no-track"))return F}if(d.h(ba(a).split(" "),"mp-include"))return n;if(S(a,"input")||S(a,"select")||S(a,"textarea")||"true"===a.getAttribute("contenteditable"))return F;
13
- b=a.type||"";if("string"===typeof b)switch(b.toLowerCase()){case "hidden":return F;case "password":return F}a=a.name||a.id||"";return"string"===typeof a&&/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|pwd|routing|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(a.replace(/[^a-zA-Z0-9]/g,""))?F:n}function da(a){if(a===w||d.g(a)||"string"===typeof a&&(a=d.trim(a),/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((a||
14
- "").replace(/[- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(a)))return F;return n}function Sa(a,b){Ea(n,a,b)}function Ta(a,b){Ea(F,a,b)}function Ua(a,b){return"1"===ea(b).get(fa(a,b))}function Fa(a,b){return Va(b)?n:"0"===ea(b).get(fa(a,b))}function P(a){return ta(a,function(a){return this.c(a)})}function N(a){return ta(a,function(a){return this.I(a)})}function T(a){return ta(a,function(a){return this.I(a)})}function Wa(a,b){b=b||{};ea(b).remove(fa(a,b),!!b.Cc,b.Ac)}function ea(a){a=a||{};return"localStorage"===
15
- a.Xc?d.localStorage:d.cookie}function fa(a,b){b=b||{};return(b.Wc||Xa)+a}function Va(a){if(a&&a.Jc)return F;var a=a&&a.window||B,b=a.navigator||{},c=F;d.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){d.h([n,1,"1","yes"],a)&&(c=n)});return c}function Ea(a,b,c){!d.va(b)||!b.length?console.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(c=c||{},ea(c).set(fa(b,c),a?1:0,d.Pc(c.Bc)?c.Bc:w,!!c.Cc,!!c.Qe,!!c.ke,c.Ac),c.p&&a&&c.p(c.ff||"$opt_in",c.gf,{send_immediately:n}))}function ta(a,
16
- b){return function(){var c=F;try{var d=b.call(this,"token"),h=b.call(this,"ignore_dnt"),i=b.call(this,"opt_out_tracking_persistence_type"),o=b.call(this,"opt_out_tracking_cookie_prefix"),j=b.call(this,"window");d&&(c=Fa(d,{Jc:h,Xc:i,Wc:o,window:j}))}catch(s){console.error("Unexpected error when checking tracking opt-out status: "+s)}if(!c)return a.apply(this,arguments);c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}function ua(a){if(a===w)return w;switch(typeof a){case "object":if(d.Q(a)&&
17
- 0<=a.getTime())return a.getTime();break;case "boolean":return Number(a);case "number":return a;case "string":return a=Number(a),!isNaN(a)?a:0}return w}function W(a){if(a===w)return F;switch(typeof a){case "boolean":return a;case "number":return 0!==a;case "string":return 0<a.length;case "object":if(d.isArray(a)&&0<a.length||d.Q(a)&&0<a.getTime()||d.e(a)&&!d.X(a))return n}return F}function Ya(a,b){(!a.operator||"datetime"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid cast operator: datetime "+
18
- a);var c=v(a.children[0],b);if(c===w)return w;switch(typeof c){case "number":case "string":c=new Date(c);if(isNaN(c.getTime()))break;return c;case "object":if(d.Q(c))return c}return w}function Za(a,b){(!a.operator||-1===["-","*","/","%"].indexOf(a.operator)||!a.children||2>a.children.length)&&k("Invalid arithmetic operator "+a);var c=v(a.children[0],b),d=v(a.children[1],b);if("number"===typeof c&&"number"===typeof d)switch(a.operator){case "-":return c-d;case "*":return c*d;case "/":if(0!==d)return c/
19
- d;break;case "%":if(0===d)break;return 0===c?0:0>c&&0<d||0<c&&0>d?-(Math.floor(c/d)*d-c):c%d;default:k("Unknown operator: "+a.operator)}return w}function $a(a,b){if(a===b)return n;if(a===w||b===w||a.length!==b.length)return F;for(var c=0;c<a.length;c++)if(a[c]!==b[c])return F;return n}function ab(a,b){if(a===w&&a===b)return n;if(typeof a===typeof b)switch(typeof a){case "number":case "string":case "boolean":return a===b;case "object":if(d.isArray(a)&&d.isArray(b))return $a(a,b);if(d.Q(a)&&d.Q(b))return a.getTime()===
20
- b.getTime();if(d.e(a)&&d.e(b))return JSON.stringify(a)===JSON.stringify(b)}return F}function bb(a,b){(!a.operator||-1===[">",">=","<","<="].indexOf(a.operator)||!a.children||2!==a.children.length)&&k("Invalid comparison operator "+a);var c=v(a.children[0],b),f=v(a.children[1],b);if(typeof c===typeof f)if("number"===typeof f||d.Q(f))switch(c=ua(c),f=ua(f),a.operator){case ">":return c>f;case ">=":return c>=f;case "<":return c<f;case "<=":return c<=f}else if("string"===typeof f)switch(c=c.localeCompare(f),
21
- a.operator){case ">":return 0<c;case ">=":return 0<=c;case "<":return 0>c;case "<=":return 0>=c}return w}function cb(a,b){a.operator||k("Invalid operator: operator key missing "+a);switch(a.operator){case "and":return(!a.operator||"and"!==a.operator||!a.children||2!==a.children.length)&&k("Invalid operator: AND "+a),W(v(a.children[0],b))&&W(v(a.children[1],b));case "or":return(!a.operator||"or"!==a.operator||!a.children||2!==a.children.length)&&k("Invalid operator: OR "+a),W(v(a.children[0],b))||
22
- W(v(a.children[1],b));case "in":case "not in":(!a.operator||-1===["in","not in"].indexOf(a.operator)||!a.children||2!==a.children.length)&&k("Invalid operator: IN/NOT IN "+a);var c=v(a.children[0],b),f=v(a.children[1],b);!d.isArray(f)&&!d.va(f)&&k("Invalid operand for operator IN: invalid type"+f);c=-1<f.indexOf(c);return"not in"===a.operator?!c:c;case "+":return(!a.operator||"+"!==a.operator||!a.children||2>a.children.length)&&k("Invalid operator: PLUS "+a),c=v(a.children[0],b),f=v(a.children[1],
23
- b),"number"===typeof c&&"number"===typeof f||"string"===typeof c&&"string"===typeof f?c+f:w;case "-":case "*":case "/":case "%":return Za(a,b);case "==":case "!=":a:switch((!a.operator||-1===["==","!="].indexOf(a.operator)||!a.children||2!==a.children.length)&&k("Invalid equality operator "+a),f=ab(v(a.children[0],b),v(a.children[1],b)),a.operator){case "==":c=f;break a;case "!=":c=!f}return c;case ">":case "<":case ">=":case "<=":return bb(a,b);case "boolean":return(!a.operator||"boolean"!==a.operator||
24
- !a.children||1!==a.children.length)&&k("Invalid cast operator: boolean "+a),W(v(a.children[0],b));case "datetime":return Ya(a,b);case "list":return(!a.operator||"list"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid cast operator: list "+a),c=v(a.children[0],b),c===w?w:d.isArray(c)?c:w;case "number":return(!a.operator||"number"!==a.operator||!a.children||1!==a.children.length)&&k("Invalid cast operator: number "+a),ua(v(a.children[0],b));case "string":a:{(!a.operator||"string"!==a.operator||
25
- !a.children||1!==a.children.length)&&k("Invalid cast operator: string "+a);c=v(a.children[0],b);switch(typeof c){case "object":c=d.Q(c)?c.toJSON():JSON.stringify(c);break a}c=""+c}return c;case "defined":case "not defined":return(!a.operator||-1===["defined","not defined"].indexOf(a.operator)||!a.children||1!==a.children.length)&&k("Invalid defined/not defined operator: "+a),c=v(a.children[0],b)!==w,"not defined"===a.operator?!c:c;case "not":return(!a.operator||"not"!==a.operator||!a.children||1!==
26
- a.children.length)&&k("Invalid not operator: "+a),c=v(a.children[0],b),c===w?n:"boolean"===typeof c?!c:w}}function v(a,b){if(a.property){var c;a:switch((!a.property||!a.value)&&k("Invalid operand: missing required keys "+a),a.property){case "event":c=b[a.value]!==l?b[a.value]:w;break a;case "literal":if("now"===a.value)c=new Date;else if("object"===typeof a.value){var d=a.value;c=d.window;(!c||!c.unit||!c.value)&&k("Invalid window: missing required keys "+JSON.stringify(d));d=new Date;switch(c.unit){case "hour":d.setTime(d.getTime()+
27
- -36E5*c.value);break;case "day":d.setTime(d.getTime()+-864E5*c.value);break;case "week":d.setTime(d.getTime()+-6048E5*c.value);break;case "month":d.setTime(d.getTime()+-2592E6*c.value);break;default:k("Invalid unit: "+c.unit)}c=d}else c=a.value;break a;default:k("Invalid operand: Invalid property type "+a.property)}return c}if(a.operator)return cb(a,b)}var L=F,B;if("undefined"===typeof window){var E={hostname:""};B={navigator:{userAgent:""},document:{location:E,referrer:""},screen:{width:0,height:0},
28
- location:E}}else B=window;var E=Array.prototype,Ga=Object.prototype,Q=E.slice,X=Ga.toString,ga=Ga.hasOwnProperty,C=B.console,I=B.navigator,t=B.document,Y=B.opera,ha=B.screen,y=I.userAgent,va=Function.prototype.bind,Ha=E.forEach,Ia=E.indexOf,Ja=E.map,E=Array.isArray,wa={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={log:function(){if(L&&!d.g(C)&&C)try{C.log.apply(C,arguments)}catch(a){d.a(arguments,function(a){C.log(a)})}},error:function(){if(L&&!d.g(C)&&C){var a=
29
- ["Mixpanel error:"].concat(d.Ba(arguments));try{C.error.apply(C,a)}catch(b){d.a(a,function(a){C.error(a)})}}},P:function(){if(!d.g(C)&&C){var a=["Mixpanel error:"].concat(d.Ba(arguments));try{C.error.apply(C,a)}catch(b){d.a(a,function(a){C.error(a)})}}}};d.bind=function(a,b){var c,f;if(va&&a.bind===va)return va.apply(a,Q.call(arguments,1));d.Ya(a)||k(new TypeError);c=Q.call(arguments,2);return f=function(){if(!(this instanceof f))return a.apply(b,c.concat(Q.call(arguments)));var d={};d.prototype=
30
- a.prototype;var i=new d;d.prototype=w;d=a.apply(i,c.concat(Q.call(arguments)));return Object(d)===d?d:i}};d.vc=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=d.bind(a[b],a))};d.a=function(a,b,c){if(!(a===w||a===l))if(Ha&&a.forEach===Ha)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,h=a.length;d<h&&!(d in a&&b.call(c,a[d],d,a)===wa);d++);else for(d in a)if(ga.call(a,d)&&b.call(c,a[d],d,a)===wa)break};d.V=function(a){a&&d.va(a)&&(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,
31
- "&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"));return a};d.extend=function(a){d.a(Q.call(arguments,1),function(b){for(var c in b)b[c]!==l&&(a[c]=b[c])});return a};d.isArray=E||function(a){return"[object Array]"===X.call(a)};d.Ya=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return F}};d.Ae=function(a){return!(!a||!ga.call(a,"callee"))};d.Ba=function(a){return!a?[]:a.Ba?a.Ba():d.isArray(a)||d.Ae(a)?Q.call(a):d.rf(a)};d.map=function(a,b,c){if(Ja&&a.map===Ja)return a.map(b,c);var f=
32
- [];d.a(a,function(a){f.push(b.call(c,a))});return f};d.keys=function(a){var b=[];if(a===w)return b;d.a(a,function(a,d){b[b.length]=d});return b};d.rf=function(a){var b=[];if(a===w)return b;d.a(a,function(a){b[b.length]=a});return b};d.zf=function(a){return a};d.Lc=function(a,b){var c=F;if(a===w)return c;if(Ia&&a.indexOf===Ia)return-1!=a.indexOf(b);d.a(a,function(a){if(c||(c=a===b))return wa});return c};d.h=function(a,b){return-1!==a.indexOf(b)};d.Nc=function(a,b){a.prototype=new b;a.df=b.prototype};
33
- d.e=function(a){return a===Object(a)&&!d.isArray(a)};d.X=function(a){if(d.e(a)){for(var b in a)if(ga.call(a,b))return F;return n}return F};d.g=function(a){return a===l};d.va=function(a){return"[object String]"==X.call(a)};d.Q=function(a){return"[object Date]"==X.call(a)};d.Pc=function(a){return"[object Number]"==X.call(a)};d.Ce=function(a){return!!(a&&1===a.nodeType)};d.Gb=function(a){d.a(a,function(b,c){d.Q(b)?a[c]=d.te(b):d.e(b)&&(a[c]=d.Gb(b))});return a};d.timestamp=function(){Date.now=Date.now||
34
- function(){return+new Date};return Date.now()};d.te=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.o=function(a){return function(){try{return a.apply(this,arguments)}catch(b){p.P("Implementation error. Please turn on debug and contact support@mixpanel.com."),L&&p.P(b)}}};d.Me=function(a){for(var b=["identify","_check_and_handle_notifications","_show_notification"],
35
- c=0;c<b.length;c++)a.prototype[b[c]]=d.o(a.prototype[b[c]])};d.Ne=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=d.o(a[b]))};d.gb=function(a){var b={};d.a(a,function(a,f){d.va(a)&&0<a.length&&(b[f]=a)});return b};d.truncate=function(a,b){var c;"string"===typeof a?c=a.slice(0,b):d.isArray(a)?(c=[],d.a(a,function(a){c.push(d.truncate(a,b))})):d.e(a)?(c={},d.a(a,function(a,h){c[h]=d.truncate(a,b)})):c=a;return c};d.Ha=function(){return function(a){function b(a,d){var i="",o=0,j=o="",j=0,
36
- s=i,e=[],g=d[a];g&&"object"===typeof g&&"function"===typeof g.toJSON&&(g=g.toJSON(a));switch(typeof g){case "string":return c(g);case "number":return isFinite(g)?""+g:"null";case "boolean":case "null":return""+g;case "object":if(!g)return"null";i+=" ";e=[];if("[object Array]"===X.apply(g)){j=g.length;for(o=0;o<j;o+=1)e[o]=b(o,g)||"null";return j=0===e.length?"[]":i?"[\n"+i+e.join(",\n"+i)+"\n"+s+"]":"["+e.join(",")+"]"}for(o in g)ga.call(g,o)&&(j=b(o,g))&&e.push(c(o)+(i?": ":":")+j);return j=0===
37
- e.length?"{}":i?"{"+e.join(",")+""+s+"}":"{"+e.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,c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=c[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();d.ka=function(){function a(){switch(j){case "t":return h("t"),
38
- h("r"),h("u"),h("e"),n;case "f":return h("f"),h("a"),h("l"),h("s"),h("e"),F;case "n":return h("n"),h("u"),h("l"),h("l"),w}i('Unexpected "'+j+'"')}function b(){for(;j&&" ">=j;)h()}function c(){var a,b,c="",d;if('"'===j)for(;h();){if('"'===j)return h(),c;if("\\"===j)if(h(),"u"===j){for(b=d=0;4>b;b+=1){a=parseInt(h(),16);if(!isFinite(a))break;d=16*d+a}c+=String.fromCharCode(d)}else if("string"===typeof e[j])c+=e[j];else break;else c+=j}i("Bad string")}function d(){var a;a="";"-"===j&&(a="-",h("-"));
39
- for(;"0"<=j&&"9">=j;)a+=j,h();if("."===j)for(a+=".";h()&&"0"<=j&&"9">=j;)a+=j;if("e"===j||"E"===j){a+=j;h();if("-"===j||"+"===j)a+=j,h();for(;"0"<=j&&"9">=j;)a+=j,h()}a=+a;if(isFinite(a))return a;i("Bad number")}function h(a){a&&a!==j&&i("Expected '"+a+"' instead of '"+j+"'");j=g.charAt(o);o+=1;return j}function i(a){a=new SyntaxError(a);a.vf=o;a.text=g;k(a)}var o,j,e={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},g,z;z=function(){b();switch(j){case "{":var o;a:{var e,s={};
40
- if("{"===j){h("{");b();if("}"===j){h("}");o=s;break a}for(;j;){e=c();b();h(":");Object.hasOwnProperty.call(s,e)&&i('Duplicate key "'+e+'"');s[e]=z();b();if("}"===j){h("}");o=s;break a}h(",");b()}}i("Bad object")}return o;case "[":a:{o=[];if("["===j){h("[");b();if("]"===j){h("]");e=o;break a}for(;j;){o.push(z());b();if("]"===j){h("]");e=o;break a}h(",");b()}}i("Bad array")}return e;case '"':return c();case "-":return d();default:return"0"<=j&&"9">=j?d():a()}};return function(a){g=a;o=0;j=" ";a=z();
41
- b();j&&i("Syntax error");return a}}();d.fe=function(a){var b,c,f,h,i=0,o=0,j="",j=[];if(!a)return a;a=d.qf(a);do b=a.charCodeAt(i++),c=a.charCodeAt(i++),f=a.charCodeAt(i++),h=b<<16|c<<8|f,b=h>>18&63,c=h>>12&63,f=h>>6&63,h&=63,j[o++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h);
42
- while(i<a.length);j=j.join("");switch(a.length%3){case 1:j=j.slice(0,-2)+"==";break;case 2:j=j.slice(0,-1)+"="}return j};d.qf=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",c,d,h=0,i;c=d=0;h=a.length;for(i=0;i<h;i++){var o=a.charCodeAt(i),j=w;128>o?d++:j=127<o&&2048>o?String.fromCharCode(o>>6|192,o&63|128):String.fromCharCode(o>>12|224,o>>6&63|128,o&63|128);j!==w&&(d>c&&(b+=a.substring(c,d)),b+=j,c=d=i+1)}d>c&&(b+=a.substring(c,a.length));return b};d.Zb=function(){function a(){function a(b,
43
- c){var d,f=0;for(d=0;d<c.length;d++)f|=i[d]<<8*d;return b^f}var b,d,i=[],o=0;for(b=0;b<y.length;b++)d=y.charCodeAt(b),i.unshift(d&255),4<=i.length&&(o=a(o,i),i=[]);0<i.length&&(o=a(o,i));return o.toString(16)}function b(){for(var a=1*new Date,b=0;a==1*new Date;)b++;return a.toString(16)+b.toString(16)}return function(){var c=(ha.height*ha.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+c+"-"+b()}}();d.Oc=function(a){return/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(a)?
44
- n:F};d.Ad=function(a){var b,c,f,h=[];d.g(b)&&(b="&");d.a(a,function(a,b){c=encodeURIComponent(a.toString());f=encodeURIComponent(b);h[h.length]=f+"="+c});return h.join(b)};d.Ic=function(a,b){var b=b.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===w||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(d){p.error("Skipping decoding for malformed query param: "+c)}return c.replace(/\+/g," ")};d.ta=function(a,b){var c=a.match(RegExp(b+
45
- "=([^&]*)"));return c?c[1]:w};d.cookie={get:function(a){for(var a=a+"=",b=t.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}return w},parse:function(a){var b;try{b=d.ka(d.cookie.get(a))||{}}catch(c){}return b},Af:function(a,b,c,d,h,i,o){var j="",e="",g="";o?j="; domain="+o:d&&(j=(j=Da(t.location.hostname))?"; domain=."+j:"");c&&(e=new Date,e.setTime(e.getTime()+1E3*c),e="; expires="+
46
- e.toGMTString());i&&(h=n,g="; SameSite=None");h&&(g+="; secure");t.cookie=a+"="+encodeURIComponent(b)+e+"; path=/"+j+g},set:function(a,b,c,d,h,i,e){var j="",g="",A="";e?j="; domain="+e:d&&(j=(j=Da(t.location.hostname))?"; domain=."+j:"");c&&(g=new Date,g.setTime(g.getTime()+864E5*c),g="; expires="+g.toGMTString());i&&(h=n,A="; SameSite=None");h&&(A+="; secure");a=a+"="+encodeURIComponent(b)+g+"; path=/"+j+A;return t.cookie=a},remove:function(a,b,c){d.cookie.set(a,"",-1,b,F,F,c)}};var qa=w;d.localStorage=
47
- {Za:function(a){(a=pa(w,a))||p.error("localStorage unsupported; falling back to cookie store");return a},error:function(a){p.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){d.localStorage.error(b)}return w},parse:function(a){try{return d.ka(d.localStorage.get(a))||{}}catch(b){}return w},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(c){d.localStorage.error(c)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){d.localStorage.error(b)}}};
48
- d.L=function(){function a(a,f,h){return function(i){if(i=i||b(window.event)){var e=n,j;d.Ya(h)&&(j=h(i));i=f.call(a,i);if(F===j||F===i)e=F;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=F};b.stopPropagation=function(){this.cancelBubble=n};return function(b,d,h,i,e){b?b.addEventListener&&!i?b.addEventListener(d,h,!!e):(d="on"+d,b[d]=a(b,h,b[d])):p.error("No valid element provided to register_event")}}();
49
- var db=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;d.pe=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(c," ").indexOf(" "+b+" ")}function b(b){if(!t.getElementsByTagName)return[];var b=b.split(" "),c,i,e,j,g,A,z,r=[t];for(j=0;j<b.length;j++)if(c=b[j].replace(/^\s+/,"").replace(/\s+$/,""),-1<c.indexOf("#")){i=c.split("#");c=i[0];r=t.getElementById(i[1]);if(!r||c&&r.nodeName.toLowerCase()!=c)return[];r=[r]}else if(-1<c.indexOf(".")){i=c.split(".");c=i[0];var D=i[1];c||(c="*");
50
- i=[];for(g=e=0;g<r.length;g++){z="*"==c?r[g].all?r[g].all:r[g].getElementsByTagName("*"):r[g].getElementsByTagName(c);for(A=0;A<z.length;A++)i[e++]=z[A]}r=[];for(g=c=0;g<i.length;g++)i[g].className&&d.va(i[g].className)&&a(i[g],D)&&(r[c++]=i[g])}else if(i=c.match(db)){c=i[1];var p=i[2],D=i[3],m=i[4];c||(c="*");i=[];for(g=e=0;g<r.length;g++){z="*"==c?r[g].all?r[g].all:r[g].getElementsByTagName("*"):r[g].getElementsByTagName(c);for(A=0;A<z.length;A++)i[e++]=z[A]}r=[];c=0;switch(D){case "=":D=function(a){return a.getAttribute(p)==
51
- m};break;case "~":D=function(a){return a.getAttribute(p).match(RegExp("\\b"+m+"\\b"))};break;case "|":D=function(a){return a.getAttribute(p).match(RegExp("^"+m+"-?"))};break;case "^":D=function(a){return 0===a.getAttribute(p).indexOf(m)};break;case "$":D=function(a){return a.getAttribute(p).lastIndexOf(m)==a.getAttribute(p).length-m.length};break;case "*":D=function(a){return-1<a.getAttribute(p).indexOf(m)};break;default:D=function(a){return a.getAttribute(p)}}r=[];for(g=c=0;g<i.length;g++)D(i[g])&&
52
- (r[c++]=i[g])}else{i=[];for(g=e=0;g<r.length;g++){z=r[g].getElementsByTagName(c);for(A=0;A<z.length;A++)i[e++]=z[A]}r=i}return r}var c=/[\t\r\n]/g;return function(a){return d.Ce(a)?[a]:d.e(a)&&!d.g(a.length)?a:b.call(this,a)}}();d.info={je:function(){var a="",b={};d.a("utm_source utm_medium utm_campaign utm_content utm_term".split(" "),function(c){a=d.Ic(t.URL,c);a.length&&(b[c]=a)});return b},Oe:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?
53
- "bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":w},Pe:function(a){var b=d.info.Oe(a),c={};if(b!==w)c.$search_engine=b,a=d.Ic(a,"yahoo"!=b?"q":"p"),a.length&&(c.mp_keyword=a);return c},sa:function(a,b,c){return c||d.h(a," OPR/")?d.h(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":d.h(a,"IEMobile")||d.h(a,"WPDesktop")?"Internet Explorer Mobile":d.h(a,"SamsungBrowser/")?"Samsung Internet":d.h(a,"Edge")||
54
- d.h(a,"Edg/")?"Microsoft Edge":d.h(a,"FBIOS")?"Facebook Mobile":d.h(a,"Chrome")?"Chrome":d.h(a,"CriOS")?"Chrome iOS":d.h(a,"UCWEB")||d.h(a,"UCBrowser")?"UC Browser":d.h(a,"FxiOS")?"Firefox iOS":d.h(b||"","Apple")?d.h(a,"Mobile")?"Mobile Safari":"Safari":d.h(a,"Android")?"Android Mobile":d.h(a,"Konqueror")?"Konqueror":d.h(a,"Firefox")?"Firefox":d.h(a,"MSIE")||d.h(a,"Trident/")?"Internet Explorer":d.h(a,"Gecko")?"Mozilla":""},Db:function(a,b,c){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,
2
+ function l(ga){throw ga;}var n=void 0,p=!0,w=null,F=!1;
3
+ (function(){function ga(){function a(){if(!a.ae)sa=a.ae=p,ta=F,d.a(L,function(a){a.zd()})}function b(){try{s.documentElement.doScroll("left")}catch(c){setTimeout(b,1);return}a()}if(s.addEventListener)"complete"===s.readyState?a():s.addEventListener("DOMContentLoaded",a,F);else if(s.attachEvent){s.attachEvent("onreadystatechange",a);var c=F;try{c=B.frameElement===w}catch(h){}s.documentElement.doScroll&&c&&b()}d.ea(B,"load",a,p)}function Ga(){x.init=function(a,b,c){if(c)return x[c]||(x[c]=L[c]=X(a,
4
+ b,c),x[c].Ja()),x[c];c=x;if(L.mixpanel)c=L.mixpanel;else if(a)c=X(a,b,"mixpanel"),c.Ja(),L.mixpanel=c;x=c;1===ha&&(B.mixpanel=x);Ha()}}function Ha(){d.a(L,function(a,b){"mixpanel"!==b&&(x[b]=a)});x._=d}function ia(a){a=d.e(a)?a:d.g(a)?{}:{days:a};return d.extend({},Ia,a)}function ua(a){a=d.Ea(a);return{data:d.Qd(a)}}function X(a,b,c){var h,i="mixpanel"===c?x:x[c];if(i&&0===ha)h=i;else{if(i&&!d.isArray(i)){o.error("You have already initialized "+c);return}h=new e}h.Zb={};h.mc=F;h.cc=[];h.pa(a,b,c);
5
+ h.people=new k;h.people.pa(h);G=G||h.c("debug");!d.g(i)&&d.isArray(i)&&(h.nb.call(h.people,i.people),h.nb(i));return h}function e(){}function Y(){}function Ja(a){return a}function k(){}function f(a,b){d.Rd(this);this.da=b;this.Rb=this.da.persistence;this.Ya=this.da.c("inapp_protocol");this.Ma=this.da.c("cdn");this.K=d.U(a.id);this.Lc=d.U(a.message_id);this.body=(d.U(a.body)||"").replace(/\n/g,"<br/>");this.Wd=d.U(a.cta)||"Close";this.va=d.U(a.type)||"takeover";this.style=d.U(a.style)||"light";this.title=
6
+ d.U(a.title)||"";this.Ca=f.wd;this.ia=f.vd;this.Bc=a.display_triggers||[];this.ca=a.cta_url||w;this.Kb=a.image_url||w;this.A=a.thumb_image_url||w;this.gb=a.video_url||w;if(this.A&&0===this.A.indexOf("//"))this.A=this.A.replace("//",this.Ya);this.Na=p;if(!this.ca)this.ca="#dismiss",this.Na=F;this.v="mini"===this.va;if(!this.v)this.va="takeover";this.ne=!this.v?f.la:f.hb;this.kc();this.Ta=this.Ed();this.Hd()}function q(a){this.props={};this.qc=F;this.name=a.persistence_name?"mp_"+a.persistence_name:
7
+ "mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)o.L("Unknown persistence type "+b+"; falling back to cookie"),b=a.persistence="cookie";this.h="localStorage"===b&&d.localStorage.Ua()?d.localStorage:d.cookie;this.load();this.nd(a);this.Xe(a);this.save()}function t(){}function H(a,b){this.ya=new M(a,{h:b.h});this.Q=b.Q;this.ze=b.Ae;this.Ka=b.Ka;this.qa=this.Q.batch_size;this.Ra=this.Q.batch_flush_interval_ms;this.$a=!this.Q.batch_autostart}function va(a,b){var c=[];
8
+ d.a(a,function(a){var d=a.id;if(d in b){if(d=b[d],d!==w)a.payload=d,c.push(a)}else c.push(a)});return c}function wa(a,b){var c=[];d.a(a,function(a){a.id&&!b[a.id]&&c.push(a)});return c}function M(a,b){b=b||{};this.za=a;this.h=b.h||window.localStorage;this.Nb=new xa(a,{h:this.h});this.Va=b.Va||w;this.X=[]}function xa(a,b){b=b||{};this.za=a;this.h=b.h||window.localStorage;this.Sc=b.Sc||100;this.gd=b.gd||2E3}function Z(){this.Pc="submit"}function R(){this.Pc="click"}function I(){}function ya(a){var b=
9
+ Ka,c=a.split("."),c=c[c.length-1];if(4<c.length||"com"===c||"org"===c)b=La;return(a=a.match(b))?a[0]:""}function ja(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 ka(a,b){if(la!==w&&!b)return la;var c=p;try{var a=a||window.localStorage,d="__mplss_"+ja(8);a.setItem(d,"xyz");"xyz"!==a.getItem(d)&&(c=F);a.removeItem(d)}catch(i){c=F}return la=c}function ma(a){return{log:na(o.log,a),error:na(o.error,a),L:na(o.L,a)}}function na(a,
10
+ b){return function(){arguments[0]="["+b+"] "+arguments[0];return a.apply(o,arguments)}}function Ma(a,b){za(p,a,b)}function Na(a,b){za(F,a,b)}function Oa(a,b){return"1"===$(b).get(aa(a,b))}function Aa(a,b){if(Pa(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"'),p;var c="0"===$(b).get(aa(a,b));c&&o.warn("You are opted out of Mixpanel tracking. This will prevent the Mixpanel SDK from sending any data.");
11
+ return c}function P(a){return oa(a,function(a){return this.c(a)})}function N(a){return oa(a,function(a){return this.I(a)})}function S(a){return oa(a,function(a){return this.I(a)})}function Qa(a,b){b=b||{};$(b).remove(aa(a,b),!!b.wc,b.uc)}function $(a){a=a||{};return"localStorage"===a.Rc?d.localStorage:d.cookie}function aa(a,b){b=b||{};return(b.Qc||Ra)+a}function Pa(a){if(a&&a.Dc)return F;var a=a&&a.window||B,b=a.navigator||{},c=F;d.a([b.doNotTrack,b.msDoNotTrack,a.doNotTrack],function(a){d.i([p,1,
12
+ "1","yes"],a)&&(c=p)});return c}function za(a,b,c){!d.ua(b)||!b.length?o.error("gdpr."+(a?"optIn":"optOut")+" called with an invalid token"):(c=c||{},$(c).set(aa(b,c),a?1:0,d.Jc(c.vc)?c.vc:w,!!c.wc,!!c.ye,!!c.Vd,c.uc),c.u&&a&&c.u(c.Oe||"$opt_in",c.Pe,{send_immediately:p}))}function oa(a,b){return function(){var c=F;try{var d=b.call(this,"token"),i=b.call(this,"ignore_dnt"),g=b.call(this,"opt_out_tracking_persistence_type"),m=b.call(this,"opt_out_tracking_cookie_prefix"),j=b.call(this,"window");d&&
13
+ (c=Aa(d,{Dc:i,Rc:g,Qc:m,window:j}))}catch(v){o.error("Unexpected error when checking tracking opt-out status: "+v)}if(!c)return a.apply(this,arguments);c=arguments[arguments.length-1];"function"===typeof c&&c(0)}}function pa(a){if(a===w)return w;switch(typeof a){case "object":if(d.P(a)&&0<=a.getTime())return a.getTime();break;case "boolean":return Number(a);case "number":return a;case "string":return a=Number(a),!isNaN(a)?a:0}return w}function U(a){if(a===w)return F;switch(typeof a){case "boolean":return a;
14
+ case "number":return 0!==a;case "string":return 0<a.length;case "object":if(d.isArray(a)&&0<a.length||d.P(a)&&0<a.getTime()||d.e(a)&&!d.W(a))return p}return F}function Sa(a,b){(!a.operator||"datetime"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid cast operator: datetime "+a);var c=u(a.children[0],b);if(c===w)return w;switch(typeof c){case "number":case "string":c=new Date(c);if(isNaN(c.getTime()))break;return c;case "object":if(d.P(c))return c}return w}function Ta(a,b){(!a.operator||
15
+ -1===["-","*","/","%"].indexOf(a.operator)||!a.children||2>a.children.length)&&l("Invalid arithmetic operator "+a);var c=u(a.children[0],b),d=u(a.children[1],b);if("number"===typeof c&&"number"===typeof d)switch(a.operator){case "-":return c-d;case "*":return c*d;case "/":if(0!==d)return c/d;break;case "%":if(0===d)break;return 0===c?0:0>c&&0<d||0<c&&0>d?-(Math.floor(c/d)*d-c):c%d;default:l("Unknown operator: "+a.operator)}return w}function Ua(a,b){if(a===b)return p;if(a===w||b===w||a.length!==b.length)return F;
16
+ for(var c=0;c<a.length;c++)if(a[c]!==b[c])return F;return p}function Va(a,b){if(a===w&&a===b)return p;if(typeof a===typeof b)switch(typeof a){case "number":case "string":case "boolean":return a===b;case "object":if(d.isArray(a)&&d.isArray(b))return Ua(a,b);if(d.P(a)&&d.P(b))return a.getTime()===b.getTime();if(d.e(a)&&d.e(b))return JSON.stringify(a)===JSON.stringify(b)}return F}function Wa(a,b){(!a.operator||-1===[">",">=","<","<="].indexOf(a.operator)||!a.children||2!==a.children.length)&&l("Invalid comparison operator "+
17
+ a);var c=u(a.children[0],b),h=u(a.children[1],b);if(typeof c===typeof h)if("number"===typeof h||d.P(h))switch(c=pa(c),h=pa(h),a.operator){case ">":return c>h;case ">=":return c>=h;case "<":return c<h;case "<=":return c<=h}else if("string"===typeof h)switch(c=c.localeCompare(h),a.operator){case ">":return 0<c;case ">=":return 0<=c;case "<":return 0>c;case "<=":return 0>=c}return w}function Xa(a,b){a.operator||l("Invalid operator: operator key missing "+a);switch(a.operator){case "and":return(!a.operator||
18
+ "and"!==a.operator||!a.children||2!==a.children.length)&&l("Invalid operator: AND "+a),U(u(a.children[0],b))&&U(u(a.children[1],b));case "or":return(!a.operator||"or"!==a.operator||!a.children||2!==a.children.length)&&l("Invalid operator: OR "+a),U(u(a.children[0],b))||U(u(a.children[1],b));case "in":case "not in":(!a.operator||-1===["in","not in"].indexOf(a.operator)||!a.children||2!==a.children.length)&&l("Invalid operator: IN/NOT IN "+a);var c=u(a.children[0],b),h=u(a.children[1],b);!d.isArray(h)&&
19
+ !d.ua(h)&&l("Invalid operand for operator IN: invalid type"+h);c=-1<h.indexOf(c);return"not in"===a.operator?!c:c;case "+":return(!a.operator||"+"!==a.operator||!a.children||2>a.children.length)&&l("Invalid operator: PLUS "+a),c=u(a.children[0],b),h=u(a.children[1],b),"number"===typeof c&&"number"===typeof h||"string"===typeof c&&"string"===typeof h?c+h:w;case "-":case "*":case "/":case "%":return Ta(a,b);case "==":case "!=":a:switch((!a.operator||-1===["==","!="].indexOf(a.operator)||!a.children||
20
+ 2!==a.children.length)&&l("Invalid equality operator "+a),h=Va(u(a.children[0],b),u(a.children[1],b)),a.operator){case "==":c=h;break a;case "!=":c=!h}return c;case ">":case "<":case ">=":case "<=":return Wa(a,b);case "boolean":return(!a.operator||"boolean"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid cast operator: boolean "+a),U(u(a.children[0],b));case "datetime":return Sa(a,b);case "list":return(!a.operator||"list"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid cast operator: list "+
21
+ a),c=u(a.children[0],b),c===w?w:d.isArray(c)?c:w;case "number":return(!a.operator||"number"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid cast operator: number "+a),pa(u(a.children[0],b));case "string":a:{(!a.operator||"string"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid cast operator: string "+a);c=u(a.children[0],b);switch(typeof c){case "object":c=d.P(c)?c.toJSON():JSON.stringify(c);break a}c=""+c}return c;case "defined":case "not defined":return(!a.operator||
22
+ -1===["defined","not defined"].indexOf(a.operator)||!a.children||1!==a.children.length)&&l("Invalid defined/not defined operator: "+a),c=u(a.children[0],b)!==w,"not defined"===a.operator?!c:c;case "not":return(!a.operator||"not"!==a.operator||!a.children||1!==a.children.length)&&l("Invalid not operator: "+a),c=u(a.children[0],b),c===w?p:"boolean"===typeof c?!c:w}}function u(a,b){if(a.property){var c;a:switch((!a.property||!a.value)&&l("Invalid operand: missing required keys "+a),a.property){case "event":c=
23
+ b[a.value]!==n?b[a.value]:w;break a;case "literal":if("now"===a.value)c=new Date;else if("object"===typeof a.value){var d=a.value;c=d.window;(!c||!c.unit||!c.value)&&l("Invalid window: missing required keys "+JSON.stringify(d));d=new Date;switch(c.unit){case "hour":d.setTime(d.getTime()+-36E5*c.value);break;case "day":d.setTime(d.getTime()+-864E5*c.value);break;case "week":d.setTime(d.getTime()+-6048E5*c.value);break;case "month":d.setTime(d.getTime()+-2592E6*c.value);break;default:l("Invalid unit: "+
24
+ c.unit)}c=d}else c=a.value;break a;default:l("Invalid operand: Invalid property type "+a.property)}return c}if(a.operator)return Xa(a,b)}var G=F,B;if("undefined"===typeof window){var E={hostname:""};B={navigator:{userAgent:""},document:{location:E,referrer:""},screen:{width:0,height:0},location:E}}else B=window;var E=Array.prototype,Ba=Object.prototype,Q=E.slice,V=Ba.toString,ba=Ba.hasOwnProperty,y=B.console,J=B.navigator,s=B.document,W=B.opera,ca=B.screen,z=J.userAgent,qa=Function.prototype.bind,
25
+ Ca=E.forEach,Da=E.indexOf,Ea=E.map,E=Array.isArray,ra={},d={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},o={log:function(){if(G&&!d.g(y)&&y)try{y.log.apply(y,arguments)}catch(a){d.a(arguments,function(a){y.log(a)})}},warn:function(){if(G&&!d.g(y)&&y){var a=["Mixpanel warning:"].concat(d.ga(arguments));try{y.warn.apply(y,a)}catch(b){d.a(a,function(a){y.warn(a)})}}},error:function(){if(G&&!d.g(y)&&y){var a=["Mixpanel error:"].concat(d.ga(arguments));try{y.error.apply(y,
26
+ a)}catch(b){d.a(a,function(a){y.error(a)})}}},L:function(){if(!d.g(y)&&y){var a=["Mixpanel error:"].concat(d.ga(arguments));try{y.error.apply(y,a)}catch(b){d.a(a,function(a){y.error(a)})}}}};d.bind=function(a,b){var c,h;if(qa&&a.bind===qa)return qa.apply(a,Q.call(arguments,1));d.Mb(a)||l(new TypeError);c=Q.call(arguments,2);return h=function(){if(!(this instanceof h))return a.apply(b,c.concat(Q.call(arguments)));var d={};d.prototype=a.prototype;var g=new d;d.prototype=w;d=a.apply(g,c.concat(Q.call(arguments)));
27
+ return Object(d)===d?d:g}};d.Rd=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=d.bind(a[b],a))};d.a=function(a,b,c){if(!(a===w||a===n))if(Ca&&a.forEach===Ca)a.forEach(b,c);else if(a.length===+a.length)for(var d=0,i=a.length;d<i&&!(d in a&&b.call(c,a[d],d,a)===ra);d++);else for(d in a)if(ba.call(a,d)&&b.call(c,a[d],d,a)===ra)break};d.U=function(a){a&&d.ua(a)&&(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"));return a};d.extend=
28
+ function(a){d.a(Q.call(arguments,1),function(b){for(var c in b)b[c]!==n&&(a[c]=b[c])});return a};d.isArray=E||function(a){return"[object Array]"===V.call(a)};d.Mb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return F}};d.ke=function(a){return!(!a||!ba.call(a,"callee"))};d.ga=function(a){return!a?[]:a.ga?a.ga():d.isArray(a)||d.ke(a)?Q.call(a):d.Ze(a)};d.map=function(a,b,c){if(Ea&&a.map===Ea)return a.map(b,c);var h=[];d.a(a,function(a){h.push(b.call(c,a))});return h};d.keys=function(a){var b=
29
+ [];if(a===w)return b;d.a(a,function(a,d){b[b.length]=d});return b};d.Ze=function(a){var b=[];if(a===w)return b;d.a(a,function(a){b[b.length]=a});return b};d.Fc=function(a,b){var c=F;if(a===w)return c;if(Da&&a.indexOf===Da)return-1!=a.indexOf(b);d.a(a,function(a){if(c||(c=a===b))return ra});return c};d.i=function(a,b){return-1!==a.indexOf(b)};d.Hc=function(a,b){a.prototype=new b;a.Me=b.prototype};d.e=function(a){return a===Object(a)&&!d.isArray(a)};d.W=function(a){if(d.e(a)){for(var b in a)if(ba.call(a,
30
+ b))return F;return p}return F};d.g=function(a){return a===n};d.ua=function(a){return"[object String]"==V.call(a)};d.P=function(a){return"[object Date]"==V.call(a)};d.Jc=function(a){return"[object Number]"==V.call(a)};d.le=function(a){return!!(a&&1===a.nodeType)};d.Db=function(a){d.a(a,function(b,c){d.P(b)?a[c]=d.ce(b):d.e(b)&&(a[c]=d.Db(b))});return a};d.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};d.ce=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+
31
+ "-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};d.o=function(a){return function(){try{return a.apply(this,arguments)}catch(b){o.L("Implementation error. Please turn on debug and contact support@mixpanel.com."),G&&o.L(b)}}};d.ve=function(a){for(var b=["identify","_check_and_handle_notifications","_show_notification"],c=0;c<b.length;c++)a.prototype[b[c]]=d.o(a.prototype[b[c]])};d.ef=function(a){for(var b in a)"function"===typeof a[b]&&
32
+ (a[b]=d.o(a[b]))};d.ab=function(a){var b={};d.a(a,function(a,h){d.ua(a)&&0<a.length&&(b[h]=a)});return b};d.truncate=function(a,b){var c;"string"===typeof a?c=a.slice(0,b):d.isArray(a)?(c=[],d.a(a,function(a){c.push(d.truncate(a,b))})):d.e(a)?(c={},d.a(a,function(a,i){c[i]=d.truncate(a,b)})):c=a;return c};d.Ea=function(){return function(a){function b(a,d){var g="",m=0,j=m="",j=0,v=g,e=[],f=d[a];f&&"object"===typeof f&&"function"===typeof f.toJSON&&(f=f.toJSON(a));switch(typeof f){case "string":return c(f);
33
+ case "number":return isFinite(f)?""+f:"null";case "boolean":case "null":return""+f;case "object":if(!f)return"null";g+=" ";e=[];if("[object Array]"===V.apply(f)){j=f.length;for(m=0;m<j;m+=1)e[m]=b(m,f)||"null";return j=0===e.length?"[]":g?"[\n"+g+e.join(",\n"+g)+"\n"+v+"]":"["+e.join(",")+"]"}for(m in f)ba.call(f,m)&&(j=b(m,f))&&e.push(c(m)+(g?": ":":")+j);return j=0===e.length?"{}":g?"{"+e.join(",")+""+v+"}":"{"+e.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,
34
+ c={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=c[a];return"string"===typeof b?b:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();d.ka=function(){function a(){switch(j){case "t":return i("t"),i("r"),i("u"),i("e"),p;case "f":return i("f"),i("a"),i("l"),i("s"),i("e"),F;case "n":return i("n"),i("u"),i("l"),i("l"),w}g('Unexpected "'+j+'"')}function b(){for(;j&&
35
+ " ">=j;)i()}function c(){var a,b,c="",d;if('"'===j)for(;i();){if('"'===j)return i(),c;if("\\"===j)if(i(),"u"===j){for(b=d=0;4>b;b+=1){a=parseInt(i(),16);if(!isFinite(a))break;d=16*d+a}c+=String.fromCharCode(d)}else if("string"===typeof e[j])c+=e[j];else break;else c+=j}g("Bad string")}function d(){var a;a="";"-"===j&&(a="-",i("-"));for(;"0"<=j&&"9">=j;)a+=j,i();if("."===j)for(a+=".";i()&&"0"<=j&&"9">=j;)a+=j;if("e"===j||"E"===j){a+=j;i();if("-"===j||"+"===j)a+=j,i();for(;"0"<=j&&"9">=j;)a+=j,i()}a=
36
+ +a;if(isFinite(a))return a;g("Bad number")}function i(a){a&&a!==j&&g("Expected '"+a+"' instead of '"+j+"'");j=f.charAt(m);m+=1;return j}function g(a){a=new SyntaxError(a);a.bf=m;a.text=f;l(a)}var m,j,e={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},f,A;A=function(){b();switch(j){case "{":var m;a:{var e,f={};if("{"===j){i("{");b();if("}"===j){i("}");m=f;break a}for(;j;){e=c();b();i(":");Object.hasOwnProperty.call(f,e)&&g('Duplicate key "'+e+'"');f[e]=A();b();if("}"===j){i("}");
37
+ m=f;break a}i(",");b()}}g("Bad object")}return m;case "[":a:{m=[];if("["===j){i("[");b();if("]"===j){i("]");e=m;break a}for(;j;){m.push(A());b();if("]"===j){i("]");e=m;break a}i(",");b()}}g("Bad array")}return e;case '"':return c();case "-":return d();default:return"0"<=j&&"9">=j?d():a()}};return function(a){f=a;m=0;j=" ";a=A();b();j&&g("Syntax error");return a}}();d.Qd=function(a){var b,c,h,i,g=0,m=0,j="",j=[];if(!a)return a;a=d.Ye(a);do b=a.charCodeAt(g++),c=a.charCodeAt(g++),h=a.charCodeAt(g++),
38
+ i=b<<16|c<<8|h,b=i>>18&63,c=i>>12&63,h=i>>6&63,i&=63,j[m++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(c)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(h)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(i);while(g<a.length);j=j.join("");switch(a.length%3){case 1:j=j.slice(0,-2)+"==";break;case 2:j=j.slice(0,-1)+"="}return j};d.Ye=function(a){var a=
39
+ (a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",c,d,i=0,g;c=d=0;i=a.length;for(g=0;g<i;g++){var m=a.charCodeAt(g),j=w;128>m?d++:j=127<m&&2048>m?String.fromCharCode(m>>6|192,m&63|128):String.fromCharCode(m>>12|224,m>>6&63|128,m&63|128);j!==w&&(d>c&&(b+=a.substring(c,d)),b+=j,c=d=g+1)}d>c&&(b+=a.substring(c,a.length));return b};d.Yb=function(){function a(){function a(b,c){var d,h=0;for(d=0;d<c.length;d++)h|=g[d]<<8*d;return b^h}var b,d,g=[],m=0;for(b=0;b<z.length;b++)d=z.charCodeAt(b),g.unshift(d&
40
+ 255),4<=g.length&&(m=a(m,g),g=[]);0<g.length&&(m=a(m,g));return m.toString(16)}function b(){for(var a=1*new Date,b=0;a==1*new Date;)b++;return a.toString(16)+b.toString(16)}return function(){var c=(ca.height*ca.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+c+"-"+b()}}();var Fa="ahrefsbot,baiduspider,bingbot,bingpreview,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(",");
41
+ d.Ic=function(a){var b,a=a.toLowerCase();for(b=0;b<Fa.length;b++)if(-1!==a.indexOf(Fa[b]))return p;return F};d.ud=function(a){var b,c,h,i=[];d.g(b)&&(b="&");d.a(a,function(a,b){c=encodeURIComponent(a.toString());h=encodeURIComponent(b);i[i.length]=h+"="+c});return i.join(b)};d.Cc=function(a,b){var b=b.replace(/[[]/,"\\[").replace(/[\]]/,"\\]"),c=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);if(c===w||c&&"string"!==typeof c[1]&&c[1].length)return"";c=c[1];try{c=decodeURIComponent(c)}catch(d){o.error("Skipping decoding for malformed query param: "+
42
+ c)}return c.replace(/\+/g," ")};d.cookie={get:function(a){for(var a=a+"=",b=s.cookie.split(";"),c=0;c<b.length;c++){for(var d=b[c];" "==d.charAt(0);)d=d.substring(1,d.length);if(0===d.indexOf(a))return decodeURIComponent(d.substring(a.length,d.length))}return w},parse:function(a){var b;try{b=d.ka(d.cookie.get(a))||{}}catch(c){}return b},ff:function(a,b,c,d,i,g,m){var j="",e="",f="";m?j="; domain="+m:d&&(j=(j=ya(s.location.hostname))?"; domain=."+j:"");c&&(e=new Date,e.setTime(e.getTime()+1E3*c),e=
43
+ "; expires="+e.toGMTString());g&&(i=p,f="; SameSite=None");i&&(f+="; secure");s.cookie=a+"="+encodeURIComponent(b)+e+"; path=/"+j+f},set:function(a,b,c,d,i,g,e){var j="",f="",C="";e?j="; domain="+e:d&&(j=(j=ya(s.location.hostname))?"; domain=."+j:"");c&&(f=new Date,f.setTime(f.getTime()+864E5*c),f="; expires="+f.toGMTString());g&&(i=p,C="; SameSite=None");i&&(C+="; secure");a=a+"="+encodeURIComponent(b)+f+"; path=/"+j+C;return s.cookie=a},remove:function(a,b,c){d.cookie.set(a,"",-1,b,F,F,c)}};var la=
44
+ w;d.localStorage={Ua:function(a){(a=ka(w,a))||o.error("localStorage unsupported; falling back to cookie store");return a},error:function(a){o.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){d.localStorage.error(b)}return w},parse:function(a){try{return d.ka(d.localStorage.get(a))||{}}catch(b){}return w},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(c){d.localStorage.error(c)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){d.localStorage.error(b)}}};
45
+ d.ea=function(){function a(a,h,i){return function(g){if(g=g||b(window.event)){var e=p,j;d.Mb(i)&&(j=i(g));g=h.call(a,g);if(F===j||F===g)e=F;return e}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=F};b.stopPropagation=function(){this.cancelBubble=p};return function(b,d,i,g,e){b?b.addEventListener&&!g?b.addEventListener(d,i,!!e):(d="on"+d,b[d]=a(b,i,b[d])):o.error("No valid element provided to register_event")}}();
46
+ var Ya=/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/;d.$d=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(c," ").indexOf(" "+b+" ")}function b(b){if(!s.getElementsByTagName)return[];var b=b.split(" "),c,g,e,j,f,C,A,r=[s];for(j=0;j<b.length;j++)if(c=b[j].replace(/^\s+/,"").replace(/\s+$/,""),-1<c.indexOf("#")){g=c.split("#");c=g[0];r=s.getElementById(g[1]);if(!r||c&&r.nodeName.toLowerCase()!=c)return[];r=[r]}else if(-1<c.indexOf(".")){g=c.split(".");c=g[0];var D=g[1];c||(c="*");
47
+ g=[];for(f=e=0;f<r.length;f++){A="*"==c?r[f].all?r[f].all:r[f].getElementsByTagName("*"):r[f].getElementsByTagName(c);for(C=0;C<A.length;C++)g[e++]=A[C]}r=[];for(f=c=0;f<g.length;f++)g[f].className&&d.ua(g[f].className)&&a(g[f],D)&&(r[c++]=g[f])}else if(g=c.match(Ya)){c=g[1];var o=g[2],D=g[3],k=g[4];c||(c="*");g=[];for(f=e=0;f<r.length;f++){A="*"==c?r[f].all?r[f].all:r[f].getElementsByTagName("*"):r[f].getElementsByTagName(c);for(C=0;C<A.length;C++)g[e++]=A[C]}r=[];c=0;switch(D){case "=":D=function(a){return a.getAttribute(o)==
48
+ k};break;case "~":D=function(a){return a.getAttribute(o).match(RegExp("\\b"+k+"\\b"))};break;case "|":D=function(a){return a.getAttribute(o).match(RegExp("^"+k+"-?"))};break;case "^":D=function(a){return 0===a.getAttribute(o).indexOf(k)};break;case "$":D=function(a){return a.getAttribute(o).lastIndexOf(k)==a.getAttribute(o).length-k.length};break;case "*":D=function(a){return-1<a.getAttribute(o).indexOf(k)};break;default:D=function(a){return a.getAttribute(o)}}r=[];for(f=c=0;f<g.length;f++)D(g[f])&&
49
+ (r[c++]=g[f])}else{g=[];for(f=e=0;f<r.length;f++){A=r[f].getElementsByTagName(c);for(C=0;C<A.length;C++)g[e++]=A[C]}r=g}return r}var c=/[\t\r\n]/g;return function(a){return d.le(a)?[a]:d.e(a)&&!d.g(a.length)?a:b.call(this,a)}}();d.info={Ud:function(){var a="",b={};d.a("utm_source utm_medium utm_campaign utm_content utm_term".split(" "),function(c){a=d.Cc(s.URL,c);a.length&&(b[c]=a)});return b},we:function(a){return 0===a.search("https?://(.*)google.([^/?]*)")?"google":0===a.search("https?://(.*)bing.com")?
50
+ "bing":0===a.search("https?://(.*)yahoo.com")?"yahoo":0===a.search("https?://(.*)duckduckgo.com")?"duckduckgo":w},xe:function(a){var b=d.info.we(a),c={};if(b!==w)c.$search_engine=b,a=d.Cc(a,"yahoo"!=b?"q":"p"),a.length&&(c.mp_keyword=a);return c},sa:function(a,b,c){return c||d.i(a," OPR/")?d.i(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":d.i(a,"IEMobile")||d.i(a,"WPDesktop")?"Internet Explorer Mobile":d.i(a,"SamsungBrowser/")?"Samsung Internet":d.i(a,"Edge")||
51
+ d.i(a,"Edg/")?"Microsoft Edge":d.i(a,"FBIOS")?"Facebook Mobile":d.i(a,"Chrome")?"Chrome":d.i(a,"CriOS")?"Chrome iOS":d.i(a,"UCWEB")||d.i(a,"UCBrowser")?"UC Browser":d.i(a,"FxiOS")?"Firefox iOS":d.i(b||"","Apple")?d.i(a,"Mobile")?"Mobile Safari":"Safari":d.i(a,"Android")?"Android Mobile":d.i(a,"Konqueror")?"Konqueror":d.i(a,"Firefox")?"Firefox":d.i(a,"MSIE")||d.i(a,"Trident/")?"Internet Explorer":d.i(a,"Gecko")?"Mozilla":""},Ab:function(a,b,c){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge?\/(\d+(\.\d+)?)/,
55
52
  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+)?)/,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+)?)/,
56
- Mozilla:/rv:(\d+(\.\d+)?)/}[d.info.sa(a,b,c)];if(b===l)return w;a=a.match(b);return!a?w:parseFloat(a[a.length-2])},Rb:function(){return/Windows/i.test(y)?/Phone/.test(y)||/WPDesktop/.test(y)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(y)?"iOS":/Android/.test(y)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(y)?"BlackBerry":/Mac/i.test(y)?"Mac OS X":/Linux/.test(y)?"Linux":/CrOS/.test(y)?"Chrome OS":""},Gc:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?
57
- "iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},Zc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},ya:function(){return d.extend(d.gb({$os:d.info.Rb(),$browser:d.info.sa(y,I.vendor,Y),$referrer:t.referrer,$referring_domain:d.info.Zc(t.referrer),$device:d.info.Gc(y)}),{$current_url:B.location.href,$browser_version:d.info.Db(y,I.vendor,Y),$screen_height:ha.height,$screen_width:ha.width,mp_lib:"web",
58
- $lib_version:"2.40.0",$insert_id:oa(),time:d.timestamp()/1E3})},Ie:function(){return d.extend(d.gb({$os:d.info.Rb(),$browser:d.info.sa(y,I.vendor,Y)}),{$browser_version:d.info.Db(y,I.vendor,Y)})},Ge:function(a){return d.gb({mp_page:a,mp_referrer:t.referrer,mp_browser:d.info.sa(y,I.vendor,Y),mp_platform:d.info.Rb()})}};var eb=d.o(function(a,b,c){for(var a=a+b,b=5381,d=0;d<a.length;d++)b=(b<<5)+b+a.charCodeAt(d),b&=b;return(b>>>0)%100<c}),Pa=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Oa=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,
59
- ia=w,ja=w;if("undefined"!==typeof JSON)ia=JSON.stringify,ja=JSON.parse;ia=ia||d.Ha;ja=ja||d.ka;d.toArray=d.Ba;d.isObject=d.e;d.JSONEncode=d.Ha;d.JSONDecode=d.ka;d.isBlockedUA=d.Oc;d.isEmptyObject=d.X;d.info=d.info;d.info.device=d.info.Gc;d.info.browser=d.info.sa;d.info.browserVersion=d.info.Db;d.info.properties=d.info.ya;var V={jc:[],Yd:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a},Ud:function(a,b){var c=document.createElement("script");
60
- c.type="text/javascript";c.src=a;c.onload=b;var d=document.getElementsByTagName("script");0<d.length?d[0].parentNode.insertBefore(c,d[0]):document.body.appendChild(c)},Od:function(a){var b={classes:ba(a).split(" "),tag_name:a.tagName.toLowerCase()};ca(a)&&d.a(a.attributes,function(a){if(da(a.value))b["attr__"+a.name]=a.value});for(var c=1,f=1,h=a;h=this.Yd(h);)c++,h.tagName===a.tagName&&f++;b.nth_child=c;b.nth_of_type=f;return b},gc:function(a){return{$event_type:a,$ce_version:1,$host:window.location.host,
61
- $pathname:window.location.pathname}},Jd:function(a){var b=[];d.a(document.querySelectorAll(a.css_selector),function(a){var d;-1<["input","select"].indexOf(a.tagName.toLowerCase())?d=a.value:a.textContent&&(d=a.textContent);da(d)&&b.push(d)});return b.join(", ")},Md:function(a){var b={};d.a(this.cc,function(c){d.a(c.event_selectors,function(f){f=document.querySelectorAll(f);d.a(f,function(f){d.h(a,f)&&ca(f)&&(b[c.name]=this.Jd(c))},this)},this)},this);return b},Nd:function(a){return"undefined"===typeof a.target?
62
- a.srcElement:a.target},ae:function(a,b){var c=this.Nd(a);if(c&&3===c.nodeType)c=c.parentNode;if(Ra(c,a)){for(var f=[c],h=c;h.parentNode&&!S(h,"body");)f.push(h.parentNode),h=h.parentNode;var i=[],g,e=F;d.a(f,function(a){var b=ca(a);"a"===a.tagName.toLowerCase()&&(g=a.getAttribute("href"),g=b&&da(g)&&g);b=ba(a).split(" ");d.h(b,"mp-no-track")&&(e=n);i.push(this.Od(a))},this);if(e)return F;var s;(c=Qa(c))&&c.length&&(s=c);f=d.extend(this.gc(a.type),{$elements:i,$el_attr__href:g,$el_text:s},this.Md(f));
63
- b.p("$web_event",f);return n}},uf:function(a){window.location.href=a},Dd:function(a){var b=d.bind(function(b){b=b||window.event;this.ae(b,a)},this);d.L(document,"submit",b,F,n);d.L(document,"change",b,F,n);d.L(document,"click",b,F,n)},cc:{},ea:function(a){if(!document||!document.body){console.log("document not ready yet, trying again in 500 milliseconds...");var b=this;setTimeout(function(){b.ea(a)},500)}else{var c=a.c("token");if(-1<this.jc.indexOf(c))console.log('autotrack already initialized for token "'+
64
- c+'"');else if(this.jc.push(c),!this.Wd(a)){var f=d.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===n){if(b.custom_properties)this.cc=b.custom_properties;a.p("$web_event",d.extend({$title:document.title},this.gc("pageview")));this.Dd(a)}else a.__autotrack_enabled=F},this);a.l(a.c("api_host")+"/decide/",{verbose:n,version:"1",lib:"web",token:c},{method:"GET",Ca:"XHR"},a.Na(f))}}},dc:function(a,b){var c;try{var f=d.ta(b,"state"),f=JSON.parse(decodeURIComponent(f)),h=d.ta(b,"expires_in");
65
- c={accessToken:d.ta(b,"access_token"),accessTokenExpiresAt:(new Date).getTime()+1E3*Number(h),bookmarkletMode:!!f.bookmarkletMode,projectId:f.projectId,projectOwnerId:f.projectOwnerId,projectToken:f.token,readOnly:f.readOnly,userFlags:f.userFlags,userId:f.userId};window.sessionStorage.setItem("editorParams",JSON.stringify(c));f.desiredHash?window.location.hash=f.desiredHash:window.history?history.replaceState("",document.title,window.location.pathname+window.location.search):window.location.hash=
66
- ""}catch(i){console.error("Unable to parse data from hash",i)}return c},Wd:function(a){try{var b=F;if(d.ta(window.location.hash,"state"))var c=d.ta(window.location.hash,"state"),c=JSON.parse(decodeURIComponent(c)),b="mpeditor"===c.action;var f=!!window.sessionStorage.getItem("_mpcehash"),h;b?h=this.dc(a,window.location.hash):f?(h=this.dc(a,window.sessionStorage.getItem("_mpcehash")),window.sessionStorage.removeItem("_mpcehash")):h=JSON.parse(window.sessionStorage.getItem("editorParams")||"{}");return h.projectToken&&
67
- a.c("token")===h.projectToken?(this.Td(a,h),n):F}catch(i){return F}},Td:function(a,b){return!window._mpEditorLoaded?(window._mpEditorLoaded=n,this.Ud(a.c("app_host")+"/js-bundle/reports/collect-everything/editor.js?_ts="+(new Date).getTime(),function(){window.mp_load_editor(b)}),n):F},re:function(a,b,c){for(var b=!d.g(b)?b:10,c=!d.g(c)?c:10,f=0,h=0;h<a.length;h++)f+=a.charCodeAt(h);return f%b<c},Be:function(){return d.Ya(document.querySelectorAll)}};d.vc(V);d.Ne(V);H.prototype.Ta=function(){};H.prototype.Ib=
68
- function(){};H.prototype.Ab=function(){};H.prototype.ea=function(a){this.Sc=a;return this};H.prototype.p=function(a,b,c,f){var h=this,i=d.pe(a);if(0===i.length)p.error("The DOM query ("+a+") returned 0 elements");else return d.a(i,function(a){d.L(a,this.Vc,function(a){var d={},i=h.Ta(c,this),g=h.Sc.c("track_links_timeout");h.Ib(a,this,d);window.setTimeout(h.pd(f,i,d,n),g);h.Sc.p(b,i,h.pd(f,i,d))})},this),n};H.prototype.pd=function(a,b,c,d){var d=d||F,h=this;return function(){if(!c.he)c.he=n,a&&a(d,
69
- b)===F||h.Ab(b,c,d)}};H.prototype.Ta=function(a,b){return"function"===typeof a?a(b):d.extend({},a)};d.Nc(R,H);R.prototype.Ta=function(a,b){var c=R.df.Ta.apply(this,arguments);if(b.href)c.url=b.href;return c};R.prototype.Ib=function(a,b,c){c.Tc=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Tc||a.preventDefault()};R.prototype.Ab=function(a,b){b.Tc||setTimeout(function(){window.location=b.href},0)};d.Nc(aa,H);aa.prototype.Ib=function(a,b,c){c.element=b;a.preventDefault()};aa.prototype.Ab=
70
- function(a,b){setTimeout(function(){b.element.submit()},0)};var fb=ra("lock");Ca.prototype.Yb=function(a,b,c){function d(){m.setItem(u,"1");try{a()}finally{m.removeItem(u),m.getItem(t)===s&&m.removeItem(t),m.getItem(q)===s&&m.removeItem(q)}}function h(){m.setItem(q,s);g(i,function(){m.getItem(q)===s?d():e(function(){m.getItem(t)!==s?h():g(function(){return!m.getItem(u)},d)})})}function i(){var a=m.getItem(t);if(a&&a!==s)return F;m.setItem(t,s);if(m.getItem(t)===s)return n;pa(m,n)||k(Error("localStorage support dropped while acquiring lock"));
71
- return F}function g(a,b){a()?b():e(function(){g(a,b)})}function e(a){(new Date).getTime()-p>D?(fb.error("Timeout waiting for mutex on "+z+"; clearing lock. ["+s+"]"),m.removeItem(u),m.removeItem(t),h()):setTimeout(function(){try{a()}catch(c){b&&b(c)}},r*(Math.random()+0.1))}!c&&"function"!==typeof b&&(c=b,b=w);var s=c||(new Date).getTime()+"|"+Math.random(),p=(new Date).getTime(),z=this.Aa,r=this.Yc,D=this.nd,m=this.i,q=z+":X",t=z+":Y",u=z+":Z";try{pa(m,n)?h():k(Error("localStorage support check failed"))}catch(v){b&&
72
- b(v)}};var J=ra("batch");M.prototype.Hb=function(a,b,c){var f={id:oa(),flushAfter:(new Date).getTime()+2*b,payload:a};this.Ob.Yb(d.bind(function(){var b;try{var d=this.ab();d.push(f);(b=this.Ub(d))&&this.Y.push(f)}catch(g){J.error("Error enqueueing item",a),b=F}c&&c(b)},this),function(a){J.error("Error acquiring storage lock",a);c&&c(F)},this.$a)};M.prototype.se=function(a){var b=this.Y.slice(0,a);if(b.length<a){var c=this.ab();if(c.length){var f={};d.a(b,function(a){f[a.id]=n});for(var h=0;h<c.length;h++){var i=
73
- c[h];if((new Date).getTime()>i.flushAfter&&!f[i.id]&&(i.Fe=n,b.push(i),b.length>=a))break}}}return b};M.prototype.Je=function(a,b){var c={};d.a(a,function(a){c[a]=n});this.Y=Ba(this.Y,c);this.Ob.Yb(d.bind(function(){var d;try{var h=this.ab(),h=Ba(h,c);d=this.Ub(h)}catch(i){J.error("Error removing items",a),d=F}b&&b(d)},this),function(a){J.error("Error acquiring storage lock",a);b&&b(F)},this.$a)};M.prototype.nf=function(a){this.Y=Aa(this.Y,a);this.Ob.Yb(d.bind(function(){try{var b=this.ab(),b=Aa(b,
74
- a);this.Ub(b)}catch(c){J.error("Error updating items",a)}},this),function(a){J.error("Error acquiring storage lock",a)},this.$a)};M.prototype.ab=function(){var a;try{if(a=this.i.getItem(this.Aa))a=ja(a),d.isArray(a)||(J.error("Invalid storage entry:",a),a=w)}catch(b){J.error("Error retrieving queue",b),a=w}return a||[]};M.prototype.Ub=function(a){try{return this.i.setItem(this.Aa,ia(a)),n}catch(b){return J.error("Error saving queue",b),F}};M.prototype.clear=function(){this.Y=[];this.i.removeItem(this.Aa)};
75
- var O=ra("batch");G.prototype.Hb=function(a,b){this.za.Hb(a,this.Va,b)};G.prototype.start=function(){this.fb=F;this.flush()};G.prototype.stop=function(){this.fb=n;if(this.Wb)clearTimeout(this.Wb),this.Wb=w};G.prototype.clear=function(){this.za.clear()};G.prototype.bd=function(){this.qa=this.R.batch_size};G.prototype.bb=function(){this.cd(this.R.batch_flush_interval_ms)};G.prototype.cd=function(a){this.Va=a;if(!this.fb)this.Wb=setTimeout(d.bind(this.flush,this),this.Va)};G.prototype.flush=function(a){try{if(this.ad)O.log("Flush: Request already in progress");
76
- else{var a=a||{},b=this.R.batch_request_timeout_ms,c=(new Date).getTime(),f=this.qa,h=this.za.se(f),i=[],g={};d.a(h,function(a){var b=a.payload;this.Oa&&!a.Fe&&(b=this.Oa(b));b&&i.push(b);g[a.id]=b},this);if(1>i.length)this.bb();else{this.ad=n;var e=d.bind(function(i){this.ad=F;try{var e=F;if(a.rd)this.za.nf(g);else if(d.e(i)&&"timeout"===i.error&&(new Date).getTime()-c>=b)O.error("Network timeout; retrying"),this.flush();else if(d.e(i)&&i.ja&&(500<=i.ja.status||0>=i.ja.status)){var j=2*this.Va,s=
77
- i.ja.responseHeaders;if(s){var m=s["Retry-After"];m&&(j=1E3*parseInt(m,10)||j)}j=Math.min(6E5,j);O.error("Error; retry in "+j+" ms");this.cd(j)}else if(d.e(i)&&i.ja&&413===i.ja.status)if(1<h.length){var p=Math.max(1,Math.floor(f/2));this.qa=Math.min(this.qa,p,h.length-1);O.error("413 response; reducing batch size to "+this.qa);this.bb()}else O.error("Single-event request too large; dropping",h),this.bd(),e=n;else e=n;e&&this.za.Je(d.map(h,function(a){return a.id}),d.bind(this.flush,this))}catch(q){O.error("Error handling API response",
78
- q),this.bb()}},this),s={method:"POST",wd:n,ye:n,od:b};if(a.rd)s.Ca="sendBeacon";O.log("MIXPANEL REQUEST:",i);this.Re(i,s,e)}}}catch(m){O.error("Error flushing request queue",m),this.bb()}};var Xa="__mp_opt_in_out_",E={ed:function(a,b){var c={},f={};d.e(a)?d.a(a,function(a,b){this.O(b)||(f[b]=a)},this):f[a]=b;c.$set=f;return c},sd:function(a){var b={},c=[];d.isArray(a)||(a=[a]);d.a(a,function(a){this.O(a)||c.push(a)},this);b.$unset=c;return b},hd:function(a,b){var c={},f={};d.e(a)?d.a(a,function(a,
79
- b){this.O(b)||(f[b]=a)},this):f[a]=b;c.$set_once=f;return c},qd:function(a,b){var c={},f={};d.e(a)?d.a(a,function(a,b){this.O(b)||(f[b]=d.isArray(a)?a:[a])},this):f[a]=d.isArray(b)?b:[b];c.$union=f;return c},ee:function(a,b){var c={},f={};d.e(a)?d.a(a,function(a,b){this.O(b)||(f[b]=a)},this):f[a]=b;c.$append=f;return c},$c:function(a,b){var c={},f={};d.e(a)?d.a(a,function(a,b){this.O(b)||(f[b]=a)},this):f[a]=b;c.$remove=f;return c},xf:function(){return{$delete:""}}};d.extend(u.prototype,E);u.prototype.pa=
80
- function(a,b,c){this.d=a;this.ub=b;this.tb=c};u.prototype.set=T(function(a,b,c){var f=this.ed(a,b);d.e(a)&&(c=b);return this.l(f,c)});u.prototype.eb=T(function(a,b,c){var f=this.hd(a,b);d.e(a)&&(c=b);return this.l(f,c)});u.prototype.jb=T(function(a,b){return this.l(this.sd(a),b)});u.prototype.Da=T(function(a,b,c){d.e(a)&&(c=b);return this.l(this.qd(a,b),c)});u.prototype["delete"]=T(function(a){return this.l({$delete:""},a)});u.prototype.remove=T(function(a,b,c){return this.l(this.$c(a,b),c)});u.prototype.l=
81
- function(a,b){a.$group_key=this.ub;a.$group_id=this.tb;a.$token=this.I("token");return this.d.zb({type:"groups",data:d.Gb(a),U:this.I("api_host")+"/groups/",Bb:this.d.z.xe},b)};u.prototype.O=function(a){return"$group_key"===a||"$group_id"===a};u.prototype.I=function(a){return this.d.c(a)};u.prototype.toString=function(){return this.d.toString()+".group."+this.ub+"."+this.tb};u.prototype.remove=u.prototype.remove;u.prototype.set=u.prototype.set;u.prototype.set_once=u.prototype.eb;u.prototype.union=
82
- u.prototype.Da;u.prototype.unset=u.prototype.jb;u.prototype.toString=u.prototype.toString;var gb="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__cmpns,__timers".split(",");q.prototype.ya=function(){var a={};d.a(this.props,function(b,c){d.Lc(gb,c)||(a[c]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=this.i.parse(this.name);a&&(this.props=d.extend({},a))}};q.prototype.pf=function(a){var b=a.upgrade,c;if(b)c="mp_super_properties","string"===typeof b&&
83
- (c=b),b=this.i.parse(c),this.i.remove(c),this.i.remove(c,n),b&&(this.props=d.extend(this.props,b.all,b.events));if(!a.cookie_name&&"mixpanel"!==a.name&&(c="mp_"+a.token+"_"+a.name,b=this.i.parse(c)))this.i.remove(c),this.i.remove(c,n),this.H(b);this.i===d.localStorage&&(b=d.cookie.parse(this.name),d.cookie.remove(this.name),d.cookie.remove(this.name,n),b&&this.H(b))};q.prototype.save=function(){this.disabled||(this.Id(),this.i.set(this.name,d.Ha(this.props),this.Jb,this.Eb,this.dd,this.Dc,this.Sa))};
84
- q.prototype.remove=function(){this.i.remove(this.name,F,this.Sa);this.i.remove(this.name,n,this.Sa)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.H=function(a,b,c){return d.e(a)?("undefined"===typeof b&&(b="None"),this.Jb="undefined"===typeof c?this.Ec:c,d.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),n):F};q.prototype.w=function(a,b){return d.e(a)?(this.Jb="undefined"===typeof b?this.Ec:b,d.extend(this.props,a),this.save(),
85
- n):F};q.prototype.Ea=function(a){a in this.props&&(delete this.props[a],this.save())};q.prototype.Id=d.o(function(){var a=this.props.__cmpns,b=L?6E4:36E5;if(a){for(var c in a)1*new Date-a[c]>b&&delete a[c];d.X(a)&&delete this.props.__cmpns}});q.prototype.of=function(){if(!this.wc)this.H(d.info.je()),this.wc=n};q.prototype.ud=function(a){this.w(d.info.Pe(a))};q.prototype.Xb=function(a){this.H({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.Zc(a)||"$direct"},"")};q.prototype.we=function(){return d.gb({$initial_referrer:this.props.$initial_referrer,
86
- $initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.td=function(a){this.Ec=this.Jb=a.cookie_expiration;this.gd(a.disable_persistence);this.Ue(a.cookie_domain);this.Ve(a.cross_site_cookie);this.We(a.cross_subdomain_cookie);this.Ze(a.secure_cookie)};q.prototype.gd=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.Ue=function(a){if(a!==this.Sa)this.remove(),this.Sa=a,this.save()};q.prototype.Ve=function(a){if(a!==this.Dc)this.Dc=a,this.remove(),this.save()};
87
- q.prototype.We=function(a){if(a!==this.Eb)this.Eb=a,this.remove(),this.save()};q.prototype.ue=function(){return this.Eb};q.prototype.Ze=function(a){if(a!==this.dd)this.dd=a?n:F,this.remove(),this.save()};q.prototype.D=function(a,b){var c=this.sb(a),f=b[a],h=this.T("$set"),i=this.T("$set_once"),g=this.T("$unset"),e=this.T("$add"),s=this.T("$union"),m=this.T("$remove",[]),q=this.T("$append",[]);"__mps"===c?(d.extend(h,f),this.J("$add",f),this.J("$union",f),this.J("$unset",f)):"__mpso"===c?(d.a(f,function(a,
88
- b){b in i||(i[b]=a)}),this.J("$unset",f)):"__mpus"===c?d.a(f,function(a){d.a([h,i,e,s],function(b){a in b&&delete b[a]});d.a(q,function(b){a in b&&delete b[a]});g[a]=n}):"__mpa"===c?(d.a(f,function(a,b){b in h?h[b]+=a:(b in e||(e[b]=0),e[b]+=a)},this),this.J("$unset",f)):"__mpu"===c?(d.a(f,function(a,b){d.isArray(a)&&(b in s||(s[b]=[]),s[b]=s[b].concat(a))}),this.J("$unset",f)):"__mpr"===c?(m.push(f),this.J("$append",f)):"__mpap"===c&&(q.push(f),this.J("$unset",f));p.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");
89
- p.log(b);this.save()};q.prototype.J=function(a,b){var c=this.La(a);d.g(c)||(d.a(b,function(b,h){"$append"===a||"$remove"===a?d.a(c,function(a){a[h]===b&&delete a[h]}):delete c[h]},this),this.save())};q.prototype.sb=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";p.error("Invalid queue:",a)};q.prototype.La=function(a){return this.props[this.sb(a)]};
90
- q.prototype.T=function(a,b){var c=this.sb(a),b=d.g(b)?{}:b;return this.props[c]||(this.props[c]=b)};q.prototype.Xe=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};q.prototype.Ke=function(a){var b=(this.props.__timers||{})[a];d.g(b)||(delete this.props.__timers[a],this.save());return b};g.Z=200;g.B="mixpanel-notification";g.Ga=0.6;g.N=25;g.Ia=200;g.la=388;g.lb=420;g.C=85;g.mb=5;g.S=60;g.nb=Math.round(g.S/2);g.Cd=595;g.Bd=334;g.prototype.show=function(){var a=
91
- this;this.pc();this.s?(this.Rd(),this.Qd(),this.Xd(this.Ed)):setTimeout(function(){a.show()},300)};g.prototype.Fb=d.o(function(){this.Qc||this.lc({invisible:n});var a=this.af?this.k("video"):this.ca();if(this.vd)this.Zd("bg","visible"),this.$(a,"exiting"),setTimeout(this.nc,g.Z);else{var b,c,d;this.v?(b="right",c=20,d=-100):(b="top",c=g.N,d=g.Ia+g.N);this.Ja([{u:this.k("bg"),q:"opacity",start:g.Ga,m:0},{u:a,q:"opacity",start:1,m:0},{u:a,q:b,start:c,m:d}],g.Z,this.nc)}});g.prototype.$=d.o(function(a,
92
- b){b=g.B+"-"+b;"string"===typeof a&&(a=this.k(a));a.className?~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=b});g.prototype.Zd=d.o(function(a,b){b=g.B+"-"+b;"string"===typeof a&&(a=this.k(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});g.prototype.Ja=d.o(function(a,b,c,d){var h=this,i=F,g,e;g=1*new Date;var s,d=d||g;s=g-d;for(g=0;g<a.length;g++){e=a[g];if("undefined"===typeof e.M)e.M=e.start;
93
- if(e.M!==e.m){var i=n,m=e.m>=e.start?1:-1;e.M=e.start+(e.m-e.start)*s/b;if("opacity"!==e.q)e.M=Math.round(e.M);if(0<m&&e.M>=e.m||0>m&&e.M<=e.m)e.M=e.m}}if(i){for(g=0;g<a.length;g++)e=a[g],e.u&&(e.u.style[e.q]=""+e.M+("opacity"===e.q?"":"px"));setTimeout(function(){h.Ja(a,b,c,d)},10)}else c&&c()});g.prototype.Ed=d.o(function(){var a=this;if(!this.bf&&!this.hc()[this.K])this.bf=n,this.s.appendChild(this.xa),setTimeout(function(){var b=a.ca();if(a.vd)a.v||a.$("bg","visible"),a.$(b,"visible"),a.kc();
94
- else{var c,d,h;a.v?(c="right",d=-100,h=20):(c="top",d=g.Ia+g.N,h=g.N);a.Ja([{u:a.k("bg"),q:"opacity",start:0,m:g.Ga},{u:b,q:"opacity",start:0,m:1},{u:b,q:c,start:d,m:h}],g.Z,a.kc)}},100),d.L(a.k("cancel"),"click",function(b){b.preventDefault();a.Fb()}),d.L(a.k("button")||a.k("mini-content"),"click",function(b){b.preventDefault();a.ga?(a.yb("$campaign_open",{$resource_type:"video"}),a.$d()):(a.Fb(),a.Ra&&(b=w,a.fa.c("inapp_link_new_window")?window.open(a.da):b=function(){window.location.href=a.da},
95
- a.yb("$campaign_open",{$resource_type:"link"},b)))})});g.prototype.k=function(a){return document.getElementById(g.B+"-"+a)};g.prototype.ca=function(){return this.k(this.wa)};g.prototype.hc=function(){return this.Sb.props.__cmpns||(this.Sb.props.__cmpns={})};g.prototype.Vd=d.o(function(a){for(var b=a.event||"",c=0;c<this.Hc.length;c++){var f=this.Hc[c];if("$any_event"===(f.event||"")||b===f.event)if(f.selector&&!d.X(f.selector)){if(v(f.selector,a.properties))return n}else return n}return F});g.prototype.aa=
96
- function(a,b){return this.F[a]&&this.F[a]<=b};g.prototype.Pd=function(){var a=[];this.v?(this.A=this.A||this.Qa+"/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.A)):(this.Nb?(a.push(this.Nb),this.Kc='<img id="img" src="'+this.Nb+'"/>'):this.Kc="",this.A?(a.push(this.A),this.md='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+this.A+'" width="'+g.S+'" height="'+g.S+'"/><div id="thumbspacer"></div>'):this.md="");return a};g.prototype.Qd=
97
- function(){var a="",b="",c="";this.xa=document.createElement("div");this.xa.id=g.B+"-wrapper";if(this.v)a='<div id="mini"><div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="mini-content"><div id="mini-icon"><div id="mini-icon-img"></div></div><div id="body"><div id="body-text"><div>'+this.body+'</div></div></div></div></div><div id="mini-border"></div></div>';else{var a=this.Ra||this.ga?"":'<div id="button-close"></div>',d=this.ga?'<div id="button-play"></div>':"";this.aa("ie",
98
- 7)&&(d=a="");a='<div id="takeover">'+this.md+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Kc+'<div id="title">'+this.title+'</div><div id="body">'+this.body+'</div><div id="tagline"><a href="http://mixpanel.com?from=inapp" target="_blank">POWERED BY MIXPANEL</a></div></div><div id="button">'+a+'<a id="button-link" href="'+this.da+'">'+this.le+"</a>"+d+"</div></div></div>"}this.yd?(b=this.cb+"www.youtube.com/embed/"+this.yd+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",
99
- this.zd&&(b+="&enablejsapi=1&html5=1&controls=0",c='<div id="video-controls"><div id="video-progress" class="video-progress-el"><div id="video-progress-total" class="video-progress-el"></div><div id="video-elapsed" class="video-progress-el"></div></div><div id="video-time" class="video-progress-el"></div></div>')):this.xd&&(b=this.cb+"player.vimeo.com/video/"+this.xd+"?autoplay=1&title=0&byline=0&portrait=0");if(this.ga)this.sf='<iframe id="'+g.B+'-video-frame" width="'+this.Fa+'" height="'+this.ia+
100
- '" src="'+b+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen="1" scrolling="no"></iframe>',c='<div id="video-'+(this.Kb?"":"no")+'flip"><div id="video"><div id="video-holder"></div>'+c+"</div></div>";b=c+a;this.Kb&&(b=(this.v?a:"")+'<div id="flipcontainer"><div id="flipper">'+(this.v?c:b)+"</div></div>");this.xa.innerHTML=('<div id="overlay" class="'+this.wa+'"><div id="campaignid-'+this.K+'"><div id="bgwrapper"><div id="bg"></div>'+b+"</div></div></div>").replace(/class="/g,
101
- 'class="'+g.B+"-").replace(/id="/g,'id="'+g.B+"-")};g.prototype.Rd=function(){this.j="dark"===this.style?{Cb:"#1d1f25",ra:"#282b32",Pa:"#3a4147",uc:"#4a5157",ge:"#32353c",xc:"0.4",Pb:"#2a3137",ib:"#fff",Vb:"#9498a3",ld:"#464851",hb:"#ddd"}:{Cb:"#fff",ra:"#e7eaee",Pa:"#eceff3",uc:"#f5f5f5",ge:"#e4ecf2",xc:"1.0",Pb:"#fafafa",ib:"#5c6578",Vb:"#8b949b",ld:"#ced9e6",hb:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,c=a,f=g.S+2*g.mb,h=g.Z/1E3+"s";this.v&&(a="none");var e={};e["@media only screen and (max-width: "+
102
- (g.lb+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},
103
- "#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.oe+"px","min-height":4*this.ne+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+h},"#bg.visible":{opacity:g.Ga},".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative",
104
- "transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:g.la+"px","margin-left":Math.round(-g.la/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:g.Ia+"px",transition:"opacity "+h+", top "+h},"#takeover.visible":{opacity:"1.0",top:g.N+"px"},"#takeover.exiting":{opacity:"0.0",top:g.Ia+"px"},"#thumbspacer":{height:g.nb+"px"},"#thumbborder-wrapper":{position:"absolute",top:-g.mb+"px",left:g.la/2-g.nb-g.mb+"px",width:f+"px",
105
- height:f/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:f+"px",height:f+"px","border-radius":f+"px","background-color":this.j.ra,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:g.la/2-g.nb+"px",width:g.S+"px",height:g.S+"px",overflow:"hidden","z-index":"100","border-radius":g.S+"px"},"#mini":{position:"absolute",right:"20px",top:g.N+"px",width:this.Ee+"px",height:2*g.C+"px","margin-top":20-g.C+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",
106
- transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.j.Cb,"font-size":"14px",color:this.j.Vb},"#mini #mainbox":{height:g.C+"px","margin-top":g.C+"px","border-radius":"3px",transition:"background-color "+h},"#mini-border":{height:g.C+6+"px",width:g.lb+6+"px",position:"absolute",top:"-3px",left:"-3px",
107
- "margin-top":g.C+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":c},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:g.C+"px","border-radius":"3px 0 0 3px","background-color":this.j.ra,background:"linear-gradient(135deg, "+this.j.uc+" 0%, "+this.j.ra+" 100%)",transition:"background-color "+h},"#mini:hover #mini-icon":{"background-color":this.j.Pb},"#mini:hover #mainbox":{"background-color":this.j.Pb},"#mini-icon-img":{position:"absolute",
108
- "background-image":"url("+this.A+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:g.C+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden","word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.j.ib},"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word",
109
- "line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:g.C+"px","font-size":"16px","letter-spacing":"0.8px",color:this.j.ib},"#mini #body-text":{display:"table",height:g.C+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.j.ld,
110
- transition:"color "+h},"#tagline a:hover":{color:this.j.hb},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+h},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url("+this.Qa+"/site_media/images/icons/notifications/cancel-x.png)",opacity:this.j.xc},"#cancel:hover":{"background-color":this.j.Pa},
111
- "#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.j.ra,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+h},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url("+this.Qa+"/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",
112
- width:"30px",height:"60px","margin-left":"15px","background-image":"url("+this.Qa+"/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.j.ib,transition:"color "+h},"#button:hover":{"background-color":this.j.Pa,color:this.j.hb},"#button:hover a":{color:this.j.hb},
113
- "#video-noflip":{position:"relative",top:2*-this.ia+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.Fa-1+"px",height:this.ia+"px",top:g.N+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.Fa/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+h+", top "+h},"#video.exiting":{opacity:"0.0",top:this.ia+"px"},"#video-holder":{position:"absolute",width:this.Fa-
114
- 1+"px",height:this.ia+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.Fa+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute",bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.j.Cb,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",
115
- opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.j.Vb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.aa("ie",8)&&d.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.aa("ie",7)&&d.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.j.Pa},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var b="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),
116
- c=["khtml","moz","ms","o","webkit"],o;for(o in a)for(f=0;f<b.length;f++)if(h=b[f],h in a[o])for(var j=a[o][h],s=0;s<c.length;s++)a[o]["-"+c[s]+"-"+h]=j;(function(a,b){function c(a){var b="",d;for(d in a){var f=d.replace(/#/g,"#"+g.B+"-").replace(/\./g,"."+g.B+"-"),b=b+("\n"+f+" {"),f=a[d],h;for(h in f)b+=h+":"+f[h]+";";b+="}"}return b}var d=c(a)+function(a){var b="",d;for(d in a)b+="\n"+d+" {"+c(a[d])+"\n}";return b}(b),f=document.head||document.getElementsByTagName("head")[0]||document.documentElement,
117
- h=document.createElement("style");f.appendChild(h);h.setAttribute("type","text/css");h.styleSheet?h.styleSheet.cssText=d:h.textContent=d})(a,e)};g.prototype.Sd=d.o(function(){if(this.kb){var a=this;a.zd="postMessage"in window;a.da=a.kb;var b=a.kb.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i),c=a.kb.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.ga=n,a.yd=b[1],a.zd)window.onYouTubeIframeAPIReady=function(){a.k("video-frame")&&a.sc()},b=document.createElement("script"),
118
- b.src=a.cb+"www.youtube.com/iframe_api",c=document.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.ga=n,a.xd=c[1];if(a.aa("ie",7)||a.aa("firefox",3))a.ga=F,a.Ra=n}});g.prototype.kc=d.o(function(){function a(a,b){var c={};if(document.defaultView&&document.defaultView.getComputedStyle)c=document.defaultView.getComputedStyle(a,w);else if(a.currentStyle)c=a.currentStyle;return c[b]}var b=this;d.L(b.k("bg"),"click",function(){b.Fb()});if(this.K){var c=this.k("overlay");c&&
119
- "hidden"!==a(c,"visibility")&&"none"!==a(c,"display")&&this.lc()}});g.prototype.lc=d.o(function(a){if(!this.Qc)this.Qc=n,this.K&&(this.hc()[this.K]=1*new Date,this.Sb.save()),this.yb("$campaign_delivery",a),this.fa.people.append({$campaigns:this.K,$notifications:{campaign_id:this.K,message_id:this.Rc,type:"web",time:new Date}})});g.prototype.Xd=function(a){var b=this;if(0===this.Xa.length)a();else{for(var c=0,d=[],h=function(){c++;c===b.Xa.length&&a&&(a(),a=w)},e=0;e<this.Xa.length;e++){var g=new Image;
120
- g.onload=h;g.src=this.Xa[e];g.complete&&h();d.push(g)}this.aa("ie",7)&&setTimeout(function(){var b=n;for(e=0;e<d.length;e++)d[e].complete||(b=F);b&&a&&(a(),a=w)},500)}};g.prototype.nc=d.o(function(){window.clearInterval(this.be);this.xa.style.visibility="hidden";this.s.removeChild(this.xa)});g.prototype.pc=function(){function a(a){if(a in d)return n;if(!c)for(var a=a[0].toUpperCase()+a.slice(1),a=["O"+a,"Webkit"+a,"Moz"+a],b=0;b<a.length;b++)if(a[b]in d)return n;return F}function b(a){return(a=navigator.userAgent.match(a))&&
121
- a[1]}this.F={};this.F.chrome=b(/Chrome\/(\d+)/);this.F.firefox=b(/Firefox\/(\d+)/);this.F.ie=b(/MSIE (\d+).+/);!this.F.ie&&!window.ActiveXObject&&"ActiveXObject"in window&&(this.F.ie=11);if(this.s=document.body||document.getElementsByTagName("body")[0])this.oe=Math.max(this.s.scrollWidth,document.documentElement.scrollWidth,this.s.offsetWidth,document.documentElement.offsetWidth,this.s.clientWidth,document.documentElement.clientWidth),this.ne=Math.max(this.s.scrollHeight,document.documentElement.scrollHeight,
122
- this.s.offsetHeight,document.documentElement.offsetHeight,this.s.clientHeight,document.documentElement.clientHeight);var c=this.F.ie,d=document.createElement("div").style;this.vd=this.s&&a("transition")&&a("transform");this.Kb=(33<=this.F.chrome||15<=this.F.firefox)&&this.s&&a("backfaceVisibility")&&a("perspective")&&a("transform")};g.prototype.$d=d.o(function(){function a(){window.YT&&window.YT.loaded&&b.sc();b.af=n;b.ca().style.visibility="hidden"}var b=this,c=[{u:b.ca(),q:"opacity",start:1,m:0},
123
- {u:b.ca(),q:"top",start:g.N,m:-500},{u:b.k("video-noflip"),q:"opacity",start:0,m:1},{u:b.k("video-noflip"),q:"top",start:2*-b.ia,m:0}];if(b.v){var d=b.k("bg"),h=b.k("overlay");d.style.width="100%";d.style.height="100%";h.style.width="100%";b.$(b.ca(),"exiting");b.$(d,"visible");c.push({u:b.k("bg"),q:"opacity",start:0,m:g.Ga})}b.k("video-holder").innerHTML=b.sf;b.Kb?(b.$("flipper","flipped"),setTimeout(a,g.Z)):b.Ja(c,g.Z,a)});g.prototype.yb=function(a,b,c){this.K?(b=b||{},b=d.extend(b,{campaign_id:this.K,
124
- message_id:this.Rc,message_type:"web_inapp",message_subtype:this.wa}),this.fa.track(a,b,c)):c&&c.call()};g.prototype.sc=d.o(function(){var a=this;if(!a.tf){a.tf=n;var b=a.k("video-elapsed"),c=a.k("video-time"),f=a.k("video-progress");new window.YT.Player(g.B+"-video-frame",{events:{onReady:function(h){function e(a){var a=Math.round(j-a),b=Math.floor(a/60),d=Math.floor(b/60),a=a-60*b;c.innerHTML="-"+(d?d+":":"")+("00"+(b-60*d)).slice(-2)+":"+("00"+a).slice(-2)}var g=h.target,j=g.getDuration();e(0);
125
- a.be=window.setInterval(function(){var a=g.getCurrentTime();b.style.width=100*(a/j)+"%";e(a)},250);d.L(f,"click",function(a){a=Math.max(0,a.pageX-f.getBoundingClientRect().left);g.seekTo(j*a/f.clientWidth,n)})}}})}});d.extend(m.prototype,E);m.prototype.pa=function(a){this.d=a};m.prototype.set=N(function(a,b,c){var f=this.ed(a,b);d.e(a)&&(c=b);this.I("save_referrer")&&this.d.persistence.Xb(document.referrer);f.$set=d.extend({},d.info.Ie(),this.d.persistence.we(),f.$set);return this.l(f,c)});m.prototype.eb=
126
- N(function(a,b,c){var f=this.hd(a,b);d.e(a)&&(c=b);return this.l(f,c)});m.prototype.jb=N(function(a,b){return this.l(this.sd(a),b)});m.prototype.Mc=N(function(a,b,c){var f={},h={};d.e(a)?(d.a(a,function(a,b){this.O(b)||(isNaN(parseFloat(a))?p.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):h[b]=a)},this),c=b):(d.g(b)&&(b=1),h[a]=b);f.$add=h;return this.l(f,c)});m.prototype.append=N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.ee(a,b),c)});m.prototype.remove=
127
- N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.$c(a,b),c)});m.prototype.Da=N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.qd(a,b),c)});m.prototype.hf=N(function(a,b,c){if(!d.Pc(a)&&(a=parseFloat(a),isNaN(a))){p.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",d.extend({$amount:a},b),c)});m.prototype.yc=function(a){return this.set("$transactions",[],a)};m.prototype.Fc=function(){if(this.vb())return this.l({$delete:this.d.W()});
128
- p.error("mixpanel.people.delete_user() requires you to call identify() first")};m.prototype.toString=function(){return this.d.toString()+".people"};m.prototype.l=function(a,b){a.$token=this.I("token");a.$distinct_id=this.d.W();var c=this.d.G("$device_id"),f=this.d.G("$user_id"),h=this.d.G("$had_persisted_distinct_id");c&&(a.$device_id=c);f&&(a.$user_id=f);h&&(a.$had_persisted_distinct_id=h);c=d.Gb(a);return!this.vb()?(this.Hd(a),d.g(b)||(this.I("verbose")?b({status:-1,error:w}):b(-1)),d.truncate(c,
129
- 255)):this.d.zb({type:"people",data:c,U:this.I("api_host")+"/engage/",Bb:this.d.z.He},b)};m.prototype.I=function(a){return this.d.c(a)};m.prototype.vb=function(){return this.d.ba.Mb===n};m.prototype.Hd=function(a){"$set"in a?this.d.persistence.D("$set",a):"$set_once"in a?this.d.persistence.D("$set_once",a):"$unset"in a?this.d.persistence.D("$unset",a):"$add"in a?this.d.persistence.D("$add",a):"$append"in a?this.d.persistence.D("$append",a):"$remove"in a?this.d.persistence.D("$remove",a):"$union"in
130
- a?this.d.persistence.D("$union",a):p.error("Invalid call to _enqueue():",a)};m.prototype.na=function(a,b,c,f){var h=this,e=d.extend({},this.d.persistence.La(a)),g=e;!d.g(e)&&d.e(e)&&!d.X(e)&&(h.d.persistence.J(a,e),f&&(g=f(e)),b.call(h,g,function(b,f){0===b&&h.d.persistence.D(a,e);d.g(c)||c(b,f)}))};m.prototype.Kd=function(a,b,c,f,e,g,o){var j=this,m=this.d.persistence.La("$append"),p=this.d.persistence.La("$remove");this.na("$set",this.set,a);this.na("$set_once",this.eb,f);this.na("$unset",this.jb,
131
- g,function(a){return d.keys(a)});this.na("$add",this.Mc,b);this.na("$union",this.Da,e);if(!d.g(m)&&d.isArray(m)&&m.length){for(var q,a=function(a,b){0===a&&j.d.persistence.D("$append",q);d.g(c)||c(a,b)},b=m.length-1;0<=b;b--)q=m.pop(),d.X(q)||j.append(q,a);j.d.persistence.save()}if(!d.g(p)&&d.isArray(p)&&p.length){for(var r,m=function(a,b){0===a&&j.d.persistence.D("$remove",r);d.g(o)||o(a,b)},a=p.length-1;0<=a;a--)r=p.pop(),d.X(r)||j.remove(r,m);j.d.persistence.save()}};m.prototype.O=function(a){return"$distinct_id"===
132
- a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};m.prototype.set=m.prototype.set;m.prototype.set_once=m.prototype.eb;m.prototype.unset=m.prototype.jb;m.prototype.increment=m.prototype.Mc;m.prototype.append=m.prototype.append;m.prototype.remove=m.prototype.remove;m.prototype.union=m.prototype.Da;m.prototype.track_charge=m.prototype.hf;m.prototype.clear_charges=m.prototype.yc;m.prototype.delete_user=m.prototype.Fc;m.prototype.toString=m.prototype.toString;var ma,
133
- x,U=B.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ya=!U&&-1===y.indexOf("MSIE")&&-1===y.indexOf("Mozilla"),ka=w;I.sendBeacon&&(ka=function(){return I.sendBeacon.apply(I,arguments)});var hb={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",app_host:"https://mixpanel.com",autotrack:n,cdn:"https://cdn.mxpnl.com",cross_site_cookie:F,cross_subdomain_cookie:n,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:$,store_google:n,save_referrer:n,
134
- test:F,verbose:F,img:F,debug:F,track_links_timeout:300,cookie_expiration:365,upgrade:F,disable_persistence:F,disable_cookie:F,secure_cookie:F,ip:n,opt_out_tracking_by_default:F,opt_out_persistence_by_default:F,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:w,property_blacklist:[],xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:F,ignore_dnt:F,batch_requests:F,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:n,hooks:{}},
135
- xa=F;e.prototype.ea=function(a,b,c){if(d.g(c))p.error("You must name your new library: init(token, config, name)");else if("mixpanel"===c)p.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=Z(a,b,c),x[c]=a,a.Ma(),a};e.prototype.pa=function(a,b,c){b=b||{};this.__loaded=n;this.config={};this._triggered_notifs=[];var f={},e=b.api_host,e=!!e&&!e.match(/\.mixpanel\.com$/);!("batch_requests"in b)&&!e&&eb(a,"batch",60)&&(f.batch_requests=
136
- n);this.fd(d.extend({},hb,f,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=$;this.pb=[];this.qb=[];this.ob=[];this.ba={disable_all_events:F,identify_called:F};this.z={};if(this.ma=this.c("batch_requests"))!d.localStorage.Za(n)||!U?(this.ma=F,p.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support")):(this.ze(),ka&&B.addEventListener&&B.addEventListener("unload",d.bind(function(){this.z.Ua.fb||this.z.Ua.flush({rd:n})},this)));this.persistence=
137
- this.cookie=new q(this.config);this.ha={};this.Ld();a=d.Zb();this.W()||this.H({distinct_id:a,$device_id:a},"")};e.prototype.Ma=function(){this.c("loaded")(this);this.qc()};e.prototype.qc=function(){this.persistence.ud(t.referrer);this.c("store_google")&&this.persistence.of();this.c("save_referrer")&&this.persistence.Xb(t.referrer)};e.prototype.Gd=function(){d.a(this.pb,function(a){this.xb.apply(this,a)},this);this.ua()||d.a(this.qb,function(a){this.l.apply(this,a)},this);delete this.pb;delete this.qb};
138
- e.prototype.xb=function(a,b){if(this.c("img"))return p.error("You can't use DOM tracking functions with img = true."),F;if(!xa)return this.pb.push([a,b]),F;var c=(new a).ea(this);return c.p.apply(c,b)};e.prototype.Na=function(a,b){if(d.g(a))return w;if(U)return function(c){a(c,b)};var c=this._jsc,f=""+Math.floor(1E8*Math.random()),e=this.c("callback_fn")+"["+f+"]";c[f]=function(d){delete c[f];a(d,b)};return e};e.prototype.l=function(a,b,c,f){var e=n;if(ya)return this.qb.push(arguments),e;var g={method:this.c("api_method"),
139
- Ca:this.c("api_transport"),wd:this.c("verbose")},o=w;if(!f&&(d.Ya(c)||"string"===typeof c))f=c,c=w;c=d.extend(g,c||{});if(!U)c.method="GET";var g="POST"===c.method,j=ka&&g&&"sendbeacon"===c.Ca.toLowerCase(),m=c.wd;b.verbose&&(m=n);this.c("test")&&(b.test=1);m&&(b.verbose=1);this.c("img")&&(b.img=1);if(!U)if(f)b.callback=f;else if(m||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();g&&(o="data="+encodeURIComponent(b.data),delete b.data);a+="?"+d.Ad(b);
140
- if("img"in b)o=t.createElement("img"),o.src=a,t.body.appendChild(o);else if(j){try{e=ka(a,o)}catch(q){p.error(q),e=F}try{f&&f(e?1:0)}catch(u){p.error(u)}}else if(U)try{var r=new XMLHttpRequest;r.open(c.method,a,n);var v=this.c("xhr_headers");g&&(v["Content-Type"]="application/x-www-form-urlencoded");d.a(v,function(a,b){r.setRequestHeader(b,a)});if(c.od&&"undefined"!==typeof r.timeout){r.timeout=c.od;var x=(new Date).getTime()}r.withCredentials=n;r.onreadystatechange=function(){if(4===r.readyState)if(200===
141
- r.status){if(f)if(m){var a;try{a=d.ka(r.responseText)}catch(b){if(p.error(b),c.ye)a=r.responseText;else return}f(a)}else f(Number(r.responseText))}else a=r.timeout&&!r.status&&(new Date).getTime()-x>=r.timeout?"timeout":"Bad HTTP status: "+r.status+" "+r.statusText,p.error(a),f&&(m?f({status:0,error:a,ja:r}):f(0))};r.send(o)}catch(y){p.error(y),e=F}else o=t.createElement("script"),o.type="text/javascript",o.async=n,o.defer=n,o.src=a,v=t.getElementsByTagName("script")[0],v.parentNode.insertBefore(o,
142
- v);return e};e.prototype.rb=function(a){function b(a,b){d.a(a,function(a){if(d.isArray(a[0])){var c=b;d.a(a,function(a){c=c[a[0]].apply(c,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var c,f=[],e=[],g=[];d.a(a,function(a){a&&(c=a[0],d.isArray(c)?g.push(a):"function"===typeof a?a.call(this):d.isArray(a)&&"alias"===c?f.push(a):d.isArray(a)&&-1!==c.indexOf("track")&&"function"===typeof this[c]?g.push(a):e.push(a))},this);b(f,this);b(e,this);b(g,this)};e.prototype.tc=function(){return!!this.z.Ua};
143
- e.prototype.ze=function(){var a=this.c("token");if(!this.tc()){var b=d.bind(function(b){return new G("__mpq_"+a+b.Tb,{R:this.config,Se:d.bind(function(a,d,e){this.l(this.c("api_host")+b.U,za(a),d,this.Na(e,a))},this),Oa:d.bind(function(a){return this.oc("before_send_"+b.type,a)},this)})},this);this.z={Ua:b({type:"events",U:"/track/",Tb:"_ev"}),He:b({type:"people",U:"/engage/",Tb:"_pp"}),xe:b({type:"groups",U:"/groups/",Tb:"_gr"})}}this.c("batch_autostart")&&this.kd()};e.prototype.kd=function(){if(this.tc())this.ma=
144
- n,d.a(this.z,function(a){a.start()})};e.prototype.cf=function(){this.ma=F;d.a(this.z,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.rb([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.ba.me=n:this.ob=this.ob.concat(a)};e.prototype.zb=function(a,b){var c=d.truncate(a.data,255),f=a.U,e=a.Bb,g=a.$e,m=a.Te||{},b=b||$,j=n,q=d.bind(function(){m.jd||(c=this.oc("before_send_"+a.type,c));return c?(p.log("MIXPANEL REQUEST:"),p.log(c),this.l(f,za(c),m,this.Na(b,c))):w},
145
- this);this.ma&&!g?e.Hb(c,function(a){a?b(1,c):q()}):j=q();return j&&c};e.prototype.p=P(function(a,b,c,f){!f&&"function"===typeof c&&(f=c,c=w);var c=c||{},e=c.transport;if(e)c.Ca=e;e=c.send_immediately;"function"!==typeof f&&(f=$);if(d.g(a))p.error("No event name provided to mixpanel.track");else if(this.ec(a))f(0);else{b=b||{};b.token=this.c("token");var g=this.persistence.Ke(a);d.g(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.qc();b=d.extend({},d.info.ya(),this.persistence.ya(),
146
- this.ha,b);g=this.c("property_blacklist");d.isArray(g)?d.a(g,function(a){delete b[a]}):p.error("Invalid value for property_blacklist config: "+g);a={event:a,properties:b};c=this.zb({type:"events",data:a,U:this.c("api_host")+"/track/",Bb:this.z.Ua,$e:e,Te:c},f);this.bc(a);return c}});e.prototype.Ye=P(function(a,b,c){d.isArray(b)||(b=[b]);var f={};f[a]=b;this.w(f);return this.people.set(a,b,c)});e.prototype.ce=P(function(a,b,c){var d=this.G(a);if(d===l){var e={};e[a]=[b];this.w(e)}else-1===d.indexOf(b)&&
147
- (d.push(b),this.w(e));return this.people.Da(a,b,c)});e.prototype.Le=P(function(a,b,c){var d=this.G(a);if(d!==l){var e=d.indexOf(b);-1<e&&(d.splice(e,1),this.w({yf:d}));0===d.length&&this.Ea(a)}return this.people.remove(a,b,c)});e.prototype.mf=P(function(a,b,c,e){var g=d.extend({},b||{});d.a(c,function(a,b){a!==w&&a!==l&&(g[b]=a)});return this.p(a,g,e)});e.prototype.Fd=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.ve=function(a,b){var c=this.Fd(a,b),d=this.$b[c];if(d===l||d.ub!==a||d.tb!==
148
- b)d=new u,d.pa(this,a,b),this.$b[c]=d;return d};e.prototype.lf=function(a){if(d.g(a))a=t.location.href;this.p("mp_page_view",d.info.Ge(a))};e.prototype.kf=function(){return this.xb.call(this,R,arguments)};e.prototype.jf=function(){return this.xb.call(this,aa,arguments)};e.prototype.ef=function(a){d.g(a)?p.error("No event name provided to mixpanel.time_event"):this.ec(a)||this.persistence.Xe(a)};var Ma={persistent:n};e.prototype.w=function(a,b){var c=na(b);c.persistent?this.persistence.w(a,c.days):
149
- d.extend(this.ha,a)};e.prototype.H=function(a,b,c){c=na(c);c.persistent?this.persistence.H(a,b,c.days):("undefined"===typeof b&&(b="None"),d.a(a,function(a,c){if(!this.ha.hasOwnProperty(c)||this.ha[c]===b)this.ha[c]=a},this))};e.prototype.Ea=function(a,b){b=na(b);b.persistent?this.persistence.Ea(a):delete this.ha[a]};e.prototype.mc=function(a,b){var c={};c[a]=b;this.w(c)};e.prototype.Lb=function(a,b,c,d,e,g,m,j){var p=this.W();this.w({$user_id:a});this.G("$device_id")||this.H({$had_persisted_distinct_id:n,
150
- $device_id:p},"");a!==p&&a!==this.G("__alias")&&(this.Ea("__alias"),this.w({distinct_id:a}));this.ac(this.W());this.ba.Mb=n;this.people.Kd(b,c,d,e,g,m,j);a!==p&&this.p("$identify",{distinct_id:a,$anon_distinct_id:p},{jd:n})};e.prototype.reset=function(){this.persistence.clear();this.ba.Mb=F;var a=d.Zb();this.H({distinct_id:a,$device_id:a},"")};e.prototype.W=function(){return this.G("distinct_id")};e.prototype.de=function(a,b){if(a===this.G("$people_distinct_id"))return p.P("Attempting to create alias for existing People user - aborting."),
151
- -2;var c=this;d.g(b)&&(b=this.W());if(a!==b)return this.mc("__alias",a),this.p("$create_alias",{alias:a,distinct_id:b},{jd:n},function(){c.Lb(a)});p.error("alias matches current distinct_id - skipping api call.");this.Lb(a);return-1};e.prototype.De=function(a){this.mc("mp_name_tag",a)};e.prototype.fd=function(a){if(d.e(a))d.extend(this.config,a),a.batch_size&&d.a(this.z,function(a){a.bd()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
152
- (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.td(this.config),L=L||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.oc=function(a){var b=(this.config.hooks[a]||Na).apply(this,Q.call(arguments,1));"undefined"===typeof b&&(p.error(a+" hook did not return a value"),b=w);return b};e.prototype.G=function(a){return this.persistence.props[a]};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+
153
- a);return a};e.prototype.ec=function(a){return d.Oc(y)||this.ba.me||d.Lc(this.ob,a)};e.prototype.bc=P(function(a){if(this.rc)for(var b=this._triggered_notifs,c=0;c<b.length;c++){if((new g(b[c],this)).Vd(a)){this.wb(b[c]);break}}else this.fc.push(a)});e.prototype.ac=P(function(a){a&&!this.ba.Mb&&!this.c("disable_notifications")&&(p.log("MIXPANEL NOTIFICATION CHECK"),this.l(this.c("api_host")+"/decide/",{verbose:n,version:"3",lib:"web",token:this.c("token"),distinct_id:a},{method:"GET",Ca:"XHR"},this.Na(d.bind(function(a){if(a.notifications&&
154
- 0<a.notifications.length){this._triggered_notifs=[];var c=[];d.a(a.notifications,function(a){(a.display_triggers&&0<a.display_triggers.length?this._triggered_notifs:c).push(a)},this);0<c.length&&this.wb.call(this,c[0])}this.ic()},this))))});e.prototype.ic=function(){this.rc=n;for(var a=this.fc;0<a.length;)this.bc(a.shift())};e.prototype.wb=function(a){(new g(a,this)).show()};e.prototype.Ld=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&d.localStorage.Za()&&(!this.Wa()&&this.Wa({persistence_type:"cookie"})&&
155
- this.Uc({enable_persistence:F}),!this.ua()&&this.ua({persistence_type:"cookie"})&&this.Qb({clear_persistence:F}),this.zc({persistence_type:"cookie",enable_persistence:F}));if(this.ua())this.Ka({clear_persistence:n});else if(!this.Wa()&&(this.c("opt_out_tracking_by_default")||d.cookie.get("mp_optout")))d.cookie.remove("mp_optout"),this.Qb({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.Ka=function(a){if(a&&a.clear_persistence)a=n;else if(a&&a.enable_persistence)a=F;else return;
156
- !this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.gd(a);a&&d.a(this.z,function(a){a.clear()})};e.prototype.oa=function(a,b){b=d.extend({track:d.bind(this.p,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),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"),
157
- ignore_dnt:this.c("ignore_dnt")},b);d.localStorage.Za()||(b.persistence_type="cookie");return a(this.c("token"),{p:b.track,ff:b.track_event_name,gf:b.track_properties,Xc:b.persistence_type,Wc:b.cookie_prefix,Ac:b.cookie_domain,Bc:b.cookie_expiration,ke:b.cross_site_cookie,Cc:b.cross_subdomain_cookie,Qe:b.secure_cookie,Jc:b.ignore_dnt})};e.prototype.Uc=function(a){a=d.extend({enable_persistence:n},a);this.oa(Sa,a);this.Ka(a)};e.prototype.Qb=function(a){a=d.extend({clear_persistence:n,delete_user:n},
158
- a);a.delete_user&&this.people&&this.people.vb()&&(this.people.Fc(),this.people.yc());this.oa(Ta,a);this.Ka(a)};e.prototype.Wa=function(a){return this.oa(Ua,a)};e.prototype.ua=function(a){return this.oa(Fa,a)};e.prototype.zc=function(a){a=d.extend({enable_persistence:n},a);this.oa(Wa,a);this.Ka(a)};e.prototype.init=e.prototype.ea;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.ef;e.prototype.track=e.prototype.p;e.prototype.track_links=
159
- e.prototype.kf;e.prototype.track_forms=e.prototype.jf;e.prototype.track_pageview=e.prototype.lf;e.prototype.register=e.prototype.w;e.prototype.register_once=e.prototype.H;e.prototype.unregister=e.prototype.Ea;e.prototype.identify=e.prototype.Lb;e.prototype.alias=e.prototype.de;e.prototype.name_tag=e.prototype.De;e.prototype.set_config=e.prototype.fd;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.G;e.prototype.get_distinct_id=e.prototype.W;e.prototype.toString=e.prototype.toString;
160
- e.prototype._check_and_handle_notifications=e.prototype.ac;e.prototype._handle_user_decide_check_complete=e.prototype.ic;e.prototype._show_notification=e.prototype.wb;e.prototype.opt_out_tracking=e.prototype.Qb;e.prototype.opt_in_tracking=e.prototype.Uc;e.prototype.has_opted_out_tracking=e.prototype.ua;e.prototype.has_opted_in_tracking=e.prototype.Wa;e.prototype.clear_opt_in_out_tracking=e.prototype.zc;e.prototype.get_group=e.prototype.ve;e.prototype.set_group=e.prototype.Ye;e.prototype.add_group=
161
- e.prototype.ce;e.prototype.remove_group=e.prototype.Le;e.prototype.track_with_groups=e.prototype.mf;e.prototype.start_batch_senders=e.prototype.kd;e.prototype.stop_batch_senders=e.prototype.cf;q.prototype.properties=q.prototype.ya;q.prototype.update_search_keyword=q.prototype.ud;q.prototype.update_referrer_info=q.prototype.Xb;q.prototype.get_cross_subdomain=q.prototype.ue;q.prototype.clear=q.prototype.clear;d.Me(e);var K={};(function(){ma=1;x=B.mixpanel;d.g(x)?p.P('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
162
- x.__loaded||x.config&&x.persistence?p.error("Mixpanel library has already been downloaded at least once."):1.1>(x.__SV||0)?p.P("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.a(x._i,function(a){a&&d.isArray(a)&&(K[a[a.length-1]]=Z.apply(this,a))}),Ka(),x.init(),d.a(K,function(a){a.Ma()}),la())})()})();
53
+ Mozilla:/rv:(\d+(\.\d+)?)/}[d.info.sa(a,b,c)];if(b===n)return w;a=a.match(b);return!a?w:parseFloat(a[a.length-2])},Qb:function(){return/Windows/i.test(z)?/Phone/.test(z)||/WPDesktop/.test(z)?"Windows Phone":"Windows":/(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":""},Ac:function(a){return/Windows Phone/i.test(a)||/WPDesktop/.test(a)?"Windows Phone":/iPad/.test(a)?
54
+ "iPad":/iPod/.test(a)?"iPod Touch":/iPhone/.test(a)?"iPhone":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":/Android/.test(a)?"Android":""},Tc:function(a){a=a.split("/");return 3<=a.length?a[2]:""},xa:function(){return d.extend(d.ab({$os:d.info.Qb(),$browser:d.info.sa(z,J.vendor,W),$referrer:s.referrer,$referring_domain:d.info.Tc(s.referrer),$device:d.info.Ac(z)}),{$current_url:B.location.href,$browser_version:d.info.Ab(z,J.vendor,W),$screen_height:ca.height,$screen_width:ca.width,mp_lib:"web",
55
+ $lib_version:"2.42.1",$insert_id:ja(),time:d.timestamp()/1E3})},re:function(){return d.extend(d.ab({$os:d.info.Qb(),$browser:d.info.sa(z,J.vendor,W)}),{$browser_version:d.info.Ab(z,J.vendor,W)})},pe:function(a){return d.ab({mp_page:a,mp_referrer:s.referrer,mp_browser:d.info.sa(z,J.vendor,W),mp_platform:d.info.Qb()})}};var La=/[a-z0-9][a-z0-9-]*\.[a-z]+$/i,Ka=/[a-z0-9][a-z0-9-]+\.[a-z.]{2,6}$/i,da=w,ea=w;if("undefined"!==typeof JSON)da=JSON.stringify,ea=JSON.parse;da=da||d.Ea;ea=ea||d.ka;d.toArray=
56
+ d.ga;d.isObject=d.e;d.JSONEncode=d.Ea;d.JSONDecode=d.ka;d.isBlockedUA=d.Ic;d.isEmptyObject=d.W;d.info=d.info;d.info.device=d.info.Ac;d.info.browser=d.info.sa;d.info.browserVersion=d.info.Ab;d.info.properties=d.info.xa;I.prototype.Pa=function(){};I.prototype.Fb=function(){};I.prototype.xb=function(){};I.prototype.Lb=function(a){this.Mc=a;return this};I.prototype.u=function(a,b,c,h){var i=this,g=d.$d(a);if(0===g.length)o.error("The DOM query ("+a+") returned 0 elements");else return d.a(g,function(a){d.ea(a,
57
+ this.Pc,function(a){var d={},g=i.Pa(c,this),f=i.Mc.c("track_links_timeout");i.Fb(a,this,d);window.setTimeout(i.jd(h,g,d,p),f);i.Mc.u(b,g,i.jd(h,g,d))})},this),p};I.prototype.jd=function(a,b,c,d){var d=d||F,i=this;return function(){if(!c.Td)c.Td=p,a&&a(d,b)===F||i.xb(b,c,d)}};I.prototype.Pa=function(a,b){return"function"===typeof a?a(b):d.extend({},a)};d.Hc(R,I);R.prototype.Pa=function(a,b){var c=R.Me.Pa.apply(this,arguments);if(b.href)c.url=b.href;return c};R.prototype.Fb=function(a,b,c){c.Nc=2===
58
+ a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Nc||a.preventDefault()};R.prototype.xb=function(a,b){b.Nc||setTimeout(function(){window.location=b.href},0)};d.Hc(Z,I);Z.prototype.Fb=function(a,b,c){c.element=b;a.preventDefault()};Z.prototype.xb=function(a,b){setTimeout(function(){b.element.submit()},0)};var Za=ma("lock");xa.prototype.Xb=function(a,b,c){function d(){k.setItem(t,"1");try{a()}finally{k.removeItem(t),k.getItem(s)===v&&k.removeItem(s),k.getItem(q)===v&&k.removeItem(q)}}
59
+ function i(){k.setItem(q,v);f(g,function(){k.getItem(q)===v?d():e(function(){k.getItem(s)!==v?i():f(function(){return!k.getItem(t)},d)})})}function g(){var a=k.getItem(s);if(a&&a!==v)return F;k.setItem(s,v);if(k.getItem(s)===v)return p;ka(k,p)||l(Error("localStorage support dropped while acquiring lock"));return F}function f(a,b){a()?b():e(function(){f(a,b)})}function e(a){(new Date).getTime()-o>D?(Za.error("Timeout waiting for mutex on "+A+"; clearing lock. ["+v+"]"),k.removeItem(t),k.removeItem(s),
60
+ i()):setTimeout(function(){try{a()}catch(c){b&&b(c)}},r*(Math.random()+0.1))}!c&&"function"!==typeof b&&(c=b,b=w);var v=c||(new Date).getTime()+"|"+Math.random(),o=(new Date).getTime(),A=this.za,r=this.Sc,D=this.gd,k=this.h,q=A+":X",s=A+":Y",t=A+":Z";try{ka(k,p)?i():l(Error("localStorage support check failed"))}catch(u){b&&b(u)}};var K=ma("batch");M.prototype.Eb=function(a,b,c){var h={id:ja(),flushAfter:(new Date).getTime()+2*b,payload:a};this.Nb.Xb(d.bind(function(){var b;try{var d=this.Wa();d.push(h);
61
+ (b=this.Tb(d))&&this.X.push(h)}catch(f){K.error("Error enqueueing item",a),b=F}c&&c(b)},this),function(a){K.error("Error acquiring storage lock",a);c&&c(F)},this.Va)};M.prototype.be=function(a){var b=this.X.slice(0,a);if(b.length<a){var c=this.Wa();if(c.length){var h={};d.a(b,function(a){h[a.id]=p});for(var i=0;i<c.length;i++){var g=c[i];if((new Date).getTime()>g.flushAfter&&!h[g.id]&&(g.oe=p,b.push(g),b.length>=a))break}}}return b};M.prototype.se=function(a,b){var c={};d.a(a,function(a){c[a]=p});
62
+ this.X=wa(this.X,c);this.Nb.Xb(d.bind(function(){var d;try{var i=this.Wa(),i=wa(i,c);d=this.Tb(i)}catch(g){K.error("Error removing items",a),d=F}b&&b(d)},this),function(a){K.error("Error acquiring storage lock",a);b&&b(F)},this.Va)};M.prototype.Ve=function(a){this.X=va(this.X,a);this.Nb.Xb(d.bind(function(){try{var b=this.Wa(),b=va(b,a);this.Tb(b)}catch(c){K.error("Error updating items",a)}},this),function(a){K.error("Error acquiring storage lock",a)},this.Va)};M.prototype.Wa=function(){var a;try{if(a=
63
+ this.h.getItem(this.za))a=ea(a),d.isArray(a)||(K.error("Invalid storage entry:",a),a=w)}catch(b){K.error("Error retrieving queue",b),a=w}return a||[]};M.prototype.Tb=function(a){try{return this.h.setItem(this.za,da(a)),p}catch(b){return K.error("Error saving queue",b),F}};M.prototype.clear=function(){this.X=[];this.h.removeItem(this.za)};var O=ma("batch");H.prototype.Eb=function(a,b){this.ya.Eb(a,this.Ra,b)};H.prototype.start=function(){this.$a=F;this.flush()};H.prototype.stop=function(){this.$a=
64
+ p;if(this.Vb)clearTimeout(this.Vb),this.Vb=w};H.prototype.clear=function(){this.ya.clear()};H.prototype.Wc=function(){this.qa=this.Q.batch_size};H.prototype.Xa=function(){this.Xc(this.Q.batch_flush_interval_ms)};H.prototype.Xc=function(a){this.Ra=a;if(!this.$a)this.Vb=setTimeout(d.bind(this.flush,this),this.Ra)};H.prototype.flush=function(a){try{if(this.Vc)O.log("Flush: Request already in progress");else{var a=a||{},b=this.Q.batch_request_timeout_ms,c=(new Date).getTime(),h=this.qa,i=this.ya.be(h),
65
+ g=[],f={};d.a(i,function(a){var b=a.payload;this.Ka&&!a.oe&&(b=this.Ka(b));b&&g.push(b);f[a.id]=b},this);if(1>g.length)this.Xa();else{this.Vc=p;var e=d.bind(function(g){this.Vc=F;try{var e=F;if(a.ld)this.ya.Ve(f);else if(d.e(g)&&"timeout"===g.error&&(new Date).getTime()-c>=b)O.error("Network timeout; retrying"),this.flush();else if(d.e(g)&&g.ja&&(500<=g.ja.status||429===g.ja.status||"timeout"===g.error)){var j=2*this.Ra,v=g.ja.responseHeaders;if(v){var k=v["Retry-After"];k&&(j=1E3*parseInt(k,10)||
66
+ j)}j=Math.min(6E5,j);O.error("Error; retry in "+j+" ms");this.Xc(j)}else if(d.e(g)&&g.ja&&413===g.ja.status)if(1<i.length){var o=Math.max(1,Math.floor(h/2));this.qa=Math.min(this.qa,o,i.length-1);O.error("413 response; reducing batch size to "+this.qa);this.Xa()}else O.error("Single-event request too large; dropping",i),this.Wc(),e=p;else e=p;e&&this.ya.se(d.map(i,function(a){return a.id}),d.bind(this.flush,this))}catch(q){O.error("Error handling API response",q),this.Xa()}},this),v={method:"POST",
67
+ qd:p,he:p,hd:b};if(a.ld)v.eb="sendBeacon";O.log("MIXPANEL REQUEST:",g);this.ze(g,v,e)}}}catch(k){O.error("Error flushing request queue",k),this.Xa()}};var Ra="__mp_opt_in_out_",E={Zc:function(a,b){var c={},h={};d.e(a)?d.a(a,function(a,b){this.O(b)||(h[b]=a)},this):h[a]=b;c.$set=h;return c},md:function(a){var b={},c=[];d.isArray(a)||(a=[a]);d.a(a,function(a){this.O(a)||c.push(a)},this);b.$unset=c;return b},bd:function(a,b){var c={},h={};d.e(a)?d.a(a,function(a,b){this.O(b)||(h[b]=a)},this):h[a]=b;
68
+ c.$set_once=h;return c},kd:function(a,b){var c={},h={};d.e(a)?d.a(a,function(a,b){this.O(b)||(h[b]=d.isArray(a)?a:[a])},this):h[a]=d.isArray(b)?b:[b];c.$union=h;return c},Pd:function(a,b){var c={},h={};d.e(a)?d.a(a,function(a,b){this.O(b)||(h[b]=a)},this):h[a]=b;c.$append=h;return c},Uc:function(a,b){var c={},h={};d.e(a)?d.a(a,function(a,b){this.O(b)||(h[b]=a)},this):h[a]=b;c.$remove=h;return c},cf:function(){return{$delete:""}}};d.extend(t.prototype,E);t.prototype.pa=function(a,b,c){this.d=a;this.qb=
69
+ b;this.pb=c};t.prototype.set=S(function(a,b,c){var h=this.Zc(a,b);d.e(a)&&(c=b);return this.l(h,c)});t.prototype.Za=S(function(a,b,c){var h=this.bd(a,b);d.e(a)&&(c=b);return this.l(h,c)});t.prototype.fb=S(function(a,b){return this.l(this.md(a),b)});t.prototype.Aa=S(function(a,b,c){d.e(a)&&(c=b);return this.l(this.kd(a,b),c)});t.prototype["delete"]=S(function(a){return this.l({$delete:""},a)});t.prototype.remove=S(function(a,b,c){return this.l(this.Uc(a,b),c)});t.prototype.l=function(a,b){a.$group_key=
70
+ this.qb;a.$group_id=this.pb;a.$token=this.I("token");return this.d.wb({type:"groups",data:d.Db(a),T:this.I("api_host")+"/groups/",yb:this.d.z.ge},b)};t.prototype.O=function(a){return"$group_key"===a||"$group_id"===a};t.prototype.I=function(a){return this.d.c(a)};t.prototype.toString=function(){return this.d.toString()+".group."+this.qb+"."+this.pb};t.prototype.remove=t.prototype.remove;t.prototype.set=t.prototype.set;t.prototype.set_once=t.prototype.Za;t.prototype.union=t.prototype.Aa;t.prototype.unset=
71
+ t.prototype.fb;t.prototype.toString=t.prototype.toString;var $a="__mps,__mpso,__mpus,__mpa,__mpap,__mpr,__mpu,$people_distinct_id,__alias,__cmpns,__timers".split(",");q.prototype.xa=function(){var a={};d.a(this.props,function(b,c){d.Fc($a,c)||(a[c]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=this.h.parse(this.name);a&&(this.props=d.extend({},a))}};q.prototype.Xe=function(a){var b=a.upgrade,c;if(b)c="mp_super_properties","string"===typeof b&&(c=b),b=this.h.parse(c),this.h.remove(c),
72
+ this.h.remove(c,p),b&&(this.props=d.extend(this.props,b.all,b.events));if(!a.cookie_name&&"mixpanel"!==a.name&&(c="mp_"+a.token+"_"+a.name,b=this.h.parse(c)))this.h.remove(c),this.h.remove(c,p),this.H(b);this.h===d.localStorage&&(b=d.cookie.parse(this.name),d.cookie.remove(this.name),d.cookie.remove(this.name,p),b&&this.H(b))};q.prototype.save=function(){this.disabled||(this.Bd(),this.h.set(this.name,d.Ea(this.props),this.Gb,this.Bb,this.Yc,this.xc,this.Oa))};q.prototype.remove=function(){this.h.remove(this.name,
73
+ F,this.Oa);this.h.remove(this.name,p,this.Oa)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.H=function(a,b,c){return d.e(a)?("undefined"===typeof b&&(b="None"),this.Gb="undefined"===typeof c?this.yc:c,d.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),p):F};q.prototype.w=function(a,b){return d.e(a)?(this.Gb="undefined"===typeof b?this.yc:b,d.extend(this.props,a),this.save(),p):F};q.prototype.Ba=function(a){a in this.props&&
74
+ (delete this.props[a],this.save())};q.prototype.Bd=d.o(function(){var a=this.props.__cmpns,b=G?6E4:36E5;if(a){for(var c in a)1*new Date-a[c]>b&&delete a[c];d.W(a)&&delete this.props.__cmpns}});q.prototype.We=function(){if(!this.qc)this.H(d.info.Ud()),this.qc=p};q.prototype.od=function(a){this.w(d.info.xe(a))};q.prototype.Wb=function(a){this.H({$initial_referrer:a||"$direct",$initial_referring_domain:d.info.Tc(a)||"$direct"},"")};q.prototype.fe=function(){return d.ab({$initial_referrer:this.props.$initial_referrer,
75
+ $initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.nd=function(a){this.yc=this.Gb=a.cookie_expiration;this.ad(a.disable_persistence);this.Ce(a.cookie_domain);this.De(a.cross_site_cookie);this.Ee(a.cross_subdomain_cookie);this.He(a.secure_cookie)};q.prototype.ad=function(a){(this.disabled=a)?this.remove():this.save()};q.prototype.Ce=function(a){if(a!==this.Oa)this.remove(),this.Oa=a,this.save()};q.prototype.De=function(a){if(a!==this.xc)this.xc=a,this.remove(),this.save()};
76
+ q.prototype.Ee=function(a){if(a!==this.Bb)this.Bb=a,this.remove(),this.save()};q.prototype.de=function(){return this.Bb};q.prototype.He=function(a){if(a!==this.Yc)this.Yc=a?p:F,this.remove(),this.save()};q.prototype.D=function(a,b){var c=this.ob(a),h=b[a],i=this.S("$set"),g=this.S("$set_once"),f=this.S("$unset"),e=this.S("$add"),v=this.S("$union"),k=this.S("$remove",[]),q=this.S("$append",[]);"__mps"===c?(d.extend(i,h),this.J("$add",h),this.J("$union",h),this.J("$unset",h)):"__mpso"===c?(d.a(h,function(a,
77
+ b){b in g||(g[b]=a)}),this.J("$unset",h)):"__mpus"===c?d.a(h,function(a){d.a([i,g,e,v],function(b){a in b&&delete b[a]});d.a(q,function(b){a in b&&delete b[a]});f[a]=p}):"__mpa"===c?(d.a(h,function(a,b){b in i?i[b]+=a:(b in e||(e[b]=0),e[b]+=a)},this),this.J("$unset",h)):"__mpu"===c?(d.a(h,function(a,b){d.isArray(a)&&(b in v||(v[b]=[]),v[b]=v[b].concat(a))}),this.J("$unset",h)):"__mpr"===c?(k.push(h),this.J("$append",h)):"__mpap"===c&&(q.push(h),this.J("$unset",h));o.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");
78
+ o.log(b);this.save()};q.prototype.J=function(a,b){var c=this.Ia(a);d.g(c)||(d.a(b,function(b,i){"$append"===a||"$remove"===a?d.a(c,function(a){a[i]===b&&delete a[i]}):delete c[i]},this),this.save())};q.prototype.ob=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)};q.prototype.Ia=function(a){return this.props[this.ob(a)]};
79
+ q.prototype.S=function(a,b){var c=this.ob(a),b=d.g(b)?{}:b;return this.props[c]||(this.props[c]=b)};q.prototype.Fe=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};q.prototype.te=function(a){var b=(this.props.__timers||{})[a];d.g(b)||(delete this.props.__timers[a],this.save());return b};f.Y=200;f.B="mixpanel-notification";f.Da=0.6;f.N=25;f.Fa=200;f.la=388;f.hb=420;f.C=85;f.ib=5;f.R=60;f.jb=Math.round(f.R/2);f.wd=595;f.vd=334;f.prototype.show=function(){var a=
80
+ this;this.kc();this.q?(this.Gd(),this.Fd(),this.Jd(this.xd)):setTimeout(function(){a.show()},300)};f.prototype.Cb=d.o(function(){this.Kc||this.gc({invisible:p});var a=this.Je?this.k("video"):this.ba();if(this.pd)this.Kd("bg","visible"),this.Z(a,"exiting"),setTimeout(this.ic,f.Y);else{var b,c,d;this.v?(b="right",c=20,d=-100):(b="top",c=f.N,d=f.Fa+f.N);this.Ga([{s:this.k("bg"),p:"opacity",start:f.Da,m:0},{s:a,p:"opacity",start:1,m:0},{s:a,p:b,start:c,m:d}],f.Y,this.ic)}});f.prototype.Z=d.o(function(a,
81
+ b){b=f.B+"-"+b;"string"===typeof a&&(a=this.k(a));a.className?~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=b});f.prototype.Kd=d.o(function(a,b){b=f.B+"-"+b;"string"===typeof a&&(a=this.k(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});f.prototype.Ga=d.o(function(a,b,c,d){var i=this,g=F,f,e;f=1*new Date;var k,d=d||f;k=f-d;for(f=0;f<a.length;f++){e=a[f];if("undefined"===typeof e.M)e.M=e.start;
82
+ if(e.M!==e.m){var g=p,o=e.m>=e.start?1:-1;e.M=e.start+(e.m-e.start)*k/b;if("opacity"!==e.p)e.M=Math.round(e.M);if(0<o&&e.M>=e.m||0>o&&e.M<=e.m)e.M=e.m}}if(g){for(f=0;f<a.length;f++)e=a[f],e.s&&(e.s.style[e.p]=""+e.M+("opacity"===e.p?"":"px"));setTimeout(function(){i.Ga(a,b,c,d)},10)}else c&&c()});f.prototype.xd=d.o(function(){var a=this;if(!this.Ke&&!this.dc()[this.K])this.Ke=p,this.q.appendChild(this.wa),setTimeout(function(){var b=a.ba();if(a.pd)a.v||a.Z("bg","visible"),a.Z(b,"visible"),a.fc();
83
+ else{var c,d,i;a.v?(c="right",d=-100,i=20):(c="top",d=f.Fa+f.N,i=f.N);a.Ga([{s:a.k("bg"),p:"opacity",start:0,m:f.Da},{s:b,p:"opacity",start:0,m:1},{s:b,p:c,start:d,m:i}],f.Y,a.fc)}},100),d.ea(a.k("cancel"),"click",function(b){b.preventDefault();a.Cb()}),d.ea(a.k("button")||a.k("mini-content"),"click",function(b){b.preventDefault();a.fa?(a.vb("$campaign_open",{$resource_type:"video"}),a.Ld()):(a.Cb(),a.Na&&(b=w,a.da.c("inapp_link_new_window")?window.open(a.ca):b=function(){window.location.href=a.ca},
84
+ a.vb("$campaign_open",{$resource_type:"link"},b)))})});f.prototype.k=function(a){return document.getElementById(f.B+"-"+a)};f.prototype.ba=function(){return this.k(this.va)};f.prototype.dc=function(){return this.Rb.props.__cmpns||(this.Rb.props.__cmpns={})};f.prototype.Id=d.o(function(a){for(var b=a.event||"",c=0;c<this.Bc.length;c++){var h=this.Bc[c];if("$any_event"===(h.event||"")||b===h.event)if(h.selector&&!d.W(h.selector)){if(u(h.selector,a.properties))return p}else return p}return F});f.prototype.$=
85
+ function(a,b){return this.F[a]&&this.F[a]<=b};f.prototype.Ed=function(){var a=[];this.v?(this.A=this.A||this.Ma+"/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.A)):(this.Kb?(a.push(this.Kb),this.Ec='<img id="img" src="'+this.Kb+'"/>'):this.Ec="",this.A?(a.push(this.A),this.fd='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+this.A+'" width="'+f.R+'" height="'+f.R+'"/><div id="thumbspacer"></div>'):this.fd="");return a};f.prototype.Fd=
86
+ function(){var a="",b="",c="";this.wa=document.createElement("div");this.wa.id=f.B+"-wrapper";if(this.v)a='<div id="mini"><div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="mini-content"><div id="mini-icon"><div id="mini-icon-img"></div></div><div id="body"><div id="body-text"><div>'+this.body+'</div></div></div></div></div><div id="mini-border"></div></div>';else{var a=this.Na||this.fa?"":'<div id="button-close"></div>',d=this.fa?'<div id="button-play"></div>':"";this.$("ie",
87
+ 7)&&(d=a="");a='<div id="takeover">'+this.fd+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Ec+'<div id="title">'+this.title+'</div><div id="body">'+this.body+'</div><div id="tagline"><a href="http://mixpanel.com?from=inapp" target="_blank">POWERED BY MIXPANEL</a></div></div><div id="button">'+a+'<a id="button-link" href="'+this.ca+'">'+this.Wd+"</a>"+d+"</div></div></div>"}this.sd?(b=this.Ya+"www.youtube.com/embed/"+this.sd+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",
88
+ this.td&&(b+="&enablejsapi=1&html5=1&controls=0",c='<div id="video-controls"><div id="video-progress" class="video-progress-el"><div id="video-progress-total" class="video-progress-el"></div><div id="video-elapsed" class="video-progress-el"></div></div><div id="video-time" class="video-progress-el"></div></div>')):this.rd&&(b=this.Ya+"player.vimeo.com/video/"+this.rd+"?autoplay=1&title=0&byline=0&portrait=0");if(this.fa)this.$e='<iframe id="'+f.B+'-video-frame" width="'+this.Ca+'" height="'+this.ia+
89
+ '" src="'+b+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen="1" scrolling="no"></iframe>',c='<div id="video-'+(this.Hb?"":"no")+'flip"><div id="video"><div id="video-holder"></div>'+c+"</div></div>";b=c+a;this.Hb&&(b=(this.v?a:"")+'<div id="flipcontainer"><div id="flipper">'+(this.v?c:b)+"</div></div>");this.wa.innerHTML=('<div id="overlay" class="'+this.va+'"><div id="campaignid-'+this.K+'"><div id="bgwrapper"><div id="bg"></div>'+b+"</div></div></div>").replace(/class="/g,
90
+ 'class="'+f.B+"-").replace(/id="/g,'id="'+f.B+"-")};f.prototype.Gd=function(){this.j="dark"===this.style?{zb:"#1d1f25",ra:"#282b32",La:"#3a4147",pc:"#4a5157",Sd:"#32353c",rc:"0.4",Ob:"#2a3137",cb:"#fff",Ub:"#9498a3",ed:"#464851",bb:"#ddd"}:{zb:"#fff",ra:"#e7eaee",La:"#eceff3",pc:"#f5f5f5",Sd:"#e4ecf2",rc:"1.0",Ob:"#fafafa",cb:"#5c6578",Ub:"#8b949b",ed:"#ced9e6",bb:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,c=a,h=f.R+2*f.ib,i=f.Y/1E3+"s";this.v&&(a="none");var e={};e["@media only screen and (max-width: "+
91
+ (f.hb+20-1)+"px)"]={"#overlay":{display:"none"}};a={".flipped":{transform:"rotateY(180deg)"},"#overlay":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%",overflow:"auto","text-align":"center","z-index":"10000","font-family":'"Helvetica", "Arial", sans-serif',"-webkit-font-smoothing":"antialiased","-moz-osx-font-smoothing":"grayscale"},"#overlay.mini":{height:"0",overflow:"visible"},"#overlay a":{width:"initial",padding:"0","text-decoration":"none","text-transform":"none",color:"inherit"},
92
+ "#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.Zd+"px","min-height":4*this.Yd+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+i},"#bg.visible":{opacity:f.Da},".mini #bg":{width:"0",height:"0","min-width":"0"},"#flipcontainer":{perspective:"1000px",position:"absolute",width:"100%"},"#flipper":{position:"relative",
93
+ "transform-style":"preserve-3d",transition:"0.3s"},"#takeover":{position:"absolute",left:"50%",width:f.la+"px","margin-left":Math.round(-f.la/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:f.Fa+"px",transition:"opacity "+i+", top "+i},"#takeover.visible":{opacity:"1.0",top:f.N+"px"},"#takeover.exiting":{opacity:"0.0",top:f.Fa+"px"},"#thumbspacer":{height:f.jb+"px"},"#thumbborder-wrapper":{position:"absolute",top:-f.ib+"px",left:f.la/2-f.jb-f.ib+"px",width:h+"px",
94
+ height:h/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:h+"px",height:h+"px","border-radius":h+"px","background-color":this.j.ra,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:f.la/2-f.jb+"px",width:f.R+"px",height:f.R+"px",overflow:"hidden","z-index":"100","border-radius":f.R+"px"},"#mini":{position:"absolute",right:"20px",top:f.N+"px",width:this.ne+"px",height:2*f.C+"px","margin-top":20-f.C+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",
95
+ transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":a,"text-align":"center","background-color":this.j.zb,"font-size":"14px",color:this.j.Ub},"#mini #mainbox":{height:f.C+"px","margin-top":f.C+"px","border-radius":"3px",transition:"background-color "+i},"#mini-border":{height:f.C+6+"px",width:f.hb+6+"px",position:"absolute",top:"-3px",left:"-3px",
96
+ "margin-top":f.C+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":c},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:f.C+"px","border-radius":"3px 0 0 3px","background-color":this.j.ra,background:"linear-gradient(135deg, "+this.j.pc+" 0%, "+this.j.ra+" 100%)",transition:"background-color "+i},"#mini:hover #mini-icon":{"background-color":this.j.Ob},"#mini:hover #mainbox":{"background-color":this.j.Ob},"#mini-icon-img":{position:"absolute",
97
+ "background-image":"url("+this.A+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:f.C+"px",cursor:"pointer"},"#img":{width:"328px","margin-top":"30px","border-radius":"5px"},"#title":{"max-height":"600px",overflow:"hidden","word-wrap":"break-word",padding:"25px 0px 20px 0px","font-size":"19px","font-weight":"bold",color:this.j.cb},"#body":{"max-height":"600px","margin-bottom":"25px",overflow:"hidden","word-wrap":"break-word",
98
+ "line-height":"21px","font-size":"15px","font-weight":"normal","text-align":"left"},"#mini #body":{display:"inline-block","max-width":"250px",margin:"0 0 0 30px",height:f.C+"px","font-size":"16px","letter-spacing":"0.8px",color:this.j.cb},"#mini #body-text":{display:"table",height:f.C+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.j.ed,
99
+ transition:"color "+i},"#tagline a:hover":{color:this.j.bb},"#cancel":{position:"absolute",right:"0",width:"8px",height:"8px",padding:"10px","border-radius":"20px",margin:"12px 12px 0 0","box-sizing":"content-box",cursor:"pointer",transition:"background-color "+i},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url("+this.Ma+"/site_media/images/icons/notifications/cancel-x.png)",opacity:this.j.rc},"#cancel:hover":{"background-color":this.j.La},
100
+ "#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.j.ra,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+i},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url("+this.Ma+"/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",
101
+ width:"30px",height:"60px","margin-left":"15px","background-image":"url("+this.Ma+"/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.j.cb,transition:"color "+i},"#button:hover":{"background-color":this.j.La,color:this.j.bb},"#button:hover a":{color:this.j.bb},
102
+ "#video-noflip":{position:"relative",top:2*-this.ia+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.Ca-1+"px",height:this.ia+"px",top:f.N+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.Ca/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+i+", top "+i},"#video.exiting":{opacity:"0.0",top:this.ia+"px"},"#video-holder":{position:"absolute",width:this.Ca-
103
+ 1+"px",height:this.ia+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.Ca+"px"},"#video-controls":{opacity:"0",transition:"opacity 0.5s"},"#video:hover #video-controls":{opacity:"1.0"},"#video .video-progress-el":{position:"absolute",bottom:"0",height:"25px","border-radius":"0 0 0 5px"},"#video-progress":{width:"90%"},"#video-progress-total":{width:"100%","background-color":this.j.zb,opacity:"0.7"},"#video-elapsed":{width:"0","background-color":"#6cb6f5",
104
+ opacity:"0.9"},"#video #video-time":{width:"10%",right:"0","font-size":"11px","line-height":"25px",color:this.j.Ub,"background-color":"#666","border-radius":"0 0 5px 0"}};this.$("ie",8)&&d.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.$("ie",7)&&d.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.j.La},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var b="backface-visibility,border-radius,box-shadow,opacity,perspective,transform,transform-style,transition".split(","),
105
+ c=["khtml","moz","ms","o","webkit"],m;for(m in a)for(h=0;h<b.length;h++)if(i=b[h],i in a[m])for(var j=a[m][i],k=0;k<c.length;k++)a[m]["-"+c[k]+"-"+i]=j;(function(a,b){function c(a){var b="",d;for(d in a){var h=d.replace(/#/g,"#"+f.B+"-").replace(/\./g,"."+f.B+"-"),b=b+("\n"+h+" {"),h=a[d],e;for(e in h)b+=e+":"+h[e]+";";b+="}"}return b}var d=c(a)+function(a){var b="",d;for(d in a)b+="\n"+d+" {"+c(a[d])+"\n}";return b}(b),h=document.head||document.getElementsByTagName("head")[0]||document.documentElement,
106
+ e=document.createElement("style");h.appendChild(e);e.setAttribute("type","text/css");e.styleSheet?e.styleSheet.cssText=d:e.textContent=d})(a,e)};f.prototype.Hd=d.o(function(){if(this.gb){var a=this;a.td="postMessage"in window;a.ca=a.gb;var b=a.gb.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?/ ]{11})/i),c=a.gb.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.fa=p,a.sd=b[1],a.td)window.onYouTubeIframeAPIReady=function(){a.k("video-frame")&&a.nc()},b=document.createElement("script"),
107
+ b.src=a.Ya+"www.youtube.com/iframe_api",c=document.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.fa=p,a.rd=c[1];if(a.$("ie",7)||a.$("firefox",3))a.fa=F,a.Na=p}});f.prototype.fc=d.o(function(){function a(a,b){var c={};if(document.defaultView&&document.defaultView.getComputedStyle)c=document.defaultView.getComputedStyle(a,w);else if(a.currentStyle)c=a.currentStyle;return c[b]}var b=this;d.ea(b.k("bg"),"click",function(){b.Cb()});if(this.K){var c=this.k("overlay");c&&"hidden"!==
108
+ a(c,"visibility")&&"none"!==a(c,"display")&&this.gc()}});f.prototype.gc=d.o(function(a){if(!this.Kc)this.Kc=p,this.K&&(this.dc()[this.K]=1*new Date,this.Rb.save()),this.vb("$campaign_delivery",a),this.da.people.append({$campaigns:this.K,$notifications:{campaign_id:this.K,message_id:this.Lc,type:"web",time:new Date}})});f.prototype.Jd=function(a){var b=this;if(0===this.Ta.length)a();else{for(var c=0,d=[],e=function(){c++;c===b.Ta.length&&a&&(a(),a=w)},f=0;f<this.Ta.length;f++){var m=new Image;m.onload=
109
+ e;m.src=this.Ta[f];m.complete&&e();d.push(m)}this.$("ie",7)&&setTimeout(function(){var b=p;for(f=0;f<d.length;f++)d[f].complete||(b=F);b&&a&&(a(),a=w)},500)}};f.prototype.ic=d.o(function(){window.clearInterval(this.Md);this.wa.style.visibility="hidden";this.q.removeChild(this.wa)});f.prototype.kc=function(){function a(a){if(a in d)return p;if(!c)for(var a=a[0].toUpperCase()+a.slice(1),a=["O"+a,"Webkit"+a,"Moz"+a],b=0;b<a.length;b++)if(a[b]in d)return p;return F}function b(a){return(a=navigator.userAgent.match(a))&&
110
+ a[1]}this.F={};this.F.chrome=b(/Chrome\/(\d+)/);this.F.firefox=b(/Firefox\/(\d+)/);this.F.ie=b(/MSIE (\d+).+/);!this.F.ie&&!window.ActiveXObject&&"ActiveXObject"in window&&(this.F.ie=11);if(this.q=document.body||document.getElementsByTagName("body")[0])this.Zd=Math.max(this.q.scrollWidth,document.documentElement.scrollWidth,this.q.offsetWidth,document.documentElement.offsetWidth,this.q.clientWidth,document.documentElement.clientWidth),this.Yd=Math.max(this.q.scrollHeight,document.documentElement.scrollHeight,
111
+ this.q.offsetHeight,document.documentElement.offsetHeight,this.q.clientHeight,document.documentElement.clientHeight);var c=this.F.ie,d=document.createElement("div").style;this.pd=this.q&&a("transition")&&a("transform");this.Hb=(33<=this.F.chrome||15<=this.F.firefox)&&this.q&&a("backfaceVisibility")&&a("perspective")&&a("transform")};f.prototype.Ld=d.o(function(){function a(){window.YT&&window.YT.loaded&&b.nc();b.Je=p;b.ba().style.visibility="hidden"}var b=this,c=[{s:b.ba(),p:"opacity",start:1,m:0},
112
+ {s:b.ba(),p:"top",start:f.N,m:-500},{s:b.k("video-noflip"),p:"opacity",start:0,m:1},{s:b.k("video-noflip"),p:"top",start:2*-b.ia,m:0}];if(b.v){var d=b.k("bg"),e=b.k("overlay");d.style.width="100%";d.style.height="100%";e.style.width="100%";b.Z(b.ba(),"exiting");b.Z(d,"visible");c.push({s:b.k("bg"),p:"opacity",start:0,m:f.Da})}b.k("video-holder").innerHTML=b.$e;b.Hb?(b.Z("flipper","flipped"),setTimeout(a,f.Y)):b.Ga(c,f.Y,a)});f.prototype.vb=function(a,b,c){this.K?(b=b||{},b=d.extend(b,{campaign_id:this.K,
113
+ message_id:this.Lc,message_type:"web_inapp",message_subtype:this.va}),this.da.track(a,b,c)):c&&c.call()};f.prototype.nc=d.o(function(){var a=this;if(!a.af){a.af=p;var b=a.k("video-elapsed"),c=a.k("video-time"),e=a.k("video-progress");new window.YT.Player(f.B+"-video-frame",{events:{onReady:function(f){function g(a){var a=Math.round(j-a),b=Math.floor(a/60),d=Math.floor(b/60),a=a-60*b;c.innerHTML="-"+(d?d+":":"")+("00"+(b-60*d)).slice(-2)+":"+("00"+a).slice(-2)}var m=f.target,j=m.getDuration();g(0);
114
+ a.Md=window.setInterval(function(){var a=m.getCurrentTime();b.style.width=100*(a/j)+"%";g(a)},250);d.ea(e,"click",function(a){a=Math.max(0,a.pageX-e.getBoundingClientRect().left);m.seekTo(j*a/e.clientWidth,p)})}}})}});d.extend(k.prototype,E);k.prototype.pa=function(a){this.d=a};k.prototype.set=N(function(a,b,c){var e=this.Zc(a,b);d.e(a)&&(c=b);this.I("save_referrer")&&this.d.persistence.Wb(document.referrer);e.$set=d.extend({},d.info.re(),this.d.persistence.fe(),e.$set);return this.l(e,c)});k.prototype.Za=
115
+ N(function(a,b,c){var e=this.bd(a,b);d.e(a)&&(c=b);return this.l(e,c)});k.prototype.fb=N(function(a,b){return this.l(this.md(a),b)});k.prototype.Gc=N(function(a,b,c){var e={},f={};d.e(a)?(d.a(a,function(a,b){this.O(b)||(isNaN(parseFloat(a))?o.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[b]=a)},this),c=b):(d.g(b)&&(b=1),f[a]=b);e.$add=f;return this.l(e,c)});k.prototype.append=N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.Pd(a,b),c)});k.prototype.remove=
116
+ N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.Uc(a,b),c)});k.prototype.Aa=N(function(a,b,c){d.e(a)&&(c=b);return this.l(this.kd(a,b),c)});k.prototype.Qe=N(function(a,b,c){if(!d.Jc(a)&&(a=parseFloat(a),isNaN(a))){o.error("Invalid value passed to mixpanel.people.track_charge - must be a number");return}return this.append("$transactions",d.extend({$amount:a},b),c)});k.prototype.sc=function(a){return this.set("$transactions",[],a)};k.prototype.zc=function(){if(this.rb())return this.l({$delete:this.d.V()});
117
+ o.error("mixpanel.people.delete_user() requires you to call identify() first")};k.prototype.toString=function(){return this.d.toString()+".people"};k.prototype.l=function(a,b){a.$token=this.I("token");a.$distinct_id=this.d.V();var c=this.d.G("$device_id"),e=this.d.G("$user_id"),f=this.d.G("$had_persisted_distinct_id");c&&(a.$device_id=c);e&&(a.$user_id=e);f&&(a.$had_persisted_distinct_id=f);c=d.Db(a);return!this.rb()?(this.Ad(a),d.g(b)||(this.I("verbose")?b({status:-1,error:w}):b(-1)),d.truncate(c,
118
+ 255)):this.d.wb({type:"people",data:c,T:this.I("api_host")+"/engage/",yb:this.d.z.qe},b)};k.prototype.I=function(a){return this.d.c(a)};k.prototype.rb=function(){return this.d.aa.Jb===p};k.prototype.Ad=function(a){"$set"in a?this.d.persistence.D("$set",a):"$set_once"in a?this.d.persistence.D("$set_once",a):"$unset"in a?this.d.persistence.D("$unset",a):"$add"in a?this.d.persistence.D("$add",a):"$append"in a?this.d.persistence.D("$append",a):"$remove"in a?this.d.persistence.D("$remove",a):"$union"in
119
+ a?this.d.persistence.D("$union",a):o.error("Invalid call to _enqueue():",a)};k.prototype.na=function(a,b,c,e){var f=this,g=d.extend({},this.d.persistence.Ia(a)),m=g;!d.g(g)&&d.e(g)&&!d.W(g)&&(f.d.persistence.J(a,g),e&&(m=e(g)),b.call(f,m,function(b,e){0===b&&f.d.persistence.D(a,g);d.g(c)||c(b,e)}))};k.prototype.Cd=function(a,b,c,e,f,g,m){var j=this,k=this.d.persistence.Ia("$append"),o=this.d.persistence.Ia("$remove");this.na("$set",this.set,a);this.na("$set_once",this.Za,e);this.na("$unset",this.fb,
120
+ g,function(a){return d.keys(a)});this.na("$add",this.Gc,b);this.na("$union",this.Aa,f);if(!d.g(k)&&d.isArray(k)&&k.length){for(var q,a=function(a,b){0===a&&j.d.persistence.D("$append",q);d.g(c)||c(a,b)},b=k.length-1;0<=b;b--)q=k.pop(),d.W(q)||j.append(q,a);j.d.persistence.save()}if(!d.g(o)&&d.isArray(o)&&o.length){for(var r,k=function(a,b){0===a&&j.d.persistence.D("$remove",r);d.g(m)||m(a,b)},a=o.length-1;0<=a;a--)r=o.pop(),d.W(r)||j.remove(r,k);j.d.persistence.save()}};k.prototype.O=function(a){return"$distinct_id"===
121
+ a||"$token"===a||"$device_id"===a||"$user_id"===a||"$had_persisted_distinct_id"===a};k.prototype.set=k.prototype.set;k.prototype.set_once=k.prototype.Za;k.prototype.unset=k.prototype.fb;k.prototype.increment=k.prototype.Gc;k.prototype.append=k.prototype.append;k.prototype.remove=k.prototype.remove;k.prototype.union=k.prototype.Aa;k.prototype.track_charge=k.prototype.Qe;k.prototype.clear_charges=k.prototype.sc;k.prototype.delete_user=k.prototype.zc;k.prototype.toString=k.prototype.toString;var ha,
122
+ x,T=B.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,ta=!T&&-1===z.indexOf("MSIE")&&-1===z.indexOf("Mozilla"),fa=w;J.sendBeacon&&(fa=function(){return J.sendBeacon.apply(J,arguments)});var ab={api_host:"https://api-js.mixpanel.com",api_method:"POST",api_transport:"XHR",app_host:"https://mixpanel.com",cdn:"https://cdn.mxpnl.com",cross_site_cookie:F,cross_subdomain_cookie:p,persistence:"cookie",persistence_name:"",cookie_domain:"",cookie_name:"",loaded:Y,store_google:p,save_referrer:p,test:F,
123
+ verbose:F,img:F,debug:F,track_links_timeout:300,cookie_expiration:365,upgrade:F,disable_persistence:F,disable_cookie:F,secure_cookie:F,ip:p,opt_out_tracking_by_default:F,opt_out_persistence_by_default:F,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:w,property_blacklist:[],xhr_headers:{},inapp_protocol:"//",inapp_link_new_window:F,ignore_dnt:F,batch_requests:p,batch_size:50,batch_flush_interval_ms:5E3,batch_request_timeout_ms:9E4,batch_autostart:p,hooks:{}},sa=F;e.prototype.Lb=
124
+ function(a,b,c){if(d.g(c))o.error("You must name your new library: init(token, config, name)");else if("mixpanel"===c)o.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=X(a,b,c),x[c]=a,a.Ja(),a};e.prototype.pa=function(a,b,c){b=b||{};this.__loaded=p;this.config={};this._triggered_notifs=[];this.$c(d.extend({},ab,b,{name:c,token:a,callback_fn:("mixpanel"===c?c:"mixpanel."+c)+"._jsc"}));this._jsc=Y;this.lb=[];this.mb=[];this.kb=[];this.aa=
125
+ {disable_all_events:F,identify_called:F};this.z={};if(this.ma=this.c("batch_requests"))if(!d.localStorage.Ua(p)||!T)this.ma=F,o.log("Turning off Mixpanel request-queueing; needs XHR and localStorage support");else if(this.je(),fa&&B.addEventListener){var e=d.bind(function(){this.z.Qa.$a||this.z.Qa.flush({ld:p})},this);B.addEventListener("pagehide",function(a){a.persisted&&e()});B.addEventListener("visibilitychange",function(){"hidden"===s.visibilityState&&e()})}this.persistence=this.cookie=new q(this.config);
126
+ this.ha={};this.Dd();a=d.Yb();this.V()||this.H({distinct_id:a,$device_id:a},"")};e.prototype.Ja=function(){this.c("loaded")(this);this.lc()};e.prototype.lc=function(){this.persistence.od(s.referrer);this.c("store_google")&&this.persistence.We();this.c("save_referrer")&&this.persistence.Wb(s.referrer)};e.prototype.zd=function(){d.a(this.lb,function(a){this.ub.apply(this,a)},this);this.ta()||d.a(this.mb,function(a){this.l.apply(this,a)},this);delete this.lb;delete this.mb};e.prototype.ub=function(a,
127
+ b){if(this.c("img"))return o.error("You can't use DOM tracking functions with img = true."),F;if(!sa)return this.lb.push([a,b]),F;var c=(new a).Lb(this);return c.u.apply(c,b)};e.prototype.sb=function(a,b){if(d.g(a))return w;if(T)return function(c){a(c,b)};var c=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.c("callback_fn")+"["+e+"]";c[e]=function(d){delete c[e];a(d,b)};return f};e.prototype.l=function(a,b,c,e){var f=p;if(ta)return this.mb.push(arguments),f;var g={method:this.c("api_method"),
128
+ eb:this.c("api_transport"),qd:this.c("verbose")},m=w;if(!e&&(d.Mb(c)||"string"===typeof c))e=c,c=w;c=d.extend(g,c||{});if(!T)c.method="GET";var g="POST"===c.method,j=fa&&g&&"sendbeacon"===c.eb.toLowerCase(),k=c.qd;b.verbose&&(k=p);this.c("test")&&(b.test=1);k&&(b.verbose=1);this.c("img")&&(b.img=1);if(!T)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();g&&(m="data="+encodeURIComponent(b.data),delete b.data);a+="?"+d.ud(b);
129
+ if("img"in b)m=s.createElement("img"),m.src=a,s.body.appendChild(m);else if(j){try{f=fa(a,m)}catch(q){o.error(q),f=F}try{e&&e(f?1:0)}catch(t){o.error(t)}}else if(T)try{var r=new XMLHttpRequest;r.open(c.method,a,p);var u=this.c("xhr_headers");g&&(u["Content-Type"]="application/x-www-form-urlencoded");d.a(u,function(a,b){r.setRequestHeader(b,a)});if(c.hd&&"undefined"!==typeof r.timeout){r.timeout=c.hd;var x=(new Date).getTime()}r.withCredentials=p;r.onreadystatechange=function(){if(4===r.readyState)if(200===
130
+ r.status){if(e)if(k){var a;try{a=d.ka(r.responseText)}catch(b){if(o.error(b),c.he)a=r.responseText;else return}e(a)}else e(Number(r.responseText))}else a=r.timeout&&!r.status&&(new Date).getTime()-x>=r.timeout?"timeout":"Bad HTTP status: "+r.status+" "+r.statusText,o.error(a),e&&(k?e({status:0,error:a,ja:r}):e(0))};r.send(m)}catch(y){o.error(y),f=F}else m=s.createElement("script"),m.type="text/javascript",m.async=p,m.defer=p,m.src=a,u=s.getElementsByTagName("script")[0],u.parentNode.insertBefore(m,
131
+ u);return f};e.prototype.nb=function(a){function b(a,b){d.a(a,function(a){if(d.isArray(a[0])){var c=b;d.a(a,function(a){c=c[a[0]].apply(c,a.slice(1))})}else this[a[0]].apply(this,a.slice(1))},b)}var c,e=[],f=[],g=[];d.a(a,function(a){a&&(c=a[0],d.isArray(c)?g.push(a):"function"===typeof a?a.call(this):d.isArray(a)&&"alias"===c?e.push(a):d.isArray(a)&&-1!==c.indexOf("track")&&"function"===typeof this[c]?g.push(a):f.push(a))},this);b(e,this);b(f,this);b(g,this)};e.prototype.oc=function(){return!!this.z.Qa};
132
+ e.prototype.je=function(){var a=this.c("token");if(!this.oc()){var b=d.bind(function(b){return new H("__mpq_"+a+b.Sb,{Q:this.config,Ae:d.bind(function(a,d,e){this.l(this.c("api_host")+b.T,ua(a),d,this.sb(e,a))},this),Ka:d.bind(function(a){return this.jc("before_send_"+b.type,a)},this)})},this);this.z={Qa:b({type:"events",T:"/track/",Sb:"_ev"}),qe:b({type:"people",T:"/engage/",Sb:"_pp"}),ge:b({type:"groups",T:"/groups/",Sb:"_gr"})}}this.c("batch_autostart")&&this.dd()};e.prototype.dd=function(){if(this.oc())this.ma=
133
+ p,d.a(this.z,function(a){a.start()})};e.prototype.Le=function(){this.ma=F;d.a(this.z,function(a){a.stop();a.clear()})};e.prototype.push=function(a){this.nb([a])};e.prototype.disable=function(a){"undefined"===typeof a?this.aa.Xd=p:this.kb=this.kb.concat(a)};e.prototype.wb=function(a,b){var c=d.truncate(a.data,255),e=a.T,f=a.yb,g=a.Ie,k=a.Be||{},b=b||Y,j=p,q=d.bind(function(){k.cd||(c=this.jc("before_send_"+a.type,c));return c?(o.log("MIXPANEL REQUEST:"),o.log(c),this.l(e,ua(c),k,this.sb(b,c))):w},
134
+ this);this.ma&&!g?f.Eb(c,function(a){a?b(1,c):q()}):j=q();return j&&c};e.prototype.u=P(function(a,b,c,e){!e&&"function"===typeof c&&(e=c,c=w);var c=c||{},f=c.transport;if(f)c.eb=f;f=c.send_immediately;"function"!==typeof e&&(e=Y);if(d.g(a))o.error("No event name provided to mixpanel.track");else if(this.bc(a))e(0);else{b=b||{};b.token=this.c("token");var g=this.persistence.te(a);d.g(g)||(b.$duration=parseFloat((((new Date).getTime()-g)/1E3).toFixed(3)));this.lc();b=d.extend({},d.info.xa(),this.persistence.xa(),
135
+ this.ha,b);g=this.c("property_blacklist");d.isArray(g)?d.a(g,function(a){delete b[a]}):o.error("Invalid value for property_blacklist config: "+g);a={event:a,properties:b};c=this.wb({type:"events",data:a,T:this.c("api_host")+"/track/",yb:this.z.Qa,Ie:f,Be:c},e);this.ac(a);return c}});e.prototype.Ge=P(function(a,b,c){d.isArray(b)||(b=[b]);var e={};e[a]=b;this.w(e);return this.people.set(a,b,c)});e.prototype.Nd=P(function(a,b,c){var d=this.G(a);if(d===n){var e={};e[a]=[b];this.w(e)}else-1===d.indexOf(b)&&
136
+ (d.push(b),this.w(e));return this.people.Aa(a,b,c)});e.prototype.ue=P(function(a,b,c){var d=this.G(a);if(d!==n){var e=d.indexOf(b);-1<e&&(d.splice(e,1),this.w({df:d}));0===d.length&&this.Ba(a)}return this.people.remove(a,b,c)});e.prototype.Ue=P(function(a,b,c,e){var f=d.extend({},b||{});d.a(c,function(a,b){a!==w&&a!==n&&(f[b]=a)});return this.u(a,f,e)});e.prototype.yd=function(a,b){return a+"_"+JSON.stringify(b)};e.prototype.ee=function(a,b){var c=this.yd(a,b),d=this.Zb[c];if(d===n||d.qb!==a||d.pb!==
137
+ b)d=new t,d.pa(this,a,b),this.Zb[c]=d;return d};e.prototype.Te=function(a){if(d.g(a))a=s.location.href;this.u("mp_page_view",d.info.pe(a))};e.prototype.Se=function(){return this.ub.call(this,R,arguments)};e.prototype.Re=function(){return this.ub.call(this,Z,arguments)};e.prototype.Ne=function(a){d.g(a)?o.error("No event name provided to mixpanel.time_event"):this.bc(a)||this.persistence.Fe(a)};var Ia={persistent:p};e.prototype.w=function(a,b){var c=ia(b);c.persistent?this.persistence.w(a,c.days):
138
+ d.extend(this.ha,a)};e.prototype.H=function(a,b,c){c=ia(c);c.persistent?this.persistence.H(a,b,c.days):("undefined"===typeof b&&(b="None"),d.a(a,function(a,c){if(!this.ha.hasOwnProperty(c)||this.ha[c]===b)this.ha[c]=a},this))};e.prototype.Ba=function(a,b){b=ia(b);b.persistent?this.persistence.Ba(a):delete this.ha[a]};e.prototype.hc=function(a,b){var c={};c[a]=b;this.w(c)};e.prototype.Ib=function(a,b,c,d,e,f,k,j){var o=this.V();this.w({$user_id:a});this.G("$device_id")||this.H({$had_persisted_distinct_id:p,
139
+ $device_id:o},"");a!==o&&a!==this.G("__alias")&&(this.Ba("__alias"),this.w({distinct_id:a}));this.$b(this.V());this.aa.Jb=p;this.people.Cd(b,c,d,e,f,k,j);a!==o&&this.u("$identify",{distinct_id:a,$anon_distinct_id:o},{cd:p})};e.prototype.reset=function(){this.persistence.clear();this.aa.Jb=F;var a=d.Yb();this.H({distinct_id:a,$device_id:a},"")};e.prototype.V=function(){return this.G("distinct_id")};e.prototype.Od=function(a,b){if(a===this.G("$people_distinct_id"))return o.L("Attempting to create alias for existing People user - aborting."),
140
+ -2;var c=this;d.g(b)&&(b=this.V());if(a!==b)return this.hc("__alias",a),this.u("$create_alias",{alias:a,distinct_id:b},{cd:p},function(){c.Ib(a)});o.error("alias matches current distinct_id - skipping api call.");this.Ib(a);return-1};e.prototype.me=function(a){this.hc("mp_name_tag",a)};e.prototype.$c=function(a){if(d.e(a))d.extend(this.config,a),a.batch_size&&d.a(this.z,function(a){a.Wc()}),this.c("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.c("disable_persistence")||
141
+ (this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.nd(this.config),G=G||this.c("debug")};e.prototype.c=function(a){return this.config[a]};e.prototype.jc=function(a){var b=(this.config.hooks[a]||Ja).apply(this,Q.call(arguments,1));"undefined"===typeof b&&(o.error(a+" hook did not return a value"),b=w);return b};e.prototype.G=function(a){return this.persistence.props[a]};e.prototype.toString=function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+
142
+ a);return a};e.prototype.bc=function(a){return d.Ic(z)||this.aa.Xd||d.Fc(this.kb,a)};e.prototype.ac=P(function(a){if(this.mc)for(var b=this._triggered_notifs,c=0;c<b.length;c++){if((new f(b[c],this)).Id(a)){this.tb(b[c]);break}}else this.cc.push(a)});e.prototype.$b=P(function(a){a&&!this.aa.Jb&&!this.c("disable_notifications")&&(o.log("MIXPANEL NOTIFICATION CHECK"),this.l(this.c("api_host")+"/decide/",{verbose:p,version:"3",lib:"web",token:this.c("token"),distinct_id:a},{method:"GET",eb:"XHR"},this.sb(d.bind(function(a){if(a.notifications&&
143
+ 0<a.notifications.length){this._triggered_notifs=[];var c=[];d.a(a.notifications,function(a){(a.display_triggers&&0<a.display_triggers.length?this._triggered_notifs:c).push(a)},this);0<c.length&&this.tb.call(this,c[0])}this.ec()},this))))});e.prototype.ec=function(){this.mc=p;for(var a=this.cc;0<a.length;)this.ac(a.shift())};e.prototype.tb=function(a){(new f(a,this)).show()};e.prototype.Dd=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&d.localStorage.Ua()&&(!this.Sa()&&this.Sa({persistence_type:"cookie"})&&
144
+ this.Oc({enable_persistence:F}),!this.ta()&&this.ta({persistence_type:"cookie"})&&this.Pb({clear_persistence:F}),this.tc({persistence_type:"cookie",enable_persistence:F}));if(this.ta())this.Ha({clear_persistence:p});else if(!this.Sa()&&(this.c("opt_out_tracking_by_default")||d.cookie.get("mp_optout")))d.cookie.remove("mp_optout"),this.Pb({clear_persistence:this.c("opt_out_persistence_by_default")})};e.prototype.Ha=function(a){if(a&&a.clear_persistence)a=p;else if(a&&a.enable_persistence)a=F;else return;
145
+ !this.c("disable_persistence")&&this.persistence.disabled!==a&&this.persistence.ad(a);a&&d.a(this.z,function(a){a.clear()})};e.prototype.oa=function(a,b){b=d.extend({track:d.bind(this.u,this),persistence_type:this.c("opt_out_tracking_persistence_type"),cookie_prefix:this.c("opt_out_tracking_cookie_prefix"),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"),
146
+ ignore_dnt:this.c("ignore_dnt")},b);d.localStorage.Ua()||(b.persistence_type="cookie");return a(this.c("token"),{u:b.track,Oe:b.track_event_name,Pe:b.track_properties,Rc:b.persistence_type,Qc:b.cookie_prefix,uc:b.cookie_domain,vc:b.cookie_expiration,Vd:b.cross_site_cookie,wc:b.cross_subdomain_cookie,ye:b.secure_cookie,Dc:b.ignore_dnt})};e.prototype.Oc=function(a){a=d.extend({enable_persistence:p},a);this.oa(Ma,a);this.Ha(a)};e.prototype.Pb=function(a){a=d.extend({clear_persistence:p,delete_user:p},
147
+ a);a.delete_user&&this.people&&this.people.rb()&&(this.people.zc(),this.people.sc());this.oa(Na,a);this.Ha(a)};e.prototype.Sa=function(a){return this.oa(Oa,a)};e.prototype.ta=function(a){return this.oa(Aa,a)};e.prototype.tc=function(a){a=d.extend({enable_persistence:p},a);this.oa(Qa,a);this.Ha(a)};e.prototype.init=e.prototype.Lb;e.prototype.reset=e.prototype.reset;e.prototype.disable=e.prototype.disable;e.prototype.time_event=e.prototype.Ne;e.prototype.track=e.prototype.u;e.prototype.track_links=
148
+ e.prototype.Se;e.prototype.track_forms=e.prototype.Re;e.prototype.track_pageview=e.prototype.Te;e.prototype.register=e.prototype.w;e.prototype.register_once=e.prototype.H;e.prototype.unregister=e.prototype.Ba;e.prototype.identify=e.prototype.Ib;e.prototype.alias=e.prototype.Od;e.prototype.name_tag=e.prototype.me;e.prototype.set_config=e.prototype.$c;e.prototype.get_config=e.prototype.c;e.prototype.get_property=e.prototype.G;e.prototype.get_distinct_id=e.prototype.V;e.prototype.toString=e.prototype.toString;
149
+ e.prototype._check_and_handle_notifications=e.prototype.$b;e.prototype._handle_user_decide_check_complete=e.prototype.ec;e.prototype._show_notification=e.prototype.tb;e.prototype.opt_out_tracking=e.prototype.Pb;e.prototype.opt_in_tracking=e.prototype.Oc;e.prototype.has_opted_out_tracking=e.prototype.ta;e.prototype.has_opted_in_tracking=e.prototype.Sa;e.prototype.clear_opt_in_out_tracking=e.prototype.tc;e.prototype.get_group=e.prototype.ee;e.prototype.set_group=e.prototype.Ge;e.prototype.add_group=
150
+ e.prototype.Nd;e.prototype.remove_group=e.prototype.ue;e.prototype.track_with_groups=e.prototype.Ue;e.prototype.start_batch_senders=e.prototype.dd;e.prototype.stop_batch_senders=e.prototype.Le;q.prototype.properties=q.prototype.xa;q.prototype.update_search_keyword=q.prototype.od;q.prototype.update_referrer_info=q.prototype.Wb;q.prototype.get_cross_subdomain=q.prototype.de;q.prototype.clear=q.prototype.clear;d.ve(e);var L={};(function(){ha=1;x=B.mixpanel;d.g(x)?o.L('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
151
+ x.__loaded||x.config&&x.persistence?o.L("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.L("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(d.a(x._i,function(a){a&&d.isArray(a)&&(L[a[a.length-1]]=X.apply(this,a))}),Ga(),x.init(),d.a(L,function(a){a.Ja()}),ga())})()})();
163
152
  })();