@janssenproject/cedarling_wasm 0.0.231-nodejs → 0.0.231
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/cedarling_wasm.d.ts +77 -0
- package/cedarling_wasm.js +636 -657
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
let imports = {};
|
|
3
|
-
imports['__wbindgen_placeholder__'] = module.exports;
|
|
1
|
+
let wasm;
|
|
4
2
|
|
|
5
3
|
let cachedUint8ArrayMemory0 = null;
|
|
6
4
|
|
|
@@ -15,7 +13,15 @@ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true
|
|
|
15
13
|
|
|
16
14
|
cachedTextDecoder.decode();
|
|
17
15
|
|
|
16
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
17
|
+
let numBytesDecoded = 0;
|
|
18
18
|
function decodeText(ptr, len) {
|
|
19
|
+
numBytesDecoded += len;
|
|
20
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
21
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
22
|
+
cachedTextDecoder.decode();
|
|
23
|
+
numBytesDecoded = len;
|
|
24
|
+
}
|
|
19
25
|
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
20
26
|
}
|
|
21
27
|
|
|
@@ -215,10 +221,10 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
215
221
|
* @param {any} config
|
|
216
222
|
* @returns {Promise<Cedarling>}
|
|
217
223
|
*/
|
|
218
|
-
|
|
224
|
+
export function init(config) {
|
|
219
225
|
const ret = wasm.init(config);
|
|
220
226
|
return ret;
|
|
221
|
-
}
|
|
227
|
+
}
|
|
222
228
|
|
|
223
229
|
function takeFromExternrefTable0(idx) {
|
|
224
230
|
const value = wasm.__wbindgen_export_4.get(idx);
|
|
@@ -242,12 +248,12 @@ function _assertClass(instance, klass) {
|
|
|
242
248
|
throw new Error(`expected instance of ${klass.name}`);
|
|
243
249
|
}
|
|
244
250
|
}
|
|
245
|
-
function
|
|
246
|
-
wasm.
|
|
251
|
+
function __wbg_adapter_10(arg0, arg1) {
|
|
252
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h6d488e27518f0ac7(arg0, arg1);
|
|
247
253
|
}
|
|
248
254
|
|
|
249
|
-
function
|
|
250
|
-
wasm.
|
|
255
|
+
function __wbg_adapter_15(arg0, arg1, arg2) {
|
|
256
|
+
wasm.closure548_externref_shim(arg0, arg1, arg2);
|
|
251
257
|
}
|
|
252
258
|
|
|
253
259
|
function __wbg_adapter_212(arg0, arg1, arg2, arg3) {
|
|
@@ -267,7 +273,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
267
273
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
268
274
|
* Represents the result of an authorization request.
|
|
269
275
|
*/
|
|
270
|
-
class AuthorizeResult {
|
|
276
|
+
export class AuthorizeResult {
|
|
271
277
|
|
|
272
278
|
static __wrap(ptr) {
|
|
273
279
|
ptr = ptr >>> 0;
|
|
@@ -405,8 +411,6 @@ class AuthorizeResult {
|
|
|
405
411
|
}
|
|
406
412
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
407
413
|
|
|
408
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
409
|
-
|
|
410
414
|
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
411
415
|
? { register: () => {}, unregister: () => {} }
|
|
412
416
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
@@ -414,7 +418,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
|
|
|
414
418
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
415
419
|
* Represents the result of an authorization request.
|
|
416
420
|
*/
|
|
417
|
-
class AuthorizeResultResponse {
|
|
421
|
+
export class AuthorizeResultResponse {
|
|
418
422
|
|
|
419
423
|
static __wrap(ptr) {
|
|
420
424
|
ptr = ptr >>> 0;
|
|
@@ -454,15 +458,13 @@ class AuthorizeResultResponse {
|
|
|
454
458
|
}
|
|
455
459
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
456
460
|
|
|
457
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
458
|
-
|
|
459
461
|
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
460
462
|
? { register: () => {}, unregister: () => {} }
|
|
461
463
|
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
462
464
|
/**
|
|
463
465
|
* The instance of the Cedarling application.
|
|
464
466
|
*/
|
|
465
|
-
class Cedarling {
|
|
467
|
+
export class Cedarling {
|
|
466
468
|
|
|
467
469
|
static __wrap(ptr) {
|
|
468
470
|
ptr = ptr >>> 0;
|
|
@@ -625,8 +627,6 @@ class Cedarling {
|
|
|
625
627
|
}
|
|
626
628
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
627
629
|
|
|
628
|
-
exports.Cedarling = Cedarling;
|
|
629
|
-
|
|
630
630
|
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
631
631
|
? { register: () => {}, unregister: () => {} }
|
|
632
632
|
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
@@ -636,7 +636,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
636
636
|
*
|
|
637
637
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
638
638
|
*/
|
|
639
|
-
class Diagnostics {
|
|
639
|
+
export class Diagnostics {
|
|
640
640
|
|
|
641
641
|
static __wrap(ptr) {
|
|
642
642
|
ptr = ptr >>> 0;
|
|
@@ -684,13 +684,11 @@ class Diagnostics {
|
|
|
684
684
|
}
|
|
685
685
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
686
686
|
|
|
687
|
-
exports.Diagnostics = Diagnostics;
|
|
688
|
-
|
|
689
687
|
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
690
688
|
? { register: () => {}, unregister: () => {} }
|
|
691
689
|
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
692
690
|
|
|
693
|
-
class JsJsonLogic {
|
|
691
|
+
export class JsJsonLogic {
|
|
694
692
|
|
|
695
693
|
__destroy_into_raw() {
|
|
696
694
|
const ptr = this.__wbg_ptr;
|
|
@@ -724,8 +722,6 @@ class JsJsonLogic {
|
|
|
724
722
|
}
|
|
725
723
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
726
724
|
|
|
727
|
-
exports.JsJsonLogic = JsJsonLogic;
|
|
728
|
-
|
|
729
725
|
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
730
726
|
? { register: () => {}, unregister: () => {} }
|
|
731
727
|
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
@@ -735,7 +731,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
|
|
|
735
731
|
*
|
|
736
732
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
737
733
|
*/
|
|
738
|
-
class PolicyEvaluationError {
|
|
734
|
+
export class PolicyEvaluationError {
|
|
739
735
|
|
|
740
736
|
static __wrap(ptr) {
|
|
741
737
|
ptr = ptr >>> 0;
|
|
@@ -791,670 +787,653 @@ class PolicyEvaluationError {
|
|
|
791
787
|
}
|
|
792
788
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
793
789
|
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
797
|
-
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
798
|
-
return ret;
|
|
799
|
-
};
|
|
800
|
-
|
|
801
|
-
exports.__wbg_Number_998bea33bd87c3e0 = function(arg0) {
|
|
802
|
-
const ret = Number(arg0);
|
|
803
|
-
return ret;
|
|
804
|
-
};
|
|
805
|
-
|
|
806
|
-
exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
807
|
-
const ret = String(arg1);
|
|
808
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
809
|
-
const len1 = WASM_VECTOR_LEN;
|
|
810
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
811
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
812
|
-
};
|
|
813
|
-
|
|
814
|
-
exports.__wbg_abort_67e1b49bf6614565 = function(arg0) {
|
|
815
|
-
arg0.abort();
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
exports.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
|
|
819
|
-
arg0.abort(arg1);
|
|
820
|
-
};
|
|
821
|
-
|
|
822
|
-
exports.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
823
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
824
|
-
}, arguments) };
|
|
825
|
-
|
|
826
|
-
exports.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
|
|
827
|
-
const ret = arg0.arrayBuffer();
|
|
828
|
-
return ret;
|
|
829
|
-
}, arguments) };
|
|
790
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
830
791
|
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
837
|
-
const ret = arg0.call(arg1);
|
|
838
|
-
return ret;
|
|
839
|
-
}, arguments) };
|
|
840
|
-
|
|
841
|
-
exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
842
|
-
const ret = arg0.call(arg1, arg2);
|
|
843
|
-
return ret;
|
|
844
|
-
}, arguments) };
|
|
845
|
-
|
|
846
|
-
exports.__wbg_cedarling_new = function(arg0) {
|
|
847
|
-
const ret = Cedarling.__wrap(arg0);
|
|
848
|
-
return ret;
|
|
849
|
-
};
|
|
850
|
-
|
|
851
|
-
exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
852
|
-
const ret = clearTimeout(arg0);
|
|
853
|
-
return ret;
|
|
854
|
-
};
|
|
855
|
-
|
|
856
|
-
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
857
|
-
const ret = arg0.crypto;
|
|
858
|
-
return ret;
|
|
859
|
-
};
|
|
792
|
+
async function __wbg_load(module, imports) {
|
|
793
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
794
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
795
|
+
try {
|
|
796
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
860
797
|
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
};
|
|
798
|
+
} catch (e) {
|
|
799
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
864
800
|
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
return ret;
|
|
868
|
-
};
|
|
801
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
802
|
+
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);
|
|
869
803
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
}
|
|
874
|
-
|
|
875
|
-
exports.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
|
|
876
|
-
const ret = arg0.entries();
|
|
877
|
-
return ret;
|
|
878
|
-
};
|
|
804
|
+
} else {
|
|
805
|
+
throw e;
|
|
806
|
+
}
|
|
807
|
+
}
|
|
808
|
+
}
|
|
879
809
|
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
};
|
|
810
|
+
const bytes = await module.arrayBuffer();
|
|
811
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
883
812
|
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
return ret;
|
|
887
|
-
};
|
|
813
|
+
} else {
|
|
814
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
888
815
|
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
return ret;
|
|
892
|
-
};
|
|
816
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
817
|
+
return { instance, module };
|
|
893
818
|
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
900
|
-
arg0.getRandomValues(arg1);
|
|
901
|
-
}, arguments) };
|
|
819
|
+
} else {
|
|
820
|
+
return instance;
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
}
|
|
902
824
|
|
|
903
|
-
|
|
904
|
-
const
|
|
905
|
-
|
|
906
|
-
|
|
825
|
+
function __wbg_get_imports() {
|
|
826
|
+
const imports = {};
|
|
827
|
+
imports.wbg = {};
|
|
828
|
+
imports.wbg.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
|
|
829
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
830
|
+
return ret;
|
|
831
|
+
};
|
|
832
|
+
imports.wbg.__wbg_Number_998bea33bd87c3e0 = function(arg0) {
|
|
833
|
+
const ret = Number(arg0);
|
|
834
|
+
return ret;
|
|
835
|
+
};
|
|
836
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
837
|
+
const ret = String(arg1);
|
|
838
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
839
|
+
const len1 = WASM_VECTOR_LEN;
|
|
840
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
841
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
842
|
+
};
|
|
843
|
+
imports.wbg.__wbg_abort_67e1b49bf6614565 = function(arg0) {
|
|
844
|
+
arg0.abort();
|
|
845
|
+
};
|
|
846
|
+
imports.wbg.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
|
|
847
|
+
arg0.abort(arg1);
|
|
848
|
+
};
|
|
849
|
+
imports.wbg.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
850
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
851
|
+
}, arguments) };
|
|
852
|
+
imports.wbg.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
|
|
853
|
+
const ret = arg0.arrayBuffer();
|
|
854
|
+
return ret;
|
|
855
|
+
}, arguments) };
|
|
856
|
+
imports.wbg.__wbg_authorizeresult_new = function(arg0) {
|
|
857
|
+
const ret = AuthorizeResult.__wrap(arg0);
|
|
858
|
+
return ret;
|
|
859
|
+
};
|
|
860
|
+
imports.wbg.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
|
|
861
|
+
const ret = arg0.call(arg1);
|
|
862
|
+
return ret;
|
|
863
|
+
}, arguments) };
|
|
864
|
+
imports.wbg.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
865
|
+
const ret = arg0.call(arg1, arg2);
|
|
866
|
+
return ret;
|
|
867
|
+
}, arguments) };
|
|
868
|
+
imports.wbg.__wbg_cedarling_new = function(arg0) {
|
|
869
|
+
const ret = Cedarling.__wrap(arg0);
|
|
870
|
+
return ret;
|
|
871
|
+
};
|
|
872
|
+
imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
|
|
873
|
+
const ret = clearTimeout(arg0);
|
|
874
|
+
return ret;
|
|
875
|
+
};
|
|
876
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
877
|
+
const ret = arg0.crypto;
|
|
878
|
+
return ret;
|
|
879
|
+
};
|
|
880
|
+
imports.wbg.__wbg_debug_3bc8bd5a0fc361c6 = function(arg0) {
|
|
881
|
+
console.debug(...arg0);
|
|
882
|
+
};
|
|
883
|
+
imports.wbg.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
|
|
884
|
+
const ret = arg0.done;
|
|
885
|
+
return ret;
|
|
886
|
+
};
|
|
887
|
+
imports.wbg.__wbg_entries_2be2f15bd5554996 = function(arg0) {
|
|
888
|
+
const ret = Object.entries(arg0);
|
|
889
|
+
return ret;
|
|
890
|
+
};
|
|
891
|
+
imports.wbg.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
|
|
892
|
+
const ret = arg0.entries();
|
|
893
|
+
return ret;
|
|
894
|
+
};
|
|
895
|
+
imports.wbg.__wbg_error_3e65ef00ce5a8b19 = function(arg0) {
|
|
896
|
+
console.error(...arg0);
|
|
897
|
+
};
|
|
898
|
+
imports.wbg.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
|
|
899
|
+
const ret = arg0.fetch(arg1);
|
|
900
|
+
return ret;
|
|
901
|
+
};
|
|
902
|
+
imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
|
|
903
|
+
const ret = fetch(arg0);
|
|
904
|
+
return ret;
|
|
905
|
+
};
|
|
906
|
+
imports.wbg.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
|
|
907
|
+
const ret = Object.fromEntries(arg0);
|
|
908
|
+
return ret;
|
|
909
|
+
}, arguments) };
|
|
910
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
911
|
+
arg0.getRandomValues(arg1);
|
|
912
|
+
}, arguments) };
|
|
913
|
+
imports.wbg.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
|
|
914
|
+
const ret = arg0.getTime();
|
|
915
|
+
return ret;
|
|
916
|
+
};
|
|
917
|
+
imports.wbg.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
|
|
918
|
+
const ret = arg0.getTimezoneOffset();
|
|
919
|
+
return ret;
|
|
920
|
+
};
|
|
921
|
+
imports.wbg.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
|
|
922
|
+
const ret = arg0[arg1 >>> 0];
|
|
923
|
+
return ret;
|
|
924
|
+
};
|
|
925
|
+
imports.wbg.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
|
|
926
|
+
const ret = Reflect.get(arg0, arg1);
|
|
927
|
+
return ret;
|
|
928
|
+
}, arguments) };
|
|
929
|
+
imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
|
|
930
|
+
const ret = arg0[arg1];
|
|
931
|
+
return ret;
|
|
932
|
+
};
|
|
933
|
+
imports.wbg.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
|
|
934
|
+
const ret = Reflect.has(arg0, arg1);
|
|
935
|
+
return ret;
|
|
936
|
+
}, arguments) };
|
|
937
|
+
imports.wbg.__wbg_headers_29fec3c72865cd75 = function(arg0) {
|
|
938
|
+
const ret = arg0.headers;
|
|
939
|
+
return ret;
|
|
940
|
+
};
|
|
941
|
+
imports.wbg.__wbg_info_8fdedfc14c52e0d2 = function(arg0) {
|
|
942
|
+
console.info(...arg0);
|
|
943
|
+
};
|
|
944
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
|
|
945
|
+
let result;
|
|
946
|
+
try {
|
|
947
|
+
result = arg0 instanceof ArrayBuffer;
|
|
948
|
+
} catch (_) {
|
|
949
|
+
result = false;
|
|
950
|
+
}
|
|
951
|
+
const ret = result;
|
|
952
|
+
return ret;
|
|
953
|
+
};
|
|
954
|
+
imports.wbg.__wbg_instanceof_Array_0b7383f4189e69c2 = function(arg0) {
|
|
955
|
+
let result;
|
|
956
|
+
try {
|
|
957
|
+
result = arg0 instanceof Array;
|
|
958
|
+
} catch (_) {
|
|
959
|
+
result = false;
|
|
960
|
+
}
|
|
961
|
+
const ret = result;
|
|
962
|
+
return ret;
|
|
963
|
+
};
|
|
964
|
+
imports.wbg.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
|
|
965
|
+
let result;
|
|
966
|
+
try {
|
|
967
|
+
result = arg0 instanceof Map;
|
|
968
|
+
} catch (_) {
|
|
969
|
+
result = false;
|
|
970
|
+
}
|
|
971
|
+
const ret = result;
|
|
972
|
+
return ret;
|
|
973
|
+
};
|
|
974
|
+
imports.wbg.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
|
|
975
|
+
let result;
|
|
976
|
+
try {
|
|
977
|
+
result = arg0 instanceof Response;
|
|
978
|
+
} catch (_) {
|
|
979
|
+
result = false;
|
|
980
|
+
}
|
|
981
|
+
const ret = result;
|
|
982
|
+
return ret;
|
|
983
|
+
};
|
|
984
|
+
imports.wbg.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
|
|
985
|
+
let result;
|
|
986
|
+
try {
|
|
987
|
+
result = arg0 instanceof Uint8Array;
|
|
988
|
+
} catch (_) {
|
|
989
|
+
result = false;
|
|
990
|
+
}
|
|
991
|
+
const ret = result;
|
|
992
|
+
return ret;
|
|
993
|
+
};
|
|
994
|
+
imports.wbg.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
995
|
+
const ret = Array.isArray(arg0);
|
|
996
|
+
return ret;
|
|
997
|
+
};
|
|
998
|
+
imports.wbg.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
|
|
999
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1000
|
+
return ret;
|
|
1001
|
+
};
|
|
1002
|
+
imports.wbg.__wbg_iterator_f370b34483c71a1c = function() {
|
|
1003
|
+
const ret = Symbol.iterator;
|
|
1004
|
+
return ret;
|
|
1005
|
+
};
|
|
1006
|
+
imports.wbg.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
|
|
1007
|
+
const ret = Object.keys(arg0);
|
|
1008
|
+
return ret;
|
|
1009
|
+
};
|
|
1010
|
+
imports.wbg.__wbg_length_186546c51cd61acd = function(arg0) {
|
|
1011
|
+
const ret = arg0.length;
|
|
1012
|
+
return ret;
|
|
1013
|
+
};
|
|
1014
|
+
imports.wbg.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
1015
|
+
const ret = arg0.length;
|
|
1016
|
+
return ret;
|
|
1017
|
+
};
|
|
1018
|
+
imports.wbg.__wbg_log_77195989eb27ffe5 = function(arg0) {
|
|
1019
|
+
console.log(...arg0);
|
|
1020
|
+
};
|
|
1021
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1022
|
+
const ret = arg0.msCrypto;
|
|
1023
|
+
return ret;
|
|
1024
|
+
};
|
|
1025
|
+
imports.wbg.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
1026
|
+
const ret = new Date();
|
|
1027
|
+
return ret;
|
|
1028
|
+
};
|
|
1029
|
+
imports.wbg.__wbg_new_19c25a3f2fa63a02 = function() {
|
|
1030
|
+
const ret = new Object();
|
|
1031
|
+
return ret;
|
|
1032
|
+
};
|
|
1033
|
+
imports.wbg.__wbg_new_1f3a344cf3123716 = function() {
|
|
1034
|
+
const ret = new Array();
|
|
1035
|
+
return ret;
|
|
1036
|
+
};
|
|
1037
|
+
imports.wbg.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
|
|
1038
|
+
try {
|
|
1039
|
+
var state0 = {a: arg0, b: arg1};
|
|
1040
|
+
var cb0 = (arg0, arg1) => {
|
|
1041
|
+
const a = state0.a;
|
|
1042
|
+
state0.a = 0;
|
|
1043
|
+
try {
|
|
1044
|
+
return __wbg_adapter_212(a, state0.b, arg0, arg1);
|
|
1045
|
+
} finally {
|
|
1046
|
+
state0.a = a;
|
|
1047
|
+
}
|
|
1048
|
+
};
|
|
1049
|
+
const ret = new Promise(cb0);
|
|
1050
|
+
return ret;
|
|
1051
|
+
} finally {
|
|
1052
|
+
state0.a = state0.b = 0;
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
imports.wbg.__wbg_new_2ff1f68f3676ea53 = function() {
|
|
1056
|
+
const ret = new Map();
|
|
1057
|
+
return ret;
|
|
1058
|
+
};
|
|
1059
|
+
imports.wbg.__wbg_new_5a2ae4557f92b50e = function(arg0) {
|
|
1060
|
+
const ret = new Date(arg0);
|
|
1061
|
+
return ret;
|
|
1062
|
+
};
|
|
1063
|
+
imports.wbg.__wbg_new_638ebfaedbf32a5e = function(arg0) {
|
|
1064
|
+
const ret = new Uint8Array(arg0);
|
|
1065
|
+
return ret;
|
|
1066
|
+
};
|
|
1067
|
+
imports.wbg.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
|
|
1068
|
+
const ret = new AbortController();
|
|
1069
|
+
return ret;
|
|
1070
|
+
}, arguments) };
|
|
1071
|
+
imports.wbg.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
|
|
1072
|
+
const ret = new Headers();
|
|
1073
|
+
return ret;
|
|
1074
|
+
}, arguments) };
|
|
1075
|
+
imports.wbg.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
|
|
1076
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1077
|
+
return ret;
|
|
1078
|
+
};
|
|
1079
|
+
imports.wbg.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
1080
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1081
|
+
return ret;
|
|
1082
|
+
};
|
|
1083
|
+
imports.wbg.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
|
|
1084
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1085
|
+
return ret;
|
|
1086
|
+
};
|
|
1087
|
+
imports.wbg.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
1088
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1089
|
+
return ret;
|
|
1090
|
+
};
|
|
1091
|
+
imports.wbg.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1092
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1093
|
+
return ret;
|
|
1094
|
+
}, arguments) };
|
|
1095
|
+
imports.wbg.__wbg_next_5b3530e612fde77d = function(arg0) {
|
|
1096
|
+
const ret = arg0.next;
|
|
1097
|
+
return ret;
|
|
1098
|
+
};
|
|
1099
|
+
imports.wbg.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
1100
|
+
const ret = arg0.next();
|
|
1101
|
+
return ret;
|
|
1102
|
+
}, arguments) };
|
|
1103
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1104
|
+
const ret = arg0.node;
|
|
1105
|
+
return ret;
|
|
1106
|
+
};
|
|
1107
|
+
imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1108
|
+
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1109
|
+
return ret;
|
|
1110
|
+
};
|
|
1111
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1112
|
+
const ret = arg0.process;
|
|
1113
|
+
return ret;
|
|
1114
|
+
};
|
|
1115
|
+
imports.wbg.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
1116
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1117
|
+
};
|
|
1118
|
+
imports.wbg.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
1119
|
+
const ret = arg0.push(arg1);
|
|
1120
|
+
return ret;
|
|
1121
|
+
};
|
|
1122
|
+
imports.wbg.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
1123
|
+
queueMicrotask(arg0);
|
|
1124
|
+
};
|
|
1125
|
+
imports.wbg.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
1126
|
+
const ret = arg0.queueMicrotask;
|
|
1127
|
+
return ret;
|
|
1128
|
+
};
|
|
1129
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1130
|
+
arg0.randomFillSync(arg1);
|
|
1131
|
+
}, arguments) };
|
|
1132
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1133
|
+
const ret = module.require;
|
|
1134
|
+
return ret;
|
|
1135
|
+
}, arguments) };
|
|
1136
|
+
imports.wbg.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
1137
|
+
const ret = Promise.resolve(arg0);
|
|
1138
|
+
return ret;
|
|
1139
|
+
};
|
|
1140
|
+
imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1141
|
+
const ret = setTimeout(arg0, arg1);
|
|
1142
|
+
return ret;
|
|
1143
|
+
};
|
|
1144
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1145
|
+
arg0[arg1] = arg2;
|
|
1146
|
+
};
|
|
1147
|
+
imports.wbg.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1148
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1149
|
+
return ret;
|
|
1150
|
+
}, arguments) };
|
|
1151
|
+
imports.wbg.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
|
|
1152
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1153
|
+
};
|
|
1154
|
+
imports.wbg.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
|
|
1155
|
+
const ret = arg0.set(arg1, arg2);
|
|
1156
|
+
return ret;
|
|
1157
|
+
};
|
|
1158
|
+
imports.wbg.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
|
|
1159
|
+
arg0.body = arg1;
|
|
1160
|
+
};
|
|
1161
|
+
imports.wbg.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
|
|
1162
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1163
|
+
};
|
|
1164
|
+
imports.wbg.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
|
|
1165
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1166
|
+
};
|
|
1167
|
+
imports.wbg.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
|
|
1168
|
+
arg0.headers = arg1;
|
|
1169
|
+
};
|
|
1170
|
+
imports.wbg.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
|
|
1171
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1172
|
+
};
|
|
1173
|
+
imports.wbg.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
|
|
1174
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1175
|
+
};
|
|
1176
|
+
imports.wbg.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
|
|
1177
|
+
arg0.signal = arg1;
|
|
1178
|
+
};
|
|
1179
|
+
imports.wbg.__wbg_signal_da4d466ce86118b5 = function(arg0) {
|
|
1180
|
+
const ret = arg0.signal;
|
|
1181
|
+
return ret;
|
|
1182
|
+
};
|
|
1183
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
1184
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1185
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1186
|
+
};
|
|
1187
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
1188
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1189
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1190
|
+
};
|
|
1191
|
+
imports.wbg.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
1192
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1193
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1194
|
+
};
|
|
1195
|
+
imports.wbg.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
1196
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1197
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1198
|
+
};
|
|
1199
|
+
imports.wbg.__wbg_status_3fea3036088621d6 = function(arg0) {
|
|
1200
|
+
const ret = arg0.status;
|
|
1201
|
+
return ret;
|
|
1202
|
+
};
|
|
1203
|
+
imports.wbg.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
|
|
1204
|
+
const ret = JSON.stringify(arg0);
|
|
1205
|
+
return ret;
|
|
1206
|
+
}, arguments) };
|
|
1207
|
+
imports.wbg.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
1208
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1209
|
+
return ret;
|
|
1210
|
+
};
|
|
1211
|
+
imports.wbg.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
|
|
1212
|
+
const ret = arg0.text();
|
|
1213
|
+
return ret;
|
|
1214
|
+
}, arguments) };
|
|
1215
|
+
imports.wbg.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
1216
|
+
const ret = arg0.then(arg1, arg2);
|
|
1217
|
+
return ret;
|
|
1218
|
+
};
|
|
1219
|
+
imports.wbg.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
1220
|
+
const ret = arg0.then(arg1);
|
|
1221
|
+
return ret;
|
|
1222
|
+
};
|
|
1223
|
+
imports.wbg.__wbg_trace_fe562a020dec3e6f = function(arg0) {
|
|
1224
|
+
console.trace(...arg0);
|
|
1225
|
+
};
|
|
1226
|
+
imports.wbg.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
|
|
1227
|
+
const ret = arg1.url;
|
|
1228
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1229
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1230
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1231
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1232
|
+
};
|
|
1233
|
+
imports.wbg.__wbg_value_dd9372230531eade = function(arg0) {
|
|
1234
|
+
const ret = arg0.value;
|
|
1235
|
+
return ret;
|
|
1236
|
+
};
|
|
1237
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1238
|
+
const ret = arg0.versions;
|
|
1239
|
+
return ret;
|
|
1240
|
+
};
|
|
1241
|
+
imports.wbg.__wbg_warn_3e0e93af109bb736 = function(arg0) {
|
|
1242
|
+
console.warn(...arg0);
|
|
1243
|
+
};
|
|
1244
|
+
imports.wbg.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
1245
|
+
const v = arg1;
|
|
1246
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1247
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1248
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1249
|
+
};
|
|
1250
|
+
imports.wbg.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
|
|
1251
|
+
const v = arg0;
|
|
1252
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1253
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1254
|
+
};
|
|
1255
|
+
imports.wbg.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
1256
|
+
const obj = arg0.original;
|
|
1257
|
+
if (obj.cnt-- == 1) {
|
|
1258
|
+
obj.a = 0;
|
|
1259
|
+
return true;
|
|
1260
|
+
}
|
|
1261
|
+
const ret = false;
|
|
1262
|
+
return ret;
|
|
1263
|
+
};
|
|
1264
|
+
imports.wbg.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
1265
|
+
const ret = debugString(arg1);
|
|
1266
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1267
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1268
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1269
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1270
|
+
};
|
|
1271
|
+
imports.wbg.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
|
|
1272
|
+
const ret = arg0 in arg1;
|
|
1273
|
+
return ret;
|
|
1274
|
+
};
|
|
1275
|
+
imports.wbg.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
|
|
1276
|
+
const ret = typeof(arg0) === 'bigint';
|
|
1277
|
+
return ret;
|
|
1278
|
+
};
|
|
1279
|
+
imports.wbg.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
1280
|
+
const ret = typeof(arg0) === 'function';
|
|
1281
|
+
return ret;
|
|
1282
|
+
};
|
|
1283
|
+
imports.wbg.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
1284
|
+
const val = arg0;
|
|
1285
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
1286
|
+
return ret;
|
|
1287
|
+
};
|
|
1288
|
+
imports.wbg.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
1289
|
+
const ret = typeof(arg0) === 'string';
|
|
1290
|
+
return ret;
|
|
1291
|
+
};
|
|
1292
|
+
imports.wbg.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
1293
|
+
const ret = arg0 === undefined;
|
|
1294
|
+
return ret;
|
|
1295
|
+
};
|
|
1296
|
+
imports.wbg.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
|
|
1297
|
+
const ret = arg0 === arg1;
|
|
1298
|
+
return ret;
|
|
1299
|
+
};
|
|
1300
|
+
imports.wbg.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
|
|
1301
|
+
const ret = arg0 == arg1;
|
|
1302
|
+
return ret;
|
|
1303
|
+
};
|
|
1304
|
+
imports.wbg.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
1305
|
+
const obj = arg1;
|
|
1306
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1307
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1308
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1309
|
+
};
|
|
1310
|
+
imports.wbg.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
1311
|
+
const obj = arg1;
|
|
1312
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1313
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1314
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1315
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1316
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1317
|
+
};
|
|
1318
|
+
imports.wbg.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
1319
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1320
|
+
};
|
|
1321
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1322
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1323
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1324
|
+
return ret;
|
|
1325
|
+
};
|
|
1326
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1327
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1328
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1329
|
+
return ret;
|
|
1330
|
+
};
|
|
1331
|
+
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1332
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1333
|
+
const ret = arg0;
|
|
1334
|
+
return ret;
|
|
1335
|
+
};
|
|
1336
|
+
imports.wbg.__wbindgen_cast_b047884414de0a5d = function(arg0, arg1) {
|
|
1337
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 503, function: Function { arguments: [], shim_idx: 504, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1338
|
+
const ret = makeMutClosure(arg0, arg1, 503, __wbg_adapter_10);
|
|
1339
|
+
return ret;
|
|
1340
|
+
};
|
|
1341
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1342
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1343
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1344
|
+
return ret;
|
|
1345
|
+
};
|
|
1346
|
+
imports.wbg.__wbindgen_cast_cf04d869ccc8e004 = function(arg0, arg1) {
|
|
1347
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 547, function: Function { arguments: [Externref], shim_idx: 548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1348
|
+
const ret = makeMutClosure(arg0, arg1, 547, __wbg_adapter_15);
|
|
1349
|
+
return ret;
|
|
1350
|
+
};
|
|
1351
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1352
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1353
|
+
const ret = arg0;
|
|
1354
|
+
return ret;
|
|
1355
|
+
};
|
|
1356
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1357
|
+
const table = wasm.__wbindgen_export_4;
|
|
1358
|
+
const offset = table.grow(4);
|
|
1359
|
+
table.set(0, undefined);
|
|
1360
|
+
table.set(offset + 0, undefined);
|
|
1361
|
+
table.set(offset + 1, null);
|
|
1362
|
+
table.set(offset + 2, true);
|
|
1363
|
+
table.set(offset + 3, false);
|
|
1364
|
+
;
|
|
1365
|
+
};
|
|
907
1366
|
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
return ret;
|
|
911
|
-
};
|
|
1367
|
+
return imports;
|
|
1368
|
+
}
|
|
912
1369
|
|
|
913
|
-
|
|
914
|
-
const ret = arg0[arg1 >>> 0];
|
|
915
|
-
return ret;
|
|
916
|
-
};
|
|
1370
|
+
function __wbg_init_memory(imports, memory) {
|
|
917
1371
|
|
|
918
|
-
|
|
919
|
-
const ret = Reflect.get(arg0, arg1);
|
|
920
|
-
return ret;
|
|
921
|
-
}, arguments) };
|
|
1372
|
+
}
|
|
922
1373
|
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
1374
|
+
function __wbg_finalize_init(instance, module) {
|
|
1375
|
+
wasm = instance.exports;
|
|
1376
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1377
|
+
cachedDataViewMemory0 = null;
|
|
1378
|
+
cachedUint8ArrayMemory0 = null;
|
|
927
1379
|
|
|
928
|
-
exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
|
|
929
|
-
const ret = Reflect.has(arg0, arg1);
|
|
930
|
-
return ret;
|
|
931
|
-
}, arguments) };
|
|
932
1380
|
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
};
|
|
1381
|
+
wasm.__wbindgen_start();
|
|
1382
|
+
return wasm;
|
|
1383
|
+
}
|
|
937
1384
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
};
|
|
1385
|
+
function initSync(module) {
|
|
1386
|
+
if (wasm !== undefined) return wasm;
|
|
941
1387
|
|
|
942
|
-
exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
|
|
943
|
-
let result;
|
|
944
|
-
try {
|
|
945
|
-
result = arg0 instanceof ArrayBuffer;
|
|
946
|
-
} catch (_) {
|
|
947
|
-
result = false;
|
|
948
|
-
}
|
|
949
|
-
const ret = result;
|
|
950
|
-
return ret;
|
|
951
|
-
};
|
|
952
1388
|
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
1389
|
+
if (typeof module !== 'undefined') {
|
|
1390
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1391
|
+
({module} = module)
|
|
1392
|
+
} else {
|
|
1393
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1394
|
+
}
|
|
959
1395
|
}
|
|
960
|
-
const ret = result;
|
|
961
|
-
return ret;
|
|
962
|
-
};
|
|
963
1396
|
|
|
964
|
-
|
|
965
|
-
let result;
|
|
966
|
-
try {
|
|
967
|
-
result = arg0 instanceof Map;
|
|
968
|
-
} catch (_) {
|
|
969
|
-
result = false;
|
|
970
|
-
}
|
|
971
|
-
const ret = result;
|
|
972
|
-
return ret;
|
|
973
|
-
};
|
|
1397
|
+
const imports = __wbg_get_imports();
|
|
974
1398
|
|
|
975
|
-
|
|
976
|
-
let result;
|
|
977
|
-
try {
|
|
978
|
-
result = arg0 instanceof Response;
|
|
979
|
-
} catch (_) {
|
|
980
|
-
result = false;
|
|
981
|
-
}
|
|
982
|
-
const ret = result;
|
|
983
|
-
return ret;
|
|
984
|
-
};
|
|
1399
|
+
__wbg_init_memory(imports);
|
|
985
1400
|
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
try {
|
|
989
|
-
result = arg0 instanceof Uint8Array;
|
|
990
|
-
} catch (_) {
|
|
991
|
-
result = false;
|
|
1401
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1402
|
+
module = new WebAssembly.Module(module);
|
|
992
1403
|
}
|
|
993
|
-
const ret = result;
|
|
994
|
-
return ret;
|
|
995
|
-
};
|
|
996
|
-
|
|
997
|
-
exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
|
|
998
|
-
const ret = Array.isArray(arg0);
|
|
999
|
-
return ret;
|
|
1000
|
-
};
|
|
1001
|
-
|
|
1002
|
-
exports.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
|
|
1003
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1004
|
-
return ret;
|
|
1005
|
-
};
|
|
1006
|
-
|
|
1007
|
-
exports.__wbg_iterator_f370b34483c71a1c = function() {
|
|
1008
|
-
const ret = Symbol.iterator;
|
|
1009
|
-
return ret;
|
|
1010
|
-
};
|
|
1011
|
-
|
|
1012
|
-
exports.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
|
|
1013
|
-
const ret = Object.keys(arg0);
|
|
1014
|
-
return ret;
|
|
1015
|
-
};
|
|
1016
|
-
|
|
1017
|
-
exports.__wbg_length_186546c51cd61acd = function(arg0) {
|
|
1018
|
-
const ret = arg0.length;
|
|
1019
|
-
return ret;
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
|
|
1023
|
-
const ret = arg0.length;
|
|
1024
|
-
return ret;
|
|
1025
|
-
};
|
|
1026
1404
|
|
|
1027
|
-
|
|
1028
|
-
console.log(...arg0);
|
|
1029
|
-
};
|
|
1405
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1030
1406
|
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
return ret;
|
|
1034
|
-
};
|
|
1035
|
-
|
|
1036
|
-
exports.__wbg_new0_b0a0a38c201e6df5 = function() {
|
|
1037
|
-
const ret = new Date();
|
|
1038
|
-
return ret;
|
|
1039
|
-
};
|
|
1407
|
+
return __wbg_finalize_init(instance, module);
|
|
1408
|
+
}
|
|
1040
1409
|
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
return ret;
|
|
1044
|
-
};
|
|
1410
|
+
async function __wbg_init(module_or_path) {
|
|
1411
|
+
if (wasm !== undefined) return wasm;
|
|
1045
1412
|
|
|
1046
|
-
exports.__wbg_new_1f3a344cf3123716 = function() {
|
|
1047
|
-
const ret = new Array();
|
|
1048
|
-
return ret;
|
|
1049
|
-
};
|
|
1050
1413
|
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
try {
|
|
1058
|
-
return __wbg_adapter_212(a, state0.b, arg0, arg1);
|
|
1059
|
-
} finally {
|
|
1060
|
-
state0.a = a;
|
|
1061
|
-
}
|
|
1062
|
-
};
|
|
1063
|
-
const ret = new Promise(cb0);
|
|
1064
|
-
return ret;
|
|
1065
|
-
} finally {
|
|
1066
|
-
state0.a = state0.b = 0;
|
|
1414
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1415
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1416
|
+
({module_or_path} = module_or_path)
|
|
1417
|
+
} else {
|
|
1418
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1419
|
+
}
|
|
1067
1420
|
}
|
|
1068
|
-
};
|
|
1069
|
-
|
|
1070
|
-
exports.__wbg_new_2ff1f68f3676ea53 = function() {
|
|
1071
|
-
const ret = new Map();
|
|
1072
|
-
return ret;
|
|
1073
|
-
};
|
|
1074
|
-
|
|
1075
|
-
exports.__wbg_new_5a2ae4557f92b50e = function(arg0) {
|
|
1076
|
-
const ret = new Date(arg0);
|
|
1077
|
-
return ret;
|
|
1078
|
-
};
|
|
1079
|
-
|
|
1080
|
-
exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
|
|
1081
|
-
const ret = new Uint8Array(arg0);
|
|
1082
|
-
return ret;
|
|
1083
|
-
};
|
|
1084
|
-
|
|
1085
|
-
exports.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
|
|
1086
|
-
const ret = new AbortController();
|
|
1087
|
-
return ret;
|
|
1088
|
-
}, arguments) };
|
|
1089
|
-
|
|
1090
|
-
exports.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
|
|
1091
|
-
const ret = new Headers();
|
|
1092
|
-
return ret;
|
|
1093
|
-
}, arguments) };
|
|
1094
|
-
|
|
1095
|
-
exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
|
|
1096
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1097
|
-
return ret;
|
|
1098
|
-
};
|
|
1099
|
-
|
|
1100
|
-
exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
|
|
1101
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1102
|
-
return ret;
|
|
1103
|
-
};
|
|
1104
|
-
|
|
1105
|
-
exports.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
|
|
1106
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1107
|
-
return ret;
|
|
1108
|
-
};
|
|
1109
|
-
|
|
1110
|
-
exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
|
|
1111
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1112
|
-
return ret;
|
|
1113
|
-
};
|
|
1114
|
-
|
|
1115
|
-
exports.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1116
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1117
|
-
return ret;
|
|
1118
|
-
}, arguments) };
|
|
1119
|
-
|
|
1120
|
-
exports.__wbg_next_5b3530e612fde77d = function(arg0) {
|
|
1121
|
-
const ret = arg0.next;
|
|
1122
|
-
return ret;
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
|
|
1126
|
-
const ret = arg0.next();
|
|
1127
|
-
return ret;
|
|
1128
|
-
}, arguments) };
|
|
1129
|
-
|
|
1130
|
-
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1131
|
-
const ret = arg0.node;
|
|
1132
|
-
return ret;
|
|
1133
|
-
};
|
|
1134
|
-
|
|
1135
|
-
exports.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1136
|
-
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1137
|
-
return ret;
|
|
1138
|
-
};
|
|
1139
|
-
|
|
1140
|
-
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1141
|
-
const ret = arg0.process;
|
|
1142
|
-
return ret;
|
|
1143
|
-
};
|
|
1144
|
-
|
|
1145
|
-
exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
|
|
1146
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1147
|
-
};
|
|
1148
|
-
|
|
1149
|
-
exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
|
|
1150
|
-
const ret = arg0.push(arg1);
|
|
1151
|
-
return ret;
|
|
1152
|
-
};
|
|
1153
|
-
|
|
1154
|
-
exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
|
|
1155
|
-
queueMicrotask(arg0);
|
|
1156
|
-
};
|
|
1157
|
-
|
|
1158
|
-
exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
|
|
1159
|
-
const ret = arg0.queueMicrotask;
|
|
1160
|
-
return ret;
|
|
1161
|
-
};
|
|
1162
|
-
|
|
1163
|
-
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1164
|
-
arg0.randomFillSync(arg1);
|
|
1165
|
-
}, arguments) };
|
|
1166
|
-
|
|
1167
|
-
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1168
|
-
const ret = module.require;
|
|
1169
|
-
return ret;
|
|
1170
|
-
}, arguments) };
|
|
1171
|
-
|
|
1172
|
-
exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
|
|
1173
|
-
const ret = Promise.resolve(arg0);
|
|
1174
|
-
return ret;
|
|
1175
|
-
};
|
|
1176
|
-
|
|
1177
|
-
exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
|
|
1178
|
-
const ret = setTimeout(arg0, arg1);
|
|
1179
|
-
return ret;
|
|
1180
|
-
};
|
|
1181
|
-
|
|
1182
|
-
exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1183
|
-
arg0[arg1] = arg2;
|
|
1184
|
-
};
|
|
1185
|
-
|
|
1186
|
-
exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1187
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1188
|
-
return ret;
|
|
1189
|
-
}, arguments) };
|
|
1190
|
-
|
|
1191
|
-
exports.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
|
|
1192
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1193
|
-
};
|
|
1194
|
-
|
|
1195
|
-
exports.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
|
|
1196
|
-
const ret = arg0.set(arg1, arg2);
|
|
1197
|
-
return ret;
|
|
1198
|
-
};
|
|
1199
1421
|
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
exports.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
|
|
1205
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1206
|
-
};
|
|
1207
|
-
|
|
1208
|
-
exports.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
|
|
1209
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1210
|
-
};
|
|
1211
|
-
|
|
1212
|
-
exports.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
|
|
1213
|
-
arg0.headers = arg1;
|
|
1214
|
-
};
|
|
1215
|
-
|
|
1216
|
-
exports.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
|
|
1217
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
exports.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
|
|
1221
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1222
|
-
};
|
|
1223
|
-
|
|
1224
|
-
exports.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
|
|
1225
|
-
arg0.signal = arg1;
|
|
1226
|
-
};
|
|
1227
|
-
|
|
1228
|
-
exports.__wbg_signal_da4d466ce86118b5 = function(arg0) {
|
|
1229
|
-
const ret = arg0.signal;
|
|
1230
|
-
return ret;
|
|
1231
|
-
};
|
|
1232
|
-
|
|
1233
|
-
exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
|
|
1234
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1235
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1236
|
-
};
|
|
1237
|
-
|
|
1238
|
-
exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
|
|
1239
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1240
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1241
|
-
};
|
|
1242
|
-
|
|
1243
|
-
exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
|
|
1244
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
1245
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1246
|
-
};
|
|
1247
|
-
|
|
1248
|
-
exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
|
|
1249
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
1250
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1251
|
-
};
|
|
1252
|
-
|
|
1253
|
-
exports.__wbg_status_3fea3036088621d6 = function(arg0) {
|
|
1254
|
-
const ret = arg0.status;
|
|
1255
|
-
return ret;
|
|
1256
|
-
};
|
|
1257
|
-
|
|
1258
|
-
exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
|
|
1259
|
-
const ret = JSON.stringify(arg0);
|
|
1260
|
-
return ret;
|
|
1261
|
-
}, arguments) };
|
|
1262
|
-
|
|
1263
|
-
exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
|
|
1264
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1265
|
-
return ret;
|
|
1266
|
-
};
|
|
1267
|
-
|
|
1268
|
-
exports.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
|
|
1269
|
-
const ret = arg0.text();
|
|
1270
|
-
return ret;
|
|
1271
|
-
}, arguments) };
|
|
1272
|
-
|
|
1273
|
-
exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
|
|
1274
|
-
const ret = arg0.then(arg1, arg2);
|
|
1275
|
-
return ret;
|
|
1276
|
-
};
|
|
1277
|
-
|
|
1278
|
-
exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
|
|
1279
|
-
const ret = arg0.then(arg1);
|
|
1280
|
-
return ret;
|
|
1281
|
-
};
|
|
1282
|
-
|
|
1283
|
-
exports.__wbg_trace_fe562a020dec3e6f = function(arg0) {
|
|
1284
|
-
console.trace(...arg0);
|
|
1285
|
-
};
|
|
1286
|
-
|
|
1287
|
-
exports.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
|
|
1288
|
-
const ret = arg1.url;
|
|
1289
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1290
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1291
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1292
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1293
|
-
};
|
|
1294
|
-
|
|
1295
|
-
exports.__wbg_value_dd9372230531eade = function(arg0) {
|
|
1296
|
-
const ret = arg0.value;
|
|
1297
|
-
return ret;
|
|
1298
|
-
};
|
|
1299
|
-
|
|
1300
|
-
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1301
|
-
const ret = arg0.versions;
|
|
1302
|
-
return ret;
|
|
1303
|
-
};
|
|
1304
|
-
|
|
1305
|
-
exports.__wbg_warn_3e0e93af109bb736 = function(arg0) {
|
|
1306
|
-
console.warn(...arg0);
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
|
|
1310
|
-
const v = arg1;
|
|
1311
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
1312
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
1313
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1314
|
-
};
|
|
1315
|
-
|
|
1316
|
-
exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
|
|
1317
|
-
const v = arg0;
|
|
1318
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
1319
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
1320
|
-
};
|
|
1321
|
-
|
|
1322
|
-
exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
|
|
1323
|
-
const obj = arg0.original;
|
|
1324
|
-
if (obj.cnt-- == 1) {
|
|
1325
|
-
obj.a = 0;
|
|
1326
|
-
return true;
|
|
1327
|
-
}
|
|
1328
|
-
const ret = false;
|
|
1329
|
-
return ret;
|
|
1330
|
-
};
|
|
1331
|
-
|
|
1332
|
-
exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
|
|
1333
|
-
const ret = debugString(arg1);
|
|
1334
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1335
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1336
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1337
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1338
|
-
};
|
|
1339
|
-
|
|
1340
|
-
exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
|
|
1341
|
-
const ret = arg0 in arg1;
|
|
1342
|
-
return ret;
|
|
1343
|
-
};
|
|
1344
|
-
|
|
1345
|
-
exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
|
|
1346
|
-
const ret = typeof(arg0) === 'bigint';
|
|
1347
|
-
return ret;
|
|
1348
|
-
};
|
|
1349
|
-
|
|
1350
|
-
exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
|
|
1351
|
-
const ret = typeof(arg0) === 'function';
|
|
1352
|
-
return ret;
|
|
1353
|
-
};
|
|
1354
|
-
|
|
1355
|
-
exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
|
|
1356
|
-
const val = arg0;
|
|
1357
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
1358
|
-
return ret;
|
|
1359
|
-
};
|
|
1360
|
-
|
|
1361
|
-
exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
|
|
1362
|
-
const ret = typeof(arg0) === 'string';
|
|
1363
|
-
return ret;
|
|
1364
|
-
};
|
|
1365
|
-
|
|
1366
|
-
exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
|
|
1367
|
-
const ret = arg0 === undefined;
|
|
1368
|
-
return ret;
|
|
1369
|
-
};
|
|
1370
|
-
|
|
1371
|
-
exports.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
|
|
1372
|
-
const ret = arg0 === arg1;
|
|
1373
|
-
return ret;
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
|
|
1377
|
-
const ret = arg0 == arg1;
|
|
1378
|
-
return ret;
|
|
1379
|
-
};
|
|
1380
|
-
|
|
1381
|
-
exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
|
|
1382
|
-
const obj = arg1;
|
|
1383
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
1384
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
1385
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
1386
|
-
};
|
|
1387
|
-
|
|
1388
|
-
exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
|
|
1389
|
-
const obj = arg1;
|
|
1390
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1391
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1392
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1393
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1394
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1395
|
-
};
|
|
1396
|
-
|
|
1397
|
-
exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
|
|
1398
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1399
|
-
};
|
|
1400
|
-
|
|
1401
|
-
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1402
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1403
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1404
|
-
return ret;
|
|
1405
|
-
};
|
|
1406
|
-
|
|
1407
|
-
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1408
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
1409
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1410
|
-
return ret;
|
|
1411
|
-
};
|
|
1412
|
-
|
|
1413
|
-
exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1414
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
1415
|
-
const ret = arg0;
|
|
1416
|
-
return ret;
|
|
1417
|
-
};
|
|
1422
|
+
if (typeof module_or_path === 'undefined') {
|
|
1423
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
1424
|
+
}
|
|
1425
|
+
const imports = __wbg_get_imports();
|
|
1418
1426
|
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
return ret;
|
|
1423
|
-
};
|
|
1427
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1428
|
+
module_or_path = fetch(module_or_path);
|
|
1429
|
+
}
|
|
1424
1430
|
|
|
1425
|
-
|
|
1426
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1427
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1428
|
-
return ret;
|
|
1429
|
-
};
|
|
1431
|
+
__wbg_init_memory(imports);
|
|
1430
1432
|
|
|
1431
|
-
|
|
1432
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 547, function: Function { arguments: [Externref], shim_idx: 548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1433
|
-
const ret = makeMutClosure(arg0, arg1, 547, __wbg_adapter_8);
|
|
1434
|
-
return ret;
|
|
1435
|
-
};
|
|
1433
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1436
1434
|
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
const ret = arg0;
|
|
1440
|
-
return ret;
|
|
1441
|
-
};
|
|
1442
|
-
|
|
1443
|
-
exports.__wbindgen_init_externref_table = function() {
|
|
1444
|
-
const table = wasm.__wbindgen_export_4;
|
|
1445
|
-
const offset = table.grow(4);
|
|
1446
|
-
table.set(0, undefined);
|
|
1447
|
-
table.set(offset + 0, undefined);
|
|
1448
|
-
table.set(offset + 1, null);
|
|
1449
|
-
table.set(offset + 2, true);
|
|
1450
|
-
table.set(offset + 3, false);
|
|
1451
|
-
;
|
|
1452
|
-
};
|
|
1453
|
-
|
|
1454
|
-
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1455
|
-
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1456
|
-
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1457
|
-
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1458
|
-
|
|
1459
|
-
wasm.__wbindgen_start();
|
|
1435
|
+
return __wbg_finalize_init(instance, module);
|
|
1436
|
+
}
|
|
1460
1437
|
|
|
1438
|
+
export { initSync };
|
|
1439
|
+
export default __wbg_init;
|