@columnus/shared 0.1.51 → 0.1.54

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/dist/apiProfile.js +1 -1
  2. package/dist/apiProfile.js.map +1 -1
  3. package/dist/betterAuthSession.d.ts +3 -1
  4. package/dist/betterAuthSession.js +10 -4
  5. package/dist/betterAuthSession.js.map +1 -1
  6. package/dist/bffProtocol.js +1 -1
  7. package/dist/bffProtocol.js.map +1 -1
  8. package/dist/ciPreviewEnv.js.map +1 -1
  9. package/dist/clipboardTransfer.js +121 -148
  10. package/dist/clipboardTransfer.js.map +1 -1
  11. package/dist/csv.js +121 -148
  12. package/dist/csv.js.map +1 -1
  13. package/dist/displayLabel.js +1 -1
  14. package/dist/displayLabel.js.map +1 -1
  15. package/dist/importMatch.js +121 -148
  16. package/dist/importMatch.js.map +1 -1
  17. package/dist/index.js +143 -153
  18. package/dist/index.js.map +1 -1
  19. package/dist/previewDeployName.d.ts +6 -0
  20. package/dist/previewDeployName.js +12 -1
  21. package/dist/previewDeployName.js.map +1 -1
  22. package/dist/queryMerge.js +1 -1
  23. package/dist/queryMerge.js.map +1 -1
  24. package/dist/queryPlan.js +1 -1
  25. package/dist/queryPlan.js.map +1 -1
  26. package/dist/queryStudio.js +1 -1
  27. package/dist/queryStudio.js.map +1 -1
  28. package/dist/queryTypes.js +1 -1
  29. package/dist/queryTypes.js.map +1 -1
  30. package/dist/recordTableColumns.js +1 -1
  31. package/dist/recordTableColumns.js.map +1 -1
  32. package/dist/recordTablePreload.js +1 -1
  33. package/dist/recordTablePreload.js.map +1 -1
  34. package/dist/refDisplayRequests.js +121 -148
  35. package/dist/refDisplayRequests.js.map +1 -1
  36. package/dist/richDoc.js +1 -1
  37. package/dist/richDoc.js.map +1 -1
  38. package/dist/schemaTypes.js +1 -1
  39. package/dist/schemaTypes.js.map +1 -1
  40. package/dist/share.js +1 -1
  41. package/dist/share.js.map +1 -1
  42. package/dist/shareApiBridge.js +1 -1
  43. package/dist/shareApiBridge.js.map +1 -1
  44. package/dist/shareProposal.js +1 -1
  45. package/dist/shareProposal.js.map +1 -1
  46. package/dist/spaceBundle.js +1 -1
  47. package/dist/spaceBundle.js.map +1 -1
  48. package/dist/storageFieldValues.js +1 -1
  49. package/dist/storageFieldValues.js.map +1 -1
  50. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -38,7 +38,7 @@ var require_papaparse_min = __commonJS({
38
38
  "function" == typeof define && define.amd ? define([], t) : "object" == typeof module && "undefined" != typeof exports ? module.exports = t() : e.Papa = t();
39
39
  })(exports, function r() {
40
40
  var n = "undefined" != typeof self ? self : "undefined" != typeof window ? window : void 0 !== n ? n : {};
41
- var d, s = !n.document && !!n.postMessage, a = n.IS_PAPA_WORKER || false, o = {}, h = 0, v3 = {};
41
+ var s = !n.document && !!n.postMessage, a = n.IS_PAPA_WORKER || false, o = {}, h = 0, w = {};
42
42
  function P(e) {
43
43
  return 65279 === e.charCodeAt(0) ? e.slice(1) : e;
44
44
  }
@@ -53,25 +53,25 @@ var require_papaparse_min = __commonJS({
53
53
  let e3 = this._config.newline;
54
54
  e3 || (r2 = this._config.quoteChar || '"', e3 = this._handle.guessLineEndings(t, r2)), t = [...t.split(e3).slice(i2)].join(e3);
55
55
  }
56
- this.isFirstChunk && q(this._config.beforeFirstChunk) && void 0 !== (r2 = this._config.beforeFirstChunk(t)) && (t = r2), this.isFirstChunk = false, this._halted = false;
56
+ this.isFirstChunk && U(this._config.beforeFirstChunk) && void 0 !== (r2 = this._config.beforeFirstChunk(t)) && (t = r2), this.isFirstChunk = false, this._halted = false;
57
57
  var i2 = this._partialLine + t, r2 = (this._partialLine = "", this._handle.parse(i2, this._baseIndex, !this._finished));
58
58
  if (!this._handle.paused() && !this._handle.aborted()) {
59
59
  t = r2.meta.cursor, i2 = (this._finished || (this._partialLine = i2.substring(t - this._baseIndex), this._baseIndex = t), r2 && r2.data && (this._rowCount += r2.data.length), this._finished || this._config.preview && this._rowCount >= this._config.preview);
60
- if (a) n.postMessage({ results: r2, workerId: v3.WORKER_ID, finished: i2 });
61
- else if (q(this._config.chunk) && !e2) {
60
+ if (a) n.postMessage({ results: r2, workerId: w.WORKER_ID, finished: i2 });
61
+ else if (U(this._config.chunk) && !e2) {
62
62
  if (this._config.chunk(r2, this._handle), this._handle.paused() || this._handle.aborted()) return void (this._halted = true);
63
63
  this._completeResults = r2 = void 0;
64
64
  }
65
- return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r2.data), this._completeResults.errors = this._completeResults.errors.concat(r2.errors), this._completeResults.meta = r2.meta), this._completed || !i2 || !q(this._config.complete) || r2 && r2.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), i2 || r2 && r2.meta.paused || this._nextChunk(), r2;
65
+ return this._config.step || this._config.chunk || (this._completeResults.data = this._completeResults.data.concat(r2.data), this._completeResults.errors = this._completeResults.errors.concat(r2.errors), this._completeResults.meta = r2.meta), this._completed || !i2 || !U(this._config.complete) || r2 && r2.meta.aborted || (this._config.complete(this._completeResults, this._input), this._completed = true), i2 || r2 && r2.meta.paused || this._nextChunk(), r2;
66
66
  }
67
67
  this._halted = true;
68
68
  }, this._sendError = function(e2) {
69
- q(this._config.error) ? this._config.error(e2) : a && this._config.error && n.postMessage({ workerId: v3.WORKER_ID, error: e2, finished: false });
69
+ U(this._config.error) ? this._config.error(e2) : a && this._config.error && n.postMessage({ workerId: w.WORKER_ID, error: e2, finished: false });
70
70
  };
71
71
  }
