Driveback_DigitalDataLayer - Version 1.0.1

Version Notes

First stable version with most of required data structures.

Download this release

Release Info

Developer Driveback LLC
Extension Driveback_DigitalDataLayer
Version 1.0.1
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.1

app/design/frontend/base/default/template/driveback/ddl.phtml CHANGED
@@ -15,8 +15,41 @@ $ddl = $helper->getDdl();
15
  <?php endif;?>
16
  <?php if ($helper->digitalDataManagerEnabled()): ?>
17
  <script type="text/javascript">
18
- (function(){var a=window.ddManager=window.ddManager||[];window.ddListener=window.ddListener||[];var b=window.digitalData=window.digitalData||{};b.events=b.events||[];if(!a.initialize)if(a.invoked)window.console&&console.error&&console.error("Digital Data Manager snippet included twice.");else for(a.invoked=!0,a.methods=["initialize","addIntegration","on","once","off"],a.factory=function(b){return function(){var c=Array.prototype.slice.call(arguments);c.unshift(b);a.push(c);return a}},b=0;b<a.methods.length;b++){var c=
19
- a.methods[b];a[c]=a.factory(c)}})();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  </script>
21
- <script type="text/javascript" src="/js/driveback/dd-manager.min.js" async defer></script>
22
  <?php endif;?>
15
  <?php endif;?>
16
  <?php if ($helper->digitalDataManagerEnabled()): ?>
17
  <script type="text/javascript">
18
+ (function() {
19
+ var a = window.ddManager = window.ddManager || [];
20
+ window.ddListener = window.ddListener || [];
21
+ var b = window.digitalData = window.digitalData || {};
22
+ b.events = b.events || [];
23
+ if (!a.initialize) {
24
+ if (a.invoked) {
25
+ window.console && console.error && console.error("Digital Data Manager snippet included twice.");
26
+ } else {
27
+ a.invoked = !0;
28
+ a.methods = ["initialize", "addIntegration", "on", "once", "off"];
29
+ a.factory = function(b) {
30
+ return function() {
31
+ var c = Array.prototype.slice.call(arguments);
32
+ c.unshift(b);
33
+ a.push(c);
34
+ return a;
35
+ };
36
+ };
37
+ for (b = 0;b < a.methods.length;b++) {
38
+ var d = a.methods[b];
39
+ a[d] = a.factory(d);
40
+ }
41
+ a.load = function() {
42
+ var a = document.createElement("script");
43
+ a.type = "text/javascript";
44
+ a.async = !0;
45
+ a.src = "/js/driveback/dd-manager.min.js";
46
+ var b = document.getElementsByTagName("script")[0];
47
+ b.parentNode.insertBefore(a, b);
48
+ };
49
+ a.SNIPPET_VERSION = "1.0.1";
50
+ a.load();
51
+ }
52
+ }
53
+ })();
54
  </script>
 
55
  <?php endif;?>
