@mycause/ui 1.1.0 → 1.1.1

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/index.js CHANGED
@@ -20107,16 +20107,17 @@ keysShim$1.shim = function shimObjectKeys() {
20107
20107
  var objectKeys = keysShim$1;
20108
20108
 
20109
20109
  /** @type {import('.')} */
20110
- var esErrors = Error;
20111
-
20112
- /** @type {import('./eval')} */
20113
- var _eval = EvalError;
20114
-
20115
- /** @type {import('./range')} */
20116
- var range = RangeError;
20110
+ var $defineProperty = Object.defineProperty || false;
20111
+ if ($defineProperty) {
20112
+ try {
20113
+ $defineProperty({}, 'a', { value: 1 });
20114
+ } catch (e) {
20115
+ // IE 8 has a broken defineProperty
20116
+ $defineProperty = false;
20117
+ }
20118
+ }
20117
20119
 
20118
- /** @type {import('./ref')} */
20119
- var ref = ReferenceError;
20120
+ var esDefineProperty = $defineProperty;
20120
20121
 
20121
20122
  /** @type {import('./syntax')} */
20122
20123
  var syntax = SyntaxError;
@@ -20124,80 +20125,139 @@ var syntax = SyntaxError;
20124
20125
  /** @type {import('./type')} */
20125
20126
  var type = TypeError;
20126
20127
 
20127
- /** @type {import('./uri')} */
20128
- var uri = URIError;
20129
-
20130
- /* eslint complexity: [2, 18], max-statements: [2, 33] */
20131
- var shams = function hasSymbols() {
20132
- if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
20133
- if (typeof Symbol.iterator === 'symbol') { return true; }
20128
+ /** @type {import('./gOPD')} */
20129
+ var gOPD = Object.getOwnPropertyDescriptor;
20134
20130
 
20135
- var obj = {};
20136
- var sym = Symbol('test');
20137
- var symObj = Object(sym);
20138
- if (typeof sym === 'string') { return false; }
20131
+ /** @type {import('.')} */
20132
+ var $gOPD = gOPD;
20139
20133
 
20140
- if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
20141
- if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
20134
+ if ($gOPD) {
20135
+ try {
20136
+ $gOPD([], 'length');
20137
+ } catch (e) {
20138
+ // IE 8 has a broken gOPD
20139
+ $gOPD = null;
20140
+ }
20141
+ }
20142
20142
 
20143
- // temp disabled per https://github.com/ljharb/object.assign/issues/17
20144
- // if (sym instanceof Symbol) { return false; }
20145
- // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
20146
- // if (!(symObj instanceof Symbol)) { return false; }
20143
+ var gopd = $gOPD;
20147
20144
 
20148
- // if (typeof Symbol.prototype.toString !== 'function') { return false; }
20149
- // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
20145
+ /** @type {import('.')} */
20146
+ var defineDataProperty = function defineDataProperty(
20147
+ obj,
20148
+ property,
20149
+ value
20150
+ ) {
20151
+ if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
20152
+ throw new type('`obj` must be an object or a function`');
20153
+ }
20154
+ if (typeof property !== 'string' && typeof property !== 'symbol') {
20155
+ throw new type('`property` must be a string or a symbol`');
20156
+ }
20157
+ if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
20158
+ throw new type('`nonEnumerable`, if provided, must be a boolean or null');
20159
+ }
20160
+ if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
20161
+ throw new type('`nonWritable`, if provided, must be a boolean or null');
20162
+ }
20163
+ if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
20164
+ throw new type('`nonConfigurable`, if provided, must be a boolean or null');
20165
+ }
20166
+ if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20167
+ throw new type('`loose`, if provided, must be a boolean');
20168
+ }
20150
20169
 
20151
- var symVal = 42;
20152
- obj[sym] = symVal;
20153
- for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
20154
- if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
20170
+ var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20171
+ var nonWritable = arguments.length > 4 ? arguments[4] : null;
20172
+ var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20173
+ var loose = arguments.length > 6 ? arguments[6] : false;
20155
20174
 
20156
- if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
20175
+ /* @type {false | TypedPropertyDescriptor<unknown>} */
20176
+ var desc = !!gopd && gopd(obj, property);
20157
20177
 
20158
- var syms = Object.getOwnPropertySymbols(obj);
20159
- if (syms.length !== 1 || syms[0] !== sym) { return false; }
20178
+ if (esDefineProperty) {
20179
+ esDefineProperty(obj, property, {
20180
+ configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20181
+ enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20182
+ value: value,
20183
+ writable: nonWritable === null && desc ? desc.writable : !nonWritable
20184
+ });
20185
+ } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20186
+ // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20187
+ obj[property] = value; // eslint-disable-line no-param-reassign
20188
+ } else {
20189
+ throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20190
+ }
20191
+ };
20160
20192
 
