@janssenproject/cedarling_wasm 0.0.315-nodejs → 0.0.316
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 +273 -0
- package/cedarling_wasm.d.ts +340 -0
- package/cedarling_wasm.js +755 -144
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
5
5
|
* Represents the result of an authorization request.
|
|
6
6
|
*/
|
|
7
|
-
class AuthorizeResult {
|
|
7
|
+
export class AuthorizeResult {
|
|
8
8
|
static __wrap(ptr) {
|
|
9
9
|
ptr = ptr >>> 0;
|
|
10
10
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -138,13 +138,12 @@ class AuthorizeResult {
|
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
141
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
142
141
|
|
|
143
142
|
/**
|
|
144
143
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
145
144
|
* Represents the result of an authorization request.
|
|
146
145
|
*/
|
|
147
|
-
class AuthorizeResultResponse {
|
|
146
|
+
export class AuthorizeResultResponse {
|
|
148
147
|
static __wrap(ptr) {
|
|
149
148
|
ptr = ptr >>> 0;
|
|
150
149
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -180,12 +179,11 @@ class AuthorizeResultResponse {
|
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
181
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
183
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
184
182
|
|
|
185
183
|
/**
|
|
186
184
|
* The instance of the Cedarling application.
|
|
187
185
|
*/
|
|
188
|
-
class Cedarling {
|
|
186
|
+
export class Cedarling {
|
|
189
187
|
static __wrap(ptr) {
|
|
190
188
|
ptr = ptr >>> 0;
|
|
191
189
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -233,6 +231,82 @@ class Cedarling {
|
|
|
233
231
|
const ret = wasm.cedarling_authorize_unsigned(this.__wbg_ptr, request);
|
|
234
232
|
return ret;
|
|
235
233
|
}
|
|
234
|
+
/**
|
|
235
|
+
* Clear all entries from the data store.
|
|
236
|
+
*
|
|
237
|
+
* # Example
|
|
238
|
+
*
|
|
239
|
+
* ```javascript
|
|
240
|
+
* cedarling.clear_data_ctx();
|
|
241
|
+
* console.log("All data entries cleared");
|
|
242
|
+
* ```
|
|
243
|
+
*/
|
|
244
|
+
clear_data_ctx() {
|
|
245
|
+
const ret = wasm.cedarling_clear_data_ctx(this.__wbg_ptr);
|
|
246
|
+
if (ret[1]) {
|
|
247
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
/**
|
|
251
|
+
* Get a value from the data store by key.
|
|
252
|
+
* Returns null if the key doesn't exist or the entry has expired.
|
|
253
|
+
*
|
|
254
|
+
* # Arguments
|
|
255
|
+
*
|
|
256
|
+
* * `key` - A string key for the data entry to retrieve
|
|
257
|
+
*
|
|
258
|
+
* # Example
|
|
259
|
+
*
|
|
260
|
+
* ```javascript
|
|
261
|
+
* const value = cedarling.get_data_ctx("user:123");
|
|
262
|
+
* if (value !== null) {
|
|
263
|
+
* console.log(value.name); // "John"
|
|
264
|
+
* }
|
|
265
|
+
* ```
|
|
266
|
+
* @param {string} key
|
|
267
|
+
* @returns {any}
|
|
268
|
+
*/
|
|
269
|
+
get_data_ctx(key) {
|
|
270
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
271
|
+
const len0 = WASM_VECTOR_LEN;
|
|
272
|
+
const ret = wasm.cedarling_get_data_ctx(this.__wbg_ptr, ptr0, len0);
|
|
273
|
+
if (ret[2]) {
|
|
274
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
275
|
+
}
|
|
276
|
+
return takeFromExternrefTable0(ret[0]);
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Get a data entry with full metadata by key.
|
|
280
|
+
* Returns null if the key doesn't exist or the entry has expired.
|
|
281
|
+
*
|
|
282
|
+
* # Arguments
|
|
283
|
+
*
|
|
284
|
+
* * `key` - A string key for the data entry to retrieve
|
|
285
|
+
*
|
|
286
|
+
* # Example
|
|
287
|
+
*
|
|
288
|
+
* ```javascript
|
|
289
|
+
* const entry = cedarling.get_data_entry_ctx("user:123");
|
|
290
|
+
* if (entry !== null) {
|
|
291
|
+
* console.log(entry.key); // "user:123"
|
|
292
|
+
* console.log(entry.value); // { name: "John", age: 30 }
|
|
293
|
+
* console.log(entry.data_type); // "Record"
|
|
294
|
+
* console.log(entry.created_at); // "2024-01-01T12:00:00Z"
|
|
295
|
+
* console.log(entry.access_count); // 5
|
|
296
|
+
* }
|
|
297
|
+
* ```
|
|
298
|
+
* @param {string} key
|
|
299
|
+
* @returns {DataEntry | undefined}
|
|
300
|
+
*/
|
|
301
|
+
get_data_entry_ctx(key) {
|
|
302
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
303
|
+
const len0 = WASM_VECTOR_LEN;
|
|
304
|
+
const ret = wasm.cedarling_get_data_entry_ctx(this.__wbg_ptr, ptr0, len0);
|
|
305
|
+
if (ret[2]) {
|
|
306
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
307
|
+
}
|
|
308
|
+
return ret[0] === 0 ? undefined : DataEntry.__wrap(ret[0]);
|
|
309
|
+
}
|
|
236
310
|
/**
|
|
237
311
|
* Get specific log entry.
|
|
238
312
|
* Returns `Map` with values or `null`.
|
|
@@ -312,6 +386,47 @@ class Cedarling {
|
|
|
312
386
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
313
387
|
return v2;
|
|
314
388
|
}
|
|
389
|
+
/**
|
|
390
|
+
* Get statistics about the data store.
|
|
391
|
+
*
|
|
392
|
+
* # Example
|
|
393
|
+
*
|
|
394
|
+
* ```javascript
|
|
395
|
+
* const stats = cedarling.get_stats_ctx();
|
|
396
|
+
* console.log(`Entries: ${stats.entry_count}/${stats.max_entries || 'unlimited'}`);
|
|
397
|
+
* console.log(`Capacity: ${stats.capacity_usage_percent.toFixed(2)}%`);
|
|
398
|
+
* console.log(`Total size: ${stats.total_size_bytes} bytes`);
|
|
399
|
+
* ```
|
|
400
|
+
* @returns {DataStoreStats}
|
|
401
|
+
*/
|
|
402
|
+
get_stats_ctx() {
|
|
403
|
+
const ret = wasm.cedarling_get_stats_ctx(this.__wbg_ptr);
|
|
404
|
+
if (ret[2]) {
|
|
405
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
406
|
+
}
|
|
407
|
+
return DataStoreStats.__wrap(ret[0]);
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* List all entries with their metadata.
|
|
411
|
+
* Returns an array of DataEntry objects.
|
|
412
|
+
*
|
|
413
|
+
* # Example
|
|
414
|
+
*
|
|
415
|
+
* ```javascript
|
|
416
|
+
* const entries = cedarling.list_data_ctx();
|
|
417
|
+
* entries.forEach(entry => {
|
|
418
|
+
* console.log(`${entry.key}: ${entry.data_type} (accessed ${entry.access_count} times)`);
|
|
419
|
+
* });
|
|
420
|
+
* ```
|
|
421
|
+
* @returns {Array<any>}
|
|
422
|
+
*/
|
|
423
|
+
list_data_ctx() {
|
|
424
|
+
const ret = wasm.cedarling_list_data_ctx(this.__wbg_ptr);
|
|
425
|
+
if (ret[2]) {
|
|
426
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
427
|
+
}
|
|
428
|
+
return takeFromExternrefTable0(ret[0]);
|
|
429
|
+
}
|
|
315
430
|
/**
|
|
316
431
|
* Create a new instance of the Cedarling application.
|
|
317
432
|
* Assume that config is `Object`
|
|
@@ -344,6 +459,63 @@ class Cedarling {
|
|
|
344
459
|
}
|
|
345
460
|
return takeFromExternrefTable0(ret[0]);
|
|
346
461
|
}
|
|
462
|
+
/**
|
|
463
|
+
* Push a value into the data store with an optional TTL.
|
|
464
|
+
* If the key already exists, the value will be replaced.
|
|
465
|
+
* If TTL is not provided, the default TTL from configuration is used.
|
|
466
|
+
*
|
|
467
|
+
* # Arguments
|
|
468
|
+
*
|
|
469
|
+
* * `key` - A string key for the data entry (must not be empty)
|
|
470
|
+
* * `value` - The value to store (any JSON-serializable JavaScript value: object, array, string, number, boolean)
|
|
471
|
+
* * `ttl_secs` - Optional TTL in seconds (undefined/null uses default from config)
|
|
472
|
+
*
|
|
473
|
+
* # Example
|
|
474
|
+
*
|
|
475
|
+
* ```javascript
|
|
476
|
+
* cedarling.push_data_ctx("user:123", { name: "John", age: 30 }, 3600);
|
|
477
|
+
* cedarling.push_data_ctx("config", { setting: "value" }); // Uses default TTL
|
|
478
|
+
* ```
|
|
479
|
+
* @param {string} key
|
|
480
|
+
* @param {any} value
|
|
481
|
+
* @param {bigint | null} [ttl_secs]
|
|
482
|
+
*/
|
|
483
|
+
push_data_ctx(key, value, ttl_secs) {
|
|
484
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
485
|
+
const len0 = WASM_VECTOR_LEN;
|
|
486
|
+
const ret = wasm.cedarling_push_data_ctx(this.__wbg_ptr, ptr0, len0, value, !isLikeNone(ttl_secs), isLikeNone(ttl_secs) ? BigInt(0) : ttl_secs);
|
|
487
|
+
if (ret[1]) {
|
|
488
|
+
throw takeFromExternrefTable0(ret[0]);
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* Remove a value from the data store by key.
|
|
493
|
+
* Returns true if the key existed and was removed, false otherwise.
|
|
494
|
+
*
|
|
495
|
+
* # Arguments
|
|
496
|
+
*
|
|
497
|
+
* * `key` - A string key for the data entry to remove
|
|
498
|
+
*
|
|
499
|
+
* # Example
|
|
500
|
+
*
|
|
501
|
+
* ```javascript
|
|
502
|
+
* const removed = cedarling.remove_data_ctx("user:123");
|
|
503
|
+
* if (removed) {
|
|
504
|
+
* console.log("Entry was successfully removed");
|
|
505
|
+
* }
|
|
506
|
+
* ```
|
|
507
|
+
* @param {string} key
|
|
508
|
+
* @returns {boolean}
|
|
509
|
+
*/
|
|
510
|
+
remove_data_ctx(key) {
|
|
511
|
+
const ptr0 = passStringToWasm0(key, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
512
|
+
const len0 = WASM_VECTOR_LEN;
|
|
513
|
+
const ret = wasm.cedarling_remove_data_ctx(this.__wbg_ptr, ptr0, len0);
|
|
514
|
+
if (ret[2]) {
|
|
515
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
516
|
+
}
|
|
517
|
+
return ret[0] !== 0;
|
|
518
|
+
}
|
|
347
519
|
/**
|
|
348
520
|
* Closes the connections to the Lock Server and pushes all available logs.
|
|
349
521
|
* @returns {Promise<void>}
|
|
@@ -354,7 +526,346 @@ class Cedarling {
|
|
|
354
526
|
}
|
|
355
527
|
}
|
|
356
528
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
357
|
-
|
|
529
|
+
|
|
530
|
+
/**
|
|
531
|
+
* A WASM wrapper for the Rust `cedarling::DataEntry` struct.
|
|
532
|
+
* Represents a data entry in the DataStore with value and metadata.
|
|
533
|
+
*/
|
|
534
|
+
export class DataEntry {
|
|
535
|
+
static __wrap(ptr) {
|
|
536
|
+
ptr = ptr >>> 0;
|
|
537
|
+
const obj = Object.create(DataEntry.prototype);
|
|
538
|
+
obj.__wbg_ptr = ptr;
|
|
539
|
+
DataEntryFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
540
|
+
return obj;
|
|
541
|
+
}
|
|
542
|
+
__destroy_into_raw() {
|
|
543
|
+
const ptr = this.__wbg_ptr;
|
|
544
|
+
this.__wbg_ptr = 0;
|
|
545
|
+
DataEntryFinalization.unregister(this);
|
|
546
|
+
return ptr;
|
|
547
|
+
}
|
|
548
|
+
free() {
|
|
549
|
+
const ptr = this.__destroy_into_raw();
|
|
550
|
+
wasm.__wbg_dataentry_free(ptr, 0);
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* Convert `DataEntry` to json string value
|
|
554
|
+
* @returns {string}
|
|
555
|
+
*/
|
|
556
|
+
json_string() {
|
|
557
|
+
let deferred1_0;
|
|
558
|
+
let deferred1_1;
|
|
559
|
+
try {
|
|
560
|
+
const ret = wasm.dataentry_json_string(this.__wbg_ptr);
|
|
561
|
+
deferred1_0 = ret[0];
|
|
562
|
+
deferred1_1 = ret[1];
|
|
563
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
564
|
+
} finally {
|
|
565
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* Get the value stored in this entry as a JavaScript object
|
|
570
|
+
* @returns {any}
|
|
571
|
+
*/
|
|
572
|
+
value() {
|
|
573
|
+
const ret = wasm.dataentry_value(this.__wbg_ptr);
|
|
574
|
+
if (ret[2]) {
|
|
575
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
576
|
+
}
|
|
577
|
+
return takeFromExternrefTable0(ret[0]);
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* Number of times this entry has been accessed
|
|
581
|
+
* @returns {bigint}
|
|
582
|
+
*/
|
|
583
|
+
get access_count() {
|
|
584
|
+
const ret = wasm.__wbg_get_dataentry_access_count(this.__wbg_ptr);
|
|
585
|
+
return BigInt.asUintN(64, ret);
|
|
586
|
+
}
|
|
587
|
+
/**
|
|
588
|
+
* Timestamp when this entry was created (RFC 3339 format)
|
|
589
|
+
* @returns {string}
|
|
590
|
+
*/
|
|
591
|
+
get created_at() {
|
|
592
|
+
let deferred1_0;
|
|
593
|
+
let deferred1_1;
|
|
594
|
+
try {
|
|
595
|
+
const ret = wasm.__wbg_get_dataentry_created_at(this.__wbg_ptr);
|
|
596
|
+
deferred1_0 = ret[0];
|
|
597
|
+
deferred1_1 = ret[1];
|
|
598
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
599
|
+
} finally {
|
|
600
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
/**
|
|
604
|
+
* The inferred Cedar type of the value
|
|
605
|
+
* @returns {string}
|
|
606
|
+
*/
|
|
607
|
+
get data_type() {
|
|
608
|
+
let deferred1_0;
|
|
609
|
+
let deferred1_1;
|
|
610
|
+
try {
|
|
611
|
+
const ret = wasm.__wbg_get_dataentry_data_type(this.__wbg_ptr);
|
|
612
|
+
deferred1_0 = ret[0];
|
|
613
|
+
deferred1_1 = ret[1];
|
|
614
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
615
|
+
} finally {
|
|
616
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
617
|
+
}
|
|
618
|
+
}
|
|
619
|
+
/**
|
|
620
|
+
* Timestamp when this entry expires (RFC 3339 format), or null if no TTL
|
|
621
|
+
* @returns {string | undefined}
|
|
622
|
+
*/
|
|
623
|
+
get expires_at() {
|
|
624
|
+
const ret = wasm.__wbg_get_dataentry_expires_at(this.__wbg_ptr);
|
|
625
|
+
let v1;
|
|
626
|
+
if (ret[0] !== 0) {
|
|
627
|
+
v1 = getStringFromWasm0(ret[0], ret[1]).slice();
|
|
628
|
+
wasm.__wbindgen_free(ret[0], ret[1] * 1, 1);
|
|
629
|
+
}
|
|
630
|
+
return v1;
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* The key for this entry
|
|
634
|
+
* @returns {string}
|
|
635
|
+
*/
|
|
636
|
+
get key() {
|
|
637
|
+
let deferred1_0;
|
|
638
|
+
let deferred1_1;
|
|
639
|
+
try {
|
|
640
|
+
const ret = wasm.__wbg_get_dataentry_key(this.__wbg_ptr);
|
|
641
|
+
deferred1_0 = ret[0];
|
|
642
|
+
deferred1_1 = ret[1];
|
|
643
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
644
|
+
} finally {
|
|
645
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
646
|
+
}
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Number of times this entry has been accessed
|
|
650
|
+
* @param {bigint} arg0
|
|
651
|
+
*/
|
|
652
|
+
set access_count(arg0) {
|
|
653
|
+
wasm.__wbg_set_dataentry_access_count(this.__wbg_ptr, arg0);
|
|
654
|
+
}
|
|
655
|
+
/**
|
|
656
|
+
* Timestamp when this entry was created (RFC 3339 format)
|
|
657
|
+
* @param {string} arg0
|
|
658
|
+
*/
|
|
659
|
+
set created_at(arg0) {
|
|
660
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
661
|
+
const len0 = WASM_VECTOR_LEN;
|
|
662
|
+
wasm.__wbg_set_dataentry_created_at(this.__wbg_ptr, ptr0, len0);
|
|
663
|
+
}
|
|
664
|
+
/**
|
|
665
|
+
* The inferred Cedar type of the value
|
|
666
|
+
* @param {string} arg0
|
|
667
|
+
*/
|
|
668
|
+
set data_type(arg0) {
|
|
669
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
670
|
+
const len0 = WASM_VECTOR_LEN;
|
|
671
|
+
wasm.__wbg_set_dataentry_data_type(this.__wbg_ptr, ptr0, len0);
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* Timestamp when this entry expires (RFC 3339 format), or null if no TTL
|
|
675
|
+
* @param {string | null} [arg0]
|
|
676
|
+
*/
|
|
677
|
+
set expires_at(arg0) {
|
|
678
|
+
var ptr0 = isLikeNone(arg0) ? 0 : passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
679
|
+
var len0 = WASM_VECTOR_LEN;
|
|
680
|
+
wasm.__wbg_set_dataentry_expires_at(this.__wbg_ptr, ptr0, len0);
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* The key for this entry
|
|
684
|
+
* @param {string} arg0
|
|
685
|
+
*/
|
|
686
|
+
set key(arg0) {
|
|
687
|
+
const ptr0 = passStringToWasm0(arg0, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
688
|
+
const len0 = WASM_VECTOR_LEN;
|
|
689
|
+
wasm.__wbg_set_dataentry_key(this.__wbg_ptr, ptr0, len0);
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
if (Symbol.dispose) DataEntry.prototype[Symbol.dispose] = DataEntry.prototype.free;
|
|
693
|
+
|
|
694
|
+
/**
|
|
695
|
+
* A WASM wrapper for the Rust `cedarling::DataStoreStats` struct.
|
|
696
|
+
* Statistics about the DataStore.
|
|
697
|
+
*/
|
|
698
|
+
export class DataStoreStats {
|
|
699
|
+
static __wrap(ptr) {
|
|
700
|
+
ptr = ptr >>> 0;
|
|
701
|
+
const obj = Object.create(DataStoreStats.prototype);
|
|
702
|
+
obj.__wbg_ptr = ptr;
|
|
703
|
+
DataStoreStatsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
704
|
+
return obj;
|
|
705
|
+
}
|
|
706
|
+
__destroy_into_raw() {
|
|
707
|
+
const ptr = this.__wbg_ptr;
|
|
708
|
+
this.__wbg_ptr = 0;
|
|
709
|
+
DataStoreStatsFinalization.unregister(this);
|
|
710
|
+
return ptr;
|
|
711
|
+
}
|
|
712
|
+
free() {
|
|
713
|
+
const ptr = this.__destroy_into_raw();
|
|
714
|
+
wasm.__wbg_datastorestats_free(ptr, 0);
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* Convert `DataStoreStats` to json string value
|
|
718
|
+
* @returns {string}
|
|
719
|
+
*/
|
|
720
|
+
json_string() {
|
|
721
|
+
let deferred1_0;
|
|
722
|
+
let deferred1_1;
|
|
723
|
+
try {
|
|
724
|
+
const ret = wasm.datastorestats_json_string(this.__wbg_ptr);
|
|
725
|
+
deferred1_0 = ret[0];
|
|
726
|
+
deferred1_1 = ret[1];
|
|
727
|
+
return getStringFromWasm0(ret[0], ret[1]);
|
|
728
|
+
} finally {
|
|
729
|
+
wasm.__wbindgen_free(deferred1_0, deferred1_1, 1);
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* Average size per entry in bytes (0 if no entries)
|
|
734
|
+
* @returns {number}
|
|
735
|
+
*/
|
|
736
|
+
get avg_entry_size_bytes() {
|
|
737
|
+
const ret = wasm.__wbg_get_datastorestats_avg_entry_size_bytes(this.__wbg_ptr);
|
|
738
|
+
return ret >>> 0;
|
|
739
|
+
}
|
|
740
|
+
/**
|
|
741
|
+
* Percentage of capacity used (0.0-100.0, based on entry count)
|
|
742
|
+
* @returns {number}
|
|
743
|
+
*/
|
|
744
|
+
get capacity_usage_percent() {
|
|
745
|
+
const ret = wasm.__wbg_get_datastorestats_capacity_usage_percent(this.__wbg_ptr);
|
|
746
|
+
return ret;
|
|
747
|
+
}
|
|
748
|
+
/**
|
|
749
|
+
* Number of entries currently stored
|
|
750
|
+
* @returns {number}
|
|
751
|
+
*/
|
|
752
|
+
get entry_count() {
|
|
753
|
+
const ret = wasm.__wbg_get_datastorestats_entry_count(this.__wbg_ptr);
|
|
754
|
+
return ret >>> 0;
|
|
755
|
+
}
|
|
756
|
+
/**
|
|
757
|
+
* Maximum number of entries allowed (0 = unlimited)
|
|
758
|
+
* @returns {number}
|
|
759
|
+
*/
|
|
760
|
+
get max_entries() {
|
|
761
|
+
const ret = wasm.__wbg_get_datastorestats_max_entries(this.__wbg_ptr);
|
|
762
|
+
return ret >>> 0;
|
|
763
|
+
}
|
|
764
|
+
/**
|
|
765
|
+
* Maximum size per entry in bytes (0 = unlimited)
|
|
766
|
+
* @returns {number}
|
|
767
|
+
*/
|
|
768
|
+
get max_entry_size() {
|
|
769
|
+
const ret = wasm.__wbg_get_datastorestats_max_entry_size(this.__wbg_ptr);
|
|
770
|
+
return ret >>> 0;
|
|
771
|
+
}
|
|
772
|
+
/**
|
|
773
|
+
* Memory usage threshold percentage (from config)
|
|
774
|
+
* @returns {number}
|
|
775
|
+
*/
|
|
776
|
+
get memory_alert_threshold() {
|
|
777
|
+
const ret = wasm.__wbg_get_datastorestats_memory_alert_threshold(this.__wbg_ptr);
|
|
778
|
+
return ret;
|
|
779
|
+
}
|
|
780
|
+
/**
|
|
781
|
+
* Whether memory usage exceeds the alert threshold
|
|
782
|
+
* @returns {boolean}
|
|
783
|
+
*/
|
|
784
|
+
get memory_alert_triggered() {
|
|
785
|
+
const ret = wasm.__wbg_get_datastorestats_memory_alert_triggered(this.__wbg_ptr);
|
|
786
|
+
return ret !== 0;
|
|
787
|
+
}
|
|
788
|
+
/**
|
|
789
|
+
* Whether metrics tracking is enabled
|
|
790
|
+
* @returns {boolean}
|
|
791
|
+
*/
|
|
792
|
+
get metrics_enabled() {
|
|
793
|
+
const ret = wasm.__wbg_get_datastorestats_metrics_enabled(this.__wbg_ptr);
|
|
794
|
+
return ret !== 0;
|
|
795
|
+
}
|
|
796
|
+
/**
|
|
797
|
+
* Total size of all entries in bytes (approximate, based on JSON serialization)
|
|
798
|
+
* @returns {number}
|
|
799
|
+
*/
|
|
800
|
+
get total_size_bytes() {
|
|
801
|
+
const ret = wasm.__wbg_get_datastorestats_total_size_bytes(this.__wbg_ptr);
|
|
802
|
+
return ret >>> 0;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Average size per entry in bytes (0 if no entries)
|
|
806
|
+
* @param {number} arg0
|
|
807
|
+
*/
|
|
808
|
+
set avg_entry_size_bytes(arg0) {
|
|
809
|
+
wasm.__wbg_set_datastorestats_avg_entry_size_bytes(this.__wbg_ptr, arg0);
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* Percentage of capacity used (0.0-100.0, based on entry count)
|
|
813
|
+
* @param {number} arg0
|
|
814
|
+
*/
|
|
815
|
+
set capacity_usage_percent(arg0) {
|
|
816
|
+
wasm.__wbg_set_datastorestats_capacity_usage_percent(this.__wbg_ptr, arg0);
|
|
817
|
+
}
|
|
818
|
+
/**
|
|
819
|
+
* Number of entries currently stored
|
|
820
|
+
* @param {number} arg0
|
|
821
|
+
*/
|
|
822
|
+
set entry_count(arg0) {
|
|
823
|
+
wasm.__wbg_set_datastorestats_entry_count(this.__wbg_ptr, arg0);
|
|
824
|
+
}
|
|
825
|
+
/**
|
|
826
|
+
* Maximum number of entries allowed (0 = unlimited)
|
|
827
|
+
* @param {number} arg0
|
|
828
|
+
*/
|
|
829
|
+
set max_entries(arg0) {
|
|
830
|
+
wasm.__wbg_set_datastorestats_max_entries(this.__wbg_ptr, arg0);
|
|
831
|
+
}
|
|
832
|
+
/**
|
|
833
|
+
* Maximum size per entry in bytes (0 = unlimited)
|
|
834
|
+
* @param {number} arg0
|
|
835
|
+
*/
|
|
836
|
+
set max_entry_size(arg0) {
|
|
837
|
+
wasm.__wbg_set_datastorestats_max_entry_size(this.__wbg_ptr, arg0);
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Memory usage threshold percentage (from config)
|
|
841
|
+
* @param {number} arg0
|
|
842
|
+
*/
|
|
843
|
+
set memory_alert_threshold(arg0) {
|
|
844
|
+
wasm.__wbg_set_datastorestats_memory_alert_threshold(this.__wbg_ptr, arg0);
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Whether memory usage exceeds the alert threshold
|
|
848
|
+
* @param {boolean} arg0
|
|
849
|
+
*/
|
|
850
|
+
set memory_alert_triggered(arg0) {
|
|
851
|
+
wasm.__wbg_set_datastorestats_memory_alert_triggered(this.__wbg_ptr, arg0);
|
|
852
|
+
}
|
|
853
|
+
/**
|
|
854
|
+
* Whether metrics tracking is enabled
|
|
855
|
+
* @param {boolean} arg0
|
|
856
|
+
*/
|
|
857
|
+
set metrics_enabled(arg0) {
|
|
858
|
+
wasm.__wbg_set_datastorestats_metrics_enabled(this.__wbg_ptr, arg0);
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* Total size of all entries in bytes (approximate, based on JSON serialization)
|
|
862
|
+
* @param {number} arg0
|
|
863
|
+
*/
|
|
864
|
+
set total_size_bytes(arg0) {
|
|
865
|
+
wasm.__wbg_set_datastorestats_total_size_bytes(this.__wbg_ptr, arg0);
|
|
866
|
+
}
|
|
867
|
+
}
|
|
868
|
+
if (Symbol.dispose) DataStoreStats.prototype[Symbol.dispose] = DataStoreStats.prototype.free;
|
|
358
869
|
|
|
359
870
|
/**
|
|
360
871
|
* Diagnostics
|
|
@@ -362,7 +873,7 @@ exports.Cedarling = Cedarling;
|
|
|
362
873
|
*
|
|
363
874
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
364
875
|
*/
|
|
365
|
-
class Diagnostics {
|
|
876
|
+
export class Diagnostics {
|
|
366
877
|
static __wrap(ptr) {
|
|
367
878
|
ptr = ptr >>> 0;
|
|
368
879
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -406,13 +917,12 @@ class Diagnostics {
|
|
|
406
917
|
}
|
|
407
918
|
}
|
|
408
919
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
409
|
-
exports.Diagnostics = Diagnostics;
|
|
410
920
|
|
|
411
921
|
/**
|
|
412
922
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
413
923
|
* Represents the result of a multi-issuer authorization request.
|
|
414
924
|
*/
|
|
415
|
-
class MultiIssuerAuthorizeResult {
|
|
925
|
+
export class MultiIssuerAuthorizeResult {
|
|
416
926
|
static __wrap(ptr) {
|
|
417
927
|
ptr = ptr >>> 0;
|
|
418
928
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -509,7 +1019,6 @@ class MultiIssuerAuthorizeResult {
|
|
|
509
1019
|
}
|
|
510
1020
|
}
|
|
511
1021
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
512
|
-
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
513
1022
|
|
|
514
1023
|
/**
|
|
515
1024
|
* PolicyEvaluationError
|
|
@@ -517,7 +1026,7 @@ exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
|
517
1026
|
*
|
|
518
1027
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
519
1028
|
*/
|
|
520
|
-
class PolicyEvaluationError {
|
|
1029
|
+
export class PolicyEvaluationError {
|
|
521
1030
|
static __wrap(ptr) {
|
|
522
1031
|
ptr = ptr >>> 0;
|
|
523
1032
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -569,7 +1078,6 @@ class PolicyEvaluationError {
|
|
|
569
1078
|
}
|
|
570
1079
|
}
|
|
571
1080
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
572
|
-
exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
573
1081
|
|
|
574
1082
|
/**
|
|
575
1083
|
* Create a new instance of the Cedarling application.
|
|
@@ -577,11 +1085,10 @@ exports.PolicyEvaluationError = PolicyEvaluationError;
|
|
|
577
1085
|
* @param {any} config
|
|
578
1086
|
* @returns {Promise<Cedarling>}
|
|
579
1087
|
*/
|
|
580
|
-
function init(config) {
|
|
1088
|
+
export function init(config) {
|
|
581
1089
|
const ret = wasm.init(config);
|
|
582
1090
|
return ret;
|
|
583
1091
|
}
|
|
584
|
-
exports.init = init;
|
|
585
1092
|
|
|
586
1093
|
/**
|
|
587
1094
|
* Create a new instance of the Cedarling application from archive bytes.
|
|
@@ -603,81 +1110,80 @@ exports.init = init;
|
|
|
603
1110
|
* @param {Uint8Array} archive_bytes
|
|
604
1111
|
* @returns {Promise<Cedarling>}
|
|
605
1112
|
*/
|
|
606
|
-
function init_from_archive_bytes(config, archive_bytes) {
|
|
1113
|
+
export function init_from_archive_bytes(config, archive_bytes) {
|
|
607
1114
|
const ret = wasm.init_from_archive_bytes(config, archive_bytes);
|
|
608
1115
|
return ret;
|
|
609
1116
|
}
|
|
610
|
-
exports.init_from_archive_bytes = init_from_archive_bytes;
|
|
611
1117
|
|
|
612
1118
|
function __wbg_get_imports() {
|
|
613
1119
|
const import0 = {
|
|
614
1120
|
__proto__: null,
|
|
615
|
-
|
|
1121
|
+
__wbg_Error_83742b46f01ce22d: function(arg0, arg1) {
|
|
616
1122
|
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
617
1123
|
return ret;
|
|
618
1124
|
},
|
|
619
|
-
|
|
1125
|
+
__wbg_Number_a5a435bd7bbec835: function(arg0) {
|
|
620
1126
|
const ret = Number(arg0);
|
|
621
1127
|
return ret;
|
|
622
1128
|
},
|
|
623
|
-
|
|
1129
|
+
__wbg___wbindgen_bigint_get_as_i64_447a76b5c6ef7bda: function(arg0, arg1) {
|
|
624
1130
|
const v = arg1;
|
|
625
1131
|
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
626
1132
|
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
627
1133
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
628
1134
|
},
|
|
629
|
-
|
|
1135
|
+
__wbg___wbindgen_boolean_get_c0f3f60bac5a78d1: function(arg0) {
|
|
630
1136
|
const v = arg0;
|
|
631
1137
|
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
632
1138
|
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
633
1139
|
},
|
|
634
|
-
|
|
1140
|
+
__wbg___wbindgen_debug_string_5398f5bb970e0daa: function(arg0, arg1) {
|
|
635
1141
|
const ret = debugString(arg1);
|
|
636
1142
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
637
1143
|
const len1 = WASM_VECTOR_LEN;
|
|
638
1144
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
639
1145
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
640
1146
|
},
|
|
641
|
-
|
|
1147
|
+
__wbg___wbindgen_in_41dbb8413020e076: function(arg0, arg1) {
|
|
642
1148
|
const ret = arg0 in arg1;
|
|
643
1149
|
return ret;
|
|
644
1150
|
},
|
|
645
|
-
|
|
1151
|
+
__wbg___wbindgen_is_bigint_e2141d4f045b7eda: function(arg0) {
|
|
646
1152
|
const ret = typeof(arg0) === 'bigint';
|
|
647
1153
|
return ret;
|
|
648
1154
|
},
|
|
649
|
-
|
|
1155
|
+
__wbg___wbindgen_is_function_3c846841762788c1: function(arg0) {
|
|
650
1156
|
const ret = typeof(arg0) === 'function';
|
|
651
1157
|
return ret;
|
|
652
1158
|
},
|
|
653
|
-
|
|
1159
|
+
__wbg___wbindgen_is_object_781bc9f159099513: function(arg0) {
|
|
654
1160
|
const val = arg0;
|
|
655
1161
|
const ret = typeof(val) === 'object' && val !== null;
|
|
656
1162
|
return ret;
|
|
657
1163
|
},
|
|
658
|
-
|
|
1164
|
+
__wbg___wbindgen_is_string_7ef6b97b02428fae: function(arg0) {
|
|
659
1165
|
const ret = typeof(arg0) === 'string';
|
|
660
1166
|
return ret;
|
|
661
1167
|
},
|
|
662
|
-
|
|
1168
|
+
__wbg___wbindgen_is_undefined_52709e72fb9f179c: function(arg0) {
|
|
663
1169
|
const ret = arg0 === undefined;
|
|
664
1170
|
return ret;
|
|
665
1171
|
},
|
|
666
|
-
|
|
1172
|
+
__wbg___wbindgen_jsval_eq_ee31bfad3e536463: function(arg0, arg1) {
|
|
667
1173
|
const ret = arg0 === arg1;
|
|
668
1174
|
return ret;
|
|
669
1175
|
},
|
|
670
|
-
|
|
1176
|
+
__wbg___wbindgen_jsval_loose_eq_5bcc3bed3c69e72b: function(arg0, arg1) {
|
|
671
1177
|
const ret = arg0 == arg1;
|
|
672
1178
|
return ret;
|
|
673
1179
|
},
|
|
674
|
-
|
|
1180
|
+
__wbg___wbindgen_number_get_34bb9d9dcfa21373: function(arg0, arg1) {
|
|
675
1181
|
const obj = arg1;
|
|
676
1182
|
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
677
1183
|
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
678
1184
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
679
1185
|
},
|
|
680
|
-
|
|
1186
|
+
__wbg___wbindgen_string_get_395e606bd0ee4427: function(arg0, arg1) {
|
|
681
1187
|
const obj = arg1;
|
|
682
1188
|
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
683
1189
|
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
@@ -685,22 +1191,22 @@ function __wbg_get_imports() {
|
|
|
685
1191
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
686
1192
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
687
1193
|
},
|
|
688
|
-
|
|
1194
|
+
__wbg___wbindgen_throw_6ddd609b62940d55: function(arg0, arg1) {
|
|
689
1195
|
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
690
1196
|
},
|
|
691
|
-
|
|
1197
|
+
__wbg__wbg_cb_unref_6b5b6b8576d35cb1: function(arg0) {
|
|
692
1198
|
arg0._wbg_cb_unref();
|
|
693
1199
|
},
|
|
694
|
-
|
|
1200
|
+
__wbg_abort_5ef96933660780b7: function(arg0) {
|
|
695
1201
|
arg0.abort();
|
|
696
1202
|
},
|
|
697
|
-
|
|
1203
|
+
__wbg_abort_6479c2d794ebf2ee: function(arg0, arg1) {
|
|
698
1204
|
arg0.abort(arg1);
|
|
699
1205
|
},
|
|
700
|
-
|
|
1206
|
+
__wbg_append_608dfb635ee8998f: function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
701
1207
|
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
702
1208
|
}, arguments); },
|
|
703
|
-
|
|
1209
|
+
__wbg_arrayBuffer_eb8e9ca620af2a19: function() { return handleError(function (arg0) {
|
|
704
1210
|
const ret = arg0.arrayBuffer();
|
|
705
1211
|
return ret;
|
|
706
1212
|
}, arguments); },
|
|
@@ -708,11 +1214,11 @@ function __wbg_get_imports() {
|
|
|
708
1214
|
const ret = AuthorizeResult.__wrap(arg0);
|
|
709
1215
|
return ret;
|
|
710
1216
|
},
|
|
711
|
-
|
|
1217
|
+
__wbg_call_2d781c1f4d5c0ef8: function() { return handleError(function (arg0, arg1, arg2) {
|
|
712
1218
|
const ret = arg0.call(arg1, arg2);
|
|
713
1219
|
return ret;
|
|
714
1220
|
}, arguments); },
|
|
715
|
-
|
|
1221
|
+
__wbg_call_e133b57c9155d22c: function() { return handleError(function (arg0, arg1) {
|
|
716
1222
|
const ret = arg0.call(arg1);
|
|
717
1223
|
return ret;
|
|
718
1224
|
}, arguments); },
|
|
@@ -728,37 +1234,41 @@ function __wbg_get_imports() {
|
|
|
728
1234
|
const ret = arg0.crypto;
|
|
729
1235
|
return ret;
|
|
730
1236
|
},
|
|
731
|
-
|
|
1237
|
+
__wbg_dataentry_new: function(arg0) {
|
|
1238
|
+
const ret = DataEntry.__wrap(arg0);
|
|
1239
|
+
return ret;
|
|
1240
|
+
},
|
|
1241
|
+
__wbg_debug_6fad7a26a693b696: function(arg0) {
|
|
732
1242
|
console.debug(...arg0);
|
|
733
1243
|
},
|
|
734
|
-
|
|
1244
|
+
__wbg_done_08ce71ee07e3bd17: function(arg0) {
|
|
735
1245
|
const ret = arg0.done;
|
|
736
1246
|
return ret;
|
|
737
1247
|
},
|
|
738
|
-
|
|
739
|
-
const ret =
|
|
1248
|
+
__wbg_entries_5b8fe91cea59610e: function(arg0) {
|
|
1249
|
+
const ret = arg0.entries();
|
|
740
1250
|
return ret;
|
|
741
1251
|
},
|
|
742
|
-
|
|
1252
|
+
__wbg_entries_850b70a4650cfe8b: function(arg0) {
|
|
743
1253
|
const ret = arg0.entries();
|
|
744
1254
|
return ret;
|
|
745
1255
|
},
|
|
746
|
-
|
|
747
|
-
const ret =
|
|
1256
|
+
__wbg_entries_e8a20ff8c9757101: function(arg0) {
|
|
1257
|
+
const ret = Object.entries(arg0);
|
|
748
1258
|
return ret;
|
|
749
1259
|
},
|
|
750
|
-
|
|
1260
|
+
__wbg_error_b282edc683808929: function(arg0) {
|
|
751
1261
|
console.error(...arg0);
|
|
752
1262
|
},
|
|
753
1263
|
__wbg_fetch_43b2f110608a59ff: function(arg0) {
|
|
754
1264
|
const ret = fetch(arg0);
|
|
755
1265
|
return ret;
|
|
756
1266
|
},
|
|
757
|
-
|
|
1267
|
+
__wbg_fetch_5550a88cf343aaa9: function(arg0, arg1) {
|
|
758
1268
|
const ret = arg0.fetch(arg1);
|
|
759
1269
|
return ret;
|
|
760
1270
|
},
|
|
761
|
-
|
|
1271
|
+
__wbg_fromEntries_8f078e02a548e8eb: function() { return handleError(function (arg0) {
|
|
762
1272
|
const ret = Object.fromEntries(arg0);
|
|
763
1273
|
return ret;
|
|
764
1274
|
}, arguments); },
|
|
@@ -768,27 +1278,27 @@ function __wbg_get_imports() {
|
|
|
768
1278
|
__wbg_getRandomValues_c44a50d8cfdaebeb: function() { return handleError(function (arg0, arg1) {
|
|
769
1279
|
arg0.getRandomValues(arg1);
|
|
770
1280
|
}, arguments); },
|
|
771
|
-
|
|
1281
|
+
__wbg_getTime_1dad7b5386ddd2d9: function(arg0) {
|
|
772
1282
|
const ret = arg0.getTime();
|
|
773
1283
|
return ret;
|
|
774
1284
|
},
|
|
775
|
-
|
|
1285
|
+
__wbg_getTimezoneOffset_639bcf2dde21158b: function(arg0) {
|
|
776
1286
|
const ret = arg0.getTimezoneOffset();
|
|
777
1287
|
return ret;
|
|
778
1288
|
},
|
|
779
|
-
|
|
1289
|
+
__wbg_get_326e41e095fb2575: function() { return handleError(function (arg0, arg1) {
|
|
780
1290
|
const ret = Reflect.get(arg0, arg1);
|
|
781
1291
|
return ret;
|
|
782
1292
|
}, arguments); },
|
|
783
|
-
|
|
1293
|
+
__wbg_get_3ef1eba1850ade27: function() { return handleError(function (arg0, arg1) {
|
|
784
1294
|
const ret = Reflect.get(arg0, arg1);
|
|
785
1295
|
return ret;
|
|
786
1296
|
}, arguments); },
|
|
787
|
-
|
|
1297
|
+
__wbg_get_a8ee5c45dabc1b3b: function(arg0, arg1) {
|
|
788
1298
|
const ret = arg0[arg1 >>> 0];
|
|
789
1299
|
return ret;
|
|
790
1300
|
},
|
|
791
|
-
|
|
1301
|
+
__wbg_get_unchecked_329cfe50afab7352: function(arg0, arg1) {
|
|
792
1302
|
const ret = arg0[arg1 >>> 0];
|
|
793
1303
|
return ret;
|
|
794
1304
|
},
|
|
@@ -796,18 +1306,18 @@ function __wbg_get_imports() {
|
|
|
796
1306
|
const ret = arg0[arg1];
|
|
797
1307
|
return ret;
|
|
798
1308
|
},
|
|
799
|
-
|
|
1309
|
+
__wbg_has_926ef2ff40b308cf: function() { return handleError(function (arg0, arg1) {
|
|
800
1310
|
const ret = Reflect.has(arg0, arg1);
|
|
801
1311
|
return ret;
|
|
802
1312
|
}, arguments); },
|
|
803
|
-
|
|
1313
|
+
__wbg_headers_eb2234545f9ff993: function(arg0) {
|
|
804
1314
|
const ret = arg0.headers;
|
|
805
1315
|
return ret;
|
|
806
1316
|
},
|
|
807
|
-
|
|
1317
|
+
__wbg_info_4284b8118a0cae1c: function(arg0) {
|
|
808
1318
|
console.info(...arg0);
|
|
809
1319
|
},
|
|
810
|
-
|
|
1320
|
+
__wbg_instanceof_ArrayBuffer_101e2bf31071a9f6: function(arg0) {
|
|
811
1321
|
let result;
|
|
812
1322
|
try {
|
|
813
1323
|
result = arg0 instanceof ArrayBuffer;
|
|
@@ -817,7 +1327,7 @@ function __wbg_get_imports() {
|
|
|
817
1327
|
const ret = result;
|
|
818
1328
|
return ret;
|
|
819
1329
|
},
|
|
820
|
-
|
|
1330
|
+
__wbg_instanceof_Array_3247353192ed9130: function(arg0) {
|
|
821
1331
|
let result;
|
|
822
1332
|
try {
|
|
823
1333
|
result = arg0 instanceof Array;
|
|
@@ -827,7 +1337,7 @@ function __wbg_get_imports() {
|
|
|
827
1337
|
const ret = result;
|
|
828
1338
|
return ret;
|
|
829
1339
|
},
|
|
830
|
-
|
|
1340
|
+
__wbg_instanceof_Map_f194b366846aca0c: function(arg0) {
|
|
831
1341
|
let result;
|
|
832
1342
|
try {
|
|
833
1343
|
result = arg0 instanceof Map;
|
|
@@ -837,7 +1347,7 @@ function __wbg_get_imports() {
|
|
|
837
1347
|
const ret = result;
|
|
838
1348
|
return ret;
|
|
839
1349
|
},
|
|
840
|
-
|
|
1350
|
+
__wbg_instanceof_Response_9b4d9fd451e051b1: function(arg0) {
|
|
841
1351
|
let result;
|
|
842
1352
|
try {
|
|
843
1353
|
result = arg0 instanceof Response;
|
|
@@ -847,7 +1357,7 @@ function __wbg_get_imports() {
|
|
|
847
1357
|
const ret = result;
|
|
848
1358
|
return ret;
|
|
849
1359
|
},
|
|
850
|
-
|
|
1360
|
+
__wbg_instanceof_Uint8Array_740438561a5b956d: function(arg0) {
|
|
851
1361
|
let result;
|
|
852
1362
|
try {
|
|
853
1363
|
result = arg0 instanceof Uint8Array;
|
|
@@ -857,31 +1367,31 @@ function __wbg_get_imports() {
|
|
|
857
1367
|
const ret = result;
|
|
858
1368
|
return ret;
|
|
859
1369
|
},
|
|
860
|
-
|
|
1370
|
+
__wbg_isArray_33b91feb269ff46e: function(arg0) {
|
|
861
1371
|
const ret = Array.isArray(arg0);
|
|
862
1372
|
return ret;
|
|
863
1373
|
},
|
|
864
|
-
|
|
1374
|
+
__wbg_isSafeInteger_ecd6a7f9c3e053cd: function(arg0) {
|
|
865
1375
|
const ret = Number.isSafeInteger(arg0);
|
|
866
1376
|
return ret;
|
|
867
1377
|
},
|
|
868
|
-
|
|
1378
|
+
__wbg_iterator_d8f549ec8fb061b1: function() {
|
|
869
1379
|
const ret = Symbol.iterator;
|
|
870
1380
|
return ret;
|
|
871
1381
|
},
|
|
872
|
-
|
|
1382
|
+
__wbg_keys_ab0d051a1c55236d: function(arg0) {
|
|
873
1383
|
const ret = Object.keys(arg0);
|
|
874
1384
|
return ret;
|
|
875
1385
|
},
|
|
876
|
-
|
|
1386
|
+
__wbg_length_b3416cf66a5452c8: function(arg0) {
|
|
877
1387
|
const ret = arg0.length;
|
|
878
1388
|
return ret;
|
|
879
1389
|
},
|
|
880
|
-
|
|
1390
|
+
__wbg_length_ea16607d7b61445b: function(arg0) {
|
|
881
1391
|
const ret = arg0.length;
|
|
882
1392
|
return ret;
|
|
883
1393
|
},
|
|
884
|
-
|
|
1394
|
+
__wbg_log_0c2d15a74310c102: function(arg0) {
|
|
885
1395
|
console.log(...arg0);
|
|
886
1396
|
},
|
|
887
1397
|
__wbg_msCrypto_bd5a034af96bcba6: function(arg0) {
|
|
@@ -892,50 +1402,50 @@ function __wbg_get_imports() {
|
|
|
892
1402
|
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
893
1403
|
return ret;
|
|
894
1404
|
},
|
|
895
|
-
|
|
1405
|
+
__wbg_new_0837727332ac86ba: function() { return handleError(function () {
|
|
896
1406
|
const ret = new Headers();
|
|
897
1407
|
return ret;
|
|
898
1408
|
}, arguments); },
|
|
899
|
-
|
|
900
|
-
const ret = new Uint8Array(arg0);
|
|
901
|
-
return ret;
|
|
902
|
-
},
|
|
903
|
-
__wbg_new_0_a719938e6f92ddf4: function() {
|
|
1409
|
+
__wbg_new_0_1dcafdf5e786e876: function() {
|
|
904
1410
|
const ret = new Date();
|
|
905
1411
|
return ret;
|
|
906
1412
|
},
|
|
907
|
-
|
|
908
|
-
const ret = new
|
|
1413
|
+
__wbg_new_49d5571bd3f0c4d4: function() {
|
|
1414
|
+
const ret = new Map();
|
|
909
1415
|
return ret;
|
|
910
1416
|
},
|
|
911
|
-
|
|
912
|
-
const ret = new
|
|
1417
|
+
__wbg_new_5f486cdf45a04d78: function(arg0) {
|
|
1418
|
+
const ret = new Uint8Array(arg0);
|
|
913
1419
|
return ret;
|
|
914
1420
|
},
|
|
915
|
-
|
|
1421
|
+
__wbg_new_a70fbab9066b301f: function() {
|
|
916
1422
|
const ret = new Array();
|
|
917
1423
|
return ret;
|
|
918
1424
|
},
|
|
919
|
-
|
|
1425
|
+
__wbg_new_ab79df5bd7c26067: function() {
|
|
920
1426
|
const ret = new Object();
|
|
921
1427
|
return ret;
|
|
922
1428
|
},
|
|
923
|
-
|
|
1429
|
+
__wbg_new_c518c60af666645b: function() { return handleError(function () {
|
|
924
1430
|
const ret = new AbortController();
|
|
925
1431
|
return ret;
|
|
926
1432
|
}, arguments); },
|
|
927
|
-
|
|
1433
|
+
__wbg_new_fd94ca5c9639abd2: function(arg0) {
|
|
1434
|
+
const ret = new Date(arg0);
|
|
1435
|
+
return ret;
|
|
1436
|
+
},
|
|
1437
|
+
__wbg_new_from_slice_22da9388ac046e50: function(arg0, arg1) {
|
|
928
1438
|
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
929
1439
|
return ret;
|
|
930
1440
|
},
|
|
931
|
-
|
|
1441
|
+
__wbg_new_typed_aaaeaf29cf802876: function(arg0, arg1) {
|
|
932
1442
|
try {
|
|
933
1443
|
var state0 = {a: arg0, b: arg1};
|
|
934
1444
|
var cb0 = (arg0, arg1) => {
|
|
935
1445
|
const a = state0.a;
|
|
936
1446
|
state0.a = 0;
|
|
937
1447
|
try {
|
|
938
|
-
return
|
|
1448
|
+
return wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(a, state0.b, arg0, arg1);
|
|
939
1449
|
} finally {
|
|
940
1450
|
state0.a = a;
|
|
941
1451
|
}
|
|
@@ -946,22 +1456,22 @@ function __wbg_get_imports() {
|
|
|
946
1456
|
state0.a = state0.b = 0;
|
|
947
1457
|
}
|
|
948
1458
|
},
|
|
949
|
-
|
|
1459
|
+
__wbg_new_with_length_825018a1616e9e55: function(arg0) {
|
|
950
1460
|
const ret = new Uint8Array(arg0 >>> 0);
|
|
951
1461
|
return ret;
|
|
952
1462
|
},
|
|
953
|
-
|
|
1463
|
+
__wbg_new_with_str_and_init_b4b54d1a819bc724: function() { return handleError(function (arg0, arg1, arg2) {
|
|
954
1464
|
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
955
1465
|
return ret;
|
|
956
1466
|
}, arguments); },
|
|
957
|
-
|
|
958
|
-
const ret = arg0.next;
|
|
959
|
-
return ret;
|
|
960
|
-
},
|
|
961
|
-
__wbg_next_e592122bb4ed4c67: function() { return handleError(function (arg0) {
|
|
1467
|
+
__wbg_next_11b99ee6237339e3: function() { return handleError(function (arg0) {
|
|
962
1468
|
const ret = arg0.next();
|
|
963
1469
|
return ret;
|
|
964
1470
|
}, arguments); },
|
|
1471
|
+
__wbg_next_e01a967809d1aa68: function(arg0) {
|
|
1472
|
+
const ret = arg0.next;
|
|
1473
|
+
return ret;
|
|
1474
|
+
},
|
|
965
1475
|
__wbg_node_84ea875411254db1: function(arg0) {
|
|
966
1476
|
const ret = arg0.node;
|
|
967
1477
|
return ret;
|
|
@@ -974,18 +1484,18 @@ function __wbg_get_imports() {
|
|
|
974
1484
|
const ret = arg0.process;
|
|
975
1485
|
return ret;
|
|
976
1486
|
},
|
|
977
|
-
|
|
1487
|
+
__wbg_prototypesetcall_d62e5099504357e6: function(arg0, arg1, arg2) {
|
|
978
1488
|
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
979
1489
|
},
|
|
980
|
-
|
|
1490
|
+
__wbg_push_e87b0e732085a946: function(arg0, arg1) {
|
|
981
1491
|
const ret = arg0.push(arg1);
|
|
982
1492
|
return ret;
|
|
983
1493
|
},
|
|
984
|
-
|
|
1494
|
+
__wbg_queueMicrotask_0c399741342fb10f: function(arg0) {
|
|
985
1495
|
const ret = arg0.queueMicrotask;
|
|
986
1496
|
return ret;
|
|
987
1497
|
},
|
|
988
|
-
|
|
1498
|
+
__wbg_queueMicrotask_a082d78ce798393e: function(arg0) {
|
|
989
1499
|
queueMicrotask(arg0);
|
|
990
1500
|
},
|
|
991
1501
|
__wbg_randomFillSync_6c25eac9869eb53c: function() { return handleError(function (arg0, arg1) {
|
|
@@ -995,7 +1505,7 @@ function __wbg_get_imports() {
|
|
|
995
1505
|
const ret = module.require;
|
|
996
1506
|
return ret;
|
|
997
1507
|
}, arguments); },
|
|
998
|
-
|
|
1508
|
+
__wbg_resolve_ae8d83246e5bcc12: function(arg0) {
|
|
999
1509
|
const ret = Promise.resolve(arg0);
|
|
1000
1510
|
return ret;
|
|
1001
1511
|
},
|
|
@@ -1003,92 +1513,92 @@ function __wbg_get_imports() {
|
|
|
1003
1513
|
const ret = setTimeout(arg0, arg1);
|
|
1004
1514
|
return ret;
|
|
1005
1515
|
},
|
|
1006
|
-
|
|
1516
|
+
__wbg_set_282384002438957f: function(arg0, arg1, arg2) {
|
|
1007
1517
|
arg0[arg1 >>> 0] = arg2;
|
|
1008
1518
|
},
|
|
1009
1519
|
__wbg_set_6be42768c690e380: function(arg0, arg1, arg2) {
|
|
1010
1520
|
arg0[arg1] = arg2;
|
|
1011
1521
|
},
|
|
1012
|
-
|
|
1522
|
+
__wbg_set_7eaa4f96924fd6b3: function() { return handleError(function (arg0, arg1, arg2) {
|
|
1013
1523
|
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1014
1524
|
return ret;
|
|
1015
1525
|
}, arguments); },
|
|
1016
|
-
|
|
1526
|
+
__wbg_set_bf7251625df30a02: function(arg0, arg1, arg2) {
|
|
1527
|
+
const ret = arg0.set(arg1, arg2);
|
|
1528
|
+
return ret;
|
|
1529
|
+
},
|
|
1530
|
+
__wbg_set_body_a3d856b097dfda04: function(arg0, arg1) {
|
|
1017
1531
|
arg0.body = arg1;
|
|
1018
1532
|
},
|
|
1019
|
-
|
|
1533
|
+
__wbg_set_cache_ec7e430c6056ebda: function(arg0, arg1) {
|
|
1020
1534
|
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1021
1535
|
},
|
|
1022
|
-
|
|
1023
|
-
const ret = arg0.set(arg1, arg2);
|
|
1024
|
-
return ret;
|
|
1025
|
-
},
|
|
1026
|
-
__wbg_set_credentials_b80a80dfa15201af: function(arg0, arg1) {
|
|
1536
|
+
__wbg_set_credentials_ed63183445882c65: function(arg0, arg1) {
|
|
1027
1537
|
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1028
1538
|
},
|
|
1029
|
-
|
|
1539
|
+
__wbg_set_headers_3c8fecc693b75327: function(arg0, arg1) {
|
|
1030
1540
|
arg0.headers = arg1;
|
|
1031
1541
|
},
|
|
1032
|
-
|
|
1542
|
+
__wbg_set_method_8c015e8bcafd7be1: function(arg0, arg1, arg2) {
|
|
1033
1543
|
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1034
1544
|
},
|
|
1035
|
-
|
|
1545
|
+
__wbg_set_mode_5a87f2c809cf37c2: function(arg0, arg1) {
|
|
1036
1546
|
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1037
1547
|
},
|
|
1038
|
-
|
|
1548
|
+
__wbg_set_signal_0cebecb698f25d21: function(arg0, arg1) {
|
|
1039
1549
|
arg0.signal = arg1;
|
|
1040
1550
|
},
|
|
1041
|
-
|
|
1551
|
+
__wbg_signal_166e1da31adcac18: function(arg0) {
|
|
1042
1552
|
const ret = arg0.signal;
|
|
1043
1553
|
return ret;
|
|
1044
1554
|
},
|
|
1045
|
-
|
|
1046
|
-
const ret = typeof
|
|
1555
|
+
__wbg_static_accessor_GLOBAL_8adb955bd33fac2f: function() {
|
|
1556
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1047
1557
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1048
1558
|
},
|
|
1049
|
-
|
|
1050
|
-
const ret = typeof
|
|
1559
|
+
__wbg_static_accessor_GLOBAL_THIS_ad356e0db91c7913: function() {
|
|
1560
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1051
1561
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1052
1562
|
},
|
|
1053
|
-
|
|
1563
|
+
__wbg_static_accessor_SELF_f207c857566db248: function() {
|
|
1054
1564
|
const ret = typeof self === 'undefined' ? null : self;
|
|
1055
1565
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1056
1566
|
},
|
|
1057
|
-
|
|
1567
|
+
__wbg_static_accessor_WINDOW_bb9f1ba69d61b386: function() {
|
|
1058
1568
|
const ret = typeof window === 'undefined' ? null : window;
|
|
1059
1569
|
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1060
1570
|
},
|
|
1061
|
-
|
|
1571
|
+
__wbg_status_318629ab93a22955: function(arg0) {
|
|
1062
1572
|
const ret = arg0.status;
|
|
1063
1573
|
return ret;
|
|
1064
1574
|
},
|
|
1065
|
-
|
|
1575
|
+
__wbg_subarray_a068d24e39478a8a: function(arg0, arg1, arg2) {
|
|
1066
1576
|
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1067
1577
|
return ret;
|
|
1068
1578
|
},
|
|
1069
|
-
|
|
1579
|
+
__wbg_text_372f5b91442c50f9: function() { return handleError(function (arg0) {
|
|
1070
1580
|
const ret = arg0.text();
|
|
1071
1581
|
return ret;
|
|
1072
1582
|
}, arguments); },
|
|
1073
|
-
|
|
1074
|
-
const ret = arg0.then(arg1
|
|
1583
|
+
__wbg_then_098abe61755d12f6: function(arg0, arg1) {
|
|
1584
|
+
const ret = arg0.then(arg1);
|
|
1075
1585
|
return ret;
|
|
1076
1586
|
},
|
|
1077
|
-
|
|
1078
|
-
const ret = arg0.then(arg1);
|
|
1587
|
+
__wbg_then_9e335f6dd892bc11: function(arg0, arg1, arg2) {
|
|
1588
|
+
const ret = arg0.then(arg1, arg2);
|
|
1079
1589
|
return ret;
|
|
1080
1590
|
},
|
|
1081
|
-
|
|
1591
|
+
__wbg_trace_e81c2d096c740f11: function(arg0) {
|
|
1082
1592
|
console.trace(...arg0);
|
|
1083
1593
|
},
|
|
1084
|
-
|
|
1594
|
+
__wbg_url_7fefc1820fba4e0c: function(arg0, arg1) {
|
|
1085
1595
|
const ret = arg1.url;
|
|
1086
1596
|
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1087
1597
|
const len1 = WASM_VECTOR_LEN;
|
|
1088
1598
|
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1089
1599
|
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1090
1600
|
},
|
|
1091
|
-
|
|
1601
|
+
__wbg_value_21fc78aab0322612: function(arg0) {
|
|
1092
1602
|
const ret = arg0.value;
|
|
1093
1603
|
return ret;
|
|
1094
1604
|
},
|
|
@@ -1096,17 +1606,17 @@ function __wbg_get_imports() {
|
|
|
1096
1606
|
const ret = arg0.versions;
|
|
1097
1607
|
return ret;
|
|
1098
1608
|
},
|
|
1099
|
-
|
|
1609
|
+
__wbg_warn_ff4a30433095bbe4: function(arg0) {
|
|
1100
1610
|
console.warn(...arg0);
|
|
1101
1611
|
},
|
|
1102
1612
|
__wbindgen_cast_0000000000000001: function(arg0, arg1) {
|
|
1103
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1104
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1613
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 575, function: Function { arguments: [], shim_idx: 576, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1614
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haa2c8eeec983adf2, wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141);
|
|
1105
1615
|
return ret;
|
|
1106
1616
|
},
|
|
1107
1617
|
__wbindgen_cast_0000000000000002: function(arg0, arg1) {
|
|
1108
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx:
|
|
1109
|
-
const ret = makeMutClosure(arg0, arg1, wasm.
|
|
1618
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 619, function: Function { arguments: [Externref], shim_idx: 2038, ret: Result(Unit), inner_ret: Some(Result(Unit)) }, mutable: true }) -> Externref`.
|
|
1619
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__haf4358594d12c874, wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a);
|
|
1110
1620
|
return ret;
|
|
1111
1621
|
},
|
|
1112
1622
|
__wbindgen_cast_0000000000000003: function(arg0) {
|
|
@@ -1150,19 +1660,19 @@ function __wbg_get_imports() {
|
|
|
1150
1660
|
};
|
|
1151
1661
|
}
|
|
1152
1662
|
|
|
1153
|
-
function
|
|
1154
|
-
wasm.
|
|
1663
|
+
function wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141(arg0, arg1) {
|
|
1664
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h680f4b2480ae6141(arg0, arg1);
|
|
1155
1665
|
}
|
|
1156
1666
|
|
|
1157
|
-
function
|
|
1158
|
-
const ret = wasm.
|
|
1667
|
+
function wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a(arg0, arg1, arg2) {
|
|
1668
|
+
const ret = wasm.wasm_bindgen__convert__closures_____invoke__h1f90382e3f7fa14a(arg0, arg1, arg2);
|
|
1159
1669
|
if (ret[1]) {
|
|
1160
1670
|
throw takeFromExternrefTable0(ret[0]);
|
|
1161
1671
|
}
|
|
1162
1672
|
}
|
|
1163
1673
|
|
|
1164
|
-
function
|
|
1165
|
-
wasm.
|
|
1674
|
+
function wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(arg0, arg1, arg2, arg3) {
|
|
1675
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h434e5a5fca11045c(arg0, arg1, arg2, arg3);
|
|
1166
1676
|
}
|
|
1167
1677
|
|
|
1168
1678
|
|
|
@@ -1182,6 +1692,12 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
|
|
|
1182
1692
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1183
1693
|
? { register: () => {}, unregister: () => {} }
|
|
1184
1694
|
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
1695
|
+
const DataEntryFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1696
|
+
? { register: () => {}, unregister: () => {} }
|
|
1697
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_dataentry_free(ptr >>> 0, 1));
|
|
1698
|
+
const DataStoreStatsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1699
|
+
? { register: () => {}, unregister: () => {} }
|
|
1700
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_datastorestats_free(ptr >>> 0, 1));
|
|
1185
1701
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
1186
1702
|
? { register: () => {}, unregister: () => {} }
|
|
1187
1703
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
@@ -1396,7 +1912,15 @@ function takeFromExternrefTable0(idx) {
|
|
|
1396
1912
|
|
|
1397
1913
|
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1398
1914
|
cachedTextDecoder.decode();
|
|
1915
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1916
|
+
let numBytesDecoded = 0;
|
|
1399
1917
|
function decodeText(ptr, len) {
|
|
1918
|
+
numBytesDecoded += len;
|
|
1919
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1920
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1921
|
+
cachedTextDecoder.decode();
|
|
1922
|
+
numBytesDecoded = len;
|
|
1923
|
+
}
|
|
1400
1924
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1401
1925
|
}
|
|
1402
1926
|
|
|
@@ -1415,8 +1939,95 @@ if (!('encodeInto' in cachedTextEncoder)) {
|
|
|
1415
1939
|
|
|
1416
1940
|
let WASM_VECTOR_LEN = 0;
|
|
1417
1941
|
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1942
|
+
let wasmModule, wasm;
|
|
1943
|
+
function __wbg_finalize_init(instance, module) {
|
|
1944
|
+
wasm = instance.exports;
|
|
1945
|
+
wasmModule = module;
|
|
1946
|
+
cachedDataViewMemory0 = null;
|
|
1947
|
+
cachedUint8ArrayMemory0 = null;
|
|
1948
|
+
wasm.__wbindgen_start();
|
|
1949
|
+
return wasm;
|
|
1950
|
+
}
|
|
1951
|
+
|
|
1952
|
+
async function __wbg_load(module, imports) {
|
|
1953
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1954
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1955
|
+
try {
|
|
1956
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1957
|
+
} catch (e) {
|
|
1958
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1959
|
+
|
|
1960
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1961
|
+
console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n", e);
|
|
1962
|
+
|
|
1963
|
+
} else { throw e; }
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
|
|
1967
|
+
const bytes = await module.arrayBuffer();
|
|
1968
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1969
|
+
} else {
|
|
1970
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1971
|
+
|
|
1972
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1973
|
+
return { instance, module };
|
|
1974
|
+
} else {
|
|
1975
|
+
return instance;
|
|
1976
|
+
}
|
|
1977
|
+
}
|
|
1978
|
+
|
|
1979
|
+
function expectedResponseType(type) {
|
|
1980
|
+
switch (type) {
|
|
1981
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1982
|
+
}
|
|
1983
|
+
return false;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
|
|
1987
|
+
function initSync(module) {
|
|
1988
|
+
if (wasm !== undefined) return wasm;
|
|
1989
|
+
|
|
1990
|
+
|
|
1991
|
+
if (module !== undefined) {
|
|
1992
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1993
|
+
({module} = module)
|
|
1994
|
+
} else {
|
|
1995
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
const imports = __wbg_get_imports();
|
|
2000
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
2001
|
+
module = new WebAssembly.Module(module);
|
|
2002
|
+
}
|
|
2003
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
2004
|
+
return __wbg_finalize_init(instance, module);
|
|
2005
|
+
}
|
|
2006
|
+
|
|
2007
|
+
async function __wbg_init(module_or_path) {
|
|
2008
|
+
if (wasm !== undefined) return wasm;
|
|
2009
|
+
|
|
2010
|
+
|
|
2011
|
+
if (module_or_path !== undefined) {
|
|
2012
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
2013
|
+
({module_or_path} = module_or_path)
|
|
2014
|
+
} else {
|
|
2015
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
2016
|
+
}
|
|
2017
|
+
}
|
|
2018
|
+
|
|
2019
|
+
if (module_or_path === undefined) {
|
|
2020
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
2021
|
+
}
|
|
2022
|
+
const imports = __wbg_get_imports();
|
|
2023
|
+
|
|
2024
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
2025
|
+
module_or_path = fetch(module_or_path);
|
|
2026
|
+
}
|
|
2027
|
+
|
|
2028
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
2029
|
+
|
|
2030
|
+
return __wbg_finalize_init(instance, module);
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
export { initSync, __wbg_init as default };
|