@janssenproject/cedarling_wasm 1.6.0 → 1.8.0-nodejs

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.js CHANGED
@@ -1,4 +1,8 @@
1
+
2
+ let imports = {};
3
+ imports['__wbindgen_placeholder__'] = module.exports;
1
4
  let wasm;
5
+ const { TextEncoder, TextDecoder } = require(`util`);
2
6
 
3
7
  let WASM_VECTOR_LEN = 0;
4
8
 
@@ -11,7 +15,7 @@ function getUint8ArrayMemory0() {
11
15
  return cachedUint8ArrayMemory0;
12
16
  }
13
17
 
14
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
18
+ let cachedTextEncoder = new TextEncoder('utf-8');
15
19
 
16
20
  const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
17
21
  ? function (arg, view) {
@@ -74,9 +78,9 @@ function getDataViewMemory0() {
74
78
  return cachedDataViewMemory0;
75
79
  }
76
80
 
77
- const cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
81
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
78
82
 
79
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
83
+ cachedTextDecoder.decode();
80
84
 
81
85
  function getStringFromWasm0(ptr, len) {
82
86
  ptr = ptr >>> 0;
@@ -203,10 +207,10 @@ function debugString(val) {
203
207
  * @param {any} config
204
208
  * @returns {Promise<Cedarling>}
205
209
  */
206
- export function init(config) {
210
+ module.exports.init = function(config) {
207
211
  const ret = wasm.init(config);
208
212
  return ret;
209
- }
213
+ };
210
214
 
211
215
  function takeFromExternrefTable0(idx) {
212
216
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -231,15 +235,15 @@ function _assertClass(instance, klass) {
231
235
  }
232
236
  }
233
237
  function __wbg_adapter_50(arg0, arg1) {
234
- wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__he6c5a60ebd2c1975(arg0, arg1);
238
+ wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb6b52a9d17ca9899(arg0, arg1);
235
239
  }
236
240
 
237
241
  function __wbg_adapter_53(arg0, arg1, arg2) {
238
- wasm.closure470_externref_shim(arg0, arg1, arg2);
242
+ wasm.closure508_externref_shim(arg0, arg1, arg2);
239
243
  }
240
244
 
241
- function __wbg_adapter_241(arg0, arg1, arg2, arg3) {
242
- wasm.closure1738_externref_shim(arg0, arg1, arg2, arg3);
245
+ function __wbg_adapter_244(arg0, arg1, arg2, arg3) {
246
+ wasm.closure1774_externref_shim(arg0, arg1, arg2, arg3);
243
247
  }
244
248
 
245
249
  const __wbindgen_enum_RequestCredentials = ["omit", "same-origin", "include"];
@@ -253,7 +257,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
253
257
  * A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
254
258
  * Represents the result of an authorization request.
255
259
  */
256
- export class AuthorizeResult {
260
+ class AuthorizeResult {
257
261
 
258
262
  static __wrap(ptr) {
259
263
  ptr = ptr >>> 0;
@@ -389,6 +393,7 @@ export class AuthorizeResult {
389
393
  return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
390
394
  }
391
395
  }
396
+ module.exports.AuthorizeResult = AuthorizeResult;
392
397
 
393
398
  const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
394
399
  ? { register: () => {}, unregister: () => {} }
@@ -397,7 +402,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
397
402
  * A WASM wrapper for the Rust `cedar_policy::Response` struct.
398
403
  * Represents the result of an authorization request.
399
404
  */
400
- export class AuthorizeResultResponse {
405
+ class AuthorizeResultResponse {
401
406
 
402
407
  static __wrap(ptr) {
403
408
  ptr = ptr >>> 0;
@@ -435,6 +440,7 @@ export class AuthorizeResultResponse {
435
440
  return Diagnostics.__wrap(ret);
436
441
  }
437
442
  }
443
+ module.exports.AuthorizeResultResponse = AuthorizeResultResponse;
438
444
 
439
445
  const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
440
446
  ? { register: () => {}, unregister: () => {} }
@@ -442,7 +448,7 @@ const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
442
448
  /**
443
449
  * The instance of the Cedarling application.
444
450
  */
445
- export class Cedarling {
451
+ class Cedarling {
446
452
 
447
453
  static __wrap(ptr) {
448
454
  ptr = ptr >>> 0;
@@ -594,7 +600,16 @@ export class Cedarling {
594
600
  wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
595
601
  return v3;
596
602
  }
603
+ /**
604
+ * Closes the connections to the Lock Server and pushes all available logs.
605
+ * @returns {Promise<void>}
606
+ */
607
+ shut_down() {
608
+ const ret = wasm.cedarling_shut_down(this.__wbg_ptr);
609
+ return ret;
610
+ }
597
611
  }
612
+ module.exports.Cedarling = Cedarling;
598
613
 
599
614
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
600
615
  ? { register: () => {}, unregister: () => {} }
@@ -605,7 +620,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
605
620
  *
606
621
  * Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
607
622
  */
608
- export class Diagnostics {
623
+ class Diagnostics {
609
624
 
610
625
  static __wrap(ptr) {
611
626
  ptr = ptr >>> 0;
@@ -651,12 +666,13 @@ export class Diagnostics {
651
666
  return v1;
652
667
  }
653
668
  }
669
+ module.exports.Diagnostics = Diagnostics;
654
670
 
655
671
  const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
656
672
  ? { register: () => {}, unregister: () => {} }
657
673
  : new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
658
674
 
659
- export class JsJsonLogic {
675
+ class JsJsonLogic {
660
676
 
661
677
  __destroy_into_raw() {
662
678
  const ptr = this.__wbg_ptr;
@@ -688,6 +704,7 @@ export class JsJsonLogic {
688
704
  return takeFromExternrefTable0(ret[0]);
689
705
  }
690
706
  }
707
+ module.exports.JsJsonLogic = JsJsonLogic;
691
708
 
692
709
  const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
693
710
  ? { register: () => {}, unregister: () => {} }
@@ -698,7 +715,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
698
715
  *
699
716
  * Represents an error that occurred when evaluating a Cedar policy.
700
717
  */
701
- export class PolicyEvaluationError {
718
+ class PolicyEvaluationError {
702
719
 
703
720
  static __wrap(ptr) {
704
721
  ptr = ptr >>> 0;
@@ -752,636 +769,662 @@ export class PolicyEvaluationError {
752
769
  }
753
770
  }
754
771
  }
772
+ module.exports.PolicyEvaluationError = PolicyEvaluationError;
773
+
774
+ module.exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
775
+ const ret = String(arg1);
776
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
777
+ const len1 = WASM_VECTOR_LEN;
778
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
779
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
780
+ };
781
+
782
+ module.exports.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
783
+ arg0.abort(arg1);
784
+ };
785
+
786
+ module.exports.__wbg_abort_775ef1d17fc65868 = function(arg0) {
787
+ arg0.abort();
788
+ };
789
+
790
+ module.exports.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
791
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
792
+ }, arguments) };
793
+
794
+ module.exports.__wbg_arrayBuffer_d1b44c4390db422f = function() { return handleError(function (arg0) {
795
+ const ret = arg0.arrayBuffer();
796
+ return ret;
797
+ }, arguments) };
755
798
 
756
- async function __wbg_load(module, imports) {
757
- if (typeof Response === 'function' && module instanceof Response) {
758
- if (typeof WebAssembly.instantiateStreaming === 'function') {
759
- try {
760
- return await WebAssembly.instantiateStreaming(module, imports);
799
+ module.exports.__wbg_authorizeresult_new = function(arg0) {
800
+ const ret = AuthorizeResult.__wrap(arg0);
801
+ return ret;
802
+ };
761
803
 
762
- } catch (e) {
763
- if (module.headers.get('Content-Type') != 'application/wasm') {
764
- 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);
804
+ module.exports.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
805
+ const ret = arg0.buffer;
806
+ return ret;
807
+ };
765
808
 
766
- } else {
767
- throw e;
768
- }
769
- }
770
- }
809
+ module.exports.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
810
+ const ret = arg0.call(arg1);
811
+ return ret;
812
+ }, arguments) };
771
813
 
772
- const bytes = await module.arrayBuffer();
773
- return await WebAssembly.instantiate(bytes, imports);
814
+ module.exports.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
815
+ const ret = arg0.call(arg1, arg2);
816
+ return ret;
817
+ }, arguments) };
774
818
 
775
- } else {
776
- const instance = await WebAssembly.instantiate(module, imports);
819
+ module.exports.__wbg_cedarling_new = function(arg0) {
820
+ const ret = Cedarling.__wrap(arg0);
821
+ return ret;
822
+ };
777
823
 
778
- if (instance instanceof WebAssembly.Instance) {
779
- return { instance, module };
824
+ module.exports.__wbg_clearTimeout_b1115618e821c3b2 = function(arg0) {
825
+ const ret = clearTimeout(arg0);
826
+ return ret;
827
+ };
780
828
 
781
- } else {
782
- return instance;
783
- }
784
- }
785
- }
829
+ module.exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
830
+ const ret = arg0.crypto;
831
+ return ret;
832
+ };
786
833
 
787
- function __wbg_get_imports() {
788
- const imports = {};
789
- imports.wbg = {};
790
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
791
- const ret = String(arg1);
792
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
793
- const len1 = WASM_VECTOR_LEN;
794
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
795
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
796
- };
797
- imports.wbg.__wbg_abort_410ec47a64ac6117 = function(arg0, arg1) {
798
- arg0.abort(arg1);
799
- };
800
- imports.wbg.__wbg_abort_775ef1d17fc65868 = function(arg0) {
801
- arg0.abort();
802
- };
803
- imports.wbg.__wbg_append_8c7dd8d641a5f01b = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
804
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
805
- }, arguments) };
806
- imports.wbg.__wbg_authorizeresult_new = function(arg0) {
807
- const ret = AuthorizeResult.__wrap(arg0);
808
- return ret;
809
- };
810
- imports.wbg.__wbg_buffer_609cc3eee51ed158 = function(arg0) {
811
- const ret = arg0.buffer;
812
- return ret;
813
- };
814
- imports.wbg.__wbg_call_672a4d21634d4a24 = function() { return handleError(function (arg0, arg1) {
815
- const ret = arg0.call(arg1);
816
- return ret;
817
- }, arguments) };
818
- imports.wbg.__wbg_call_7cccdd69e0791ae2 = function() { return handleError(function (arg0, arg1, arg2) {
819
- const ret = arg0.call(arg1, arg2);
820
- return ret;
821
- }, arguments) };
822
- imports.wbg.__wbg_cedarling_new = function(arg0) {
823
- const ret = Cedarling.__wrap(arg0);
824
- return ret;
825
- };
826
- imports.wbg.__wbg_clearTimeout_86721db0036bea98 = function(arg0) {
827
- const ret = clearTimeout(arg0);
828
- return ret;
829
- };
830
- imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
831
- const ret = arg0.crypto;
832
- return ret;
833
- };
834
- imports.wbg.__wbg_debug_faaa2b98a2718860 = function(arg0) {
835
- console.debug(...arg0);
836
- };
837
- imports.wbg.__wbg_done_769e5ede4b31c67b = function(arg0) {
838
- const ret = arg0.done;
839
- return ret;
840
- };
841
- imports.wbg.__wbg_entries_3265d4158b33e5dc = function(arg0) {
842
- const ret = Object.entries(arg0);
843
- return ret;
844
- };
845
- imports.wbg.__wbg_entries_c8a90a7ed73e84ce = function(arg0) {
846
- const ret = arg0.entries();
847
- return ret;
848
- };
849
- imports.wbg.__wbg_error_dc53417fcef5463a = function(arg0) {
850
- console.error(...arg0);
851
- };
852
- imports.wbg.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
853
- const ret = arg0.fetch(arg1);
854
- return ret;
855
- };
856
- imports.wbg.__wbg_fetch_d36a73832f0a45e8 = function(arg0) {
857
- const ret = fetch(arg0);
858
- return ret;
859
- };
860
- imports.wbg.__wbg_fromEntries_524679eecb0bdc2e = function() { return handleError(function (arg0) {
861
- const ret = Object.fromEntries(arg0);
862
- return ret;
863
- }, arguments) };
864
- imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
865
- arg0.getRandomValues(arg1);
866
- }, arguments) };
867
- imports.wbg.__wbg_getTime_46267b1c24877e30 = function(arg0) {
868
- const ret = arg0.getTime();
869
- return ret;
870
- };
871
- imports.wbg.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
872
- const ret = arg0.getTimezoneOffset();
873
- return ret;
874
- };
875
- imports.wbg.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
876
- const ret = Reflect.get(arg0, arg1);
877
- return ret;
878
- }, arguments) };
879
- imports.wbg.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
880
- const ret = arg0[arg1 >>> 0];
881
- return ret;
882
- };
883
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
884
- const ret = arg0[arg1];
885
- return ret;
886
- };
887
- imports.wbg.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
888
- const ret = Reflect.has(arg0, arg1);
889
- return ret;
890
- }, arguments) };
891
- imports.wbg.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
892
- const ret = arg0.headers;
893
- return ret;
894
- };
895
- imports.wbg.__wbg_info_7fbe81f62c7b4dab = function(arg0) {
896
- console.info(...arg0);
897
- };
898
- imports.wbg.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
899
- let result;
900
- try {
901
- result = arg0 instanceof ArrayBuffer;
902
- } catch (_) {
903
- result = false;
904
- }
905
- const ret = result;
906
- return ret;
907
- };
908
- imports.wbg.__wbg_instanceof_Array_6ac07133d621675a = function(arg0) {
909
- let result;
910
- try {
911
- result = arg0 instanceof Array;
912
- } catch (_) {
913
- result = false;
914
- }
915
- const ret = result;
916
- return ret;
917
- };
918
- imports.wbg.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
919
- let result;
920
- try {
921
- result = arg0 instanceof Map;
922
- } catch (_) {
923
- result = false;
924
- }
925
- const ret = result;
926
- return ret;
927
- };
928
- imports.wbg.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
929
- let result;
930
- try {
931
- result = arg0 instanceof Response;
932
- } catch (_) {
933
- result = false;
934
- }
935
- const ret = result;
936
- return ret;
937
- };
938
- imports.wbg.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
939
- let result;
940
- try {
941
- result = arg0 instanceof Uint8Array;
942
- } catch (_) {
943
- result = false;
944
- }
945
- const ret = result;
946
- return ret;
947
- };
948
- imports.wbg.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
949
- const ret = Array.isArray(arg0);
950
- return ret;
951
- };
952
- imports.wbg.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
953
- const ret = Number.isSafeInteger(arg0);
954
- return ret;
955
- };
956
- imports.wbg.__wbg_iterator_9a24c88df860dc65 = function() {
957
- const ret = Symbol.iterator;
958
- return ret;
959
- };
960
- imports.wbg.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
961
- const ret = Object.keys(arg0);
962
- return ret;
963
- };
964
- imports.wbg.__wbg_length_a446193dc22c12f8 = function(arg0) {
965
- const ret = arg0.length;
966
- return ret;
967
- };
968
- imports.wbg.__wbg_length_e2d2a49132c1b256 = function(arg0) {
969
- const ret = arg0.length;
970
- return ret;
971
- };
972
- imports.wbg.__wbg_log_245868b4b99cdf20 = function(arg0) {
973
- console.log(...arg0);
974
- };
975
- imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
976
- const ret = arg0.msCrypto;
977
- return ret;
978
- };
979
- imports.wbg.__wbg_new0_f788a2397c7ca929 = function() {
980
- const ret = new Date();
981
- return ret;
982
- };
983
- imports.wbg.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
984
- const ret = new Headers();
985
- return ret;
986
- }, arguments) };
987
- imports.wbg.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
988
- try {
989
- var state0 = {a: arg0, b: arg1};
990
- var cb0 = (arg0, arg1) => {
991
- const a = state0.a;
992
- state0.a = 0;
993
- try {
994
- return __wbg_adapter_241(a, state0.b, arg0, arg1);
995
- } finally {
996
- state0.a = a;
997
- }
998
- };
999
- const ret = new Promise(cb0);
1000
- return ret;
1001
- } finally {
1002
- state0.a = state0.b = 0;
1003
- }
1004
- };
1005
- imports.wbg.__wbg_new_31a97dac4f10fab7 = function(arg0) {
1006
- const ret = new Date(arg0);
1007
- return ret;
1008
- };
1009
- imports.wbg.__wbg_new_405e22f390576ce2 = function() {
1010
- const ret = new Object();
1011
- return ret;
1012
- };
1013
- imports.wbg.__wbg_new_5e0be73521bc8c17 = function() {
1014
- const ret = new Map();
1015
- return ret;
1016
- };
1017
- imports.wbg.__wbg_new_78feb108b6472713 = function() {
1018
- const ret = new Array();
1019
- return ret;
1020
- };
1021
- imports.wbg.__wbg_new_a12002a7f91c75be = function(arg0) {
1022
- const ret = new Uint8Array(arg0);
1023
- return ret;
1024
- };
1025
- imports.wbg.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
1026
- const ret = new AbortController();
1027
- return ret;
1028
- }, arguments) };
1029
- imports.wbg.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1030
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1031
- return ret;
1032
- };
1033
- imports.wbg.__wbg_newwithargs_ab6ffe8cd6c19c04 = function(arg0, arg1, arg2, arg3) {
1034
- const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1035
- return ret;
1036
- };
1037
- imports.wbg.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1038
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1039
- return ret;
1040
- };
1041
- imports.wbg.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
1042
- const ret = new Uint8Array(arg0 >>> 0);
1043
- return ret;
1044
- };
1045
- imports.wbg.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
1046
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1047
- return ret;
1048
- }, arguments) };
1049
- imports.wbg.__wbg_next_25feadfc0913fea9 = function(arg0) {
1050
- const ret = arg0.next;
1051
- return ret;
1052
- };
1053
- imports.wbg.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
1054
- const ret = arg0.next();
1055
- return ret;
1056
- }, arguments) };
1057
- imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
1058
- const ret = arg0.node;
1059
- return ret;
1060
- };
1061
- imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
1062
- const ret = PolicyEvaluationError.__wrap(arg0);
1063
- return ret;
1064
- };
1065
- imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1066
- const ret = arg0.process;
1067
- return ret;
1068
- };
1069
- imports.wbg.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1070
- const ret = arg0.push(arg1);
1071
- return ret;
1072
- };
1073
- imports.wbg.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
1074
- queueMicrotask(arg0);
1075
- };
1076
- imports.wbg.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
1077
- const ret = arg0.queueMicrotask;
1078
- return ret;
1079
- };
1080
- imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1081
- arg0.randomFillSync(arg1);
1082
- }, arguments) };
1083
- imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1084
- const ret = module.require;
1085
- return ret;
1086
- }, arguments) };
1087
- imports.wbg.__wbg_resolve_4851785c9c5f573d = function(arg0) {
1088
- const ret = Promise.resolve(arg0);
1089
- return ret;
1090
- };
1091
- imports.wbg.__wbg_setTimeout_2e707715f8cc9497 = function(arg0, arg1) {
1092
- const ret = setTimeout(arg0, arg1);
1093
- return ret;
1094
- };
1095
- imports.wbg.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
1096
- arg0[arg1 >>> 0] = arg2;
1097
- };
1098
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1099
- arg0[arg1] = arg2;
1100
- };
1101
- imports.wbg.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1102
- arg0.set(arg1, arg2 >>> 0);
1103
- };
1104
- imports.wbg.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
1105
- const ret = arg0.set(arg1, arg2);
1106
- return ret;
1107
- };
1108
- imports.wbg.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
1109
- const ret = Reflect.set(arg0, arg1, arg2);
1110
- return ret;
1111
- }, arguments) };
1112
- imports.wbg.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
1113
- arg0.body = arg1;
1114
- };
1115
- imports.wbg.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
1116
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1117
- };
1118
- imports.wbg.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
1119
- arg0.headers = arg1;
1120
- };
1121
- imports.wbg.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
1122
- arg0.method = getStringFromWasm0(arg1, arg2);
1123
- };
1124
- imports.wbg.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
1125
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
1126
- };
1127
- imports.wbg.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
1128
- arg0.signal = arg1;
1129
- };
1130
- imports.wbg.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
1131
- const ret = arg0.signal;
1132
- return ret;
1133
- };
1134
- imports.wbg.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1135
- const ret = typeof global === 'undefined' ? null : global;
1136
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1137
- };
1138
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1139
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1140
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1141
- };
1142
- imports.wbg.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1143
- const ret = typeof self === 'undefined' ? null : self;
1144
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1145
- };
1146
- imports.wbg.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1147
- const ret = typeof window === 'undefined' ? null : window;
1148
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1149
- };
1150
- imports.wbg.__wbg_status_f6360336ca686bf0 = function(arg0) {
1151
- const ret = arg0.status;
1152
- return ret;
1153
- };
1154
- imports.wbg.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
1155
- const ret = JSON.stringify(arg0);
1156
- return ret;
1157
- }, arguments) };
1158
- imports.wbg.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
1159
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1160
- return ret;
1161
- };
1162
- imports.wbg.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
1163
- const ret = arg0.text();
1164
- return ret;
1165
- }, arguments) };
1166
- imports.wbg.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
1167
- const ret = arg0.then(arg1);
1168
- return ret;
1169
- };
1170
- imports.wbg.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
1171
- const ret = arg0.then(arg1, arg2);
1172
- return ret;
1173
- };
1174
- imports.wbg.__wbg_trace_8fa9ac2274ea7420 = function(arg0) {
1175
- console.trace(...arg0);
1176
- };
1177
- imports.wbg.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
1178
- const ret = arg1.url;
1179
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1180
- const len1 = WASM_VECTOR_LEN;
1181
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1182
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1183
- };
1184
- imports.wbg.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
1185
- const ret = arg0.value;
1186
- return ret;
1187
- };
1188
- imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1189
- const ret = arg0.versions;
1190
- return ret;
1191
- };
1192
- imports.wbg.__wbg_warn_ba4bf5118b457d45 = function(arg0) {
1193
- console.warn(...arg0);
1194
- };
1195
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1196
- const ret = arg0;
1197
- return ret;
1198
- };
1199
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1200
- const ret = BigInt.asUintN(64, arg0);
1201
- return ret;
1202
- };
1203
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1204
- const v = arg1;
1205
- const ret = typeof(v) === 'bigint' ? v : undefined;
1206
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1207
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1208
- };
1209
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
1210
- const v = arg0;
1211
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1212
- return ret;
1213
- };
1214
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1215
- const obj = arg0.original;
1216
- if (obj.cnt-- == 1) {
1217
- obj.a = 0;
1218
- return true;
1219
- }
1220
- const ret = false;
1221
- return ret;
1222
- };
1223
- imports.wbg.__wbindgen_closure_wrapper3246 = function(arg0, arg1, arg2) {
1224
- const ret = makeMutClosure(arg0, arg1, 427, __wbg_adapter_50);
1225
- return ret;
1226
- };
1227
- imports.wbg.__wbindgen_closure_wrapper3385 = function(arg0, arg1, arg2) {
1228
- const ret = makeMutClosure(arg0, arg1, 471, __wbg_adapter_53);
1229
- return ret;
1230
- };
1231
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1232
- const ret = debugString(arg1);
1233
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1234
- const len1 = WASM_VECTOR_LEN;
1235
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1236
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1237
- };
1238
- imports.wbg.__wbindgen_error_new = function(arg0, arg1) {
1239
- const ret = new Error(getStringFromWasm0(arg0, arg1));
1240
- return ret;
1241
- };
1242
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
1243
- const ret = arg0 in arg1;
1244
- return ret;
1245
- };
1246
- imports.wbg.__wbindgen_init_externref_table = function() {
1247
- const table = wasm.__wbindgen_export_4;
1248
- const offset = table.grow(4);
1249
- table.set(0, undefined);
1250
- table.set(offset + 0, undefined);
1251
- table.set(offset + 1, null);
1252
- table.set(offset + 2, true);
1253
- table.set(offset + 3, false);
1254
- ;
1255
- };
1256
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
1257
- const ret = typeof(arg0) === 'bigint';
1258
- return ret;
1259
- };
1260
- imports.wbg.__wbindgen_is_function = function(arg0) {
1261
- const ret = typeof(arg0) === 'function';
1262
- return ret;
1263
- };
1264
- imports.wbg.__wbindgen_is_object = function(arg0) {
1265
- const val = arg0;
1266
- const ret = typeof(val) === 'object' && val !== null;
1267
- return ret;
1268
- };
1269
- imports.wbg.__wbindgen_is_string = function(arg0) {
1270
- const ret = typeof(arg0) === 'string';
1271
- return ret;
1272
- };
1273
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1274
- const ret = arg0 === undefined;
1275
- return ret;
1276
- };
1277
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1278
- const ret = arg0 === arg1;
1279
- return ret;
1280
- };
1281
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1282
- const ret = arg0 == arg1;
1283
- return ret;
1284
- };
1285
- imports.wbg.__wbindgen_memory = function() {
1286
- const ret = wasm.memory;
1287
- return ret;
1288
- };
1289
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1290
- const obj = arg1;
1291
- const ret = typeof(obj) === 'number' ? obj : undefined;
1292
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1293
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1294
- };
1295
- imports.wbg.__wbindgen_number_new = function(arg0) {
1296
- const ret = arg0;
1297
- return ret;
1298
- };
1299
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1300
- const obj = arg1;
1301
- const ret = typeof(obj) === 'string' ? obj : undefined;
1302
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1303
- var len1 = WASM_VECTOR_LEN;
1304
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1305
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1306
- };
1307
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1308
- const ret = getStringFromWasm0(arg0, arg1);
1309
- return ret;
1310
- };
1311
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1312
- throw new Error(getStringFromWasm0(arg0, arg1));
1313
- };
834
+ module.exports.__wbg_debug_faaa2b98a2718860 = function(arg0) {
835
+ console.debug(...arg0);
836
+ };
1314
837
 
