@dpuse/dpuse-tool-rust-csv-core-parser 1.0.118 → 1.0.119

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/README.md CHANGED
@@ -132,7 +132,7 @@ License data is updated each time `npm run document` is run, using [license-chec
132
132
 
133
133
  | Type | Dependency | Version | License(s) | Document |
134
134
  | :--------- | :---------------------------------------------------------------------------------------------- | :-----: | :---------------------------------- | :--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
135
- | JavaScript | [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.188 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.188-LICENSE.txt) |
135
+ | JavaScript | [@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared) | 1.0.211 | MIT | [LICENSE](licenses/downloads/@dpuse/dpuse-shared@1.0.211-LICENSE.txt) |
136
136
  | JavaScript | [valibot](https://github.com/open-circle/valibot) | 1.5.0 | MIT | [LICENSE](licenses/downloads/valibot@1.5.0-LICENSE.txt) |
137
137
  | Rust | [cfg-if](https://github.com/rust-lang/cfg-if) | 1.0.4 | MIT OR Apache-2.0 | [LICENSE-APACHE](licenses/downloads/cfg-if@1.0.4-LICENSE-APACHE) [LICENSE-MIT](licenses/downloads/cfg-if@1.0.4-LICENSE-MIT) |
138
138
  | Rust | [console_error_panic_hook](https://github.com/rustwasm/console_error_panic_hook) | 0.1.7 | Apache-2.0/MIT | [LICENSE-APACHE](licenses/downloads/console_error_panic_hook@0.1.7-LICENSE-APACHE) [LICENSE-MIT](licenses/downloads/console_error_panic_hook@0.1.7-LICENSE-MIT) |
@@ -166,13 +166,13 @@ The dependency tree below shows how each package in the table above is reached
166
166
 
167
167
  #### JavaScript
168
168
 
169
- - **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.188 — this month: 2026-11-07
170
- - **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — 1 mth ago: 2026-09-09
169
+ - **[@dpuse/dpuse-shared](https://github.com/dpuse/dpuse-shared)** 1.0.211 — this month: 2026-11-11
170
+ - **[valibot](https://github.com/open-circle/valibot)** 1.5.0 — 2 mths ago: 2026-09-09
171
171
 
172
172
  #### Rust
173
173
 
174
174
  - **dpuse-tool-rust-csv-core-parser** 0.1.0 — this project's Rust code, compiled into its WebAssembly
175
- - **[console_error_panic_hook](https://github.com/rustwasm/console_error_panic_hook)** 0.1.7 — 60 mths ago: 2021-10-11 ⚠️
175
+ - **[console_error_panic_hook](https://github.com/rustwasm/console_error_panic_hook)** 0.1.7 — 61 mths ago: 2021-10-11 ⚠️
176
176
  - **[cfg-if](https://github.com/rust-lang/cfg-if)** 1.0.4 — 12 mths ago: 2025-10-15 ⚠️ → latest: 1.0.5 — 1 mth ago: 2026-09-16 ❗
177
177
  - **[wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
178
178
  - **[cfg-if](https://github.com/rust-lang/cfg-if)** 1.0.4 — 12 mths ago: 2025-10-15 ⚠️ → latest: 1.0.5 — 1 mth ago: 2026-09-16 ❗
@@ -180,28 +180,28 @@ The dependency tree below shows how each package in the table above is reached
180
180
  - **[wasm-bindgen-shared](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/shared)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
181
181
  - **[unicode-ident](https://github.com/dtolnay/unicode-ident)** 1.0.24 — 8 mths ago: 2026-02-16 ⚠️ → latest: 1.0.27 — this month: 2026-10-12 ❗
182
182
  - **[csv-core](https://github.com/BurntSushi/rust-csv)** 0.1.13 — 12 mths ago: 2025-10-17 ⚠️
183
- - **[memchr](https://github.com/BurntSushi/memchr)** 2.8.0 — 9 mths ago: 2026-02-06 ⚠️ → latest: 2.8.3 — 3 mths ago: 2026-07-08 ❗
184
- - **[futures](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
185
- - **[futures-channel](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
186
- - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
187
- - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
188
- - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
189
- - **[futures-executor](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
190
- - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
191
- - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
192
- - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
193
- - **[futures-channel](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
194
- - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
195
- - **[futures-io](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
196
- - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
197
- - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
198
- - **[memchr](https://github.com/BurntSushi/memchr)** 2.8.0 — 9 mths ago: 2026-02-06 ⚠️ → latest: 2.8.3 — 3 mths ago: 2026-07-08 ❗
183
+ - **[memchr](https://github.com/BurntSushi/memchr)** 2.8.0 — 9 mths ago: 2026-02-06 ⚠️ → latest: 2.8.3 — 4 mths ago: 2026-07-08 ❗
184
+ - **[futures](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
185
+ - **[futures-channel](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
186
+ - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
187
+ - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
188
+ - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
189
+ - **[futures-executor](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
190
+ - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
191
+ - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
192
+ - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
193
+ - **[futures-channel](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
194
+ - **[futures-core](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
195
+ - **[futures-io](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
196
+ - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
197
+ - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
198
+ - **[memchr](https://github.com/BurntSushi/memchr)** 2.8.0 — 9 mths ago: 2026-02-06 ⚠️ → latest: 2.8.3 — 4 mths ago: 2026-07-08 ❗
199
199
  - **[pin-project-lite](https://github.com/taiki-e/pin-project-lite)** 0.2.17 — 8 mths ago: 2026-02-27 ⚠️
200
200
  - **[slab](https://github.com/tokio-rs/slab)** 0.4.12 — 9 mths ago: 2026-01-31 ⚠️
201
- - **[futures-io](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
202
- - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
203
- - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
204
- - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
201
+ - **[futures-io](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
202
+ - **[futures-sink](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
203
+ - **[futures-task](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
204
+ - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
205
205
  - **[js-sys](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/js-sys)** 0.3.91 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.3.107 — this month: 2026-10-30 ❗
206
206
  - **[once_cell](https://github.com/matklad/once_cell)** 1.21.4 — 7 mths ago: 2026-03-12 ⚠️
207
207
  - **[wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
@@ -214,12 +214,12 @@ The dependency tree below shows how each package in the table above is reached
214
214
  - **[wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
215
215
  - **[wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/futures)** 0.4.64 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.4.80 — this month: 2026-10-30 ❗
216
216
  - **[cfg-if](https://github.com/rust-lang/cfg-if)** 1.0.4 — 12 mths ago: 2025-10-15 ⚠️ → latest: 1.0.5 — 1 mth ago: 2026-09-16 ❗
217
- - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
217
+ - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
218
218
  - **[js-sys](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/js-sys)** 0.3.91 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.3.107 — this month: 2026-10-30 ❗
219
219
  - **[once_cell](https://github.com/matklad/once_cell)** 1.21.4 — 7 mths ago: 2026-03-12 ⚠️
220
220
  - **[wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
221
- - **[wasm-streams](https://github.com/MattiasBuelens/wasm-streams/)** 0.4.2 — 24 mths ago: 2024-10-25 ⚠️ → latest: 0.7.0 — 1 mth ago: 2026-09-14 ❗
222
- - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 2 mths ago: 2026-08-11 ❗
221
+ - **[wasm-streams](https://github.com/MattiasBuelens/wasm-streams/)** 0.4.2 — 24 mths ago: 2024-10-25 ⚠️ → latest: 0.7.1 — this month: 2026-11-08 ❗
222
+ - **[futures-util](https://github.com/rust-lang/futures-rs)** 0.3.32 — 8 mths ago: 2026-02-15 ⚠️ → latest: 0.3.34 — 3 mths ago: 2026-08-11 ❗
223
223
  - **[js-sys](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/js-sys)** 0.3.91 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.3.107 — this month: 2026-10-30 ❗
224
224
  - **[wasm-bindgen](https://github.com/wasm-bindgen/wasm-bindgen)** 0.2.114 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.2.130 — this month: 2026-10-30 ❗
225
225
  - **[wasm-bindgen-futures](https://github.com/wasm-bindgen/wasm-bindgen/tree/master/crates/futures)** 0.4.64 — 8 mths ago: 2026-02-27 ⚠️ → latest: 0.4.80 — this month: 2026-10-30 ❗
@@ -244,9 +244,9 @@ _Note: Sonda's Vite reports currently exclude CSS files, since Vite does not gen
244
244
  |     wasm → ….js | `██░░░░░░░░░░░░░░░░░░` 10.7% · 16.0 kB |
245
245
  |     (bundler output, whitespace & JSON) | `░░░░░░░░░░░░░░░░░░░░` 1.0% · 1.4 kB |
246
246
  | **dist/dpuse-tool-rust-csv-core-parser.es.js** | 30.0 kB · gzip 6.7 kB · 16.7% of the build |
247
- |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `████████████████░░░░` 78.0% · 23.4 kB |
248
- |     src → index.ts | `██░░░░░░░░░░░░░░░░░░` 11.9% · 3.6 kB |
249
- |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 10.0% · 3.0 kB |
247
+ |     @dpuse/dpuse-shared → dist/dpuse-shared.es.js | `████████████████░░░░` 77.9% · 23.4 kB |
248
+ |     src → index.ts | `██░░░░░░░░░░░░░░░░░░` 12.0% · 3.6 kB |
249
+ |     (bundler output, whitespace & JSON) | `██░░░░░░░░░░░░░░░░░░` 10.1% · 3.0 kB |
250
250
 
251
251
  Bars show each row's share of its output file.
252
252
 
@@ -375,7 +375,6 @@ var D = {
375
375
  "previewObject",
376
376
  "queryRecords",
377
377
  "removeRecords",
378
- "retrieveChunks",
379
378
  "retrieveRecords",
380
379
  "upsertRecords"
381
380
  ]), v([
@@ -1299,38 +1298,45 @@ var B = {
1299
1298
  version: "0.1.0"
1300
1299
  }, V = 1e4, H = 1048576, U = { rustBindingsPromise: void 0 }, W = class {
1301
1300
  config = B;
1302
- async parseStream(e, t, n) {
1303
- let { RecordReader: r } = await J();
1301
+ async *parseStream(e, t) {
1302
+ let { RecordReader: n } = await J();
1304
1303
  t.abortSignal.throwIfAborted();
1305
- let i = new r(G(t.valueDelimiterId)), a = K(t.encodingId), o = Math.max(1, Math.floor(t.chunkSize ?? V)), s = e.getReader(), c = () => {
1306
- N(() => void s.cancel(t.abortSignal.reason));
1304
+ let r = new n(G(t.valueDelimiterId)), i = K(t.encodingId), a = Math.max(1, Math.floor(t.chunkSize ?? V)), o = e.getReader(), s = () => {
1305
+ N(() => void o.cancel(t.abortSignal.reason));
1307
1306
  };
1308
- t.abortSignal.addEventListener("abort", c, { once: !0 });
1309
- let l = [], u = async (e) => {
1307
+ t.abortSignal.addEventListener("abort", s, { once: !0 });
1308
+ let c = [];
1309
+ function* l(e) {
1310
1310
  for (let t of q(e)) {
1311
- if (l.push(t), l.length < o) continue;
1312
- let e = l;
1313
- l = [], await n("parsingRecordArray", e);
1311
+ if (c.push(t), c.length < a) continue;
1312
+ let e = c;
1313
+ c = [], yield {
1314
+ records: e,
1315
+ typeId: "parsingRecordArray"
1316
+ };
1314
1317
  }
1315
- };
1318
+ }
1316
1319
  try {
1317
- let e = await s.read();
1320
+ let e = await o.read();
1318
1321
  for (; !e.done;) {
1319
1322
  t.abortSignal.throwIfAborted();
1320
- let n = a == null ? e.value : a.transcode(e.value);
1321
- for (let e = 0; e < n.length; e += H) await u(i.pushChunk(n.subarray(e, e + H)));
1322
- e = await s.read();
1323
+ let n = i == null ? e.value : i.transcode(e.value);
1324
+ for (let e = 0; e < n.length; e += H) yield* l(r.pushChunk(n.subarray(e, e + H)));
1325
+ e = await o.read();
1323
1326
  }
1324
- return t.abortSignal.throwIfAborted(), a != null && await u(i.pushChunk(a.finish())), await u(i.finish()), l.length > 0 && await n("parsingRecordArray", l), {
1325
- byteCount: i.byteCount,
1327
+ return t.abortSignal.throwIfAborted(), i != null && (yield* l(r.pushChunk(i.finish()))), yield* l(r.finish()), c.length > 0 && (yield {
1328
+ records: c,
1329
+ typeId: "parsingRecordArray"
1330
+ }), {
1331
+ byteCount: r.byteCount,
1326
1332
  commentLineCount: 0,
1327
- emptyLineCount: i.emptyLineCount,
1328
- lineCount: i.lineCount,
1329
- nonUniformRecordCount: i.nonUniformRecordCount,
1330
- recordCount: i.recordCount
1333
+ emptyLineCount: r.emptyLineCount,
1334
+ lineCount: r.lineCount,
1335
+ nonUniformRecordCount: r.nonUniformRecordCount,
1336
+ recordCount: r.recordCount
1331
1337
  };
1332
1338
  } finally {
1333
- t.abortSignal.removeEventListener("abort", c), i.free(), s.releaseLock();
1339
+ t.abortSignal.removeEventListener("abort", s), r.free(), o.releaseLock();
1334
1340
  }
1335
1341
  }
1336
1342
  async parseText(e, t) {
@@ -1 +1 @@
1
- {"version":3,"file":"dpuse-tool-rust-csv-core-parser.es.js","names":["parseDelimitedText","ConnectorError","getValueDelimiterCharacter","resolveDecoderId","i","a","e","o","s","n","r","c","u","d","t","p","m","_","v","y","b","S","C","ee","te","re","T","ie","ae","oe","se","ce","le","D","ge","O","k","A","j","P","Fe","Re","Ye","Xe","Ze","Qe","$e","B","config","DEFAULT_CHUNK_SIZE","MAX_SLICE_BYTE_COUNT","state","Tool","loadRustBindings","recordReader","RecordReader","convertDelimiterToByte","options","transcoder","constructUtf8Transcoder","recordsPerChunk","reader","stream","cancelRead","records","emitRecords","record","unpackRecordBatch","batch","fullRecords","chunk","result","bytes","sliceStart","text","delimiter","delimitedText","xxxx","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","error","session","CsvSession","done","rows","value","remainingRows","remainingCount","byte","decoder","encodingId","encoder","valueIndex","valueStart","valueCount","recordValueCounts","index","valueEnd","valueEnds","valueQuoted","module"],"sources":["../node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js","../src/index.ts"],"sourcesContent":["// src/locale/label.ts\nvar e = \"en\", t = [{\n\tid: \"en\",\n\tflag: \"gb\",\n\tlabel: \"English\"\n}, {\n\tid: \"es\",\n\tflag: \"es\",\n\tlabel: \"Español\"\n}];\nfunction n(e) {\n\treturn new Map(Object.entries(e));\n}\nfunction r(e, t, n = \"en\") {\n\tlet r = e.get(t);\n\treturn r === void 0 ? n === t ? void 0 : e.get(n) : r;\n}\n// node_modules/valibot/dist/index.mjs\nvar i = {\n\tlang: void 0,\n\tmessage: void 0,\n\tabortEarly: void 0,\n\tabortPipeEarly: void 0\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction a(e) {\n\treturn e ? {\n\t\tlang: e?.lang ?? void 0,\n\t\tmessage: e?.message,\n\t\tabortEarly: e?.abortEarly ?? void 0,\n\t\tabortPipeEarly: e?.abortPipeEarly ?? void 0\n\t} : i;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction o(e) {\n\tlet t = typeof e;\n\treturn t === \"string\" ? `\"${e}\"` : t === \"number\" || t === \"bigint\" || t === \"boolean\" ? `${e}` : t === \"object\" || t === \"function\" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? \"null\" : t;\n}\nfunction s(e, t, n, r, i) {\n\tlet a = i && \"input\" in i ? i.input : n.value, s = i?.expected ?? e.expects ?? null, c = i?.received ?? /* @__PURE__ */ o(a), l = {\n\t\tkind: e.kind,\n\t\ttype: e.type,\n\t\tinput: a,\n\t\texpected: s,\n\t\treceived: c,\n\t\tmessage: `Invalid ${t}: ${s ? `Expected ${s} but r` : \"R\"}eceived ${c}`,\n\t\trequirement: e.requirement,\n\t\tpath: i?.path,\n\t\tissues: i?.issues,\n\t\tlang: r.lang,\n\t\tabortEarly: r.abortEarly,\n\t\tabortPipeEarly: r.abortPipeEarly\n\t}, u = e.kind === \"schema\", d = i?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? r.message ?? (l.lang, void 0);\n\td !== void 0 && (l.message = typeof d == \"function\" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction c(e, t) {\n\treturn e === t || Number.isNaN(e) && Number.isNaN(t);\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction l(e, t) {\n\treturn Object.prototype.hasOwnProperty.call(e, t) && t !== \"__proto__\" && t !== \"prototype\" && t !== \"constructor\";\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction u(e, t) {\n\tlet n = [...new Set(e)];\n\treturn n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? \"never\";\n}\nfunction d(e) {\n\treturn e[\"~standard\"] = {\n\t\tversion: 1,\n\t\tvendor: \"valibot\",\n\t\tvalidate: (t) => e[\"~run\"]({ value: t }, /* @__PURE__ */ a())\n\t}, e;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction f(e, t) {\n\treturn {\n\t\tkind: \"validation\",\n\t\ttype: \"min_length\",\n\t\treference: f,\n\t\tasync: !1,\n\t\texpects: `>=${e}`,\n\t\trequirement: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.typed && e.value.length < this.requirement && s(this, \"length\", e, t, { received: `${e.value.length}` }), e;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction p(e, t, n) {\n\treturn typeof e.fallback == \"function\" ? e.fallback(t, n) : e.fallback;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction m(e, t, n) {\n\treturn typeof e.default == \"function\" ? e.default(t, n) : e.default;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction h(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: h,\n\t\texpects: \"Array\",\n\t\tasync: !1,\n\t\titem: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (Array.isArray(n)) {\n\t\t\t\te.typed = !0, e.value = [];\n\t\t\t\tfor (let r = 0; r < n.length; r++) {\n\t\t\t\t\tlet i = n[r], a = this.item[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed || (e.typed = !1), e.value.push(a.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction g(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: g,\n\t\texpects: \"boolean\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"boolean\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction _(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: _,\n\t\texpects: /* @__PURE__ */ o(e),\n\t\tasync: !1,\n\t\tliteral: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn /* @__PURE__ */ c(e.value, this.literal) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction v(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: v,\n\t\texpects: `(${e.expects} | null)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped[\"~run\"](e, t);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction y(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: y,\n\t\texpects: \"number\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"number\" && !isNaN(e.value) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction b(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: b,\n\t\texpects: `(${e.expects} | undefined)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped[\"~run\"](e, t);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction x(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: x,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tkey: e,\n\t\tvalue: t,\n\t\tmessage: n,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in n) if (/* @__PURE__ */ l(n, r)) {\n\t\t\t\t\tlet i = n[r], a = this.key[\"~run\"]({ value: r }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlet o = this.value[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\tlet a = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed && o.typed || (e.typed = !1), a.typed && (e.value[a.value] = o.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction S(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: S,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tentries: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in this.entries) {\n\t\t\t\t\tlet i = this.entries[r];\n\t\t\t\t\tif (r in n || (i.type === \"exact_optional\" || i.type === \"optional\" || i.type === \"nullish\") && i.default !== void 0) {\n\t\t\t\t\t\tlet a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i[\"~run\"]({ value: a }, t);\n\t\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\t\tlet i = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: a\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);\n\t\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\to.typed || (e.typed = !1), e.value[r] = o.value;\n\t\t\t\t\t} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);\n\t\t\t\t\telse if (i.type !== \"exact_optional\" && i.type !== \"optional\" && i.type !== \"nullish\" && (s(this, \"key\", e, t, {\n\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\texpected: `\"${r}\"`,\n\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t}]\n\t\t\t\t\t}), t.abortEarly)) break;\n\t\t\t\t}\n\t\t\t\tif (!e.issues || !t.abortEarly) {\n\t\t\t\t\tfor (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {\n\t\t\t\t\t\ts(this, \"key\", e, t, {\n\t\t\t\t\t\t\tinput: r,\n\t\t\t\t\t\t\texpected: \"never\",\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction C(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: C,\n\t\texpects: \"string\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"string\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ee(e) {\n\tlet t;\n\tif (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);\n\telse t = n.issues;\n\treturn t;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction te(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: te,\n\t\texpects: /* @__PURE__ */ u(e.map((e) => e.expects), \"|\"),\n\t\tasync: !1,\n\t\toptions: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n, r, i;\n\t\t\tfor (let a of this.options) {\n\t\t\t\tlet o = a[\"~run\"]({ value: e.value }, t);\n\t\t\t\tif (o.typed) {\n\t\t\t\t\tif (o.issues) r ? r.push(o) : r = [o];\n\t\t\t\t\telse {\n\t\t\t\t\t\tn = o;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else i ? i.push(o) : i = [o];\n\t\t\t}\n\t\t\tif (n) return n;\n\t\t\tif (r) {\n\t\t\t\tif (r.length === 1) return r[0];\n\t\t\t\ts(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(r) }), e.typed = !0;\n\t\t\t} else if (i?.length === 1) return i[0];\n\t\t\telse s(this, \"type\", e, t, { issues: /* @__PURE__ */ ee(i) });\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ne(...e) {\n\treturn d({\n\t\t...e[0],\n\t\tpipe: e,\n\t\t\"~run\"(t, n) {\n\t\t\tfor (let r of e) if (r.kind !== \"metadata\") {\n\t\t\t\tif (t.issues && (r.kind === \"schema\" || r.kind === \"transformation\")) {\n\t\t\t\t\tt.typed = !1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tt.issues && (n.abortEarly || n.abortPipeEarly) || (t = r[\"~run\"](t, n));\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t});\n}\n// src/locale/locale.schema.ts\nvar w = /* @__PURE__ */ S({\n\ten: /* @__PURE__ */ C(),\n\tes: /* @__PURE__ */ C()\n}), re = {\n\tid: /* @__PURE__ */ C(),\n\tlabel: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\tdescription: /* @__PURE__ */ S({\n\t\ten: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\t\tes: /* @__PURE__ */ b(/* @__PURE__ */ C())\n\t}),\n\ticon: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\ticonDark: /* @__PURE__ */ v(/* @__PURE__ */ C())\n}, T = (e) => /* @__PURE__ */ te(e.map((e) => /* @__PURE__ */ _(e))), ie = T([\n\t\"app\",\n\t\"connector\",\n\t\"connectorConnection\",\n\t\"context\",\n\t\"contextArea\",\n\t\"contextModel\",\n\t\"contextModelDimension\",\n\t\"contextModelDimensionHierarchy\",\n\t\"contextModelEntity\",\n\t\"contextModelEntityDataItem\",\n\t\"contextModelEntityEvent\",\n\t\"contextModelEntityPrimaryMeasure\",\n\t\"contextModelSecondaryMeasure\",\n\t\"cookbook\",\n\t\"cookbookRecipe\",\n\t\"dataView\",\n\t\"engine\",\n\t\"eventQuery\",\n\t\"presenter\",\n\t\"presenterPresentation\",\n\t\"tool\"\n]), ae = T([\n\t\"danger\",\n\t\"success\",\n\t\"warning\"\n]), oe = T([\n\t\"alpha\",\n\t\"beta\",\n\t\"releaseCandidate\",\n\t\"generalAvailability\"\n]), se = /* @__PURE__ */ S({\n\tcolor: ae,\n\tlabel: /* @__PURE__ */ C()\n}), ce = {\n\t...re,\n\ttypeId: ie\n}, E = /* @__PURE__ */ S({\n\t...ce,\n\torder: /* @__PURE__ */ y(),\n\tpath: /* @__PURE__ */ C()\n}), le = {\n\t...ce,\n\tfirstCreatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tlastUpdatedAt: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tstatus: /* @__PURE__ */ v(se),\n\tstatusId: /* @__PURE__ */ v(oe)\n}, ue = /* @__PURE__ */ S({ ...le }), de = [\n\t{\n\t\tid: \"alpha\",\n\t\tcolor: \"danger\",\n\t\tlabels: {\n\t\t\ten: \"alpha\",\n\t\t\tes: \"alfa\"\n\t\t}\n\t},\n\t{\n\t\tid: \"beta\",\n\t\tcolor: \"warning\",\n\t\tlabels: {\n\t\t\ten: \"beta\",\n\t\t\tes: \"beta\"\n\t\t}\n\t},\n\t{\n\t\tid: \"releaseCandidate\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"release-candidate\",\n\t\t\tes: \"candidato-de-lanzamiento\"\n\t\t}\n\t},\n\t{\n\t\tid: \"generalAvailability\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"\",\n\t\t\tes: \"\"\n\t\t}\n\t}\n];\nfunction fe(e, t = \"en\") {\n\tlet n = de.find((t) => t.id === e);\n\tif (n) {\n\t\tlet e = n.labels[t] ?? n.labels.en ?? n.id;\n\t\treturn {\n\t\t\tcolor: n.color,\n\t\t\tlabel: e\n\t\t};\n\t}\n\treturn {\n\t\tcolor: \"danger\",\n\t\tlabel: e\n\t};\n}\n// src/component/connection/index.ts\nvar pe = [\",\", \".\"], me = [\n\t{\n\t\tid: \"arrow\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"avro\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"dtv\",\n\t\tisTable: !0,\n\t\tisText: !0,\n\t\tsupportId: \"supported\"\n\t},\n\t{\n\t\tid: \"json\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"jsonl\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"markdown\",\n\t\tisTable: !1,\n\t\tisText: !0,\n\t\tsupportId: \"unsupported\"\n\t},\n\t{\n\t\tid: \"ods\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"parquet\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sav\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sqlite\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xlsx\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xml\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"unsupported\"\n\t}\n], D = [\n\t{\n\t\tid: \",\",\n\t\tcharacter: \",\"\n\t},\n\t{\n\t\tid: \";\",\n\t\tcharacter: \";\"\n\t},\n\t{\n\t\tid: \"\t\",\n\t\tcharacter: \"\t\"\n\t},\n\t{\n\t\tid: \"|\",\n\t\tcharacter: \"|\"\n\t},\n\t{\n\t\tid: \" \",\n\t\tcharacter: \" \"\n\t},\n\t{\n\t\tid: \":\",\n\t\tcharacter: \":\"\n\t},\n\t{\n\t\tid: \"_\",\n\t\tcharacter: \"_\"\n\t},\n\t{\n\t\tid: \"!\",\n\t\tcharacter: \"!\"\n\t},\n\t{\n\t\tid: \"0x1F\",\n\t\tcharacter: \"\u001f\"\n\t},\n\t{\n\t\tid: \"0x1E\",\n\t\tcharacter: \"\u001e\"\n\t}\n], he = [\n\t{\n\t\tid: \"string\",\n\t\tdefaultSubtypeId: \"plain\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"plain\",\n\t\t\t\"email\",\n\t\t\t\"url\",\n\t\t\t\"uuid\",\n\t\t\t\"ulid\",\n\t\t\t\"ipv4\",\n\t\t\t\"ipv6\",\n\t\t\t\"ipRange\",\n\t\t\t\"macAddress\",\n\t\t\t\"iban\",\n\t\t\t\"isbn\",\n\t\t\t\"paymentCard\",\n\t\t\t\"hexColor\",\n\t\t\t\"json\",\n\t\t\t\"countryCode\",\n\t\t\t\"currencyCode\",\n\t\t\t\"languageCode\"\n\t\t]\n\t},\n\t{\n\t\tid: \"numeric\",\n\t\tdefaultSubtypeId: \"integer\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"integer\",\n\t\t\t\"decimal\",\n\t\t\t\"bigint\"\n\t\t]\n\t},\n\t{\n\t\tid: \"temporal\",\n\t\tdefaultSubtypeId: \"dateTime\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"date\",\n\t\t\t\"dateTime\",\n\t\t\t\"time\"\n\t\t]\n\t},\n\t{\n\t\tid: \"boolean\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !0,\n\t\tsubtypeIds: []\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !1,\n\t\tsubtypeIds: []\n\t}\n];\nfunction ge(e) {\n\treturn D.find(({ id: t }) => t === e)?.character ?? e;\n}\nT([\n\t\"app\",\n\t\"engine\",\n\t\"connector\",\n\t\"cookbook\",\n\t\"presenter\",\n\t\"tool\"\n]);\n// src/component/module/moduleConfig.schema.ts\nvar O = {\n\t...le,\n\tvendorAccountURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorDocumentationURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tvendorHomeURL: /* @__PURE__ */ v(/* @__PURE__ */ C()),\n\tversion: /* @__PURE__ */ C()\n};\n({ ...O });\n// src/component/module/connector/connectorConfig.schema.ts\nvar _e = T([\n\t\"abortOperation\",\n\t\"auditObjectContent\",\n\t\"closeStore\",\n\t\"createObject\",\n\t\"describeConnection\",\n\t\"dropObject\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"loadObjectRecords\",\n\t\"openStore\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"removeRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\",\n\t\"upsertRecords\"\n]), ve = T([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), ye = /* @__PURE__ */ S({ label: w }), be = T([\n\t\"apiEndpoint\",\n\t\"file\",\n\t\"table\"\n]), xe = T([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), Se = /* @__PURE__ */ S({ label: w }), Ce = /* @__PURE__ */ S({\n\tauthMethodId: T([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ b(/* @__PURE__ */ y()),\n\tcanDescribe: /* @__PURE__ */ b(/* @__PURE__ */ g()),\n\tid: /* @__PURE__ */ b(/* @__PURE__ */ C()),\n\tlabel: /* @__PURE__ */ b(w),\n\tmaxConnectionCount: /* @__PURE__ */ v(/* @__PURE__ */ y()),\n\tparams: /* @__PURE__ */ b(/* @__PURE__ */ h(/* @__PURE__ */ x(/* @__PURE__ */ C(), /* @__PURE__ */ C())))\n}), we = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"connector\"),\n\tactionNames: /* @__PURE__ */ h(_e),\n\tcategory: /* @__PURE__ */ v(ye),\n\tcategoryId: ve,\n\timplementations: /* @__PURE__ */ x(/* @__PURE__ */ C(), Ce),\n\titemTypeId: be,\n\tusage: /* @__PURE__ */ v(Se),\n\tusageId: /* @__PURE__ */ v(xe)\n}), Te = {\n\tarabic: {\n\t\tid: \"arabic\",\n\t\tlabel: {\n\t\t\ten: \"Arabic\",\n\t\t\tes: \"Árabe\"\n\t\t}\n\t},\n\tarmenian: {\n\t\tid: \"armenian\",\n\t\tlabel: {\n\t\t\ten: \"Armenian\",\n\t\t\tes: \"Armenio\"\n\t\t}\n\t},\n\tbaltic: {\n\t\tid: \"baltic\",\n\t\tlabel: {\n\t\t\ten: \"Baltic\",\n\t\t\tes: \"Báltico\"\n\t\t}\n\t},\n\tceltic: {\n\t\tid: \"celtic\",\n\t\tlabel: {\n\t\t\ten: \"Celtic\",\n\t\t\tes: \"Celta\"\n\t\t}\n\t},\n\tcentralEuropean: {\n\t\tid: \"centralEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Central European\",\n\t\t\tes: \"Centroeuropeo\"\n\t\t}\n\t},\n\tchineseSimplified: {\n\t\tid: \"chineseSimplified\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Simplified\",\n\t\t\tes: \"Chino simplificado\"\n\t\t}\n\t},\n\tchineseTraditional: {\n\t\tid: \"chineseTraditional\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Traditional\",\n\t\t\tes: \"Chino tradicional\"\n\t\t}\n\t},\n\tcyrillic: {\n\t\tid: \"cyrillic\",\n\t\tlabel: {\n\t\t\ten: \"Cyrillic\",\n\t\t\tes: \"Cirílico\"\n\t\t}\n\t},\n\tgeorgian: {\n\t\tid: \"georgian\",\n\t\tlabel: {\n\t\t\ten: \"Georgian\",\n\t\t\tes: \"Georgiano\"\n\t\t}\n\t},\n\tgreek: {\n\t\tid: \"greek\",\n\t\tlabel: {\n\t\t\ten: \"Greek\",\n\t\t\tes: \"Griego\"\n\t\t}\n\t},\n\thebrew: {\n\t\tid: \"hebrew\",\n\t\tlabel: {\n\t\t\ten: \"Hebrew\",\n\t\t\tes: \"Hebreo\"\n\t\t}\n\t},\n\tjapanese: {\n\t\tid: \"japanese\",\n\t\tlabel: {\n\t\t\ten: \"Japanese\",\n\t\t\tes: \"Japonés\"\n\t\t}\n\t},\n\tkorean: {\n\t\tid: \"korean\",\n\t\tlabel: {\n\t\t\ten: \"Korean\",\n\t\t\tes: \"Coreano\"\n\t\t}\n\t},\n\tlao: {\n\t\tid: \"lao\",\n\t\tlabel: {\n\t\t\ten: \"Lao\",\n\t\t\tes: \"Lao\"\n\t\t}\n\t},\n\tnordic: {\n\t\tid: \"nordic\",\n\t\tlabel: {\n\t\t\ten: \"Nordic\",\n\t\t\tes: \"Nórdico\"\n\t\t}\n\t},\n\tsouthEasternEuropean: {\n\t\tid: \"southEasternEuropean\",\n\t\tlabel: {\n\t\t\ten: \"South-Eastern European\",\n\t\t\tes: \"Europeo sudoriental\"\n\t\t}\n\t},\n\tsouthernEuropean: {\n\t\tid: \"southernEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Southern European\",\n\t\t\tes: \"Europeo meridional\"\n\t\t}\n\t},\n\tthai: {\n\t\tid: \"thai\",\n\t\tlabel: {\n\t\t\ten: \"Thai\",\n\t\t\tes: \"Tailandés\"\n\t\t}\n\t},\n\tturkish: {\n\t\tid: \"turkish\",\n\t\tlabel: {\n\t\t\ten: \"Turkish\",\n\t\t\tes: \"Turco\"\n\t\t}\n\t},\n\tunicode: {\n\t\tid: \"unicode\",\n\t\tlabel: {\n\t\t\ten: \"Unicode\",\n\t\t\tes: \"Unicode\"\n\t\t}\n\t},\n\tvietnamese: {\n\t\tid: \"vietnamese\",\n\t\tlabel: {\n\t\t\ten: \"Vietnamese\",\n\t\t\tes: \"Vietnamita\"\n\t\t}\n\t},\n\twestern: {\n\t\tid: \"western\",\n\t\tlabel: {\n\t\t\ten: \"Western\",\n\t\t\tes: \"Occidental\"\n\t\t}\n\t}\n}, Ee = {\n\t\"armscii-8\": {\n\t\tid: \"armscii-8\",\n\t\tgroupId: \"armenian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"armscii8\"\n\t},\n\tascii: {\n\t\tid: \"ascii\",\n\t\tgroupId: null,\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"ascii\"\n\t},\n\tbig5: {\n\t\tid: \"big5\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"big5\",\n\t\ticonvLiteDecoderId: \"big5hkscs\"\n\t},\n\t\"cesu-8\": {\n\t\tid: \"cesu-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cesu8\"\n\t},\n\tcp273: {\n\t\tid: \"cp273\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp424: {\n\t\tid: \"cp424\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp437: {\n\t\tid: \"cp437\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp437\"\n\t},\n\tcp500: {\n\t\tid: \"cp500\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp720: {\n\t\tid: \"cp720\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp720\"\n\t},\n\tcp737: {\n\t\tid: \"cp737\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp737\"\n\t},\n\tcp775: {\n\t\tid: \"cp775\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp775\"\n\t},\n\tcp808: {\n\t\tid: \"cp808\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp808\"\n\t},\n\tcp850: {\n\t\tid: \"cp850\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp850\"\n\t},\n\tcp852: {\n\t\tid: \"cp852\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp852\"\n\t},\n\tcp856: {\n\t\tid: \"cp856\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp856\"\n\t},\n\tcp857: {\n\t\tid: \"cp857\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp857\"\n\t},\n\tcp858: {\n\t\tid: \"cp858\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp858\"\n\t},\n\tcp860: {\n\t\tid: \"cp860\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp860\"\n\t},\n\tcp861: {\n\t\tid: \"cp861\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp861\"\n\t},\n\tcp862: {\n\t\tid: \"cp862\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp862\"\n\t},\n\tcp863: {\n\t\tid: \"cp863\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp863\"\n\t},\n\tcp864: {\n\t\tid: \"cp864\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp864\"\n\t},\n\tcp865: {\n\t\tid: \"cp865\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp865\"\n\t},\n\tcp869: {\n\t\tid: \"cp869\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp869\"\n\t},\n\tcp874: {\n\t\tid: \"cp874\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"windows874\"\n\t},\n\tcp875: {\n\t\tid: \"cp875\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp922: {\n\t\tid: \"cp922\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp922\"\n\t},\n\tcp932: {\n\t\tid: \"cp932\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\tcp936: {\n\t\tid: \"cp936\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp936\"\n\t},\n\tcp949: {\n\t\tid: \"cp949\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tcp950: {\n\t\tid: \"cp950\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp950\"\n\t},\n\tcp1006: {\n\t\tid: \"cp1006\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1026: {\n\t\tid: \"cp1026\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1046: {\n\t\tid: \"cp1046\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1046\"\n\t},\n\tcp1124: {\n\t\tid: \"cp1124\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1124\"\n\t},\n\tcp1125: {\n\t\tid: \"cp1125\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1125\"\n\t},\n\tcp1129: {\n\t\tid: \"cp1129\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1129\"\n\t},\n\tcp1133: {\n\t\tid: \"cp1133\",\n\t\tgroupId: \"lao\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1133\"\n\t},\n\tcp1140: {\n\t\tid: \"cp1140\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1161: {\n\t\tid: \"cp1161\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1161\"\n\t},\n\tcp1162: {\n\t\tid: \"cp1162\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1162\"\n\t},\n\tcp1163: {\n\t\tid: \"cp1163\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1163\"\n\t},\n\tcp1258: {\n\t\tid: \"cp1258\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1258\",\n\t\ticonvLiteDecoderId: \"windows1258\"\n\t},\n\t\"euc-jp\": {\n\t\tid: \"euc-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-jp\",\n\t\ticonvLiteDecoderId: \"eucjp\"\n\t},\n\t\"euc-kr\": {\n\t\tid: \"euc-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tgb18030: {\n\t\tid: \"gb18030\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"gb18030\",\n\t\ticonvLiteDecoderId: \"gb18030\"\n\t},\n\tgbk: {\n\t\tid: \"gbk\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"gbk\",\n\t\ticonvLiteDecoderId: \"gbk\"\n\t},\n\t\"georgian-academy\": {\n\t\tid: \"georgian-academy\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianacademy\"\n\t},\n\t\"georgian-ps\": {\n\t\tid: \"georgian-ps\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianps\"\n\t},\n\t\"hp-roman8\": {\n\t\tid: \"hp-roman8\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"hproman8\"\n\t},\n\t\"hz-gb-2312\": {\n\t\tid: \"hz-gb-2312\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tibm855: {\n\t\tid: \"ibm855\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp855\"\n\t},\n\tibm866: {\n\t\tid: \"ibm866\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"ibm866\",\n\t\ticonvLiteDecoderId: \"cp866\"\n\t},\n\t\"iso-2022-jp\": {\n\t\tid: \"iso-2022-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-2022-jp\",\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-2022-kr\": {\n\t\tid: \"iso-2022-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-8859-1\": {\n\t\tid: \"iso-8859-1\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"iso88591\"\n\t},\n\t\"iso-8859-2\": {\n\t\tid: \"iso-8859-2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-2\",\n\t\ticonvLiteDecoderId: \"iso88592\"\n\t},\n\t\"iso-8859-5\": {\n\t\tid: \"iso-8859-5\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-5\",\n\t\ticonvLiteDecoderId: \"iso88595\"\n\t},\n\t\"iso-8859-6\": {\n\t\tid: \"iso-8859-6\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-6\",\n\t\ticonvLiteDecoderId: \"iso88596\"\n\t},\n\t\"iso-8859-7\": {\n\t\tid: \"iso-8859-7\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-7\",\n\t\ticonvLiteDecoderId: \"iso88597\"\n\t},\n\t\"iso-8859-8\": {\n\t\tid: \"iso-8859-8\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-8-i\",\n\t\ticonvLiteDecoderId: \"iso88598\"\n\t},\n\t\"iso-8859-9\": {\n\t\tid: \"iso-8859-9\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"iso88599\"\n\t},\n\t\"iso-8859-11\": {\n\t\tid: \"iso-8859-11\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"iso885911\"\n\t},\n\t\"iso-8859-13\": {\n\t\tid: \"iso-8859-13\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-13\",\n\t\ticonvLiteDecoderId: \"iso885913\"\n\t},\n\t\"iso646-cn\": {\n\t\tid: \"iso646-cn\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646cn\"\n\t},\n\t\"iso646-jp\": {\n\t\tid: \"iso646-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646jp\"\n\t},\n\tiso2022_jp_2004: {\n\t\tid: \"iso2022_jp_2004\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tiso2022_jp_ext: {\n\t\tid: \"iso2022_jp_ext\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso8859-3\": {\n\t\tid: \"iso8859-3\",\n\t\tgroupId: \"southernEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-3\",\n\t\ticonvLiteDecoderId: \"iso88593\"\n\t},\n\t\"iso8859-4\": {\n\t\tid: \"iso8859-4\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-4\",\n\t\ticonvLiteDecoderId: \"iso88594\"\n\t},\n\t\"iso8859-10\": {\n\t\tid: \"iso8859-10\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-10\",\n\t\ticonvLiteDecoderId: \"iso885910\"\n\t},\n\t\"iso8859-14\": {\n\t\tid: \"iso8859-14\",\n\t\tgroupId: \"celtic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-14\",\n\t\ticonvLiteDecoderId: \"iso885914\"\n\t},\n\t\"iso8859-15\": {\n\t\tid: \"iso8859-15\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-15\",\n\t\ticonvLiteDecoderId: \"iso885915\"\n\t},\n\t\"iso8859-16\": {\n\t\tid: \"iso8859-16\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-16\",\n\t\ticonvLiteDecoderId: \"iso885916\"\n\t},\n\tjohab: {\n\t\tid: \"johab\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"koi8-r\": {\n\t\tid: \"koi8-r\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-r\",\n\t\ticonvLiteDecoderId: \"koi8r\"\n\t},\n\t\"koi8-ru\": {\n\t\tid: \"koi8-ru\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8ru\"\n\t},\n\t\"koi8-t\": {\n\t\tid: \"koi8-t\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"koi8t\"\n\t},\n\t\"koi8-u\": {\n\t\tid: \"koi8-u\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8u\"\n\t},\n\tkz1048: {\n\t\tid: \"kz1048\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"rk1048\"\n\t},\n\tmaccroatian: {\n\t\tid: \"maccroatian\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccroatian\"\n\t},\n\tmaccyrillic: {\n\t\tid: \"maccyrillic\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"x-mac-cyrillic\",\n\t\ticonvLiteDecoderId: \"maccyrillic\"\n\t},\n\tmacgreek: {\n\t\tid: \"macgreek\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macgreek\"\n\t},\n\tmaciceland: {\n\t\tid: \"maciceland\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maciceland\"\n\t},\n\tmaclatin2: {\n\t\tid: \"maclatin2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccenteuro\"\n\t},\n\tmacroman: {\n\t\tid: \"macroman\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"macintosh\",\n\t\ticonvLiteDecoderId: \"macroman\"\n\t},\n\tmacromania: {\n\t\tid: \"macromania\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macromania\"\n\t},\n\tmacthai: {\n\t\tid: \"macthai\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macthai\"\n\t},\n\tmacturkish: {\n\t\tid: \"macturkish\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macturkish\"\n\t},\n\tmacukraine: {\n\t\tid: \"macukraine\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macukraine\"\n\t},\n\tmik: {\n\t\tid: \"mik\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"mik\"\n\t},\n\tptcp154: {\n\t\tid: \"ptcp154\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"pt154\"\n\t},\n\tshift_jis: {\n\t\tid: \"shift_jis\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\ttcvn: {\n\t\tid: \"tcvn\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"tcvn\"\n\t},\n\t\"tis-620\": {\n\t\tid: \"tis-620\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"tis620\"\n\t},\n\t\"utf-7\": {\n\t\tid: \"utf-7\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf7\"\n\t},\n\t\"utf-8\": {\n\t\tid: \"utf-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-8-sig\": {\n\t\tid: \"utf-8-sig\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-16\": {\n\t\tid: \"utf-16\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf16\"\n\t},\n\t\"utf-16-be\": {\n\t\tid: \"utf-16-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16be\",\n\t\ticonvLiteDecoderId: \"utf16be\"\n\t},\n\t\"utf-16-le\": {\n\t\tid: \"utf-16-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16le\",\n\t\ticonvLiteDecoderId: \"utf16le\"\n\t},\n\t\"utf-32\": {\n\t\tid: \"utf-32\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32\"\n\t},\n\t\"utf-32-be\": {\n\t\tid: \"utf-32-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32be\"\n\t},\n\t\"utf-32-le\": {\n\t\tid: \"utf-32-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32le\"\n\t},\n\tviscii: {\n\t\tid: \"viscii\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"viscii\"\n\t},\n\t\"windows-1250\": {\n\t\tid: \"windows-1250\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1250\",\n\t\ticonvLiteDecoderId: \"windows1250\"\n\t},\n\t\"windows-1251\": {\n\t\tid: \"windows-1251\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1251\",\n\t\ticonvLiteDecoderId: \"windows1251\"\n\t},\n\t\"windows-1252\": {\n\t\tid: \"windows-1252\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"windows1252\"\n\t},\n\t\"windows-1253\": {\n\t\tid: \"windows-1253\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1253\",\n\t\ticonvLiteDecoderId: \"windows1253\"\n\t},\n\t\"windows-1254\": {\n\t\tid: \"windows-1254\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"windows1254\"\n\t},\n\t\"windows-1255\": {\n\t\tid: \"windows-1255\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1255\",\n\t\ticonvLiteDecoderId: \"windows1255\"\n\t},\n\t\"windows-1256\": {\n\t\tid: \"windows-1256\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1256\",\n\t\ticonvLiteDecoderId: \"windows1256\"\n\t},\n\t\"windows-1257\": {\n\t\tid: \"windows-1257\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1257\",\n\t\ticonvLiteDecoderId: \"windows1257\"\n\t}\n}, De = Te, k = Ee;\nfunction A(e) {\n\treturn Object.hasOwn(k, e);\n}\nfunction j(e) {\n\treturn A(e) ? k[e].textDecoderId ?? e : e;\n}\nfunction Oe(e = \"en\") {\n\treturn Array.from(Object.values(k), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {\n\t\tlet o = t == null ? \"\" : ke(t, e);\n\t\treturn {\n\t\t\tid: r,\n\t\t\tgroupLabel: o,\n\t\t\tlabel: o ? `${o} (${r})` : r,\n\t\t\tisDetectable: i,\n\t\t\tisDecodable: a != null,\n\t\t\ttextDecoderId: a,\n\t\t\ticonvLiteDecoderId: n\n\t\t};\n\t}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));\n}\nfunction ke(e, t) {\n\tlet n = De[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n// src/errors/index.ts\nvar M = 2048, N = \"[REDACTED]\", Ae = 10, je = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Me = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => je.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => N],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => N],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => N]\n], P = class extends Error {\n\tdata;\n\tlocator;\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, r), this.name = \"DPUseError\", this.data = n, this.locator = t;\n\t}\n}, F = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, Ne = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, Pe = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, Fe = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, I = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function Ie(e, t, n) {\n\tlet r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : \"\"}' received.`, a;\n\ttry {\n\t\ta = await e.text();\n\t} catch (e) {\n\t\ta = `<body unavailable: ${L(e).message}>`;\n\t}\n\treturn new I(i, n, { body: We(a) });\n}\nfunction Le(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction Re(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction L(e) {\n\tif (e instanceof Error) return e;\n\tif (typeof e == \"string\") return Error(e);\n\tif (typeof e == \"number\" || typeof e == \"boolean\" || typeof e == \"bigint\") return Error(String(e));\n\tif (typeof e == \"symbol\") return Error(e.description ?? \"Unknown error\");\n\tif (typeof e == \"object\") try {\n\t\treturn Error(JSON.stringify(e));\n\t} catch {\n\t\treturn /* @__PURE__ */ Error(\"Unknown error\");\n\t}\n\treturn /* @__PURE__ */ Error(\"Unknown error\");\n}\nfunction ze(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = L(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Ge(r), a = Ue(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Be(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = He(n, t);\n\t\tn.stack !== void 0 && (e.stack = n.stack), t = e;\n\t}\n\treturn t ?? /* @__PURE__ */ Error(\"No error to unserialise.\");\n}\nfunction Ve(e) {\n\tlet t;\n\ttry {\n\t\tt = JSON.stringify(e);\n\t} catch {\n\t\tt = typeof e == \"symbol\" ? e.description ?? \"Unknown error\" : typeof e == \"bigint\" ? e.toString() : \"Unknown error\";\n\t}\n\treturn t === \"\" && (t = \"Unknown error\"), t;\n}\nfunction He(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new Ne(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new F(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new Fe(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new Pe(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new I(e.message, e.locator, e.data, { cause: t });\n\t\tdefault: {\n\t\t\tlet n = e.name;\n\t\t\treturn new class extends Error {\n\t\t\t\tname = n;\n\t\t\t}(e.message, { cause: t });\n\t\t}\n\t}\n}\nfunction Ue(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : z(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: R(n),\n\t\tstack: r === void 0 ? void 0 : R(r)\n\t};\n}\nfunction R(e) {\n\tlet t = e;\n\tfor (let [e, n] of Me) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction z(e, t, n) {\n\treturn typeof e == \"string\" ? R(e) : typeof e != \"object\" || !e ? e : n >= Ae ? N : t.has(e) ? \"[Circular]\" : (t.add(e), Array.isArray(e) ? e.map((e) => z(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && je.test(e) ? N : z(r, t, n + 1)])));\n}\nfunction We(e) {\n\tif (e != null && e !== \"\") return e.length > M ? `${e.slice(0, M)}... [truncated]` : e;\n}\nfunction Ge(e) {\n\tlet t = e.cause == null ? null : L(e.cause);\n\tif (e instanceof P) return [{\n\t\tdata: e.data,\n\t\tlocator: e.locator,\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t];\n\tlet n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== \"cause\"));\n\treturn e.name ? [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t] : [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: Ve(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\nvar Ke = /* @__PURE__ */ S({ dataFormatIds: /* @__PURE__ */ ne(/* @__PURE__ */ h(T([\n\t\"arrow\",\n\t\"avro\",\n\t\"dtv\",\n\t\"json\",\n\t\"jsonl\",\n\t\"markdown\",\n\t\"ods\",\n\t\"parquet\",\n\t\"sav\",\n\t\"sqlite\",\n\t\"xlsx\",\n\t\"xml\"\n])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ C()), Je = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"tool\"),\n\tactionNames: /* @__PURE__ */ b(qe),\n\tparser: /* @__PURE__ */ b(Ke)\n});\n// src/component/module/tool/delimitedText.ts\nasync function Ye(e, t, n) {\n\tlet r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);\n\treturn {\n\t\tissues: i,\n\t\tparsedRecords: a,\n\t\trecordDelimiterId: r,\n\t\tvalueDelimiterId: o\n\t};\n}\nfunction Xe(e) {\n\tlet t = (e.match(/\\r\\n/g) ?? []).length, n = (e.match(/(?<!\\r)\\n/g) ?? []).length, r = (e.match(/\\r(?!\\n)/g) ?? []).length;\n\treturn t >= n && t >= r ? \"\\r\\n\" : n >= t && n >= r ? \"\\n\" : r >= t && r >= n ? \"\\r\" : \"\\n\";\n}\nasync function Ze(e, t, n, r) {\n\tlet i, a, o, s = [], c, l = !1;\n\tfor (let u of t) {\n\t\tlet { issues: t, records: d } = await r(e, u, n);\n\t\tif (t.length > 0) {\n\t\t\tc = Qe(c, {\n\t\t\t\tdelimiter: u,\n\t\t\t\tissues: t,\n\t\t\t\trecords: d\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (l = !0, d.length === 0) continue;\n\t\tlet { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);\n\t\t(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);\n\t}\n\tif (!l && c != null) {\n\t\tlet { delimiter: e, issues: t, records: n } = c;\n\t\treturn {\n\t\t\tissues: t,\n\t\t\tparsedRecords: n,\n\t\t\tvalueDelimiterId: B(n) ? e : void 0\n\t\t};\n\t}\n\treturn {\n\t\tissues: [],\n\t\tparsedRecords: s,\n\t\tvalueDelimiterId: i != null && B(s) ? i : void 0\n\t};\n}\nfunction Qe(e, t) {\n\treturn e == null || t.issues.length < e.issues.length ? t : e;\n}\nfunction $e(e) {\n\tlet t = 0, n = 0, r;\n\tfor (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;\n\treturn {\n\t\taverageValueCount: t / e.length,\n\t\tsumOfValueCountDiffs: n\n\t};\n}\nfunction B(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);\n\tlet [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];\n\treturn n > 1 && r * 2 > e.length;\n}\n// src/component/module/tool/index.ts\nvar et = \"https://engine-eu.dpuse.app/tools\", tt = { dtv: \"dpuse-tool-rust-csv-core-parser\" }, V = \"dpuse-tool-\";\nfunction H(e, t) {\n\treturn e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, \"en\"));\n}\nfunction U(e, t, n) {\n\tlet r = H(e, t), [i] = r;\n\tif (i === void 0) {\n\t\tlet n = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\tdataFormatId: t\n\t\t};\n\t\tthrow new F(`No tool reads the '${t}' data format.`, \"dpuse-shared.component.module.tool.resolveParserToolConfig\", n);\n\t}\n\tlet a = tt[t];\n\treturn r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;\n}\nasync function W(e, t) {\n\tlet n = `${V}${t}`, r = e.find((e) => e.id === n);\n\tif (!r) {\n\t\tlet r = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\ttoolName: n\n\t\t};\n\t\tthrow new F(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${et}/${t}_v${r.version}/${n}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ti\n))).Tool();\n\t} catch (e) {\n\t\tlet t = {\n\t\t\ttoolName: n,\n\t\t\turl: i,\n\t\t\tversion: r.version\n\t\t};\n\t\tthrow new F(`Failed to load tool '${n}' v${r.version}.`, \"dpuse-shared.component.module.tool.loadTool\", t, { cause: e });\n\t}\n}\n// src/component/module/connector/objectParsing.ts\nvar nt = \"\\n\", G = \",\", rt = 13, K = 10, it = 34, q = 1048576;\nasync function at(e) {\n\tlet { asAt: t, filePreview: n, inferDataTypes: r, parserId: i, startedAt: a, toolConfigs: o, valueDelimiterId: s } = e, { dataFormatId: c, text: l } = n, u = n.bytes.length;\n\tif (u === 0) return {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: !0,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: [{\n\t\t\t\tid: \"empty\",\n\t\t\t\tlineNumber: void 0,\n\t\t\t\tmessage: \"The file is empty.\",\n\t\t\t\tseverityId: \"info\"\n\t\t\t}],\n\t\t\tparsedRecords: [],\n\t\t\tsize: 0,\n\t\t\ttext: void 0\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: \"dtv\",\n\t\t\tencodingConfidenceLevel: void 0,\n\t\t\tencodingId: void 0,\n\t\t\tfileType: void 0,\n\t\t\thasHeaders: !1,\n\t\t\trecordDelimiterId: nt,\n\t\t\tvalueDelimiterId: G\n\t\t}\n\t};\n\tif (c == null || l == null || H(o, c).length === 0) return {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: 0,\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: [],\n\t\t\tparsedRecords: [],\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: c ?? \"unknown\",\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: void 0,\n\t\t\trecordDelimiterId: void 0,\n\t\t\tvalueDelimiterId: void 0\n\t\t}\n\t};\n\tlet { parser: d, parserId: f } = await Y(o, c, i), p = s == null ? D.map(({ id: e }) => e) : [s], m = await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: p\n\t}), h = c === \"dtv\", g = h && s == null && m.valueDelimiterId == null ? await d.parseText(l, {\n\t\tdataFormatId: c,\n\t\tisComplete: n.isComplete,\n\t\tvalueDelimiterIds: [G]\n\t}) : m, _ = r(g.parsedRecords);\n\treturn {\n\t\tcontentAuditConfig: J({\n\t\t\tasAt: t,\n\t\t\tcolumns: _.columnConfigs,\n\t\t\tisComplete: n.isComplete,\n\t\t\trecordCount: Math.max(0, g.parsedRecords.length - +!!_.hasHeaders),\n\t\t\tsize: u,\n\t\t\tstartedAt: a\n\t\t}),\n\t\tsampleConfig: {\n\t\t\tissues: g.issues,\n\t\t\tparsedRecords: g.parsedRecords,\n\t\t\tsize: u,\n\t\t\ttext: l\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: c,\n\t\t\tencodingConfidenceLevel: n.encodingConfidenceLevel,\n\t\t\tencodingId: n.encodingId,\n\t\t\tfileType: n.fileTypeConfig,\n\t\t\thasHeaders: _.hasHeaders,\n\t\t\tparserId: f,\n\t\t\trecordDelimiterId: g.recordDelimiterId,\n\t\t\tvalueDelimiterId: h ? s ?? g.valueDelimiterId ?? G : g.valueDelimiterId\n\t\t}\n\t};\n}\nasync function ot(e) {\n\tlet { chunk: t, options: n, signal: r, stream: i, toolConfigs: a } = e, { parser: o } = await Y(a, n.dataFormatId, n.parserId);\n\treturn await o.parseStream(i, {\n\t\tabortSignal: r,\n\t\tchunkSize: n.chunkSize,\n\t\tdataFormatId: n.dataFormatId,\n\t\tencodingId: n.encodingId,\n\t\tvalueDelimiterId: n.valueDelimiterId\n\t}, t);\n}\nasync function st(e) {\n\tlet { constructColumnAuditor: t, onProgress: n, options: r, signal: i, stream: a, toolConfigs: o } = e, s = Date.now(), c = performance.now(), l = t(r.hasHeaders), { parser: u } = await Y(o, r.dataFormatId, r.parserId), d = ut(a), f = ct(d.stream, r), p = await u.parseStream(f.stream, {\n\t\tabortSignal: i,\n\t\tchunkSize: r.chunkSize,\n\t\tdataFormatId: r.dataFormatId,\n\t\tencodingId: r.encodingId,\n\t\tvalueDelimiterId: r.valueDelimiterId\n\t}, (e, t) => {\n\t\tl.auditRecords(t), n(t.length, f.byteCount());\n\t}), { columnConfigs: m, hasHeaders: h } = l.completeAudit();\n\treturn {\n\t\tcontentAuditConfig: {\n\t\t\tasAt: s,\n\t\t\tbyteCount: f.byteCount(),\n\t\t\tcolumns: m,\n\t\t\tcommentLineCount: p.commentLineCount,\n\t\t\tduration: performance.now() - c,\n\t\t\temptyLineCount: p.emptyLineCount,\n\t\t\tinvalidFieldLengthCount: p.nonUniformRecordCount,\n\t\t\tisComplete: f.isComplete(),\n\t\t\tlineCount: p.lineCount,\n\t\t\trecordCount: Math.max(0, p.recordCount - +!!h),\n\t\t\tsourceWaitDuration: d.waitDuration()\n\t\t},\n\t\thasHeaders: h\n\t};\n}\nfunction J(e) {\n\tlet { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;\n\treturn {\n\t\tasAt: t,\n\t\tbyteCount: a,\n\t\tcolumns: n,\n\t\tcommentLineCount: void 0,\n\t\tduration: performance.now() - o,\n\t\temptyLineCount: void 0,\n\t\tinvalidFieldLengthCount: void 0,\n\t\tisComplete: r,\n\t\tlineCount: void 0,\n\t\trecordCount: i,\n\t\tsourceWaitDuration: void 0\n\t};\n}\nfunction ct(e, t) {\n\tlet n = e.getReader(), r = lt(t.encodingId), i = 0, a = !1, o;\n\treturn {\n\t\tbyteCount: () => i,\n\t\tisComplete: () => a,\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet s = o;\n\t\t\t\tif (s == null) {\n\t\t\t\t\tlet t = await n.read();\n\t\t\t\t\tif (t.done) {\n\t\t\t\t\t\ta = !0, e.close();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ts = t.value;\n\t\t\t\t}\n\t\t\t\tlet c = s.subarray(0, q);\n\t\t\t\to = s.length > q ? s.subarray(q) : void 0;\n\t\t\t\tlet l = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, u = r(c, i, l - i);\n\t\t\t\tu == null ? (i += c.length, e.enqueue(c)) : (i += u, o = void 0, e.enqueue(c.subarray(0, u)), e.close(), await n.cancel());\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn n.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 })\n\t};\n}\nfunction lt(e) {\n\tlet t = j(e), n = t.startsWith(\"utf-16\"), r = n ? 2 : 1, i = +(t === \"utf-16be\"), a = !1;\n\treturn (e, t, o) => {\n\t\tfor (let s = 0; s < e.length; s++) {\n\t\t\tlet c = e[s];\n\t\t\tif ((c === it || c === K || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {\n\t\t\t\tif (c === it) a = !a;\n\t\t\t\telse if (!a && s >= o && (c === K || e[s + r] !== K)) return s + r - i;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction ut(e) {\n\tlet t = e.getReader(), n = 0;\n\treturn {\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet r = performance.now(), i = await t.read();\n\t\t\t\tn += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn t.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 }),\n\t\twaitDuration: () => n\n\t};\n}\nasync function Y(e, t, n) {\n\tlet r = U(e, t, n);\n\treturn {\n\t\tparser: await W(e, r.id.slice(V.length)),\n\t\tparserId: r.id\n\t};\n}\n// src/component/module/connector/index.ts\nvar dt = [\n\t{\n\t\tid: \"application\",\n\t\tlabel: {\n\t\t\ten: \"Application\",\n\t\t\tes: \"Aplicación\"\n\t\t}\n\t},\n\t{\n\t\tid: \"curatedDataset\",\n\t\tlabel: {\n\t\t\ten: \"Curated Dataset\",\n\t\t\tes: \"Conjunto de Datos Curado\"\n\t\t}\n\t},\n\t{\n\t\tid: \"database\",\n\t\tlabel: {\n\t\t\ten: \"Database\",\n\t\t\tes: \"Base de Datos\"\n\t\t}\n\t},\n\t{\n\t\tid: \"fileStore\",\n\t\tlabel: {\n\t\t\ten: \"File Store\",\n\t\t\tes: \"Almacén de Archivos\"\n\t\t}\n\t}\n], ft = [\n\t{\n\t\tid: \"apiEndpoint\",\n\t\tlabel: {\n\t\t\ten: \"API Endpoint\",\n\t\t\tes: \"Endpoint de API\"\n\t\t}\n\t},\n\t{\n\t\tid: \"file\",\n\t\tlabel: {\n\t\t\ten: \"File\",\n\t\t\tes: \"Archivo\"\n\t\t}\n\t},\n\t{\n\t\tid: \"table\",\n\t\tlabel: {\n\t\t\ten: \"Table\",\n\t\t\tes: \"Tabla\"\n\t\t}\n\t}\n], pt = {\n\tabortOperation: \"Abort Operation\",\n\tauditObjectContent: \"Audit Object Content\",\n\tcloseStore: \"Close Store\",\n\tcreateObject: \"Create Object\",\n\tdescribeConnection: \"Describe Connection\",\n\tdropObject: \"Drop Object\",\n\tfindObject: \"Find Object\",\n\tgetInfo: \"Get Info\",\n\tgetReadableStream: \"Get Readable Stream\",\n\tgetRecord: \"Get Record\",\n\tlistNodes: \"List Nodes\",\n\tloadObjectRecords: \"Load Object Records\",\n\topenStore: \"Open Store\",\n\tpreviewObject: \"Preview Object\",\n\tqueryRecords: \"Query Records\",\n\tremoveRecords: \"Remove Records\",\n\tretrieveChunks: \"Retrieve Chunks\",\n\tretrieveRecords: \"Retrieve Records\",\n\tupsertRecords: \"Upsert Records\"\n}, mt = [\n\t{\n\t\tid: \"bidirectional\",\n\t\tlabel: {\n\t\t\ten: \"Bidirectional\",\n\t\t\tes: \"Bidireccional\"\n\t\t}\n\t},\n\t{\n\t\tid: \"destination\",\n\t\tlabel: {\n\t\t\ten: \"Destination\",\n\t\t\tes: \"Destino\"\n\t\t}\n\t},\n\t{\n\t\tid: \"source\",\n\t\tlabel: {\n\t\t\ten: \"Source\",\n\t\t\tes: \"Origen\"\n\t\t}\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tlabel: {\n\t\t\ten: \"Unknown\",\n\t\t\tes: \"Desconocido\"\n\t\t}\n\t}\n], ht = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"loadObjectRecords\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), gt = /* @__PURE__ */ new Set([\n\t\"auditObjectContent\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"retrieveChunks\",\n\t\"retrieveRecords\"\n]);\nfunction _t(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) gt.has(r) && (t = !0), ht.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar vt = (e, t = \"en\") => {\n\tlet i = dt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, yt = (e, t = \"en\") => {\n\tlet i = ft.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, bt = (e, t = \"en\") => {\n\tlet i = mt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n};\nfunction xt(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(pt)) n += `| ${pt[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n// src/component/module/cookbook/cookbookConfig.schema.ts\nvar St = T([\"list\"]), Ct = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ h(St),\n\trecipes: /* @__PURE__ */ h(E)\n}), wt = T([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), Tt = /* @__PURE__ */ S({\n\t...O,\n\ttypeId: /* @__PURE__ */ _(\"presenter\"),\n\tactionNames: /* @__PURE__ */ h(wt),\n\tpresentations: /* @__PURE__ */ h(E)\n}), Et = \"https://engine-eu.dpuse.app/presenters\";\nasync function Dt(e, t, n, r) {\n\tlet i = e.id, a = `${Et}/${i.split(\"-\").slice(2).join(\"-\")}_v${e.version}/${i}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ta\n))).Presenter(t, n, r);\n\t} catch (t) {\n\t\tlet n = {\n\t\t\tpresenterName: i,\n\t\t\turl: a,\n\t\t\tversion: e.version\n\t\t};\n\t\tthrow new F(`Failed to load presenter '${i}' v${e.version}.`, \"dpuse-shared.component.module.presenter.loadPresenter\", n, { cause: t });\n\t}\n}\n// src/locale/index.ts\nfunction Ot(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t};\n}\nfunction kt(e, t, n = !1) {\n\tlet r = e.map((e) => ({\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t}));\n\treturn n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;\n}\nfunction At(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\"\n\t};\n}\n// src/utilities/index.ts\nvar jt = /* @__PURE__ */ new Map([\n\t[\"arrow\", \"application/vnd.apache.arrow.file\"],\n\t[\"avro\", \"application/vnd.apache.avro\"],\n\t[\"bin\", \"application/octet-stream\"],\n\t[\"cfb\", \"application/x-cfb\"],\n\t[\"csv\", \"text/csv\"],\n\t[\"dat\", \"application/octet-stream\"],\n\t[\"json\", \"application/json\"],\n\t[\"jsonl\", \"application/jsonl\"],\n\t[\"md\", \"text/markdown\"],\n\t[\"ods\", \"application/vnd.oasis.opendocument.spreadsheet\"],\n\t[\"parquet\", \"application/vnd.apache.parquet\"],\n\t[\"sav\", \"application/x-spss-sav\"],\n\t[\"sqlite\", \"application/vnd.sqlite3\"],\n\t[\"tab\", \"text/tab-separated-values\"],\n\t[\"tsv\", \"text/tab-separated-values\"],\n\t[\"txt\", \"text/plain\"],\n\t[\"xls\", \"application/vnd.ms-excel\"],\n\t[\"xlsm\", \"application/vnd.ms-excel.sheet.macroEnabled.12\"],\n\t[\"xlsx\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"],\n\t[\"xml\", \"application/xml\"]\n]), X = \"en\", Z = [\n\t[\"day\", 864e5],\n\t[\"hour\", 36e5],\n\t[\"minute\", 6e4],\n\t[\"second\", 1e3],\n\t[\"millisecond\", 1]\n], Mt = [\n\t[\"byte\", 1],\n\t[\"kilobyte\", 1024],\n\t[\"megabyte\", 1048576],\n\t[\"gigabyte\", 1073741824],\n\t[\"terabyte\", 1099511627776]\n], Q = /* @__PURE__ */ new Map(), Nt = /* @__PURE__ */ new Map();\nfunction Pt(e, t = 2, n = t, r = X) {\n\treturn e == null ? \"\" : $(r, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: t,\n\t\tminimumFractionDigits: Math.min(n, t),\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}).format(e);\n}\nfunction Ft(e, t = X) {\n\treturn Pt(e, 0, 0, t);\n}\nfunction It(e, t = 1, n = X) {\n\treturn e == null || !Number.isFinite(e) ? \"\" : $(n, {\n\t\tmaximumFractionDigits: t,\n\t\tnotation: \"compact\"\n\t}).format(e);\n}\nfunction Lt(e, t = 1, n = X) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet [r, i] = Mt.find(([, n]) => Kt(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? [\"terabyte\", 1099511627776];\n\treturn $(n, {\n\t\tmaximumFractionDigits: i === 1 ? 0 : t,\n\t\tstyle: \"unit\",\n\t\tunit: r,\n\t\tunitDisplay: i === 1 ? \"long\" : \"short\"\n\t}).format(e / i);\n}\nfunction Rt(e, t = \"millisecond\", n = X) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet r = Math.round(Math.abs(e)), i = Z.findIndex(([, e]) => r >= e), a = i === -1 ? Z.length - 1 : i, o = Z.findIndex(([e]) => e === t), s = Z.slice(a, Math.max(o, a) + 1), c = [];\n\tfor (let [t, i] of s) {\n\t\tlet a = Math.floor(r / i);\n\t\tif (a === 0 && c.length > 0) continue;\n\t\tr -= a * i;\n\t\tlet o = c.length === 0 && e < 0 && a > 0 ? -a : a;\n\t\tc.push($(n, {\n\t\t\tstyle: \"unit\",\n\t\t\tunit: t,\n\t\t\tunitDisplay: \"short\"\n\t\t}).format(o));\n\t}\n\treturn Gt(n).format(c);\n}\nfunction zt(e) {\n\tif (!e) return;\n\tlet t = Wt(e);\n\treturn t === void 0 ? e : e.slice(0, t);\n}\nfunction Bt(e) {\n\tif (!e) return;\n\tlet t = Wt(e);\n\treturn t === void 0 ? void 0 : e.slice(t + 1);\n}\nfunction Vt(e) {\n\treturn e != null && jt.has(e.toLowerCase());\n}\nfunction Ht(e) {\n\treturn (e == null ? void 0 : jt.get(e.toLowerCase())) ?? \"application/octet-stream\";\n}\nfunction Ut(e) {\n\tswitch (e) {\n\t\tcase \"Edm.Boolean\": return \"boolean\";\n\t\tcase \"Edm.Byte\":\n\t\tcase \"Edm.Int16\":\n\t\tcase \"Edm.Int32\":\n\t\tcase \"Edm.Int64\":\n\t\tcase \"Edm.SByte\": return \"wholeNumber\";\n\t\tcase \"Edm.Decimal\":\n\t\tcase \"Edm.Double\":\n\t\tcase \"Edm.Single\": return \"decimalNumber\";\n\t\tcase \"Edm.Date\":\n\t\tcase \"Edm.DateTime\":\n\t\tcase \"Edm.DateTimeOffset\": return \"moment\";\n\t\tcase \"Edm.Time\":\n\t\tcase \"Edm.TimeOfDay\": return \"momentTime\";\n\t\tcase \"Edm.Guid\":\n\t\tcase \"Edm.String\": return \"string\";\n\t\tdefault: return \"unknown\";\n\t}\n}\nfunction Wt(e) {\n\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\treturn n > t && n < e.length - 1 ? n : void 0;\n}\nfunction Gt(e) {\n\tlet t = Q.get(e);\n\treturn t || (t = new Intl.ListFormat(e, {\n\t\tstyle: \"narrow\",\n\t\ttype: \"unit\"\n\t}), Q.set(e, t)), t;\n}\nfunction $(e, t) {\n\tlet n = `${e}|${JSON.stringify(t)}`, r = Nt.get(n);\n\treturn r || (r = new Intl.NumberFormat(e, t), Nt.set(n, r)), r;\n}\nfunction Kt(e, t) {\n\tlet n = 10 ** t;\n\treturn Math.round(e * n) / n;\n}\nexport { Ne as APIError, F as AppError, Fe as ConnectorError, me as DATA_FORMAT_CONFIGS, he as DATA_TYPE_CONFIGS, pe as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, De as ENCODING_GROUP_CONFIG_MAP, k as ENCODING_TYPE_CONFIG_MAP, Pe as EngineError, I as FetchError, t as SUPPORTED_LANGUAGES, V as TOOL_NAME_PREFIX, D as VALUE_DELIMITER_CONFIGS, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, ue as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, we as connectorConfigSchema, vt as constructConnectorCategoryConfig, yt as constructConnectorItemTypeConfig, bt as constructConnectorUsageConfig, Ut as convertODataTypeIdToUsageTypeId, Ct as cookbookConfigSchema, n as createLabelMap, _t as determineConnectorUsageId, Bt as extractExtensionFromPath, zt as extractPathWithoutExtension, Pt as formatNumberAsDecimalNumber, Rt as formatNumberAsDuration, It as formatNumberAsSize, Lt as formatNumberAsStorageSize, Ft as formatNumberAsWholeNumber, fe as getComponentStatus, xt as getConnectorActionsTable, Oe as getEncodingTypeConfigs, ge as getValueDelimiterCharacter, Vt as hasMimeTypeForExtension, Re as ignoreErrors, A as isEncodingTypeId, H as listParserToolConfigs, Dt as loadPresenter, W as loadTool, Ot as localiseConfig, kt as localiseConfigs, At as localiseReference, Ht as lookupMimeTypeForExtension, L as normalizeToError, Ye as parseDelimitedText, Tt as presenterConfigSchema, j as resolveDecoderId, r as resolveLabel, U as resolveParserToolConfig, ot as retrieveRecordsWithParser, ze as serialiseError, Je as toolConfigSchema, Be as unserialiseError };\n","// ── DPUse Framework\nimport { ConnectorError, getValueDelimiterCharacter, ignoreErrors, parseDelimitedText, resolveDecoderId } from '@dpuse/dpuse-shared'; // TODO: This should be Module or Tool error?\nimport type {\n ParsedRecord,\n ParserInterface,\n ParseStreamOptions,\n ParseTextOptions,\n ParseTextResult,\n RecordRetrievalTypeId,\n RetrieveRecordsSummary,\n SampleIssue,\n ValueDelimiterId\n} from '@dpuse/dpuse-shared';\n\n// ── Local Framework\nimport type * as RustModule from '../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js';\n\n// ── Types ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\ntype RustBindings = typeof RustModule;\n\ninterface Utf8Transcoder {\n finish: () => Uint8Array;\n transcode: (bytes: Uint8Array) => Uint8Array;\n}\n\nexport interface CsvProcessingOptions {\n delimiter?: string;\n hasHeaders?: boolean;\n}\n\nexport interface CsvProcessingSummary {\n processedRowCount: number;\n failedRowCount: number;\n durationMs?: number;\n}\n\n// ── Constants ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport const config = {\n id: 'rust-csv-core',\n name: 'Rust CSV Core',\n version: '0.1.0'\n} as const;\n\nconst DEFAULT_CHUNK_SIZE = 10_000;\n\n// WebKit hands over a file stream in pieces of about 18 MB, against about 2 MB in Chromium. Each piece is copied into\n// WebAssembly memory, which never shrinks, so pieces that large grew it to 567 MB. Each piece is read in slices of this\n// size instead. A slice is a view, not a copy.\nconst MAX_SLICE_BYTE_COUNT = 1_048_576;\n\n// ── State ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nconst state: { rustBindingsPromise: Promise<RustBindings> | undefined } = {\n rustBindingsPromise: undefined\n};\n\n// ── Tools ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Parses CSV with a Rust core compiled to WebAssembly, in one of two modes: a transferable ReadableStream where the\n * browser supports one (Chromium), or chunk by chunk where it does not (Safari).\n */\nexport class Tool implements ParserInterface {\n readonly config = config;\n\n /**\n * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is\n * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.\n */\n async parseStream(\n stream: ReadableStream<Uint8Array>,\n options: ParseStreamOptions,\n chunk: (typeId: RecordRetrievalTypeId, records: ParsedRecord[]) => void | Promise<void>\n ): Promise<RetrieveRecordsSummary> {\n const { RecordReader } = await loadRustBindings();\n options.abortSignal.throwIfAborted();\n const recordReader = new RecordReader(convertDelimiterToByte(options.valueDelimiterId));\n const transcoder = constructUtf8Transcoder(options.encodingId);\n const recordsPerChunk = Math.max(1, Math.floor(options.chunkSize ?? DEFAULT_CHUNK_SIZE));\n const reader = stream.getReader();\n // The stream may not be tied to the signal, so an abort cancels the read rather than waiting for the next chunk.\n const cancelRead = (): void => {\n ignoreErrors(() => void reader.cancel(options.abortSignal.reason));\n };\n options.abortSignal.addEventListener('abort', cancelRead, { once: true });\n\n let records: ParsedRecord[] = [];\n // A promise returned by 'chunk' is awaited before reading on, so a slow receiver holds the read back.\n const emitRecords = async (batch: RustModule.RecordBatch): Promise<void> => {\n for (const record of unpackRecordBatch(batch)) {\n records.push(record);\n if (records.length < recordsPerChunk) continue;\n const fullRecords = records;\n records = [];\n await chunk('parsingRecordArray', fullRecords);\n }\n };\n\n try {\n let result = await reader.read();\n while (!result.done) {\n options.abortSignal.throwIfAborted();\n const bytes = transcoder == null ? result.value : transcoder.transcode(result.value);\n for (let sliceStart = 0; sliceStart < bytes.length; sliceStart += MAX_SLICE_BYTE_COUNT) {\n await emitRecords(recordReader.pushChunk(bytes.subarray(sliceStart, sliceStart + MAX_SLICE_BYTE_COUNT)));\n }\n result = await reader.read();\n }\n options.abortSignal.throwIfAborted();\n if (transcoder != null) await emitRecords(recordReader.pushChunk(transcoder.finish()));\n await emitRecords(recordReader.finish());\n if (records.length > 0) await chunk('parsingRecordArray', records);\n return {\n byteCount: recordReader.byteCount,\n commentLineCount: 0, // Comments are not read, as csv-parse is set up in 'dpuse-tool-adaltas-csv-parser'.\n emptyLineCount: recordReader.emptyLineCount,\n lineCount: recordReader.lineCount,\n nonUniformRecordCount: recordReader.nonUniformRecordCount,\n recordCount: recordReader.recordCount\n };\n } finally {\n options.abortSignal.removeEventListener('abort', cancelRead);\n recordReader.free();\n reader.releaseLock();\n }\n }\n\n /**\n * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply\n * runs to the end of the text.\n */\n async parseText(text: string, options: ParseTextOptions): Promise<ParseTextResult> {\n const { RecordReader } = await loadRustBindings();\n return await parseDelimitedText(text, options, (delimitedText, delimiter): Promise<{ issues: SampleIssue[]; records: ParsedRecord[] }> => {\n const recordReader = new RecordReader(convertDelimiterToByte(delimiter));\n try {\n const records = unpackRecordBatch(recordReader.pushChunk(new TextEncoder().encode(delimitedText)));\n records.push(...unpackRecordBatch(recordReader.finish()));\n return Promise.resolve({ issues: [], records });\n } finally {\n recordReader.free();\n }\n });\n }\n\n /**\n * Process CSV data using transferable ReadableStream (Chromium path).\n */\n async processWithTransferableStream(\n stream: ReadableStream<Uint8Array>,\n options: CsvProcessingOptions = {},\n onProgress?: (rowCount: number) => void\n ): Promise<CsvProcessingSummary> {\n const xxxx = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44; // Default comma\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n\n const progressCallback = (count: number): void => {\n processedRowCount += count;\n if (onProgress) onProgress(count);\n };\n\n try {\n await xxxx.stream_csv(stream, progressCallback, delimiter, hasHeaders);\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } catch (error) {\n throw new ConnectorError('Failed to process CSV stream.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream', { cause: error });\n }\n }\n\n /**\n * Process CSV data using chunk-by-chunk approach (Safari fallback).\n */\n async processWithChunks(stream: ReadableStream<Uint8Array>, options: CsvProcessingOptions = {}, onProgress?: (rowCount: number) => void): Promise<CsvProcessingSummary> {\n const { CsvSession } = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44;\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n const session = new CsvSession(delimiter, hasHeaders);\n\n try {\n const reader = stream.getReader();\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- The loop ends when the reader reports 'done'.\n while (true) {\n const { value, done } = await reader.read();\n if (done) break;\n\n // if (value) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const rows = session.pushChunk(value);\n const count = Array.isArray(rows) ? rows.length : 0;\n processedRowCount += count;\n if (onProgress && count > 0) onProgress(count);\n // }\n }\n\n // Finish processing\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const remainingRows = session.finish();\n const remainingCount = Array.isArray(remainingRows) ? remainingRows.length : 0;\n processedRowCount += remainingCount;\n if (onProgress && remainingCount > 0) onProgress(remainingCount);\n\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } finally {\n reader.releaseLock();\n }\n } catch (error) {\n throw new ConnectorError('Failed to process CSV chunks.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithChunks', { cause: error });\n }\n }\n}\n\n// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nfunction convertDelimiterToByte(delimiter: ValueDelimiterId): number {\n const byte = getValueDelimiterCharacter(delimiter).codePointAt(0);\n if (byte == null || byte > 0x7f) throw new Error(`Delimiter '${delimiter}' is not a single ASCII character.`);\n return byte;\n}\n\n// The Rust reader reads UTF-8. Text in any other encoding is decoded and encoded again as UTF-8 on the way in, so it is\n// read as 'TextDecoder' reads it. UTF-8 is passed straight through, which saves a copy of every chunk.\nfunction constructUtf8Transcoder(encodingId: string): Utf8Transcoder | undefined {\n const decoder = new TextDecoder(resolveDecoderId(encodingId));\n if (decoder.encoding === 'utf-8') return undefined;\n const encoder = new TextEncoder();\n return {\n finish: () => encoder.encode(decoder.decode()),\n transcode: (bytes) => encoder.encode(decoder.decode(bytes, { stream: true }))\n };\n}\n\n// Builds a record of '{ value, valueWasQuoted }' objects for each record in the batch, which is freed once read.\nfunction unpackRecordBatch(batch: RustModule.RecordBatch): ParsedRecord[] {\n const { recordValueCounts, text, valueEnds, valueQuoted } = batch;\n batch.free();\n const records: ParsedRecord[] = [];\n let valueIndex = 0;\n let valueStart = 0;\n for (const valueCount of recordValueCounts) {\n const record: ParsedRecord = [];\n for (let index = 0; index < valueCount; index++) {\n const valueEnd = valueEnds[valueIndex] ?? valueStart;\n record.push({ value: text.slice(valueStart, valueEnd), valueWasQuoted: valueQuoted[valueIndex] === 1 });\n valueStart = valueEnd;\n valueIndex++;\n }\n records.push(record);\n }\n return records;\n}\n\n// The WebAssembly loads once, on first use; the promise is kept so callers that arrive together share one load.\nasync function loadRustBindings(): Promise<RustBindings> {\n state.rustBindingsPromise ??= (async () => {\n const module = await import('../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js');\n await module.default();\n return module;\n })();\n return state.rustBindingsPromise;\n}\n"],"ignoreList":[0],"mappings":";AAkBA,IAAII,IAAI;CACP,MAAM,KAAK;CACX,SAAS,KAAK;CACd,YAAY,KAAK;CACjB,gBAAgB,KAAK;AACtB;;AAEA,SAASC,EAAE,GAAG;CACb,OAAOC,IAAI;EACV,MAAMA,GAAG,QAAQ,KAAK;EACtB,SAASA,GAAG;EACZ,YAAYA,GAAG,cAAc,KAAK;EAClC,gBAAgBA,GAAG,kBAAkB,KAAK;CAC3C,IAAIF;AACL;;AAEA,SAASG,EAAE,GAAG;CACb,IAAI,IAAI,OAAO;CACf,OAAO,MAAM,WAAW,IAAI,EAAE,KAAK,MAAM,YAAY,MAAM,YAAY,MAAM,YAAY,GAAG,MAAM,MAAM,YAAY,MAAM,cAAc,KAAK,OAAO,eAAe,CAAC,CAAC,EAAE,aAAa,SAAS,SAAS;AACvM;AACA,SAASC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG;CACzB,IAAIH,IAAID,KAAK,WAAWA,IAAIA,EAAE,QAAQK,EAAE,OAAO,IAAIL,GAAG,YAAY,EAAE,WAAW,MAAM,IAAIA,GAAG,YAA4B,kBAAEC,CAAC,GAAG,IAAI;EACjI,MAAM,EAAE;EACR,MAAM,EAAE;EACR,OAAOA;EACP,UAAU;EACV,UAAU;EACV,SAAS,WAAW,EAAE,IAAI,IAAI,YAAY,EAAE,UAAU,IAAI,UAAU;EACpE,aAAa,EAAE;EACf,MAAMD,GAAG;EACT,QAAQA,GAAG;EACX,MAAMM,EAAE;EACR,YAAYA,EAAE;EACd,gBAAgBA,EAAE;CACnB,GAAG,I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OF,EAAQ,OAAO,CAAC;EAC7C,YAAY,MAAUE,EAAQ,OAAOF,EAAQ,OAAOrB,GAAO,EAAE,QAAQ,GAAK,CAAC,CAAC;CAChF;AACJ;AAGA,SAASL,EAAkB,GAA+C;CACtE,IAAM,EAAE,sBAAmB,SAAM,cAAW,mBAAgBC;CAC5D,EAAM,KAAK;CACX,IAAMJ,IAA0B,CAAC,GAC7BgC,IAAa,GACbC,IAAa;CACjB,KAAK,IAAMC,KAAcC,GAAmB;EACxC,IAAMjC,IAAuB,CAAC;EAC9B,KAAK,IAAIkC,IAAQ,GAAGA,IAAQF,GAAY,KAAS;GAC7C,IAAMG,IAAWC,EAAUN,MAAeC;GAG1C,AAFA/B,EAAO,KAAK;IAAE,OAAOQ,EAAK,MAAMuB,GAAYI,CAAQ;IAAG,gBAAgBE,EAAYP,OAAgB;GAAE,CAAC,GACtG,IAAaK,GACb;EACJ;EACA,EAAQ,KAAKnC,CAAM;CACvB;CACA,OAAOF;AACX;AAGA,eAAeX,IAA0C;CAMrD,OALA,EAAM,yBAAyB,YAAY;EACvC,IAAMmD,IAAS,MAAM,OAAO;EAE5B,OADA,MAAMA,EAAO,QAAQ,GACdA;CACX,EAAA,CAAG,GACIrD,EAAM;AACjB"}
1
+ {"version":3,"file":"dpuse-tool-rust-csv-core-parser.es.js","names":["parseDelimitedText","ConnectorError","getValueDelimiterCharacter","resolveDecoderId","i","a","e","o","s","n","r","c","u","d","t","p","m","_","y","b","x","C","w","T","ee","re","D","ie","ae","oe","se","O","ce","A","he","j","M","De","Oe","P","Fe","Re","Ye","Xe","Ze","Qe","$e","H","config","DEFAULT_CHUNK_SIZE","MAX_SLICE_BYTE_COUNT","state","Tool","loadRustBindings","recordReader","RecordReader","convertDelimiterToByte","options","transcoder","constructUtf8Transcoder","recordsPerChunk","reader","stream","cancelRead","records","takeFullChunks","record","unpackRecordBatch","batch","fullRecords","result","bytes","sliceStart","text","delimiter","delimitedText","xxxx","hasHeaders","startTime","processedRowCount","progressCallback","count","onProgress","error","session","CsvSession","done","rows","value","remainingRows","remainingCount","byte","decoder","encodingId","encoder","valueIndex","valueStart","valueCount","recordValueCounts","index","valueEnd","valueEnds","valueQuoted","module"],"sources":["../node_modules/@dpuse/dpuse-shared/dist/dpuse-shared.es.js","../src/index.ts"],"sourcesContent":["// src/locale/label.ts\nvar e = \"en\", t = [{\n\tid: \"en\",\n\tflag: \"gb\",\n\tlabel: \"English\"\n}, {\n\tid: \"es\",\n\tflag: \"es\",\n\tlabel: \"Español\"\n}];\nfunction n(e) {\n\treturn new Map(Object.entries(e));\n}\nfunction r(e, t, n = \"en\") {\n\tlet r = e.get(t);\n\treturn r === void 0 ? n === t ? void 0 : e.get(n) : r;\n}\n// node_modules/valibot/dist/index.mjs\nvar i = {\n\tlang: void 0,\n\tmessage: void 0,\n\tabortEarly: void 0,\n\tabortPipeEarly: void 0\n};\n/* @__NO_SIDE_EFFECTS__ */\nfunction a(e) {\n\treturn e ? {\n\t\tlang: e?.lang ?? void 0,\n\t\tmessage: e?.message,\n\t\tabortEarly: e?.abortEarly ?? void 0,\n\t\tabortPipeEarly: e?.abortPipeEarly ?? void 0\n\t} : i;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction o(e) {\n\tlet t = typeof e;\n\treturn t === \"string\" ? `\"${e}\"` : t === \"number\" || t === \"bigint\" || t === \"boolean\" ? `${e}` : t === \"object\" || t === \"function\" ? (e && Object.getPrototypeOf(e)?.constructor?.name) ?? \"null\" : t;\n}\nfunction s(e, t, n, r, i) {\n\tlet a = i && \"input\" in i ? i.input : n.value, s = i?.expected ?? e.expects ?? null, c = i?.received ?? /* @__PURE__ */ o(a), l = {\n\t\tkind: e.kind,\n\t\ttype: e.type,\n\t\tinput: a,\n\t\texpected: s,\n\t\treceived: c,\n\t\tmessage: `Invalid ${t}: ${s ? `Expected ${s} but r` : \"R\"}eceived ${c}`,\n\t\trequirement: e.requirement,\n\t\tpath: i?.path,\n\t\tissues: i?.issues,\n\t\tlang: r.lang,\n\t\tabortEarly: r.abortEarly,\n\t\tabortPipeEarly: r.abortPipeEarly\n\t}, u = e.kind === \"schema\", d = i?.message ?? e.message ?? (e.reference, l.lang, void 0) ?? (u ? (l.lang, void 0) : null) ?? r.message ?? (l.lang, void 0);\n\td !== void 0 && (l.message = typeof d == \"function\" ? d(l) : d), u && (n.typed = !1), n.issues ? n.issues.push(l) : n.issues = [l];\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction c(e, t) {\n\treturn e === t || Number.isNaN(e) && Number.isNaN(t);\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction l(e, t) {\n\treturn Object.prototype.hasOwnProperty.call(e, t) && t !== \"__proto__\" && t !== \"prototype\" && t !== \"constructor\";\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction u(e, t) {\n\tlet n = [...new Set(e)];\n\treturn n.length > 1 ? `(${n.join(` ${t} `)})` : n[0] ?? \"never\";\n}\nfunction d(e) {\n\treturn e[\"~standard\"] = {\n\t\tversion: 1,\n\t\tvendor: \"valibot\",\n\t\tvalidate: (t) => e[\"~run\"]({ value: t }, /* @__PURE__ */ a())\n\t}, e;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction f(e, t) {\n\treturn {\n\t\tkind: \"validation\",\n\t\ttype: \"min_length\",\n\t\treference: f,\n\t\tasync: !1,\n\t\texpects: `>=${e}`,\n\t\trequirement: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.typed && e.value.length < this.requirement && s(this, \"length\", e, t, { received: `${e.value.length}` }), e;\n\t\t}\n\t};\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction p(e, t, n) {\n\treturn typeof e.fallback == \"function\" ? e.fallback(t, n) : e.fallback;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction m(e, t, n) {\n\treturn typeof e.default == \"function\" ? e.default(t, n) : e.default;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction h(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"array\",\n\t\treference: h,\n\t\texpects: \"Array\",\n\t\tasync: !1,\n\t\titem: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (Array.isArray(n)) {\n\t\t\t\te.typed = !0, e.value = [];\n\t\t\t\tfor (let r = 0; r < n.length; r++) {\n\t\t\t\t\tlet i = n[r], a = this.item[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"array\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path ? t.path.unshift(o) : t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed || (e.typed = !1), e.value.push(a.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction g(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"boolean\",\n\t\treference: g,\n\t\texpects: \"boolean\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"boolean\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction _(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"literal\",\n\t\treference: _,\n\t\texpects: /* @__PURE__ */ o(e),\n\t\tasync: !1,\n\t\tliteral: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn /* @__PURE__ */ c(e.value, this.literal) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction v(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"loose_object\",\n\t\treference: v,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tentries: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in this.entries) {\n\t\t\t\t\tlet i = this.entries[r];\n\t\t\t\t\tif (r in n || (i.type === \"exact_optional\" || i.type === \"optional\" || i.type === \"nullish\") && i.default !== void 0) {\n\t\t\t\t\t\tlet a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i[\"~run\"]({ value: a }, t);\n\t\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\t\tlet i = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: a\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);\n\t\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\to.typed || (e.typed = !1), e.value[r] = o.value;\n\t\t\t\t\t} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);\n\t\t\t\t\telse if (i.type !== \"exact_optional\" && i.type !== \"optional\" && i.type !== \"nullish\" && (s(this, \"key\", e, t, {\n\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\texpected: `\"${r}\"`,\n\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t}]\n\t\t\t\t\t}), t.abortEarly)) break;\n\t\t\t\t}\n\t\t\t\tif (!e.issues || !t.abortEarly) for (let t in n) /* @__PURE__ */ l(n, t) && !Object.prototype.hasOwnProperty.call(this.entries, t) && (e.value[t] = n[t]);\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction y(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"nullable\",\n\t\treference: y,\n\t\texpects: `(${e.expects} | null)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.value === null && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === null) ? (e.typed = !0, e) : this.wrapped[\"~run\"](e, t);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction b(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"number\",\n\t\treference: b,\n\t\texpects: \"number\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"number\" && !isNaN(e.value) ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction x(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"optional\",\n\t\treference: x,\n\t\texpects: `(${e.expects} | undefined)`,\n\t\tasync: !1,\n\t\twrapped: e,\n\t\tdefault: t,\n\t\t\"~run\"(e, t) {\n\t\t\treturn e.value === void 0 && (this.default !== void 0 && (e.value = /* @__PURE__ */ m(this, e, t)), e.value === void 0) ? (e.typed = !0, e) : this.wrapped[\"~run\"](e, t);\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction S(e, t, n) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"record\",\n\t\treference: S,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tkey: e,\n\t\tvalue: t,\n\t\tmessage: n,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in n) if (/* @__PURE__ */ l(n, r)) {\n\t\t\t\t\tlet i = n[r], a = this.key[\"~run\"]({ value: r }, t);\n\t\t\t\t\tif (a.issues) {\n\t\t\t\t\t\tlet o = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of a.issues) t.path = [o], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= a.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tlet o = this.value[\"~run\"]({ value: i }, t);\n\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\tlet a = {\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: i\n\t\t\t\t\t\t};\n\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(a) : t.path = [a], e.issues?.push(t);\n\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ta.typed && o.typed || (e.typed = !1), a.typed && (e.value[a.value] = o.value);\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction C(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"strict_object\",\n\t\treference: C,\n\t\texpects: \"Object\",\n\t\tasync: !1,\n\t\tentries: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n = e.value;\n\t\t\tif (n && typeof n == \"object\") {\n\t\t\t\te.typed = !0, e.value = {};\n\t\t\t\tfor (let r in this.entries) {\n\t\t\t\t\tlet i = this.entries[r];\n\t\t\t\t\tif (r in n || (i.type === \"exact_optional\" || i.type === \"optional\" || i.type === \"nullish\") && i.default !== void 0) {\n\t\t\t\t\t\tlet a = r in n ? n[r] : /* @__PURE__ */ m(i), o = i[\"~run\"]({ value: a }, t);\n\t\t\t\t\t\tif (o.issues) {\n\t\t\t\t\t\t\tlet i = {\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"value\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: a\n\t\t\t\t\t\t\t};\n\t\t\t\t\t\t\tfor (let t of o.issues) t.path ? t.path.unshift(i) : t.path = [i], e.issues?.push(t);\n\t\t\t\t\t\t\tif (e.issues ||= o.issues, t.abortEarly) {\n\t\t\t\t\t\t\t\te.typed = !1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\to.typed || (e.typed = !1), e.value[r] = o.value;\n\t\t\t\t\t} else if (i.fallback !== void 0) e.value[r] = /* @__PURE__ */ p(i);\n\t\t\t\t\telse if (i.type !== \"exact_optional\" && i.type !== \"optional\" && i.type !== \"nullish\" && (s(this, \"key\", e, t, {\n\t\t\t\t\t\tinput: void 0,\n\t\t\t\t\t\texpected: `\"${r}\"`,\n\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t}]\n\t\t\t\t\t}), t.abortEarly)) break;\n\t\t\t\t}\n\t\t\t\tif (!e.issues || !t.abortEarly) {\n\t\t\t\t\tfor (let r in n) if (!Object.prototype.hasOwnProperty.call(this.entries, r)) {\n\t\t\t\t\t\ts(this, \"key\", e, t, {\n\t\t\t\t\t\t\tinput: r,\n\t\t\t\t\t\t\texpected: \"never\",\n\t\t\t\t\t\t\tpath: [{\n\t\t\t\t\t\t\t\ttype: \"object\",\n\t\t\t\t\t\t\t\torigin: \"key\",\n\t\t\t\t\t\t\t\tinput: n,\n\t\t\t\t\t\t\t\tkey: r,\n\t\t\t\t\t\t\t\tvalue: n[r]\n\t\t\t\t\t\t\t}]\n\t\t\t\t\t\t});\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t} else s(this, \"type\", e, t);\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction w(e) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"string\",\n\t\treference: w,\n\t\texpects: \"string\",\n\t\tasync: !1,\n\t\tmessage: e,\n\t\t\"~run\"(e, t) {\n\t\t\treturn typeof e.value == \"string\" ? e.typed = !0 : s(this, \"type\", e, t), e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction T(e) {\n\tlet t;\n\tif (e) for (let n of e) if (t) for (let e of n.issues) t.push(e);\n\telse t = n.issues;\n\treturn t;\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ee(e, t) {\n\treturn d({\n\t\tkind: \"schema\",\n\t\ttype: \"union\",\n\t\treference: ee,\n\t\texpects: /* @__PURE__ */ u(e.map((e) => e.expects), \"|\"),\n\t\tasync: !1,\n\t\toptions: e,\n\t\tmessage: t,\n\t\t\"~run\"(e, t) {\n\t\t\tlet n, r, i;\n\t\t\tfor (let a of this.options) {\n\t\t\t\tlet o = a[\"~run\"]({ value: e.value }, t);\n\t\t\t\tif (o.typed) {\n\t\t\t\t\tif (o.issues) r ? r.push(o) : r = [o];\n\t\t\t\t\telse {\n\t\t\t\t\t\tn = o;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} else i ? i.push(o) : i = [o];\n\t\t\t}\n\t\t\tif (n) return n;\n\t\t\tif (r) {\n\t\t\t\tif (r.length === 1) return r[0];\n\t\t\t\ts(this, \"type\", e, t, { issues: /* @__PURE__ */ T(r) }), e.typed = !0;\n\t\t\t} else if (i?.length === 1) return i[0];\n\t\t\telse s(this, \"type\", e, t, { issues: /* @__PURE__ */ T(i) });\n\t\t\treturn e;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction te(...e) {\n\treturn d({\n\t\t...e[0],\n\t\tpipe: e,\n\t\t\"~run\"(t, n) {\n\t\t\tfor (let r of e) if (r.kind !== \"metadata\") {\n\t\t\t\tif (t.issues && (r.kind === \"schema\" || r.kind === \"transformation\")) {\n\t\t\t\t\tt.typed = !1;\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tt.issues && (n.abortEarly || n.abortPipeEarly) || (t = r[\"~run\"](t, n));\n\t\t\t}\n\t\t\treturn t;\n\t\t}\n\t});\n}\n/* @__NO_SIDE_EFFECTS__ */\nfunction ne(e, t, n) {\n\tlet r = e[\"~run\"]({ value: t }, /* @__PURE__ */ a(n));\n\treturn {\n\t\ttyped: r.typed,\n\t\tsuccess: !r.issues,\n\t\toutput: r.value,\n\t\tissues: r.issues\n\t};\n}\n// src/locale/locale.schema.ts\nvar E = /* @__PURE__ */ C({\n\ten: /* @__PURE__ */ w(),\n\tes: /* @__PURE__ */ w()\n}), re = {\n\tid: /* @__PURE__ */ w(),\n\tlabel: /* @__PURE__ */ C({\n\t\ten: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\t\tes: /* @__PURE__ */ x(/* @__PURE__ */ w())\n\t}),\n\tdescription: /* @__PURE__ */ C({\n\t\ten: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\t\tes: /* @__PURE__ */ x(/* @__PURE__ */ w())\n\t}),\n\ticon: /* @__PURE__ */ y(/* @__PURE__ */ w()),\n\ticonDark: /* @__PURE__ */ y(/* @__PURE__ */ w())\n}, D = (e) => /* @__PURE__ */ ee(e.map((e) => /* @__PURE__ */ _(e))), ie = D([\n\t\"app\",\n\t\"connector\",\n\t\"connectorConnection\",\n\t\"context\",\n\t\"contextArea\",\n\t\"contextModel\",\n\t\"contextModelDimension\",\n\t\"contextModelDimensionHierarchy\",\n\t\"contextModelEntity\",\n\t\"contextModelEntityDataItem\",\n\t\"contextModelEntityEvent\",\n\t\"contextModelEntityPrimaryMeasure\",\n\t\"contextModelSecondaryMeasure\",\n\t\"cookbook\",\n\t\"cookbookRecipe\",\n\t\"dataView\",\n\t\"engine\",\n\t\"eventQuery\",\n\t\"presenter\",\n\t\"presenterPresentation\",\n\t\"tool\"\n]), ae = D([\n\t\"danger\",\n\t\"success\",\n\t\"warning\"\n]), oe = D([\n\t\"alpha\",\n\t\"beta\",\n\t\"releaseCandidate\",\n\t\"generalAvailability\"\n]), se = /* @__PURE__ */ C({\n\tcolor: ae,\n\tlabel: /* @__PURE__ */ w()\n}), O = {\n\t...re,\n\ttypeId: ie\n}, k = /* @__PURE__ */ C({\n\t...O,\n\torder: /* @__PURE__ */ b(),\n\tpath: /* @__PURE__ */ w()\n}), ce = {\n\t...O,\n\tfirstCreatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),\n\tlastUpdatedAt: /* @__PURE__ */ y(/* @__PURE__ */ b()),\n\tstatus: /* @__PURE__ */ y(se),\n\tstatusId: /* @__PURE__ */ y(oe)\n}, le = /* @__PURE__ */ C({ ...ce }), ue = [\n\t{\n\t\tid: \"alpha\",\n\t\tcolor: \"danger\",\n\t\tlabels: {\n\t\t\ten: \"alpha\",\n\t\t\tes: \"alfa\"\n\t\t}\n\t},\n\t{\n\t\tid: \"beta\",\n\t\tcolor: \"warning\",\n\t\tlabels: {\n\t\t\ten: \"beta\",\n\t\t\tes: \"beta\"\n\t\t}\n\t},\n\t{\n\t\tid: \"releaseCandidate\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"release-candidate\",\n\t\t\tes: \"candidato-de-lanzamiento\"\n\t\t}\n\t},\n\t{\n\t\tid: \"generalAvailability\",\n\t\tcolor: \"success\",\n\t\tlabels: {\n\t\t\ten: \"\",\n\t\t\tes: \"\"\n\t\t}\n\t}\n];\nfunction de(e, t = \"en\") {\n\tlet n = ue.find((t) => t.id === e);\n\tif (n) {\n\t\tlet e = n.labels[t] ?? n.labels.en ?? n.id;\n\t\treturn {\n\t\t\tcolor: n.color,\n\t\t\tlabel: e\n\t\t};\n\t}\n\treturn {\n\t\tcolor: \"danger\",\n\t\tlabel: e\n\t};\n}\n// src/component/dataView/index.ts\nvar fe = [\n\t{\n\t\tid: \"arrow\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"avro\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"dtv\",\n\t\tisTable: !0,\n\t\tisText: !0,\n\t\tsupportId: \"supported\"\n\t},\n\t{\n\t\tid: \"json\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"jsonl\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"markdown\",\n\t\tisTable: !1,\n\t\tisText: !0,\n\t\tsupportId: \"unsupported\"\n\t},\n\t{\n\t\tid: \"ods\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"parquet\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sav\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"sqlite\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xlsx\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"xml\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"planned\"\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tisTable: !1,\n\t\tisText: !1,\n\t\tsupportId: \"unsupported\"\n\t}\n], A = [\n\t{\n\t\tid: \",\",\n\t\tcharacter: \",\"\n\t},\n\t{\n\t\tid: \";\",\n\t\tcharacter: \";\"\n\t},\n\t{\n\t\tid: \"\t\",\n\t\tcharacter: \"\t\"\n\t},\n\t{\n\t\tid: \"|\",\n\t\tcharacter: \"|\"\n\t},\n\t{\n\t\tid: \" \",\n\t\tcharacter: \" \"\n\t},\n\t{\n\t\tid: \":\",\n\t\tcharacter: \":\"\n\t},\n\t{\n\t\tid: \"_\",\n\t\tcharacter: \"_\"\n\t},\n\t{\n\t\tid: \"!\",\n\t\tcharacter: \"!\"\n\t},\n\t{\n\t\tid: \"0x1F\",\n\t\tcharacter: \"\u001f\"\n\t},\n\t{\n\t\tid: \"0x1E\",\n\t\tcharacter: \"\u001e\"\n\t}\n], pe = [\n\t{\n\t\tid: \"string\",\n\t\tdefaultSubtypeId: \"plain\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"plain\",\n\t\t\t\"email\",\n\t\t\t\"url\",\n\t\t\t\"uuid\",\n\t\t\t\"ulid\",\n\t\t\t\"ipv4\",\n\t\t\t\"ipv6\",\n\t\t\t\"ipRange\",\n\t\t\t\"macAddress\",\n\t\t\t\"iban\",\n\t\t\t\"isbn\",\n\t\t\t\"paymentCard\",\n\t\t\t\"hexColor\",\n\t\t\t\"json\",\n\t\t\t\"countryCode\",\n\t\t\t\"currencyCode\",\n\t\t\t\"languageCode\"\n\t\t]\n\t},\n\t{\n\t\tid: \"numeric\",\n\t\tdefaultSubtypeId: \"integer\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"integer\",\n\t\t\t\"decimal\",\n\t\t\t\"bigint\"\n\t\t]\n\t},\n\t{\n\t\tid: \"temporal\",\n\t\tdefaultSubtypeId: \"dateTime\",\n\t\tisChoosable: !0,\n\t\tsubtypeIds: [\n\t\t\t\"date\",\n\t\t\t\"dateTime\",\n\t\t\t\"time\"\n\t\t]\n\t},\n\t{\n\t\tid: \"boolean\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !0,\n\t\tsubtypeIds: []\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tdefaultSubtypeId: void 0,\n\t\tisChoosable: !1,\n\t\tsubtypeIds: []\n\t}\n], me = [\",\", \".\"];\nfunction he(e) {\n\treturn A.find(({ id: t }) => t === e)?.character ?? e;\n}\nD([\n\t\"app\",\n\t\"engine\",\n\t\"connector\",\n\t\"cookbook\",\n\t\"presenter\",\n\t\"tool\"\n]);\n// src/component/module/moduleConfig.schema.ts\nvar j = {\n\t...ce,\n\tvendorAccountURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),\n\tvendorDocumentationURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),\n\tvendorHomeURL: /* @__PURE__ */ y(/* @__PURE__ */ w()),\n\tversion: /* @__PURE__ */ w()\n};\n({ ...j });\n// src/component/module/connector/connectorConfig.schema.ts\nvar ge = D([\n\t\"abortOperation\",\n\t\"auditObjectContent\",\n\t\"closeStore\",\n\t\"createObject\",\n\t\"describeConnection\",\n\t\"dropObject\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"loadObjectRecords\",\n\t\"openStore\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"removeRecords\",\n\t\"retrieveRecords\",\n\t\"upsertRecords\"\n]), _e = D([\n\t\"application\",\n\t\"curatedDataset\",\n\t\"database\",\n\t\"fileStore\"\n]), ve = /* @__PURE__ */ C({ label: E }), ye = D([\n\t\"apiEndpoint\",\n\t\"file\",\n\t\"table\"\n]), be = D([\n\t\"bidirectional\",\n\t\"destination\",\n\t\"source\",\n\t\"unknown\"\n]), xe = /* @__PURE__ */ C({ label: E }), Se = /* @__PURE__ */ C({\n\tauthMethodId: D([\n\t\t\"apiKey\",\n\t\t\"disabled\",\n\t\t\"oAuth2\",\n\t\t\"none\"\n\t]),\n\tactiveConnectionCount: /* @__PURE__ */ x(/* @__PURE__ */ b()),\n\tcanDescribe: /* @__PURE__ */ x(/* @__PURE__ */ g()),\n\tid: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\tlabel: /* @__PURE__ */ x(E),\n\tmaxConnectionCount: /* @__PURE__ */ y(/* @__PURE__ */ b()),\n\tparams: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ S(/* @__PURE__ */ w(), /* @__PURE__ */ w())))\n}), Ce = /* @__PURE__ */ C({\n\t...j,\n\ttypeId: /* @__PURE__ */ _(\"connector\"),\n\tactionNames: /* @__PURE__ */ h(ge),\n\tcategory: /* @__PURE__ */ y(ve),\n\tcategoryId: _e,\n\timplementations: /* @__PURE__ */ S(/* @__PURE__ */ w(), Se),\n\titemTypeId: ye,\n\tusage: /* @__PURE__ */ y(xe),\n\tusageId: /* @__PURE__ */ y(be)\n}), we = {\n\tarabic: {\n\t\tid: \"arabic\",\n\t\tlabel: {\n\t\t\ten: \"Arabic\",\n\t\t\tes: \"Árabe\"\n\t\t}\n\t},\n\tarmenian: {\n\t\tid: \"armenian\",\n\t\tlabel: {\n\t\t\ten: \"Armenian\",\n\t\t\tes: \"Armenio\"\n\t\t}\n\t},\n\tbaltic: {\n\t\tid: \"baltic\",\n\t\tlabel: {\n\t\t\ten: \"Baltic\",\n\t\t\tes: \"Báltico\"\n\t\t}\n\t},\n\tceltic: {\n\t\tid: \"celtic\",\n\t\tlabel: {\n\t\t\ten: \"Celtic\",\n\t\t\tes: \"Celta\"\n\t\t}\n\t},\n\tcentralEuropean: {\n\t\tid: \"centralEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Central European\",\n\t\t\tes: \"Centroeuropeo\"\n\t\t}\n\t},\n\tchineseSimplified: {\n\t\tid: \"chineseSimplified\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Simplified\",\n\t\t\tes: \"Chino simplificado\"\n\t\t}\n\t},\n\tchineseTraditional: {\n\t\tid: \"chineseTraditional\",\n\t\tlabel: {\n\t\t\ten: \"Chinese Traditional\",\n\t\t\tes: \"Chino tradicional\"\n\t\t}\n\t},\n\tcyrillic: {\n\t\tid: \"cyrillic\",\n\t\tlabel: {\n\t\t\ten: \"Cyrillic\",\n\t\t\tes: \"Cirílico\"\n\t\t}\n\t},\n\tgeorgian: {\n\t\tid: \"georgian\",\n\t\tlabel: {\n\t\t\ten: \"Georgian\",\n\t\t\tes: \"Georgiano\"\n\t\t}\n\t},\n\tgreek: {\n\t\tid: \"greek\",\n\t\tlabel: {\n\t\t\ten: \"Greek\",\n\t\t\tes: \"Griego\"\n\t\t}\n\t},\n\thebrew: {\n\t\tid: \"hebrew\",\n\t\tlabel: {\n\t\t\ten: \"Hebrew\",\n\t\t\tes: \"Hebreo\"\n\t\t}\n\t},\n\tjapanese: {\n\t\tid: \"japanese\",\n\t\tlabel: {\n\t\t\ten: \"Japanese\",\n\t\t\tes: \"Japonés\"\n\t\t}\n\t},\n\tkorean: {\n\t\tid: \"korean\",\n\t\tlabel: {\n\t\t\ten: \"Korean\",\n\t\t\tes: \"Coreano\"\n\t\t}\n\t},\n\tlao: {\n\t\tid: \"lao\",\n\t\tlabel: {\n\t\t\ten: \"Lao\",\n\t\t\tes: \"Lao\"\n\t\t}\n\t},\n\tnordic: {\n\t\tid: \"nordic\",\n\t\tlabel: {\n\t\t\ten: \"Nordic\",\n\t\t\tes: \"Nórdico\"\n\t\t}\n\t},\n\tsouthEasternEuropean: {\n\t\tid: \"southEasternEuropean\",\n\t\tlabel: {\n\t\t\ten: \"South-Eastern European\",\n\t\t\tes: \"Europeo sudoriental\"\n\t\t}\n\t},\n\tsouthernEuropean: {\n\t\tid: \"southernEuropean\",\n\t\tlabel: {\n\t\t\ten: \"Southern European\",\n\t\t\tes: \"Europeo meridional\"\n\t\t}\n\t},\n\tthai: {\n\t\tid: \"thai\",\n\t\tlabel: {\n\t\t\ten: \"Thai\",\n\t\t\tes: \"Tailandés\"\n\t\t}\n\t},\n\tturkish: {\n\t\tid: \"turkish\",\n\t\tlabel: {\n\t\t\ten: \"Turkish\",\n\t\t\tes: \"Turco\"\n\t\t}\n\t},\n\tunicode: {\n\t\tid: \"unicode\",\n\t\tlabel: {\n\t\t\ten: \"Unicode\",\n\t\t\tes: \"Unicode\"\n\t\t}\n\t},\n\tvietnamese: {\n\t\tid: \"vietnamese\",\n\t\tlabel: {\n\t\t\ten: \"Vietnamese\",\n\t\t\tes: \"Vietnamita\"\n\t\t}\n\t},\n\twestern: {\n\t\tid: \"western\",\n\t\tlabel: {\n\t\t\ten: \"Western\",\n\t\t\tes: \"Occidental\"\n\t\t}\n\t}\n}, Te = {\n\t\"armscii-8\": {\n\t\tid: \"armscii-8\",\n\t\tgroupId: \"armenian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"armscii8\"\n\t},\n\tascii: {\n\t\tid: \"ascii\",\n\t\tgroupId: null,\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"ascii\"\n\t},\n\tbig5: {\n\t\tid: \"big5\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"big5\",\n\t\ticonvLiteDecoderId: \"big5hkscs\"\n\t},\n\t\"cesu-8\": {\n\t\tid: \"cesu-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cesu8\"\n\t},\n\tcp273: {\n\t\tid: \"cp273\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp424: {\n\t\tid: \"cp424\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp437: {\n\t\tid: \"cp437\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp437\"\n\t},\n\tcp500: {\n\t\tid: \"cp500\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp720: {\n\t\tid: \"cp720\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp720\"\n\t},\n\tcp737: {\n\t\tid: \"cp737\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp737\"\n\t},\n\tcp775: {\n\t\tid: \"cp775\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp775\"\n\t},\n\tcp808: {\n\t\tid: \"cp808\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp808\"\n\t},\n\tcp850: {\n\t\tid: \"cp850\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp850\"\n\t},\n\tcp852: {\n\t\tid: \"cp852\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp852\"\n\t},\n\tcp856: {\n\t\tid: \"cp856\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp856\"\n\t},\n\tcp857: {\n\t\tid: \"cp857\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp857\"\n\t},\n\tcp858: {\n\t\tid: \"cp858\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp858\"\n\t},\n\tcp860: {\n\t\tid: \"cp860\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp860\"\n\t},\n\tcp861: {\n\t\tid: \"cp861\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp861\"\n\t},\n\tcp862: {\n\t\tid: \"cp862\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp862\"\n\t},\n\tcp863: {\n\t\tid: \"cp863\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp863\"\n\t},\n\tcp864: {\n\t\tid: \"cp864\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp864\"\n\t},\n\tcp865: {\n\t\tid: \"cp865\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp865\"\n\t},\n\tcp869: {\n\t\tid: \"cp869\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp869\"\n\t},\n\tcp874: {\n\t\tid: \"cp874\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"windows874\"\n\t},\n\tcp875: {\n\t\tid: \"cp875\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp922: {\n\t\tid: \"cp922\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp922\"\n\t},\n\tcp932: {\n\t\tid: \"cp932\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\tcp936: {\n\t\tid: \"cp936\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp936\"\n\t},\n\tcp949: {\n\t\tid: \"cp949\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tcp950: {\n\t\tid: \"cp950\",\n\t\tgroupId: \"chineseTraditional\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp950\"\n\t},\n\tcp1006: {\n\t\tid: \"cp1006\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1026: {\n\t\tid: \"cp1026\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1046: {\n\t\tid: \"cp1046\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1046\"\n\t},\n\tcp1124: {\n\t\tid: \"cp1124\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1124\"\n\t},\n\tcp1125: {\n\t\tid: \"cp1125\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1125\"\n\t},\n\tcp1129: {\n\t\tid: \"cp1129\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1129\"\n\t},\n\tcp1133: {\n\t\tid: \"cp1133\",\n\t\tgroupId: \"lao\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1133\"\n\t},\n\tcp1140: {\n\t\tid: \"cp1140\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tcp1161: {\n\t\tid: \"cp1161\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1161\"\n\t},\n\tcp1162: {\n\t\tid: \"cp1162\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1162\"\n\t},\n\tcp1163: {\n\t\tid: \"cp1163\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp1163\"\n\t},\n\tcp1258: {\n\t\tid: \"cp1258\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1258\",\n\t\ticonvLiteDecoderId: \"windows1258\"\n\t},\n\t\"euc-jp\": {\n\t\tid: \"euc-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-jp\",\n\t\ticonvLiteDecoderId: \"eucjp\"\n\t},\n\t\"euc-kr\": {\n\t\tid: \"euc-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"euc-kr\",\n\t\ticonvLiteDecoderId: \"cp949\"\n\t},\n\tgb18030: {\n\t\tid: \"gb18030\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"gb18030\",\n\t\ticonvLiteDecoderId: \"gb18030\"\n\t},\n\tgbk: {\n\t\tid: \"gbk\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"gbk\",\n\t\ticonvLiteDecoderId: \"gbk\"\n\t},\n\t\"georgian-academy\": {\n\t\tid: \"georgian-academy\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianacademy\"\n\t},\n\t\"georgian-ps\": {\n\t\tid: \"georgian-ps\",\n\t\tgroupId: \"georgian\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"georgianps\"\n\t},\n\t\"hp-roman8\": {\n\t\tid: \"hp-roman8\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"hproman8\"\n\t},\n\t\"hz-gb-2312\": {\n\t\tid: \"hz-gb-2312\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tibm855: {\n\t\tid: \"ibm855\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"cp855\"\n\t},\n\tibm866: {\n\t\tid: \"ibm866\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"ibm866\",\n\t\ticonvLiteDecoderId: \"cp866\"\n\t},\n\t\"iso-2022-jp\": {\n\t\tid: \"iso-2022-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-2022-jp\",\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-2022-kr\": {\n\t\tid: \"iso-2022-kr\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso-8859-1\": {\n\t\tid: \"iso-8859-1\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"iso88591\"\n\t},\n\t\"iso-8859-2\": {\n\t\tid: \"iso-8859-2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-2\",\n\t\ticonvLiteDecoderId: \"iso88592\"\n\t},\n\t\"iso-8859-5\": {\n\t\tid: \"iso-8859-5\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-5\",\n\t\ticonvLiteDecoderId: \"iso88595\"\n\t},\n\t\"iso-8859-6\": {\n\t\tid: \"iso-8859-6\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-6\",\n\t\ticonvLiteDecoderId: \"iso88596\"\n\t},\n\t\"iso-8859-7\": {\n\t\tid: \"iso-8859-7\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-7\",\n\t\ticonvLiteDecoderId: \"iso88597\"\n\t},\n\t\"iso-8859-8\": {\n\t\tid: \"iso-8859-8\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-8-i\",\n\t\ticonvLiteDecoderId: \"iso88598\"\n\t},\n\t\"iso-8859-9\": {\n\t\tid: \"iso-8859-9\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"iso88599\"\n\t},\n\t\"iso-8859-11\": {\n\t\tid: \"iso-8859-11\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"iso885911\"\n\t},\n\t\"iso-8859-13\": {\n\t\tid: \"iso-8859-13\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-13\",\n\t\ticonvLiteDecoderId: \"iso885913\"\n\t},\n\t\"iso646-cn\": {\n\t\tid: \"iso646-cn\",\n\t\tgroupId: \"chineseSimplified\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646cn\"\n\t},\n\t\"iso646-jp\": {\n\t\tid: \"iso646-jp\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"iso646jp\"\n\t},\n\tiso2022_jp_2004: {\n\t\tid: \"iso2022_jp_2004\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\tiso2022_jp_ext: {\n\t\tid: \"iso2022_jp_ext\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"iso8859-3\": {\n\t\tid: \"iso8859-3\",\n\t\tgroupId: \"southernEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-3\",\n\t\ticonvLiteDecoderId: \"iso88593\"\n\t},\n\t\"iso8859-4\": {\n\t\tid: \"iso8859-4\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-4\",\n\t\ticonvLiteDecoderId: \"iso88594\"\n\t},\n\t\"iso8859-10\": {\n\t\tid: \"iso8859-10\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-10\",\n\t\ticonvLiteDecoderId: \"iso885910\"\n\t},\n\t\"iso8859-14\": {\n\t\tid: \"iso8859-14\",\n\t\tgroupId: \"celtic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-14\",\n\t\ticonvLiteDecoderId: \"iso885914\"\n\t},\n\t\"iso8859-15\": {\n\t\tid: \"iso8859-15\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-15\",\n\t\ticonvLiteDecoderId: \"iso885915\"\n\t},\n\t\"iso8859-16\": {\n\t\tid: \"iso8859-16\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"iso-8859-16\",\n\t\ticonvLiteDecoderId: \"iso885916\"\n\t},\n\tjohab: {\n\t\tid: \"johab\",\n\t\tgroupId: \"korean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: null\n\t},\n\t\"koi8-r\": {\n\t\tid: \"koi8-r\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-r\",\n\t\ticonvLiteDecoderId: \"koi8r\"\n\t},\n\t\"koi8-ru\": {\n\t\tid: \"koi8-ru\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8ru\"\n\t},\n\t\"koi8-t\": {\n\t\tid: \"koi8-t\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"koi8t\"\n\t},\n\t\"koi8-u\": {\n\t\tid: \"koi8-u\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"koi8-u\",\n\t\ticonvLiteDecoderId: \"koi8u\"\n\t},\n\tkz1048: {\n\t\tid: \"kz1048\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"rk1048\"\n\t},\n\tmaccroatian: {\n\t\tid: \"maccroatian\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccroatian\"\n\t},\n\tmaccyrillic: {\n\t\tid: \"maccyrillic\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"x-mac-cyrillic\",\n\t\ticonvLiteDecoderId: \"maccyrillic\"\n\t},\n\tmacgreek: {\n\t\tid: \"macgreek\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macgreek\"\n\t},\n\tmaciceland: {\n\t\tid: \"maciceland\",\n\t\tgroupId: \"nordic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maciceland\"\n\t},\n\tmaclatin2: {\n\t\tid: \"maclatin2\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"maccenteuro\"\n\t},\n\tmacroman: {\n\t\tid: \"macroman\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"macintosh\",\n\t\ticonvLiteDecoderId: \"macroman\"\n\t},\n\tmacromania: {\n\t\tid: \"macromania\",\n\t\tgroupId: \"southEasternEuropean\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macromania\"\n\t},\n\tmacthai: {\n\t\tid: \"macthai\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macthai\"\n\t},\n\tmacturkish: {\n\t\tid: \"macturkish\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macturkish\"\n\t},\n\tmacukraine: {\n\t\tid: \"macukraine\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"macukraine\"\n\t},\n\tmik: {\n\t\tid: \"mik\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"mik\"\n\t},\n\tptcp154: {\n\t\tid: \"ptcp154\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"pt154\"\n\t},\n\tshift_jis: {\n\t\tid: \"shift_jis\",\n\t\tgroupId: \"japanese\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"shift_jis\",\n\t\ticonvLiteDecoderId: \"shiftjis\"\n\t},\n\ttcvn: {\n\t\tid: \"tcvn\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"tcvn\"\n\t},\n\t\"tis-620\": {\n\t\tid: \"tis-620\",\n\t\tgroupId: \"thai\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-874\",\n\t\ticonvLiteDecoderId: \"tis620\"\n\t},\n\t\"utf-7\": {\n\t\tid: \"utf-7\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf7\"\n\t},\n\t\"utf-8\": {\n\t\tid: \"utf-8\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-8-sig\": {\n\t\tid: \"utf-8-sig\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-8\",\n\t\ticonvLiteDecoderId: \"utf-8\"\n\t},\n\t\"utf-16\": {\n\t\tid: \"utf-16\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf16\"\n\t},\n\t\"utf-16-be\": {\n\t\tid: \"utf-16-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16be\",\n\t\ticonvLiteDecoderId: \"utf16be\"\n\t},\n\t\"utf-16-le\": {\n\t\tid: \"utf-16-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"utf-16le\",\n\t\ticonvLiteDecoderId: \"utf16le\"\n\t},\n\t\"utf-32\": {\n\t\tid: \"utf-32\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32\"\n\t},\n\t\"utf-32-be\": {\n\t\tid: \"utf-32-be\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32be\"\n\t},\n\t\"utf-32-le\": {\n\t\tid: \"utf-32-le\",\n\t\tgroupId: \"unicode\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"utf32le\"\n\t},\n\tviscii: {\n\t\tid: \"viscii\",\n\t\tgroupId: \"vietnamese\",\n\t\tisDetectable: !1,\n\t\ttextDecoderId: null,\n\t\ticonvLiteDecoderId: \"viscii\"\n\t},\n\t\"windows-1250\": {\n\t\tid: \"windows-1250\",\n\t\tgroupId: \"centralEuropean\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1250\",\n\t\ticonvLiteDecoderId: \"windows1250\"\n\t},\n\t\"windows-1251\": {\n\t\tid: \"windows-1251\",\n\t\tgroupId: \"cyrillic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1251\",\n\t\ticonvLiteDecoderId: \"windows1251\"\n\t},\n\t\"windows-1252\": {\n\t\tid: \"windows-1252\",\n\t\tgroupId: \"western\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1252\",\n\t\ticonvLiteDecoderId: \"windows1252\"\n\t},\n\t\"windows-1253\": {\n\t\tid: \"windows-1253\",\n\t\tgroupId: \"greek\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1253\",\n\t\ticonvLiteDecoderId: \"windows1253\"\n\t},\n\t\"windows-1254\": {\n\t\tid: \"windows-1254\",\n\t\tgroupId: \"turkish\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1254\",\n\t\ticonvLiteDecoderId: \"windows1254\"\n\t},\n\t\"windows-1255\": {\n\t\tid: \"windows-1255\",\n\t\tgroupId: \"hebrew\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1255\",\n\t\ticonvLiteDecoderId: \"windows1255\"\n\t},\n\t\"windows-1256\": {\n\t\tid: \"windows-1256\",\n\t\tgroupId: \"arabic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1256\",\n\t\ticonvLiteDecoderId: \"windows1256\"\n\t},\n\t\"windows-1257\": {\n\t\tid: \"windows-1257\",\n\t\tgroupId: \"baltic\",\n\t\tisDetectable: !0,\n\t\ttextDecoderId: \"windows-1257\",\n\t\ticonvLiteDecoderId: \"windows1257\"\n\t}\n}, Ee = we, M = Te;\nfunction De(e) {\n\treturn Object.hasOwn(M, e);\n}\nfunction Oe(e) {\n\treturn De(e) ? M[e].textDecoderId ?? e : e;\n}\nfunction ke(e = \"en\") {\n\treturn Array.from(Object.values(M), ({ groupId: t, iconvLiteDecoderId: n, id: r, isDetectable: i, textDecoderId: a }) => {\n\t\tlet o = t == null ? \"\" : Ae(t, e);\n\t\treturn {\n\t\t\tid: r,\n\t\t\tgroupLabel: o,\n\t\t\tlabel: o ? `${o} (${r})` : r,\n\t\t\tisDetectable: i,\n\t\t\tisDecodable: a != null,\n\t\t\ttextDecoderId: a,\n\t\t\ticonvLiteDecoderId: n\n\t\t};\n\t}).toSorted((t, n) => t.groupLabel.localeCompare(n.groupLabel, e) || t.id.localeCompare(n.id, e, { numeric: !0 }));\n}\nfunction Ae(e, t) {\n\tlet n = Ee[e].label;\n\treturn n[t] ?? n.en ?? e;\n}\n// src/errors/index.ts\nvar je = 2048, N = \"[REDACTED]\", Me = 10, Ne = /api[-_]?key|authori[sz]ation|cookie|credential|passw(?:or)?d|private[-_]?key|secret|token/i, Pe = [\n\t[/\\b(Bearer|Basic) +[\\w.~+/=-]+/gi, (e, t) => `${t} ${N}`],\n\t[/(?<![\\w-])([\\w-]+)([\"']?[ \\t]*[:=][ \\t]*[\"']?)([^\\s\"'&,;}?#]+)/g, (e, t, n, r) => Ne.test(t) && !/^(?:Basic|Bearer)$/i.test(r) ? `${t}${n}${N}` : e],\n\t[/\\beyJ[\\w-]+\\.[\\w-]+\\.[\\w-]*/g, () => N],\n\t[/\\b(?:sk-|xaat-|xapt-|sl\\.)[\\w-]{16,}/g, () => N],\n\t[/(?<![\\w.+-])[\\w.+-]+@[\\w-]+\\.[\\w.-]+/g, () => N]\n], P = class extends Error {\n\tdata;\n\tlocator;\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, r), this.name = \"DPUseError\", this.data = n, this.locator = t;\n\t}\n}, F = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"AppError\";\n\t}\n}, I = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"APIError\";\n\t}\n}, L = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"EngineError\";\n\t}\n}, Fe = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"ConnectorError\";\n\t}\n}, R = class extends P {\n\tconstructor(e, t, n, r) {\n\t\tsuper(e, t, n, r), this.name = \"FetchError\";\n\t}\n};\nasync function Ie(e, t, n) {\n\tlet r = ` - ${e.statusText}`, i = `${t} Response status '${String(e.status)}${e.statusText ? r : \"\"}' received.`, a;\n\ttry {\n\t\ta = await e.text();\n\t} catch (e) {\n\t\ta = `<body unavailable: ${z(e).message}>`;\n\t}\n\treturn new R(i, n, { body: We(a) });\n}\nfunction Le(e) {\n\treturn e.map((e) => e.message).join(\" \");\n}\nfunction Re(e) {\n\ttry {\n\t\te();\n\t} catch {}\n}\nfunction z(e) {\n\tif (e instanceof Error) return e;\n\tif (typeof e == \"string\") return Error(e);\n\tif (typeof e == \"number\" || typeof e == \"boolean\" || typeof e == \"bigint\") return Error(String(e));\n\tif (typeof e == \"symbol\") return Error(e.description ?? \"Unknown error\");\n\tif (typeof e == \"object\") try {\n\t\treturn Error(JSON.stringify(e));\n\t} catch {\n\t\treturn /* @__PURE__ */ Error(\"Unknown error\");\n\t}\n\treturn /* @__PURE__ */ Error(\"Unknown error\");\n}\nfunction ze(e) {\n\tlet t = /* @__PURE__ */ new Set(), n = [], r = z(e);\n\tfor (; r != null && !t.has(r);) {\n\t\tt.add(r);\n\t\tlet [e, i] = Ge(r), a = Ue(e);\n\t\t/(?:\\.{3}|[.!?])$/.test(a.message) || (a.message += \".\"), n.push(a), r = i;\n\t}\n\treturn n;\n}\nfunction Be(e) {\n\tlet t;\n\tfor (let n of e.toReversed()) {\n\t\tlet e = He(n, t);\n\t\tn.stack !== void 0 && (e.stack = n.stack), t = e;\n\t}\n\treturn t ?? /* @__PURE__ */ Error(\"No error to unserialise.\");\n}\nfunction Ve(e) {\n\tlet t;\n\ttry {\n\t\tt = JSON.stringify(e);\n\t} catch {\n\t\tt = typeof e == \"symbol\" ? e.description ?? \"Unknown error\" : typeof e == \"bigint\" ? e.toString() : \"Unknown error\";\n\t}\n\treturn t === \"\" && (t = \"Unknown error\"), t;\n}\nfunction He(e, t) {\n\tswitch (e.name) {\n\t\tcase \"APIError\": return new I(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"AppError\": return new F(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"ConnectorError\": return new Fe(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"EngineError\": return new L(e.message, e.locator, e.data, { cause: t });\n\t\tcase \"FetchError\": return new R(e.message, e.locator, e.data, { cause: t });\n\t\tdefault: {\n\t\t\tlet n = e.name;\n\t\t\treturn new class extends Error {\n\t\t\t\tname = n;\n\t\t\t}(e.message, { cause: t });\n\t\t}\n\t}\n}\nfunction Ue(e) {\n\tlet { data: t, message: n, stack: r } = e;\n\treturn {\n\t\t...e,\n\t\tdata: t === void 0 ? void 0 : V(t, /* @__PURE__ */ new WeakSet(), 0),\n\t\tmessage: B(n),\n\t\tstack: r === void 0 ? void 0 : B(r)\n\t};\n}\nfunction B(e) {\n\tlet t = e;\n\tfor (let [e, n] of Pe) t = t.replaceAll(e, (e, ...t) => n(e, ...t));\n\treturn t;\n}\nfunction V(e, t, n) {\n\treturn typeof e == \"string\" ? B(e) : typeof e != \"object\" || !e ? e : n >= Me ? N : t.has(e) ? \"[Circular]\" : (t.add(e), Array.isArray(e) ? e.map((e) => V(e, t, n + 1)) : Object.fromEntries(Object.entries(e).map(([e, r]) => [e, r != null && Ne.test(e) ? N : V(r, t, n + 1)])));\n}\nfunction We(e) {\n\tif (e != null && e !== \"\") return e.length > je ? `${e.slice(0, je)}... [truncated]` : e;\n}\nfunction Ge(e) {\n\tlet t = e.cause == null ? null : z(e.cause);\n\tif (e instanceof P) return [{\n\t\tdata: e.data,\n\t\tlocator: e.locator,\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t];\n\tlet n = Object.fromEntries(Object.entries(e).filter(([e]) => e !== \"cause\"));\n\treturn e.name ? [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: e.message,\n\t\tname: e.name,\n\t\tstack: e.stack\n\t}, t] : [{\n\t\tdata: n,\n\t\tlocator: \"\",\n\t\tmessage: Ve(e),\n\t\tname: \"Error\",\n\t\tstack: void 0\n\t}, null];\n}\nvar Ke = /* @__PURE__ */ C({ dataFormatIds: /* @__PURE__ */ te(/* @__PURE__ */ h(D([\n\t\"arrow\",\n\t\"avro\",\n\t\"dtv\",\n\t\"json\",\n\t\"jsonl\",\n\t\"markdown\",\n\t\"ods\",\n\t\"parquet\",\n\t\"sav\",\n\t\"sqlite\",\n\t\"xlsx\",\n\t\"xml\"\n])), /* @__PURE__ */ f(1)) }), qe = /* @__PURE__ */ h(/* @__PURE__ */ w()), Je = /* @__PURE__ */ C({\n\t...j,\n\ttypeId: /* @__PURE__ */ _(\"tool\"),\n\tactionNames: /* @__PURE__ */ x(qe),\n\tparser: /* @__PURE__ */ x(Ke)\n});\n// src/component/module/tool/delimitedText.ts\nasync function Ye(e, t, n) {\n\tlet r = Xe(e), { issues: i, parsedRecords: a, valueDelimiterId: o } = await Ze(e, t.valueDelimiterIds, t.isComplete, n);\n\treturn {\n\t\tissues: i,\n\t\tparsedRecords: a,\n\t\trecordDelimiterId: r,\n\t\tvalueDelimiterId: o\n\t};\n}\nfunction Xe(e) {\n\tlet t = (e.match(/\\r\\n/g) ?? []).length, n = (e.match(/(?<!\\r)\\n/g) ?? []).length, r = (e.match(/\\r(?!\\n)/g) ?? []).length;\n\treturn t >= n && t >= r ? \"\\r\\n\" : n >= t && n >= r ? \"\\n\" : r >= t && r >= n ? \"\\r\" : \"\\n\";\n}\nasync function Ze(e, t, n, r) {\n\tlet i, a, o, s = [], c, l = !1;\n\tfor (let u of t) {\n\t\tlet { issues: t, records: d } = await r(e, u, n);\n\t\tif (t.length > 0) {\n\t\t\tc = Qe(c, {\n\t\t\t\tdelimiter: u,\n\t\t\t\tissues: t,\n\t\t\t\trecords: d\n\t\t\t});\n\t\t\tcontinue;\n\t\t}\n\t\tif (l = !0, d.length === 0) continue;\n\t\tlet { averageValueCount: f, sumOfValueCountDiffs: p } = $e(d);\n\t\t(a === void 0 || a <= 1 || p <= (o ?? 0)) && (a === void 0 || f > a) && (i = u, a = f, o = p, s = d);\n\t}\n\tif (!l && c != null) {\n\t\tlet { delimiter: e, issues: t, records: n } = c;\n\t\treturn {\n\t\t\tissues: t,\n\t\t\tparsedRecords: n,\n\t\t\tvalueDelimiterId: H(n) ? e : void 0\n\t\t};\n\t}\n\treturn {\n\t\tissues: [],\n\t\tparsedRecords: s,\n\t\tvalueDelimiterId: i != null && H(s) ? i : void 0\n\t};\n}\nfunction Qe(e, t) {\n\treturn e == null || t.issues.length < e.issues.length ? t : e;\n}\nfunction $e(e) {\n\tlet t = 0, n = 0, r;\n\tfor (let i of e) r != null && (n += Math.abs(i.length - r)), r = i.length, t += i.length;\n\treturn {\n\t\taverageValueCount: t / e.length,\n\t\tsumOfValueCountDiffs: n\n\t};\n}\nfunction H(e) {\n\tlet t = /* @__PURE__ */ new Map();\n\tfor (let n of e) t.set(n.length, (t.get(n.length) ?? 0) + 1);\n\tlet [n = 0, r = 0] = [...t].toSorted((e, t) => t[1] - e[1])[0] ?? [];\n\treturn n > 1 && r * 2 > e.length;\n}\n// src/component/module/tool/index.ts\nvar et = \"https://engine-eu.dpuse.app/tools\", tt = { dtv: \"dpuse-tool-rust-csv-core-parser\" }, U = \"dpuse-tool-\";\nfunction W(e, t) {\n\treturn e.filter((e) => e.parser?.dataFormatIds.some((e) => e === t) === !0).toSorted((e, t) => e.id.localeCompare(t.id, \"en\"));\n}\nfunction G(e, t, n) {\n\tlet r = W(e, t), [i] = r;\n\tif (i === void 0) {\n\t\tlet n = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\tdataFormatId: t\n\t\t};\n\t\tthrow new F(`No tool reads the '${t}' data format.`, \"dpuse-shared.component.module.tool.resolveParserToolConfig\", n);\n\t}\n\tlet a = tt[t];\n\treturn r.find((e) => e.id === n) ?? r.find((e) => e.id === a) ?? i;\n}\nasync function K(e, t) {\n\tlet n = `${U}${t}`, r = e.find((e) => e.id === n);\n\tif (!r) {\n\t\tlet r = {\n\t\t\tavailableToolIds: e.map((e) => e.id),\n\t\t\ttoolName: n\n\t\t};\n\t\tthrow new F(`Tool '${t}' not found.`, \"dpuse-shared.component.module.tool.loadTool\", r);\n\t}\n\tlet i = `${et}/${t}_v${r.version}/${n}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ti\n))).Tool();\n\t} catch (e) {\n\t\tlet t = {\n\t\t\ttoolName: n,\n\t\t\turl: i,\n\t\t\tversion: r.version\n\t\t};\n\t\tthrow new F(`Failed to load tool '${n}' v${r.version}.`, \"dpuse-shared.component.module.tool.loadTool\", t, { cause: e });\n\t}\n}\n// src/component/module/connector/objectParsing.ts\nvar nt = \"\\n\", q = \",\", rt = 13, J = 10, it = 34, Y = 1048576;\nasync function at(e) {\n\tlet { asAt: t, declaredColumnConfigs: n, declaredReadingConfig: r, filePreview: i, inferDataTypes: a, readingChoiceConfig: o, startedAt: s, toolConfigs: c } = e, { isComplete: l, text: u } = i, d = r != null, f = i.bytes.length, p = {\n\t\tdecodedEncodingId: i.decodedEncodingId,\n\t\treplacementCharacterCount: i.replacementCharacterCount\n\t}, m = i.encodingCandidates, h = {\n\t\tencodingConfidenceLevel: i.encodingConfidenceLevel,\n\t\tencodingId: r?.encodingId ?? i.encodingId,\n\t\tencodingSourceId: r?.encodingId == null ? i.encodingSourceId : void 0\n\t};\n\tif (f === 0) return {\n\t\tcontentAuditConfig: lt({\n\t\t\tasAt: t,\n\t\t\tcolumns: [],\n\t\t\tisComplete: !0,\n\t\t\trecordCount: 0,\n\t\t\tsize: f,\n\t\t\tstartedAt: s\n\t\t}),\n\t\tsampleConfig: {\n\t\t\t...p,\n\t\t\tissues: [{\n\t\t\t\tendLineNumber: void 0,\n\t\t\t\tfieldNumber: void 0,\n\t\t\t\tid: \"empty\",\n\t\t\t\tlineNumber: void 0,\n\t\t\t\tmessage: \"The file is empty.\",\n\t\t\t\trecordNumber: void 0,\n\t\t\t\tseverityId: \"info\",\n\t\t\t\tvalue: void 0\n\t\t\t}],\n\t\t\tdataFormatId: \"dtv\",\n\t\t\thasHeaders: !1,\n\t\t\tparsedRecords: [],\n\t\t\tparserId: void 0,\n\t\t\trecordDelimiterId: nt,\n\t\t\tsize: 0,\n\t\t\ttext: void 0,\n\t\t\tvalueDelimiterId: q\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: \"dtv\",\n\t\t\tdataFormatSourceId: void 0,\n\t\t\t...h,\n\t\t\tfileType: void 0,\n\t\t\thasHeaders: !1,\n\t\t\tisDeclared: d,\n\t\t\tparserId: void 0,\n\t\t\trecordDelimiterId: nt,\n\t\t\tvalueDelimiterId: q\n\t\t},\n\t\tencodingCandidates: m\n\t};\n\tlet g = r?.dataFormatId ?? i.dataFormatId, _ = r?.valueDelimiterId, v = await pt({\n\t\tdataFormatId: g,\n\t\tisComplete: l,\n\t\tparserId: void 0,\n\t\ttext: u,\n\t\ttoolConfigs: c,\n\t\tvalueDelimiterId: _\n\t}), y = o?.dataFormatId ?? g, b = o?.dataFormatId != null || o?.parserId != null || o?.valueDelimiterId != null, x = b ? await pt({\n\t\tdataFormatId: y,\n\t\tisComplete: l,\n\t\tparserId: o.parserId,\n\t\ttext: u,\n\t\ttoolConfigs: c,\n\t\tvalueDelimiterId: _ ?? o.valueDelimiterId\n\t}) : v, S = x?.parseTextResult.parsedRecords ?? [], C = x == null ? void 0 : a(S, r?.hasHeaders, n), w = b && v != null ? a(v.parseTextResult.parsedRecords, r?.hasHeaders, n) : C;\n\treturn {\n\t\tcontentAuditConfig: lt({\n\t\t\tasAt: t,\n\t\t\tcolumns: C?.columnConfigs ?? [],\n\t\t\tisComplete: l,\n\t\t\trecordCount: Math.max(0, S.length - +(C?.hasHeaders === !0)),\n\t\t\tsize: f,\n\t\t\tstartedAt: s\n\t\t}),\n\t\tsampleConfig: {\n\t\t\t...p,\n\t\t\tdataFormatId: y ?? \"unknown\",\n\t\t\thasHeaders: C?.hasHeaders,\n\t\t\tissues: x?.parseTextResult.issues ?? [],\n\t\t\tparsedRecords: S,\n\t\t\tparserId: x?.parserId,\n\t\t\trecordDelimiterId: x?.parseTextResult.recordDelimiterId,\n\t\t\tsize: f,\n\t\t\ttext: u,\n\t\t\tvalueDelimiterId: x?.valueDelimiterId\n\t\t},\n\t\treadingConfig: {\n\t\t\tdataFormatId: g ?? \"unknown\",\n\t\t\tdataFormatSourceId: r == null ? i.dataFormatSourceId : void 0,\n\t\t\t...h,\n\t\t\tfileType: i.fileTypeConfig,\n\t\t\thasHeaders: w?.hasHeaders,\n\t\t\tisDeclared: d,\n\t\t\tparserId: v?.parserId,\n\t\t\trecordDelimiterId: v?.parseTextResult.recordDelimiterId,\n\t\t\tvalueDelimiterId: v?.valueDelimiterId\n\t\t},\n\t\tencodingCandidates: m\n\t};\n}\nasync function* ot(e) {\n\tlet { options: t, signal: n, stream: r, toolConfigs: i } = e, { encodingId: a, valueDelimiterId: o } = ct(t), { parser: s } = await X(i, t.dataFormatId, t.parserId), { recordCount: c } = yield* s.parseStream(r, {\n\t\tabortSignal: n,\n\t\tchunkSize: t.chunkSize,\n\t\tdataFormatId: t.dataFormatId,\n\t\tencodingId: a,\n\t\tvalueDelimiterId: o\n\t});\n\treturn { recordCount: c };\n}\nasync function st(e) {\n\tlet { constructColumnAuditor: t, declaredColumnConfigs: n, onProgress: r, options: i, signal: a, stream: o, toolConfigs: s } = e, { encodingId: c, valueDelimiterId: l } = ct(i), u = Date.now(), d = performance.now(), f = t(i.hasHeaders, n), { parser: p } = await X(s, i.dataFormatId, i.parserId), m = ft(o), h = ut(m.stream, {\n\t\tbyteLimit: i.byteLimit,\n\t\tencodingId: c,\n\t\tstopSignal: i.stopSignal\n\t}), g = p.parseStream(h.stream, {\n\t\tabortSignal: a,\n\t\tchunkSize: i.chunkSize,\n\t\tdataFormatId: i.dataFormatId,\n\t\tencodingId: c,\n\t\tvalueDelimiterId: l\n\t}), _ = await g.next();\n\tfor (; _.done !== !0;) {\n\t\ttry {\n\t\t\tf.auditRecords(_.value.records), r(_.value.records.length, h.byteCount());\n\t\t} catch (e) {\n\t\t\tthrow await g.throw(e), e;\n\t\t}\n\t\t_ = await g.next();\n\t}\n\tlet v = _.value, { columnConfigs: y, hasHeaders: b } = f.completeAudit();\n\treturn {\n\t\tcontentAuditConfig: {\n\t\t\tasAt: u,\n\t\t\tbyteCount: h.byteCount(),\n\t\t\tcolumns: y,\n\t\t\tcommentLineCount: v.commentLineCount,\n\t\t\tduration: performance.now() - d,\n\t\t\temptyLineCount: v.emptyLineCount,\n\t\t\tinvalidFieldLengthCount: v.nonUniformRecordCount,\n\t\t\tisComplete: h.isComplete(),\n\t\t\tlineCount: v.lineCount,\n\t\t\trecordCount: Math.max(0, v.recordCount - +!!b),\n\t\t\tsourceWaitDuration: m.waitDuration()\n\t\t},\n\t\thasHeaders: b\n\t};\n}\nfunction ct(e) {\n\tif (e.encodingId == null || e.valueDelimiterId == null) throw Error(`'${e.path}' has no encoding or value delimiter, which a parser needs to read it.`);\n\treturn {\n\t\tencodingId: e.encodingId,\n\t\tvalueDelimiterId: e.valueDelimiterId\n\t};\n}\nfunction lt(e) {\n\tlet { asAt: t, columns: n, isComplete: r, recordCount: i, size: a, startedAt: o } = e;\n\treturn {\n\t\tasAt: t,\n\t\tbyteCount: a,\n\t\tcolumns: n,\n\t\tcommentLineCount: void 0,\n\t\tduration: performance.now() - o,\n\t\temptyLineCount: void 0,\n\t\tinvalidFieldLengthCount: void 0,\n\t\tisComplete: r,\n\t\tlineCount: void 0,\n\t\trecordCount: i,\n\t\tsourceWaitDuration: void 0\n\t};\n}\nfunction ut(e, t) {\n\tlet n = e.getReader(), r = dt(t.encodingId), i = 0, a = !1, o;\n\treturn {\n\t\tbyteCount: () => i,\n\t\tisComplete: () => a,\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet s = o;\n\t\t\t\tif (s == null) {\n\t\t\t\t\tlet t = await n.read();\n\t\t\t\t\tif (t.done) {\n\t\t\t\t\t\ta = !0, e.close();\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n\t\t\t\t\ts = t.value;\n\t\t\t\t}\n\t\t\t\tlet c = s.subarray(0, Y);\n\t\t\t\to = s.length > Y ? s.subarray(Y) : void 0;\n\t\t\t\tlet l = t.stopSignal?.aborted === !0 ? i : t.byteLimit ?? Infinity, u = r(c, i, l - i);\n\t\t\t\tu == null ? (i += c.length, e.enqueue(c)) : (i += u, o = void 0, e.enqueue(c.subarray(0, u)), e.close(), await n.cancel());\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn n.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 })\n\t};\n}\nfunction dt(e) {\n\tlet t = Oe(e), n = t.startsWith(\"utf-16\"), r = n ? 2 : 1, i = +(t === \"utf-16be\"), a = !1;\n\treturn (e, t, o) => {\n\t\tfor (let s = 0; s < e.length; s++) {\n\t\t\tlet c = e[s];\n\t\t\tif ((c === it || c === J || c === rt) && (!n || (t + s) % 2 === i && e[s + 1 - 2 * i] === 0)) {\n\t\t\t\tif (c === it) a = !a;\n\t\t\t\telse if (!a && s >= o && (c === J || e[s + r] !== J)) return s + r - i;\n\t\t\t}\n\t\t}\n\t};\n}\nfunction ft(e) {\n\tlet t = e.getReader(), n = 0;\n\treturn {\n\t\tstream: new ReadableStream({\n\t\t\tasync pull(e) {\n\t\t\t\tlet r = performance.now(), i = await t.read();\n\t\t\t\tn += performance.now() - r, i.done ? e.close() : e.enqueue(i.value);\n\t\t\t},\n\t\t\tcancel(e) {\n\t\t\t\treturn t.cancel(e);\n\t\t\t}\n\t\t}, { highWaterMark: 0 }),\n\t\twaitDuration: () => n\n\t};\n}\nasync function pt(e) {\n\tlet { dataFormatId: t, isComplete: n, parserId: r, text: i, toolConfigs: a, valueDelimiterId: o } = e;\n\tif (t == null || i == null || W(a, t).length === 0) return;\n\tlet { parser: s, parserId: c } = await X(a, t, r), l = o == null ? A.map(({ id: e }) => e) : [o], u = await s.parseText(i, {\n\t\tdataFormatId: t,\n\t\tisComplete: n,\n\t\tvalueDelimiterIds: l\n\t}), d = t === \"dtv\", f = d && o == null && u.valueDelimiterId == null ? await s.parseText(i, {\n\t\tdataFormatId: t,\n\t\tisComplete: n,\n\t\tvalueDelimiterIds: [q]\n\t}) : u;\n\treturn {\n\t\tparserId: c,\n\t\tparseTextResult: f,\n\t\tvalueDelimiterId: d ? o ?? f.valueDelimiterId ?? q : f.valueDelimiterId\n\t};\n}\nasync function X(e, t, n) {\n\tlet r = G(e, t, n);\n\treturn {\n\t\tparser: await K(e, r.id.slice(U.length)),\n\t\tparserId: r.id\n\t};\n}\n// src/component/module/connector/storeValues.ts\nfunction mt(e) {\n\treturn e.map((e) => ({\n\t\tvalue: ht(e),\n\t\tvalueWasQuoted: !1\n\t}));\n}\nfunction ht(e) {\n\treturn e == null ? null : e instanceof Date ? e.toISOString() : String(e);\n}\nvar gt = /* @__PURE__ */ v({ fields: /* @__PURE__ */ h(/* @__PURE__ */ v({\n\tformat: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\tname: /* @__PURE__ */ w(),\n\ttitle: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\ttype: /* @__PURE__ */ x(/* @__PURE__ */ w())\n})) }), _t = /* @__PURE__ */ v({\n\tdelimiter: /* @__PURE__ */ x(/* @__PURE__ */ w()),\n\theader: /* @__PURE__ */ x(/* @__PURE__ */ g()),\n\theaderRows: /* @__PURE__ */ x(/* @__PURE__ */ h(/* @__PURE__ */ b()))\n}), vt = {\n\tboolean: {\n\t\tdataSubtypeId: void 0,\n\t\tdataTypeId: \"boolean\"\n\t},\n\tdate: {\n\t\tdataSubtypeId: \"date\",\n\t\tdataTypeId: \"temporal\"\n\t},\n\tdatetime: {\n\t\tdataSubtypeId: \"dateTime\",\n\t\tdataTypeId: \"temporal\"\n\t},\n\tinteger: {\n\t\tdataSubtypeId: \"integer\",\n\t\tdataTypeId: \"numeric\"\n\t},\n\tnumber: {\n\t\tdataSubtypeId: \"decimal\",\n\t\tdataTypeId: \"numeric\"\n\t},\n\tstring: {\n\t\tdataSubtypeId: \"plain\",\n\t\tdataTypeId: \"string\"\n\t},\n\ttime: {\n\t\tdataSubtypeId: \"time\",\n\t\tdataTypeId: \"temporal\"\n\t},\n\tyear: {\n\t\tdataSubtypeId: \"integer\",\n\t\tdataTypeId: \"numeric\"\n\t}\n}, yt = {\n\temail: \"email\",\n\turi: \"url\",\n\tuuid: \"uuid\"\n};\nfunction bt(e) {\n\tlet t = /* @__PURE__ */ ne(gt, e.schema);\n\tif (!t.success) throw new F(\"The table schema is not valid.\", \"dpuse-shared.component.module.connector.tableSchema.readTableSchema\");\n\tlet n = /* @__PURE__ */ ne(_t, e.dialect ?? {});\n\tif (!n.success) throw new F(\"The table dialect is not valid.\", \"dpuse-shared.component.module.connector.tableSchema.readTableSchema\");\n\tlet r = t.output.fields.map((e) => {\n\t\tlet t = xt(e.type, e.format);\n\t\treturn {\n\t\t\tname: e.name,\n\t\t\tlabel: e.title,\n\t\t\tdataTypeId: t.dataTypeId,\n\t\t\tdataSubtypeId: t.dataSubtypeId\n\t\t};\n\t}), { delimiter: i = \",\", header: a = !0, headerRows: o = [1] } = n.output;\n\treturn {\n\t\tdeclaredColumnConfigs: r,\n\t\tdeclaredReadingConfig: {\n\t\t\tdataFormatId: \"dtv\",\n\t\t\tencodingId: e.encoding?.toLowerCase(),\n\t\t\thasHeaders: a && o.length > 0,\n\t\t\tvalueDelimiterId: A.find(({ character: e }) => e === i)?.id\n\t\t}\n\t};\n}\nfunction xt(e, t) {\n\tlet n = e == null ? void 0 : vt[e];\n\treturn n == null ? {\n\t\tdataSubtypeId: void 0,\n\t\tdataTypeId: void 0\n\t} : t == null || n.dataTypeId !== \"string\" ? n : {\n\t\tdataSubtypeId: yt[t] ?? \"plain\",\n\t\tdataTypeId: \"string\"\n\t};\n}\n// src/component/module/connector/index.ts\nvar St = [\n\t{\n\t\tid: \"application\",\n\t\tlabel: {\n\t\t\ten: \"Application\",\n\t\t\tes: \"Aplicación\"\n\t\t}\n\t},\n\t{\n\t\tid: \"curatedDataset\",\n\t\tlabel: {\n\t\t\ten: \"Curated Dataset\",\n\t\t\tes: \"Conjunto de Datos Curado\"\n\t\t}\n\t},\n\t{\n\t\tid: \"database\",\n\t\tlabel: {\n\t\t\ten: \"Database\",\n\t\t\tes: \"Base de Datos\"\n\t\t}\n\t},\n\t{\n\t\tid: \"fileStore\",\n\t\tlabel: {\n\t\t\ten: \"File Store\",\n\t\t\tes: \"Almacén de Archivos\"\n\t\t}\n\t}\n], Ct = [\n\t{\n\t\tid: \"apiEndpoint\",\n\t\tlabel: {\n\t\t\ten: \"API Endpoint\",\n\t\t\tes: \"Endpoint de API\"\n\t\t}\n\t},\n\t{\n\t\tid: \"file\",\n\t\tlabel: {\n\t\t\ten: \"File\",\n\t\t\tes: \"Archivo\"\n\t\t}\n\t},\n\t{\n\t\tid: \"table\",\n\t\tlabel: {\n\t\t\ten: \"Table\",\n\t\t\tes: \"Tabla\"\n\t\t}\n\t}\n], wt = {\n\tabortOperation: \"Abort Operation\",\n\tauditObjectContent: \"Audit Object Content\",\n\tcloseStore: \"Close Store\",\n\tcreateObject: \"Create Object\",\n\tdescribeConnection: \"Describe Connection\",\n\tdropObject: \"Drop Object\",\n\tfindObject: \"Find Object\",\n\tgetInfo: \"Get Info\",\n\tgetReadableStream: \"Get Readable Stream\",\n\tgetRecord: \"Get Record\",\n\tlistNodes: \"List Nodes\",\n\tloadObjectRecords: \"Load Object Records\",\n\topenStore: \"Open Store\",\n\tpreviewObject: \"Preview Object\",\n\tqueryRecords: \"Query Records\",\n\tremoveRecords: \"Remove Records\",\n\tretrieveRecords: \"Retrieve Records\",\n\tupsertRecords: \"Upsert Records\"\n}, Tt = [\n\t{\n\t\tid: \"bidirectional\",\n\t\tlabel: {\n\t\t\ten: \"Bidirectional\",\n\t\t\tes: \"Bidireccional\"\n\t\t}\n\t},\n\t{\n\t\tid: \"destination\",\n\t\tlabel: {\n\t\t\ten: \"Destination\",\n\t\t\tes: \"Destino\"\n\t\t}\n\t},\n\t{\n\t\tid: \"source\",\n\t\tlabel: {\n\t\t\ten: \"Source\",\n\t\t\tes: \"Origen\"\n\t\t}\n\t},\n\t{\n\t\tid: \"unknown\",\n\t\tlabel: {\n\t\t\ten: \"Unknown\",\n\t\t\tes: \"Desconocido\"\n\t\t}\n\t}\n], Et = /* @__PURE__ */ new Set([\n\t\"createObject\",\n\t\"dropObject\",\n\t\"loadObjectRecords\",\n\t\"removeRecords\",\n\t\"upsertRecords\"\n]), Dt = /* @__PURE__ */ new Set([\n\t\"auditObjectContent\",\n\t\"findObject\",\n\t\"getInfo\",\n\t\"getReadableStream\",\n\t\"getRecord\",\n\t\"listNodes\",\n\t\"previewObject\",\n\t\"queryRecords\",\n\t\"retrieveRecords\"\n]);\nfunction Ot(e) {\n\tlet t = !1, n = !1;\n\tfor (let r of e) Dt.has(r) && (t = !0), Et.has(r) && (n = !0);\n\treturn t && n ? \"bidirectional\" : t ? \"source\" : n ? \"destination\" : \"unknown\";\n}\nvar kt = (e, t = \"en\") => {\n\tlet i = St.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, At = (e, t = \"en\") => {\n\tlet i = Ct.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n}, jt = (e, t = \"en\") => {\n\tlet i = Tt.find((t) => t.id === e);\n\treturn i ? {\n\t\tlabel: r(n(i.label), t) ?? i.id,\n\t\tdescription: \"\"\n\t} : {\n\t\tlabel: e,\n\t\tdescription: \"\"\n\t};\n};\nfunction Mt(e) {\n\tlet t = new Set(e), n = \"|Action|Supported|\\n\";\n\tn += \"|:----|:-------:|\\n\";\n\tfor (let e of Object.keys(wt)) n += `| ${wt[e]} | ${t.has(e) ? \"✓\" : \"\"} |\\n`;\n\treturn n;\n}\n// src/component/module/cookbook/cookbookConfig.schema.ts\nvar Nt = D([\"list\"]), Pt = /* @__PURE__ */ C({\n\t...j,\n\ttypeId: /* @__PURE__ */ _(\"cookbook\"),\n\tactionNames: /* @__PURE__ */ h(Nt),\n\trecipes: /* @__PURE__ */ h(k)\n}), Ft = D([\n\t\"list\",\n\t\"render\",\n\t\"setColorMode\"\n]), It = /* @__PURE__ */ C({\n\t...j,\n\ttypeId: /* @__PURE__ */ _(\"presenter\"),\n\tactionNames: /* @__PURE__ */ h(Ft),\n\tpresentations: /* @__PURE__ */ h(k)\n}), Lt = \"https://engine-eu.dpuse.app/presenters\";\nasync function Rt(e, t, n, r) {\n\tlet i = e.id, a = `${Lt}/${i.split(\"-\").slice(2).join(\"-\")}_v${e.version}/${i}.es.js`;\n\ttry {\n\t\treturn new (await (import(\n\t\t\t/* @vite-ignore */\n\t\t\ta\n))).Presenter(t, n, r);\n\t} catch (t) {\n\t\tlet n = {\n\t\t\tpresenterName: i,\n\t\t\turl: a,\n\t\t\tversion: e.version\n\t\t};\n\t\tthrow new F(`Failed to load presenter '${i}' v${e.version}.`, \"dpuse-shared.component.module.presenter.loadPresenter\", n, { cause: t });\n\t}\n}\n// src/locale/index.ts\nfunction zt(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t};\n}\nfunction Bt(e, t, n = !1) {\n\tlet r = e.map((e) => ({\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\",\n\t\tverb: e.verb?.[t] ?? void 0\n\t}));\n\treturn n ? r.toSorted((e, t) => e.label.localeCompare(t.label) || e.id.localeCompare(t.id)) : r;\n}\nfunction Vt(e, t) {\n\treturn {\n\t\t...e,\n\t\tlabel: e.label[t] ?? e.id,\n\t\tdescription: e.description[t] ?? e.description.en ?? \"\"\n\t};\n}\n// src/utilities/index.ts\nvar Ht = /* @__PURE__ */ new Map([\n\t[\"arrow\", \"application/vnd.apache.arrow.file\"],\n\t[\"avro\", \"application/vnd.apache.avro\"],\n\t[\"bin\", \"application/octet-stream\"],\n\t[\"cfb\", \"application/x-cfb\"],\n\t[\"csv\", \"text/csv\"],\n\t[\"dat\", \"application/octet-stream\"],\n\t[\"json\", \"application/json\"],\n\t[\"jsonl\", \"application/jsonl\"],\n\t[\"md\", \"text/markdown\"],\n\t[\"ods\", \"application/vnd.oasis.opendocument.spreadsheet\"],\n\t[\"parquet\", \"application/vnd.apache.parquet\"],\n\t[\"sav\", \"application/x-spss-sav\"],\n\t[\"sqlite\", \"application/vnd.sqlite3\"],\n\t[\"tab\", \"text/tab-separated-values\"],\n\t[\"tsv\", \"text/tab-separated-values\"],\n\t[\"txt\", \"text/plain\"],\n\t[\"xls\", \"application/vnd.ms-excel\"],\n\t[\"xlsm\", \"application/vnd.ms-excel.sheet.macroEnabled.12\"],\n\t[\"xlsx\", \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\"],\n\t[\"xml\", \"application/xml\"]\n]), Z = \"en\", Q = [\n\t[\"day\", 864e5],\n\t[\"hour\", 36e5],\n\t[\"minute\", 6e4],\n\t[\"second\", 1e3],\n\t[\"millisecond\", 1]\n], Ut = [\n\t[\"byte\", 1],\n\t[\"kilobyte\", 1024],\n\t[\"megabyte\", 1048576],\n\t[\"gigabyte\", 1073741824],\n\t[\"terabyte\", 1099511627776]\n], Wt = /* @__PURE__ */ new Map(), Gt = /* @__PURE__ */ new Map();\nfunction Kt(e, t = 2, n = t, r = Z) {\n\treturn e == null ? \"\" : $(r, {\n\t\tlocaleMatcher: \"best fit\",\n\t\tmaximumFractionDigits: t,\n\t\tminimumFractionDigits: Math.min(n, t),\n\t\tminimumIntegerDigits: 1,\n\t\tstyle: \"decimal\",\n\t\tuseGrouping: !0\n\t}).format(e);\n}\nfunction qt(e, t = Z) {\n\treturn Kt(e, 0, 0, t);\n}\nfunction Jt(e, t = 1, n = Z) {\n\treturn e == null || !Number.isFinite(e) ? \"\" : $(n, {\n\t\tmaximumFractionDigits: t,\n\t\tnotation: \"compact\"\n\t}).format(e);\n}\nfunction Yt(e, t = 1, n = Z) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet [r, i] = Ut.find(([, n]) => an(Math.abs(e) / n, n === 1 ? 0 : t) < 1024) ?? [\"terabyte\", 1099511627776];\n\treturn $(n, {\n\t\tmaximumFractionDigits: i === 1 ? 0 : t,\n\t\tstyle: \"unit\",\n\t\tunit: r,\n\t\tunitDisplay: i === 1 ? \"long\" : \"short\"\n\t}).format(e / i);\n}\nfunction Xt(e, t = \"millisecond\", n = Z) {\n\tif (e == null || !Number.isFinite(e)) return \"\";\n\tlet r = Math.round(Math.abs(e)), i = Q.findIndex(([, e]) => r >= e), a = i === -1 ? Q.length - 1 : i, o = Q.findIndex(([e]) => e === t), s = Q.slice(a, Math.max(o, a) + 1), c = [];\n\tfor (let [t, i] of s) {\n\t\tlet a = Math.floor(r / i);\n\t\tif (a === 0 && c.length > 0) continue;\n\t\tr -= a * i;\n\t\tlet o = c.length === 0 && e < 0 && a > 0 ? -a : a;\n\t\tc.push($(n, {\n\t\t\tstyle: \"unit\",\n\t\t\tunit: t,\n\t\t\tunitDisplay: \"short\"\n\t\t}).format(o));\n\t}\n\treturn rn(n).format(c);\n}\nfunction Zt(e) {\n\tif (!e) return;\n\tlet t = nn(e);\n\treturn t === void 0 ? e : e.slice(0, t);\n}\nfunction Qt(e) {\n\tif (!e) return;\n\tlet t = nn(e);\n\treturn t === void 0 ? void 0 : e.slice(t + 1);\n}\nfunction $t(e) {\n\treturn e != null && Ht.has(e.toLowerCase());\n}\nfunction en(e) {\n\treturn (e == null ? void 0 : Ht.get(e.toLowerCase())) ?? \"application/octet-stream\";\n}\nfunction tn(e) {\n\tswitch (e) {\n\t\tcase \"Edm.Boolean\": return \"boolean\";\n\t\tcase \"Edm.Byte\":\n\t\tcase \"Edm.Int16\":\n\t\tcase \"Edm.Int32\":\n\t\tcase \"Edm.Int64\":\n\t\tcase \"Edm.SByte\": return \"wholeNumber\";\n\t\tcase \"Edm.Decimal\":\n\t\tcase \"Edm.Double\":\n\t\tcase \"Edm.Single\": return \"decimalNumber\";\n\t\tcase \"Edm.Date\":\n\t\tcase \"Edm.DateTime\":\n\t\tcase \"Edm.DateTimeOffset\": return \"moment\";\n\t\tcase \"Edm.Time\":\n\t\tcase \"Edm.TimeOfDay\": return \"momentTime\";\n\t\tcase \"Edm.Guid\":\n\t\tcase \"Edm.String\": return \"string\";\n\t\tdefault: return \"unknown\";\n\t}\n}\nfunction nn(e) {\n\tlet t = e.lastIndexOf(\"/\") + 1, n = e.lastIndexOf(\".\");\n\treturn n > t && n < e.length - 1 ? n : void 0;\n}\nfunction rn(e) {\n\tlet t = Wt.get(e);\n\treturn t || (t = new Intl.ListFormat(e, {\n\t\tstyle: \"narrow\",\n\t\ttype: \"unit\"\n\t}), Wt.set(e, t)), t;\n}\nfunction $(e, t) {\n\tlet n = `${e}|${JSON.stringify(t)}`, r = Gt.get(n);\n\treturn r || (r = new Intl.NumberFormat(e, t), Gt.set(n, r)), r;\n}\nfunction an(e, t) {\n\tlet n = 10 ** t;\n\treturn Math.round(e * n) / n;\n}\nexport { I as APIError, F as AppError, Fe as ConnectorError, fe as DATA_FORMAT_CONFIGS, pe as DATA_TYPE_CONFIGS, me as DECIMAL_SEPARATOR_IDS, e as DEFAULT_LOCALE_ID, Ee as ENCODING_GROUP_CONFIG_MAP, M as ENCODING_TYPE_CONFIG_MAP, L as EngineError, R as FetchError, t as SUPPORTED_LANGUAGES, U as TOOL_NAME_PREFIX, A as VALUE_DELIMITER_CONFIGS, st as auditObjectContentWithParser, Ie as buildFetchError, at as buildPreviewObjectResult, le as componentInstanceConfigSchema, Le as concatenateSerialisedErrorMessages, Ce as connectorConfigSchema, kt as constructConnectorCategoryConfig, At as constructConnectorItemTypeConfig, jt as constructConnectorUsageConfig, tn as convertODataTypeIdToUsageTypeId, mt as convertStoreRecordToParsedRecord, ht as convertStoreValueToText, Pt as cookbookConfigSchema, n as createLabelMap, Ot as determineConnectorUsageId, Qt as extractExtensionFromPath, Zt as extractPathWithoutExtension, Kt as formatNumberAsDecimalNumber, Xt as formatNumberAsDuration, Jt as formatNumberAsSize, Yt as formatNumberAsStorageSize, qt as formatNumberAsWholeNumber, de as getComponentStatus, Mt as getConnectorActionsTable, ke as getEncodingTypeConfigs, he as getValueDelimiterCharacter, $t as hasMimeTypeForExtension, Re as ignoreErrors, De as isEncodingTypeId, W as listParserToolConfigs, Rt as loadPresenter, K as loadTool, zt as localiseConfig, Bt as localiseConfigs, Vt as localiseReference, en as lookupMimeTypeForExtension, z as normalizeToError, Ye as parseDelimitedText, It as presenterConfigSchema, bt as readTableSchema, Oe as resolveDecoderId, r as resolveLabel, G as resolveParserToolConfig, ot as retrieveRecordsWithParser, ze as serialiseError, Je as toolConfigSchema, Be as unserialiseError };\n","// ── DPUse Framework\nimport { ConnectorError, getValueDelimiterCharacter, ignoreErrors, parseDelimitedText, resolveDecoderId } from '@dpuse/dpuse-shared'; // TODO: This should be Module or Tool error?\nimport type {\n ParsedRecord,\n ParsedRecordsChunk,\n ParserInterface,\n ParseStreamOptions,\n ParseStreamSummary,\n ParseTextOptions,\n ParseTextResult,\n SampleIssue,\n ValueDelimiterId\n} from '@dpuse/dpuse-shared';\n\n// ── Local Framework\nimport type * as RustModule from '../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js';\n\n// ── Types ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\ntype RustBindings = typeof RustModule;\n\ninterface Utf8Transcoder {\n finish: () => Uint8Array;\n transcode: (bytes: Uint8Array) => Uint8Array;\n}\n\nexport interface CsvProcessingOptions {\n delimiter?: string;\n hasHeaders?: boolean;\n}\n\nexport interface CsvProcessingSummary {\n processedRowCount: number;\n failedRowCount: number;\n durationMs?: number;\n}\n\n// ── Constants ────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nexport const config = {\n id: 'rust-csv-core',\n name: 'Rust CSV Core',\n version: '0.1.0'\n} as const;\n\nconst DEFAULT_CHUNK_SIZE = 10_000;\n\n// WebKit hands over a file stream in pieces of about 18 MB, against about 2 MB in Chromium. Each piece is copied into\n// WebAssembly memory, which never shrinks, so pieces that large grew it to 567 MB. Each piece is read in slices of this\n// size instead. A slice is a view, not a copy.\nconst MAX_SLICE_BYTE_COUNT = 1_048_576;\n\n// ── State ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nconst state: { rustBindingsPromise: Promise<RustBindings> | undefined } = {\n rustBindingsPromise: undefined\n};\n\n// ── Tools ────────────────────────────────────────────────────────────────────────────────────────────────────────────\n\n/**\n * Parses CSV with a Rust core compiled to WebAssembly, in one of two modes: a transferable ReadableStream where the\n * browser supports one (Chromium), or chunk by chunk where it does not (Safari).\n */\nexport class Tool implements ParserInterface {\n readonly config = config;\n\n /**\n * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is\n * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.\n */\n async *parseStream(stream: ReadableStream<Uint8Array>, options: ParseStreamOptions): AsyncGenerator<ParsedRecordsChunk, ParseStreamSummary, undefined> {\n const { RecordReader } = await loadRustBindings();\n options.abortSignal.throwIfAborted();\n const recordReader = new RecordReader(convertDelimiterToByte(options.valueDelimiterId));\n const transcoder = constructUtf8Transcoder(options.encodingId);\n const recordsPerChunk = Math.max(1, Math.floor(options.chunkSize ?? DEFAULT_CHUNK_SIZE));\n const reader = stream.getReader();\n // The stream may not be tied to the signal, so an abort cancels the read rather than waiting for the next chunk.\n const cancelRead = (): void => {\n ignoreErrors(() => void reader.cancel(options.abortSignal.reason));\n };\n options.abortSignal.addEventListener('abort', cancelRead, { once: true });\n\n let records: ParsedRecord[] = [];\n // Hands over each chunk as it fills. Nothing more is read until the receiver asks for the next one, so a slow\n // receiver holds the read back.\n function* takeFullChunks(batch: RustModule.RecordBatch): Generator<ParsedRecordsChunk> {\n for (const record of unpackRecordBatch(batch)) {\n records.push(record);\n if (records.length < recordsPerChunk) continue;\n const fullRecords = records;\n records = [];\n yield { records: fullRecords, typeId: 'parsingRecordArray' };\n }\n }\n\n try {\n let result = await reader.read();\n while (!result.done) {\n options.abortSignal.throwIfAborted();\n const bytes = transcoder == null ? result.value : transcoder.transcode(result.value);\n for (let sliceStart = 0; sliceStart < bytes.length; sliceStart += MAX_SLICE_BYTE_COUNT) {\n yield* takeFullChunks(recordReader.pushChunk(bytes.subarray(sliceStart, sliceStart + MAX_SLICE_BYTE_COUNT)));\n }\n result = await reader.read();\n }\n options.abortSignal.throwIfAborted();\n if (transcoder != null) yield* takeFullChunks(recordReader.pushChunk(transcoder.finish()));\n yield* takeFullChunks(recordReader.finish());\n if (records.length > 0) yield { records, typeId: 'parsingRecordArray' };\n return {\n byteCount: recordReader.byteCount,\n commentLineCount: 0, // Comments are not read, as csv-parse is set up in 'dpuse-tool-adaltas-csv-parser'.\n emptyLineCount: recordReader.emptyLineCount,\n lineCount: recordReader.lineCount,\n nonUniformRecordCount: recordReader.nonUniformRecordCount,\n recordCount: recordReader.recordCount\n };\n } finally {\n options.abortSignal.removeEventListener('abort', cancelRead);\n recordReader.free();\n reader.releaseLock();\n }\n }\n\n /**\n * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply\n * runs to the end of the text.\n */\n async parseText(text: string, options: ParseTextOptions): Promise<ParseTextResult> {\n const { RecordReader } = await loadRustBindings();\n return await parseDelimitedText(text, options, (delimitedText, delimiter): Promise<{ issues: SampleIssue[]; records: ParsedRecord[] }> => {\n const recordReader = new RecordReader(convertDelimiterToByte(delimiter));\n try {\n const records = unpackRecordBatch(recordReader.pushChunk(new TextEncoder().encode(delimitedText)));\n records.push(...unpackRecordBatch(recordReader.finish()));\n return Promise.resolve({ issues: [], records });\n } finally {\n recordReader.free();\n }\n });\n }\n\n /**\n * Process CSV data using transferable ReadableStream (Chromium path).\n */\n async processWithTransferableStream(\n stream: ReadableStream<Uint8Array>,\n options: CsvProcessingOptions = {},\n onProgress?: (rowCount: number) => void\n ): Promise<CsvProcessingSummary> {\n const xxxx = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44; // Default comma\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n\n const progressCallback = (count: number): void => {\n processedRowCount += count;\n if (onProgress) onProgress(count);\n };\n\n try {\n await xxxx.stream_csv(stream, progressCallback, delimiter, hasHeaders);\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } catch (error) {\n throw new ConnectorError('Failed to process CSV stream.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithTransferableStream', { cause: error });\n }\n }\n\n /**\n * Process CSV data using chunk-by-chunk approach (Safari fallback).\n */\n async processWithChunks(stream: ReadableStream<Uint8Array>, options: CsvProcessingOptions = {}, onProgress?: (rowCount: number) => void): Promise<CsvProcessingSummary> {\n const { CsvSession } = await loadRustBindings();\n const delimiter = options.delimiter?.codePointAt(0) ?? 44;\n const hasHeaders = options.hasHeaders ?? true;\n\n const startTime = performance.now();\n let processedRowCount = 0;\n const session = new CsvSession(delimiter, hasHeaders);\n\n try {\n const reader = stream.getReader();\n\n try {\n // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- The loop ends when the reader reports 'done'.\n while (true) {\n const { value, done } = await reader.read();\n if (done) break;\n\n // if (value) {\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const rows = session.pushChunk(value);\n const count = Array.isArray(rows) ? rows.length : 0;\n processedRowCount += count;\n if (onProgress && count > 0) onProgress(count);\n // }\n }\n\n // Finish processing\n // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -- The WebAssembly bindings return untyped rows.\n const remainingRows = session.finish();\n const remainingCount = Array.isArray(remainingRows) ? remainingRows.length : 0;\n processedRowCount += remainingCount;\n if (onProgress && remainingCount > 0) onProgress(remainingCount);\n\n return {\n processedRowCount,\n failedRowCount: 0,\n durationMs: performance.now() - startTime\n };\n } finally {\n reader.releaseLock();\n }\n } catch (error) {\n throw new ConnectorError('Failed to process CSV chunks.', 'dpuse-tool-rust-csv-core-parser|Tool|processWithChunks', { cause: error });\n }\n }\n}\n\n// ── Helpers ──────────────────────────────────────────────────────────────────────────────────────────────────────────\n\nfunction convertDelimiterToByte(delimiter: ValueDelimiterId): number {\n const byte = getValueDelimiterCharacter(delimiter).codePointAt(0);\n if (byte == null || byte > 0x7f) throw new Error(`Delimiter '${delimiter}' is not a single ASCII character.`);\n return byte;\n}\n\n// The Rust reader reads UTF-8. Text in any other encoding is decoded and encoded again as UTF-8 on the way in, so it is\n// read as 'TextDecoder' reads it. UTF-8 is passed straight through, which saves a copy of every chunk.\nfunction constructUtf8Transcoder(encodingId: string): Utf8Transcoder | undefined {\n const decoder = new TextDecoder(resolveDecoderId(encodingId));\n if (decoder.encoding === 'utf-8') return undefined;\n const encoder = new TextEncoder();\n return {\n finish: () => encoder.encode(decoder.decode()),\n transcode: (bytes) => encoder.encode(decoder.decode(bytes, { stream: true }))\n };\n}\n\n// Builds a record of '{ value, valueWasQuoted }' objects for each record in the batch, which is freed once read.\nfunction unpackRecordBatch(batch: RustModule.RecordBatch): ParsedRecord[] {\n const { recordValueCounts, text, valueEnds, valueQuoted } = batch;\n batch.free();\n const records: ParsedRecord[] = [];\n let valueIndex = 0;\n let valueStart = 0;\n for (const valueCount of recordValueCounts) {\n const record: ParsedRecord = [];\n for (let index = 0; index < valueCount; index++) {\n const valueEnd = valueEnds[valueIndex] ?? valueStart;\n record.push({ value: text.slice(valueStart, valueEnd), valueWasQuoted: valueQuoted[valueIndex] === 1 });\n valueStart = valueEnd;\n valueIndex++;\n }\n records.push(record);\n }\n return records;\n}\n\n// The WebAssembly loads once, on first use; the promise is kept so callers that arrive together share one load.\nasync function loadRustBindings(): Promise<RustBindings> {\n state.rustBindingsPromise ??= (async () => {\n const module = await import('../rust/dpuse_tool_rust_csv_core_parser/pkg/dpuse_tool_rust_csv_core_parser.js');\n await module.default();\n return module;\n })();\n return state.rustBindingsPromise;\n}\n"],"ignoreList":[0],"mappings":";AAkBA,IAAII,IAAI;CACP,MAAM,KAAK;CACX,SAAS,KAAK;CACd,YAAY,KAAK;CACjB,gBAAgB,KAAK;AACtB;;AAEA,SAASC,EAAE,GAAG;CACb,OAAOC,IAAI;EACV,MAAMA,GAAG,QAAQ,KAAK;EACtB,SAASA,GAAG;EACZ,YAAYA,GAAG,cAAc,KAAK;EAClC,gBAAgBA,GAAG,kBAAkB,KAAK;CAC3C,IAAIF;AACL;;AAEA,SAASG,EAAE,GAAG;CACb,IAAI,IAAI,OAAO;CACf,OAAO,MAAM,WAAW,IAAI,EAAE,KAAK,MAAM,YAAY,MAAM,YAAY,MAAM,YAAY,GAAG,MAAM,MAAM,YAAY,MAAM,cAAc,KAAK,OAAO,eAAe,CAAC,CAAC,EAAE,aAAa,SAAS,SAAS;AACvM;AACA,SAASC,EAAE,GAAG,GAAG,GAAG,GAAG,GAAG;CACzB,IAAIH,IAAID,KAAK,WAAWA,IAAIA,EAAE,QAAQK,EAAE,OAAO,IAAIL,GAAG,YAAY,EAAE,WAAW,MAAM,IAAIA,GAAG,YAA4B,kBAAEC,CAAC,GAAG,IAAI;EACjI,MAAM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CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACD,CAAC,GAAQA,EAAE;CACV;CACA;CACA;CACA;AACD,CAAC,GAA8CA,EAAE;CAChD;CACA;CACA;AACD,CAAC,GAAQA,EAAE;CACV;CACA;CACA;CACA;AACD,CAAC,GACcA,EAAE;CACf;CACA;CACA;CACA;AACD,CAAC,GASD,EADA,GAAGS,EACkC;AA27B1B,IAAAC,IAAI;CAvxBf,aAAa;EACZ,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,MAAM;EACL,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,UAAU;EACT,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eAAe;EACf,oBAAoB;CACrB;CACA,OAAO;EACN,IAAI;EACJ,SAAS;EACT,cAAc,CAAC;EACf,eA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, ParseTextOptions, ParseTextResult, RecordRetrievalTypeId, RetrieveRecordsSummary } from '@dpuse/dpuse-shared';
1
+ import { ParsedRecordsChunk, ParserInterface, ParseStreamOptions, ParseStreamSummary, ParseTextOptions, ParseTextResult } from '@dpuse/dpuse-shared';
2
2
  export interface CsvProcessingOptions {
3
3
  delimiter?: string;
4
4
  hasHeaders?: boolean;
@@ -27,7 +27,7 @@ export declare class Tool implements ParserInterface {
27
27
  * Parse stream. Reads delimited text from the stream. The caller owns the stream and its fetch, so a failed fetch is
28
28
  * the caller's to report. Aborting the signal stops the read and rejects with the signal's reason.
29
29
  */
30
- parseStream(stream: ReadableStream<Uint8Array>, options: ParseStreamOptions, chunk: (typeId: RecordRetrievalTypeId, records: ParsedRecord[]) => void | Promise<void>): Promise<RetrieveRecordsSummary>;
30
+ parseStream(stream: ReadableStream<Uint8Array>, options: ParseStreamOptions): AsyncGenerator<ParsedRecordsChunk, ParseStreamSummary, undefined>;
31
31
  /**
32
32
  * Parse text. 'csv-core' reads any text without error, so no issues are reported, and a quote left open simply
33
33
  * runs to the end of the text.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dpuse/dpuse-tool-rust-csv-core-parser",
3
- "version": "1.0.118",
3
+ "version": "1.0.119",
4
4
  "private": false,
5
5
  "description": "CSV parser tool with Rust/WASM core for high-performance streaming",
6
6
  "license": "MIT",
@@ -47,7 +47,7 @@
47
47
  "fsevents@2.3.3": true,
48
48
  "unrs-resolver@1.12.2": true,
49
49
  "esbuild@0.28.2": true,
50
- "workerd@1.20261104.1": true
50
+ "workerd@1.20261110.1": true
51
51
  },
52
52
  "scripts": {
53
53
  "audit": "node -e \"import('@dpuse/dpuse-development').then(m => m.auditDependencies())\"",
@@ -62,20 +62,20 @@
62
62
  "test": "node -e \"import('@dpuse/dpuse-development').then(m => m.testProject())\""
63
63
  },
64
64
  "dependencies": {
65
- "@dpuse/dpuse-shared": "^1.0.188"
65
+ "@dpuse/dpuse-shared": "^1.0.211"
66
66
  },
67
67
  "devDependencies": {
68
- "@dpuse/dpuse-development": "^1.0.147",
69
- "@dpuse/eslint-config-dpuse": "^1.0.149",
68
+ "@dpuse/dpuse-development": "^1.0.149",
69
+ "@dpuse/eslint-config-dpuse": "^1.0.150",
70
70
  "@types/node": "^26.6.6",
71
71
  "@vitest/coverage-v8": "^5.1.0",
72
72
  "eslint": "^10.14.0",
73
- "prettier": "^3.9.10",
73
+ "prettier": "^3.10.0",
74
74
  "sonda": "^0.14.0",
75
75
  "typescript": "^6.0.3",
76
- "vite": "^8.3.6",
76
+ "vite": "^8.3.8",
77
77
  "vite-plugin-dts": "^5.1.2",
78
78
  "vitest": "^5.1.0",
79
- "wrangler": "^4.158.0"
79
+ "wrangler": "^4.160.1"
80
80
  }
81
81
  }