@teselagen/ove 0.3.24 → 0.3.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.cjs.js CHANGED
@@ -1336,14 +1336,14 @@ function orderModifiers(modifiers2) {
1336
1336
  }, []);
1337
1337
  }
1338
1338
  __name(orderModifiers, "orderModifiers");
1339
- function debounce$3(fn3) {
1339
+ function debounce$3(fn4) {
1340
1340
  var pending;
1341
1341
  return function() {
1342
1342
  if (!pending) {
1343
1343
  pending = new Promise(function(resolve) {
1344
1344
  Promise.resolve().then(function() {
1345
1345
  pending = void 0;
1346
- resolve(fn3());
1346
+ resolve(fn4());
1347
1347
  });
1348
1348
  });
1349
1349
  }
@@ -1447,9 +1447,9 @@ function popperGenerator(generatorOptions) {
1447
1447
  index2 = -1;
1448
1448
  continue;
1449
1449
  }
1450
- var _state$orderedModifie = state2.orderedModifiers[index2], fn3 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
1451
- if (typeof fn3 === "function") {
1452
- state2 = fn3({
1450
+ var _state$orderedModifie = state2.orderedModifiers[index2], fn4 = _state$orderedModifie.fn, _state$orderedModifie2 = _state$orderedModifie.options, _options = _state$orderedModifie2 === void 0 ? {} : _state$orderedModifie2, name2 = _state$orderedModifie.name;
1451
+ if (typeof fn4 === "function") {
1452
+ state2 = fn4({
1453
1453
  state: state2,
1454
1454
  options: _options,
1455
1455
  name: name2,
@@ -1497,8 +1497,8 @@ function popperGenerator(generatorOptions) {
1497
1497
  }
1498
1498
  __name(runModifierEffects, "runModifierEffects");
1499
1499
  function cleanupModifierEffects() {
1500
- effectCleanupFns.forEach(function(fn3) {
1501
- return fn3();
1500
+ effectCleanupFns.forEach(function(fn4) {
1501
+ return fn4();
1502
1502
  });
1503
1503
  effectCleanupFns = [];
1504
1504
  }
@@ -1540,15 +1540,15 @@ function invokeWithArgsOrReturn(value, args) {
1540
1540
  return typeof value === "function" ? value.apply(void 0, args) : value;
1541
1541
  }
1542
1542
  __name(invokeWithArgsOrReturn, "invokeWithArgsOrReturn");
1543
- function debounce$2(fn3, ms) {
1543
+ function debounce$2(fn4, ms) {
1544
1544
  if (ms === 0) {
1545
- return fn3;
1545
+ return fn4;
1546
1546
  }
1547
1547
  var timeout;
1548
1548
  return function(arg) {
1549
1549
  clearTimeout(timeout);
1550
1550
  timeout = setTimeout(function() {
1551
- fn3(arg);
1551
+ fn4(arg);
1552
1552
  }, ms);
1553
1553
  };
1554
1554
  }
@@ -2380,7 +2380,7 @@ function createTippy(reference2, passedProps) {
2380
2380
  enabled: true,
2381
2381
  phase: "beforeWrite",
2382
2382
  requires: ["computeStyles"],
2383
- fn: /* @__PURE__ */ __name(function fn3(_ref2) {
2383
+ fn: /* @__PURE__ */ __name(function fn4(_ref2) {
2384
2384
  var state3 = _ref2.state;
2385
2385
  if (getIsDefaultRenderFn()) {
2386
2386
  var _getDefaultTemplateCh = getDefaultTemplateChildren(), box2 = _getDefaultTemplateCh.box;
@@ -2754,11 +2754,174 @@ Object.assign({}, applyStyles$1, {
2754
2754
  }
2755
2755
  }, "effect")
2756
2756
  });
2757
+ var mouseCoords = {
2758
+ clientX: 0,
2759
+ clientY: 0
2760
+ };
2761
+ var activeInstances = [];
2762
+ function storeMouseCoords(_ref) {
2763
+ var clientX = _ref.clientX, clientY = _ref.clientY;
2764
+ mouseCoords = {
2765
+ clientX,
2766
+ clientY
2767
+ };
2768
+ }
2769
+ __name(storeMouseCoords, "storeMouseCoords");
2770
+ function addMouseCoordsListener(doc) {
2771
+ doc.addEventListener("mousemove", storeMouseCoords);
2772
+ }
2773
+ __name(addMouseCoordsListener, "addMouseCoordsListener");
2774
+ function removeMouseCoordsListener(doc) {
2775
+ doc.removeEventListener("mousemove", storeMouseCoords);
2776
+ }
2777
+ __name(removeMouseCoordsListener, "removeMouseCoordsListener");
2778
+ var followCursor = {
2779
+ name: "followCursor",
2780
+ defaultValue: false,
2781
+ fn: /* @__PURE__ */ __name(function fn2(instance) {
2782
+ var reference2 = instance.reference;
2783
+ var doc = getOwnerDocument(instance.props.triggerTarget || reference2);
2784
+ var isInternalUpdate = false;
2785
+ var wasFocusEvent = false;
2786
+ var isUnmounted = true;
2787
+ var prevProps = instance.props;
2788
+ function getIsInitialBehavior() {
2789
+ return instance.props.followCursor === "initial" && instance.state.isVisible;
2790
+ }
2791
+ __name(getIsInitialBehavior, "getIsInitialBehavior");
2792
+ function addListener() {
2793
+ doc.addEventListener("mousemove", onMouseMove);
2794
+ }
2795
+ __name(addListener, "addListener");
2796
+ function removeListener() {
2797
+ doc.removeEventListener("mousemove", onMouseMove);
2798
+ }
2799
+ __name(removeListener, "removeListener");
2800
+ function unsetGetReferenceClientRect() {
2801
+ isInternalUpdate = true;
2802
+ instance.setProps({
2803
+ getReferenceClientRect: null
2804
+ });
2805
+ isInternalUpdate = false;
2806
+ }
2807
+ __name(unsetGetReferenceClientRect, "unsetGetReferenceClientRect");
2808
+ function onMouseMove(event) {
2809
+ var isCursorOverReference = event.target ? reference2.contains(event.target) : true;
2810
+ var followCursor2 = instance.props.followCursor;
2811
+ var clientX = event.clientX, clientY = event.clientY;
2812
+ var rect = reference2.getBoundingClientRect();
2813
+ var relativeX = clientX - rect.left;
2814
+ var relativeY = clientY - rect.top;
2815
+ if (isCursorOverReference || !instance.props.interactive) {
2816
+ instance.setProps({
2817
+ // @ts-ignore - unneeded DOMRect properties
2818
+ getReferenceClientRect: /* @__PURE__ */ __name(function getReferenceClientRect() {
2819
+ var rect2 = reference2.getBoundingClientRect();
2820
+ var x = clientX;
2821
+ var y2 = clientY;
2822
+ if (followCursor2 === "initial") {
2823
+ x = rect2.left + relativeX;
2824
+ y2 = rect2.top + relativeY;
2825
+ }
2826
+ var top2 = followCursor2 === "horizontal" ? rect2.top : y2;
2827
+ var right2 = followCursor2 === "vertical" ? rect2.right : x;
2828
+ var bottom2 = followCursor2 === "horizontal" ? rect2.bottom : y2;
2829
+ var left2 = followCursor2 === "vertical" ? rect2.left : x;
2830
+ return {
2831
+ width: right2 - left2,
2832
+ height: bottom2 - top2,
2833
+ top: top2,
2834
+ right: right2,
2835
+ bottom: bottom2,
2836
+ left: left2
2837
+ };
2838
+ }, "getReferenceClientRect")
2839
+ });
2840
+ }
2841
+ }
2842
+ __name(onMouseMove, "onMouseMove");
2843
+ function create7() {
2844
+ if (instance.props.followCursor) {
2845
+ activeInstances.push({
2846
+ instance,
2847
+ doc
2848
+ });
2849
+ addMouseCoordsListener(doc);
2850
+ }
2851
+ }
2852
+ __name(create7, "create");
2853
+ function destroy2() {
2854
+ activeInstances = activeInstances.filter(function(data) {
2855
+ return data.instance !== instance;
2856
+ });
2857
+ if (activeInstances.filter(function(data) {
2858
+ return data.doc === doc;
2859
+ }).length === 0) {
2860
+ removeMouseCoordsListener(doc);
2861
+ }
2862
+ }
2863
+ __name(destroy2, "destroy");
2864
+ return {
2865
+ onCreate: create7,
2866
+ onDestroy: destroy2,
2867
+ onBeforeUpdate: /* @__PURE__ */ __name(function onBeforeUpdate2() {
2868
+ prevProps = instance.props;
2869
+ }, "onBeforeUpdate"),
2870
+ onAfterUpdate: /* @__PURE__ */ __name(function onAfterUpdate2(_2, _ref2) {
2871
+ var followCursor2 = _ref2.followCursor;
2872
+ if (isInternalUpdate) {
2873
+ return;
2874
+ }
2875
+ if (followCursor2 !== void 0 && prevProps.followCursor !== followCursor2) {
2876
+ destroy2();
2877
+ if (followCursor2) {
2878
+ create7();
2879
+ if (instance.state.isMounted && !wasFocusEvent && !getIsInitialBehavior()) {
2880
+ addListener();
2881
+ }
2882
+ } else {
2883
+ removeListener();
2884
+ unsetGetReferenceClientRect();
2885
+ }
2886
+ }
2887
+ }, "onAfterUpdate"),
2888
+ onMount: /* @__PURE__ */ __name(function onMount2() {
2889
+ if (instance.props.followCursor && !wasFocusEvent) {
2890
+ if (isUnmounted) {
2891
+ onMouseMove(mouseCoords);
2892
+ isUnmounted = false;
2893
+ }
2894
+ if (!getIsInitialBehavior()) {
2895
+ addListener();
2896
+ }
2897
+ }
2898
+ }, "onMount"),
2899
+ onTrigger: /* @__PURE__ */ __name(function onTrigger2(_2, event) {
2900
+ if (isMouseEvent$1(event)) {
2901
+ mouseCoords = {
2902
+ clientX: event.clientX,
2903
+ clientY: event.clientY
2904
+ };
2905
+ }
2906
+ wasFocusEvent = event.type === "focus";
2907
+ }, "onTrigger"),
2908
+ onHidden: /* @__PURE__ */ __name(function onHidden2() {
2909
+ if (instance.props.followCursor) {
2910
+ unsetGetReferenceClientRect();
2911
+ removeListener();
2912
+ isUnmounted = true;
2913
+ }
2914
+ }, "onHidden")
2915
+ };
2916
+ }, "fn")
2917
+ };
2757
2918
  tippy$1.setDefaultProps({
2758
2919
  render: render$1
2759
2920
  });
2760
2921
  const tippy = "";
2761
2922
  let tippys = [];
2923
+ let recentlyHidden = false;
2924
+ let clearMe;
2762
2925
  (function() {
2763
2926
  let lastMouseOverElement = null;
2764
2927
  document.addEventListener("mouseover", function(event) {
@@ -2779,21 +2942,63 @@ let tippys = [];
2779
2942
  lastMouseOverElement = element2;
2780
2943
  const id2 = "tippyEllipsizedEl";
2781
2944
  let innerRun = false;
2782
- const inner2 = /* @__PURE__ */ __name((content2, el2) => {
2945
+ const inner2 = /* @__PURE__ */ __name((content2, el2, { dataTitle, dataAvoid, dataAvoidBackup }) => {
2946
+ var _a3, _b3;
2783
2947
  innerRun = true;
2784
2948
  document.querySelectorAll(`.${id2}`).forEach((elem) => {
2785
2949
  elem.classList.remove(id2);
2786
2950
  });
2787
2951
  el2.classList.add(id2);
2788
- const inst = tippy$1(`.${id2}`, {
2952
+ const inst = tippy$1(`.${id2}`, __spreadValues(__spreadProps(__spreadValues({
2953
+ plugins: [followCursor],
2789
2954
  content: content2,
2790
- delay: [0, 0],
2955
+ delay: dataTitle && !recentlyHidden ? [1300, 1300] : dataTitle ? [150, 150] : [0, 0],
2791
2956
  allowHTML: true
2792
- });
2957
+ }, dataTitle && {
2958
+ followCursor: dataTitle ? "initial" : false
2959
+ }), {
2960
+ onHidden() {
2961
+ recentlyHidden = true;
2962
+ clearMe && clearTimeout(clearMe);
2963
+ clearMe = setTimeout(() => {
2964
+ if (tippys.length === 0)
2965
+ recentlyHidden = false;
2966
+ }, 700);
2967
+ }
2968
+ }), dataAvoid && {
2969
+ popperOptions: {
2970
+ modifiers: [
2971
+ {
2972
+ name: "myModifier",
2973
+ enabled: true,
2974
+ phase: "beforeWrite",
2975
+ requires: ["computeStyles"],
2976
+ requiresIfExists: ["offset"],
2977
+ fn({ state: state2 }) {
2978
+ const customBoundary = document.querySelector(dataAvoid) || document.querySelector(dataAvoidBackup);
2979
+ if (!customBoundary)
2980
+ return;
2981
+ const a2 = customBoundary.getBoundingClientRect();
2982
+ if (a2.top < state2.rects.reference.y) {
2983
+ const b3 = Math.abs(
2984
+ Math.abs(a2.top - state2.rects.reference.y) - 10
2985
+ );
2986
+ state2.styles.popper.bottom = b3 + "px";
2987
+ }
2988
+ }
2989
+ }
2990
+ ]
2991
+ }
2992
+ }));
2993
+ if (dataTitle) {
2994
+ (_b3 = (_a3 = inst[0]) == null ? void 0 : _a3.popper) == null ? void 0 : _b3.classList.add("isDataTitle");
2995
+ }
2793
2996
  clearOldTippys(...inst);
2794
- inst.forEach((i) => {
2795
- i.show();
2796
- });
2997
+ if (!dataTitle) {
2998
+ inst.forEach((i) => {
2999
+ i.show();
3000
+ });
3001
+ }
2797
3002
  tippys = [...tippys, ...inst];
2798
3003
  if (content2 === el2.getAttribute("title")) {
2799
3004
  el2.removeAttribute("title");
@@ -2808,14 +3013,22 @@ let tippys = [];
2808
3013
  const style2 = window.getComputedStyle(el);
2809
3014
  const whiteSpace = style2.getPropertyValue("white-space");
2810
3015
  const textOverflow = style2.getPropertyValue("text-overflow");
2811
- dataTip = el.getAttribute("data-tip");
3016
+ const dataTitle = el.getAttribute("data-title");
3017
+ const dataAvoid = el.getAttribute("data-avoid");
3018
+ const dataAvoidBackup = el.getAttribute("data-avoid-backup");
3019
+ dataTip = el.getAttribute("data-tip") || dataTitle;
2812
3020
  const isEllipsized = whiteSpace === "nowrap" && textOverflow === "ellipsis";
3021
+ const opts2 = {
3022
+ dataTitle,
3023
+ dataAvoid,
3024
+ dataAvoidBackup
3025
+ };
2813
3026
  if (dataTip) {
2814
- inner2(dataTip, el);
3027
+ inner2(dataTip, el, opts2);
2815
3028
  break;
2816
3029
  } else if (isEllipsized && el.offsetWidth < el.scrollWidth - 4 && //the -4 is adding a teeny bit of tolerance to fix issues with the column headers getting tooltips even when fully visible
2817
3030
  !el.classList.contains("no-data-tip") && el.textContent && ((_b2 = (_a2 = el.textContent) == null ? void 0 : _a2.trim) == null ? void 0 : _b2.call(_a2).length) !== 0) {
2818
- inner2(el.textContent, el);
3031
+ inner2(el.textContent, el, opts2);
2819
3032
  break;
2820
3033
  } else if (isEllipsized && el.offsetWidth >= el.scrollWidth)
2821
3034
  ;
@@ -2879,13 +3092,13 @@ function getAugmentedNamespace(n2) {
2879
3092
  }
2880
3093
  __name(getAugmentedNamespace, "getAugmentedNamespace");
2881
3094
  var axios$3 = { exports: {} };
2882
- var bind$5 = /* @__PURE__ */ __name(function bind(fn3, thisArg) {
3095
+ var bind$5 = /* @__PURE__ */ __name(function bind(fn4, thisArg) {
2883
3096
  return /* @__PURE__ */ __name(function wrap2() {
2884
3097
  var args = new Array(arguments.length);
2885
3098
  for (var i = 0; i < args.length; i++) {
2886
3099
  args[i] = arguments[i];
2887
3100
  }
2888
- return fn3.apply(thisArg, args);
3101
+ return fn4.apply(thisArg, args);
2889
3102
  }, "wrap");
2890
3103
  }, "bind");
2891
3104
  var bind$4 = bind$5;
@@ -2975,7 +3188,7 @@ function isStandardBrowserEnv() {
2975
3188
  return typeof window !== "undefined" && typeof document !== "undefined";
2976
3189
  }
2977
3190
  __name(isStandardBrowserEnv, "isStandardBrowserEnv");
2978
- function forEach$5(obj, fn3) {
3191
+ function forEach$5(obj, fn4) {
2979
3192
  if (obj === null || typeof obj === "undefined") {
2980
3193
  return;
2981
3194
  }
@@ -2984,12 +3197,12 @@ function forEach$5(obj, fn3) {
2984
3197
  }
2985
3198
  if (isArray$r(obj)) {
2986
3199
  for (var i = 0, l2 = obj.length; i < l2; i++) {
2987
- fn3.call(null, obj[i], i, obj);
3200
+ fn4.call(null, obj[i], i, obj);
2988
3201
  }
2989
3202
  } else {
2990
3203
  for (var key in obj) {
2991
3204
  if (Object.prototype.hasOwnProperty.call(obj, key)) {
2992
- fn3.call(null, obj[key], key, obj);
3205
+ fn4.call(null, obj[key], key, obj);
2993
3206
  }
2994
3207
  }
2995
3208
  }
@@ -3121,10 +3334,10 @@ InterceptorManager$1.prototype.eject = /* @__PURE__ */ __name(function eject(id2
3121
3334
  this.handlers[id2] = null;
3122
3335
  }
3123
3336
  }, "eject");
3124
- InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn3) {
3337
+ InterceptorManager$1.prototype.forEach = /* @__PURE__ */ __name(function forEach(fn4) {
3125
3338
  utils$e.forEach(this.handlers, /* @__PURE__ */ __name(function forEachHandler(h2) {
3126
3339
  if (h2 !== null) {
3127
- fn3(h2);
3340
+ fn4(h2);
3128
3341
  }
3129
3342
  }, "forEachHandler"));
3130
3343
  }, "forEach");
@@ -3645,8 +3858,8 @@ var utils$b = utils$g;
3645
3858
  var defaults$5 = defaults_1;
3646
3859
  var transformData$1 = /* @__PURE__ */ __name(function transformData(data, headers, fns) {
3647
3860
  var context = this || defaults$5;
3648
- utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn3) {
3649
- data = fn3.call(context, data, headers);
3861
+ utils$b.forEach(fns, /* @__PURE__ */ __name(function transform3(fn4) {
3862
+ data = fn4.call(context, data, headers);
3650
3863
  }, "transform"));
3651
3864
  return data;
3652
3865
  }, "transformData");
@@ -4939,9 +5152,9 @@ function composeEventHandlers() {
4939
5152
  for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
4940
5153
  args[_key2 - 1] = arguments[_key2];
4941
5154
  }
4942
- return fns.some(function(fn3) {
4943
- if (!isPropagationStopped(event) && fn3) {
4944
- fn3.apply(void 0, [event].concat(args));
5155
+ return fns.some(function(fn4) {
5156
+ if (!isPropagationStopped(event) && fn4) {
5157
+ fn4.apply(void 0, [event].concat(args));
4945
5158
  }
4946
5159
  return isPropagationStopped(event);
4947
5160
  });
@@ -5558,14 +5771,14 @@ function useDropzone() {
5558
5771
  openFileDialog();
5559
5772
  }
5560
5773
  }, [inputRef, noClick, openFileDialog]);
5561
- var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn3) {
5562
- return disabled ? null : fn3;
5774
+ var composeHandler = /* @__PURE__ */ __name(function composeHandler2(fn4) {
5775
+ return disabled ? null : fn4;
5563
5776
  }, "composeHandler");
5564
- var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn3) {
5565
- return noKeyboard ? null : composeHandler(fn3);
5777
+ var composeKeyboardHandler = /* @__PURE__ */ __name(function composeKeyboardHandler2(fn4) {
5778
+ return noKeyboard ? null : composeHandler(fn4);
5566
5779
  }, "composeKeyboardHandler");
5567
- var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn3) {
5568
- return noDrag ? null : composeHandler(fn3);
5780
+ var composeDragHandler = /* @__PURE__ */ __name(function composeDragHandler2(fn4) {
5781
+ return noDrag ? null : composeHandler(fn4);
5569
5782
  }, "composeDragHandler");
5570
5783
  var stopPropagation2 = /* @__PURE__ */ __name(function stopPropagation3(event) {
5571
5784
  if (noDragEventsBubbling) {
@@ -6507,8 +6720,8 @@ function once(func) {
6507
6720
  __name(once, "once");
6508
6721
  var noop$5 = /* @__PURE__ */ __name(function noop() {
6509
6722
  }, "noop");
6510
- function isFunction$7(fn3) {
6511
- return typeof fn3 === "function";
6723
+ function isFunction$7(fn4) {
6724
+ return typeof fn4 === "function";
6512
6725
  }
6513
6726
  __name(isFunction$7, "isFunction$7");
6514
6727
  function isStringish(value) {
@@ -6604,10 +6817,10 @@ var ownKeys$7 = typeof Reflect !== "undefined" && Reflect.ownKeys ? Reflect.ownK
6604
6817
  /* istanbul ignore next */
6605
6818
  Object.getOwnPropertyNames
6606
6819
  );
6607
- function toPrimitive$3(value) {
6820
+ function toPrimitive$2(value) {
6608
6821
  return value === null ? null : typeof value === "object" ? "" + value : value;
6609
6822
  }
6610
- __name(toPrimitive$3, "toPrimitive$3");
6823
+ __name(toPrimitive$2, "toPrimitive$2");
6611
6824
  function hasProp(target, prop2) {
6612
6825
  return objectPrototype$1.hasOwnProperty.call(target, prop2);
6613
6826
  }
@@ -7314,12 +7527,12 @@ var tmpNameDescriptor = {
7314
7527
  writable: false,
7315
7528
  enumerable: false
7316
7529
  };
7317
- function createAction$1(actionName, fn3, autoAction2, ref) {
7530
+ function createAction$1(actionName, fn4, autoAction2, ref) {
7318
7531
  if (autoAction2 === void 0) {
7319
7532
  autoAction2 = false;
7320
7533
  }
7321
7534
  function res() {
7322
- return executeAction(actionName, autoAction2, fn3, ref || this, arguments);
7535
+ return executeAction(actionName, autoAction2, fn4, ref || this, arguments);
7323
7536
  }
7324
7537
  __name(res, "res");
7325
7538
  res.isMobxAction = true;
@@ -7330,10 +7543,10 @@ function createAction$1(actionName, fn3, autoAction2, ref) {
7330
7543
  return res;
7331
7544
  }
7332
7545
  __name(createAction$1, "createAction$1");
7333
- function executeAction(actionName, canRunAsDerivation, fn3, scope, args) {
7546
+ function executeAction(actionName, canRunAsDerivation, fn4, scope, args) {
7334
7547
  var runInfo = _startAction(actionName, canRunAsDerivation);
7335
7548
  try {
7336
- return fn3.apply(scope, args);
7549
+ return fn4.apply(scope, args);
7337
7550
  } catch (err2) {
7338
7551
  runInfo.error_ = err2;
7339
7552
  throw err2;
@@ -7504,7 +7717,7 @@ var ObservableValue = /* @__PURE__ */ function(_Atom) {
7504
7717
  return this.name_ + "[" + this.value_ + "]";
7505
7718
  }, "toString");
7506
7719
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7507
- return toPrimitive$3(this.get());
7720
+ return toPrimitive$2(this.get());
7508
7721
  }, "valueOf");
7509
7722
  _proto[_Symbol$toPrimitive] = function() {
7510
7723
  return this.valueOf();
@@ -7689,7 +7902,7 @@ var ComputedValue = /* @__PURE__ */ function() {
7689
7902
  return this.name_ + "[" + this.derivation.toString() + "]";
7690
7903
  }, "toString");
7691
7904
  _proto.valueOf = /* @__PURE__ */ __name(function valueOf() {
7692
- return toPrimitive$3(this.get());
7905
+ return toPrimitive$2(this.get());
7693
7906
  }, "valueOf");
7694
7907
  _proto[_Symbol$toPrimitive$1] = function() {
7695
7908
  return this.valueOf();
@@ -8118,7 +8331,7 @@ var Reaction = /* @__PURE__ */ function() {
8118
8331
  endBatch();
8119
8332
  }
8120
8333
  }, "runReaction_");
8121
- _proto.track = /* @__PURE__ */ __name(function track2(fn3) {
8334
+ _proto.track = /* @__PURE__ */ __name(function track2(fn4) {
8122
8335
  if (this.isDisposed_) {
8123
8336
  return;
8124
8337
  }
@@ -8126,7 +8339,7 @@ var Reaction = /* @__PURE__ */ function() {
8126
8339
  this.isRunning_ = true;
8127
8340
  var prevReaction = globalState.trackingContext;
8128
8341
  globalState.trackingContext = this;
8129
- var result = trackDerivedFunction(this, fn3, void 0);
8342
+ var result = trackDerivedFunction(this, fn4, void 0);
8130
8343
  globalState.trackingContext = prevReaction;
8131
8344
  this.isRunning_ = false;
8132
8345
  this.isTrackPending_ = false;
@@ -8211,10 +8424,10 @@ function runReactionsHelper() {
8211
8424
  }
8212
8425
  __name(runReactionsHelper, "runReactionsHelper");
8213
8426
  var isReaction = /* @__PURE__ */ createInstanceofPredicate("Reaction", Reaction);
8214
- function setReactionScheduler(fn3) {
8427
+ function setReactionScheduler(fn4) {
8215
8428
  var baseScheduler = reactionScheduler;
8216
8429
  reactionScheduler = /* @__PURE__ */ __name(function reactionScheduler3(f2) {
8217
- return fn3(function() {
8430
+ return fn4(function() {
8218
8431
  return baseScheduler(f2);
8219
8432
  });
8220
8433
  }, "reactionScheduler");
@@ -8525,8 +8738,8 @@ function cancelPromise(promise) {
8525
8738
  }
8526
8739
  }
8527
8740
  __name(cancelPromise, "cancelPromise");
8528
- function isFlow(fn3) {
8529
- return (fn3 == null ? void 0 : fn3.isMobXFlow) === true;
8741
+ function isFlow(fn4) {
8742
+ return (fn4 == null ? void 0 : fn4.isMobXFlow) === true;
8530
8743
  }
8531
8744
  __name(isFlow, "isFlow");
8532
8745
  function _isObservable(value, property2) {
@@ -10209,9 +10422,9 @@ var LegacyObservableArray = /* @__PURE__ */ function(_StubArray, _Symbol$toStrin
10209
10422
  return LegacyObservableArray2;
10210
10423
  }(StubArray, Symbol.toStringTag, Symbol.iterator);
10211
10424
  Object.entries(arrayExtensions).forEach(function(_ref) {
10212
- var prop2 = _ref[0], fn3 = _ref[1];
10425
+ var prop2 = _ref[0], fn4 = _ref[1];
10213
10426
  if (prop2 !== "concat") {
10214
- addHiddenProp(LegacyObservableArray.prototype, prop2, fn3);
10427
+ addHiddenProp(LegacyObservableArray.prototype, prop2, fn4);
10215
10428
  }
10216
10429
  });
10217
10430
  function createArrayEntryDescriptor(index2) {
@@ -10860,13 +11073,13 @@ function wrapper(realMethod, mixins) {
10860
11073
  }
10861
11074
  __name(wrapper, "wrapper");
10862
11075
  function wrapFunction(realMethod, mixins) {
10863
- var fn3 = /* @__PURE__ */ __name(function fn4() {
11076
+ var fn4 = /* @__PURE__ */ __name(function fn5() {
10864
11077
  for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
10865
11078
  args[_key2] = arguments[_key2];
10866
11079
  }
10867
11080
  wrapper.call.apply(wrapper, [this, realMethod, mixins].concat(args));
10868
11081
  }, "fn");
10869
- return fn3;
11082
+ return fn4;
10870
11083
  }
10871
11084
  __name(wrapFunction, "wrapFunction");
10872
11085
  function patch$2(target, methodName, mixinMethod) {
@@ -11547,12 +11760,12 @@ var un = function() {
11547
11760
  return o2(n3, t2);
11548
11761
  });
11549
11762
  }, e2;
11550
- }(), an = new un(), fn2 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11763
+ }(), an = new un(), fn3 = an.produce, cn = an.produceWithPatches.bind(an), sn = an.setAutoFreeze.bind(an);
11551
11764
  an.setUseProxies.bind(an);
11552
11765
  var pn = an.applyPatches.bind(an);
11553
11766
  an.createDraft.bind(an);
11554
11767
  an.finishDraft.bind(an);
11555
- const immer = fn2;
11768
+ const immer = fn3;
11556
11769
  const UploadCsvWizard = "";
11557
11770
  var lodash = { exports: {} };
11558
11771
  /**
@@ -12323,7 +12536,7 @@ lodash.exports;
12323
12536
  "^" + funcToString2.call(hasOwnProperty2).replace(reRegExpChar2, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
12324
12537
  );
12325
12538
  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;
12326
- var defineProperty6 = function() {
12539
+ var defineProperty5 = function() {
12327
12540
  try {
12328
12541
  var func = getNative2(Object2, "defineProperty");
12329
12542
  func({}, "", {});
@@ -12763,8 +12976,8 @@ lodash.exports;
12763
12976
  }
12764
12977
  __name(baseAssignIn2, "baseAssignIn");
12765
12978
  function baseAssignValue2(object3, key, value) {
12766
- if (key == "__proto__" && defineProperty6) {
12767
- defineProperty6(object3, key, {
12979
+ if (key == "__proto__" && defineProperty5) {
12980
+ defineProperty5(object3, key, {
12768
12981
  "configurable": true,
12769
12982
  "enumerable": true,
12770
12983
  "value": value,
@@ -13497,8 +13710,8 @@ lodash.exports;
13497
13710
  metaMap.set(func, data);
13498
13711
  return func;
13499
13712
  };
13500
- var baseSetToString2 = !defineProperty6 ? identity4 : function(func, string2) {
13501
- return defineProperty6(func, "toString", {
13713
+ var baseSetToString2 = !defineProperty5 ? identity4 : function(func, string2) {
13714
+ return defineProperty5(func, "toString", {
13502
13715
  "configurable": true,
13503
13716
  "enumerable": false,
13504
13717
  "value": constant2(string2),
@@ -13931,8 +14144,8 @@ lodash.exports;
13931
14144
  function createBind(func, bitmask, thisArg) {
13932
14145
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
13933
14146
  function wrapper2() {
13934
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
13935
- return fn3.apply(isBind ? thisArg : this, arguments);
14147
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14148
+ return fn4.apply(isBind ? thisArg : this, arguments);
13936
14149
  }
13937
14150
  __name(wrapper2, "wrapper");
13938
14151
  return wrapper2;
@@ -14003,8 +14216,8 @@ lodash.exports;
14003
14216
  arity - length
14004
14217
  );
14005
14218
  }
14006
- var fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14007
- return apply2(fn3, this, args);
14219
+ var fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14220
+ return apply2(fn4, this, args);
14008
14221
  }
14009
14222
  __name(wrapper2, "wrapper");
14010
14223
  return wrapper2;
@@ -14096,7 +14309,7 @@ lodash.exports;
14096
14309
  arity - length
14097
14310
  );
14098
14311
  }
14099
- var thisBinding = isBind ? thisArg : this, fn3 = isBindKey ? thisBinding[func] : func;
14312
+ var thisBinding = isBind ? thisArg : this, fn4 = isBindKey ? thisBinding[func] : func;
14100
14313
  length = args.length;
14101
14314
  if (argPos) {
14102
14315
  args = reorder2(args, argPos);
@@ -14107,9 +14320,9 @@ lodash.exports;
14107
14320
  args.length = ary2;
14108
14321
  }
14109
14322
  if (this && this !== root2 && this instanceof wrapper2) {
14110
- fn3 = Ctor || createCtor(fn3);
14323
+ fn4 = Ctor || createCtor(fn4);
14111
14324
  }
14112
- return fn3.apply(thisBinding, args);
14325
+ return fn4.apply(thisBinding, args);
14113
14326
  }
14114
14327
  __name(wrapper2, "wrapper");
14115
14328
  return wrapper2;
@@ -14172,14 +14385,14 @@ lodash.exports;
14172
14385
  function createPartial(func, bitmask, thisArg, partials) {
14173
14386
  var isBind = bitmask & WRAP_BIND_FLAG, Ctor = createCtor(func);
14174
14387
  function wrapper2() {
14175
- var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn3 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14388
+ var argsIndex = -1, argsLength = arguments.length, leftIndex = -1, leftLength = partials.length, args = Array2(leftLength + argsLength), fn4 = this && this !== root2 && this instanceof wrapper2 ? Ctor : func;
14176
14389
  while (++leftIndex < leftLength) {
14177
14390
  args[leftIndex] = partials[leftIndex];
14178
14391
  }
14179
14392
  while (argsLength--) {
14180
14393
  args[leftIndex++] = arguments[++argsIndex];
14181
14394
  }
14182
- return apply2(fn3, isBind ? thisArg : this, args);
14395
+ return apply2(fn4, isBind ? thisArg : this, args);
14183
14396
  }
14184
14397
  __name(wrapper2, "wrapper");
14185
14398
  return wrapper2;
@@ -17984,26 +18197,26 @@ var _aFunction = /* @__PURE__ */ __name(function(it) {
17984
18197
  return it;
17985
18198
  }, "_aFunction");
17986
18199
  var aFunction = _aFunction;
17987
- var _ctx = /* @__PURE__ */ __name(function(fn3, that, length) {
17988
- aFunction(fn3);
18200
+ var _ctx = /* @__PURE__ */ __name(function(fn4, that, length) {
18201
+ aFunction(fn4);
17989
18202
  if (that === void 0)
17990
- return fn3;
18203
+ return fn4;
17991
18204
  switch (length) {
17992
18205
  case 1:
17993
18206
  return function(a2) {
17994
- return fn3.call(that, a2);
18207
+ return fn4.call(that, a2);
17995
18208
  };
17996
18209
  case 2:
17997
18210
  return function(a2, b3) {
17998
- return fn3.call(that, a2, b3);
18211
+ return fn4.call(that, a2, b3);
17999
18212
  };
18000
18213
  case 3:
18001
18214
  return function(a2, b3, c2) {
18002
- return fn3.call(that, a2, b3, c2);
18215
+ return fn4.call(that, a2, b3, c2);
18003
18216
  };
18004
18217
  }
18005
18218
  return function() {
18006
- return fn3.apply(that, arguments);
18219
+ return fn4.apply(that, arguments);
18007
18220
  };
18008
18221
  }, "_ctx");
18009
18222
  var _objectDp = {};
@@ -18023,11 +18236,20 @@ var _fails = /* @__PURE__ */ __name(function(exec) {
18023
18236
  return true;
18024
18237
  }
18025
18238
  }, "_fails");
18026
- var _descriptors = !_fails(function() {
18027
- return Object.defineProperty({}, "a", { get: function() {
18028
- return 7;
18029
- } }).a != 7;
18030
- });
18239
+ var _descriptors;
18240
+ var hasRequired_descriptors;
18241
+ function require_descriptors() {
18242
+ if (hasRequired_descriptors)
18243
+ return _descriptors;
18244
+ hasRequired_descriptors = 1;
18245
+ _descriptors = !_fails(function() {
18246
+ return Object.defineProperty({}, "a", { get: function() {
18247
+ return 7;
18248
+ } }).a != 7;
18249
+ });
18250
+ return _descriptors;
18251
+ }
18252
+ __name(require_descriptors, "require_descriptors");
18031
18253
  var _domCreate;
18032
18254
  var hasRequired_domCreate;
18033
18255
  function require_domCreate() {
@@ -18043,43 +18265,60 @@ function require_domCreate() {
18043
18265
  return _domCreate;
18044
18266
  }
18045
18267
  __name(require_domCreate, "require_domCreate");
18046
- var _ie8DomDefine = !_descriptors && !_fails(function() {
18047
- return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18048
- return 7;
18049
- } }).a != 7;
18050
- });
18268
+ var _ie8DomDefine;
18269
+ var hasRequired_ie8DomDefine;
18270
+ function require_ie8DomDefine() {
18271
+ if (hasRequired_ie8DomDefine)
18272
+ return _ie8DomDefine;
18273
+ hasRequired_ie8DomDefine = 1;
18274
+ _ie8DomDefine = !require_descriptors() && !_fails(function() {
18275
+ return Object.defineProperty(require_domCreate()("div"), "a", { get: function() {
18276
+ return 7;
18277
+ } }).a != 7;
18278
+ });
18279
+ return _ie8DomDefine;
18280
+ }
18281
+ __name(require_ie8DomDefine, "require_ie8DomDefine");
18051
18282
  var isObject$d = _isObject;
18052
18283
  var _toPrimitive$1 = /* @__PURE__ */ __name(function(it, S2) {
18053
18284
  if (!isObject$d(it))
18054
18285
  return it;
18055
- var fn3, val2;
18056
- if (S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18286
+ var fn4, val2;
18287
+ if (S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18057
18288
  return val2;
18058
- if (typeof (fn3 = it.valueOf) == "function" && !isObject$d(val2 = fn3.call(it)))
18289
+ if (typeof (fn4 = it.valueOf) == "function" && !isObject$d(val2 = fn4.call(it)))
18059
18290
  return val2;
18060
- if (!S2 && typeof (fn3 = it.toString) == "function" && !isObject$d(val2 = fn3.call(it)))
18291
+ if (!S2 && typeof (fn4 = it.toString) == "function" && !isObject$d(val2 = fn4.call(it)))
18061
18292
  return val2;
18062
18293
  throw TypeError("Can't convert object to primitive value");
18063
18294
  }, "_toPrimitive$1");
18064
- var anObject$5 = _anObject;
18065
- var IE8_DOM_DEFINE$1 = _ie8DomDefine;
18066
- var toPrimitive$2 = _toPrimitive$1;
18067
- var dP$3 = Object.defineProperty;
18068
- _objectDp.f = _descriptors ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty2(O2, P2, Attributes) {
18069
- anObject$5(O2);
18070
- P2 = toPrimitive$2(P2, true);
18071
- anObject$5(Attributes);
18072
- if (IE8_DOM_DEFINE$1)
18073
- try {
18074
- return dP$3(O2, P2, Attributes);
18075
- } catch (e2) {
18076
- }
18077
- if ("get" in Attributes || "set" in Attributes)
18078
- throw TypeError("Accessors not supported!");
18079
- if ("value" in Attributes)
18080
- O2[P2] = Attributes.value;
18081
- return O2;
18082
- }, "defineProperty");
18295
+ var hasRequired_objectDp;
18296
+ function require_objectDp() {
18297
+ if (hasRequired_objectDp)
18298
+ return _objectDp;
18299
+ hasRequired_objectDp = 1;
18300
+ var anObject2 = _anObject;
18301
+ var IE8_DOM_DEFINE2 = require_ie8DomDefine();
18302
+ var toPrimitive2 = _toPrimitive$1;
18303
+ var dP2 = Object.defineProperty;
18304
+ _objectDp.f = require_descriptors() ? Object.defineProperty : /* @__PURE__ */ __name(function defineProperty5(O2, P2, Attributes) {
18305
+ anObject2(O2);
18306
+ P2 = toPrimitive2(P2, true);
18307
+ anObject2(Attributes);
18308
+ if (IE8_DOM_DEFINE2)
18309
+ try {
18310
+ return dP2(O2, P2, Attributes);
18311
+ } catch (e2) {
18312
+ }
18313
+ if ("get" in Attributes || "set" in Attributes)
18314
+ throw TypeError("Accessors not supported!");
18315
+ if ("value" in Attributes)
18316
+ O2[P2] = Attributes.value;
18317
+ return O2;
18318
+ }, "defineProperty");
18319
+ return _objectDp;
18320
+ }
18321
+ __name(require_objectDp, "require_objectDp");
18083
18322
  var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18084
18323
  return {
18085
18324
  enumerable: !(bitmap & 1),
@@ -18088,9 +18327,9 @@ var _propertyDesc = /* @__PURE__ */ __name(function(bitmap, value) {
18088
18327
  value
18089
18328
  };
18090
18329
  }, "_propertyDesc");
18091
- var dP$2 = _objectDp;
18330
+ var dP$2 = require_objectDp();
18092
18331
  var createDesc$3 = _propertyDesc;
18093
- var _hide = _descriptors ? function(object3, key, value) {
18332
+ var _hide = require_descriptors() ? function(object3, key, value) {
18094
18333
  return dP$2.f(object3, key, createDesc$3(1, value));
18095
18334
  } : function(object3, key, value) {
18096
18335
  object3[key] = value;
@@ -18260,23 +18499,15 @@ var _objectKeysInternal = /* @__PURE__ */ __name(function(object3, names2) {
18260
18499
  return result;
18261
18500
  }, "_objectKeysInternal");
18262
18501
  var _enumBugKeys = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",");
18263
- var $keys$2 = _objectKeysInternal;
18502
+ var $keys$3 = _objectKeysInternal;
18264
18503
  var enumBugKeys$1 = _enumBugKeys;
18265
18504
  var _objectKeys = Object.keys || /* @__PURE__ */ __name(function keys(O2) {
18266
- return $keys$2(O2, enumBugKeys$1);
18505
+ return $keys$3(O2, enumBugKeys$1);
18267
18506
  }, "keys");
18268
18507
  var _objectGops = {};
18269
18508
  _objectGops.f = Object.getOwnPropertySymbols;
18270
18509
  var _objectPie = {};
18271
- var hasRequired_objectPie;
18272
- function require_objectPie() {
18273
- if (hasRequired_objectPie)
18274
- return _objectPie;
18275
- hasRequired_objectPie = 1;
18276
- _objectPie.f = {}.propertyIsEnumerable;
18277
- return _objectPie;
18278
- }
18279
- __name(require_objectPie, "require_objectPie");
18510
+ _objectPie.f = {}.propertyIsEnumerable;
18280
18511
  var defined$1 = _defined;
18281
18512
  var _toObject = /* @__PURE__ */ __name(function(it) {
18282
18513
  return Object(defined$1(it));
@@ -18287,10 +18518,10 @@ function require_objectAssign() {
18287
18518
  if (hasRequired_objectAssign)
18288
18519
  return _objectAssign;
18289
18520
  hasRequired_objectAssign = 1;
18290
- var DESCRIPTORS2 = _descriptors;
18521
+ var DESCRIPTORS2 = require_descriptors();
18291
18522
  var getKeys2 = _objectKeys;
18292
18523
  var gOPS2 = _objectGops;
18293
- var pIE2 = require_objectPie();
18524
+ var pIE2 = _objectPie;
18294
18525
  var toObject2 = _toObject;
18295
18526
  var IObject2 = _iobject;
18296
18527
  var $assign = Object.assign;
@@ -18353,10 +18584,10 @@ var _iterStep = /* @__PURE__ */ __name(function(done, value) {
18353
18584
  }, "_iterStep");
18354
18585
  var _iterators = {};
18355
18586
  var _redefine = _hide;
18356
- var dP$1 = _objectDp;
18587
+ var dP$1 = require_objectDp();
18357
18588
  var anObject$4 = _anObject;
18358
18589
  var getKeys$1 = _objectKeys;
18359
- var _objectDps = _descriptors ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18590
+ var _objectDps = require_descriptors() ? Object.defineProperties : /* @__PURE__ */ __name(function defineProperties(O2, Properties2) {
18360
18591
  anObject$4(O2);
18361
18592
  var keys5 = getKeys$1(Properties2);
18362
18593
  var length = keys5.length;
@@ -18423,7 +18654,7 @@ var $exports = _wks.exports = function(name2) {
18423
18654
  };
18424
18655
  $exports.store = store$2;
18425
18656
  var _wksExports = _wks.exports;
18426
- var def = _objectDp.f;
18657
+ var def = require_objectDp().f;
18427
18658
  var has$c = _has;
18428
18659
  var TAG$1 = _wksExports("toStringTag");
18429
18660
  var _setToStringTag = /* @__PURE__ */ __name(function(it, tag, stat) {
@@ -18680,9 +18911,9 @@ var _default$a = function() {
18680
18911
  };
18681
18912
  }();
18682
18913
  var anObject$1 = _anObject;
18683
- var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn3, value, entries2) {
18914
+ var _iterCall = /* @__PURE__ */ __name(function(iterator2, fn4, value, entries2) {
18684
18915
  try {
18685
- return entries2 ? fn3(anObject$1(value)[0], value[1]) : fn3(value);
18916
+ return entries2 ? fn4(anObject$1(value)[0], value[1]) : fn4(value);
18686
18917
  } catch (e2) {
18687
18918
  var ret = iterator2["return"];
18688
18919
  if (ret !== void 0)
@@ -18696,7 +18927,7 @@ var ArrayProto = Array.prototype;
18696
18927
  var _isArrayIter = /* @__PURE__ */ __name(function(it) {
18697
18928
  return it !== void 0 && (Iterators.Array === it || ArrayProto[ITERATOR] === it);
18698
18929
  }, "_isArrayIter");
18699
- var $defineProperty$2 = _objectDp;
18930
+ var $defineProperty$2 = require_objectDp();
18700
18931
  var createDesc$2 = _propertyDesc;
18701
18932
  var _createProperty = /* @__PURE__ */ __name(function(object3, index2, value) {
18702
18933
  if (index2 in object3)
@@ -18802,11 +19033,11 @@ var $export$4 = _export;
18802
19033
  var core$1 = _coreExports;
18803
19034
  var fails = _fails;
18804
19035
  var _objectSap = /* @__PURE__ */ __name(function(KEY, exec) {
18805
- var fn3 = (core$1.Object || {})[KEY] || Object[KEY];
19036
+ var fn4 = (core$1.Object || {})[KEY] || Object[KEY];
18806
19037
  var exp = {};
18807
- exp[KEY] = exec(fn3);
19038
+ exp[KEY] = exec(fn4);
18808
19039
  $export$4($export$4.S + $export$4.F * fails(function() {
18809
- fn3(1);
19040
+ fn4(1);
18810
19041
  }), "Object", exp);
18811
19042
  }, "_objectSap");
18812
19043
  var toObject$2 = _toObject;
@@ -18825,9 +19056,9 @@ var _default$8 = /* @__PURE__ */ __name(function(instance, Constructor) {
18825
19056
  }
18826
19057
  }, "_default$8");
18827
19058
  var $export$3 = _export;
18828
- $export$3($export$3.S + $export$3.F * !_descriptors, "Object", { defineProperty: _objectDp.f });
19059
+ $export$3($export$3.S + $export$3.F * !require_descriptors(), "Object", { defineProperty: require_objectDp().f });
18829
19060
  var $Object$2 = _coreExports.Object;
18830
- var defineProperty$c = /* @__PURE__ */ __name(function defineProperty3(it, key, desc) {
19061
+ var defineProperty$c = /* @__PURE__ */ __name(function defineProperty2(it, key, desc) {
18831
19062
  return $Object$2.defineProperty(it, key, desc);
18832
19063
  }, "defineProperty");
18833
19064
  var defineProperty$b = { "default": defineProperty$c, __esModule: true };
@@ -18866,7 +19097,7 @@ var _meta = { exports: {} };
18866
19097
  var META$1 = _uid("meta");
18867
19098
  var isObject$c = _isObject;
18868
19099
  var has$a = _has;
18869
- var setDesc = _objectDp.f;
19100
+ var setDesc = require_objectDp().f;
18870
19101
  var id$1 = 0;
18871
19102
  var isExtensible = Object.isExtensible || function() {
18872
19103
  return true;
@@ -18919,7 +19150,7 @@ var meta = _meta.exports = {
18919
19150
  var _metaExports = _meta.exports;
18920
19151
  var core = _coreExports;
18921
19152
  var wksExt$1 = _wksExt;
18922
- var defineProperty$a = _objectDp.f;
19153
+ var defineProperty$a = require_objectDp().f;
18923
19154
  var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18924
19155
  var $Symbol2 = core.Symbol || (core.Symbol = {});
18925
19156
  if (name2.charAt(0) != "_" && !(name2 in $Symbol2))
@@ -18927,7 +19158,7 @@ var _wksDefine = /* @__PURE__ */ __name(function(name2) {
18927
19158
  }, "_wksDefine");
18928
19159
  var getKeys = _objectKeys;
18929
19160
  var gOPS$1 = _objectGops;
18930
- var pIE$1 = require_objectPie();
19161
+ var pIE$1 = _objectPie;
18931
19162
  var _enumKeys = /* @__PURE__ */ __name(function(it) {
18932
19163
  var result = getKeys(it);
18933
19164
  var getSymbols2 = gOPS$1.f;
@@ -18948,21 +19179,13 @@ var _isArray = Array.isArray || /* @__PURE__ */ __name(function isArray(arg) {
18948
19179
  }, "isArray");
18949
19180
  var _objectGopnExt = {};
18950
19181
  var _objectGopn = {};
18951
- var hasRequired_objectGopn;
18952
- function require_objectGopn() {
18953
- if (hasRequired_objectGopn)
18954
- return _objectGopn;
18955
- hasRequired_objectGopn = 1;
18956
- var $keys2 = _objectKeysInternal;
18957
- var hiddenKeys = _enumBugKeys.concat("length", "prototype");
18958
- _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames4(O2) {
18959
- return $keys2(O2, hiddenKeys);
18960
- }, "getOwnPropertyNames");
18961
- return _objectGopn;
18962
- }
18963
- __name(require_objectGopn, "require_objectGopn");
19182
+ var $keys$2 = _objectKeysInternal;
19183
+ var hiddenKeys = _enumBugKeys.concat("length", "prototype");
19184
+ _objectGopn.f = Object.getOwnPropertyNames || /* @__PURE__ */ __name(function getOwnPropertyNames(O2) {
19185
+ return $keys$2(O2, hiddenKeys);
19186
+ }, "getOwnPropertyNames");
18964
19187
  var toIObject$2 = _toIobject;
18965
- var gOPN$1 = require_objectGopn().f;
19188
+ var gOPN$1 = _objectGopn.f;
18966
19189
  var toString$5 = {}.toString;
18967
19190
  var windowNames = typeof window == "object" && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [];
18968
19191
  var getWindowNames = /* @__PURE__ */ __name(function(it) {
@@ -18972,18 +19195,18 @@ var getWindowNames = /* @__PURE__ */ __name(function(it) {
18972
19195
  return windowNames.slice();
18973
19196
  }
18974
19197
  }, "getWindowNames");
18975
- _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames(it) {
19198
+ _objectGopnExt.f = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
18976
19199
  return windowNames && toString$5.call(it) == "[object Window]" ? getWindowNames(it) : gOPN$1(toIObject$2(it));
18977
19200
  }, "getOwnPropertyNames");
18978
19201
  var _objectGopd = {};
18979
- var pIE = require_objectPie();
19202
+ var pIE = _objectPie;
18980
19203
  var createDesc$1 = _propertyDesc;
18981
19204
  var toIObject$1 = _toIobject;
18982
19205
  var toPrimitive$1 = _toPrimitive$1;
18983
19206
  var has$9 = _has;
18984
- var IE8_DOM_DEFINE = _ie8DomDefine;
19207
+ var IE8_DOM_DEFINE = require_ie8DomDefine();
18985
19208
  var gOPD$5 = Object.getOwnPropertyDescriptor;
18986
- _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
19209
+ _objectGopd.f = require_descriptors() ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPropertyDescriptor(O2, P2) {
18987
19210
  O2 = toIObject$1(O2);
18988
19211
  P2 = toPrimitive$1(P2, true);
18989
19212
  if (IE8_DOM_DEFINE)
@@ -18996,7 +19219,7 @@ _objectGopd.f = _descriptors ? gOPD$5 : /* @__PURE__ */ __name(function getOwnPr
18996
19219
  }, "getOwnPropertyDescriptor");
18997
19220
  var global$2 = _globalExports;
18998
19221
  var has$8 = _has;
18999
- var DESCRIPTORS = _descriptors;
19222
+ var DESCRIPTORS = require_descriptors();
19000
19223
  var $export$2 = _export;
19001
19224
  var redefine = _redefine;
19002
19225
  var META = _metaExports.KEY;
@@ -19019,7 +19242,7 @@ var _create$1 = _objectCreate;
19019
19242
  var gOPNExt = _objectGopnExt;
19020
19243
  var $GOPD = _objectGopd;
19021
19244
  var $GOPS = _objectGops;
19022
- var $DP = _objectDp;
19245
+ var $DP = require_objectDp();
19023
19246
  var $keys$1 = _objectKeys;
19024
19247
  var gOPD$4 = $GOPD.f;
19025
19248
  var dP = $DP.f;
@@ -19062,7 +19285,7 @@ var isSymbol$8 = USE_NATIVE && typeof $Symbol.iterator == "symbol" ? function(it
19062
19285
  } : function(it) {
19063
19286
  return it instanceof $Symbol;
19064
19287
  };
19065
- var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty4(it, key, D2) {
19288
+ var $defineProperty$1 = /* @__PURE__ */ __name(function defineProperty3(it, key, D2) {
19066
19289
  if (it === ObjectProto)
19067
19290
  $defineProperty$1(OPSymbols, key, D2);
19068
19291
  anObject(it);
@@ -19111,7 +19334,7 @@ var $getOwnPropertyDescriptor = /* @__PURE__ */ __name(function getOwnPropertyDe
19111
19334
  D2.enumerable = true;
19112
19335
  return D2;
19113
19336
  }, "getOwnPropertyDescriptor");
19114
- var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames2(it) {
19337
+ var $getOwnPropertyNames = /* @__PURE__ */ __name(function getOwnPropertyNames3(it) {
19115
19338
  var names2 = gOPN(toIObject(it));
19116
19339
  var result = [];
19117
19340
  var i = 0;
@@ -19155,8 +19378,8 @@ if (!USE_NATIVE) {
19155
19378
  }, "toString"));
19156
19379
  $GOPD.f = $getOwnPropertyDescriptor;
19157
19380
  $DP.f = $defineProperty$1;
19158
- require_objectGopn().f = gOPNExt.f = $getOwnPropertyNames;
19159
- require_objectPie().f = $propertyIsEnumerable;
19381
+ _objectGopn.f = gOPNExt.f = $getOwnPropertyNames;
19382
+ _objectPie.f = $propertyIsEnumerable;
19160
19383
  $GOPS.f = $getOwnPropertySymbols;
19161
19384
  if (DESCRIPTORS && !_library) {
19162
19385
  redefine(ObjectProto, "propertyIsEnumerable", $propertyIsEnumerable);
@@ -21094,9 +21317,9 @@ var vendorPrefix = function() {
21094
21317
  return pre && pre.length ? pre[0].toUpperCase() + pre.substr(1) : "";
21095
21318
  }
21096
21319
  }();
21097
- function closest$2(el, fn3) {
21320
+ function closest$2(el, fn4) {
21098
21321
  while (el) {
21099
- if (fn3(el))
21322
+ if (fn4(el))
21100
21323
  return el;
21101
21324
  el = el.parentNode;
21102
21325
  }
@@ -22110,9 +22333,9 @@ var getComputedStyleX;
22110
22333
  if (typeof window !== "undefined") {
22111
22334
  getComputedStyleX = window.getComputedStyle ? _getComputedStyle : _getComputedStyleIE;
22112
22335
  }
22113
- function each$2(arr, fn3) {
22336
+ function each$2(arr, fn4) {
22114
22337
  for (var i = 0; i < arr.length; i++) {
22115
- fn3(arr[i]);
22338
+ fn4(arr[i]);
22116
22339
  }
22117
22340
  }
22118
22341
  __name(each$2, "each$2");
@@ -26763,7 +26986,7 @@ function trough() {
26763
26986
  }
26764
26987
  next(null, ...values2);
26765
26988
  function next(error, ...output) {
26766
- const fn3 = fns[++middlewareIndex];
26989
+ const fn4 = fns[++middlewareIndex];
26767
26990
  let index2 = -1;
26768
26991
  if (error) {
26769
26992
  callback2(error);
@@ -26775,8 +26998,8 @@ function trough() {
26775
26998
  }
26776
26999
  }
26777
27000
  values2 = output;
26778
- if (fn3) {
26779
- wrap$1(fn3, next)(...output);
27001
+ if (fn4) {
27002
+ wrap$1(fn4, next)(...output);
26780
27003
  } else {
26781
27004
  callback2(null, ...output);
26782
27005
  }
@@ -38163,9 +38386,9 @@ var swizzle$1 = simpleSwizzle.exports = /* @__PURE__ */ __name(function swizzle(
38163
38386
  }
38164
38387
  return results;
38165
38388
  }, "swizzle");
38166
- swizzle$1.wrap = function(fn3) {
38389
+ swizzle$1.wrap = function(fn4) {
38167
38390
  return function() {
38168
- return fn3(swizzle$1(arguments));
38391
+ return fn4(swizzle$1(arguments));
38169
38392
  };
38170
38393
  };
38171
38394
  var simpleSwizzleExports = simpleSwizzle.exports;
@@ -39249,15 +39472,15 @@ function link$1(from3, to) {
39249
39472
  __name(link$1, "link$1");
39250
39473
  function wrapConversion$1(toModel, graph) {
39251
39474
  var path2 = [graph[toModel].parent, toModel];
39252
- var fn3 = conversions$4[graph[toModel].parent][toModel];
39475
+ var fn4 = conversions$4[graph[toModel].parent][toModel];
39253
39476
  var cur = graph[toModel].parent;
39254
39477
  while (graph[cur].parent) {
39255
39478
  path2.unshift(graph[cur].parent);
39256
- fn3 = link$1(conversions$4[graph[cur].parent][cur], fn3);
39479
+ fn4 = link$1(conversions$4[graph[cur].parent][cur], fn4);
39257
39480
  cur = graph[cur].parent;
39258
39481
  }
39259
- fn3.conversion = path2;
39260
- return fn3;
39482
+ fn4.conversion = path2;
39483
+ return fn4;
39261
39484
  }
39262
39485
  __name(wrapConversion$1, "wrapConversion$1");
39263
39486
  var route$3 = /* @__PURE__ */ __name(function(fromModel) {
@@ -39278,7 +39501,7 @@ var conversions$3 = conversionsExports;
39278
39501
  var route$2 = route$3;
39279
39502
  var convert$4 = {};
39280
39503
  var models$1 = Object.keys(conversions$3);
39281
- function wrapRaw$1(fn3) {
39504
+ function wrapRaw$1(fn4) {
39282
39505
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39283
39506
  if (args === void 0 || args === null) {
39284
39507
  return args;
@@ -39286,15 +39509,15 @@ function wrapRaw$1(fn3) {
39286
39509
  if (arguments.length > 1) {
39287
39510
  args = Array.prototype.slice.call(arguments);
39288
39511
  }
39289
- return fn3(args);
39512
+ return fn4(args);
39290
39513
  }, "wrappedFn");
39291
- if ("conversion" in fn3) {
39292
- wrappedFn.conversion = fn3.conversion;
39514
+ if ("conversion" in fn4) {
39515
+ wrappedFn.conversion = fn4.conversion;
39293
39516
  }
39294
39517
  return wrappedFn;
39295
39518
  }
39296
39519
  __name(wrapRaw$1, "wrapRaw$1");
39297
- function wrapRounded$1(fn3) {
39520
+ function wrapRounded$1(fn4) {
39298
39521
  var wrappedFn = /* @__PURE__ */ __name(function(args) {
39299
39522
  if (args === void 0 || args === null) {
39300
39523
  return args;
@@ -39302,7 +39525,7 @@ function wrapRounded$1(fn3) {
39302
39525
  if (arguments.length > 1) {
39303
39526
  args = Array.prototype.slice.call(arguments);
39304
39527
  }
39305
- var result = fn3(args);
39528
+ var result = fn4(args);
39306
39529
  if (typeof result === "object") {
39307
39530
  for (var len = result.length, i = 0; i < len; i++) {
39308
39531
  result[i] = Math.round(result[i]);
@@ -39310,8 +39533,8 @@ function wrapRounded$1(fn3) {
39310
39533
  }
39311
39534
  return result;
39312
39535
  }, "wrappedFn");
39313
- if ("conversion" in fn3) {
39314
- wrappedFn.conversion = fn3.conversion;
39536
+ if ("conversion" in fn4) {
39537
+ wrappedFn.conversion = fn4.conversion;
39315
39538
  }
39316
39539
  return wrappedFn;
39317
39540
  }
@@ -39323,9 +39546,9 @@ models$1.forEach(function(fromModel) {
39323
39546
  var routes = route$2(fromModel);
39324
39547
  var routeModels = Object.keys(routes);
39325
39548
  routeModels.forEach(function(toModel) {
39326
- var fn3 = routes[toModel];
39327
- convert$4[fromModel][toModel] = wrapRounded$1(fn3);
39328
- convert$4[fromModel][toModel].raw = wrapRaw$1(fn3);
39549
+ var fn4 = routes[toModel];
39550
+ convert$4[fromModel][toModel] = wrapRounded$1(fn4);
39551
+ convert$4[fromModel][toModel].raw = wrapRaw$1(fn4);
39329
39552
  });
39330
39553
  });
39331
39554
  var colorConvert$1 = convert$4;
@@ -40775,9 +40998,9 @@ var doEval = /* @__PURE__ */ __name(function doEval2(name2) {
40775
40998
  } else if (name2 === "%AsyncGeneratorFunction%") {
40776
40999
  value = getEvalledConstructor("async function* () {}");
40777
41000
  } else if (name2 === "%AsyncGenerator%") {
40778
- var fn3 = doEval2("%AsyncGeneratorFunction%");
40779
- if (fn3) {
40780
- value = fn3.prototype;
41001
+ var fn4 = doEval2("%AsyncGeneratorFunction%");
41002
+ if (fn4) {
41003
+ value = fn4.prototype;
40781
41004
  }
40782
41005
  } else if (name2 === "%AsyncIteratorPrototype%") {
40783
41006
  var gen = doEval2("%AsyncGenerator%");
@@ -41833,15 +42056,15 @@ var isBuffer$4 = /* @__PURE__ */ __name(function isBuffer2(obj) {
41833
42056
  var combine$1 = /* @__PURE__ */ __name(function combine(a2, b3) {
41834
42057
  return [].concat(a2, b3);
41835
42058
  }, "combine");
41836
- var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn3) {
42059
+ var maybeMap = /* @__PURE__ */ __name(function maybeMap2(val2, fn4) {
41837
42060
  if (isArray$b(val2)) {
41838
42061
  var mapped = [];
41839
42062
  for (var i = 0; i < val2.length; i += 1) {
41840
- mapped.push(fn3(val2[i]));
42063
+ mapped.push(fn4(val2[i]));
41841
42064
  }
41842
42065
  return mapped;
41843
42066
  }
41844
- return fn3(val2);
42067
+ return fn4(val2);
41845
42068
  }, "maybeMap");
41846
42069
  var utils$6 = {
41847
42070
  arrayToObject,
@@ -46465,8 +46688,8 @@ var Saturation = function(_ref) {
46465
46688
  _this.handleMouseUp = function() {
46466
46689
  _this.unbindEventListeners();
46467
46690
  };
46468
- _this.throttle = throttle$1(function(fn3, data, e2) {
46469
- fn3(data, e2);
46691
+ _this.throttle = throttle$1(function(fn4, data, e2) {
46692
+ fn4(data, e2);
46470
46693
  }, 50);
46471
46694
  return _this;
46472
46695
  }
@@ -46838,8 +47061,8 @@ tinycolor.prototype = {
46838
47061
  clone: /* @__PURE__ */ __name(function clone3() {
46839
47062
  return tinycolor(this.toString());
46840
47063
  }, "clone"),
46841
- _applyModification: /* @__PURE__ */ __name(function _applyModification(fn3, args) {
46842
- var color2 = fn3.apply(null, [this].concat([].slice.call(args)));
47064
+ _applyModification: /* @__PURE__ */ __name(function _applyModification(fn4, args) {
47065
+ var color2 = fn4.apply(null, [this].concat([].slice.call(args)));
46843
47066
  this._r = color2._r;
46844
47067
  this._g = color2._g;
46845
47068
  this._b = color2._b;
@@ -46867,8 +47090,8 @@ tinycolor.prototype = {
46867
47090
  spin: /* @__PURE__ */ __name(function spin() {
46868
47091
  return this._applyModification(_spin, arguments);
46869
47092
  }, "spin"),
46870
- _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn3, args) {
46871
- return fn3.apply(null, [this].concat([].slice.call(args)));
47093
+ _applyCombination: /* @__PURE__ */ __name(function _applyCombination(fn4, args) {
47094
+ return fn4.apply(null, [this].concat([].slice.call(args)));
46872
47095
  }, "_applyCombination"),
46873
47096
  analogous: /* @__PURE__ */ __name(function analogous() {
46874
47097
  return this._applyCombination(_analogous, arguments);
@@ -47788,8 +48011,8 @@ var ColorWrap = /* @__PURE__ */ __name(function ColorWrap2(Picker) {
47788
48011
  }
47789
48012
  };
47790
48013
  _this.state = _extends$e({}, toState(props.color, 0));
47791
- _this.debounce = debounce$1(function(fn3, data, event) {
47792
- fn3(data, event);
48014
+ _this.debounce = debounce$1(function(fn4, data, event) {
48015
+ fn4(data, event);
47793
48016
  }, 100);
47794
48017
  return _this;
47795
48018
  }
@@ -54934,7 +55157,7 @@ var KNOWN_STATICS = {
54934
55157
  arity: true
54935
55158
  };
54936
55159
  var defineProperty$3 = Object.defineProperty;
54937
- var getOwnPropertyNames3 = Object.getOwnPropertyNames;
55160
+ var getOwnPropertyNames4 = Object.getOwnPropertyNames;
54938
55161
  var getOwnPropertySymbols3 = Object.getOwnPropertySymbols;
54939
55162
  var getOwnPropertyDescriptor3 = Object.getOwnPropertyDescriptor;
54940
55163
  var getPrototypeOf = Object.getPrototypeOf;
@@ -54947,7 +55170,7 @@ function hoistNonReactStatics(targetComponent, sourceComponent, blacklist) {
54947
55170
  hoistNonReactStatics(targetComponent, inheritedComponent, blacklist);
54948
55171
  }
54949
55172
  }
54950
- var keys5 = getOwnPropertyNames3(sourceComponent);
55173
+ var keys5 = getOwnPropertyNames4(sourceComponent);
54951
55174
  if (getOwnPropertySymbols3) {
54952
55175
  keys5 = keys5.concat(getOwnPropertySymbols3(sourceComponent));
54953
55176
  }
@@ -56528,9 +56751,9 @@ const _DataTable = class _DataTable extends React$2.Component {
56528
56751
  return window.toastr.warning("No text to copy");
56529
56752
  this.handleCopyHelper(textToCopy, "Column copied");
56530
56753
  }, "handleCopyColumn"));
56531
- __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn3) => {
56754
+ __publicField(this, "updateEntitiesHelper", /* @__PURE__ */ __name((ents, fn4) => {
56532
56755
  const { change, reduxFormEntitiesUndoRedoStack = { currentVersion: 0 } } = this.props;
56533
- const [nextState, patches, inversePatches] = cn(ents, fn3);
56756
+ const [nextState, patches, inversePatches] = cn(ents, fn4);
56534
56757
  if (!inversePatches.length)
56535
56758
  return;
56536
56759
  const thatNewNew = [...nextState];
@@ -58302,8 +58525,8 @@ const _DataTable = class _DataTable extends React$2.Component {
58302
58525
  let updateTableDisplayDensityToUse = updateTableDisplayDensity;
58303
58526
  let resetDefaultVisibilityToUse = resetDefaultVisibility;
58304
58527
  if (withDisplayOptions && !syncDisplayOptionsToDb) {
58305
- const wrapUpdate = /* @__PURE__ */ __name((fn3) => (...args) => {
58306
- fn3(...args);
58528
+ const wrapUpdate = /* @__PURE__ */ __name((fn4) => (...args) => {
58529
+ fn4(...args);
58307
58530
  change("localStorageForceUpdate", Math.random());
58308
58531
  }, "wrapUpdate");
58309
58532
  updateColumnVisibilityToUse = wrapUpdate(updateColumnVisibility);
@@ -58498,12 +58721,13 @@ const _DataTable = class _DataTable extends React$2.Component {
58498
58721
  tabIndex: -1,
58499
58722
  onKeyDown: (e2) => {
58500
58723
  var _a2, _b2, _c, _d, _e, _f;
58501
- const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40 || e2.keyCode === 9;
58502
- if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT") {
58724
+ const isTabKey = e2.keyCode === 9;
58725
+ const isArrowKey = e2.keyCode >= 37 && e2.keyCode <= 40;
58726
+ if (isArrowKey && ((_a2 = e2.target) == null ? void 0 : _a2.tagName) !== "INPUT" || isTabKey) {
58503
58727
  const { schema: schema22, entities: entities2 } = computePresets(this.props);
58504
58728
  const left2 = e2.keyCode === 37;
58505
58729
  const up = e2.keyCode === 38;
58506
- const down = e2.keyCode === 40;
58730
+ const down = e2.keyCode === 40 || e2.keyCode === 13;
58507
58731
  let cellIdToUse = this.getPrimarySelectedCellId();
58508
58732
  const pathToIndex = getFieldPathToIndex(schema22);
58509
58733
  const entityMap = getEntityIdToEntity(entities2);
@@ -59174,7 +59398,7 @@ const wrapDialog = /* @__PURE__ */ __name((topLevelDialogProps = {}) => (Compone
59174
59398
  /* @__PURE__ */ React$2.createElement(Component, __spreadValues({ hideModal }, otherProps))
59175
59399
  );
59176
59400
  }, "wrapDialog");
59177
- function renderOnDoc(fn3) {
59401
+ function renderOnDoc(fn4) {
59178
59402
  const elemDiv = document.createElement("div");
59179
59403
  elemDiv.style.cssText = "position:absolute;width:100%;height:100%;top:0px;opacity:0.3;z-index:0;";
59180
59404
  document.body.appendChild(elemDiv);
@@ -59184,7 +59408,7 @@ function renderOnDoc(fn3) {
59184
59408
  document.body.removeChild(elemDiv);
59185
59409
  });
59186
59410
  }, "handleClose");
59187
- return ReactDOM$1.render(fn3(handleClose), elemDiv);
59411
+ return ReactDOM$1.render(fn4(handleClose), elemDiv);
59188
59412
  }
59189
59413
  __name(renderOnDoc, "renderOnDoc");
59190
59414
  function showConfirmationDialog(opts2) {
@@ -64516,9 +64740,9 @@ var bluebird = { exports: {} };
64516
64740
  this._schedule = schedule;
64517
64741
  }
64518
64742
  __name(Async, "Async");
64519
- Async.prototype.setScheduler = function(fn3) {
64743
+ Async.prototype.setScheduler = function(fn4) {
64520
64744
  var prev = this._schedule;
64521
- this._schedule = fn3;
64745
+ this._schedule = fn4;
64522
64746
  this._customScheduler = true;
64523
64747
  return prev;
64524
64748
  };
@@ -64536,33 +64760,33 @@ var bluebird = { exports: {} };
64536
64760
  this.throwLater(e2);
64537
64761
  }
64538
64762
  };
64539
- Async.prototype.throwLater = function(fn3, arg) {
64763
+ Async.prototype.throwLater = function(fn4, arg) {
64540
64764
  if (arguments.length === 1) {
64541
- arg = fn3;
64542
- fn3 = /* @__PURE__ */ __name(function() {
64765
+ arg = fn4;
64766
+ fn4 = /* @__PURE__ */ __name(function() {
64543
64767
  throw arg;
64544
64768
  }, "fn");
64545
64769
  }
64546
64770
  if (typeof setTimeout !== "undefined") {
64547
64771
  setTimeout(function() {
64548
- fn3(arg);
64772
+ fn4(arg);
64549
64773
  }, 0);
64550
64774
  } else
64551
64775
  try {
64552
64776
  this._schedule(function() {
64553
- fn3(arg);
64777
+ fn4(arg);
64554
64778
  });
64555
64779
  } catch (e2) {
64556
64780
  throw new Error("No async scheduler available\n\n See http://goo.gl/MqrFmX\n");
64557
64781
  }
64558
64782
  };
64559
- function AsyncInvokeLater(fn3, receiver, arg) {
64560
- this._lateQueue.push(fn3, receiver, arg);
64783
+ function AsyncInvokeLater(fn4, receiver, arg) {
64784
+ this._lateQueue.push(fn4, receiver, arg);
64561
64785
  this._queueTick();
64562
64786
  }
64563
64787
  __name(AsyncInvokeLater, "AsyncInvokeLater");
64564
- function AsyncInvoke(fn3, receiver, arg) {
64565
- this._normalQueue.push(fn3, receiver, arg);
64788
+ function AsyncInvoke(fn4, receiver, arg) {
64789
+ this._normalQueue.push(fn4, receiver, arg);
64566
64790
  this._queueTick();
64567
64791
  }
64568
64792
  __name(AsyncInvoke, "AsyncInvoke");
@@ -64581,13 +64805,13 @@ var bluebird = { exports: {} };
64581
64805
  }
64582
64806
  __name(_drainQueue, "_drainQueue");
64583
64807
  function _drainQueueStep(queue) {
64584
- var fn3 = queue.shift();
64585
- if (typeof fn3 !== "function") {
64586
- fn3._settlePromises();
64808
+ var fn4 = queue.shift();
64809
+ if (typeof fn4 !== "function") {
64810
+ fn4._settlePromises();
64587
64811
  } else {
64588
64812
  var receiver = queue.shift();
64589
64813
  var arg = queue.shift();
64590
- fn3.call(receiver, arg);
64814
+ fn4.call(receiver, arg);
64591
64815
  }
64592
64816
  }
64593
64817
  __name(_drainQueueStep, "_drainQueueStep");
@@ -64703,20 +64927,20 @@ var bluebird = { exports: {} };
64703
64927
  util2.isIdentifier;
64704
64928
  var getGetter;
64705
64929
  function ensureMethod(obj, methodName) {
64706
- var fn3;
64930
+ var fn4;
64707
64931
  if (obj != null)
64708
- fn3 = obj[methodName];
64709
- if (typeof fn3 !== "function") {
64932
+ fn4 = obj[methodName];
64933
+ if (typeof fn4 !== "function") {
64710
64934
  var message = "Object " + util2.classString(obj) + " has no method '" + util2.toString(methodName) + "'";
64711
64935
  throw new Promise2.TypeError(message);
64712
64936
  }
64713
- return fn3;
64937
+ return fn4;
64714
64938
  }
64715
64939
  __name(ensureMethod, "ensureMethod");
64716
64940
  function caller(obj) {
64717
64941
  var methodName = this.pop();
64718
- var fn3 = ensureMethod(obj, methodName);
64719
- return fn3.apply(obj, this);
64942
+ var fn4 = ensureMethod(obj, methodName);
64943
+ return fn4.apply(obj, this);
64720
64944
  }
64721
64945
  __name(caller, "caller");
64722
64946
  Promise2.prototype.call = function(methodName) {
@@ -65087,13 +65311,13 @@ var bluebird = { exports: {} };
65087
65311
  Promise2.prototype._warn = function(message, shouldUseOwnTrace, promise) {
65088
65312
  return warn(message, shouldUseOwnTrace, promise || this);
65089
65313
  };
65090
- Promise2.onPossiblyUnhandledRejection = function(fn3) {
65314
+ Promise2.onPossiblyUnhandledRejection = function(fn4) {
65091
65315
  var context = Promise2._getContext();
65092
- possiblyUnhandledRejection = util2.contextBind(context, fn3);
65316
+ possiblyUnhandledRejection = util2.contextBind(context, fn4);
65093
65317
  };
65094
- Promise2.onUnhandledRejectionHandled = function(fn3) {
65318
+ Promise2.onUnhandledRejectionHandled = function(fn4) {
65095
65319
  var context = Promise2._getContext();
65096
- unhandledRejectionHandled = util2.contextBind(context, fn3);
65320
+ unhandledRejectionHandled = util2.contextBind(context, fn4);
65097
65321
  };
65098
65322
  var disableLongStackTraces = /* @__PURE__ */ __name(function() {
65099
65323
  }, "disableLongStackTraces");
@@ -65132,8 +65356,8 @@ var bluebird = { exports: {} };
65132
65356
  util2.global.onunhandledrejection = null;
65133
65357
  return ret;
65134
65358
  },
65135
- after: function(fn3) {
65136
- util2.global.onunhandledrejection = fn3;
65359
+ after: function(fn4) {
65360
+ util2.global.onunhandledrejection = fn4;
65137
65361
  }
65138
65362
  },
65139
65363
  rejectionhandled: {
@@ -65142,20 +65366,20 @@ var bluebird = { exports: {} };
65142
65366
  util2.global.onrejectionhandled = null;
65143
65367
  return ret;
65144
65368
  },
65145
- after: function(fn3) {
65146
- util2.global.onrejectionhandled = fn3;
65369
+ after: function(fn4) {
65370
+ util2.global.onrejectionhandled = fn4;
65147
65371
  }
65148
65372
  }
65149
65373
  };
65150
65374
  var fireDomEvent = function() {
65151
65375
  var dispatch = /* @__PURE__ */ __name(function(legacy, e2) {
65152
65376
  if (legacy) {
65153
- var fn3;
65377
+ var fn4;
65154
65378
  try {
65155
- fn3 = legacy.before();
65379
+ fn4 = legacy.before();
65156
65380
  return !util2.global.dispatchEvent(e2);
65157
65381
  } finally {
65158
- legacy.after(fn3);
65382
+ legacy.after(fn4);
65159
65383
  }
65160
65384
  } else {
65161
65385
  return !util2.global.dispatchEvent(e2);
@@ -66021,18 +66245,18 @@ var bluebird = { exports: {} };
66021
66245
  return PromiseAll(this);
66022
66246
  }
66023
66247
  __name(promiseAllThis, "promiseAllThis");
66024
- function PromiseMapSeries(promises, fn3) {
66025
- return PromiseReduce(promises, fn3, INTERNAL, INTERNAL);
66248
+ function PromiseMapSeries(promises, fn4) {
66249
+ return PromiseReduce(promises, fn4, INTERNAL, INTERNAL);
66026
66250
  }
66027
66251
  __name(PromiseMapSeries, "PromiseMapSeries");
66028
- Promise2.prototype.each = function(fn3) {
66029
- return PromiseReduce(this, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66252
+ Promise2.prototype.each = function(fn4) {
66253
+ return PromiseReduce(this, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, this, void 0);
66030
66254
  };
66031
- Promise2.prototype.mapSeries = function(fn3) {
66032
- return PromiseReduce(this, fn3, INTERNAL, INTERNAL);
66255
+ Promise2.prototype.mapSeries = function(fn4) {
66256
+ return PromiseReduce(this, fn4, INTERNAL, INTERNAL);
66033
66257
  };
66034
- Promise2.each = function(promises, fn3) {
66035
- return PromiseReduce(promises, fn3, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66258
+ Promise2.each = function(promises, fn4) {
66259
+ return PromiseReduce(promises, fn4, INTERNAL, 0)._then(promiseAllThis, void 0, void 0, promises, void 0);
66036
66260
  };
66037
66261
  Promise2.mapSeries = PromiseMapSeries;
66038
66262
  };
@@ -66221,11 +66445,11 @@ var bluebird = { exports: {} };
66221
66445
  }, {}], 14: [function(_dereq_2, module3, exports3) {
66222
66446
  module3.exports = function(Promise2, INTERNAL) {
66223
66447
  var PromiseMap = Promise2.map;
66224
- Promise2.prototype.filter = function(fn3, options) {
66225
- return PromiseMap(this, fn3, options, INTERNAL);
66448
+ Promise2.prototype.filter = function(fn4, options) {
66449
+ return PromiseMap(this, fn4, options, INTERNAL);
66226
66450
  };
66227
- Promise2.filter = function(promises, fn3, options) {
66228
- return PromiseMap(promises, fn3, options, INTERNAL);
66451
+ Promise2.filter = function(promises, fn4, options) {
66452
+ return PromiseMap(promises, fn4, options, INTERNAL);
66229
66453
  };
66230
66454
  };
66231
66455
  }, {}], 15: [function(_dereq_2, module3, exports3) {
@@ -66571,11 +66795,11 @@ var bluebird = { exports: {} };
66571
66795
  return ret;
66572
66796
  };
66573
66797
  };
66574
- Promise2.coroutine.addYieldHandler = function(fn3) {
66575
- if (typeof fn3 !== "function") {
66576
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
66798
+ Promise2.coroutine.addYieldHandler = function(fn4) {
66799
+ if (typeof fn4 !== "function") {
66800
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
66577
66801
  }
66578
- yieldHandlers.push(fn3);
66802
+ yieldHandlers.push(fn4);
66579
66803
  };
66580
66804
  Promise2.spawn = function(generatorFunction) {
66581
66805
  debug.deprecated("Promise.spawn()", "Promise.coroutine()");
@@ -66596,16 +66820,16 @@ var bluebird = { exports: {} };
66596
66820
  util2.errorObj;
66597
66821
  Promise2.join = function() {
66598
66822
  var last2 = arguments.length - 1;
66599
- var fn3;
66823
+ var fn4;
66600
66824
  if (last2 > 0 && typeof arguments[last2] === "function") {
66601
- fn3 = arguments[last2];
66825
+ fn4 = arguments[last2];
66602
66826
  var ret;
66603
66827
  }
66604
66828
  var args = [].slice.call(arguments);
66605
- if (fn3)
66829
+ if (fn4)
66606
66830
  args.pop();
66607
66831
  var ret = new PromiseArray(args).promise();
66608
- return fn3 !== void 0 ? ret.spread(fn3) : ret;
66832
+ return fn4 !== void 0 ? ret.spread(fn4) : ret;
66609
66833
  };
66610
66834
  };
66611
66835
  }, { "./util": 36 }], 18: [function(_dereq_2, module3, exports3) {
@@ -66614,11 +66838,11 @@ var bluebird = { exports: {} };
66614
66838
  var tryCatch = util2.tryCatch;
66615
66839
  var errorObj = util2.errorObj;
66616
66840
  var async = Promise2._async;
66617
- function MappingPromiseArray(promises, fn3, limit2, _filter) {
66841
+ function MappingPromiseArray(promises, fn4, limit2, _filter) {
66618
66842
  this.constructor$(promises);
66619
66843
  this._promise._captureStackTrace();
66620
66844
  var context = Promise2._getContext();
66621
- this._callback = util2.contextBind(context, fn3);
66845
+ this._callback = util2.contextBind(context, fn4);
66622
66846
  this._preservedValues = _filter === INTERNAL ? new Array(this.length()) : null;
66623
66847
  this._limit = limit2;
66624
66848
  this._inFlight = 0;
@@ -66736,9 +66960,9 @@ var bluebird = { exports: {} };
66736
66960
  MappingPromiseArray.prototype.preservedValues = function() {
66737
66961
  return this._preservedValues;
66738
66962
  };
66739
- function map3(promises, fn3, options, _filter) {
66740
- if (typeof fn3 !== "function") {
66741
- return apiRejection("expecting a function but got " + util2.classString(fn3));
66963
+ function map3(promises, fn4, options, _filter) {
66964
+ if (typeof fn4 !== "function") {
66965
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66742
66966
  }
66743
66967
  var limit2 = 0;
66744
66968
  if (options !== void 0) {
@@ -66756,29 +66980,29 @@ var bluebird = { exports: {} };
66756
66980
  }
66757
66981
  }
66758
66982
  limit2 = typeof limit2 === "number" && isFinite(limit2) && limit2 >= 1 ? limit2 : 0;
66759
- return new MappingPromiseArray(promises, fn3, limit2, _filter).promise();
66983
+ return new MappingPromiseArray(promises, fn4, limit2, _filter).promise();
66760
66984
  }
66761
66985
  __name(map3, "map");
66762
- Promise2.prototype.map = function(fn3, options) {
66763
- return map3(this, fn3, options, null);
66986
+ Promise2.prototype.map = function(fn4, options) {
66987
+ return map3(this, fn4, options, null);
66764
66988
  };
66765
- Promise2.map = function(promises, fn3, options, _filter) {
66766
- return map3(promises, fn3, options, _filter);
66989
+ Promise2.map = function(promises, fn4, options, _filter) {
66990
+ return map3(promises, fn4, options, _filter);
66767
66991
  };
66768
66992
  };
66769
66993
  }, { "./util": 36 }], 19: [function(_dereq_2, module3, exports3) {
66770
66994
  module3.exports = function(Promise2, INTERNAL, tryConvertToPromise, apiRejection, debug) {
66771
66995
  var util2 = _dereq_2("./util");
66772
66996
  var tryCatch = util2.tryCatch;
66773
- Promise2.method = function(fn3) {
66774
- if (typeof fn3 !== "function") {
66775
- throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn3));
66997
+ Promise2.method = function(fn4) {
66998
+ if (typeof fn4 !== "function") {
66999
+ throw new Promise2.TypeError("expecting a function but got " + util2.classString(fn4));
66776
67000
  }
66777
67001
  return function() {
66778
67002
  var ret = new Promise2(INTERNAL);
66779
67003
  ret._captureStackTrace();
66780
67004
  ret._pushContext();
66781
- var value = tryCatch(fn3).apply(this, arguments);
67005
+ var value = tryCatch(fn4).apply(this, arguments);
66782
67006
  var promiseCreated = ret._popContext();
66783
67007
  debug.checkForgottenReturns(
66784
67008
  value,
@@ -66790,9 +67014,9 @@ var bluebird = { exports: {} };
66790
67014
  return ret;
66791
67015
  };
66792
67016
  };
66793
- Promise2.attempt = Promise2["try"] = function(fn3) {
66794
- if (typeof fn3 !== "function") {
66795
- return apiRejection("expecting a function but got " + util2.classString(fn3));
67017
+ Promise2.attempt = Promise2["try"] = function(fn4) {
67018
+ if (typeof fn4 !== "function") {
67019
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
66796
67020
  }
66797
67021
  var ret = new Promise2(INTERNAL);
66798
67022
  ret._captureStackTrace();
@@ -66802,9 +67026,9 @@ var bluebird = { exports: {} };
66802
67026
  debug.deprecated("calling Promise.try with more than 1 argument");
66803
67027
  var arg = arguments[1];
66804
67028
  var ctx2 = arguments[2];
66805
- value = util2.isArray(arg) ? tryCatch(fn3).apply(ctx2, arg) : tryCatch(fn3).call(ctx2, arg);
67029
+ value = util2.isArray(arg) ? tryCatch(fn4).apply(ctx2, arg) : tryCatch(fn4).call(ctx2, arg);
66806
67030
  } else {
66807
- value = tryCatch(fn3)();
67031
+ value = tryCatch(fn4)();
66808
67032
  }
66809
67033
  var promiseCreated = ret._popContext();
66810
67034
  debug.checkForgottenReturns(
@@ -67043,7 +67267,7 @@ var bluebird = { exports: {} };
67043
67267
  Promise2.prototype.toString = function() {
67044
67268
  return "[object Promise]";
67045
67269
  };
67046
- Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn3) {
67270
+ Promise2.prototype.caught = Promise2.prototype["catch"] = function(fn4) {
67047
67271
  var len = arguments.length;
67048
67272
  if (len > 1) {
67049
67273
  var catchInstances = new Array(len - 1), j = 0, i;
@@ -67056,13 +67280,13 @@ var bluebird = { exports: {} };
67056
67280
  }
67057
67281
  }
67058
67282
  catchInstances.length = j;
67059
- fn3 = arguments[i];
67060
- if (typeof fn3 !== "function") {
67061
- throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn3));
67283
+ fn4 = arguments[i];
67284
+ if (typeof fn4 !== "function") {
67285
+ throw new TypeError2("The last argument to .catch() must be a function, got " + util2.toString(fn4));
67062
67286
  }
67063
- return this.then(void 0, catchFilter(catchInstances, fn3, this));
67287
+ return this.then(void 0, catchFilter(catchInstances, fn4, this));
67064
67288
  }
67065
- return this.then(void 0, fn3);
67289
+ return this.then(void 0, fn4);
67066
67290
  };
67067
67291
  Promise2.prototype.reflect = function() {
67068
67292
  return this._then(
@@ -67087,11 +67311,11 @@ var bluebird = { exports: {} };
67087
67311
  var promise = this._then(didFulfill, didReject, void 0, void 0, void 0);
67088
67312
  promise._setIsFinal();
67089
67313
  };
67090
- Promise2.prototype.spread = function(fn3) {
67091
- if (typeof fn3 !== "function") {
67092
- return apiRejection("expecting a function but got " + util2.classString(fn3));
67314
+ Promise2.prototype.spread = function(fn4) {
67315
+ if (typeof fn4 !== "function") {
67316
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
67093
67317
  }
67094
- return this.all()._then(fn3, void 0, void 0, APPLY, void 0);
67318
+ return this.all()._then(fn4, void 0, void 0, APPLY, void 0);
67095
67319
  };
67096
67320
  Promise2.prototype.toJSON = function() {
67097
67321
  var ret = {
@@ -67115,18 +67339,18 @@ var bluebird = { exports: {} };
67115
67339
  }
67116
67340
  return new PromiseArray(this).promise();
67117
67341
  };
67118
- Promise2.prototype.error = function(fn3) {
67119
- return this.caught(util2.originatesFromRejection, fn3);
67342
+ Promise2.prototype.error = function(fn4) {
67343
+ return this.caught(util2.originatesFromRejection, fn4);
67120
67344
  };
67121
67345
  Promise2.getNewLibraryCopy = module3.exports;
67122
67346
  Promise2.is = function(val2) {
67123
67347
  return val2 instanceof Promise2;
67124
67348
  };
67125
- Promise2.fromNode = Promise2.fromCallback = function(fn3) {
67349
+ Promise2.fromNode = Promise2.fromCallback = function(fn4) {
67126
67350
  var ret = new Promise2(INTERNAL);
67127
67351
  ret._captureStackTrace();
67128
67352
  var multiArgs = arguments.length > 1 ? !!Object(arguments[1]).multiArgs : false;
67129
- var result = tryCatch(fn3)(nodebackForPromise(ret, multiArgs));
67353
+ var result = tryCatch(fn4)(nodebackForPromise(ret, multiArgs));
67130
67354
  if (result === errorObj) {
67131
67355
  ret._rejectCallback(result.e, true);
67132
67356
  }
@@ -67154,11 +67378,11 @@ var bluebird = { exports: {} };
67154
67378
  ret._rejectCallback(reason, true);
67155
67379
  return ret;
67156
67380
  };
67157
- Promise2.setScheduler = function(fn3) {
67158
- if (typeof fn3 !== "function") {
67159
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
67381
+ Promise2.setScheduler = function(fn4) {
67382
+ if (typeof fn4 !== "function") {
67383
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
67160
67384
  }
67161
- return async.setScheduler(fn3);
67385
+ return async.setScheduler(fn4);
67162
67386
  };
67163
67387
  Promise2.prototype._then = function(didFulfill, didReject, _2, receiver, internalData) {
67164
67388
  var haveInternalData = internalData !== void 0;
@@ -67875,9 +68099,9 @@ var bluebird = { exports: {} };
67875
68099
  return !noCopyPropsPattern.test(key);
67876
68100
  }
67877
68101
  __name(propsFilter, "propsFilter");
67878
- function isPromisified(fn3) {
68102
+ function isPromisified(fn4) {
67879
68103
  try {
67880
- return fn3.__isPromisified__ === true;
68104
+ return fn4.__isPromisified__ === true;
67881
68105
  } catch (e2) {
67882
68106
  return false;
67883
68107
  }
@@ -67925,13 +68149,13 @@ var bluebird = { exports: {} };
67925
68149
  return str.replace(/([$])/, "\\$");
67926
68150
  }, "escapeIdentRegex");
67927
68151
  var makeNodePromisifiedEval;
67928
- function makeNodePromisifiedClosure(callback2, receiver, _2, fn3, __, multiArgs) {
68152
+ function makeNodePromisifiedClosure(callback2, receiver, _2, fn4, __, multiArgs) {
67929
68153
  var defaultThis = function() {
67930
68154
  return this;
67931
68155
  }();
67932
68156
  var method = callback2;
67933
68157
  if (typeof method === "string") {
67934
- callback2 = fn3;
68158
+ callback2 = fn4;
67935
68159
  }
67936
68160
  function promisified() {
67937
68161
  var _receiver = receiver;
@@ -67940,9 +68164,9 @@ var bluebird = { exports: {} };
67940
68164
  var promise = new Promise2(INTERNAL);
67941
68165
  promise._captureStackTrace();
67942
68166
  var cb = typeof method === "string" && this !== defaultThis ? this[method] : callback2;
67943
- var fn4 = nodebackForPromise(promise, multiArgs);
68167
+ var fn5 = nodebackForPromise(promise, multiArgs);
67944
68168
  try {
67945
- cb.apply(_receiver, withAppended(arguments, fn4));
68169
+ cb.apply(_receiver, withAppended(arguments, fn5));
67946
68170
  } catch (e2) {
67947
68171
  promise._rejectCallback(maybeWrapAsError(e2), true, true);
67948
68172
  }
@@ -67961,17 +68185,17 @@ var bluebird = { exports: {} };
67961
68185
  var methods = promisifiableMethods(obj, suffix, suffixRegexp, filter);
67962
68186
  for (var i = 0, len = methods.length; i < len; i += 2) {
67963
68187
  var key = methods[i];
67964
- var fn3 = methods[i + 1];
68188
+ var fn4 = methods[i + 1];
67965
68189
  var promisifiedKey = key + suffix;
67966
68190
  if (promisifier === makeNodePromisified) {
67967
- obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn3, suffix, multiArgs);
68191
+ obj[promisifiedKey] = makeNodePromisified(key, THIS, key, fn4, suffix, multiArgs);
67968
68192
  } else {
67969
- var promisified = promisifier(fn3, function() {
68193
+ var promisified = promisifier(fn4, function() {
67970
68194
  return makeNodePromisified(
67971
68195
  key,
67972
68196
  THIS,
67973
68197
  key,
67974
- fn3,
68198
+ fn4,
67975
68199
  suffix,
67976
68200
  multiArgs
67977
68201
  );
@@ -67995,18 +68219,18 @@ var bluebird = { exports: {} };
67995
68219
  );
67996
68220
  }
67997
68221
  __name(promisify, "promisify");
67998
- Promise2.promisify = function(fn3, options) {
67999
- if (typeof fn3 !== "function") {
68000
- throw new TypeError2("expecting a function but got " + util2.classString(fn3));
68222
+ Promise2.promisify = function(fn4, options) {
68223
+ if (typeof fn4 !== "function") {
68224
+ throw new TypeError2("expecting a function but got " + util2.classString(fn4));
68001
68225
  }
68002
- if (isPromisified(fn3)) {
68003
- return fn3;
68226
+ if (isPromisified(fn4)) {
68227
+ return fn4;
68004
68228
  }
68005
68229
  options = Object(options);
68006
68230
  var receiver = options.context === void 0 ? THIS : options.context;
68007
68231
  var multiArgs = !!options.multiArgs;
68008
- var ret = promisify(fn3, receiver, multiArgs);
68009
- util2.copyDescriptors(fn3, ret, propsFilter);
68232
+ var ret = promisify(fn4, receiver, multiArgs);
68233
+ util2.copyDescriptors(fn4, ret, propsFilter);
68010
68234
  return ret;
68011
68235
  };
68012
68236
  Promise2.promisifyAll = function(target, options) {
@@ -68181,10 +68405,10 @@ var bluebird = { exports: {} };
68181
68405
  this[i] = arg;
68182
68406
  this._length = length + 1;
68183
68407
  };
68184
- Queue.prototype.push = function(fn3, receiver, arg) {
68408
+ Queue.prototype.push = function(fn4, receiver, arg) {
68185
68409
  var length = this.length() + 3;
68186
68410
  if (this._willBeOverCapacity(length)) {
68187
- this._pushOne(fn3);
68411
+ this._pushOne(fn4);
68188
68412
  this._pushOne(receiver);
68189
68413
  this._pushOne(arg);
68190
68414
  return;
@@ -68192,7 +68416,7 @@ var bluebird = { exports: {} };
68192
68416
  var j = this._front + length - 3;
68193
68417
  this._checkCapacity(length);
68194
68418
  var wrapMask = this._capacity - 1;
68195
- this[j + 0 & wrapMask] = fn3;
68419
+ this[j + 0 & wrapMask] = fn4;
68196
68420
  this[j + 1 & wrapMask] = receiver;
68197
68421
  this[j + 2 & wrapMask] = arg;
68198
68422
  this._length = length;
@@ -68265,10 +68489,10 @@ var bluebird = { exports: {} };
68265
68489
  module3.exports = function(Promise2, PromiseArray, apiRejection, tryConvertToPromise, INTERNAL, debug) {
68266
68490
  var util2 = _dereq_2("./util");
68267
68491
  var tryCatch = util2.tryCatch;
68268
- function ReductionPromiseArray(promises, fn3, initialValue, _each) {
68492
+ function ReductionPromiseArray(promises, fn4, initialValue, _each) {
68269
68493
  this.constructor$(promises);
68270
68494
  var context = Promise2._getContext();
68271
- this._fn = util2.contextBind(context, fn3);
68495
+ this._fn = util2.contextBind(context, fn4);
68272
68496
  if (initialValue !== void 0) {
68273
68497
  initialValue = Promise2.resolve(initialValue);
68274
68498
  initialValue._attachCancellationCallback(this);
@@ -68362,11 +68586,11 @@ var bluebird = { exports: {} };
68362
68586
  }
68363
68587
  value._then(completed, completed, void 0, value, this);
68364
68588
  };
68365
- Promise2.prototype.reduce = function(fn3, initialValue) {
68366
- return reduce(this, fn3, initialValue, null);
68589
+ Promise2.prototype.reduce = function(fn4, initialValue) {
68590
+ return reduce(this, fn4, initialValue, null);
68367
68591
  };
68368
- Promise2.reduce = function(promises, fn3, initialValue, _each) {
68369
- return reduce(promises, fn3, initialValue, _each);
68592
+ Promise2.reduce = function(promises, fn4, initialValue, _each) {
68593
+ return reduce(promises, fn4, initialValue, _each);
68370
68594
  };
68371
68595
  function completed(valueOrReason, array2) {
68372
68596
  if (this.isFulfilled()) {
@@ -68376,11 +68600,11 @@ var bluebird = { exports: {} };
68376
68600
  }
68377
68601
  }
68378
68602
  __name(completed, "completed");
68379
- function reduce(promises, fn3, initialValue, _each) {
68380
- if (typeof fn3 !== "function") {
68381
- return apiRejection("expecting a function but got " + util2.classString(fn3));
68603
+ function reduce(promises, fn4, initialValue, _each) {
68604
+ if (typeof fn4 !== "function") {
68605
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
68382
68606
  }
68383
- var array2 = new ReductionPromiseArray(promises, fn3, initialValue, _each);
68607
+ var array2 = new ReductionPromiseArray(promises, fn4, initialValue, _each);
68384
68608
  return array2.promise();
68385
68609
  }
68386
68610
  __name(reduce, "reduce");
@@ -68399,13 +68623,13 @@ var bluebird = { exports: {} };
68399
68623
  function gotValue(value) {
68400
68624
  var array2 = this.array;
68401
68625
  var promise = array2._promise;
68402
- var fn3 = tryCatch(array2._fn);
68626
+ var fn4 = tryCatch(array2._fn);
68403
68627
  promise._pushContext();
68404
68628
  var ret;
68405
68629
  if (array2._eachValues !== void 0) {
68406
- ret = fn3.call(promise._boundValue(), value, this.index, this.length);
68630
+ ret = fn4.call(promise._boundValue(), value, this.index, this.length);
68407
68631
  } else {
68408
- ret = fn3.call(
68632
+ ret = fn4.call(
68409
68633
  promise._boundValue(),
68410
68634
  this.accum,
68411
68635
  value,
@@ -68437,15 +68661,15 @@ var bluebird = { exports: {} };
68437
68661
  if (util2.isNode && typeof MutationObserver === "undefined") {
68438
68662
  var GlobalSetImmediate = commonjsGlobal.setImmediate;
68439
68663
  var ProcessNextTick = process.nextTick;
68440
- schedule = util2.isRecentNode ? function(fn3) {
68441
- GlobalSetImmediate.call(commonjsGlobal, fn3);
68442
- } : function(fn3) {
68443
- ProcessNextTick.call(process, fn3);
68664
+ schedule = util2.isRecentNode ? function(fn4) {
68665
+ GlobalSetImmediate.call(commonjsGlobal, fn4);
68666
+ } : function(fn4) {
68667
+ ProcessNextTick.call(process, fn4);
68444
68668
  };
68445
68669
  } else if (typeof NativePromise === "function" && typeof NativePromise.resolve === "function") {
68446
68670
  var nativePromise = NativePromise.resolve();
68447
- schedule = /* @__PURE__ */ __name(function(fn3) {
68448
- nativePromise.then(fn3);
68671
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68672
+ nativePromise.then(fn4);
68449
68673
  }, "schedule");
68450
68674
  } else if (typeof MutationObserver !== "undefined" && !(typeof window !== "undefined" && window.navigator && (window.navigator.standalone || window.cordova)) && "classList" in document.documentElement) {
68451
68675
  schedule = function() {
@@ -68464,22 +68688,22 @@ var bluebird = { exports: {} };
68464
68688
  toggleScheduled = true;
68465
68689
  div22.classList.toggle("foo");
68466
68690
  }, "scheduleToggle");
68467
- return /* @__PURE__ */ __name(function schedule2(fn3) {
68691
+ return /* @__PURE__ */ __name(function schedule2(fn4) {
68468
68692
  var o3 = new MutationObserver(function() {
68469
68693
  o3.disconnect();
68470
- fn3();
68694
+ fn4();
68471
68695
  });
68472
68696
  o3.observe(div2, opts2);
68473
68697
  scheduleToggle();
68474
68698
  }, "schedule");
68475
68699
  }();
68476
68700
  } else if (typeof setImmediate !== "undefined") {
68477
- schedule = /* @__PURE__ */ __name(function(fn3) {
68478
- setImmediate(fn3);
68701
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68702
+ setImmediate(fn4);
68479
68703
  }, "schedule");
68480
68704
  } else if (typeof setTimeout !== "undefined") {
68481
- schedule = /* @__PURE__ */ __name(function(fn3) {
68482
- setTimeout(fn3, 0);
68705
+ schedule = /* @__PURE__ */ __name(function(fn4) {
68706
+ setTimeout(fn4, 0);
68483
68707
  }, "schedule");
68484
68708
  } else {
68485
68709
  schedule = noAsyncScheduler;
@@ -69007,14 +69231,14 @@ var bluebird = { exports: {} };
69007
69231
  Disposer.isDisposer = function(d2) {
69008
69232
  return d2 != null && typeof d2.resource === "function" && typeof d2.tryDispose === "function";
69009
69233
  };
69010
- function FunctionDisposer(fn3, promise, context) {
69011
- this.constructor$(fn3, promise, context);
69234
+ function FunctionDisposer(fn4, promise, context) {
69235
+ this.constructor$(fn4, promise, context);
69012
69236
  }
69013
69237
  __name(FunctionDisposer, "FunctionDisposer");
69014
69238
  inherits2(FunctionDisposer, Disposer);
69015
69239
  FunctionDisposer.prototype.doDispose = function(resource, inspection) {
69016
- var fn3 = this.data();
69017
- return fn3.call(resource, resource, inspection);
69240
+ var fn4 = this.data();
69241
+ return fn4.call(resource, resource, inspection);
69018
69242
  };
69019
69243
  function maybeUnwrapDisposer(value) {
69020
69244
  if (Disposer.isDisposer(value)) {
@@ -69045,9 +69269,9 @@ var bluebird = { exports: {} };
69045
69269
  return apiRejection(
69046
69270
  "you must pass at least 2 arguments to Promise.using"
69047
69271
  );
69048
- var fn3 = arguments[len - 1];
69049
- if (typeof fn3 !== "function") {
69050
- return apiRejection("expecting a function but got " + util2.classString(fn3));
69272
+ var fn4 = arguments[len - 1];
69273
+ if (typeof fn4 !== "function") {
69274
+ return apiRejection("expecting a function but got " + util2.classString(fn4));
69051
69275
  }
69052
69276
  var input;
69053
69277
  var spreadArgs = true;
@@ -69094,8 +69318,8 @@ var bluebird = { exports: {} };
69094
69318
  inspections[i2] = inspection.value();
69095
69319
  }
69096
69320
  promise._pushContext();
69097
- fn3 = tryCatch(fn3);
69098
- var ret = spreadArgs ? fn3.apply(void 0, inspections) : fn3(inspections);
69321
+ fn4 = tryCatch(fn4);
69322
+ var ret = spreadArgs ? fn4.apply(void 0, inspections) : fn4(inspections);
69099
69323
  var promiseCreated = promise._popContext();
69100
69324
  debug.checkForgottenReturns(
69101
69325
  ret,
@@ -69127,9 +69351,9 @@ var bluebird = { exports: {} };
69127
69351
  this._bitField = this._bitField & ~131072;
69128
69352
  this._disposer = void 0;
69129
69353
  };
69130
- Promise2.prototype.disposer = function(fn3) {
69131
- if (typeof fn3 === "function") {
69132
- return new FunctionDisposer(fn3, this, createContext());
69354
+ Promise2.prototype.disposer = function(fn4) {
69355
+ if (typeof fn4 === "function") {
69356
+ return new FunctionDisposer(fn4, this, createContext());
69133
69357
  }
69134
69358
  throw new TypeError2();
69135
69359
  };
@@ -69151,8 +69375,8 @@ var bluebird = { exports: {} };
69151
69375
  }
69152
69376
  }
69153
69377
  __name(tryCatcher, "tryCatcher");
69154
- function tryCatch(fn3) {
69155
- tryCatchTarget = fn3;
69378
+ function tryCatch(fn4) {
69379
+ tryCatchTarget = fn4;
69156
69380
  return tryCatcher;
69157
69381
  }
69158
69382
  __name(tryCatch, "tryCatch");
@@ -69289,13 +69513,13 @@ var bluebird = { exports: {} };
69289
69513
  }
69290
69514
  }();
69291
69515
  var thisAssignmentPattern = /this\s*\.\s*\S+\s*=/;
69292
- function isClass(fn3) {
69516
+ function isClass(fn4) {
69293
69517
  try {
69294
- if (typeof fn3 === "function") {
69295
- var keys5 = es5.names(fn3.prototype);
69518
+ if (typeof fn4 === "function") {
69519
+ var keys5 = es5.names(fn4.prototype);
69296
69520
  var hasMethods = es5.isES5 && keys5.length > 1;
69297
69521
  var hasMethodsOtherThanConstructor = keys5.length > 0 && !(keys5.length === 1 && keys5[0] === "constructor");
69298
- var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn3 + "") && es5.names(fn3).length > 0;
69522
+ var hasThisAssignmentAndStaticMethods = thisAssignmentPattern.test(fn4 + "") && es5.names(fn4).length > 0;
69299
69523
  if (hasMethods || hasMethodsOtherThanConstructor || hasThisAssignmentAndStaticMethods) {
69300
69524
  return true;
69301
69525
  }
@@ -69467,8 +69691,8 @@ var bluebird = { exports: {} };
69467
69691
  }
69468
69692
  __name(contextBind, "contextBind");
69469
69693
  var ret = {
69470
- setReflectHandler: function(fn3) {
69471
- reflectHandler = fn3;
69694
+ setReflectHandler: function(fn4) {
69695
+ reflectHandler = fn4;
69472
69696
  },
69473
69697
  isClass,
69474
69698
  isIdentifier,
@@ -71217,6 +71441,7 @@ function UploaderInner({
71217
71441
  // called when a file link in the filelist is clicked
71218
71442
  dropzoneProps = {},
71219
71443
  overflowList,
71444
+ autoUnzip,
71220
71445
  disabled,
71221
71446
  initializeForm,
71222
71447
  showFilesCount,
@@ -71241,7 +71466,7 @@ function UploaderInner({
71241
71466
  validateAgainstSchema = validateAgainstSchemaStore.current;
71242
71467
  }
71243
71468
  const accept = !_accept ? void 0 : lodashExports.isPlainObject(_accept) ? [_accept] : lodashExports.isArray(_accept) ? _accept : _accept.split(",").map((a2) => ({ type: a2 }));
71244
- if (validateAgainstSchemaStore.current && accept && !accept.some((a2) => a2.type === "zip")) {
71469
+ if ((validateAgainstSchema || autoUnzip) && accept && !accept.some((a2) => a2.type === "zip")) {
71245
71470
  accept == null ? void 0 : accept.unshift({
71246
71471
  type: "zip",
71247
71472
  description: "Any of the following types, just compressed"
@@ -71602,7 +71827,7 @@ function UploaderInner({
71602
71827
  var _a3, _b3;
71603
71828
  let acceptedFiles = [];
71604
71829
  for (const file of _acceptedFiles) {
71605
- if (validateAgainstSchema && isZipFile(file)) {
71830
+ if ((validateAgainstSchema || autoUnzip) && isZipFile(file)) {
71606
71831
  const files = yield filterFilesInZip(
71607
71832
  file,
71608
71833
  ((_a3 = simpleAccept == null ? void 0 : simpleAccept.split(", ")) == null ? void 0 : _a3.map((a2) => a2.startsWith(".") ? a2 : "." + a2)) || []
@@ -71627,9 +71852,7 @@ function UploaderInner({
71627
71852
  if (!acceptedFiles.length)
71628
71853
  return;
71629
71854
  setLoading(true);
71630
- if (fileLimit) {
71631
- acceptedFiles = acceptedFiles.slice(0, fileLimit);
71632
- }
71855
+ acceptedFiles = trimFiles(acceptedFiles, fileLimit);
71633
71856
  acceptedFiles.forEach((file) => {
71634
71857
  file.preview = URL.createObjectURL(file);
71635
71858
  file.loading = true;
@@ -71815,9 +72038,9 @@ function UploaderInner({
71815
72038
  `It looks like there wasn't any data in your file. Please add some data and try again`
71816
72039
  );
71817
72040
  }
71818
- const cleanedFileList = [...toKeep, ...fileListToUse].slice(
71819
- 0,
71820
- fileLimit ? fileLimit : void 0
72041
+ const cleanedFileList = trimFiles(
72042
+ [...toKeep, ...fileListToUse],
72043
+ fileLimit
71821
72044
  );
71822
72045
  handleSecondHalfOfUpload({ acceptedFiles, cleanedFileList });
71823
72046
  })
@@ -72065,6 +72288,18 @@ function stripId(ents = []) {
72065
72288
  __name(stripId, "stripId");
72066
72289
  const manualEnterMessage = "Build CSV File";
72067
72290
  const manualEnterSubMessage = "Paste or type data to build a CSV file";
72291
+ function trimFiles(incomingFiles, fileLimit) {
72292
+ if (fileLimit) {
72293
+ if (fileLimit && incomingFiles.length > fileLimit) {
72294
+ window.toastr && window.toastr.warning(
72295
+ `Detected additional files in your upload that we are ignoring. You can only upload ${fileLimit} file${fileLimit > 1 ? "s" : ""} at a time.`
72296
+ );
72297
+ }
72298
+ return incomingFiles.slice(0, fileLimit);
72299
+ }
72300
+ return incomingFiles;
72301
+ }
72302
+ __name(trimFiles, "trimFiles");
72068
72303
  const style$w = "";
72069
72304
  function DNALoader({ style: style2, className }) {
72070
72305
  return /* @__PURE__ */ React$2.createElement("div", { className: classNames("dna-loader", className), style: style2 }, /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }), /* @__PURE__ */ React$2.createElement("div", { className: "nucleobase" }));
@@ -74097,11 +74332,11 @@ var Resizer = (
74097
74332
  }(React__namespace.PureComponent)
74098
74333
  );
74099
74334
  var src = { exports: {} };
74100
- function memoize(fn3, options) {
74335
+ function memoize(fn4, options) {
74101
74336
  var cache2 = options && options.cache ? options.cache : cacheDefault;
74102
74337
  var serializer = options && options.serializer ? options.serializer : serializerDefault;
74103
74338
  var strategy = options && options.strategy ? options.strategy : strategyDefault;
74104
- return strategy(fn3, {
74339
+ return strategy(fn4, {
74105
74340
  cache: cache2,
74106
74341
  serializer
74107
74342
  });
@@ -74111,40 +74346,40 @@ function isPrimitive(value) {
74111
74346
  return value == null || typeof value === "number" || typeof value === "boolean";
74112
74347
  }
74113
74348
  __name(isPrimitive, "isPrimitive");
74114
- function monadic(fn3, cache2, serializer, arg) {
74349
+ function monadic(fn4, cache2, serializer, arg) {
74115
74350
  var cacheKey = isPrimitive(arg) ? arg : serializer(arg);
74116
74351
  var computedValue = cache2.get(cacheKey);
74117
74352
  if (typeof computedValue === "undefined") {
74118
- computedValue = fn3.call(this, arg);
74353
+ computedValue = fn4.call(this, arg);
74119
74354
  cache2.set(cacheKey, computedValue);
74120
74355
  }
74121
74356
  return computedValue;
74122
74357
  }
74123
74358
  __name(monadic, "monadic");
74124
- function variadic(fn3, cache2, serializer) {
74359
+ function variadic(fn4, cache2, serializer) {
74125
74360
  var args = Array.prototype.slice.call(arguments, 3);
74126
74361
  var cacheKey = serializer(args);
74127
74362
  var computedValue = cache2.get(cacheKey);
74128
74363
  if (typeof computedValue === "undefined") {
74129
- computedValue = fn3.apply(this, args);
74364
+ computedValue = fn4.apply(this, args);
74130
74365
  cache2.set(cacheKey, computedValue);
74131
74366
  }
74132
74367
  return computedValue;
74133
74368
  }
74134
74369
  __name(variadic, "variadic");
74135
- function assemble(fn3, context, strategy, cache2, serialize2) {
74370
+ function assemble(fn4, context, strategy, cache2, serialize2) {
74136
74371
  return strategy.bind(
74137
74372
  context,
74138
- fn3,
74373
+ fn4,
74139
74374
  cache2,
74140
74375
  serialize2
74141
74376
  );
74142
74377
  }
74143
74378
  __name(assemble, "assemble");
74144
- function strategyDefault(fn3, options) {
74145
- var strategy = fn3.length === 1 ? monadic : variadic;
74379
+ function strategyDefault(fn4, options) {
74380
+ var strategy = fn4.length === 1 ? monadic : variadic;
74146
74381
  return assemble(
74147
- fn3,
74382
+ fn4,
74148
74383
  this,
74149
74384
  strategy,
74150
74385
  options.cache.create(),
@@ -74152,10 +74387,10 @@ function strategyDefault(fn3, options) {
74152
74387
  );
74153
74388
  }
74154
74389
  __name(strategyDefault, "strategyDefault");
74155
- function strategyVariadic(fn3, options) {
74390
+ function strategyVariadic(fn4, options) {
74156
74391
  var strategy = variadic;
74157
74392
  return assemble(
74158
- fn3,
74393
+ fn4,
74159
74394
  this,
74160
74395
  strategy,
74161
74396
  options.cache.create(),
@@ -74163,10 +74398,10 @@ function strategyVariadic(fn3, options) {
74163
74398
  );
74164
74399
  }
74165
74400
  __name(strategyVariadic, "strategyVariadic");
74166
- function strategyMonadic(fn3, options) {
74401
+ function strategyMonadic(fn4, options) {
74167
74402
  var strategy = monadic;
74168
74403
  return assemble(
74169
- fn3,
74404
+ fn4,
74170
74405
  this,
74171
74406
  strategy,
74172
74407
  options.cache.create(),
@@ -80711,8 +80946,8 @@ __name(requireEmpty, "requireEmpty");
80711
80946
  }
80712
80947
  }, "datesDiffFilter");
80713
80948
  diffFilter$2.filterName = "dates";
80714
- function createCommonjsModule(fn3, module3) {
80715
- return module3 = { exports: {} }, fn3(module3, module3.exports), module3.exports;
80949
+ function createCommonjsModule(fn4, module3) {
80950
+ return module3 = { exports: {} }, fn4(module3, module3.exports), module3.exports;
80716
80951
  }
80717
80952
  __name(createCommonjsModule, "createCommonjsModule");
80718
80953
  var diffMatchPatch = createCommonjsModule(function(module3) {
@@ -82424,7 +82659,7 @@ __name(requireEmpty, "requireEmpty");
82424
82659
  }, "formatDeltaChildren")
82425
82660
  }, {
82426
82661
  key: "forEachDeltaKey",
82427
- value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn3) {
82662
+ value: /* @__PURE__ */ __name(function forEachDeltaKey(delta, left2, fn4) {
82428
82663
  var keys5 = getObjectKeys(delta);
82429
82664
  var arrayKeys = delta._t === "a";
82430
82665
  var moveDestinations = {};
@@ -82466,7 +82701,7 @@ __name(requireEmpty, "requireEmpty");
82466
82701
  }
82467
82702
  var leftKey = arrayKeys ? typeof key === "number" ? key : parseInt(trimUnderscore(key), 10) : key;
82468
82703
  var isLast = index3 === length - 1;
82469
- fn3(key, leftKey, moveDestinations[leftKey], isLast);
82704
+ fn4(key, leftKey, moveDestinations[leftKey], isLast);
82470
82705
  }
82471
82706
  }, "forEachDeltaKey")
82472
82707
  }, {
@@ -82687,16 +82922,16 @@ __name(requireEmpty, "requireEmpty");
82687
82922
  var textContent = _ref.textContent, innerText = _ref.innerText;
82688
82923
  return textContent || innerText;
82689
82924
  }, "getElementText");
82690
- var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn3) {
82925
+ var eachByQuery = /* @__PURE__ */ __name(function eachByQuery2(el, query, fn4) {
82691
82926
  var elems = el.querySelectorAll(query);
82692
82927
  for (var i = 0, l2 = elems.length; i < l2; i++) {
82693
- fn3(elems[i]);
82928
+ fn4(elems[i]);
82694
82929
  }
82695
82930
  }, "eachByQuery");
82696
- var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn3) {
82931
+ var eachChildren = /* @__PURE__ */ __name(function eachChildren2(_ref2, fn4) {
82697
82932
  var children = _ref2.children;
82698
82933
  for (var i = 0, l2 = children.length; i < l2; i++) {
82699
- fn3(children[i], i);
82934
+ fn4(children[i], i);
82700
82935
  }
82701
82936
  }, "eachChildren");
82702
82937
  eachByQuery(node2, ".jsondiffpatch-arrow", function(_ref3) {
@@ -83133,8 +83368,8 @@ __name(requireEmpty, "requireEmpty");
83133
83368
  return [];
83134
83369
  });
83135
83370
  return arr.map(function(item) {
83136
- var position2 = fns.map(function(fn3) {
83137
- return fn3(item);
83371
+ var position2 = fns.map(function(fn4) {
83372
+ return fn4(item);
83138
83373
  }).indexOf(true);
83139
83374
  if (position2 < 0) {
83140
83375
  position2 = fns.length;
@@ -100366,8 +100601,8 @@ var buffer$2 = {};
100366
100601
  }
100367
100602
  return table2;
100368
100603
  }();
100369
- function defineBigIntMethod(fn3) {
100370
- return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn3;
100604
+ function defineBigIntMethod(fn4) {
100605
+ return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn4;
100371
100606
  }
100372
100607
  __name(defineBigIntMethod, "defineBigIntMethod");
100373
100608
  function BufferBigIntNotDefined() {
@@ -101298,9 +101533,9 @@ function requireBrowser() {
101298
101533
  return browser;
101299
101534
  hasRequiredBrowser = 1;
101300
101535
  browser = deprecate;
101301
- function deprecate(fn3, msg) {
101536
+ function deprecate(fn4, msg) {
101302
101537
  if (config("noDeprecation")) {
101303
- return fn3;
101538
+ return fn4;
101304
101539
  }
101305
101540
  var warned = false;
101306
101541
  function deprecated2() {
@@ -101314,7 +101549,7 @@ function requireBrowser() {
101314
101549
  }
101315
101550
  warned = true;
101316
101551
  }
101317
- return fn3.apply(this, arguments);
101552
+ return fn4.apply(this, arguments);
101318
101553
  }
101319
101554
  __name(deprecated2, "deprecated");
101320
101555
  return deprecated2;
@@ -102309,15 +102544,15 @@ function require_stream_readable() {
102309
102544
  inherits_browserExports(Readable, Stream2);
102310
102545
  var errorOrDestroy = destroyImpl.errorOrDestroy;
102311
102546
  var kProxyEvents = ["error", "close", "destroy", "pause", "resume"];
102312
- function prependListener(emitter, event, fn3) {
102547
+ function prependListener(emitter, event, fn4) {
102313
102548
  if (typeof emitter.prependListener === "function")
102314
- return emitter.prependListener(event, fn3);
102549
+ return emitter.prependListener(event, fn4);
102315
102550
  if (!emitter._events || !emitter._events[event])
102316
- emitter.on(event, fn3);
102551
+ emitter.on(event, fn4);
102317
102552
  else if (Array.isArray(emitter._events[event]))
102318
- emitter._events[event].unshift(fn3);
102553
+ emitter._events[event].unshift(fn4);
102319
102554
  else
102320
- emitter._events[event] = [fn3, emitter._events[event]];
102555
+ emitter._events[event] = [fn4, emitter._events[event]];
102321
102556
  }
102322
102557
  __name(prependListener, "prependListener");
102323
102558
  function ReadableState(options, stream, isDuplex) {
@@ -102833,8 +103068,8 @@ function require_stream_readable() {
102833
103068
  dest.emit("unpipe", this, unpipeInfo);
102834
103069
  return this;
102835
103070
  };
102836
- Readable.prototype.on = function(ev, fn3) {
102837
- var res = Stream2.prototype.on.call(this, ev, fn3);
103071
+ Readable.prototype.on = function(ev, fn4) {
103072
+ var res = Stream2.prototype.on.call(this, ev, fn4);
102838
103073
  var state2 = this._readableState;
102839
103074
  if (ev === "data") {
102840
103075
  state2.readableListening = this.listenerCount("readable") > 0;
@@ -102856,8 +103091,8 @@ function require_stream_readable() {
102856
103091
  return res;
102857
103092
  };
102858
103093
  Readable.prototype.addListener = Readable.prototype.on;
102859
- Readable.prototype.removeListener = function(ev, fn3) {
102860
- var res = Stream2.prototype.removeListener.call(this, ev, fn3);
103094
+ Readable.prototype.removeListener = function(ev, fn4) {
103095
+ var res = Stream2.prototype.removeListener.call(this, ev, fn4);
102861
103096
  if (ev === "readable") {
102862
103097
  process.nextTick(updateReadableListening, this);
102863
103098
  }
@@ -103282,8 +103517,8 @@ function requirePipeline() {
103282
103517
  };
103283
103518
  }
103284
103519
  __name(destroyer, "destroyer");
103285
- function call2(fn3) {
103286
- fn3();
103520
+ function call2(fn4) {
103521
+ fn4();
103287
103522
  }
103288
103523
  __name(call2, "call");
103289
103524
  function pipe(from3, to) {
@@ -104690,9 +104925,9 @@ var slzh = /* @__PURE__ */ __name(function(d2, b3) {
104690
104925
  return b3 + 30 + b2(d2, b3 + 26) + b2(d2, b3 + 28);
104691
104926
  }, "slzh");
104692
104927
  var zh = /* @__PURE__ */ __name(function(d2, b3, z2) {
104693
- var fnl = b2(d2, b3 + 28), fn3 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
104928
+ var fnl = b2(d2, b3 + 28), fn4 = strFromU8(d2.subarray(b3 + 46, b3 + 46 + fnl), !(b2(d2, b3 + 8) & 2048)), es = b3 + 46 + fnl, bs = b4(d2, b3 + 20);
104694
104929
  var _a2 = z2 && bs == 4294967295 ? z64e(d2, es) : [bs, b4(d2, b3 + 24), b4(d2, b3 + 42)], sc = _a2[0], su = _a2[1], off2 = _a2[2];
104695
- return [b2(d2, b3 + 10), sc, su, fn3, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104930
+ return [b2(d2, b3 + 10), sc, su, fn4, es + b2(d2, b3 + 30) + b2(d2, b3 + 32), off2];
104696
104931
  }, "zh");
104697
104932
  var z64e = /* @__PURE__ */ __name(function(d2, b3) {
104698
104933
  for (; b2(d2, b3) != 1; b3 += 4 + b2(d2, b3 + 2))
@@ -104721,18 +104956,18 @@ function unzipSync(data, opts2) {
104721
104956
  }
104722
104957
  var fltr = opts2 && opts2.filter;
104723
104958
  for (var i = 0; i < c2; ++i) {
104724
- var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn3 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
104959
+ var _a2 = zh(data, o2, z2), c_2 = _a2[0], sc = _a2[1], su = _a2[2], fn4 = _a2[3], no = _a2[4], off2 = _a2[5], b3 = slzh(data, off2);
104725
104960
  o2 = no;
104726
104961
  if (!fltr || fltr({
104727
- name: fn3,
104962
+ name: fn4,
104728
104963
  size: sc,
104729
104964
  originalSize: su,
104730
104965
  compression: c_2
104731
104966
  })) {
104732
104967
  if (!c_2)
104733
- files[fn3] = slc(data, b3, b3 + sc);
104968
+ files[fn4] = slc(data, b3, b3 + sc);
104734
104969
  else if (c_2 == 8)
104735
- files[fn3] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104970
+ files[fn4] = inflateSync(data.subarray(b3, b3 + sc), { out: new u8(su) });
104736
104971
  else
104737
104972
  err(14, "unknown compression type " + c_2);
104738
104973
  }
@@ -105609,15 +105844,15 @@ function link(from3, to) {
105609
105844
  __name(link, "link");
105610
105845
  function wrapConversion(toModel, graph) {
105611
105846
  const path2 = [graph[toModel].parent, toModel];
105612
- let fn3 = conversions$1[graph[toModel].parent][toModel];
105847
+ let fn4 = conversions$1[graph[toModel].parent][toModel];
105613
105848
  let cur = graph[toModel].parent;
105614
105849
  while (graph[cur].parent) {
105615
105850
  path2.unshift(graph[cur].parent);
105616
- fn3 = link(conversions$1[graph[cur].parent][cur], fn3);
105851
+ fn4 = link(conversions$1[graph[cur].parent][cur], fn4);
105617
105852
  cur = graph[cur].parent;
105618
105853
  }
105619
- fn3.conversion = path2;
105620
- return fn3;
105854
+ fn4.conversion = path2;
105855
+ return fn4;
105621
105856
  }
105622
105857
  __name(wrapConversion, "wrapConversion");
105623
105858
  var route$1 = /* @__PURE__ */ __name(function(fromModel) {
@@ -105638,7 +105873,7 @@ const conversions = conversions$2;
105638
105873
  const route = route$1;
105639
105874
  const convert$1 = {};
105640
105875
  const models = Object.keys(conversions);
105641
- function wrapRaw(fn3) {
105876
+ function wrapRaw(fn4) {
105642
105877
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105643
105878
  const arg0 = args[0];
105644
105879
  if (arg0 === void 0 || arg0 === null) {
@@ -105647,15 +105882,15 @@ function wrapRaw(fn3) {
105647
105882
  if (arg0.length > 1) {
105648
105883
  args = arg0;
105649
105884
  }
105650
- return fn3(args);
105885
+ return fn4(args);
105651
105886
  }, "wrappedFn");
105652
- if ("conversion" in fn3) {
105653
- wrappedFn.conversion = fn3.conversion;
105887
+ if ("conversion" in fn4) {
105888
+ wrappedFn.conversion = fn4.conversion;
105654
105889
  }
105655
105890
  return wrappedFn;
105656
105891
  }
105657
105892
  __name(wrapRaw, "wrapRaw");
105658
- function wrapRounded(fn3) {
105893
+ function wrapRounded(fn4) {
105659
105894
  const wrappedFn = /* @__PURE__ */ __name(function(...args) {
105660
105895
  const arg0 = args[0];
105661
105896
  if (arg0 === void 0 || arg0 === null) {
@@ -105664,7 +105899,7 @@ function wrapRounded(fn3) {
105664
105899
  if (arg0.length > 1) {
105665
105900
  args = arg0;
105666
105901
  }
105667
- const result = fn3(args);
105902
+ const result = fn4(args);
105668
105903
  if (typeof result === "object") {
105669
105904
  for (let len = result.length, i = 0; i < len; i++) {
105670
105905
  result[i] = Math.round(result[i]);
@@ -105672,8 +105907,8 @@ function wrapRounded(fn3) {
105672
105907
  }
105673
105908
  return result;
105674
105909
  }, "wrappedFn");
105675
- if ("conversion" in fn3) {
105676
- wrappedFn.conversion = fn3.conversion;
105910
+ if ("conversion" in fn4) {
105911
+ wrappedFn.conversion = fn4.conversion;
105677
105912
  }
105678
105913
  return wrappedFn;
105679
105914
  }
@@ -105685,9 +105920,9 @@ models.forEach((fromModel) => {
105685
105920
  const routes = route(fromModel);
105686
105921
  const routeModels = Object.keys(routes);
105687
105922
  routeModels.forEach((toModel) => {
105688
- const fn3 = routes[toModel];
105689
- convert$1[fromModel][toModel] = wrapRounded(fn3);
105690
- convert$1[fromModel][toModel].raw = wrapRaw(fn3);
105923
+ const fn4 = routes[toModel];
105924
+ convert$1[fromModel][toModel] = wrapRounded(fn4);
105925
+ convert$1[fromModel][toModel].raw = wrapRaw(fn4);
105691
105926
  });
105692
105927
  });
105693
105928
  var colorConvert = convert$1;
@@ -107685,8 +107920,8 @@ var hasSymbols2 = typeof Symbol === "function" && typeof Symbol("foo") === "symb
107685
107920
  var toStr$1 = Object.prototype.toString;
107686
107921
  var concat = Array.prototype.concat;
107687
107922
  var origDefineProperty = Object.defineProperty;
107688
- var isFunction$1 = /* @__PURE__ */ __name(function(fn3) {
107689
- return typeof fn3 === "function" && toStr$1.call(fn3) === "[object Function]";
107923
+ var isFunction$1 = /* @__PURE__ */ __name(function(fn4) {
107924
+ return typeof fn4 === "function" && toStr$1.call(fn4) === "[object Function]";
107690
107925
  }, "isFunction$1");
107691
107926
  var hasPropertyDescriptors2 = hasPropertyDescriptors_1();
107692
107927
  var supportsDescriptors$2 = origDefineProperty && hasPropertyDescriptors2;
@@ -111175,7 +111410,7 @@ function doAnySpanOrigin(annotations) {
111175
111410
  });
111176
111411
  }
111177
111412
  __name(doAnySpanOrigin, "doAnySpanOrigin");
111178
- const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111413
+ const connectToEditor = /* @__PURE__ */ __name((fn4) => {
111179
111414
  return reactRedux.connect(
111180
111415
  (state2, ownProps, ...rest) => {
111181
111416
  const editor = state2.VectorEditor[ownProps.editorName] || {};
@@ -111184,7 +111419,7 @@ const connectToEditor = /* @__PURE__ */ __name((fn3) => {
111184
111419
  state2.VectorEditor.__allEditorsOptions.uppercaseSequenceMapFont,
111185
111420
  editor.sequenceData.sequence
111186
111421
  );
111187
- return fn3 ? fn3(editor, ownProps, ...rest, state2) : {};
111422
+ return fn4 ? fn4(editor, ownProps, ...rest, state2) : {};
111188
111423
  },
111189
111424
  mapDispatchToActions
111190
111425
  // function mergeProps(propsFromState, propsFromDispatch) {
@@ -111806,7 +112041,7 @@ function memoizeOne(resultFn, isEqual2) {
111806
112041
  return memoized;
111807
112042
  }
111808
112043
  __name(memoizeOne, "memoizeOne");
111809
- var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
112044
+ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn4) {
111810
112045
  var lastArgs = [];
111811
112046
  var frameId = null;
111812
112047
  var wrapperFn = /* @__PURE__ */ __name(function wrapperFn2() {
@@ -111819,7 +112054,7 @@ var rafSchd = /* @__PURE__ */ __name(function rafSchd2(fn3) {
111819
112054
  }
111820
112055
  frameId = requestAnimationFrame(function() {
111821
112056
  frameId = null;
111822
- fn3.apply(void 0, lastArgs);
112057
+ fn4.apply(void 0, lastArgs);
111823
112058
  });
111824
112059
  }, "wrapperFn");
111825
112060
  wrapperFn.cancel = function() {
@@ -112048,9 +112283,9 @@ const patch = /* @__PURE__ */ __name(function(line, value, otherValue) {
112048
112283
  }, "patch");
112049
112284
  const distance$1 = /* @__PURE__ */ __name((point1, point2) => Math.sqrt(__pow(point2.x - point1.x, 2) + __pow(point2.y - point1.y, 2)), "distance$1");
112050
112285
  const closest$1 = /* @__PURE__ */ __name((target, points) => Math.min(...points.map((point2) => distance$1(target, point2))), "closest$1");
112051
- const apply = /* @__PURE__ */ __name((fn3) => (point2) => ({
112052
- x: fn3(point2.x),
112053
- y: fn3(point2.y)
112286
+ const apply = /* @__PURE__ */ __name((fn4) => (point2) => ({
112287
+ x: fn4(point2.x),
112288
+ y: fn4(point2.y)
112054
112289
  }), "apply");
112055
112290
  var executeClip = /* @__PURE__ */ __name((frame, subject) => {
112056
112291
  const result = getRect({
@@ -114697,11 +114932,11 @@ var getAsyncMarshal = /* @__PURE__ */ __name(() => {
114697
114932
  const [entry] = entries2.splice(index2, 1);
114698
114933
  entry.callback();
114699
114934
  }, "execute");
114700
- const add3 = /* @__PURE__ */ __name((fn3) => {
114935
+ const add3 = /* @__PURE__ */ __name((fn4) => {
114701
114936
  const timerId = setTimeout(() => execute2(timerId));
114702
114937
  const entry = {
114703
114938
  timerId,
114704
- callback: fn3
114939
+ callback: fn4
114705
114940
  };
114706
114941
  entries2.push(entry);
114707
114942
  }, "add");
@@ -114747,8 +114982,8 @@ const isCriticalEqual = /* @__PURE__ */ __name((first, second) => {
114747
114982
  const isDroppableEqual = first.droppable.id === second.droppable.id && first.droppable.type === second.droppable.type;
114748
114983
  return isDraggableEqual && isDroppableEqual;
114749
114984
  }, "isCriticalEqual");
114750
- const withTimings = /* @__PURE__ */ __name((key, fn3) => {
114751
- fn3();
114985
+ const withTimings = /* @__PURE__ */ __name((key, fn4) => {
114986
+ fn4();
114752
114987
  }, "withTimings");
114753
114988
  const getDragStart = /* @__PURE__ */ __name((critical, mode) => ({
114754
114989
  draggableId: critical.draggable.id,
@@ -114780,22 +115015,22 @@ var getPublisher = /* @__PURE__ */ __name((getResponders, announce) => {
114780
115015
  const beforeCapture = /* @__PURE__ */ __name((draggableId, mode) => {
114781
115016
  !!dragging ? invariant$1(false) : void 0;
114782
115017
  withTimings("onBeforeCapture", () => {
114783
- const fn3 = getResponders().onBeforeCapture;
114784
- if (fn3) {
115018
+ const fn4 = getResponders().onBeforeCapture;
115019
+ if (fn4) {
114785
115020
  const before = {
114786
115021
  draggableId,
114787
115022
  mode
114788
115023
  };
114789
- fn3(before);
115024
+ fn4(before);
114790
115025
  }
114791
115026
  });
114792
115027
  }, "beforeCapture");
114793
115028
  const beforeStart = /* @__PURE__ */ __name((critical, mode) => {
114794
115029
  !!dragging ? invariant$1(false) : void 0;
114795
115030
  withTimings("onBeforeDragStart", () => {
114796
- const fn3 = getResponders().onBeforeDragStart;
114797
- if (fn3) {
114798
- fn3(getDragStart(critical, mode));
115031
+ const fn4 = getResponders().onBeforeDragStart;
115032
+ if (fn4) {
115033
+ fn4(getDragStart(critical, mode));
114799
115034
  }
114800
115035
  });
114801
115036
  }, "beforeStart");
@@ -118253,7 +118488,7 @@ __name(PublicDraggable, "PublicDraggable");
118253
118488
  const isEqual = /* @__PURE__ */ __name((base2) => (value) => base2 === value, "isEqual");
118254
118489
  const isScroll = isEqual("scroll");
118255
118490
  const isAuto$1 = isEqual("auto");
118256
- const isEither = /* @__PURE__ */ __name((overflow2, fn3) => fn3(overflow2.overflowX) || fn3(overflow2.overflowY), "isEither");
118491
+ const isEither = /* @__PURE__ */ __name((overflow2, fn4) => fn4(overflow2.overflowX) || fn4(overflow2.overflowY), "isEither");
118257
118492
  const isElementScrollable = /* @__PURE__ */ __name((el) => {
118258
118493
  const style2 = window.getComputedStyle(el);
118259
118494
  const overflow2 = {
@@ -119844,15 +120079,15 @@ function releaseReactionKeyConnection(reactionsForKey) {
119844
120079
  __name(releaseReactionKeyConnection, "releaseReactionKeyConnection");
119845
120080
  var reactionStack = [];
119846
120081
  var isDebugging$1 = false;
119847
- function runAsReaction(reaction, fn3, context, args) {
120082
+ function runAsReaction(reaction, fn4, context, args) {
119848
120083
  if (reaction.unobserved) {
119849
- return Reflect.apply(fn3, context, args);
120084
+ return Reflect.apply(fn4, context, args);
119850
120085
  }
119851
120086
  if (reactionStack.indexOf(reaction) === -1) {
119852
120087
  releaseReaction(reaction);
119853
120088
  try {
119854
120089
  reactionStack.push(reaction);
119855
- return Reflect.apply(fn3, context, args);
120090
+ return Reflect.apply(fn4, context, args);
119856
120091
  } finally {
119857
120092
  reactionStack.pop();
119858
120093
  }
@@ -119898,11 +120133,11 @@ function hasRunningReaction() {
119898
120133
  }
119899
120134
  __name(hasRunningReaction, "hasRunningReaction");
119900
120135
  var IS_REACTION = Symbol("is reaction");
119901
- function observe(fn3, options) {
120136
+ function observe(fn4, options) {
119902
120137
  if (options === void 0)
119903
120138
  options = {};
119904
- var reaction = fn3[IS_REACTION] ? fn3 : /* @__PURE__ */ __name(function reaction2() {
119905
- return runAsReaction(reaction2, fn3, this, arguments);
120139
+ var reaction = fn4[IS_REACTION] ? fn4 : /* @__PURE__ */ __name(function reaction2() {
120140
+ return runAsReaction(reaction2, fn4, this, arguments);
119906
120141
  }, "reaction");
119907
120142
  reaction.scheduler = options.scheduler;
119908
120143
  reaction.debugger = options.debugger;
@@ -120352,13 +120587,13 @@ const scheduler = {
120352
120587
  scheduler.isOn = false;
120353
120588
  }
120354
120589
  };
120355
- function batch(fn3, ctx2, args) {
120590
+ function batch(fn4, ctx2, args) {
120356
120591
  if (scheduler.isOn) {
120357
- return ReactDOM$1.unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120592
+ return ReactDOM$1.unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120358
120593
  }
120359
120594
  try {
120360
120595
  scheduler.on();
120361
- return ReactDOM$1.unstable_batchedUpdates(() => fn3.apply(ctx2, args));
120596
+ return ReactDOM$1.unstable_batchedUpdates(() => fn4.apply(ctx2, args));
120362
120597
  } finally {
120363
120598
  scheduler.flush();
120364
120599
  scheduler.off();
@@ -120366,18 +120601,18 @@ function batch(fn3, ctx2, args) {
120366
120601
  }
120367
120602
  __name(batch, "batch");
120368
120603
  const cache = /* @__PURE__ */ new WeakMap();
120369
- function batchFn(fn3) {
120370
- if (typeof fn3 !== "function") {
120371
- return fn3;
120604
+ function batchFn(fn4) {
120605
+ if (typeof fn4 !== "function") {
120606
+ return fn4;
120372
120607
  }
120373
- let batched = cache.get(fn3);
120608
+ let batched = cache.get(fn4);
120374
120609
  if (!batched) {
120375
- batched = new Proxy(fn3, {
120610
+ batched = new Proxy(fn4, {
120376
120611
  apply(target, thisArg, args) {
120377
120612
  return batch(target, thisArg, args);
120378
120613
  }
120379
120614
  });
120380
- cache.set(fn3, batched);
120615
+ cache.set(fn4, batched);
120381
120616
  }
120382
120617
  return batched;
120383
120618
  }
@@ -121141,8 +121376,23 @@ const withHover = redux.compose(
121141
121376
  }, hoveredAnnotationActions)
121142
121377
  ),
121143
121378
  withHandlers({
121144
- onMouseOver: (props) => (e2) => {
121379
+ onMouseOver: (props) => function(e2) {
121145
121380
  var _a2;
121381
+ const target = e2.target;
121382
+ let alreadyHandled = false;
121383
+ let currentElement = target;
121384
+ while (currentElement) {
121385
+ if (currentElement === e2.currentTarget) {
121386
+ break;
121387
+ }
121388
+ if (currentElement.classList.contains("hoverHelper")) {
121389
+ alreadyHandled = true;
121390
+ break;
121391
+ }
121392
+ currentElement = currentElement.parentElement;
121393
+ }
121394
+ if (alreadyHandled)
121395
+ return;
121146
121396
  const { editorName, id: id2, hoveredAnnotationUpdate: hoveredAnnotationUpdate2 } = props;
121147
121397
  const isIdHashmap = typeof id2 === "object";
121148
121398
  const idToPass = isIdHashmap ? Object.keys(id2)[0] : id2;
@@ -121152,7 +121402,6 @@ const withHover = redux.compose(
121152
121402
  }
121153
121403
  if (window.__veDragging || window.__veScrolling)
121154
121404
  return;
121155
- e2.stopPropagation();
121156
121405
  hoveredAnnotationUpdate2 && hoveredAnnotationUpdate2(idToPass, { editorName });
121157
121406
  },
121158
121407
  onMouseLeave: (props) => (e2) => {
@@ -125692,7 +125941,7 @@ function showFileDialog({ multiple = false, onSelect }) {
125692
125941
  }
125693
125942
  __name(showFileDialog, "showFileDialog");
125694
125943
  const name = "@teselagen/ove";
125695
- const version = "0.3.23";
125944
+ const version = "0.3.25";
125696
125945
  const main = "./src/index.js";
125697
125946
  const exports$1 = {
125698
125947
  ".": {
@@ -126445,8 +126694,7 @@ const getNewTranslationHandler = /* @__PURE__ */ __name((isReverse) => ({
126445
126694
  });
126446
126695
  props.annotationVisibilityShow("translations");
126447
126696
  },
126448
- isHidden: (props) => isProtein(props) || !props.annotationsToSupport || // props.readOnly ||
126449
- !props.annotationsToSupport.translations,
126697
+ isHidden: (props) => isProtein(props) || !props.annotationsToSupport || props.readOnly || !props.annotationsToSupport.translations,
126450
126698
  isDisabled: (props) => (
126451
126699
  /* (props.readOnly && readOnlyDisabledTooltip) || */
126452
126700
  props.sequenceLength === 0 || noSelection(props)
@@ -127808,7 +128056,7 @@ var timeoutDuration = function() {
127808
128056
  }
127809
128057
  return 0;
127810
128058
  }();
127811
- function microtaskDebounce(fn3) {
128059
+ function microtaskDebounce(fn4) {
127812
128060
  var called = false;
127813
128061
  return function() {
127814
128062
  if (called) {
@@ -127817,19 +128065,19 @@ function microtaskDebounce(fn3) {
127817
128065
  called = true;
127818
128066
  window.Promise.resolve().then(function() {
127819
128067
  called = false;
127820
- fn3();
128068
+ fn4();
127821
128069
  });
127822
128070
  };
127823
128071
  }
127824
128072
  __name(microtaskDebounce, "microtaskDebounce");
127825
- function taskDebounce(fn3) {
128073
+ function taskDebounce(fn4) {
127826
128074
  var scheduled = false;
127827
128075
  return function() {
127828
128076
  if (!scheduled) {
127829
128077
  scheduled = true;
127830
128078
  setTimeout(function() {
127831
128079
  scheduled = false;
127832
- fn3();
128080
+ fn4();
127833
128081
  }, timeoutDuration);
127834
128082
  }
127835
128083
  };
@@ -128020,7 +128268,7 @@ var createClass = function() {
128020
128268
  return Constructor;
128021
128269
  };
128022
128270
  }();
128023
- var defineProperty5 = /* @__PURE__ */ __name(function(obj, key, value) {
128271
+ var defineProperty4 = /* @__PURE__ */ __name(function(obj, key, value) {
128024
128272
  if (key in obj) {
128025
128273
  Object.defineProperty(obj, key, {
128026
128274
  value,
@@ -128325,11 +128573,11 @@ function runModifiers(modifiers2, data, ends) {
128325
128573
  if (modifier["function"]) {
128326
128574
  console.warn("`modifier.function` is deprecated, use `modifier.fn`!");
128327
128575
  }
128328
- var fn3 = modifier["function"] || modifier.fn;
128329
- if (modifier.enabled && isFunction(fn3)) {
128576
+ var fn4 = modifier["function"] || modifier.fn;
128577
+ if (modifier.enabled && isFunction(fn4)) {
128330
128578
  data.offsets.popper = getClientRect(data.offsets.popper);
128331
128579
  data.offsets.reference = getClientRect(data.offsets.reference);
128332
- data = fn3(data, modifier);
128580
+ data = fn4(data, modifier);
128333
128581
  }
128334
128582
  });
128335
128583
  return data;
@@ -128631,7 +128879,7 @@ function arrow(data, options) {
128631
128879
  var sideValue = center - data.offsets.popper[side] - popperMarginSide - popperBorderSide;
128632
128880
  sideValue = Math.max(Math.min(popper2[len] - arrowElementSize, sideValue), 0);
128633
128881
  data.arrowElement = arrowElement;
128634
- data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty5(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty5(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128882
+ data.offsets.arrow = (_data$offsets$arrow = {}, defineProperty4(_data$offsets$arrow, side, Math.round(sideValue)), defineProperty4(_data$offsets$arrow, altSide, ""), _data$offsets$arrow);
128635
128883
  return data;
128636
128884
  }
128637
128885
  __name(arrow, "arrow");
@@ -128862,7 +129110,7 @@ function preventOverflow(data, options) {
128862
129110
  if (popper2[placement] < boundaries[placement] && !options.escapeWithReference) {
128863
129111
  value = Math.max(popper2[placement], boundaries[placement]);
128864
129112
  }
128865
- return defineProperty5({}, placement, value);
129113
+ return defineProperty4({}, placement, value);
128866
129114
  }, "primary"),
128867
129115
  secondary: /* @__PURE__ */ __name(function secondary(placement) {
128868
129116
  var mainSide = placement === "right" ? "left" : "top";
@@ -128870,7 +129118,7 @@ function preventOverflow(data, options) {
128870
129118
  if (popper2[placement] > boundaries[placement] && !options.escapeWithReference) {
128871
129119
  value = Math.min(popper2[mainSide], boundaries[placement] - (placement === "right" ? popper2.width : popper2.height));
128872
129120
  }
128873
- return defineProperty5({}, mainSide, value);
129121
+ return defineProperty4({}, mainSide, value);
128874
129122
  }, "secondary")
128875
129123
  };
128876
129124
  order2.forEach(function(placement) {
@@ -128891,8 +129139,8 @@ function shift3(data) {
128891
129139
  var side = isVertical ? "left" : "top";
128892
129140
  var measurement = isVertical ? "width" : "height";
128893
129141
  var shiftOffsets = {
128894
- start: defineProperty5({}, side, reference2[side]),
128895
- end: defineProperty5({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
129142
+ start: defineProperty4({}, side, reference2[side]),
129143
+ end: defineProperty4({}, side, reference2[side] + reference2[measurement] - popper2[measurement])
128896
129144
  };
128897
129145
  data.offsets.popper = _extends$1({}, popper2, shiftOffsets[shiftvariation]);
128898
129146
  }
@@ -131658,8 +131906,8 @@ function chain(...fns) {
131658
131906
  return fns[0];
131659
131907
  return function() {
131660
131908
  let result;
131661
- for (const fn3 of fns) {
131662
- result = fn3.apply(this, arguments) || result;
131909
+ for (const fn4 of fns) {
131910
+ result = fn4.apply(this, arguments) || result;
131663
131911
  }
131664
131912
  return result;
131665
131913
  };
@@ -132879,9 +133127,9 @@ const _UncontrolledSliderWithPlusMinusBtns = class _UncontrolledSliderWithPlusMi
132879
133127
  const { min: min2, max: max2 } = this.props;
132880
133128
  const stepSize = this.props.stepSize || (max2 - min2) / 10;
132881
133129
  if (bindOutsideChangeHelper) {
132882
- bindOutsideChangeHelper.triggerChange = (fn3) => {
133130
+ bindOutsideChangeHelper.triggerChange = (fn4) => {
132883
133131
  const valToPass = lodashExports.isNumber(value) && !isNaN(value) ? value : initialValue;
132884
- return fn3({
133132
+ return fn4({
132885
133133
  value: valToPass,
132886
133134
  changeValue: (newVal2) => {
132887
133135
  const newnew = lodashExports.clamp(newVal2, min2, max2);
@@ -134188,438 +134436,18 @@ function combineLabels(labels, numberOfBuckets) {
134188
134436
  }
134189
134437
  __name(combineLabels, "combineLabels");
134190
134438
  const style$f = "";
134191
- const fontWidthToFontSize = 1.75;
134192
- const getTextLength = /* @__PURE__ */ __name((text2) => {
134193
- let len = (text2 || "Unlabeled").length;
134194
- const nonEnInputReg = /[^\x00-\xff]+/g;
134195
- const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
134196
- nonEnStrings.forEach((str) => len += str.length * 0.5);
134197
- return len;
134198
- }, "getTextLength");
134199
- function Labels({
134200
- labels = [],
134201
- extraSideSpace,
134202
- smartCircViewLabelRender,
134203
- radius: outerRadius,
134204
- editorName,
134205
- noRedux,
134206
- rotationRadians,
134207
- textScalingFactor,
134208
- labelLineIntensity: labelLineIntensity2,
134209
- labelSize: labelSize2 = 8,
134210
- fontHeightMultiplier = 2.4,
134211
- circularViewWidthVsHeightRatio,
134212
- //width of the circular view
134213
- condenseOverflowingXLabels = true
134214
- //set to true to make labels tha
134215
- }) {
134216
- if (!labels.length) {
134217
- return {
134218
- component: null,
134219
- height: 15
134220
- };
134221
- }
134222
- const originalOuterRadius = outerRadius;
134223
- outerRadius += smartCircViewLabelRender ? 10 : 25;
134224
- const radius = outerRadius;
134225
- const outerPointRadius = outerRadius - 20;
134226
- const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
134227
- const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
134228
- const labelPoints = labels.map(function(label) {
134229
- const {
134230
- annotationCenterAngle: _annotationCenterAngle,
134231
- annotationCenterRadius
134232
- } = label;
134233
- const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
134234
- return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
134235
- width: getTextLength(label.text) * fontWidth,
134236
- //three points define the label:
134237
- innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134238
- annotationCenterRadius,
134239
- annotationCenterAngle
134240
- )), {
134241
- radius: annotationCenterRadius,
134242
- angle: annotationCenterAngle
134243
- }),
134244
- truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
134245
- outerPointRadius - 15,
134246
- annotationCenterAngle
134247
- )), {
134248
- radius: outerPointRadius - 15,
134249
- angle: annotationCenterAngle
134250
- }),
134251
- outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
134252
- radius: outerPointRadius,
134253
- angle: annotationCenterAngle
134254
- })
134255
- }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
134256
- radius: radius + 10,
134257
- angle: annotationCenterAngle
134258
- });
134259
- }).map(function(label) {
134260
- label.labelAndSublabels = [label];
134261
- label.labelIds = { [label.id]: true };
134262
- return label;
134263
- });
134264
- let maxRadius = 1;
134265
- const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
134266
- if (smartCircViewLabelRender) {
134267
- const newR = Math.sqrt(
134268
- Math.pow(
134269
- Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
134270
- 2
134271
- ) + Math.pow(Math.abs(originalLabel.y), 2)
134272
- );
134273
- if (newR > maxRadius)
134274
- maxRadius = newR;
134275
- }
134276
- if (originalLabel.highPriorityLabel) {
134277
- return originalLabel;
134278
- }
134279
- const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
134280
- (l2) => l2.highPriorityLabel
134281
- );
134282
- if (_highPrioritySublabel) {
134283
- const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
134284
- [
134285
- "angle",
134286
- "annotationCenterAngle",
134287
- "annotationCenterRadius",
134288
- "innerPoint",
134289
- "labelAndSublabels",
134290
- "labelIds",
134291
- "outerPoint",
134292
- "radius",
134293
- "truncatedInnerPoint",
134294
- "x",
134295
- "y"
134296
- ].forEach((k2) => {
134297
- highPrioritySublabel[k2] = originalLabel[k2];
134298
- });
134299
- delete originalLabel.labelAndSublabels;
134300
- return highPrioritySublabel;
134301
- }
134302
- return originalLabel;
134303
- });
134304
- window.isLabelGroupOpen = false;
134305
- return {
134306
- component: /* @__PURE__ */ React$2.createElement(
134307
- "g",
134308
- {
134309
- key: "veLabels",
134310
- className: "veLabels ve-monospace-font",
134311
- transform: `rotate(-${rotationRadians * 180 / Math.PI})`
134312
- },
134313
- /* @__PURE__ */ React$2.createElement(
134314
- DrawGroupedLabels,
134315
- __spreadValues({}, {
134316
- editorName,
134317
- noRedux,
134318
- groupedLabels,
134319
- circularViewWidthVsHeightRatio,
134320
- fontWidth,
134321
- fontHeight,
134322
- condenseOverflowingXLabels,
134323
- outerRadius,
134324
- labelLineIntensity: labelLineIntensity2
134325
- })
134326
- )
134327
- ),
134328
- //we use the <use> tag to position the hovered label group at the top of the stack
134329
- //point events: none is to fix a click bug..
134330
- //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
134331
- height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
134332
- };
134333
- }
134334
- __name(Labels, "Labels");
134335
- const DrawLabelGroup = withHover(function({
134336
- hovered,
134337
- className,
134338
- label,
134339
- labelAndSublabels,
134340
- fontWidth,
134341
- noRedux,
134342
- fontHeight,
134343
- outerRadius,
134344
- onMouseLeave,
134345
- onMouseOver,
134346
- editorName,
134347
- circularViewWidthVsHeightRatio,
134348
- condenseOverflowingXLabels,
134349
- hoveredId,
134350
- labelLineIntensity: labelLineIntensity2,
134351
- // labelIds,
134352
- multipleLabels
134353
- // isIdHashmap,
134354
- }) {
134355
- let { text: text2 = "Unlabeled" } = label;
134356
- const textLength = getTextLength(text2);
134357
- let groupLabelXStart;
134358
- if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
134359
- text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
134360
- }
134361
- const labelLength = textLength * fontWidth;
134362
- const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
134363
- const _textLength = getTextLength(text22);
134364
- if (_textLength > currentLength) {
134365
- return _textLength;
134366
- }
134367
- return currentLength;
134368
- }, 0);
134369
- const maxLabelWidth = maxLabelLength * fontWidth;
134370
- const labelOnLeft = label.angle > Math.PI;
134371
- let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
134372
- if (condenseOverflowingXLabels) {
134373
- const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
134374
- if (distancePastBoundary > 0) {
134375
- const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
134376
- text2 = text2.slice(0, -numberOfCharsToChop) + "..";
134377
- groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
134378
- labelXStart += labelOnLeft ? distancePastBoundary : 0;
134379
- }
134380
- }
134381
- const dy = fontHeight;
134382
- const textYStart = label.y + dy / 2;
134383
- let content2;
134384
- const labelClass = ` veLabelText veCircularViewLabelText clickable ${label.color} `;
134385
- if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
134386
- window.isLabelGroupOpen = true;
134387
- let hoveredLabel;
134388
- if (groupLabelXStart !== void 0) {
134389
- labelXStart = groupLabelXStart;
134390
- }
134391
- labelAndSublabels.some(function(label2) {
134392
- if (label2.id === hoveredId) {
134393
- hoveredLabel = label2;
134394
- return true;
134395
- }
134396
- return false;
134397
- });
134398
- if (!hoveredLabel) {
134399
- hoveredLabel = label;
134400
- }
134401
- let labelYStart = label.y;
134402
- const labelGroupHeight = labelAndSublabels.length * dy;
134403
- const labelGroupBottom = label.y + labelGroupHeight;
134404
- if (labelGroupBottom > outerRadius + 20) {
134405
- labelYStart -= (label.labelAndSublabels.length - 1) * dy;
134406
- }
134407
- const line = LabelLine(
134408
- [
134409
- hoveredLabel.innerPoint,
134410
- // hoveredLabel.labelAndSublabels &&
134411
- // hoveredLabel.labelAndSublabels.length > 0
134412
- // ? hoveredLabel.outerPoint
134413
- // : {},
134414
- label
134415
- ],
134416
- { style: { opacity: 1 }, strokeWidth: 2 }
134417
- );
134418
- content2 = [
134419
- line,
134420
- /* @__PURE__ */ React$2.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React$2.createElement("g", { className: className + " topLevelLabelGroup" }, /* @__PURE__ */ React$2.createElement(
134421
- "rect",
134422
- {
134423
- onMouseOver: cancelFn,
134424
- x: labelXStart - 4,
134425
- y: labelYStart - dy / 2,
134426
- width: maxLabelWidth + 24,
134427
- height: labelGroupHeight + 4,
134428
- fill: "white",
134429
- stroke: "black"
134430
- }
134431
- ), /* @__PURE__ */ React$2.createElement(
134432
- "text",
134433
- {
134434
- x: labelXStart,
134435
- y: labelYStart,
134436
- style: {
134437
- fontSize: fontWidth * fontWidthToFontSize,
134438
- fontStyle: label.fontStyle
134439
- }
134440
- },
134441
- labelAndSublabels.map(function(label2, index2) {
134442
- return /* @__PURE__ */ React$2.createElement(
134443
- DrawGroupInnerLabel,
134444
- __spreadValues({
134445
- isSubLabel: true,
134446
- noRedux,
134447
- editorName,
134448
- logHover: true,
134449
- key: "labelItem" + index2,
134450
- className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
134451
- id: label2.id
134452
- }, { labelXStart, label: label2, fontWidth, index: index2, dy })
134453
- );
134454
- })
134455
- )))
134456
- ];
134457
- } else {
134458
- content2 = [
134459
- /* @__PURE__ */ React$2.createElement("title", { key: "labeltitle" }, label.title || label.text),
134460
- /* @__PURE__ */ React$2.createElement(
134461
- "text",
134462
- {
134463
- key: "text",
134464
- x: labelXStart,
134465
- textLength: getTextLength(text2) * fontWidth,
134466
- lengthAdjust: "spacing",
134467
- className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
134468
- y: textYStart,
134469
- style: {
134470
- fontSize: fontWidth * fontWidthToFontSize,
134471
- fontStyle: label.fontStyle,
134472
- fill: label.color || "black"
134473
- // stroke: label.color ? label.color : "black"
134474
- }
134475
- },
134476
- text2
134477
- ),
134478
- LabelLine(
134479
- [
134480
- label.innerPoint,
134481
- // hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
134482
- // ? label.innerPoint
134483
- // : label.truncatedInnerPoint,
134484
- label.outerPoint,
134485
- label
134486
- ],
134487
- hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
134488
- )
134489
- ];
134490
- }
134491
- return /* @__PURE__ */ React$2.createElement(
134492
- "g",
134493
- __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
134494
- onClick: label.onClick,
134495
- onDoubleClick: label.onDoubleClick || lodashExports.noop,
134496
- onContextMenu: label.onContextMenu || lodashExports.noop
134497
- }),
134498
- content2
134499
- );
134500
- });
134501
- function LabelLine(pointArray, options) {
134502
- let points = "";
134503
- pointArray.forEach(function({ x, y: y2 }) {
134504
- if (!x && x !== 0)
134505
- return;
134506
- points += `${x},${y2} `;
134507
- });
134508
- return /* @__PURE__ */ React$2.createElement(React$2.Fragment, { key: "labelLine" }, /* @__PURE__ */ React$2.createElement(
134509
- "polyline",
134510
- __spreadValues({}, __spreadValues({
134511
- key: "polyline-long",
134512
- points,
134513
- stroke: "black",
134514
- fill: "none",
134515
- strokeWidth: 1,
134516
- className: "veLabelLine"
134517
- }, options))
134518
- ));
134519
- }
134520
- __name(LabelLine, "LabelLine");
134521
- const DrawGroupInnerLabel = withHover(
134522
- ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
134523
- return /* @__PURE__ */ React$2.createElement(
134524
- "tspan",
134525
- __spreadProps(__spreadValues({
134526
- x: labelXStart,
134527
- textLength: getTextLength(label.text) * fontWidth,
134528
- lengthAdjust: "spacing",
134529
- onClick: label.onClick,
134530
- onDoubleClick: (e2) => {
134531
- e2.stopPropagation();
134532
- label.onDoubleClick && label.onDoubleClick(e2);
134533
- },
134534
- onContextMenu: label.onContextMenu,
134535
- dy: index2 === 0 ? dy / 2 : dy,
134536
- style: {
134537
- fill: label.color ? label.color : "black",
134538
- fontStyle: label.fontStyle
134539
- }
134540
- }, { onMouseOver }), {
134541
- className
134542
- }),
134543
- /* @__PURE__ */ React$2.createElement("title", null, label.title),
134544
- label.text
134545
- );
134546
- }
134547
- );
134548
- const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
134549
- groupedLabels,
134550
- circularViewWidthVsHeightRatio,
134551
- fontWidth,
134552
- noRedux,
134553
- fontHeight,
134554
- condenseOverflowingXLabels,
134555
- outerRadius,
134556
- editorName,
134557
- labelLineIntensity: labelLineIntensity2
134558
- }) {
134559
- return groupedLabels.map(function(label, i) {
134560
- const { labelAndSublabels, labelIds } = label;
134561
- const multipleLabels = labelAndSublabels.length > 1;
134562
- return /* @__PURE__ */ React$2.createElement(
134563
- DrawLabelGroup,
134564
- __spreadValues({
134565
- key: i,
134566
- id: labelIds
134567
- }, {
134568
- label,
134569
- noRedux,
134570
- passHoveredId: true,
134571
- //needed to get the hoveredId
134572
- isLabelGroup: true,
134573
- className: "DrawLabelGroup",
134574
- multipleLabels,
134575
- labelAndSublabels,
134576
- labelIds,
134577
- circularViewWidthVsHeightRatio,
134578
- fontWidth,
134579
- editorName,
134580
- fontHeight,
134581
- condenseOverflowingXLabels,
134582
- outerRadius,
134583
- labelLineIntensity: labelLineIntensity2
134584
- })
134585
- );
134586
- });
134587
- }, "DrawGroupedLabelsInner");
134588
- function cancelFn(e2) {
134589
- e2.stopPropagation();
134590
- }
134591
- __name(cancelFn, "cancelFn");
134592
- const _PutMyParentOnTop = class _PutMyParentOnTop extends React$2.Component {
134593
- componentDidMount() {
134594
- const { editorName } = this.props;
134595
- try {
134596
- const el = document.querySelector(
134597
- `.veEditor.${editorName} .topLevelLabelGroup`
134598
- );
134599
- const parent2 = el.parentElement.parentElement;
134600
- const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
134601
- parent2.insertBefore(parent2.children[i], null);
134602
- } catch (error) {
134603
- console.warn(
134604
- "OVE-975239 - hit an error trying to re-order labels:",
134605
- error
134606
- );
134607
- }
134608
- }
134609
- render() {
134610
- return this.props.children;
134611
- }
134612
- };
134613
- __name(_PutMyParentOnTop, "PutMyParentOnTop");
134614
- let PutMyParentOnTop = _PutMyParentOnTop;
134615
- var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
134616
- var numberTag = "[object Number]";
134617
- function isNumber(value) {
134618
- return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
134439
+ function getRangeAnglesSpecial() {
134440
+ const _a2 = getRangeAngles.apply(
134441
+ this,
134442
+ arguments
134443
+ ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
134444
+ return __spreadValues({
134445
+ endAngle: endAngle - 1e-5,
134446
+ //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
134447
+ totalAngle: totalAngle - 1e-5
134448
+ }, rest);
134619
134449
  }
134620
- __name(isNumber, "isNumber");
134621
- var isNumber_1 = isNumber;
134622
- const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
134450
+ __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
134623
134451
  function PositionAnnotationOnCircle(_z) {
134624
134452
  var _A = _z, {
134625
134453
  children,
@@ -134650,60 +134478,6 @@ function PositionAnnotationOnCircle(_z) {
134650
134478
  return React$2.cloneElement(children, props);
134651
134479
  }
134652
134480
  __name(PositionAnnotationOnCircle, "PositionAnnotationOnCircle");
134653
- function Caret({
134654
- caretPosition: caretPosition2,
134655
- sequenceLength,
134656
- className,
134657
- onClick,
134658
- isSelection,
134659
- innerRadius,
134660
- outerRadius,
134661
- isProtein: isProtein2,
134662
- selectionMessage
134663
- }) {
134664
- const { startAngle, endAngle } = getRangeAngles(
134665
- { start: caretPosition2, end: caretPosition2 },
134666
- sequenceLength || 1
134667
- );
134668
- if (!isNumber$1(startAngle)) {
134669
- console.error("we've got a problem!");
134670
- }
134671
- const { transform: transform3 } = PositionAnnotationOnCircle({
134672
- sAngle: startAngle,
134673
- eAngle: endAngle,
134674
- height: 0
134675
- });
134676
- return /* @__PURE__ */ React$2.createElement(
134677
- "g",
134678
- {
134679
- onClick,
134680
- transform: transform3,
134681
- className: className + " veCaret " + draggableClassnames.caret
134682
- },
134683
- /* @__PURE__ */ React$2.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
134684
- /* @__PURE__ */ React$2.createElement(
134685
- "line",
134686
- {
134687
- strokeWidth: "1.5px",
134688
- x1: 0,
134689
- y1: -innerRadius,
134690
- x2: 0,
134691
- y2: -outerRadius
134692
- }
134693
- ),
134694
- isSelection ? /* @__PURE__ */ React$2.createElement(
134695
- "polygon",
134696
- {
134697
- className: "vePolygonCaretHandle",
134698
- fill: "black",
134699
- points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
134700
- }
134701
- ) : null
134702
- );
134703
- }
134704
- __name(Caret, "Caret");
134705
- const Caret$1 = pure(Caret);
134706
- var sector$1 = { exports: {} };
134707
134481
  var path = { exports: {} };
134708
134482
  var geom = { exports: {} };
134709
134483
  (function(module2, exports2) {
@@ -135312,407 +135086,6 @@ var geomExports = geom.exports;
135312
135086
  })(path, path.exports);
135313
135087
  var pathExports = path.exports;
135314
135088
  const Path = /* @__PURE__ */ getDefaultExportFromCjs(pathExports);
135315
- var ops = {};
135316
- (function(exports2) {
135317
- Object.defineProperty(exports2, "__esModule", {
135318
- value: true
135319
- });
135320
- var _slicedToArray2 = function() {
135321
- function sliceIterator(arr, i) {
135322
- var _arr = [];
135323
- var _n = true;
135324
- var _d = false;
135325
- var _e = void 0;
135326
- try {
135327
- for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
135328
- _arr.push(_s2.value);
135329
- if (i && _arr.length === i)
135330
- break;
135331
- }
135332
- } catch (err2) {
135333
- _d = true;
135334
- _e = err2;
135335
- } finally {
135336
- try {
135337
- if (!_n && _i["return"])
135338
- _i["return"]();
135339
- } finally {
135340
- if (_d)
135341
- throw _e;
135342
- }
135343
- }
135344
- return _arr;
135345
- }
135346
- __name(sliceIterator, "sliceIterator");
135347
- return function(arr, i) {
135348
- if (Array.isArray(arr)) {
135349
- return arr;
135350
- } else if (Symbol.iterator in Object(arr)) {
135351
- return sliceIterator(arr, i);
135352
- } else {
135353
- throw new TypeError("Invalid attempt to destructure non-iterable instance");
135354
- }
135355
- };
135356
- }();
135357
- var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
135358
- return xs.reduce(function(a2, b3) {
135359
- return a2 + b3;
135360
- }, 0);
135361
- }, "sum");
135362
- var min2 = /* @__PURE__ */ __name(function min3(xs) {
135363
- return xs.reduce(function(a2, b3) {
135364
- return Math.min(a2, b3);
135365
- });
135366
- }, "min");
135367
- var max2 = /* @__PURE__ */ __name(function max3(xs) {
135368
- return xs.reduce(function(a2, b3) {
135369
- return Math.max(a2, b3);
135370
- });
135371
- }, "max");
135372
- var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
135373
- return xs.reduce(function(a2, b3) {
135374
- return a2 + f2(b3);
135375
- }, 0);
135376
- }, "sumBy");
135377
- var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
135378
- return xs.reduce(function(a2, b3) {
135379
- return Math.min(a2, f2(b3));
135380
- }, Infinity);
135381
- }, "minBy");
135382
- var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
135383
- return xs.reduce(function(a2, b3) {
135384
- return Math.max(a2, f2(b3));
135385
- }, -Infinity);
135386
- }, "maxBy");
135387
- var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
135388
- var _ref2 = _slicedToArray2(_ref, 2);
135389
- var a2 = _ref2[0];
135390
- var b3 = _ref2[1];
135391
- var _ref32 = _slicedToArray2(_ref3, 2);
135392
- var c2 = _ref32[0];
135393
- var d2 = _ref32[1];
135394
- return [a2 + c2, b3 + d2];
135395
- }, "plus");
135396
- var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
135397
- var _ref42 = _slicedToArray2(_ref4, 2);
135398
- var a2 = _ref42[0];
135399
- var b3 = _ref42[1];
135400
- var _ref52 = _slicedToArray2(_ref5, 2);
135401
- var c2 = _ref52[0];
135402
- var d2 = _ref52[1];
135403
- return [a2 - c2, b3 - d2];
135404
- }, "minus");
135405
- var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
135406
- var _ref62 = _slicedToArray2(_ref6, 2);
135407
- var a2 = _ref62[0];
135408
- var b3 = _ref62[1];
135409
- return [k2 * a2, k2 * b3];
135410
- }, "times");
135411
- var length = /* @__PURE__ */ __name(function length2(_ref7) {
135412
- var _ref72 = _slicedToArray2(_ref7, 2);
135413
- var a2 = _ref72[0];
135414
- var b3 = _ref72[1];
135415
- return Math.sqrt(a2 * a2 + b3 * b3);
135416
- }, "length");
135417
- var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
135418
- return xs.reduce(plus, [0, 0]);
135419
- }, "sumVectors");
135420
- var average = /* @__PURE__ */ __name(function average2(points) {
135421
- return times(1 / points.length, points.reduce(plus));
135422
- }, "average");
135423
- var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
135424
- return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
135425
- }, "onCircle");
135426
- var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
135427
- var obj = compute || {};
135428
- for (var key in obj) {
135429
- var method = obj[key];
135430
- curve[key] = method(curve.index, curve.item, curve.group);
135431
- }
135432
- return curve;
135433
- }, "enhance");
135434
- var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
135435
- var result = [];
135436
- for (var i = a2; i < b3; i++) {
135437
- result.push(i);
135438
- }
135439
- if (inclusive) {
135440
- result.push(b3);
135441
- }
135442
- return result;
135443
- }, "range");
135444
- var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
135445
- var result = [];
135446
- var _iteratorNormalCompletion = true;
135447
- var _didIteratorError = false;
135448
- var _iteratorError = void 0;
135449
- try {
135450
- for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
135451
- var k2 = _step.value;
135452
- var v2 = obj[k2];
135453
- result.push(f2(k2, v2));
135454
- }
135455
- } catch (err2) {
135456
- _didIteratorError = true;
135457
- _iteratorError = err2;
135458
- } finally {
135459
- try {
135460
- if (!_iteratorNormalCompletion && _iterator3["return"]) {
135461
- _iterator3["return"]();
135462
- }
135463
- } finally {
135464
- if (_didIteratorError) {
135465
- throw _iteratorError;
135466
- }
135467
- }
135468
- }
135469
- return result;
135470
- }, "mapObject");
135471
- var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
135472
- return mapObject(obj, function(k2, v2) {
135473
- return [k2, v2];
135474
- });
135475
- }, "pairs");
135476
- var id2 = /* @__PURE__ */ __name(function id3(x) {
135477
- return x;
135478
- }, "id");
135479
- exports2.sum = sum2;
135480
- exports2.min = min2;
135481
- exports2.max = max2;
135482
- exports2.sumBy = sumBy;
135483
- exports2.minBy = minBy;
135484
- exports2.maxBy = maxBy;
135485
- exports2.plus = plus;
135486
- exports2.minus = minus;
135487
- exports2.times = times;
135488
- exports2.id = id2;
135489
- exports2.length = length;
135490
- exports2.sumVectors = sumVectors;
135491
- exports2.average = average;
135492
- exports2.onCircle = onCircle;
135493
- exports2.enhance = enhance;
135494
- exports2.range = range2;
135495
- exports2.mapObject = mapObject;
135496
- exports2.pairs = pairs;
135497
- exports2["default"] = {
135498
- sum: sum2,
135499
- min: min2,
135500
- max: max2,
135501
- sumBy,
135502
- minBy,
135503
- maxBy,
135504
- plus,
135505
- minus,
135506
- times,
135507
- id: id2,
135508
- length,
135509
- sumVectors,
135510
- average,
135511
- onCircle,
135512
- enhance,
135513
- range: range2,
135514
- mapObject,
135515
- pairs
135516
- };
135517
- })(ops);
135518
- (function(module2, exports2) {
135519
- Object.defineProperty(exports2, "__esModule", {
135520
- value: true
135521
- });
135522
- function _interopRequireDefault2(obj) {
135523
- return obj && obj.__esModule ? obj : { "default": obj };
135524
- }
135525
- __name(_interopRequireDefault2, "_interopRequireDefault");
135526
- function _toConsumableArray2(arr) {
135527
- if (Array.isArray(arr)) {
135528
- for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
135529
- arr2[i] = arr[i];
135530
- return arr2;
135531
- } else {
135532
- return Array.from(arr);
135533
- }
135534
- }
135535
- __name(_toConsumableArray2, "_toConsumableArray");
135536
- var _path = pathExports;
135537
- var _path2 = _interopRequireDefault2(_path);
135538
- var _ops = ops;
135539
- exports2["default"] = function(_ref) {
135540
- var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
135541
- var center = _ref.center;
135542
- var r2 = _ref.r;
135543
- var R2 = _ref.R;
135544
- var start2 = _ref.start;
135545
- var end2 = _ref.end;
135546
- var epsilon = 1e-4;
135547
- if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
135548
- end2 = 2 * Math.PI - epsilon;
135549
- }
135550
- var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
135551
- var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
135552
- var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
135553
- var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
135554
- var large = end2 - start2 > Math.PI ? 1 : 0;
135555
- var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
135556
- var midAngle = (start2 + end2) / 2;
135557
- var midRadius = (r2 + R2) / 2;
135558
- var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
135559
- return {
135560
- path: path2,
135561
- centroid
135562
- };
135563
- };
135564
- module2.exports = exports2["default"];
135565
- })(sector$1, sector$1.exports);
135566
- var sectorExports = sector$1.exports;
135567
- const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
135568
- function getRangeAnglesSpecial() {
135569
- const _a2 = getRangeAngles.apply(
135570
- this,
135571
- arguments
135572
- ), { endAngle, totalAngle } = _a2, rest = __objRest(_a2, ["endAngle", "totalAngle"]);
135573
- return __spreadValues({
135574
- endAngle: endAngle - 1e-5,
135575
- //we subtract a tiny amount because an angle of 2PI will cause nothing to be drawn!
135576
- totalAngle: totalAngle - 1e-5
135577
- }, rest);
135578
- }
135579
- __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
135580
- function SelectionLayer({
135581
- isDraggable,
135582
- selectionLayer: selectionLayer2,
135583
- sequenceLength,
135584
- radius,
135585
- hideTitle,
135586
- innerRadius,
135587
- onRightClicked,
135588
- onClick,
135589
- index: index2,
135590
- isProtein: isProtein2
135591
- }) {
135592
- const {
135593
- color: color2,
135594
- start: start2,
135595
- end: end2,
135596
- hideCarets = false,
135597
- style: style2,
135598
- className
135599
- } = selectionLayer2;
135600
- const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
135601
- selectionLayer2,
135602
- sequenceLength
135603
- );
135604
- const section = sector({
135605
- center: [0, 0],
135606
- //the center is always 0,0 for our annotations :) we rotate later!
135607
- r: innerRadius,
135608
- R: radius,
135609
- start: 0,
135610
- end: totalAngle
135611
- });
135612
- const selectionMessage = getSelectionMessage({
135613
- sequenceLength,
135614
- selectionLayer: selectionLayer2,
135615
- isProtein: isProtein2
135616
- });
135617
- const { transform: transform3 } = PositionAnnotationOnCircle({
135618
- sAngle: startAngle,
135619
- eAngle: endAngle,
135620
- height: 0
135621
- });
135622
- return /* @__PURE__ */ React$2.createElement(
135623
- "g",
135624
- {
135625
- onContextMenu: (event) => {
135626
- onRightClicked && onRightClicked({
135627
- annotation: selectionLayer2,
135628
- event
135629
- });
135630
- },
135631
- onClick: onClick ? (event) => {
135632
- onClick({
135633
- annotation: selectionLayer2,
135634
- event
135635
- });
135636
- } : void 0,
135637
- key: "veSelectionLayer" + index2,
135638
- className: "veSelectionLayer " + (className || "")
135639
- },
135640
- !hideTitle && /* @__PURE__ */ React$2.createElement("title", null, selectionMessage),
135641
- /* @__PURE__ */ React$2.createElement(
135642
- "path",
135643
- {
135644
- transform: transform3,
135645
- className: "selectionLayer",
135646
- style: __spreadValues({ opacity: 0.3 }, style2),
135647
- d: section.path.print(),
135648
- fill: color2
135649
- }
135650
- ),
135651
- !hideCarets && /* @__PURE__ */ React$2.createElement(
135652
- Caret$1,
135653
- {
135654
- key: "caret1",
135655
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
135656
- isSelection: true,
135657
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135658
- selectionMessage,
135659
- caretPosition: start2,
135660
- sequenceLength,
135661
- innerRadius,
135662
- outerRadius: radius
135663
- }
135664
- ),
135665
- !hideCarets && /* @__PURE__ */ React$2.createElement(
135666
- Caret$1,
135667
- {
135668
- key: "caret2",
135669
- className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
135670
- isSelection: true,
135671
- onClick: onClick ? noop$4 : preventDefaultStopPropagation,
135672
- selectionMessage,
135673
- caretPosition: end2 + 1,
135674
- sequenceLength,
135675
- innerRadius,
135676
- outerRadius: radius
135677
- }
135678
- )
135679
- );
135680
- }
135681
- __name(SelectionLayer, "SelectionLayer");
135682
- const SelectionLayer$1 = pure(SelectionLayer);
135683
- function Axis({
135684
- radius,
135685
- showAxisNumbers,
135686
- tickMarkHeight = 5,
135687
- textOffset = 15,
135688
- ringThickness = 4,
135689
- zoomLevel
135690
- }) {
135691
- const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
135692
- const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
135693
- const component = /* @__PURE__ */ React$2.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React$2.createElement(
135694
- "circle",
135695
- {
135696
- className: "veAxisLine veAxisOuter",
135697
- key: "circleOuter",
135698
- r: radiusToUse + ringThickness,
135699
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135700
- }
135701
- ), /* @__PURE__ */ React$2.createElement(
135702
- "circle",
135703
- {
135704
- className: "veAxisLine veAxisInner",
135705
- key: "circle",
135706
- r: radiusToUse,
135707
- style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
135708
- }
135709
- ));
135710
- return {
135711
- component,
135712
- height: height2
135713
- };
135714
- }
135715
- __name(Axis, "Axis");
135716
135089
  function polarToSpecialCartesian(radius, angleInRadians) {
135717
135090
  return {
135718
135091
  x: radius * Math.cos(angleInRadians - Math.PI / 2),
@@ -135828,30 +135201,6 @@ function drawDirectedPiePiece({
135828
135201
  return path2;
135829
135202
  }
135830
135203
  __name(drawDirectedPiePiece, "drawDirectedPiePiece");
135831
- function CircularPrimer$1({
135832
- color: color2 = "orange",
135833
- radius,
135834
- annotationHeight,
135835
- totalAngle
135836
- }) {
135837
- return /* @__PURE__ */ React$2.createElement(
135838
- "path",
135839
- {
135840
- className: "veOrf",
135841
- strokeWidth: ".5",
135842
- stroke: color2,
135843
- fill: color2,
135844
- d: drawDirectedPiePiece({
135845
- radius,
135846
- annotationHeight,
135847
- totalAngle,
135848
- arrowheadLength: 0.4,
135849
- tailThickness: 0.4
135850
- }).print()
135851
- }
135852
- );
135853
- }
135854
- __name(CircularPrimer$1, "CircularPrimer$1");
135855
135204
  function getInternalLabel({
135856
135205
  ellipsizedName,
135857
135206
  id: id2,
@@ -135965,58 +135314,6 @@ function Feature(props) {
135965
135314
  })));
135966
135315
  }
135967
135316
  __name(Feature, "Feature");
135968
- function CircularPrimer(props) {
135969
- const {
135970
- color: color2 = "orange",
135971
- radius,
135972
- arrowheadLength = 0.5,
135973
- annotationHeight,
135974
- totalAngle,
135975
- id: id2,
135976
- labelNeedsFlip,
135977
- ellipsizedName
135978
- } = props;
135979
- const [path2, textPath] = drawDirectedPiePiece({
135980
- radius,
135981
- annotationHeight,
135982
- totalAngle,
135983
- arrowheadLength,
135984
- tailThickness: 1,
135985
- //feature specific
135986
- returnTextPath: true,
135987
- hasLabel: ellipsizedName,
135988
- labelNeedsFlip
135989
- });
135990
- return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
135991
- "path",
135992
- {
135993
- className: "vePrimer veCircularViewPrimer",
135994
- id: id2,
135995
- strokeWidth: ".5",
135996
- stroke: "black",
135997
- fill: "url(#diagonalHatch)",
135998
- d: path2.print()
135999
- }
136000
- ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
136001
- }
136002
- __name(CircularPrimer, "CircularPrimer");
136003
- function Cutsite({
136004
- annotationHeight,
136005
- radius
136006
- // totalAngle,
136007
- // ...rest
136008
- }) {
136009
- return /* @__PURE__ */ React$2.createElement(
136010
- "rect",
136011
- {
136012
- className: "veCutsite",
136013
- width: 1,
136014
- y: -radius - 4,
136015
- height: annotationHeight
136016
- }
136017
- );
136018
- }
136019
- __name(Cutsite, "Cutsite");
136020
135317
  function drawAnnotations(props) {
136021
135318
  const {
136022
135319
  readOnly: readOnly2,
@@ -136297,7 +135594,6 @@ function DrawAnnotationInner({
136297
135594
  onMouseLeave,
136298
135595
  onMouseOver
136299
135596
  };
136300
- const title = /* @__PURE__ */ React$2.createElement("title", null, titleText);
136301
135597
  function getInner({
136302
135598
  startAngle: startAngle2,
136303
135599
  endAngle: endAngle2,
@@ -136314,11 +135610,12 @@ function DrawAnnotationInner({
136314
135610
  });
136315
135611
  return /* @__PURE__ */ React$2.createElement(
136316
135612
  "g",
136317
- __spreadValues({
135613
+ __spreadValues(__spreadProps(__spreadValues({
136318
135614
  transform: transform3,
135615
+ "data-title": noTitle ? null : titleText
135616
+ }, avoidOverlapWith), {
136319
135617
  key: isNotLocation ? "notLocation" : "location--" + annotation.id + "--" + i
136320
- }, sharedProps),
136321
- noTitle ? null : title,
135618
+ }), sharedProps),
136322
135619
  /* @__PURE__ */ React$2.createElement(
136323
135620
  Annotation,
136324
135621
  __spreadValues(__spreadValues(__spreadProps(__spreadValues({}, passAnnotation && { annotation }), {
@@ -136351,6 +135648,964 @@ function DrawAnnotationInner({
136351
135648
  }
136352
135649
  __name(DrawAnnotationInner, "DrawAnnotationInner");
136353
135650
  const DrawAnnotation = withHover(DrawAnnotationInner);
135651
+ const avoidOverlapWith = {
135652
+ "data-avoid": ".topLevelLabelGroup",
135653
+ "data-avoid-backup": ".veLabel.veAnnotationHovered"
135654
+ };
135655
+ const fontWidthToFontSize = 1.75;
135656
+ const getTextLength = /* @__PURE__ */ __name((text2) => {
135657
+ let len = (text2 || "Unlabeled").length;
135658
+ const nonEnInputReg = /[^\x00-\xff]+/g;
135659
+ const nonEnStrings = (text2 || "Unlabeled").match(nonEnInputReg) || [];
135660
+ nonEnStrings.forEach((str) => len += str.length * 0.5);
135661
+ return len;
135662
+ }, "getTextLength");
135663
+ function Labels({
135664
+ labels = [],
135665
+ extraSideSpace,
135666
+ smartCircViewLabelRender,
135667
+ radius: outerRadius,
135668
+ editorName,
135669
+ noRedux,
135670
+ rotationRadians,
135671
+ textScalingFactor,
135672
+ labelLineIntensity: labelLineIntensity2,
135673
+ labelSize: labelSize2 = 8,
135674
+ fontHeightMultiplier = 2.4,
135675
+ circularViewWidthVsHeightRatio,
135676
+ //width of the circular view
135677
+ condenseOverflowingXLabels = true
135678
+ //set to true to make labels tha
135679
+ }) {
135680
+ if (!labels.length) {
135681
+ return {
135682
+ component: null,
135683
+ height: 15
135684
+ };
135685
+ }
135686
+ const originalOuterRadius = outerRadius;
135687
+ outerRadius += smartCircViewLabelRender ? 10 : 25;
135688
+ const radius = outerRadius;
135689
+ const outerPointRadius = outerRadius - 20;
135690
+ const fontWidth = labelSize2 * (textScalingFactor < 1 ? textScalingFactor : 1);
135691
+ const fontHeight = fontWidth * lodashExports.clamp(fontHeightMultiplier, 1.5, 3.5);
135692
+ const labelPoints = labels.map(function(label) {
135693
+ const {
135694
+ annotationCenterAngle: _annotationCenterAngle,
135695
+ annotationCenterRadius
135696
+ } = label;
135697
+ const annotationCenterAngle = _annotationCenterAngle + (rotationRadians || 0);
135698
+ return __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, label), {
135699
+ width: getTextLength(label.text) * fontWidth,
135700
+ //three points define the label:
135701
+ innerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135702
+ annotationCenterRadius,
135703
+ annotationCenterAngle
135704
+ )), {
135705
+ radius: annotationCenterRadius,
135706
+ angle: annotationCenterAngle
135707
+ }),
135708
+ truncatedInnerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(
135709
+ outerPointRadius - 15,
135710
+ annotationCenterAngle
135711
+ )), {
135712
+ radius: outerPointRadius - 15,
135713
+ angle: annotationCenterAngle
135714
+ }),
135715
+ outerPoint: __spreadProps(__spreadValues({}, polarToSpecialCartesian$1(outerPointRadius, annotationCenterAngle)), {
135716
+ radius: outerPointRadius,
135717
+ angle: annotationCenterAngle
135718
+ })
135719
+ }), polarToSpecialCartesian$1(radius, annotationCenterAngle)), {
135720
+ radius: radius + 10,
135721
+ angle: annotationCenterAngle
135722
+ });
135723
+ }).map(function(label) {
135724
+ label.labelAndSublabels = [label];
135725
+ label.labelIds = { [label.id]: true };
135726
+ return label;
135727
+ });
135728
+ let maxRadius = 1;
135729
+ const groupedLabels = relaxLabelAngles(labelPoints, fontHeight, outerRadius).filter((l2) => !!l2).map((originalLabel) => {
135730
+ if (smartCircViewLabelRender) {
135731
+ const newR = Math.sqrt(
135732
+ Math.pow(
135733
+ Math.abs(originalLabel.x) + Math.max(0, originalLabel.text.length * 11 - extraSideSpace / 2),
135734
+ 2
135735
+ ) + Math.pow(Math.abs(originalLabel.y), 2)
135736
+ );
135737
+ if (newR > maxRadius)
135738
+ maxRadius = newR;
135739
+ }
135740
+ if (originalLabel.highPriorityLabel) {
135741
+ return originalLabel;
135742
+ }
135743
+ const _highPrioritySublabel = originalLabel.labelAndSublabels.find(
135744
+ (l2) => l2.highPriorityLabel
135745
+ );
135746
+ if (_highPrioritySublabel) {
135747
+ const highPrioritySublabel = lodashExports.cloneDeep(_highPrioritySublabel);
135748
+ [
135749
+ "angle",
135750
+ "annotationCenterAngle",
135751
+ "annotationCenterRadius",
135752
+ "innerPoint",
135753
+ "labelAndSublabels",
135754
+ "labelIds",
135755
+ "outerPoint",
135756
+ "radius",
135757
+ "truncatedInnerPoint",
135758
+ "x",
135759
+ "y"
135760
+ ].forEach((k2) => {
135761
+ highPrioritySublabel[k2] = originalLabel[k2];
135762
+ });
135763
+ delete originalLabel.labelAndSublabels;
135764
+ return highPrioritySublabel;
135765
+ }
135766
+ return originalLabel;
135767
+ });
135768
+ window.isLabelGroupOpen = false;
135769
+ return {
135770
+ component: /* @__PURE__ */ React$2.createElement(
135771
+ "g",
135772
+ {
135773
+ key: "veLabels",
135774
+ className: "veLabels ve-monospace-font",
135775
+ transform: `rotate(-${rotationRadians * 180 / Math.PI})`
135776
+ },
135777
+ /* @__PURE__ */ React$2.createElement(
135778
+ DrawGroupedLabels,
135779
+ __spreadValues({}, {
135780
+ editorName,
135781
+ noRedux,
135782
+ groupedLabels,
135783
+ circularViewWidthVsHeightRatio,
135784
+ fontWidth,
135785
+ fontHeight,
135786
+ condenseOverflowingXLabels,
135787
+ outerRadius,
135788
+ labelLineIntensity: labelLineIntensity2
135789
+ })
135790
+ )
135791
+ ),
135792
+ //we use the <use> tag to position the hovered label group at the top of the stack
135793
+ //point events: none is to fix a click bug..
135794
+ //http://stackoverflow.com/questions/24078524/svg-click-events-not-firing-bubbling-when-using-use-element
135795
+ height: smartCircViewLabelRender ? Math.min(105, maxRadius - originalOuterRadius) : 120
135796
+ };
135797
+ }
135798
+ __name(Labels, "Labels");
135799
+ const DrawLabelGroup = withHover(function({
135800
+ hovered,
135801
+ className,
135802
+ label,
135803
+ labelAndSublabels,
135804
+ fontWidth,
135805
+ noRedux,
135806
+ fontHeight,
135807
+ outerRadius,
135808
+ onMouseLeave,
135809
+ onMouseOver,
135810
+ editorName,
135811
+ circularViewWidthVsHeightRatio,
135812
+ condenseOverflowingXLabels,
135813
+ hoveredId,
135814
+ labelLineIntensity: labelLineIntensity2,
135815
+ // labelIds,
135816
+ multipleLabels
135817
+ // isIdHashmap,
135818
+ }) {
135819
+ let { text: text2 = "Unlabeled" } = label;
135820
+ const textLength = getTextLength(text2);
135821
+ let groupLabelXStart;
135822
+ if (label.labelAndSublabels && label.labelAndSublabels.length > 1) {
135823
+ text2 = "+" + (label.labelAndSublabels.length - 1) + "," + text2;
135824
+ }
135825
+ const labelLength = textLength * fontWidth;
135826
+ const maxLabelLength = labelAndSublabels.reduce(function(currentLength, { text: text22 = "Unlabeled" }) {
135827
+ const _textLength = getTextLength(text22);
135828
+ if (_textLength > currentLength) {
135829
+ return _textLength;
135830
+ }
135831
+ return currentLength;
135832
+ }, 0);
135833
+ const maxLabelWidth = maxLabelLength * fontWidth;
135834
+ const labelOnLeft = label.angle > Math.PI;
135835
+ let labelXStart = label.x - (labelOnLeft ? labelLength : 0);
135836
+ if (condenseOverflowingXLabels) {
135837
+ const distancePastBoundary = Math.abs(label.x + (labelOnLeft ? -labelLength : labelLength)) - (outerRadius + 90) * Math.max(1, circularViewWidthVsHeightRatio);
135838
+ if (distancePastBoundary > 0) {
135839
+ const numberOfCharsToChop = Math.ceil(distancePastBoundary / fontWidth) + 2;
135840
+ text2 = text2.slice(0, -numberOfCharsToChop) + "..";
135841
+ groupLabelXStart = labelXStart + (labelOnLeft ? distancePastBoundary : -distancePastBoundary);
135842
+ labelXStart += labelOnLeft ? distancePastBoundary : 0;
135843
+ }
135844
+ }
135845
+ const dy = fontHeight;
135846
+ const textYStart = label.y + dy / 2;
135847
+ let content2;
135848
+ const labelClass = ` veLabelText veLabel veCircularViewLabelText clickable ${label.color} `;
135849
+ if ((multipleLabels || groupLabelXStart !== void 0) && hovered) {
135850
+ window.isLabelGroupOpen = true;
135851
+ let hoveredLabel;
135852
+ if (groupLabelXStart !== void 0) {
135853
+ labelXStart = groupLabelXStart;
135854
+ }
135855
+ labelAndSublabels.some(function(label2) {
135856
+ if (label2.id === hoveredId) {
135857
+ hoveredLabel = label2;
135858
+ return true;
135859
+ }
135860
+ return false;
135861
+ });
135862
+ if (!hoveredLabel) {
135863
+ hoveredLabel = label;
135864
+ }
135865
+ let labelYStart = label.y;
135866
+ const labelGroupHeight = labelAndSublabels.length * dy;
135867
+ const labelGroupBottom = label.y + labelGroupHeight;
135868
+ if (labelGroupBottom > outerRadius + 20) {
135869
+ labelYStart -= (label.labelAndSublabels.length - 1) * dy;
135870
+ }
135871
+ const line = LabelLine(
135872
+ [
135873
+ hoveredLabel.innerPoint,
135874
+ // hoveredLabel.labelAndSublabels &&
135875
+ // hoveredLabel.labelAndSublabels.length > 0
135876
+ // ? hoveredLabel.outerPoint
135877
+ // : {},
135878
+ label
135879
+ ],
135880
+ { style: { opacity: 1 }, strokeWidth: 2 }
135881
+ );
135882
+ content2 = [
135883
+ line,
135884
+ /* @__PURE__ */ React$2.createElement(PutMyParentOnTop, { editorName, key: "gGroup" }, /* @__PURE__ */ React$2.createElement("g", { className: className + " veLabel topLevelLabelGroup" }, /* @__PURE__ */ React$2.createElement(
135885
+ "rect",
135886
+ {
135887
+ onMouseOver: cancelFn,
135888
+ x: labelXStart - 4,
135889
+ y: labelYStart - dy / 2,
135890
+ width: maxLabelWidth + 24,
135891
+ height: labelGroupHeight + 4,
135892
+ fill: "white",
135893
+ stroke: "black"
135894
+ }
135895
+ ), /* @__PURE__ */ React$2.createElement(
135896
+ "text",
135897
+ {
135898
+ x: labelXStart,
135899
+ y: labelYStart,
135900
+ style: {
135901
+ fontSize: fontWidth * fontWidthToFontSize,
135902
+ fontStyle: label.fontStyle
135903
+ }
135904
+ },
135905
+ labelAndSublabels.map(function(label2, index2) {
135906
+ return /* @__PURE__ */ React$2.createElement(
135907
+ DrawGroupInnerLabel,
135908
+ __spreadValues({
135909
+ isSubLabel: true,
135910
+ noRedux,
135911
+ editorName,
135912
+ logHover: true,
135913
+ key: "labelItem" + index2,
135914
+ className: (label2.className || "") + labelClass + " veDrawGroupInnerLabel",
135915
+ id: label2.id
135916
+ }, { labelXStart, label: label2, fontWidth, index: index2, dy })
135917
+ );
135918
+ })
135919
+ )))
135920
+ ];
135921
+ } else {
135922
+ content2 = [
135923
+ // <title key="labeltitle">{label.title || label.text}</title>,
135924
+ /* @__PURE__ */ React$2.createElement(
135925
+ "text",
135926
+ __spreadProps(__spreadValues({
135927
+ key: "text",
135928
+ "data-title": label.title || label.text
135929
+ }, avoidOverlapWith), {
135930
+ x: labelXStart,
135931
+ textLength: getTextLength(text2) * fontWidth,
135932
+ lengthAdjust: "spacing",
135933
+ className: labelClass + label.className + (hovered ? " veAnnotationHovered" : ""),
135934
+ y: textYStart,
135935
+ style: {
135936
+ fontSize: fontWidth * fontWidthToFontSize,
135937
+ fontStyle: label.fontStyle,
135938
+ fill: label.color || "black"
135939
+ // stroke: label.color ? label.color : "black"
135940
+ }
135941
+ }),
135942
+ text2
135943
+ ),
135944
+ LabelLine(
135945
+ [
135946
+ label.innerPoint,
135947
+ // hovered || label.annotationType === "part" //because parts live on the outside of the sequence, we don't need to show the truncated point, we can just point to them directly
135948
+ // ? label.innerPoint
135949
+ // : label.truncatedInnerPoint,
135950
+ label.outerPoint,
135951
+ label
135952
+ ],
135953
+ hovered ? { style: { opacity: 1 }, strokeWidth: 2 } : { style: { opacity: labelLineIntensity2 } }
135954
+ )
135955
+ ];
135956
+ }
135957
+ return /* @__PURE__ */ React$2.createElement(
135958
+ "g",
135959
+ __spreadValues(__spreadValues({}, { onMouseLeave, onMouseOver }), {
135960
+ onClick: label.onClick,
135961
+ onDoubleClick: label.onDoubleClick || lodashExports.noop,
135962
+ onContextMenu: label.onContextMenu || lodashExports.noop
135963
+ }),
135964
+ content2
135965
+ );
135966
+ });
135967
+ function LabelLine(pointArray, options) {
135968
+ let points = "";
135969
+ pointArray.forEach(function({ x, y: y2 }) {
135970
+ if (!x && x !== 0)
135971
+ return;
135972
+ points += `${x},${y2} `;
135973
+ });
135974
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, { key: "labelLine" }, /* @__PURE__ */ React$2.createElement(
135975
+ "polyline",
135976
+ __spreadValues({}, __spreadValues({
135977
+ key: "polyline-long",
135978
+ points,
135979
+ stroke: "black",
135980
+ fill: "none",
135981
+ strokeWidth: 1,
135982
+ className: "veLabelLine"
135983
+ }, options))
135984
+ ));
135985
+ }
135986
+ __name(LabelLine, "LabelLine");
135987
+ const DrawGroupInnerLabel = withHover(
135988
+ ({ className, labelXStart, label, fontWidth, onMouseOver, index: index2, dy }) => {
135989
+ return /* @__PURE__ */ React$2.createElement(
135990
+ "tspan",
135991
+ __spreadProps(__spreadValues(__spreadProps(__spreadValues({
135992
+ "data-title": label.title
135993
+ }, avoidOverlapWith), {
135994
+ x: labelXStart,
135995
+ textLength: getTextLength(label.text) * fontWidth,
135996
+ lengthAdjust: "spacing",
135997
+ onClick: label.onClick,
135998
+ onDoubleClick: (e2) => {
135999
+ e2.stopPropagation();
136000
+ label.onDoubleClick && label.onDoubleClick(e2);
136001
+ },
136002
+ onContextMenu: label.onContextMenu,
136003
+ dy: index2 === 0 ? dy / 2 : dy,
136004
+ style: {
136005
+ fill: label.color ? label.color : "black",
136006
+ fontStyle: label.fontStyle
136007
+ }
136008
+ }), { onMouseOver }), {
136009
+ className
136010
+ }),
136011
+ label.text
136012
+ );
136013
+ }
136014
+ );
136015
+ const DrawGroupedLabels = /* @__PURE__ */ __name(function DrawGroupedLabelsInner({
136016
+ groupedLabels,
136017
+ circularViewWidthVsHeightRatio,
136018
+ fontWidth,
136019
+ noRedux,
136020
+ fontHeight,
136021
+ condenseOverflowingXLabels,
136022
+ outerRadius,
136023
+ editorName,
136024
+ labelLineIntensity: labelLineIntensity2
136025
+ }) {
136026
+ return groupedLabels.map(function(label, i) {
136027
+ const { labelAndSublabels, labelIds } = label;
136028
+ const multipleLabels = labelAndSublabels.length > 1;
136029
+ return /* @__PURE__ */ React$2.createElement(
136030
+ DrawLabelGroup,
136031
+ __spreadValues({
136032
+ key: i,
136033
+ id: labelIds
136034
+ }, {
136035
+ label,
136036
+ noRedux,
136037
+ passHoveredId: true,
136038
+ //needed to get the hoveredId
136039
+ isLabelGroup: true,
136040
+ className: "DrawLabelGroup",
136041
+ multipleLabels,
136042
+ labelAndSublabels,
136043
+ labelIds,
136044
+ circularViewWidthVsHeightRatio,
136045
+ fontWidth,
136046
+ editorName,
136047
+ fontHeight,
136048
+ condenseOverflowingXLabels,
136049
+ outerRadius,
136050
+ labelLineIntensity: labelLineIntensity2
136051
+ })
136052
+ );
136053
+ });
136054
+ }, "DrawGroupedLabelsInner");
136055
+ function cancelFn(e2) {
136056
+ e2.stopPropagation();
136057
+ }
136058
+ __name(cancelFn, "cancelFn");
136059
+ const _PutMyParentOnTop = class _PutMyParentOnTop extends React$2.Component {
136060
+ componentDidMount() {
136061
+ const { editorName } = this.props;
136062
+ try {
136063
+ const el = document.querySelector(
136064
+ `.veEditor.${editorName} .topLevelLabelGroup`
136065
+ );
136066
+ const parent2 = el.parentElement.parentElement;
136067
+ const i = Array.prototype.indexOf.call(parent2.children, el.parentElement);
136068
+ parent2.insertBefore(parent2.children[i], null);
136069
+ } catch (error) {
136070
+ console.warn(
136071
+ "OVE-975239 - hit an error trying to re-order labels:",
136072
+ error
136073
+ );
136074
+ }
136075
+ }
136076
+ render() {
136077
+ return this.props.children;
136078
+ }
136079
+ };
136080
+ __name(_PutMyParentOnTop, "PutMyParentOnTop");
136081
+ let PutMyParentOnTop = _PutMyParentOnTop;
136082
+ var baseGetTag = _baseGetTag, isObjectLike = isObjectLike_1;
136083
+ var numberTag = "[object Number]";
136084
+ function isNumber(value) {
136085
+ return typeof value == "number" || isObjectLike(value) && baseGetTag(value) == numberTag;
136086
+ }
136087
+ __name(isNumber, "isNumber");
136088
+ var isNumber_1 = isNumber;
136089
+ const isNumber$1 = /* @__PURE__ */ getDefaultExportFromCjs(isNumber_1);
136090
+ function Caret({
136091
+ caretPosition: caretPosition2,
136092
+ sequenceLength,
136093
+ className,
136094
+ onClick,
136095
+ isSelection,
136096
+ innerRadius,
136097
+ outerRadius,
136098
+ isProtein: isProtein2,
136099
+ selectionMessage
136100
+ }) {
136101
+ const { startAngle, endAngle } = getRangeAngles(
136102
+ { start: caretPosition2, end: caretPosition2 },
136103
+ sequenceLength || 1
136104
+ );
136105
+ if (!isNumber$1(startAngle)) {
136106
+ console.error("we've got a problem!");
136107
+ }
136108
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136109
+ sAngle: startAngle,
136110
+ eAngle: endAngle,
136111
+ height: 0
136112
+ });
136113
+ return /* @__PURE__ */ React$2.createElement(
136114
+ "g",
136115
+ {
136116
+ onClick,
136117
+ transform: transform3,
136118
+ className: className + " veCaret " + draggableClassnames.caret
136119
+ },
136120
+ /* @__PURE__ */ React$2.createElement("title", null, selectionMessage || getSelectionMessage({ caretPosition: caretPosition2, isProtein: isProtein2, sequenceLength })),
136121
+ /* @__PURE__ */ React$2.createElement(
136122
+ "line",
136123
+ {
136124
+ strokeWidth: "1.5px",
136125
+ x1: 0,
136126
+ y1: -innerRadius,
136127
+ x2: 0,
136128
+ y2: -outerRadius
136129
+ }
136130
+ ),
136131
+ isSelection ? /* @__PURE__ */ React$2.createElement(
136132
+ "polygon",
136133
+ {
136134
+ className: "vePolygonCaretHandle",
136135
+ fill: "black",
136136
+ points: `0,${-outerRadius + 2} 5,${-outerRadius - 10} -5,${-outerRadius - 10}`
136137
+ }
136138
+ ) : null
136139
+ );
136140
+ }
136141
+ __name(Caret, "Caret");
136142
+ const Caret$1 = pure(Caret);
136143
+ var sector$1 = { exports: {} };
136144
+ var ops = {};
136145
+ (function(exports2) {
136146
+ Object.defineProperty(exports2, "__esModule", {
136147
+ value: true
136148
+ });
136149
+ var _slicedToArray2 = function() {
136150
+ function sliceIterator(arr, i) {
136151
+ var _arr = [];
136152
+ var _n = true;
136153
+ var _d = false;
136154
+ var _e = void 0;
136155
+ try {
136156
+ for (var _i = arr[Symbol.iterator](), _s2; !(_n = (_s2 = _i.next()).done); _n = true) {
136157
+ _arr.push(_s2.value);
136158
+ if (i && _arr.length === i)
136159
+ break;
136160
+ }
136161
+ } catch (err2) {
136162
+ _d = true;
136163
+ _e = err2;
136164
+ } finally {
136165
+ try {
136166
+ if (!_n && _i["return"])
136167
+ _i["return"]();
136168
+ } finally {
136169
+ if (_d)
136170
+ throw _e;
136171
+ }
136172
+ }
136173
+ return _arr;
136174
+ }
136175
+ __name(sliceIterator, "sliceIterator");
136176
+ return function(arr, i) {
136177
+ if (Array.isArray(arr)) {
136178
+ return arr;
136179
+ } else if (Symbol.iterator in Object(arr)) {
136180
+ return sliceIterator(arr, i);
136181
+ } else {
136182
+ throw new TypeError("Invalid attempt to destructure non-iterable instance");
136183
+ }
136184
+ };
136185
+ }();
136186
+ var sum2 = /* @__PURE__ */ __name(function sum3(xs) {
136187
+ return xs.reduce(function(a2, b3) {
136188
+ return a2 + b3;
136189
+ }, 0);
136190
+ }, "sum");
136191
+ var min2 = /* @__PURE__ */ __name(function min3(xs) {
136192
+ return xs.reduce(function(a2, b3) {
136193
+ return Math.min(a2, b3);
136194
+ });
136195
+ }, "min");
136196
+ var max2 = /* @__PURE__ */ __name(function max3(xs) {
136197
+ return xs.reduce(function(a2, b3) {
136198
+ return Math.max(a2, b3);
136199
+ });
136200
+ }, "max");
136201
+ var sumBy = /* @__PURE__ */ __name(function sumBy2(xs, f2) {
136202
+ return xs.reduce(function(a2, b3) {
136203
+ return a2 + f2(b3);
136204
+ }, 0);
136205
+ }, "sumBy");
136206
+ var minBy = /* @__PURE__ */ __name(function minBy2(xs, f2) {
136207
+ return xs.reduce(function(a2, b3) {
136208
+ return Math.min(a2, f2(b3));
136209
+ }, Infinity);
136210
+ }, "minBy");
136211
+ var maxBy = /* @__PURE__ */ __name(function maxBy2(xs, f2) {
136212
+ return xs.reduce(function(a2, b3) {
136213
+ return Math.max(a2, f2(b3));
136214
+ }, -Infinity);
136215
+ }, "maxBy");
136216
+ var plus = /* @__PURE__ */ __name(function plus2(_ref, _ref3) {
136217
+ var _ref2 = _slicedToArray2(_ref, 2);
136218
+ var a2 = _ref2[0];
136219
+ var b3 = _ref2[1];
136220
+ var _ref32 = _slicedToArray2(_ref3, 2);
136221
+ var c2 = _ref32[0];
136222
+ var d2 = _ref32[1];
136223
+ return [a2 + c2, b3 + d2];
136224
+ }, "plus");
136225
+ var minus = /* @__PURE__ */ __name(function minus2(_ref4, _ref5) {
136226
+ var _ref42 = _slicedToArray2(_ref4, 2);
136227
+ var a2 = _ref42[0];
136228
+ var b3 = _ref42[1];
136229
+ var _ref52 = _slicedToArray2(_ref5, 2);
136230
+ var c2 = _ref52[0];
136231
+ var d2 = _ref52[1];
136232
+ return [a2 - c2, b3 - d2];
136233
+ }, "minus");
136234
+ var times = /* @__PURE__ */ __name(function times2(k2, _ref6) {
136235
+ var _ref62 = _slicedToArray2(_ref6, 2);
136236
+ var a2 = _ref62[0];
136237
+ var b3 = _ref62[1];
136238
+ return [k2 * a2, k2 * b3];
136239
+ }, "times");
136240
+ var length = /* @__PURE__ */ __name(function length2(_ref7) {
136241
+ var _ref72 = _slicedToArray2(_ref7, 2);
136242
+ var a2 = _ref72[0];
136243
+ var b3 = _ref72[1];
136244
+ return Math.sqrt(a2 * a2 + b3 * b3);
136245
+ }, "length");
136246
+ var sumVectors = /* @__PURE__ */ __name(function sumVectors2(xs) {
136247
+ return xs.reduce(plus, [0, 0]);
136248
+ }, "sumVectors");
136249
+ var average = /* @__PURE__ */ __name(function average2(points) {
136250
+ return times(1 / points.length, points.reduce(plus));
136251
+ }, "average");
136252
+ var onCircle = /* @__PURE__ */ __name(function onCircle2(r2, angle2) {
136253
+ return times(r2, [Math.sin(angle2), -Math.cos(angle2)]);
136254
+ }, "onCircle");
136255
+ var enhance = /* @__PURE__ */ __name(function enhance2(compute, curve) {
136256
+ var obj = compute || {};
136257
+ for (var key in obj) {
136258
+ var method = obj[key];
136259
+ curve[key] = method(curve.index, curve.item, curve.group);
136260
+ }
136261
+ return curve;
136262
+ }, "enhance");
136263
+ var range2 = /* @__PURE__ */ __name(function range3(a2, b3, inclusive) {
136264
+ var result = [];
136265
+ for (var i = a2; i < b3; i++) {
136266
+ result.push(i);
136267
+ }
136268
+ if (inclusive) {
136269
+ result.push(b3);
136270
+ }
136271
+ return result;
136272
+ }, "range");
136273
+ var mapObject = /* @__PURE__ */ __name(function mapObject2(obj, f2) {
136274
+ var result = [];
136275
+ var _iteratorNormalCompletion = true;
136276
+ var _didIteratorError = false;
136277
+ var _iteratorError = void 0;
136278
+ try {
136279
+ for (var _iterator3 = Object.keys(obj)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator3.next()).done); _iteratorNormalCompletion = true) {
136280
+ var k2 = _step.value;
136281
+ var v2 = obj[k2];
136282
+ result.push(f2(k2, v2));
136283
+ }
136284
+ } catch (err2) {
136285
+ _didIteratorError = true;
136286
+ _iteratorError = err2;
136287
+ } finally {
136288
+ try {
136289
+ if (!_iteratorNormalCompletion && _iterator3["return"]) {
136290
+ _iterator3["return"]();
136291
+ }
136292
+ } finally {
136293
+ if (_didIteratorError) {
136294
+ throw _iteratorError;
136295
+ }
136296
+ }
136297
+ }
136298
+ return result;
136299
+ }, "mapObject");
136300
+ var pairs = /* @__PURE__ */ __name(function pairs2(obj) {
136301
+ return mapObject(obj, function(k2, v2) {
136302
+ return [k2, v2];
136303
+ });
136304
+ }, "pairs");
136305
+ var id2 = /* @__PURE__ */ __name(function id3(x) {
136306
+ return x;
136307
+ }, "id");
136308
+ exports2.sum = sum2;
136309
+ exports2.min = min2;
136310
+ exports2.max = max2;
136311
+ exports2.sumBy = sumBy;
136312
+ exports2.minBy = minBy;
136313
+ exports2.maxBy = maxBy;
136314
+ exports2.plus = plus;
136315
+ exports2.minus = minus;
136316
+ exports2.times = times;
136317
+ exports2.id = id2;
136318
+ exports2.length = length;
136319
+ exports2.sumVectors = sumVectors;
136320
+ exports2.average = average;
136321
+ exports2.onCircle = onCircle;
136322
+ exports2.enhance = enhance;
136323
+ exports2.range = range2;
136324
+ exports2.mapObject = mapObject;
136325
+ exports2.pairs = pairs;
136326
+ exports2["default"] = {
136327
+ sum: sum2,
136328
+ min: min2,
136329
+ max: max2,
136330
+ sumBy,
136331
+ minBy,
136332
+ maxBy,
136333
+ plus,
136334
+ minus,
136335
+ times,
136336
+ id: id2,
136337
+ length,
136338
+ sumVectors,
136339
+ average,
136340
+ onCircle,
136341
+ enhance,
136342
+ range: range2,
136343
+ mapObject,
136344
+ pairs
136345
+ };
136346
+ })(ops);
136347
+ (function(module2, exports2) {
136348
+ Object.defineProperty(exports2, "__esModule", {
136349
+ value: true
136350
+ });
136351
+ function _interopRequireDefault2(obj) {
136352
+ return obj && obj.__esModule ? obj : { "default": obj };
136353
+ }
136354
+ __name(_interopRequireDefault2, "_interopRequireDefault");
136355
+ function _toConsumableArray2(arr) {
136356
+ if (Array.isArray(arr)) {
136357
+ for (var i = 0, arr2 = Array(arr.length); i < arr.length; i++)
136358
+ arr2[i] = arr[i];
136359
+ return arr2;
136360
+ } else {
136361
+ return Array.from(arr);
136362
+ }
136363
+ }
136364
+ __name(_toConsumableArray2, "_toConsumableArray");
136365
+ var _path = pathExports;
136366
+ var _path2 = _interopRequireDefault2(_path);
136367
+ var _ops = ops;
136368
+ exports2["default"] = function(_ref) {
136369
+ var _Path$moveto$arc$lineto, _Path$moveto$arc, _Path$moveto, _Path;
136370
+ var center = _ref.center;
136371
+ var r2 = _ref.r;
136372
+ var R2 = _ref.R;
136373
+ var start2 = _ref.start;
136374
+ var end2 = _ref.end;
136375
+ var epsilon = 1e-4;
136376
+ if (Math.abs(end2 - 2 * Math.PI) < epsilon) {
136377
+ end2 = 2 * Math.PI - epsilon;
136378
+ }
136379
+ var a2 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, start2));
136380
+ var b3 = (0, _ops.plus)(center, (0, _ops.onCircle)(R2, end2));
136381
+ var c2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, end2));
136382
+ var d2 = (0, _ops.plus)(center, (0, _ops.onCircle)(r2, start2));
136383
+ var large = end2 - start2 > Math.PI ? 1 : 0;
136384
+ var path2 = (_Path$moveto$arc$lineto = (_Path$moveto$arc = (_Path$moveto = (_Path = (0, _path2["default"])()).moveto.apply(_Path, _toConsumableArray2(a2))).arc.apply(_Path$moveto, [R2, R2, 0, large, 1].concat(_toConsumableArray2(b3)))).lineto.apply(_Path$moveto$arc, _toConsumableArray2(c2))).arc.apply(_Path$moveto$arc$lineto, [r2, r2, 0, large, 0].concat(_toConsumableArray2(d2))).closepath();
136385
+ var midAngle = (start2 + end2) / 2;
136386
+ var midRadius = (r2 + R2) / 2;
136387
+ var centroid = (0, _ops.plus)(center, (0, _ops.onCircle)(midRadius, midAngle));
136388
+ return {
136389
+ path: path2,
136390
+ centroid
136391
+ };
136392
+ };
136393
+ module2.exports = exports2["default"];
136394
+ })(sector$1, sector$1.exports);
136395
+ var sectorExports = sector$1.exports;
136396
+ const sector = /* @__PURE__ */ getDefaultExportFromCjs(sectorExports);
136397
+ function SelectionLayer({
136398
+ isDraggable,
136399
+ selectionLayer: selectionLayer2,
136400
+ sequenceLength,
136401
+ radius,
136402
+ hideTitle,
136403
+ innerRadius,
136404
+ onRightClicked,
136405
+ onClick,
136406
+ index: index2,
136407
+ isProtein: isProtein2
136408
+ }) {
136409
+ const {
136410
+ color: color2,
136411
+ start: start2,
136412
+ end: end2,
136413
+ hideCarets = false,
136414
+ style: style2,
136415
+ className
136416
+ } = selectionLayer2;
136417
+ const { startAngle, endAngle, totalAngle } = getRangeAnglesSpecial(
136418
+ selectionLayer2,
136419
+ sequenceLength
136420
+ );
136421
+ const section = sector({
136422
+ center: [0, 0],
136423
+ //the center is always 0,0 for our annotations :) we rotate later!
136424
+ r: innerRadius,
136425
+ R: radius,
136426
+ start: 0,
136427
+ end: totalAngle
136428
+ });
136429
+ const selectionMessage = getSelectionMessage({
136430
+ sequenceLength,
136431
+ selectionLayer: selectionLayer2,
136432
+ isProtein: isProtein2
136433
+ });
136434
+ const { transform: transform3 } = PositionAnnotationOnCircle({
136435
+ sAngle: startAngle,
136436
+ eAngle: endAngle,
136437
+ height: 0
136438
+ });
136439
+ return /* @__PURE__ */ React$2.createElement(
136440
+ "g",
136441
+ {
136442
+ onContextMenu: (event) => {
136443
+ onRightClicked && onRightClicked({
136444
+ annotation: selectionLayer2,
136445
+ event
136446
+ });
136447
+ },
136448
+ onClick: onClick ? (event) => {
136449
+ onClick({
136450
+ annotation: selectionLayer2,
136451
+ event
136452
+ });
136453
+ } : void 0,
136454
+ key: "veSelectionLayer" + index2,
136455
+ className: "veSelectionLayer " + (className || "")
136456
+ },
136457
+ !hideTitle && /* @__PURE__ */ React$2.createElement("title", null, selectionMessage),
136458
+ /* @__PURE__ */ React$2.createElement(
136459
+ "path",
136460
+ {
136461
+ transform: transform3,
136462
+ className: "selectionLayer",
136463
+ style: __spreadValues({ opacity: 0.3 }, style2),
136464
+ d: section.path.print(),
136465
+ fill: color2
136466
+ }
136467
+ ),
136468
+ !hideCarets && /* @__PURE__ */ React$2.createElement(
136469
+ Caret$1,
136470
+ {
136471
+ key: "caret1",
136472
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionStart : ""),
136473
+ isSelection: true,
136474
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136475
+ selectionMessage,
136476
+ caretPosition: start2,
136477
+ sequenceLength,
136478
+ innerRadius,
136479
+ outerRadius: radius
136480
+ }
136481
+ ),
136482
+ !hideCarets && /* @__PURE__ */ React$2.createElement(
136483
+ Caret$1,
136484
+ {
136485
+ key: "caret2",
136486
+ className: className + " selectionLayerCaret " + (isDraggable ? draggableClassnames.selectionEnd : ""),
136487
+ isSelection: true,
136488
+ onClick: onClick ? noop$4 : preventDefaultStopPropagation,
136489
+ selectionMessage,
136490
+ caretPosition: end2 + 1,
136491
+ sequenceLength,
136492
+ innerRadius,
136493
+ outerRadius: radius
136494
+ }
136495
+ )
136496
+ );
136497
+ }
136498
+ __name(SelectionLayer, "SelectionLayer");
136499
+ const SelectionLayer$1 = pure(SelectionLayer);
136500
+ function Axis({
136501
+ radius,
136502
+ showAxisNumbers,
136503
+ tickMarkHeight = 5,
136504
+ textOffset = 15,
136505
+ ringThickness = 4,
136506
+ zoomLevel
136507
+ }) {
136508
+ const height2 = (ringThickness + (showAxisNumbers ? textOffset + tickMarkHeight : 0)) / zoomLevel;
136509
+ const radiusToUse = showAxisNumbers ? radius + textOffset + tickMarkHeight : radius;
136510
+ const component = /* @__PURE__ */ React$2.createElement("g", { key: "veAxis", className: "veAxis" }, /* @__PURE__ */ React$2.createElement(
136511
+ "circle",
136512
+ {
136513
+ className: "veAxisLine veAxisOuter",
136514
+ key: "circleOuter",
136515
+ r: radiusToUse + ringThickness,
136516
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136517
+ }
136518
+ ), /* @__PURE__ */ React$2.createElement(
136519
+ "circle",
136520
+ {
136521
+ className: "veAxisLine veAxisInner",
136522
+ key: "circle",
136523
+ r: radiusToUse,
136524
+ style: { fill: "#ffffff00", stroke: "black", strokeWidth: 0.5 }
136525
+ }
136526
+ ));
136527
+ return {
136528
+ component,
136529
+ height: height2
136530
+ };
136531
+ }
136532
+ __name(Axis, "Axis");
136533
+ function CircularPrimer$1({
136534
+ color: color2 = "orange",
136535
+ radius,
136536
+ annotationHeight,
136537
+ totalAngle
136538
+ }) {
136539
+ return /* @__PURE__ */ React$2.createElement(
136540
+ "path",
136541
+ {
136542
+ className: "veOrf",
136543
+ strokeWidth: ".5",
136544
+ stroke: color2,
136545
+ fill: color2,
136546
+ d: drawDirectedPiePiece({
136547
+ radius,
136548
+ annotationHeight,
136549
+ totalAngle,
136550
+ arrowheadLength: 0.4,
136551
+ tailThickness: 0.4
136552
+ }).print()
136553
+ }
136554
+ );
136555
+ }
136556
+ __name(CircularPrimer$1, "CircularPrimer$1");
136557
+ function CircularPrimer(props) {
136558
+ const {
136559
+ color: color2 = "orange",
136560
+ radius,
136561
+ arrowheadLength = 0.5,
136562
+ annotationHeight,
136563
+ totalAngle,
136564
+ id: id2,
136565
+ labelNeedsFlip,
136566
+ ellipsizedName
136567
+ } = props;
136568
+ const [path2, textPath] = drawDirectedPiePiece({
136569
+ radius,
136570
+ annotationHeight,
136571
+ totalAngle,
136572
+ arrowheadLength,
136573
+ tailThickness: 1,
136574
+ //feature specific
136575
+ returnTextPath: true,
136576
+ hasLabel: ellipsizedName,
136577
+ labelNeedsFlip
136578
+ });
136579
+ return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, getStripedPattern({ color: color2 }), /* @__PURE__ */ React$2.createElement(
136580
+ "path",
136581
+ {
136582
+ className: "vePrimer veCircularViewPrimer",
136583
+ id: id2,
136584
+ strokeWidth: ".5",
136585
+ stroke: "black",
136586
+ fill: "url(#diagonalHatch)",
136587
+ d: path2.print()
136588
+ }
136589
+ ), getInternalLabel(__spreadProps(__spreadValues({}, props), { colorToUse: color2, textPath })));
136590
+ }
136591
+ __name(CircularPrimer, "CircularPrimer");
136592
+ function Cutsite({
136593
+ annotationHeight,
136594
+ radius
136595
+ // totalAngle,
136596
+ // ...rest
136597
+ }) {
136598
+ return /* @__PURE__ */ React$2.createElement(
136599
+ "rect",
136600
+ {
136601
+ className: "veCutsite",
136602
+ width: 1,
136603
+ y: -radius - 4,
136604
+ height: annotationHeight
136605
+ }
136606
+ );
136607
+ }
136608
+ __name(Cutsite, "Cutsite");
136354
136609
  const style$e = "";
136355
136610
  function c(u2, e2, c2) {
136356
136611
  var i = this, a2 = React$2.useRef(null), o2 = React$2.useRef(0), f2 = React$2.useRef(null), l2 = React$2.useRef([]), m2 = React$2.useRef(), v2 = React$2.useRef(), d2 = React$2.useRef(u2), p2 = React$2.useRef(true);
@@ -142870,7 +143125,7 @@ ${seqDataToCopy}\r
142870
143125
  scrollbarWidth: "none",
142871
143126
  whiteSpace: "nowrap"
142872
143127
  },
142873
- title: name2,
143128
+ "data-title": name2,
142874
143129
  key: i
142875
143130
  },
142876
143131
  /* @__PURE__ */ React$2.createElement(
@@ -143670,7 +143925,7 @@ ${seqDataToCopy}\r
143670
143925
  textOverflow: "ellipsis",
143671
143926
  whiteSpace: "nowrap"
143672
143927
  },
143673
- title: this.props.alignmentType || "Unknown Alignment Type"
143928
+ "data-title": this.props.alignmentType || "Unknown Alignment Type"
143674
143929
  },
143675
143930
  this.props.alignmentType || "Unknown Alignment Type"
143676
143931
  )),
@@ -158317,11 +158572,11 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158317
158572
  var batch2 = Batch();
158318
158573
  var asyncFrameHandler;
158319
158574
  var isProcessing = false;
158320
- function addFunction(level, fn3) {
158575
+ function addFunction(level, fn4) {
158321
158576
  if (!isProcessing && autoProcess && asyncProcess && batch2.size() === 0) {
158322
158577
  processBatchAsync();
158323
158578
  }
158324
- batch2.add(level, fn3);
158579
+ batch2.add(level, fn4);
158325
158580
  }
158326
158581
  __name(addFunction, "addFunction");
158327
158582
  function processBatch() {
@@ -158362,8 +158617,8 @@ var batchProcessor = /* @__PURE__ */ __name(function batchProcessorMaker(options
158362
158617
  }
158363
158618
  __name(cancelFrame, "cancelFrame");
158364
158619
  function requestFrame(callback2) {
158365
- var raf = /* @__PURE__ */ __name(function(fn3) {
158366
- return setTimeout(fn3, 0);
158620
+ var raf = /* @__PURE__ */ __name(function(fn4) {
158621
+ return setTimeout(fn4, 0);
158367
158622
  }, "raf");
158368
158623
  return raf(callback2);
158369
158624
  }
@@ -158378,9 +158633,9 @@ function Batch() {
158378
158633
  var size = 0;
158379
158634
  var topLevel2 = 0;
158380
158635
  var bottomLevel2 = 0;
158381
- function add3(level, fn3) {
158382
- if (!fn3) {
158383
- fn3 = level;
158636
+ function add3(level, fn4) {
158637
+ if (!fn4) {
158638
+ fn4 = level;
158384
158639
  level = 0;
158385
158640
  }
158386
158641
  if (level > topLevel2) {
@@ -158391,7 +158646,7 @@ function Batch() {
158391
158646
  if (!batch2[level]) {
158392
158647
  batch2[level] = [];
158393
158648
  }
158394
- batch2[level].push(fn3);
158649
+ batch2[level].push(fn4);
158395
158650
  size++;
158396
158651
  }
158397
158652
  __name(add3, "add");
@@ -158399,8 +158654,8 @@ function Batch() {
158399
158654
  for (var level = bottomLevel2; level <= topLevel2; level++) {
158400
158655
  var fns = batch2[level];
158401
158656
  for (var i = 0; i < fns.length; i++) {
158402
- var fn3 = fns[i];
158403
- fn3();
158657
+ var fn4 = fns[i];
158658
+ fn4();
158404
158659
  }
158405
158660
  }
158406
158661
  }