1315
- return imports;
1316
- }
838
+ module.exports.__wbg_done_769e5ede4b31c67b = function(arg0) {
839
+ const ret = arg0.done;
840
+ return ret;
841
+ };
1317
842
 
1318
- function __wbg_init_memory(imports, memory) {
843
+ module.exports.__wbg_entries_3265d4158b33e5dc = function(arg0) {
844
+ const ret = Object.entries(arg0);
845
+ return ret;
846
+ };
1319
847
 
1320
- }
848
+ module.exports.__wbg_entries_c8a90a7ed73e84ce = function(arg0) {
849
+ const ret = arg0.entries();
850
+ return ret;
851
+ };
1321
852
 
1322
- function __wbg_finalize_init(instance, module) {
1323
- wasm = instance.exports;
1324
- __wbg_init.__wbindgen_wasm_module = module;
1325
- cachedDataViewMemory0 = null;
1326
- cachedUint8ArrayMemory0 = null;
853
+ module.exports.__wbg_error_dc53417fcef5463a = function(arg0) {
854
+ console.error(...arg0);
855
+ };
1327
856
 
857
+ module.exports.__wbg_fetch_3afbdcc7ddbf16fe = function(arg0) {
858
+ const ret = fetch(arg0);
859
+ return ret;
860
+ };
1328
861
 
1329
- wasm.__wbindgen_start();
1330
- return wasm;
1331
- }
862
+ module.exports.__wbg_fetch_509096533071c657 = function(arg0, arg1) {
863
+ const ret = arg0.fetch(arg1);
864
+ return ret;
865
+ };
1332
866
 
