@kaltura-apps/genie-chat-react 1.3.3 → 1.5.0-tools.0

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.
package/index.esm.js CHANGED
@@ -1,10 +1,103 @@
1
- import { jsxs, jsx } from 'react/jsx-runtime';
2
- import React, { useMemo, useContext } from 'react';
3
- import { UnisphereProvider, ScopedUnisphereWorkspaceProvider, UnisphereRuntimeLoader, ScopedUnisphereWorkspaceContext, UnisphereRuntimeVisual } from '@unisphere/runtime-react';
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import { createUnisphereSandbox } from '@unisphere/runtime-react';
3
+
4
+ const appId = 'kaltura-apps-genie-chat';
5
+ // Create sandbox at module level
6
+ const GenieChatSandbox = createUnisphereSandbox({
7
+ widgetName: 'unisphere.widget.genie',
8
+ runtimeName: 'chat'
9
+ });
10
+ /**
11
+ * Provider component that initializes the Genie chat workspace and runtime.
12
+ *
13
+ * This component sets up the Unisphere sandbox, loads the chat runtime,
14
+ * and provides context for child components. Wrap your application with
15
+ * this provider to use Genie chat features.
16
+ *
17
+ * @param props - Component props
18
+ * @returns JSX element
19
+ *
20
+ * @example
21
+ * Basic usage:
22
+ * ```tsx
23
+ * <GenieChatProvider runtimeSettings={{ /* chat settings *\/ }}>
24
+ * <GenieChatVisual />
25
+ * </GenieChatProvider>
26
+ * ```
27
+ *
28
+ * @example
29
+ * With optional configuration:
30
+ * ```tsx
31
+ * <GenieChatProvider
32
+ * env="irp2"
33
+ * lang="es"
34
+ * theme="dark"
35
+ * runtimeSettings={{ /* chat settings *\/ }}
36
+ * onStatusChange={(status) => console.log(status)}
37
+ * >
38
+ * <GenieChatVisual />
39
+ * </GenieChatProvider>
40
+ * ```
41
+ */
42
+ const GenieChatProvider = ({
43
+ children,
44
+ runtimeSettings,
45
+ lang: _lang = 'en',
46
+ theme: _theme = 'light',
47
+ env: _env = 'nvp1',
48
+ onStatusChange
49
+ }) => {
50
+ if (!runtimeSettings) {
51
+ return null;
52
+ }
53
+ return jsx(GenieChatSandbox.Provider, {
54
+ appId: appId,
55
+ appVersion: "0.0.0",
56
+ envName: _env,
57
+ language: _lang,
58
+ theme: _theme,
59
+ runtimeSettings: runtimeSettings,
60
+ onStatusChange: onStatusChange,
61
+ children: children
62
+ });
63
+ };
64
+ /**
65
+ * Visual component that renders the Genie chat interface.
66
+ *
67
+ * This component must be used within a GenieChatProvider. It renders
68
+ * the actual chat UI with all interactive elements.
69
+ *
70
+ * @example
71
+ * ```tsx
72
+ * <GenieChatProvider runtimeSettings={{ /* settings *\/ }}>
73
+ * <GenieChatVisual />
74
+ * </GenieChatProvider>
75
+ * ```
76
+ */
77
+ const GenieChatVisual = GenieChatSandbox.Visual;
78
+ const GenieChatSandboxContext = GenieChatSandbox.Context;
4
79
 
5
80
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6
81
 
