(function() {
var l=!0,n=null,r=!1;function C(){return function(){}}
(function(){function U(a){function b(){try{a.C=a.C||{},a.C.$__c=(a.C.$__c||0)+1,c.cookie.set("mp_"+d+"__c",a.C.$__c,1,l)}catch(b){p.error(b)}}var d=a.c("name");a.C=a.C||{};a.C.$__c=parseInt(c.cookie.get("mp_"+d+"__c"))||0;c.p(m,"submit",b);c.p(m,"change",b);var e=n;c.p(m,"mousedown",function(a){e=a.target});c.p(m,"mouseup",function(a){a.target===e&&b()})}function V(){function a(){if(!a.$c)P=a.$c=l,Q=r,c.a(A,function(a){a.qc()})}function b(){try{m.documentElement.doScroll("left")}catch(d){setTimeout(b,1);
return}a()}if(m.addEventListener)"complete"===m.readyState?a():m.addEventListener("DOMContentLoaded",a,r);else if(m.attachEvent){m.attachEvent("onreadystatechange",a);var d=r;try{d=u.frameElement===n}catch(e){}m.documentElement.doScroll&&d&&b()}c.p(u,"load",a,l)}function W(){v.init=function(a,b,d){if(d)return v[d]||(v[d]=A[d]=I(a,b,d),v[d].ra()),v[d];d=v;if(A.mixpanel)d=A.mixpanel;else if(a)d=I(a,b,"mixpanel"),d.ra(),A.mixpanel=d;v=d;1===M&&(u.mixpanel=v);X()}}function X(){c.a(A,function(a,b){"mixpanel"!==
b&&(v[b]=a)});v._=c}function I(a,b,d){var e,f="mixpanel"===d?v:v[d];if(f&&0===M)e=f;else{if(f&&!c.isArray(f)){p.error("You have already initialized "+d);return}e=new h}e.Na(a,b,d);e.people=new o;e.people.Na(e);B=B||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack")){G.ad(e.c("token"),100,100)?G.fd()?G.W(e):(e.__autotrack_enabled=r,p.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=r,p.log("Not in active bucket: disabling Automatic Event Collection."));
try{U(e)}catch(j){p.error(j)}}!c.e(f)&&c.isArray(f)&&(e.Ja.call(e.people,f.people),e.Ja(f));return e}function o(){}function h(){}function q(a){this.props={};this.Fb=r;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)p.U("Unknown persistence type "+b+"; falling back to cookie"),b=a.persistence="cookie";if(b="localStorage"===b){b=l;try{c.localStorage.set("__mplssupport__","xyz"),"xyz"!==c.localStorage.get("__mplssupport__")&&
(b=r),c.localStorage.remove("__mplssupport__")}catch(d){b=r}b||p.error("localStorage unsupported; falling back to cookie store")}this.v=b?c.localStorage:c.cookie;this.load();this.ec(a);this.Fd(a);this.save()}function J(){this.Ub="submit"}function D(){this.Ub="click"}function y(){}var B=r,u;u="undefined"===typeof window?{navigator:{userAgent:""},document:{location:{}}}:window;var z=Array.prototype,R=Object.prototype,E=z.slice,H=R.toString,K=R.hasOwnProperty,x=u.console,F=u.navigator,m=u.document,w=
F.userAgent,N=Function.prototype.bind,S=z.forEach,T=z.indexOf,z=Array.isArray,O={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},p={log:function(){if(B&&!c.e(x)&&x)try{x.log.apply(x,arguments)}catch(a){c.a(arguments,function(a){x.log(a)})}},error:function(){if(B&&!c.e(x)&&x){var a=["Mixpanel error:"].concat(c.ia(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}},U:function(){if(!c.e(x)&&x){var a=["Mixpanel error:"].concat(c.ia(arguments));
try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}}};c.bind=function(a,b){var d,e;if(N&&a.bind===N)return N.apply(a,E.call(arguments,1));if(!c.cb(a))throw new TypeError;d=E.call(arguments,2);return e=function(){if(!(this instanceof e))return a.apply(b,d.concat(E.call(arguments)));var c={};c.prototype=a.prototype;var j=new c;c.prototype=n;c=a.apply(j,d.concat(E.call(arguments)));return Object(c)===c?c:j}};c.Db=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===n||void 0===a))if(S&&a.forEach===S)a.forEach(b,d);else if(a.length===+a.length)for(var c=0,f=a.length;c<f&&!(c in a&&b.call(d,a[c],c,a)===O);c++);else for(c in a)if(K.call(a,c)&&b.call(d,a[c],c,a)===O)break};c.L=function(a){a&&c.eb(a)&&(a=a.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#039;"));return a};c.extend=function(a){c.a(E.call(arguments,1),function(b){for(var d in b)void 0!==b[d]&&(a[d]=b[d])});return a};
c.isArray=z||function(a){return"[object Array]"===H.call(a)};c.cb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return r}};c.ed=function(a){return!(!a||!K.call(a,"callee"))};c.ia=function(a){return!a?[]:a.ia?a.ia():c.isArray(a)||c.ed(a)?E.call(a):c.Hd(a)};c.keys=function(a){var b=[];if(a===n)return b;c.a(a,function(a,c){b[b.length]=c});return b};c.Hd=function(a){var b=[];if(a===n)return b;c.a(a,function(a){b[b.length]=a});return b};c.Nd=function(a){return a};c.Mb=function(a,b){var d=r;
if(a===n)return d;if(T&&a.indexOf===T)return-1!=a.indexOf(b);c.a(a,function(a){if(d||(d=a===b))return O});return d};c.d=function(a,b){return-1!==a.indexOf(b)};c.Ob=function(a,b){a.prototype=new b;a.zd=b.prototype};c.k=function(a){return a===Object(a)&&!c.isArray(a)};c.bb=function(a){if(c.k(a)){for(var b in a)if(K.call(a,b))return r;return l}return r};c.e=function(a){return void 0===a};c.eb=function(a){return"[object String]"==H.call(a)};c.gd=function(a){return"[object Date]"==H.call(a)};c.jd=function(a){return"[object Number]"==
H.call(a)};c.hd=function(a){return!!(a&&1===a.nodeType)};c.Jb=function(a){c.a(a,function(b,d){c.gd(b)?a[d]=c.bd(b):c.k(b)&&(a[d]=c.Jb(b))});return a};c.timestamp=function(){Date.now=Date.now||function(){return+new Date};return Date.now()};c.bd=function(a){function b(a){return 10>a?"0"+a:a}return a.getUTCFullYear()+"-"+b(a.getUTCMonth()+1)+"-"+b(a.getUTCDate())+"T"+b(a.getUTCHours())+":"+b(a.getUTCMinutes())+":"+b(a.getUTCSeconds())};c.l=function(a){return function(){try{return a.apply(this,arguments)}catch(b){p.U("Implementation error. Please turn on debug and contact support@mixpanel.com."),
B&&p.U(b)}}};c.pd=function(a){for(var b=["identify","_check_and_handle_notifications","_show_notification"],d=0;d<b.length;d++)a.prototype[b[d]]=c.l(a.prototype[b[d]])};c.qd=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.l(a[b]))};c.ya=function(a){var b={};c.a(a,function(a,e){c.eb(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.k(a)?(d={},c.a(a,function(a,f){d[f]=
c.truncate(a,b)})):d=a;return d};c.ma=function(){return function(a){function b(a,c){var j="",k=0,i=k="",i=0,g=j,h=[],s=c[a];s&&"object"===typeof s&&"function"===typeof s.toJSON&&(s=s.toJSON(a));switch(typeof s){case "string":return d(s);case "number":return isFinite(s)?""+s:"null";case "boolean":case "null":return""+s;case "object":if(!s)return"null";j+="    ";h=[];if("[object Array]"===H.apply(s)){i=s.length;for(k=0;k<i;k+=1)h[k]=b(k,s)||"null";return i=0===h.length?"[]":j?"[\n"+j+h.join(",\n"+j)+
"\n"+g+"]":"["+h.join(",")+"]"}for(k in s)K.call(s,k)&&(i=b(k,s))&&h.push(d(k)+(j?": ":":")+i);return i=0===h.length?"{}":j?"{"+h.join(",")+""+g+"}":"{"+h.join(",")+"}"}}function d(a){var b=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,d={"\u0008":"\\b","\t":"\\t","\n":"\\n","\u000c":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};b.lastIndex=0;return b.test(a)?'"'+a.replace(b,function(a){var b=d[a];return"string"===typeof b?b:"\\u"+
("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+a+'"'}return b("",{"":a})}}();c.la=function(){function a(){switch(i){case "t":return f("t"),f("r"),f("u"),f("e"),l;case "f":return f("f"),f("a"),f("l"),f("s"),f("e"),r;case "n":return f("n"),f("u"),f("l"),f("l"),n}j('Unexpected "'+i+'"')}function b(){for(;i&&" ">=i;)f()}function d(){var a,b,d="",c;if('"'===i)for(;f();){if('"'===i)return f(),d;if("\\"===i)if(f(),"u"===i){for(b=c=0;4>b;b+=1){a=parseInt(f(),16);if(!isFinite(a))break;c=16*c+a}d+=
String.fromCharCode(c)}else if("string"===typeof g[i])d+=g[i];else break;else d+=i}j("Bad string")}function c(){var a;a="";"-"===i&&(a="-",f("-"));for(;"0"<=i&&"9">=i;)a+=i,f();if("."===i)for(a+=".";f()&&"0"<=i&&"9">=i;)a+=i;if("e"===i||"E"===i){a+=i;f();if("-"===i||"+"===i)a+=i,f();for(;"0"<=i&&"9">=i;)a+=i,f()}a=+a;if(isFinite(a))return a;j("Bad number")}function f(a){a&&a!==i&&j("Expected '"+a+"' instead of '"+i+"'");i=h.charAt(k);k+=1;return i}function j(a){throw{name:"SyntaxError",message:a,
Ld:k,text:h};}var k,i,g={'"':'"',"\\":"\\","/":"/",b:"\u0008",f:"\u000c",n:"\n",r:"\r",t:"\t"},h,s;s=function(){b();switch(i){case "{":var k;a:{var g,h={};if("{"===i){f("{");b();if("}"===i){f("}");k=h;break a}for(;i;){g=d();b();f(":");Object.hasOwnProperty.call(h,g)&&j('Duplicate key "'+g+'"');h[g]=s();b();if("}"===i){f("}");k=h;break a}f(",");b()}}j("Bad object")}return k;case "[":a:{k=[];if("["===i){f("[");b();if("]"===i){f("]");g=k;break a}for(;i;){k.push(s());b();if("]"===i){f("]");g=k;break a}f(",");
b()}}j("Bad array")}return g;case '"':return d();case "-":return c();default:return"0"<=i&&"9">=i?c():a()}};return function(a){h=a;k=0;i=" ";a=s();b();i&&j("Syntax error");return a}}();c.Bb=function(a){var b,d,e,f,j=0,k=0,i="",i=[];if(!a)return a;a=c.Gd(a);do b=a.charCodeAt(j++),d=a.charCodeAt(j++),e=a.charCodeAt(j++),f=b<<16|d<<8|e,b=f>>18&63,d=f>>12&63,e=f>>6&63,f&=63,i[k++]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(b)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(d)+
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(f);while(j<a.length);i=i.join("");switch(a.length%3){case 1:i=i.slice(0,-2)+"==";break;case 2:i=i.slice(0,-1)+"="}return i};c.Gd=function(a){var a=(a+"").replace(/\r\n/g,"\n").replace(/\r/g,"\n"),b="",d,c,f=0,j;d=c=0;f=a.length;for(j=0;j<f;j++){var k=a.charCodeAt(j),i=n;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!==n&&(c>d&&(b+=a.substring(d,c)),b+=i,d=c=j+1)}c>d&&(b+=a.substring(d,a.length));return b};c.lb=function(){function a(){function a(b,d){var c,f=0;for(c=0;c<d.length;c++)f|=j[c]<<8*c;return b^f}var b,c,j=[],k=0;for(b=0;b<w.length;b++)c=w.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=(screen.height*
screen.width).toString(16);return b()+"-"+Math.random().toString(16).replace(".","")+"-"+a()+"-"+d+"-"+b()}}();c.Pb=function(a){return/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(a)?l:r};c.kc=function(a){var b,d,e,f=[];c.e(b)&&(b="&");c.a(a,function(a,b){d=encodeURIComponent(a.toString());e=encodeURIComponent(b);f[f.length]=e+"="+d});return f.join(b)};c.Kb=function(a,b){var b=b.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"),d=RegExp("[\\?&]"+b+"=([^&#]*)").exec(a);
return d===n||d&&"string"!==typeof d[1]&&d[1].length?"":decodeURIComponent(d[1]).replace(/\+/g," ")};c.da=function(a,b){var d=a.match(RegExp(b+"=([^&]*)"));return d?d[1]:n};c.cookie={get:function(a){for(var a=a+"=",b=m.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 n},parse:function(a){var b;try{b=c.la(c.cookie.get(a))||{}}catch(d){}return b},Od:function(a,b,c,e,f){var d;
var j="",k="",i="";e&&(d=(j=(j=m.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i))?j[0]:"")?"; domain=."+j:"",j=d);c&&(k=new Date,k.setTime(k.getTime()+1E3*c),k="; expires="+k.toGMTString());f&&(i="; secure");m.cookie=a+"="+encodeURIComponent(b)+k+"; path=/"+j+i},set:function(a,b,c,e,f){var d;var j="",k="",i="";e&&(d=(j=(j=m.location.hostname.match(/[a-z0-9][a-z0-9\-]+\.[a-z\.]{2,6}$/i))?j[0]:"")?"; domain=."+j:"",j=d);c&&(k=new Date,k.setTime(k.getTime()+864E5*c),k="; expires="+k.toGMTString());
f&&(i="; secure");a=a+"="+encodeURIComponent(b)+k+"; path=/"+j+i;return m.cookie=a},remove:function(a,b){c.cookie.set(a,"",-1,b)}};c.localStorage={error:function(a){p.error("localStorage error: "+a)},get:function(a){try{return window.localStorage.getItem(a)}catch(b){c.localStorage.error(b)}return n},parse:function(a){try{return c.la(c.localStorage.get(a))||{}}catch(b){}return n},set:function(a,b){try{window.localStorage.setItem(a,b)}catch(d){c.localStorage.error(d)}},remove:function(a){try{window.localStorage.removeItem(a)}catch(b){c.localStorage.error(b)}}};
c.p=function(){function a(a,e,f){return function(j){if(j=j||b(window.event)){var k=l,i;c.cb(f)&&(i=f(j));j=e.call(a,j);if(r===i||r===j)k=r;return k}}}function b(a){if(a)a.preventDefault=b.preventDefault,a.stopPropagation=b.stopPropagation;return a}b.preventDefault=function(){this.returnValue=r};b.stopPropagation=function(){this.cancelBubble=l};return function(b,c,f,j,k){b?b.addEventListener&&!j?b.addEventListener(c,f,!!k):(c="on"+c,b[c]=a(b,f,b[c])):p.error("No valid element provided to register_event")}}();
c.Zc=function(){function a(a,b){return 0<=(" "+a.className+" ").replace(d," ").indexOf(" "+b+" ")}function b(b){if(!m.getElementsByTagName)return[];var b=b.split(" "),d,j,k,i,g,h,s,t=[m];for(i=0;i<b.length;i++)if(d=b[i].replace(/^\s+/,"").replace(/\s+$/,""),-1<d.indexOf("#")){j=d.split("#");d=j[0];t=m.getElementById(j[1]);if(!t||d&&t.nodeName.toLowerCase()!=d)return[];t=[t]}else if(-1<d.indexOf(".")){j=d.split(".");d=j[0];var o=j[1];d||(d="*");j=[];for(g=k=0;g<t.length;g++){s="*"==d?t[g].all?t[g].all:
t[g].getElementsByTagName("*"):t[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}t=[];for(g=d=0;g<j.length;g++)j[g].className&&c.eb(j[g].className)&&a(j[g],o)&&(t[d++]=j[g])}else if(j=d.match(/^(\w*)\[(\w+)([=~\|\^\$\*]?)=?"?([^\]"]*)"?\]$/)){d=j[1];var p=j[2],o=j[3],q=j[4];d||(d="*");j=[];for(g=k=0;g<t.length;g++){s="*"==d?t[g].all?t[g].all:t[g].getElementsByTagName("*"):t[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}t=[];d=0;switch(o){case "=":o=function(a){return a.getAttribute(p)==
q};break;case "~":o=function(a){return a.getAttribute(p).match(RegExp("\\b"+q+"\\b"))};break;case "|":o=function(a){return a.getAttribute(p).match(RegExp("^"+q+"-?"))};break;case "^":o=function(a){return 0===a.getAttribute(p).indexOf(q)};break;case "$":o=function(a){return a.getAttribute(p).lastIndexOf(q)==a.getAttribute(p).length-q.length};break;case "*":o=function(a){return-1<a.getAttribute(p).indexOf(q)};break;default:o=function(a){return a.getAttribute(p)}}t=[];for(g=d=0;g<j.length;g++)o(j[g])&&
(t[d++]=j[g])}else{j=[];for(g=k=0;g<t.length;g++){s=t[g].getElementsByTagName(d);for(h=0;h<s.length;h++)j[k++]=s[h]}t=j}return t}var d=/[\t\r\n]/g;return function(a){return c.hd(a)?[a]:c.k(a)&&!c.e(a.length)?a:b.call(this,a)}}();c.info={Sc:function(){var a="",b={};c.a("utm_source utm_medium utm_campaign utm_content utm_term".split(" "),function(d){a=c.Kb(m.URL,d);a.length&&(b[d]=a)});return b},rd: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":n},sd:function(a){var b=c.info.rd(a),d={};if(b!==n)d.$search_engine=b,a=c.Kb(a,"yahoo"!=b?"q":"p"),a.length&&(d.mp_keyword=a);return d},ba:function(a,b,d){return d||c.d(a," OPR/")?c.d(a,"Mini")?"Opera Mini":"Opera":/(BlackBerry|PlayBook|BB10)/i.test(a)?"BlackBerry":c.d(a,"IEMobile")||c.d(a,"WPDesktop")?"Internet Explorer Mobile":c.d(a,"Edge")?"Microsoft Edge":c.d(a,"FBIOS")?"Facebook Mobile":
c.d(a,"Chrome")?"Chrome":c.d(a,"CriOS")?"Chrome iOS":c.d(a,"UCWEB")||c.d(a,"UCBrowser")?"UC Browser":c.d(a,"FxiOS")?"Firefox iOS":c.d(b||"","Apple")?c.d(a,"Mobile")?"Mobile Safari":"Safari":c.d(a,"Android")?"Android Mobile":c.d(a,"Konqueror")?"Konqueror":c.d(a,"Firefox")?"Firefox":c.d(a,"MSIE")||c.d(a,"Trident/")?"Internet Explorer":c.d(a,"Gecko")?"Mozilla":""},Eb:function(a,b,d){b={"Internet Explorer Mobile":/rv:(\d+(\.\d+)?)/,"Microsoft Edge":/Edge\/(\d+(\.\d+)?)/,Chrome:/Chrome\/(\d+(\.\d+)?)/,
"Chrome iOS":/CriOS\/(\d+(\.\d+)?)/,"UC Browser":/(UCBrowser|UCWEB)\/(\d+(\.\d+)?)/,Safari:/Version\/(\d+(\.\d+)?)/,"Mobile Safari":/Version\/(\d+(\.\d+)?)/,Opera:/(Opera|OPR)\/(\d+(\.\d+)?)/,Firefox:/Firefox\/(\d+(\.\d+)?)/,"Firefox iOS":/FxiOS\/(\d+(\.\d+)?)/,Konqueror:/Konqueror:(\d+(\.\d+)?)/,BlackBerry:/BlackBerry (\d+(\.\d+)?)/,"Android Mobile":/android\s(\d+(\.\d+)?)/,"Internet Explorer":/(rv:|MSIE )(\d+(\.\d+)?)/,Mozilla:/rv:(\d+(\.\d+)?)/}[c.info.ba(a,b,d)];if(void 0===b)return n;a=a.match(b);
return!a?n:parseFloat(a[a.length-2])},hb:function(){return/Windows/i.test(w)?/Phone/.test(w)||/WPDesktop/.test(w)?"Windows Phone":"Windows":/(iPhone|iPad|iPod)/.test(w)?"iOS":/Android/.test(w)?"Android":/(BlackBerry|PlayBook|BB10)/i.test(w)?"BlackBerry":/Mac/i.test(w)?"Mac OS X":/Linux/.test(w)?"Linux":/CrOS/.test(w)?"Chrome OS":""},Ib: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":""},Vb:function(a){a=a.split("/");return 3<=a.length?a[2]:""},ga:function(){return c.extend(c.ya({$os:c.info.hb(),$browser:c.info.ba(w,F.vendor,window.opera),$referrer:m.referrer,$referring_domain:c.info.Vb(m.referrer),$device:c.info.Ib(w)}),{$current_url:window.location.href,$browser_version:c.info.Eb(w,F.vendor,window.opera),$screen_height:screen.height,$screen_width:screen.width,mp_lib:"web",$lib_version:"2.14.0"})},nd:function(){return c.extend(c.ya({$os:c.info.hb(),
$browser:c.info.ba(w,F.vendor,window.opera)}),{$browser_version:c.info.Eb(w,F.vendor,window.opera)})},md:function(a){return c.ya({mp_page:a,mp_referrer:m.referrer,mp_browser:c.info.ba(w,F.vendor,window.opera),mp_platform:c.info.hb()})}};c.toArray=c.ia;c.isObject=c.k;c.JSONEncode=c.ma;c.JSONDecode=c.la;c.isBlockedUA=c.Pb;c.isEmptyObject=c.bb;c.info=c.info;c.info.device=c.info.Ib;c.info.browser=c.info.ba;c.info.properties=c.info.ga;var G={ub:[],Jc:function(a){if(a.previousElementSibling)return a.previousElementSibling;
do a=a.previousSibling;while(a&&1!==a.nodeType);return a},Gc:function(a,b){var c=document.createElement("script");c.type="text/javascript";c.src=a;c.onload=b;var e=document.getElementsByTagName("script");0<e.length?e[0].parentNode.insertBefore(c,e[0]):document.body.appendChild(c)},pa:function(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.Md||a.getAttribute("class")||"";default:return""}},zc:function(a){var b={classes:this.pa(a).split(" "),tag_name:a.tagName.toLowerCase()};
if(c.d(["input","select","textarea"],a.tagName.toLowerCase())){var d=this.rb(a);this.Ma(a,d)&&(b.value=d)}c.a(a.attributes,function(a){b["attr__"+a.name]=a.value});for(var e=d=1,f=a;f=this.Jc(f);)d++,f.tagName===a.tagName&&e++;b.nth_child=d;b.nth_of_type=e;return b},Oa:function(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()},Lc:function(a,b){if(!a||this.Oa(a,"html")||1!==a.nodeType)return r;switch(a.tagName.toLowerCase()){case "html":return r;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}},qb:function(a){return{$event_type:a,$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},yc:function(a){var b=n;switch(a.type.toLowerCase()){case "checkbox":a.checked&&(b=[a.value]);break;case "radio":if(a.checked)b=a.value;break;default:b=a.value}return b},Ac:function(a){if(a.multiple){var b=
[];c.a(a.querySelectorAll("[selected]"),function(a){b.push(a.value)});a=b}else a=a.value;return a},Ma:function(a,b){for(var d=a;d.parentNode&&!this.Oa(d,"body");d=d.parentNode){var e=this.pa(d).split(" ");if(c.d(e,"mp-sensitive")||c.d(e,"mp-no-track"))return r}if(c.d(this.pa(a).split(" "),"mp-include"))return l;if(b===n)return r;switch((a.type||"").toLowerCase()){case "hidden":return r;case "password":return r}return/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test((a.name||
a.id||"").replace(/[^a-zA-Z0-9]/g,""))||"string"===typeof b&&(/^(?:(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((b||"").replace(/[\- ]/g,""))||/(^\d{3}-?\d{2}-?\d{4}$)/.test(b))?r:l},rb:function(a){var b;switch(a.tagName.toLowerCase()){case "input":b=this.yc(a);break;case "select":b=this.Ac(a);break;default:b=a.value||a.textContent}return this.Ma(a,b)?b:n},xc:function(a){var b=
{};c.a(a.elements,function(a){var c=a.getAttribute("name")||a.getAttribute("id");if(c!==n){var c="$form_field__"+c,f=this.rb(a);this.Ma(a,f)&&(a=b[c],b[c]=void 0!==a?[].concat(a,f):f)}},this);return b},tc:function(a){var b=[];c.a(document.querySelectorAll(a.css_selector),function(a){-1<["input","select"].indexOf(a.tagName.toLowerCase())?b.push(a.value):a.textContent&&b.push(a.textContent)});return b.join(", ")},vc:function(a){var b={};c.a(this.nb,function(d){c.a(d.event_selectors,function(e){e=document.querySelectorAll(e);
c.a(e,function(f){c.d(a,f)&&(b[d.name]=this.tc(d))},this)},this)},this);return b},wc:function(a){return"undefined"===typeof a.target?a.srcElement:a.target},Nc:function(a,b){var d=this.wc(a);if(3===d.nodeType)d=d.parentNode;if(this.Lc(d,a)){for(var e=[d];d.parentNode&&!this.Oa(d,"body");)e.push(d.parentNode),d=d.parentNode;var f=[],j,g,i,h=r;c.a(e,function(a,b){"a"===a.tagName.toLowerCase()?j=a.getAttribute("href"):"form"===a.tagName.toLowerCase()&&(i=a);if(!g&&5>b&&a.textContent){var d=c.trim(a.textContent);
d&&(g=d.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}d=this.pa(a).split(" ");c.d(d,"mp-no-track")&&(h=l);f.push(this.zc(a))},this);if(h)return r;e=c.extend(this.qb(a.type),{$elements:f,$el_attr__href:j,$el_text:g},this.vc(e));i&&("submit"===a.type||"click"===a.type)&&c.extend(e,this.xc(i));b.J("$web_event",e);return l}},Kd:function(a){window.location.href=a},oc:function(a){var b=c.bind(function(b){b=b||window.event;this.Nc(b,a)},this);c.p(document,"submit",b,r,l);c.p(document,"change",
b,r,l);c.p(document,"click",b,r,l)},nb:{},W:function(a){if(!document||!document.body){console.log("document not ready yet, trying again in 500 milliseconds...");var b=this;setTimeout(function(){b.W(a)},500)}else{var d=a.c("token");if(-1<this.ub.indexOf(d))console.log('autotrack already initialized for token "'+d+'"');else if(this.ub.push(d),!this.Hc(a)){var e=c.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===l){if(b.custom_properties)this.nb=b.custom_properties;a.J("$web_event",
c.extend({$title:document.title},this.qb("pageview")));this.oc(a)}else a.__autotrack_enabled=r},this);a.m(a.c("api_host")+"/decide/",{verbose:l,version:"1",lib:"web",token:d},a.sa(e))}}},ob:function(a,b){var d;try{var e=c.da(b,"state"),e=JSON.parse(decodeURIComponent(e)),f=c.da(b,"expires_in");d={accessToken:c.da(b,"access_token"),accessTokenExpiresAt:(new Date).getTime()+1E3*Number(f),bookmarkletMode:!!e.bookmarkletMode,projectId:e.projectId,projectOwnerId:e.projectOwnerId,projectToken: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},Hc:function(a){try{var b=r;if(c.da(window.location.hash,"state"))var d=c.da(window.location.hash,"state"),d=JSON.parse(decodeURIComponent(d)),b="mpeditor"===
d.action;var e=!!window.sessionStorage.getItem("_mpcehash"),f;b?f=this.ob(a,window.location.hash):e?(f=this.ob(a,window.sessionStorage.getItem("_mpcehash")),window.sessionStorage.removeItem("_mpcehash")):f=JSON.parse(window.sessionStorage.getItem("editorParams")||"{}");return f.projectToken&&a.c("token")===f.projectToken?(this.Fc(a,f),l):r}catch(j){return r}},Fc:function(a,b){return!window._mpEditorLoaded?(window._mpEditorLoaded=l,this.Gc(a.c("app_host")+"/js-bundle/reports/collect-everything/editor.js?_ts="+
(new Date).getTime(),function(){window.mp_load_editor(b)}),l):r},ad:function(a,b,d){for(var b=!c.e(b)?b:10,d=!c.e(d)?d:10,e=0,f=0;f<a.length;f++)e+=a.charCodeAt(f);return e%b<d},fd:function(){return c.cb(document.querySelectorAll)}};c.Db(G);c.qd(G);var M,v,Y="__mps,__mpso,__mpus,__mpa,__mpap,__mpu,$people_distinct_id,__alias,__cmpns,__timers".split(","),z="https:"===m.location.protocol?"https://":"http://",L=u.XMLHttpRequest&&"withCredentials"in new XMLHttpRequest,Q=!L&&-1===w.indexOf("MSIE")&&-1===
w.indexOf("Mozilla"),Z={api_host:z+"api.mixpanel.com",app_host:z+"mixpanel.com",autotrack:l,cdn:z+"cdn.mxpnl.com",cross_subdomain_cookie:l,persistence:"cookie",persistence_name:"",cookie_name:"",loaded:C(),store_google:l,save_referrer:l,test:r,verbose:r,img:r,track_pageview:l,debug:r,track_links_timeout:300,cookie_expiration:365,upgrade:r,disable_persistence:r,disable_cookie:r,secure_cookie:r,ip:l,property_blacklist:[]},P=r;y.prototype.va=C();y.prototype.Wa=C();y.prototype.Sa=C();y.prototype.W=function(a){this.Sb=
a;return this};y.prototype.J=function(a,b,d,e){var f=this,j=c.Zc(a);if(0===j.length)p.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.p(a,this.Ub,function(a){var c={},j=f.va(d,this),g=f.Sb.c("track_links_timeout");f.Wa(a,this,c);u.setTimeout(f.ac(e,j,c,l),g);f.Sb.J(b,j,f.ac(e,j,c))})},this),l};y.prototype.ac=function(a,b,c,e){var e=e||r,f=this;return function(){if(!c.Rc)c.Rc=l,a&&a(e,b)===r||f.Sa(b,c,e)}};y.prototype.va=function(a,b){return"function"===typeof a?
a(b):c.extend({},a)};c.Ob(D,y);D.prototype.va=function(a,b){var c=D.zd.va.apply(this,arguments);if(b.href)c.url=b.href;return c};D.prototype.Wa=function(a,b,c){c.Tb=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.Tb||a.preventDefault()};D.prototype.Sa=function(a,b){b.Tb||setTimeout(function(){u.location=b.href},0)};c.Ob(J,y);J.prototype.Wa=function(a,b,c){c.element=b;a.preventDefault()};J.prototype.Sa=function(a,b){setTimeout(function(){b.element.submit()},0)};q.prototype.ga=
function(){var a={};c.a(this.props,function(b,d){c.Mb(Y,d)||(a[d]=b)});return a};q.prototype.load=function(){if(!this.disabled){var a=this.v.parse(this.name);a&&(this.props=c.extend({},a))}};q.prototype.Fd=function(a){var b=a.upgrade,d;if(b)d="mp_super_properties","string"===typeof b&&(d=b),b=this.v.parse(d),this.v.remove(d),this.v.remove(d,l),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.v.parse(d)))this.v.remove(d),
this.v.remove(d,l),this.D(b);this.v===c.localStorage&&(b=c.cookie.parse(this.name),c.cookie.remove(this.name),c.cookie.remove(this.name,l),b&&this.D(b))};q.prototype.save=function(){this.disabled||(this.sc(),this.v.set(this.name,c.ma(this.props),this.Xa,this.Ua,this.Wb))};q.prototype.remove=function(){this.v.remove(this.name,r);this.v.remove(this.name,l)};q.prototype.clear=function(){this.remove();this.props={}};q.prototype.D=function(a,b,d){return c.k(a)?("undefined"===typeof b&&(b="None"),this.Xa=
"undefined"===typeof d?this.Hb:d,c.a(a,function(a,c){if(!this.props.hasOwnProperty(c)||this.props[c]===b)this.props[c]=a},this),this.save(),l):r};q.prototype.ha=function(a,b){return c.k(a)?(this.Xa="undefined"===typeof b?this.Hb:b,c.extend(this.props,a),this.save(),l):r};q.prototype.Ba=function(a){a in this.props&&(delete this.props[a],this.save())};q.prototype.sc=c.l(function(){var a=this.props.__cmpns,b=B?6E4:36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.bb(a)&&delete this.props.__cmpns}});
q.prototype.Ed=function(){if(!this.Fb)this.D(c.info.Sc()),this.Fb=l};q.prototype.fc=function(a){this.ha(c.info.sd(a))};q.prototype.kb=function(a){this.D({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.Vb(a)||"$direct"},"")};q.prototype.dd=function(){return c.ya({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};q.prototype.ec=function(a){this.Hb=this.Xa=a.cookie_expiration;this.ud(a.disable_persistence);this.td(a.cross_subdomain_cookie);
this.wd(a.secure_cookie)};q.prototype.ud=function(a){(this.disabled=a)&&this.remove()};q.prototype.td=function(a){if(a!==this.Ua)this.Ua=a,this.remove(),this.save()};q.prototype.cd=function(){return this.Ua};q.prototype.wd=function(a){if(a!==this.Wb)this.Wb=a?l:r,this.remove(),this.save()};q.prototype.H=function(a,b){var d=this.La(a),e=b[a],f=this.S("$set"),j=this.S("$set_once"),g=this.S("$unset"),i=this.S("$add"),h=this.S("$union"),m=this.S("$append",[]);"__mps"===d?(c.extend(f,e),this.I("$add",
e),this.I("$union",e),this.I("$unset",e)):"__mpso"===d?(c.a(e,function(a,b){b in j||(j[b]=a)}),this.I("$unset",e)):"__mpus"===d?c.a(e,function(a){c.a([f,j,i,h],function(b){a in b&&delete b[a]});c.a(m,function(b){a in b&&delete b[a]});g[a]=l}):"__mpa"===d?(c.a(e,function(a,b){b in f?f[b]+=a:(b in i||(i[b]=0),i[b]+=a)},this),this.I("$unset",e)):"__mpu"===d?(c.a(e,function(a,b){c.isArray(a)&&(b in h||(h[b]=[]),h[b]=h[b].concat(a))}),this.I("$unset",e)):"__mpap"===d&&(m.push(e),this.I("$unset",e));p.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");
p.log(b);this.save()};q.prototype.I=function(a,b){var d=this.Ka(a);c.e(d)||(c.a(b,function(a,b){delete d[b]},this),this.save())};q.prototype.La=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("$union"===a)return"__mpu";p.error("Invalid queue:",a)};q.prototype.Ka=function(a){return this.props[this.La(a)]};q.prototype.S=function(a,b){var d=this.La(a),b=c.e(b)?{}:b;return this.props[d]||
(this.props[d]=b)};q.prototype.vd=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};q.prototype.od=function(a){var b=(this.props.__timers||{})[a];c.e(b)||(delete this.props.__timers[a],this.save());return b};var g;h.prototype.W=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");
else return a=I(a,b,d),v[d]=a,a.ra(),a};h.prototype.Na=function(a,b,d){this.__loaded=l;this.config={};this.Xb(c.extend({},Z,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=C();this.Ha=[];this.Ia=[];this.Ga=[];this.Q={disable_all_events:r,identify_called:r};this.persistence=this.cookie=new q(this.config);this.D({distinct_id:c.lb()},"")};h.prototype.ra=function(){this.c("loaded")(this);this.c("track_pageview")&&this.bc()};h.prototype.qc=function(){c.a(this.Ha,function(a){this.Qa.apply(this,
a)},this);c.a(this.Ia,function(a){this.m.apply(this,a)},this);delete this.Ha;delete this.Ia};h.prototype.Qa=function(a,b){if(this.c("img"))return p.error("You can't use DOM tracking functions with img = true."),r;if(!P)return this.Ha.push([a,b]),r;var c=(new a).W(this);return c.J.apply(c,b)};h.prototype.sa=function(a,b){if(c.e(a))return n;if(L)return function(c){a(c,b)};var d=this._jsc,e=""+Math.floor(1E8*Math.random()),f=this.c("callback_fn")+"["+e+"]";d[e]=function(c){delete d[e];a(c,b)};return f};
h.prototype.m=function(a,b,d){if(Q)this.Ia.push(arguments);else{var e=this.c("verbose");b.verbose&&(e=l);this.c("test")&&(b.test=1);e&&(b.verbose=1);this.c("img")&&(b.img=1);if(!L)if(d)b.callback=d;else if(e||this.c("test"))b.callback="(function(){})";b.ip=this.c("ip")?1:0;b._=(new Date).getTime().toString();a+="?"+c.kc(b);if("img"in b){var f=m.createElement("img");f.src=a;m.body.appendChild(f)}else if(L)try{var j=new XMLHttpRequest;j.open("GET",a,l);j.withCredentials=l;j.onreadystatechange=function(){if(4===
j.readyState)if(200===j.status)d&&(e?d(c.la(j.responseText)):d(Number(j.responseText)));else{var a="Bad HTTP status: "+j.status+" "+j.statusText;p.error(a);d&&(e?d({status:0,error:a}):d(0))}};j.send(n)}catch(g){p.error(g)}else{f=m.createElement("script");f.type="text/javascript";f.async=l;f.defer=l;f.src=a;var i=m.getElementsByTagName("script")[0];i.parentNode.insertBefore(f,i)}}};h.prototype.Ja=function(a){function b(a,b){c.a(a,function(a){this[a[0]].apply(this,a.slice(1))},b)}var d,e=[],f=[],j=
[];c.a(a,function(a){a&&(d=a[0],"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]?j.push(a):f.push(a))},this);b(e,this);b(f,this);b(j,this)};h.prototype.push=function(a){this.Ja([a])};h.prototype.disable=function(a){"undefined"===typeof a?this.Q.Wc=l:this.Ga=this.Ga.concat(a)};h.prototype.J=function(a,b,d){"function"!==typeof d&&(d=C());if(c.e(a))p.error("No event name provided to mixpanel.track");else if(this.pb(a))d(0);
else{b=b||{};b.token=this.c("token");var e=this.persistence.od(a);c.e(e)||(b.$duration=parseFloat((((new Date).getTime()-e)/1E3).toFixed(3)));this.persistence.fc(m.referrer);this.c("store_google")&&this.persistence.Ed();this.c("save_referrer")&&this.persistence.kb(m.referrer);b=c.extend({},c.info.ga(),this.persistence.ga(),b);try{if(this.c("autotrack")&&"mp_page_view"!==a&&"$create_alias"!==a)b=c.extend({},b,this.C),this.C={$__c:0},c.cookie.set("mp_"+this.c("name")+"__c",0,1,l)}catch(f){p.error(f)}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);a=c.truncate({event:a,properties:b},255);e=c.ma(a);e=c.Bb(e);p.log("MIXPANEL REQUEST:");p.log(a);this.m(this.c("api_host")+"/track/",{data:e},this.sa(d,a));return a}};h.prototype.bc=function(a){if(c.e(a))a=m.location.href;this.J("mp_page_view",c.info.md(a))};h.prototype.Dd=function(){return this.Qa.call(this,D,arguments)};h.prototype.Cd=function(){return this.Qa.call(this,
J,arguments)};h.prototype.Ad=function(a){c.e(a)?p.error("No event name provided to mixpanel.time_event"):this.pb(a)||this.persistence.vd(a)};h.prototype.ha=function(a,b){this.persistence.ha(a,b)};h.prototype.D=function(a,b,c){this.persistence.D(a,b,c)};h.prototype.Ba=function(a){this.persistence.Ba(a)};h.prototype.Pa=function(a,b){var c={};c[a]=b;this.ha(c)};h.prototype.Za=function(a,b,c,e,f,j,g){a!==this.V()&&a!==this.wa("__alias")&&(this.Ba("__alias"),this.Pa("distinct_id",a));this.mb(this.V());
this.Q.$a=l;this.people.uc(b,c,e,f,j,g)};h.prototype.reset=function(){this.persistence.clear();this.Q.$a=r;this.D({distinct_id:c.lb()},"")};h.prototype.V=function(){return this.wa("distinct_id")};h.prototype.Pc=function(a,b){if(a===this.wa("$people_distinct_id"))return p.U("Attempting to create alias for existing People user - aborting."),-2;var d=this;c.e(b)&&(b=this.V());if(a!==b)return this.Pa("__alias",a),this.J("$create_alias",{alias:a,distinct_id:b},function(){d.Za(a)});p.error("alias matches current distinct_id - skipping api call.");
this.Za(a);return-1};h.prototype.kd=function(a){this.Pa("mp_name_tag",a)};h.prototype.Xb=function(a){if(c.k(a))c.extend(this.config,a),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.ec(this.config),B=B||this.c("debug")};h.prototype.c=function(a){return this.config[a]};h.prototype.wa=function(a){return this.persistence.props[a]};h.prototype.toString=
function(){var a=this.c("name");"mixpanel"!==a&&(a="mixpanel."+a);return a};h.prototype.pb=function(a){return c.Pb(w)||this.Q.Wc||c.Mb(this.Ga,a)};h.prototype.mb=function(a){if(a&&!this.Q.$a&&!this.c("disable_notifications")){p.log("MIXPANEL NOTIFICATION CHECK");var b=this;this.m(this.c("api_host")+"/decide/",{verbose:l,version:"2",lib:"web",token:this.c("token"),distinct_id:a},this.sa(function(a){a.notifications&&0<a.notifications.length&&b.zb.call(b,a.notifications[0])}))}};h.prototype.zb=function(a){(new g(a,
this)).show()};o.prototype.Na=function(a){this.i=a};o.prototype.set=function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.T(b)||(f[b]=a)},this),d=b):f[a]=b;this.qa("save_referrer")&&this.i.persistence.kb(m.referrer);f=c.extend({},c.info.nd(),this.i.persistence.dd(),f);e.$set=f;return this.m(e,d)};o.prototype.Yb=function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.T(b)||(f[b]=a)},this),d=b):f[a]=b;e.$set_once=f;return this.m(e,d)};o.prototype.dc=function(a,b){var d={},e=[];c.isArray(a)||
(a=[a]);c.a(a,function(a){this.T(a)||e.push(a)},this);d.$unset=e;return this.m(d,b)};o.prototype.Nb=function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.T(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.m(e,d)};o.prototype.append=function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.T(b)||(f[b]=a)},this),d=b):f[a]=b;e.$append=f;return this.m(e,d)};
o.prototype.cc=function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.T(b)||(f[b]=c.isArray(a)?a:[a])},this),d=b):f[a]=c.isArray(b)?b:[b];e.$union=f;return this.m(e,d)};o.prototype.Bd=function(a,b,d){if(!c.jd(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)};o.prototype.Tc=function(a){return this.set("$transactions",[],a)};o.prototype.Vc=function(){if(this.tb())return this.m({$delete:this.i.V()});
p.error("mixpanel.people.delete_user() requires you to call identify() first")};o.prototype.toString=function(){return this.i.toString()+".people"};o.prototype.m=function(a,b){a.$token=this.qa("token");a.$distinct_id=this.i.V();var d=c.Jb(a),e=c.truncate(d,255),d=c.ma(d),d=c.Bb(d);if(!this.tb())return this.rc(a),c.e(b)||(this.qa("verbose")?b({status:-1,error:n}):b(-1)),e;p.log("MIXPANEL PEOPLE REQUEST:");p.log(e);this.i.m(this.qa("api_host")+"/engage/",{data:d},this.i.sa(b,e));return e};o.prototype.qa=
function(a){return this.i.c(a)};o.prototype.tb=function(){return this.i.Q.$a===l};o.prototype.rc=function(a){"$set"in a?this.i.persistence.H("$set",a):"$set_once"in a?this.i.persistence.H("$set_once",a):"$unset"in a?this.i.persistence.H("$unset",a):"$add"in a?this.i.persistence.H("$add",a):"$append"in a?this.i.persistence.H("$append",a):"$union"in a?this.i.persistence.H("$union",a):p.error("Invalid call to _enqueue():",a)};o.prototype.$=function(a,b,d,e){var f=this,g=c.extend({},this.i.persistence.Ka(a)),
h=g;!c.e(g)&&c.k(g)&&!c.bb(g)&&(f.i.persistence.I(a,g),e&&(h=e(g)),b.call(f,h,function(b,e){0===b&&f.i.persistence.H(a,g);c.e(d)||d(b,e)}))};o.prototype.uc=function(a,b,d,e,f,g){var h=this,i=this.i.persistence.Ka("$append");this.$("$set",this.set,a);this.$("$set_once",this.Yb,e);this.$("$unset",this.dc,g,function(a){return c.keys(a)});this.$("$add",this.Nb,b);this.$("$union",this.cc,f);if(!c.e(i)&&c.isArray(i)&&i.length){for(var m,a=function(a,b){0===a&&h.i.persistence.H("$append",m);c.e(d)||d(a,
b)},b=i.length-1;0<=b;b--)m=i.pop(),h.append(m,a);h.i.persistence.save()}};o.prototype.T=function(a){return"$distinct_id"===a||"$token"===a};h.nc=function(a,b){c.Db(this);this.gb=b;this.ib=this.gb.persistence;this.B=c.L(a.id);this.Rb=c.L(a.message_id);this.body=(c.L(a.body)||"").replace(/\n/g,"<br/>");this.Uc=c.L(a.cta)||"Close";this.ea=c.L(a.type)||"takeover";this.style=c.L(a.style)||"light";this.title=c.L(a.title)||"";this.ja=g.mc;this.Y=g.lc;this.ca=a.cta_url||n;this.ab=a.image_url||n;this.M=a.thumb_image_url||
n;this.Ca=a.video_url||n;this.ua=l;if(!this.ca)this.ca="#dismiss",this.ua=r;this.u="mini"===this.ea;if(!this.u)this.ea="takeover";this.ld=!this.u?g.Z:g.Da;this.yb();this.xa=this.Bc();this.Ec()};g=h.nc;g.N=200;g.w="mixpanel-notification";g.ka=0.6;g.G=25;g.na=200;g.Z=388;g.Da=420;g.z=85;g.Ea=5;g.K=60;g.Fa=Math.round(g.K/2);g.mc=595;g.lc=334;g.prototype.show=function(){var a=this;this.yb();this.q?(this.Dc(),this.Cc(),this.Ic(this.pc)):setTimeout(function(){a.show()},300)};g.prototype.Va=c.l(function(){this.Qb||
this.wb({invisible:l});var a=this.xd?this.h("video"):this.R();if(this.gc)this.Kc("bg","visible"),this.O(a,"exiting"),setTimeout(this.xb,g.N);else{var b,c,e;this.u?(b="right",c=20,e=-100):(b="top",c=g.G,e=g.na+g.G);this.oa([{s:this.h("bg"),o:"opacity",start:g.ka,j:0},{s:a,o:"opacity",start:1,j:0},{s:a,o:b,start:c,j:e}],g.N,this.xb)}});g.prototype.O=c.l(function(a,b){b=g.w+"-"+b;"string"===typeof a&&(a=this.h(a));a.className?~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=
b});g.prototype.Kc=c.l(function(a,b){b=g.w+"-"+b;"string"===typeof a&&(a=this.h(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});g.prototype.oa=c.l(function(a,b,c,e){var f=this,g=r,h,i;h=1*new Date;var m,e=e||h;m=h-e;for(h=0;h<a.length;h++){i=a[h];if("undefined"===typeof i.F)i.F=i.start;if(i.F!==i.j){var g=l,o=i.j>=i.start?1:-1;i.F=i.start+(i.j-i.start)*m/b;if("opacity"!==i.o)i.F=Math.round(i.F);if(0<o&&i.F>=i.j||0>o&&i.F<=
i.j)i.F=i.j}}if(g){for(h=0;h<a.length;h++)i=a[h],i.s&&(i.s.style[i.o]=""+i.F+("opacity"===i.o?"":"px"));setTimeout(function(){f.oa(a,b,c,e)},10)}else c&&c()});g.prototype.pc=c.l(function(){var a=this;if(!this.yd&&!this.sb()[this.B])this.yd=l,this.q.appendChild(this.fa),setTimeout(function(){var b=a.R();if(a.gc)a.u||a.O("bg","visible"),a.O(b,"visible"),a.vb();else{var c,e,f;a.u?(c="right",e=-100,f=20):(c="top",e=g.na+g.G,f=g.G);a.oa([{s:a.h("bg"),o:"opacity",start:0,j:g.ka},{s:b,o:"opacity",start:0,
j:1},{s:b,o:c,start:e,j:f}],g.N,a.vb)}},100),c.p(a.h("cancel"),"click",function(b){b.preventDefault();a.Va()}),c.p(a.h("button")||a.h("mini-content"),"click",function(b){b.preventDefault();a.X?(a.Ra("$campaign_open",{$resource_type:"video"}),a.Mc()):(a.Va(),a.ua&&a.Ra("$campaign_open",{$resource_type:"link"},function(){u.location.href=a.ca}))})});g.prototype.h=function(a){return m.getElementById(g.w+"-"+a)};g.prototype.R=function(){return this.h(this.ea)};g.prototype.sb=function(){return this.ib.props.__cmpns||
(this.ib.props.__cmpns={})};g.prototype.P=function(a,b){return this.A[a]&&this.A[a]<=b};g.prototype.Bc=function(){var a=[];this.u?(this.M=this.M||"//cdn.mxpnl.com/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.M)):(this.ab?(a.push(this.ab),this.Lb='<img id="img" src="'+this.ab+'"/>'):this.Lb="",this.M?(a.push(this.M),this.$b='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+this.M+'" width="'+g.K+'" height="'+g.K+'"/><div id="thumbspacer"></div>'):
this.$b="");return a};g.prototype.Cc=function(){var a="",b="",c="";this.fa=m.createElement("div");this.fa.id=g.w+"-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.ua||this.X?"":'<div id="button-close"></div>',e=this.X?'<div id="button-play"></div>':
"";this.P("ie",7)&&(e=a="");a='<div id="takeover">'+this.$b+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Lb+'<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.Uc+"</a>"+e+"</div></div></div>"}this.ic?(b="//www.youtube.com/embed/"+this.ic+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",
this.jc&&(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.hc&&(b="//player.vimeo.com/video/"+this.hc+"?autoplay=1&title=0&byline=0&portrait=0");if(this.X)this.Id='<iframe id="'+g.w+'-video-frame" width="'+this.ja+'" height="'+this.Y+'"  src="'+
b+'" frameborder="0" webkitallowfullscreen mozallowfullscreen allowfullscreen="1" scrolling="no"></iframe>',c='<div id="video-'+(this.Ya?"":"no")+'flip"><div id="video"><div id="video-holder"></div>'+c+"</div></div>";b=c+a;this.Ya&&(b=(this.u?a:"")+'<div id="flipcontainer"><div id="flipper">'+(this.u?c:b)+"</div></div>");this.fa.innerHTML=('<div id="overlay" class="'+this.ea+'"><div id="campaignid-'+this.B+'"><div id="bgwrapper"><div id="bg"></div>'+b+"</div></div></div>").replace(/class=\"/g,'class="'+
g.w+"-").replace(/id=\"/g,'id="'+g.w+"-")};g.prototype.Dc=function(){this.g="dark"===this.style?{Ta:"#1d1f25",aa:"#282b32",ta:"#3a4147",Cb:"#4a5157",Qc:"#32353c",Gb:"0.4",fb:"#2a3137",Aa:"#fff",jb:"#9498a3",Zb:"#464851",za:"#ddd"}:{Ta:"#fff",aa:"#e7eaee",ta:"#eceff3",Cb:"#f5f5f5",Qc:"#e4ecf2",Gb:"1.0",fb:"#fafafa",Aa:"#5c6578",jb:"#8b949b",Zb:"#ced9e6",za:"#7c8598"};var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=g.K+2*g.Ea,f=g.N/1E3+"s";this.u&&(a="none");var j={};j["@media only screen and (max-width: "+
(g.Da+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"},
"#bgwrapper":{position:"relative",width:"100%",height:"100%"},"#bg":{position:"fixed",top:"0",left:"0",width:"100%",height:"100%","min-width":4*this.Yc+"px","min-height":4*this.Xc+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+f},"#bg.visible":{opacity:g.ka},".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.Z+"px","margin-left":Math.round(-g.Z/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:g.na+"px",transition:"opacity "+f+", top "+f},"#takeover.visible":{opacity:"1.0",top:g.G+"px"},"#takeover.exiting":{opacity:"0.0",top:g.na+"px"},"#thumbspacer":{height:g.Fa+"px"},"#thumbborder-wrapper":{position:"absolute",top:-g.Ea+"px",left:g.Z/2-g.Fa-g.Ea+"px",width:e+"px",height:e/
2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:e+"px",height:e+"px","border-radius":e+"px","background-color":this.g.aa,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:g.Z/2-g.Fa+"px",width:g.K+"px",height:g.K+"px",overflow:"hidden","z-index":"100","border-radius":g.K+"px"},"#mini":{position:"absolute",right:"20px",top:g.G+"px",width:this.ld+"px",height:2*g.z+"px","margin-top":20-g.z+"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.g.Ta,"font-size":"14px",color:this.g.jb},"#mini #mainbox":{height:g.z+"px","margin-top":g.z+"px","border-radius":"3px",transition:"background-color "+f},"#mini-border":{height:g.z+6+"px",width:g.Da+6+"px",position:"absolute",top:"-3px",left:"-3px",
"margin-top":g.z+"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.z+"px","border-radius":"3px 0 0 3px","background-color":this.g.aa,background:"linear-gradient(135deg, "+this.g.Cb+" 0%, "+this.g.aa+" 100%)",transition:"background-color "+f},"#mini:hover #mini-icon":{"background-color":this.g.fb},"#mini:hover #mainbox":{"background-color":this.g.fb},"#mini-icon-img":{position:"absolute",
"background-image":"url("+this.M+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:g.z+"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.g.Aa},"#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.z+"px","font-size":"16px","letter-spacing":"0.8px",color:this.g.Aa},"#mini #body-text":{display:"table",height:g.z+"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.g.Zb,
transition:"color "+f},"#tagline a:hover":{color:this.g.za},"#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 "+f},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/cancel-x.png)",opacity:this.g.Gb},"#cancel:hover":{"background-color":this.g.ta},
"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.g.aa,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+f},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url(//cdn.mxpnl.com/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(//cdn.mxpnl.com/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.g.Aa,transition:"color "+f},"#button:hover":{"background-color":this.g.ta,color:this.g.za},"#button:hover a":{color:this.g.za},
"#video-noflip":{position:"relative",top:2*-this.Y+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.ja-1+"px",height:this.Y+"px",top:g.G+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.ja/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":b,transform:"translateZ(1px)",transition:"opacity "+f+", top "+f},"#video.exiting":{opacity:"0.0",top:this.Y+"px"},"#video-holder":{position:"absolute",width:this.ja-
1+"px",height:this.Y+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.ja+"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.g.Ta,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.g.jb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.P("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.P("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.g.ta},"#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(","),
d=["khtml","moz","ms","o","webkit"],h;for(h in a)for(e=0;e<b.length;e++)if(f=b[e],f in a[h])for(var i=a[h][f],o=0;o<d.length;o++)a[h]["-"+d[o]+"-"+f]=i;(function(a,b){function c(a){var b="",d;for(d in a){var e=d.replace(/#/g,"#"+g.w+"-").replace(/\./g,"."+g.w+"-"),b=b+("\n"+e+" {"),e=a[d],f;for(f in e)b+=f+":"+e[f]+";";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=m.head||m.getElementsByTagName("head")[0]||m.documentElement,e=m.createElement("style");
f.appendChild(e);e.setAttribute("type","text/css");e.styleSheet?e.styleSheet.cssText=d:e.textContent=d})(a,j)};g.prototype.Ec=c.l(function(){if(this.Ca){var a=this;a.jc="postMessage"in u;a.ca=a.Ca;var b=a.Ca.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),c=a.Ca.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.X=l,a.ic=b[1],a.jc)u.onYouTubeIframeAPIReady=function(){a.h("video-frame")&&a.Ab()},b=m.createElement("script"),b.src="//www.youtube.com/iframe_api",
c=m.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.X=l,a.hc=c[1];if(a.P("ie",7)||a.P("firefox",3))a.X=r,a.ua=l}});g.prototype.vb=c.l(function(){function a(a,b){var c={};if(m.defaultView&&m.defaultView.getComputedStyle)c=m.defaultView.getComputedStyle(a,n);else if(a.currentStyle)c=a.currentStyle;return c[b]}var b=this;c.p(b.h("bg"),"click",function(){b.Va()});if(this.B){var d=this.h("overlay");d&&"hidden"!==a(d,"visibility")&&"none"!==a(d,"display")&&this.wb()}});g.prototype.wb=
c.l(function(a){if(!this.Qb)this.Qb=l,this.B&&(this.sb()[this.B]=1*new Date,this.ib.save()),this.Ra("$campaign_delivery",a),this.gb.people.append({$campaigns:this.B,$notifications:{campaign_id:this.B,message_id:this.Rb,type:"web",time:new Date}})});g.prototype.Ic=function(a){var b=this;if(0===this.xa.length)a();else{for(var c=0,e=[],f=function(){c++;c===b.xa.length&&a&&(a(),a=n)},g=0;g<this.xa.length;g++){var h=new Image;h.onload=f;h.src=this.xa[g];h.complete&&f();e.push(h)}this.P("ie",7)&&setTimeout(function(){var b=
l;for(g=0;g<e.length;g++)e[g].complete||(b=r);b&&a&&(a(),a=n)},500)}};g.prototype.xb=c.l(function(){u.clearInterval(this.Oc);this.fa.style.visibility="hidden";this.q.removeChild(this.fa)});g.prototype.yb=function(){function a(a){if(a in e)return l;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 e)return l;return r}function b(a){return(a=navigator.userAgent.match(a))&&a[1]}this.A={};this.A.chrome=b(/Chrome\/(\d+)/);this.A.firefox=b(/Firefox\/(\d+)/);
this.A.ie=b(/MSIE (\d+).+/);!this.A.ie&&!u.ActiveXObject&&"ActiveXObject"in u&&(this.A.ie=11);if(this.q=m.body||m.getElementsByTagName("body")[0])this.Yc=Math.max(this.q.scrollWidth,m.documentElement.scrollWidth,this.q.offsetWidth,m.documentElement.offsetWidth,this.q.clientWidth,m.documentElement.clientWidth),this.Xc=Math.max(this.q.scrollHeight,m.documentElement.scrollHeight,this.q.offsetHeight,m.documentElement.offsetHeight,this.q.clientHeight,m.documentElement.clientHeight);var c=this.A.ie,e=m.createElement("div").style;
this.gc=this.q&&a("transition")&&a("transform");this.Ya=(33<=this.A.chrome||15<=this.A.firefox)&&this.q&&a("backfaceVisibility")&&a("perspective")&&a("transform")};g.prototype.Mc=c.l(function(){function a(){u.YT&&u.YT.loaded&&b.Ab();b.xd=l;b.R().style.visibility="hidden"}var b=this,c=[{s:b.R(),o:"opacity",start:1,j:0},{s:b.R(),o:"top",start:g.G,j:-500},{s:b.h("video-noflip"),o:"opacity",start:0,j:1},{s:b.h("video-noflip"),o:"top",start:2*-b.Y,j:0}];if(b.u){var e=b.h("bg"),f=b.h("overlay");e.style.width=
"100%";e.style.height="100%";f.style.width="100%";b.O(b.R(),"exiting");b.O(e,"visible");c.push({s:b.h("bg"),o:"opacity",start:0,j:g.ka})}b.h("video-holder").innerHTML=b.Id;b.Ya?(b.O("flipper","flipped"),setTimeout(a,g.N)):b.oa(c,g.N,a)});g.prototype.Ra=function(a,b,d){this.B?(b=b||{},b=c.extend(b,{campaign_id:this.B,message_id:this.Rb,message_type:"web_inapp",message_subtype:this.ea}),this.gb.track(a,b,d)):d&&d.call()};g.prototype.Ab=c.l(function(){var a=this;if(!a.Jd){a.Jd=l;var b=a.h("video-elapsed"),
d=a.h("video-time"),e=a.h("video-progress");new u.YT.Player(g.w+"-video-frame",{events:{onReady:function(f){function g(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 h=f.target,i=h.getDuration();g(0);a.Oc=u.setInterval(function(){var a=h.getCurrentTime();b.style.width=100*(a/i)+"%";g(a)},250);c.p(e,"click",function(a){a=Math.max(0,a.pageX-e.getBoundingClientRect().left);h.seekTo(i*a/e.clientWidth,
l)})}}})}});h.prototype.init=h.prototype.W;h.prototype.reset=h.prototype.reset;h.prototype.disable=h.prototype.disable;h.prototype.time_event=h.prototype.Ad;h.prototype.track=h.prototype.J;h.prototype.track_links=h.prototype.Dd;h.prototype.track_forms=h.prototype.Cd;h.prototype.track_pageview=h.prototype.bc;h.prototype.register=h.prototype.ha;h.prototype.register_once=h.prototype.D;h.prototype.unregister=h.prototype.Ba;h.prototype.identify=h.prototype.Za;h.prototype.alias=h.prototype.Pc;h.prototype.name_tag=
h.prototype.kd;h.prototype.set_config=h.prototype.Xb;h.prototype.get_config=h.prototype.c;h.prototype.get_property=h.prototype.wa;h.prototype.get_distinct_id=h.prototype.V;h.prototype.toString=h.prototype.toString;h.prototype._check_and_handle_notifications=h.prototype.mb;h.prototype._show_notification=h.prototype.zb;q.prototype.properties=q.prototype.ga;q.prototype.update_search_keyword=q.prototype.fc;q.prototype.update_referrer_info=q.prototype.kb;q.prototype.get_cross_subdomain=q.prototype.cd;
q.prototype.clear=q.prototype.clear;o.prototype.set=o.prototype.set;o.prototype.set_once=o.prototype.Yb;o.prototype.unset=o.prototype.dc;o.prototype.increment=o.prototype.Nb;o.prototype.append=o.prototype.append;o.prototype.union=o.prototype.cc;o.prototype.track_charge=o.prototype.Bd;o.prototype.clear_charges=o.prototype.Tc;o.prototype.delete_user=o.prototype.Vc;o.prototype.toString=o.prototype.toString;c.pd(h);var A={};(function(){M=1;v=u.mixpanel;c.e(v)?p.U('"mixpanel" object not initialized. Ensure you are using the latest version of the Mixpanel JS Library along with the snippet we provide.'):
v.__loaded||v.config&&v.persistence?p.error("Mixpanel library has already been downloaded at least once."):1.1>(v.__SV||0)?p.U("Version mismatch; please ensure you're using the latest version of the Mixpanel code snippet."):(c.a(v._i,function(a){a&&c.isArray(a)&&(A[a[a.length-1]]=I.apply(this,a))}),W(),v.init(),c.a(A,function(a){a.ra()}),V())})()})();
})();