js/driveback/dd-manager.min.js CHANGED
@@ -1,3 +1,5 @@
1
- !function t(e,n,r){function o(a,u){if(!n[a]){if(!e[a]){var s="function"==typeof require&&require;if(!u&&s)return s(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return o(n?n:t)},f,f.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}({1:[function(t,e,n){(function(t,n){!function(){function r(){}function o(t){return t}function i(t){return!!t}function a(t){return!t}function u(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function s(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}function c(t){return U(t)||"number"==typeof t.length&&t.length>=0&&t.length%1===0}function f(t,e){for(var n=-1,r=t.length;++n<r;)e(t[n],n,t)}function l(t,e){for(var n=-1,r=t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function d(t){return l(Array(t),function(t,e){return e})}function p(t,e,n){return f(t,function(t,r,o){n=e(n,t,r,o)}),n}function h(t,e){f(Y(t),function(n){e(t[n],n)})}function g(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function y(t){var e,n,r=-1;return c(t)?(e=t.length,function(){return r++,e>r?r:null}):(n=Y(t),e=n.length,function(){return r++,e>r?n[r]:null})}function v(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;n>o;o++)r[o]=arguments[o+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r)}}}function w(t){return function(e,n,r){return t(e,r)}}function m(t){return function(e,n,o){o=s(o||r),e=e||[];var i=y(e);if(0>=t)return o(null);var a=!1,c=0,f=!1;!function l(){if(a&&0>=c)return o(null);for(;t>c&&!f;){var r=i();if(null===r)return a=!0,void(0>=c&&o(null));c+=1,n(e[r],r,u(function(t){c-=1,t?(o(t),f=!0):l()}))}}()}}function b(t){return function(e,n,r){return t(B.eachOf,e,n,r)}}function E(t){return function(e,n,r,o){return t(m(n),e,r,o)}}function _(t){return function(e,n,r){return t(B.eachOfSeries,e,n,r)}}function A(t,e,n,o){o=s(o||r),e=e||[];var i=c(e)?[]:{};t(e,function(t,e,r){n(t,function(t,n){i[e]=n,r(t)})},function(t){o(t,i)})}function j(t,e,n,r){var o=[];t(e,function(t,e,r){n(t,function(n){n&&o.push({index:e,value:t}),r()})},function(){r(l(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function k(t,e,n,r){j(t,e,function(t,e){n(t,function(t){e(!t)})},r)}function I(t,e,n){return function(r,o,i,a){function u(){a&&a(n(!1,void 0))}function s(t,r,o){return a?void i(t,function(r){a&&e(r)&&(a(n(!0,t)),a=i=!1),o()}):o()}arguments.length>3?t(r,o,s,u):(a=i,i=o,t(r,s,u))}}function O(t,e){return e}function P(t,e,n){n=n||r;var o=c(e)?[]:{};t(e,function(t,e,n){t(v(function(t,r){r.length<=1&&(r=r[0]),o[e]=r,n(t)}))},function(t){n(t,o)})}function S(t,e,n,r){var o=[];t(e,function(t,e,r){n(t,function(t,e){o=o.concat(e||[]),r(t)})},function(t){r(t,o)})}function $(t,e,n){function o(t,e,n,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");return t.started=!0,U(e)||(e=[e]),0===e.length&&t.idle()?B.setImmediate(function(){t.drain()}):(f(e,function(e){var i={data:e,callback:o||r};n?t.tasks.unshift(i):t.tasks.push(i),t.tasks.length===t.concurrency&&t.saturated()}),void B.setImmediate(t.process))}function i(t,e){return function(){a-=1;var n=!1,r=arguments;f(e,function(t){f(s,function(e,r){e!==t||n||(s.splice(r,1),n=!0)}),t.callback.apply(t,r)}),t.tasks.length+a===0&&t.drain(),t.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var a=0,s=[],c={tasks:[],concurrency:e,payload:n,saturated:r,empty:r,drain:r,started:!1,paused:!1,push:function(t,e){o(c,t,!1,e)},kill:function(){c.drain=r,c.tasks=[]},unshift:function(t,e){o(c,t,!0,e)},process:function(){if(!c.paused&&a<c.concurrency&&c.tasks.length)for(;a<c.concurrency&&c.tasks.length;){var e=c.payload?c.tasks.splice(0,c.payload):c.tasks.splice(0,c.tasks.length),n=l(e,function(t){return t.data});0===c.tasks.length&&c.empty(),a+=1,s.push(e[0]);var r=u(i(c,e));t(n,r)}},length:function(){return c.tasks.length},running:function(){return a},workersList:function(){return s},idle:function(){return c.tasks.length+a===0},pause:function(){c.paused=!0},resume:function(){if(c.paused!==!1){c.paused=!1;for(var t=Math.min(c.concurrency,c.tasks.length),e=1;t>=e;e++)B.setImmediate(c.process)}}};return c}function D(t){return v(function(e,n){e.apply(null,n.concat([v(function(e,n){"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&f(n,function(e){console[t](e)}))})]))})}function x(t){return function(e,n,r){t(d(e),n,r)}}function T(t){return v(function(e,n){var r=v(function(n){var r=this,o=n.pop();return t(e,function(t,e,o){t.apply(r,n.concat([o]))},o)});return n.length?r.apply(this,n):r})}function L(t){return v(function(e){var n=e.pop();e.push(function(){var t=arguments;r?B.setImmediate(function(){n.apply(null,t)}):n.apply(null,t)});var r=!0;t.apply(this,e),r=!1})}var R,B={},M="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||this;null!=M&&(R=M.async),B.noConflict=function(){return M.async=R,B};var C=Object.prototype.toString,U=Array.isArray||function(t){return"[object Array]"===C.call(t)},N=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},Y=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},F="function"==typeof setImmediate&&setImmediate,V=F?function(t){F(t)}:function(t){setTimeout(t,0)};"object"==typeof t&&"function"==typeof t.nextTick?B.nextTick=t.nextTick:B.nextTick=V,B.setImmediate=F?V:B.nextTick,B.forEach=B.each=function(t,e,n){return B.eachOf(t,w(e),n)},B.forEachSeries=B.eachSeries=function(t,e,n){return B.eachOfSeries(t,w(e),n)},B.forEachLimit=B.eachLimit=function(t,e,n,r){return m(e)(t,w(n),r)},B.forEachOf=B.eachOf=function(t,e,n){function o(t){c--,t?n(t):null===i&&0>=c&&n(null)}n=s(n||r),t=t||[];for(var i,a=y(t),c=0;null!=(i=a());)c+=1,e(t[i],i,u(o));0===c&&n(null)},B.forEachOfSeries=B.eachOfSeries=function(t,e,n){function o(){var r=!0;return null===a?n(null):(e(t[a],a,u(function(t){if(t)n(t);else{if(a=i(),null===a)return n(null);r?B.setImmediate(o):o()}})),void(r=!1))}n=s(n||r),t=t||[];var i=y(t),a=i();o()},B.forEachOfLimit=B.eachOfLimit=function(t,e,n,r){m(e)(t,n,r)},B.map=b(A),B.mapSeries=_(A),B.mapLimit=E(A),B.inject=B.foldl=B.reduce=function(t,e,n,r){B.eachOfSeries(t,function(t,r,o){n(e,t,function(t,n){e=n,o(t)})},function(t){r(t,e)})},B.foldr=B.reduceRight=function(t,e,n,r){var i=l(t,o).reverse();B.reduce(i,e,n,r)},B.transform=function(t,e,n,r){3===arguments.length&&(r=n,n=e,e=U(t)?[]:{}),B.eachOf(t,function(t,r,o){n(e,t,r,o)},function(t){r(t,e)})},B.select=B.filter=b(j),B.selectLimit=B.filterLimit=E(j),B.selectSeries=B.filterSeries=_(j),B.reject=b(k),B.rejectLimit=E(k),B.rejectSeries=_(k),B.any=B.some=I(B.eachOf,i,o),B.someLimit=I(B.eachOfLimit,i,o),B.all=B.every=I(B.eachOf,a,a),B.everyLimit=I(B.eachOfLimit,a,a),B.detect=I(B.eachOf,o,O),B.detectSeries=I(B.eachOfSeries,o,O),B.detectLimit=I(B.eachOfLimit,o,O),B.sortBy=function(t,e,n){function r(t,e){var n=t.criteria,r=e.criteria;return r>n?-1:n>r?1:0}B.map(t,function(t,n){e(t,function(e,r){e?n(e):n(null,{value:t,criteria:r})})},function(t,e){return t?n(t):void n(null,l(e.sort(r),function(t){return t.value}))})},B.auto=function(t,e,n){function o(t){y.unshift(t)}function i(t){var e=g(y,t);e>=0&&y.splice(e,1)}function a(){c--,f(y.slice(0),function(t){t()})}n||(n=e,e=null),n=s(n||r);var u=Y(t),c=u.length;if(!c)return n(null);e||(e=c);var l={},d=0,y=[];o(function(){c||n(null,l)}),f(u,function(r){function u(){return e>d&&p(w,function(t,e){return t&&l.hasOwnProperty(e)},!0)&&!l.hasOwnProperty(r)}function s(){u()&&(d++,i(s),f[f.length-1](y,l))}for(var c,f=U(t[r])?t[r]:[t[r]],y=v(function(t,e){if(d--,e.length<=1&&(e=e[0]),t){var o={};h(l,function(t,e){o[e]=t}),o[r]=e,n(t,o)}else l[r]=e,B.setImmediate(a)}),w=f.slice(0,f.length-1),m=w.length;m--;){if(!(c=t[w[m]]))throw new Error("Has inexistant dependency");if(U(c)&&g(c,r)>=0)throw new Error("Has cyclic dependencies")}u()?(d++,f[f.length-1](y,l)):o(s)})},B.retry=function(t,e,n){function r(t,e){if("number"==typeof e)t.times=parseInt(e,10)||i;else{if("object"!=typeof e)throw new Error("Unsupported argument type for 'times': "+typeof e);t.times=parseInt(e.times,10)||i,t.interval=parseInt(e.interval,10)||a}}function o(t,e){function n(t,n){return function(r){t(function(t,e){r(!t||n,{err:t,result:e})},e)}}function r(t){return function(e){setTimeout(function(){e(null)},t)}}for(;s.times;){var o=!(s.times-=1);u.push(n(s.task,o)),!o&&s.interval>0&&u.push(r(s.interval))}B.series(u,function(e,n){n=n[n.length-1],(t||s.callback)(n.err,n.result)})}var i=5,a=0,u=[],s={times:i,interval:a},c=arguments.length;if(1>c||c>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");return 2>=c&&"function"==typeof t&&(n=e,e=t),"function"!=typeof t&&r(s,t),s.callback=n,s.task=e,s.callback?o():o},B.waterfall=function(t,e){function n(t){return v(function(r,o){if(r)e.apply(null,[r].concat(o));else{var i=t.next();i?o.push(n(i)):o.push(e),L(t).apply(null,o)}})}if(e=s(e||r),!U(t)){var o=new Error("First argument to waterfall must be an array of functions");return e(o)}return t.length?void n(B.iterator(t))():e()},B.parallel=function(t,e){P(B.eachOf,t,e)},B.parallelLimit=function(t,e,n){P(m(e),t,n)},B.series=function(t,e){P(B.eachOfSeries,t,e)},B.iterator=function(t){function e(n){function r(){return t.length&&t[n].apply(null,arguments),r.next()}return r.next=function(){return n<t.length-1?e(n+1):null},r}return e(0)},B.apply=v(function(t,e){return v(function(n){return t.apply(null,e.concat(n))})}),B.concat=b(S),B.concatSeries=_(S),B.whilst=function(t,e,n){if(n=n||r,t()){var o=v(function(r,i){r?n(r):t.apply(this,i)?e(o):n(null)});e(o)}else n(null)},B.doWhilst=function(t,e,n){var r=0;return B.whilst(function(){return++r<=1||e.apply(this,arguments)},t,n)},B.until=function(t,e,n){return B.whilst(function(){return!t.apply(this,arguments)},e,n)},B.doUntil=function(t,e,n){return B.doWhilst(t,function(){return!e.apply(this,arguments)},n)},B.during=function(t,e,n){n=n||r;var o=v(function(e,r){e?n(e):(r.push(i),t.apply(this,r))}),i=function(t,r){t?n(t):r?e(o):n(null)};t(i)},B.doDuring=function(t,e,n){var r=0;B.during(function(t){r++<1?t(null,!0):e.apply(this,arguments)},t,n)},B.queue=function(t,e){var n=$(function(e,n){t(e[0],n)},e,1);return n},B.priorityQueue=function(t,e){function n(t,e){return t.priority-e.priority}function o(t,e,n){for(var r=-1,o=t.length-1;o>r;){var i=r+(o-r+1>>>1);n(e,t[i])>=0?r=i:o=i-1}return r}function i(t,e,i,a){if(null!=a&&"function"!=typeof a)throw new Error("task callback must be a function");return t.started=!0,U(e)||(e=[e]),0===e.length?B.setImmediate(function(){t.drain()}):void f(e,function(e){var u={data:e,priority:i,callback:"function"==typeof a?a:r};t.tasks.splice(o(t.tasks,u,n)+1,0,u),t.tasks.length===t.concurrency&&t.saturated(),B.setImmediate(t.process)})}var a=B.queue(t,e);return a.push=function(t,e,n){i(a,t,e,n)},delete a.unshift,a},B.cargo=function(t,e){return $(t,1,e)},B.log=D("log"),B.dir=D("dir"),B.memoize=function(t,e){var n={},r={};e=e||o;var i=v(function(o){var i=o.pop(),a=e.apply(null,o);a in n?B.setImmediate(function(){i.apply(null,n[a])}):a in r?r[a].push(i):(r[a]=[i],t.apply(null,o.concat([v(function(t){n[a]=t;var e=r[a];delete r[a];for(var o=0,i=e.length;i>o;o++)e[o].apply(null,t)})])))});return i.memo=n,i.unmemoized=t,i},B.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},B.times=x(B.map),B.timesSeries=x(B.mapSeries),B.timesLimit=function(t,e,n,r){return B.mapLimit(d(t),e,n,r)},B.seq=function(){var t=arguments;return v(function(e){var n=this,o=e[e.length-1];"function"==typeof o?e.pop():o=r,B.reduce(t,e,function(t,e,r){e.apply(n,t.concat([v(function(t,e){r(t,e)})]))},function(t,e){o.apply(n,[t].concat(e))})})},B.compose=function(){return B.seq.apply(null,Array.prototype.reverse.call(arguments))},B.applyEach=T(B.eachOf),B.applyEachSeries=T(B.eachOfSeries),B.forever=function(t,e){function n(t){return t?o(t):void i(n)}var o=u(e||r),i=L(t);n()},B.ensureAsync=L,B.constant=v(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),B.wrapSync=B.asyncify=function(t){return v(function(e){var n,r=e.pop();try{n=t.apply(this,e)}catch(o){return r(o)}N(n)&&"function"==typeof n.then?n.then(function(t){r(null,t)})["catch"](function(t){r(t.message?t:new Error(t))}):r(null,n)})},"object"==typeof e&&e.exports?e.exports=B:"function"==typeof define&&define.amd?define([],function(){return B}):M.async=B}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:49}],2:[function(t,e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===a||e===l?62:e===u||e===d?63:s>e?-1:s+10>e?e-s+26+26:f+26>e?e-f:c+26>e?e-c+26:void 0}function n(t){function n(t){c[l++]=t}var r,o,a,u,s,c;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;s="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,c=new i(3*t.length/4-s),a=s>0?t.length-4:t.length;var l=0;for(r=0,o=0;a>r;r+=4,o+=3)u=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&u)>>16),n((65280&u)>>8),n(255&u);return 2===s?(u=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&u)):1===s&&(u=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(u>>8&255),n(255&u)),c}function o(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,a,u=t.length%3,s="";for(o=0,a=t.length-u;a>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],s+=n(i);switch(u){case 1:i=t[t.length-1],s+=e(i>>2),s+=e(i<<4&63),s+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],s+=e(i>>10),s+=e(i>>4&63),s+=e(i<<2&63),s+="="}return s}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),u="/".charCodeAt(0),s="0".charCodeAt(0),c="a".charCodeAt(0),f="A".charCodeAt(0),l="-".charCodeAt(0),d="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],3:[function(t,e,n){(function(e){function r(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function o(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof t?a(this,t):"string"==typeof t?u(this,t,arguments.length>1?arguments[1]:"utf8"):s(this,t)):arguments.length>1?new i(t,arguments[1]):new i(t)}function a(t,e){if(t=g(t,0>e?0:0|y(e)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;e>n;n++)t[n]=0;return t}function u(t,e,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|w(e,n);return t=g(t,r),t.write(e,n),t}function s(t,e){if(i.isBuffer(e))return c(t,e);if(Q(e))return f(t,e);if(null==e)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(e.buffer instanceof ArrayBuffer)return l(t,e);if(e instanceof ArrayBuffer)return d(t,e)}return e.length?p(t,e):h(t,e)}function c(t,e){var n=0|y(e.length);return t=g(t,n),e.copy(t,0,0,n),t}function f(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function l(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function d(t,e){return i.TYPED_ARRAY_SUPPORT?(e.byteLength,t=i._augment(new Uint8Array(e))):t=l(t,new Uint8Array(e)),t}function p(t,e){var n=0|y(e.length);t=g(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function h(t,e){var n,r=0;"Buffer"===e.type&&Q(e.data)&&(n=e.data,r=0|y(n.length)),t=g(t,r);for(var o=0;r>o;o+=1)t[o]=255&n[o];return t}function g(t,e){i.TYPED_ARRAY_SUPPORT?(t=i._augment(new Uint8Array(e)),t.__proto__=i.prototype):(t.length=e,t._isBuffer=!0);var n=0!==e&&e<=i.poolSize>>>1;return n&&(t.parent=W),t}function y(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function v(t,e){if(!(this instanceof v))return new v(t,e);var n=new i(t,e);return delete n.parent,n}function w(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return V(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(t).length;default:if(r)return V(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return S(this,e,n);case"binary":return $(this,e,n);case"base64":return I(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;r>a;a++){var u=parseInt(e.substr(2*a,2),16);if(isNaN(u))throw new Error("Invalid hex string");t[n+a]=u}return a}function E(t,e,n,r){return J(V(e,t.length-n),t,n,r)}function _(t,e,n,r){return J(z(e),t,n,r)}function A(t,e,n,r){return _(t,e,n,r)}function j(t,e,n,r){return J(H(e),t,n,r)}function k(t,e,n,r){return J(q(e,t.length-n),t,n,r)}function I(t,e,n){return 0===e&&n===t.length?G.fromByteArray(t):G.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;n>o;){var i=t[o],a=null,u=i>239?4:i>223?3:i>191?2:1;if(n>=o+u){var s,c,f,l;switch(u){case 1:128>i&&(a=i);break;case 2:s=t[o+1],128===(192&s)&&(l=(31&i)<<6|63&s,l>127&&(a=l));break;case 3:s=t[o+1],c=t[o+2],128===(192&s)&&128===(192&c)&&(l=(15&i)<<12|(63&s)<<6|63&c,l>2047&&(55296>l||l>57343)&&(a=l));break;case 4:s=t[o+1],c=t[o+2],f=t[o+3],128===(192&s)&&128===(192&c)&&128===(192&f)&&(l=(15&i)<<18|(63&s)<<12|(63&c)<<6|63&f,l>65535&&1114112>l&&(a=l))}}null===a?(a=65533,u=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=u}return P(r)}function P(t){var e=t.length;if(Z>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=Z));return n}function S(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(127&t[o]);return r}function $(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function D(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=e;n>i;i++)o+=F(t[i]);return o}function x(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function T(t,e,n){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,o,a){if(!i.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>o||a>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range")}function R(t,e,n,r){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);i>o;o++)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function B(t,e,n,r){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);i>o;o++)t[n+o]=e>>>8*(r?o:3-o)&255}function M(t,e,n,r,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function C(t,e,n,r,o){return o||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),K.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),K.write(t,e,n,r,52,8),n+8}function N(t){if(t=Y(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function Y(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function F(t){return 16>t?"0"+t.toString(16):t.toString(16)}function V(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],a=0;r>a;a++){if(n=t.charCodeAt(a),n>55295&&57344>n){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(56320>n){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>n){if((e-=1)<0)break;i.push(n)}else if(2048>n){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function z(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function q(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);a++)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function H(t){return G.toByteArray(N(t))}function J(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}var G=t("base64-js"),K=t("ieee754"),Q=t("is-array");n.Buffer=i,n.SlowBuffer=v,n.INSPECT_MAX_BYTES=50,i.poolSize=8192;var W={};i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array),i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,a=Math.min(n,r);a>o&&t[o]===e[o];)++o;return o!==a&&(n=t[o],r=e[o]),r>n?-1:n>r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!Q(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new i(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new i(e),o=0;for(n=0;n<t.length;n++){var a=t[n];a.copy(r,o),o+=a.length}return r},i.byteLength=w,i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):m.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:i.compare(this,t)},i.prototype.indexOf=function(t,e){function n(t,e,n){for(var r=-1,o=0;n+o<t.length;o++)if(t[n+o]===e[-1===r?0:o-r]){if(-1===r&&(r=o),o-r+1===e.length)return n+r}else r=-1;return-1}if(e>2147483647?e=2147483647:-2147483648>e&&(e=-2147483648),e>>=0,0===this.length)return-1;if(e>=this.length)return-1;if(0>e&&(e=Math.max(this.length+e,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,e);if(i.isBuffer(t))return n(this,t,e);if("number"==typeof t)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,e):n(this,[t],e);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},i.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},i.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=e,e=0|n,n=o}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return E(this,t,e,n);case"ascii":return _(this,t,e,n);case"binary":return A(this,t,e,n);case"base64":return j(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return k(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var Z=4096;i.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),t>e&&(e=t);var r;if(i.TYPED_ARRAY_SUPPORT)r=i._augment(this.subarray(t,e));else{var o=e-t;r=new i(o,void 0);for(var a=0;o>a;a++)r[a]=this[a+t]}return r.length&&(r.parent=this.parent||this),r},i.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},i.prototype.readUIntBE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},i.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),K.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),K.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),K.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),K.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||L(this,t,e,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},i.prototype.writeUIntBE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||L(this,t,e,n,Math.pow(2,8*n),0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},i.prototype.writeUInt8=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):B(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=0|e,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=0,a=1,u=0>t?1:0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=(t/a>>0)-u&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=0|e,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=n-1,a=1,u=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=(t/a>>0)-u&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):B(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):B(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,n){return C(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return C(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(0>e)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,a=r-n;if(this===t&&e>n&&r>e)for(o=a-1;o>=0;o--)t[o+e]=this[o+n];else if(1e3>a||!i.TYPED_ARRAY_SUPPORT)for(o=0;a>o;o++)t[o+e]=this[o+n];else t._set(this.subarray(n,n+a),e);return a},i.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new RangeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var o=V(t.toString()),i=o.length;for(r=e;n>r;r++)this[r]=o[r%i]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var X=i.prototype;i._augment=function(t){return t.constructor=i,t._isBuffer=!0,t._set=t.set,t.get=X.get,t.set=X.set,t.write=X.write,t.toString=X.toString,t.toLocaleString=X.toString,t.toJSON=X.toJSON,t.equals=X.equals,t.compare=X.compare,t.indexOf=X.indexOf,t.copy=X.copy,t.slice=X.slice,t.readUIntLE=X.readUIntLE,t.readUIntBE=X.readUIntBE,t.readUInt8=X.readUInt8,t.readUInt16LE=X.readUInt16LE,t.readUInt16BE=X.readUInt16BE,t.readUInt32LE=X.readUInt32LE,t.readUInt32BE=X.readUInt32BE,t.readIntLE=X.readIntLE,t.readIntBE=X.readIntBE,
2
- t.readInt8=X.readInt8,t.readInt16LE=X.readInt16LE,t.readInt16BE=X.readInt16BE,t.readInt32LE=X.readInt32LE,t.readInt32BE=X.readInt32BE,t.readFloatLE=X.readFloatLE,t.readFloatBE=X.readFloatBE,t.readDoubleLE=X.readDoubleLE,t.readDoubleBE=X.readDoubleBE,t.writeUInt8=X.writeUInt8,t.writeUIntLE=X.writeUIntLE,t.writeUIntBE=X.writeUIntBE,t.writeUInt16LE=X.writeUInt16LE,t.writeUInt16BE=X.writeUInt16BE,t.writeUInt32LE=X.writeUInt32LE,t.writeUInt32BE=X.writeUInt32BE,t.writeIntLE=X.writeIntLE,t.writeIntBE=X.writeIntBE,t.writeInt8=X.writeInt8,t.writeInt16LE=X.writeInt16LE,t.writeInt16BE=X.writeInt16BE,t.writeInt32LE=X.writeInt32LE,t.writeInt32BE=X.writeInt32BE,t.writeFloatLE=X.writeFloatLE,t.writeFloatBE=X.writeFloatBE,t.writeDoubleLE=X.writeDoubleLE,t.writeDoubleBE=X.writeDoubleBE,t.fill=X.fill,t.inspect=X.inspect,t.toArrayBuffer=X.toArrayBuffer,t};var tt=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:46,"is-array":47}],4:[function(t,e,n){function r(t){switch(o(t)){case"object":var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));return e;case"array":for(var e=new Array(t.length),i=0,a=t.length;a>i;i++)e[i]=r(t[i]);return e;case"regexp":var u="";return u+=t.multiline?"m":"",u+=t.global?"g":"",u+=t.ignoreCase?"i":"",new RegExp(t.source,u);case"date":return new Date(t.getTime());default:return t}}var o;try{o=t("component-type")}catch(i){o=t("type")}e.exports=r},{"component-type":6,type:6}],5:[function(t,e,n){function r(t){return t?o(t):void 0}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}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(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},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],r===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,o=n.length;o>r;++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}},{}],6:[function(t,e,n){(function(t){var n=Object.prototype.toString;e.exports=function(e){switch(n.call(e)){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===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":"undefined"!=typeof t&&t.isBuffer(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}}).call(this,t("buffer").Buffer)},{buffer:3}],7:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],8:[function(t,e,n){var r=t("./$.is-object");e.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./$.is-object":27}],9:[function(t,e,n){var r=t("./$.to-iobject"),o=t("./$.to-length"),i=t("./$.to-index");e.exports=function(t){return function(e,n,a){var u,s=r(e),c=o(s.length),f=i(a,c);if(t&&n!=n){for(;c>f;)if(u=s[f++],u!=u)return!0}else for(;c>f;f++)if((t||f in s)&&s[f]===n)return t||f;return!t&&-1}}},{"./$.to-index":34,"./$.to-iobject":36,"./$.to-length":37}],10:[function(t,e,n){var r=t("./$.ctx"),o=t("./$.iobject"),i=t("./$.to-object"),a=t("./$.to-length"),u=t("./$.array-species-create");e.exports=function(t){var e=1==t,n=2==t,s=3==t,c=4==t,f=6==t,l=5==t||f;return function(d,p,h){for(var g,y,v=i(d),w=o(v),m=r(p,h,3),b=a(w.length),E=0,_=e?u(d,b):n?u(d,0):void 0;b>E;E++)if((l||E in w)&&(g=w[E],y=m(g,E,v),t))if(e)_[E]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return E;case 2:_.push(g)}else if(c)return!1;return f?-1:s||c?c:_}}},{"./$.array-species-create":11,"./$.ctx":14,"./$.iobject":25,"./$.to-length":37,"./$.to-object":38}],11:[function(t,e,n){var r=t("./$.is-object"),o=t("./$.is-array"),i=t("./$.wks")("species");e.exports=function(t,e){var n;return o(t)&&(n=t.constructor,"function"!=typeof n||n!==Array&&!o(n.prototype)||(n=void 0),r(n)&&(n=n[i],null===n&&(n=void 0))),new(void 0===n?Array:n)(e)}},{"./$.is-array":26,"./$.is-object":27,"./$.wks":40}],12:[function(t,e,n){var r={}.toString;e.exports=function(t){return r.call(t).slice(8,-1)}},{}],13:[function(t,e,n){var r=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=r)},{}],14:[function(t,e,n){var r=t("./$.a-function");e.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},{"./$.a-function":7}],15:[function(t,e,n){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],16:[function(t,e,n){e.exports=!t("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":19}],17:[function(t,e,n){var r=t("./$.is-object"),o=t("./$.global").document,i=r(o)&&r(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./$.global":20,"./$.is-object":27}],18:[function(t,e,n){var r=t("./$.global"),o=t("./$.core"),i=t("./$.hide"),a=t("./$.redefine"),u=t("./$.ctx"),s="prototype",c=function(t,e,n){var f,l,d,p,h=t&c.F,g=t&c.G,y=t&c.S,v=t&c.P,w=t&c.B,m=g?r:y?r[e]||(r[e]={}):(r[e]||{})[s],b=g?o:o[e]||(o[e]={}),E=b[s]||(b[s]={});g&&(n=e);for(f in n)l=!h&&m&&f in m,d=(l?m:n)[f],p=w&&l?u(d,r):v&&"function"==typeof d?u(Function.call,d):d,m&&!l&&a(m,f,d),b[f]!=d&&i(b,f,p),v&&E[f]!=d&&(E[f]=d)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,e.exports=c},{"./$.core":13,"./$.ctx":14,"./$.global":20,"./$.hide":22,"./$.redefine":31}],19:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],20:[function(t,e,n){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],21:[function(t,e,n){var r={}.hasOwnProperty;e.exports=function(t,e){return r.call(t,e)}},{}],22:[function(t,e,n){var r=t("./$"),o=t("./$.property-desc");e.exports=t("./$.descriptors")?function(t,e,n){return r.setDesc(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},{"./$":28,"./$.descriptors":16,"./$.property-desc":30}],23:[function(t,e,n){e.exports=t("./$.global").document&&document.documentElement},{"./$.global":20}],24:[function(t,e,n){e.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],25:[function(t,e,n){var r=t("./$.cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./$.cof":12}],26:[function(t,e,n){var r=t("./$.cof");e.exports=Array.isArray||function(t){return"Array"==r(t)}},{"./$.cof":12}],27:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],28:[function(t,e,n){var r=Object;e.exports={create:r.create,getProto:r.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:r.getOwnPropertyDescriptor,setDesc:r.defineProperty,setDescs:r.defineProperties,getKeys:r.keys,getNames:r.getOwnPropertyNames,getSymbols:r.getOwnPropertySymbols,each:[].forEach}},{}],29:[function(t,e,n){var r=t("./$"),o=t("./$.to-object"),i=t("./$.iobject");e.exports=t("./$.fails")(function(){var t=Object.assign,e={},n={},r=Symbol(),o="abcdefghijklmnopqrst";return e[r]=7,o.split("").forEach(function(t){n[t]=t}),7!=t({},e)[r]||Object.keys(t({},n)).join("")!=o})?function(t,e){for(var n=o(t),a=arguments,u=a.length,s=1,c=r.getKeys,f=r.getSymbols,l=r.isEnum;u>s;)for(var d,p=i(a[s++]),h=f?c(p).concat(f(p)):c(p),g=h.length,y=0;g>y;)l.call(p,d=h[y++])&&(n[d]=p[d]);return n}:Object.assign},{"./$":28,"./$.fails":19,"./$.iobject":25,"./$.to-object":38}],30:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],31:[function(t,e,n){var r=t("./$.global"),o=t("./$.hide"),i=t("./$.uid")("src"),a="toString",u=Function[a],s=(""+u).split(a);t("./$.core").inspectSource=function(t){return u.call(t)},(e.exports=function(t,e,n,a){"function"==typeof n&&(n.hasOwnProperty(i)||o(n,i,t[e]?""+t[e]:s.join(String(e))),n.hasOwnProperty("name")||o(n,"name",e)),t===r?t[e]=n:(a||delete t[e],o(t,e,n))})(Function.prototype,a,function(){return"function"==typeof this&&this[i]||u.call(this)})},{"./$.core":13,"./$.global":20,"./$.hide":22,"./$.uid":39}],32:[function(t,e,n){var r=t("./$.global"),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./$.global":20}],33:[function(t,e,n){var r=t("./$.export"),o=t("./$.defined"),i=t("./$.fails"),a=" \n\x0B\f\r  ᠎              \u2028\u2029\ufeff",u="["+a+"]",s="​…",c=RegExp("^"+u+u+"*"),f=RegExp(u+u+"*$"),l=function(t,e){var n={};n[t]=e(d),r(r.P+r.F*i(function(){return!!a[t]()||s[t]()!=s}),"String",n)},d=l.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};e.exports=l},{"./$.defined":15,"./$.export":18,"./$.fails":19}],34:[function(t,e,n){var r=t("./$.to-integer"),o=Math.max,i=Math.min;e.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},{"./$.to-integer":35}],35:[function(t,e,n){var r=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)}},{}],36:[function(t,e,n){var r=t("./$.iobject"),o=t("./$.defined");e.exports=function(t){return r(o(t))}},{"./$.defined":15,"./$.iobject":25}],37:[function(t,e,n){var r=t("./$.to-integer"),o=Math.min;e.exports=function(t){return t>0?o(r(t),9007199254740991):0}},{"./$.to-integer":35}],38:[function(t,e,n){var r=t("./$.defined");e.exports=function(t){return Object(r(t))}},{"./$.defined":15}],39:[function(t,e,n){var r=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+o).toString(36))}},{}],40:[function(t,e,n){var r=t("./$.shared")("wks"),o=t("./$.uid"),i=t("./$.global").Symbol;e.exports=function(t){return r[t]||(r[t]=i&&i[t]||(i||o)("Symbol."+t))}},{"./$.global":20,"./$.shared":32,"./$.uid":39}],41:[function(t,e,n){"use strict";var r,o=t("./$"),i=t("./$.export"),a=t("./$.descriptors"),u=t("./$.property-desc"),s=t("./$.html"),c=t("./$.dom-create"),f=t("./$.has"),l=t("./$.cof"),d=t("./$.invoke"),p=t("./$.fails"),h=t("./$.an-object"),g=t("./$.a-function"),y=t("./$.is-object"),v=t("./$.to-object"),w=t("./$.to-iobject"),m=t("./$.to-integer"),b=t("./$.to-index"),E=t("./$.to-length"),_=t("./$.iobject"),A=t("./$.uid")("__proto__"),j=t("./$.array-methods"),k=t("./$.array-includes")(!1),I=Object.prototype,O=Array.prototype,P=O.slice,S=O.join,$=o.setDesc,D=o.getDesc,x=o.setDescs,T={};a||(r=!p(function(){return 7!=$(c("div"),"a",{get:function(){return 7}}).a}),o.setDesc=function(t,e,n){if(r)try{return $(t,e,n)}catch(o){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(h(t)[e]=n.value),t},o.getDesc=function(t,e){if(r)try{return D(t,e)}catch(n){}return f(t,e)?u(!I.propertyIsEnumerable.call(t,e),t[e]):void 0},o.setDescs=x=function(t,e){h(t);for(var n,r=o.getKeys(e),i=r.length,a=0;i>a;)o.setDesc(t,n=r[a++],e[n]);return t}),i(i.S+i.F*!a,"Object",{getOwnPropertyDescriptor:o.getDesc,defineProperty:o.setDesc,defineProperties:x});var L="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),R=L.concat("length","prototype"),B=L.length,M=function(){var t,e=c("iframe"),n=B,r=">";for(e.style.display="none",s.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object</script"+r),t.close(),M=t.F;n--;)delete M.prototype[L[n]];return M()},C=function(t,e){return function(n){var r,o=w(n),i=0,a=[];for(r in o)r!=A&&f(o,r)&&a.push(r);for(;e>i;)f(o,r=t[i++])&&(~k(a,r)||a.push(r));return a}},U=function(){};i(i.S,"Object",{getPrototypeOf:o.getProto=o.getProto||function(t){return t=v(t),f(t,A)?t[A]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?I:null},getOwnPropertyNames:o.getNames=o.getNames||C(R,R.length,!0),create:o.create=o.create||function(t,e){var n;return null!==t?(U.prototype=h(t),n=new U,U.prototype=null,n[A]=t):n=M(),void 0===e?n:x(n,e)},keys:o.getKeys=o.getKeys||C(L,B,!1)});var N=function(t,e,n){if(!(e in T)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";T[e]=Function("F,a","return new F("+r.join(",")+")")}return T[e](t,n)};i(i.P,"Function",{bind:function(t){var e=g(this),n=P.call(arguments,1),r=function(){var o=n.concat(P.call(arguments));return this instanceof r?N(e,o.length,o):d(e,o,t)};return y(e.prototype)&&(r.prototype=e.prototype),r}}),i(i.P+i.F*p(function(){s&&P.call(s)}),"Array",{slice:function(t,e){var n=E(this.length),r=l(this);if(e=void 0===e?n:e,"Array"==r)return P.call(this,t,e);for(var o=b(t,n),i=b(e,n),a=E(i-o),u=Array(a),s=0;a>s;s++)u[s]="String"==r?this.charAt(o+s):this[o+s];return u}}),i(i.P+i.F*(_!=Object),"Array",{join:function(t){return S.call(_(this),void 0===t?",":t)}}),i(i.S,"Array",{isArray:t("./$.is-array")});var Y=function(t){return function(e,n){g(e);var r=_(this),o=E(r.length),i=t?o-1:0,a=t?-1:1;if(arguments.length<2)for(;;){if(i in r){n=r[i],i+=a;break}if(i+=a,t?0>i:i>=o)throw TypeError("Reduce of empty array with no initial value")}for(;t?i>=0:o>i;i+=a)i in r&&(n=e(n,r[i],i,this));return n}},F=function(t){return function(e){return t(this,e,arguments[1])}};i(i.P,"Array",{forEach:o.each=o.each||F(j(0)),map:F(j(1)),filter:F(j(2)),some:F(j(3)),every:F(j(4)),reduce:Y(!1),reduceRight:Y(!0),indexOf:F(k),lastIndexOf:function(t,e){var n=w(this),r=E(n.length),o=r-1;for(arguments.length>1&&(o=Math.min(o,m(e))),0>o&&(o=E(r+o));o>=0;o--)if(o in n&&n[o]===t)return o;return-1}}),i(i.S,"Date",{now:function(){return+new Date}});var V=function(t){return t>9?t:"0"+t};i(i.P+i.F*(p(function(){return"0385-07-25T07:06:39.999Z"!=new Date(-5e13-1).toISOString()})||!p(function(){new Date(NaN).toISOString()})),"Date",{toISOString:function(){if(!isFinite(this))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),r=0>e?"-":e>9999?"+":"";return r+("00000"+Math.abs(e)).slice(r?-6:-4)+"-"+V(t.getUTCMonth()+1)+"-"+V(t.getUTCDate())+"T"+V(t.getUTCHours())+":"+V(t.getUTCMinutes())+":"+V(t.getUTCSeconds())+"."+(n>99?n:"0"+V(n))+"Z"}})},{"./$":28,"./$.a-function":7,"./$.an-object":8,"./$.array-includes":9,"./$.array-methods":10,"./$.cof":12,"./$.descriptors":16,"./$.dom-create":17,"./$.export":18,"./$.fails":19,"./$.has":21,"./$.html":23,"./$.invoke":24,"./$.iobject":25,"./$.is-array":26,"./$.is-object":27,"./$.property-desc":30,"./$.to-index":34,"./$.to-integer":35,"./$.to-iobject":36,"./$.to-length":37,"./$.to-object":38,"./$.uid":39}],42:[function(t,e,n){var r=t("./$.export");r(r.S+r.F,"Object",{assign:t("./$.object-assign")})},{"./$.export":18,"./$.object-assign":29}],43:[function(t,e,n){"use strict";t("./$.string-trim")("trim",function(t){return function(){return t(this,3)}})},{"./$.string-trim":33}],44:[function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),!e)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(e){}}function u(){var t;try{t=n.storage.debug}catch(e){}return t}function s(){try{return window.localStorage}catch(t){}}n=e.exports=t("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=u,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:s(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){return JSON.stringify(t)},n.enable(u())},{"./debug":45}],45:[function(t,e,n){function r(){return n.colors[f++%n.colors.length]}function o(t){function e(){}function o(){var t=o,e=+new Date,i=e-(c||e);t.diff=i,t.prev=c,t.curr=e,c=e,null==t.useColors&&(t.useColors=n.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var u=0;a[0]=a[0].replace(/%([a-z%])/g,function(e,r){if("%%"===e)return e;u++;var o=n.formatters[r];if("function"==typeof o){var i=a[u];e=o.call(t,i),a.splice(u,1),u--}return e}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(t,a));var s=o.log||n.log||console.log.bind(console);s.apply(t,a)}e.enabled=!1,o.enabled=!0;var i=n.enabled(t)?o:e;return i.namespace=t,i}function i(t){n.save(t);for(var e=(t||"").split(/[\s,]+/),r=e.length,o=0;r>o;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 u(t){var e,r;for(e=0,r=n.skips.length;r>e;e++)if(n.skips[e].test(t))return!1;for(e=0,r=n.names.length;r>e;e++)if(n.names[e].test(t))return!0;return!1}function s(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=o,n.coerce=s,n.disable=a,n.enable=i,n.enabled=u,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var c,f=0},{ms:48}],46:[function(t,e,n){n.read=function(t,e,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,f=-7,l=n?o-1:0,d=n?-1:1,p=t[e+l];for(l+=d,i=p&(1<<-f)-1,p>>=-f,f+=u;f>0;i=256*i+t[e+l],l+=d,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+t[e+l],l+=d,f-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var a,u,s,c=8*i-o-1,f=(1<<c)-1,l=f>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,g=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(s=Math.pow(2,-a))<1&&(a--,s*=2),e+=a+l>=1?d/s:d*Math.pow(2,1-l),e*s>=2&&(a++,s/=2),a+l>=f?(u=0,a=f):a+l>=1?(u=(e*s-1)*Math.pow(2,o),a+=l):(u=e*Math.pow(2,l-1)*Math.pow(2,o),a=0));o>=8;t[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;c>0;t[n+p]=255&a,p+=h,a/=256,c-=8);t[n+p-h]|=128*g}},{}],47:[function(t,e,n){var r=Array.isArray,o=Object.prototype.toString;e.exports=r||function(t){return!!t&&"[object Array]"==o.call(t)}},{}],48:[function(t,e,n){function r(t){if(t=""+t,!(t.length>1e4)){var 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]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*l;case"days":case"day":case"d":return n*f;case"hours":case"hour":case"hrs":case"hr":case"h":return n*c;case"minutes":case"minute":case"mins":case"min":case"m":return n*s;case"seconds":case"second":case"secs":case"sec":case"s":return n*u;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function o(t){return t>=f?Math.round(t/f)+"d":t>=c?Math.round(t/c)+"h":t>=s?Math.round(t/s)+"m":t>=u?Math.round(t/u)+"s":t+"ms"}function i(t){return a(t,f,"day")||a(t,c,"hour")||a(t,s,"minute")||a(t,u,"second")||t+" ms"}function a(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var u=1e3,s=60*u,c=60*s,f=24*c,l=365.25*f;e.exports=function(t,e){return e=e||{},"string"==typeof t?r(t):e["long"]?i(t):o(t)}},{}],49:[function(t,e,n){function r(){f=!1,u.length?c=u.concat(c):l=-1,c.length&&o()}function o(){if(!f){var t=setTimeout(r);f=!0;for(var e=c.length;e;){for(u=c,c=[];++l<e;)u&&u[l].run();l=-1,e=c.length}u=null,f=!1,clearTimeout(t)}}function i(t,e){this.fun=t,this.array=e}function a(){}var u,s=e.exports={},c=[],f=!1,l=-1;s.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];c.push(new i(t,e)),1!==c.length||f||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},s.title="browser",s.browser=!0,s.env={},s.argv=[],s.version="",s.versions={},s.on=a,s.addListener=a,s.once=a,s.off=a,s.removeListener=a,s.removeAllListeners=a,s.emit=a,s.binding=function(t){throw new Error("process.binding is not supported")},s.cwd=function(){return"/"},s.chdir=function(t){throw new Error("process.chdir is not supported")},s.umask=function(){return 0}},{}],50:[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function t(e){r(this,t),this.digitalData=e}return t.prototype.fire=function(){this.fireViewedPage(),this.digitalData.page&&("category"===this.digitalData.page.type&&this.fireViewedProductCategory(),"product"===this.digitalData.page.type&&this.fireViewedProductDetail(),("cart"===this.digitalData.page.type||"checkout"===this.digitalData.page.type)&&this.fireViewedCheckoutStep()),this.digitalData.transaction&&this.digitalData.transaction.isReturning!==!0&&this.fireCompletedTransaction(),this.digitalData.listing&&this.fireViewedProducts(this.digitalData.listing),this.digitalData.recommendation&&this.fireViewedProducts(this.digitalData.recommendation),this.digitalData.campaigns&&this.fireViewedCampaigns(this.digitalData.campaigns)},t.prototype.fireViewedProducts=function(t){if(t.items&&t.items.length>0){for(var e=[],n=t.items,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;a.wasViewed&&e.push(a.id)}var u={updateDigitalData:!1,name:"Viewed Product",category:"Ecommerce",items:e};t.listName&&(u.listName=t.listName),this.digitalData.events.push(u)}},t.prototype.fireViewedCampaigns=function(t){if(t.length>0){for(var e=[],n=t,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;a.wasViewed&&e.push(a.id)}this.digitalData.events.push({updateDigitalData:!1,name:"Viewed Campaign",category:"Promo",campaigns:e})}},t.prototype.fireViewedPage=function(){this.digitalData.events.push({updateDigitalData:!1,name:"Viewed Page",category:"Content"})},t.prototype.fireViewedProductCategory=function(){this.digitalData.events.push({updateDigitalData:!1,name:"Viewed Product Category",category:"Ecommerce"})},t.prototype.fireViewedProductDetail=function(){this.digitalData.events.push({updateDigitalData:!1,name:"Viewed Product Detail",category:"Ecommerce"})},t.prototype.fireViewedCheckoutStep=function(){this.digitalData.events.push({updateDigitalData:!1,name:"Viewed Checkout Step",category:"Ecommerce"})},t.prototype.fireCompletedTransaction=function(){this.digitalData.events.push({updateDigitalData:!1,name:"Completed Transaction",category:"Ecommerce"})},t}();n["default"]=o},{}],51:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){return t=t.trim(),""===t?[]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),t.split("."))}n.__esModule=!0;var a=t("component-clone"),u=r(a),s=function(){function t(){o(this,t)}return t.get=function(t,e){for(var n=i(t),r=(0,u["default"])(e);n.length>0;){var o=n.shift();if(!r.hasOwnProperty(o))return;r=r[o]}return r},t.getProduct=function(t){console.log(t)},t.getCampaign=function(t){console.log(t)},t}();n["default"]=s},{"component-clone":4}],52:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=(0,s["default"])(t);return(0,h["default"])(e,"events"),e}function a(t,e){return"string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof e&&(e=JSON.stringify(e)),t===e}n.__esModule=!0;var u=t("component-clone"),s=r(u),c=t("async"),f=r(c),l=t("debug"),d=r(l),p=t("./functions/deleteProperty.js"),h=r(p),g=t("./functions/size.js"),y=r(g),v=t("./functions/after.js"),w=r(v),m=t("./DDHelper.js"),b=r(m),E={},_=[],A={},j={},k=void 0,I=function(t){t&&(0,d["default"])("ddListener callback error: %s",t)},O=function(){function t(e,n){o(this,t),j=e||j,Array.isArray(j.events)||(j.events=[]),_=n||_,A=i(j)}return t.prototype.initialize=function(){var t=this,e=j.events;this.addEarlyCallbacks(),_.push=function(e){t.addCallback(e),_[_.length]=e},this.fireUnfiredEvents(),e.push=function(n){t.fireEvent(n),e[e.length]=n},k=setInterval(function(){t.checkForChanges()},100)},t.prototype.checkForChanges=function(){if(E.change&&E.change.length>0){var t=i(j);if(!a(A,t)){var e=i(A);A=(0,s["default"])(t),this.fireChange(t,e)}}},t.prototype.addCallback=function(t){if(Array.isArray(t)&&!(t.length<2)){if("on"===t[0]){if(t.length<3)return;var e=f["default"].asyncify(t[2]);this.on(t[1],e)}"off"===t[0]}},t.prototype.fireChange=function(t,e){var n=void 0;if(E.change)for(var r=E.change,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){if(o){if(i>=r.length)break;n=r[i++]}else{if(i=r.next(),i.done)break;n=i.value}if(n.key){var u=n.key,s=b["default"].get(u,t),c=b["default"].get(u,e);a(s,c)||n.handler(s,c,I)}else n.handler(t,e,I)}},t.prototype.fireEvent=function(t){var e=void 0;t.time=(new Date).getTime(),E.event?!function(){for(var n=[],r=[],o=(0,w["default"])((0,y["default"])(E.event),function(){"function"==typeof t.callback&&t.callback(n,r)}),i=function(t,e){void 0!==e&&n.push(e),t&&r.push(t),I(t),o()},a=E.event,u=Array.isArray(a),c=0,a=u?a:a[Symbol.iterator]();;){if(u){if(c>=a.length)break;e=a[c++]}else{if(c=a.next(),c.done)break;e=c.value}var f=(0,s["default"])(t);(0,h["default"])(f,"updateDigitalData"),(0,h["default"])(f,"callback"),e.handler(f,i)}}():"function"==typeof t.callback&&t.callback(),t.hasFired=!0},t.prototype.on=function(t,e){var n=t.split(":"),r=n[0],o=n[1];E[r]=E[r]||[],o?E[r].push({key:o,handler:e}):E[r].push({handler:e})},t.prototype.fireUnfiredEvents=function(){for(var t=j.events,e=void 0,n=t,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){if(r){if(o>=n.length)break;e=n[o++]}else{if(o=n.next(),o.done)break;e=o.value}e.hasFired||this.fireEvent(e)}},t.prototype.addEarlyCallbacks=function(){for(var t=void 0,e=_,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){if(n){if(r>=e.length)break;t=e[r++]}else{if(r=e.next(),r.done)break;t=r.value}this.addCallback(t)}},t.prototype.reset=function(){clearInterval(k),_.push=Array.prototype.push,E={}},t}();n["default"]=O},{"./DDHelper.js":51,"./functions/after.js":56,"./functions/deleteProperty.js":57,"./functions/size.js":66,async:1,"component-clone":4,debug:44}],53:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=t("./functions/loadScript.js"),c=o(s),f=t("./functions/loadIframe.js"),l=o(f),d=t("./functions/loadPixel.js"),p=o(d),h=t("./functions/format.js"),g=o(h),y=t("./functions/noop.js"),v=o(y),w=t("./functions/each.js"),m=o(w),b=t("./functions/deleteProperty.js"),E=o(b),_=t("debug"),A=o(_),j=t("async"),k=o(j),I=t("component-emitter"),O=o(I),P=t("./DDHelper.js"),S=o(P),$=function(t){function e(n,r){i(this,e);var o=a(this,t.call(this));return o._options=r,o._tags={},o._digitalData=n,o.ready=o.ready.bind(o),o}return u(e,t),e.prototype.initialize=function(){var t=this.ready;k["default"].nextTick(t)},e.prototype.setName=function(t){return this._name=t,this},e.prototype.getName=function(){return this._name||this.constructor.getName()},e.prototype.load=function(t,e){"function"==typeof t&&(e=t,t=null),t=t||"library";var n=this._tags[t];if(!n)throw new Error((0,g["default"])('tag "%s" not defined.',t));e=e||v["default"];var r=void 0,o=n.attr;switch(n.type){case"img":o.width=1,o.height=1,r=(0,p["default"])(o,e);break;case"script":r=(0,c["default"])(o,function(n){return n?void(0,A["default"])('error loading "%s" error="%s"',t,n):e()}),(0,E["default"])(o,"src"),(0,m["default"])(o,function(t,e){r.setAttribute(t,e)});break;case"iframe":r=(0,l["default"])(o,e)}return r},e.prototype.isLoaded=function(){return!1},e.prototype.ready=function(){this.emit("ready")},e.prototype.addTag=function(t,e){return e||(e=t,t="library"),this._tags[t]=e,this},e.prototype.getTag=function(t){return t||(t="library"),this._tags[t]},e.prototype.setOption=function(t,e){return this._options[t]=e,this},e.prototype.getOption=function(t){return this._options[t]},e.prototype.get=function(t){return S["default"].get(t,this._digitalData)},e.prototype.reset=function(){},e.prototype.trackEvent=function(){},e}(O["default"]);n["default"]=$},{"./DDHelper.js":51,"./functions/deleteProperty.js":57,"./functions/each.js":58,"./functions/format.js":59,"./functions/loadIframe.js":61,"./functions/loadPixel.js":62,"./functions/loadScript.js":63,"./functions/noop.js":64,async:1,"component-emitter":5,debug:44}],54:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}var o;n.__esModule=!0;var i=t("./integrations/GoogleTagManager.js"),a=r(i),u=t("./integrations/Driveback.js"),s=r(u),c=t("./integrations/RetailRocket.js"),f=r(c),l=(o={},o[a["default"].getName()]=a["default"],o[s["default"].getName()]=s["default"],o[f["default"].getName()]=f["default"],o);n["default"]=l},{"./integrations/Driveback.js":69,"./integrations/GoogleTagManager.js":70,"./integrations/RetailRocket.js":71}],55:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":"undefined"==typeof t?"undefined":r(t)}function a(){"object"===i(window[O])?$=window[O]:window[O]=$,$.page=$.page||{},$.user=$.user||{},$.page.type&&"confirmation"===$.page.type||($.cart=$.cart||{}),Array.isArray(window[P])?D=window[P]:window[P]=D}n.__esModule=!0;var u=t("component-clone"),s=o(u),c=t("async"),f=o(c),l=t("./functions/size.js"),d=o(l),p=t("./functions/after.js"),h=o(p),g=t("./functions/each.js"),y=o(g),v=t("component-emitter"),w=o(v),m=t("./Integration.js"),b=o(m),E=t("./EventManager.js"),_=o(E),A=t("./AutoEvents.js"),j=o(A),k=t("./DDHelper.js"),I=o(k),O="digitalData",P="ddListener",S="ddManager",$={},D=[],x=void 0,T=void 0,L=void 0,R={},B=!1,M=!1,C={
3
- setAvailableIntegrations:function(t){x=t},processEarlyStubCalls:function(){for(var t=window[S]||[],e=function(t,e){return function(){C[t].apply(C,e)}};t.length>0;){var n=t.shift(),r=n.shift();C[r]&&("initialize"===r&&t.length>0?f["default"].nextTick(e(r,n)):C[r].apply(C,n))}},initialize:function(t){if(t=Object.assign({autoEvents:!0},t),B)throw new Error("ddManager is already initialized");if(a(),T=new _["default"]($,D),t.autoEvents&&(L=new j["default"]($)),t&&"object"===("undefined"==typeof t?"undefined":i(t))){var e=t.integrations;e&&(0,y["default"])(e,function(t,e){if("function"==typeof x[t]){var n=new x[t]($,(0,s["default"])(e));C.addIntegration(n)}})}var n=(0,h["default"])((0,d["default"])(R),function(){T.initialize(),L&&L instanceof j["default"]&&L.fire(),M=!0,C.emit("ready")});(0,d["default"])(R)>0?(0,y["default"])(R,function(t,e){e.isLoaded()?n():(e.once("ready",n),e.initialize()),T.addCallback(["on","event",function(t){e.trackEvent(t)}])}):n(),B=!0,C.emit("initialize",t)},isInitialized:function(){return B},isReady:function(){return M},addIntegration:function(t){if(B)throw new Error("Adding integrations after ddManager initialization is not allowed");if(!t instanceof b["default"]||!t.getName())throw new TypeError("attempted to add an invalid integration");var e=t.getName();R[e]=t},getIntegration:function(t){return R[t]},get:function(t){return I["default"].get(t,$)},reset:function(){T instanceof _["default"]&&T.reset(),(0,y["default"])(R,function(t,e){e.removeAllListeners(),e.reset()}),C.removeAllListeners(),T=null,R={},B=!1,M=!1}};(0,w["default"])(C);var U=C.on;C.on=C.addEventListener=function(t,e){if("ready"===t){if(M)return void e()}else if("initialize"===t&&B)return void e();U.call(C,t,e)},n["default"]=C},{"./AutoEvents.js":50,"./DDHelper.js":51,"./EventManager.js":52,"./Integration.js":53,"./functions/after.js":56,"./functions/each.js":58,"./functions/size.js":66,async:1,"component-clone":4,"component-emitter":5}],56:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){var n=t;return function(){return--n<1?e.apply(this,arguments):void 0}}},{}],57:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){try{delete t[e]}catch(n){t[e]=void 0}}},{}],58:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}},{}],59:[function(t,e,n){"use strict";function r(t){var e=[].slice.call(arguments,1),n=0;return t.replace(/%([a-z])/gi,function(t,r){return i[r]?i[r](e[n++]):t+r})}n.__esModule=!0,n["default"]=r;var o=window.JSON?JSON.stringify:String,i={o:o,s:String,d:parseInt}},{}],60:[function(t,e,n){"use strict";function r(t,e){e||(e=location.search),t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)"),r=n.exec(e);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))}n.__esModule=!0,n["default"]=r},{}],61:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n["default"]=function(t,e){if(!t)throw new Error("Cant load nothing...");"string"==typeof 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 r=document.createElement("iframe");return r.src=t.src,r.width=t.width||1,r.height=t.height||1,r.style.display="none","function"==typeof e&&(0,i["default"])(r,e),u["default"].nextTick(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(r,t)}),r};var o=t("./scriptOnLoad.js"),i=r(o),a=t("async"),u=r(a)},{"./scriptOnLoad.js":65,async:1}],62:[function(t,e,n){"use strict";function r(t,e,n){return function(r){r=r||window.event;var o=new Error(e);o.event=r,o.source=n,t(o)}}n.__esModule=!0,n["default"]=function(t,e){e=e||function(){};var n=new Image;return n.onerror=r(e,"failed to load pixel",n),n.onload=e,n.src=t.src,n.width=1,n.height=1,n}},{}],63:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n["default"]=function(t,e){if(!t)throw new Error("Cant load nothing...");"string"==typeof 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 r=document.createElement("script");return r.type="text/javascript",r.async=!0,r.src=t.src,"function"==typeof e&&(0,i["default"])(r,e),u["default"].nextTick(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(r,t)}),r};var o=t("./scriptOnLoad.js"),i=r(o),a=t("async"),u=r(a)},{"./scriptOnLoad.js":65,async:1}],64:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(){}},{}],65:[function(t,e,n){"use strict";function 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)&&("loaded"===t.readyState?setTimeout(function(){e(null,n)},500):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)})}n.__esModule=!0,n["default"]=function(t,e){return t.addEventListener?r(t,e):o(t,e)}},{}],66:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}},{}],67:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){1===arguments.length&&(e=t,t="error");var n={code:t,message:e};throw(0,a["default"])(e),n}n.__esModule=!0,n["default"]=o;var i=t("debug"),a=r(i)},{debug:44}],68:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}t("./polyfill.js");var o=t("./ddManager.js"),i=r(o),a=t("./availableIntegrations.js"),u=r(a);i["default"].setAvailableIntegrations(u["default"]),i["default"].processEarlyStubCalls(),window.ddManager=i["default"]},{"./availableIntegrations.js":54,"./ddManager.js":55,"./polyfill.js":72}],69:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=t("./../Integration.js"),c=o(s),f=t("./../functions/deleteProperty.js"),l=o(f),d=function(t){function e(n,r){i(this,e);var o=Object.assign({websiteToken:""},r),u=a(this,t.call(this,n,o));return u.addTag({type:"script",attr:{id:"driveback-sdk",src:"//cdn.driveback.ru/js/loader.js"}}),u}return u(e,t),e.getName=function(){return"Driveback"},e.prototype.initialize=function(){var t=this;this.getOption("websiteToken")?(window.DrivebackNamespace="Driveback",window.Driveback=window.Driveback||{},window.DrivebackOnLoad=window.DrivebackOnLoad||[],window.DrivebackLoaderAsyncInit=function(){window.Driveback.Loader.init(t.getOption("websiteToken"))},this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.Driveback||!window.Driveback.Loader)},e.prototype.reset=function(){(0,l["default"])(window,"Driveback"),(0,l["default"])(window,"DriveBack"),(0,l["default"])(window,"DrivebackNamespace"),(0,l["default"])(window,"DrivebackOnLoad"),(0,l["default"])(window,"DrivebackLoaderAsyncInit"),(0,l["default"])(window,"DrivebackAsyncInit")},e}(c["default"]);n["default"]=d},{"./../Integration.js":53,"./../functions/deleteProperty.js":57}],70:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=t("./../Integration.js"),c=o(s),f=t("./../functions/deleteProperty.js"),l=o(f),d=function(t){function e(n,r){i(this,e);var o=Object.assign({containerId:null},r),u=a(this,t.call(this,n,o));return u.addTag({type:"script",attr:{src:"//www.googletagmanager.com/gtm.js?id="+r.containerId+"&l=dataLayer"}}),u}return u(e,t),e.getName=function(){return"Google Tag Manager"},e.prototype.initialize=function(){this.getOption("containerId")?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Number(new Date),event:"gtm.js"}),this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.dataLayer||Array.prototype.push===window.dataLayer.push)},e.prototype.reset=function(){(0,l["default"])(window,"dataLayer"),(0,l["default"])(window,"google_tag_manager")},e.prototype.trackEvent=function(t){var e=t.name,n=t.category;(0,l["default"])(t,"name"),(0,l["default"])(t,"category"),t.event=e,t.eventCategory=n,window.dataLayer.push(t)},e}(c["default"]);n["default"]=d},{"./../Integration.js":53,"./../functions/deleteProperty.js":57}],71:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var s=t("./../Integration.js"),c=o(s),f=t("./../functions/deleteProperty.js"),l=o(f),d=t("./../functions/throwError.js"),p=o(d),h=t("component-type"),g=o(h),y=t("./../functions/format.js"),v=o(y),w=t("./../functions/getQueryParam.js"),m=o(w),b=function(t){function e(n,r){i(this,e);var o=Object.assign({partnerId:"",trackAllEmails:!1},r),u=a(this,t.call(this,n,o));return u.addTag({type:"script",attr:{id:"rrApi-jssdk",src:"//cdn.retailrocket.ru/content/javascript/api.js"}}),u}return u(e,t),e.getName=function(){return"Retail Rocket"},e.prototype.initialize=function(){this.getOption("partnerId")?(window.rrPartnerId=this.getOption("partnerId"),window.rrApi={},window.rrApiOnReady=window.rrApiOnReady||[],window.rrApi.addToBasket=window.rrApi.order=window.rrApi.categoryView=window.rrApi.view=window.rrApi.recomMouseDown=window.rrApi.recomAddToCart=function(){},this.trackEmail(),this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.rrApi||"function"!=typeof window.rrApi._initialize)},e.prototype.reset=function(){(0,l["default"])(window,"rrPartnerId"),(0,l["default"])(window,"rrApi"),(0,l["default"])(window,"rrApiOnReady"),(0,l["default"])(window,"rcApi"),(0,l["default"])(window,"retailrocket"),(0,l["default"])(window,"retailrocket_products"),(0,l["default"])(window,"rrLibrary");var t=document.getElementById("rrApi-jssdk");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.trackEvent=function(t){"Viewed Product Category"===t.name?this.onViewedProductCategory(t.page):"Added Product"===t.name?this.onAddedProduct(t.product):"Viewed Product Detail"===t.name?this.onViewedProductDetail(t.product):"Completed Transaction"===t.name?this.onCompletedTransaction(t.transaction):"Subscribed"===t.name&&this.onSubscribed(t.user)},e.prototype.trackEmail=function(){var t=this;if(this.get("user.email"))(this.getOption("trackAllEmails")===!0||this.get("user.isSubscribed")===!0)&&this.onSubscribed();else{var e=(0,m["default"])("rr_setemail",this.getQueryString());e?window.digitalData.user.email=e:window.ddListener.push(["on","change:user.email",function(){(t.getOption("trackAllEmails")===!0||t.get("user.isSubscribed")===!0)&&t.onSubscribed()}])}},e.prototype.onViewedProductCategory=function(t){var e=this;t=t||{};var n=t.categoryId||this.get("page.categoryId");return n?void window.rrApiOnReady.push(function(){try{window.rrApi.categoryView(n)}catch(t){e.onError(t)}}):void this.onValidationError("page.categoryId")},e.prototype.onViewedProductDetail=function(t){var e=this,n=this.getProductId(t);return n?void window.rrApiOnReady.push(function(){try{window.rrApi.view(n)}catch(t){e.onError(t)}}):void this.onValidationError("product.id")},e.prototype.onAddedProduct=function(t){var e=this,n=this.getProductId(t);return n?void window.rrApiOnReady.push(function(){try{window.rrApi.addToBasket(n)}catch(t){e.onError(t)}}):void this.onValidationError("product.id")},e.prototype.onCompletedTransaction=function(t){var e=this;if(t=t||this.get("transaction")||{},this.validateTransaction(t)){for(var n=[],r=t.lineItems,o=0,i=r.length;i>o;o++)if(this.validateLineItem(r[o],o)){var a=r[o].product;n.push({id:a.id,qnt:r[o].quantity,price:a.unitSalePrice||a.unitPrice})}window.rrApiOnReady.push(function(){try{window.rrApi.order({transaction:t.orderId,items:n})}catch(r){e.onError(r)}})}},e.prototype.onSubscribed=function(t){var e=this;return t=t||this.get("user")||{},t.email?void window.rrApiOnReady.push(function(){try{window.rrApi.setEmail(t.email)}catch(n){e.onError(n)}}):void this.onValidationError("user.email")},e.prototype.validateTransaction=function(t){var e=!0;t.orderId||(this.onValidationError("transaction.orderId"),e=!1);var n=t.lineItems;return n&&Array.isArray(n)&&0!==n.length||(this.onValidationError("transaction.lineItems"),e=!1),e},e.prototype.validateLineItem=function(t,e){var n=!0;t.product||(this.onValidationError((0,v["default"])("transaction.lineItems[%d].product",e)),n=!1);var r=t.product;return r.id||(this.onValidationError((0,v["default"])("transaction.lineItems[%d].product.id",e)),n=!1),r.unitSalePrice||r.unitPrice||(this.onValidationError((0,v["default"])("transaction.lineItems[%d].product.unitSalePrice",e)),n=!1),t.quantity||(this.onValidationError((0,v["default"])("transaction.lineItems[%d].quantity",e)),n=!1),n},e.prototype.getProductId=function(t){t=t||{};var e=void 0;return e="object"===(0,g["default"])(t)?t.id||this.get("product.id"):t},e.prototype.onError=function(t){(0,p["default"])("external_error",(0,v["default"])('Retail Rocket integration error: "%s"',t))},e.prototype.onValidationError=function(t){(0,p["default"])("validation_error",(0,v["default"])('Retail Rocket integration error: DDL or event variable "%s" is not defined or empty',t))},e.prototype.getQueryString=function(){return window.location.search},e}(c["default"]);n["default"]=b},{"./../Integration.js":53,"./../functions/deleteProperty.js":57,"./../functions/format.js":59,"./../functions/getQueryParam.js":60,"./../functions/throwError.js":67,"component-type":6}],72:[function(t,e,n){"use strict";t("core-js/modules/es5"),t("core-js/modules/es6.object.assign"),t("core-js/modules/es6.string.trim")},{"core-js/modules/es5":41,"core-js/modules/es6.object.assign":42,"core-js/modules/es6.string.trim":43}]},{},[68]);
 
 
1
+ !function t(e,n,r){function o(a,c){if(!n[a]){if(!e[a]){var u="function"==typeof require&&require;if(!c&&u)return u(a,!0);if(i)return i(a,!0);var s=new Error("Cannot find module '"+a+"'");throw s.code="MODULE_NOT_FOUND",s}var f=n[a]={exports:{}};e[a][0].call(f.exports,function(t){var n=e[a][1][t];return o(n?n:t)},f,f.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}({1:[function(t,e,n){(function(t,n){!function(){function r(){}function o(t){return t}function i(t){return!!t}function a(t){return!t}function c(t){return function(){if(null===t)throw new Error("Callback was already called.");t.apply(this,arguments),t=null}}function u(t){return function(){null!==t&&(t.apply(this,arguments),t=null)}}function s(t){return U(t)||"number"==typeof t.length&&t.length>=0&&t.length%1===0}function f(t,e){for(var n=-1,r=t.length;++n<r;)e(t[n],n,t)}function d(t,e){for(var n=-1,r=t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}function l(t){return d(Array(t),function(t,e){return e})}function p(t,e,n){return f(t,function(t,r,o){n=e(n,t,r,o)}),n}function h(t,e){f(N(t),function(n){e(t[n],n)})}function y(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}function g(t){var e,n,r=-1;return s(t)?(e=t.length,function(){return r++,e>r?r:null}):(n=N(t),e=n.length,function(){return r++,e>r?n[r]:null})}function m(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),o=0;n>o;o++)r[o]=arguments[o+e];switch(e){case 0:return t.call(this,r);case 1:return t.call(this,arguments[0],r)}}}function w(t){return function(e,n,r){return t(e,r)}}function v(t){return function(e,n,o){o=u(o||r),e=e||[];var i=g(e);if(0>=t)return o(null);var a=!1,s=0,f=!1;!function d(){if(a&&0>=s)return o(null);for(;t>s&&!f;){var r=i();if(null===r)return a=!0,void(0>=s&&o(null));s+=1,n(e[r],r,c(function(t){s-=1,t?(o(t),f=!0):d()}))}}()}}function b(t){return function(e,n,r){return t(M.eachOf,e,n,r)}}function _(t){return function(e,n,r,o){return t(v(n),e,r,o)}}function E(t){return function(e,n,r){return t(M.eachOfSeries,e,n,r)}}function j(t,e,n,o){o=u(o||r),e=e||[];var i=s(e)?[]:{};t(e,function(t,e,r){n(t,function(t,n){i[e]=n,r(t)})},function(t){o(t,i)})}function k(t,e,n,r){var o=[];t(e,function(t,e,r){n(t,function(n){n&&o.push({index:e,value:t}),r()})},function(){r(d(o.sort(function(t,e){return t.index-e.index}),function(t){return t.value}))})}function P(t,e,n,r){k(t,e,function(t,e){n(t,function(t){e(!t)})},r)}function O(t,e,n){return function(r,o,i,a){function c(){a&&a(n(!1,void 0))}function u(t,r,o){return a?void i(t,function(r){a&&e(r)&&(a(n(!0,t)),a=i=!1),o()}):o()}arguments.length>3?t(r,o,u,c):(a=i,i=o,t(r,u,c))}}function A(t,e){return e}function S(t,e,n){n=n||r;var o=s(e)?[]:{};t(e,function(t,e,n){t(m(function(t,r){r.length<=1&&(r=r[0]),o[e]=r,n(t)}))},function(t){n(t,o)})}function I(t,e,n,r){var o=[];t(e,function(t,e,r){n(t,function(t,e){o=o.concat(e||[]),r(t)})},function(t){r(t,o)})}function C(t,e,n){function o(t,e,n,o){if(null!=o&&"function"!=typeof o)throw new Error("task callback must be a function");return t.started=!0,U(e)||(e=[e]),0===e.length&&t.idle()?M.setImmediate(function(){t.drain()}):(f(e,function(e){var i={data:e,callback:o||r};n?t.tasks.unshift(i):t.tasks.push(i),t.tasks.length===t.concurrency&&t.saturated()}),void M.setImmediate(t.process))}function i(t,e){return function(){a-=1;var n=!1,r=arguments;f(e,function(t){f(u,function(e,r){e!==t||n||(u.splice(r,1),n=!0)}),t.callback.apply(t,r)}),t.tasks.length+a===0&&t.drain(),t.process()}}if(null==e)e=1;else if(0===e)throw new Error("Concurrency must not be zero");var a=0,u=[],s={tasks:[],concurrency:e,payload:n,saturated:r,empty:r,drain:r,started:!1,paused:!1,push:function(t,e){o(s,t,!1,e)},kill:function(){s.drain=r,s.tasks=[]},unshift:function(t,e){o(s,t,!0,e)},process:function(){if(!s.paused&&a<s.concurrency&&s.tasks.length)for(;a<s.concurrency&&s.tasks.length;){var e=s.payload?s.tasks.splice(0,s.payload):s.tasks.splice(0,s.tasks.length),n=d(e,function(t){return t.data});0===s.tasks.length&&s.empty(),a+=1,u.push(e[0]);var r=c(i(s,e));t(n,r)}},length:function(){return s.tasks.length},running:function(){return a},workersList:function(){return u},idle:function(){return s.tasks.length+a===0},pause:function(){s.paused=!0},resume:function(){if(s.paused!==!1){s.paused=!1;for(var t=Math.min(s.concurrency,s.tasks.length),e=1;t>=e;e++)M.setImmediate(s.process)}}};return s}function D(t){return m(function(e,n){e.apply(null,n.concat([m(function(e,n){"object"==typeof console&&(e?console.error&&console.error(e):console[t]&&f(n,function(e){console[t](e)}))})]))})}function x(t){return function(e,n,r){t(l(e),n,r)}}function T(t){return m(function(e,n){var r=m(function(n){var r=this,o=n.pop();return t(e,function(t,e,o){t.apply(r,n.concat([o]))},o)});return n.length?r.apply(this,n):r})}function L(t){return m(function(e){var n=e.pop();e.push(function(){var t=arguments;r?M.setImmediate(function(){n.apply(null,t)}):n.apply(null,t)});var r=!0;t.apply(this,e),r=!1})}var R,M={},V="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||this;null!=V&&(R=V.async),M.noConflict=function(){return V.async=R,M};var B=Object.prototype.toString,U=Array.isArray||function(t){return"[object Array]"===B.call(t)},q=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},N=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},z="function"==typeof setImmediate&&setImmediate,Y=z?function(t){z(t)}:function(t){setTimeout(t,0)};"object"==typeof t&&"function"==typeof t.nextTick?M.nextTick=t.nextTick:M.nextTick=Y,M.setImmediate=z?Y:M.nextTick,M.forEach=M.each=function(t,e,n){return M.eachOf(t,w(e),n)},M.forEachSeries=M.eachSeries=function(t,e,n){return M.eachOfSeries(t,w(e),n)},M.forEachLimit=M.eachLimit=function(t,e,n,r){return v(e)(t,w(n),r)},M.forEachOf=M.eachOf=function(t,e,n){function o(t){s--,t?n(t):null===i&&0>=s&&n(null)}n=u(n||r),t=t||[];for(var i,a=g(t),s=0;null!=(i=a());)s+=1,e(t[i],i,c(o));0===s&&n(null)},M.forEachOfSeries=M.eachOfSeries=function(t,e,n){function o(){var r=!0;return null===a?n(null):(e(t[a],a,c(function(t){if(t)n(t);else{if(a=i(),null===a)return n(null);r?M.setImmediate(o):o()}})),void(r=!1))}n=u(n||r),t=t||[];var i=g(t),a=i();o()},M.forEachOfLimit=M.eachOfLimit=function(t,e,n,r){v(e)(t,n,r)},M.map=b(j),M.mapSeries=E(j),M.mapLimit=_(j),M.inject=M.foldl=M.reduce=function(t,e,n,r){M.eachOfSeries(t,function(t,r,o){n(e,t,function(t,n){e=n,o(t)})},function(t){r(t,e)})},M.foldr=M.reduceRight=function(t,e,n,r){var i=d(t,o).reverse();M.reduce(i,e,n,r)},M.transform=function(t,e,n,r){3===arguments.length&&(r=n,n=e,e=U(t)?[]:{}),M.eachOf(t,function(t,r,o){n(e,t,r,o)},function(t){r(t,e)})},M.select=M.filter=b(k),M.selectLimit=M.filterLimit=_(k),M.selectSeries=M.filterSeries=E(k),M.reject=b(P),M.rejectLimit=_(P),M.rejectSeries=E(P),M.any=M.some=O(M.eachOf,i,o),M.someLimit=O(M.eachOfLimit,i,o),M.all=M.every=O(M.eachOf,a,a),M.everyLimit=O(M.eachOfLimit,a,a),M.detect=O(M.eachOf,o,A),M.detectSeries=O(M.eachOfSeries,o,A),M.detectLimit=O(M.eachOfLimit,o,A),M.sortBy=function(t,e,n){function r(t,e){var n=t.criteria,r=e.criteria;return r>n?-1:n>r?1:0}M.map(t,function(t,n){e(t,function(e,r){e?n(e):n(null,{value:t,criteria:r})})},function(t,e){return t?n(t):void n(null,d(e.sort(r),function(t){return t.value}))})},M.auto=function(t,e,n){function o(t){g.unshift(t)}function i(t){var e=y(g,t);e>=0&&g.splice(e,1)}function a(){s--,f(g.slice(0),function(t){t()})}n||(n=e,e=null),n=u(n||r);var c=N(t),s=c.length;if(!s)return n(null);e||(e=s);var d={},l=0,g=[];o(function(){s||n(null,d)}),f(c,function(r){function c(){return e>l&&p(w,function(t,e){return t&&d.hasOwnProperty(e)},!0)&&!d.hasOwnProperty(r)}function u(){c()&&(l++,i(u),f[f.length-1](g,d))}for(var s,f=U(t[r])?t[r]:[t[r]],g=m(function(t,e){if(l--,e.length<=1&&(e=e[0]),t){var o={};h(d,function(t,e){o[e]=t}),o[r]=e,n(t,o)}else d[r]=e,M.setImmediate(a)}),w=f.slice(0,f.length-1),v=w.length;v--;){if(!(s=t[w[v]]))throw new Error("Has inexistant dependency");if(U(s)&&y(s,r)>=0)throw new Error("Has cyclic dependencies")}c()?(l++,f[f.length-1](g,d)):o(u)})},M.retry=function(t,e,n){function r(t,e){if("number"==typeof e)t.times=parseInt(e,10)||i;else{if("object"!=typeof e)throw new Error("Unsupported argument type for 'times': "+typeof e);t.times=parseInt(e.times,10)||i,t.interval=parseInt(e.interval,10)||a}}function o(t,e){function n(t,n){return function(r){t(function(t,e){r(!t||n,{err:t,result:e})},e)}}function r(t){return function(e){setTimeout(function(){e(null)},t)}}for(;u.times;){var o=!(u.times-=1);c.push(n(u.task,o)),!o&&u.interval>0&&c.push(r(u.interval))}M.series(c,function(e,n){n=n[n.length-1],(t||u.callback)(n.err,n.result)})}var i=5,a=0,c=[],u={times:i,interval:a},s=arguments.length;if(1>s||s>3)throw new Error("Invalid arguments - must be either (task), (task, callback), (times, task) or (times, task, callback)");return 2>=s&&"function"==typeof t&&(n=e,e=t),"function"!=typeof t&&r(u,t),u.callback=n,u.task=e,u.callback?o():o},M.waterfall=function(t,e){function n(t){return m(function(r,o){if(r)e.apply(null,[r].concat(o));else{var i=t.next();i?o.push(n(i)):o.push(e),L(t).apply(null,o)}})}if(e=u(e||r),!U(t)){var o=new Error("First argument to waterfall must be an array of functions");return e(o)}return t.length?void n(M.iterator(t))():e()},M.parallel=function(t,e){S(M.eachOf,t,e)},M.parallelLimit=function(t,e,n){S(v(e),t,n)},M.series=function(t,e){S(M.eachOfSeries,t,e)},M.iterator=function(t){function e(n){function r(){return t.length&&t[n].apply(null,arguments),r.next()}return r.next=function(){return n<t.length-1?e(n+1):null},r}return e(0)},M.apply=m(function(t,e){return m(function(n){return t.apply(null,e.concat(n))})}),M.concat=b(I),M.concatSeries=E(I),M.whilst=function(t,e,n){if(n=n||r,t()){var o=m(function(r,i){r?n(r):t.apply(this,i)?e(o):n(null)});e(o)}else n(null)},M.doWhilst=function(t,e,n){var r=0;return M.whilst(function(){return++r<=1||e.apply(this,arguments)},t,n)},M.until=function(t,e,n){return M.whilst(function(){return!t.apply(this,arguments)},e,n)},M.doUntil=function(t,e,n){return M.doWhilst(t,function(){return!e.apply(this,arguments)},n)},M.during=function(t,e,n){n=n||r;var o=m(function(e,r){e?n(e):(r.push(i),t.apply(this,r))}),i=function(t,r){t?n(t):r?e(o):n(null)};t(i)},M.doDuring=function(t,e,n){var r=0;M.during(function(t){r++<1?t(null,!0):e.apply(this,arguments)},t,n)},M.queue=function(t,e){var n=C(function(e,n){t(e[0],n)},e,1);return n},M.priorityQueue=function(t,e){function n(t,e){return t.priority-e.priority}function o(t,e,n){for(var r=-1,o=t.length-1;o>r;){var i=r+(o-r+1>>>1);n(e,t[i])>=0?r=i:o=i-1}return r}function i(t,e,i,a){if(null!=a&&"function"!=typeof a)throw new Error("task callback must be a function");return t.started=!0,U(e)||(e=[e]),0===e.length?M.setImmediate(function(){t.drain()}):void f(e,function(e){var c={data:e,priority:i,callback:"function"==typeof a?a:r};t.tasks.splice(o(t.tasks,c,n)+1,0,c),t.tasks.length===t.concurrency&&t.saturated(),M.setImmediate(t.process)})}var a=M.queue(t,e);return a.push=function(t,e,n){i(a,t,e,n)},delete a.unshift,a},M.cargo=function(t,e){return C(t,1,e)},M.log=D("log"),M.dir=D("dir"),M.memoize=function(t,e){var n={},r={};e=e||o;var i=m(function(o){var i=o.pop(),a=e.apply(null,o);a in n?M.setImmediate(function(){i.apply(null,n[a])}):a in r?r[a].push(i):(r[a]=[i],t.apply(null,o.concat([m(function(t){n[a]=t;var e=r[a];delete r[a];for(var o=0,i=e.length;i>o;o++)e[o].apply(null,t)})])))});return i.memo=n,i.unmemoized=t,i},M.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},M.times=x(M.map),M.timesSeries=x(M.mapSeries),M.timesLimit=function(t,e,n,r){return M.mapLimit(l(t),e,n,r)},M.seq=function(){var t=arguments;return m(function(e){var n=this,o=e[e.length-1];"function"==typeof o?e.pop():o=r,M.reduce(t,e,function(t,e,r){e.apply(n,t.concat([m(function(t,e){r(t,e)})]))},function(t,e){o.apply(n,[t].concat(e))})})},M.compose=function(){return M.seq.apply(null,Array.prototype.reverse.call(arguments))},M.applyEach=T(M.eachOf),M.applyEachSeries=T(M.eachOfSeries),M.forever=function(t,e){function n(t){return t?o(t):void i(n)}var o=c(e||r),i=L(t);n()},M.ensureAsync=L,M.constant=m(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),M.wrapSync=M.asyncify=function(t){return m(function(e){var n,r=e.pop();try{n=t.apply(this,e)}catch(o){return r(o)}q(n)&&"function"==typeof n.then?n.then(function(t){r(null,t)})["catch"](function(t){r(t.message?t:new Error(t))}):r(null,n)})},"object"==typeof e&&e.exports?e.exports=M:"function"==typeof define&&define.amd?define([],function(){return M}):V.async=M}()}).call(this,t("_process"),"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{_process:62}],2:[function(t,e,n){var r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";!function(t){"use strict";function e(t){var e=t.charCodeAt(0);return e===a||e===d?62:e===c||e===l?63:u>e?-1:u+10>e?e-u+26+26:f+26>e?e-f:s+26>e?e-s+26:void 0}function n(t){function n(t){s[d++]=t}var r,o,a,c,u,s;if(t.length%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var f=t.length;u="="===t.charAt(f-2)?2:"="===t.charAt(f-1)?1:0,s=new i(3*t.length/4-u),a=u>0?t.length-4:t.length;var d=0;for(r=0,o=0;a>r;r+=4,o+=3)c=e(t.charAt(r))<<18|e(t.charAt(r+1))<<12|e(t.charAt(r+2))<<6|e(t.charAt(r+3)),n((16711680&c)>>16),n((65280&c)>>8),n(255&c);return 2===u?(c=e(t.charAt(r))<<2|e(t.charAt(r+1))>>4,n(255&c)):1===u&&(c=e(t.charAt(r))<<10|e(t.charAt(r+1))<<4|e(t.charAt(r+2))>>2,n(c>>8&255),n(255&c)),s}function o(t){function e(t){return r.charAt(t)}function n(t){return e(t>>18&63)+e(t>>12&63)+e(t>>6&63)+e(63&t)}var o,i,a,c=t.length%3,u="";for(o=0,a=t.length-c;a>o;o+=3)i=(t[o]<<16)+(t[o+1]<<8)+t[o+2],u+=n(i);switch(c){case 1:i=t[t.length-1],u+=e(i>>2),u+=e(i<<4&63),u+="==";break;case 2:i=(t[t.length-2]<<8)+t[t.length-1],u+=e(i>>10),u+=e(i>>4&63),u+=e(i<<2&63),u+="="}return u}var i="undefined"!=typeof Uint8Array?Uint8Array:Array,a="+".charCodeAt(0),c="/".charCodeAt(0),u="0".charCodeAt(0),s="a".charCodeAt(0),f="A".charCodeAt(0),d="-".charCodeAt(0),l="_".charCodeAt(0);t.toByteArray=n,t.fromByteArray=o}("undefined"==typeof n?this.base64js={}:n)},{}],3:[function(t,e,n){(function(e){function r(){function t(){}try{var e=new Uint8Array(1);return e.foo=function(){return 42},e.constructor=t,42===e.foo()&&e.constructor===t&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(n){return!1}}function o(){return i.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t){return this instanceof i?(this.length=0,this.parent=void 0,"number"==typeof t?a(this,t):"string"==typeof t?c(this,t,arguments.length>1?arguments[1]:"utf8"):u(this,t)):arguments.length>1?new i(t,arguments[1]):new i(t)}function a(t,e){if(t=y(t,0>e?0:0|g(e)),!i.TYPED_ARRAY_SUPPORT)for(var n=0;e>n;n++)t[n]=0;return t}function c(t,e,n){("string"!=typeof n||""===n)&&(n="utf8");var r=0|w(e,n);return t=y(t,r),t.write(e,n),t}function u(t,e){if(i.isBuffer(e))return s(t,e);if($(e))return f(t,e);if(null==e)throw new TypeError("must start with number, buffer, array or string");if("undefined"!=typeof ArrayBuffer){if(e.buffer instanceof ArrayBuffer)return d(t,e);if(e instanceof ArrayBuffer)return l(t,e)}return e.length?p(t,e):h(t,e)}function s(t,e){var n=0|g(e.length);return t=y(t,n),e.copy(t,0,0,n),t}function f(t,e){var n=0|g(e.length);t=y(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function d(t,e){var n=0|g(e.length);t=y(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function l(t,e){return i.TYPED_ARRAY_SUPPORT?(e.byteLength,t=i._augment(new Uint8Array(e))):t=d(t,new Uint8Array(e)),t}function p(t,e){var n=0|g(e.length);t=y(t,n);for(var r=0;n>r;r+=1)t[r]=255&e[r];return t}function h(t,e){var n,r=0;"Buffer"===e.type&&$(e.data)&&(n=e.data,r=0|g(n.length)),t=y(t,r);for(var o=0;r>o;o+=1)t[o]=255&n[o];return t}function y(t,e){i.TYPED_ARRAY_SUPPORT?(t=i._augment(new Uint8Array(e)),t.__proto__=i.prototype):(t.length=e,t._isBuffer=!0);var n=0!==e&&e<=i.poolSize>>>1;return n&&(t.parent=J),t}function g(t){if(t>=o())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+o().toString(16)+" bytes");return 0|t}function m(t,e){if(!(this instanceof m))return new m(t,e);var n=new i(t,e);return delete n.parent,n}function w(t,e){"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"binary":case"raw":case"raws":return n;case"utf8":case"utf-8":return Y(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(r)return Y(t).length;e=(""+e).toLowerCase(),r=!0}}function v(t,e,n){var r=!1;if(e=0|e,n=void 0===n||n===1/0?this.length:0|n,t||(t="utf8"),0>e&&(e=0),n>this.length&&(n=this.length),e>=n)return"";for(;;)switch(t){case"hex":return D(this,e,n);case"utf8":case"utf-8":return A(this,e,n);case"ascii":return I(this,e,n);case"binary":return C(this,e,n);case"base64":return O(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return x(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n,r){n=Number(n)||0;var o=t.length-n;r?(r=Number(r),r>o&&(r=o)):r=o;var i=e.length;if(i%2!==0)throw new Error("Invalid hex string");r>i/2&&(r=i/2);for(var a=0;r>a;a++){var c=parseInt(e.substr(2*a,2),16);if(isNaN(c))throw new Error("Invalid hex string");t[n+a]=c}return a}function _(t,e,n,r){return W(Y(e,t.length-n),t,n,r)}function E(t,e,n,r){return W(F(e),t,n,r)}function j(t,e,n,r){return E(t,e,n,r)}function k(t,e,n,r){return W(G(e),t,n,r)}function P(t,e,n,r){return W(H(e,t.length-n),t,n,r)}function O(t,e,n){return 0===e&&n===t.length?Q.fromByteArray(t):Q.fromByteArray(t.slice(e,n))}function A(t,e,n){n=Math.min(t.length,n);for(var r=[],o=e;n>o;){var i=t[o],a=null,c=i>239?4:i>223?3:i>191?2:1;if(n>=o+c){var u,s,f,d;switch(c){case 1:128>i&&(a=i);break;case 2:u=t[o+1],128===(192&u)&&(d=(31&i)<<6|63&u,d>127&&(a=d));break;case 3:u=t[o+1],s=t[o+2],128===(192&u)&&128===(192&s)&&(d=(15&i)<<12|(63&u)<<6|63&s,d>2047&&(55296>d||d>57343)&&(a=d));break;case 4:u=t[o+1],s=t[o+2],f=t[o+3],128===(192&u)&&128===(192&s)&&128===(192&f)&&(d=(15&i)<<18|(63&u)<<12|(63&s)<<6|63&f,d>65535&&1114112>d&&(a=d))}}null===a?(a=65533,c=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),o+=c}return S(r)}function S(t){var e=t.length;if(K>=e)return String.fromCharCode.apply(String,t);for(var n="",r=0;e>r;)n+=String.fromCharCode.apply(String,t.slice(r,r+=K));return n}function I(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(127&t[o]);return r}function C(t,e,n){var r="";n=Math.min(t.length,n);for(var o=e;n>o;o++)r+=String.fromCharCode(t[o]);return r}function D(t,e,n){var r=t.length;(!e||0>e)&&(e=0),(!n||0>n||n>r)&&(n=r);for(var o="",i=e;n>i;i++)o+=z(t[i]);return o}function x(t,e,n){for(var r=t.slice(e,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}function T(t,e,n){if(t%1!==0||0>t)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function L(t,e,n,r,o,a){if(!i.isBuffer(t))throw new TypeError("buffer must be a Buffer instance");if(e>o||a>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range")}function R(t,e,n,r){0>e&&(e=65535+e+1);for(var o=0,i=Math.min(t.length-n,2);i>o;o++)t[n+o]=(e&255<<8*(r?o:1-o))>>>8*(r?o:1-o)}function M(t,e,n,r){0>e&&(e=4294967295+e+1);for(var o=0,i=Math.min(t.length-n,4);i>o;o++)t[n+o]=e>>>8*(r?o:3-o)&255}function V(t,e,n,r,o,i){if(e>o||i>e)throw new RangeError("value is out of bounds");if(n+r>t.length)throw new RangeError("index out of range");if(0>n)throw new RangeError("index out of range")}function B(t,e,n,r,o){return o||V(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),X.write(t,e,n,r,23,4),n+4}function U(t,e,n,r,o){return o||V(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),X.write(t,e,n,r,52,8),n+8}function q(t){if(t=N(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function N(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function z(t){return 16>t?"0"+t.toString(16):t.toString(16)}function Y(t,e){e=e||1/0;for(var n,r=t.length,o=null,i=[],a=0;r>a;a++){if(n=t.charCodeAt(a),n>55295&&57344>n){if(!o){if(n>56319){(e-=3)>-1&&i.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(56320>n){(e-=3)>-1&&i.push(239,191,189),o=n;continue}n=(o-55296<<10|n-56320)+65536}else o&&(e-=3)>-1&&i.push(239,191,189);if(o=null,128>n){if((e-=1)<0)break;i.push(n)}else if(2048>n){if((e-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(65536>n){if((e-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(1114112>n))throw new Error("Invalid code point");if((e-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function F(t){for(var e=[],n=0;n<t.length;n++)e.push(255&t.charCodeAt(n));return e}function H(t,e){for(var n,r,o,i=[],a=0;a<t.length&&!((e-=2)<0);a++)n=t.charCodeAt(a),r=n>>8,o=n%256,i.push(o),i.push(r);return i}function G(t){return Q.toByteArray(q(t))}function W(t,e,n,r){for(var o=0;r>o&&!(o+n>=e.length||o>=t.length);o++)e[o+n]=t[o];return o}var Q=t("base64-js"),X=t("ieee754"),$=t("is-array");n.Buffer=i,n.SlowBuffer=m,n.INSPECT_MAX_BYTES=50,i.poolSize=8192;var J={};i.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:r(),i.TYPED_ARRAY_SUPPORT&&(i.prototype.__proto__=Uint8Array.prototype,i.__proto__=Uint8Array),i.isBuffer=function(t){return!(null==t||!t._isBuffer)},i.compare=function(t,e){if(!i.isBuffer(t)||!i.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,o=0,a=Math.min(n,r);a>o&&t[o]===e[o];)++o;return o!==a&&(n=t[o],r=e[o]),r>n?-1:n>r?1:0},i.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},i.concat=function(t,e){if(!$(t))throw new TypeError("list argument must be an Array of Buffers.");if(0===t.length)return new i(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;n++)e+=t[n].length;var r=new i(e),o=0;for(n=0;n<t.length;n++){var a=t[n];a.copy(r,o),o+=a.length}return r},i.byteLength=w,i.prototype.length=void 0,i.prototype.parent=void 0,i.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?A(this,0,t):v.apply(this,arguments)},i.prototype.equals=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?!0:0===i.compare(this,t)},i.prototype.inspect=function(){var t="",e=n.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(t+=" ... ")),"<Buffer "+t+">"},i.prototype.compare=function(t){if(!i.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t?0:i.compare(this,t)},i.prototype.indexOf=function(t,e){function n(t,e,n){for(var r=-1,o=0;n+o<t.length;o++)if(t[n+o]===e[-1===r?0:o-r]){if(-1===r&&(r=o),o-r+1===e.length)return n+r}else r=-1;return-1}if(e>2147483647?e=2147483647:-2147483648>e&&(e=-2147483648),e>>=0,0===this.length)return-1;if(e>=this.length)return-1;if(0>e&&(e=Math.max(this.length+e,0)),"string"==typeof t)return 0===t.length?-1:String.prototype.indexOf.call(this,t,e);if(i.isBuffer(t))return n(this,t,e);if("number"==typeof t)return i.TYPED_ARRAY_SUPPORT&&"function"===Uint8Array.prototype.indexOf?Uint8Array.prototype.indexOf.call(this,t,e):n(this,[t],e);throw new TypeError("val must be string, number or Buffer")},i.prototype.get=function(t){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(t)},i.prototype.set=function(t,e){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(t,e)},i.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else if(isFinite(e))e=0|e,isFinite(n)?(n=0|n,void 0===r&&(r="utf8")):(r=n,n=void 0);else{var o=r;r=e,e=0|n,n=o}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(0>n||0>e)||e>this.length)throw new RangeError("attempt to write outside buffer bounds");r||(r="utf8");for(var a=!1;;)switch(r){case"hex":return b(this,t,e,n);case"utf8":case"utf-8":return _(this,t,e,n);case"ascii":return E(this,t,e,n);case"binary":return j(this,t,e,n);case"base64":return k(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,e,n);default:if(a)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),a=!0}},i.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var K=4096;i.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,0>t?(t+=n,0>t&&(t=0)):t>n&&(t=n),0>e?(e+=n,0>e&&(e=0)):e>n&&(e=n),t>e&&(e=t);var r;if(i.TYPED_ARRAY_SUPPORT)r=i._augment(this.subarray(t,e));else{var o=e-t;r=new i(o,void 0);for(var a=0;o>a;a++)r[a]=this[a+t]}return r.length&&(r.parent=this.parent||this),r},i.prototype.readUIntLE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return r},i.prototype.readUIntBE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t+--e],o=1;e>0&&(o*=256);)r+=this[t+--e]*o;return r},i.prototype.readUInt8=function(t,e){return e||T(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||T(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||T(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||T(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},i.prototype.readUInt32BE=function(t,e){return e||T(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},i.prototype.readIntLE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=this[t],o=1,i=0;++i<e&&(o*=256);)r+=this[t+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||T(t,e,this.length);for(var r=e,o=1,i=this[t+--r];r>0&&(o*=256);)i+=this[t+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*e)),i},i.prototype.readInt8=function(t,e){return e||T(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||T(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt16BE=function(t,e){e||T(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},i.prototype.readInt32LE=function(t,e){return e||T(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},i.prototype.readInt32BE=function(t,e){return e||T(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},i.prototype.readFloatLE=function(t,e){return e||T(t,4,this.length),X.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||T(t,4,this.length),X.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||T(t,8,this.length),X.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||T(t,8,this.length),X.read(this,t,!1,52,8)},i.prototype.writeUIntLE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||L(this,t,e,n,Math.pow(2,8*n),0);var o=1,i=0;for(this[e]=255&t;++i<n&&(o*=256);)this[e+i]=t/o&255;return e+n},i.prototype.writeUIntBE=function(t,e,n,r){t=+t,e=0|e,n=0|n,r||L(this,t,e,n,Math.pow(2,8*n),0);var o=n-1,i=1;for(this[e+o]=255&t;--o>=0&&(i*=256);)this[e+o]=t/i&255;return e+n},i.prototype.writeUInt8=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,1,255,0),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},i.prototype.writeUInt16LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},i.prototype.writeUInt16BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,65535,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},i.prototype.writeUInt32LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):M(this,t,e,!0),e+4},i.prototype.writeUInt32BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,4294967295,0),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},i.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e=0|e,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=0,a=1,c=0>t?1:0;for(this[e]=255&t;++i<n&&(a*=256);)this[e+i]=(t/a>>0)-c&255;return e+n},i.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e=0|e,!r){var o=Math.pow(2,8*n-1);L(this,t,e,n,o-1,-o)}var i=n-1,a=1,c=0>t?1:0;for(this[e+i]=255&t;--i>=0&&(a*=256);)this[e+i]=(t/a>>0)-c&255;return e+n},i.prototype.writeInt8=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,1,127,-128),i.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),0>t&&(t=255+t+1),this[e]=255&t,e+1},i.prototype.writeInt16LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):R(this,t,e,!0),e+2},i.prototype.writeInt16BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,2,32767,-32768),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):R(this,t,e,!1),e+2},i.prototype.writeInt32LE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,2147483647,-2147483648),i.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):M(this,t,e,!0),e+4},i.prototype.writeInt32BE=function(t,e,n){return t=+t,e=0|e,n||L(this,t,e,4,2147483647,-2147483648),0>t&&(t=4294967295+t+1),i.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):M(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return U(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return U(this,t,e,!1,n)},i.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&n>r&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(0>e)throw new RangeError("targetStart out of bounds");if(0>n||n>=this.length)throw new RangeError("sourceStart out of bounds");if(0>r)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var o,a=r-n;if(this===t&&e>n&&r>e)for(o=a-1;o>=0;o--)t[o+e]=this[o+n];else if(1e3>a||!i.TYPED_ARRAY_SUPPORT)for(o=0;a>o;o++)t[o+e]=this[o+n];else t._set(this.subarray(n,n+a),e);return a},i.prototype.fill=function(t,e,n){if(t||(t=0),e||(e=0),n||(n=this.length),e>n)throw new RangeError("end < start");if(n!==e&&0!==this.length){if(0>e||e>=this.length)throw new RangeError("start out of bounds");if(0>n||n>this.length)throw new RangeError("end out of bounds");var r;if("number"==typeof t)for(r=e;n>r;r++)this[r]=t;else{var o=Y(t.toString()),i=o.length;for(r=e;n>r;r++)this[r]=o[r%i]}return this}},i.prototype.toArrayBuffer=function(){if("undefined"!=typeof Uint8Array){if(i.TYPED_ARRAY_SUPPORT)return new i(this).buffer;for(var t=new Uint8Array(this.length),e=0,n=t.length;n>e;e+=1)t[e]=this[e];return t.buffer}throw new TypeError("Buffer.toArrayBuffer not supported in this browser")};var Z=i.prototype;i._augment=function(t){return t.constructor=i,t._isBuffer=!0,t._set=t.set,t.get=Z.get,t.set=Z.set,t.write=Z.write,t.toString=Z.toString,t.toLocaleString=Z.toString,t.toJSON=Z.toJSON,t.equals=Z.equals,t.compare=Z.compare,t.indexOf=Z.indexOf,t.copy=Z.copy,t.slice=Z.slice,t.readUIntLE=Z.readUIntLE,t.readUIntBE=Z.readUIntBE,t.readUInt8=Z.readUInt8,t.readUInt16LE=Z.readUInt16LE,t.readUInt16BE=Z.readUInt16BE,t.readUInt32LE=Z.readUInt32LE,t.readUInt32BE=Z.readUInt32BE,t.readIntLE=Z.readIntLE,t.readIntBE=Z.readIntBE,
2
+ t.readInt8=Z.readInt8,t.readInt16LE=Z.readInt16LE,t.readInt16BE=Z.readInt16BE,t.readInt32LE=Z.readInt32LE,t.readInt32BE=Z.readInt32BE,t.readFloatLE=Z.readFloatLE,t.readFloatBE=Z.readFloatBE,t.readDoubleLE=Z.readDoubleLE,t.readDoubleBE=Z.readDoubleBE,t.writeUInt8=Z.writeUInt8,t.writeUIntLE=Z.writeUIntLE,t.writeUIntBE=Z.writeUIntBE,t.writeUInt16LE=Z.writeUInt16LE,t.writeUInt16BE=Z.writeUInt16BE,t.writeUInt32LE=Z.writeUInt32LE,t.writeUInt32BE=Z.writeUInt32BE,t.writeIntLE=Z.writeIntLE,t.writeIntBE=Z.writeIntBE,t.writeInt8=Z.writeInt8,t.writeInt16LE=Z.writeInt16LE,t.writeInt16BE=Z.writeInt16BE,t.writeInt32LE=Z.writeInt32LE,t.writeInt32BE=Z.writeInt32BE,t.writeFloatLE=Z.writeFloatLE,t.writeFloatBE=Z.writeFloatBE,t.writeDoubleLE=Z.writeDoubleLE,t.writeDoubleBE=Z.writeDoubleBE,t.fill=Z.fill,t.inspect=Z.inspect,t.toArrayBuffer=Z.toArrayBuffer,t};var tt=/[^+\/0-9A-Za-z-_]/g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"base64-js":2,ieee754:59,"is-array":60}],4:[function(t,e,n){function r(t){switch(o(t)){case"object":var e={};for(var n in t)t.hasOwnProperty(n)&&(e[n]=r(t[n]));return e;case"array":for(var e=new Array(t.length),i=0,a=t.length;a>i;i++)e[i]=r(t[i]);return e;case"regexp":var c="";return c+=t.multiline?"m":"",c+=t.global?"g":"",c+=t.ignoreCase?"i":"",new RegExp(t.source,c);case"date":return new Date(t.getTime());default:return t}}var o;try{o=t("component-type")}catch(i){o=t("type")}e.exports=r},{"component-type":6,type:6}],5:[function(t,e,n){function r(t){return t?o(t):void 0}function o(t){for(var e in r.prototype)t[e]=r.prototype[e];return t}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(){r.off(t,n),e.apply(this,arguments)}var r=this;return this._callbacks=this._callbacks||{},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],r===e||r.fn===e){n.splice(o,1);break}return this},r.prototype.emit=function(t){this._callbacks=this._callbacks||{};var e=[].slice.call(arguments,1),n=this._callbacks[t];if(n){n=n.slice(0);for(var r=0,o=n.length;o>r;++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}},{}],6:[function(t,e,n){(function(t){var n=Object.prototype.toString;e.exports=function(e){switch(n.call(e)){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===e?"null":void 0===e?"undefined":e!==e?"nan":e&&1===e.nodeType?"element":"undefined"!=typeof t&&t.isBuffer(e)?"buffer":(e=e.valueOf?e.valueOf():Object.prototype.valueOf.apply(e),typeof e)}}).call(this,t("buffer").Buffer)},{buffer:3}],7:[function(t,e,n){e.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},{}],8:[function(t,e,n){var r=t("./_is-object");e.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},{"./_is-object":28}],9:[function(t,e,n){var r=t("./_to-iobject"),o=t("./_to-length"),i=t("./_to-index");e.exports=function(t){return function(e,n,a){var c,u=r(e),s=o(u.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if(c=u[f++],c!=c)return!0}else for(;s>f;f++)if((t||f in u)&&u[f]===n)return t||f||0;return!t&&-1}}},{"./_to-index":44,"./_to-iobject":46,"./_to-length":47}],10:[function(t,e,n){"use strict";var r=t("./_a-function"),o=t("./_is-object"),i=t("./_invoke"),a=[].slice,c={},u=function(t,e,n){if(!(e in c)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";c[e]=Function("F,a","return new F("+r.join(",")+")")}return c[e](t,n)};e.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),c=function(){var r=n.concat(a.call(arguments));return this instanceof c?u(e,r.length,r):i(e,r,t)};return o(e.prototype)&&(c.prototype=e.prototype),c}},{"./_a-function":7,"./_invoke":25,"./_is-object":28}],11:[function(t,e,n){var r={}.toString;e.exports=function(t){return r.call(t).slice(8,-1)}},{}],12:[function(t,e,n){var r=e.exports={version:"2.4.0"};"number"==typeof __e&&(__e=r)},{}],13:[function(t,e,n){var r=t("./_a-function");e.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},{"./_a-function":7}],14:[function(t,e,n){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],15:[function(t,e,n){e.exports=!t("./_fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./_fails":19}],16:[function(t,e,n){var r=t("./_is-object"),o=t("./_global").document,i=r(o)&&r(o.createElement);e.exports=function(t){return i?o.createElement(t):{}}},{"./_global":20,"./_is-object":28}],17:[function(t,e,n){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},{}],18:[function(t,e,n){var r=t("./_global"),o=t("./_core"),i=t("./_hide"),a=t("./_redefine"),c=t("./_ctx"),u="prototype",s=function(t,e,n){var f,d,l,p,h=t&s.F,y=t&s.G,g=t&s.S,m=t&s.P,w=t&s.B,v=y?r:g?r[e]||(r[e]={}):(r[e]||{})[u],b=y?o:o[e]||(o[e]={}),_=b[u]||(b[u]={});y&&(n=e);for(f in n)d=!h&&v&&void 0!==v[f],l=(d?v:n)[f],p=w&&d?c(l,r):m&&"function"==typeof l?c(Function.call,l):l,v&&a(v,f,l,t&s.U),b[f]!=l&&i(b,f,p),m&&_[f]!=l&&(_[f]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},{"./_core":12,"./_ctx":13,"./_global":20,"./_hide":22,"./_redefine":38}],19:[function(t,e,n){e.exports=function(t){try{return!!t()}catch(e){return!0}}},{}],20:[function(t,e,n){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},{}],21:[function(t,e,n){var r={}.hasOwnProperty;e.exports=function(t,e){return r.call(t,e)}},{}],22:[function(t,e,n){var r=t("./_object-dp"),o=t("./_property-desc");e.exports=t("./_descriptors")?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},{"./_descriptors":15,"./_object-dp":31,"./_property-desc":37}],23:[function(t,e,n){e.exports=t("./_global").document&&document.documentElement},{"./_global":20}],24:[function(t,e,n){e.exports=!t("./_descriptors")&&!t("./_fails")(function(){return 7!=Object.defineProperty(t("./_dom-create")("div"),"a",{get:function(){return 7}}).a})},{"./_descriptors":15,"./_dom-create":16,"./_fails":19}],25:[function(t,e,n){e.exports=function(t,e,n){var r=void 0===n;switch(e.length){case 0:return r?t():t.call(n);case 1:return r?t(e[0]):t.call(n,e[0]);case 2:return r?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return r?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return r?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},{}],26:[function(t,e,n){var r=t("./_cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},{"./_cof":11}],27:[function(t,e,n){var r=t("./_cof");e.exports=Array.isArray||function(t){return"Array"==r(t)}},{"./_cof":11}],28:[function(t,e,n){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],29:[function(t,e,n){"use strict";var r=t("./_object-keys"),o=t("./_object-gops"),i=t("./_object-pie"),a=t("./_to-object"),c=t("./_iobject"),u=Object.assign;e.exports=!u||t("./_fails")(function(){var t={},e={},n=Symbol(),r="abcdefghijklmnopqrst";return t[n]=7,r.split("").forEach(function(t){e[t]=t}),7!=u({},t)[n]||Object.keys(u({},e)).join("")!=r})?function(t,e){for(var n=a(t),u=arguments.length,s=1,f=o.f,d=i.f;u>s;)for(var l,p=c(arguments[s++]),h=f?r(p).concat(f(p)):r(p),y=h.length,g=0;y>g;)d.call(p,l=h[g++])&&(n[l]=p[l]);return n}:u},{"./_fails":19,"./_iobject":26,"./_object-gops":33,"./_object-keys":35,"./_object-pie":36,"./_to-object":48}],30:[function(t,e,n){var r=t("./_an-object"),o=t("./_object-dps"),i=t("./_enum-bug-keys"),a=t("./_shared-key")("IE_PROTO"),c=function(){},u="prototype",s=function(){var e,n=t("./_dom-create")("iframe"),r=i.length,o=">";for(n.style.display="none",t("./_html").appendChild(n),n.src="javascript:",e=n.contentWindow.document,e.open(),e.write("<script>document.F=Object</script"+o),e.close(),s=e.F;r--;)delete s[u][i[r]];return s()};e.exports=Object.create||function(t,e){var n;return null!==t?(c[u]=r(t),n=new c,c[u]=null,n[a]=t):n=s(),void 0===e?n:o(n,e)}},{"./_an-object":8,"./_dom-create":16,"./_enum-bug-keys":17,"./_html":23,"./_object-dps":32,"./_shared-key":39}],31:[function(t,e,n){var r=t("./_an-object"),o=t("./_ie8-dom-define"),i=t("./_to-primitive"),a=Object.defineProperty;n.f=t("./_descriptors")?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return a(t,e,n)}catch(c){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},{"./_an-object":8,"./_descriptors":15,"./_ie8-dom-define":24,"./_to-primitive":49}],32:[function(t,e,n){var r=t("./_object-dp"),o=t("./_an-object"),i=t("./_object-keys");e.exports=t("./_descriptors")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),c=a.length,u=0;c>u;)r.f(t,n=a[u++],e[n]);return t}},{"./_an-object":8,"./_descriptors":15,"./_object-dp":31,"./_object-keys":35}],33:[function(t,e,n){n.f=Object.getOwnPropertySymbols},{}],34:[function(t,e,n){var r=t("./_has"),o=t("./_to-iobject"),i=t("./_array-includes")(!1),a=t("./_shared-key")("IE_PROTO");e.exports=function(t,e){var n,c=o(t),u=0,s=[];for(n in c)n!=a&&r(c,n)&&s.push(n);for(;e.length>u;)r(c,n=e[u++])&&(~i(s,n)||s.push(n));return s}},{"./_array-includes":9,"./_has":21,"./_shared-key":39,"./_to-iobject":46}],35:[function(t,e,n){var r=t("./_object-keys-internal"),o=t("./_enum-bug-keys");e.exports=Object.keys||function(t){return r(t,o)}},{"./_enum-bug-keys":17,"./_object-keys-internal":34}],36:[function(t,e,n){n.f={}.propertyIsEnumerable},{}],37:[function(t,e,n){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],38:[function(t,e,n){var r=t("./_global"),o=t("./_hide"),i=t("./_has"),a=t("./_uid")("src"),c="toString",u=Function[c],s=(""+u).split(c);t("./_core").inspectSource=function(t){return u.call(t)},(e.exports=function(t,e,n,c){var u="function"==typeof n;u&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(u&&(i(n,a)||o(n,a,t[e]?""+t[e]:s.join(String(e)))),t===r?t[e]=n:c?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,c,function(){return"function"==typeof this&&this[a]||u.call(this)})},{"./_core":12,"./_global":20,"./_has":21,"./_hide":22,"./_uid":50}],39:[function(t,e,n){var r=t("./_shared")("keys"),o=t("./_uid");e.exports=function(t){return r[t]||(r[t]=o(t))}},{"./_shared":40,"./_uid":50}],40:[function(t,e,n){var r=t("./_global"),o="__core-js_shared__",i=r[o]||(r[o]={});e.exports=function(t){return i[t]||(i[t]={})}},{"./_global":20}],41:[function(t,e,n){var r=t("./_fails");e.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},{"./_fails":19}],42:[function(t,e,n){var r=t("./_export"),o=t("./_defined"),i=t("./_fails"),a=t("./_string-ws"),c="["+a+"]",u="​…",s=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),d=function(t,e,n){var o={},c=i(function(){return!!a[t]()||u[t]()!=u}),s=o[t]=c?e(l):a[t];n&&(o[n]=s),r(r.P+r.F*c,"String",o)},l=d.trim=function(t,e){return t=String(o(t)),1&e&&(t=t.replace(s,"")),2&e&&(t=t.replace(f,"")),t};e.exports=d},{"./_defined":14,"./_export":18,"./_fails":19,"./_string-ws":43}],43:[function(t,e,n){e.exports=" \n\x0B\f\r   ᠎              \u2028\u2029\ufeff"},{}],44:[function(t,e,n){var r=t("./_to-integer"),o=Math.max,i=Math.min;e.exports=function(t,e){return t=r(t),0>t?o(t+e,0):i(t,e)}},{"./_to-integer":45}],45:[function(t,e,n){var r=Math.ceil,o=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?o:r)(t)}},{}],46:[function(t,e,n){var r=t("./_iobject"),o=t("./_defined");e.exports=function(t){return r(o(t))}},{"./_defined":14,"./_iobject":26}],47:[function(t,e,n){var r=t("./_to-integer"),o=Math.min;e.exports=function(t){return t>0?o(r(t),9007199254740991):0}},{"./_to-integer":45}],48:[function(t,e,n){var r=t("./_defined");e.exports=function(t){return Object(r(t))}},{"./_defined":14}],49:[function(t,e,n){var r=t("./_is-object");e.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},{"./_is-object":28}],50:[function(t,e,n){var r=0,o=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++r+o).toString(36))}},{}],51:[function(t,e,n){"use strict";var r=t("./_export"),o=t("./_array-includes")(!1),i=[].indexOf,a=!!i&&1/[1].indexOf(1,-0)<0;r(r.P+r.F*(a||!t("./_strict-method")(i)),"Array",{indexOf:function(t){return a?i.apply(this,arguments)||0:o(this,t,arguments[1])}})},{"./_array-includes":9,"./_export":18,"./_strict-method":41}],52:[function(t,e,n){var r=t("./_export");r(r.S,"Array",{isArray:t("./_is-array")})},{"./_export":18,"./_is-array":27}],53:[function(t,e,n){var r=t("./_export");r(r.P,"Function",{bind:t("./_bind")})},{"./_bind":10,"./_export":18}],54:[function(t,e,n){var r=t("./_export");r(r.S+r.F,"Object",{assign:t("./_object-assign")})},{"./_export":18,"./_object-assign":29}],55:[function(t,e,n){var r=t("./_export");r(r.S,"Object",{create:t("./_object-create")})},{"./_export":18,"./_object-create":30}],56:[function(t,e,n){"use strict";t("./_string-trim")("trim",function(t){return function(){return t(this,3)}})},{"./_string-trim":42}],57:[function(t,e,n){function r(){return"WebkitAppearance"in document.documentElement.style||window.console&&(console.firebug||console.exception&&console.table)||navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31}function o(){var t=arguments,e=this.useColors;if(t[0]=(e?"%c":"")+this.namespace+(e?" %c":" ")+t[0]+(e?"%c ":" ")+"+"+n.humanize(this.diff),!e)return t;var r="color: "+this.color;t=[t[0],r,"color: inherit"].concat(Array.prototype.slice.call(t,1));var o=0,i=0;return t[0].replace(/%[a-z%]/g,function(t){"%%"!==t&&(o++,"%c"===t&&(i=o))}),t.splice(i,0,r),t}function i(){return"object"==typeof console&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function a(t){try{null==t?n.storage.removeItem("debug"):n.storage.debug=t}catch(e){}}function c(){var t;try{t=n.storage.debug}catch(e){}return t}function u(){try{return window.localStorage}catch(t){}}n=e.exports=t("./debug"),n.log=i,n.formatArgs=o,n.save=a,n.load=c,n.useColors=r,n.storage="undefined"!=typeof chrome&&"undefined"!=typeof chrome.storage?chrome.storage.local:u(),n.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"],n.formatters.j=function(t){return JSON.stringify(t)},n.enable(c())},{"./debug":58}],58:[function(t,e,n){function r(){return n.colors[f++%n.colors.length]}function o(t){function e(){}function o(){var t=o,e=+new Date,i=e-(s||e);t.diff=i,t.prev=s,t.curr=e,s=e,null==t.useColors&&(t.useColors=n.useColors()),null==t.color&&t.useColors&&(t.color=r());var a=Array.prototype.slice.call(arguments);a[0]=n.coerce(a[0]),"string"!=typeof a[0]&&(a=["%o"].concat(a));var c=0;a[0]=a[0].replace(/%([a-z%])/g,function(e,r){if("%%"===e)return e;c++;var o=n.formatters[r];if("function"==typeof o){var i=a[c];e=o.call(t,i),a.splice(c,1),c--}return e}),"function"==typeof n.formatArgs&&(a=n.formatArgs.apply(t,a));var u=o.log||n.log||console.log.bind(console);u.apply(t,a)}e.enabled=!1,o.enabled=!0;var i=n.enabled(t)?o:e;return i.namespace=t,i}function i(t){n.save(t);for(var e=(t||"").split(/[\s,]+/),r=e.length,o=0;r>o;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 c(t){var e,r;for(e=0,r=n.skips.length;r>e;e++)if(n.skips[e].test(t))return!1;for(e=0,r=n.names.length;r>e;e++)if(n.names[e].test(t))return!0;return!1}function u(t){return t instanceof Error?t.stack||t.message:t}n=e.exports=o,n.coerce=u,n.disable=a,n.enable=i,n.enabled=c,n.humanize=t("ms"),n.names=[],n.skips=[],n.formatters={};var s,f=0},{ms:61}],59:[function(t,e,n){n.read=function(t,e,n,r,o){var i,a,c=8*o-r-1,u=(1<<c)-1,s=u>>1,f=-7,d=n?o-1:0,l=n?-1:1,p=t[e+d];for(d+=l,i=p&(1<<-f)-1,p>>=-f,f+=c;f>0;i=256*i+t[e+d],d+=l,f-=8);for(a=i&(1<<-f)-1,i>>=-f,f+=r;f>0;a=256*a+t[e+d],d+=l,f-=8);if(0===i)i=1-s;else{if(i===u)return a?NaN:(p?-1:1)*(1/0);a+=Math.pow(2,r),i-=s}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(t,e,n,r,o,i){var a,c,u,s=8*i-o-1,f=(1<<s)-1,d=f>>1,l=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,y=0>e||0===e&&0>1/e?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(c=isNaN(e)?1:0,a=f):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+d>=1?l/u:l*Math.pow(2,1-d),e*u>=2&&(a++,u/=2),a+d>=f?(c=0,a=f):a+d>=1?(c=(e*u-1)*Math.pow(2,o),a+=d):(c=e*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;t[n+p]=255&c,p+=h,c/=256,o-=8);for(a=a<<o|c,s+=o;s>0;t[n+p]=255&a,p+=h,a/=256,s-=8);t[n+p-h]|=128*y}},{}],60:[function(t,e,n){var r=Array.isArray,o=Object.prototype.toString;e.exports=r||function(t){return!!t&&"[object Array]"==o.call(t)}},{}],61:[function(t,e,n){function r(t){if(t=""+t,!(t.length>1e4)){var 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]),r=(e[2]||"ms").toLowerCase();switch(r){case"years":case"year":case"yrs":case"yr":case"y":return n*d;case"days":case"day":case"d":return n*f;case"hours":case"hour":case"hrs":case"hr":case"h":return n*s;case"minutes":case"minute":case"mins":case"min":case"m":return n*u;case"seconds":case"second":case"secs":case"sec":case"s":return n*c;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n}}}}function o(t){return t>=f?Math.round(t/f)+"d":t>=s?Math.round(t/s)+"h":t>=u?Math.round(t/u)+"m":t>=c?Math.round(t/c)+"s":t+"ms"}function i(t){return a(t,f,"day")||a(t,s,"hour")||a(t,u,"minute")||a(t,c,"second")||t+" ms"}function a(t,e,n){return e>t?void 0:1.5*e>t?Math.floor(t/e)+" "+n:Math.ceil(t/e)+" "+n+"s"}var c=1e3,u=60*c,s=60*u,f=24*s,d=365.25*f;e.exports=function(t,e){return e=e||{},"string"==typeof t?r(t):e["long"]?i(t):o(t)}},{}],62:[function(t,e,n){function r(){f=!1,c.length?s=c.concat(s):d=-1,s.length&&o()}function o(){if(!f){var t=setTimeout(r);f=!0;for(var e=s.length;e;){for(c=s,s=[];++d<e;)c&&c[d].run();d=-1,e=s.length}c=null,f=!1,clearTimeout(t)}}function i(t,e){this.fun=t,this.array=e}function a(){}var c,u=e.exports={},s=[],f=!1,d=-1;u.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];s.push(new i(t,e)),1!==s.length||f||setTimeout(o,0)},i.prototype.run=function(){this.fun.apply(null,this.array)},u.title="browser",u.browser=!0,u.env={},u.argv=[],u.version="",u.versions={},u.on=a,u.addListener=a,u.once=a,u.off=a,u.removeListener=a,u.removeAllListeners=a,u.emit=a,u.binding=function(t){throw new Error("process.binding is not supported")},u.cwd=function(){return"/"},u.chdir=function(t){throw new Error("process.chdir is not supported")},u.umask=function(){return 0}},{}],63:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=t("./DOMComponentsTracking.js"),a=r(i),c=t("component-type"),u=r(c),s=function(){function t(e){o(this,t),this.options=Object.assign({trackDOMComponents:!1},e)}return t.prototype.setDigitalData=function(t){this.digitalData=t},t.prototype.setDDListener=function(t){this.ddListener=t},t.prototype.onInitialize=function(){var t=this;if(this.digitalData){this.fireViewedPage(),this.fireViewedProductCategory(),this.fireViewedProductDetail(),this.fireCompletedTransaction(),this.fireSearched(),this.ddListener&&(this.ddListener.push(["on","change:page",function(e,n){t.onPageChange(e,n)}]),this.ddListener.push(["on","change:product.id",function(e,n){t.onProductChange(e,n)}]),this.ddListener.push(["on","change:transaction.orderId",function(e,n){t.onTransactionChange(e,n)}]));var e=this.options.trackDOMComponents;if(window.jQuery&&e!==!1){var n={};"object"===(0,u["default"])(e)&&(n.maxWebsiteWidth=e.maxWebsiteWidth),this.domComponentsTracking=new a["default"](n),this.domComponentsTracking.initialize()}}},t.prototype.onPageChange=function(t,e){(String(t.pageId)!==String(e.pageId)||t.url!==e.url||t.type!==e.type||t.breadcrumb!==e.breadcrumb||String(t.categoryId)!==String(e.categoryId))&&(this.fireViewedPage(),this.fireViewedProductCategory(),this.fireSearched())},t.prototype.onProductChange=function(t,e){t!==e&&this.fireViewedProductDetail()},t.prototype.onTransactionChange=function(t,e){t!==e&&this.fireCompletedTransaction()},t.prototype.fireViewedPage=function(t){t=t||this.digitalData.page,this.digitalData.events.push({enrichEventData:!1,name:"Viewed Page",category:"Content",page:t,nonInteraction:!0})},t.prototype.fireViewedProductCategory=function(t){t=t||this.digitalData.page||{},"category"===t.type&&this.digitalData.events.push({enrichEventData:!1,name:"Viewed Product Category",category:"Ecommerce",page:t,nonInteraction:!0})},t.prototype.fireViewedProductDetail=function(t){t=t||this.digitalData.product,t&&this.digitalData.events.push({enrichEventData:!1,name:"Viewed Product Detail",category:"Ecommerce",product:t,nonInteraction:!0})},t.prototype.fireCompletedTransaction=function(t){t=t||this.digitalData.transaction,t&&t.isReturning!==!0&&this.digitalData.events.push({enrichEventData:!1,name:"Completed Transaction",category:"Ecommerce",transaction:t})},t.prototype.fireSearched=function(t){if(t=t||this.digitalData.listing,t&&t.query){var e={enrichEventData:!1,name:"Searched",category:"Content",query:t.query};t.resultCount&&(e.resultCount=t.resultCount),this.digitalData.events.push(e)}},t}();n["default"]=s},{"./DOMComponentsTracking.js":65,"component-type":6}],64:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=t("./functions/getProperty.js"),a=r(i),c=t("component-clone"),u=r(c),s=function(){function t(){o(this,t)}return t.get=function(t,e){var n=(0,a["default"])(e,t);return(0,u["default"])(n)},t.getProduct=function(t,e){var n=arguments.length<=2||void 0===arguments[2]?void 0:arguments[2];if(!n&&e.product&&String(e.product.id)===String(t))return(0,u["default"])(e.product);for(var r=["listing","recommendation"],o=0;o<r.length;o++){var i=r[o],a=e[i];if(a){Array.isArray(a)||(a=[a]);for(var c=a,s=Array.isArray(c),f=0,c=s?c:c[Symbol.iterator]();;){var d;if(s){if(f>=c.length)break;d=c[f++]}else{if(f=c.next(),f.done)break;d=f.value}var l=d;if(l.items&&l.items.length&&(!n||n===l.listName))for(var p=0,h=l.items.length;h>p;p++)if(l.items[p].id&&String(l.items[p].id)===String(t)){var y=(0,u["default"])(l.items[p]);return y.position=y.position||p+1,l.listName&&(y.listName=y.listName||l.listName),y}}}}if(!n&&e.cart&&e.cart.lineItems&&e.cart.lineItems.length)for(var g=e.cart.lineItems,m=Array.isArray(g),w=0,g=m?g:g[Symbol.iterator]();;){var v;if(m){if(w>=g.length)break;v=g[w++]}else{if(w=g.next(),w.done)break;v=w.value}var b=v;if(b.product&&String(b.product.id)===String(t))return(0,u["default"])(b.product)}},t.getCampaign=function(t,e){if(e.campaigns&&e.campaigns.length)for(var n=e.campaigns,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;if(a.id&&String(a.id)===String(t))return(0,u["default"])(a)}},t}();n["default"]=s},{"./functions/getProperty.js":76,"component-clone":4}],65:[function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var o=function(){function t(e){r(this,t),this.options=Object.assign({websiteMaxWidth:void 0},e),this.viewedComponentIds={product:[],campaign:[]},this.$digitalDataComponents={product:[],campaign:[]}}return t.prototype.initialize=function(){var t=this;window.jQuery&&window.jQuery(function(){if(!t.options.websiteMaxWidth){var e=window.jQuery("body");t.options.websiteMaxWidth=e.children(".container").first().width()||e.children("div").first().width()}t.defineDocBoundaries(),t.addClickHandlers(),t.startTracking()})},t.prototype.defineDocBoundaries=function(){var t=this,e=window.jQuery(window),n=function(){t.docViewTop=e.scrollTop(),t.docViewBottom=t.docViewTop+e.height(),t.docViewLeft=e.scrollLeft(),t.docViewRight=t.docViewLeft+e.width();var n=t.options.maxWebsiteWidth;n&&n<t.docViewRight&&0===t.docViewLeft&&(t.docViewLeft=(t.docViewRight-n)/2,t.docViewRight=t.docViewLeft+n)};n(),e.resize(function(){n()}),e.scroll(function(){n()})},t.prototype.updateDigitalDataDomComponents=function(){for(var t=["product","campaign"],e=0;e<t.length;e++){var n=t[e],r="ddl-viewed-"+n;this.$digitalDataComponents[n]=this.findByDataAttr(r)}},t.prototype.addClickHandlers=function(){for(var t=this,e=function(e){var n=t;return function(){var t=window.jQuery(this),r=t.data("ddl-clicked-"+e);if("product"===e){var o=n.findParentByDataAttr("ddl-product-list-name",t).data("ddl-product-list-name");n.fireClickedProduct(r,o)}else"campaign"===e&&n.fireClickedCampaign(r)}},n=["campaign","product"],r=0;r<n.length;r++){var o=n[r],i="click.ddl-clicked-"+o,a=this.getDataAttrSelector("ddl-clicked-"+o);window.jQuery(document).on(i,a,e(o))}},t.prototype.trackViews=function(){for(var t=this,e=["campaign","product"],n=function(){var n=e[r],o=[],i=t.$digitalDataComponents[n];i.each(function(e,r){var i=window.jQuery(r),a=i.data("ddl-viewed-"+n);if(t.viewedComponentIds[n].indexOf(a)<0&&t.isVisible(i))if(t.viewedComponentIds[n].push(a),"product"===n){var c={id:a},u=t.findParentByDataAttr("ddl-product-list-name",i).data("ddl-product-list-name");u&&(c.listName=u),o.push(c)}else o.push(a)}),o.length>0&&("product"===n?t.fireViewedProduct(o):"campaign"===n&&t.fireViewedCampaign(o))},r=0;r<e.length;r++)n()},t.prototype.startTracking=function(){var t=this,e=function(){t.updateDigitalDataDomComponents(),t.trackViews()};e(),setInterval(function(){e()},500)},t.prototype.fireViewedProduct=function(t){window.digitalData.events.push({name:"Viewed Product",category:"Ecommerce",product:t})},t.prototype.fireViewedCampaign=function(t){window.digitalData.events.push({name:"Viewed Campaign",category:"Promo",campaign:t})},t.prototype.fireClickedProduct=function(t,e){var n={id:t};e&&(n.listName=e),window.digitalData.events.push({name:"Clicked Product",category:"Ecommerce",product:n})},t.prototype.fireClickedCampaign=function(t){window.digitalData.events.push({name:"Clicked Campaign",category:"Promo",campaign:t})},t.prototype.isVisible=function(t){var e=t[0],n=window.jQuery(window),r=t.offset(),o=t.width(),i=t.height(),a=r.top,c=a+i,u=r.left,s=u+o,f=t.is(":visible")&&t.css("opacity")>0&&"hidden"!==t.css("visibility");if(!f)return!1;var d=c-i/4<=this.docViewBottom&&a+i/4>=this.docViewTop,l=u+o/4>=this.docViewLeft&&s-o/4<=this.docViewRight;if(!d||!l)return!1;for(var p=document.elementFromPoint(u-n.scrollLeft()+o/2,a-n.scrollTop()+i/2);p&&p!==e&&p.parentNode!==document;)p=p.parentNode;return!!p&&p===e},t.prototype.findByDataAttr=function(t,e){return e||(e=window.jQuery(document.body)),e.find(this.getDataAttrSelector(t))},t.prototype.findParentByDataAttr=function(t,e){return e.closest(this.getDataAttrSelector(t))},t.prototype.getDataAttrSelector=function(t){return"[data-"+t+"]"},t}();n["default"]=o},{}],66:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=t("./functions/htmlGlobals.js"),a=r(i),c=function(){function t(e){o(this,t),this.digitalData=e}return t.prototype.setDigitalData=function(t){this.digitalData=t},t.prototype.enrichDigitalData=function(){this.enrichPageData(),this.enrichContextData()},t.prototype.enrichPageData=function(){var t=this.digitalData.page;t.path=t.path||this.getHtmlGlobals().getLocation().pathname,t.referrer=t.referrer||this.getHtmlGlobals().getDocument().referrer,t.queryString=t.queryString||this.getHtmlGlobals().getLocation().search,t.title=t.title||this.getHtmlGlobals().getDocument().title,t.url=t.url||this.getHtmlGlobals().getLocation().href,t.hash=t.hash||this.getHtmlGlobals().getLocation().hash},t.prototype.enrichContextData=function(){var t=this.digitalData.context;t.userAgent=this.getHtmlGlobals().getNavigator().userAgent},t.prototype.getHtmlGlobals=function(){return a["default"]},t}();n["default"]=c},{"./functions/htmlGlobals.js":78}],67:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}n.__esModule=!0;var i=t("component-type"),a=r(i),c=t("./DDHelper.js"),u=r(c),s=function(){function t(){o(this,t)}return t.product=function(t,e){t=t||[];var n=void 0,r=!0;Array.isArray(t)||(r=!1,t=[t]);for(var o=[],i=t,c=Array.isArray(i),s=0,i=c?i:i[Symbol.iterator]();;){var f;if(c){if(s>=i.length)break;f=i[s++]}else{if(s=i.next(),s.done)break;f=s.value}var d=f;if("object"===(0,a["default"])(d)?n=d.id:(n=d,d={id:n}),n){var l=u["default"].getProduct(n,e,d.listName)||{};l&&(d=Object.assign(l,d))}o.push(d)}return r?o:o.pop()},t.transaction=function(t,e){t=t||{};var n=u["default"].get("transaction",e)||{};return n&&(t=Object.assign(n,t)),t},t.campaign=function(t,e){t=t||[];var n=void 0,r=!0;Array.isArray(t)||(r=!1,t=[t]);for(var o=[],i=t,c=Array.isArray(i),s=0,i=c?i:i[Symbol.iterator]();;){var f;if(c){if(s>=i.length)break;f=i[s++]}else{if(s=i.next(),s.done)break;f=s.value}var d=f;if("object"===(0,a["default"])(d)?n=d.id:(n=d,d={id:n}),n){var l=u["default"].getCampaign(n,e)||{};l&&(d=Object.assign(l,d))}o.push(d)}return r?o:o.pop()},t.user=function(t,e){t=t||{};var n=u["default"].get("user",e)||{};return n&&(t=Object.assign(n,t)),t},t.page=function(t,e){t=t||{};var n=u["default"].get("page",e)||{};return n&&(t=Object.assign(n,t)),t},t}();n["default"]=s},{"./DDHelper.js":64,"component-type":6}],68:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t){var e=(0,c["default"])(t);return(0,y["default"])(e,"events"),e}n.__esModule=!0;var a=t("component-clone"),c=r(a),u=t("async"),s=r(u),f=t("debug"),d=r(f),l=t("./functions/noop.js"),p=r(l),h=t("./functions/deleteProperty.js"),y=r(h),g=t("./functions/size.js"),m=r(g),w=t("./functions/after.js"),v=r(w),b=t("./functions/jsonIsEqual.js"),_=r(b),E=t("./DDHelper.js"),j=r(E),k=t("./EventDataEnricher.js"),P=r(k),O={},A=[],S={},I={},C=void 0,D=void 0,x=!1,T=function(t){t&&(0,d["default"])("ddListener callback error: %s",t)},L=function(){function t(e,n){o(this,t),I=e||I,Array.isArray(I.events)||(I.events=[]),A=n||A,S=i(I)}return t.prototype.initialize=function(){var t=this,e=I.events;this.addEarlyCallbacks(),this.fireDefine(),A.push=function(e){t.addCallback(e),A[A.length]=e},this.fireUnfiredEvents(),e.push=function(n){t.fireEvent(n),e[e.length]=n},D&&D.onInitialize(),C=setInterval(function(){t.fireDefine(),
3
+ t.checkForChanges()},100),x=!0},t.prototype.setAutoEvents=function(t){D=t,D.setDigitalData(I),D.setDDListener(A)},t.prototype.checkForChanges=function(){if(O.change&&O.change.length>0||O.define&&O.define.length>0){var t=i(I);if(!(0,_["default"])(S,t)){var e=i(S);S=(0,c["default"])(t),this.fireDefine(),this.fireChange(t,e)}}},t.prototype.addCallback=function(t,e){if(e!==!1&&(e=!0),Array.isArray(t)&&!(t.length<2)){if("on"===t[0]){if(t.length<3)return;var n=s["default"].asyncify(t[2]);this.on(t[1],n,e)}"off"===t[0]}},t.prototype.fireDefine=function(){var t=void 0;if(O.define&&O.define.length>0)for(var e=O.define,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){if(n){if(r>=e.length)break;t=e[r++]}else{if(r=e.next(),r.done)break;t=r.value}var o=void 0;if(t.key){var i=t.key;o=j["default"].get(i,I)}else o=I;void 0!==o&&(t.handler(o,T),O.define.splice(O.define.indexOf(t),1))}},t.prototype.fireChange=function(t,e){var n=void 0;if(O.change&&O.change.length>0)for(var r=O.change,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){if(o){if(i>=r.length)break;n=r[i++]}else{if(i=r.next(),i.done)break;n=i.value}if(n.key){var a=n.key,c=j["default"].get(a,t),u=j["default"].get(a,e);(0,_["default"])(c,u)||n.handler(c,u,T)}else n.handler(t,e,T)}},t.prototype.fireEvent=function(t){var e=this,n=void 0;t.time=(new Date).getTime(),O.event?!function(){for(var r=[],o=[],i=(0,v["default"])((0,m["default"])(O.event),function(){"function"==typeof t.callback&&t.callback(r,o)}),a=function(t,e){void 0!==e&&r.push(e),t&&o.push(t),T(t),i()},u=O.event,s=Array.isArray(u),f=0,u=s?u:u[Symbol.iterator]();;){if(s){if(f>=u.length)break;n=u[f++]}else{if(f=u.next(),f.done)break;n=f.value}var d=(0,c["default"])(t);(0,y["default"])(d,"callback"),d.enrichEventData!==!1&&(d=e.enrichEventWithData(d)),n.handler(d,a)}}():"function"==typeof t.callback&&t.callback(),t.hasFired=!0},t.prototype.on=function(t,e,n){var r=t.split(":"),o=r[0],i=r[1];O[o]=O[o]||[],i?O[o].push({key:i,handler:e}):O[o].push({handler:e}),x&&"event"===o&&n&&this.applyCallbackForPastEvents(e)},t.prototype.applyCallbackForPastEvents=function(t){for(var e=I.events,n=void 0,r=e,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){if(o){if(i>=r.length)break;n=r[i++]}else{if(i=r.next(),i.done)break;n=i.value}if(n.hasFired){var a=(0,c["default"])(n);(0,y["default"])(a,"callback"),a.enrichEventData!==!1&&(a=this.enrichEventWithData(a)),t(a,p["default"])}}},t.prototype.fireUnfiredEvents=function(){for(var t=I.events,e=void 0,n=t,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){if(r){if(o>=n.length)break;e=n[o++]}else{if(o=n.next(),o.done)break;e=o.value}e.hasFired||this.fireEvent(e)}},t.prototype.addEarlyCallbacks=function(){for(var t=void 0,e=A,n=Array.isArray(e),r=0,e=n?e:e[Symbol.iterator]();;){if(n){if(r>=e.length)break;t=e[r++]}else{if(r=e.next(),r.done)break;t=r.value}this.addCallback(t)}},t.prototype.enrichEventWithData=function(t){for(var e=["product","transaction","campaign","user","page"],n=e,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;if(t[a]){var c=P["default"][a],u=t[a];t[a]=c(u,I)}}return t},t.prototype.reset=function(){for(clearInterval(C);A.length;)A.pop();A.push=Array.prototype.push,O={},D=null},t}();n["default"]=L},{"./DDHelper.js":64,"./EventDataEnricher.js":67,"./functions/after.js":72,"./functions/deleteProperty.js":73,"./functions/jsonIsEqual.js":79,"./functions/noop.js":83,"./functions/size.js":85,async:1,"component-clone":4,debug:57}],69:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./functions/loadScript.js"),s=o(u),f=t("./functions/loadIframe.js"),d=o(f),l=t("./functions/loadPixel.js"),p=o(l),h=t("./functions/format.js"),y=o(h),g=t("./functions/noop.js"),m=o(g),w=t("./functions/each.js"),v=o(w),b=t("./functions/deleteProperty.js"),_=o(b),E=t("debug"),j=o(E),k=t("async"),P=o(k),O=t("component-emitter"),A=o(O),S=t("./DDHelper.js"),I=o(S),C=function(t){function e(n,r,o){i(this,e);var c=a(this,t.call(this));return c.options=r,c.tags=o||{},c.digitalData=n,c.ready=c.ready.bind(c),c}return c(e,t),e.prototype.initialize=function(){var t=this.ready;P["default"].nextTick(t)},e.prototype.load=function(t,e){"function"==typeof t&&(e=t,t=null),t=t||"library";var n=this.tags[t];if(!n)throw new Error((0,y["default"])('tag "%s" not defined.',t));e=e||m["default"];var r=void 0,o=n.attr;switch(n.type){case"img":o.width=1,o.height=1,r=(0,p["default"])(o,e);break;case"script":r=(0,s["default"])(o,function(n){return n?void(0,j["default"])('error loading "%s" error="%s"',t,n):e()}),(0,_["default"])(o,"src"),(0,v["default"])(o,function(t,e){r.setAttribute(t,e)});break;case"iframe":r=(0,d["default"])(o,e)}return r},e.prototype.isLoaded=function(){return!1},e.prototype.ready=function(){this.emit("ready")},e.prototype.addTag=function(t,e){return e||(e=t,t="library"),this.tags[t]=e,this},e.prototype.getTag=function(t){return t||(t="library"),this.tags[t]},e.prototype.setOption=function(t,e){return this.options[t]=e,this},e.prototype.getOption=function(t){return this.options[t]},e.prototype.get=function(t){return I["default"].get(t,this.digitalData)},e.prototype.reset=function(){},e.prototype.enrichDigitalData=function(t){t()},e.prototype.trackEvent=function(){},e}(A["default"]);n["default"]=C},{"./DDHelper.js":64,"./functions/deleteProperty.js":73,"./functions/each.js":74,"./functions/format.js":75,"./functions/loadIframe.js":80,"./functions/loadPixel.js":81,"./functions/loadScript.js":82,"./functions/noop.js":83,async:1,"component-emitter":5,debug:57}],70:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0;var o=t("./integrations/GoogleAnalytics.js"),i=r(o),a=t("./integrations/GoogleTagManager.js"),c=r(a),u=t("./integrations/Driveback.js"),s=r(u),f=t("./integrations/RetailRocket.js"),d=r(f),l=t("./integrations/FacebookPixel.js"),p=r(l),h=t("./integrations/SegmentStream.js"),y=r(h),g=t("./integrations/SendPulse.js"),m=r(g),w=t("./integrations/OWOXBIStreaming.js"),v=r(w),b=t("./integrations/Criteo.js"),_=r(b),E=t("./integrations/MyTarget.js"),j=r(E),k=t("./integrations/YandexMetrica.js"),P=r(k),O=t("./integrations/Vkontakte.js"),A=r(O),S={"Google Analytics":i["default"],"Google Tag Manager":c["default"],"OWOX BI Streaming":v["default"],"Facebook Pixel":p["default"],Driveback:s["default"],"Retail Rocket":d["default"],SegmentStream:y["default"],SendPulse:m["default"],Criteo:_["default"],myTarget:j["default"],"Yandex Metrica":P["default"],Vkontakte:A["default"]};n["default"]=S},{"./integrations/Criteo.js":88,"./integrations/Driveback.js":89,"./integrations/FacebookPixel.js":90,"./integrations/GoogleAnalytics.js":91,"./integrations/GoogleTagManager.js":92,"./integrations/MyTarget.js":93,"./integrations/OWOXBIStreaming.js":94,"./integrations/RetailRocket.js":95,"./integrations/SegmentStream.js":96,"./integrations/SendPulse.js":97,"./integrations/Vkontakte.js":98,"./integrations/YandexMetrica.js":99}],71:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":"undefined"==typeof t?"undefined":r(t)}function a(){"object"===i(window[D])?L=window[D]:window[D]=L,L.page=L.page||{},L.user=L.user||{},L.context=L.context||{},L.page.type&&"confirmation"===L.page.type||(L.cart=L.cart||{}),Array.isArray(window[x])?R=window[x]:window[x]=R}function c(t,e){t&&"object"===("undefined"==typeof t?"undefined":i(t))&&!function(){var n=t.integrations;if(n)if(Array.isArray(n))for(var r=n,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var c=a,u=c.name,f=(0,s["default"])(c.options);if("function"==typeof M[u]){var d=new M[u](L,f||{});C.addIntegration(u,d)}}else(0,m["default"])(n,function(t,e){if("function"==typeof M[t]){var n=new M[t](L,(0,s["default"])(e));C.addIntegration(t,n)}});var l=(0,y["default"])((0,p["default"])(B),e);(0,p["default"])(B)>0?(0,m["default"])(B,function(t,e){!e.isLoaded()||e.getOption("noConflict")?(e.once("ready",function(){e.enrichDigitalData(function(){V.addCallback(["on","event",function(t){return e.trackEvent(t)}],!0),l()})}),e.initialize()):l()}):l()}()}n.__esModule=!0;var u=t("component-clone"),s=o(u),f=t("async"),d=o(f),l=t("./functions/size.js"),p=o(l),h=t("./functions/after.js"),y=o(h),g=t("./functions/each.js"),m=o(g),w=t("component-emitter"),v=o(w),b=t("./Integration.js"),_=o(b),E=t("./EventManager.js"),j=o(E),k=t("./AutoEvents.js"),P=o(k),O=t("./DDHelper.js"),A=o(O),S=t("./DigitalDataEnricher.js"),I=o(S),C=void 0,D="digitalData",x="ddListener",T="ddManager",L={},R=[],M=void 0,V=void 0,B={},U=!1,q=!1;C={VERSION:"1.0.19",setAvailableIntegrations:function(t){M=t},processEarlyStubCalls:function(){for(var t=window[T]||[],e=function(t,e){return function(){C[t].apply(C,e)}};t.length>0;){var n=t.shift(),r=n.shift();C[r]&&("initialize"===r&&t.length>0?d["default"].nextTick(e(r,n)):C[r].apply(C,n))}},initialize:function(t){if(t=Object.assign({domain:null,autoEvents:{trackDOMComponents:!1},sessionLength:3600},t),U)throw new Error("ddManager is already initialized");a();var e=new I["default"](L);e.enrichDigitalData(),V=new j["default"](L,R),t.autoEvents!==!1&&V.setAutoEvents(new P["default"](t.autoEvents)),c(t,function(){q=!0,C.emit("ready")}),V.initialize(),U=!0,C.emit("initialize",t)},isInitialized:function(){return U},isReady:function(){return q},addIntegration:function(t,e){if(U)throw new Error("Adding integrations after ddManager initialization is not allowed");if(!e instanceof _["default"]||!t)throw new TypeError("attempted to add an invalid integration");B[t]=e},getIntegration:function(t){return B[t]},get:function(t){return A["default"].get(t,L)},getProduct:function(t){return A["default"].getProduct(t,L)},getCampaign:function(t){return A["default"].getCampaign(t,L)},reset:function(){V instanceof j["default"]&&V.reset(),(0,m["default"])(B,function(t,e){e.removeAllListeners(),e.reset()}),C.removeAllListeners(),V=null,B={},U=!1,q=!1},Integration:_["default"]},(0,v["default"])(C);var N=C.on;C.on=C.addEventListener=function(t,e){if("ready"===t){if(q)return void e()}else if("initialize"===t&&U)return void e();N.call(C,t,e)},n["default"]=C},{"./AutoEvents.js":63,"./DDHelper.js":64,"./DigitalDataEnricher.js":66,"./EventManager.js":68,"./Integration.js":69,"./functions/after.js":72,"./functions/each.js":74,"./functions/size.js":85,async:1,"component-clone":4,"component-emitter":5}],72:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){var n=t;return function(){return--n<1?e.apply(this,arguments):void 0}}},{}],73:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){try{delete t[e]}catch(n){t[e]=void 0}}},{}],74:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){for(var n in t)t.hasOwnProperty(n)&&e(n,t[n])}},{}],75:[function(t,e,n){"use strict";function r(t){var e=[].slice.call(arguments,1),n=0;return t.replace(/%([a-z])/gi,function(t,r){return i[r]?i[r](e[n++]):t+r})}n.__esModule=!0,n["default"]=r;var o=window.JSON?JSON.stringify:String,i={o:o,s:String,d:parseInt}},{}],76:[function(t,e,n){"use strict";function r(t){return t=t.trim(),""===t?[]:(t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,""),t.split("."))}n.__esModule=!0,n["default"]=function(t,e){for(var n=r(e),o=t;n.length>0;){var i=n.shift();if(!o.hasOwnProperty(i))return;o=o[i]}return o}},{}],77:[function(t,e,n){"use strict";function r(t,e){e||(e=location.search),t=t.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var n=new RegExp("[\\?&]"+t+"=([^&#]*)"),r=n.exec(e);return null===r?"":decodeURIComponent(r[1].replace(/\+/g," "))}n.__esModule=!0,n["default"]=r},{}],78:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]={getDocument:function(){return window.document},getLocation:function(){return window.location},getNavigator:function(){return window.navigator}}},{}],79:[function(t,e,n){"use strict";function r(t,e){return"string"!=typeof t&&(t=JSON.stringify(t)),"string"!=typeof e&&(e=JSON.stringify(e)),t===e}n.__esModule=!0,n["default"]=r},{}],80:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n["default"]=function(t,e){if(!t)throw new Error("Cant load nothing...");"string"==typeof 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 r=document.createElement("iframe");return r.src=t.src,r.width=t.width||1,r.height=t.height||1,r.style.display="none","function"==typeof e&&(0,i["default"])(r,e),c["default"].nextTick(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(r,t)}),r};var o=t("./scriptOnLoad.js"),i=r(o),a=t("async"),c=r(a)},{"./scriptOnLoad.js":84,async:1}],81:[function(t,e,n){"use strict";function r(t,e,n){return function(r){r=r||window.event;var o=new Error(e);o.event=r,o.source=n,t(o)}}n.__esModule=!0,n["default"]=function(t,e){e=e||function(){};var n=new Image;return n.onerror=r(e,"failed to load pixel",n),n.onload=e,n.src=t.src,n.width=1,n.height=1,n}},{}],82:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}n.__esModule=!0,n["default"]=function(t,e){if(!t)throw new Error("Cant load nothing...");"string"==typeof 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 r=document.createElement("script");return r.type="text/javascript",r.async=!0,r.src=t.src,"function"==typeof e&&(0,i["default"])(r,e),c["default"].nextTick(function(){var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(r,t)}),r};var o=t("./scriptOnLoad.js"),i=r(o),a=t("async"),c=r(a)},{"./scriptOnLoad.js":84,async:1}],83:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(){}},{}],84:[function(t,e,n){"use strict";function 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)&&("loaded"===t.readyState?setTimeout(function(){e(null,n)},500):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)})}n.__esModule=!0,n["default"]=function(t,e){return t.addEventListener?r(t,e):o(t,e)}},{}],85:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t){var e=0;for(var n in t)t.hasOwnProperty(n)&&e++;return e}},{}],86:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}function o(t,e){1===arguments.length&&(e=t,t="error");var n={code:t,message:e};throw(0,a["default"])(e),n}n.__esModule=!0,n["default"]=o;var i=t("debug"),a=r(i)},{debug:57}],87:[function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{"default":t}}t("./polyfill.js");var o=t("./ddManager.js"),i=r(o),a=t("./availableIntegrations.js"),c=r(a);i["default"].setAvailableIntegrations(c["default"]),i["default"].processEarlyStubCalls(),window.ddManager=i["default"]},{"./availableIntegrations.js":70,"./ddManager.js":71,"./polyfill.js":100}],88:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":"undefined"==typeof t?"undefined":r(t)}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function s(t){for(var e=[],n=0,r=t.length;r>n;n++){var o=t[n];if(o.product){var i=o.product.id||o.product.skuCode;if(i){var a={id:i,price:o.product.unitSalePrice||o.product.unitPrice||0,quantity:o.quantity||1};e.push(a)}}}return e}n.__esModule=!0;var f=t("./../Integration.js"),d=o(f),l=t("./../functions/deleteProperty.js"),p=o(l),h=function(t){function e(n,r){a(this,e);var o=Object.assign({account:"",deduplication:void 0,noConflict:!1},r),i=c(this,t.call(this,n,o));return i.addTag({type:"script",attr:{src:"//static.criteo.net/js/ld/ld.js"}}),i}return u(e,t),e.prototype.initialize=function(){if(window.criteo_q=window.criteo_q||[],this.getOption("account")&&!this.getOption("noConflict")){var t=this.digitalData.user.email,e=["desktop","tablet","mobile"].indexOf(this.digitalData.page.siteType)>=0?this.digitalData.page.siteType.toLocaleLowerCase():"desktop";window.criteo_q.push({event:"setAccount",account:this.getOption("account")},{event:"setSiteType",type:e.charAt(0)}),t?window.criteo_q.push({event:"setEmail",email:t}):window.ddListener.push(["on","change:user.email",function(t){window.criteo_q.push({event:"setEmail",email:t})}]),this.load(this.ready)}else this.ready()},e.prototype.isLoaded=function(){return!!window.criteo_q&&"object"===i(window.criteo_q)},e.prototype.reset=function(){(0,p["default"])(window,"criteo_q")},e.prototype.trackEvent=function(t){var e={"Viewed Page":"onViewedPage","Viewed Product Detail":"onViewedProductDetail","Completed Transaction":"onCompletedTransaction",Subscribed:"onSubscribed"};if(this.getOption("noConflict")!==!0||"Subscribed"===t.name){var n=e[t.name];n&&this[n](t)}},e.prototype.onViewedPage=function(t){var e=t.page;e&&("home"===e.type?this.onViewedHome():"cart"===e.type&&this.onViewedCart());var n=this.digitalData.listing;n&&n.items&&n.items.length&&this.onViewedProductListing()},e.prototype.onViewedHome=function(){window.criteo_q.push({event:"viewHome"})},e.prototype.onViewedProductListing=function(){var t=this.digitalData.listing.items,e=[],n=3;t.length<3&&(n=t.length);for(var r=0;n>r;r++){var o=t[r].id||t[r].skuCode;o&&e.push(o)}e.length>0&&window.criteo_q.push({event:"viewList",item:e})},e.prototype.onViewedProductDetail=function(t){var e=t.product,n=void 0;e&&(n=e.id||e.skuCode),n&&window.criteo_q.push({event:"viewItem",item:n})},e.prototype.onViewedCart=function(){var t=this.digitalData.cart;if(t&&t.lineItems&&t.lineItems.length>0){var e=s(t.lineItems);e.length>0&&window.criteo_q.push({event:"viewBasket",item:e})}},e.prototype.onCompletedTransaction=function(t){var e=t.transaction;if(e&&e.lineItems&&e.lineItems.length>0){var n=s(e.lineItems);if(n.length>0){var r=0;if(void 0!==this.getOption("deduplication"))r=this.getOption("deduplication")?1:0;else{var o=this.digitalData.context;o.campaign&&o.campaign.source&&"criteo"===o.campaign.source.toLocaleLowerCase()&&(r=1)}window.criteo_q.push({event:"trackTransaction",id:e.orderId,new_customer:e.isFirst?1:0,deduplication:r,item:n})}}},e.prototype.onSubscribed=function(t){var e=t.user;e&&e.email&&window.criteo_q.push({event:"setEmail",email:e.email})},e}(d["default"]);n["default"]=h},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],89:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=t("./../functions/noop.js"),p=o(l),h=function(t){function e(n,r){i(this,e);var o=Object.assign({autoInit:!0,websiteToken:""},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{id:"driveback-sdk",src:"//cdn.driveback.ru/js/loader.js"}}),c}return c(e,t),e.prototype.initialize=function(){var t=this;this.getOption("websiteToken")?(window.DrivebackNamespace="Driveback",window.Driveback=window.Driveback||{},window.DrivebackOnLoad=window.DrivebackOnLoad||[],window.Driveback.initStubCalled=!1,window.Driveback.init=function(){window.Driveback.initStubCalled=!0},window.DrivebackLoaderAsyncInit=function(){window.Driveback.Loader.init(t.getOption("websiteToken"))},this.getOption("autoInit")===!1&&(window.DrivebackAsyncInit=p["default"]),this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.Driveback||!window.Driveback.Loader)},e.prototype.reset=function(){(0,d["default"])(window,"Driveback"),(0,d["default"])(window,"DriveBack"),(0,d["default"])(window,"DrivebackNamespace"),(0,d["default"])(window,"DrivebackOnLoad"),(0,d["default"])(window,"DrivebackLoaderAsyncInit"),(0,d["default"])(window,"DrivebackAsyncInit")},e}(s["default"]);n["default"]=h},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/noop.js":83}],90:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=t("component-type"),p=o(l),h=function(t){function e(n,r){i(this,e);var o=Object.assign({pixelId:""},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{src:"//connect.facebook.net/en_US/fbevents.js"}}),c}return c(e,t),e.prototype.initialize=function(){this.getOption("pixelId")&&!window.fbq?(window.fbq=window._fbq=function(){window.fbq.callMethod?window.fbq.callMethod.apply(window.fbq,arguments):window.fbq.queue.push(arguments)},window.fbq.push=window.fbq,window.fbq.loaded=!0,window.fbq.version="2.0",window.fbq.queue=[],this.load(this.ready),window.fbq("init",this.getOption("pixelId"))):this.ready()},e.prototype.isLoaded=function(){return!(!window.fbq||!window.fbq.callMethod)},e.prototype.reset=function(){(0,d["default"])(window,"fbq")},e.prototype.trackEvent=function(t){"Viewed Page"===t.name?this.onViewedPage():"Viewed Product Category"===t.name?this.onViewedProductCategory(t.page):"Viewed Product Detail"===t.name?this.onViewedProductDetail(t.product):"Added Product"===t.name?this.onAddedProduct(t.product,t.quantity):"Completed Transaction"===t.name?this.onCompletedTransaction(t.transaction):["Viewed Product","Clicked Product","Viewed Campaign","Clicked Campaign","Removed Product","Viewed Checkout Step","Completed Checkout Step","Refunded Transaction"].indexOf(t.name)<0&&this.onCustomEvent(t)},e.prototype.onViewedPage=function(){window.fbq("track","PageView")},e.prototype.onViewedProductCategory=function(t){window.fbq("track","ViewContent",{content_ids:[t.categoryId||""],content_type:"product_group"})},e.prototype.onViewedProductDetail=function(t){window.fbq("track","ViewContent",{content_ids:[t.id||t.skuCode||""],content_type:"product",content_name:t.name||"",content_category:t.category||"",currency:t.currency||"",value:t.unitSalePrice||t.unitPrice||0})},e.prototype.onAddedProduct=function(t,e){t&&"object"===(0,p["default"])(t)&&(e=e||1,window.fbq("track","AddToCart",{content_ids:[t.id||t.skuCode||""],content_type:"product",content_name:t.name||"",content_category:t.category||"",currency:t.currency||"",value:e*(t.unitSalePrice||t.unitPrice||0)}))},e.prototype.onCompletedTransaction=function(t){if(t.lineItems&&t.lineItems.length){for(var e=[],n=0,r=0,o=null,i=null,a=t.lineItems,c=Array.isArray(a),u=0,a=c?a:a[Symbol.iterator]();;){var s;if(c){if(u>=a.length)break;s=a[u++]}else{if(u=a.next(),u.done)break;s=u.value}var f=s;if(f.product){var d=f.product;d.id&&e.push(d.id),r+=(f.quantity||1)*(d.unitSalePrice||d.unitPrice||0),i=i||d.currency}n+=f.subtotal,o=o||f.currency}window.fbq("track","Purchase",{content_ids:e,content_type:"product",currency:t.currency||o||i||"",value:t.total||n||r||0})}},e.prototype.onCustomEvent=function(t){window.fbq("trackCustom",t.name)},e}(s["default"]);n["default"]=h},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"component-type":6}],91:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){var e=void 0;return e=Array.isArray(t.vouchers)?t.vouchers[0]:t.voucher,e||(e=Array.isArray(t.promotions)?t.promotions[0]:t.promotion),e}function s(t){for(var e=["paymentMethod","shippingMethod"],n=[],r=e,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var c=a;t[c]&&n.push(t[c])}return n.join(", ")}n.__esModule=!0;var f=t("./../Integration.js"),d=o(f),l=t("./../functions/deleteProperty.js"),p=o(l),h=t("./../functions/getProperty.js"),y=o(h),g=t("./../functions/each.js"),m=o(g),w=t("./../functions/size.js"),v=o(w),b=t("component-type"),_=o(b),E=t("component-clone"),j=o(E),k=function(t){function e(n,r){i(this,e);var o=Object.assign({trackingId:"",trackOnlyCustomEvents:!1,doubleClick:!1,enhancedLinkAttribution:!1,enhancedEcommerce:!1,sendUserId:!1,anonymizeIp:!1,domain:"auto",includeSearch:!1,siteSpeedSampleRate:1,defaultCurrency:"USD",metrics:{},dimensions:{},contentGroupings:{},namespace:"ddl",noConflict:!1,filterEvents:[]},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{src:"//www.google-analytics.com/analytics.js"}}),c}return c(e,t),e.prototype.initialize=function(){this.getOption("trackingId")?(this.pageCalled=!1,window.GoogleAnalyticsObject="ga",window.ga=window.ga||function(){window.ga.q=window.ga.q||[],window.ga.q.push(arguments)},window.ga.l=(new Date).getTime(),"localhost"===window.location.hostname&&this.setOption("domain","none"),this.initializeTracker(),this.getOption("noConflict")?this.ready():this.load(this.ready)):this.ready()},e.prototype.initializeTracker=function(){window.ga("create",this.getOption("trackingId"),{cookieDomain:this.getOption("domain"),siteSpeedSampleRate:this.getOption("siteSpeedSampleRate"),allowLinker:!0,name:this.getOption("namespace")?this.getOption("namespace"):void 0}),this.getOption("doubleClick")&&this.ga("require","displayfeatures"),this.getOption("enhancedLinkAttribution")&&this.ga("require","linkid","linkid.js");var t=this.get("user.id");this.getOption("sendUserId")&&t&&this.ga("set","userId",t),this.getOption("anonymizeIp")&&this.ga("set","anonymizeIp",!0);var e=this.getCustomDimensions();(0,v["default"])(e)&&this.ga("set",e)},e.prototype.ga=function(){this.getOption("namespace")?(arguments[0]&&(arguments[0]=this.getOption("namespace")+"."+arguments[0]),window.ga.apply(window,arguments)):window.ga.apply(window,arguments)},e.prototype.isLoaded=function(){return!!window.gaplugins},e.prototype.reset=function(){(0,p["default"])(window,"GoogleAnalyticsObject"),(0,p["default"])(window,"ga"),(0,p["default"])(window,"gaplugins"),this.pageCalled=!1},e.prototype.getCustomDimensions=function(t){t=t||this.digitalData;var e=Object.assign(Object.assign(this.getOption("metrics"),this.getOption("dimensions")),this.getOption("contentGroupings")),n={};return(0,m["default"])(e,function(e,r){var o=(0,y["default"])(t,r);void 0!==o&&("boolean"===(0,_["default"])(o)&&(o=o.toString()),n[e]=o)}),n},e.prototype.loadEnhancedEcommerce=function(t){this.enhancedEcommerceLoaded||(this.ga("require","ec"),this.enhancedEcommerceLoaded=!0),this.ga("set","&cu",t||this.getOption("defaultCurrency"))},e.prototype.pushEnhancedEcommerce=function(t){for(var e=[],n=["send","event",t.category||"Ecommerce",t.name||"not defined",t.label,{nonInteraction:1}],r=n,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var a;if(o){if(i>=r.length)break;a=r[i++]}else{if(i=r.next(),i.done)break;a=i.value}var c=a;void 0!==c&&e.push(c)}this.ga.apply(this,e)},e.prototype.trackEvent=function(t){var e=this.getOption("filterEvents")||[];e.indexOf(t.name)>=0||("Viewed Page"===t.name?this.getOption("noConflict")||this.onViewedPage(t):this.getOption("enhancedEcommerce")?"Viewed Product"===t.name?this.onViewedProduct(t):"Clicked Product"===t.name?this.onClickedProduct(t):"Viewed Product Detail"===t.name?this.onViewedProductDetail(t):"Added Product"===t.name?this.onAddedProduct(t):"Removed Product"===t.name?this.onRemovedProduct(t):"Completed Transaction"===t.name?this.onCompletedTransactionEnhanced(t):"Refunded Transaction"===t.name?this.onRefundedTransaction(t):"Viewed Product Category"===t.name?this.onViewedProductCategory(t):"Viewed Campaign"===t.name?this.onViewedCampaign(t):"Clicked Campaign"===t.name?this.onClickedCampaign(t):"Viewed Checkout Step"===t.name?this.onViewedCheckoutStep(t):"Completed Checkout Step"===t.name?this.onCompletedCheckoutStep(t):this.onCustomEvent(t):"Completed Transaction"!==t.name||this.getOption("noConflict")?this.onCustomEvent(t):this.onCompletedTransaction(t))},e.prototype.onViewedPage=function(t){var e=t.page,n=this.get("context.campaign")||{},r={},o=e.url,i=e.path;this.getOption("includeSearch")&&e.queryString&&(i+=e.queryString);
4
+ var a=e.name||e.title;r.page=i,r.title=a,r.location=o,n.name&&(r.campaignName=n.name),n.source&&(r.campaignSource=n.source),n.medium&&(r.campaignMedium=n.medium),n.content&&(r.campaignContent=n.content),n.term&&(r.campaignKeyword=n.term),this.ga("set",{page:i,title:a}),this.pageCalled&&(0,p["default"])(r,"location"),this.ga("send","pageview",r),this.pageCalled=!0},e.prototype.onViewedProduct=function(t){var e=t.product;Array.isArray(e)||(e=[e]);for(var n=e,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;(a.id||a.skuCode||a.name)&&(this.loadEnhancedEcommerce(a.currency),this.ga("ec:addImpression",{id:a.id||a.skuCode,name:a.name,list:a.listName,category:a.category,brand:a.brand||a.manufacturer,price:a.unitSalePrice||a.unitPrice,currency:a.currency||this.getOption("defaultCurrency"),variant:a.variant,position:a.position}))}this.pushEnhancedEcommerce(t)},e.prototype.onClickedProduct=function(t){var e=t.product;this.loadEnhancedEcommerce(e.currency),this.enhancedEcommerceProductAction(t,"click",{list:e.listName}),this.pushEnhancedEcommerce(t)},e.prototype.onViewedProductDetail=function(t){var e=t.product;this.loadEnhancedEcommerce(e.currency),this.enhancedEcommerceProductAction(t,"detail"),this.pushEnhancedEcommerce(t)},e.prototype.onAddedProduct=function(t){var e=t.product;this.loadEnhancedEcommerce(e.currency),this.enhancedEcommerceProductAction(t,"add"),this.pushEnhancedEcommerce(t)},e.prototype.onRemovedProduct=function(t){var e=t.product;this.loadEnhancedEcommerce(e.currency),this.enhancedEcommerceProductAction(t,"remove"),this.pushEnhancedEcommerce(t)},e.prototype.onCompletedTransaction=function(t){var e=this,n=t.transaction;n&&n.orderId&&(this.ecommerce||(this.ga("require","ecommerce"),this.ecommerce=!0),this.ga("ecommerce:addTransaction",{id:n.orderId,affiliation:n.affiliation,shipping:n.shippingCost,tax:n.tax,revenue:n.total||n.subtotal||0,currency:n.currency}),(0,m["default"])(n.lineItems,function(t,r){var o=r.product;o&&e.ga("ecommerce:addItem",{id:n.orderId,category:o.category,quantity:r.quantity,price:o.unitSalePrice||o.unitPrice,name:o.name,sku:o.skuCode,currency:o.currency||n.currency})}),this.ga("ecommerce:send"))},e.prototype.onCompletedTransactionEnhanced=function(t){var e=this,n=t.transaction;if(n&&n.orderId){this.loadEnhancedEcommerce(n.currency),(0,m["default"])(n.lineItems,function(t,r){var o=r.product;o&&(o.currency=o.currency||n.currency||e.getOption("defaultCurrency"),e.enhancedEcommerceTrackProduct(r.product,r.quantity))});var r=u(n);this.ga("ec:setAction","purchase",{id:n.orderId,affiliation:n.affiliation,revenue:n.total||n.subtotal||0,tax:n.tax,shipping:n.shippingCost,coupon:r}),this.pushEnhancedEcommerce(t)}},e.prototype.onRefundedTransaction=function(t){var e=this,n=t.transaction;n&&n.orderId&&(this.loadEnhancedEcommerce(n.currency),(0,m["default"])(n.lineItems,function(t,r){var o=r.product;o&&(o.currency=o.currency||n.currency||e.getOption("defaultCurrency"),e.enhancedEcommerceTrackProduct(r.product,r.quantity))}),this.ga("ec:setAction","refund",{id:n.orderId}),this.pushEnhancedEcommerce(t))},e.prototype.onViewedCampaign=function(t){var e=t.campaign;Array.isArray(e)||(e=[e]),this.loadEnhancedEcommerce();for(var n=e,r=Array.isArray(n),o=0,n=r?n:n[Symbol.iterator]();;){var i;if(r){if(o>=n.length)break;i=n[o++]}else{if(o=n.next(),o.done)break;i=o.value}var a=i;a&&a.id&&this.ga("ec:addPromo",{id:a.id,name:a.name,creative:a.design||a.creative,position:a.position})}this.pushEnhancedEcommerce(t)},e.prototype.onClickedCampaign=function(t){var e=t.campaign;e&&e.id&&(this.loadEnhancedEcommerce(),this.ga("ec:addPromo",{id:e.id,name:e.name,creative:e.design||e.creative,position:e.position}),this.ga("ec:setAction","promo_click",{}),this.pushEnhancedEcommerce(t))},e.prototype.onViewedCheckoutStep=function(t){var e=this,n=this.get("cart")||this.get("transaction");this.loadEnhancedEcommerce(n.currency),(0,m["default"])(n.lineItems,function(t,r){var o=r.product;o&&(o.currency=o.currency||n.currency||e.getOption("defaultCurrency"),e.enhancedEcommerceTrackProduct(r.product,r.quantity))}),this.ga("ec:setAction","checkout",{step:t.step||1,option:s(t)||void 0}),this.pushEnhancedEcommerce(t)},e.prototype.onCompletedCheckoutStep=function(t){var e=this.get("cart")||this.get("transaction"),n=s(t);t.step&&n&&(this.loadEnhancedEcommerce(e.currency),this.ga("ec:setAction","checkout_option",{step:t.step,option:n}),this.pushEnhancedEcommerce(t))},e.prototype.onCustomEvent=function(t){var e=this.get("context.campaign")||{},n=(0,j["default"])(t);(0,p["default"])(n,"name"),(0,p["default"])(n,"category");var r=this.getCustomDimensions(n);(0,v["default"])(r)&&this.ga("set",r);var o={eventAction:t.name||"event",eventCategory:t.category||"All",eventLabel:t.label,eventValue:Math.round(t.value)||0,nonInteraction:!!t.nonInteraction};e.name&&(o.campaignName=e.name),e.source&&(o.campaignSource=e.source),e.medium&&(o.campaignMedium=e.medium),e.content&&(o.campaignContent=e.content),e.term&&(o.campaignKeyword=e.term),this.ga("send","event",o)},e.prototype.enhancedEcommerceTrackProduct=function(t,e){var n={id:t.id||t.skuCode,name:t.name,category:t.category,quantity:e,price:t.unitSalePrice||t.unitPrice,brand:t.brand||t.manufacturer,variant:t.variant,currency:t.currency};t.voucher&&(n.coupon=t.voucher),this.ga("ec:addProduct",n)},e.prototype.enhancedEcommerceProductAction=function(t,e,n){this.enhancedEcommerceTrackProduct(t.product,t.quantity),this.ga("ec:setAction",e,n||{})},e}(d["default"]);n["default"]=k},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/each.js":74,"./../functions/getProperty.js":76,"./../functions/size.js":85,"component-clone":4,"component-type":6}],92:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=function(t){function e(n,r){i(this,e);var o=Object.assign({containerId:null,noConflict:!1},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{src:"//www.googletagmanager.com/gtm.js?id="+r.containerId+"&l=dataLayer"}}),c}return c(e,t),e.prototype.initialize=function(){this.getOption("containerId")&&this.getOption("noConflict")===!1?(window.dataLayer=window.dataLayer||[],window.dataLayer.push({"gtm.start":Number(new Date),event:"gtm.js"}),this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.dataLayer||Array.prototype.push===window.dataLayer.push)},e.prototype.reset=function(){(0,d["default"])(window,"dataLayer"),(0,d["default"])(window,"google_tag_manager")},e.prototype.trackEvent=function(t){var e=t.name,n=t.category;(0,d["default"])(t,"name"),(0,d["default"])(t,"category"),t.event=e,t.eventCategory=n,window.dataLayer.push(t)},e}(s["default"]);n["default"]=l},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],93:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){var e=t.filter(function(t){return!!t.product.id}).map(function(t){return t.product.id});return e}n.__esModule=!0;var s=t("./../Integration.js"),f=o(s),d=t("./../functions/deleteProperty.js"),l=o(d),p=function(t){function e(n,r){i(this,e);var o=Object.assign({counterId:"",list:"1",listProperty:void 0,listPropertyMapping:void 0,noConflict:!1},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{id:"topmailru-code",src:"//top-fwz1.mail.ru/js/code.js"}}),c}return c(e,t),e.prototype.initialize=function(){window._tmr=window._tmr||[],this.getOption("noConflict")?this.ready():this.load(this.ready)},e.prototype.isLoaded=function(){return!(!window._tmr||!window._tmr.unload)},e.prototype.reset=function(){(0,l["default"])(window,"_tmr")},e.prototype.getList=function(){var t=this.getOption("list"),e=this.getOption("listProperty");if(e){var n=this.get(e);if(n){var r=this.getOption("listPropertyMapping");r&&r[n]?t=r[n]:parseInt(n,10)&&(t=n)}}return t},e.prototype.trackEvent=function(t){var e={"Viewed Page":"onViewedPage","Viewed Product Category":"onViewedProductCategory","Viewed Product Detail":"onViewedProductDetail","Completed Transaction":"onCompletedTransaction"},n=e[t.name];this.getOption("counterId")&&(n&&!this.getOption("noConflict")?this[n](t):n||this.trackCustomEvent(t))},e.prototype.onViewedPage=function(t){window._tmr.push({id:this.getOption("counterId"),type:"pageView",start:Date.now()});var e=t.page;e&&("home"===e.type?this.onViewedHome():"cart"===e.type?this.onViewedCart():["product","category","checkout","confirmation"].indexOf(e.type)<0&&this.onViewedOtherPage())},e.prototype.onViewedHome=function(){window._tmr.push({type:"itemView",productid:"",pagetype:"home",totalvalue:"",list:this.getList()})},e.prototype.onViewedProductCategory=function(){window._tmr.push({type:"itemView",productid:"",pagetype:"category",totalvalue:"",list:this.getList()})},e.prototype.onViewedProductDetail=function(t){var e=t.product;window._tmr.push({type:"itemView",productid:e.id||e.skuCode||"",pagetype:"product",totalvalue:e.unitSalePrice||e.unitPrice||"",list:this.getList()})},e.prototype.onViewedCart=function(){var t=this.digitalData.cart,e=void 0;(t.lineItems||t.lineItems.length>0)&&(e=u(t.lineItems)),window._tmr.push({type:"itemView",productid:e||"",pagetype:"cart",totalvalue:t.total||t.subtotal||"",list:this.getList()})},e.prototype.onViewedOtherPage=function(){window._tmr.push({type:"itemView",productid:"",pagetype:"other",totalvalue:"",list:this.getList()})},e.prototype.onCompletedTransaction=function(t){var e=t.transaction,n=void 0;(e.lineItems||e.lineItems.length>0)&&(n=u(e.lineItems)),window._tmr.push({type:"itemView",productid:n||"",pagetype:"purchase",totalvalue:e.total||e.subtotal||"",list:this.getList()})},e.prototype.trackCustomEvent=function(t){window._tmr.push({id:this.getOption("counterId"),type:"reachGoal",goal:t.name})},e}(f["default"]);n["default"]=p},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],94:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=function(t){function e(n,r){i(this,e);var o=Object.assign({namespace:"ddl",sessionIdDimension:""},r);return a(this,t.call(this,n,o))}return c(e,t),e.prototype.initialize=function(){this.ga("require","OWOXBIStreaming",{sessionIdDimension:this.getOption("sessionIdDimension")}),function(){function t(t,e){var n=t.get("sendHitTask"),r=function(){function n(t,e){var n="XDomainRequest"in window?"XDomainRequest":"XMLHttpRequest",r=new window[n];r.open("POST",t,!0),r.onprogress=function(){},r.ontimeout=function(){},r.onerror=function(){},r.onload=function(){},r.setRequestHeader&&r.setRequestHeader("Content-Type","text/plain"),"XDomainRequest"==n?setTimeout(function(){r.send(e)},0):r.send(e)}function r(t,e){var n=new Image;n.onload=function(){},n.src=t+"?"+e}var o=e&&e.domain?e.domain:"google-analytics.bi.owox.com";return{send:function(e){var i,a=location.protocol+"//"+o+"/collect";try{navigator.sendBeacon&&navigator.sendBeacon(i=a+"?tid="+t.get("trackingId"),e)||(2036<e.length?n(i?i:a+"?tid="+t.get("trackingId"),e):r(a,e))}catch(c){}}}}();t.set("sendHitTask",function(t){if(e&&0<e.sessionIdDimension)try{t.set("dimension"+e.sessionIdDimension,t.get("clientId")+"_"+Date.now()),t.get("buildHitTask")(t)}catch(o){}n(t),r.send(t.get("hitPayload"))})}var e=window[window.GoogleAnalyticsObject||"ga"];"function"==typeof e&&e("provide","OWOXBIStreaming",t)}(),this._loaded=!0,this.ready()},e.prototype.isLoaded=function(){return!!this._loaded},e.prototype.reset=function(){},e.prototype.ga=function(){this.getOption("namespace")?(arguments[0]&&(arguments[0]=this.getOption("namespace")+"."+arguments[0]),window.ga.apply(window,arguments)):window.ga.apply(window,arguments)},e}(s["default"]);n["default"]=f},{"./../Integration.js":69}],95:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=t("./../../src/functions/getProperty.js"),p=o(l),h=t("./../functions/throwError.js"),y=o(h),g=t("component-type"),m=o(g),w=t("./../functions/format.js"),v=o(w),b=t("./../functions/getQueryParam.js"),_=o(b),E=function(t){function e(n,r){i(this,e);var o=Object.assign({partnerId:"",userIdProperty:"user.userId",trackProducts:!0,noConflict:!1,trackAllEmails:!1,listMethods:{}},r),c=a(this,t.call(this,n,o));return c.getOption("trackProducts")===!1&&c.setOption("noConflict",!0),c.addTag({type:"script",attr:{id:"rrApi-jssdk",src:"//cdn.retailrocket.ru/content/javascript/tracking.js"}}),c}return c(e,t),e.prototype.initialize=function(){if(this.getOption("partnerId")){window.rrPartnerId=this.getOption("partnerId");var t=(0,p["default"])(this.digitalData,this.getOption("userIdProperty"));t&&(window.rrPartnerUserId=t),window.rrApi={},window.rrApiOnReady=window.rrApiOnReady||[],window.rrApi.pageView=window.rrApi.addToBasket=window.rrApi.order=window.rrApi.categoryView=window.rrApi.setEmail=window.rrApi.view=window.rrApi.recomMouseDown=window.rrApi.recomAddToCart=window.rrApi.search=function(){},this.trackEmail(),this.load(this.ready)}else this.ready()},e.prototype.isLoaded=function(){return!(!window.rrApi||"function"!=typeof window.rrApi._initialize)},e.prototype.reset=function(){(0,d["default"])(window,"rrPartnerId"),(0,d["default"])(window,"rrApi"),(0,d["default"])(window,"rrApiOnReady"),(0,d["default"])(window,"rcApi"),(0,d["default"])(window,"retailrocket"),(0,d["default"])(window,"retailrocket_products"),(0,d["default"])(window,"rrLibrary");var t=document.getElementById("rrApi-jssdk");t&&t.parentNode&&t.parentNode.removeChild(t)},e.prototype.trackEvent=function(t){this.getOption("noConflict")!==!0?"Viewed Product Category"===t.name?this.onViewedProductCategory(t.page):"Added Product"===t.name?this.onAddedProduct(t.product):"Viewed Product Detail"===t.name?this.onViewedProductDetail(t.product):"Clicked Product"===t.name?this.onClickedProduct(t.product):"Completed Transaction"===t.name?this.onCompletedTransaction(t.transaction):"Subscribed"===t.name?this.onSubscribed(t.user):"Searched"===t.name&&this.onSearched(t.query):"Subscribed"===t.name&&this.onSubscribed(t.user)},e.prototype.trackEmail=function(){var t=this;if(this.get("user.email"))(this.getOption("trackAllEmails")===!0||this.get("user.isSubscribed")===!0)&&this.onSubscribed(this.get("user"));else{var e=(0,_["default"])("rr_setemail",this.getQueryString());e?this.digitalData.user.email=e:window.ddListener.push(["on","change:user.email",function(){(t.getOption("trackAllEmails")===!0||t.get("user.isSubscribed")===!0)&&t.onSubscribed(t.get("user"))}])}},e.prototype.onViewedProductCategory=function(t){var e=this;t=t||{};var n=t.categoryId;return n?void window.rrApiOnReady.push(function(){try{window.rrApi.categoryView(n)}catch(t){e.onError(t)}}):void this.onValidationError("page.categoryId")},e.prototype.onViewedProductDetail=function(t){var e=this,n=this.getProductId(t);return n?void window.rrApiOnReady.push(function(){try{window.rrApi.view(n)}catch(t){e.onError(t)}}):void this.onValidationError("product.id")},e.prototype.onAddedProduct=function(t){var e=this,n=this.getProductId(t);return n?void window.rrApiOnReady.push(function(){try{window.rrApi.addToBasket(n)}catch(t){e.onError(t)}}):void this.onValidationError("product.id")},e.prototype.onClickedProduct=function(t){var e=this,n=this.getProductId(t);if(!n)return void this.onValidationError("product.id");var r=t.listName;if(r){var o=this.getOption("listMethods")[r];o&&window.rrApiOnReady.push(function(){try{window.rrApi.recomMouseDown(n,o)}catch(t){e.onError(t)}})}},e.prototype.onCompletedTransaction=function(t){var e=this;if(t=t||{},this.validateTransaction(t)){for(var n=[],r=t.lineItems,o=0,i=r.length;i>o;o++)if(this.validateTransactionLineItem(r[o],o)){var a=r[o].product;n.push({id:a.id,qnt:r[o].quantity,price:a.unitSalePrice||a.unitPrice})}window.rrApiOnReady.push(function(){try{window.rrApi.order({transaction:t.orderId,items:n})}catch(r){e.onError(r)}})}},e.prototype.onSubscribed=function(t){var e=this;return t=t||{},t.email?void window.rrApiOnReady.push(function(){try{window.rrApi.setEmail(t.email)}catch(n){e.onError(n)}}):void this.onValidationError("user.email")},e.prototype.onSearched=function(t){var e=this;return t?void window.rrApiOnReady.push(function(){try{window.rrApi.search(t)}catch(n){e.onError(n)}}):void this.onValidationError("query")},e.prototype.validateTransaction=function(t){var e=!0;t.orderId||(this.onValidationError("transaction.orderId"),e=!1);var n=t.lineItems;return n&&Array.isArray(n)&&0!==n.length||(this.onValidationError("transaction.lineItems"),e=!1),e},e.prototype.validateLineItem=function(t,e){var n=!0;return t.product||(this.onValidationError((0,v["default"])("lineItems[%d].product",e)),n=!1),n},e.prototype.validateTransactionLineItem=function(t,e){var n=this.validateLineItem(t,e),r=t.product;return r.id||(this.onValidationError((0,v["default"])("lineItems[%d].product.id",e)),n=!1),r.unitSalePrice||r.unitPrice||(this.onValidationError((0,v["default"])("lineItems[%d].product.unitSalePrice",e)),n=!1),t.quantity||(this.onValidationError((0,v["default"])("lineItems[%d].quantity",e)),n=!1),n},e.prototype.getProductId=function(t){t=t||{};var e=void 0;return e="object"===(0,m["default"])(t)?t.id:t},e.prototype.onError=function(t){(0,y["default"])("external_error",(0,v["default"])('Retail Rocket integration error: "%s"',t))},e.prototype.onValidationError=function(t){(0,y["default"])("validation_error",(0,v["default"])('Retail Rocket integration error: DDL or event variable "%s" is not defined or empty',t))},e.prototype.getQueryString=function(){return window.location.search},e}(s["default"]);n["default"]=E},{"./../../src/functions/getProperty.js":76,"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/format.js":75,"./../functions/getQueryParam.js":77,"./../functions/throwError.js":86,"component-type":6}],96:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=t("./../functions/each.js"),p=o(l),h=function(t){function e(n,r){i(this,e);var o=Object.assign({sessionLength:1800,storagePrefix:"ss:"},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{id:"segmentstream-sdk",src:"//cdn.driveback.ru/js/segmentstream.js"}}),c}return c(e,t),e.prototype.initialize=function(){var t=this,e=window.ssApi=window.ssApi||[];if(!e.initialize){if(e.invoked)throw new Error("SegmentStream snippet included twice.");e.invoked=!0,e.methods=["initialize","track","getData","getAnonymousId","pushOnReady"],e.factory=function(t){return function(){var n=Array.prototype.slice.call(arguments);return n.unshift(t),e.push(n),e}};for(var n=0;n<e.methods.length;n++){var r=e.methods[n];e[r]=e.factory(r)}e.initialize(this._options),e.pushOnReady(function(){t.ready()}),this.load()}},e.prototype.isLoaded=function(){return!(!window.ssApi||!window.ssApi.initialize)},e.prototype.reset=function(){(0,d["default"])(window,"ssApi"),localStorage.clear()},e.prototype.enrichDigitalData=function(t){function e(t){return t.charAt(0).toLowerCase()+t.slice(1)}var n=this,r=window.ssApi.getData().attributes;this.digitalData.user.ssAttributes={},this.digitalData.user.anonymousId=window.ssApi.getAnonymousId(),(0,p["default"])(r,function(t,r){var o=e(t);n.digitalData.user.ssAttributes[o]=r}),t()},e.prototype.trackEvent=function(t){var e={"Viewed Page":"onViewedPage","Viewed Product Detail":"onViewedProductDetail","Added Product":"onAddedProduct"},n=e[t.name];n&&this[n](t)},e.prototype.onViewedPage=function(){window.ssApi.track("Viewed Page"),this.enrichDigitalData()},e.prototype.onViewedProductDetail=function(t){window.ssApi.track("Viewed Product Detail",{price:t.product.unitSalePrice||t.product.unitPrice||0}),this.enrichDigitalData()},e.prototype.onAddedProduct=function(t){window.ssApi.track("Added Product",{price:t.product.unitSalePrice||t.product.unitPrice||0}),this.enrichDigitalData()},e}(s["default"]);n["default"]=h},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/each.js":74}],97:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=t("./../functions/deleteProperty.js"),d=o(f),l=t("./../functions/each.js"),p=o(l),h=t("component-type"),y=o(h),g=function(t){function e(n,r){i(this,e);var o=Object.assign({https:!1,pushScriptUrl:"",pushSubscriptionTriggerEvent:"Agreed to Receive Push Notifications"},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{charset:"UTF-8",src:c.getOption("pushScriptUrl")}}),c}return c(e,t),e.prototype.initialize=function(){var t=this;this.load(function(){var e=window.oSpP.storeSubscription;window.oSpP.storeSubscription=function(n){e(n),"DENY"!==n&&(t.digitalData.user.pushNotifications.isSubscribed=!0,t.sendUserAttributes(t.digitalData.user))},t.ready()})},e.prototype.enrichDigitalData=function(t){var e=this,n=this.digitalData.user.pushNotifications={};try{n.isSupported=this.checkPushNotificationsSupport(),this.getPushSubscriptionInfo(function(r){if(void 0===r){if(n.isSubscribed=!1,window.oSpP.isSafariNotificationSupported()){var o=window.safari.pushNotification.permission("web.com.sendpulse.push");"denied"===o.permission&&(n.isDenied=!0)}}else"DENY"===r.value?(n.isSubscribed=!1,n.isDenied=!0):(n.isSubscribed=!0,n.subscriptionId=r.value);e.onSubscriptionStatusReceived(),t()})}catch(r){n.isSupported=!1,t()}},e.prototype.onSubscriptionStatusReceived=function(){var t=this;this.digitalData.user.pushNotifications.isSubscribed&&this.sendUserAttributes(this.digitalData.user),window.ddListener.push(["on","change:user",function(e,n){e.pushNotifications.isSubscribed&&void 0!==n&&t.sendUserAttributes(e,n)}])},e.prototype.checkPushNotificationsSupport=function(){var t=window.oSpP;if(!t.detectSite())return!1;if("iOS"===t.detectOs())return!1;var e=t.detectOs(),n=t.detectBrowser(),r=n.name.toLowerCase();return"chrome"===r&&parseFloat(n.version)<42?!1:"firefox"===r&&parseFloat(n.version)<44?!1:"firefox"===r&&"Android"===e?!1:["safari","firefox","chrome"].indexOf(r)<0?!1:"safari"===r?t.isSafariNotificationSupported():this.isHttps()?t.isServiceWorkerChromeSupported():!0},e.prototype.getPushSubscriptionInfo=function(t){var e=window.oSpP;e.getDbValue("SPIDs","SubscriptionId",function(e){t(e.target.result)})},e.prototype.sendUserAttributes=function(t,e){(0,p["default"])(t,function(t,n){"object"===(0,y["default"])(n)||e&&n===e[t]||window.oSpP.push(t,String(n))})},e.prototype.isLoaded=function(){return!!window.oSpP},e.prototype.reset=function(){(0,d["default"])(window,"oSpP")},e.prototype.isHttps=function(){return 0===window.location.href.indexOf("https://")&&this.getOption("https")===!0},e.prototype.trackEvent=function(t){if(t.name===this.getOption("pushSubscriptionTriggerEvent")&&this.checkPushNotificationsSupport())if(this.isHttps())window.oSpP.startSubscription();else{var e=window.oSpP.detectBrowser(),n=e.name.toLowerCase();"safari"===n?window.oSpP.startSubscription():("chrome"===n||"firefox"===n)&&window.oSpP.showPopUp()}},e}(s["default"]);n["default"]=g},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/each.js":74,"component-type":6}],98:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.__esModule=!0;var u=t("./../Integration.js"),s=o(u),f=function(t){function e(n,r){i(this,e);var o=Object.assign({eventPixels:{}},r),c=a(this,t.call(this,n,o));return c._isLoaded=!1,c}return c(e,t),e.prototype.initialize=function(){this._isLoaded=!0,this.ready()},e.prototype.isLoaded=function(){return this._isLoaded},e.prototype.reset=function(){},e.prototype.trackEvent=function(t){var e=this.getOption("eventPixels");if(e[t.name]){var n=e[t.name];this.addPixel(n)}},e.prototype.addPixel=function(t){(window.Image?new Image:window.document.createElement("img")).src=window.location.protocol+t},e}(s["default"]);n["default"]=f},{"./../Integration.js":69}],99:[function(t,e,n){"use strict";function r(t){return t&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t}function o(t){return t&&t.__esModule?t:{"default":t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!==("undefined"==typeof e?"undefined":r(e))&&"function"!=typeof e?t:e}function c(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+("undefined"==typeof e?"undefined":r(e)));t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}function u(t){var e=[];return t.category&&e.push(t.category),t.subcategory&&e.push(t.subcategory),e.length?e.join("/"):void 0}function s(t){return t.id||t.skuCode||void 0}function f(t,e){var n={},r=s(t),o=t.brand||t.manufacturer,i=t.unitSalePrice||t.unitPrice,a=u(t);return r&&(n.id=r),t.name&&(n.name=t.name),o&&(n.brand=o),i&&(n.price=i),a&&(n.category=a),t.variant&&(n.variant=t.variant),t.voucher&&(n.coupon=t.voucher),e&&(n.quantity=e),n}n.__esModule=!0;var d=t("./../Integration.js"),l=o(d),p=t("./../functions/deleteProperty.js"),h=o(p),y=function(t){function e(n,r){i(this,e);var o=Object.assign({counterId:"",clickmap:!1,webvisor:!1,trackLinks:!0,trackHash:!1,purchaseGoalId:void 0,goals:{},noConflict:!1},r),c=a(this,t.call(this,n,o));return c.addTag({type:"script",attr:{src:"//mc.yandex.ru/metrika/watch.js"}}),c}return c(e,t),e.prototype.initialize=function(){var t=this,e=this.getOption("counterId");window.yandex_metrika_callbacks=window.yandex_metrika_callbacks||[],this.dataLayer=window.dataLayer=window.dataLayer||[],!this.getOption("noConflict")&&e?(window.yandex_metrika_callbacks.push(function(){t.yaCounter=window["yaCounter"+e]=new window.Ya.Metrika({id:e,clickmap:t.getOption("clickmap"),webvisor:t.getOption("webvisor"),trackLinks:t.getOption("trackLinks"),trackHash:t.getOption("trackHash"),ecommerce:!0})}),this.load(this.ready)):this.ready()},e.prototype.isLoaded=function(){return!(!window.Ya||!window.Ya.Metrika)},e.prototype.reset=function(){(0,h["default"])(window,"Ya"),(0,h["default"])(window,"yandex_metrika_callbacks"),(0,h["default"])(window,"dataLayer")},e.prototype.trackEvent=function(t){var e={"Viewed Product Detail":"onViewedProductDetail","Added Product":"onAddedProduct","Removed Product":"onRemovedProduct","Completed Transaction":"onCompletedTransaction"};if(this.getOption("counterId")){var n=e[t.name];n&&!this.getOption("noConflict")&&this[n](t);
5
+ var r=this.getOption("goals"),o=r[t.name];o&&this.yaCounter.reachGoal(o)}},e.prototype.onViewedProductDetail=function(t){var e=t.product;(s(e)||e.name)&&this.dataLayer.push({ecommerce:{detail:{products:[f(e)]}}})},e.prototype.onAddedProduct=function(t){var e=t.product;if(s(e)||e.name){var n=t.quantity||1;this.dataLayer.push({ecommerce:{add:{products:[f(e,n)]}}})}},e.prototype.onRemovedProduct=function(t){var e=t.product;if(s(e)||e.name){var n=t.quantity;this.dataLayer.push({ecommerce:{remove:{products:[{id:s(e),name:e.name,category:u(e),quantity:n}]}}})}},e.prototype.onCompletedTransaction=function(t){var e=t.transaction;if(e.orderId){var n=e.lineItems.filter(function(t){var e=t.product;return s(e)||e.name}).map(function(t){var e=t.product,n=t.quantity||1;return f(e,n)}),r={actionField:{id:e.orderId,goal_id:this.getOption("purchaseGoalId")},products:n};e.vouchers&&e.vouchers.length&&(r.actionField.coupon=e.vouchers[0]),e.total?r.actionField.revenue=e.total:e.subtotal&&(r.actionField.revenue=e.subtotal),this.dataLayer.push({ecommerce:{purchase:r}})}},e}(l["default"]);n["default"]=y},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],100:[function(t,e,n){"use strict";t("core-js/modules/es6.object.create"),t("core-js/modules/es6.array.is-array"),t("core-js/modules/es6.array.index-of"),t("core-js/modules/es6.function.bind"),t("core-js/modules/es6.object.assign"),t("core-js/modules/es6.string.trim")},{"core-js/modules/es6.array.index-of":51,"core-js/modules/es6.array.is-array":52,"core-js/modules/es6.function.bind":53,"core-js/modules/es6.object.assign":54,"core-js/modules/es6.object.create":55,"core-js/modules/es6.string.trim":56}]},{},[87]);
package.xml CHANGED
@@ -1,8 +1,8 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Driveback_DigitalDataLayer</name>
4
- <version>1.0.0</version>
5
- <stability>devel</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT</license>
7
  <channel>community</channel>
