!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={"exports":{},"id":r,"loaded":!1};return t[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}var n={};e.m=t,e.c=n,e.p="",e(0)}([function(t,e,n){var r=n(1),o=n(59);n(65)(r,"TD_Quant"),o["TD_Quant"]=r},function(t,e,n){function r(t){return this instanceof r?(this.init(t),this):new r(t)}var o=n(2),i=n(8),c=n(54),a=n(55),u=n(56);r.prototype.init=function(t){this.configure(t);for(var e in r.Plugins)r.Plugins.hasOwnProperty(e)&&r.Plugins[e].configure.call(this,t)},r.version=r.prototype.version=a,r.prototype.log=function(){for(var t=["[Treasure]"],e=0,n=arguments.length-1;e<=n;e++)t.push(arguments[e]);"undefined"!=typeof console&&this.client.logging&&console.log.apply(console,t)},r.prototype.configure=c.configure,r.prototype.set=c.set,r.prototype.get=c.get,r.prototype.ready=n(57),r.prototype.applyProperties=o.applyProperties,r.prototype.addRecord=o.addRecord,r.prototype._sendRecord=o._sendRecord,r.prototype.getCookie=u.getItem,r.prototype._configurator=c,r.Plugins={"Clicks":n(58),"GlobalID":n(61),"Personalization":n(62),"Track":n(63)},i.forIn(r.Plugins,function(t){i.forIn(t,function(t,e){r.prototype[e]||(r.prototype[e]=t)})}),t.exports=r},function(t,e,n){function r(t,e){o(a.isString(t),"Must provide a table"),o(/^[a-z0-9_]{3,255}$/.test(t),"Table must be between 3 and 255 characters and must consist only of lower case letters, numbers, and _"),o(a.isObject(e),"Must provide a record")}var o=n(3).invariant,i=n(3).noop,c=n(4),a=n(8),u=n(49);e._sendRecord=function(t,e,n){e=e||i,n=n||i,o("jsonp"===t.type,"Request type "+t.type+" not supported");var r=["api_key="+encodeURIComponent(t.apikey),"modified="+encodeURIComponent((new Date).getTime()),"data="+encodeURIComponent(u(t.record))];t.time&&r.push("time="+encodeURIComponent(t.time));var a=t.url+"?"+r.join("&");c(a,{"prefix":"TreasureJSONPCallback","timeout":1e4},function(t,r){return t?n(t):e(r)})},e.applyProperties=function(t,e){return a.assign({},this.get("$global"),this.get(t),e)},e.addRecord=function(t,e,n,o){r(t,e);var i={"apikey":this.client.writeKey,"record":this.applyProperties(t,e),"time":null,"type":this.client.requestType,"url":this.client.endpoint+this.client.database+"/"+t};i.record.time&&(i.time=i.record.time),this.client.development?this.log("addRecord",i):this._sendRecord(i,n,o)},e._validateRecord=r},function(t,e){function n(t){var e=!1;return function(){e||(e=!0,t())}}function r(t,e){if(!t)throw new Error(e)}function o(){}t.exports={"disposable":n,"invariant":r,"noop":o}},function(t,e,n){function r(){}function o(t,e,n){function o(){u.parentNode&&u.parentNode.removeChild(u),window[f]=r,s&&clearTimeout(s)}function a(){window[f]&&o()}"function"==typeof e&&(n=e,e={}),e||(e={});var u,s,l=e.prefix||"__jp",f=e.name||l+c++,p=e.param||"callback",d=null!=e.timeout?e.timeout:6e4,h=encodeURIComponent,g=document.getElementsByTagName("script")[0]||document.head;return d&&(s=setTimeout(function(){o(),n&&n(new Error("Timeout"))},d)),window[f]=function(t){i("jsonp got",t),o(),n&&n(null,t)},t+=(~t.indexOf("?")?"&":"?")+p+"="+h(f),t=t.replace("?&","?"),i('jsonp req "%s"',t),u=document.createElement("script"),u.src=t,g.parentNode.insertBefore(u,g),a}var i=n(5)("jsonp");t.exports=o;var c=0},function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,n=this.useColors;if(t[0]=(n?"%c":"")+this.namespace+(n?" %c":" ")+t[0]+(n?"%c ":" ")+"+"+e.humanize(this.diff),!n)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function c(t){try{null==t?u.removeItem("debug"):u.debug=t}catch(e){}}function a(){var t;try{t=u.debug}catch(e){}return t}e=t.exports=n(6),e.log=i,e.formatArgs=o,e.save=c,e.load=a,e.useColors=r;var u;u="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],e.formatters.j=function(t){return JSON.stringify(t)},e.enable(a())},function(t,e,n){function r(){return e.colors[l++%e.colors.length]}function o(t){function n(){}function o(){var t=o,n=+new Date,i=n-(s||n);t.diff=i,t.prev=s,t.curr=n,s=n,null==t.useColors&&(t.useColors=e.useColors()),null==t.color&&t.useColors&&(t.color=r());var c=Array.prototype.slice.call(arguments);c[0]=e.coerce(c[0]),"string"!=typeof c[0]&&(c=["%o"].concat(c));var a=0;c[0]=c[0].replace(/%([a-z%])/g,function(n,r){if("%%"===n)return n;a++;var o=e.formatters[r];if("function"==typeof o){var i=c[a];n=o.call(t,i),c.splice(a,1),a--}return n}),"function"==typeof e.formatArgs&&(c=e.formatArgs.apply(t,c)),(o.log||e.log||console.log.bind(console)).apply(t,c)}n.enabled=!1,o.enabled=!0;var i=e.enabled(t)?o:n;return i.namespace=t,i}function i(t){e.save(t);for(var n=(t||"").split(/[\s,]+/),r=n.length,o=0;o=s?Math.round(t/s)+"d":t>=u?Math.round(t/u)+"h":t>=a?Math.round(t/a)+"m":t>=c?Math.round(t/c)+"s":t+"ms"}function o(t){return i(t,s,"day")||i(t,u,"hour")||i(t,a,"minute")||i(t,c,"second")||t+" ms"}function i(t,e,n){if(!(t-1&&t%1==0&&t<=r}var r=9007199254740991;t.exports=n},function(t,e,n){function r(t){for(var e=s(t),n=e.length,r=n&&t.length,l=!!r&&a(r)&&(i(t)||o(t)||u(t)),p=-1,d=[];++p-1&&t%1==0&&t0,O=p.enumErrorProps&&(t===m||t instanceof Error),A=p.enumPrototypes&&a(t);++r2?n[c-2]:undefined,u=c>2?n[2]:undefined,s=c>1?n[c-1]:undefined;for("function"==typeof a?(a=o(a,s,5),c-=2):(a="function"==typeof s?s:undefined,c-=a?1:0),u&&i(n[0],n[1],u)&&(a=c<3?undefined:a,c=1);++r1)))/4)-j((t-1901+e)/100)+j((t-1601+e)/400)};if((h=m.hasOwnProperty)||(h=function(t){var e,n={};return(n.__proto__=null,n.__proto__={"toString":1},n).toString!=y?h=function(t){var e=this.__proto__,n=t in(this.__proto__=null,this);return this.__proto__=e,n}:(e=n.constructor,h=function(t){var n=(this.constructor||e).prototype;return t in this&&!(t in n&&this[t]===n[t])}),n=null,h.call(this,t)}),g=function(t,e){var n,r,o,i=0;(n=function(){this.valueOf=0}).prototype.valueOf=0,r=new n;for(o in r)h.call(r,o)&&i++;return n=r=null,i?g=2==i?function(t,e){var n,r={},o="[object Function]"==y.call(t);for(n in t)o&&"prototype"==n||h.call(r,n)||!(r[n]=1)||!h.call(t,n)||e(n)}:function(t,e){var n,r,o="[object Function]"==y.call(t);for(n in t)o&&"prototype"==n||!h.call(t,n)||(r="constructor"===n)||e(n);(r||h.call(t,n="constructor"))&&e(n)}:(r=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],g=function(t,e){var n,o,i="[object Function]"==y.call(t),c=!i&&"function"!=typeof t.constructor&&a[typeof t.hasOwnProperty]&&t.hasOwnProperty||h;for(n in t)i&&"prototype"==n||!c.call(t,n)||e(n);for(o=r.length;n=r[--o];c.call(t,n)&&e(n));}),g(t,e)},!n("json-stringify")){var C={"92":"\\\\","34":'\\"',"8":"\\b","12":"\\f","10":"\\n","13":"\\r","9":"\\t"},S=function(t,e){return("000000"+(e||0)).slice(-t)},O=function(t){for(var e='"',n=0,r=t.length,o=!x||r>10,i=o&&(x?t.split(""):t);n-1/0&&a<1/0){if(k){for(p=j(a/864e5),s=j(p/365.2425)+1970-1;k(s+1,0)<=p;s++);for(l=j((p-k(s,0))/30.42);k(s,l+1)<=p;l++);p=1+p-k(s,l),d=(a%864e5+864e5)%864e5,m=j(d/36e5)%24,b=j(d/6e4)%60,x=j(d/1e3)%60,w=d%1e3}else s=a.getUTCFullYear(),l=a.getUTCMonth(),p=a.getUTCDate(),m=a.getUTCHours(),b=a.getUTCMinutes(),x=a.getUTCSeconds(),w=a.getUTCMilliseconds();a=(s<=0||s>=1e4?(s<0?"-":"+")+S(6,s<0?-s:s):S(4,s))+"-"+S(2,l+1)+"-"+S(2,p)+"T"+S(2,m)+":"+S(2,b)+":"+S(2,x)+"."+S(3,w)+"Z"}else a=null;if(n&&(a=n.call(e,t,a)),null===a)return"null";if("[object Boolean]"==(u=y.call(a)))return""+a;if("[object Number]"==u)return a>-1/0&&a<1/0?""+a:"null";if("[object String]"==u)return O(""+a);if("object"==typeof a){for(T=c.length;T--;)if(c[T]===a)throw f();if(c.push(a),C=[],I=i,i+=o,"[object Array]"==u){for(E=0,T=a.length;E0)for(r="",n>10&&(n=10);r.length=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||N();t+=T("0x"+i.slice(e,_));break;default:N()}else{if(34==o)break;for(o=i.charCodeAt(_),e=_;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++_);t+=i.slice(e,_)}if(34==i.charCodeAt(_))return _++,t;N();default:if(e=_,45==o&&(r=!0,o=i.charCodeAt(++_)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(_+1))>=48&&o<=57&&N(),r=!1;_=48&&o<=57;_++);if(46==i.charCodeAt(_)){for(n=++_;n=48&&o<=57;n++);n==_&&N(),_=n}if(101==(o=i.charCodeAt(_))||69==o){for(o=i.charCodeAt(++_),43!=o&&45!=o||_++,n=_;n=48&&o<=57;n++);n==_&&N(),_=n}return+i.slice(e,_)}if(r&&N(),"true"==i.slice(_,_+4))return _+=4,!0;if("false"==i.slice(_,_+5))return _+=5,!1;if("null"==i.slice(_,_+4))return _+=4,null;N()}return"$"},L=function(t){var e,n;if("$"==t&&N(),"string"==typeof t){if("@"==(x?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=P());n||(n=!0))n&&(","==t?"]"==(t=P())&&N():N()),","==t&&N(),e.push(L(t));return e}if("{"==t){for(e={};"}"!=(t=P());n||(n=!0))n&&(","==t?"}"==(t=P())&&N():N()),","!=t&&"string"==typeof t&&"@"==(x?t.charAt(0):t[0])&&":"==P()||N(),e[t.slice(1)]=L(P());return e}N()}return t},D=function(t,e,n){var r=R(t,e,n);r===v?delete t[e]:t[e]=r},R=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==y.call(o))for(r=o.length;r--;)D(o,r,n);else g(o,function(t){D(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return _=0,E=""+t,n=L(P()),"$"!=P()&&N(),_=E=null,e&&"[object Function]"==y.call(e)?R((r={},r[""]=n,r),"",e):n}}}return e.runInContext=i,e}var c=n(52),a={"function":!0,"object":!0},u=a[typeof e]&&e&&!e.nodeType&&e,s=a[typeof window]&&window||this,l=u&&a[typeof t]&&t&&!t.nodeType&&"object"==typeof o&&o;if(!l||l.global!==l&&l.window!==l&&l.self!==l||(s=l),u&&!c)i(s,u);else{var f=s.JSON,p=s.JSON3,d=!1,h=i(s,s.JSON3={"noConflict":function(){return d||(d=!0,s.JSON=f,s.JSON3=p,f=p=null),h}});s.JSON={"parse":h.parse,"stringify":h.stringify}}c&&(r=function(){return h}.call(e,n,e,t))!==undefined&&(t.exports=r)}).call(this)}).call(e,n(51)(t),function(){return this}())},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children=[],t.webpackPolyfill=1),t}},function(t,e){(function(e){t.exports=e}).call(e,{})},function(t,e){function n(t){var e,n,o,c,a,u,s,l="",f=0;for(t=r(t);f>2,a=(3&e)<<4|n>>4,u=isNaN(n)?64:(15&n)<<2|o>>6,s=isNaN(n)||isNaN(o)?64:63&o,l=l+i.charAt(c)+i.charAt(a)+i.charAt(u)+i.charAt(s);return l}function r(t){for(var e,n="",r=0;r127&&e<2048?o(e>>6|192)+o(63&e|128):o(e>>12|224)+o(e>>6&63|128)+o(63&e|128);return n}var o=String.fromCharCode,i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";t.exports=n},function(t,e,n){function r(t){i(o.isObject(t),"Check out our JavaScript SDK Usage Guide: http://docs.treasuredata.com/articles/javascript-sdk"),i(o.isString(t.writeKey),"Must provide a writeKey"),i(o.isString(t.database),"Must provide a database"),i(/^[a-z0-9_]{3,255}$/.test(t.database),"Database must be between 3 and 255 characters and must consist only of lower case letters, numbers, and _")}var o=n(8),i=n(3).invariant;e.DEFAULT_CONFIG={"database":"","development":!1,"globalIdCookie":"_td_global","host":"in.treasuredata.com","logging":!0,"pathname":"/js/v3/event/","requestType":"jsonp"},e.configure=function(t){return this.client=o.assign({"globals":{}},e.DEFAULT_CONFIG,t,{"requestType":"jsonp"}),r(this.client),this.client.endpoint||(this.client.endpoint="https://"+this.client.host+this.client.pathname),this},e.set=function(t,e,n){return o.isObject(t)&&(e=t,t="$global"),this.client.globals[t]=this.client.globals[t]||{},o.isObject(e)?o.assign(this.client.globals[t],e):this.client.globals[t][e]=n,this},e.get=function(t,e){return t=t||"$global",this.client.globals[t]=this.client.globals[t]||{},e?this.client.globals[t][e]:this.client.globals[t]}},function(t,e){t.exports="1.9.2"},function(t,e){var n=function(t){try{return encodeURIComponent(t)}catch(e){console.error("error encode %o")}return null},r=function(t){try{return decodeURIComponent(t)}catch(e){console.error("error decode %o")}return null},o=function(t){return n(t).replace(/[\-\.\+\*]/g,"\\$&")},i={"getItem":function(t){return t?r(document.cookie.replace(new RegExp("(?:(?:^|.*;)\\s*"+o(t)+"\\s*\\=\\s*([^;]*).*$)|^.*$"),"$1"))||null:null},"setItem":function(t,e,r,o,i,c){if(!t||/^(?:expires|max\-age|path|domain|secure)$/i.test(t))return!1;var a="";if(r)switch(r.constructor){case Number:a=r===Infinity?"; expires=Fri, 31 Dec 9999 23:59:59 GMT":"; max-age="+r;break;case String:a="; expires="+r;break;case Date:a="; expires="+r.toUTCString()}return document.cookie=[n(t),"=",n(e),a,i?"; domain="+i:"",o?"; path="+o:"",c?"; secure":""].join(""),!0},"removeItem":function(t,e,r){return!!this.hasItem(t)&&(document.cookie=[n(t),"=; expires=Thu, 01 Jan 1970 00:00:00 GMT",r?"; domain="+r:"",e?"; path="+e:""].join(""),!0)},"hasItem":function(t){return!!t&&new RegExp("(?:^|;\\s*)"+n(t).replace(/[\-\.\+\*]/g,"\\$&")+"\\s*\\=").test(document.cookie)},"keys":function(){var t=document.cookie.replace(/((?:^|\s*;)[^=]+)(?=;|$)|^\s*|\s*(?:=[^;]*)?(?:\1|$)/g,"").split(/\s*(?:=[^;]*)?;\s*/);return t=t.map(function(t){return r(t)})}};t.exports=i},function(t,e,n){/*! * domready (c) Dustin Diaz 2012 - License MIT */ !function(e,n){t.exports=n()}(0,function(t){function e(t){for(u=1;t=r.shift();)t()}var n,r=[],o=document,i=o.documentElement,c=i.doScroll,a=c?/^loaded|^c/:/^loaded|c/,u=a.test(o.readyState);return o.addEventListener&&o.addEventListener("DOMContentLoaded",n=function(){o.removeEventListener("DOMContentLoaded",n,!1),e()},!1),c&&o.attachEvent("onreadystatechange",n=function(){/^c/.test(o.readyState)&&(o.detachEvent("onreadystatechange",n),e())}),t=c?function(e){self!=top?u?e():r.push(e):function(){try{i.doScroll("left")}catch(n){return setTimeout(function(){t(e)},50)}e()}()}:function(t){u?t():r.push(t)}})},function(t,e,n){function r(t,e){return e}function o(){this._clickTrackingInstalled=!1}function i(t){function e(t){var e=a.findElement(a.getEventTarget(t));if(e&&!i(e)){var r=a.getElementData(e),c=o.extendClickData(t,r);c&&n.trackEvent("clicks",c)}}if(!this._clickTrackingInstalled){var n=this,o=u({"element":c.document,"extendClickData":r,"ignoreAttribute":"td-ignore"},t),i=a.createTreeHasIgnoreAttribute(o.ignoreAttribute),l=a.addEventListener(o.element,"click",e);return n._clickTrackingInstalled=!0,s(function(){l(),n._clickTrackingInstalled=!1})}}var c=n(59),a=n(60),u=n(8).assign,s=n(3).disposable;t.exports={"configure":o,"trackClicks":i}},function(t,e){(function(e){"undefined"!=typeof window?t.exports=window:void 0!==e?t.exports=e:"undefined"!=typeof self?t.exports=self:t.exports={}}).call(e,function(){return this}())},function(t,e,n){function r(t){var e=t.target||t.srcElement||window.document;return 3===e.nodeType?e.parentNode:e}function o(t,e,n){function r(e){n.call(t,e||window.event)}if(t.addEventListener)return t.addEventListener(e,r,!1),d(function(){t.removeEventListener(e,r,!1)});if(t.attachEvent)return t.attachEvent("on"+e,r),d(function(){t.detachEvent("on"+e,r)});throw new Error("addEventListener")}function i(t){if(!t||!t.tagName)return null;for(var e=t.tagName.toLowerCase();e&&"body"!==e;t=t.parentNode,e=t&&t.tagName&&t.tagName.toLowerCase()){var n=t.getAttribute("type");if("input"===e&&"password"===n)return null;var r=t.getAttribute("role");if("button"===r||"link"===r||"a"===e||"button"===e||"input"===e)return t}return null}function c(t){var e="data-"+t;return function n(r){return!(!r||!r.tagName||"html"===r.tagName.toLowerCase())&&(!(!l(r,t)&&!l(r,e))||n(r.parentNode))}}function a(t){var e={"tag":t.tagName.toLowerCase(),"tree":u(t)};return f(["alt","class","href","id","name","role","title","type"],function(n){l(t,n)&&(e[n]=t.getAttribute(n))}),e}function u(t){for(var e,n=[],r=0,o=0,i=" > ".length;t&&r++<5&&!("html"===(e=s(t))||r>1&&o+n.length*i+e.length>=80);)n.push(e),o+=e.length,t=t.parentNode;return n.reverse().join(" > ")}function s(t){var e,n,r,o,i,c=[];if(!t||!t.tagName)return"";if(c.push(t.tagName.toLowerCase()),t.id&&c.push("#"+t.id),(e=t.className)&&p(e))for(n=e.split(" "),i=0;i=0;r--)n.push(e.slice(r).join("."));return n}function a(t){for(var e=d.head||d.getElementsByTagName("head")[0],n=e.getElementsByTagName("meta"),r=n.length,o=0;o