@skatteetaten/ds-overlays 0.7.0 → 0.8.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.
@@ -1,3 +1,4 @@
1
+ import '../es.string.trim-9652bb40.js';
1
2
  import { jsx, jsxs } from 'react/jsx-runtime';
2
3
  import { forwardRef, useId, useRef, useImperativeHandle, useEffect } from 'react';
3
4
  import { useTranslation } from 'react-i18next';
@@ -8,1124 +9,6 @@ import { Heading } from '@skatteetaten/ds-typography';
8
9
  import './styles.css';
9
10
 
10
11
 
11
- var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
12
-
13
- var check = function (it) {
14
- return it && it.Math === Math && it;
15
- };
16
-
17
- // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
18
- var global$b =
19
- // eslint-disable-next-line es/no-global-this -- safe
20
- check(typeof globalThis == 'object' && globalThis) ||
21
- check(typeof window == 'object' && window) ||
22
- // eslint-disable-next-line no-restricted-globals -- safe
23
- check(typeof self == 'object' && self) ||
24
- check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
25
- // eslint-disable-next-line no-new-func -- fallback
26
- (function () { return this; })() || commonjsGlobal || Function('return this')();
27
-
28
- var objectGetOwnPropertyDescriptor = {};
29
-
30
- var fails$9 = function (exec) {
31
- try {
32
- return !!exec();
33
- } catch (error) {
34
- return true;
35
- }
36
- };
37
-
38
- var fails$8 = fails$9;
39
-
40
- // Detect IE8's incomplete defineProperty implementation
41
- var descriptors = !fails$8(function () {
42
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
43
- return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] !== 7;
44
- });
45
-
46
- var fails$7 = fails$9;
47
-
48
- var functionBindNative = !fails$7(function () {
49
- // eslint-disable-next-line es/no-function-prototype-bind -- safe
50
- var test = (function () { /* empty */ }).bind();
51
- // eslint-disable-next-line no-prototype-builtins -- safe
52
- return typeof test != 'function' || test.hasOwnProperty('prototype');
53
- });
54
-
55
- var NATIVE_BIND$1 = functionBindNative;
56
-
57
- var call$4 = Function.prototype.call;
58
-
59
- var functionCall = NATIVE_BIND$1 ? call$4.bind(call$4) : function () {
60
- return call$4.apply(call$4, arguments);
61
- };
62
-
63
- var objectPropertyIsEnumerable = {};
64
-
65
- var $propertyIsEnumerable = {}.propertyIsEnumerable;
66
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
67
- var getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
68
-
69
- // Nashorn ~ JDK8 bug
70
- var NASHORN_BUG = getOwnPropertyDescriptor$1 && !$propertyIsEnumerable.call({ 1: 2 }, 1);
71
-
72
- // `Object.prototype.propertyIsEnumerable` method implementation
73
- // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
74
- objectPropertyIsEnumerable.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
75
- var descriptor = getOwnPropertyDescriptor$1(this, V);
76
- return !!descriptor && descriptor.enumerable;
77
- } : $propertyIsEnumerable;
78
-
79
- var createPropertyDescriptor$2 = function (bitmap, value) {
80
- return {
81
- enumerable: !(bitmap & 1),
82
- configurable: !(bitmap & 2),
83
- writable: !(bitmap & 4),
84
- value: value
85
- };
86
- };
87
-
88
- var NATIVE_BIND = functionBindNative;
89
-
90
- var FunctionPrototype$1 = Function.prototype;
91
- var call$3 = FunctionPrototype$1.call;
92
- var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype$1.bind.bind(call$3, call$3);
93
-
94
- var functionUncurryThis = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
95
- return function () {
96
- return call$3.apply(fn, arguments);
97
- };
98
- };
99
-
100
- var uncurryThis$9 = functionUncurryThis;
101
-
102
- var toString$3 = uncurryThis$9({}.toString);
103
- var stringSlice$1 = uncurryThis$9(''.slice);
104
-
105
- var classofRaw$1 = function (it) {
106
- return stringSlice$1(toString$3(it), 8, -1);
107
- };
108
-
109
- var uncurryThis$8 = functionUncurryThis;
110
- var fails$6 = fails$9;
111
- var classof$2 = classofRaw$1;
112
-
113
- var $Object$3 = Object;
114
- var split = uncurryThis$8(''.split);
115
-
116
- // fallback for non-array-like ES3 and non-enumerable old V8 strings
117
- var indexedObject = fails$6(function () {
118
- // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
119
- // eslint-disable-next-line no-prototype-builtins -- safe
120
- return !$Object$3('z').propertyIsEnumerable(0);
121
- }) ? function (it) {
122
- return classof$2(it) === 'String' ? split(it, '') : $Object$3(it);
123
- } : $Object$3;
124
-
125
- // we can't use just `it == null` since of `document.all` special case
126
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot-aec
127
- var isNullOrUndefined$2 = function (it) {
128
- return it === null || it === undefined;
129
- };
130
-
131
- var isNullOrUndefined$1 = isNullOrUndefined$2;
132
-
133
- var $TypeError$5 = TypeError;
134
-
135
- // `RequireObjectCoercible` abstract operation
136
- // https://tc39.es/ecma262/#sec-requireobjectcoercible
137
- var requireObjectCoercible$3 = function (it) {
138
- if (isNullOrUndefined$1(it)) throw $TypeError$5("Can't call method on " + it);
139
- return it;
140
- };
141
-
142
- // toObject with fallback for non-array-like ES3 strings
143
- var IndexedObject = indexedObject;
144
- var requireObjectCoercible$2 = requireObjectCoercible$3;
145
-
146
- var toIndexedObject$3 = function (it) {
147
- return IndexedObject(requireObjectCoercible$2(it));
148
- };
149
-
150
- var documentAll$2 = typeof document == 'object' && document.all;
151
-
152
- // https://tc39.es/ecma262/#sec-IsHTMLDDA-internal-slot
153
- // eslint-disable-next-line unicorn/no-typeof-undefined -- required for testing
154
- var IS_HTMLDDA = typeof documentAll$2 == 'undefined' && documentAll$2 !== undefined;
155
-
156
- var documentAll_1 = {
157
- all: documentAll$2,
158
- IS_HTMLDDA: IS_HTMLDDA
159
- };
160
-
161
- var $documentAll$1 = documentAll_1;
162
-
163
- var documentAll$1 = $documentAll$1.all;
164
-
165
- // `IsCallable` abstract operation
166
- // https://tc39.es/ecma262/#sec-iscallable
167
- var isCallable$b = $documentAll$1.IS_HTMLDDA ? function (argument) {
168
- return typeof argument == 'function' || argument === documentAll$1;
169
- } : function (argument) {
170
- return typeof argument == 'function';
171
- };
172
-
173
- var isCallable$a = isCallable$b;
174
- var $documentAll = documentAll_1;
175
-
176
- var documentAll = $documentAll.all;
177
-
178
- var isObject$5 = $documentAll.IS_HTMLDDA ? function (it) {
179
- return typeof it == 'object' ? it !== null : isCallable$a(it) || it === documentAll;
180
- } : function (it) {
181
- return typeof it == 'object' ? it !== null : isCallable$a(it);
182
- };
183
-
184
- var global$a = global$b;
185
- var isCallable$9 = isCallable$b;
186
-
187
- var aFunction = function (argument) {
188
- return isCallable$9(argument) ? argument : undefined;
189
- };
190
-
191
- var getBuiltIn$2 = function (namespace, method) {
192
- return arguments.length < 2 ? aFunction(global$a[namespace]) : global$a[namespace] && global$a[namespace][method];
193
- };
194
-
195
- var uncurryThis$7 = functionUncurryThis;
196
-
197
- var objectIsPrototypeOf = uncurryThis$7({}.isPrototypeOf);
198
-
199
- var engineUserAgent = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
200
-
201
- var global$9 = global$b;
202
- var userAgent = engineUserAgent;
203
-
204
- var process = global$9.process;
205
- var Deno = global$9.Deno;
206
- var versions = process && process.versions || Deno && Deno.version;
207
- var v8 = versions && versions.v8;
208
- var match, version;
209
-
210
- if (v8) {
211
- match = v8.split('.');
212
- // in old Chrome, versions of V8 isn't V8 = Chrome / 10
213
- // but their correct versions are not interesting for us
214
- version = match[0] > 0 && match[0] < 4 ? 1 : +(match[0] + match[1]);
215
- }
216
-
217
- // BrowserFS NodeJS `process` polyfill incorrectly set `.v8` to `0.0`
218
- // so check `userAgent` even if `.v8` exists, but 0
219
- if (!version && userAgent) {
220
- match = userAgent.match(/Edge\/(\d+)/);
221
- if (!match || match[1] >= 74) {
222
- match = userAgent.match(/Chrome\/(\d+)/);
223
- if (match) version = +match[1];
224
- }
225
- }
226
-
227
- var engineV8Version = version;
228
-
229
- /* eslint-disable es/no-symbol -- required for testing */
230
- var V8_VERSION = engineV8Version;
231
- var fails$5 = fails$9;
232
- var global$8 = global$b;
233
-
234
- var $String$4 = global$8.String;
235
-
236
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
237
- var symbolConstructorDetection = !!Object.getOwnPropertySymbols && !fails$5(function () {
238
- var symbol = Symbol('symbol detection');
239
- // Chrome 38 Symbol has incorrect toString conversion
240
- // `get-own-property-symbols` polyfill symbols converted to object are not Symbol instances
241
- // nb: Do not call `String` directly to avoid this being optimized out to `symbol+''` which will,
242
- // of course, fail.
243
- return !$String$4(symbol) || !(Object(symbol) instanceof Symbol) ||
244
- // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
245
- !Symbol.sham && V8_VERSION && V8_VERSION < 41;
246
- });
247
-
248
- /* eslint-disable es/no-symbol -- required for testing */
249
- var NATIVE_SYMBOL$1 = symbolConstructorDetection;
250
-
251
- var useSymbolAsUid = NATIVE_SYMBOL$1
252
- && !Symbol.sham
253
- && typeof Symbol.iterator == 'symbol';
254
-
255
- var getBuiltIn$1 = getBuiltIn$2;
256
- var isCallable$8 = isCallable$b;
257
- var isPrototypeOf = objectIsPrototypeOf;
258
- var USE_SYMBOL_AS_UID$1 = useSymbolAsUid;
259
-
260
- var $Object$2 = Object;
261
-
262
- var isSymbol$2 = USE_SYMBOL_AS_UID$1 ? function (it) {
263
- return typeof it == 'symbol';
264
- } : function (it) {
265
- var $Symbol = getBuiltIn$1('Symbol');
266
- return isCallable$8($Symbol) && isPrototypeOf($Symbol.prototype, $Object$2(it));
267
- };
268
-
269
- var $String$3 = String;
270
-
271
- var tryToString$1 = function (argument) {
272
- try {
273
- return $String$3(argument);
274
- } catch (error) {
275
- return 'Object';
276
- }
277
- };
278
-
279
- var isCallable$7 = isCallable$b;
280
- var tryToString = tryToString$1;
281
-
282
- var $TypeError$4 = TypeError;
283
-
284
- // `Assert: IsCallable(argument) is true`
285
- var aCallable$1 = function (argument) {
286
- if (isCallable$7(argument)) return argument;
287
- throw $TypeError$4(tryToString(argument) + ' is not a function');
288
- };
289
-
290
- var aCallable = aCallable$1;
291
- var isNullOrUndefined = isNullOrUndefined$2;
292
-
293
- // `GetMethod` abstract operation
294
- // https://tc39.es/ecma262/#sec-getmethod
295
- var getMethod$1 = function (V, P) {
296
- var func = V[P];
297
- return isNullOrUndefined(func) ? undefined : aCallable(func);
298
- };
299
-
300
- var call$2 = functionCall;
301
- var isCallable$6 = isCallable$b;
302
- var isObject$4 = isObject$5;
303
-
304
- var $TypeError$3 = TypeError;
305
-
306
- // `OrdinaryToPrimitive` abstract operation
307
- // https://tc39.es/ecma262/#sec-ordinarytoprimitive
308
- var ordinaryToPrimitive$1 = function (input, pref) {
309
- var fn, val;
310
- if (pref === 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
311
- if (isCallable$6(fn = input.valueOf) && !isObject$4(val = call$2(fn, input))) return val;
312
- if (pref !== 'string' && isCallable$6(fn = input.toString) && !isObject$4(val = call$2(fn, input))) return val;
313
- throw $TypeError$3("Can't convert object to primitive value");
314
- };
315
-
316
- var shared$3 = {exports: {}};
317
-
318
- var global$7 = global$b;
319
-
320
- // eslint-disable-next-line es/no-object-defineproperty -- safe
321
- var defineProperty$1 = Object.defineProperty;
322
-
323
- var defineGlobalProperty$3 = function (key, value) {
324
- try {
325
- defineProperty$1(global$7, key, { value: value, configurable: true, writable: true });
326
- } catch (error) {
327
- global$7[key] = value;
328
- } return value;
329
- };
330
-
331
- var global$6 = global$b;
332
- var defineGlobalProperty$2 = defineGlobalProperty$3;
333
-
334
- var SHARED = '__core-js_shared__';
335
- var store$3 = global$6[SHARED] || defineGlobalProperty$2(SHARED, {});
336
-
337
- var sharedStore = store$3;
338
-
339
- var store$2 = sharedStore;
340
-
341
- (shared$3.exports = function (key, value) {
342
- return store$2[key] || (store$2[key] = value !== undefined ? value : {});
343
- })('versions', []).push({
344
- version: '3.32.2',
345
- mode: 'global',
346
- copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
347
- license: 'https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE',
348
- source: 'https://github.com/zloirock/core-js'
349
- });
350
-
351
- var requireObjectCoercible$1 = requireObjectCoercible$3;
352
-
353
- var $Object$1 = Object;
354
-
355
- // `ToObject` abstract operation
356
- // https://tc39.es/ecma262/#sec-toobject
357
- var toObject$1 = function (argument) {
358
- return $Object$1(requireObjectCoercible$1(argument));
359
- };
360
-
361
- var uncurryThis$6 = functionUncurryThis;
362
- var toObject = toObject$1;
363
-
364
- var hasOwnProperty = uncurryThis$6({}.hasOwnProperty);
365
-
366
- // `HasOwnProperty` abstract operation
367
- // https://tc39.es/ecma262/#sec-hasownproperty
368
- // eslint-disable-next-line es/no-object-hasown -- safe
369
- var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
370
- return hasOwnProperty(toObject(it), key);
371
- };
372
-
373
- var uncurryThis$5 = functionUncurryThis;
374
-
375
- var id = 0;
376
- var postfix = Math.random();
377
- var toString$2 = uncurryThis$5(1.0.toString);
378
-
379
- var uid$2 = function (key) {
380
- return 'Symbol(' + (key === undefined ? '' : key) + ')_' + toString$2(++id + postfix, 36);
381
- };
382
-
383
- var global$5 = global$b;
384
- var shared$2 = shared$3.exports;
385
- var hasOwn$6 = hasOwnProperty_1;
386
- var uid$1 = uid$2;
387
- var NATIVE_SYMBOL = symbolConstructorDetection;
388
- var USE_SYMBOL_AS_UID = useSymbolAsUid;
389
-
390
- var Symbol$1 = global$5.Symbol;
391
- var WellKnownSymbolsStore = shared$2('wks');
392
- var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol$1['for'] || Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid$1;
393
-
394
- var wellKnownSymbol$3 = function (name) {
395
- if (!hasOwn$6(WellKnownSymbolsStore, name)) {
396
- WellKnownSymbolsStore[name] = NATIVE_SYMBOL && hasOwn$6(Symbol$1, name)
397
- ? Symbol$1[name]
398
- : createWellKnownSymbol('Symbol.' + name);
399
- } return WellKnownSymbolsStore[name];
400
- };
401
-
402
- var call$1 = functionCall;
403
- var isObject$3 = isObject$5;
404
- var isSymbol$1 = isSymbol$2;
405
- var getMethod = getMethod$1;
406
- var ordinaryToPrimitive = ordinaryToPrimitive$1;
407
- var wellKnownSymbol$2 = wellKnownSymbol$3;
408
-
409
- var $TypeError$2 = TypeError;
410
- var TO_PRIMITIVE = wellKnownSymbol$2('toPrimitive');
411
-
412
- // `ToPrimitive` abstract operation
413
- // https://tc39.es/ecma262/#sec-toprimitive
414
- var toPrimitive$1 = function (input, pref) {
415
- if (!isObject$3(input) || isSymbol$1(input)) return input;
416
- var exoticToPrim = getMethod(input, TO_PRIMITIVE);
417
- var result;
418
- if (exoticToPrim) {
419
- if (pref === undefined) pref = 'default';
420
- result = call$1(exoticToPrim, input, pref);
421
- if (!isObject$3(result) || isSymbol$1(result)) return result;
422
- throw $TypeError$2("Can't convert object to primitive value");
423
- }
424
- if (pref === undefined) pref = 'number';
425
- return ordinaryToPrimitive(input, pref);
426
- };
427
-
428
- var toPrimitive = toPrimitive$1;
429
- var isSymbol = isSymbol$2;
430
-
431
- // `ToPropertyKey` abstract operation
432
- // https://tc39.es/ecma262/#sec-topropertykey
433
- var toPropertyKey$2 = function (argument) {
434
- var key = toPrimitive(argument, 'string');
435
- return isSymbol(key) ? key : key + '';
436
- };
437
-
438
- var global$4 = global$b;
439
- var isObject$2 = isObject$5;
440
-
441
- var document$1 = global$4.document;
442
- // typeof document.createElement is 'object' in old IE
443
- var EXISTS$1 = isObject$2(document$1) && isObject$2(document$1.createElement);
444
-
445
- var documentCreateElement = function (it) {
446
- return EXISTS$1 ? document$1.createElement(it) : {};
447
- };
448
-
449
- var DESCRIPTORS$6 = descriptors;
450
- var fails$4 = fails$9;
451
- var createElement = documentCreateElement;
452
-
453
- // Thanks to IE8 for its funny defineProperty
454
- var ie8DomDefine = !DESCRIPTORS$6 && !fails$4(function () {
455
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
456
- return Object.defineProperty(createElement('div'), 'a', {
457
- get: function () { return 7; }
458
- }).a !== 7;
459
- });
460
-
461
- var DESCRIPTORS$5 = descriptors;
462
- var call = functionCall;
463
- var propertyIsEnumerableModule = objectPropertyIsEnumerable;
464
- var createPropertyDescriptor$1 = createPropertyDescriptor$2;
465
- var toIndexedObject$2 = toIndexedObject$3;
466
- var toPropertyKey$1 = toPropertyKey$2;
467
- var hasOwn$5 = hasOwnProperty_1;
468
- var IE8_DOM_DEFINE$1 = ie8DomDefine;
469
-
470
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
471
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
472
-
473
- // `Object.getOwnPropertyDescriptor` method
474
- // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
475
- objectGetOwnPropertyDescriptor.f = DESCRIPTORS$5 ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
476
- O = toIndexedObject$2(O);
477
- P = toPropertyKey$1(P);
478
- if (IE8_DOM_DEFINE$1) try {
479
- return $getOwnPropertyDescriptor$1(O, P);
480
- } catch (error) { /* empty */ }
481
- if (hasOwn$5(O, P)) return createPropertyDescriptor$1(!call(propertyIsEnumerableModule.f, O, P), O[P]);
482
- };
483
-
484
- var objectDefineProperty = {};
485
-
486
- var DESCRIPTORS$4 = descriptors;
487
- var fails$3 = fails$9;
488
-
489
- // V8 ~ Chrome 36-
490
- // https://bugs.chromium.org/p/v8/issues/detail?id=3334
491
- var v8PrototypeDefineBug = DESCRIPTORS$4 && fails$3(function () {
492
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
493
- return Object.defineProperty(function () { /* empty */ }, 'prototype', {
494
- value: 42,
495
- writable: false
496
- }).prototype !== 42;
497
- });
498
-
499
- var isObject$1 = isObject$5;
500
-
501
- var $String$2 = String;
502
- var $TypeError$1 = TypeError;
503
-
504
- // `Assert: Type(argument) is Object`
505
- var anObject$2 = function (argument) {
506
- if (isObject$1(argument)) return argument;
507
- throw $TypeError$1($String$2(argument) + ' is not an object');
508
- };
509
-
510
- var DESCRIPTORS$3 = descriptors;
511
- var IE8_DOM_DEFINE = ie8DomDefine;
512
- var V8_PROTOTYPE_DEFINE_BUG = v8PrototypeDefineBug;
513
- var anObject$1 = anObject$2;
514
- var toPropertyKey = toPropertyKey$2;
515
-
516
- var $TypeError = TypeError;
517
- // eslint-disable-next-line es/no-object-defineproperty -- safe
518
- var $defineProperty = Object.defineProperty;
519
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
520
- var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
521
- var ENUMERABLE = 'enumerable';
522
- var CONFIGURABLE$1 = 'configurable';
523
- var WRITABLE = 'writable';
524
-
525
- // `Object.defineProperty` method
526
- // https://tc39.es/ecma262/#sec-object.defineproperty
527
- objectDefineProperty.f = DESCRIPTORS$3 ? V8_PROTOTYPE_DEFINE_BUG ? function defineProperty(O, P, Attributes) {
528
- anObject$1(O);
529
- P = toPropertyKey(P);
530
- anObject$1(Attributes);
531
- if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
532
- var current = $getOwnPropertyDescriptor(O, P);
533
- if (current && current[WRITABLE]) {
534
- O[P] = Attributes.value;
535
- Attributes = {
536
- configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
537
- enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
538
- writable: false
539
- };
540
- }
541
- } return $defineProperty(O, P, Attributes);
542
- } : $defineProperty : function defineProperty(O, P, Attributes) {
543
- anObject$1(O);
544
- P = toPropertyKey(P);
545
- anObject$1(Attributes);
546
- if (IE8_DOM_DEFINE) try {
547
- return $defineProperty(O, P, Attributes);
548
- } catch (error) { /* empty */ }
549
- if ('get' in Attributes || 'set' in Attributes) throw $TypeError('Accessors not supported');
550
- if ('value' in Attributes) O[P] = Attributes.value;
551
- return O;
552
- };
553
-
554
- var DESCRIPTORS$2 = descriptors;
555
- var definePropertyModule$2 = objectDefineProperty;
556
- var createPropertyDescriptor = createPropertyDescriptor$2;
557
-
558
- var createNonEnumerableProperty$2 = DESCRIPTORS$2 ? function (object, key, value) {
559
- return definePropertyModule$2.f(object, key, createPropertyDescriptor(1, value));
560
- } : function (object, key, value) {
561
- object[key] = value;
562
- return object;
563
- };
564
-
565
- var makeBuiltIn$2 = {exports: {}};
566
-
567
- var DESCRIPTORS$1 = descriptors;
568
- var hasOwn$4 = hasOwnProperty_1;
569
-
570
- var FunctionPrototype = Function.prototype;
571
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
572
- var getDescriptor = DESCRIPTORS$1 && Object.getOwnPropertyDescriptor;
573
-
574
- var EXISTS = hasOwn$4(FunctionPrototype, 'name');
575
- // additional protection from minified / mangled / dropped function names
576
- var PROPER = EXISTS && (function something() { /* empty */ }).name === 'something';
577
- var CONFIGURABLE = EXISTS && (!DESCRIPTORS$1 || (DESCRIPTORS$1 && getDescriptor(FunctionPrototype, 'name').configurable));
578
-
579
- var functionName = {
580
- EXISTS: EXISTS,
581
- PROPER: PROPER,
582
- CONFIGURABLE: CONFIGURABLE
583
- };
584
-
585
- var uncurryThis$4 = functionUncurryThis;
586
- var isCallable$5 = isCallable$b;
587
- var store$1 = sharedStore;
588
-
589
- var functionToString = uncurryThis$4(Function.toString);
590
-
591
- // this helper broken in `core-js@3.4.1-3.4.4`, so we can't use `shared` helper
592
- if (!isCallable$5(store$1.inspectSource)) {
593
- store$1.inspectSource = function (it) {
594
- return functionToString(it);
595
- };
596
- }
597
-
598
- var inspectSource$1 = store$1.inspectSource;
599
-
600
- var global$3 = global$b;
601
- var isCallable$4 = isCallable$b;
602
-
603
- var WeakMap$1 = global$3.WeakMap;
604
-
605
- var weakMapBasicDetection = isCallable$4(WeakMap$1) && /native code/.test(String(WeakMap$1));
606
-
607
- var shared$1 = shared$3.exports;
608
- var uid = uid$2;
609
-
610
- var keys = shared$1('keys');
611
-
612
- var sharedKey$1 = function (key) {
613
- return keys[key] || (keys[key] = uid(key));
614
- };
615
-
616
- var hiddenKeys$3 = {};
617
-
618
- var NATIVE_WEAK_MAP = weakMapBasicDetection;
619
- var global$2 = global$b;
620
- var isObject = isObject$5;
621
- var createNonEnumerableProperty$1 = createNonEnumerableProperty$2;
622
- var hasOwn$3 = hasOwnProperty_1;
623
- var shared = sharedStore;
624
- var sharedKey = sharedKey$1;
625
- var hiddenKeys$2 = hiddenKeys$3;
626
-
627
- var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
628
- var TypeError$1 = global$2.TypeError;
629
- var WeakMap = global$2.WeakMap;
630
- var set, get, has;
631
-
632
- var enforce = function (it) {
633
- return has(it) ? get(it) : set(it, {});
634
- };
635
-
636
- var getterFor = function (TYPE) {
637
- return function (it) {
638
- var state;
639
- if (!isObject(it) || (state = get(it)).type !== TYPE) {
640
- throw TypeError$1('Incompatible receiver, ' + TYPE + ' required');
641
- } return state;
642
- };
643
- };
644
-
645
- if (NATIVE_WEAK_MAP || shared.state) {
646
- var store = shared.state || (shared.state = new WeakMap());
647
- /* eslint-disable no-self-assign -- prototype methods protection */
648
- store.get = store.get;
649
- store.has = store.has;
650
- store.set = store.set;
651
- /* eslint-enable no-self-assign -- prototype methods protection */
652
- set = function (it, metadata) {
653
- if (store.has(it)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
654
- metadata.facade = it;
655
- store.set(it, metadata);
656
- return metadata;
657
- };
658
- get = function (it) {
659
- return store.get(it) || {};
660
- };
661
- has = function (it) {
662
- return store.has(it);
663
- };
664
- } else {
665
- var STATE = sharedKey('state');
666
- hiddenKeys$2[STATE] = true;
667
- set = function (it, metadata) {
668
- if (hasOwn$3(it, STATE)) throw TypeError$1(OBJECT_ALREADY_INITIALIZED);
669
- metadata.facade = it;
670
- createNonEnumerableProperty$1(it, STATE, metadata);
671
- return metadata;
672
- };
673
- get = function (it) {
674
- return hasOwn$3(it, STATE) ? it[STATE] : {};
675
- };
676
- has = function (it) {
677
- return hasOwn$3(it, STATE);
678
- };
679
- }
680
-
681
- var internalState = {
682
- set: set,
683
- get: get,
684
- has: has,
685
- enforce: enforce,
686
- getterFor: getterFor
687
- };
688
-
689
- var uncurryThis$3 = functionUncurryThis;
690
- var fails$2 = fails$9;
691
- var isCallable$3 = isCallable$b;
692
- var hasOwn$2 = hasOwnProperty_1;
693
- var DESCRIPTORS = descriptors;
694
- var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
695
- var inspectSource = inspectSource$1;
696
- var InternalStateModule = internalState;
697
-
698
- var enforceInternalState = InternalStateModule.enforce;
699
- var getInternalState = InternalStateModule.get;
700
- var $String$1 = String;
701
- // eslint-disable-next-line es/no-object-defineproperty -- safe
702
- var defineProperty = Object.defineProperty;
703
- var stringSlice = uncurryThis$3(''.slice);
704
- var replace$1 = uncurryThis$3(''.replace);
705
- var join = uncurryThis$3([].join);
706
-
707
- var CONFIGURABLE_LENGTH = DESCRIPTORS && !fails$2(function () {
708
- return defineProperty(function () { /* empty */ }, 'length', { value: 8 }).length !== 8;
709
- });
710
-
711
- var TEMPLATE = String(String).split('String');
712
-
713
- var makeBuiltIn$1 = makeBuiltIn$2.exports = function (value, name, options) {
714
- if (stringSlice($String$1(name), 0, 7) === 'Symbol(') {
715
- name = '[' + replace$1($String$1(name), /^Symbol\(([^)]*)\)/, '$1') + ']';
716
- }
717
- if (options && options.getter) name = 'get ' + name;
718
- if (options && options.setter) name = 'set ' + name;
719
- if (!hasOwn$2(value, 'name') || (CONFIGURABLE_FUNCTION_NAME && value.name !== name)) {
720
- if (DESCRIPTORS) defineProperty(value, 'name', { value: name, configurable: true });
721
- else value.name = name;
722
- }
723
- if (CONFIGURABLE_LENGTH && options && hasOwn$2(options, 'arity') && value.length !== options.arity) {
724
- defineProperty(value, 'length', { value: options.arity });
725
- }
726
- try {
727
- if (options && hasOwn$2(options, 'constructor') && options.constructor) {
728
- if (DESCRIPTORS) defineProperty(value, 'prototype', { writable: false });
729
- // in V8 ~ Chrome 53, prototypes of some methods, like `Array.prototype.values`, are non-writable
730
- } else if (value.prototype) value.prototype = undefined;
731
- } catch (error) { /* empty */ }
732
- var state = enforceInternalState(value);
733
- if (!hasOwn$2(state, 'source')) {
734
- state.source = join(TEMPLATE, typeof name == 'string' ? name : '');
735
- } return value;
736
- };
737
-
738
- // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
739
- // eslint-disable-next-line no-extend-native -- required
740
- Function.prototype.toString = makeBuiltIn$1(function toString() {
741
- return isCallable$3(this) && getInternalState(this).source || inspectSource(this);
742
- }, 'toString');
743
-
744
- var isCallable$2 = isCallable$b;
745
- var definePropertyModule$1 = objectDefineProperty;
746
- var makeBuiltIn = makeBuiltIn$2.exports;
747
- var defineGlobalProperty$1 = defineGlobalProperty$3;
748
-
749
- var defineBuiltIn$1 = function (O, key, value, options) {
750
- if (!options) options = {};
751
- var simple = options.enumerable;
752
- var name = options.name !== undefined ? options.name : key;
753
- if (isCallable$2(value)) makeBuiltIn(value, name, options);
754
- if (options.global) {
755
- if (simple) O[key] = value;
756
- else defineGlobalProperty$1(key, value);
757
- } else {
758
- try {
759
- if (!options.unsafe) delete O[key];
760
- else if (O[key]) simple = true;
761
- } catch (error) { /* empty */ }
762
- if (simple) O[key] = value;
763
- else definePropertyModule$1.f(O, key, {
764
- value: value,
765
- enumerable: false,
766
- configurable: !options.nonConfigurable,
767
- writable: !options.nonWritable
768
- });
769
- } return O;
770
- };
771
-
772
- var objectGetOwnPropertyNames = {};
773
-
774
- var ceil = Math.ceil;
775
- var floor = Math.floor;
776
-
777
- // `Math.trunc` method
778
- // https://tc39.es/ecma262/#sec-math.trunc
779
- // eslint-disable-next-line es/no-math-trunc -- safe
780
- var mathTrunc = Math.trunc || function trunc(x) {
781
- var n = +x;
782
- return (n > 0 ? floor : ceil)(n);
783
- };
784
-
785
- var trunc = mathTrunc;
786
-
787
- // `ToIntegerOrInfinity` abstract operation
788
- // https://tc39.es/ecma262/#sec-tointegerorinfinity
789
- var toIntegerOrInfinity$2 = function (argument) {
790
- var number = +argument;
791
- // eslint-disable-next-line no-self-compare -- NaN check
792
- return number !== number || number === 0 ? 0 : trunc(number);
793
- };
794
-
795
- var toIntegerOrInfinity$1 = toIntegerOrInfinity$2;
796
-
797
- var max = Math.max;
798
- var min$1 = Math.min;
799
-
800
- // Helper for a popular repeating case of the spec:
801
- // Let integer be ? ToInteger(index).
802
- // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
803
- var toAbsoluteIndex$1 = function (index, length) {
804
- var integer = toIntegerOrInfinity$1(index);
805
- return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
806
- };
807
-
808
- var toIntegerOrInfinity = toIntegerOrInfinity$2;
809
-
810
- var min = Math.min;
811
-
812
- // `ToLength` abstract operation
813
- // https://tc39.es/ecma262/#sec-tolength
814
- var toLength$1 = function (argument) {
815
- return argument > 0 ? min(toIntegerOrInfinity(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
816
- };
817
-
818
- var toLength = toLength$1;
819
-
820
- // `LengthOfArrayLike` abstract operation
821
- // https://tc39.es/ecma262/#sec-lengthofarraylike
822
- var lengthOfArrayLike$1 = function (obj) {
823
- return toLength(obj.length);
824
- };
825
-
826
- var toIndexedObject$1 = toIndexedObject$3;
827
- var toAbsoluteIndex = toAbsoluteIndex$1;
828
- var lengthOfArrayLike = lengthOfArrayLike$1;
829
-
830
- // `Array.prototype.{ indexOf, includes }` methods implementation
831
- var createMethod$1 = function (IS_INCLUDES) {
832
- return function ($this, el, fromIndex) {
833
- var O = toIndexedObject$1($this);
834
- var length = lengthOfArrayLike(O);
835
- var index = toAbsoluteIndex(fromIndex, length);
836
- var value;
837
- // Array#includes uses SameValueZero equality algorithm
838
- // eslint-disable-next-line no-self-compare -- NaN check
839
- if (IS_INCLUDES && el !== el) while (length > index) {
840
- value = O[index++];
841
- // eslint-disable-next-line no-self-compare -- NaN check
842
- if (value !== value) return true;
843
- // Array#indexOf ignores holes, Array#includes - not
844
- } else for (;length > index; index++) {
845
- if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
846
- } return !IS_INCLUDES && -1;
847
- };
848
- };
849
-
850
- var arrayIncludes = {
851
- // `Array.prototype.includes` method
852
- // https://tc39.es/ecma262/#sec-array.prototype.includes
853
- includes: createMethod$1(true),
854
- // `Array.prototype.indexOf` method
855
- // https://tc39.es/ecma262/#sec-array.prototype.indexof
856
- indexOf: createMethod$1(false)
857
- };
858
-
859
- var uncurryThis$2 = functionUncurryThis;
860
- var hasOwn$1 = hasOwnProperty_1;
861
- var toIndexedObject = toIndexedObject$3;
862
- var indexOf = arrayIncludes.indexOf;
863
- var hiddenKeys$1 = hiddenKeys$3;
864
-
865
- var push = uncurryThis$2([].push);
866
-
867
- var objectKeysInternal = function (object, names) {
868
- var O = toIndexedObject(object);
869
- var i = 0;
870
- var result = [];
871
- var key;
872
- for (key in O) !hasOwn$1(hiddenKeys$1, key) && hasOwn$1(O, key) && push(result, key);
873
- // Don't enum bug & hidden keys
874
- while (names.length > i) if (hasOwn$1(O, key = names[i++])) {
875
- ~indexOf(result, key) || push(result, key);
876
- }
877
- return result;
878
- };
879
-
880
- // IE8- don't enum bug keys
881
- var enumBugKeys$1 = [
882
- 'constructor',
883
- 'hasOwnProperty',
884
- 'isPrototypeOf',
885
- 'propertyIsEnumerable',
886
- 'toLocaleString',
887
- 'toString',
888
- 'valueOf'
889
- ];
890
-
891
- var internalObjectKeys = objectKeysInternal;
892
- var enumBugKeys = enumBugKeys$1;
893
-
894
- var hiddenKeys = enumBugKeys.concat('length', 'prototype');
895
-
896
- // `Object.getOwnPropertyNames` method
897
- // https://tc39.es/ecma262/#sec-object.getownpropertynames
898
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
899
- objectGetOwnPropertyNames.f = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
900
- return internalObjectKeys(O, hiddenKeys);
901
- };
902
-
903
- var objectGetOwnPropertySymbols = {};
904
-
905
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
906
- objectGetOwnPropertySymbols.f = Object.getOwnPropertySymbols;
907
-
908
- var getBuiltIn = getBuiltIn$2;
909
- var uncurryThis$1 = functionUncurryThis;
910
- var getOwnPropertyNamesModule = objectGetOwnPropertyNames;
911
- var getOwnPropertySymbolsModule = objectGetOwnPropertySymbols;
912
- var anObject = anObject$2;
913
-
914
- var concat = uncurryThis$1([].concat);
915
-
916
- // all object keys, includes non-enumerable and symbols
917
- var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
918
- var keys = getOwnPropertyNamesModule.f(anObject(it));
919
- var getOwnPropertySymbols = getOwnPropertySymbolsModule.f;
920
- return getOwnPropertySymbols ? concat(keys, getOwnPropertySymbols(it)) : keys;
921
- };
922
-
923
- var hasOwn = hasOwnProperty_1;
924
- var ownKeys = ownKeys$1;
925
- var getOwnPropertyDescriptorModule = objectGetOwnPropertyDescriptor;
926
- var definePropertyModule = objectDefineProperty;
927
-
928
- var copyConstructorProperties$1 = function (target, source, exceptions) {
929
- var keys = ownKeys(source);
930
- var defineProperty = definePropertyModule.f;
931
- var getOwnPropertyDescriptor = getOwnPropertyDescriptorModule.f;
932
- for (var i = 0; i < keys.length; i++) {
933
- var key = keys[i];
934
- if (!hasOwn(target, key) && !(exceptions && hasOwn(exceptions, key))) {
935
- defineProperty(target, key, getOwnPropertyDescriptor(source, key));
936
- }
937
- }
938
- };
939
-
940
- var fails$1 = fails$9;
941
- var isCallable$1 = isCallable$b;
942
-
943
- var replacement = /#|\.prototype\./;
944
-
945
- var isForced$1 = function (feature, detection) {
946
- var value = data[normalize(feature)];
947
- return value === POLYFILL ? true
948
- : value === NATIVE ? false
949
- : isCallable$1(detection) ? fails$1(detection)
950
- : !!detection;
951
- };
952
-
953
- var normalize = isForced$1.normalize = function (string) {
954
- return String(string).replace(replacement, '.').toLowerCase();
955
- };
956
-
957
- var data = isForced$1.data = {};
958
- var NATIVE = isForced$1.NATIVE = 'N';
959
- var POLYFILL = isForced$1.POLYFILL = 'P';
960
-
961
- var isForced_1 = isForced$1;
962
-
963
- var global$1 = global$b;
964
- var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
965
- var createNonEnumerableProperty = createNonEnumerableProperty$2;
966
- var defineBuiltIn = defineBuiltIn$1;
967
- var defineGlobalProperty = defineGlobalProperty$3;
968
- var copyConstructorProperties = copyConstructorProperties$1;
969
- var isForced = isForced_1;
970
-
971
- /*
972
- options.target - name of the target object
973
- options.global - target is the global object
974
- options.stat - export as static methods of target
975
- options.proto - export as prototype methods of target
976
- options.real - real prototype method for the `pure` version
977
- options.forced - export even if the native feature is available
978
- options.bind - bind methods to the target, required for the `pure` version
979
- options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
980
- options.unsafe - use the simple assignment of property instead of delete + defineProperty
981
- options.sham - add a flag to not completely full polyfills
982
- options.enumerable - export as enumerable property
983
- options.dontCallGetSet - prevent calling a getter on target
984
- options.name - the .name of the function if it does not match the key
985
- */
986
- var _export = function (options, source) {
987
- var TARGET = options.target;
988
- var GLOBAL = options.global;
989
- var STATIC = options.stat;
990
- var FORCED, target, key, targetProperty, sourceProperty, descriptor;
991
- if (GLOBAL) {
992
- target = global$1;
993
- } else if (STATIC) {
994
- target = global$1[TARGET] || defineGlobalProperty(TARGET, {});
995
- } else {
996
- target = (global$1[TARGET] || {}).prototype;
997
- }
998
- if (target) for (key in source) {
999
- sourceProperty = source[key];
1000
- if (options.dontCallGetSet) {
1001
- descriptor = getOwnPropertyDescriptor(target, key);
1002
- targetProperty = descriptor && descriptor.value;
1003
- } else targetProperty = target[key];
1004
- FORCED = isForced(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1005
- // contained in target
1006
- if (!FORCED && targetProperty !== undefined) {
1007
- if (typeof sourceProperty == typeof targetProperty) continue;
1008
- copyConstructorProperties(sourceProperty, targetProperty);
1009
- }
1010
- // add a flag to not completely full polyfills
1011
- if (options.sham || (targetProperty && targetProperty.sham)) {
1012
- createNonEnumerableProperty(sourceProperty, 'sham', true);
1013
- }
1014
- defineBuiltIn(target, key, sourceProperty, options);
1015
- }
1016
- };
1017
-
1018
- var wellKnownSymbol$1 = wellKnownSymbol$3;
1019
-
1020
- var TO_STRING_TAG$1 = wellKnownSymbol$1('toStringTag');
1021
- var test = {};
1022
-
1023
- test[TO_STRING_TAG$1] = 'z';
1024
-
1025
- var toStringTagSupport = String(test) === '[object z]';
1026
-
1027
- var TO_STRING_TAG_SUPPORT = toStringTagSupport;
1028
- var isCallable = isCallable$b;
1029
- var classofRaw = classofRaw$1;
1030
- var wellKnownSymbol = wellKnownSymbol$3;
1031
-
1032
- var TO_STRING_TAG = wellKnownSymbol('toStringTag');
1033
- var $Object = Object;
1034
-
1035
- // ES3 wrong here
1036
- var CORRECT_ARGUMENTS = classofRaw(function () { return arguments; }()) === 'Arguments';
1037
-
1038
- // fallback for IE11 Script Access Denied error
1039
- var tryGet = function (it, key) {
1040
- try {
1041
- return it[key];
1042
- } catch (error) { /* empty */ }
1043
- };
1044
-
1045
- // getting tag from ES6+ `Object.prototype.toString`
1046
- var classof$1 = TO_STRING_TAG_SUPPORT ? classofRaw : function (it) {
1047
- var O, tag, result;
1048
- return it === undefined ? 'Undefined' : it === null ? 'Null'
1049
- // @@toStringTag case
1050
- : typeof (tag = tryGet(O = $Object(it), TO_STRING_TAG)) == 'string' ? tag
1051
- // builtinTag case
1052
- : CORRECT_ARGUMENTS ? classofRaw(O)
1053
- // ES3 arguments fallback
1054
- : (result = classofRaw(O)) === 'Object' && isCallable(O.callee) ? 'Arguments' : result;
1055
- };
1056
-
1057
- var classof = classof$1;
1058
-
1059
- var $String = String;
1060
-
1061
- var toString$1 = function (argument) {
1062
- if (classof(argument) === 'Symbol') throw TypeError('Cannot convert a Symbol value to a string');
1063
- return $String(argument);
1064
- };
1065
-
1066
- // a string of all valid unicode whitespaces
1067
- var whitespaces$2 = '\u0009\u000A\u000B\u000C\u000D\u0020\u00A0\u1680\u2000\u2001\u2002' +
1068
- '\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF';
1069
-
1070
- var uncurryThis = functionUncurryThis;
1071
- var requireObjectCoercible = requireObjectCoercible$3;
1072
- var toString = toString$1;
1073
- var whitespaces$1 = whitespaces$2;
1074
-
1075
- var replace = uncurryThis(''.replace);
1076
- var ltrim = RegExp('^[' + whitespaces$1 + ']+');
1077
- var rtrim = RegExp('(^|[^' + whitespaces$1 + '])[' + whitespaces$1 + ']+$');
1078
-
1079
- // `String.prototype.{ trim, trimStart, trimEnd, trimLeft, trimRight }` methods implementation
1080
- var createMethod = function (TYPE) {
1081
- return function ($this) {
1082
- var string = toString(requireObjectCoercible($this));
1083
- if (TYPE & 1) string = replace(string, ltrim, '');
1084
- if (TYPE & 2) string = replace(string, rtrim, '$1');
1085
- return string;
1086
- };
1087
- };
1088
-
1089
- var stringTrim = {
1090
- // `String.prototype.{ trimLeft, trimStart }` methods
1091
- // https://tc39.es/ecma262/#sec-string.prototype.trimstart
1092
- start: createMethod(1),
1093
- // `String.prototype.{ trimRight, trimEnd }` methods
1094
- // https://tc39.es/ecma262/#sec-string.prototype.trimend
1095
- end: createMethod(2),
1096
- // `String.prototype.trim` method
1097
- // https://tc39.es/ecma262/#sec-string.prototype.trim
1098
- trim: createMethod(3)
1099
- };
1100
-
1101
- var PROPER_FUNCTION_NAME = functionName.PROPER;
1102
- var fails = fails$9;
1103
- var whitespaces = whitespaces$2;
1104
-
1105
- var non = '\u200B\u0085\u180E';
1106
-
1107
- // check that a method works with the correct list
1108
- // of whitespaces and has a correct name
1109
- var stringTrimForced = function (METHOD_NAME) {
1110
- return fails(function () {
1111
- return !!whitespaces[METHOD_NAME]()
1112
- || non[METHOD_NAME]() !== non
1113
- || (PROPER_FUNCTION_NAME && whitespaces[METHOD_NAME].name !== METHOD_NAME);
1114
- });
1115
- };
1116
-
1117
- var $ = _export;
1118
- var $trim = stringTrim.trim;
1119
- var forcedStringTrimMethod = stringTrimForced;
1120
-
1121
- // `String.prototype.trim` method
1122
- // https://tc39.es/ecma262/#sec-string.prototype.trim
1123
- $({ target: 'String', proto: true, forced: forcedStringTrimMethod('trim') }, {
1124
- trim: function trim() {
1125
- return $trim(this);
1126
- }
1127
- });
1128
-
1129
12
  const getModalPaddingDefault = () => 'l';
1130
13
  const getModalVariantDefault = () => 'outline';
1131
14
  const getModalDismissOnOutsideClickDefault = () => true;
@@ -1152,7 +35,7 @@ const Modal = /*#__PURE__*/forwardRef(({
1152
35
  onClose,
1153
36
  children
1154
37
  }, ref) => {
1155
- var _a, _b;
38
+ var _classNames$container, _classNames$image;
1156
39
  const headingId = `modalHeadingId-${useId()}`;
1157
40
  const {
1158
41
  t
@@ -1160,21 +43,21 @@ const Modal = /*#__PURE__*/forwardRef(({
1160
43
  i18n: dsI18n
1161
44
  });
1162
45
  const modalRef = useRef(null);
1163
- useImperativeHandle(ref, () => modalRef === null || modalRef === void 0 ? void 0 : modalRef.current);
46
+ useImperativeHandle(ref, () => modalRef == null ? void 0 : modalRef.current);
1164
47
  useEffect(() => {
1165
48
  if (!_dismissOnOutsideClick) {
1166
49
  return;
1167
50
  }
1168
51
  const onClickOutside = event => {
1169
- var _a;
1170
- const element = shadowRootNode ? shadowRootNode === null || shadowRootNode === void 0 ? void 0 : shadowRootNode.activeElement : event.target;
1171
- if (!(event.target instanceof HTMLElement) || (element === null || element === void 0 ? void 0 : element.tagName) !== 'DIALOG') {
52
+ const element = shadowRootNode ? shadowRootNode == null ? void 0 : shadowRootNode.activeElement : event.target;
53
+ if (!(event.target instanceof HTMLElement) || (element == null ? void 0 : element.tagName) !== 'DIALOG') {
1172
54
  return;
1173
55
  }
1174
56
  const rect = event.target.getBoundingClientRect();
1175
57
  if (rect.left > event.clientX || rect.right < event.clientX || rect.top > event.clientY || rect.bottom < event.clientY) {
1176
- onClose === null || onClose === void 0 ? void 0 : onClose();
1177
- (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.close();
58
+ var _modalRef$current;
59
+ onClose == null || onClose();
60
+ (_modalRef$current = modalRef.current) == null || _modalRef$current.close();
1178
61
  }
1179
62
  };
1180
63
  document.addEventListener('click', onClickOutside, true);
@@ -1190,7 +73,7 @@ const Modal = /*#__PURE__*/forwardRef(({
1190
73
  return jsx("dialog", {
1191
74
  ref: modalRef,
1192
75
  id: id,
1193
- className: `${styles.modal} ${hideOutlineClassName} ${_className} ${(_a = classNames === null || classNames === void 0 ? void 0 : classNames.container) !== null && _a !== void 0 ? _a : ''}`.trim(),
76
+ className: `${styles.modal} ${hideOutlineClassName} ${_className} ${(_classNames$container = classNames == null ? void 0 : classNames.container) != null ? _classNames$container : ''}`.trim(),
1194
77
  lang: lang,
1195
78
  "data-testid": dataTestId,
1196
79
  "aria-labelledby": headingId,
@@ -1199,7 +82,7 @@ const Modal = /*#__PURE__*/forwardRef(({
1199
82
  if (!_dismissOnEsc) {
1200
83
  e.preventDefault();
1201
84
  }
1202
- onClose === null || onClose === void 0 ? void 0 : onClose();
85
+ onClose == null || onClose();
1203
86
  },
1204
87
  children: jsxs("div", {
1205
88
  tabIndex: -1,
@@ -1209,14 +92,14 @@ const Modal = /*#__PURE__*/forwardRef(({
1209
92
  svgPath: CancelSVGpath,
1210
93
  title: t('modal.CloseModal'),
1211
94
  onClick: () => {
1212
- var _a;
1213
- onClose === null || onClose === void 0 ? void 0 : onClose();
1214
- (_a = modalRef.current) === null || _a === void 0 ? void 0 : _a.close();
95
+ var _modalRef$current2;
96
+ onClose == null || onClose();
97
+ (_modalRef$current2 = modalRef.current) == null || _modalRef$current2.close();
1215
98
  }
1216
99
  }), imageSource && jsx("img", {
1217
100
  src: imageSource,
1218
- alt: imageSourceAltText !== null && imageSourceAltText !== void 0 ? imageSourceAltText : '',
1219
- className: `${styles.modalIllustration} ${(_b = classNames === null || classNames === void 0 ? void 0 : classNames.image) !== null && _b !== void 0 ? _b : ''}`.trim()
101
+ alt: imageSourceAltText != null ? imageSourceAltText : '',
102
+ className: `${styles.modalIllustration} ${(_classNames$image = classNames == null ? void 0 : classNames.image) != null ? _classNames$image : ''}`.trim()
1220
103
  }), jsxs("div", {
1221
104
  className: `${paddingClassName} ${noPaddingTop}`.trim(),
1222
105
  children: [_variant === 'important' && jsx(SkatteetatenLogo, {