1333
- function initSync(module) {
1334
- if (wasm !== undefined) return wasm;
867
+ module.exports.__wbg_fromEntries_524679eecb0bdc2e = function() { return handleError(function (arg0) {
868
+ const ret = Object.fromEntries(arg0);
869
+ return ret;
870
+ }, arguments) };
1335
871
 
872
+ module.exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
873
+ arg0.getRandomValues(arg1);
874
+ }, arguments) };
1336
875
 
1337
- if (typeof module !== 'undefined') {
1338
- if (Object.getPrototypeOf(module) === Object.prototype) {
1339
- ({module} = module)
1340
- } else {
1341
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1342
- }
876
+ module.exports.__wbg_getTime_46267b1c24877e30 = function(arg0) {
877
+ const ret = arg0.getTime();
878
+ return ret;
879
+ };
880
+
881
+ module.exports.__wbg_getTimezoneOffset_6b5752021c499c47 = function(arg0) {
882
+ const ret = arg0.getTimezoneOffset();
883
+ return ret;
884
+ };
885
+
886
+ module.exports.__wbg_get_67b2ba62fc30de12 = function() { return handleError(function (arg0, arg1) {
887
+ const ret = Reflect.get(arg0, arg1);
888
+ return ret;
889
+ }, arguments) };
890
+
891
+ module.exports.__wbg_get_b9b93047fe3cf45b = function(arg0, arg1) {
892
+ const ret = arg0[arg1 >>> 0];
893
+ return ret;
894
+ };
895
+
896
+ module.exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
897
+ const ret = arg0[arg1];
898
+ return ret;
899
+ };
900
+
901
+ module.exports.__wbg_has_a5ea9117f258a0ec = function() { return handleError(function (arg0, arg1) {
902
+ const ret = Reflect.has(arg0, arg1);
903
+ return ret;
904
+ }, arguments) };
905
+
906
+ module.exports.__wbg_headers_9cb51cfd2ac780a4 = function(arg0) {
907
+ const ret = arg0.headers;
908
+ return ret;
909
+ };
910
+
911
+ module.exports.__wbg_info_7fbe81f62c7b4dab = function(arg0) {
912
+ console.info(...arg0);
913
+ };
914
+
915
+ module.exports.__wbg_instanceof_ArrayBuffer_e14585432e3737fc = function(arg0) {
916
+ let result;
917
+ try {
918
+ result = arg0 instanceof ArrayBuffer;
919
+ } catch (_) {
920
+ result = false;
1343
921
  }
922
+ const ret = result;
923
+ return ret;
924
+ };
1344
925
 
