diff --git a/.babelrc b/.babelrc
index c87fa28..82fe168 100644
--- a/.babelrc
+++ b/.babelrc
@@ -1,26 +1,7 @@
{
+ "presets": ["es2015-loose"],
"plugins": [
- ["check-es2015-constants", {"loose": true}],
- ["transform-es2015-arrow-functions", {"loose": true}],
- ["transform-es2015-block-scoped-functions", {"loose": true}],
- ["transform-es2015-block-scoping", {"loose": true}],
- ["transform-es2015-classes", {"loose": true}],
- ["transform-es2015-computed-properties", {"loose": true}],
- ["transform-es2015-destructuring", {"loose": true}],
- ["transform-es2015-for-of", {"loose": true}],
- ["transform-es2015-function-name", {"loose": true}],
- ["transform-es2015-literals", {"loose": true}],
- ["transform-es2015-modules-commonjs", {"loose": true}],
- ["transform-es2015-object-super", {"loose": true}],
- ["transform-es2015-parameters", {"loose": true}],
- ["transform-es2015-shorthand-properties", {"loose": true}],
- ["transform-es2015-spread", {"loose": true}],
- ["transform-es2015-sticky-regex", {"loose": true}],
- ["transform-es2015-template-literals", {"loose": true}],
- ["transform-es2015-typeof-symbol", {"loose": true}],
- ["transform-es2015-unicode-regex", {"loose": true}],
- ["transform-regenerator", {"loose": true}],
- ["transform-es3-member-expression-literals", {"loose": true}],
- ["transform-es3-property-literals", {"loose": true}]
+ ["transform-es3-member-expression-literals"],
+ ["transform-es3-property-literals"]
]
}
\ No newline at end of file
diff --git a/dist/dd-manager.js b/dist/dd-manager.js
index 9826753..38f63a0 100644
--- a/dist/dd-manager.js
+++ b/dist/dd-manager.js
@@ -1262,7 +1262,7 @@
}());
}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{"_process":49}],2:[function(require,module,exports){
+},{"_process":62}],2:[function(require,module,exports){
var lookup = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
;(function (exports) {
@@ -2936,7 +2936,7 @@ function blitBuffer (src, dst, offset, length) {
}
}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
-},{"base64-js":2,"ieee754":46,"is-array":47}],4:[function(require,module,exports){
+},{"base64-js":2,"ieee754":59,"is-array":60}],4:[function(require,module,exports){
/**
* Module dependencies.
*/
@@ -3207,17 +3207,17 @@ module.exports = function(it){
return it;
};
},{}],8:[function(require,module,exports){
-var isObject = require('./$.is-object');
+var isObject = require('./_is-object');
module.exports = function(it){
if(!isObject(it))throw TypeError(it + ' is not an object!');
return it;
};
-},{"./$.is-object":27}],9:[function(require,module,exports){
+},{"./_is-object":28}],9:[function(require,module,exports){
// false -> Array#indexOf
// true -> Array#includes
-var toIObject = require('./$.to-iobject')
- , toLength = require('./$.to-length')
- , toIndex = require('./$.to-index');
+var toIObject = require('./_to-iobject')
+ , toLength = require('./_to-length')
+ , toIndex = require('./_to-index');
module.exports = function(IS_INCLUDES){
return function($this, el, fromIndex){
var O = toIObject($this)
@@ -3230,83 +3230,47 @@ module.exports = function(IS_INCLUDES){
if(value != value)return true;
// Array#toIndex ignores holes, Array#includes - not
} else for(;length > index; index++)if(IS_INCLUDES || index in O){
- if(O[index] === el)return IS_INCLUDES || index;
+ if(O[index] === el)return IS_INCLUDES || index || 0;
} return !IS_INCLUDES && -1;
};
};
-},{"./$.to-index":34,"./$.to-iobject":36,"./$.to-length":37}],10:[function(require,module,exports){
-// 0 -> Array#forEach
-// 1 -> Array#map
-// 2 -> Array#filter
-// 3 -> Array#some
-// 4 -> Array#every
-// 5 -> Array#find
-// 6 -> Array#findIndex
-var ctx = require('./$.ctx')
- , IObject = require('./$.iobject')
- , toObject = require('./$.to-object')
- , toLength = require('./$.to-length')
- , asc = require('./$.array-species-create');
-module.exports = function(TYPE){
- var IS_MAP = TYPE == 1
- , IS_FILTER = TYPE == 2
- , IS_SOME = TYPE == 3
- , IS_EVERY = TYPE == 4
- , IS_FIND_INDEX = TYPE == 6
- , NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
- return function($this, callbackfn, that){
- var O = toObject($this)
- , self = IObject(O)
- , f = ctx(callbackfn, that, 3)
- , length = toLength(self.length)
- , index = 0
- , result = IS_MAP ? asc($this, length) : IS_FILTER ? asc($this, 0) : undefined
- , val, res;
- for(;length > index; index++)if(NO_HOLES || index in self){
- val = self[index];
- res = f(val, index, O);
- if(TYPE){
- if(IS_MAP)result[index] = res; // map
- else if(res)switch(TYPE){
- case 3: return true; // some
- case 5: return val; // find
- case 6: return index; // findIndex
- case 2: result.push(val); // filter
- } else if(IS_EVERY)return false; // every
- }
- }
- return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : result;
- };
+},{"./_to-index":44,"./_to-iobject":46,"./_to-length":47}],10:[function(require,module,exports){
+'use strict';
+var aFunction = require('./_a-function')
+ , isObject = require('./_is-object')
+ , invoke = require('./_invoke')
+ , arraySlice = [].slice
+ , factories = {};
+
+var construct = function(F, len, args){
+ if(!(len in factories)){
+ for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';
+ factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
+ } return factories[len](F, args);
};
-},{"./$.array-species-create":11,"./$.ctx":14,"./$.iobject":25,"./$.to-length":37,"./$.to-object":38}],11:[function(require,module,exports){
-// 9.4.2.3 ArraySpeciesCreate(originalArray, length)
-var isObject = require('./$.is-object')
- , isArray = require('./$.is-array')
- , SPECIES = require('./$.wks')('species');
-module.exports = function(original, length){
- var C;
- if(isArray(original)){
- C = original.constructor;
- // cross-realm fallback
- if(typeof C == 'function' && (C === Array || isArray(C.prototype)))C = undefined;
- if(isObject(C)){
- C = C[SPECIES];
- if(C === null)C = undefined;
- }
- } return new (C === undefined ? Array : C)(length);
+
+module.exports = Function.bind || function bind(that /*, args... */){
+ var fn = aFunction(this)
+ , partArgs = arraySlice.call(arguments, 1);
+ var bound = function(/* args... */){
+ var args = partArgs.concat(arraySlice.call(arguments));
+ return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
+ };
+ if(isObject(fn.prototype))bound.prototype = fn.prototype;
+ return bound;
};
-},{"./$.is-array":26,"./$.is-object":27,"./$.wks":40}],12:[function(require,module,exports){
+},{"./_a-function":7,"./_invoke":25,"./_is-object":28}],11:[function(require,module,exports){
var toString = {}.toString;
module.exports = function(it){
return toString.call(it).slice(8, -1);
};
-},{}],13:[function(require,module,exports){
-var core = module.exports = {version: '1.2.6'};
+},{}],12:[function(require,module,exports){
+var core = module.exports = {version: '2.4.0'};
if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef
-},{}],14:[function(require,module,exports){
+},{}],13:[function(require,module,exports){
// optional / simple context binding
-var aFunction = require('./$.a-function');
+var aFunction = require('./_a-function');
module.exports = function(fn, that, length){
aFunction(fn);
if(that === undefined)return fn;
@@ -3325,31 +3289,36 @@ module.exports = function(fn, that, length){
return fn.apply(that, arguments);
};
};
-},{"./$.a-function":7}],15:[function(require,module,exports){
+},{"./_a-function":7}],14:[function(require,module,exports){
// 7.2.1 RequireObjectCoercible(argument)
module.exports = function(it){
if(it == undefined)throw TypeError("Can't call method on " + it);
return it;
};
-},{}],16:[function(require,module,exports){
+},{}],15:[function(require,module,exports){
// Thank's IE8 for his funny defineProperty
-module.exports = !require('./$.fails')(function(){
+module.exports = !require('./_fails')(function(){
return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7;
});
-},{"./$.fails":19}],17:[function(require,module,exports){
-var isObject = require('./$.is-object')
- , document = require('./$.global').document
+},{"./_fails":19}],16:[function(require,module,exports){
+var isObject = require('./_is-object')
+ , document = require('./_global').document
// in old IE typeof document.createElement is 'object'
, is = isObject(document) && isObject(document.createElement);
module.exports = function(it){
return is ? document.createElement(it) : {};
};
-},{"./$.global":20,"./$.is-object":27}],18:[function(require,module,exports){
-var global = require('./$.global')
- , core = require('./$.core')
- , hide = require('./$.hide')
- , redefine = require('./$.redefine')
- , ctx = require('./$.ctx')
+},{"./_global":20,"./_is-object":28}],17:[function(require,module,exports){
+// IE 8- don't enum bug keys
+module.exports = (
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'
+).split(',');
+},{}],18:[function(require,module,exports){
+var global = require('./_global')
+ , core = require('./_core')
+ , hide = require('./_hide')
+ , redefine = require('./_redefine')
+ , ctx = require('./_ctx')
, PROTOTYPE = 'prototype';
var $export = function(type, name, source){
@@ -3365,13 +3334,13 @@ var $export = function(type, name, source){
if(IS_GLOBAL)source = name;
for(key in source){
// contains in native
- own = !IS_FORCED && target && key in target;
+ own = !IS_FORCED && target && target[key] !== undefined;
// export native or passed
out = (own ? target : source)[key];
// bind timers to global for call from export context
exp = IS_BIND && own ? ctx(out, global) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out;
// extend global
- if(target && !own)redefine(target, key, out);
+ if(target)redefine(target, key, out, type & $export.U);
// export
if(exports[key] != out)hide(exports, key, exp);
if(IS_PROTO && expProto[key] != out)expProto[key] = out;
@@ -3379,14 +3348,16 @@ var $export = function(type, name, source){
};
global.core = core;
// type bitmap
-$export.F = 1; // forced
-$export.G = 2; // global
-$export.S = 4; // static
-$export.P = 8; // proto
-$export.B = 16; // bind
-$export.W = 32; // wrap
+$export.F = 1; // forced
+$export.G = 2; // global
+$export.S = 4; // static
+$export.P = 8; // proto
+$export.B = 16; // bind
+$export.W = 32; // wrap
+$export.U = 64; // safe
+$export.R = 128; // real proto method for `library`
module.exports = $export;
-},{"./$.core":13,"./$.ctx":14,"./$.global":20,"./$.hide":22,"./$.redefine":31}],19:[function(require,module,exports){
+},{"./_core":12,"./_ctx":13,"./_global":20,"./_hide":22,"./_redefine":38}],19:[function(require,module,exports){
module.exports = function(exec){
try {
return !!exec();
@@ -3405,17 +3376,21 @@ module.exports = function(it, key){
return hasOwnProperty.call(it, key);
};
},{}],22:[function(require,module,exports){
-var $ = require('./$')
- , createDesc = require('./$.property-desc');
-module.exports = require('./$.descriptors') ? function(object, key, value){
- return $.setDesc(object, key, createDesc(1, value));
+var dP = require('./_object-dp')
+ , createDesc = require('./_property-desc');
+module.exports = require('./_descriptors') ? function(object, key, value){
+ return dP.f(object, key, createDesc(1, value));
} : function(object, key, value){
object[key] = value;
return object;
};
-},{"./$":28,"./$.descriptors":16,"./$.property-desc":30}],23:[function(require,module,exports){
-module.exports = require('./$.global').document && document.documentElement;
-},{"./$.global":20}],24:[function(require,module,exports){
+},{"./_descriptors":15,"./_object-dp":31,"./_property-desc":37}],23:[function(require,module,exports){
+module.exports = require('./_global').document && document.documentElement;
+},{"./_global":20}],24:[function(require,module,exports){
+module.exports = !require('./_descriptors') && !require('./_fails')(function(){
+ return Object.defineProperty(require('./_dom-create')('div'), 'a', {get: function(){ return 7; }}).a != 7;
+});
+},{"./_descriptors":15,"./_dom-create":16,"./_fails":19}],25:[function(require,module,exports){
// fast apply, http://jsperf.lnkit.com/fast-apply/5
module.exports = function(fn, args, that){
var un = that === undefined;
@@ -3432,71 +3407,159 @@ module.exports = function(fn, args, that){
: fn.call(that, args[0], args[1], args[2], args[3]);
} return fn.apply(that, args);
};
-},{}],25:[function(require,module,exports){
+},{}],26:[function(require,module,exports){
// fallback for non-array-like ES3 and non-enumerable old V8 strings
-var cof = require('./$.cof');
+var cof = require('./_cof');
module.exports = Object('z').propertyIsEnumerable(0) ? Object : function(it){
return cof(it) == 'String' ? it.split('') : Object(it);
};
-},{"./$.cof":12}],26:[function(require,module,exports){
+},{"./_cof":11}],27:[function(require,module,exports){
// 7.2.2 IsArray(argument)
-var cof = require('./$.cof');
-module.exports = Array.isArray || function(arg){
+var cof = require('./_cof');
+module.exports = Array.isArray || function isArray(arg){
return cof(arg) == 'Array';
};
-},{"./$.cof":12}],27:[function(require,module,exports){
+},{"./_cof":11}],28:[function(require,module,exports){
module.exports = function(it){
return typeof it === 'object' ? it !== null : typeof it === 'function';
};
-},{}],28:[function(require,module,exports){
-var $Object = Object;
-module.exports = {
- create: $Object.create,
- getProto: $Object.getPrototypeOf,
- isEnum: {}.propertyIsEnumerable,
- getDesc: $Object.getOwnPropertyDescriptor,
- setDesc: $Object.defineProperty,
- setDescs: $Object.defineProperties,
- getKeys: $Object.keys,
- getNames: $Object.getOwnPropertyNames,
- getSymbols: $Object.getOwnPropertySymbols,
- each: [].forEach
-};
},{}],29:[function(require,module,exports){
+'use strict';
// 19.1.2.1 Object.assign(target, source, ...)
-var $ = require('./$')
- , toObject = require('./$.to-object')
- , IObject = require('./$.iobject');
+var getKeys = require('./_object-keys')
+ , gOPS = require('./_object-gops')
+ , pIE = require('./_object-pie')
+ , toObject = require('./_to-object')
+ , IObject = require('./_iobject')
+ , $assign = Object.assign;
// should work with symbols and should have deterministic property order (V8 bug)
-module.exports = require('./$.fails')(function(){
- var a = Object.assign
- , A = {}
+module.exports = !$assign || require('./_fails')(function(){
+ var A = {}
, B = {}
, S = Symbol()
, K = 'abcdefghijklmnopqrst';
A[S] = 7;
K.split('').forEach(function(k){ B[k] = k; });
- return a({}, A)[S] != 7 || Object.keys(a({}, B)).join('') != K;
+ return $assign({}, A)[S] != 7 || Object.keys($assign({}, B)).join('') != K;
}) ? function assign(target, source){ // eslint-disable-line no-unused-vars
var T = toObject(target)
- , $$ = arguments
- , $$len = $$.length
+ , aLen = arguments.length
, index = 1
- , getKeys = $.getKeys
- , getSymbols = $.getSymbols
- , isEnum = $.isEnum;
- while($$len > index){
- var S = IObject($$[index++])
+ , getSymbols = gOPS.f
+ , isEnum = pIE.f;
+ while(aLen > index){
+ var S = IObject(arguments[index++])
, keys = getSymbols ? getKeys(S).concat(getSymbols(S)) : getKeys(S)
, length = keys.length
, j = 0
, key;
while(length > j)if(isEnum.call(S, key = keys[j++]))T[key] = S[key];
- }
- return T;
-} : Object.assign;
-},{"./$":28,"./$.fails":19,"./$.iobject":25,"./$.to-object":38}],30:[function(require,module,exports){
+ } return T;
+} : $assign;
+},{"./_fails":19,"./_iobject":26,"./_object-gops":33,"./_object-keys":35,"./_object-pie":36,"./_to-object":48}],30:[function(require,module,exports){
+// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
+var anObject = require('./_an-object')
+ , dPs = require('./_object-dps')
+ , enumBugKeys = require('./_enum-bug-keys')
+ , IE_PROTO = require('./_shared-key')('IE_PROTO')
+ , Empty = function(){ /* empty */ }
+ , PROTOTYPE = 'prototype';
+
+// Create object with fake `null` prototype: use iframe Object with cleared prototype
+var createDict = function(){
+ // Thrash, waste and sodomy: IE GC bug
+ var iframe = require('./_dom-create')('iframe')
+ , i = enumBugKeys.length
+ , gt = '>'
+ , iframeDocument;
+ iframe.style.display = 'none';
+ require('./_html').appendChild(iframe);
+ iframe.src = 'javascript:'; // eslint-disable-line no-script-url
+ // createDict = iframe.contentWindow.Object;
+ // html.removeChild(iframe);
+ iframeDocument = iframe.contentWindow.document;
+ iframeDocument.open();
+ iframeDocument.write(' i)dP.f(O, P = keys[i++], Properties[P]);
+ return O;
+};
+},{"./_an-object":8,"./_descriptors":15,"./_object-dp":31,"./_object-keys":35}],33:[function(require,module,exports){
+exports.f = Object.getOwnPropertySymbols;
+},{}],34:[function(require,module,exports){
+var has = require('./_has')
+ , toIObject = require('./_to-iobject')
+ , arrayIndexOf = require('./_array-includes')(false)
+ , IE_PROTO = require('./_shared-key')('IE_PROTO');
+
+module.exports = function(object, names){
+ var O = toIObject(object)
+ , i = 0
+ , result = []
+ , key;
+ for(key in O)if(key != IE_PROTO)has(O, key) && result.push(key);
+ // Don't enum bug & hidden keys
+ while(names.length > i)if(has(O, key = names[i++])){
+ ~arrayIndexOf(result, key) || result.push(key);
+ }
+ return result;
+};
+},{"./_array-includes":9,"./_has":21,"./_shared-key":39,"./_to-iobject":46}],35:[function(require,module,exports){
+// 19.1.2.14 / 15.2.3.14 Object.keys(O)
+var $keys = require('./_object-keys-internal')
+ , enumBugKeys = require('./_enum-bug-keys');
+
+module.exports = Object.keys || function keys(O){
+ return $keys(O, enumBugKeys);
+};
+},{"./_enum-bug-keys":17,"./_object-keys-internal":34}],36:[function(require,module,exports){
+exports.f = {}.propertyIsEnumerable;
+},{}],37:[function(require,module,exports){
module.exports = function(bitmap, value){
return {
enumerable : !(bitmap & 1),
@@ -3505,58 +3568,78 @@ module.exports = function(bitmap, value){
value : value
};
};
-},{}],31:[function(require,module,exports){
-// add fake Function#toString
-// for correct work wrapped methods / constructors with methods like LoDash isNative
-var global = require('./$.global')
- , hide = require('./$.hide')
- , SRC = require('./$.uid')('src')
+},{}],38:[function(require,module,exports){
+var global = require('./_global')
+ , hide = require('./_hide')
+ , has = require('./_has')
+ , SRC = require('./_uid')('src')
, TO_STRING = 'toString'
, $toString = Function[TO_STRING]
, TPL = ('' + $toString).split(TO_STRING);
-require('./$.core').inspectSource = function(it){
+require('./_core').inspectSource = function(it){
return $toString.call(it);
};
(module.exports = function(O, key, val, safe){
- if(typeof val == 'function'){
- val.hasOwnProperty(SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
- val.hasOwnProperty('name') || hide(val, 'name', key);
- }
+ var isFunction = typeof val == 'function';
+ if(isFunction)has(val, 'name') || hide(val, 'name', key);
+ if(O[key] === val)return;
+ if(isFunction)has(val, SRC) || hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
if(O === global){
O[key] = val;
} else {
- if(!safe)delete O[key];
- hide(O, key, val);
+ if(!safe){
+ delete O[key];
+ hide(O, key, val);
+ } else {
+ if(O[key])O[key] = val;
+ else hide(O, key, val);
+ }
}
+// add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
})(Function.prototype, TO_STRING, function toString(){
return typeof this == 'function' && this[SRC] || $toString.call(this);
});
-},{"./$.core":13,"./$.global":20,"./$.hide":22,"./$.uid":39}],32:[function(require,module,exports){
-var global = require('./$.global')
+},{"./_core":12,"./_global":20,"./_has":21,"./_hide":22,"./_uid":50}],39:[function(require,module,exports){
+var shared = require('./_shared')('keys')
+ , uid = require('./_uid');
+module.exports = function(key){
+ return shared[key] || (shared[key] = uid(key));
+};
+},{"./_shared":40,"./_uid":50}],40:[function(require,module,exports){
+var global = require('./_global')
, SHARED = '__core-js_shared__'
, store = global[SHARED] || (global[SHARED] = {});
module.exports = function(key){
return store[key] || (store[key] = {});
};
-},{"./$.global":20}],33:[function(require,module,exports){
-var $export = require('./$.export')
- , defined = require('./$.defined')
- , fails = require('./$.fails')
- , spaces = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
- '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF'
+},{"./_global":20}],41:[function(require,module,exports){
+var fails = require('./_fails');
+
+module.exports = function(method, arg){
+ return !!method && fails(function(){
+ arg ? method.call(null, function(){}, 1) : method.call(null);
+ });
+};
+},{"./_fails":19}],42:[function(require,module,exports){
+var $export = require('./_export')
+ , defined = require('./_defined')
+ , fails = require('./_fails')
+ , spaces = require('./_string-ws')
, space = '[' + spaces + ']'
, non = '\u200b\u0085'
, ltrim = RegExp('^' + space + space + '*')
, rtrim = RegExp(space + space + '*$');
-var exporter = function(KEY, exec){
- var exp = {};
- exp[KEY] = exec(trim);
- $export($export.P + $export.F * fails(function(){
+var exporter = function(KEY, exec, ALIAS){
+ var exp = {};
+ var FORCE = fails(function(){
return !!spaces[KEY]() || non[KEY]() != non;
- }), 'String', exp);
+ });
+ var fn = exp[KEY] = FORCE ? exec(trim) : spaces[KEY];
+ if(ALIAS)exp[ALIAS] = fn;
+ $export($export.P + $export.F * FORCE, 'String', exp);
};
// 1 -> String#trimLeft
@@ -3570,346 +3653,107 @@ var trim = exporter.trim = function(string, TYPE){
};
module.exports = exporter;
-},{"./$.defined":15,"./$.export":18,"./$.fails":19}],34:[function(require,module,exports){
-var toInteger = require('./$.to-integer')
+},{"./_defined":14,"./_export":18,"./_fails":19,"./_string-ws":43}],43:[function(require,module,exports){
+module.exports = '\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003' +
+ '\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
+},{}],44:[function(require,module,exports){
+var toInteger = require('./_to-integer')
, max = Math.max
, min = Math.min;
module.exports = function(index, length){
index = toInteger(index);
return index < 0 ? max(index + length, 0) : min(index, length);
};
-},{"./$.to-integer":35}],35:[function(require,module,exports){
+},{"./_to-integer":45}],45:[function(require,module,exports){
// 7.1.4 ToInteger
var ceil = Math.ceil
, floor = Math.floor;
module.exports = function(it){
return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
};
-},{}],36:[function(require,module,exports){
+},{}],46:[function(require,module,exports){
// to indexed object, toObject with fallback for non-array-like ES3 strings
-var IObject = require('./$.iobject')
- , defined = require('./$.defined');
+var IObject = require('./_iobject')
+ , defined = require('./_defined');
module.exports = function(it){
return IObject(defined(it));
};
-},{"./$.defined":15,"./$.iobject":25}],37:[function(require,module,exports){
+},{"./_defined":14,"./_iobject":26}],47:[function(require,module,exports){
// 7.1.15 ToLength
-var toInteger = require('./$.to-integer')
+var toInteger = require('./_to-integer')
, min = Math.min;
module.exports = function(it){
return it > 0 ? min(toInteger(it), 0x1fffffffffffff) : 0; // pow(2, 53) - 1 == 9007199254740991
};
-},{"./$.to-integer":35}],38:[function(require,module,exports){
+},{"./_to-integer":45}],48:[function(require,module,exports){
// 7.1.13 ToObject(argument)
-var defined = require('./$.defined');
+var defined = require('./_defined');
module.exports = function(it){
return Object(defined(it));
};
-},{"./$.defined":15}],39:[function(require,module,exports){
+},{"./_defined":14}],49:[function(require,module,exports){
+// 7.1.1 ToPrimitive(input [, PreferredType])
+var isObject = require('./_is-object');
+// instead of the ES6 spec version, we didn't implement @@toPrimitive case
+// and the second argument - flag - preferred type is a string
+module.exports = function(it, S){
+ if(!isObject(it))return it;
+ var fn, val;
+ if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
+ if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val;
+ if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val;
+ throw TypeError("Can't convert object to primitive value");
+};
+},{"./_is-object":28}],50:[function(require,module,exports){
var id = 0
, px = Math.random();
module.exports = function(key){
return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
};
-},{}],40:[function(require,module,exports){
-var store = require('./$.shared')('wks')
- , uid = require('./$.uid')
- , Symbol = require('./$.global').Symbol;
-module.exports = function(name){
- return store[name] || (store[name] =
- Symbol && Symbol[name] || (Symbol || uid)('Symbol.' + name));
-};
-},{"./$.global":20,"./$.shared":32,"./$.uid":39}],41:[function(require,module,exports){
+},{}],51:[function(require,module,exports){
'use strict';
-var $ = require('./$')
- , $export = require('./$.export')
- , DESCRIPTORS = require('./$.descriptors')
- , createDesc = require('./$.property-desc')
- , html = require('./$.html')
- , cel = require('./$.dom-create')
- , has = require('./$.has')
- , cof = require('./$.cof')
- , invoke = require('./$.invoke')
- , fails = require('./$.fails')
- , anObject = require('./$.an-object')
- , aFunction = require('./$.a-function')
- , isObject = require('./$.is-object')
- , toObject = require('./$.to-object')
- , toIObject = require('./$.to-iobject')
- , toInteger = require('./$.to-integer')
- , toIndex = require('./$.to-index')
- , toLength = require('./$.to-length')
- , IObject = require('./$.iobject')
- , IE_PROTO = require('./$.uid')('__proto__')
- , createArrayMethod = require('./$.array-methods')
- , arrayIndexOf = require('./$.array-includes')(false)
- , ObjectProto = Object.prototype
- , ArrayProto = Array.prototype
- , arraySlice = ArrayProto.slice
- , arrayJoin = ArrayProto.join
- , defineProperty = $.setDesc
- , getOwnDescriptor = $.getDesc
- , defineProperties = $.setDescs
- , factories = {}
- , IE8_DOM_DEFINE;
-
-if(!DESCRIPTORS){
- IE8_DOM_DEFINE = !fails(function(){
- return defineProperty(cel('div'), 'a', {get: function(){ return 7; }}).a != 7;
- });
- $.setDesc = function(O, P, Attributes){
- if(IE8_DOM_DEFINE)try {
- return defineProperty(O, P, Attributes);
- } catch(e){ /* empty */ }
- if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!');
- if('value' in Attributes)anObject(O)[P] = Attributes.value;
- return O;
- };
- $.getDesc = function(O, P){
- if(IE8_DOM_DEFINE)try {
- return getOwnDescriptor(O, P);
- } catch(e){ /* empty */ }
- if(has(O, P))return createDesc(!ObjectProto.propertyIsEnumerable.call(O, P), O[P]);
- };
- $.setDescs = defineProperties = function(O, Properties){
- anObject(O);
- var keys = $.getKeys(Properties)
- , length = keys.length
- , i = 0
- , P;
- while(length > i)$.setDesc(O, P = keys[i++], Properties[P]);
- return O;
- };
-}
-$export($export.S + $export.F * !DESCRIPTORS, 'Object', {
- // 19.1.2.6 / 15.2.3.3 Object.getOwnPropertyDescriptor(O, P)
- getOwnPropertyDescriptor: $.getDesc,
- // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes)
- defineProperty: $.setDesc,
- // 19.1.2.3 / 15.2.3.7 Object.defineProperties(O, Properties)
- defineProperties: defineProperties
-});
-
- // IE 8- don't enum bug keys
-var keys1 = ('constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,' +
- 'toLocaleString,toString,valueOf').split(',')
- // Additional keys for getOwnPropertyNames
- , keys2 = keys1.concat('length', 'prototype')
- , keysLen1 = keys1.length;
-
-// Create object with `null` prototype: use iframe Object with cleared prototype
-var createDict = function(){
- // Thrash, waste and sodomy: IE GC bug
- var iframe = cel('iframe')
- , i = keysLen1
- , gt = '>'
- , iframeDocument;
- iframe.style.display = 'none';
- html.appendChild(iframe);
- iframe.src = 'javascript:'; // eslint-disable-line no-script-url
- // createDict = iframe.contentWindow.Object;
- // html.removeChild(iframe);
- iframeDocument = iframe.contentWindow.document;
- iframeDocument.open();
- iframeDocument.write(' i)if(has(O, key = names[i++])){
- ~arrayIndexOf(result, key) || result.push(key);
- }
- return result;
- };
-};
-var Empty = function(){};
-$export($export.S, 'Object', {
- // 19.1.2.9 / 15.2.3.2 Object.getPrototypeOf(O)
- getPrototypeOf: $.getProto = $.getProto || function(O){
- O = toObject(O);
- if(has(O, IE_PROTO))return O[IE_PROTO];
- if(typeof O.constructor == 'function' && O instanceof O.constructor){
- return O.constructor.prototype;
- } return O instanceof Object ? ObjectProto : null;
- },
- // 19.1.2.7 / 15.2.3.4 Object.getOwnPropertyNames(O)
- getOwnPropertyNames: $.getNames = $.getNames || createGetKeys(keys2, keys2.length, true),
- // 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
- create: $.create = $.create || function(O, /*?*/Properties){
- var result;
- if(O !== null){
- Empty.prototype = anObject(O);
- result = new Empty();
- Empty.prototype = null;
- // add "__proto__" for Object.getPrototypeOf shim
- result[IE_PROTO] = O;
- } else result = createDict();
- return Properties === undefined ? result : defineProperties(result, Properties);
- },
- // 19.1.2.14 / 15.2.3.14 Object.keys(O)
- keys: $.getKeys = $.getKeys || createGetKeys(keys1, keysLen1, false)
-});
-
-var construct = function(F, len, args){
- if(!(len in factories)){
- for(var n = [], i = 0; i < len; i++)n[i] = 'a[' + i + ']';
- factories[len] = Function('F,a', 'return new F(' + n.join(',') + ')');
- }
- return factories[len](F, args);
-};
-
-// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
-$export($export.P, 'Function', {
- bind: function bind(that /*, args... */){
- var fn = aFunction(this)
- , partArgs = arraySlice.call(arguments, 1);
- var bound = function(/* args... */){
- var args = partArgs.concat(arraySlice.call(arguments));
- return this instanceof bound ? construct(fn, args.length, args) : invoke(fn, args, that);
- };
- if(isObject(fn.prototype))bound.prototype = fn.prototype;
- return bound;
- }
-});
-
-// fallback for not array-like ES3 strings and DOM objects
-$export($export.P + $export.F * fails(function(){
- if(html)arraySlice.call(html);
-}), 'Array', {
- slice: function(begin, end){
- var len = toLength(this.length)
- , klass = cof(this);
- end = end === undefined ? len : end;
- if(klass == 'Array')return arraySlice.call(this, begin, end);
- var start = toIndex(begin, len)
- , upTo = toIndex(end, len)
- , size = toLength(upTo - start)
- , cloned = Array(size)
- , i = 0;
- for(; i < size; i++)cloned[i] = klass == 'String'
- ? this.charAt(start + i)
- : this[start + i];
- return cloned;
- }
-});
-$export($export.P + $export.F * (IObject != Object), 'Array', {
- join: function join(separator){
- return arrayJoin.call(IObject(this), separator === undefined ? ',' : separator);
- }
-});
-
-// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
-$export($export.S, 'Array', {isArray: require('./$.is-array')});
-
-var createArrayReduce = function(isRight){
- return function(callbackfn, memo){
- aFunction(callbackfn);
- var O = IObject(this)
- , length = toLength(O.length)
- , index = isRight ? length - 1 : 0
- , i = isRight ? -1 : 1;
- if(arguments.length < 2)for(;;){
- if(index in O){
- memo = O[index];
- index += i;
- break;
- }
- index += i;
- if(isRight ? index < 0 : length <= index){
- throw TypeError('Reduce of empty array with no initial value');
- }
- }
- for(;isRight ? index >= 0 : length > index; index += i)if(index in O){
- memo = callbackfn(memo, O[index], index, this);
- }
- return memo;
- };
-};
+var $export = require('./_export')
+ , $indexOf = require('./_array-includes')(false)
+ , $native = [].indexOf
+ , NEGATIVE_ZERO = !!$native && 1 / [1].indexOf(1, -0) < 0;
-var methodize = function($fn){
- return function(arg1/*, arg2 = undefined */){
- return $fn(this, arg1, arguments[1]);
- };
-};
-
-$export($export.P, 'Array', {
- // 22.1.3.10 / 15.4.4.18 Array.prototype.forEach(callbackfn [, thisArg])
- forEach: $.each = $.each || methodize(createArrayMethod(0)),
- // 22.1.3.15 / 15.4.4.19 Array.prototype.map(callbackfn [, thisArg])
- map: methodize(createArrayMethod(1)),
- // 22.1.3.7 / 15.4.4.20 Array.prototype.filter(callbackfn [, thisArg])
- filter: methodize(createArrayMethod(2)),
- // 22.1.3.23 / 15.4.4.17 Array.prototype.some(callbackfn [, thisArg])
- some: methodize(createArrayMethod(3)),
- // 22.1.3.5 / 15.4.4.16 Array.prototype.every(callbackfn [, thisArg])
- every: methodize(createArrayMethod(4)),
- // 22.1.3.18 / 15.4.4.21 Array.prototype.reduce(callbackfn [, initialValue])
- reduce: createArrayReduce(false),
- // 22.1.3.19 / 15.4.4.22 Array.prototype.reduceRight(callbackfn [, initialValue])
- reduceRight: createArrayReduce(true),
+$export($export.P + $export.F * (NEGATIVE_ZERO || !require('./_strict-method')($native)), 'Array', {
// 22.1.3.11 / 15.4.4.14 Array.prototype.indexOf(searchElement [, fromIndex])
- indexOf: methodize(arrayIndexOf),
- // 22.1.3.14 / 15.4.4.15 Array.prototype.lastIndexOf(searchElement [, fromIndex])
- lastIndexOf: function(el, fromIndex /* = @[*-1] */){
- var O = toIObject(this)
- , length = toLength(O.length)
- , index = length - 1;
- if(arguments.length > 1)index = Math.min(index, toInteger(fromIndex));
- if(index < 0)index = toLength(length + index);
- for(;index >= 0; index--)if(index in O)if(O[index] === el)return index;
- return -1;
+ indexOf: function indexOf(searchElement /*, fromIndex = 0 */){
+ return NEGATIVE_ZERO
+ // convert -0 to +0
+ ? $native.apply(this, arguments) || 0
+ : $indexOf(this, searchElement, arguments[1]);
}
});
+},{"./_array-includes":9,"./_export":18,"./_strict-method":41}],52:[function(require,module,exports){
+// 22.1.2.2 / 15.4.3.2 Array.isArray(arg)
+var $export = require('./_export');
-// 20.3.3.1 / 15.9.4.4 Date.now()
-$export($export.S, 'Date', {now: function(){ return +new Date; }});
-
-var lz = function(num){
- return num > 9 ? num : '0' + num;
-};
+$export($export.S, 'Array', {isArray: require('./_is-array')});
+},{"./_export":18,"./_is-array":27}],53:[function(require,module,exports){
+// 19.2.3.2 / 15.3.4.5 Function.prototype.bind(thisArg, args...)
+var $export = require('./_export');
-// 20.3.4.36 / 15.9.5.43 Date.prototype.toISOString()
-// PhantomJS / old WebKit has a broken implementations
-$export($export.P + $export.F * (fails(function(){
- return new Date(-5e13 - 1).toISOString() != '0385-07-25T07:06:39.999Z';
-}) || !fails(function(){
- new Date(NaN).toISOString();
-})), 'Date', {
- toISOString: function toISOString(){
- if(!isFinite(this))throw RangeError('Invalid time value');
- var d = this
- , y = d.getUTCFullYear()
- , m = d.getUTCMilliseconds()
- , s = y < 0 ? '-' : y > 9999 ? '+' : '';
- return s + ('00000' + Math.abs(y)).slice(s ? -6 : -4) +
- '-' + lz(d.getUTCMonth() + 1) + '-' + lz(d.getUTCDate()) +
- 'T' + lz(d.getUTCHours()) + ':' + lz(d.getUTCMinutes()) +
- ':' + lz(d.getUTCSeconds()) + '.' + (m > 99 ? m : '0' + lz(m)) + '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(require,module,exports){
+$export($export.P, 'Function', {bind: require('./_bind')});
+},{"./_bind":10,"./_export":18}],54:[function(require,module,exports){
// 19.1.3.1 Object.assign(target, source)
-var $export = require('./$.export');
-
-$export($export.S + $export.F, 'Object', {assign: require('./$.object-assign')});
-},{"./$.export":18,"./$.object-assign":29}],43:[function(require,module,exports){
+var $export = require('./_export');
+
+$export($export.S + $export.F, 'Object', {assign: require('./_object-assign')});
+},{"./_export":18,"./_object-assign":29}],55:[function(require,module,exports){
+var $export = require('./_export')
+// 19.1.2.2 / 15.2.3.5 Object.create(O [, Properties])
+$export($export.S, 'Object', {create: require('./_object-create')});
+},{"./_export":18,"./_object-create":30}],56:[function(require,module,exports){
'use strict';
// 21.1.3.25 String.prototype.trim()
-require('./$.string-trim')('trim', function($trim){
+require('./_string-trim')('trim', function($trim){
return function trim(){
return $trim(this, 3);
};
});
-},{"./$.string-trim":33}],44:[function(require,module,exports){
+},{"./_string-trim":42}],57:[function(require,module,exports){
/**
* This is the web browser implementation of `debug()`.
@@ -4079,7 +3923,7 @@ function localstorage(){
} catch (e) {}
}
-},{"./debug":45}],45:[function(require,module,exports){
+},{"./debug":58}],58:[function(require,module,exports){
/**
* This is the common logic for both the Node.js and web browser
@@ -4278,7 +4122,7 @@ function coerce(val) {
return val;
}
-},{"ms":48}],46:[function(require,module,exports){
+},{"ms":61}],59:[function(require,module,exports){
exports.read = function (buffer, offset, isLE, mLen, nBytes) {
var e, m
var eLen = nBytes * 8 - mLen - 1
@@ -4364,7 +4208,7 @@ exports.write = function (buffer, value, offset, isLE, mLen, nBytes) {
buffer[offset + i - d] |= s * 128
}
-},{}],47:[function(require,module,exports){
+},{}],60:[function(require,module,exports){
/**
* isArray
@@ -4399,7 +4243,7 @@ module.exports = isArray || function (val) {
return !! val && '[object Array]' == str.call(val);
};
-},{}],48:[function(require,module,exports){
+},{}],61:[function(require,module,exports){
/**
* Helpers.
*/
@@ -4526,7 +4370,7 @@ function plural(ms, n, name) {
return Math.ceil(ms / n) + ' ' + name + 's';
}
-},{}],49:[function(require,module,exports){
+},{}],62:[function(require,module,exports){
// shim for using process in browser
var process = module.exports = {};
@@ -4619,7 +4463,7 @@ process.chdir = function (dir) {
};
process.umask = function() { return 0; };
-},{}],50:[function(require,module,exports){
+},{}],63:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -4787,7 +4631,7 @@ var AutoEvents = (function () {
exports['default'] = AutoEvents;
-},{"./DOMComponentsTracking.js":52,"component-type":6}],51:[function(require,module,exports){
+},{"./DOMComponentsTracking.js":65,"component-type":6}],64:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -4913,7 +4757,7 @@ var DDHelper = (function () {
exports['default'] = DDHelper;
-},{"./functions/getProperty.js":63,"component-clone":4}],52:[function(require,module,exports){
+},{"./functions/getProperty.js":76,"component-clone":4}],65:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -5042,7 +4886,10 @@ var DOMComponentsTracking = (function () {
DOMComponentsTracking.prototype.trackViews = function trackViews() {
var _this4 = this;
- var _loop = function _loop(type) {
+ var _arr3 = ['campaign', 'product'];
+
+ var _loop = function _loop() {
+ var type = _arr3[_i3];
var newViewedComponents = [];
var $components = _this4.$digitalDataComponents[type];
$components.each(function (index, el) {
@@ -5071,11 +4918,8 @@ var DOMComponentsTracking = (function () {
}
};
- var _arr3 = ['campaign', 'product'];
-
for (var _i3 = 0; _i3 < _arr3.length; _i3++) {
- var type = _arr3[_i3];
- _loop(type);
+ _loop();
}
};
@@ -5204,7 +5048,7 @@ var DOMComponentsTracking = (function () {
exports['default'] = DOMComponentsTracking;
-},{}],53:[function(require,module,exports){
+},{}],66:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -5269,7 +5113,7 @@ var DigitalDataEnricher = (function () {
exports['default'] = DigitalDataEnricher;
-},{"./functions/htmlGlobals.js":65}],54:[function(require,module,exports){
+},{"./functions/htmlGlobals.js":78}],67:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -5428,7 +5272,7 @@ var EventDataEnricher = (function () {
exports['default'] = EventDataEnricher;
-},{"./DDHelper.js":51,"component-type":6}],55:[function(require,module,exports){
+},{"./DDHelper.js":64,"component-type":6}],68:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -5815,7 +5659,7 @@ var EventManager = (function () {
exports['default'] = EventManager;
-},{"./DDHelper.js":51,"./EventDataEnricher.js":54,"./functions/after.js":59,"./functions/deleteProperty.js":60,"./functions/jsonIsEqual.js":66,"./functions/noop.js":70,"./functions/size.js":72,"async":1,"component-clone":4,"debug":44}],56:[function(require,module,exports){
+},{"./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(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -6006,7 +5850,7 @@ var Integration = (function (_EventEmitter) {
exports['default'] = Integration;
-},{"./DDHelper.js":51,"./functions/deleteProperty.js":60,"./functions/each.js":61,"./functions/format.js":62,"./functions/loadIframe.js":67,"./functions/loadPixel.js":68,"./functions/loadScript.js":69,"./functions/noop.js":70,"async":1,"component-emitter":5,"debug":44}],57:[function(require,module,exports){
+},{"./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(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6055,6 +5899,10 @@ var _YandexMetrica = require('./integrations/YandexMetrica.js');
var _YandexMetrica2 = _interopRequireDefault(_YandexMetrica);
+var _Vkontakte = require('./integrations/Vkontakte.js');
+
+var _Vkontakte2 = _interopRequireDefault(_Vkontakte);
+
function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
@@ -6070,12 +5918,13 @@ var integrations = {
'SendPulse': _SendPulse2['default'],
'Criteo': _Criteo2['default'],
'myTarget': _MyTarget2['default'],
- 'Yandex Metrica': _YandexMetrica2['default']
+ 'Yandex Metrica': _YandexMetrica2['default'],
+ 'Vkontakte': _Vkontakte2['default']
};
exports['default'] = integrations;
-},{"./integrations/Criteo.js":75,"./integrations/Driveback.js":76,"./integrations/FacebookPixel.js":77,"./integrations/GoogleAnalytics.js":78,"./integrations/GoogleTagManager.js":79,"./integrations/MyTarget.js":80,"./integrations/OWOXBIStreaming.js":81,"./integrations/RetailRocket.js":82,"./integrations/SegmentStream.js":83,"./integrations/SendPulse.js":84,"./integrations/YandexMetrica.js":85}],58:[function(require,module,exports){
+},{"./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(require,module,exports){
'use strict';
function _typeof2(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -6247,8 +6096,8 @@ function _initializeIntegrations(settings, onReady) {
} else {
(0, _each2['default'])(integrationSettings, function (name, options) {
if (typeof _availableIntegrations[name] === 'function') {
- var integration = new _availableIntegrations[name](_digitalData, (0, _componentClone2['default'])(options));
- ddManager.addIntegration(name, integration);
+ var _integration = new _availableIntegrations[name](_digitalData, (0, _componentClone2['default'])(options));
+ ddManager.addIntegration(name, _integration);
}
});
}
@@ -6281,7 +6130,7 @@ function _initializeIntegrations(settings, onReady) {
ddManager = {
- VERSION: '1.0.17',
+ VERSION: '1.0.18',
setAvailableIntegrations: function setAvailableIntegrations(availableIntegrations) {
_availableIntegrations = availableIntegrations;
@@ -6451,7 +6300,7 @@ ddManager.on = ddManager.addEventListener = function (event, handler) {
exports['default'] = ddManager;
-},{"./AutoEvents.js":50,"./DDHelper.js":51,"./DigitalDataEnricher.js":53,"./EventManager.js":55,"./Integration.js":56,"./functions/after.js":59,"./functions/each.js":61,"./functions/size.js":72,"async":1,"component-clone":4,"component-emitter":5}],59:[function(require,module,exports){
+},{"./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(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6465,7 +6314,7 @@ exports["default"] = function (times, fn) {
};
};
-},{}],60:[function(require,module,exports){
+},{}],73:[function(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6478,7 +6327,7 @@ exports["default"] = function (obj, prop) {
}
};
-},{}],61:[function(require,module,exports){
+},{}],74:[function(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6491,7 +6340,7 @@ exports["default"] = function (obj, fn) {
}
};
-},{}],62:[function(require,module,exports){
+},{}],75:[function(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6530,7 +6379,7 @@ function format(str) {
});
}
-},{}],63:[function(require,module,exports){
+},{}],76:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6559,7 +6408,7 @@ function _keyToArray(key) {
return key.split('.');
}
-},{}],64:[function(require,module,exports){
+},{}],77:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6574,7 +6423,7 @@ function getQueryParam(name, queryString) {
return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
}
-},{}],65:[function(require,module,exports){
+},{}],78:[function(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6592,7 +6441,7 @@ exports["default"] = {
}
};
-},{}],66:[function(require,module,exports){
+},{}],79:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6607,7 +6456,7 @@ function jsonIsEqual(json1, json2) {
return json1 === json2;
}
-},{}],67:[function(require,module,exports){
+},{}],80:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6667,7 +6516,7 @@ function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
-},{"./scriptOnLoad.js":71,"async":1}],68:[function(require,module,exports){
+},{"./scriptOnLoad.js":84,"async":1}],81:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6703,7 +6552,7 @@ function error(fn, message, img) {
};
}
-},{}],69:[function(require,module,exports){
+},{}],82:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6762,14 +6611,14 @@ function _interopRequireDefault(obj) {
return obj && obj.__esModule ? obj : { 'default': obj };
}
-},{"./scriptOnLoad.js":71,"async":1}],70:[function(require,module,exports){
+},{"./scriptOnLoad.js":84,"async":1}],83:[function(require,module,exports){
"use strict";
exports.__esModule = true;
exports["default"] = function () {};
-},{}],71:[function(require,module,exports){
+},{}],84:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6824,7 +6673,7 @@ function attachEvent(el, fn) {
});
}
-},{}],72:[function(require,module,exports){
+},{}],85:[function(require,module,exports){
"use strict";
exports.__esModule = true;
@@ -6837,7 +6686,7 @@ exports["default"] = function (obj) {
return size;
};
-},{}],73:[function(require,module,exports){
+},{}],86:[function(require,module,exports){
'use strict';
exports.__esModule = true;
@@ -6864,7 +6713,7 @@ function throwError(code, message) {
throw error;
}
-},{"debug":44}],74:[function(require,module,exports){
+},{"debug":57}],87:[function(require,module,exports){
'use strict';
require('./polyfill.js');
@@ -6886,7 +6735,7 @@ _ddManager2['default'].processEarlyStubCalls();
window.ddManager = _ddManager2['default'];
-},{"./availableIntegrations.js":57,"./ddManager.js":58,"./polyfill.js":86}],75:[function(require,module,exports){
+},{"./availableIntegrations.js":70,"./ddManager.js":71,"./polyfill.js":100}],88:[function(require,module,exports){
'use strict';
function _typeof2(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -7137,7 +6986,7 @@ var Criteo = (function (_Integration) {
exports['default'] = Criteo;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60}],76:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],89:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -7243,7 +7092,7 @@ var Driveback = (function (_Integration) {
exports['default'] = Driveback;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/noop.js":70}],77:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/noop.js":83}],90:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -7436,7 +7285,7 @@ var FacebookPixel = (function (_Integration) {
exports['default'] = FacebookPixel;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60,"component-type":6}],78:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"component-type":6}],91:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -8110,7 +7959,7 @@ var GoogleAnalytics = (function (_Integration) {
exports['default'] = GoogleAnalytics;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/each.js":61,"./../functions/getProperty.js":63,"./../functions/size.js":72,"component-clone":4,"component-type":6}],79:[function(require,module,exports){
+},{"./../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(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -8202,7 +8051,7 @@ var GoogleTagManager = (function (_Integration) {
exports['default'] = GoogleTagManager;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60}],80:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],93:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -8435,7 +8284,7 @@ var MyTarget = (function (_Integration) {
exports['default'] = MyTarget;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60}],81:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],94:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -8538,7 +8387,7 @@ var OWOXBIStreaming = (function (_Integration) {
exports['default'] = OWOXBIStreaming;
-},{"./../Integration.js":56}],82:[function(require,module,exports){
+},{"./../Integration.js":69}],95:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -8934,7 +8783,7 @@ var RetailRocket = (function (_Integration) {
exports['default'] = RetailRocket;
-},{"./../../src/functions/getProperty.js":63,"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/format.js":62,"./../functions/getQueryParam.js":64,"./../functions/throwError.js":73,"component-type":6}],83:[function(require,module,exports){
+},{"./../../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(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -9096,7 +8945,7 @@ var SegmentStream = (function (_Integration) {
exports['default'] = SegmentStream;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/each.js":61}],84:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/each.js":74}],97:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -9270,7 +9119,7 @@ var SendPulse = (function (_Integration) {
SendPulse.prototype.sendUserAttributes = function sendUserAttributes(newUser, oldUser) {
(0, _each2['default'])(newUser, function (key, value) {
if ((0, _componentType2['default'])(value) !== 'object' && (!oldUser || value !== oldUser[key])) {
- window.oSpP.push(key, value);
+ window.oSpP.push(key, String(value));
}
});
};
@@ -9310,7 +9159,86 @@ var SendPulse = (function (_Integration) {
exports['default'] = SendPulse;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/each.js":61,"component-type":6}],85:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73,"./../functions/each.js":74,"component-type":6}],98:[function(require,module,exports){
+'use strict';
+
+function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
+
+exports.__esModule = true;
+
+var _Integration2 = require('./../Integration.js');
+
+var _Integration3 = _interopRequireDefault(_Integration2);
+
+function _interopRequireDefault(obj) {
+ return obj && obj.__esModule ? obj : { 'default': obj };
+}
+
+function _classCallCheck(instance, Constructor) {
+ if (!(instance instanceof Constructor)) {
+ throw new TypeError("Cannot call a class as a function");
+ }
+}
+
+function _possibleConstructorReturn(self, call) {
+ if (!self) {
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ }return call && ((typeof call === 'undefined' ? 'undefined' : _typeof(call)) === "object" || typeof call === "function") ? call : self;
+}
+
+function _inherits(subClass, superClass) {
+ if (typeof superClass !== "function" && superClass !== null) {
+ throw new TypeError("Super expression must either be null or a function, not " + (typeof superClass === 'undefined' ? 'undefined' : _typeof(superClass)));
+ }subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } });if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass;
+}
+
+var Vkontakte = (function (_Integration) {
+ _inherits(Vkontakte, _Integration);
+
+ function Vkontakte(digitalData, options) {
+ _classCallCheck(this, Vkontakte);
+
+ var optionsWithDefaults = Object.assign({
+ eventPixels: {}
+ }, options);
+
+ var _this = _possibleConstructorReturn(this, _Integration.call(this, digitalData, optionsWithDefaults));
+
+ _this._isLoaded = false;
+ return _this;
+ }
+
+ Vkontakte.prototype.initialize = function initialize() {
+ this._isLoaded = true;
+ this.ready();
+ };
+
+ Vkontakte.prototype.isLoaded = function isLoaded() {
+ return this._isLoaded;
+ };
+
+ Vkontakte.prototype.reset = function reset() {
+ // nothing to reset
+ };
+
+ Vkontakte.prototype.trackEvent = function trackEvent(event) {
+ var eventPixels = this.getOption('eventPixels');
+ if (eventPixels[event.name]) {
+ var pixelUrl = eventPixels[event.name];
+ this.addPixel(pixelUrl);
+ }
+ };
+
+ Vkontakte.prototype.addPixel = function addPixel(pixelUrl) {
+ (window.Image ? new Image() : window.document.createElement('img')).src = window.location.protocol + pixelUrl;
+ };
+
+ return Vkontakte;
+})(_Integration3['default']);
+
+exports['default'] = Vkontakte;
+
+},{"./../Integration.js":69}],99:[function(require,module,exports){
'use strict';
function _typeof(obj) { return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj; }
@@ -9542,13 +9470,19 @@ var YandexMetrica = (function (_Integration) {
exports['default'] = YandexMetrica;
-},{"./../Integration.js":56,"./../functions/deleteProperty.js":60}],86:[function(require,module,exports){
+},{"./../Integration.js":69,"./../functions/deleteProperty.js":73}],100:[function(require,module,exports){
'use strict';
-require('core-js/modules/es5');
+require('core-js/modules/es6.object.create');
+
+require('core-js/modules/es6.array.is-array');
+
+require('core-js/modules/es6.array.index-of');
+
+require('core-js/modules/es6.function.bind');
require('core-js/modules/es6.object.assign');
require('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}]},{},[74]);
+},{"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]);
diff --git a/dist/dd-manager.min.js b/dist/dd-manager.min.js
index 3c4ec4f..3266a0e 100644
--- a/dist/dd-manager.min.js
+++ b/dist/dd-manager.min.js
@@ -1,5 +1,5 @@
-!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=0&&t.length%1===0}function f(t,e){for(var n=-1,r=t.length;++nr?r:null}):(n=q(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($.eachOf,e,n,r)}}function E(t){return function(e,n,r,o){return t(v(n),e,r,o)}}function P(t){return function(e,n,r){return t($.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 _(t,e,n,r){k(t,e,function(t,e){n(t,function(t){e(!t)})},r)}function A(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 S(t,e){return e}function O(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,B(e)||(e=[e]),0===e.length&&t.idle()?$.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 $.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=e;e++)$.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 T(t){return function(e,n,r){t(l(e),n,r)}}function x(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?$.setImmediate(function(){n.apply(null,t)}):n.apply(null,t)});var r=!0;t.apply(this,e),r=!1})}var R,$={},M="object"==typeof self&&self.self===self&&self||"object"==typeof n&&n.global===n&&n||this;null!=M&&(R=M.async),$.noConflict=function(){return M.async=R,$};var V=Object.prototype.toString,B=Array.isArray||function(t){return"[object Array]"===V.call(t)},U=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},q=Object.keys||function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e},N="function"==typeof setImmediate&&setImmediate,z=N?function(t){N(t)}:function(t){setTimeout(t,0)};"object"==typeof t&&"function"==typeof t.nextTick?$.nextTick=t.nextTick:$.nextTick=z,$.setImmediate=N?z:$.nextTick,$.forEach=$.each=function(t,e,n){return $.eachOf(t,w(e),n)},$.forEachSeries=$.eachSeries=function(t,e,n){return $.eachOfSeries(t,w(e),n)},$.forEachLimit=$.eachLimit=function(t,e,n,r){return v(e)(t,w(n),r)},$.forEachOf=$.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)},$.forEachOfSeries=$.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?$.setImmediate(o):o()}})),void(r=!1))}n=u(n||r),t=t||[];var i=g(t),a=i();o()},$.forEachOfLimit=$.eachOfLimit=function(t,e,n,r){v(e)(t,n,r)},$.map=b(j),$.mapSeries=P(j),$.mapLimit=E(j),$.inject=$.foldl=$.reduce=function(t,e,n,r){$.eachOfSeries(t,function(t,r,o){n(e,t,function(t,n){e=n,o(t)})},function(t){r(t,e)})},$.foldr=$.reduceRight=function(t,e,n,r){var i=d(t,o).reverse();$.reduce(i,e,n,r)},$.transform=function(t,e,n,r){3===arguments.length&&(r=n,n=e,e=B(t)?[]:{}),$.eachOf(t,function(t,r,o){n(e,t,r,o)},function(t){r(t,e)})},$.select=$.filter=b(k),$.selectLimit=$.filterLimit=E(k),$.selectSeries=$.filterSeries=P(k),$.reject=b(_),$.rejectLimit=E(_),$.rejectSeries=P(_),$.any=$.some=A($.eachOf,i,o),$.someLimit=A($.eachOfLimit,i,o),$.all=$.every=A($.eachOf,a,a),$.everyLimit=A($.eachOfLimit,a,a),$.detect=A($.eachOf,o,S),$.detectSeries=A($.eachOfSeries,o,S),$.detectLimit=A($.eachOfLimit,o,S),$.sortBy=function(t,e,n){function r(t,e){var n=t.criteria,r=e.criteria;return r>n?-1:n>r?1:0}$.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}))})},$.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=q(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=B(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,$.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(B(s)&&y(s,r)>=0)throw new Error("Has cyclic dependencies")}c()?(l++,f[f.length-1](g,d)):o(u)})},$.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))}$.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},$.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),!B(t)){var o=new Error("First argument to waterfall must be an array of functions");return e(o)}return t.length?void n($.iterator(t))():e()},$.parallel=function(t,e){O($.eachOf,t,e)},$.parallelLimit=function(t,e,n){O(v(e),t,n)},$.series=function(t,e){O($.eachOfSeries,t,e)},$.iterator=function(t){function e(n){function r(){return t.length&&t[n].apply(null,arguments),r.next()}return r.next=function(){return nr;){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,B(e)||(e=[e]),0===e.length?$.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(),$.setImmediate(t.process)})}var a=$.queue(t,e);return a.push=function(t,e,n){i(a,t,e,n)},delete a.unshift,a},$.cargo=function(t,e){return C(t,1,e)},$.log=D("log"),$.dir=D("dir"),$.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?$.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},$.unmemoize=function(t){return function(){return(t.unmemoized||t).apply(null,arguments)}},$.times=T($.map),$.timesSeries=T($.mapSeries),$.timesLimit=function(t,e,n,r){return $.mapLimit(l(t),e,n,r)},$.seq=function(){var t=arguments;return m(function(e){var n=this,o=e[e.length-1];"function"==typeof o?e.pop():o=r,$.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))})})},$.compose=function(){return $.seq.apply(null,Array.prototype.reverse.call(arguments))},$.applyEach=x($.eachOf),$.applyEachSeries=x($.eachOfSeries),$.forever=function(t,e){function n(t){return t?o(t):void i(n)}var o=c(e||r),i=L(t);n()},$.ensureAsync=L,$.constant=m(function(t){var e=[null].concat(t);return function(t){return t.apply(this,e)}}),$.wrapSync=$.asyncify=function(t){return m(function(e){var n,r=e.pop();try{n=t.apply(this,e)}catch(o){return r(o)}U(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=$:"function"==typeof define&&define.amd?define([],function(){return $}):M.async=$}()}).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===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(X(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&&X(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 z(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 z(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 S(this,e,n);case"ascii":return I(this,e,n);case"binary":return C(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(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 E(t,e,n,r){return G(z(e,t.length-n),t,n,r)}function P(t,e,n,r){return G(F(e),t,n,r)}function j(t,e,n,r){return P(t,e,n,r)}function k(t,e,n,r){return G(H(e),t,n,r)}function _(t,e,n,r){return G(Y(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?W.fromByteArray(t):W.fromByteArray(t.slice(e,n))}function S(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 O(r)}function O(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+=N(t[i]);return o}function T(t,e,n){for(var r=t.slice(e,n),o="",i=0;it)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 $(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 V(t,e,n,r,o){return o||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),Q.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,o){return o||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),Q.write(t,e,n,r,52,8),n+8}function U(t){if(t=q(t).replace(tt,""),t.length<2)return"";for(;t.length%4!==0;)t+="=";return t}function q(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function N(t){return 16>t?"0"+t.toString(16):t.toString(16)}function z(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>8,o=n%256,i.push(o),i.push(r);return i}function H(t){return W.toByteArray(U(t))}function G(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 W=t("base64-js"),Q=t("ieee754"),X=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(!X(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;n0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(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+o2147483647?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 P(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 _(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||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i0&&(o*=256);)r+=this[t+--e]*o;return r},i.prototype.readUInt8=function(t,e){return e||x(t,1,this.length),this[t]},i.prototype.readUInt16LE=function(t,e){return e||x(t,2,this.length),this[t]|this[t+1]<<8},i.prototype.readUInt16BE=function(t,e){return e||x(t,2,this.length),this[t]<<8|this[t+1]},i.prototype.readUInt32LE=function(t,e){return e||x(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||x(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||x(t,e,this.length);for(var r=this[t],o=1,i=0;++i=o&&(r-=Math.pow(2,8*e)),r},i.prototype.readIntBE=function(t,e,n){t=0|t,e=0|e,n||x(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||x(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},i.prototype.readInt16LE=function(t,e){e||x(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||x(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||x(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||x(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||x(t,4,this.length),Q.read(this,t,!0,23,4)},i.prototype.readFloatBE=function(t,e){return e||x(t,4,this.length),Q.read(this,t,!1,23,4)},i.prototype.readDoubleLE=function(t,e){return e||x(t,8,this.length),Q.read(this,t,!0,52,8)},i.prototype.readDoubleBE=function(t,e){return e||x(t,8,this.length),Q.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=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):$(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):$(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>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):$(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):$(this,t,e,!1),e+4},i.prototype.writeFloatLE=function(t,e,n){return V(this,t,e,!0,n)},i.prototype.writeFloatBE=function(t,e,n){return V(this,t,e,!1,n)},i.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},i.prototype.writeDoubleBE=function(t,e,n){return B(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-en&&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=z(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,
-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: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 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;or;++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 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;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"),c=t("./$.array-species-create");e.exports=function(t){var e=1==t,n=2==t,u=3==t,s=4==t,f=6==t,d=5==t||f;return function(l,p,h){for(var y,g,m=i(l),w=o(m),v=r(p,h,3),b=a(w.length),E=0,P=e?c(l,b):n?c(l,0):void 0;b>E;E++)if((d||E in w)&&(y=w[E],g=v(y,E,m),t))if(e)P[E]=g;else if(g)switch(t){case 3:return!0;case 5:return y;case 6:return E;case 2:P.push(y)}else if(s)return!1;return f?-1:u||s?s:P}}},{"./$.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"),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]={}),E=b[u]||(b[u]={});y&&(n=e);for(f in n)d=!h&&v&&f in v,l=(d?v:n)[f],p=w&&d?c(l,r):m&&"function"==typeof l?c(Function.call,l):l,v&&!d&&a(v,f,l),b[f]!=l&&i(b,f,p),m&&E[f]!=l&&(E[f]=l)};r.core=o,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},{"./$.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,c=a.length,u=1,s=r.getKeys,f=r.getSymbols,d=r.isEnum;c>u;)for(var l,p=i(a[u++]),h=f?s(p).concat(f(p)):s(p),y=h.length,g=0;y>g;)d.call(p,l=h[g++])&&(n[l]=p[l]);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",c=Function[a],u=(""+c).split(a);t("./$.core").inspectSource=function(t){return c.call(t)},(e.exports=function(t,e,n,a){"function"==typeof n&&(n.hasOwnProperty(i)||o(n,i,t[e]?""+t[e]:u.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]||c.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",c="["+a+"]",u="
",s=RegExp("^"+c+c+"*"),f=RegExp(c+c+"*$"),d=function(t,e){var n={};n[t]=e(l),r(r.P+r.F*i(function(){return!!a[t]()||u[t]()!=u}),"String",n)},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":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"),c=t("./$.property-desc"),u=t("./$.html"),s=t("./$.dom-create"),f=t("./$.has"),d=t("./$.cof"),l=t("./$.invoke"),p=t("./$.fails"),h=t("./$.an-object"),y=t("./$.a-function"),g=t("./$.is-object"),m=t("./$.to-object"),w=t("./$.to-iobject"),v=t("./$.to-integer"),b=t("./$.to-index"),E=t("./$.to-length"),P=t("./$.iobject"),j=t("./$.uid")("__proto__"),k=t("./$.array-methods"),_=t("./$.array-includes")(!1),A=Object.prototype,S=Array.prototype,O=S.slice,I=S.join,C=o.setDesc,D=o.getDesc,T=o.setDescs,x={};a||(r=!p(function(){return 7!=C(s("div"),"a",{get:function(){return 7}}).a}),o.setDesc=function(t,e,n){if(r)try{return C(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)?c(!A.propertyIsEnumerable.call(t,e),t[e]):void 0},o.setDescs=T=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:T});var L="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),R=L.concat("length","prototype"),$=L.length,M=function(){var t,e=s("iframe"),n=$,r=">";for(e.style.display="none",u.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("i;)f(o,r=t[i++])&&(~_(a,r)||a.push(r));return a}},B=function(){};i(i.S,"Object",{getPrototypeOf:o.getProto=o.getProto||function(t){return t=m(t),f(t,j)?t[j]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?A:null},getOwnPropertyNames:o.getNames=o.getNames||V(R,R.length,!0),create:o.create=o.create||function(t,e){var n;return null!==t?(B.prototype=h(t),n=new B,B.prototype=null,n[j]=t):n=M(),void 0===e?n:T(n,e)},keys:o.getKeys=o.getKeys||V(L,$,!1)});var U=function(t,e,n){if(!(e in x)){for(var r=[],o=0;e>o;o++)r[o]="a["+o+"]";x[e]=Function("F,a","return new F("+r.join(",")+")")}return x[e](t,n)};i(i.P,"Function",{bind:function(t){var e=y(this),n=O.call(arguments,1),r=function(){var o=n.concat(O.call(arguments));return this instanceof r?U(e,o.length,o):l(e,o,t)};return g(e.prototype)&&(r.prototype=e.prototype),r}}),i(i.P+i.F*p(function(){u&&O.call(u)}),"Array",{slice:function(t,e){var n=E(this.length),r=d(this);if(e=void 0===e?n:e,"Array"==r)return O.call(this,t,e);for(var o=b(t,n),i=b(e,n),a=E(i-o),c=Array(a),u=0;a>u;u++)c[u]="String"==r?this.charAt(o+u):this[o+u];return c}}),i(i.P+i.F*(P!=Object),"Array",{join:function(t){return I.call(P(this),void 0===t?",":t)}}),i(i.S,"Array",{isArray:t("./$.is-array")});var q=function(t){return function(e,n){y(e);var r=P(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}},N=function(t){return function(e){return t(this,e,arguments[1])}};i(i.P,"Array",{forEach:o.each=o.each||N(k(0)),map:N(k(1)),filter:N(k(2)),some:N(k(3)),every:N(k(4)),reduce:q(!1),reduceRight:q(!0),indexOf:N(_),lastIndexOf:function(t,e){var n=w(this),r=E(n.length),o=r-1;for(arguments.length>1&&(o=Math.min(o,v(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 z=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)+"-"+z(t.getUTCMonth()+1)+"-"+z(t.getUTCDate())+"T"+z(t.getUTCHours())+":"+z(t.getUTCMinutes())+":"+z(t.getUTCSeconds())+"."+(n>99?n:"0"+z(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 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":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-(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:48}],46:[function(t,e,n){n.read=function(t,e,n,r,o){var i,a,c=8*o-r-1,u=(1<>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<>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<0;t[n+p]=255&a,p+=h,a/=256,s-=8);t[n+p-h]|=128*y}},{}],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*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)}},{}],49:[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=[];++d1)for(var n=1;n=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":63,"component-clone":4}],52:[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&&n0&&("product"===e?t.fireViewedProduct(n):"campaign"===e&&t.fireViewedCampaign(n))},n=["campaign","product"],r=0;r0&&"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},{}],53:[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":65}],54:[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":51,"component-type":6}],55:[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"),E=r(b),P=t("./DDHelper.js"),j=r(P),k=t("./EventDataEnricher.js"),_=r(k),A={},S=[],O={},I={},C=void 0,D=void 0,T=!1,x=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=[]),S=n||S,O=i(I)}return t.prototype.initialize=function(){var t=this,e=I.events;this.addEarlyCallbacks(),this.fireDefine(),S.push=function(e){t.addCallback(e),S[S.length]=e},this.fireUnfiredEvents(),e.push=function(n){t.fireEvent(n),e[e.length]=n},D&&D.onInitialize(),C=setInterval(function(){t.fireDefine(),t.checkForChanges()},100),T=!0},t.prototype.setAutoEvents=function(t){D=t,D.setDigitalData(I),D.setDDListener(S)},t.prototype.checkForChanges=function(){if(A.change&&A.change.length>0||A.define&&A.define.length>0){var t=i(I);if(!(0,E["default"])(O,t)){var e=i(O);O=(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(A.define&&A.define.length>0)for(var e=A.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,x),A.define.splice(A.define.indexOf(t),1))}},t.prototype.fireChange=function(t,e){var n=void 0;if(A.change&&A.change.length>0)for(var r=A.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,E["default"])(c,u)||n.handler(c,u,x)}else n.handler(t,e,x)}},t.prototype.fireEvent=function(t){var e=this,n=void 0;t.time=(new Date).getTime(),A.event?!function(){for(var r=[],o=[],i=(0,v["default"])((0,m["default"])(A.event),function(){"function"==typeof t.callback&&t.callback(r,o)}),a=function(t,e){void 0!==e&&r.push(e),t&&o.push(t),x(t),i()},u=A.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];A[o]=A[o]||[],i?A[o].push({key:i,handler:e}):A[o].push({handler:e}),T&&"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=S,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=_["default"][a],u=t[a];t[a]=c(u,I)}}return t},t.prototype.reset=function(){for(clearInterval(C);S.length;)S.pop();S.push=Array.prototype.push,A={},D=null},t}();n["default"]=L},{"./DDHelper.js":51,"./EventDataEnricher.js":54,"./functions/after.js":59,"./functions/deleteProperty.js":60,"./functions/jsonIsEqual.js":66,"./functions/noop.js":70,"./functions/size.js":72,async:1,"component-clone":4,debug:44}],56:[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"),E=o(b),P=t("debug"),j=o(P),k=t("async"),_=o(k),A=t("component-emitter"),S=o(A),O=t("./DDHelper.js"),I=o(O),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;_["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,E["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}(S["default"]);n["default"]=C},{"./DDHelper.js":51,"./functions/deleteProperty.js":60,"./functions/each.js":61,"./functions/format.js":62,"./functions/loadIframe.js":67,"./functions/loadPixel.js":68,"./functions/loadScript.js":69,"./functions/noop.js":70,async:1,"component-emitter":5,debug:44}],57:[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"),E=r(b),P=t("./integrations/MyTarget.js"),j=r(P),k=t("./integrations/YandexMetrica.js"),_=r(k),A={"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:E["default"],myTarget:j["default"],"Yandex Metrica":_["default"]};n["default"]=A},{"./integrations/Criteo.js":75,"./integrations/Driveback.js":76,"./integrations/FacebookPixel.js":77,"./integrations/GoogleAnalytics.js":78,"./integrations/GoogleTagManager.js":79,"./integrations/MyTarget.js":80,"./integrations/OWOXBIStreaming.js":81,"./integrations/RetailRocket.js":82,"./integrations/SegmentStream.js":83,"./integrations/SendPulse.js":84,"./integrations/YandexMetrica.js":85}],58:[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[T])?R=window[T]:window[T]=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 $[u]){var d=new $[u](L,f||{});C.addIntegration(u,d)}}else(0,m["default"])(n,function(t,e){if("function"==typeof $[t]){var n=new $[t](L,(0,s["default"])(e));C.addIntegration(t,n)}});var l=(0,y["default"])((0,p["default"])(V),e);(0,p["default"])(V)>0?(0,m["default"])(V,function(t,e){!e.isLoaded()||e.getOption("noConflict")?(e.once("ready",function(){e.enrichDigitalData(function(){M.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"),E=o(b),P=t("./EventManager.js"),j=o(P),k=t("./AutoEvents.js"),_=o(k),A=t("./DDHelper.js"),S=o(A),O=t("./DigitalDataEnricher.js"),I=o(O),C=void 0,D="digitalData",T="ddListener",x="ddManager",L={},R=[],$=void 0,M=void 0,V={},B=!1,U=!1;C={VERSION:"1.0.17",setAvailableIntegrations:function(t){$=t},processEarlyStubCalls:function(){for(var t=window[x]||[],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),B)throw new Error("ddManager is already initialized");a();var e=new I["default"](L);e.enrichDigitalData(),M=new j["default"](L,R),t.autoEvents!==!1&&M.setAutoEvents(new _["default"](t.autoEvents)),c(t,function(){U=!0,C.emit("ready")}),M.initialize(),B=!0,C.emit("initialize",t)},isInitialized:function(){return B},isReady:function(){return U},addIntegration:function(t,e){if(B)throw new Error("Adding integrations after ddManager initialization is not allowed");if(!e instanceof E["default"]||!t)throw new TypeError("attempted to add an invalid integration");V[t]=e},getIntegration:function(t){return V[t]},get:function(t){return S["default"].get(t,L)},getProduct:function(t){return S["default"].getProduct(t,L)},getCampaign:function(t){return S["default"].getCampaign(t,L)},reset:function(){M instanceof j["default"]&&M.reset(),(0,m["default"])(V,function(t,e){e.removeAllListeners(),e.reset()}),C.removeAllListeners(),M=null,V={},B=!1,U=!1},Integration:E["default"]},(0,v["default"])(C);var q=C.on;C.on=C.addEventListener=function(t,e){if("ready"===t){if(U)return void e()}else if("initialize"===t&&B)return void e();q.call(C,t,e)},n["default"]=C},{"./AutoEvents.js":50,"./DDHelper.js":51,"./DigitalDataEnricher.js":53,"./EventManager.js":55,"./Integration.js":56,"./functions/after.js":59,"./functions/each.js":61,"./functions/size.js":72,async:1,"component-clone":4,"component-emitter":5}],59:[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}}},{}],60:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(t,e){try{delete t[e]}catch(n){t[e]=void 0}}},{}],61:[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])}},{}],62:[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}},{}],63:[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}},{}],64:[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},{}],65:[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}}},{}],66:[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},{}],67:[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":71,async:1}],68:[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}},{}],69:[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":71,async:1}],70:[function(t,e,n){"use strict";n.__esModule=!0,n["default"]=function(){}},{}],71:[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)}},{}],72:[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}},{}],73:[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}],74:[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":57,"./ddManager.js":58,"./polyfill.js":86}],75:[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":56,"./../functions/deleteProperty.js":60}],76:[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":56,"./../functions/deleteProperty.js":60,"./../functions/noop.js":70}],77:[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":56,"./../functions/deleteProperty.js":60,"component-type":6}],78:[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"),E=o(b),P=t("component-clone"),j=o(P),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,E["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);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":56,"./../functions/deleteProperty.js":60,"./../functions/each.js":61,"./../functions/getProperty.js":63,"./../functions/size.js":72,"component-clone":4,"component-type":6}],79:[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},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")?(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":56,"./../functions/deleteProperty.js":60}],80:[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":56,"./../functions/deleteProperty.js":60}],81:[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)||(2036o;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"]=P},{"./../../src/functions/getProperty.js":63,"./../Integration.js":56,"./../functions/deleteProperty.js":60,"./../functions/format.js":62,"./../functions/getQueryParam.js":64,"./../functions/throwError.js":73,"component-type":6}],83:[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=0&&t.length%1===0}function f(t,e){for(var n=-1,r=t.length;++nr?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=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 nr;){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;it)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>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;n0&&(t=this.toString("hex",0,e).match(/.{2}/g).join(" "),this.length>e&&(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+o2147483647?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;++i0&&(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=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=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>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-en&&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,
+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;or;++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("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<>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<>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<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=[];++d1)for(var n=1;n=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&&n0&&("product"===n?t.fireViewedProduct(o):"campaign"===n&&t.fireViewedCampaign(o))},r=0;r0&&"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(),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.18",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);
+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},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")?(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)||(2036o;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",
- "version": "1.0.17",
+ "version": "1.0.18",
"license": "MIT",
"main": "dist/dd-manager.js",
"directories": {
@@ -40,11 +40,12 @@
"babel-plugin-transform-object-set-prototype-of-to-assign": "^6.1.18",
"babel-plugin-transform-proto-to-assign": "^6.1.18",
"babel-polyfill": "^6.2.0",
- "babel-preset-es2015": "^6.1.18",
- "babel-preset-es2015-mod": "^6.0.14",
+ "babel-preset-es2015": "^6.9.0",
+ "babel-preset-es2015-loose": "^7.0.0",
"babelify": "^7.2.0",
"browserify": "^12.0.1",
"chai": "^3.4.1",
+ "core-js": "^2.4.0",
"es5-shim": "^4.3.1",
"eslint": "^1.10.1",
"eslint-config-airbnb": "^1.0.0",
diff --git a/src/availableIntegrations.js b/src/availableIntegrations.js
index 9953212..fb532d4 100644
--- a/src/availableIntegrations.js
+++ b/src/availableIntegrations.js
@@ -9,6 +9,7 @@ import OWOXBIStreaming from './integrations/OWOXBIStreaming.js';
import Criteo from './integrations/Criteo.js';
import MyTarget from './integrations/MyTarget.js';
import YandexMetrica from './integrations/YandexMetrica.js';
+import Vkontakte from './integrations/Vkontakte.js';
const integrations = {
'Google Analytics': GoogleAnalytics,
@@ -22,6 +23,7 @@ const integrations = {
'Criteo': Criteo,
'myTarget': MyTarget,
'Yandex Metrica': YandexMetrica,
+ 'Vkontakte': Vkontakte,
};
export default integrations;
diff --git a/src/ddManager.js b/src/ddManager.js
index ca1af71..ede2059 100644
--- a/src/ddManager.js
+++ b/src/ddManager.js
@@ -142,7 +142,7 @@ function _initializeIntegrations(settings, onReady) {
ddManager = {
- VERSION: '1.0.17',
+ VERSION: '1.0.18',
setAvailableIntegrations: (availableIntegrations) => {
_availableIntegrations = availableIntegrations;
diff --git a/src/integrations/SendPulse.js b/src/integrations/SendPulse.js
index 5befca5..d2ad33b 100644
--- a/src/integrations/SendPulse.js
+++ b/src/integrations/SendPulse.js
@@ -122,7 +122,7 @@ class SendPulse extends Integration {
sendUserAttributes(newUser, oldUser) {
each(newUser, (key, value) => {
if (type(value) !== 'object' && (!oldUser || value !== oldUser[key])) {
- window.oSpP.push(key, value);
+ window.oSpP.push(key, String(value));
}
});
}
diff --git a/src/integrations/Vkontakte.js b/src/integrations/Vkontakte.js
new file mode 100644
index 0000000..7c5fb4a
--- /dev/null
+++ b/src/integrations/Vkontakte.js
@@ -0,0 +1,39 @@
+import Integration from './../Integration.js';
+
+class Vkontakte extends Integration {
+
+ constructor(digitalData, options) {
+ const optionsWithDefaults = Object.assign({
+ eventPixels: {},
+ }, options);
+ super(digitalData, optionsWithDefaults);
+ this._isLoaded = false;
+ }
+
+ initialize() {
+ this._isLoaded = true;
+ this.ready();
+ }
+
+ isLoaded() {
+ return this._isLoaded;
+ }
+
+ reset() {
+ // nothing to reset
+ }
+
+ trackEvent(event) {
+ const eventPixels = this.getOption('eventPixels');
+ if (eventPixels[event.name]) {
+ const pixelUrl = eventPixels[event.name];
+ this.addPixel(pixelUrl);
+ }
+ }
+
+ addPixel(pixelUrl) {
+ (window.Image ? (new Image()) : window.document.createElement('img')).src = window.location.protocol + pixelUrl;
+ }
+}
+
+export default Vkontakte;
diff --git a/src/polyfill.js b/src/polyfill.js
index a82a0bc..74601ed 100644
--- a/src/polyfill.js
+++ b/src/polyfill.js
@@ -1,3 +1,6 @@
-import 'core-js/modules/es5';
+import 'core-js/modules/es6.object.create';
+import 'core-js/modules/es6.array.is-array';
+import 'core-js/modules/es6.array.index-of';
+import 'core-js/modules/es6.function.bind';
import 'core-js/modules/es6.object.assign';
import 'core-js/modules/es6.string.trim';
diff --git a/test/index.test.js b/test/index.test.js
index 2c1e8f8..b1989f2 100644
--- a/test/index.test.js
+++ b/test/index.test.js
@@ -20,4 +20,5 @@ import './integrations/OWOXBIStreamingSpec.js'
import './integrations/CriteoSpec.js';
import './integrations/MyTargetSpec.js';
import './integrations/YandexMetricaSpec.js';
-import './integrations/CustomIntegrationSpec.js';
\ No newline at end of file
+import './integrations/CustomIntegrationSpec.js';
+import './integrations/VkontakteSpec.js';
\ No newline at end of file
diff --git a/test/integrations/SendPulseSpec.js b/test/integrations/SendPulseSpec.js
index 8ad8e3e..758d0ca 100644
--- a/test/integrations/SendPulseSpec.js
+++ b/test/integrations/SendPulseSpec.js
@@ -116,11 +116,13 @@ describe('SendPulse', function() {
it('should add additional params to SendPulse if user is subscribed', (done) => {
window.digitalData.user.city = 'New York';
+ window.digitalData.user.isBoolean = true;
window.digitalData.user.test = 'test';
window.oSpP.push.restore();
sinon.spy(window.oSpP, 'push');
setTimeout(() => {
assert.ok(window.oSpP.push.calledWith('city', 'New York'));
+ assert.ok(window.oSpP.push.calledWith('isBoolean', 'true'));
assert.ok(!window.oSpP.push.calledWith('test', 'test'));
done();
}, 101);
diff --git a/test/integrations/VkontakteSpec.js b/test/integrations/VkontakteSpec.js
new file mode 100644
index 0000000..200089c
--- /dev/null
+++ b/test/integrations/VkontakteSpec.js
@@ -0,0 +1,103 @@
+import assert from 'assert';
+import sinon from 'sinon';
+import reset from './../reset.js';
+import Vkontakte from './../../src/integrations/Vkontakte.js';
+import ddManager from './../../src/ddManager.js';
+
+describe('Integrations: Vkontakte', () => {
+
+ let vk;
+ const options = {
+ eventPixels: {
+ 'Viewed Product Detail': '//vk.com/rtrg?r=Ug6K6tdSZ*shxgTtjsI9bzDBp1ShCs3q3RdXVNHK1asqy2mLKDvJxuvWw8M7hqktulxtbSlnJsT7*/7Jf5MzEfqO3K5TF9z2zwlFLTuWCy3PiRkO9Ga1I6yOoseM*lfVbhVlQRoHjI5Bt66fOiB1TZLJEZ5nGwFALsuVd5WmSrk-'
+ },
+ };
+
+ beforeEach(() => {
+ window.digitalData = {
+ page: {},
+ user: {},
+ events: []
+ };
+ vk = new Vkontakte(window.digitalData, options);
+ ddManager.addIntegration('Vkontakte', vk);
+ });
+
+ afterEach(() => {
+ vk.reset();
+ ddManager.reset();
+ reset();
+ });
+
+ describe('before loading', () => {
+
+ describe('#constructor', () => {
+ it('should add proper options', () => {
+ assert.equal(options.eventPixels, vk.getOption('eventPixels'));
+ });
+ });
+
+ describe('#initialize', () => {
+ it('should call ready after initialization', () => {
+ sinon.stub(vk, 'ready');
+ ddManager.initialize();
+ assert.ok(vk.ready.calledOnce);
+ vk.ready.restore();
+ });
+ });
+ });
+
+ describe('loading', function () {
+ it('should load', function (done) {
+ assert.ok(!vk.isLoaded());
+ ddManager.once('ready', () => {
+ assert.ok(vk.isLoaded());
+ done();
+ });
+ ddManager.initialize({
+ autoEvents: false
+ });
+ });
+ });
+
+ describe('after loading', () => {
+ beforeEach((done) => {
+ sinon.spy(vk, 'addPixel');
+ ddManager.once('ready', done);
+ ddManager.initialize({
+ autoEvents: false
+ });
+ });
+
+ afterEach(() => {
+ vk.addPixel.restore();
+ });
+
+ describe('#onAnyEvent', () => {
+ it('should add pixel to the page', (done) => {
+ window.digitalData.events.push({
+ name: 'Viewed Product Detail',
+ category: 'Ecommerce',
+ page: {},
+ callback: () => {
+ assert.ok(vk.addPixel.called);
+ done();
+ }
+ });
+ });
+
+ it('should not add pixel to the page', (done) => {
+ window.digitalData.events.push({
+ name: 'Viewed Product',
+ category: 'Ecommerce',
+ page: {},
+ callback: () => {
+ assert.ok(!vk.addPixel.called);
+ done();
+ }
+ });
+ });
+
+ });
+ });
+});