72
- function f(e) {
72
+ function d(e) {
73
73
  var r2;
74
- (e = e || {}).chunkSize || (e.chunkSize = v3.RemoteChunkSize), u.call(this, e), this._nextChunk = s ? function() {
74
+ (e = e || {}).chunkSize || (e.chunkSize = w.RemoteChunkSize), u.call(this, e), this._nextChunk = s ? function() {
75
75
  this._readChunk(), this._chunkLoaded();
76
76
  } : function() {
77
77
  this._readChunk();
@@ -80,7 +80,7 @@ var require_papaparse_min = __commonJS({
80
80
  }, this._readChunk = function() {
81
81
  if (this._finished) this._chunkLoaded();
82
82
  else {
83
- if (r2 = new XMLHttpRequest(), this._config.withCredentials && (r2.withCredentials = this._config.withCredentials), s || (r2.onload = y(this._chunkLoaded, this), r2.onerror = y(this._chunkError, this)), r2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !s), this._config.downloadRequestHeaders) {
83
+ if (r2 = new XMLHttpRequest(), this._config.withCredentials && (r2.withCredentials = this._config.withCredentials), s || (r2.onload = m(this._chunkLoaded, this), r2.onerror = m(this._chunkError, this)), r2.open(this._config.downloadRequestBody ? "POST" : "GET", this._input, !s), this._config.downloadRequestHeaders) {
84
84
  var e2, t = this._config.downloadRequestHeaders;
85
85
  for (e2 in t) r2.setRequestHeader(e2, t[e2]);
86
86
  }
@@ -101,10 +101,10 @@ var require_papaparse_min = __commonJS({
101
101
  };
102
102
  }
103
103
  function l(e) {
104
- (e = e || {}).chunkSize || (e.chunkSize = v3.LocalChunkSize), u.call(this, e);
104
+ (e = e || {}).chunkSize || (e.chunkSize = w.LocalChunkSize), u.call(this, e);
105
105
  var i2, r2, n2 = "undefined" != typeof FileReader;
106
106
  this.stream = function(e2) {
107
- this._input = e2, r2 = e2.slice || e2.webkitSlice || e2.mozSlice, n2 ? ((i2 = new FileReader()).onload = y(this._chunkLoaded, this), i2.onerror = y(this._chunkError, this)) : i2 = new FileReaderSync(), this._nextChunk();
107
+ this._input = e2, r2 = e2.slice || e2.webkitSlice || e2.mozSlice, n2 ? ((i2 = new FileReader()).onload = m(this._chunkLoaded, this), i2.onerror = m(this._chunkError, this)) : i2 = new FileReaderSync(), this._nextChunk();
108
108
  }, this._nextChunk = function() {
109
109
  this._finished || this._config.preview && !(this._rowCount < this._config.preview) || this._readChunk();
110
110
  }, this._readChunk = function() {
@@ -116,7 +116,7 @@ var require_papaparse_min = __commonJS({
116
116
  this._sendError(i2.error);
117
117
  };
118
118
  }
119
- function c(e) {
119
+ function f(e) {
120
120
  var i2;
121
121
  u.call(this, e = e || {}), this.stream = function(e2) {
122
122
  return i2 = e2, this._nextChunk();
@@ -125,7 +125,7 @@ var require_papaparse_min = __commonJS({
125
125
  if (!this._finished) return e2 = this._config.chunkSize, i2 = e2 ? (t = i2.substring(0, e2), i2.substring(e2)) : (t = i2, ""), this._finished = !i2, this.parseChunk(t);
126
126
  };
127
127
  }
128
- function p(e) {
128
+ function c(e) {
129
129
  u.call(this, e = e || {});
130
130
  var t = [], i2 = true, r2 = false;
131
131
  this.pause = function() {
@@ -138,34 +138,34 @@ var require_papaparse_min = __commonJS({
138
138
  r2 && 1 === t.length && (this._finished = true);
139
139
  }, this._nextChunk = function() {
140
140
  this._checkIsFinished(), t.length ? this.parseChunk(t.shift()) : i2 = true;
141
- }, this._streamData = y(function(e2) {
141
+ }, this._streamData = m(function(e2) {
142
142
  try {
143
143
  t.push("string" == typeof e2 ? e2 : e2.toString(this._config.encoding)), i2 && (i2 = false, this._checkIsFinished(), this.parseChunk(t.shift()));
144
144
  } catch (e3) {
145
145
  this._streamError(e3);
146
146
  }
147
- }, this), this._streamError = y(function(e2) {
147
+ }, this), this._streamError = m(function(e2) {
148
148
  this._streamCleanUp(), this._sendError(e2);
149
- }, this), this._streamEnd = y(function() {
149
+ }, this), this._streamEnd = m(function() {
150
150
  this._streamCleanUp(), r2 = true, this._streamData("");
151
- }, this), this._streamCleanUp = y(function() {
151
+ }, this), this._streamCleanUp = m(function() {
152
152
  this._input.removeListener("data", this._streamData), this._input.removeListener("end", this._streamEnd), this._input.removeListener("error", this._streamError);
153
153
  }, this);
154
154
  }
155
155
  function i(m2) {
156
- var n2, s2, a2, t, o2 = Math.pow(2, 53), h2 = -o2, u2 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, d2 = /^((\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)))$/, i2 = this, r2 = 0, f2 = 0, l2 = false, e = false, c2 = [], p2 = { data: [], errors: [], meta: {} };
157
- function y2(e2) {
156
+ var n2, s2, a2, t, o2 = Math.pow(2, 53), h2 = -o2, u2 = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/, d2 = /^((\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)))$/, i2 = this, r2 = 0, l2 = 0, f2 = false, e = false, c2 = [], p2 = { data: [], errors: [], meta: {} };
157
+ function y(e2) {
158
158
  return "greedy" === m2.skipEmptyLines ? "" === e2.join("").trim() : 1 === e2.length && 0 === e2[0].length;
159
159
  }
160
- function g2() {
161
- if (p2 && a2 && (k("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + v3.DefaultDelimiter + "'"), a2 = false), m2.skipEmptyLines && (p2.data = p2.data.filter(function(e3) {
162
- return !y2(e3);
163
- })), _2()) {
160
+ function _2() {
161
+ if (p2 && a2 && (k("Delimiter", "UndetectableDelimiter", "Unable to auto-detect delimiting character; defaulted to '" + w.DefaultDelimiter + "'"), a2 = false), m2.skipEmptyLines && (p2.data = p2.data.filter(function(e3) {
162
+ return !y(e3);
163
+ })), g2()) {
164
164
  let t3 = function(e3, t4) {
165
- e3 = P(e3), q(m2.transformHeader) && (e3 = m2.transformHeader(e3, t4)), c2.push(e3);
165
+ e3 = P(e3), U(m2.transformHeader) && (e3 = m2.transformHeader(e3, t4)), c2.push(e3);
166
166
  };
167
167
  if (p2) if (Array.isArray(p2.data[0])) {
168
- for (var e2 = 0; _2() && e2 < p2.data.length; e2++) p2.data[e2].forEach(t3);
168
+ for (var e2 = 0; g2() && e2 < p2.data.length; e2++) p2.data[e2].forEach(t3);
169
169
  p2.data.splice(0, 1);
170
170
  } else p2.data.forEach(t3);
171
171
  }
@@ -179,124 +179,124 @@ var require_papaparse_min = __commonJS({
179
179
  })(t4) ? parseFloat(t4) : d2.test(t4) ? new Date(t4) : "" === t4 ? null : t4) : t4)(n3 = m2.header ? r4 >= c2.length ? "__parsed_extra" : c2[r4] : n3, s3 = m2.transform ? m2.transform(s3, n3) : s3);
180
180
  "__parsed_extra" === n3 ? (i4[n3] = i4[n3] || [], i4[n3].push(s3)) : i4[n3] = s3;
181
181
  }
182
- return m2.header && (r4 > c2.length ? k("FieldMismatch", "TooManyFields", "Too many fields: expected " + c2.length + " fields but parsed " + r4, f2 + t3) : r4 < c2.length && k("FieldMismatch", "TooFewFields", "Too few fields: expected " + c2.length + " fields but parsed " + r4, f2 + t3)), i4;
182
+ return m2.header && (r4 > c2.length ? k("FieldMismatch", "TooManyFields", "Too many fields: expected " + c2.length + " fields but parsed " + r4, l2 + t3) : r4 < c2.length && k("FieldMismatch", "TooFewFields", "Too few fields: expected " + c2.length + " fields but parsed " + r4, l2 + t3)), i4;
183
183
  }
184
184
  var r3;
185
- p2 && (m2.header || m2.dynamicTyping || m2.transform) && (r3 = 1, !p2.data.length || Array.isArray(p2.data[0]) ? (p2.data = p2.data.map(i3), r3 = p2.data.length) : p2.data = i3(p2.data, 0), m2.header && p2.meta && (p2.meta.fields = c2), f2 += r3);
185
+ p2 && (m2.header || m2.dynamicTyping || m2.transform) && (r3 = 1, !p2.data.length || Array.isArray(p2.data[0]) ? (p2.data = p2.data.map(i3), r3 = p2.data.length) : p2.data = i3(p2.data, 0), m2.header && p2.meta && (p2.meta.fields = c2), l2 += r3);
186
186
  }
187
- function _2() {
187
+ function g2() {
188
188
  return m2.header && 0 === c2.length;
189
189
  }
190
190
  function k(e2, t2, i3, r3) {
191
191
  e2 = { type: e2, code: t2, message: i3 };
192
192
  void 0 !== r3 && (e2.row = r3), p2.errors.push(e2);
193
193
  }
194
- q(m2.step) && (t = m2.step, m2.step = function(e2) {
195
- p2 = e2, _2() ? g2() : (g2(), 0 !== p2.data.length && (r2 += e2.data.length, m2.preview && r2 > m2.preview ? s2.abort() : (p2.data = p2.data[0], t(p2, i2))));
194
+ U(m2.step) && (t = m2.step, m2.step = function(e2) {
195
+ p2 = e2, g2() ? _2() : (_2(), 0 !== p2.data.length && (r2 += e2.data.length, m2.preview && r2 > m2.preview ? s2.abort() : (p2.data = p2.data[0], t(p2, i2))));
196
196
  }), this.parse = function(e2, t2, i3) {
197
- var r3 = m2.quoteChar || '"', r3 = (m2.newline || (m2.newline = this.guessLineEndings(e2, r3)), a2 = false, m2.delimiter ? q(m2.delimiter) && (m2.delimiter = m2.delimiter(e2), p2.meta.delimiter = m2.delimiter) : ((r3 = ((e3, t3, i4, r4, n3) => {
197
+ var r3 = m2.quoteChar || '"', r3 = (m2.newline || (m2.newline = this.guessLineEndings(e2, r3)), a2 = false, m2.delimiter ? U(m2.delimiter) && (m2.delimiter = m2.delimiter(e2), p2.meta.delimiter = m2.delimiter) : ((r3 = ((e3, t3, i4, r4, n3) => {
198
198
  var s3, a3, o3, h3;
199
- n3 = n3 || [",", " ", "|", ";", v3.RECORD_SEP, v3.UNIT_SEP];
199
+ n3 = n3 || [",", " ", "|", ";", w.RECORD_SEP, w.UNIT_SEP];
200
200
  for (var u3 = 0; u3 < n3.length; u3++) {
201
- for (var d3, f3 = n3[u3], l3 = 0, c3 = 0, p3 = 0, g3 = (o3 = void 0, new E({ comments: r4, delimiter: f3, newline: t3, preview: 10 }).parse(e3)), _3 = 0; _3 < g3.data.length; _3++) i4 && y2(g3.data[_3]) ? p3++ : (d3 = g3.data[_3].length, c3 += d3, void 0 === o3 ? o3 = d3 : 0 < d3 && (l3 += Math.abs(d3 - o3), o3 = d3));
202
- 0 < g3.data.length && (c3 /= g3.data.length - p3), (void 0 === a3 || l3 <= a3) && (void 0 === h3 || h3 < c3) && 1.99 < c3 && (a3 = l3, s3 = f3, h3 = c3);
201
+ for (var d3, l3 = n3[u3], f3 = 0, c3 = 0, p3 = 0, _3 = (o3 = void 0, new E({ comments: r4, delimiter: l3, newline: t3, preview: 10 }).parse(e3)), g3 = 0; g3 < _3.data.length; g3++) i4 && y(_3.data[g3]) ? p3++ : (d3 = _3.data[g3].length, c3 += d3, void 0 === o3 ? o3 = d3 : 0 < d3 && (f3 += Math.abs(d3 - o3), o3 = d3));
202
+ 0 < _3.data.length && (c3 /= _3.data.length - p3), 1.99 < c3 && (void 0 === a3 || f3 < a3 || f3 === a3 && h3 < c3) && (a3 = f3, s3 = l3, h3 = c3);
203
203
  }
204
204
  return { successful: !!(m2.delimiter = s3), bestDelimiter: s3 };
205
- })(e2, m2.newline, m2.skipEmptyLines, m2.comments, m2.delimitersToGuess)).successful ? m2.delimiter = r3.bestDelimiter : (a2 = true, m2.delimiter = v3.DefaultDelimiter), p2.meta.delimiter = m2.delimiter), b(m2));
206
- return m2.preview && m2.header && r3.preview++, n2 = e2, s2 = new E(r3), p2 = s2.parse(n2, t2, i3), g2(), l2 ? { meta: { paused: true } } : p2 || { meta: { paused: false } };
205
+ })(e2, m2.newline, m2.skipEmptyLines, m2.comments, m2.delimitersToGuess)).successful ? m2.delimiter = r3.bestDelimiter : (a2 = true, m2.delimiter = w.DefaultDelimiter), p2.meta.delimiter = m2.delimiter), b(m2));
206
+ return m2.preview && m2.header && r3.preview++, n2 = e2, s2 = new E(r3), p2 = s2.parse(n2, t2, i3), _2(), f2 ? { meta: { paused: true } } : p2 || { meta: { paused: false } };
207
207
  }, this.paused = function() {
208
- return l2;
208
+ return f2;
209
209
  }, this.pause = function() {
210
- l2 = true, s2.abort(), n2 = q(m2.chunk) ? "" : n2.substring(s2.getCharIndex());
210
+ f2 = true, s2.abort(), n2 = U(m2.chunk) ? "" : n2.substring(s2.getCharIndex());
211
211
  }, this.resume = function() {
212
- i2.streamer._halted ? (l2 = false, i2.streamer.parseChunk(n2, true)) : setTimeout(i2.resume, 3);
212
+ i2.streamer._halted ? (f2 = false, i2.streamer.parseChunk(n2, true)) : setTimeout(i2.resume, 3);
213
213
  }, this.aborted = function() {
214
214
  return e;
215
215
  }, this.abort = function() {
216
- e = true, s2.abort(), p2.meta.aborted = true, q(m2.complete) && m2.complete(p2), n2 = "";
216
+ e = true, s2.abort(), p2.meta.aborted = true, U(m2.complete) && m2.complete(p2), n2 = "";
217
217
  }, this.guessLineEndings = function(e2, t2) {
218
218
  e2 = e2.substring(0, 1048576);
219
- var t2 = new RegExp(U(t2) + "([^]*?)" + U(t2), "gm"), i3 = (e2 = e2.replace(t2, "")).split("\r"), t2 = e2.split("\n"), e2 = 1 < t2.length && t2[0].length < i3[0].length;
219
+ var t2 = new RegExp(q(t2) + "([^]*?)" + q(t2), "gm"), i3 = (e2 = e2.replace(t2, "")).split("\r"), t2 = e2.split("\n"), e2 = 1 < t2.length && t2[0].length < i3[0].length;
220
220
  if (1 === i3.length || e2) return "\n";
221
221
  for (var r3 = 0, n3 = 0; n3 < i3.length; n3++) "\n" === i3[n3][0] && r3++;
222
222
  return r3 >= i3.length / 2 ? "\r\n" : "\r";
223
223
  };
224
224
  }
225
- function U(e) {
225
+ function q(e) {
226
226
  return e.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
227
227
  }
228
228
  function E(C) {
229
- var S = (C = C || {}).delimiter, O = C.newline, x = C.comments, I = C.step, A = C.preview, T = C.fastMode, D = null, L = false, F = null == C.quoteChar ? '"' : C.quoteChar, j = F;
230
- if (void 0 !== C.escapeChar && (j = C.escapeChar), ("string" != typeof S || -1 < v3.BAD_DELIMITERS.indexOf(S)) && (S = ","), x === S) throw new Error("Comment character same as delimiter");
231
- true === x ? x = "#" : ("string" != typeof x || -1 < v3.BAD_DELIMITERS.indexOf(x)) && (x = false), "\n" !== O && "\r" !== O && "\r\n" !== O && (O = "\n");
232
- var z = 0, M = false;
229
+ var S = (C = C || {}).delimiter, O = C.newline, x = C.comments, I = C.step, A = C.preview, T = C.fastMode, D = null, L = false, F = null == C.quoteChar ? '"' : C.quoteChar, z = F;
230
+ if (void 0 !== C.escapeChar && (z = C.escapeChar), ("string" != typeof S || -1 < w.BAD_DELIMITERS.indexOf(S)) && (S = ","), x === S) throw new Error("Comment character same as delimiter");
231
+ true === x ? x = "#" : ("string" != typeof x || -1 < w.BAD_DELIMITERS.indexOf(x)) && (x = false), "\n" !== O && "\r" !== O && "\r\n" !== O && (O = "\n");
232
+ var M = 0, j = false;
233
233
  this.parse = function(i2, t, r2) {
234
234
  if ("string" != typeof i2) throw new Error("Input must be a string");
235
- var n2 = i2.length, e = S.length, s2 = O.length, a2 = x.length, o2 = q(I), h2 = [], u2 = [], d2 = [], f2 = z = 0;
236
- if (!i2) return w();
235
+ var n2 = i2.length, e = S.length, s2 = O.length, a2 = x.length, o2 = U(I), h2 = [], u2 = [], d2 = [], l2 = M = 0;
236
+ if (!i2) return v3();
237
237
  if (T || false !== T && -1 === i2.indexOf(F)) {
238
- for (var l2 = i2.split(O), c2 = 0; c2 < l2.length; c2++) {
239
- if (d2 = l2[c2], z += d2.length, c2 !== l2.length - 1) z += O.length;
240
- else if (r2) return w();
238
+ for (var f2 = i2.split(O), c2 = 0; c2 < f2.length; c2++) {
239
+ if (d2 = f2[c2], M += d2.length, c2 !== f2.length - 1) M += O.length;
240
+ else if (r2) return v3();
241
241
  if (!x || d2.substring(0, a2) !== x) {
242
242
  if (o2) {
243
- if (h2 = [], k(d2.split(S)), R(), M) return w();
243
+ if (h2 = [], k(d2.split(S)), R(), j) return v3();
244
244
  } else k(d2.split(S));
245
- if (A && A <= c2) return h2 = h2.slice(0, A), w(true);
245
+ if (A && A <= c2) return h2 = h2.slice(0, A), v3(true);
246
246
  }
247
247
  }
248
- return w();
248
+ return v3();
249
249
  }
250
- for (var p2 = i2.indexOf(S, z), g2 = i2.indexOf(O, z), _2 = new RegExp(U(j) + U(F), "g"), m2 = i2.indexOf(F, z); ; ) if (i2[z] === F) for (m2 = z, z++; ; ) {
251
- if (-1 === (m2 = i2.indexOf(F, m2 + 1))) return r2 || u2.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h2.length, index: z }), E2();
252
- if (m2 === n2 - 1) return E2(i2.substring(z, m2).replace(_2, F));
253
- if (F === j && i2[m2 + 1] === j) m2++;
254
- else if (F === j || 0 === m2 || i2[m2 - 1] !== j) {
250
+ for (var p2 = i2.indexOf(S, M), _2 = i2.indexOf(O, M), g2 = new RegExp(q(z) + q(F), "g"), m2 = i2.indexOf(F, M); ; ) if (i2[M] === F) for (m2 = M, M++; ; ) {
251
+ if (-1 === (m2 = i2.indexOf(F, m2 + 1))) return r2 || u2.push({ type: "Quotes", code: "MissingQuotes", message: "Quoted field unterminated", row: h2.length, index: M }), E2();
252
+ if (m2 === n2 - 1) return E2(i2.substring(M, m2).replace(g2, F));
253
+ if (F === z && i2[m2 + 1] === z) m2++;
254
+ else if (F === z || 0 === m2 || i2[m2 - 1] !== z) {
255
255
  -1 !== p2 && p2 < m2 + 1 && (p2 = i2.indexOf(S, m2 + 1));
256
- var y2 = v4(-1 === (g2 = -1 !== g2 && g2 < m2 + 1 ? i2.indexOf(O, m2 + 1) : g2) ? p2 : Math.min(p2, g2));
257
- if (i2.substr(m2 + 1 + y2, e) === S) {
258
- d2.push(i2.substring(z, m2).replace(_2, F)), i2[z = m2 + 1 + y2 + e] !== F && (m2 = i2.indexOf(F, z)), p2 = i2.indexOf(S, z), g2 = i2.indexOf(O, z);
256
+ var y = w2(-1 === (_2 = -1 !== _2 && _2 < m2 + 1 ? i2.indexOf(O, m2 + 1) : _2) ? p2 : Math.min(p2, _2));
257
+ if (i2.substr(m2 + 1 + y, e) === S) {
258
+ d2.push(i2.substring(M, m2).replace(g2, F)), i2[M = m2 + 1 + y + e] !== F && (m2 = i2.indexOf(F, M)), p2 = i2.indexOf(S, M), _2 = i2.indexOf(O, M);
259
259
  break;
260
260
  }
261
- y2 = v4(g2);
262
- if (i2.substring(m2 + 1 + y2, m2 + 1 + y2 + s2) === O) {
263
- if (d2.push(i2.substring(z, m2).replace(_2, F)), b2(m2 + 1 + y2 + s2), p2 = i2.indexOf(S, z), m2 = i2.indexOf(F, z), o2 && (R(), M)) return w();
264
- if (A && h2.length >= A) return w(true);
261
+ y = w2(_2);
262
+ if (i2.substring(m2 + 1 + y, m2 + 1 + y + s2) === O) {
263
+ if (d2.push(i2.substring(M, m2).replace(g2, F)), b2(m2 + 1 + y + s2), p2 = i2.indexOf(S, M), m2 = i2.indexOf(F, M), o2 && (R(), j)) return v3();
264
+ if (A && h2.length >= A) return v3(true);
265
265
  break;
266
266
  }
267
- u2.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: h2.length, index: z }), m2++;
267
+ u2.push({ type: "Quotes", code: "InvalidQuotes", message: "Trailing quote on quoted field is malformed", row: h2.length, index: M }), m2++;
268
268
  }
269
269
  }
270
- else if (x && 0 === d2.length && i2.substring(z, z + a2) === x) {
271
- if (-1 === g2) return w();
272
- z = g2 + s2, g2 = i2.indexOf(O, z), p2 = i2.indexOf(S, z);
273
- } else if (-1 !== p2 && (p2 < g2 || -1 === g2)) d2.push(i2.substring(z, p2)), z = p2 + e, p2 = i2.indexOf(S, z);
270
+ else if (x && 0 === d2.length && i2.substring(M, M + a2) === x) {
271
+ if (-1 === _2) return v3();
272
+ M = _2 + s2, _2 = i2.indexOf(O, M), p2 = i2.indexOf(S, M);
273
+ } else if (-1 !== p2 && (p2 < _2 || -1 === _2)) d2.push(i2.substring(M, p2)), M = p2 + e, p2 = i2.indexOf(S, M);
274
274
  else {
275
- if (-1 === g2) break;
276
- if (d2.push(i2.substring(z, g2)), b2(g2 + s2), o2 && (R(), M)) return w();
277
- if (A && h2.length >= A) return w(true);
275
+ if (-1 === _2) break;
276
+ if (d2.push(i2.substring(M, _2)), b2(_2 + s2), o2 && (R(), j)) return v3();
277
+ if (A && h2.length >= A) return v3(true);
278
278
  }
279
279
  return E2();
280
280
  function k(e2) {
281
- h2.push(e2), f2 = z;
281
+ h2.push(e2), l2 = M;
282
282
  }
283
- function v4(e2) {
283
+ function w2(e2) {
284
284
  var t2 = 0;
285
285
  return t2 = -1 !== e2 && (e2 = i2.substring(m2 + 1, e2)) && "" === e2.trim() ? e2.length : t2;
286
286
  }
287
287
  function E2(e2) {
288
- return r2 || (void 0 === e2 && (e2 = i2.substring(z)), d2.push(e2), z = n2, k(d2), o2 && R()), w();
288
+ return r2 || (void 0 === e2 && (e2 = i2.substring(M)), d2.push(e2), M = n2, k(d2), o2 && R()), v3();
289
289
  }
290
290
  function b2(e2) {
291
- z = e2, k(d2), d2 = [], g2 = i2.indexOf(O, z);
291
+ M = e2, k(d2), d2 = [], _2 = i2.indexOf(O, M);
292
292
  }
293
- function w(e2) {
293
+ function v3(e2) {
294
294
  if (C.header && !t && h2.length && !L) {
295
295
  var s3 = h2[0], a3 = /* @__PURE__ */ Object.create(null), o3 = new Set(s3);
296
296
  let n3 = false;
297
297
  for (let r3 = 0; r3 < s3.length; r3++) {
298
298
  let i3 = P(s3[r3]);
299
- if (a3[i3 = q(C.transformHeader) ? C.transformHeader(i3, r3) : i3]) {
299
+ if (a3[i3 = U(C.transformHeader) ? C.transformHeader(i3, r3) : i3]) {
300
300
  let e3, t2 = a3[i3];
301
301
  for (; e3 = i3 + "_" + t2, t2++, o3.has(e3); ) ;
302
302
  o3.add(e3), s3[r3] = e3, a3[i3]++, n3 = true, (D = null === D ? {} : D)[e3] = i3;
@@ -305,36 +305,36 @@ var require_papaparse_min = __commonJS({
305
305
  }
306
306
  n3 && console.warn("Duplicate headers found and renamed."), L = true;
307
307
  }
308
- return { data: h2, errors: u2, meta: { delimiter: S, linebreak: O, aborted: M, truncated: !!e2, cursor: f2 + (t || 0), renamedHeaders: D } };
308
+ return { data: h2, errors: u2, meta: { delimiter: S, linebreak: O, aborted: j, truncated: !!e2, cursor: l2 + (t || 0), renamedHeaders: D } };
309
309
  }
310
310
  function R() {
311
- I(w()), h2 = [], u2 = [];
311
+ I(v3()), h2 = [], u2 = [];
312
312
  }
313
313
  }, this.abort = function() {
314
- M = true;
314
+ j = true;
315
315
  }, this.getCharIndex = function() {
316
- return z;
316
+ return M;
317
317
  };
318
318
  }
319
- function g(e) {
319
+ function p(e) {
320
320
  var t = e.data, i2 = o[t.workerId], r2 = false;
321
321
  if (t.error) i2.userError(t.error, t.file);
322
322
  else if (t.results && t.results.data) {
323
323
  var n2 = { abort: function() {
324
324
  r2 = true, _(t.workerId, { data: [], errors: [], meta: { aborted: true } });
325
- }, pause: m, resume: m };
326
- if (q(i2.userStep)) {
325
+ }, pause: g, resume: g };
326
+ if (U(i2.userStep)) {
327
327
  for (var s2 = 0; s2 < t.results.data.length && (i2.userStep({ data: t.results.data[s2], errors: t.results.errors, meta: t.results.meta }, n2), !r2); s2++) ;
328
328
  delete t.results;
329
- } else q(i2.userChunk) && (i2.userChunk(t.results, n2, t.file), delete t.results);
329
+ } else U(i2.userChunk) && (i2.userChunk(t.results, n2, t.file), delete t.results);
330
330
  }
331
331
  t.finished && !r2 && _(t.workerId, t.results);
332
332
  }
333
333
  function _(e, t) {
334
334
  var i2 = o[e];
335
- q(i2.userComplete) && i2.userComplete(t), i2.terminate(), delete o[e];
335
+ U(i2.userComplete) && i2.userComplete(t), i2.terminate(), delete o[e];
336
336
  }
337
- function m() {
337
+ function g() {
338
338
  throw new Error("Not implemented.");
339
339
  }
340
340
  function b(e) {
@@ -343,37 +343,37 @@ var require_papaparse_min = __commonJS({
343
343
  for (t in e) i2[t] = b(e[t]);
344
344
  return i2;
345
345
  }
346
- function y(e, t) {
346
+ function m(e, t) {
347
347
  return function() {
348
348
  e.apply(t, arguments);
349
349
  };
350
350
  }
351
- function q(e) {
351
+ function U(e) {
352
352
  return "function" == typeof e;
353
353
  }
354
- return v3.parse = function(e, t) {
354
+ return w.parse = function(e, t) {
355
355
  var i2 = (t = t || {}).dynamicTyping || false;
356
- q(i2) && (t.dynamicTypingFunction = i2, i2 = {});
357
- if (t.dynamicTyping = i2, t.transform = !!q(t.transform) && t.transform, !t.worker || !v3.WORKERS_SUPPORTED) return i2 = null, v3.NODE_STREAM_INPUT, "string" == typeof e ? (e = P(e), i2 = new (t.download ? f : c)(t)) : true === e.readable && q(e.read) && q(e.on) ? i2 = new p(t) : (n.File && e instanceof File || e instanceof Object) && (i2 = new l(t)), i2.stream(e);
356
+ U(i2) && (t.dynamicTypingFunction = i2, i2 = {});
357
+ if (t.dynamicTyping = i2, t.transform = !!U(t.transform) && t.transform, !t.worker || !w.WORKERS_SUPPORTED) return i2 = null, w.NODE_STREAM_INPUT, "string" == typeof e ? (e = P(e), i2 = new (t.download ? d : f)(t)) : true === e.readable && U(e.read) && U(e.on) ? i2 = new c(t) : (n.File && e instanceof File || e instanceof Object) && (i2 = new l(t)), i2.stream(e);
358
358
  (i2 = (() => {
359
359
  var e2;
360
- return !!v3.WORKERS_SUPPORTED && (e2 = (() => {
360
+ return !!w.WORKERS_SUPPORTED && (e2 = (() => {
361
361
  var e3 = n.URL || n.webkitURL || null, t2 = r.toString();
362
- return v3.BLOB_URL || (v3.BLOB_URL = e3.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; ", "(", t2, ")();"], { type: "text/javascript" })));
363
- })(), (e2 = new n.Worker(e2)).onmessage = g, e2.id = h++, o[e2.id] = e2);
364
- })()).userStep = t.step, i2.userChunk = t.chunk, i2.userComplete = t.complete, i2.userError = t.error, t.step = q(t.step), t.chunk = q(t.chunk), t.complete = q(t.complete), t.error = q(t.error), delete t.worker, i2.postMessage({ input: e, config: t, workerId: i2.id });
365
- }, v3.unparse = function(e, t) {
366
- var s2 = false, _2 = true, m2 = ",", y2 = "\r\n", a2 = '"', o2 = a2 + a2, i2 = false, r2 = null, h2 = false, u2 = ((() => {
362
+ return w.BLOB_URL || (w.BLOB_URL = e3.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; ", "(", t2, ")();"], { type: "text/javascript" })));
363
+ })(), (e2 = new n.Worker(e2)).onmessage = p, e2.id = h++, o[e2.id] = e2);
364
+ })()).userStep = t.step, i2.userChunk = t.chunk, i2.userComplete = t.complete, i2.userError = t.error, t.step = U(t.step), t.chunk = U(t.chunk), t.complete = U(t.complete), t.error = U(t.error), delete t.worker, i2.postMessage({ input: e, config: t, workerId: i2.id });
365
+ }, w.unparse = function(e, t) {
366
+ var s2 = false, g2 = true, m2 = ",", y = "\r\n", a2 = '"', o2 = a2 + a2, i2 = false, r2 = null, h2 = false, u2 = ((() => {
367
367
  if ("object" == typeof t) {
368
- if ("string" != typeof t.delimiter || v3.BAD_DELIMITERS.filter(function(e2) {
368
+ if ("string" != typeof t.delimiter || w.BAD_DELIMITERS.filter(function(e2) {
369
369
  return -1 !== t.delimiter.indexOf(e2);
370
- }).length || (m2 = t.delimiter), "boolean" != typeof t.quotes && "function" != typeof t.quotes && !Array.isArray(t.quotes) || (s2 = t.quotes), "boolean" != typeof t.skipEmptyLines && "string" != typeof t.skipEmptyLines || (i2 = t.skipEmptyLines), "string" == typeof t.newline && (y2 = t.newline), "string" == typeof t.quoteChar && (a2 = t.quoteChar, o2 = a2 + a2), "boolean" == typeof t.header && (_2 = t.header), Array.isArray(t.columns)) {
370
+ }).length || (m2 = t.delimiter), "boolean" != typeof t.quotes && "function" != typeof t.quotes && !Array.isArray(t.quotes) || (s2 = t.quotes), "boolean" != typeof t.skipEmptyLines && "string" != typeof t.skipEmptyLines || (i2 = t.skipEmptyLines), "string" == typeof t.newline && (y = t.newline), "string" == typeof t.quoteChar && (a2 = t.quoteChar, o2 = a2 + a2), "boolean" == typeof t.header && (g2 = t.header), Array.isArray(t.columns)) {
371
371
  if (0 === t.columns.length) throw new Error("Option columns is empty");
372
372
  r2 = t.columns;
373
373
  }
374
374
  void 0 !== t.escapeChar && (o2 = t.escapeChar + a2), t.escapeFormulae instanceof RegExp ? h2 = t.escapeFormulae : "boolean" == typeof t.escapeFormulae && t.escapeFormulae && (h2 = /^[=+\-@\t\r].*$/);
375
375
  }
376
- })(), new RegExp(U(a2), "g"));
376
+ })(), new RegExp(q(a2), "g"));
377
377
  "string" == typeof e && (e = JSON.parse(e));
378
378
  if (Array.isArray(e)) {
379
379
  if (!e.length || Array.isArray(e[0])) return n2(null, e, i2);
@@ -382,69 +382,42 @@ var require_papaparse_min = __commonJS({
382
382
  throw new Error("Unable to serialize unrecognized input");
383
383
  function n2(e2, t2, i3) {
384
384
  var r3 = "", n3 = ("string" == typeof e2 && (e2 = JSON.parse(e2)), "string" == typeof t2 && (t2 = JSON.parse(t2)), Array.isArray(e2) && 0 < e2.length), s3 = !Array.isArray(t2[0]);
385
- if (n3 && _2) {
385
+ if (n3 && g2) {
386
386
  for (var a3 = 0; a3 < e2.length; a3++) 0 < a3 && (r3 += m2), r3 += k(e2[a3], a3);
387
- 0 < t2.length && (r3 += y2);
387
+ 0 < t2.length && (r3 += y);
388
388
  }
389
389
  for (var o3 = 0; o3 < t2.length; o3++) {
390
390
  var h3 = (n3 ? e2 : t2[o3]).length, u3 = false, d2 = n3 ? 0 === Object.keys(t2[o3]).length : 0 === t2[o3].length;
391
391
  if (i3 && !n3 && (u3 = "greedy" === i3 ? "" === t2[o3].join("").trim() : 1 === t2[o3].length && 0 === t2[o3][0].length), "greedy" === i3 && n3) {
392
- for (var f2 = [], l2 = 0; l2 < h3; l2++) {
393
- var c2 = s3 ? e2[l2] : l2;
394
- f2.push(t2[o3][c2]);
392
+ for (var l2 = [], f2 = 0; f2 < h3; f2++) {
393
+ var c2 = s3 ? e2[f2] : f2;
394
+ l2.push(t2[o3][c2]);
395
395
  }
396
- u3 = "" === f2.join("").trim();
396
+ u3 = "" === l2.join("").trim();
397
397
  }
398
398
  if (!u3) {
399
399
  for (var p2 = 0; p2 < h3; p2++) {
400
400
  0 < p2 && !d2 && (r3 += m2);
401
- var g2 = n3 && s3 ? e2[p2] : p2;
402
- r3 += k(t2[o3][g2], p2);
401
+ var _2 = n3 && s3 ? e2[p2] : p2;
402
+ r3 += k(t2[o3][_2], p2);
403
403
  }
404
- o3 < t2.length - 1 && (!i3 || 0 < h3 && !d2) && (r3 += y2);
404
+ o3 < t2.length - 1 && (!i3 || 0 < h3 && !d2) && (r3 += y);
405
405
  }
406
406
  }
407
407
  return r3;
408
408
  }
409
409
  function k(e2, t2) {
410
410
  var i3, r3, n3;
411
- return null == e2 ? "" : e2.constructor === Date ? JSON.stringify(e2).slice(1, 25) : (n3 = false, h2 && "string" == typeof e2 && h2.test(e2) && (e2 = "'" + e2, n3 = true), r3 = (i3 = e2.toString()).replace(u2, o2), (n3 = n3 || true === s2 || "function" == typeof s2 && s2(e2, t2) || Array.isArray(s2) && s2[t2] || ((e3, t3) => {
411
+ return null == e2 ? "" : e2.constructor === Date ? isNaN(e2.getTime()) ? "" : e2.toISOString() : (n3 = false, h2 && "string" == typeof e2 && h2.test(e2) && (e2 = "'" + e2, n3 = true), r3 = (i3 = e2.toString()).replace(u2, o2), (n3 = n3 || true === s2 || "function" == typeof s2 && s2(e2, t2) || Array.isArray(s2) && s2[t2] || ((e3, t3) => {
412
412
  for (var i4 = 0; i4 < t3.length; i4++) if (-1 < e3.indexOf(t3[i4])) return true;
413
413
  return false;
414
- })(r3, v3.BAD_DELIMITERS) || -1 < r3.indexOf(m2) || -1 < i3.indexOf(a2) || " " === r3.charAt(0) || " " === r3.charAt(r3.length - 1)) ? a2 + r3 + a2 : r3);
415
- }
416
- }, v3.RECORD_SEP = String.fromCharCode(30), v3.UNIT_SEP = String.fromCharCode(31), v3.BYTE_ORDER_MARK = "\uFEFF", v3.BAD_DELIMITERS = ["\r", "\n", '"', v3.BYTE_ORDER_MARK], v3.WORKERS_SUPPORTED = !s && !!n.Worker, v3.NODE_STREAM_INPUT = 1, v3.LocalChunkSize = 10485760, v3.RemoteChunkSize = 5242880, v3.DefaultDelimiter = ",", v3.Parser = E, v3.ParserHandle = i, v3.NetworkStreamer = f, v3.FileStreamer = l, v3.StringStreamer = c, v3.ReadableStreamStreamer = p, n.jQuery && ((d = n.jQuery).fn.parse = function(o2) {
417
- var i2 = o2.config || {}, h2 = [];
418
- return this.each(function(e2) {
419
- if (!("INPUT" === d(this).prop("tagName").toUpperCase() && "file" === d(this).attr("type").toLowerCase() && n.FileReader) || !this.files || 0 === this.files.length) return true;
420
- for (var t = 0; t < this.files.length; t++) h2.push({ file: this.files[t], inputElem: this, instanceConfig: d.extend({}, i2) });
421
- }), e(), this;
422
- function e() {
423
- if (0 === h2.length) q(o2.complete) && o2.complete();
424
- else {
425
- var e2, t, i3, r2, n2 = h2[0];
426
- if (q(o2.before)) {
427
- var s2 = o2.before(n2.file, n2.inputElem);
428
- if ("object" == typeof s2) {
429
- if ("abort" === s2.action) return e2 = "AbortError", t = n2.file, i3 = n2.inputElem, r2 = s2.reason, void (q(o2.error) && o2.error({ name: e2 }, t, i3, r2));
430
- if ("skip" === s2.action) return void u2();
431
- "object" == typeof s2.config && (n2.instanceConfig = d.extend(n2.instanceConfig, s2.config));
432
- } else if ("skip" === s2) return void u2();
433
- }
434
- var a2 = n2.instanceConfig.complete;
435
- n2.instanceConfig.complete = function(e3) {
436
- q(a2) && a2(e3, n2.file, n2.inputElem), u2();
437
- }, v3.parse(n2.file, n2.instanceConfig);
438
- }
414
+ })(r3, w.BAD_DELIMITERS) || -1 < r3.indexOf(m2) || -1 < i3.indexOf(a2) || " " === r3.charAt(0) || " " === r3.charAt(r3.length - 1)) ? a2 + r3 + a2 : r3);
439
415
  }
440
- function u2() {
441
- h2.splice(0, 1), e();
442
- }
443
- }), a && (n.onmessage = function(e) {
416
+ }, w.RECORD_SEP = String.fromCharCode(30), w.UNIT_SEP = String.fromCharCode(31), w.BYTE_ORDER_MARK = "\uFEFF", w.BAD_DELIMITERS = ["\r", "\n", '"', w.BYTE_ORDER_MARK], w.WORKERS_SUPPORTED = !s && !!n.Worker, w.NODE_STREAM_INPUT = 1, w.LocalChunkSize = 10485760, w.RemoteChunkSize = 5242880, w.DefaultDelimiter = ",", w.Parser = E, w.ParserHandle = i, w.NetworkStreamer = d, w.FileStreamer = l, w.StringStreamer = f, w.ReadableStreamStreamer = c, a && (n.onmessage = function(e) {
444
417
  e = e.data;
445
- void 0 === v3.WORKER_ID && e && (v3.WORKER_ID = e.workerId);
446
- "string" == typeof e.input ? n.postMessage({ workerId: v3.WORKER_ID, results: v3.parse(e.input, e.config), finished: true }) : (n.File && e.input instanceof File || e.input instanceof Object) && (e = v3.parse(e.input, e.config)) && n.postMessage({ workerId: v3.WORKER_ID, results: e, finished: true });
447
- }), (f.prototype = Object.create(u.prototype)).constructor = f, (l.prototype = Object.create(u.prototype)).constructor = l, (c.prototype = Object.create(c.prototype)).constructor = c, (p.prototype = Object.create(u.prototype)).constructor = p, v3;
418
+ void 0 === w.WORKER_ID && e && (w.WORKER_ID = e.workerId);
419
+ "string" == typeof e.input ? n.postMessage({ workerId: w.WORKER_ID, results: w.parse(e.input, e.config), finished: true }) : (n.File && e.input instanceof File || e.input instanceof Object) && (e = w.parse(e.input, e.config)) && n.postMessage({ workerId: w.WORKER_ID, results: e, finished: true });
420
+ }), (d.prototype = Object.create(u.prototype)).constructor = d, (l.prototype = Object.create(u.prototype)).constructor = l, (f.prototype = Object.create(f.prototype)).constructor = f, (c.prototype = Object.create(u.prototype)).constructor = c, w;
448
421
  });
449
422
  }
450
423
  });
@@ -4276,7 +4249,7 @@ ZodNaN.create = (params) => {
4276
4249
  ...processCreateParams(params)
4277
4250
  });
4278
4251
  };
4279
- var BRAND = Symbol("zod_brand");
4252
+ var BRAND = /* @__PURE__ */ Symbol("zod_brand");
4280
4253
  var ZodBranded = class extends ZodType {
4281
4254
  _parse(input) {
4282
4255
  const { ctx } = this._processInputParams(input);
@@ -8317,6 +8290,17 @@ function coolifyHostnameFromEnv(env = process.env) {
8317
8290
  const host = raw.replace(/^https?:\/\//, "").split("/")[0] ?? "";
8318
8291
  return host || null;
8319
8292
  }
8293
+ function resolveTrustedAuthOrigin(env = process.env) {
8294
+ const explicit = env.COLUMNUS_AUTH_ORIGIN?.trim();
8295
+ if (explicit) return explicit.replace(/\/$/, "");
8296
+ const host = coolifyHostnameFromEnv(env);
8297
+ if (host) return `https://${host}`;
8298
+ const siteUrl = env.SITE_URL?.trim();
8299
+ if (siteUrl && !/\.convex\.site(?:\/|$)/i.test(siteUrl)) {
8300
+ return siteUrl.replace(/\/$/, "");
8301
+ }
8302
+ return void 0;
8303
+ }
8320
8304
  function isCiPreviewBuild(env = process.env) {
8321
8305
  if (env.CI_PREVIEW === "true" || env.COOLIFY_IS_PREVIEW === "true") {
8322
8306
  return true;
@@ -8646,15 +8630,21 @@ function isJwtExpired(token, skewSec = 60) {
8646
8630
  return true;
8647
8631
  }
8648
8632
  }
8633
+ function withOptionalOrigin(headers, origin) {
8634
+ const normalized = origin?.trim();
8635
+ return normalized ? { ...headers, origin: normalized } : headers;
8636
+ }
8649
8637
  async function signInViaEmailOtp({
8650
8638
  siteUrl,
8651
8639
  email,
8652
- otp = process.env.DEV_OTP_CODE?.trim() || "000000"
8640
+ otp = process.env.DEV_OTP_CODE?.trim() || "000000",
8641
+ origin
8653
8642
  }) {
8654
8643
  const base = siteUrl.replace(/\/$/, "");
8644
+ const jsonHeaders = withOptionalOrigin({ "content-type": "application/json" }, origin);
8655
8645
  const sendRes = await fetch(`${base}/api/auth/email-otp/send-verification-otp`, {
8656
8646
  method: "POST",
8657
- headers: { "content-type": "application/json" },
8647
+ headers: jsonHeaders,
8658
8648
  body: JSON.stringify({ email, type: "sign-in" })
8659
8649
  });
8660
8650
  if (!sendRes.ok) {
@@ -8662,7 +8652,7 @@ async function signInViaEmailOtp({
8662
8652
  }
8663
8653
  const signInRes = await fetch(`${base}/api/auth/sign-in/email-otp`, {
8664
8654
  method: "POST",
8665
- headers: { "content-type": "application/json" },
8655
+ headers: jsonHeaders,
8666
8656
  body: JSON.stringify({ email, otp })
8667
8657
  });
8668
8658
  if (!signInRes.ok) {
@@ -8673,7 +8663,7 @@ async function signInViaEmailOtp({
8673
8663
  throw new Error("sign-in/email-otp response missing token");
8674
8664
  }
8675
8665
  const convexTokenRes = await fetch(`${base}/api/auth/convex/token`, {
8676
- headers: { Authorization: `Bearer ${body.token}` }
8666
+ headers: withOptionalOrigin({ Authorization: `Bearer ${body.token}` }, origin)
8677
8667
  });
8678
8668
  if (!convexTokenRes.ok) {
8679
8669
  throw new Error(`convex/token failed: ${convexTokenRes.status} ${await convexTokenRes.text()}`);
@@ -10861,12 +10851,12 @@ async function runAcceptProposalBatch(args) {
10861
10851
  papaparse/papaparse.min.js:
10862
10852
  (* @license
10863
10853
  Papa Parse
10864
- v5.5.4
10854
+ v5.6.0
10865
10855
  https://github.com/mholt/PapaParse
10866
10856
  License: MIT
10867
10857
  *)
10868
10858
  */
10869
10859
 
10870
- export { API_DELIVERY_TABLE_NAME, API_OUTBOX_TABLE_NAME, API_OUTPUTS_TABLE_NAME, API_OUTPUT_SECRETS_TABLE_NAME, API_PROFILES_TABLE_NAME, API_PROFILE_SLUG_RE, API_SYNC_ROUTES_TABLE_NAME, API_TOKENS_TABLE_NAME, API_TOKEN_PREFIX, AUDIT_TABLE_NAME, BFF_JSON_BODY_LIMIT_BYTES, MAX_TRANSFER_BYTES as BFF_TRANSFER_MAX_BYTES, COLUMNUS_BFF_API_PREFIX, COLUMNUS_BFF_MANAGEMENT_PREFIX, COLUMNUS_BFF_MANAGEMENT_SECRET_HEADER, COLUMNUS_BFF_PROTOCOL_VERSION, COLUMNUS_BUNDLE_VERSION, COLUMNUS_CLIPBOARD_MARKER, COLUMNUS_CLIPBOARD_VERSION, COLUMNUS_DATA_TRANSFER_VERSION, COLUMNUS_DEPLOY_INTERNAL_PREFIX, COLUMNUS_DEPLOY_OPS_PREFIX, COLUMNUS_DOC_LINK_MARKER, COLUMNUS_PREVIEW_REGISTRATION_SECRET_HEADER, DEFAULT_MAX_SCAN_LIMIT, DISPLAY_VALUES_TABLE_NAME, EMPTY_BLOCK_ID, EMPTY_MANIFEST, EMPTY_MARKDOWN_DOC, EMPTY_RICH_DOC, FIELD_TYPE_KIND_ICONS, FIELD_TYPE_KIND_LABELS, FIELD_TYPE_SELECT_KINDS, HOST_SCHEMA_PROFILE, INCOMING_REFS_TABLE_NAME, MANIFEST_DEPLOY_STATUSES, MANIFEST_HASH_RE, MANIFEST_TABLE_NAME, MATCH_ERROR_KEY, MAX_TRANSFER_BYTES, OPERATION_ID_RE, OVERLAP_MESSAGE, PREDICATE_OPS, PREDICATE_VARIANTS, PREVIEW_TENANT_SLUG_RE, RECORD_TABLE_DEFAULT_FIELD_COUNT, REDACTED, REFS_RECOMPUTE_STALE_MS, RESERVED_TABLE_NAMES, RESERVED_TENANT_SLUGS, RICH_DOC_FORMAT, RICH_DOC_VERSION, SCHEMA_DEPLOY_OPERATION_LEASE_MS, SHARE_TOKEN_ENCRYPTION_KEY_ENV, SHARE_TOKEN_PREFIX, SHRINK_CLEANUP_PAGE_SIZE, SHRINK_IMPACT_CAP, SPACES_TABLE_NAME, STALE_ENDPOINT_DEPLOY_ERROR, STUDIO_DOC_LINK_MARKER, TABLE_COLORS, TABLE_NAME_RE2 as TABLE_NAME_RE, TENANT_SECRETS_KEK_ENV, TENANT_SECRET_CRYPTO_VERSION, TENANT_SLUG_RE, TRANSFER_ID_RE, addRef, anyTenantSlugFromHost, apiProfileSlugToConvexModuleSegment, apiProfileSnapshotSchema, apiProfileToShareScopes, apiProfilesSchema, apiTableAccessSchema, apiTokenPrefix, applyDisplayIdResolution, applyImportRowIdResolution, assertApiProfileSlug, assertPatchesHaveEditorAccess, assertProfileSlugUnchanged, assertProposalAccess, assertShareLinkTypeConsistency, assertShareOperation, attachBffCleanupIdentity, authConfigIssuerFromProcessEnv, betterAuthTrustedOrigins, betweenToIndexBound, bffActiveOperationMetaSchema, bffErrorCodeSchema, bffErrorResponseSchema, bffHealthResponseSchema, bffPrepareOperationSchema, bffPrepareOperationTypeSchema, bffPrepareRequestSchema, bffPreparedBodyEnvelopeSchema, bffPreparedTenantSchema, bffPreviewRegisterRequestSchema, bffPreviewRemoveRequestSchema, bffSchemaDeployRequestSchema, bffSchemaDeployResponseSchema, bffTransferCommitRequestSchema, bffTransferCommitResponseSchema, bffTransferCreateResponseSchema, bffTransferScopeRequestSchema, bffTransferUploadResponseSchema, blocksForBlockNoteDisplay, briefFieldTypeLabel, buildCleanupTasks, buildCsvRows, buildCsvRowsForColumns, buildImportCommitRows, buildRecordTablePreload, buildRefRequestsFromFieldValues, buildRefRequestsFromTableRows, buildShareWizardInput, buildShrinkImpactPreview, buildSpaceExport, canCreateFormReferences, canProposeInsert, canProposeOperation, canSearchFormReferences, canonicalManifestTablesJson, canonicalRichFieldJson, ciPreviewDeployName, clampQuerySchema, clampQueryValidator, classifyPhase, cleanupStateValidator, coerceCsvValue, collectExportDisplayIdRefs, collectFilterRefIds, collectIdReferenceClosure, collectIdsFromField, collectIdsFromValues, collectImportDisplayIds, collectImportRowDisplayIds, collectMatchDisplayIdRefs, collectQueryRefIds, collectRecordLinkIds, collectRecordLinkIdsFromBlocks, collectReferencedIds, collectReferencedStorageIds, collectRichDocStorageIds, collectStorageIds, collectStorageIdsFromRow, compareOrdered, computeManifestAccessHash, computeManifestHash, computeProposalFieldDiff, computeProposalRecordDiff, computeRefGraphFingerprint, computeShrinkPlan, convexCloudToSiteUrl, convexDeploymentSlugFromUrl, convexSiteToCloudUrl, convexSiteUrlFromProcessEnv, coolifyHostnameFromEnv, createCleanupState, createOperationId, createRandomId, createTransferId, csvHasIdColumn, cycleQueryOrder, dataTransferManifestSchema, dateInputValue, dateTimeInputValue, decryptShareToken, decryptTenantSecret, defaultMatchColumn, defaultProdDeployUrl, defaultRecordTableFieldNames, defaultValueForType, deployHealthResponseSchema, deployInternalSchemaDeployPayloadSchema, deployInternalSchemaDeployResponseSchema, deployInternalTransferCommitPayloadSchema, deployInternalTransferCreateResponseSchema, deployInternalTransferExportPayloadSchema, deployInternalTransferImportPreparePayloadSchema, deriveConvexDeploymentFromCloudUrl, deriveListMeta, derivePreviewDeployBuildUrl, derivePreviewStudioDeployUrl, describeFieldType, discretionaryRecordTableFieldNames, displayTemplatesSchema, docsSeedSyncEmailFromEnv, documentMatchesPredicate, documentMatchesPredicates, documentMatchesSyncClamp, editorAccessEnabled, editorAccessToShareScopes, effectiveQueryFieldType, eligibleReferencedParents, emptyCleanupStats, emptyParagraphBlock, emptyToUndefined, encryptShareToken, encryptTenantSecret, extractError, extractPlainText, extractTrustedHostname, fallbackIdLabel, fallbackPreviewLabel, fieldByName, fieldDisplayName, fieldOpSupport, fieldSchema, fieldSupportsSort, fieldTypeHasOutgoingRefs, fieldTypeKindIconName, fieldTypeKindLabel, fieldTypeSchema, fieldValuesEqual, filterChangedPatchFields, findDuplicateIdentifier, findOverlappingProposalIds, findProposalIdsOverlappingTarget, findSearchIndex, findShareScopeConflicts, findTableAccess, findTemplateRefsToRemovedFields, findUnsatisfiablePredicates, formatCanonicalFieldType, formatDateCell, formatDateTimeCell, formatDisplayPreviewText, formatEditorSummaryFieldType, formatErdCompactFieldType, formatEscapeShortcut, formatFilterEqDisplayValue, formatIdShort, formatMatchLabelFieldType, formatModEnterShortcut, formatModShortcut, formatNumericDate, formatPrimitivePreview, formatRecordTableCellText, formatRecordTableQuerySummary, formatShrinkImpactLine, generateApiToken, generateDisplayValuesTs, generateSchemaTs, generateShareToken, generateTenantSecretsKekBase64, guestSearchableScopes, guestVisibleScopes, hasIdentifierCollision, hasSchemaDeployOperationLeaseExpired, hashApiToken, hashShareToken, hostFromForwardedHeader, hostnameFromHostHeader, idListMeta, importStagingId, indexSchema, inferDefaultGuestView, inferIdentifier, inferUniqueIdentifier, isApiProfileSlug, isApiTokenFormat, isBlockNoteContent, isBlockNoteEnvelope, isCiPreviewBuild, isClassifiedKey, isCompleteBetween, isConvexJwt, isEditableKind, isEmptyQuery, isFileArrayFieldType, isFileFieldType, isFormSubmissionScope, isHttpUrl, isImageFieldType, isInlinePrimitive, isJwtExpired, isLoopbackDeployServiceUrl, isManifestDeployStatus, isManifestHash, isMarkdownField, isOperationId, isPlaceholderManagementSiteUrl, isPreviewStudioHost, isPrimaryShareScope, isPrimitiveKind, isProdDeployServiceUrl, isProtectedTransferTable, isRadixOverlayOpen, isRangeOp, isRecoverableDeployError, isReferenceFieldType, isReferenceOnlyScope, isRefsRecomputeInFlight, isReservedTenantSlug, isSchemaDeployPhaseActive, isStaleEndpointDeployError, isStorageFieldType, isSystemField, isTextScalarKind, isTransferId, isTypingInEditor, isValidIdentifier, isValidMarkdownDocJson, isValidPreviewTenantSlug, isValidRichFieldJson, isValidStorageId, isValidTenantSlug, listAccessKindSchema, listMetaOrderSchema, listMetaSchema, listPageKindSchema, listTablesWithRefGraphChanges, looksLikeId, makePredicate, manifestHashSchema, manifestSchema, manifestTablesUseFileStorage, matchColumnsForTable, matchEscape, matchKeyFromColumn, matchModEnter, matchModShiftShortcut, matchModShortcut, matchSave, matchToggleEditMode, matchUndoRedo, matchesBetween, matchesDeployCompletion, maxScanLimitValidator, mergeDraftErdLayoutIntoCanonical, mergeErdLayouts, mergeProposedRecord, mergeQuery, mergeReferenceScopes, mergeStagingPendingEdits, modKeyLabel, newProvisionalRowId, normalizeConvexUrl, normalizeDisplayTemplateBody, normalizeManifestDisplayTemplates, normalizeManifestForShrink, normalizeMarkdownField, normalizeMatchKeyFromCsvRow, normalizeMatchKeyFromValue, normalizePreviewDeployName, normalizeRichField, normalizeShareScopes, opAllowedForType, operationIdSchema, parseClampQuery, parseColumnusClipboard, parseCsvText, parseDateCsv, parseDateInput, parseDateTimeInput, parseDocLinkHref, parseErdLayoutOrEmpty, parseErdLayoutOrThrow, parseGitSha, parseImportPaste, parseQuery, parseQueryJson, parseRecordTableFieldsJson, parseRecordTableQueryJson, parseRichDocBlocks, parseShareTokenEncryptionKey, parseTenantSecretsKek, parseTrustedSiteUrls, patchIsStale, patchMergeImportRow, pickProposalFields, planMergedQuery, planProposalPatches, planQuery, planStudioBoot, postprocessDocLinksInBlocks, predicateOpLabel, predicateOpSchema, predicateSchema, predicateValidator, predicatesEqual, prepareProposalPatchesForAccept, prepareShrinkSave, preprocessDocLinksInBlocks, preprocessDocLinksInMarkdown, previewImportMerge, previewSlugFromHost, primaryTrustedSiteUrl, profileSlugChangeError, promoteErdLayoutOnSave, proposalDiffFieldNames, proposalOverlapsAny, proposeApiExportName, provisionalRowKey, pruneErdLayout, queriesEqual, queryArgValidator, queryErrorCodeSchema, queryHasActiveConstraints, queryOrderSchema, queryPredicateFieldNames, querySchema, querySearchSchema, queryValidator, readApiAnyApiPath, readApiQueryExportName, readApiQueryModuleSegment, readConvexSiteUrlEnv, readTenantSecretsKekFromEnv, reconcileStagingMatchState, redactForLogs, redactString, refFieldsForTable, referencedTargetIds, refsMapToRequests, replaceProvisionalReferences, residualClampPredicates, resolveAuthConfigIssuerFromEnv, resolveBffManagementSiteUrl, resolveConvexSiteUrl, resolveConvexSiteUrlFromEnv, resolveGuestCapabilities, resolveGuestLinkCapabilities, resolveGuestScopeCapabilities, resolveImportMatches, resolvePreloadedLabel, resolvePreviewBranch, resolvePreviewPrId, resolveQueryFieldType, resolveRecordTableVisibleFields, resolveRuntimeDeployServiceUrl, resolveRuntimeManagementSiteUrl, resolveSyncDeployUrl, resolveSyncMembershipOp, revalidateStagingRow, richContentPlainText, runAcceptProposalBatch, safeStringify, sanitizePreviewDeployName, savedTableByName, schemaDeployPhaseSchema, scopesToWizardInput, searchIndexSchema, secretsEqual, serializeColumnusClipboard, serializeCsvValue, serializeDateCsv, serializeDateTimeCsv, serializeErdLayout, setQueryOrder, setQueryOrderDirection, setQueryOrderField, shareScopeAccessMode, shareScopeToTableAccess, shareTokenPrefix, shareTypeDefaultScopes, shouldExpectConvexAuth, shrinkPlanIsEmpty, signInViaEmailOtp, singleHeaderHostValue, slugifyApiProfileName, snapshotBaseFields, sortDocuments, sortableQueryFields, stagingRowToImportRow, stagingRowsToGridRows, storageIdsRemovedByPatches, stringifyQuery, stringifyRecordTableFields, stringifyRecordTableQuery, stringifyRichDoc, stripAnsi, stripSystemFields, suggestIndexFields, summarizePreparedEnvelope, syncClampPredicates, syncEnabledTables, tableAccessToShareScope, tableColorSchema, tableDisplayName, tableSchema, tablesWithOutgoingRefs, takeRangeBound, tenantPublicHost, tenantSlugFromHost, toDocumentId, transferIdSchema, transferOperationSchema, transferSessionRecordSchema, transferSessionStateSchema, truncateDisplay, unionTableNames, uniqueIdentifier, unparseCsv, useDebouncedCommit, useDebouncedValue, useModifierHeld, validateClipboardColumns, validateDataTransferManifest, validateDisplayTemplates, validateFieldValue, validateImportRow, validatePatch, validatePreviewSourceCommit, validateQueryForTable, wrapPlainTextAsRichDoc };
10860
+ export { API_DELIVERY_TABLE_NAME, API_OUTBOX_TABLE_NAME, API_OUTPUTS_TABLE_NAME, API_OUTPUT_SECRETS_TABLE_NAME, API_PROFILES_TABLE_NAME, API_PROFILE_SLUG_RE, API_SYNC_ROUTES_TABLE_NAME, API_TOKENS_TABLE_NAME, API_TOKEN_PREFIX, AUDIT_TABLE_NAME, BFF_JSON_BODY_LIMIT_BYTES, MAX_TRANSFER_BYTES as BFF_TRANSFER_MAX_BYTES, COLUMNUS_BFF_API_PREFIX, COLUMNUS_BFF_MANAGEMENT_PREFIX, COLUMNUS_BFF_MANAGEMENT_SECRET_HEADER, COLUMNUS_BFF_PROTOCOL_VERSION, COLUMNUS_BUNDLE_VERSION, COLUMNUS_CLIPBOARD_MARKER, COLUMNUS_CLIPBOARD_VERSION, COLUMNUS_DATA_TRANSFER_VERSION, COLUMNUS_DEPLOY_INTERNAL_PREFIX, COLUMNUS_DEPLOY_OPS_PREFIX, COLUMNUS_DOC_LINK_MARKER, COLUMNUS_PREVIEW_REGISTRATION_SECRET_HEADER, DEFAULT_MAX_SCAN_LIMIT, DISPLAY_VALUES_TABLE_NAME, EMPTY_BLOCK_ID, EMPTY_MANIFEST, EMPTY_MARKDOWN_DOC, EMPTY_RICH_DOC, FIELD_TYPE_KIND_ICONS, FIELD_TYPE_KIND_LABELS, FIELD_TYPE_SELECT_KINDS, HOST_SCHEMA_PROFILE, INCOMING_REFS_TABLE_NAME, MANIFEST_DEPLOY_STATUSES, MANIFEST_HASH_RE, MANIFEST_TABLE_NAME, MATCH_ERROR_KEY, MAX_TRANSFER_BYTES, OPERATION_ID_RE, OVERLAP_MESSAGE, PREDICATE_OPS, PREDICATE_VARIANTS, PREVIEW_TENANT_SLUG_RE, RECORD_TABLE_DEFAULT_FIELD_COUNT, REDACTED, REFS_RECOMPUTE_STALE_MS, RESERVED_TABLE_NAMES, RESERVED_TENANT_SLUGS, RICH_DOC_FORMAT, RICH_DOC_VERSION, SCHEMA_DEPLOY_OPERATION_LEASE_MS, SHARE_TOKEN_ENCRYPTION_KEY_ENV, SHARE_TOKEN_PREFIX, SHRINK_CLEANUP_PAGE_SIZE, SHRINK_IMPACT_CAP, SPACES_TABLE_NAME, STALE_ENDPOINT_DEPLOY_ERROR, STUDIO_DOC_LINK_MARKER, TABLE_COLORS, TABLE_NAME_RE2 as TABLE_NAME_RE, TENANT_SECRETS_KEK_ENV, TENANT_SECRET_CRYPTO_VERSION, TENANT_SLUG_RE, TRANSFER_ID_RE, addRef, anyTenantSlugFromHost, apiProfileSlugToConvexModuleSegment, apiProfileSnapshotSchema, apiProfileToShareScopes, apiProfilesSchema, apiTableAccessSchema, apiTokenPrefix, applyDisplayIdResolution, applyImportRowIdResolution, assertApiProfileSlug, assertPatchesHaveEditorAccess, assertProfileSlugUnchanged, assertProposalAccess, assertShareLinkTypeConsistency, assertShareOperation, attachBffCleanupIdentity, authConfigIssuerFromProcessEnv, betterAuthTrustedOrigins, betweenToIndexBound, bffActiveOperationMetaSchema, bffErrorCodeSchema, bffErrorResponseSchema, bffHealthResponseSchema, bffPrepareOperationSchema, bffPrepareOperationTypeSchema, bffPrepareRequestSchema, bffPreparedBodyEnvelopeSchema, bffPreparedTenantSchema, bffPreviewRegisterRequestSchema, bffPreviewRemoveRequestSchema, bffSchemaDeployRequestSchema, bffSchemaDeployResponseSchema, bffTransferCommitRequestSchema, bffTransferCommitResponseSchema, bffTransferCreateResponseSchema, bffTransferScopeRequestSchema, bffTransferUploadResponseSchema, blocksForBlockNoteDisplay, briefFieldTypeLabel, buildCleanupTasks, buildCsvRows, buildCsvRowsForColumns, buildImportCommitRows, buildRecordTablePreload, buildRefRequestsFromFieldValues, buildRefRequestsFromTableRows, buildShareWizardInput, buildShrinkImpactPreview, buildSpaceExport, canCreateFormReferences, canProposeInsert, canProposeOperation, canSearchFormReferences, canonicalManifestTablesJson, canonicalRichFieldJson, ciPreviewDeployName, clampQuerySchema, clampQueryValidator, classifyPhase, cleanupStateValidator, coerceCsvValue, collectExportDisplayIdRefs, collectFilterRefIds, collectIdReferenceClosure, collectIdsFromField, collectIdsFromValues, collectImportDisplayIds, collectImportRowDisplayIds, collectMatchDisplayIdRefs, collectQueryRefIds, collectRecordLinkIds, collectRecordLinkIdsFromBlocks, collectReferencedIds, collectReferencedStorageIds, collectRichDocStorageIds, collectStorageIds, collectStorageIdsFromRow, compareOrdered, computeManifestAccessHash, computeManifestHash, computeProposalFieldDiff, computeProposalRecordDiff, computeRefGraphFingerprint, computeShrinkPlan, convexCloudToSiteUrl, convexDeploymentSlugFromUrl, convexSiteToCloudUrl, convexSiteUrlFromProcessEnv, coolifyHostnameFromEnv, createCleanupState, createOperationId, createRandomId, createTransferId, csvHasIdColumn, cycleQueryOrder, dataTransferManifestSchema, dateInputValue, dateTimeInputValue, decryptShareToken, decryptTenantSecret, defaultMatchColumn, defaultProdDeployUrl, defaultRecordTableFieldNames, defaultValueForType, deployHealthResponseSchema, deployInternalSchemaDeployPayloadSchema, deployInternalSchemaDeployResponseSchema, deployInternalTransferCommitPayloadSchema, deployInternalTransferCreateResponseSchema, deployInternalTransferExportPayloadSchema, deployInternalTransferImportPreparePayloadSchema, deriveConvexDeploymentFromCloudUrl, deriveListMeta, derivePreviewDeployBuildUrl, derivePreviewStudioDeployUrl, describeFieldType, discretionaryRecordTableFieldNames, displayTemplatesSchema, docsSeedSyncEmailFromEnv, documentMatchesPredicate, documentMatchesPredicates, documentMatchesSyncClamp, editorAccessEnabled, editorAccessToShareScopes, effectiveQueryFieldType, eligibleReferencedParents, emptyCleanupStats, emptyParagraphBlock, emptyToUndefined, encryptShareToken, encryptTenantSecret, extractError, extractPlainText, extractTrustedHostname, fallbackIdLabel, fallbackPreviewLabel, fieldByName, fieldDisplayName, fieldOpSupport, fieldSchema, fieldSupportsSort, fieldTypeHasOutgoingRefs, fieldTypeKindIconName, fieldTypeKindLabel, fieldTypeSchema, fieldValuesEqual, filterChangedPatchFields, findDuplicateIdentifier, findOverlappingProposalIds, findProposalIdsOverlappingTarget, findSearchIndex, findShareScopeConflicts, findTableAccess, findTemplateRefsToRemovedFields, findUnsatisfiablePredicates, formatCanonicalFieldType, formatDateCell, formatDateTimeCell, formatDisplayPreviewText, formatEditorSummaryFieldType, formatErdCompactFieldType, formatEscapeShortcut, formatFilterEqDisplayValue, formatIdShort, formatMatchLabelFieldType, formatModEnterShortcut, formatModShortcut, formatNumericDate, formatPrimitivePreview, formatRecordTableCellText, formatRecordTableQuerySummary, formatShrinkImpactLine, generateApiToken, generateDisplayValuesTs, generateSchemaTs, generateShareToken, generateTenantSecretsKekBase64, guestSearchableScopes, guestVisibleScopes, hasIdentifierCollision, hasSchemaDeployOperationLeaseExpired, hashApiToken, hashShareToken, hostFromForwardedHeader, hostnameFromHostHeader, idListMeta, importStagingId, indexSchema, inferDefaultGuestView, inferIdentifier, inferUniqueIdentifier, isApiProfileSlug, isApiTokenFormat, isBlockNoteContent, isBlockNoteEnvelope, isCiPreviewBuild, isClassifiedKey, isCompleteBetween, isConvexJwt, isEditableKind, isEmptyQuery, isFileArrayFieldType, isFileFieldType, isFormSubmissionScope, isHttpUrl, isImageFieldType, isInlinePrimitive, isJwtExpired, isLoopbackDeployServiceUrl, isManifestDeployStatus, isManifestHash, isMarkdownField, isOperationId, isPlaceholderManagementSiteUrl, isPreviewStudioHost, isPrimaryShareScope, isPrimitiveKind, isProdDeployServiceUrl, isProtectedTransferTable, isRadixOverlayOpen, isRangeOp, isRecoverableDeployError, isReferenceFieldType, isReferenceOnlyScope, isRefsRecomputeInFlight, isReservedTenantSlug, isSchemaDeployPhaseActive, isStaleEndpointDeployError, isStorageFieldType, isSystemField, isTextScalarKind, isTransferId, isTypingInEditor, isValidIdentifier, isValidMarkdownDocJson, isValidPreviewTenantSlug, isValidRichFieldJson, isValidStorageId, isValidTenantSlug, listAccessKindSchema, listMetaOrderSchema, listMetaSchema, listPageKindSchema, listTablesWithRefGraphChanges, looksLikeId, makePredicate, manifestHashSchema, manifestSchema, manifestTablesUseFileStorage, matchColumnsForTable, matchEscape, matchKeyFromColumn, matchModEnter, matchModShiftShortcut, matchModShortcut, matchSave, matchToggleEditMode, matchUndoRedo, matchesBetween, matchesDeployCompletion, maxScanLimitValidator, mergeDraftErdLayoutIntoCanonical, mergeErdLayouts, mergeProposedRecord, mergeQuery, mergeReferenceScopes, mergeStagingPendingEdits, modKeyLabel, newProvisionalRowId, normalizeConvexUrl, normalizeDisplayTemplateBody, normalizeManifestDisplayTemplates, normalizeManifestForShrink, normalizeMarkdownField, normalizeMatchKeyFromCsvRow, normalizeMatchKeyFromValue, normalizePreviewDeployName, normalizeRichField, normalizeShareScopes, opAllowedForType, operationIdSchema, parseClampQuery, parseColumnusClipboard, parseCsvText, parseDateCsv, parseDateInput, parseDateTimeInput, parseDocLinkHref, parseErdLayoutOrEmpty, parseErdLayoutOrThrow, parseGitSha, parseImportPaste, parseQuery, parseQueryJson, parseRecordTableFieldsJson, parseRecordTableQueryJson, parseRichDocBlocks, parseShareTokenEncryptionKey, parseTenantSecretsKek, parseTrustedSiteUrls, patchIsStale, patchMergeImportRow, pickProposalFields, planMergedQuery, planProposalPatches, planQuery, planStudioBoot, postprocessDocLinksInBlocks, predicateOpLabel, predicateOpSchema, predicateSchema, predicateValidator, predicatesEqual, prepareProposalPatchesForAccept, prepareShrinkSave, preprocessDocLinksInBlocks, preprocessDocLinksInMarkdown, previewImportMerge, previewSlugFromHost, primaryTrustedSiteUrl, profileSlugChangeError, promoteErdLayoutOnSave, proposalDiffFieldNames, proposalOverlapsAny, proposeApiExportName, provisionalRowKey, pruneErdLayout, queriesEqual, queryArgValidator, queryErrorCodeSchema, queryHasActiveConstraints, queryOrderSchema, queryPredicateFieldNames, querySchema, querySearchSchema, queryValidator, readApiAnyApiPath, readApiQueryExportName, readApiQueryModuleSegment, readConvexSiteUrlEnv, readTenantSecretsKekFromEnv, reconcileStagingMatchState, redactForLogs, redactString, refFieldsForTable, referencedTargetIds, refsMapToRequests, replaceProvisionalReferences, residualClampPredicates, resolveAuthConfigIssuerFromEnv, resolveBffManagementSiteUrl, resolveConvexSiteUrl, resolveConvexSiteUrlFromEnv, resolveGuestCapabilities, resolveGuestLinkCapabilities, resolveGuestScopeCapabilities, resolveImportMatches, resolvePreloadedLabel, resolvePreviewBranch, resolvePreviewPrId, resolveQueryFieldType, resolveRecordTableVisibleFields, resolveRuntimeDeployServiceUrl, resolveRuntimeManagementSiteUrl, resolveSyncDeployUrl, resolveSyncMembershipOp, resolveTrustedAuthOrigin, revalidateStagingRow, richContentPlainText, runAcceptProposalBatch, safeStringify, sanitizePreviewDeployName, savedTableByName, schemaDeployPhaseSchema, scopesToWizardInput, searchIndexSchema, secretsEqual, serializeColumnusClipboard, serializeCsvValue, serializeDateCsv, serializeDateTimeCsv, serializeErdLayout, setQueryOrder, setQueryOrderDirection, setQueryOrderField, shareScopeAccessMode, shareScopeToTableAccess, shareTokenPrefix, shareTypeDefaultScopes, shouldExpectConvexAuth, shrinkPlanIsEmpty, signInViaEmailOtp, singleHeaderHostValue, slugifyApiProfileName, snapshotBaseFields, sortDocuments, sortableQueryFields, stagingRowToImportRow, stagingRowsToGridRows, storageIdsRemovedByPatches, stringifyQuery, stringifyRecordTableFields, stringifyRecordTableQuery, stringifyRichDoc, stripAnsi, stripSystemFields, suggestIndexFields, summarizePreparedEnvelope, syncClampPredicates, syncEnabledTables, tableAccessToShareScope, tableColorSchema, tableDisplayName, tableSchema, tablesWithOutgoingRefs, takeRangeBound, tenantPublicHost, tenantSlugFromHost, toDocumentId, transferIdSchema, transferOperationSchema, transferSessionRecordSchema, transferSessionStateSchema, truncateDisplay, unionTableNames, uniqueIdentifier, unparseCsv, useDebouncedCommit, useDebouncedValue, useModifierHeld, validateClipboardColumns, validateDataTransferManifest, validateDisplayTemplates, validateFieldValue, validateImportRow, validatePatch, validatePreviewSourceCommit, validateQueryForTable, wrapPlainTextAsRichDoc };
10871
10861
  //# sourceMappingURL=index.js.map
10872
10862
  //# sourceMappingURL=index.js.map