@teselagen/ove 0.7.15 → 0.7.16

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
@@ -56,7 +56,7 @@ var __async = (__this, __arguments, generator) => {
56
56
  step((generator = generator.apply(__this, __arguments)).next());
57
57
  });
58
58
  };
59
- var _E, _F, _G, _H, _I, _L, _O, _V;
59
+ var _C, _D, _E, _F, _G, _J, _M, _T;
60
60
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
61
61
  const core = require("@blueprintjs/core");
62
62
  const React$2 = require("react");
@@ -4679,7 +4679,7 @@ let nanoid = /* @__PURE__ */ __name((size = 21) => crypto.getRandomValues(new Ui
4679
4679
  var papaparse_min = { exports: {} };
4680
4680
  /* @license
4681
4681
  Papa Parse
4682
- v5.4.1
4682
+ v5.3.2
4683
4683
  https://github.com/mholt/PapaParse
4684
4684
  License: MIT
4685
4685
  */
@@ -4688,28 +4688,24 @@ License: MIT
4688
4688
  module2.exports = t2();
4689
4689
  }(commonjsGlobal, /* @__PURE__ */ __name(function s2() {
4690
4690
  var f2 = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== f2 ? f2 : {};
4691
- var n2 = !f2.document && !!f2.postMessage, o2 = f2.IS_PAPA_WORKER || false, a2 = {}, u2 = 0, b3 = { parse: function(e, t2) {
4692
- var r3 = (t2 = t2 || {}).dynamicTyping || false;
4693
- J(r3) && (t2.dynamicTypingFunction = r3, r3 = {});
4694
- if (t2.dynamicTyping = r3, t2.transform = !!J(t2.transform) && t2.transform, t2.worker && b3.WORKERS_SUPPORTED) {
4695
- var i = function() {
4691
+ var n2 = !f2.document && !!f2.postMessage, o2 = n2 && /blob:/i.test((f2.location || {}).protocol), a2 = {}, h2 = 0, b3 = { parse: function(e, t2) {
4692
+ var i2 = (t2 = t2 || {}).dynamicTyping || false;
4693
+ M2(i2) && (t2.dynamicTypingFunction = i2, i2 = {});
4694
+ if (t2.dynamicTyping = i2, t2.transform = !!M2(t2.transform) && t2.transform, t2.worker && b3.WORKERS_SUPPORTED) {
4695
+ var r2 = function() {
4696
4696
  if (!b3.WORKERS_SUPPORTED)
4697
4697
  return false;
4698
- var e2 = (r4 = f2.URL || f2.webkitURL || null, i2 = s2.toString(), b3.BLOB_URL || (b3.BLOB_URL = r4.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ", "(", i2, ")();"], { type: "text/javascript" })))), t3 = new f2.Worker(e2);
4699
- var r4, i2;
4700
- return t3.onmessage = _2, t3.id = u2++, a2[t3.id] = t3;
4698
+ var e2 = (i3 = f2.URL || f2.webkitURL || null, r3 = s2.toString(), b3.BLOB_URL || (b3.BLOB_URL = i3.createObjectURL(new Blob(["(", r3, ")();"], { type: "text/javascript" })))), t3 = new f2.Worker(e2);
4699
+ var i3, r3;
4700
+ return t3.onmessage = _2, t3.id = h2++, a2[t3.id] = t3;
4701
4701
  }();
4702
- return i.userStep = t2.step, i.userChunk = t2.chunk, i.userComplete = t2.complete, i.userError = t2.error, t2.step = J(t2.step), t2.chunk = J(t2.chunk), t2.complete = J(t2.complete), t2.error = J(t2.error), delete t2.worker, void i.postMessage({ input: e, config: t2, workerId: i.id });
4702
+ return r2.userStep = t2.step, r2.userChunk = t2.chunk, r2.userComplete = t2.complete, r2.userError = t2.error, t2.step = M2(t2.step), t2.chunk = M2(t2.chunk), t2.complete = M2(t2.complete), t2.error = M2(t2.error), delete t2.worker, void r2.postMessage({ input: e, config: t2, workerId: r2.id });
4703
4703
  }
4704
4704
  var n3 = null;
4705
- b3.NODE_STREAM_INPUT, "string" == typeof e ? (e = function(e2) {
4706
- if (65279 === e2.charCodeAt(0))
4707
- return e2.slice(1);
4708
- return e2;
4709
- }(e), n3 = t2.download ? new l2(t2) : new p2(t2)) : true === e.readable && J(e.read) && J(e.on) ? n3 = new g2(t2) : (f2.File && e instanceof File || e instanceof Object) && (n3 = new c2(t2));
4705
+ b3.NODE_STREAM_INPUT, "string" == typeof e ? n3 = t2.download ? new l2(t2) : new p2(t2) : true === e.readable && M2(e.read) && M2(e.on) ? n3 = new g2(t2) : (f2.File && e instanceof File || e instanceof Object) && (n3 = new c2(t2));
4710
4706
  return n3.stream(e);
4711
4707
  }, unparse: function(e, t2) {
4712
- var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3, r3 = false, i = null, o3 = false;
4708
+ var n3 = false, _3 = true, m3 = ",", y3 = "\r\n", s3 = '"', a3 = s3 + s3, i2 = false, r2 = null, o3 = false;
4713
4709
  !function() {
4714
4710
  if ("object" != typeof t2)
4715
4711
  return;
@@ -4717,149 +4713,149 @@ License: MIT
4717
4713
  return -1 !== t2.delimiter.indexOf(e2);
4718
4714
  }).length || (m3 = t2.delimiter);
4719
4715
  ("boolean" == typeof t2.quotes || "function" == typeof t2.quotes || Array.isArray(t2.quotes)) && (n3 = t2.quotes);
4720
- "boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (r3 = t2.skipEmptyLines);
4716
+ "boolean" != typeof t2.skipEmptyLines && "string" != typeof t2.skipEmptyLines || (i2 = t2.skipEmptyLines);
4721
4717
  "string" == typeof t2.newline && (y3 = t2.newline);
4722
4718
  "string" == typeof t2.quoteChar && (s3 = t2.quoteChar);
4723
4719
  "boolean" == typeof t2.header && (_3 = t2.header);
4724
4720
  if (Array.isArray(t2.columns)) {
4725
4721
  if (0 === t2.columns.length)
4726
4722
  throw new Error("Option columns is empty");
4727
- i = t2.columns;
4723
+ r2 = t2.columns;
4728
4724
  }
4729
4725
  void 0 !== t2.escapeChar && (a3 = t2.escapeChar + s3);
4730
4726
  ("boolean" == typeof t2.escapeFormulae || t2.escapeFormulae instanceof RegExp) && (o3 = t2.escapeFormulae instanceof RegExp ? t2.escapeFormulae : /^[=+\-@\t\r].*$/);
4731
4727
  }();
4732
- var u3 = new RegExp(Q2(s3), "g");
4728
+ var h3 = new RegExp(j2(s3), "g");
4733
4729
  "string" == typeof e && (e = JSON.parse(e));
4734
4730
  if (Array.isArray(e)) {
4735
4731
  if (!e.length || Array.isArray(e[0]))
4736
- return h3(null, e, r3);
4732
+ return u3(null, e, i2);
4737
4733
  if ("object" == typeof e[0])
4738
- return h3(i || Object.keys(e[0]), e, r3);
4734
+ return u3(r2 || Object.keys(e[0]), e, i2);
4739
4735
  } else if ("object" == typeof e)
4740
- return "string" == typeof e.data && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || i), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : "object" == typeof e.data[0] ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || "object" == typeof e.data[0] || (e.data = [e.data])), h3(e.fields || [], e.data || [], r3);
4736
+ return "string" == typeof e.data && (e.data = JSON.parse(e.data)), Array.isArray(e.data) && (e.fields || (e.fields = e.meta && e.meta.fields || r2), e.fields || (e.fields = Array.isArray(e.data[0]) ? e.fields : "object" == typeof e.data[0] ? Object.keys(e.data[0]) : []), Array.isArray(e.data[0]) || "object" == typeof e.data[0] || (e.data = [e.data])), u3(e.fields || [], e.data || [], i2);
4741
4737
  throw new Error("Unable to serialize unrecognized input");
4742
- function h3(e2, t3, r4) {
4743
- var i2 = "";
4738
+ function u3(e2, t3, i3) {
4739
+ var r3 = "";
4744
4740
  "string" == typeof e2 && (e2 = JSON.parse(e2)), "string" == typeof t3 && (t3 = JSON.parse(t3));
4745
4741
  var n4 = Array.isArray(e2) && 0 < e2.length, s4 = !Array.isArray(t3[0]);
4746
4742
  if (n4 && _3) {
4747
4743
  for (var a4 = 0; a4 < e2.length; a4++)
4748
- 0 < a4 && (i2 += m3), i2 += v3(e2[a4], a4);
4749
- 0 < t3.length && (i2 += y3);
4744
+ 0 < a4 && (r3 += m3), r3 += v3(e2[a4], a4);
4745
+ 0 < t3.length && (r3 += y3);
4750
4746
  }
4751
4747
  for (var o4 = 0; o4 < t3.length; o4++) {
4752
- var u4 = n4 ? e2.length : t3[o4].length, h4 = false, f3 = n4 ? 0 === Object.keys(t3[o4]).length : 0 === t3[o4].length;
4753
- if (r4 && !n4 && (h4 = "greedy" === r4 ? "" === t3[o4].join("").trim() : 1 === t3[o4].length && 0 === t3[o4][0].length), "greedy" === r4 && n4) {
4754
- for (var d3 = [], l3 = 0; l3 < u4; l3++) {
4748
+ var h4 = n4 ? e2.length : t3[o4].length, u4 = false, f3 = n4 ? 0 === Object.keys(t3[o4]).length : 0 === t3[o4].length;
4749
+ if (i3 && !n4 && (u4 = "greedy" === i3 ? "" === t3[o4].join("").trim() : 1 === t3[o4].length && 0 === t3[o4][0].length), "greedy" === i3 && n4) {
4750
+ for (var d3 = [], l3 = 0; l3 < h4; l3++) {
4755
4751
  var c3 = s4 ? e2[l3] : l3;
4756
4752
  d3.push(t3[o4][c3]);
4757
4753
  }
4758
- h4 = "" === d3.join("").trim();
4754
+ u4 = "" === d3.join("").trim();
4759
4755
  }
4760
- if (!h4) {
4761
- for (var p3 = 0; p3 < u4; p3++) {
4762
- 0 < p3 && !f3 && (i2 += m3);
4756
+ if (!u4) {
4757
+ for (var p3 = 0; p3 < h4; p3++) {
4758
+ 0 < p3 && !f3 && (r3 += m3);
4763
4759
  var g3 = n4 && s4 ? e2[p3] : p3;
4764
- i2 += v3(t3[o4][g3], p3);
4760
+ r3 += v3(t3[o4][g3], p3);
4765
4761
  }
4766
- o4 < t3.length - 1 && (!r4 || 0 < u4 && !f3) && (i2 += y3);
4762
+ o4 < t3.length - 1 && (!i3 || 0 < h4 && !f3) && (r3 += y3);
4767
4763
  }
4768
4764
  }
4769
- return i2;
4765
+ return r3;
4770
4766
  }
4771
- __name(h3, "h");
4767
+ __name(u3, "u");
4772
4768
  function v3(e2, t3) {
4773
4769
  if (null == e2)
4774
4770
  return "";
4775
4771
  if (e2.constructor === Date)
4776
4772
  return JSON.stringify(e2).slice(1, 25);
4777
- var r4 = false;
4778
- o3 && "string" == typeof e2 && o3.test(e2) && (e2 = "'" + e2, r4 = true);
4779
- var i2 = e2.toString().replace(u3, a3);
4780
- return (r4 = r4 || true === n3 || "function" == typeof n3 && n3(e2, t3) || Array.isArray(n3) && n3[t3] || function(e3, t4) {
4781
- for (var r5 = 0; r5 < t4.length; r5++)
4782
- if (-1 < e3.indexOf(t4[r5]))
4773
+ var i3 = false;
4774
+ o3 && "string" == typeof e2 && o3.test(e2) && (e2 = "'" + e2, i3 = true);
4775
+ var r3 = e2.toString().replace(h3, a3);
4776
+ return (i3 = i3 || true === n3 || "function" == typeof n3 && n3(e2, t3) || Array.isArray(n3) && n3[t3] || function(e3, t4) {
4777
+ for (var i4 = 0; i4 < t4.length; i4++)
4778
+ if (-1 < e3.indexOf(t4[i4]))
4783
4779
  return true;
4784
4780
  return false;
4785
- }(i2, b3.BAD_DELIMITERS) || -1 < i2.indexOf(m3) || " " === i2.charAt(0) || " " === i2.charAt(i2.length - 1)) ? s3 + i2 + s3 : i2;
4781
+ }(r3, b3.BAD_DELIMITERS) || -1 < r3.indexOf(m3) || " " === r3.charAt(0) || " " === r3.charAt(r3.length - 1)) ? s3 + r3 + s3 : r3;
4786
4782
  }
4787
4783
  __name(v3, "v");
4788
4784
  } };
4789
- if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle = r2, b3.NetworkStreamer = l2, b3.FileStreamer = c2, b3.StringStreamer = p2, b3.ReadableStreamStreamer = g2, f2.jQuery) {
4785
+ if (b3.RECORD_SEP = String.fromCharCode(30), b3.UNIT_SEP = String.fromCharCode(31), b3.BYTE_ORDER_MARK = "\uFEFF", b3.BAD_DELIMITERS = ["\r", "\n", '"', b3.BYTE_ORDER_MARK], b3.WORKERS_SUPPORTED = !n2 && !!f2.Worker, b3.NODE_STREAM_INPUT = 1, b3.LocalChunkSize = 10485760, b3.RemoteChunkSize = 5242880, b3.DefaultDelimiter = ",", b3.Parser = E2, b3.ParserHandle = i, b3.NetworkStreamer = l2, b3.FileStreamer = c2, b3.StringStreamer = p2, b3.ReadableStreamStreamer = g2, f2.jQuery) {
4790
4786
  var d2 = f2.jQuery;
4791
4787
  d2.fn.parse = function(o3) {
4792
- var r3 = o3.config || {}, u3 = [];
4788
+ var i2 = o3.config || {}, h3 = [];
4793
4789
  return this.each(function(e2) {
4794
4790
  if (!("INPUT" === d2(this).prop("tagName").toUpperCase() && "file" === d2(this).attr("type").toLowerCase() && f2.FileReader) || !this.files || 0 === this.files.length)
4795
4791
  return true;
4796
4792
  for (var t2 = 0; t2 < this.files.length; t2++)
4797
- u3.push({ file: this.files[t2], inputElem: this, instanceConfig: d2.extend({}, r3) });
4793
+ h3.push({ file: this.files[t2], inputElem: this, instanceConfig: d2.extend({}, i2) });
4798
4794
  }), e(), this;
4799
4795
  function e() {
4800
- if (0 !== u3.length) {
4801
- var e2, t2, r4, i, n3 = u3[0];
4802
- if (J(o3.before)) {
4796
+ if (0 !== h3.length) {
4797
+ var e2, t2, i3, r2, n3 = h3[0];
4798
+ if (M2(o3.before)) {
4803
4799
  var s3 = o3.before(n3.file, n3.inputElem);
4804
4800
  if ("object" == typeof s3) {
4805
4801
  if ("abort" === s3.action)
4806
- return e2 = "AbortError", t2 = n3.file, r4 = n3.inputElem, i = s3.reason, void (J(o3.error) && o3.error({ name: e2 }, t2, r4, i));
4802
+ return e2 = "AbortError", t2 = n3.file, i3 = n3.inputElem, r2 = s3.reason, void (M2(o3.error) && o3.error({ name: e2 }, t2, i3, r2));
4807
4803
  if ("skip" === s3.action)
4808
- return void h3();
4804
+ return void u3();
4809
4805
  "object" == typeof s3.config && (n3.instanceConfig = d2.extend(n3.instanceConfig, s3.config));
4810
4806
  } else if ("skip" === s3)
4811
- return void h3();
4807
+ return void u3();
4812
4808
  }
4813
4809
  var a3 = n3.instanceConfig.complete;
4814
4810
  n3.instanceConfig.complete = function(e3) {
4815
- J(a3) && a3(e3, n3.file, n3.inputElem), h3();
4811
+ M2(a3) && a3(e3, n3.file, n3.inputElem), u3();
4816
4812
  }, b3.parse(n3.file, n3.instanceConfig);
4817
4813
  } else
4818
- J(o3.complete) && o3.complete();
4814
+ M2(o3.complete) && o3.complete();
4819
4815
  }
4820
4816
  __name(e, "e");
4821
- function h3() {
4822
- u3.splice(0, 1), e();
4817
+ function u3() {
4818
+ h3.splice(0, 1), e();
4823
4819
  }
4824
- __name(h3, "h");
4820
+ __name(u3, "u");
4825
4821
  };
4826
4822
  }
4827
- function h2(e) {
4823
+ function u2(e) {
4828
4824
  this._handle = null, this._finished = false, this._completed = false, this._halted = false, this._input = null, this._baseIndex = 0, this._partialLine = "", this._rowCount = 0, this._start = 0, this._nextChunk = null, this.isFirstChunk = true, this._completeResults = { data: [], errors: [], meta: {} }, function(e2) {
4829
4825
  var t2 = w2(e2);
4830
4826
  t2.chunkSize = parseInt(t2.chunkSize), e2.step || e2.chunk || (t2.chunkSize = null);
4831
- this._handle = new r2(t2), (this._handle.streamer = this)._config = t2;
4827
+ this._handle = new i(t2), (this._handle.streamer = this)._config = t2;
4832
4828
  }.call(this, e), this.parseChunk = function(e2, t2) {
4833
- if (this.isFirstChunk && J(this._config.beforeFirstChunk)) {
4834
- var r3 = this._config.beforeFirstChunk(e2);
4835
- void 0 !== r3 && (e2 = r3);
4829
+ if (this.isFirstChunk && M2(this._config.beforeFirstChunk)) {
4830
+ var i2 = this._config.beforeFirstChunk(e2);
4831
+ void 0 !== i2 && (e2 = i2);
4836
4832
  }
4837
4833
  this.isFirstChunk = false, this._halted = false;
4838
- var i = this._partialLine + e2;
4834
+ var r2 = this._partialLine + e2;
4839
4835
  this._partialLine = "";
4840
- var n3 = this._handle.parse(i, this._baseIndex, !this._finished);
4836
+ var n3 = this._handle.parse(r2, this._baseIndex, !this._finished);
4841
4837
  if (!this._handle.paused() && !this._handle.aborted()) {
4842
4838
  var s3 = n3.meta.cursor;
4843
- this._finished || (this._partialLine = i.substring(s3 - this._baseIndex), this._baseIndex = s3), n3 && n3.data && (this._rowCount += n3.data.length);
4839
+ this._finished || (this._partialLine = r2.substring(s3 - this._baseIndex), this._baseIndex = s3), n3 && n3.data && (this._rowCount += n3.data.length);
4844
4840
  var a3 = this._finished || this._config.preview && this._rowCount >= this._config.preview;
4845
4841
  if (o2)
4846
4842
  f2.postMessage({ results: n3, workerId: b3.WORKER_ID, finished: a3 });
4847
- else if (J(this._config.chunk) && !t2) {
4843
+ else if (M2(this._config.chunk) && !t2) {
4848
4844
  if (this._config.chunk(n3, this._handle), this._handle.paused() || this._handle.aborted())
4849
4845
  return void (this._halted = true);
4850
4846
  n3 = void 0, this._completeResults = void 0;
4851
4847
  }
4852
- return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !J(this._config.complete) || n3 && n3.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), a3 || n3 && n3.meta.paused || this._nextChunk(), n3;
4848
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(n3.data), this._completeResults.errors = this._completeResults.errors.concat(n3.errors), this._completeResults.meta = n3.meta), this._completed || !a3 || !M2(this._config.complete) || n3 && n3.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), a3 || n3 && n3.meta.paused || this._nextChunk(), n3;
4853
4849
  }
4854
4850
  this._halted = true;
4855
4851
  }, this._sendError = function(e2) {
4856
- J(this._config.error) ? this._config.error(e2) : o2 && this._config.error && f2.postMessage({ workerId: b3.WORKER_ID, error: e2, finished: false });
4852
+ M2(this._config.error) ? this._config.error(e2) : o2 && this._config.error && f2.postMessage({ workerId: b3.WORKER_ID, error: e2, finished: false });
4857
4853
  };
4858
4854
  }
4859
- __name(h2, "h");
4855
+ __name(u2, "u");
4860
4856
  function l2(e) {
4861
- var i;
4862
- (e = e || {}).chunkSize || (e.chunkSize = b3.RemoteChunkSize), h2.call(this, e), this._nextChunk = n2 ? function() {
4857
+ var r2;
4858
+ (e = e || {}).chunkSize || (e.chunkSize = b3.RemoteChunkSize), u2.call(this, e), this._nextChunk = n2 ? function() {
4863
4859
  this._readChunk(), this._chunkLoaded();
4864
4860
  } : function() {
4865
4861
  this._readChunk();
@@ -4869,41 +4865,41 @@ License: MIT
4869
4865
  if (this._finished)
4870
4866
  this._chunkLoaded();
4871
4867
  else {
4872
- if (i = new XMLHttpRequest(), this._config.withCredentials && (i.withCredentials = this._config.withCredentials), n2 || (i.onload = v2(this._chunkLoaded, this), i.onerror = v2(this._chunkError, this)), i.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n2), this._config.downloadRequestHeaders) {
4868
+ if (r2 = new XMLHttpRequest(), this._config.withCredentials && (r2.withCredentials = this._config.withCredentials), n2 || (r2.onload = v2(this._chunkLoaded, this), r2.onerror = v2(this._chunkError, this)), r2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !n2), this._config.downloadRequestHeaders) {
4873
4869
  var e2 = this._config.downloadRequestHeaders;
4874
4870
  for (var t2 in e2)
4875
- i.setRequestHeader(t2, e2[t2]);
4871
+ r2.setRequestHeader(t2, e2[t2]);
4876
4872
  }
4877
4873
  if (this._config.chunkSize) {
4878
- var r3 = this._start + this._config.chunkSize - 1;
4879
- i.setRequestHeader("Range", "bytes=" + this._start + "-" + r3);
4874
+ var i2 = this._start + this._config.chunkSize - 1;
4875
+ r2.setRequestHeader("Range", "bytes=" + this._start + "-" + i2);
4880
4876
  }
4881
4877
  try {
4882
- i.send(this._config.downloadRequestBody);
4878
+ r2.send(this._config.downloadRequestBody);
4883
4879
  } catch (e3) {
4884
4880
  this._chunkError(e3.message);
4885
4881
  }
4886
- n2 && 0 === i.status && this._chunkError();
4882
+ n2 && 0 === r2.status && this._chunkError();
4887
4883
  }
4888
4884
  }, this._chunkLoaded = function() {
4889
- 4 === i.readyState && (i.status < 200 || 400 <= i.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : i.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(e2) {
4885
+ 4 === r2.readyState && (r2.status < 200 || 400 <= r2.status ? this._chunkError() : (this._start += this._config.chunkSize ? this._config.chunkSize : r2.responseText.length, this._finished = !this._config.chunkSize || this._start >= function(e2) {
4890
4886
  var t2 = e2.getResponseHeader("Content-Range");
4891
4887
  if (null === t2)
4892
4888
  return -1;
4893
4889
  return parseInt(t2.substring(t2.lastIndexOf("/") + 1));
4894
- }(i), this.parseChunk(i.responseText)));
4890
+ }(r2), this.parseChunk(r2.responseText)));
4895
4891
  }, this._chunkError = function(e2) {
4896
- var t2 = i.statusText || e2;
4892
+ var t2 = r2.statusText || e2;
4897
4893
  this._sendError(new Error(t2));
4898
4894
  };
4899
4895
  }
4900
4896
  __name(l2, "l");
4901
4897
  function c2(e) {
4902
- var i, n3;
4903
- (e = e || {}).chunkSize || (e.chunkSize = b3.LocalChunkSize), h2.call(this, e);
4898
+ var r2, n3;
4899
+ (e = e || {}).chunkSize || (e.chunkSize = b3.LocalChunkSize), u2.call(this, e);
4904
4900
  var s3 = "undefined" != typeof FileReader;
4905
4901
  this.stream = function(e2) {
4906
- this._input = e2, n3 = e2.slice || e2.webkitSlice || e2.mozSlice, s3 ? ((i = new FileReader()).onload = v2(this._chunkLoaded, this), i.onerror = v2(this._chunkError, this)) : i = new FileReaderSync(), this._nextChunk();
4902
+ this._input = e2, n3 = e2.slice || e2.webkitSlice || e2.mozSlice, s3 ? ((r2 = new FileReader()).onload = v2(this._chunkLoaded, this), r2.onerror = v2(this._chunkError, this)) : r2 = new FileReaderSync(), this._nextChunk();
4907
4903
  }, this._nextChunk = function() {
4908
4904
  this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
4909
4905
  }, this._readChunk = function() {
@@ -4912,58 +4908,58 @@ License: MIT
4912
4908
  var t2 = Math.min(this._start + this._config.chunkSize, this._input.size);
4913
4909
  e2 = n3.call(e2, this._start, t2);
4914
4910
  }
4915
- var r3 = i.readAsText(e2, this._config.encoding);
4916
- s3 || this._chunkLoaded({ target: { result: r3 } });
4911
+ var i2 = r2.readAsText(e2, this._config.encoding);
4912
+ s3 || this._chunkLoaded({ target: { result: i2 } });
4917
4913
  }, this._chunkLoaded = function(e2) {
4918
4914
  this._start += this._config.chunkSize, this._finished = !this._config.chunkSize || this._start >= this._input.size, this.parseChunk(e2.target.result);
4919
4915
  }, this._chunkError = function() {
4920
- this._sendError(i.error);
4916
+ this._sendError(r2.error);
4921
4917
  };
4922
4918
  }
4923
4919
  __name(c2, "c");
4924
4920
  function p2(e) {
4925
- var r3;
4926
- h2.call(this, e = e || {}), this.stream = function(e2) {
4927
- return r3 = e2, this._nextChunk();
4921
+ var i2;
4922
+ u2.call(this, e = e || {}), this.stream = function(e2) {
4923
+ return i2 = e2, this._nextChunk();
4928
4924
  }, this._nextChunk = function() {
4929
4925
  if (!this._finished) {
4930
4926
  var e2, t2 = this._config.chunkSize;
4931
- return t2 ? (e2 = r3.substring(0, t2), r3 = r3.substring(t2)) : (e2 = r3, r3 = ""), this._finished = !r3, this.parseChunk(e2);
4927
+ return t2 ? (e2 = i2.substring(0, t2), i2 = i2.substring(t2)) : (e2 = i2, i2 = ""), this._finished = !i2, this.parseChunk(e2);
4932
4928
  }
4933
4929
  };
4934
4930
  }
4935
4931
  __name(p2, "p");
4936
4932
  function g2(e) {
4937
- h2.call(this, e = e || {});
4938
- var t2 = [], r3 = true, i = false;
4933
+ u2.call(this, e = e || {});
4934
+ var t2 = [], i2 = true, r2 = false;
4939
4935
  this.pause = function() {
4940
- h2.prototype.pause.apply(this, arguments), this._input.pause();
4936
+ u2.prototype.pause.apply(this, arguments), this._input.pause();
4941
4937
  }, this.resume = function() {
4942
- h2.prototype.resume.apply(this, arguments), this._input.resume();
4938
+ u2.prototype.resume.apply(this, arguments), this._input.resume();
4943
4939
  }, this.stream = function(e2) {
4944
4940
  this._input = e2, this._input.on("data", this._streamData), this._input.on("end", this._streamEnd), this._input.on("error", this._streamError);
4945
4941
  }, this._checkIsFinished = function() {
4946
- i && 1 === t2.length && (this._finished = true);
4942
+ r2 && 1 === t2.length && (this._finished = true);
4947
4943
  }, this._nextChunk = function() {
4948
- this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) : r3 = true;
4944
+ this._checkIsFinished(), t2.length ? this.parseChunk(t2.shift()) : i2 = true;
4949
4945
  }, this._streamData = v2(function(e2) {
4950
4946
  try {
4951
- t2.push("string" == typeof e2 ? e2 : e2.toString(this._config.encoding)), r3 && (r3 = false, this._checkIsFinished(), this.parseChunk(t2.shift()));
4947
+ t2.push("string" == typeof e2 ? e2 : e2.toString(this._config.encoding)), i2 && (i2 = false, this._checkIsFinished(), this.parseChunk(t2.shift()));
4952
4948
  } catch (e3) {
4953
4949
  this._streamError(e3);
4954
4950
  }
4955
4951
  }, this), this._streamError = v2(function(e2) {
4956
4952
  this._streamCleanUp(), this._sendError(e2);
4957
4953
  }, this), this._streamEnd = v2(function() {
4958
- this._streamCleanUp(), i = true, this._streamData("");
4954
+ this._streamCleanUp(), r2 = true, this._streamData("");
4959
4955
  }, this), this._streamCleanUp = v2(function() {
4960
4956
  this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
4961
4957
  }, this);
4962
4958
  }
4963
4959
  __name(g2, "g");
4964
- function r2(m3) {
4965
- var a3, o3, u3, i = Math.pow(2, 53), n3 = -i, s3 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, h3 = /^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/, t2 = this, r3 = 0, f3 = 0, d3 = false, e = false, l3 = [], c3 = { data: [], errors: [], meta: {} };
4966
- if (J(m3.step)) {
4960
+ function i(m3) {
4961
+ var a3, o3, h3, r2 = Math.pow(2, 53), n3 = -r2, s3 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, u3 = /^(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))$/, t2 = this, i2 = 0, f3 = 0, d3 = false, e = false, l3 = [], c3 = { data: [], errors: [], meta: {} };
4962
+ if (M2(m3.step)) {
4967
4963
  var p3 = m3.step;
4968
4964
  m3.step = function(e2) {
4969
4965
  if (c3 = e2, _3())
@@ -4971,7 +4967,7 @@ License: MIT
4971
4967
  else {
4972
4968
  if (g3(), 0 === c3.data.length)
4973
4969
  return;
4974
- r3 += e2.data.length, m3.preview && r3 > m3.preview ? o3.abort() : (c3.data = c3.data[0], p3(c3, t2));
4970
+ i2 += e2.data.length, m3.preview && i2 > m3.preview ? o3.abort() : (c3.data = c3.data[0], p3(c3, t2));
4975
4971
  }
4976
4972
  };
4977
4973
  }
@@ -4980,13 +4976,13 @@ License: MIT
4980
4976
  }
4981
4977
  __name(y3, "y");
4982
4978
  function g3() {
4983
- return c3 && u3 && (k2("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + b3.DefaultDelimiter + "'"), u3 = false), m3.skipEmptyLines && (c3.data = c3.data.filter(function(e2) {
4979
+ return c3 && h3 && (k2("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + b3.DefaultDelimiter + "'"), h3 = false), m3.skipEmptyLines && (c3.data = c3.data.filter(function(e2) {
4984
4980
  return !y3(e2);
4985
4981
  })), _3() && function() {
4986
4982
  if (!c3)
4987
4983
  return;
4988
4984
  function e2(e3, t4) {
4989
- J(m3.transformHeader) && (e3 = m3.transformHeader(e3, t4)), l3.push(e3);
4985
+ M2(m3.transformHeader) && (e3 = m3.transformHeader(e3, t4)), l3.push(e3);
4990
4986
  }
4991
4987
  __name(e2, "e");
4992
4988
  if (Array.isArray(c3.data[0])) {
@@ -4999,12 +4995,12 @@ License: MIT
4999
4995
  if (!c3 || !m3.header && !m3.dynamicTyping && !m3.transform)
5000
4996
  return c3;
5001
4997
  function e2(e3, t4) {
5002
- var r4, i2 = m3.header ? {} : [];
5003
- for (r4 = 0; r4 < e3.length; r4++) {
5004
- var n4 = r4, s4 = e3[r4];
5005
- m3.header && (n4 = r4 >= l3.length ? "__parsed_extra" : l3[r4]), m3.transform && (s4 = m3.transform(s4, n4)), s4 = v3(n4, s4), "__parsed_extra" === n4 ? (i2[n4] = i2[n4] || [], i2[n4].push(s4)) : i2[n4] = s4;
4998
+ var i3, r3 = m3.header ? {} : [];
4999
+ for (i3 = 0; i3 < e3.length; i3++) {
5000
+ var n4 = i3, s4 = e3[i3];
5001
+ m3.header && (n4 = i3 >= l3.length ? "__parsed_extra" : l3[i3]), m3.transform && (s4 = m3.transform(s4, n4)), s4 = v3(n4, s4), "__parsed_extra" === n4 ? (r3[n4] = r3[n4] || [], r3[n4].push(s4)) : r3[n4] = s4;
5006
5002
  }
5007
- return m3.header && (r4 > l3.length ? k2("FieldMismatch", "TooManyFields", "Too many fields: expected " + l3.length + " fields but parsed " + r4, f3 + t4) : r4 < l3.length && k2("FieldMismatch", "TooFewFields", "Too few fields: expected " + l3.length + " fields but parsed " + r4, f3 + t4)), i2;
5003
+ return m3.header && (i3 > l3.length ? k2("FieldMismatch", "TooManyFields", "Too many fields: expected " + l3.length + " fields but parsed " + i3, f3 + t4) : i3 < l3.length && k2("FieldMismatch", "TooFewFields", "Too few fields: expected " + l3.length + " fields but parsed " + i3, f3 + t4)), r3;
5008
5004
  }
5009
5005
  __name(e2, "e");
5010
5006
  var t3 = 1;
@@ -5019,219 +5015,204 @@ License: MIT
5019
5015
  }
5020
5016
  __name(_3, "_");
5021
5017
  function v3(e2, t3) {
5022
- return r4 = e2, m3.dynamicTypingFunction && void 0 === m3.dynamicTyping[r4] && (m3.dynamicTyping[r4] = m3.dynamicTypingFunction(r4)), true === (m3.dynamicTyping[r4] || m3.dynamicTyping) ? "true" === t3 || "TRUE" === t3 || "false" !== t3 && "FALSE" !== t3 && (function(e3) {
5018
+ return i3 = e2, m3.dynamicTypingFunction && void 0 === m3.dynamicTyping[i3] && (m3.dynamicTyping[i3] = m3.dynamicTypingFunction(i3)), true === (m3.dynamicTyping[i3] || m3.dynamicTyping) ? "true" === t3 || "TRUE" === t3 || "false" !== t3 && "FALSE" !== t3 && (function(e3) {
5023
5019
  if (s3.test(e3)) {
5024
5020
  var t4 = parseFloat(e3);
5025
- if (n3 < t4 && t4 < i)
5021
+ if (n3 < t4 && t4 < r2)
5026
5022
  return true;
5027
5023
  }
5028
5024
  return false;
5029
- }(t3) ? parseFloat(t3) : h3.test(t3) ? new Date(t3) : "" === t3 ? null : t3) : t3;
5030
- var r4;
5025
+ }(t3) ? parseFloat(t3) : u3.test(t3) ? new Date(t3) : "" === t3 ? null : t3) : t3;
5026
+ var i3;
5031
5027
  }
5032
5028
  __name(v3, "v");
5033
- function k2(e2, t3, r4, i2) {
5034
- var n4 = { type: e2, code: t3, message: r4 };
5035
- void 0 !== i2 && (n4.row = i2), c3.errors.push(n4);
5029
+ function k2(e2, t3, i3, r3) {
5030
+ var n4 = { type: e2, code: t3, message: i3 };
5031
+ void 0 !== r3 && (n4.row = r3), c3.errors.push(n4);
5036
5032
  }
5037
5033
  __name(k2, "k");
5038
- this.parse = function(e2, t3, r4) {
5039
- var i2 = m3.quoteChar || '"';
5034
+ this.parse = function(e2, t3, i3) {
5035
+ var r3 = m3.quoteChar || '"';
5040
5036
  if (m3.newline || (m3.newline = function(e3, t4) {
5041
5037
  e3 = e3.substring(0, 1048576);
5042
- var r5 = new RegExp(Q2(t4) + "([^]*?)" + Q2(t4), "gm"), i3 = (e3 = e3.replace(r5, "")).split("\r"), n5 = e3.split("\n"), s5 = 1 < n5.length && n5[0].length < i3[0].length;
5043
- if (1 === i3.length || s5)
5038
+ var i4 = new RegExp(j2(t4) + "([^]*?)" + j2(t4), "gm"), r4 = (e3 = e3.replace(i4, "")).split("\r"), n5 = e3.split("\n"), s5 = 1 < n5.length && n5[0].length < r4[0].length;
5039
+ if (1 === r4.length || s5)
5044
5040
  return "\n";
5045
- for (var a4 = 0, o4 = 0; o4 < i3.length; o4++)
5046
- "\n" === i3[o4][0] && a4++;
5047
- return a4 >= i3.length / 2 ? "\r\n" : "\r";
5048
- }(e2, i2)), u3 = false, m3.delimiter)
5049
- J(m3.delimiter) && (m3.delimiter = m3.delimiter(e2), c3.meta.delimiter = m3.delimiter);
5041
+ for (var a4 = 0, o4 = 0; o4 < r4.length; o4++)
5042
+ "\n" === r4[o4][0] && a4++;
5043
+ return a4 >= r4.length / 2 ? "\r\n" : "\r";
5044
+ }(e2, r3)), h3 = false, m3.delimiter)
5045
+ M2(m3.delimiter) && (m3.delimiter = m3.delimiter(e2), c3.meta.delimiter = m3.delimiter);
5050
5046
  else {
5051
- var n4 = function(e3, t4, r5, i3, n5) {
5052
- var s5, a4, o4, u4;
5047
+ var n4 = function(e3, t4, i4, r4, n5) {
5048
+ var s5, a4, o4, h4;
5053
5049
  n5 = n5 || [",", " ", "|", ";", b3.RECORD_SEP, b3.UNIT_SEP];
5054
- for (var h4 = 0; h4 < n5.length; h4++) {
5055
- var f4 = n5[h4], d4 = 0, l4 = 0, c4 = 0;
5050
+ for (var u4 = 0; u4 < n5.length; u4++) {
5051
+ var f4 = n5[u4], d4 = 0, l4 = 0, c4 = 0;
5056
5052
  o4 = void 0;
5057
- for (var p4 = new E2({ comments: i3, delimiter: f4, newline: t4, preview: 10 }).parse(e3), g4 = 0; g4 < p4.data.length; g4++)
5058
- if (r5 && y3(p4.data[g4]))
5053
+ for (var p4 = new E2({ comments: r4, delimiter: f4, newline: t4, preview: 10 }).parse(e3), g4 = 0; g4 < p4.data.length; g4++)
5054
+ if (i4 && y3(p4.data[g4]))
5059
5055
  c4++;
5060
5056
  else {
5061
5057
  var _4 = p4.data[g4].length;
5062
5058
  l4 += _4, void 0 !== o4 ? 0 < _4 && (d4 += Math.abs(_4 - o4), o4 = _4) : o4 = _4;
5063
5059
  }
5064
- 0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 === u4 || u4 < l4) && 1.99 < l4 && (a4 = d4, s5 = f4, u4 = l4);
5060
+ 0 < p4.data.length && (l4 /= p4.data.length - c4), (void 0 === a4 || d4 <= a4) && (void 0 === h4 || h4 < l4) && 1.99 < l4 && (a4 = d4, s5 = f4, h4 = l4);
5065
5061
  }
5066
5062
  return { successful: !!(m3.delimiter = s5), bestDelimiter: s5 };
5067
5063
  }(e2, m3.newline, m3.skipEmptyLines, m3.comments, m3.delimitersToGuess);
5068
- n4.successful ? m3.delimiter = n4.bestDelimiter : (u3 = true, m3.delimiter = b3.DefaultDelimiter), c3.meta.delimiter = m3.delimiter;
5064
+ n4.successful ? m3.delimiter = n4.bestDelimiter : (h3 = true, m3.delimiter = b3.DefaultDelimiter), c3.meta.delimiter = m3.delimiter;
5069
5065
  }
5070
5066
  var s4 = w2(m3);
5071
- return m3.preview && m3.header && s4.preview++, a3 = e2, o3 = new E2(s4), c3 = o3.parse(a3, t3, r4), g3(), d3 ? { meta: { paused: true } } : c3 || { meta: { paused: false } };
5067
+ return m3.preview && m3.header && s4.preview++, a3 = e2, o3 = new E2(s4), c3 = o3.parse(a3, t3, i3), g3(), d3 ? { meta: { paused: true } } : c3 || { meta: { paused: false } };
5072
5068
  }, this.paused = function() {
5073
5069
  return d3;
5074
5070
  }, this.pause = function() {
5075
- d3 = true, o3.abort(), a3 = J(m3.chunk) ? "" : a3.substring(o3.getCharIndex());
5071
+ d3 = true, o3.abort(), a3 = M2(m3.chunk) ? "" : a3.substring(o3.getCharIndex());
5076
5072
  }, this.resume = function() {
5077
5073
  t2.streamer._halted ? (d3 = false, t2.streamer.parseChunk(a3, true)) : setTimeout(t2.resume, 3);
5078
5074
  }, this.aborted = function() {
5079
5075
  return e;
5080
5076
  }, this.abort = function() {
5081
- e = true, o3.abort(), c3.meta.aborted = true, J(m3.complete) && m3.complete(c3), a3 = "";
5077
+ e = true, o3.abort(), c3.meta.aborted = true, M2(m3.complete) && m3.complete(c3), a3 = "";
5082
5078
  };
5083
5079
  }
5084
- __name(r2, "r");
5085
- function Q2(e) {
5080
+ __name(i, "i");
5081
+ function j2(e) {
5086
5082
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
5087
5083
  }
5088
- __name(Q2, "Q");
5089
- function E2(j2) {
5090
- var z2, M2 = (j2 = j2 || {}).delimiter, P2 = j2.newline, U2 = j2.comments, q2 = j2.step, N2 = j2.preview, B2 = j2.fastMode, K = z2 = void 0 === j2.quoteChar || null === j2.quoteChar ? '"' : j2.quoteChar;
5091
- if (void 0 !== j2.escapeChar && (K = j2.escapeChar), ("string" != typeof M2 || -1 < b3.BAD_DELIMITERS.indexOf(M2)) && (M2 = ","), U2 === M2)
5084
+ __name(j2, "j");
5085
+ function E2(e) {
5086
+ var S2, O2 = (e = e || {}).delimiter, x = e.newline, I2 = e.comments, T2 = e.step, D2 = e.preview, A2 = e.fastMode, L2 = S2 = void 0 === e.quoteChar || null === e.quoteChar ? '"' : e.quoteChar;
5087
+ if (void 0 !== e.escapeChar && (L2 = e.escapeChar), ("string" != typeof O2 || -1 < b3.BAD_DELIMITERS.indexOf(O2)) && (O2 = ","), I2 === O2)
5092
5088
  throw new Error("Comment character same as delimiter");
5093
- true === U2 ? U2 = "#" : ("string" != typeof U2 || -1 < b3.BAD_DELIMITERS.indexOf(U2)) && (U2 = false), "\n" !== P2 && "\r" !== P2 && "\r\n" !== P2 && (P2 = "\n");
5094
- var W2 = 0, H2 = false;
5095
- this.parse = function(i, t2, r3) {
5096
- if ("string" != typeof i)
5089
+ true === I2 ? I2 = "#" : ("string" != typeof I2 || -1 < b3.BAD_DELIMITERS.indexOf(I2)) && (I2 = false), "\n" !== x && "\r" !== x && "\r\n" !== x && (x = "\n");
5090
+ var F = 0, z2 = false;
5091
+ this.parse = function(r2, t2, i2) {
5092
+ if ("string" != typeof r2)
5097
5093
  throw new Error("Input must be a string");
5098
- var n3 = i.length, e = M2.length, s3 = P2.length, a3 = U2.length, o3 = J(q2), u3 = [], h3 = [], f3 = [], d3 = W2 = 0;
5099
- if (!i)
5100
- return L2();
5101
- if (j2.header && !t2) {
5102
- var l3 = i.split(P2)[0].split(M2), c3 = [], p3 = {}, g3 = false;
5103
- for (var _3 in l3) {
5104
- var m3 = l3[_3];
5105
- J(j2.transformHeader) && (m3 = j2.transformHeader(m3, _3));
5106
- var y3 = m3, v3 = p3[m3] || 0;
5107
- for (0 < v3 && (g3 = true, y3 = m3 + "_" + v3), p3[m3] = v3 + 1; c3.includes(y3); )
5108
- y3 = y3 + "_" + v3;
5109
- c3.push(y3);
5110
- }
5111
- if (g3) {
5112
- var k2 = i.split(P2);
5113
- k2[0] = c3.join(M2), i = k2.join(P2);
5114
- }
5115
- }
5116
- if (B2 || false !== B2 && -1 === i.indexOf(z2)) {
5117
- for (var b5 = i.split(P2), E3 = 0; E3 < b5.length; E3++) {
5118
- if (f3 = b5[E3], W2 += f3.length, E3 !== b5.length - 1)
5119
- W2 += P2.length;
5120
- else if (r3)
5121
- return L2();
5122
- if (!U2 || f3.substring(0, a3) !== U2) {
5094
+ var n3 = r2.length, e2 = O2.length, s3 = x.length, a3 = I2.length, o3 = M2(T2), h3 = [], u3 = [], f3 = [], d3 = F = 0;
5095
+ if (!r2)
5096
+ return C();
5097
+ if (A2 || false !== A2 && -1 === r2.indexOf(S2)) {
5098
+ for (var l3 = r2.split(x), c3 = 0; c3 < l3.length; c3++) {
5099
+ if (f3 = l3[c3], F += f3.length, c3 !== l3.length - 1)
5100
+ F += x.length;
5101
+ else if (i2)
5102
+ return C();
5103
+ if (!I2 || f3.substring(0, a3) !== I2) {
5123
5104
  if (o3) {
5124
- if (u3 = [], I2(f3.split(M2)), F(), H2)
5125
- return L2();
5105
+ if (h3 = [], k2(f3.split(O2)), R2(), z2)
5106
+ return C();
5126
5107
  } else
5127
- I2(f3.split(M2));
5128
- if (N2 && N2 <= E3)
5129
- return u3 = u3.slice(0, N2), L2(true);
5108
+ k2(f3.split(O2));
5109
+ if (D2 && D2 <= c3)
5110
+ return h3 = h3.slice(0, D2), C(true);
5130
5111
  }
5131
5112
  }
5132
- return L2();
5113
+ return C();
5133
5114
  }
5134
- for (var w3 = i.indexOf(M2, W2), R2 = i.indexOf(P2, W2), C = new RegExp(Q2(K) + Q2(z2), "g"), S2 = i.indexOf(z2, W2); ; )
5135
- if (i[W2] !== z2)
5136
- if (U2 && 0 === f3.length && i.substring(W2, W2 + a3) === U2) {
5137
- if (-1 === R2)
5138
- return L2();
5139
- W2 = R2 + s3, R2 = i.indexOf(P2, W2), w3 = i.indexOf(M2, W2);
5140
- } else if (-1 !== w3 && (w3 < R2 || -1 === R2))
5141
- f3.push(i.substring(W2, w3)), W2 = w3 + e, w3 = i.indexOf(M2, W2);
5115
+ for (var p3 = r2.indexOf(O2, F), g3 = r2.indexOf(x, F), _3 = new RegExp(j2(L2) + j2(S2), "g"), m3 = r2.indexOf(S2, F); ; )
5116
+ if (r2[F] !== S2)
5117
+ if (I2 && 0 === f3.length && r2.substring(F, F + a3) === I2) {
5118
+ if (-1 === g3)
5119
+ return C();
5120
+ F = g3 + s3, g3 = r2.indexOf(x, F), p3 = r2.indexOf(O2, F);
5121
+ } else if (-1 !== p3 && (p3 < g3 || -1 === g3))
5122
+ f3.push(r2.substring(F, p3)), F = p3 + e2, p3 = r2.indexOf(O2, F);
5142
5123
  else {
5143
- if (-1 === R2)
5124
+ if (-1 === g3)
5144
5125
  break;
5145
- if (f3.push(i.substring(W2, R2)), D2(R2 + s3), o3 && (F(), H2))
5146
- return L2();
5147
- if (N2 && u3.length >= N2)
5148
- return L2(true);
5126
+ if (f3.push(r2.substring(F, g3)), w3(g3 + s3), o3 && (R2(), z2))
5127
+ return C();
5128
+ if (D2 && h3.length >= D2)
5129
+ return C(true);
5149
5130
  }
5150
5131
  else
5151
- for (S2 = W2, W2++; ; ) {
5152
- if (-1 === (S2 = i.indexOf(z2, S2 + 1)))
5153
- return r3 || h3.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: u3.length, index: W2 }), T2();
5154
- if (S2 === n3 - 1)
5155
- return T2(i.substring(W2, S2).replace(C, z2));
5156
- if (z2 !== K || i[S2 + 1] !== K) {
5157
- if (z2 === K || 0 === S2 || i[S2 - 1] !== K) {
5158
- -1 !== w3 && w3 < S2 + 1 && (w3 = i.indexOf(M2, S2 + 1)), -1 !== R2 && R2 < S2 + 1 && (R2 = i.indexOf(P2, S2 + 1));
5159
- var O2 = A2(-1 === R2 ? w3 : Math.min(w3, R2));
5160
- if (i.substr(S2 + 1 + O2, e) === M2) {
5161
- f3.push(i.substring(W2, S2).replace(C, z2)), i[W2 = S2 + 1 + O2 + e] !== z2 && (S2 = i.indexOf(z2, W2)), w3 = i.indexOf(M2, W2), R2 = i.indexOf(P2, W2);
5132
+ for (m3 = F, F++; ; ) {
5133
+ if (-1 === (m3 = r2.indexOf(S2, m3 + 1)))
5134
+ return i2 || u3.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h3.length, index: F }), E3();
5135
+ if (m3 === n3 - 1)
5136
+ return E3(r2.substring(F, m3).replace(_3, S2));
5137
+ if (S2 !== L2 || r2[m3 + 1] !== L2) {
5138
+ if (S2 === L2 || 0 === m3 || r2[m3 - 1] !== L2) {
5139
+ -1 !== p3 && p3 < m3 + 1 && (p3 = r2.indexOf(O2, m3 + 1)), -1 !== g3 && g3 < m3 + 1 && (g3 = r2.indexOf(x, m3 + 1));
5140
+ var y3 = b5(-1 === g3 ? p3 : Math.min(p3, g3));
5141
+ if (r2.substr(m3 + 1 + y3, e2) === O2) {
5142
+ f3.push(r2.substring(F, m3).replace(_3, S2)), r2[F = m3 + 1 + y3 + e2] !== S2 && (m3 = r2.indexOf(S2, F)), p3 = r2.indexOf(O2, F), g3 = r2.indexOf(x, F);
5162
5143
  break;
5163
5144
  }
5164
- var x = A2(R2);
5165
- if (i.substring(S2 + 1 + x, S2 + 1 + x + s3) === P2) {
5166
- if (f3.push(i.substring(W2, S2).replace(C, z2)), D2(S2 + 1 + x + s3), w3 = i.indexOf(M2, W2), S2 = i.indexOf(z2, W2), o3 && (F(), H2))
5167
- return L2();
5168
- if (N2 && u3.length >= N2)
5169
- return L2(true);
5145
+ var v3 = b5(g3);
5146
+ if (r2.substring(m3 + 1 + v3, m3 + 1 + v3 + s3) === x) {
5147
+ if (f3.push(r2.substring(F, m3).replace(_3, S2)), w3(m3 + 1 + v3 + s3), p3 = r2.indexOf(O2, F), m3 = r2.indexOf(S2, F), o3 && (R2(), z2))
5148
+ return C();
5149
+ if (D2 && h3.length >= D2)
5150
+ return C(true);
5170
5151
  break;
5171
5152
  }
5172
- h3.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: u3.length, index: W2 }), S2++;
5153
+ u3.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: h3.length, index: F }), m3++;
5173
5154
  }
5174
5155
  } else
5175
- S2++;
5156
+ m3++;
5176
5157
  }
5177
- return T2();
5178
- function I2(e2) {
5179
- u3.push(e2), d3 = W2;
5158
+ return E3();
5159
+ function k2(e3) {
5160
+ h3.push(e3), d3 = F;
5180
5161
  }
5181
- __name(I2, "I");
5182
- function A2(e2) {
5162
+ __name(k2, "k");
5163
+ function b5(e3) {
5183
5164
  var t3 = 0;
5184
- if (-1 !== e2) {
5185
- var r4 = i.substring(S2 + 1, e2);
5186
- r4 && "" === r4.trim() && (t3 = r4.length);
5165
+ if (-1 !== e3) {
5166
+ var i3 = r2.substring(m3 + 1, e3);
5167
+ i3 && "" === i3.trim() && (t3 = i3.length);
5187
5168
  }
5188
5169
  return t3;
5189
5170
  }
5190
- __name(A2, "A");
5191
- function T2(e2) {
5192
- return r3 || (void 0 === e2 && (e2 = i.substring(W2)), f3.push(e2), W2 = n3, I2(f3), o3 && F()), L2();
5171
+ __name(b5, "b");
5172
+ function E3(e3) {
5173
+ return i2 || (void 0 === e3 && (e3 = r2.substring(F)), f3.push(e3), F = n3, k2(f3), o3 && R2()), C();
5193
5174
  }
5194
- __name(T2, "T");
5195
- function D2(e2) {
5196
- W2 = e2, I2(f3), f3 = [], R2 = i.indexOf(P2, W2);
5175
+ __name(E3, "E");
5176
+ function w3(e3) {
5177
+ F = e3, k2(f3), f3 = [], g3 = r2.indexOf(x, F);
5197
5178
  }
5198
- __name(D2, "D");
5199
- function L2(e2) {
5200
- return { data: u3, errors: h3, meta: { delimiter: M2, linebreak: P2, aborted: H2, truncated: !!e2, cursor: d3 + (t2 || 0) } };
5179
+ __name(w3, "w");
5180
+ function C(e3) {
5181
+ return { data: h3, errors: u3, meta: { delimiter: O2, linebreak: x, aborted: z2, truncated: !!e3, cursor: d3 + (t2 || 0) } };
5201
5182
  }
5202
- __name(L2, "L");
5203
- function F() {
5204
- q2(L2()), u3 = [], h3 = [];
5183
+ __name(C, "C");
5184
+ function R2() {
5185
+ T2(C()), h3 = [], u3 = [];
5205
5186
  }
5206
- __name(F, "F");
5187
+ __name(R2, "R");
5207
5188
  }, this.abort = function() {
5208
- H2 = true;
5189
+ z2 = true;
5209
5190
  }, this.getCharIndex = function() {
5210
- return W2;
5191
+ return F;
5211
5192
  };
5212
5193
  }
5213
5194
  __name(E2, "E");
5214
5195
  function _2(e) {
5215
- var t2 = e.data, r3 = a2[t2.workerId], i = false;
5196
+ var t2 = e.data, i2 = a2[t2.workerId], r2 = false;
5216
5197
  if (t2.error)
5217
- r3.userError(t2.error, t2.file);
5198
+ i2.userError(t2.error, t2.file);
5218
5199
  else if (t2.results && t2.results.data) {
5219
5200
  var n3 = { abort: function() {
5220
- i = true, m2(t2.workerId, { data: [], errors: [], meta: { aborted: true } });
5201
+ r2 = true, m2(t2.workerId, { data: [], errors: [], meta: { aborted: true } });
5221
5202
  }, pause: y2, resume: y2 };
5222
- if (J(r3.userStep)) {
5223
- for (var s3 = 0; s3 < t2.results.data.length && (r3.userStep({ data: t2.results.data[s3], errors: t2.results.errors, meta: t2.results.meta }, n3), !i); s3++)
5203
+ if (M2(i2.userStep)) {
5204
+ for (var s3 = 0; s3 < t2.results.data.length && (i2.userStep({ data: t2.results.data[s3], errors: t2.results.errors, meta: t2.results.meta }, n3), !r2); s3++)
5224
5205
  ;
5225
5206
  delete t2.results;
5226
5207
  } else
5227
- J(r3.userChunk) && (r3.userChunk(t2.results, n3, t2.file), delete t2.results);
5208
+ M2(i2.userChunk) && (i2.userChunk(t2.results, n3, t2.file), delete t2.results);
5228
5209
  }
5229
- t2.finished && !i && m2(t2.workerId, t2.results);
5210
+ t2.finished && !r2 && m2(t2.workerId, t2.results);
5230
5211
  }
5231
5212
  __name(_2, "_");
5232
5213
  function m2(e, t2) {
5233
- var r3 = a2[e];
5234
- J(r3.userComplete) && r3.userComplete(t2), r3.terminate(), delete a2[e];
5214
+ var i2 = a2[e];
5215
+ M2(i2.userComplete) && i2.userComplete(t2), i2.terminate(), delete a2[e];
5235
5216
  }
5236
5217
  __name(m2, "m");
5237
5218
  function y2() {
@@ -5242,8 +5223,8 @@ License: MIT
5242
5223
  if ("object" != typeof e || null === e)
5243
5224
  return e;
5244
5225
  var t2 = Array.isArray(e) ? [] : {};
5245
- for (var r3 in e)
5246
- t2[r3] = w2(e[r3]);
5226
+ for (var i2 in e)
5227
+ t2[i2] = w2(e[i2]);
5247
5228
  return t2;
5248
5229
  }
5249
5230
  __name(w2, "w");
@@ -5253,20 +5234,20 @@ License: MIT
5253
5234
  };
5254
5235
  }
5255
5236
  __name(v2, "v");
5256
- function J(e) {
5237
+ function M2(e) {
5257
5238
  return "function" == typeof e;
5258
5239
  }
5259
- __name(J, "J");
5240
+ __name(M2, "M");
5260
5241
  return o2 && (f2.onmessage = function(e) {
5261
5242
  var t2 = e.data;
5262
5243
  void 0 === b3.WORKER_ID && t2 && (b3.WORKER_ID = t2.workerId);
5263
5244
  if ("string" == typeof t2.input)
5264
5245
  f2.postMessage({ workerId: b3.WORKER_ID, results: b3.parse(t2.input, t2.config), finished: true });
5265
5246
  else if (f2.File && t2.input instanceof File || t2.input instanceof Object) {
5266
- var r3 = b3.parse(t2.input, t2.config);
5267
- r3 && f2.postMessage({ workerId: b3.WORKER_ID, results: r3, finished: true });
5247
+ var i2 = b3.parse(t2.input, t2.config);
5248
+ i2 && f2.postMessage({ workerId: b3.WORKER_ID, results: i2, finished: true });
5268
5249
  }
5269
- }), (l2.prototype = Object.create(h2.prototype)).constructor = l2, (c2.prototype = Object.create(h2.prototype)).constructor = c2, (p2.prototype = Object.create(p2.prototype)).constructor = p2, (g2.prototype = Object.create(h2.prototype)).constructor = g2, b3;
5250
+ }), (l2.prototype = Object.create(u2.prototype)).constructor = l2, (c2.prototype = Object.create(u2.prototype)).constructor = c2, (p2.prototype = Object.create(p2.prototype)).constructor = p2, (g2.prototype = Object.create(u2.prototype)).constructor = g2, b3;
5270
5251
  }, "s"));
5271
5252
  })(papaparse_min);
5272
5253
  var papaparse_minExports = papaparse_min.exports;
@@ -31781,37 +31762,7 @@ __name(AsyncValidateFieldSpinner, "AsyncValidateFieldSpinner");
31781
31762
  * See the License for the specific language governing permissions and
31782
31763
  * limitations under the License.
31783
31764
  */
31784
- const sortKeys = /* @__PURE__ */ __name((o2) => {
31785
- if (Array.isArray(o2)) {
31786
- return o2.map(sortKeys);
31787
- } else if (o2 instanceof Object) {
31788
- let numeric = [];
31789
- let nonNumeric = [];
31790
- Object.keys(o2).forEach((key) => {
31791
- if (/^(0|[1-9][0-9]*)$/.test(key)) {
31792
- numeric.push(+key);
31793
- } else {
31794
- nonNumeric.push(key);
31795
- }
31796
- });
31797
- return numeric.sort(function(a2, b3) {
31798
- return a2 - b3;
31799
- }).concat(nonNumeric.sort()).reduce((result, key) => {
31800
- result[key] = sortKeys(o2[key]);
31801
- return result;
31802
- }, {});
31803
- }
31804
- return o2;
31805
- }, "sortKeys");
31806
- const jsonStringify = JSON.stringify.bind(JSON);
31807
- const sortify = /* @__PURE__ */ __name((value, replacer, space2) => {
31808
- let nativeJson = jsonStringify(value, replacer, 0);
31809
- if (!nativeJson || nativeJson[0] !== "{" && nativeJson[0] !== "[") {
31810
- return nativeJson;
31811
- }
31812
- let cleanObj = JSON.parse(nativeJson);
31813
- return jsonStringify(sortKeys(cleanObj), null, space2);
31814
- }, "sortify");
31765
+ JSON.stringify.bind(JSON);
31815
31766
  const REQUIRED_ERROR = "This field is required.";
31816
31767
  const fieldRequired = /* @__PURE__ */ __name((value) => !value || Array.isArray(value) && !value.length ? REQUIRED_ERROR : void 0, "fieldRequired");
31817
31768
  const useStableReference = /* @__PURE__ */ __name((value) => {
@@ -32418,98 +32369,15 @@ const renderReactSelect = /* @__PURE__ */ __name((props) => {
32418
32369
  });
32419
32370
  return /* @__PURE__ */ React$2.createElement(TgSelect$1, __spreadValues({}, propsToUse));
32420
32371
  }, "renderReactSelect");
32421
- const BPSelect = /* @__PURE__ */ __name((_q) => {
32422
- var _r = _q, { value, onChange } = _r, rest = __objRest(_r, ["value", "onChange"]);
32423
- return renderSelect(__spreadProps(__spreadValues({}, rest), { input: { onChange, value } }));
32424
- }, "BPSelect");
32425
- const renderSelect = /* @__PURE__ */ __name((_s) => {
32426
- var _t = _s, {
32427
- input: { value, onChange },
32428
- hideValue,
32429
- className,
32430
- placeholder,
32431
- onFieldSubmit,
32432
- options,
32433
- hidePlaceHolder,
32434
- minimal,
32435
- disabled
32436
- } = _t, rest = __objRest(_t, [
32437
- "input",
32438
- "hideValue",
32439
- "className",
32440
- "placeholder",
32441
- "onFieldSubmit",
32442
- "options",
32443
- "hidePlaceHolder",
32444
- "minimal",
32445
- "disabled"
32446
- ]);
32447
- return /* @__PURE__ */ React$2.createElement(
32448
- "div",
32449
- {
32450
- className: `${minimal && core.Classes.MINIMAL} ` + classNames(core.Classes.SELECT, core.Classes.FILL, className)
32451
- },
32452
- /* @__PURE__ */ React$2.createElement(
32453
- "select",
32454
- __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, removeUnwantedProps(rest)), {
32455
- className: `${disabled && core.Classes.DISABLED} `,
32456
- value: placeholder && value === "" ? "__placeholder__" : typeof value !== "string" ? sortify(value) : value,
32457
- disabled
32458
- }), hideValue ? { value: "" } : {}), {
32459
- onChange: function(e) {
32460
- let val2 = e.target.value;
32461
- try {
32462
- const maybeNewValue = JSON.parse(e.target.value);
32463
- const hasMatchInOriginalOptions = options.find(
32464
- (opt) => opt === maybeNewValue || opt.value === maybeNewValue
32465
- );
32466
- if (hasMatchInOriginalOptions || isPlainObject$5(maybeNewValue)) {
32467
- val2 = maybeNewValue;
32468
- }
32469
- } catch (e2) {
32470
- }
32471
- onChange(val2);
32472
- onFieldSubmit && onFieldSubmit(val2);
32473
- }
32474
- }),
32475
- placeholder && /* @__PURE__ */ React$2.createElement("option", { value: "__placeholder__", disabled: true, hidden: hidePlaceHolder }, placeholder),
32476
- options.map(function(opt, index2) {
32477
- let label, value2;
32478
- if (typeof opt === "string") {
32479
- label = opt;
32480
- value2 = opt;
32481
- } else if (isNumber$6(opt)) {
32482
- label = opt.toString();
32483
- value2 = opt;
32484
- } else if (Array.isArray(opt)) {
32485
- throw new Error(
32486
- "the option coming in should be an object, not an array!"
32487
- );
32488
- } else {
32489
- label = opt.label;
32490
- value2 = opt.value;
32491
- }
32492
- return /* @__PURE__ */ React$2.createElement(
32493
- "option",
32494
- {
32495
- key: index2,
32496
- value: typeof value2 !== "string" ? sortify(value2) : value2
32497
- },
32498
- label
32499
- );
32500
- })
32501
- )
32502
- );
32503
- }, "renderSelect");
32504
- const renderBlueprintNumericInput = /* @__PURE__ */ __name((_u) => {
32505
- var _v = _u, {
32372
+ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_q) => {
32373
+ var _r = _q, {
32506
32374
  input,
32507
32375
  hideValue,
32508
32376
  intent,
32509
32377
  inputClassName,
32510
32378
  onFieldSubmit,
32511
32379
  onAnyNumberChange
32512
- } = _v, rest = __objRest(_v, [
32380
+ } = _r, rest = __objRest(_r, [
32513
32381
  "input",
32514
32382
  "hideValue",
32515
32383
  "intent",
@@ -32554,12 +32422,12 @@ const renderBlueprintNumericInput = /* @__PURE__ */ __name((_u) => {
32554
32422
  })
32555
32423
  );
32556
32424
  }, "renderBlueprintNumericInput");
32557
- const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_w) => {
32558
- var _x = _w, {
32425
+ const renderBlueprintRadioGroup = /* @__PURE__ */ __name((_s) => {
32426
+ var _t = _s, {
32559
32427
  input,
32560
32428
  options,
32561
32429
  onFieldSubmit
32562
- } = _x, rest = __objRest(_x, [
32430
+ } = _t, rest = __objRest(_t, [
32563
32431
  "input",
32564
32432
  "options",
32565
32433
  "onFieldSubmit"
@@ -53427,8 +53295,8 @@ const itemSizeEstimators = {
53427
53295
  normal: () => 33.34,
53428
53296
  comfortable: () => 41.34
53429
53297
  };
53430
- const DataTable = /* @__PURE__ */ __name((_y) => {
53431
- var _z = _y, {
53298
+ const DataTable = /* @__PURE__ */ __name((_u) => {
53299
+ var _v = _u, {
53432
53300
  controlled_pageSize,
53433
53301
  formName = "tgDataTable",
53434
53302
  history,
@@ -53442,7 +53310,7 @@ const DataTable = /* @__PURE__ */ __name((_y) => {
53442
53310
  tableParams: _tableParams,
53443
53311
  anyTouched,
53444
53312
  blur
53445
- } = _z, ownProps = __objRest(_z, [
53313
+ } = _v, ownProps = __objRest(_v, [
53446
53314
  "controlled_pageSize",
53447
53315
  "formName",
53448
53316
  "history",
@@ -69417,14 +69285,22 @@ function AdvancedOptions({
69417
69285
  ), isOpen && /* @__PURE__ */ React$2.createElement("div", { style: { marginTop: 10 } }, content2 || children));
69418
69286
  }
69419
69287
  __name(AdvancedOptions, "AdvancedOptions");
69420
- function DropdownButton(_A) {
69421
- var _B = _A, {
69288
+ const TgHTMLSelect = /* @__PURE__ */ __name((_w) => {
69289
+ var _x = _w, { disabled } = _x, rest = __objRest(_x, ["disabled"]);
69290
+ if (disabled) {
69291
+ const opt = rest.options.find((o2) => o2.value === rest.value);
69292
+ return /* @__PURE__ */ React$2.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames("bp3-html-select", rest.className) }), opt.label);
69293
+ }
69294
+ return /* @__PURE__ */ React$2.createElement(core.HTMLSelect, __spreadValues({}, rest));
69295
+ }, "TgHTMLSelect");
69296
+ function DropdownButton(_y) {
69297
+ var _z = _y, {
69422
69298
  disabled,
69423
69299
  menu,
69424
69300
  noRightIcon,
69425
69301
  popoverProps,
69426
69302
  className
69427
- } = _B, rest = __objRest(_B, [
69303
+ } = _z, rest = __objRest(_z, [
69428
69304
  "disabled",
69429
69305
  "menu",
69430
69306
  "noRightIcon",
@@ -72802,14 +72678,14 @@ const EnhancedMenuItem = compose(
72802
72678
  }
72803
72679
  }),
72804
72680
  branch(({ navTo }) => navTo, withRouter)
72805
- )(function(_C) {
72806
- var _D = _C, {
72681
+ )(function(_A) {
72682
+ var _B = _A, {
72807
72683
  navTo,
72808
72684
  context,
72809
72685
  staticContext,
72810
72686
  didMount,
72811
72687
  willUnmount
72812
- } = _D, props = __objRest(_D, [
72688
+ } = _B, props = __objRest(_B, [
72813
72689
  "navTo",
72814
72690
  "context",
72815
72691
  "staticContext",
@@ -73084,7 +72960,7 @@ const symbols = {
73084
72960
  down: "↓"
73085
72961
  };
73086
72962
  symbols.mod = symbols[isMac ? "meta" : "ctrl"];
73087
- let MenuBar$1 = (_E = class extends React$2.Component {
72963
+ let MenuBar$1 = (_C = class extends React$2.Component {
73088
72964
  constructor(props) {
73089
72965
  super(props);
73090
72966
  __publicField(this, "state", {
@@ -73329,10 +73205,10 @@ let MenuBar$1 = (_E = class extends React$2.Component {
73329
73205
  );
73330
73206
  }), extraContent);
73331
73207
  }
73332
- }, __name(_E, "MenuBar"), __publicField(_E, "defaultProps", {
73208
+ }, __name(_C, "MenuBar"), __publicField(_C, "defaultProps", {
73333
73209
  className: "",
73334
73210
  style: {}
73335
- }), _E);
73211
+ }), _C);
73336
73212
  const isDivider = /* @__PURE__ */ __name((item) => item.divider !== void 0, "isDivider");
73337
73213
  function getAllMenuTextsAndHandlers(menu, enhancers, context, path2 = []) {
73338
73214
  if (!menu)
@@ -73480,7 +73356,7 @@ function HotkeysDialog(props) {
73480
73356
  );
73481
73357
  }
73482
73358
  __name(HotkeysDialog, "HotkeysDialog");
73483
- let FillWindow$1 = (_F = class extends React$2.Component {
73359
+ let FillWindow$1 = (_D = class extends React$2.Component {
73484
73360
  constructor(props) {
73485
73361
  super(props);
73486
73362
  rerenderOnWindowResize(this);
@@ -73528,7 +73404,7 @@ let FillWindow$1 = (_F = class extends React$2.Component {
73528
73404
  return ReactDOM$1.createPortal(inner2, window.document.body);
73529
73405
  return inner2;
73530
73406
  }
73531
- }, __name(_F, "FillWindow"), _F);
73407
+ }, __name(_D, "FillWindow"), _D);
73532
73408
  var relativeTime$1 = { exports: {} };
73533
73409
  (function(module2, exports2) {
73534
73410
  !function(r2, e) {
@@ -92587,7 +92463,7 @@ const util$1 = util$4;
92587
92463
  const xmlNode = xmlNode$1;
92588
92464
  const readDocType = DocTypeReader;
92589
92465
  const toNumber = strnum;
92590
- let OrderedObjParser$1 = (_G = class {
92466
+ let OrderedObjParser$1 = (_E = class {
92591
92467
  constructor(options) {
92592
92468
  this.options = options;
92593
92469
  this.currentNode = null;
@@ -92626,7 +92502,7 @@ let OrderedObjParser$1 = (_G = class {
92626
92502
  this.saveTextToParentTag = saveTextToParentTag;
92627
92503
  this.addChild = addChild;
92628
92504
  }
92629
- }, __name(_G, "OrderedObjParser"), _G);
92505
+ }, __name(_E, "OrderedObjParser"), _E);
92630
92506
  function addExternalEntities(externalEntities) {
92631
92507
  const entKeys = Object.keys(externalEntities);
92632
92508
  for (let i = 0; i < entKeys.length; i++) {
@@ -93182,7 +93058,7 @@ const { buildOptions } = OptionsBuilder;
93182
93058
  const OrderedObjParser = OrderedObjParser_1;
93183
93059
  const { prettify } = node2json;
93184
93060
  const validator$1 = validator$2;
93185
- let XMLParser$1 = (_H = class {
93061
+ let XMLParser$1 = (_F = class {
93186
93062
  constructor(options) {
93187
93063
  this.externalEntities = {};
93188
93064
  this.options = buildOptions(options);
@@ -93232,7 +93108,7 @@ let XMLParser$1 = (_H = class {
93232
93108
  this.externalEntities[key] = value;
93233
93109
  }
93234
93110
  }
93235
- }, __name(_H, "XMLParser"), _H);
93111
+ }, __name(_F, "XMLParser"), _F);
93236
93112
  var XMLParser_1 = XMLParser$1;
93237
93113
  const EOL = "\n";
93238
93114
  function toXml(jArray, options) {
@@ -120398,7 +120274,7 @@ const Labels$2 = onlyUpdateForKeys([
120398
120274
  "editorName"
120399
120275
  ])(Labels$1);
120400
120276
  const DrawLabel = withHover(
120401
- (_I = class extends React$2.Component {
120277
+ (_G = class extends React$2.Component {
120402
120278
  render() {
120403
120279
  const {
120404
120280
  hovered,
@@ -120502,7 +120378,7 @@ const DrawLabel = withHover(
120502
120378
  }
120503
120379
  ));
120504
120380
  }
120505
- }, __name(_I, "DrawLabelInner"), _I)
120381
+ }, __name(_G, "DrawLabelInner"), _G)
120506
120382
  );
120507
120383
  const labelClassNames = {
120508
120384
  cutsites: "veCutsiteLabel",
@@ -122412,7 +122288,7 @@ function showFileDialog({ multiple = false, onSelect }) {
122412
122288
  }
122413
122289
  __name(showFileDialog, "showFileDialog");
122414
122290
  const name = "@teselagen/ove";
122415
- const version = "0.7.14";
122291
+ const version = "0.7.15";
122416
122292
  const main = "./src/index.js";
122417
122293
  const type = "module";
122418
122294
  const exports$1 = {
@@ -122492,8 +122368,8 @@ const useAnnotationLimits = /* @__PURE__ */ __name(() => useLocalStorageState("a
122492
122368
  cutsites: 100
122493
122369
  }
122494
122370
  }), "useAnnotationLimits");
122495
- function LimitAnnotations(_J) {
122496
- var _K = _J, { type: type2 } = _K, rest = __objRest(_K, ["type"]);
122371
+ function LimitAnnotations(_H) {
122372
+ var _I = _H, { type: type2 } = _I, rest = __objRest(_I, ["type"]);
122497
122373
  const [limits = {}, setLimits] = useAnnotationLimits();
122498
122374
  return /* @__PURE__ */ React$2.createElement(core.MenuItem, __spreadValues({ icon: "blank", shouldDismissPopover: false }, rest), [50, 100, 200, 400].map((n2) => /* @__PURE__ */ React$2.createElement(
122499
122375
  core.MenuItem,
@@ -130401,7 +130277,7 @@ const _Minimap = class _Minimap extends React$2.Component {
130401
130277
  __name(_Minimap, "Minimap");
130402
130278
  let Minimap = _Minimap;
130403
130279
  const YellowScrollHandle = view(
130404
- (_L = class extends React$2.Component {
130280
+ (_J = class extends React$2.Component {
130405
130281
  render() {
130406
130282
  const {
130407
130283
  scrollHandleWidth,
@@ -130556,7 +130432,7 @@ const YellowScrollHandle = view(
130556
130432
  )
130557
130433
  );
130558
130434
  }
130559
- }, __name(_L, "YellowScrollHandleInner"), _L)
130435
+ }, __name(_J, "YellowScrollHandleInner"), _J)
130560
130436
  );
130561
130437
  function getTrimmedRangesToDisplay({ trimmedRange, seqLen }) {
130562
130438
  if (!trimmedRange)
@@ -130929,14 +130805,14 @@ function getRangeAnglesSpecial() {
130929
130805
  }, rest);
130930
130806
  }
130931
130807
  __name(getRangeAnglesSpecial, "getRangeAnglesSpecial");
130932
- function PositionAnnotationOnCircle(_M) {
130933
- var _N = _M, {
130808
+ function PositionAnnotationOnCircle(_K) {
130809
+ var _L = _K, {
130934
130810
  children,
130935
130811
  height: height2 = 0,
130936
130812
  sAngle = 0,
130937
130813
  eAngle = 0,
130938
130814
  forward = true
130939
- } = _N, rest = __objRest(_N, [
130815
+ } = _L, rest = __objRest(_L, [
130940
130816
  "children",
130941
130817
  "height",
130942
130818
  "sAngle",
@@ -141521,7 +141397,7 @@ const SelectDialog = redux.compose(
141521
141397
  }),
141522
141398
  tgFormValues("from", "to")
141523
141399
  )(
141524
- (_O = class extends React$2.Component {
141400
+ (_M = class extends React$2.Component {
141525
141401
  constructor() {
141526
141402
  super(...arguments);
141527
141403
  __publicField(this, "updateTempHighlight", /* @__PURE__ */ __name(({ isStart, isEnd } = {}) => (val2) => {
@@ -141632,7 +141508,7 @@ const SelectDialog = redux.compose(
141632
141508
  ))
141633
141509
  );
141634
141510
  }
141635
- }, __name(_O, "SelectDialog"), _O)
141511
+ }, __name(_M, "SelectDialog"), _M)
141636
141512
  );
141637
141513
  const normalizeToInt = /* @__PURE__ */ __name((val2) => {
141638
141514
  const int2 = Math.round(val2);
@@ -145107,8 +144983,8 @@ function getTrackFromEvent(event, allTracks) {
145107
144983
  return track;
145108
144984
  }
145109
144985
  __name(getTrackFromEvent, "getTrackFromEvent");
145110
- const PerformantSelectionLayer = view((_P) => {
145111
- var _Q = _P, { easyStore: easyStore2 } = _Q, rest = __objRest(_Q, ["easyStore"]);
144986
+ const PerformantSelectionLayer = view((_N) => {
144987
+ var _O = _N, { easyStore: easyStore2 } = _O, rest = __objRest(_O, ["easyStore"]);
145112
144988
  const seqLen = rest.sequenceLength - 1;
145113
144989
  return /* @__PURE__ */ React$2.createElement(
145114
144990
  SelectionLayer$3,
@@ -146934,8 +146810,8 @@ const AlignmentView$1 = compose(
146934
146810
  })
146935
146811
  )
146936
146812
  )(AlignmentView);
146937
- const PerformantCaret = view((_R) => {
146938
- var _S = _R, { easyStore: easyStore2 } = _S, rest = __objRest(_S, ["easyStore"]);
146813
+ const PerformantCaret = view((_P) => {
146814
+ var _Q = _P, { easyStore: easyStore2 } = _Q, rest = __objRest(_Q, ["easyStore"]);
146939
146815
  return /* @__PURE__ */ React$2.createElement(Caret$2, __spreadValues({ caretPosition: easyStore2.caretPosition }, rest));
146940
146816
  });
146941
146817
  function cleanTracks(alignmentTracks) {
@@ -149198,14 +149074,14 @@ const cutsiteTool = connectToEditor(
149198
149074
  }, toolbarItemProps))
149199
149075
  );
149200
149076
  });
149201
- function CutsiteToolDropDown(_T) {
149202
- var _U = _T, {
149077
+ function CutsiteToolDropDown(_R) {
149078
+ var _S = _R, {
149203
149079
  editorName,
149204
149080
  toggleDropdown,
149205
149081
  annotationVisibilityShow: annotationVisibilityShow2,
149206
149082
  withDigestTool,
149207
149083
  createNewDigest: createNewDigest2
149208
- } = _U, rest = __objRest(_U, [
149084
+ } = _S, rest = __objRest(_S, [
149209
149085
  "editorName",
149210
149086
  "toggleDropdown",
149211
149087
  "annotationVisibilityShow",
@@ -149333,7 +149209,7 @@ const orfTool = connectToEditor(
149333
149209
  );
149334
149210
  });
149335
149211
  const OrfToolDropdown = withEditorProps(
149336
- (_V = class extends React$2.Component {
149212
+ (_T = class extends React$2.Component {
149337
149213
  constructor(props) {
149338
149214
  super(props);
149339
149215
  this.commands = getCommands(this);
@@ -149359,7 +149235,7 @@ const OrfToolDropdown = withEditorProps(
149359
149235
  }
149360
149236
  ));
149361
149237
  }
149362
- }, __name(_V, "OrfDropdown"), _V)
149238
+ }, __name(_T, "OrfDropdown"), _T)
149363
149239
  );
149364
149240
  const opts = [
149365
149241
  { label: "DNA", value: "DNA" },
@@ -149419,7 +149295,7 @@ const _FindBar = class _FindBar extends React$2.Component {
149419
149295
  }, "updateMatchNumber");
149420
149296
  const findOptionsEls = [
149421
149297
  /* @__PURE__ */ React$2.createElement(
149422
- core.HTMLSelect,
149298
+ TgHTMLSelect,
149423
149299
  {
149424
149300
  key: "dnaoraa",
149425
149301
  options: opts,
@@ -149431,7 +149307,7 @@ const _FindBar = class _FindBar extends React$2.Component {
149431
149307
  }
149432
149308
  ),
149433
149309
  /* @__PURE__ */ React$2.createElement("div", { style: { display: "flex" }, key: "ambiguousorliteral" }, /* @__PURE__ */ React$2.createElement(
149434
- core.HTMLSelect,
149310
+ TgHTMLSelect,
149435
149311
  {
149436
149312
  name: "ambiguousOrLiteral",
149437
149313
  options: [
@@ -149974,10 +149850,11 @@ const EditReadOnlyItem = connectToEditor(({ readOnly: readOnly2 }) => ({
149974
149850
  disableSetReadOnly,
149975
149851
  disableBpEditing
149976
149852
  } = props;
149853
+ const disabled = disableSetReadOnly || !onSave;
149977
149854
  return showReadOnly ? /* @__PURE__ */ React$2.createElement(StatusBarItem, { dataTest: "veStatusBar-readOnly" }, onSave ? /* @__PURE__ */ React$2.createElement(
149978
- core.HTMLSelect,
149855
+ TgHTMLSelect,
149979
149856
  {
149980
- "data-tip": !readOnly2 && disableBpEditing ? disableBpEditing : void 0,
149857
+ "data-tip": !readOnly2 && typeof disableBpEditing === "string" ? disableBpEditing : void 0,
149981
149858
  options: [
149982
149859
  {
149983
149860
  label: "Read Only",
@@ -149988,8 +149865,8 @@ const EditReadOnlyItem = connectToEditor(({ readOnly: readOnly2 }) => ({
149988
149865
  value: "editable"
149989
149866
  }
149990
149867
  ],
149991
- disabled: disableSetReadOnly || !onSave,
149992
- className: core.Classes.MINIMAL,
149868
+ disabled,
149869
+ className: core.Classes.MINIMAL + " veReadOnlySelect",
149993
149870
  value: readOnly2 ? "readOnly" : "editable",
149994
149871
  onChange: ({ target: { value } }) => handleReadOnlyChange(value === "readOnly", props)
149995
149872
  }
@@ -150093,7 +149970,7 @@ const EditCircularityItem = compose(
150093
149970
  withHandlers({ updateCircular })
150094
149971
  )(({ readOnly: readOnly2, showCircularity, circular: circular2, updateCircular: updateCircular2 }) => {
150095
149972
  return showCircularity ? /* @__PURE__ */ React$2.createElement(StatusBarItem, { dataTest: "veStatusBar-circularity" }, readOnly2 ? circular2 ? "Circular" : "Linear" : /* @__PURE__ */ React$2.createElement(
150096
- core.HTMLSelect,
149973
+ TgHTMLSelect,
150097
149974
  {
150098
149975
  onChange: ({ target: { value } }) => {
150099
149976
  updateCircular2(value === "circular");
@@ -150114,7 +149991,7 @@ const EditAvailabilityItem = connectToEditor(
150114
149991
  })
150115
149992
  )(({ readOnly: readOnly2, showAvailability, materiallyAvailable: materiallyAvailable2, updateAvailability: updateAvailability2 }) => {
150116
149993
  return showAvailability ? /* @__PURE__ */ React$2.createElement(StatusBarItem, null, readOnly2 ? materiallyAvailable2 ? "Available" : "Unavailable" : /* @__PURE__ */ React$2.createElement(
150117
- core.HTMLSelect,
149994
+ TgHTMLSelect,
150118
149995
  {
150119
149996
  onChange: ({ target: { value } }) => {
150120
149997
  updateAvailability2(value === "available");
@@ -150584,13 +150461,14 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
150584
150461
  const {
150585
150462
  readOnly: readOnly2,
150586
150463
  showReadOnly = true,
150587
- updateCircular: updateCircular2,
150588
150464
  isProtein: isProtein2,
150589
150465
  disableSetReadOnly,
150590
- updateAvailability: updateAvailability2,
150591
150466
  sequenceData: sequenceData2,
150592
150467
  onSave,
150593
150468
  showAvailability,
150469
+ beforeReadOnlyChange,
150470
+ editorName,
150471
+ disableBpEditing,
150594
150472
  sequenceNameUpdate: sequenceNameUpdate2
150595
150473
  } = this.props;
150596
150474
  const {
@@ -150599,9 +150477,7 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
150599
150477
  isOligo: isOligo2,
150600
150478
  isRna: isRna2,
150601
150479
  sequence: sequence2 = "",
150602
- proteinSequence = "",
150603
- circular: circular2,
150604
- materiallyAvailable: materiallyAvailable2
150480
+ proteinSequence = ""
150605
150481
  } = sequenceData2 || {};
150606
150482
  return /* @__PURE__ */ React$2.createElement(React$2.Fragment, null, /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Name"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, /* @__PURE__ */ React$2.createElement(
150607
150483
  InputField,
@@ -150614,43 +150490,15 @@ const _GeneralProperties = class _GeneralProperties extends React$2.Component {
150614
150490
  enableReinitialize: true,
150615
150491
  defaultValue: name2
150616
150492
  }
150617
- ), " ")), !isProtein2 && !isOligo2 && !isRna2 && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row circularLinearSelect" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Circular/Linear"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
150618
- BPSelect,
150619
- {
150620
- disabled: readOnly2,
150621
- onChange: (val2) => {
150622
- updateCircular2(val2 === "circular");
150623
- },
150624
- value: circular2 ? "circular" : "linear",
150625
- options: [
150626
- { label: "Circular", value: "circular" },
150627
- { label: "Linear", value: "linear" }
150628
- ]
150629
- }
150630
- ))), showAvailability && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Material Availability"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
150631
- BPSelect,
150493
+ ), " ")), !isProtein2 && !isOligo2 && !isRna2 && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row circularLinearSelect" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Circular/Linear"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(EditCircularityItem, { editorName, showCircularity: true }))), showAvailability && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Material Availability"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(EditAvailabilityItem, { editorName, showAvailability: true }))), /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Length"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", isProtein2 ? proteinSequence.length : sequence2.length)), showReadOnly && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Is Editable"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
150494
+ EditReadOnlyItem,
150632
150495
  {
150633
- disabled: readOnly2,
150634
- onChange: (val2) => {
150635
- updateAvailability2(val2 === "available");
150636
- },
150637
- value: materiallyAvailable2 ? "available" : "unavailable",
150638
- options: [
150639
- { label: "Available", value: "available" },
150640
- { label: "Unavailable", value: "unavailable" }
150641
- ]
150642
- }
150643
- ))), /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Length"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", isProtein2 ? proteinSequence.length : sequence2.length)), showReadOnly && /* @__PURE__ */ React$2.createElement("div", { className: "ve-flex-row" }, /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-left bp3-label" }, "Is Editable"), " ", /* @__PURE__ */ React$2.createElement("div", { className: "ve-column-right" }, " ", /* @__PURE__ */ React$2.createElement(
150644
- BPSelect,
150645
- {
150646
- className: "veReadOnlySelect",
150647
- disabled: !onSave || disableSetReadOnly,
150648
- onChange: (val2) => handleReadOnlyChange(val2 === "readOnly", this.props),
150649
- value: readOnly2 ? "readOnly" : "editable",
150650
- options: [
150651
- { label: "Read Only", value: "readOnly" },
150652
- { label: "Editable", value: "editable" }
150653
- ]
150496
+ beforeReadOnlyChange,
150497
+ editorName,
150498
+ onSave,
150499
+ disableBpEditing,
150500
+ disableSetReadOnly,
150501
+ showReadOnly
150654
150502
  }
150655
150503
  ))), /* @__PURE__ */ React$2.createElement("div", null, "Description"), /* @__PURE__ */ React$2.createElement(
150656
150504
  TextareaField,
@@ -154776,8 +154624,8 @@ function StandaloneVersionHistoryView(props) {
154776
154624
  return /* @__PURE__ */ React$2.createElement(reactRedux.Provider, { store }, /* @__PURE__ */ React$2.createElement(VersionHistoryView$1, __spreadValues({}, __spreadValues({}, props))));
154777
154625
  }
154778
154626
  __name(StandaloneVersionHistoryView, "StandaloneVersionHistoryView");
154779
- function createVectorEditor(_node, _W = {}) {
154780
- var _X = _W, { editorName = "StandaloneEditor" } = _X, rest = __objRest(_X, ["editorName"]);
154627
+ function createVectorEditor(_node, _U = {}) {
154628
+ var _V = _U, { editorName = "StandaloneEditor" } = _V, rest = __objRest(_V, ["editorName"]);
154781
154629
  if (!store) {
154782
154630
  store = makeStore();
154783
154631
  }
@@ -154810,8 +154658,8 @@ function createVectorEditor(_node, _W = {}) {
154810
154658
  return editor;
154811
154659
  }
154812
154660
  __name(createVectorEditor, "createVectorEditor");
154813
- function createVersionHistoryView(node2, _Y = {}) {
154814
- var _Z = _Y, { editorName = "StandaloneVersionHistoryView" } = _Z, rest = __objRest(_Z, ["editorName"]);
154661
+ function createVersionHistoryView(node2, _W = {}) {
154662
+ var _X = _W, { editorName = "StandaloneVersionHistoryView" } = _X, rest = __objRest(_X, ["editorName"]);
154815
154663
  if (!store) {
154816
154664
  store = makeStore();
154817
154665
  }