7
- var fails$b = function (exec) {
82
+ var check = function (it) {
83
+ return it && it.Math === Math && it;
84
+ };
85
+
86
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
87
+ var globalThis_1 =
88
+ // eslint-disable-next-line es/no-global-this -- safe
89
+ check(typeof globalThis == 'object' && globalThis) ||
90
+ check(typeof window == 'object' && window) ||
91
+ // eslint-disable-next-line no-restricted-globals -- safe
92
+ check(typeof self == 'object' && self) ||
93
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
94
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
95
+ // eslint-disable-next-line no-new-func -- fallback
96
+ (function () { return this; })() || Function('return this')();
97
+
98
+ var objectGetOwnPropertyDescriptor = {};
99
+
100
+ var fails$9 = function (exec) {
8
101
  try {
9
102
  return !!exec();
10
103
  } catch (error) {
@@ -12,9 +105,17 @@ var fails$b = function (exec) {
12
105
  }
13
106
  };
14
107
 
15
- var fails$a = fails$b;
108
+ var fails$8 = fails$9;
109
+
110
+ // Detect IE8's incomplete defineProperty implementation
111
+ var descriptors = !fails$8(function () {
112
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
113
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
114
+ });
115
+
116
+ var fails$7 = fails$9;
16
117
 
17
- var functionBindNative = !fails$a(function () {
118
+ var functionBindNative = !fails$7(function () {
18
119
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
19
120
  var test = (function () { /* empty */ }).bind();
20
121
  // eslint-disable-next-line no-prototype-builtins -- safe
@@ -23,41 +124,74 @@ var functionBindNative = !fails$a(function () {
23
124
 
24
125
  var NATIVE_BIND$1 = functionBindNative;
25
126
 
127
+ var call$5 = Function.prototype.call;
128
+ // eslint-disable-next-line es/no-function-prototype-bind -- safe
129
+ var functionCall = NATIVE_BIND$1 ? call$5.bind(call$5) : function () {
130
+ return call$5.apply(call$5, arguments);
131
+ };
132
+
133
+ var objectPropertyIsEnumerable = {};
134
+
135
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
136
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
137
+ var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
138
+
139
+ // Nashorn ~ JDK8 bug
140
+ var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
141
+
142
+ // `Object.prototype.propertyIsEnumerable` method implementation
143
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
144
+ objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
145
+ var descriptor = getOwnPropertyDescriptor$1(this, V);
146
+ return !!descriptor && descriptor.enumerable;
147
+ } : $propertyIsEnumerable;
148
+
149
+ var createPropertyDescriptor$2 = function (bitmap, value) {
150
+ return {
151
+ enumerable: !(bitmap & 1),
152
+ configurable: !(bitmap & 2),
153
+ writable: !(bitmap & 4),
154
+ value: value
155
+ };
156
+ };
157
+
158
+ var NATIVE_BIND = functionBindNative;
159
+
26
160
  var FunctionPrototype$1 = Function.prototype;
27
- var call$6 = FunctionPrototype$1.call;
161
+ var call$4 = FunctionPrototype$1.call;
28
162
  // eslint-disable-next-line es/no-function-prototype-bind -- safe
29
- var uncurryThisWithBind = NATIVE_BIND$1 && FunctionPrototype$1.bind.bind(call$6, call$6);
163
+ var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$4, call$4);
30
164
 
31
- var functionUncurryThis = NATIVE_BIND$1 ? uncurryThisWithBind : function (fn) {
165
+ var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
32
166
  return function () {
33
- return call$6.apply(fn, arguments);
167
+ return call$4.apply(fn, arguments);
34
168
  };
35
169
  };
36
170
 
37
- var uncurryThis$a = functionUncurryThis;
171
+ var uncurryThis$9 = functionUncurryThis;
38
172
 
39
- var toString$1 = uncurryThis$a({}.toString);
40
- var stringSlice$1 = uncurryThis$a(''.slice);
173
+ var toString$1 = uncurryThis$9({}.toString);
174
+ var stringSlice$1 = uncurryThis$9(''.slice);
41
175
 
42
176
  var classofRaw = function (it) {
43
177
  return stringSlice$1(toString$1(it), 8, -1);
44
178
  };
45
179
 
46
- var uncurryThis$9 = functionUncurryThis;
47
- var fails$9 = fails$b;
180
+ var uncurryThis$8 = functionUncurryThis;
181
+ var fails$6 = fails$9;
48
182
  var classof = classofRaw;
49
183
 
50
- var $Object$3 = Object;
51
- var split = uncurryThis$9(''.split);
184
+ var $Object$2 = Object;
185
+ var split = uncurryThis$8(''.split);
52
186
 
53
187
  // fallback for non-array-like ES3 and non-enumerable old V8 strings
54
- var indexedObject = fails$9(function () {
188
+ var indexedObject = fails$6(function () {
55
189
  // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
56
190
  // eslint-disable-next-line no-prototype-builtins -- safe
57
- return !$Object$3('z').propertyIsEnumerable(0);
191
+ return !$Object$2('z').propertyIsEnumerable(0);
58
192
  }) ? function (it) {
59
- return classof(it) === 'String' ? split(it, '') : $Object$3(it);
60
- } : $Object$3;
193
+ return classof(it) === 'String' ? split(it, '') : $Object$2(it);
194
+ } : $Object$2;
61
195
 
62
196
  // we can't use just `it == null` since of `document.all` special case
63
197
  // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
@@ -67,107 +201,55 @@ var isNullOrUndefined$2 = function (it) {
67
201
 
68
202
  var isNullOrUndefined$1 = isNullOrUndefined$2;
69
203
 
70
- var $TypeError$6 = TypeError;
204
+ var $TypeError$5 = TypeError;
71
205
 
72
206
  // `RequireObjectCoercible` abstract operation
73
207
  // https://tc39.es/ecma262/#sec-requireobjectcoercible
74
- var requireObjectCoercible$3 = function (it) {
75
- if (isNullOrUndefined$1(it)) throw new $TypeError$6("Can't call method on " + it);
208
+ var requireObjectCoercible$2 = function (it) {
209
+ if (isNullOrUndefined$1(it)) throw new $TypeError$5("Can't call method on " + it);
76
210
  return it;
77
211
  };
78
212
 
79
213
  // toObject with fallback for non-array-like ES3 strings
80
214
  var IndexedObject$1 = indexedObject;
81
- var requireObjectCoercible$2 = requireObjectCoercible$3;
215
+ var requireObjectCoercible$1 = requireObjectCoercible$2;
82
216
 
83
- var toIndexedObject$5 = function (it) {
84
- return IndexedObject$1(requireObjectCoercible$2(it));
85
- };
86
-
87
- var check = function (it) {
88
- return it && it.Math === Math && it;
217
+ var toIndexedObject$3 = function (it) {
218
+ return IndexedObject$1(requireObjectCoercible$1(it));
89
219
  };
90
220
 
91
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
92
- var globalThis_1 =
93
- // eslint-disable-next-line es/no-global-this -- safe
94
- check(typeof globalThis == 'object' && globalThis) ||
95
- check(typeof window == 'object' && window) ||
96
- // eslint-disable-next-line no-restricted-globals -- safe
97
- check(typeof self == 'object' && self) ||
98
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
99
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
100
- // eslint-disable-next-line no-new-func -- fallback
101
- (function () { return this; })() || Function('return this')();
102
-
103
- var sharedStore = {exports: {}};
104
-
105
- var globalThis$c = globalThis_1;
106
-
107
- // eslint-disable-next-line es/no-object-defineproperty -- safe
108
- var defineProperty$5 = Object.defineProperty;
221
+ // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
222
+ var documentAll = typeof document == 'object' && document.all;
109
223
 
110
- var defineGlobalProperty$3 = function (key, value) {
111
- try {
112
- defineProperty$5(globalThis$c, key, { value: value, configurable: true, writable: true });
113
- } catch (error) {
114
- globalThis$c[key] = value;
115
- } return value;
224
+ // `IsCallable` abstract operation
225
+ // https://tc39.es/ecma262/#sec-iscallable
226
+ // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
227
+ var isCallable$a = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
228
+ return typeof argument == 'function' || argument === documentAll;
229
+ } : function (argument) {
230
+ return typeof argument == 'function';
116
231
  };
117
232
 
118
- var globalThis$b = globalThis_1;
119
- var defineGlobalProperty$2 = defineGlobalProperty$3;
120
-
121
- var SHARED = '__core-js_shared__';
122
- var store$3 = sharedStore.exports = globalThis$b[SHARED] || defineGlobalProperty$2(SHARED, {});
123
-
124
- (store$3.versions || (store$3.versions = [])).push({
125
- version: '3.48.0',
126
- mode: 'global',
127
- copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
128
- license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
129
- source: 'https://github.com/zloirock/core-js'
130
- });
131
-
132
- var sharedStoreExports = sharedStore.exports;
133
-
134
- var store$2 = sharedStoreExports;
233
+ var isCallable$9 = isCallable$a;
135
234
 
136
- var shared$3 = function (key, value) {
137
- return store$2[key] || (store$2[key] = value || {});
235
+ var isObject$4 = function (it) {
236
+ return typeof it == 'object' ? it !== null : isCallable$9(it);
138
237
  };
139
238
 
140
- var requireObjectCoercible$1 = requireObjectCoercible$3;
141
-
142
- var $Object$2 = Object;
239
+ var globalThis$b = globalThis_1;
240
+ var isCallable$8 = isCallable$a;
143
241
 
144
- // `ToObject` abstract operation
145
- // https://tc39.es/ecma262/#sec-toobject
146
- var toObject$3 = function (argument) {
147
- return $Object$2(requireObjectCoercible$1(argument));
242
+ var aFunction = function (argument) {
243
+ return isCallable$8(argument) ? argument : undefined;
148
244
  };
149
245
 
150
- var uncurryThis$8 = functionUncurryThis;
151
- var toObject$2 = toObject$3;
152
-
153
- var hasOwnProperty = uncurryThis$8({}.hasOwnProperty);
154
-
155
- // `HasOwnProperty` abstract operation
156
- // https://tc39.es/ecma262/#sec-hasownproperty
157
- // eslint-disable-next-line es/no-object-hasown -- safe
158
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
159
- return hasOwnProperty(toObject$2(it), key);
246
+ var getBuiltIn$2 = function (namespace, method) {
247
+ return arguments.length < 2 ? aFunction(globalThis$b[namespace]) : globalThis$b[namespace] && globalThis$b[namespace][method];
160
248
  };
161
249
 
162
250
  var uncurryThis$7 = functionUncurryThis;
163
251
 
164
- var id = 0;
165
- var postfix = Math.random();
166
- var toString = uncurryThis$7(1.1.toString);
167
-
168
- var uid$2 = function (key) {
169
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
170
- };
252
+ var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
171
253
 
172
254
  var globalThis$a = globalThis_1;
173
255
 
@@ -206,19 +288,19 @@ var environmentV8Version = version;
206
288
 
207
289
  /* eslint-disable es/no-symbol -- required for testing */
208
290
  var V8_VERSION = environmentV8Version;
209
- var fails$8 = fails$b;
291
+ var fails$5 = fails$9;
210
292
  var globalThis$8 = globalThis_1;
211
293
 
212
- var $String$4 = globalThis$8.String;
294
+ var $String$3 = globalThis$8.String;
213
295
 
214
296
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
215
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$8(function () {
297
+ var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
216
298
  var symbol = Symbol('symbol detection');
217
299
  // Chrome 38 Symbol has incorrect toString conversion
218
300
  // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
219
301
  // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
220
302
  // of course, fail.
221
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
303
+ return !$String$3(symbol) || !(Object(symbol) instanceof Symbol) ||
222
304
  // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
223
305
  !Symbol.sham && V8_VERSION && V8_VERSION < 41;
224
306
  });
@@ -230,137 +312,18 @@ var useSymbolAsUid = NATIVE_SYMBOL$1 &&
230
312
  !Symbol.sham &&
231
313
  typeof Symbol.iterator == 'symbol';
232
314
 
233
- var globalThis$7 = globalThis_1;
234
- var shared$2 = shared$3;
235
- var hasOwn$8 = hasOwnProperty_1;
236
- var uid$1 = uid$2;
237
- var NATIVE_SYMBOL = symbolConstructorDetection;
238
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
239
-
240
- var Symbol$1 = globalThis$7.Symbol;
241
- var WellKnownSymbolsStore = shared$2('wks');
242
- var createWellKnownSymbol = USE_SYMBOL_AS_UID$1 ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
243
-
244
- var wellKnownSymbol$6 = function (name) {
245
- if (!hasOwn$8(WellKnownSymbolsStore, name)) {
246
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$8(Symbol$1, name)
247
- ? Symbol$1[name]
248
- : createWellKnownSymbol('Symbol.' + name);
249
- } return WellKnownSymbolsStore[name];
250
- };
251
-
252
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
253
- var documentAll = typeof document == 'object' && document.all;
254
-
255
- // `IsCallable` abstract operation
256
- // https://tc39.es/ecma262/#sec-iscallable
257
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
258
- var isCallable$d = typeof documentAll == 'undefined' && documentAll !== undefined ? function (argument) {
259
- return typeof argument == 'function' || argument === documentAll;
260
- } : function (argument) {
261
- return typeof argument == 'function';
262
- };
263
-
264
- var isCallable$c = isCallable$d;
265
-
266
- var isObject$8 = function (it) {
267
- return typeof it == 'object' ? it !== null : isCallable$c(it);
268
- };
269
-
270
- var isObject$7 = isObject$8;
271
-
272
- var $String$3 = String;
273
- var $TypeError$5 = TypeError;
274
-
275
- // `Assert: Type(argument) is Object`
276
- var anObject$4 = function (argument) {
277
- if (isObject$7(argument)) return argument;
278
- throw new $TypeError$5($String$3(argument) + ' is not an object');
279
- };
280
-
281
- var objectDefineProperties = {};
282
-
283
- var fails$7 = fails$b;
284
-
285
- // Detect IE8's incomplete defineProperty implementation
286
- var descriptors = !fails$7(function () {
287
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
288
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
289
- });
290
-
291
- var DESCRIPTORS$9 = descriptors;
292
- var fails$6 = fails$b;
293
-
294
- // V8 ~ Chrome 36-
295
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
296
- var v8PrototypeDefineBug = DESCRIPTORS$9 && fails$6(function () {
297
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
298
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
299
- value: 42,
300
- writable: false
301
- }).prototype !== 42;
302
- });
303
-
304
- var objectDefineProperty = {};
305
-
306
- var globalThis$6 = globalThis_1;
307
- var isObject$6 = isObject$8;
308
-
309
- var document$1 = globalThis$6.document;
310
- // typeof document.createElement is 'object' in old IE
311
- var EXISTS$1 = isObject$6(document$1) && isObject$6(document$1.createElement);
312
-
313
- var documentCreateElement$2 = function (it) {
314
- return EXISTS$1 ? document$1.createElement(it) : {};
315
- };
316
-
317
- var DESCRIPTORS$8 = descriptors;
318
- var fails$5 = fails$b;
319
- var createElement = documentCreateElement$2;
320
-
321
- // Thanks to IE8 for its funny defineProperty
322
- var ie8DomDefine = !DESCRIPTORS$8 && !fails$5(function () {
323
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
324
- return Object.defineProperty(createElement('div'), 'a', {
325
- get: function () { return 7; }
326
- }).a !== 7;
327
- });
328
-
329
- var NATIVE_BIND = functionBindNative;
330
-
331
- var call$5 = Function.prototype.call;
332
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
333
- var functionCall = NATIVE_BIND ? call$5.bind(call$5) : function () {
334
- return call$5.apply(call$5, arguments);
335
- };
336
-
337
- var globalThis$5 = globalThis_1;
338
- var isCallable$b = isCallable$d;
339
-
340
- var aFunction = function (argument) {
341
- return isCallable$b(argument) ? argument : undefined;
342
- };
343
-
344
- var getBuiltIn$3 = function (namespace, method) {
345
- return arguments.length < 2 ? aFunction(globalThis$5[namespace]) : globalThis$5[namespace] && globalThis$5[namespace][method];
346
- };
347
-
348
- var uncurryThis$6 = functionUncurryThis;
349
-
350
- var objectIsPrototypeOf = uncurryThis$6({}.isPrototypeOf);
351
-
352
- var getBuiltIn$2 = getBuiltIn$3;
353
- var isCallable$a = isCallable$d;
315
+ var getBuiltIn$1 = getBuiltIn$2;
316
+ var isCallable$7 = isCallable$a;
354
317
  var isPrototypeOf = objectIsPrototypeOf;
355
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
318
+ var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
356
319
 
357
320
  var $Object$1 = Object;
358
321
 
359
- var isSymbol$2 = USE_SYMBOL_AS_UID ? function (it) {
322
+ var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
360
323
  return typeof it == 'symbol';
361
324
  } : function (it) {
362
- var $Symbol = getBuiltIn$2('Symbol');
363
- return isCallable$a($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
325
+ var $Symbol = getBuiltIn$1('Symbol');
326
+ return isCallable$7($Symbol) && isPrototypeOf($Symbol.prototype, $Object$1(it));
364
327
  };
365
328
 
366
329
  var $String$2 = String;
@@ -373,30 +336,30 @@ var tryToString$1 = function (argument) {
373
336
  }
374
337
  };
375
338
 
376
- var isCallable$9 = isCallable$d;
339
+ var isCallable$6 = isCallable$a;
377
340
  var tryToString = tryToString$1;
378
341
 
379
342
  var $TypeError$4 = TypeError;
380
343
 
381
344
  // `Assert: IsCallable(argument) is true`
382
- var aCallable$2 = function (argument) {
383
- if (isCallable$9(argument)) return argument;
345
+ var aCallable$1 = function (argument) {
346
+ if (isCallable$6(argument)) return argument;
384
347
  throw new $TypeError$4(tryToString(argument) + ' is not a function');
385
348
  };
386
349
 
387
- var aCallable$1 = aCallable$2;
350
+ var aCallable = aCallable$1;
388
351
  var isNullOrUndefined = isNullOrUndefined$2;
389
352
 
390
353
  // `GetMethod` abstract operation
391
354
  // https://tc39.es/ecma262/#sec-getmethod
392
355
  var getMethod$1 = function (V, P) {
393
356
  var func = V[P];
394
- return isNullOrUndefined(func) ? undefined : aCallable$1(func);
357
+ return isNullOrUndefined(func) ? undefined : aCallable(func);
395
358
  };
396
359
 
397
- var call$4 = functionCall;
398
- var isCallable$8 = isCallable$d;
399
- var isObject$5 = isObject$8;
360
+ var call$3 = functionCall;
361
+ var isCallable$5 = isCallable$a;
362
+ var isObject$3 = isObject$4;
400
363
 
401
364
  var $TypeError$3 = TypeError;
402
365
 
@@ -404,580 +367,414 @@ var $TypeError$3 = TypeError;
404
367
  // https://tc39.es/ecma262/#sec-ordinarytoprimitive
405
368
  var ordinaryToPrimitive$1 = function (input, pref) {
406
369
  var fn, val;
407
- if (pref === 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
408
- if (isCallable$8(fn = input.valueOf) && !isObject$5(val = call$4(fn, input))) return val;
409
- if (pref !== 'string' && isCallable$8(fn = input.toString) && !isObject$5(val = call$4(fn, input))) return val;
370
+ if (pref === 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
371
+ if (isCallable$5(fn = input.valueOf) && !isObject$3(val = call$3(fn, input))) return val;
372
+ if (pref !== 'string' && isCallable$5(fn = input.toString) && !isObject$3(val = call$3(fn, input))) return val;
410
373
  throw new $TypeError$3("Can't convert object to primitive value");
411
374
  };
412
375
 
413
- var call$3 = functionCall;
414
- var isObject$4 = isObject$8;
415
- var isSymbol$1 = isSymbol$2;
416
- var getMethod = getMethod$1;
417
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
418
- var wellKnownSymbol$5 = wellKnownSymbol$6;
376
+ var sharedStore = {exports: {}};
419
377
 
420
- var $TypeError$2 = TypeError;
421
- var TO_PRIMITIVE = wellKnownSymbol$5('toPrimitive');
378
+ var globalThis$7 = globalThis_1;
422
379
 
423
- // `ToPrimitive` abstract operation
424
- // https://tc39.es/ecma262/#sec-toprimitive
425
- var toPrimitive$1 = function (input, pref) {
426
- if (!isObject$4(input) || isSymbol$1(input)) return input;
427
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
428
- var result;
429
- if (exoticToPrim) {
430
- if (pref === undefined) pref = 'default';
431
- result = call$3(exoticToPrim, input, pref);
432
- if (!isObject$4(result) || isSymbol$1(result)) return result;
433
- throw new $TypeError$2("Can't convert object to primitive value");
434
- }
435
- if (pref === undefined) pref = 'number';
436
- return ordinaryToPrimitive(input, pref);
380
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
381
+ var defineProperty$2 = Object.defineProperty;
382
+
383
+ var defineGlobalProperty$3 = function (key, value) {
384
+ try {
385
+ defineProperty$2(globalThis$7, key, { value: value, configurable: true, writable: true });
386
+ } catch (error) {
387
+ globalThis$7[key] = value;
388
+ } return value;
437
389
  };
438
390
 
439
- var toPrimitive = toPrimitive$1;
440
- var isSymbol = isSymbol$2;
441
-
442
- // `ToPropertyKey` abstract operation
443
- // https://tc39.es/ecma262/#sec-topropertykey
444
- var toPropertyKey$2 = function (argument) {
445
- var key = toPrimitive(argument, 'string');
446
- return isSymbol(key) ? key : key + '';
447
- };
448
-
449
- var DESCRIPTORS$7 = descriptors;
450
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
451
- var V8_PROTOTYPE_DEFINE_BUG$1 = v8PrototypeDefineBug;
452
- var anObject$3 = anObject$4;
453
- var toPropertyKey$1 = toPropertyKey$2;
454
-
455
- var $TypeError$1 = TypeError;
456
- // eslint-disable-next-line es/no-object-defineproperty -- safe
457
- var $defineProperty = Object.defineProperty;
458
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
459
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
460
- var ENUMERABLE = 'enumerable';
461
- var CONFIGURABLE$1 = 'configurable';
462
- var WRITABLE = 'writable';
391
+ var globalThis$6 = globalThis_1;
392
+ var defineGlobalProperty$2 = defineGlobalProperty$3;
463
393
 
464
- // `Object.defineProperty` method
465
- // https://tc39.es/ecma262/#sec-object.defineproperty
466
- objectDefineProperty.f = DESCRIPTORS$7 ? V8_PROTOTYPE_DEFINE_BUG$1 ? function defineProperty(O, P, Attributes) {
467
- anObject$3(O);
468
- P = toPropertyKey$1(P);
469
- anObject$3(Attributes);
470
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
471
- var current = $getOwnPropertyDescriptor$1(O, P);
472
- if (current && current[WRITABLE]) {
473
- O[P] = Attributes.value;
474
- Attributes = {
475
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
476
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
477
- writable: false
478
- };
479
- }
480
- } return $defineProperty(O, P, Attributes);
481
- } : $defineProperty : function defineProperty(O, P, Attributes) {
482
- anObject$3(O);
483
- P = toPropertyKey$1(P);
484
- anObject$3(Attributes);
485
- if (IE8_DOM_DEFINE$1) try {
486
- return $defineProperty(O, P, Attributes);
487
- } catch (error) { /* empty */ }
488
- if ('get' in Attributes || 'set' in Attributes) throw new $TypeError$1('Accessors not supported');
489
- if ('value' in Attributes) O[P] = Attributes.value;
490
- return O;
491
- };
394
+ var SHARED = '__core-js_shared__';
395
+ var store$3 = sharedStore.exports = globalThis$6[SHARED] || defineGlobalProperty$2(SHARED, {});
492
396
 
493
- var ceil = Math.ceil;
494
- var floor = Math.floor;
397
+ (store$3.versions || (store$3.versions = [])).push({
398
+ version: '3.48.0',
399
+ mode: 'global',
400
+ copyright: '© 2013–2025 Denis Pushkarev (zloirock.ru), 2025–2026 CoreJS Company (core-js.io). All rights reserved.',
401
+ license: 'https://github.com/zloirock/core-js/blob/v3.48.0/LICENSE',
402
+ source: 'https://github.com/zloirock/core-js'
403
+ });
495
404
 
496
- // `Math.trunc` method
497
- // https://tc39.es/ecma262/#sec-math.trunc
498
- // eslint-disable-next-line es/no-math-trunc -- safe
499
- var mathTrunc = Math.trunc || function trunc(x) {
500
- var n = +x;
501
- return (n > 0 ? floor : ceil)(n);
502
- };
405
+ var sharedStoreExports = sharedStore.exports;
503
406
 
504
- var trunc = mathTrunc;
407
+ var store$2 = sharedStoreExports;
505
408
 
506
- // `ToIntegerOrInfinity` abstract operation
507
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
508
- var toIntegerOrInfinity$2 = function (argument) {
509
- var number = +argument;
510
- // eslint-disable-next-line no-self-compare -- NaN check
511
- return number !== number || number === 0 ? 0 : trunc(number);
409
+ var shared$3 = function (key, value) {
410
+ return store$2[key] || (store$2[key] = value || {});
512
411
  };
513
412
 
514
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
413
+ var requireObjectCoercible = requireObjectCoercible$2;
515
414
 
516
- var max = Math.max;
517
- var min$1 = Math.min;
415
+ var $Object = Object;
518
416
 
519
- // Helper for a popular repeating case of the spec:
520
- // Let integer be ? ToInteger(index).
521
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
522
- var toAbsoluteIndex$1 = function (index, length) {
523
- var integer = toIntegerOrInfinity$1(index);
524
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
417
+ // `ToObject` abstract operation
418
+ // https://tc39.es/ecma262/#sec-toobject
419
+ var toObject$2 = function (argument) {
420
+ return $Object(requireObjectCoercible(argument));
525
421
  };
526
422
 
527
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
423
+ var uncurryThis$6 = functionUncurryThis;
424
+ var toObject$1 = toObject$2;
528
425
 
529
- var min = Math.min;
426
+ var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
530
427
 
531
- // `ToLength` abstract operation
532
- // https://tc39.es/ecma262/#sec-tolength
533
- var toLength$1 = function (argument) {
534
- var len = toIntegerOrInfinity(argument);
535
- return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
428
+ // `HasOwnProperty` abstract operation
429
+ // https://tc39.es/ecma262/#sec-hasownproperty
430
+ // eslint-disable-next-line es/no-object-hasown -- safe
431
+ var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
432
+ return hasOwnProperty(toObject$1(it), key);
536
433
  };
537
434
 
538
- var toLength = toLength$1;
435
+ var uncurryThis$5 = functionUncurryThis;
539
436
 
540
- // `LengthOfArrayLike` abstract operation
541
- // https://tc39.es/ecma262/#sec-lengthofarraylike
542
- var lengthOfArrayLike$1 = function (obj) {
543
- return toLength(obj.length);
437
+ var id = 0;
438
+ var postfix = Math.random();
439
+ var toString = uncurryThis$5(1.1.toString);
440
+
441
+ var uid$2 = function (key) {
442
+ return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString(++id + postfix, 36);
544
443
  };
545
444
 
546
- var toIndexedObject$4 = toIndexedObject$5;
547
- var toAbsoluteIndex = toAbsoluteIndex$1;
548
- var lengthOfArrayLike = lengthOfArrayLike$1;
445
+ var globalThis$5 = globalThis_1;
446
+ var shared$2 = shared$3;
447
+ var hasOwn$6 = hasOwnProperty_1;
448
+ var uid$1 = uid$2;
449
+ var NATIVE_SYMBOL = symbolConstructorDetection;
450
+ var USE_SYMBOL_AS_UID = useSymbolAsUid;
549
451
 
550
- // `Array.prototype.{ indexOf, includes }` methods implementation
551
- var createMethod = function (IS_INCLUDES) {
552
- return function ($this, el, fromIndex) {
553
- var O = toIndexedObject$4($this);
554
- var length = lengthOfArrayLike(O);
555
- if (length === 0) return !IS_INCLUDES && -1;
556
- var index = toAbsoluteIndex(fromIndex, length);
557
- var value;
558
- // Array#includes uses SameValueZero equality algorithm
559
- // eslint-disable-next-line no-self-compare -- NaN check
560
- if (IS_INCLUDES && el !== el) while (length > index) {
561
- value = O[index++];
562
- // eslint-disable-next-line no-self-compare -- NaN check
563
- if (value !== value) return true;
564
- // Array#indexOf ignores holes, Array#includes - not
565
- } else for (;length > index; index++) {
566
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
567
- } return !IS_INCLUDES && -1;
568
- };
569
- };
452
+ var Symbol$1 = globalThis$5.Symbol;
453
+ var WellKnownSymbolsStore = shared$2('wks');
454
+ var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
570
455
 
571
- var arrayIncludes = {
572
- // `Array.prototype.indexOf` method
573
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
574
- indexOf: createMethod(false)
456
+ var wellKnownSymbol$1 = function (name) {
457
+ if (!hasOwn$6(WellKnownSymbolsStore, name)) {
458
+ WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
459
+ ? Symbol$1[name]
460
+ : createWellKnownSymbol('Symbol.' + name);
461
+ } return WellKnownSymbolsStore[name];
575
462
  };
576
463
 
577
- var hiddenKeys$4 = {};
578
-
579
- var uncurryThis$5 = functionUncurryThis;
580
- var hasOwn$7 = hasOwnProperty_1;
581
- var toIndexedObject$3 = toIndexedObject$5;
582
- var indexOf = arrayIncludes.indexOf;
583
- var hiddenKeys$3 = hiddenKeys$4;
464
+ var call$2 = functionCall;
465
+ var isObject$2 = isObject$4;
466
+ var isSymbol$1 = isSymbol$2;
467
+ var getMethod = getMethod$1;
468
+ var ordinaryToPrimitive = ordinaryToPrimitive$1;
469
+ var wellKnownSymbol = wellKnownSymbol$1;
584
470
 
585
- var push = uncurryThis$5([].push);
471
+ var $TypeError$2 = TypeError;
472
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
586
473
 
587
- var objectKeysInternal = function (object, names) {
588
- var O = toIndexedObject$3(object);
589
- var i = 0;
590
- var result = [];
591
- var key;
592
- for (key in O) !hasOwn$7(hiddenKeys$3, key) && hasOwn$7(O, key) && push(result, key);
593
- // Don't enum bug & hidden keys
594
- while (names.length > i) if (hasOwn$7(O, key = names[i++])) {
595
- ~indexOf(result, key) || push(result, key);
474
+ // `ToPrimitive` abstract operation
475
+ // https://tc39.es/ecma262/#sec-toprimitive
476
+ var toPrimitive$1 = function (input, pref) {
477
+ if (!isObject$2(input) || isSymbol$1(input)) return input;
478
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
479
+ var result;
480
+ if (exoticToPrim) {
481
+ if (pref === undefined) pref = 'default';
482
+ result = call$2(exoticToPrim, input, pref);
483
+ if (!isObject$2(result) || isSymbol$1(result)) return result;
484
+ throw new $TypeError$2("Can't convert object to primitive value");
596
485
  }
597
- return result;
486
+ if (pref === undefined) pref = 'number';
487
+ return ordinaryToPrimitive(input, pref);
598
488
  };
599
489
 
600
- // IE8- don't enum bug keys
601
- var enumBugKeys$3 = [
602
- 'constructor',
603
- 'hasOwnProperty',
604
- 'isPrototypeOf',
605
- 'propertyIsEnumerable',
606
- 'toLocaleString',
607
- 'toString',
608
- 'valueOf'
609
- ];
610
-
611
- var internalObjectKeys$1 = objectKeysInternal;
612
- var enumBugKeys$2 = enumBugKeys$3;
613
-
614
- // `Object.keys` method
615
- // https://tc39.es/ecma262/#sec-object.keys
616
- // eslint-disable-next-line es/no-object-keys -- safe
617
- var objectKeys$2 = Object.keys || function keys(O) {
618
- return internalObjectKeys$1(O, enumBugKeys$2);
619
- };
490
+ var toPrimitive = toPrimitive$1;
491
+ var isSymbol = isSymbol$2;
620
492
 
621
- var DESCRIPTORS$6 = descriptors;
622
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
623
- var definePropertyModule$3 = objectDefineProperty;
624
- var anObject$2 = anObject$4;
625
- var toIndexedObject$2 = toIndexedObject$5;
626
- var objectKeys$1 = objectKeys$2;
627
-
628
- // `Object.defineProperties` method
629
- // https://tc39.es/ecma262/#sec-object.defineproperties
630
- // eslint-disable-next-line es/no-object-defineproperties -- safe
631
- objectDefineProperties.f = DESCRIPTORS$6 && !V8_PROTOTYPE_DEFINE_BUG ? Object.defineProperties : function defineProperties(O, Properties) {
632
- anObject$2(O);
633
- var props = toIndexedObject$2(Properties);
634
- var keys = objectKeys$1(Properties);
635
- var length = keys.length;
636
- var index = 0;
637
- var key;
638
- while (length > index) definePropertyModule$3.f(O, key = keys[index++], props[key]);
639
- return O;
493
+ // `ToPropertyKey` abstract operation
494
+ // https://tc39.es/ecma262/#sec-topropertykey
495
+ var toPropertyKey$2 = function (argument) {
496
+ var key = toPrimitive(argument, 'string');
497
+ return isSymbol(key) ? key : key + '';
640
498
  };
641
499
 
642
- var getBuiltIn$1 = getBuiltIn$3;
643
-
644
- var html$1 = getBuiltIn$1('document', 'documentElement');
645
-
646
- var shared$1 = shared$3;
647
- var uid = uid$2;
648
-
649
- var keys = shared$1('keys');
500
+ var globalThis$4 = globalThis_1;
501
+ var isObject$1 = isObject$4;
650
502
 
651
- var sharedKey$3 = function (key) {
652
- return keys[key] || (keys[key] = uid(key));
653
- };
503
+ var document$1 = globalThis$4.document;
504
+ // typeof document.createElement is 'object' in old IE
505
+ var EXISTS$1 = isObject$1(document$1) && isObject$1(document$1.createElement);
654
506
 
655
- /* global ActiveXObject -- old IE, WSH */
656
- var anObject$1 = anObject$4;
657
- var definePropertiesModule = objectDefineProperties;
658
- var enumBugKeys$1 = enumBugKeys$3;
659
- var hiddenKeys$2 = hiddenKeys$4;
660
- var html = html$1;
661
- var documentCreateElement$1 = documentCreateElement$2;
662
- var sharedKey$2 = sharedKey$3;
663
-
664
- var GT = '>';
665
- var LT = '<';
666
- var PROTOTYPE = 'prototype';
667
- var SCRIPT = 'script';
668
- var IE_PROTO$1 = sharedKey$2('IE_PROTO');
669
-
670
- var EmptyConstructor = function () { /* empty */ };
671
-
672
- var scriptTag = function (content) {
673
- return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
507
+ var documentCreateElement = function (it) {
508
+ return EXISTS$1 ? document$1.createElement(it) : {};
674
509
  };
675
510
 
676
- // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
677
- var NullProtoObjectViaActiveX = function (activeXDocument) {
678
- activeXDocument.write(scriptTag(''));
679
- activeXDocument.close();
680
- var temp = activeXDocument.parentWindow.Object;
681
- // eslint-disable-next-line no-useless-assignment -- avoid memory leak
682
- activeXDocument = null;
683
- return temp;
684
- };
511
+ var DESCRIPTORS$7 = descriptors;
512
+ var fails$4 = fails$9;
513
+ var createElement = documentCreateElement;
685
514
 
686
- // Create object with fake `null` prototype: use iframe Object with cleared prototype
687
- var NullProtoObjectViaIFrame = function () {
688
- // Thrash, waste and sodomy: IE GC bug
689
- var iframe = documentCreateElement$1('iframe');
690
- var JS = 'java' + SCRIPT + ':';
691
- var iframeDocument;
692
- iframe.style.display = 'none';
693
- html.appendChild(iframe);
694
- // https://github.com/zloirock/core-js/issues/475
695
- iframe.src = String(JS);
696
- iframeDocument = iframe.contentWindow.document;
697
- iframeDocument.open();
698
- iframeDocument.write(scriptTag('document.F=Object'));
699
- iframeDocument.close();
700
- return iframeDocument.F;
701
- };
515
+ // Thanks to IE8 for its funny defineProperty
516
+ var ie8DomDefine = !DESCRIPTORS$7 && !fails$4(function () {
517
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
518
+ return Object.defineProperty(createElement('div'), 'a', {
519
+ get: function () { return 7; }
520
+ }).a !== 7;
521
+ });
702
522
 
703
- // Check for document.domain and active x support
704
- // No need to use active x approach when document.domain is not set
705
- // see https://github.com/es-shims/es5-shim/issues/150
706
- // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
707
- // avoid IE GC bug
708
- var activeXDocument;
709
- var NullProtoObject = function () {
710
- try {
711
- activeXDocument = new ActiveXObject('htmlfile');
712
- } catch (error) { /* ignore */ }
713
- NullProtoObject = typeof document != 'undefined'
714
- ? document.domain && activeXDocument
715
- ? NullProtoObjectViaActiveX(activeXDocument) // old IE
716
- : NullProtoObjectViaIFrame()
717
- : NullProtoObjectViaActiveX(activeXDocument); // WSH
718
- var length = enumBugKeys$1.length;
719
- while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys$1[length]];
720
- return NullProtoObject();
721
- };
523
+ var DESCRIPTORS$6 = descriptors;
524
+ var call$1 = functionCall;
525
+ var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
526
+ var createPropertyDescriptor$1 = createPropertyDescriptor$2;
527
+ var toIndexedObject$2 = toIndexedObject$3;
528
+ var toPropertyKey$1 = toPropertyKey$2;
529
+ var hasOwn$5 = hasOwnProperty_1;
530
+ var IE8_DOM_DEFINE$1 = ie8DomDefine;
722
531
 
723
- hiddenKeys$2[IE_PROTO$1] = true;
532
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
533
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
724
534
 
725
- // `Object.create` method
726
- // https://tc39.es/ecma262/#sec-object.create
727
- // eslint-disable-next-line es/no-object-create -- safe
728
- var objectCreate = Object.create || function create(O, Properties) {
729
- var result;
730
- if (O !== null) {
731
- EmptyConstructor[PROTOTYPE] = anObject$1(O);
732
- result = new EmptyConstructor();
733
- EmptyConstructor[PROTOTYPE] = null;
734
- // add "__proto__" for Object.getPrototypeOf polyfill
735
- result[IE_PROTO$1] = O;
736
- } else result = NullProtoObject();
737
- return Properties === undefined ? result : definePropertiesModule.f(result, Properties);
535
+ // `Object.getOwnPropertyDescriptor` method
536
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
537
+ objectGetOwnPropertyDescriptor.f = DESCRIPTORS$6 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
538
+ O = toIndexedObject$2(O);
539
+ P = toPropertyKey$1(P);
540
+ if (IE8_DOM_DEFINE$1) try {
541
+ return $getOwnPropertyDescriptor$1(O, P);
542
+ } catch (error) { /* empty */ }
543
+ if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$1(propertyIsEnumerableModule$1.f, O, P), O[P]);
738
544
  };
739
545
 
740
- var wellKnownSymbol$4 = wellKnownSymbol$6;
741
- var create$1 = objectCreate;
742
- var defineProperty$4 = objectDefineProperty.f;
546
+ var objectDefineProperty = {};
743
547
 
744
- var UNSCOPABLES = wellKnownSymbol$4('unscopables');
745
- var ArrayPrototype = Array.prototype;
548
+ var DESCRIPTORS$5 = descriptors;
549
+ var fails$3 = fails$9;
746
550
 
747
- // Array.prototype[@@unscopables]
748
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
749
- if (ArrayPrototype[UNSCOPABLES] === undefined) {
750
- defineProperty$4(ArrayPrototype, UNSCOPABLES, {
751
- configurable: true,
752
- value: create$1(null)
753
- });
754
- }
551
+ // V8 ~ Chrome 36-
552
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
553
+ var v8PrototypeDefineBug = DESCRIPTORS$5 && fails$3(function () {
554
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
555
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
556
+ value: 42,
557
+ writable: false
558
+ }).prototype !== 42;
559
+ });
755
560
 
756
- // add a key to Array.prototype[@@unscopables]
757
- var addToUnscopables$1 = function (key) {
758
- ArrayPrototype[UNSCOPABLES][key] = true;
759
- };
561
+ var isObject = isObject$4;
760
562
 
761
- var iterators = {};
563
+ var $String$1 = String;
564
+ var $TypeError$1 = TypeError;
762
565
 
763
- var globalThis$4 = globalThis_1;
764
- var isCallable$7 = isCallable$d;
566
+ // `Assert: Type(argument) is Object`
567
+ var anObject$2 = function (argument) {
568
+ if (isObject(argument)) return argument;
569
+ throw new $TypeError$1($String$1(argument) + ' is not an object');
570
+ };
765
571
 
766
- var WeakMap$1 = globalThis$4.WeakMap;
572
+ var DESCRIPTORS$4 = descriptors;
573
+ var IE8_DOM_DEFINE = ie8DomDefine;
574
+ var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
575
+ var anObject$1 = anObject$2;
576
+ var toPropertyKey = toPropertyKey$2;
767
577
 
768
- var weakMapBasicDetection = isCallable$7(WeakMap$1) && /native code/.test(String(WeakMap$1));
578
+ var $TypeError = TypeError;
579
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
580
+ var $defineProperty = Object.defineProperty;
581
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
582
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
583
+ var ENUMERABLE = 'enumerable';
584
+ var CONFIGURABLE$1 = 'configurable';
585
+ var WRITABLE = 'writable';
769
586
 
770
- var createPropertyDescriptor$3 = function (bitmap, value) {
771
- return {
772
- enumerable: !(bitmap & 1),
773
- configurable: !(bitmap & 2),
774
- writable: !(bitmap & 4),
775
- value: value
776
- };
587
+ // `Object.defineProperty` method
588
+ // https://tc39.es/ecma262/#sec-object.defineproperty
589
+ objectDefineProperty.f = DESCRIPTORS$4 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
590
+ anObject$1(O);
591
+ P = toPropertyKey(P);
592
+ anObject$1(Attributes);
593
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
594
+ var current = $getOwnPropertyDescriptor(O, P);
595
+ if (current && current[WRITABLE]) {
596
+ O[P] = Attributes.value;
597
+ Attributes = {
598
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
599
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
600
+ writable: false
601
+ };
602
+ }
603
+ } return $defineProperty(O, P, Attributes);
604
+ } : $defineProperty : function defineProperty(O, P, Attributes) {
605
+ anObject$1(O);
606
+ P = toPropertyKey(P);
607
+ anObject$1(Attributes);
608
+ if (IE8_DOM_DEFINE) try {
609
+ return $defineProperty(O, P, Attributes);
610
+ } catch (error) { /* empty */ }
611
+ if ('get' in Attributes || 'set' in Attributes) throw new $TypeError('Accessors not supported');
612
+ if ('value' in Attributes) O[P] = Attributes.value;
613
+ return O;
777
614
  };
778
615
 
779
- var DESCRIPTORS$5 = descriptors;
616
+ var DESCRIPTORS$3 = descriptors;
780
617
  var definePropertyModule$2 = objectDefineProperty;
781
- var createPropertyDescriptor$2 = createPropertyDescriptor$3;
618
+ var createPropertyDescriptor = createPropertyDescriptor$2;
782
619
 
783
- var createNonEnumerableProperty$4 = DESCRIPTORS$5 ? function (object, key, value) {
784
- return definePropertyModule$2.f(object, key, createPropertyDescriptor$2(1, value));
620
+ var createNonEnumerableProperty$2 = DESCRIPTORS$3 ? function (object, key, value) {
621
+ return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
785
622
  } : function (object, key, value) {
786
623
  object[key] = value;
787
624
  return object;
788
625
  };
789
626
 
790
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
791
- var globalThis$3 = globalThis_1;
792
- var isObject$3 = isObject$8;
793
- var createNonEnumerableProperty$3 = createNonEnumerableProperty$4;
794
- var hasOwn$6 = hasOwnProperty_1;
795
- var shared = sharedStoreExports;
796
- var sharedKey$1 = sharedKey$3;
797
- var hiddenKeys$1 = hiddenKeys$4;
627
+ var makeBuiltIn$2 = {exports: {}};
798
628
 
799
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
800
- var TypeError$1 = globalThis$3.TypeError;
801
- var WeakMap = globalThis$3.WeakMap;
802
- var set, get, has;
629
+ var DESCRIPTORS$2 = descriptors;
630
+ var hasOwn$4 = hasOwnProperty_1;
803
631
 
804
- var enforce = function (it) {
805
- return has(it) ? get(it) : set(it, {});
806
- };
632
+ var FunctionPrototype = Function.prototype;
633
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
634
+ var getDescriptor = DESCRIPTORS$2 && Object.getOwnPropertyDescriptor;
807
635
 
808
- var getterFor = function (TYPE) {
809
- return function (it) {
810
- var state;
811
- if (!isObject$3(it) || (state = get(it)).type !== TYPE) {
812
- throw new TypeError$1('Incompatible receiver, ' + TYPE + ' required');
813
- } return state;
814
- };
636
+ var EXISTS = hasOwn$4(FunctionPrototype, 'name');
637
+ var CONFIGURABLE = EXISTS && (!DESCRIPTORS$2 || (DESCRIPTORS$2 && getDescriptor(FunctionPrototype, 'name').configurable));
638
+
639
+ var functionName = {
640
+ CONFIGURABLE: CONFIGURABLE
815
641
  };
816
642
 
817
- if (NATIVE_WEAK_MAP || shared.state) {
818
- var store$1 = shared.state || (shared.state = new WeakMap());
819
- /* eslint-disable no-self-assign -- prototype methods protection */
820
- store$1.get = store$1.get;
821
- store$1.has = store$1.has;
822
- store$1.set = store$1.set;
823
- /* eslint-enable no-self-assign -- prototype methods protection */
824
- set = function (it, metadata) {
825
- if (store$1.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
826
- metadata.facade = it;
827
- store$1.set(it, metadata);
828
- return metadata;
829
- };
830
- get = function (it) {
831
- return store$1.get(it) || {};
832
- };
833
- has = function (it) {
834
- return store$1.has(it);
835
- };
836
- } else {
837
- var STATE = sharedKey$1('state');
838
- hiddenKeys$1[STATE] = true;
839
- set = function (it, metadata) {
840
- if (hasOwn$6(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
841
- metadata.facade = it;
842
- createNonEnumerableProperty$3(it, STATE, metadata);
843
- return metadata;
844
- };
845
- get = function (it) {
846
- return hasOwn$6(it, STATE) ? it[STATE] : {};
847
- };
848
- has = function (it) {
849
- return hasOwn$6(it, STATE);
850
- };
851
- }
643
+ var uncurryThis$4 = functionUncurryThis;
644
+ var isCallable$4 = isCallable$a;
645
+ var store$1 = sharedStoreExports;
852
646
 
853
- var internalState = {
854
- set: set,
855
- get: get,
856
- has: has,
857
- enforce: enforce,
858
- getterFor: getterFor
859
- };
647
+ var functionToString = uncurryThis$4(Function.toString);
860
648
 
861
- var objectGetOwnPropertyDescriptor = {};
649
+ // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
650
+ if (!isCallable$4(store$1.inspectSource)) {
651
+ store$1.inspectSource = function (it) {
652
+ return functionToString(it);
653
+ };
654
+ }
862
655
 
863
- var objectPropertyIsEnumerable = {};
656
+ var inspectSource$1 = store$1.inspectSource;
864
657
 
865
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
866
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
867
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
658
+ var globalThis$3 = globalThis_1;
659
+ var isCallable$3 = isCallable$a;
868
660
 
869
- // Nashorn ~ JDK8 bug
870
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
661
+ var WeakMap$1 = globalThis$3.WeakMap;
871
662
 
872
- // `Object.prototype.propertyIsEnumerable` method implementation
873
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
874
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
875
- var descriptor = getOwnPropertyDescriptor$1(this, V);
876
- return !!descriptor && descriptor.enumerable;
877
- } : $propertyIsEnumerable;
663
+ var weakMapBasicDetection = isCallable$3(WeakMap$1) && /native code/.test(String(WeakMap$1));
878
664
 
879
- var DESCRIPTORS$4 = descriptors;
880
- var call$2 = functionCall;
881
- var propertyIsEnumerableModule$1 = objectPropertyIsEnumerable;
882
- var createPropertyDescriptor$1 = createPropertyDescriptor$3;
883
- var toIndexedObject$1 = toIndexedObject$5;
884
- var toPropertyKey = toPropertyKey$2;
885
- var hasOwn$5 = hasOwnProperty_1;
886
- var IE8_DOM_DEFINE = ie8DomDefine;
665
+ var shared$1 = shared$3;
666
+ var uid = uid$2;
887
667
 
888
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
889
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
668
+ var keys = shared$1('keys');
890
669
 
891
- // `Object.getOwnPropertyDescriptor` method
892
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
893
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$4 ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
894
- O = toIndexedObject$1(O);
895
- P = toPropertyKey(P);
896
- if (IE8_DOM_DEFINE) try {
897
- return $getOwnPropertyDescriptor(O, P);
898
- } catch (error) { /* empty */ }
899
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call$2(propertyIsEnumerableModule$1.f, O, P), O[P]);
670
+ var sharedKey$1 = function (key) {
671
+ return keys[key] || (keys[key] = uid(key));
900
672
  };
901
673
 
902
- var makeBuiltIn$2 = {exports: {}};
903
-
904
- var DESCRIPTORS$3 = descriptors;
905
- var hasOwn$4 = hasOwnProperty_1;
674
+ var hiddenKeys$3 = {};
906
675
 
907
- var FunctionPrototype = Function.prototype;
908
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
909
- var getDescriptor = DESCRIPTORS$3 && Object.getOwnPropertyDescriptor;
676
+ var NATIVE_WEAK_MAP = weakMapBasicDetection;
677
+ var globalThis$2 = globalThis_1;
678
+ var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
679
+ var hasOwn$3 = hasOwnProperty_1;
680
+ var shared = sharedStoreExports;
681
+ var sharedKey = sharedKey$1;
682
+ var hiddenKeys$2 = hiddenKeys$3;
910
683
 
911
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
912
- // additional protection from minified / mangled / dropped function names
913
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
914
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$3 || (DESCRIPTORS$3 && getDescriptor(FunctionPrototype, 'name').configurable));
684
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
685
+ var TypeError$1 = globalThis$2.TypeError;
686
+ var WeakMap = globalThis$2.WeakMap;
687
+ var set, get, has;
915
688
 
916
- var functionName = {
917
- PROPER: PROPER,
918
- CONFIGURABLE: CONFIGURABLE
689
+ var enforce = function (it) {
690
+ return has(it) ? get(it) : set(it, {});
919
691
  };
920
692
 
921
- var uncurryThis$4 = functionUncurryThis;
922
- var isCallable$6 = isCallable$d;
923
- var store = sharedStoreExports;
924
-
925
- var functionToString = uncurryThis$4(Function.toString);
926
-
927
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
928
- if (!isCallable$6(store.inspectSource)) {
929
- store.inspectSource = function (it) {
930
- return functionToString(it);
693
+ if (NATIVE_WEAK_MAP || shared.state) {
694
+ var store = shared.state || (shared.state = new WeakMap());
695
+ /* eslint-disable no-self-assign -- prototype methods protection */
696
+ store.get = store.get;
697
+ store.has = store.has;
698
+ store.set = store.set;
699
+ /* eslint-enable no-self-assign -- prototype methods protection */
700
+ set = function (it, metadata) {
701
+ if (store.has(it)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
702
+ metadata.facade = it;
703
+ store.set(it, metadata);
704
+ return metadata;
705
+ };
706
+ get = function (it) {
707
+ return store.get(it) || {};
708
+ };
709
+ has = function (it) {
710
+ return store.has(it);
711
+ };
712
+ } else {
713
+ var STATE = sharedKey('state');
714
+ hiddenKeys$2[STATE] = true;
715
+ set = function (it, metadata) {
716
+ if (hasOwn$3(it, STATE)) throw new TypeError$1(OBJECT_ALREADY_INITIALIZED);
717
+ metadata.facade = it;
718
+ createNonEnumerableProperty$1(it, STATE, metadata);
719
+ return metadata;
720
+ };
721
+ get = function (it) {
722
+ return hasOwn$3(it, STATE) ? it[STATE] : {};
723
+ };
724
+ has = function (it) {
725
+ return hasOwn$3(it, STATE);
931
726
  };
932
727
  }
933
728
 
934
- var inspectSource$1 = store.inspectSource;
729
+ var internalState = {
730
+ get: get,
731
+ enforce: enforce};
935
732
 
936
733
  var uncurryThis$3 = functionUncurryThis;
937
- var fails$4 = fails$b;
938
- var isCallable$5 = isCallable$d;
939
- var hasOwn$3 = hasOwnProperty_1;
940
- var DESCRIPTORS$2 = descriptors;
941
- var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
734
+ var fails$2 = fails$9;
735
+ var isCallable$2 = isCallable$a;
736
+ var hasOwn$2 = hasOwnProperty_1;
737
+ var DESCRIPTORS$1 = descriptors;
738
+ var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
942
739
  var inspectSource = inspectSource$1;
943
- var InternalStateModule$1 = internalState;
740
+ var InternalStateModule = internalState;
944
741
 
945
- var enforceInternalState = InternalStateModule$1.enforce;
946
- var getInternalState$1 = InternalStateModule$1.get;
947
- var $String$1 = String;
742
+ var enforceInternalState = InternalStateModule.enforce;
743
+ var getInternalState = InternalStateModule.get;
744
+ var $String = String;
948
745
  // eslint-disable-next-line es/no-object-defineproperty -- safe
949
- var defineProperty$3 = Object.defineProperty;
746
+ var defineProperty$1 = Object.defineProperty;
950
747
  var stringSlice = uncurryThis$3(''.slice);
951
748
  var replace = uncurryThis$3(''.replace);
952
749
  var join = uncurryThis$3([].join);
953
750
 
954
- var CONFIGURABLE_LENGTH = DESCRIPTORS$2 && !fails$4(function () {
955
- return defineProperty$3(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
751
+ var CONFIGURABLE_LENGTH = DESCRIPTORS$1 && !fails$2(function () {
752
+ return defineProperty$1(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
956
753
  });
957
754
 
958
755
  var TEMPLATE = String(String).split('String');
959
756
 
960
757
  var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
961
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
962
- name = '[' + replace($String$1(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
758
+ if (stringSlice($String(name), 0, 7) === 'Symbol(') {
759
+ name = '[' + replace($String(name), /^Symbol\(([^)]*)\).*$/, '$1') + ']';
963
760
  }
964
761
  if (options && options.getter) name = 'get ' + name;
965
762
  if (options && options.setter) name = 'set ' + name;
966
- if (!hasOwn$3(value, 'name') || (CONFIGURABLE_FUNCTION_NAME$1 && value.name !== name)) {
967
- if (DESCRIPTORS$2) defineProperty$3(value, 'name', { value: name, configurable: true });
763
+ if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
764
+ if (DESCRIPTORS$1) defineProperty$1(value, 'name', { value: name, configurable: true });
968
765
  else value.name = name;
969
766
  }
970
- if (CONFIGURABLE_LENGTH && options && hasOwn$3(options, 'arity') && value.length !== options.arity) {
971
- defineProperty$3(value, 'length', { value: options.arity });
767
+ if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
768
+ defineProperty$1(value, 'length', { value: options.arity });
972
769
  }
973
770
  try {
974
- if (options && hasOwn$3(options, 'constructor') && options.constructor) {
975
- if (DESCRIPTORS$2) defineProperty$3(value, 'prototype', { writable: false });
771
+ if (options && hasOwn$2(options, 'constructor') && options.constructor) {
772
+ if (DESCRIPTORS$1) defineProperty$1(value, 'prototype', { writable: false });
976
773
  // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
977
774
  } else if (value.prototype) value.prototype = undefined;
978
775
  } catch (error) { /* empty */ }
979
776
  var state = enforceInternalState(value);
980
- if (!hasOwn$3(state, 'source')) {
777
+ if (!hasOwn$2(state, 'source')) {
981
778
  state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
982
779
  } return value;
983
780
  };
@@ -985,21 +782,21 @@ var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
985
782
  // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
986
783
  // eslint-disable-next-line no-extend-native -- required
987
784
  Function.prototype.toString = makeBuiltIn$1(function toString() {
988
- return isCallable$5(this) && getInternalState$1(this).source || inspectSource(this);
785
+ return isCallable$2(this) && getInternalState(this).source || inspectSource(this);
989
786
  }, 'toString');
990
787
 
991
788
  var makeBuiltInExports = makeBuiltIn$2.exports;
992
789
 
993
- var isCallable$4 = isCallable$d;
790
+ var isCallable$1 = isCallable$a;
994
791
  var definePropertyModule$1 = objectDefineProperty;
995
792
  var makeBuiltIn = makeBuiltInExports;
996
793
  var defineGlobalProperty$1 = defineGlobalProperty$3;
997
794
 
998
- var defineBuiltIn$3 = function (O, key, value, options) {
795
+ var defineBuiltIn$1 = function (O, key, value, options) {
999
796
  if (!options) options = {};
1000
797
  var simple = options.enumerable;
1001
798
  var name = options.name !== undefined ? options.name : key;
1002
- if (isCallable$4(value)) makeBuiltIn(value, name, options);
799
+ if (isCallable$1(value)) makeBuiltIn(value, name, options);
1003
800
  if (options.global) {
1004
801
  if (simple) O[key] = value;
1005
802
  else defineGlobalProperty$1(key, value);
@@ -1020,16 +817,132 @@ var defineBuiltIn$3 = function (O, key, value, options) {
1020
817
 
1021
818
  var objectGetOwnPropertyNames = {};
1022
819
 
1023
- var internalObjectKeys = objectKeysInternal;
1024
- var enumBugKeys = enumBugKeys$3;
820
+ var ceil = Math.ceil;
821
+ var floor = Math.floor;
822
+
823
+ // `Math.trunc` method
824
+ // https://tc39.es/ecma262/#sec-math.trunc
825
+ // eslint-disable-next-line es/no-math-trunc -- safe
826
+ var mathTrunc = Math.trunc || function trunc(x) {
827
+ var n = +x;
828
+ return (n > 0 ? floor : ceil)(n);
829
+ };
830
+
831
+ var trunc = mathTrunc;
832
+
833
+ // `ToIntegerOrInfinity` abstract operation
834
+ // https://tc39.es/ecma262/#sec-tointegerorinfinity
835
+ var toIntegerOrInfinity$2 = function (argument) {
836
+ var number = +argument;
837
+ // eslint-disable-next-line no-self-compare -- NaN check
838
+ return number !== number || number === 0 ? 0 : trunc(number);
839
+ };
840
+
841
+ var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
842
+
843
+ var max = Math.max;
844
+ var min$1 = Math.min;
845
+
846
+ // Helper for a popular repeating case of the spec:
847
+ // Let integer be ? ToInteger(index).
848
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
849
+ var toAbsoluteIndex$1 = function (index, length) {
850
+ var integer = toIntegerOrInfinity$1(index);
851
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
852
+ };
853
+
854
+ var toIntegerOrInfinity = toIntegerOrInfinity$2;
855
+
856
+ var min = Math.min;
857
+
858
+ // `ToLength` abstract operation
859
+ // https://tc39.es/ecma262/#sec-tolength
860
+ var toLength$1 = function (argument) {
861
+ var len = toIntegerOrInfinity(argument);
862
+ return len > 0 ? min(len, 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
863
+ };
864
+
865
+ var toLength = toLength$1;
866
+
867
+ // `LengthOfArrayLike` abstract operation
868
+ // https://tc39.es/ecma262/#sec-lengthofarraylike
869
+ var lengthOfArrayLike$1 = function (obj) {
870
+ return toLength(obj.length);
871
+ };
872
+
873
+ var toIndexedObject$1 = toIndexedObject$3;
874
+ var toAbsoluteIndex = toAbsoluteIndex$1;
875
+ var lengthOfArrayLike = lengthOfArrayLike$1;
876
+
877
+ // `Array.prototype.{ indexOf, includes }` methods implementation
878
+ var createMethod = function (IS_INCLUDES) {
879
+ return function ($this, el, fromIndex) {
880
+ var O = toIndexedObject$1($this);
881
+ var length = lengthOfArrayLike(O);
882
+ if (length === 0) return !IS_INCLUDES && -1;
883
+ var index = toAbsoluteIndex(fromIndex, length);
884
+ var value;
885
+ // Array#includes uses SameValueZero equality algorithm
886
+ // eslint-disable-next-line no-self-compare -- NaN check
887
+ if (IS_INCLUDES && el !== el) while (length > index) {
888
+ value = O[index++];
889
+ // eslint-disable-next-line no-self-compare -- NaN check
890
+ if (value !== value) return true;
891
+ // Array#indexOf ignores holes, Array#includes - not
892
+ } else for (;length > index; index++) {
893
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
894
+ } return !IS_INCLUDES && -1;
895
+ };
896
+ };
897
+
898
+ var arrayIncludes = {
899
+ // `Array.prototype.indexOf` method
900
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
901
+ indexOf: createMethod(false)
902
+ };
903
+
904
+ var uncurryThis$2 = functionUncurryThis;
905
+ var hasOwn$1 = hasOwnProperty_1;
906
+ var toIndexedObject = toIndexedObject$3;
907
+ var indexOf = arrayIncludes.indexOf;
908
+ var hiddenKeys$1 = hiddenKeys$3;
909
+
910
+ var push = uncurryThis$2([].push);
911
+
912
+ var objectKeysInternal = function (object, names) {
913
+ var O = toIndexedObject(object);
914
+ var i = 0;
915
+ var result = [];
916
+ var key;
917
+ for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
918
+ // Don't enum bug & hidden keys
919
+ while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
920
+ ~indexOf(result, key) || push(result, key);
921
+ }
922
+ return result;
923
+ };
924
+
925
+ // IE8- don't enum bug keys
926
+ var enumBugKeys$2 = [
927
+ 'constructor',
928
+ 'hasOwnProperty',
929
+ 'isPrototypeOf',
930
+ 'propertyIsEnumerable',
931
+ 'toLocaleString',
932
+ 'toString',
933
+ 'valueOf'
934
+ ];
935
+
936
+ var internalObjectKeys$1 = objectKeysInternal;
937
+ var enumBugKeys$1 = enumBugKeys$2;
1025
938
 
1026
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
939
+ var hiddenKeys = enumBugKeys$1.concat('length', 'prototype');
1027
940
 
1028
941
  // `Object.getOwnPropertyNames` method
1029
942
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1030
943
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1031
944
  objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1032
- return internalObjectKeys(O, hiddenKeys);
945
+ return internalObjectKeys$1(O, hiddenKeys);
1033
946
  };
1034
947
 
1035
948
  var objectGetOwnPropertySymbols = {};
@@ -1037,13 +950,13 @@ var objectGetOwnPropertySymbols = {};
1037
950
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1038
951
  objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
1039
952
 
1040
- var getBuiltIn = getBuiltIn$3;
1041
- var uncurryThis$2 = functionUncurryThis;
953
+ var getBuiltIn = getBuiltIn$2;
954
+ var uncurryThis$1 = functionUncurryThis;
1042
955
  var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
1043
956
  var getOwnPropertySymbolsModule$1 = objectGetOwnPropertySymbols;
1044
- var anObject = anObject$4;
957
+ var anObject = anObject$2;
1045
958
 
1046
- var concat$1 = uncurryThis$2([].concat);
959
+ var concat$1 = uncurryThis$1([].concat);
1047
960
 
1048
961
  // all object keys, includes non-enumerable and symbols
1049
962
  var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
@@ -1052,7 +965,7 @@ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1052
965
  return getOwnPropertySymbols ? concat$1(keys, getOwnPropertySymbols(it)) : keys;
1053
966
  };
1054
967
 
1055
- var hasOwn$2 = hasOwnProperty_1;
968
+ var hasOwn = hasOwnProperty_1;
1056
969
  var ownKeys = ownKeys$1;
1057
970
  var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
1058
971
  var definePropertyModule = objectDefineProperty;
@@ -1063,14 +976,14 @@ var copyConstructorProperties$1 = function (target, source, exceptions) {
1063
976
  var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
1064
977
  for (var i = 0; i < keys.length; i++) {
1065
978
  var key = keys[i];
1066
- if (!hasOwn$2(target, key) && !(exceptions && hasOwn$2(exceptions, key))) {
979
+ if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
1067
980
  defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1068
981
  }
1069
982
  }
1070
983
  };
1071
984
 
1072
- var fails$3 = fails$b;
1073
- var isCallable$3 = isCallable$d;
985
+ var fails$1 = fails$9;
986
+ var isCallable = isCallable$a;
1074
987
 
1075
988
  var replacement = /#|\.prototype\./;
1076
989
 
@@ -1078,7 +991,7 @@ var isForced$1 = function (feature, detection) {
1078
991
  var value = data[normalize(feature)];
1079
992
  return value === POLYFILL ? true
1080
993
  : value === NATIVE ? false
1081
- : isCallable$3(detection) ? fails$3(detection)
994
+ : isCallable(detection) ? fails$1(detection)
1082
995
  : !!detection;
1083
996
  };
1084
997
 
@@ -1092,10 +1005,10 @@ var POLYFILL = isForced$1.POLYFILL = 'P';
1092
1005
 
1093
1006
  var isForced_1 = isForced$1;
1094
1007
 
1095
- var globalThis$2 = globalThis_1;
1008
+ var globalThis$1 = globalThis_1;
1096
1009
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1097
- var createNonEnumerableProperty$2 = createNonEnumerableProperty$4;
1098
- var defineBuiltIn$2 = defineBuiltIn$3;
1010
+ var createNonEnumerableProperty = createNonEnumerableProperty$2;
1011
+ var defineBuiltIn = defineBuiltIn$1;
1099
1012
  var defineGlobalProperty = defineGlobalProperty$3;
1100
1013
  var copyConstructorProperties = copyConstructorProperties$1;
1101
1014
  var isForced = isForced_1;
@@ -1121,11 +1034,11 @@ var _export = function (options, source) {
1121
1034
  var STATIC = options.stat;
1122
1035
  var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1123
1036
  if (GLOBAL) {
1124
- target = globalThis$2;
1037
+ target = globalThis$1;
1125
1038
  } else if (STATIC) {
1126
- target = globalThis$2[TARGET] || defineGlobalProperty(TARGET, {});
1039
+ target = globalThis$1[TARGET] || defineGlobalProperty(TARGET, {});
1127
1040
  } else {
1128
- target = globalThis$2[TARGET] && globalThis$2[TARGET].prototype;
1041
+ target = globalThis$1[TARGET] && globalThis$1[TARGET].prototype;
1129
1042
  }
1130
1043
  if (target) for (key in source) {
1131
1044
  sourceProperty = source[key];
@@ -1141,348 +1054,30 @@ var _export = function (options, source) {
1141
1054
  }
1142
1055
  // add a flag to not completely full polyfills
1143
1056
  if (options.sham || (targetProperty && targetProperty.sham)) {
1144
- createNonEnumerableProperty$2(sourceProperty, 'sham', true);
1057
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1145
1058
  }
1146
- defineBuiltIn$2(target, key, sourceProperty, options);
1147
- }
1148
- };
1149
-
1150
- var fails$2 = fails$b;
1151
-
1152
- var correctPrototypeGetter = !fails$2(function () {
1153
- function F() { /* empty */ }
1154
- F.prototype.constructor = null;
1155
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1156
- return Object.getPrototypeOf(new F()) !== F.prototype;
1157
- });
1158
-
1159
- var hasOwn$1 = hasOwnProperty_1;
1160
- var isCallable$2 = isCallable$d;
1161
- var toObject$1 = toObject$3;
1162
- var sharedKey = sharedKey$3;
1163
- var CORRECT_PROTOTYPE_GETTER = correctPrototypeGetter;
1164
-
1165
- var IE_PROTO = sharedKey('IE_PROTO');
1166
- var $Object = Object;
1167
- var ObjectPrototype = $Object.prototype;
1168
-
1169
- // `Object.getPrototypeOf` method
1170
- // https://tc39.es/ecma262/#sec-object.getprototypeof
1171
- // eslint-disable-next-line es/no-object-getprototypeof -- safe
1172
- var objectGetPrototypeOf = CORRECT_PROTOTYPE_GETTER ? $Object.getPrototypeOf : function (O) {
1173
- var object = toObject$1(O);
1174
- if (hasOwn$1(object, IE_PROTO)) return object[IE_PROTO];
1175
- var constructor = object.constructor;
1176
- if (isCallable$2(constructor) && object instanceof constructor) {
1177
- return constructor.prototype;
1178
- } return object instanceof $Object ? ObjectPrototype : null;
1179
- };
1180
-
1181
- var fails$1 = fails$b;
1182
- var isCallable$1 = isCallable$d;
1183
- var isObject$2 = isObject$8;
1184
- var getPrototypeOf$1 = objectGetPrototypeOf;
1185
- var defineBuiltIn$1 = defineBuiltIn$3;
1186
- var wellKnownSymbol$3 = wellKnownSymbol$6;
1187
-
1188
- var ITERATOR$2 = wellKnownSymbol$3('iterator');
1189
- var BUGGY_SAFARI_ITERATORS$1 = false;
1190
-
1191
- // `%IteratorPrototype%` object
1192
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1193
- var IteratorPrototype$2, PrototypeOfArrayIteratorPrototype, arrayIterator;
1194
-
1195
- /* eslint-disable es/no-array-prototype-keys -- safe */
1196
- if ([].keys) {
1197
- arrayIterator = [].keys();
1198
- // Safari 8 has buggy iterators w/o `next`
1199
- if (!('next' in arrayIterator)) BUGGY_SAFARI_ITERATORS$1 = true;
1200
- else {
1201
- PrototypeOfArrayIteratorPrototype = getPrototypeOf$1(getPrototypeOf$1(arrayIterator));
1202
- if (PrototypeOfArrayIteratorPrototype !== Object.prototype) IteratorPrototype$2 = PrototypeOfArrayIteratorPrototype;
1203
- }
1204
- }
1205
-
1206
- var NEW_ITERATOR_PROTOTYPE = !isObject$2(IteratorPrototype$2) || fails$1(function () {
1207
- var test = {};
1208
- // FF44- legacy iterators case
1209
- return IteratorPrototype$2[ITERATOR$2].call(test) !== test;
1210
- });
1211
-
1212
- if (NEW_ITERATOR_PROTOTYPE) IteratorPrototype$2 = {};
1213
-
1214
- // `%IteratorPrototype%[@@iterator]()` method
1215
- // https://tc39.es/ecma262/#sec-%iteratorprototype%-@@iterator
1216
- if (!isCallable$1(IteratorPrototype$2[ITERATOR$2])) {
1217
- defineBuiltIn$1(IteratorPrototype$2, ITERATOR$2, function () {
1218
- return this;
1219
- });
1220
- }
1221
-
1222
- var iteratorsCore = {
1223
- IteratorPrototype: IteratorPrototype$2,
1224
- BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
1225
- };
1226
-
1227
- var defineProperty$2 = objectDefineProperty.f;
1228
- var hasOwn = hasOwnProperty_1;
1229
- var wellKnownSymbol$2 = wellKnownSymbol$6;
1230
-
1231
- var TO_STRING_TAG = wellKnownSymbol$2('toStringTag');
1232
-
1233
- var setToStringTag$3 = function (target, TAG, STATIC) {
1234
- if (target && !STATIC) target = target.prototype;
1235
- if (target && !hasOwn(target, TO_STRING_TAG)) {
1236
- defineProperty$2(target, TO_STRING_TAG, { configurable: true, value: TAG });
1059
+ defineBuiltIn(target, key, sourceProperty, options);
1237
1060
  }
1238
1061
  };
1239
1062
 
1240
- var IteratorPrototype$1 = iteratorsCore.IteratorPrototype;
1241
- var create = objectCreate;
1242
- var createPropertyDescriptor = createPropertyDescriptor$3;
1243
- var setToStringTag$2 = setToStringTag$3;
1244
- var Iterators$2 = iterators;
1245
-
1246
- var returnThis$1 = function () { return this; };
1247
-
1248
- var iteratorCreateConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
1249
- var TO_STRING_TAG = NAME + ' Iterator';
1250
- IteratorConstructor.prototype = create(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
1251
- setToStringTag$2(IteratorConstructor, TO_STRING_TAG, false);
1252
- Iterators$2[TO_STRING_TAG] = returnThis$1;
1253
- return IteratorConstructor;
1254
- };
1255
-
1256
- var uncurryThis$1 = functionUncurryThis;
1257
- var aCallable = aCallable$2;
1258
-
1259
- var functionUncurryThisAccessor = function (object, key, method) {
1260
- try {
1261
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1262
- return uncurryThis$1(aCallable(Object.getOwnPropertyDescriptor(object, key)[method]));
1263
- } catch (error) { /* empty */ }
1264
- };
1265
-
1266
- var isObject$1 = isObject$8;
1267
-
1268
- var isPossiblePrototype$1 = function (argument) {
1269
- return isObject$1(argument) || argument === null;
1270
- };
1271
-
1272
- var isPossiblePrototype = isPossiblePrototype$1;
1273
-
1274
- var $String = String;
1275
- var $TypeError = TypeError;
1276
-
1277
- var aPossiblePrototype$1 = function (argument) {
1278
- if (isPossiblePrototype(argument)) return argument;
1279
- throw new $TypeError("Can't set " + $String(argument) + ' as a prototype');
1280
- };
1281
-
1282
- /* eslint-disable no-proto -- safe */
1283
- var uncurryThisAccessor = functionUncurryThisAccessor;
1284
- var isObject = isObject$8;
1285
- var requireObjectCoercible = requireObjectCoercible$3;
1286
- var aPossiblePrototype = aPossiblePrototype$1;
1287
-
1288
- // `Object.setPrototypeOf` method
1289
- // https://tc39.es/ecma262/#sec-object.setprototypeof
1290
- // Works with __proto__ only. Old v8 can't work with null proto objects.
1291
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1292
- var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1293
- var CORRECT_SETTER = false;
1294
- var test = {};
1295
- var setter;
1296
- try {
1297
- setter = uncurryThisAccessor(Object.prototype, '__proto__', 'set');
1298
- setter(test, []);
1299
- CORRECT_SETTER = test instanceof Array;
1300
- } catch (error) { /* empty */ }
1301
- return function setPrototypeOf(O, proto) {
1302
- requireObjectCoercible(O);
1303
- aPossiblePrototype(proto);
1304
- if (!isObject(O)) return O;
1305
- if (CORRECT_SETTER) setter(O, proto);
1306
- else O.__proto__ = proto;
1307
- return O;
1308
- };
1309
- }() : undefined);
1310
-
1311
- var $$1 = _export;
1312
- var call$1 = functionCall;
1313
- var FunctionName = functionName;
1314
- var isCallable = isCallable$d;
1315
- var createIteratorConstructor = iteratorCreateConstructor;
1316
- var getPrototypeOf = objectGetPrototypeOf;
1317
- var setPrototypeOf = objectSetPrototypeOf;
1318
- var setToStringTag$1 = setToStringTag$3;
1319
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$4;
1320
- var defineBuiltIn = defineBuiltIn$3;
1321
- var wellKnownSymbol$1 = wellKnownSymbol$6;
1322
- var Iterators$1 = iterators;
1323
- var IteratorsCore = iteratorsCore;
1324
-
1325
- var PROPER_FUNCTION_NAME = FunctionName.PROPER;
1326
- var CONFIGURABLE_FUNCTION_NAME = FunctionName.CONFIGURABLE;
1327
- var IteratorPrototype = IteratorsCore.IteratorPrototype;
1328
- var BUGGY_SAFARI_ITERATORS = IteratorsCore.BUGGY_SAFARI_ITERATORS;
1329
- var ITERATOR$1 = wellKnownSymbol$1('iterator');
1330
- var KEYS = 'keys';
1331
- var VALUES = 'values';
1332
- var ENTRIES = 'entries';
1333
-
1334
- var returnThis = function () { return this; };
1335
-
1336
- var iteratorDefine = function (Iterable, NAME, IteratorConstructor, next, DEFAULT, IS_SET, FORCED) {
1337
- createIteratorConstructor(IteratorConstructor, NAME, next);
1338
-
1339
- var getIterationMethod = function (KIND) {
1340
- if (KIND === DEFAULT && defaultIterator) return defaultIterator;
1341
- if (!BUGGY_SAFARI_ITERATORS && KIND && KIND in IterablePrototype) return IterablePrototype[KIND];
1342
-
1343
- switch (KIND) {
1344
- case KEYS: return function keys() { return new IteratorConstructor(this, KIND); };
1345
- case VALUES: return function values() { return new IteratorConstructor(this, KIND); };
1346
- case ENTRIES: return function entries() { return new IteratorConstructor(this, KIND); };
1347
- }
1348
-
1349
- return function () { return new IteratorConstructor(this); };
1350
- };
1351
-
1352
- var TO_STRING_TAG = NAME + ' Iterator';
1353
- var INCORRECT_VALUES_NAME = false;
1354
- var IterablePrototype = Iterable.prototype;
1355
- var nativeIterator = IterablePrototype[ITERATOR$1]
1356
- || IterablePrototype['@@iterator']
1357
- || DEFAULT && IterablePrototype[DEFAULT];
1358
- var defaultIterator = !BUGGY_SAFARI_ITERATORS && nativeIterator || getIterationMethod(DEFAULT);
1359
- var anyNativeIterator = NAME === 'Array' ? IterablePrototype.entries || nativeIterator : nativeIterator;
1360
- var CurrentIteratorPrototype, methods, KEY;
1361
-
1362
- // fix native
1363
- if (anyNativeIterator) {
1364
- CurrentIteratorPrototype = getPrototypeOf(anyNativeIterator.call(new Iterable()));
1365
- if (CurrentIteratorPrototype !== Object.prototype && CurrentIteratorPrototype.next) {
1366
- if (getPrototypeOf(CurrentIteratorPrototype) !== IteratorPrototype) {
1367
- if (setPrototypeOf) {
1368
- setPrototypeOf(CurrentIteratorPrototype, IteratorPrototype);
1369
- } else if (!isCallable(CurrentIteratorPrototype[ITERATOR$1])) {
1370
- defineBuiltIn(CurrentIteratorPrototype, ITERATOR$1, returnThis);
1371
- }
1372
- }
1373
- // Set @@toStringTag to native iterators
1374
- setToStringTag$1(CurrentIteratorPrototype, TO_STRING_TAG, true);
1375
- }
1376
- }
1377
-
1378
- // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
1379
- if (PROPER_FUNCTION_NAME && DEFAULT === VALUES && nativeIterator && nativeIterator.name !== VALUES) {
1380
- if (CONFIGURABLE_FUNCTION_NAME) {
1381
- createNonEnumerableProperty$1(IterablePrototype, 'name', VALUES);
1382
- } else {
1383
- INCORRECT_VALUES_NAME = true;
1384
- defaultIterator = function values() { return call$1(nativeIterator, this); };
1385
- }
1386
- }
1387
-
1388
- // export additional methods
1389
- if (DEFAULT) {
1390
- methods = {
1391
- values: getIterationMethod(VALUES),
1392
- keys: IS_SET ? defaultIterator : getIterationMethod(KEYS),
1393
- entries: getIterationMethod(ENTRIES)
1394
- };
1395
- if (FORCED) for (KEY in methods) {
1396
- if (BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME || !(KEY in IterablePrototype)) {
1397
- defineBuiltIn(IterablePrototype, KEY, methods[KEY]);
1398
- }
1399
- } else $$1({ target: NAME, proto: true, forced: BUGGY_SAFARI_ITERATORS || INCORRECT_VALUES_NAME }, methods);
1400
- }
1401
-
1402
- // define iterator
1403
- if (IterablePrototype[ITERATOR$1] !== defaultIterator) {
1404
- defineBuiltIn(IterablePrototype, ITERATOR$1, defaultIterator, { name: DEFAULT });
1405
- }
1406
- Iterators$1[NAME] = defaultIterator;
1407
-
1408
- return methods;
1409
- };
1063
+ var internalObjectKeys = objectKeysInternal;
1064
+ var enumBugKeys = enumBugKeys$2;
1410
1065
 
1411
- // `CreateIterResultObject` abstract operation
1412
- // https://tc39.es/ecma262/#sec-createiterresultobject
1413
- var createIterResultObject$1 = function (value, done) {
1414
- return { value: value, done: done };
1066
+ // `Object.keys` method
1067
+ // https://tc39.es/ecma262/#sec-object.keys
1068
+ // eslint-disable-next-line es/no-object-keys -- safe
1069
+ var objectKeys$1 = Object.keys || function keys(O) {
1070
+ return internalObjectKeys(O, enumBugKeys);
1415
1071
  };
1416
1072
 
1417
- var toIndexedObject = toIndexedObject$5;
1418
- var addToUnscopables = addToUnscopables$1;
1419
- var Iterators = iterators;
1420
- var InternalStateModule = internalState;
1421
- var defineProperty$1 = objectDefineProperty.f;
1422
- var defineIterator = iteratorDefine;
1423
- var createIterResultObject = createIterResultObject$1;
1424
- var DESCRIPTORS$1 = descriptors;
1425
-
1426
- var ARRAY_ITERATOR = 'Array Iterator';
1427
- var setInternalState = InternalStateModule.set;
1428
- var getInternalState = InternalStateModule.getterFor(ARRAY_ITERATOR);
1429
-
1430
- // `Array.prototype.entries` method
1431
- // https://tc39.es/ecma262/#sec-array.prototype.entries
1432
- // `Array.prototype.keys` method
1433
- // https://tc39.es/ecma262/#sec-array.prototype.keys
1434
- // `Array.prototype.values` method
1435
- // https://tc39.es/ecma262/#sec-array.prototype.values
1436
- // `Array.prototype[@@iterator]` method
1437
- // https://tc39.es/ecma262/#sec-array.prototype-@@iterator
1438
- // `CreateArrayIterator` internal method
1439
- // https://tc39.es/ecma262/#sec-createarrayiterator
1440
- var es_array_iterator = defineIterator(Array, 'Array', function (iterated, kind) {
1441
- setInternalState(this, {
1442
- type: ARRAY_ITERATOR,
1443
- target: toIndexedObject(iterated), // target
1444
- index: 0, // next index
1445
- kind: kind // kind
1446
- });
1447
- // `%ArrayIteratorPrototype%.next` method
1448
- // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
1449
- }, function () {
1450
- var state = getInternalState(this);
1451
- var target = state.target;
1452
- var index = state.index++;
1453
- if (!target || index >= target.length) {
1454
- state.target = null;
1455
- return createIterResultObject(undefined, true);
1456
- }
1457
- switch (state.kind) {
1458
- case 'keys': return createIterResultObject(index, false);
1459
- case 'values': return createIterResultObject(target[index], false);
1460
- } return createIterResultObject([index, target[index]], false);
1461
- }, 'values');
1462
-
1463
- // argumentsList[@@iterator] is %ArrayProto_values%
1464
- // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
1465
- // https://tc39.es/ecma262/#sec-createmappedargumentsobject
1466
- var values = Iterators.Arguments = Iterators.Array;
1467
-
1468
- // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1469
- addToUnscopables('keys');
1470
- addToUnscopables('values');
1471
- addToUnscopables('entries');
1472
-
1473
- // V8 ~ Chrome 45- bug
1474
- if (DESCRIPTORS$1 && values.name !== 'values') try {
1475
- defineProperty$1(values, 'name', { value: 'values' });
1476
- } catch (error) { /* empty */ }
1477
-
1478
1073
  var DESCRIPTORS = descriptors;
1479
1074
  var uncurryThis = functionUncurryThis;
1480
1075
  var call = functionCall;
1481
- var fails = fails$b;
1482
- var objectKeys = objectKeys$2;
1076
+ var fails = fails$9;
1077
+ var objectKeys = objectKeys$1;
1483
1078
  var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
1484
1079
  var propertyIsEnumerableModule = objectPropertyIsEnumerable;
1485
- var toObject = toObject$3;
1080
+ var toObject = toObject$2;
1486
1081
  var IndexedObject = indexedObject;
1487
1082
 
1488
1083
  // eslint-disable-next-line es/no-object-assign -- safe
@@ -1543,189 +1138,63 @@ $({ target: 'Object', stat: true, arity: 2, forced: Object.assign !== assign },
1543
1138
  assign: assign
1544
1139
  });
1545
1140
 
1546
- // iterable DOM collections
1547
- // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
1548
- var domIterables = {
1549
- CSSRuleList: 0,
1550
- CSSStyleDeclaration: 0,
1551
- CSSValueList: 0,
1552
- ClientRectList: 0,
1553
- DOMRectList: 0,
1554
- DOMStringList: 0,
1555
- DOMTokenList: 1,
1556
- DataTransferItemList: 0,
1557
- FileList: 0,
1558
- HTMLAllCollection: 0,
1559
- HTMLCollection: 0,
1560
- HTMLFormElement: 0,
1561
- HTMLSelectElement: 0,
1562
- MediaList: 0,
1563
- MimeTypeArray: 0,
1564
- NamedNodeMap: 0,
1565
- NodeList: 1,
1566
- PaintRequestList: 0,
1567
- Plugin: 0,
1568
- PluginArray: 0,
1569
- SVGLengthList: 0,
1570
- SVGNumberList: 0,
1571
- SVGPathSegList: 0,
1572
- SVGPointList: 0,
1573
- SVGStringList: 0,
1574
- SVGTransformList: 0,
1575
- SourceBufferList: 0,
1576
- StyleSheetList: 0,
1577
- TextTrackCueList: 0,
1578
- TextTrackList: 0,
1579
- TouchList: 0
1580
- };
1581
-
1582
- // in old WebKit versions, `element.classList` is not an instance of global `DOMTokenList`
1583
- var documentCreateElement = documentCreateElement$2;
1584
-
1585
- var classList = documentCreateElement('span').classList;
1586
- var DOMTokenListPrototype$1 = classList && classList.constructor && classList.constructor.prototype;
1587
-
1588
- var domTokenListPrototype = DOMTokenListPrototype$1 === Object.prototype ? undefined : DOMTokenListPrototype$1;
1589
-
1590
- var globalThis$1 = globalThis_1;
1591
- var DOMIterables = domIterables;
1592
- var DOMTokenListPrototype = domTokenListPrototype;
1593
- var ArrayIteratorMethods = es_array_iterator;
1594
- var createNonEnumerableProperty = createNonEnumerableProperty$4;
1595
- var setToStringTag = setToStringTag$3;
1596
- var wellKnownSymbol = wellKnownSymbol$6;
1597
-
1598
- var ITERATOR = wellKnownSymbol('iterator');
1599
- var ArrayValues = ArrayIteratorMethods.values;
1600
-
1601
- var handlePrototype = function (CollectionPrototype, COLLECTION_NAME) {
1602
- if (CollectionPrototype) {
1603
- // some Chrome versions have non-configurable methods on DOMTokenList
1604
- if (CollectionPrototype[ITERATOR] !== ArrayValues) try {
1605
- createNonEnumerableProperty(CollectionPrototype, ITERATOR, ArrayValues);
1606
- } catch (error) {
1607
- CollectionPrototype[ITERATOR] = ArrayValues;
1608
- }
1609
- setToStringTag(CollectionPrototype, COLLECTION_NAME, true);
1610
- if (DOMIterables[COLLECTION_NAME]) for (var METHOD_NAME in ArrayIteratorMethods) {
1611
- // some Chrome versions have non-configurable methods on DOMTokenList
1612
- if (CollectionPrototype[METHOD_NAME] !== ArrayIteratorMethods[METHOD_NAME]) try {
1613
- createNonEnumerableProperty(CollectionPrototype, METHOD_NAME, ArrayIteratorMethods[METHOD_NAME]);
1614
- } catch (error) {
1615
- CollectionPrototype[METHOD_NAME] = ArrayIteratorMethods[METHOD_NAME];
1616
- }
1617
- }
1618
- }
1619
- };
1620
-
1621
- for (var COLLECTION_NAME in DOMIterables) {
1622
- handlePrototype(globalThis$1[COLLECTION_NAME] && globalThis$1[COLLECTION_NAME].prototype, COLLECTION_NAME);
1623
- }
1624
-
1625
- handlePrototype(DOMTokenListPrototype, 'DOMTokenList');
1626
-
1627
- /* @ts-self-types="./index.d.ts" */
1628
- let urlAlphabet =
1629
- 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
1630
- let nanoid = (size = 21) => {
1631
- let id = '';
1632
- let i = size | 0;
1633
- while (i--) {
1634
- id += urlAlphabet[(Math.random() * 64) | 0];
1635
- }
1636
- return id
1637
- };
1638
-
1639
- const appId = 'kaltura-apps-genie-chat';
1640
- const GenieChatProvider = ({
1641
- children,
1642
- runtimeSettings,
1643
- lang: _lang = 'en',
1644
- theme: _theme = 'light',
1645
- env: _env = 'nvp1',
1646
- runtimeErrorComponent
1647
- }) => {
1648
- const [workspace, setWorkspace] = React.useState(null);
1649
- const workspaceName = useMemo(() => {
1650
- return `${appId}-${nanoid()}`;
1651
- }, []);
1652
- const initialConfiguration = useMemo(() => {
1653
- return {
1654
- appId: appId,
1655
- workspaceName: workspaceName,
1656
- appVersion: '0.0.0',
1657
- serverUrl: `https://unisphere.${_env}.ovp.kaltura.com/v1`
1658
- };
1659
- }, [_env, workspaceName]);
1660
- const [runtimeError, setRuntimeError] = React.useState(null);
1661
- const themeProps = useMemo(() => {
1662
- if (typeof _theme === 'object') {
1663
- return {
1664
- kalturaTheme: _theme
1665
- };
1666
- }
1667
- return {
1668
- themeMode: _theme
1669
- };
1670
- }, [_theme]);
1671
- if (!runtimeSettings) {
1672
- return null;
1673
- }
1674
- if (runtimeError) {
1675
- return runtimeErrorComponent !== null && runtimeErrorComponent !== void 0 ? runtimeErrorComponent : jsxs("div", {
1676
- style: {
1677
- color: 'red',
1678
- padding: '1rem',
1679
- width: '100%',
1680
- height: '100%',
1681
- textAlign: 'center',
1682
- maxWidth: '25rem'
1683
- },
1684
- children: [jsx("p", {
1685
- children: jsx("b", {
1686
- children: "Error loading chat runtime"
1687
- })
1688
- }), jsx("p", {
1689
- children: "Try again later"
1690
- })]
1691
- });
1692
- }
1693
- return jsx(UnisphereProvider, Object.assign({}, themeProps, {
1694
- language: _lang,
1695
- initialConfiguration: initialConfiguration,
1696
- onWorkspaceLoaded: setWorkspace,
1697
- children: workspace && jsxs(ScopedUnisphereWorkspaceProvider, {
1698
- unisphereWorkspace: workspace,
1699
- runtimeLogger: workspace.getLogger(appId),
1700
- children: [jsx(UnisphereRuntimeLoader, {
1701
- runtimeName: "chat",
1702
- widgetName: "unisphere.widget.genie",
1703
- runtimeSettings: runtimeSettings,
1704
- workspaceName: workspace.getWorkspaceName(),
1705
- onRuntimeError: setRuntimeError
1706
- }), children]
1707
- })
1708
- }));
1709
- };
1710
-
1141
+ /**
1142
+ * Standalone Genie chat component with page visual display.
1143
+ *
1144
+ * This component provides a complete chat interface in page mode,
1145
+ * rendering the chat visual with customizable settings and appearance.
1146
+ * Use this for embedding chat directly in your application pages.
1147
+ *
1148
+ * @example
1149
+ * Basic usage:
1150
+ * ```tsx
1151
+ * <GenieChat />
1152
+ * ```
1153
+ *
1154
+ * @example
1155
+ * With custom settings and styling:
1156
+ * ```tsx
1157
+ * <GenieChat
1158
+ * settings={{
1159
+ * customization: {
1160
+ * scroll: 'container',
1161
+ * theme: { translucent: true }
1162
+ * }
1163
+ * }}
1164
+ * style={{ maxWidth: '800px', margin: '0 auto' }}
1165
+ * />
1166
+ * ```
1167
+ *
1168
+ * @example
1169
+ * With custom loading and error components:
1170
+ * ```tsx
1171
+ * <GenieChat
1172
+ * loadingComponent={<CustomSpinner />}
1173
+ * errorComponent={<CustomError />}
1174
+ * style={{ height: '600px' }}
1175
+ * />
1176
+ * ```
1177
+ *
1178
+ * @param settings - Page visual settings for customizing chat behavior
1179
+ * @param initialSettings - Initial visual settings loaded before runtime
1180
+ * @param loadingComponent - Custom component to show while chat is loading
1181
+ * @param errorComponent - Custom component to show when chat errors occur
1182
+ * @param style - Custom CSS styles to apply to the chat container
1183
+ * @returns JSX element rendering the Genie chat interface
1184
+ */
1711
1185
  const GenieChat = ({
1712
1186
  style,
1713
1187
  settings,
1714
- initialSettings
1188
+ initialSettings,
1189
+ loadingComponent,
1190
+ errorComponent
1715
1191
  }) => {
1716
- const {
1717
- unisphereWorkspace
1718
- } = useContext(ScopedUnisphereWorkspaceContext);
1719
- if (!unisphereWorkspace) {
1720
- return null;
1721
- }
1722
- return jsx(UnisphereRuntimeVisual, {
1723
- widgetName: "unisphere.widget.genie",
1724
- runtimeName: "chat",
1192
+ return jsx(GenieChatVisual, {
1725
1193
  visualType: "page",
1726
1194
  visualSettings: settings,
1727
1195
  initialVisualSettings: initialSettings,
1728
- workspaceName: unisphereWorkspace === null || unisphereWorkspace === void 0 ? void 0 : unisphereWorkspace.getWorkspaceName(),
1196
+ loadingComponent: loadingComponent,
1197
+ errorComponent: errorComponent,
1729
1198
  style: Object.assign({
1730
1199
  width: '100%',
1731
1200
  height: 'auto',
@@ -1735,4 +1204,4 @@ const GenieChat = ({
1735
1204
  });
1736
1205
  };
1737
1206
 
1738
- export { GenieChat, GenieChatProvider };
1207
+ export { GenieChat, GenieChatProvider, GenieChatSandboxContext, GenieChatVisual };