diff --git a/src/lib/web-worker/worker-proxy.ts b/src/lib/web-worker/worker-proxy.ts
index f1060f13..640f467e 100644
--- a/src/lib/web-worker/worker-proxy.ts
+++ b/src/lib/web-worker/worker-proxy.ts
@@ -56,6 +56,9 @@ const queue = (
$groupedGetters$?: string[],
buffer?: ArrayBuffer | ArrayBufferView
) => {
+ if (!instance[ApplyPathKey]) {
+ return;
+ }
taskQueue.push({
$winId$: instance[WinIdKey],
$instanceId$: instance[InstanceIdKey],
diff --git a/tests/index.html b/tests/index.html
index 6503c7e9..24724c5a 100644
--- a/tests/index.html
+++ b/tests/index.html
@@ -121,6 +121,7 @@
Service Integration Tests
Hubspot Forms
Intercom
jQuery
+ Kiwi Sizing
Mermaid
Twitter Embed
Wistia
diff --git a/tests/integrations/clarity/clarity.spec.ts b/tests/integrations/clarity/clarity.spec.ts
new file mode 100644
index 00000000..d0a89fb6
--- /dev/null
+++ b/tests/integrations/clarity/clarity.spec.ts
@@ -0,0 +1,8 @@
+import { test, expect } from '@playwright/test';
+
+test('Clarity', async ({ page }) => {
+ await page.goto('/tests/integrations/clarity/');
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
+});
diff --git a/tests/integrations/clarity/index.html b/tests/integrations/clarity/index.html
index 437ec70b..96eb7be3 100644
--- a/tests/integrations/clarity/index.html
+++ b/tests/integrations/clarity/index.html
@@ -98,6 +98,20 @@
})(window, document, "clarity", "script", "avd6npx8xb");
+
+
Clarity
diff --git a/tests/integrations/hubspot/forms.html b/tests/integrations/hubspot/forms.html
index 8d1163b5..f4c28346 100644
--- a/tests/integrations/hubspot/forms.html
+++ b/tests/integrations/hubspot/forms.html
@@ -64,6 +64,19 @@
margin: 0 5px;
}
+
Hubspot Forms 🎉
diff --git a/tests/integrations/hubspot/hubspot.spec.ts b/tests/integrations/hubspot/hubspot.spec.ts
new file mode 100644
index 00000000..b7cf7eeb
--- /dev/null
+++ b/tests/integrations/hubspot/hubspot.spec.ts
@@ -0,0 +1,8 @@
+import { test, expect } from '@playwright/test';
+
+test('Hubspot', async ({ page }) => {
+ await page.goto('/tests/integrations/hubspot/forms.html');
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
+});
diff --git a/tests/integrations/jquery/index.html b/tests/integrations/jquery/index.html
index 89da6283..1c414314 100644
--- a/tests/integrations/jquery/index.html
+++ b/tests/integrations/jquery/index.html
@@ -83,6 +83,20 @@ jQuery
})();
+
+
All Tests
diff --git a/tests/integrations/jquery/jquery.spec.ts b/tests/integrations/jquery/jquery.spec.ts
index fa8696db..b7d975cb 100644
--- a/tests/integrations/jquery/jquery.spec.ts
+++ b/tests/integrations/jquery/jquery.spec.ts
@@ -1,10 +1,9 @@
import { test, expect } from '@playwright/test';
-test('jquery', async ({ page }) => {
- // await page.goto('/tests/integrations/jquery/');
- // await page.waitForSelector('.completed');
- // const buttonDataLayerPush = page.locator('#buttonDataLayerPush');
- // await buttonDataLayerPush.click();
- // const testDataLayer = page.locator('#testDataLayer');
- // await expect(testDataLayer).toHaveText('pushed');
+test('JQuery', async ({ page }) => {
+ await page.goto('/tests/integrations/jquery/');
+ await page.waitForSelector('.completed');
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
});
diff --git a/tests/integrations/kiwisizing/index.html b/tests/integrations/kiwisizing/index.html
new file mode 100644
index 00000000..50180158
--- /dev/null
+++ b/tests/integrations/kiwisizing/index.html
@@ -0,0 +1,142 @@
+
+
+
+
+
+
+
+ Kiwisizing 🎉
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Kiwisizing
+
+
+
+
+ Standard Kiwisizing
+ All Tests
+
+
diff --git a/tests/integrations/kiwisizing/kiwisizing.SizingPlugin.js b/tests/integrations/kiwisizing/kiwisizing.SizingPlugin.js
new file mode 100644
index 00000000..7567ec3f
--- /dev/null
+++ b/tests/integrations/kiwisizing/kiwisizing.SizingPlugin.js
@@ -0,0 +1,5578 @@
+!(function (t) {
+ function e(e) {
+ for (var n, o, i = e[0], c = e[1], a = 0, s = []; a < i.length; a++)
+ (o = i[a]), Object.prototype.hasOwnProperty.call(r, o) && r[o] && s.push(r[o][0]), (r[o] = 0);
+ for (n in c) Object.prototype.hasOwnProperty.call(c, n) && (t[n] = c[n]);
+ for (u && u(e); s.length; ) s.shift()();
+ }
+ var n = {},
+ r = { 3: 0 };
+ function o(e) {
+ if (n[e]) return n[e].exports;
+ var r = (n[e] = { i: e, l: !1, exports: {} });
+ return t[e].call(r.exports, r, r.exports, o), (r.l = !0), r.exports;
+ }
+ (o.e = function (t) {
+ var e = [],
+ n = r[t];
+ if (0 !== n)
+ if (n) e.push(n[2]);
+ else {
+ var i = new Promise(function (e, o) {
+ n = r[t] = [e, o];
+ });
+ e.push((n[2] = i));
+ var c,
+ a = document.createElement('script');
+ (a.charset = 'utf-8'),
+ (a.timeout = 120),
+ o.nc && a.setAttribute('nonce', o.nc),
+ (a.src = (function (t) {
+ return (
+ o.p +
+ 'plugin/SizingPlugin.' +
+ ({ 0: 'SizingCalculatorHandler', 1: 'execute', 2: 'lazysizes', 4: 'nouislider' }[t] ||
+ t) +
+ '.' +
+ {
+ 0: 'f3a23df950ff4b92a7e7',
+ 1: '5de5b6ebe8328143f558',
+ 2: 'aabda804ec4b4c054b87',
+ 4: 'fffc20ccc5ba706be7d8',
+ }[t] +
+ '.prod.js'
+ );
+ })(t));
+ var u = new Error();
+ c = function (e) {
+ (a.onerror = a.onload = null), clearTimeout(s);
+ var n = r[t];
+ if (0 !== n) {
+ if (n) {
+ var o = e && ('load' === e.type ? 'missing' : e.type),
+ i = e && e.target && e.target.src;
+ (u.message = 'Loading chunk ' + t + ' failed.\n(' + o + ': ' + i + ')'),
+ (u.name = 'ChunkLoadError'),
+ (u.type = o),
+ (u.request = i),
+ n[1](u);
+ }
+ r[t] = void 0;
+ }
+ };
+ var s = setTimeout(function () {
+ c({ type: 'timeout', target: a });
+ }, 12e4);
+ (a.onerror = a.onload = c), document.head.appendChild(a);
+ }
+ return Promise.all(e);
+ }),
+ (o.m = t),
+ (o.c = n),
+ (o.d = function (t, e, n) {
+ o.o(t, e) || Object.defineProperty(t, e, { enumerable: !0, get: n });
+ }),
+ (o.r = function (t) {
+ 'undefined' != typeof Symbol &&
+ Symbol.toStringTag &&
+ Object.defineProperty(t, Symbol.toStringTag, { value: 'Module' }),
+ Object.defineProperty(t, '__esModule', { value: !0 });
+ }),
+ (o.t = function (t, e) {
+ if ((1 & e && (t = o(t)), 8 & e)) return t;
+ if (4 & e && 'object' == typeof t && t && t.__esModule) return t;
+ var n = Object.create(null);
+ if (
+ (o.r(n),
+ Object.defineProperty(n, 'default', { enumerable: !0, value: t }),
+ 2 & e && 'string' != typeof t)
+ )
+ for (var r in t)
+ o.d(
+ n,
+ r,
+ function (e) {
+ return t[e];
+ }.bind(null, r)
+ );
+ return n;
+ }),
+ (o.n = function (t) {
+ var e =
+ t && t.__esModule
+ ? function () {
+ return t.default;
+ }
+ : function () {
+ return t;
+ };
+ return o.d(e, 'a', e), e;
+ }),
+ (o.o = function (t, e) {
+ return Object.prototype.hasOwnProperty.call(t, e);
+ }),
+ (o.p = 'https://cdn.static.kiwisizing.com/'),
+ (o.oe = function (t) {
+ throw (console.error(t), t);
+ });
+ var i = (window.KiwiSizingPluginJsonp = window.KiwiSizingPluginJsonp || []),
+ c = i.push.bind(i);
+ (i.push = e), (i = i.slice());
+ for (var a = 0; a < i.length; a++) e(i[a]);
+ var u = c;
+ o((o.s = 168));
+})([
+ function (t, e, n) {
+ var r = n(1),
+ o = n(30).f,
+ i = n(16),
+ c = n(15),
+ a = n(74),
+ u = n(101),
+ s = n(71);
+ t.exports = function (t, e) {
+ var n,
+ f,
+ l,
+ p,
+ d,
+ v = t.target,
+ h = t.global,
+ g = t.stat;
+ if ((n = h ? r : g ? r[v] || a(v, {}) : (r[v] || {}).prototype))
+ for (f in e) {
+ if (
+ ((p = e[f]),
+ (l = t.noTargetGet ? (d = o(n, f)) && d.value : n[f]),
+ !s(h ? f : v + (g ? '.' : '#') + f, t.forced) && void 0 !== l)
+ ) {
+ if (typeof p == typeof l) continue;
+ u(p, l);
+ }
+ (t.sham || (l && l.sham)) && i(p, 'sham', !0), c(n, f, p, t);
+ }
+ };
+ },
+ function (t, e, n) {
+ (function (e) {
+ var n = function (t) {
+ return t && t.Math == Math && t;
+ };
+ t.exports =
+ n('object' == typeof globalThis && globalThis) ||
+ n('object' == typeof window && window) ||
+ n('object' == typeof self && self) ||
+ n('object' == typeof e && e) ||
+ Function('return this')();
+ }.call(this, n(94)));
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(76),
+ i = n(9),
+ c = n(77),
+ a = n(80),
+ u = n(107),
+ s = o('wks'),
+ f = r.Symbol,
+ l = u ? f : (f && f.withoutSetter) || c;
+ t.exports = function (t) {
+ return i(s, t) || (a && i(f, t) ? (s[t] = f[t]) : (s[t] = l('Symbol.' + t))), s[t];
+ };
+ },
+ function (t, e) {
+ t.exports = function (t) {
+ try {
+ return !!t();
+ } catch (t) {
+ return !0;
+ }
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ n.d(e, 'a', function () {
+ return i;
+ });
+ n(66), n(23);
+ var r = n(5),
+ o = !!n.n(r).a.cookie.get('kiwi-show-logs');
+ function i(t) {
+ if (window.location.href.indexOf('log=true') > 0 || o || window.inAdmin) {
+ for (var e, n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), i = 1; i < n; i++)
+ r[i - 1] = arguments[i];
+ (e = console).log.apply(e, ['[Kiwi]: '.concat(t)].concat(r));
+ }
+ }
+ },
+ function (t, e, n) {
+ var r;
+ !(function () {
+ var o = function (t) {
+ return o.utils.extend({}, o.plugins, new o.Storage().init(t));
+ };
+ (o.version = '0.4.10'),
+ (o.utils = {
+ extend: function () {
+ for (
+ var t = 'object' == typeof arguments[0] ? arguments[0] : {}, e = 1;
+ e < arguments.length;
+ e++
+ )
+ if (arguments[e] && 'object' == typeof arguments[e])
+ for (var n in arguments[e]) t[n] = arguments[e][n];
+ return t;
+ },
+ each: function (t, e, n) {
+ if (this.isArray(t)) {
+ for (var r = 0; r < t.length; r++) if (!1 === e.call(n, t[r], r)) return;
+ } else if (t) for (var o in t) if (!1 === e.call(n, t[o], o)) return;
+ },
+ tryEach: function (t, e, n, r) {
+ this.each(
+ t,
+ function (t, o) {
+ try {
+ return e.call(r, t, o);
+ } catch (e) {
+ if (this.isFunction(n))
+ try {
+ n.call(r, t, o, e);
+ } catch (t) {}
+ }
+ },
+ this
+ );
+ },
+ registerPlugin: function (t) {
+ o.plugins = this.extend(t, o.plugins);
+ },
+ getTypeOf: function (t) {
+ return null == t
+ ? '' + t
+ : Object.prototype.toString.call(t).replace(/^\[object\s(.*)\]$/, function (t, e) {
+ return e.toLowerCase();
+ });
+ },
+ });
+ for (
+ var i = [
+ 'Arguments',
+ 'Boolean',
+ 'Function',
+ 'String',
+ 'Array',
+ 'Number',
+ 'Date',
+ 'RegExp',
+ 'Undefined',
+ 'Null',
+ ],
+ c = 0;
+ c < i.length;
+ c++
+ )
+ o.utils['is' + i[c]] = (function (t) {
+ return function (e) {
+ return o.utils.getTypeOf(e) === t.toLowerCase();
+ };
+ })(i[c]);
+ (o.plugins = {}),
+ (o.options = o.utils.extend(
+ {
+ namespace: 'b45i1',
+ storages: ['local', 'cookie', 'session', 'memory'],
+ expireDays: 365,
+ keyDelimiter: '.',
+ },
+ window.Basil ? window.Basil.options : {}
+ )),
+ (o.Storage = function () {
+ var t = 'b45i1' + (Math.random() + 1).toString(36).substring(7),
+ e = {},
+ n = function (t) {
+ var e = o.utils.getTypeOf(t);
+ return ('string' === e && t) || 'number' === e || 'boolean' === e;
+ },
+ r = function (t) {
+ return o.utils.isArray(t) ? t : o.utils.isString(t) ? [t] : [];
+ },
+ i = function (t, e, r) {
+ var i = '';
+ return (
+ n(e)
+ ? (i += e)
+ : o.utils.isArray(e) &&
+ (i = (e = o.utils.isFunction(e.filter) ? e.filter(n) : e).join(r)),
+ i && n(t) ? t + r + i : i
+ );
+ },
+ c = function (t, e, r) {
+ return n(t) ? e.replace(new RegExp('^' + t + r), '') : e;
+ },
+ a = {
+ engine: null,
+ check: function () {
+ try {
+ window[this.engine].setItem(t, !0), window[this.engine].removeItem(t);
+ } catch (t) {
+ return !1;
+ }
+ return !0;
+ },
+ set: function (t, e, n) {
+ if (!t) throw Error('invalid key');
+ window[this.engine].setItem(t, e);
+ },
+ get: function (t) {
+ return window[this.engine].getItem(t);
+ },
+ remove: function (t) {
+ window[this.engine].removeItem(t);
+ },
+ reset: function (t) {
+ for (var e, n = 0; n < window[this.engine].length; n++)
+ (e = window[this.engine].key(n)),
+ (t && 0 !== e.indexOf(t)) || (this.remove(e), n--);
+ },
+ keys: function (t, e) {
+ for (var n, r = [], o = 0; o < window[this.engine].length; o++)
+ (n = window[this.engine].key(o)), (t && 0 !== n.indexOf(t)) || r.push(c(t, n, e));
+ return r;
+ },
+ };
+ return (
+ (e.local = o.utils.extend({}, a, { engine: 'localStorage' })),
+ (e.session = o.utils.extend({}, a, { engine: 'sessionStorage' })),
+ (e.memory = {
+ _hash: {},
+ check: function () {
+ return !0;
+ },
+ set: function (t, e, n) {
+ if (!t) throw Error('invalid key');
+ this._hash[t] = e;
+ },
+ get: function (t) {
+ return this._hash[t] || null;
+ },
+ remove: function (t) {
+ delete this._hash[t];
+ },
+ reset: function (t) {
+ for (var e in this._hash) (t && 0 !== e.indexOf(t)) || this.remove(e);
+ },
+ keys: function (t, e) {
+ var n = [];
+ for (var r in this._hash) (t && 0 !== r.indexOf(t)) || n.push(c(t, r, e));
+ return n;
+ },
+ }),
+ (e.cookie = {
+ check: function (e) {
+ if (!navigator.cookieEnabled) return !1;
+ if (window.self !== window.top) {
+ var n = 'thirdparty.check=' + Math.round(1e3 * Math.random());
+ return (document.cookie = n + '; path=/'), -1 !== document.cookie.indexOf(n);
+ }
+ if (e && e.secure)
+ try {
+ this.set(t, t, e);
+ var r = this.get(t) === t;
+ return this.remove(t), r;
+ } catch (t) {
+ return !1;
+ }
+ return !0;
+ },
+ set: function (t, e, n) {
+ if (!this.check()) throw Error('cookies are disabled');
+ if (((n = n || {}), !t)) throw Error('invalid key');
+ var r = encodeURIComponent(t) + '=' + encodeURIComponent(e);
+ if (n.expireDays) {
+ var o = new Date();
+ o.setTime(o.getTime() + 24 * n.expireDays * 60 * 60 * 1e3),
+ (r += '; expires=' + o.toGMTString());
+ }
+ if (n.domain && n.domain !== document.domain) {
+ var i = n.domain.replace(/^\./, '');
+ if (-1 === document.domain.indexOf(i) || i.split('.').length <= 1)
+ throw Error('invalid domain');
+ r += '; domain=' + n.domain;
+ }
+ !0 === n.secure && (r += '; Secure'), (document.cookie = r + '; path=/');
+ },
+ get: function (t) {
+ if (!this.check()) throw Error('cookies are disabled');
+ for (
+ var e,
+ n = encodeURIComponent(t),
+ r = document.cookie ? document.cookie.split(';') : [],
+ o = r.length - 1;
+ o >= 0;
+ o--
+ )
+ if (0 === (e = r[o].replace(/^\s*/, '')).indexOf(n + '='))
+ return decodeURIComponent(e.substring(n.length + 1, e.length));
+ return null;
+ },
+ remove: function (t) {
+ this.set(t, '', { expireDays: -1 });
+ for (var e = document.domain.split('.'), n = e.length; n > 1; n--)
+ this.set(t, '', { expireDays: -1, domain: '.' + e.slice(-n).join('.') });
+ },
+ reset: function (t) {
+ for (
+ var e, n, r = document.cookie ? document.cookie.split(';') : [], o = 0;
+ o < r.length;
+ o++
+ )
+ (n = (e = r[o].replace(/^\s*/, '')).substr(0, e.indexOf('='))),
+ (t && 0 !== n.indexOf(t)) || this.remove(n);
+ },
+ keys: function (t, e) {
+ if (!this.check()) throw Error('cookies are disabled');
+ for (
+ var n, r, o = [], i = document.cookie ? document.cookie.split(';') : [], a = 0;
+ a < i.length;
+ a++
+ )
+ (n = i[a].replace(/^\s*/, '')),
+ (r = decodeURIComponent(n.substr(0, n.indexOf('=')))),
+ (t && 0 !== r.indexOf(t)) || o.push(c(t, r, e));
+ return o;
+ },
+ }),
+ {
+ init: function (t) {
+ return this.setOptions(t), this;
+ },
+ setOptions: function (t) {
+ this.options = o.utils.extend({}, this.options || o.options, t);
+ },
+ support: function (t) {
+ return e.hasOwnProperty(t);
+ },
+ check: function (t) {
+ return !!this.support(t) && e[t].check(this.options);
+ },
+ set: function (t, n, c) {
+ if (
+ ((c = o.utils.extend({}, this.options, c)),
+ !(t = i(c.namespace, t, c.keyDelimiter)))
+ )
+ return !1;
+ n =
+ !0 === c.raw
+ ? n
+ : (function (t) {
+ return JSON.stringify(t);
+ })(n);
+ var a = null;
+ return (
+ o.utils.tryEach(
+ r(c.storages),
+ function (r, o) {
+ return e[r].set(t, n, c), (a = r), !1;
+ },
+ null,
+ this
+ ),
+ !!a &&
+ (o.utils.tryEach(
+ r(c.storages),
+ function (n, r) {
+ n !== a && e[n].remove(t);
+ },
+ null,
+ this
+ ),
+ !0)
+ );
+ },
+ get: function (t, n) {
+ if (
+ ((n = o.utils.extend({}, this.options, n)),
+ !(t = i(n.namespace, t, n.keyDelimiter)))
+ )
+ return null;
+ var c = null;
+ return (
+ o.utils.tryEach(
+ r(n.storages),
+ function (r, o) {
+ if (null !== c) return !1;
+ (c = e[r].get(t, n) || null),
+ (c =
+ !0 === n.raw
+ ? c
+ : (function (t) {
+ return t ? JSON.parse(t) : null;
+ })(c));
+ },
+ function (t, e, n) {
+ c = null;
+ },
+ this
+ ),
+ c
+ );
+ },
+ remove: function (t, n) {
+ (n = o.utils.extend({}, this.options, n)),
+ (t = i(n.namespace, t, n.keyDelimiter)) &&
+ o.utils.tryEach(
+ r(n.storages),
+ function (n) {
+ e[n].remove(t);
+ },
+ null,
+ this
+ );
+ },
+ reset: function (t) {
+ (t = o.utils.extend({}, this.options, t)),
+ o.utils.tryEach(
+ r(t.storages),
+ function (n) {
+ e[n].reset(t.namespace);
+ },
+ null,
+ this
+ );
+ },
+ keys: function (t) {
+ t = t || {};
+ var e = [];
+ for (var n in this.keysMap(t)) e.push(n);
+ return e;
+ },
+ keysMap: function (t) {
+ t = o.utils.extend({}, this.options, t);
+ var n = {};
+ return (
+ o.utils.tryEach(
+ r(t.storages),
+ function (r) {
+ o.utils.each(
+ e[r].keys(t.namespace, t.keyDelimiter),
+ function (t) {
+ (n[t] = o.utils.isArray(n[t]) ? n[t] : []), n[t].push(r);
+ },
+ this
+ );
+ },
+ null,
+ this
+ ),
+ n
+ );
+ },
+ }
+ );
+ }),
+ (o.memory = new o.Storage().init({ storages: 'memory', namespace: null, raw: !0 })),
+ (o.cookie = new o.Storage().init({ storages: 'cookie', namespace: null, raw: !0 })),
+ (o.localStorage = new o.Storage().init({ storages: 'local', namespace: null, raw: !0 })),
+ (o.sessionStorage = new o.Storage().init({
+ storages: 'session',
+ namespace: null,
+ raw: !0,
+ })),
+ (window.Basil = o),
+ void 0 ===
+ (r = function () {
+ return o;
+ }.call(e, n, e, t)) || (t.exports = r);
+ })();
+ },
+ function (t, e, n) {
+ var r = n(8);
+ t.exports = function (t) {
+ if (!r(t)) throw TypeError(String(t) + ' is not an object');
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(3);
+ t.exports = !r(function () {
+ return (
+ 7 !=
+ Object.defineProperty({}, 1, {
+ get: function () {
+ return 7;
+ },
+ })[1]
+ );
+ });
+ },
+ function (t, e) {
+ t.exports = function (t) {
+ return 'object' == typeof t ? null !== t : 'function' == typeof t;
+ };
+ },
+ function (t, e) {
+ var n = {}.hasOwnProperty;
+ t.exports = function (t, e) {
+ return n.call(t, e);
+ };
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(99),
+ i = n(6),
+ c = n(51),
+ a = Object.defineProperty;
+ e.f = r
+ ? a
+ : function (t, e, n) {
+ if ((i(t), (e = c(e, !0)), i(n), o))
+ try {
+ return a(t, e, n);
+ } catch (t) {}
+ if ('get' in n || 'set' in n) throw TypeError('Accessors not supported');
+ return 'value' in n && (t[e] = n.value), t;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ n.d(e, 'd', function () {
+ return h;
+ }),
+ n.d(e, 'c', function () {
+ return g;
+ }),
+ n.d(e, 'b', function () {
+ return w;
+ }),
+ n.d(e, 'a', function () {
+ return x;
+ });
+ n(65), n(135), n(134), n(26), n(29), n(28), n(36), n(37), n(34), n(35), n(38), n(39);
+ var r = n(33),
+ o = n(13),
+ i = n(4),
+ c = n(12),
+ a = n(19);
+ function u(t, e) {
+ var n = Object.keys(t);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(t);
+ e &&
+ (r = r.filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function s(t) {
+ for (var e = 1; e < arguments.length; e++) {
+ var n = null != arguments[e] ? arguments[e] : {};
+ e % 2
+ ? u(Object(n), !0).forEach(function (e) {
+ f(t, e, n[e]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
+ : u(Object(n)).forEach(function (e) {
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
+ });
+ }
+ return t;
+ }
+ function f(t, e, n) {
+ return (
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n),
+ t
+ );
+ }
+ var l = o.a.getParams,
+ p = o.a.API_PREFIX,
+ d = ''.concat(p, '/log'),
+ v = !1;
+ function h(t, e) {
+ var n = t.analytics || {};
+ e !== a.KiwiSizingPlans.FREE &&
+ n.enableGA &&
+ ((v = !0),
+ Object(i.a)('[GA] Trying to enable google analytics'),
+ !window.ga && n.GAAccount
+ ? (Object(i.a)('[GA] GA not found. initialize '.concat(n.GAAccount)),
+ (window.ga =
+ window.ga ||
+ function () {
+ (window.ga.q = window.ga.q || []).push(arguments);
+ }),
+ (window.ga.l = +new Date()),
+ (window.ga_debug = { trace: !1 }),
+ window.ga('create', n.GAAccount, 'auto'),
+ (function () {
+ var t = document.createElement('script');
+ (t.type = 'text/javascript'),
+ (t.async = !0),
+ (t.src =
+ ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') +
+ '.google-analytics.com/analytics.js');
+ var e = document.getElementsByTagName('script')[0];
+ e.parentNode && e.parentNode.insertBefore(t, e);
+ })())
+ : Object(i.a)('[GA] Fail to initialize: no GA code'));
+ }
+ function g(t, e) {
+ Math.random() > 0.3 || S({ event: 'getSizeChartTTL', data: { duration: t, size: e / 1e3 } });
+ }
+ var y = !1,
+ m = !1;
+ function w(t, e) {
+ if ('pageView' === t) {
+ if (y) return;
+ y = !0;
+ }
+ if ('loadSizeChart.render.success' === t) {
+ if (m) return;
+ m = !0;
+ }
+ S({ event: t, data: e || {} });
+ }
+ var b = [],
+ O = !1;
+ function S(t) {
+ var e;
+ if (!window.inAdmin) {
+ var n = null;
+ if (
+ (window.Shopify &&
+ window.Shopify.theme &&
+ (n = {
+ id: window.Shopify.theme.id,
+ name: window.Shopify.theme.name,
+ themeStoreID: window.Shopify.theme.theme_store_id,
+ }),
+ v && window.ga)
+ )
+ switch ((Object(i.a)('[GA] log '.concat(t.event)), t.event)) {
+ case 'loadSizeChart.render.success':
+ window.ga(
+ 'send',
+ 'event',
+ 'KiwiSizing',
+ 'sizeChartLoaded',
+ t.data.productTitle || '',
+ { nonInteraction: !0 }
+ );
+ break;
+ case 'openModal.sizeChart':
+ window.ga(
+ 'send',
+ 'event',
+ 'KiwiSizing',
+ 'clickSizeChartLink',
+ t.data.productTitle || ''
+ );
+ break;
+ case 'openModal.floatButton':
+ window.ga(
+ 'send',
+ 'event',
+ 'KiwiSizing',
+ 'clickSizeChartFloatButton',
+ t.data.productTitle || ''
+ );
+ break;
+ case 'openModal.recommender':
+ window.ga(
+ 'send',
+ 'event',
+ 'KiwiSizing',
+ 'clickSizeRecommenderLink',
+ t.data.productTitle || ''
+ );
+ }
+ b.push(
+ s({}, t, {
+ data: s({}, t.data, {
+ SIZING_SCRIPT_VERSION: void 0,
+ url: window.location.href,
+ time: new Date().getTime(),
+ pageID:
+ null != (e = window) && null != (e = e.KiwiSizing) && null != (e = e.data)
+ ? e.product
+ : e,
+ userID: window._ks_userID,
+ theme: n,
+ }),
+ })
+ ),
+ O || ((O = !0), setTimeout(E, 1500));
+ }
+ }
+ function E() {
+ O = !1;
+ var t = { shop: Object(c.a)(), event: 'batchLogs', data: JSON.stringify(b) };
+ (b = []),
+ Object(r.a)({ url: d, method: 'post', withCredentials: !0, body: l(t) }, function () {
+ Object(i.a)('Logged', t);
+ });
+ }
+ function x(t, e, n) {
+ var r = t.name,
+ o = t.message,
+ c = t.stack;
+ Object(i.a)('error', t),
+ S({
+ event: 'pluginError',
+ data: s(
+ {
+ place: e,
+ error: { name: r, message: o, stack: c },
+ kiwiSizingData: window.KiwiSizing,
+ },
+ n
+ ),
+ });
+ }
+ },
+ function (t, e, n) {
+ 'use strict';
+ n.d(e, 'a', function () {
+ return o;
+ });
+ var r = n(27);
+ function o() {
+ return Object(r.a)(window._ks_shopID);
+ }
+ },
+ function (t, e, n) {
+ 'use strict';
+ n(129), n(29), n(23), n(91), n(66), n(24), n(161), n(141), n(27);
+ var r = n(4),
+ o = (n(5), n(19)),
+ i = ''.concat('https://app.kiwisizing.com', '/api');
+ function c(t, e, n) {
+ t.addEventListener
+ ? t.addEventListener(e, n, !1)
+ : t.attachEvent && t.attachEvent('on' + e, n);
+ }
+ function a(t) {
+ return Object.keys(t).map(function (e) {
+ return t[e];
+ });
+ }
+ var u = {
+ AllMetricUnits: [].concat.apply([], a(o.MetricUnitTypeOptions)),
+ AllUSUnits: [].concat.apply([], a(o.USUnitTypeOptions)),
+ setOnClick: function (t, e) {
+ c(t, 'click', function (t) {
+ t.preventDefault(), t.stopPropagation(), e(t);
+ });
+ },
+ makeSafe: function (t) {
+ return function () {
+ try {
+ return t.apply(this, arguments);
+ } catch (t) {
+ Object(r.a)('Error thrown', t);
+ }
+ };
+ },
+ bind: c,
+ getParams: function (t) {
+ return Object.keys(t)
+ .map(function (e) {
+ return ''.concat(e, '=').concat(encodeURIComponent(t[e]));
+ })
+ .join('&');
+ },
+ objectValues: a,
+ unique: function (t, e, n) {
+ return n.indexOf(t) === e;
+ },
+ API_PREFIX: i,
+ getNumLeadingSpaces: function (t) {
+ var e = t.search(/\S/);
+ return e <= 0 ? 0 : e;
+ },
+ getNumTrailingSpaces: function (t) {
+ var e = t.match(/\s*$/);
+ return e ? e[0].length : 0;
+ },
+ SPACE: ' ',
+ };
+ e.a = u;
+ },
+ function (t, e, n) {
+ 'use strict';
+ n(23),
+ n(163),
+ n(164),
+ n(165),
+ n(65),
+ n(60),
+ n(147),
+ n(26),
+ n(28),
+ n(64),
+ n(63),
+ n(47),
+ n(62),
+ n(61);
+ var r = n(128),
+ o = n.n(r),
+ i = n(4);
+ function c(t) {
+ return (c =
+ 'function' == typeof Symbol && 'symbol' == typeof Symbol.iterator
+ ? function (t) {
+ return typeof t;
+ }
+ : function (t) {
+ return t &&
+ 'function' == typeof Symbol &&
+ t.constructor === Symbol &&
+ t !== Symbol.prototype
+ ? 'symbol'
+ : typeof t;
+ })(t);
+ }
+ function a(t, e) {
+ for (var n = 0; n < e.length; n++) {
+ var r = e[n];
+ (r.enumerable = r.enumerable || !1),
+ (r.configurable = !0),
+ 'value' in r && (r.writable = !0),
+ Object.defineProperty(t, r.key, r);
+ }
+ }
+ function u(t, e) {
+ return (u =
+ Object.setPrototypeOf ||
+ function (t, e) {
+ return (t.__proto__ = e), t;
+ })(t, e);
+ }
+ function s(t, e) {
+ return !e || ('object' !== c(e) && 'function' != typeof e) ? f(t) : e;
+ }
+ function f(t) {
+ if (void 0 === t)
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
+ return t;
+ }
+ function l(t) {
+ return (l = Object.setPrototypeOf
+ ? Object.getPrototypeOf
+ : function (t) {
+ return t.__proto__ || Object.getPrototypeOf(t);
+ })(t);
+ }
+ var p = {},
+ d = new ((function (t) {
+ !(function (t, e) {
+ if ('function' != typeof e && null !== e)
+ throw new TypeError('Super expression must either be null or a function');
+ (t.prototype = Object.create(e && e.prototype, {
+ constructor: { value: t, writable: !0, configurable: !0 },
+ })),
+ e && u(t, e);
+ })(c, t);
+ var e,
+ n,
+ r,
+ o = (function (t) {
+ function e() {
+ if ('undefined' == typeof Reflect || !Reflect.construct) return !1;
+ if (Reflect.construct.sham) return !1;
+ if ('function' == typeof Proxy) return !0;
+ try {
+ return (
+ Date.prototype.toString.call(Reflect.construct(Date, [], function () {})), !0
+ );
+ } catch (t) {
+ return !1;
+ }
+ }
+ return function () {
+ var n,
+ r = l(t);
+ if (e()) {
+ var o = l(this).constructor;
+ n = Reflect.construct(r, arguments, o);
+ } else n = r.apply(this, arguments);
+ return s(this, n);
+ };
+ })(c);
+ function c(t) {
+ var e;
+ return (
+ (function (t, e) {
+ if (!(t instanceof e)) throw new TypeError('Cannot call a class as a function');
+ })(this, c),
+ (function (t, e, n) {
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n);
+ })(f((e = o.call(this))), '_key', void 0),
+ (e._key = t),
+ e
+ );
+ }
+ return (
+ (e = c),
+ (n = [
+ {
+ key: 'emitEvent',
+ value: function (t) {
+ for (var e = arguments.length, n = new Array(e > 1 ? e - 1 : 0), r = 1; r < e; r++)
+ n[r - 1] = arguments[r];
+ i.a.apply(void 0, ['Emit change', t].concat(n)),
+ this.emit.apply(this, [t].concat(n));
+ },
+ },
+ {
+ key: 'addEventListener',
+ value: function (t, e) {
+ this.on(t, e);
+ },
+ },
+ {
+ key: 'removeEventListener',
+ value: function (t, e) {
+ this.removeListener(t, e);
+ },
+ },
+ {
+ key: 'getStore',
+ value: function (t) {
+ if (p[t]) return p[t];
+ var e = new c(t);
+ return e.setMaxListeners(500), (p[t] = e), p[t];
+ },
+ },
+ ]) && a(e.prototype, n),
+ r && a(e, r),
+ c
+ );
+ })(o.a.EventEmitter))('global');
+ d.setMaxListeners(500), (e.a = d);
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(16),
+ i = n(9),
+ c = n(74),
+ a = n(75),
+ u = n(32),
+ s = u.get,
+ f = u.enforce,
+ l = String(String).split('String');
+ (t.exports = function (t, e, n, a) {
+ var u = !!a && !!a.unsafe,
+ s = !!a && !!a.enumerable,
+ p = !!a && !!a.noTargetGet;
+ 'function' == typeof n &&
+ ('string' != typeof e || i(n, 'name') || o(n, 'name', e),
+ (f(n).source = l.join('string' == typeof e ? e : ''))),
+ t !== r
+ ? (u ? !p && t[e] && (s = !0) : delete t[e], s ? (t[e] = n) : o(t, e, n))
+ : s
+ ? (t[e] = n)
+ : c(e, n);
+ })(Function.prototype, 'toString', function () {
+ return ('function' == typeof this && s(this).source) || a(this);
+ });
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(10),
+ i = n(44);
+ t.exports = r
+ ? function (t, e, n) {
+ return o.f(t, e, i(1, n));
+ }
+ : function (t, e, n) {
+ return (t[e] = n), t;
+ };
+ },
+ function (t, e) {
+ t.exports = function (t) {
+ if (null == t) throw TypeError("Can't call method on " + t);
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(70),
+ o = n(17);
+ t.exports = function (t) {
+ return r(o(t));
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r, o, i;
+ function c(t, e) {
+ var n = Object.keys(t);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(t);
+ e &&
+ (r = r.filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function a(t, e, n) {
+ return (
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n),
+ t
+ );
+ }
+ n(26), n(29), n(28), n(36), n(37), n(34), n(35), n(38), n(39);
+ var u = {
+ VERY_LOOSE: 'very_loose',
+ LOOSE: 'loose',
+ LOOSER: 'looser',
+ REGULAR: 'regular',
+ TIGHTER: 'tighter',
+ TIGHT: 'tight',
+ VERY_TIGHT: 'very_tight',
+ SLIM: 'slim',
+ },
+ s = (function (t) {
+ for (var e = 1; e < arguments.length; e++) {
+ var n = null != arguments[e] ? arguments[e] : {};
+ e % 2
+ ? c(Object(n), !0).forEach(function (e) {
+ a(t, e, n[e]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
+ : c(Object(n)).forEach(function (e) {
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
+ });
+ }
+ return t;
+ })({}, u, { WITHIN_RANGE: 'within_range' }),
+ f = {
+ length: ['mm', 'cm', 'cm-ft', 'm', 'km'],
+ weight: ['mg', 'g', 'kg', 't'],
+ volume: ['ml', 'l'],
+ },
+ l = { ADULT: 0, KID: 1, TODDLER: 2 },
+ p = { MALE: 0, FEMALE: 1, UNISEX: 2 },
+ d = (a((r = {}), l.ADULT, 'adult'), a(r, l.KID, 'kid'), a(r, l.TODDLER, 'toddler'), r),
+ v = (a((o = {}), p.FEMALE, 'female'), a(o, p.MALE, 'male'), o);
+ t.exports =
+ (a(
+ (i = {
+ SizingTableType: { REGULAR: 0, CROSS_TABLE: 1 },
+ UnitSystem: { US: 0, METRIC: 1 },
+ SizingLayoutType: {
+ HTML: 0,
+ TABLE: 1,
+ CALCULATOR: 2,
+ TAB: 3,
+ ACCORDION: 4,
+ DIVIDER: 5,
+ IMAGE: 6,
+ VIDEO: 7,
+ CODE: 8,
+ IMAGE_AND_CAPTION: 9,
+ IMAGE_GROUP: 10,
+ INTERNATIONAL_CHART: 11,
+ CROSS_TABLE: 12,
+ LAYOUT: 13,
+ },
+ SizingDisplayMode: { INLINE: 0, LINK_MODAL: 1, BUTTON_MODAL: 2 },
+ KiwiSizingProductMatchingType: {
+ ALL: 'all',
+ PRODUCT: 'product',
+ PRODUCT_TAG: 'product_tag',
+ PRODUCT_NAME: 'product_name',
+ COLLECTION: 'collection',
+ PRODUCT_TYPE: 'product_type',
+ VENDOR: 'vendor',
+ SKU: 'sku',
+ CATEGORY: 'category',
+ BRAND: 'brand',
+ },
+ SizingTableConditionType: { ANY: 0, ALL: 1 },
+ InjectionOrder: {
+ BEFORE: 0,
+ AFTER: 1,
+ BEGINNING_OF: 2,
+ END_OF: 3,
+ HIJACK: 4,
+ DO_NOT_INJECT: -1,
+ },
+ KiwiSizingUnitDisplayMode: { TOGGLE: 0, INLINE: 1, CELL_INLINE: 2 },
+ KiwiSizingPlans: { FREE: 0, UNLIMITED: 1, ULTIMATE: 2 },
+ KiwiSizingSortType: {
+ NEWEST_UPDATE: 'newest_update',
+ OLDEST_UPDATE: 'oldest_update',
+ TITLE_ASC: 'title_asc',
+ TITLE_DESC: 'title_desc',
+ },
+ KiwiSizingFilterType: {
+ TEMPLATE: 'template',
+ STATUS: 'status',
+ CALCULATOR_TYPE: 'calculator',
+ },
+ KiwiSizingCalculatorStepType: {
+ NUMBER: 'number',
+ SELECT: 'select',
+ MATH_RESULT: 'mathResult',
+ SWITCH_RESULT: 'switchResult',
+ TABLE_RESULT: 'tableResult',
+ TEXT: 'text',
+ DIVIDER: 'divider',
+ },
+ KiwiSizingCalculatorType: { TABLE: 0, CUSTOM: 1, ADVANCED: 2 },
+ MetricUnitTypeOptions: f,
+ USUnitTypeOptions: {
+ length: ['in', 'ft', 'ft-cm', 'yd', 'mi'],
+ weight: ['oz', 'lb', 'ton'],
+ volume: ['tsp', 'Tbsp', 'fl oz', 'c', 'pt', 'qt', 'gal'],
+ },
+ }),
+ 'MetricUnitTypeOptions',
+ f
+ ),
+ a(i, 'SizingChartLayoutType', { BOTH: 0, RECOMMENDER_ONLY: 1, LAYOUT_ONLY: 2 }),
+ a(i, 'KiwiSizingFitPreference', u),
+ a(i, 'KiwiSizingAdminFitPreference', s),
+ a(i, 'KiwiSizingCalculatorFieldType', { NUMBER: 0, SELECT_DROPDOWN: 1, SELECT_RADIO: 2 }),
+ a(i, 'ProductMeasurement', {
+ SHIRT_LENGTH_FROM_MID_COLLAR: 0,
+ CHEST_BODY: 1,
+ UNDER_BUST: 2,
+ WAIST_BODY: 3,
+ SLEEVE_LENGTH_FROM_MID_COLLAR: 4,
+ INSEAM: 5,
+ HIP_BODY: 6,
+ THIGH: 7,
+ HEM: 8,
+ BICEP: 9,
+ SLEEVE_OPENING: 10,
+ COLLAR_BODY: 11,
+ SHOULDER_WIDTH_BODY: 12,
+ LEG_OPENING: 13,
+ FRONT_RISE: 14,
+ SHIRT_LENGTH_FROM_SHOULDER: 15,
+ TORSO: 16,
+ KNEE: 18,
+ CHEST_PRODUCT: 19,
+ WAIST_PRODUCT: 20,
+ HIP_PRODUCT: 21,
+ COLLAR_PRODUCT: 22,
+ SHOULDER_WIDTH_PRODUCT: 23,
+ CHEST_PRODUCT_HALF: 24,
+ BACK_RISE: 25,
+ WAIST_PRODUCT_HALF: 26,
+ SLEEVE_OPENING_HALF: 27,
+ SLEEVE_LENGTH_FROM_SHOULDER: 28,
+ BICEP_HALF: 29,
+ HEM_HALF: 30,
+ HIP_PRODUCT_HALF: 31,
+ THIGH_HALF: 32,
+ LEG_OPENING_HALF: 33,
+ KNEE_HALF: 34,
+ BOTTOM_LENGTH: 35,
+ WAIST_TO_HEM: 36,
+ HEIGHT: 37,
+ }),
+ a(i, 'ProductMeasurementType', { COVER: 0, LENGTH: 1, CUSTOM: 2 }),
+ a(i, 'ProductShoulderIntendedFit', { ON: 'on', ON_OR_OVER: 'on_or_over' }),
+ a(i, 'ProductMeasurementIntentType', { BODY: 0, PRODUCT: 1 }),
+ a(i, 'ProductAge', l),
+ a(i, 'ProductGender', p),
+ a(i, 'ProductCategoryType', { TOP: 0, BOTTOM: 1, BOTH: 2, ACCESSORIES: 3 }),
+ a(i, 'ProductCategory', {
+ SLEEVE_DRESS: 0,
+ NO_SLEEVE_DRESS: 1,
+ STRAPLESS_DRESS: 2,
+ LONG_SLEEVE_SHIRT: 3,
+ SHORT_SLEEVE_SHIRT: 4,
+ SLEEVELESS_SHIRT: 5,
+ BLAZER: 6,
+ JACKET: 7,
+ SWIM_SUIT: 8,
+ SKIRTS: 9,
+ LONG_PANTS: 10,
+ SHORTS: 11,
+ BRIEFS: 12,
+ BRA: 13,
+ LEGGINGS: 14,
+ JUMPSUIT: 15,
+ WETSUIT: 16,
+ }),
+ a(i, 'ProductAgeName', d),
+ a(i, 'ProductGenderName', v),
+ a(i, 'ProductBodyShape', { LOWER: 0, AVERAGE: 1, HIGHER: 2 }),
+ a(i, 'ProductBottomRise', { LOW: 'low', MID: 'mid', HIGH: 'high' }),
+ a(i, 'CountrySizesInjectPostion', { START_OF_TABLE: -1, END_OF_TABLE: 1 }),
+ a(i, 'KiwiSizingHistoryType', { SETTING: 0, SIZE_CHART: 1 }),
+ i);
+ },
+ function (t, e, n) {
+ var r = n(48),
+ o = Math.min;
+ t.exports = function (t) {
+ return t > 0 ? o(r(t), 9007199254740991) : 0;
+ };
+ },
+ function (t, e, n) {
+ var r = n(17);
+ t.exports = function (t) {
+ return Object(r(t));
+ };
+ },
+ function (t, e) {
+ var n = {}.toString;
+ t.exports = function (t) {
+ return n.call(t).slice(8, -1);
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(3),
+ i = n(50),
+ c = n(8),
+ a = n(21),
+ u = n(20),
+ s = n(68),
+ f = n(98),
+ l = n(69),
+ p = n(2),
+ d = n(83),
+ v = p('isConcatSpreadable'),
+ h =
+ d >= 51 ||
+ !o(function () {
+ var t = [];
+ return (t[v] = !1), t.concat()[0] !== t;
+ }),
+ g = l('concat'),
+ y = function (t) {
+ if (!c(t)) return !1;
+ var e = t[v];
+ return void 0 !== e ? !!e : i(t);
+ };
+ r(
+ { target: 'Array', proto: !0, forced: !h || !g },
+ {
+ concat: function (t) {
+ var e,
+ n,
+ r,
+ o,
+ i,
+ c = a(this),
+ l = f(c, 0),
+ p = 0;
+ for (e = -1, r = arguments.length; e < r; e++)
+ if (((i = -1 === e ? c : arguments[e]), y(i))) {
+ if (p + (o = u(i.length)) > 9007199254740991)
+ throw TypeError('Maximum allowed index exceeded');
+ for (n = 0; n < o; n++, p++) n in i && s(l, p, i[n]);
+ } else {
+ if (p >= 9007199254740991) throw TypeError('Maximum allowed index exceeded');
+ s(l, p++, i);
+ }
+ return (l.length = p), l;
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(56);
+ r({ target: 'RegExp', proto: !0, forced: /./.exec !== o }, { exec: o });
+ },
+ function (t, e, n) {
+ var r = n(103),
+ o = n(1),
+ i = function (t) {
+ return 'function' == typeof t ? t : void 0;
+ };
+ t.exports = function (t, e) {
+ return arguments.length < 2 ? i(r[t]) || i(o[t]) : (r[t] && r[t][e]) || (o[t] && o[t][e]);
+ };
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(7);
+ r({ target: 'Object', stat: !0, forced: !o, sham: !o }, { defineProperty: n(10).f });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(90),
+ o = n.n(r);
+ e.a = function (t) {
+ return o()(null != t, 'Cannot be null'), t;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(1),
+ i = n(25),
+ c = n(41),
+ a = n(7),
+ u = n(80),
+ s = n(107),
+ f = n(3),
+ l = n(9),
+ p = n(50),
+ d = n(8),
+ v = n(6),
+ h = n(21),
+ g = n(18),
+ y = n(51),
+ m = n(44),
+ w = n(42),
+ b = n(72),
+ O = n(52),
+ S = n(160),
+ E = n(105),
+ x = n(30),
+ _ = n(10),
+ T = n(97),
+ j = n(16),
+ I = n(15),
+ k = n(76),
+ A = n(53),
+ P = n(54),
+ L = n(77),
+ R = n(2),
+ C = n(127),
+ D = n(126),
+ N = n(59),
+ M = n(32),
+ U = n(49).forEach,
+ F = A('hidden'),
+ z = R('toPrimitive'),
+ H = M.set,
+ G = M.getterFor('Symbol'),
+ B = Object.prototype,
+ K = o.Symbol,
+ V = i('JSON', 'stringify'),
+ q = x.f,
+ W = _.f,
+ Y = S.f,
+ $ = T.f,
+ J = k('symbols'),
+ X = k('op-symbols'),
+ Q = k('string-to-symbol-registry'),
+ Z = k('symbol-to-string-registry'),
+ tt = k('wks'),
+ et = o.QObject,
+ nt = !et || !et.prototype || !et.prototype.findChild,
+ rt =
+ a &&
+ f(function () {
+ return (
+ 7 !=
+ w(
+ W({}, 'a', {
+ get: function () {
+ return W(this, 'a', { value: 7 }).a;
+ },
+ })
+ ).a
+ );
+ })
+ ? function (t, e, n) {
+ var r = q(B, e);
+ r && delete B[e], W(t, e, n), r && t !== B && W(B, e, r);
+ }
+ : W,
+ ot = function (t, e) {
+ var n = (J[t] = w(K.prototype));
+ return H(n, { type: 'Symbol', tag: t, description: e }), a || (n.description = e), n;
+ },
+ it = s
+ ? function (t) {
+ return 'symbol' == typeof t;
+ }
+ : function (t) {
+ return Object(t) instanceof K;
+ },
+ ct = function (t, e, n) {
+ t === B && ct(X, e, n), v(t);
+ var r = y(e, !0);
+ return (
+ v(n),
+ l(J, r)
+ ? (n.enumerable
+ ? (l(t, F) && t[F][r] && (t[F][r] = !1), (n = w(n, { enumerable: m(0, !1) })))
+ : (l(t, F) || W(t, F, m(1, {})), (t[F][r] = !0)),
+ rt(t, r, n))
+ : W(t, r, n)
+ );
+ },
+ at = function (t, e) {
+ v(t);
+ var n = g(e),
+ r = b(n).concat(lt(n));
+ return (
+ U(r, function (e) {
+ (a && !ut.call(n, e)) || ct(t, e, n[e]);
+ }),
+ t
+ );
+ },
+ ut = function (t) {
+ var e = y(t, !0),
+ n = $.call(this, e);
+ return (
+ !(this === B && l(J, e) && !l(X, e)) &&
+ (!(n || !l(this, e) || !l(J, e) || (l(this, F) && this[F][e])) || n)
+ );
+ },
+ st = function (t, e) {
+ var n = g(t),
+ r = y(e, !0);
+ if (n !== B || !l(J, r) || l(X, r)) {
+ var o = q(n, r);
+ return !o || !l(J, r) || (l(n, F) && n[F][r]) || (o.enumerable = !0), o;
+ }
+ },
+ ft = function (t) {
+ var e = Y(g(t)),
+ n = [];
+ return (
+ U(e, function (t) {
+ l(J, t) || l(P, t) || n.push(t);
+ }),
+ n
+ );
+ },
+ lt = function (t) {
+ var e = t === B,
+ n = Y(e ? X : g(t)),
+ r = [];
+ return (
+ U(n, function (t) {
+ !l(J, t) || (e && !l(B, t)) || r.push(J[t]);
+ }),
+ r
+ );
+ };
+ (u ||
+ (I(
+ (K = function () {
+ if (this instanceof K) throw TypeError('Symbol is not a constructor');
+ var t = arguments.length && void 0 !== arguments[0] ? String(arguments[0]) : void 0,
+ e = L(t),
+ n = function (t) {
+ this === B && n.call(X, t),
+ l(this, F) && l(this[F], e) && (this[F][e] = !1),
+ rt(this, e, m(1, t));
+ };
+ return a && nt && rt(B, e, { configurable: !0, set: n }), ot(e, t);
+ }).prototype,
+ 'toString',
+ function () {
+ return G(this).tag;
+ }
+ ),
+ I(K, 'withoutSetter', function (t) {
+ return ot(L(t), t);
+ }),
+ (T.f = ut),
+ (_.f = ct),
+ (x.f = st),
+ (O.f = S.f = ft),
+ (E.f = lt),
+ (C.f = function (t) {
+ return ot(R(t), t);
+ }),
+ a &&
+ (W(K.prototype, 'description', {
+ configurable: !0,
+ get: function () {
+ return G(this).description;
+ },
+ }),
+ c || I(B, 'propertyIsEnumerable', ut, { unsafe: !0 }))),
+ r({ global: !0, wrap: !0, forced: !u, sham: !u }, { Symbol: K }),
+ U(b(tt), function (t) {
+ D(t);
+ }),
+ r(
+ { target: 'Symbol', stat: !0, forced: !u },
+ {
+ for: function (t) {
+ var e = String(t);
+ if (l(Q, e)) return Q[e];
+ var n = K(e);
+ return (Q[e] = n), (Z[n] = e), n;
+ },
+ keyFor: function (t) {
+ if (!it(t)) throw TypeError(t + ' is not a symbol');
+ if (l(Z, t)) return Z[t];
+ },
+ useSetter: function () {
+ nt = !0;
+ },
+ useSimple: function () {
+ nt = !1;
+ },
+ }
+ ),
+ r(
+ { target: 'Object', stat: !0, forced: !u, sham: !a },
+ {
+ create: function (t, e) {
+ return void 0 === e ? w(t) : at(w(t), e);
+ },
+ defineProperty: ct,
+ defineProperties: at,
+ getOwnPropertyDescriptor: st,
+ }
+ ),
+ r(
+ { target: 'Object', stat: !0, forced: !u },
+ { getOwnPropertyNames: ft, getOwnPropertySymbols: lt }
+ ),
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced: f(function () {
+ E.f(1);
+ }),
+ },
+ {
+ getOwnPropertySymbols: function (t) {
+ return E.f(h(t));
+ },
+ }
+ ),
+ V) &&
+ r(
+ {
+ target: 'JSON',
+ stat: !0,
+ forced:
+ !u ||
+ f(function () {
+ var t = K();
+ return '[null]' != V([t]) || '{}' != V({ a: t }) || '{}' != V(Object(t));
+ }),
+ },
+ {
+ stringify: function (t, e, n) {
+ for (var r, o = [t], i = 1; arguments.length > i; ) o.push(arguments[i++]);
+ if (((r = e), (d(e) || void 0 !== t) && !it(t)))
+ return (
+ p(e) ||
+ (e = function (t, e) {
+ if (('function' == typeof r && (e = r.call(this, t, e)), !it(e))) return e;
+ }),
+ (o[1] = e),
+ V.apply(null, o)
+ );
+ },
+ }
+ );
+ K.prototype[z] || j(K.prototype, z, K.prototype.valueOf), N(K, 'Symbol'), (P[F] = !0);
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(21),
+ i = n(72);
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced: n(3)(function () {
+ i(1);
+ }),
+ },
+ {
+ keys: function (t) {
+ return i(o(t));
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(97),
+ i = n(44),
+ c = n(18),
+ a = n(51),
+ u = n(9),
+ s = n(99),
+ f = Object.getOwnPropertyDescriptor;
+ e.f = r
+ ? f
+ : function (t, e) {
+ if (((t = c(t)), (e = a(e, !0)), s))
+ try {
+ return f(t, e);
+ } catch (t) {}
+ if (u(t, e)) return i(!o.f.call(t, e), t[e]);
+ };
+ },
+ function (t, e) {
+ t.exports = function (t) {
+ if ('function' != typeof t) throw TypeError(String(t) + ' is not a function');
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r,
+ o,
+ i,
+ c = n(148),
+ a = n(1),
+ u = n(8),
+ s = n(16),
+ f = n(9),
+ l = n(53),
+ p = n(54),
+ d = a.WeakMap;
+ if (c) {
+ var v = new d(),
+ h = v.get,
+ g = v.has,
+ y = v.set;
+ (r = function (t, e) {
+ return y.call(v, t, e), e;
+ }),
+ (o = function (t) {
+ return h.call(v, t) || {};
+ }),
+ (i = function (t) {
+ return g.call(v, t);
+ });
+ } else {
+ var m = l('state');
+ (p[m] = !0),
+ (r = function (t, e) {
+ return s(t, m, e), e;
+ }),
+ (o = function (t) {
+ return f(t, m) ? t[m] : {};
+ }),
+ (i = function (t) {
+ return f(t, m);
+ });
+ }
+ t.exports = {
+ set: r,
+ get: o,
+ has: i,
+ enforce: function (t) {
+ return i(t) ? o(t) : r(t, {});
+ },
+ getterFor: function (t) {
+ return function (e) {
+ var n;
+ if (!u(e) || (n = o(e)).type !== t)
+ throw TypeError('Incompatible receiver, ' + t + ' required');
+ return n;
+ };
+ },
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ n.d(e, 'a', function () {
+ return l;
+ });
+ n(26), n(29), n(28), n(36), n(37), n(34), n(35), n(38), n(39);
+ var r = n(5),
+ o = n.n(r),
+ i = n(43),
+ c = n.n(i);
+ function a(t, e) {
+ var n = Object.keys(t);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(t);
+ e &&
+ (r = r.filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function u(t) {
+ for (var e = 1; e < arguments.length; e++) {
+ var n = null != arguments[e] ? arguments[e] : {};
+ e % 2
+ ? a(Object(n), !0).forEach(function (e) {
+ s(t, e, n[e]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
+ : a(Object(n)).forEach(function (e) {
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
+ });
+ }
+ return t;
+ }
+ function s(t, e, n) {
+ return (
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n),
+ t
+ );
+ }
+ var f = 'kiwi-sizing-token';
+ function l(t, e) {
+ var n = o.a.cookie.get(f);
+ n && (t.headers = u({}, t.headers, s({}, f, n))),
+ window.kiwiSizingAdminToken &&
+ (t.headers = u(
+ {},
+ t.headers,
+ s({}, 'kiwi-sizing-admin-token', window.kiwiSizingAdminToken)
+ )),
+ window.kiwiSizingCollabToken &&
+ (t.headers = u(
+ {},
+ t.headers,
+ s({}, 'kiwi-sizing-collab-token', window.kiwiSizingCollabToken)
+ )),
+ c.a.ajax(t, function (t, n, r) {
+ var i = r.getResponseHeader(f);
+ i && o.a.cookie.set(f, i, { expireDays: 1 / 24, secure: !0 }), e(t, n, r);
+ });
+ }
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(106);
+ r({ target: 'Array', proto: !0, forced: [].forEach != o }, { forEach: o });
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(108),
+ i = n(106),
+ c = n(16);
+ for (var a in o) {
+ var u = r[a],
+ s = u && u.prototype;
+ if (s && s.forEach !== i)
+ try {
+ c(s, 'forEach', i);
+ } catch (t) {
+ s.forEach = i;
+ }
+ }
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(49).filter,
+ i = n(69),
+ c = n(40),
+ a = i('filter'),
+ u = c('filter');
+ r(
+ { target: 'Array', proto: !0, forced: !a || !u },
+ {
+ filter: function (t) {
+ return o(this, t, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(3),
+ i = n(18),
+ c = n(30).f,
+ a = n(7),
+ u = o(function () {
+ c(1);
+ });
+ r(
+ { target: 'Object', stat: !0, forced: !a || u, sham: !a },
+ {
+ getOwnPropertyDescriptor: function (t, e) {
+ return c(i(t), e);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(7),
+ i = n(102),
+ c = n(18),
+ a = n(30),
+ u = n(68);
+ r(
+ { target: 'Object', stat: !0, sham: !o },
+ {
+ getOwnPropertyDescriptors: function (t) {
+ for (var e, n, r = c(t), o = a.f, s = i(r), f = {}, l = 0; s.length > l; )
+ void 0 !== (n = o(r, (e = s[l++]))) && u(f, e, n);
+ return f;
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(7);
+ r({ target: 'Object', stat: !0, forced: !o, sham: !o }, { defineProperties: n(122) });
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(3),
+ i = n(9),
+ c = Object.defineProperty,
+ a = {},
+ u = function (t) {
+ throw t;
+ };
+ t.exports = function (t, e) {
+ if (i(a, t)) return a[t];
+ e || (e = {});
+ var n = [][t],
+ s = !!i(e, 'ACCESSORS') && e.ACCESSORS,
+ f = i(e, 0) ? e[0] : u,
+ l = i(e, 1) ? e[1] : void 0;
+ return (a[t] =
+ !!n &&
+ !o(function () {
+ if (s && !r) return !0;
+ var t = { length: -1 };
+ s ? c(t, 1, { enumerable: !0, get: u }) : (t[1] = 1), n.call(t, f, l);
+ }));
+ };
+ },
+ function (t, e) {
+ t.exports = !1;
+ },
+ function (t, e, n) {
+ var r,
+ o = n(6),
+ i = n(122),
+ c = n(79),
+ a = n(54),
+ u = n(119),
+ s = n(73),
+ f = n(53),
+ l = f('IE_PROTO'),
+ p = function () {},
+ d = function (t) {
+ return '';
+ },
+ v = function () {
+ try {
+ r = document.domain && new ActiveXObject('htmlfile');
+ } catch (t) {}
+ var t, e;
+ v = r
+ ? (function (t) {
+ t.write(d('')), t.close();
+ var e = t.parentWindow.Object;
+ return (t = null), e;
+ })(r)
+ : (((e = s('iframe')).style.display = 'none'),
+ u.appendChild(e),
+ (e.src = String('javascript:')),
+ (t = e.contentWindow.document).open(),
+ t.write(d('document.F=Object')),
+ t.close(),
+ t.F);
+ for (var n = c.length; n--; ) delete v.prototype[c[n]];
+ return v();
+ };
+ (a[l] = !0),
+ (t.exports =
+ Object.create ||
+ function (t, e) {
+ var n;
+ return (
+ null !== t
+ ? ((p.prototype = o(t)), (n = new p()), (p.prototype = null), (n[l] = t))
+ : (n = v()),
+ void 0 === e ? n : i(n, e)
+ );
+ });
+ },
+ function (t, e, n) {
+ (function (t) {
+ var n = ['responseType', 'withCredentials', 'timeout', 'onprogress'];
+ function r(t, e, n) {
+ t[e] = t[e] || n;
+ }
+ e.ajax = function (e, o) {
+ var i = e.headers || {},
+ c = e.body,
+ a = e.method || (c ? 'POST' : 'GET'),
+ u = !1,
+ s = (function (e) {
+ if (e && t.XDomainRequest && !/MSIE 1/.test(navigator.userAgent))
+ return new XDomainRequest();
+ if (t.XMLHttpRequest) return new XMLHttpRequest();
+ })(e.cors);
+ function f(t, e) {
+ return function () {
+ u ||
+ (o(
+ void 0 === s.status ? t : s.status,
+ 0 === s.status ? 'Error' : s.response || s.responseText || e,
+ s
+ ),
+ (u = !0));
+ };
+ }
+ s.open(a, e.url, !0);
+ var l = (s.onload = f(200));
+ (s.onreadystatechange = function () {
+ 4 === s.readyState && l();
+ }),
+ (s.onerror = f(null, 'Error')),
+ (s.ontimeout = f(null, 'Timeout')),
+ (s.onabort = f(null, 'Abort')),
+ c &&
+ (r(i, 'X-Requested-With', 'XMLHttpRequest'),
+ (t.FormData && c instanceof t.FormData) ||
+ r(i, 'Content-Type', 'application/x-www-form-urlencoded'));
+ for (var p = 0, d = n.length; p < d; p++) void 0 !== e[(v = n[p])] && (s[v] = e[v]);
+ for (var v in i) s.setRequestHeader(v, i[v]);
+ return s.send(c), s;
+ };
+ }.call(this, n(94)));
+ },
+ function (t, e) {
+ t.exports = function (t, e) {
+ return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: e };
+ };
+ },
+ function (t, e) {
+ t.exports = {};
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(57),
+ o = n(6),
+ i = n(21),
+ c = n(20),
+ a = n(48),
+ u = n(17),
+ s = n(82),
+ f = n(58),
+ l = Math.max,
+ p = Math.min,
+ d = Math.floor,
+ v = /\$([$&'`]|\d\d?|<[^>]*>)/g,
+ h = /\$([$&'`]|\d\d?)/g;
+ r('replace', 2, function (t, e, n, r) {
+ var g = r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,
+ y = r.REPLACE_KEEPS_$0,
+ m = g ? '$' : '$0';
+ return [
+ function (n, r) {
+ var o = u(this),
+ i = null == n ? void 0 : n[t];
+ return void 0 !== i ? i.call(n, o, r) : e.call(String(o), n, r);
+ },
+ function (t, r) {
+ if ((!g && y) || ('string' == typeof r && -1 === r.indexOf(m))) {
+ var i = n(e, t, this, r);
+ if (i.done) return i.value;
+ }
+ var u = o(t),
+ d = String(this),
+ v = 'function' == typeof r;
+ v || (r = String(r));
+ var h = u.global;
+ if (h) {
+ var b = u.unicode;
+ u.lastIndex = 0;
+ }
+ for (var O = []; ; ) {
+ var S = f(u, d);
+ if (null === S) break;
+ if ((O.push(S), !h)) break;
+ '' === String(S[0]) && (u.lastIndex = s(d, c(u.lastIndex), b));
+ }
+ for (var E, x = '', _ = 0, T = 0; T < O.length; T++) {
+ S = O[T];
+ for (
+ var j = String(S[0]), I = l(p(a(S.index), d.length), 0), k = [], A = 1;
+ A < S.length;
+ A++
+ )
+ k.push(void 0 === (E = S[A]) ? E : String(E));
+ var P = S.groups;
+ if (v) {
+ var L = [j].concat(k, I, d);
+ void 0 !== P && L.push(P);
+ var R = String(r.apply(void 0, L));
+ } else R = w(j, d, I, k, P, r);
+ I >= _ && ((x += d.slice(_, I) + R), (_ = I + j.length));
+ }
+ return x + d.slice(_);
+ },
+ ];
+ function w(t, n, r, o, c, a) {
+ var u = r + t.length,
+ s = o.length,
+ f = h;
+ return (
+ void 0 !== c && ((c = i(c)), (f = v)),
+ e.call(a, f, function (e, i) {
+ var a;
+ switch (i.charAt(0)) {
+ case '$':
+ return '$';
+ case '&':
+ return t;
+ case '`':
+ return n.slice(0, r);
+ case "'":
+ return n.slice(u);
+ case '<':
+ a = c[i.slice(1, -1)];
+ break;
+ default:
+ var f = +i;
+ if (0 === f) return e;
+ if (f > s) {
+ var l = d(f / 10);
+ return 0 === l
+ ? e
+ : l <= s
+ ? void 0 === o[l - 1]
+ ? i.charAt(1)
+ : o[l - 1] + i.charAt(1)
+ : e;
+ }
+ a = o[f - 1];
+ }
+ return void 0 === a ? '' : a;
+ })
+ );
+ }
+ });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(18),
+ o = n(95),
+ i = n(45),
+ c = n(32),
+ a = n(123),
+ u = c.set,
+ s = c.getterFor('Array Iterator');
+ (t.exports = a(
+ Array,
+ 'Array',
+ function (t, e) {
+ u(this, { type: 'Array Iterator', target: r(t), index: 0, kind: e });
+ },
+ function () {
+ var t = s(this),
+ e = t.target,
+ n = t.kind,
+ r = t.index++;
+ return !e || r >= e.length
+ ? ((t.target = void 0), { value: void 0, done: !0 })
+ : 'keys' == n
+ ? { value: r, done: !1 }
+ : 'values' == n
+ ? { value: e[r], done: !1 }
+ : { value: [r, e[r]], done: !1 };
+ },
+ 'values'
+ )),
+ (i.Arguments = i.Array),
+ o('keys'),
+ o('values'),
+ o('entries');
+ },
+ function (t, e) {
+ var n = Math.ceil,
+ r = Math.floor;
+ t.exports = function (t) {
+ return isNaN((t = +t)) ? 0 : (t > 0 ? r : n)(t);
+ };
+ },
+ function (t, e, n) {
+ var r = n(55),
+ o = n(70),
+ i = n(21),
+ c = n(20),
+ a = n(98),
+ u = [].push,
+ s = function (t) {
+ var e = 1 == t,
+ n = 2 == t,
+ s = 3 == t,
+ f = 4 == t,
+ l = 6 == t,
+ p = 5 == t || l;
+ return function (d, v, h, g) {
+ for (
+ var y,
+ m,
+ w = i(d),
+ b = o(w),
+ O = r(v, h, 3),
+ S = c(b.length),
+ E = 0,
+ x = g || a,
+ _ = e ? x(d, S) : n ? x(d, 0) : void 0;
+ S > E;
+ E++
+ )
+ if ((p || E in b) && ((m = O((y = b[E]), E, w)), t))
+ if (e) _[E] = m;
+ else if (m)
+ switch (t) {
+ case 3:
+ return !0;
+ case 5:
+ return y;
+ case 6:
+ return E;
+ case 2:
+ u.call(_, y);
+ }
+ else if (f) return !1;
+ return l ? -1 : s || f ? f : _;
+ };
+ };
+ t.exports = {
+ forEach: s(0),
+ map: s(1),
+ filter: s(2),
+ some: s(3),
+ every: s(4),
+ find: s(5),
+ findIndex: s(6),
+ };
+ },
+ function (t, e, n) {
+ var r = n(22);
+ t.exports =
+ Array.isArray ||
+ function (t) {
+ return 'Array' == r(t);
+ };
+ },
+ function (t, e, n) {
+ var r = n(8);
+ t.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");
+ };
+ },
+ function (t, e, n) {
+ var r = n(104),
+ o = n(79).concat('length', 'prototype');
+ e.f =
+ Object.getOwnPropertyNames ||
+ function (t) {
+ return r(t, o);
+ };
+ },
+ function (t, e, n) {
+ var r = n(76),
+ o = n(77),
+ i = r('keys');
+ t.exports = function (t) {
+ return i[t] || (i[t] = o(t));
+ };
+ },
+ function (t, e) {
+ t.exports = {};
+ },
+ function (t, e, n) {
+ var r = n(31);
+ t.exports = function (t, e, n) {
+ if ((r(t), void 0 === e)) return t;
+ switch (n) {
+ case 0:
+ return function () {
+ return t.call(e);
+ };
+ 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);
+ };
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r,
+ o,
+ i = n(81),
+ c = n(109),
+ a = RegExp.prototype.exec,
+ u = String.prototype.replace,
+ s = a,
+ f =
+ ((r = /a/),
+ (o = /b*/g),
+ a.call(r, 'a'),
+ a.call(o, 'a'),
+ 0 !== r.lastIndex || 0 !== o.lastIndex),
+ l = c.UNSUPPORTED_Y || c.BROKEN_CARET,
+ p = void 0 !== /()??/.exec('')[1];
+ (f || p || l) &&
+ (s = function (t) {
+ var e,
+ n,
+ r,
+ o,
+ c = this,
+ s = l && c.sticky,
+ d = i.call(c),
+ v = c.source,
+ h = 0,
+ g = t;
+ return (
+ s &&
+ (-1 === (d = d.replace('y', '')).indexOf('g') && (d += 'g'),
+ (g = String(t).slice(c.lastIndex)),
+ c.lastIndex > 0 &&
+ (!c.multiline || (c.multiline && '\n' !== t[c.lastIndex - 1])) &&
+ ((v = '(?: ' + v + ')'), (g = ' ' + g), h++),
+ (n = new RegExp('^(?:' + v + ')', d))),
+ p && (n = new RegExp('^' + v + '$(?!\\s)', d)),
+ f && (e = c.lastIndex),
+ (r = a.call(s ? n : c, g)),
+ s
+ ? r
+ ? ((r.input = r.input.slice(h)),
+ (r[0] = r[0].slice(h)),
+ (r.index = c.lastIndex),
+ (c.lastIndex += r[0].length))
+ : (c.lastIndex = 0)
+ : f && r && (c.lastIndex = c.global ? r.index + r[0].length : e),
+ p &&
+ r &&
+ r.length > 1 &&
+ u.call(r[0], n, function () {
+ for (o = 1; o < arguments.length - 2; o++) void 0 === arguments[o] && (r[o] = void 0);
+ }),
+ r
+ );
+ }),
+ (t.exports = s);
+ },
+ function (t, e, n) {
+ 'use strict';
+ n(24);
+ var r = n(15),
+ o = n(3),
+ i = n(2),
+ c = n(56),
+ a = n(16),
+ u = i('species'),
+ s = !o(function () {
+ var t = /./;
+ return (
+ (t.exec = function () {
+ var t = [];
+ return (t.groups = { a: '7' }), t;
+ }),
+ '7' !== ''.replace(t, '$')
+ );
+ }),
+ f = '$0' === 'a'.replace(/./, '$0'),
+ l = i('replace'),
+ p = !!/./[l] && '' === /./[l]('a', '$0'),
+ d = !o(function () {
+ var t = /(?:)/,
+ e = t.exec;
+ t.exec = function () {
+ return e.apply(this, arguments);
+ };
+ var n = 'ab'.split(t);
+ return 2 !== n.length || 'a' !== n[0] || 'b' !== n[1];
+ });
+ t.exports = function (t, e, n, l) {
+ var v = i(t),
+ h = !o(function () {
+ var e = {};
+ return (
+ (e[v] = function () {
+ return 7;
+ }),
+ 7 != ''[t](e)
+ );
+ }),
+ g =
+ h &&
+ !o(function () {
+ var e = !1,
+ n = /a/;
+ return (
+ 'split' === t &&
+ (((n = {}).constructor = {}),
+ (n.constructor[u] = function () {
+ return n;
+ }),
+ (n.flags = ''),
+ (n[v] = /./[v])),
+ (n.exec = function () {
+ return (e = !0), null;
+ }),
+ n[v](''),
+ !e
+ );
+ });
+ if (!h || !g || ('replace' === t && (!s || !f || p)) || ('split' === t && !d)) {
+ var y = /./[v],
+ m = n(
+ v,
+ ''[t],
+ function (t, e, n, r, o) {
+ return e.exec === c
+ ? h && !o
+ ? { done: !0, value: y.call(e, n, r) }
+ : { done: !0, value: t.call(n, e, r) }
+ : { done: !1 };
+ },
+ { REPLACE_KEEPS_$0: f, REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE: p }
+ ),
+ w = m[0],
+ b = m[1];
+ r(String.prototype, t, w),
+ r(
+ RegExp.prototype,
+ v,
+ 2 == e
+ ? function (t, e) {
+ return b.call(t, this, e);
+ }
+ : function (t) {
+ return b.call(t, this);
+ }
+ );
+ }
+ l && a(RegExp.prototype[v], 'sham', !0);
+ };
+ },
+ function (t, e, n) {
+ var r = n(22),
+ o = n(56);
+ t.exports = function (t, e) {
+ var n = t.exec;
+ if ('function' == typeof n) {
+ var i = n.call(t, e);
+ if ('object' != typeof i)
+ throw TypeError('RegExp exec method returned something other than an Object or null');
+ return i;
+ }
+ if ('RegExp' !== r(t)) throw TypeError('RegExp#exec called on incompatible receiver');
+ return o.call(t, e);
+ };
+ },
+ function (t, e, n) {
+ var r = n(10).f,
+ o = n(9),
+ i = n(2)('toStringTag');
+ t.exports = function (t, e, n) {
+ t && !o((t = n ? t : t.prototype), i) && r(t, i, { configurable: !0, value: e });
+ };
+ },
+ function (t, e, n) {
+ var r = n(85),
+ o = n(15),
+ i = n(149);
+ r || o(Object.prototype, 'toString', i, { unsafe: !0 });
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(108),
+ i = n(47),
+ c = n(16),
+ a = n(2),
+ u = a('iterator'),
+ s = a('toStringTag'),
+ f = i.values;
+ for (var l in o) {
+ var p = r[l],
+ d = p && p.prototype;
+ if (d) {
+ if (d[u] !== f)
+ try {
+ c(d, u, f);
+ } catch (t) {
+ d[u] = f;
+ }
+ if ((d[s] || c(d, s, l), o[l]))
+ for (var v in i)
+ if (d[v] !== i[v])
+ try {
+ c(d, v, i[v]);
+ } catch (t) {
+ d[v] = i[v];
+ }
+ }
+ }
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(110).charAt,
+ o = n(32),
+ i = n(123),
+ c = o.set,
+ a = o.getterFor('String Iterator');
+ i(
+ String,
+ 'String',
+ function (t) {
+ c(this, { type: 'String Iterator', string: String(t), index: 0 });
+ },
+ function () {
+ var t,
+ e = a(this),
+ n = e.string,
+ o = e.index;
+ return o >= n.length
+ ? { value: void 0, done: !0 }
+ : ((t = r(n, o)), (e.index += t.length), { value: t, done: !1 });
+ }
+ );
+ },
+ function (t, e, n) {
+ n(126)('iterator');
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(7),
+ i = n(1),
+ c = n(9),
+ a = n(8),
+ u = n(10).f,
+ s = n(101),
+ f = i.Symbol;
+ if (
+ o &&
+ 'function' == typeof f &&
+ (!('description' in f.prototype) || void 0 !== f().description)
+ ) {
+ var l = {},
+ p = function () {
+ var t = arguments.length < 1 || void 0 === arguments[0] ? void 0 : String(arguments[0]),
+ e = this instanceof p ? new f(t) : void 0 === t ? f() : f(t);
+ return '' === t && (l[e] = !0), e;
+ };
+ s(p, f);
+ var d = (p.prototype = f.prototype);
+ d.constructor = p;
+ var v = d.toString,
+ h = 'Symbol(test)' == String(f('test')),
+ g = /^Symbol\((.*)\)[^)]+$/;
+ u(d, 'description', {
+ configurable: !0,
+ get: function () {
+ var t = a(this) ? this.valueOf() : this,
+ e = v.call(t);
+ if (c(l, t)) return '';
+ var n = h ? e.slice(7, -1) : e.replace(g, '$1');
+ return '' === n ? void 0 : n;
+ },
+ }),
+ r({ global: !0, forced: !0 }, { Symbol: p });
+ }
+ },
+ function (t, e, n) {
+ var r = n(15),
+ o = Date.prototype,
+ i = o.toString,
+ c = o.getTime;
+ new Date(NaN) + '' != 'Invalid Date' &&
+ r(o, 'toString', function () {
+ var t = c.call(this);
+ return t == t ? i.call(this) : 'Invalid Date';
+ });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(78).indexOf,
+ i = n(67),
+ c = n(40),
+ a = [].indexOf,
+ u = !!a && 1 / [1].indexOf(1, -0) < 0,
+ s = i('indexOf'),
+ f = c('indexOf', { ACCESSORS: !0, 1: 0 });
+ r(
+ { target: 'Array', proto: !0, forced: u || !s || !f },
+ {
+ indexOf: function (t) {
+ return u
+ ? a.apply(this, arguments) || 0
+ : o(this, t, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(3);
+ t.exports = function (t, e) {
+ var n = [][t];
+ return (
+ !!n &&
+ r(function () {
+ n.call(
+ null,
+ e ||
+ function () {
+ throw 1;
+ },
+ 1
+ );
+ })
+ );
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(51),
+ o = n(10),
+ i = n(44);
+ t.exports = function (t, e, n) {
+ var c = r(e);
+ c in t ? o.f(t, c, i(0, n)) : (t[c] = n);
+ };
+ },
+ function (t, e, n) {
+ var r = n(3),
+ o = n(2),
+ i = n(83),
+ c = o('species');
+ t.exports = function (t) {
+ return (
+ i >= 51 ||
+ !r(function () {
+ var e = [];
+ return (
+ ((e.constructor = {})[c] = function () {
+ return { foo: 1 };
+ }),
+ 1 !== e[t](Boolean).foo
+ );
+ })
+ );
+ };
+ },
+ function (t, e, n) {
+ var r = n(3),
+ o = n(22),
+ i = ''.split;
+ t.exports = r(function () {
+ return !Object('z').propertyIsEnumerable(0);
+ })
+ ? function (t) {
+ return 'String' == o(t) ? i.call(t, '') : Object(t);
+ }
+ : Object;
+ },
+ function (t, e, n) {
+ var r = n(3),
+ o = /#|\.prototype\./,
+ i = function (t, e) {
+ var n = a[c(t)];
+ return n == s || (n != u && ('function' == typeof e ? r(e) : !!e));
+ },
+ c = (i.normalize = function (t) {
+ return String(t).replace(o, '.').toLowerCase();
+ }),
+ a = (i.data = {}),
+ u = (i.NATIVE = 'N'),
+ s = (i.POLYFILL = 'P');
+ t.exports = i;
+ },
+ function (t, e, n) {
+ var r = n(104),
+ o = n(79);
+ t.exports =
+ Object.keys ||
+ function (t) {
+ return r(t, o);
+ };
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(8),
+ i = r.document,
+ c = o(i) && o(i.createElement);
+ t.exports = function (t) {
+ return c ? i.createElement(t) : {};
+ };
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(16);
+ t.exports = function (t, e) {
+ try {
+ o(r, t, e);
+ } catch (n) {
+ r[t] = e;
+ }
+ return e;
+ };
+ },
+ function (t, e, n) {
+ var r = n(100),
+ o = Function.toString;
+ 'function' != typeof r.inspectSource &&
+ (r.inspectSource = function (t) {
+ return o.call(t);
+ }),
+ (t.exports = r.inspectSource);
+ },
+ function (t, e, n) {
+ var r = n(41),
+ o = n(100);
+ (t.exports = function (t, e) {
+ return o[t] || (o[t] = void 0 !== e ? e : {});
+ })('versions', []).push({
+ version: '3.6.4',
+ mode: r ? 'pure' : 'global',
+ copyright: '© 2020 Denis Pushkarev (zloirock.ru)',
+ });
+ },
+ function (t, e) {
+ var n = 0,
+ r = Math.random();
+ t.exports = function (t) {
+ return 'Symbol(' + String(void 0 === t ? '' : t) + ')_' + (++n + r).toString(36);
+ };
+ },
+ function (t, e, n) {
+ var r = n(18),
+ o = n(20),
+ i = n(140),
+ c = function (t) {
+ return function (e, n, c) {
+ var a,
+ u = r(e),
+ s = o(u.length),
+ f = i(c, s);
+ if (t && n != n) {
+ for (; s > f; ) if ((a = u[f++]) != a) return !0;
+ } else for (; s > f; f++) if ((t || f in u) && u[f] === n) return t || f || 0;
+ return !t && -1;
+ };
+ };
+ t.exports = { includes: c(!0), indexOf: c(!1) };
+ },
+ function (t, e) {
+ t.exports = [
+ 'constructor',
+ 'hasOwnProperty',
+ 'isPrototypeOf',
+ 'propertyIsEnumerable',
+ 'toLocaleString',
+ 'toString',
+ 'valueOf',
+ ];
+ },
+ function (t, e, n) {
+ var r = n(3);
+ t.exports =
+ !!Object.getOwnPropertySymbols &&
+ !r(function () {
+ return !String(Symbol());
+ });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(6);
+ t.exports = function () {
+ var t = r(this),
+ e = '';
+ return (
+ t.global && (e += 'g'),
+ t.ignoreCase && (e += 'i'),
+ t.multiline && (e += 'm'),
+ t.dotAll && (e += 's'),
+ t.unicode && (e += 'u'),
+ t.sticky && (e += 'y'),
+ e
+ );
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(110).charAt;
+ t.exports = function (t, e, n) {
+ return e + (n ? r(t, e).length : 1);
+ };
+ },
+ function (t, e, n) {
+ var r,
+ o,
+ i = n(1),
+ c = n(84),
+ a = i.process,
+ u = a && a.versions,
+ s = u && u.v8;
+ s
+ ? (o = (r = s.split('.'))[0] + r[1])
+ : c &&
+ (!(r = c.match(/Edge\/(\d+)/)) || r[1] >= 74) &&
+ (r = c.match(/Chrome\/(\d+)/)) &&
+ (o = r[1]),
+ (t.exports = o && +o);
+ },
+ function (t, e, n) {
+ var r = n(25);
+ t.exports = r('navigator', 'userAgent') || '';
+ },
+ function (t, e, n) {
+ var r = {};
+ (r[n(2)('toStringTag')] = 'z'), (t.exports = '[object z]' === String(r));
+ },
+ function (t, e, n) {
+ var r = n(9),
+ o = n(21),
+ i = n(53),
+ c = n(125),
+ a = i('IE_PROTO'),
+ u = Object.prototype;
+ t.exports = c
+ ? Object.getPrototypeOf
+ : function (t) {
+ return (
+ (t = o(t)),
+ r(t, a)
+ ? t[a]
+ : 'function' == typeof t.constructor && t instanceof t.constructor
+ ? t.constructor.prototype
+ : t instanceof Object
+ ? u
+ : null
+ );
+ };
+ },
+ function (t, e, n) {
+ var r = n(6),
+ o = n(159);
+ t.exports =
+ Object.setPrototypeOf ||
+ ('__proto__' in {}
+ ? (function () {
+ var t,
+ e = !1,
+ n = {};
+ try {
+ (t = Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set).call(n, []),
+ (e = n instanceof Array);
+ } catch (t) {}
+ return function (n, i) {
+ return r(n), o(i), e ? t.call(n, i) : (n.__proto__ = i), n;
+ };
+ })()
+ : void 0);
+ },
+ function (t, e, n) {
+ var r = n(8),
+ o = n(22),
+ i = n(2)('match');
+ t.exports = function (t) {
+ var e;
+ return r(t) && (void 0 !== (e = t[i]) ? !!e : 'RegExp' == o(t));
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ e.a = function (t) {
+ return null != t;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ t.exports = function (t, e, n, r, o, i, c, a) {
+ if (!t) {
+ var u;
+ if (void 0 === e)
+ u = new Error(
+ 'Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.'
+ );
+ else {
+ var s = [n, r, o, i, c, a],
+ f = 0;
+ (u = new Error(
+ e.replace(/%s/g, function () {
+ return s[f++];
+ })
+ )).name = 'Invariant Violation';
+ }
+ throw ((u.framesToPop = 1), u);
+ }
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(70),
+ i = n(18),
+ c = n(67),
+ a = [].join,
+ u = o != Object,
+ s = c('join', ',');
+ r(
+ { target: 'Array', proto: !0, forced: u || !s },
+ {
+ join: function (t) {
+ return a.call(i(this), void 0 === t ? ',' : t);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ n(0)({ target: 'Array', stat: !0 }, { isArray: n(50) });
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(166);
+ r({ global: !0, forced: parseInt != o }, { parseInt: o });
+ },
+ function (t, e) {
+ var n;
+ n = (function () {
+ return this;
+ })();
+ try {
+ n = n || new Function('return this')();
+ } catch (t) {
+ 'object' == typeof window && (n = window);
+ }
+ t.exports = n;
+ },
+ function (t, e, n) {
+ var r = n(2),
+ o = n(42),
+ i = n(10),
+ c = r('unscopables'),
+ a = Array.prototype;
+ null == a[c] && i.f(a, c, { configurable: !0, value: o(null) }),
+ (t.exports = function (t) {
+ a[c][t] = !0;
+ });
+ },
+ function (t, e) {
+ t.exports = '\t\n\v\f\r    â€â€‚         âŸã€€\u2028\u2029\ufeff';
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = {}.propertyIsEnumerable,
+ o = Object.getOwnPropertyDescriptor,
+ i = o && !r.call({ 1: 2 }, 1);
+ e.f = i
+ ? function (t) {
+ var e = o(this, t);
+ return !!e && e.enumerable;
+ }
+ : r;
+ },
+ function (t, e, n) {
+ var r = n(8),
+ o = n(50),
+ i = n(2)('species');
+ t.exports = function (t, e) {
+ var n;
+ return (
+ o(t) &&
+ ('function' != typeof (n = t.constructor) || (n !== Array && !o(n.prototype))
+ ? r(n) && null === (n = n[i]) && (n = void 0)
+ : (n = void 0)),
+ new (void 0 === n ? Array : n)(0 === e ? 0 : e)
+ );
+ };
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(3),
+ i = n(73);
+ t.exports =
+ !r &&
+ !o(function () {
+ return (
+ 7 !=
+ Object.defineProperty(i('div'), 'a', {
+ get: function () {
+ return 7;
+ },
+ }).a
+ );
+ });
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(74),
+ i = r['__core-js_shared__'] || o('__core-js_shared__', {});
+ t.exports = i;
+ },
+ function (t, e, n) {
+ var r = n(9),
+ o = n(102),
+ i = n(30),
+ c = n(10);
+ t.exports = function (t, e) {
+ for (var n = o(e), a = c.f, u = i.f, s = 0; s < n.length; s++) {
+ var f = n[s];
+ r(t, f) || a(t, f, u(e, f));
+ }
+ };
+ },
+ function (t, e, n) {
+ var r = n(25),
+ o = n(52),
+ i = n(105),
+ c = n(6);
+ t.exports =
+ r('Reflect', 'ownKeys') ||
+ function (t) {
+ var e = o.f(c(t)),
+ n = i.f;
+ return n ? e.concat(n(t)) : e;
+ };
+ },
+ function (t, e, n) {
+ var r = n(1);
+ t.exports = r;
+ },
+ function (t, e, n) {
+ var r = n(9),
+ o = n(18),
+ i = n(78).indexOf,
+ c = n(54);
+ t.exports = function (t, e) {
+ var n,
+ a = o(t),
+ u = 0,
+ s = [];
+ for (n in a) !r(c, n) && r(a, n) && s.push(n);
+ for (; e.length > u; ) r(a, (n = e[u++])) && (~i(s, n) || s.push(n));
+ return s;
+ };
+ },
+ function (t, e) {
+ e.f = Object.getOwnPropertySymbols;
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(49).forEach,
+ o = n(67),
+ i = n(40),
+ c = o('forEach'),
+ a = i('forEach');
+ t.exports =
+ c && a
+ ? [].forEach
+ : function (t) {
+ return r(this, t, arguments.length > 1 ? arguments[1] : void 0);
+ };
+ },
+ function (t, e, n) {
+ var r = n(80);
+ t.exports = r && !Symbol.sham && 'symbol' == typeof Symbol.iterator;
+ },
+ function (t, e) {
+ t.exports = {
+ CSSRuleList: 0,
+ CSSStyleDeclaration: 0,
+ CSSValueList: 0,
+ ClientRectList: 0,
+ DOMRectList: 0,
+ DOMStringList: 0,
+ DOMTokenList: 1,
+ DataTransferItemList: 0,
+ FileList: 0,
+ HTMLAllCollection: 0,
+ HTMLCollection: 0,
+ HTMLFormElement: 0,
+ HTMLSelectElement: 0,
+ MediaList: 0,
+ MimeTypeArray: 0,
+ NamedNodeMap: 0,
+ NodeList: 1,
+ PaintRequestList: 0,
+ Plugin: 0,
+ PluginArray: 0,
+ SVGLengthList: 0,
+ SVGNumberList: 0,
+ SVGPathSegList: 0,
+ SVGPointList: 0,
+ SVGStringList: 0,
+ SVGTransformList: 0,
+ SourceBufferList: 0,
+ StyleSheetList: 0,
+ TextTrackCueList: 0,
+ TextTrackList: 0,
+ TouchList: 0,
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(3);
+ function o(t, e) {
+ return RegExp(t, e);
+ }
+ (e.UNSUPPORTED_Y = r(function () {
+ var t = o('a', 'y');
+ return (t.lastIndex = 2), null != t.exec('abcd');
+ })),
+ (e.BROKEN_CARET = r(function () {
+ var t = o('^r', 'gy');
+ return (t.lastIndex = 2), null != t.exec('str');
+ }));
+ },
+ function (t, e, n) {
+ var r = n(48),
+ o = n(17),
+ i = function (t) {
+ return function (e, n) {
+ var i,
+ c,
+ a = String(o(e)),
+ u = r(n),
+ s = a.length;
+ return u < 0 || u >= s
+ ? t
+ ? ''
+ : void 0
+ : (i = a.charCodeAt(u)) < 55296 ||
+ i > 56319 ||
+ u + 1 === s ||
+ (c = a.charCodeAt(u + 1)) < 56320 ||
+ c > 57343
+ ? t
+ ? a.charAt(u)
+ : i
+ : t
+ ? a.slice(u, u + 2)
+ : c - 56320 + ((i - 55296) << 10) + 65536;
+ };
+ };
+ t.exports = { codeAt: i(!1), charAt: i(!0) };
+ },
+ function (t, e, n) {
+ var r = n(85),
+ o = n(22),
+ i = n(2)('toStringTag'),
+ c =
+ 'Arguments' ==
+ o(
+ (function () {
+ return arguments;
+ })()
+ );
+ t.exports = r
+ ? o
+ : function (t) {
+ var e, n, r;
+ return void 0 === t
+ ? 'Undefined'
+ : null === t
+ ? 'Null'
+ : 'string' ==
+ typeof (n = (function (t, e) {
+ try {
+ return t[e];
+ } catch (t) {}
+ })((e = Object(t)), i))
+ ? n
+ : c
+ ? o(e)
+ : 'Object' == (r = o(e)) && 'function' == typeof e.callee
+ ? 'Arguments'
+ : r;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(25),
+ o = n(10),
+ i = n(2),
+ c = n(7),
+ a = i('species');
+ t.exports = function (t) {
+ var e = r(t),
+ n = o.f;
+ c &&
+ e &&
+ !e[a] &&
+ n(e, a, {
+ configurable: !0,
+ get: function () {
+ return this;
+ },
+ });
+ };
+ },
+ function (t, e, n) {
+ var r = n(2),
+ o = n(45),
+ i = r('iterator'),
+ c = Array.prototype;
+ t.exports = function (t) {
+ return void 0 !== t && (o.Array === t || c[i] === t);
+ };
+ },
+ function (t, e, n) {
+ var r = n(111),
+ o = n(45),
+ i = n(2)('iterator');
+ t.exports = function (t) {
+ if (null != t) return t[i] || t['@@iterator'] || o[r(t)];
+ };
+ },
+ function (t, e, n) {
+ var r = n(6);
+ t.exports = function (t, e, n, o) {
+ try {
+ return o ? e(r(n)[0], n[1]) : e(n);
+ } catch (e) {
+ var i = t.return;
+ throw (void 0 !== i && r(i.call(t)), e);
+ }
+ };
+ },
+ function (t, e, n) {
+ var r = n(2)('iterator'),
+ o = !1;
+ try {
+ var i = 0,
+ c = {
+ next: function () {
+ return { done: !!i++ };
+ },
+ return: function () {
+ o = !0;
+ },
+ };
+ (c[r] = function () {
+ return this;
+ }),
+ Array.from(c, function () {
+ throw 2;
+ });
+ } catch (t) {}
+ t.exports = function (t, e) {
+ if (!e && !o) return !1;
+ var n = !1;
+ try {
+ var i = {};
+ (i[r] = function () {
+ return {
+ next: function () {
+ return { done: (n = !0) };
+ },
+ };
+ }),
+ t(i);
+ } catch (t) {}
+ return n;
+ };
+ },
+ function (t, e, n) {
+ var r = n(6),
+ o = n(31),
+ i = n(2)('species');
+ t.exports = function (t, e) {
+ var n,
+ c = r(t).constructor;
+ return void 0 === c || null == (n = r(c)[i]) ? e : o(n);
+ };
+ },
+ function (t, e, n) {
+ var r,
+ o,
+ i,
+ c = n(1),
+ a = n(3),
+ u = n(22),
+ s = n(55),
+ f = n(119),
+ l = n(73),
+ p = n(120),
+ d = c.location,
+ v = c.setImmediate,
+ h = c.clearImmediate,
+ g = c.process,
+ y = c.MessageChannel,
+ m = c.Dispatch,
+ w = 0,
+ b = {},
+ O = function (t) {
+ if (b.hasOwnProperty(t)) {
+ var e = b[t];
+ delete b[t], e();
+ }
+ },
+ S = function (t) {
+ return function () {
+ O(t);
+ };
+ },
+ E = function (t) {
+ O(t.data);
+ },
+ x = function (t) {
+ c.postMessage(t + '', d.protocol + '//' + d.host);
+ };
+ (v && h) ||
+ ((v = function (t) {
+ for (var e = [], n = 1; arguments.length > n; ) e.push(arguments[n++]);
+ return (
+ (b[++w] = function () {
+ ('function' == typeof t ? t : Function(t)).apply(void 0, e);
+ }),
+ r(w),
+ w
+ );
+ }),
+ (h = function (t) {
+ delete b[t];
+ }),
+ 'process' == u(g)
+ ? (r = function (t) {
+ g.nextTick(S(t));
+ })
+ : m && m.now
+ ? (r = function (t) {
+ m.now(S(t));
+ })
+ : y && !p
+ ? ((i = (o = new y()).port2), (o.port1.onmessage = E), (r = s(i.postMessage, i, 1)))
+ : !c.addEventListener || 'function' != typeof postMessage || c.importScripts || a(x)
+ ? (r =
+ 'onreadystatechange' in l('script')
+ ? function (t) {
+ f.appendChild(l('script')).onreadystatechange = function () {
+ f.removeChild(this), O(t);
+ };
+ }
+ : function (t) {
+ setTimeout(S(t), 0);
+ })
+ : ((r = x), c.addEventListener('message', E, !1))),
+ (t.exports = { set: v, clear: h });
+ },
+ function (t, e, n) {
+ var r = n(25);
+ t.exports = r('document', 'documentElement');
+ },
+ function (t, e, n) {
+ var r = n(84);
+ t.exports = /(iphone|ipod|ipad).*applewebkit/i.test(r);
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(31),
+ o = function (t) {
+ var e, n;
+ (this.promise = new t(function (t, r) {
+ if (void 0 !== e || void 0 !== n) throw TypeError('Bad Promise constructor');
+ (e = t), (n = r);
+ })),
+ (this.resolve = r(e)),
+ (this.reject = r(n));
+ };
+ t.exports.f = function (t) {
+ return new o(t);
+ };
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(10),
+ i = n(6),
+ c = n(72);
+ t.exports = r
+ ? Object.defineProperties
+ : function (t, e) {
+ i(t);
+ for (var n, r = c(e), a = r.length, u = 0; a > u; ) o.f(t, (n = r[u++]), e[n]);
+ return t;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(158),
+ i = n(86),
+ c = n(87),
+ a = n(59),
+ u = n(16),
+ s = n(15),
+ f = n(2),
+ l = n(41),
+ p = n(45),
+ d = n(124),
+ v = d.IteratorPrototype,
+ h = d.BUGGY_SAFARI_ITERATORS,
+ g = f('iterator'),
+ y = function () {
+ return this;
+ };
+ t.exports = function (t, e, n, f, d, m, w) {
+ o(n, e, f);
+ var b,
+ O,
+ S,
+ E = function (t) {
+ if (t === d && I) return I;
+ if (!h && t in T) return T[t];
+ switch (t) {
+ case 'keys':
+ case 'values':
+ case 'entries':
+ return function () {
+ return new n(this, t);
+ };
+ }
+ return function () {
+ return new n(this);
+ };
+ },
+ x = e + ' Iterator',
+ _ = !1,
+ T = t.prototype,
+ j = T[g] || T['@@iterator'] || (d && T[d]),
+ I = (!h && j) || E(d),
+ k = ('Array' == e && T.entries) || j;
+ if (
+ (k &&
+ ((b = i(k.call(new t()))),
+ v !== Object.prototype &&
+ b.next &&
+ (l || i(b) === v || (c ? c(b, v) : 'function' != typeof b[g] && u(b, g, y)),
+ a(b, x, !0, !0),
+ l && (p[x] = y))),
+ 'values' == d &&
+ j &&
+ 'values' !== j.name &&
+ ((_ = !0),
+ (I = function () {
+ return j.call(this);
+ })),
+ (l && !w) || T[g] === I || u(T, g, I),
+ (p[e] = I),
+ d)
+ )
+ if (((O = { values: E('values'), keys: m ? I : E('keys'), entries: E('entries') }), w))
+ for (S in O) (!h && !_ && S in T) || s(T, S, O[S]);
+ else r({ target: e, proto: !0, forced: h || _ }, O);
+ return O;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r,
+ o,
+ i,
+ c = n(86),
+ a = n(16),
+ u = n(9),
+ s = n(2),
+ f = n(41),
+ l = s('iterator'),
+ p = !1;
+ [].keys &&
+ ('next' in (i = [].keys()) ? (o = c(c(i))) !== Object.prototype && (r = o) : (p = !0)),
+ null == r && (r = {}),
+ f ||
+ u(r, l) ||
+ a(r, l, function () {
+ return this;
+ }),
+ (t.exports = { IteratorPrototype: r, BUGGY_SAFARI_ITERATORS: p });
+ },
+ function (t, e, n) {
+ var r = n(3);
+ t.exports = !r(function () {
+ function t() {}
+ return (t.prototype.constructor = null), Object.getPrototypeOf(new t()) !== t.prototype;
+ });
+ },
+ function (t, e, n) {
+ var r = n(103),
+ o = n(9),
+ i = n(127),
+ c = n(10).f;
+ t.exports = function (t) {
+ var e = r.Symbol || (r.Symbol = {});
+ o(e, t) || c(e, t, { value: i.f(t) });
+ };
+ },
+ function (t, e, n) {
+ var r = n(2);
+ e.f = r;
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r,
+ o = 'object' == typeof Reflect ? Reflect : null,
+ i =
+ o && 'function' == typeof o.apply
+ ? o.apply
+ : function (t, e, n) {
+ return Function.prototype.apply.call(t, e, n);
+ };
+ r =
+ o && 'function' == typeof o.ownKeys
+ ? o.ownKeys
+ : Object.getOwnPropertySymbols
+ ? function (t) {
+ return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t));
+ }
+ : function (t) {
+ return Object.getOwnPropertyNames(t);
+ };
+ var c =
+ Number.isNaN ||
+ function (t) {
+ return t != t;
+ };
+ function a() {
+ a.init.call(this);
+ }
+ (t.exports = a),
+ (a.EventEmitter = a),
+ (a.prototype._events = void 0),
+ (a.prototype._eventsCount = 0),
+ (a.prototype._maxListeners = void 0);
+ var u = 10;
+ function s(t) {
+ if ('function' != typeof t)
+ throw new TypeError(
+ 'The "listener" argument must be of type Function. Received type ' + typeof t
+ );
+ }
+ function f(t) {
+ return void 0 === t._maxListeners ? a.defaultMaxListeners : t._maxListeners;
+ }
+ function l(t, e, n, r) {
+ var o, i, c, a;
+ if (
+ (s(n),
+ void 0 === (i = t._events)
+ ? ((i = t._events = Object.create(null)), (t._eventsCount = 0))
+ : (void 0 !== i.newListener &&
+ (t.emit('newListener', e, n.listener ? n.listener : n), (i = t._events)),
+ (c = i[e])),
+ void 0 === c)
+ )
+ (c = i[e] = n), ++t._eventsCount;
+ else if (
+ ('function' == typeof c ? (c = i[e] = r ? [n, c] : [c, n]) : r ? c.unshift(n) : c.push(n),
+ (o = f(t)) > 0 && c.length > o && !c.warned)
+ ) {
+ c.warned = !0;
+ var u = new Error(
+ 'Possible EventEmitter memory leak detected. ' +
+ c.length +
+ ' ' +
+ String(e) +
+ ' listeners added. Use emitter.setMaxListeners() to increase limit'
+ );
+ (u.name = 'MaxListenersExceededWarning'),
+ (u.emitter = t),
+ (u.type = e),
+ (u.count = c.length),
+ (a = u),
+ console && console.warn && console.warn(a);
+ }
+ return t;
+ }
+ function p() {
+ if (!this.fired)
+ return (
+ this.target.removeListener(this.type, this.wrapFn),
+ (this.fired = !0),
+ 0 === arguments.length
+ ? this.listener.call(this.target)
+ : this.listener.apply(this.target, arguments)
+ );
+ }
+ function d(t, e, n) {
+ var r = { fired: !1, wrapFn: void 0, target: t, type: e, listener: n },
+ o = p.bind(r);
+ return (o.listener = n), (r.wrapFn = o), o;
+ }
+ function v(t, e, n) {
+ var r = t._events;
+ if (void 0 === r) return [];
+ var o = r[e];
+ return void 0 === o
+ ? []
+ : 'function' == typeof o
+ ? n
+ ? [o.listener || o]
+ : [o]
+ : n
+ ? (function (t) {
+ for (var e = new Array(t.length), n = 0; n < e.length; ++n)
+ e[n] = t[n].listener || t[n];
+ return e;
+ })(o)
+ : g(o, o.length);
+ }
+ function h(t) {
+ var e = this._events;
+ if (void 0 !== e) {
+ var n = e[t];
+ if ('function' == typeof n) return 1;
+ if (void 0 !== n) return n.length;
+ }
+ return 0;
+ }
+ function g(t, e) {
+ for (var n = new Array(e), r = 0; r < e; ++r) n[r] = t[r];
+ return n;
+ }
+ Object.defineProperty(a, 'defaultMaxListeners', {
+ enumerable: !0,
+ get: function () {
+ return u;
+ },
+ set: function (t) {
+ if ('number' != typeof t || t < 0 || c(t))
+ throw new RangeError(
+ 'The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' +
+ t +
+ '.'
+ );
+ u = t;
+ },
+ }),
+ (a.init = function () {
+ (void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events) ||
+ ((this._events = Object.create(null)), (this._eventsCount = 0)),
+ (this._maxListeners = this._maxListeners || void 0);
+ }),
+ (a.prototype.setMaxListeners = function (t) {
+ if ('number' != typeof t || t < 0 || c(t))
+ throw new RangeError(
+ 'The value of "n" is out of range. It must be a non-negative number. Received ' +
+ t +
+ '.'
+ );
+ return (this._maxListeners = t), this;
+ }),
+ (a.prototype.getMaxListeners = function () {
+ return f(this);
+ }),
+ (a.prototype.emit = function (t) {
+ for (var e = [], n = 1; n < arguments.length; n++) e.push(arguments[n]);
+ var r = 'error' === t,
+ o = this._events;
+ if (void 0 !== o) r = r && void 0 === o.error;
+ else if (!r) return !1;
+ if (r) {
+ var c;
+ if ((e.length > 0 && (c = e[0]), c instanceof Error)) throw c;
+ var a = new Error('Unhandled error.' + (c ? ' (' + c.message + ')' : ''));
+ throw ((a.context = c), a);
+ }
+ var u = o[t];
+ if (void 0 === u) return !1;
+ if ('function' == typeof u) i(u, this, e);
+ else {
+ var s = u.length,
+ f = g(u, s);
+ for (n = 0; n < s; ++n) i(f[n], this, e);
+ }
+ return !0;
+ }),
+ (a.prototype.addListener = function (t, e) {
+ return l(this, t, e, !1);
+ }),
+ (a.prototype.on = a.prototype.addListener),
+ (a.prototype.prependListener = function (t, e) {
+ return l(this, t, e, !0);
+ }),
+ (a.prototype.once = function (t, e) {
+ return s(e), this.on(t, d(this, t, e)), this;
+ }),
+ (a.prototype.prependOnceListener = function (t, e) {
+ return s(e), this.prependListener(t, d(this, t, e)), this;
+ }),
+ (a.prototype.removeListener = function (t, e) {
+ var n, r, o, i, c;
+ if ((s(e), void 0 === (r = this._events))) return this;
+ if (void 0 === (n = r[t])) return this;
+ if (n === e || n.listener === e)
+ 0 == --this._eventsCount
+ ? (this._events = Object.create(null))
+ : (delete r[t], r.removeListener && this.emit('removeListener', t, n.listener || e));
+ else if ('function' != typeof n) {
+ for (o = -1, i = n.length - 1; i >= 0; i--)
+ if (n[i] === e || n[i].listener === e) {
+ (c = n[i].listener), (o = i);
+ break;
+ }
+ if (o < 0) return this;
+ 0 === o
+ ? n.shift()
+ : (function (t, e) {
+ for (; e + 1 < t.length; e++) t[e] = t[e + 1];
+ t.pop();
+ })(n, o),
+ 1 === n.length && (r[t] = n[0]),
+ void 0 !== r.removeListener && this.emit('removeListener', t, c || e);
+ }
+ return this;
+ }),
+ (a.prototype.off = a.prototype.removeListener),
+ (a.prototype.removeAllListeners = function (t) {
+ var e, n, r;
+ if (void 0 === (n = this._events)) return this;
+ if (void 0 === n.removeListener)
+ return (
+ 0 === arguments.length
+ ? ((this._events = Object.create(null)), (this._eventsCount = 0))
+ : void 0 !== n[t] &&
+ (0 == --this._eventsCount ? (this._events = Object.create(null)) : delete n[t]),
+ this
+ );
+ if (0 === arguments.length) {
+ var o,
+ i = Object.keys(n);
+ for (r = 0; r < i.length; ++r)
+ 'removeListener' !== (o = i[r]) && this.removeAllListeners(o);
+ return (
+ this.removeAllListeners('removeListener'),
+ (this._events = Object.create(null)),
+ (this._eventsCount = 0),
+ this
+ );
+ }
+ if ('function' == typeof (e = n[t])) this.removeListener(t, e);
+ else if (void 0 !== e) for (r = e.length - 1; r >= 0; r--) this.removeListener(t, e[r]);
+ return this;
+ }),
+ (a.prototype.listeners = function (t) {
+ return v(this, t, !0);
+ }),
+ (a.prototype.rawListeners = function (t) {
+ return v(this, t, !1);
+ }),
+ (a.listenerCount = function (t, e) {
+ return 'function' == typeof t.listenerCount ? t.listenerCount(e) : h.call(t, e);
+ }),
+ (a.prototype.listenerCount = h),
+ (a.prototype.eventNames = function () {
+ return this._eventsCount > 0 ? r(this._events) : [];
+ });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(49).map,
+ i = n(69),
+ c = n(40),
+ a = i('map'),
+ u = c('map');
+ r(
+ { target: 'Array', proto: !0, forced: !a || !u },
+ {
+ map: function (t) {
+ return o(this, t, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(78).includes,
+ i = n(95);
+ r(
+ { target: 'Array', proto: !0, forced: !n(40)('indexOf', { ACCESSORS: !0, 1: 0 }) },
+ {
+ includes: function (t) {
+ return o(this, t, arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ ),
+ i('includes');
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(0),
+ o = n(143),
+ i = n(17);
+ r(
+ { target: 'String', proto: !0, forced: !n(144)('includes') },
+ {
+ includes: function (t) {
+ return !!~String(i(this)).indexOf(o(t), arguments.length > 1 ? arguments[1] : void 0);
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(15),
+ o = n(6),
+ i = n(3),
+ c = n(81),
+ a = RegExp.prototype,
+ u = a.toString,
+ s = i(function () {
+ return '/a/b' != u.call({ source: 'a', flags: 'b' });
+ }),
+ f = 'toString' != u.name;
+ (s || f) &&
+ r(
+ RegExp.prototype,
+ 'toString',
+ function () {
+ var t = o(this),
+ e = String(t.source),
+ n = t.flags;
+ return (
+ '/' +
+ e +
+ '/' +
+ String(void 0 === n && t instanceof RegExp && !('flags' in a) ? c.call(t) : n)
+ );
+ },
+ { unsafe: !0 }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(57),
+ o = n(88),
+ i = n(6),
+ c = n(17),
+ a = n(117),
+ u = n(82),
+ s = n(20),
+ f = n(58),
+ l = n(56),
+ p = n(3),
+ d = [].push,
+ v = Math.min,
+ h = !p(function () {
+ return !RegExp(4294967295, 'y');
+ });
+ r(
+ 'split',
+ 2,
+ function (t, e, n) {
+ var r;
+ return (
+ (r =
+ 'c' == 'abbc'.split(/(b)*/)[1] ||
+ 4 != 'test'.split(/(?:)/, -1).length ||
+ 2 != 'ab'.split(/(?:ab)*/).length ||
+ 4 != '.'.split(/(.?)(.?)/).length ||
+ '.'.split(/()()/).length > 1 ||
+ ''.split(/.?/).length
+ ? function (t, n) {
+ var r = String(c(this)),
+ i = void 0 === n ? 4294967295 : n >>> 0;
+ if (0 === i) return [];
+ if (void 0 === t) return [r];
+ if (!o(t)) return e.call(r, t, i);
+ for (
+ var a,
+ u,
+ s,
+ f = [],
+ p =
+ (t.ignoreCase ? 'i' : '') +
+ (t.multiline ? 'm' : '') +
+ (t.unicode ? 'u' : '') +
+ (t.sticky ? 'y' : ''),
+ v = 0,
+ h = new RegExp(t.source, p + 'g');
+ (a = l.call(h, r)) &&
+ !(
+ (u = h.lastIndex) > v &&
+ (f.push(r.slice(v, a.index)),
+ a.length > 1 && a.index < r.length && d.apply(f, a.slice(1)),
+ (s = a[0].length),
+ (v = u),
+ f.length >= i)
+ );
+
+ )
+ h.lastIndex === a.index && h.lastIndex++;
+ return (
+ v === r.length ? (!s && h.test('')) || f.push('') : f.push(r.slice(v)),
+ f.length > i ? f.slice(0, i) : f
+ );
+ }
+ : '0'.split(void 0, 0).length
+ ? function (t, n) {
+ return void 0 === t && 0 === n ? [] : e.call(this, t, n);
+ }
+ : e),
+ [
+ function (e, n) {
+ var o = c(this),
+ i = null == e ? void 0 : e[t];
+ return void 0 !== i ? i.call(e, o, n) : r.call(String(o), e, n);
+ },
+ function (t, o) {
+ var c = n(r, t, this, o, r !== e);
+ if (c.done) return c.value;
+ var l = i(t),
+ p = String(this),
+ d = a(l, RegExp),
+ g = l.unicode,
+ y =
+ (l.ignoreCase ? 'i' : '') +
+ (l.multiline ? 'm' : '') +
+ (l.unicode ? 'u' : '') +
+ (h ? 'y' : 'g'),
+ m = new d(h ? l : '^(?:' + l.source + ')', y),
+ w = void 0 === o ? 4294967295 : o >>> 0;
+ if (0 === w) return [];
+ if (0 === p.length) return null === f(m, p) ? [p] : [];
+ for (var b = 0, O = 0, S = []; O < p.length; ) {
+ m.lastIndex = h ? O : 0;
+ var E,
+ x = f(m, h ? p : p.slice(O));
+ if (null === x || (E = v(s(m.lastIndex + (h ? 0 : O)), p.length)) === b)
+ O = u(p, O, g);
+ else {
+ if ((S.push(p.slice(b, O)), S.length === w)) return S;
+ for (var _ = 1; _ <= x.length - 1; _++)
+ if ((S.push(x[_]), S.length === w)) return S;
+ O = b = E;
+ }
+ }
+ return S.push(p.slice(b)), S;
+ },
+ ]
+ );
+ },
+ !h
+ );
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(1),
+ i = n(84),
+ c = [].slice,
+ a = function (t) {
+ return function (e, n) {
+ var r = arguments.length > 2,
+ o = r ? c.call(arguments, 2) : void 0;
+ return t(
+ r
+ ? function () {
+ ('function' == typeof e ? e : Function(e)).apply(this, o);
+ }
+ : e,
+ n
+ );
+ };
+ };
+ r(
+ { global: !0, bind: !0, forced: /MSIE .\./.test(i) },
+ { setTimeout: a(o.setTimeout), setInterval: a(o.setInterval) }
+ );
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(10).f,
+ i = Function.prototype,
+ c = i.toString,
+ a = /^\s*function ([^ (]*)/;
+ !r ||
+ 'name' in i ||
+ o(i, 'name', {
+ configurable: !0,
+ get: function () {
+ try {
+ return c.call(this).match(a)[1];
+ } catch (t) {
+ return '';
+ }
+ },
+ });
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r,
+ o,
+ i,
+ c,
+ a = n(0),
+ u = n(41),
+ s = n(1),
+ f = n(25),
+ l = n(150),
+ p = n(15),
+ d = n(151),
+ v = n(59),
+ h = n(112),
+ g = n(8),
+ y = n(31),
+ m = n(152),
+ w = n(22),
+ b = n(75),
+ O = n(153),
+ S = n(116),
+ E = n(117),
+ x = n(118).set,
+ _ = n(154),
+ T = n(155),
+ j = n(156),
+ I = n(121),
+ k = n(157),
+ A = n(32),
+ P = n(71),
+ L = n(2),
+ R = n(83),
+ C = L('species'),
+ D = 'Promise',
+ N = A.get,
+ M = A.set,
+ U = A.getterFor(D),
+ F = l,
+ z = s.TypeError,
+ H = s.document,
+ G = s.process,
+ B = f('fetch'),
+ K = I.f,
+ V = K,
+ q = 'process' == w(G),
+ W = !!(H && H.createEvent && s.dispatchEvent),
+ Y = P(D, function () {
+ if (!(b(F) !== String(F))) {
+ if (66 === R) return !0;
+ if (!q && 'function' != typeof PromiseRejectionEvent) return !0;
+ }
+ if (u && !F.prototype.finally) return !0;
+ if (R >= 51 && /native code/.test(F)) return !1;
+ var t = F.resolve(1),
+ e = function (t) {
+ t(
+ function () {},
+ function () {}
+ );
+ };
+ return ((t.constructor = {})[C] = e), !(t.then(function () {}) instanceof e);
+ }),
+ $ =
+ Y ||
+ !S(function (t) {
+ F.all(t).catch(function () {});
+ }),
+ J = function (t) {
+ var e;
+ return !(!g(t) || 'function' != typeof (e = t.then)) && e;
+ },
+ X = function (t, e, n) {
+ if (!e.notified) {
+ e.notified = !0;
+ var r = e.reactions;
+ _(function () {
+ for (var o = e.value, i = 1 == e.state, c = 0; r.length > c; ) {
+ var a,
+ u,
+ s,
+ f = r[c++],
+ l = i ? f.ok : f.fail,
+ p = f.resolve,
+ d = f.reject,
+ v = f.domain;
+ try {
+ l
+ ? (i || (2 === e.rejection && et(t, e), (e.rejection = 1)),
+ !0 === l ? (a = o) : (v && v.enter(), (a = l(o)), v && (v.exit(), (s = !0))),
+ a === f.promise
+ ? d(z('Promise-chain cycle'))
+ : (u = J(a))
+ ? u.call(a, p, d)
+ : p(a))
+ : d(o);
+ } catch (t) {
+ v && !s && v.exit(), d(t);
+ }
+ }
+ (e.reactions = []), (e.notified = !1), n && !e.rejection && Z(t, e);
+ });
+ }
+ },
+ Q = function (t, e, n) {
+ var r, o;
+ W
+ ? (((r = H.createEvent('Event')).promise = e),
+ (r.reason = n),
+ r.initEvent(t, !1, !0),
+ s.dispatchEvent(r))
+ : (r = { promise: e, reason: n }),
+ (o = s['on' + t])
+ ? o(r)
+ : 'unhandledrejection' === t && j('Unhandled promise rejection', n);
+ },
+ Z = function (t, e) {
+ x.call(s, function () {
+ var n,
+ r = e.value;
+ if (
+ tt(e) &&
+ ((n = k(function () {
+ q ? G.emit('unhandledRejection', r, t) : Q('unhandledrejection', t, r);
+ })),
+ (e.rejection = q || tt(e) ? 2 : 1),
+ n.error)
+ )
+ throw n.value;
+ });
+ },
+ tt = function (t) {
+ return 1 !== t.rejection && !t.parent;
+ },
+ et = function (t, e) {
+ x.call(s, function () {
+ q ? G.emit('rejectionHandled', t) : Q('rejectionhandled', t, e.value);
+ });
+ },
+ nt = function (t, e, n, r) {
+ return function (o) {
+ t(e, n, o, r);
+ };
+ },
+ rt = function (t, e, n, r) {
+ e.done || ((e.done = !0), r && (e = r), (e.value = n), (e.state = 2), X(t, e, !0));
+ },
+ ot = function (t, e, n, r) {
+ if (!e.done) {
+ (e.done = !0), r && (e = r);
+ try {
+ if (t === n) throw z("Promise can't be resolved itself");
+ var o = J(n);
+ o
+ ? _(function () {
+ var r = { done: !1 };
+ try {
+ o.call(n, nt(ot, t, r, e), nt(rt, t, r, e));
+ } catch (n) {
+ rt(t, r, n, e);
+ }
+ })
+ : ((e.value = n), (e.state = 1), X(t, e, !1));
+ } catch (n) {
+ rt(t, { done: !1 }, n, e);
+ }
+ }
+ };
+ Y &&
+ ((F = function (t) {
+ m(this, F, D), y(t), r.call(this);
+ var e = N(this);
+ try {
+ t(nt(ot, this, e), nt(rt, this, e));
+ } catch (t) {
+ rt(this, e, t);
+ }
+ }),
+ ((r = function (t) {
+ M(this, {
+ type: D,
+ done: !1,
+ notified: !1,
+ parent: !1,
+ reactions: [],
+ rejection: !1,
+ state: 0,
+ value: void 0,
+ });
+ }).prototype = d(F.prototype, {
+ then: function (t, e) {
+ var n = U(this),
+ r = K(E(this, F));
+ return (
+ (r.ok = 'function' != typeof t || t),
+ (r.fail = 'function' == typeof e && e),
+ (r.domain = q ? G.domain : void 0),
+ (n.parent = !0),
+ n.reactions.push(r),
+ 0 != n.state && X(this, n, !1),
+ r.promise
+ );
+ },
+ catch: function (t) {
+ return this.then(void 0, t);
+ },
+ })),
+ (o = function () {
+ var t = new r(),
+ e = N(t);
+ (this.promise = t), (this.resolve = nt(ot, t, e)), (this.reject = nt(rt, t, e));
+ }),
+ (I.f = K =
+ function (t) {
+ return t === F || t === i ? new o(t) : V(t);
+ }),
+ u ||
+ 'function' != typeof l ||
+ ((c = l.prototype.then),
+ p(
+ l.prototype,
+ 'then',
+ function (t, e) {
+ var n = this;
+ return new F(function (t, e) {
+ c.call(n, t, e);
+ }).then(t, e);
+ },
+ { unsafe: !0 }
+ ),
+ 'function' == typeof B &&
+ a(
+ { global: !0, enumerable: !0, forced: !0 },
+ {
+ fetch: function (t) {
+ return T(F, B.apply(s, arguments));
+ },
+ }
+ ))),
+ a({ global: !0, wrap: !0, forced: Y }, { Promise: F }),
+ v(F, D, !1, !0),
+ h(D),
+ (i = f(D)),
+ a(
+ { target: D, stat: !0, forced: Y },
+ {
+ reject: function (t) {
+ var e = K(this);
+ return e.reject.call(void 0, t), e.promise;
+ },
+ }
+ ),
+ a(
+ { target: D, stat: !0, forced: u || Y },
+ {
+ resolve: function (t) {
+ return T(u && this === i ? F : this, t);
+ },
+ }
+ ),
+ a(
+ { target: D, stat: !0, forced: $ },
+ {
+ all: function (t) {
+ var e = this,
+ n = K(e),
+ r = n.resolve,
+ o = n.reject,
+ i = k(function () {
+ var n = y(e.resolve),
+ i = [],
+ c = 0,
+ a = 1;
+ O(t, function (t) {
+ var u = c++,
+ s = !1;
+ i.push(void 0),
+ a++,
+ n.call(e, t).then(function (t) {
+ s || ((s = !0), (i[u] = t), --a || r(i));
+ }, o);
+ }),
+ --a || r(i);
+ });
+ return i.error && o(i.value), n.promise;
+ },
+ race: function (t) {
+ var e = this,
+ n = K(e),
+ r = n.reject,
+ o = k(function () {
+ var o = y(e.resolve);
+ O(t, function (t) {
+ o.call(e, t).then(n.resolve, r);
+ });
+ });
+ return o.error && r(o.value), n.promise;
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ 'use strict';
+ function r(t, e) {
+ try {
+ return e(t);
+ } catch (t) {
+ if (t instanceof TypeError) {
+ if (o.test(t)) return null;
+ if (i.test(t)) return;
+ }
+ throw t;
+ }
+ }
+ var o = /^null | null$|^[^(]* null /i,
+ i = /^undefined | undefined$|^[^(]* undefined /i;
+ (r.default = r), (t.exports = r);
+ },
+ function (t, e, n) {
+ var r = n(17),
+ o = '[' + n(96) + ']',
+ i = RegExp('^' + o + o + '*'),
+ c = RegExp(o + o + '*$'),
+ a = function (t) {
+ return function (e) {
+ var n = String(r(e));
+ return 1 & t && (n = n.replace(i, '')), 2 & t && (n = n.replace(c, '')), n;
+ };
+ };
+ t.exports = { start: a(1), end: a(2), trim: a(3) };
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(167);
+ r(
+ {
+ target: 'Array',
+ stat: !0,
+ forced: !n(116)(function (t) {
+ Array.from(t);
+ }),
+ },
+ { from: o }
+ );
+ },
+ function (t, e, n) {
+ var r = n(48),
+ o = Math.max,
+ i = Math.min;
+ t.exports = function (t, e) {
+ var n = r(t);
+ return n < 0 ? o(n + e, 0) : i(n, e);
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(57),
+ o = n(6),
+ i = n(20),
+ c = n(17),
+ a = n(82),
+ u = n(58);
+ r('match', 1, function (t, e, n) {
+ return [
+ function (e) {
+ var n = c(this),
+ r = null == e ? void 0 : e[t];
+ return void 0 !== r ? r.call(e, n) : new RegExp(e)[t](String(n));
+ },
+ function (t) {
+ var r = n(e, t, this);
+ if (r.done) return r.value;
+ var c = o(t),
+ s = String(this);
+ if (!c.global) return u(c, s);
+ var f = c.unicode;
+ c.lastIndex = 0;
+ for (var l, p = [], d = 0; null !== (l = u(c, s)); ) {
+ var v = String(l[0]);
+ (p[d] = v), '' === v && (c.lastIndex = a(s, i(c.lastIndex), f)), d++;
+ }
+ return 0 === d ? null : p;
+ },
+ ];
+ });
+ },
+ function (t, e, n) {
+ var r = n(7),
+ o = n(1),
+ i = n(71),
+ c = n(145),
+ a = n(10).f,
+ u = n(52).f,
+ s = n(88),
+ f = n(81),
+ l = n(109),
+ p = n(15),
+ d = n(3),
+ v = n(32).set,
+ h = n(112),
+ g = n(2)('match'),
+ y = o.RegExp,
+ m = y.prototype,
+ w = /a/g,
+ b = /a/g,
+ O = new y(w) !== w,
+ S = l.UNSUPPORTED_Y;
+ if (
+ r &&
+ i(
+ 'RegExp',
+ !O ||
+ S ||
+ d(function () {
+ return (b[g] = !1), y(w) != w || y(b) == b || '/a/i' != y(w, 'i');
+ })
+ )
+ ) {
+ for (
+ var E = function (t, e) {
+ var n,
+ r = this instanceof E,
+ o = s(t),
+ i = void 0 === e;
+ if (!r && o && t.constructor === E && i) return t;
+ O
+ ? o && !i && (t = t.source)
+ : t instanceof E && (i && (e = f.call(t)), (t = t.source)),
+ S && (n = !!e && e.indexOf('y') > -1) && (e = e.replace(/y/g, ''));
+ var a = c(O ? new y(t, e) : y(t, e), r ? this : m, E);
+ return S && n && v(a, { sticky: n }), a;
+ },
+ x = function (t) {
+ (t in E) ||
+ a(E, t, {
+ configurable: !0,
+ get: function () {
+ return y[t];
+ },
+ set: function (e) {
+ y[t] = e;
+ },
+ });
+ },
+ _ = u(y),
+ T = 0;
+ _.length > T;
+
+ )
+ x(_[T++]);
+ (m.constructor = E), (E.prototype = m), p(o, 'RegExp', E);
+ }
+ h('RegExp');
+ },
+ function (t, e, n) {
+ var r = n(88);
+ t.exports = function (t) {
+ if (r(t)) throw TypeError("The method doesn't accept regular expressions");
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(2)('match');
+ t.exports = function (t) {
+ var e = /./;
+ try {
+ '/./'[t](e);
+ } catch (n) {
+ try {
+ return (e[r] = !1), '/./'[t](e);
+ } catch (t) {}
+ }
+ return !1;
+ };
+ },
+ function (t, e, n) {
+ var r = n(8),
+ o = n(87);
+ t.exports = function (t, e, n) {
+ var i, c;
+ return (
+ o &&
+ 'function' == typeof (i = e.constructor) &&
+ i !== n &&
+ r((c = i.prototype)) &&
+ c !== n.prototype &&
+ o(t, c),
+ t
+ );
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(31),
+ o = n(8),
+ i = [].slice,
+ c = {},
+ a = function (t, e, n) {
+ if (!(e in c)) {
+ for (var r = [], o = 0; o < e; o++) r[o] = 'a[' + o + ']';
+ c[e] = Function('C,a', 'return new C(' + r.join(',') + ')');
+ }
+ return c[e](t, n);
+ };
+ t.exports =
+ Function.bind ||
+ function (t) {
+ var e = r(this),
+ n = i.call(arguments, 1),
+ c = function () {
+ var r = n.concat(i.call(arguments));
+ return this instanceof c ? a(e, r.length, r) : e.apply(t, r);
+ };
+ return o(e.prototype) && (c.prototype = e.prototype), c;
+ };
+ },
+ function (t, e, n) {
+ n(0)({ target: 'Object', stat: !0, sham: !n(7) }, { create: n(42) });
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(75),
+ i = r.WeakMap;
+ t.exports = 'function' == typeof i && /native code/.test(o(i));
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(85),
+ o = n(111);
+ t.exports = r
+ ? {}.toString
+ : function () {
+ return '[object ' + o(this) + ']';
+ };
+ },
+ function (t, e, n) {
+ var r = n(1);
+ t.exports = r.Promise;
+ },
+ function (t, e, n) {
+ var r = n(15);
+ t.exports = function (t, e, n) {
+ for (var o in e) r(t, o, e[o], n);
+ return t;
+ };
+ },
+ function (t, e) {
+ t.exports = function (t, e, n) {
+ if (!(t instanceof e)) throw TypeError('Incorrect ' + (n ? n + ' ' : '') + 'invocation');
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(6),
+ o = n(113),
+ i = n(20),
+ c = n(55),
+ a = n(114),
+ u = n(115),
+ s = function (t, e) {
+ (this.stopped = t), (this.result = e);
+ };
+ (t.exports = function (t, e, n, f, l) {
+ var p,
+ d,
+ v,
+ h,
+ g,
+ y,
+ m,
+ w = c(e, n, f ? 2 : 1);
+ if (l) p = t;
+ else {
+ if ('function' != typeof (d = a(t))) throw TypeError('Target is not iterable');
+ if (o(d)) {
+ for (v = 0, h = i(t.length); h > v; v++)
+ if ((g = f ? w(r((m = t[v]))[0], m[1]) : w(t[v])) && g instanceof s) return g;
+ return new s(!1);
+ }
+ p = d.call(t);
+ }
+ for (y = p.next; !(m = y.call(p)).done; )
+ if ('object' == typeof (g = u(p, w, m.value, f)) && g && g instanceof s) return g;
+ return new s(!1);
+ }).stop = function (t) {
+ return new s(!0, t);
+ };
+ },
+ function (t, e, n) {
+ var r,
+ o,
+ i,
+ c,
+ a,
+ u,
+ s,
+ f,
+ l = n(1),
+ p = n(30).f,
+ d = n(22),
+ v = n(118).set,
+ h = n(120),
+ g = l.MutationObserver || l.WebKitMutationObserver,
+ y = l.process,
+ m = l.Promise,
+ w = 'process' == d(y),
+ b = p(l, 'queueMicrotask'),
+ O = b && b.value;
+ O ||
+ ((r = function () {
+ var t, e;
+ for (w && (t = y.domain) && t.exit(); o; ) {
+ (e = o.fn), (o = o.next);
+ try {
+ e();
+ } catch (t) {
+ throw (o ? c() : (i = void 0), t);
+ }
+ }
+ (i = void 0), t && t.enter();
+ }),
+ w
+ ? (c = function () {
+ y.nextTick(r);
+ })
+ : g && !h
+ ? ((a = !0),
+ (u = document.createTextNode('')),
+ new g(r).observe(u, { characterData: !0 }),
+ (c = function () {
+ u.data = a = !a;
+ }))
+ : m && m.resolve
+ ? ((s = m.resolve(void 0)),
+ (f = s.then),
+ (c = function () {
+ f.call(s, r);
+ }))
+ : (c = function () {
+ v.call(l, r);
+ })),
+ (t.exports =
+ O ||
+ function (t) {
+ var e = { fn: t, next: void 0 };
+ i && (i.next = e), o || ((o = e), c()), (i = e);
+ });
+ },
+ function (t, e, n) {
+ var r = n(6),
+ o = n(8),
+ i = n(121);
+ t.exports = function (t, e) {
+ if ((r(t), o(e) && e.constructor === t)) return e;
+ var n = i.f(t);
+ return (0, n.resolve)(e), n.promise;
+ };
+ },
+ function (t, e, n) {
+ var r = n(1);
+ t.exports = function (t, e) {
+ var n = r.console;
+ n && n.error && (1 === arguments.length ? n.error(t) : n.error(t, e));
+ };
+ },
+ function (t, e) {
+ t.exports = function (t) {
+ try {
+ return { error: !1, value: t() };
+ } catch (t) {
+ return { error: !0, value: t };
+ }
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(124).IteratorPrototype,
+ o = n(42),
+ i = n(44),
+ c = n(59),
+ a = n(45),
+ u = function () {
+ return this;
+ };
+ t.exports = function (t, e, n) {
+ var s = e + ' Iterator';
+ return (t.prototype = o(r, { next: i(1, n) })), c(t, s, !1, !0), (a[s] = u), t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(8);
+ t.exports = function (t) {
+ if (!r(t) && null !== t) throw TypeError("Can't set " + String(t) + ' as a prototype');
+ return t;
+ };
+ },
+ function (t, e, n) {
+ var r = n(18),
+ o = n(52).f,
+ i = {}.toString,
+ c =
+ 'object' == typeof window && window && Object.getOwnPropertyNames
+ ? Object.getOwnPropertyNames(window)
+ : [];
+ t.exports.f = function (t) {
+ return c && '[object Window]' == i.call(t)
+ ? (function (t) {
+ try {
+ return o(t);
+ } catch (t) {
+ return c.slice();
+ }
+ })(t)
+ : o(r(t));
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(57),
+ o = n(6),
+ i = n(17),
+ c = n(162),
+ a = n(58);
+ r('search', 1, function (t, e, n) {
+ return [
+ function (e) {
+ var n = i(this),
+ r = null == e ? void 0 : e[t];
+ return void 0 !== r ? r.call(e, n) : new RegExp(e)[t](String(n));
+ },
+ function (t) {
+ var r = n(e, t, this);
+ if (r.done) return r.value;
+ var i = o(t),
+ u = String(this),
+ s = i.lastIndex;
+ c(s, 0) || (i.lastIndex = 0);
+ var f = a(i, u);
+ return c(i.lastIndex, s) || (i.lastIndex = s), null === f ? -1 : f.index;
+ },
+ ];
+ });
+ },
+ function (t, e) {
+ t.exports =
+ Object.is ||
+ function (t, e) {
+ return t === e ? 0 !== t || 1 / t == 1 / e : t != t && e != e;
+ };
+ },
+ function (t, e, n) {
+ n(0)({ target: 'Object', stat: !0 }, { setPrototypeOf: n(87) });
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(3),
+ i = n(21),
+ c = n(86),
+ a = n(125);
+ r(
+ {
+ target: 'Object',
+ stat: !0,
+ forced: o(function () {
+ c(1);
+ }),
+ sham: !a,
+ },
+ {
+ getPrototypeOf: function (t) {
+ return c(i(t));
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(0),
+ o = n(25),
+ i = n(31),
+ c = n(6),
+ a = n(8),
+ u = n(42),
+ s = n(146),
+ f = n(3),
+ l = o('Reflect', 'construct'),
+ p = f(function () {
+ function t() {}
+ return !(l(function () {}, [], t) instanceof t);
+ }),
+ d = !f(function () {
+ l(function () {});
+ }),
+ v = p || d;
+ r(
+ { target: 'Reflect', stat: !0, forced: v, sham: v },
+ {
+ construct: function (t, e) {
+ i(t), c(e);
+ var n = arguments.length < 3 ? t : i(arguments[2]);
+ if (d && !p) return l(t, e, n);
+ if (t == n) {
+ switch (e.length) {
+ case 0:
+ return new t();
+ case 1:
+ return new t(e[0]);
+ case 2:
+ return new t(e[0], e[1]);
+ case 3:
+ return new t(e[0], e[1], e[2]);
+ case 4:
+ return new t(e[0], e[1], e[2], e[3]);
+ }
+ var r = [null];
+ return r.push.apply(r, e), new (s.apply(t, r))();
+ }
+ var o = n.prototype,
+ f = u(a(o) ? o : Object.prototype),
+ v = Function.apply.call(t, f, e);
+ return a(v) ? v : f;
+ },
+ }
+ );
+ },
+ function (t, e, n) {
+ var r = n(1),
+ o = n(138).trim,
+ i = n(96),
+ c = r.parseInt,
+ a = /^[+-]?0[Xx]/,
+ u = 8 !== c(i + '08') || 22 !== c(i + '0x16');
+ t.exports = u
+ ? function (t, e) {
+ var n = o(String(t));
+ return c(n, e >>> 0 || (a.test(n) ? 16 : 10));
+ }
+ : c;
+ },
+ function (t, e, n) {
+ 'use strict';
+ var r = n(55),
+ o = n(21),
+ i = n(115),
+ c = n(113),
+ a = n(20),
+ u = n(68),
+ s = n(114);
+ t.exports = function (t) {
+ var e,
+ n,
+ f,
+ l,
+ p,
+ d,
+ v = o(t),
+ h = 'function' == typeof this ? this : Array,
+ g = arguments.length,
+ y = g > 1 ? arguments[1] : void 0,
+ m = void 0 !== y,
+ w = s(v),
+ b = 0;
+ if ((m && (y = r(y, g > 2 ? arguments[2] : void 0, 2)), null == w || (h == Array && c(w))))
+ for (n = new h((e = a(v.length))); e > b; b++) (d = m ? y(v[b], b) : v[b]), u(n, b, d);
+ else
+ for (p = (l = w.call(v)).next, n = new h(); !(f = p.call(l)).done; b++)
+ (d = m ? i(l, y, [f.value, b], !0) : f.value), u(n, b, d);
+ return (n.length = b), n;
+ };
+ },
+ function (t, e, n) {
+ 'use strict';
+ n.r(e);
+ n(66),
+ n(34),
+ n(35),
+ n(24),
+ n(46),
+ n(23),
+ n(65),
+ n(60),
+ n(136),
+ n(47),
+ n(62),
+ n(61),
+ n(92),
+ n(63),
+ n(28),
+ n(64),
+ n(26),
+ n(29),
+ n(36),
+ n(37),
+ n(38),
+ n(39);
+ var r = n(33),
+ o = n(13);
+ n(142), n(132);
+ var i = n(4);
+ n(133);
+ var c = n(11),
+ a = n(5),
+ u = n.n(a),
+ s = n(12);
+ function f() {
+ var t = u.a.localStorage.get('_ks_shopSettings:'.concat(Object(s.a)()));
+ return t ? JSON.parse(t) : null;
+ }
+ var l = n(43),
+ p = n.n(l);
+ function d(t, e) {
+ var n = document.head,
+ r = document.createElement('link');
+ (r.type = 'text/css'),
+ (r.rel = 'stylesheet'),
+ (r.href = t),
+ e && (r.onload = e),
+ n && n.appendChild(r);
+ }
+ var v = n(14),
+ h = !1;
+ n(93);
+ var g = ''.concat(o.a.API_PREFIX, '/getUserUnitFromIPCountry');
+ (window._ks_getDataFromIPCountryDone = !1), (window._ks_userUnitFromIPCountry = null);
+ n(139), n(130), n(131), n(91);
+ var y = n(19),
+ m = (n(137), n(89)),
+ w = n(27);
+ function b(t, e) {
+ var n = Object.keys(t);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(t);
+ e &&
+ (r = r.filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function O(t) {
+ for (var e = 1; e < arguments.length; e++) {
+ var n = null != arguments[e] ? arguments[e] : {};
+ e % 2
+ ? b(Object(n), !0).forEach(function (e) {
+ S(t, e, n[e]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
+ : b(Object(n)).forEach(function (e) {
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
+ });
+ }
+ return t;
+ }
+ function S(t, e, n) {
+ return (
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n),
+ t
+ );
+ }
+ function E(t) {
+ return (
+ (function (t) {
+ if (Array.isArray(t)) {
+ for (var e = 0, n = new Array(t.length); e < t.length; e++) n[e] = t[e];
+ return n;
+ }
+ })(t) ||
+ (function (t) {
+ if (
+ Symbol.iterator in Object(t) ||
+ '[object Arguments]' === Object.prototype.toString.call(t)
+ )
+ return Array.from(t);
+ })(t) ||
+ (function () {
+ throw new TypeError('Invalid attempt to spread non-iterable instance');
+ })()
+ );
+ }
+ function x(t, e, n) {
+ t.hasAttribute(e) && n(t.getAttribute(e) || '');
+ }
+ function _(t, e, n) {
+ if (t.hasAttribute(e)) {
+ var r = parseInt(t.getAttribute(e), 10);
+ isNaN(r) || n(r);
+ }
+ }
+ function T(t) {
+ return t
+ .replace(/&/g, '&')
+ .replace(/</g, '<')
+ .replace(/>/g, '>')
+ .replace(/'/g, "'");
+ }
+ function j(t) {
+ return (
+ Object.keys(t).forEach(function (e) {
+ t[e] || delete t[e];
+ }),
+ t.brand && (t.brand = T(t.brand)),
+ t.categories && (t.categories = T(t.categories)),
+ t
+ );
+ }
+ function I(t, e) {
+ var n = [],
+ r = Array.from(document.querySelectorAll('#KiwiSizingChart'));
+ if (
+ ((r = r.filter(function (t) {
+ return !t.className.includes('kiwiSizingLoaded');
+ })),
+ Object(i.a)(''.concat(r.length, ' snippet is found')),
+ (E(r).filter(function (t) {
+ return t.className.includes('kiwiAllowRegularInjectionSelector');
+ }).length === r.length ||
+ 0 !== Object.keys(e).length ||
+ 0 === r.length) &&
+ t)
+ ) {
+ var o = {
+ product: t.productID || t.product,
+ title: t.title,
+ tags: Array.isArray(t.tags) ? t.tags.join(',') : t.tags,
+ sku: t.sku,
+ categories: (t.categories || []).join(','),
+ brand: t.brand,
+ type: t.type,
+ vendor: t.vendor,
+ collections: t.collections,
+ };
+ (o = j(o)),
+ Object.keys(o).length > 0 &&
+ ((o.title && !o.product) || n.push([O({ shop: Object(s.a)() }, o), e, t]));
+ }
+ for (
+ var c = function (e) {
+ var o = r[e];
+ o.className += ' kiwiSizingLoaded';
+ var c = O({}, t);
+ x(o, 'data-product-name', function (t) {
+ c.title = t;
+ }),
+ (function (t, e, n) {
+ if (t.hasAttribute(e))
+ try {
+ n(JSON.parse(t.getAttribute(e) || '[]'));
+ } catch (t) {
+ Object(i.a)('error parse '.concat(e), t);
+ }
+ })(o, 'data-product-images', function (t) {
+ c.images = t;
+ });
+ var a = {
+ shop: Object(s.a)(),
+ sizingID: o.getAttribute('data-sizing-id'),
+ title: c.title,
+ tags: o.getAttribute('data-tags') || t.tags,
+ type: o.getAttribute('data-type') || t.type,
+ product: o.getAttribute('data-product') || t.productID || t.product,
+ vendor: o.getAttribute('data-vendor') || t.vendor,
+ collections: o.getAttribute('data-collections') || t.collections,
+ sku: o.getAttribute('data-sku') || t.sku,
+ categories: o.getAttribute('data-categories') || (t.categories || []).join(','),
+ brand: o.getAttribute('data-brand') || t.brand,
+ };
+ a = j(a);
+ var u = {};
+ x(o, 'data-modal-header-text', function (t) {
+ u.modalHeaderText = t;
+ }),
+ x(o, 'data-modal-sub-header-text', function (t) {
+ u.modalSubHeaderText = t;
+ }),
+ _(o, 'data-display-mode', function (t) {
+ u.displayMode = t;
+ }),
+ _(o, 'data-injection-order', function (t) {
+ u.injectionOrder = t;
+ }),
+ _(o, 'data-layout-type', function (t) {
+ u.layoutType = t;
+ }),
+ _(o, 'data-recommender-display-mode', function (t) {
+ u.calculatorDisplayMode = t;
+ }),
+ _(o, 'data-recommender-injection-order', function (t) {
+ u.calculatorInjectionOrder = t;
+ }),
+ x(o, 'data-recommender-injection-selector', function (t) {
+ u.calculatorInjectionSelector = t;
+ }),
+ x(o, 'data-link-text', function (t) {
+ u.buttonText = t;
+ }),
+ x(o, 'data-link-icon', function (t) {
+ u.buttonIcon = t;
+ }),
+ x(o, 'data-recommender-icon', function (t) {
+ u.calculatorIcon = t;
+ }),
+ x(o, 'data-recommender-has-result-text', function (t) {
+ u.calculatorHasResultText = t;
+ }),
+ x(o, 'data-recommender-no-result-text', function (t) {
+ u.calculatorNoResultText = t;
+ }),
+ x(o, 'data-recommender-no-input-text', function (t) {
+ u.calculatorNoInputText = t;
+ }),
+ (u.el = o),
+ (u.calculatorEl = o),
+ (u.injectionOrder = y.InjectionOrder.BEGINNING_OF),
+ Object(m.a)(u.calculatorInjectionOrder) ||
+ (u.calculatorInjectionOrder = y.InjectionOrder.END_OF),
+ n.push([a, u, c]);
+ },
+ a = 0;
+ a < r.length;
+ a++
+ )
+ c(a);
+ return n;
+ }
+ var k = ''.concat('https://api.static.kiwisizing.com', '/scriptVersion.json');
+ function A(t, e) {
+ var n = Object.keys(t);
+ if (Object.getOwnPropertySymbols) {
+ var r = Object.getOwnPropertySymbols(t);
+ e &&
+ (r = r.filter(function (e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable;
+ })),
+ n.push.apply(n, r);
+ }
+ return n;
+ }
+ function P(t) {
+ for (var e = 1; e < arguments.length; e++) {
+ var n = null != arguments[e] ? arguments[e] : {};
+ e % 2
+ ? A(Object(n), !0).forEach(function (e) {
+ L(t, e, n[e]);
+ })
+ : Object.getOwnPropertyDescriptors
+ ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(n))
+ : A(Object(n)).forEach(function (e) {
+ Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(n, e));
+ });
+ }
+ return t;
+ }
+ function L(t, e, n) {
+ return (
+ e in t
+ ? Object.defineProperty(t, e, {
+ value: n,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0,
+ })
+ : (t[e] = n),
+ t
+ );
+ }
+ function R(t, e) {
+ return (
+ (function (t) {
+ if (Array.isArray(t)) return t;
+ })(t) ||
+ (function (t, e) {
+ if (
+ !(
+ Symbol.iterator in Object(t) ||
+ '[object Arguments]' === Object.prototype.toString.call(t)
+ )
+ )
+ return;
+ var n = [],
+ r = !0,
+ o = !1,
+ i = void 0;
+ try {
+ for (
+ var c, a = t[Symbol.iterator]();
+ !(r = (c = a.next()).done) && (n.push(c.value), !e || n.length !== e);
+ r = !0
+ );
+ } catch (t) {
+ (o = !0), (i = t);
+ } finally {
+ try {
+ r || null == a.return || a.return();
+ } finally {
+ if (o) throw i;
+ }
+ }
+ return n;
+ })(t, e) ||
+ (function () {
+ throw new TypeError('Invalid attempt to destructure non-iterable instance');
+ })()
+ );
+ }
+ var C = o.a.getParams,
+ D = o.a.API_PREFIX,
+ N = ''.concat(D, '/getSizingChart');
+ function M(t, e, n) {
+ Object(i.a)('input', { productData: t, overrideConfig: e });
+ var o = I(t, e);
+ if (
+ (u.a.cookie.get('_ks_scriptVersionChecked') ||
+ p.a.ajax({ url: k, method: 'get' }, function (t, e, n) {
+ if (200 === t)
+ try {
+ var r = JSON.parse(e);
+ r.version &&
+ void 0 !== r.version &&
+ u.a.cookie.set('_ks_scriptVersion', r.version, { expireDays: 365, secure: !0 }),
+ u.a.cookie.set('_ks_scriptVersionChecked', !0, { expireDays: 1, secure: !0 });
+ } catch (t) {}
+ }),
+ 0 === o.length)
+ )
+ return (
+ Object(i.a)('No sizing request params found'),
+ void (
+ window.Shopify &&
+ !window.KiwiSizing &&
+ Object(c.b)('loadSizeChart.productMetaSnippet.notFound')
+ )
+ );
+ if ((Object(i.a)('Found request params', o), !window._ks_setTempCSS)) {
+ window._ks_setTempCSS = !0;
+ var a = document.createElement('style');
+ a.setAttribute('id', 'KiwiTempCSS'),
+ (a.innerHTML = '.ks-chart-container, .ks-calculator-container {display: none}'),
+ document.head && document.head.appendChild(a),
+ v.a.addEventListener('shop_css_loaded', function () {
+ var t = document.getElementById('KiwiTempCSS');
+ if (t) {
+ var e = t.parentNode;
+ e && e.removeChild(t);
+ }
+ });
+ }
+ if (
+ ((function () {
+ var t = u.a.cookie.get('_ks_userCountryUnit'),
+ e = u.a.cookie.get('_ks_countryCodeFromIP');
+ if (t) {
+ var n = parseInt(t, 10);
+ (0 !== n && 1 !== n) || (window._ks_userUnitFromIPCountry = n);
+ }
+ if (
+ (e && (window._ks_countryCodeFromIPCOuntry = e),
+ window._ks_userUnitFromIPCountry && window._ks_countryCodeFromIPCOuntry)
+ )
+ window._ks_getDataFromIPCountryDone = !0;
+ else {
+ var o = ''.concat(g, '?shop=').concat(Object(s.a)());
+ Object(r.a)({ url: o, method: 'get', withCredentials: !0 }, function (t, e, n) {
+ if (200 === t)
+ try {
+ var r = JSON.parse(e);
+ if (r.data) {
+ var o = r.data,
+ i = o.unit,
+ a = o.country;
+ (window._ks_userUnitFromIPCountry = i),
+ u.a.cookie.set('_ks_userCountryUnit', i, { expireDays: 1, secure: !0 }),
+ (window._ks_countryCodeFromIPCOuntry = a),
+ u.a.cookie.set('_ks_countryCodeFromIP', a, { expireDays: 1, secure: !0 });
+ }
+ } catch (t) {
+ Object(c.a)(t, 'getUserUnitFromIP', { responseText: e });
+ }
+ window._ks_getDataFromIPCountryDone = !0;
+ });
+ }
+ })(),
+ Object(c.b)('pageView'),
+ window.location.href.indexOf('kiwiOverrideInjectionSelector') > 0)
+ ) {
+ var f = (function (t, e) {
+ t = t.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
+ var n = new RegExp('[\\?&]' + t + '=([^]*)').exec(e);
+ return null == n ? null : n[1];
+ })('kiwiOverrideInjectionSelector', window.location.href);
+ e.el = document.querySelectorAll(Object(w.a)(f))[0];
+ }
+ o.forEach(function (t) {
+ var e = R(t, 3),
+ r = e[0],
+ o = e[1],
+ i = e[2];
+ U(r, o, n, i);
+ });
+ }
+ function U(t, e, a, l) {
+ !(function (t) {
+ try {
+ if (window._ks_styleLoaded) return;
+ (window._ks_styleLoaded = !0),
+ d(
+ ''
+ .concat('https://cdn.static.kiwisizing.com/kiwiSizingPlugin.prod.css', '?v=')
+ .concat(t)
+ );
+ } catch (t) {
+ console.log(t);
+ }
+ })(void 0);
+ var p = window.location.href.indexOf('kiwiTest=true') > 0,
+ g = window.location.href.indexOf('kiwiShowExample=true') > 0;
+ 'string' != typeof t.tags && (t.tags = '');
+ var y = { paramsObj: t, overrideConfig: e, productData: l };
+ g &&
+ ((t.showExample = !0),
+ (function () {
+ var t = document.createElement('div');
+ (t.className = 'ks-chart-preview-banner'),
+ (t.innerHTML =
+ '\n \n You are in preview mode for Kiwi Sizing.
\n This means you will be looking at an example size chart. This is to show how a size chart would look like on your shop.\n \n ');
+ var e = document.createElement('span');
+ (e.className = 'cancel-preview-button'),
+ (e.innerHTML = 'Cancel Preview'),
+ o.a.setOnClick(e, function (t) {
+ window.location.href = window.location.href.replace('kiwiShowExample=true', '');
+ }),
+ t.appendChild(e),
+ document.body && document.body.appendChild(t);
+ })()),
+ t.tags &&
+ (t.tags = (t.tags || '').replace(
+ /([\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2694-\u2697]|\uD83E[\uDD10-\uDD5D])/g,
+ ''
+ ));
+ var m = f();
+ m && ((t.cacheSettingsUpdateAt = m.updatedAt), (t.settingsVersion = m.version)),
+ Object(i.a)('retrieve', t);
+ var w = ''.concat(N, '?').concat(C(t)),
+ b = { url: w, method: 'get' };
+ w.length > 2e3 && (b = { url: N, method: 'post', body: C(t) });
+ var O = new Date().getTime();
+ Promise.all([
+ (function (e) {
+ return new Promise(function (n, o) {
+ Object(r.a)(e, function (e, r, u) {
+ var s = new Date().getTime() - O;
+ 200 !== e &&
+ (a && a(!1, function () {}),
+ Object(c.b)('loadSizeChart.serverFetch.fail'),
+ Object(i.a)('Server request failed for', t),
+ Object(c.a)(
+ new Error(),
+ 'serverRequestFail',
+ P({}, y, { duration: s, code: e, responseText: r })
+ ),
+ o()),
+ n({ responseText: r, duration: s });
+ });
+ });
+ })(P({}, b, { withCredentials: !0 })),
+ n.e(1).then(n.bind(null, 373)),
+ ]).then(function (t) {
+ var n,
+ r = R(t, 2),
+ o = r[0],
+ g = o.responseText,
+ w = o.duration,
+ b = r[1].default,
+ O = {};
+ try {
+ (O = JSON.parse(g)).settings
+ ? ((n = O.settings),
+ u.a.localStorage.set('_ks_shopSettings:'.concat(Object(s.a)()), JSON.stringify(n)))
+ : (O.settings = m),
+ Object(i.a)('Retrieved '.concat(O.sizings.length, ' sizing from server')),
+ Object(c.d)(O.settings, O.plan),
+ (function () {
+ try {
+ var t;
+ if (h) return;
+ h = !0;
+ var e =
+ (null != (t = window.Shopify) && null != (t = t.theme)
+ ? t.theme_store_id
+ : t) || '',
+ n = f(),
+ r = '';
+ n && (r = ''.concat(n.updatedAt, '-').concat(n.version)),
+ d(
+ ''
+ .concat('https://api.static.kiwisizing.com', '/styles/')
+ .concat(Object(s.a)(), '.css?v=')
+ .concat(r, '&vv=2&themeID=')
+ .concat(e),
+ function () {
+ v.a.emitEvent('shop_css_loaded');
+ }
+ );
+ } catch (t) {
+ Object(c.a)(t, 'updateCustomCSS');
+ }
+ })(),
+ Object(c.c)(w, g.length),
+ b({ logData: y, overrideConfig: e, productData: l, respJSON: O, inTestMode: p, cb: a });
+ } catch (t) {
+ Object(c.a)(t, 'outerWrapper', P({}, y, { respJSON: O, responseText: g }));
+ }
+ });
+ }
+ if (
+ ((window.ks = window.ks || {}),
+ (window.ks.setUserID = function (t) {
+ t && (window._ks_userID = t);
+ }),
+ (window.ks.setUserEmail = function (t) {
+ t && (window._ks_userEmail = t);
+ }),
+ (window.ks.setShopID = function (t) {
+ window._ks_shopID = t;
+ }),
+ (window.ks.setLanguage = function (t) {
+ window._ks_language = t;
+ }),
+ (window.ks.loadSizing = function (t) {
+ M(t.productData || {}, t.options || {}, t.loaded);
+ }),
+ (window.ks.on = function (t, e) {
+ switch (t) {
+ case 'sizing_loaded':
+ v.a.addEventListener('sizing_loaded', e);
+ break;
+ case 'modal_open':
+ v.a.addEventListener('open_modal', function (t) {
+ e({ modalID: t });
+ });
+ break;
+ case 'modal_close':
+ v.a.addEventListener('close_modal');
+ break;
+ case 'modal_tab_change':
+ v.a.addEventListener('refresh_modal_tab', function (t, n) {
+ n ||
+ e({
+ tabID: 'ks-calculator-tab-container' === t ? 'size-chart-layout' : 'recommender',
+ });
+ });
+ break;
+ case 'on_size_recommendation':
+ v.a.addEventListener('new_calculator_size', function (t) {
+ 'no_input' !== t.status && 'loading' !== t.status && e(t);
+ });
+ break;
+ case 'on_add_to_cart':
+ v.a.addEventListener('on_add_size_to_cart', e);
+ break;
+ default:
+ throw new Error('Undefined Kiwi Sizing events');
+ }
+ }),
+ window.Shopify || window.ShopifyAPI)
+ ) {
+ var F,
+ z,
+ H,
+ G = function (t, e, n, r) {
+ t && !n.el && (n.el = t), U(e, n, r, B);
+ },
+ B = (null != (H = window) && null != (H = H.KiwiSizing) ? H.data : H) || {};
+ (B.title =
+ B.title ||
+ (function () {
+ var t = document.getElementsByClassName('product-single__title');
+ if (t.length > 0) return t[0].textContent;
+ var e = document.getElementById('ProductJson-product-template');
+ if (e) return JSON.parse(e.innerHTML).title;
+ for (var n = document.getElementsByTagName('meta'), r = 0; r < n.length; r++) {
+ var o = n[r].getAttribute('property');
+ if ('og:title' === o || 'twitter:title' === o)
+ return n[r].getAttribute('content') || '';
+ }
+ return document.title.split('-')[0];
+ })()),
+ (window.loadKiwiSizingChart = function (t) {
+ var e;
+ (B = (null != (e = window) && null != (e = e.KiwiSizing) ? e.data : e) || {}),
+ window.ks.loadSizing({ productData: B, options: t });
+ }),
+ (window.loadIndividuaKiwiSizingChart = G),
+ (window.loadIndividualKiwiSizingChart = G),
+ window.ks.setShopID((window.KiwiSizing && window.KiwiSizing.shop) || window.Shopify.shop);
+ var K =
+ (null != (z = window.__st || {}) ? z.cid : z) ||
+ (null != (F = window.ShopifyAnalytics || {}) && null != (F = F.meta) && null != (F = F.page)
+ ? F.customerId
+ : F);
+ window.ks.setUserID(K);
+ try {
+ window.disableDefaultKiwiSizingLoad ||
+ window._ks_sizingLoaded ||
+ (window.ks.loadSizing({ productData: B, options: {} }), (window._ks_sizingLoaded = !0));
+ } catch (t) {
+ Object(c.a)(t, 'globalCatchAll');
+ }
+ }
+ (window.ks.clearQueue = function () {
+ if (window.ks && window.ks._queue && window.ks._queue.length > 0) {
+ var t = window.ks._queue;
+ (window.ks._queue = []),
+ t.forEach(function (t) {
+ var e = t.shift();
+ 'function' == typeof window.ks[e] && window.ks[e].apply(null, t);
+ });
+ }
+ }),
+ window.ks.clearQueue();
+ },
+]);
diff --git a/tests/integrations/kiwisizing/kiwisizing.spec.ts b/tests/integrations/kiwisizing/kiwisizing.spec.ts
new file mode 100644
index 00000000..b77e169b
--- /dev/null
+++ b/tests/integrations/kiwisizing/kiwisizing.spec.ts
@@ -0,0 +1,10 @@
+import { test, expect } from '@playwright/test';
+
+test('Kiwi sizing', async ({ page }) => {
+ await page.goto('/tests/integrations/kiwisizing/');
+ // Needed to ensure files are served from cache
+ await page.reload();
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
+});
diff --git a/tests/integrations/kiwisizing/shopify-dynamic-checkout.js b/tests/integrations/kiwisizing/shopify-dynamic-checkout.js
new file mode 100644
index 00000000..7564d541
--- /dev/null
+++ b/tests/integrations/kiwisizing/shopify-dynamic-checkout.js
@@ -0,0 +1,2370 @@
+!(function () {
+ var t = function (t) {
+ var n = { exports: {} };
+ return t.call(n.exports, n, n.exports), n.exports;
+ },
+ d = function (t) {
+ return t && t.__esModule ? t : { default: t };
+ },
+ v = t(function (t) {
+ var n = {}.toString;
+ t.exports = function (t) {
+ return n.call(t).slice(8, -1);
+ };
+ }),
+ T = t(function (t) {
+ var n = (t.exports =
+ 'undefined' != typeof window && window.Math == Math
+ ? window
+ : 'undefined' != typeof self && self.Math == Math
+ ? self
+ : Function('return this')());
+ 'number' == typeof __g && (__g = n);
+ }),
+ o = t(function (t) {
+ var n = '__core-js_shared__',
+ e = T[n] || (T[n] = {});
+ t.exports = function (t) {
+ return e[t] || (e[t] = {});
+ };
+ }),
+ l = t(function (t) {
+ var n = 0,
+ e = Math.random();
+ t.exports = function (t) {
+ return 'Symbol('.concat(t === undefined ? '' : t, ')_', (++n + e).toString(36));
+ };
+ }),
+ j = t(function (t) {
+ var n = o('wks'),
+ e = T.Symbol,
+ r = 'function' == typeof e;
+ (t.exports = function (t) {
+ return n[t] || (n[t] = (r && e[t]) || (r ? e : l)('Symbol.' + t));
+ }).store = n;
+ }),
+ F = t(function (t) {
+ var o = j('toStringTag'),
+ i =
+ 'Arguments' ==
+ v(
+ (function () {
+ return arguments;
+ })()
+ ),
+ u = function (t, n) {
+ try {
+ return t[n];
+ } catch (e) {}
+ };
+ t.exports = function (t) {
+ var n, e, r;
+ return t === undefined
+ ? 'Undefined'
+ : null === t
+ ? 'Null'
+ : 'string' == typeof (e = u((n = Object(t)), o))
+ ? e
+ : i
+ ? v(n)
+ : 'Object' == (r = v(n)) && 'function' == typeof n.callee
+ ? 'Arguments'
+ : r;
+ };
+ }),
+ k = t(function (t) {
+ t.exports = function (t) {
+ return 'object' == typeof t ? null !== t : 'function' == typeof t;
+ };
+ }),
+ h = t(function (t) {
+ t.exports = function (t) {
+ if (!k(t)) throw TypeError(t + ' is not an object!');
+ return t;
+ };
+ }),
+ m = t(function (t) {
+ t.exports = function (t) {
+ try {
+ return !!t();
+ } catch (n) {
+ return !0;
+ }
+ };
+ }),
+ p = t(function (t) {
+ t.exports = !m(function () {
+ return (
+ 7 !=
+ Object.defineProperty({}, 'a', {
+ get: function () {
+ return 7;
+ },
+ }).a
+ );
+ });
+ }),
+ b = t(function (t) {
+ var n = T.document,
+ e = k(n) && k(n.createElement);
+ t.exports = function (t) {
+ return e ? n.createElement(t) : {};
+ };
+ }),
+ u = t(function (t) {
+ t.exports =
+ !p &&
+ !m(function () {
+ return (
+ 7 !=
+ Object.defineProperty(b('div'), 'a', {
+ get: function () {
+ return 7;
+ },
+ }).a
+ );
+ });
+ }),
+ c = t(function (t) {
+ t.exports = function (t, n) {
+ if (!k(t)) return t;
+ var e, r;
+ if (n && 'function' == typeof (e = t.toString) && !k((r = e.call(t)))) return r;
+ if ('function' == typeof (e = t.valueOf) && !k((r = e.call(t)))) return r;
+ if (!n && 'function' == typeof (e = t.toString) && !k((r = e.call(t)))) return r;
+ throw TypeError("Can't convert object to primitive value");
+ };
+ }),
+ y = t(function (t, n) {
+ var o = Object.defineProperty;
+ n.f = p
+ ? Object.defineProperty
+ : function i(t, n, e) {
+ if ((h(t), (n = c(n, !0)), h(e), u))
+ try {
+ return o(t, n, e);
+ } catch (r) {}
+ if ('get' in e || 'set' in e) throw TypeError('Accessors not supported!');
+ return 'value' in e && (t[n] = e.value), t;
+ };
+ }),
+ i = t(function (t) {
+ t.exports = function (t, n) {
+ return { enumerable: !(1 & t), configurable: !(2 & t), writable: !(4 & t), value: n };
+ };
+ }),
+ E = t(function (t) {
+ t.exports = p
+ ? function (t, n, e) {
+ return y.f(t, n, i(1, e));
+ }
+ : function (t, n, e) {
+ return (t[n] = e), t;
+ };
+ }),
+ O = t(function (t) {
+ var e = {}.hasOwnProperty;
+ t.exports = function (t, n) {
+ return e.call(t, n);
+ };
+ }),
+ B = t(function (t) {
+ var n = (t.exports = { version: '2.5.1' });
+ 'number' == typeof __e && (__e = n);
+ }),
+ L = t(function (t) {
+ var i = l('src'),
+ n = 'toString',
+ e = Function[n],
+ u = ('' + e).split(n);
+ (B.inspectSource = function (t) {
+ return e.call(t);
+ }),
+ (t.exports = function (t, n, e, r) {
+ var o = 'function' == typeof e;
+ o && (O(e, 'name') || E(e, 'name', n)),
+ t[n] !== e &&
+ (o && (O(e, i) || E(e, i, t[n] ? '' + t[n] : u.join(String(n)))),
+ t === T
+ ? (t[n] = e)
+ : r
+ ? t[n]
+ ? (t[n] = e)
+ : E(t, n, e)
+ : (delete t[n], E(t, n, e)));
+ })(Function.prototype, n, function r() {
+ return ('function' == typeof this && this[i]) || e.call(this);
+ });
+ }),
+ s =
+ (t(function () {
+ 'use strict';
+ var t = {};
+ (t[j('toStringTag')] = 'z'),
+ t + '' != '[object z]' &&
+ L(
+ Object.prototype,
+ 'toString',
+ function n() {
+ return '[object ' + F(this) + ']';
+ },
+ !0
+ );
+ }),
+ t(function (t) {
+ var n = Math.ceil,
+ e = Math.floor;
+ t.exports = function (t) {
+ return isNaN((t = +t)) ? 0 : (0 < t ? e : n)(t);
+ };
+ })),
+ f = t(function (t) {
+ t.exports = function (t) {
+ if (t == undefined) throw TypeError("Can't call method on " + t);
+ return t;
+ };
+ }),
+ n = t(function (t) {
+ t.exports = function (c) {
+ return function (t, n) {
+ var e,
+ r,
+ o = String(f(t)),
+ i = s(n),
+ u = o.length;
+ return i < 0 || u <= i
+ ? c
+ ? ''
+ : undefined
+ : (e = o.charCodeAt(i)) < 55296 ||
+ 56319 < e ||
+ i + 1 === u ||
+ (r = o.charCodeAt(i + 1)) < 56320 ||
+ 57343 < r
+ ? c
+ ? o.charAt(i)
+ : e
+ : c
+ ? o.slice(i, i + 2)
+ : r - 56320 + ((e - 55296) << 10) + 65536;
+ };
+ };
+ }),
+ M = t(function (t) {
+ t.exports = !1;
+ }),
+ C = t(function (t) {
+ t.exports = function (t) {
+ if ('function' != typeof t) throw TypeError(t + ' is not a function!');
+ return t;
+ };
+ }),
+ I = t(function (t) {
+ t.exports = function (r, o, t) {
+ if ((C(r), o === undefined)) return r;
+ switch (t) {
+ case 1:
+ return function (t) {
+ return r.call(o, t);
+ };
+ case 2:
+ return function (t, n) {
+ return r.call(o, t, n);
+ };
+ case 3:
+ return function (t, n, e) {
+ return r.call(o, t, n, e);
+ };
+ }
+ return function () {
+ return r.apply(o, arguments);
+ };
+ };
+ }),
+ R = t(function (t) {
+ var y = 'prototype',
+ v = function (t, n, e) {
+ var r,
+ o,
+ i,
+ u,
+ c = t & v.F,
+ s = t & v.G,
+ f = t & v.S,
+ a = t & v.P,
+ l = t & v.B,
+ d = s ? T : f ? T[n] || (T[n] = {}) : (T[n] || {})[y],
+ p = s ? B : B[n] || (B[n] = {}),
+ h = p[y] || (p[y] = {});
+ for (r in (s && (e = n), e))
+ (i = ((o = !c && d && d[r] !== undefined) ? d : e)[r]),
+ (u = l && o ? I(i, T) : a && 'function' == typeof i ? I(Function.call, i) : i),
+ d && L(d, r, i, t & v.U),
+ p[r] != i && E(p, r, u),
+ a && h[r] != i && (h[r] = i);
+ };
+ (T.core = B),
+ (v.F = 1),
+ (v.G = 2),
+ (v.S = 4),
+ (v.P = 8),
+ (v.B = 16),
+ (v.W = 32),
+ (v.U = 64),
+ (v.R = 128),
+ (t.exports = v);
+ }),
+ D = t(function (t) {
+ t.exports = {};
+ }),
+ _ = t(function (t) {
+ t.exports = Object('z').propertyIsEnumerable(0)
+ ? Object
+ : function (t) {
+ return 'String' == v(t) ? t.split('') : Object(t);
+ };
+ }),
+ a = t(function (t) {
+ t.exports = function (t) {
+ return _(f(t));
+ };
+ }),
+ w = t(function (t) {
+ var n = Math.min;
+ t.exports = function (t) {
+ return 0 < t ? n(s(t), 9007199254740991) : 0;
+ };
+ }),
+ x = t(function (t) {
+ var e = Math.max,
+ r = Math.min;
+ t.exports = function (t, n) {
+ return (t = s(t)) < 0 ? e(t + n, 0) : r(t, n);
+ };
+ }),
+ g = t(function (t) {
+ t.exports = function (c) {
+ return function (t, n, e) {
+ var r,
+ o = a(t),
+ i = w(o.length),
+ u = x(e, i);
+ if (c && n != n) {
+ for (; u < i; ) if ((r = o[u++]) != r) return !0;
+ } else for (; u < i; u++) if ((c || u in o) && o[u] === n) return c || u || 0;
+ return !c && -1;
+ };
+ };
+ }),
+ A = t(function (t) {
+ var n = o('keys');
+ t.exports = function (t) {
+ return n[t] || (n[t] = l(t));
+ };
+ }),
+ e = t(function (t) {
+ var u = g(!1),
+ c = A('IE_PROTO');
+ t.exports = function (t, n) {
+ var e,
+ r = a(t),
+ o = 0,
+ i = [];
+ for (e in r) e != c && O(r, e) && i.push(e);
+ for (; n.length > o; ) O(r, (e = n[o++])) && (~u(i, e) || i.push(e));
+ return i;
+ };
+ }),
+ S = t(function (t) {
+ t.exports =
+ 'constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf'.split(
+ ','
+ );
+ }),
+ P = t(function (t) {
+ t.exports =
+ Object.keys ||
+ function n(t) {
+ return e(t, S);
+ };
+ }),
+ U = t(function (t) {
+ t.exports = p
+ ? Object.defineProperties
+ : function u(t, n) {
+ h(t);
+ for (var e, r = P(n), o = r.length, i = 0; i < o; ) y.f(t, (e = r[i++]), n[e]);
+ return t;
+ };
+ }),
+ N = t(function (t) {
+ var n = T.document;
+ t.exports = n && n.documentElement;
+ }),
+ G = t(function (t) {
+ var r = A('IE_PROTO'),
+ o = function () {},
+ i = 'prototype',
+ u = function () {
+ var t,
+ n = b('iframe'),
+ e = S.length,
+ r = '<',
+ o = '>';
+ for (
+ n.style.display = 'none',
+ N.appendChild(n),
+ n.src = 'javascript:',
+ (t = n.contentWindow.document).open(),
+ t.write(r + 'script' + o + 'document.F=Object' + r + '/script' + o),
+ t.close(),
+ u = t.F;
+ e--;
+
+ )
+ delete u[i][S[e]];
+ return u();
+ };
+ t.exports =
+ Object.create ||
+ function c(t, n) {
+ var e;
+ return (
+ null !== t ? ((o[i] = h(t)), (e = new o()), (o[i] = null), (e[r] = t)) : (e = u()),
+ n === undefined ? e : U(e, n)
+ );
+ };
+ }),
+ H = t(function (t) {
+ var r = y.f,
+ o = j('toStringTag');
+ t.exports = function (t, n, e) {
+ t && !O((t = e ? t : t.prototype), o) && r(t, o, { configurable: !0, value: n });
+ };
+ }),
+ q = t(function (t) {
+ 'use strict';
+ var r = {};
+ E(r, j('iterator'), function () {
+ return this;
+ }),
+ (t.exports = function (t, n, e) {
+ (t.prototype = G(r, { next: i(1, e) })), H(t, n + ' Iterator');
+ });
+ }),
+ z = t(function (t) {
+ t.exports = function (t) {
+ return Object(f(t));
+ };
+ }),
+ V = t(function (t) {
+ var n = A('IE_PROTO'),
+ e = Object.prototype;
+ t.exports =
+ Object.getPrototypeOf ||
+ function (t) {
+ return (
+ (t = z(t)),
+ O(t, n)
+ ? t[n]
+ : 'function' == typeof t.constructor && t instanceof t.constructor
+ ? t.constructor.prototype
+ : t instanceof Object
+ ? e
+ : null
+ );
+ };
+ }),
+ W = t(function (t) {
+ 'use strict';
+ var w = j('iterator'),
+ x = !([].keys && 'next' in [].keys()),
+ g = '@@iterator',
+ A = 'keys',
+ S = 'values',
+ P = function () {
+ return this;
+ };
+ t.exports = function (t, n, o, e, r, i, u) {
+ q(o, n, e);
+ var c,
+ s,
+ f,
+ a = function (t) {
+ if (!x && t in h) return h[t];
+ switch (t) {
+ case A:
+ return function n() {
+ return new o(this, t);
+ };
+ case S:
+ return function e() {
+ return new o(this, t);
+ };
+ }
+ return function r() {
+ return new o(this, t);
+ };
+ },
+ l = n + ' Iterator',
+ d = r == S,
+ p = !1,
+ h = t.prototype,
+ y = h[w] || h[g] || (r && h[r]),
+ v = y || a(r),
+ m = r ? (d ? a('entries') : v) : undefined,
+ b = ('Array' == n && h.entries) || y;
+ if (
+ (b &&
+ (f = V(b.call(new t()))) !== Object.prototype &&
+ f.next &&
+ (H(f, l, !0), M || O(f, w) || E(f, w, P)),
+ d &&
+ y &&
+ y.name !== S &&
+ ((p = !0),
+ (v = function _() {
+ return y.call(this);
+ })),
+ (M && !u) || (!x && !p && h[w]) || E(h, w, v),
+ (D[n] = v),
+ (D[l] = P),
+ r)
+ )
+ if (((c = { values: d ? v : a(S), keys: i ? v : a(A), entries: m }), u))
+ for (s in c) s in h || L(h, s, c[s]);
+ else R(R.P + R.F * (x || p), n, c);
+ return c;
+ };
+ }),
+ K =
+ (t(function () {
+ 'use strict';
+ var r = n(!0);
+ W(
+ String,
+ 'String',
+ function (t) {
+ (this._t = String(t)), (this._i = 0);
+ },
+ function () {
+ var t,
+ n = this._t,
+ e = this._i;
+ return e >= n.length
+ ? { value: undefined, done: !0 }
+ : ((t = r(n, e)), (this._i += t.length), { value: t, done: !1 });
+ }
+ );
+ }),
+ t(function (t) {
+ var n = j('unscopables'),
+ e = Array.prototype;
+ e[n] == undefined && E(e, n, {}),
+ (t.exports = function (t) {
+ e[n][t] = !0;
+ });
+ })),
+ r = t(function (t) {
+ t.exports = function (t, n) {
+ return { value: n, done: !!t };
+ };
+ }),
+ J = t(function (t) {
+ 'use strict';
+ (t.exports = W(
+ Array,
+ 'Array',
+ function (t, n) {
+ (this._t = a(t)), (this._i = 0), (this._k = n);
+ },
+ function () {
+ var t = this._t,
+ n = this._k,
+ e = this._i++;
+ return !t || e >= t.length
+ ? ((this._t = undefined), r(1))
+ : r(0, 'keys' == n ? e : 'values' == n ? t[e] : [e, t[e]]);
+ },
+ 'values'
+ )),
+ (D.Arguments = D.Array),
+ K('keys'),
+ K('values'),
+ K('entries');
+ }),
+ X =
+ (t(function () {
+ for (
+ var t = j('iterator'),
+ n = j('toStringTag'),
+ e = D.Array,
+ r = {
+ CSSRuleList: !0,
+ CSSStyleDeclaration: !1,
+ CSSValueList: !1,
+ ClientRectList: !1,
+ DOMRectList: !1,
+ DOMStringList: !1,
+ DOMTokenList: !0,
+ DataTransferItemList: !1,
+ FileList: !1,
+ HTMLAllCollection: !1,
+ HTMLCollection: !1,
+ HTMLFormElement: !1,
+ HTMLSelectElement: !1,
+ MediaList: !0,
+ MimeTypeArray: !1,
+ NamedNodeMap: !1,
+ NodeList: !0,
+ PaintRequestList: !1,
+ Plugin: !1,
+ PluginArray: !1,
+ SVGLengthList: !1,
+ SVGNumberList: !1,
+ SVGPathSegList: !1,
+ SVGPointList: !1,
+ SVGStringList: !1,
+ SVGTransformList: !1,
+ SourceBufferList: !1,
+ StyleSheetList: !0,
+ TextTrackCueList: !1,
+ TextTrackList: !1,
+ TouchList: !1,
+ },
+ o = P(r),
+ i = 0;
+ i < o.length;
+ i++
+ ) {
+ var u,
+ c = o[i],
+ s = r[c],
+ f = T[c],
+ a = f && f.prototype;
+ if (a && (a[t] || E(a, t, e), a[n] || E(a, n, c), (D[c] = e), s))
+ for (u in J) a[u] || L(a, u, J[u], !0);
+ }
+ }),
+ t(function (t) {
+ t.exports = function (t, n, e, r) {
+ if (!(t instanceof n) || (r !== undefined && r in t))
+ throw TypeError(e + ': incorrect invocation!');
+ return t;
+ };
+ })),
+ Y = t(function (t) {
+ t.exports = function (t, n, e, r) {
+ try {
+ return r ? n(h(e)[0], e[1]) : n(e);
+ } catch (i) {
+ var o = t['return'];
+ throw (o !== undefined && h(o.call(t)), i);
+ }
+ };
+ }),
+ $ = t(function (t) {
+ var n = j('iterator'),
+ e = Array.prototype;
+ t.exports = function (t) {
+ return t !== undefined && (D.Array === t || e[n] === t);
+ };
+ }),
+ Q = t(function (t) {
+ var n = j('iterator');
+ t.exports = B.getIteratorMethod = function (t) {
+ if (t != undefined) return t[n] || t['@@iterator'] || D[F(t)];
+ };
+ }),
+ Z = t(function (t, n) {
+ var d = {},
+ p = {};
+ ((n = t.exports =
+ function (t, n, e, r, o) {
+ var i,
+ u,
+ c,
+ s,
+ f = o
+ ? function () {
+ return t;
+ }
+ : Q(t),
+ a = I(e, r, n ? 2 : 1),
+ l = 0;
+ if ('function' != typeof f) throw TypeError(t + ' is not iterable!');
+ if ($(f)) {
+ for (i = w(t.length); l < i; l++)
+ if ((s = n ? a(h((u = t[l]))[0], u[1]) : a(t[l])) === d || s === p) return s;
+ } else
+ for (c = f.call(t); !(u = c.next()).done; )
+ if ((s = Y(c, a, u.value, n)) === d || s === p) return s;
+ }).BREAK = d),
+ (n.RETURN = p);
+ }),
+ tt = t(function (t) {
+ var o = j('species');
+ t.exports = function (t, n) {
+ var e,
+ r = h(t).constructor;
+ return r === undefined || (e = h(r)[o]) == undefined ? n : C(e);
+ };
+ }),
+ nt = t(function (t) {
+ t.exports = function (t, n, e) {
+ var r = e === undefined;
+ switch (n.length) {
+ case 0:
+ return r ? t() : t.call(e);
+ case 1:
+ return r ? t(n[0]) : t.call(e, n[0]);
+ case 2:
+ return r ? t(n[0], n[1]) : t.call(e, n[0], n[1]);
+ case 3:
+ return r ? t(n[0], n[1], n[2]) : t.call(e, n[0], n[1], n[2]);
+ case 4:
+ return r ? t(n[0], n[1], n[2], n[3]) : t.call(e, n[0], n[1], n[2], n[3]);
+ }
+ return t.apply(e, n);
+ };
+ }),
+ et = t(function (t) {
+ var r,
+ n,
+ e,
+ o = T.process,
+ i = T.setImmediate,
+ u = T.clearImmediate,
+ c = T.MessageChannel,
+ s = T.Dispatch,
+ f = 0,
+ a = {},
+ l = 'onreadystatechange',
+ d = function () {
+ var t = +this;
+ if (a.hasOwnProperty(t)) {
+ var n = a[t];
+ delete a[t], n();
+ }
+ },
+ p = function (t) {
+ d.call(t.data);
+ };
+ (i && u) ||
+ ((i = function h(t) {
+ for (var n = [], e = 1; arguments.length > e; ) n.push(arguments[e++]);
+ return (
+ (a[++f] = function () {
+ nt('function' == typeof t ? t : Function(t), n);
+ }),
+ r(f),
+ f
+ );
+ }),
+ (u = function y(t) {
+ delete a[t];
+ }),
+ 'process' == v(o)
+ ? (r = function (t) {
+ o.nextTick(I(d, t, 1));
+ })
+ : s && s.now
+ ? (r = function (t) {
+ s.now(I(d, t, 1));
+ })
+ : c
+ ? ((e = (n = new c()).port2), (n.port1.onmessage = p), (r = I(e.postMessage, e, 1)))
+ : T.addEventListener && 'function' == typeof postMessage && !T.importScripts
+ ? ((r = function (t) {
+ T.postMessage(t + '', '*');
+ }),
+ T.addEventListener('message', p, !1))
+ : (r =
+ l in b('script')
+ ? function (t) {
+ N.appendChild(b('script'))[l] = function () {
+ N.removeChild(this), d.call(t);
+ };
+ }
+ : function (t) {
+ setTimeout(I(d, t, 1), 0);
+ })),
+ (t.exports = { set: i, clear: u });
+ }),
+ rt = t(function (t) {
+ var c = et.set,
+ s = T.MutationObserver || T.WebKitMutationObserver,
+ f = T.process,
+ a = T.Promise,
+ l = 'process' == v(f);
+ t.exports = function () {
+ var r,
+ o,
+ i,
+ t = function () {
+ var t, n;
+ for (l && (t = f.domain) && t.exit(); r; ) {
+ (n = r.fn), (r = r.next);
+ try {
+ n();
+ } catch (e) {
+ throw (r ? i() : (o = undefined), e);
+ }
+ }
+ (o = undefined), t && t.enter();
+ };
+ if (l)
+ i = function () {
+ f.nextTick(t);
+ };
+ else if (s) {
+ var n = !0,
+ e = document.createTextNode('');
+ new s(t).observe(e, { characterData: !0 }),
+ (i = function () {
+ e.data = n = !n;
+ });
+ } else if (a && a.resolve) {
+ var u = a.resolve();
+ i = function () {
+ u.then(t);
+ };
+ } else
+ i = function () {
+ c.call(T, t);
+ };
+ return function (t) {
+ var n = { fn: t, next: undefined };
+ o && (o.next = n), r || ((r = n), i()), (o = n);
+ };
+ };
+ }),
+ ot = t(function (t) {
+ 'use strict';
+ function n(t) {
+ var e, r;
+ (this.promise = new t(function (t, n) {
+ if (e !== undefined || r !== undefined) throw TypeError('Bad Promise constructor');
+ (e = t), (r = n);
+ })),
+ (this.resolve = C(e)),
+ (this.reject = C(r));
+ }
+ t.exports.f = function (t) {
+ return new n(t);
+ };
+ }),
+ it = t(function (t) {
+ t.exports = function (t) {
+ try {
+ return { e: !1, v: t() };
+ } catch (n) {
+ return { e: !0, v: n };
+ }
+ };
+ }),
+ ut = t(function (t) {
+ t.exports = function (t, n) {
+ if ((h(t), k(n) && n.constructor === t)) return n;
+ var e = ot.f(t);
+ return (0, e.resolve)(n), e.promise;
+ };
+ }),
+ ct = t(function (t) {
+ t.exports = function (t, n, e) {
+ for (var r in n) L(t, r, n[r], e);
+ return t;
+ };
+ }),
+ st = t(function (t) {
+ 'use strict';
+ var e = j('species');
+ t.exports = function (t) {
+ var n = T[t];
+ p &&
+ n &&
+ !n[e] &&
+ y.f(n, e, {
+ configurable: !0,
+ get: function () {
+ return this;
+ },
+ });
+ };
+ }),
+ ft = t(function (t) {
+ var i = j('iterator'),
+ u = !1;
+ try {
+ var n = [7][i]();
+ (n['return'] = function () {
+ u = !0;
+ }),
+ Array.from(n, function () {
+ throw 2;
+ });
+ } catch (c) {}
+ t.exports = function (t, n) {
+ if (!n && !u) return !1;
+ var e = !1;
+ try {
+ var r = [7],
+ o = r[i]();
+ (o.next = function () {
+ return { done: (e = !0) };
+ }),
+ (r[i] = function () {
+ return o;
+ }),
+ t(r);
+ } catch (c) {}
+ return e;
+ };
+ }),
+ at =
+ (t(function () {
+ 'use strict';
+ var e,
+ n,
+ r,
+ o,
+ t = et.set,
+ i = rt(),
+ u = 'Promise',
+ l = T.TypeError,
+ c = T.process,
+ s = T[u],
+ f = 'process' == F(c),
+ a = function () {},
+ d = (n = ot.f),
+ p = !!(function () {
+ try {
+ var t = s.resolve(1),
+ n = ((t.constructor = {})[j('species')] = function (t) {
+ t(a, a);
+ });
+ return (f || 'function' == typeof PromiseRejectionEvent) && t.then(a) instanceof n;
+ } catch (e) {}
+ })(),
+ h = function (t) {
+ var n;
+ return !(!k(t) || 'function' != typeof (n = t.then)) && n;
+ },
+ y = function (a, e) {
+ if (!a._n) {
+ a._n = !0;
+ var r = a._c;
+ i(function () {
+ for (
+ var s = a._v,
+ f = 1 == a._s,
+ t = 0,
+ n = function (t) {
+ var n,
+ e,
+ r = f ? t.ok : t.fail,
+ o = t.resolve,
+ i = t.reject,
+ u = t.domain;
+ try {
+ r
+ ? (f || (2 == a._h && b(a), (a._h = 1)),
+ !0 === r ? (n = s) : (u && u.enter(), (n = r(s)), u && u.exit()),
+ n === t.promise
+ ? i(l('Promise-chain cycle'))
+ : (e = h(n))
+ ? e.call(n, o, i)
+ : o(n))
+ : i(s);
+ } catch (c) {
+ i(c);
+ }
+ };
+ r.length > t;
+
+ )
+ n(r[t++]);
+ (a._c = []), (a._n = !1), e && !a._h && v(a);
+ });
+ }
+ },
+ v = function (i) {
+ t.call(T, function () {
+ var t,
+ n,
+ e,
+ r = i._v,
+ o = m(i);
+ if (
+ (o &&
+ ((t = it(function () {
+ f
+ ? c.emit('unhandledRejection', r, i)
+ : (n = T.onunhandledrejection)
+ ? n({ promise: i, reason: r })
+ : (e = T.console) && e.error && e.error('Unhandled promise rejection', r);
+ })),
+ (i._h = f || m(i) ? 2 : 1)),
+ (i._a = undefined),
+ o && t.e)
+ )
+ throw t.v;
+ });
+ },
+ m = function (t) {
+ if (1 == t._h) return !1;
+ for (var n, e = t._a || t._c, r = 0; e.length > r; )
+ if ((n = e[r++]).fail || !m(n.promise)) return !1;
+ return !0;
+ },
+ b = function (n) {
+ t.call(T, function () {
+ var t;
+ f
+ ? c.emit('rejectionHandled', n)
+ : (t = T.onrejectionhandled) && t({ promise: n, reason: n._v });
+ });
+ },
+ _ = function (t) {
+ var n = this;
+ n._d ||
+ ((n._d = !0),
+ ((n = n._w || n)._v = t),
+ (n._s = 2),
+ n._a || (n._a = n._c.slice()),
+ y(n, !0));
+ },
+ w = function (e) {
+ var r,
+ o = this;
+ if (!o._d) {
+ (o._d = !0), (o = o._w || o);
+ try {
+ if (o === e) throw l("Promise can't be resolved itself");
+ (r = h(e))
+ ? i(function () {
+ var t = { _w: o, _d: !1 };
+ try {
+ r.call(e, I(w, t, 1), I(_, t, 1));
+ } catch (n) {
+ _.call(t, n);
+ }
+ })
+ : ((o._v = e), (o._s = 1), y(o, !1));
+ } catch (t) {
+ _.call({ _w: o, _d: !1 }, t);
+ }
+ }
+ };
+ p ||
+ ((s = function x(t) {
+ X(this, s, u, '_h'), C(t), e.call(this);
+ try {
+ t(I(w, this, 1), I(_, this, 1));
+ } catch (n) {
+ _.call(this, n);
+ }
+ }),
+ ((e = function g() {
+ (this._c = []),
+ (this._a = undefined),
+ (this._s = 0),
+ (this._d = !1),
+ (this._v = undefined),
+ (this._h = 0),
+ (this._n = !1);
+ }).prototype = ct(s.prototype, {
+ then: function A(t, n) {
+ var e = d(tt(this, s));
+ return (
+ (e.ok = 'function' != typeof t || t),
+ (e.fail = 'function' == typeof n && n),
+ (e.domain = f ? c.domain : undefined),
+ this._c.push(e),
+ this._a && this._a.push(e),
+ this._s && y(this, !1),
+ e.promise
+ );
+ },
+ catch: function (t) {
+ return this.then(undefined, t);
+ },
+ })),
+ (r = function () {
+ var t = new e();
+ (this.promise = t), (this.resolve = I(w, t, 1)), (this.reject = I(_, t, 1));
+ }),
+ (ot.f = d =
+ function (t) {
+ return t === s || t === o ? new r(t) : n(t);
+ })),
+ R(R.G + R.W + R.F * !p, { Promise: s }),
+ H(s, u),
+ st(u),
+ (o = B[u]),
+ R(R.S + R.F * !p, u, {
+ reject: function S(t) {
+ var n = d(this);
+ return (0, n.reject)(t), n.promise;
+ },
+ }),
+ R(R.S + R.F * (M || !p), u, {
+ resolve: function P(t) {
+ return ut(M && this === o ? s : this, t);
+ },
+ }),
+ R(
+ R.S +
+ R.F *
+ !(
+ p &&
+ ft(function (t) {
+ s.all(t)['catch'](a);
+ })
+ ),
+ u,
+ {
+ all: function E(t) {
+ var u = this,
+ n = d(u),
+ c = n.resolve,
+ s = n.reject,
+ e = it(function () {
+ var r = [],
+ o = 0,
+ i = 1;
+ Z(t, !1, function (t) {
+ var n = o++,
+ e = !1;
+ r.push(undefined),
+ i++,
+ u.resolve(t).then(function (t) {
+ e || ((e = !0), (r[n] = t), --i || c(r));
+ }, s);
+ }),
+ --i || c(r);
+ });
+ return e.e && s(e.v), n.promise;
+ },
+ race: function O(t) {
+ var n = this,
+ e = d(n),
+ r = e.reject,
+ o = it(function () {
+ Z(t, !1, function (t) {
+ n.resolve(t).then(e.resolve, r);
+ });
+ });
+ return o.e && r(o.v), e.promise;
+ },
+ }
+ );
+ }),
+ t(function (t) {
+ t.exports = B.Promise;
+ }),
+ t(function (t) {
+ t.exports =
+ Array.isArray ||
+ function n(t) {
+ return 'Array' == v(t);
+ };
+ })),
+ lt =
+ (t(function () {
+ R(R.S, 'Array', { isArray: at });
+ }),
+ t(function (t) {
+ 'use strict';
+ t.exports = function (t, n, e) {
+ n in t ? y.f(t, n, i(0, e)) : (t[n] = e);
+ };
+ })),
+ dt =
+ (t(function () {
+ 'use strict';
+ R(
+ R.S +
+ R.F *
+ !ft(function (t) {
+ Array.from(t);
+ }),
+ 'Array',
+ {
+ from: function h(t, n, e) {
+ var r,
+ o,
+ i,
+ u,
+ c = z(t),
+ s = 'function' == typeof this ? this : Array,
+ f = arguments.length,
+ a = 1 < f ? n : undefined,
+ l = a !== undefined,
+ d = 0,
+ p = Q(c);
+ if (
+ (l && (a = I(a, 2 < f ? e : undefined, 2)), p == undefined || (s == Array && $(p)))
+ )
+ for (o = new s((r = w(c.length))); d < r; d++) lt(o, d, l ? a(c[d], d) : c[d]);
+ else
+ for (u = p.call(c), o = new s(); !(i = u.next()).done; d++)
+ lt(o, d, l ? Y(u, a, [i.value, d], !0) : i.value);
+ return (o.length = d), o;
+ },
+ }
+ );
+ }),
+ t(function () {
+ 'use strict';
+ R(
+ R.S +
+ R.F *
+ m(function () {
+ function t() {}
+ return !(Array.of.call(t) instanceof t);
+ }),
+ 'Array',
+ {
+ of: function r() {
+ for (
+ var t = 0,
+ n = arguments.length,
+ e = new ('function' == typeof this ? this : Array)(n);
+ t < n;
+
+ )
+ lt(e, t, arguments[t++]);
+ return (e.length = n), e;
+ },
+ }
+ );
+ }),
+ t(function (t) {
+ 'use strict';
+ t.exports = function (t, n) {
+ return (
+ !!t &&
+ m(function () {
+ n ? t.call(null, function () {}, 1) : t.call(null);
+ })
+ );
+ };
+ })),
+ pt =
+ (t(function () {
+ 'use strict';
+ var n = [].join;
+ R(R.P + R.F * (_ != Object || !dt(n)), 'Array', {
+ join: function e(t) {
+ return n.call(a(this), t === undefined ? ',' : t);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var f = [].slice;
+ R(
+ R.P +
+ R.F *
+ m(function () {
+ N && f.call(N);
+ }),
+ 'Array',
+ {
+ slice: function a(t, n) {
+ var e = w(this.length),
+ r = v(this);
+ if (((n = n === undefined ? e : n), 'Array' == r)) return f.call(this, t, n);
+ for (var o = x(t, e), i = x(n, e), u = w(i - o), c = Array(u), s = 0; s < u; s++)
+ c[s] = 'String' == r ? this.charAt(o + s) : this[o + s];
+ return c;
+ },
+ }
+ );
+ }),
+ t(function () {
+ 'use strict';
+ var n = [].sort,
+ t = [1, 2, 3];
+ R(
+ R.P +
+ R.F *
+ (m(function () {
+ t.sort(undefined);
+ }) ||
+ !m(function () {
+ t.sort(null);
+ }) ||
+ !dt(n)),
+ 'Array',
+ {
+ sort: function e(t) {
+ return t === undefined ? n.call(z(this)) : n.call(z(this), C(t));
+ },
+ }
+ );
+ }),
+ t(function (t) {
+ var e = j('species');
+ t.exports = function (t) {
+ var n;
+ return (
+ at(t) &&
+ ('function' != typeof (n = t.constructor) ||
+ (n !== Array && !at(n.prototype)) ||
+ (n = undefined),
+ k(n) && null === (n = n[e]) && (n = undefined)),
+ n === undefined ? Array : n
+ );
+ };
+ })),
+ ht = t(function (t) {
+ t.exports = function (t, n) {
+ return new (pt(t))(n);
+ };
+ }),
+ yt = t(function (t) {
+ t.exports = function (l, t) {
+ var d = 1 == l,
+ p = 2 == l,
+ h = 3 == l,
+ y = 4 == l,
+ v = 6 == l,
+ m = 5 == l || v,
+ b = t || ht;
+ return function (t, n, e) {
+ for (
+ var r,
+ o,
+ i = z(t),
+ u = _(i),
+ c = I(n, e, 3),
+ s = w(u.length),
+ f = 0,
+ a = d ? b(t, s) : p ? b(t, 0) : undefined;
+ f < s;
+ f++
+ )
+ if ((m || f in u) && ((o = c((r = u[f]), f, i)), l))
+ if (d) a[f] = o;
+ else if (o)
+ switch (l) {
+ case 3:
+ return !0;
+ case 5:
+ return r;
+ case 6:
+ return f;
+ case 2:
+ a.push(r);
+ }
+ else if (y) return !1;
+ return v ? -1 : h || y ? y : a;
+ };
+ };
+ }),
+ vt =
+ (t(function () {
+ 'use strict';
+ var e = yt(0);
+ var t = dt([].forEach, !0);
+ R(R.P + R.F * !t, 'Array', {
+ forEach: function r(t, n) {
+ return e(this, t, n);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(1);
+ R(R.P + R.F * !dt([].map, !0), 'Array', {
+ map: function r(t, n) {
+ return e(this, t, n);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(2);
+ R(R.P + R.F * !dt([].filter, !0), 'Array', {
+ filter: function r(t, n) {
+ return e(this, t, n);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(3);
+ R(R.P + R.F * !dt([].some, !0), 'Array', {
+ some: function r(t, n) {
+ return e(this, t, n);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(4);
+ R(R.P + R.F * !dt([].every, !0), 'Array', {
+ every: function r(t, n) {
+ return e(this, t, n);
+ },
+ });
+ }),
+ t(function (t) {
+ t.exports = function (t, n, e, r, o) {
+ C(n);
+ var i = z(t),
+ u = _(i),
+ c = w(i.length),
+ s = o ? c - 1 : 0,
+ f = o ? -1 : 1;
+ if (e < 2)
+ for (;;) {
+ if (s in u) {
+ (r = u[s]), (s += f);
+ break;
+ }
+ if (((s += f), o ? s < 0 : c <= s))
+ throw TypeError('Reduce of empty array with no initial value');
+ }
+ for (; o ? 0 <= s : s < c; s += f) s in u && (r = n(r, u[s], s, i));
+ return r;
+ };
+ })),
+ mt =
+ (t(function () {
+ 'use strict';
+ R(R.P + R.F * !dt([].reduce, !0), 'Array', {
+ reduce: function e(t, n) {
+ return vt(this, t, arguments.length, n, !1);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ R(R.P + R.F * !dt([].reduceRight, !0), 'Array', {
+ reduceRight: function e(t, n) {
+ return vt(this, t, arguments.length, n, !0);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var e = g(!1),
+ r = [].indexOf,
+ o = !!r && 1 / [1].indexOf(1, -0) < 0;
+ R(R.P + R.F * (o || !dt(r)), 'Array', {
+ indexOf: function i(t, n) {
+ return o ? r.apply(this, arguments) || 0 : e(this, t, n);
+ },
+ });
+ }),
+ t(function () {
+ 'use strict';
+ var i = [].lastIndexOf,
+ u = !!i && 1 / [1].lastIndexOf(1, -0) < 0;
+ R(R.P + R.F * (u || !dt(i)), 'Array', {
+ lastIndexOf: function c(t, n) {
+ if (u) return i.apply(this, arguments) || 0;
+ var e = a(this),
+ r = w(e.length),
+ o = r - 1;
+ for (1 < arguments.length && (o = Math.min(o, s(n))), o < 0 && (o = r + o); 0 <= o; o--)
+ if (o in e && e[o] === t) return o || 0;
+ return -1;
+ },
+ });
+ }),
+ t(function (t) {
+ 'use strict';
+ t.exports =
+ [].copyWithin ||
+ function a(t, n, e) {
+ var r = z(this),
+ o = w(r.length),
+ i = x(t, o),
+ u = x(n, o),
+ c = 2 < arguments.length ? e : undefined,
+ s = Math.min((c === undefined ? o : x(c, o)) - u, o - i),
+ f = 1;
+ for (u < i && i < u + s && ((f = -1), (u += s - 1), (i += s - 1)); 0 < s--; )
+ u in r ? (r[i] = r[u]) : delete r[i], (i += f), (u += f);
+ return r;
+ };
+ })),
+ bt =
+ (t(function () {
+ R(R.P, 'Array', { copyWithin: mt }), K('copyWithin');
+ }),
+ t(function (t) {
+ 'use strict';
+ t.exports = function f(t, n, e) {
+ for (
+ var r = z(this),
+ o = w(r.length),
+ i = arguments.length,
+ u = x(1 < i ? n : undefined, o),
+ c = 2 < i ? e : undefined,
+ s = c === undefined ? o : x(c, o);
+ u < s;
+
+ )
+ r[u++] = t;
+ return r;
+ };
+ })),
+ _t =
+ (t(function () {
+ R(R.P, 'Array', { fill: bt }), K('fill');
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(5),
+ t = 'find',
+ n = !0;
+ t in [] &&
+ Array(1)[t](function () {
+ n = !1;
+ }),
+ R(R.P + R.F * n, 'Array', {
+ find: function r(t, n) {
+ return e(this, t, 1 < arguments.length ? n : undefined);
+ },
+ }),
+ K(t);
+ }),
+ t(function () {
+ 'use strict';
+ var e = yt(6),
+ t = 'findIndex',
+ n = !0;
+ t in [] &&
+ Array(1)[t](function () {
+ n = !1;
+ }),
+ R(R.P + R.F * n, 'Array', {
+ findIndex: function r(t, n) {
+ return e(this, t, 1 < arguments.length ? n : undefined);
+ },
+ }),
+ K(t);
+ }),
+ t(function () {
+ st('Array');
+ }),
+ t(function (t) {
+ t.exports = B.Array;
+ }),
+ t(function (t) {
+ var e = l('meta'),
+ n = y.f,
+ r = 0,
+ o =
+ Object.isExtensible ||
+ function () {
+ return !0;
+ },
+ i = !m(function () {
+ return o(Object.preventExtensions({}));
+ }),
+ u = function (t) {
+ n(t, e, { value: { i: 'O' + ++r, w: {} } });
+ },
+ c = function (t, n) {
+ if (!k(t)) return 'symbol' == typeof t ? t : ('string' == typeof t ? 'S' : 'P') + t;
+ if (!O(t, e)) {
+ if (!o(t)) return 'F';
+ if (!n) return 'E';
+ u(t);
+ }
+ return t[e].i;
+ },
+ s = function (t, n) {
+ if (!O(t, e)) {
+ if (!o(t)) return !0;
+ if (!n) return !1;
+ u(t);
+ }
+ return t[e].w;
+ },
+ f = function (t) {
+ return i && a.NEED && o(t) && !O(t, e) && u(t), t;
+ },
+ a = (t.exports = { KEY: e, NEED: !1, fastKey: c, getWeak: s, onFreeze: f });
+ })),
+ wt = t(function (t) {
+ t.exports = function (t, n) {
+ if (!k(t) || t._t !== n) throw TypeError('Incompatible receiver, ' + n + ' required!');
+ return t;
+ };
+ }),
+ xt = t(function (t) {
+ 'use strict';
+ var s = y.f,
+ u = _t.fastKey,
+ f = p ? '_s' : 'size',
+ a = function (t, n) {
+ var e,
+ r = u(n);
+ if ('F' !== r) return t._i[r];
+ for (e = t._f; e; e = e.n) if (e.k == n) return e;
+ };
+ t.exports = {
+ getConstructor: function (t, i, e, r) {
+ var o = t(function (t, n) {
+ X(t, o, i, '_i'),
+ (t._t = i),
+ (t._i = G(null)),
+ (t._f = undefined),
+ (t._l = undefined),
+ (t[f] = 0),
+ n != undefined && Z(n, e, t[r], t);
+ });
+ return (
+ ct(o.prototype, {
+ clear: function u() {
+ for (var t = wt(this, i), n = t._i, e = t._f; e; e = e.n)
+ (e.r = !0), e.p && (e.p = e.p.n = undefined), delete n[e.i];
+ (t._f = t._l = undefined), (t[f] = 0);
+ },
+ delete: function (t) {
+ var n = wt(this, i),
+ e = a(n, t);
+ if (e) {
+ var r = e.n,
+ o = e.p;
+ delete n._i[e.i],
+ (e.r = !0),
+ o && (o.n = r),
+ r && (r.p = o),
+ n._f == e && (n._f = r),
+ n._l == e && (n._l = o),
+ n[f]--;
+ }
+ return !!e;
+ },
+ forEach: function c(t, n) {
+ wt(this, i);
+ for (
+ var e, r = I(t, 1 < arguments.length ? n : undefined, 3);
+ (e = e ? e.n : this._f);
+
+ )
+ for (r(e.v, e.k, this); e && e.r; ) e = e.p;
+ },
+ has: function n(t) {
+ return !!a(wt(this, i), t);
+ },
+ }),
+ p &&
+ s(o.prototype, 'size', {
+ get: function () {
+ return wt(this, i)[f];
+ },
+ }),
+ o
+ );
+ },
+ def: function (t, n, e) {
+ var r,
+ o,
+ i = a(t, n);
+ return (
+ i
+ ? (i.v = e)
+ : ((t._l = i = { i: (o = u(n, !0)), k: n, v: e, p: (r = t._l), n: undefined, r: !1 }),
+ t._f || (t._f = i),
+ r && (r.n = i),
+ t[f]++,
+ 'F' !== o && (t._i[o] = i)),
+ t
+ );
+ },
+ getEntry: a,
+ setStrong: function (t, e, n) {
+ W(
+ t,
+ e,
+ function (t, n) {
+ (this._t = wt(t, e)), (this._k = n), (this._l = undefined);
+ },
+ function () {
+ for (var t = this, n = t._k, e = t._l; e && e.r; ) e = e.p;
+ return t._t && (t._l = e = e ? e.n : t._t._f)
+ ? r(0, 'keys' == n ? e.k : 'values' == n ? e.v : [e.k, e.v])
+ : ((t._t = undefined), r(1));
+ },
+ n ? 'entries' : 'values',
+ !n,
+ !0
+ ),
+ st(e);
+ },
+ };
+ }),
+ gt = t(function (t, n) {
+ n.f = {}.propertyIsEnumerable;
+ }),
+ At = t(function (t, n) {
+ var r = Object.getOwnPropertyDescriptor;
+ n.f = p
+ ? r
+ : function o(t, n) {
+ if (((t = a(t)), (n = c(n, !0)), u))
+ try {
+ return r(t, n);
+ } catch (e) {}
+ if (O(t, n)) return i(!gt.f.call(t, n), t[n]);
+ };
+ }),
+ St = t(function (t) {
+ var i = function (t, n) {
+ if ((h(t), !k(n) && null !== n)) throw TypeError(n + ": can't set as prototype!");
+ };
+ t.exports = {
+ set:
+ Object.setPrototypeOf ||
+ ('__proto__' in {}
+ ? (function (t, e, r) {
+ try {
+ (r = I(Function.call, At.f(Object.prototype, '__proto__').set, 2))(t, []),
+ (e = !(t instanceof Array));
+ } catch (n) {
+ e = !0;
+ }
+ return function o(t, n) {
+ return i(t, n), e ? (t.__proto__ = n) : r(t, n), t;
+ };
+ })({}, !1)
+ : undefined),
+ check: i,
+ };
+ }),
+ Pt = t(function (t) {
+ var i = St.set;
+ t.exports = function (t, n, e) {
+ var r,
+ o = n.constructor;
+ return (
+ o !== e &&
+ 'function' == typeof o &&
+ (r = o.prototype) !== e.prototype &&
+ k(r) &&
+ i &&
+ i(t, r),
+ t
+ );
+ };
+ }),
+ Et = t(function (t) {
+ 'use strict';
+ t.exports = function (r, t, n, e, o, u) {
+ var i = T[r],
+ c = i,
+ s = o ? 'set' : 'add',
+ f = c && c.prototype,
+ a = {},
+ l = function (t) {
+ var e = f[t];
+ L(
+ f,
+ t,
+ 'delete' == t
+ ? function (t) {
+ return !(u && !k(t)) && e.call(this, 0 === t ? 0 : t);
+ }
+ : 'has' == t
+ ? function n(t) {
+ return !(u && !k(t)) && e.call(this, 0 === t ? 0 : t);
+ }
+ : 'get' == t
+ ? function r(t) {
+ return u && !k(t) ? undefined : e.call(this, 0 === t ? 0 : t);
+ }
+ : 'add' == t
+ ? function o(t) {
+ return e.call(this, 0 === t ? 0 : t), this;
+ }
+ : function i(t, n) {
+ return e.call(this, 0 === t ? 0 : t, n), this;
+ }
+ );
+ };
+ if (
+ 'function' == typeof c &&
+ (u ||
+ (f.forEach &&
+ !m(function () {
+ new c().entries().next();
+ })))
+ ) {
+ var d = new c(),
+ p = d[s](u ? {} : -0, 1) != d,
+ h = m(function () {
+ d.has(1);
+ }),
+ y = ft(function (t) {
+ new c(t);
+ }),
+ v =
+ !u &&
+ m(function () {
+ for (var t = new c(), n = 5; n--; ) t[s](n, n);
+ return !t.has(-0);
+ });
+ y ||
+ (((c = t(function (t, n) {
+ X(t, c, r);
+ var e = Pt(new i(), t, c);
+ return n != undefined && Z(n, o, e[s], e), e;
+ })).prototype = f).constructor = c),
+ (h || v) && (l('delete'), l('has'), o && l('get')),
+ (v || p) && l(s),
+ u && f.clear && delete f.clear;
+ } else (c = e.getConstructor(t, r, o, s)), ct(c.prototype, n), (_t.NEED = !0);
+ return H(c, r), (a[r] = c), R(R.G + R.W + R.F * (c != i), a), u || e.setStrong(c, r, o), c;
+ };
+ });
+ t(function (t) {
+ 'use strict';
+ var n = 'Set';
+ t.exports = Et(
+ n,
+ function (n) {
+ return function e(t) {
+ return n(this, 0 < arguments.length ? t : undefined);
+ };
+ },
+ {
+ add: function e(t) {
+ return xt.def(wt(this, n), (t = 0 === t ? 0 : t), t);
+ },
+ },
+ xt
+ );
+ }),
+ t(function (t) {
+ t.exports = B.Set;
+ });
+ !(function (t) {
+ 'use strict';
+ function r(t) {
+ if (('string' != typeof t && (t = String(t)), /[^a-z0-9\-#$%&'*+.\^_`|~]/i.test(t)))
+ throw new TypeError('Invalid character in header field name');
+ return t.toLowerCase();
+ }
+ function o(t) {
+ return 'string' != typeof t && (t = String(t)), t;
+ }
+ function i(n) {
+ var t = {
+ next: function () {
+ var t = n.shift();
+ return { done: t === undefined, value: t };
+ },
+ };
+ return (
+ m.iterable &&
+ (t[Symbol.iterator] = function () {
+ return t;
+ }),
+ t
+ );
+ }
+ function u(n) {
+ (this.map = {}),
+ n instanceof u
+ ? n.forEach(function (t, n) {
+ this.append(n, t);
+ }, this)
+ : Array.isArray(n)
+ ? n.forEach(function (t) {
+ this.append(t[0], t[1]);
+ }, this)
+ : n &&
+ Object.getOwnPropertyNames(n).forEach(function (t) {
+ this.append(t, n[t]);
+ }, this);
+ }
+ function n(t) {
+ if (t.bodyUsed) return Promise.reject(new TypeError('Already read'));
+ t.bodyUsed = !0;
+ }
+ function c(e) {
+ return new Promise(function (t, n) {
+ (e.onload = function () {
+ t(e.result);
+ }),
+ (e.onerror = function () {
+ n(e.error);
+ });
+ });
+ }
+ function e(t) {
+ var n = new FileReader(),
+ e = c(n);
+ return n.readAsArrayBuffer(t), e;
+ }
+ function s(t) {
+ var n = new FileReader(),
+ e = c(n);
+ return n.readAsText(t), e;
+ }
+ function f(t) {
+ for (var n = new Uint8Array(t), e = new Array(n.length), r = 0; r < n.length; r++)
+ e[r] = String.fromCharCode(n[r]);
+ return e.join('');
+ }
+ function a(t) {
+ if (t.slice) return t.slice(0);
+ var n = new Uint8Array(t.byteLength);
+ return n.set(new Uint8Array(t)), n.buffer;
+ }
+ function l() {
+ return (
+ (this.bodyUsed = !1),
+ (this._initBody = function (t) {
+ if ((this._bodyInit = t))
+ if ('string' == typeof t) this._bodyText = t;
+ else if (m.blob && Blob.prototype.isPrototypeOf(t)) this._bodyBlob = t;
+ else if (m.formData && FormData.prototype.isPrototypeOf(t)) this._bodyFormData = t;
+ else if (m.searchParams && URLSearchParams.prototype.isPrototypeOf(t))
+ this._bodyText = t.toString();
+ else if (m.arrayBuffer && m.blob && _(t))
+ (this._bodyArrayBuffer = a(t.buffer)),
+ (this._bodyInit = new Blob([this._bodyArrayBuffer]));
+ else {
+ if (!m.arrayBuffer || (!ArrayBuffer.prototype.isPrototypeOf(t) && !w(t)))
+ throw new Error('unsupported BodyInit type');
+ this._bodyArrayBuffer = a(t);
+ }
+ else this._bodyText = '';
+ this.headers.get('content-type') ||
+ ('string' == typeof t
+ ? this.headers.set('content-type', 'text/plain;charset=UTF-8')
+ : this._bodyBlob && this._bodyBlob.type
+ ? this.headers.set('content-type', this._bodyBlob.type)
+ : m.searchParams &&
+ URLSearchParams.prototype.isPrototypeOf(t) &&
+ this.headers.set(
+ 'content-type',
+ 'application/x-www-form-urlencoded;charset=UTF-8'
+ ));
+ }),
+ m.blob &&
+ ((this.blob = function () {
+ var t = n(this);
+ if (t) return t;
+ if (this._bodyBlob) return Promise.resolve(this._bodyBlob);
+ if (this._bodyArrayBuffer) return Promise.resolve(new Blob([this._bodyArrayBuffer]));
+ if (this._bodyFormData) throw new Error('could not read FormData body as blob');
+ return Promise.resolve(new Blob([this._bodyText]));
+ }),
+ (this.arrayBuffer = function () {
+ return this._bodyArrayBuffer
+ ? n(this) || Promise.resolve(this._bodyArrayBuffer)
+ : this.blob().then(e);
+ })),
+ (this.text = function () {
+ var t = n(this);
+ if (t) return t;
+ if (this._bodyBlob) return s(this._bodyBlob);
+ if (this._bodyArrayBuffer) return Promise.resolve(f(this._bodyArrayBuffer));
+ if (this._bodyFormData) throw new Error('could not read FormData body as text');
+ return Promise.resolve(this._bodyText);
+ }),
+ m.formData &&
+ (this.formData = function () {
+ return this.text().then(h);
+ }),
+ (this.json = function () {
+ return this.text().then(JSON.parse);
+ }),
+ this
+ );
+ }
+ function d(t) {
+ var n = t.toUpperCase();
+ return -1 < x.indexOf(n) ? n : t;
+ }
+ function p(t, n) {
+ var e = (n = n || {}).body;
+ if (t instanceof p) {
+ if (t.bodyUsed) throw new TypeError('Already read');
+ (this.url = t.url),
+ (this.credentials = t.credentials),
+ n.headers || (this.headers = new u(t.headers)),
+ (this.method = t.method),
+ (this.mode = t.mode),
+ e || null == t._bodyInit || ((e = t._bodyInit), (t.bodyUsed = !0));
+ } else this.url = String(t);
+ if (
+ ((this.credentials = n.credentials || this.credentials || 'omit'),
+ (!n.headers && this.headers) || (this.headers = new u(n.headers)),
+ (this.method = d(n.method || this.method || 'GET')),
+ (this.mode = n.mode || this.mode || null),
+ (this.referrer = null),
+ ('GET' === this.method || 'HEAD' === this.method) && e)
+ )
+ throw new TypeError('Body not allowed for GET or HEAD requests');
+ this._initBody(e);
+ }
+ function h(t) {
+ var o = new FormData();
+ return (
+ t
+ .trim()
+ .split('&')
+ .forEach(function (t) {
+ if (t) {
+ var n = t.split('='),
+ e = n.shift().replace(/\+/g, ' '),
+ r = n.join('=').replace(/\+/g, ' ');
+ o.append(decodeURIComponent(e), decodeURIComponent(r));
+ }
+ }),
+ o
+ );
+ }
+ function y(t) {
+ var o = new u();
+ return (
+ t
+ .replace(/\r?\n[\t ]+/g, ' ')
+ .split(/\r?\n/)
+ .forEach(function (t) {
+ var n = t.split(':'),
+ e = n.shift().trim();
+ if (e) {
+ var r = n.join(':').trim();
+ o.append(e, r);
+ }
+ }),
+ o
+ );
+ }
+ function v(t, n) {
+ n || (n = {}),
+ (this.type = 'default'),
+ (this.status = n.status === undefined ? 200 : n.status),
+ (this.ok = 200 <= this.status && this.status < 300),
+ (this.statusText = 'statusText' in n ? n.statusText : 'OK'),
+ (this.headers = new u(n.headers)),
+ (this.url = n.url || ''),
+ this._initBody(t);
+ }
+ if (!t.fetch) {
+ var m = {
+ searchParams: 'URLSearchParams' in t,
+ iterable: 'Symbol' in t && 'iterator' in Symbol,
+ blob:
+ 'FileReader' in t &&
+ 'Blob' in t &&
+ (function () {
+ try {
+ return new Blob(), !0;
+ } catch (t) {
+ return !1;
+ }
+ })(),
+ formData: 'FormData' in t,
+ arrayBuffer: 'ArrayBuffer' in t,
+ };
+ if (m.arrayBuffer)
+ var b = [
+ '[object Int8Array]',
+ '[object Uint8Array]',
+ '[object Uint8ClampedArray]',
+ '[object Int16Array]',
+ '[object Uint16Array]',
+ '[object Int32Array]',
+ '[object Uint32Array]',
+ '[object Float32Array]',
+ '[object Float64Array]',
+ ],
+ _ = function (t) {
+ return t && DataView.prototype.isPrototypeOf(t);
+ },
+ w =
+ ArrayBuffer.isView ||
+ function (t) {
+ return t && -1 < b.indexOf(Object.prototype.toString.call(t));
+ };
+ (u.prototype.append = function (t, n) {
+ (t = r(t)), (n = o(n));
+ var e = this.map[t];
+ this.map[t] = e ? e + ',' + n : n;
+ }),
+ (u.prototype['delete'] = function (t) {
+ delete this.map[r(t)];
+ }),
+ (u.prototype.get = function (t) {
+ return (t = r(t)), this.has(t) ? this.map[t] : null;
+ }),
+ (u.prototype.has = function (t) {
+ return this.map.hasOwnProperty(r(t));
+ }),
+ (u.prototype.set = function (t, n) {
+ this.map[r(t)] = o(n);
+ }),
+ (u.prototype.forEach = function (t, n) {
+ for (var e in this.map) this.map.hasOwnProperty(e) && t.call(n, this.map[e], e, this);
+ }),
+ (u.prototype.keys = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push(n);
+ }),
+ i(e)
+ );
+ }),
+ (u.prototype.values = function () {
+ var n = [];
+ return (
+ this.forEach(function (t) {
+ n.push(t);
+ }),
+ i(n)
+ );
+ }),
+ (u.prototype.entries = function () {
+ var e = [];
+ return (
+ this.forEach(function (t, n) {
+ e.push([n, t]);
+ }),
+ i(e)
+ );
+ }),
+ m.iterable && (u.prototype[Symbol.iterator] = u.prototype.entries);
+ var x = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT'];
+ (p.prototype.clone = function () {
+ return new p(this, { body: this._bodyInit });
+ }),
+ l.call(p.prototype),
+ l.call(v.prototype),
+ (v.prototype.clone = function () {
+ return new v(this._bodyInit, {
+ status: this.status,
+ statusText: this.statusText,
+ headers: new u(this.headers),
+ url: this.url,
+ });
+ }),
+ (v.error = function () {
+ var t = new v(null, { status: 0, statusText: '' });
+ return (t.type = 'error'), t;
+ });
+ var g = [301, 302, 303, 307, 308];
+ (v.redirect = function (t, n) {
+ if (-1 === g.indexOf(n)) throw new RangeError('Invalid status code');
+ return new v(null, { status: n, headers: { location: t } });
+ }),
+ (t.Headers = u),
+ (t.Request = p),
+ (t.Response = v),
+ (t.fetch = function (o, i) {
+ return new Promise(function (e, t) {
+ var n = new p(o, i),
+ r = new XMLHttpRequest();
+ (r.onload = function () {
+ var t = {
+ status: r.status,
+ statusText: r.statusText,
+ headers: y(r.getAllResponseHeaders() || ''),
+ };
+ t.url = 'responseURL' in r ? r.responseURL : t.headers.get('X-Request-URL');
+ var n = 'response' in r ? r.response : r.responseText;
+ e(new v(n, t));
+ }),
+ (r.onerror = function () {
+ t(new TypeError('Network request failed'));
+ }),
+ (r.ontimeout = function () {
+ t(new TypeError('Network request failed'));
+ }),
+ r.open(n.method, n.url, !0),
+ 'include' === n.credentials
+ ? (r.withCredentials = !0)
+ : 'omit' === n.credentials && (r.withCredentials = !1),
+ 'responseType' in r && m.blob && (r.responseType = 'blob'),
+ n.headers.forEach(function (t, n) {
+ r.setRequestHeader(n, t);
+ }),
+ r.send('undefined' == typeof n._bodyInit ? null : n._bodyInit);
+ });
+ }),
+ (t.fetch.polyfill = !0);
+ }
+ })('undefined' != typeof self ? self : this);
+ var Ot = t(function (t, n) {
+ 'use strict';
+ Object.defineProperty(n, '__esModule', { value: !0 });
+ var e = {
+ track: function r() {
+ var t;
+ 'undefined' != typeof ShopifyAnalytics &&
+ ShopifyAnalytics.lib &&
+ (t = ShopifyAnalytics.lib).track.apply(t, arguments);
+ },
+ };
+ n['default'] = e;
+ }),
+ Tt = t(function (t, n) {
+ 'use strict';
+ function e(t) {
+ o(), r(t, 'smart-payment-buttons');
+ }
+ function r(t, n) {
+ var e = 'shopify-features__' + n,
+ r = e + '--disabled',
+ o = e + '--enabled',
+ i = t.className.split(/\s+/);
+ t.className = i
+ .filter(function (t) {
+ return Boolean(t);
+ })
+ .filter(function (t) {
+ return t !== r;
+ })
+ .filter(function (t) {
+ return t !== o;
+ })
+ .concat([o])
+ .join(' ');
+ }
+ function o() {
+ var t = 'shopify-dynamic-checkout';
+ if (null === document.getElementById(t)) {
+ var n = document.createElement('style');
+ (n.id = t), (n.innerHTML = i), document.head.appendChild(n);
+ }
+ }
+ Object.defineProperty(n, '__esModule', { value: !0 }),
+ (n['default'] = e),
+ (n.toggleFeatureCssClasses = r),
+ (n.appendDynamicCheckoutProductCss = o);
+ var i =
+ '\n.shopify-payment-button__button--hidden {\n visibility: hidden;\n}\n\n.shopify-payment-button__button {\n border-radius: 4px;\n border: none;\n box-shadow: 0 0 0 0 transparent;\n color: white;\n cursor: pointer;\n display: block;\n font-size: 1em;\n font-weight: 500;\n line-height: 1;\n text-align: center;\n width: 100%;\n transition: background 0.2s ease-in-out;\n}\n\n.shopify-payment-button__button[disabled] {\n opacity: 0.6;\n cursor: default;\n}\n\n.shopify-payment-button__button--unbranded {\n background-color: #1990c6;\n padding: 1em 2em;\n}\n\n.shopify-payment-button__button--unbranded:hover:not([disabled]) {\n background-color: #136f99;\n}\n\n.shopify-payment-button__more-options {\n background: transparent;\n border: 0 none;\n cursor: pointer;\n display: block;\n font-size: 1em;\n margin-top: 1em;\n text-align: center;\n width: 100%;\n}\n\n.shopify-payment-button__more-options:hover:not([disabled]) {\n text-decoration: underline;\n}\n\n.shopify-payment-button__more-options[disabled] {\n opacity: 0.6;\n cursor: default;\n}\n\n.shopify-payment-button__button--branded {\n display: flex;\n flex-direction: column;\n min-height: 44px;\n position: relative;\n z-index: 1;\n}\n\n.shopify-payment-button__button--branded .shopify-cleanslate {\n flex: 1 !important;\n display: flex !important;\n flex-direction: column !important;\n}\n';
+ }),
+ jt = t(function (t, n) {
+ 'use strict';
+ function e(n, e) {
+ return r().then(function (t) {
+ t ? o(n, e) : u(n, e);
+ });
+ }
+ function r() {
+ function r() {
+ return document.querySelector('[data-shopify=payment-button]');
+ }
+ return new Promise(function (e) {
+ r()
+ ? e(!0)
+ : window.Shopify.designMode
+ ? new MutationObserver(function (t, n) {
+ r() && (e(!0), n.disconnect());
+ }).observe(document.body, { childList: !0, subtree: !0 })
+ : e(!1);
+ });
+ }
+ function o(t, n) {
+ (0, a['default'])(t);
+ var e = i(t, n);
+ return c('[SPB] Script appended'), e;
+ }
+ function i(t, n) {
+ var e = t.parentNode,
+ r = e.createElement('script');
+ return (
+ (r.src = n.smart_payment_buttons_url),
+ (r.dataset.sourceAttribute = 'shopify.dynamic_checkout.product.init'),
+ e.head.appendChild(r),
+ r
+ );
+ }
+ function u(n, e) {
+ 'undefined' == typeof window.Shopify.PaymentButton &&
+ (window.Shopify.PaymentButton = {
+ init: function r() {
+ var t = o(n, e);
+ (t.onload = function () {
+ s();
+ }),
+ (t.onerror = function () {
+ console.error('Error loading Dynamic Checkout bundle');
+ }),
+ (window.Shopify.PaymentButton.init = function () {});
+ },
+ });
+ }
+ function c(t) {
+ l && performance.mark(t);
+ }
+ function s() {
+ var t = 'polyfilled_dynamic_checkout',
+ n = window.Shopify && window.Shopify.theme && window.Shopify.theme.name,
+ e = window.location.href;
+ f['default'].track(t, { theme: n, url: e });
+ }
+ Object.defineProperty(n, '__esModule', { value: !0 }), (n['default'] = e);
+ var f = d(Ot),
+ a = d(Tt),
+ l = 'undefined' != typeof performance && 'function' == typeof performance.mark;
+ }),
+ Ft = t(function (t, n) {
+ 'use strict';
+ function e(t, n) {
+ return r().then(function () {
+ o(t, n);
+ });
+ }
+ function r() {
+ function r() {
+ return document.getElementById('dynamic-checkout-cart');
+ }
+ return new Promise(function (e) {
+ r()
+ ? ((window.Shopify.CartType = 'cart_page'), e())
+ : new MutationObserver(function (t, n) {
+ r() && ((window.Shopify.CartType = 'cart_ajax'), e(), n.disconnect());
+ }).observe(document.body, { childList: !0, subtree: !0 });
+ });
+ }
+ function o(t, n) {
+ var e = t.parentNode,
+ r = e.createElement('script');
+ return (
+ (r.src = n.dynamic_checkout_cart_url),
+ (r.dataset.sourceAttribute = 'shopify.dynamic_checkout.cart.init'),
+ e.head.appendChild(r),
+ r
+ );
+ }
+ Object.defineProperty(n, '__esModule', { value: !0 }), (n['default'] = e);
+ }),
+ kt = t(function (t, n) {
+ 'use strict';
+ function e(t) {
+ var n = r(t);
+ n && ((0, o['default'])(t, n), (0, i['default'])(t, n));
+ }
+ function r(t) {
+ try {
+ return JSON.parse(t.querySelector(u).textContent);
+ } catch (n) {
+ return null;
+ }
+ }
+ Object.defineProperty(n, '__esModule', { value: !0 }), (n['default'] = e);
+ var o = d(jt),
+ i = d(Ft),
+ u = '#shopify-features';
+ });
+ t(function () {
+ 'use strict';
+ (0, d(kt)['default'])(document.documentElement);
+ });
+})('undefined' != typeof global ? global : 'undefined' != typeof window && window);
diff --git a/tests/integrations/kiwisizing/standard.html b/tests/integrations/kiwisizing/standard.html
new file mode 100644
index 00000000..c33f18a7
--- /dev/null
+++ b/tests/integrations/kiwisizing/standard.html
@@ -0,0 +1,70 @@
+
+
+
+
+
+
+
+ Standard Kiwisizing
+
+
+
+
+
+
+
+ Standard Kiwisizing
+
+
+ Partytown Kiwisizing
+ All Tests
+
+
diff --git a/tests/integrations/mermaid/index.html b/tests/integrations/mermaid/index.html
index d5f45576..728c1c98 100644
--- a/tests/integrations/mermaid/index.html
+++ b/tests/integrations/mermaid/index.html
@@ -59,6 +59,19 @@
margin: 0 5px;
}
+
Mermaid 🎉
diff --git a/tests/integrations/mermaid/mermaid.spec.ts b/tests/integrations/mermaid/mermaid.spec.ts
new file mode 100644
index 00000000..fe61fdb8
--- /dev/null
+++ b/tests/integrations/mermaid/mermaid.spec.ts
@@ -0,0 +1,8 @@
+import { test, expect } from '@playwright/test';
+
+test('Mermaid', async ({ page }) => {
+ await page.goto('/tests/integrations/mermaid/');
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
+});
diff --git a/tests/integrations/twitter/index.html b/tests/integrations/twitter/index.html
index 678bc43d..43e357c7 100644
--- a/tests/integrations/twitter/index.html
+++ b/tests/integrations/twitter/index.html
@@ -74,6 +74,19 @@
};
+
Partytown Twitter Embed 🎉
diff --git a/tests/integrations/twitter/twitter.spec.ts b/tests/integrations/twitter/twitter.spec.ts
new file mode 100644
index 00000000..2d166dc6
--- /dev/null
+++ b/tests/integrations/twitter/twitter.spec.ts
@@ -0,0 +1,8 @@
+import { test, expect } from '@playwright/test';
+
+test('Twitter', async ({ page }) => {
+ await page.goto('/tests/integrations/twitter/');
+ const element = await page.waitForSelector('#pterrors');
+
+ expect(await element.textContent()).toEqual('NO ERROR');
+});