diff --git a/Stark.sketchplugin/Contents/Resources/_webpack_resources/2bdf22c6125f295782fcdb92443484db.html b/Stark.sketchplugin/Contents/Resources/_webpack_resources/2bdf22c6125f295782fcdb92443484db.html deleted file mode 100644 index 7f73e0f..0000000 --- a/Stark.sketchplugin/Contents/Resources/_webpack_resources/2bdf22c6125f295782fcdb92443484db.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Stark - - - -
- - - diff --git a/Stark.sketchplugin/Contents/Resources/_webpack_resources/1e8704814cd42f6ee49c9991d0aabd46.html b/Stark.sketchplugin/Contents/Resources/_webpack_resources/382e82375e9410380a7dc4f1a8818864.html similarity index 64% rename from Stark.sketchplugin/Contents/Resources/_webpack_resources/1e8704814cd42f6ee49c9991d0aabd46.html rename to Stark.sketchplugin/Contents/Resources/_webpack_resources/382e82375e9410380a7dc4f1a8818864.html index 36b0723..05aabee 100644 --- a/Stark.sketchplugin/Contents/Resources/_webpack_resources/1e8704814cd42f6ee49c9991d0aabd46.html +++ b/Stark.sketchplugin/Contents/Resources/_webpack_resources/382e82375e9410380a7dc4f1a8818864.html @@ -6,7 +6,7 @@ -
- +
+ diff --git a/Stark.sketchplugin/Contents/Resources/_webpack_resources/59c440e82d643e6b90a9f07df2a4a1bf.html b/Stark.sketchplugin/Contents/Resources/_webpack_resources/59c440e82d643e6b90a9f07df2a4a1bf.html deleted file mode 100644 index e940f56..0000000 --- a/Stark.sketchplugin/Contents/Resources/_webpack_resources/59c440e82d643e6b90a9f07df2a4a1bf.html +++ /dev/null @@ -1,12 +0,0 @@ - - - - - Stark - - - -
- - - diff --git a/Stark.sketchplugin/Contents/Resources/_webpack_resources/c631e77d5d82ee287dada6a10f9f0494.html b/Stark.sketchplugin/Contents/Resources/_webpack_resources/c631e77d5d82ee287dada6a10f9f0494.html deleted file mode 100644 index ad5f63f..0000000 --- a/Stark.sketchplugin/Contents/Resources/_webpack_resources/c631e77d5d82ee287dada6a10f9f0494.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Stark - - - -
- - - - diff --git a/Stark.sketchplugin/Contents/Resources/_webpack_resources/f0aa6dea10666f330e656f4e45acae29.html b/Stark.sketchplugin/Contents/Resources/_webpack_resources/f0aa6dea10666f330e656f4e45acae29.html deleted file mode 100644 index fbd5df2..0000000 --- a/Stark.sketchplugin/Contents/Resources/_webpack_resources/f0aa6dea10666f330e656f4e45acae29.html +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - Stark - - - -
- - - - diff --git a/Stark.sketchplugin/Contents/Resources/colorblind.js b/Stark.sketchplugin/Contents/Resources/colorblind.js deleted file mode 100644 index 8222b89..0000000 --- a/Stark.sketchplugin/Contents/Resources/colorblind.js +++ /dev/null @@ -1,195 +0,0 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="./resources/colorblind.js")}({"./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Button/style.css": -/*!***************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Button/style.css ***! - \***************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".Button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n margin: 0;\n overflow: visible;\n border: 0;\n vertical-align: middle;\n font-family: inherit;\n text-align: center;\n cursor: pointer;\n text-decoration: none;\n -webkit-appearance: none;\n min-height: 32px;\n line-height: 1;\n padding: 0 1.2rem;\n font-size: 0.9rem;\n font-weight: 700;\n background-color: #000;\n color: #fff;\n border-radius: 24px;\n transition: opacity 0.3s ease-in;\n}\n\n.Button + .Button {\n margin-left: 1rem;\n}\n\n.Button-Upgrade {\n background-color: #27740a;\n opacity: 0;\n transition: opacity 0s;\n}\n\n.button--hide {\n opacity: 0;\n}\n\n.button--show {\n opacity: 1;\n visibility: visible !important;\n}\n\n.ghost {\n background-color: transparent;\n color: #000;\n border: 2px solid #000;\n}\n\n.minimal {\n background-color: transparent;\n color: #4b4b4b;\n padding: 0;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Footer/style.css": -/*!***************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Footer/style.css ***! - \***************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".Footer {\n display: flex;\n justify-content: space-between;\n padding: 32px 0 8px 0;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Header/style.css": -/*!***************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/Header/style.css ***! - \***************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".Header {\n}\n\n.HeaderImageContainer {\n display: flex;\n justify-content: center;\n}\n\n.HeaderImage {\n width: 40px;\n height: 40px;\n}\n\n.HeaderText {\n margin-top: 8px;\n font-size: 18px;\n font-weight: bold;\n text-align: center;\n letter-spacing: 0.5px;\n padding-bottom: 16px;\n border-bottom: 1px solid #dddddd;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/style.css": -/*!********************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/__shared/style.css ***! - \********************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,'body {\n margin: 0;\n padding: 0;\n}\n\n.dialog {\n font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";\n background-color: #F7F7F7;\n padding: 20px 40px;\n}\n',""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Loader/style.css": -/*!*****************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Loader/style.css ***! - \*****************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".LoaderWrapper {\n position: relative;\n overflow: hidden;\n height: 2px;\n transform: translate3d(12px, -12px, 0);\n}\n\n.Loader {\n width: 508px;\n position: absolute;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/PreviewImage/style.css": -/*!***********************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/PreviewImage/style.css ***! - \***********************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".PreviewImageWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n position: relative;\n border: 1px solid #dddddd;\n background-color: #f7f7f7;\n border-radius: 4px;\n padding: 10px;\n margin-top: 16px;\n overflow: auto;\n}\n\n.PreviewImageFrame {\n display: flex;\n margin: auto;\n background-color: #eaeaea;\n width: 590px;\n height: 300px;\n overflow: auto;\n}\n\n.PreviewImageFrame > img {\n margin: auto;\n background-color: #ffffff;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Select/style.css": -/*!*****************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Select/style.css ***! - \*****************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".Select {\n width: 176px;\n font-size: 14px;\n min-height: 32px;\n height: 32px;\n border: 1px solid #E1E1E1;\n padding: 0 0.5rem;\n color: #4B4B4B;\n -webkit-appearance: none;\n background: url(\"data:image/svg+xml;utf8,\") no-repeat;\n background-size: 12px;\n background-position: calc(100% - 10px) 11px;\n background-repeat: no-repeat;\n background-color: white;\n}\n\n.labelWrapper {\n display: flex;\n flex-direction: column;\n}\n\n.Label {\n padding-bottom: 0.25rem;\n font-size: 12px;\n color: #797979;\n font-weight: 700;\n letter-spacing: 0.5px;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/SelectRow/style.css": -/*!********************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/SelectRow/style.css ***! - \********************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".SelectRow {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n padding-top: 24px;\n padding-bottom: 16px;\n}\n",""])},"./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Zoom/style.css": -/*!***************************************************************************************!*\ - !*** ./node_modules/css-loader/dist/cjs.js!./resources/app/colorblind/Zoom/style.css ***! - \***************************************************************************************/ -/*! no static exports found */function(e,t,n){(e.exports=n(/*! ../../../../node_modules/css-loader/dist/runtime/api.js */"./node_modules/css-loader/dist/runtime/api.js")(!1)).push([e.i,".ZoomWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.Zoom {\n width: 75px;\n font-size: 14px;\n min-height: 32px;\n height: 32px;\n border: 1px solid #E1E1E1;\n padding: 0 0.5rem;\n color: #4B4B4B;\n -webkit-appearance: none;\n background: url(\"data:image/svg+xml;utf8,\") no-repeat;\n background-size: 12px;\n background-position: calc(100% - 10px) 11px;\n background-repeat: no-repeat;\n background-color: white;\n}\n\n.labelWrapper {\n display: flex;\n flex-direction: column;\n}\n\n.Label {\n padding-bottom: 0.25rem;\n font-size: 12px;\n color: #797979;\n font-weight: 700;\n letter-spacing: 0.5px;\n}\n",""])},"./node_modules/css-loader/dist/runtime/api.js": -/*!*****************************************************!*\ - !*** ./node_modules/css-loader/dist/runtime/api.js ***! - \*****************************************************/ -/*! no static exports found */function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o/g,">").replace(/"/g,""").replace(/'/g,"'")),t},T.extend=function(e){return T.each(u.call(arguments,1),function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},T.isArray=x||function(e){return"[object Array]"===c.call(e)},T.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},T.isArguments=function(e){return!(!e||!p.call(e,"callee"))},T.toArray=function(e){return e?e.toArray?e.toArray():T.isArray(e)?u.call(e):T.isArguments(e)?u.call(e):T.values(e):[]},T.keys=function(e){var t=[];return null===e?t:(T.each(e,function(e,n){t[t.length]=n}),t)},T.values=function(e){var t=[];return null===e?t:(T.each(e,function(e){t[t.length]=e}),t)},T.identity=function(e){return e},T.include=function(e,t){var n=!1;return null===e?n:b&&e.indexOf===b?-1!=e.indexOf(t):(T.each(e,function(e){if(n||(n=e===t))return w}),n)},T.includes=function(e,t){return-1!==e.indexOf(t)},T.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},T.isObject=function(e){return e===Object(e)&&!T.isArray(e)},T.isEmptyObject=function(e){if(T.isObject(e)){for(var t in e)if(p.call(e,t))return!1;return!0}return!1},T.isUndefined=function(e){return void 0===e},T.isString=function(e){return"[object String]"==c.call(e)},T.isDate=function(e){return"[object Date]"==c.call(e)},T.isNumber=function(e){return"[object Number]"==c.call(e)},T.isElement=function(e){return!(!e||1!==e.nodeType)},T.encodeDates=function(e){return T.each(e,function(t,n){T.isDate(t)?e[n]=T.formatDate(t):T.isObject(t)&&(e[n]=T.encodeDates(t))}),e},T.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},T.formatDate=function(e){function t(e){return e<10?"0"+e:e}return e.getUTCFullYear()+"-"+t(e.getUTCMonth()+1)+"-"+t(e.getUTCDate())+"T"+t(e.getUTCHours())+":"+t(e.getUTCMinutes())+":"+t(e.getUTCSeconds())},T.safewrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){C("Implementation error. Please turn on debug and contact support@mixpanel.com."),o.DEBUG&&C(e)}}},T.safewrap_class=function(e,t){for(var n=0;n0&&(t[n]=e)}),t},T.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):T.isArray(e)?(n=[],T.each(e,function(e){n.push(T.truncate(e,t))})):T.isObject(e)?(n={},T.each(e,function(e,r){n[r]=T.truncate(e,t)})):n=e,n},T.JSONEncode=function(e){var t=function(e){var t=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,n={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};return t.lastIndex=0,t.test(e)?'"'+e.replace(t,function(e){var t=n[e];return"string"==typeof t?t:"\\u"+("0000"+e.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'},n=function(e,r){var o="",i=0,a="",l="",s=0,u=o,d=[],f=r[e];switch(f&&"object"==typeof f&&"function"==typeof f.toJSON&&(f=f.toJSON(e)),typeof f){case"string":return t(f);case"number":return isFinite(f)?String(f):"null";case"boolean":case"null":return String(f);case"object":if(!f)return"null";if(o+=" ",d=[],"[object Array]"===c.apply(f)){for(s=f.length,i=0;i="0"&&t<="9";)n+=t,a();if("."===t)for(n+=".";a()&&t>="0"&&t<="9";)n+=t;if("e"===t||"E"===t)for(n+=t,a(),"-"!==t&&"+"!==t||(n+=t,a());t>="0"&&t<="9";)n+=t,a();if(e=+n,isFinite(e))return e;i("Bad number")},s=function(){var e,n,r,l="";if('"'===t)for(;a();){if('"'===t)return a(),l;if("\\"===t)if(a(),"u"===t){for(r=0,n=0;n<4&&(e=parseInt(a(),16),isFinite(e));n+=1)r=16*r+e;l+=String.fromCharCode(r)}else{if("string"!=typeof o[t])break;l+=o[t]}else l+=t}i("Bad string")},u=function(){for(;t&&t<=" ";)a()};return r=function(){switch(u(),t){case"{":return function(){var e,n={};if("{"===t){if(a("{"),u(),"}"===t)return a("}"),n;for(;t;){if(e=s(),u(),a(":"),Object.hasOwnProperty.call(n,e)&&i('Duplicate key "'+e+'"'),n[e]=r(),u(),"}"===t)return a("}"),n;a(","),u()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),u(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),u(),"]"===t)return a("]"),e;a(","),u()}}i("Bad array")}();case'"':return s();case"-":return l();default:return t>="0"&&t<="9"?l():function(){switch(t){case"t":return a("t"),a("r"),a("u"),a("e"),!0;case"f":return a("f"),a("a"),a("l"),a("s"),a("e"),!1;case"n":return a("n"),a("u"),a("l"),a("l"),null}i('Unexpected "'+t+'"')}()}},function(o){var a;return n=o,e=0,t=" ",a=r(),u(),t&&i("Syntax error"),a}}(),T.base64Encode=function(e){var t,n,r,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",l=0,s=0,u="",c=[];if(!e)return e;e=T.utf8Encode(e);do{t=(i=e.charCodeAt(l++)<<16|e.charCodeAt(l++)<<8|e.charCodeAt(l++))>>18&63,n=i>>12&63,r=i>>6&63,o=63&i,c[s++]=a.charAt(t)+a.charAt(n)+a.charAt(r)+a.charAt(o)}while(l127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==l&&(n>t&&(i+=e.substring(t,n)),i+=l,t=n=o+1)}return n>t&&(i+=e.substring(t,e.length)),i},T.UUID=function(){var e=function(){for(var e=1*new Date,t=0;e==1*new Date;)t++;return e.toString(16)+t.toString(16)};return function(){var t=(_.height*_.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){var e,t,n=g,r=[],o=0;function i(e,t){var n,o=0;for(n=0;n=4&&(o=i(o,r),r=[]);return r.length>0&&(o=i(o,r)),o.toString(16)}()+"-"+t+"-"+e()}}(),T.isBlockedUA=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(e)},T.HTTPBuildQuery=function(e,t){var n,r,o=[];return T.isUndefined(t)&&(t="&"),T.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),o[o.length]=r+"="+n}),o.join(t)},T.getQueryParam=function(e,t){t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)").exec(e);return null===n||n&&"string"!=typeof n[1]&&n[1].length?"":decodeURIComponent(n[1]).replace(/\+/g," ")},T.getHashParam=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},T.cookie={get:function(e){for(var t=e+"=",n=h.cookie.split(";"),r=0;r=0}return function(t){return T.isElement(t)?[t]:T.isObject(t)&&!T.isUndefined(t.length)?t:function(t){if(!h.getElementsByTagName)return[];var r,o,i,a,l,s,u,c,p,d,f=t.split(" "),m=[h];for(s=0;s-1){i=(o=r.split("#"))[0];var _=o[1],g=h.getElementById(_);if(!g||i&&g.nodeName.toLowerCase()!=i)return[];m=[g]}else if(r.indexOf(".")>-1){i=(o=r.split("."))[0];var y=o[1];for(i||(i="*"),a=[],l=0,u=0;u-1};break;default:b=function(e){return e.getAttribute(x)}}for(m=[],d=0,u=0;u=3?t[2]:""},properties:function(){return T.extend(T.strip_empty_properties({$os:T.info.os(),$browser:T.info.browser(g,f.vendor,m),$referrer:h.referrer,$referring_domain:T.info.referringDomain(h.referrer),$device:T.info.device(g)}),{$current_url:r.location.href,$browser_version:T.info.browserVersion(g,f.vendor,m),$screen_height:_.height,$screen_width:_.width,mp_lib:"web",$lib_version:o.LIB_VERSION,time:T.timestamp()/1e3})},people_properties:function(){return T.extend(T.strip_empty_properties({$os:T.info.os(),$browser:T.info.browser(g,f.vendor,m)}),{$browser_version:T.info.browserVersion(g,f.vendor,m)})},pageviewInfo:function(e){return T.strip_empty_properties({mp_page:e,mp_referrer:h.referrer,mp_browser:T.info.browser(g,f.vendor,m),mp_platform:T.info.os()})}},T.toArray=T.toArray,T.isObject=T.isObject,T.JSONEncode=T.JSONEncode,T.JSONDecode=T.JSONDecode,T.isBlockedUA=T.isBlockedUA,T.isEmptyObject=T.isEmptyObject,T.info=T.info,T.info.device=T.info.device,T.info.browser=T.info.browser,T.info.properties=T.info.properties;var R={_initializedTokens:[],_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&!I(e));return e},_loadScript:function(e,t){var n=document.createElement("script");n.type="text/javascript",n.src=e,n.onload=t;var r=document.getElementsByTagName("script");r.length>0?r[0].parentNode.insertBefore(n,r[0]):document.body.appendChild(n)},_getPropertiesFromElement:function(e){var t={classes:O(e).split(" "),tag_name:e.tagName.toLowerCase()};M(e)&&T.each(e.attributes,function(e){U(e.value)&&(t["attr__"+e.name]=e.value)});for(var n=1,r=1,o=e;o=this._previousElementSibling(o);)n++,o.tagName===e.tagName&&r++;return t.nth_child=n,t.nth_of_type=r,t},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},_extractCustomPropertyValue:function(e){var t=[];return T.each(document.querySelectorAll(e.css_selector),function(e){var n;["input","select"].indexOf(e.tagName.toLowerCase())>-1?n=e.value:e.textContent&&(n=e.textContent),U(n)&&t.push(n)}),t.join(", ")},_getCustomProperties:function(e){var t={};return T.each(this._customProperties,function(n){T.each(n.event_selectors,function(r){var o=document.querySelectorAll(r);T.each(o,function(r){T.includes(e,r)&&M(r)&&(t[n.name]=this._extractCustomPropertyValue(n))},this)},this)},this),t},_getEventTarget:function(e){return void 0===e.target?e.srcElement:e.target},_trackEvent:function(e,t){var n=this._getEventTarget(e);if(j(n)&&(n=n.parentNode),function(e,t){if(!e||N(e,"html")||!I(e))return!1;switch(e.tagName.toLowerCase()){case"html":return!1;case"form":return"submit"===t.type;case"input":return-1===["button","submit"].indexOf(e.getAttribute("type"))?"change"===t.type:"click"===t.type;case"select":case"textarea":return"change"===t.type;default:return"click"===t.type}}(n,e)){for(var r=[n],o=n;o.parentNode&&!N(o,"body");)r.push(o.parentNode),o=o.parentNode;var i,a,l=[],s=!1;if(T.each(r,function(e){var t=M(e);"a"===e.tagName.toLowerCase()&&(i=e.getAttribute("href"),i=t&&U(i)&&i);var n=O(e).split(" ");T.includes(n,"mp-no-track")&&(s=!0),l.push(this._getPropertiesFromElement(e))},this),s)return!1;var u=function(e){var t="";return M(e)&&e.childNodes&&e.childNodes.length&&T.each(e.childNodes,function(e){j(e)&&e.textContent&&(t+=T.trim(e.textContent).split(/(\s+)/).filter(U).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}),T.trim(t)}(n);u&&u.length&&(a=u);var c=T.extend(this._getDefaultProperties(e.type),{$elements:l,$el_attr__href:i,$el_text:a},this._getCustomProperties(r));return t.track("$web_event",c),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=T.bind(function(t){t=t||window.event,this._trackEvent(t,e)},this);T.register_event(document,"submit",t,!1,!0),T.register_event(document,"change",t,!1,!0),T.register_event(document,"click",t,!1,!0)},_customProperties:{},init:function(e){if(document&&document.body){var t=e.get_config("token");if(this._initializedTokens.indexOf(t)>-1)console.log('autotrack already initialized for token "'+t+'"');else if(this._initializedTokens.push(t),!this._maybeLoadEditor(e)){var n=T.bind(function(t){t&&t.config&&!0===t.config.enable_collect_everything?(t.custom_properties&&(this._customProperties=t.custom_properties),e.track("$web_event",T.extend({$title:document.title},this._getDefaultProperties("pageview"))),this._addDomEventHandlers(e)):e.__autotrack_enabled=!1},this);e._send_request(e.get_config("api_host")+"/decide/",{verbose:!0,version:"1",lib:"web",token:t},e._prepare_callback(n))}}else{console.log("document not ready yet, trying again in 500 milliseconds...");var r=this;setTimeout(function(){r.init(e)},500)}},_editorParamsFromHash:function(e,t){var n;try{var r=T.getHashParam(t,"state");r=JSON.parse(decodeURIComponent(r));var o=T.getHashParam(t,"expires_in");n={accessToken:T.getHashParam(t,"access_token"),accessTokenExpiresAt:(new Date).getTime()+1e3*Number(o),bookmarkletMode:!!r.bookmarkletMode,projectId:r.projectId,projectOwnerId:r.projectOwnerId,projectToken:r.token,readOnly:r.readOnly,userFlags:r.userFlags,userId:r.userId},window.sessionStorage.setItem("editorParams",JSON.stringify(n)),r.desiredHash?window.location.hash=r.desiredHash:window.history?history.replaceState("",document.title,window.location.pathname+window.location.search):window.location.hash=""}catch(e){console.error("Unable to parse data from hash",e)}return n},_maybeLoadEditor:function(e){try{var t=!1;if(T.getHashParam(window.location.hash,"state")){var n=T.getHashParam(window.location.hash,"state");t="mpeditor"===(n=JSON.parse(decodeURIComponent(n))).action}var r,o=!!window.sessionStorage.getItem("_mpcehash");return t?r=this._editorParamsFromHash(e,window.location.hash):o?(r=this._editorParamsFromHash(e,window.sessionStorage.getItem("_mpcehash")),window.sessionStorage.removeItem("_mpcehash")):r=JSON.parse(window.sessionStorage.getItem("editorParams")||"{}"),!(!r.projectToken||e.get_config("token")!==r.projectToken)&&(this._loadEditor(e,r),!0)}catch(e){return!1}},_loadEditor:function(e,t){if(!window._mpEditorLoaded){window._mpEditorLoaded=!0;var n=e.get_config("app_host")+"/js-bundle/reports/collect-everything/editor.js?_ts="+(new Date).getTime();return this._loadScript(n,function(){window.mp_load_editor(t)}),!0}return!1},enabledForProject:function(e,t,n){t=T.isUndefined(t)?10:t,n=T.isUndefined(n)?10:n;for(var r=0,o=0;ot&&delete e[n];T.isEmptyObject(e)&&delete this.props.__cmpns}}),ue.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(T.info.campaignParams()),this.campaign_params_saved=!0)},ue.prototype.update_search_keyword=function(e){this.register(T.info.searchInfo(e))},ue.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:T.info.referringDomain(e)||"$direct"},"")},ue.prototype.get_referrer_info=function(){return T.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},ue.prototype.safe_merge=function(e){return T.each(this.props,function(t,n){n in e||(e[n]=t)}),e},ue.prototype.update_config=function(e){this.default_expiry=this.expire_days=e.cookie_expiration,this.set_disabled(e.disable_persistence),this.set_cross_subdomain(e.cross_subdomain_cookie),this.set_secure(e.secure_cookie)},ue.prototype.set_disabled=function(e){this.disabled=e,this.disabled?this.remove():this.save()},ue.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},ue.prototype.get_cross_subdomain=function(){return this.cross_subdomain},ue.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},ue.prototype._add_to_people_queue=function(e,t){var n=this._get_queue_key(e),r=t[e],o=this._get_or_create_queue("$set"),i=this._get_or_create_queue("$set_once"),a=this._get_or_create_queue("$unset"),l=this._get_or_create_queue("$add"),s=this._get_or_create_queue("$union"),u=this._get_or_create_queue("$remove",[]),c=this._get_or_create_queue("$append",[]);"__mps"===n?(T.extend(o,r),this._pop_from_people_queue("$add",r),this._pop_from_people_queue("$union",r),this._pop_from_people_queue("$unset",r)):"__mpso"===n?(T.each(r,function(e,t){t in i||(i[t]=e)}),this._pop_from_people_queue("$unset",r)):"__mpus"===n?T.each(r,function(e){T.each([o,i,l,s],function(t){e in t&&delete t[e]}),T.each(c,function(t){e in t&&delete t[e]}),a[e]=!0}):"__mpa"===n?(T.each(r,function(e,t){t in o?o[t]+=e:(t in l||(l[t]=0),l[t]+=e)},this),this._pop_from_people_queue("$unset",r)):"__mpu"===n?(T.each(r,function(e,t){T.isArray(e)&&(t in s||(s[t]=[]),s[t]=s[t].concat(e))}),this._pop_from_people_queue("$unset",r)):"__mpr"===n?(u.push(r),this._pop_from_people_queue("$append",r)):"__mpap"===n&&(c.push(r),this._pop_from_people_queue("$unset",r)),E("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),E(t),this.save()},ue.prototype._pop_from_people_queue=function(e,t){var n=this._get_queue(e);T.isUndefined(n)||(T.each(t,function(t,r){"$append"===e||"$remove"===e?T.each(n,function(e){e[r]===t&&delete e[r]}):delete n[r]},this),this.save())},ue.prototype._get_queue_key=function(e){return"$set"===e?"__mps":"$set_once"===e?"__mpso":"$unset"===e?"__mpus":"$add"===e?"__mpa":"$append"===e?"__mpap":"$remove"===e?"__mpr":"$union"===e?"__mpu":void S("Invalid queue:",e)},ue.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},ue.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=T.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},ue.prototype.set_event_timer=function(e,t){var n=this.props.__timers||{};n[e]=t,this.props.__timers=n,this.save()},ue.prototype.remove_event_timer=function(e){var t=(this.props.__timers||{})[e];return T.isUndefined(t)||(delete this.props.__timers[e],this.save()),t};var ce,pe=function(){},de=function(){};T.extend(de.prototype,Z);var fe=function(e,t,n){var r,i="mixpanel"===n?Y:Y[n];if(i&&X===ee)r=i;else{if(i&&!T.isArray(i))return void S("You have already initialized "+n);r=new pe}if(r._init(e,t,n),r.people=new de,r.people._init(r),r._cached_groups={},o.DEBUG=o.DEBUG||r.get_config("debug"),r.__autotrack_enabled=r.get_config("autotrack"),r.get_config("autotrack")){R.enabledForProject(r.get_config("token"),100,100)?R.isBrowserSupported()?R.init(r):(r.__autotrack_enabled=!1,E("Disabling Automatic Event Collection because this browser is not supported")):(r.__autotrack_enabled=!1,E("Not in active bucket: disabling Automatic Event Collection."))}return!T.isUndefined(i)&&T.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};pe.prototype.init=function(e,t,n){if(T.isUndefined(n))S("You must name your new library: init(token, config, name)");else{if("mixpanel"!==n){var r=fe(e,t,n);return Y[n]=r,r._loaded(),r}S("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},pe.prototype._init=function(e,t,n){this.__loaded=!0,this.config={},this.set_config(T.extend({},oe,t,{name:n,token:e,callback_fn:("mixpanel"===n?n:"mixpanel."+n)+"._jsc"})),this._jsc=function(){},this.__dom_loaded_queue=[],this.__request_queue=[],this.__disabled_events=[],this._flags={disable_all_events:!1,identify_called:!1},this.persistence=this.cookie=new ue(this.config),this._gdpr_init();var r=T.UUID();this.get_distinct_id()||this.register_once({distinct_id:r,$device_id:r},"")},pe.prototype._loaded=function(){this.get_config("loaded")(this),this.get_config("track_pageview")&&this.track_pageview()},pe.prototype._dom_loaded=function(){T.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),this.has_opted_out_tracking()||T.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},pe.prototype._track_dom=function(e,t){if(this.get_config("img"))return S("You can't use DOM tracking functions with img = true."),!1;if(!ie)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},pe.prototype._prepare_callback=function(e,t){if(T.isUndefined(e))return null;if(ne){return function(n){e(n,t)}}var n=this._jsc,r=""+Math.floor(1e8*Math.random()),o=this.get_config("callback_fn")+"["+r+"]";return n[r]=function(o){delete n[r],e(o,t)},o},pe.prototype._send_request=function(e,t,n){if(re)this.__request_queue.push(arguments);else{var r=this.get_config("verbose");if(t.verbose&&(r=!0),this.get_config("test")&&(t.test=1),r&&(t.verbose=1),this.get_config("img")&&(t.img=1),ne||(n?t.callback=n:(r||this.get_config("test"))&&(t.callback="(function(){})")),t.ip=this.get_config("ip")?1:0,t._=(new Date).getTime().toString(),e+="?"+T.HTTPBuildQuery(t),"img"in t){var o=h.createElement("img");o.src=e,h.body.appendChild(o)}else if(ne)try{var i=new XMLHttpRequest;i.open("GET",e,!0);var a=this.get_config("xhr_headers");T.each(a,function(e,t){i.setRequestHeader(t,e)}),i.withCredentials=!0,i.onreadystatechange=function(){if(4===i.readyState)if(200===i.status){if(n)if(r){var e;try{e=T.JSONDecode(i.responseText)}catch(e){return void S(e)}n(e)}else n(Number(i.responseText))}else{var t="Bad HTTP status: "+i.status+" "+i.statusText;S(t),n&&n(r?{status:0,error:t}:0)}},i.send(null)}catch(e){S(e)}else{var l=h.createElement("script");l.type="text/javascript",l.async=!0,l.defer=!0,l.src=e;var s=h.getElementsByTagName("script")[0];s.parentNode.insertBefore(l,s)}}},pe.prototype._execute_array=function(e){var t,n=[],r=[],o=[];T.each(e,function(e){e&&(t=e[0],T.isArray(t)?o.push(e):"function"==typeof e?e.call(this):T.isArray(e)&&"alias"===t?n.push(e):T.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):r.push(e))},this);var i=function(e,t){T.each(e,function(e){if(T.isArray(e[0])){var n=t;T.each(e,function(e){n=n[e[0]].apply(n,e.slice(1))})}else this[e[0]].apply(this,e.slice(1))},t)};i(n,this),i(r,this),i(o,this)},pe.prototype.push=function(e){this._execute_array([e])},pe.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},pe.prototype.track=$(function(e,t,n){if("function"!=typeof n&&(n=function(){}),T.isUndefined(e))S("No event name provided to mixpanel.track");else{if(!this._event_is_disabled(e)){(t=t||{}).token=this.get_config("token");var r=this.persistence.remove_event_timer(e);if(!T.isUndefined(r)){var o=(new Date).getTime()-r;t.$duration=parseFloat((o/1e3).toFixed(3))}this.persistence.update_search_keyword(h.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(h.referrer),t=T.extend({},T.info.properties(),this.persistence.properties(),t);var i=this.get_config("property_blacklist");T.isArray(i)?T.each(i,function(e){delete t[e]}):S("Invalid value for property_blacklist config: "+i);var a={event:e,properties:t},l=T.truncate(a,255),s=T.JSONEncode(l),u=T.base64Encode(s);return E("MIXPANEL REQUEST:"),E(l),this._send_request(this.get_config("api_host")+"/track/",{data:u},this._prepare_callback(n,l)),l}n(0)}}),pe.prototype.set_group=$(function(e,t,n){T.isArray(t)||(t=[t]);var r={};return r[e]=t,this.register(r),this.people.set(e,t,n)}),pe.prototype.add_group=$(function(e,t,n){var r=this.get_property(e);if(void 0===r){var o={};o[e]=[t],this.register(o)}else-1===r.indexOf(t)&&(r.push(t),this.register(o));return this.people.union(e,t,n)}),pe.prototype.remove_group=$(function(e,t,n){var r=this.get_property(e);if(void 0!==r){var o=r.indexOf(t);o>-1&&(r.splice(o,1),this.register({group_key:r})),0===r.length&&this.unregister(e)}return this.people.remove(e,t,n)}),pe.prototype.track_with_groups=$(function(e,t,n,r){var o=T.extend({},t||{});return T.each(n,function(e,t){null!==e&&void 0!==e&&(o[t]=e)}),this.track(e,o,r)}),pe.prototype._create_map_key=function(e,t){return e+"_"+JSON.stringify(t)},pe.prototype._remove_group_from_cache=function(e,t){delete this._cached_groups[this._create_map_key(e,t)]},pe.prototype.get_group=function(e,t){var n=this._create_map_key(e,t),r=this._cached_groups[n];return void 0!==r&&r._group_key===e&&r._group_id===t||((r=new J)._init(this,e,t),this._cached_groups[n]=r),r},pe.prototype.track_pageview=function(e){T.isUndefined(e)&&(e=h.location.href),this.track("mp_page_view",T.info.pageviewInfo(e))},pe.prototype.track_links=function(){return this._track_dom.call(this,le,arguments)},pe.prototype.track_forms=function(){return this._track_dom.call(this,se,arguments)},pe.prototype.time_event=function(e){T.isUndefined(e)?S("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())},pe.prototype.register=function(e,t){this.persistence.register(e,t)},pe.prototype.register_once=function(e,t,n){this.persistence.register_once(e,t,n)},pe.prototype.unregister=function(e){this.persistence.unregister(e)},pe.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},pe.prototype.identify=function(e,t,n,r,o,i,a,l){var s=this.get_distinct_id();if(this.register({$user_id:e}),!this.get_property("$device_id")){var u=s;this.register_once({$had_persisted_distinct_id:!0,$device_id:u},"")}e!==s&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this.register({distinct_id:e})),this._check_and_handle_notifications(this.get_distinct_id()),this._flags.identify_called=!0,this.people._flush(t,n,r,o,i,a,l)},pe.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1;var e=T.UUID();this.register_once({distinct_id:e,$device_id:e},"")},pe.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},pe.prototype.alias=function(e,t){if(e===this.get_property("$people_distinct_id"))return C("Attempting to create alias for existing People user - aborting."),-2;var n=this;return T.isUndefined(t)&&(t=this.get_distinct_id()),e!==t?(this._register_single("__alias",e),this.track("$create_alias",{alias:e,distinct_id:t},function(){n.identify(e)})):(S("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},pe.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},pe.prototype.set_config=function(e){T.isObject(e)&&(T.extend(this.config,e),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"))},pe.prototype.get_config=function(e){return this.config[e]},pe.prototype.get_property=function(e){return this.persistence.props[e]},pe.prototype.toString=function(){var e=this.get_config("name");return"mixpanel"!==e&&(e="mixpanel."+e),e},pe.prototype._event_is_disabled=function(e){return T.isBlockedUA(g)||this._flags.disable_all_events||T.include(this.__disabled_events,e)},pe.prototype._check_and_handle_notifications=$(function(e){if(e&&!this._flags.identify_called&&!this.get_config("disable_notifications")){E("MIXPANEL NOTIFICATION CHECK");var t={verbose:!0,version:"2",lib:"web",token:this.get_config("token"),distinct_id:e},n=this;this._send_request(this.get_config("api_host")+"/decide/",t,this._prepare_callback(function(e){e.notifications&&e.notifications.length>0&&n._show_notification.call(n,e.notifications[0])}))}}),pe.prototype._show_notification=function(e){new ce(e,this).show()},pe.prototype._gdpr_init=function(){"localStorage"===this.get_config("opt_out_tracking_persistence_type")&&T.localStorage.is_supported()&&(!this.has_opted_in_tracking()&&this.has_opted_in_tracking({persistence_type:"cookie"})&&this.opt_in_tracking({enable_persistence:!1}),!this.has_opted_out_tracking()&&this.has_opted_out_tracking({persistence_type:"cookie"})&&this.opt_out_tracking({clear_persistence:!1}),this.clear_opt_in_out_tracking({persistence_type:"cookie",enable_persistence:!1})),this.has_opted_out_tracking()?this._gdpr_update_persistence({clear_persistence:!0}):this.has_opted_in_tracking()||!this.get_config("opt_out_tracking_by_default")&&!T.cookie.get("mp_optout")||(T.cookie.remove("mp_optout"),this.opt_out_tracking({clear_persistence:this.get_config("opt_out_persistence_by_default")}))},pe.prototype._gdpr_update_persistence=function(e){var t;if(e&&e.clear_persistence)t=!0;else{if(!e||!e.enable_persistence)return;t=!1}this.get_config("disable_persistence")||this.persistence.disabled===t||this.persistence.set_disabled(t)},pe.prototype._gdpr_call_func=function(e,t){return t=T.extend({track:T.bind(this.track,this),persistence_type:this.get_config("opt_out_tracking_persistence_type"),cookie_prefix:this.get_config("opt_out_tracking_cookie_prefix"),cookie_expiration:this.get_config("cookie_expiration"),cross_subdomain_cookie:this.get_config("cross_subdomain_cookie"),secure_cookie:this.get_config("secure_cookie")},t),T.localStorage.is_supported()||(t.persistence_type="cookie"),e(this.get_config("token"),{track:t.track,trackEventName:t.track_event_name,trackProperties:t.track_properties,persistenceType:t.persistence_type,persistencePrefix:t.cookie_prefix,cookieExpiration:t.cookie_expiration,crossSubdomainCookie:t.cross_subdomain_cookie,secureCookie:t.secure_cookie})},pe.prototype.opt_in_tracking=function(e){e=T.extend({enable_persistence:!0},e),this._gdpr_call_func(F,e),this._gdpr_update_persistence(e)},pe.prototype.opt_out_tracking=function(e){(e=T.extend({clear_persistence:!0,delete_user:!0},e)).delete_user&&this.people&&this.people._identify_called()&&(this.people.delete_user(),this.people.clear_charges()),this._gdpr_call_func(D,e),this._gdpr_update_persistence(e)},pe.prototype.has_opted_in_tracking=function(e){return this._gdpr_call_func(B,e)},pe.prototype.has_opted_out_tracking=function(e){return this._gdpr_call_func(L,e)},pe.prototype.clear_opt_in_out_tracking=function(e){e=T.extend({enable_persistence:!0},e),this._gdpr_call_func(q,e),this._gdpr_update_persistence(e)},de.prototype._init=function(e){this._mixpanel=e},de.prototype.set=z(function(e,t,n){var r=this.set_action(e,t);return T.isObject(e)&&(n=t),this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(h.referrer),r.$set=T.extend({},T.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),r.$set),this._send_request(r,n)}),de.prototype.set_once=z(function(e,t,n){var r=this.set_once_action(e,t);return T.isObject(e)&&(n=t),this._send_request(r,n)}),de.prototype.unset=z(function(e,t){var n=this.unset_action(e);return this._send_request(n,t)}),de.prototype.increment=z(function(e,t,n){var r={},o={};return T.isObject(e)?(T.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void S("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}},this),n=t):(T.isUndefined(t)&&(t=1),o[e]=t),r.$add=o,this._send_request(r,n)}),de.prototype.append=z(function(e,t,n){T.isObject(e)&&(n=t);var r=this.append_action(e,t);return this._send_request(r,n)}),de.prototype.remove=z(function(e,t,n){T.isObject(e)&&(n=t);var r=this.remove_action(e,t);return this._send_request(r,n)}),de.prototype.union=z(function(e,t,n){T.isObject(e)&&(n=t);var r=this.union_action(e,t);return this._send_request(r,n)}),de.prototype.track_charge=z(function(e,t,n){if(T.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",T.extend({$amount:e},t),n);S("Invalid value passed to mixpanel.people.track_charge - must be a number")}),de.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},de.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}S("mixpanel.people.delete_user() requires you to call identify() first")},de.prototype.toString=function(){return this._mixpanel.toString()+".people"},de.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=this._mixpanel.get_property("$device_id"),r=this._mixpanel.get_property("$user_id"),o=this._mixpanel.get_property("$had_persisted_distinct_id");n&&(e.$device_id=n),r&&(e.$user_id=r),o&&(e.$had_persisted_distinct_id=o);var i=T.encodeDates(e),a=T.truncate(i,255),l=T.JSONEncode(i),s=T.base64Encode(l);return this._identify_called()?(E("MIXPANEL PEOPLE REQUEST:"),E(a),this._mixpanel._send_request(this._get_config("api_host")+"/engage/",{data:s},this._mixpanel._prepare_callback(t,a)),a):(this._enqueue(e),T.isUndefined(t)||(this._get_config("verbose")?t({status:-1,error:null}):t(-1)),a)},de.prototype._get_config=function(e){return this._mixpanel.get_config(e)},de.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},de.prototype._enqueue=function(e){"$set"in e?this._mixpanel.persistence._add_to_people_queue("$set",e):"$set_once"in e?this._mixpanel.persistence._add_to_people_queue("$set_once",e):"$unset"in e?this._mixpanel.persistence._add_to_people_queue("$unset",e):"$add"in e?this._mixpanel.persistence._add_to_people_queue("$add",e):"$append"in e?this._mixpanel.persistence._add_to_people_queue("$append",e):"$remove"in e?this._mixpanel.persistence._add_to_people_queue("$remove",e):"$union"in e?this._mixpanel.persistence._add_to_people_queue("$union",e):S("Invalid call to _enqueue():",e)},de.prototype._flush_one_queue=function(e,t,n,r){var o=this,i=T.extend({},this._mixpanel.persistence._get_queue(e)),a=i;T.isUndefined(i)||!T.isObject(i)||T.isEmptyObject(i)||(o._mixpanel.persistence._pop_from_people_queue(e,i),r&&(a=r(i)),t.call(o,a,function(t,r){0===t&&o._mixpanel.persistence._add_to_people_queue(e,i),T.isUndefined(n)||n(t,r)}))},de.prototype._flush=function(e,t,n,r,o,i,a){var l=this,s=this._mixpanel.persistence._get_queue("$append"),u=this._mixpanel.persistence._get_queue("$remove");if(this._flush_one_queue("$set",this.set,e),this._flush_one_queue("$set_once",this.set_once,r),this._flush_one_queue("$unset",this.unset,i,function(e){return T.keys(e)}),this._flush_one_queue("$add",this.increment,t),this._flush_one_queue("$union",this.union,o),!T.isUndefined(s)&&T.isArray(s)&&s.length){for(var c,p=function(e,t){0===e&&l._mixpanel.persistence._add_to_people_queue("$append",c),T.isUndefined(n)||n(e,t)},d=s.length-1;d>=0;d--)c=s.pop(),T.isEmptyObject(c)||l.append(c,p);l._mixpanel.persistence.save()}if(!T.isUndefined(u)&&T.isArray(u)&&u.length){for(var f,h=function(e,t){0===e&&l._mixpanel.persistence._add_to_people_queue("$remove",f),T.isUndefined(a)||a(e,t)},m=u.length-1;m>=0;m--)f=u.pop(),T.isEmptyObject(f)||l.remove(f,h);l._mixpanel.persistence.save()}},de.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e||"$device_id"===e||"$user_id"===e||"$had_persisted_distinct_id"===e},pe._Notification=function(e,t){T.bind_instance_methods(this),this.mixpanel=t,this.persistence=this.mixpanel.persistence,this.resource_protocol=this.mixpanel.get_config("inapp_protocol"),this.cdn_host=this.mixpanel.get_config("cdn"),this.campaign_id=T.escapeHTML(e.id),this.message_id=T.escapeHTML(e.message_id),this.body=(T.escapeHTML(e.body)||"").replace(/\n/g,"
"),this.cta=T.escapeHTML(e.cta)||"Close",this.notif_type=T.escapeHTML(e.type)||"takeover",this.style=T.escapeHTML(e.style)||"light",this.title=T.escapeHTML(e.title)||"",this.video_width=ce.VIDEO_WIDTH,this.video_height=ce.VIDEO_HEIGHT,this.dest_url=e.cta_url||null,this.image_url=e.image_url||null,this.thumb_image_url=e.thumb_image_url||null,this.video_url=e.video_url||null,this.thumb_image_url&&0===this.thumb_image_url.indexOf("//")&&(this.thumb_image_url=this.thumb_image_url.replace("//",this.resource_protocol)),this.clickthrough=!0,this.dest_url||(this.dest_url="#dismiss",this.clickthrough=!1),this.mini="mini"===this.notif_type,this.mini||(this.notif_type="takeover"),this.notif_width=this.mini?ce.NOTIF_WIDTH_MINI:ce.NOTIF_WIDTH,this._set_client_config(),this.imgs_to_preload=this._init_image_html(),this._init_video()},(ce=pe._Notification).ANIM_TIME=200,ce.MARKUP_PREFIX="mixpanel-notification",ce.BG_OPACITY=.6,ce.NOTIF_TOP=25,ce.NOTIF_START_TOP=200,ce.NOTIF_WIDTH=388,ce.NOTIF_WIDTH_MINI=420,ce.NOTIF_HEIGHT_MINI=85,ce.THUMB_BORDER_SIZE=5,ce.THUMB_IMG_SIZE=60,ce.THUMB_OFFSET=Math.round(ce.THUMB_IMG_SIZE/2),ce.VIDEO_WIDTH=595,ce.VIDEO_HEIGHT=334,ce.prototype.show=function(){var e=this;this._set_client_config(),this.body_el?(this._init_styles(),this._init_notification_el(),this._preload_images(this._attach_and_animate)):setTimeout(function(){e.show()},300)},ce.prototype.dismiss=T.safewrap(function(){this.marked_as_shown||this._mark_delivery({invisible:!0});var e,t,n,r=this.showing_video?this._get_el("video"):this._get_notification_display_el();this.use_transitions?(this._remove_class("bg","visible"),this._add_class(r,"exiting"),setTimeout(this._remove_notification_el,ce.ANIM_TIME)):(this.mini?(e="right",t=20,n=-100):(e="top",t=ce.NOTIF_TOP,n=ce.NOTIF_START_TOP+ce.NOTIF_TOP),this._animate_els([{el:this._get_el("bg"),attr:"opacity",start:ce.BG_OPACITY,goal:0},{el:r,attr:"opacity",start:1,goal:0},{el:r,attr:e,start:t,goal:n}],ce.ANIM_TIME,this._remove_notification_el))}),ce.prototype._add_class=T.safewrap(function(e,t){t=ce.MARKUP_PREFIX+"-"+t,"string"==typeof e&&(e=this._get_el(e)),e.className?~(" "+e.className+" ").indexOf(" "+t+" ")||(e.className+=" "+t):e.className=t}),ce.prototype._remove_class=T.safewrap(function(e,t){t=ce.MARKUP_PREFIX+"-"+t,"string"==typeof e&&(e=this._get_el(e)),e.className&&(e.className=(" "+e.className+" ").replace(" "+t+" ","").replace(/^[\s\xA0]+/,"").replace(/[\s\xA0]+$/,""))}),ce.prototype._animate_els=T.safewrap(function(e,t,n,r){var o,i,a,l=this,s=!1,u=1*new Date;for(a=u-(r=r||u),o=0;o=i.start?1:-1;i.val=i.start+c*a/t,"opacity"!==i.attr&&(i.val=Math.round(i.val)),(p>0&&i.val>=i.goal||p<0&&i.val<=i.goal)&&(i.val=i.goal)}if(s){for(o=0;o'):this.img_html="",this.thumb_image_url?(e.push(this.thumb_image_url),this.thumb_img_html='
'):this.thumb_img_html=""),e},ce.prototype._init_notification_el=function(){var e="",t="",n="",r='
';if(this.notification_el=h.createElement("div"),this.notification_el.id=ce.MARKUP_PREFIX+"-wrapper",this.mini)e='
'+r+'
'+this.body+'
';else{var o=this.clickthrough||this.show_video?"":'
',i=this.show_video?'
':"";this._browser_lte("ie",7)&&(o="",i=""),e='
'+this.thumb_img_html+'
'+r+'
'+this.img_html+'
'+this.title+'
'+this.body+'
'+o+''+this.cta+""+i+"
"}this.youtube_video?(t=this.resource_protocol+"www.youtube.com/embed/"+this.youtube_video+"?wmode=transparent&showinfo=0&modestbranding=0&rel=0&autoplay=1&loop=0&vq=hd1080",this.yt_custom&&(t+="&enablejsapi=1&html5=1&controls=0",n='
')):this.vimeo_video&&(t=this.resource_protocol+"player.vimeo.com/video/"+this.vimeo_video+"?autoplay=1&title=0&byline=0&portrait=0"),this.show_video&&(this.video_iframe='',n='
'+n+"
");var a=n+e;this.flip_animate&&(a=(this.mini?e:"")+'
'+(this.mini?n:a)+"
"),this.notification_el.innerHTML=('
'+a+"
").replace(/class=\"/g,'class="'+ce.MARKUP_PREFIX+"-").replace(/id=\"/g,'id="'+ce.MARKUP_PREFIX+"-")},ce.prototype._init_styles=function(){"dark"===this.style?this.style_vals={bg:"#1d1f25",bg_actions:"#282b32",bg_hover:"#3a4147",bg_light:"#4a5157",border_gray:"#32353c",cancel_opacity:"0.4",mini_hover:"#2a3137",text_title:"#fff",text_main:"#9498a3",text_tagline:"#464851",text_hover:"#ddd"}:this.style_vals={bg:"#fff",bg_actions:"#e7eaee",bg_hover:"#eceff3",bg_light:"#f5f5f5",border_gray:"#e4ecf2",cancel_opacity:"1.0",mini_hover:"#fafafa",text_title:"#5c6578",text_main:"#8b949b",text_tagline:"#ced9e6",text_hover:"#7c8598"};var e="0px 0px 35px 0px rgba(45, 49, 56, 0.7)",t=e,n=e,r=ce.THUMB_IMG_SIZE+2*ce.THUMB_BORDER_SIZE,o=ce.ANIM_TIME/1e3+"s";this.mini&&(e="none");var i={};i["@media only screen and (max-width: "+(ce.NOTIF_WIDTH_MINI+20-1)+"px)"]={"#overlay":{display:"none"}};var 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.doc_width+"px","min-height":4*this.doc_height+"px","background-color":"black",opacity:"0.0","-ms-filter":"progid:DXImageTransform.Microsoft.Alpha(Opacity=60)",filter:"alpha(opacity=60)",transition:"opacity "+o},"#bg.visible":{opacity:ce.BG_OPACITY},".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:ce.NOTIF_WIDTH+"px","margin-left":Math.round(-ce.NOTIF_WIDTH/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:ce.NOTIF_START_TOP+"px",transition:"opacity "+o+", top "+o},"#takeover.visible":{opacity:"1.0",top:ce.NOTIF_TOP+"px"},"#takeover.exiting":{opacity:"0.0",top:ce.NOTIF_START_TOP+"px"},"#thumbspacer":{height:ce.THUMB_OFFSET+"px"},"#thumbborder-wrapper":{position:"absolute",top:-ce.THUMB_BORDER_SIZE+"px",left:ce.NOTIF_WIDTH/2-ce.THUMB_OFFSET-ce.THUMB_BORDER_SIZE+"px",width:r+"px",height:r/2+"px",overflow:"hidden"},"#thumbborder":{position:"absolute",width:r+"px",height:r+"px","border-radius":r+"px","background-color":this.style_vals.bg_actions,opacity:"0.5"},"#thumbnail":{position:"absolute",top:"0px",left:ce.NOTIF_WIDTH/2-ce.THUMB_OFFSET+"px",width:ce.THUMB_IMG_SIZE+"px",height:ce.THUMB_IMG_SIZE+"px",overflow:"hidden","z-index":"100","border-radius":ce.THUMB_IMG_SIZE+"px"},"#mini":{position:"absolute",right:"20px",top:ce.NOTIF_TOP+"px",width:this.notif_width+"px",height:2*ce.NOTIF_HEIGHT_MINI+"px","margin-top":20-ce.NOTIF_HEIGHT_MINI+"px","backface-visibility":"hidden",opacity:"0.0",transform:"rotateX(90deg)",transition:"opacity 0.3s, transform 0.3s, right 0.3s"},"#mini.visible":{opacity:"1.0",transform:"rotateX(0deg)"},"#mini.exiting":{opacity:"0.0",right:"-150px"},"#mainbox":{"border-radius":"4px","box-shadow":e,"text-align":"center","background-color":this.style_vals.bg,"font-size":"14px",color:this.style_vals.text_main},"#mini #mainbox":{height:ce.NOTIF_HEIGHT_MINI+"px","margin-top":ce.NOTIF_HEIGHT_MINI+"px","border-radius":"3px",transition:"background-color "+o},"#mini-border":{height:ce.NOTIF_HEIGHT_MINI+6+"px",width:ce.NOTIF_WIDTH_MINI+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":ce.NOTIF_HEIGHT_MINI+"px","border-radius":"6px",opacity:"0.25","background-color":"#fff","z-index":"-1","box-shadow":n},"#mini-icon":{position:"relative",display:"inline-block",width:"75px",height:ce.NOTIF_HEIGHT_MINI+"px","border-radius":"3px 0 0 3px","background-color":this.style_vals.bg_actions,background:"linear-gradient(135deg, "+this.style_vals.bg_light+" 0%, "+this.style_vals.bg_actions+" 100%)",transition:"background-color "+o},"#mini:hover #mini-icon":{"background-color":this.style_vals.mini_hover},"#mini:hover #mainbox":{"background-color":this.style_vals.mini_hover},"#mini-icon-img":{position:"absolute","background-image":"url("+this.thumb_image_url+")",width:"48px",height:"48px",top:"20px",left:"12px"},"#content":{padding:"30px 20px 0px 20px"},"#mini-content":{"text-align":"left",height:ce.NOTIF_HEIGHT_MINI+"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.style_vals.text_title},"#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:ce.NOTIF_HEIGHT_MINI+"px","font-size":"16px","letter-spacing":"0.8px",color:this.style_vals.text_title},"#mini #body-text":{display:"table",height:ce.NOTIF_HEIGHT_MINI+"px"},"#mini #body-text div":{display:"table-cell","vertical-align":"middle"},"#tagline":{"margin-bottom":"15px","font-size":"10px","font-weight":"600","letter-spacing":"0.8px",color:"#ccd7e0","text-align":"left"},"#tagline a":{color:this.style_vals.text_tagline,transition:"color "+o},"#tagline a:hover":{color:this.style_vals.text_hover},"#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 "+o},"#mini #cancel":{margin:"7px 7px 0 0"},"#cancel-icon":{width:"8px",height:"8px",overflow:"hidden","background-image":"url("+this.cdn_host+"/site_media/images/icons/notifications/cancel-x.png)",opacity:this.style_vals.cancel_opacity},"#cancel:hover":{"background-color":this.style_vals.bg_hover},"#button":{display:"block",height:"60px","line-height":"60px","text-align":"center","background-color":this.style_vals.bg_actions,"border-radius":"0 0 4px 4px",overflow:"hidden",cursor:"pointer",transition:"background-color "+o},"#button-close":{display:"inline-block",width:"9px",height:"60px","margin-right":"8px","vertical-align":"top","background-image":"url("+this.cdn_host+"/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",width:"30px",height:"60px","margin-left":"15px","background-image":"url("+this.cdn_host+"/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.style_vals.text_title,transition:"color "+o},"#button:hover":{"background-color":this.style_vals.bg_hover,color:this.style_vals.text_hover},"#button:hover a":{color:this.style_vals.text_hover},"#video-noflip":{position:"relative",top:2*-this.video_height+"px"},"#video-flip":{"backface-visibility":"hidden",transform:"rotateY(180deg)"},"#video":{position:"absolute",width:this.video_width-1+"px",height:this.video_height+"px",top:ce.NOTIF_TOP+"px","margin-top":"100px",left:"50%","margin-left":Math.round(-this.video_width/2)+"px",overflow:"hidden","border-radius":"5px","box-shadow":t,transform:"translateZ(1px)",transition:"opacity "+o+", top "+o},"#video.exiting":{opacity:"0.0",top:this.video_height+"px"},"#video-holder":{position:"absolute",width:this.video_width-1+"px",height:this.video_height+"px",overflow:"hidden","border-radius":"5px"},"#video-frame":{"margin-left":"-1px",width:this.video_width+"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.style_vals.bg,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.style_vals.text_main,"background-color":"#666","border-radius":"0 0 5px 0"}};this._browser_lte("ie",8)&&T.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}}),this._browser_lte("ie",7)&&T.extend(a,{"#mini #body":{display:"inline",zoom:"1",border:"1px solid "+this.style_vals.bg_hover},"#mini #body-text":{padding:"20px"},"#mini #mini-icon":{display:"none"}});var l=["backface-visibility","border-radius","box-shadow","opacity","perspective","transform","transform-style","transition"],s=["khtml","moz","ms","o","webkit"];for(var u in a)for(var c=0;c=33||this.browser_versions.firefox>=15)&&this.body_el&&o("backfaceVisibility")&&o("perspective")&&o("transform")},ce.prototype._switch_to_video=T.safewrap(function(){var e=this,t=[{el:e._get_notification_display_el(),attr:"opacity",start:1,goal:0},{el:e._get_notification_display_el(),attr:"top",start:ce.NOTIF_TOP,goal:-500},{el:e._get_el("video-noflip"),attr:"opacity",start:0,goal:1},{el:e._get_el("video-noflip"),attr:"top",start:2*-e.video_height,goal:0}];if(e.mini){var n=e._get_el("bg"),o=e._get_el("overlay");n.style.width="100%",n.style.height="100%",o.style.width="100%",e._add_class(e._get_notification_display_el(),"exiting"),e._add_class(n,"visible"),t.push({el:e._get_el("bg"),attr:"opacity",start:0,goal:ce.BG_OPACITY})}e._get_el("video-holder").innerHTML=e.video_iframe;var i=function(){r.YT&&r.YT.loaded&&e._yt_video_ready(),e.showing_video=!0,e._get_notification_display_el().style.visibility="hidden"};e.flip_animate?(e._add_class("flipper","flipped"),setTimeout(i,ce.ANIM_TIME)):e._animate_els(t,ce.ANIM_TIME,i)}),ce.prototype._track_event=function(e,t,n){this.campaign_id?(t=t||{},t=T.extend(t,{campaign_id:this.campaign_id,message_id:this.message_id,message_type:"web_inapp",message_subtype:this.notif_type}),this.mixpanel.track(e,t,n)):n&&n.call()},ce.prototype._yt_video_ready=T.safewrap(function(){var e=this;if(!e.video_inited){e.video_inited=!0;var t=e._get_el("video-elapsed"),n=e._get_el("video-time"),o=e._get_el("video-progress");new r.YT.Player(ce.MARKUP_PREFIX+"-video-frame",{events:{onReady:function(i){var a=i.target,l=a.getDuration(),s=function(e){return("00"+e).slice(-2)},u=function(e){var t=Math.round(l-e),r=Math.floor(t/60),o=Math.floor(r/60);t-=60*r,r-=60*o,n.innerHTML="-"+(o?o+":":"")+s(r)+":"+s(t)};u(0),e._video_progress_checker=r.setInterval(function(){var e=a.getCurrentTime();t.style.width=e/l*100+"%",u(e)},250),T.register_event(o,"click",function(e){var t=Math.max(0,e.pageX-o.getBoundingClientRect().left);a.seekTo(l*t/o.clientWidth,!0)})}}})}}),pe.prototype.init=pe.prototype.init,pe.prototype.reset=pe.prototype.reset,pe.prototype.disable=pe.prototype.disable,pe.prototype.time_event=pe.prototype.time_event,pe.prototype.track=pe.prototype.track,pe.prototype.track_links=pe.prototype.track_links,pe.prototype.track_forms=pe.prototype.track_forms,pe.prototype.track_pageview=pe.prototype.track_pageview,pe.prototype.register=pe.prototype.register,pe.prototype.register_once=pe.prototype.register_once,pe.prototype.unregister=pe.prototype.unregister,pe.prototype.identify=pe.prototype.identify,pe.prototype.alias=pe.prototype.alias,pe.prototype.name_tag=pe.prototype.name_tag,pe.prototype.set_config=pe.prototype.set_config,pe.prototype.get_config=pe.prototype.get_config,pe.prototype.get_property=pe.prototype.get_property,pe.prototype.get_distinct_id=pe.prototype.get_distinct_id,pe.prototype.toString=pe.prototype.toString,pe.prototype._check_and_handle_notifications=pe.prototype._check_and_handle_notifications,pe.prototype._show_notification=pe.prototype._show_notification,pe.prototype.opt_out_tracking=pe.prototype.opt_out_tracking,pe.prototype.opt_in_tracking=pe.prototype.opt_in_tracking,pe.prototype.has_opted_out_tracking=pe.prototype.has_opted_out_tracking,pe.prototype.has_opted_in_tracking=pe.prototype.has_opted_in_tracking,pe.prototype.clear_opt_in_out_tracking=pe.prototype.clear_opt_in_out_tracking,pe.prototype.get_group=pe.prototype.get_group,pe.prototype.set_group=pe.prototype.set_group,pe.prototype.add_group=pe.prototype.add_group,pe.prototype.remove_group=pe.prototype.remove_group,pe.prototype.track_with_groups=pe.prototype.track_with_groups,ue.prototype.properties=ue.prototype.properties,ue.prototype.update_search_keyword=ue.prototype.update_search_keyword,ue.prototype.update_referrer_info=ue.prototype.update_referrer_info,ue.prototype.get_cross_subdomain=ue.prototype.get_cross_subdomain,ue.prototype.clear=ue.prototype.clear,de.prototype.set=de.prototype.set,de.prototype.set_once=de.prototype.set_once,de.prototype.unset=de.prototype.unset,de.prototype.increment=de.prototype.increment,de.prototype.append=de.prototype.append,de.prototype.remove=de.prototype.remove,de.prototype.union=de.prototype.union,de.prototype.track_charge=de.prototype.track_charge,de.prototype.clear_charges=de.prototype.clear_charges,de.prototype.delete_user=de.prototype.delete_user,de.prototype.toString=de.prototype.toString,T.safewrap_class(pe,["identify","_check_and_handle_notifications","_show_notification"]);var he={},me=function(){Y.init=function(e,t,n){if(n)return Y[n]||(Y[n]=he[n]=fe(e,t,n),Y[n]._loaded()),Y[n];var o=Y;he.mixpanel?o=he.mixpanel:e&&((o=fe(e,t,"mixpanel"))._loaded(),he.mixpanel=o),Y=o,1===X&&(r.mixpanel=Y),T.each(he,function(e,t){"mixpanel"!==t&&(Y[t]=e)}),Y._=T}},_e=function(){function e(){e.done||(e.done=!0,ie=!0,re=!1,T.each(he,function(e){e._dom_loaded()}))}if(h.addEventListener)"complete"===h.readyState?e():h.addEventListener("DOMContentLoaded",e,!1);else if(h.attachEvent){h.attachEvent("onreadystatechange",e);var t=!1;try{t=null===r.frameElement}catch(e){}h.documentElement.doScroll&&t&&function t(){try{h.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}()}T.register_event(r,"load",e,!0)};var ge=(X=ee,Y=new pe,me(),Y.init(),_e(),Y);e.exports=ge},"./node_modules/object-assign/index.js": -/*!*********************************************!*\ - !*** ./node_modules/object-assign/index.js ***! - \*********************************************/ -/*! no static exports found */function(e,t,n){"use strict"; -/* -object-assign -(c) Sindre Sorhus -@license MIT -*/var r=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,a,l=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;sthis.eventPool.length&&this.eventPool.push(e)}function pe(e){e.eventPool=[],e.getPooled=ue,e.release=ce}o(se.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!=typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=ae)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!=typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=ae)},persist:function(){this.isPersistent=ae},isPersistent:le,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=le,this._dispatchInstances=this._dispatchListeners=null}}),se.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},se.extend=function(e){function t(){}function n(){return r.apply(this,arguments)}var r=this;t.prototype=r.prototype;var i=new t;return o(i,n.prototype),n.prototype=i,n.prototype.constructor=n,n.Interface=o({},r.Interface,e),n.extend=r.extend,pe(n),n},pe(se);var de=se.extend({data:null}),fe=se.extend({data:null}),he=[9,13,27,32],me=W&&"CompositionEvent"in window,_e=null;W&&"documentMode"in document&&(_e=document.documentMode);var ge=W&&"TextEvent"in window&&!_e,ye=W&&(!me||_e&&8<_e&&11>=_e),ve=String.fromCharCode(32),be={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},xe=!1;function we(e,t){switch(e){case"keyup":return-1!==he.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function ke(e){return"object"==typeof(e=e.detail)&&"data"in e?e.data:null}var Te=!1;var Ee={eventTypes:be,extractEvents:function(e,t,n,r){var o=void 0,i=void 0;if(me)e:{switch(e){case"compositionstart":o=be.compositionStart;break e;case"compositionend":o=be.compositionEnd;break e;case"compositionupdate":o=be.compositionUpdate;break e}o=void 0}else Te?we(e,n)&&(o=be.compositionEnd):"keydown"===e&&229===n.keyCode&&(o=be.compositionStart);return o?(ye&&"ko"!==n.locale&&(Te||o!==be.compositionStart?o===be.compositionEnd&&Te&&(i=ie()):(re="value"in(ne=r)?ne.value:ne.textContent,Te=!0)),o=de.getPooled(o,t,n,r),i?o.data=i:null!==(i=ke(n))&&(o.data=i),q(o),i=o):i=null,(e=ge?function(e,t){switch(e){case"compositionend":return ke(t);case"keypress":return 32!==t.which?null:(xe=!0,ve);case"textInput":return(e=t.data)===ve&&xe?null:e;default:return null}}(e,n):function(e,t){if(Te)return"compositionend"===e||!me&&we(e,t)?(e=ie(),oe=re=ne=null,Te=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1