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