20161
- if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
20193
+ var hasPropertyDescriptors = function hasPropertyDescriptors() {
20194
+ return !!esDefineProperty;
20195
+ };
20162
20196
 
20163
- if (typeof Object.getOwnPropertyDescriptor === 'function') {
20164
- var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
20165
- if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
20197
+ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20198
+ // node v0.6 has a bug where array lengths can be Set but not Defined
20199
+ if (!esDefineProperty) {
20200
+ return null;
20201
+ }
20202
+ try {
20203
+ return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20204
+ } catch (e) {
20205
+ // In Firefox 4-22, defining length on an array throws an exception.
20206
+ return true;
20166
20207
  }
20167
-
20168
- return true;
20169
20208
  };
20170
20209
 
20171
- var origSymbol = typeof Symbol !== 'undefined' && Symbol;
20210
+ var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20172
20211
 
20212
+ var hasSymbols = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20173
20213
 
20174
- var hasSymbols = function hasNativeSymbols() {
20175
- if (typeof origSymbol !== 'function') { return false; }
20176
- if (typeof Symbol !== 'function') { return false; }
20177
- if (typeof origSymbol('foo') !== 'symbol') { return false; }
20178
- if (typeof Symbol('bar') !== 'symbol') { return false; }
20214
+ var toStr$2 = Object.prototype.toString;
20215
+ var concat = Array.prototype.concat;
20179
20216
 
20180
- return shams();
20181
- };
20182
20217
 
