!function(){"use strict";var a,o={DEBUG:!1,LIB_VERSION:"2.41.0"};a="undefined"==typeof window?{navigator:{userAgent:""},document:{location:f={hostname:""},referrer:""},screen:{width:0,height:0},location:f}:window;function t(e,t){return function(){return arguments[0]="["+t+"] "+arguments[0],e.apply(D,arguments)}}function e(e){return{log:t(D.log,e),error:t(D.error,e),critical:t(D.critical,e)}}var i,n,r,s,c,u,p,_,h,l=Array.prototype,d=Function.prototype,f=Object.prototype,g=l.slice,m=f.toString,v=f.hasOwnProperty,y=a.console,b=a.navigator,k=a.document,w=a.opera,x=a.screen,S=b.userAgent,E=d.bind,q=l.forEach,O=l.indexOf,I=l.map,l=Array.isArray,T={},C={trim:function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},D={log:function(){if(o.DEBUG&&!C.isUndefined(y)&&y)try{y.log.apply(y,arguments)}catch(e){C.each(arguments,function(e){y.log(e)})}},warn:function(){if(o.DEBUG&&!C.isUndefined(y)&&y){var t=["Mixpanel warning:"].concat(C.toArray(arguments));try{y.warn.apply(y,t)}catch(e){C.each(t,function(e){y.warn(e)})}}},error:function(){if(o.DEBUG&&!C.isUndefined(y)&&y){var t=["Mixpanel error:"].concat(C.toArray(arguments));try{y.error.apply(y,t)}catch(e){C.each(t,function(e){y.error(e)})}}},critical:function(){if(!C.isUndefined(y)&&y){var t=["Mixpanel error:"].concat(C.toArray(arguments));try{y.error.apply(y,t)}catch(e){C.each(t,function(e){y.error(e)})}}}};function $(){var e,t="";for("-"===n&&u(t="-");"0"<=n&&n<="9";)t+=n,u();if("."===n)for(t+=".";u()&&"0"<=n&&n<="9";)t+=n;if("e"===n||"E"===n)for(t+=n,u(),"-"!==n&&"+"!==n||(t+=n,u());"0"<=n&&n<="9";)t+=n,u();if(e=+t,isFinite(e))return e;c("Bad number")}function A(){for(var e=+new Date,t=0;e==+new Date;)t++;return e.toString(16)+t.toString(16)}C.bind=function(i,r){var n,o;if(E&&i.bind===E)return E.apply(i,g.call(arguments,1));if(!C.isFunction(i))throw new TypeError;return n=g.call(arguments,2),o=function(){if(!(this instanceof o))return i.apply(r,n.concat(g.call(arguments)));var e={};e.prototype=i.prototype;var t=new e;e.prototype=null;e=i.apply(t,n.concat(g.call(arguments)));return Object(e)===e?e:t}},C.bind_instance_methods=function(e){for(var t in e)"function"==typeof e[t]&&(e[t]=C.bind(e[t],e))},C.each=function(e,t,i){if(null!=e)if(q&&e.forEach===q)e.forEach(t,i);else if(e.length===+e.length){for(var r=0,n=e.length;r/g,">").replace(/"/g,""").replace(/'/g,"'"):e},C.extend=function(i){return C.each(g.call(arguments,1),function(e){for(var t in e)void 0!==e[t]&&(i[t]=e[t])}),i},C.isArray=l||function(e){return"[object Array]"===m.call(e)},C.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},C.isArguments=function(e){return!(!e||!v.call(e,"callee"))},C.toArray=function(e){return e?e.toArray?e.toArray():C.isArray(e)||C.isArguments(e)?g.call(e):C.values(e):[]},C.map=function(e,t,i){if(I&&e.map===I)return e.map(t,i);var r=[];return C.each(e,function(e){r.push(t.call(i,e))}),r},C.keys=function(e){var i=[];return null===e||C.each(e,function(e,t){i[i.length]=t}),i},C.values=function(e){var t=[];return null===e||C.each(e,function(e){t[t.length]=e}),t},C.include=function(e,t){var i=!1;return null===e?i:O&&e.indexOf===O?-1!=e.indexOf(t):(C.each(e,function(e){if(i=i||e===t)return T}),i)},C.includes=function(e,t){return-1!==e.indexOf(t)},C.inherit=function(e,t){return e.prototype=new t,(e.prototype.constructor=e).superclass=t.prototype,e},C.isObject=function(e){return e===Object(e)&&!C.isArray(e)},C.isEmptyObject=function(e){if(C.isObject(e)){for(var t in e)if(v.call(e,t))return!1;return!0}return!1},C.isUndefined=function(e){return void 0===e},C.isString=function(e){return"[object String]"==m.call(e)},C.isDate=function(e){return"[object Date]"==m.call(e)},C.isNumber=function(e){return"[object Number]"==m.call(e)},C.isElement=function(e){return!(!e||1!==e.nodeType)},C.encodeDates=function(i){return C.each(i,function(e,t){C.isDate(e)?i[t]=C.formatDate(e):C.isObject(e)&&(i[t]=C.encodeDates(e))}),i},C.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},C.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getFullYear()+"-"+t(e.getMonth()+1)+"-"+t(e.getDate())+" "+t(e.getHours())+":"+t(e.getMinutes())+":"+t(e.getSeconds())},C.safewrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){D.critical("Implementation error. Please turn on debug and contact support@mixpanel.com."),o.DEBUG&&D.critical(e)}}},C.safewrap_class=function(e,t){for(var i=0;i>12&63,i=n>>6&63,r=63&n,u[a++]=o.charAt(n>>18&63)+o.charAt(t)+o.charAt(i)+o.charAt(r),s>6|192,63&s|128):String.fromCharCode(s>>12|224,s>>6&63|128,63&s|128),null!==a&&(r>>0)%100a)return Y.error("Timeout waiting for mutex on "+o+"; clearing lock. ["+r+"]"),c.removeItem(_),c.removeItem(p),void g();setTimeout(function(){try{e()}catch(e){h(e)}},s*(Math.random()+.1))},d=function(e,t){e()?t():l(function(){d(e,t)})},f=function(){var e=c.getItem(p);if(e&&e!==r)return!1;if(c.setItem(p,r),c.getItem(p)===r)return!0;if(!N(c,!0))throw new Error("localStorage support dropped while acquiring lock");return!1},g=function(){c.setItem(u,r),d(f,function(){c.getItem(u)!==r?l(function(){c.getItem(p)===r?d(function(){return!c.getItem(_)},m):g()}):m()})},m=function(){c.setItem(_,"1");try{e()}finally{c.removeItem(_),c.getItem(p)===r&&c.removeItem(p),c.getItem(u)===r&&c.removeItem(u)}};try{if(!N(c,!0))throw new Error("localStorage support check failed");g()}catch(e){h(e)}};function Z(e,t){t=t||{},this.storageKey=e,this.storage=t.storage||window.localStorage,this.lock=new V(e,{storage:this.storage}),this.pid=t.pid||null,this.memQueue=[]}var ee=e("batch");Z.prototype.enqueue=function(i,e,r){var n={id:R(),flushAfter:(new Date).getTime()+2*e,payload:i};this.lock.withLock(C.bind(function(){var t;try{var e=this.readFromStorage();e.push(n),(t=this.saveToStorage(e))&&this.memQueue.push(n)}catch(e){ee.error("Error enqueueing item",i),t=!1}r&&r(t)},this),function(e){ee.error("Error acquiring storage lock",e),r&&r(!1)},this.pid)},Z.prototype.fillBatch=function(e){var t=this.memQueue.slice(0,e);if(t.lengtho.flushAfter&&!r[o.id]&&(o.orphaned=!0,t.push(o),t.length>=e))break}}}return t};function te(e,t){var i=[];return C.each(e,function(e){e.id&&!t[e.id]&&i.push(e)}),i}Z.prototype.removeItemsByID=function(n,o){var s={};C.each(n,function(e){e&&(s[e]=!0)}),this.memQueue=te(this.memQueue,s),this.lock.withLock(C.bind(function(){var t;try{var e=this.readFromStorage();if(e=te(e,s),t=this.saveToStorage(e))for(var e=this.readFromStorage(),i=0;i=a?(ne.error("Network timeout; retrying"),this.flush()):C.isObject(e)&&e.xhr_req&&(500<=e.xhr_req.status||e.xhr_req.status<=0)?(t=2*this.flushInterval,!(i=e.xhr_req.responseHeaders)||(r=i["Retry-After"])&&(t=1e3*parseInt(r,10)||t),t=Math.min(6e5,t),ne.error("Error; retry in "+t+" ms"),this.scheduleFlush(t)):C.isObject(e)&&e.xhr_req&&413===e.xhr_req.status?1t&&delete e[i];C.isEmptyObject(e)&&delete this.props[Ue]}}),qe.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(C.info.campaignParams()),this.campaign_params_saved=!0)},qe.prototype.update_search_keyword=function(e){this.register(C.info.searchInfo(e))},qe.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:C.info.referringDomain(e)||"$direct"},"")},qe.prototype.get_referrer_info=function(){return C.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},qe.prototype.safe_merge=function(i){return C.each(this.props,function(e,t){t in i||(i[t]=e)}),i},qe.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cookie_domain(e.cookie_domain),this.set_cross_site(e.cross_site_cookie),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},qe.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},qe.prototype.set_cookie_domain=function(e){e!==this.cookie_domain&&(this.remove(),this.cookie_domain=e,this.save())},qe.prototype.set_cross_site=function(e){e!==this.cross_site&&(this.cross_site=e,this.remove(),this.save())},qe.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},qe.prototype.get_cross_subdomain=function(){return this.cross_subdomain},qe.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},qe.prototype._add_to_people_queue=function(e,t){var i=this._get_queue_key(e),r=t[e],n=this._get_or_create_queue(ye),o=this._get_or_create_queue(be),s=this._get_or_create_queue(ke),a=this._get_or_create_queue(we),c=this._get_or_create_queue(Se),e=this._get_or_create_queue(Ee,[]),u=this._get_or_create_queue(xe,[]);i===Oe?(C.extend(n,r),this._pop_from_people_queue(we,r),this._pop_from_people_queue(Se,r),this._pop_from_people_queue(ke,r)):i===Ie?(C.each(r,function(e,t){t in o||(o[t]=e)}),this._pop_from_people_queue(ke,r)):i===Te?C.each(r,function(t){C.each([n,o,a,c],function(e){t in e&&delete e[t]}),C.each(u,function(e){t in e&&delete e[t]}),s[t]=!0}):i===Ce?(C.each(r,function(e,t){t in n?n[t]+=e:(t in a||(a[t]=0),a[t]+=e)},this),this._pop_from_people_queue(ke,r)):i===Ae?(C.each(r,function(e,t){C.isArray(e)&&(t in c||(c[t]=[]),c[t]=c[t].concat(e))}),this._pop_from_people_queue(ke,r)):i===$e?(e.push(r),this._pop_from_people_queue(xe,r)):i===De&&(u.push(r),this._pop_from_people_queue(ke,r)),D.log("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),D.log(t),this.save()},qe.prototype._pop_from_people_queue=function(e,t){var r=this._get_queue(e);C.isUndefined(r)||(C.each(t,function(t,i){e===xe||e===Ee?C.each(r,function(e){e[i]===t&&delete e[i]}):delete r[i]},this),this.save())},qe.prototype._get_queue_key=function(e){return e===ye?Oe:e===be?Ie:e===ke?Te:e===we?Ce:e===xe?De:e===Ee?$e:e===Se?Ae:void D.error("Invalid queue:",e)},qe.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},qe.prototype._get_or_create_queue=function(e,t){e=this._get_queue_key(e);return t=C.isUndefined(t)?{}:t,this.props[e]||(this.props[e]=t)},qe.prototype.set_event_timer=function(e,t){var i=this.props[Be]||{};i[e]=t,this.props[Be]=i,this.save()};var We,Xe,Ve=({fn:e,wait:t,immediate:i=!0})=>Ge({fn:e,wait:t,immediate:i,executeOncePerWait:!0}),Ye={_initializedTokens:[],_validElement:["a","span","p","div","button","input"],_checkoutText:["checkout","buynow","buyitnow","check-out","結帳","结账","ご購入手続きへ","결제","atsiskaityti","thanhtoán","ödeme","ชำระเงิน","gåtillkassan","zaključinakup","platba","оформитьзаказ","преминаванекъмплащане","pokladna","gåtilbetaling","auschecken","auschecken","pagarpedido"],_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;for(;(e=e.previousSibling)&&!Le(e););return e},_loadScript:function(e,t){var i=document.createElement("script");i.type="text/javascript",i.src=e,i.onload=t;t=document.getElementsByTagName("script");0{if("button"===e.tag_name&&"add"===e.attr__name)t++;else if("form"===e.tag_name&&"/cart/add"===e.attr__action&&1===t)return!0})},_isCheckout(t,i){var e=Object.keys(t).find(e=>{if(e.includes("attr__")){e=t[e].toLowerCase();if(e.includes("checkout")||e.includes("check out")||e.includes("check-out"))return!0}});return e||(i=i.toLowerCase().replace(/\s+/g,""),this._checkoutText.find(e=>i.includes(e)))},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(r){var e=C.bind(function(e){"shopify"===r.config.platform&&"click"===e.type?this._trackEvent(e,r):"woocommerce"===r.config.platform&&"click"===e.type&&this._WCtrackEvent(e,r),C.info.getSessionId()},this),t=C.bind(function(e){var t=document.documentElement.scrollTop,i=document.documentElement.scrollHeight-window.innerHeight,i=parseInt(t/i*100);this._trackScroll(e,r,i)},this);this._xhrIntercept(r),this.heartBeat.track(r),C.register_event(document,"submit",Ve({fn:e,wait:100}),!1,!0),C.register_event(document,"change",Ve({fn:e,wait:100}),!1,!0),C.register_event(document,"click",Ve({fn:e,wait:100}),!1,!0),"limit"!==window.sessionStorage.getItem("_licenceLimit")?C.register_event(document,"scroll",t,!1,!1):C.remove_event(document,"scroll",t,!1)},_xhrIntercept:function(n){var o=this,s={shopify:{isAddCar:function(e){return e&&e.includes&&e.includes("/cart/add")},isCheckout:function(e){return!1}},shoplazza:{isAddCar:function(e){return e&&e.endsWith&&e.endsWith("/api/cart")},isCheckout:function(){return!1}},shopline:{isAddCar:function(t="",e){return 0<["/api/carts/cart","/cart/add"].filter(e=>new RegExp(e).test(t)).length&&"POST"===e},isCheckout:function(){return!1}},shopyy:{isAddCar:function(e,t){return e&&e.includes("/h-cart-add.html")&&"POST"===t},isCheckout:function(){return!1}}}[n.config.platform];"XMLHttpRequest"in window&&Qe(XMLHttpRequest.prototype,"open",r=>function(...e){var t=e[1],i=e[0];return s&&s.isAddCar(t,i)?(i=C.cookie.get("cart")||"",n.track("$web_event",C.extend(o._getDefaultProperties("click"),{$event_name:"SHOP_CART_ADD_SKU",$cart_token:i}))):s&&s.isCheckout(t)&&n.track("$web_event",C.extend(o._getDefaultProperties("click"),{$event_name:"SHOP_CHECKOUT_CREATE",$event_type:"click"})),r.apply(this,e)}),"fetch"in window&&Qe(window,"fetch",r=>function(e,t){var i=t&&t.method;return s&&s.isAddCar(e,i)?(i=C.cookie.get("cart")||"",n.track("$web_event",C.extend(o._getDefaultProperties("click"),{$event_name:"SHOP_CART_ADD_SKU",$cart_token:i}))):s&&s.isCheckout(e)&&n.track("$web_event",C.extend(o._getDefaultProperties("click"),{$event_name:"SHOP_CHECKOUT_CREATE",$event_type:"click"})),r.apply(window,[e,t])})},_customProperties:{},init:function(e){var t,i;document&&document.body?(t=e.get_config("token"),-1=u.timeout?"timeout":"Bad HTTP status: "+u.status+" "+u.statusText;D.error(t),r&&r(c?{status:0,error:t,xhr_req:u}:0)}},u.send(s)}catch(e){D.error(e),n=!1}else{s=k.createElement("script");s.type="text/javascript",s.async=!0,s.defer=!0,s.src=e;e=k.getElementsByTagName("script")[0];e.parentNode.insertBefore(s,e)}return n},ot.prototype._execute_array=function(e){var t,i=[],r=[],n=[];C.each(e,function(e){e&&(t=e[0],C.isArray(t)?n.push(e):"function"==typeof e?e.call(this):(C.isArray(e)&&"alias"===t?i:C.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?n:r).push(e))},this);function o(e,i){C.each(e,function(e){var t;C.isArray(e[0])?(t=i,C.each(e,function(e){t=t[e[0]].apply(t,e.slice(1))})):this[e[0]].apply(this,e.slice(1))},i)}o(i,this),o(r,this),o(n,this)},ot.prototype.are_batchers_initialized=function(){return!!this.request_batchers.events},ot.prototype.init_batchers=function(){var e,t=this.get_config("token");this.are_batchers_initialized()||(e=C.bind(function(r){return new re("__mpq_"+t+r.queue_suffix,{libConfig:this.config,sendRequestFunc:C.bind(function(e,t,i){this._send_request(r.endpoint,st(e),t,this._prepare_callback(i,e))},this),beforeSendHook:C.bind(function(e){return this._run_hook("before_send_"+r.type,e)},this)})},this),this.request_batchers={events:e({type:"events",endpoint:this.get_config("api_host")+(this.get_config("reportEventPath")||"/cdp-collect/cdp/collect/event/"),queue_suffix:"_ev"}),people:e({type:"people",endpoint:this.get_config("reportUserHost")+(this.get_config("reportUserPath")||"/cdp-collect/cdp/collect/user/"),queue_suffix:"_pp"}),groups:e({type:"groups",endpoint:this.get_config("api_host")+"/groups/",queue_suffix:"_gr"})}),this.get_config("batch_autostart")&&this.start_batch_senders()},ot.prototype.start_batch_senders=function(){this.are_batchers_initialized()&&(this._batch_requests=!0,C.each(this.request_batchers,function(e){e.start()}))},ot.prototype.stop_batch_senders=function(){this._batch_requests=!1,C.each(this.request_batchers,function(e){e.stop(),e.clear()})},ot.prototype.push=function(e){this._execute_array([e])},ot.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},ot.prototype._track_or_batch=function(e,t){var i=C.truncate(e.data,512),r=e.endpoint,n=e.batcher,o=e.should_send_immediately,s=e.send_request_options||{};t=t||Ze;var a=!0,c=C.bind(function(){return(i=!s.skip_hooks?this._run_hook("before_send_"+e.type,i):i)?(D.log("MIXPANEL REQUEST:"),D.log(i),this._send_request(r,st(i),s,this._prepare_callback(t,i))):null},this);return this._batch_requests&&!o?n.enqueue(i,function(e){e?t(1,i):c()}):a=c(),a&&i},ot.prototype.track=pe(function(e,t,i,r){r||"function"!=typeof i||(r=i,i=null);var n=(i=i||{}).transport;n&&(i.transport=n);var o=i.send_immediately;if("function"!=typeof r&&(r=Ze),C.isUndefined(e))D.error("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=t||{}).$ak=this.get_config("token");n=this.persistence.remove_event_timer(e);C.isUndefined(n)||(s=(new Date).getTime()-n,t.$duration=parseFloat((s/1e3).toFixed(3))),this._set_default_superprops(),t=C.extend({},C.info.properties(),this.persistence.properties(),this.unpersisted_superprops,t);var s=this.get_config("property_blacklist");C.isArray(s)?C.each(s,function(e){delete t[e]}):D.error("Invalid value for property_blacklist config: "+s);e={event:e,properties:Object.assign({},t,{$contact_id:C.cookie.get("omnisendContactID"),$domain:a.location.hostname})},i=this._track_or_batch({type:"events",data:e,endpoint:this.get_config("api_host")+(this.get_config("reportEventPath")||"/cdp-collect/cdp/collect/event/"),batcher:this.request_batchers.events,should_send_immediately:o,send_request_options:i},r);return this._check_and_handle_triggered_notifications(e),i}r(0)}}),ot.prototype.set_group=pe(function(e,t,i){C.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,i)}),ot.prototype.add_group=pe(function(e,t,i){var r,n=this.get_property(e);return void 0===n?((r={})[e]=[t],this.register(r)):-1===n.indexOf(t)&&(n.push(t),this.register(r)),this.people.union(e,t,i)}),ot.prototype.remove_group=pe(function(e,t,i){var r,n=this.get_property(e);return void 0!==n&&(-1<(r=n.indexOf(t))&&(n.splice(r,1),this.register({group_key:n})),0===n.length&&this.unregister(e)),this.people.remove(e,t,i)}),ot.prototype.track_with_groups=pe(function(e,t,i,r){var n=C.extend({},t||{});return C.each(i,function(e,t){null!=e&&(n[t]=e)}),this.track(e,n,r)}),ot.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},ot.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},ot.prototype.get_group=function(e,t){t=this._create_map_key(e,t);return this._cached_groups[t]||{}},ot.prototype.track_pageview=function(e){C.isUndefined(e)&&(e=k.location.href),this.track("mp_page_view",C.info.pageviewInfo(e))},ot.prototype.track_links=function(){return this._track_dom.call(this,W,arguments)},ot.prototype.track_forms=function(){return this._track_dom.call(this,X,arguments)},ot.prototype.time_event=function(e){C.isUndefined(e)?D.error("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())};function pt(e){return e=C.isObject(e)?e:C.isUndefined(e)?{}:{days:e},C.extend({},_t,e)}var _t={persistent:!0};ot.prototype.register=function(e,t){t=pt(t);t.persistent?this.persistence.register(e,t.days):C.extend(this.unpersisted_superprops,e)},ot.prototype.register_once=function(e,i,t){t=pt(t);t.persistent?this.persistence.register_once(e,i,t.days):(void 0===i&&(i="None"),C.each(e,function(e,t){this.unpersisted_superprops.hasOwnProperty(t)&&this.unpersisted_superprops[t]!==i||(this.unpersisted_superprops[t]=e)},this))},ot.prototype.unregister=function(e,t){(t=pt(t)).persistent?this.persistence.unregister(e):delete this.unpersisted_superprops[e]},ot.prototype._register_single=function(e,t){var i={};i[e]=t,this.register(i)},ot.prototype.identify=function(e,t,i,r,n,o,s,a){var c=this.get_distinct_id();this.register({$user_id:e}),this.get_property("$device_id")||this.register_once({$had_persisted_distinct_id:!0,$device_id:c},""),e!==c&&e!==this.get_property(Ne)&&(this.unregister(Ne),this.register({$distinct_id:e})),this._check_and_handle_notifications(this.get_distinct_id()),this._flags.identify_called=!0,this.people._flush(t,i,r,n,o,s,a),e!==c&&this.track("$identify",{$distinct_id:e,$anon_distinct_id:c},{skip_hooks:!0})},ot.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=C.UUID();this.register_once({$distinct_id:e,$device_id:e},"")},ot.prototype.get_distinct_id=function(){return this.get_property("$distinct_id")},ot.prototype.alias=function(e,t){if(e===this.get_property(Pe))return D.critical("Attempting to create alias for existing People user - aborting."),-2;var i=this;return C.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single(Ne,e),this.track("$create_alias",{alias:e,$distinct_id:t},{skip_hooks:!0},function(){i.identify(e)})):(D.error("alias matches current $distinct_id - skipping api call."),this.identify(e),-1)},ot.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},ot.prototype.set_config=function(e){C.isObject(e)&&(C.extend(this.config,e),e.batch_size&&C.each(this.request_batchers,function(e){e.resetBatchSize()}),this.get_config("persistence_name")||(this.config.persistence_name=this.config.cookie_name),this.get_config("disable_persistence")||(this.config.disable_persistence=this.config.disable_cookie),this.persistence&&this.persistence.update_config(this.config),o.DEBUG=o.DEBUG||this.get_config("debug"))},ot.prototype.get_config=function(e){return this.config[e]},ot.prototype._run_hook=function(e){var t=(this.config.hooks[e]||function(e){return e}).apply(this,g.call(arguments,1));return void 0===t&&(D.error(e+" hook did not return a value"),t=null),t},ot.prototype.get_property=function(e){return this.persistence.props[e]},ot.prototype.toString=function(){var e=this.get_config("name");return e=e!==tt?tt+"."+e:e},ot.prototype._event_is_disabled=function(e){return C.isBlockedUA(S)||this._flags.disable_all_events||C.include(this.__disabled_events,e)},ot.prototype._check_and_handle_triggered_notifications=pe(function(e){this._user_decide_check_complete||this._events_tracked_before_user_decide_check_complete.push(e)}),ot.prototype._check_and_handle_notifications=pe(function(e){!e||this._flags.identify_called||this.get_config("disable_notifications")||(D.log("MIXPANEL NOTIFICATION CHECK"),e={verbose:!0,version:"3",lib:"web",$token:this.get_config("token"),$distinct_id:e},this._send_request(this.get_config("api_host")+"/decide/",e,{method:"GET",transport:"XHR"},this._prepare_callback(C.bind(function(e){var t;e.notifications&&0