@janssenproject/cedarling_wasm 0.0.229 → 0.0.230-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,6 @@
1
- let wasm;
1
+
2
+ let imports = {};
3
+ imports['__wbindgen_placeholder__'] = module.exports;
2
4
 
3
5
  let cachedUint8ArrayMemory0 = null;
4
6
 
@@ -9,19 +11,11 @@ function getUint8ArrayMemory0() {
9
11
  return cachedUint8ArrayMemory0;
10
12
  }
11
13
 
12
- let cachedTextDecoder = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
14
+ let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
13
15
 
14
- if (typeof TextDecoder !== 'undefined') { cachedTextDecoder.decode(); };
16
+ cachedTextDecoder.decode();
15
17
 
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 = (typeof TextDecoder !== 'undefined' ? new TextDecoder('utf-8', { ignoreBOM: true, fatal: true }) : { decode: () => { throw Error('TextDecoder not available') } } );
22
- cachedTextDecoder.decode();
23
- numBytesDecoded = len;
24
- }
25
19
  return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
26
20
  }
27
21
 
@@ -32,20 +26,18 @@ function getStringFromWasm0(ptr, len) {
32
26
 
33
27
  let WASM_VECTOR_LEN = 0;
34
28
 
35
- const cachedTextEncoder = (typeof TextEncoder !== 'undefined' ? new TextEncoder('utf-8') : { encode: () => { throw Error('TextEncoder not available') } } );
29
+ const cachedTextEncoder = new TextEncoder();
36
30
 
37
- const encodeString = (typeof cachedTextEncoder.encodeInto === 'function'
38
- ? function (arg, view) {
39
- return cachedTextEncoder.encodeInto(arg, view);
31
+ if (!('encodeInto' in cachedTextEncoder)) {
32
+ cachedTextEncoder.encodeInto = function (arg, view) {
33
+ const buf = cachedTextEncoder.encode(arg);
34
+ view.set(buf);
35
+ return {
36
+ read: arg.length,
37
+ written: buf.length
38
+ };
39
+ }
40
40
  }
41
- : function (arg, view) {
42
- const buf = cachedTextEncoder.encode(arg);
43
- view.set(buf);
44
- return {
45
- read: arg.length,
46
- written: buf.length
47
- };
48
- });
49
41
 
50
42
  function passStringToWasm0(arg, malloc, realloc) {
51
43
 
@@ -76,7 +68,7 @@ function passStringToWasm0(arg, malloc, realloc) {
76
68
  }
77
69
  ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
78
70
  const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
79
- const ret = encodeString(arg, view);
71
+ const ret = cachedTextEncoder.encodeInto(arg, view);
80
72
 
81
73
  offset += ret.written;
82
74
  ptr = realloc(ptr, len, offset, 1) >>> 0;
@@ -119,37 +111,6 @@ function isLikeNone(x) {
119
111
  return x === undefined || x === null;
120
112
  }
121
113
 
122
- const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
123
- ? { register: () => {}, unregister: () => {} }
124
- : new FinalizationRegistry(state => {
125
- wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b)
126
- });
127
-
128
- function makeMutClosure(arg0, arg1, dtor, f) {
129
- const state = { a: arg0, b: arg1, cnt: 1, dtor };
130
- const real = (...args) => {
131
- // First up with a closure we increment the internal reference
132
- // count. This ensures that the Rust closure environment won't
133
- // be deallocated while we're invoking it.
134
- state.cnt++;
135
- const a = state.a;
136
- state.a = 0;
137
- try {
138
- return f(a, state.b, ...args);
139
- } finally {
140
- if (--state.cnt === 0) {
141
- wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
142
- CLOSURE_DTORS.unregister(state);
143
- } else {
144
- state.a = a;
145
- }
146
- }
147
- };
148
- real.original = state;
149
- CLOSURE_DTORS.register(real, state, state);
150
- return real;
151
- }
152
-
153
114
  function debugString(val) {
154
115
  // primitive types
155
116
  const type = typeof val;
@@ -214,16 +175,50 @@ function debugString(val) {
214
175
  // TODO we could test for more things here, like `Set`s and `Map`s.
215
176
  return className;
216
177
  }
178
+
179
+ const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
180
+ ? { register: () => {}, unregister: () => {} }
181
+ : new FinalizationRegistry(
182
+ state => {
183
+ wasm.__wbindgen_export_5.get(state.dtor)(state.a, state.b);
184
+ }
185
+ );
186
+
187
+ function makeMutClosure(arg0, arg1, dtor, f) {
188
+ const state = { a: arg0, b: arg1, cnt: 1, dtor };
189
+ const real = (...args) => {
190
+
191
+ // First up with a closure we increment the internal reference
192
+ // count. This ensures that the Rust closure environment won't
193
+ // be deallocated while we're invoking it.
194
+ state.cnt++;
195
+ const a = state.a;
196
+ state.a = 0;
197
+ try {
198
+ return f(a, state.b, ...args);
199
+ } finally {
200
+ if (--state.cnt === 0) {
201
+ wasm.__wbindgen_export_5.get(state.dtor)(a, state.b);
202
+ CLOSURE_DTORS.unregister(state);
203
+ } else {
204
+ state.a = a;
205
+ }
206
+ }
207
+ };
208
+ real.original = state;
209
+ CLOSURE_DTORS.register(real, state, state);
210
+ return real;
211
+ }
217
212
  /**
218
213
  * Create a new instance of the Cedarling application.
219
214
  * This function can take as config parameter the eather `Map` other `Object`
220
215
  * @param {any} config
221
216
  * @returns {Promise<Cedarling>}
222
217
  */
223
- export function init(config) {
218
+ exports.init = function(config) {
224
219
  const ret = wasm.init(config);
225
220
  return ret;
226
- }
221
+ };
227
222
 
228
223
  function takeFromExternrefTable0(idx) {
229
224
  const value = wasm.__wbindgen_export_4.get(idx);
@@ -247,16 +242,16 @@ function _assertClass(instance, klass) {
247
242
  throw new Error(`expected instance of ${klass.name}`);
248
243
  }
249
244
  }
250
- function __wbg_adapter_48(arg0, arg1) {
251
- wasm.wasm_bindgen__convert__closures_____invoke__he9f048cde4473dbf(arg0, arg1);
245
+ function __wbg_adapter_12(arg0, arg1, arg2) {
246
+ wasm.closure548_externref_shim(arg0, arg1, arg2);
252
247
  }
253
248
 
254
- function __wbg_adapter_51(arg0, arg1, arg2) {
255
- wasm.closure542_externref_shim(arg0, arg1, arg2);
249
+ function __wbg_adapter_15(arg0, arg1) {
250
+ wasm.wasm_bindgen__convert__closures_____invoke__h214c7aec3b7a80e2(arg0, arg1);
256
251
  }
257
252
 
258
- function __wbg_adapter_244(arg0, arg1, arg2, arg3) {
259
- wasm.closure1817_externref_shim(arg0, arg1, arg2, arg3);
253
+ function __wbg_adapter_212(arg0, arg1, arg2, arg3) {
254
+ wasm.closure1836_externref_shim(arg0, arg1, arg2, arg3);
260
255
  }
261
256
 
262
257
  const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
@@ -272,7 +267,7 @@ const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined'
272
267
  * A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
273
268
  * Represents the result of an authorization request.
274
269
  */
275
- export class AuthorizeResult {
270
+ class AuthorizeResult {
276
271
 
277
272
  static __wrap(ptr) {
278
273
  ptr = ptr >>> 0;
@@ -408,6 +403,9 @@ export class AuthorizeResult {
408
403
  return ret === 0 ? undefined : AuthorizeResultResponse.__wrap(ret);
409
404
  }
410
405
  }
406
+ if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
407
+
408
+ exports.AuthorizeResult = AuthorizeResult;
411
409
 
412
410
  const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
413
411
  ? { register: () => {}, unregister: () => {} }
@@ -416,7 +414,7 @@ const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'un
416
414
  * A WASM wrapper for the Rust `cedar_policy::Response` struct.
417
415
  * Represents the result of an authorization request.
418
416
  */
419
- export class AuthorizeResultResponse {
417
+ class AuthorizeResultResponse {
420
418
 
421
419
  static __wrap(ptr) {
422
420
  ptr = ptr >>> 0;
@@ -454,6 +452,9 @@ export class AuthorizeResultResponse {
454
452
  return Diagnostics.__wrap(ret);
455
453
  }
456
454
  }
455
+ if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
456
+
457
+ exports.AuthorizeResultResponse = AuthorizeResultResponse;
457
458
 
458
459
  const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
459
460
  ? { register: () => {}, unregister: () => {} }
@@ -461,7 +462,7 @@ const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
461
462
  /**
462
463
  * The instance of the Cedarling application.
463
464
  */
464
- export class Cedarling {
465
+ class Cedarling {
465
466
 
466
467
  static __wrap(ptr) {
467
468
  ptr = ptr >>> 0;
@@ -622,6 +623,9 @@ export class Cedarling {
622
623
  return ret;
623
624
  }
624
625
  }
626
+ if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
627
+
628
+ exports.Cedarling = Cedarling;
625
629
 
626
630
  const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
627
631
  ? { register: () => {}, unregister: () => {} }
@@ -632,7 +636,7 @@ const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
632
636
  *
633
637
  * Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
634
638
  */
635
- export class Diagnostics {
639
+ class Diagnostics {
636
640
 
637
641
  static __wrap(ptr) {
638
642
  ptr = ptr >>> 0;
@@ -678,12 +682,15 @@ export class Diagnostics {
678
682
  return v1;
679
683
  }
680
684
  }
685
+ if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
686
+
687
+ exports.Diagnostics = Diagnostics;
681
688
 
682
689
  const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
683
690
  ? { register: () => {}, unregister: () => {} }
684
691
  : new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
685
692
 
686
- export class JsJsonLogic {
693
+ class JsJsonLogic {
687
694
 
688
695
  __destroy_into_raw() {
689
696
  const ptr = this.__wbg_ptr;
@@ -715,6 +722,9 @@ export class JsJsonLogic {
715
722
  return takeFromExternrefTable0(ret[0]);
716
723
  }
717
724
  }
725
+ if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
726
+
727
+ exports.JsJsonLogic = JsJsonLogic;
718
728
 
719
729
  const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
720
730
  ? { register: () => {}, unregister: () => {} }
@@ -725,7 +735,7 @@ const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'unde
725
735
  *
726
736
  * Represents an error that occurred when evaluating a Cedar policy.
727
737
  */
728
- export class PolicyEvaluationError {
738
+ class PolicyEvaluationError {
729
739
 
730
740
  static __wrap(ptr) {
731
741
  ptr = ptr >>> 0;
@@ -779,651 +789,667 @@ export class PolicyEvaluationError {
779
789
  }
780
790
  }
781
791
  }
792
+ if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
782
793
 
783
- const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
794
+ exports.PolicyEvaluationError = PolicyEvaluationError;
784
795
 
785
- async function __wbg_load(module, imports) {
786
- if (typeof Response === 'function' && module instanceof Response) {
787
- if (typeof WebAssembly.instantiateStreaming === 'function') {
788
- try {
789
- return await WebAssembly.instantiateStreaming(module, imports);
796
+ exports.__wbg_Error_e17e777aac105295 = function(arg0, arg1) {
797
+ const ret = Error(getStringFromWasm0(arg0, arg1));
798
+ return ret;
799
+ };
800
+
801
+ exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
802
+ const ret = String(arg1);
803
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
804
+ const len1 = WASM_VECTOR_LEN;
805
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
806
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
807
+ };
808
+
809
+ exports.__wbg_abort_67e1b49bf6614565 = function(arg0) {
810
+ arg0.abort();
811
+ };
812
+
813
+ exports.__wbg_abort_d830bf2e9aa6ec5b = function(arg0, arg1) {
814
+ arg0.abort(arg1);
815
+ };
816
+
817
+ exports.__wbg_append_72a3c0addd2bce38 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
818
+ arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
819
+ }, arguments) };
820
+
821
+ exports.__wbg_arrayBuffer_9c99b8e2809e8cbb = function() { return handleError(function (arg0) {
822
+ const ret = arg0.arrayBuffer();
823
+ return ret;
824
+ }, arguments) };
790
825
 
791
- } catch (e) {
792
- const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
826
+ exports.__wbg_authorizeresult_new = function(arg0) {
827
+ const ret = AuthorizeResult.__wrap(arg0);
828
+ return ret;
829
+ };
793
830
 
794
- if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
795
- 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);
831
+ exports.__wbg_call_13410aac570ffff7 = function() { return handleError(function (arg0, arg1) {
832
+ const ret = arg0.call(arg1);
833
+ return ret;
834
+ }, arguments) };
796
835
 
797
- } else {
798
- throw e;
799
- }
800
- }
801
- }
836
+ exports.__wbg_call_a5400b25a865cfd8 = function() { return handleError(function (arg0, arg1, arg2) {
837
+ const ret = arg0.call(arg1, arg2);
838
+ return ret;
839
+ }, arguments) };
802
840
 
803
- const bytes = await module.arrayBuffer();
804
- return await WebAssembly.instantiate(bytes, imports);
841
+ exports.__wbg_cedarling_new = function(arg0) {
842
+ const ret = Cedarling.__wrap(arg0);
843
+ return ret;
844
+ };
805
845
 
806
- } else {
807
- const instance = await WebAssembly.instantiate(module, imports);
846
+ exports.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
847
+ const ret = clearTimeout(arg0);
848
+ return ret;
849
+ };
808
850
 
809
- if (instance instanceof WebAssembly.Instance) {
810
- return { instance, module };
851
+ exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
852
+ const ret = arg0.crypto;
853
+ return ret;
854
+ };
811
855
 
812
- } else {
813
- return instance;
814
- }
815
- }
816
- }
856
+ exports.__wbg_debug_3bc8bd5a0fc361c6 = function(arg0) {
857
+ console.debug(...arg0);
858
+ };
817
859
 
818
- function __wbg_get_imports() {
819
- const imports = {};
820
- imports.wbg = {};
821
- imports.wbg.__wbg_Error_0497d5bdba9362e5 = function(arg0, arg1) {
822
- const ret = Error(getStringFromWasm0(arg0, arg1));
823
- return ret;
824
- };
825
- imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
826
- const ret = String(arg1);
827
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
828
- const len1 = WASM_VECTOR_LEN;
829
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
830
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
831
- };
832
- imports.wbg.__wbg_abort_18ba44d46e13d7fe = function(arg0) {
833
- arg0.abort();
834
- };
835
- imports.wbg.__wbg_abort_4198a1129c47f21a = function(arg0, arg1) {
836
- arg0.abort(arg1);
837
- };
838
- imports.wbg.__wbg_append_0342728346e47425 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
839
- arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
840
- }, arguments) };
841
- imports.wbg.__wbg_arrayBuffer_d58b858456021d7f = function() { return handleError(function (arg0) {
842
- const ret = arg0.arrayBuffer();
843
- return ret;
844
- }, arguments) };
845
- imports.wbg.__wbg_authorizeresult_new = function(arg0) {
846
- const ret = AuthorizeResult.__wrap(arg0);
847
- return ret;
848
- };
849
- imports.wbg.__wbg_buffer_a1a27a0dfa70165d = function(arg0) {
850
- const ret = arg0.buffer;
851
- return ret;
852
- };
853
- imports.wbg.__wbg_call_f2db6205e5c51dc8 = function() { return handleError(function (arg0, arg1, arg2) {
854
- const ret = arg0.call(arg1, arg2);
855
- return ret;
856
- }, arguments) };
857
- imports.wbg.__wbg_call_fbe8be8bf6436ce5 = function() { return handleError(function (arg0, arg1) {
858
- const ret = arg0.call(arg1);
859
- return ret;
860
- }, arguments) };
861
- imports.wbg.__wbg_cedarling_new = function(arg0) {
862
- const ret = Cedarling.__wrap(arg0);
863
- return ret;
864
- };
865
- imports.wbg.__wbg_clearTimeout_6222fede17abcb1a = function(arg0) {
866
- const ret = clearTimeout(arg0);
867
- return ret;
868
- };
869
- imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
870
- const ret = arg0.crypto;
871
- return ret;
872
- };
873
- imports.wbg.__wbg_debug_d6b79b0bf4da29c2 = function(arg0) {
874
- console.debug(...arg0);
875
- };
876
- imports.wbg.__wbg_done_4d01f352bade43b7 = function(arg0) {
877
- const ret = arg0.done;
878
- return ret;
879
- };
880
- imports.wbg.__wbg_entries_41651c850143b957 = function(arg0) {
881
- const ret = Object.entries(arg0);
882
- return ret;
883
- };
884
- imports.wbg.__wbg_entries_c951fa14164704e7 = function(arg0) {
885
- const ret = arg0.entries();
886
- return ret;
887
- };
888
- imports.wbg.__wbg_error_5cb390bc4013f9d1 = function(arg0) {
889
- console.error(...arg0);
890
- };
891
- imports.wbg.__wbg_fetch_a8e43a4e138dfc93 = function(arg0, arg1) {
892
- const ret = arg0.fetch(arg1);
893
- return ret;
894
- };
895
- imports.wbg.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
896
- const ret = fetch(arg0);
897
- return ret;
898
- };
899
- imports.wbg.__wbg_fromEntries_91e19ec7b6783aeb = function() { return handleError(function (arg0) {
900
- const ret = Object.fromEntries(arg0);
901
- return ret;
902
- }, arguments) };
903
- imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
904
- arg0.getRandomValues(arg1);
905
- }, arguments) };
906
- imports.wbg.__wbg_getTime_2afe67905d873e92 = function(arg0) {
907
- const ret = arg0.getTime();
908
- return ret;
909
- };
910
- imports.wbg.__wbg_getTimezoneOffset_31f33c0868da345e = function(arg0) {
911
- const ret = arg0.getTimezoneOffset();
912
- return ret;
913
- };
914
- imports.wbg.__wbg_get_92470be87867c2e5 = function() { return handleError(function (arg0, arg1) {
915
- const ret = Reflect.get(arg0, arg1);
916
- return ret;
917
- }, arguments) };
918
- imports.wbg.__wbg_get_a131a44bd1eb6979 = function(arg0, arg1) {
919
- const ret = arg0[arg1 >>> 0];
920
- return ret;
921
- };
922
- imports.wbg.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
923
- const ret = arg0[arg1];
924
- return ret;
925
- };
926
- imports.wbg.__wbg_has_809e438ee9d787a7 = function() { return handleError(function (arg0, arg1) {
927
- const ret = Reflect.has(arg0, arg1);
928
- return ret;
929
- }, arguments) };
930
- imports.wbg.__wbg_headers_0f0cbdc6290b6780 = function(arg0) {
931
- const ret = arg0.headers;
932
- return ret;
933
- };
934
- imports.wbg.__wbg_info_6bba09377e5a3490 = function(arg0) {
935
- console.info(...arg0);
936
- };
937
- imports.wbg.__wbg_instanceof_ArrayBuffer_a8b6f580b363f2bc = function(arg0) {
938
- let result;
939
- try {
940
- result = arg0 instanceof ArrayBuffer;
941
- } catch (_) {
942
- result = false;
943
- }
944
- const ret = result;
945
- return ret;
946
- };
947
- imports.wbg.__wbg_instanceof_Array_b740b533930f065b = function(arg0) {
948
- let result;
949
- try {
950
- result = arg0 instanceof Array;
951
- } catch (_) {
952
- result = false;
953
- }
954
- const ret = result;
955
- return ret;
956
- };
957
- imports.wbg.__wbg_instanceof_Map_80cc65041c96417a = function(arg0) {
958
- let result;
959
- try {
960
- result = arg0 instanceof Map;
961
- } catch (_) {
962
- result = false;
963
- }
964
- const ret = result;
965
- return ret;
966
- };
967
- imports.wbg.__wbg_instanceof_Response_e80ce8b7a2b968d2 = function(arg0) {
968
- let result;
969
- try {
970
- result = arg0 instanceof Response;
971
- } catch (_) {
972
- result = false;
973
- }
974
- const ret = result;
975
- return ret;
976
- };
977
- imports.wbg.__wbg_instanceof_Uint8Array_ca460677bc155827 = function(arg0) {
978
- let result;
979
- try {
980
- result = arg0 instanceof Uint8Array;
981
- } catch (_) {
982
- result = false;
983
- }
984
- const ret = result;
985
- return ret;
986
- };
987
- imports.wbg.__wbg_isArray_5f090bed72bd4f89 = function(arg0) {
988
- const ret = Array.isArray(arg0);
989
- return ret;
990
- };
991
- imports.wbg.__wbg_isSafeInteger_90d7c4674047d684 = function(arg0) {
992
- const ret = Number.isSafeInteger(arg0);
993
- return ret;
994
- };
995
- imports.wbg.__wbg_iterator_4068add5b2aef7a6 = function() {
996
- const ret = Symbol.iterator;
997
- return ret;
998
- };
999
- imports.wbg.__wbg_keys_42062809bf87339e = function(arg0) {
1000
- const ret = Object.keys(arg0);
1001
- return ret;
1002
- };
1003
- imports.wbg.__wbg_length_ab6d22b5ead75c72 = function(arg0) {
1004
- const ret = arg0.length;
1005
- return ret;
1006
- };
1007
- imports.wbg.__wbg_length_f00ec12454a5d9fd = function(arg0) {
1008
- const ret = arg0.length;
1009
- return ret;
1010
- };
1011
- imports.wbg.__wbg_log_7e417898f19eba17 = function(arg0) {
1012
- console.log(...arg0);
1013
- };
1014
- imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1015
- const ret = arg0.msCrypto;
1016
- return ret;
1017
- };
1018
- imports.wbg.__wbg_new0_97314565408dea38 = function() {
1019
- const ret = new Date();
1020
- return ret;
1021
- };
1022
- imports.wbg.__wbg_new_07b483f72211fd66 = function() {
1023
- const ret = new Object();
1024
- return ret;
1025
- };
1026
- imports.wbg.__wbg_new_186abcfdff244e42 = function() { return handleError(function () {
1027
- const ret = new AbortController();
1028
- return ret;
1029
- }, arguments) };
1030
- imports.wbg.__wbg_new_4796e1cd2eb9ea6d = function() { return handleError(function () {
1031
- const ret = new Headers();
1032
- return ret;
1033
- }, arguments) };
1034
- imports.wbg.__wbg_new_58353953ad2097cc = function() {
1035
- const ret = new Array();
1036
- return ret;
1037
- };
1038
- imports.wbg.__wbg_new_a2957aa5684de228 = function(arg0) {
1039
- const ret = new Date(arg0);
1040
- return ret;
1041
- };
1042
- imports.wbg.__wbg_new_a979b4b45bd55c7f = function() {
1043
- const ret = new Map();
1044
- return ret;
1045
- };
1046
- imports.wbg.__wbg_new_e30c39c06edaabf2 = function(arg0, arg1) {
1047
- try {
1048
- var state0 = {a: arg0, b: arg1};
1049
- var cb0 = (arg0, arg1) => {
1050
- const a = state0.a;
1051
- state0.a = 0;
1052
- try {
1053
- return __wbg_adapter_244(a, state0.b, arg0, arg1);
1054
- } finally {
1055
- state0.a = a;
1056
- }
1057
- };
1058
- const ret = new Promise(cb0);
1059
- return ret;
1060
- } finally {
1061
- state0.a = state0.b = 0;
1062
- }
1063
- };
1064
- imports.wbg.__wbg_new_e52b3efaaa774f96 = function(arg0) {
1065
- const ret = new Uint8Array(arg0);
1066
- return ret;
1067
- };
1068
- imports.wbg.__wbg_newfromslice_7c05ab1297cb2d88 = function(arg0, arg1) {
1069
- const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1070
- return ret;
1071
- };
1072
- imports.wbg.__wbg_newnoargs_ff528e72d35de39a = function(arg0, arg1) {
1073
- const ret = new Function(getStringFromWasm0(arg0, arg1));
1074
- return ret;
1075
- };
1076
- imports.wbg.__wbg_newwithargs_17a05078fc85d3aa = function(arg0, arg1, arg2, arg3) {
1077
- const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1078
- return ret;
1079
- };
1080
- imports.wbg.__wbg_newwithbyteoffsetandlength_3b01ecda099177e8 = function(arg0, arg1, arg2) {
1081
- const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
1082
- return ret;
1083
- };
1084
- imports.wbg.__wbg_newwithlength_08f872dc1e3ada2e = function(arg0) {
1085
- const ret = new Uint8Array(arg0 >>> 0);
1086
- return ret;
1087
- };
1088
- imports.wbg.__wbg_newwithstrandinit_f8a9dbe009d6be37 = function() { return handleError(function (arg0, arg1, arg2) {
1089
- const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1090
- return ret;
1091
- }, arguments) };
1092
- imports.wbg.__wbg_next_8bb824d217961b5d = function(arg0) {
1093
- const ret = arg0.next;
1094
- return ret;
1095
- };
1096
- imports.wbg.__wbg_next_e2da48d8fff7439a = function() { return handleError(function (arg0) {
1097
- const ret = arg0.next();
1098
- return ret;
1099
- }, arguments) };
1100
- imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
1101
- const ret = arg0.node;
1102
- return ret;
1103
- };
1104
- imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
1105
- const ret = PolicyEvaluationError.__wrap(arg0);
1106
- return ret;
1107
- };
1108
- imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1109
- const ret = arg0.process;
1110
- return ret;
1111
- };
1112
- imports.wbg.__wbg_push_73fd7b5550ebf707 = function(arg0, arg1) {
1113
- const ret = arg0.push(arg1);
1114
- return ret;
1115
- };
1116
- imports.wbg.__wbg_queueMicrotask_46c1df247678729f = function(arg0) {
1117
- queueMicrotask(arg0);
1118
- };
1119
- imports.wbg.__wbg_queueMicrotask_8acf3ccb75ed8d11 = function(arg0) {
1120
- const ret = arg0.queueMicrotask;
1121
- return ret;
1122
- };
1123
- imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1124
- arg0.randomFillSync(arg1);
1125
- }, arguments) };
1126
- imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1127
- const ret = module.require;
1128
- return ret;
1129
- }, arguments) };
1130
- imports.wbg.__wbg_resolve_0dac8c580ffd4678 = function(arg0) {
1131
- const ret = Promise.resolve(arg0);
1132
- return ret;
1133
- };
1134
- imports.wbg.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1135
- const ret = setTimeout(arg0, arg1);
1136
- return ret;
1137
- };
1138
- imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1139
- arg0[arg1] = arg2;
1140
- };
1141
- imports.wbg.__wbg_set_7422acbe992d64ab = function(arg0, arg1, arg2) {
1142
- arg0[arg1 >>> 0] = arg2;
1143
- };
1144
- imports.wbg.__wbg_set_c43293f93a35998a = function() { return handleError(function (arg0, arg1, arg2) {
1145
- const ret = Reflect.set(arg0, arg1, arg2);
1146
- return ret;
1147
- }, arguments) };
1148
- imports.wbg.__wbg_set_d6bdfd275fb8a4ce = function(arg0, arg1, arg2) {
1149
- const ret = arg0.set(arg1, arg2);
1150
- return ret;
1151
- };
1152
- imports.wbg.__wbg_set_fe4e79d1ed3b0e9b = function(arg0, arg1, arg2) {
1153
- arg0.set(arg1, arg2 >>> 0);
1154
- };
1155
- imports.wbg.__wbg_setbody_971ec015fc13d6b4 = function(arg0, arg1) {
1156
- arg0.body = arg1;
1157
- };
1158
- imports.wbg.__wbg_setcache_a94cd14dc0cc72a2 = function(arg0, arg1) {
1159
- arg0.cache = __wbindgen_enum_RequestCache[arg1];
1160
- };
1161
- imports.wbg.__wbg_setcredentials_920d91fb5984c94a = function(arg0, arg1) {
1162
- arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1163
- };
1164
- imports.wbg.__wbg_setheaders_65a4eb4c0443ae61 = function(arg0, arg1) {
1165
- arg0.headers = arg1;
1166
- };
1167
- imports.wbg.__wbg_setmethod_8ce1be0b4d701b7c = function(arg0, arg1, arg2) {
1168
- arg0.method = getStringFromWasm0(arg1, arg2);
1169
- };
1170
- imports.wbg.__wbg_setmode_bd35f026f55b6247 = function(arg0, arg1) {
1171
- arg0.mode = __wbindgen_enum_RequestMode[arg1];
1172
- };
1173
- imports.wbg.__wbg_setsignal_8e72abfe7ee03c97 = function(arg0, arg1) {
1174
- arg0.signal = arg1;
1175
- };
1176
- imports.wbg.__wbg_signal_b96223519a041faa = function(arg0) {
1177
- const ret = arg0.signal;
1178
- return ret;
1179
- };
1180
- imports.wbg.__wbg_static_accessor_GLOBAL_487c52c58d65314d = function() {
1181
- const ret = typeof global === 'undefined' ? null : global;
1182
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1183
- };
1184
- imports.wbg.__wbg_static_accessor_GLOBAL_THIS_ee9704f328b6b291 = function() {
1185
- const ret = typeof globalThis === 'undefined' ? null : globalThis;
1186
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1187
- };
1188
- imports.wbg.__wbg_static_accessor_SELF_78c9e3071b912620 = function() {
1189
- const ret = typeof self === 'undefined' ? null : self;
1190
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1191
- };
1192
- imports.wbg.__wbg_static_accessor_WINDOW_a093d21393777366 = function() {
1193
- const ret = typeof window === 'undefined' ? null : window;
1194
- return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1195
- };
1196
- imports.wbg.__wbg_status_a54682bbe52f9058 = function(arg0) {
1197
- const ret = arg0.status;
1198
- return ret;
1199
- };
1200
- imports.wbg.__wbg_stringify_c242842b97f054cc = function() { return handleError(function (arg0) {
1201
- const ret = JSON.stringify(arg0);
1202
- return ret;
1203
- }, arguments) };
1204
- imports.wbg.__wbg_subarray_dd4ade7d53bd8e26 = function(arg0, arg1, arg2) {
1205
- const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1206
- return ret;
1207
- };
1208
- imports.wbg.__wbg_text_ec0e22f60e30dd2f = function() { return handleError(function (arg0) {
1209
- const ret = arg0.text();
1210
- return ret;
1211
- }, arguments) };
1212
- imports.wbg.__wbg_then_82ab9fb4080f1707 = function(arg0, arg1, arg2) {
1213
- const ret = arg0.then(arg1, arg2);
1214
- return ret;
1215
- };
1216
- imports.wbg.__wbg_then_db882932c0c714c6 = function(arg0, arg1) {
1217
- const ret = arg0.then(arg1);
1218
- return ret;
1219
- };
1220
- imports.wbg.__wbg_trace_f1ea3a49486fac2c = function(arg0) {
1221
- console.trace(...arg0);
1222
- };
1223
- imports.wbg.__wbg_url_e6ed869ea05b7a71 = function(arg0, arg1) {
1224
- const ret = arg1.url;
1225
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1226
- const len1 = WASM_VECTOR_LEN;
1227
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1228
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1229
- };
1230
- imports.wbg.__wbg_value_17b896954e14f896 = function(arg0) {
1231
- const ret = arg0.value;
1232
- return ret;
1233
- };
1234
- imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1235
- const ret = arg0.versions;
1236
- return ret;
1237
- };
1238
- imports.wbg.__wbg_warn_c6a0f82186237bfa = function(arg0) {
1239
- console.warn(...arg0);
1240
- };
1241
- imports.wbg.__wbindgen_bigint_from_i64 = function(arg0) {
1242
- const ret = arg0;
1243
- return ret;
1244
- };
1245
- imports.wbg.__wbindgen_bigint_from_u64 = function(arg0) {
1246
- const ret = BigInt.asUintN(64, arg0);
1247
- return ret;
1248
- };
1249
- imports.wbg.__wbindgen_bigint_get_as_i64 = function(arg0, arg1) {
1250
- const v = arg1;
1251
- const ret = typeof(v) === 'bigint' ? v : undefined;
1252
- getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1253
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1254
- };
1255
- imports.wbg.__wbindgen_boolean_get = function(arg0) {
1256
- const v = arg0;
1257
- const ret = typeof(v) === 'boolean' ? (v ? 1 : 0) : 2;
1258
- return ret;
1259
- };
1260
- imports.wbg.__wbindgen_cb_drop = function(arg0) {
1261
- const obj = arg0.original;
1262
- if (obj.cnt-- == 1) {
1263
- obj.a = 0;
1264
- return true;
1265
- }
1266
- const ret = false;
1267
- return ret;
1268
- };
1269
- imports.wbg.__wbindgen_closure_wrapper3929 = function(arg0, arg1, arg2) {
1270
- const ret = makeMutClosure(arg0, arg1, 497, __wbg_adapter_48);
1271
- return ret;
1272
- };
1273
- imports.wbg.__wbindgen_closure_wrapper4078 = function(arg0, arg1, arg2) {
1274
- const ret = makeMutClosure(arg0, arg1, 541, __wbg_adapter_51);
1275
- return ret;
1276
- };
1277
- imports.wbg.__wbindgen_debug_string = function(arg0, arg1) {
1278
- const ret = debugString(arg1);
1279
- const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1280
- const len1 = WASM_VECTOR_LEN;
1281
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1282
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1283
- };
1284
- imports.wbg.__wbindgen_in = function(arg0, arg1) {
1285
- const ret = arg0 in arg1;
1286
- return ret;
1287
- };
1288
- imports.wbg.__wbindgen_init_externref_table = function() {
1289
- const table = wasm.__wbindgen_export_4;
1290
- const offset = table.grow(4);
1291
- table.set(0, undefined);
1292
- table.set(offset + 0, undefined);
1293
- table.set(offset + 1, null);
1294
- table.set(offset + 2, true);
1295
- table.set(offset + 3, false);
1296
- ;
1297
- };
1298
- imports.wbg.__wbindgen_is_bigint = function(arg0) {
1299
- const ret = typeof(arg0) === 'bigint';
1300
- return ret;
1301
- };
1302
- imports.wbg.__wbindgen_is_function = function(arg0) {
1303
- const ret = typeof(arg0) === 'function';
1304
- return ret;
1305
- };
1306
- imports.wbg.__wbindgen_is_object = function(arg0) {
1307
- const val = arg0;
1308
- const ret = typeof(val) === 'object' && val !== null;
1309
- return ret;
1310
- };
1311
- imports.wbg.__wbindgen_is_string = function(arg0) {
1312
- const ret = typeof(arg0) === 'string';
1313
- return ret;
1314
- };
1315
- imports.wbg.__wbindgen_is_undefined = function(arg0) {
1316
- const ret = arg0 === undefined;
1317
- return ret;
1318
- };
1319
- imports.wbg.__wbindgen_jsval_eq = function(arg0, arg1) {
1320
- const ret = arg0 === arg1;
1321
- return ret;
1322
- };
1323
- imports.wbg.__wbindgen_jsval_loose_eq = function(arg0, arg1) {
1324
- const ret = arg0 == arg1;
1325
- return ret;
1326
- };
1327
- imports.wbg.__wbindgen_memory = function() {
1328
- const ret = wasm.memory;
1329
- return ret;
1330
- };
1331
- imports.wbg.__wbindgen_number_get = function(arg0, arg1) {
1332
- const obj = arg1;
1333
- const ret = typeof(obj) === 'number' ? obj : undefined;
1334
- getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1335
- getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1336
- };
1337
- imports.wbg.__wbindgen_number_new = function(arg0) {
1338
- const ret = arg0;
1339
- return ret;
1340
- };
1341
- imports.wbg.__wbindgen_string_get = function(arg0, arg1) {
1342
- const obj = arg1;
1343
- const ret = typeof(obj) === 'string' ? obj : undefined;
1344
- var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1345
- var len1 = WASM_VECTOR_LEN;
1346
- getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1347
- getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1348
- };
1349
- imports.wbg.__wbindgen_string_new = function(arg0, arg1) {
1350
- const ret = getStringFromWasm0(arg0, arg1);
1351
- return ret;
1352
- };
1353
- imports.wbg.__wbindgen_throw = function(arg0, arg1) {
1354
- throw new Error(getStringFromWasm0(arg0, arg1));
1355
- };
860
+ exports.__wbg_done_75ed0ee6dd243d9d = function(arg0) {
861
+ const ret = arg0.done;
862
+ return ret;
863
+ };
1356
864
 
