@teselagen/ui 0.0.8 → 0.0.9

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.
Files changed (4) hide show
  1. package/index.js +440 -867
  2. package/index.mjs +440 -867
  3. package/index.umd.js +427 -854
  4. package/package.json +1 -1
package/index.js CHANGED
@@ -1768,7 +1768,7 @@ function getFormattedMessage(message) {
1768
1768
  }
1769
1769
  __name(getFormattedMessage, "getFormattedMessage");
1770
1770
  var visitedMessages;
1771
- if (process.env.NODE_ENV !== "production") {
1771
+ if (production !== "production") {
1772
1772
  resetVisitedMessages();
1773
1773
  }
1774
1774
  function resetVisitedMessages() {
@@ -1866,7 +1866,7 @@ var defaultProps$3 = Object.assign({
1866
1866
  }, pluginProps, renderProps);
1867
1867
  var defaultKeys = Object.keys(defaultProps$3);
1868
1868
  var setDefaultProps = /* @__PURE__ */ __name(function setDefaultProps2(partialProps) {
1869
- if (process.env.NODE_ENV !== "production") {
1869
+ if (production !== "production") {
1870
1870
  validateProps(partialProps, []);
1871
1871
  }
1872
1872
  var keys3 = Object.keys(partialProps);
@@ -2107,7 +2107,7 @@ function createTippy(reference2, passedProps) {
2107
2107
  destroy
2108
2108
  };
2109
2109
  if (!props.render) {
2110
- if (process.env.NODE_ENV !== "production") {
2110
+ if (production !== "production") {
2111
2111
  errorWhen(true, "render() function has not been supplied.");
2112
2112
  }
2113
2113
  return instance;
@@ -2556,7 +2556,7 @@ function createTippy(reference2, passedProps) {
2556
2556
  }
2557
2557
  instance.state.isMounted = true;
2558
2558
  createPopperInstance();
2559
- if (process.env.NODE_ENV !== "production") {
2559
+ if (production !== "production") {
2560
2560
  warnWhen(instance.props.interactive && appendTo === defaultProps$3.appendTo && node2.nextElementSibling !== popper2, ["Interactive tippy element may not be accessible via keyboard", "navigation because it is not directly after the reference element", "in the DOM source order.", "\n\n", "Using a wrapper <div> or <span> tag around the reference element", "solves this by creating a new parentNode context.", "\n\n", "Specifying `appendTo: document.body` silences this warning, but it", "assumes you are using a focus management solution to handle", "keyboard navigation.", "\n\n", "See: https://atomiks.github.io/tippyjs/v6/accessibility/#interactivity"].join(" "));
2561
2561
  }
2562
2562
  }
@@ -2625,7 +2625,7 @@ function createTippy(reference2, passedProps) {
2625
2625
  }
2626
2626
  __name(clearDelayTimeouts, "clearDelayTimeouts");
2627
2627
  function setProps(partialProps) {
2628
- if (process.env.NODE_ENV !== "production") {
2628
+ if (production !== "production") {
2629
2629
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("setProps"));
2630
2630
  }
2631
2631
  if (instance.state.isDestroyed) {
@@ -2671,7 +2671,7 @@ function createTippy(reference2, passedProps) {
2671
2671
  }
2672
2672
  __name(setContent2, "setContent");
2673
2673
  function show() {
2674
- if (process.env.NODE_ENV !== "production") {
2674
+ if (production !== "production") {
2675
2675
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("show"));
2676
2676
  }
2677
2677
  var isAlreadyVisible = instance.state.isVisible;
@@ -2731,7 +2731,7 @@ function createTippy(reference2, passedProps) {
2731
2731
  }
2732
2732
  __name(show, "show");
2733
2733
  function hide2() {
2734
- if (process.env.NODE_ENV !== "production") {
2734
+ if (production !== "production") {
2735
2735
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hide"));
2736
2736
  }
2737
2737
  var isAlreadyHidden = !instance.state.isVisible;
@@ -2774,7 +2774,7 @@ function createTippy(reference2, passedProps) {
2774
2774
  }
2775
2775
  __name(hide2, "hide");
2776
2776
  function hideWithInteractivity(event) {
2777
- if (process.env.NODE_ENV !== "production") {
2777
+ if (production !== "production") {
2778
2778
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("hideWithInteractivity"));
2779
2779
  }
2780
2780
  getDocument().addEventListener("mousemove", debouncedOnMouseMove);
@@ -2783,7 +2783,7 @@ function createTippy(reference2, passedProps) {
2783
2783
  }
2784
2784
  __name(hideWithInteractivity, "hideWithInteractivity");
2785
2785
  function unmount() {
2786
- if (process.env.NODE_ENV !== "production") {
2786
+ if (production !== "production") {
2787
2787
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("unmount"));
2788
2788
  }
2789
2789
  if (instance.state.isVisible) {
@@ -2807,7 +2807,7 @@ function createTippy(reference2, passedProps) {
2807
2807
  }
2808
2808
  __name(unmount, "unmount");
2809
2809
  function destroy() {
2810
- if (process.env.NODE_ENV !== "production") {
2810
+ if (production !== "production") {
2811
2811
  warnWhen(instance.state.isDestroyed, createMemoryLeakWarning("destroy"));
2812
2812
  }
2813
2813
  if (instance.state.isDestroyed) {
@@ -2828,7 +2828,7 @@ function tippy$1(targets, optionalProps) {
2828
2828
  optionalProps = {};
2829
2829
  }
2830
2830
  var plugins = defaultProps$3.plugins.concat(optionalProps.plugins || []);
2831
- if (process.env.NODE_ENV !== "production") {
2831
+ if (production !== "production") {
2832
2832
  validateTargets(targets);
2833
2833
  validateProps(optionalProps, plugins);
2834
2834
  }
@@ -2837,7 +2837,7 @@ function tippy$1(targets, optionalProps) {
2837
2837
  plugins
2838
2838
  });
2839
2839
  var elements = getArrayOfElements(targets);
2840
- if (process.env.NODE_ENV !== "production") {
2840
+ if (production !== "production") {
2841
2841
  var isSingleContentElement = isElement$1(passedProps.content);
2842
2842
  var isMoreThanOneReferenceElement = elements.length > 1;
2843
2843
  warnWhen(isSingleContentElement && isMoreThanOneReferenceElement, ["tippy() was passed an Element as the `content` prop, but more than", "one tippy instance was created by this invocation. This means the", "content element will only be appended to the last tippy instance.", "\n\n", "Instead, pass the .innerHTML of the element, or use a function that", "returns a cloned version of the element instead.", "\n\n", "1) content: element.innerHTML\n", "2) content: () => element.cloneNode(true)"].join(" "));
@@ -3016,10 +3016,10 @@ var bind$4 = /* @__PURE__ */ __name(function bind(fn3, thisArg) {
3016
3016
  }, "bind");
3017
3017
  var bind$3 = bind$4;
3018
3018
  var toString$8 = Object.prototype.toString;
3019
- function isArray$p(val) {
3019
+ function isArray$o(val) {
3020
3020
  return toString$8.call(val) === "[object Array]";
3021
3021
  }
3022
- __name(isArray$p, "isArray$p");
3022
+ __name(isArray$o, "isArray$o");
3023
3023
  function isUndefined$1(val) {
3024
3024
  return typeof val === "undefined";
3025
3025
  }
@@ -3046,10 +3046,10 @@ function isArrayBufferView(val) {
3046
3046
  return result;
3047
3047
  }
3048
3048
  __name(isArrayBufferView, "isArrayBufferView");
3049
- function isString$4(val) {
3049
+ function isString$3(val) {
3050
3050
  return typeof val === "string";
3051
3051
  }
3052
- __name(isString$4, "isString$4");
3052
+ __name(isString$3, "isString$3");
3053
3053
  function isNumber$2(val) {
3054
3054
  return typeof val === "number";
3055
3055
  }
@@ -3108,7 +3108,7 @@ function forEach$1(obj, fn3) {
3108
3108
  if (typeof obj !== "object") {
3109
3109
  obj = [obj];
3110
3110
  }
3111
- if (isArray$p(obj)) {
3111
+ if (isArray$o(obj)) {
3112
3112
  for (var i = 0, l2 = obj.length; i < l2; i++) {
3113
3113
  fn3.call(null, obj[i], i, obj);
3114
3114
  }
@@ -3128,7 +3128,7 @@ function merge$4() {
3128
3128
  result[key] = merge$4(result[key], val);
3129
3129
  } else if (isPlainObject$5(val)) {
3130
3130
  result[key] = merge$4({}, val);
3131
- } else if (isArray$p(val)) {
3131
+ } else if (isArray$o(val)) {
3132
3132
  result[key] = val.slice();
3133
3133
  } else {
3134
3134
  result[key] = val;
@@ -3160,12 +3160,12 @@ function stripBOM(content2) {
3160
3160
  }
3161
3161
  __name(stripBOM, "stripBOM");
3162
3162
  var utils$c = {
3163
- isArray: isArray$p,
3163
+ isArray: isArray$o,
3164
3164
  isArrayBuffer,
3165
3165
  isBuffer: isBuffer$9,
3166
3166
  isFormData,
3167
3167
  isArrayBufferView,
3168
- isString: isString$4,
3168
+ isString: isString$3,
3169
3169
  isNumber: isNumber$2,
3170
3170
  isObject: isObject$h,
3171
3171
  isPlainObject: isPlainObject$5,
@@ -4443,7 +4443,7 @@ function requireReactIs_development$1() {
4443
4443
  if (hasRequiredReactIs_development$1)
4444
4444
  return reactIs_development$1;
4445
4445
  hasRequiredReactIs_development$1 = 1;
4446
- if (process.env.NODE_ENV !== "production") {
4446
+ if (production !== "production") {
4447
4447
  (function() {
4448
4448
  var hasSymbol2 = typeof Symbol === "function" && Symbol.for;
4449
4449
  var REACT_ELEMENT_TYPE = hasSymbol2 ? Symbol.for("react.element") : 60103;
@@ -4613,7 +4613,7 @@ function requireReactIs() {
4613
4613
  if (hasRequiredReactIs)
4614
4614
  return reactIs$1.exports;
4615
4615
  hasRequiredReactIs = 1;
4616
- if (process.env.NODE_ENV === "production") {
4616
+ if (production === "production") {
4617
4617
  reactIs$1.exports = requireReactIs_production_min$1();
4618
4618
  } else {
4619
4619
  reactIs$1.exports = requireReactIs_development$1();
@@ -4729,7 +4729,7 @@ function requireCheckPropTypes() {
4729
4729
  hasRequiredCheckPropTypes = 1;
4730
4730
  var printWarning = /* @__PURE__ */ __name(function() {
4731
4731
  }, "printWarning");
4732
- if (process.env.NODE_ENV !== "production") {
4732
+ if (production !== "production") {
4733
4733
  var ReactPropTypesSecret = requireReactPropTypesSecret();
4734
4734
  var loggedTypeFailures = {};
4735
4735
  var has3 = requireHas();
@@ -4745,7 +4745,7 @@ function requireCheckPropTypes() {
4745
4745
  }, "printWarning");
4746
4746
  }
4747
4747
  function checkPropTypes(typeSpecs, values, location2, componentName, getStack) {
4748
- if (process.env.NODE_ENV !== "production") {
4748
+ if (production !== "production") {
4749
4749
  for (var typeSpecName in typeSpecs) {
4750
4750
  if (has3(typeSpecs, typeSpecName)) {
4751
4751
  var error;
@@ -4779,7 +4779,7 @@ function requireCheckPropTypes() {
4779
4779
  }
4780
4780
  __name(checkPropTypes, "checkPropTypes");
4781
4781
  checkPropTypes.resetWarningCache = function() {
4782
- if (process.env.NODE_ENV !== "production") {
4782
+ if (production !== "production") {
4783
4783
  loggedTypeFailures = {};
4784
4784
  }
4785
4785
  };
@@ -4800,7 +4800,7 @@ function requireFactoryWithTypeCheckers() {
4800
4800
  var checkPropTypes = requireCheckPropTypes();
4801
4801
  var printWarning = /* @__PURE__ */ __name(function() {
4802
4802
  }, "printWarning");
4803
- if (process.env.NODE_ENV !== "production") {
4803
+ if (production !== "production") {
4804
4804
  printWarning = /* @__PURE__ */ __name(function(text2) {
4805
4805
  var message = "Warning: " + text2;
4806
4806
  if (typeof console !== "undefined") {
@@ -4864,7 +4864,7 @@ function requireFactoryWithTypeCheckers() {
4864
4864
  __name(PropTypeError, "PropTypeError");
4865
4865
  PropTypeError.prototype = Error.prototype;
4866
4866
  function createChainableTypeChecker(validate) {
4867
- if (process.env.NODE_ENV !== "production") {
4867
+ if (production !== "production") {
4868
4868
  var manualPropTypeCallCache = {};
4869
4869
  var manualPropTypeWarningCount = 0;
4870
4870
  }
@@ -4878,7 +4878,7 @@ function requireFactoryWithTypeCheckers() {
4878
4878
  );
4879
4879
  err.name = "Invariant Violation";
4880
4880
  throw err;
4881
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
4881
+ } else if (production !== "production" && typeof console !== "undefined") {
4882
4882
  var cacheKey = componentName + ":" + propName;
4883
4883
  if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
4884
4884
  manualPropTypeWarningCount < 3) {
@@ -4992,7 +4992,7 @@ function requireFactoryWithTypeCheckers() {
4992
4992
  __name(createInstanceTypeChecker, "createInstanceTypeChecker");
4993
4993
  function createEnumTypeChecker(expectedValues) {
4994
4994
  if (!Array.isArray(expectedValues)) {
4995
- if (process.env.NODE_ENV !== "production") {
4995
+ if (production !== "production") {
4996
4996
  if (arguments.length > 1) {
4997
4997
  printWarning(
4998
4998
  "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
@@ -5049,7 +5049,7 @@ function requireFactoryWithTypeCheckers() {
5049
5049
  __name(createObjectOfTypeChecker, "createObjectOfTypeChecker");
5050
5050
  function createUnionTypeChecker(arrayOfTypeCheckers) {
5051
5051
  if (!Array.isArray(arrayOfTypeCheckers)) {
5052
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
5052
+ production !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
5053
5053
  return emptyFunctionThatReturnsNull;
5054
5054
  }
5055
5055
  for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
@@ -5328,7 +5328,7 @@ function requireFactoryWithThrowingShims() {
5328
5328
  return factoryWithThrowingShims;
5329
5329
  }
5330
5330
  __name(requireFactoryWithThrowingShims, "requireFactoryWithThrowingShims");
5331
- if (process.env.NODE_ENV !== "production") {
5331
+ if (production !== "production") {
5332
5332
  var ReactIs$1 = requireReactIs();
5333
5333
  var throwOnDirectAccess = true;
5334
5334
  propTypes$1.exports = requireFactoryWithTypeCheckers()(ReactIs$1.isElement, throwOnDirectAccess);
@@ -7610,12 +7610,12 @@ var niceErrors = {
7610
7610
  38: "'ownKeys()' can only be used on observable objects",
7611
7611
  39: "'defineProperty()' can only be used on observable objects"
7612
7612
  };
7613
- var errors = process.env.NODE_ENV !== "production" ? niceErrors : {};
7613
+ var errors = production !== "production" ? niceErrors : {};
7614
7614
  function die(error) {
7615
7615
  for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
7616
7616
  args[_key - 1] = arguments[_key];
7617
7617
  }
7618
- if (process.env.NODE_ENV !== "production") {
7618
+ if (production !== "production") {
7619
7619
  var e = typeof error === "string" ? error : errors[error];
7620
7620
  if (typeof e === "function")
7621
7621
  e = e.apply(null, args);
@@ -7653,12 +7653,12 @@ var hasProxy = typeof Proxy !== "undefined";
7653
7653
  var plainObjectString = /* @__PURE__ */ Object.toString();
7654
7654
  function assertProxies() {
7655
7655
  if (!hasProxy) {
7656
- die(process.env.NODE_ENV !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
7656
+ die(production !== "production" ? "`Proxy` objects are not available in the current environment. Please configure MobX to enable a fallback implementation.`" : "Proxy not available");
7657
7657
  }
7658
7658
  }
7659
7659
  __name(assertProxies, "assertProxies");
7660
7660
  function warnAboutProxyRequirement(msg) {
7661
- if (process.env.NODE_ENV !== "production" && globalState.verifyProxies) {
7661
+ if (production !== "production" && globalState.verifyProxies) {
7662
7662
  die("MobX is currently configured to be able to run in ES5 mode, but in ES5 MobX won't be able to " + msg);
7663
7663
  }
7664
7664
  }
@@ -7787,10 +7787,10 @@ function stringifyKey(key) {
7787
7787
  return new String(key).toString();
7788
7788
  }
7789
7789
  __name(stringifyKey, "stringifyKey");
7790
- function toPrimitive$3(value) {
7790
+ function toPrimitive$2(value) {
7791
7791
  return value === null ? null : typeof value === "object" ? "" + value : value;
7792
7792
  }
7793
- __name(toPrimitive$3, "toPrimitive$3");
7793
+ __name(toPrimitive$2, "toPrimitive$2");
7794
7794
  function hasProp(target, prop) {
7795
7795
  return objectPrototype$1.hasOwnProperty.call(target, prop);
7796
7796
  }
@@ -7935,7 +7935,7 @@ function storeAnnotation(prototype, key, annotation) {
7935
7935
  if (!hasProp(prototype, storedAnnotationsSymbol)) {
7936
7936
  addHiddenProp(prototype, storedAnnotationsSymbol, _extends$o({}, prototype[storedAnnotationsSymbol]));
7937
7937
  }
7938
- if (process.env.NODE_ENV !== "production" && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {
7938
+ if (production !== "production" && isOverride(annotation) && !hasProp(prototype[storedAnnotationsSymbol], key)) {
7939
7939
  var fieldName = prototype.constructor.name + ".prototype." + key.toString();
7940
7940
  die("'" + fieldName + "' is decorated with 'override', but no such decorated member was found on prototype.");
7941
7941
  }
@@ -7946,7 +7946,7 @@ function storeAnnotation(prototype, key, annotation) {
7946
7946
  }
7947
7947
  __name(storeAnnotation, "storeAnnotation");
7948
7948
  function assertNotDecorated(prototype, annotation, key) {
7949
- if (process.env.NODE_ENV !== "production" && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {
7949
+ if (production !== "production" && !isOverride(annotation) && hasProp(prototype[storedAnnotationsSymbol], key)) {
7950
7950
  var fieldName = prototype.constructor.name + ".prototype." + key.toString();
7951
7951
  var currentAnnotationType = prototype[storedAnnotationsSymbol][key].annotationType_;
7952
7952
  var requestedAnnotationType = annotation.annotationType_;
@@ -7956,7 +7956,7 @@ function assertNotDecorated(prototype, annotation, key) {
7956
7956
  __name(assertNotDecorated, "assertNotDecorated");
7957
7957
  function collectStoredAnnotations(target) {
7958
7958
  if (!hasProp(target, storedAnnotationsSymbol)) {
7959
- if (process.env.NODE_ENV !== "production" && !target[storedAnnotationsSymbol]) {
7959
+ if (production !== "production" && !target[storedAnnotationsSymbol]) {
7960
7960
  die("No annotations were passed to makeObservable, but no decorated members have been found either");
7961
7961
  }
7962
7962
  addHiddenProp(target, storedAnnotationsSymbol, _extends$o({}, target[storedAnnotationsSymbol]));
@@ -7968,7 +7968,7 @@ var $mobx = /* @__PURE__ */ Symbol("mobx administration");
7968
7968
  var Atom = /* @__PURE__ */ function() {
7969
7969
  function Atom2(name_) {
7970
7970
  if (name_ === void 0) {
7971
- name_ = process.env.NODE_ENV !== "production" ? "Atom@" + getNextId() : "Atom";
7971
+ name_ = production !== "production" ? "Atom@" + getNextId() : "Atom";
7972
7972
  }
7973
7973
  this.name_ = void 0;
7974
7974
  this.isPendingUnobservation_ = false;
@@ -8119,7 +8119,7 @@ function shallowEnhancer(v2, _15, name) {
8119
8119
  deep: false
8120
8120
  });
8121
8121
  }
8122
- if (process.env.NODE_ENV !== "production") {
8122
+ if (production !== "production") {
8123
8123
  die("The shallow modifier / decorator can only used in combination with arrays, objects, maps and sets");
8124
8124
  }
8125
8125
  }
@@ -8129,7 +8129,7 @@ function referenceEnhancer(newValue) {
8129
8129
  }
8130
8130
  __name(referenceEnhancer, "referenceEnhancer");
8131
8131
  function refStructEnhancer(v2, oldValue) {
8132
- if (process.env.NODE_ENV !== "production" && isObservable(v2)) {
8132
+ if (production !== "production" && isObservable(v2)) {
8133
8133
  die("observable.struct should not be used with observable values");
8134
8134
  }
8135
8135
  if (deepEqual(v2, oldValue)) {
@@ -8176,7 +8176,7 @@ __name(extend_$1, "extend_$1");
8176
8176
  function assertActionDescriptor(adm, _ref, key, _ref2) {
8177
8177
  var annotationType_ = _ref.annotationType_;
8178
8178
  var value = _ref2.value;
8179
- if (process.env.NODE_ENV !== "production" && !isFunction$5(value)) {
8179
+ if (production !== "production" && !isFunction$5(value)) {
8180
8180
  die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a function value."));
8181
8181
  }
8182
8182
  }
@@ -8247,7 +8247,7 @@ __name(extend_$2, "extend_$2");
8247
8247
  function assertFlowDescriptor(adm, _ref, key, _ref2) {
8248
8248
  var annotationType_ = _ref.annotationType_;
8249
8249
  var value = _ref2.value;
8250
- if (process.env.NODE_ENV !== "production" && !isFunction$5(value)) {
8250
+ if (production !== "production" && !isFunction$5(value)) {
8251
8251
  die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on properties with a generator function value."));
8252
8252
  }
8253
8253
  }
@@ -8303,7 +8303,7 @@ __name(extend_$3, "extend_$3");
8303
8303
  function assertComputedDescriptor(adm, _ref, key, _ref2) {
8304
8304
  var annotationType_ = _ref.annotationType_;
8305
8305
  var get5 = _ref2.get;
8306
- if (process.env.NODE_ENV !== "production" && !get5) {
8306
+ if (production !== "production" && !get5) {
8307
8307
  die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' can only be used on getter(+setter) properties."));
8308
8308
  }
8309
8309
  }
@@ -8329,7 +8329,7 @@ function extend_$4(adm, key, descriptor2, proxyTrap) {
8329
8329
  __name(extend_$4, "extend_$4");
8330
8330
  function assertObservableDescriptor(adm, _ref, key, descriptor2) {
8331
8331
  var annotationType_ = _ref.annotationType_;
8332
- if (process.env.NODE_ENV !== "production" && !("value" in descriptor2)) {
8332
+ if (production !== "production" && !("value" in descriptor2)) {
8333
8333
  die("Cannot apply '" + annotationType_ + "' to '" + adm.name_ + "." + key.toString() + "':" + ("\n'" + annotationType_ + "' cannot be used on getter/setter properties"));
8334
8334
  }
8335
8335
  }
@@ -8507,7 +8507,7 @@ var computed = /* @__PURE__ */ __name(function computed2(arg1, arg2) {
8507
8507
  if (isPlainObject$4(arg1)) {
8508
8508
  return createDecoratorAnnotation(createComputedAnnotation(COMPUTED, arg1));
8509
8509
  }
8510
- if (process.env.NODE_ENV !== "production") {
8510
+ if (production !== "production") {
8511
8511
  if (!isFunction$5(arg1)) {
8512
8512
  die("First argument to `computed` should be an expression.");
8513
8513
  }
@@ -8537,7 +8537,7 @@ function createAction(actionName, fn3, autoAction2, ref) {
8537
8537
  if (autoAction2 === void 0) {
8538
8538
  autoAction2 = false;
8539
8539
  }
8540
- if (process.env.NODE_ENV !== "production") {
8540
+ if (production !== "production") {
8541
8541
  if (!isFunction$5(fn3)) {
8542
8542
  die("`action` can only be invoked on functions");
8543
8543
  }
@@ -8570,9 +8570,9 @@ function executeAction(actionName, canRunAsDerivation, fn3, scope, args) {
8570
8570
  }
8571
8571
  __name(executeAction, "executeAction");
8572
8572
  function _startAction(actionName, canRunAsDerivation, scope, args) {
8573
- var notifySpy_ = process.env.NODE_ENV !== "production" && isSpyEnabled() && !!actionName;
8573
+ var notifySpy_ = production !== "production" && isSpyEnabled() && !!actionName;
8574
8574
  var startTime_ = 0;
8575
- if (process.env.NODE_ENV !== "production" && notifySpy_) {
8575
+ if (production !== "production" && notifySpy_) {
8576
8576
  startTime_ = Date.now();
8577
8577
  var flattenedArgs = args ? Array.from(args) : EMPTY_ARRAY;
8578
8578
  spyReportStart({
@@ -8619,7 +8619,7 @@ function _endAction(runInfo) {
8619
8619
  if (runInfo.runAsAction_) {
8620
8620
  untrackedEnd(runInfo.prevDerivation_);
8621
8621
  }
8622
- if (process.env.NODE_ENV !== "production" && runInfo.notifySpy_) {
8622
+ if (production !== "production" && runInfo.notifySpy_) {
8623
8623
  spyReportEnd({
8624
8624
  time: Date.now() - runInfo.startTime_
8625
8625
  });
@@ -8654,7 +8654,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
8654
8654
  function ObservableValue2(value, enhancer, name_, notifySpy, equals) {
8655
8655
  var _this;
8656
8656
  if (name_ === void 0) {
8657
- name_ = process.env.NODE_ENV !== "production" ? "ObservableValue@" + getNextId() : "ObservableValue";
8657
+ name_ = production !== "production" ? "ObservableValue@" + getNextId() : "ObservableValue";
8658
8658
  }
8659
8659
  if (notifySpy === void 0) {
8660
8660
  notifySpy = true;
@@ -8675,7 +8675,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
8675
8675
  _this.name_ = name_;
8676
8676
  _this.equals = equals;
8677
8677
  _this.value_ = enhancer(value, void 0, name_);
8678
- if (process.env.NODE_ENV !== "production" && notifySpy && isSpyEnabled()) {
8678
+ if (production !== "production" && notifySpy && isSpyEnabled()) {
8679
8679
  spyReport({
8680
8680
  type: CREATE,
8681
8681
  object: _assertThisInitialized$1(_this),
@@ -8699,7 +8699,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
8699
8699
  newValue = this.prepareNewValue_(newValue);
8700
8700
  if (newValue !== globalState.UNCHANGED) {
8701
8701
  var notifySpy = isSpyEnabled();
8702
- if (process.env.NODE_ENV !== "production" && notifySpy) {
8702
+ if (production !== "production" && notifySpy) {
8703
8703
  spyReportStart({
8704
8704
  type: UPDATE,
8705
8705
  object: this,
@@ -8710,7 +8710,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
8710
8710
  });
8711
8711
  }
8712
8712
  this.setNewValue_(newValue);
8713
- if (process.env.NODE_ENV !== "production" && notifySpy) {
8713
+ if (production !== "production" && notifySpy) {
8714
8714
  spyReportEnd();
8715
8715
  }
8716
8716
  }
@@ -8774,7 +8774,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
8774
8774
  return this.name_ + "[" + this.value_ + "]";
8775
8775
  }, "toString");
8776
8776
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
8777
- return toPrimitive$3(this.get());
8777
+ return toPrimitive$2(this.get());
8778
8778
  }, "valueOf");
8779
8779
  _proto[_Symbol$toPrimitive] = function() {
8780
8780
  return this.valueOf();
@@ -8814,9 +8814,9 @@ var ComputedValue = /* @__PURE__ */ function() {
8814
8814
  die(31);
8815
8815
  }
8816
8816
  this.derivation = options.get;
8817
- this.name_ = options.name || (process.env.NODE_ENV !== "production" ? "ComputedValue@" + getNextId() : "ComputedValue");
8817
+ this.name_ = options.name || (production !== "production" ? "ComputedValue@" + getNextId() : "ComputedValue");
8818
8818
  if (options.set) {
8819
- this.setter_ = createAction(process.env.NODE_ENV !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", options.set);
8819
+ this.setter_ = createAction(production !== "production" ? this.name_ + "-setter" : "ComputedValue-setter", options.set);
8820
8820
  }
8821
8821
  this.equals_ = options.equals || (options.compareStructural || options.struct ? comparer.structural : comparer["default"]);
8822
8822
  this.scope_ = options.context;
@@ -8898,7 +8898,7 @@ var ComputedValue = /* @__PURE__ */ function() {
8898
8898
  var changed = wasSuspended || isCaughtException(oldValue) || isCaughtException(newValue) || !this.equals_(oldValue, newValue);
8899
8899
  if (changed) {
8900
8900
  this.value_ = newValue;
8901
- if (process.env.NODE_ENV !== "production" && isSpyEnabled()) {
8901
+ if (production !== "production" && isSpyEnabled()) {
8902
8902
  spyReport({
8903
8903
  observableKind: "computed",
8904
8904
  debugObjectName: this.name_,
@@ -8936,7 +8936,7 @@ var ComputedValue = /* @__PURE__ */ function() {
8936
8936
  if (!this.keepAlive_) {
8937
8937
  clearObserving(this);
8938
8938
  this.value_ = void 0;
8939
- if (process.env.NODE_ENV !== "production" && this.isTracing_ !== TraceMode.NONE) {
8939
+ if (production !== "production" && this.isTracing_ !== TraceMode.NONE) {
8940
8940
  console.log("[mobx.trace] Computed value '" + this.name_ + "' was suspended and it will recompute on the next access.");
8941
8941
  }
8942
8942
  }
@@ -8964,7 +8964,7 @@ var ComputedValue = /* @__PURE__ */ function() {
8964
8964
  });
8965
8965
  }, "observe_");
8966
8966
  _proto.warnAboutUntrackedRead_ = /* @__PURE__ */ __name(function warnAboutUntrackedRead_() {
8967
- if (!(process.env.NODE_ENV !== "production")) {
8967
+ if (!(production !== "production")) {
8968
8968
  return;
8969
8969
  }
8970
8970
  if (this.isTracing_ !== TraceMode.NONE) {
@@ -8978,7 +8978,7 @@ var ComputedValue = /* @__PURE__ */ function() {
8978
8978
  return this.name_ + "[" + this.derivation.toString() + "]";
8979
8979
  }, "toString");
8980
8980
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
8981
- return toPrimitive$3(this.get());
8981
+ return toPrimitive$2(this.get());
8982
8982
  }, "valueOf");
8983
8983
  _proto[_Symbol$toPrimitive$1] = function() {
8984
8984
  return this.valueOf();
@@ -9048,7 +9048,7 @@ function shouldCompute(derivation) {
9048
9048
  }
9049
9049
  __name(shouldCompute, "shouldCompute");
9050
9050
  function checkIfStateModificationsAreAllowed(atom) {
9051
- if (!(process.env.NODE_ENV !== "production")) {
9051
+ if (!(production !== "production")) {
9052
9052
  return;
9053
9053
  }
9054
9054
  var hasObservers = atom.observers_.size > 0;
@@ -9058,7 +9058,7 @@ function checkIfStateModificationsAreAllowed(atom) {
9058
9058
  }
9059
9059
  __name(checkIfStateModificationsAreAllowed, "checkIfStateModificationsAreAllowed");
9060
9060
  function checkIfStateReadsAreAllowed(observable2) {
9061
- if (process.env.NODE_ENV !== "production" && !globalState.allowStateReads && globalState.observableRequiresReaction) {
9061
+ if (production !== "production" && !globalState.allowStateReads && globalState.observableRequiresReaction) {
9062
9062
  console.warn("[mobx] Observable '" + observable2.name_ + "' being read outside a reactive context.");
9063
9063
  }
9064
9064
  }
@@ -9091,7 +9091,7 @@ function trackDerivedFunction(derivation, f2, context) {
9091
9091
  }
9092
9092
  __name(trackDerivedFunction, "trackDerivedFunction");
9093
9093
  function warnAboutDerivationWithoutDependencies(derivation) {
9094
- if (!(process.env.NODE_ENV !== "production")) {
9094
+ if (!(production !== "production")) {
9095
9095
  return;
9096
9096
  }
9097
9097
  if (derivation.observing_.length !== 0) {
@@ -9334,7 +9334,7 @@ function propagateChanged(observable2) {
9334
9334
  observable2.lowestObserverState_ = IDerivationState_.STALE_;
9335
9335
  observable2.observers_.forEach(function(d2) {
9336
9336
  if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
9337
- if (process.env.NODE_ENV !== "production" && d2.isTracing_ !== TraceMode.NONE) {
9337
+ if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
9338
9338
  logTraceInfo(d2, observable2);
9339
9339
  }
9340
9340
  d2.onBecomeStale_();
@@ -9351,7 +9351,7 @@ function propagateChangeConfirmed(observable2) {
9351
9351
  observable2.observers_.forEach(function(d2) {
9352
9352
  if (d2.dependenciesState_ === IDerivationState_.POSSIBLY_STALE_) {
9353
9353
  d2.dependenciesState_ = IDerivationState_.STALE_;
9354
- if (process.env.NODE_ENV !== "production" && d2.isTracing_ !== TraceMode.NONE) {
9354
+ if (production !== "production" && d2.isTracing_ !== TraceMode.NONE) {
9355
9355
  logTraceInfo(d2, observable2);
9356
9356
  }
9357
9357
  } else if (d2.dependenciesState_ === IDerivationState_.UP_TO_DATE_) {
@@ -9398,7 +9398,7 @@ __name(printDepTree, "printDepTree");
9398
9398
  var Reaction = /* @__PURE__ */ function() {
9399
9399
  function Reaction2(name_, onInvalidate_, errorHandler_, requiresObservable_) {
9400
9400
  if (name_ === void 0) {
9401
- name_ = process.env.NODE_ENV !== "production" ? "Reaction@" + getNextId() : "Reaction";
9401
+ name_ = production !== "production" ? "Reaction@" + getNextId() : "Reaction";
9402
9402
  }
9403
9403
  this.name_ = void 0;
9404
9404
  this.onInvalidate_ = void 0;
@@ -9445,7 +9445,7 @@ var Reaction = /* @__PURE__ */ function() {
9445
9445
  this.isTrackPending_ = true;
9446
9446
  try {
9447
9447
  this.onInvalidate_();
9448
- if (process.env.NODE_ENV !== "production" && this.isTrackPending_ && isSpyEnabled()) {
9448
+ if (production !== "production" && this.isTrackPending_ && isSpyEnabled()) {
9449
9449
  spyReport({
9450
9450
  name: this.name_,
9451
9451
  type: "scheduled-reaction"
@@ -9466,7 +9466,7 @@ var Reaction = /* @__PURE__ */ function() {
9466
9466
  startBatch();
9467
9467
  var notify = isSpyEnabled();
9468
9468
  var startTime;
9469
- if (process.env.NODE_ENV !== "production" && notify) {
9469
+ if (production !== "production" && notify) {
9470
9470
  startTime = Date.now();
9471
9471
  spyReportStart({
9472
9472
  name: this.name_,
@@ -9486,7 +9486,7 @@ var Reaction = /* @__PURE__ */ function() {
9486
9486
  if (isCaughtException(result)) {
9487
9487
  this.reportExceptionInDerivation_(result.cause);
9488
9488
  }
9489
- if (process.env.NODE_ENV !== "production" && notify) {
9489
+ if (production !== "production" && notify) {
9490
9490
  spyReportEnd({
9491
9491
  time: Date.now() - startTime
9492
9492
  });
@@ -9502,13 +9502,13 @@ var Reaction = /* @__PURE__ */ function() {
9502
9502
  if (globalState.disableErrorBoundaries) {
9503
9503
  throw error;
9504
9504
  }
9505
- var message = process.env.NODE_ENV !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
9505
+ var message = production !== "production" ? "[mobx] Encountered an uncaught exception that was thrown by a reaction or observer component, in: '" + this + "'" : "[mobx] uncaught error in '" + this + "'";
9506
9506
  if (!globalState.suppressReactionErrors) {
9507
9507
  console.error(message, error);
9508
- } else if (process.env.NODE_ENV !== "production") {
9508
+ } else if (production !== "production") {
9509
9509
  console.warn("[mobx] (error in reaction '" + this.name_ + "' suppressed, fix error of causing action below)");
9510
9510
  }
9511
- if (process.env.NODE_ENV !== "production" && isSpyEnabled()) {
9511
+ if (production !== "production" && isSpyEnabled()) {
9512
9512
  spyReport({
9513
9513
  type: "error",
9514
9514
  name: this.name_,
@@ -9563,7 +9563,7 @@ function runReactionsHelper() {
9563
9563
  var iterations = 0;
9564
9564
  while (allReactions.length > 0) {
9565
9565
  if (++iterations === MAX_REACTION_ITERATIONS) {
9566
- console.error(process.env.NODE_ENV !== "production" ? "Reaction doesn't converge to a stable state after " + MAX_REACTION_ITERATIONS + " iterations." + (" Probably there is a cycle in the reactive function: " + allReactions[0]) : "[mobx] cycle in reaction: " + allReactions[0]);
9566
+ console.error(production !== "production" ? "Reaction doesn't converge to a stable state after " + MAX_REACTION_ITERATIONS + " iterations." + (" Probably there is a cycle in the reactive function: " + allReactions[0]) : "[mobx] cycle in reaction: " + allReactions[0]);
9567
9567
  allReactions.splice(0);
9568
9568
  }
9569
9569
  var remainingReactions = allReactions.splice(0);
@@ -9585,11 +9585,11 @@ function setReactionScheduler(fn3) {
9585
9585
  }
9586
9586
  __name(setReactionScheduler, "setReactionScheduler");
9587
9587
  function isSpyEnabled() {
9588
- return process.env.NODE_ENV !== "production" && !!globalState.spyListeners.length;
9588
+ return production !== "production" && !!globalState.spyListeners.length;
9589
9589
  }
9590
9590
  __name(isSpyEnabled, "isSpyEnabled");
9591
9591
  function spyReport(event) {
9592
- if (!(process.env.NODE_ENV !== "production")) {
9592
+ if (!(production !== "production")) {
9593
9593
  return;
9594
9594
  }
9595
9595
  if (!globalState.spyListeners.length) {
@@ -9602,7 +9602,7 @@ function spyReport(event) {
9602
9602
  }
9603
9603
  __name(spyReport, "spyReport");
9604
9604
  function spyReportStart(event) {
9605
- if (!(process.env.NODE_ENV !== "production")) {
9605
+ if (!(production !== "production")) {
9606
9606
  return;
9607
9607
  }
9608
9608
  var change = _extends$o({}, event, {
@@ -9616,7 +9616,7 @@ var END_EVENT = {
9616
9616
  spyReportEnd: true
9617
9617
  };
9618
9618
  function spyReportEnd(change) {
9619
- if (!(process.env.NODE_ENV !== "production")) {
9619
+ if (!(production !== "production")) {
9620
9620
  return;
9621
9621
  }
9622
9622
  if (change) {
@@ -9630,7 +9630,7 @@ function spyReportEnd(change) {
9630
9630
  }
9631
9631
  __name(spyReportEnd, "spyReportEnd");
9632
9632
  function spy(listener) {
9633
- if (!(process.env.NODE_ENV !== "production")) {
9633
+ if (!(production !== "production")) {
9634
9634
  console.warn("[mobx.spy] Is a no-op in production builds");
9635
9635
  return function() {
9636
9636
  };
@@ -9677,7 +9677,7 @@ function createActionFactory(autoAction2) {
9677
9677
  autoAction: autoAction2
9678
9678
  }));
9679
9679
  }
9680
- if (process.env.NODE_ENV !== "production") {
9680
+ if (production !== "production") {
9681
9681
  die("Invalid arguments for `action`");
9682
9682
  }
9683
9683
  }, "action");
@@ -9699,7 +9699,7 @@ function autorun(view, opts) {
9699
9699
  if (opts === void 0) {
9700
9700
  opts = EMPTY_OBJECT;
9701
9701
  }
9702
- if (process.env.NODE_ENV !== "production") {
9702
+ if (production !== "production") {
9703
9703
  if (!isFunction$5(view)) {
9704
9704
  die("Autorun expects a function as first argument");
9705
9705
  }
@@ -9707,7 +9707,7 @@ function autorun(view, opts) {
9707
9707
  die("Autorun does not accept actions since actions are untrackable");
9708
9708
  }
9709
9709
  }
9710
- var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : process.env.NODE_ENV !== "production" ? view.name || "Autorun@" + getNextId() : "Autorun";
9710
+ var name = (_opts$name = (_opts = opts) == null ? void 0 : _opts.name) != null ? _opts$name : production !== "production" ? view.name || "Autorun@" + getNextId() : "Autorun";
9711
9711
  var runSync = !opts.scheduler && !opts.delay;
9712
9712
  var reaction;
9713
9713
  if (runSync) {
@@ -9801,7 +9801,7 @@ function configure$1(options) {
9801
9801
  }
9802
9802
  });
9803
9803
  globalState.allowStateReads = !globalState.observableRequiresReaction;
9804
- if (process.env.NODE_ENV !== "production" && globalState.disableErrorBoundaries === true) {
9804
+ if (production !== "production" && globalState.disableErrorBoundaries === true) {
9805
9805
  console.warn("WARNING: Debug feature only. MobX will NOT recover from errors when `disableErrorBoundaries` is enabled.");
9806
9806
  }
9807
9807
  if (options.reactionScheduler) {
@@ -9810,7 +9810,7 @@ function configure$1(options) {
9810
9810
  }
9811
9811
  __name(configure$1, "configure$1");
9812
9812
  function extendObservable(target, properties, annotations, options) {
9813
- if (process.env.NODE_ENV !== "production") {
9813
+ if (production !== "production") {
9814
9814
  if (arguments.length > 4) {
9815
9815
  die("'extendObservable' expected 2-4 arguments");
9816
9816
  }
@@ -9877,7 +9877,7 @@ var flow$2 = /* @__PURE__ */ Object.assign(/* @__PURE__ */ __name(function flow(
9877
9877
  if (isStringish(arg2)) {
9878
9878
  return storeAnnotation(arg1, arg2, flowAnnotation);
9879
9879
  }
9880
- if (process.env.NODE_ENV !== "production" && arguments.length !== 1) {
9880
+ if (production !== "production" && arguments.length !== 1) {
9881
9881
  die("Flow expects single argument with generator function");
9882
9882
  }
9883
9883
  var generator = arg1;
@@ -9963,7 +9963,7 @@ function _isObservable(value, property2) {
9963
9963
  return false;
9964
9964
  }
9965
9965
  if (property2 !== void 0) {
9966
- if (process.env.NODE_ENV !== "production" && (isObservableMap(value) || isObservableArray(value))) {
9966
+ if (production !== "production" && (isObservableMap(value) || isObservableArray(value))) {
9967
9967
  return die("isObservable(object, propertyName) is not supported for arrays and maps. Use map.has or array.length instead.");
9968
9968
  }
9969
9969
  if (isObservableObject(value)) {
@@ -9975,14 +9975,14 @@ function _isObservable(value, property2) {
9975
9975
  }
9976
9976
  __name(_isObservable, "_isObservable");
9977
9977
  function isObservable(value) {
9978
- if (process.env.NODE_ENV !== "production" && arguments.length !== 1) {
9978
+ if (production !== "production" && arguments.length !== 1) {
9979
9979
  die("isObservable expects only 1 argument. Use isObservableProp to inspect the observability of a property");
9980
9980
  }
9981
9981
  return _isObservable(value);
9982
9982
  }
9983
9983
  __name(isObservable, "isObservable");
9984
9984
  function trace() {
9985
- if (!(process.env.NODE_ENV !== "production")) {
9985
+ if (!(production !== "production")) {
9986
9986
  die("trace() is not available in production builds");
9987
9987
  }
9988
9988
  var enterBreakPoint = false;
@@ -10031,7 +10031,7 @@ function getAdm(target) {
10031
10031
  __name(getAdm, "getAdm");
10032
10032
  var objectProxyTraps = {
10033
10033
  has: /* @__PURE__ */ __name(function has(target, name) {
10034
- if (process.env.NODE_ENV !== "production" && globalState.trackingDerivation) {
10034
+ if (production !== "production" && globalState.trackingDerivation) {
10035
10035
  warnAboutProxyRequirement("detect new properties using the 'in' operator. Use 'has' from 'mobx' instead.");
10036
10036
  }
10037
10037
  return getAdm(target).has_(name);
@@ -10044,14 +10044,14 @@ var objectProxyTraps = {
10044
10044
  if (!isStringish(name)) {
10045
10045
  return false;
10046
10046
  }
10047
- if (process.env.NODE_ENV !== "production" && !getAdm(target).values_.has(name)) {
10047
+ if (production !== "production" && !getAdm(target).values_.has(name)) {
10048
10048
  warnAboutProxyRequirement("add a new observable property through direct assignment. Use 'set' from 'mobx' instead.");
10049
10049
  }
10050
10050
  return (_getAdm$set_ = getAdm(target).set_(name, value, true)) != null ? _getAdm$set_ : true;
10051
10051
  }, "set"),
10052
10052
  deleteProperty: /* @__PURE__ */ __name(function deleteProperty(target, name) {
10053
10053
  var _getAdm$delete_;
10054
- if (process.env.NODE_ENV !== "production") {
10054
+ if (production !== "production") {
10055
10055
  warnAboutProxyRequirement("delete properties from an observable object. Use 'remove' from 'mobx' instead.");
10056
10056
  }
10057
10057
  if (!isStringish(name)) {
@@ -10061,13 +10061,13 @@ var objectProxyTraps = {
10061
10061
  }, "deleteProperty"),
10062
10062
  defineProperty: /* @__PURE__ */ __name(function defineProperty(target, name, descriptor2) {
10063
10063
  var _getAdm$definePropert;
10064
- if (process.env.NODE_ENV !== "production") {
10064
+ if (production !== "production") {
10065
10065
  warnAboutProxyRequirement("define property on an observable object. Use 'defineProperty' from 'mobx' instead.");
10066
10066
  }
10067
10067
  return (_getAdm$definePropert = getAdm(target).defineProperty_(name, descriptor2)) != null ? _getAdm$definePropert : true;
10068
10068
  }, "defineProperty"),
10069
10069
  ownKeys: /* @__PURE__ */ __name(function ownKeys(target) {
10070
- if (process.env.NODE_ENV !== "production" && globalState.trackingDerivation) {
10070
+ if (production !== "production" && globalState.trackingDerivation) {
10071
10071
  warnAboutProxyRequirement("iterate keys to detect added / removed properties. Use 'keys' from 'mobx' instead.");
10072
10072
  }
10073
10073
  return getAdm(target).ownKeys_();
@@ -10150,7 +10150,7 @@ function makeObservable(target, annotations, options) {
10150
10150
  startBatch();
10151
10151
  try {
10152
10152
  var _annotations;
10153
- if (process.env.NODE_ENV !== "production" && annotations && target[storedAnnotationsSymbol]) {
10153
+ if (production !== "production" && annotations && target[storedAnnotationsSymbol]) {
10154
10154
  die("makeObservable second arg must be nullish when using decorators. Mixing @decorator syntax with annotations is not supported.");
10155
10155
  }
10156
10156
  (_annotations = annotations) != null ? _annotations : annotations = collectStoredAnnotations(target);
@@ -10202,7 +10202,7 @@ var arrayTraps = {
10202
10202
  var ObservableArrayAdministration = /* @__PURE__ */ function() {
10203
10203
  function ObservableArrayAdministration2(name, enhancer, owned_, legacyMode_) {
10204
10204
  if (name === void 0) {
10205
- name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
10205
+ name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
10206
10206
  }
10207
10207
  this.owned_ = void 0;
10208
10208
  this.legacyMode_ = void 0;
@@ -10218,7 +10218,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
10218
10218
  this.legacyMode_ = legacyMode_;
10219
10219
  this.atom_ = new Atom(name);
10220
10220
  this.enhancer_ = function(newV, oldV) {
10221
- return enhancer(newV, oldV, process.env.NODE_ENV !== "production" ? name + "[..]" : "ObservableArray[..]");
10221
+ return enhancer(newV, oldV, production !== "production" ? name + "[..]" : "ObservableArray[..]");
10222
10222
  };
10223
10223
  }
10224
10224
  __name(ObservableArrayAdministration2, "ObservableArrayAdministration");
@@ -10325,7 +10325,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
10325
10325
  newItems = newItems.length === 0 ? newItems : newItems.map(function(v2) {
10326
10326
  return _this.enhancer_(v2, void 0);
10327
10327
  });
10328
- if (this.legacyMode_ || process.env.NODE_ENV !== "production") {
10328
+ if (this.legacyMode_ || production !== "production") {
10329
10329
  var lengthDelta = newItems.length - deleteCount;
10330
10330
  this.updateArrayLength_(length, lengthDelta);
10331
10331
  }
@@ -10364,14 +10364,14 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
10364
10364
  newValue,
10365
10365
  oldValue
10366
10366
  } : null;
10367
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10367
+ if (production !== "production" && notifySpy) {
10368
10368
  spyReportStart(change);
10369
10369
  }
10370
10370
  this.atom_.reportChanged();
10371
10371
  if (notify) {
10372
10372
  notifyListeners(this, change);
10373
10373
  }
10374
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10374
+ if (production !== "production" && notifySpy) {
10375
10375
  spyReportEnd();
10376
10376
  }
10377
10377
  }, "notifyArrayChildUpdate_");
@@ -10389,20 +10389,20 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
10389
10389
  removedCount: removed.length,
10390
10390
  addedCount: added.length
10391
10391
  } : null;
10392
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10392
+ if (production !== "production" && notifySpy) {
10393
10393
  spyReportStart(change);
10394
10394
  }
10395
10395
  this.atom_.reportChanged();
10396
10396
  if (notify) {
10397
10397
  notifyListeners(this, change);
10398
10398
  }
10399
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10399
+ if (production !== "production" && notifySpy) {
10400
10400
  spyReportEnd();
10401
10401
  }
10402
10402
  }, "notifyArraySplice_");
10403
10403
  _proto.get_ = /* @__PURE__ */ __name(function get_(index2) {
10404
10404
  if (this.legacyMode_ && index2 >= this.values_.length) {
10405
- console.warn(process.env.NODE_ENV !== "production" ? "[mobx.array] Attempt to read an array index (" + index2 + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX" : "[mobx] Out of bounds read: " + index2);
10405
+ console.warn(production !== "production" ? "[mobx.array] Attempt to read an array index (" + index2 + ") that is out of bounds (" + this.values_.length + "). Please check length first. Out of bound indices will not be tracked by MobX" : "[mobx] Out of bounds read: " + index2);
10406
10406
  return void 0;
10407
10407
  }
10408
10408
  this.atom_.reportObserved();
@@ -10447,7 +10447,7 @@ var ObservableArrayAdministration = /* @__PURE__ */ function() {
10447
10447
  }();
10448
10448
  function createObservableArray(initialValues, enhancer, name, owned) {
10449
10449
  if (name === void 0) {
10450
- name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
10450
+ name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
10451
10451
  }
10452
10452
  if (owned === void 0) {
10453
10453
  owned = false;
@@ -10627,7 +10627,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10627
10627
  enhancer_ = deepEnhancer;
10628
10628
  }
10629
10629
  if (name_ === void 0) {
10630
- name_ = process.env.NODE_ENV !== "production" ? "ObservableMap@" + getNextId() : "ObservableMap";
10630
+ name_ = production !== "production" ? "ObservableMap@" + getNextId() : "ObservableMap";
10631
10631
  }
10632
10632
  this.enhancer_ = void 0;
10633
10633
  this.name_ = void 0;
@@ -10643,7 +10643,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10643
10643
  if (!isFunction$5(Map)) {
10644
10644
  die(18);
10645
10645
  }
10646
- this.keysAtom_ = createAtom(process.env.NODE_ENV !== "production" ? this.name_ + ".keys()" : "ObservableMap.keys()");
10646
+ this.keysAtom_ = createAtom(production !== "production" ? this.name_ + ".keys()" : "ObservableMap.keys()");
10647
10647
  this.data_ = /* @__PURE__ */ new Map();
10648
10648
  this.hasMap_ = /* @__PURE__ */ new Map();
10649
10649
  allowStateChanges(true, function() {
@@ -10662,7 +10662,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10662
10662
  }
10663
10663
  var entry = this.hasMap_.get(key);
10664
10664
  if (!entry) {
10665
- var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer, process.env.NODE_ENV !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableMap.key?", false);
10665
+ var newEntry = entry = new ObservableValue(this.has_(key), referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableMap.key?", false);
10666
10666
  this.hasMap_.set(key, newEntry);
10667
10667
  onBecomeUnobserved(newEntry, function() {
10668
10668
  return _this2.hasMap_["delete"](key);
@@ -10715,7 +10715,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10715
10715
  oldValue: this.data_.get(key).value_,
10716
10716
  name: key
10717
10717
  } : null;
10718
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10718
+ if (production !== "production" && notifySpy) {
10719
10719
  spyReportStart(_change);
10720
10720
  }
10721
10721
  transaction(function() {
@@ -10729,7 +10729,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10729
10729
  if (notify) {
10730
10730
  notifyListeners(this, _change);
10731
10731
  }
10732
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10732
+ if (production !== "production" && notifySpy) {
10733
10733
  spyReportEnd();
10734
10734
  }
10735
10735
  return true;
@@ -10751,14 +10751,14 @@ var ObservableMap = /* @__PURE__ */ function() {
10751
10751
  name: key,
10752
10752
  newValue
10753
10753
  } : null;
10754
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10754
+ if (production !== "production" && notifySpy) {
10755
10755
  spyReportStart(change);
10756
10756
  }
10757
10757
  observable2.setNewValue_(newValue);
10758
10758
  if (notify) {
10759
10759
  notifyListeners(this, change);
10760
10760
  }
10761
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10761
+ if (production !== "production" && notifySpy) {
10762
10762
  spyReportEnd();
10763
10763
  }
10764
10764
  }
@@ -10768,7 +10768,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10768
10768
  checkIfStateModificationsAreAllowed(this.keysAtom_);
10769
10769
  transaction(function() {
10770
10770
  var _this4$hasMap_$get;
10771
- var observable2 = new ObservableValue(newValue, _this4.enhancer_, process.env.NODE_ENV !== "production" ? _this4.name_ + "." + stringifyKey(key) : "ObservableMap.key", false);
10771
+ var observable2 = new ObservableValue(newValue, _this4.enhancer_, production !== "production" ? _this4.name_ + "." + stringifyKey(key) : "ObservableMap.key", false);
10772
10772
  _this4.data_.set(key, observable2);
10773
10773
  newValue = observable2.value_;
10774
10774
  (_this4$hasMap_$get = _this4.hasMap_.get(key)) == null ? void 0 : _this4$hasMap_$get.setNewValue_(true);
@@ -10784,13 +10784,13 @@ var ObservableMap = /* @__PURE__ */ function() {
10784
10784
  name: key,
10785
10785
  newValue
10786
10786
  } : null;
10787
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10787
+ if (production !== "production" && notifySpy) {
10788
10788
  spyReportStart(change);
10789
10789
  }
10790
10790
  if (notify) {
10791
10791
  notifyListeners(this, change);
10792
10792
  }
10793
- if (process.env.NODE_ENV !== "production" && notifySpy) {
10793
+ if (production !== "production" && notifySpy) {
10794
10794
  spyReportEnd();
10795
10795
  }
10796
10796
  }, "addValue_");
@@ -10943,7 +10943,7 @@ var ObservableMap = /* @__PURE__ */ function() {
10943
10943
  return Array.from(this);
10944
10944
  }, "toJSON");
10945
10945
  _proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
10946
- if (process.env.NODE_ENV !== "production" && fireImmediately === true) {
10946
+ if (production !== "production" && fireImmediately === true) {
10947
10947
  die("`observe` doesn't support fireImmediately=true in combination with maps.");
10948
10948
  }
10949
10949
  return registerListener(this, listener);
@@ -10992,7 +10992,7 @@ var ObservableSet = /* @__PURE__ */ function() {
10992
10992
  enhancer = deepEnhancer;
10993
10993
  }
10994
10994
  if (name_ === void 0) {
10995
- name_ = process.env.NODE_ENV !== "production" ? "ObservableSet@" + getNextId() : "ObservableSet";
10995
+ name_ = production !== "production" ? "ObservableSet@" + getNextId() : "ObservableSet";
10996
10996
  }
10997
10997
  this.name_ = void 0;
10998
10998
  this[$mobx] = ObservableSetMarker;
@@ -11057,7 +11057,7 @@ var ObservableSet = /* @__PURE__ */ function() {
11057
11057
  _this2.data_.add(_this2.enhancer_(value, void 0));
11058
11058
  _this2.atom_.reportChanged();
11059
11059
  });
11060
- var notifySpy = process.env.NODE_ENV !== "production" && isSpyEnabled();
11060
+ var notifySpy = production !== "production" && isSpyEnabled();
11061
11061
  var notify = hasListeners(this);
11062
11062
  var _change = notify || notifySpy ? {
11063
11063
  observableKind: "set",
@@ -11066,13 +11066,13 @@ var ObservableSet = /* @__PURE__ */ function() {
11066
11066
  object: this,
11067
11067
  newValue: value
11068
11068
  } : null;
11069
- if (notifySpy && process.env.NODE_ENV !== "production") {
11069
+ if (notifySpy && production !== "production") {
11070
11070
  spyReportStart(_change);
11071
11071
  }
11072
11072
  if (notify) {
11073
11073
  notifyListeners(this, _change);
11074
11074
  }
11075
- if (notifySpy && process.env.NODE_ENV !== "production") {
11075
+ if (notifySpy && production !== "production") {
11076
11076
  spyReportEnd();
11077
11077
  }
11078
11078
  }
@@ -11091,7 +11091,7 @@ var ObservableSet = /* @__PURE__ */ function() {
11091
11091
  }
11092
11092
  }
11093
11093
  if (this.has(value)) {
11094
- var notifySpy = process.env.NODE_ENV !== "production" && isSpyEnabled();
11094
+ var notifySpy = production !== "production" && isSpyEnabled();
11095
11095
  var notify = hasListeners(this);
11096
11096
  var _change2 = notify || notifySpy ? {
11097
11097
  observableKind: "set",
@@ -11100,7 +11100,7 @@ var ObservableSet = /* @__PURE__ */ function() {
11100
11100
  object: this,
11101
11101
  oldValue: value
11102
11102
  } : null;
11103
- if (notifySpy && process.env.NODE_ENV !== "production") {
11103
+ if (notifySpy && production !== "production") {
11104
11104
  spyReportStart(_change2);
11105
11105
  }
11106
11106
  transaction(function() {
@@ -11110,7 +11110,7 @@ var ObservableSet = /* @__PURE__ */ function() {
11110
11110
  if (notify) {
11111
11111
  notifyListeners(this, _change2);
11112
11112
  }
11113
- if (notifySpy && process.env.NODE_ENV !== "production") {
11113
+ if (notifySpy && production !== "production") {
11114
11114
  spyReportEnd();
11115
11115
  }
11116
11116
  return true;
@@ -11180,7 +11180,7 @@ var ObservableSet = /* @__PURE__ */ function() {
11180
11180
  return this;
11181
11181
  }, "replace");
11182
11182
  _proto.observe_ = /* @__PURE__ */ __name(function observe_(listener, fireImmediately) {
11183
- if (process.env.NODE_ENV !== "production" && fireImmediately === true) {
11183
+ if (production !== "production" && fireImmediately === true) {
11184
11184
  die("`observe` doesn't support fireImmediately=true in combination with sets.");
11185
11185
  }
11186
11186
  return registerListener(this, listener);
@@ -11237,12 +11237,12 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11237
11237
  this.values_ = values_;
11238
11238
  this.name_ = name_;
11239
11239
  this.defaultAnnotation_ = defaultAnnotation_;
11240
- this.keysAtom_ = new Atom(process.env.NODE_ENV !== "production" ? this.name_ + ".keys" : "ObservableObject.keys");
11240
+ this.keysAtom_ = new Atom(production !== "production" ? this.name_ + ".keys" : "ObservableObject.keys");
11241
11241
  this.isPlainObject_ = isPlainObject$4(this.target_);
11242
- if (process.env.NODE_ENV !== "production" && !isAnnotation(this.defaultAnnotation_)) {
11242
+ if (production !== "production" && !isAnnotation(this.defaultAnnotation_)) {
11243
11243
  die("defaultAnnotation must be valid annotation");
11244
11244
  }
11245
- if (process.env.NODE_ENV !== "production") {
11245
+ if (production !== "production") {
11246
11246
  this.appliedAnnotations_ = {};
11247
11247
  }
11248
11248
  }
@@ -11272,7 +11272,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11272
11272
  newValue = observable2.prepareNewValue_(newValue);
11273
11273
  if (newValue !== globalState.UNCHANGED) {
11274
11274
  var notify = hasListeners(this);
11275
- var notifySpy = process.env.NODE_ENV !== "production" && isSpyEnabled();
11275
+ var notifySpy = production !== "production" && isSpyEnabled();
11276
11276
  var _change = notify || notifySpy ? {
11277
11277
  type: UPDATE,
11278
11278
  observableKind: "object",
@@ -11282,14 +11282,14 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11282
11282
  name: key,
11283
11283
  newValue
11284
11284
  } : null;
11285
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11285
+ if (production !== "production" && notifySpy) {
11286
11286
  spyReportStart(_change);
11287
11287
  }
11288
11288
  observable2.setNewValue_(newValue);
11289
11289
  if (notify) {
11290
11290
  notifyListeners(this, _change);
11291
11291
  }
11292
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11292
+ if (production !== "production" && notifySpy) {
11293
11293
  spyReportEnd();
11294
11294
  }
11295
11295
  }
@@ -11330,7 +11330,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11330
11330
  this.pendingKeys_ || (this.pendingKeys_ = /* @__PURE__ */ new Map());
11331
11331
  var entry = this.pendingKeys_.get(key);
11332
11332
  if (!entry) {
11333
- entry = new ObservableValue(key in this.target_, referenceEnhancer, process.env.NODE_ENV !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableObject.key?", false);
11333
+ entry = new ObservableValue(key in this.target_, referenceEnhancer, production !== "production" ? this.name_ + "." + stringifyKey(key) + "?" : "ObservableObject.key?", false);
11334
11334
  this.pendingKeys_.set(key, entry);
11335
11335
  }
11336
11336
  return entry.get();
@@ -11460,7 +11460,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11460
11460
  } else {
11461
11461
  defineProperty$a(this.target_, key, descriptor2);
11462
11462
  }
11463
- var observable2 = new ObservableValue(value, enhancer, process.env.NODE_ENV !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key", false);
11463
+ var observable2 = new ObservableValue(value, enhancer, production !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key", false);
11464
11464
  this.values_.set(key, observable2);
11465
11465
  this.notifyPropertyAddition_(key, observable2.value_);
11466
11466
  } finally {
@@ -11489,7 +11489,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11489
11489
  return null;
11490
11490
  }
11491
11491
  }
11492
- options.name || (options.name = process.env.NODE_ENV !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key");
11492
+ options.name || (options.name = production !== "production" ? this.name_ + "." + key.toString() : "ObservableObject.key");
11493
11493
  options.context = this.proxy_ || this.target_;
11494
11494
  var cachedDescriptor = getCachedObservablePropDescriptor(key);
11495
11495
  var descriptor2 = {
@@ -11533,7 +11533,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11533
11533
  var _this$pendingKeys_, _this$pendingKeys_$ge;
11534
11534
  startBatch();
11535
11535
  var notify = hasListeners(this);
11536
- var notifySpy = process.env.NODE_ENV !== "production" && isSpyEnabled();
11536
+ var notifySpy = production !== "production" && isSpyEnabled();
11537
11537
  var observable2 = this.values_.get(key);
11538
11538
  var value = void 0;
11539
11539
  if (!observable2 && (notify || notifySpy)) {
@@ -11547,7 +11547,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11547
11547
  } else {
11548
11548
  delete this.target_[key];
11549
11549
  }
11550
- if (process.env.NODE_ENV !== "production") {
11550
+ if (production !== "production") {
11551
11551
  delete this.appliedAnnotations_[key];
11552
11552
  }
11553
11553
  if (observable2) {
@@ -11568,13 +11568,13 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11568
11568
  oldValue: value,
11569
11569
  name: key
11570
11570
  };
11571
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11571
+ if (production !== "production" && notifySpy) {
11572
11572
  spyReportStart(_change2);
11573
11573
  }
11574
11574
  if (notify) {
11575
11575
  notifyListeners(this, _change2);
11576
11576
  }
11577
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11577
+ if (production !== "production" && notifySpy) {
11578
11578
  spyReportEnd();
11579
11579
  }
11580
11580
  }
@@ -11584,7 +11584,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11584
11584
  return true;
11585
11585
  }, "delete_");
11586
11586
  _proto.observe_ = /* @__PURE__ */ __name(function observe_(callback, fireImmediately) {
11587
- if (process.env.NODE_ENV !== "production" && fireImmediately === true) {
11587
+ if (production !== "production" && fireImmediately === true) {
11588
11588
  die("`observe` doesn't support the fire immediately property for observable objects.");
11589
11589
  }
11590
11590
  return registerListener(this, callback);
@@ -11595,7 +11595,7 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11595
11595
  _proto.notifyPropertyAddition_ = /* @__PURE__ */ __name(function notifyPropertyAddition_(key, value) {
11596
11596
  var _this$pendingKeys_2, _this$pendingKeys_2$g;
11597
11597
  var notify = hasListeners(this);
11598
- var notifySpy = process.env.NODE_ENV !== "production" && isSpyEnabled();
11598
+ var notifySpy = production !== "production" && isSpyEnabled();
11599
11599
  if (notify || notifySpy) {
11600
11600
  var change = notify || notifySpy ? {
11601
11601
  type: ADD,
@@ -11605,13 +11605,13 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11605
11605
  name: key,
11606
11606
  newValue: value
11607
11607
  } : null;
11608
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11608
+ if (production !== "production" && notifySpy) {
11609
11609
  spyReportStart(change);
11610
11610
  }
11611
11611
  if (notify) {
11612
11612
  notifyListeners(this, change);
11613
11613
  }
11614
- if (process.env.NODE_ENV !== "production" && notifySpy) {
11614
+ if (production !== "production" && notifySpy) {
11615
11615
  spyReportEnd();
11616
11616
  }
11617
11617
  }
@@ -11630,19 +11630,19 @@ var ObservableObjectAdministration = /* @__PURE__ */ function() {
11630
11630
  }();
11631
11631
  function asObservableObject(target, options) {
11632
11632
  var _options$name;
11633
- if (process.env.NODE_ENV !== "production" && options && isObservableObject(target)) {
11633
+ if (production !== "production" && options && isObservableObject(target)) {
11634
11634
  die("Options can't be provided for already observable objects.");
11635
11635
  }
11636
11636
  if (hasProp(target, $mobx)) {
11637
- if (process.env.NODE_ENV !== "production" && !(getAdministration(target) instanceof ObservableObjectAdministration)) {
11637
+ if (production !== "production" && !(getAdministration(target) instanceof ObservableObjectAdministration)) {
11638
11638
  die("Cannot convert '" + getDebugName(target) + "' into observable object:\nThe target is already observable of different type.\nExtending builtins is not supported.");
11639
11639
  }
11640
11640
  return target;
11641
11641
  }
11642
- if (process.env.NODE_ENV !== "production" && !Object.isExtensible(target)) {
11642
+ if (production !== "production" && !Object.isExtensible(target)) {
11643
11643
  die("Cannot make the designated object observable; it is not extensible");
11644
11644
  }
11645
- var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : process.env.NODE_ENV !== "production" ? (isPlainObject$4(target) ? "ObservableObject" : target.constructor.name) + "@" + getNextId() : "ObservableObject";
11645
+ var name = (_options$name = options == null ? void 0 : options.name) != null ? _options$name : production !== "production" ? (isPlainObject$4(target) ? "ObservableObject" : target.constructor.name) + "@" + getNextId() : "ObservableObject";
11646
11646
  var adm = new ObservableObjectAdministration(target, /* @__PURE__ */ new Map(), String(name), getAnnotationFromOptions(options));
11647
11647
  addHiddenProp(target, $mobx, adm);
11648
11648
  return target;
@@ -11669,17 +11669,17 @@ function isObservableObject(thing) {
11669
11669
  __name(isObservableObject, "isObservableObject");
11670
11670
  function recordAnnotationApplied(adm, annotation, key) {
11671
11671
  var _adm$target_$storedAn;
11672
- if (process.env.NODE_ENV !== "production") {
11672
+ if (production !== "production") {
11673
11673
  adm.appliedAnnotations_[key] = annotation;
11674
11674
  }
11675
11675
  (_adm$target_$storedAn = adm.target_[storedAnnotationsSymbol]) == null ? true : delete _adm$target_$storedAn[key];
11676
11676
  }
11677
11677
  __name(recordAnnotationApplied, "recordAnnotationApplied");
11678
11678
  function assertAnnotable(adm, annotation, key) {
11679
- if (process.env.NODE_ENV !== "production" && !isAnnotation(annotation)) {
11679
+ if (production !== "production" && !isAnnotation(annotation)) {
11680
11680
  die("Cannot annotate '" + adm.name_ + "." + key.toString() + "': Invalid annotation.");
11681
11681
  }
11682
- if (process.env.NODE_ENV !== "production" && !isOverride(annotation) && hasProp(adm.appliedAnnotations_, key)) {
11682
+ if (production !== "production" && !isOverride(annotation) && hasProp(adm.appliedAnnotations_, key)) {
11683
11683
  var fieldName = adm.name_ + "." + key.toString();
11684
11684
  var currentAnnotationType = adm.appliedAnnotations_[key].annotationType_;
11685
11685
  var requestedAnnotationType = annotation.annotationType_;
@@ -11707,7 +11707,7 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
11707
11707
  function LegacyObservableArray2(initialValues, enhancer, name, owned) {
11708
11708
  var _this;
11709
11709
  if (name === void 0) {
11710
- name = process.env.NODE_ENV !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
11710
+ name = production !== "production" ? "ObservableArray@" + getNextId() : "ObservableArray";
11711
11711
  }
11712
11712
  if (owned === void 0) {
11713
11713
  owned = false;
@@ -12044,7 +12044,7 @@ __name(defaultNoopBatch, "defaultNoopBatch");
12044
12044
  function observerBatching(reactionScheduler3) {
12045
12045
  if (!reactionScheduler3) {
12046
12046
  reactionScheduler3 = defaultNoopBatch;
12047
- if ("production" !== process.env.NODE_ENV) {
12047
+ if ("production" !== production) {
12048
12048
  console.warn("[MobX] Failed to get unstable_batched updates from react-dom / react-native");
12049
12049
  }
12050
12050
  }
@@ -12264,7 +12264,7 @@ var ReactMemoSymbol = hasSymbol ? Symbol.for("react.memo") : typeof React$1.memo
12264
12264
  })["$$typeof"];
12265
12265
  function observer$1(baseComponent, options) {
12266
12266
  var _a2;
12267
- if (process.env.NODE_ENV !== "production" && warnObserverOptionsDeprecated && options) {
12267
+ if (production !== "production" && warnObserverOptionsDeprecated && options) {
12268
12268
  warnObserverOptionsDeprecated = false;
12269
12269
  console.warn("[mobx-react-lite] `observer(fn, { forwardRef: true })` is deprecated, use `observer(React.forwardRef(fn))`");
12270
12270
  }
@@ -12297,7 +12297,7 @@ function observer$1(baseComponent, options) {
12297
12297
  }
12298
12298
  observerComponent = React$1.memo(observerComponent);
12299
12299
  copyStaticProperties(baseComponent, observerComponent);
12300
- if ("production" !== process.env.NODE_ENV) {
12300
+ if ("production" !== production) {
12301
12301
  Object.defineProperty(observerComponent, "contextTypes", {
12302
12302
  set: function() {
12303
12303
  var _a3;
@@ -12325,7 +12325,7 @@ function copyStaticProperties(base2, target) {
12325
12325
  });
12326
12326
  }
12327
12327
  __name(copyStaticProperties, "copyStaticProperties");
12328
- if ("production" !== process.env.NODE_ENV)
12328
+ if ("production" !== production)
12329
12329
  ;
12330
12330
  globalThis && globalThis.__read || function(o2, n2) {
12331
12331
  var m2 = typeof Symbol === "function" && o2[Symbol.iterator];
@@ -12659,7 +12659,7 @@ if (!observable)
12659
12659
  function n(n2) {
12660
12660
  for (var r2 = arguments.length, t2 = Array(r2 > 1 ? r2 - 1 : 0), e = 1; e < r2; e++)
12661
12661
  t2[e - 1] = arguments[e];
12662
- if ("production" !== process.env.NODE_ENV) {
12662
+ if ("production" !== production) {
12663
12663
  var i = Y[n2], o2 = i ? "function" == typeof i ? i.apply(null, t2) : i : "unknown error nr: " + n2;
12664
12664
  throw Error("[Immer] " + o2);
12665
12665
  }
@@ -12762,10 +12762,10 @@ function m(n2, r2) {
12762
12762
  tn[n2] || (tn[n2] = r2);
12763
12763
  }
12764
12764
  __name(m, "m");
12765
- function _$2() {
12766
- return "production" === process.env.NODE_ENV || U || n(0), U;
12765
+ function _$1() {
12766
+ return "production" === production || U || n(0), U;
12767
12767
  }
12768
- __name(_$2, "_$2");
12768
+ __name(_$1, "_$1");
12769
12769
  function j$1(n2, r2) {
12770
12770
  r2 && (b("Patches"), n2.u = [], n2.s = [], n2.v = r2);
12771
12771
  }
@@ -12816,7 +12816,7 @@ function M(n2, r2, t2) {
12816
12816
  }
12817
12817
  __name(M, "M");
12818
12818
  function A(e, i, o2, a2, c2, s2, v2) {
12819
- if ("production" !== process.env.NODE_ENV && c2 === o2 && n(5), r$1(c2)) {
12819
+ if ("production" !== production && c2 === o2 && n(5), r$1(c2)) {
12820
12820
  var p2 = M(e, c2, s2 && i && 3 !== i.i && !u(i.R, a2) ? s2.concat(a2) : void 0);
12821
12821
  if (f(o2, a2, p2), !r$1(p2))
12822
12822
  return;
@@ -12859,12 +12859,12 @@ function E(n2) {
12859
12859
  __name(E, "E");
12860
12860
  function N(n2, r2, t2) {
12861
12861
  var e = s(r2) ? b("MapSet").F(r2, t2) : v(r2) ? b("MapSet").T(r2, t2) : n2.O ? function(n3, r3) {
12862
- var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$2(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i = e2, o2 = en;
12862
+ var t3 = Array.isArray(n3), e2 = { i: t3 ? 1 : 0, A: r3 ? r3.A : _$1(), P: false, I: false, R: {}, l: r3, t: n3, k: null, o: null, j: null, C: false }, i = e2, o2 = en;
12863
12863
  t3 && (i = [e2], o2 = on);
12864
12864
  var u2 = Proxy.revocable(i, o2), a2 = u2.revoke, f2 = u2.proxy;
12865
12865
  return e2.k = f2, e2.j = a2, f2;
12866
12866
  }(r2, t2) : b("ES5").J(r2, t2);
12867
- return (t2 ? t2.A : _$2()).p.push(e), e;
12867
+ return (t2 ? t2.A : _$1()).p.push(e), e;
12868
12868
  }
12869
12869
  __name(N, "N");
12870
12870
  function R(e) {
@@ -13085,9 +13085,9 @@ i$2(en, function(n2, r2) {
13085
13085
  return arguments[0] = arguments[0][0], r2.apply(this, arguments);
13086
13086
  };
13087
13087
  }), on.deleteProperty = function(r2, t2) {
13088
- return "production" !== process.env.NODE_ENV && isNaN(parseInt(t2)) && n(13), on.set.call(this, r2, t2, void 0);
13088
+ return "production" !== production && isNaN(parseInt(t2)) && n(13), on.set.call(this, r2, t2, void 0);
13089
13089
  }, on.set = function(r2, t2, e) {
13090
- return "production" !== process.env.NODE_ENV && "length" !== t2 && isNaN(parseInt(t2)) && n(14), en.set.call(this, r2[0], t2, e, r2[0]);
13090
+ return "production" !== production && "length" !== t2 && isNaN(parseInt(t2)) && n(14), en.set.call(this, r2[0], t2, e, r2[0]);
13091
13091
  };
13092
13092
  var un = function() {
13093
13093
  function e(r2) {
@@ -13155,7 +13155,7 @@ var un = function() {
13155
13155
  return o2[Q].C = true, O(i2), o2;
13156
13156
  }, i.finishDraft = function(r2, t2) {
13157
13157
  var e2 = r2 && r2[Q];
13158
- "production" !== process.env.NODE_ENV && (e2 && e2.C || n(9), e2.I && n(10));
13158
+ "production" !== production && (e2 && e2.C || n(9), e2.I && n(10));
13159
13159
  var i2 = e2.A;
13160
13160
  return j$1(i2, t2), P(void 0, i2);
13161
13161
  }, i.setAutoFreeze = function(n2) {
@@ -13953,7 +13953,7 @@ lodash.exports;
13953
13953
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
13954
13954
  );
13955
13955
  var Buffer2 = moduleExports2 ? context.Buffer : undefined$12, Symbol2 = context.Symbol, Uint8Array2 = context.Uint8Array, allocUnsafe2 = Buffer2 ? Buffer2.allocUnsafe : undefined$12, getPrototype2 = overArg2(Object2.getPrototypeOf, Object2), objectCreate2 = Object2.create, propertyIsEnumerable3 = objectProto2.propertyIsEnumerable, splice3 = arrayProto2.splice, spreadableSymbol2 = Symbol2 ? Symbol2.isConcatSpreadable : undefined$12, symIterator = Symbol2 ? Symbol2.iterator : undefined$12, symToStringTag2 = Symbol2 ? Symbol2.toStringTag : undefined$12;
13956
- var defineProperty6 = function() {
13956
+ var defineProperty5 = function() {
13957
13957
  try {
13958
13958
  var func = getNative2(Object2, "defineProperty");
13959
13959
  func({}, "", {});
@@ -14393,8 +14393,8 @@ lodash.exports;
14393
14393
  }
14394
14394
  __name(baseAssignIn2, "baseAssignIn");
14395
14395
  function baseAssignValue2(object2, key, value) {
14396
- if (key == "__proto__" && defineProperty6) {
14397
- defineProperty6(object2, key, {
14396
+ if (key == "__proto__" && defineProperty5) {
14397
+ defineProperty5(object2, key, {
14398
14398
  "configurable": true,
14399
14399
  "enumerable": true,
14400
14400
  "value": value,
@@ -15127,8 +15127,8 @@ lodash.exports;
15127
15127
  metaMap.set(func, data);
15128
15128
  return func;
15129
15129
  };
15130
- var baseSetToString2 = !defineProperty6 ? identity3 : function(func, string2) {
15131
- return defineProperty6(func, "toString", {
15130
+ var baseSetToString2 = !defineProperty5 ? identity3 : function(func, string2) {
15131
+ return defineProperty5(func, "toString", {
15132
15132
  "configurable": true,
15133
15133
  "enumerable": false,
15134
15134
  "value": constant2(string2),
@@ -19381,7 +19381,7 @@ var mapProps = /* @__PURE__ */ __name(function mapProps2(propsMapper) {
19381
19381
  var MapProps = /* @__PURE__ */ __name(function MapProps2(props) {
19382
19382
  return factory(propsMapper(props));
19383
19383
  }, "MapProps");
19384
- if (process.env.NODE_ENV !== "production") {
19384
+ if (production !== "production") {
19385
19385
  return setDisplayName(wrapDisplayName(BaseComponent, "mapProps"))(MapProps);
19386
19386
  }
19387
19387
  return MapProps;
@@ -19391,7 +19391,7 @@ var withProps = /* @__PURE__ */ __name(function withProps2(input) {
19391
19391
  var hoc = mapProps(function(props) {
19392
19392
  return _extends$n({}, props, typeof input === "function" ? input(props) : input);
19393
19393
  });
19394
- if (process.env.NODE_ENV !== "production") {
19394
+ if (production !== "production") {
19395
19395
  return function(BaseComponent) {
19396
19396
  return setDisplayName(wrapDisplayName(BaseComponent, "withProps"))(hoc(BaseComponent));
19397
19397
  };
@@ -19421,7 +19421,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
19421
19421
  _this.handlers = mapValues(typeof handlers2 === "function" ? handlers2(_this.props) : handlers2, function(createHandler) {
19422
19422
  return function() {
19423
19423
  var handler = createHandler(_this.props);
19424
- if (process.env.NODE_ENV !== "production" && typeof handler !== "function") {
19424
+ if (production !== "production" && typeof handler !== "function") {
19425
19425
  console.error(
19426
19426
  // eslint-disable-line no-console
19427
19427
  "withHandlers(): Expected a map of higher-order functions. Refer to the docs for more info."
@@ -19439,7 +19439,7 @@ var withHandlers = /* @__PURE__ */ __name(function withHandlers2(handlers2) {
19439
19439
  }, "render");
19440
19440
  return WithHandlers2;
19441
19441
  }(React$1.Component);
19442
- if (process.env.NODE_ENV !== "production") {
19442
+ if (production !== "production") {
19443
19443
  return setDisplayName(wrapDisplayName(BaseComponent, "withHandlers"))(WithHandlers);
19444
19444
  }
19445
19445
  return WithHandlers;
@@ -19477,7 +19477,7 @@ var withState = /* @__PURE__ */ __name(function withState2(stateName, stateUpdat
19477
19477
  }, "render");
19478
19478
  return WithState2;
19479
19479
  }(React$1.Component);
19480
- if (process.env.NODE_ENV !== "production") {
19480
+ if (production !== "production") {
19481
19481
  return setDisplayName(wrapDisplayName(BaseComponent, "withState"))(WithState);
19482
19482
  }
19483
19483
  return WithState;
@@ -19501,7 +19501,7 @@ var branch = /* @__PURE__ */ __name(function branch2(test2, left2, right2) {
19501
19501
  rightFactory = rightFactory || createFactory(right2(BaseComponent));
19502
19502
  return rightFactory(props);
19503
19503
  }, "Branch");
19504
- if (process.env.NODE_ENV !== "production") {
19504
+ if (production !== "production") {
19505
19505
  return setDisplayName(wrapDisplayName(BaseComponent, "branch"))(Branch);
19506
19506
  }
19507
19507
  return Branch;
@@ -19525,7 +19525,7 @@ var shouldUpdate = /* @__PURE__ */ __name(function shouldUpdate2(test2) {
19525
19525
  }, "render");
19526
19526
  return ShouldUpdate2;
19527
19527
  }(React$1.Component);
19528
- if (process.env.NODE_ENV !== "production") {
19528
+ if (production !== "production") {
19529
19529
  return setDisplayName(wrapDisplayName(BaseComponent, "shouldUpdate"))(ShouldUpdate);
19530
19530
  }
19531
19531
  return ShouldUpdate;
@@ -19534,7 +19534,7 @@ var shouldUpdate = /* @__PURE__ */ __name(function shouldUpdate2(test2) {
19534
19534
  var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
19535
19535
  return function(BaseComponent) {
19536
19536
  var factory = createFactory(BaseComponent);
19537
- if (process.env.NODE_ENV !== "production" && spec.hasOwnProperty("render")) {
19537
+ if (production !== "production" && spec.hasOwnProperty("render")) {
19538
19538
  console.error("lifecycle() does not support the render method; its behavior is to pass all props and state to the base component.");
19539
19539
  }
19540
19540
  var Lifecycle2 = /* @__PURE__ */ function(_Component) {
@@ -19552,7 +19552,7 @@ var lifecycle = /* @__PURE__ */ __name(function lifecycle2(spec) {
19552
19552
  Object.keys(spec).forEach(function(hook) {
19553
19553
  return Lifecycle2.prototype[hook] = spec[hook];
19554
19554
  });
19555
- if (process.env.NODE_ENV !== "production") {
19555
+ if (production !== "production") {
19556
19556
  return setDisplayName(wrapDisplayName(BaseComponent, "lifecycle"))(Lifecycle2);
19557
19557
  }
19558
19558
  return Lifecycle2;
@@ -19727,11 +19727,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
19727
19727
  return true;
19728
19728
  }
19729
19729
  }, "_fails");
19730
- var _descriptors = !_fails(function() {
19731
- return Object.defineProperty({}, "a", { get: function() {
19732
- return 7;
19733
- } }).a != 7;
19734
- });
19730
+ var _descriptors;
19731
+ var hasRequired_descriptors;
19732
+ function require_descriptors() {
19733
+ if (hasRequired_descriptors)
19734
+ return _descriptors;
19735
+ hasRequired_descriptors = 1;
19736
+ _descriptors = !_fails(function() {
19737
+ return Object.defineProperty({}, "a", { get: function() {
19738
+ return 7;
19739
+ } }).a != 7;
19740
+ });
19741
+ return _descriptors;
19742
+ }
19743
+ __name(require_descriptors, "require_descriptors");
19735
19744
  var _domCreate;
19736
19745
  var hasRequired_domCreate;
19737
19746
  function require_domCreate() {
@@ -19747,11 +19756,20 @@ function require_domCreate() {
19747
19756
  return _domCreate;
19748
19757
  }
19749
19758
  __name(require_domCreate, "require_domCreate");
19750
- var _ie8DomDefine = !_descriptors && !_fails(function() {
19751
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
19752
- return 7;
19753
- } }).a != 7;
19754
- });
19759
+ var _ie8DomDefine;
19760
+ var hasRequired_ie8DomDefine;
19761
+ function require_ie8DomDefine() {
19762
+ if (hasRequired_ie8DomDefine)
19763
+ return _ie8DomDefine;
19764
+ hasRequired_ie8DomDefine = 1;
19765
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
19766
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
19767
+ return 7;
19768
+ } }).a != 7;
19769
+ });
19770
+ return _ie8DomDefine;
19771
+ }
19772
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
19755
19773
  var isObject$d = _isObject;
19756
19774
  var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
19757
19775
  if (!isObject$d(it))
@@ -19765,25 +19783,33 @@ var _toPrimitive = /* @__PURE__ */ __name(function(it, S2) {
19765
19783
  return val;
19766
19784
  throw TypeError("Can't convert object to primitive value");
19767
19785
  }, "_toPrimitive");
19768
- var anObject$5 = _anObject;
19769
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
19770
- var toPrimitive$2 = _toPrimitive;
19771
- var dP$3 = Object.defineProperty;
19772
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
19773
- anObject$5(O2);
19774
- P2 = toPrimitive$2(P2, true);
19775
- anObject$5(Attributes);
19776
- if (IE8_DOM_DEFINE$1)
19777
- try {
19778
- return dP$3(O2, P2, Attributes);
19779
- } catch (e) {
19780
- }
19781
- if ("get" in Attributes || "set" in Attributes)
19782
- throw TypeError("Accessors not supported!");
19783
- if ("value" in Attributes)
19784
- O2[P2] = Attributes.value;
19785
- return O2;
19786
- }, "defineProperty");
19786
+ var hasRequired_objectDp;
19787
+ function require_objectDp() {
19788
+ if (hasRequired_objectDp)
19789
+ return _objectDp;
19790
+ hasRequired_objectDp = 1;
19791
+ var anObject2 = _anObject;
19792
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
19793
+ var toPrimitive2 = _toPrimitive;
19794
+ var dP2 = Object.defineProperty;
19795
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
19796
+ anObject2(O2);
19797
+ P2 = toPrimitive2(P2, true);
19798
+ anObject2(Attributes);
19799
+ if (IE8_DOM_DEFINE2)
19800
+ try {
19801
+ return dP2(O2, P2, Attributes);
19802
+ } catch (e) {
19803
+ }
19804
+ if ("get" in Attributes || "set" in Attributes)
19805
+ throw TypeError("Accessors not supported!");
19806
+ if ("value" in Attributes)
19807
+ O2[P2] = Attributes.value;
19808
+ return O2;
19809
+ }, "defineProperty");
19810
+ return _objectDp;
19811
+ }
19812
+ __name(require_objectDp, "require_objectDp");
19787
19813
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
19788
19814
  return {
19789
19815
  enumerable: !(bitmap & 1),
@@ -19792,9 +19818,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
19792
19818
  value
19793
19819
  };
19794
19820
  }, "_propertyDesc");
19795
- var dP$2 = _objectDp;
19821
+ var dP$2 = require_objectDp();
19796
19822
  var createDesc$3 = _propertyDesc;
19797
- var _hide = _descriptors ? function(object2, key, value) {
19823
+ var _hide = require_descriptors() ? function(object2, key, value) {
19798
19824
  return dP$2.f(object2, key, createDesc$3(1, value));
19799
19825
  } : function(object2, key, value) {
19800
19826
  object2[key] = value;
@@ -19866,25 +19892,16 @@ var toString$6 = {}.toString;
19866
19892
  var _cof = /* @__PURE__ */ __name(function(it) {
19867
19893
  return toString$6.call(it).slice(8, -1);
19868
19894
  }, "_cof");
19869
- var _iobject;
19870
- var hasRequired_iobject;
19871
- function require_iobject() {
19872
- if (hasRequired_iobject)
19873
- return _iobject;
19874
- hasRequired_iobject = 1;
19875
- var cof2 = _cof;
19876
- _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
19877
- return cof2(it) == "String" ? it.split("") : Object(it);
19878
- };
19879
- return _iobject;
19880
- }
19881
- __name(require_iobject, "require_iobject");
19895
+ var cof$2 = _cof;
19896
+ var _iobject = Object("z").propertyIsEnumerable(0) ? Object : function(it) {
19897
+ return cof$2(it) == "String" ? it.split("") : Object(it);
19898
+ };
19882
19899
  var _defined = /* @__PURE__ */ __name(function(it) {
19883
19900
  if (it == void 0)
19884
19901
  throw TypeError("Can't call method on " + it);
19885
19902
  return it;
19886
19903
  }, "_defined");
19887
- var IObject = require_iobject();
19904
+ var IObject = _iobject;
19888
19905
  var defined$2 = _defined;
19889
19906
  var _toIobject = /* @__PURE__ */ __name(function(it) {
19890
19907
  return IObject(defined$2(it));
@@ -19973,23 +19990,15 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object2, names2) {
19973
19990
  return result;
19974
19991
  }, "_objectKeysInternal");
19975
19992
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
19976
- var $keys$2 = _objectKeysInternal;
19993
+ var $keys$3 = _objectKeysInternal;
19977
19994
  var enumBugKeys$1 = _enumBugKeys;
19978
19995
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
19979
- return $keys$2(O2, enumBugKeys$1);
19996
+ return $keys$3(O2, enumBugKeys$1);
19980
19997
  }, "keys");
19981
19998
  var _objectGops = {};
19982
19999
  _objectGops.f = Object.getOwnPropertySymbols;
19983
20000
  var _objectPie = {};
19984
- var hasRequired_objectPie;
19985
- function require_objectPie() {
19986
- if (hasRequired_objectPie)
19987
- return _objectPie;
19988
- hasRequired_objectPie = 1;
19989
- _objectPie.f = {}.propertyIsEnumerable;
19990
- return _objectPie;
19991
- }
19992
- __name(require_objectPie, "require_objectPie");
20001
+ _objectPie.f = {}.propertyIsEnumerable;
19993
20002
  var defined$1 = _defined;
19994
20003
  var _toObject = /* @__PURE__ */ __name(function(it) {
19995
20004
  return Object(defined$1(it));
@@ -20000,12 +20009,12 @@ function require_objectAssign() {
20000
20009
  if (hasRequired_objectAssign)
20001
20010
  return _objectAssign;
20002
20011
  hasRequired_objectAssign = 1;
20003
- var DESCRIPTORS2 = _descriptors;
20012
+ var DESCRIPTORS2 = require_descriptors();
20004
20013
  var getKeys2 = _objectKeys;
20005
20014
  var gOPS2 = _objectGops;
20006
- var pIE2 = require_objectPie();
20015
+ var pIE2 = _objectPie;
20007
20016
  var toObject2 = _toObject;
20008
- var IObject2 = require_iobject();
20017
+ var IObject2 = _iobject;
20009
20018
  var $assign = Object.assign;
20010
20019
  _objectAssign = !$assign || _fails(function() {
20011
20020
  var A2 = {};
@@ -20066,10 +20075,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
20066
20075
  }, "_iterStep");
20067
20076
  var _iterators = {};
20068
20077
  var _redefine = _hide;
20069
- var dP$1 = _objectDp;
20078
+ var dP$1 = require_objectDp();
20070
20079
  var anObject$4 = _anObject;
20071
20080
  var getKeys$1 = _objectKeys;
20072
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
20081
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties) {
20073
20082
  anObject$4(O2);
20074
20083
  var keys3 = getKeys$1(Properties);
20075
20084
  var length = keys3.length;
@@ -20136,7 +20145,7 @@ var $exports = _wks.exports = function(name) {
20136
20145
  };
20137
20146
  $exports.store = store;
20138
20147
  var _wksExports = _wks.exports;
20139
- var def = _objectDp.f;
20148
+ var def = require_objectDp().f;
20140
20149
  var has$9 = _has;
20141
20150
  var TAG$1 = _wksExports("toStringTag");
20142
20151
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -20409,7 +20418,7 @@ var ArrayProto = Array.prototype;
20409
20418
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
20410
20419
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
20411
20420
  }, "_isArrayIter");
20412
- var $defineProperty$1 = _objectDp;
20421
+ var $defineProperty$1 = require_objectDp();
20413
20422
  var createDesc$2 = _propertyDesc;
20414
20423
  var _createProperty = /* @__PURE__ */ __name(function(object2, index2, value) {
20415
20424
  if (index2 in object2)
@@ -20538,9 +20547,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
20538
20547
  }
20539
20548
  }, "_default$8");
20540
20549
  var $export$3 = _export;
20541
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
20550
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
20542
20551
  var $Object$2 = _coreExports.Object;
20543
- var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
20552
+ var defineProperty$9 = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
20544
20553
  return $Object$2.defineProperty(it, key, desc);
20545
20554
  }, "defineProperty");
20546
20555
  var defineProperty$8 = { "default": defineProperty$9, __esModule: true };
@@ -20579,7 +20588,7 @@ var _meta = { exports: {} };
20579
20588
  var META$1 = _uid("meta");
20580
20589
  var isObject$c = _isObject;
20581
20590
  var has$7 = _has;
20582
- var setDesc = _objectDp.f;
20591
+ var setDesc = require_objectDp().f;
20583
20592
  var id = 0;
20584
20593
  var isExtensible = Object.isExtensible || function() {
20585
20594
  return true;
@@ -20632,7 +20641,7 @@ var meta = _meta.exports = {
20632
20641
  var _metaExports = _meta.exports;
20633
20642
  var core = _coreExports;
20634
20643
  var wksExt$1 = _wksExt;
20635
- var defineProperty$7 = _objectDp.f;
20644
+ var defineProperty$7 = require_objectDp().f;
20636
20645
  var _wksDefine = /* @__PURE__ */ __name(function(name) {
20637
20646
  var $Symbol2 = core.Symbol || (core.Symbol = {});
20638
20647
  if (name.charAt(0) != "_" && !(name in $Symbol2))
@@ -20640,7 +20649,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name) {
20640
20649
  }, "_wksDefine");
20641
20650
  var getKeys = _objectKeys;
20642
20651
  var gOPS$1 = _objectGops;
20643
- var pIE$1 = require_objectPie();
20652
+ var pIE$1 = _objectPie;
20644
20653
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
20645
20654
  var result = getKeys(it);
20646
20655
  var getSymbols2 = gOPS$1.f;
@@ -20661,21 +20670,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
20661
20670
  }, "isArray");
20662
20671
  var _objectGopnExt = {};
20663
20672
  var _objectGopn = {};
20664
- var hasRequired_objectGopn;
20665
- function require_objectGopn() {
20666
- if (hasRequired_objectGopn)
20667
- return _objectGopn;
20668
- hasRequired_objectGopn = 1;
20669
- var $keys2 = _objectKeysInternal;
20670
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
20671
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
20672
- return $keys2(O2, hiddenKeys);
20673
- }, "getOwnPropertyNames");
20674
- return _objectGopn;
20675
- }
20676
- __name(require_objectGopn, "require_objectGopn");
20673
+ var $keys$2 = _objectKeysInternal;
20674
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
20675
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
20676
+ return $keys$2(O2, hiddenKeys);
20677
+ }, "getOwnPropertyNames");
20677
20678
  var toIObject$2 = _toIobject;
20678
- var gOPN$1 = require_objectGopn().f;
20679
+ var gOPN$1 = _objectGopn.f;
20679
20680
  var toString$5 = {}.toString;
20680
20681
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
20681
20682
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -20685,18 +20686,18 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
20685
20686
  return windowNames.slice();
20686
20687
  }
20687
20688
  }, "getWindowNames");
20688
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
20689
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
20689
20690
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
20690
20691
  }, "getOwnPropertyNames");
20691
20692
  var _objectGopd = {};
20692
- var pIE = require_objectPie();
20693
+ var pIE = _objectPie;
20693
20694
  var createDesc$1 = _propertyDesc;
20694
20695
  var toIObject$1 = _toIobject;
20695
20696
  var toPrimitive$1 = _toPrimitive;
20696
20697
  var has$6 = _has;
20697
- var IE8_DOM_DEFINE = _ie8DomDefine;
20698
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
20698
20699
  var gOPD$2 = Object.getOwnPropertyDescriptor;
20699
- _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
20700
+ _objectGopd.f = require_descriptors() ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
20700
20701
  O2 = toIObject$1(O2);
20701
20702
  P2 = toPrimitive$1(P2, true);
20702
20703
  if (IE8_DOM_DEFINE)
@@ -20709,7 +20710,7 @@ _objectGopd.f = _descriptors ? gOPD$2 : /* @__PURE__ */ __name(function getOwnPr
20709
20710
  }, "getOwnPropertyDescriptor");
20710
20711
  var global$1 = _globalExports;
20711
20712
  var has$5 = _has;
20712
- var DESCRIPTORS = _descriptors;
20713
+ var DESCRIPTORS = require_descriptors();
20713
20714
  var $export$2 = _export;
20714
20715
  var redefine = _redefine;
20715
20716
  var META = _metaExports.KEY;
@@ -20721,7 +20722,7 @@ var wks = _wksExports;
20721
20722
  var wksExt = _wksExt;
20722
20723
  var wksDefine = _wksDefine;
20723
20724
  var enumKeys = _enumKeys;
20724
- var isArray$o = _isArray;
20725
+ var isArray$n = _isArray;
20725
20726
  var anObject = _anObject;
20726
20727
  var isObject$b = _isObject;
20727
20728
  var toObject$1 = _toObject;
@@ -20732,7 +20733,7 @@ var _create$1 = _objectCreate;
20732
20733
  var gOPNExt = _objectGopnExt;
20733
20734
  var $GOPD = _objectGopd;
20734
20735
  var $GOPS = _objectGops;
20735
- var $DP = _objectDp;
20736
+ var $DP = require_objectDp();
20736
20737
  var $keys$1 = _objectKeys;
20737
20738
  var gOPD$1 = $GOPD.f;
20738
20739
  var dP = $DP.f;
@@ -20775,7 +20776,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
20775
20776
  } : function(it) {
20776
20777
  return it instanceof $Symbol;
20777
20778
  };
20778
- var $defineProperty = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
20779
+ var $defineProperty = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
20779
20780
  if (it === ObjectProto)
20780
20781
  $defineProperty(OPSymbols, key, D2);
20781
20782
  anObject(it);
@@ -20824,7 +20825,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
20824
20825
  D2.enumerable = true;
20825
20826
  return D2;
20826
20827
  }, "getOwnPropertyDescriptor");
20827
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
20828
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
20828
20829
  var names2 = gOPN(toIObject(it));
20829
20830
  var result = [];
20830
20831
  var i = 0;
@@ -20868,8 +20869,8 @@ if (!USE_NATIVE) {
20868
20869
  }, "toString"));
20869
20870
  $GOPD.f = $getOwnPropertyDescriptor;
20870
20871
  $DP.f = $defineProperty;
20871
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
20872
- require_objectPie().f = $propertyIsEnumerable;
20872
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
20873
+ _objectPie.f = $propertyIsEnumerable;
20873
20874
  $GOPS.f = $getOwnPropertySymbols;
20874
20875
  if (DESCRIPTORS && !_library) {
20875
20876
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -20941,7 +20942,7 @@ $JSON && $export$2($export$2.S + $export$2.F * (!USE_NATIVE || $fails(function()
20941
20942
  $replacer = replacer = args[1];
20942
20943
  if (!isObject$b(replacer) && it === void 0 || isSymbol$8(it))
20943
20944
  return;
20944
- if (!isArray$o(replacer))
20945
+ if (!isArray$n(replacer))
20945
20946
  replacer = /* @__PURE__ */ __name(function(key, value) {
20946
20947
  if (typeof $replacer == "function")
20947
20948
  value = $replacer.call(this, key, value);
@@ -21067,7 +21068,7 @@ var _default$5 = /* @__PURE__ */ __name(function(subClass, superClass) {
21067
21068
  _setPrototypeOf2.default ? (0, _setPrototypeOf2.default)(subClass, superClass) : subClass.__proto__ = superClass;
21068
21069
  }, "_default$5");
21069
21070
  var invariant = /* @__PURE__ */ __name(function(condition, format2, a2, b2, c2, d2, e, f2) {
21070
- if (process.env.NODE_ENV !== "production") {
21071
+ if (production !== "production") {
21071
21072
  if (format2 === void 0) {
21072
21073
  throw new Error("invariant requires an error message argument");
21073
21074
  }
@@ -21669,12 +21670,12 @@ function arrayPush$4(array2, values) {
21669
21670
  }
21670
21671
  __name(arrayPush$4, "arrayPush$4");
21671
21672
  var _arrayPush = arrayPush$4;
21672
- var isArray$n = Array.isArray;
21673
- var isArray_1 = isArray$n;
21674
- var arrayPush$3 = _arrayPush, isArray$m = isArray_1;
21673
+ var isArray$m = Array.isArray;
21674
+ var isArray_1 = isArray$m;
21675
+ var arrayPush$3 = _arrayPush, isArray$l = isArray_1;
21675
21676
  function baseGetAllKeys$3(object2, keysFunc, symbolsFunc) {
21676
21677
  var result = keysFunc(object2);
21677
- return isArray$m(object2) ? result : arrayPush$3(result, symbolsFunc(object2));
21678
+ return isArray$l(object2) ? result : arrayPush$3(result, symbolsFunc(object2));
21678
21679
  }
21679
21680
  __name(baseGetAllKeys$3, "baseGetAllKeys$3");
21680
21681
  var _baseGetAllKeys = baseGetAllKeys$3;
@@ -21816,11 +21817,11 @@ var baseIsTypedArray$1 = _baseIsTypedArray, baseUnary$4 = _baseUnary, nodeUtil$4
21816
21817
  var nodeIsTypedArray$1 = nodeUtil$4 && nodeUtil$4.isTypedArray;
21817
21818
  var isTypedArray$4 = nodeIsTypedArray$1 ? baseUnary$4(nodeIsTypedArray$1) : baseIsTypedArray$1;
21818
21819
  var isTypedArray_1 = isTypedArray$4;
21819
- var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$l = isArray_1, isBuffer$7 = isBufferExports, isIndex$3 = _isIndex, isTypedArray$3 = isTypedArray_1;
21820
+ var baseTimes$1 = _baseTimes, isArguments$4 = isArguments_1, isArray$k = isArray_1, isBuffer$7 = isBufferExports, isIndex$3 = _isIndex, isTypedArray$3 = isTypedArray_1;
21820
21821
  var objectProto$n = Object.prototype;
21821
21822
  var hasOwnProperty$l = objectProto$n.hasOwnProperty;
21822
21823
  function arrayLikeKeys$3(value, inherited) {
21823
- var isArr = isArray$l(value), isArg = !isArr && isArguments$4(value), isBuff = !isArr && !isArg && isBuffer$7(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
21824
+ var isArr = isArray$k(value), isArg = !isArr && isArguments$4(value), isBuff = !isArr && !isArg && isBuffer$7(value), isType2 = !isArr && !isArg && !isBuff && isTypedArray$3(value), skipIndexes = isArr || isArg || isBuff || isType2, result = skipIndexes ? baseTimes$1(value.length, String) : [], length = result.length;
21824
21825
  for (var key in value) {
21825
21826
  if ((inherited || hasOwnProperty$l.call(value, key)) && !(skipIndexes && // Safari 9 has enumerable `arguments.length` in strict mode.
21826
21827
  (key == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
@@ -21973,13 +21974,13 @@ if (DataView$3 && getTag$7(new DataView$3(new ArrayBuffer(1))) != dataViewTag$5
21973
21974
  }, "getTag$7");
21974
21975
  }
21975
21976
  var _getTag = getTag$7;
21976
- var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$k = isArray_1, isBuffer$6 = isBufferExports, isTypedArray$2 = isTypedArray_1;
21977
+ var Stack$3 = _Stack, equalArrays$1 = _equalArrays, equalByTag$1 = _equalByTag, equalObjects$1 = _equalObjects, getTag$6 = _getTag, isArray$j = isArray_1, isBuffer$6 = isBufferExports, isTypedArray$2 = isTypedArray_1;
21977
21978
  var COMPARE_PARTIAL_FLAG$8 = 1;
21978
21979
  var argsTag$4 = "[object Arguments]", arrayTag$3 = "[object Array]", objectTag$6 = "[object Object]";
21979
21980
  var objectProto$j = Object.prototype;
21980
21981
  var hasOwnProperty$i = objectProto$j.hasOwnProperty;
21981
21982
  function baseIsEqualDeep$2(object2, other, bitmask, customizer, equalFunc, stack) {
21982
- var objIsArr = isArray$k(object2), othIsArr = isArray$k(other), objTag = objIsArr ? arrayTag$3 : getTag$6(object2), othTag = othIsArr ? arrayTag$3 : getTag$6(other);
21983
+ var objIsArr = isArray$j(object2), othIsArr = isArray$j(other), objTag = objIsArr ? arrayTag$3 : getTag$6(object2), othTag = othIsArr ? arrayTag$3 : getTag$6(other);
21983
21984
  objTag = objTag == argsTag$4 ? objectTag$6 : objTag;
21984
21985
  othTag = othTag == argsTag$4 ? objectTag$6 : othTag;
21985
21986
  var objIsObj = objTag == objectTag$6, othIsObj = othTag == objectTag$6, isSameTag = objTag == othTag;
@@ -22103,10 +22104,10 @@ function isSymbol$7(value) {
22103
22104
  }
22104
22105
  __name(isSymbol$7, "isSymbol$7");
22105
22106
  var isSymbol_1 = isSymbol$7;
22106
- var isArray$j = isArray_1, isSymbol$6 = isSymbol_1;
22107
+ var isArray$i = isArray_1, isSymbol$6 = isSymbol_1;
22107
22108
  var reIsDeepProp$1 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, reIsPlainProp$1 = /^\w*$/;
22108
22109
  function isKey$4(value, object2) {
22109
- if (isArray$j(value)) {
22110
+ if (isArray$i(value)) {
22110
22111
  return false;
22111
22112
  }
22112
22113
  var type = typeof value;
@@ -22175,14 +22176,14 @@ function arrayMap$4(array2, iteratee) {
22175
22176
  }
22176
22177
  __name(arrayMap$4, "arrayMap$4");
22177
22178
  var _arrayMap = arrayMap$4;
22178
- var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$i = isArray_1, isSymbol$5 = isSymbol_1;
22179
+ var Symbol$5 = _Symbol, arrayMap$3 = _arrayMap, isArray$h = isArray_1, isSymbol$5 = isSymbol_1;
22179
22180
  var INFINITY$5 = 1 / 0;
22180
22181
  var symbolProto$3 = Symbol$5 ? Symbol$5.prototype : void 0, symbolToString$1 = symbolProto$3 ? symbolProto$3.toString : void 0;
22181
22182
  function baseToString$3(value) {
22182
22183
  if (typeof value == "string") {
22183
22184
  return value;
22184
22185
  }
22185
- if (isArray$i(value)) {
22186
+ if (isArray$h(value)) {
22186
22187
  return arrayMap$3(value, baseToString$3) + "";
22187
22188
  }
22188
22189
  if (isSymbol$5(value)) {
@@ -22199,9 +22200,9 @@ function toString$4(value) {
22199
22200
  }
22200
22201
  __name(toString$4, "toString$4");
22201
22202
  var toString_1 = toString$4;
22202
- var isArray$h = isArray_1, isKey$3 = _isKey, stringToPath$3 = _stringToPath, toString$3 = toString_1;
22203
+ var isArray$g = isArray_1, isKey$3 = _isKey, stringToPath$3 = _stringToPath, toString$3 = toString_1;
22203
22204
  function castPath$3(value, object2) {
22204
- if (isArray$h(value)) {
22205
+ if (isArray$g(value)) {
22205
22206
  return value;
22206
22207
  }
22207
22208
  return isKey$3(value, object2) ? [value] : stringToPath$3(toString$3(value));
@@ -22242,7 +22243,7 @@ function baseHasIn$2(object2, key) {
22242
22243
  }
22243
22244
  __name(baseHasIn$2, "baseHasIn$2");
22244
22245
  var _baseHasIn = baseHasIn$2;
22245
- var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$g = isArray_1, isIndex$2 = _isIndex, isLength$1 = isLength_1, toKey$3 = _toKey;
22246
+ var castPath$1 = _castPath, isArguments$3 = isArguments_1, isArray$f = isArray_1, isIndex$2 = _isIndex, isLength$1 = isLength_1, toKey$3 = _toKey;
22246
22247
  function hasPath$2(object2, path2, hasFunc) {
22247
22248
  path2 = castPath$1(path2, object2);
22248
22249
  var index2 = -1, length = path2.length, result = false;
@@ -22257,7 +22258,7 @@ function hasPath$2(object2, path2, hasFunc) {
22257
22258
  return result;
22258
22259
  }
22259
22260
  length = object2 == null ? 0 : object2.length;
22260
- return !!length && isLength$1(length) && isIndex$2(key, length) && (isArray$g(object2) || isArguments$3(object2));
22261
+ return !!length && isLength$1(length) && isIndex$2(key, length) && (isArray$f(object2) || isArguments$3(object2));
22261
22262
  }
22262
22263
  __name(hasPath$2, "hasPath$2");
22263
22264
  var _hasPath = hasPath$2;
@@ -22306,7 +22307,7 @@ function property$2(path2) {
22306
22307
  }
22307
22308
  __name(property$2, "property$2");
22308
22309
  var property_1 = property$2;
22309
- var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$f = isArray_1, property$1 = property_1;
22310
+ var baseMatches$1 = _baseMatches, baseMatchesProperty$1 = _baseMatchesProperty, identity$5 = identity_1, isArray$e = isArray_1, property$1 = property_1;
22310
22311
  function baseIteratee$5(value) {
22311
22312
  if (typeof value == "function") {
22312
22313
  return value;
@@ -22315,7 +22316,7 @@ function baseIteratee$5(value) {
22315
22316
  return identity$5;
22316
22317
  }
22317
22318
  if (typeof value == "object") {
22318
- return isArray$f(value) ? baseMatchesProperty$1(value[0], value[1]) : baseMatches$1(value);
22319
+ return isArray$e(value) ? baseMatchesProperty$1(value[0], value[1]) : baseMatches$1(value);
22319
22320
  }
22320
22321
  return property$1(value);
22321
22322
  }
@@ -22432,10 +22433,10 @@ var createFind = _createFind, findIndex = findIndex_1;
22432
22433
  var find$2 = createFind(findIndex);
22433
22434
  var find_1 = find$2;
22434
22435
  const find$3 = /* @__PURE__ */ getDefaultExportFromCjs(find_1);
22435
- var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$e = isArray_1;
22436
+ var Symbol$4 = _Symbol, isArguments$2 = isArguments_1, isArray$d = isArray_1;
22436
22437
  var spreadableSymbol = Symbol$4 ? Symbol$4.isConcatSpreadable : void 0;
22437
22438
  function isFlattenable$1(value) {
22438
- return isArray$e(value) || isArguments$2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
22439
+ return isArray$d(value) || isArguments$2(value) || !!(spreadableSymbol && value && value[spreadableSymbol]);
22439
22440
  }
22440
22441
  __name(isFlattenable$1, "isFlattenable$1");
22441
22442
  var _isFlattenable = isFlattenable$1;
@@ -22559,11 +22560,11 @@ function compareMultiple$1(object2, other, orders) {
22559
22560
  }
22560
22561
  __name(compareMultiple$1, "compareMultiple$1");
22561
22562
  var _compareMultiple = compareMultiple$1;
22562
- var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$d = isArray_1;
22563
+ var arrayMap$2 = _arrayMap, baseGet$1 = _baseGet, baseIteratee$2 = _baseIteratee, baseMap$2 = _baseMap, baseSortBy = _baseSortBy, baseUnary$3 = _baseUnary, compareMultiple = _compareMultiple, identity$4 = identity_1, isArray$c = isArray_1;
22563
22564
  function baseOrderBy$1(collection, iteratees, orders) {
22564
22565
  if (iteratees.length) {
22565
22566
  iteratees = arrayMap$2(iteratees, function(iteratee) {
22566
- if (isArray$d(iteratee)) {
22567
+ if (isArray$c(iteratee)) {
22567
22568
  return function(value) {
22568
22569
  return baseGet$1(value, iteratee.length === 1 ? iteratee[0] : iteratee);
22569
22570
  };
@@ -24925,7 +24926,7 @@ function _objectWithoutProperties$6(obj, keys3) {
24925
24926
  return target;
24926
24927
  }
24927
24928
  __name(_objectWithoutProperties$6, "_objectWithoutProperties$6");
24928
- const _$1 = {
24929
+ const _14 = {
24929
24930
  get: get$3,
24930
24931
  set: set4,
24931
24932
  takeRight,
@@ -24938,7 +24939,7 @@ const _$1 = {
24938
24939
  sum,
24939
24940
  makeTemplateComponent,
24940
24941
  groupBy,
24941
- isArray: isArray$c,
24942
+ isArray: isArray$b,
24942
24943
  splitProps,
24943
24944
  compactObject,
24944
24945
  isSortingDesc,
@@ -25065,7 +25066,7 @@ __name(makeTemplateComponent, "makeTemplateComponent");
25065
25066
  function groupBy(xs, key) {
25066
25067
  return xs.reduce(function(rv, x2, i) {
25067
25068
  var resKey = typeof key === "function" ? key(x2, i) : x2[key];
25068
- rv[resKey] = isArray$c(rv[resKey]) ? rv[resKey] : [];
25069
+ rv[resKey] = isArray$b(rv[resKey]) ? rv[resKey] : [];
25069
25070
  rv[resKey].push(x2);
25070
25071
  return rv;
25071
25072
  }, {});
@@ -25076,17 +25077,17 @@ function asPx(value) {
25076
25077
  return Number.isNaN(value) ? null : value + "px";
25077
25078
  }
25078
25079
  __name(asPx, "asPx");
25079
- function isArray$c(a2) {
25080
+ function isArray$b(a2) {
25080
25081
  return Array.isArray(a2);
25081
25082
  }
25082
- __name(isArray$c, "isArray$c");
25083
+ __name(isArray$b, "isArray$b");
25083
25084
  function makePathArray(obj) {
25084
25085
  return flattenDeep(obj).join(".").replace(/\[/g, ".").replace(/\]/g, "").split(".");
25085
25086
  }
25086
25087
  __name(makePathArray, "makePathArray");
25087
25088
  function flattenDeep(arr) {
25088
25089
  var newArr = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [];
25089
- if (!isArray$c(arr)) {
25090
+ if (!isArray$b(arr)) {
25090
25091
  newArr.push(arr);
25091
25092
  } else {
25092
25093
  for (var i = 0; i < arr.length; i += 1) {
@@ -25377,7 +25378,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25377
25378
  _createClass$b(_class, [{
25378
25379
  key: "getResolvedState",
25379
25380
  value: /* @__PURE__ */ __name(function getResolvedState(props, state) {
25380
- var resolvedState = _extends$l({}, _$1.compactObject(this.state), _$1.compactObject(this.props), _$1.compactObject(state), _$1.compactObject(props));
25381
+ var resolvedState = _extends$l({}, _14.compactObject(this.state), _14.compactObject(this.props), _14.compactObject(state), _14.compactObject(props));
25381
25382
  return resolvedState;
25382
25383
  }, "getResolvedState")
25383
25384
  }, {
@@ -25423,7 +25424,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25423
25424
  dcol.id = dcol.id || dcol.accessor;
25424
25425
  var accessorString = dcol.accessor;
25425
25426
  dcol.accessor = function(row) {
25426
- return _$1.get(row, accessorString);
25427
+ return _14.get(row, accessorString);
25427
25428
  };
25428
25429
  return dcol;
25429
25430
  }
@@ -25459,7 +25460,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25459
25460
  visibleColumns = visibleColumns.map(function(column) {
25460
25461
  if (column.columns) {
25461
25462
  var visibleSubColumns = column.columns.filter(function(d2) {
25462
- return pivotBy.indexOf(d2.id) > -1 ? false : _$1.getFirstDefined(d2.show, true);
25463
+ return pivotBy.indexOf(d2.id) > -1 ? false : _14.getFirstDefined(d2.show, true);
25463
25464
  });
25464
25465
  return _extends$l({}, column, {
25465
25466
  columns: visibleSubColumns
@@ -25468,7 +25469,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25468
25469
  return column;
25469
25470
  });
25470
25471
  visibleColumns = visibleColumns.filter(function(column) {
25471
- return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false : _$1.getFirstDefined(column.show, true);
25472
+ return column.columns ? column.columns.length : pivotBy.indexOf(column.id) > -1 ? false : _14.getFirstDefined(column.show, true);
25472
25473
  });
25473
25474
  var pivotIndex = visibleColumns.findIndex(function(col) {
25474
25475
  return col.pivot;
@@ -25571,7 +25572,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25571
25572
  if (i === keys3.length) {
25572
25573
  return rows;
25573
25574
  }
25574
- var groupedRows = Object.entries(_$1.groupBy(rows, keys3[i])).map(function(_ref) {
25575
+ var groupedRows = Object.entries(_14.groupBy(rows, keys3[i])).map(function(_ref) {
25575
25576
  var _ref3;
25576
25577
  var _ref2 = _slicedToArray$4(_ref, 2), key = _ref2[0], value = _ref2[1];
25577
25578
  return _ref3 = {}, _defineProperty$4(_ref3, pivotIDKey, keys3[i]), _defineProperty$4(_ref3, pivotValKey, key), _defineProperty$4(_ref3, keys3[i], key), _defineProperty$4(_ref3, subRowsKey, value), _defineProperty$4(_ref3, nestingLevelKey, i), _defineProperty$4(_ref3, groupedByPivotKey, true), _ref3;
@@ -25615,12 +25616,12 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25615
25616
  }, {
25616
25617
  key: "getPropOrState",
25617
25618
  value: /* @__PURE__ */ __name(function getPropOrState(key) {
25618
- return _$1.getFirstDefined(this.props[key], this.state[key]);
25619
+ return _14.getFirstDefined(this.props[key], this.state[key]);
25619
25620
  }, "getPropOrState")
25620
25621
  }, {
25621
25622
  key: "getStateOrProp",
25622
25623
  value: /* @__PURE__ */ __name(function getStateOrProp(key) {
25623
- return _$1.getFirstDefined(this.state[key], this.props[key]);
25624
+ return _14.getFirstDefined(this.state[key], this.props[key]);
25624
25625
  }, "getStateOrProp")
25625
25626
  }, {
25626
25627
  key: "filterData",
@@ -25665,7 +25666,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25665
25666
  if (!sorted.length) {
25666
25667
  return data;
25667
25668
  }
25668
- var sortedData = (this.props.orderByMethod || _$1.orderBy)(data, sorted.map(function(sort2) {
25669
+ var sortedData = (this.props.orderByMethod || _14.orderBy)(data, sorted.map(function(sort2) {
25669
25670
  if (sortMethodsByColumnID[sort2.id]) {
25670
25671
  return function(a2, b2) {
25671
25672
  return sortMethodsByColumnID[sort2.id](a2[sort2.id], b2[sort2.id], sort2.desc);
@@ -25688,7 +25689,7 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25688
25689
  }, {
25689
25690
  key: "getMinRows",
25690
25691
  value: /* @__PURE__ */ __name(function getMinRows() {
25691
- return _$1.getFirstDefined(this.props.minRows, this.getStateOrProp("pageSize"));
25692
+ return _14.getFirstDefined(this.props.minRows, this.getStateOrProp("pageSize"));
25692
25693
  }, "getMinRows")
25693
25694
  // User actions
25694
25695
  }, {
@@ -25730,11 +25731,11 @@ const Methods = /* @__PURE__ */ __name(function(Base) {
25730
25731
  return;
25731
25732
  }
25732
25733
  var onSortedChange = this.props.onSortedChange;
25733
- var newSorted = _$1.clone(sorted || []).map(function(d2) {
25734
- d2.desc = _$1.isSortingDesc(d2);
25734
+ var newSorted = _14.clone(sorted || []).map(function(d2) {
25735
+ d2.desc = _14.isSortingDesc(d2);
25735
25736
  return d2;
25736
25737
  });
25737
- if (!_$1.isArray(column)) {
25738
+ if (!_14.isArray(column)) {
25738
25739
  var existingIndex = newSorted.findIndex(function(d2) {
25739
25740
  return d2.id === column.id;
25740
25741
  });
@@ -26369,8 +26370,8 @@ const defaultProps$1 = {
26369
26370
  children
26370
26371
  );
26371
26372
  }, "TableComponent"),
26372
- TheadComponent: _$1.makeTemplateComponent("rt-thead", "Thead"),
26373
- TbodyComponent: _$1.makeTemplateComponent("rt-tbody", "Tbody"),
26373
+ TheadComponent: _14.makeTemplateComponent("rt-thead", "Thead"),
26374
+ TbodyComponent: _14.makeTemplateComponent("rt-tbody", "Tbody"),
26374
26375
  TrGroupComponent: /* @__PURE__ */ __name(function TrGroupComponent(_ref2) {
26375
26376
  var children = _ref2.children, className = _ref2.className, rest = _objectWithoutProperties$5(_ref2, ["children", "className"]);
26376
26377
  return React$1.createElement(
@@ -26415,7 +26416,7 @@ const defaultProps$1 = {
26415
26416
  children
26416
26417
  );
26417
26418
  }, "TdComponent"),
26418
- TfootComponent: _$1.makeTemplateComponent("rt-tfoot", "Tfoot"),
26419
+ TfootComponent: _14.makeTemplateComponent("rt-tfoot", "Tfoot"),
26419
26420
  FilterComponent: /* @__PURE__ */ __name(function FilterComponent(_ref6) {
26420
26421
  var filter = _ref6.filter, _onChange = _ref6.onChange, column = _ref6.column;
26421
26422
  return React$1.createElement("input", {
@@ -26487,8 +26488,8 @@ const defaultProps$1 = {
26487
26488
  )
26488
26489
  );
26489
26490
  }, "LoadingComponent"),
26490
- NoDataComponent: _$1.makeTemplateComponent("rt-noData", "NoData"),
26491
- ResizerComponent: _$1.makeTemplateComponent("rt-resizer", "Resizer"),
26491
+ NoDataComponent: _14.makeTemplateComponent("rt-noData", "NoData"),
26492
+ ResizerComponent: _14.makeTemplateComponent("rt-resizer", "Resizer"),
26492
26493
  PadRowComponent: /* @__PURE__ */ __name(function PadRowComponent() {
26493
26494
  return React$1.createElement(
26494
26495
  "span",
@@ -26787,7 +26788,7 @@ var ReactTable = function(_Methods) {
26787
26788
  var endRow = startRow + pageSize;
26788
26789
  var pageRows = manual ? resolvedData : sortedData.slice(startRow, endRow);
26789
26790
  var minRows = this.getMinRows();
26790
- var padRows = _$1.range(Math.max(minRows - pageRows.length, 0));
26791
+ var padRows = _14.range(Math.max(minRows - pageRows.length, 0));
26791
26792
  var hasColumnFooter = allVisibleColumns.some(function(d2) {
26792
26793
  return d2.Footer;
26793
26794
  });
@@ -26803,7 +26804,7 @@ var ReactTable = function(_Methods) {
26803
26804
  _viewIndex: index2
26804
26805
  });
26805
26806
  var newPath = path2.concat([i]);
26806
- if (rowWithViewIndex[subRowsKey] && _$1.get(expanded, newPath)) {
26807
+ if (rowWithViewIndex[subRowsKey] && _14.get(expanded, newPath)) {
26807
26808
  var _recurseRowsViewIndex = recurseRowsViewIndex2(rowWithViewIndex[subRowsKey], newPath, index2);
26808
26809
  var _recurseRowsViewIndex2 = _slicedToArray$3(_recurseRowsViewIndex, 2);
26809
26810
  rowWithViewIndex[subRowsKey] = _recurseRowsViewIndex2[0];
@@ -26817,11 +26818,11 @@ var ReactTable = function(_Methods) {
26817
26818
  pageRows = _recurseRowsViewIndex4[0];
26818
26819
  var canPrevious = page > 0;
26819
26820
  var canNext = page + 1 < pages;
26820
- var rowMinWidth = _$1.sum(allVisibleColumns.map(function(d2) {
26821
+ var rowMinWidth = _14.sum(allVisibleColumns.map(function(d2) {
26821
26822
  var resizedColumn = resized.find(function(x2) {
26822
26823
  return x2.id === d2.id;
26823
26824
  }) || {};
26824
- return _$1.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
26825
+ return _14.getFirstDefined(resizedColumn.value, d2.width, d2.minWidth);
26825
26826
  }));
26826
26827
  var rowIndex = -1;
26827
26828
  var finalState = _extends$i({}, resolvedState, {
@@ -26835,9 +26836,9 @@ var ReactTable = function(_Methods) {
26835
26836
  canNext,
26836
26837
  rowMinWidth
26837
26838
  });
26838
- var rootProps = _$1.splitProps(getProps(finalState, void 0, void 0, this));
26839
- var tableProps = _$1.splitProps(getTableProps(finalState, void 0, void 0, this));
26840
- var tBodyProps = _$1.splitProps(getTbodyProps(finalState, void 0, void 0, this));
26839
+ var rootProps = _14.splitProps(getProps(finalState, void 0, void 0, this));
26840
+ var tableProps = _14.splitProps(getTableProps(finalState, void 0, void 0, this));
26841
+ var tBodyProps = _14.splitProps(getTbodyProps(finalState, void 0, void 0, this));
26841
26842
  var loadingProps = getLoadingProps(finalState, void 0, void 0, this);
26842
26843
  var noDataProps = getNoDataProps(finalState, void 0, void 0, this);
26843
26844
  var makeHeaderGroup = /* @__PURE__ */ __name(function makeHeaderGroup2(column, i) {
@@ -26846,24 +26847,24 @@ var ReactTable = function(_Methods) {
26846
26847
  return x2.id === col.id;
26847
26848
  }) || {}).value;
26848
26849
  }, "resizedValue");
26849
- var flex2 = _$1.sum(column.columns.map(function(col) {
26850
+ var flex2 = _14.sum(column.columns.map(function(col) {
26850
26851
  return col.width || resizedValue(col) ? 0 : col.minWidth;
26851
26852
  }));
26852
- var width = _$1.sum(column.columns.map(function(col) {
26853
- return _$1.getFirstDefined(resizedValue(col), col.width, col.minWidth);
26853
+ var width = _14.sum(column.columns.map(function(col) {
26854
+ return _14.getFirstDefined(resizedValue(col), col.width, col.minWidth);
26854
26855
  }));
26855
- var maxWidth = _$1.sum(column.columns.map(function(col) {
26856
- return _$1.getFirstDefined(resizedValue(col), col.width, col.maxWidth);
26856
+ var maxWidth = _14.sum(column.columns.map(function(col) {
26857
+ return _14.getFirstDefined(resizedValue(col), col.width, col.maxWidth);
26857
26858
  }));
26858
- var theadGroupThProps = _$1.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
26859
- var columnHeaderProps = _$1.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26859
+ var theadGroupThProps = _14.splitProps(getTheadGroupThProps(finalState, void 0, column, _this2));
26860
+ var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26860
26861
  var classes = [column.headerClassName, theadGroupThProps.className, columnHeaderProps.className];
26861
26862
  var styles2 = _extends$i({}, column.headerStyle, theadGroupThProps.style, columnHeaderProps.style);
26862
26863
  var rest = _extends$i({}, theadGroupThProps.rest, columnHeaderProps.rest);
26863
26864
  var flexStyles = {
26864
26865
  flex: flex2 + " 0 auto",
26865
- width: _$1.asPx(width),
26866
- maxWidth: _$1.asPx(maxWidth)
26866
+ width: _14.asPx(width),
26867
+ maxWidth: _14.asPx(maxWidth)
26867
26868
  };
26868
26869
  return React$1.createElement(
26869
26870
  ThComponent2,
@@ -26872,15 +26873,15 @@ var ReactTable = function(_Methods) {
26872
26873
  className: classNames(classes),
26873
26874
  style: _extends$i({}, styles2, flexStyles)
26874
26875
  }, rest),
26875
- _$1.normalizeComponent(column.Header, {
26876
+ _14.normalizeComponent(column.Header, {
26876
26877
  data: sortedData,
26877
26878
  column
26878
26879
  })
26879
26880
  );
26880
26881
  }, "makeHeaderGroup");
26881
26882
  var makeHeaderGroups = /* @__PURE__ */ __name(function makeHeaderGroups2() {
26882
- var theadGroupProps = _$1.splitProps(getTheadGroupProps(finalState, void 0, void 0, _this2));
26883
- var theadGroupTrProps = _$1.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
26883
+ var theadGroupProps = _14.splitProps(getTheadGroupProps(finalState, void 0, void 0, _this2));
26884
+ var theadGroupTrProps = _14.splitProps(getTheadGroupTrProps(finalState, void 0, void 0, _this2));
26884
26885
  return React$1.createElement(
26885
26886
  TheadComponent,
26886
26887
  _extends$i({
@@ -26907,14 +26908,14 @@ var ReactTable = function(_Methods) {
26907
26908
  return d2.id === column.id;
26908
26909
  });
26909
26910
  var show = typeof column.show === "function" ? column.show() : column.show;
26910
- var width = _$1.getFirstDefined(resizedCol.value, column.width, column.minWidth);
26911
- var maxWidth = _$1.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
26912
- var theadThProps = _$1.splitProps(getTheadThProps(finalState, void 0, column, _this2));
26913
- var columnHeaderProps = _$1.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26911
+ var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
26912
+ var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
26913
+ var theadThProps = _14.splitProps(getTheadThProps(finalState, void 0, column, _this2));
26914
+ var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26914
26915
  var classes = [column.headerClassName, theadThProps.className, columnHeaderProps.className];
26915
26916
  var styles2 = _extends$i({}, column.headerStyle, theadThProps.style, columnHeaderProps.style);
26916
26917
  var rest = _extends$i({}, theadThProps.rest, columnHeaderProps.rest);
26917
- var isResizable = _$1.getFirstDefined(column.resizable, resizable, false);
26918
+ var isResizable = _14.getFirstDefined(column.resizable, resizable, false);
26918
26919
  var resizer = isResizable ? React$1.createElement(ResizerComponent, _extends$i({
26919
26920
  onMouseDown: /* @__PURE__ */ __name(function onMouseDown2(e) {
26920
26921
  return _this2.resizeColumnStart(e, column, false);
@@ -26923,7 +26924,7 @@ var ReactTable = function(_Methods) {
26923
26924
  return _this2.resizeColumnStart(e, column, true);
26924
26925
  }, "onTouchStart")
26925
26926
  }, getResizerProps("finalState", void 0, column, _this2))) : null;
26926
- var isSortable = _$1.getFirstDefined(column.sortable, sortable, false);
26927
+ var isSortable = _14.getFirstDefined(column.sortable, sortable, false);
26927
26928
  return React$1.createElement(
26928
26929
  ThComponent2,
26929
26930
  _extends$i({
@@ -26931,8 +26932,8 @@ var ReactTable = function(_Methods) {
26931
26932
  className: classNames(classes, isResizable && "rt-resizable-header", sort2 ? sort2.desc ? "-sort-desc" : "-sort-asc" : "", isSortable && "-cursor-pointer", !show && "-hidden", pivotBy && pivotBy.slice(0, -1).includes(column.id) && "rt-header-pivot"),
26932
26933
  style: _extends$i({}, styles2, {
26933
26934
  flex: width + " 0 auto",
26934
- width: _$1.asPx(width),
26935
- maxWidth: _$1.asPx(maxWidth)
26935
+ width: _14.asPx(width),
26936
+ maxWidth: _14.asPx(maxWidth)
26936
26937
  }),
26937
26938
  toggleSort: /* @__PURE__ */ __name(function toggleSort(e) {
26938
26939
  if (isSortable)
@@ -26942,7 +26943,7 @@ var ReactTable = function(_Methods) {
26942
26943
  React$1.createElement(
26943
26944
  "div",
26944
26945
  { className: classNames(isResizable && "rt-resizable-header-content") },
26945
- _$1.normalizeComponent(column.Header, {
26946
+ _14.normalizeComponent(column.Header, {
26946
26947
  data: sortedData,
26947
26948
  column
26948
26949
  })
@@ -26951,8 +26952,8 @@ var ReactTable = function(_Methods) {
26951
26952
  );
26952
26953
  }, "makeHeader");
26953
26954
  var makeHeaders = /* @__PURE__ */ __name(function makeHeaders2() {
26954
- var theadProps = _$1.splitProps(getTheadProps(finalState, void 0, void 0, _this2));
26955
- var theadTrProps = _$1.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
26955
+ var theadProps = _14.splitProps(getTheadProps(finalState, void 0, void 0, _this2));
26956
+ var theadTrProps = _14.splitProps(getTheadTrProps(finalState, void 0, void 0, _this2));
26956
26957
  return React$1.createElement(
26957
26958
  TheadComponent,
26958
26959
  _extends$i({
@@ -26975,10 +26976,10 @@ var ReactTable = function(_Methods) {
26975
26976
  var resizedCol = resized.find(function(x2) {
26976
26977
  return x2.id === column.id;
26977
26978
  }) || {};
26978
- var width = _$1.getFirstDefined(resizedCol.value, column.width, column.minWidth);
26979
- var maxWidth = _$1.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
26980
- var theadFilterThProps = _$1.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
26981
- var columnHeaderProps = _$1.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26979
+ var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
26980
+ var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
26981
+ var theadFilterThProps = _14.splitProps(getTheadFilterThProps(finalState, void 0, column, _this2));
26982
+ var columnHeaderProps = _14.splitProps(column.getHeaderProps(finalState, void 0, column, _this2));
26982
26983
  var classes = [column.headerClassName, theadFilterThProps.className, columnHeaderProps.className];
26983
26984
  var styles2 = _extends$i({}, column.headerStyle, theadFilterThProps.style, columnHeaderProps.style);
26984
26985
  var rest = _extends$i({}, theadFilterThProps.rest, columnHeaderProps.rest);
@@ -26986,7 +26987,7 @@ var ReactTable = function(_Methods) {
26986
26987
  return filter2.id === column.id;
26987
26988
  });
26988
26989
  var ResolvedFilterComponent = column.Filter || FilterComponent2;
26989
- var isFilterable = _$1.getFirstDefined(column.filterable, filterable, false);
26990
+ var isFilterable = _14.getFirstDefined(column.filterable, filterable, false);
26990
26991
  return React$1.createElement(
26991
26992
  ThComponent2,
26992
26993
  _extends$i({
@@ -26994,11 +26995,11 @@ var ReactTable = function(_Methods) {
26994
26995
  className: classNames(classes),
26995
26996
  style: _extends$i({}, styles2, {
26996
26997
  flex: width + " 0 auto",
26997
- width: _$1.asPx(width),
26998
- maxWidth: _$1.asPx(maxWidth)
26998
+ width: _14.asPx(width),
26999
+ maxWidth: _14.asPx(maxWidth)
26999
27000
  })
27000
27001
  }, rest),
27001
- isFilterable ? _$1.normalizeComponent(ResolvedFilterComponent, {
27002
+ isFilterable ? _14.normalizeComponent(ResolvedFilterComponent, {
27002
27003
  column,
27003
27004
  filter,
27004
27005
  onChange: /* @__PURE__ */ __name(function onChange(value) {
@@ -27008,8 +27009,8 @@ var ReactTable = function(_Methods) {
27008
27009
  );
27009
27010
  }, "makeFilter");
27010
27011
  var makeFilters = /* @__PURE__ */ __name(function makeFilters2() {
27011
- var theadFilterProps = _$1.splitProps(getTheadFilterProps(finalState, void 0, void 0, _this2));
27012
- var theadFilterTrProps = _$1.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
27012
+ var theadFilterProps = _14.splitProps(getTheadFilterProps(finalState, void 0, void 0, _this2));
27013
+ var theadFilterTrProps = _14.splitProps(getTheadFilterTrProps(finalState, void 0, void 0, _this2));
27013
27014
  return React$1.createElement(
27014
27015
  TheadComponent,
27015
27016
  _extends$i({
@@ -27043,9 +27044,9 @@ var ReactTable = function(_Methods) {
27043
27044
  groupedByPivot: row[groupedByPivotKey],
27044
27045
  subRows: row[subRowsKey]
27045
27046
  };
27046
- var isExpanded = _$1.get(expanded, rowInfo.nestingPath);
27047
+ var isExpanded = _14.get(expanded, rowInfo.nestingPath);
27047
27048
  var trGroupProps = getTrGroupProps(finalState, rowInfo, void 0, _this2);
27048
- var trProps = _$1.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
27049
+ var trProps = _14.splitProps(getTrProps(finalState, rowInfo, void 0, _this2));
27049
27050
  return React$1.createElement(
27050
27051
  TrGroupComponent2,
27051
27052
  _extends$i({ key: rowInfo.nestingPath.join("_") }, trGroupProps),
@@ -27060,10 +27061,10 @@ var ReactTable = function(_Methods) {
27060
27061
  return x2.id === column.id;
27061
27062
  }) || {};
27062
27063
  var show = typeof column.show === "function" ? column.show() : column.show;
27063
- var width = _$1.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27064
- var maxWidth = _$1.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27065
- var tdProps = _$1.splitProps(getTdProps(finalState, rowInfo, column, _this2));
27066
- var columnProps = _$1.splitProps(column.getProps(finalState, rowInfo, column, _this2));
27064
+ var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27065
+ var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27066
+ var tdProps = _14.splitProps(getTdProps(finalState, rowInfo, column, _this2));
27067
+ var columnProps = _14.splitProps(column.getProps(finalState, rowInfo, column, _this2));
27067
27068
  var classes = [tdProps.className, column.className, columnProps.className];
27068
27069
  var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
27069
27070
  var cellInfo = _extends$i({}, rowInfo, {
@@ -27086,11 +27087,11 @@ var ReactTable = function(_Methods) {
27086
27087
  var isBranch = void 0;
27087
27088
  var isPreview = void 0;
27088
27089
  var onExpanderClick = /* @__PURE__ */ __name(function onExpanderClick2(e) {
27089
- var newExpanded = _$1.clone(expanded);
27090
+ var newExpanded = _14.clone(expanded);
27090
27091
  if (isExpanded) {
27091
- newExpanded = _$1.set(newExpanded, cellInfo.nestingPath, false);
27092
+ newExpanded = _14.set(newExpanded, cellInfo.nestingPath, false);
27092
27093
  } else {
27093
- newExpanded = _$1.set(newExpanded, cellInfo.nestingPath, {});
27094
+ newExpanded = _14.set(newExpanded, cellInfo.nestingPath, {});
27094
27095
  }
27095
27096
  return _this2.setStateWithData({
27096
27097
  expanded: newExpanded
@@ -27098,7 +27099,7 @@ var ReactTable = function(_Methods) {
27098
27099
  return onExpandedChange && onExpandedChange(newExpanded, cellInfo.nestingPath, e, cellInfo);
27099
27100
  });
27100
27101
  }, "onExpanderClick");
27101
- var resolvedCell = _$1.normalizeComponent(column.Cell, cellInfo, value);
27102
+ var resolvedCell = _14.normalizeComponent(column.Cell, cellInfo, value);
27102
27103
  var ResolvedAggregatedComponent = column.Aggregated || (!column.aggregate ? AggregatedComponent2 : column.Cell);
27103
27104
  var ResolvedExpanderComponent = column.Expander || ExpanderComponent2;
27104
27105
  var ResolvedPivotValueComponent = column.PivotValue || PivotValueComponent2;
@@ -27122,19 +27123,19 @@ var ReactTable = function(_Methods) {
27122
27123
  isBranch = rowInfo.row[pivotIDKey] === column.id && cellInfo.subRows;
27123
27124
  isPreview = pivotBy.indexOf(column.id) > pivotBy.indexOf(rowInfo.row[pivotIDKey]) && cellInfo.subRows;
27124
27125
  if (isBranch) {
27125
- resolvedCell = _$1.normalizeComponent(ResolvedPivotComponent, _extends$i({}, cellInfo, {
27126
+ resolvedCell = _14.normalizeComponent(ResolvedPivotComponent, _extends$i({}, cellInfo, {
27126
27127
  value: row[pivotValKey]
27127
27128
  }), row[pivotValKey]);
27128
27129
  } else if (isPreview) {
27129
- resolvedCell = _$1.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
27130
+ resolvedCell = _14.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
27130
27131
  } else {
27131
27132
  resolvedCell = null;
27132
27133
  }
27133
27134
  } else if (cellInfo.aggregated) {
27134
- resolvedCell = _$1.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
27135
+ resolvedCell = _14.normalizeComponent(ResolvedAggregatedComponent, cellInfo, value);
27135
27136
  }
27136
27137
  if (cellInfo.expander) {
27137
- resolvedCell = _$1.normalizeComponent(ResolvedExpanderComponent, cellInfo, row[pivotValKey]);
27138
+ resolvedCell = _14.normalizeComponent(ResolvedExpanderComponent, cellInfo, row[pivotValKey]);
27138
27139
  if (pivotBy) {
27139
27140
  if (cellInfo.groupedByPivot) {
27140
27141
  resolvedCell = null;
@@ -27170,8 +27171,8 @@ var ReactTable = function(_Methods) {
27170
27171
  className: classNames(classes, !cellInfo.expandable && !show && "hidden", cellInfo.expandable && "rt-expandable", (isBranch || isPreview) && "rt-pivot"),
27171
27172
  style: _extends$i({}, styles2, {
27172
27173
  flex: width + " 0 auto",
27173
- width: _$1.asPx(width),
27174
- maxWidth: _$1.asPx(maxWidth)
27174
+ width: _14.asPx(width),
27175
+ maxWidth: _14.asPx(maxWidth)
27175
27176
  })
27176
27177
  }, tdProps.rest, columnProps.rest, interactionProps),
27177
27178
  resolvedCell
@@ -27182,8 +27183,8 @@ var ReactTable = function(_Methods) {
27182
27183
  return makePageRow2(d2, i2, rowInfo.nestingPath);
27183
27184
  }),
27184
27185
  SubComponent && !rowInfo.subRows && isExpanded && SubComponent(rowInfo, function() {
27185
- var newExpanded = _$1.clone(expanded);
27186
- _$1.set(newExpanded, rowInfo.nestingPath, false);
27186
+ var newExpanded = _14.clone(expanded);
27187
+ _14.set(newExpanded, rowInfo.nestingPath, false);
27187
27188
  })
27188
27189
  );
27189
27190
  }, "makePageRow");
@@ -27192,11 +27193,11 @@ var ReactTable = function(_Methods) {
27192
27193
  return x2.id === column.id;
27193
27194
  }) || {};
27194
27195
  var show = typeof column.show === "function" ? column.show() : column.show;
27195
- var width = _$1.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27196
+ var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27196
27197
  var flex2 = width;
27197
- var maxWidth = _$1.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27198
- var tdProps = _$1.splitProps(getTdProps(finalState, void 0, column, _this2));
27199
- var columnProps = _$1.splitProps(column.getProps(finalState, void 0, column, _this2));
27198
+ var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27199
+ var tdProps = _14.splitProps(getTdProps(finalState, void 0, column, _this2));
27200
+ var columnProps = _14.splitProps(column.getProps(finalState, void 0, column, _this2));
27200
27201
  var classes = [tdProps.className, column.className, columnProps.className];
27201
27202
  var styles2 = _extends$i({}, tdProps.style, column.style, columnProps.style);
27202
27203
  return React$1.createElement(
@@ -27206,16 +27207,16 @@ var ReactTable = function(_Methods) {
27206
27207
  className: classNames(classes, !show && "hidden"),
27207
27208
  style: _extends$i({}, styles2, {
27208
27209
  flex: flex2 + " 0 auto",
27209
- width: _$1.asPx(width),
27210
- maxWidth: _$1.asPx(maxWidth)
27210
+ width: _14.asPx(width),
27211
+ maxWidth: _14.asPx(maxWidth)
27211
27212
  })
27212
27213
  }, tdProps.rest),
27213
- _$1.normalizeComponent(PadRowComponent2)
27214
+ _14.normalizeComponent(PadRowComponent2)
27214
27215
  );
27215
27216
  }, "makePadColumn");
27216
27217
  var makePadRow = /* @__PURE__ */ __name(function makePadRow2(row, i) {
27217
27218
  var trGroupProps = getTrGroupProps(finalState, void 0, void 0, _this2);
27218
- var trProps = _$1.splitProps(getTrProps(finalState, void 0, void 0, _this2));
27219
+ var trProps = _14.splitProps(getTrProps(finalState, void 0, void 0, _this2));
27219
27220
  return React$1.createElement(
27220
27221
  TrGroupComponent2,
27221
27222
  _extends$i({ key: "pad-" + i }, trGroupProps),
@@ -27234,11 +27235,11 @@ var ReactTable = function(_Methods) {
27234
27235
  return x2.id === column.id;
27235
27236
  }) || {};
27236
27237
  var show = typeof column.show === "function" ? column.show() : column.show;
27237
- var width = _$1.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27238
- var maxWidth = _$1.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27239
- var tFootTdProps = _$1.splitProps(getTfootTdProps(finalState, void 0, column, _this2));
27240
- var columnProps = _$1.splitProps(column.getProps(finalState, void 0, column, _this2));
27241
- var columnFooterProps = _$1.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
27238
+ var width = _14.getFirstDefined(resizedCol.value, column.width, column.minWidth);
27239
+ var maxWidth = _14.getFirstDefined(resizedCol.value, column.width, column.maxWidth);
27240
+ var tFootTdProps = _14.splitProps(getTfootTdProps(finalState, void 0, column, _this2));
27241
+ var columnProps = _14.splitProps(column.getProps(finalState, void 0, column, _this2));
27242
+ var columnFooterProps = _14.splitProps(column.getFooterProps(finalState, void 0, column, _this2));
27242
27243
  var classes = [tFootTdProps.className, column.className, columnProps.className, columnFooterProps.className];
27243
27244
  var styles2 = _extends$i({}, tFootTdProps.style, column.style, columnProps.style, columnFooterProps.style);
27244
27245
  return React$1.createElement(
@@ -27248,19 +27249,19 @@ var ReactTable = function(_Methods) {
27248
27249
  className: classNames(classes, !show && "hidden"),
27249
27250
  style: _extends$i({}, styles2, {
27250
27251
  flex: width + " 0 auto",
27251
- width: _$1.asPx(width),
27252
- maxWidth: _$1.asPx(maxWidth)
27252
+ width: _14.asPx(width),
27253
+ maxWidth: _14.asPx(maxWidth)
27253
27254
  })
27254
27255
  }, columnProps.rest, tFootTdProps.rest, columnFooterProps.rest),
27255
- _$1.normalizeComponent(column.Footer, {
27256
+ _14.normalizeComponent(column.Footer, {
27256
27257
  data: sortedData,
27257
27258
  column
27258
27259
  })
27259
27260
  );
27260
27261
  }, "makeColumnFooter");
27261
27262
  var makeColumnFooters = /* @__PURE__ */ __name(function makeColumnFooters2() {
27262
- var tFootProps = _$1.splitProps(getTfootProps(finalState, void 0, void 0, _this2));
27263
- var tFootTrProps = _$1.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
27263
+ var tFootProps = _14.splitProps(getTfootProps(finalState, void 0, void 0, _this2));
27264
+ var tFootTrProps = _14.splitProps(getTfootTrProps(finalState, void 0, void 0, _this2));
27264
27265
  return React$1.createElement(
27265
27266
  TfootComponent,
27266
27267
  _extends$i({
@@ -27280,7 +27281,7 @@ var ReactTable = function(_Methods) {
27280
27281
  );
27281
27282
  }, "makeColumnFooters");
27282
27283
  var makePagination = /* @__PURE__ */ __name(function makePagination2(isTop) {
27283
- var paginationProps = _$1.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
27284
+ var paginationProps = _14.splitProps(getPaginationProps(finalState, void 0, void 0, _this2));
27284
27285
  return React$1.createElement(PaginationComponent, _extends$i({}, resolvedState, {
27285
27286
  pages,
27286
27287
  canPrevious,
@@ -27344,7 +27345,7 @@ var ReactTable = function(_Methods) {
27344
27345
  !pageRows.length && React$1.createElement(
27345
27346
  NoDataComponent,
27346
27347
  noDataProps,
27347
- _$1.normalizeComponent(noDataText)
27348
+ _14.normalizeComponent(noDataText)
27348
27349
  ),
27349
27350
  React$1.createElement(LoadingComponent3, _extends$i({ loading, loadingText }, loadingProps))
27350
27351
  );
@@ -28296,7 +28297,7 @@ var hasOwn$3 = Object.prototype.hasOwnProperty;
28296
28297
  var toStr$2 = Object.prototype.toString;
28297
28298
  var defineProperty$4 = Object.defineProperty;
28298
28299
  var gOPD = Object.getOwnPropertyDescriptor;
28299
- var isArray$b = /* @__PURE__ */ __name(function isArray2(arr) {
28300
+ var isArray$a = /* @__PURE__ */ __name(function isArray2(arr) {
28300
28301
  if (typeof Array.isArray === "function") {
28301
28302
  return Array.isArray(arr);
28302
28303
  }
@@ -28359,10 +28360,10 @@ var extend = /* @__PURE__ */ __name(function extend2() {
28359
28360
  src2 = getProperty(target, name);
28360
28361
  copy2 = getProperty(options, name);
28361
28362
  if (target !== copy2) {
28362
- if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$b(copy2)))) {
28363
+ if (deep && copy2 && (isPlainObject$3(copy2) || (copyIsArray = isArray$a(copy2)))) {
28363
28364
  if (copyIsArray) {
28364
28365
  copyIsArray = false;
28365
- clone4 = src2 && isArray$b(src2) ? src2 : [];
28366
+ clone4 = src2 && isArray$a(src2) ? src2 : [];
28366
28367
  } else {
28367
28368
  clone4 = src2 && isPlainObject$3(src2) ? src2 : {};
28368
28369
  }
@@ -36375,7 +36376,7 @@ function requireReactIs_development() {
36375
36376
  if (hasRequiredReactIs_development)
36376
36377
  return reactIs_development;
36377
36378
  hasRequiredReactIs_development = 1;
36378
- if (process.env.NODE_ENV !== "production") {
36379
+ if (production !== "production") {
36379
36380
  (function() {
36380
36381
  var REACT_ELEMENT_TYPE = Symbol.for("react.element");
36381
36382
  var REACT_PORTAL_TYPE = Symbol.for("react.portal");
@@ -36568,7 +36569,7 @@ function requireReactIs_development() {
36568
36569
  return reactIs_development;
36569
36570
  }
36570
36571
  __name(requireReactIs_development, "requireReactIs_development");
36571
- if (process.env.NODE_ENV === "production") {
36572
+ if (production === "production") {
36572
36573
  reactIs.exports = requireReactIs_production_min();
36573
36574
  } else {
36574
36575
  reactIs.exports = requireReactIs_development();
@@ -42970,7 +42971,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
42970
42971
  depth = 0;
42971
42972
  }
42972
42973
  if (depth >= maxDepth && maxDepth > 0 && typeof obj === "object") {
42973
- return isArray$a(obj) ? "[Array]" : "[Object]";
42974
+ return isArray$9(obj) ? "[Array]" : "[Object]";
42974
42975
  }
42975
42976
  var indent2 = getIndent(opts, depth);
42976
42977
  if (typeof seen === "undefined") {
@@ -43017,7 +43018,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
43017
43018
  s2 += "</" + $toLowerCase.call(String(obj.nodeName)) + ">";
43018
43019
  return s2;
43019
43020
  }
43020
- if (isArray$a(obj)) {
43021
+ if (isArray$9(obj)) {
43021
43022
  if (obj.length === 0) {
43022
43023
  return "[]";
43023
43024
  }
@@ -43080,7 +43081,7 @@ var objectInspect = /* @__PURE__ */ __name(function inspect_(obj, options, depth
43080
43081
  if (isBoolean$1(obj)) {
43081
43082
  return markBoxed(booleanValueOf.call(obj));
43082
43083
  }
43083
- if (isString$3(obj)) {
43084
+ if (isString$2(obj)) {
43084
43085
  return markBoxed(inspect2(String(obj)));
43085
43086
  }
43086
43087
  if (!isDate(obj) && !isRegExp$1(obj)) {
@@ -43109,10 +43110,10 @@ function quote(s2) {
43109
43110
  return $replace.call(String(s2), /"/g, "&quot;");
43110
43111
  }
43111
43112
  __name(quote, "quote");
43112
- function isArray$a(obj) {
43113
+ function isArray$9(obj) {
43113
43114
  return toStr(obj) === "[object Array]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
43114
43115
  }
43115
- __name(isArray$a, "isArray$a");
43116
+ __name(isArray$9, "isArray$9");
43116
43117
  function isDate(obj) {
43117
43118
  return toStr(obj) === "[object Date]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
43118
43119
  }
@@ -43125,10 +43126,10 @@ function isError(obj) {
43125
43126
  return toStr(obj) === "[object Error]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
43126
43127
  }
43127
43128
  __name(isError, "isError");
43128
- function isString$3(obj) {
43129
+ function isString$2(obj) {
43129
43130
  return toStr(obj) === "[object String]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
43130
43131
  }
43131
- __name(isString$3, "isString$3");
43132
+ __name(isString$2, "isString$2");
43132
43133
  function isNumber$1(obj) {
43133
43134
  return toStr(obj) === "[object Number]" && (!toStringTag || !(typeof obj === "object" && toStringTag in obj));
43134
43135
  }
@@ -43362,7 +43363,7 @@ function indentedJoin(xs, indent2) {
43362
43363
  }
43363
43364
  __name(indentedJoin, "indentedJoin");
43364
43365
  function arrObjKeys(obj, inspect2) {
43365
- var isArr = isArray$a(obj);
43366
+ var isArr = isArray$9(obj);
43366
43367
  var xs = [];
43367
43368
  if (isArr) {
43368
43369
  xs.length = obj.length;
@@ -43528,7 +43529,7 @@ var formats$3 = {
43528
43529
  };
43529
43530
  var formats$2 = formats$3;
43530
43531
  var has$3 = Object.prototype.hasOwnProperty;
43531
- var isArray$9 = Array.isArray;
43532
+ var isArray$8 = Array.isArray;
43532
43533
  var hexTable = function() {
43533
43534
  var array2 = [];
43534
43535
  for (var i = 0; i < 256; ++i) {
@@ -43540,7 +43541,7 @@ var compactQueue = /* @__PURE__ */ __name(function compactQueue2(queue) {
43540
43541
  while (queue.length > 1) {
43541
43542
  var item = queue.pop();
43542
43543
  var obj = item.obj[item.prop];
43543
- if (isArray$9(obj)) {
43544
+ if (isArray$8(obj)) {
43544
43545
  var compacted = [];
43545
43546
  for (var j = 0; j < obj.length; ++j) {
43546
43547
  if (typeof obj[j] !== "undefined") {
@@ -43565,7 +43566,7 @@ var merge$2 = /* @__PURE__ */ __name(function merge(target, source, options) {
43565
43566
  return target;
43566
43567
  }
43567
43568
  if (typeof source !== "object") {
43568
- if (isArray$9(target)) {
43569
+ if (isArray$8(target)) {
43569
43570
  target.push(source);
43570
43571
  } else if (target && typeof target === "object") {
43571
43572
  if (options && (options.plainObjects || options.allowPrototypes) || !has$3.call(Object.prototype, source)) {
@@ -43580,10 +43581,10 @@ var merge$2 = /* @__PURE__ */ __name(function merge(target, source, options) {
43580
43581
  return [target].concat(source);
43581
43582
  }
43582
43583
  var mergeTarget = target;
43583
- if (isArray$9(target) && !isArray$9(source)) {
43584
+ if (isArray$8(target) && !isArray$8(source)) {
43584
43585
  mergeTarget = arrayToObject(target, options);
43585
43586
  }
43586
- if (isArray$9(target) && isArray$9(source)) {
43587
+ if (isArray$8(target) && isArray$8(source)) {
43587
43588
  source.forEach(function(item, i) {
43588
43589
  if (has$3.call(target, i)) {
43589
43590
  var targetItem = target[i];
@@ -43697,7 +43698,7 @@ var combine = /* @__PURE__ */ __name(function combine2(a2, b2) {
43697
43698
  return [].concat(a2, b2);
43698
43699
  }, "combine");
43699
43700
  var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val, fn3) {
43700
- if (isArray$9(val)) {
43701
+ if (isArray$8(val)) {
43701
43702
  var mapped = [];
43702
43703
  for (var i = 0; i < val.length; i += 1) {
43703
43704
  mapped.push(fn3(val[i]));
@@ -43734,10 +43735,10 @@ var arrayPrefixGenerators = {
43734
43735
  return prefix;
43735
43736
  }, "repeat")
43736
43737
  };
43737
- var isArray$8 = Array.isArray;
43738
+ var isArray$7 = Array.isArray;
43738
43739
  var push2 = Array.prototype.push;
43739
43740
  var pushToArray = /* @__PURE__ */ __name(function(arr, valueOrArray) {
43740
- push2.apply(arr, isArray$8(valueOrArray) ? valueOrArray : [valueOrArray]);
43741
+ push2.apply(arr, isArray$7(valueOrArray) ? valueOrArray : [valueOrArray]);
43741
43742
  }, "pushToArray");
43742
43743
  var toISO = Date.prototype.toISOString;
43743
43744
  var defaultFormat = formats$1["default"];
@@ -43787,7 +43788,7 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
43787
43788
  obj = filter(prefix, obj);
43788
43789
  } else if (obj instanceof Date) {
43789
43790
  obj = serializeDate2(obj);
43790
- } else if (generateArrayPrefix === "comma" && isArray$8(obj)) {
43791
+ } else if (generateArrayPrefix === "comma" && isArray$7(obj)) {
43791
43792
  obj = utils$1.maybeMap(obj, function(value2) {
43792
43793
  if (value2 instanceof Date) {
43793
43794
  return serializeDate2(value2);
@@ -43813,25 +43814,25 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
43813
43814
  return values;
43814
43815
  }
43815
43816
  var objKeys;
43816
- if (generateArrayPrefix === "comma" && isArray$8(obj)) {
43817
+ if (generateArrayPrefix === "comma" && isArray$7(obj)) {
43817
43818
  if (encodeValuesOnly && encoder) {
43818
43819
  obj = utils$1.maybeMap(obj, encoder);
43819
43820
  }
43820
43821
  objKeys = [{ value: obj.length > 0 ? obj.join(",") || null : void 0 }];
43821
- } else if (isArray$8(filter)) {
43822
+ } else if (isArray$7(filter)) {
43822
43823
  objKeys = filter;
43823
43824
  } else {
43824
43825
  var keys3 = Object.keys(obj);
43825
43826
  objKeys = sort2 ? keys3.sort(sort2) : keys3;
43826
43827
  }
43827
- var adjustedPrefix = commaRoundTrip && isArray$8(obj) && obj.length === 1 ? prefix + "[]" : prefix;
43828
+ var adjustedPrefix = commaRoundTrip && isArray$7(obj) && obj.length === 1 ? prefix + "[]" : prefix;
43828
43829
  for (var j = 0; j < objKeys.length; ++j) {
43829
43830
  var key = objKeys[j];
43830
43831
  var value = typeof key === "object" && typeof key.value !== "undefined" ? key.value : obj[key];
43831
43832
  if (skipNulls && value === null) {
43832
43833
  continue;
43833
43834
  }
43834
- var keyPrefix = isArray$8(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
43835
+ var keyPrefix = isArray$7(obj) ? typeof generateArrayPrefix === "function" ? generateArrayPrefix(adjustedPrefix, key) : adjustedPrefix : adjustedPrefix + (allowDots ? "." + key : "[" + key + "]");
43835
43836
  sideChannel2.set(object2, step2);
43836
43837
  var valueSideChannel = getSideChannel2();
43837
43838
  valueSideChannel.set(sentinel, sideChannel2);
@@ -43842,7 +43843,7 @@ var stringify$1 = /* @__PURE__ */ __name(function stringify2(object2, prefix, ge
43842
43843
  commaRoundTrip,
43843
43844
  strictNullHandling,
43844
43845
  skipNulls,
43845
- generateArrayPrefix === "comma" && encodeValuesOnly && isArray$8(obj) ? null : encoder,
43846
+ generateArrayPrefix === "comma" && encodeValuesOnly && isArray$7(obj) ? null : encoder,
43846
43847
  filter,
43847
43848
  sort2,
43848
43849
  allowDots,
@@ -43876,7 +43877,7 @@ var normalizeStringifyOptions = /* @__PURE__ */ __name(function normalizeStringi
43876
43877
  }
43877
43878
  var formatter = formats$1.formatters[format2];
43878
43879
  var filter = defaults$1.filter;
43879
- if (typeof opts.filter === "function" || isArray$8(opts.filter)) {
43880
+ if (typeof opts.filter === "function" || isArray$7(opts.filter)) {
43880
43881
  filter = opts.filter;
43881
43882
  }
43882
43883
  return {
@@ -43905,7 +43906,7 @@ var stringify_1 = /* @__PURE__ */ __name(function(object2, opts) {
43905
43906
  if (typeof options.filter === "function") {
43906
43907
  filter = options.filter;
43907
43908
  obj = filter("", obj);
43908
- } else if (isArray$8(options.filter)) {
43909
+ } else if (isArray$7(options.filter)) {
43909
43910
  filter = options.filter;
43910
43911
  objKeys = filter;
43911
43912
  }
@@ -43970,7 +43971,7 @@ var stringify_1 = /* @__PURE__ */ __name(function(object2, opts) {
43970
43971
  }, "stringify_1");
43971
43972
  var utils = utils$2;
43972
43973
  var has$1 = Object.prototype.hasOwnProperty;
43973
- var isArray$7 = Array.isArray;
43974
+ var isArray$6 = Array.isArray;
43974
43975
  var defaults = {
43975
43976
  allowDots: false,
43976
43977
  allowPrototypes: false,
@@ -44047,7 +44048,7 @@ var parseValues = /* @__PURE__ */ __name(function parseQueryStringValues(str, op
44047
44048
  val = interpretNumericEntities(val);
44048
44049
  }
44049
44050
  if (part.indexOf("[]=") > -1) {
44050
- val = isArray$7(val) ? [val] : val;
44051
+ val = isArray$6(val) ? [val] : val;
44051
44052
  }
44052
44053
  if (has$1.call(obj, key)) {
44053
44054
  obj[key] = utils.combine(obj[key], val);
@@ -44172,434 +44173,6 @@ var lib$1 = {
44172
44173
  stringify: stringify3
44173
44174
  };
44174
44175
  const queryString = /* @__PURE__ */ getDefaultExportFromCjs(lib$1);
44175
- var filterExpression = function() {
44176
- function FilterExpression2(opName, args) {
44177
- this.name = opName;
44178
- this.args = args;
44179
- }
44180
- __name(FilterExpression2, "FilterExpression");
44181
- FilterExpression2.prototype.toFilter = function(filterBuilder, argName) {
44182
- var filterDef = {
44183
- type: "expression",
44184
- operator: this.name,
44185
- field: argName,
44186
- args: this.args
44187
- };
44188
- return filterDef;
44189
- };
44190
- return FilterExpression2;
44191
- }();
44192
- var combineQueries$1 = /* @__PURE__ */ __name(function combineQueries(qry1, qry2, joinOperator, opts) {
44193
- if (qry1.__objectType !== "query")
44194
- throw new Error("First query is not a query type.");
44195
- if (qry2.__objectType !== "query")
44196
- throw new Error("Second query is not a query type.");
44197
- if (qry1.entity != qry2.entity)
44198
- throw new Error(
44199
- "Queries are for different entities " + qry1.entity + " and " + qry2.entity
44200
- );
44201
- if (joinOperator !== "or")
44202
- joinOperator = "and";
44203
- var combinedFilters = {
44204
- type: "group",
44205
- operator: joinOperator,
44206
- filters: []
44207
- };
44208
- combinedFilters.filters = qry1.filters.concat(qry2.filters);
44209
- qry1.filters = [combinedFilters];
44210
- return qry1;
44211
- }, "combineQueries");
44212
- const FilterExpression = filterExpression;
44213
- const _14 = lodashExports;
44214
- const combineQueries2 = combineQueries$1;
44215
- function isDateOrNumber(opName) {
44216
- return () => {
44217
- var args = [].slice.call(arguments);
44218
- if (args.some((arg) => {
44219
- return !(_14.isDate(arg) || _14.isString(arg) || _14.isNumber(arg));
44220
- })) {
44221
- throw new Error(
44222
- `QueryBuilderError: You must pass a date or number as args to ${opName}. You passed: Args ${args.join(
44223
- ","
44224
- )}`
44225
- );
44226
- }
44227
- };
44228
- }
44229
- __name(isDateOrNumber, "isDateOrNumber");
44230
- function isArray$6(opName) {
44231
- return (arg) => {
44232
- if (!_14.isArray(arg)) {
44233
- throw new Error(
44234
- `QueryBuilderError: You must pass an array for ${opName} filters. You passed: ${arg}`
44235
- );
44236
- }
44237
- };
44238
- }
44239
- __name(isArray$6, "isArray$6");
44240
- function isString$2(opName) {
44241
- return (arg) => {
44242
- if (!_14.isString(arg)) {
44243
- throw new Error(
44244
- `QueryBuilderError: You must pass a string for ${opName} filters. You passed: ${arg}`
44245
- );
44246
- }
44247
- };
44248
- }
44249
- __name(isString$2, "isString$2");
44250
- function numberOfArgs(opName, argLength) {
44251
- return (...args) => {
44252
- if (args.length !== argLength) {
44253
- throw new Error(
44254
- `QueryBuilderError: Args for ${opName} are of length ${args.length}, but they should be of length ${argLength}`
44255
- );
44256
- }
44257
- };
44258
- }
44259
- __name(numberOfArgs, "numberOfArgs");
44260
- const expressionOperators = [
44261
- {
44262
- opName: "greaterThan",
44263
- sanityChecks: [
44264
- numberOfArgs("greaterThan", 1),
44265
- isDateOrNumber("greaterThan")
44266
- ]
44267
- },
44268
- {
44269
- opName: "inList",
44270
- sanityChecks: [numberOfArgs("inList", 1), isArray$6("inList")]
44271
- },
44272
- {
44273
- opName: "lessThan",
44274
- sanityChecks: [numberOfArgs("lessThan", 1), isDateOrNumber("lessThan")]
44275
- },
44276
- {
44277
- opName: "lessThanOrEqual",
44278
- sanityChecks: [
44279
- numberOfArgs("lessThanOrEqual", 1),
44280
- isDateOrNumber("lessThanOrEqual")
44281
- ]
44282
- },
44283
- {
44284
- opName: "equals",
44285
- sanityChecks: [numberOfArgs("equals", 1)]
44286
- },
44287
- {
44288
- opName: "greaterThanOrEqual",
44289
- sanityChecks: [
44290
- numberOfArgs("greaterThanOrEqual", 1),
44291
- isDateOrNumber("greaterThanOrEqual")
44292
- ]
44293
- },
44294
- {
44295
- opName: "notEquals",
44296
- sanityChecks: [numberOfArgs("notEquals", 1)]
44297
- },
44298
- {
44299
- opName: "notNull",
44300
- sanityChecks: [numberOfArgs("notNull", 0)]
44301
- },
44302
- {
44303
- opName: "isNull",
44304
- sanityChecks: [numberOfArgs("isNull", 0)]
44305
- },
44306
- {
44307
- opName: "between",
44308
- sanityChecks: [numberOfArgs("between", 2), isDateOrNumber("between")]
44309
- },
44310
- {
44311
- opName: "notInList",
44312
- sanityChecks: [numberOfArgs("notInList", 1), isArray$6("notInList")]
44313
- },
44314
- {
44315
- opName: "startsWithExactly",
44316
- sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
44317
- },
44318
- {
44319
- opName: "endsWithExactly",
44320
- sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
44321
- },
44322
- {
44323
- opName: "containsExactly",
44324
- sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
44325
- },
44326
- {
44327
- opName: "startsWith",
44328
- sanityChecks: [numberOfArgs("startsWith", 1), isString$2("startsWith")]
44329
- },
44330
- {
44331
- opName: "notStartsWith",
44332
- sanityChecks: [numberOfArgs("notStartsWith", 1), isString$2("notStartsWith")]
44333
- },
44334
- {
44335
- opName: "endsWith",
44336
- sanityChecks: [numberOfArgs("endsWith", 1), isString$2("endsWith")]
44337
- },
44338
- {
44339
- opName: "notEndsWith",
44340
- sanityChecks: [numberOfArgs("notEndsWith", 1), isString$2("notEndsWith")]
44341
- },
44342
- {
44343
- opName: "contains",
44344
- sanityChecks: [numberOfArgs("contains", 1), isString$2("contains")]
44345
- },
44346
- {
44347
- opName: "notContains",
44348
- sanityChecks: [numberOfArgs("notContains", 1), isString$2("notContains")]
44349
- },
44350
- {
44351
- opName: "upperCase",
44352
- sanityChecks: [numberOfArgs("upperCase", 1), isString$2("upperCase")]
44353
- },
44354
- {
44355
- opName: "lowerCase",
44356
- sanityChecks: [numberOfArgs("lowerCase", 1), isString$2("lowerCase")]
44357
- },
44358
- {
44359
- opName: "matchesRegex",
44360
- sanityChecks: [numberOfArgs("matchesRegex", 1), isString$2("matchesRegex")]
44361
- },
44362
- {
44363
- opName: "matchesSimilar",
44364
- sanityChecks: [
44365
- numberOfArgs("matchesSimilar", 1),
44366
- isString$2("matchesSimilar")
44367
- ]
44368
- },
44369
- {
44370
- opName: "fuzzy",
44371
- sanityChecks: [numberOfArgs("fuzzy", 1), isString$2("fuzzy")],
44372
- transform: (arg) => {
44373
- var matchTerm = "";
44374
- var terms = arg.replace(/\W/g, "").replace(" ", "").split("");
44375
- for (var i = 0; i < terms.length; i++) {
44376
- matchTerm += ".*" + terms[i];
44377
- }
44378
- matchTerm += ".*";
44379
- return {
44380
- newOpName: "matchesRegex",
44381
- newArgs: [matchTerm]
44382
- };
44383
- }
44384
- }
44385
- // 'subString', //tnr: not yet implemented
44386
- // 'dateOnly', //tnr: not yet implemented
44387
- ];
44388
- var queryBuilder = function() {
44389
- function QueryBuilder2(entity) {
44390
- this.query = {};
44391
- if (entity == null)
44392
- throw new Error("You must pass the name of the model being filtered!");
44393
- if (typeof entity === "string") {
44394
- this.query = {
44395
- __objectType: "query",
44396
- type: "root",
44397
- entity,
44398
- filters: []
44399
- };
44400
- } else {
44401
- let subQuery = entity;
44402
- this.query = {
44403
- type: "subquery",
44404
- key: subQuery.key,
44405
- entity: subQuery.entity,
44406
- foreignKey: subQuery.foreignKey,
44407
- modifier: subQuery.modifier,
44408
- isArrayRelation: subQuery.isArrayRelation,
44409
- filters: [],
44410
- countExpression: void 0
44411
- };
44412
- this.parentBuilder = subQuery.parentBuilder;
44413
- this.toFilter = function(filterBuilder, name) {
44414
- this.query.foreignKey = name;
44415
- return this.toJSON();
44416
- };
44417
- }
44418
- }
44419
- __name(QueryBuilder2, "QueryBuilder");
44420
- QueryBuilder2.combineQueries = combineQueries2;
44421
- QueryBuilder2.prototype.field = function(fieldName) {
44422
- return {
44423
- __objectType: "field",
44424
- field: fieldName
44425
- };
44426
- };
44427
- QueryBuilder2.prototype.related = function(relatedEntity, isArrayRelation) {
44428
- var tokens2 = relatedEntity.split(".");
44429
- var entity = tokens2[0];
44430
- var key = tokens2[1];
44431
- return createSubQueryBuilder(this, entity, key, isArrayRelation);
44432
- };
44433
- QueryBuilder2.prototype.notRelated = function(relatedEntity, isArrayRelation) {
44434
- var tokens2 = relatedEntity.split(".");
44435
- var entity = tokens2[0];
44436
- var key = tokens2[1];
44437
- return createSubQueryBuilder(this, entity, key, isArrayRelation, "not");
44438
- };
44439
- QueryBuilder2.prototype.toJSON = function() {
44440
- let qry = JSON.parse(JSON.stringify(this.query));
44441
- if (qry.filters.length > 1) {
44442
- qry.filters = [
44443
- {
44444
- type: "group",
44445
- operator: "and",
44446
- chainedWith: "and",
44447
- filters: qry.filters
44448
- }
44449
- ];
44450
- }
44451
- return qry;
44452
- };
44453
- QueryBuilder2.prototype.convertToFilter = function(argDef, operator) {
44454
- var whereArgs = {};
44455
- var filters = [];
44456
- _14.each(argDef, (arg, name) => {
44457
- if (!isFilterExpresionOrSubQuery(name, arg)) {
44458
- if (Array.isArray(arg)) {
44459
- filters.push(this.inList(arg).toFilter(this, name));
44460
- } else {
44461
- whereArgs[name] = arg;
44462
- }
44463
- } else {
44464
- filters.push(arg.toFilter(this, name));
44465
- }
44466
- });
44467
- if (_14.keys(whereArgs).length > 0) {
44468
- filters.unshift({
44469
- type: "where",
44470
- args: whereArgs
44471
- });
44472
- }
44473
- if (filters.length === 1) {
44474
- return filters[0];
44475
- }
44476
- var filterDef = {
44477
- type: "group",
44478
- operator: operator || "and",
44479
- filters
44480
- };
44481
- return filterDef;
44482
- };
44483
- QueryBuilder2.prototype.where = function() {
44484
- var args = [].slice.call(arguments);
44485
- return this.whereAll(args);
44486
- };
44487
- QueryBuilder2.prototype.orWhere = function() {
44488
- var args = [].slice.call(arguments);
44489
- return this.orWhereAll(args);
44490
- };
44491
- QueryBuilder2.prototype.andWhere = function() {
44492
- var args = [].slice.call(arguments);
44493
- return this.andWhereAll(args);
44494
- };
44495
- QueryBuilder2.prototype.whereAny = function() {
44496
- var args = [].slice.call(arguments);
44497
- return whereAny(this, args);
44498
- };
44499
- QueryBuilder2.prototype.whereAll = function() {
44500
- var args = [].slice.call(arguments);
44501
- return whereAll(this, args);
44502
- };
44503
- QueryBuilder2.prototype.andWhereAny = function() {
44504
- var args = [].slice.call(arguments);
44505
- return whereAny(this, args, "and");
44506
- };
44507
- QueryBuilder2.prototype.orWhereAny = function() {
44508
- var args = [].slice.call(arguments);
44509
- return whereAny(this, args, "or");
44510
- };
44511
- QueryBuilder2.prototype.andWhereAll = function() {
44512
- var args = [].slice.call(arguments);
44513
- return whereAll(this, args, "and");
44514
- };
44515
- QueryBuilder2.prototype.orWhereAll = function() {
44516
- var args = [].slice.call(arguments);
44517
- return whereAll(this, args, "or");
44518
- };
44519
- QueryBuilder2.prototype.count = function() {
44520
- var args = [].slice.call(arguments);
44521
- if (this.query.type === "subquery") {
44522
- if (this.query.countExpression) {
44523
- throw new Error(
44524
- "QueryBuilder subquery can only have one count expression"
44525
- );
44526
- }
44527
- this.query.countExpression = args[0].toFilter(this, "count");
44528
- } else {
44529
- throw new Error("QueryBuilder is not subquery type on count expression");
44530
- }
44531
- return this;
44532
- };
44533
- QueryBuilder2.ExpressionJson = {};
44534
- attachExpressionFunctions();
44535
- return QueryBuilder2;
44536
- function createSubQueryBuilder(qb, entity, key, isArrayRelation = true, modifier) {
44537
- return new QueryBuilder2({
44538
- parentBuilder: qb,
44539
- entity,
44540
- key,
44541
- modifier,
44542
- isArrayRelation
44543
- });
44544
- }
44545
- __name(createSubQueryBuilder, "createSubQueryBuilder");
44546
- function attachExpressionFunctions() {
44547
- expressionOperators.forEach(({ opName, sanityChecks, transform: transform2 }) => {
44548
- const filter = /* @__PURE__ */ __name((...args) => {
44549
- let argsToUse = args;
44550
- let opNameToUse = opName;
44551
- if (transform2) {
44552
- let { newOpName, newArgs } = transform2(...args);
44553
- argsToUse = newArgs;
44554
- opNameToUse = newOpName;
44555
- }
44556
- sanityChecks.forEach((sanityCheck) => {
44557
- sanityCheck(...args);
44558
- });
44559
- return new FilterExpression(opNameToUse, argsToUse);
44560
- }, "filter");
44561
- QueryBuilder2.prototype[opName] = filter;
44562
- QueryBuilder2.ExpressionJson[opName] = filter;
44563
- });
44564
- }
44565
- __name(attachExpressionFunctions, "attachExpressionFunctions");
44566
- function isFilterExpresionOrSubQuery(name, arg) {
44567
- if (arg instanceof FilterExpression)
44568
- return true;
44569
- if (arg instanceof QueryBuilder2)
44570
- return true;
44571
- return false;
44572
- }
44573
- __name(isFilterExpresionOrSubQuery, "isFilterExpresionOrSubQuery");
44574
- function whereAny(filterBuilder, whereArgs, chainedWith) {
44575
- return where(filterBuilder, "or", whereArgs, chainedWith);
44576
- }
44577
- __name(whereAny, "whereAny");
44578
- function whereAll(filterBuilder, whereArgs, chainedWith) {
44579
- return where(filterBuilder, "and", whereArgs, chainedWith);
44580
- }
44581
- __name(whereAll, "whereAll");
44582
- function where(filterBuilder, operator, whereArgs, chainedWith) {
44583
- if (!Array.isArray(whereArgs))
44584
- return where(filterBuilder, operator, [whereArgs], chainedWith);
44585
- var filterDef = {
44586
- type: "group",
44587
- operator,
44588
- chainedWith,
44589
- filters: []
44590
- };
44591
- whereArgs.forEach((arg) => {
44592
- var filter = filterBuilder.convertToFilter(arg, operator);
44593
- filterDef.filters.push(filter);
44594
- });
44595
- filterBuilder.query.filters.push(filterDef);
44596
- return filterBuilder;
44597
- }
44598
- __name(where, "where");
44599
- }();
44600
- const QueryBuilder = queryBuilder;
44601
- var tgClientQueryBuilder = QueryBuilder;
44602
- const QueryBuilder$1 = /* @__PURE__ */ getDefaultExportFromCjs(tgClientQueryBuilder);
44603
44176
  const defaultPageSizes = [5, 10, 15, 25, 50, 100, 200, 400];
44604
44177
  function getMergedOpts(topLevel = {}, instanceLevel = {}) {
44605
44178
  const merged = __spreadValues(__spreadValues({}, topLevel), instanceLevel);
@@ -45241,7 +44814,7 @@ function getQueryParams({
45241
44814
  graphqlQueryParams.pageSize = ownProps.controlled_pageSize || Number(pageSize);
45242
44815
  }
45243
44816
  const { model } = schema;
45244
- const qb = new QueryBuilder$1(model);
44817
+ const qb = new window.QueryBuilder(model);
45245
44818
  const ccFields = getFieldsMappedByCCDisplayName(schema);
45246
44819
  if (tableQueryParams.order && tableQueryParams.order.length) {
45247
44820
  tableQueryParams.order.forEach((orderVal) => {
@@ -54965,7 +54538,7 @@ function useDeepCompareMemoize(value) {
54965
54538
  }
54966
54539
  __name(useDeepCompareMemoize, "useDeepCompareMemoize");
54967
54540
  function useDeepCompareEffect(callback, dependencies2) {
54968
- if (process.env.NODE_ENV !== "production") {
54541
+ if (production !== "production") {
54969
54542
  checkDeps(dependencies2);
54970
54543
  }
54971
54544
  return React__namespace.useEffect(callback, useDeepCompareMemoize(dependencies2));
@@ -56579,7 +56152,7 @@ function computePresets(props = {}) {
56579
56152
  return toReturn || {};
56580
56153
  }
56581
56154
  __name(computePresets, "computePresets");
56582
- var __DEV__ = process.env.NODE_ENV !== "production";
56155
+ var __DEV__ = production !== "production";
56583
56156
  var warning = /* @__PURE__ */ __name(function() {
56584
56157
  }, "warning");
56585
56158
  if (__DEV__) {
@@ -57399,8 +56972,8 @@ var KNOWN_STATICS = {
57399
56972
  arguments: true,
57400
56973
  arity: true
57401
56974
  };
57402
- var defineProperty5 = Object.defineProperty;
57403
- var getOwnPropertyNames3 = Object.getOwnPropertyNames;
56975
+ var defineProperty4 = Object.defineProperty;
56976
+ var getOwnPropertyNames4 = Object.getOwnPropertyNames;
57404
56977
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
57405
56978
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
57406
56979
  var getPrototypeOf = Object.getPrototypeOf;
@@ -57413,7 +56986,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
57413
56986
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
57414
56987
  }
57415
56988
  }
57416
- var keys3 = getOwnPropertyNames3(sourceComponent);
56989
+ var keys3 = getOwnPropertyNames4(sourceComponent);
57417
56990
  if (getOwnPropertySymbols3) {
57418
56991
  keys3 = keys3.concat(getOwnPropertySymbols3(sourceComponent));
57419
56992
  }
@@ -57422,7 +56995,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
57422
56995
  if (!REACT_STATICS[key] && !KNOWN_STATICS[key] && (!blacklist || !blacklist[key])) {
57423
56996
  var descriptor2 = getOwnPropertyDescriptor3(sourceComponent, key);
57424
56997
  try {
57425
- defineProperty5(targetComponent, key, descriptor2);
56998
+ defineProperty4(targetComponent, key, descriptor2);
57426
56999
  } catch (e) {
57427
57000
  }
57428
57001
  }
@@ -79655,13 +79228,13 @@ function _interopRequireDefault$2(obj) {
79655
79228
  return obj && obj.__esModule ? obj : { default: obj };
79656
79229
  }
79657
79230
  __name(_interopRequireDefault$2, "_interopRequireDefault$2");
79658
- var timeoutsShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
79231
+ var timeoutsShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
79659
79232
  enter: _propTypes.default.number,
79660
79233
  exit: _propTypes.default.number,
79661
79234
  appear: _propTypes.default.number
79662
79235
  }).isRequired]) : null;
79663
79236
  PropTypes$1.timeoutsShape = timeoutsShape;
79664
- var classNamesShape = process.env.NODE_ENV !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
79237
+ var classNamesShape = production !== "production" ? _propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.shape({
79665
79238
  enter: _propTypes.default.string,
79666
79239
  exit: _propTypes.default.string,
79667
79240
  active: _propTypes.default.string
@@ -79967,7 +79540,7 @@ Transition.childContextTypes = {
79967
79540
  transitionGroup: /* @__PURE__ */ __name(function transitionGroup() {
79968
79541
  }, "transitionGroup")
79969
79542
  };
79970
- Transition.propTypes = process.env.NODE_ENV !== "production" ? {
79543
+ Transition.propTypes = production !== "production" ? {
79971
79544
  /**
79972
79545
  * A `function` child can be used instead of a React element. This function is
79973
79546
  * called with the current transition status (`'entering'`, `'entered'`,
@@ -80297,7 +79870,7 @@ Transition$1.default = _default;
80297
79870
  CSSTransition2.defaultProps = {
80298
79871
  classNames: ""
80299
79872
  };
80300
- CSSTransition2.propTypes = process.env.NODE_ENV !== "production" ? _extends2({}, _Transition2.default.propTypes, {
79873
+ CSSTransition2.propTypes = production !== "production" ? _extends2({}, _Transition2.default.propTypes, {
80301
79874
  /**
80302
79875
  * The animation classNames applied to the component as it enters, exits or
80303
79876
  * has finished the transition. A single name can be provided and it will be
@@ -80660,7 +80233,7 @@ __name(getNextChildMapping, "getNextChildMapping");
80660
80233
  TransitionGroup2.childContextTypes = {
80661
80234
  transitionGroup: _propTypes2.default.object.isRequired
80662
80235
  };
80663
- TransitionGroup2.propTypes = process.env.NODE_ENV !== "production" ? {
80236
+ TransitionGroup2.propTypes = production !== "production" ? {
80664
80237
  /**
80665
80238
  * `<TransitionGroup>` renders a `<div>` by default. You can change this
80666
80239
  * behavior by providing a `component` prop.
@@ -80831,7 +80404,7 @@ var TransitionGroupExports = TransitionGroup.exports;
80831
80404
  }, "render");
80832
80405
  return ReplaceTransition3;
80833
80406
  }(_react3.default.Component);
80834
- ReplaceTransition2.propTypes = process.env.NODE_ENV !== "production" ? {
80407
+ ReplaceTransition2.propTypes = production !== "production" ? {
80835
80408
  in: _propTypes2.default.bool.isRequired,
80836
80409
  children: /* @__PURE__ */ __name(function children(props, propName) {
80837
80410
  if (_react3.default.Children.count(props[propName]) !== 2)