8
  <extends/>
@@ -10,9 +10,9 @@
10
  <description>Digital Data Layer provides a standardised JSON structure for data relating to the user journey of your visitors, such user details, products viewed and transactions. Data contained in Digital Data Layer can be automatically pushed to any marketing tool or tag management system. This extension plugs into your Magento installation and automatically inserts Digital Data Layer and Digital Data Manager to the top of your pages, taking away 99% of the development work of implementing Digital Data Layer on your site.</description>
11
  <notes>First stable version with most of required data structures.</notes>
12
  <authors><author><name>Driveback LLC</name><user>Driveback</user><email>opensource@driveback.ru</email></author></authors>
13
- <date>2015-12-30</date>
14
- <time>08:58:26</time>
15
- <contents><target name="magecommunity"><dir name="Driveback"><dir name="DigitalDataLayer"><dir name="Helper"><file name="Data.php" hash="54e22963c88ead90b0f37d7952833181"/></dir><dir name="Model"><file name="Ddl.php" hash="90aef755b0e3f3b7d496ef592a4b15d7"/><file name="Observer.php" hash="c0e1e4e11e3abbb1909297a1ad9d93d4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8962fbdb65d1571667cb4205fe88d37c"/><file name="config.xml" hash="c24e54ed52e988a53b3488c5a601f2aa"/><file name="system.xml" hash="acbf953d0f479e743b56974efc39cef4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="driveback"><file name="ddl.xml" hash="4e9377be694d7e576f6ca726d75d0e98"/></dir></dir><dir name="template"><dir name="driveback"><file name="ddl.phtml" hash="5c98d2ae644d5b67281b1b791175dc99"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Driveback_DigitalDataLayer.xml" hash="55b311d09f0e2d5783564a57c05d69cb"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Driveback_DigitalDataLayer.csv" hash="eeb6318cfa16ba066959b5401579eb61"/></dir><dir name="ru_RU"><file name="Driveback_DigitalDataLayer.csv" hash="c25b11537f7f7472812d7a69c05eff90"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="driveback"><file name="dd-manager.min.js" hash="a666bf16a05825614a285ebde902ba6a"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Driveback_DigitalDataLayer</name>
4
+ <version>1.0.1</version>
5
+ <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/MIT">MIT</license>
7
  <channel>community</channel>