1345
- const imports = __wbg_get_imports();
926
+ module.exports.__wbg_instanceof_Array_6ac07133d621675a = function(arg0) {
927
+ let result;
928
+ try {
929
+ result = arg0 instanceof Array;
930
+ } catch (_) {
931
+ result = false;
932
+ }
933
+ const ret = result;
934
+ return ret;
935
+ };
1346
936
 
1347
- __wbg_init_memory(imports);
937
+ module.exports.__wbg_instanceof_Map_f3469ce2244d2430 = function(arg0) {
938
+ let result;
939
+ try {
940
+ result = arg0 instanceof Map;
941
+ } catch (_) {
942
+ result = false;
943
+ }
944
+ const ret = result;
945
+ return ret;
946
+ };
1348
947
 
1349
- if (!(module instanceof WebAssembly.Module)) {
1350
- module = new WebAssembly.Module(module);
948
+ module.exports.__wbg_instanceof_Response_f2cc20d9f7dfd644 = function(arg0) {
949
+ let result;
950
+ try {
951
+ result = arg0 instanceof Response;
952
+ } catch (_) {
953
+ result = false;
1351
954
  }
955
+ const ret = result;
956
+ return ret;
957
+ };
1352
958
 
1353
- const instance = new WebAssembly.Instance(module, imports);
959
+ module.exports.__wbg_instanceof_Uint8Array_17156bcf118086a9 = function(arg0) {
960
+ let result;
961
+ try {
962
+ result = arg0 instanceof Uint8Array;
963
+ } catch (_) {
964
+ result = false;
965
+ }
966
+ const ret = result;
967
+ return ret;
968
+ };
1354
969
 
1355
- return __wbg_finalize_init(instance, module);
1356
- }
970
+ module.exports.__wbg_isArray_a1eab7e0d067391b = function(arg0) {
971
+ const ret = Array.isArray(arg0);
972
+ return ret;
973
+ };
1357
974
 