1357
- return imports;
1358
- }
865
+ exports.__wbg_entries_2be2f15bd5554996 = function(arg0) {
866
+ const ret = Object.entries(arg0);
867
+ return ret;
868
+ };
1359
869
 
1360
- function __wbg_init_memory(imports, memory) {
870
+ exports.__wbg_entries_7a842f4caac72cb9 = function(arg0) {
871
+ const ret = arg0.entries();
872
+ return ret;
873
+ };
1361
874
 
1362
- }
875
+ exports.__wbg_error_3e65ef00ce5a8b19 = function(arg0) {
876
+ console.error(...arg0);
877
+ };
1363
878
 
1364
- function __wbg_finalize_init(instance, module) {
1365
- wasm = instance.exports;
1366
- __wbg_init.__wbindgen_wasm_module = module;
1367
- cachedDataViewMemory0 = null;
1368
- cachedUint8ArrayMemory0 = null;
879
+ exports.__wbg_fetch_87aed7f306ec6d63 = function(arg0, arg1) {
880
+ const ret = arg0.fetch(arg1);
881
+ return ret;
882
+ };
1369
883
 
884
+ exports.__wbg_fetch_f156d10be9a5c88a = function(arg0) {
885
+ const ret = fetch(arg0);
886
+ return ret;
887
+ };
1370
888
 
1371
- wasm.__wbindgen_start();
1372
- return wasm;
1373
- }
889
+ exports.__wbg_fromEntries_90d06c670ebbfb45 = function() { return handleError(function (arg0) {
890
+ const ret = Object.fromEntries(arg0);
891
+ return ret;
892
+ }, arguments) };
1374
893
 