8
  <extends/>
10
  <description>Digital Data Layer provides a standardised JSON structure for data relating to the user journey of your visitors, such user details, products viewed and transactions. Data contained in Digital Data Layer can be automatically pushed to any marketing tool or tag management system. This extension plugs into your Magento installation and automatically inserts Digital Data Layer and Digital Data Manager to the top of your pages, taking away 99% of the development work of implementing Digital Data Layer on your site.</description>
11
  <notes>First stable version with most of required data structures.</notes>
12
  <authors><author><name>Driveback LLC</name><user>Driveback</user><email>opensource@driveback.ru</email></author></authors>
13
+ <date>2016-06-22</date>
14
+ <time>12:01:05</time>
15
+ <contents><target name="magecommunity"><dir name="Driveback"><dir name="DigitalDataLayer"><dir name="Helper"><file name="Data.php" hash="54e22963c88ead90b0f37d7952833181"/></dir><dir name="Model"><file name="Ddl.php" hash="90aef755b0e3f3b7d496ef592a4b15d7"/><file name="Observer.php" hash="c0e1e4e11e3abbb1909297a1ad9d93d4"/></dir><dir name="etc"><file name="adminhtml.xml" hash="8962fbdb65d1571667cb4205fe88d37c"/><file name="config.xml" hash="c24e54ed52e988a53b3488c5a601f2aa"/><file name="system.xml" hash="acbf953d0f479e743b56974efc39cef4"/></dir></dir></dir></target><target name="magedesign"><dir name="frontend"><dir name="base"><dir name="default"><dir name="layout"><dir name="driveback"><file name="ddl.xml" hash="4e9377be694d7e576f6ca726d75d0e98"/></dir></dir><dir name="template"><dir name="driveback"><file name="ddl.phtml" hash="01b7b8da029828aaca3cda05756f1f3a"/></dir></dir></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Driveback_DigitalDataLayer.xml" hash="55b311d09f0e2d5783564a57c05d69cb"/></dir></target><target name="magelocale"><dir><dir name="en_US"><file name="Driveback_DigitalDataLayer.csv" hash="eeb6318cfa16ba066959b5401579eb61"/></dir><dir name="ru_RU"><file name="Driveback_DigitalDataLayer.csv" hash="c25b11537f7f7472812d7a69c05eff90"/></dir></dir></target><target name="mageweb"><dir name="js"><dir name="driveback"><file name="dd-manager.min.js" hash="bed5a5b53a1c10901f5674a5b37589a2"/></dir></dir></target></contents>
16
  <compatible/>
17
  <dependencies><required><php><min>5.2.0</min><max>6.0.0</max></php></required></dependencies>
18
  </package>