forked from segmentio/analytics.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analytics.min.js
3 lines (3 loc) · 75.8 KB
/
analytics.min.js
1
2
3
!function(){function require(path,parent,orig){var resolved=require.resolve(path);if(null==resolved){orig=orig||path;parent=parent||"root";var err=new Error('Failed to require "'+orig+'" from "'+parent+'"');err.path=orig;err.parent=parent;err.require=true;throw err}var module=require.modules[resolved];if(!module.exports){module.exports={};module.client=module.component=true;module.call(this,module.exports,require.relative(resolved),module)}return module.exports}require.modules={};require.aliases={};require.resolve=function(path){if(path.charAt(0)==="/")path=path.slice(1);var paths=[path,path+".js",path+".json",path+"/index.js",path+"/index.json"];for(var i=0;i<paths.length;i++){var path=paths[i];if(require.modules.hasOwnProperty(path))return path;if(require.aliases.hasOwnProperty(path))return require.aliases[path]}};require.normalize=function(curr,path){var segs=[];if("."!=path.charAt(0))return path;curr=curr.split("/");path=path.split("/");for(var i=0;i<path.length;++i){if(".."==path[i]){curr.pop()}else if("."!=path[i]&&""!=path[i]){segs.push(path[i])}}return curr.concat(segs).join("/")};require.register=function(path,definition){require.modules[path]=definition};require.alias=function(from,to){if(!require.modules.hasOwnProperty(from)){throw new Error('Failed to alias "'+from+'", it does not exist')}require.aliases[to]=from};require.relative=function(parent){var p=require.normalize(parent,"..");function lastIndexOf(arr,obj){var i=arr.length;while(i--){if(arr[i]===obj)return i}return-1}function localRequire(path){var resolved=localRequire.resolve(path);return require(resolved,parent,path)}localRequire.resolve=function(path){var c=path.charAt(0);if("/"==c)return path.slice(1);if("."==c)return require.normalize(p,path);var segs=parent.split("/");var i=lastIndexOf(segs,"deps")+1;if(!i)i=0;path=segs.slice(0,i+1).join("/")+"/deps/"+path;return path};localRequire.exists=function(path){return require.modules.hasOwnProperty(localRequire.resolve(path))};return localRequire};require.register("avetisk-defaults/index.js",function(exports,require,module){"use strict";var defaults=function(dest,src,recursive){for(var prop in src){if(recursive&&dest[prop]instanceof Object&&src[prop]instanceof Object){dest[prop]=defaults(dest[prop],src[prop],true)}else if(!(prop in dest)){dest[prop]=src[prop]}}return dest};module.exports=defaults});require.register("component-clone/index.js",function(exports,require,module){var type;try{type=require("type")}catch(e){type=require("type-component")}module.exports=clone;function clone(obj){switch(type(obj)){case"object":var copy={};for(var key in obj){if(obj.hasOwnProperty(key)){copy[key]=clone(obj[key])}}return copy;case"array":var copy=new Array(obj.length);for(var i=0,l=obj.length;i<l;i++){copy[i]=clone(obj[i])}return copy;case"regexp":var flags="";flags+=obj.multiline?"m":"";flags+=obj.global?"g":"";flags+=obj.ignoreCase?"i":"";return new RegExp(obj.source,flags);case"date":return new Date(obj.getTime());default:return obj}}});require.register("component-cookie/index.js",function(exports,require,module){var encode=encodeURIComponent;var decode=decodeURIComponent;module.exports=function(name,value,options){switch(arguments.length){case 3:case 2:return set(name,value,options);case 1:return get(name);default:return all()}};function set(name,value,options){options=options||{};var str=encode(name)+"="+encode(value);if(null==value)options.maxage=-1;if(options.maxage){options.expires=new Date(+new Date+options.maxage)}if(options.path)str+="; path="+options.path;if(options.domain)str+="; domain="+options.domain;if(options.expires)str+="; expires="+options.expires.toUTCString();if(options.secure)str+="; secure";document.cookie=str}function all(){return parse(document.cookie)}function get(name){return all()[name]}function parse(str){var obj={};var pairs=str.split(/ *; */);var pair;if(""==pairs[0])return obj;for(var i=0;i<pairs.length;++i){pair=pairs[i].split("=");obj[decode(pair[0])]=decode(pair[1])}return obj}});require.register("component-each/index.js",function(exports,require,module){var type=require("type");var has=Object.prototype.hasOwnProperty;module.exports=function(obj,fn){switch(type(obj)){case"array":return array(obj,fn);case"object":if("number"==typeof obj.length)return array(obj,fn);return object(obj,fn);case"string":return string(obj,fn)}};function string(obj,fn){for(var i=0;i<obj.length;++i){fn(obj.charAt(i),i)}}function object(obj,fn){for(var key in obj){if(has.call(obj,key)){fn(key,obj[key])}}}function array(obj,fn){for(var i=0;i<obj.length;++i){fn(obj[i],i)}}});require.register("component-event/index.js",function(exports,require,module){exports.bind=function(el,type,fn,capture){if(el.addEventListener){el.addEventListener(type,fn,capture||false)}else{el.attachEvent("on"+type,fn)}return fn};exports.unbind=function(el,type,fn,capture){if(el.removeEventListener){el.removeEventListener(type,fn,capture||false)}else{el.detachEvent("on"+type,fn)}return fn}});require.register("component-inherit/index.js",function(exports,require,module){module.exports=function(a,b){var fn=function(){};fn.prototype=b.prototype;a.prototype=new fn;a.prototype.constructor=a}});require.register("component-object/index.js",function(exports,require,module){var has=Object.prototype.hasOwnProperty;exports.keys=Object.keys||function(obj){var keys=[];for(var key in obj){if(has.call(obj,key)){keys.push(key)}}return keys};exports.values=function(obj){var vals=[];for(var key in obj){if(has.call(obj,key)){vals.push(obj[key])}}return vals};exports.merge=function(a,b){for(var key in b){if(has.call(b,key)){a[key]=b[key]}}return a};exports.length=function(obj){return exports.keys(obj).length};exports.isEmpty=function(obj){return 0==exports.length(obj)}});require.register("component-trim/index.js",function(exports,require,module){exports=module.exports=trim;function trim(str){return str.replace(/^\s*|\s*$/g,"")}exports.left=function(str){return str.replace(/^\s*/,"")};exports.right=function(str){return str.replace(/\s*$/,"")}});require.register("component-querystring/index.js",function(exports,require,module){var trim=require("trim");exports.parse=function(str){if("string"!=typeof str)return{};str=trim(str);if(""==str)return{};var obj={};var pairs=str.split("&");for(var i=0;i<pairs.length;i++){var parts=pairs[i].split("=");obj[parts[0]]=null==parts[1]?"":decodeURIComponent(parts[1])}return obj};exports.stringify=function(obj){if(!obj)return"";var pairs=[];for(var key in obj){pairs.push(encodeURIComponent(key)+"="+encodeURIComponent(obj[key]))}return pairs.join("&")}});require.register("component-type/index.js",function(exports,require,module){var toString=Object.prototype.toString;module.exports=function(val){switch(toString.call(val)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if(val===null)return"null";if(val===undefined)return"undefined";if(val&&val.nodeType===1)return"element";if(val===Object(val))return"object";return typeof val}});require.register("component-url/index.js",function(exports,require,module){exports.parse=function(url){var a=document.createElement("a");a.href=url;return{href:a.href,host:a.host||location.host,port:"0"===a.port||""===a.port?location.port:a.port,hash:a.hash,hostname:a.hostname||location.hostname,pathname:a.pathname.charAt(0)!="/"?"/"+a.pathname:a.pathname,protocol:!a.protocol||":"==a.protocol?location.protocol:a.protocol,search:a.search,query:a.search.slice(1)}};exports.isAbsolute=function(url){return 0==url.indexOf("//")||!!~url.indexOf("://")};exports.isRelative=function(url){return!exports.isAbsolute(url)};exports.isCrossDomain=function(url){url=exports.parse(url);return url.hostname!==location.hostname||url.port!==location.port||url.protocol!==location.protocol}});require.register("segmentio-after/index.js",function(exports,require,module){module.exports=function after(times,func){if(times<=0)return func();return function(){if(--times<1){return func.apply(this,arguments)}}}});require.register("segmentio-alias/index.js",function(exports,require,module){module.exports=function alias(object,aliases){for(var oldKey in aliases){var newKey=aliases[oldKey];if(object[oldKey]!==undefined){object[newKey]=object[oldKey];delete object[oldKey]}}}});require.register("component-bind/index.js",function(exports,require,module){var slice=[].slice;module.exports=function(obj,fn){if("string"==typeof fn)fn=obj[fn];if("function"!=typeof fn)throw new Error("bind() requires a function");var args=[].slice.call(arguments,2);return function(){return fn.apply(obj,args.concat(slice.call(arguments)))}}});require.register("segmentio-bind-all/index.js",function(exports,require,module){var bind=require("bind"),type=require("type");module.exports=function(obj){for(var key in obj){var val=obj[key];if(type(val)==="function")obj[key]=bind(obj,obj[key])}return obj}});require.register("segmentio-canonical/index.js",function(exports,require,module){module.exports=function canonical(){var tags=document.getElementsByTagName("link");for(var i=0,tag;tag=tags[i];i++){if("canonical"==tag.getAttribute("rel"))return tag.getAttribute("href")}}});require.register("segmentio-extend/index.js",function(exports,require,module){module.exports=function extend(object){var args=Array.prototype.slice.call(arguments,1);for(var i=0,source;source=args[i];i++){if(!source)continue;for(var property in source){object[property]=source[property]}}return object}});require.register("segmentio-is-email/index.js",function(exports,require,module){module.exports=function isEmail(string){return/.+\@.+\..+/.test(string)}});require.register("segmentio-is-meta/index.js",function(exports,require,module){module.exports=function isMeta(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return true;var which=e.which,button=e.button;if(!which&&button!==undefined){return!button&1&&!button&2&&button&4}else if(which===2){return true}return false}});require.register("component-json-fallback/index.js",function(exports,require,module){var JSON={};!function(){"use strict";function f(n){return n<10?"0"+n:n}if(typeof Date.prototype.toJSON!=="function"){Date.prototype.toJSON=function(key){return isFinite(this.valueOf())?this.getUTCFullYear()+"-"+f(this.getUTCMonth()+1)+"-"+f(this.getUTCDate())+"T"+f(this.getUTCHours())+":"+f(this.getUTCMinutes())+":"+f(this.getUTCSeconds())+"Z":null};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function(key){return this.valueOf()}}var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,escapable=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,gap,indent,meta={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},rep;function quote(string){escapable.lastIndex=0;return escapable.test(string)?'"'+string.replace(escapable,function(a){var c=meta[a];return typeof c==="string"?c:"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+string+'"'}function str(key,holder){var i,k,v,length,mind=gap,partial,value=holder[key];if(value&&typeof value==="object"&&typeof value.toJSON==="function"){value=value.toJSON(key)}if(typeof rep==="function"){value=rep.call(holder,key,value)}switch(typeof value){case"string":return quote(value);case"number":return isFinite(value)?String(value):"null";case"boolean":case"null":return String(value);case"object":if(!value){return"null"}gap+=indent;partial=[];if(Object.prototype.toString.apply(value)==="[object Array]"){length=value.length;for(i=0;i<length;i+=1){partial[i]=str(i,value)||"null"}v=partial.length===0?"[]":gap?"[\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"]":"["+partial.join(",")+"]";gap=mind;return v}if(rep&&typeof rep==="object"){length=rep.length;for(i=0;i<length;i+=1){if(typeof rep[i]==="string"){k=rep[i];v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}else{for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=str(k,value);if(v){partial.push(quote(k)+(gap?": ":":")+v)}}}}v=partial.length===0?"{}":gap?"{\n"+gap+partial.join(",\n"+gap)+"\n"+mind+"}":"{"+partial.join(",")+"}";gap=mind;return v}}if(typeof JSON.stringify!=="function"){JSON.stringify=function(value,replacer,space){var i;gap="";indent="";if(typeof space==="number"){for(i=0;i<space;i+=1){indent+=" "}}else if(typeof space==="string"){indent=space}rep=replacer;if(replacer&&typeof replacer!=="function"&&(typeof replacer!=="object"||typeof replacer.length!=="number")){throw new Error("JSON.stringify")}return str("",{"":value})}}if(typeof JSON.parse!=="function"){JSON.parse=function(text,reviver){var j;function walk(holder,key){var k,v,value=holder[key];if(value&&typeof value==="object"){for(k in value){if(Object.prototype.hasOwnProperty.call(value,k)){v=walk(value,k);if(v!==undefined){value[k]=v}else{delete value[k]}}}}return reviver.call(holder,key,value)}text=String(text);cx.lastIndex=0;if(cx.test(text)){text=text.replace(cx,function(a){return"\\u"+("0000"+a.charCodeAt(0).toString(16)).slice(-4)})}if(/^[\],:{}\s]*$/.test(text.replace(/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,"@").replace(/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,"]").replace(/(?:^|:|,)(?:\s*\[)+/g,""))){j=eval("("+text+")");return typeof reviver==="function"?walk({"":j},""):j}throw new SyntaxError("JSON.parse")}}}();module.exports=JSON});require.register("segmentio-json/index.js",function(exports,require,module){module.exports="undefined"==typeof JSON?require("json-fallback"):JSON});require.register("segmentio-load-date/index.js",function(exports,require,module){var time=new Date,perf=window.performance;if(perf&&perf.timing&&perf.timing.responseEnd){time=new Date(perf.timing.responseEnd)}module.exports=time});require.register("segmentio-load-script/index.js",function(exports,require,module){var type=require("type");module.exports=function loadScript(options,callback){if(!options)throw new Error("Cant load nothing...");if(type(options)==="string")options={src:options};var https=document.location.protocol==="https:";if(options.src&&options.src.indexOf("//")===0){options.src=https?"https:"+options.src:"http:"+options.src}if(https&&options.https)options.src=options.https;else if(!https&&options.http)options.src=options.http;var script=document.createElement("script");script.type="text/javascript";script.async=true;script.src=options.src;var firstScript=document.getElementsByTagName("script")[0];firstScript.parentNode.insertBefore(script,firstScript);if(callback&&type(callback)==="function"){if(script.addEventListener){script.addEventListener("load",callback,false)}else if(script.attachEvent){script.attachEvent("onreadystatechange",function(){if(/complete|loaded/.test(script.readyState))callback()})}}return script}});require.register("segmentio-type/index.js",function(exports,require,module){var toString=Object.prototype.toString;module.exports=function(val){switch(toString.call(val)){case"[object Function]":return"function";case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object String]":return"string"}if(val===null)return"null";if(val===undefined)return"undefined";if(val&&val.nodeType===1)return"element";if(val===Object(val))return"object";return typeof val}});require.register("segmentio-new-date/index.js",function(exports,require,module){var type=require("type");module.exports=function newDate(input){input=toMilliseconds(input);var date=new Date(input);if(isNaN(date.getTime())&&"string"===type(input)){var milliseconds=toMilliseconds(parseInt(input,10));date=new Date(milliseconds)}return date};function toMilliseconds(seconds){if("number"===type(seconds)&&seconds<315576e5)return seconds*1e3;return seconds}});require.register("segmentio-on-body/index.js",function(exports,require,module){var each=require("each");var body=false;var callbacks=[];module.exports=function onBody(callback){if(body){call(callback)}else{callbacks.push(callback)}};var interval=setInterval(function(){if(!document.body)return;body=true;each(callbacks,call);clearInterval(interval)},5);function call(callback){callback(document.body)}});require.register("segmentio-store.js/store.js",function(exports,require,module){var json=require("json"),store={},win=window,doc=win.document,localStorageName="localStorage",namespace="__storejs__",storage;store.disabled=false;store.set=function(key,value){};store.get=function(key){};store.remove=function(key){};store.clear=function(){};store.transact=function(key,defaultVal,transactionFn){var val=store.get(key);if(transactionFn==null){transactionFn=defaultVal;defaultVal=null}if(typeof val=="undefined"){val=defaultVal||{}}transactionFn(val);store.set(key,val)};store.getAll=function(){};store.serialize=function(value){return json.stringify(value)};store.deserialize=function(value){if(typeof value!="string"){return undefined}try{return json.parse(value)}catch(e){return value||undefined}};function isLocalStorageNameSupported(){try{return localStorageName in win&&win[localStorageName]}catch(err){return false}}if(isLocalStorageNameSupported()){storage=win[localStorageName];store.set=function(key,val){if(val===undefined){return store.remove(key)}storage.setItem(key,store.serialize(val));return val};store.get=function(key){return store.deserialize(storage.getItem(key))};store.remove=function(key){storage.removeItem(key)};store.clear=function(){storage.clear()};store.getAll=function(){var ret={};for(var i=0;i<storage.length;++i){var key=storage.key(i);ret[key]=store.get(key)}return ret}}else if(doc.documentElement.addBehavior){var storageOwner,storageContainer;try{storageContainer=new ActiveXObject("htmlfile");storageContainer.open();storageContainer.write("<s"+"cript>document.w=window</s"+'cript><iframe src="/favicon.ico"></iframe>');storageContainer.close();storageOwner=storageContainer.w.frames[0].document;storage=storageOwner.createElement("div")}catch(e){storage=doc.createElement("div");storageOwner=doc.body}function withIEStorage(storeFunction){return function(){var args=Array.prototype.slice.call(arguments,0);args.unshift(storage);storageOwner.appendChild(storage);storage.addBehavior("#default#userData");storage.load(localStorageName);var result=storeFunction.apply(store,args);storageOwner.removeChild(storage);return result}}var forbiddenCharsRegex=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g");function ieKeyFix(key){return key.replace(forbiddenCharsRegex,"___")}store.set=withIEStorage(function(storage,key,val){key=ieKeyFix(key);if(val===undefined){return store.remove(key)}storage.setAttribute(key,store.serialize(val));storage.save(localStorageName);return val});store.get=withIEStorage(function(storage,key){key=ieKeyFix(key);return store.deserialize(storage.getAttribute(key))});store.remove=withIEStorage(function(storage,key){key=ieKeyFix(key);storage.removeAttribute(key);storage.save(localStorageName)});store.clear=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;storage.load(localStorageName);for(var i=0,attr;attr=attributes[i];i++){storage.removeAttribute(attr.name)}storage.save(localStorageName)});store.getAll=withIEStorage(function(storage){var attributes=storage.XMLDocument.documentElement.attributes;var ret={};for(var i=0,attr;attr=attributes[i];++i){var key=ieKeyFix(attr.name);ret[attr.name]=store.deserialize(storage.getAttribute(key))}return ret})}try{store.set(namespace,namespace);if(store.get(namespace)!=namespace){store.disabled=true}store.remove(namespace)}catch(e){store.disabled=true}store.enabled=!store.disabled;module.exports=store});require.register("segmentio-top-domain/index.js",function(exports,require,module){var url=require("url");module.exports=function(urlStr){var host=url.parse(urlStr).hostname,topLevel=host.match(/[a-z0-9][a-z0-9\-]*[a-z0-9]\.[a-z\.]{2,6}$/i);return topLevel?topLevel[0]:host}});require.register("timoxley-next-tick/index.js",function(exports,require,module){"use strict";if(typeof setImmediate=="function"){module.exports=function(f){setImmediate(f)}}else if(typeof process!="undefined"&&typeof process.nextTick=="function"){module.exports=process.nextTick}else if(typeof window=="undefined"||window.ActiveXObject||!window.postMessage){module.exports=function(f){setTimeout(f)}}else{var q=[];window.addEventListener("message",function(){var i=0;while(i<q.length){try{q[i++]()}catch(e){q=q.slice(i);window.postMessage("tic!","*");throw e}}q.length=0},true);module.exports=function(fn){if(!q.length)window.postMessage("tic!","*");q.push(fn)}}});require.register("yields-prevent/index.js",function(exports,require,module){module.exports=function(e){e=e||window.event;return e.preventDefault?e.preventDefault():e.returnValue=false}});require.register("analytics/src/index.js",function(exports,require,module){var Analytics=require("./analytics"),providers=require("./providers");module.exports=new Analytics(providers)});require.register("analytics/src/analytics.js",function(exports,require,module){var after=require("after"),bind=require("event").bind,clone=require("clone"),cookie=require("./cookie"),each=require("each"),extend=require("extend"),isEmail=require("is-email"),isMeta=require("is-meta"),localStore=require("./localStore"),newDate=require("new-date"),size=require("object").length,preventDefault=require("prevent"),Provider=require("./provider"),providers=require("./providers"),querystring=require("querystring"),type=require("type"),url=require("url"),user=require("./user"),utils=require("./utils");module.exports=Analytics;function Analytics(Providers){var self=this;this.VERSION="0.11.10";each(Providers,function(Provider){self.addProvider(Provider)});var oldonload=window.onload;window.onload=function(){self.loaded=true;if("function"===type(oldonload))oldonload()}}extend(Analytics.prototype,{loaded:false,initialized:false,readied:false,callbacks:[],timeout:300,user:user,Provider:Provider,_providers:{},providers:[],addProvider:function(Provider){this._providers[Provider.prototype.name]=Provider},initialize:function(providers,options){options||(options={});var self=this;this.providers=[];this.initialized=false;this.readied=false;cookie.options(options.cookie);localStore.options(options.localStorage);user.options(options.user);user.load();var ready=after(size(providers),function(){self.readied=true;var callback;while(callback=self.callbacks.shift()){callback()}});each(providers,function(key,options){var Provider=self._providers[key];if(!Provider)return;self.providers.push(new Provider(options,ready,self))});var query=url.parse(window.location.href).query;var queries=querystring.parse(query);if(queries.ajs_uid)this.identify(queries.ajs_uid);if(queries.ajs_event)this.track(queries.ajs_event);this.initialized=true},ready:function(callback){if(type(callback)!=="function")return;if(this.readied)return callback();this.callbacks.push(callback)},identify:function(userId,traits,options,callback){if(!this.initialized)return;if(type(options)==="function"){callback=options;options=undefined}if(type(traits)==="function"){callback=traits;traits=undefined}if(type(userId)==="object"){if(traits&&type(traits)==="function")callback=traits;traits=userId;userId=undefined}if(userId===undefined||user===null)userId=user.id();var alias=user.update(userId,traits);traits=cleanTraits(userId,clone(user.traits()));each(this.providers,function(provider){if(provider.identify&&isEnabled(provider,options)){var args=[userId,clone(traits),clone(options)];if(provider.ready){provider.identify.apply(provider,args)}else{provider.enqueue("identify",args)}}});if(callback&&type(callback)==="function"){setTimeout(callback,this.timeout)}},group:function(groupId,properties,options,callback){if(!this.initialized)return;if(type(options)==="function"){callback=options;options=undefined}if(type(properties)==="function"){callback=properties;properties=undefined}properties=clone(properties)||{};if(properties.created)properties.created=newDate(properties.created);each(this.providers,function(provider){if(provider.group&&isEnabled(provider,options)){var args=[groupId,clone(properties),clone(options)];if(provider.ready){provider.group.apply(provider,args)}else{provider.enqueue("group",args)}}});if(callback&&type(callback)==="function"){setTimeout(callback,this.timeout)}},track:function(event,properties,options,callback){if(!this.initialized)return;if(type(options)==="function"){callback=options;options=undefined}if(type(properties)==="function"){callback=properties;properties=undefined}each(this.providers,function(provider){if(provider.track&&isEnabled(provider,options)){var args=[event,clone(properties),clone(options)];if(provider.ready){provider.track.apply(provider,args)}else{provider.enqueue("track",args)}}});if(callback&&type(callback)==="function"){setTimeout(callback,this.timeout)}},trackLink:function(links,event,properties){if(!links)return;if("element"===type(links))links=[links];var self=this,eventFunction="function"===type(event),propertiesFunction="function"===type(properties);each(links,function(el){bind(el,"click",function(e){var newEvent=eventFunction?event(el):event;var newProperties=propertiesFunction?properties(el):properties;self.track(newEvent,newProperties);if(el.href&&el.target!=="_blank"&&!isMeta(e)){preventDefault(e);setTimeout(function(){window.location.href=el.href},self.timeout)}})})},trackForm:function(form,event,properties){if(!form)return;if("element"===type(form))form=[form];var self=this,eventFunction="function"===type(event),propertiesFunction="function"===type(properties);each(form,function(el){var handler=function(e){var newEvent=eventFunction?event(el):event;var newProperties=propertiesFunction?properties(el):properties;self.track(newEvent,newProperties);preventDefault(e);setTimeout(function(){el.submit()},self.timeout)};var dom=window.jQuery||window.Zepto;if(dom){dom(el).submit(handler)}else{bind(el,"submit",handler)}})},pageview:function(url,options){if(!this.initialized)return;each(this.providers,function(provider){if(provider.pageview&&isEnabled(provider,options)){var args=[url];if(provider.ready){provider.pageview.apply(provider,args)}else{provider.enqueue("pageview",args)}}})},alias:function(newId,originalId,options){if(!this.initialized)return;if(type(originalId)==="object"){options=originalId;originalId=undefined}each(this.providers,function(provider){if(provider.alias&&isEnabled(provider,options)){var args=[newId,originalId];if(provider.ready){provider.alias.apply(provider,args)}else{provider.enqueue("alias",args)}}})},log:function(error,properties,options){if(!this.initialized)return;each(this.providers,function(provider){if(provider.log&&isEnabled(provider,options)){var args=[error,properties,options];if(provider.ready){provider.log.apply(provider,args)}else{provider.enqueue("log",args)}}})}});Analytics.prototype.trackClick=Analytics.prototype.trackLink;Analytics.prototype.trackSubmit=Analytics.prototype.trackForm;var isEnabled=function(provider,options){var enabled=true;if(!options||!options.providers)return enabled;var map=options.providers;if(map.all!==undefined)enabled=map.all;if(map.All!==undefined)enabled=map.All;var name=provider.name;if(map[name]!==undefined)enabled=map[name];return enabled};var cleanTraits=function(userId,traits){if(!traits.email&&isEmail(userId))traits.email=userId;if(!traits.name&&traits.firstName&&traits.lastName){traits.name=traits.firstName+" "+traits.lastName}if(traits.created)traits.created=newDate(traits.created);if(traits.company&&traits.company.created){traits.company.created=newDate(traits.company.created)}return traits}});require.register("analytics/src/cookie.js",function(exports,require,module){var bindAll=require("bind-all"),cookie=require("cookie"),clone=require("clone"),defaults=require("defaults"),json=require("json"),topDomain=require("top-domain");function Cookie(options){this.options(options)}Cookie.prototype.options=function(options){if(arguments.length===0)return this._options;options||(options={});var domain="."+topDomain(window.location.href);if(domain===".localhost")domain="";defaults(options,{maxage:31536e6,path:"/",domain:domain});this._options=options};Cookie.prototype.set=function(key,value){try{value=json.stringify(value);cookie(key,value,clone(this._options));return true}catch(e){return false}};Cookie.prototype.get=function(key){try{var value=cookie(key);value=value?json.parse(value):null;return value}catch(e){return null}};Cookie.prototype.remove=function(key){try{cookie(key,null,clone(this._options));return true}catch(e){return false}};module.exports=bindAll(new Cookie);module.exports.Cookie=Cookie});require.register("analytics/src/localStore.js",function(exports,require,module){var bindAll=require("bind-all"),defaults=require("defaults"),store=require("store");function Store(options){this.options(options)}Store.prototype.options=function(options){if(arguments.length===0)return this._options;options||(options={});defaults(options,{enabled:true});this.enabled=options.enabled&&store.enabled;this._options=options};Store.prototype.set=function(key,value){if(!this.enabled)return false;return store.set(key,value)};Store.prototype.get=function(key){if(!this.enabled)return null;return store.get(key)};Store.prototype.remove=function(key){if(!this.enabled)return false;return store.remove(key)};module.exports=bindAll(new Store)});require.register("analytics/src/provider.js",function(exports,require,module){var each=require("each"),extend=require("extend"),type=require("type");module.exports=Provider;function Provider(options,ready,analytics){var self=this;this.analytics=analytics;this.queue=[];this.ready=false;if(type(options)!=="object"){if(options===true){options={}}else if(this.key){var key=options;options={};options[this.key]=key}else{throw new Error("Couldnt resolve options.")}}this.options=extend({},this.defaults,options);var dequeue=function(){each(self.queue,function(call){var method=call.method,args=call.args;self[method].apply(self,args)});self.ready=true;self.queue=[];ready()};this.initialize.call(this,this.options,dequeue)}Provider.extend=function(properties){var parent=this;var child=function(){return parent.apply(this,arguments)};var Surrogate=function(){this.constructor=child};Surrogate.prototype=parent.prototype;child.prototype=new Surrogate;extend(child.prototype,properties);return child};extend(Provider.prototype,{options:{},key:undefined,initialize:function(options,ready){ready()},enqueue:function(method,args){this.queue.push({method:method,args:args})}})});require.register("analytics/src/user.js",function(exports,require,module){var bindAll=require("bind-all"),clone=require("clone"),cookie=require("./cookie"),defaults=require("defaults"),extend=require("extend"),localStore=require("./localStore");function User(options){this._id=null;this._traits={};this.options(options)}User.prototype.options=function(options){options||(options={});defaults(options,{persist:true});this.cookie(options.cookie);this.localStorage(options.localStorage);this.persist=options.persist};User.prototype.cookie=function(options){if(arguments.length===0)return this.cookieOptions;options||(options={});defaults(options,{key:"ajs_user_id",oldKey:"ajs_user"});this.cookieOptions=options};User.prototype.localStorage=function(options){if(arguments.length===0)return this.localStorageOptions;options||(options={});defaults(options,{key:"ajs_user_traits"});this.localStorageOptions=options};User.prototype.id=function(id){if(arguments.length===0)return this._id;this._id=id};User.prototype.traits=function(traits){if(arguments.length===0)return clone(this._traits);traits||(traits={});this._traits=traits};User.prototype.update=function(userId,traits){var alias=!this.id()&&userId&&this.persist;traits||(traits={});if(this.id()&&userId&&this.id()!==userId)this.traits(traits);
else this.traits(extend(this.traits(),traits));if(userId)this.id(userId);this.save();return alias};User.prototype.save=function(){if(!this.persist)return false;cookie.set(this.cookie().key,this.id());localStore.set(this.localStorage().key,this.traits());return true};User.prototype.load=function(){if(this.loadOldCookie())return this.toJSON();var id=cookie.get(this.cookie().key),traits=localStore.get(this.localStorage().key);this.id(id);this.traits(traits);return this.toJSON()};User.prototype.clear=function(){cookie.remove(this.cookie().key);localStore.remove(this.localStorage().key);this.id(null);this.traits({})};User.prototype.loadOldCookie=function(){var user=cookie.get(this.cookie().oldKey);if(!user)return false;this.id(user.id);this.traits(user.traits);cookie.remove(this.cookie().oldKey);return true};User.prototype.toJSON=function(){return{id:this.id(),traits:this.traits()}};module.exports=bindAll(new User)});require.register("analytics/src/utils.js",function(exports,require,module){exports.getUrlParameter=function(urlSearchParameter,paramKey){var params=urlSearchParameter.replace("?","").split("&");for(var i=0;i<params.length;i+=1){var param=params[i].split("=");if(param.length===2&¶m[0]===paramKey){return decodeURIComponent(param[1])}}}});require.register("analytics/src/providers/adroll.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"AdRoll",defaults:{advId:null,pixId:null},initialize:function(options,ready){window.adroll_adv_id=options.advId;window.adroll_pix_id=options.pixId;window.__adroll_loaded=true;load({http:"http://a.adroll.com/j/roundtrip.js",https:"https://s.adroll.com/j/roundtrip.js"},ready)}})});require.register("analytics/src/providers/amplitude.js",function(exports,require,module){var Provider=require("../provider"),alias=require("alias"),load=require("load-script");module.exports=Provider.extend({name:"Amplitude",key:"apiKey",defaults:{apiKey:null,pageview:false},initialize:function(options,ready){!function(e,t){var r=e.amplitude||{};r._q=[];function i(e){r[e]=function(){r._q.push([e].concat(Array.prototype.slice.call(arguments,0)))}}var s=["init","logEvent","setUserId","setGlobalUserProperties","setVersionName"];for(var c=0;c<s.length;c++){i(s[c])}e.amplitude=r}(window,document);load("https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-1.0-min.js");window.amplitude.init(options.apiKey);ready()},identify:function(userId,traits){if(userId)window.amplitude.setUserId(userId);if(traits)window.amplitude.setGlobalUserProperties(traits)},track:function(event,properties){window.amplitude.logEvent(event,properties)},pageview:function(url){if(!this.options.pageview)return;var properties={url:url||document.location.href,name:document.title};this.track("Loaded a Page",properties)}})});require.register("analytics/src/providers/bitdeli.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Bitdeli",defaults:{inputId:null,authToken:null,initialPageview:true},initialize:function(options,ready){window._bdq=window._bdq||[];window._bdq.push(["setAccount",options.inputId,options.authToken]);if(options.initialPageview)this.pageview();load("//d2flrkr957qc5j.cloudfront.net/bitdeli.min.js");ready()},identify:function(userId,traits){if(userId)window._bdq.push(["identify",userId]);if(traits)window._bdq.push(["set",traits])},track:function(event,properties){window._bdq.push(["track",event,properties])},pageview:function(url){window._bdq.push(["trackPageview",url])}})});require.register("analytics/src/providers/bugherd.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"BugHerd",key:"apiKey",defaults:{apiKey:null,showFeedbackTab:true},initialize:function(options,ready){if(!options.showFeedbackTab){window.BugHerdConfig={feedback:{hide:true}}}load("//www.bugherd.com/sidebarv2.js?apikey="+options.apiKey,ready)}})});require.register("analytics/src/providers/chartbeat.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Chartbeat",defaults:{domain:null,uid:null},initialize:function(options,ready){window._sf_async_config=options;var loadChartbeat=function(){if(!document.body)return setTimeout(loadChartbeat,5);window._sf_endpt=(new Date).getTime();load({https:"https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/js/chartbeat.js",http:"http://static.chartbeat.com/js/chartbeat.js"},ready)};loadChartbeat()},pageview:function(url){if(!window.pSUPERFLY)return;window.pSUPERFLY.virtualPage(url||window.location.pathname)}})});require.register("analytics/src/providers/clicktale.js",function(exports,require,module){var date=require("load-date"),Provider=require("../provider"),load=require("load-script"),onBody=require("on-body");module.exports=Provider.extend({name:"ClickTale",key:"projectId",defaults:{httpCdnUrl:"http://s.clicktale.net/WRe0.js",httpsCdnUrl:null,projectId:null,recordingRatio:.01,partitionId:null},initialize:function(options,ready){if(document.location.protocol==="https:"&&!options.httpsCdnUrl)return;window.WRInitTime=date.getTime();onBody(function(body){var div=document.createElement("div");div.setAttribute("id","ClickTaleDiv");div.setAttribute("style","display: none;");body.appendChild(div)});var onloaded=function(){window.ClickTale(options.projectId,options.recordingRatio,options.partitionId);ready()};load({http:options.httpCdnUrl,https:options.httpsCdnUrl},onloaded)},identify:function(userId,traits){if(window.ClickTaleSetUID)window.ClickTaleSetUID(userId);if(window.ClickTaleField){for(var traitKey in traits){window.ClickTaleField(traitKey,traits[traitKey])}}},track:function(event,properties){if(window.ClickTaleEvent)window.ClickTaleEvent(event)}})});require.register("analytics/src/providers/clicky.js",function(exports,require,module){var Provider=require("../provider"),user=require("../user"),extend=require("extend"),load=require("load-script");module.exports=Provider.extend({name:"Clicky",key:"siteId",defaults:{siteId:null},initialize:function(options,ready){window.clicky_site_ids=window.clicky_site_ids||[];window.clicky_site_ids.push(options.siteId);var userId=user.id(),traits=user.traits(),session={};if(userId)session.id=userId;extend(session,traits);window.clicky_custom={session:session};load("//static.getclicky.com/js",ready)},track:function(event,properties){window.clicky.log(window.location.href,event)}})});require.register("analytics/src/providers/comscore.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"comScore",key:"c2",defaults:{c1:"2",c2:null},initialize:function(options,ready){window._comscore=window._comscore||[];window._comscore.push(options);load({http:"http://b.scorecardresearch.com/beacon.js",https:"https://sb.scorecardresearch.com/beacon.js"},ready)}})});require.register("analytics/src/providers/crazyegg.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"CrazyEgg",key:"accountNumber",defaults:{accountNumber:null},initialize:function(options,ready){var accountPath=options.accountNumber.slice(0,4)+"/"+options.accountNumber.slice(4);load("//dnn506yrbagrg.cloudfront.net/pages/scripts/"+accountPath+".js?"+Math.floor((new Date).getTime()/36e5),ready)}})});require.register("analytics/src/providers/customerio.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"Customer.io",key:"siteId",defaults:{siteId:null},initialize:function(options,ready){var _cio=window._cio=window._cio||[];!function(){var a,b,c;a=function(f){return function(){_cio.push([f].concat(Array.prototype.slice.call(arguments,0)))}};b=["identify","track"];for(c=0;c<b.length;c++){_cio[b[c]]=a(b[c])}}();var script=load("https://assets.customer.io/assets/track.js");script.id="cio-tracker";script.setAttribute("data-site-id",options.siteId);ready()},identify:function(userId,traits){if(!userId)return;traits.id=userId;if(traits.created){traits.created_at=Math.floor(traits.created/1e3);delete traits.created}window._cio.identify(traits)},track:function(event,properties){window._cio.track(event,properties)}})});require.register("analytics/src/providers/errorception.js",function(exports,require,module){var Provider=require("../provider"),extend=require("extend"),load=require("load-script"),type=require("type");module.exports=Provider.extend({name:"Errorception",key:"projectId",defaults:{projectId:null,meta:true},initialize:function(options,ready){window._errs=window._errs||[options.projectId];load("//d15qhc0lu1ghnk.cloudfront.net/beacon.js");var oldOnError=window.onerror;window.onerror=function(){window._errs.push(arguments);if("function"===type(oldOnError)){oldOnError.apply(this,arguments)}};ready()},identify:function(userId,traits){if(!this.options.meta)return;window._errs.meta||(window._errs.meta={});traits.id=userId;extend(window._errs.meta,traits)}})});require.register("analytics/src/providers/foxmetrics.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"FoxMetrics",key:"appId",defaults:{appId:null},initialize:function(options,ready){var _fxm=window._fxm||{};window._fxm=_fxm.events||[];load("//d35tca7vmefkrc.cloudfront.net/scripts/"+options.appId+".js");ready()},identify:function(userId,traits){if(!userId)return;var firstName=traits.firstName,lastName=traits.lastName;if(!firstName&&traits.name)firstName=traits.name.split(" ")[0];if(!lastName&&traits.name)lastName=traits.name.split(" ")[1];window._fxm.push(["_fxm.visitor.profile",userId,firstName,lastName,traits.email,traits.address,undefined,undefined,traits])},track:function(event,properties){window._fxm.push([event,properties.category,properties])},pageview:function(url){window._fxm.push(["_fxm.pages.view",undefined,undefined,undefined,url,undefined])}})});require.register("analytics/src/providers/gauges.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Gauges",key:"siteId",defaults:{siteId:null},initialize:function(options,ready){window._gauges=window._gauges||[];var script=load("//secure.gaug.es/track.js");script.id="gauges-tracker";script.setAttribute("data-site-id",options.siteId);ready()},pageview:function(url){window._gauges.push(["track"])}})});require.register("analytics/src/providers/get-satisfaction.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script"),onBody=require("on-body");module.exports=Provider.extend({name:"Get Satisfaction",key:"widgetId",defaults:{widgetId:null},initialize:function(options,ready){var div=document.createElement("div");var id=div.id="getsat-widget-"+options.widgetId;onBody(function(body){body.appendChild(div)});load("https://loader.engage.gsfn.us/loader.js",function(){if(window.GSFN!==undefined){window.GSFN.loadWidget(options.widgetId,{containerId:id})}ready()})}})});require.register("analytics/src/providers/google-analytics.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script"),type=require("type"),url=require("url"),canonical=require("canonical");module.exports=Provider.extend({name:"Google Analytics",key:"trackingId",defaults:{anonymizeIp:false,domain:null,doubleClick:false,enhancedLinkAttribution:false,ignoreReferrer:null,initialPageview:true,siteSpeedSampleRate:null,trackingId:null,universalClient:false},initialize:function(options,ready){if(options.universalClient)this.initializeUniversal(options,ready);else this.initializeClassic(options,ready)},initializeClassic:function(options,ready){window._gaq=window._gaq||[];window._gaq.push(["_setAccount",options.trackingId]);if(options.domain){window._gaq.push(["_setDomainName",options.domain])}if(options.enhancedLinkAttribution){var protocol="https:"===document.location.protocol?"https:":"http:";var pluginUrl=protocol+"//www.google-analytics.com/plugins/ga/inpage_linkid.js";window._gaq.push(["_require","inpage_linkid",pluginUrl])}if(type(options.siteSpeedSampleRate)==="number"){window._gaq.push(["_setSiteSpeedSampleRate",options.siteSpeedSampleRate])}if(options.anonymizeIp){window._gaq.push(["_gat._anonymizeIp"])}if(options.ignoreReferrer){window._gaq.push(["_addIgnoredRef",options.ignoreReferrer])}if(options.initialPageview){var path,canon=canonical();if(canon)path=url.parse(canon).pathname;this.pageview(path)}if(options.doubleClick){load("//stats.g.doubleclick.net/dc.js",ready)}else{load({http:"http://www.google-analytics.com/ga.js",https:"https://ssl.google-analytics.com/ga.js"},ready)}},initializeUniversal:function(options,ready){var global=this.global="ga";window["GoogleAnalyticsObject"]=global;window[global]=window[global]||function(){(window[global].q=window[global].q||[]).push(arguments)};window[global].l=1*new Date;var createOpts={};if(options.domain)createOpts.cookieDomain=options.domain||"none";if(type(options.siteSpeedSampleRate)==="number")createOpts.siteSpeedSampleRate=options.siteSpeedSampleRate;if(options.anonymizeIp)ga("set","anonymizeIp",true);ga("create",options.trackingId,createOpts);if(options.initialPageview){var path,canon=canonical();if(canon)path=url.parse(canon).pathname;this.pageview(path)}load("//www.google-analytics.com/analytics.js");ready()},track:function(event,properties){properties||(properties={});var value;if(type(properties.value)==="number")value=Math.round(properties.value);if(this.options.universalClient){var opts={};if(properties.noninteraction)opts.nonInteraction=properties.noninteraction;window[this.global]("send","event",properties.category||"All",event,properties.label,Math.round(properties.revenue)||value,opts)}else{window._gaq.push(["_trackEvent",properties.category||"All",event,properties.label,Math.round(properties.revenue)||value,properties.noninteraction])}},pageview:function(url){if(this.options.universalClient){window[this.global]("send","pageview",url)}else{window._gaq.push(["_trackPageview",url])}}})});require.register("analytics/src/providers/gosquared.js",function(exports,require,module){var Provider=require("../provider"),user=require("../user"),load=require("load-script"),onBody=require("on-body");module.exports=Provider.extend({name:"GoSquared",key:"siteToken",defaults:{siteToken:null},initialize:function(options,ready){onBody(function(){var GoSquared=window.GoSquared={};GoSquared.acct=options.siteToken;GoSquared.q=[];window._gstc_lt=+new Date;GoSquared.VisitorName=user.id();GoSquared.Visitor=user.traits();load("//d1l6p2sc9645hc.cloudfront.net/tracker.js");ready()})},identify:function(userId,traits){if(userId)window.GoSquared.UserName=userId;if(traits)window.GoSquared.Visitor=traits},track:function(event,properties){window.GoSquared.q.push(["TrackEvent",event,properties||{}])},pageview:function(url){window.GoSquared.q.push(["TrackView",url])}})});require.register("analytics/src/providers/heap.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Heap",key:"apiKey",defaults:{apiKey:null},initialize:function(options,ready){window.heap=window.heap||[];window.heap.load=function(a){window._heapid=a;var b=document.createElement("script");b.type="text/javascript",b.async=!0,b.src=("https:"===document.location.protocol?"https:":"http:")+"//d36lvucg9kzous.cloudfront.net";var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c);var d=function(a){return function(){heap.push([a].concat(Array.prototype.slice.call(arguments,0)))}},e=["identify","track"];for(var f=0;f<e.length;f++)heap[e[f]]=d(e[f])};window.heap.load(options.apiKey);ready()},identify:function(userId,traits){window.heap.identify(traits)},track:function(event,properties){window.heap.track(event,properties)}})});require.register("analytics/src/providers/hittail.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"HitTail",key:"siteId",defaults:{siteId:null},initialize:function(options,ready){load("//"+options.siteId+".hittail.com/mlt.js",ready)}})});require.register("analytics/src/providers/hubspot.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"HubSpot",key:"portalId",defaults:{portalId:null},initialize:function(options,ready){if(!document.getElementById("hs-analytics")){window._hsq=window._hsq||[];var script=load("https://js.hubspot.com/analytics/"+Math.ceil(new Date/3e5)*3e5+"/"+options.portalId+".js");script.id="hs-analytics"}ready()},identify:function(userId,traits){window._hsq.push(["identify",traits])},track:function(event,properties){window._hsq.push(["trackEvent",event,properties])},pageview:function(url){window._hsq.push(["_trackPageview"])}})});require.register("analytics/src/providers/index.js",function(exports,require,module){module.exports=[require("./adroll"),require("./amplitude"),require("./bitdeli"),require("./bugherd"),require("./chartbeat"),require("./clicktale"),require("./clicky"),require("./comscore"),require("./crazyegg"),require("./customerio"),require("./errorception"),require("./foxmetrics"),require("./gauges"),require("./get-satisfaction"),require("./google-analytics"),require("./gosquared"),require("./heap"),require("./hittail"),require("./hubspot"),require("./improvely"),require("./intercom"),require("./keen-io"),require("./kissmetrics"),require("./klaviyo"),require("./livechat"),require("./lytics"),require("./mixpanel"),require("./olark"),require("./optimizely"),require("./perfect-audience"),require("./pingdom"),require("./preact"),require("./qualaroo"),require("./quantcast"),require("./sentry"),require("./snapengage"),require("./usercycle"),require("./userfox"),require("./uservoice"),require("./vero"),require("./visual-website-optimizer"),require("./woopra")]});require.register("analytics/src/providers/improvely.js",function(exports,require,module){var Provider=require("../provider"),alias=require("alias"),load=require("load-script");module.exports=Provider.extend({name:"Improvely",defaults:{domain:null,projectId:null},initialize:function(options,ready){window._improvely=window._improvely||[];window.improvely=window.improvely||{init:function(e,t){window._improvely.push(["init",e,t])},goal:function(e){window._improvely.push(["goal",e])},label:function(e){window._improvely.push(["label",e])}};load("//"+options.domain+".iljmp.com/improvely.js");window.improvely.init(options.domain,options.projectId);ready()},identify:function(userId,traits){if(userId)window.improvely.label(userId)},track:function(event,properties){properties||(properties={});properties.type=event;alias(properties,{revenue:"amount"});window.improvely.goal(properties)}})});require.register("analytics/src/providers/intercom.js",function(exports,require,module){var Provider=require("../provider"),extend=require("extend"),load=require("load-script"),isEmail=require("is-email");module.exports=Provider.extend({name:"Intercom",booted:false,key:"appId",defaults:{appId:null,activator:null,counter:true},initialize:function(options,ready){load("https://static.intercomcdn.com/intercom.v1.js",ready)},identify:function(userId,traits,options){if(!this.booted&&!userId)return;options||(options={});var Intercom=options.Intercom||options.intercom||{};traits.increments=Intercom.increments;traits.user_hash=Intercom.userHash||Intercom.user_hash;if(traits.created){traits.created_at=Math.floor(traits.created/1e3);delete traits.created}if(traits.company&&traits.company.created){traits.company.created_at=Math.floor(traits.company.created/1e3);delete traits.company.created}if(this.options.activator){traits.widget={activator:this.options.activator,use_counter:this.options.counter}}if(this.booted){window.Intercom("update",traits)}else{extend(traits,{app_id:this.options.appId,user_id:userId});window.Intercom("boot",traits)}this.booted=true},group:function(groupId,properties,options){properties.id=groupId;window.Intercom("update",{company:properties})}})});require.register("analytics/src/providers/keen-io.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Keen IO",defaults:{projectId:null,writeKey:null,readKey:null,pageview:true,initialPageview:true},initialize:function(options,ready){window.Keen=window.Keen||{configure:function(e){this._cf=e},addEvent:function(e,t,n,i){this._eq=this._eq||[],this._eq.push([e,t,n,i])},setGlobalProperties:function(e){this._gp=e},onChartsReady:function(e){this._ocrq=this._ocrq||[],this._ocrq.push(e)}};window.Keen.configure({projectId:options.projectId,writeKey:options.writeKey,readKey:options.readKey});load("//dc8na2hxrj29i.cloudfront.net/code/keen-2.1.0-min.js");if(options.initialPageview)this.pageview();ready()},identify:function(userId,traits){var globalUserProps={};if(userId)globalUserProps.userId=userId;if(traits)globalUserProps.traits=traits;if(userId||traits){window.Keen.setGlobalProperties(function(eventCollection){return{user:globalUserProps}})}},track:function(event,properties){window.Keen.addEvent(event,properties)},pageview:function(url){if(!this.options.pageview)return;var properties={url:url||document.location.href,name:document.title};this.track("Loaded a Page",properties)}})});require.register("analytics/src/providers/kissmetrics.js",function(exports,require,module){var Provider=require("../provider"),alias=require("alias"),load=require("load-script");module.exports=Provider.extend({name:"KISSmetrics",key:"apiKey",defaults:{apiKey:null},initialize:function(options,ready){window._kmq=window._kmq||[];load("//i.kissmetrics.com/i.js");load("//doug1izaerwt3.cloudfront.net/"+options.apiKey+".1.js");ready()},identify:function(userId,traits){if(userId)window._kmq.push(["identify",userId]);if(traits)window._kmq.push(["set",traits])},track:function(event,properties){if(properties){alias(properties,{revenue:"Billing Amount"})}window._kmq.push(["record",event,properties])},alias:function(newId,originalId){window._kmq.push(["alias",newId,originalId])}})});require.register("analytics/src/providers/klaviyo.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Klaviyo",key:"apiKey",defaults:{apiKey:null},initialize:function(options,ready){window._learnq=window._learnq||[];window._learnq.push(["account",options.apiKey]);load("//a.klaviyo.com/media/js/learnmarklet.js");ready()},identify:function(userId,traits){if(!userId)return;traits.$id=userId;window._learnq.push(["identify",traits])},track:function(event,properties){window._learnq.push(["track",event,properties])}})});require.register("analytics/src/providers/livechat.js",function(exports,require,module){var Provider=require("../provider"),each=require("each"),load=require("load-script");module.exports=Provider.extend({name:"LiveChat",key:"license",defaults:{license:null},initialize:function(options,ready){window.__lc={license:options.license};load("//cdn.livechatinc.com/tracking.js",ready)},identify:function(userId,traits){if(!window.LC_API)return;var variables=[];if(userId)variables.push({name:"User ID",value:userId});if(traits){each(traits,function(key,value){variables.push({name:key,value:value})})}window.LC_API.set_custom_variables(variables)}})});require.register("analytics/src/providers/lytics.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Lytics",key:"cid",defaults:{cid:null},initialize:function(options,ready){window.jstag=function(){var t={_q:[],_c:{cid:options.cid,url:"//c.lytics.io"},ts:(new Date).getTime()};t.send=function(){this._q.push(["ready","send",Array.prototype.slice.call(arguments)]);return this};return t}();load("//c.lytics.io/static/io.min.js");ready()},identify:function(userId,traits){traits._uid=userId;window.jstag.send(traits)},track:function(event,properties){properties._e=event;window.jstag.send(properties)},pageview:function(url){window.jstag.send()}})});require.register("analytics/src/providers/mixpanel.js",function(exports,require,module){var Provider=require("../provider"),alias=require("alias"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"Mixpanel",key:"token",defaults:{nameTag:true,people:false,token:null,pageview:false,initialPageview:false,cookieName:null},initialize:function(options,ready){!function(c,a){window.mixpanel=a;var b,d,h,e;a._i=[];a.init=function(b,c,f){function d(a,b){var c=b.split(".");2==c.length&&(a=a[c[0]],b=c[1]);a[b]=function(){a.push([b].concat(Array.prototype.slice.call(arguments,0)))}}var g=a;"undefined"!==typeof f?g=a[f]=[]:f="mixpanel";g.people=g.people||[];h=["disable","track","track_pageview","track_links","track_forms","register","register_once","unregister","identify","alias","name_tag","set_config","people.set","people.increment","people.track_charge","people.append"];for(e=0;e<h.length;e++)d(g,h[e]);a._i.push([b,c,f])};a.__SV=1.2;load("//cdn.mxpnl.com/libs/mixpanel-2.2.min.js",ready)}(document,window.mixpanel||[]);options.cookie_name=options.cookieName;window.mixpanel.init(options.token,options);if(options.initialPageview)this.pageview()},identify:function(userId,traits){alias(traits,{created:"$created",email:"$email",firstName:"$first_name",lastName:"$last_name",lastSeen:"$last_seen",name:"$name",username:"$username",phone:"$phone"});if(userId){window.mixpanel.identify(userId);if(this.options.nameTag)window.mixpanel.name_tag(traits&&traits.$email||userId)}if(traits){window.mixpanel.register(traits);if(this.options.people)window.mixpanel.people.set(traits)}},track:function(event,properties){window.mixpanel.track(event,properties);if(properties&&properties.revenue&&this.options.people){window.mixpanel.people.track_charge(properties.revenue)}},pageview:function(url){window.mixpanel.track_pageview(url);if(!this.options.pageview)return;var properties={url:url||document.location.href,name:document.title};this.track("Loaded a Page",properties)},alias:function(newId,originalId){if(window.mixpanel.get_distinct_id&&window.mixpanel.get_distinct_id()===newId)return;if(window.mixpanel.get_property&&window.mixpanel.get_property("$people_distinct_id")===newId)return;window.mixpanel.alias(newId,originalId)}})});require.register("analytics/src/providers/olark.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email");module.exports=Provider.extend({name:"Olark",key:"siteId",chatting:false,defaults:{siteId:null,identify:true,track:false,pageview:true},initialize:function(options,ready){window.olark||function(c){var f=window,d=document,l=f.location.protocol=="https:"?"https:":"http:",z=c.name,r="load";var nt=function(){f[z]=function(){(a.s=a.s||[]).push(arguments)};var a=f[z]._={},q=c.methods.length;while(q--){!function(n){f[z][n]=function(){f[z]("call",n,arguments)}}(c.methods[q])}a.l=c.loader;a.i=nt;a.p={0:+new Date};a.P=function(u){a.p[u]=new Date-a.p[0]};function s(){a.P(r);f[z](r)}f.addEventListener?f.addEventListener(r,s,false):f.attachEvent("on"+r,s);var ld=function(){function p(hd){hd="head";return["<",hd,"></",hd,"><",i," onl"+'oad="var d=',g,";d.getElementsByTagName('head')[0].",j,"(d.",h,"('script')).",k,"='",l,"//",a.l,"'",'"',"></",i,">"].join("")}var i="body",m=d[i];if(!m){return setTimeout(ld,100)}a.P(1);var j="appendChild",h="createElement",k="src",n=d[h]("div"),v=n[j](d[h](z)),b=d[h]("iframe"),g="document",e="domain",o;n.style.display="none";m.insertBefore(n,m.firstChild).id=z;b.frameBorder="0";b.id=z+"-loader";if(/MSIE[ ]+6/.test(navigator.userAgent)){b.src="javascript:false"}b.allowTransparency="true";v[j](b);try{b.contentWindow[g].open()}catch(w){c[e]=d[e];o="javascript:var d="+g+".open();d.domain='"+d.domain+"';";b[k]=o+"void(0);"}try{var t=b.contentWindow[g];t.write(p());t.close()}catch(x){b[k]=o+'d.write("'+p().replace(/"/g,String.fromCharCode(92)+'"')+'");d.close();'}a.P(2)};ld()};nt()}({loader:"static.olark.com/jsclient/loader0.js",name:"olark",methods:["configure","extend","declare","identify"]});window.olark.identify(options.siteId);var self=this;window.olark("api.box.onExpand",function(){self.chatting=true});window.olark("api.box.onShrink",function(){self.chatting=false});ready()},identify:function(userId,traits){if(!this.options.identify)return;var email=traits.email,name=traits.name||traits.firstName,phone=traits.phone,nickname=name||email||userId;if(name&&email)nickname+=" ("+email+")";window.olark("api.visitor.updateCustomFields",traits);if(email)window.olark("api.visitor.updateEmailAddress",{emailAddress:email});if(name)window.olark("api.visitor.updateFullName",{fullName:name});if(phone)window.olark("api.visitor.updatePhoneNumber",{phoneNumber:phone});if(nickname)window.olark("api.chat.updateVisitorNickname",{snippet:nickname})},track:function(event,properties){if(!this.options.track||!this.chatting)return;window.olark("api.chat.sendNotificationToOperator",{body:'visitor triggered "'+event+'"'})},pageview:function(url){if(!this.options.pageview||!this.chatting)return;window.olark("api.chat.sendNotificationToOperator",{body:"looking at "+window.location.href})}})});require.register("analytics/src/providers/optimizely.js",function(exports,require,module){var each=require("each"),nextTick=require("next-tick"),Provider=require("../provider");module.exports=Provider.extend({name:"Optimizely",defaults:{variations:true},initialize:function(options,ready,analytics){window.optimizely=window.optimizely||[];if(options.variations){var self=this;nextTick(function(){self.replay()})}ready()},track:function(event,properties){if(properties&&properties.revenue)properties.revenue=properties.revenue*100;window.optimizely.push(["trackEvent",event,properties])},replay:function(){var data=window.optimizely.data;if(!data)return;var experiments=data.experiments,variationNamesMap=data.state.variationNamesMap;var traits={};each(variationNamesMap,function(experimentId,variation){traits["Experiment: "+experiments[experimentId].name]=variation});this.analytics.identify(traits)}})});require.register("analytics/src/providers/perfect-audience.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Perfect Audience",key:"siteId",defaults:{siteId:null},initialize:function(options,ready){window._pa||(window._pa={});load("//tag.perfectaudience.com/serve/"+options.siteId+".js",ready)},track:function(event,properties){window._pa.track(event,properties)}})});require.register("analytics/src/providers/pingdom.js",function(exports,require,module){var date=require("load-date"),Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Pingdom",key:"id",defaults:{id:null},initialize:function(options,ready){window._prum=[["id",options.id],["mark","firstbyte",date.getTime()]];load("//rum-static.pingdom.net/prum.min.js",ready)}})});require.register("analytics/src/providers/preact.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"Preact",key:"projectCode",defaults:{projectCode:null},initialize:function(options,ready){var _lnq=window._lnq=window._lnq||[];_lnq.push(["_setCode",options.projectCode]);load("//d2bbvl6dq48fa6.cloudfront.net/js/ln-2.4.min.js");ready()},identify:function(userId,traits){if(!userId)return;if(traits.created){traits.created_at=Math.floor(traits.created/1e3);delete traits.created
}window._lnq.push(["_setPersonData",{name:traits.name,email:traits.email,uid:userId,properties:traits}])},group:function(groupId,properties){if(!groupId)return;properties.id=groupId;window._lnq.push(["_setAccount",properties])},track:function(event,properties){properties||(properties={});var special={name:event};if(properties.revenue){special.revenue=properties.revenue*100;delete properties.revenue}if(properties.note){special.note=properties.note;delete properties.note}window._lnq.push(["_logEvent",special,properties])}})});require.register("analytics/src/providers/qualaroo.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"Qualaroo",defaults:{customerId:null,siteToken:null,track:false},initialize:function(options,ready){window._kiq=window._kiq||[];load("//s3.amazonaws.com/ki.js/"+options.customerId+"/"+options.siteToken+".js");ready()},identify:function(userId,traits){var identity=traits.email||userId;if(identity)window._kiq.push(["identify",identity]);if(traits)window._kiq.push(["set",traits])},track:function(event,properties){if(!this.options.track)return;var traits={};traits["Triggered: "+event]=true;this.identify(null,traits)}})});require.register("analytics/src/providers/quantcast.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Quantcast",key:"pCode",defaults:{pCode:null},initialize:function(options,ready){window._qevents=window._qevents||[];window._qevents.push({qacct:options.pCode});load({http:"http://edge.quantserve.com/quant.js",https:"https://secure.quantserve.com/quant.js"},ready)}})});require.register("analytics/src/providers/sentry.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script");module.exports=Provider.extend({name:"Sentry",key:"config",defaults:{config:null},initialize:function(options,ready){load("//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js",function(){window.Raven.config(options.config).install();ready()})},identify:function(userId,traits){traits.id=userId;window.Raven.setUser(traits)},log:function(error,properties){window.Raven.captureException(error,properties)}})});require.register("analytics/src/providers/snapengage.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"SnapEngage",key:"apiKey",defaults:{apiKey:null},initialize:function(options,ready){load("//commondatastorage.googleapis.com/code.snapengage.com/js/"+options.apiKey+".js",ready)},identify:function(userId,traits,options){if(!traits.email)return;window.SnapABug.setUserEmail(traits.email)}})});require.register("analytics/src/providers/usercycle.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script"),user=require("../user");module.exports=Provider.extend({name:"USERcycle",key:"key",defaults:{key:null},initialize:function(options,ready){window._uc=window._uc||[];window._uc.push(["_key",options.key]);load("//api.usercycle.com/javascripts/track.js");ready()},identify:function(userId,traits){if(userId)window._uc.push(["uid",userId]);window._uc.push(["action","came_back",traits])},track:function(event,properties){window._uc.push(["action",event,properties])}})});require.register("analytics/src/providers/userfox.js",function(exports,require,module){var Provider=require("../provider"),extend=require("extend"),load=require("load-script"),isEmail=require("is-email");module.exports=Provider.extend({name:"userfox",key:"clientId",defaults:{clientId:null},initialize:function(options,ready){window._ufq=window._ufq||[];load("//d2y71mjhnajxcg.cloudfront.net/js/userfox-stable.js");ready()},identify:function(userId,traits){if(!traits.email)return;window._ufq.push(["init",{clientId:this.options.clientId,email:traits.email}]);if(traits.created){traits.signup_date=(traits.created.getTime()/1e3).toString();delete traits.created;window._ufq.push(["track",traits])}}})});require.register("analytics/src/providers/uservoice.js",function(exports,require,module){var Provider=require("../provider"),load=require("load-script"),alias=require("alias"),clone=require("clone");module.exports=Provider.extend({name:"UserVoice",defaults:{widgetId:null,forumId:null,showTab:true,mode:"full",primaryColor:"#cc6d00",linkColor:"#007dbf",defaultMode:"support",tabLabel:"Feedback & Support",tabColor:"#cc6d00",tabPosition:"middle-right",tabInverted:false},initialize:function(options,ready){window.UserVoice=window.UserVoice||[];load("//widget.uservoice.com/"+options.widgetId+".js",ready);var optionsClone=clone(options);alias(optionsClone,{forumId:"forum_id",primaryColor:"primary_color",linkColor:"link_color",defaultMode:"default_mode",tabLabel:"tab_label",tabColor:"tab_color",tabPosition:"tab_position",tabInverted:"tab_inverted"});window.showClassicWidget=function(showWhat){window.UserVoice.push([showWhat||"showLightbox","classic_widget",optionsClone])};if(options.showTab){window.showClassicWidget("showTab")}},identify:function(userId,traits){traits.id=userId;window.UserVoice.push(["setCustomFields",traits])}})});require.register("analytics/src/providers/vero.js",function(exports,require,module){var Provider=require("../provider"),isEmail=require("is-email"),load=require("load-script");module.exports=Provider.extend({name:"Vero",key:"apiKey",defaults:{apiKey:null},initialize:function(options,ready){window._veroq=window._veroq||[];window._veroq.push(["init",{api_key:options.apiKey}]);load("//d3qxef4rp70elm.cloudfront.net/m.js");ready()},identify:function(userId,traits){if(!userId||!traits.email)return;traits.id=userId;window._veroq.push(["user",traits])},track:function(event,properties){window._veroq.push(["track",event,properties])}})});require.register("analytics/src/providers/visual-website-optimizer.js",function(exports,require,module){var each=require("each"),inherit=require("inherit"),nextTick=require("next-tick"),Provider=require("../provider");module.exports=VWO;function VWO(){Provider.apply(this,arguments)}inherit(VWO,Provider);VWO.prototype.name="Visual Website Optimizer";VWO.prototype.defaults={replay:true};VWO.prototype.initialize=function(options,ready){if(options.replay)this.replay();ready()};VWO.prototype.replay=function(){var analytics=this.analytics;nextTick(function(){experiments(function(err,traits){if(traits)analytics.identify(traits)})})};function experiments(callback){enqueue(function(){var data={};var ids=window._vwo_exp_ids;if(!ids)return callback();each(ids,function(id){var name=variation(id);if(name)data["Experiment: "+id]=name});callback(null,data)})}function enqueue(fn){window._vis_opt_queue||(window._vis_opt_queue=[]);window._vis_opt_queue.push(fn)}function variation(id){var experiments=window._vwo_exp;if(!experiments)return null;var experiment=experiments[id];var variationId=experiment.combination_chosen;return variationId?experiment.comb_n[variationId]:null}});require.register("analytics/src/providers/woopra.js",function(exports,require,module){var Provider=require("../provider"),each=require("each"),extend=require("extend"),isEmail=require("is-email"),load=require("load-script"),type=require("type"),user=require("../user");module.exports=Provider.extend({name:"Woopra",key:"domain",defaults:{domain:null},initialize:function(options,ready){var self=this;window.woopraReady=function(tracker){tracker.setDomain(self.options.domain);tracker.setIdleTimeout(3e5);var userId=user.id(),traits=user.traits();addTraits(userId,traits,tracker);tracker.track();ready();return false};load("//static.woopra.com/js/woopra.js")},identify:function(userId,traits){if(!window.woopraTracker)return;addTraits(userId,traits,window.woopraTracker)},track:function(event,properties){if(!window.woopraTracker)return;properties||(properties={});properties.name=event;window.woopraTracker.pushEvent(properties)}});function addTraits(userId,traits,tracker){if(userId)traits.id=userId;each(traits,function(key,value){if("string"===type(value))tracker.addVisitorProperty(key,value)})}});require.alias("avetisk-defaults/index.js","analytics/deps/defaults/index.js");require.alias("avetisk-defaults/index.js","defaults/index.js");require.alias("component-clone/index.js","analytics/deps/clone/index.js");require.alias("component-clone/index.js","clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-cookie/index.js","analytics/deps/cookie/index.js");require.alias("component-cookie/index.js","cookie/index.js");require.alias("component-each/index.js","analytics/deps/each/index.js");require.alias("component-each/index.js","each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("component-event/index.js","analytics/deps/event/index.js");require.alias("component-event/index.js","event/index.js");require.alias("component-inherit/index.js","analytics/deps/inherit/index.js");require.alias("component-inherit/index.js","inherit/index.js");require.alias("component-object/index.js","analytics/deps/object/index.js");require.alias("component-object/index.js","object/index.js");require.alias("component-querystring/index.js","analytics/deps/querystring/index.js");require.alias("component-querystring/index.js","querystring/index.js");require.alias("component-trim/index.js","component-querystring/deps/trim/index.js");require.alias("component-type/index.js","analytics/deps/type/index.js");require.alias("component-type/index.js","type/index.js");require.alias("component-url/index.js","analytics/deps/url/index.js");require.alias("component-url/index.js","url/index.js");require.alias("segmentio-after/index.js","analytics/deps/after/index.js");require.alias("segmentio-after/index.js","after/index.js");require.alias("segmentio-alias/index.js","analytics/deps/alias/index.js");require.alias("segmentio-alias/index.js","alias/index.js");require.alias("segmentio-bind-all/index.js","analytics/deps/bind-all/index.js");require.alias("segmentio-bind-all/index.js","analytics/deps/bind-all/index.js");require.alias("segmentio-bind-all/index.js","bind-all/index.js");require.alias("component-bind/index.js","segmentio-bind-all/deps/bind/index.js");require.alias("component-type/index.js","segmentio-bind-all/deps/type/index.js");require.alias("segmentio-bind-all/index.js","segmentio-bind-all/index.js");require.alias("segmentio-canonical/index.js","analytics/deps/canonical/index.js");require.alias("segmentio-canonical/index.js","canonical/index.js");require.alias("segmentio-extend/index.js","analytics/deps/extend/index.js");require.alias("segmentio-extend/index.js","extend/index.js");require.alias("segmentio-is-email/index.js","analytics/deps/is-email/index.js");require.alias("segmentio-is-email/index.js","is-email/index.js");require.alias("segmentio-is-meta/index.js","analytics/deps/is-meta/index.js");require.alias("segmentio-is-meta/index.js","is-meta/index.js");require.alias("segmentio-json/index.js","analytics/deps/json/index.js");require.alias("segmentio-json/index.js","json/index.js");require.alias("component-json-fallback/index.js","segmentio-json/deps/json-fallback/index.js");require.alias("segmentio-load-date/index.js","analytics/deps/load-date/index.js");require.alias("segmentio-load-date/index.js","load-date/index.js");require.alias("segmentio-load-script/index.js","analytics/deps/load-script/index.js");require.alias("segmentio-load-script/index.js","load-script/index.js");require.alias("component-type/index.js","segmentio-load-script/deps/type/index.js");require.alias("segmentio-new-date/index.js","analytics/deps/new-date/index.js");require.alias("segmentio-new-date/index.js","new-date/index.js");require.alias("segmentio-type/index.js","segmentio-new-date/deps/type/index.js");require.alias("segmentio-on-body/index.js","analytics/deps/on-body/index.js");require.alias("segmentio-on-body/index.js","on-body/index.js");require.alias("component-each/index.js","segmentio-on-body/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("segmentio-store.js/store.js","analytics/deps/store/store.js");require.alias("segmentio-store.js/store.js","analytics/deps/store/index.js");require.alias("segmentio-store.js/store.js","store/index.js");require.alias("segmentio-json/index.js","segmentio-store.js/deps/json/index.js");require.alias("component-json-fallback/index.js","segmentio-json/deps/json-fallback/index.js");require.alias("segmentio-store.js/store.js","segmentio-store.js/index.js");require.alias("segmentio-top-domain/index.js","analytics/deps/top-domain/index.js");require.alias("segmentio-top-domain/index.js","analytics/deps/top-domain/index.js");require.alias("segmentio-top-domain/index.js","top-domain/index.js");require.alias("component-url/index.js","segmentio-top-domain/deps/url/index.js");require.alias("segmentio-top-domain/index.js","segmentio-top-domain/index.js");require.alias("timoxley-next-tick/index.js","analytics/deps/next-tick/index.js");require.alias("timoxley-next-tick/index.js","next-tick/index.js");require.alias("yields-prevent/index.js","analytics/deps/prevent/index.js");require.alias("yields-prevent/index.js","prevent/index.js");require.alias("analytics/src/index.js","analytics/index.js");if(typeof exports=="object"){module.exports=require("analytics")}else if(typeof define=="function"&&define.amd){define(function(){return require("analytics")})}else{this["analytics"]=require("analytics")}}();