@swagger-api/apidom-ast 1.0.0-alpha.0 → 1.0.0-alpha.10

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.
@@ -581,7 +581,7 @@ const cloneNode = node => Object.create(Object.getPrototypeOf(node), Object.getO
581
581
  * parallel. Each visitor will be visited for each node before moving on.
582
582
  *
583
583
  * If a prior visitor edits a node, no following visitors will see that node.
584
- * `exposeEdits=true` can be used to exoise the edited node from the previous visitors.
584
+ * `exposeEdits=true` can be used to expose the edited node from the previous visitors.
585
585
  */
586
586
 
587
587
  const mergeAll = (visitors, {
@@ -595,14 +595,21 @@ const mergeAll = (visitors, {
595
595
  const skipSymbol = Symbol('skip');
596
596
  const skipping = new Array(visitors.length).fill(skipSymbol);
597
597
  return {
598
- enter(node, ...rest) {
598
+ enter(node, key, parent, path, ancestors, link) {
599
599
  let currentNode = node;
600
600
  let hasChanged = false;
601
+ const linkProxy = {
602
+ ...link,
603
+ replaceWith(newNode, replacer) {
604
+ link.replaceWith(newNode, replacer);
605
+ currentNode = newNode;
606
+ }
607
+ };
601
608
  for (let i = 0; i < visitors.length; i += 1) {
602
609
  if (skipping[i] === skipSymbol) {
603
610
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
604
611
  if (typeof visitFn === 'function') {
605
- const result = visitFn.call(visitors[i], currentNode, ...rest);
612
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
606
613
 
607
614
  // check if the visitor is async
608
615
  if (typeof result?.then === 'function') {
@@ -612,7 +619,7 @@ const mergeAll = (visitors, {
612
619
  });
613
620
  }
614
621
  if (result === skipVisitingNodeSymbol) {
615
- skipping[i] = node;
622
+ skipping[i] = currentNode;
616
623
  } else if (result === breakSymbol) {
617
624
  skipping[i] = breakSymbol;
618
625
  } else if (result === deleteNodeSymbol) {
@@ -630,12 +637,20 @@ const mergeAll = (visitors, {
630
637
  }
631
638
  return hasChanged ? currentNode : undefined;
632
639
  },
633
- leave(node, ...rest) {
640
+ leave(node, key, parent, path, ancestors, link) {
641
+ let currentNode = node;
642
+ const linkProxy = {
643
+ ...link,
644
+ replaceWith(newNode, replacer) {
645
+ link.replaceWith(newNode, replacer);
646
+ currentNode = newNode;
647
+ }
648
+ };
634
649
  for (let i = 0; i < visitors.length; i += 1) {
635
650
  if (skipping[i] === skipSymbol) {
636
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
651
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
637
652
  if (typeof visitFn === 'function') {
638
- const result = visitFn.call(visitors[i], node, ...rest);
653
+ const result = visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
639
654
 
640
655
  // check if the visitor is async
641
656
  if (typeof result?.then === 'function') {
@@ -650,7 +665,7 @@ const mergeAll = (visitors, {
650
665
  return result;
651
666
  }
652
667
  }
653
- } else if (skipping[i] === node) {
668
+ } else if (skipping[i] === currentNode) {
654
669
  skipping[i] = skipSymbol;
655
670
  }
656
671
  }
@@ -669,17 +684,24 @@ const mergeAllAsync = (visitors, {
669
684
  const skipSymbol = Symbol('skip');
670
685
  const skipping = new Array(visitors.length).fill(skipSymbol);
671
686
  return {
672
- async enter(node, ...rest) {
687
+ async enter(node, key, parent, path, ancestors, link) {
673
688
  let currentNode = node;
674
689
  let hasChanged = false;
690
+ const linkProxy = {
691
+ ...link,
692
+ replaceWith(newNode, replacer) {
693
+ link.replaceWith(newNode, replacer);
694
+ currentNode = newNode;
695
+ }
696
+ };
675
697
  for (let i = 0; i < visitors.length; i += 1) {
676
698
  if (skipping[i] === skipSymbol) {
677
699
  const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), false);
678
700
  if (typeof visitFn === 'function') {
679
701
  // eslint-disable-next-line no-await-in-loop
680
- const result = await visitFn.call(visitors[i], currentNode, ...rest);
702
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
681
703
  if (result === skipVisitingNodeSymbol) {
682
- skipping[i] = node;
704
+ skipping[i] = currentNode;
683
705
  } else if (result === breakSymbol) {
684
706
  skipping[i] = breakSymbol;
685
707
  } else if (result === deleteNodeSymbol) {
@@ -697,20 +719,28 @@ const mergeAllAsync = (visitors, {
697
719
  }
698
720
  return hasChanged ? currentNode : undefined;
699
721
  },
700
- async leave(node, ...rest) {
722
+ async leave(node, key, parent, path, ancestors, link) {
723
+ let currentNode = node;
724
+ const linkProxy = {
725
+ ...link,
726
+ replaceWith(newNode, replacer) {
727
+ link.replaceWith(newNode, replacer);
728
+ currentNode = newNode;
729
+ }
730
+ };
701
731
  for (let i = 0; i < visitors.length; i += 1) {
702
732
  if (skipping[i] === skipSymbol) {
703
- const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(node), true);
733
+ const visitFn = visitFnGetter(visitors[i], nodeTypeGetter(currentNode), true);
704
734
  if (typeof visitFn === 'function') {
705
735
  // eslint-disable-next-line no-await-in-loop
706
- const result = await visitFn.call(visitors[i], node, ...rest);
736
+ const result = await visitFn.call(visitors[i], currentNode, key, parent, path, ancestors, linkProxy);
707
737
  if (result === breakSymbol) {
708
738
  skipping[i] = breakSymbol;
709
739
  } else if (result !== undefined && result !== skipVisitingNodeSymbol) {
710
740
  return result;
711
741
  }
712
742
  }
713
- } else if (skipping[i] === node) {
743
+ } else if (skipping[i] === currentNode) {
714
744
  skipping[i] = skipSymbol;
715
745
  }
716
746
  }
@@ -905,8 +935,22 @@ visitor, {
905
935
  for (const [stateKey, stateValue] of Object.entries(state)) {
906
936
  visitor[stateKey] = stateValue;
907
937
  }
938
+ const link = {
939
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
940
+ replaceWith(newNode, replacer) {
941
+ if (typeof replacer === 'function') {
942
+ replacer(newNode, node, key, parent, path, ancestors);
943
+ } else if (parent) {
944
+ parent[key] = newNode;
945
+ }
946
+ if (!isLeaving) {
947
+ node = newNode;
948
+ }
949
+ }
950
+ };
951
+
908
952
  // retrieve result
909
- result = visitFn.call(visitor, node, key, parent, path, ancestors);
953
+ result = visitFn.call(visitor, node, key, parent, path, ancestors, link);
910
954
  }
911
955
 
912
956
  // check if the visitor is async
@@ -1062,9 +1106,22 @@ visitor, {
1062
1106
  for (const [stateKey, stateValue] of Object.entries(state)) {
1063
1107
  visitor[stateKey] = stateValue;
1064
1108
  }
1109
+ const link = {
1110
+ // eslint-disable-next-line @typescript-eslint/no-loop-func
1111
+ replaceWith(newNode, replacer) {
1112
+ if (typeof replacer === 'function') {
1113
+ replacer(newNode, node, key, parent, path, ancestors);
1114
+ } else if (parent) {
1115
+ parent[key] = newNode;
1116
+ }
1117
+ if (!isLeaving) {
1118
+ node = newNode;
1119
+ }
1120
+ }
1121
+ };
1065
1122
 
1066
1123
  // retrieve result
1067
- result = await visitFn.call(visitor, node, key, parent, path, ancestors); // eslint-disable-line no-await-in-loop
1124
+ result = await visitFn.call(visitor, node, key, parent, path, ancestors, link); // eslint-disable-line no-await-in-loop
1068
1125
  }
1069
1126
  if (result === breakSymbol) {
1070
1127
  break;
@@ -2671,6 +2728,7 @@ var createMethod = function (IS_INCLUDES) {
2671
2728
  return function ($this, el, fromIndex) {
2672
2729
  var O = toIndexedObject($this);
2673
2730
  var length = lengthOfArrayLike(O);
2731
+ if (length === 0) return !IS_INCLUDES && -1;
2674
2732
  var index = toAbsoluteIndex(fromIndex, length);
2675
2733
  var value;
2676
2734
  // Array#includes uses SameValueZero equality algorithm
@@ -2866,16 +2924,16 @@ module.exports = function (target, key, value, options) {
2866
2924
 
2867
2925
  "use strict";
2868
2926
 
2869
- var global = __webpack_require__(1063);
2927
+ var globalThis = __webpack_require__(8900);
2870
2928
 
2871
2929
  // eslint-disable-next-line es/no-object-defineproperty -- safe
2872
2930
  var defineProperty = Object.defineProperty;
2873
2931
 
2874
2932
  module.exports = function (key, value) {
2875
2933
  try {
2876
- defineProperty(global, key, { value: value, configurable: true, writable: true });
2934
+ defineProperty(globalThis, key, { value: value, configurable: true, writable: true });
2877
2935
  } catch (error) {
2878
- global[key] = value;
2936
+ globalThis[key] = value;
2879
2937
  } return value;
2880
2938
  };
2881
2939
 
@@ -2903,10 +2961,10 @@ module.exports = !fails(function () {
2903
2961
 
2904
2962
  "use strict";
2905
2963
 
2906
- var global = __webpack_require__(1063);
2964
+ var globalThis = __webpack_require__(8900);
2907
2965
  var isObject = __webpack_require__(262);
2908
2966
 
2909
- var document = global.document;
2967
+ var document = globalThis.document;
2910
2968
  // typeof document.createElement is 'object' in old IE
2911
2969
  var EXISTS = isObject(document) && isObject(document.createElement);
2912
2970
 
@@ -2961,26 +3019,50 @@ module.exports = {
2961
3019
 
2962
3020
  /***/ }),
2963
3021
 
2964
- /***/ 7868:
3022
+ /***/ 9683:
2965
3023
  /***/ ((module) => {
2966
3024
 
2967
3025
  "use strict";
2968
3026
 
2969
- module.exports = typeof navigator != 'undefined' && String(navigator.userAgent) || '';
3027
+ // IE8- don't enum bug keys
3028
+ module.exports = [
3029
+ 'constructor',
3030
+ 'hasOwnProperty',
3031
+ 'isPrototypeOf',
3032
+ 'propertyIsEnumerable',
3033
+ 'toLocaleString',
3034
+ 'toString',
3035
+ 'valueOf'
3036
+ ];
3037
+
3038
+
3039
+ /***/ }),
3040
+
3041
+ /***/ 3531:
3042
+ /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
3043
+
3044
+ "use strict";
3045
+
3046
+ var globalThis = __webpack_require__(8900);
3047
+
3048
+ var navigator = globalThis.navigator;
3049
+ var userAgent = navigator && navigator.userAgent;
3050
+
3051
+ module.exports = userAgent ? String(userAgent) : '';
2970
3052
 
2971
3053
 
2972
3054
  /***/ }),
2973
3055
 
2974
- /***/ 4432:
3056
+ /***/ 5547:
2975
3057
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
2976
3058
 
2977
3059
  "use strict";
2978
3060
 
2979
- var global = __webpack_require__(1063);
2980
- var userAgent = __webpack_require__(7868);
3061
+ var globalThis = __webpack_require__(8900);
3062
+ var userAgent = __webpack_require__(3531);
2981
3063
 
2982
- var process = global.process;
2983
- var Deno = global.Deno;
3064
+ var process = globalThis.process;
3065
+ var Deno = globalThis.Deno;
2984
3066
  var versions = process && process.versions || Deno && Deno.version;
2985
3067
  var v8 = versions && versions.v8;
2986
3068
  var match, version;
@@ -3005,25 +3087,6 @@ if (!version && userAgent) {
3005
3087
  module.exports = version;
3006
3088
 
3007
3089
 
3008
- /***/ }),
3009
-
3010
- /***/ 9683:
3011
- /***/ ((module) => {
3012
-
3013
- "use strict";
3014
-
3015
- // IE8- don't enum bug keys
3016
- module.exports = [
3017
- 'constructor',
3018
- 'hasOwnProperty',
3019
- 'isPrototypeOf',
3020
- 'propertyIsEnumerable',
3021
- 'toLocaleString',
3022
- 'toString',
3023
- 'valueOf'
3024
- ];
3025
-
3026
-
3027
3090
  /***/ }),
3028
3091
 
3029
3092
  /***/ 3885:
@@ -3096,7 +3159,7 @@ module.exports = !fails(function () {
3096
3159
 
3097
3160
  "use strict";
3098
3161
 
3099
- var global = __webpack_require__(1063);
3162
+ var globalThis = __webpack_require__(8900);
3100
3163
  var apply = __webpack_require__(7013);
3101
3164
  var uncurryThis = __webpack_require__(9344);
3102
3165
  var isCallable = __webpack_require__(2769);
@@ -3106,6 +3169,8 @@ var path = __webpack_require__(8099);
3106
3169
  var bind = __webpack_require__(4572);
3107
3170
  var createNonEnumerableProperty = __webpack_require__(3999);
3108
3171
  var hasOwn = __webpack_require__(701);
3172
+ // add debugging info
3173
+ __webpack_require__(3753);
3109
3174
 
3110
3175
  var wrapConstructor = function (NativeConstructor) {
3111
3176
  var Wrapper = function (a, b, c) {
@@ -3142,7 +3207,7 @@ module.exports = function (options, source) {
3142
3207
  var STATIC = options.stat;
3143
3208
  var PROTO = options.proto;
3144
3209
 
3145
- var nativeSource = GLOBAL ? global : STATIC ? global[TARGET] : global[TARGET] && global[TARGET].prototype;
3210
+ var nativeSource = GLOBAL ? globalThis : STATIC ? globalThis[TARGET] : globalThis[TARGET] && globalThis[TARGET].prototype;
3146
3211
 
3147
3212
  var target = GLOBAL ? path : path[TARGET] || createNonEnumerableProperty(path, TARGET, {})[TARGET];
3148
3213
  var targetPrototype = target.prototype;
@@ -3168,7 +3233,7 @@ module.exports = function (options, source) {
3168
3233
  if (!FORCED && !PROTO && typeof targetProperty == typeof sourceProperty) continue;
3169
3234
 
3170
3235
  // bind methods to global for calling from export context
3171
- if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, global);
3236
+ if (options.bind && USE_NATIVE) resultProperty = bind(sourceProperty, globalThis);
3172
3237
  // wrap global constructors for prevent changes in this version
3173
3238
  else if (options.wrap && USE_NATIVE) resultProperty = wrapConstructor(sourceProperty);
3174
3239
  // make static versions for prototype methods
@@ -3379,7 +3444,7 @@ module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) {
3379
3444
  "use strict";
3380
3445
 
3381
3446
  var path = __webpack_require__(8099);
3382
- var global = __webpack_require__(1063);
3447
+ var globalThis = __webpack_require__(8900);
3383
3448
  var isCallable = __webpack_require__(2769);
3384
3449
 
3385
3450
  var aFunction = function (variable) {
@@ -3387,8 +3452,8 @@ var aFunction = function (variable) {
3387
3452
  };
3388
3453
 
3389
3454
  module.exports = function (namespace, method) {
3390
- return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global[namespace])
3391
- : path[namespace] && path[namespace][method] || global[namespace] && global[namespace][method];
3455
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(globalThis[namespace])
3456
+ : path[namespace] && path[namespace][method] || globalThis[namespace] && globalThis[namespace][method];
3392
3457
  };
3393
3458
 
3394
3459
 
@@ -3456,7 +3521,7 @@ module.exports = function (V, P) {
3456
3521
 
3457
3522
  /***/ }),
3458
3523
 
3459
- /***/ 1063:
3524
+ /***/ 8900:
3460
3525
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
3461
3526
 
3462
3527
  "use strict";
@@ -3618,7 +3683,7 @@ module.exports = function (O, options) {
3618
3683
  "use strict";
3619
3684
 
3620
3685
  var NATIVE_WEAK_MAP = __webpack_require__(1314);
3621
- var global = __webpack_require__(1063);
3686
+ var globalThis = __webpack_require__(8900);
3622
3687
  var isObject = __webpack_require__(262);
3623
3688
  var createNonEnumerableProperty = __webpack_require__(3999);
3624
3689
  var hasOwn = __webpack_require__(701);
@@ -3627,8 +3692,8 @@ var sharedKey = __webpack_require__(4275);
3627
3692
  var hiddenKeys = __webpack_require__(5241);
3628
3693
 
3629
3694
  var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
3630
- var TypeError = global.TypeError;
3631
- var WeakMap = global.WeakMap;
3695
+ var TypeError = globalThis.TypeError;
3696
+ var WeakMap = globalThis.WeakMap;
3632
3697
  var set, get, has;
3633
3698
 
3634
3699
  var enforce = function (it) {
@@ -4225,7 +4290,8 @@ var NullProtoObjectViaActiveX = function (activeXDocument) {
4225
4290
  activeXDocument.write(scriptTag(''));
4226
4291
  activeXDocument.close();
4227
4292
  var temp = activeXDocument.parentWindow.Object;
4228
- activeXDocument = null; // avoid memory leak
4293
+ // eslint-disable-next-line no-useless-assignment -- avoid memory leak
4294
+ activeXDocument = null;
4229
4295
  return temp;
4230
4296
  };
4231
4297
 
@@ -4547,7 +4613,8 @@ exports.f = NASHORN_BUG ? function propertyIsEnumerable(V) {
4547
4613
 
4548
4614
  /* eslint-disable no-proto -- safe */
4549
4615
  var uncurryThisAccessor = __webpack_require__(3574);
4550
- var anObject = __webpack_require__(7235);
4616
+ var isObject = __webpack_require__(262);
4617
+ var requireObjectCoercible = __webpack_require__(5426);
4551
4618
  var aPossiblePrototype = __webpack_require__(1966);
4552
4619
 
4553
4620
  // `Object.setPrototypeOf` method
@@ -4564,8 +4631,9 @@ module.exports = Object.setPrototypeOf || ('__proto__' in {} ? function () {
4564
4631
  CORRECT_SETTER = test instanceof Array;
4565
4632
  } catch (error) { /* empty */ }
4566
4633
  return function setPrototypeOf(O, proto) {
4567
- anObject(O);
4634
+ requireObjectCoercible(O);
4568
4635
  aPossiblePrototype(proto);
4636
+ if (!isObject(O)) return O;
4569
4637
  if (CORRECT_SETTER) setter(O, proto);
4570
4638
  else O.__proto__ = proto;
4571
4639
  return O;
@@ -4737,13 +4805,20 @@ module.exports = function (key) {
4737
4805
 
4738
4806
  "use strict";
4739
4807
 
4740
- var global = __webpack_require__(1063);
4808
+ var IS_PURE = __webpack_require__(4871);
4809
+ var globalThis = __webpack_require__(8900);
4741
4810
  var defineGlobalProperty = __webpack_require__(7525);
4742
4811
 
4743
4812
  var SHARED = '__core-js_shared__';
4744
- var store = global[SHARED] || defineGlobalProperty(SHARED, {});
4813
+ var store = module.exports = globalThis[SHARED] || defineGlobalProperty(SHARED, {});
4745
4814
 
4746
- module.exports = store;
4815
+ (store.versions || (store.versions = [])).push({
4816
+ version: '3.38.1',
4817
+ mode: IS_PURE ? 'pure' : 'global',
4818
+ copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
4819
+ license: 'https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE',
4820
+ source: 'https://github.com/zloirock/core-js'
4821
+ });
4747
4822
 
4748
4823
 
4749
4824
  /***/ }),
@@ -4753,18 +4828,11 @@ module.exports = store;
4753
4828
 
4754
4829
  "use strict";
4755
4830
 
4756
- var IS_PURE = __webpack_require__(4871);
4757
4831
  var store = __webpack_require__(3753);
4758
4832
 
4759
- (module.exports = function (key, value) {
4760
- return store[key] || (store[key] = value !== undefined ? value : {});
4761
- })('versions', []).push({
4762
- version: '3.35.1',
4763
- mode: IS_PURE ? 'pure' : 'global',
4764
- copyright: '© 2014-2024 Denis Pushkarev (zloirock.ru)',
4765
- license: 'https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE',
4766
- source: 'https://github.com/zloirock/core-js'
4767
- });
4833
+ module.exports = function (key, value) {
4834
+ return store[key] || (store[key] = value || {});
4835
+ };
4768
4836
 
4769
4837
 
4770
4838
  /***/ }),
@@ -4820,11 +4888,11 @@ module.exports = {
4820
4888
  "use strict";
4821
4889
 
4822
4890
  /* eslint-disable es/no-symbol -- required for testing */
4823
- var V8_VERSION = __webpack_require__(4432);
4891
+ var V8_VERSION = __webpack_require__(5547);
4824
4892
  var fails = __webpack_require__(1203);
4825
- var global = __webpack_require__(1063);
4893
+ var globalThis = __webpack_require__(8900);
4826
4894
 
4827
- var $String = global.String;
4895
+ var $String = globalThis.String;
4828
4896
 
4829
4897
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
4830
4898
  module.exports = !!Object.getOwnPropertySymbols && !fails(function () {
@@ -5096,10 +5164,10 @@ module.exports = DESCRIPTORS && fails(function () {
5096
5164
 
5097
5165
  "use strict";
5098
5166
 
5099
- var global = __webpack_require__(1063);
5167
+ var globalThis = __webpack_require__(8900);
5100
5168
  var isCallable = __webpack_require__(2769);
5101
5169
 
5102
- var WeakMap = global.WeakMap;
5170
+ var WeakMap = globalThis.WeakMap;
5103
5171
 
5104
5172
  module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
5105
5173
 
@@ -5111,14 +5179,14 @@ module.exports = isCallable(WeakMap) && /native code/.test(String(WeakMap));
5111
5179
 
5112
5180
  "use strict";
5113
5181
 
5114
- var global = __webpack_require__(1063);
5182
+ var globalThis = __webpack_require__(8900);
5115
5183
  var shared = __webpack_require__(8141);
5116
5184
  var hasOwn = __webpack_require__(701);
5117
5185
  var uid = __webpack_require__(1268);
5118
5186
  var NATIVE_SYMBOL = __webpack_require__(4603);
5119
5187
  var USE_SYMBOL_AS_UID = __webpack_require__(7460);
5120
5188
 
5121
- var Symbol = global.Symbol;
5189
+ var Symbol = globalThis.Symbol;
5122
5190
  var WellKnownSymbolsStore = shared('wks');
5123
5191
  var createWellKnownSymbol = USE_SYMBOL_AS_UID ? Symbol['for'] || Symbol : Symbol && Symbol.withoutSetter || uid;
5124
5192
 
@@ -5350,7 +5418,7 @@ module.exports = defineIterator(Array, 'Array', function (iterated, kind) {
5350
5418
  var target = state.target;
5351
5419
  var index = state.index++;
5352
5420
  if (!target || index >= target.length) {
5353
- state.target = undefined;
5421
+ state.target = null;
5354
5422
  return createIterResultObject(undefined, true);
5355
5423
  }
5356
5424
  switch (state.kind) {
@@ -5384,12 +5452,12 @@ if (!IS_PURE && DESCRIPTORS && values.name !== 'values') try {
5384
5452
 
5385
5453
  /* eslint-disable no-unused-vars -- required for functions `.length` */
5386
5454
  var $ = __webpack_require__(9098);
5387
- var global = __webpack_require__(1063);
5455
+ var globalThis = __webpack_require__(8900);
5388
5456
  var apply = __webpack_require__(7013);
5389
5457
  var wrapErrorConstructorWithCause = __webpack_require__(6453);
5390
5458
 
5391
5459
  var WEB_ASSEMBLY = 'WebAssembly';
5392
- var WebAssembly = global[WEB_ASSEMBLY];
5460
+ var WebAssembly = globalThis[WEB_ASSEMBLY];
5393
5461
 
5394
5462
  // eslint-disable-next-line es/no-error-cause -- feature detection
5395
5463
  var FORCED = new Error('e', { cause: 7 }).cause !== 7;
@@ -5500,12 +5568,12 @@ __webpack_require__(5695);
5500
5568
 
5501
5569
  __webpack_require__(9828);
5502
5570
  var DOMIterables = __webpack_require__(8719);
5503
- var global = __webpack_require__(1063);
5571
+ var globalThis = __webpack_require__(8900);
5504
5572
  var setToStringTag = __webpack_require__(1811);
5505
5573
  var Iterators = __webpack_require__(6625);
5506
5574
 
5507
5575
  for (var COLLECTION_NAME in DOMIterables) {
5508
- setToStringTag(global[COLLECTION_NAME], COLLECTION_NAME);
5576
+ setToStringTag(globalThis[COLLECTION_NAME], COLLECTION_NAME);
5509
5577
  Iterators[COLLECTION_NAME] = Iterators.Array;
5510
5578
  }
5511
5579
 
@@ -7342,7 +7410,7 @@ __webpack_require__.r(__webpack_exports__);
7342
7410
  * @since v0.1.0
7343
7411
  * @category List
7344
7412
  * @sig [a] -> a | Undefined
7345
- * @sig String -> String
7413
+ * @sig String -> String | Undefined
7346
7414
  * @param {Array|String} list
7347
7415
  * @return {*}
7348
7416
  * @see R.tail, R.init, R.last
@@ -7352,7 +7420,7 @@ __webpack_require__.r(__webpack_exports__);
7352
7420
  * R.head([]); //=> undefined
7353
7421
  *
7354
7422
  * R.head('abc'); //=> 'a'
7355
- * R.head(''); //=> ''
7423
+ * R.head(''); //=> undefined
7356
7424
  */
7357
7425
  var head = /*#__PURE__*/(0,_internal_curry1_js__WEBPACK_IMPORTED_MODULE_0__["default"])(function (list) {
7358
7426
  return (0,_internal_nth_js__WEBPACK_IMPORTED_MODULE_1__["default"])(0, list);
@@ -8597,10 +8665,8 @@ __webpack_require__.r(__webpack_exports__);
8597
8665
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8598
8666
  /* harmony export */ "default": () => (/* binding */ _isPlaceholder)
8599
8667
  /* harmony export */ });
8600
- /* harmony import */ var _placeholder_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(231);
8601
-
8602
8668
  function _isPlaceholder(a) {
8603
- return a === _placeholder_js__WEBPACK_IMPORTED_MODULE_0__["default"];
8669
+ return a != null && typeof a === 'object' && a['@@functional/placeholder'] === true;
8604
8670
  }
8605
8671
 
8606
8672
  /***/ }),
@@ -8777,20 +8843,6 @@ function _pipe(f, g) {
8777
8843
 
8778
8844
  /***/ }),
8779
8845
 
8780
- /***/ 231:
8781
- /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8782
-
8783
- "use strict";
8784
- __webpack_require__.r(__webpack_exports__);
8785
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
8786
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
8787
- /* harmony export */ });
8788
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = ({
8789
- '@@functional/placeholder': true
8790
- });
8791
-
8792
- /***/ }),
8793
-
8794
8846
  /***/ 1950:
8795
8847
  /***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
8796
8848