1358
- async function __wbg_init(module_or_path) {
1359
- if (wasm !== undefined) return wasm;
975
+ module.exports.__wbg_isSafeInteger_343e2beeeece1bb0 = function(arg0) {
976
+ const ret = Number.isSafeInteger(arg0);
977
+ return ret;
978
+ };
1360
979
 
980
+ module.exports.__wbg_iterator_9a24c88df860dc65 = function() {
981
+ const ret = Symbol.iterator;
982
+ return ret;
983
+ };
1361
984
 
1362
- if (typeof module_or_path !== 'undefined') {
1363
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1364
- ({module_or_path} = module_or_path)
1365
- } else {
1366
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1367
- }
1368
- }
985
+ module.exports.__wbg_keys_5c77a08ddc2fb8a6 = function(arg0) {
986
+ const ret = Object.keys(arg0);
987
+ return ret;
988
+ };
989
+
990
+ module.exports.__wbg_length_a446193dc22c12f8 = function(arg0) {
991
+ const ret = arg0.length;
992
+ return ret;
993
+ };
994
+
995
+ module.exports.__wbg_length_e2d2a49132c1b256 = function(arg0) {
996
+ const ret = arg0.length;
997
+ return ret;
998
+ };
999
+
1000
+ module.exports.__wbg_log_245868b4b99cdf20 = function(arg0) {
1001
+ console.log(...arg0);
1002
+ };
1003
+
1004
+ module.exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1005
+ const ret = arg0.msCrypto;
1006
+ return ret;
1007
+ };
1008
+
1009
+ module.exports.__wbg_new0_f788a2397c7ca929 = function() {
1010
+ const ret = new Date();
1011
+ return ret;
1012
+ };
1013
+
1014
+ module.exports.__wbg_new_018dcc2d6c8c2f6a = function() { return handleError(function () {
1015
+ const ret = new Headers();
1016
+ return ret;
1017
+ }, arguments) };
1369
1018
 