20183
- var test = {
20184
- __proto__: null,
20185
- foo: {}
20218
+ var isFunction = function (fn) {
20219
+ return typeof fn === 'function' && toStr$2.call(fn) === '[object Function]';
20186
20220
  };
20187
20221
 
20188
- var $Object = Object;
20222
+ var supportsDescriptors = hasPropertyDescriptors_1();
20189
20223
 
20190
- /** @type {import('.')} */
20191
- var hasProto = function hasProto() {
20192
- // @ts-expect-error: TS errors on an inherited property for some reason
20193
- return { __proto__: test }.foo === test.foo
20194
- && !(test instanceof $Object);
20224
+ var defineProperty = function (object, name, value, predicate) {
20225
+ if (name in object) {
20226
+ if (predicate === true) {
20227
+ if (object[name] === value) {
20228
+ return;
20229
+ }
20230
+ } else if (!isFunction(predicate) || !predicate()) {
20231
+ return;
20232
+ }
20233
+ }
20234
+
20235
+ if (supportsDescriptors) {
20236
+ defineDataProperty(object, name, value, true);
20237
+ } else {
20238
+ defineDataProperty(object, name, value);
20239
+ }
20240
+ };
20241
+
20242
+ var defineProperties = function (object, map) {
20243
+ var predicates = arguments.length > 2 ? arguments[2] : {};
20244
+ var props = objectKeys(map);
20245
+ if (hasSymbols) {
20246
+ props = concat.call(props, Object.getOwnPropertySymbols(map));
20247
+ }
20248
+ for (var i = 0; i < props.length; i += 1) {
20249
+ defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20250
+ }
20195
20251
  };
20196
20252
 
20253
+ defineProperties.supportsDescriptors = !!supportsDescriptors;
20254
+
20255
+ var defineProperties_1 = defineProperties;
20256
+
20197
20257
  /* eslint no-invalid-this: 1 */
20198
20258
 
20199
20259
  var ERROR_MESSAGE = 'Function.prototype.bind called on incompatible ';
20200
- var toStr$2 = Object.prototype.toString;
20260
+ var toStr$3 = Object.prototype.toString;
20201
20261
  var max = Math.max;
20202
20262
  var funcType = '[object Function]';
20203
20263
 
@@ -20235,7 +20295,7 @@ var joiny = function (arr, joiner) {
20235
20295
 
20236
20296
  var implementation$1 = function bind(that) {
20237
20297
  var target = this;
20238
- if (typeof target !== 'function' || toStr$2.apply(target) !== funcType) {
20298
+ if (typeof target !== 'function' || toStr$3.apply(target) !== funcType) {
20239
20299
  throw new TypeError(ERROR_MESSAGE + target);
20240
20300
  }
20241
20301
  var args = slicy(arguments, 1);
@@ -20279,6 +20339,117 @@ var implementation$1 = function bind(that) {
20279
20339
 
20280
20340
  var functionBind = Function.prototype.bind || implementation$1;
20281
20341
 
20342
+ /** @type {import('.')} */
20343
+ var esErrors = Error;
20344
+
20345
+ /** @type {import('./eval')} */
20346
+ var _eval = EvalError;
20347
+
20348
+ /** @type {import('./range')} */
20349
+ var range = RangeError;
20350
+
20351
+ /** @type {import('./ref')} */
20352
+ var ref = ReferenceError;
20353
+
20354
+ /** @type {import('./uri')} */
20355
+ var uri = URIError;
20356
+
20357
+ /** @type {import('./shams')} */
20358
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
20359
+ var shams = function hasSymbols() {
20360
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
20361
+ if (typeof Symbol.iterator === 'symbol') { return true; }
20362
+
20363
+ /** @type {{ [k in symbol]?: unknown }} */
20364
+ var obj = {};
20365
+ var sym = Symbol('test');
20366
+ var symObj = Object(sym);
20367
+ if (typeof sym === 'string') { return false; }
20368
+
20369
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
20370
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
20371
+
20372
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
20373
+ // if (sym instanceof Symbol) { return false; }
20374
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
20375
+ // if (!(symObj instanceof Symbol)) { return false; }
20376
+
20377
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
20378
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
20379
+
20380
+ var symVal = 42;
20381
+ obj[sym] = symVal;
20382
+ for (var _ in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
20383
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
20384
+
20385
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
20386
+
20387
+ var syms = Object.getOwnPropertySymbols(obj);
20388
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
20389
+
20390
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
20391
+
20392
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
20393
+ // eslint-disable-next-line no-extra-parens
20394
+ var descriptor = /** @type {PropertyDescriptor} */ (Object.getOwnPropertyDescriptor(obj, sym));
20395
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
20396
+ }
20397
+
20398
+ return true;
20399
+ };
20400
+
20401
+ var origSymbol = typeof Symbol !== 'undefined' && Symbol;
20402
+
20403
+
20404
+ /** @type {import('.')} */
20405
+ var hasSymbols$1 = function hasNativeSymbols() {
20406
+ if (typeof origSymbol !== 'function') { return false; }
20407
+ if (typeof Symbol !== 'function') { return false; }
20408
+ if (typeof origSymbol('foo') !== 'symbol') { return false; }
20409
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
20410
+
20411
+ return shams();
20412
+ };
20413
+
20414
+ /** @type {import('./functionCall')} */
20415
+ var functionCall = Function.prototype.call;
20416
+
20417
+ /** @type {import('./functionApply')} */
20418
+ var functionApply = Function.prototype.apply;
20419
+
20420
+ /** @type {import('./reflectApply')} */
20421
+ var reflectApply = typeof Reflect === 'function' && Reflect.apply;
20422
+
20423
+ /** @type {import('./actualApply')} */
20424
+ var actualApply = reflectApply || functionBind.call(functionCall, functionApply);
20425
+
20426
+ /** @type {import('.')} */
20427
+ var callBindApplyHelpers = function callBindBasic(args) {
20428
+ if (args.length < 1 || typeof args[0] !== 'function') {
20429
+ throw new type('a function is required');
20430
+ }
20431
+ return actualApply(functionBind, functionCall, args);
20432
+ };
20433
+
20434
+ // eslint-disable-next-line no-extra-parens, no-proto
20435
+ var hasProtoAccessor = /** @type {{ __proto__?: typeof Array.prototype }} */ ([]).__proto__ === Array.prototype;
20436
+
20437
+ // eslint-disable-next-line no-extra-parens
20438
+ var desc = hasProtoAccessor && gopd && gopd(Object.prototype, /** @type {keyof typeof Object.prototype} */ ('__proto__'));
20439
+
20440
+ var $Object = Object;
20441
+ var $getPrototypeOf = $Object.getPrototypeOf;
20442
+
20443
+ /** @type {import('./get')} */
20444
+ var get = desc && typeof desc.get === 'function'
20445
+ ? callBindApplyHelpers([desc.get])
20446
+ : typeof $getPrototypeOf === 'function'
20447
+ ? /** @type {import('./get')} */ function getDunder(value) {
20448
+ // eslint-disable-next-line eqeqeq
20449
+ return $getPrototypeOf(value == null ? value : $Object(value));
20450
+ }
20451
+ : false;
20452
+
20282
20453
  var call = Function.prototype.call;
20283
20454
  var $hasOwn = Object.prototype.hasOwnProperty;
20284
20455
 
@@ -20305,19 +20476,13 @@ var getEvalledConstructor = function (expressionSyntax) {
20305
20476
  } catch (e) {}
20306
20477
  };
20307
20478
 
20308
- var $gOPD = Object.getOwnPropertyDescriptor;
20309
- if ($gOPD) {
20310
- try {
20311
- $gOPD({}, '');
20312
- } catch (e) {
20313
- $gOPD = null; // this is IE 8, which has a broken gOPD
20314
- }
20315
- }
20479
+
20480
+
20316
20481
 
20317
20482
  var throwTypeError = function () {
20318
20483
  throw new type();
20319
20484
  };
20320
- var ThrowTypeError = $gOPD
20485
+ var ThrowTypeError = gopd
20321
20486
  ? (function () {
20322
20487
  try {
20323
20488
  // eslint-disable-next-line no-unused-expressions, no-caller, no-restricted-properties
@@ -20326,7 +20491,7 @@ var ThrowTypeError = $gOPD
20326
20491
  } catch (calleeThrows) {
20327
20492
  try {
20328
20493
  // IE 8 throws on Object.getOwnPropertyDescriptor(arguments, '')
20329
- return $gOPD(arguments, 'callee').get;
20494
+ return gopd(arguments, 'callee').get;
20330
20495
  } catch (gOPDthrows) {
20331
20496
  return throwTypeError;
20332
20497
  }
@@ -20334,14 +20499,15 @@ var ThrowTypeError = $gOPD
20334
20499
  }())
20335
20500
  : throwTypeError;
20336
20501
 
20337
- var hasSymbols$1 = hasSymbols();
20338
- var hasProto$1 = hasProto();
20502
+ var hasSymbols$2 = hasSymbols$1();
20503
+
20504
+
20505
+ var getProto = (typeof Reflect === 'function' && Reflect.getPrototypeOf)
20506
+ || Object.getPrototypeOf
20507
+ || get;
20508
+
20509
+
20339
20510
 
20340
- var getProto = Object.getPrototypeOf || (
20341
- hasProto$1
20342
- ? function (x) { return x.__proto__; } // eslint-disable-line no-proto
20343
- : null
20344
- );
20345
20511
 
20346
20512
  var needsEval = {};
20347
20513
 
@@ -20352,7 +20518,7 @@ var INTRINSICS = {
20352
20518
  '%AggregateError%': typeof AggregateError === 'undefined' ? undefined$1 : AggregateError,
20353
20519
  '%Array%': Array,
20354
20520
  '%ArrayBuffer%': typeof ArrayBuffer === 'undefined' ? undefined$1 : ArrayBuffer,
20355
- '%ArrayIteratorPrototype%': hasSymbols$1 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
20521
+ '%ArrayIteratorPrototype%': hasSymbols$2 && getProto ? getProto([][Symbol.iterator]()) : undefined$1,
20356
20522
  '%AsyncFromSyncIteratorPrototype%': undefined$1,
20357
20523
  '%AsyncFunction%': needsEval,
20358
20524
  '%AsyncGenerator%': needsEval,
@@ -20382,13 +20548,14 @@ var INTRINSICS = {
20382
20548
  '%Int32Array%': typeof Int32Array === 'undefined' ? undefined$1 : Int32Array,
20383
20549
  '%isFinite%': isFinite,
20384
20550
  '%isNaN%': isNaN,
20385
- '%IteratorPrototype%': hasSymbols$1 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
20551
+ '%IteratorPrototype%': hasSymbols$2 && getProto ? getProto(getProto([][Symbol.iterator]())) : undefined$1,
20386
20552
  '%JSON%': typeof JSON === 'object' ? JSON : undefined$1,
20387
20553
  '%Map%': typeof Map === 'undefined' ? undefined$1 : Map,
20388
- '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
20554
+ '%MapIteratorPrototype%': typeof Map === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Map()[Symbol.iterator]()),
20389
20555
  '%Math%': Math,
20390
20556
  '%Number%': Number,
20391
20557
  '%Object%': Object,
20558
+ '%Object.getOwnPropertyDescriptor%': gopd,
20392
20559
  '%parseFloat%': parseFloat,
20393
20560
  '%parseInt%': parseInt,
20394
20561
  '%Promise%': typeof Promise === 'undefined' ? undefined$1 : Promise,
@@ -20398,11 +20565,11 @@ var INTRINSICS = {
20398
20565
  '%Reflect%': typeof Reflect === 'undefined' ? undefined$1 : Reflect,
20399
20566
  '%RegExp%': RegExp,
20400
20567
  '%Set%': typeof Set === 'undefined' ? undefined$1 : Set,
20401
- '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$1 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
20568
+ '%SetIteratorPrototype%': typeof Set === 'undefined' || !hasSymbols$2 || !getProto ? undefined$1 : getProto(new Set()[Symbol.iterator]()),
20402
20569
  '%SharedArrayBuffer%': typeof SharedArrayBuffer === 'undefined' ? undefined$1 : SharedArrayBuffer,
20403
20570
  '%String%': String,
20404
- '%StringIteratorPrototype%': hasSymbols$1 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
20405
- '%Symbol%': hasSymbols$1 ? Symbol : undefined$1,
20571
+ '%StringIteratorPrototype%': hasSymbols$2 && getProto ? getProto(''[Symbol.iterator]()) : undefined$1,
20572
+ '%Symbol%': hasSymbols$2 ? Symbol : undefined$1,
20406
20573
  '%SyntaxError%': syntax,
20407
20574
  '%ThrowTypeError%': ThrowTypeError,
20408
20575
  '%TypedArray%': TypedArray,
@@ -20414,7 +20581,11 @@ var INTRINSICS = {
20414
20581
  '%URIError%': uri,
20415
20582
  '%WeakMap%': typeof WeakMap === 'undefined' ? undefined$1 : WeakMap,
20416
20583
  '%WeakRef%': typeof WeakRef === 'undefined' ? undefined$1 : WeakRef,
20417
- '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet
20584
+ '%WeakSet%': typeof WeakSet === 'undefined' ? undefined$1 : WeakSet,
20585
+
20586
+ '%Function.prototype.call%': functionCall,
20587
+ '%Function.prototype.apply%': functionApply,
20588
+ '%Object.defineProperty%': esDefineProperty
20418
20589
  };
20419
20590
 
20420
20591
  if (getProto) {
@@ -20509,11 +20680,11 @@ var LEGACY_ALIASES = {
20509
20680
 
20510
20681
 
20511
20682
 
20512
- var $concat = functionBind.call(Function.call, Array.prototype.concat);
20513
- var $spliceApply = functionBind.call(Function.apply, Array.prototype.splice);
20514
- var $replace = functionBind.call(Function.call, String.prototype.replace);
20515
- var $strSlice = functionBind.call(Function.call, String.prototype.slice);
20516
- var $exec = functionBind.call(Function.call, RegExp.prototype.exec);
20683
+ var $concat = functionBind.call(functionCall, Array.prototype.concat);
20684
+ var $spliceApply = functionBind.call(functionApply, Array.prototype.splice);
20685
+ var $replace = functionBind.call(functionCall, String.prototype.replace);
20686
+ var $strSlice = functionBind.call(functionCall, String.prototype.slice);
20687
+ var $exec = functionBind.call(functionCall, RegExp.prototype.exec);
20517
20688
 
20518
20689
  /* adapted from https://github.com/lodash/lodash/blob/4.17.15/dist/lodash.js#L6735-L6744 */
20519
20690
  var rePropName = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g;
@@ -20615,8 +20786,8 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
20615
20786
  }
20616
20787
  return void undefined$1;
20617
20788
  }
20618
- if ($gOPD && (i + 1) >= parts.length) {
20619
- var desc = $gOPD(value, part);
20789
+ if (gopd && (i + 1) >= parts.length) {
20790
+ var desc = gopd(value, part);
20620
20791
  isOwn = !!desc;
20621
20792
 
20622
20793
  // By convention, when a data property is converted to an accessor
@@ -20644,144 +20815,6 @@ var getIntrinsic = function GetIntrinsic(name, allowMissing) {
20644
20815
  return value;
20645
20816
  };
20646
20817
 
20647
- /** @type {import('.')} */
20648
- var $defineProperty = getIntrinsic('%Object.defineProperty%', true) || false;
20649
- if ($defineProperty) {
20650
- try {
20651
- $defineProperty({}, 'a', { value: 1 });
20652
- } catch (e) {
20653
- // IE 8 has a broken defineProperty
20654
- $defineProperty = false;
20655
- }
20656
- }
20657
-
20658
- var esDefineProperty = $defineProperty;
20659
-
20660
- var $gOPD$1 = getIntrinsic('%Object.getOwnPropertyDescriptor%', true);
20661
-
20662
- if ($gOPD$1) {
20663
- try {
20664
- $gOPD$1([], 'length');
20665
- } catch (e) {
20666
- // IE 8 has a broken gOPD
20667
- $gOPD$1 = null;
20668
- }
20669
- }
20670
-
20671
- var gopd = $gOPD$1;
20672
-
20673
- /** @type {import('.')} */
20674
- var defineDataProperty = function defineDataProperty(
20675
- obj,
20676
- property,
20677
- value
20678
- ) {
20679
- if (!obj || (typeof obj !== 'object' && typeof obj !== 'function')) {
20680
- throw new type('`obj` must be an object or a function`');
20681
- }
20682
- if (typeof property !== 'string' && typeof property !== 'symbol') {
20683
- throw new type('`property` must be a string or a symbol`');
20684
- }
20685
- if (arguments.length > 3 && typeof arguments[3] !== 'boolean' && arguments[3] !== null) {
20686
- throw new type('`nonEnumerable`, if provided, must be a boolean or null');
20687
- }
20688
- if (arguments.length > 4 && typeof arguments[4] !== 'boolean' && arguments[4] !== null) {
20689
- throw new type('`nonWritable`, if provided, must be a boolean or null');
20690
- }
20691
- if (arguments.length > 5 && typeof arguments[5] !== 'boolean' && arguments[5] !== null) {
20692
- throw new type('`nonConfigurable`, if provided, must be a boolean or null');
20693
- }
20694
- if (arguments.length > 6 && typeof arguments[6] !== 'boolean') {
20695
- throw new type('`loose`, if provided, must be a boolean');
20696
- }
20697
-
20698
- var nonEnumerable = arguments.length > 3 ? arguments[3] : null;
20699
- var nonWritable = arguments.length > 4 ? arguments[4] : null;
20700
- var nonConfigurable = arguments.length > 5 ? arguments[5] : null;
20701
- var loose = arguments.length > 6 ? arguments[6] : false;
20702
-
20703
- /* @type {false | TypedPropertyDescriptor<unknown>} */
20704
- var desc = !!gopd && gopd(obj, property);
20705
-
20706
- if (esDefineProperty) {
20707
- esDefineProperty(obj, property, {
20708
- configurable: nonConfigurable === null && desc ? desc.configurable : !nonConfigurable,
20709
- enumerable: nonEnumerable === null && desc ? desc.enumerable : !nonEnumerable,
20710
- value: value,
20711
- writable: nonWritable === null && desc ? desc.writable : !nonWritable
20712
- });
20713
- } else if (loose || (!nonEnumerable && !nonWritable && !nonConfigurable)) {
20714
- // must fall back to [[Set]], and was not explicitly asked to make non-enumerable, non-writable, or non-configurable
20715
- obj[property] = value; // eslint-disable-line no-param-reassign
20716
- } else {
20717
- throw new syntax('This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.');
20718
- }
20719
- };
20720
-
20721
- var hasPropertyDescriptors = function hasPropertyDescriptors() {
20722
- return !!esDefineProperty;
20723
- };
20724
-
20725
- hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBug() {
20726
- // node v0.6 has a bug where array lengths can be Set but not Defined
20727
- if (!esDefineProperty) {
20728
- return null;
20729
- }
20730
- try {
20731
- return esDefineProperty([], 'length', { value: 1 }).length !== 1;
20732
- } catch (e) {
20733
- // In Firefox 4-22, defining length on an array throws an exception.
20734
- return true;
20735
- }
20736
- };
20737
-
20738
- var hasPropertyDescriptors_1 = hasPropertyDescriptors;
20739
-
20740
- var hasSymbols$2 = typeof Symbol === 'function' && typeof Symbol('foo') === 'symbol';
20741
-
20742
- var toStr$3 = Object.prototype.toString;
20743
- var concat = Array.prototype.concat;
20744
-
20745
-
20746
- var isFunction = function (fn) {
20747
- return typeof fn === 'function' && toStr$3.call(fn) === '[object Function]';
20748
- };
20749
-
20750
- var supportsDescriptors = hasPropertyDescriptors_1();
20751
-
20752
- var defineProperty = function (object, name, value, predicate) {
20753
- if (name in object) {
20754
- if (predicate === true) {
20755
- if (object[name] === value) {
20756
- return;
20757
- }
20758
- } else if (!isFunction(predicate) || !predicate()) {
20759
- return;
20760
- }
20761
- }
20762
-
20763
- if (supportsDescriptors) {
20764
- defineDataProperty(object, name, value, true);
20765
- } else {
20766
- defineDataProperty(object, name, value);
20767
- }
20768
- };
20769
-
20770
- var defineProperties = function (object, map) {
20771
- var predicates = arguments.length > 2 ? arguments[2] : {};
20772
- var props = objectKeys(map);
20773
- if (hasSymbols$2) {
20774
- props = concat.call(props, Object.getOwnPropertySymbols(map));
20775
- }
20776
- for (var i = 0; i < props.length; i += 1) {
20777
- defineProperty(object, props[i], map[props[i]], predicates[props[i]]);
20778
- }
20779
- };
20780
-
20781
- defineProperties.supportsDescriptors = !!supportsDescriptors;
20782
-
20783
- var defineProperties_1 = defineProperties;
20784
-
20785
20818
  var hasDescriptors = hasPropertyDescriptors_1();
20786
20819
 
20787
20820
 
@@ -20879,6 +20912,20 @@ var isInteger = function isInteger(argument) {
20879
20912
  return $floor$1(absValue) === absValue;
20880
20913
  };
20881
20914
 
20915
+ var test = {
20916
+ __proto__: null,
20917
+ foo: {}
20918
+ };
20919
+
20920
+ var $Object$1 = Object;
20921
+
20922
+ /** @type {import('.')} */
20923
+ var hasProto = function hasProto() {
20924
+ // @ts-expect-error: TS errors on an inherited property for some reason
20925
+ return { __proto__: test }.foo === test.foo
20926
+ && !(test instanceof $Object$1);
20927
+ };
20928
+
20882
20929
  var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20883
20930
 
20884
20931
 
@@ -20888,10 +20935,10 @@ var $ArrayPrototype = getIntrinsic('%Array.prototype%');
20888
20935
 
20889
20936
  var MAX_ARRAY_LENGTH = Math.pow(2, 32) - 1;
20890
20937
 
20891
- var hasProto$2 = hasProto();
20938
+ var hasProto$1 = hasProto();
20892
20939
 
20893
20940
  var $setProto = getIntrinsic('%Object.setPrototypeOf%', true) || (
20894
- hasProto$2
20941
+ hasProto$1
20895
20942
  ? function (O, proto) {
20896
20943
  O.__proto__ = proto; // eslint-disable-line no-proto, no-param-reassign
20897
20944
  return O;
@@ -21690,10 +21737,10 @@ var SameValue = function SameValue(x, y) {
21690
21737
  var ToBoolean = function ToBoolean(value) { return !!value; };
21691
21738
 
21692
21739
  var fnToStr = Function.prototype.toString;
21693
- var reflectApply = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21740
+ var reflectApply$1 = typeof Reflect === 'object' && Reflect !== null && Reflect.apply;
21694
21741
  var badArrayLike;
21695
21742
  var isCallableMarker;
21696
- if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'function') {
21743
+ if (typeof reflectApply$1 === 'function' && typeof Object.defineProperty === 'function') {
21697
21744
  try {
21698
21745
  badArrayLike = Object.defineProperty({}, 'length', {
21699
21746
  get: function () {
@@ -21702,14 +21749,14 @@ if (typeof reflectApply === 'function' && typeof Object.defineProperty === 'func
21702
21749
  });
21703
21750
  isCallableMarker = {};
21704
21751
  // eslint-disable-next-line no-throw-literal
21705
- reflectApply(function () { throw 42; }, null, badArrayLike);
21752
+ reflectApply$1(function () { throw 42; }, null, badArrayLike);
21706
21753
  } catch (_) {
21707
21754
  if (_ !== isCallableMarker) {
21708
- reflectApply = null;
21755
+ reflectApply$1 = null;
21709
21756
  }
21710
21757
  }
21711
21758
  } else {
21712
- reflectApply = null;
21759
+ reflectApply$1 = null;
21713
21760
  }
21714
21761
 
21715
21762
  var constructorRegex = /^\s*class\b/;
@@ -21766,13 +21813,13 @@ if (typeof document === 'object') {
21766
21813
  }
21767
21814
  }
21768
21815
 
21769
- var isCallable = reflectApply
21816
+ var isCallable = reflectApply$1
21770
21817
  ? function isCallable(value) {
21771
21818
  if (isDDA(value)) { return true; }
21772
21819
  if (!value) { return false; }
21773
21820
  if (typeof value !== 'function' && typeof value !== 'object') { return false; }
21774
21821
  try {
21775
- reflectApply(value, null, badArrayLike);
21822
+ reflectApply$1(value, null, badArrayLike);
21776
21823
  } catch (e) {
21777
21824
  if (e !== isCallableMarker) { return false; }
21778
21825
  }
@@ -22295,12 +22342,65 @@ var isDateObject = function isDateObject(value) {
22295
22342
  return hasToStringTag$1 ? tryDateObject(value) : toStr$7.call(value) === dateClass;
22296
22343
  };
22297
22344
 
22345
+ /* eslint complexity: [2, 18], max-statements: [2, 33] */
22346
+ var shams$2 = function hasSymbols() {
22347
+ if (typeof Symbol !== 'function' || typeof Object.getOwnPropertySymbols !== 'function') { return false; }
22348
+ if (typeof Symbol.iterator === 'symbol') { return true; }
22349
+
22350
+ var obj = {};
22351
+ var sym = Symbol('test');
22352
+ var symObj = Object(sym);
22353
+ if (typeof sym === 'string') { return false; }
22354
+
22355
+ if (Object.prototype.toString.call(sym) !== '[object Symbol]') { return false; }
22356
+ if (Object.prototype.toString.call(symObj) !== '[object Symbol]') { return false; }
22357
+
22358
+ // temp disabled per https://github.com/ljharb/object.assign/issues/17
22359
+ // if (sym instanceof Symbol) { return false; }
22360
+ // temp disabled per https://github.com/WebReflection/get-own-property-symbols/issues/4
22361
+ // if (!(symObj instanceof Symbol)) { return false; }
22362
+
22363
+ // if (typeof Symbol.prototype.toString !== 'function') { return false; }
22364
+ // if (String(sym) !== Symbol.prototype.toString.call(sym)) { return false; }
22365
+
22366
+ var symVal = 42;
22367
+ obj[sym] = symVal;
22368
+ for (sym in obj) { return false; } // eslint-disable-line no-restricted-syntax, no-unreachable-loop
22369
+ if (typeof Object.keys === 'function' && Object.keys(obj).length !== 0) { return false; }
22370
+
22371
+ if (typeof Object.getOwnPropertyNames === 'function' && Object.getOwnPropertyNames(obj).length !== 0) { return false; }
22372
+
22373
+ var syms = Object.getOwnPropertySymbols(obj);
22374
+ if (syms.length !== 1 || syms[0] !== sym) { return false; }
22375
+
22376
+ if (!Object.prototype.propertyIsEnumerable.call(obj, sym)) { return false; }
22377
+
22378
+ if (typeof Object.getOwnPropertyDescriptor === 'function') {
22379
+ var descriptor = Object.getOwnPropertyDescriptor(obj, sym);
22380
+ if (descriptor.value !== symVal || descriptor.enumerable !== true) { return false; }
22381
+ }
22382
+
22383
+ return true;
22384
+ };
22385
+
22386
+ var origSymbol$1 = typeof Symbol !== 'undefined' && Symbol;
22387
+
22388
+
22389
+ var hasSymbols$3 = function hasNativeSymbols() {
22390
+ if (typeof origSymbol$1 !== 'function') { return false; }
22391
+ if (typeof Symbol !== 'function') { return false; }
22392
+ if (typeof origSymbol$1('foo') !== 'symbol') { return false; }
22393
+ if (typeof Symbol('bar') !== 'symbol') { return false; }
22394
+
22395
+ return shams$2();
22396
+ };
22397
+
22298
22398
  var isSymbol$1 = createCommonjsModule(function (module) {
22299
22399
 
22300
22400
  var toStr = Object.prototype.toString;
22301
- var hasSymbols$1 = hasSymbols();
22401
+ var hasSymbols = hasSymbols$3();
22302
22402
 
22303
- if (hasSymbols$1) {
22403
+ if (hasSymbols) {
22304
22404
  var symToStr = Symbol.prototype.toString;
22305
22405
  var symStringRegex = /^Symbol\(.*\)$/;
22306
22406
  var isSymbolObject = function isRealSymbolObject(value) {
@@ -22332,7 +22432,7 @@ if (hasSymbols$1) {
22332
22432
  }
22333
22433
  });
22334
22434
 
22335
- var hasSymbols$3 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
22435
+ var hasSymbols$4 = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol';
22336
22436
 
22337
22437
 
22338
22438
 
@@ -22386,7 +22486,7 @@ var es2015 = function ToPrimitive(input) {
22386
22486
  }
22387
22487
 
22388
22488
  var exoticToPrim;
22389
- if (hasSymbols$3) {
22489
+ if (hasSymbols$4) {
22390
22490
  if (Symbol.toPrimitive) {
22391
22491
  exoticToPrim = GetMethod(input, Symbol.toPrimitive);
22392
22492
  } else if (isSymbol$1(input)) {
@@ -22440,7 +22540,7 @@ if (hasToStringTag$2) {
22440
22540
  }
22441
22541
 
22442
22542
  var $toString = callBound('Object.prototype.toString');
22443
- var gOPD = Object.getOwnPropertyDescriptor;
22543
+ var gOPD$1 = Object.getOwnPropertyDescriptor;
22444
22544
  var regexClass = '[object RegExp]';
22445
22545
 
22446
22546
  var isRegex = hasToStringTag$2
@@ -22450,7 +22550,7 @@ var isRegex = hasToStringTag$2
22450
22550
  return false;
22451
22551
  }
22452
22552
 
22453
- var descriptor = gOPD(value, 'lastIndex');
22553
+ var descriptor = gOPD$1(value, 'lastIndex');
22454
22554
  var hasLastIndexDataProperty = descriptor && has$2(descriptor, 'value');
22455
22555
  if (!hasLastIndexDataProperty) {
22456
22556
  return false;