@ninetailed/experience.js-plugin-preview 3.0.0-beta.14 → 3.0.0-beta.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7,7 +7,7 @@ var check = function (it) {
7
7
  };
8
8
 
9
9
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
10
- var global$l =
10
+ var global$a =
11
11
  // eslint-disable-next-line es/no-global-this -- safe
12
12
  check(typeof globalThis == 'object' && globalThis) ||
13
13
  check(typeof window == 'object' && window) ||
@@ -19,7 +19,7 @@ var global$l =
19
19
 
20
20
  var objectGetOwnPropertyDescriptor = {};
21
21
 
22
- var fails$8 = function (exec) {
22
+ var fails$9 = function (exec) {
23
23
  try {
24
24
  return !!exec();
25
25
  } catch (error) {
@@ -27,17 +27,18 @@ var fails$8 = function (exec) {
27
27
  }
28
28
  };
29
29
 
30
- var fails$7 = fails$8;
30
+ var fails$8 = fails$9;
31
31
 
32
32
  // Detect IE8's incomplete defineProperty implementation
33
- var descriptors = !fails$7(function () {
33
+ var descriptors = !fails$8(function () {
34
34
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
35
35
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
36
36
  });
37
37
 
38
- var fails$6 = fails$8;
38
+ var fails$7 = fails$9;
39
39
 
40
- var functionBindNative = !fails$6(function () {
40
+ var functionBindNative = !fails$7(function () {
41
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
41
42
  var test = (function () { /* empty */ }).bind();
42
43
  // eslint-disable-next-line no-prototype-builtins -- safe
43
44
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -79,52 +80,54 @@ var createPropertyDescriptor$2 = function (bitmap, value) {
79
80
  var NATIVE_BIND = functionBindNative;
80
81
 
81
82
  var FunctionPrototype$1 = Function.prototype;
82
- var bind = FunctionPrototype$1.bind;
83
83
  var call$4 = FunctionPrototype$1.call;
84
- var uncurryThis$a = NATIVE_BIND && bind.bind(call$4, call$4);
84
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
85
85
 
86
- var functionUncurryThis = NATIVE_BIND ? function (fn) {
87
- return fn && uncurryThis$a(fn);
88
- } : function (fn) {
89
- return fn && function () {
86
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
87
+ return function () {
90
88
  return call$4.apply(fn, arguments);
91
89
  };
92
90
  };
93
91
 
94
- var uncurryThis$9 = functionUncurryThis;
92
+ var uncurryThis$8 = functionUncurryThis;
95
93
 
96
- var toString$1 = uncurryThis$9({}.toString);
97
- var stringSlice = uncurryThis$9(''.slice);
94
+ var toString$1 = uncurryThis$8({}.toString);
95
+ var stringSlice = uncurryThis$8(''.slice);
98
96
 
99
97
  var classofRaw = function (it) {
100
98
  return stringSlice(toString$1(it), 8, -1);
101
99
  };
102
100
 
103
- var global$k = global$l;
104
- var uncurryThis$8 = functionUncurryThis;
105
- var fails$5 = fails$8;
101
+ var uncurryThis$7 = functionUncurryThis;
102
+ var fails$6 = fails$9;
106
103
  var classof = classofRaw;
107
104
 
108
- var Object$3 = global$k.Object;
109
- var split = uncurryThis$8(''.split);
105
+ var $Object$2 = Object;
106
+ var split = uncurryThis$7(''.split);
110
107
 
111
108
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
112
- var indexedObject = fails$5(function () {
109
+ var indexedObject = fails$6(function () {
113
110
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
114
111
  // eslint-disable-next-line no-prototype-builtins -- safe
115
- return !Object$3('z').propertyIsEnumerable(0);
112
+ return !$Object$2('z').propertyIsEnumerable(0);
116
113
  }) ? function (it) {
117
- return classof(it) == 'String' ? split(it, '') : Object$3(it);
118
- } : Object$3;
114
+ return classof(it) == 'String' ? split(it, '') : $Object$2(it);
115
+ } : $Object$2;
116
+
117
+ // we can't use just `it == null` since of `document.all` special case
118
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
119
+ var isNullOrUndefined$2 = function (it) {
120
+ return it === null || it === undefined;
121
+ };
119
122
 
120
- var global$j = global$l;
123
+ var isNullOrUndefined$1 = isNullOrUndefined$2;
121
124
 
122
- var TypeError$6 = global$j.TypeError;
125
+ var $TypeError$5 = TypeError;
123
126
 
124
127
  // `RequireObjectCoercible` abstract operation
125
128
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
126
129
  var requireObjectCoercible$2 = function (it) {
127
- if (it == undefined) throw TypeError$6("Can't call method on " + it);
130
+ if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
128
131
  return it;
129
132
  };
130
133
 
@@ -136,42 +139,63 @@ var toIndexedObject$3 = function (it) {
136
139
  return IndexedObject$1(requireObjectCoercible$1(it));
137
140
  };
138
141
 
142
+ var documentAll$2 = typeof document == 'object' && document.all;
143
+
144
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
145
+ var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
146
+
147
+ var documentAll_1 = {
148
+ all: documentAll$2,
149
+ IS_HTMLDDA: IS_HTMLDDA
150
+ };
151
+
152
+ var $documentAll$1 = documentAll_1;
153
+
154
+ var documentAll$1 = $documentAll$1.all;
155
+
139
156
  // `IsCallable` abstract operation
140
157
  // https://tc39.es/ecma262/#sec-iscallable
141
- var isCallable$9 = function (argument) {
158
+ var isCallable$a = $documentAll$1.IS_HTMLDDA ? function (argument) {
159
+ return typeof argument == 'function' || argument === documentAll$1;
160
+ } : function (argument) {
142
161
  return typeof argument == 'function';
143
162
  };
144
163
 
145
- var isCallable$8 = isCallable$9;
164
+ var isCallable$9 = isCallable$a;
165
+ var $documentAll = documentAll_1;
166
+
167
+ var documentAll = $documentAll.all;
146
168
 
147
- var isObject$5 = function (it) {
148
- return typeof it == 'object' ? it !== null : isCallable$8(it);
169
+ var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
170
+ return typeof it == 'object' ? it !== null : isCallable$9(it) || it === documentAll;
171
+ } : function (it) {
172
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
149
173
  };
150
174
 
151
- var global$i = global$l;
152
- var isCallable$7 = isCallable$9;
175
+ var global$9 = global$a;
176
+ var isCallable$8 = isCallable$a;
153
177
 
154
178
  var aFunction = function (argument) {
155
- return isCallable$7(argument) ? argument : undefined;
179
+ return isCallable$8(argument) ? argument : undefined;
156
180
  };
157
181
 
158
182
  var getBuiltIn$3 = function (namespace, method) {
159
- return arguments.length < 2 ? aFunction(global$i[namespace]) : global$i[namespace] && global$i[namespace][method];
183
+ return arguments.length < 2 ? aFunction(global$9[namespace]) : global$9[namespace] && global$9[namespace][method];
160
184
  };
161
185
 
162
- var uncurryThis$7 = functionUncurryThis;
186
+ var uncurryThis$6 = functionUncurryThis;
163
187
 
164
- var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
188
+ var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
165
189
 
166
190
  var getBuiltIn$2 = getBuiltIn$3;
167
191
 
168
192
  var engineUserAgent = getBuiltIn$2('navigator', 'userAgent') || '';
169
193
 
170
- var global$h = global$l;
194
+ var global$8 = global$a;
171
195
  var userAgent = engineUserAgent;
172
196
 
173
- var process = global$h.process;
174
- var Deno = global$h.Deno;
197
+ var process = global$8.process;
198
+ var Deno = global$8.Deno;
175
199
  var versions = process && process.versions || Deno && Deno.version;
176
200
  var v8 = versions && versions.v8;
177
201
  var match, version;
@@ -198,10 +222,10 @@ var engineV8Version = version;
198
222
  /* eslint-disable es/no-symbol -- required for testing */
199
223
 
200
224
  var V8_VERSION = engineV8Version;
201
- var fails$4 = fails$8;
225
+ var fails$5 = fails$9;
202
226
 
203
227
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
204
- var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
228
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
205
229
  var symbol = Symbol();
206
230
  // Chrome 38 Symbol has incorrect toString conversion
207
231
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
@@ -212,97 +236,93 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails$4(function () {
212
236
 
213
237
  /* eslint-disable es/no-symbol -- required for testing */
214
238
 
215
- var NATIVE_SYMBOL$1 = nativeSymbol;
239
+ var NATIVE_SYMBOL$1 = symbolConstructorDetection;
216
240
 
217
241
  var useSymbolAsUid = NATIVE_SYMBOL$1
218
242
  && !Symbol.sham
219
243
  && typeof Symbol.iterator == 'symbol';
220
244
 
221
- var global$g = global$l;
222
245
  var getBuiltIn$1 = getBuiltIn$3;
223
- var isCallable$6 = isCallable$9;
246
+ var isCallable$7 = isCallable$a;
224
247
  var isPrototypeOf = objectIsPrototypeOf;
225
248
  var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
226
249
 
227
- var Object$2 = global$g.Object;
250
+ var $Object$1 = Object;
228
251
 
229
252
  var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
230
253
  return typeof it == 'symbol';
231
254
  } : function (it) {
232
255
  var $Symbol = getBuiltIn$1('Symbol');
233
- return isCallable$6($Symbol) && isPrototypeOf($Symbol.prototype, Object$2(it));
256
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
234
257
  };
235
258
 
236
- var global$f = global$l;
237
-
238
- var String$2 = global$f.String;
259
+ var $String$1 = String;
239
260
 
240
261
  var tryToString$1 = function (argument) {
241
262
  try {
242
- return String$2(argument);
263
+ return $String$1(argument);
243
264
  } catch (error) {
244
265
  return 'Object';
245
266
  }
246
267
  };
247
268
 
248
- var global$e = global$l;
249
- var isCallable$5 = isCallable$9;
269
+ var isCallable$6 = isCallable$a;
250
270
  var tryToString = tryToString$1;
251
271
 
252
- var TypeError$5 = global$e.TypeError;
272
+ var $TypeError$4 = TypeError;
253
273
 
254
274
  // `Assert: IsCallable(argument) is true`
255
275
  var aCallable$1 = function (argument) {
256
- if (isCallable$5(argument)) return argument;
257
- throw TypeError$5(tryToString(argument) + ' is not a function');
276
+ if (isCallable$6(argument)) return argument;
277
+ throw $TypeError$4(tryToString(argument) + ' is not a function');
258
278
  };
259
279
 
260
280
  var aCallable = aCallable$1;
281
+ var isNullOrUndefined = isNullOrUndefined$2;
261
282
 
262
283
  // `GetMethod` abstract operation
263
284
  // https://tc39.es/ecma262/#sec-getmethod
264
285
  var getMethod$1 = function (V, P) {
265
286
  var func = V[P];
266
- return func == null ? undefined : aCallable(func);
287
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
267
288
  };
268
289
 
269
- var global$d = global$l;
270
290
  var call$3 = functionCall;
271
- var isCallable$4 = isCallable$9;
291
+ var isCallable$5 = isCallable$a;
272
292
  var isObject$4 = isObject$5;
273
293
 
274
- var TypeError$4 = global$d.TypeError;
294
+ var $TypeError$3 = TypeError;
275
295
 
276
296
  // `OrdinaryToPrimitive` abstract operation
277
297
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
278
298
  var ordinaryToPrimitive$1 = function (input, pref) {
279
299
  var fn, val;
280
- if (pref === 'string' && isCallable$4(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
281
- if (isCallable$4(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
282
- if (pref !== 'string' && isCallable$4(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
283
- throw TypeError$4("Can't convert object to primitive value");
300
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
301
+ if (isCallable$5(fn = input.valueOf) && !isObject$4(val = call$3(fn, input))) return val;
302
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$4(val = call$3(fn, input))) return val;
303
+ throw $TypeError$3("Can't convert object to primitive value");
284
304
  };
285
305
 
286
306
  var shared$3 = {exports: {}};
287
307
 
288
- var global$c = global$l;
308
+ var global$7 = global$a;
289
309
 
290
310
  // eslint-disable-next-line es/no-object-defineproperty -- safe
291
- var defineProperty$1 = Object.defineProperty;
311
+ var defineProperty$2 = Object.defineProperty;
292
312
 
293
- var setGlobal$3 = function (key, value) {
313
+ var defineGlobalProperty$3 = function (key, value) {
294
314
  try {
295
- defineProperty$1(global$c, key, { value: value, configurable: true, writable: true });
315
+ defineProperty$2(global$7, key, { value: value, configurable: true, writable: true });
296
316
  } catch (error) {
297
- global$c[key] = value;
317
+ global$7[key] = value;
298
318
  } return value;
299
319
  };
300
320
 
301
- var global$b = global$l;
302
- var setGlobal$2 = setGlobal$3;
321
+ var global$6 = global$a;
322
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
303
323
 
304
324
  var SHARED = '__core-js_shared__';
305
- var store$3 = global$b[SHARED] || setGlobal$2(SHARED, {});
325
+ var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
306
326
 
307
327
  var sharedStore = store$3;
308
328
 
@@ -311,54 +331,54 @@ var store$2 = sharedStore;
311
331
  (shared$3.exports = function (key, value) {
312
332
  return store$2[key] || (store$2[key] = value !== undefined ? value : {});
313
333
  })('versions', []).push({
314
- version: '3.21.1',
334
+ version: '3.26.1',
315
335
  mode: 'global',
316
336
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
317
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
337
+ license: 'https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE',
318
338
  source: 'https://github.com/zloirock/core-js'
319
339
  });
320
340
 
321
- var global$a = global$l;
322
341
  var requireObjectCoercible = requireObjectCoercible$2;
323
342
 
324
- var Object$1 = global$a.Object;
343
+ var $Object = Object;
325
344
 
326
345
  // `ToObject` abstract operation
327
346
  // https://tc39.es/ecma262/#sec-toobject
328
347
  var toObject$2 = function (argument) {
329
- return Object$1(requireObjectCoercible(argument));
348
+ return $Object(requireObjectCoercible(argument));
330
349
  };
331
350
 
332
- var uncurryThis$6 = functionUncurryThis;
351
+ var uncurryThis$5 = functionUncurryThis;
333
352
  var toObject$1 = toObject$2;
334
353
 
335
- var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
354
+ var hasOwnProperty = uncurryThis$5({}.hasOwnProperty);
336
355
 
337
356
  // `HasOwnProperty` abstract operation
338
357
  // https://tc39.es/ecma262/#sec-hasownproperty
358
+ // eslint-disable-next-line es/no-object-hasown -- safe
339
359
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
340
360
  return hasOwnProperty(toObject$1(it), key);
341
361
  };
342
362
 
343
- var uncurryThis$5 = functionUncurryThis;
363
+ var uncurryThis$4 = functionUncurryThis;
344
364
 
345
365
  var id = 0;
346
366
  var postfix = Math.random();
347
- var toString = uncurryThis$5(1.0.toString);
367
+ var toString = uncurryThis$4(1.0.toString);
348
368
 
349
369
  var uid$2 = function (key) {
350
370
  return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
351
371
  };
352
372
 
353
- var global$9 = global$l;
373
+ var global$5 = global$a;
354
374
  var shared$2 = shared$3.exports;
355
375
  var hasOwn$6 = hasOwnProperty_1;
356
376
  var uid$1 = uid$2;
357
- var NATIVE_SYMBOL = nativeSymbol;
377
+ var NATIVE_SYMBOL = symbolConstructorDetection;
358
378
  var USE_SYMBOL_AS_UID = useSymbolAsUid;
359
379
 
360
380
  var WellKnownSymbolsStore = shared$2('wks');
361
- var Symbol$1 = global$9.Symbol;
381
+ var Symbol$1 = global$5.Symbol;
362
382
  var symbolFor = Symbol$1 && Symbol$1['for'];
363
383
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
364
384
 
@@ -375,7 +395,6 @@ var wellKnownSymbol$1 = function (name) {
375
395
  } return WellKnownSymbolsStore[name];
376
396
  };
377
397
 
378
- var global$8 = global$l;
379
398
  var call$2 = functionCall;
380
399
  var isObject$3 = isObject$5;
381
400
  var isSymbol$1 = isSymbol$2;
@@ -383,7 +402,7 @@ var getMethod = getMethod$1;
383
402
  var ordinaryToPrimitive = ordinaryToPrimitive$1;
384
403
  var wellKnownSymbol = wellKnownSymbol$1;
385
404
 
386
- var TypeError$3 = global$8.TypeError;
405
+ var $TypeError$2 = TypeError;
387
406
  var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
388
407
 
389
408
  // `ToPrimitive` abstract operation
@@ -396,7 +415,7 @@ var toPrimitive$1 = function (input, pref) {
396
415
  if (pref === undefined) pref = 'default';
397
416
  result = call$2(exoticToPrim, input, pref);
398
417
  if (!isObject$3(result) || isSymbol$1(result)) return result;
399
- throw TypeError$3("Can't convert object to primitive value");
418
+ throw $TypeError$2("Can't convert object to primitive value");
400
419
  }
401
420
  if (pref === undefined) pref = 'number';
402
421
  return ordinaryToPrimitive(input, pref);
@@ -412,10 +431,10 @@ var toPropertyKey$2 = function (argument) {
412
431
  return isSymbol(key) ? key : key + '';
413
432
  };
414
433
 
415
- var global$7 = global$l;
434
+ var global$4 = global$a;
416
435
  var isObject$2 = isObject$5;
417
436
 
418
- var document$1 = global$7.document;
437
+ var document$1 = global$4.document;
419
438
  // typeof document.createElement is 'object' in old IE
420
439
  var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
421
440
 
@@ -423,19 +442,19 @@ var documentCreateElement = function (it) {
423
442
  return EXISTS$1 ? document$1.createElement(it) : {};
424
443
  };
425
444
 
426
- var DESCRIPTORS$6 = descriptors;
427
- var fails$3 = fails$8;
445
+ var DESCRIPTORS$7 = descriptors;
446
+ var fails$4 = fails$9;
428
447
  var createElement = documentCreateElement;
429
448
 
430
449
  // Thanks to IE8 for its funny defineProperty
431
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$3(function () {
450
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
432
451
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
433
452
  return Object.defineProperty(createElement('div'), 'a', {
434
453
  get: function () { return 7; }
435
454
  }).a != 7;
436
455
  });
437
456
 
438
- var DESCRIPTORS$5 = descriptors;
457
+ var DESCRIPTORS$6 = descriptors;
439
458
  var call$1 = functionCall;
440
459
  var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
441
460
  var createPropertyDescriptor$1 = createPropertyDescriptor$2;
@@ -449,7 +468,7 @@ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
449
468
 
450
469
  // `Object.getOwnPropertyDescriptor` method
451
470
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
452
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
471
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
453
472
  O = toIndexedObject$2(O);
454
473
  P = toPropertyKey$1(P);
455
474
  if (IE8_DOM_DEFINE$1) try {
@@ -460,12 +479,12 @@ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 :
460
479
 
461
480
  var objectDefineProperty = {};
462
481
 
463
- var DESCRIPTORS$4 = descriptors;
464
- var fails$2 = fails$8;
482
+ var DESCRIPTORS$5 = descriptors;
483
+ var fails$3 = fails$9;
465
484
 
466
485
  // V8 ~ Chrome 36-
467
486
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
468
- var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$2(function () {
487
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
469
488
  // eslint-disable-next-line es/no-object-defineproperty -- required for testing
470
489
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
471
490
  value: 42,
@@ -473,26 +492,24 @@ var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$2(function () {
473
492
  }).prototype != 42;
474
493
  });
475
494
 
476
- var global$6 = global$l;
477
495
  var isObject$1 = isObject$5;
478
496
 
479
- var String$1 = global$6.String;
480
- var TypeError$2 = global$6.TypeError;
497
+ var $String = String;
498
+ var $TypeError$1 = TypeError;
481
499
 
482
500
  // `Assert: Type(argument) is Object`
483
501
  var anObject$2 = function (argument) {
484
502
  if (isObject$1(argument)) return argument;
485
- throw TypeError$2(String$1(argument) + ' is not an object');
503
+ throw $TypeError$1($String(argument) + ' is not an object');
486
504
  };
487
505
 
488
- var global$5 = global$l;
489
- var DESCRIPTORS$3 = descriptors;
506
+ var DESCRIPTORS$4 = descriptors;
490
507
  var IE8_DOM_DEFINE = ie8DomDefine;
491
508
  var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
492
509
  var anObject$1 = anObject$2;
493
510
  var toPropertyKey = toPropertyKey$2;
494
511
 
495
- var TypeError$1 = global$5.TypeError;
512
+ var $TypeError = TypeError;
496
513
  // eslint-disable-next-line es/no-object-defineproperty -- safe
497
514
  var $defineProperty = Object.defineProperty;
498
515
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
@@ -503,7 +520,7 @@ var WRITABLE = 'writable';
503
520
 
504
521
  // `Object.defineProperty` method
505
522
  // https://tc39.es/ecma262/#sec-object.defineproperty
506
- objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
523
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
507
524
  anObject$1(O);
508
525
  P = toPropertyKey(P);
509
526
  anObject$1(Attributes);
@@ -525,46 +542,63 @@ objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defi
525
542
  if (IE8_DOM_DEFINE) try {
526
543
  return $defineProperty(O, P, Attributes);
527
544
  } catch (error) { /* empty */ }
528
- if ('get' in Attributes || 'set' in Attributes) throw TypeError$1('Accessors not supported');
545
+ if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
529
546
  if ('value' in Attributes) O[P] = Attributes.value;
530
547
  return O;
531
548
  };
532
549
 
533
- var DESCRIPTORS$2 = descriptors;
534
- var definePropertyModule$1 = objectDefineProperty;
550
+ var DESCRIPTORS$3 = descriptors;
551
+ var definePropertyModule$2 = objectDefineProperty;
535
552
  var createPropertyDescriptor = createPropertyDescriptor$2;
536
553
 
537
- var createNonEnumerableProperty$3 = DESCRIPTORS$2 ? function (object, key, value) {
538
- return definePropertyModule$1.f(object, key, createPropertyDescriptor(1, value));
554
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
555
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
539
556
  } : function (object, key, value) {
540
557
  object[key] = value;
541
558
  return object;
542
559
  };
543
560
 
544
- var redefine$1 = {exports: {}};
561
+ var makeBuiltIn$2 = {exports: {}};
545
562
 
546
- var uncurryThis$4 = functionUncurryThis;
547
- var isCallable$3 = isCallable$9;
563
+ var DESCRIPTORS$2 = descriptors;
564
+ var hasOwn$4 = hasOwnProperty_1;
565
+
566
+ var FunctionPrototype = Function.prototype;
567
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
568
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
569
+
570
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
571
+ // additional protection from minified / mangled / dropped function names
572
+ var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
573
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
574
+
575
+ var functionName = {
576
+ EXISTS: EXISTS,
577
+ PROPER: PROPER,
578
+ CONFIGURABLE: CONFIGURABLE
579
+ };
580
+
581
+ var uncurryThis$3 = functionUncurryThis;
582
+ var isCallable$4 = isCallable$a;
548
583
  var store$1 = sharedStore;
549
584
 
550
- var functionToString = uncurryThis$4(Function.toString);
585
+ var functionToString = uncurryThis$3(Function.toString);
551
586
 
552
587
  // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
553
- if (!isCallable$3(store$1.inspectSource)) {
588
+ if (!isCallable$4(store$1.inspectSource)) {
554
589
  store$1.inspectSource = function (it) {
555
590
  return functionToString(it);
556
591
  };
557
592
  }
558
593
 
559
- var inspectSource$2 = store$1.inspectSource;
594
+ var inspectSource$1 = store$1.inspectSource;
560
595
 
561
- var global$4 = global$l;
562
- var isCallable$2 = isCallable$9;
563
- var inspectSource$1 = inspectSource$2;
596
+ var global$3 = global$a;
597
+ var isCallable$3 = isCallable$a;
564
598
 
565
- var WeakMap$1 = global$4.WeakMap;
599
+ var WeakMap$1 = global$3.WeakMap;
566
600
 
567
- var nativeWeakMap = isCallable$2(WeakMap$1) && /native code/.test(inspectSource$1(WeakMap$1));
601
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
568
602
 
569
603
  var shared$1 = shared$3.exports;
570
604
  var uid = uid$2;
@@ -577,19 +611,18 @@ var sharedKey$1 = function (key) {
577
611
 
578
612
  var hiddenKeys$3 = {};
579
613
 
580
- var NATIVE_WEAK_MAP = nativeWeakMap;
581
- var global$3 = global$l;
582
- var uncurryThis$3 = functionUncurryThis;
614
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
615
+ var global$2 = global$a;
583
616
  var isObject = isObject$5;
584
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$3;
585
- var hasOwn$4 = hasOwnProperty_1;
617
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
618
+ var hasOwn$3 = hasOwnProperty_1;
586
619
  var shared = sharedStore;
587
620
  var sharedKey = sharedKey$1;
588
621
  var hiddenKeys$2 = hiddenKeys$3;
589
622
 
590
623
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
591
- var TypeError = global$3.TypeError;
592
- var WeakMap = global$3.WeakMap;
624
+ var TypeError$1 = global$2.TypeError;
625
+ var WeakMap = global$2.WeakMap;
593
626
  var set, get, has;
594
627
 
595
628
  var enforce = function (it) {
@@ -600,42 +633,44 @@ var getterFor = function (TYPE) {
600
633
  return function (it) {
601
634
  var state;
602
635
  if (!isObject(it) || (state = get(it)).type !== TYPE) {
603
- throw TypeError('Incompatible receiver, ' + TYPE + ' required');
636
+ throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
604
637
  } return state;
605
638
  };
606
639
  };
607
640
 
608
641
  if (NATIVE_WEAK_MAP || shared.state) {
609
642
  var store = shared.state || (shared.state = new WeakMap());
610
- var wmget = uncurryThis$3(store.get);
611
- var wmhas = uncurryThis$3(store.has);
612
- var wmset = uncurryThis$3(store.set);
643
+ /* eslint-disable no-self-assign -- prototype methods protection */
644
+ store.get = store.get;
645
+ store.has = store.has;
646
+ store.set = store.set;
647
+ /* eslint-enable no-self-assign -- prototype methods protection */
613
648
  set = function (it, metadata) {
614
- if (wmhas(store, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
649
+ if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
615
650
  metadata.facade = it;
616
- wmset(store, it, metadata);
651
+ store.set(it, metadata);
617
652
  return metadata;
618
653
  };
619
654
  get = function (it) {
620
- return wmget(store, it) || {};
655
+ return store.get(it) || {};
621
656
  };
622
657
  has = function (it) {
623
- return wmhas(store, it);
658
+ return store.has(it);
624
659
  };
625
660
  } else {
626
661
  var STATE = sharedKey('state');
627
662
  hiddenKeys$2[STATE] = true;
628
663
  set = function (it, metadata) {
629
- if (hasOwn$4(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
664
+ if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
630
665
  metadata.facade = it;
631
- createNonEnumerableProperty$2(it, STATE, metadata);
666
+ createNonEnumerableProperty$1(it, STATE, metadata);
632
667
  return metadata;
633
668
  };
634
669
  get = function (it) {
635
- return hasOwn$4(it, STATE) ? it[STATE] : {};
670
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
636
671
  };
637
672
  has = function (it) {
638
- return hasOwn$4(it, STATE);
673
+ return hasOwn$3(it, STATE);
639
674
  };
640
675
  }
641
676
 
@@ -647,82 +682,105 @@ var internalState = {
647
682
  getterFor: getterFor
648
683
  };
649
684
 
650
- var DESCRIPTORS$1 = descriptors;
651
- var hasOwn$3 = hasOwnProperty_1;
652
-
653
- var FunctionPrototype = Function.prototype;
654
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
655
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
656
-
657
- var EXISTS = hasOwn$3(FunctionPrototype, 'name');
658
- // additional protection from minified / mangled / dropped function names
659
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
660
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
661
-
662
- var functionName = {
663
- EXISTS: EXISTS,
664
- PROPER: PROPER,
665
- CONFIGURABLE: CONFIGURABLE
666
- };
667
-
668
- var global$2 = global$l;
669
- var isCallable$1 = isCallable$9;
685
+ var fails$2 = fails$9;
686
+ var isCallable$2 = isCallable$a;
670
687
  var hasOwn$2 = hasOwnProperty_1;
671
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$3;
672
- var setGlobal$1 = setGlobal$3;
673
- var inspectSource = inspectSource$2;
674
- var InternalStateModule = internalState;
688
+ var DESCRIPTORS$1 = descriptors;
675
689
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
690
+ var inspectSource = inspectSource$1;
691
+ var InternalStateModule = internalState;
676
692
 
677
- var getInternalState = InternalStateModule.get;
678
693
  var enforceInternalState = InternalStateModule.enforce;
694
+ var getInternalState = InternalStateModule.get;
695
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
696
+ var defineProperty$1 = Object.defineProperty;
697
+
698
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
699
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
700
+ });
701
+
679
702
  var TEMPLATE = String(String).split('String');
680
703
 
681
- (redefine$1.exports = function (O, key, value, options) {
682
- var unsafe = options ? !!options.unsafe : false;
683
- var simple = options ? !!options.enumerable : false;
684
- var noTargetGet = options ? !!options.noTargetGet : false;
685
- var name = options && options.name !== undefined ? options.name : key;
686
- var state;
687
- if (isCallable$1(value)) {
688
- if (String(name).slice(0, 7) === 'Symbol(') {
689
- name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
690
- }
691
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
692
- createNonEnumerableProperty$1(value, 'name', name);
693
- }
694
- state = enforceInternalState(value);
695
- if (!state.source) {
696
- state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
697
- }
704
+ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
705
+ if (String(name).slice(0, 7) === 'Symbol(') {
706
+ name = '[' + String(name).replace(/^Symbol\(([^)]*)\)/, '$1') + ']';
698
707
  }
699
- if (O === global$2) {
700
- if (simple) O[key] = value;
701
- else setGlobal$1(key, value);
702
- return;
703
- } else if (!unsafe) {
704
- delete O[key];
705
- } else if (!noTargetGet && O[key]) {
706
- simple = true;
708
+ if (options && options.getter) name = 'get ' + name;
709
+ if (options && options.setter) name = 'set ' + name;
710
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
711
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
712
+ else value.name = name;
713
+ }
714
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
715
+ defineProperty$1(value, 'length', { value: options.arity });
707
716
  }
708
- if (simple) O[key] = value;
709
- else createNonEnumerableProperty$1(O, key, value);
717
+ try {
718
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
719
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
720
+ // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
721
+ } else if (value.prototype) value.prototype = undefined;
722
+ } catch (error) { /* empty */ }
723
+ var state = enforceInternalState(value);
724
+ if (!hasOwn$2(state, 'source')) {
725
+ state.source = TEMPLATE.join(typeof name == 'string' ? name : '');
726
+ } return value;
727
+ };
728
+
710
729
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
711
- })(Function.prototype, 'toString', function toString() {
712
- return isCallable$1(this) && getInternalState(this).source || inspectSource(this);
713
- });
730
+ // eslint-disable-next-line no-extend-native -- required
731
+ Function.prototype.toString = makeBuiltIn$1(function toString() {
732
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
733
+ }, 'toString');
734
+
735
+ var isCallable$1 = isCallable$a;
736
+ var definePropertyModule$1 = objectDefineProperty;
737
+ var makeBuiltIn = makeBuiltIn$2.exports;
738
+ var defineGlobalProperty$1 = defineGlobalProperty$3;
739
+
740
+ var defineBuiltIn$1 = function (O, key, value, options) {
741
+ if (!options) options = {};
742
+ var simple = options.enumerable;
743
+ var name = options.name !== undefined ? options.name : key;
744
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
745
+ if (options.global) {
746
+ if (simple) O[key] = value;
747
+ else defineGlobalProperty$1(key, value);
748
+ } else {
749
+ try {
750
+ if (!options.unsafe) delete O[key];
751
+ else if (O[key]) simple = true;
752
+ } catch (error) { /* empty */ }
753
+ if (simple) O[key] = value;
754
+ else definePropertyModule$1.f(O, key, {
755
+ value: value,
756
+ enumerable: false,
757
+ configurable: !options.nonConfigurable,
758
+ writable: !options.nonWritable
759
+ });
760
+ } return O;
761
+ };
714
762
 
715
763
  var objectGetOwnPropertyNames = {};
716
764
 
717
765
  var ceil = Math.ceil;
718
766
  var floor = Math.floor;
719
767
 
768
+ // `Math.trunc` method
769
+ // https://tc39.es/ecma262/#sec-math.trunc
770
+ // eslint-disable-next-line es/no-math-trunc -- safe
771
+ var mathTrunc = Math.trunc || function trunc(x) {
772
+ var n = +x;
773
+ return (n > 0 ? floor : ceil)(n);
774
+ };
775
+
776
+ var trunc = mathTrunc;
777
+
720
778
  // `ToIntegerOrInfinity` abstract operation
721
779
  // https://tc39.es/ecma262/#sec-tointegerorinfinity
722
780
  var toIntegerOrInfinity$2 = function (argument) {
723
781
  var number = +argument;
724
- // eslint-disable-next-line no-self-compare -- safe
725
- return number !== number || number === 0 ? 0 : (number > 0 ? floor : ceil)(number);
782
+ // eslint-disable-next-line no-self-compare -- NaN check
783
+ return number !== number || number === 0 ? 0 : trunc(number);
726
784
  };
727
785
 
728
786
  var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
@@ -870,8 +928,8 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
870
928
  }
871
929
  };
872
930
 
873
- var fails$1 = fails$8;
874
- var isCallable = isCallable$9;
931
+ var fails$1 = fails$9;
932
+ var isCallable = isCallable$a;
875
933
 
876
934
  var replacement = /#|\.prototype\./;
877
935
 
@@ -893,28 +951,28 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
893
951
 
894
952
  var isForced_1 = isForced$1;
895
953
 
896
- var global$1 = global$l;
954
+ var global$1 = global$a;
897
955
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
898
- var createNonEnumerableProperty = createNonEnumerableProperty$3;
899
- var redefine = redefine$1.exports;
900
- var setGlobal = setGlobal$3;
956
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
957
+ var defineBuiltIn = defineBuiltIn$1;
958
+ var defineGlobalProperty = defineGlobalProperty$3;
901
959
  var copyConstructorProperties = copyConstructorProperties$1;
902
960
  var isForced = isForced_1;
903
961
 
904
962
  /*
905
- options.target - name of the target object
906
- options.global - target is the global object
907
- options.stat - export as static methods of target
908
- options.proto - export as prototype methods of target
909
- options.real - real prototype method for the `pure` version
910
- options.forced - export even if the native feature is available
911
- options.bind - bind methods to the target, required for the `pure` version
912
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
913
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
914
- options.sham - add a flag to not completely full polyfills
915
- options.enumerable - export as enumerable property
916
- options.noTargetGet - prevent calling a getter on target
917
- options.name - the .name of the function if it does not match the key
963
+ options.target - name of the target object
964
+ options.global - target is the global object
965
+ options.stat - export as static methods of target
966
+ options.proto - export as prototype methods of target
967
+ options.real - real prototype method for the `pure` version
968
+ options.forced - export even if the native feature is available
969
+ options.bind - bind methods to the target, required for the `pure` version
970
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
971
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
972
+ options.sham - add a flag to not completely full polyfills
973
+ options.enumerable - export as enumerable property
974
+ options.dontCallGetSet - prevent calling a getter on target
975
+ options.name - the .name of the function if it does not match the key
918
976
  */
919
977
  var _export = function (options, source) {
920
978
  var TARGET = options.target;
@@ -924,13 +982,13 @@ var _export = function (options, source) {
924
982
  if (GLOBAL) {
925
983
  target = global$1;
926
984
  } else if (STATIC) {
927
- target = global$1[TARGET] || setGlobal(TARGET, {});
985
+ target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
928
986
  } else {
929
987
  target = (global$1[TARGET] || {}).prototype;
930
988
  }
931
989
  if (target) for (key in source) {
932
990
  sourceProperty = source[key];
933
- if (options.noTargetGet) {
991
+ if (options.dontCallGetSet) {
934
992
  descriptor = getOwnPropertyDescriptor(target, key);
935
993
  targetProperty = descriptor && descriptor.value;
936
994
  } else targetProperty = target[key];
@@ -944,8 +1002,7 @@ var _export = function (options, source) {
944
1002
  if (options.sham || (targetProperty && targetProperty.sham)) {
945
1003
  createNonEnumerableProperty(sourceProperty, 'sham', true);
946
1004
  }
947
- // extend global
948
- redefine(target, key, sourceProperty, options);
1005
+ defineBuiltIn(target, key, sourceProperty, options);
949
1006
  }
950
1007
  };
951
1008
 
@@ -962,7 +1019,7 @@ var objectKeys$1 = Object.keys || function keys(O) {
962
1019
  var DESCRIPTORS = descriptors;
963
1020
  var uncurryThis = functionUncurryThis;
964
1021
  var call = functionCall;
965
- var fails = fails$8;
1022
+ var fails = fails$9;
966
1023
  var objectKeys = objectKeys$1;
967
1024
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
968
1025
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
@@ -1022,7 +1079,7 @@ var assign = objectAssign;
1022
1079
  // `Object.assign` method
1023
1080
  // https://tc39.es/ecma262/#sec-object.assign
1024
1081
  // eslint-disable-next-line es/no-object-assign -- required for testing
1025
- $({ target: 'Object', stat: true, forced: Object.assign !== assign }, {
1082
+ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign }, {
1026
1083
  assign: assign
1027
1084
  });
1028
1085
 
@@ -1036,7 +1093,6 @@ const TRANSFORM_OPEN = `translate(0px, 0px)`;
1036
1093
  class WidgetContainer {
1037
1094
  constructor(options) {
1038
1095
  var _a, _b;
1039
-
1040
1096
  this.options = options;
1041
1097
  this.container = document.createElement('div');
1042
1098
  this.container.style.position = 'fixed';
@@ -1045,44 +1101,36 @@ class WidgetContainer {
1045
1101
  this.container.style.bottom = `${BUTTON_BOTTOM_POSITION}px`;
1046
1102
  this.container.style.width = `${CONTAINER_WIDTH}px`;
1047
1103
  this.container.style.height = `${BUTTON_HEIGHT}px`;
1048
-
1049
1104
  if ((_b = (_a = options.ui) === null || _a === void 0 ? void 0 : _a.opener) === null || _b === void 0 ? void 0 : _b.hide) {
1050
1105
  this.container.style.transform = TRANSFORM_CLOSED_HIDE;
1051
1106
  } else {
1052
1107
  this.container.style.transform = TRANSFORM_CLOSED;
1053
1108
  }
1054
-
1055
1109
  this.container.style.transitionTimingFunction = 'cubic-bezier(0.4, 0, 0.2, 1)';
1056
1110
  this.container.style.transitionDuration = '700ms';
1057
1111
  this.container.style.transitionProperty = 'transform';
1058
1112
  document.body.appendChild(this.container);
1059
1113
  }
1060
-
1061
1114
  open() {
1062
1115
  this.container.style.transform = TRANSFORM_OPEN;
1063
1116
  this.container.style.height = '100vh';
1064
1117
  this.container.style.bottom = `0px`;
1065
1118
  }
1066
-
1067
1119
  close() {
1068
1120
  var _a, _b;
1069
-
1070
1121
  if ((_b = (_a = this.options.ui) === null || _a === void 0 ? void 0 : _a.opener) === null || _b === void 0 ? void 0 : _b.hide) {
1071
1122
  this.container.style.transform = TRANSFORM_CLOSED_HIDE;
1072
1123
  } else {
1073
1124
  this.container.style.transform = TRANSFORM_CLOSED;
1074
1125
  }
1075
-
1076
1126
  setTimeout(() => {
1077
1127
  this.container.style.height = `${BUTTON_HEIGHT}px`;
1078
1128
  this.container.style.bottom = `${BUTTON_BOTTOM_POSITION}px`;
1079
1129
  }, 700);
1080
1130
  }
1081
-
1082
1131
  get element() {
1083
1132
  return this.container;
1084
1133
  }
1085
-
1086
1134
  }
1087
1135
 
1088
1136
  const NinetailedPreviewPlugin = ({
@@ -1103,13 +1151,11 @@ const NinetailedPreviewPlugin = ({
1103
1151
  instance
1104
1152
  }) => {
1105
1153
  var _a;
1106
-
1107
1154
  if (typeof window !== 'undefined') {
1108
1155
  const {
1109
- PreviewBridge // eslint-disable-next-line @typescript-eslint/no-var-requires
1110
-
1111
- } = require('./PreviewBridge');
1112
-
1156
+ PreviewBridge
1157
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
1158
+ } = require('@ninetailed/experience.js-preview-bridge');
1113
1159
  const container = new WidgetContainer({
1114
1160
  ui
1115
1161
  });
@@ -1117,7 +1163,6 @@ const NinetailedPreviewPlugin = ({
1117
1163
  url
1118
1164
  });
1119
1165
  preview.render(container.element);
1120
-
1121
1166
  const open = () => {
1122
1167
  container.open();
1123
1168
  isOpen = true;
@@ -1125,7 +1170,6 @@ const NinetailedPreviewPlugin = ({
1125
1170
  type: 'preview:change'
1126
1171
  });
1127
1172
  };
1128
-
1129
1173
  const close = () => {
1130
1174
  container.close();
1131
1175
  setTimeout(() => {
@@ -1135,7 +1179,6 @@ const NinetailedPreviewPlugin = ({
1135
1179
  });
1136
1180
  }, 700);
1137
1181
  };
1138
-
1139
1182
  const toggle = () => {
1140
1183
  if (isOpen) {
1141
1184
  close();
@@ -1143,7 +1186,6 @@ const NinetailedPreviewPlugin = ({
1143
1186
  open();
1144
1187
  }
1145
1188
  };
1146
-
1147
1189
  const activateAudience = id => {
1148
1190
  activatedAudiences = union(activatedAudiences, [id]);
1149
1191
  instance.dispatch({
@@ -1151,7 +1193,6 @@ const NinetailedPreviewPlugin = ({
1151
1193
  profile: lastProfile
1152
1194
  });
1153
1195
  };
1154
-
1155
1196
  const deactivateAudience = id => {
1156
1197
  activatedAudiences = activatedAudiences.filter(activatedAudience => activatedAudience !== id);
1157
1198
  instance.dispatch({
@@ -1159,7 +1200,6 @@ const NinetailedPreviewPlugin = ({
1159
1200
  profile: lastProfile
1160
1201
  });
1161
1202
  };
1162
-
1163
1203
  const buildPreviewPlugin = () => ({
1164
1204
  open: () => open(),
1165
1205
  close: () => close(),
@@ -1170,16 +1210,13 @@ const NinetailedPreviewPlugin = ({
1170
1210
  activatedAudiences,
1171
1211
  audiences
1172
1212
  });
1173
-
1174
1213
  window.ninetailed = Object.assign({}, window.ninetailed, {
1175
1214
  plugins: Object.assign(Object.assign({}, (_a = window.ninetailed) === null || _a === void 0 ? void 0 : _a.plugins), {
1176
1215
  preview: buildPreviewPlugin()
1177
1216
  })
1178
1217
  });
1179
-
1180
1218
  const buildNinetailed = () => {
1181
1219
  var _a;
1182
-
1183
1220
  return Object.assign({}, window.ninetailed, {
1184
1221
  version: '1.5.1',
1185
1222
  plugins: Object.assign(Object.assign({}, (_a = window.ninetailed) === null || _a === void 0 ? void 0 : _a.plugins), {
@@ -1192,7 +1229,6 @@ const NinetailedPreviewPlugin = ({
1192
1229
  }
1193
1230
  });
1194
1231
  };
1195
-
1196
1232
  instance.on('profile', () => {
1197
1233
  preview.updateProps({
1198
1234
  props: buildNinetailed()
@@ -1209,7 +1245,6 @@ const NinetailedPreviewPlugin = ({
1209
1245
  payload
1210
1246
  }) => {
1211
1247
  var _a;
1212
-
1213
1248
  audiences = ((_a = payload === null || payload === void 0 ? void 0 : payload.profile) === null || _a === void 0 ? void 0 : _a.audiences) || [];
1214
1249
  lastProfile = payload.profile;
1215
1250
  return Object.assign(Object.assign({}, payload), {