1375
- function initSync(module) {
1376
- if (wasm !== undefined) return wasm;
894
+ exports.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
895
+ arg0.getRandomValues(arg1);
896
+ }, arguments) };
1377
897
 
898
+ exports.__wbg_getTime_6bb3f64e0f18f817 = function(arg0) {
899
+ const ret = arg0.getTime();
900
+ return ret;
901
+ };
1378
902
 
1379
- if (typeof module !== 'undefined') {
1380
- if (Object.getPrototypeOf(module) === Object.prototype) {
1381
- ({module} = module)
1382
- } else {
1383
- console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
1384
- }
1385
- }
903
+ exports.__wbg_getTimezoneOffset_1e3ddc1382e7c8b0 = function(arg0) {
904
+ const ret = arg0.getTimezoneOffset();
905
+ return ret;
906
+ };
1386
907
 
1387
- const imports = __wbg_get_imports();
908
+ exports.__wbg_get_0da715ceaecea5c8 = function(arg0, arg1) {
909
+ const ret = arg0[arg1 >>> 0];
910
+ return ret;
911
+ };
1388
912
 
1389
- __wbg_init_memory(imports);
913
+ exports.__wbg_get_458e874b43b18b25 = function() { return handleError(function (arg0, arg1) {
914
+ const ret = Reflect.get(arg0, arg1);
915
+ return ret;
916
+ }, arguments) };
1390
917
 
