Socket
Socket
Sign inDemoInstall

mixpanel-browser

Package Overview
Dependencies
Maintainers
9
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mixpanel-browser - npm Package Compare versions

Comparing version 2.23.0-beta to 2.23.0

.jshintignore

7

CHANGELOG.md

@@ -0,1 +1,8 @@

**2.23.0** (23 Oct 2018)
- Track `time` prop automatically with all events recording UTC timestamp (in seconds)
as the client (browser) sees it. The automatic value can be overridden by setting the
`time` prop explicitly in tracking calls.
- Set `$user_id` and `$device_id` superprops automatically. This allows finer-grained
identity management around linking anonymous, logged-in, and logged-out behavior.
**2.22.4** (1 Jun 2018)

@@ -2,0 +9,0 @@ - Ensure GDPR cookies are always cleared when possible

88

mixpanel.min.js
(function() {
var l=!0,m=null,r=!1;function C(){return function(){}}
(function(){function ha(){function a(){if(!a.fd)Z=a.fd=l,$=r,c.a(z,function(a){a.Bc()})}function b(){try{o.documentElement.doScroll("left")}catch(d){setTimeout(b,1);return}a()}if(o.addEventListener)"complete"===o.readyState?a():o.addEventListener("DOMContentLoaded",a,r);else if(o.attachEvent){o.attachEvent("onreadystatechange",a);var d=r;try{d=t.frameElement===m}catch(e){}o.documentElement.doScroll&&d&&b()}c.C(t,"load",a,l)}function ia(){v.init=function(a,b,d){if(d)return v[d]||(v[d]=z[d]=L(a,b,d),
v[d].sa()),v[d];d=v;if(z.mixpanel)d=z.mixpanel;else if(a)d=L(a,b,"mixpanel"),d.sa(),z.mixpanel=d;v=d;1===V&&(t.mixpanel=v);ja()}}function ja(){c.a(z,function(a,b){"mixpanel"!==b&&(v[b]=a)});v._=c}function L(a,b,d){var e,f="mixpanel"===d?v:v[d];if(f&&0===V)e=f;else{if(f&&!c.isArray(f)){q.error("You have already initialized "+d);return}e=new h}e.Pa(a,b,d);e.people=new n;e.people.Pa(e);A=A||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))I.gd(e.c("token"),100,100)?I.md()?I.W(e):
(e.__autotrack_enabled=r,q.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=r,q.log("Not in active bucket: disabling Automatic Event Collection."));!c.d(f)&&c.isArray(f)&&(e.La.call(e.people,f.people),e.La(f));return e}function n(){}function h(){}function p(a){this.props={};this.Gb=r;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)q.T("Unknown persistence type "+
v[d].sa()),v[d];d=v;if(z.mixpanel)d=z.mixpanel;else if(a)d=L(a,b,"mixpanel"),d.sa(),z.mixpanel=d;v=d;1===V&&(t.mixpanel=v);ja()}}function ja(){c.a(z,function(a,b){"mixpanel"!==b&&(v[b]=a)});v._=c}function L(a,b,d){var e,f="mixpanel"===d?v:v[d];if(f&&0===V)e=f;else{if(f&&!c.isArray(f)){q.error("You have already initialized "+d);return}e=new h}e.Pa(a,b,d);e.people=new n;e.people.Pa(e);A=A||e.c("debug");e.__autotrack_enabled=e.c("autotrack");if(e.c("autotrack"))I.gd(e.c("token"),100,100)?I.md()?I.X(e):
(e.__autotrack_enabled=r,q.log("Disabling Automatic Event Collection because this browser is not supported")):(e.__autotrack_enabled=r,q.log("Not in active bucket: disabling Automatic Event Collection."));!c.d(f)&&c.isArray(f)&&(e.La.call(e.people,f.people),e.La(f));return e}function n(){}function h(){}function p(a){this.props={};this.Gb=r;this.name=a.persistence_name?"mp_"+a.persistence_name:"mp_"+a.token+"_mixpanel";var b=a.persistence;if("cookie"!==b&&"localStorage"!==b)q.V("Unknown persistence type "+
b+"; falling back to cookie"),b=a.persistence="cookie";this.v="localStorage"===b&&c.localStorage.fb()?c.localStorage:c.cookie;this.load();this.pc(a);this.Md(a);this.save()}function M(){this.bc="submit"}function D(){this.bc="click"}function y(){}function N(a){switch(typeof a.className){case "string":return a.className;case "object":return a.className.Td||a.getAttribute("class")||"";default:return""}}function ka(a){var b="";O(a)&&a.childNodes&&a.childNodes.length&&c.a(a.childNodes,function(a){a&&3===

@@ -13,3 +13,3 @@ a.nodeType&&a.textContent&&(b+=c.trim(a.textContent).split(/(\s+)/).filter(P).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))});return c.trim(b)}function E(a,b){return a&&a.tagName&&a.tagName.toLowerCase()===b.toLowerCase()}function la(a,b){if(!a||E(a,"html")||!(a&&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"===

d=arguments[arguments.length-1];"function"===typeof d&&d(0)}}var A=r,t;if("undefined"===typeof window){var B={hostname:""};t={navigator:{userAgent:""},document:{location:B,referrer:""},screen:{width:0,height:0},location:B}}else t=window;var B=Array.prototype,ea=Object.prototype,G=B.slice,J=ea.toString,S=ea.hasOwnProperty,x=t.console,H=t.navigator,o=t.document,K=t.opera,T=t.screen,w=H.userAgent,W=Function.prototype.bind,fa=B.forEach,ga=B.indexOf,B=Array.isArray,X={},c={trim:function(a){return a.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
"")}},q={log:function(){if(A&&!c.d(x)&&x)try{x.log.apply(x,arguments)}catch(a){c.a(arguments,function(a){x.log(a)})}},error:function(){if(A&&!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.la(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}},T:function(){if(!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.la(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(W&&a.bind===W)return W.apply(a,G.call(arguments,1));if(!c.eb(a))throw new TypeError;
"")}},q={log:function(){if(A&&!c.d(x)&&x)try{x.log.apply(x,arguments)}catch(a){c.a(arguments,function(a){x.log(a)})}},error:function(){if(A&&!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.la(arguments));try{x.error.apply(x,a)}catch(b){c.a(a,function(a){x.error(a)})}}},V:function(){if(!c.d(x)&&x){var a=["Mixpanel error:"].concat(c.la(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(W&&a.bind===W)return W.apply(a,G.call(arguments,1));if(!c.eb(a))throw new TypeError;
d=G.call(arguments,2);return e=function(){if(!(this instanceof e))return a.apply(b,d.concat(G.call(arguments)));var c={};c.prototype=a.prototype;var j=new c;c.prototype=m;c=a.apply(j,d.concat(G.call(arguments)));return Object(c)===c?c:j}};c.Eb=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===m||void 0===a))if(fa&&a.forEach===fa)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)===X);c++);else for(c in a)if(S.call(a,

@@ -19,3 +19,3 @@ c)&&b.call(d,a[c],c,a)===X)break};c.K=function(a){a&&c.za(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(G.call(arguments,1),function(b){for(var d in b)void 0!==b[d]&&(a[d]=b[d])});return a};c.isArray=B||function(a){return"[object Array]"===J.call(a)};c.eb=function(a){try{return/^\s*\bfunction\b/.test(a)}catch(b){return r}};c.ld=function(a){return!(!a||!S.call(a,"callee"))};c.la=function(a){return!a?

c.k=function(a){return a===Object(a)&&!c.isArray(a)};c.cb=function(a){if(c.k(a)){for(var b in a)if(S.call(a,b))return r;return l}return r};c.d=function(a){return void 0===a};c.za=function(a){return"[object String]"==J.call(a)};c.nd=function(a){return"[object Date]"==J.call(a)};c.Wb=function(a){return"[object Number]"==J.call(a)};c.od=function(a){return!!(a&&1===a.nodeType)};c.Pb=function(a){c.a(a,function(b,d){c.nd(b)?a[d]=c.hd(b):c.k(b)&&(a[d]=c.Pb(b))});return a};c.timestamp=function(){Date.now=
Date.now||function(){return+new Date};return Date.now()};c.hd=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){q.T("Implementation error. Please turn on debug and contact support@mixpanel.com."),A&&q.T(b)}}};c.ud=function(a){for(var b=["identify","_check_and_handle_notifications",
Date.now||function(){return+new Date};return Date.now()};c.hd=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){q.V("Implementation error. Please turn on debug and contact support@mixpanel.com."),A&&q.V(b)}}};c.ud=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.vd=function(a){for(var b in a)"function"===typeof a[b]&&(a[b]=c.l(a[b]))};c.Aa=function(a){var b={};c.a(a,function(a,e){c.za(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.pa=function(){return function(a){function b(a,c){var j=

@@ -44,8 +44,8 @@ "",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]"===J.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)S.call(s,k)&&(i=b(k,s))&&h.push(d(k)+(j?": ":":")+

"Mac OS X":/Linux/.test(w)?"Linux":/CrOS/.test(w)?"Chrome OS":""},Ob: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":""},ec:function(a){a=a.split("/");return 3<=a.length?a[2]:""},ka:function(){return c.extend(c.Aa({$os:c.info.jb(),$browser:c.info.ea(w,H.vendor,K),$referrer:o.referrer,$referring_domain:c.info.ec(o.referrer),
$device:c.info.Ob(w)}),{$current_url:t.location.href,$browser_version:c.info.Fb(w,H.vendor,K),$screen_height:T.height,$screen_width:T.width,mp_lib:"web",$lib_version:"2.23.0-beta"})},sd:function(){return c.extend(c.Aa({$os:c.info.jb(),$browser:c.info.ea(w,H.vendor,K)}),{$browser_version:c.info.Fb(w,H.vendor,K)})},rd:function(a){return c.Aa({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ea(w,H.vendor,K),mp_platform:c.info.jb()})}};c.toArray=c.la;c.isObject=c.k;c.JSONEncode=c.pa;c.JSONDecode=c.oa;
c.isBlockedUA=c.Vb;c.isEmptyObject=c.cb;c.info=c.info;c.info.device=c.info.Ob;c.info.browser=c.info.ea;c.info.properties=c.info.ka;var I={ub:[],Sc:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a},Pc: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)},
$device:c.info.Ob(w)}),{$current_url:t.location.href,$browser_version:c.info.Fb(w,H.vendor,K),$screen_height:T.height,$screen_width:T.width,mp_lib:"web",$lib_version:"2.23.0",time:c.timestamp()/1E3})},sd:function(){return c.extend(c.Aa({$os:c.info.jb(),$browser:c.info.ea(w,H.vendor,K)}),{$browser_version:c.info.Fb(w,H.vendor,K)})},rd:function(a){return c.Aa({mp_page:a,mp_referrer:o.referrer,mp_browser:c.info.ea(w,H.vendor,K),mp_platform:c.info.jb()})}};c.toArray=c.la;c.isObject=c.k;c.JSONEncode=c.pa;
c.JSONDecode=c.oa;c.isBlockedUA=c.Vb;c.isEmptyObject=c.cb;c.info=c.info;c.info.device=c.info.Ob;c.info.browser=c.info.ea;c.info.properties=c.info.ka;var I={ub:[],Sc:function(a){if(a.previousElementSibling)return a.previousElementSibling;do a=a.previousSibling;while(a&&!(a&&1===a.nodeType));return a},Pc: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)},
Ic:function(a){var b={classes:N(a).split(" "),tag_name:a.tagName.toLowerCase()};O(a)&&c.a(a.attributes,function(a){if(P(a.value))b["attr__"+a.name]=a.value});for(var d=1,e=1,f=a;f=this.Sc(f);)d++,f.tagName===a.tagName&&e++;b.nth_child=d;b.nth_of_type=e;return b},sb:function(a){return{$event_type:a,$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},Ec:function(a){var b=[];c.a(document.querySelectorAll(a.css_selector),function(a){var c;-1<["input","select"].indexOf(a.tagName.toLowerCase())?
c=a.value:a.textContent&&(c=a.textContent);P(c)&&b.push(c)});return b.join(", ")},Gc:function(a){var b={};c.a(this.pb,function(d){c.a(d.event_selectors,function(e){e=document.querySelectorAll(e);c.a(e,function(f){c.e(a,f)&&O(f)&&(b[d.name]=this.Ec(d))},this)},this)},this);return b},Hc:function(a){return"undefined"===typeof a.target?a.srcElement:a.target},Vc:function(a,b){var d=this.Hc(a);if(d&&3===d.nodeType)d=d.parentNode;if(la(d,a)){for(var e=[d],f=d;f.parentNode&&!E(f,"body");)e.push(f.parentNode),
f=f.parentNode;var j=[],g,i=r;c.a(e,function(a){var b=O(a);"a"===a.tagName.toLowerCase()&&(g=a.getAttribute("href"),g=b&&P(g)&&g);b=N(a).split(" ");c.e(b,"mp-no-track")&&(i=l);j.push(this.Ic(a))},this);if(i)return r;var h;(d=ka(d))&&d.length&&(h=d);e=c.extend(this.sb(a.type),{$elements:j,$el_attr__href:g,$el_text:h},this.Gc(e));b.s("$web_event",e);return l}},Rd:function(a){window.location.href=a},zc:function(a){var b=c.bind(function(b){b=b||window.event;this.Vc(b,a)},this);c.C(document,"submit",b,
r,l);c.C(document,"change",b,r,l);c.C(document,"click",b,r,l)},pb:{},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.Qc(a)){var e=c.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===l){if(b.custom_properties)this.pb=b.custom_properties;
r,l);c.C(document,"change",b,r,l);c.C(document,"click",b,r,l)},pb:{},X:function(a){if(!document||!document.body){console.log("document not ready yet, trying again in 500 milliseconds...");var b=this;setTimeout(function(){b.X(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.Qc(a)){var e=c.bind(function(b){if(b&&b.config&&b.config.enable_collect_everything===l){if(b.custom_properties)this.pb=b.custom_properties;
a.s("$web_event",c.extend({$title:document.title},this.sb("pageview")));this.zc(a)}else a.__autotrack_enabled=r},this);a.m(a.c("api_host")+"/decide/",{verbose:l,version:"1",lib:"web",token:d},a.ta(e))}}},qb:function(a,b){var d;try{var e=c.ga(b,"state"),e=JSON.parse(decodeURIComponent(e)),f=c.ga(b,"expires_in");d={accessToken:c.ga(b,"access_token"),accessTokenExpiresAt:(new Date).getTime()+1E3*Number(f),bookmarkletMode:!!e.bookmarkletMode,projectId:e.projectId,projectOwnerId:e.projectOwnerId,projectToken:e.token,

@@ -56,45 +56,45 @@ 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},Qc:function(a){try{var b=r;if(c.ga(window.location.hash,"state"))var d=c.ga(window.location.hash,"state"),d=JSON.parse(decodeURIComponent(d)),

app_host:"https://mixpanel.com",autotrack:l,cdn:"https://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,opt_out_tracking_by_default:r,opt_out_tracking_persistence_type:"localStorage",opt_out_tracking_cookie_prefix:m,property_blacklist:[],xhr_headers:{}},
Z=r;y.prototype.xa=C();y.prototype.Wa=C();y.prototype.Sa=C();y.prototype.W=function(a){this.Zb=a;return this};y.prototype.s=function(a,b,d,e){var f=this,j=c.ed(a);if(0===j.length)q.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.C(a,this.bc,function(a){var c={},j=f.xa(d,this),g=f.Zb.c("track_links_timeout");f.Wa(a,this,c);t.setTimeout(f.lc(e,j,c,l),g);f.Zb.s(b,j,f.lc(e,j,c))})},this),l};y.prototype.lc=function(a,b,c,e){var e=e||r,f=this;return function(){if(!c.Zc)c.Zc=
Z=r;y.prototype.xa=C();y.prototype.Wa=C();y.prototype.Sa=C();y.prototype.X=function(a){this.Zb=a;return this};y.prototype.s=function(a,b,d,e){var f=this,j=c.ed(a);if(0===j.length)q.error("The DOM query ("+a+") returned 0 elements");else return c.a(j,function(a){c.C(a,this.bc,function(a){var c={},j=f.xa(d,this),g=f.Zb.c("track_links_timeout");f.Wa(a,this,c);t.setTimeout(f.lc(e,j,c,l),g);f.Zb.s(b,j,f.lc(e,j,c))})},this),l};y.prototype.lc=function(a,b,c,e){var e=e||r,f=this;return function(){if(!c.Zc)c.Zc=
l,a&&a(e,b)===r||f.Sa(b,c,e)}};y.prototype.xa=function(a,b){return"function"===typeof a?a(b):c.extend({},a)};c.Ub(D,y);D.prototype.xa=function(a,b){var c=D.Ed.xa.apply(this,arguments);if(b.href)c.url=b.href;return c};D.prototype.Wa=function(a,b,c){c.$b=2===a.which||a.metaKey||a.ctrlKey||"_blank"===b.target;c.href=b.href;c.$b||a.preventDefault()};D.prototype.Sa=function(a,b){b.$b||setTimeout(function(){t.location=b.href},0)};c.Ub(M,y);M.prototype.Wa=function(a,b,c){c.element=b;a.preventDefault()};
M.prototype.Sa=function(a,b){setTimeout(function(){b.element.submit()},0)};p.prototype.ka=function(){var a={};c.a(this.props,function(b,d){c.Sb(ra,d)||(a[d]=b)});return a};p.prototype.load=function(){if(!this.disabled){var a=this.v.parse(this.name);a&&(this.props=c.extend({},a))}};p.prototype.Md=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))};p.prototype.save=function(){this.disabled||(this.Dc(),this.v.set(this.name,c.pa(this.props),this.Xa,this.Ua,this.fc))};p.prototype.remove=function(){this.v.remove(this.name,r);this.v.remove(this.name,l)};p.prototype.clear=function(){this.remove();this.props={}};
p.prototype.D=function(a,b,d){return c.k(a)?("undefined"===typeof b&&(b="None"),this.Xa="undefined"===typeof d?this.Mb: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};p.prototype.X=function(a,b){return c.k(a)?(this.Xa="undefined"===typeof b?this.Mb:b,c.extend(this.props,a),this.save(),l):r};p.prototype.Da=function(a){a in this.props&&(delete this.props[a],this.save())};p.prototype.Dc=c.l(function(){var a=this.props.__cmpns,b=A?6E4:
36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.cb(a)&&delete this.props.__cmpns}});p.prototype.Ld=function(){if(!this.Gb)this.D(c.info.$c()),this.Gb=l};p.prototype.qc=function(a){this.X(c.info.xd(a))};p.prototype.mb=function(a){this.D({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.ec(a)||"$direct"},"")};p.prototype.kd=function(){return c.Aa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};p.prototype.pc=
function(a){this.Mb=this.Xa=a.cookie_expiration;this.hc(a.disable_persistence);this.zd(a.cross_subdomain_cookie);this.Bd(a.secure_cookie)};p.prototype.hc=function(a){(this.disabled=a)?this.remove():this.save()};p.prototype.zd=function(a){if(a!==this.Ua)this.Ua=a,this.remove(),this.save()};p.prototype.jd=function(){return this.Ua};p.prototype.Bd=function(a){if(a!==this.fc)this.fc=a?l:r,this.remove(),this.save()};p.prototype.H=function(a,b){var d=this.Na(a),e=b[a],f=this.R("$set"),j=this.R("$set_once"),
g=this.R("$unset"),i=this.R("$add"),h=this.R("$union"),n=this.R("$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(n,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)&&
p.prototype.D=function(a,b,d){return c.k(a)?("undefined"===typeof b&&(b="None"),this.Xa="undefined"===typeof d?this.Mb: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};p.prototype.M=function(a,b){return c.k(a)?(this.Xa="undefined"===typeof b?this.Mb:b,c.extend(this.props,a),this.save(),l):r};p.prototype.Da=function(a){a in this.props&&(delete this.props[a],this.save())};p.prototype.Dc=c.l(function(){var a=this.props.__cmpns,b=A?6E4:
36E5;if(a){for(var d in a)1*new Date-a[d]>b&&delete a[d];c.cb(a)&&delete this.props.__cmpns}});p.prototype.Ld=function(){if(!this.Gb)this.D(c.info.$c()),this.Gb=l};p.prototype.qc=function(a){this.M(c.info.xd(a))};p.prototype.mb=function(a){this.D({$initial_referrer:a||"$direct",$initial_referring_domain:c.info.ec(a)||"$direct"},"")};p.prototype.kd=function(){return c.Aa({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})};p.prototype.pc=
function(a){this.Mb=this.Xa=a.cookie_expiration;this.hc(a.disable_persistence);this.zd(a.cross_subdomain_cookie);this.Bd(a.secure_cookie)};p.prototype.hc=function(a){(this.disabled=a)?this.remove():this.save()};p.prototype.zd=function(a){if(a!==this.Ua)this.Ua=a,this.remove(),this.save()};p.prototype.jd=function(){return this.Ua};p.prototype.Bd=function(a){if(a!==this.fc)this.fc=a?l:r,this.remove(),this.save()};p.prototype.H=function(a,b){var d=this.Na(a),e=b[a],f=this.T("$set"),j=this.T("$set_once"),
g=this.T("$unset"),i=this.T("$add"),h=this.T("$union"),n=this.T("$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(n,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&&(n.push(e),this.I("$unset",e));q.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):");q.log(b);this.save()};p.prototype.I=function(a,b){var d=this.Ma(a);c.d(d)||(c.a(b,function(a,b){delete d[b]},this),this.save())};p.prototype.Na=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";
q.error("Invalid queue:",a)};p.prototype.Ma=function(a){return this.props[this.Na(a)]};p.prototype.R=function(a,b){var d=this.Na(a),b=c.d(b)?{}:b;return this.props[d]||(this.props[d]=b)};p.prototype.Ad=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};p.prototype.td=function(a){var b=(this.props.__timers||{})[a];c.d(b)||(delete this.props.__timers[a],this.save());return b};var g;h.prototype.W=function(a,b,d){if(c.d(d))q.error("You must name your new library: init(token, config, name)");
else if("mixpanel"===d)q.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=L(a,b,d),v[d]=a,a.sa(),a};h.prototype.Pa=function(a,b,d){this.__loaded=l;this.config={};this.gc(c.extend({},sa,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=C();this.Ja=[];this.Ka=[];this.Ia=[];this.P={disable_all_events:r,identify_called:r};this.persistence=this.cookie=new p(this.config);this.Jc();a=c.nb();this.D({distinct_id:a,
q.error("Invalid queue:",a)};p.prototype.Ma=function(a){return this.props[this.Na(a)]};p.prototype.T=function(a,b){var d=this.Na(a),b=c.d(b)?{}:b;return this.props[d]||(this.props[d]=b)};p.prototype.Ad=function(a){var b=this.props.__timers||{};b[a]=(new Date).getTime();this.props.__timers=b;this.save()};p.prototype.td=function(a){var b=(this.props.__timers||{})[a];c.d(b)||(delete this.props.__timers[a],this.save());return b};var g;h.prototype.X=function(a,b,d){if(c.d(d))q.error("You must name your new library: init(token, config, name)");
else if("mixpanel"===d)q.error("You must initialize the main mixpanel object right after you include the Mixpanel js snippet");else return a=L(a,b,d),v[d]=a,a.sa(),a};h.prototype.Pa=function(a,b,d){this.__loaded=l;this.config={};this.gc(c.extend({},sa,b,{name:d,token:a,callback_fn:("mixpanel"===d?d:"mixpanel."+d)+"._jsc"}));this._jsc=C();this.Ja=[];this.Ka=[];this.Ia=[];this.R={disable_all_events:r,identify_called:r};this.persistence=this.cookie=new p(this.config);this.Jc();a=c.nb();this.L()||this.D({distinct_id:a,
$device_id:a},"")};h.prototype.ua=function(){var a=this.c("disable_persistence")||this.ha();this.persistence.disabled!==a&&this.persistence.hc(a)};h.prototype.sa=function(){this.c("loaded")(this);this.c("track_pageview")&&this.mc()};h.prototype.Bc=function(){c.a(this.Ja,function(a){this.Qa.apply(this,a)},this);this.ha()||c.a(this.Ka,function(a){this.m.apply(this,a)},this);delete this.Ja;delete this.Ka};h.prototype.Qa=function(a,b){if(this.c("img"))return q.error("You can't use DOM tracking functions with img = true."),
r;if(!Z)return this.Ja.push([a,b]),r;var c=(new a).W(this);return c.s.apply(c,b)};h.prototype.ta=function(a,b){if(c.d(a))return m;if(U)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($)this.Ka.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(!U)if(d)b.callback=d;else if(e||
r;if(!Z)return this.Ja.push([a,b]),r;var c=(new a).X(this);return c.s.apply(c,b)};h.prototype.ta=function(a,b){if(c.d(a))return m;if(U)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($)this.Ka.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(!U)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.vc(b);if("img"in b){var f=o.createElement("img");f.src=a;o.body.appendChild(f)}else if(U)try{var j=new XMLHttpRequest;j.open("GET",a,l);c.a(this.c("xhr_headers"),function(a,b){j.setRequestHeader(b,a)});j.withCredentials=l;j.onreadystatechange=function(){if(4===j.readyState)if(200===j.status){if(d)if(e){var a;try{a=c.oa(j.responseText)}catch(b){q.error(b);return}d(a)}else d(Number(j.responseText))}else a=
"Bad HTTP status: "+j.status+" "+j.statusText,q.error(a),d&&(e?d({status:0,error:a}):d(0))};j.send(m)}catch(g){q.error(g)}else{f=o.createElement("script");f.type="text/javascript";f.async=l;f.defer=l;f.src=a;var i=o.getElementsByTagName("script")[0];i.parentNode.insertBefore(f,i)}}};h.prototype.La=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.La([a])};h.prototype.disable=function(a){"undefined"===typeof a?this.P.bd=l:this.Ia=this.Ia.concat(a)};h.prototype.s=ca(function(a,b,d){"function"!==typeof d&&(d=C());if(c.d(a))q.error("No event name provided to mixpanel.track");else if(this.rb(a))d(0);else{b=b||{};b.token=this.c("token");var e=this.persistence.td(a);c.d(e)||(b.$duration=parseFloat((((new Date).getTime()-
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.La([a])};h.prototype.disable=function(a){"undefined"===typeof a?this.R.bd=l:this.Ia=this.Ia.concat(a)};h.prototype.s=ca(function(a,b,d){"function"!==typeof d&&(d=C());if(c.d(a))q.error("No event name provided to mixpanel.track");else if(this.rb(a))d(0);else{b=b||{};b.token=this.c("token");var e=this.persistence.td(a);c.d(e)||(b.$duration=parseFloat((((new Date).getTime()-
e)/1E3).toFixed(3)));this.persistence.qc(o.referrer);this.c("store_google")&&this.persistence.Ld();this.c("save_referrer")&&this.persistence.mb(o.referrer);b=c.extend({},c.info.ka(),this.persistence.ka(),b);e=this.c("property_blacklist");c.isArray(e)?c.a(e,function(a){delete b[a]}):q.error("Invalid value for property_blacklist config: "+e);a=c.truncate({event:a,properties:b},255);e=c.pa(a);e=c.Cb(e);q.log("MIXPANEL REQUEST:");q.log(a);this.m(this.c("api_host")+"/track/",{data:e},this.ta(d,a));return a}});
h.prototype.mc=function(a){if(c.d(a))a=o.location.href;this.s("mp_page_view",c.info.rd(a))};h.prototype.Kd=function(){return this.Qa.call(this,D,arguments)};h.prototype.Jd=function(){return this.Qa.call(this,M,arguments)};h.prototype.Fd=function(a){c.d(a)?q.error("No event name provided to mixpanel.time_event"):this.rb(a)||this.persistence.Ad(a)};h.prototype.X=function(a,b){this.persistence.X(a,b)};h.prototype.D=function(a,b,c){this.persistence.D(a,b,c)};h.prototype.Da=function(a){this.persistence.Da(a)};
h.prototype.xb=function(a,b){var c={};c[a]=b;this.X(c)};h.prototype.$a=function(a,b,c,e,f,j,g){var i=this.U();a!==i&&a!==this.V("__alias")&&(this.Da("__alias"),this.X({$device_id:i,$user_id:a,distinct_id:a}));this.ob(this.U());this.P.ab=l;this.people.Fc(b,c,e,f,j,g)};h.prototype.reset=function(){this.persistence.clear();this.P.ab=r;this.D({distinct_id:c.nb()},"")};h.prototype.U=function(){return this.V("distinct_id")};h.prototype.Xc=function(a,b){if(a===this.V("$people_distinct_id"))return q.T("Attempting to create alias for existing People user - aborting."),
-2;var d=this;c.d(b)&&(b=this.U());if(a!==b)return this.xb("__alias",a),this.s("$create_alias",{alias:a,distinct_id:b},function(){d.$a(a)});q.error("alias matches current distinct_id - skipping api call.");this.$a(a);return-1};h.prototype.pd=function(a){this.xb("mp_name_tag",a)};h.prototype.gc=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.pc(this.config),A=A||this.c("debug")};h.prototype.c=function(a){return this.config[a]};h.prototype.V=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.rb=function(a){return c.Vb(w)||this.P.bd||c.Sb(this.Ia,a)};h.prototype.ob=ca(function(a){if(a&&!this.P.ab&&!this.c("disable_notifications")){q.log("MIXPANEL NOTIFICATION CHECK");var b=this;this.m(this.c("api_host")+
h.prototype.mc=function(a){if(c.d(a))a=o.location.href;this.s("mp_page_view",c.info.rd(a))};h.prototype.Kd=function(){return this.Qa.call(this,D,arguments)};h.prototype.Jd=function(){return this.Qa.call(this,M,arguments)};h.prototype.Fd=function(a){c.d(a)?q.error("No event name provided to mixpanel.time_event"):this.rb(a)||this.persistence.Ad(a)};h.prototype.M=function(a,b){this.persistence.M(a,b)};h.prototype.D=function(a,b,c){this.persistence.D(a,b,c)};h.prototype.Da=function(a){this.persistence.Da(a)};
h.prototype.xb=function(a,b){var c={};c[a]=b;this.M(c)};h.prototype.$a=function(a,b,c,e,f,j,g){var i=this.L();this.M({$user_id:a});a!==i&&a!==this.W("__alias")&&(this.Da("__alias"),this.M({distinct_id:a}));this.ob(this.L());this.R.ab=l;this.people.Fc(b,c,e,f,j,g)};h.prototype.reset=function(){this.persistence.clear();this.R.ab=r;var a=c.nb();this.D({distinct_id:a,$device_id:a},"")};h.prototype.L=function(){return this.W("distinct_id")};h.prototype.Xc=function(a,b){if(a===this.W("$people_distinct_id"))return q.V("Attempting to create alias for existing People user - aborting."),
-2;var d=this;c.d(b)&&(b=this.L());if(a!==b)return this.xb("__alias",a),this.s("$create_alias",{alias:a,distinct_id:b},function(){d.$a(a)});q.error("alias matches current distinct_id - skipping api call.");this.$a(a);return-1};h.prototype.pd=function(a){this.xb("mp_name_tag",a)};h.prototype.gc=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.pc(this.config),A=A||this.c("debug")};h.prototype.c=function(a){return this.config[a]};h.prototype.W=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.rb=function(a){return c.Vb(w)||this.R.bd||c.Sb(this.Ia,a)};h.prototype.ob=ca(function(a){if(a&&!this.R.ab&&!this.c("disable_notifications")){q.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.ta(function(a){a.notifications&&0<a.notifications.length&&b.Ab.call(b,a.notifications[0])}))}});h.prototype.Ab=function(a){(new g(a,this)).show()};h.prototype.Jc=function(){"localStorage"===this.c("opt_out_tracking_persistence_type")&&c.localStorage.fb()&&(!this.Za()&&this.Za({persistence_type:"cookie"})&&this.ac(),!this.ha()&&this.ha({persistence_type:"cookie"})&&this.ib(),this.Jb({persistence_type:"cookie"}));
if(this.c("opt_out_tracking_by_default")||c.cookie.get("mp_optout"))c.cookie.remove("mp_optout"),this.ib();this.ua()};h.prototype.aa=function(a,b){b=c.extend({track:c.bind(this.s,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.fb()||(b.persistence_type="cookie");return a(this.c("token"),
{s:b.track,Gd:b.track_event_name,Hd:b.track_properties,dc:b.persistence_type,cc:b.cookie_prefix,Kb:b.cookie_expiration,Lb:b.cross_subdomain_cookie,yd:b.secure_cookie})};h.prototype.ac=function(a){this.aa(ma,a);this.ua()};h.prototype.ib=function(a){a=c.extend({delete_user:l},a);a.delete_user&&this.people&&this.people.Oa()&&(this.people.Nb(),this.people.Ib());this.aa(na,a);this.ua()};h.prototype.Za=function(a){return this.aa(oa,a)};h.prototype.ha=function(a){return this.aa(ba,a)};h.prototype.Jb=function(a){this.aa(pa,
a);this.ua()};n.prototype.Pa=function(a){this.g=a};n.prototype.set=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;this.ca("save_referrer")&&this.g.persistence.mb(o.referrer);f=c.extend({},c.info.sd(),this.g.persistence.kd(),f);e.$set=f;return this.m(e,d)});n.prototype.ic=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;e.$set_once=f;return this.m(e,d)});n.prototype.oc=function(a,b){var d={},e=[];
c.isArray(a)||(a=[a]);c.a(a,function(a){this.S(a)||e.push(a)},this);d.$unset=e;return this.m(d,b)};n.prototype.Tb=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(isNaN(parseFloat(a))?q.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[b]=a)},this),d=b):(c.d(b)&&(b=1),f[a]=b);e.$add=f;return this.m(e,d)});n.prototype.append=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(b)||(f[b]=a)},this),d=b):f[a]=b;e.$append=f;return this.m(e,
d)});n.prototype.nc=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.S(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)});n.prototype.Id=F(function(a,b,d){if(!c.Wb(a)&&(a=parseFloat(a),isNaN(a))){q.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.Ib=function(a){return this.set("$transactions",[],a)};n.prototype.Nb=function(){if(this.Oa())return this.m({$delete:this.g.U()});
q.error("mixpanel.people.delete_user() requires you to call identify() first")};n.prototype.toString=function(){return this.g.toString()+".people"};n.prototype.m=function(a,b){a.$token=this.ca("token");a.$distinct_id=this.g.U();var d=this.g.V("$device_id"),e=this.g.V("$user_id");d&&(a.$device_id=d);e&&(a.$user_id=e);e=c.Pb(a);d=c.truncate(e,255);e=c.pa(e);e=c.Cb(e);if(!this.Oa())return this.Cc(a),c.d(b)||(this.ca("verbose")?b({status:-1,error:m}):b(-1)),d;q.log("MIXPANEL PEOPLE REQUEST:");q.log(d);
this.g.m(this.ca("api_host")+"/engage/",{data:e},this.g.ta(b,d));return d};n.prototype.ca=function(a){return this.g.c(a)};n.prototype.Oa=function(){return this.g.P.ab===l};n.prototype.Cc=function(a){"$set"in a?this.g.persistence.H("$set",a):"$set_once"in a?this.g.persistence.H("$set_once",a):"$unset"in a?this.g.persistence.H("$unset",a):"$add"in a?this.g.persistence.H("$add",a):"$append"in a?this.g.persistence.H("$append",a):"$union"in a?this.g.persistence.H("$union",a):q.error("Invalid call to _enqueue():",
a);this.ua()};n.prototype.Pa=function(a){this.g=a};n.prototype.set=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.U(b)||(f[b]=a)},this),d=b):f[a]=b;this.ca("save_referrer")&&this.g.persistence.mb(o.referrer);f=c.extend({},c.info.sd(),this.g.persistence.kd(),f);e.$set=f;return this.m(e,d)});n.prototype.ic=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.U(b)||(f[b]=a)},this),d=b):f[a]=b;e.$set_once=f;return this.m(e,d)});n.prototype.oc=function(a,b){var d={},e=[];
c.isArray(a)||(a=[a]);c.a(a,function(a){this.U(a)||e.push(a)},this);d.$unset=e;return this.m(d,b)};n.prototype.Tb=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.U(b)||(isNaN(parseFloat(a))?q.error("Invalid increment value passed to mixpanel.people.increment - must be a number"):f[b]=a)},this),d=b):(c.d(b)&&(b=1),f[a]=b);e.$add=f;return this.m(e,d)});n.prototype.append=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.U(b)||(f[b]=a)},this),d=b):f[a]=b;e.$append=f;return this.m(e,
d)});n.prototype.nc=F(function(a,b,d){var e={},f={};c.k(a)?(c.a(a,function(a,b){this.U(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)});n.prototype.Id=F(function(a,b,d){if(!c.Wb(a)&&(a=parseFloat(a),isNaN(a))){q.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.Ib=function(a){return this.set("$transactions",[],a)};n.prototype.Nb=function(){if(this.Oa())return this.m({$delete:this.g.L()});
q.error("mixpanel.people.delete_user() requires you to call identify() first")};n.prototype.toString=function(){return this.g.toString()+".people"};n.prototype.m=function(a,b){a.$token=this.ca("token");a.$distinct_id=this.g.L();var d=this.g.W("$device_id"),e=this.g.W("$user_id");d&&(a.$device_id=d);e&&(a.$user_id=e);e=c.Pb(a);d=c.truncate(e,255);e=c.pa(e);e=c.Cb(e);if(!this.Oa())return this.Cc(a),c.d(b)||(this.ca("verbose")?b({status:-1,error:m}):b(-1)),d;q.log("MIXPANEL PEOPLE REQUEST:");q.log(d);
this.g.m(this.ca("api_host")+"/engage/",{data:e},this.g.ta(b,d));return d};n.prototype.ca=function(a){return this.g.c(a)};n.prototype.Oa=function(){return this.g.R.ab===l};n.prototype.Cc=function(a){"$set"in a?this.g.persistence.H("$set",a):"$set_once"in a?this.g.persistence.H("$set_once",a):"$unset"in a?this.g.persistence.H("$unset",a):"$add"in a?this.g.persistence.H("$add",a):"$append"in a?this.g.persistence.H("$append",a):"$union"in a?this.g.persistence.H("$union",a):q.error("Invalid call to _enqueue():",
a)};n.prototype.ba=function(a,b,d,e){var f=this,g=c.extend({},this.g.persistence.Ma(a)),h=g;!c.d(g)&&c.k(g)&&!c.cb(g)&&(f.g.persistence.I(a,g),e&&(h=e(g)),b.call(f,h,function(b,e){0===b&&f.g.persistence.H(a,g);c.d(d)||d(b,e)}))};n.prototype.Fc=function(a,b,d,e,f,g){var h=this,i=this.g.persistence.Ma("$append");this.ba("$set",this.set,a);this.ba("$set_once",this.ic,e);this.ba("$unset",this.oc,g,function(a){return c.keys(a)});this.ba("$add",this.Tb,b);this.ba("$union",this.nc,f);if(!c.d(i)&&c.isArray(i)&&
i.length){for(var n,a=function(a,b){0===a&&h.g.persistence.H("$append",n);c.d(d)||d(a,b)},b=i.length-1;0<=b;b--)n=i.pop(),h.append(n,a);h.g.persistence.save()}};n.prototype.S=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a};h.yc=function(a,b){c.Eb(this);this.hb=b;this.kb=this.hb.persistence;this.B=c.K(a.id);this.Yb=c.K(a.message_id);this.body=(c.K(a.body)||"").replace(/\n/g,"<br/>");this.ad=c.K(a.cta)||"Close";this.ia=c.K(a.type)||"takeover";this.style=c.K(a.style)||
"light";this.title=c.K(a.title)||"";this.ma=g.xc;this.Z=g.wc;this.fa=a.cta_url||m;this.bb=a.image_url||m;this.L=a.thumb_image_url||m;this.Ea=a.video_url||m;this.wa=l;if(!this.fa)this.fa="#dismiss",this.wa=r;this.u="mini"===this.ia;if(!this.u)this.ia="takeover";this.qd=!this.u?g.$:g.Fa;this.zb();this.ya=this.Kc();this.Nc()};g=h.yc;g.M=200;g.w="mixpanel-notification";g.na=0.6;g.G=25;g.qa=200;g.$=388;g.Fa=420;g.z=85;g.Ga=5;g.J=60;g.Ha=Math.round(g.J/2);g.xc=595;g.wc=334;g.prototype.show=function(){var a=
this;this.zb();this.p?(this.Mc(),this.Lc(),this.Rc(this.Ac)):setTimeout(function(){a.show()},300)};g.prototype.Va=c.l(function(){this.Xb||this.wb({invisible:l});var a=this.Cd?this.i("video"):this.Q();if(this.rc)this.Tc("bg","visible"),this.N(a,"exiting"),setTimeout(this.yb,g.M);else{var b,c,e;this.u?(b="right",c=20,e=-100):(b="top",c=g.G,e=g.qa+g.G);this.ra([{q:this.i("bg"),o:"opacity",start:g.na,j:0},{q:a,o:"opacity",start:1,j:0},{q:a,o:b,start:c,j:e}],g.M,this.yb)}});g.prototype.N=c.l(function(a,
i.length){for(var n,a=function(a,b){0===a&&h.g.persistence.H("$append",n);c.d(d)||d(a,b)},b=i.length-1;0<=b;b--)n=i.pop(),h.append(n,a);h.g.persistence.save()}};n.prototype.U=function(a){return"$distinct_id"===a||"$token"===a||"$device_id"===a||"$user_id"===a};h.yc=function(a,b){c.Eb(this);this.hb=b;this.kb=this.hb.persistence;this.B=c.K(a.id);this.Yb=c.K(a.message_id);this.body=(c.K(a.body)||"").replace(/\n/g,"<br/>");this.ad=c.K(a.cta)||"Close";this.ia=c.K(a.type)||"takeover";this.style=c.K(a.style)||
"light";this.title=c.K(a.title)||"";this.ma=g.xc;this.Z=g.wc;this.fa=a.cta_url||m;this.bb=a.image_url||m;this.N=a.thumb_image_url||m;this.Ea=a.video_url||m;this.wa=l;if(!this.fa)this.fa="#dismiss",this.wa=r;this.u="mini"===this.ia;if(!this.u)this.ia="takeover";this.qd=!this.u?g.$:g.Fa;this.zb();this.ya=this.Kc();this.Nc()};g=h.yc;g.O=200;g.w="mixpanel-notification";g.na=0.6;g.G=25;g.qa=200;g.$=388;g.Fa=420;g.z=85;g.Ga=5;g.J=60;g.Ha=Math.round(g.J/2);g.xc=595;g.wc=334;g.prototype.show=function(){var a=
this;this.zb();this.p?(this.Mc(),this.Lc(),this.Rc(this.Ac)):setTimeout(function(){a.show()},300)};g.prototype.Va=c.l(function(){this.Xb||this.wb({invisible:l});var a=this.Cd?this.i("video"):this.S();if(this.rc)this.Tc("bg","visible"),this.P(a,"exiting"),setTimeout(this.yb,g.O);else{var b,c,e;this.u?(b="right",c=20,e=-100):(b="top",c=g.G,e=g.qa+g.G);this.ra([{q:this.i("bg"),o:"opacity",start:g.na,j:0},{q:a,o:"opacity",start:1,j:0},{q:a,o:b,start:c,j:e}],g.O,this.yb)}});g.prototype.P=c.l(function(a,
b){b=g.w+"-"+b;"string"===typeof a&&(a=this.i(a));a.className?~(" "+a.className+" ").indexOf(" "+b+" ")||(a.className+=" "+b):a.className=b});g.prototype.Tc=c.l(function(a,b){b=g.w+"-"+b;"string"===typeof a&&(a=this.i(a));if(a.className)a.className=(" "+a.className+" ").replace(" "+b+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,"")});g.prototype.ra=c.l(function(a,b,c,e){var f=this,g=r,h,i;h=1*new Date;var n,e=e||h;n=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)*n/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.q&&(i.q.style[i.o]=""+i.F+("opacity"===i.o?"":"px"));setTimeout(function(){f.ra(a,b,c,e)},10)}else c&&c()});g.prototype.Ac=c.l(function(){var a=this;if(!this.Dd&&!this.tb()[this.B])this.Dd=l,this.p.appendChild(this.ja),setTimeout(function(){var b=a.Q();if(a.rc)a.u||a.N("bg","visible"),a.N(b,"visible"),a.vb();else{var c,
e,f;a.u?(c="right",e=-100,f=20):(c="top",e=g.qa+g.G,f=g.G);a.ra([{q:a.i("bg"),o:"opacity",start:0,j:g.na},{q:b,o:"opacity",start:0,j:1},{q:b,o:c,start:e,j:f}],g.M,a.vb)}},100),c.C(a.i("cancel"),"click",function(b){b.preventDefault();a.Va()}),c.C(a.i("button")||a.i("mini-content"),"click",function(b){b.preventDefault();a.Y?(a.Ra("$campaign_open",{$resource_type:"video"}),a.Uc()):(a.Va(),a.wa&&a.Ra("$campaign_open",{$resource_type:"link"},function(){t.location.href=a.fa}))})});g.prototype.i=function(a){return o.getElementById(g.w+
"-"+a)};g.prototype.Q=function(){return this.i(this.ia)};g.prototype.tb=function(){return this.kb.props.__cmpns||(this.kb.props.__cmpns={})};g.prototype.O=function(a,b){return this.A[a]&&this.A[a]<=b};g.prototype.Kc=function(){var a=[];this.u?(this.L=this.L||"//cdn.mxpnl.com/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.L)):(this.bb?(a.push(this.bb),this.Rb='<img id="img" src="'+this.bb+'"/>'):this.Rb="",this.L?(a.push(this.L),this.kc='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+
this.L+'" width="'+g.J+'" height="'+g.J+'"/><div id="thumbspacer"></div>'):this.kc="");return a};g.prototype.Lc=function(){var a="",b="",c="";this.ja=o.createElement("div");this.ja.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.wa||this.Y?"":'<div id="button-close"></div>',e=this.Y?'<div id="button-play"></div>':"";this.O("ie",7)&&(e=a="");a='<div id="takeover">'+this.kc+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Rb+'<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.fa+'">'+this.ad+
if(i.F!==i.j){var g=l,o=i.j>=i.start?1:-1;i.F=i.start+(i.j-i.start)*n/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.q&&(i.q.style[i.o]=""+i.F+("opacity"===i.o?"":"px"));setTimeout(function(){f.ra(a,b,c,e)},10)}else c&&c()});g.prototype.Ac=c.l(function(){var a=this;if(!this.Dd&&!this.tb()[this.B])this.Dd=l,this.p.appendChild(this.ja),setTimeout(function(){var b=a.S();if(a.rc)a.u||a.P("bg","visible"),a.P(b,"visible"),a.vb();else{var c,
e,f;a.u?(c="right",e=-100,f=20):(c="top",e=g.qa+g.G,f=g.G);a.ra([{q:a.i("bg"),o:"opacity",start:0,j:g.na},{q:b,o:"opacity",start:0,j:1},{q:b,o:c,start:e,j:f}],g.O,a.vb)}},100),c.C(a.i("cancel"),"click",function(b){b.preventDefault();a.Va()}),c.C(a.i("button")||a.i("mini-content"),"click",function(b){b.preventDefault();a.Y?(a.Ra("$campaign_open",{$resource_type:"video"}),a.Uc()):(a.Va(),a.wa&&a.Ra("$campaign_open",{$resource_type:"link"},function(){t.location.href=a.fa}))})});g.prototype.i=function(a){return o.getElementById(g.w+
"-"+a)};g.prototype.S=function(){return this.i(this.ia)};g.prototype.tb=function(){return this.kb.props.__cmpns||(this.kb.props.__cmpns={})};g.prototype.Q=function(a,b){return this.A[a]&&this.A[a]<=b};g.prototype.Kc=function(){var a=[];this.u?(this.N=this.N||"//cdn.mxpnl.com/site_media/images/icons/notifications/mini-news-dark.png",a.push(this.N)):(this.bb?(a.push(this.bb),this.Rb='<img id="img" src="'+this.bb+'"/>'):this.Rb="",this.N?(a.push(this.N),this.kc='<div id="thumbborder-wrapper"><div id="thumbborder"></div></div><img id="thumbnail" src="'+
this.N+'" width="'+g.J+'" height="'+g.J+'"/><div id="thumbspacer"></div>'):this.kc="");return a};g.prototype.Lc=function(){var a="",b="",c="";this.ja=o.createElement("div");this.ja.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.wa||this.Y?"":'<div id="button-close"></div>',e=this.Y?'<div id="button-play"></div>':"";this.Q("ie",7)&&(e=a="");a='<div id="takeover">'+this.kc+'<div id="mainbox"><div id="cancel"><div id="cancel-icon"></div></div><div id="content">'+this.Rb+'<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.fa+'">'+this.ad+
"</a>"+e+"</div></div></div>"}this.tc?(b="//www.youtube.com/embed/"+this.tc+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",this.uc&&(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.sc&&(b="//player.vimeo.com/video/"+
this.sc+"?autoplay=1&title=0&byline=0&portrait=0");if(this.Y)this.Pd='<iframe id="'+g.w+'-video-frame" width="'+this.ma+'" height="'+this.Z+'" 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.ja.innerHTML=('<div id="overlay" class="'+
this.ia+'"><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.Mc=function(){this.h="dark"===this.style?{Ta:"#1d1f25",da:"#282b32",va:"#3a4147",Db:"#4a5157",Yc:"#32353c",Hb:"0.4",gb:"#2a3137",Ca:"#fff",lb:"#9498a3",jc:"#464851",Ba:"#ddd"}:{Ta:"#fff",da:"#e7eaee",va:"#eceff3",Db:"#f5f5f5",Yc:"#e4ecf2",Hb:"1.0",gb:"#fafafa",Ca:"#5c6578",lb:"#8b949b",jc:"#ced9e6",Ba:"#7c8598"};
var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=g.J+2*g.Ga,f=g.M/1E3+"s";this.u&&(a="none");var h={};h["@media only screen and (max-width: "+(g.Fa+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",
var a="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",b=a,d=a,e=g.J+2*g.Ga,f=g.O/1E3+"s";this.u&&(a="none");var h={};h["@media only screen and (max-width: "+(g.Fa+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.dd+"px","min-height":4*this.cd+"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.na},

@@ -105,3 +105,3 @@ ".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.$+"px","margin-left":Math.round(-g.$/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:g.qa+"px",transition:"opacity "+f+", top "+f},"#takeover.visible":{opacity:"1.0",top:g.G+"px"},"#takeover.exiting":{opacity:"0.0",

transition:"background-color "+f},"#mini-border":{height:g.z+6+"px",width:g.Fa+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.h.da,background:"linear-gradient(135deg, "+this.h.Db+" 0%, "+this.h.da+" 100%)",transition:"background-color "+f},"#mini:hover #mini-icon":{"background-color":this.h.gb},
"#mini:hover #mainbox":{"background-color":this.h.gb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.L+")",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.h.Ca},
"#mini:hover #mainbox":{"background-color":this.h.gb},"#mini-icon-img":{position:"absolute","background-image":"url("+this.N+")",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.h.Ca},
"#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.h.Ca},"#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",

@@ -113,17 +113,17 @@ "font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.h.jc,transition:"color "+f},"#tagline a:hover":{color:this.h.Ba},"#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)",

f},"#video.exiting":{opacity:"0.0",top:this.Z+"px"},"#video-holder":{position:"absolute",width:this.ma-1+"px",height:this.Z+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.ma+"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.h.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.h.lb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.O("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.O("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.h.va},
"background-color":this.h.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.h.lb,"background-color":"#666","border-radius":"0 0 5px 0"}};this.Q("ie",8)&&c.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}});this.Q("ie",7)&&c.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.h.va},
"#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"],k;for(k in a)for(e=0;e<b.length;e++)if(f=b[e],f in a[k])for(var i=a[k][f],n=0;n<d.length;n++)a[k]["-"+d[n]+"-"+f]=i;(function(a,b){function c(a){var b="",d;for(d in a){var f=d.replace(/#/g,"#"+g.w+"-").replace(/\./g,"."+g.w+"-"),b=b+("\n"+f+" {"),f=a[d],e;for(e in f)b+=
e+":"+f[e]+";";b+="}"}return b}var d=c(a)+function(a){var b="",d;for(d in a)b+="\n"+d+" {"+c(a[d])+"\n}";return b}(b),e=o.head||o.getElementsByTagName("head")[0]||o.documentElement,f=o.createElement("style");e.appendChild(f);f.setAttribute("type","text/css");f.styleSheet?f.styleSheet.cssText=d:f.textContent=d})(a,h)};g.prototype.Nc=c.l(function(){if(this.Ea){var a=this;a.uc="postMessage"in t;a.fa=a.Ea;var b=a.Ea.match(/(?:youtube(?:-nocookie)?\.com\/(?:[^\/]+\/.+\/|(?:v|e(?:mbed)?)\/|.*[?&]v=)|youtu\.be\/)([^"&?\/ ]{11})/i),
c=a.Ea.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.Y=l,a.tc=b[1],a.uc)t.onYouTubeIframeAPIReady=function(){a.i("video-frame")&&a.Bb()},b=o.createElement("script"),b.src="//www.youtube.com/iframe_api",c=o.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.Y=l,a.sc=c[1];if(a.O("ie",7)||a.O("firefox",3))a.Y=r,a.wa=l}});g.prototype.vb=c.l(function(){function a(a,b){var c={};if(o.defaultView&&o.defaultView.getComputedStyle)c=o.defaultView.getComputedStyle(a,m);else if(a.currentStyle)c=
c=a.Ea.match(/vimeo\.com\/.*?(\d+)/i);if(b){if(a.Y=l,a.tc=b[1],a.uc)t.onYouTubeIframeAPIReady=function(){a.i("video-frame")&&a.Bb()},b=o.createElement("script"),b.src="//www.youtube.com/iframe_api",c=o.getElementsByTagName("script")[0],c.parentNode.insertBefore(b,c)}else if(c)a.Y=l,a.sc=c[1];if(a.Q("ie",7)||a.Q("firefox",3))a.Y=r,a.wa=l}});g.prototype.vb=c.l(function(){function a(a,b){var c={};if(o.defaultView&&o.defaultView.getComputedStyle)c=o.defaultView.getComputedStyle(a,m);else if(a.currentStyle)c=
a.currentStyle;return c[b]}var b=this;c.C(b.i("bg"),"click",function(){b.Va()});if(this.B){var d=this.i("overlay");d&&"hidden"!==a(d,"visibility")&&"none"!==a(d,"display")&&this.wb()}});g.prototype.wb=c.l(function(a){if(!this.Xb)this.Xb=l,this.B&&(this.tb()[this.B]=1*new Date,this.kb.save()),this.Ra("$campaign_delivery",a),this.hb.people.append({$campaigns:this.B,$notifications:{campaign_id:this.B,message_id:this.Yb,type:"web",time:new Date}})});g.prototype.Rc=function(a){var b=this;if(0===this.ya.length)a();
else{for(var c=0,e=[],f=function(){c++;c===b.ya.length&&a&&(a(),a=m)},g=0;g<this.ya.length;g++){var h=new Image;h.onload=f;h.src=this.ya[g];h.complete&&f();e.push(h)}this.O("ie",7)&&setTimeout(function(){var b=l;for(g=0;g<e.length;g++)e[g].complete||(b=r);b&&a&&(a(),a=m)},500)}};g.prototype.yb=c.l(function(){t.clearInterval(this.Wc);this.ja.style.visibility="hidden";this.p.removeChild(this.ja)});g.prototype.zb=function(){function a(a){if(a in e)return l;if(!c)for(var a=a[0].toUpperCase()+a.slice(1),
else{for(var c=0,e=[],f=function(){c++;c===b.ya.length&&a&&(a(),a=m)},g=0;g<this.ya.length;g++){var h=new Image;h.onload=f;h.src=this.ya[g];h.complete&&f();e.push(h)}this.Q("ie",7)&&setTimeout(function(){var b=l;for(g=0;g<e.length;g++)e[g].complete||(b=r);b&&a&&(a(),a=m)},500)}};g.prototype.yb=c.l(function(){t.clearInterval(this.Wc);this.ja.style.visibility="hidden";this.p.removeChild(this.ja)});g.prototype.zb=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&&!t.ActiveXObject&&"ActiveXObject"in t&&(this.A.ie=11);if(this.p=o.body||o.getElementsByTagName("body")[0])this.dd=Math.max(this.p.scrollWidth,o.documentElement.scrollWidth,this.p.offsetWidth,o.documentElement.offsetWidth,this.p.clientWidth,o.documentElement.clientWidth),
this.cd=Math.max(this.p.scrollHeight,o.documentElement.scrollHeight,this.p.offsetHeight,o.documentElement.offsetHeight,this.p.clientHeight,o.documentElement.clientHeight);var c=this.A.ie,e=o.createElement("div").style;this.rc=this.p&&a("transition")&&a("transform");this.Ya=(33<=this.A.chrome||15<=this.A.firefox)&&this.p&&a("backfaceVisibility")&&a("perspective")&&a("transform")};g.prototype.Uc=c.l(function(){function a(){t.YT&&t.YT.loaded&&b.Bb();b.Cd=l;b.Q().style.visibility="hidden"}var b=this,
c=[{q:b.Q(),o:"opacity",start:1,j:0},{q:b.Q(),o:"top",start:g.G,j:-500},{q:b.i("video-noflip"),o:"opacity",start:0,j:1},{q:b.i("video-noflip"),o:"top",start:2*-b.Z,j:0}];if(b.u){var e=b.i("bg"),f=b.i("overlay");e.style.width="100%";e.style.height="100%";f.style.width="100%";b.N(b.Q(),"exiting");b.N(e,"visible");c.push({q:b.i("bg"),o:"opacity",start:0,j:g.na})}b.i("video-holder").innerHTML=b.Pd;b.Ya?(b.N("flipper","flipped"),setTimeout(a,g.M)):b.ra(c,g.M,a)});g.prototype.Ra=function(a,b,d){this.B?
this.cd=Math.max(this.p.scrollHeight,o.documentElement.scrollHeight,this.p.offsetHeight,o.documentElement.offsetHeight,this.p.clientHeight,o.documentElement.clientHeight);var c=this.A.ie,e=o.createElement("div").style;this.rc=this.p&&a("transition")&&a("transform");this.Ya=(33<=this.A.chrome||15<=this.A.firefox)&&this.p&&a("backfaceVisibility")&&a("perspective")&&a("transform")};g.prototype.Uc=c.l(function(){function a(){t.YT&&t.YT.loaded&&b.Bb();b.Cd=l;b.S().style.visibility="hidden"}var b=this,
c=[{q:b.S(),o:"opacity",start:1,j:0},{q:b.S(),o:"top",start:g.G,j:-500},{q:b.i("video-noflip"),o:"opacity",start:0,j:1},{q:b.i("video-noflip"),o:"top",start:2*-b.Z,j:0}];if(b.u){var e=b.i("bg"),f=b.i("overlay");e.style.width="100%";e.style.height="100%";f.style.width="100%";b.P(b.S(),"exiting");b.P(e,"visible");c.push({q:b.i("bg"),o:"opacity",start:0,j:g.na})}b.i("video-holder").innerHTML=b.Pd;b.Ya?(b.P("flipper","flipped"),setTimeout(a,g.O)):b.ra(c,g.O,a)});g.prototype.Ra=function(a,b,d){this.B?
(b=b||{},b=c.extend(b,{campaign_id:this.B,message_id:this.Yb,message_type:"web_inapp",message_subtype:this.ia}),this.hb.track(a,b,d)):d&&d.call()};g.prototype.Bb=c.l(function(){var a=this;if(!a.Qd){a.Qd=l;var b=a.i("video-elapsed"),d=a.i("video-time"),e=a.i("video-progress");new t.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.Wc=t.setInterval(function(){var a=h.getCurrentTime();b.style.width=100*(a/i)+"%";g(a)},250);c.C(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.Fd;h.prototype.track=h.prototype.s;h.prototype.track_links=h.prototype.Kd;h.prototype.track_forms=h.prototype.Jd;
h.prototype.track_pageview=h.prototype.mc;h.prototype.register=h.prototype.X;h.prototype.register_once=h.prototype.D;h.prototype.unregister=h.prototype.Da;h.prototype.identify=h.prototype.$a;h.prototype.alias=h.prototype.Xc;h.prototype.name_tag=h.prototype.pd;h.prototype.set_config=h.prototype.gc;h.prototype.get_config=h.prototype.c;h.prototype.get_property=h.prototype.V;h.prototype.get_distinct_id=h.prototype.U;h.prototype.toString=h.prototype.toString;h.prototype._check_and_handle_notifications=
var h=f.target,i=h.getDuration();g(0);a.Wc=t.setInterval(function(){var a=h.getCurrentTime();b.style.width=100*(a/i)+"%";g(a)},250);c.C(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.X;h.prototype.reset=h.prototype.reset;h.prototype.disable=h.prototype.disable;h.prototype.time_event=h.prototype.Fd;h.prototype.track=h.prototype.s;h.prototype.track_links=h.prototype.Kd;h.prototype.track_forms=h.prototype.Jd;
h.prototype.track_pageview=h.prototype.mc;h.prototype.register=h.prototype.M;h.prototype.register_once=h.prototype.D;h.prototype.unregister=h.prototype.Da;h.prototype.identify=h.prototype.$a;h.prototype.alias=h.prototype.Xc;h.prototype.name_tag=h.prototype.pd;h.prototype.set_config=h.prototype.gc;h.prototype.get_config=h.prototype.c;h.prototype.get_property=h.prototype.W;h.prototype.get_distinct_id=h.prototype.L;h.prototype.toString=h.prototype.toString;h.prototype._check_and_handle_notifications=
h.prototype.ob;h.prototype._show_notification=h.prototype.Ab;h.prototype.opt_out_tracking=h.prototype.ib;h.prototype.opt_in_tracking=h.prototype.ac;h.prototype.has_opted_out_tracking=h.prototype.ha;h.prototype.has_opted_in_tracking=h.prototype.Za;h.prototype.clear_opt_in_out_tracking=h.prototype.Jb;p.prototype.properties=p.prototype.ka;p.prototype.update_search_keyword=p.prototype.qc;p.prototype.update_referrer_info=p.prototype.mb;p.prototype.get_cross_subdomain=p.prototype.jd;p.prototype.clear=p.prototype.clear;
n.prototype.set=n.prototype.set;n.prototype.set_once=n.prototype.ic;n.prototype.unset=n.prototype.oc;n.prototype.increment=n.prototype.Tb;n.prototype.append=n.prototype.append;n.prototype.union=n.prototype.nc;n.prototype.track_charge=n.prototype.Id;n.prototype.clear_charges=n.prototype.Ib;n.prototype.delete_user=n.prototype.Nb;n.prototype.toString=n.prototype.toString;c.ud(h);var z={};(function(){V=1;v=t.mixpanel;c.d(v)?q.T('"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?q.error("Mixpanel library has already been downloaded at least once."):1.1>(v.__SV||0)?q.T("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)&&(z[a[a.length-1]]=L.apply(this,a))}),ia(),v.init(),c.a(z,function(a){a.sa()}),ha())})()})();
n.prototype.set=n.prototype.set;n.prototype.set_once=n.prototype.ic;n.prototype.unset=n.prototype.oc;n.prototype.increment=n.prototype.Tb;n.prototype.append=n.prototype.append;n.prototype.union=n.prototype.nc;n.prototype.track_charge=n.prototype.Id;n.prototype.clear_charges=n.prototype.Ib;n.prototype.delete_user=n.prototype.Nb;n.prototype.toString=n.prototype.toString;c.ud(h);var z={};(function(){V=1;v=t.mixpanel;c.d(v)?q.V('"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?q.error("Mixpanel library has already been downloaded at least once."):1.1>(v.__SV||0)?q.V("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)&&(z[a[a.length-1]]=L.apply(this,a))}),ia(),v.init(),c.a(z,function(a){a.sa()}),ha())})()})();
})();
{
"name": "mixpanel-browser",
"version": "2.23.0-beta",
"version": "2.23.0",
"description": "The official Mixpanel JavaScript browser client library",

@@ -5,0 +5,0 @@ "main": "build/mixpanel.cjs.js",

var Config = {
DEBUG: false,
LIB_VERSION: '2.23.0-beta'
LIB_VERSION: '2.23.0'
};
export default Config;

@@ -1570,3 +1570,4 @@ /* eslint camelcase: "off", eqeqeq: "off" */

'mp_lib': 'web',
'$lib_version': Config.LIB_VERSION
'$lib_version': Config.LIB_VERSION,
'time': _.timestamp() / 1000 // epoch time in seconds
});

@@ -1573,0 +1574,0 @@ },

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc