diff --git a/Rename-It.sketchplugin/Contents/Resources/icon.png b/Rename-It.sketchplugin/Contents/Resources/icon.png new file mode 100644 index 0000000..7b737ec Binary files /dev/null and b/Rename-It.sketchplugin/Contents/Resources/icon.png differ diff --git a/Rename-It.sketchplugin/Contents/Resources/webview.js b/Rename-It.sketchplugin/Contents/Resources/webview.js index 97d13ae..24e7059 100644 --- a/Rename-It.sketchplugin/Contents/Resources/webview.js +++ b/Rename-It.sketchplugin/Contents/Resources/webview.js @@ -1 +1,49420 @@ -!function(e){function t(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,r){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:r})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=153)}([function(e,t,n){"use strict";e.exports=n(155)},function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(81));t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":(0,r.default)(t))&&"function"!=typeof t?e:t}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(246)),i=r(n(250)),a=r(n(81));t.default=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":(0,a.default)(t)));e.prototype=(0,i.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(o.default?(0,o.default)(e,t):e.__proto__=t)}},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(108));t.default=r.default||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},function(e,t,n){var r,o;!function(){"use strict";function n(){for(var e=[],t=0;t1?t-1:0),r=1;r/g,">").replace(/"/g,""").replace(/'/g,"'")),t},E.extend=function(e){return E.each(s.call(arguments,1),function(t){for(var n in t)void 0!==t[n]&&(e[n]=t[n])}),e},E.isArray=b||function(e){return"[object Array]"===l.call(e)},E.isFunction=function(e){try{return/^\s*\bfunction\b/.test(e)}catch(e){return!1}},E.isArguments=function(e){return!(!e||!c.call(e,"callee"))},E.toArray=function(e){return e?e.toArray?e.toArray():E.isArray(e)?s.call(e):E.isArguments(e)?s.call(e):E.values(e):[]},E.keys=function(e){var t=[];return null===e?t:(E.each(e,function(e,n){t[t.length]=n}),t)},E.values=function(e){var t=[];return null===e?t:(E.each(e,function(e){t[t.length]=e}),t)},E.identity=function(e){return e},E.include=function(e,t){var n=!1;return null===e?n:y&&e.indexOf===y?-1!=e.indexOf(t):(E.each(e,function(e){if(n||(n=e===t))return g}),n)},E.includes=function(e,t){return-1!==e.indexOf(t)},E.inherit=function(e,t){return e.prototype=new t,e.prototype.constructor=e,e.superclass=t.prototype,e},E.isObject=function(e){return e===Object(e)&&!E.isArray(e)},E.isEmptyObject=function(e){if(E.isObject(e)){for(var t in e)if(c.call(e,t))return!1;return!0}return!1},E.isUndefined=function(e){return void 0===e},E.isString=function(e){return"[object String]"==l.call(e)},E.isDate=function(e){return"[object Date]"==l.call(e)},E.isNumber=function(e){return"[object Number]"==l.call(e)},E.isElement=function(e){return!(!e||1!==e.nodeType)},E.encodeDates=function(e){return E.each(e,function(t,n){E.isDate(t)?e[n]=E.formatDate(t):E.isObject(t)&&(e[n]=E.encodeDates(t))}),e},E.timestamp=function(){return Date.now=Date.now||function(){return+new Date},Date.now()},E.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())},E.safewrap=function(e){return function(){try{return e.apply(this,arguments)}catch(e){A("Implementation error. Please turn on debug and contact support@mixpanel.com."),o.DEBUG&&A(e)}}},E.safewrap_class=function(e,t){for(var n=0;n0&&(t[n]=e)}),t},E.truncate=function(e,t){var n;return"string"==typeof e?n=e.slice(0,t):E.isArray(e)?(n=[],E.each(e,function(e){n.push(E.truncate(e,t))})):E.isObject(e)?(n={},E.each(e,function(e,r){n[r]=E.truncate(e,t)})):n=e,n},E.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="",u="",s=0,p=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]"===l.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,u="";if('"'===t)for(;a();){if('"'===t)return a(),u;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;u+=String.fromCharCode(r)}else{if("string"!=typeof o[t])break;u+=o[t]}else u+=t}i("Bad string")},l=function(){for(;t&&t<=" ";)a()};return r=function(){switch(l(),t){case"{":return function(){var e,n={};if("{"===t){if(a("{"),l(),"}"===t)return a("}"),n;for(;t;){if(e=s(),l(),a(":"),Object.hasOwnProperty.call(n,e)&&i('Duplicate key "'+e+'"'),n[e]=r(),l(),"}"===t)return a("}"),n;a(","),l()}}i("Bad object")}();case"[":return function(){var e=[];if("["===t){if(a("["),l(),"]"===t)return a("]"),e;for(;t;){if(e.push(r()),l(),"]"===t)return a("]"),e;a(","),l()}}i("Bad array")}();case'"':return s();case"-":return u();default:return t>="0"&&t<="9"?u():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(),l(),t&&i("Syntax error"),a}}(),E.base64Encode=function(e){var t,n,r,o,i,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",u=0,s=0,l="",c=[];if(!e)return e;e=E.utf8Encode(e);do{t=(i=e.charCodeAt(u++)<<16|e.charCodeAt(u++)<<8|e.charCodeAt(u++))>>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(u127&&a<2048?String.fromCharCode(a>>6|192,63&a|128):String.fromCharCode(a>>12|224,a>>6&63|128,63&a|128),null!==u&&(n>t&&(o+=e.substring(t,n)),o+=u,t=n=r+1)}return n>t&&(o+=e.substring(t,e.length)),o},E.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=(screen.height*screen.width).toString(16);return e()+"-"+Math.random().toString(16).replace(".","")+"-"+function(){function e(e,t){var n,r=0;for(n=0;n=4&&(i=e(i,o),o=[]);return o.length>0&&(i=e(i,o)),i.toString(16)}()+"-"+t+"-"+e()}}(),E.isBlockedUA=function(e){return!!/(google web preview|baiduspider|yandexbot|bingbot|googlebot|yahoo! slurp)/i.test(e)},E.HTTPBuildQuery=function(e,t){var n,r,o=[];return E.isUndefined(t)&&(t="&"),E.each(e,function(e,t){n=encodeURIComponent(e.toString()),r=encodeURIComponent(t),o[o.length]=r+"="+n}),o.join(t)},E.getQueryParam=function(e,t){var n="[\\?&]"+(t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]"))+"=([^&#]*)",r=new RegExp(n).exec(e);return null===r||r&&"string"!=typeof r[1]&&r[1].length?"":decodeURIComponent(r[1]).replace(/\+/g," ")},E.getHashParam=function(e,t){var n=e.match(new RegExp(t+"=([^&]*)"));return n?n[1]:null},E.cookie={get:function(e){for(var t=e+"=",n=f.cookie.split(";"),r=0;r=0}var n=/[\t\r\n]/g;return function(n){return E.isElement(n)?[n]:E.isObject(n)&&!E.isUndefined(n.length)?n:function(n){if(!f.getElementsByTagName)return[];var r,o,i,a,u,s,l,c,p,d,h=n.split(" "),m=[f];for(s=0;s-1){i=(o=r.split("#"))[0];var v=o[1],y=f.getElementById(v);if(!y||i&&y.nodeName.toLowerCase()!=i)return[];m=[y]}else if(r.indexOf(".")>-1){i=(o=r.split("."))[0];var b=o[1];for(i||(i="*"),a=[],u=0,l=0;l-1};break;default:x=function(e){return e.getAttribute(C)}}for(m=[],d=0,l=0;l=3?t[2]:""},properties:function(){return E.extend(E.strip_empty_properties({$os:E.info.os(),$browser:E.info.browser(h,d.vendor,window.opera),$referrer:f.referrer,$referring_domain:E.info.referringDomain(f.referrer),$device:E.info.device(h)}),{$current_url:window.location.href,$browser_version:E.info.browserVersion(h,d.vendor,window.opera),$screen_height:screen.height,$screen_width:screen.width,mp_lib:"web",$lib_version:o.LIB_VERSION})},people_properties:function(){return E.extend(E.strip_empty_properties({$os:E.info.os(),$browser:E.info.browser(h,d.vendor,window.opera)}),{$browser_version:E.info.browserVersion(h,d.vendor,window.opera)})},pageviewInfo:function(e){return E.strip_empty_properties({mp_page:e,mp_referrer:f.referrer,mp_browser:E.info.browser(h,d.vendor,window.opera),mp_platform:E.info.os()})}},E.toArray=E.toArray,E.isObject=E.isObject,E.JSONEncode=E.JSONEncode,E.JSONDecode=E.JSONDecode,E.isBlockedUA=E.isBlockedUA,E.isEmptyObject=E.isEmptyObject,E.info=E.info,E.info.device=E.info.device,E.info.browser=E.info.browser,E.info.properties=E.info.properties;var x={_initializedTokens:[],_previousElementSibling:function(e){if(e.previousElementSibling)return e.previousElementSibling;do{e=e.previousSibling}while(e&&1!==e.nodeType);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)},_getClassName:function(e){switch(typeof e.className){case"string":return e.className;case"object":return e.className.baseVal||e.getAttribute("class")||"";default:return""}},_getPropertiesFromElement:function(e){var t={classes:this._getClassName(e).split(" "),tag_name:e.tagName.toLowerCase()};if(E.includes(["input","select","textarea"],e.tagName.toLowerCase())){var n=this._getFormFieldValue(e);this._includeProperty(e,n)&&(t.value=n)}E.each(e.attributes,function(e){t["attr__"+e.name]=e.value});for(var r=1,o=1,i=e;i=this._previousElementSibling(i);)r++,i.tagName===e.tagName&&o++;return t.nth_child=r,t.nth_of_type=o,t},_isTag:function(e,t){return e&&e.tagName&&e.tagName.toLowerCase()===t.toLowerCase()},_shouldTrackDomEvent:function(e,t){if(!e||this._isTag(e,"html")||1!==e.nodeType)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}},_getDefaultProperties:function(e){return{$event_type:e,$ce_version:1,$host:window.location.host,$pathname:window.location.pathname}},_getInputValue:function(e){var t=null;switch(e.type.toLowerCase()){case"checkbox":e.checked&&(t=[e.value]);break;case"radio":e.checked&&(t=e.value);break;default:t=e.value}return t},_getSelectValue:function(e){var t;if(e.multiple){var n=[];E.each(e.querySelectorAll("[selected]"),function(e){n.push(e.value)}),t=n}else t=e.value;return t},_includeProperty:function(e,t){for(var n=e;n.parentNode&&!this._isTag(n,"body");n=n.parentNode){var r=this._getClassName(n).split(" ");if(E.includes(r,"mp-sensitive")||E.includes(r,"mp-no-track"))return!1}if(E.includes(this._getClassName(e).split(" "),"mp-include"))return!0;if(null===t)return!1;switch((e.type||"").toLowerCase()){case"hidden":case"password":return!1}var o=e.name||e.id||"";if(/^cc|cardnum|ccnum|creditcard|csc|cvc|cvv|exp|pass|seccode|securitycode|securitynum|socialsec|socsec|ssn/i.test(o.replace(/[^a-zA-Z0-9]/g,"")))return!1;if("string"==typeof t){if(/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/.test((t||"").replace(/[\- ]/g,"")))return!1;if(/(^\d{3}-?\d{2}-?\d{4}$)/.test(t))return!1}return!0},_getFormFieldValue:function(e){var t;switch(e.tagName.toLowerCase()){case"input":t=this._getInputValue(e);break;case"select":t=this._getSelectValue(e);break;default:t=e.value||e.textContent}return this._includeProperty(e,t)?t:null},_getFormFieldProperties:function(e){var t={};return E.each(e.elements,function(e){var n=e.getAttribute("name")||e.getAttribute("id");if(null!==n){n="$form_field__"+n;var r=this._getFormFieldValue(e);if(this._includeProperty(e,r)){var o=t[n];t[n]=void 0!==o?[].concat(o,r):r}}},this),t},_extractCustomPropertyValue:function(e){var t=[];return E.each(document.querySelectorAll(e.css_selector),function(e){["input","select"].indexOf(e.tagName.toLowerCase())>-1?t.push(e.value):e.textContent&&t.push(e.textContent)}),t.join(", ")},_getCustomProperties:function(e){var t={};return E.each(this._customProperties,function(n){E.each(n.event_selectors,function(r){var o=document.querySelectorAll(r);E.each(o,function(r){E.includes(e,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(3===n.nodeType&&(n=n.parentNode),this._shouldTrackDomEvent(n,e)){for(var r=[n],o=n;o.parentNode&&!this._isTag(o,"body");)r.push(o.parentNode),o=o.parentNode;var i,a,u,s=[],l=!1;if(E.each(r,function(e,t){if("a"===e.tagName.toLowerCase()?i=e.getAttribute("href"):"form"===e.tagName.toLowerCase()&&(u=e),!a&&t<5&&e.textContent){var n=E.trim(e.textContent);n&&(a=n.replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255))}var r=this._getClassName(e).split(" ");E.includes(r,"mp-no-track")&&(l=!0),s.push(this._getPropertiesFromElement(e))},this),l)return!1;var c=E.extend(this._getDefaultProperties(e.type),{$elements:s,$el_attr__href:i,$el_text:a},this._getCustomProperties(r));return!u||"submit"!==e.type&&"click"!==e.type||E.extend(c,this._getFormFieldProperties(u)),t.track("$web_event",c),!0}},_navigate:function(e){window.location.href=e},_addDomEventHandlers:function(e){var t=E.bind(function(t){t=t||window.event,this._trackEvent(t,e)},this);E.register_event(document,"submit",t,!1,!0),E.register_event(document,"change",t,!1,!0),E.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=E.bind(function(t){t&&t.config&&!0===t.config.enable_collect_everything?(t.custom_properties&&(this._customProperties=t.custom_properties),e.track("$web_event",E.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=E.getHashParam(t,"state");r=JSON.parse(decodeURIComponent(r));var o=E.getHashParam(t,"expires_in");n={accessToken:E.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(E.getHashParam(window.location.hash,"state")){var n=E.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=E.isUndefined(t)?10:t,n=E.isUndefined(n)?10:n;for(var r=0,o=0;ot&&delete e[n];E.isEmptyObject(e)&&delete this.props[B]}}),V.prototype.update_campaign_params=function(){this.campaign_params_saved||(this.register_once(E.info.campaignParams()),this.campaign_params_saved=!0)},V.prototype.update_search_keyword=function(e){this.register(E.info.searchInfo(e))},V.prototype.update_referrer_info=function(e){this.register_once({$initial_referrer:e||"$direct",$initial_referring_domain:E.info.referringDomain(e)||"$direct"},"")},V.prototype.get_referrer_info=function(){return E.strip_empty_properties({$initial_referrer:this.props.$initial_referrer,$initial_referring_domain:this.props.$initial_referring_domain})},V.prototype.safe_merge=function(e){return E.each(this.props,function(t,n){n in e||(e[n]=t)}),e},V.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)},V.prototype.set_disabled=function(e){this.disabled=e,this.disabled&&this.remove()},V.prototype.set_cross_subdomain=function(e){e!==this.cross_subdomain&&(this.cross_subdomain=e,this.remove(),this.save())},V.prototype.get_cross_subdomain=function(){return this.cross_subdomain},V.prototype.set_secure=function(e){e!==this.secure&&(this.secure=!!e,this.remove(),this.save())},V.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(T),a=this._get_or_create_queue(S),u=this._get_or_create_queue("$add"),s=this._get_or_create_queue(N),l=this._get_or_create_queue(D,[]);"__mps"===n?(E.extend(o,r),this._pop_from_people_queue("$add",r),this._pop_from_people_queue(N,r),this._pop_from_people_queue(S,r)):"__mpso"===n?(E.each(r,function(e,t){t in i||(i[t]=e)}),this._pop_from_people_queue(S,r)):"__mpus"===n?E.each(r,function(e){E.each([o,i,u,s],function(t){e in t&&delete t[e]}),E.each(l,function(t){e in t&&delete t[e]}),a[e]=!0}):"__mpa"===n?(E.each(r,function(e,t){t in o?o[t]+=e:(t in u||(u[t]=0),u[t]+=e)},this),this._pop_from_people_queue(S,r)):"__mpu"===n?(E.each(r,function(e,t){E.isArray(e)&&(t in s||(s[t]=[]),s[t]=s[t].concat(e))}),this._pop_from_people_queue(S,r)):"__mpap"===n&&(l.push(r),this._pop_from_people_queue(S,r)),C("MIXPANEL PEOPLE REQUEST (QUEUED, PENDING IDENTIFY):"),C(t),this.save()},V.prototype._pop_from_people_queue=function(e,t){var n=this._get_queue(e);E.isUndefined(n)||(E.each(t,function(e,t){delete n[t]},this),this.save())},V.prototype._get_queue_key=function(e){return"$set"===e?"__mps":e===T?"__mpso":e===S?"__mpus":"$add"===e?"__mpa":e===D?"__mpap":e===N?"__mpu":void _("Invalid queue:",e)},V.prototype._get_queue=function(e){return this.props[this._get_queue_key(e)]},V.prototype._get_or_create_queue=function(e,t){var n=this._get_queue_key(e);return t=E.isUndefined(t)?{}:t,this.props[n]||(this.props[n]=t)},V.prototype.set_event_timer=function(e,t){var n=this.props[j]||{};n[e]=t,this.props[j]=n,this.save()},V.prototype.remove_event_timer=function(e){var t=(this.props[j]||{})[e];return E.isUndefined(t)||(delete this.props[j][e],this.save()),t};var $,W=function(){},G=function(){},Y=function(e,t,n){var r,i=n===k?O:O[n];if(i&&w===F)r=i;else{if(i&&!E.isArray(i))return void _("You have already initialized "+n);r=new W}if(r._init(e,t,n),r.people=new G,r.people._init(r),o.DEBUG=o.DEBUG||r.get_config("debug"),r.__autotrack_enabled=r.get_config("autotrack"),r.get_config("autotrack")){x.enabledForProject(r.get_config("token"),100,100)?x.isBrowserSupported()?x.init(r):(r.__autotrack_enabled=!1,C("Disabling Automatic Event Collection because this browser is not supported")):(r.__autotrack_enabled=!1,C("Not in active bucket: disabling Automatic Event Collection."));try{Z(r)}catch(e){_(e)}}return!E.isUndefined(i)&&E.isArray(i)&&(r._execute_array.call(r.people,i.people),r._execute_array(i)),r};W.prototype.init=function(e,t,n){if(E.isUndefined(n))_("You must name your new library: init(token, config, name)");else{if(n!==k){var r=Y(e,t,n);return O[n]=r,r._loaded(),r}_("You must initialize the main mixpanel object right after you include the Mixpanel js snippet")}},W.prototype._init=function(e,t,n){this.__loaded=!0,this.config={},this.set_config(E.extend({},U,t,{name:n,token:e,callback_fn:(n===k?n:k+"."+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 V(this.config),this.register_once({distinct_id:E.UUID()},"")},W.prototype._loaded=function(){this.get_config("loaded")(this),this.get_config("track_pageview")&&this.track_pageview()},W.prototype._dom_loaded=function(){E.each(this.__dom_loaded_queue,function(e){this._track_dom.apply(this,e)},this),E.each(this.__request_queue,function(e){this._send_request.apply(this,e)},this),delete this.__dom_loaded_queue,delete this.__request_queue},W.prototype._track_dom=function(e,t){if(this.get_config("img"))return _("You can't use DOM tracking functions with img = true."),!1;if(!H)return this.__dom_loaded_queue.push([e,t]),!1;var n=(new e).init(this);return n.track.apply(n,t)},W.prototype._prepare_callback=function(e,t){if(E.isUndefined(e))return null;if(R){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},W.prototype._send_request=function(e,t,n){if(L)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),R||(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+="?"+E.HTTPBuildQuery(t),"img"in t){var o=f.createElement("img");o.src=e,f.body.appendChild(o)}else if(R)try{var i=new XMLHttpRequest;i.open("GET",e,!0),i.withCredentials=!0,i.onreadystatechange=function(){if(4===i.readyState)if(200===i.status)n&&n(r?E.JSONDecode(i.responseText):Number(i.responseText));else{var e="Bad HTTP status: "+i.status+" "+i.statusText;_(e),n&&n(r?{status:0,error:e}:0)}},i.send(null)}catch(e){_(e)}else{var a=f.createElement("script");a.type="text/javascript",a.async=!0,a.defer=!0,a.src=e;var u=f.getElementsByTagName("script")[0];u.parentNode.insertBefore(a,u)}}},W.prototype._execute_array=function(e){var t,n=[],r=[],o=[];E.each(e,function(e){e&&(t=e[0],"function"==typeof e?e.call(this):E.isArray(e)&&"alias"===t?n.push(e):E.isArray(e)&&-1!==t.indexOf("track")&&"function"==typeof this[t]?o.push(e):r.push(e))},this);var i=function(e,t){E.each(e,function(e){this[e[0]].apply(this,e.slice(1))},t)};i(n,this),i(r,this),i(o,this)},W.prototype.push=function(e){this._execute_array([e])},W.prototype.disable=function(e){void 0===e?this._flags.disable_all_events=!0:this.__disabled_events=this.__disabled_events.concat(e)},W.prototype.track=function(e,t,n){if("function"!=typeof n&&(n=function(){}),E.isUndefined(e))_("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(!E.isUndefined(r)){var o=(new Date).getTime()-r;t.$duration=parseFloat((o/1e3).toFixed(3))}this.persistence.update_search_keyword(f.referrer),this.get_config("store_google")&&this.persistence.update_campaign_params(),this.get_config("save_referrer")&&this.persistence.update_referrer_info(f.referrer),t=E.extend({},E.info.properties(),this.persistence.properties(),t);try{this.get_config("autotrack")&&"mp_page_view"!==e&&"$create_alias"!==e&&(t=E.extend({},t,this.mp_counts),this.mp_counts={$__c:0},E.cookie.set("mp_"+this.get_config("name")+"__c",0,1,!0))}catch(e){_(e)}var i=this.get_config("property_blacklist");E.isArray(i)?E.each(i,function(e){delete t[e]}):_("Invalid value for property_blacklist config: "+i);var a={event:e,properties:t},u=E.truncate(a,255),s=E.JSONEncode(u),l=E.base64Encode(s);return C("MIXPANEL REQUEST:"),C(u),this._send_request(this.get_config("api_host")+"/track/",{data:l},this._prepare_callback(n,u)),u}n(0)}},W.prototype.track_pageview=function(e){E.isUndefined(e)&&(e=f.location.href),this.track("mp_page_view",E.info.pageviewInfo(e))},W.prototype.track_links=function(){return this._track_dom.call(this,z,arguments)},W.prototype.track_forms=function(){return this._track_dom.call(this,q,arguments)},W.prototype.time_event=function(e){E.isUndefined(e)?_("No event name provided to mixpanel.time_event"):this._event_is_disabled(e)||this.persistence.set_event_timer(e,(new Date).getTime())},W.prototype.register=function(e,t){this.persistence.register(e,t)},W.prototype.register_once=function(e,t,n){this.persistence.register_once(e,t,n)},W.prototype.unregister=function(e){this.persistence.unregister(e)},W.prototype._register_single=function(e,t){var n={};n[e]=t,this.register(n)},W.prototype.identify=function(e,t,n,r,o,i,a){e!==this.get_distinct_id()&&e!==this.get_property("__alias")&&(this.unregister("__alias"),this._register_single("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)},W.prototype.reset=function(){this.persistence.clear(),this._flags.identify_called=!1,this.register_once({distinct_id:E.UUID()},"")},W.prototype.get_distinct_id=function(){return this.get_property("distinct_id")},W.prototype.alias=function(e,t){if(e===this.get_property(P))return A("Attempting to create alias for existing People user - aborting."),-2;var n=this;return E.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)})):(_("alias matches current distinct_id - skipping api call."),this.identify(e),-1)},W.prototype.name_tag=function(e){this._register_single("mp_name_tag",e)},W.prototype.set_config=function(e){E.isObject(e)&&(E.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"))},W.prototype.get_config=function(e){return this.config[e]},W.prototype.get_property=function(e){return this.persistence.props[e]},W.prototype.toString=function(){var e=this.get_config("name");return e!==k&&(e=k+"."+e),e},W.prototype._event_is_disabled=function(e){return E.isBlockedUA(h)||this._flags.disable_all_events||E.include(this.__disabled_events,e)},W.prototype._check_and_handle_notifications=function(e){if(e&&!this._flags.identify_called&&!this.get_config("disable_notifications")){C("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])}))}},W.prototype._show_notification=function(e){new $(e,this).show()},G.prototype._init=function(e){this._mixpanel=e},G.prototype.set=function(e,t,n){var r={},o={};return E.isObject(e)?(E.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this),n=t):o[e]=t,this._get_config("save_referrer")&&this._mixpanel.persistence.update_referrer_info(f.referrer),o=E.extend({},E.info.people_properties(),this._mixpanel.persistence.get_referrer_info(),o),r.$set=o,this._send_request(r,n)},G.prototype.set_once=function(e,t,n){var r={},o={};return E.isObject(e)?(E.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this),n=t):o[e]=t,r[T]=o,this._send_request(r,n)},G.prototype.unset=function(e,t){var n={},r=[];return E.isArray(e)||(e=[e]),E.each(e,function(e){this._is_reserved_property(e)||r.push(e)},this),n.$unset=r,this._send_request(n,t)},G.prototype.increment=function(e,t,n){var r={},o={};return E.isObject(e)?(E.each(e,function(e,t){if(!this._is_reserved_property(t)){if(isNaN(parseFloat(e)))return void _("Invalid increment value passed to mixpanel.people.increment - must be a number");o[t]=e}},this),n=t):(E.isUndefined(t)&&(t=1),o[e]=t),r.$add=o,this._send_request(r,n)},G.prototype.append=function(e,t,n){var r={},o={};return E.isObject(e)?(E.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=e)},this),n=t):o[e]=t,r[D]=o,this._send_request(r,n)},G.prototype.union=function(e,t,n){var r={},o={};return E.isObject(e)?(E.each(e,function(e,t){this._is_reserved_property(t)||(o[t]=E.isArray(e)?e:[e])},this),n=t):o[e]=E.isArray(t)?t:[t],r.$union=o,this._send_request(r,n)},G.prototype.track_charge=function(e,t,n){if(E.isNumber(e)||(e=parseFloat(e),!isNaN(e)))return this.append("$transactions",E.extend({$amount:e},t),n);_("Invalid value passed to mixpanel.people.track_charge - must be a number")},G.prototype.clear_charges=function(e){return this.set("$transactions",[],e)},G.prototype.delete_user=function(){if(this._identify_called()){var e={$delete:this._mixpanel.get_distinct_id()};return this._send_request(e)}_("mixpanel.people.delete_user() requires you to call identify() first")},G.prototype.toString=function(){return this._mixpanel.toString()+".people"},G.prototype._send_request=function(e,t){e.$token=this._get_config("token"),e.$distinct_id=this._mixpanel.get_distinct_id();var n=E.encodeDates(e),r=E.truncate(n,255),o=E.JSONEncode(n),i=E.base64Encode(o);return this._identify_called()?(C("MIXPANEL PEOPLE REQUEST:"),C(r),this._mixpanel._send_request(this._get_config("api_host")+"/engage/",{data:i},this._mixpanel._prepare_callback(t,r)),r):(this._enqueue(e),E.isUndefined(t)||t(this._get_config("verbose")?{status:-1,error:null}:-1),r)},G.prototype._get_config=function(e){return this._mixpanel.get_config(e)},G.prototype._identify_called=function(){return!0===this._mixpanel._flags.identify_called},G.prototype._enqueue=function(e){"$set"in e?this._mixpanel.persistence._add_to_people_queue("$set",e):T in e?this._mixpanel.persistence._add_to_people_queue(T,e):S in e?this._mixpanel.persistence._add_to_people_queue(S,e):"$add"in e?this._mixpanel.persistence._add_to_people_queue("$add",e):D in e?this._mixpanel.persistence._add_to_people_queue(D,e):N in e?this._mixpanel.persistence._add_to_people_queue(N,e):_("Invalid call to _enqueue():",e)},G.prototype._flush_one_queue=function(e,t,n,r){var o=this,i=E.extend({},this._mixpanel.persistence._get_queue(e)),a=i;E.isUndefined(i)||!E.isObject(i)||E.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),E.isUndefined(n)||n(t,r)}))},G.prototype._flush=function(e,t,n,r,o,i){var a=this,u=this._mixpanel.persistence._get_queue(D);if(this._flush_one_queue("$set",this.set,e),this._flush_one_queue(T,this.set_once,r),this._flush_one_queue(S,this.unset,i,function(e){return E.keys(e)}),this._flush_one_queue("$add",this.increment,t),this._flush_one_queue(N,this.union,o),!E.isUndefined(u)&&E.isArray(u)&&u.length){for(var s,l=function(e,t){0===e&&a._mixpanel.persistence._add_to_people_queue(D,s),E.isUndefined(n)||n(e,t)},c=u.length-1;c>=0;c--)s=u.pop(),a.append(s,l);a._mixpanel.persistence.save()}},G.prototype._is_reserved_property=function(e){return"$distinct_id"===e||"$token"===e},W._Notification=function(e,t){E.bind_instance_methods(this),this.mixpanel=t,this.persistence=this.mixpanel.persistence,this.campaign_id=E.escapeHTML(e.id),this.message_id=E.escapeHTML(e.message_id),this.body=(E.escapeHTML(e.body)||"").replace(/\n/g,"
"),this.cta=E.escapeHTML(e.cta)||"Close",this.notif_type=E.escapeHTML(e.type)||"takeover",this.style=E.escapeHTML(e.style)||"light",this.title=E.escapeHTML(e.title)||"",this.video_width=$.VIDEO_WIDTH,this.video_height=$.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.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?$.NOTIF_WIDTH_MINI:$.NOTIF_WIDTH,this._set_client_config(),this.imgs_to_preload=this._init_image_html(),this._init_video()},($=W._Notification).ANIM_TIME=200,$.MARKUP_PREFIX="mixpanel-notification",$.BG_OPACITY=.6,$.NOTIF_TOP=25,$.NOTIF_START_TOP=200,$.NOTIF_WIDTH=388,$.NOTIF_WIDTH_MINI=420,$.NOTIF_HEIGHT_MINI=85,$.THUMB_BORDER_SIZE=5,$.THUMB_IMG_SIZE=60,$.THUMB_OFFSET=Math.round($.THUMB_IMG_SIZE/2),$.VIDEO_WIDTH=595,$.VIDEO_HEIGHT=334,$.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)},$.prototype.dismiss=E.safewrap(function(){this.marked_as_shown||this._mark_delivery({invisible:!0});var e=this.showing_video?this._get_el("video"):this._get_notification_display_el();if(this.use_transitions)this._remove_class("bg","visible"),this._add_class(e,"exiting"),setTimeout(this._remove_notification_el,$.ANIM_TIME);else{var t,n,r;this.mini?(t="right",n=20,r=-100):(t="top",n=$.NOTIF_TOP,r=$.NOTIF_START_TOP+$.NOTIF_TOP),this._animate_els([{el:this._get_el("bg"),attr:"opacity",start:$.BG_OPACITY,goal:0},{el:e,attr:"opacity",start:1,goal:0},{el:e,attr:t,start:n,goal:r}],$.ANIM_TIME,this._remove_notification_el)}}),$.prototype._add_class=E.safewrap(function(e,t){t=$.MARKUP_PREFIX+"-"+t,"string"==typeof e&&(e=this._get_el(e)),e.className?~(" "+e.className+" ").indexOf(" "+t+" ")||(e.className+=" "+t):e.className=t}),$.prototype._remove_class=E.safewrap(function(e,t){t=$.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]+$/,""))}),$.prototype._animate_els=E.safewrap(function(e,t,n,r){var o,i,a,u=this,s=!1,l=1*new Date;for(a=l-(r=r||l),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},$.prototype._init_notification_el=function(){var e="",t="",n="",r='
';if(this.notification_el=f.createElement("div"),this.notification_el.id=$.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="//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="//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="'+$.MARKUP_PREFIX+"-").replace(/id=\"/g,'id="'+$.MARKUP_PREFIX+"-")},$.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=$.THUMB_IMG_SIZE+2*$.THUMB_BORDER_SIZE,o=$.ANIM_TIME/1e3+"s";this.mini&&(e="none");var i={};i["@media only screen and (max-width: "+($.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:$.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:$.NOTIF_WIDTH+"px","margin-left":Math.round(-$.NOTIF_WIDTH/2)+"px","backface-visibility":"hidden",transform:"rotateY(0deg)",opacity:"0.0",top:$.NOTIF_START_TOP+"px",transition:"opacity "+o+", top "+o},"#takeover.visible":{opacity:"1.0",top:$.NOTIF_TOP+"px"},"#takeover.exiting":{opacity:"0.0",top:$.NOTIF_START_TOP+"px"},"#thumbspacer":{height:$.THUMB_OFFSET+"px"},"#thumbborder-wrapper":{position:"absolute",top:-$.THUMB_BORDER_SIZE+"px",left:$.NOTIF_WIDTH/2-$.THUMB_OFFSET-$.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:$.NOTIF_WIDTH/2-$.THUMB_OFFSET+"px",width:$.THUMB_IMG_SIZE+"px",height:$.THUMB_IMG_SIZE+"px",overflow:"hidden","z-index":"100","border-radius":$.THUMB_IMG_SIZE+"px"},"#mini":{position:"absolute",right:"20px",top:$.NOTIF_TOP+"px",width:this.notif_width+"px",height:2*$.NOTIF_HEIGHT_MINI+"px","margin-top":20-$.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:$.NOTIF_HEIGHT_MINI+"px","margin-top":$.NOTIF_HEIGHT_MINI+"px","border-radius":"3px",transition:"background-color "+o},"#mini-border":{height:$.NOTIF_HEIGHT_MINI+6+"px",width:$.NOTIF_WIDTH_MINI+6+"px",position:"absolute",top:"-3px",left:"-3px","margin-top":$.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:$.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:$.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:$.NOTIF_HEIGHT_MINI+"px","font-size":"16px","letter-spacing":"0.8px",color:this.style_vals.text_title},"#mini #body-text":{display:"table",height:$.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(//cdn.mxpnl.com/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(//cdn.mxpnl.com/site_media/images/icons/notifications/close-x-"+this.style+".png)","background-repeat":"no-repeat","background-position":"0px 25px"},"#button-play":{display:"inline-block",width:"30px",height:"60px","margin-left":"15px","background-image":"url(//cdn.mxpnl.com/site_media/images/icons/notifications/play-"+this.style+"-small.png)","background-repeat":"no-repeat","background-position":"0px 15px"},"a#button-link":{display:"inline-block","vertical-align":"top","text-align":"center","font-size":"17px","font-weight":"bold",overflow:"hidden","word-wrap":"break-word",color:this.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:$.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)&&E.extend(a,{"* html #overlay":{position:"absolute"},"* html #bg":{position:"absolute"},"html, body":{height:"100%"}}),this._browser_lte("ie",7)&&E.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 u=["backface-visibility","border-radius","box-shadow","opacity","perspective","transform","transform-style","transition"],s=["khtml","moz","ms","o","webkit"];for(var l in a)for(var c=0;c=33||this.browser_versions.firefox>=15)&&this.body_el&&o("backfaceVisibility")&&o("perspective")&&o("transform")},$.prototype._switch_to_video=E.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:$.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:$.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,$.ANIM_TIME)):e._animate_els(t,$.ANIM_TIME,i)}),$.prototype._track_event=function(e,t,n){this.campaign_id?(t=t||{},t=E.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()},$.prototype._yt_video_ready=E.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($.MARKUP_PREFIX+"-video-frame",{events:{onReady:function(i){var a=i.target,u=a.getDuration(),s=function(e){return("00"+e).slice(-2)},l=function(e){var t=Math.round(u-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)};l(0),e._video_progress_checker=r.setInterval(function(){var e=a.getCurrentTime();t.style.width=e/u*100+"%",l(e)},250),E.register_event(o,"click",function(e){var t=Math.max(0,e.pageX-o.getBoundingClientRect().left);a.seekTo(u*t/o.clientWidth,!0)})}}})}}),W.prototype.init=W.prototype.init,W.prototype.reset=W.prototype.reset,W.prototype.disable=W.prototype.disable,W.prototype.time_event=W.prototype.time_event,W.prototype.track=W.prototype.track,W.prototype.track_links=W.prototype.track_links,W.prototype.track_forms=W.prototype.track_forms,W.prototype.track_pageview=W.prototype.track_pageview,W.prototype.register=W.prototype.register,W.prototype.register_once=W.prototype.register_once,W.prototype.unregister=W.prototype.unregister,W.prototype.identify=W.prototype.identify,W.prototype.alias=W.prototype.alias,W.prototype.name_tag=W.prototype.name_tag,W.prototype.set_config=W.prototype.set_config,W.prototype.get_config=W.prototype.get_config,W.prototype.get_property=W.prototype.get_property,W.prototype.get_distinct_id=W.prototype.get_distinct_id,W.prototype.toString=W.prototype.toString,W.prototype._check_and_handle_notifications=W.prototype._check_and_handle_notifications,W.prototype._show_notification=W.prototype._show_notification,V.prototype.properties=V.prototype.properties,V.prototype.update_search_keyword=V.prototype.update_search_keyword,V.prototype.update_referrer_info=V.prototype.update_referrer_info,V.prototype.get_cross_subdomain=V.prototype.get_cross_subdomain,V.prototype.clear=V.prototype.clear,G.prototype.set=G.prototype.set,G.prototype.set_once=G.prototype.set_once,G.prototype.unset=G.prototype.unset,G.prototype.increment=G.prototype.increment,G.prototype.append=G.prototype.append,G.prototype.union=G.prototype.union,G.prototype.track_charge=G.prototype.track_charge,G.prototype.clear_charges=G.prototype.clear_charges,G.prototype.delete_user=G.prototype.delete_user,G.prototype.toString=G.prototype.toString,E.safewrap_class(W,["identify","_check_and_handle_notifications","_show_notification"]);var X={},Q=function(){O.init=function(e,t,n){if(n)return O[n]||(O[n]=X[n]=Y(e,t,n),O[n]._loaded()),O[n];var o=O;X[k]?o=X[k]:e&&((o=Y(e,t,k))._loaded(),X[k]=o),O=o,1===w&&(r[k]=O),E.each(X,function(e,t){t!==k&&(O[t]=e)}),O._=E}},J=function(){function e(){e.done||(e.done=!0,H=!0,L=!1,E.each(X,function(e){e._dom_loaded()}))}function t(){try{f.documentElement.doScroll("left")}catch(e){return void setTimeout(t,1)}e()}if(f.addEventListener)"complete"===f.readyState?e():f.addEventListener("DOMContentLoaded",e,!1);else if(f.attachEvent){f.attachEvent("onreadystatechange",e);var n=!1;try{n=null===r.frameElement}catch(e){}f.documentElement.doScroll&&n&&t()}E.register_event(r,"load",e,!0)},Z=function(e){var t=e.get_config("name");e.mp_counts=e.mp_counts||{},e.mp_counts.$__c=parseInt(E.cookie.get("mp_"+t+"__c"))||0;var n=function(){try{e.mp_counts=e.mp_counts||{},e.mp_counts.$__c=(e.mp_counts.$__c||0)+1,E.cookie.set("mp_"+t+"__c",e.mp_counts.$__c,1,!0)}catch(e){_(e)}};E.register_event(f,"submit",n),E.register_event(f,"change",n);var r=null;E.register_event(f,"mousedown",function(e){r=e.target}),E.register_event(f,"mouseup",function(e){e.target===r&&n()})},ee=(w=F,O=new W,Q(),O.init(),J(),O);e.exports=ee},function(e,t){Object.defineProperty(t,"__esModule",{value:!0});t.testData=!1,t.mixpanelId="d7b7059c7b41c6faf64cb0c694b8f6a3",t.mockData={doc:{},pageName:"Page Name",selectionCount:2,selection:[{name:"Rectangle 1",frame:{},idx:0,width:160,height:116},{name:"Rectangle 2",frame:{},idx:1,width:160,height:160}],windowTitle:"Rename Selected Layers"},t.mockHistory={renameHistory:["Hello","World","Item %N","icon %wX%h","Boo Hoo"],findHistory:[],replaceHistory:[]},t.exclamations=["Boo-yah!","Olé!","Hooray!","Great Success!","Abracadabra!","Geronimo!"]},function(e,t){var n={tr:{regexp:/\u0130|\u0049|\u0049\u0307/g,map:{"İ":"i",I:"ı","İ":"i"}},az:{regexp:/[\u0130]/g,map:{"İ":"i",I:"ı","İ":"i"}},lt:{regexp:/[\u0049\u004A\u012E\u00CC\u00CD\u0128]/g,map:{I:"i̇",J:"j̇","Į":"į̇","Ì":"i̇̀","Í":"i̇́","Ĩ":"i̇̃"}}};e.exports=function(e,t){var r=n[t];return e=null==e?"":String(e),r&&(e=e.replace(r.regexp,function(e){return r.map[e]})),e.toLowerCase()}},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){var r=n(111),o=n(78);e.exports=Object.keys||function(e){return r(e,o)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports={}},function(e,t,n){"use strict";var r=n(30),o=n.n(r),i=n(6),a=n.n(i),u=n(4),s=n.n(u),l=n(1),c=n.n(l),p=n(2),d=n.n(p),f=n(3),h=n.n(f),m=n(7),v=n.n(m),y=n(0),b=n.n(y),g=n(5),E=n.n(g),C=n(10),_=n.n(C),A=n(8),x=n(12),w=n(18),O={active:E.a.bool,disabled:E.a.bool,block:E.a.bool,onClick:E.a.func,componentClass:_.a,href:E.a.string,type:E.a.oneOf(["button","reset","submit"])},F=function(e){function t(){return c()(this,t),d()(this,e.apply(this,arguments))}return h()(t,e),t.prototype.renderAnchor=function(e,t){return b.a.createElement(w.a,s()({},e,{className:v()(t,e.disabled&&"disabled")}))},t.prototype.renderButton=function(e,t){var n=e.componentClass,r=a()(e,["componentClass"]),o=n||"button";return b.a.createElement(o,s()({},r,{type:r.type||"button",className:t}))},t.prototype.render=function(){var e,t=this.props,n=t.active,r=t.block,o=t.className,i=a()(t,["active","block","className"]),u=Object(A.splitBsProps)(i),l=u[0],c=u[1],p=s()({},Object(A.getClassSet)(l),(e={active:n},e[Object(A.prefix)(l,"block")]=r,e)),d=v()(o,p);return c.href?this.renderAnchor(c,d):this.renderButton(c,d)},t}(b.a.Component);F.propTypes=O,F.defaultProps={active:!1,block:!1,disabled:!1},t.a=Object(A.bsClass)("btn",Object(A.bsSizes)([x.c.LARGE,x.c.SMALL,x.c.XSMALL],Object(A.bsStyles)([].concat(o()(x.d),[x.e.DEFAULT,x.e.PRIMARY,x.e.LINK]),x.e.DEFAULT,F)))},function(e,t,n){"use strict";t.__esModule=!0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(274));t.default=(0,r.default)({shouldComponentUpdate:function(){return!this._notifying}},function(e,t,n,r,o){n&&(e._notifying=!0,n.call.apply(n,[e,r].concat(o)),e._notifying=!1),e._values[t]=r,e.unmounted||e.forceUpdate()}),e.exports=t.default},function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},e.exports=o},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return s});var r=n(98),o=n(99),i=n(35),a=Object.assign||function(e){for(var t=1;t>",s=a||r;if(null==n[r])return t?new Error("Required "+i+" `"+s+"` was not specified in `"+u+"`."):null;for(var l=arguments.length,c=Array(l>6?l-6:0),p=6;p>",u=i||n;if(null==t[n])return new Error("The "+o+" `"+u+"` is required to make `"+a+"` accessible for users of assistive technologies such as screen readers.");for(var s=arguments.length,l=Array(s>5?s-5:0),c=5;c may have only one child element"),this.unlisten=r.listen(function(){e.setState({match:e.computeMatch(r.location.pathname)})})},t.prototype.componentWillReceiveProps=function(e){i()(this.props.history===e.history,"You cannot change ")},t.prototype.componentWillUnmount=function(){this.unlisten()},t.prototype.render=function(){var e=this.props.children;return e?l.a.Children.only(e):null},t}(l.a.Component);f.propTypes={history:p.a.object.isRequired,children:p.a.node},f.contextTypes={router:p.a.object},f.childContextTypes={router:p.a.object.isRequired},t.a=f},function(e,t,n){"use strict";var r=n(176),o=n.n(r),i={},a=0;t.a=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"string"==typeof t&&(t={path:t});var n=t,r=n.path,u=void 0===r?"/":r,s=n.exact,l=void 0!==s&&s,c=n.strict,p=void 0!==c&&c,d=n.sensitive,f=function(e,t){var n=""+t.end+t.strict+t.sensitive,r=i[n]||(i[n]={});if(r[e])return r[e];var u=[],s={re:o()(e,u,t),keys:u};return a<1e4&&(r[e]=s,a++),s}(u,{end:l,strict:p,sensitive:void 0!==d&&d}),h=f.re,m=f.keys,v=h.exec(e);if(!v)return null;var y=v[0],b=v.slice(1),g=e===y;return l&&!g?null:{path:u,url:"/"===u&&""===y?"/":y,isExact:g,params:m.reduce(function(e,t,n){return e[t.name]=b[n],e},{})}}},function(e,t,n){"use strict";var r=n(9),o=n.n(r);t.a=function(){var e=null,t=[];return{setPrompt:function(t){return o()(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},confirmTransitionTo:function(t,n,r,i){if(null!=e){var a="function"==typeof e?e(t,n):e;"string"==typeof a?"function"==typeof r?r(a,i):(o()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==a)}else i(!0)},appendListener:function(e){var n=!0,r=function(){n&&e.apply(void 0,arguments)};return t.push(r),function(){n=!1,t=t.filter(function(e){return e!==r})}},notifyListeners:function(){for(var e=arguments.length,n=Array(e),r=0;r0?r:n)(e)}},function(e,t,n){var r=n(77)("keys"),o=n(51);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t,n){var r=n(22),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});e.exports=function(e){return o[e]||(o[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(74);e.exports=function(e){return Object(r(e))}},function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var o=r(n(225)),i=r(n(236)),a="function"==typeof i.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":typeof e};t.default="function"==typeof i.default&&"symbol"===a(o.default)?function(e){return void 0===e?"undefined":a(e)}:function(e){return e&&"function"==typeof i.default&&e.constructor===i.default&&e!==i.default.prototype?"symbol":void 0===e?"undefined":a(e)}},function(e,t){e.exports=!0},function(e,t,n){var r=n(28),o=n(229),i=n(78),a=n(76)("IE_PROTO"),u=function(){},s=function(){var e,t=n(110)("iframe"),r=i.length;for(t.style.display="none",n(230).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("