1391
- if (!(module instanceof WebAssembly.Module)) {
1392
- module = new WebAssembly.Module(module);
1393
- }
918
+ exports.__wbg_getwithrefkey_1dc361bd10053bfe = function(arg0, arg1) {
919
+ const ret = arg0[arg1];
920
+ return ret;
921
+ };
1394
922
 
1395
- const instance = new WebAssembly.Instance(module, imports);
923
+ exports.__wbg_has_b89e451f638123e3 = function() { return handleError(function (arg0, arg1) {
924
+ const ret = Reflect.has(arg0, arg1);
925
+ return ret;
926
+ }, arguments) };
1396
927
 
1397
- return __wbg_finalize_init(instance, module);
1398
- }
928
+ exports.__wbg_headers_29fec3c72865cd75 = function(arg0) {
929
+ const ret = arg0.headers;
930
+ return ret;
931
+ };
1399
932
 
1400
- async function __wbg_init(module_or_path) {
1401
- if (wasm !== undefined) return wasm;
933
+ exports.__wbg_info_8fdedfc14c52e0d2 = function(arg0) {
934
+ console.info(...arg0);
935
+ };
1402
936
 
937
+ exports.__wbg_instanceof_ArrayBuffer_67f3012529f6a2dd = function(arg0) {
938
+ let result;
939
+ try {
940
+ result = arg0 instanceof ArrayBuffer;
941
+ } catch (_) {
942
+ result = false;
943
+ }
944
+ const ret = result;
945
+ return ret;
946
+ };
1403
947
 
1404
- if (typeof module_or_path !== 'undefined') {
1405
- if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
1406
- ({module_or_path} = module_or_path)
1407
- } else {
1408
- console.warn('using deprecated parameters for the initialization function; pass a single object instead')
1409
- }
948
+ exports.__wbg_instanceof_Array_0b7383f4189e69c2 = function(arg0) {
949
+ let result;
950
+ try {
951
+ result = arg0 instanceof Array;
952
+ } catch (_) {
953
+ result = false;
1410
954
  }
955
+ const ret = result;
956
+ return ret;
957
+ };
1411
958
 
1412
- if (typeof module_or_path === 'undefined') {
1413
- module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
959
+ exports.__wbg_instanceof_Map_ebb01a5b6b5ffd0b = function(arg0) {
960
+ let result;
961
+ try {
962
+ result = arg0 instanceof Map;
963
+ } catch (_) {
964
+ result = false;
1414
965
  }
1415
- const imports = __wbg_get_imports();
966
+ const ret = result;
967
+ return ret;
968
+ };
969
+
970
+ exports.__wbg_instanceof_Response_50fde2cd696850bf = function(arg0) {
971
+ let result;
972
+ try {
973
+ result = arg0 instanceof Response;
974
+ } catch (_) {
975
+ result = false;
976
+ }
977
+ const ret = result;
978
+ return ret;
979
+ };
1416
980
 
1417
- if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
1418
- module_or_path = fetch(module_or_path);
981
+ exports.__wbg_instanceof_Uint8Array_9a8378d955933db7 = function(arg0) {
982
+ let result;
983
+ try {
984
+ result = arg0 instanceof Uint8Array;
985
+ } catch (_) {
986
+ result = false;
1419
987
  }
988
+ const ret = result;
989
+ return ret;
990
+ };
1420
991
 
1421
- __wbg_init_memory(imports);
992
+ exports.__wbg_isArray_030cce220591fb41 = function(arg0) {
993
+ const ret = Array.isArray(arg0);
994
+ return ret;
995
+ };
1422
996
 
1423
- const { instance, module } = await __wbg_load(await module_or_path, imports);
997
+ exports.__wbg_isSafeInteger_1c0d1af5542e102a = function(arg0) {
998
+ const ret = Number.isSafeInteger(arg0);
999
+ return ret;
1000
+ };
1424
1001
 
1425
- return __wbg_finalize_init(instance, module);
1426
- }
1002
+ exports.__wbg_iterator_f370b34483c71a1c = function() {
1003
+ const ret = Symbol.iterator;
1004
+ return ret;
1005
+ };
1006
+
1007
+ exports.__wbg_keys_ef52390b2ae0e714 = function(arg0) {
1008
+ const ret = Object.keys(arg0);
1009
+ return ret;
1010
+ };
1011
+
1012
+ exports.__wbg_length_186546c51cd61acd = function(arg0) {
1013
+ const ret = arg0.length;
1014
+ return ret;
1015
+ };
1016
+
1017
+ exports.__wbg_length_6bb7e81f9d7713e4 = function(arg0) {
1018
+ const ret = arg0.length;
1019
+ return ret;
1020
+ };
1021
+
1022
+ exports.__wbg_log_77195989eb27ffe5 = function(arg0) {
1023
+ console.log(...arg0);
1024
+ };
1025
+
1026
+ exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
1027
+ const ret = arg0.msCrypto;
1028
+ return ret;
1029
+ };
1030
+
1031
+ exports.__wbg_new0_b0a0a38c201e6df5 = function() {
1032
+ const ret = new Date();
1033
+ return ret;
1034
+ };
1035
+
1036
+ exports.__wbg_new_19c25a3f2fa63a02 = function() {
1037
+ const ret = new Object();
1038
+ return ret;
1039
+ };
1040
+
1041
+ exports.__wbg_new_1f3a344cf3123716 = function() {
1042
+ const ret = new Array();
1043
+ return ret;
1044
+ };
1045
+
1046
+ exports.__wbg_new_2e3c58a15f39f5f9 = function(arg0, arg1) {
1047
+ try {
1048
+ var state0 = {a: arg0, b: arg1};
1049
+ var cb0 = (arg0, arg1) => {
1050
+ const a = state0.a;
1051
+ state0.a = 0;
1052
+ try {
1053
+ return __wbg_adapter_212(a, state0.b, arg0, arg1);
1054
+ } finally {
1055
+ state0.a = a;
1056
+ }
1057
+ };
1058
+ const ret = new Promise(cb0);
1059
+ return ret;
1060
+ } finally {
1061
+ state0.a = state0.b = 0;
1062
+ }
1063
+ };
1064
+
1065
+ exports.__wbg_new_2ff1f68f3676ea53 = function() {
1066
+ const ret = new Map();
1067
+ return ret;
1068
+ };
1069
+
1070
+ exports.__wbg_new_5a2ae4557f92b50e = function(arg0) {
1071
+ const ret = new Date(arg0);
1072
+ return ret;
1073
+ };
1074
+
1075
+ exports.__wbg_new_638ebfaedbf32a5e = function(arg0) {
1076
+ const ret = new Uint8Array(arg0);
1077
+ return ret;
1078
+ };
1079
+
1080
+ exports.__wbg_new_66b9434b4e59b63e = function() { return handleError(function () {
1081
+ const ret = new AbortController();
1082
+ return ret;
1083
+ }, arguments) };
1084
+
1085
+ exports.__wbg_new_f6e53210afea8e45 = function() { return handleError(function () {
1086
+ const ret = new Headers();
1087
+ return ret;
1088
+ }, arguments) };
1089
+
1090
+ exports.__wbg_newfromslice_074c56947bd43469 = function(arg0, arg1) {
1091
+ const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
1092
+ return ret;
1093
+ };
1094
+
1095
+ exports.__wbg_newnoargs_254190557c45b4ec = function(arg0, arg1) {
1096
+ const ret = new Function(getStringFromWasm0(arg0, arg1));
1097
+ return ret;
1098
+ };
1099
+
1100
+ exports.__wbg_newwithargs_b8065bb443501079 = function(arg0, arg1, arg2, arg3) {
1101
+ const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
1102
+ return ret;
1103
+ };
1104
+
1105
+ exports.__wbg_newwithlength_a167dcc7aaa3ba77 = function(arg0) {
1106
+ const ret = new Uint8Array(arg0 >>> 0);
1107
+ return ret;
1108
+ };
1109
+
1110
+ exports.__wbg_newwithstrandinit_b5d168a29a3fd85f = function() { return handleError(function (arg0, arg1, arg2) {
1111
+ const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
1112
+ return ret;
1113
+ }, arguments) };
1114
+
1115
+ exports.__wbg_next_5b3530e612fde77d = function(arg0) {
1116
+ const ret = arg0.next;
1117
+ return ret;
1118
+ };
1119
+
1120
+ exports.__wbg_next_692e82279131b03c = function() { return handleError(function (arg0) {
1121
+ const ret = arg0.next();
1122
+ return ret;
1123
+ }, arguments) };
1124
+
1125
+ exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
1126
+ const ret = arg0.node;
1127
+ return ret;
1128
+ };
1129
+
1130
+ exports.__wbg_policyevaluationerror_new = function(arg0) {
1131
+ const ret = PolicyEvaluationError.__wrap(arg0);
1132
+ return ret;
1133
+ };
1134
+
1135
+ exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
1136
+ const ret = arg0.process;
1137
+ return ret;
1138
+ };
1139
+
1140
+ exports.__wbg_prototypesetcall_3d4a26c1ed734349 = function(arg0, arg1, arg2) {
1141
+ Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
1142
+ };
1143
+
1144
+ exports.__wbg_push_330b2eb93e4e1212 = function(arg0, arg1) {
1145
+ const ret = arg0.push(arg1);
1146
+ return ret;
1147
+ };
1148
+
1149
+ exports.__wbg_queueMicrotask_25d0739ac89e8c88 = function(arg0) {
1150
+ queueMicrotask(arg0);
1151
+ };
1152
+
1153
+ exports.__wbg_queueMicrotask_4488407636f5bf24 = function(arg0) {
1154
+ const ret = arg0.queueMicrotask;
1155
+ return ret;
1156
+ };
1157
+
1158
+ exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
1159
+ arg0.randomFillSync(arg1);
1160
+ }, arguments) };
1161
+
1162
+ exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
1163
+ const ret = module.require;
1164
+ return ret;
1165
+ }, arguments) };
1166
+
1167
+ exports.__wbg_resolve_4055c623acdd6a1b = function(arg0) {
1168
+ const ret = Promise.resolve(arg0);
1169
+ return ret;
1170
+ };
1171
+
1172
+ exports.__wbg_setTimeout_2b339866a2aa3789 = function(arg0, arg1) {
1173
+ const ret = setTimeout(arg0, arg1);
1174
+ return ret;
1175
+ };
1176
+
1177
+ exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
1178
+ arg0[arg1] = arg2;
1179
+ };
1180
+
1181
+ exports.__wbg_set_453345bcda80b89a = function() { return handleError(function (arg0, arg1, arg2) {
1182
+ const ret = Reflect.set(arg0, arg1, arg2);
1183
+ return ret;
1184
+ }, arguments) };
1185
+
1186
+ exports.__wbg_set_90f6c0f7bd8c0415 = function(arg0, arg1, arg2) {
1187
+ arg0[arg1 >>> 0] = arg2;
1188
+ };
1189
+
1190
+ exports.__wbg_set_b7f1cf4fae26fe2a = function(arg0, arg1, arg2) {
1191
+ const ret = arg0.set(arg1, arg2);
1192
+ return ret;
1193
+ };
1194
+
1195
+ exports.__wbg_setbody_c8460bdf44147df8 = function(arg0, arg1) {
1196
+ arg0.body = arg1;
1197
+ };
1198
+
1199
+ exports.__wbg_setcache_90ca4ad8a8ad40d3 = function(arg0, arg1) {
1200
+ arg0.cache = __wbindgen_enum_RequestCache[arg1];
1201
+ };
1202
+
1203
+ exports.__wbg_setcredentials_9cd60d632c9d5dfc = function(arg0, arg1) {
1204
+ arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
1205
+ };
1206
+
1207
+ exports.__wbg_setheaders_0052283e2f3503d1 = function(arg0, arg1) {
1208
+ arg0.headers = arg1;
1209
+ };
1210
+
1211
+ exports.__wbg_setmethod_9b504d5b855b329c = function(arg0, arg1, arg2) {
1212
+ arg0.method = getStringFromWasm0(arg1, arg2);
1213
+ };
1214
+
1215
+ exports.__wbg_setmode_a23e1a2ad8b512f8 = function(arg0, arg1) {
1216
+ arg0.mode = __wbindgen_enum_RequestMode[arg1];
1217
+ };
1218
+
1219
+ exports.__wbg_setsignal_8c45ad1247a74809 = function(arg0, arg1) {
1220
+ arg0.signal = arg1;
1221
+ };
1222
+
1223
+ exports.__wbg_signal_da4d466ce86118b5 = function(arg0) {
1224
+ const ret = arg0.signal;
1225
+ return ret;
1226
+ };
1227
+
1228
+ exports.__wbg_static_accessor_GLOBAL_8921f820c2ce3f12 = function() {
1229
+ const ret = typeof global === 'undefined' ? null : global;
1230
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1231
+ };
1232
+
1233
+ exports.__wbg_static_accessor_GLOBAL_THIS_f0a4409105898184 = function() {
1234
+ const ret = typeof globalThis === 'undefined' ? null : globalThis;
1235
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1236
+ };
1237
+
1238
+ exports.__wbg_static_accessor_SELF_995b214ae681ff99 = function() {
1239
+ const ret = typeof self === 'undefined' ? null : self;
1240
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1241
+ };
1242
+
1243
+ exports.__wbg_static_accessor_WINDOW_cde3890479c675ea = function() {
1244
+ const ret = typeof window === 'undefined' ? null : window;
1245
+ return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
1246
+ };
1247
+
1248
+ exports.__wbg_status_3fea3036088621d6 = function(arg0) {
1249
+ const ret = arg0.status;
1250
+ return ret;
1251
+ };
1252
+
1253
+ exports.__wbg_stringify_b98c93d0a190446a = function() { return handleError(function (arg0) {
1254
+ const ret = JSON.stringify(arg0);
1255
+ return ret;
1256
+ }, arguments) };
1257
+
1258
+ exports.__wbg_subarray_70fd07feefe14294 = function(arg0, arg1, arg2) {
1259
+ const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
1260
+ return ret;
1261
+ };
1262
+
1263
+ exports.__wbg_text_0f69a215637b9b34 = function() { return handleError(function (arg0) {
1264
+ const ret = arg0.text();
1265
+ return ret;
1266
+ }, arguments) };
1267
+
1268
+ exports.__wbg_then_b33a773d723afa3e = function(arg0, arg1, arg2) {
1269
+ const ret = arg0.then(arg1, arg2);
1270
+ return ret;
1271
+ };
1272
+
1273
+ exports.__wbg_then_e22500defe16819f = function(arg0, arg1) {
1274
+ const ret = arg0.then(arg1);
1275
+ return ret;
1276
+ };
1277
+
1278
+ exports.__wbg_trace_fe562a020dec3e6f = function(arg0) {
1279
+ console.trace(...arg0);
1280
+ };
1281
+
1282
+ exports.__wbg_url_e5720dfacf77b05e = function(arg0, arg1) {
1283
+ const ret = arg1.url;
1284
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1285
+ const len1 = WASM_VECTOR_LEN;
1286
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1287
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1288
+ };
1289
+
1290
+ exports.__wbg_value_dd9372230531eade = function(arg0) {
1291
+ const ret = arg0.value;
1292
+ return ret;
1293
+ };
1294
+
1295
+ exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
1296
+ const ret = arg0.versions;
1297
+ return ret;
1298
+ };
1299
+
1300
+ exports.__wbg_warn_3e0e93af109bb736 = function(arg0) {
1301
+ console.warn(...arg0);
1302
+ };
1303
+
1304
+ exports.__wbg_wbindgenbigintgetasi64_ac743ece6ab9bba1 = function(arg0, arg1) {
1305
+ const v = arg1;
1306
+ const ret = typeof(v) === 'bigint' ? v : undefined;
1307
+ getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
1308
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1309
+ };
1310
+
1311
+ exports.__wbg_wbindgenbooleanget_3fe6f642c7d97746 = function(arg0) {
1312
+ const v = arg0;
1313
+ const ret = typeof(v) === 'boolean' ? v : undefined;
1314
+ return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
1315
+ };
1316
+
1317
+ exports.__wbg_wbindgencbdrop_eb10308566512b88 = function(arg0) {
1318
+ const obj = arg0.original;
1319
+ if (obj.cnt-- == 1) {
1320
+ obj.a = 0;
1321
+ return true;
1322
+ }
1323
+ const ret = false;
1324
+ return ret;
1325
+ };
1326
+
1327
+ exports.__wbg_wbindgendebugstring_99ef257a3ddda34d = function(arg0, arg1) {
1328
+ const ret = debugString(arg1);
1329
+ const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1330
+ const len1 = WASM_VECTOR_LEN;
1331
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1332
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1333
+ };
1334
+
1335
+ exports.__wbg_wbindgenin_d7a1ee10933d2d55 = function(arg0, arg1) {
1336
+ const ret = arg0 in arg1;
1337
+ return ret;
1338
+ };
1339
+
1340
+ exports.__wbg_wbindgenisbigint_ecb90cc08a5a9154 = function(arg0) {
1341
+ const ret = typeof(arg0) === 'bigint';
1342
+ return ret;
1343
+ };
1344
+
1345
+ exports.__wbg_wbindgenisfunction_8cee7dce3725ae74 = function(arg0) {
1346
+ const ret = typeof(arg0) === 'function';
1347
+ return ret;
1348
+ };
1349
+
1350
+ exports.__wbg_wbindgenisobject_307a53c6bd97fbf8 = function(arg0) {
1351
+ const val = arg0;
1352
+ const ret = typeof(val) === 'object' && val !== null;
1353
+ return ret;
1354
+ };
1355
+
1356
+ exports.__wbg_wbindgenisstring_d4fa939789f003b0 = function(arg0) {
1357
+ const ret = typeof(arg0) === 'string';
1358
+ return ret;
1359
+ };
1360
+
1361
+ exports.__wbg_wbindgenisundefined_c4b71d073b92f3c5 = function(arg0) {
1362
+ const ret = arg0 === undefined;
1363
+ return ret;
1364
+ };
1365
+
1366
+ exports.__wbg_wbindgenjsvaleq_e6f2ad59ccae1b58 = function(arg0, arg1) {
1367
+ const ret = arg0 === arg1;
1368
+ return ret;
1369
+ };
1370
+
1371
+ exports.__wbg_wbindgenjsvallooseeq_9bec8c9be826bed1 = function(arg0, arg1) {
1372
+ const ret = arg0 == arg1;
1373
+ return ret;
1374
+ };
1375
+
1376
+ exports.__wbg_wbindgennumberget_f74b4c7525ac05cb = function(arg0, arg1) {
1377
+ const obj = arg1;
1378
+ const ret = typeof(obj) === 'number' ? obj : undefined;
1379
+ getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
1380
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
1381
+ };
1382
+
1383
+ exports.__wbg_wbindgenstringget_0f16a6ddddef376f = function(arg0, arg1) {
1384
+ const obj = arg1;
1385
+ const ret = typeof(obj) === 'string' ? obj : undefined;
1386
+ var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
1387
+ var len1 = WASM_VECTOR_LEN;
1388
+ getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
1389
+ getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
1390
+ };
1391
+
1392
+ exports.__wbg_wbindgenthrow_451ec1a8469d7eb6 = function(arg0, arg1) {
1393
+ throw new Error(getStringFromWasm0(arg0, arg1));
1394
+ };
1395
+
1396
+ exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
1397
+ // Cast intrinsic for `Ref(String) -> Externref`.
1398
+ const ret = getStringFromWasm0(arg0, arg1);
1399
+ return ret;
1400
+ };
1401
+
1402
+ exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
1403
+ // Cast intrinsic for `U64 -> Externref`.
1404
+ const ret = BigInt.asUintN(64, arg0);
1405
+ return ret;
1406
+ };
1407
+
1408
+ exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
1409
+ // Cast intrinsic for `I64 -> Externref`.
1410
+ const ret = arg0;
1411
+ return ret;
1412
+ };
1413
+
1414
+ exports.__wbindgen_cast_c50ab2c557280b7e = function(arg0, arg1) {
1415
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 501, function: Function { arguments: [], shim_idx: 502, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1416
+ const ret = makeMutClosure(arg0, arg1, 501, __wbg_adapter_15);
1417
+ return ret;
1418
+ };
1419
+
1420
+ exports.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
1421
+ // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
1422
+ const ret = getArrayU8FromWasm0(arg0, arg1);
1423
+ return ret;
1424
+ };
1425
+
1426
+ exports.__wbindgen_cast_cf04d869ccc8e004 = function(arg0, arg1) {
1427
+ // Cast intrinsic for `Closure(Closure { dtor_idx: 547, function: Function { arguments: [Externref], shim_idx: 548, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
1428
+ const ret = makeMutClosure(arg0, arg1, 547, __wbg_adapter_12);
1429
+ return ret;
1430
+ };
1431
+
1432
+ exports.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
1433
+ // Cast intrinsic for `F64 -> Externref`.
1434
+ const ret = arg0;
1435
+ return ret;
1436
+ };
1437
+
1438
+ exports.__wbindgen_init_externref_table = function() {
1439
+ const table = wasm.__wbindgen_export_4;
1440
+ const offset = table.grow(4);
1441
+ table.set(0, undefined);
1442
+ table.set(offset + 0, undefined);
1443
+ table.set(offset + 1, null);
1444
+ table.set(offset + 2, true);
1445
+ table.set(offset + 3, false);
1446
+ ;
1447
+ };
1448
+
1449
+ const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
1450
+ const wasmBytes = require('fs').readFileSync(wasmPath);
1451
+ const wasmModule = new WebAssembly.Module(wasmBytes);
1452
+ const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
1453
+
1454
+ wasm.__wbindgen_start();
1427
1455
 
1428
- export { initSync };
1429
- export default __wbg_init;