1370
- if (typeof module_or_path === 'undefined') {
1371
- module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
1019
+ module.exports.__wbg_new_23a2665fac83c611 = function(arg0, arg1) {
1020
+ try {
1021
+ var state0 = {a: arg0, b: arg1};
1022
+ var cb0 = (arg0, arg1) => {
1023
+ const a = state0.a;
1024
+ state0.a = 0;
1025
+ try {
1026
+ return __wbg_adapter_244(a, state0.b, arg0, arg1);
1027
+ } finally {
1028
+ state0.a = a;
1029
+ }
1030
+ };
1031
+ const ret = new Promise(cb0);
1032
+ return ret;
1033
+ } finally {
1034
+ state0.a = state0.b = 0;
1372
1035
  }
1373
- const imports = __wbg_get_imports();
1036
+ };
1037
+
1038
+ module.exports.__wbg_new_31a97dac4f10fab7 = function(arg0) {
1039
+ const ret = new Date(arg0);
1040
+ return ret;
1041
+ };
1042
+
1043
+ module.exports.__wbg_new_405e22f390576ce2 = function() {
1044
+ const ret = new Object();
1045
+ return ret;
1046
+ };
1047
+
1048
+ module.exports.__wbg_new_5e0be73521bc8c17 = function() {
1049
+ const ret = new Map();
1050
+ return ret;
1051
+ };
1052
+
1053
+ module.exports.__wbg_new_78feb108b6472713 = function() {
1054
+ const ret = new Array();
1055
+ return ret;
1056
+ };
1374
1057
 
1375
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1376
- module_or_path = fetch(module_or_path);
1058
+ module.exports.__wbg_new_a12002a7f91c75be = function(arg0) {
1059
+ const ret = new Uint8Array(arg0);
1060
+ return ret;
1061
+ };
1062
+
1063
+ module.exports.__wbg_new_e25e5aab09ff45db = function() { return handleError(function () {
1064
+ const ret = new AbortController();
1065
+ return ret;
1066
+ }, arguments) };
1067
+
1068
+ module.exports.__wbg_newnoargs_105ed471475aaf50 = function(arg0, arg1) {
1069
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1070
+ return ret;
1071
+ };
1072
+
1073
+ module.exports.__wbg_newwithargs_ab6ffe8cd6c19c04 = function(arg0, arg1, arg2, arg3) {
1074
+ const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1075
+ return ret;
1076
+ };
1077
+
1078
+ module.exports.__wbg_newwithbyteoffsetandlength_d97e637ebe145a9a = function(arg0, arg1, arg2) {
1079
+ const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1080
+ return ret;
1081
+ };
1082
+
1083
+ module.exports.__wbg_newwithlength_a381634e90c276d4 = function(arg0) {
1084
+ const ret = new Uint8Array(arg0 >>> 0);
1085
+ return ret;
1086
+ };
1087
+
1088
+ module.exports.__wbg_newwithstrandinit_06c535e0a867c635 = function() { return handleError(function (arg0, arg1, arg2) {
1089
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1090
+ return ret;
1091
+ }, arguments) };
1092
+
1093
+ module.exports.__wbg_next_25feadfc0913fea9 = function(arg0) {
1094
+ const ret = arg0.next;
1095
+ return ret;
1096
+ };
1097
+
1098
+ module.exports.__wbg_next_6574e1a8a62d1055 = function() { return handleError(function (arg0) {
1099
+ const ret = arg0.next();
1100
+ return ret;
1101
+ }, arguments) };
1102
+
1103
+ module.exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
1104
+ const ret = arg0.node;
1105
+ return ret;
1106
+ };
1107
+
1108
+ module.exports.__wbg_policyevaluationerror_new = function(arg0) {
1109
+ const ret = PolicyEvaluationError.__wrap(arg0);
1110
+ return ret;
1111
+ };
1112
+
1113
+ module.exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1114
+ const ret = arg0.process;
1115
+ return ret;
1116
+ };
1117
+
1118
+ module.exports.__wbg_push_737cfc8c1432c2c6 = function(arg0, arg1) {
1119
+ const ret = arg0.push(arg1);
1120
+ return ret;
1121
+ };
1122
+
1123
+ module.exports.__wbg_queueMicrotask_97d92b4fcc8a61c5 = function(arg0) {
1124
+ queueMicrotask(arg0);
1125
+ };
1126
+
1127
+ module.exports.__wbg_queueMicrotask_d3219def82552485 = function(arg0) {
1128
+ const ret = arg0.queueMicrotask;
1129
+ return ret;
1130
+ };
1131
+
1132
+ module.exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1133
+ arg0.randomFillSync(arg1);
1134
+ }, arguments) };
1135
+
1136
+ module.exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1137
+ const ret = module.require;
1138
+ return ret;
1139
+ }, arguments) };
1140
+
1141
+ module.exports.__wbg_resolve_4851785c9c5f573d = function(arg0) {
1142
+ const ret = Promise.resolve(arg0);
1143
+ return ret;
1144
+ };
1145
+
1146
+ module.exports.__wbg_setTimeout_ca12ead8b48245e2 = function(arg0, arg1) {
1147
+ const ret = setTimeout(arg0, arg1);
1148
+ return ret;
1149
+ };
1150
+
1151
+ module.exports.__wbg_set_37837023f3d740e8 = function(arg0, arg1, arg2) {
1152
+ arg0[arg1 >>> 0] = arg2;
1153
+ };
1154
+
1155
+ module.exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1156
+ arg0[arg1] = arg2;
1157
+ };
1158
+
1159
+ module.exports.__wbg_set_65595bdd868b3009 = function(arg0, arg1, arg2) {
1160
+ arg0.set(arg1, arg2 >>> 0);
1161
+ };
1162
+
1163
+ module.exports.__wbg_set_8fc6bf8a5b1071d1 = function(arg0, arg1, arg2) {
1164
+ const ret = arg0.set(arg1, arg2);
1165
+ return ret;
1166
+ };
1167
+
1168
+ module.exports.__wbg_set_bb8cecf6a62b9f46 = function() { return handleError(function (arg0, arg1, arg2) {
1169
+ const ret = Reflect.set(arg0, arg1, arg2);
1170
+ return ret;
1171
+ }, arguments) };
1172
+
1173
+ module.exports.__wbg_setbody_5923b78a95eedf29 = function(arg0, arg1) {
1174
+ arg0.body = arg1;
1175
+ };
1176
+
1177
+ module.exports.__wbg_setcredentials_c3a22f1cd105a2c6 = function(arg0, arg1) {
1178
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1179
+ };
1180
+
1181
+ module.exports.__wbg_setheaders_834c0bdb6a8949ad = function(arg0, arg1) {
1182
+ arg0.headers = arg1;
1183
+ };
1184
+
1185
+ module.exports.__wbg_setmethod_3c5280fe5d890842 = function(arg0, arg1, arg2) {
1186
+ arg0.method = getStringFromWasm0(arg1, arg2);
1187
+ };
1188
+
1189
+ module.exports.__wbg_setmode_5dc300b865044b65 = function(arg0, arg1) {
1190
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
1191
+ };
1192
+
1193
+ module.exports.__wbg_setsignal_75b21ef3a81de905 = function(arg0, arg1) {
1194
+ arg0.signal = arg1;
1195
+ };
1196
+
1197
+ module.exports.__wbg_signal_aaf9ad74119f20a4 = function(arg0) {
1198
+ const ret = arg0.signal;
1199
+ return ret;
1200
+ };
1201
+
1202
+ module.exports.__wbg_static_accessor_GLOBAL_88a902d13a557d07 = function() {
1203
+ const ret = typeof global === 'undefined' ? null : global;
1204
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1205
+ };
1206
+
1207
+ module.exports.__wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0 = function() {
1208
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1209
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1210
+ };
1211
+
1212
+ module.exports.__wbg_static_accessor_SELF_37c5d418e4bf5819 = function() {
1213
+ const ret = typeof self === 'undefined' ? null : self;
1214
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1215
+ };
1216
+
1217
+ module.exports.__wbg_static_accessor_WINDOW_5de37043a91a9c40 = function() {
1218
+ const ret = typeof window === 'undefined' ? null : window;
1219
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1220
+ };
1221
+
1222
+ module.exports.__wbg_status_f6360336ca686bf0 = function(arg0) {
1223
+ const ret = arg0.status;
1224
+ return ret;
1225
+ };
1226
+
1227
+ module.exports.__wbg_stringify_f7ed6987935b4a24 = function() { return handleError(function (arg0) {
1228
+ const ret = JSON.stringify(arg0);
1229
+ return ret;
1230
+ }, arguments) };
1231
+
1232
+ module.exports.__wbg_subarray_aa9065fa9dc5df96 = function(arg0, arg1, arg2) {
1233
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1234
+ return ret;
1235
+ };
1236
+
1237
+ module.exports.__wbg_text_7805bea50de2af49 = function() { return handleError(function (arg0) {
1238
+ const ret = arg0.text();
1239
+ return ret;
1240
+ }, arguments) };
1241
+
1242
+ module.exports.__wbg_then_44b73946d2fb3e7d = function(arg0, arg1) {
1243
+ const ret = arg0.then(arg1);
1244
+ return ret;
1245
+ };
1246
+
1247
+ module.exports.__wbg_then_48b406749878a531 = function(arg0, arg1, arg2) {
1248
+ const ret = arg0.then(arg1, arg2);
1249
+ return ret;
1250
+ };
1251
+
1252
+ module.exports.__wbg_trace_8fa9ac2274ea7420 = function(arg0) {
1253
+ console.trace(...arg0);
1254
+ };
1255
+
1256
+ module.exports.__wbg_url_ae10c34ca209681d = function(arg0, arg1) {
1257
+ const ret = arg1.url;
1258
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1259
+ const len1 = WASM_VECTOR_LEN;
1260
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1261
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1262
+ };
1263
+
1264
+ module.exports.__wbg_value_cd1ffa7b1ab794f1 = function(arg0) {
1265
+ const ret = arg0.value;
1266
+ return ret;
1267
+ };
1268
+
1269
+ module.exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1270
+ const ret = arg0.versions;
1271
+ return ret;
1272
+ };
1273
+
1274
+ module.exports.__wbg_warn_ba4bf5118b457d45 = function(arg0) {
1275
+ console.warn(...arg0);
1276
+ };
1277
+
1278
+ module.exports.__wbindgen_bigint_from_i64 = function(arg0) {
1279
+ const ret = arg0;
1280
+ return ret;
1281
+ };
1282
+
1283
+ module.exports.__wbindgen_bigint_from_u64 = function(arg0) {
1284
+ const ret = BigInt.asUintN(64, arg0);
1285
+ return ret;
1286
+ };
1287
+
1288
+ module.exports.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1289
+ const v = arg1;
1290
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1291
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1292
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1293
+ };
1294
+
1295
+ module.exports.__wbindgen_boolean_get = function(arg0) {
1296
+ const v = arg0;
1297
+ const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1298
+ return ret;
1299
+ };
1300
+
1301
+ module.exports.__wbindgen_cb_drop = function(arg0) {
1302
+ const obj = arg0.original;
1303
+ if (obj.cnt-- == 1) {
1304
+ obj.a = 0;
1305
+ return true;
1377
1306
  }
1307
+ const ret = false;
1308
+ return ret;
1309
+ };
1310
+
1311
+ module.exports.__wbindgen_closure_wrapper3637 = function(arg0, arg1, arg2) {
1312
+ const ret = makeMutClosure(arg0, arg1, 467, __wbg_adapter_50);
1313
+ return ret;
1314
+ };
1315
+
1316
+ module.exports.__wbindgen_closure_wrapper3788 = function(arg0, arg1, arg2) {
1317
+ const ret = makeMutClosure(arg0, arg1, 509, __wbg_adapter_53);
1318
+ return ret;
1319
+ };
1320
+
1321
+ module.exports.__wbindgen_debug_string = function(arg0, arg1) {
1322
+ const ret = debugString(arg1);
1323
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1324
+ const len1 = WASM_VECTOR_LEN;
1325
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1326
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1327
+ };
1328
+
1329
+ module.exports.__wbindgen_error_new = function(arg0, arg1) {
1330
+ const ret = new Error(getStringFromWasm0(arg0, arg1));
1331
+ return ret;
1332
+ };
1378
1333
 
