forked from segmentio/analytics.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
analytics.min.js
4 lines (4 loc) · 108 KB
/
analytics.min.js
1
2
3
4
(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.toGMTString();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-indexof/index.js",function(exports,require,module){module.exports=function(arr,obj){if(arr.indexOf)return arr.indexOf(obj);for(var i=0;i<arr.length;++i){if(arr[i]===obj)return i}return-1}});require.register("component-emitter/index.js",function(exports,require,module){var index=require("indexof");module.exports=Emitter;function Emitter(obj){if(obj)return mixin(obj)}function mixin(obj){for(var key in Emitter.prototype){obj[key]=Emitter.prototype[key]}return obj}Emitter.prototype.on=Emitter.prototype.addEventListener=function(event,fn){this._callbacks=this._callbacks||{};(this._callbacks[event]=this._callbacks[event]||[]).push(fn);return this};Emitter.prototype.once=function(event,fn){var self=this;this._callbacks=this._callbacks||{};function on(){self.off(event,on);fn.apply(this,arguments)}fn._off=on;this.on(event,on);return this};Emitter.prototype.off=Emitter.prototype.removeListener=Emitter.prototype.removeAllListeners=Emitter.prototype.removeEventListener=function(event,fn){this._callbacks=this._callbacks||{};if(0==arguments.length){this._callbacks={};return this}var callbacks=this._callbacks[event];if(!callbacks)return this;if(1==arguments.length){delete this._callbacks[event];return this}var i=index(callbacks,fn._off||fn);if(~i)callbacks.splice(i,1);return this};Emitter.prototype.emit=function(event){this._callbacks=this._callbacks||{};var args=[].slice.call(arguments,1),callbacks=this._callbacks[event];if(callbacks){callbacks=callbacks.slice(0);for(var i=0,len=callbacks.length;i<len;++i){callbacks[i].apply(this,args)}}return this};Emitter.prototype.listeners=function(event){this._callbacks=this._callbacks||{};return this._callbacks[event]||[]};Emitter.prototype.hasListeners=function(event){return!!this.listeners(event).length}});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){if(str.trim)return str.trim();return str.replace(/^\s*|\s*$/g,"")}exports.left=function(str){if(str.trimLeft)return str.trimLeft();return str.replace(/^\s*/,"")};exports.right=function(str){if(str.trimRight)return str.trimRight();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,port:a.port,hash:a.hash,hostname:a.hostname,pathname:a.pathname,protocol:a.protocol,search:a.search,query:a.search.slice(1)}};exports.isAbsolute=function(url){if(0==url.indexOf("//"))return true;if(~url.indexOf("://"))return true;return false};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("ianstormtaylor-callback/index.js",function(exports,require,module){var next=require("next-tick");module.exports=callback;function callback(fn){if("function"===typeof fn)fn()}callback.async=function(fn,wait){if("function"!==typeof fn)return;if(!wait)return next(fn);setTimeout(fn,wait)};callback.sync=callback});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){try{var bind=require("bind");var type=require("type")}catch(e){var bind=require("bind-component");var type=require("type-component")}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("ianstormtaylor-bind/index.js",function(exports,require,module){var bind=require("bind"),bindAll=require("bind-all");module.exports=exports=bind;exports.all=bindAll;exports.methods=bindMethods;function bindMethods(obj,methods){methods=[].slice.call(arguments,1);for(var i=0,method;method=methods[i];i++){obj[method]=bind(obj,obj[method])}return obj}});require.register("ianstormtaylor-is-empty/index.js",function(exports,require,module){module.exports=isEmpty;var has=Object.prototype.hasOwnProperty;function isEmpty(val){if(null==val)return true;if("number"==typeof val)return 0===val;if(undefined!==val.length)return 0===val.length;for(var key in val)if(has.call(val,key))return false;return true}});require.register("ianstormtaylor-is/index.js",function(exports,require,module){var isEmpty=require("is-empty");try{var typeOf=require("type")}catch(e){var typeOf=require("component-type")}var types=["arguments","array","boolean","date","element","function","null","number","object","regexp","string","undefined"];for(var i=0,type;type=types[i];i++)exports[type]=generate(type);exports.fn=exports["function"];exports.empty=isEmpty;exports.nan=function(val){return exports.number(val)&&val!=val};function generate(type){return function(value){return type===typeOf(value)}}});require.register("jkroso-type/index.js",function(exports,require,module){var toString=Object.prototype.toString;module.exports=function(v){return typeof v==="object"?types[toString.call(v)]:typeof v};var types={"[object Function]":"function","[object Date]":"date","[object RegExp]":"regexp","[object Arguments]":"arguments","[object Array]":"array","[object String]":"string","[object Null]":"null","[object Undefined]":"undefined","[object Number]":"number","[object Boolean]":"boolean","[object Object]":"object","[object Text]":"textnode","[object Uint8Array]":"8bit-array","[object Uint16Array]":"16bit-array","[object Uint32Array]":"32bit-array","[object Uint8ClampedArray]":"8bit-array","[object Error]":"error"};if(typeof window!="undefined"){for(var el in window)if(/^HTML\w+Element$/.test(el)){types["[object "+el+"]"]="element"}}module.exports.types=types});require.register("jkroso-equals/index.js",function(exports,require,module){var type=require("type");module.exports=function(){var i=arguments.length-1;while(i>0){if(!compare(arguments[i],arguments[--i]))return false}return true};function compare(a,b,memos){if(a===b)return true;var fnA=types[type(a)];if(fnA!==types[type(b)])return false;return fnA?fnA(a,b,memos):false}var types={};types.number=function(a){return a!==a};types["function"]=function(a,b,memos){return a.toString()===b.toString()&&types.object(a,b,memos)&&compare(a.prototype,b.prototype)};types.date=function(a,b){return+a===+b};types.regexp=function(a,b){return a.toString()===b.toString()};types.element=function(a,b){return a.outerHTML===b.outerHTML};types.textnode=function(a,b){return a.textContent===b.textContent};function memoGaurd(fn){return function(a,b,memos){if(!memos)return fn(a,b,[]);var i=memos.length,memo;while(memo=memos[--i]){if(memo[0]===a&&memo[1]===b)return true}return fn(a,b,memos)}}types["arguments"]=types.array=memoGaurd(compareArrays);function compareArrays(a,b,memos){var i=a.length;if(i!==b.length)return false;memos.push([a,b]);while(i--){if(!compare(a[i],b[i],memos))return false}return true}types.object=memoGaurd(compareObjects);function compareObjects(a,b,memos){var ka=getEnumerableProperties(a);var kb=getEnumerableProperties(b);var i=ka.length;if(i!==kb.length)return false;ka.sort();kb.sort();while(i--)if(ka[i]!==kb[i])return false;memos.push([a,b]);i=ka.length;while(i--){var key=ka[i];if(!compare(a[key],b[key],memos))return false}return true}function getEnumerableProperties(object){var result=[];for(var k in object)if(k!=="constructor"){result.push(k)}return result}module.exports.compare=compare});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){var type=require("type");module.exports=alias;function alias(obj,method){switch(type(method)){case"object":return aliasByDictionary(obj,method);case"function":return aliasByFunction(obj,method)}}function aliasByDictionary(obj,aliases){for(var key in aliases){if(undefined===obj[key])continue;obj[aliases[key]]=obj[key];delete obj[key]}}function aliasByFunction(obj,convert){for(var key in obj){obj[convert(key)]=obj[key];delete obj[key]}}});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-convert-dates/index.js",function(exports,require,module){var is=require("is");try{var clone=require("clone")}catch(e){var clone=require("clone-component")}module.exports=convertDates;function convertDates(obj,convert){obj=clone(obj);for(var key in obj){var val=obj[key];if(is.date(val))obj[key]=convert(val);if(is.object(val))obj[key]=convertDates(val,convert)}return obj}});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=isEmail;var matcher=/.+\@.+\..+/;function isEmail(string){return matcher.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("segmentio-isodate/index.js",function(exports,require,module){var matcher=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;exports.parse=function(iso){var numericKeys=[1,5,6,7,8,11,12];var arr=matcher.exec(iso);var offset=0;if(!arr)return new Date(iso);for(var i=0,val;val=numericKeys[i];i++){arr[val]=parseInt(arr[val],10)||0}arr[2]=parseInt(arr[2],10)||1;arr[3]=parseInt(arr[3],10)||1;arr[2]--;if(arr[8])arr[8]=(arr[8]+"00").substring(0,3);if(arr[4]==" "){offset=(new Date).getTimezoneOffset()}else if(arr[9]!=="Z"&&arr[10]){offset=arr[11]*60+arr[12];if("+"==arr[10])offset=0-offset}var millis=Date.UTC(arr[1],arr[2],arr[3],arr[5],arr[6]+offset,arr[7],arr[8]);return new Date(millis)};exports.is=function(string,strict){if(strict&&false===/^\d{4}-\d{2}-\d{2}/.test(string))return false;return matcher.test(string)}});require.register("segmentio-isodate-traverse/index.js",function(exports,require,module){var clone=require("clone"),each=require("each"),is=require("is"),isodate=require("isodate");module.exports=traverse;function traverse(obj,strict){obj=clone(obj);if(strict===undefined)strict=true;each(obj,function(key,val){if(isodate.is(val,strict)){obj[key]=isodate.parse(val)}else if(is.object(val)){obj[key]=traverse(val)}});return obj}});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:"||document.location.protocol==="chrome-extension:";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",function(event){callback(null,event)},false);script.addEventListener("error",function(event){callback(new Error("Failed to load the script."),event)},false)}else if(script.attachEvent){script.attachEvent("onreadystatechange",function(event){if(/complete|loaded/.test(script.readyState)){callback(null,event)}})}}return script}});require.register("segmentio-new-date/lib/index.js",function(exports,require,module){var is=require("is");var isodate=require("isodate");var milliseconds=require("./milliseconds");var seconds=require("./seconds");module.exports=function newDate(val){if(is.date(val))return val;if(is.number(val))return new Date(toMs(val));if(isodate.is(val))return isodate.parse(val);if(milliseconds.is(val))return milliseconds.parse(val);if(seconds.is(val))return seconds.parse(val);return new Date(val)};function toMs(num){if(num<315576e5)return num*1e3;return num}});require.register("segmentio-new-date/lib/milliseconds.js",function(exports,require,module){var matcher=/\d{13}/;exports.is=function(string){return matcher.test(string)};exports.parse=function(millis){millis=parseInt(millis,10);return new Date(millis)}});require.register("segmentio-new-date/lib/seconds.js",function(exports,require,module){var matcher=/\d{10}/;exports.is=function(string){return matcher.test(string)};exports.parse=function(seconds){var millis=parseInt(seconds,10)*1e3;return new Date(millis)}});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-on-error/index.js",function(exports,require,module){module.exports=onError;var callbacks=[];if("function"==typeof window.onerror)callbacks.push(window.onerror);window.onerror=handler;function handler(){for(var i=0,fn;fn=callbacks[i];i++)fn.apply(this,arguments)}function onError(fn){callbacks.push(fn);if(window.onerror!=handler){callbacks.push(window.onerror);window.onerror=handler}}});require.register("segmentio-store.js/store.js",function(exports,require,module){(function(win){var store={},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;if(typeof module!="undefined"&&module.exports){module.exports=store}else if(typeof define==="function"&&define.amd){define(store)}else{win.store=store}})(this.window||global)});require.register("segmentio-to-unix-timestamp/index.js",function(exports,require,module){module.exports=toUnixTimestamp;function toUnixTimestamp(date){return Math.floor(date.getTime()/1e3)}});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("yields-slug/index.js",function(exports,require,module){module.exports=function(str,options){options||(options={});return str.toLowerCase().replace(options.replace||/[^a-z0-9]/g," ").replace(/^ +| +$/g,"").replace(/ +/g,options.separator||"-")}});require.register("visionmedia-debug/index.js",function(exports,require,module){if("undefined"==typeof window){module.exports=require("./lib/debug")}else{module.exports=require("./debug")}});require.register("visionmedia-debug/debug.js",function(exports,require,module){module.exports=debug;function debug(name){if(!debug.enabled(name))return function(){};return function(fmt){fmt=coerce(fmt);var curr=new Date;var ms=curr-(debug[name]||curr);debug[name]=curr;fmt=name+" "+fmt+" +"+debug.humanize(ms);window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}}debug.names=[];debug.skips=[];debug.enable=function(name){try{localStorage.debug=name}catch(e){}var split=(name||"").split(/[\s,]+/),len=split.length;for(var i=0;i<len;i++){name=split[i].replace("*",".*?");if(name[0]==="-"){debug.skips.push(new RegExp("^"+name.substr(1)+"$"))}else{debug.names.push(new RegExp("^"+name+"$"))}}};debug.disable=function(){debug.enable("")};debug.humanize=function(ms){var sec=1e3,min=60*1e3,hour=60*min;if(ms>=hour)return(ms/hour).toFixed(1)+"h";if(ms>=min)return(ms/min).toFixed(1)+"m";if(ms>=sec)return(ms/sec|0)+"s";return ms+"ms"};debug.enabled=function(name){for(var i=0,len=debug.skips.length;i<len;i++){if(debug.skips[i].test(name)){return false}}for(var i=0,len=debug.names.length;i<len;i++){if(debug.names[i].test(name)){return true}}return false};function coerce(val){if(val instanceof Error)return val.stack||val.message;return val}try{if(window.localStorage)debug.enable(localStorage.debug)}catch(e){}});require.register("analytics/lib/index.js",function(exports,require,module){var Analytics=require("./analytics"),bind=require("bind");module.exports=new Analytics;
bind.methods(module.exports,"init","initialize","identify","user","group","track","trackClick","trackLink","trackSubmit","trackForm","pageview","alias","ready","_options","_callback","_invoke","_parseQuery")});require.register("analytics/lib/analytics.js",function(exports,require,module){var after=require("after"),bind=require("event").bind,callback=require("callback"),clone=require("clone"),cookie=require("./cookie"),createIntegration=require("./integration"),debug=require("debug"),each=require("each"),Emitter=require("emitter"),group=require("./group"),Integrations=require("./integrations"),is=require("is"),isEmail=require("is-email"),isMeta=require("is-meta"),newDate=require("new-date"),prevent=require("prevent"),querystring=require("querystring"),size=require("object").length,store=require("./store"),traverse=require("isodate-traverse"),user=require("./user");module.exports=exports=Analytics;exports.VERSION=Analytics.prototype.VERSION="0.18.4";exports.Integrations=Analytics.prototype.Integrations=Integrations;exports.createIntegration=Analytics.prototype.createIntegration=createIntegration;exports.addIntegration=Analytics.prototype.addIntegration=function(Integration){var name=Integration.prototype.name;Integrations[name]=Integration;return this};function Analytics(){this._callbacks=[];this._integrations={};this._readied=false;this._timeout=300;this._user=user}Emitter(Analytics.prototype);Analytics.prototype.init=Analytics.prototype.initialize=function(settings,options){settings||(settings={});options||(options={});this._options(options);this._readied=false;this._integrations={};user.load();group.load();var self=this;each(settings,function(name){var Integration=self.Integrations[name];if(!Integration)delete settings[name]});var ready=after(size(settings),function(){self._readied=true;var callback;while(callback=self._callbacks.shift())callback();self.emit("ready")});each(settings,function(name,options){var Integration=self.Integrations[name];var integration=new Integration(clone(options),ready,self);self._integrations[name]=integration});this._parseQuery();this.initialized=true;this.emit("initialize");return this};Analytics.prototype.identify=function(id,traits,options,fn){if(is.fn(options))fn=options,options=undefined;if(is.fn(traits))fn=traits,traits=undefined;if(is.object(id))options=traits,traits=id,id=user.id();user.identify(id,traits);id=user.id();traits=cleanTraits(id,user.traits());this._invoke("identify",id,traits,options);this._callback(fn);return this};Analytics.prototype.user=function(){return user};Analytics.prototype.group=function(id,properties,options,fn){if(0===arguments.length)return group;if(is.fn(options))fn=options,options=undefined;if(is.fn(properties))fn=properties,properties=undefined;if(is.object(id))options=properties,properties=id,id=group.id();group.identify(id,properties);id=group.id();properties=group.properties();if(properties.created)properties.created=newDate(properties.created);this._invoke("group",id,properties,options);this._callback(fn);return this};Analytics.prototype.track=function(event,properties,options,fn){if(is.fn(options))fn=options,options=undefined;if(is.fn(properties))fn=properties,properties=undefined;properties=traverse(clone(properties))||{};this._invoke("track",event,properties,options);this._callback(fn);return this};Analytics.prototype.trackClick=Analytics.prototype.trackLink=function(links,event,properties){if(!links)return this;if(is.element(links))links=[links];var self=this;each(links,function(el){bind(el,"click",function(e){var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;self.track(ev,props);if(el.href&&el.target!=="_blank"&&!isMeta(e)){prevent(e);self._callback(function(){window.location.href=el.href})}})});return this};Analytics.prototype.trackSubmit=Analytics.prototype.trackForm=function(forms,event,properties){if(!forms)return this;if(is.element(forms))forms=[forms];var self=this;each(forms,function(el){function handler(e){prevent(e);var ev=is.fn(event)?event(el):event;var props=is.fn(properties)?properties(el):properties;self.track(ev,props);self._callback(function(){el.submit()})}var $=window.jQuery||window.Zepto;if($){$(el).submit(handler)}else{bind(el,"submit",handler)}});return this};Analytics.prototype.pageview=function(url,options){this._invoke("pageview",url,options);return this};Analytics.prototype.alias=function(newId,oldId,options){if(is.object(oldId))options=oldId,oldId=undefined;this._invoke("alias",newId,oldId,options);return this};Analytics.prototype.ready=function(fn){if(!is.fn(fn))return this;this._readied?callback.async(fn):this._callbacks.push(fn);return this};Analytics.prototype.timeout=function(timeout){this._timeout=timeout};Analytics.prototype.debug=function(str){if(0==arguments.length||str){debug.enable("analytics:"+(str||"*"))}else{debug.disable()}};Analytics.prototype._options=function(options){options||(options={});cookie.options(options.cookie);store.options(options.localStorage);user.options(options.user);group.options(options.group);return this};Analytics.prototype._callback=function(fn){callback.async(fn,this._timeout);return this};Analytics.prototype._invoke=function(method,args){args=[].slice.call(arguments,1);args.unshift(method);var options=args[args.length-1];each(this._integrations,function(name,integration){if(!isEnabled(integration,options))return;var clonedArgs=clone(args);integration.invoke.apply(integration,clonedArgs)});this.emit.apply(this,clone(args));return this};Analytics.prototype._parseQuery=function(){var q=querystring.parse(window.location.search);if(q.ajs_uid)this.identify(q.ajs_uid);if(q.ajs_event)this.track(q.ajs_event);return this};function isEnabled(integration,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=integration.name;if(map[name]!==undefined)enabled=map[name];return enabled}function cleanTraits(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/lib/cookie.js",function(exports,require,module){var bind=require("bind"),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=bind.all(new Cookie);module.exports.Cookie=Cookie});require.register("analytics/lib/store.js",function(exports,require,module){var bind=require("bind"),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=bind.all(new Store);module.exports.Store=Store});require.register("analytics/lib/integrations.js",function(exports,require,module){var each=require("each");var integrations=["adroll","amplitude","awesm","awesomatic","bugherd","chartbeat","clicktale","clicky","comscore","crazy-egg","customerio","evergage","errorception","foxmetrics","gauges","get-satisfaction","google-analytics","gosquared","heap","hittail","hubspot","improvely","inspectlet","intercom","keen-io","kissmetrics","klaviyo","leadlander","livechat","lytics","mixpanel","mousestats","olark","optimizely","perfect-audience","pingdom","preact","qualaroo","quantcast","rollbar","sentry","snapengage","spinnakr","tapstream","trakio","usercycle","userfox","uservoice","vero","visual-website-optimizer","woopra","yandex-metrica"];each(integrations,function(slug){var Integration=require("./integrations/"+slug);exports[Integration.prototype.name]=Integration})});require.register("analytics/lib/user.js",function(exports,require,module){var debug=require("debug")("analytics:user"),bind=require("bind"),clone=require("clone"),cookie=require("./cookie"),defaults=require("defaults"),extend=require("extend"),store=require("./store"),traverse=require("isodate-traverse");function User(options){this.options(options);this.id(null);this.traits({})}User.prototype.options=function(options){if(arguments.length===0)return this._options;options||(options={});defaults(options,{persist:true,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}});this._options=options};User.prototype.id=function(id){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(id)}};User.prototype._getId=function(){var ret=this._options.persist?cookie.get(this._options.cookie.key):this._id;return ret===undefined?null:ret};User.prototype._setId=function(id){if(this._options.persist){cookie.set(this._options.cookie.key,id)}else{this._id=id}};User.prototype.traits=function(traits){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(traits)}};User.prototype._getTraits=function(){var ret=this._options.persist?store.get(this._options.localStorage.key):this._traits;return ret?traverse(clone(ret)):{}};User.prototype._setTraits=function(traits){traits||(traits={});if(this._options.persist){store.set(this._options.localStorage.key,traits)}else{this._traits=traits}};User.prototype.identify=function(id,traits){traits||(traits={});var current=this.id();if(current===null||current===id)traits=extend(this.traits(),traits);if(id)this.id(id);debug("identify %o, %o",id,traits);this.traits(traits);this.save()};User.prototype.save=function(){if(!this._options.persist)return false;cookie.set(this._options.cookie.key,this.id());store.set(this._options.localStorage.key,this.traits());return true};User.prototype.logout=function(){this.id(null);this.traits({});cookie.remove(this._options.cookie.key);store.remove(this._options.localStorage.key)};User.prototype.reset=function(){this.logout();this.options({})};User.prototype.load=function(){if(this._loadOldCookie())return;this.id(cookie.get(this._options.cookie.key));this.traits(store.get(this._options.localStorage.key))};User.prototype._loadOldCookie=function(){var user=cookie.get(this._options.cookie.oldKey);if(!user)return false;this.id(user.id);this.traits(user.traits);cookie.remove(this._options.cookie.oldKey);return true};module.exports=bind.all(new User);module.exports.User=User});require.register("analytics/lib/group.js",function(exports,require,module){var debug=require("debug")("analytics:group"),bind=require("bind"),clone=require("clone"),cookie=require("./cookie"),defaults=require("defaults"),extend=require("extend"),store=require("./store"),traverse=require("isodate-traverse");function Group(options){this.options(options);this.id(null);this.properties({})}Group.prototype.options=function(options){if(arguments.length===0)return this._options;options||(options={});defaults(options,{persist:true,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}});this._options=options};Group.prototype.id=function(id){switch(arguments.length){case 0:return this._getId();case 1:return this._setId(id)}};Group.prototype._getId=function(){var ret=this._options.persist?cookie.get(this._options.cookie.key):this._id;return ret===undefined?null:ret};Group.prototype._setId=function(id){if(this._options.persist){cookie.set(this._options.cookie.key,id)}else{this._id=id}};Group.prototype.properties=function(properties){switch(arguments.length){case 0:return this._getProperties();case 1:return this._setProperties(properties)}};Group.prototype._getProperties=function(){var ret=this._options.persist?store.get(this._options.localStorage.key):this._properties;return ret?traverse(clone(ret)):{}};Group.prototype._setProperties=function(properties){properties||(properties={});if(this._options.persist){store.set(this._options.localStorage.key,properties)}else{this._properties=properties}};Group.prototype.identify=function(id,properties){properties||(properties={});var current=this.id();if(current===null||current===id)properties=extend(this.properties(),properties);if(id)this.id(id);debug("identify %o, %o",id,properties);this.properties(properties);this.save()};Group.prototype.save=function(){if(!this._options.persist)return false;cookie.set(this._options.cookie.key,this.id());store.set(this._options.localStorage.key,this.properties());return true};Group.prototype.logout=function(){this.id(null);this.properties({});cookie.remove(this._options.cookie.key);store.remove(this._options.localStorage.key)};Group.prototype.reset=function(){this.logout();this.options({})};Group.prototype.load=function(){this.id(cookie.get(this._options.cookie.key));this.properties(store.get(this._options.localStorage.key))};module.exports=bind.all(new Group);module.exports.Group=Group});require.register("analytics/lib/integration/index.js",function(exports,require,module){var debug=require("debug")("analytics:integration"),each=require("each"),extend=require("extend"),is=require("is"),protos=require("./protos"),statics=require("./statics");module.exports=createIntegration;function createIntegration(name){function Integration(options,ready,analytics){options=resolveOptions(options,this.key);this.options=extend({},this.defaults,options);this.analytics=analytics;this.queue=[];this.ready=false;var self=this;function dequeue(){each(self.queue,function(call){self[call.method].apply(self,call.args)});self.ready=true;self.queue=[];ready()}debug("initialize %s with %o",name,this.options);this.initialize(this.options,dequeue)}for(var key in statics)Integration[key]=statics[key];Integration.prototype.name=name;for(var key in protos)Integration.prototype[key]=protos[key];return Integration}function resolveOptions(options,key){if(is.object(options))return options;if(options===true)return{};if(key&&is.string(options)){var value=options;options={};options[key]=value;return options}}});require.register("analytics/lib/integration/protos.js",function(exports,require,module){var debug=require("debug")("analytics:integration");exports.initialize=function(options,ready){ready()};exports.invoke=function(method,args){if(!this[method])return;args=[].slice.call(arguments,1);if(this.ready){debug("%s %s %o",this.name,method,args);this[method].apply(this,args)}else{this.queue.push({method:method,args:args})}}});require.register("analytics/lib/integration/statics.js",function(exports,require,module){var extend=require("extend");exports.extend=function(protos){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,protos);return child}});require.register("analytics/lib/integrations/adroll.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script"),user=require("../user");var AdRoll=module.exports=integration("AdRoll");AdRoll.prototype.defaults={advId:"",pixId:""};AdRoll.prototype.initialize=function(options,ready){window.adroll_adv_id=options.advId;window.adroll_pix_id=options.pixId;window.adroll_custom_data=user.traits();if(user.id())window.adroll_custom_data.id=user.id();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/lib/integrations/amplitude.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var Amplitude=module.exports=integration("Amplitude");Amplitude.prototype.key="apiKey";Amplitude.prototype.defaults={apiKey:"",pageview:false};Amplitude.prototype.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);window.amplitude.init(options.apiKey);callback.async(ready);load("https://d24n15hnbwhuhn.cloudfront.net/libs/amplitude-1.0-min.js")};Amplitude.prototype.identify=function(id,traits,options){if(id)window.amplitude.setUserId(id);if(traits)window.amplitude.setGlobalUserProperties(traits)};Amplitude.prototype.track=function(event,properties,options){window.amplitude.logEvent(event,properties)};Amplitude.prototype.pageview=function(url){if(!this.options.pageview)return;this.track("Loaded a Page",{url:url||window.location.href,title:document.title})}});require.register("analytics/lib/integrations/awesm.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script"),user=require("../user");var Awesm=module.exports=integration("awe.sm");Awesm.prototype.key="apiKey";Awesm.prototype.defaults={apiKey:"",events:{}};Awesm.prototype.initialize=function(options,ready){window.AWESM=window.AWESM||{};window.AWESM.api_key=options.apiKey;load("//widgets.awe.sm/v3/widgets.js?key="+options.apiKey+"&async=true",ready)};Awesm.prototype.track=function(event,properties,options){var goal=this.options.events[event];if(!goal)return;var value=properties.value||0;if(properties.revenue)value=properties.revenue*100;window.AWESM.convert(goal,value,null,user.id())}});require.register("analytics/lib/integrations/awesomatic.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script"),onBody=require("on-body");var Awesomatic=module.exports=integration("Awesomatic");Awesomatic.prototype.key="appId";Awesomatic.prototype.defaults={appId:""};Awesomatic.prototype.initialize=function(options,ready){load("https://1c817b7a15b6941337c0-dff9b5f4adb7ba28259631e99c3f3691.ssl.cf2.rackcdn.com/gen/embed.js",function(){window.Awesomatic.initialize({appId:options.appId},ready)})};Awesomatic.prototype.identify=function(id,traits,options){if(!id&&!traits.email)return;if(id)traits.userId=id;window.Awesomatic.load(traits)}});require.register("analytics/lib/integrations/bugherd.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var BugHerd=module.exports=integration("BugHerd");BugHerd.prototype.key="apiKey";BugHerd.prototype.defaults={apiKey:"",showFeedbackTab:true};BugHerd.prototype.initialize=function(options,ready){window.BugHerdConfig={};if(!options.showFeedbackTab)window.BugHerdConfig.feedback={hide:true};load("//www.bugherd.com/sidebarv2.js?apikey="+options.apiKey,ready)}});require.register("analytics/lib/integrations/chartbeat.js",function(exports,require,module){var integration=require("../integration"),onBody=require("on-body"),load=require("load-script");var Chartbeat=module.exports=integration("Chartbeat");Chartbeat.prototype.defaults={domain:"",uid:null};Chartbeat.prototype.initialize=function(options,ready){window._sf_async_config=options;onBody(function(){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)})};Chartbeat.prototype.pageview=function(url){window.pSUPERFLY.virtualPage(url||window.location.pathname)}});require.register("analytics/lib/integrations/clicktale.js",function(exports,require,module){var date=require("load-date"),each=require("each"),integration=require("../integration"),load=require("load-script"),onBody=require("on-body");var ClickTale=module.exports=integration("ClickTale");ClickTale.prototype.key="projectId";ClickTale.prototype.defaults={httpCdnUrl:"http://s.clicktale.net/WRe0.js",httpsCdnUrl:"",projectId:"",recordingRatio:.01,partitionId:""};ClickTale.prototype.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)});load({http:options.httpCdnUrl,https:options.httpsCdnUrl},function(){window.ClickTale(options.projectId,options.recordingRatio,options.partitionId);ready()})};ClickTale.prototype.identify=function(id,traits,options){window.ClickTaleSetUID(id);each(traits,function(key,value){window.ClickTaleField(key,value)})};ClickTale.prototype.track=function(event,properties,options){window.ClickTaleEvent(event)}});require.register("analytics/lib/integrations/clicky.js",function(exports,require,module){var extend=require("extend"),integration=require("../integration"),load=require("load-script"),user=require("../user");var Clicky=module.exports=integration("Clicky");Clicky.prototype.key="siteId";Clicky.prototype.defaults={siteId:null};Clicky.prototype.initialize=function(options,ready){window.clicky_site_ids||(window.clicky_site_ids=[]);window.clicky_site_ids.push(options.siteId);this.identify(user.id(),user.traits());load("//static.getclicky.com/js",ready)};Clicky.prototype.identify=function(id,traits,options){window.clicky_custom||(window.clicky_custom={});window.clicky_custom.session||(window.clicky_custom.session={});if(id)traits.id=id;extend(window.clicky_custom.session,traits)};Clicky.prototype.track=function(event,properties,options){properties||(properties={});window.clicky.goal(event,properties.revenue)};Clicky.prototype.pageview=function(url){url||(url=window.location.pathname);this._path=url;window.clicky.log(url,document.title)}});require.register("analytics/lib/integrations/comscore.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var comScore=module.exports=integration("comScore");comScore.prototype.key="c2";comScore.prototype.defaults={c1:"2",c2:""};comScore.prototype.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/lib/integrations/crazy-egg.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var CrazyEgg=module.exports=integration("Crazy Egg");CrazyEgg.prototype.key="accountNumber";CrazyEgg.prototype.defaults={accountNumber:""};CrazyEgg.prototype.initialize=function(options,ready){var account=options.accountNumber;var accountPath=account.slice(0,4)+"/"+account.slice(4);var cacheBust=Math.floor((new Date).getTime()/36e5);load("//dnn506yrbagrg.cloudfront.net/pages/scripts/"+accountPath+".js?"+cacheBust,ready)}});require.register("analytics/lib/integrations/customerio.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),convertDates=require("convert-dates"),integration=require("../integration"),load=require("load-script"),user=require("../user");var Customerio=module.exports=integration("Customer.io");Customerio.prototype.key="siteId";Customerio.prototype.defaults={siteId:""};Customerio.prototype.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])}})();callback.async(ready);var script=load("https://assets.customer.io/assets/track.js");script.id="cio-tracker";script.setAttribute("data-site-id",options.siteId)};Customerio.prototype.identify=function(id,traits,options){if(!id)return;traits.id=id;traits=convertDates(traits,convertDate);alias(traits,{created:"created_at"});window._cio.identify(traits)};Customerio.prototype.group=function(id,properties,options){if(id)properties.id=id;alias(properties,function(prop){return"Group "+prop});this.identify(user.id(),properties)};Customerio.prototype.track=function(event,properties,options){properties=convertDates(properties,convertDate);window._cio.track(event,properties)};function convertDate(date){return Math.floor(date.getTime()/1e3)}});require.register("analytics/lib/integrations/evergage.js",function(exports,require,module){var alias=require("alias");var each=require("each");var integration=require("../integration");var load=require("load-script");var Evergage=module.exports=integration("Evergage");Evergage.prototype.defaults={account:null,dataset:null};Evergage.prototype.initialize=function(options,ready){var account=options.account;var dataset=options.dataset;window._aaq=window._aaq||[];push("setEvergageAccount",account);push("setDataset",dataset);push("setUseSiteConfig",true);ready();load("//cdn.evergage.com/beacon/"+account+"/"+dataset+"/scripts/evergage.min.js")};Evergage.prototype.identify=function(id,traits,options){if(!id)return;push("setUser",id);alias(traits,{name:"userName",email:"userEmail"});each(traits,function(key,value){push("setUserField",key,value,"page")})};Evergage.prototype.group=function(id,properties,options){if(!id)return;push("setCompany",id);each(properties,function(key,value){push("setAccountField",key,value,"page")})};Evergage.prototype.track=function(event,properties,options){push("trackAction",event,properties)};Evergage.prototype.pageview=function(url){window.Evergage.init(true)};function push(args){args=[].slice.call(arguments);window._aaq.push(args)}});require.register("analytics/lib/integrations/errorception.js",function(exports,require,module){var callback=require("callback"),extend=require("extend"),integration=require("../integration"),load=require("load-script"),onError=require("on-error");var Errorception=module.exports=integration("Errorception");Errorception.prototype.key="projectId";Errorception.prototype.defaults={projectId:"",meta:true};Errorception.prototype.initialize=function(options,ready){window._errs=[options.projectId];onError(function(){window._errs.push(arguments)});load("//beacon.errorception.com/"+options.projectId+".js");callback.async(ready)};Errorception.prototype.identify=function(id,traits,options){if(!this.options.meta)return;window._errs.meta||(window._errs.meta={});if(id)traits.id=id;extend(window._errs.meta,traits)}});require.register("analytics/lib/integrations/foxmetrics.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var FoxMetrics=module.exports=integration("FoxMetrics");FoxMetrics.prototype.key="appId";FoxMetrics.prototype.defaults={appId:""};FoxMetrics.prototype.initialize=function(options,ready){var _fxm=window._fxm||{};window._fxm=_fxm.events||[];callback.async(ready);load("//d35tca7vmefkrc.cloudfront.net/scripts/"+options.appId+".js")};FoxMetrics.prototype.identify=function(id,traits,options){if(!id)return;var firstName=traits.firstName;var 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",id,firstName,lastName,traits.email,traits.address,undefined,undefined,traits])};FoxMetrics.prototype.track=function(event,properties,options){window._fxm.push([event,properties.category,properties])};FoxMetrics.prototype.pageview=function(url){window._fxm.push(["_fxm.pages.view",undefined,undefined,undefined,url,undefined])}});require.register("analytics/lib/integrations/gauges.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var Gauges=module.exports=integration("Gauges");Gauges.prototype.key="siteId";Gauges.prototype.defaults={siteId:""};Gauges.prototype.initialize=function(options,ready){window._gauges=window._gauges||[];callback.async(ready);var script=load("//secure.gaug.es/track.js");script.id="gauges-tracker";script.setAttribute("data-site-id",options.siteId)};Gauges.prototype.pageview=function(url){window._gauges.push(["track"])}});require.register("analytics/lib/integrations/get-satisfaction.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script"),onBody=require("on-body");var GetSatisfaction=module.exports=integration("Get Satisfaction");GetSatisfaction.prototype.key="widgetId";GetSatisfaction.prototype.defaults={widgetId:""};GetSatisfaction.prototype.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(){window.GSFN.loadWidget(options.widgetId,{containerId:id});ready()})}});require.register("analytics/lib/integrations/google-analytics.js",function(exports,require,module){var callback=require("callback"),canonical=require("canonical"),each=require("each"),integration=require("../integration"),is=require("is"),load=require("load-script"),type=require("type"),url=require("url");var GA=module.exports=integration("Google Analytics");GA.prototype.key="trackingId";GA.prototype.defaults={anonymizeIp:false,classic:false,domain:"none",doubleClick:false,enhancedLinkAttribution:false,ignoreReferrer:null,initialPageview:true,siteSpeedSampleRate:null,trackingId:""};GA.prototype.initialize=function(options,ready){if(options.classic){this.track=this.trackClassic;this.pageview=this.pageviewClassic;return this.initializeClassic(options,ready)}window.GoogleAnalyticsObject="ga";window.ga||(window.ga=function(){window.ga.q||(window.ga.q=[]);window.ga.q.push(arguments)});window.ga.l=(new Date).getTime();window.ga("create",options.trackingId,{cookieDomain:options.domain||GA.prototype.defaults.domain,siteSpeedSampleRate:options.siteSpeedSampleRate,allowLinker:true});if(options.anonymizeIp)window.ga("set","anonymizeIp",true);if(options.initialPageview){var path,canon=canonical();if(canon)path=url.parse(canon).pathname;this.pageview(path)}callback.async(ready);load("//www.google-analytics.com/analytics.js")};GA.prototype.track=function(event,properties,options){options||(options={});window.ga("send","event",{eventAction:event,eventCategory:properties.category||"All",eventLabel:properties.label,eventValue:formatValue(properties.value||properties.revenue),nonInteraction:properties.noninteraction||options.noninteraction})};GA.prototype.pageview=function(url){window.ga("send","pageview",{page:url})};GA.prototype.initializeClassic=function(options,ready){window._gaq||(window._gaq=[]);push("_setAccount",options.trackingId);push("_setAllowLinker",true);var anonymize=options.anonymizeIp;var db=options.doubleClick;var domain=options.domain;var enhanced=options.enhancedLinkAttribution;var ignore=options.ignoreReferrer;var initial=options.initialPageview;var sample=options.siteSpeedSampleRate;if(anonymize)push("_gat._anonymizeIp");if(domain)push("_setDomainName",domain);if(sample)push("_setSiteSpeedSampleRate",sample);if(enhanced){var protocol="https:"===document.location.protocol?"https:":"http:";var pluginUrl=protocol+"//www.google-analytics.com/plugins/ga/inpage_linkid.js";
push("_require","inpage_linkid",pluginUrl)}if(ignore){if(!is.array(ignore))ignore=[ignore];each(ignore,function(domain){push("_addIgnoredRef",domain)})}if(initial){var path,canon=canonical();if(canon)path=url.parse(canon).pathname;this.pageview(path)}if(db){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)}};GA.prototype.trackClassic=function(event,properties,options){options||(options={});var category=properties.category||"All";var label=properties.label;var value=formatValue(properties.revenue||properties.value);var noninteraction=properties.noninteraction||options.noninteraction;push("_trackEvent",category,event,label,value,noninteraction)};GA.prototype.pageviewClassic=function(url){push("_trackPageview",url)};function push(args){args=[].slice.call(arguments);window._gaq.push.call(window._gaq,args)}function formatValue(value){if(!value||value<0)return 0;return Math.round(value)}});require.register("analytics/lib/integrations/gosquared.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script"),onBody=require("on-body"),user=require("../user");var GoSquared=module.exports=integration("GoSquared");GoSquared.prototype.key="siteToken";GoSquared.prototype.defaults={siteToken:""};GoSquared.prototype.initialize=function(options,ready){var self=this;onBody(function(){window.GoSquared={};window.GoSquared.acct=options.siteToken;window.GoSquared.q=[];window._gstc_lt=(new Date).getTime();self.identify(user.id(),user.traits());load("//d1l6p2sc9645hc.cloudfront.net/tracker.js");callback.async(ready)})};GoSquared.prototype.identify=function(id,traits,options){window.GoSquared.UserName=id;window.GoSquared.VisitorName=traits.email||traits.username||id;if(id)traits.userID=id;window.GoSquared.Visitor=traits};GoSquared.prototype.track=function(event,properties,options){window.GoSquared.q.push(["TrackEvent",event,properties])};GoSquared.prototype.pageview=function(url){window.GoSquared.q.push(["TrackView",url])}});require.register("analytics/lib/integrations/heap.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),integration=require("../integration"),load=require("load-script");var Heap=module.exports=integration("Heap");Heap.prototype.key="apiKey";Heap.prototype.defaults={apiKey:""};Heap.prototype.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);callback.async(ready)};Heap.prototype.identify=function(id,traits,options){alias(traits,{username:"handle"});window.heap.identify(traits)};Heap.prototype.track=function(event,properties,options){window.heap.track(event,properties)}});require.register("analytics/lib/integrations/hittail.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var HitTail=module.exports=integration("HitTail");HitTail.prototype.key="siteId";HitTail.prototype.defaults={siteId:""};HitTail.prototype.initialize=function(options,ready){load("//"+options.siteId+".hittail.com/mlt.js",ready)}});require.register("analytics/lib/integrations/hubspot.js",function(exports,require,module){var callback=require("callback"),convert=require("convert-dates"),integration=require("../integration"),load=require("load-script");var HubSpot=module.exports=integration("HubSpot");HubSpot.prototype.key="portalId";HubSpot.prototype.defaults={portalId:null};HubSpot.prototype.initialize=function(options,ready){if(!document.getElementById("hs-analytics")){window._hsq=window._hsq||[];var cache=Math.ceil(new Date/3e5)*3e5;var script=load("https://js.hubspot.com/analytics/"+cache+"/"+options.portalId+".js");script.id="hs-analytics"}callback.async(ready)};HubSpot.prototype.identify=function(id,traits,options){if(!traits.email)return;if(id)traits.id=id;traits=convertDates(traits);window._hsq.push(["identify",traits])};HubSpot.prototype.track=function(event,properties,options){if(properties)properties=convertDates(properties);window._hsq.push(["trackEvent",event,properties])};HubSpot.prototype.pageview=function(url){window._hsq.push(["_trackPageview"])};function convertDates(properties){return convert(properties,function(date){return date.getTime()})}});require.register("analytics/lib/integrations/improvely.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),integration=require("../integration"),load=require("load-script");var Improvely=module.exports=integration("Improvely");Improvely.prototype.defaults={domain:"",projectId:null};Improvely.prototype.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])}};window.improvely.init(options.domain,options.projectId);callback.async(ready);load("//"+options.domain+".iljmp.com/improvely.js")};Improvely.prototype.identify=function(id,traits,options){if(id)window.improvely.label(id)};Improvely.prototype.track=function(event,properties,options){properties.type=event;alias(properties,{revenue:"amount"});window.improvely.goal(properties)}});require.register("analytics/lib/integrations/inspectlet.js",function(exports,require,module){var integration=require("../integration"),alias=require("alias"),clone=require("clone"),load=require("load-script");var Inspectlet=module.exports=integration("Inspectlet");Inspectlet.prototype.key="wid";Inspectlet.prototype.defaults={wid:""};Inspectlet.prototype.initialize=function(options,ready){window.__insp=window.__insp||[];window.__insp.push(["wid",options.wid]);load("//www.inspectlet.com/inspectlet.js",ready)}});require.register("analytics/lib/integrations/intercom.js",function(exports,require,module){var alias=require("alias"),convertDates=require("convert-dates"),integration=require("../integration"),each=require("each"),is=require("is"),isEmail=require("is-email"),load=require("load-script");var Intercom=module.exports=integration("Intercom");Intercom.prototype.key="appId";Intercom.prototype.defaults={activator:"#IntercomDefaultWidget",appId:"",counter:true,inbox:false};Intercom.prototype.initialize=function(options,ready){load("https://static.intercomcdn.com/intercom.v1.js",ready)};Intercom.prototype.identify=function(id,traits,options){if(!id&&!traits.email)return;traits.app_id=this.options.appId;if(id)traits.user_id=id;traits=convertDates(traits,formatDate);alias(traits,{created:"created_at"});if(traits.company)alias(traits.company,{created:"created_at"});options||(options={});var Intercom=options.Intercom||options.intercom||{};if(Intercom.increments)traits.increments=Intercom.increments;if(Intercom.userHash)traits.user_hash=Intercom.userHash;if(Intercom.user_hash)traits.user_hash=Intercom.user_hash;if(this.options.inbox){traits.widget={activator:this.options.activator,use_counter:this.options.counter}}var method=this._id!==id?"boot":"update";this._id=id;window.Intercom(method,traits)};Intercom.prototype.group=function(id,properties,options){properties.id=id;window.Intercom("update",{company:properties})};function formatDate(date){return Math.floor(date/1e3)}});require.register("analytics/lib/integrations/keen-io.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var Keen=module.exports=integration("Keen IO");Keen.prototype.defaults={initialPageview:false,pageview:false,projectId:"",readKey:"",writeKey:""};Keen.prototype.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});callback.async(ready);if(options.initialPageview)this.pageview();load("//dc8na2hxrj29i.cloudfront.net/code/keen-2.1.0-min.js")};Keen.prototype.identify=function(id,traits,options){var user={};if(id)user.userId=id;if(traits)user.traits=traits;window.Keen.setGlobalProperties(function(){return{user:user}})};Keen.prototype.track=function(event,properties,options){window.Keen.addEvent(event,properties)};Keen.prototype.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/lib/integrations/kissmetrics.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),integration=require("../integration"),load=require("load-script");var KISSmetrics=module.exports=integration("KISSmetrics");KISSmetrics.prototype.key="apiKey";KISSmetrics.prototype.defaults={apiKey:""};KISSmetrics.prototype.initialize=function(options,ready){window._kmq||(window._kmq=[]);callback.async(ready);load("//i.kissmetrics.com/i.js");load("//doug1izaerwt3.cloudfront.net/"+options.apiKey+".1.js")};KISSmetrics.prototype.identify=function(id,traits,options){if(id)window._kmq.push(["identify",id]);if(traits)window._kmq.push(["set",traits])};KISSmetrics.prototype.track=function(event,properties,options){alias(properties,{revenue:"Billing Amount"});window._kmq.push(["record",event,properties])};KISSmetrics.prototype.alias=function(newId,originalId){window._kmq.push(["alias",newId,originalId])}});require.register("analytics/lib/integrations/klaviyo.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),integration=require("../integration"),load=require("load-script");var Klaviyo=module.exports=integration("Klaviyo");Klaviyo.prototype.key="apiKey";Klaviyo.prototype.defaults={apiKey:""};Klaviyo.prototype.initialize=function(options,ready){window._learnq||(window._learnq=[]);window._learnq.push(["account",options.apiKey]);callback.async(ready);load("//a.klaviyo.com/media/js/learnmarklet.js")};Klaviyo.prototype.identify=function(id,traits,options){if(!id&&!traits.email)return;traits.id=id;alias(traits,{id:"$id",email:"$email",firstName:"$first_name",lastName:"$last_name",phone:"$phone_number",title:"$title"});window._learnq.push(["identify",traits])};Klaviyo.prototype.group=function(id,properties){if(!properties.name)return;window._learnq.push(["identify",{$organization:properties.name}])};Klaviyo.prototype.track=function(event,properties,options){window._learnq.push(["track",event,properties])}});require.register("analytics/lib/integrations/leadlander.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var LeadLander=module.exports=integration("LeadLander");LeadLander.prototype.key="accountId";LeadLander.prototype.defaults={accountId:null};LeadLander.prototype.initialize=function(options,ready){window.llactid=options.accountId;load("http://t6.trackalyzer.com/trackalyze-nodoc.js",ready)}});require.register("analytics/lib/integrations/livechat.js",function(exports,require,module){var each=require("each"),integration=require("../integration"),load=require("load-script");var LiveChat=module.exports=integration("LiveChat");LiveChat.prototype.key="license";LiveChat.prototype.defaults={license:""};LiveChat.prototype.initialize=function(options,ready){window.__lc={license:options.license};load("//cdn.livechatinc.com/tracking.js",ready)};LiveChat.prototype.identify=function(id,traits,options){if(id)traits["User ID"]=id;window.LC_API.set_custom_variables(convert(traits))};function convert(traits){var arr=[];each(traits,function(key,value){arr.push({name:key,value:value})});return arr}});require.register("analytics/lib/integrations/lytics.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),clone=require("clone"),integration=require("../integration"),load=require("load-script");var Lytics=module.exports=integration("Lytics");Lytics.prototype.key="cid";Lytics.prototype.defaults={cid:"",cookie:"seerid",delay:200,initialPageview:true,sessionTimeout:1800,url:"//c.lytics.io"};Lytics.prototype.initialize=function(options,ready){var cloned=clone(options);alias(cloned,{sessionTimeout:"sessecs"});window.jstag=function(){var t={_q:[],_c:cloned,ts:(new Date).getTime()};t.send=function(){this._q.push(["ready","send",Array.prototype.slice.call(arguments)]);return this};return t}();if(options.initialPageview)this.pageview();load("//c.lytics.io/static/io.min.js");callback.async(ready)};Lytics.prototype.identify=function(id,traits,options){if(id)traits._uid=id;window.jstag.send(traits)};Lytics.prototype.track=function(event,properties){properties._e=event;window.jstag.send(properties)};Lytics.prototype.pageview=function(url){window.jstag.send()}});require.register("analytics/lib/integrations/mixpanel.js",function(exports,require,module){var alias=require("alias"),clone=require("clone"),integration=require("../integration"),load=require("load-script");var Mixpanel=module.exports=integration("Mixpanel");Mixpanel.prototype.key="token";Mixpanel.prototype.defaults={cookieName:"",initialPageview:false,nameTag:true,token:"",pageview:false,people:false};Mixpanel.prototype.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||[]);var cloned=clone(options);alias(cloned,{cookieName:"cookie_name"});window.mixpanel.init(options.token,cloned);if(options.initialPageview)this.pageview()};Mixpanel.prototype.identify=function(id,traits,options){var mp=window.mixpanel;if(id)mp.identify(id);var nametag=traits.email||traits.username||id;if(nametag)mp.name_tag(nametag);alias(traits,{created:"$created",email:"$email",firstName:"$first_name",lastName:"$last_name",lastSeen:"$last_seen",name:"$name",username:"$username",phone:"$phone"});mp.register(traits);if(this.options.people)mp.people.set(traits)};Mixpanel.prototype.track=function(event,properties,options){var mp=window.mixpanel;mp.track(event,properties);if(properties.revenue&&this.options.people){mp.people.track_charge(properties.revenue)}};Mixpanel.prototype.pageview=function(url){if(!this.options.pageview)return;this.track("Loaded a Page",{url:url||document.location.href,name:document.title})};Mixpanel.prototype.alias=function(newId,oldId){var mp=window.mixpanel;if(mp.get_distinct_id&&mp.get_distinct_id()===newId)return;if(mp.get_property&&mp.get_property("$people_distinct_id")===newId)return;mp.alias(newId,oldId)}});require.register("analytics/lib/integrations/mousestats.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var MouseStats=module.exports=integration("MouseStats");MouseStats.prototype.key="accountNumber";MouseStats.prototype.defaults={accountNumber:""};MouseStats.prototype.initialize=function(options,ready){var number=options.accountNumber;var path=number.slice(0,1)+"/"+number.slice(1,2)+"/"+number;var cache=Math.floor((new Date).getTime()/6e4);load({http:"http://www2.mousestats.com/js/"+path+".js?"+cache,https:"https://ssl.mousestats.com/js/"+path+".js?"+cache},ready)}});require.register("analytics/lib/integrations/olark.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration");var Olark=module.exports=integration("Olark");Olark.prototype.key="siteId";Olark.prototype.defaults={identify:true,pageview:true,siteId:"",track:false};Olark.prototype.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);callback.async(ready);var self=this;box("onExpand",function(){self._open=true});box("onShrink",function(){self._open=false})};Olark.prototype.identify=function(id,traits,options){if(!this.options.identify)return;if(id)traits.id=id;visitor("updateCustomFields",traits);if(traits.email)visitor("updateEmailAddress",{emailAddress:traits.email});if(traits.phone)visitor("updatePhoneNumber",{phoneNumber:traits.phone});var name=traits.firstName;if(traits.lastName)name+=" "+traits.lastName;if(traits.name)name=traits.name;if(name)visitor("updateFullName",{fullName:name});var nickname=name||traits.email||traits.username||id;if(name&&traits.email)nickname+=" ("+traits.email+")";if(nickname)chat("updateVisitorNickname",{snippet:nickname})};Olark.prototype.track=function(event,properties,options){if(!this.options.track||!this._open)return;chat("sendNotificationToOperator",{body:'visitor triggered "'+event+'"'})};Olark.prototype.pageview=function(url){if(!this.options.pageview||!this._open)return;url||(url=window.location.href);chat("sendNotificationToOperator",{body:"looking at "+url})};function box(action,value){window.olark("api.box."+action,value)}function visitor(action,value){window.olark("api.visitor."+action,value)}function chat(action,value){window.olark("api.chat."+action,value)}});require.register("analytics/lib/integrations/optimizely.js",function(exports,require,module){var bind=require("bind"),callback=require("callback"),each=require("each"),integration=require("../integration"),load=require("load-script"),tick=require("next-tick");var Optimizely=module.exports=integration("Optimizely");Optimizely.prototype.defaults={variations:true};Optimizely.prototype.initialize=function(options,ready){window.optimizely=window.optimizely||[];callback.async(ready);if(options.variations)tick(bind(this,this.replay))};Optimizely.prototype.track=function(event,properties,options){if(properties.revenue)properties.revenue=properties.revenue*100;window.optimizely.push(["trackEvent",event,properties])};Optimizely.prototype.replay=function(){var data=window.optimizely.data;if(!data)return;var experiments=data.experiments;var map=data.state.variationNamesMap;var traits={};each(map,function(experimentId,variation){var experiment=experiments[experimentId].name;traits["Experiment: "+experiment]=variation});this.analytics.identify(traits)}});require.register("analytics/lib/integrations/perfect-audience.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var PerfectAudience=module.exports=integration("Perfect Audience");PerfectAudience.prototype.key="siteId";PerfectAudience.prototype.defaults={siteId:""};PerfectAudience.prototype.initialize=function(options,ready){window._pa||(window._pa={});load("//tag.perfectaudience.com/serve/"+options.siteId+".js",ready)};PerfectAudience.prototype.track=function(event,properties,options){window._pa.track(event,properties)}});require.register("analytics/lib/integrations/pingdom.js",function(exports,require,module){var date=require("load-date"),integration=require("../integration"),load=require("load-script");var Pingdom=module.exports=integration("Pingdom");Pingdom.prototype.key="id";Pingdom.prototype.defaults={id:""};Pingdom.prototype.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/lib/integrations/preact.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),convertDates=require("convert-dates"),integration=require("../integration"),load=require("load-script");var Preact=module.exports=integration("Preact");Preact.prototype.key="projectCode";Preact.prototype.defaults={projectCode:""};Preact.prototype.initialize=function(options,ready){window._lnq||(window._lnq=[]);window._lnq.push(["_setCode",options.projectCode]);callback.async(ready);load("//d2bbvl6dq48fa6.cloudfront.net/js/ln-2.4.min.js")};Preact.prototype.identify=function(id,traits,options){if(!id)return;traits=convertDates(traits,convertDate);alias(traits,{created:"created_at"});window._lnq.push(["_setPersonData",{name:traits.name,email:traits.email,uid:id,properties:traits}])};Preact.prototype.group=function(id,properties,options){if(!id)return;properties.id=id;window._lnq.push(["_setAccount",properties])};Preact.prototype.track=function(event,properties,options){var special={};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])};function convertDate(date){return Math.floor(date/1e3)}});require.register("analytics/lib/integrations/qualaroo.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var Qualaroo=module.exports=integration("Qualaroo");Qualaroo.prototype.defaults={customerId:"",siteToken:"",track:false};Qualaroo.prototype.initialize=function(options,ready){window._kiq||(window._kiq=[]);callback.async(ready);var path=options.customerId+"/"+options.siteToken;load("//s3.amazonaws.com/ki.js/"+path+".js")};Qualaroo.prototype.identify=function(id,traits,options){if(traits.email)id=traits.email;if(id)window._kiq.push(["identify",id]);if(traits)window._kiq.push(["set",traits])};Qualaroo.prototype.track=function(event,properties,options){if(!this.options.track)return;var traits={};traits["Triggered: "+event]=true;this.identify(null,traits)}});require.register("analytics/lib/integrations/quantcast.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var Quantcast=module.exports=integration("Quantcast");Quantcast.prototype.key="pCode";Quantcast.prototype.defaults={pCode:null};Quantcast.prototype.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/lib/integrations/rollbar.js",function(exports,require,module){var callback=require("callback"),clone=require("clone"),extend=require("extend"),integration=require("../integration"),load=require("load-script"),onError=require("on-error");var Rollbar=module.exports=integration("Rollbar");Rollbar.prototype.key="accessToken";Rollbar.prototype.defaults={accessToken:"",identify:true};Rollbar.prototype.initialize=function(options,ready){window._rollbar=window._rollbar||window._ratchet||[options.accessToken,clone(options)];onError(function(){window._rollbar.push(arguments)});callback.async(ready);load("//d37gvrvc0wt4s1.cloudfront.net/js/1/rollbar.min.js")};Rollbar.prototype.identify=function(id,traits,options){if(!this.options.identify)return;if(id)traits.id=id;var rollbar=window._rollbar;var params=rollbar.shift?rollbar[1]=rollbar[1]||{}:rollbar.extraParams=rollbar.extraParams||{};params.person=params.person||{};extend(params.person,traits)}});require.register("analytics/lib/integrations/sentry.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var Sentry=module.exports=integration("Sentry");Sentry.prototype.key="config";Sentry.prototype.defaults={config:""};Sentry.prototype.initialize=function(options,ready){load("//d3nslu0hdya83q.cloudfront.net/dist/1.0/raven.min.js",function(){window.Raven.config(options.config).install();ready()})};Sentry.prototype.identify=function(id,traits,options){if(id)traits.id=id;window.Raven.setUser(traits)}});require.register("analytics/lib/integrations/snapengage.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var SnapEngage=module.exports=integration("SnapEngage");SnapEngage.prototype.key="apiKey";SnapEngage.prototype.defaults={apiKey:""};SnapEngage.prototype.initialize=function(options,ready){load("//commondatastorage.googleapis.com/code.snapengage.com/js/"+options.apiKey+".js",ready)};SnapEngage.prototype.identify=function(id,traits,options){if(!traits.email)return;window.SnapABug.setUserEmail(traits.email)}});require.register("analytics/lib/integrations/spinnakr.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var Spinnakr=module.exports=integration("Spinnakr");Spinnakr.prototype.key="siteId";Spinnakr.prototype.defaults={siteId:""};Spinnakr.prototype.initialize=function(options,ready){window._spinnakr_site_id=options.siteId;load("//d3ojzyhbolvoi5.cloudfront.net/js/so.js",ready)}});require.register("analytics/lib/integrations/tapstream.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script"),slug=require("slug");var Tapstream=module.exports=integration("Tapstream");Tapstream.prototype.key="accountName";Tapstream.prototype.defaults={accountName:"",initialPageview:true};Tapstream.prototype.initialize=function(options,ready){window._tsq=window._tsq||[];window._tsq.push(["setAccountName",options.accountName]);if(options.initialPageview)this.pageview();load("//cdn.tapstream.com/static/js/tapstream.js");callback.async(ready)};Tapstream.prototype.track=function(event,properties,options){event=slug(event);window._tsq.push(["fireHit",event,[]])};Tapstream.prototype.pageview=function(url){var event=slug("Loaded a Page");window._tsq.push(["fireHit",event,[url]])}});require.register("analytics/lib/integrations/trakio.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),clone=require("clone"),integration=require("../integration"),load=require("load-script");var Trakio=module.exports=integration("trak.io");Trakio.prototype.key="token";Trakio.prototype.defaults={initialPageview:true,pageview:true,token:""};Trakio.prototype.initialize=function(options,ready){window.trak=window.trak||[];window.trak.io=window.trak.io||{};window.trak.io.load=function(e){load("//d29p64779x43zo.cloudfront.net/v1/trak.io.min.js");var r=function(e){return function(){window.trak.push([e].concat(Array.prototype.slice.call(arguments,0)))}},i=["initialize","identify","track","alias","channel","source","host","protocol","page_view"];for(var s=0;s<i.length;s++)window.trak.io[i[s]]=r(i[s]);window.trak.io.initialize.apply(window.trak.io,arguments)};var cloned=clone(options);alias(cloned,{initialPageview:"auto_track_page_view"});window.trak.io.load(options.token,cloned);callback.async(ready)};Trakio.prototype.identify=function(id,traits,options){alias(traits,{avatar:"avatar_url",firstName:"first_name",lastName:"last_name"});if(id){window.trak.io.identify(id,traits)}else{window.trak.io.identify(traits)}};Trakio.prototype.track=function(event,properties,options){window.trak.io.track(event,properties)};Trakio.prototype.pageview=function(url){if(!this.options.pageview)return;window.trak.io.page_view(url)};Trakio.prototype.alias=function(newId,originalId){var id=window.trak.io.distinct_id();if(id===newId)return;if(originalId){window.trak.io.alias(originalId,newId)}else{window.trak.io.alias(newId)}}});require.register("analytics/lib/integrations/usercycle.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var USERcycle=module.exports=integration("USERcycle");USERcycle.prototype.key="key";USERcycle.prototype.defaults={key:""};USERcycle.prototype.initialize=function(options,ready){window._uc||(window._uc=[]);window._uc.push(["_key",options.key]);callback.async(ready);load("//api.usercycle.com/javascripts/track.js")};USERcycle.prototype.identify=function(id,traits,options){if(id)window._uc.push(["uid",id]);window._uc.push(["action","came_back",traits])};USERcycle.prototype.track=function(event,properties,options){window._uc.push(["action",event,properties])}});require.register("analytics/lib/integrations/userfox.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),convertDates=require("convert-dates"),integration=require("../integration"),load=require("load-script");var Userfox=module.exports=integration("userfox");Userfox.prototype.key="clientId";Userfox.prototype.defaults={clientId:""};Userfox.prototype.initialize=function(options,ready){window._ufq||(window._ufq=[]);callback.async(ready);load("//d2y71mjhnajxcg.cloudfront.net/js/userfox-stable.js")};Userfox.prototype.identify=function(id,traits,options){if(!traits.email)return;window._ufq.push(["init",{clientId:this.options.clientId,email:traits.email}]);traits=convertDates(traits,formatDate);alias(traits,{created:"signup_date"});window._ufq.push(["track",traits])};function formatDate(date){return Math.round(date.getTime()/1e3).toString()}});require.register("analytics/lib/integrations/uservoice.js",function(exports,require,module){var alias=require("alias"),callback=require("callback"),clone=require("clone"),convertDates=require("convert-dates"),integration=require("../integration"),load=require("load-script"),unix=require("to-unix-timestamp");var UserVoice=module.exports=integration("UserVoice");UserVoice.prototype.key="apiKey";UserVoice.prototype.defaults={apiKey:"",classic:false,forumId:null,showWidget:true,mode:"contact",accentColor:"#448dd6",trigger:null,triggerPosition:"bottom-right",triggerColor:"#ffffff",triggerBackgroundColor:"rgba(46, 49, 51, 0.6)",classicMode:"full",primaryColor:"#cc6d00",linkColor:"#007dbf",defaultMode:"support",tabLabel:"Feedback & Support",tabColor:"#cc6d00",tabPosition:"middle-right",tabInverted:false};UserVoice.prototype.initialize=function(options,ready){if(options.classic){this.identify=this.identifyClassic;delete this.group;return this.initializeClassic(options,ready)}window.UserVoice||(window.UserVoice=[]);
var opts=formatOptions(options);push("set",opts);push("autoprompt",{});if(options.showWidget){options.trigger?push("addTrigger",options.trigger,opts):push("addTrigger",opts)}callback.async(ready);load("//widget.uservoice.com/"+options.apiKey+".js")};UserVoice.prototype.identify=function(id,traits,options){if(id)traits.id=id;traits=convertDates(traits,unix);alias(traits,{created:"created_at"});push("identify",traits)};UserVoice.prototype.group=function(id,properties,options){if(id)properties.id=id;properties=convertDates(properties,unix);alias(properties,{created:"created_at"});push("identify",{account:properties})};UserVoice.prototype.initializeClassic=function(options,ready){window.UserVoice||(window.UserVoice=[]);window.showClassicWidget=showClassicWidget;if(options.showWidget)showClassicWidget("showTab",formatClassicOptions(options));callback.async(ready);load("//widget.uservoice.com/"+options.apiKey+".js")};UserVoice.prototype.identifyClassic=function(id,traits,options){if(id)traits.id=id;push("setCustomFields",traits)};function push(args){args=[].slice.call(arguments);window.UserVoice.push(args)}function formatOptions(options){var cloned=clone(options);alias(cloned,{forumId:"forum_id",accentColor:"accent_color",triggerColor:"trigger_color",triggerBackgroundColor:"trigger_background_color",triggerPosition:"trigger_position"});return cloned}function formatClassicOptions(options){var cloned=clone(options);alias(cloned,{forumId:"forum_id",classicMode:"mode",primaryColor:"primary_color",tabPosition:"tab_position",tabColor:"tab_color",linkColor:"link_color",defaultMode:"default_mode",tabLabel:"tab_label",tabInverted:"tab_inverted"});return cloned}function showClassicWidget(type,options){type||(type="showLightbox");push(type,"classic_widget",options)}});require.register("analytics/lib/integrations/vero.js",function(exports,require,module){var callback=require("callback"),integration=require("../integration"),load=require("load-script");var Vero=module.exports=integration("Vero");Vero.prototype.key="apiKey";Vero.prototype.defaults={apiKey:""};Vero.prototype.initialize=function(options,ready){window._veroq||(window._veroq=[]);window._veroq.push(["init",{api_key:options.apiKey}]);callback.async(ready);load("//d3qxef4rp70elm.cloudfront.net/m.js")};Vero.prototype.identify=function(id,traits,options){if(!id||!traits.email)return;if(id)traits.id=id;window._veroq.push(["user",traits])};Vero.prototype.track=function(event,properties,options){window._veroq.push(["track",event,properties])}});require.register("analytics/lib/integrations/visual-website-optimizer.js",function(exports,require,module){var callback=require("callback"),each=require("each"),inherit=require("inherit"),integration=require("../integration"),tick=require("next-tick");var VWO=module.exports=integration("Visual Website Optimizer");VWO.prototype.defaults={replay:true};VWO.prototype.initialize=function(options,ready){if(options.replay)this.replay();callback.async(ready)};VWO.prototype.replay=function(){var analytics=this.analytics;tick(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/lib/integrations/woopra.js",function(exports,require,module){var each=require("each"),extend=require("extend"),integration=require("../integration"),isEmail=require("is-email"),load=require("load-script"),type=require("type"),user=require("../user");var Woopra=module.exports=integration("Woopra");Woopra.prototype.key="domain";Woopra.prototype.defaults={domain:"",initialPageview:true};Woopra.prototype.initialize=function(options,ready){(function(){var i,s,z,w=window,d=document,a=arguments,q="script",f=["config","track","identify","visit","push","call"],c=function(){var i,self=this;self._e=[];for(i=0;i<f.length;i++){(function(f){self[f]=function(){self._e.push([f].concat(Array.prototype.slice.call(arguments,0)));return self}})(f[i])}};w._w=w._w||{};for(i=0;i<a.length;i++){w._w[a[i]]=w[a[i]]=w[a[i]]||new c}})("woopra");load("//static.woopra.com/js/w.js",ready);window.woopra.config({domain:options.domain});if(options.initialPageview)this.pageview()};Woopra.prototype.identify=function(id,traits,options){if(id)traits.id=id;window.woopra.identify(traits).push()};Woopra.prototype.track=function(event,properties,options){window.woopra.track(event,properties)};Woopra.prototype.pageview=function(url){window.woopra.track("pv",{url:url||window.location.pathname,title:document.title})}});require.register("analytics/lib/integrations/yandex-metrica.js",function(exports,require,module){var integration=require("../integration"),load=require("load-script");var Metrica=module.exports=integration("Yandex Metrica");Metrica.prototype.key="counterId";Metrica.prototype.defaults={counterId:null};Metrica.prototype.initialize=function(options,ready){push(function(){var id=options.counterId;window["yaCounter"+id]=new window.Ya.Metrika({id:id})});ready();load("//mc.yandex.ru/metrika/watch.js")};function push(callback){window.yandex_metrika_callbacks||(window.yandex_metrika_callbacks=[]);window.yandex_metrika_callbacks.push(callback)}});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-emitter/index.js","analytics/deps/emitter/index.js");require.alias("component-emitter/index.js","emitter/index.js");require.alias("component-indexof/index.js","component-emitter/deps/indexof/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("ianstormtaylor-callback/index.js","analytics/deps/callback/index.js");require.alias("ianstormtaylor-callback/index.js","callback/index.js");require.alias("timoxley-next-tick/index.js","ianstormtaylor-callback/deps/next-tick/index.js");require.alias("ianstormtaylor-bind/index.js","analytics/deps/bind/index.js");require.alias("ianstormtaylor-bind/index.js","bind/index.js");require.alias("component-bind/index.js","ianstormtaylor-bind/deps/bind/index.js");require.alias("segmentio-bind-all/index.js","ianstormtaylor-bind/deps/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("ianstormtaylor-is/index.js","analytics/deps/is/index.js");require.alias("ianstormtaylor-is/index.js","is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("jkroso-equals/index.js","analytics/deps/equals/index.js");require.alias("jkroso-equals/index.js","equals/index.js");require.alias("jkroso-type/index.js","jkroso-equals/deps/type/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("component-type/index.js","segmentio-alias/deps/type/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-convert-dates/index.js","analytics/deps/convert-dates/index.js");require.alias("segmentio-convert-dates/index.js","convert-dates/index.js");require.alias("component-clone/index.js","segmentio-convert-dates/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-convert-dates/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/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-isodate-traverse/index.js","analytics/deps/isodate-traverse/index.js");require.alias("segmentio-isodate-traverse/index.js","isodate-traverse/index.js");require.alias("component-clone/index.js","segmentio-isodate-traverse/deps/clone/index.js");require.alias("component-type/index.js","component-clone/deps/type/index.js");require.alias("component-each/index.js","segmentio-isodate-traverse/deps/each/index.js");require.alias("component-type/index.js","component-each/deps/type/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-isodate-traverse/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-isodate-traverse/deps/isodate/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/lib/index.js","analytics/deps/new-date/lib/index.js");require.alias("segmentio-new-date/lib/milliseconds.js","analytics/deps/new-date/lib/milliseconds.js");require.alias("segmentio-new-date/lib/seconds.js","analytics/deps/new-date/lib/seconds.js");require.alias("segmentio-new-date/lib/index.js","analytics/deps/new-date/index.js");require.alias("segmentio-new-date/lib/index.js","new-date/index.js");require.alias("ianstormtaylor-is/index.js","segmentio-new-date/deps/is/index.js");require.alias("component-type/index.js","ianstormtaylor-is/deps/type/index.js");require.alias("ianstormtaylor-is-empty/index.js","ianstormtaylor-is/deps/is-empty/index.js");require.alias("segmentio-isodate/index.js","segmentio-new-date/deps/isodate/index.js");require.alias("segmentio-new-date/lib/index.js","segmentio-new-date/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-on-error/index.js","analytics/deps/on-error/index.js");require.alias("segmentio-on-error/index.js","on-error/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-store.js/store.js","segmentio-store.js/index.js");require.alias("segmentio-to-unix-timestamp/index.js","analytics/deps/to-unix-timestamp/index.js");require.alias("segmentio-to-unix-timestamp/index.js","to-unix-timestamp/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("yields-slug/index.js","analytics/deps/slug/index.js");require.alias("yields-slug/index.js","slug/index.js");require.alias("visionmedia-debug/index.js","analytics/deps/debug/index.js");require.alias("visionmedia-debug/debug.js","analytics/deps/debug/debug.js");require.alias("visionmedia-debug/index.js","debug/index.js");require.alias("analytics/lib/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")}})();