Repository: incubator-unomi Updated Branches: refs/heads/master e13e8a102 -> 83aa41155
http://git-wip-us.apache.org/repos/asf/incubator-unomi/blob/83aa4115/extensions/web-tracker/wab/src/main/webapp/javascript/unomi-tracker.min.js ---------------------------------------------------------------------- diff --git a/extensions/web-tracker/wab/src/main/webapp/javascript/unomi-tracker.min.js b/extensions/web-tracker/wab/src/main/webapp/javascript/unomi-tracker.min.js index 4552709..03eadfe 100644 --- a/extensions/web-tracker/wab/src/main/webapp/javascript/unomi-tracker.min.js +++ b/extensions/web-tracker/wab/src/main/webapp/javascript/unomi-tracker.min.js @@ -1,4 +1,28 @@ +/*! + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * @license Apache-2.0 + */ !function(t){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var e;e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,e.unomiTracker=t()}}(function(){var t;return function(){function t(e,n,r){function o(a,s){if(!n[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return c(a,!0);if(i)return i(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var p=n[a]={exports:{}};e[a][0].call(p.exports,function(t){return o(e[a][1][t]||t)},p,p.exports,t,e,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}return t}()({1:[function(t,e,n){"use strict";var r=t("@ndhoule/arity"),o=Object.prototype.toString,i=function(t){return"function"==typeof t},a=function(t){var e=typeof t;return"number"===e||"object"===e&&"[object Number]"===o.call(t)},s=function(t,e){ if(!a(t))throw new TypeError("Expected a number but received "+typeof t);if(!i(e))throw new TypeError("Expected a function but received "+typeof e);var n=0;return r(e.length,function(){if(!((n+=1)<t))return e.apply(this,arguments)})};e.exports=s},{"@ndhoule/arity":2}],2:[function(t,e,n){"use strict";var r=Object.prototype.toString,o=function(t){return"function"==typeof t},i=function(t){var e=typeof t;return"number"===e||"object"===e&&"[object Number]"===r.call(t)},a=function(t){for(var e=[],n=1;n<=t;n+=1)e.push("arg"+n);return e},s=function(t){var e=a(t).join(", "),n="".concat(" return function(",e,") {\n"," return func.apply(this, arguments);\n"," };");return new Function("func",n)},c=[function(t){return function(){return t.apply(this,arguments)}},function(t){return function(e){return t.apply(this,arguments)}},function(t){return function(e,n){return t.apply(this,arguments)}},function(t){return function(e,n,r){return t.apply(this,arguments)}},function(t){return function(e,n,r,o ){return t.apply(this,arguments)}},function(t){return function(e,n,r,o,i){return t.apply(this,arguments)}}],u=function(t,e){if(!o(e))throw new TypeError("Expected a function but got "+typeof e);return t=Math.max(i(t)?t:0,0),c[t]||(c[t]=s(t)),c[t](e)};e.exports=u},{}],3:[function(t,e,n){"use strict";var r=t("component-type"),o=function t(e){var n=r(e);if("object"===n){var o={};for(var i in e)e.hasOwnProperty(i)&&(o[i]=t(e[i]));return o}if("array"===n){for(var o=new Array(e.length),a=0,s=e.length;a<s;a++)o[a]=t(e[a]);return o}if("regexp"===n){var c="";return c+=e.multiline?"m":"",c+=e.global?"g":"",c+=e.ignoreCase?"i":"",new RegExp(e.source,c)}return"date"===n?new Date(e.getTime()):e};e.exports=o},{"component-type":53}],4:[function(t,e,n){"use strict";var r=t("@ndhoule/drop"),o=t("@ndhoule/rest"),i=Object.prototype.hasOwnProperty,a=Object.prototype.toString,s=function(t){return Boolean(t)&&"object"==typeof t},c=function(t){return Boolean(t)&&"[object Object]"===a.call(t)},u=function(t ,e,n,r){return i.call(e,r)&&void 0===t[r]&&(t[r]=n),e},p=function(t,e,n,r){return i.call(e,r)&&(c(t[r])&&c(n)?t[r]=f(t[r],n):void 0===t[r]&&(t[r]=n)),e},l=function(t,e){if(!s(e))return e;t=t||u;for(var n=r(2,arguments),o=0;o<n.length;o+=1)for(var i in n[o])t(e,n[o],n[o][i],i);return e},f=function(t){return l.apply(null,[p,t].concat(o(arguments)))},d=function(t){return l.apply(null,[null,t].concat(o(arguments)))};e.exports=d,e.exports.deep=f},{"@ndhoule/drop":5,"@ndhoule/rest":14}],5:[function(t,e,n){"use strict";var r=Math.max,o=function(t,e){var n=e?e.length:0;if(!n)return[];for(var o=r(Number(t)||0,0),i=r(n-o,0),a=new Array(i),s=0;s<i;s+=1)a[s]=e[s+o];return a};e.exports=o},{}],6:[function(t,e,n){"use strict";var r=t("@ndhoule/keys"),o=Object.prototype.toString,i=function(t){var e=typeof t;return"number"===e||"object"===e&&"[object Number]"===o.call(t)},a="function"==typeof Array.isArray?Array.isArray:function(t){return"[object Array]"===o.call(t)},s=function(t){return null!=t&&(a (t)||"function"!==t&&i(t.length))},c=function(t,e){for(var n=0;n<e.length&&!1!==t(e[n],n,e);n+=1);},u=function(t,e){for(var n=r(e),o=0;o<n.length&&!1!==t(e[n[o]],n[o],e);o+=1);},p=function(t,e){return(s(e)?c:u).call(this,t,e)};e.exports=p},{"@ndhoule/keys":11}],7:[function(t,e,n){"use strict";var r=t("@ndhoule/each"),o=function(t,e){if("function"!=typeof t)throw new TypeError("`predicate` must be a function but was a "+typeof t);var n=!0;return r(function(e,r,o){if(!(n=!!t(e,r,o)))return!1},e),n};e.exports=o},{"@ndhoule/each":6}],8:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=function(t){for(var e=Array.prototype.slice.call(arguments,1),n=0;n<e.length;n+=1)for(var o in e[n])r.call(e[n],o)&&(t[o]=e[n][o]);return t};e.exports=o},{}],9:[function(t,e,n){"use strict";var r=t("@ndhoule/each"),o=function(t,e,n){if("function"!=typeof t)throw new TypeError("Expected a function but received a "+typeof t);return r(function(n,r,o){e=t(e,n,r,o)},n),e};e.exports=o},{"@ndh oule/each":6}],10:[function(t,e,n){"use strict";var r=t("@ndhoule/each"),o=String.prototype.indexOf,i=function(t,e){return t===e?0!==t||1/t==1/e:t!==t&&e!==e},a=function(t,e){var n=!1;return"string"==typeof e?-1!==o.call(e,t):(r(function(e){if(i(e,t))return n=!0,!1},e),n)};e.exports=a},{"@ndhoule/each":6}],11:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=String.prototype.charAt,i=Object.prototype.toString,a=function(t,e){return o.call(t,e)},s=function(t,e){return r.call(t,e)},c=function(t){return"[object String]"===i.call(t)},u=function(t){return null!=t&&"function"!=typeof t&&"number"==typeof t.length},p=function(t,e){e=e||s;for(var n=[],r=0,o=t.length;r<o;r+=1)e(t,r)&&n.push(String(r));return n},l=function(t,e){e=e||s;var n=[];for(var r in t)e(t,r)&&n.push(String(r));return n},f=function(t){return null==t?[]:c(t)?p(t,a):u(t)?p(t,s):l(t)};e.exports=f},{}],12:[function(t,e,n){"use strict";var r=t("@ndhoule/each"),o=function(t,e){if("function"!=typeof t)throw new TypeError("Expected a function but received a "+typeof t);var n=[];return r(function(e,r,o){n.push(t(e,r,o))},e),n};e.exports=o},{"@ndhoule/each":6}],13:[function(t,e,n){"use strict";var r=Object.prototype.toString,o=function(t){return null!=t},i=function(t){return"[object Array]"===r.call(t)},a=function(t){return"string"==typeof t||"[object String]"===r.call(t)},s=function(t){return null!=t&&"object"==typeof t},c=function(t,e){if(!o(e)||!s(e))return{};a(t)&&(t=[t]),i(t)||(t=[]);for(var n={},r=0;r<t.length;r+=1)a(t[r])&&t[r]in e&&(n[t[r]]=e[t[r]]);return n};e.exports=c},{}],14:[function(t,e,n){"use strict";var r=Math.max,o=function(t){if(null==t||!t.length)return[];for(var e=new Array(r(t.length-2,0)),n=1;n<t.length;n+=1)e[n-1]=t[n];return e};e.exports=o},{}],15:[function(t,e,n){(function(n){"use strict";function r(){this._options({}),this.Integrations={},this._integrations={},this._readied=!1,this._timeout=300,this._user=z,this.log=m("analytics.js"),f(this);var t=this;this.on(" initialize",function(e,n){n.initialPageview&&t.page(),t._parseQuery(window.location.search)})}var o=n.analytics,i=t("segmentio-facade").Alias,a=t("component-emitter"),s=t("segmentio-facade").Group,c=t("segmentio-facade").Identify,u=t("segmentio-facade").Page,p=t("segmentio-facade").Track,l=t("@ndhoule/after"),f=t("bind-all"),d=t("@ndhoule/clone"),h=t("extend"),y=t("./cookie"),g=t("./metrics"),m=t("debug"),v=t("@ndhoule/defaults"),b=t("@ndhoule/each"),w=t("@ndhoule/foldl"),_=t("./group"),x=t("is"),j=t("@segment/is-meta"),k=t("@ndhoule/keys"),I=t("./memory"),T=t("next-tick"),O=t("./normalize"),C=t("component-event").bind,A=t("./pageDefaults"),S=t("@ndhoule/pick"),E=t("@segment/prevent-default"),D=t("component-querystring"),N=t("./store"),z=t("./user"),$=t("component-type");a(r.prototype),r.prototype.use=function(t){return t(this),this},r.prototype.addIntegration=function(t){var e=t.prototype.name;if(!e)throw new TypeError("attempted to add an invalid integration");return this.Integrat ions[e]=t,this},r.prototype.init=r.prototype.initialize=function(t,e){t=t||{},e=e||{},this._options(e),this._readied=!1;var n=this;b(function(e,r){n.Integrations[r]||delete t[r]},t),b(function(t,r){if(!e.integrations||!1!==e.integrations[r]&&(!1!==e.integrations.All||e.integrations[r])){var o=n.Integrations[r],i={};h(!0,i,t);var a=new o(i);n.log("initialize %o - %o",r,t),n.add(a)}},t);var r=this._integrations;z.load(),_.load();var o=k(r).length,i=l(o,function(){n._readied=!0,n.emit("ready")});return o<=0&&i(),this.failedInitializations=[],b(function(t){e.initialPageview&&!1===t.options.initialPageview&&(t.page=l(2,t.page)),t.analytics=n,t.once("ready",i);try{g.increment("analytics_js.integration.invoke",{method:"initialize",integration_name:t.name}),t.initialize()}catch(e){var r=t.name;g.increment("analytics_js.integration.invoke.error",{method:"initialize",integration_name:t.name}),n.failedInitializations.push(r),n.log("Error initializing %s integration: %o",r,e),t.ready()}},r),thi s.initialized=!0,this.emit("initialize",t,e),this},r.prototype.setAnonymousId=function(t){return this.user().anonymousId(t),this},r.prototype.add=function(t){return this._integrations[t.name]=t,this},r.prototype.identify=function(t,e,n,r){x.fn(n)&&(r=n,n=null),x.fn(e)&&(r=e,n=null,e=null),x.object(t)&&(n=e,e=t,t=z.id()),z.identify(t,e);var o=this.normalize({options:n,traits:z.traits(),userId:z.id()});return this.options.integrations&&v(o.integrations,this.options.integrations),this._invoke("identify",new c(o)),this.emit("identify",t,e,n),this._callback(r),this},r.prototype.user=function(){return z},r.prototype.group=function(t,e,n,r){if(!arguments.length)return _;x.fn(n)&&(r=n,n=null),x.fn(e)&&(r=e,n=null,e=null),x.object(t)&&(n=e,e=t,t=_.id()),_.identify(t,e);var o=this.normalize({options:n,traits:_.traits(),groupId:_.id()});return this.options.integrations&&v(o.integrations,this.options.integrations),this._invoke("group",new s(o)),this.emit("group",t,e,n),this._callback(r),this},r .prototype.track=function(t,e,n,r){x.fn(n)&&(r=n,n=null),x.fn(e)&&(r=e,n=null,e=null);var o=this.options.plan||{},i=o.track||{},a={},s=this.normalize({properties:e,options:n,event:t});if(o=i[t])this.log("plan %o - %o",t,o),a=!1===o.enabled?{All:!1,"Segment.io":!0}:o.integrations||{};else{(i.__default||{enabled:!0}).enabled||(a={All:!1,"Segment.io":!0})}return v(s.integrations,this._mergeInitializeAndPlanIntegrations(a)),this._invoke("track",new p(s)),this.emit("track",t,e,n),this._callback(r),this},r.prototype.trackClick=r.prototype.trackLink=function(t,e,n){if(!t)return this;"element"===$(t)&&(t=[t]);var r=this;return b(function(t){if("element"!==$(t))throw new TypeError("Must pass HTMLElement to `analytics.trackLink`.");C(t,"click",function(o){var i=x.fn(e)?e(t):e,a=x.fn(n)?n(t):n,s=t.getAttribute("href")||t.getAttributeNS("http://www.w3.org/1999/xlink","href")||t.getAttribute("xlink:href");r.track(i,a),s&&"_blank"!==t.target&&!j(o)&&(E(o),r._callback(function(){window.location.hr ef=s}))})},t),this},r.prototype.trackSubmit=r.prototype.trackForm=function(t,e,n){if(!t)return this;"element"===$(t)&&(t=[t]);var r=this;return b(function(t){function o(o){E(o);var i=x.fn(e)?e(t):e,a=x.fn(n)?n(t):n;r.track(i,a),r._callback(function(){t.submit()})}if("element"!==$(t))throw new TypeError("Must pass HTMLElement to `analytics.trackForm`.");var i=window.jQuery||window.Zepto;i?i(t).submit(o):C(t,"submit",o)},t),this},r.prototype.page=function(t,e,n,r,o){x.fn(r)&&(o=r,r=null),x.fn(n)&&(o=n,r=n=null),x.fn(e)&&(o=e,r=n=e=null),"object"===$(t)&&(r=e,n=t,e=t=null),"object"===$(e)&&(r=n,n=e,e=null),"string"===$(t)&&"string"!==$(e)&&(e=t,t=null),n=d(n)||{},e&&(n.name=e),t&&(n.category=t);var i=A();v(n,i);var a=S(k(i),n);x.empty(a)||(r=r||{},r.context=r.context||{},r.context.page=a);var s=this.normalize({properties:n,category:t,options:r,name:e});return this.options.integrations&&v(s.integrations,this.options.integrations),this._invoke("page",new u(s)),this.emit("page",t,e,n,r),t his._callback(o),this},r.prototype.pageview=function(t){var e={};return t&&(e.path=t),this.page(e),this},r.prototype.alias=function(t,e,n,r){x.fn(n)&&(r=n,n=null),x.fn(e)&&(r=e,n=null,e=null),x.object(e)&&(n=e,e=null);var o=this.normalize({options:n,previousId:e,userId:t});return this.options.integrations&&v(o.integrations,this.options.integrations),this._invoke("alias",new i(o)),this.emit("alias",t,e,n),this._callback(r),this},r.prototype.ready=function(t){return x.fn(t)&&(this._readied?T(t):this.once("ready",t)),this},r.prototype.timeout=function(t){this._timeout=t},r.prototype.debug=function(t){!arguments.length||t?m.enable("analytics:"+(t||"*")):m.disable()},r.prototype._options=function(t){return t=t||{},this.options=t,y.options(t.cookie),g.options(t.metrics),N.options(t.localStorage),z.options(t.user),_.options(t.group),this},r.prototype._callback=function(t){return x.fn(t)&&(this._timeout?setTimeout(t,this._timeout):T(t)),this},r.prototype._invoke=function(t,e){var n=this;g.i ncrement("analytics_js.invoke",{method:t}),this.emit("invoke",e);var r=n.failedInitializations||[];return b(function(o,i){if(e.enabled(i))if(r.indexOf(i)>=0)n.log("Skipping invokation of .%s method of %s integration. Integation failed to initialize properly.",t,i);else try{g.increment("analytics_js.integration.invoke",{method:t,integration_name:o.name}),o.invoke.call(o,t,e)}catch(e){g.increment("analytics_js.integration.invoke.error",{method:t,integration_name:o.name}),n.log("Error invoking .%s method of %s integration: %o",t,i,e)}},this._integrations),this},r.prototype.push=function(t){var e=t.shift();this[e]&&this[e].apply(this,t)},r.prototype.reset=function(){this.user().logout(),this.group().logout()},r.prototype._parseQuery=function(t){function e(t,e){var n,r=t.length;return w(function(e,o,i){return i.substr(0,r)===t&&(n=i.substr(r),e[n]=o),e},{},e)}var n=D.parse(t),r=e("ajs_trait_",n),o=e("ajs_prop_",n);return n.ajs_uid&&this.identify(n.ajs_uid,r),n.ajs_event&&this.track(n.ajs _event,o),n.ajs_aid&&z.anonymousId(n.ajs_aid),this},r.prototype.normalize=function(t){return t=O(t,k(this._integrations)),t.anonymousId&&z.anonymousId(t.anonymousId),t.anonymousId=z.anonymousId(),t.context.page=v(t.context.page||{},A()),t},r.prototype._mergeInitializeAndPlanIntegrations=function(t){if(!this.options.integrations)return t;var e,n=h({},this.options.integrations);!1===t.All&&(n={All:!1});for(e in t)t.hasOwnProperty(e)&&!1!==this.options.integrations[e]&&(n[e]=t[e]);return n},r.prototype.noConflict=function(){return window.analytics=o,this},e.exports=r,e.exports.cookie=y,e.exports.memory=I,e.exports.store=N,e.exports.metrics=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"./cookie":16,"./group":18,"./memory":20,"./metrics":21,"./normalize":22,"./pageDefaults":23,"./store":24,"./user":25,"@ndhoule/after":1,"@ndhoule/clone":3,"@ndhoule/defaults":4,"@ndhoule/each":6,"@ndhoule/foldl":9,"@ndhoule/keys":11, "@ndhoule/pick":13,"@segment/is-meta":34,"@segment/prevent-default":38,"bind-all":43,"component-emitter":48,"component-event":49,"component-querystring":51,"component-type":53,debug:26,extend:58,is:62,"next-tick":71,"segmentio-facade":81}],16:[function(t,e,n){"use strict";function r(t){this.options(t)}var o=t("bind-all"),i=t("@ndhoule/clone"),a=t("component-cookie"),s=t("debug")("analytics.js:cookie"),c=t("@ndhoule/defaults"),u=t("json3"),p=t("@segment/top-domain");r.prototype.options=function(t){if(0===arguments.length)return this._options;t=t||{};var e="."+p(window.location.href);"."===e&&(e=null),this._options=c(t,{maxage:31536e6,path:"/",domain:e}),this.set("ajs:test",!0),this.get("ajs:test")||(s("fallback to domain=null"),this._options.domain=null),this.remove("ajs:test")},r.prototype.set=function(t,e){try{return e=u.stringify(e),a(t,e,i(this._options)),!0}catch(t){return!1}},r.prototype.get=function(t){try{var e=a(t);return e=e?u.parse(e):null}catch(t){return null}},r.prototyp e.remove=function(t){try{return a(t,null,i(this._options)),!0}catch(t){return!1}},e.exports=o(new r),e.exports.Cookie=r},{"@ndhoule/clone":3,"@ndhoule/defaults":4,"@segment/top-domain":41,"bind-all":43,"component-cookie":45,debug:26,json3:63}],17:[function(t,e,n){"use strict";function r(t){this.options(t),this.initialize()}var o=t("@ndhoule/clone"),i=t("./cookie"),a=t("debug")("analytics:entity"),s=t("@ndhoule/defaults"),c=t("@ndhoule/extend"),u=t("./memory"),p=t("./store"),l=t("@segment/isodate-traverse");e.exports=r,r.prototype.initialize=function(){return i.set("ajs:cookies",!0),i.get("ajs:cookies")?(i.remove("ajs:cookies"),void(this._storage=i)):p.enabled?void(this._storage=p):(a("warning using memory store both cookies and localStorage are disabled"),void(this._storage=u))},r.prototype.storage=function(){return this._storage},r.prototype.options=function(t){if(0===arguments.length)return this._options;this._options=s(t||{},this.defaults||{})},r.prototype.id=function(t){switch(a rguments.length){case 0:return this._getId();case 1:return this._setId(t)}},r.prototype._getId=function(){var t=this._options.persist?this.storage().get(this._options.cookie.key):this._id;return void 0===t?null:t},r.prototype._setId=function(t){this._options.persist?this.storage().set(this._options.cookie.key,t):this._id=t},r.prototype.properties=r.prototype.traits=function(t){switch(arguments.length){case 0:return this._getTraits();case 1:return this._setTraits(t)}},r.prototype._getTraits=function(){var t=this._options.persist?p.get(this._options.localStorage.key):this._traits;return t?l(o(t)):{}},r.prototype._setTraits=function(t){t=t||{},this._options.persist?p.set(this._options.localStorage.key,t):this._traits=t},r.prototype.identify=function(t,e){e=e||{};var n=this.id();null!==n&&n!==t||(e=c(this.traits(),e)),t&&this.id(t),this.debug("identify %o, %o",t,e),this.traits(e),this.save()},r.prototype.save=function(){return!!this._options.persist&&(i.set(this._options.cookie.key,this .id()),p.set(this._options.localStorage.key,this.traits()),!0)},r.prototype.logout=function(){this.id(null),this.traits({}),i.remove(this._options.cookie.key),p.remove(this._options.localStorage.key)},r.prototype.reset=function(){this.logout(),this.options({})},r.prototype.load=function(){this.id(i.get(this._options.cookie.key)),this.traits(p.get(this._options.localStorage.key))}},{"./cookie":16,"./memory":20,"./store":24,"@ndhoule/clone":3,"@ndhoule/defaults":4,"@ndhoule/extend":8,"@segment/isodate-traverse":35,debug:26}],18:[function(t,e,n){"use strict";function r(t){this.defaults=r.defaults,this.debug=a,o.call(this,t)}var o=t("./entity"),i=t("bind-all"),a=t("debug")("analytics:group"),s=t("inherits");r.defaults={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},s(r,o),e.exports=i(new r),e.exports.Group=r},{"./entity":17,"bind-all":43,debug:26,inherits:60}],19:[function(t,e,n){"use strict";var r=t("./analytics"),o=new r;o.require=t,o.VERSION=t("../p ackage.json").version,e.exports=o},{"../package.json":27,"./analytics":15}],20:[function(t,e,n){"use strict";function r(){this.store={}}var o=t("bind-all"),i=t("@ndhoule/clone"),a=Object.prototype.hasOwnProperty;e.exports=o(new r),r.prototype.set=function(t,e){return this.store[t]=i(e),!0},r.prototype.get=function(t){if(a.call(this.store,t))return i(this.store[t])},r.prototype.remove=function(t){return delete this.store[t],!0}},{"@ndhoule/clone":3,"bind-all":43}],21:[function(t,e,n){"use strict";function r(t){this.options(t)}var o=t("bind-all"),i=t("@segment/send-json"),a=t("debug")("analytics.js:metrics");r.prototype.options=function(t){if(t=t||{},this.host=t.host||"api.segment.io/v1",this.sampleRate=t.sampleRate||0,this.flushTimer=t.flushTimer||3e4,this.maxQueueSize=t.maxQueueSize||20,this.queue=[],this.sampleRate>0){var e=this;setInterval(function(){e._flush()},this.flushTimer)}},r.prototype.increment=function(t,e){Math.random()>this.sampleRate||this.queue.length>=this.maxQueueSi ze||(this.queue.push({type:"Counter",metric:t,value:1,tags:e}),t.indexOf("error")>0&&this._flush())},r.prototype._flush=function(){var t=this;if(!(t.queue.length<=0)){var e={series:this.queue},n={"Content-Type":"text/plain"};t.queue=[],"xhr"===i.type&&i("https://"+this.host+"/m",e,n,function(t,n){a("sent %O, received %O",e,[t,n])})}},e.exports=o(new r),e.exports.Metrics=r},{"@segment/send-json":39,"bind-all":43,debug:26}],22:[function(t,e,n){"use strict";function r(t,e){function n(t){return!(!s(t,e)&&"all"!==t.toLowerCase()&&!s(t.toLowerCase(),r))}var r=c(function(t){return t.toLowerCase()},e),f=t.options||{},d=f.integrations||{},h=f.providers||{},y=f.context||{},g={};return o("<-",t),a(function(t,e){n(e)&&(p.call(d,e)||(d[e]=t),delete f[e])},f),delete f.providers,a(function(t,e){n(e)&&"object"!==u(d[e])&&(p.call(d,e)&&"boolean"==typeof h[e]||(d[e]=t))},h),a(function(t,e){s(e,l)?g[e]=f[e]:y[e]=f[e]},f),delete t.options,g.integrations=d,g.context=y,g=i(g,t),o("->",g),g}var o=t("debug ")("analytics.js:normalize"),i=t("@ndhoule/defaults"),a=t("@ndhoule/each"),s=t("@ndhoule/includes"),c=t("@ndhoule/map"),u=t("component-type"),p=Object.prototype.hasOwnProperty;e.exports=r;var l=["integrations","anonymousId","timestamp","context"]},{"@ndhoule/defaults":4,"@ndhoule/each":6,"@ndhoule/includes":10,"@ndhoule/map":12,"component-type":53,debug:26}],23:[function(t,e,n){"use strict";function r(){return{path:o(),referrer:document.referrer,search:location.search,title:document.title,url:i(location.search)}}function o(){var t=a();return t?c.parse(t).pathname:window.location.pathname}function i(t){var e=a();if(e)return s("?",e)?e:e+t;var n=window.location.href,r=n.indexOf("#");return-1===r?n:n.slice(0,r)}var a=t("@segment/canonical"),s=t("@ndhoule/includes"),c=t("component-url");e.exports=r},{"@ndhoule/includes":10,"@segment/canonical":32,"component-url":54}],24:[function(t,e,n){"use strict";function r(t){this.options(t)}var o=t("bind-all"),i=t("@ndhoule/defaults"),a=t("@segment /store");r.prototype.options=function(t){if(0===arguments.length)return this._options;t=t||{},i(t,{enabled:!0}),this.enabled=t.enabled&&a.enabled,this._options=t},r.prototype.set=function(t,e){return!!this.enabled&&a.set(t,e)},r.prototype.get=function(t){return this.enabled?a.get(t):null},r.prototype.remove=function(t){return!!this.enabled&&a.remove(t)},e.exports=o(new r),e.exports.Store=r},{"@ndhoule/defaults":4,"@segment/store":40,"bind-all":43}],25:[function(t,e,n){"use strict";function r(t){this.defaults=r.defaults,this.debug=s,o.call(this,t)}var o=t("./entity"),i=t("bind-all"),a=t("./cookie"),s=t("debug")("analytics:user"),c=t("inherits"),u=t("component-cookie"),p=t("uuid");r.defaults={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},c(r,o),r.prototype.id=function(t){var e=this._getId(),n=o.prototype.id.apply(this,arguments);return null==e?n:(e!=t&&t&&this.anonymousId(null),n)},r.prototype.anonymousId=function(t){var e=this.storage() ;return arguments.length?(e.set("ajs_anonymous_id",t),this):(t=e.get("ajs_anonymous_id"))?t:(t=u("_sio"))?(t=t.split("----")[0],e.set("ajs_anonymous_id",t),e.remove("_sio"),t):(t=p.v4(),e.set("ajs_anonymous_id",t),e.get("ajs_anonymous_id"))},r.prototype.logout=function(){o.prototype.logout.call(this),this.anonymousId(null)},r.prototype.load=function(){this._loadOldCookie()||o.prototype.load.call(this)},r.prototype._loadOldCookie=function(){var t=a.get(this._options.cookie.oldKey);return!!t&&(this.id(t.id),this.traits(t.traits),a.remove(this._options.cookie.oldKey),!0)},e.exports=i(new r),e.exports.User=r},{"./cookie":16,"./entity":17,"bind-all":43,"component-cookie":45,debug:26,inherits:60,uuid:95}],26:[function(t,e,n){function r(t){return r.enabled(t)?function(e){e=o(e);var n=new Date,i=n-(r[t]||n);r[t]=n,e=t+" "+e+" +"+r.humanize(i),window.console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}:function(){}}function o(t){return t instanceof Error?t.stac k||t.message:t}e.exports=r,r.names=[],r.skips=[],r.enable=function(t){try{localStorage.debug=t}catch(t){}for(var e=(t||"").split(/[\s,]+/),n=e.length,o=0;o<n;o++)t=e[o].replace("*",".*?"),"-"===t[0]?r.skips.push(new RegExp("^"+t.substr(1)+"$")):r.names.push(new RegExp("^"+t+"$"))},r.disable=function(){r.enable("")},r.humanize=function(t){return t>=36e5?(t/36e5).toFixed(1)+"h":t>=6e4?(t/6e4).toFixed(1)+"m":t>=1e3?(t/1e3|0)+"s":t+"ms"},r.enabled=function(t){for(var e=0,n=r.skips.length;e<n;e++)if(r.skips[e].test(t))return!1;for(var e=0,n=r.names.length;e<n;e++)if(r.names[e].test(t))return!0;return!1};try{window.localStorage&&r.enable(localStorage.debug)}catch(t){}},{}],27:[function(t,e,n){e.exports={name:"@segment/analytics.js-core",author:"Segment <frie...@segment.com>",version:"3.7.2",description:"The hassle-free way to integrate analytics into any web application.",keywords:["analytics","analytics.js","segment","segment.io"],main:"lib/index.js",scripts:{test:"make test",lint:'eslin t "./{lib,test}/**/*.js"',format:'prettier-eslint --write --list-different "./{lib,test}/**/*.{js,json,md}"',precommit:"lint-staged",np:"np --no-publish"},"lint-staged":{linters:{"*.{js,json,md}":["prettier-eslint --write","git add"]}},repository:{type:"git",url:"https://github.com/segmentio/analytics.js-core"},license:"SEE LICENSE IN LICENSE",bugs:{url:"https://github.com/segmentio/analytics.js-core/issues"},homepage:"https://github.com/segmentio/analytics.js-core#readme",dependencies:{"@ndhoule/after":"^1.0.0","@ndhoule/clone":"^1.0.0","@ndhoule/defaults":"^2.0.1","@ndhoule/each":"^2.0.1","@ndhoule/extend":"^2.0.0","@ndhoule/foldl":"^2.0.1","@ndhoule/includes":"^2.0.1","@ndhoule/keys":"^2.0.0","@ndhoule/map":"^2.0.1","@ndhoule/pick":"^2.0.0","@segment/canonical":"^1.0.0","@segment/is-meta":"^1.0.0","@segment/isodate":"^1.0.2","@segment/isodate-traverse":"^1.0.1","@segment/prevent-default":"^1.0.0","@segment/send-json":"^3.0.0","@segment/store":"^1.3.20","@segment/top-domain":"^3.0 .0","bind-all":"^1.0.0","component-cookie":"^1.1.2","component-emitter":"^1.2.1","component-event":"^0.1.4","component-querystring":"^2.0.0","component-type":"^1.2.1","component-url":"^0.2.1",debug:"^0.7.4",extend:"3.0.1",inherits:"^2.0.1",install:"^0.7.3",is:"^3.1.0",json3:"^3.3.2","new-date":"^1.0.0","next-tick":"^0.2.2","segmentio-facade":"^3.0.2",uuid:"^2.0.2"},devDependencies:{"@segment/analytics.js-integration":"^3.2.1","@segment/eslint-config":"^4.0.0",browserify:"13.0.0","browserify-istanbul":"^2.0.0",codecov:"^3.0.2","compat-trigger-event":"^1.0.0","component-each":"^0.2.6",eslint:"^4.19.1","eslint-config-prettier":"^2.9.0","eslint-plugin-mocha":"^5.0.0","eslint-plugin-react":"^7.9.1","eslint-plugin-require-path-exists":"^1.1.8",husky:"^0.14.3",istanbul:"^0.4.3",jquery:"^3.2.1",karma:"1.3.0","karma-browserify":"^5.0.4","karma-chrome-launcher":"^1.0.1","karma-coverage":"^1.0.0","karma-junit-reporter":"^1.0.0","karma-mocha":"1.0.1","karma-phantomjs-launcher":"^1.0.0","karma-s auce-launcher":"^1.0.0","karma-spec-reporter":"0.0.26","karma-summary-reporter":"^1.5.0","lint-staged":"^7.2.0",mocha:"^2.2.5",np:"^3.0.4","phantomjs-prebuilt":"^2.1.7","prettier-eslint-cli":"^4.7.1",proclaim:"^3.4.1",sinon:"^1.7.3",snyk:"^1.83.0",watchify:"^3.7.0"}}},{}],28:[function(t,e,n){"use strict";function r(t){function e(n){if(n&&n.addIntegration)return n.addIntegration(e);this.debug=a("analytics:integration:"+u(t)),this.options=s(i(n)||{},this.defaults),this._queue=[],this.once("ready",o(this,this.flush)),e.emit("construct",this),this.ready=o(this,this.ready),this._wrapInitialize(),this._wrapPage(),this._wrapTrack()}return e.prototype.defaults={},e.prototype.globals=[],e.prototype.templates={},e.prototype.name=t,c(e,l),c(e.prototype,p),e}var o=t("component-bind"),i=t("@ndhoule/clone"),a=t("debug"),s=t("@ndhoule/defaults"),c=t("@ndhoule/extend"),u=t("slug-component"),p=t("./protos"),l=t("./statics");e.exports=r},{"./protos":29,"./statics":30,"@ndhoule/clone":3,"@ndhoule/defa ults":4,"@ndhoule/extend":8,"component-bind":44,debug:55,"slug-component":87}],29:[function(t,e,n){"use strict";function r(t){return y.array(t)?f(o,t)?"mixed":"array":y.object(t)?"map":"unknown"}function o(t){return!!y.object(t)&&(!!y.string(t.key)&&!!w.call(t,"value"))}function i(t,e){e=e||function(){};var n=new Image;return n.onerror=a(e,"failed to load pixel",n),n.onload=function(){e()},n.src=t.src,n.width=1,n.height=1,n}function a(t,e,n){return function(r){r=r||window.event;var o=new Error(e);o.event=r,o.source=n,t(o)}}function s(t,e){return h(function(t,n,r){return t[r]=n.replace(/\{\{\ *(\w+)\ *\}\}/g,function(t,n){return e[n]}),t},{},t.attrs)}var c=t("component-emitter"),u=t("@ndhoule/after"),p=t("@ndhoule/each"),l=t("analytics-events"),f=t("@ndhoule/every"),d=t("@segment/fmt"),h=t("@ndhoule/foldl"),y=t("is"),g=t("load-iframe"),m=t("@segment/load-script"),v=t("next-tick"),b=t("to-no-case"),w=Object.prototype.hasOwnProperty,_=function(){},x=window.onerror;c(n),n.initialize=fun ction(){var t=this.ready;v(t)},n.loaded=function(){return!1},n.page=function(t){},n.track=function(t){},n.map=function(t,e){var n=b(e),o=r(t);return"unknown"===o?[]:h(function(t,e,r){var i,a;return"map"===o&&(i=r,a=e),"array"===o&&(i=e,a=e),"mixed"===o&&(i=e.key,a=e.value),b(i)===n&&t.push(a),t},[],t)},n.invoke=function(t){if(this[t]){var e=Array.prototype.slice.call(arguments,1);return this._ready?(this.debug("%s with %o",t,e),this[t].apply(this,e)):this.queue(t,e)}},n.queue=function(t,e){if("page"===t&&this._assumesPageview&&!this._initialized)return this.page.apply(this,e);this._queue.push({method:t,args:e})},n.flush=function(){this._ready=!0;var t=this;p(function(e){t[e.method].apply(t,e.args)},this._queue),this._queue.length=0},n.reset=function(){for(var t=0;t<this.globals.length;t++)window[this.globals[t]]=void 0;window.onerror=x,window.onload=null},n.load=function(t,e,n){"function"==typeof t&&(n=t,e=null,t=null),t&&"object"==typeof t&&(n=e,e=t,t=null),"function"==typeof e&&(n =e,e=null),t=t||"library",e=e||{},e=this.locals(e);var r=this.templates[t];if(!r)throw new Error(d('template "%s" not defined.',t));var o=s(r,e);n=n||_;var a,c=this;switch(r.type){case"img":o.width=1,o.height=1,a=i(o,n);break;case"script":a=m(o,function(t){if(!t)return n();c.debug('error loading "%s" error="%s"',c.name,t)}),delete o.src,p(function(t,e){a.setAttribute(e,t)},o);break;case"iframe":a=g(o,n)}return a},n.locals=function(t){t=t||{};var e=Math.floor((new Date).getTime()/36e5);return t.hasOwnProperty("cache")||(t.cache=e),p(function(e,n){t.hasOwnProperty(n)||(t[n]=e)},this.options),t},n.ready=function(){this.emit("ready")},n._wrapInitialize=function(){var t=this.initialize;this.initialize=function(){this.debug("initialize"),this._initialized=!0;var e=t.apply(this,arguments);return this.emit("initialize"),e},this._assumesPageview&&(this.initialize=u(2,this.initialize))},n._wrapPage=function(){var t=this.page;this.page=function(){return this._assumesPageview&&!this._initialize d?this.initialize.apply(this,arguments):t.apply(this,arguments)}},n._wrapTrack=function(){var t=this.track;this.track=function(e){var n,r,o=e.event();for(var i in l)if(w.call(l,i)){var a=l[i];if(!this[i])continue;if(!a.test(o))continue;r=this[i].apply(this,arguments),n=!0;break}return n||(r=t.apply(this,arguments)),r}}},{"@ndhoule/after":1,"@ndhoule/each":6,"@ndhoule/every":7,"@ndhoule/foldl":9,"@segment/fmt":33,"@segment/load-script":37,"analytics-events":42,"component-emitter":48,is:62,"load-iframe":65,"next-tick":71,"to-no-case":90}],30:[function(t,e,n){"use strict";function r(t){t=t.replace(' src="',' data-src="');var e=i(t),n={};return a(function(e){var r="data-src"===e.name?"src":e.name;s(e.name+"=",t)&&(n[r]=e.value)},e.attributes),{type:e.tagName.toLowerCase(),attrs:n}}var o=t("component-emitter"),i=t("domify"),a=t("@ndhoule/each"),s=t("@ndhoule/includes");o(n),n.option=function(t,e){return this.prototype.defaults[t]=e,this},n.mapping=function(t){return this.option(t,[]),thi s.prototype[t]=function(e){return this.map(this.options[t],e)},this},n.global=function(t){ -return this.prototype.globals.push(t),this},n.assumesPageview=function(){return this.prototype._assumesPageview=!0,this},n.readyOnLoad=function(){return this.prototype._readyOnLoad=!0,this},n.readyOnInitialize=function(){return this.prototype._readyOnInitialize=!0,this},n.tag=function(t,e){return null==e&&(e=t,t="library"),this.prototype.templates[t]=r(e),this}},{"@ndhoule/each":6,"@ndhoule/includes":10,"component-emitter":48,domify:57}],31:[function(t,e,n){function r(t){var e,n,r,a,s,c,u,p="",l=0;for(t=o(t);l<t.length;)e=t.charCodeAt(l++),n=t.charCodeAt(l++),r=t.charCodeAt(l++),a=e>>2,s=(3&e)<<4|n>>4,c=(15&n)<<2|r>>6,u=63&r,isNaN(n)?c=u=64:isNaN(r)&&(u=64),p=p+i.charAt(a)+i.charAt(s)+i.charAt(c)+i.charAt(u);return p}var o=t("utf8-encode"),i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";e.exports=r},{"utf8-encode":93}],32:[function(t,e,n){"use strict";function r(){for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute(" rel"))return t.getAttribute("href")}e.exports=r},{}],33:[function(t,e,n){(function(t){"use strict";function n(t){var e=Array.prototype.slice.call(arguments,1),r=0;return t.replace(/%([a-z])/gi,function(t,o){return n[o]?n[o](e[r++]):t+o})}var r=t.JSON&&"function"==typeof JSON.stringify?JSON.stringify:String;n.o=r,n.s=String,n.d=parseInt,e.exports=n}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],34:[function(t,e,n){"use strict";function r(t){if(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)return!0;var e=t.which,n=t.button;return e||void 0===n?2===e:1&!n&&2&!n&&4&n}e.exports=r},{}],35:[function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=!0),"object"===a(t)?o(t,e):"array"===a(t)?i(t,e):t}function o(t,e){return!t.length||"number"!=typeof t.length||t.length-1 in t||(t.lengthNonArray=t.length,delete t.length),s(t,function(n,o){c.is(o,e)?t[n]=c.parse(o):"object"!==a(o)&&"array"!==a(o)||r(o,e)}),t.lengthNonA rray&&(t.length=t.lengthNonArray,delete t.lengthNonArray),t}function i(t,e){return s(t,function(n,o){"object"===a(n)?r(n,e):c.is(n,e)&&(t[o]=c.parse(n))}),t}var a=t("component-type"),s=t("component-each"),c=t("@segment/isodate");e.exports=r},{"@segment/isodate":36,"component-each":46,"component-type":53}],36:[function(t,e,n){"use strict";var r=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;n.parse=function(t){var e=[1,5,6,7,11,12],n=r.exec(t),o=0;if(!n)return new Date(t);for(var i,a=0;i=e[a];a++)n[i]=parseInt(n[i],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0," "===n[4]?o=(new Date).getTimezoneOffset():"Z"!==n[9]&&n[10]&&(o=60*n[11]+n[12],"+"===n[10]&&(o=0-o));var s=Date.UTC(n[1],n[2],n[3],n[5],n[6]+o,n[7],n[8]);return new Date(s)},n.is=function(t,e){return"string"==typeof t&&((!e||!1!==/^\d{4}-\d{2}-\d{2}/.test(t))&&r.test(t))}},{}],37: [function(t,e,n){"use strict";function r(t,e){if(!t)throw new Error("Can't load nothing...");"string"===a(t)&&(t={src:t});var n="https:"===document.location.protocol||"chrome-extension:"===document.location.protocol;t.src&&0===t.src.indexOf("//")&&(t.src=(n?"https:":"http:")+t.src),n&&t.https?t.src=t.https:!n&&t.http&&(t.src=t.http);var r=document.createElement("script");return r.type="text/javascript",r.async=!0,r.src=t.src,"function"===a(e)&&o(r,e),i(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(r,t)}),r}var o=t("script-onload"),i=t("next-tick"),a=t("component-type");e.exports=r},{"component-type":53,"next-tick":71,"script-onload":74}],38:[function(t,e,n){"use strict";function r(t){return t=t||window.event,t.preventDefault?t.preventDefault():t.returnValue=!1}e.exports=r},{}],39:[function(t,e,n){"use strict";function r(t,e,n,r){function o(){if(4===i.readyState)return r(null,i)}3===arguments.length&&(r=n,n={});var i=new XMLHttpRequest;i.onerro r=r,i.onreadystatechange=o,i.open("POST",t,!0);for(var s in n)i.setRequestHeader(s,n[s]);i.send(a.stringify(e))}function o(t,e,r,o){3===arguments.length&&(o=r);var a=n.prefix,s=i(e);t+="?"+a+"="+s,u(t,{param:n.callback},function(e,n){if(e)return o(e);o(null,{url:t,body:n})})}function i(t){var e="";return e=a.stringify(t),e=s(e),e=e.replace(/\+/g,"-").replace(/\//g,"_"),encodeURIComponent(e)}var a=t("json3"),s=t("@segment/base64-encode"),c=t("has-cors"),u=t("jsonp");n=e.exports=c?r:o,n.callback="callback",n.prefix="data",n.json=r,n.base64=o,n.type=c?"xhr":"jsonp"},{"@segment/base64-encode":31,"has-cors":59,json3:63,jsonp:64}],40:[function(t,e,n){(function(n){"use strict";var r=t("json3");e.exports=function(){var t,e={},o="undefined"!=typeof window?window:n,i=o.document,a="localStorage";if(e.disabled=!1,e.version="1.3.20",e.set=function(t,e){},e.get=function(t,e){},e.has=function(t){return void 0!==e.get(t)},e.remove=function(t){},e.clear=function(){},e.transact=function(t,n,r){null== r&&(r=n,n=null),null==n&&(n={});var o=e.get(t,n);r(o),e.set(t,o)},e.getAll=function(){var t={};return e.forEach(function(e,n){t[e]=n}),t},e.forEach=function(){},e.serialize=function(t){return r.stringify(t)},e.deserialize=function(t){if("string"==typeof t)try{return r.parse(t)}catch(e){return t||void 0}},function(){try{return a in o&&o[a]}catch(t){return!1}}())t=o[a],e.set=function(n,r){return void 0===r?e.remove(n):(t.setItem(n,e.serialize(r)),r)},e.get=function(n,r){var o=e.deserialize(t.getItem(n));return void 0===o?r:o},e.remove=function(e){t.removeItem(e)},e.clear=function(){t.clear()},e.forEach=function(n){for(var r=0;r<t.length;r++){var o=t.key(r);n(o,e.get(o))}};else if(i&&i.documentElement.addBehavior){var s,c;try{c=new ActiveXObject("htmlfile"),c.open(),c.write('<script>document.w=window<\/script><iframe src="/favicon.ico"></iframe>'),c.close(),s=c.w.frames[0].document,t=s.createElement("div")}catch(e){t=i.createElement("div"),s=i.body}var u=function(n){return function(){v ar r=Array.prototype.slice.call(arguments,0);r.unshift(t),s.appendChild(t),t.addBehavior("#default#userData"),t.load(a);var o=n.apply(e,r);return s.removeChild(t),o}},p=new RegExp("[!\"#$%&'()*+,/\\\\:;<=>?@[\\]^`{|}~]","g"),l=function(t){return t.replace(/^d/,"___$&").replace(p,"___")};e.set=u(function(t,n,r){return n=l(n),void 0===r?e.remove(n):(t.setAttribute(n,e.serialize(r)),t.save(a),r)}),e.get=u(function(t,n,r){n=l(n);var o=e.deserialize(t.getAttribute(n));return void 0===o?r:o}),e.remove=u(function(t,e){e=l(e),t.removeAttribute(e),t.save(a)}),e.clear=u(function(t){var e=t.XMLDocument.documentElement.attributes;t.load(a);for(var n=e.length-1;n>=0;n--)t.removeAttribute(e[n].name);t.save(a)}),e.forEach=u(function(t,n){for(var r,o=t.XMLDocument.documentElement.attributes,i=0;r=o[i];++i)n(r.name,e.deserialize(t.getAttribute(r.name)))})}try{var f="__storejs__";e.set(f,f),e.get(f)!=f&&(e.disabled=!0),e.remove(f)}catch(t){e.disabled=!0}return e.enabled=!e.disabled,e}()}).call(this," undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{json3:63}],41:[function(t,e,n){"use strict";function r(t){for(var e=n.cookie,r=n.levels(t),o=0;o<r.length;++o){var i=r[o],a={domain:"."+i};if(e("__tld__",1,a),e("__tld__"))return e("__tld__",null,a),i}return""}var o=t("component-url").parse,i=t("component-cookie");r.levels=function(t){var e=o(t).hostname,n=e.split("."),r=n[n.length-1],i=[];if(4===n.length&&r===parseInt(r,10))return i;if(n.length<=1)return i;for(var a=n.length-2;a>=0;--a)i.push(n.slice(a).join("."));return i},r.cookie=i,n=e.exports=r},{"component-cookie":45,"component-url":54}],42:[function(t,e,n){e.exports={promotionViewed:/^[ _]?promotion[ _]?viewed?[ _]?$/i,viewedPromotion:/^[ _]?viewed[ _]?promotion?[ _]?$/i,promotionClicked:/^[ _]?promotion[ _]?clicked?[ _]?$/i,clickedPromotion:/^[ _]?clicked[ _]?promotion?[ _]?$/i,productsSearched:/^[ _]?products[ _]?searched[ _]?$/i,productListViewed:/^[ _]?product[ _]?list[ _]?viewed[ _]?$/i,productListFiltered:/^[ _]?product[ _]?list[ _]?filtered[ _]?$/i,viewedProductCategory:/^[ _]?viewed[ _]?product[ _]?category[ _]?$/i,viewedProductDetails:/^[ _]?viewed[ _]?product[ _]?details?[ _]?$/i,productClicked:/^[ _]?product[ _]?clicked[ _]?$/i,clickedProduct:/^[ _]?clicked[ _]?product[ _]?$/i,productViewed:/^[ _]?product[ _]?viewed[ _]?$/i,viewedProduct:/^[ _]?viewed[ _]?product[ _]?$/i,productAdded:/^[ _]?product[ _]?added[ _]?$/i,addedProduct:/^[ _]?added[ _]?product[ _]?$/i,productRemoved:/^[ _]?product[ _]?removed[ _]?$/i,removedProduct:/^[ _]?removed[ _]?product[ _]?$/i,cartViewed:/^[ _]?cart[ _]?viewed[ _]?$/i,orderStarted:/^[ _]?order[ _]?started[ _]?$/i,startedOrder:/^[ _]?started[ _]?order[ _]?$/i,orderUpdated:/^[ _]?order[ _]?updated[ _]?$/i,updatedOrder:/^[ _]?updated[ _]?order[ _]?$/i,orderCompleted:/^[ _]?order[ _]?completed[ _]?$/i,completedOrder:/^[ _]?completed[ _]?order[ _]?$/i,orderRefunded:/^[ _]?order[ _]?refunded[ _]?$/i,refundedOrder:/ ^[ _]?refunded[ _]?order[ _]?$/i,orderCancelled:/^[ _]?order[ _]?cancelled[ _]?$/i,paymentInfoAdded:/^[ _]?payment[ _]?info[ _]?added[ _]?$/i,checkoutStarted:/^[ _]?checkout[ _]?started[ _]?$/i,checkoutStepViewed:/^[ _]?checkout[ _]?step[ _]?viewed[ _]?$/i,viewedCheckoutStep:/^[ _]?viewed[ _]?checkout[ _]?step[ _]?$/i,checkoutStepCompleted:/^[ _]?checkout[ _]?step[ _]?completed[ _]?$/i,completedCheckoutStep:/^[ _]?completed[ _]?checkout[ _]?step[ _]?$/i,couponEntered:/^[ _]?coupon[ _]?entered[ _]?$/i,couponApplied:/^[ _]?coupon[ _]?applied[ _]?$/i,couponDenied:/^[ _]?coupon[ _]?denied[ _]?$/i,couponRemoved:/^[ _]?coupon[ _]?removed[ _]?$/i,productAddedToWishlist:/^[ _]?product[ _]?added[ _]?to[ _]?wishlist[ _]?$/i,wishlistProductRemoved:/^[ _]?wishlist[ _]?product[ _]?removed[ _]?$/i,wishlistProductAddedToCart:/^[ _]?wishlist[ _]?product[ _]?added[ _]?to[ _]?cart[ _]?$/i,productShared:/^[ _]?product[ _]?shared[ _]?$/i,cartShared:/^[ _]?cart[ _]?shared[ _]?$/i,productRemoved:/^[ _]?p roduct[ _]?removed[ _]?$/i,applicationInstalled:/^[ _]?application[ _]?installed[ _]?$/i,applicationUpdated:/^[ _]?application[ _]?updated[ _]?$/i,applicationOpened:/^[ _]?application[ _]?opened[ _]?$/i,applicationBackgrounded:/^[ _]?application[ _]?backgrounded[ _]?$/i,applicationUninstalled:/^[ _]?application[ _]?uninstalled[ _]?$/i,installAttributed:/^[ _]?install[ _]?attributed[ _]?$/i,deepLinkOpened:/^[ _]?deep[ _]?link[ _]?opened[ _]?$/i,pushNotificationReceived:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationTapped:/^[ _]?push[ _]?notification[ _]?received[ _]?$/i,pushNotificationBounced:/^[ _]?push[ _]?notification[ _]?bounced[ _]?$/i}},{}],43:[function(t,e,n){"use strict";function r(t){for(var e in t){"function"==typeof t[e]&&(t[e]=o(t,t[e]))}return t}var o=t("component-bind");e.exports=r},{"component-bind":44}],44:[function(t,e,n){var r=[].slice;e.exports=function(t,e){if("string"==typeof e&&(e=t[e]),"function"!=typeof e)throw new Error("bind() requires a function");var n=r.call(arguments,2);return function(){return e.apply(t,n.concat(r.call(arguments)))}}},{}],45:[function(t,e,n){function r(t,e,n){n=n||{};var r=s(t)+"="+s(e);null==e&&(n.maxage=-1),n.maxage&&(n.expires=new Date(+new Date+n.maxage)),n.path&&(r+="; path="+n.path),n.domain&&(r+="; domain="+n.domain),n.expires&&(r+="; expires="+n.expires.toUTCString()),n.secure&&(r+="; secure"),document.cookie=r}function o(){var t;try{t=document.cookie}catch(t){return"undefined"!=typeof console&&"function"==typeof console.error&&console.error(t.stack||t),{}}return a(t)}function i(t){return o()[t]}function a(t){var e,n={},r=t.split(/ *; */);if(""==r[0])return n;for(var o=0;o<r.length;++o)e=r[o].split("="),n[c(e[0])]=c(e[1]);return n}function s(t){try{return encodeURIComponent(t)}catch(e){u("error `encode(%o)` - %o",t,e)}}function c(t){try{return decodeURIComponent(t)}catch(e){u("error `decode(%o)` - %o",t,e)}}var u=t("debug")("cookie");e.exports=function(t,e,n){switch(arguments.length){c ase 3:case 2:return r(t,e,n);case 1:return i(t);default:return o()}}},{debug:55}],46:[function(t,e,n){function r(t,e,n){for(var r=0;r<t.length;++r)e.call(n,t.charAt(r),r)}function o(t,e,n){for(var r in t)c.call(t,r)&&e.call(n,r,t[r])}function i(t,e,n){for(var r=0;r<t.length;++r)e.call(n,t[r],r)}try{var a=t("type")}catch(e){var a=t("component-type")}var s=t("to-function"),c=Object.prototype.hasOwnProperty;e.exports=function(t,e,n){switch(e=s(e),n=n||this,a(t)){case"array":return i(t,e,n);case"object":return"number"==typeof t.length?i(t,e,n):o(t,e,n);case"string":return r(t,e,n)}}},{"component-type":47,"to-function":89,type:47}],47:[function(t,e,n){var r=Object.prototype.toString;e.exports=function(t){switch(r.call(t)){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"}return null===t?"null":void 0===t?"undefined ":t&&1===t.nodeType?"element":t===Object(t)?"object":typeof t}},{}],48:[function(t,e,n){function r(t){if(t)return o(t)}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}void 0!==e&&(e.exports=r),r.prototype.on=r.prototype.addEventListener=function(t,e){return this._callbacks=this._callbacks||{},(this._callbacks["$"+t]=this._callbacks["$"+t]||[]).push(e),this},r.prototype.once=function(t,e){function n(){this.off(t,n),e.apply(this,arguments)}return n.fn=e,this.on(t,n),this},r.prototype.off=r.prototype.removeListener=r.prototype.removeAllListeners=r.prototype.removeEventListener=function(t,e){if(this._callbacks=this._callbacks||{},0==arguments.length)return this._callbacks={},this;var n=this._callbacks["$"+t];if(!n)return this;if(1==arguments.length)return delete this._callbacks["$"+t],this;for(var r,o=0;o<n.length;o++)if((r=n[o])===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(argume nts,1),n=this._callbacks["$"+t];if(n){n=n.slice(0);for(var r=0,o=n.length;r<o;++r)n[r].apply(this,e)}return this},r.prototype.listeners=function(t){return this._callbacks=this._callbacks||{},this._callbacks["$"+t]||[]},r.prototype.hasListeners=function(t){return!!this.listeners(t).length}},{}],49:[function(t,e,n){var r=window.addEventListener?"addEventListener":"attachEvent",o=window.removeEventListener?"removeEventListener":"detachEvent",i="addEventListener"!==r?"on":"";n.bind=function(t,e,n,o){return t[r](i+e,n,o||!1),n},n.unbind=function(t,e,n,r){return t[o](i+e,n,r||!1),n}},{}],50:[function(t,e,n){function r(t){return t.replace(/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^\/]+)\//g,"").replace(s,"").match(/[a-zA-Z_]\w*/g)||[]}function o(t,e,n){var r=/\.\w+|\w+ *\(|"[^"]*"|'[^']*'|\/([^\/]+)\/|[a-zA-Z_]\w*/g;return t.replace(r,function(t){return"("==t[t.length-1]?n(t):~e.indexOf(t)?n(t):t})}function i(t){for(var e=[],n=0;n<t.length;n++)~e.indexOf(t[n])||e.push(t[n]);return e}function a(t) {return function(e){return t+e}}var s=/\b(Array|Date|Object|Math|JSON)\b/g;e.exports=function(t,e){var n=i(r(t));return e&&"string"==typeof e&&(e=a(e)),e?o(t,n,e):n}},{}],51:[function(t,e,n){var r=t("trim"),o=t("type"),i=/(\w+)\[(\d+)\]/,a=function(t){try{return encodeURIComponent(t)}catch(e){return t}},s=function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}};n.parse=function(t){if("string"!=typeof t)return{};if(""==(t=r(t)))return{};"?"==t.charAt(0)&&(t=t.slice(1));for(var e={},n=t.split("&"),o=0;o<n.length;o++){var a,c=n[o].split("="),u=s(c[0]);(a=i.exec(u))?(e[a[1]]=e[a[1]]||[],e[a[1]][a[2]]=s(c[1])):e[c[0]]=null==c[1]?"":s(c[1])}return e},n.stringify=function(t){if(!t)return"";var e=[];for(var n in t){var r=t[n];if("array"!=o(r))e.push(a(n)+"="+a(t[n]));else for(var i=0;i<r.length;++i)e.push(a(n+"["+i+"]")+"="+a(r[i]))}return e.join("&")}},{trim:91,type:52}],52:[function(t,e,n){var r=Object.prototype.toString;e.exports=function(t){switch(r.call(t)){c ase"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===t?"null":void 0===t?"undefined":t!==t?"nan":t&&1===t.nodeType?"element":typeof(t=t.valueOf?t.valueOf():Object.prototype.valueOf.apply(t))}},{}],53:[function(t,e,n){function r(t){return!(null==t||!(t._isBuffer||t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)))}var o=Object.prototype.toString;e.exports=function(t){switch(o.call(t)){case"[object Date]":return"date";case"[object RegExp]":return"regexp";case"[object Arguments]":return"arguments";case"[object Array]":return"array";case"[object Error]":return"error"}return null===t?"null":void 0===t?"undefined":t!==t?"nan":t&&1===t.nodeType?"element":r(t)?"buffer":typeof(t=t.valueOf?t.valueOf():Object.prototype.valueOf.apply(t))}},{}],54:[function(t,e,n){function r(t){switch(t){case"http:":return 80;case"https:" :return 443;default:return location.port}}n.parse=function(t){var e=document.createElement("a");return e.href=t,{href:e.href,host:e.host||location.host,port:"0"===e.port||""===e.port?r(e.protocol):e.port,hash:e.hash,hostname:e.hostname||location.hostname,pathname:"/"!=e.pathname.charAt(0)?"/"+e.pathname:e.pathname,protocol:e.protocol&&":"!=e.protocol?e.protocol:location.protocol,search:e.search,query:e.search.slice(1)}},n.isAbsolute=function(t){return 0==t.indexOf("//")||!!~t.indexOf("://")},n.isRelative=function(t){return!n.isAbsolute(t)},n.isCrossDomain=function(t){t=n.parse(t);var e=n.parse(window.location.href);return t.hostname!==e.hostname||t.port!==e.port||t.protocol!==e.protocol}},{}],55:[function(t,e,n){(function(r){function o(){return!("undefined"==typeof window||!window.process||"renderer"!==window.process.type)||("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof win dow&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))}function i(t){var e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),e){var r="color: "+this.color;t.splice(1,0,r,"color: inherit");var o=0,i=0;t[0].replace(/%[a-zA-Z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r)}}function a(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function s(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(t){}}function c(){var t;try{t=n.storage.debug}catch(t){}return!t&&void 0!==r&&"env"in r&&(t=r.env.DEBUG),t}n=e.exports=t("./debug"),n.log=a,n.formatArgs=i, n.save=s,n.load=c,n.useColors=o,n.storage="undefined"!=typeof chrome&&void 0!==chrome.storage?chrome.storage.local:function(){try{return window.localStorage}catch(t){}}(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){try{return JSON.stringify(t)}catch(t){return"[UnexpectedJSONParseError]: "+t.message}},n.enable(c())}).call(this,t("_process"))},{"./debug":56,_process:73}],56:[function(t,e,n){function r(t){var e,r=0;for(e in t)r=(r<<5)-r+t.charCodeAt(e),r|=0;return n.colors[Math.abs(r)%n.colors.length]}function o(t){function e(){if(e.enabled){var t=e,r=+new Date,o=r-(u||r);t.diff=o,t.prev=u,t.curr=r,u=r;for(var i=new Array(arguments.length),a=0;a<i.length;a++)i[a]=arguments[a];i[0]=n.coerce(i[0]),"string"!=typeof i[0]&&i.unshift("%O");var s=0;i[0]=i[0].replace(/%([a-zA-Z%])/g,function(e,r){if("%%"===e)return e;s++;var o=n.formatters[r];if("function"==typeof o){var a=i[s];e=o.call(t,a),i.splice(s,1),s--}return e}),n. formatArgs.call(t,i);(e.log||n.log||console.log.bind(console)).apply(t,i)}}return e.namespace=t,e.enabled=n.enabled(t),e.useColors=n.useColors(),e.color=r(t),"function"==typeof n.init&&n.init(e),e}function i(t){n.save(t),n.names=[],n.skips=[];for(var e=("string"==typeof t?t:"").split(/[\s,]+/),r=e.length,o=0;o<r;o++)e[o]&&(t=e[o].replace(/\*/g,".*?"),"-"===t[0]?n.skips.push(new RegExp("^"+t.substr(1)+"$")):n.names.push(new RegExp("^"+t+"$")))}function a(){n.enable("")}function s(t){var e,r;for(e=0,r=n.skips.length;e<r;e++)if(n.skips[e].test(t))return!1;for(e=0,r=n.names.length;e<r;e++)if(n.names[e].test(t))return!0;return!1}function c(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=o.debug=o.default=o,n.coerce=c,n.disable=a,n.enable=i,n.enabled=s,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var u},{ms:66}],57:[function(t,e,n){function r(t,e){if("string"!=typeof t)throw new TypeError("String expected");e||(e=document);var n=/<([\w:]+)/.exec(t);if(!n)return e .createTextNode(t);t=t.replace(/^\s+|\s+$/g,"");var r=n[1];if("body"==r){var o=e.createElement("html");return o.innerHTML=t,o.removeChild(o.lastChild)}var i=a[r]||a._default,s=i[0],c=i[1],u=i[2],o=e.createElement("div");for(o.innerHTML=c+t+u;s--;)o=o.lastChild;if(o.firstChild==o.lastChild)return o.removeChild(o.firstChild);for(var p=e.createDocumentFragment();o.firstChild;)p.appendChild(o.removeChild(o.firstChild));return p}e.exports=r;var o,i=!1;"undefined"!=typeof document&&(o=document.createElement("div"),o.innerHTML=' <link/><table></table><a href="/a">a</a><input type="checkbox"/>',i=!o.getElementsByTagName("link").length,o=void 0);var a={legend:[1,"<fieldset>","</fieldset>"],tr:[2,"<table><tbody>","</tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],_default:i?[1,"X<div>","</div>"]:[0,"",""]};a.td=a.th=[3,"<table><tbody><tr>","</tr></tbody></table>"],a.option=a.optgroup=[1,'<select multiple="multiple">',"</select>"],a.thead=a.tbody=a.colgroup=a .caption=a.tfoot=[1,"<table>","</table>"],a.polyline=a.ellipse=a.polygon=a.circle=a.text=a.line=a.path=a.rect=a.g=[1,'<svg xmlns="http://www.w3.org/2000/svg" version="1.1">',"</svg>"]},{}],58:[function(t,e,n){"use strict";var r=Object.prototype.hasOwnProperty,o=Object.prototype.toString,i=function(t){return"function"==typeof Array.isArray?Array.isArray(t):"[object Array]"===o.call(t)},a=function(t){if(!t||"[object Object]"!==o.call(t))return!1;var e=r.call(t,"constructor"),n=t.constructor&&t.constructor.prototype&&r.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!e&&!n)return!1;var i;for(i in t);return void 0===i||r.call(t,i)};e.exports=function t(){var e,n,r,o,s,c,u=arguments[0],p=1,l=arguments.length,f=!1;for("boolean"==typeof u&&(f=u,u=arguments[1]||{},p=2),(null==u||"object"!=typeof u&&"function"!=typeof u)&&(u={});p<l;++p)if(null!=(e=arguments[p]))for(n in e)r=u[n],o=e[n],u!==o&&(f&&o&&(a(o)||(s=i(o)))?(s?(s=!1,c=r&&i(r)?r:[]):c=r&&a(r)?r:{},u[n]=t(f,c,o)):void 0!==o&&(u[n]=o));return u}},{}],59:[function(t,e,n){try{e.exports="undefined"!=typeof XMLHttpRequest&&"withCredentials"in new XMLHttpRequest}catch(t){e.exports=!1}},{}],60:[function(t,e,n){"function"==typeof Object.create?e.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},{}],61:[function(t,e,n){e.exports=function(t){return/.+\@.+\..+/.test(t)}},{}],62:[function(t,e,n){"use strict";var r,o=Object.prototype,i=o.hasOwnProperty,a=o.toString;"function"==typeof Symbol&&(r=Symbol.prototype.valueOf);var s=function(t){return t!==t},c={boolean:1,number:1,string:1,undefined:1},u=/^([A-Za-z0-9+\/]{4})*([A-Za-z0-9+\/]{4}|[A-Za-z0-9+\/]{3}=|[A-Za-z0-9+\/]{2}==)$/,p=/^[A-Fa-f0-9]+$/,l={};l.a=l.type=function(t,e){return typeof t===e},l.defined=function(t){return void 0!==t},l.empty=func tion(t){var e,n=a.call(t);if("[object Array]"===n||"[object Arguments]"===n||"[object String]"===n)return 0===t.length;if("[object Object]"===n){for(e in t)if(i.call(t,e))return!1;return!0}return!t},l.equal=function(t,e){if(t===e)return!0;var n,r=a.call(t);if(r!==a.call(e))return!1;if("[object Object]"===r){for(n in t)if(!(l.equal(t[n],e[n])&&n in e))return!1;for(n in e)if(!(l.equal(t[n],e[n])&&n in t))return!1;return!0}if("[object Array]"===r){if((n=t.length)!==e.length)return!1;for(;n--;)if(!l.equal(t[n],e[n]))return!1;return!0}return"[object Function]"===r?t.prototype===e.prototype:"[object Date]"===r&&t.getTime()===e.getTime()},l.hosted=function(t,e){var n=typeof e[t];return"object"===n?!!e[t]:!c[n]},l.instance=l.instanceof=function(t,e){return t instanceof e},l.nil=l.null=function(t){return null===t},l.undef=l.undefined=function(t){return void 0===t},l.args=l.arguments=function(t){var e="[object Arguments]"===a.call(t),n=!l.array(t)&&l.arraylike(t)&&l.object(t)&&l.fn(t.callee); return e||n},l.array=Array.isArray||function(t){return"[object Array]"===a.call(t)},l.args.empty=function(t){return l.args(t)&&0===t.length},l.array.empty=function(t){return l.array(t)&&0===t.length},l.arraylike=function(t){return!!t&&!l.bool(t)&&i.call(t,"length")&&isFinite(t.length)&&l.number(t.length)&&t.length>=0},l.bool=l.boolean=function(t){return"[object Boolean]"===a.call(t)},l.false=function(t){return l.bool(t)&&!1===Boolean(Number(t))},l.true=function(t){return l.bool(t)&&!0===Boolean(Number(t))},l.date=function(t){return"[object Date]"===a.call(t)},l.date.valid=function(t){return l.date(t)&&!isNaN(Number(t))},l.element=function(t){return void 0!==t&&"undefined"!=typeof HTMLElement&&t instanceof HTMLElement&&1===t.nodeType},l.error=function(t){return"[object Error]"===a.call(t)},l.fn=l.function=function(t){if("undefined"!=typeof window&&t===window.alert)return!0;var e=a.call(t);return"[object Function]"===e||"[object GeneratorFunction]"===e||"[object AsyncFunction]"===e},l .number=function(t){return"[object Number]"===a.call(t)},l.infinite=function(t){return t===1/0||t===-1/0},l.decimal=function(t){return l.number(t)&&!s(t)&&!l.infinite(t)&&t%1!=0},l.divisibleBy=function(t,e){var n=l.infinite(t),r=l.infinite(e),o=l.number(t)&&!s(t)&&l.number(e)&&!s(e)&&0!==e;return n||r||o&&t%e==0},l.integer=l.int=function(t){return l.number(t)&&!s(t)&&t%1==0},l.maximum=function(t,e){if(s(t))throw new TypeError("NaN is not a valid value");if(!l.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t<e[n])return!1;return!0},l.minimum=function(t,e){if(s(t))throw new TypeError("NaN is not a valid value");if(!l.arraylike(e))throw new TypeError("second argument must be array-like");for(var n=e.length;--n>=0;)if(t>e[n])return!1;return!0},l.nan=function(t){return!l.number(t)||t!==t},l.even=function(t){return l.infinite(t)||l.number(t)&&t===t&&t%2==0},l.odd=function(t){return l.infinite(t)||l.number(t)&&t===t&&t%2!=0},l.ge=functi on(t,e){if(s(t)||s(e))throw new TypeError("NaN is not a valid value");return!l.infinite(t)&&!l.infinite(e)&&t>=e},l.gt=function(t,e){if(s(t)||s(e))throw new TypeError("NaN is not a valid value");return!l.infinite(t)&&!l.infinite(e)&&t>e},l.le=function(t,e){if(s(t)||s(e))throw new TypeError("NaN is not a valid value");return!l.infinite(t)&&!l.infinite(e)&&t<=e},l.lt=function(t,e){if(s(t)||s(e))throw new TypeError("NaN is not a valid value");return!l.infinite(t)&&!l.infinite(e)&&t<e},l.within=function(t,e,n){if(s(t)||s(e)||s(n))throw new TypeError("NaN is not a valid value");if(!l.number(t)||!l.number(e)||!l.number(n))throw new TypeError("all arguments must be numbers");return l.infinite(t)||l.infinite(e)||l.infinite(n)||t>=e&&t<=n},l.object=function(t){return"[object Object]"===a.call(t)},l.primitive=function(t){return!t||!("object"==typeof t||l.object(t)||l.fn(t)||l.array(t))},l.hash=function(t){return l.object(t)&&t.constructor===Object&&!t.nodeType&&!t.setInterval},l.regexp=functi on(t){return"[object RegExp]"===a.call(t)},l.string=function(t){return"[object String]"===a.call(t)},l.base64=function(t){return l.string(t)&&(!t.length||u.test(t))},l.hex=function(t){return l.string(t)&&(!t.length||p.test(t))},l.symbol=function(t){return"function"==typeof Symbol&&"[object Symbol]"===a.call(t)&&"symbol"==typeof r.call(t)},e.exports=l},{}],63:[function(e,n,r){(function(e){(function(){function o(t,e){function n(t){if(n[t]!==g)return n[t];var o;if("bug-string-char-index"==t)o="a"!="a"[0];else if("json"==t)o=n("json-stringify")&&n("json-parse");else{var a,s='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==t){var c=e.stringify,p="function"==typeof c&&b;if(p){(a=function(){return 1}).toJSON=a;try{p="0"===c(0)&&"0"===c(new r)&&'""'==c(new i)&&c(v)===g&&c(g)===g&&c()===g&&"1"===c(a)&&"[1]"==c([a])&&"[null]"==c([g])&&"null"==c(null)&&"[null,null,null]"==c([g,v,null])&&c({a:[a,!0,!1,null,"\0\b\n\f\r\t"]})==s&&"1"===c(null,a)&&"[\n 1,\n 2\n]"==c([1,2], null,1)&&'"-271821-04-20T00:00:00.000Z"'==c(new u(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==c(new u(864e13))&&'"-000001-01-01T00:00:00.000Z"'==c(new u(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==c(new u(-1))}catch(t){p=!1}}o=p}if("json-parse"==t){var l=e.parse;if("function"==typeof l)try{if(0===l("0")&&!l(!1)){a=l(s);var f=5==a.a.length&&1===a.a[0];if(f){try{f=!l('"\t"')}catch(t){}if(f)try{f=1!==l("01")}catch(t){}if(f)try{f=1!==l("1.")}catch(t){}}}}catch(t){f=!1}o=f}}return n[t]=!!o}t||(t=c.Object()),e||(e=c.Object());var r=t.Number||c.Number,i=t.String||c.String,s=t.Object||c.Object,u=t.Date||c.Date,p=t.SyntaxError||c.SyntaxError,l=t.TypeError||c.TypeError,f=t.Math||c.Math,d=t.JSON||c.JSON;"object"==typeof d&&d&&(e.stringify=d.stringify,e.parse=d.parse);var h,y,g,m=s.prototype,v=m.toString,b=new u(-0xc782b5b800cec);try{b=-109252==b.getUTCFullYear()&&0===b.getUTCMonth()&&1===b.getUTCDate()&&10==b.getUTCHours()&&37==b.getUTCMinutes()&&6==b.getUTCSeconds()&&708==b.getUTCMillisecon ds()}catch(t){}if(!n("json")){var w=n("bug-string-char-index");if(!b)var _=f.floor,x=[0,31,59,90,120,151,181,212,243,273,304,334],j=function(t,e){return x[e]+365*(t-1970)+_((t-1969+(e=+(e>1)))/4)-_((t-1901+e)/100)+_((t-1601+e)/400)};if((h=m.hasOwnProperty)||(h=function(t){var e,n={};return(n.__proto__=null,n.__proto__={toString:1},n).toString!=v?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)}),y=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?y=2==i?function(t,e){var n,r={},o="[object Function]"==v.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]"==v.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"],y=function(t,e){var n,o,i="[object Function]"==v.call(t),s=!i&&"function"!=typeof t.constructor&&a[typeof t.hasOwnProperty]&&t.hasOwnProperty||h;for(n in t)i&&"prototype"==n||!s.call(t,n)||e(n);for(o=r.length;n=r[--o];s.call(t,n)&&e(n));}),y(t,e)},!n("json-stringify")){var k={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},I=function(t,e){return("000000"+(e||0)).slice(-t)},T=function(t){for(var e='"',n=0,r=t.length,o=!w||r>10,i=o&&(w?t.split(""):t);n<r;n++){var a=t.charCodeAt(n);switch(a){case 8:case 9:case 10:case 12:case 13:case 34:case 92:e+=k[a];break;default:if(a<32){e+="\\u00"+I(2,a.toString(16));break}e+=o?i[n]:t.charAt(n)}}return e+'"'},O=function(t,e,n,r,o,i,a){var s,c,u,p,f,d,m,b,w,x,k,C,A,S,E,D;try{s=e[t]}catch(t){} -if("object"==typeof s&&s)if("[object Date]"!=(c=v.call(s))||h.call(s,"toJSON"))"function"==typeof s.toJSON&&("[object Number]"!=c&&"[object String]"!=c&&"[object Array]"!=c||h.call(s,"toJSON"))&&(s=s.toJSON(t));else if(s>-1/0&&s<1/0){if(j){for(f=_(s/864e5),u=_(f/365.2425)+1970-1;j(u+1,0)<=f;u++);for(p=_((f-j(u,0))/30.42);j(u,p+1)<=f;p++);f=1+f-j(u,p),d=(s%864e5+864e5)%864e5,m=_(d/36e5)%24,b=_(d/6e4)%60,w=_(d/1e3)%60,x=d%1e3}else u=s.getUTCFullYear(),p=s.getUTCMonth(),f=s.getUTCDate(),m=s.getUTCHours(),b=s.getUTCMinutes(),w=s.getUTCSeconds(),x=s.getUTCMilliseconds();s=(u<=0||u>=1e4?(u<0?"-":"+")+I(6,u<0?-u:u):I(4,u))+"-"+I(2,p+1)+"-"+I(2,f)+"T"+I(2,m)+":"+I(2,b)+":"+I(2,w)+"."+I(3,x)+"Z"}else s=null;if(n&&(s=n.call(e,t,s)),null===s)return"null";if("[object Boolean]"==(c=v.call(s)))return""+s;if("[object Number]"==c)return s>-1/0&&s<1/0?""+s:"null";if("[object String]"==c)return T(""+s);if("object"==typeof s){for(S=a.length;S--;)if(a[S]===s)throw l();if(a.push(s),k=[],E=i,i+=o,"[objec t Array]"==c){for(A=0,S=s.length;A<S;A++)C=O(A,s,n,r,o,i,a),k.push(C===g?"null":C);D=k.length?o?"[\n"+i+k.join(",\n"+i)+"\n"+E+"]":"["+k.join(",")+"]":"[]"}else y(r||s,function(t){var e=O(t,s,n,r,o,i,a);e!==g&&k.push(T(t)+":"+(o?" ":"")+e)}),D=k.length?o?"{\n"+i+k.join(",\n"+i)+"\n"+E+"}":"{"+k.join(",")+"}":"{}";return a.pop(),D}};e.stringify=function(t,e,n){var r,o,i,s;if(a[typeof e]&&e)if("[object Function]"==(s=v.call(e)))o=e;else if("[object Array]"==s){i={};for(var c,u=0,p=e.length;u<p;c=e[u++],("[object String]"==(s=v.call(c))||"[object Number]"==s)&&(i[c]=1));}if(n)if("[object Number]"==(s=v.call(n))){if((n-=n%1)>0)for(r="",n>10&&(n=10);r.length<n;r+=" ");}else"[object String]"==s&&(r=n.length<=10?n:n.slice(0,10));return O("",(c={},c[""]=t,c),o,i,r,"",[])}}if(!n("json-parse")){var C,A,S=i.fromCharCode,E={92:"\\",34:'"',47:"/",98:"\b",116:"\t",110:"\n",102:"\f",114:"\r"},D=function(){throw C=A=null,p()},N=function(){for(var t,e,n,r,o,i=A,a=i.length;C<a;)switch(o=i.charCodeAt( C)){case 9:case 10:case 13:case 32:C++;break;case 123:case 125:case 91:case 93:case 58:case 44:return t=w?i.charAt(C):i[C],C++,t;case 34:for(t="@",C++;C<a;)if((o=i.charCodeAt(C))<32)D();else if(92==o)switch(o=i.charCodeAt(++C)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:t+=E[o],C++;break;case 117:for(e=++C,n=C+4;C<n;C++)(o=i.charCodeAt(C))>=48&&o<=57||o>=97&&o<=102||o>=65&&o<=70||D();t+=S("0x"+i.slice(e,C));break;default:D()}else{if(34==o)break;for(o=i.charCodeAt(C),e=C;o>=32&&92!=o&&34!=o;)o=i.charCodeAt(++C);t+=i.slice(e,C)}if(34==i.charCodeAt(C))return C++,t;D();default:if(e=C,45==o&&(r=!0,o=i.charCodeAt(++C)),o>=48&&o<=57){for(48==o&&(o=i.charCodeAt(C+1))>=48&&o<=57&&D(),r=!1;C<a&&(o=i.charCodeAt(C))>=48&&o<=57;C++);if(46==i.charCodeAt(C)){for(n=++C;n<a&&(o=i.charCodeAt(n))>=48&&o<=57;n++);n==C&&D(),C=n}if(101==(o=i.charCodeAt(C))||69==o){for(o=i.charCodeAt(++C),43!=o&&45!=o||C++,n=C;n<a&&(o=i.charCodeAt(n))>=48&&o<=57;n++);n==C&&D(),C=n}return+i.slice(e ,C)}if(r&&D(),"true"==i.slice(C,C+4))return C+=4,!0;if("false"==i.slice(C,C+5))return C+=5,!1;if("null"==i.slice(C,C+4))return C+=4,null;D()}return"$"},z=function(t){var e,n;if("$"==t&&D(),"string"==typeof t){if("@"==(w?t.charAt(0):t[0]))return t.slice(1);if("["==t){for(e=[];"]"!=(t=N());n||(n=!0))n&&(","==t?"]"==(t=N())&&D():D()),","==t&&D(),e.push(z(t));return e}if("{"==t){for(e={};"}"!=(t=N());n||(n=!0))n&&(","==t?"}"==(t=N())&&D():D()),","!=t&&"string"==typeof t&&"@"==(w?t.charAt(0):t[0])&&":"==N()||D(),e[t.slice(1)]=z(N());return e}D()}return t},$=function(t,e,n){var r=P(t,e,n);r===g?delete t[e]:t[e]=r},P=function(t,e,n){var r,o=t[e];if("object"==typeof o&&o)if("[object Array]"==v.call(o))for(r=o.length;r--;)$(o,r,n);else y(o,function(t){$(o,t,n)});return n.call(t,e,o)};e.parse=function(t,e){var n,r;return C=0,A=""+t,n=z(N()),"$"!=N()&&D(),C=A=null,e&&"[object Function]"==v.call(e)?P((r={},r[""]=n,r),"",e):n}}}return e.runInContext=o,e}var i="function"==typeof t&&t.amd,a={funct ion:!0,object:!0},s=a[typeof r]&&r&&!r.nodeType&&r,c=a[typeof window]&&window||this,u=s&&a[typeof n]&&n&&!n.nodeType&&"object"==typeof e&&e;if(!u||u.global!==u&&u.window!==u&&u.self!==u||(c=u),s&&!i)o(c,s);else{var p=c.JSON,l=c.JSON3,f=!1,d=o(c,c.JSON3={noConflict:function(){return f||(f=!0,c.JSON=p,c.JSON3=l,p=l=null),d}});c.JSON={parse:d.parse,stringify:d.stringify}}i&&t(function(){return d})}).call(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],64:[function(t,e,n){function r(){}function o(t,e,n){function o(){c.parentNode&&c.parentNode.removeChild(c),window[l]=r,u&&clearTimeout(u)}function s(){window[l]&&o()}"function"==typeof e&&(n=e,e={}),e||(e={});var c,u,p=e.prefix||"__jp",l=e.name||p+a++,f=e.param||"callback",d=null!=e.timeout?e.timeout:6e4,h=encodeURIComponent,y=document.getElementsByTagName("script")[0]||document.head;return d&&(u=setTimeout(function(){o(),n&&n(new Error("Timeout"))},d)),window[l] =function(t){i("jsonp got",t),o(),n&&n(null,t)},t+=(~t.indexOf("?")?"&":"?")+f+"="+h(l),t=t.replace("?&","?"),i('jsonp req "%s"',t),c=document.createElement("script"),c.src=t,y.parentNode.insertBefore(c,y),s}var i=t("debug")("jsonp");e.exports=o;var a=0},{debug:55}],65:[function(t,e,n){var r=t("is"),o=t("script-onload"),i=t("next-tick");e.exports=function(t,e){if(!t)throw new Error("Cant load nothing...");r.string(t)&&(t={src:t});var n="https:"===document.location.protocol||"chrome-extension:"===document.location.protocol;t.src&&0===t.src.indexOf("//")&&(t.src=n?"https:"+t.src:"http:"+t.src),n&&t.https?t.src=t.https:!n&&t.http&&(t.src=t.http);var a=document.createElement("iframe");return a.src=t.src,a.width=t.width||1,a.height=t.height||1,a.style.display="none",r.fn(e)&&o(a,e),i(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(a,t)}),a}},{is:62,"next-tick":71,"script-onload":74}],66:[function(t,e,n){function r(t){if(t=String(t),!(t.length>100)){v ar e=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(t);if(e){var n=parseFloat(e[1]);switch((e[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*p;case"hours":case"hour":case"hrs":case"hr":case"h":return n*u;case"minutes":case"minute":case"mins":case"min":case"m":return n*c;case"seconds":case"second":case"secs":case"sec":case"s":return n*s;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}function o(t){return t>=p?Math.round(t/p)+"d":t>=u?Math.round(t/u)+"h":t>=c?Math.round(t/c)+"m":t>=s?Math.round(t/s)+"s":t+"ms"}function i(t){return a(t,p,"day")||a(t,u,"hour")||a(t,c,"minute")||a(t,s,"second")||t+" ms"}function a(t,e,n){if(!(t<e))return t<1.5*e?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var s=1e3,c=60*s,u=60*c,p=24*u,l=365.25*p;e.exports=function(t,e){e=e||{};var n=typeof t;if("strin g"===n&&t.length>0)return r(t);if("number"===n&&!1===isNaN(t))return e.long?i(t):o(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))}},{}],67:[function(t,e,n){"use strict";function r(t){return t<315576e5?1e3*t:t}var o=t("is"),i=t("@segment/isodate"),a=t("./milliseconds"),s=t("./seconds");e.exports=function(t){return o.date(t)?t:o.number(t)?new Date(r(t)):i.is(t)?i.parse(t):a.is(t)?a.parse(t):s.is(t)?s.parse(t):new Date(t)}},{"./milliseconds":68,"./seconds":69,"@segment/isodate":70,is:62}],68:[function(t,e,n){"use strict";var r=/\d{13}/;n.is=function(t){return r.test(t)},n.parse=function(t){return t=parseInt(t,10),new Date(t)}},{}],69:[function(t,e,n){"use strict";var r=/\d{10}/;n.is=function(t){return r.test(t)},n.parse=function(t){var e=1e3*parseInt(t,10);return new Date(e)}},{}],70:[function(t,e,n){"use strict";var r=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\ d{2}))?)?)?$/;n.parse=function(t){var e=[1,5,6,7,11,12],n=r.exec(t),o=0;if(!n)return new Date(t);for(var i,a=0;i=e[a];a++)n[i]=parseInt(n[i],10)||0;n[2]=parseInt(n[2],10)||1,n[3]=parseInt(n[3],10)||1,n[2]--,n[8]=n[8]?(n[8]+"00").substring(0,3):0," "===n[4]?o=(new Date).getTimezoneOffset():"Z"!==n[9]&&n[10]&&(o=60*n[11]+n[12],"+"===n[10]&&(o=0-o));var s=Date.UTC(n[1],n[2],n[3],n[5],n[6]+o,n[7],n[8]);return new Date(s)},n.is=function(t,e){return(!e||!1!==/^\d{4}-\d{2}-\d{2}/.test(t))&&r.test(t)}},{}],71:[function(t,e,n){(function(t,n){"use strict";var r,o;r=function(t){if("function"!=typeof t)throw new TypeError(t+" is not a function");return t},o=function(t){var e,n=document.createTextNode(""),o=0;return new t(function(){var t;if(e){if(t=e,e=null,"function"==typeof t)return void t();t.forEach(function(t){t()})}}).observe(n,{characterData:!0}),function(t){if(r(t),e)return void("function"==typeof e?e=[e,t]:e.push(t));e=t,n.data=o=++o%2}},e.exports=function(){if(void 0!==t&&t&&"function "==typeof t.nextTick)return t.nextTick;if("object"==typeof document&&document){if("function"==typeof MutationObserver)return o(MutationObserver);if("function"==typeof WebKitMutationObserver)return o(WebKitMutationObserver)}return"function"==typeof n?function(t){n(r(t))}:"function"==typeof setTimeout?function(t){setTimeout(r(t),0)}:null}()}).call(this,t("_process"),t("timers").setImmediate)},{_process:73,timers:88}],72:[function(t,e,n){function r(t){return function(e,n,r,o){normalize=o&&c(o.normalizer)?o.normalizer:s,n=normalize(n);for(var i,a=!1;!a;)!function(){for(i in e){var t=normalize(i);if(0===n.indexOf(t)){var r=n.substr(t.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var o=e[i];return null==o?void(a=!0):n.length?void(e=o):void(a=!0)}}}i=void 0,a=!0}();if(i)return null==e?e:t(e,i,r)}}function o(t,e){if(t.hasOwnProperty(e))return t[e]}function i(t,e){return t.hasOwnProperty(e)&&delete t[e],t}function a(t,e,n){return t.hasOwnProperty(e)&&(t[e]=n),t}function s(t){retu rn t.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}function c(t){return"function"==typeof t}e.exports=r(o),e.exports.find=e.exports,e.exports.replace=function(t,e,n,o){return r(a).call(this,t,e,n,o),t},e.exports.del=function(t,e,n){return r(i).call(this,t,e,null,n),t}},{}],73:[function(t,e,n){function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===r||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function a(t){if(f===clearTimeout)return clearTimeout(t);if((f===o||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&h&&(g=!1,h.length?y=h.concat(y):m=-1,y.length&&c())}function c(){if(!g){var t=i(s);g=!0;for(var e=y.length;e;){for(h=y,y=[];++m<e;)h&&h[m].run ();m=-1,e=y.length}h=null,g=!1,a(t)}}function u(t,e){this.fun=t,this.array=e}function p(){}var l,f,d=e.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:r}catch(t){l=r}try{f="function"==typeof clearTimeout?clearTimeout:o}catch(t){f=o}}();var h,y=[],g=!1,m=-1;d.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];y.push(new u(t,e)),1!==y.length||g||i(c)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=p,d.addListener=p,d.once=p,d.off=p,d.removeListener=p,d.removeAllListeners=p,d.emit=p,d.prependListener=p,d.prependOnceListener=p,d.listeners=function(t){return[]},d.binding=function(t){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(t){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},{}],74:[function(t,e,n){functi on r(t,e){t.addEventListener("load",function(t,n){e(null,n)},!1),t.addEventListener("error",function(n){var r=new Error('script error "'+t.src+'"');r.event=n,e(r)},!1)}function o(t,e){t.attachEvent("onreadystatechange",function(n){/complete|loaded/.test(t.readyState)&&e(null,n)}),t.attachEvent("onerror",function(n){var r=new Error('failed to load the script "'+t.src+'"');r.event=n||window.event,e(r)})}e.exports=function(t,e){return t.addEventListener?r(t,e):o(t,e)}},{}],75:[function(t,e,n){"use strict";var r=t("obj-case");e.exports=function(t){function e(t,e){return function(){var n=this.traits(),o=this.properties?this.properties():{};return r(n,"address."+t)||r(n,t)||(e?r(n,"address."+e):null)||(e?r(n,e):null)||r(o,"address."+t)||r(o,t)||(e?r(o,"address."+e):null)||(e?r(o,e):null)}}t.zip=e("postalCode","zip"),t.country=e("country"),t.street=e("street"),t.state=e("state"),t.city=e("city"),t.region=e("region")}},{"obj-case":72}],76:[function(t,e,n){"use strict";function r(t,e){i.call (this,t,e)}var o=t("./utils").inherit,i=t("./facade");o(r,i),r.prototype.action=function(){return"alias"},r.prototype.type=r.prototype.action,r.prototype.previousId=function(){return this.field("previousId")||this.field("from")},r.prototype.from=r.prototype.previousId,r.prototype.userId=function(){return this.field("userId")||this.field("to")},r.prototype.to=r.prototype.userId,e.exports=r},{"./facade":78,"./utils":86}],77:[function(t,e,n){"use strict";function r(t,e){i.call(this,t,e)}var o=t("./utils").inherit,i=t("./facade");o(r,i),r.prototype.type=function(){return"delete"},e.exports=r},{"./facade":78,"./utils":86}],78:[function(t,e,n){"use strict";function r(t,e){e=e||{},"clone"in e||(e.clone=!0),e.clone&&(t=a(t)),"traverse"in e||(e.traverse=!0),t.timestamp="timestamp"in t?c(t.timestamp):new Date,e.traverse&&p(t),this.opts=e,this.obj=t}function o(t){return a(t)}var i=t("./address"),a=t("./utils").clone,s=t("./is-enabled"),c=t("new-date"),u=t("obj-case"),p=t("@segment/isodate-trav erse"),l=t("./utils").type;r.prototype.proxy=function(t){var e=t.split(".");t=e.shift();var n=this[t]||this.field(t);return n?("function"==typeof n&&(n=n.call(this)||{}),0===e.length?this.opts.clone?o(n):n:(n=u(n,e.join(".")),this.opts.clone?o(n):n)):n},r.prototype.field=function(t){var e=this.obj[t];return this.opts.clone?o(e):e},r.proxy=function(t){return function(){return this.proxy(t)}},r.field=function(t){return function(){return this.field(t)}},r.multi=function(t){return function(){var e=this.proxy(t+"s");if("array"===l(e))return e;var n=this.proxy(t);return n&&(n=[this.opts.clone?a(n):n]),n||[]}},r.one=function(t){return function(){var e=this.proxy(t);if(e)return e;var n=this.proxy(t+"s");return"array"===l(n)?n[0]:void 0}},r.prototype.json=function(){var t=this.opts.clone?a(this.obj):this.obj;return this.type&&(t.type=this.type()),t},r.prototype.options=function(t){var e=this.obj.options||this.obj.context||{},n=this.opts.clone?a(e):e;if(!t)return n;if(this.enabled(t)){var r=t his.integrations(),o=r[t]||u(r,t);return"object"!=typeof o&&(o=u(this.options(),t)),"object"==typeof o?o:{}}},r.prototype.context=r.prototype.options,r.prototype.enabled=function(t){var e=this.proxy("options.providers.all");"boolean"!=typeof e&&(e=this.proxy("options.all")),"boolean"!=typeof e&&(e=this.proxy("integrations.all")),"boolean"!=typeof e&&(e=!0);var n=e&&s(t),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(t)&&(n=r.providers[t]),r.hasOwnProperty(t)){var o=r[t];n="boolean"!=typeof o||o}return!!n},r.prototype.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},r.prototype.active=function(){var t=this.proxy("options.active");return null!==t&&void 0!==t||(t=!0),t},r.prototype.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},r.prototype.sessionId=r.prototype.anonymousId,r.prototype.groupId=r.proxy("options.groupId"),r.prototype.traits=function(t){var e=this.proxy("options.trait s")||{},n=this.userId();t=t||{},n&&(e.id=n);for(var r in t){var o=null==this[r]?this.proxy("options.traits."+r):this[r]();null!=o&&(e[t[r]]=o,delete e[r])}return e},r.prototype.library=function(){var t=this.proxy("options.library");return t?"string"==typeof t?{name:t,version:null}:t:{name:"unknown",version:null}},r.prototype.device=function(){var t=this.proxy("context.device");"object"!==l(t)&&(t={});var e=this.library().name;return t.type?t:(e.indexOf("ios")>-1&&(t.type="ios"),e.indexOf("android")>-1&&(t.type="android"),t)},r.prototype.userAgent=r.proxy("context.userAgent"),r.prototype.timezone=r.proxy("context.timezone"),r.prototype.timestamp=r.field("timestamp"),r.prototype.channel=r.field("channel"),r.prototype.ip=r.proxy("context.ip"),r.prototype.userId=r.field("userId"),i(r.prototype),e.exports=r},{"./address":75,"./is-enabled":82,"./utils":86,"@segment/isodate-traverse":35,"new-date":67,"obj-case":72}],79:[function(t,e,n){"use strict";function r(t,e){s.call(this,t,e)}var o=t( "./utils").inherit,i=t("is-email"),a=t("new-date"),s=t("./facade");o(r,s),r.prototype.action=function(){return"group"},r.prototype.type=r.prototype.action,r.prototype.groupId=s.field("groupId"),r.prototype.created=function(){var t=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(t)return a(t)},r.prototype.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.groupId();return i(e)?e:void 0},r.prototype.traits=function(t){var e=this.properties(),n=this.groupId();t=t||{},n&&(e.id=n);for(var r in t){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(e[t[r]]=o,delete e[r])}return e},r.prototype.name=s.proxy("traits.name"),r.prototype.industry=s.proxy("traits.industry"),r.prototype.employees=s.proxy("traits.employees"),r.prototype.properties=function(){return this.field("traits")||this.field("properties")||{}},e.exports=r},{"./facade":78,"./utils":86,"is-email":61,"new-da te":67}],80:[function(t,e,n){"use strict";function r(t,e){o.call(this,t,e)}var o=t("./facade"),i=t("obj-case"),a=t("./utils").inherit,s=t("is-email"),c=t("new-date"),u=t("trim"),p=t("./utils").type;a(r,o),r.prototype.action=function(){return"identify"},r.prototype.type=r.prototype.action,r.prototype.traits=function(t){var e=this.field("traits")||{},n=this.userId();t=t||{},n&&(e.id=n);for(var r in t){var o=null==this[r]?this.proxy("traits."+r):this[r]();null!=o&&(e[t[r]]=o,r!==t[r]&&delete e[r])}return e},r.prototype.email=function(){var t=this.proxy("traits.email");if(t)return t;var e=this.userId();return s(e)?e:void 0},r.prototype.created=function(){var t=this.proxy("traits.created")||this.proxy("traits.createdAt");if(t)return c(t)},r.prototype.companyCreated=function(){var t=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(t)return c(t)},r.prototype.companyName=function(){return this.proxy("traits.company.name")},r.prototype.name=function(){var t=thi s.proxy("traits.name");if("string"==typeof t)return u(t);var e=this.firstName(),n=this.lastName();return e&&n?u(e+" "+n):void 0},r.prototype.firstName=function(){var t=this.proxy("traits.firstName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");return"string"==typeof e?u(e).split(" ")[0]:void 0},r.prototype.lastName=function(){var t=this.proxy("traits.lastName");if("string"==typeof t)return u(t);var e=this.proxy("traits.name");if("string"==typeof e){var n=u(e).indexOf(" ");if(-1!==n)return u(e.substr(n+1))}},r.prototype.uid=function(){return this.userId()||this.username()||this.email()},r.prototype.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},r.prototype.age=function(){var t=this.birthday(),e=i(this.traits(),"age");if(null!=e)return e;if("date"===p(t)){return(new Date).getFullYear()-t.getFullYear()}},r.prototype.avatar=function(){var t=this.traits();return i(t,"avatar")||i(t,"photoUrl")||i(t,"avatarUrl")},r.prot otype.position=function(){var t=this.traits();return i(t,"position")||i(t,"jobTitle")},r.prototype.username=o.proxy("traits.username"),r.prototype.website=o.one("traits.website"),r.prototype.websites=o.multi("traits.website"),r.prototype.phone=o.one("traits.phone"),r.prototype.phones=o.multi("traits.phone"),r.prototype.address=o.proxy("traits.address"),r.prototype.gender=o.proxy("traits.gender"),r.prototype.birthday=o.proxy("traits.birthday"),e.exports=r},{"./facade":78,"./utils":86,"is-email":61,"new-date":67,"obj-case":72,trim:91}],81:[function(t,e,n){"use strict";var r=t("./facade");r.Alias=t("./alias"),r.Group=t("./group"),r.Identify=t("./identify"),r.Track=t("./track"),r.Page=t("./page"),r.Screen=t("./screen"),r.Delete=t("./delete"),e.exports=r},{"./alias":76,"./delete":77,"./facade":78,"./group":79,"./identify":80,"./page":83,"./screen":84,"./track":85}],82:[function(t,e,n){"use strict";var r={Salesforce:!0};e.exports=function(t){return!r[t]}},{}],83:[function(t,e,n){"use stri ct";function r(t,e){i.call(this,t,e)}var o=t("./utils").inherit,i=t("./facade"),a=t("./track"),s=t("is-email");o(r,i),r.prototype.action=function(){return"page"},r.prototype.type=r.prototype.action,r.prototype.category=i.field("category"),r.prototype.name=i.field("name"),r.prototype.title=i.proxy("properties.title"),r.prototype.path=i.proxy("properties.path"),r.prototype.url=i.proxy("properties.url"),r.prototype.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},r.prototype.properties=function(t){var e=this.field("properties")||{},n=this.category(),r=this.name();t=t||{},n&&(e.category=n),r&&(e.name=r);for(var o in t){var i=null==this[o]?this.proxy("properties."+o):this[o]();null!=i&&(e[t[o]]=i,o!==t[o]&&delete e[o])}return e},r.prototype.email=function(){var t=this.proxy("context.traits.email")||this.proxy("properties.email");if(t)return t;var e=this.userId();return s(e)?e:void 0},r.prototype.fullNam e=function(){var t=this.category(),e=this.name();return e&&t?t+" "+e:e},r.prototype.event=function(t){return t?"Viewed "+t+" Page":"Loaded a Page"},r.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new a(e,this.opts)},e.exports=r},{"./facade":78,"./track":85,"./utils":86,"is-email":61}],84:[function(t,e,n){"use strict";function r(t,e){i.call(this,t,e)}var o=t("./utils").inherit,i=t("./page"),a=t("./track");o(r,i),r.prototype.action=function(){return"screen"},r.prototype.type=r.prototype.action,r.prototype.event=function(t){return t?"Viewed "+t+" Screen":"Loaded a Screen"},r.prototype.track=function(t){var e=this.json();return e.event=this.event(t),e.timestamp=this.timestamp(),e.properties=this.properties(),new a(e,this.opts)},e.exports=r},{"./page":83,"./track":85,"./utils":86}],85:[function(t,e,n){"use strict";function r(t,e){s.call(this,t,e)}function o(t){if(t){if("number"==typeof t)return t;if( "string"==typeof t)return t=t.replace(/\$/g,""),t=parseFloat(t),isNaN(t)?void 0:t}}var i=t("./utils").inherit,a=t("./utils").type,s=t("./facade"),c=t("./identify"),u=t("is-email"),p=t("obj-case");i(r,s),r.prototype.action=function(){return"track"},r.prototype.type=r.prototype.action,r.prototype.event=s.field("event"),r.prototype.value=s.proxy("properties.value"),r.prototype.category=s.proxy("properties.category"),r.prototype.id=s.proxy("properties.id"),r.prototype.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},r.prototype.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},r.prototype.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},r.prototype.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},r.prototype.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy( "properties.paymentId")},r.prototype.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},r.prototype.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},r.prototype.reviewId=function(){return this.proxy("properties.review_id")||thi <TRUNCATED>