@lamhieu/prisma-schema-engine-wasm 7.8.0

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.
@@ -0,0 +1,934 @@
1
+ let wasm;
2
+ export function __wbg_set_wasm(val) {
3
+ wasm = val;
4
+ }
5
+
6
+
7
+ let cachedUint8ArrayMemory0 = null;
8
+
9
+ function getUint8ArrayMemory0() {
10
+ if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
11
+ cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
12
+ }
13
+ return cachedUint8ArrayMemory0;
14
+ }
15
+
16
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
17
+
18
+ cachedTextDecoder.decode();
19
+
20
+ const MAX_SAFARI_DECODE_BYTES = 2146435072;
21
+ let numBytesDecoded = 0;
22
+ function decodeText(ptr, len) {
23
+ numBytesDecoded += len;
24
+ if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
25
+ cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
26
+ cachedTextDecoder.decode();
27
+ numBytesDecoded = len;
28
+ }
29
+ return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
30
+ }
31
+
32
+ function getStringFromWasm0(ptr, len) {
33
+ ptr = ptr >>> 0;
34
+ return decodeText(ptr, len);
35
+ }
36
+
37
+ let WASM_VECTOR_LEN = 0;
38
+
39
+ const cachedTextEncoder = new TextEncoder();
40
+
41
+ if (!('encodeInto' in cachedTextEncoder)) {
42
+ cachedTextEncoder.encodeInto = function (arg, view) {
43
+ const buf = cachedTextEncoder.encode(arg);
44
+ view.set(buf);
45
+ return {
46
+ read: arg.length,
47
+ written: buf.length
48
+ };
49
+ }
50
+ }
51
+
52
+ function passStringToWasm0(arg, malloc, realloc) {
53
+
54
+ if (realloc === undefined) {
55
+ const buf = cachedTextEncoder.encode(arg);
56
+ const ptr = malloc(buf.length, 1) >>> 0;
57
+ getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
58
+ WASM_VECTOR_LEN = buf.length;
59
+ return ptr;
60
+ }
61
+
62
+ let len = arg.length;
63
+ let ptr = malloc(len, 1) >>> 0;
64
+
65
+ const mem = getUint8ArrayMemory0();
66
+
67
+ let offset = 0;
68
+
69
+ for (; offset < len; offset++) {
70
+ const code = arg.charCodeAt(offset);
71
+ if (code > 0x7F) break;
72
+ mem[ptr + offset] = code;
73
+ }
74
+
75
+ if (offset !== len) {
76
+ if (offset !== 0) {
77
+ arg = arg.slice(offset);
78
+ }
79
+ ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
80
+ const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
81
+ const ret = cachedTextEncoder.encodeInto(arg, view);
82
+
83
+ offset += ret.written;
84
+ ptr = realloc(ptr, len, offset, 1) >>> 0;
85
+ }
86
+
87
+ WASM_VECTOR_LEN = offset;
88
+ return ptr;
89
+ }
90
+
91
+ let cachedDataViewMemory0 = null;
92
+
93
+ function getDataViewMemory0() {
94
+ if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
95
+ cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
96
+ }
97
+ return cachedDataViewMemory0;
98
+ }
99
+
100
+ function isLikeNone(x) {
101
+ return x === undefined || x === null;
102
+ }
103
+
104
+ function debugString(val) {
105
+ // primitive types
106
+ const type = typeof val;
107
+ if (type == 'number' || type == 'boolean' || val == null) {
108
+ return `${val}`;
109
+ }
110
+ if (type == 'string') {
111
+ return `"${val}"`;
112
+ }
113
+ if (type == 'symbol') {
114
+ const description = val.description;
115
+ if (description == null) {
116
+ return 'Symbol';
117
+ } else {
118
+ return `Symbol(${description})`;
119
+ }
120
+ }
121
+ if (type == 'function') {
122
+ const name = val.name;
123
+ if (typeof name == 'string' && name.length > 0) {
124
+ return `Function(${name})`;
125
+ } else {
126
+ return 'Function';
127
+ }
128
+ }
129
+ // objects
130
+ if (Array.isArray(val)) {
131
+ const length = val.length;
132
+ let debug = '[';
133
+ if (length > 0) {
134
+ debug += debugString(val[0]);
135
+ }
136
+ for(let i = 1; i < length; i++) {
137
+ debug += ', ' + debugString(val[i]);
138
+ }
139
+ debug += ']';
140
+ return debug;
141
+ }
142
+ // Test for built-in
143
+ const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
144
+ let className;
145
+ if (builtInMatches && builtInMatches.length > 1) {
146
+ className = builtInMatches[1];
147
+ } else {
148
+ // Failed to match the standard '[object ClassName]'
149
+ return toString.call(val);
150
+ }
151
+ if (className == 'Object') {
152
+ // we're a user defined class or Object
153
+ // JSON.stringify avoids problems with cycles, and is generally much
154
+ // easier than looping through ownProperties of `val`.
155
+ try {
156
+ return 'Object(' + JSON.stringify(val) + ')';
157
+ } catch (_) {
158
+ return 'Object';
159
+ }
160
+ }
161
+ // errors
162
+ if (val instanceof Error) {
163
+ return `${val.name}: ${val.message}\n${val.stack}`;
164
+ }
165
+ // TODO we could test for more things here, like `Set`s and `Map`s.
166
+ return className;
167
+ }
168
+
169
+ function addToExternrefTable0(obj) {
170
+ const idx = wasm.__externref_table_alloc();
171
+ wasm.__wbindgen_externrefs.set(idx, obj);
172
+ return idx;
173
+ }
174
+
175
+ function handleError(f, args) {
176
+ try {
177
+ return f.apply(this, args);
178
+ } catch (e) {
179
+ const idx = addToExternrefTable0(e);
180
+ wasm.__wbindgen_exn_store(idx);
181
+ }
182
+ }
183
+
184
+ function getArrayU8FromWasm0(ptr, len) {
185
+ ptr = ptr >>> 0;
186
+ return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
187
+ }
188
+
189
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
190
+ ? { register: () => {}, unregister: () => {} }
191
+ : new FinalizationRegistry(state => state.dtor(state.a, state.b));
192
+
193
+ function makeMutClosure(arg0, arg1, dtor, f) {
194
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
195
+ const real = (...args) => {
196
+
197
+ // First up with a closure we increment the internal reference
198
+ // count. This ensures that the Rust closure environment won't
199
+ // be deallocated while we're invoking it.
200
+ state.cnt++;
201
+ const a = state.a;
202
+ state.a = 0;
203
+ try {
204
+ return f(a, state.b, ...args);
205
+ } finally {
206
+ state.a = a;
207
+ real._wbg_cb_unref();
208
+ }
209
+ };
210
+ real._wbg_cb_unref = () => {
211
+ if (--state.cnt === 0) {
212
+ state.dtor(state.a, state.b);
213
+ state.a = 0;
214
+ CLOSURE_DTORS.unregister(state);
215
+ }
216
+ };
217
+ CLOSURE_DTORS.register(real, state, state);
218
+ return real;
219
+ }
220
+ /**
221
+ * The version of the @prisma/schema-engine-wasm.
222
+ * @returns {string}
223
+ */
224
+ export function version() {
225
+ let deferred1_0;
226
+ let deferred1_1;
227
+ try {
228
+ const ret = wasm.version();
229
+ deferred1_0 = ret[0];
230
+ deferred1_1 = ret[1];
231
+ return getStringFromWasm0(ret[0], ret[1]);
232
+ } finally {
233
+ wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
234
+ }
235
+ }
236
+
237
+ function wasm_bindgen__convert__closures_____invoke__h4b6eff8b35d91edc(arg0, arg1, arg2) {
238
+ wasm.wasm_bindgen__convert__closures_____invoke__h4b6eff8b35d91edc(arg0, arg1, arg2);
239
+ }
240
+
241
+ function wasm_bindgen__convert__closures_____invoke__h5e6bfddadadf045e(arg0, arg1, arg2, arg3) {
242
+ wasm.wasm_bindgen__convert__closures_____invoke__h5e6bfddadadf045e(arg0, arg1, arg2, arg3);
243
+ }
244
+
245
+ const SchemaEngineFinalization = (typeof FinalizationRegistry === 'undefined')
246
+ ? { register: () => {}, unregister: () => {} }
247
+ : new FinalizationRegistry(ptr => wasm.__wbg_schemaengine_free(ptr >>> 0, 1));
248
+ /**
249
+ * The main query engine used by JS
250
+ */
251
+ export class SchemaEngine {
252
+
253
+ static __wrap(ptr) {
254
+ ptr = ptr >>> 0;
255
+ const obj = Object.create(SchemaEngine.prototype);
256
+ obj.__wbg_ptr = ptr;
257
+ SchemaEngineFinalization.register(obj, obj.__wbg_ptr, obj);
258
+ return obj;
259
+ }
260
+
261
+ __destroy_into_raw() {
262
+ const ptr = this.__wbg_ptr;
263
+ this.__wbg_ptr = 0;
264
+ SchemaEngineFinalization.unregister(this);
265
+ return ptr;
266
+ }
267
+
268
+ free() {
269
+ const ptr = this.__destroy_into_raw();
270
+ wasm.__wbg_schemaengine_free(ptr, 0);
271
+ }
272
+ /**
273
+ * Send a raw command to the database.
274
+ * @param {DbExecuteParams} params
275
+ * @returns {Promise<void>}
276
+ */
277
+ dbExecute(params) {
278
+ const ret = wasm.schemaengine_dbExecute(this.__wbg_ptr, params);
279
+ return ret;
280
+ }
281
+ /**
282
+ * Introspect the database schema.
283
+ * @param {IntrospectParams} params
284
+ * @returns {Promise<IntrospectResult>}
285
+ */
286
+ introspect(params) {
287
+ const ret = wasm.schemaengine_introspect(this.__wbg_ptr, params);
288
+ return ret;
289
+ }
290
+ /**
291
+ * Debugging method that only panics, for tests.
292
+ */
293
+ debugPanic() {
294
+ wasm.schemaengine_debugPanic(this.__wbg_ptr);
295
+ }
296
+ /**
297
+ * The command behind `prisma db push`.
298
+ * @param {SchemaPushInput} input
299
+ * @returns {Promise<SchemaPushOutput>}
300
+ */
301
+ schemaPush(input) {
302
+ const ret = wasm.schemaengine_schemaPush(this.__wbg_ptr, input);
303
+ return ret;
304
+ }
305
+ /**
306
+ * Tells the CLI what to do in `migrate dev`.
307
+ * @param {DevDiagnosticInput} input
308
+ * @returns {Promise<DevDiagnosticOutput>}
309
+ */
310
+ devDiagnostic(input) {
311
+ const ret = wasm.schemaengine_devDiagnostic(this.__wbg_ptr, input);
312
+ return ret;
313
+ }
314
+ /**
315
+ * Introspects a SQL query and returns types information.
316
+ * Note: this will fail on SQLite, as it requires Wasm-compatible sqlx implementation.
317
+ * @param {IntrospectSqlParams} params
318
+ * @returns {Promise<IntrospectSqlResult>}
319
+ */
320
+ introspectSql(params) {
321
+ const ret = wasm.schemaengine_introspectSql(this.__wbg_ptr, params);
322
+ return ret;
323
+ }
324
+ /**
325
+ * Apply all the unapplied migrations from the migrations folder.
326
+ * @param {ApplyMigrationsInput} input
327
+ * @returns {Promise<ApplyMigrationsOutput>}
328
+ */
329
+ applyMigrations(input) {
330
+ const ret = wasm.schemaengine_applyMigrations(this.__wbg_ptr, input);
331
+ return ret;
332
+ }
333
+ /**
334
+ * Generate a new migration, based on the provided schema and existing migrations history.
335
+ * @param {CreateMigrationInput} input
336
+ * @returns {Promise<CreateMigrationOutput>}
337
+ */
338
+ createMigration(input) {
339
+ const ret = wasm.schemaengine_createMigration(this.__wbg_ptr, input);
340
+ return ret;
341
+ }
342
+ /**
343
+ * Evaluate the consequences of running the next migration we would generate, given the current state of a Prisma schema.
344
+ * @param {EvaluateDataLossInput} input
345
+ * @returns {Promise<EvaluateDataLossOutput>}
346
+ */
347
+ evaluateDataLoss(input) {
348
+ const ret = wasm.schemaengine_evaluateDataLoss(this.__wbg_ptr, input);
349
+ return ret;
350
+ }
351
+ /**
352
+ * Mark a migration from the migrations folder as applied, without actually applying it.
353
+ * @param {MarkMigrationAppliedInput} input
354
+ * @returns {Promise<MarkMigrationAppliedOutput>}
355
+ */
356
+ markMigrationApplied(input) {
357
+ const ret = wasm.schemaengine_markMigrationApplied(this.__wbg_ptr, input);
358
+ return ret;
359
+ }
360
+ /**
361
+ * Looks at the migrations folder and the database, and returns a bunch of useful information.
362
+ * @param {DiagnoseMigrationHistoryInput} input
363
+ * @returns {Promise<DiagnoseMigrationHistoryOutput>}
364
+ */
365
+ diagnoseMigrationHistory(input) {
366
+ const ret = wasm.schemaengine_diagnoseMigrationHistory(this.__wbg_ptr, input);
367
+ return ret;
368
+ }
369
+ /**
370
+ * Make sure the connection to the database is established and valid.
371
+ * Connectors can choose to connect lazily, but this method should force
372
+ * them to connect.
373
+ * @param {EnsureConnectionValidityParams} _params
374
+ * @returns {Promise<EnsureConnectionValidityResult>}
375
+ */
376
+ ensureConnectionValidity(_params) {
377
+ const ret = wasm.schemaengine_ensureConnectionValidity(this.__wbg_ptr, _params);
378
+ return ret;
379
+ }
380
+ /**
381
+ * Mark a migration as rolled back.
382
+ * @param {MarkMigrationRolledBackInput} input
383
+ * @returns {Promise<MarkMigrationRolledBackOutput>}
384
+ */
385
+ markMigrationRolledBack(input) {
386
+ const ret = wasm.schemaengine_markMigrationRolledBack(this.__wbg_ptr, input);
387
+ return ret;
388
+ }
389
+ /**
390
+ * @param {ConstructorOptions} options
391
+ * @param {Function} callback
392
+ * @param {object} adapter
393
+ * @returns {Promise<SchemaEngine>}
394
+ */
395
+ static new(options, callback, adapter) {
396
+ const ret = wasm.schemaengine_new(options, callback, adapter);
397
+ return ret;
398
+ }
399
+ /**
400
+ * Create a migration between any two sources of database schemas.
401
+ * @param {DiffParams} params
402
+ * @returns {Promise<DiffResult>}
403
+ */
404
+ diff(params) {
405
+ const ret = wasm.schemaengine_diff(this.__wbg_ptr, params);
406
+ return ret;
407
+ }
408
+ /**
409
+ * Reset a database to an empty state (no data, no schema).
410
+ * @param {ResetInput} input
411
+ * @returns {Promise<void>}
412
+ */
413
+ reset(input) {
414
+ const ret = wasm.schemaengine_reset(this.__wbg_ptr, input);
415
+ return ret;
416
+ }
417
+ /**
418
+ * Return the database version as a string.
419
+ * @param {GetDatabaseVersionInput | null} [_params]
420
+ * @returns {Promise<string>}
421
+ */
422
+ version(_params) {
423
+ const ret = wasm.schemaengine_version(this.__wbg_ptr, isLikeNone(_params) ? 0 : addToExternrefTable0(_params));
424
+ return ret;
425
+ }
426
+ }
427
+ if (Symbol.dispose) SchemaEngine.prototype[Symbol.dispose] = SchemaEngine.prototype.free;
428
+
429
+ export function __wbg_Error_e83987f665cf5504(arg0, arg1) {
430
+ const ret = Error(getStringFromWasm0(arg0, arg1));
431
+ return ret;
432
+ };
433
+
434
+ export function __wbg_Number_bb48ca12f395cd08(arg0) {
435
+ const ret = Number(arg0);
436
+ return ret;
437
+ };
438
+
439
+ export function __wbg_String_8f0eb39a4a4c2f66(arg0, arg1) {
440
+ const ret = String(arg1);
441
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
442
+ const len1 = WASM_VECTOR_LEN;
443
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
444
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
445
+ };
446
+
447
+ export function __wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd(arg0, arg1) {
448
+ const v = arg1;
449
+ const ret = typeof(v) === 'bigint' ? v : undefined;
450
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
451
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
452
+ };
453
+
454
+ export function __wbg___wbindgen_boolean_get_6d5a1ee65bab5f68(arg0) {
455
+ const v = arg0;
456
+ const ret = typeof(v) === 'boolean' ? v : undefined;
457
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
458
+ };
459
+
460
+ export function __wbg___wbindgen_debug_string_df47ffb5e35e6763(arg0, arg1) {
461
+ const ret = debugString(arg1);
462
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
463
+ const len1 = WASM_VECTOR_LEN;
464
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
465
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
466
+ };
467
+
468
+ export function __wbg___wbindgen_in_bb933bd9e1b3bc0f(arg0, arg1) {
469
+ const ret = arg0 in arg1;
470
+ return ret;
471
+ };
472
+
473
+ export function __wbg___wbindgen_is_bigint_cb320707dcd35f0b(arg0) {
474
+ const ret = typeof(arg0) === 'bigint';
475
+ return ret;
476
+ };
477
+
478
+ export function __wbg___wbindgen_is_function_ee8a6c5833c90377(arg0) {
479
+ const ret = typeof(arg0) === 'function';
480
+ return ret;
481
+ };
482
+
483
+ export function __wbg___wbindgen_is_object_c818261d21f283a4(arg0) {
484
+ const val = arg0;
485
+ const ret = typeof(val) === 'object' && val !== null;
486
+ return ret;
487
+ };
488
+
489
+ export function __wbg___wbindgen_is_string_fbb76cb2940daafd(arg0) {
490
+ const ret = typeof(arg0) === 'string';
491
+ return ret;
492
+ };
493
+
494
+ export function __wbg___wbindgen_is_undefined_2d472862bd29a478(arg0) {
495
+ const ret = arg0 === undefined;
496
+ return ret;
497
+ };
498
+
499
+ export function __wbg___wbindgen_jsval_eq_6b13ab83478b1c50(arg0, arg1) {
500
+ const ret = arg0 === arg1;
501
+ return ret;
502
+ };
503
+
504
+ export function __wbg___wbindgen_jsval_loose_eq_b664b38a2f582147(arg0, arg1) {
505
+ const ret = arg0 == arg1;
506
+ return ret;
507
+ };
508
+
509
+ export function __wbg___wbindgen_number_get_a20bf9b85341449d(arg0, arg1) {
510
+ const obj = arg1;
511
+ const ret = typeof(obj) === 'number' ? obj : undefined;
512
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
513
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
514
+ };
515
+
516
+ export function __wbg___wbindgen_string_get_e4f06c90489ad01b(arg0, arg1) {
517
+ const obj = arg1;
518
+ const ret = typeof(obj) === 'string' ? obj : undefined;
519
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
520
+ var len1 = WASM_VECTOR_LEN;
521
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
522
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
523
+ };
524
+
525
+ export function __wbg___wbindgen_throw_b855445ff6a94295(arg0, arg1) {
526
+ throw new Error(getStringFromWasm0(arg0, arg1));
527
+ };
528
+
529
+ export function __wbg__wbg_cb_unref_2454a539ea5790d9(arg0) {
530
+ arg0._wbg_cb_unref();
531
+ };
532
+
533
+ export function __wbg_call_525440f72fbfc0ea() { return handleError(function (arg0, arg1, arg2) {
534
+ const ret = arg0.call(arg1, arg2);
535
+ return ret;
536
+ }, arguments) };
537
+
538
+ export function __wbg_call_e762c39fa8ea36bf() { return handleError(function (arg0, arg1) {
539
+ const ret = arg0.call(arg1);
540
+ return ret;
541
+ }, arguments) };
542
+
543
+ export function __wbg_crypto_805be4ce92f1e370(arg0) {
544
+ const ret = arg0.crypto;
545
+ return ret;
546
+ };
547
+
548
+ export function __wbg_done_2042aa2670fb1db1(arg0) {
549
+ const ret = arg0.done;
550
+ return ret;
551
+ };
552
+
553
+ export function __wbg_entries_e171b586f8f6bdbf(arg0) {
554
+ const ret = Object.entries(arg0);
555
+ return ret;
556
+ };
557
+
558
+ export function __wbg_exec_fdeec61d47617356(arg0, arg1, arg2) {
559
+ const ret = arg0.exec(getStringFromWasm0(arg1, arg2));
560
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
561
+ };
562
+
563
+ export function __wbg_getRandomValues_f6a868620c8bab49() { return handleError(function (arg0, arg1) {
564
+ arg0.getRandomValues(arg1);
565
+ }, arguments) };
566
+
567
+ export function __wbg_getTime_14776bfb48a1bff9(arg0) {
568
+ const ret = arg0.getTime();
569
+ return ret;
570
+ };
571
+
572
+ export function __wbg_get_7bed016f185add81(arg0, arg1) {
573
+ const ret = arg0[arg1 >>> 0];
574
+ return ret;
575
+ };
576
+
577
+ export function __wbg_get_ece95cf6585650d9() { return handleError(function (arg0, arg1) {
578
+ const ret = arg0[arg1];
579
+ return ret;
580
+ }, arguments) };
581
+
582
+ export function __wbg_get_efcb449f58ec27c2() { return handleError(function (arg0, arg1) {
583
+ const ret = Reflect.get(arg0, arg1);
584
+ return ret;
585
+ }, arguments) };
586
+
587
+ export function __wbg_get_with_ref_key_1dc361bd10053bfe(arg0, arg1) {
588
+ const ret = arg0[arg1];
589
+ return ret;
590
+ };
591
+
592
+ export function __wbg_has_787fafc980c3ccdb() { return handleError(function (arg0, arg1) {
593
+ const ret = Reflect.has(arg0, arg1);
594
+ return ret;
595
+ }, arguments) };
596
+
597
+ export function __wbg_instanceof_ArrayBuffer_70beb1189ca63b38(arg0) {
598
+ let result;
599
+ try {
600
+ result = arg0 instanceof ArrayBuffer;
601
+ } catch (_) {
602
+ result = false;
603
+ }
604
+ const ret = result;
605
+ return ret;
606
+ };
607
+
608
+ export function __wbg_instanceof_Map_8579b5e2ab5437c7(arg0) {
609
+ let result;
610
+ try {
611
+ result = arg0 instanceof Map;
612
+ } catch (_) {
613
+ result = false;
614
+ }
615
+ const ret = result;
616
+ return ret;
617
+ };
618
+
619
+ export function __wbg_instanceof_Promise_001fdd42afa1b7ef(arg0) {
620
+ let result;
621
+ try {
622
+ result = arg0 instanceof Promise;
623
+ } catch (_) {
624
+ result = false;
625
+ }
626
+ const ret = result;
627
+ return ret;
628
+ };
629
+
630
+ export function __wbg_instanceof_Uint8Array_20c8e73002f7af98(arg0) {
631
+ let result;
632
+ try {
633
+ result = arg0 instanceof Uint8Array;
634
+ } catch (_) {
635
+ result = false;
636
+ }
637
+ const ret = result;
638
+ return ret;
639
+ };
640
+
641
+ export function __wbg_isArray_96e0af9891d0945d(arg0) {
642
+ const ret = Array.isArray(arg0);
643
+ return ret;
644
+ };
645
+
646
+ export function __wbg_isSafeInteger_d216eda7911dde36(arg0) {
647
+ const ret = Number.isSafeInteger(arg0);
648
+ return ret;
649
+ };
650
+
651
+ export function __wbg_iterator_e5822695327a3c39() {
652
+ const ret = Symbol.iterator;
653
+ return ret;
654
+ };
655
+
656
+ export function __wbg_length_69bca3cb64fc8748(arg0) {
657
+ const ret = arg0.length;
658
+ return ret;
659
+ };
660
+
661
+ export function __wbg_length_cdd215e10d9dd507(arg0) {
662
+ const ret = arg0.length;
663
+ return ret;
664
+ };
665
+
666
+ export function __wbg_msCrypto_2ac4d17c4748234a(arg0) {
667
+ const ret = arg0.msCrypto;
668
+ return ret;
669
+ };
670
+
671
+ export function __wbg_new_0_f9740686d739025c() {
672
+ const ret = new Date();
673
+ return ret;
674
+ };
675
+
676
+ export function __wbg_new_1acc0b6eea89d040() {
677
+ const ret = new Object();
678
+ return ret;
679
+ };
680
+
681
+ export function __wbg_new_23fa8b12a239f036(arg0, arg1, arg2, arg3) {
682
+ const ret = new RegExp(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
683
+ return ret;
684
+ };
685
+
686
+ export function __wbg_new_3c3d849046688a66(arg0, arg1) {
687
+ try {
688
+ var state0 = {a: arg0, b: arg1};
689
+ var cb0 = (arg0, arg1) => {
690
+ const a = state0.a;
691
+ state0.a = 0;
692
+ try {
693
+ return wasm_bindgen__convert__closures_____invoke__h5e6bfddadadf045e(a, state0.b, arg0, arg1);
694
+ } finally {
695
+ state0.a = a;
696
+ }
697
+ };
698
+ const ret = new Promise(cb0);
699
+ return ret;
700
+ } finally {
701
+ state0.a = state0.b = 0;
702
+ }
703
+ };
704
+
705
+ export function __wbg_new_5a79be3ab53b8aa5(arg0) {
706
+ const ret = new Uint8Array(arg0);
707
+ return ret;
708
+ };
709
+
710
+ export function __wbg_new_68651c719dcda04e() {
711
+ const ret = new Map();
712
+ return ret;
713
+ };
714
+
715
+ export function __wbg_new_a7442b4b19c1a356(arg0, arg1) {
716
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
717
+ return ret;
718
+ };
719
+
720
+ export function __wbg_new_e17d9f43105b08be() {
721
+ const ret = new Array();
722
+ return ret;
723
+ };
724
+
725
+ export function __wbg_new_from_slice_92f4d78ca282a2d2(arg0, arg1) {
726
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
727
+ return ret;
728
+ };
729
+
730
+ export function __wbg_new_no_args_ee98eee5275000a4(arg0, arg1) {
731
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
732
+ return ret;
733
+ };
734
+
735
+ export function __wbg_new_with_length_01aa0dc35aa13543(arg0) {
736
+ const ret = new Uint8Array(arg0 >>> 0);
737
+ return ret;
738
+ };
739
+
740
+ export function __wbg_next_020810e0ae8ebcb0() { return handleError(function (arg0) {
741
+ const ret = arg0.next();
742
+ return ret;
743
+ }, arguments) };
744
+
745
+ export function __wbg_next_2c826fe5dfec6b6a(arg0) {
746
+ const ret = arg0.next;
747
+ return ret;
748
+ };
749
+
750
+ export function __wbg_node_ecc8306b9857f33d(arg0) {
751
+ const ret = arg0.node;
752
+ return ret;
753
+ };
754
+
755
+ export function __wbg_now_793306c526e2e3b6() {
756
+ const ret = Date.now();
757
+ return ret;
758
+ };
759
+
760
+ export function __wbg_now_7fd00a794a07d388(arg0) {
761
+ const ret = arg0.now();
762
+ return ret;
763
+ };
764
+
765
+ export function __wbg_process_5cff2739921be718(arg0) {
766
+ const ret = arg0.process;
767
+ return ret;
768
+ };
769
+
770
+ export function __wbg_prototypesetcall_2a6620b6922694b2(arg0, arg1, arg2) {
771
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
772
+ };
773
+
774
+ export function __wbg_push_df81a39d04db858c(arg0, arg1) {
775
+ const ret = arg0.push(arg1);
776
+ return ret;
777
+ };
778
+
779
+ export function __wbg_queueMicrotask_5a8a9131f3f0b37b(arg0) {
780
+ const ret = arg0.queueMicrotask;
781
+ return ret;
782
+ };
783
+
784
+ export function __wbg_queueMicrotask_6d79674585219521(arg0) {
785
+ queueMicrotask(arg0);
786
+ };
787
+
788
+ export function __wbg_randomFillSync_d3c85af7e31cf1f8() { return handleError(function (arg0, arg1) {
789
+ arg0.randomFillSync(arg1);
790
+ }, arguments) };
791
+
792
+ export function __wbg_require_0c566c6f2eef6c79() { return handleError(function () {
793
+ const ret = module.require;
794
+ return ret;
795
+ }, arguments) };
796
+
797
+ export function __wbg_resolve_caf97c30b83f7053(arg0) {
798
+ const ret = Promise.resolve(arg0);
799
+ return ret;
800
+ };
801
+
802
+ export function __wbg_schemaengine_new(arg0) {
803
+ const ret = SchemaEngine.__wrap(arg0);
804
+ return ret;
805
+ };
806
+
807
+ export function __wbg_setTimeout_5d6a1d4fc51ea450(arg0, arg1) {
808
+ const ret = setTimeout(arg0, arg1 >>> 0);
809
+ return ret;
810
+ };
811
+
812
+ export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
813
+ arg0[arg1] = arg2;
814
+ };
815
+
816
+ export function __wbg_set_907fb406c34a251d(arg0, arg1, arg2) {
817
+ const ret = arg0.set(arg1, arg2);
818
+ return ret;
819
+ };
820
+
821
+ export function __wbg_set_c213c871859d6500(arg0, arg1, arg2) {
822
+ arg0[arg1 >>> 0] = arg2;
823
+ };
824
+
825
+ export function __wbg_set_c2abbebe8b9ebee1() { return handleError(function (arg0, arg1, arg2) {
826
+ const ret = Reflect.set(arg0, arg1, arg2);
827
+ return ret;
828
+ }, arguments) };
829
+
830
+ export function __wbg_set_message_f18c00fbf3b3e80e(arg0, arg1) {
831
+ global.PRISMA_WASM_PANIC_REGISTRY.set_message(getStringFromWasm0(arg0, arg1));
832
+ };
833
+
834
+ export function __wbg_set_name_d94846a29e626702(arg0, arg1, arg2) {
835
+ arg0.name = getStringFromWasm0(arg1, arg2);
836
+ };
837
+
838
+ export function __wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e() {
839
+ const ret = typeof global === 'undefined' ? null : global;
840
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
841
+ };
842
+
843
+ export function __wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac() {
844
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
845
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
846
+ };
847
+
848
+ export function __wbg_static_accessor_SELF_6fdf4b64710cc91b() {
849
+ const ret = typeof self === 'undefined' ? null : self;
850
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
851
+ };
852
+
853
+ export function __wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2() {
854
+ const ret = typeof window === 'undefined' ? null : window;
855
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
856
+ };
857
+
858
+ export function __wbg_subarray_480600f3d6a9f26c(arg0, arg1, arg2) {
859
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
860
+ return ret;
861
+ };
862
+
863
+ export function __wbg_then_4f46f6544e6b4a28(arg0, arg1) {
864
+ const ret = arg0.then(arg1);
865
+ return ret;
866
+ };
867
+
868
+ export function __wbg_then_70d05cf780a18d77(arg0, arg1, arg2) {
869
+ const ret = arg0.then(arg1, arg2);
870
+ return ret;
871
+ };
872
+
873
+ export function __wbg_valueOf_9eee4828c11458ca(arg0) {
874
+ const ret = arg0.valueOf();
875
+ return ret;
876
+ };
877
+
878
+ export function __wbg_value_692627309814bb8c(arg0) {
879
+ const ret = arg0.value;
880
+ return ret;
881
+ };
882
+
883
+ export function __wbg_versions_a8e5a362e1f16442(arg0) {
884
+ const ret = arg0.versions;
885
+ return ret;
886
+ };
887
+
888
+ export function __wbindgen_cast_2241b6af4c4b2941(arg0, arg1) {
889
+ // Cast intrinsic for `Ref(String) -> Externref`.
890
+ const ret = getStringFromWasm0(arg0, arg1);
891
+ return ret;
892
+ };
893
+
894
+ export function __wbindgen_cast_4625c577ab2ec9ee(arg0) {
895
+ // Cast intrinsic for `U64 -> Externref`.
896
+ const ret = BigInt.asUintN(64, arg0);
897
+ return ret;
898
+ };
899
+
900
+ export function __wbindgen_cast_9ae0607507abb057(arg0) {
901
+ // Cast intrinsic for `I64 -> Externref`.
902
+ const ret = arg0;
903
+ return ret;
904
+ };
905
+
906
+ export function __wbindgen_cast_cb9088102bce6b30(arg0, arg1) {
907
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
908
+ const ret = getArrayU8FromWasm0(arg0, arg1);
909
+ return ret;
910
+ };
911
+
912
+ export function __wbindgen_cast_d6cd19b81560fd6e(arg0) {
913
+ // Cast intrinsic for `F64 -> Externref`.
914
+ const ret = arg0;
915
+ return ret;
916
+ };
917
+
918
+ export function __wbindgen_cast_f9e945f43a3a3e4d(arg0, arg1) {
919
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 1101, function: Function { arguments: [Externref], shim_idx: 1102, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
920
+ const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h1953f9cbca4d61ad, wasm_bindgen__convert__closures_____invoke__h4b6eff8b35d91edc);
921
+ return ret;
922
+ };
923
+
924
+ export function __wbindgen_init_externref_table() {
925
+ const table = wasm.__wbindgen_externrefs;
926
+ const offset = table.grow(4);
927
+ table.set(0, undefined);
928
+ table.set(offset + 0, undefined);
929
+ table.set(offset + 1, null);
930
+ table.set(offset + 2, true);
931
+ table.set(offset + 3, false);
932
+ ;
933
+ };
934
+