1379
- __wbg_init_memory(imports);
1334
+ module.exports.__wbindgen_in = function(arg0, arg1) {
1335
+ const ret = arg0 in arg1;
1336
+ return ret;
1337
+ };
1338
+
1339
+ module.exports.__wbindgen_init_externref_table = function() {
1340
+ const table = wasm.__wbindgen_export_4;
1341
+ const offset = table.grow(4);
1342
+ table.set(0, undefined);
1343
+ table.set(offset + 0, undefined);
1344
+ table.set(offset + 1, null);
1345
+ table.set(offset + 2, true);
1346
+ table.set(offset + 3, false);
1347
+ ;
1348
+ };
1349
+
1350
+ module.exports.__wbindgen_is_bigint = function(arg0) {
1351
+ const ret = typeof(arg0) === 'bigint';
1352
+ return ret;
1353
+ };
1380
1354
 
1381
- const { instance, module } = await __wbg_load(await module_or_path, imports);
1355
+ module.exports.__wbindgen_is_function = function(arg0) {
1356
+ const ret = typeof(arg0) === 'function';
1357
+ return ret;
1358
+ };
1382
1359
 
1383
- return __wbg_finalize_init(instance, module);
1384
- }
1360
+ module.exports.__wbindgen_is_object = function(arg0) {
1361
+ const val = arg0;
1362
+ const ret = typeof(val) === 'object' && val !== null;
1363
+ return ret;
1364
+ };
1365
+
1366
+ module.exports.__wbindgen_is_string = function(arg0) {
1367
+ const ret = typeof(arg0) === 'string';
1368
+ return ret;
1369
+ };
1370
+
1371
+ module.exports.__wbindgen_is_undefined = function(arg0) {
1372
+ const ret = arg0 === undefined;
1373
+ return ret;
1374
+ };
1375
+
1376
+ module.exports.__wbindgen_jsval_eq = function(arg0, arg1) {
1377
+ const ret = arg0 === arg1;
1378
+ return ret;
1379
+ };
1380
+
1381
+ module.exports.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1382
+ const ret = arg0 == arg1;
1383
+ return ret;
1384
+ };
1385
+
1386
+ module.exports.__wbindgen_memory = function() {
1387
+ const ret = wasm.memory;
1388
+ return ret;
1389
+ };
1390
+
1391
+ module.exports.__wbindgen_number_get = function(arg0, arg1) {
1392
+ const obj = arg1;
1393
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1394
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1395
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1396
+ };
1397
+
1398
+ module.exports.__wbindgen_number_new = function(arg0) {
1399
+ const ret = arg0;
1400
+ return ret;
1401
+ };
1402
+
1403
+ module.exports.__wbindgen_string_get = function(arg0, arg1) {
1404
+ const obj = arg1;
1405
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1406
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1407
+ var len1 = WASM_VECTOR_LEN;
1408
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1409
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1410
+ };
1411
+
1412
+ module.exports.__wbindgen_string_new = function(arg0, arg1) {
1413
+ const ret = getStringFromWasm0(arg0, arg1);
1414
+ return ret;
1415
+ };
1416
+
1417
+ module.exports.__wbindgen_throw = function(arg0, arg1) {
1418
+ throw new Error(getStringFromWasm0(arg0, arg1));
1419
+ };
1420
+
1421
+ const path = require('path').join(__dirname, 'cedarling_wasm_bg.wasm');
1422
+ const bytes = require('fs').readFileSync(path);
1423
+
1424
+ const wasmModule = new WebAssembly.Module(bytes);
1425
+ const wasmInstance = new WebAssembly.Instance(wasmModule, imports);
1426
+ wasm = wasmInstance.exports;
1427
+ module.exports.__wasm = wasm;
1428
+
1429
+ wasm.__wbindgen_start();
1385
1430
 
1386
- export { initSync };
1387
- export default __wbg_init;