@livechat/accounts-sdk 2.0.10 → 2.1.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,12 +1,12 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('util')) :
3
3
  typeof define === 'function' && define.amd ? define(['util'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.AccountsSDK = factory(global.require$$0));
5
- }(this, (function (require$$0) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.AccountsSDK = factory(global.require$$0$2));
5
+ })(this, (function (require$$0$2) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
9
- var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0);
9
+ var require$$0__default = /*#__PURE__*/_interopDefaultLegacy(require$$0$2);
10
10
 
11
11
  var errors = {
12
12
  extend: function (error) {
@@ -123,6 +123,95 @@
123
123
  }
124
124
  }
125
125
 
126
+ /** @type {import('.')} */
127
+ var esObjectAtoms = Object;
128
+
129
+ /** @type {import('.')} */
130
+ var esErrors = Error;
131
+
132
+ /** @type {import('./eval')} */
133
+ var _eval = EvalError;
134
+
135
+ /** @type {import('./range')} */
136
+ var range = RangeError;
137
+
138
+ /** @type {import('./ref')} */
139
+ var ref = ReferenceError;
140
+
141
+ /** @type {import('./syntax')} */
142
+ var syntax = SyntaxError;
143
+
144
+ /** @type {import('./type')} */
145
+ var type = TypeError;
146
+
147
+ /** @type {import('./uri')} */
148
+ var uri = URIError;
149
+
150
+ /** @type {import('./abs')} */
151
+ var abs$1 = Math.abs;
152
+
153
+ /** @type {import('./floor')} */
154
+ var floor$1 = Math.floor;
155
+
156
+ /** @type {import('./max')} */
157
+ var max$2 = Math.max;
158
+
159
+ /** @type {import('./min')} */
160
+ var min$1 = Math.min;
161
+
162
+ /** @type {import('./pow')} */
163
+ var pow$1 = Math.pow;
164
+
165
+ /** @type {import('./round')} */
166
+ var round$1 = Math.round;
167
+
168
+ /** @type {import('./isNaN')} */
169
+ var _isNaN = Number.isNaN || function isNaN(a) {
170
+ return a !== a;
171
+ };
172
+
173
+ var $isNaN = _isNaN;
174
+
175
+ /** @type {import('./sign')} */
176
+ var sign$1 = function sign(number) {
177
+ if ($isNaN(number) || number === 0) {
178
+ return number;
179
+ }
180
+ return number < 0 ? -1 : +1;
181
+ };
182
+
183
+ /** @type {import('./gOPD')} */
184
+ var gOPD$1 = Object.getOwnPropertyDescriptor;
185
+
186
+ var require$$0$1 = gOPD$1;
187
+
188
+ /** @type {import('.')} */
189
+ var $gOPD = require$$0$1;
190
+ if ($gOPD) {
191
+ try {
192
+ $gOPD([], 'length');
193
+ } catch (e) {
194
+ // IE 8 has a broken gOPD
195
+ $gOPD = null;
196
+ }
197
+ }
198
+ var gopd = $gOPD;
199
+
200
+ /** @type {import('.')} */
201
+ var $defineProperty$3 = Object.defineProperty || false;
202
+ if ($defineProperty$3) {
203
+ try {
204
+ $defineProperty$3({}, 'a', {
205
+ value: 1
206
+ });
207
+ } catch (e) {
208
+ // IE 8 has a broken defineProperty
209
+ $defineProperty$3 = false;
210
+ }
211
+ }
212
+ var esDefineProperty = $defineProperty$3;
213
+
214
+ /** @type {import('./shams')} */
126
215
  /* eslint complexity: [2, 18], max-statements: [2, 33] */
127
216
  var shams = function hasSymbols() {
128
217
  if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') {
@@ -131,6 +220,8 @@
131
220
  if (typeof Symbol.iterator === 'symbol') {
132
221
  return true;
133
222
  }
223
+
224
+ /** @type {{ [k in symbol]?: unknown }} */
134
225
  var obj = {};
135
226
  var sym = Symbol('test');
136
227
  var symObj = Object(sym);
@@ -154,7 +245,7 @@
154
245
 
155
246
  var symVal = 42;
156
247
  obj[sym] = symVal;
157
- for (sym in obj) {
248
+ for (var _ in obj) {
158
249
  return false;
159
250
  } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
160
251
  if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) {
@@ -171,7 +262,8 @@
171
262
  return false;
172
263
  }
173
264
  if (typeof Object.getOwnPropertyDescriptor === 'function') {
174
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
265
+ // eslint-disable-next-line no-extra-parens
266
+ var descriptor = /** @type {PropertyDescriptor} */Object.getOwnPropertyDescriptor(obj, sym);
175
267
  if (descriptor.value !== symVal || descriptor.enumerable !== true) {
176
268
  return false;
177
269
  }
@@ -180,7 +272,9 @@
180
272
  };
181
273
 
182
274
  var origSymbol = typeof Symbol !== 'undefined' && Symbol;
183
- var hasSymbols = function hasNativeSymbols() {
275
+
276
+ /** @type {import('.')} */
277
+ var hasSymbols$1 = function hasNativeSymbols() {
184
278
  if (typeof origSymbol !== 'function') {
185
279
  return false;
186
280
  }
@@ -196,22 +290,18 @@
196
290
  return shams();
197
291
  };
198
292
 
199
- var test = {
200
- foo: {}
201
- };
202
- var $Object = Object;
203
- var hasProto = function hasProto() {
204
- return {
205
- __proto__: test
206
- }.foo === test.foo && !({
207
- __proto__: null
208
- } instanceof $Object);
209
- };
293
+ /** @type {import('./Reflect.getPrototypeOf')} */
294
+ var Reflect_getPrototypeOf = typeof Reflect !== 'undefined' && Reflect.getPrototypeOf || null;
295
+
296
+ var $Object$1 = esObjectAtoms;
297
+
298
+ /** @type {import('./Object.getPrototypeOf')} */
299
+ var Object_getPrototypeOf = $Object$1.getPrototypeOf || null;
210
300
 
211
301
  /* eslint no-invalid-this: 1 */
212
302
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
213
- var toStr = Object.prototype.toString;
214
- var max = Math.max;
303
+ var toStr$1 = Object.prototype.toString;
304
+ var max$1 = Math.max;
215
305
  var funcType = '[object Function]';
216
306
  var concatty = function concatty(a, b) {
217
307
  var arr = [];
@@ -242,7 +332,7 @@
242
332
  };
243
333
  var implementation = function bind(that) {
244
334
  var target = this;
245
- if (typeof target !== 'function' || toStr.apply(target) !== funcType) {
335
+ if (typeof target !== 'function' || toStr$1.apply(target) !== funcType) {
246
336
  throw new TypeError(ERROR_MESSAGE + target);
247
337
  }
248
338
  var args = slicy(arguments, 1);
@@ -257,7 +347,7 @@
257
347
  }
258
348
  return target.apply(that, concatty(args, arguments));
259
349
  };
260
- var boundLength = max(0, target.length - args.length);
350
+ var boundLength = max$1(0, target.length - args.length);
261
351
  var boundArgs = [];
262
352
  for (var i = 0; i < boundLength; i++) {
263
353
  boundArgs[i] = '$' + i;
@@ -274,16 +364,106 @@
274
364
 
275
365
  var functionBind = Function.prototype.bind || implementation;
276
366
 
367
+ /** @type {import('./functionCall')} */
368
+ var functionCall = Function.prototype.call;
369
+
370
+ /** @type {import('./functionApply')} */
371
+ var functionApply = Function.prototype.apply;
372
+
373
+ /** @type {import('./reflectApply')} */
374
+ var reflectApply = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
375
+
376
+ /** @type {import('./actualApply')} */
377
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
378
+
379
+ var $TypeError$3 = type;
380
+
381
+ /** @type {(args: [Function, thisArg?: unknown, ...args: unknown[]]) => Function} TODO FIXME, find a way to use import('.') */
382
+ var callBindApplyHelpers = function callBindBasic(args) {
383
+ if (args.length < 1 || typeof args[0] !== 'function') {
384
+ throw new $TypeError$3('a function is required');
385
+ }
386
+ return actualApply(functionBind, functionCall, args);
387
+ };
388
+
389
+ var gOPD = gopd;
390
+
391
+ var hasProtoAccessor;
392
+ try {
393
+ // eslint-disable-next-line no-extra-parens, no-proto
394
+ hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */[].__proto__ === Array.prototype;
395
+ } catch (e) {
396
+ if (!e || typeof e !== 'object' || !('code' in e) || e.code !== 'ERR_PROTO_ACCESS') {
397
+ throw e;
398
+ }
399
+ }
400
+
401
+ // eslint-disable-next-line no-extra-parens
402
+ var desc = !!hasProtoAccessor && gOPD && gOPD(Object.prototype, /** @type {keyof typeof Object.prototype} */'__proto__');
403
+ var $Object = Object;
404
+ var $getPrototypeOf = $Object.getPrototypeOf;
405
+
406
+ /** @type {import('./get')} */
407
+ var get = desc && typeof desc.get === 'function' ? callBindApplyHelpers([desc.get]) : typeof $getPrototypeOf === 'function' ? /** @type {import('./get')} */function getDunder(value) {
408
+ // eslint-disable-next-line eqeqeq
409
+ return $getPrototypeOf(value == null ? value : $Object(value));
410
+ } : false;
411
+
412
+ var getDunderProto = get;
413
+
414
+ /** @type {import('.')} */
415
+ var getProto = Reflect_getPrototypeOf ? function getProto(O) {
416
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
417
+ return Reflect_getPrototypeOf(O);
418
+ } : Object_getPrototypeOf ? function getProto(O) {
419
+ if (!O || typeof O !== 'object' && typeof O !== 'function') {
420
+ throw new TypeError('getProto: not an object');
421
+ }
422
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
423
+ return Object_getPrototypeOf(O);
424
+ } : getDunderProto ? function getProto(O) {
425
+ // @ts-expect-error TS can't narrow inside a closure, for some reason
426
+ return getDunderProto(O);
427
+ } : null;
428
+
277
429
  var call = Function.prototype.call;
278
430
  var $hasOwn = Object.prototype.hasOwnProperty;
279
431
 
280
- /** @type {(o: {}, p: PropertyKey) => p is keyof o} */
432
+ /** @type {import('.')} */
281
433
  var hasown = functionBind.call(call, $hasOwn);
282
434
 
435
+ var $Error = esErrors;
436
+
437
+ var $EvalError = _eval;
438
+
439
+ var $RangeError = range;
440
+
441
+ var $ReferenceError = ref;
442
+
443
+ var $SyntaxError$1 = syntax;
444
+
445
+ var $URIError = uri;
446
+
447
+ var abs = abs$1;
448
+
449
+ var floor = floor$1;
450
+
451
+ var max = max$2;
452
+
453
+ var min = min$1;
454
+
455
+ var pow = pow$1;
456
+
457
+ var round = round$1;
458
+
459
+ var sign = sign$1;
460
+
461
+ var $defineProperty$2 = esDefineProperty;
462
+
463
+ var hasOwn$1 = hasown;
464
+
283
465
  var undefined$1;
284
- var $SyntaxError = SyntaxError;
285
466
  var $Function = Function;
286
- var $TypeError = TypeError;
287
467
 
288
468
  // eslint-disable-next-line consistent-return
289
469
  var getEvalledConstructor = function (expressionSyntax) {
@@ -291,18 +471,10 @@
291
471
  return $Function('"use strict"; return (' + expressionSyntax + ').constructor;')();
292
472
  } catch (e) {}
293
473
  };
294
- var $gOPD = Object.getOwnPropertyDescriptor;
295
- if ($gOPD) {
296
- try {
297
- $gOPD({}, '');
298
- } catch (e) {
299
- $gOPD = null; // this is IE 8, which has a broken gOPD
300
- }
301
- }
302
474
  var throwTypeError = function () {
303
- throw new $TypeError();
475
+ throw new $TypeError$3();
304
476
  };
305
- var ThrowTypeError = $gOPD ? function () {
477
+ var ThrowTypeError = gOPD ? function () {
306
478
  try {
307
479
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
308
480
  arguments.callee; // IE 8 does not throw here
@@ -310,25 +482,21 @@
310
482
  } catch (calleeThrows) {
311
483
  try {
312
484
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
313
- return $gOPD(arguments, 'callee').get;
485
+ return gOPD(arguments, 'callee').get;
314
486
  } catch (gOPDthrows) {
315
487
  return throwTypeError;
316
488
  }
317
489
  }
318
490
  }() : throwTypeError;
319
- var hasSymbols$1 = hasSymbols();
320
- var hasProto$1 = hasProto();
321
- var getProto = Object.getPrototypeOf || (hasProto$1 ? function (x) {
322
- return x.__proto__;
323
- } // eslint-disable-line no-proto
324
- : null);
491
+ var hasSymbols = hasSymbols$1();
325
492
  var needsEval = {};
326
493
  var TypedArray = typeof Uint8Array === 'undefined' || !getProto ? undefined$1 : getProto(Uint8Array);
327
494
  var INTRINSICS = {
495
+ __proto__: null,
328
496
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
329
497
  '%Array%': Array,
330
498
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
331
- '%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
499
+ '%ArrayIteratorPrototype%': hasSymbols && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
332
500
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
333
501
  '%AsyncFunction%': needsEval,
334
502
  '%AsyncGenerator%': needsEval,
@@ -345,10 +513,11 @@
345
513
  '%decodeURIComponent%': decodeURIComponent,
346
514
  '%encodeURI%': encodeURI,
347
515
  '%encodeURIComponent%': encodeURIComponent,
348
- '%Error%': Error,
516
+ '%Error%': $Error,
349
517
  '%eval%': eval,
350
518
  // eslint-disable-line no-eval
351
- '%EvalError%': EvalError,
519
+ '%EvalError%': $EvalError,
520
+ '%Float16Array%': typeof Float16Array === 'undefined' ? undefined$1 : Float16Array,
352
521
  '%Float32Array%': typeof Float32Array === 'undefined' ? undefined$1 : Float32Array,
353
522
  '%Float64Array%': typeof Float64Array === 'undefined' ? undefined$1 : Float64Array,
354
523
  '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined$1 : FinalizationRegistry,
@@ -359,39 +528,52 @@
359
528
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
360
529
  '%isFinite%': isFinite,
361
530
  '%isNaN%': isNaN,
362
- '%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
531
+ '%IteratorPrototype%': hasSymbols && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
363
532
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
364
533
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
365
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
534
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
366
535
  '%Math%': Math,
367
536
  '%Number%': Number,
368
- '%Object%': Object,
537
+ '%Object%': $Object$1,
538
+ '%Object.getOwnPropertyDescriptor%': gOPD,
369
539
  '%parseFloat%': parseFloat,
370
540
  '%parseInt%': parseInt,
371
541
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
372
542
  '%Proxy%': typeof Proxy === 'undefined' ? undefined$1 : Proxy,
373
- '%RangeError%': RangeError,
374
- '%ReferenceError%': ReferenceError,
543
+ '%RangeError%': $RangeError,
544
+ '%ReferenceError%': $ReferenceError,
375
545
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
376
546
  '%RegExp%': RegExp,
377
547
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
378
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
548
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
379
549
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
380
550
  '%String%': String,
381
- '%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
382
- '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
383
- '%SyntaxError%': $SyntaxError,
551
+ '%StringIteratorPrototype%': hasSymbols && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
552
+ '%Symbol%': hasSymbols ? Symbol : undefined$1,
553
+ '%SyntaxError%': $SyntaxError$1,
384
554
  '%ThrowTypeError%': ThrowTypeError,
385
555
  '%TypedArray%': TypedArray,
386
- '%TypeError%': $TypeError,
556
+ '%TypeError%': $TypeError$3,
387
557
  '%Uint8Array%': typeof Uint8Array === 'undefined' ? undefined$1 : Uint8Array,
388
558
  '%Uint8ClampedArray%': typeof Uint8ClampedArray === 'undefined' ? undefined$1 : Uint8ClampedArray,
389
559
  '%Uint16Array%': typeof Uint16Array === 'undefined' ? undefined$1 : Uint16Array,
390
560
  '%Uint32Array%': typeof Uint32Array === 'undefined' ? undefined$1 : Uint32Array,
391
- '%URIError%': URIError,
561
+ '%URIError%': $URIError,
392
562
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
393
563
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
394
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
564
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
565
+ '%Function.prototype.call%': functionCall,
566
+ '%Function.prototype.apply%': functionApply,
567
+ '%Object.defineProperty%': $defineProperty$2,
568
+ '%Object.getPrototypeOf%': Object_getPrototypeOf,
569
+ '%Math.abs%': abs,
570
+ '%Math.floor%': floor,
571
+ '%Math.max%': max,
572
+ '%Math.min%': min,
573
+ '%Math.pow%': pow,
574
+ '%Math.round%': round,
575
+ '%Math.sign%': sign,
576
+ '%Reflect.getPrototypeOf%': Reflect_getPrototypeOf
395
577
  };
396
578
  if (getProto) {
397
579
  try {
@@ -425,6 +607,7 @@
425
607
  return value;
426
608
  };
427
609
  var LEGACY_ALIASES = {
610
+ __proto__: null,
428
611
  '%ArrayBufferPrototype%': ['ArrayBuffer', 'prototype'],
429
612
  '%ArrayPrototype%': ['Array', 'prototype'],
430
613
  '%ArrayProto_entries%': ['Array', 'prototype', 'entries'],
@@ -477,11 +660,11 @@
477
660
  '%WeakMapPrototype%': ['WeakMap', 'prototype'],
478
661
  '%WeakSetPrototype%': ['WeakSet', 'prototype']
479
662
  };
480
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
481
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
482
- var $replace = functionBind.call(Function.call, String.prototype.replace);
483
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
484
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
663
+ var $concat$1 = functionBind.call(functionCall, Array.prototype.concat);
664
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
665
+ var $replace$1 = functionBind.call(functionCall, String.prototype.replace);
666
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
667
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
485
668
 
486
669
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
487
670
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -490,13 +673,13 @@
490
673
  var first = $strSlice(string, 0, 1);
491
674
  var last = $strSlice(string, -1);
492
675
  if (first === '%' && last !== '%') {
493
- throw new $SyntaxError('invalid intrinsic syntax, expected closing `%`');
676
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected closing `%`');
494
677
  } else if (last === '%' && first !== '%') {
495
- throw new $SyntaxError('invalid intrinsic syntax, expected opening `%`');
678
+ throw new $SyntaxError$1('invalid intrinsic syntax, expected opening `%`');
496
679
  }
497
680
  var result = [];
498
- $replace(string, rePropName, function (match, number, quote, subString) {
499
- result[result.length] = quote ? $replace(subString, reEscapeChar, '$1') : number || match;
681
+ $replace$1(string, rePropName, function (match, number, quote, subString) {
682
+ result[result.length] = quote ? $replace$1(subString, reEscapeChar, '$1') : number || match;
500
683
  });
501
684
  return result;
502
685
  };
@@ -505,17 +688,17 @@
505
688
  var getBaseIntrinsic = function getBaseIntrinsic(name, allowMissing) {
506
689
  var intrinsicName = name;
507
690
  var alias;
508
- if (hasown(LEGACY_ALIASES, intrinsicName)) {
691
+ if (hasOwn$1(LEGACY_ALIASES, intrinsicName)) {
509
692
  alias = LEGACY_ALIASES[intrinsicName];
510
693
  intrinsicName = '%' + alias[0] + '%';
511
694
  }
512
- if (hasown(INTRINSICS, intrinsicName)) {
695
+ if (hasOwn$1(INTRINSICS, intrinsicName)) {
513
696
  var value = INTRINSICS[intrinsicName];
514
697
  if (value === needsEval) {
515
698
  value = doEval(intrinsicName);
516
699
  }
517
700
  if (typeof value === 'undefined' && !allowMissing) {
518
- throw new $TypeError('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
701
+ throw new $TypeError$3('intrinsic ' + name + ' exists, but is not available. Please file an issue!');
519
702
  }
520
703
  return {
521
704
  alias: alias,
@@ -523,17 +706,17 @@
523
706
  value: value
524
707
  };
525
708
  }
526
- throw new $SyntaxError('intrinsic ' + name + ' does not exist!');
709
+ throw new $SyntaxError$1('intrinsic ' + name + ' does not exist!');
527
710
  };
528
711
  var getIntrinsic = function GetIntrinsic(name, allowMissing) {
529
712
  if (typeof name !== 'string' || name.length === 0) {
530
- throw new $TypeError('intrinsic name must be a non-empty string');
713
+ throw new $TypeError$3('intrinsic name must be a non-empty string');
531
714
  }
532
715
  if (arguments.length > 1 && typeof allowMissing !== 'boolean') {
533
- throw new $TypeError('"allowMissing" argument must be a boolean');
716
+ throw new $TypeError$3('"allowMissing" argument must be a boolean');
534
717
  }
535
718
  if ($exec(/^%?[^%]*%?$/, name) === null) {
536
- throw new $SyntaxError('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
719
+ throw new $SyntaxError$1('`%` may not be present anywhere but at the beginning and end of the intrinsic name');
537
720
  }
538
721
  var parts = stringToPath(name);
539
722
  var intrinsicBaseName = parts.length > 0 ? parts[0] : '';
@@ -544,31 +727,31 @@
544
727
  var alias = intrinsic.alias;
545
728
  if (alias) {
546
729
  intrinsicBaseName = alias[0];
547
- $spliceApply(parts, $concat([0, 1], alias));
730
+ $spliceApply(parts, $concat$1([0, 1], alias));
548
731
  }
549
732
  for (var i = 1, isOwn = true; i < parts.length; i += 1) {
550
733
  var part = parts[i];
551
734
  var first = $strSlice(part, 0, 1);
552
735
  var last = $strSlice(part, -1);
553
736
  if ((first === '"' || first === "'" || first === '`' || last === '"' || last === "'" || last === '`') && first !== last) {
554
- throw new $SyntaxError('property names with quotes must have matching quotes');
737
+ throw new $SyntaxError$1('property names with quotes must have matching quotes');
555
738
  }
556
739
  if (part === 'constructor' || !isOwn) {
557
740
  skipFurtherCaching = true;
558
741
  }
559
742
  intrinsicBaseName += '.' + part;
560
743
  intrinsicRealName = '%' + intrinsicBaseName + '%';
561
- if (hasown(INTRINSICS, intrinsicRealName)) {
744
+ if (hasOwn$1(INTRINSICS, intrinsicRealName)) {
562
745
  value = INTRINSICS[intrinsicRealName];
563
746
  } else if (value != null) {
564
747
  if (!(part in value)) {
565
748
  if (!allowMissing) {
566
- throw new $TypeError('base intrinsic for ' + name + ' exists, but the property is not available.');
749
+ throw new $TypeError$3('base intrinsic for ' + name + ' exists, but the property is not available.');
567
750
  }
568
751
  return void undefined$1;
569
752
  }
570
- if ($gOPD && i + 1 >= parts.length) {
571
- var desc = $gOPD(value, part);
753
+ if (gOPD && i + 1 >= parts.length) {
754
+ var desc = gOPD(value, part);
572
755
  isOwn = !!desc;
573
756
 
574
757
  // By convention, when a data property is converted to an accessor
@@ -584,7 +767,7 @@
584
767
  value = value[part];
585
768
  }
586
769
  } else {
587
- isOwn = hasown(value, part);
770
+ isOwn = hasOwn$1(value, part);
588
771
  value = value[part];
589
772
  }
590
773
  if (isOwn && !skipFurtherCaching) {
@@ -611,11 +794,13 @@
611
794
  throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
612
795
  }
613
796
 
614
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
615
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
616
- if ($defineProperty) {
797
+ var GetIntrinsic = getIntrinsic;
798
+
799
+ var $defineProperty$1 = GetIntrinsic('%Object.defineProperty%', true);
800
+ var hasPropertyDescriptors$1 = function hasPropertyDescriptors() {
801
+ if ($defineProperty$1) {
617
802
  try {
618
- $defineProperty({}, 'a', {
803
+ $defineProperty$1({}, 'a', {
619
804
  value: 1
620
805
  });
621
806
  return true;
@@ -626,13 +811,13 @@
626
811
  }
627
812
  return false;
628
813
  };
629
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
814
+ hasPropertyDescriptors$1.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
630
815
  // node v0.6 has a bug where array lengths can be Set but not Defined
631
- if (!hasPropertyDescriptors()) {
816
+ if (!hasPropertyDescriptors$1()) {
632
817
  return null;
633
818
  }
634
819
  try {
635
- return $defineProperty([], 'length', {
820
+ return $defineProperty$1([], 'length', {
636
821
  value: 1
637
822
  }).length !== 1;
638
823
  } catch (e) {
@@ -640,53 +825,44 @@
640
825
  return true;
641
826
  }
642
827
  };
643
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
828
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors$1;
644
829
 
645
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
646
- if ($gOPD$1) {
647
- try {
648
- $gOPD$1([], 'length');
649
- } catch (e) {
650
- // IE 8 has a broken gOPD
651
- $gOPD$1 = null;
652
- }
653
- }
654
- var gopd = $gOPD$1;
830
+ var require$$0 = hasPropertyDescriptors_1;
655
831
 
656
- var hasPropertyDescriptors$1 = hasPropertyDescriptors_1();
657
- var $defineProperty$1 = hasPropertyDescriptors$1 && getIntrinsic('%Object.defineProperty%', true);
658
- if ($defineProperty$1) {
832
+ var hasPropertyDescriptors = require$$0();
833
+ var $defineProperty = hasPropertyDescriptors && GetIntrinsic('%Object.defineProperty%', true);
834
+ if ($defineProperty) {
659
835
  try {
660
- $defineProperty$1({}, 'a', {
836
+ $defineProperty({}, 'a', {
661
837
  value: 1
662
838
  });
663
839
  } catch (e) {
664
840
  // IE 8 has a broken defineProperty
665
- $defineProperty$1 = false;
841
+ $defineProperty = false;
666
842
  }
667
843
  }
668
- var $SyntaxError$1 = getIntrinsic('%SyntaxError%');
669
- var $TypeError$1 = getIntrinsic('%TypeError%');
844
+ var $SyntaxError = GetIntrinsic('%SyntaxError%');
845
+ var $TypeError$2 = GetIntrinsic('%TypeError%');
670
846
 
671
847
  /** @type {(obj: Record<PropertyKey, unknown>, property: PropertyKey, value: unknown, nonEnumerable?: boolean | null, nonWritable?: boolean | null, nonConfigurable?: boolean | null, loose?: boolean) => void} */
672
848
  var defineDataProperty = function defineDataProperty(obj, property, value) {
673
849
  if (!obj || typeof obj !== 'object' && typeof obj !== 'function') {
674
- throw new $TypeError$1('`obj` must be an object or a function`');
850
+ throw new $TypeError$2('`obj` must be an object or a function`');
675
851
  }
676
852
  if (typeof property !== 'string' && typeof property !== 'symbol') {
677
- throw new $TypeError$1('`property` must be a string or a symbol`');
853
+ throw new $TypeError$2('`property` must be a string or a symbol`');
678
854
  }
679
855
  if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
680
- throw new $TypeError$1('`nonEnumerable`, if provided, must be a boolean or null');
856
+ throw new $TypeError$2('`nonEnumerable`, if provided, must be a boolean or null');
681
857
  }
682
858
  if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
683
- throw new $TypeError$1('`nonWritable`, if provided, must be a boolean or null');
859
+ throw new $TypeError$2('`nonWritable`, if provided, must be a boolean or null');
684
860
  }
685
861
  if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
686
- throw new $TypeError$1('`nonConfigurable`, if provided, must be a boolean or null');
862
+ throw new $TypeError$2('`nonConfigurable`, if provided, must be a boolean or null');
687
863
  }
688
864
  if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
689
- throw new $TypeError$1('`loose`, if provided, must be a boolean');
865
+ throw new $TypeError$2('`loose`, if provided, must be a boolean');
690
866
  }
691
867
  var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
692
868
  var nonWritable = arguments.length > 4 ? arguments[4] : null;
@@ -694,9 +870,9 @@
694
870
  var loose = arguments.length > 6 ? arguments[6] : false;
695
871
 
696
872
  /* @type {false | TypedPropertyDescriptor<unknown>} */
697
- var desc = !!gopd && gopd(obj, property);
698
- if ($defineProperty$1) {
699
- $defineProperty$1(obj, property, {
873
+ var desc = !!gOPD && gOPD(obj, property);
874
+ if ($defineProperty) {
875
+ $defineProperty(obj, property, {
700
876
  configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
701
877
  enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
702
878
  value: value,
@@ -706,25 +882,27 @@
706
882
  // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
707
883
  obj[property] = value; // eslint-disable-line no-param-reassign
708
884
  } else {
709
- throw new $SyntaxError$1('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
885
+ throw new $SyntaxError('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
710
886
  }
711
887
  };
712
888
 
713
- var hasDescriptors = hasPropertyDescriptors_1();
714
- var $TypeError$2 = getIntrinsic('%TypeError%');
715
- var $floor = getIntrinsic('%Math.floor%');
889
+ var define = defineDataProperty;
890
+
891
+ var hasDescriptors = require$$0();
892
+ var $TypeError$1 = GetIntrinsic('%TypeError%');
893
+ var $floor$1 = GetIntrinsic('%Math.floor%');
716
894
  var setFunctionLength = function setFunctionLength(fn, length) {
717
895
  if (typeof fn !== 'function') {
718
- throw new $TypeError$2('`fn` is not a function');
896
+ throw new $TypeError$1('`fn` is not a function');
719
897
  }
720
- if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor(length) !== length) {
721
- throw new $TypeError$2('`length` must be a positive 32-bit integer');
898
+ if (typeof length !== 'number' || length < 0 || length > 0xFFFFFFFF || $floor$1(length) !== length) {
899
+ throw new $TypeError$1('`length` must be a positive 32-bit integer');
722
900
  }
723
901
  var loose = arguments.length > 2 && !!arguments[2];
724
902
  var functionLengthIsConfigurable = true;
725
903
  var functionLengthIsWritable = true;
726
- if ('length' in fn && gopd) {
727
- var desc = gopd(fn, 'length');
904
+ if ('length' in fn && gOPD) {
905
+ var desc = gOPD(fn, 'length');
728
906
  if (desc && !desc.configurable) {
729
907
  functionLengthIsConfigurable = false;
730
908
  }
@@ -734,9 +912,9 @@
734
912
  }
735
913
  if (functionLengthIsConfigurable || functionLengthIsWritable || !loose) {
736
914
  if (hasDescriptors) {
737
- defineDataProperty(fn, 'length', length, true, true);
915
+ define(fn, 'length', length, true, true);
738
916
  } else {
739
- defineDataProperty(fn, 'length', length);
917
+ define(fn, 'length', length);
740
918
  }
741
919
  }
742
920
  return fn;
@@ -744,12 +922,12 @@
744
922
 
745
923
  var callBind = createCommonjsModule(function (module) {
746
924
 
747
- var $TypeError = getIntrinsic('%TypeError%');
748
- var $apply = getIntrinsic('%Function.prototype.apply%');
749
- var $call = getIntrinsic('%Function.prototype.call%');
750
- var $reflectApply = getIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
751
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true);
752
- var $max = getIntrinsic('%Math.max%');
925
+ var $TypeError = GetIntrinsic('%TypeError%');
926
+ var $apply = GetIntrinsic('%Function.prototype.apply%');
927
+ var $call = GetIntrinsic('%Function.prototype.call%');
928
+ var $reflectApply = GetIntrinsic('%Reflect.apply%', true) || functionBind.call($call, $apply);
929
+ var $defineProperty = GetIntrinsic('%Object.defineProperty%', true);
930
+ var $max = GetIntrinsic('%Math.max%');
753
931
  if ($defineProperty) {
754
932
  try {
755
933
  $defineProperty({}, 'a', {
@@ -779,16 +957,18 @@
779
957
  }
780
958
  });
781
959
 
782
- var $indexOf = callBind(getIntrinsic('String.prototype.indexOf'));
960
+ var $indexOf = callBind(GetIntrinsic('String.prototype.indexOf'));
783
961
  var callBound = function callBoundIntrinsic(name, allowMissing) {
784
- var intrinsic = getIntrinsic(name, !!allowMissing);
962
+ var intrinsic = GetIntrinsic(name, !!allowMissing);
785
963
  if (typeof intrinsic === 'function' && $indexOf(name, '.prototype.') > -1) {
786
964
  return callBind(intrinsic);
787
965
  }
788
966
  return intrinsic;
789
967
  };
790
968
 
791
- var util_inspect = require$$0__default['default'].inspect;
969
+ var util_inspect = require$$0__default["default"].inspect;
970
+
971
+ var utilInspect = util_inspect;
792
972
 
793
973
  var hasMap = typeof Map === 'function' && Map.prototype;
794
974
  var mapSizeDescriptor = Object.getOwnPropertyDescriptor && hasMap ? Object.getOwnPropertyDescriptor(Map.prototype, 'size') : null;
@@ -809,14 +989,14 @@
809
989
  var functionToString = Function.prototype.toString;
810
990
  var $match = String.prototype.match;
811
991
  var $slice = String.prototype.slice;
812
- var $replace$1 = String.prototype.replace;
992
+ var $replace = String.prototype.replace;
813
993
  var $toUpperCase = String.prototype.toUpperCase;
814
994
  var $toLowerCase = String.prototype.toLowerCase;
815
995
  var $test = RegExp.prototype.test;
816
- var $concat$1 = Array.prototype.concat;
996
+ var $concat = Array.prototype.concat;
817
997
  var $join = Array.prototype.join;
818
998
  var $arrSlice = Array.prototype.slice;
819
- var $floor$1 = Math.floor;
999
+ var $floor = Math.floor;
820
1000
  var bigIntValueOf = typeof BigInt === 'function' ? BigInt.prototype.valueOf : null;
821
1001
  var gOPS = Object.getOwnPropertySymbols;
822
1002
  var symToString = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? Symbol.prototype.toString : null;
@@ -834,33 +1014,33 @@
834
1014
  }
835
1015
  var sepRegex = /[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;
836
1016
  if (typeof num === 'number') {
837
- var int = num < 0 ? -$floor$1(-num) : $floor$1(num); // trunc(num)
1017
+ var int = num < 0 ? -$floor(-num) : $floor(num); // trunc(num)
838
1018
  if (int !== num) {
839
1019
  var intStr = String(int);
840
1020
  var dec = $slice.call(str, intStr.length + 1);
841
- return $replace$1.call(intStr, sepRegex, '$&_') + '.' + $replace$1.call($replace$1.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
1021
+ return $replace.call(intStr, sepRegex, '$&_') + '.' + $replace.call($replace.call(dec, /([0-9]{3})/g, '$&_'), /_$/, '');
842
1022
  }
843
1023
  }
844
- return $replace$1.call(str, sepRegex, '$&_');
1024
+ return $replace.call(str, sepRegex, '$&_');
845
1025
  }
846
- var inspectCustom = util_inspect.custom;
1026
+ var inspectCustom = utilInspect.custom;
847
1027
  var inspectSymbol = isSymbol(inspectCustom) ? inspectCustom : null;
848
1028
  var objectInspect = function inspect_(obj, options, depth, seen) {
849
1029
  var opts = options || {};
850
- if (has(opts, 'quoteStyle') && opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double') {
1030
+ if (has$3(opts, 'quoteStyle') && opts.quoteStyle !== 'single' && opts.quoteStyle !== 'double') {
851
1031
  throw new TypeError('option "quoteStyle" must be "single" or "double"');
852
1032
  }
853
- if (has(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
1033
+ if (has$3(opts, 'maxStringLength') && (typeof opts.maxStringLength === 'number' ? opts.maxStringLength < 0 && opts.maxStringLength !== Infinity : opts.maxStringLength !== null)) {
854
1034
  throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');
855
1035
  }
856
- var customInspect = has(opts, 'customInspect') ? opts.customInspect : true;
1036
+ var customInspect = has$3(opts, 'customInspect') ? opts.customInspect : true;
857
1037
  if (typeof customInspect !== 'boolean' && customInspect !== 'symbol') {
858
1038
  throw new TypeError('option "customInspect", if provided, must be `true`, `false`, or `\'symbol\'`');
859
1039
  }
860
- if (has(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
1040
+ if (has$3(opts, 'indent') && opts.indent !== null && opts.indent !== '\t' && !(parseInt(opts.indent, 10) === opts.indent && opts.indent > 0)) {
861
1041
  throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');
862
1042
  }
863
- if (has(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
1043
+ if (has$3(opts, 'numericSeparator') && typeof opts.numericSeparator !== 'boolean') {
864
1044
  throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');
865
1045
  }
866
1046
  var numericSeparator = opts.numericSeparator;
@@ -892,7 +1072,7 @@
892
1072
  depth = 0;
893
1073
  }
894
1074
  if (depth >= maxDepth && maxDepth > 0 && typeof obj === 'object') {
895
- return isArray(obj) ? '[Array]' : '[Object]';
1075
+ return isArray$3(obj) ? '[Array]' : '[Object]';
896
1076
  }
897
1077
  var indent = getIndent(opts, depth);
898
1078
  if (typeof seen === 'undefined') {
@@ -909,21 +1089,21 @@
909
1089
  var newOpts = {
910
1090
  depth: opts.depth
911
1091
  };
912
- if (has(opts, 'quoteStyle')) {
1092
+ if (has$3(opts, 'quoteStyle')) {
913
1093
  newOpts.quoteStyle = opts.quoteStyle;
914
1094
  }
915
1095
  return inspect_(value, newOpts, depth + 1, seen);
916
1096
  }
917
1097
  return inspect_(value, opts, depth + 1, seen);
918
1098
  }
919
- if (typeof obj === 'function' && !isRegExp(obj)) {
1099
+ if (typeof obj === 'function' && !isRegExp$1(obj)) {
920
1100
  // in older engines, regexes are callable
921
1101
  var name = nameOf(obj);
922
1102
  var keys = arrObjKeys(obj, inspect);
923
1103
  return '[Function' + (name ? ': ' + name : ' (anonymous)') + ']' + (keys.length > 0 ? ' { ' + $join.call(keys, ', ') + ' }' : '');
924
1104
  }
925
1105
  if (isSymbol(obj)) {
926
- var symString = hasShammedSymbols ? $replace$1.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
1106
+ var symString = hasShammedSymbols ? $replace.call(String(obj), /^(Symbol\(.*\))_[^)]*$/, '$1') : symToString.call(obj);
927
1107
  return typeof obj === 'object' && !hasShammedSymbols ? markBoxed(symString) : symString;
928
1108
  }
929
1109
  if (isElement(obj)) {
@@ -939,7 +1119,7 @@
939
1119
  s += '</' + $toLowerCase.call(String(obj.nodeName)) + '>';
940
1120
  return s;
941
1121
  }
942
- if (isArray(obj)) {
1122
+ if (isArray$3(obj)) {
943
1123
  if (obj.length === 0) {
944
1124
  return '[]';
945
1125
  }
@@ -952,7 +1132,7 @@
952
1132
  if (isError(obj)) {
953
1133
  var parts = arrObjKeys(obj, inspect);
954
1134
  if (!('cause' in Error.prototype) && 'cause' in obj && !isEnumerable.call(obj, 'cause')) {
955
- return '{ [' + String(obj) + '] ' + $join.call($concat$1.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
1135
+ return '{ [' + String(obj) + '] ' + $join.call($concat.call('[cause]: ' + inspect(obj.cause), parts), ', ') + ' }';
956
1136
  }
957
1137
  if (parts.length === 0) {
958
1138
  return '[' + String(obj) + ']';
@@ -960,8 +1140,8 @@
960
1140
  return '{ [' + String(obj) + '] ' + $join.call(parts, ', ') + ' }';
961
1141
  }
962
1142
  if (typeof obj === 'object' && customInspect) {
963
- if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && util_inspect) {
964
- return util_inspect(obj, {
1143
+ if (inspectSymbol && typeof obj[inspectSymbol] === 'function' && utilInspect) {
1144
+ return utilInspect(obj, {
965
1145
  depth: maxDepth - depth
966
1146
  });
967
1147
  } else if (customInspect !== 'symbol' && typeof obj.inspect === 'function') {
@@ -1015,13 +1195,13 @@
1015
1195
  if (obj === commonjsGlobal) {
1016
1196
  return '{ [object globalThis] }';
1017
1197
  }
1018
- if (!isDate(obj) && !isRegExp(obj)) {
1198
+ if (!isDate(obj) && !isRegExp$1(obj)) {
1019
1199
  var ys = arrObjKeys(obj, inspect);
1020
1200
  var isPlainObject = gPO ? gPO(obj) === Object.prototype : obj instanceof Object || obj.constructor === Object;
1021
1201
  var protoTag = obj instanceof Object ? '' : 'null prototype';
1022
- var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr$1(obj), 8, -1) : protoTag ? 'Object' : '';
1202
+ var stringTag = !isPlainObject && toStringTag && Object(obj) === obj && toStringTag in obj ? $slice.call(toStr(obj), 8, -1) : protoTag ? 'Object' : '';
1023
1203
  var constructorTag = isPlainObject || typeof obj.constructor !== 'function' ? '' : obj.constructor.name ? obj.constructor.name + ' ' : '';
1024
- var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat$1.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1204
+ var tag = constructorTag + (stringTag || protoTag ? '[' + $join.call($concat.call([], stringTag || [], protoTag || []), ': ') + '] ' : '');
1025
1205
  if (ys.length === 0) {
1026
1206
  return tag + '{}';
1027
1207
  }
@@ -1037,28 +1217,28 @@
1037
1217
  return quoteChar + s + quoteChar;
1038
1218
  }
1039
1219
  function quote(s) {
1040
- return $replace$1.call(String(s), /"/g, '&quot;');
1220
+ return $replace.call(String(s), /"/g, '&quot;');
1041
1221
  }
1042
- function isArray(obj) {
1043
- return toStr$1(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1222
+ function isArray$3(obj) {
1223
+ return toStr(obj) === '[object Array]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1044
1224
  }
1045
1225
  function isDate(obj) {
1046
- return toStr$1(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1226
+ return toStr(obj) === '[object Date]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1047
1227
  }
1048
- function isRegExp(obj) {
1049
- return toStr$1(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1228
+ function isRegExp$1(obj) {
1229
+ return toStr(obj) === '[object RegExp]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1050
1230
  }
1051
1231
  function isError(obj) {
1052
- return toStr$1(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1232
+ return toStr(obj) === '[object Error]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1053
1233
  }
1054
1234
  function isString(obj) {
1055
- return toStr$1(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1235
+ return toStr(obj) === '[object String]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1056
1236
  }
1057
1237
  function isNumber(obj) {
1058
- return toStr$1(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1238
+ return toStr(obj) === '[object Number]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1059
1239
  }
1060
1240
  function isBoolean(obj) {
1061
- return toStr$1(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1241
+ return toStr(obj) === '[object Boolean]' && (!toStringTag || !(typeof obj === 'object' && toStringTag in obj));
1062
1242
  }
1063
1243
 
1064
1244
  // Symbol and BigInt do have Symbol.toStringTag by spec, so that can't be used to eliminate false positives
@@ -1091,10 +1271,10 @@
1091
1271
  var hasOwn = Object.prototype.hasOwnProperty || function (key) {
1092
1272
  return key in this;
1093
1273
  };
1094
- function has(obj, key) {
1274
+ function has$3(obj, key) {
1095
1275
  return hasOwn.call(obj, key);
1096
1276
  }
1097
- function toStr$1(obj) {
1277
+ function toStr(obj) {
1098
1278
  return objectToString.call(obj);
1099
1279
  }
1100
1280
  function nameOf(f) {
@@ -1204,7 +1384,7 @@
1204
1384
  return inspectString($slice.call(str, 0, opts.maxStringLength), opts) + trailer;
1205
1385
  }
1206
1386
  // eslint-disable-next-line no-control-regex
1207
- var s = $replace$1.call($replace$1.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1387
+ var s = $replace.call($replace.call(str, /(['\\])/g, '\\$1'), /[\x00-\x1f]/g, lowbyte);
1208
1388
  return wrapQuotes(s, 'single', opts);
1209
1389
  }
1210
1390
  function lowbyte(c) {
@@ -1261,12 +1441,12 @@
1261
1441
  return lineJoiner + $join.call(xs, ',' + lineJoiner) + '\n' + indent.prev;
1262
1442
  }
1263
1443
  function arrObjKeys(obj, inspect) {
1264
- var isArr = isArray(obj);
1444
+ var isArr = isArray$3(obj);
1265
1445
  var xs = [];
1266
1446
  if (isArr) {
1267
1447
  xs.length = obj.length;
1268
1448
  for (var i = 0; i < obj.length; i++) {
1269
- xs[i] = has(obj, i) ? inspect(obj[i], obj) : '';
1449
+ xs[i] = has$3(obj, i) ? inspect(obj[i], obj) : '';
1270
1450
  }
1271
1451
  }
1272
1452
  var syms = typeof gOPS === 'function' ? gOPS(obj) : [];
@@ -1279,7 +1459,7 @@
1279
1459
  }
1280
1460
  for (var key in obj) {
1281
1461
  // eslint-disable-line no-restricted-syntax
1282
- if (!has(obj, key)) {
1462
+ if (!has$3(obj, key)) {
1283
1463
  continue;
1284
1464
  } // eslint-disable-line no-restricted-syntax, no-continue
1285
1465
  if (isArr && String(Number(key)) === key && key < obj.length) {
@@ -1304,9 +1484,11 @@
1304
1484
  return xs;
1305
1485
  }
1306
1486
 
1307
- var $TypeError$3 = getIntrinsic('%TypeError%');
1308
- var $WeakMap = getIntrinsic('%WeakMap%', true);
1309
- var $Map = getIntrinsic('%Map%', true);
1487
+ var inspect = objectInspect;
1488
+
1489
+ var $TypeError = GetIntrinsic('%TypeError%');
1490
+ var $WeakMap = GetIntrinsic('%WeakMap%', true);
1491
+ var $Map = GetIntrinsic('%Map%', true);
1310
1492
  var $weakMapGet = callBound('WeakMap.prototype.get', true);
1311
1493
  var $weakMapSet = callBound('WeakMap.prototype.set', true);
1312
1494
  var $weakMapHas = callBound('WeakMap.prototype.has', true);
@@ -1361,7 +1543,7 @@
1361
1543
  var channel = {
1362
1544
  assert: function (key) {
1363
1545
  if (!channel.has(key)) {
1364
- throw new $TypeError$3('Side channel does not contain ' + objectInspect(key));
1546
+ throw new $TypeError('Side channel does not contain ' + inspect(key));
1365
1547
  }
1366
1548
  },
1367
1549
  get: function (key) {
@@ -1448,8 +1630,8 @@
1448
1630
  RFC3986: Format.RFC3986
1449
1631
  };
1450
1632
 
1451
- var has$1 = Object.prototype.hasOwnProperty;
1452
- var isArray$1 = Array.isArray;
1633
+ var has$2 = Object.prototype.hasOwnProperty;
1634
+ var isArray$2 = Array.isArray;
1453
1635
  var hexTable = function () {
1454
1636
  var array = [];
1455
1637
  for (var i = 0; i < 256; ++i) {
@@ -1461,7 +1643,7 @@
1461
1643
  while (queue.length > 1) {
1462
1644
  var item = queue.pop();
1463
1645
  var obj = item.obj[item.prop];
1464
- if (isArray$1(obj)) {
1646
+ if (isArray$2(obj)) {
1465
1647
  var compacted = [];
1466
1648
  for (var j = 0; j < obj.length; ++j) {
1467
1649
  if (typeof obj[j] !== 'undefined') {
@@ -1487,10 +1669,10 @@
1487
1669
  return target;
1488
1670
  }
1489
1671
  if (typeof source !== 'object') {
1490
- if (isArray$1(target)) {
1672
+ if (isArray$2(target)) {
1491
1673
  target.push(source);
1492
1674
  } else if (target && typeof target === 'object') {
1493
- if (options && (options.plainObjects || options.allowPrototypes) || !has$1.call(Object.prototype, source)) {
1675
+ if (options && (options.plainObjects || options.allowPrototypes) || !has$2.call(Object.prototype, source)) {
1494
1676
  target[source] = true;
1495
1677
  }
1496
1678
  } else {
@@ -1502,12 +1684,12 @@
1502
1684
  return [target].concat(source);
1503
1685
  }
1504
1686
  var mergeTarget = target;
1505
- if (isArray$1(target) && !isArray$1(source)) {
1687
+ if (isArray$2(target) && !isArray$2(source)) {
1506
1688
  mergeTarget = arrayToObject(target, options);
1507
1689
  }
1508
- if (isArray$1(target) && isArray$1(source)) {
1690
+ if (isArray$2(target) && isArray$2(source)) {
1509
1691
  source.forEach(function (item, i) {
1510
- if (has$1.call(target, i)) {
1692
+ if (has$2.call(target, i)) {
1511
1693
  var targetItem = target[i];
1512
1694
  if (targetItem && typeof targetItem === 'object' && item && typeof item === 'object') {
1513
1695
  target[i] = merge(targetItem, item, options);
@@ -1522,7 +1704,7 @@
1522
1704
  }
1523
1705
  return Object.keys(source).reduce(function (acc, key) {
1524
1706
  var value = source[key];
1525
- if (has$1.call(acc, key)) {
1707
+ if (has$2.call(acc, key)) {
1526
1708
  acc[key] = merge(acc[key], value, options);
1527
1709
  } else {
1528
1710
  acc[key] = value;
@@ -1627,7 +1809,7 @@
1627
1809
  compactQueue(queue);
1628
1810
  return value;
1629
1811
  };
1630
- var isRegExp$1 = function isRegExp(obj) {
1812
+ var isRegExp = function isRegExp(obj) {
1631
1813
  return Object.prototype.toString.call(obj) === '[object RegExp]';
1632
1814
  };
1633
1815
  var isBuffer = function isBuffer(obj) {
@@ -1640,7 +1822,7 @@
1640
1822
  return [].concat(a, b);
1641
1823
  };
1642
1824
  var maybeMap = function maybeMap(val, fn) {
1643
- if (isArray$1(val)) {
1825
+ if (isArray$2(val)) {
1644
1826
  var mapped = [];
1645
1827
  for (var i = 0; i < val.length; i += 1) {
1646
1828
  mapped.push(fn(val[i]));
@@ -1657,12 +1839,12 @@
1657
1839
  decode: decode,
1658
1840
  encode: encode,
1659
1841
  isBuffer: isBuffer,
1660
- isRegExp: isRegExp$1,
1842
+ isRegExp: isRegExp,
1661
1843
  maybeMap: maybeMap,
1662
1844
  merge: merge
1663
1845
  };
1664
1846
 
1665
- var has$2 = Object.prototype.hasOwnProperty;
1847
+ var has$1 = Object.prototype.hasOwnProperty;
1666
1848
  var arrayPrefixGenerators = {
1667
1849
  brackets: function brackets(prefix) {
1668
1850
  return prefix + '[]';
@@ -1675,14 +1857,14 @@
1675
1857
  return prefix;
1676
1858
  }
1677
1859
  };
1678
- var isArray$2 = Array.isArray;
1860
+ var isArray$1 = Array.isArray;
1679
1861
  var push = Array.prototype.push;
1680
1862
  var pushToArray = function (arr, valueOrArray) {
1681
- push.apply(arr, isArray$2(valueOrArray) ? valueOrArray : [valueOrArray]);
1863
+ push.apply(arr, isArray$1(valueOrArray) ? valueOrArray : [valueOrArray]);
1682
1864
  };
1683
1865
  var toISO = Date.prototype.toISOString;
1684
1866
  var defaultFormat = formats['default'];
1685
- var defaults = {
1867
+ var defaults$1 = {
1686
1868
  addQueryPrefix: false,
1687
1869
  allowDots: false,
1688
1870
  charset: 'utf-8',
@@ -1729,7 +1911,7 @@
1729
1911
  obj = filter(prefix, obj);
1730
1912
  } else if (obj instanceof Date) {
1731
1913
  obj = serializeDate(obj);
1732
- } else if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
1914
+ } else if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1733
1915
  obj = utils.maybeMap(obj, function (value) {
1734
1916
  if (value instanceof Date) {
1735
1917
  return serializeDate(value);
@@ -1739,14 +1921,14 @@
1739
1921
  }
1740
1922
  if (obj === null) {
1741
1923
  if (strictNullHandling) {
1742
- return encoder && !encodeValuesOnly ? encoder(prefix, defaults.encoder, charset, 'key', format) : prefix;
1924
+ return encoder && !encodeValuesOnly ? encoder(prefix, defaults$1.encoder, charset, 'key', format) : prefix;
1743
1925
  }
1744
1926
  obj = '';
1745
1927
  }
1746
1928
  if (isNonNullishPrimitive(obj) || utils.isBuffer(obj)) {
1747
1929
  if (encoder) {
1748
- var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults.encoder, charset, 'key', format);
1749
- return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults.encoder, charset, 'value', format))];
1930
+ var keyValue = encodeValuesOnly ? prefix : encoder(prefix, defaults$1.encoder, charset, 'key', format);
1931
+ return [formatter(keyValue) + '=' + formatter(encoder(obj, defaults$1.encoder, charset, 'value', format))];
1750
1932
  }
1751
1933
  return [formatter(prefix) + '=' + formatter(String(obj))];
1752
1934
  }
@@ -1755,7 +1937,7 @@
1755
1937
  return values;
1756
1938
  }
1757
1939
  var objKeys;
1758
- if (generateArrayPrefix === 'comma' && isArray$2(obj)) {
1940
+ if (generateArrayPrefix === 'comma' && isArray$1(obj)) {
1759
1941
  // we need to join elements in
1760
1942
  if (encodeValuesOnly && encoder) {
1761
1943
  obj = utils.maybeMap(obj, encoder);
@@ -1763,66 +1945,66 @@
1763
1945
  objKeys = [{
1764
1946
  value: obj.length > 0 ? obj.join(',') || null : void undefined
1765
1947
  }];
1766
- } else if (isArray$2(filter)) {
1948
+ } else if (isArray$1(filter)) {
1767
1949
  objKeys = filter;
1768
1950
  } else {
1769
1951
  var keys = Object.keys(obj);
1770
1952
  objKeys = sort ? keys.sort(sort) : keys;
1771
1953
  }
1772
- var adjustedPrefix = commaRoundTrip && isArray$2(obj) && obj.length === 1 ? prefix + '[]' : prefix;
1954
+ var adjustedPrefix = commaRoundTrip && isArray$1(obj) && obj.length === 1 ? prefix + '[]' : prefix;
1773
1955
  for (var j = 0; j < objKeys.length; ++j) {
1774
1956
  var key = objKeys[j];
1775
1957
  var value = typeof key === 'object' && typeof key.value !== 'undefined' ? key.value : obj[key];
1776
1958
  if (skipNulls && value === null) {
1777
1959
  continue;
1778
1960
  }
1779
- var keyPrefix = isArray$2(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
1961
+ var keyPrefix = isArray$1(obj) ? typeof generateArrayPrefix === 'function' ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? '.' + key : '[' + key + ']');
1780
1962
  sideChannel$1.set(object, step);
1781
1963
  var valueSideChannel = sideChannel();
1782
1964
  valueSideChannel.set(sentinel, sideChannel$1);
1783
- pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$2(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
1965
+ pushToArray(values, stringify(value, keyPrefix, generateArrayPrefix, commaRoundTrip, strictNullHandling, skipNulls, generateArrayPrefix === 'comma' && encodeValuesOnly && isArray$1(obj) ? null : encoder, filter, sort, allowDots, serializeDate, format, formatter, encodeValuesOnly, charset, valueSideChannel));
1784
1966
  }
1785
1967
  return values;
1786
1968
  };
1787
1969
  var normalizeStringifyOptions = function normalizeStringifyOptions(opts) {
1788
1970
  if (!opts) {
1789
- return defaults;
1971
+ return defaults$1;
1790
1972
  }
1791
1973
  if (opts.encoder !== null && typeof opts.encoder !== 'undefined' && typeof opts.encoder !== 'function') {
1792
1974
  throw new TypeError('Encoder has to be a function.');
1793
1975
  }
1794
- var charset = opts.charset || defaults.charset;
1976
+ var charset = opts.charset || defaults$1.charset;
1795
1977
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
1796
1978
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
1797
1979
  }
1798
1980
  var format = formats['default'];
1799
1981
  if (typeof opts.format !== 'undefined') {
1800
- if (!has$2.call(formats.formatters, opts.format)) {
1982
+ if (!has$1.call(formats.formatters, opts.format)) {
1801
1983
  throw new TypeError('Unknown format option provided.');
1802
1984
  }
1803
1985
  format = opts.format;
1804
1986
  }
1805
1987
  var formatter = formats.formatters[format];
1806
- var filter = defaults.filter;
1807
- if (typeof opts.filter === 'function' || isArray$2(opts.filter)) {
1988
+ var filter = defaults$1.filter;
1989
+ if (typeof opts.filter === 'function' || isArray$1(opts.filter)) {
1808
1990
  filter = opts.filter;
1809
1991
  }
1810
1992
  return {
1811
- addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults.addQueryPrefix,
1812
- allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
1993
+ addQueryPrefix: typeof opts.addQueryPrefix === 'boolean' ? opts.addQueryPrefix : defaults$1.addQueryPrefix,
1994
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
1813
1995
  charset: charset,
1814
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
1815
- delimiter: typeof opts.delimiter === 'undefined' ? defaults.delimiter : opts.delimiter,
1816
- encode: typeof opts.encode === 'boolean' ? opts.encode : defaults.encode,
1817
- encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults.encoder,
1818
- encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults.encodeValuesOnly,
1996
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
1997
+ delimiter: typeof opts.delimiter === 'undefined' ? defaults$1.delimiter : opts.delimiter,
1998
+ encode: typeof opts.encode === 'boolean' ? opts.encode : defaults$1.encode,
1999
+ encoder: typeof opts.encoder === 'function' ? opts.encoder : defaults$1.encoder,
2000
+ encodeValuesOnly: typeof opts.encodeValuesOnly === 'boolean' ? opts.encodeValuesOnly : defaults$1.encodeValuesOnly,
1819
2001
  filter: filter,
1820
2002
  format: format,
1821
2003
  formatter: formatter,
1822
- serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults.serializeDate,
1823
- skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults.skipNulls,
2004
+ serializeDate: typeof opts.serializeDate === 'function' ? opts.serializeDate : defaults$1.serializeDate,
2005
+ skipNulls: typeof opts.skipNulls === 'boolean' ? opts.skipNulls : defaults$1.skipNulls,
1824
2006
  sort: typeof opts.sort === 'function' ? opts.sort : null,
1825
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2007
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
1826
2008
  };
1827
2009
  };
1828
2010
  var stringify_1 = function (object, opts) {
@@ -1833,7 +2015,7 @@
1833
2015
  if (typeof options.filter === 'function') {
1834
2016
  filter = options.filter;
1835
2017
  obj = filter('', obj);
1836
- } else if (isArray$2(options.filter)) {
2018
+ } else if (isArray$1(options.filter)) {
1837
2019
  filter = options.filter;
1838
2020
  objKeys = filter;
1839
2021
  }
@@ -1882,9 +2064,9 @@
1882
2064
  return joined.length > 0 ? prefix + joined : '';
1883
2065
  };
1884
2066
 
1885
- var has$3 = Object.prototype.hasOwnProperty;
1886
- var isArray$3 = Array.isArray;
1887
- var defaults$1 = {
2067
+ var has = Object.prototype.hasOwnProperty;
2068
+ var isArray = Array.isArray;
2069
+ var defaults = {
1888
2070
  allowDots: false,
1889
2071
  allowPrototypes: false,
1890
2072
  allowSparse: false,
@@ -1956,21 +2138,21 @@
1956
2138
  var pos = bracketEqualsPos === -1 ? part.indexOf('=') : bracketEqualsPos + 1;
1957
2139
  var key, val;
1958
2140
  if (pos === -1) {
1959
- key = options.decoder(part, defaults$1.decoder, charset, 'key');
2141
+ key = options.decoder(part, defaults.decoder, charset, 'key');
1960
2142
  val = options.strictNullHandling ? null : '';
1961
2143
  } else {
1962
- key = options.decoder(part.slice(0, pos), defaults$1.decoder, charset, 'key');
2144
+ key = options.decoder(part.slice(0, pos), defaults.decoder, charset, 'key');
1963
2145
  val = utils.maybeMap(parseArrayValue(part.slice(pos + 1), options), function (encodedVal) {
1964
- return options.decoder(encodedVal, defaults$1.decoder, charset, 'value');
2146
+ return options.decoder(encodedVal, defaults.decoder, charset, 'value');
1965
2147
  });
1966
2148
  }
1967
2149
  if (val && options.interpretNumericEntities && charset === 'iso-8859-1') {
1968
2150
  val = interpretNumericEntities(val);
1969
2151
  }
1970
2152
  if (part.indexOf('[]=') > -1) {
1971
- val = isArray$3(val) ? [val] : val;
2153
+ val = isArray(val) ? [val] : val;
1972
2154
  }
1973
- if (has$3.call(obj, key)) {
2155
+ if (has.call(obj, key)) {
1974
2156
  obj[key] = utils.combine(obj[key], val);
1975
2157
  } else {
1976
2158
  obj[key] = val;
@@ -2027,7 +2209,7 @@
2027
2209
  var keys = [];
2028
2210
  if (parent) {
2029
2211
  // If we aren't using plain objects, optionally prefix keys that would overwrite object prototype properties
2030
- if (!options.plainObjects && has$3.call(Object.prototype, parent)) {
2212
+ if (!options.plainObjects && has.call(Object.prototype, parent)) {
2031
2213
  if (!options.allowPrototypes) {
2032
2214
  return;
2033
2215
  }
@@ -2040,7 +2222,7 @@
2040
2222
  var i = 0;
2041
2223
  while (options.depth > 0 && (segment = child.exec(key)) !== null && i < options.depth) {
2042
2224
  i += 1;
2043
- if (!options.plainObjects && has$3.call(Object.prototype, segment[1].slice(1, -1))) {
2225
+ if (!options.plainObjects && has.call(Object.prototype, segment[1].slice(1, -1))) {
2044
2226
  if (!options.allowPrototypes) {
2045
2227
  return;
2046
2228
  }
@@ -2057,7 +2239,7 @@
2057
2239
  };
2058
2240
  var normalizeParseOptions = function normalizeParseOptions(opts) {
2059
2241
  if (!opts) {
2060
- return defaults$1;
2242
+ return defaults;
2061
2243
  }
2062
2244
  if (opts.decoder !== null && opts.decoder !== undefined && typeof opts.decoder !== 'function') {
2063
2245
  throw new TypeError('Decoder has to be a function.');
@@ -2065,25 +2247,25 @@
2065
2247
  if (typeof opts.charset !== 'undefined' && opts.charset !== 'utf-8' && opts.charset !== 'iso-8859-1') {
2066
2248
  throw new TypeError('The charset option must be either utf-8, iso-8859-1, or undefined');
2067
2249
  }
2068
- var charset = typeof opts.charset === 'undefined' ? defaults$1.charset : opts.charset;
2250
+ var charset = typeof opts.charset === 'undefined' ? defaults.charset : opts.charset;
2069
2251
  return {
2070
- allowDots: typeof opts.allowDots === 'undefined' ? defaults$1.allowDots : !!opts.allowDots,
2071
- allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults$1.allowPrototypes,
2072
- allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults$1.allowSparse,
2073
- arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults$1.arrayLimit,
2252
+ allowDots: typeof opts.allowDots === 'undefined' ? defaults.allowDots : !!opts.allowDots,
2253
+ allowPrototypes: typeof opts.allowPrototypes === 'boolean' ? opts.allowPrototypes : defaults.allowPrototypes,
2254
+ allowSparse: typeof opts.allowSparse === 'boolean' ? opts.allowSparse : defaults.allowSparse,
2255
+ arrayLimit: typeof opts.arrayLimit === 'number' ? opts.arrayLimit : defaults.arrayLimit,
2074
2256
  charset: charset,
2075
- charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults$1.charsetSentinel,
2076
- comma: typeof opts.comma === 'boolean' ? opts.comma : defaults$1.comma,
2077
- decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults$1.decoder,
2078
- delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults$1.delimiter,
2257
+ charsetSentinel: typeof opts.charsetSentinel === 'boolean' ? opts.charsetSentinel : defaults.charsetSentinel,
2258
+ comma: typeof opts.comma === 'boolean' ? opts.comma : defaults.comma,
2259
+ decoder: typeof opts.decoder === 'function' ? opts.decoder : defaults.decoder,
2260
+ delimiter: typeof opts.delimiter === 'string' || utils.isRegExp(opts.delimiter) ? opts.delimiter : defaults.delimiter,
2079
2261
  // eslint-disable-next-line no-implicit-coercion, no-extra-parens
2080
- depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults$1.depth,
2262
+ depth: typeof opts.depth === 'number' || opts.depth === false ? +opts.depth : defaults.depth,
2081
2263
  ignoreQueryPrefix: opts.ignoreQueryPrefix === true,
2082
- interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults$1.interpretNumericEntities,
2083
- parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults$1.parameterLimit,
2264
+ interpretNumericEntities: typeof opts.interpretNumericEntities === 'boolean' ? opts.interpretNumericEntities : defaults.interpretNumericEntities,
2265
+ parameterLimit: typeof opts.parameterLimit === 'number' ? opts.parameterLimit : defaults.parameterLimit,
2084
2266
  parseArrays: opts.parseArrays !== false,
2085
- plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults$1.plainObjects,
2086
- strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults$1.strictNullHandling
2267
+ plainObjects: typeof opts.plainObjects === 'boolean' ? opts.plainObjects : defaults.plainObjects,
2268
+ strictNullHandling: typeof opts.strictNullHandling === 'boolean' ? opts.strictNullHandling : defaults.strictNullHandling
2087
2269
  };
2088
2270
  };
2089
2271
  var parse = function (str, opts) {
@@ -3272,7 +3454,7 @@
3272
3454
  /**
3273
3455
  * use iframe for authorization
3274
3456
  * @param {Object} options for overriding defaults
3275
- * @return {Object} instance of an iframe flow
3457
+ * @return {Iframe} instance of an iframe flow
3276
3458
  */
3277
3459
  iframe(options = {}) {
3278
3460
  const localOptions = Object.assign({}, this.options, options);
@@ -3282,7 +3464,7 @@
3282
3464
  /**
3283
3465
  * use popup for authorization
3284
3466
  * @param {Object} options for overriding defaults
3285
- * @return {Object} instance of a popup flow
3467
+ * @return {Popup} instance of a popup flow
3286
3468
  */
3287
3469
  popup(options = {}) {
3288
3470
  const localOptions = Object.assign({}, this.options, options);
@@ -3292,7 +3474,7 @@
3292
3474
  /**
3293
3475
  * use redirect for authorization
3294
3476
  * @param {Object} options for overriding defaults
3295
- * @return {Object} instance of a redirect flow
3477
+ * @return {Redirect} instance of a redirect flow
3296
3478
  */
3297
3479
  redirect(options = {}) {
3298
3480
  const localOptions = Object.assign({}, this.options, options);
@@ -3374,5 +3556,5 @@
3374
3556
 
3375
3557
  return AccountsSDK;
3376
3558
 
3377
- })));
3559
+ }));
3378
3560
  //# sourceMappingURL=accounts-sdk.js.map