mixpanel-browser 2.40.1 → 2.43.0

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