Socket
Socket
Sign inDemoInstall

@analytics/core

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@analytics/core - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [0.9.1](https://github.com/DavidWells/analytics/compare/@analytics/core@0.9.0...@analytics/core@0.9.1) (2021-01-04)
**Note:** Version bump only for package @analytics/core
# [0.9.0](https://github.com/DavidWells/analytics/compare/@analytics/core@0.8.0...@analytics/core@0.9.0) (2020-12-23)

@@ -8,0 +16,0 @@

2

dist/@analytics/core.min.js

@@ -1,1 +0,1 @@

var _analytics=function(t){"use strict";var e=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var n=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var r=function(){throw new TypeError("")};var D=function(t){return e(t)||n(t)||r()};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var q=i(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(t)}e.exports=r});var p=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};function o(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}var R=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function C(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;r<e.length;r++)t=t?t[e[r]]:i;return t===i?n:t}function a(t,e,n,r,i,o){return"undefined"!=typeof window&&(1<arguments.length?document.cookie=t+"="+encodeURIComponent(e)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+t+"=")[1]||"").split(";")[0]))}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var V="object"===("undefined"==typeof self?"undefined":u(self))&&self.self===self&&self||"object"===("undefined"==typeof global?"undefined":u(global))&&global.global===global&&global||void 0;!function(){try{a("_c_","1");var t=-1!==document.cookie.indexOf("_c_");a("_c_","",-1)}catch(t){return}}();function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t){return"function"==typeof t}function F(t){return"string"==typeof t}function G(t){if("object"===c(t)&&null!==t){for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}}function s(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}var $="undefined"!=typeof document;function B(t){t=function(t){if(t){t=t.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return $&&window.location.search.substring(1)}(t);return t?function(t){var e,n=/([^&=]+)=?([^&]*)/g,r={};for(;o=n.exec(t);){var i=s(o[1]),o=s(o[2]);"[]"===i.substring(i.length-2)?(i=i.substring(0,i.length-2),(r[i]||(r[i]=[])).push(o)):(o=""===o||o,r[i]=o)}for(e in r){var a,u=e.split("[");1<u.length&&(a=[],u.forEach(function(t,e){t=t.replace(/[?[\]\\ ]/g,"");a.push(t)}),function(t,e,n){for(var r=e.length-1,i=0;i<r;++i){var o=e[i];o in t||(t[o]={}),t=t[o]}t[e[r]]=n}(r,a,r[e]),delete r[e])}return r}(t):{}}function X(){for(var t="",e=0,n=4294967295*Math.random()|0;e++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&n;t+="-"==r||"4"==r?r:("x"==r?i:3&i|8).toString(16),n=e%8==0?4294967295*Math.random()|0:n>>4}return t}var m="function",y="undefined",g="reducer",l="@@redux/",v=l+"INIT",f=l+Math.random().toString(36),d=function(){return("undefined"==typeof Symbol?"undefined":q(Symbol))===m&&Symbol.observable||"@@observable"}(),h=" != "+m;function J(t,e,n){if(q(e)===m&&q(n)===y&&(n=e,e=void 0),q(n)!==y){if(q(n)!==m)throw new Error("enhancer"+h);return n(J)(t,e)}if(q(t)!==m)throw new Error(g+h);var r=t,i=e,o=[],a=o,u=!1;function c(){a===o&&(a=o.slice())}function s(){return i}function l(e){if(q(e)!==m)throw new Error("Listener"+h);var n=!0;return c(),a.push(e),function(){var t;n&&(n=!1,c(),t=a.indexOf(e),a.splice(t,1))}}function f(t){if(!G(t))throw new Error("Act != obj");if(q(t.type)===y)throw new Error("ActType "+y);if(u)throw new Error("Dispatch in "+g);try{u=!0,i=r(i,t)}finally{u=!1}for(var e=o=a,n=0;n<e.length;n++)(0,e[n])();return t}return f({type:v}),p({dispatch:f,subscribe:l,getState:s,replaceReducer:function(t){if(q(t)!==m)throw new Error("next "+g+h);r=t,f({type:v})}},d,function(){var n=l;return p({subscribe:function(t){if("object"!==q(t))throw new TypeError("Observer != obj");function e(){t.next&&t.next(i)}return e(),{unsubscribe:n(e)}}},d,function(){return this})})}function W(t){for(var e=Object.keys(t),p={},n=0;n<e.length;n++){var r=e[n];q(t[r])===m&&(p[r]=t[r])}var d,i,h=Object.keys(p);try{i=p,Object.keys(i).forEach(function(t){var e=i[t],n=e(void 0,{type:v});if(q(n)===y||q(e(void 0,{type:f}))===y)throw new Error(g+" "+t+" "+y)})}catch(t){d=t}return function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(d)throw d;for(var i=!1,o={},a=0;a<h.length;a++){var u=h[a],c=p[u],s=n[u],l=c(s,r);if(q(l)===y){var f=(f=u,"action "+((c=(c=r)&&c.type)&&c.toString()||"?")+g+" "+f+" returns "+y);throw new Error(f)}o[u]=l,i=i||l!==s}return i?o:n}}function Y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}var H=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Z=["name","EVENTS","config","loaded"],K=H.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:".concat(t)},pluginReadyType:function(t){return"ready:".concat(t)}});var Q="__anon_id",tt="__user_id",et="__user_traits",b=Object.freeze({ANON_ID:Q,USER_ID:tt,USER_TRAITS:et}),nt=/^utm_/,rt=/^an_prop_/,it=/^an_trait_/;var w="analytics",ot="userId",at="anonymousId",ut=["enable","disable","load"];function ct(t,e){return{userId:e.getItem(tt)||t.an_uid,anonymousId:e.getItem(Q)||t.an_aid||X(),traits:e.getItem(et)||{}}}var st=function(t){return"__TEMP__"+t};var E=i(function(t){var e=function(a){var c,t=Object.prototype,s=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i,o,a,u,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),r=new O(r||[]);return e._invoke=(i=t,o=n,a=r,u=f,function(t,e){if(u===d)throw new Error("");if(u===h){if("throw"===t)throw e;return _()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var r=function t(e,n){var r=e.iterator[n.method];if(r===c){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=c,t(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("")}return m}r=l(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError(""),n.delegate=null,m;{if(!r.done)return r;n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c)}n.delegate=null;return m}(n,a);if(r){if(r===m)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===f)throw u=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=d;r=l(i,o,a);if("normal"===r.type){if(u=a.done?h:p,r.arg!==m)return{value:r.arg,done:a.done}}else"throw"===r.type&&(u=h,a.method="throw",a.arg=r.arg)}}),e}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function y(){}function g(){}function v(){}var b={};b[r]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(k([])));e&&e!==t&&s.call(e,r)&&(b=e);var w=v.prototype=y.prototype=Object.create(b);function x(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function E(a,u){var e;this._invoke=function(n,r){function t(){return new u(function(t,e){!function e(t,n,r,i){t=l(a[t],a,n);if("throw"!==t.type){var o=t.arg,n=o.value;return n&&"object"==typeof n&&s.call(n,"__await")?u.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):u.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)})}i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return t.next=t}}return{next:_}}function _(){return{value:c,done:!0}}return((g.prototype=w.constructor=v).constructor=g).displayName=o(v,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,o(t,i,"GeneratorFunction")),t.prototype=Object.create(w),t},a.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[n]=function(){return this},a.AsyncIterator=E,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new E(u(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(w),o(w,i,"Generator"),w[r]=function(){return this},w.toString=function(){return"[object Generator]"},a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r,i=n.completion;return"throw"===i.type&&(r=i.arg,I(n)),r}}throw new Error("")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),m}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function x(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}var S=function(u){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=u.apply(t,a);function i(t){x(r,e,n,i,o,"next",t)}function o(t){x(r,e,n,i,o,"throw",t)}i(void 0)})}},lt={};function I(t,e){lt[t]&&U(lt[t])&&(lt[t](e),delete lt[t])}function O(i,o,a){return new Promise(function(e,n){return o()?e(i):a<1?n(R(R({},i),{},{queue:!0})):(r=10,new Promise(function(t){return setTimeout(t,r)}).then(function(t){return O(i,o,a-10).then(e,n)}));var r})}function ft(i,t,o){var n,a=t(),e=i.getState(),u=e.plugins,t=e.context,c=e.queue,s=e.user;!t.offline&&c&&c.actions&&c.actions.length&&((n=c.actions.reduce(function(t,e,n){return u[e.plugin].loaded?(t.process.push(e),t.processIndex.push(n)):(t.requeue.push(e),t.requeueIndex.push(n)),t},{processIndex:[],process:[],requeue:[],requeueIndex:[]})).processIndex&&n.processIndex.length&&(n.processIndex.forEach(function(t){var e=c.actions[t],n=e.plugin,r=e.payload.type,t=a[n][r];t&&U(t)&&(t({payload:e=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return[ot,at].reduce(function(t,e){return function(t,e,n){if(t.hasOwnProperty(n)&&!t[n]&&e[n])return Object.assign({},t,p({},"".concat(n),e[n]));return t}(t,n,e)},t)}(e.payload,s),config:u[n].config,instance:o}),n="".concat(r,":").concat(n),i.dispatch(R(R({},e),{},{type:n,_:{called:n,from:"queueDrain"}})))}),t=c.actions.filter(function(t,e){return!~n.processIndex.indexOf(e)}),c.actions=t))}var k=function(t){if(Array.isArray(t))return t};var _=function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n};var P=function(){throw new TypeError("")};var j=function(t,e){return k(t)||_(t,e)||P()};var N=/Start$/,A=/^bootstrap/,T=/^ready/;function L(){return(L=S(E.mark(function t(n,e,r,i,o){var a,u,c,s,l,f,p,d,h,m;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=U(e)?e():e,u=n.type,c=u.replace(N,""),n._&&n._.called)return t.abrupt("return",n);t.next=5;break;case 5:return s=r.getState(),h=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length&&void 0!==n?n:{};return Object.keys(e).filter(function(t){var e=i.plugins||{};return!1!==e[t]&&(!0===e[t]||!1!==e.all&&(!r[t]||!1!==r[t].enabled))}).map(function(t){return e[t]})}(a,s.plugins,n.options),u===K.initializeStart&&n.fromEnable&&(h=Object.keys(s.plugins).filter(function(t){var e=s.plugins[t];return n.plugins.includes(t)&&!e.initialized}).map(function(t){return a[t]})),l=h.map(function(t){return t.name}),f=function(o,a){var t=mt(o).map(function(t){return ht(t,a)});return a.reduce(function(t,e){var n=e.name,r=mt(o,n).map(function(t){return ht(t,a)}),i=j(r,3),e=i[0],r=i[1],i=i[2];return e.length&&(t.beforeNS[n]=e),r.length&&(t.duringNS[n]=r),i.length&&(t.afterNS[n]=i),t},{before:t[0],beforeNS:{},during:t[1],duringNS:{},after:t[2],afterNS:{}})}(u,h),t.next=12,z({action:n,data:{exact:f.before,namespaced:f.beforeNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});case 12:if(gt(p=t.sent,l.length))return t.abrupt("return",p);t.next=15;break;case 15:if(u!==c){t.next=19;break}d=p,t.next=22;break;case 19:return t.next=21,z({action:R(R({},p),{},{type:c}),data:{exact:f.during,namespaced:f.duringNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});case 21:d=t.sent;case 22:if(u.match(N))return m="".concat(c,"End"),t.next=26,z({action:R(R({},d),{},{type:m}),data:{exact:f.after,namespaced:f.afterNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});t.next=29;break;case 26:h=t.sent,(m=function(n){return!!n.meta&&Object.keys(n.meta).reduce(function(t,e){e=n.meta[e];return U(e)?e:t},!1)}(h))&&m({payload:h});case 29:return t.abrupt("return",p);case 30:case"end":return t.stop()}},t)}))).apply(this,arguments)}function z(){return M.apply(this,arguments)}function M(){return(M=S(E.mark(function t(e){var p,a,d,h,n,m,r,y,i,g,v,b,w,x,o,u;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p=e.data,a=e.action,d=e.instance,u=e.state,h=e.allPlugins,n=e.allMatches,m=e.store,r=e.EVENTS,y=u.plugins,i=u.context,g=a.type,v=g.match(N),u=p.exact.map(function(t){return t.pluginName}),v&&(u=n.during.map(function(t){return t.pluginName})),b=function(d,h){return function(t,e,n){var r=e.config,i=e.name,e="".concat(i,".").concat(t.type);n&&(e=n.event);var o,a,u,c,s,l,f,p,e=t.type.match(N)?(u=i,c=e,s=h,l=n,f=t,function(t,e){var n=l?l.name:u,r=e&&vt(e)?e:s;if(l&&(!(r=e&&vt(e)?e:[u]).includes(u)||1!==r.length))throw new Error("Method ".concat(c," can only abort ").concat(u," plugin. ").concat(JSON.stringify(r)," input valid"));return R(R({},f),{},{abort:{reason:t,plugins:r,caller:c,_:n}})}):(o=t,a=e,function(){throw new Error(o.type+" action not cancellable. Remove abort in "+a)});return{payload:(p=t,Object.keys(p).reduce(function(t,e){return"type"===e||(G(p[e])?t[e]=Object.assign({},p[e]):t[e]=p[e]),t},{})),instance:d,config:r||{},abort:e}}}(d,u),w=p.exact.reduce(function(t,e){var n=e.pluginName,r=e.methodName,e=!1;return r.match(/^initialize/)||r.match(/^reset/)||(e=!y[n].loaded),i.offline&&r.match(/^(page|track|identify)/)&&(e=!0),t["".concat(n)]=e,t},{}),t.next=10,p.exact.reduce(function(){var r=S(E.mark(function t(e,n,r){var u,i,o;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.pluginName,t.next=3,e;case 3:if(i=t.sent,p.namespaced&&p.namespaced[u])return t.next=7,p.namespaced[u].reduce(function(){var r=S(E.mark(function t(e,n,r){var i,o,a;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=function(r,i,o){return function(t,e){var n=o||i;return R(R({},r),{},{abort:{reason:t,plugins:e||[i],caller:g,from:n}})}},t.next=3,e;case 3:if(i=t.sent,n.method&&U(n.method)){t.next=6;break}return t.abrupt("return",i);case 6:return function(t,e){var n=wt(t);if(n&&n.name===e){var r=wt(n.method),r=r?"or "+r.method:"";throw new Error([e+" plugin is calling method "+t,"Plugins cant call themselves","Use ".concat(n.method," ").concat(r," in ").concat(e," plugin insteadof ").concat(t)].join("\n"))}}(n.methodName,n.pluginName),t.next=9,n.method({payload:i,instance:d,abort:o(i,u,n.pluginName),config:dt(n.pluginName,y,h),plugins:y});case 9:return a=t.sent,a=G(a)?a:{},t.abrupt("return",Promise.resolve(R(R({},i),a)));case 12:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(a));t.next=11;break;case 7:o=t.sent,i[u]=o,t.next=12;break;case 11:i[u]=a;case 12:return t.abrupt("return",Promise.resolve(i));case 13:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve({}));case 10:return x=t.sent,t.next=13,p.exact.reduce(function(){var r=S(E.mark(function t(e,n,r){var i,o,a,u,c,s,l,f;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.exact.length===r+1,o=n.pluginName,a=h[o],t.next=5,e;case 5:if(u=t.sent,c=x[o]||{},v&&(c=u),yt(c,o))return pt({data:c,method:g,instance:d,pluginName:o,store:m}),t.abrupt("return",Promise.resolve(u));t.next=11;break;case 11:if(yt(u,o))return i&&pt({data:u,method:g,instance:d,store:m}),t.abrupt("return",Promise.resolve(u));t.next=14;break;case 14:if(w.hasOwnProperty(o)&&!0===w[o])return m.dispatch({type:"queue",plugin:o,payload:c,_:{called:"queue",from:"queueMechanism"}}),t.abrupt("return",Promise.resolve(u));t.next=17;break;case 17:return s=b(x[o],h[o]),t.next=20,a[g]({abort:s.abort,payload:c,instance:d,config:dt(o,y,h),plugins:y});case 20:return f=t.sent,l=G(f)?f:{},s=R(R({},u),l),yt(f=x[o],o)?pt({data:f,method:g,instance:d,pluginName:o,store:m}):(l="".concat(g,":").concat(o),(l.match(/:/g)||[]).length<2&&!g.match(A)&&!g.match(T)&&(f=v?s:c,d.dispatch(R(R({},f),{},{type:l,_:{called:l,from:"submethod"}})))),t.abrupt("return",Promise.resolve(s));case 26:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(a));case 13:if(o=t.sent,g.match(N)||g.match(/^registerPlugin/)||g.match(T)||g.match(A)||g.match(/^params/)||g.match(/^userIdChanged/)){t.next=21;break}if(r.plugins.includes(g),o._&&o._.originalAction===g)return t.abrupt("return",o);t.next=18;break;case 18:u=R(R({},o),{_:{originalAction:o.type,called:o.type,from:"engineEnd"}}),gt(o,p.exact.length)&&!g.match(/End$/)&&(u=R(R({},u),{type:o.type+"Aborted"})),m.dispatch(u);case 21:return t.abrupt("return",o);case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}function pt(t){var e=t.data,n=t.method,r=(t.instance,t.pluginName),r=n+"Aborted"+(r?":"+r:"");t.store.dispatch(R(R({},e),{},{type:r,_:{called:r,from:"abort"}}))}function dt(t,e,n){t=e[t]||n[t];return t&&t.config?t.config:{}}function ht(n,t){return t.reduce(function(t,e){return e[n]?t.concat({methodName:n,pluginName:e.name,method:e[n]}):t},[])}function mt(t,e){var n=t.replace(N,""),e=e?":".concat(e):"";return["".concat(t).concat(e),"".concat(n).concat(e),"".concat(n,"End").concat(e)]}function yt(t,e){t=t.abort;return t&&(!0===t||(bt(t,e)||t&&bt(t.plugins,e)))}function gt(t,e){var n=t.abort;if(n){if(!0===n||F(n))return 1;t=n.plugins;return vt(n)&&n.length===e||vt(t)&&t.length===e}}function vt(t){return Array.isArray(t)}function bt(t,e){return!(!t||!vt(t))&&t.includes(e)}function wt(t){t=t.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function xt(m,y,g){var v={};return function(h){return function(d){return function(){var e=S(E.mark(function t(n){var e,r,i,o,a,u,c,s,l,f,p;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.type,r=n.abort,i=n.plugins,o=n,r)return t.abrupt("return",d(n));t.next=4;break;case 4:if(e===K.enablePlugin&&h.dispatch({type:K.initializeStart,plugins:i,disabled:[],fromEnable:!0,ts:n.ts}),e===K.disablePlugin&&setTimeout(function(){I(n.ts)},0),e===K.initializeEnd&&(a=y(),u=Object.keys(a),p=u.filter(function(t){return i.includes(t)}).map(function(t){return a[t]}),c=[],s=[],l=n.disabled,f=p.map(function(e){var t=e.loaded,n=e.name;return O(e,t,1e4).then(function(t){return v[n]||(h.dispatch({type:K.pluginReadyType(n),name:n,events:Object.keys(e).filter(function(t){return!Z.includes(t)})}),v[n]=!0),c=c.concat(n),e}).catch(function(t){if(t instanceof Error)throw new Error(t);return s=s.concat(t.name),t})}),Promise.all(f).then(function(t){var e={plugins:c,failed:s,disabled:l};setTimeout(function(){u.length===f.length+l.length&&h.dispatch(R(R({},{type:K.ready}),e)),I(n.ts,e)},0)})),e!==K.bootstrap)return/^ready:([^:]*)$/.test(e)&&setTimeout(function(){return ft(h,y,m)},0),t.next=11,function(){return L.apply(this,arguments)}(n,y,m,h,g);t.next=13;break;case 11:return p=t.sent,t.abrupt("return",d(p));case 13:return t.abrupt("return",d(o));case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()}}}function Et(){return(new Date).getTime()}function St(){var a=this;_t(this,St),p(this,"before",[]),p(this,"after",[]),p(this,"addMiddleware",function(t,e){a[e]=a[e].concat(t)}),p(this,"removeMiddleware",function(e,t){var n=a[t].findIndex(function(t){return t===e});-1!==n&&(a[t]=[].concat(D(a[t].slice(0,n)),D(a[t].slice(n+1))))}),p(this,"dynamicMiddlewares",function(o){return function(i){return function(r){return function(t){var e={getState:i.getState,dispatch:function(t){return i.dispatch(t)}},n=a[o].map(function(t){return t(e)});return Y.apply(void 0,D(n))(r)(t)}}}})}var It,Ot,kt,_t=function(t,e){if(!(t instanceof e))throw new TypeError("")};function Pt(t,e){return t.substring(e.length+1,t.length)}function jt(t,n,r){return t.reduce(function(t,e){return t[e]=R(R({},r[e]),{enabled:n}),t},r)}It=function(){if(!$)return!1;var t=navigator.appVersion;return~t.indexOf("Win")?"Windows":~t.indexOf("Mac")?"MacOS":~t.indexOf("X11")?"UNIX":~t.indexOf("Linux")?"Linux":"Unknown OS"}(),Ot=$?document.referrer:null,kt=function(){if(!$)return null;var t=(n=navigator).language,e=n.languages,n=n.userLanguage;return e&&e.length?e[0]:n||t}(),l="undefined"==typeof Intl||"function"!=typeof Intl.DateTimeFormat||"function"!=typeof Intl.DateTimeFormat().resolvedOptions?null:Intl.DateTimeFormat().resolvedOptions().timeZone;var Nt={initialized:!1,sessionId:X(),app:null,version:null,debug:!1,offline:!!$&&!navigator.onLine,os:{name:It},userAgent:$?navigator.userAgent:"node",library:{name:w,version:"0.8.0"},timezone:l,locale:kt,campaign:{},referrer:Ot};function At(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Nt,e=1<arguments.length?arguments[1]:void 0,n=t.initialized,r=e.type,i=e.campaign;switch(r){case K.campaign:return R(R({},t),{campaign:i});case K.offline:return R(R({},t),{offline:!0});case K.online:return R(R({},t),{offline:!1});default:return n?t:R(R(R({},Nt),t),{initialized:!0})}}var Tt=["plugins","reducers","storage"];function Lt(t){var e=t;try{e=JSON.parse(JSON.stringify(t))}catch(t){}return e}var zt=/#.*$/;function Mt(t){var e=function(){if($)for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute("rel"))return t.getAttribute("href")}();return e?e.match(/\?/)?e:e+t:window.location.href.replace(zt,"")}function Dt(t){var e=0<arguments.length&&void 0!==t?t:{};if(!$)return e;var n=(u=document).title,r=u.referrer,i=window,o=i.location,a=i.innerWidth,t=i.innerHeight,u=o.hash,o=Mt(i=o.search),t={title:n,url:o,path:"/"+((o=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(o=o))&&o[3]?o[3].split("?")[0].replace(zt,""):""),hash:u,search:i,width:a,height:t};return r&&""!==r&&(t.referrer=r),R(R({},t),e)}var qt={last:{},history:[]};function Rt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:qt,e=1<arguments.length?arguments[1]:void 0,n=e.properties,r=e.options,i=e.meta;if(e.type!==K.page)return t;r=Lt(R({properties:n,meta:i},Object.keys(r).length&&{options:r}));return R(R({},t),{last:r,history:t.history.concat(r)})}var Ct={last:{},history:[]};function Vt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ct,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.meta,i=e.options,o=e.event,e=e.properties;if(n!==K.track)return t;r=Lt(R(R({event:o,properties:e},Object.keys(i).length&&{options:i}),{},{meta:r}));return R(R({},t),{last:r,history:t.history.concat(r)})}var Ut={actions:[]};function Ft(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Ut,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.payload;switch(n){case"queue":var i=r&&r.type&&r.type===K.identify?[e].concat(t.actions):t.actions.concat(e);return R(R({},t),{},{actions:i});case"dequeue":return[];default:return t}}function Gt(t){var e=function(t,e,n){if(!$)return!1;var r=window[(n?"add":"remove")+"EventListener"];t.split(" ").forEach(function(t){r(t,e)})}.bind(null,"online offline",function(){return Promise.resolve(!navigator.onLine).then(t)});return e(!0),1}function $t(){return Array.prototype.slice.call(arguments).reduce(function(t,e){return t||(U(e)?e:t)},!1)}function Bt(){var o="__"+w+"__";return V[o]=[],function(i){return function(t,e,n){var n=i(t,e,n),r=n.dispatch;return Object.assign(n,{dispatch:function(t){var e=t.action||t;return V[o].push(e),r(t)}})}}}function Xt(){return function(){return Y(Y.apply(null,arguments),Bt())}}function Jt(t){return t?F(t)?[t]:t:[]}var Wt=function(t,e,n){return{type:K.setItemStart,timestamp:Et(),key:t,value:e,options:n}},Yt=function(t,e){return{type:K.removeItemStart,timestamp:Et(),key:t,options:e}};function Ht(){function t(){return v}function u(){throw new Error("Abort disabled in listener")}function l(e,n){return function(t){n&&n(t),e(t)}}var r,c,s,f,p,d,h,a,m,i,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=e.reducers||{},y=(e.plugins||[]).reduce(function(t,n){if(U(n))return t.middlewares=t.middlewares.concat(n),t;if(n.NAMESPACE&&(n.name=n.NAMESPACE),!n.name)throw new Error("https://lytics.dev/errors/1");var e=n.EVENTS?Object.keys(n.EVENTS).map(function(t){return n.EVENTS[t]}):[],r=!(!1===n.enabled),i=!(n.config&&!1===n.config.enabled);if(t.pluginEnabled[n.name]=r&&i,delete n.enabled,n.methods){if(ut.includes(n.name))throw new Error(n.name+" is reserved pluginName");t.methods[n.name]=Object.keys(n.methods).reduce(function(t,e){var r;return t[e]=(r=n.methods[e],function(){var n=Array.prototype.slice.call(arguments),t=Array.apply(null,Array(r.length)).map(function(){}).map(function(t,e){if(n[e]||!1===n[e]||null===n[e])return n[e]}).concat(_);return r.apply({instance:_},t)}),t},{}),delete n.methods}e=Object.keys(n).concat(e),e=new Set(t.events.concat(e));if(t.events=Array.from(e),t.pluginsArray=t.pluginsArray.concat(n),t.plugins[n.name])throw new Error(n.name+" already loaded");return t.plugins[n.name]=n,t.plugins[n.name].loaded||(t.plugins[n.name].loaded=function(){return!0}),t},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),o=e.storage||{getItem:function(t){return V[t]},setItem:function(t,e){return V[t]=e},removeItem:function(t){return V[t]=void 0}},g=(r=o,function(t,e,n){e=e.getState("user")[t];if(e)return e;if(n&&G(n)&&n[t])return n[t];n=ct({},r)[t];return n||(V[st(t)]?V[st(t)]:null)}),v=y.plugins,b=y.events.filter(function(t){return!Z.includes(t)}),w=new Set(b.concat(H).filter(function(t){return!Z.includes(t)})),x=Array.from(w).sort(),E=b.sort(),S=new St,I=S.addMiddleware,O=S.removeMiddleware,k=S.dynamicMiddlewares,w=B(),b=ct(w,o),S=R({enable:function(e,n){var r=X();return new Promise(function(t){lt[r]=l(t,n),N.dispatch({type:K.enablePlugin,plugins:Jt(e),ts:r,_:{originalAction:K.enablePlugin}})})},disable:function(e,n){var r=X();return new Promise(function(t){lt[r]=l(t,n),N.dispatch({type:K.disablePlugin,plugins:Jt(e),ts:r,_:{originalAction:K.disablePlugin}})})}},y.methods),_={identify:function(t,n,r,i){var o=F(t)?t:null,a=G(t)?t:n,u=r||{},c=_.user(),s=(V[st(ot)]=o)||a.userId||g(ot,_,a);return new Promise(function(t,e){N.dispatch(R(R({type:K.identifyStart,userId:s,traits:a||{},options:u,anonymousId:c.anonymousId},c.id&&c.id!==o&&{previousId:c.id}),{},{meta:{timestamp:Et(),callback:l(t,$t(n,r,i))}}))})},track:function(t,n,r,i){var o=G(t)?t.event:t;if(!o||!F(o))throw new Error("Event missing");var a=G(t)?t:n||{},u=G(r)?r:{};return new Promise(function(t,e){N.dispatch({type:K.trackStart,event:o,properties:a,options:u,userId:g(ot,_,n),anonymousId:g(at,_,n),meta:{timestamp:Et(),callback:l(t,$t(n,r,i))}})})},page:function(n,r,i){var o=G(n)?n:{},a=G(r)?r:{};return new Promise(function(t,e){N.dispatch({type:K.pageStart,properties:Dt(o),options:a,userId:g(ot,_,o),anonymousId:g(at,_,o),meta:{timestamp:Et(),callback:l(t,$t(n,r,i))}})})},user:function(t){if(t===ot||"id"===t)return g(ot,_);var e=_.getState("user");return t?C(e,t):e},reset:function(n){return new Promise(function(t,e){N.dispatch({type:K.resetStart,timestamp:Et(),callback:l(t,n)})})},ready:function(t){return _.on(K.ready,t)},on:function(n,r){if(!n||!U(r))return!1;if(n===K.bootstrap)throw new Error(".on disabled for "+n);var i=/Start$|Start:/;if("*"===n){var t=function(){return function(e){return function(t){return t.type.match(i)&&r({payload:t,instance:_,plugins:v}),e(t)}}},e=function(){return function(e){return function(t){return t.type.match(i)||r({payload:t,instance:_,plugins:v}),e(t)}}};return I(t,Zt),I(e,Kt),function(){O(t,Zt),O(e,Kt)}}function o(){return function(e){return function(t){return t.type===n&&r({payload:t,instance:_,plugins:v,abort:u}),e(t)}}}var a=n.match(i)?Zt:Kt;return I(o,a),function(){return O(o,a)}},once:function(t,e){if(!t||!U(e))return!1;if(t===K.bootstrap)throw new Error(".once disabled for "+t);var n=_.on(t,function(t){t=t.payload;e({payload:t,instance:_,plugins:v,abort:u}),n()});return n},getState:function(t){var e=N.getState();return t?C(e,t):Object.assign({},e)},dispatch:function(t){var e=F(t)?{type:t}:t;if(n=e.type,H.includes(n))throw new Error("reserved action "+e.type);var n=e.meta||{},t=t._||{},t=R(R({},e),{},{meta:R({timestamp:Et()},n),_:R({originalAction:e.type},t)});N.dispatch(t)},enablePlugin:S.enable,disablePlugin:S.disable,plugins:S,storage:{getItem:o.getItem,setItem:function(t,e,n){N.dispatch(Wt(t,e,n))},removeItem:function(t,e){N.dispatch(Yt(t,e))}},setAnonymousId:function(t,e){_.storage.setItem(Q,t,e)},events:{all:x,core:H,plugins:E}},x=y.middlewares.concat([k(Zt),xt(_,t,{all:x,plugins:E}),(a=o,function(t){return function(o){return function(t){var e=t.type,n=t.key,r=t.value,i=t.options;if(e===K.setItem||e===K.removeItem){if(t.abort)return o(t);e===K.setItem?a.setItem(n,r,i):a.removeItem(n,i)}return o(t)}}}),(x=(p=_).storage,d=x.setItem,h=x.getItem,function(u){return function(a){return function(t){var r,e,n,i,o;return t.type===K.bootstrap&&(r=t.params,e=t.user,h(Q)||d(Q,e.anonymousId),(e=Object.keys(t.params)).length&&(n=r.an_uid,i=r.an_event,o=e.reduce(function(t,e){var n;return(e.match(nt)||e.match(/^(d|g)clid/))&&(n="campaign"===(n=e.replace(nt,""))?"name":n,t.campaign[n]=r[e]),e.match(rt)&&(t.props[e.replace(rt,"")]=r[e]),e.match(it)&&(t.traits[e.replace(it,"")]=r[e]),t},{campaign:{},props:{},traits:{}}),u.dispatch(R(R({type:K.params,raw:r},o),n?{userId:n}:{})),n&&setTimeout(function(){return p.identify(n,o.traits)},0),i&&setTimeout(function(){return p.track(i,o.props)},0),Object.keys(o.campaign).length&&u.dispatch({type:K.campaign,campaign:o.campaign}))),a(t)}}}),(c=(E=(E=_).storage).setItem,s=E.removeItem,f=E.getItem,function(u){return function(a){return function(t){var e,n=t.userId,r=t.traits,i=t.options,o=t.callback;return t.type===K.reset&&([tt,et,Q].forEach(function(t){return s(t)}),[ot,at,"traits"].forEach(function(t){V[st(t)]=void 0}),U(o)&&o()),t.type===K.identify&&(f(Q)||c(Q,X()),e=f(tt),o=f(et)||{},e&&e!==n&&u.dispatch({type:K.userIdChanged,old:{userId:e,traits:o},new:{userId:n,traits:r},options:i}),n&&c(tt,n),r&&c(et,R(R({},o),r))),a(t)}}}),k(Kt)]),E={context:At,user:(i=o,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(r&&r.type===K.setItemEnd&&r.key===Q)return Object.assign({},n,{anonymousId:r.value});switch(r.type){case K.identify:return Object.assign({},n,{userId:r.userId,traits:R(R({},n.traits),r.traits)});case K.reset:return[ot,at,"traits"].forEach(function(t){V[st(t)]=null}),[tt,Q,et].forEach(function(t){i.removeItem(t)}),Object.assign({},n,{userId:null,anonymousId:null,traits:{}});default:return n}}),page:Rt,track:Vt,plugins:(m=t,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0,t={};if("initialize:aborted"===r.type)return n;if(/^registerPlugin:([^:]*)$/.test(r.type)){var e=Pt(r.type,"registerPlugin"),i=m()[e];if(!i||!e)return n;var o=r.enabled;return t[e]={enabled:o,initialized:!!o&&Boolean(!i.initialize),loaded:!!o&&Boolean(i.loaded()),config:i.config||{}},R(R({},n),t)}if(/^initialize:([^:]*)$/.test(r.type)){o=Pt(r.type,K.initialize),i=m()[o];return i&&o?(t[o]=R(R({},n[o]),{initialized:!0,loaded:Boolean(i.loaded())}),R(R({},n),t)):n}if(/^ready:([^:]*)$/.test(r.type))return t[r.name]=R(R({},n[r.name]),{loaded:!0}),R(R({},n),t);switch(r.type){case K.disablePlugin:return R(R({},n),jt(r.plugins,!1,n));case K.enablePlugin:return R(R({},n),jt(r.plugins,!0,n));default:return n}}),queue:Ft},k=Y,o=Y;$&&e.debug&&((j=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__)&&(k=j({trace:!0,traceLimit:25})),o=function(t){return 0===arguments.length?Bt():G(q(t))?Xt():Xt().apply(null,arguments)});var P,j=(P=e,Object.keys(P).reduce(function(t,e){return Tt.includes(e)||(t[e]=P[e]),t},{})),e={context:j,user:b,plugins:y.pluginsArray.reduce(function(t,e){var n=e.name,r=e.config,i=e.loaded,o=y.pluginEnabled[n];return t[n]={enabled:o,initialized:!!o&&Boolean(!e.initialize),loaded:Boolean(i()),config:r||{}},t},{})},N=J(W(R(R({},E),n)),e,o(k(function(){for(var t=arguments.length,a=new Array(t),e=0;e<t;e++)a[e]=arguments[e];return function(o){return function(t,e,n){var e=o(t,e,n),r=e.dispatch,n=[],i={getState:e.getState,dispatch:function(t){return r(t)}},n=a.map(function(t){return t(i)}),r=Y.apply(void 0,D(n))(e.dispatch);return R(R({},e),{},{dispatch:r})}}}.apply(void 0,D(x))))),x=Object.keys(v);N.dispatch({type:K.bootstrap,plugins:x,config:j,params:w,user:b});var A,T,L,z=x.filter(function(t){return y.pluginEnabled[t]}),M=x.filter(function(t){return!y.pluginEnabled[t]});return N.dispatch({type:K.registerPlugins,plugins:x,enabled:y.pluginEnabled}),y.pluginsArray.map(function(t,e){var n=t.bootstrap,r=t.config,i=t.name;n&&U(n)&&n({instance:_,config:r,payload:t}),N.dispatch({type:K.registerPluginType(i),name:i,enabled:y.pluginEnabled[i],plugin:t}),y.pluginsArray.length===e+1&&N.dispatch({type:K.initializeStart,plugins:z,disabled:M})}),Gt(function(t){N.dispatch({type:t?K.offline:K.online})}),A=N,T=t,L=_,setInterval(function(){return ft(A,T,L)},3e3),_}var Zt="before",Kt="after";return t.default=Ht,t.init=Ht,t.Analytics=Ht,t.EVENTS=K,t.CONSTANTS=b,t}({});
var _analytics=function(t){"use strict";var e=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var n=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var r=function(){throw new TypeError("")};var D=function(t){return e(t)||n(t)||r()};function i(t,e){return t(e={exports:{}},e.exports),e.exports}var q=i(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function r(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=r=function(t){return n(t)}:e.exports=r=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},r(t)}e.exports=r});var p=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};function o(e,t){var n,r=Object.keys(e);return Object.getOwnPropertySymbols&&(n=Object.getOwnPropertySymbols(e),t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)),r}var R=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(n,!0).forEach(function(t){p(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(n).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e};function C(t,e,n,r,i){for(e=e.split?e.split("."):e,r=0;r<e.length;r++)t=t?t[e[r]]:i;return t===i?n:t}function a(t,e,n,r,i,o){return"undefined"!=typeof window&&(1<arguments.length?document.cookie=t+"="+encodeURIComponent(e)+(n?"; expires="+new Date(+new Date+1e3*n).toUTCString()+(r?"; path="+r:"")+(i?"; domain="+i:"")+(o?"; secure":""):""):decodeURIComponent((("; "+document.cookie).split("; "+t+"=")[1]||"").split(";")[0]))}function u(t){return(u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var V="object"===("undefined"==typeof self?"undefined":u(self))&&self.self===self&&self||"object"===("undefined"==typeof global?"undefined":u(global))&&global.global===global&&global||void 0;!function(){try{a("_c_","1");var t=-1!==document.cookie.indexOf("_c_");a("_c_","",-1)}catch(t){return}}();function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function U(t){return"function"==typeof t}function G(t){return"string"==typeof t}function $(t){if("object"===c(t)&&null!==t){for(var e=t;null!==Object.getPrototypeOf(e);)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e}}function s(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(t){return null}}var F="undefined"!=typeof document;function B(t){return function(t){var e,n={},r=/([^&=]+)=?([^&]*)/g;for(;o=r.exec(t);){var i=s(o[1]),o=s(o[2]);"[]"===i.substring(i.length-2)?(i=i.substring(0,i.length-2),(n[i]||(n[i]=[])).push(o)):n[i]=""===o||o}for(e in n){var a=e.split("[");1<a.length&&(function(t,e,n){for(var r=e.length-1,i=0;i<r;++i){var o=e[i];o in t||(t[o]={}),t=t[o]}t[e[r]]=n}(n,a.map(function(t){return t.replace(/[?[\]\\ ]/g,"")}),n[e]),delete n[e])}return n}(function(t){if(t){t=t.match(/\?(.*)/);return t&&t[1]?t[1].split("#")[0]:""}return F&&window.location.search.substring(1)}(t))}function X(){for(var t="",e=0,n=4294967295*Math.random()|0;e++<36;){var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx"[e-1],i=15&n;t+="-"==r||"4"==r?r:("x"==r?i:3&i|8).toString(16),n=e%8==0?4294967295*Math.random()|0:n>>4}return t}var m="function",y="undefined",g="reducer",l="@@redux/",v=l+"INIT",f=l+Math.random().toString(36),d=function(){return("undefined"==typeof Symbol?"undefined":q(Symbol))===m&&Symbol.observable||"@@observable"}(),h=" != "+m;function J(t,e,n){if(q(e)===m&&q(n)===y&&(n=e,e=void 0),q(n)!==y){if(q(n)!==m)throw new Error("enhancer"+h);return n(J)(t,e)}if(q(t)!==m)throw new Error(g+h);var r=t,i=e,o=[],a=o,u=!1;function c(){a===o&&(a=o.slice())}function s(){return i}function l(e){if(q(e)!==m)throw new Error("Listener"+h);var n=!0;return c(),a.push(e),function(){var t;n&&(n=!1,c(),t=a.indexOf(e),a.splice(t,1))}}function f(t){if(!$(t))throw new Error("Act != obj");if(q(t.type)===y)throw new Error("ActType "+y);if(u)throw new Error("Dispatch in "+g);try{u=!0,i=r(i,t)}finally{u=!1}for(var e=o=a,n=0;n<e.length;n++)(0,e[n])();return t}return f({type:v}),p({dispatch:f,subscribe:l,getState:s,replaceReducer:function(t){if(q(t)!==m)throw new Error("next "+g+h);r=t,f({type:v})}},d,function(){var n=l;return p({subscribe:function(t){if("object"!==q(t))throw new TypeError("Observer != obj");function e(){t.next&&t.next(i)}return e(),{unsubscribe:n(e)}}},d,function(){return this})})}function W(t){for(var e=Object.keys(t),p={},n=0;n<e.length;n++){var r=e[n];q(t[r])===m&&(p[r]=t[r])}var d,i,h=Object.keys(p);try{i=p,Object.keys(i).forEach(function(t){var e=i[t],n=e(void 0,{type:v});if(q(n)===y||q(e(void 0,{type:f}))===y)throw new Error(g+" "+t+" "+y)})}catch(t){d=t}return function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(d)throw d;for(var i=!1,o={},a=0;a<h.length;a++){var u=h[a],c=p[u],s=n[u],l=c(s,r);if(q(l)===y){var f=(f=u,"action "+((c=(c=r)&&c.type)&&c.toString()||"?")+g+" "+f+" returns "+y);throw new Error(f)}o[u]=l,i=i||l!==s}return i?o:n}}function Y(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return 0===e.length?function(t){return t}:1===e.length?e[0]:e.reduce(function(t,e){return function(){return t(e.apply(void 0,arguments))}})}var H=["bootstrap","params","campaign","initializeStart","initialize","initializeEnd","ready","resetStart","reset","resetEnd","pageStart","page","pageEnd","pageAborted","trackStart","track","trackEnd","trackAborted","identifyStart","identify","identifyEnd","identifyAborted","userIdChanged","registerPlugins","enablePlugin","disablePlugin","online","offline","setItemStart","setItem","setItemEnd","setItemAborted","removeItemStart","removeItem","removeItemEnd","removeItemAborted"],Z=["name","EVENTS","config","loaded"],K=H.reduce(function(t,e){return t[e]=e,t},{registerPluginType:function(t){return"registerPlugin:".concat(t)},pluginReadyType:function(t){return"ready:".concat(t)}});var Q="__anon_id",tt="__user_id",et="__user_traits",b=Object.freeze({ANON_ID:Q,USER_ID:tt,USER_TRAITS:et}),nt=/^utm_/,rt=/^an_prop_/,it=/^an_trait_/;var w="analytics",ot="userId",at="anonymousId";function ut(t,e){return{userId:e.getItem(tt)||t.an_uid,anonymousId:e.getItem(Q)||t.an_aid||X(),traits:e.getItem(et)||{}}}var ct=function(t){return"__TEMP__"+t};var E=i(function(t){var e=function(a){var c,t=Object.prototype,s=t.hasOwnProperty,e="function"==typeof Symbol?Symbol:{},r=e.iterator||"@@iterator",n=e.asyncIterator||"@@asyncIterator",i=e.toStringTag||"@@toStringTag";function o(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{o({},"")}catch(t){o=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i,o,a,u,e=e&&e.prototype instanceof y?e:y,e=Object.create(e.prototype),r=new O(r||[]);return e._invoke=(i=t,o=n,a=r,u=f,function(t,e){if(u===d)throw new Error("");if(u===h){if("throw"===t)throw e;return _()}for(a.method=t,a.arg=e;;){var n=a.delegate;if(n){var r=function t(e,n){var r=e.iterator[n.method];if(r===c){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=c,t(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("")}return m}r=l(r,e.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var r=r.arg;if(!r)return n.method="throw",n.arg=new TypeError(""),n.delegate=null,m;{if(!r.done)return r;n[e.resultName]=r.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=c)}n.delegate=null;return m}(n,a);if(r){if(r===m)continue;return r}}if("next"===a.method)a.sent=a._sent=a.arg;else if("throw"===a.method){if(u===f)throw u=h,a.arg;a.dispatchException(a.arg)}else"return"===a.method&&a.abrupt("return",a.arg);u=d;r=l(i,o,a);if("normal"===r.type){if(u=a.done?h:p,r.arg!==m)return{value:r.arg,done:a.done}}else"throw"===r.type&&(u=h,a.method="throw",a.arg=r.arg)}}),e}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}a.wrap=u;var f="suspendedStart",p="suspendedYield",d="executing",h="completed",m={};function y(){}function g(){}function v(){}var b={};b[r]=function(){return this};e=Object.getPrototypeOf,e=e&&e(e(k([])));e&&e!==t&&s.call(e,r)&&(b=e);var w=v.prototype=y.prototype=Object.create(b);function x(t){["next","throw","return"].forEach(function(e){o(t,e,function(t){return this._invoke(e,t)})})}function E(a,u){var e;this._invoke=function(n,r){function t(){return new u(function(t,e){!function e(t,n,r,i){t=l(a[t],a,n);if("throw"!==t.type){var o=t.arg,n=o.value;return n&&"object"==typeof n&&s.call(n,"__await")?u.resolve(n.__await).then(function(t){e("next",t,r,i)},function(t){e("throw",t,r,i)}):u.resolve(n).then(function(t){o.value=t,r(o)},function(t){return e("throw",t,r,i)})}i(t.arg)}(n,r,t,e)})}return e=e?e.then(t,t):t()}}function S(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function I(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function O(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(S,this),this.reset(!0)}function k(e){if(e){var t=e[r];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,t=function t(){for(;++n<e.length;)if(s.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=c,t.done=!0,t};return t.next=t}}return{next:_}}function _(){return{value:c,done:!0}}return((g.prototype=w.constructor=v).constructor=g).displayName=o(v,i,"GeneratorFunction"),a.isGeneratorFunction=function(t){t="function"==typeof t&&t.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},a.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,v):(t.__proto__=v,o(t,i,"GeneratorFunction")),t.prototype=Object.create(w),t},a.awrap=function(t){return{__await:t}},x(E.prototype),E.prototype[n]=function(){return this},a.AsyncIterator=E,a.async=function(t,e,n,r,i){void 0===i&&(i=Promise);var o=new E(u(t,e,n,r),i);return a.isGeneratorFunction(e)?o:o.next().then(function(t){return t.done?t.value:o.next()})},x(w),o(w,i,"Generator"),w[r]=function(){return this},w.toString=function(){return"[object Generator]"},a.keys=function(n){var t,r=[];for(t in n)r.push(t);return r.reverse(),function t(){for(;r.length;){var e=r.pop();if(e in n)return t.value=e,t.done=!1,t}return t.done=!0,t}},a.values=k,O.prototype={constructor:O,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=c,this.done=!1,this.delegate=null,this.method="next",this.arg=c,this.tryEntries.forEach(I),!t)for(var e in this)"t"===e.charAt(0)&&s.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=c)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(n){if(this.done)throw n;var r=this;function t(t,e){return o.type="throw",o.arg=n,r.next=t,e&&(r.method="next",r.arg=c),!!e}for(var e=this.tryEntries.length-1;0<=e;--e){var i=this.tryEntries[e],o=i.completion;if("root"===i.tryLoc)return t("end");if(i.tryLoc<=this.prev){var a=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(a&&u){if(this.prev<i.catchLoc)return t(i.catchLoc,!0);if(this.prev<i.finallyLoc)return t(i.finallyLoc)}else if(a){if(this.prev<i.catchLoc)return t(i.catchLoc,!0)}else{if(!u)throw new Error("");if(this.prev<i.finallyLoc)return t(i.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;0<=n;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=t,o.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(o)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),I(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;0<=e;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r,i=n.completion;return"throw"===i.type&&(r=i.arg,I(n)),r}}throw new Error("")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=c),m}},a}(t.exports);try{regeneratorRuntime=e}catch(t){Function("r","regeneratorRuntime = r")(e)}});function x(t,e,n,r,i,o,a){try{var u=t[o](a),c=u.value}catch(t){return void n(t)}u.done?e(c):Promise.resolve(c).then(r,i)}var S=function(u){return function(){var t=this,a=arguments;return new Promise(function(e,n){var r=u.apply(t,a);function i(t){x(r,e,n,i,o,"next",t)}function o(t){x(r,e,n,i,o,"throw",t)}i(void 0)})}},st={};function I(t,e){st[t]&&U(st[t])&&(st[t](e),delete st[t])}function O(i,o,a){return new Promise(function(e,n){return o()?e(i):a<1?n(R(R({},i),{},{queue:!0})):(r=10,new Promise(function(t){return setTimeout(t,r)}).then(function(t){return O(i,o,a-10).then(e,n)}));var r})}function lt(i,t,o){var n,a=t(),e=i.getState(),u=e.plugins,t=e.context,c=e.queue,s=e.user;!t.offline&&c&&c.actions&&c.actions.length&&((n=c.actions.reduce(function(t,e,n){return u[e.plugin].loaded?(t.process.push(e),t.processIndex.push(n)):(t.requeue.push(e),t.requeueIndex.push(n)),t},{processIndex:[],process:[],requeue:[],requeueIndex:[]})).processIndex&&n.processIndex.length&&(n.processIndex.forEach(function(t){var e=c.actions[t],n=e.plugin,r=e.payload.type,t=a[n][r];t&&U(t)&&(t({payload:e=function(t){var n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};return[ot,at].reduce(function(t,e){return function(t,e,n){if(t.hasOwnProperty(n)&&!t[n]&&e[n])return Object.assign({},t,p({},"".concat(n),e[n]));return t}(t,n,e)},t)}(e.payload,s),config:u[n].config,instance:o}),n="".concat(r,":").concat(n),i.dispatch(R(R({},e),{},{type:n,_:{called:n,from:"queueDrain"}})))}),t=c.actions.filter(function(t,e){return!~n.processIndex.indexOf(e)}),c.actions=t))}var k=function(t){if(Array.isArray(t))return t};var _=function(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,u=t[Symbol.iterator]();!(r=(a=u.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==u.return||u.return()}finally{if(i)throw o}}return n};var P=function(){throw new TypeError("")};var j=function(t,e){return k(t)||_(t,e)||P()};var N=/Start$/,A=/^bootstrap/,T=/^ready/;function L(){return(L=S(E.mark(function t(n,e,r,i,o){var a,u,c,s,l,f,p,d,h,m;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(a=U(e)?e():e,u=n.type,c=u.replace(N,""),n._&&n._.called)return t.abrupt("return",n);t.next=5;break;case 5:return s=r.getState(),h=function(e,t,n){var r=1<arguments.length&&void 0!==t?t:{},i=2<arguments.length&&void 0!==n?n:{};return Object.keys(e).filter(function(t){var e=i.plugins||{};return"boolean"==typeof e[t]?e[t]:!1!==e.all&&(!r[t]||!1!==r[t].enabled)}).map(function(t){return e[t]})}(a,s.plugins,n.options),u===K.initializeStart&&n.fromEnable&&(h=Object.keys(s.plugins).filter(function(t){var e=s.plugins[t];return n.plugins.includes(t)&&!e.initialized}).map(function(t){return a[t]})),l=h.map(function(t){return t.name}),f=function(o,a){var t=ht(o).map(function(t){return dt(t,a)});return a.reduce(function(t,e){var n=e.name,r=ht(o,n).map(function(t){return dt(t,a)}),i=j(r,3),e=i[0],r=i[1],i=i[2];return e.length&&(t.beforeNS[n]=e),r.length&&(t.duringNS[n]=r),i.length&&(t.afterNS[n]=i),t},{before:t[0],beforeNS:{},during:t[1],duringNS:{},after:t[2],afterNS:{}})}(u,h),t.next=12,z({action:n,data:{exact:f.before,namespaced:f.beforeNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});case 12:if(yt(p=t.sent,l.length))return t.abrupt("return",p);t.next=15;break;case 15:if(u!==c){t.next=19;break}d=p,t.next=22;break;case 19:return t.next=21,z({action:R(R({},p),{},{type:c}),data:{exact:f.during,namespaced:f.duringNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});case 21:d=t.sent;case 22:if(u.match(N))return m="".concat(c,"End"),t.next=26,z({action:R(R({},d),{},{type:m}),data:{exact:f.after,namespaced:f.afterNS},state:s,allPlugins:a,allMatches:f,instance:r,store:i,EVENTS:o});t.next=29;break;case 26:h=t.sent,(m=function(n){return!!n.meta&&Object.keys(n.meta).reduce(function(t,e){e=n.meta[e];return U(e)?e:t},!1)}(h))&&m({payload:h});case 29:return t.abrupt("return",p);case 30:case"end":return t.stop()}},t)}))).apply(this,arguments)}function z(){return M.apply(this,arguments)}function M(){return(M=S(E.mark(function t(e){var p,a,d,h,n,m,r,y,i,g,v,b,w,x,o,u;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return p=e.data,a=e.action,d=e.instance,u=e.state,h=e.allPlugins,n=e.allMatches,m=e.store,r=e.EVENTS,y=u.plugins,i=u.context,g=a.type,v=g.match(N),u=p.exact.map(function(t){return t.pluginName}),v&&(u=n.during.map(function(t){return t.pluginName})),b=function(d,h){return function(t,e,n){var r=e.config,i=e.name,e="".concat(i,".").concat(t.type);n&&(e=n.event);var o,a,u,c,s,l,f,p,e=t.type.match(N)?(u=i,c=e,s=h,l=n,f=t,function(t,e){var n=l?l.name:u,r=e&&gt(e)?e:s;if(l&&(!(r=e&&gt(e)?e:[u]).includes(u)||1!==r.length))throw new Error("Method ".concat(c," can only abort ").concat(u," plugin. ").concat(JSON.stringify(r)," input valid"));return R(R({},f),{},{abort:{reason:t,plugins:r,caller:c,_:n}})}):(o=t,a=e,function(){throw new Error(o.type+" action not cancellable. Remove abort in "+a)});return{payload:(p=t,Object.keys(p).reduce(function(t,e){return"type"===e||($(p[e])?t[e]=Object.assign({},p[e]):t[e]=p[e]),t},{})),instance:d,config:r||{},abort:e}}}(d,u),w=p.exact.reduce(function(t,e){var n=e.pluginName,r=e.methodName,e=!1;return r.match(/^initialize/)||r.match(/^reset/)||(e=!y[n].loaded),i.offline&&r.match(/^(page|track|identify)/)&&(e=!0),t["".concat(n)]=e,t},{}),t.next=10,p.exact.reduce(function(){var r=S(E.mark(function t(e,n,r){var u,i,o;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return u=n.pluginName,t.next=3,e;case 3:if(i=t.sent,p.namespaced&&p.namespaced[u])return t.next=7,p.namespaced[u].reduce(function(){var r=S(E.mark(function t(e,n,r){var i,o,a;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return o=function(r,i,o){return function(t,e){var n=o||i;return R(R({},r),{},{abort:{reason:t,plugins:e||[i],caller:g,from:n}})}},t.next=3,e;case 3:if(i=t.sent,n.method&&U(n.method)){t.next=6;break}return t.abrupt("return",i);case 6:return function(t,e){var n=bt(t);if(n&&n.name===e){var r=bt(n.method),r=r?"or "+r.method:"";throw new Error([e+" plugin is calling method "+t,"Plugins cant call self","Use ".concat(n.method," ").concat(r," in ").concat(e," plugin insteadof ").concat(t)].join("\n"))}}(n.methodName,n.pluginName),t.next=9,n.method({payload:i,instance:d,abort:o(i,u,n.pluginName),config:pt(n.pluginName,y,h),plugins:y});case 9:return a=t.sent,a=$(a)?a:{},t.abrupt("return",Promise.resolve(R(R({},i),a)));case 12:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(a));t.next=11;break;case 7:o=t.sent,i[u]=o,t.next=12;break;case 11:i[u]=a;case 12:return t.abrupt("return",Promise.resolve(i));case 13:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve({}));case 10:return x=t.sent,t.next=13,p.exact.reduce(function(){var r=S(E.mark(function t(e,n,r){var i,o,a,u,c,s,l,f;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return i=p.exact.length===r+1,o=n.pluginName,a=h[o],t.next=5,e;case 5:if(u=t.sent,c=x[o]||{},v&&(c=u),mt(c,o))return ft({data:c,method:g,instance:d,pluginName:o,store:m}),t.abrupt("return",Promise.resolve(u));t.next=11;break;case 11:if(mt(u,o))return i&&ft({data:u,method:g,instance:d,store:m}),t.abrupt("return",Promise.resolve(u));t.next=14;break;case 14:if(w.hasOwnProperty(o)&&!0===w[o])return m.dispatch({type:"queue",plugin:o,payload:c,_:{called:"queue",from:"queueMechanism"}}),t.abrupt("return",Promise.resolve(u));t.next=17;break;case 17:return s=b(x[o],h[o]),t.next=20,a[g]({abort:s.abort,payload:c,instance:d,config:pt(o,y,h),plugins:y});case 20:return f=t.sent,l=$(f)?f:{},s=R(R({},u),l),mt(f=x[o],o)?ft({data:f,method:g,instance:d,pluginName:o,store:m}):(l="".concat(g,":").concat(o),(l.match(/:/g)||[]).length<2&&!g.match(A)&&!g.match(T)&&(f=v?s:c,d.dispatch(R(R({},f),{},{type:l,_:{called:l,from:"submethod"}})))),t.abrupt("return",Promise.resolve(s));case 26:case"end":return t.stop()}},t)}));return function(t,e,n){return r.apply(this,arguments)}}(),Promise.resolve(a));case 13:if(o=t.sent,g.match(N)||g.match(/^registerPlugin/)||g.match(T)||g.match(A)||g.match(/^params/)||g.match(/^userIdChanged/)){t.next=21;break}if(r.plugins.includes(g),o._&&o._.originalAction===g)return t.abrupt("return",o);t.next=18;break;case 18:u=R(R({},o),{_:{originalAction:o.type,called:o.type,from:"engineEnd"}}),yt(o,p.exact.length)&&!g.match(/End$/)&&(u=R(R({},u),{type:o.type+"Aborted"})),m.dispatch(u);case 21:return t.abrupt("return",o);case 22:case"end":return t.stop()}},t)}))).apply(this,arguments)}function ft(t){var e=t.data,n=t.method,r=(t.instance,t.pluginName),r=n+"Aborted"+(r?":"+r:"");t.store.dispatch(R(R({},e),{},{type:r,_:{called:r,from:"abort"}}))}function pt(t,e,n){t=e[t]||n[t];return t&&t.config?t.config:{}}function dt(n,t){return t.reduce(function(t,e){return e[n]?t.concat({methodName:n,pluginName:e.name,method:e[n]}):t},[])}function ht(t,e){var n=t.replace(N,""),e=e?":".concat(e):"";return["".concat(t).concat(e),"".concat(n).concat(e),"".concat(n,"End").concat(e)]}function mt(t,e){t=t.abort;return t&&(!0===t||(vt(t,e)||t&&vt(t.plugins,e)))}function yt(t,e){var n=t.abort;if(n){if(!0===n||G(n))return 1;t=n.plugins;return gt(n)&&n.length===e||gt(t)&&t.length===e}}function gt(t){return Array.isArray(t)}function vt(t,e){return!(!t||!gt(t))&&t.includes(e)}function bt(t){t=t.match(/(.*):(.*)/);return!!t&&{method:t[1],name:t[2]}}function wt(m,y,g){var v={};return function(h){return function(d){return function(){var e=S(E.mark(function t(n){var e,r,i,o,a,u,c,s,l,f,p;return E.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=n.type,r=n.abort,i=n.plugins,o=n,r)return t.abrupt("return",d(n));t.next=4;break;case 4:if(e===K.enablePlugin&&h.dispatch({type:K.initializeStart,plugins:i,disabled:[],fromEnable:!0,ts:n.ts}),e===K.disablePlugin&&setTimeout(function(){I(n.ts)},0),e===K.initializeEnd&&(a=y(),u=Object.keys(a),p=u.filter(function(t){return i.includes(t)}).map(function(t){return a[t]}),c=[],s=[],l=n.disabled,f=p.map(function(e){var t=e.loaded,n=e.name;return O(e,t,1e4).then(function(t){return v[n]||(h.dispatch({type:K.pluginReadyType(n),name:n,events:Object.keys(e).filter(function(t){return!Z.includes(t)})}),v[n]=!0),c=c.concat(n),e}).catch(function(t){if(t instanceof Error)throw new Error(t);return s=s.concat(t.name),t})}),Promise.all(f).then(function(t){var e={plugins:c,failed:s,disabled:l};setTimeout(function(){u.length===f.length+l.length&&h.dispatch(R(R({},{type:K.ready}),e)),I(n.ts,e)},0)})),e!==K.bootstrap)return/^ready:([^:]*)$/.test(e)&&setTimeout(function(){return lt(h,y,m)},0),t.next=11,function(){return L.apply(this,arguments)}(n,y,m,h,g);t.next=13;break;case 11:return p=t.sent,t.abrupt("return",d(p));case 13:return t.abrupt("return",d(o));case 14:case"end":return t.stop()}},t)}));return function(t){return e.apply(this,arguments)}}()}}}function xt(){return(new Date).getTime()}function Et(){var a=this;kt(this,Et),p(this,"before",[]),p(this,"after",[]),p(this,"addMiddleware",function(t,e){a[e]=a[e].concat(t)}),p(this,"removeMiddleware",function(e,t){var n=a[t].findIndex(function(t){return t===e});-1!==n&&(a[t]=[].concat(D(a[t].slice(0,n)),D(a[t].slice(n+1))))}),p(this,"dynamicMiddlewares",function(o){return function(i){return function(r){return function(t){var e={getState:i.getState,dispatch:function(t){return i.dispatch(t)}},n=a[o].map(function(t){return t(e)});return Y.apply(void 0,D(n))(r)(t)}}}})}var St,It,Ot,kt=function(t,e){if(!(t instanceof e))throw new TypeError("")};function _t(t,e){return t.substring(e.length+1,t.length)}function Pt(t,n,r){return t.reduce(function(t,e){return t[e]=R(R({},r[e]),{enabled:n}),t},r)}St=function(){if(!F)return!1;var t=navigator.appVersion;return~t.indexOf("Win")?"Windows":~t.indexOf("Mac")?"MacOS":~t.indexOf("X11")?"UNIX":~t.indexOf("Linux")?"Linux":"Unknown OS"}(),It=F?document.referrer:null,Ot=function(){if(F){var t=navigator,e=t.language,n=t.languages,t=t.userLanguage;return t||(n&&n.length?n[0]:e)}}(),l=function(){try{return Intl.DateTimeFormat().resolvedOptions().timeZone}catch(t){}}();var jt={initialized:!1,sessionId:X(),app:null,version:null,debug:!1,offline:!!F&&!navigator.onLine,os:{name:St},userAgent:F?navigator.userAgent:"node",library:{name:w,version:"0.9.0"},timezone:l,locale:Ot,campaign:{},referrer:It};function Nt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:jt,e=1<arguments.length?arguments[1]:void 0,n=t.initialized,r=e.type,i=e.campaign;switch(r){case K.campaign:return R(R({},t),{campaign:i});case K.offline:return R(R({},t),{offline:!0});case K.online:return R(R({},t),{offline:!1});default:return n?t:R(R(R({},jt),t),{initialized:!0})}}var At=["plugins","reducers","storage"];function Tt(t){var e=t;try{e=JSON.parse(JSON.stringify(t))}catch(t){}return e}var Lt=/#.*$/;function zt(t){var e=function(){if(F)for(var t,e=document.getElementsByTagName("link"),n=0;t=e[n];n++)if("canonical"===t.getAttribute("rel"))return t.getAttribute("href")}();return e?e.match(/\?/)?e:e+t:window.location.href.replace(Lt,"")}function Mt(t){var e=0<arguments.length&&void 0!==t?t:{};if(!F)return e;var n=(u=document).title,r=u.referrer,i=window,o=i.location,a=i.innerWidth,t=i.innerHeight,u=o.hash,o=zt(i=o.search),t={title:n,url:o,path:"/"+((o=/(http[s]?:\/\/)?([^\/\s]+\/)(.*)/g.exec(o=o))&&o[3]?o[3].split("?")[0].replace(Lt,""):""),hash:u,search:i,width:a,height:t};return r&&""!==r&&(t.referrer=r),R(R({},t),e)}var Dt={last:{},history:[]};function qt(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Dt,e=1<arguments.length?arguments[1]:void 0,n=e.properties,r=e.options,i=e.meta;if(e.type!==K.page)return t;r=Tt(R({properties:n,meta:i},Object.keys(r).length&&{options:r}));return R(R({},t),{last:r,history:t.history.concat(r)})}var Rt={last:{},history:[]};function Ct(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Rt,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.meta,i=e.options,o=e.event,e=e.properties;if(n!==K.track)return t;r=Tt(R(R({event:o,properties:e},Object.keys(i).length&&{options:i}),{},{meta:r}));return R(R({},t),{last:r,history:t.history.concat(r)})}var Vt={actions:[]};function Ut(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:Vt,e=1<arguments.length?arguments[1]:void 0,n=e.type,r=e.payload;switch(n){case"queue":var i=r&&r.type&&r.type===K.identify?[e].concat(t.actions):t.actions.concat(e);return R(R({},t),{},{actions:i});case"dequeue":return[];default:return t}}function Gt(t){var e=function(t,e,n){if(!F)return!1;var r=window[(n?"add":"remove")+"EventListener"];t.split(" ").forEach(function(t){r(t,e)})}.bind(null,"online offline",function(){return Promise.resolve(!navigator.onLine).then(t)});return e(!0),1}function $t(){return Array.prototype.slice.call(arguments).reduce(function(t,e){return t||(U(e)?e:t)},!1)}function Ft(){var o="__"+w+"__";return V[o]=[],function(i){return function(t,e,n){var n=i(t,e,n),r=n.dispatch;return Object.assign(n,{dispatch:function(t){var e=t.action||t;return V[o].push(e),r(t)}})}}}function Bt(){return function(){return Y(Y.apply(null,arguments),Ft())}}function Xt(t){return t?G(t)?[t]:t:[]}var Jt=function(t,e,n){return{type:K.setItemStart,timestamp:xt(),key:t,value:e,options:n}},Wt=function(t,e){return{type:K.removeItemStart,timestamp:xt(),key:t,options:e}};function Yt(){function t(){return v}function u(){throw new Error("Abort disabled in listener")}function l(e,n){return function(t){n&&n(t),e(t)}}var r,c,s,f,p,d,h,a,m,i,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=e.reducers||{},y=(e.plugins||[]).reduce(function(t,n){if(U(n))return t.middlewares=t.middlewares.concat(n),t;if(n.NAMESPACE&&(n.name=n.NAMESPACE),!n.name)throw new Error("https://lytics.dev/errors/1");var e=n.EVENTS?Object.keys(n.EVENTS).map(function(t){return n.EVENTS[t]}):[],r=!(!1===n.enabled),i=!(n.config&&!1===n.config.enabled);t.pluginEnabled[n.name]=r&&i,delete n.enabled,n.methods&&(t.methods[n.name]=Object.keys(n.methods).reduce(function(t,e){var r;return t[e]=(r=n.methods[e],function(){var n=Array.prototype.slice.call(arguments),t=Array.apply(null,Array(r.length)).map(function(){}).map(function(t,e){if(n[e]||!1===n[e]||null===n[e])return n[e]}).concat(_);return r.apply({instance:_},t)}),t},{}),delete n.methods);e=Object.keys(n).concat(e),e=new Set(t.events.concat(e));if(t.events=Array.from(e),t.pluginsArray=t.pluginsArray.concat(n),t.plugins[n.name])throw new Error(n.name+" already loaded");return t.plugins[n.name]=n,t.plugins[n.name].loaded||(t.plugins[n.name].loaded=function(){return!0}),t},{plugins:{},pluginEnabled:{},methods:{},pluginsArray:[],middlewares:[],events:[]}),o=e.storage||{getItem:function(t){return V[t]},setItem:function(t,e){return V[t]=e},removeItem:function(t){return V[t]=void 0}},g=(r=o,function(t,e,n){e=e.getState("user")[t];if(e)return e;if(n&&$(n)&&n[t])return n[t];n=ut({},r)[t];return n||(V[ct(t)]?V[ct(t)]:null)}),v=y.plugins,b=y.events.filter(function(t){return!Z.includes(t)}),w=new Set(b.concat(H).filter(function(t){return!Z.includes(t)})),x=Array.from(w).sort(),E=b.sort(),S=new Et,I=S.addMiddleware,O=S.removeMiddleware,k=S.dynamicMiddlewares,w=B(),b=ut(w,o),S=R({enable:function(e,n){var r=X();return new Promise(function(t){st[r]=l(t,n),N.dispatch({type:K.enablePlugin,plugins:Xt(e),ts:r,_:{originalAction:K.enablePlugin}})})},disable:function(e,n){var r=X();return new Promise(function(t){st[r]=l(t,n),N.dispatch({type:K.disablePlugin,plugins:Xt(e),ts:r,_:{originalAction:K.disablePlugin}})})}},y.methods),_={identify:function(t,n,r,i){var o=G(t)?t:null,a=$(t)?t:n,u=r||{},c=_.user(),s=(V[ct(ot)]=o)||a.userId||g(ot,_,a);return new Promise(function(t,e){N.dispatch(R(R({type:K.identifyStart,userId:s,traits:a||{},options:u,anonymousId:c.anonymousId},c.id&&c.id!==o&&{previousId:c.id}),{},{meta:{timestamp:xt(),callback:l(t,$t(n,r,i))}}))})},track:function(t,n,r,i){var o=$(t)?t.event:t;if(!o||!G(o))throw new Error("Event missing");var a=$(t)?t:n||{},u=$(r)?r:{};return new Promise(function(t,e){N.dispatch({type:K.trackStart,event:o,properties:a,options:u,userId:g(ot,_,n),anonymousId:g(at,_,n),meta:{timestamp:xt(),callback:l(t,$t(n,r,i))}})})},page:function(n,r,i){var o=$(n)?n:{},a=$(r)?r:{};return new Promise(function(t,e){N.dispatch({type:K.pageStart,properties:Mt(o),options:a,userId:g(ot,_,o),anonymousId:g(at,_,o),meta:{timestamp:xt(),callback:l(t,$t(n,r,i))}})})},user:function(t){if(t===ot||"id"===t)return g(ot,_);var e=_.getState("user");return t?C(e,t):e},reset:function(n){return new Promise(function(t,e){N.dispatch({type:K.resetStart,timestamp:xt(),callback:l(t,n)})})},ready:function(t){return _.on(K.ready,t)},on:function(n,r){if(!n||!U(r))return!1;if(n===K.bootstrap)throw new Error(".on disabled for "+n);var i=/Start$|Start:/;if("*"===n){var t=function(){return function(e){return function(t){return t.type.match(i)&&r({payload:t,instance:_,plugins:v}),e(t)}}},e=function(){return function(e){return function(t){return t.type.match(i)||r({payload:t,instance:_,plugins:v}),e(t)}}};return I(t,Ht),I(e,Zt),function(){O(t,Ht),O(e,Zt)}}function o(){return function(e){return function(t){return t.type===n&&r({payload:t,instance:_,plugins:v,abort:u}),e(t)}}}var a=n.match(i)?Ht:Zt;return I(o,a),function(){return O(o,a)}},once:function(t,e){if(!t||!U(e))return!1;if(t===K.bootstrap)throw new Error(".once disabled for "+t);var n=_.on(t,function(t){t=t.payload;e({payload:t,instance:_,plugins:v,abort:u}),n()});return n},getState:function(t){var e=N.getState();return t?C(e,t):Object.assign({},e)},dispatch:function(t){var e=G(t)?{type:t}:t;if(n=e.type,H.includes(n))throw new Error("reserved action "+e.type);var n=e.meta||{},t=t._||{},t=R(R({},e),{},{meta:R({timestamp:xt()},n),_:R({originalAction:e.type},t)});N.dispatch(t)},enablePlugin:S.enable,disablePlugin:S.disable,plugins:S,storage:{getItem:o.getItem,setItem:function(t,e,n){N.dispatch(Jt(t,e,n))},removeItem:function(t,e){N.dispatch(Wt(t,e))}},setAnonymousId:function(t,e){_.storage.setItem(Q,t,e)},events:{all:x,core:H,plugins:E}},x=y.middlewares.concat([k(Ht),wt(_,t,{all:x,plugins:E}),(a=o,function(t){return function(o){return function(t){var e=t.type,n=t.key,r=t.value,i=t.options;if(e===K.setItem||e===K.removeItem){if(t.abort)return o(t);e===K.setItem?a.setItem(n,r,i):a.removeItem(n,i)}return o(t)}}}),(x=(p=_).storage,d=x.setItem,h=x.getItem,function(u){return function(a){return function(t){var r,e,n,i,o;return t.type===K.bootstrap&&(r=t.params,e=t.user,h(Q)||d(Q,e.anonymousId),(e=Object.keys(t.params)).length&&(n=r.an_uid,i=r.an_event,o=e.reduce(function(t,e){var n;return(e.match(nt)||e.match(/^(d|g)clid/))&&(n="campaign"===(n=e.replace(nt,""))?"name":n,t.campaign[n]=r[e]),e.match(rt)&&(t.props[e.replace(rt,"")]=r[e]),e.match(it)&&(t.traits[e.replace(it,"")]=r[e]),t},{campaign:{},props:{},traits:{}}),u.dispatch(R(R({type:K.params,raw:r},o),n?{userId:n}:{})),n&&setTimeout(function(){return p.identify(n,o.traits)},0),i&&setTimeout(function(){return p.track(i,o.props)},0),Object.keys(o.campaign).length&&u.dispatch({type:K.campaign,campaign:o.campaign}))),a(t)}}}),(c=(E=(E=_).storage).setItem,s=E.removeItem,f=E.getItem,function(u){return function(a){return function(t){var e,n=t.userId,r=t.traits,i=t.options,o=t.callback;return t.type===K.reset&&([tt,et,Q].forEach(function(t){return s(t)}),[ot,at,"traits"].forEach(function(t){V[ct(t)]=void 0}),U(o)&&o()),t.type===K.identify&&(f(Q)||c(Q,X()),e=f(tt),o=f(et)||{},e&&e!==n&&u.dispatch({type:K.userIdChanged,old:{userId:e,traits:o},new:{userId:n,traits:r},options:i}),n&&c(tt,n),r&&c(et,R(R({},o),r))),a(t)}}}),k(Zt)]),E={context:Nt,user:(i=o,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0;if(r&&r.type===K.setItemEnd&&r.key===Q)return Object.assign({},n,{anonymousId:r.value});switch(r.type){case K.identify:return Object.assign({},n,{userId:r.userId,traits:R(R({},n.traits),r.traits)});case K.reset:return[ot,at,"traits"].forEach(function(t){V[ct(t)]=null}),[tt,Q,et].forEach(function(t){i.removeItem(t)}),Object.assign({},n,{userId:null,anonymousId:null,traits:{}});default:return n}}),page:qt,track:Ct,plugins:(m=t,function(t,e){var n=0<arguments.length&&void 0!==t?t:{},r=1<arguments.length?e:void 0,t={};if("initialize:aborted"===r.type)return n;if(/^registerPlugin:([^:]*)$/.test(r.type)){var e=_t(r.type,"registerPlugin"),i=m()[e];if(!i||!e)return n;var o=r.enabled;return t[e]={enabled:o,initialized:!!o&&Boolean(!i.initialize),loaded:!!o&&Boolean(i.loaded()),config:i.config||{}},R(R({},n),t)}if(/^initialize:([^:]*)$/.test(r.type)){o=_t(r.type,K.initialize),i=m()[o];return i&&o?(t[o]=R(R({},n[o]),{initialized:!0,loaded:Boolean(i.loaded())}),R(R({},n),t)):n}if(/^ready:([^:]*)$/.test(r.type))return t[r.name]=R(R({},n[r.name]),{loaded:!0}),R(R({},n),t);switch(r.type){case K.disablePlugin:return R(R({},n),Pt(r.plugins,!1,n));case K.enablePlugin:return R(R({},n),Pt(r.plugins,!0,n));default:return n}}),queue:Ut},k=Y,o=Y;F&&e.debug&&((j=window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__)&&(k=j({trace:!0,traceLimit:25})),o=function(t){return 0===arguments.length?Ft():$(q(t))?Bt():Bt().apply(null,arguments)});var P,j=(P=e,Object.keys(P).reduce(function(t,e){return At.includes(e)||(t[e]=P[e]),t},{})),e={context:j,user:b,plugins:y.pluginsArray.reduce(function(t,e){var n=e.name,r=e.config,i=e.loaded,o=y.pluginEnabled[n];return t[n]={enabled:o,initialized:!!o&&Boolean(!e.initialize),loaded:Boolean(i()),config:r||{}},t},{})},N=J(W(R(R({},E),n)),e,o(k(function(){for(var t=arguments.length,a=new Array(t),e=0;e<t;e++)a[e]=arguments[e];return function(o){return function(t,e,n){var e=o(t,e,n),r=e.dispatch,n=[],i={getState:e.getState,dispatch:function(t){return r(t)}},n=a.map(function(t){return t(i)}),r=Y.apply(void 0,D(n))(e.dispatch);return R(R({},e),{},{dispatch:r})}}}.apply(void 0,D(x))))),x=Object.keys(v);N.dispatch({type:K.bootstrap,plugins:x,config:j,params:w,user:b});var A,T,L,z=x.filter(function(t){return y.pluginEnabled[t]}),M=x.filter(function(t){return!y.pluginEnabled[t]});return N.dispatch({type:K.registerPlugins,plugins:x,enabled:y.pluginEnabled}),y.pluginsArray.map(function(t,e){var n=t.bootstrap,r=t.config,i=t.name;n&&U(n)&&n({instance:_,config:r,payload:t}),N.dispatch({type:K.registerPluginType(i),name:i,enabled:y.pluginEnabled[i],plugin:t}),y.pluginsArray.length===e+1&&N.dispatch({type:K.initializeStart,plugins:z,disabled:M})}),Gt(function(t){N.dispatch({type:t?K.offline:K.online})}),A=N,T=t,L=_,setInterval(function(){return lt(A,T,L)},3e3),_}var Ht="before",Zt="after";return t.default=Yt,t.init=Yt,t.Analytics=Yt,t.EVENTS=K,t.CONSTANTS=b,t}({});
{
"name": "@analytics/core",
"version": "0.9.0",
"version": "0.9.1",
"description": "Lightweight analytics library for tracking events, page views, & identifying users. Works with any third party analytics provider via an extendable plugin system.",

@@ -50,3 +50,3 @@ "keywords": [

"dependencies": {
"analytics-utils": "^0.4.1"
"analytics-utils": "^0.4.2"
},

@@ -81,3 +81,3 @@ "ava": {

},
"gitHead": "9c37f2ff3b72339392245f4a8368a22b38babfd6"
"gitHead": "66eaa1e5bc0d80c860492752d93e56f9362a2e90"
}

@@ -59,2 +59,3 @@ # Analytics Core

- [x] Queues events to send when analytic libraries are loaded
- [x] Conditionally load third party scripts
- [x] Works offline

@@ -61,0 +62,0 @@ - [x] TypeScript support

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc