@mycause/ui 1.1.0-test11 → 1.1.0-test12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/donation.js CHANGED
@@ -19426,16 +19426,17 @@ keysShim$1.shim = function shimObjectKeys() {
19426
19426
  var objectKeys = keysShim$1;
19427
19427
 
19428
19428
  /** @type {import('.')} */
19429
- var esErrors = Error;
19430
-
19431
- /** @type {import('./eval')} */
19432
- var _eval = EvalError;
19433
-
19434
- /** @type {import('./range')} */
19435
- var range = RangeError;
19429
+ var $defineProperty = Object.defineProperty || false;
19430
+ if ($defineProperty) {
19431
+ try {
19432
+ $defineProperty({}, 'a', { value: 1 });
19433
+ } catch (e) {
19434
+ // IE 8 has a broken defineProperty
19435
+ $defineProperty = false;
19436
+ }
19437
+ }
19436
19438
 
19437
- /** @type {import('./ref')} */
19438
- var ref = ReferenceError;
19439
+ var esDefineProperty = $defineProperty;
19439
19440
 
19440
19441
  /** @type {import('./syntax')} */
19441
19442
  var syntax = SyntaxError;
@@ -19443,80 +19444,139 @@ var syntax = SyntaxError;
19443
19444
  /** @type {import('./type')} */
19444
19445
  var type = TypeError;
19445
19446
 
19446
- /** @type {import('./uri')} */
19447
- var uri = URIError;
19448
-
19449
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
19450
- var shams = function hasSymbols() {
19451
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
19452
- if (typeof Symbol.iterator === 'symbol') { return true; }
19447
+ /** @type {import('./gOPD')} */
19448
+ var gOPD = Object.getOwnPropertyDescriptor;
19453
19449
 
19454
- var obj = {};
19455
- var sym = Symbol('test');
19456
- var symObj = Object(sym);
19457
- if (typeof sym === 'string') { return false; }
19450
+ /** @type {import('.')} */
19451
+ var $gOPD = gOPD;
19458
19452
 
19459
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
19460
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
19453
+ if ($gOPD) {
19454
+ try {
19455
+ $gOPD([], 'length');
19456
+ } catch (e) {
19457
+ // IE 8 has a broken gOPD
19458
+ $gOPD = null;
19459
+ }
19460
+ }
19461
19461
 
19462
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
19463
- // if (sym instanceof Symbol) { return false; }
19464
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
19465
- // if (!(symObj instanceof Symbol)) { return false; }
19462
+ var gopd = $gOPD;
19466
19463
 
19467
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
19468
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
19464
+ /** @type {import('.')} */
19465
+ var defineDataProperty = function defineDataProperty(
19466
+ obj,
19467
+ property,
19468
+ value
19469
+ ) {
19470
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
19471
+ throw new type('`obj` must be an object or a function`');
19472
+ }
19473
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
19474
+ throw new type('`property` must be a string or a symbol`');
19475
+ }
19476
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
19477
+ throw new type('`nonEnumerable`, if provided, must be a boolean or null');
19478
+ }
19479
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
19480
+ throw new type('`nonWritable`, if provided, must be a boolean or null');
19481
+ }
19482
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
19483
+ throw new type('`nonConfigurable`, if provided, must be a boolean or null');
19484
+ }
19485
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
19486
+ throw new type('`loose`, if provided, must be a boolean');
19487
+ }
19469
19488
 
19470
- var symVal = 42;
19471
- obj[sym] = symVal;
19472
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
19473
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
19489
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
19490
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
19491
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
19492
+ var loose = arguments.length > 6 ? arguments[6] : false;
19474
19493
 
19475
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
19494
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
19495
+ var desc = !!gopd && gopd(obj, property);
19476
19496
 
19477
- var syms = Object.getOwnPropertySymbols(obj);
19478
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
19497
+ if (esDefineProperty) {
19498
+ esDefineProperty(obj, property, {
19499
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
19500
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
19501
+ value: value,
19502
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
19503
+ });
19504
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
19505
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
19506
+ obj[property] = value; // eslint-disable-line no-param-reassign
19507
+ } else {
19508
+ throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
19509
+ }
19510
+ };
19479
19511
 
19480
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
19512
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
19513
+ return !!esDefineProperty;
19514
+ };
19481
19515
 
19482
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
19483
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
19484
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
19516
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
19517
+ // node v0.6 has a bug where array lengths can be Set but not Defined
19518
+ if (!esDefineProperty) {
19519
+ return null;
19520
+ }
19521
+ try {
19522
+ return esDefineProperty([], 'length', { value: 1 }).length !== 1;
19523
+ } catch (e) {
19524
+ // In Firefox 4-22, defining length on an array throws an exception.
19525
+ return true;
19485
19526
  }
19486
-
19487
- return true;
19488
19527
  };
19489
19528
 
19490
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
19529
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
19491
19530
 
19531
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
19492
19532
 
19493
- var hasSymbols = function hasNativeSymbols() {
19494
- if (typeof origSymbol !== 'function') { return false; }
19495
- if (typeof Symbol !== 'function') { return false; }
19496
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
19497
- if (typeof Symbol('bar') !== 'symbol') { return false; }
19533
+ var toStr$2 = Object.prototype.toString;
19534
+ var concat = Array.prototype.concat;
19498
19535
 
19499
- return shams();
19500
- };
19501
19536
 
19502
- var test = {
19503
- __proto__: null,
19504
- foo: {}
19537
+ var isFunction = function (fn) {
19538
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
19505
19539
  };
19506
19540
 
19507
- var $Object = Object;
19541
+ var supportsDescriptors = hasPropertyDescriptors_1();
19508
19542
 
19509
- /** @type {import('.')} */
19510
- var hasProto = function hasProto() {
19511
- // @ts-expect-error: TS errors on an inherited property for some reason
19512
- return { __proto__: test }.foo === test.foo
19513
- && !(test instanceof $Object);
19543
+ var defineProperty = function (object, name, value, predicate) {
19544
+ if (name in object) {
19545
+ if (predicate === true) {
19546
+ if (object[name] === value) {
19547
+ return;
19548
+ }
19549
+ } else if (!isFunction(predicate) || !predicate()) {
19550
+ return;
19551
+ }
19552
+ }
19553
+
19554
+ if (supportsDescriptors) {
19555
+ defineDataProperty(object, name, value, true);
19556
+ } else {
19557
+ defineDataProperty(object, name, value);
19558
+ }
19559
+ };
19560
+
19561
+ var defineProperties = function (object, map) {
19562
+ var predicates = arguments.length > 2 ? arguments[2] : {};
19563
+ var props = objectKeys(map);
19564
+ if (hasSymbols) {
19565
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
19566
+ }
19567
+ for (var i = 0; i < props.length; i += 1) {
19568
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
19569
+ }
19514
19570
  };
19515
19571
 
19572
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
19573
+
19574
+ var defineProperties_1 = defineProperties;
19575
+
19516
19576
  /* eslint no-invalid-this: 1 */
19517
19577
 
19518
19578
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
19519
- var toStr$2 = Object.prototype.toString;
19579
+ var toStr$3 = Object.prototype.toString;
19520
19580
  var max = Math.max;
19521
19581
  var funcType = '[object Function]';
19522
19582
 
@@ -19554,7 +19614,7 @@ var joiny = function (arr, joiner) {
19554
19614
 
19555
19615
  var implementation$1 = function bind(that) {
19556
19616
  var target = this;
19557
- if (typeof target !== 'function' || toStr$2.apply(target) !== funcType) {
19617
+ if (typeof target !== 'function' || toStr$3.apply(target) !== funcType) {
19558
19618
  throw new TypeError(ERROR_MESSAGE + target);
19559
19619
  }
19560
19620
  var args = slicy(arguments, 1);
@@ -19598,6 +19658,117 @@ var implementation$1 = function bind(that) {
19598
19658
 
19599
19659
  var functionBind = Function.prototype.bind || implementation$1;
19600
19660
 
19661
+ /** @type {import('.')} */
19662
+ var esErrors = Error;
19663
+
19664
+ /** @type {import('./eval')} */
19665
+ var _eval = EvalError;
19666
+
19667
+ /** @type {import('./range')} */
19668
+ var range = RangeError;
19669
+
19670
+ /** @type {import('./ref')} */
19671
+ var ref = ReferenceError;
19672
+
19673
+ /** @type {import('./uri')} */
19674
+ var uri = URIError;
19675
+
19676
+ /** @type {import('./shams')} */
19677
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
19678
+ var shams = function hasSymbols() {
19679
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
19680
+ if (typeof Symbol.iterator === 'symbol') { return true; }
19681
+
19682
+ /** @type {{ [k in symbol]?: unknown }} */
19683
+ var obj = {};
19684
+ var sym = Symbol('test');
19685
+ var symObj = Object(sym);
19686
+ if (typeof sym === 'string') { return false; }
19687
+
19688
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
19689
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
19690
+
19691
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
19692
+ // if (sym instanceof Symbol) { return false; }
19693
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
19694
+ // if (!(symObj instanceof Symbol)) { return false; }
19695
+
19696
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
19697
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
19698
+
19699
+ var symVal = 42;
19700
+ obj[sym] = symVal;
19701
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
19702
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
19703
+
19704
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
19705
+
19706
+ var syms = Object.getOwnPropertySymbols(obj);
19707
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
19708
+
19709
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
19710
+
19711
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
19712
+ // eslint-disable-next-line no-extra-parens
19713
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
19714
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
19715
+ }
19716
+
19717
+ return true;
19718
+ };
19719
+
19720
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
19721
+
19722
+
19723
+ /** @type {import('.')} */
19724
+ var hasSymbols$1 = function hasNativeSymbols() {
19725
+ if (typeof origSymbol !== 'function') { return false; }
19726
+ if (typeof Symbol !== 'function') { return false; }
19727
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
19728
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
19729
+
19730
+ return shams();
19731
+ };
19732
+
19733
+ /** @type {import('./functionCall')} */
19734
+ var functionCall = Function.prototype.call;
19735
+
19736
+ /** @type {import('./functionApply')} */
19737
+ var functionApply = Function.prototype.apply;
19738
+
19739
+ /** @type {import('./reflectApply')} */
19740
+ var reflectApply = typeof Reflect === 'function' && Reflect.apply;
19741
+
19742
+ /** @type {import('./actualApply')} */
19743
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
19744
+
19745
+ /** @type {import('.')} */
19746
+ var callBindApplyHelpers = function callBindBasic(args) {
19747
+ if (args.length < 1 || typeof args[0] !== 'function') {
19748
+ throw new type('a function is required');
19749
+ }
19750
+ return actualApply(functionBind, functionCall, args);
19751
+ };
19752
+
19753
+ // eslint-disable-next-line no-extra-parens, no-proto
19754
+ var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
19755
+
19756
+ // eslint-disable-next-line no-extra-parens
19757
+ var desc = hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
19758
+
19759
+ var $Object = Object;
19760
+ var $getPrototypeOf = $Object.getPrototypeOf;
19761
+
19762
+ /** @type {import('./get')} */
19763
+ var get = desc && typeof desc.get === 'function'
19764
+ ? callBindApplyHelpers([desc.get])
19765
+ : typeof $getPrototypeOf === 'function'
19766
+ ? /** @type {import('./get')} */ function getDunder(value) {
19767
+ // eslint-disable-next-line eqeqeq
19768
+ return $getPrototypeOf(value == null ? value : $Object(value));
19769
+ }
19770
+ : false;
19771
+
19601
19772
  var call = Function.prototype.call;
19602
19773
  var $hasOwn = Object.prototype.hasOwnProperty;
19603
19774
 
@@ -19624,19 +19795,13 @@ var getEvalledConstructor = function (expressionSyntax) {
19624
19795
  } catch (e) {}
19625
19796
  };
19626
19797
 
19627
- var $gOPD = Object.getOwnPropertyDescriptor;
19628
- if ($gOPD) {
19629
- try {
19630
- $gOPD({}, '');
19631
- } catch (e) {
19632
- $gOPD = null; // this is IE 8, which has a broken gOPD
19633
- }
19634
- }
19798
+
19799
+
19635
19800
 
19636
19801
  var throwTypeError = function () {
19637
19802
  throw new type();
19638
19803
  };
19639
- var ThrowTypeError = $gOPD
19804
+ var ThrowTypeError = gopd
19640
19805
  ? (function () {
19641
19806
  try {
19642
19807
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -19645,7 +19810,7 @@ var ThrowTypeError = $gOPD
19645
19810
  } catch (calleeThrows) {
19646
19811
  try {
19647
19812
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
19648
- return $gOPD(arguments, 'callee').get;
19813
+ return gopd(arguments, 'callee').get;
19649
19814
  } catch (gOPDthrows) {
19650
19815
  return throwTypeError;
19651
19816
  }
@@ -19653,14 +19818,15 @@ var ThrowTypeError = $gOPD
19653
19818
  }())
19654
19819
  : throwTypeError;
19655
19820
 
19656
- var hasSymbols$1 = hasSymbols();
19657
- var hasProto$1 = hasProto();
19821
+ var hasSymbols$2 = hasSymbols$1();
19822
+
19823
+
19824
+ var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
19825
+ || Object.getPrototypeOf
19826
+ || get;
19827
+
19828
+
19658
19829
 
19659
- var getProto = Object.getPrototypeOf || (
19660
- hasProto$1
19661
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
19662
- : null
19663
- );
19664
19830
 
19665
19831
  var needsEval = {};
19666
19832
 
@@ -19671,7 +19837,7 @@ var INTRINSICS = {
19671
19837
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
19672
19838
  '%Array%': Array,
19673
19839
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
19674
- '%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
19840
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
19675
19841
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
19676
19842
  '%AsyncFunction%': needsEval,
19677
19843
  '%AsyncGenerator%': needsEval,
@@ -19701,13 +19867,14 @@ var INTRINSICS = {
19701
19867
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
19702
19868
  '%isFinite%': isFinite,
19703
19869
  '%isNaN%': isNaN,
19704
- '%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
19870
+ '%IteratorPrototype%': hasSymbols$2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
19705
19871
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
19706
19872
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
19707
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
19873
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
19708
19874
  '%Math%': Math,
19709
19875
  '%Number%': Number,
19710
19876
  '%Object%': Object,
19877
+ '%Object.getOwnPropertyDescriptor%': gopd,
19711
19878
  '%parseFloat%': parseFloat,
19712
19879
  '%parseInt%': parseInt,
19713
19880
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
@@ -19717,11 +19884,11 @@ var INTRINSICS = {
19717
19884
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
19718
19885
  '%RegExp%': RegExp,
19719
19886
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
19720
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
19887
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
19721
19888
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
19722
19889
  '%String%': String,
19723
- '%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
19724
- '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
19890
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
19891
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
19725
19892
  '%SyntaxError%': syntax,
19726
19893
  '%ThrowTypeError%': ThrowTypeError,
19727
19894
  '%TypedArray%': TypedArray,
@@ -19733,7 +19900,11 @@ var INTRINSICS = {
19733
19900
  '%URIError%': uri,
19734
19901
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
19735
19902
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
19736
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
19903
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
19904
+
19905
+ '%Function.prototype.call%': functionCall,
19906
+ '%Function.prototype.apply%': functionApply,
19907
+ '%Object.defineProperty%': esDefineProperty
19737
19908
  };
19738
19909
 
19739
19910
  if (getProto) {
@@ -19828,11 +19999,11 @@ var LEGACY_ALIASES = {
19828
19999
 
19829
20000
 
19830
20001
 
19831
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
19832
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
19833
- var $replace = functionBind.call(Function.call, String.prototype.replace);
19834
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
19835
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
20002
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
20003
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
20004
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
20005
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
20006
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
19836
20007
 
19837
20008
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
19838
20009
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -19934,8 +20105,8 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
19934
20105
  }
19935
20106
  return void undefined$1;
19936
20107
  }
19937
- if ($gOPD && (i + 1) >= parts.length) {
19938
- var desc = $gOPD(value, part);
20108
+ if (gopd && (i + 1) >= parts.length) {
20109
+ var desc = gopd(value, part);
19939
20110
  isOwn = !!desc;
19940
20111
 
19941
20112
  // By convention, when a data property is converted to an accessor
@@ -19963,144 +20134,6 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
19963
20134
  return value;
19964
20135
  };
19965
20136
 
19966
- /** @type {import('.')} */
19967
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
19968
- if ($defineProperty) {
19969
- try {
19970
- $defineProperty({}, 'a', { value: 1 });
19971
- } catch (e) {
19972
- // IE 8 has a broken defineProperty
19973
- $defineProperty = false;
19974
- }
19975
- }
19976
-
19977
- var esDefineProperty = $defineProperty;
19978
-
19979
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
19980
-
19981
- if ($gOPD$1) {
19982
- try {
19983
- $gOPD$1([], 'length');
19984
- } catch (e) {
19985
- // IE 8 has a broken gOPD
19986
- $gOPD$1 = null;
19987
- }
19988
- }
19989
-
19990
- var gopd = $gOPD$1;
19991
-
19992
- /** @type {import('.')} */
19993
- var defineDataProperty = function defineDataProperty(
19994
- obj,
19995
- property,
19996
- value
19997
- ) {
19998
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
19999
- throw new type('`obj` must be an object or a function`');
20000
- }
20001
- if (typeof property !== 'string' && typeof property !== 'symbol') {
20002
- throw new type('`property` must be a string or a symbol`');
20003
- }
20004
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
20005
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
20006
- }
20007
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
20008
- throw new type('`nonWritable`, if provided, must be a boolean or null');
20009
- }
20010
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
20011
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
20012
- }
20013
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20014
- throw new type('`loose`, if provided, must be a boolean');
20015
- }
20016
-
20017
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20018
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
20019
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20020
- var loose = arguments.length > 6 ? arguments[6] : false;
20021
-
20022
- /* @type {false | TypedPropertyDescriptor<unknown>} */
20023
- var desc = !!gopd && gopd(obj, property);
20024
-
20025
- if (esDefineProperty) {
20026
- esDefineProperty(obj, property, {
20027
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20028
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20029
- value: value,
20030
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
20031
- });
20032
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20033
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20034
- obj[property] = value; // eslint-disable-line no-param-reassign
20035
- } else {
20036
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20037
- }
20038
- };
20039
-
20040
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
20041
- return !!esDefineProperty;
20042
- };
20043
-
20044
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20045
- // node v0.6 has a bug where array lengths can be Set but not Defined
20046
- if (!esDefineProperty) {
20047
- return null;
20048
- }
20049
- try {
20050
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20051
- } catch (e) {
20052
- // In Firefox 4-22, defining length on an array throws an exception.
20053
- return true;
20054
- }
20055
- };
20056
-
20057
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20058
-
20059
- var hasSymbols$2 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20060
-
20061
- var toStr$3 = Object.prototype.toString;
20062
- var concat = Array.prototype.concat;
20063
-
20064
-
20065
- var isFunction = function (fn) {
20066
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
20067
- };
20068
-
20069
- var supportsDescriptors = hasPropertyDescriptors_1();
20070
-
20071
- var defineProperty = function (object, name, value, predicate) {
20072
- if (name in object) {
20073
- if (predicate === true) {
20074
- if (object[name] === value) {
20075
- return;
20076
- }
20077
- } else if (!isFunction(predicate) || !predicate()) {
20078
- return;
20079
- }
20080
- }
20081
-
20082
- if (supportsDescriptors) {
20083
- defineDataProperty(object, name, value, true);
20084
- } else {
20085
- defineDataProperty(object, name, value);
20086
- }
20087
- };
20088
-
20089
- var defineProperties = function (object, map) {
20090
- var predicates = arguments.length > 2 ? arguments[2] : {};
20091
- var props = objectKeys(map);
20092
- if (hasSymbols$2) {
20093
- props = concat.call(props, Object.getOwnPropertySymbols(map));
20094
- }
20095
- for (var i = 0; i < props.length; i += 1) {
20096
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20097
- }
20098
- };
20099
-
20100
- defineProperties.supportsDescriptors = !!supportsDescriptors;
20101
-
20102
- var defineProperties_1 = defineProperties;
20103
-
20104
20137
  var hasDescriptors = hasPropertyDescriptors_1();
20105
20138
 
20106
20139
 
@@ -20198,6 +20231,20 @@ var isInteger = function isInteger(argument) {
20198
20231
  return $floor$1(absValue) === absValue;
20199
20232
  };
20200
20233
 
20234
+ var test = {
20235
+ __proto__: null,
20236
+ foo: {}
20237
+ };
20238
+
20239
+ var $Object$1 = Object;
20240
+
20241
+ /** @type {import('.')} */
20242
+ var hasProto = function hasProto() {
20243
+ // @ts-expect-error: TS errors on an inherited property for some reason
20244
+ return { __proto__: test }.foo === test.foo
20245
+ && !(test instanceof $Object$1);
20246
+ };
20247
+
20201
20248
  var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20202
20249
 
20203
20250
 
@@ -20207,10 +20254,10 @@ var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20207
20254
 
20208
20255
  var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
20209
20256
 
20210
- var hasProto$2 = hasProto();
20257
+ var hasProto$1 = hasProto();
20211
20258
 
20212
20259
  var $setProto = getIntrinsic('%Object.setPrototypeOf%', true) || (
20213
- hasProto$2
20260
+ hasProto$1
20214
20261
  ? function (O, proto) {
20215
20262
  O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
20216
20263
  return O;
@@ -21009,10 +21056,10 @@ var SameValue = function SameValue(x, y) {
21009
21056
  var ToBoolean = function ToBoolean(value) { return !!value; };
21010
21057
 
21011
21058
  var fnToStr = Function.prototype.toString;
21012
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21059
+ var reflectApply$1 = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21013
21060
  var badArrayLike;
21014
21061
  var isCallableMarker;
21015
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
21062
+ if (typeof reflectApply$1 === 'function' && typeof Object.defineProperty === 'function') {
21016
21063
  try {
21017
21064
  badArrayLike = Object.defineProperty({}, 'length', {
21018
21065
  get: function () {
@@ -21021,14 +21068,14 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
21021
21068
  });
21022
21069
  isCallableMarker = {};
21023
21070
  // eslint-disable-next-line no-throw-literal
21024
- reflectApply(function () { throw 42; }, null, badArrayLike);
21071
+ reflectApply$1(function () { throw 42; }, null, badArrayLike);
21025
21072
  } catch (_) {
21026
21073
  if (_ !== isCallableMarker) {
21027
- reflectApply = null;
21074
+ reflectApply$1 = null;
21028
21075
  }
21029
21076
  }
21030
21077
  } else {
21031
- reflectApply = null;
21078
+ reflectApply$1 = null;
21032
21079
  }
21033
21080
 
21034
21081
  var constructorRegex = /^\s*class\b/;
@@ -21085,13 +21132,13 @@ if (typeof document === 'object') {
21085
21132
  }
21086
21133
  }
21087
21134
 
21088
- var isCallable = reflectApply
21135
+ var isCallable = reflectApply$1
21089
21136
  ? function isCallable(value) {
21090
21137
  if (isDDA(value)) { return true; }
21091
21138
  if (!value) { return false; }
21092
21139
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
21093
21140
  try {
21094
- reflectApply(value, null, badArrayLike);
21141
+ reflectApply$1(value, null, badArrayLike);
21095
21142
  } catch (e) {
21096
21143
  if (e !== isCallableMarker) { return false; }
21097
21144
  }
@@ -21614,12 +21661,65 @@ var isDateObject = function isDateObject(value) {
21614
21661
  return hasToStringTag$1 ? tryDateObject(value) : toStr$7.call(value) === dateClass;
21615
21662
  };
21616
21663
 
21664
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
21665
+ var shams$2 = function hasSymbols() {
21666
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
21667
+ if (typeof Symbol.iterator === 'symbol') { return true; }
21668
+
21669
+ var obj = {};
21670
+ var sym = Symbol('test');
21671
+ var symObj = Object(sym);
21672
+ if (typeof sym === 'string') { return false; }
21673
+
21674
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
21675
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
21676
+
21677
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
21678
+ // if (sym instanceof Symbol) { return false; }
21679
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
21680
+ // if (!(symObj instanceof Symbol)) { return false; }
21681
+
21682
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
21683
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
21684
+
21685
+ var symVal = 42;
21686
+ obj[sym] = symVal;
21687
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
21688
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
21689
+
21690
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
21691
+
21692
+ var syms = Object.getOwnPropertySymbols(obj);
21693
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
21694
+
21695
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
21696
+
21697
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
21698
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
21699
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
21700
+ }
21701
+
21702
+ return true;
21703
+ };
21704
+
21705
+ var origSymbol$1 = typeof Symbol !== 'undefined' && Symbol;
21706
+
21707
+
21708
+ var hasSymbols$3 = function hasNativeSymbols() {
21709
+ if (typeof origSymbol$1 !== 'function') { return false; }
21710
+ if (typeof Symbol !== 'function') { return false; }
21711
+ if (typeof origSymbol$1('foo') !== 'symbol') { return false; }
21712
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
21713
+
21714
+ return shams$2();
21715
+ };
21716
+
21617
21717
  var isSymbol$1 = createCommonjsModule(function (module) {
21618
21718
 
21619
21719
  var toStr = Object.prototype.toString;
21620
- var hasSymbols$1 = hasSymbols();
21720
+ var hasSymbols = hasSymbols$3();
21621
21721
 
21622
- if (hasSymbols$1) {
21722
+ if (hasSymbols) {
21623
21723
  var symToStr = Symbol.prototype.toString;
21624
21724
  var symStringRegex = /^Symbol\(.*\)$/;
21625
21725
  var isSymbolObject = function isRealSymbolObject(value) {
@@ -21651,7 +21751,7 @@ if (hasSymbols$1) {
21651
21751
  }
21652
21752
  });
21653
21753
 
21654
- var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
21754
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
21655
21755
 
21656
21756
 
21657
21757
 
@@ -21705,7 +21805,7 @@ var es2015 = function ToPrimitive(input) {
21705
21805
  }
21706
21806
 
21707
21807
  var exoticToPrim;
21708
- if (hasSymbols$3) {
21808
+ if (hasSymbols$4) {
21709
21809
  if (Symbol.toPrimitive) {
21710
21810
  exoticToPrim = GetMethod(input, Symbol.toPrimitive);
21711
21811
  } else if (isSymbol$1(input)) {
@@ -21759,7 +21859,7 @@ if (hasToStringTag$2) {
21759
21859
  }
21760
21860
 
21761
21861
  var $toString = callBound('Object.prototype.toString');
21762
- var gOPD = Object.getOwnPropertyDescriptor;
21862
+ var gOPD$1 = Object.getOwnPropertyDescriptor;
21763
21863
  var regexClass = '[object RegExp]';
21764
21864
 
21765
21865
  var isRegex = hasToStringTag$2
@@ -21769,7 +21869,7 @@ var isRegex = hasToStringTag$2
21769
21869
  return false;
21770
21870
  }
21771
21871
 
21772
- var descriptor = gOPD(value, 'lastIndex');
21872
+ var descriptor = gOPD$1(value, 'lastIndex');
21773
21873
  var hasLastIndexDataProperty = descriptor && has$2(descriptor, 'value');
21774
21874
  if (!hasLastIndexDataProperty) {
21775
21875
  return false;