@janssenproject/cedarling_wasm 0.0.283-nodejs → 0.0.284
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cedarling_wasm.d.ts +101 -32
- package/cedarling_wasm.js +766 -824
- package/cedarling_wasm_bg.wasm +0 -0
- package/package.json +6 -2
package/cedarling_wasm.js
CHANGED
|
@@ -1,95 +1,20 @@
|
|
|
1
|
+
let wasm;
|
|
1
2
|
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
function getUint8ArrayMemory0() {
|
|
8
|
-
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
9
|
-
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
10
|
-
}
|
|
11
|
-
return cachedUint8ArrayMemory0;
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
15
|
-
|
|
16
|
-
cachedTextDecoder.decode();
|
|
17
|
-
|
|
18
|
-
function decodeText(ptr, len) {
|
|
19
|
-
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function getStringFromWasm0(ptr, len) {
|
|
23
|
-
ptr = ptr >>> 0;
|
|
24
|
-
return decodeText(ptr, len);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
let WASM_VECTOR_LEN = 0;
|
|
28
|
-
|
|
29
|
-
const cachedTextEncoder = new TextEncoder();
|
|
30
|
-
|
|
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
|
-
}
|
|
41
|
-
|
|
42
|
-
function passStringToWasm0(arg, malloc, realloc) {
|
|
43
|
-
|
|
44
|
-
if (realloc === undefined) {
|
|
45
|
-
const buf = cachedTextEncoder.encode(arg);
|
|
46
|
-
const ptr = malloc(buf.length, 1) >>> 0;
|
|
47
|
-
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
48
|
-
WASM_VECTOR_LEN = buf.length;
|
|
49
|
-
return ptr;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
let len = arg.length;
|
|
53
|
-
let ptr = malloc(len, 1) >>> 0;
|
|
54
|
-
|
|
55
|
-
const mem = getUint8ArrayMemory0();
|
|
56
|
-
|
|
57
|
-
let offset = 0;
|
|
58
|
-
|
|
59
|
-
for (; offset < len; offset++) {
|
|
60
|
-
const code = arg.charCodeAt(offset);
|
|
61
|
-
if (code > 0x7F) break;
|
|
62
|
-
mem[ptr + offset] = code;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
if (offset !== len) {
|
|
66
|
-
if (offset !== 0) {
|
|
67
|
-
arg = arg.slice(offset);
|
|
68
|
-
}
|
|
69
|
-
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
70
|
-
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
71
|
-
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
72
|
-
|
|
73
|
-
offset += ret.written;
|
|
74
|
-
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
WASM_VECTOR_LEN = offset;
|
|
78
|
-
return ptr;
|
|
3
|
+
function addToExternrefTable0(obj) {
|
|
4
|
+
const idx = wasm.__externref_table_alloc();
|
|
5
|
+
wasm.__wbindgen_externrefs.set(idx, obj);
|
|
6
|
+
return idx;
|
|
79
7
|
}
|
|
80
8
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
85
|
-
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
9
|
+
function _assertClass(instance, klass) {
|
|
10
|
+
if (!(instance instanceof klass)) {
|
|
11
|
+
throw new Error(`expected instance of ${klass.name}`);
|
|
86
12
|
}
|
|
87
|
-
return cachedDataViewMemory0;
|
|
88
13
|
}
|
|
89
14
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
15
|
+
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
16
|
+
? { register: () => {}, unregister: () => {} }
|
|
17
|
+
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
93
18
|
|
|
94
19
|
function debugString(val) {
|
|
95
20
|
// primitive types
|
|
@@ -156,10 +81,41 @@ function debugString(val) {
|
|
|
156
81
|
return className;
|
|
157
82
|
}
|
|
158
83
|
|
|
159
|
-
function
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
84
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
85
|
+
ptr = ptr >>> 0;
|
|
86
|
+
const mem = getDataViewMemory0();
|
|
87
|
+
const result = [];
|
|
88
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
89
|
+
result.push(wasm.__wbindgen_externrefs.get(mem.getUint32(i, true)));
|
|
90
|
+
}
|
|
91
|
+
wasm.__externref_drop_slice(ptr, len);
|
|
92
|
+
return result;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
96
|
+
ptr = ptr >>> 0;
|
|
97
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
let cachedDataViewMemory0 = null;
|
|
101
|
+
function getDataViewMemory0() {
|
|
102
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
103
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
104
|
+
}
|
|
105
|
+
return cachedDataViewMemory0;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
function getStringFromWasm0(ptr, len) {
|
|
109
|
+
ptr = ptr >>> 0;
|
|
110
|
+
return decodeText(ptr, len);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
let cachedUint8ArrayMemory0 = null;
|
|
114
|
+
function getUint8ArrayMemory0() {
|
|
115
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
116
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
117
|
+
}
|
|
118
|
+
return cachedUint8ArrayMemory0;
|
|
163
119
|
}
|
|
164
120
|
|
|
165
121
|
function handleError(f, args) {
|
|
@@ -171,15 +127,10 @@ function handleError(f, args) {
|
|
|
171
127
|
}
|
|
172
128
|
}
|
|
173
129
|
|
|
174
|
-
function
|
|
175
|
-
|
|
176
|
-
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
130
|
+
function isLikeNone(x) {
|
|
131
|
+
return x === undefined || x === null;
|
|
177
132
|
}
|
|
178
133
|
|
|
179
|
-
const CLOSURE_DTORS = (typeof FinalizationRegistry === 'undefined')
|
|
180
|
-
? { register: () => {}, unregister: () => {} }
|
|
181
|
-
: new FinalizationRegistry(state => state.dtor(state.a, state.b));
|
|
182
|
-
|
|
183
134
|
function makeMutClosure(arg0, arg1, dtor, f) {
|
|
184
135
|
const state = { a: arg0, b: arg1, cnt: 1, dtor };
|
|
185
136
|
const real = (...args) => {
|
|
@@ -208,21 +159,42 @@ function makeMutClosure(arg0, arg1, dtor, f) {
|
|
|
208
159
|
return real;
|
|
209
160
|
}
|
|
210
161
|
|
|
211
|
-
function
|
|
212
|
-
if (
|
|
213
|
-
|
|
162
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
163
|
+
if (realloc === undefined) {
|
|
164
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
165
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
166
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
167
|
+
WASM_VECTOR_LEN = buf.length;
|
|
168
|
+
return ptr;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
let len = arg.length;
|
|
172
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
173
|
+
|
|
174
|
+
const mem = getUint8ArrayMemory0();
|
|
175
|
+
|
|
176
|
+
let offset = 0;
|
|
177
|
+
|
|
178
|
+
for (; offset < len; offset++) {
|
|
179
|
+
const code = arg.charCodeAt(offset);
|
|
180
|
+
if (code > 0x7F) break;
|
|
181
|
+
mem[ptr + offset] = code;
|
|
182
|
+
}
|
|
183
|
+
if (offset !== len) {
|
|
184
|
+
if (offset !== 0) {
|
|
185
|
+
arg = arg.slice(offset);
|
|
186
|
+
}
|
|
187
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
188
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
189
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
190
|
+
|
|
191
|
+
offset += ret.written;
|
|
192
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
214
193
|
}
|
|
194
|
+
|
|
195
|
+
WASM_VECTOR_LEN = offset;
|
|
196
|
+
return ptr;
|
|
215
197
|
}
|
|
216
|
-
/**
|
|
217
|
-
* Create a new instance of the Cedarling application.
|
|
218
|
-
* This function can take as config parameter the eather `Map` other `Object`
|
|
219
|
-
* @param {any} config
|
|
220
|
-
* @returns {Promise<Cedarling>}
|
|
221
|
-
*/
|
|
222
|
-
exports.init = function(config) {
|
|
223
|
-
const ret = wasm.init(config);
|
|
224
|
-
return ret;
|
|
225
|
-
};
|
|
226
198
|
|
|
227
199
|
function takeFromExternrefTable0(idx) {
|
|
228
200
|
const value = wasm.__wbindgen_externrefs.get(idx);
|
|
@@ -230,26 +202,45 @@ function takeFromExternrefTable0(idx) {
|
|
|
230
202
|
return value;
|
|
231
203
|
}
|
|
232
204
|
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
205
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
206
|
+
cachedTextDecoder.decode();
|
|
207
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
208
|
+
let numBytesDecoded = 0;
|
|
209
|
+
function decodeText(ptr, len) {
|
|
210
|
+
numBytesDecoded += len;
|
|
211
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
212
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
213
|
+
cachedTextDecoder.decode();
|
|
214
|
+
numBytesDecoded = len;
|
|
215
|
+
}
|
|
216
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
const cachedTextEncoder = new TextEncoder();
|
|
220
|
+
|
|
221
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
222
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
223
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
224
|
+
view.set(buf);
|
|
225
|
+
return {
|
|
226
|
+
read: arg.length,
|
|
227
|
+
written: buf.length
|
|
228
|
+
};
|
|
239
229
|
}
|
|
240
|
-
wasm.__externref_drop_slice(ptr, len);
|
|
241
|
-
return result;
|
|
242
230
|
}
|
|
243
|
-
|
|
244
|
-
|
|
231
|
+
|
|
232
|
+
let WASM_VECTOR_LEN = 0;
|
|
233
|
+
|
|
234
|
+
function wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1) {
|
|
235
|
+
wasm.wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97(arg0, arg1);
|
|
245
236
|
}
|
|
246
237
|
|
|
247
|
-
function
|
|
248
|
-
wasm.
|
|
238
|
+
function wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2) {
|
|
239
|
+
wasm.wasm_bindgen__convert__closures_____invoke__he934e31379087ee0(arg0, arg1, arg2);
|
|
249
240
|
}
|
|
250
241
|
|
|
251
|
-
function
|
|
252
|
-
wasm.
|
|
242
|
+
function wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3) {
|
|
243
|
+
wasm.wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(arg0, arg1, arg2, arg3);
|
|
253
244
|
}
|
|
254
245
|
|
|
255
246
|
const __wbindgen_enum_RequestCache = ["default", "no-store", "reload", "no-cache", "force-cache", "only-if-cached"];
|
|
@@ -261,12 +252,36 @@ const __wbindgen_enum_RequestMode = ["same-origin", "no-cors", "cors", "navigate
|
|
|
261
252
|
const AuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
262
253
|
? { register: () => {}, unregister: () => {} }
|
|
263
254
|
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresult_free(ptr >>> 0, 1));
|
|
255
|
+
|
|
256
|
+
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
257
|
+
? { register: () => {}, unregister: () => {} }
|
|
258
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
259
|
+
|
|
260
|
+
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
261
|
+
? { register: () => {}, unregister: () => {} }
|
|
262
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
263
|
+
|
|
264
|
+
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
265
|
+
? { register: () => {}, unregister: () => {} }
|
|
266
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
267
|
+
|
|
268
|
+
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
269
|
+
? { register: () => {}, unregister: () => {} }
|
|
270
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
271
|
+
|
|
272
|
+
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
273
|
+
? { register: () => {}, unregister: () => {} }
|
|
274
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
275
|
+
|
|
276
|
+
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
277
|
+
? { register: () => {}, unregister: () => {} }
|
|
278
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
279
|
+
|
|
264
280
|
/**
|
|
265
281
|
* A WASM wrapper for the Rust `cedarling::AuthorizeResult` struct.
|
|
266
282
|
* Represents the result of an authorization request.
|
|
267
283
|
*/
|
|
268
|
-
class AuthorizeResult {
|
|
269
|
-
|
|
284
|
+
export class AuthorizeResult {
|
|
270
285
|
static __wrap(ptr) {
|
|
271
286
|
ptr = ptr >>> 0;
|
|
272
287
|
const obj = Object.create(AuthorizeResult.prototype);
|
|
@@ -274,14 +289,12 @@ class AuthorizeResult {
|
|
|
274
289
|
AuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
275
290
|
return obj;
|
|
276
291
|
}
|
|
277
|
-
|
|
278
292
|
__destroy_into_raw() {
|
|
279
293
|
const ptr = this.__wbg_ptr;
|
|
280
294
|
this.__wbg_ptr = 0;
|
|
281
295
|
AuthorizeResultFinalization.unregister(this);
|
|
282
296
|
return ptr;
|
|
283
297
|
}
|
|
284
|
-
|
|
285
298
|
free() {
|
|
286
299
|
const ptr = this.__destroy_into_raw();
|
|
287
300
|
wasm.__wbg_authorizeresult_free(ptr, 0);
|
|
@@ -403,17 +416,11 @@ class AuthorizeResult {
|
|
|
403
416
|
}
|
|
404
417
|
if (Symbol.dispose) AuthorizeResult.prototype[Symbol.dispose] = AuthorizeResult.prototype.free;
|
|
405
418
|
|
|
406
|
-
exports.AuthorizeResult = AuthorizeResult;
|
|
407
|
-
|
|
408
|
-
const AuthorizeResultResponseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
409
|
-
? { register: () => {}, unregister: () => {} }
|
|
410
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_authorizeresultresponse_free(ptr >>> 0, 1));
|
|
411
419
|
/**
|
|
412
420
|
* A WASM wrapper for the Rust `cedar_policy::Response` struct.
|
|
413
421
|
* Represents the result of an authorization request.
|
|
414
422
|
*/
|
|
415
|
-
class AuthorizeResultResponse {
|
|
416
|
-
|
|
423
|
+
export class AuthorizeResultResponse {
|
|
417
424
|
static __wrap(ptr) {
|
|
418
425
|
ptr = ptr >>> 0;
|
|
419
426
|
const obj = Object.create(AuthorizeResultResponse.prototype);
|
|
@@ -421,14 +428,12 @@ class AuthorizeResultResponse {
|
|
|
421
428
|
AuthorizeResultResponseFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
422
429
|
return obj;
|
|
423
430
|
}
|
|
424
|
-
|
|
425
431
|
__destroy_into_raw() {
|
|
426
432
|
const ptr = this.__wbg_ptr;
|
|
427
433
|
this.__wbg_ptr = 0;
|
|
428
434
|
AuthorizeResultResponseFinalization.unregister(this);
|
|
429
435
|
return ptr;
|
|
430
436
|
}
|
|
431
|
-
|
|
432
437
|
free() {
|
|
433
438
|
const ptr = this.__destroy_into_raw();
|
|
434
439
|
wasm.__wbg_authorizeresultresponse_free(ptr, 0);
|
|
@@ -452,16 +457,10 @@ class AuthorizeResultResponse {
|
|
|
452
457
|
}
|
|
453
458
|
if (Symbol.dispose) AuthorizeResultResponse.prototype[Symbol.dispose] = AuthorizeResultResponse.prototype.free;
|
|
454
459
|
|
|
455
|
-
exports.AuthorizeResultResponse = AuthorizeResultResponse;
|
|
456
|
-
|
|
457
|
-
const CedarlingFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
458
|
-
? { register: () => {}, unregister: () => {} }
|
|
459
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_cedarling_free(ptr >>> 0, 1));
|
|
460
460
|
/**
|
|
461
461
|
* The instance of the Cedarling application.
|
|
462
462
|
*/
|
|
463
|
-
class Cedarling {
|
|
464
|
-
|
|
463
|
+
export class Cedarling {
|
|
465
464
|
static __wrap(ptr) {
|
|
466
465
|
ptr = ptr >>> 0;
|
|
467
466
|
const obj = Object.create(Cedarling.prototype);
|
|
@@ -469,14 +468,12 @@ class Cedarling {
|
|
|
469
468
|
CedarlingFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
470
469
|
return obj;
|
|
471
470
|
}
|
|
472
|
-
|
|
473
471
|
__destroy_into_raw() {
|
|
474
472
|
const ptr = this.__wbg_ptr;
|
|
475
473
|
this.__wbg_ptr = 0;
|
|
476
474
|
CedarlingFinalization.unregister(this);
|
|
477
475
|
return ptr;
|
|
478
476
|
}
|
|
479
|
-
|
|
480
477
|
free() {
|
|
481
478
|
const ptr = this.__destroy_into_raw();
|
|
482
479
|
wasm.__wbg_cedarling_free(ptr, 0);
|
|
@@ -633,19 +630,13 @@ class Cedarling {
|
|
|
633
630
|
}
|
|
634
631
|
if (Symbol.dispose) Cedarling.prototype[Symbol.dispose] = Cedarling.prototype.free;
|
|
635
632
|
|
|
636
|
-
exports.Cedarling = Cedarling;
|
|
637
|
-
|
|
638
|
-
const DiagnosticsFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
639
|
-
? { register: () => {}, unregister: () => {} }
|
|
640
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_diagnostics_free(ptr >>> 0, 1));
|
|
641
633
|
/**
|
|
642
634
|
* Diagnostics
|
|
643
635
|
* ===========
|
|
644
636
|
*
|
|
645
637
|
* Provides detailed information about how a policy decision was made, including policies that contributed to the decision and any errors encountered during evaluation.
|
|
646
638
|
*/
|
|
647
|
-
class Diagnostics {
|
|
648
|
-
|
|
639
|
+
export class Diagnostics {
|
|
649
640
|
static __wrap(ptr) {
|
|
650
641
|
ptr = ptr >>> 0;
|
|
651
642
|
const obj = Object.create(Diagnostics.prototype);
|
|
@@ -653,14 +644,12 @@ class Diagnostics {
|
|
|
653
644
|
DiagnosticsFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
654
645
|
return obj;
|
|
655
646
|
}
|
|
656
|
-
|
|
657
647
|
__destroy_into_raw() {
|
|
658
648
|
const ptr = this.__wbg_ptr;
|
|
659
649
|
this.__wbg_ptr = 0;
|
|
660
650
|
DiagnosticsFinalization.unregister(this);
|
|
661
651
|
return ptr;
|
|
662
652
|
}
|
|
663
|
-
|
|
664
653
|
free() {
|
|
665
654
|
const ptr = this.__destroy_into_raw();
|
|
666
655
|
wasm.__wbg_diagnostics_free(ptr, 0);
|
|
@@ -692,21 +681,13 @@ class Diagnostics {
|
|
|
692
681
|
}
|
|
693
682
|
if (Symbol.dispose) Diagnostics.prototype[Symbol.dispose] = Diagnostics.prototype.free;
|
|
694
683
|
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
const JsJsonLogicFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
698
|
-
? { register: () => {}, unregister: () => {} }
|
|
699
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_jsjsonlogic_free(ptr >>> 0, 1));
|
|
700
|
-
|
|
701
|
-
class JsJsonLogic {
|
|
702
|
-
|
|
684
|
+
export class JsJsonLogic {
|
|
703
685
|
__destroy_into_raw() {
|
|
704
686
|
const ptr = this.__wbg_ptr;
|
|
705
687
|
this.__wbg_ptr = 0;
|
|
706
688
|
JsJsonLogicFinalization.unregister(this);
|
|
707
689
|
return ptr;
|
|
708
690
|
}
|
|
709
|
-
|
|
710
691
|
free() {
|
|
711
692
|
const ptr = this.__destroy_into_raw();
|
|
712
693
|
wasm.__wbg_jsjsonlogic_free(ptr, 0);
|
|
@@ -732,17 +713,11 @@ class JsJsonLogic {
|
|
|
732
713
|
}
|
|
733
714
|
if (Symbol.dispose) JsJsonLogic.prototype[Symbol.dispose] = JsJsonLogic.prototype.free;
|
|
734
715
|
|
|
735
|
-
exports.JsJsonLogic = JsJsonLogic;
|
|
736
|
-
|
|
737
|
-
const MultiIssuerAuthorizeResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
738
|
-
? { register: () => {}, unregister: () => {} }
|
|
739
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_multiissuerauthorizeresult_free(ptr >>> 0, 1));
|
|
740
716
|
/**
|
|
741
717
|
* A WASM wrapper for the Rust `cedarling::MultiIssuerAuthorizeResult` struct.
|
|
742
718
|
* Represents the result of a multi-issuer authorization request.
|
|
743
719
|
*/
|
|
744
|
-
class MultiIssuerAuthorizeResult {
|
|
745
|
-
|
|
720
|
+
export class MultiIssuerAuthorizeResult {
|
|
746
721
|
static __wrap(ptr) {
|
|
747
722
|
ptr = ptr >>> 0;
|
|
748
723
|
const obj = Object.create(MultiIssuerAuthorizeResult.prototype);
|
|
@@ -750,14 +725,12 @@ class MultiIssuerAuthorizeResult {
|
|
|
750
725
|
MultiIssuerAuthorizeResultFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
751
726
|
return obj;
|
|
752
727
|
}
|
|
753
|
-
|
|
754
728
|
__destroy_into_raw() {
|
|
755
729
|
const ptr = this.__wbg_ptr;
|
|
756
730
|
this.__wbg_ptr = 0;
|
|
757
731
|
MultiIssuerAuthorizeResultFinalization.unregister(this);
|
|
758
732
|
return ptr;
|
|
759
733
|
}
|
|
760
|
-
|
|
761
734
|
free() {
|
|
762
735
|
const ptr = this.__destroy_into_raw();
|
|
763
736
|
wasm.__wbg_multiissuerauthorizeresult_free(ptr, 0);
|
|
@@ -842,19 +815,13 @@ class MultiIssuerAuthorizeResult {
|
|
|
842
815
|
}
|
|
843
816
|
if (Symbol.dispose) MultiIssuerAuthorizeResult.prototype[Symbol.dispose] = MultiIssuerAuthorizeResult.prototype.free;
|
|
844
817
|
|
|
845
|
-
exports.MultiIssuerAuthorizeResult = MultiIssuerAuthorizeResult;
|
|
846
|
-
|
|
847
|
-
const PolicyEvaluationErrorFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
848
|
-
? { register: () => {}, unregister: () => {} }
|
|
849
|
-
: new FinalizationRegistry(ptr => wasm.__wbg_policyevaluationerror_free(ptr >>> 0, 1));
|
|
850
818
|
/**
|
|
851
819
|
* PolicyEvaluationError
|
|
852
820
|
* =====================
|
|
853
821
|
*
|
|
854
822
|
* Represents an error that occurred when evaluating a Cedar policy.
|
|
855
823
|
*/
|
|
856
|
-
class PolicyEvaluationError {
|
|
857
|
-
|
|
824
|
+
export class PolicyEvaluationError {
|
|
858
825
|
static __wrap(ptr) {
|
|
859
826
|
ptr = ptr >>> 0;
|
|
860
827
|
const obj = Object.create(PolicyEvaluationError.prototype);
|
|
@@ -862,14 +829,12 @@ class PolicyEvaluationError {
|
|
|
862
829
|
PolicyEvaluationErrorFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
863
830
|
return obj;
|
|
864
831
|
}
|
|
865
|
-
|
|
866
832
|
__destroy_into_raw() {
|
|
867
833
|
const ptr = this.__wbg_ptr;
|
|
868
834
|
this.__wbg_ptr = 0;
|
|
869
835
|
PolicyEvaluationErrorFinalization.unregister(this);
|
|
870
836
|
return ptr;
|
|
871
837
|
}
|
|
872
|
-
|
|
873
838
|
free() {
|
|
874
839
|
const ptr = this.__destroy_into_raw();
|
|
875
840
|
wasm.__wbg_policyevaluationerror_free(ptr, 0);
|
|
@@ -909,673 +874,650 @@ class PolicyEvaluationError {
|
|
|
909
874
|
}
|
|
910
875
|
if (Symbol.dispose) PolicyEvaluationError.prototype[Symbol.dispose] = PolicyEvaluationError.prototype.free;
|
|
911
876
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
const ret = Number(arg0);
|
|
921
|
-
return ret;
|
|
922
|
-
};
|
|
923
|
-
|
|
924
|
-
exports.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
925
|
-
const ret = String(arg1);
|
|
926
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
927
|
-
const len1 = WASM_VECTOR_LEN;
|
|
928
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
929
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
930
|
-
};
|
|
931
|
-
|
|
932
|
-
exports.__wbg___wbindgen_bigint_get_as_i64_f3ebc5a755000afd = function(arg0, arg1) {
|
|
933
|
-
const v = arg1;
|
|
934
|
-
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
935
|
-
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
936
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
937
|
-
};
|
|
938
|
-
|
|
939
|
-
exports.__wbg___wbindgen_boolean_get_6d5a1ee65bab5f68 = function(arg0) {
|
|
940
|
-
const v = arg0;
|
|
941
|
-
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
942
|
-
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
943
|
-
};
|
|
944
|
-
|
|
945
|
-
exports.__wbg___wbindgen_debug_string_df47ffb5e35e6763 = function(arg0, arg1) {
|
|
946
|
-
const ret = debugString(arg1);
|
|
947
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
948
|
-
const len1 = WASM_VECTOR_LEN;
|
|
949
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
950
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
951
|
-
};
|
|
952
|
-
|
|
953
|
-
exports.__wbg___wbindgen_in_bb933bd9e1b3bc0f = function(arg0, arg1) {
|
|
954
|
-
const ret = arg0 in arg1;
|
|
955
|
-
return ret;
|
|
956
|
-
};
|
|
957
|
-
|
|
958
|
-
exports.__wbg___wbindgen_is_bigint_cb320707dcd35f0b = function(arg0) {
|
|
959
|
-
const ret = typeof(arg0) === 'bigint';
|
|
960
|
-
return ret;
|
|
961
|
-
};
|
|
962
|
-
|
|
963
|
-
exports.__wbg___wbindgen_is_function_ee8a6c5833c90377 = function(arg0) {
|
|
964
|
-
const ret = typeof(arg0) === 'function';
|
|
965
|
-
return ret;
|
|
966
|
-
};
|
|
967
|
-
|
|
968
|
-
exports.__wbg___wbindgen_is_object_c818261d21f283a4 = function(arg0) {
|
|
969
|
-
const val = arg0;
|
|
970
|
-
const ret = typeof(val) === 'object' && val !== null;
|
|
971
|
-
return ret;
|
|
972
|
-
};
|
|
973
|
-
|
|
974
|
-
exports.__wbg___wbindgen_is_string_fbb76cb2940daafd = function(arg0) {
|
|
975
|
-
const ret = typeof(arg0) === 'string';
|
|
976
|
-
return ret;
|
|
977
|
-
};
|
|
978
|
-
|
|
979
|
-
exports.__wbg___wbindgen_is_undefined_2d472862bd29a478 = function(arg0) {
|
|
980
|
-
const ret = arg0 === undefined;
|
|
981
|
-
return ret;
|
|
982
|
-
};
|
|
983
|
-
|
|
984
|
-
exports.__wbg___wbindgen_jsval_eq_6b13ab83478b1c50 = function(arg0, arg1) {
|
|
985
|
-
const ret = arg0 === arg1;
|
|
986
|
-
return ret;
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
exports.__wbg___wbindgen_jsval_loose_eq_b664b38a2f582147 = function(arg0, arg1) {
|
|
990
|
-
const ret = arg0 == arg1;
|
|
991
|
-
return ret;
|
|
992
|
-
};
|
|
993
|
-
|
|
994
|
-
exports.__wbg___wbindgen_number_get_a20bf9b85341449d = function(arg0, arg1) {
|
|
995
|
-
const obj = arg1;
|
|
996
|
-
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
997
|
-
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
998
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
999
|
-
};
|
|
1000
|
-
|
|
1001
|
-
exports.__wbg___wbindgen_string_get_e4f06c90489ad01b = function(arg0, arg1) {
|
|
1002
|
-
const obj = arg1;
|
|
1003
|
-
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
1004
|
-
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1005
|
-
var len1 = WASM_VECTOR_LEN;
|
|
1006
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1007
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1008
|
-
};
|
|
1009
|
-
|
|
1010
|
-
exports.__wbg___wbindgen_throw_b855445ff6a94295 = function(arg0, arg1) {
|
|
1011
|
-
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1012
|
-
};
|
|
1013
|
-
|
|
1014
|
-
exports.__wbg__wbg_cb_unref_2454a539ea5790d9 = function(arg0) {
|
|
1015
|
-
arg0._wbg_cb_unref();
|
|
1016
|
-
};
|
|
1017
|
-
|
|
1018
|
-
exports.__wbg_abort_28ad55c5825b004d = function(arg0, arg1) {
|
|
1019
|
-
arg0.abort(arg1);
|
|
1020
|
-
};
|
|
1021
|
-
|
|
1022
|
-
exports.__wbg_abort_e7eb059f72f9ed0c = function(arg0) {
|
|
1023
|
-
arg0.abort();
|
|
1024
|
-
};
|
|
1025
|
-
|
|
1026
|
-
exports.__wbg_append_b577eb3a177bc0fa = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1027
|
-
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1028
|
-
}, arguments) };
|
|
1029
|
-
|
|
1030
|
-
exports.__wbg_arrayBuffer_b375eccb84b4ddf3 = function() { return handleError(function (arg0) {
|
|
1031
|
-
const ret = arg0.arrayBuffer();
|
|
1032
|
-
return ret;
|
|
1033
|
-
}, arguments) };
|
|
1034
|
-
|
|
1035
|
-
exports.__wbg_authorizeresult_new = function(arg0) {
|
|
1036
|
-
const ret = AuthorizeResult.__wrap(arg0);
|
|
1037
|
-
return ret;
|
|
1038
|
-
};
|
|
1039
|
-
|
|
1040
|
-
exports.__wbg_call_525440f72fbfc0ea = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1041
|
-
const ret = arg0.call(arg1, arg2);
|
|
1042
|
-
return ret;
|
|
1043
|
-
}, arguments) };
|
|
1044
|
-
|
|
1045
|
-
exports.__wbg_call_e762c39fa8ea36bf = function() { return handleError(function (arg0, arg1) {
|
|
1046
|
-
const ret = arg0.call(arg1);
|
|
1047
|
-
return ret;
|
|
1048
|
-
}, arguments) };
|
|
1049
|
-
|
|
1050
|
-
exports.__wbg_cedarling_new = function(arg0) {
|
|
1051
|
-
const ret = Cedarling.__wrap(arg0);
|
|
1052
|
-
return ret;
|
|
1053
|
-
};
|
|
1054
|
-
|
|
1055
|
-
exports.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
1056
|
-
const ret = clearTimeout(arg0);
|
|
1057
|
-
return ret;
|
|
1058
|
-
};
|
|
1059
|
-
|
|
1060
|
-
exports.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1061
|
-
const ret = arg0.crypto;
|
|
1062
|
-
return ret;
|
|
1063
|
-
};
|
|
1064
|
-
|
|
1065
|
-
exports.__wbg_debug_755c0800f64c9a88 = function(arg0) {
|
|
1066
|
-
console.debug(...arg0);
|
|
1067
|
-
};
|
|
1068
|
-
|
|
1069
|
-
exports.__wbg_done_2042aa2670fb1db1 = function(arg0) {
|
|
1070
|
-
const ret = arg0.done;
|
|
1071
|
-
return ret;
|
|
1072
|
-
};
|
|
1073
|
-
|
|
1074
|
-
exports.__wbg_entries_e171b586f8f6bdbf = function(arg0) {
|
|
1075
|
-
const ret = Object.entries(arg0);
|
|
1076
|
-
return ret;
|
|
1077
|
-
};
|
|
1078
|
-
|
|
1079
|
-
exports.__wbg_entries_eb145c4da5c811f7 = function(arg0) {
|
|
1080
|
-
const ret = arg0.entries();
|
|
877
|
+
/**
|
|
878
|
+
* Create a new instance of the Cedarling application.
|
|
879
|
+
* This function can take as config parameter the eather `Map` other `Object`
|
|
880
|
+
* @param {any} config
|
|
881
|
+
* @returns {Promise<Cedarling>}
|
|
882
|
+
*/
|
|
883
|
+
export function init(config) {
|
|
884
|
+
const ret = wasm.init(config);
|
|
1081
885
|
return ret;
|
|
1082
|
-
}
|
|
886
|
+
}
|
|
1083
887
|
|
|
1084
|
-
|
|
1085
|
-
console.error(...arg0);
|
|
1086
|
-
};
|
|
888
|
+
const EXPECTED_RESPONSE_TYPES = new Set(['basic', 'cors', 'default']);
|
|
1087
889
|
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
return ret;
|
|
1096
|
-
};
|
|
890
|
+
async function __wbg_load(module, imports) {
|
|
891
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
892
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
893
|
+
try {
|
|
894
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
895
|
+
} catch (e) {
|
|
896
|
+
const validResponse = module.ok && EXPECTED_RESPONSE_TYPES.has(module.type);
|
|
1097
897
|
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
return ret;
|
|
1101
|
-
}, arguments) };
|
|
898
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
899
|
+
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);
|
|
1102
900
|
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
}
|
|
901
|
+
} else {
|
|
902
|
+
throw e;
|
|
903
|
+
}
|
|
904
|
+
}
|
|
905
|
+
}
|
|
1106
906
|
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}
|
|
907
|
+
const bytes = await module.arrayBuffer();
|
|
908
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
909
|
+
} else {
|
|
910
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1110
911
|
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
912
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
913
|
+
return { instance, module };
|
|
914
|
+
} else {
|
|
915
|
+
return instance;
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
1115
919
|
|
|
1116
|
-
|
|
1117
|
-
const
|
|
1118
|
-
|
|
1119
|
-
|
|
920
|
+
function __wbg_get_imports() {
|
|
921
|
+
const imports = {};
|
|
922
|
+
imports.wbg = {};
|
|
923
|
+
imports.wbg.__wbg_Error_52673b7de5a0ca89 = function(arg0, arg1) {
|
|
924
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
925
|
+
return ret;
|
|
926
|
+
};
|
|
927
|
+
imports.wbg.__wbg_Number_2d1dcfcf4ec51736 = function(arg0) {
|
|
928
|
+
const ret = Number(arg0);
|
|
929
|
+
return ret;
|
|
930
|
+
};
|
|
931
|
+
imports.wbg.__wbg_String_8f0eb39a4a4c2f66 = function(arg0, arg1) {
|
|
932
|
+
const ret = String(arg1);
|
|
933
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
934
|
+
const len1 = WASM_VECTOR_LEN;
|
|
935
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
936
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
937
|
+
};
|
|
938
|
+
imports.wbg.__wbg___wbindgen_bigint_get_as_i64_6e32f5e6aff02e1d = function(arg0, arg1) {
|
|
939
|
+
const v = arg1;
|
|
940
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
941
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
942
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
943
|
+
};
|
|
944
|
+
imports.wbg.__wbg___wbindgen_boolean_get_dea25b33882b895b = function(arg0) {
|
|
945
|
+
const v = arg0;
|
|
946
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
947
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
948
|
+
};
|
|
949
|
+
imports.wbg.__wbg___wbindgen_debug_string_adfb662ae34724b6 = function(arg0, arg1) {
|
|
950
|
+
const ret = debugString(arg1);
|
|
951
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
952
|
+
const len1 = WASM_VECTOR_LEN;
|
|
953
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
954
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
955
|
+
};
|
|
956
|
+
imports.wbg.__wbg___wbindgen_in_0d3e1e8f0c669317 = function(arg0, arg1) {
|
|
957
|
+
const ret = arg0 in arg1;
|
|
958
|
+
return ret;
|
|
959
|
+
};
|
|
960
|
+
imports.wbg.__wbg___wbindgen_is_bigint_0e1a2e3f55cfae27 = function(arg0) {
|
|
961
|
+
const ret = typeof(arg0) === 'bigint';
|
|
962
|
+
return ret;
|
|
963
|
+
};
|
|
964
|
+
imports.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(arg0) {
|
|
965
|
+
const ret = typeof(arg0) === 'function';
|
|
966
|
+
return ret;
|
|
967
|
+
};
|
|
968
|
+
imports.wbg.__wbg___wbindgen_is_object_ce774f3490692386 = function(arg0) {
|
|
969
|
+
const val = arg0;
|
|
970
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
971
|
+
return ret;
|
|
972
|
+
};
|
|
973
|
+
imports.wbg.__wbg___wbindgen_is_string_704ef9c8fc131030 = function(arg0) {
|
|
974
|
+
const ret = typeof(arg0) === 'string';
|
|
975
|
+
return ret;
|
|
976
|
+
};
|
|
977
|
+
imports.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(arg0) {
|
|
978
|
+
const ret = arg0 === undefined;
|
|
979
|
+
return ret;
|
|
980
|
+
};
|
|
981
|
+
imports.wbg.__wbg___wbindgen_jsval_eq_b6101cc9cef1fe36 = function(arg0, arg1) {
|
|
982
|
+
const ret = arg0 === arg1;
|
|
983
|
+
return ret;
|
|
984
|
+
};
|
|
985
|
+
imports.wbg.__wbg___wbindgen_jsval_loose_eq_766057600fdd1b0d = function(arg0, arg1) {
|
|
986
|
+
const ret = arg0 == arg1;
|
|
987
|
+
return ret;
|
|
988
|
+
};
|
|
989
|
+
imports.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(arg0, arg1) {
|
|
990
|
+
const obj = arg1;
|
|
991
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
992
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
993
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
994
|
+
};
|
|
995
|
+
imports.wbg.__wbg___wbindgen_string_get_a2a31e16edf96e42 = function(arg0, arg1) {
|
|
996
|
+
const obj = arg1;
|
|
997
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
998
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
999
|
+
var len1 = WASM_VECTOR_LEN;
|
|
1000
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1001
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1002
|
+
};
|
|
1003
|
+
imports.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(arg0, arg1) {
|
|
1004
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
1005
|
+
};
|
|
1006
|
+
imports.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(arg0) {
|
|
1007
|
+
arg0._wbg_cb_unref();
|
|
1008
|
+
};
|
|
1009
|
+
imports.wbg.__wbg_abort_07646c894ebbf2bd = function(arg0) {
|
|
1010
|
+
arg0.abort();
|
|
1011
|
+
};
|
|
1012
|
+
imports.wbg.__wbg_abort_399ecbcfd6ef3c8e = function(arg0, arg1) {
|
|
1013
|
+
arg0.abort(arg1);
|
|
1014
|
+
};
|
|
1015
|
+
imports.wbg.__wbg_append_c5cbdf46455cc776 = function() { return handleError(function (arg0, arg1, arg2, arg3, arg4) {
|
|
1016
|
+
arg0.append(getStringFromWasm0(arg1, arg2), getStringFromWasm0(arg3, arg4));
|
|
1017
|
+
}, arguments) };
|
|
1018
|
+
imports.wbg.__wbg_arrayBuffer_c04af4fce566092d = function() { return handleError(function (arg0) {
|
|
1019
|
+
const ret = arg0.arrayBuffer();
|
|
1020
|
+
return ret;
|
|
1021
|
+
}, arguments) };
|
|
1022
|
+
imports.wbg.__wbg_authorizeresult_new = function(arg0) {
|
|
1023
|
+
const ret = AuthorizeResult.__wrap(arg0);
|
|
1024
|
+
return ret;
|
|
1025
|
+
};
|
|
1026
|
+
imports.wbg.__wbg_call_3020136f7a2d6e44 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1027
|
+
const ret = arg0.call(arg1, arg2);
|
|
1028
|
+
return ret;
|
|
1029
|
+
}, arguments) };
|
|
1030
|
+
imports.wbg.__wbg_call_abb4ff46ce38be40 = function() { return handleError(function (arg0, arg1) {
|
|
1031
|
+
const ret = arg0.call(arg1);
|
|
1032
|
+
return ret;
|
|
1033
|
+
}, arguments) };
|
|
1034
|
+
imports.wbg.__wbg_cedarling_new = function(arg0) {
|
|
1035
|
+
const ret = Cedarling.__wrap(arg0);
|
|
1036
|
+
return ret;
|
|
1037
|
+
};
|
|
1038
|
+
imports.wbg.__wbg_clearTimeout_7a42b49784aea641 = function(arg0) {
|
|
1039
|
+
const ret = clearTimeout(arg0);
|
|
1040
|
+
return ret;
|
|
1041
|
+
};
|
|
1042
|
+
imports.wbg.__wbg_crypto_574e78ad8b13b65f = function(arg0) {
|
|
1043
|
+
const ret = arg0.crypto;
|
|
1044
|
+
return ret;
|
|
1045
|
+
};
|
|
1046
|
+
imports.wbg.__wbg_debug_24d884048190fccc = function(arg0) {
|
|
1047
|
+
console.debug(...arg0);
|
|
1048
|
+
};
|
|
1049
|
+
imports.wbg.__wbg_done_62ea16af4ce34b24 = function(arg0) {
|
|
1050
|
+
const ret = arg0.done;
|
|
1051
|
+
return ret;
|
|
1052
|
+
};
|
|
1053
|
+
imports.wbg.__wbg_entries_83c79938054e065f = function(arg0) {
|
|
1054
|
+
const ret = Object.entries(arg0);
|
|
1055
|
+
return ret;
|
|
1056
|
+
};
|
|
1057
|
+
imports.wbg.__wbg_entries_9af46b7eaf7dfefa = function(arg0) {
|
|
1058
|
+
const ret = arg0.entries();
|
|
1059
|
+
return ret;
|
|
1060
|
+
};
|
|
1061
|
+
imports.wbg.__wbg_error_98d791de55bc7c97 = function(arg0) {
|
|
1062
|
+
console.error(...arg0);
|
|
1063
|
+
};
|
|
1064
|
+
imports.wbg.__wbg_fetch_74a3e84ebd2c9a0e = function(arg0) {
|
|
1065
|
+
const ret = fetch(arg0);
|
|
1066
|
+
return ret;
|
|
1067
|
+
};
|
|
1068
|
+
imports.wbg.__wbg_fetch_90447c28cc0b095e = function(arg0, arg1) {
|
|
1069
|
+
const ret = arg0.fetch(arg1);
|
|
1070
|
+
return ret;
|
|
1071
|
+
};
|
|
1072
|
+
imports.wbg.__wbg_fromEntries_743eaaa008e6db37 = function() { return handleError(function (arg0) {
|
|
1073
|
+
const ret = Object.fromEntries(arg0);
|
|
1074
|
+
return ret;
|
|
1075
|
+
}, arguments) };
|
|
1076
|
+
imports.wbg.__wbg_getRandomValues_1c61fac11405ffdc = function() { return handleError(function (arg0, arg1) {
|
|
1077
|
+
globalThis.crypto.getRandomValues(getArrayU8FromWasm0(arg0, arg1));
|
|
1078
|
+
}, arguments) };
|
|
1079
|
+
imports.wbg.__wbg_getRandomValues_b8f5dbd5f3995a9e = function() { return handleError(function (arg0, arg1) {
|
|
1080
|
+
arg0.getRandomValues(arg1);
|
|
1081
|
+
}, arguments) };
|
|
1082
|
+
imports.wbg.__wbg_getTime_ad1e9878a735af08 = function(arg0) {
|
|
1083
|
+
const ret = arg0.getTime();
|
|
1084
|
+
return ret;
|
|
1085
|
+
};
|
|
1086
|
+
imports.wbg.__wbg_getTimezoneOffset_45389e26d6f46823 = function(arg0) {
|
|
1087
|
+
const ret = arg0.getTimezoneOffset();
|
|
1088
|
+
return ret;
|
|
1089
|
+
};
|
|
1090
|
+
imports.wbg.__wbg_get_6b7bd52aca3f9671 = function(arg0, arg1) {
|
|
1091
|
+
const ret = arg0[arg1 >>> 0];
|
|
1092
|
+
return ret;
|
|
1093
|
+
};
|
|
1094
|
+
imports.wbg.__wbg_get_af9dab7e9603ea93 = function() { return handleError(function (arg0, arg1) {
|
|
1095
|
+
const ret = Reflect.get(arg0, arg1);
|
|
1096
|
+
return ret;
|
|
1097
|
+
}, arguments) };
|
|
1098
|
+
imports.wbg.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1099
|
+
const ret = arg0[arg1];
|
|
1100
|
+
return ret;
|
|
1101
|
+
};
|
|
1102
|
+
imports.wbg.__wbg_has_0e670569d65d3a45 = function() { return handleError(function (arg0, arg1) {
|
|
1103
|
+
const ret = Reflect.has(arg0, arg1);
|
|
1104
|
+
return ret;
|
|
1105
|
+
}, arguments) };
|
|
1106
|
+
imports.wbg.__wbg_headers_654c30e1bcccc552 = function(arg0) {
|
|
1107
|
+
const ret = arg0.headers;
|
|
1108
|
+
return ret;
|
|
1109
|
+
};
|
|
1110
|
+
imports.wbg.__wbg_info_e951478d580c1573 = function(arg0) {
|
|
1111
|
+
console.info(...arg0);
|
|
1112
|
+
};
|
|
1113
|
+
imports.wbg.__wbg_instanceof_ArrayBuffer_f3320d2419cd0355 = function(arg0) {
|
|
1114
|
+
let result;
|
|
1115
|
+
try {
|
|
1116
|
+
result = arg0 instanceof ArrayBuffer;
|
|
1117
|
+
} catch (_) {
|
|
1118
|
+
result = false;
|
|
1119
|
+
}
|
|
1120
|
+
const ret = result;
|
|
1121
|
+
return ret;
|
|
1122
|
+
};
|
|
1123
|
+
imports.wbg.__wbg_instanceof_Array_bc64f5da83077362 = function(arg0) {
|
|
1124
|
+
let result;
|
|
1125
|
+
try {
|
|
1126
|
+
result = arg0 instanceof Array;
|
|
1127
|
+
} catch (_) {
|
|
1128
|
+
result = false;
|
|
1129
|
+
}
|
|
1130
|
+
const ret = result;
|
|
1131
|
+
return ret;
|
|
1132
|
+
};
|
|
1133
|
+
imports.wbg.__wbg_instanceof_Map_084be8da74364158 = function(arg0) {
|
|
1134
|
+
let result;
|
|
1135
|
+
try {
|
|
1136
|
+
result = arg0 instanceof Map;
|
|
1137
|
+
} catch (_) {
|
|
1138
|
+
result = false;
|
|
1139
|
+
}
|
|
1140
|
+
const ret = result;
|
|
1141
|
+
return ret;
|
|
1142
|
+
};
|
|
1143
|
+
imports.wbg.__wbg_instanceof_Response_cd74d1c2ac92cb0b = function(arg0) {
|
|
1144
|
+
let result;
|
|
1145
|
+
try {
|
|
1146
|
+
result = arg0 instanceof Response;
|
|
1147
|
+
} catch (_) {
|
|
1148
|
+
result = false;
|
|
1149
|
+
}
|
|
1150
|
+
const ret = result;
|
|
1151
|
+
return ret;
|
|
1152
|
+
};
|
|
1153
|
+
imports.wbg.__wbg_instanceof_Uint8Array_da54ccc9d3e09434 = function(arg0) {
|
|
1154
|
+
let result;
|
|
1155
|
+
try {
|
|
1156
|
+
result = arg0 instanceof Uint8Array;
|
|
1157
|
+
} catch (_) {
|
|
1158
|
+
result = false;
|
|
1159
|
+
}
|
|
1160
|
+
const ret = result;
|
|
1161
|
+
return ret;
|
|
1162
|
+
};
|
|
1163
|
+
imports.wbg.__wbg_isArray_51fd9e6422c0a395 = function(arg0) {
|
|
1164
|
+
const ret = Array.isArray(arg0);
|
|
1165
|
+
return ret;
|
|
1166
|
+
};
|
|
1167
|
+
imports.wbg.__wbg_isSafeInteger_ae7d3f054d55fa16 = function(arg0) {
|
|
1168
|
+
const ret = Number.isSafeInteger(arg0);
|
|
1169
|
+
return ret;
|
|
1170
|
+
};
|
|
1171
|
+
imports.wbg.__wbg_iterator_27b7c8b35ab3e86b = function() {
|
|
1172
|
+
const ret = Symbol.iterator;
|
|
1173
|
+
return ret;
|
|
1174
|
+
};
|
|
1175
|
+
imports.wbg.__wbg_keys_f5c6002ff150fc6c = function(arg0) {
|
|
1176
|
+
const ret = Object.keys(arg0);
|
|
1177
|
+
return ret;
|
|
1178
|
+
};
|
|
1179
|
+
imports.wbg.__wbg_length_22ac23eaec9d8053 = function(arg0) {
|
|
1180
|
+
const ret = arg0.length;
|
|
1181
|
+
return ret;
|
|
1182
|
+
};
|
|
1183
|
+
imports.wbg.__wbg_length_d45040a40c570362 = function(arg0) {
|
|
1184
|
+
const ret = arg0.length;
|
|
1185
|
+
return ret;
|
|
1186
|
+
};
|
|
1187
|
+
imports.wbg.__wbg_log_3f650af133a6de58 = function(arg0) {
|
|
1188
|
+
console.log(...arg0);
|
|
1189
|
+
};
|
|
1190
|
+
imports.wbg.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1191
|
+
const ret = arg0.msCrypto;
|
|
1192
|
+
return ret;
|
|
1193
|
+
};
|
|
1194
|
+
imports.wbg.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
1195
|
+
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1196
|
+
return ret;
|
|
1197
|
+
};
|
|
1198
|
+
imports.wbg.__wbg_new_0_23cedd11d9b40c9d = function() {
|
|
1199
|
+
const ret = new Date();
|
|
1200
|
+
return ret;
|
|
1201
|
+
};
|
|
1202
|
+
imports.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1203
|
+
const ret = new Object();
|
|
1204
|
+
return ret;
|
|
1205
|
+
};
|
|
1206
|
+
imports.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1207
|
+
const ret = new Array();
|
|
1208
|
+
return ret;
|
|
1209
|
+
};
|
|
1210
|
+
imports.wbg.__wbg_new_3c79b3bb1b32b7d3 = function() { return handleError(function () {
|
|
1211
|
+
const ret = new Headers();
|
|
1212
|
+
return ret;
|
|
1213
|
+
}, arguments) };
|
|
1214
|
+
imports.wbg.__wbg_new_6421f6084cc5bc5a = function(arg0) {
|
|
1215
|
+
const ret = new Uint8Array(arg0);
|
|
1216
|
+
return ret;
|
|
1217
|
+
};
|
|
1218
|
+
imports.wbg.__wbg_new_881a222c65f168fc = function() { return handleError(function () {
|
|
1219
|
+
const ret = new AbortController();
|
|
1220
|
+
return ret;
|
|
1221
|
+
}, arguments) };
|
|
1222
|
+
imports.wbg.__wbg_new_b2db8aa2650f793a = function(arg0) {
|
|
1223
|
+
const ret = new Date(arg0);
|
|
1224
|
+
return ret;
|
|
1225
|
+
};
|
|
1226
|
+
imports.wbg.__wbg_new_b546ae120718850e = function() {
|
|
1227
|
+
const ret = new Map();
|
|
1228
|
+
return ret;
|
|
1229
|
+
};
|
|
1230
|
+
imports.wbg.__wbg_new_ff12d2b041fb48f1 = function(arg0, arg1) {
|
|
1231
|
+
try {
|
|
1232
|
+
var state0 = {a: arg0, b: arg1};
|
|
1233
|
+
var cb0 = (arg0, arg1) => {
|
|
1234
|
+
const a = state0.a;
|
|
1235
|
+
state0.a = 0;
|
|
1236
|
+
try {
|
|
1237
|
+
return wasm_bindgen__convert__closures_____invoke__h048f8d0721d2ddfa(a, state0.b, arg0, arg1);
|
|
1238
|
+
} finally {
|
|
1239
|
+
state0.a = a;
|
|
1240
|
+
}
|
|
1241
|
+
};
|
|
1242
|
+
const ret = new Promise(cb0);
|
|
1243
|
+
return ret;
|
|
1244
|
+
} finally {
|
|
1245
|
+
state0.a = state0.b = 0;
|
|
1246
|
+
}
|
|
1247
|
+
};
|
|
1248
|
+
imports.wbg.__wbg_new_from_slice_f9c22b9153b26992 = function(arg0, arg1) {
|
|
1249
|
+
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1250
|
+
return ret;
|
|
1251
|
+
};
|
|
1252
|
+
imports.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(arg0, arg1) {
|
|
1253
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1254
|
+
return ret;
|
|
1255
|
+
};
|
|
1256
|
+
imports.wbg.__wbg_new_with_args_df9e7125ffe55248 = function(arg0, arg1, arg2, arg3) {
|
|
1257
|
+
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1258
|
+
return ret;
|
|
1259
|
+
};
|
|
1260
|
+
imports.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(arg0) {
|
|
1261
|
+
const ret = new Uint8Array(arg0 >>> 0);
|
|
1262
|
+
return ret;
|
|
1263
|
+
};
|
|
1264
|
+
imports.wbg.__wbg_new_with_str_and_init_c5748f76f5108934 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1265
|
+
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1266
|
+
return ret;
|
|
1267
|
+
}, arguments) };
|
|
1268
|
+
imports.wbg.__wbg_next_138a17bbf04e926c = function(arg0) {
|
|
1269
|
+
const ret = arg0.next;
|
|
1270
|
+
return ret;
|
|
1271
|
+
};
|
|
1272
|
+
imports.wbg.__wbg_next_3cfe5c0fe2a4cc53 = function() { return handleError(function (arg0) {
|
|
1273
|
+
const ret = arg0.next();
|
|
1274
|
+
return ret;
|
|
1275
|
+
}, arguments) };
|
|
1276
|
+
imports.wbg.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1277
|
+
const ret = arg0.node;
|
|
1278
|
+
return ret;
|
|
1279
|
+
};
|
|
1280
|
+
imports.wbg.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1281
|
+
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1282
|
+
return ret;
|
|
1283
|
+
};
|
|
1284
|
+
imports.wbg.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1285
|
+
const ret = arg0.process;
|
|
1286
|
+
return ret;
|
|
1287
|
+
};
|
|
1288
|
+
imports.wbg.__wbg_prototypesetcall_dfe9b766cdc1f1fd = function(arg0, arg1, arg2) {
|
|
1289
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1290
|
+
};
|
|
1291
|
+
imports.wbg.__wbg_push_7d9be8f38fc13975 = function(arg0, arg1) {
|
|
1292
|
+
const ret = arg0.push(arg1);
|
|
1293
|
+
return ret;
|
|
1294
|
+
};
|
|
1295
|
+
imports.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(arg0) {
|
|
1296
|
+
const ret = arg0.queueMicrotask;
|
|
1297
|
+
return ret;
|
|
1298
|
+
};
|
|
1299
|
+
imports.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(arg0) {
|
|
1300
|
+
queueMicrotask(arg0);
|
|
1301
|
+
};
|
|
1302
|
+
imports.wbg.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1303
|
+
arg0.randomFillSync(arg1);
|
|
1304
|
+
}, arguments) };
|
|
1305
|
+
imports.wbg.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1306
|
+
const ret = module.require;
|
|
1307
|
+
return ret;
|
|
1308
|
+
}, arguments) };
|
|
1309
|
+
imports.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(arg0) {
|
|
1310
|
+
const ret = Promise.resolve(arg0);
|
|
1311
|
+
return ret;
|
|
1312
|
+
};
|
|
1313
|
+
imports.wbg.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
1314
|
+
const ret = setTimeout(arg0, arg1);
|
|
1315
|
+
return ret;
|
|
1316
|
+
};
|
|
1317
|
+
imports.wbg.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1318
|
+
arg0[arg1] = arg2;
|
|
1319
|
+
};
|
|
1320
|
+
imports.wbg.__wbg_set_781438a03c0c3c81 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1321
|
+
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1322
|
+
return ret;
|
|
1323
|
+
}, arguments) };
|
|
1324
|
+
imports.wbg.__wbg_set_7df433eea03a5c14 = function(arg0, arg1, arg2) {
|
|
1325
|
+
arg0[arg1 >>> 0] = arg2;
|
|
1326
|
+
};
|
|
1327
|
+
imports.wbg.__wbg_set_body_8e743242d6076a4f = function(arg0, arg1) {
|
|
1328
|
+
arg0.body = arg1;
|
|
1329
|
+
};
|
|
1330
|
+
imports.wbg.__wbg_set_cache_0e437c7c8e838b9b = function(arg0, arg1) {
|
|
1331
|
+
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1332
|
+
};
|
|
1333
|
+
imports.wbg.__wbg_set_credentials_55ae7c3c106fd5be = function(arg0, arg1) {
|
|
1334
|
+
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1335
|
+
};
|
|
1336
|
+
imports.wbg.__wbg_set_efaaf145b9377369 = function(arg0, arg1, arg2) {
|
|
1337
|
+
const ret = arg0.set(arg1, arg2);
|
|
1338
|
+
return ret;
|
|
1339
|
+
};
|
|
1340
|
+
imports.wbg.__wbg_set_headers_5671cf088e114d2b = function(arg0, arg1) {
|
|
1341
|
+
arg0.headers = arg1;
|
|
1342
|
+
};
|
|
1343
|
+
imports.wbg.__wbg_set_method_76c69e41b3570627 = function(arg0, arg1, arg2) {
|
|
1344
|
+
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1345
|
+
};
|
|
1346
|
+
imports.wbg.__wbg_set_mode_611016a6818fc690 = function(arg0, arg1) {
|
|
1347
|
+
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1348
|
+
};
|
|
1349
|
+
imports.wbg.__wbg_set_signal_e89be862d0091009 = function(arg0, arg1) {
|
|
1350
|
+
arg0.signal = arg1;
|
|
1351
|
+
};
|
|
1352
|
+
imports.wbg.__wbg_signal_3c14fbdc89694b39 = function(arg0) {
|
|
1353
|
+
const ret = arg0.signal;
|
|
1354
|
+
return ret;
|
|
1355
|
+
};
|
|
1356
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1357
|
+
const ret = typeof global === 'undefined' ? null : global;
|
|
1358
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1359
|
+
};
|
|
1360
|
+
imports.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1361
|
+
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1362
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1363
|
+
};
|
|
1364
|
+
imports.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1365
|
+
const ret = typeof self === 'undefined' ? null : self;
|
|
1366
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1367
|
+
};
|
|
1368
|
+
imports.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1369
|
+
const ret = typeof window === 'undefined' ? null : window;
|
|
1370
|
+
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1371
|
+
};
|
|
1372
|
+
imports.wbg.__wbg_status_9bfc680efca4bdfd = function(arg0) {
|
|
1373
|
+
const ret = arg0.status;
|
|
1374
|
+
return ret;
|
|
1375
|
+
};
|
|
1376
|
+
imports.wbg.__wbg_stringify_655a6390e1f5eb6b = function() { return handleError(function (arg0) {
|
|
1377
|
+
const ret = JSON.stringify(arg0);
|
|
1378
|
+
return ret;
|
|
1379
|
+
}, arguments) };
|
|
1380
|
+
imports.wbg.__wbg_subarray_845f2f5bce7d061a = function(arg0, arg1, arg2) {
|
|
1381
|
+
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1382
|
+
return ret;
|
|
1383
|
+
};
|
|
1384
|
+
imports.wbg.__wbg_text_51046bb33d257f63 = function() { return handleError(function (arg0) {
|
|
1385
|
+
const ret = arg0.text();
|
|
1386
|
+
return ret;
|
|
1387
|
+
}, arguments) };
|
|
1388
|
+
imports.wbg.__wbg_then_429f7caf1026411d = function(arg0, arg1, arg2) {
|
|
1389
|
+
const ret = arg0.then(arg1, arg2);
|
|
1390
|
+
return ret;
|
|
1391
|
+
};
|
|
1392
|
+
imports.wbg.__wbg_then_4f95312d68691235 = function(arg0, arg1) {
|
|
1393
|
+
const ret = arg0.then(arg1);
|
|
1394
|
+
return ret;
|
|
1395
|
+
};
|
|
1396
|
+
imports.wbg.__wbg_trace_b213249bfc587469 = function(arg0) {
|
|
1397
|
+
console.trace(...arg0);
|
|
1398
|
+
};
|
|
1399
|
+
imports.wbg.__wbg_url_b6d11838a4f95198 = function(arg0, arg1) {
|
|
1400
|
+
const ret = arg1.url;
|
|
1401
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1402
|
+
const len1 = WASM_VECTOR_LEN;
|
|
1403
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1404
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1405
|
+
};
|
|
1406
|
+
imports.wbg.__wbg_value_57b7b035e117f7ee = function(arg0) {
|
|
1407
|
+
const ret = arg0.value;
|
|
1408
|
+
return ret;
|
|
1409
|
+
};
|
|
1410
|
+
imports.wbg.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1411
|
+
const ret = arg0.versions;
|
|
1412
|
+
return ret;
|
|
1413
|
+
};
|
|
1414
|
+
imports.wbg.__wbg_warn_14a9fd75d0abe5d7 = function(arg0) {
|
|
1415
|
+
console.warn(...arg0);
|
|
1416
|
+
};
|
|
1417
|
+
imports.wbg.__wbindgen_cast_06e9015128396e60 = function(arg0, arg1) {
|
|
1418
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 505, function: Function { arguments: [], shim_idx: 506, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1419
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h3b69c8350c009da1, wasm_bindgen__convert__closures_____invoke__hfa802aa0addaec97);
|
|
1420
|
+
return ret;
|
|
1421
|
+
};
|
|
1422
|
+
imports.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1423
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1424
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
1425
|
+
return ret;
|
|
1426
|
+
};
|
|
1427
|
+
imports.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1428
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
1429
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
1430
|
+
return ret;
|
|
1431
|
+
};
|
|
1432
|
+
imports.wbg.__wbindgen_cast_4bdd81be241a5b48 = function(arg0, arg1) {
|
|
1433
|
+
// Cast intrinsic for `Closure(Closure { dtor_idx: 549, function: Function { arguments: [Externref], shim_idx: 550, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1434
|
+
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h5f4f3416747f6981, wasm_bindgen__convert__closures_____invoke__he934e31379087ee0);
|
|
1435
|
+
return ret;
|
|
1436
|
+
};
|
|
1437
|
+
imports.wbg.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1438
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
1439
|
+
const ret = arg0;
|
|
1440
|
+
return ret;
|
|
1441
|
+
};
|
|
1442
|
+
imports.wbg.__wbindgen_cast_cb9088102bce6b30 = function(arg0, arg1) {
|
|
1443
|
+
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1444
|
+
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1445
|
+
return ret;
|
|
1446
|
+
};
|
|
1447
|
+
imports.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(arg0) {
|
|
1448
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
1449
|
+
const ret = arg0;
|
|
1450
|
+
return ret;
|
|
1451
|
+
};
|
|
1452
|
+
imports.wbg.__wbindgen_init_externref_table = function() {
|
|
1453
|
+
const table = wasm.__wbindgen_externrefs;
|
|
1454
|
+
const offset = table.grow(4);
|
|
1455
|
+
table.set(0, undefined);
|
|
1456
|
+
table.set(offset + 0, undefined);
|
|
1457
|
+
table.set(offset + 1, null);
|
|
1458
|
+
table.set(offset + 2, true);
|
|
1459
|
+
table.set(offset + 3, false);
|
|
1460
|
+
};
|
|
1120
1461
|
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
return ret;
|
|
1124
|
-
};
|
|
1462
|
+
return imports;
|
|
1463
|
+
}
|
|
1125
1464
|
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1465
|
+
function __wbg_finalize_init(instance, module) {
|
|
1466
|
+
wasm = instance.exports;
|
|
1467
|
+
__wbg_init.__wbindgen_wasm_module = module;
|
|
1468
|
+
cachedDataViewMemory0 = null;
|
|
1469
|
+
cachedUint8ArrayMemory0 = null;
|
|
1130
1470
|
|
|
1131
|
-
exports.__wbg_get_with_ref_key_1dc361bd10053bfe = function(arg0, arg1) {
|
|
1132
|
-
const ret = arg0[arg1];
|
|
1133
|
-
return ret;
|
|
1134
|
-
};
|
|
1135
1471
|
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
}, arguments) };
|
|
1472
|
+
wasm.__wbindgen_start();
|
|
1473
|
+
return wasm;
|
|
1474
|
+
}
|
|
1140
1475
|
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
return ret;
|
|
1144
|
-
};
|
|
1476
|
+
function initSync(module) {
|
|
1477
|
+
if (wasm !== undefined) return wasm;
|
|
1145
1478
|
|
|
1146
|
-
exports.__wbg_info_f0ce824723264770 = function(arg0) {
|
|
1147
|
-
console.info(...arg0);
|
|
1148
|
-
};
|
|
1149
1479
|
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1480
|
+
if (typeof module !== 'undefined') {
|
|
1481
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1482
|
+
({module} = module)
|
|
1483
|
+
} else {
|
|
1484
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1485
|
+
}
|
|
1156
1486
|
}
|
|
1157
|
-
const ret = result;
|
|
1158
|
-
return ret;
|
|
1159
|
-
};
|
|
1160
1487
|
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
result = arg0 instanceof Array;
|
|
1165
|
-
} catch (_) {
|
|
1166
|
-
result = false;
|
|
1488
|
+
const imports = __wbg_get_imports();
|
|
1489
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1490
|
+
module = new WebAssembly.Module(module);
|
|
1167
1491
|
}
|
|
1168
|
-
const
|
|
1169
|
-
return
|
|
1170
|
-
}
|
|
1492
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1493
|
+
return __wbg_finalize_init(instance, module);
|
|
1494
|
+
}
|
|
1171
1495
|
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
try {
|
|
1175
|
-
result = arg0 instanceof Map;
|
|
1176
|
-
} catch (_) {
|
|
1177
|
-
result = false;
|
|
1178
|
-
}
|
|
1179
|
-
const ret = result;
|
|
1180
|
-
return ret;
|
|
1181
|
-
};
|
|
1496
|
+
async function __wbg_init(module_or_path) {
|
|
1497
|
+
if (wasm !== undefined) return wasm;
|
|
1182
1498
|
|
|
1183
|
-
exports.__wbg_instanceof_Response_f4f3e87e07f3135c = function(arg0) {
|
|
1184
|
-
let result;
|
|
1185
|
-
try {
|
|
1186
|
-
result = arg0 instanceof Response;
|
|
1187
|
-
} catch (_) {
|
|
1188
|
-
result = false;
|
|
1189
|
-
}
|
|
1190
|
-
const ret = result;
|
|
1191
|
-
return ret;
|
|
1192
|
-
};
|
|
1193
1499
|
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1500
|
+
if (typeof module_or_path !== 'undefined') {
|
|
1501
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1502
|
+
({module_or_path} = module_or_path)
|
|
1503
|
+
} else {
|
|
1504
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1505
|
+
}
|
|
1200
1506
|
}
|
|
1201
|
-
const ret = result;
|
|
1202
|
-
return ret;
|
|
1203
|
-
};
|
|
1204
|
-
|
|
1205
|
-
exports.__wbg_isArray_96e0af9891d0945d = function(arg0) {
|
|
1206
|
-
const ret = Array.isArray(arg0);
|
|
1207
|
-
return ret;
|
|
1208
|
-
};
|
|
1209
|
-
|
|
1210
|
-
exports.__wbg_isSafeInteger_d216eda7911dde36 = function(arg0) {
|
|
1211
|
-
const ret = Number.isSafeInteger(arg0);
|
|
1212
|
-
return ret;
|
|
1213
|
-
};
|
|
1214
|
-
|
|
1215
|
-
exports.__wbg_iterator_e5822695327a3c39 = function() {
|
|
1216
|
-
const ret = Symbol.iterator;
|
|
1217
|
-
return ret;
|
|
1218
|
-
};
|
|
1219
|
-
|
|
1220
|
-
exports.__wbg_keys_b4d27b02ad14f4be = function(arg0) {
|
|
1221
|
-
const ret = Object.keys(arg0);
|
|
1222
|
-
return ret;
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
exports.__wbg_length_69bca3cb64fc8748 = function(arg0) {
|
|
1226
|
-
const ret = arg0.length;
|
|
1227
|
-
return ret;
|
|
1228
|
-
};
|
|
1229
|
-
|
|
1230
|
-
exports.__wbg_length_cdd215e10d9dd507 = function(arg0) {
|
|
1231
|
-
const ret = arg0.length;
|
|
1232
|
-
return ret;
|
|
1233
|
-
};
|
|
1234
|
-
|
|
1235
|
-
exports.__wbg_log_33f7f6dbc0d0ccf4 = function(arg0) {
|
|
1236
|
-
console.log(...arg0);
|
|
1237
|
-
};
|
|
1238
|
-
|
|
1239
|
-
exports.__wbg_msCrypto_a61aeb35a24c1329 = function(arg0) {
|
|
1240
|
-
const ret = arg0.msCrypto;
|
|
1241
|
-
return ret;
|
|
1242
|
-
};
|
|
1243
|
-
|
|
1244
|
-
exports.__wbg_multiissuerauthorizeresult_new = function(arg0) {
|
|
1245
|
-
const ret = MultiIssuerAuthorizeResult.__wrap(arg0);
|
|
1246
|
-
return ret;
|
|
1247
|
-
};
|
|
1248
|
-
|
|
1249
|
-
exports.__wbg_new_0_f9740686d739025c = function() {
|
|
1250
|
-
const ret = new Date();
|
|
1251
|
-
return ret;
|
|
1252
|
-
};
|
|
1253
1507
|
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
return ret;
|
|
1257
|
-
};
|
|
1258
|
-
|
|
1259
|
-
exports.__wbg_new_2531773dac38ebb3 = function() { return handleError(function () {
|
|
1260
|
-
const ret = new AbortController();
|
|
1261
|
-
return ret;
|
|
1262
|
-
}, arguments) };
|
|
1263
|
-
|
|
1264
|
-
exports.__wbg_new_3c3d849046688a66 = function(arg0, arg1) {
|
|
1265
|
-
try {
|
|
1266
|
-
var state0 = {a: arg0, b: arg1};
|
|
1267
|
-
var cb0 = (arg0, arg1) => {
|
|
1268
|
-
const a = state0.a;
|
|
1269
|
-
state0.a = 0;
|
|
1270
|
-
try {
|
|
1271
|
-
return wasm_bindgen__convert__closures_____invoke__h4e75ae6afb7ea833(a, state0.b, arg0, arg1);
|
|
1272
|
-
} finally {
|
|
1273
|
-
state0.a = a;
|
|
1274
|
-
}
|
|
1275
|
-
};
|
|
1276
|
-
const ret = new Promise(cb0);
|
|
1277
|
-
return ret;
|
|
1278
|
-
} finally {
|
|
1279
|
-
state0.a = state0.b = 0;
|
|
1508
|
+
if (typeof module_or_path === 'undefined') {
|
|
1509
|
+
module_or_path = new URL('cedarling_wasm_bg.wasm', import.meta.url);
|
|
1280
1510
|
}
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
exports.__wbg_new_5a79be3ab53b8aa5 = function(arg0) {
|
|
1284
|
-
const ret = new Uint8Array(arg0);
|
|
1285
|
-
return ret;
|
|
1286
|
-
};
|
|
1511
|
+
const imports = __wbg_get_imports();
|
|
1287
1512
|
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
};
|
|
1292
|
-
|
|
1293
|
-
exports.__wbg_new_93d9417ed3fb115d = function(arg0) {
|
|
1294
|
-
const ret = new Date(arg0);
|
|
1295
|
-
return ret;
|
|
1296
|
-
};
|
|
1297
|
-
|
|
1298
|
-
exports.__wbg_new_9edf9838a2def39c = function() { return handleError(function () {
|
|
1299
|
-
const ret = new Headers();
|
|
1300
|
-
return ret;
|
|
1301
|
-
}, arguments) };
|
|
1302
|
-
|
|
1303
|
-
exports.__wbg_new_e17d9f43105b08be = function() {
|
|
1304
|
-
const ret = new Array();
|
|
1305
|
-
return ret;
|
|
1306
|
-
};
|
|
1307
|
-
|
|
1308
|
-
exports.__wbg_new_from_slice_92f4d78ca282a2d2 = function(arg0, arg1) {
|
|
1309
|
-
const ret = new Uint8Array(getArrayU8FromWasm0(arg0, arg1));
|
|
1310
|
-
return ret;
|
|
1311
|
-
};
|
|
1312
|
-
|
|
1313
|
-
exports.__wbg_new_no_args_ee98eee5275000a4 = function(arg0, arg1) {
|
|
1314
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1));
|
|
1315
|
-
return ret;
|
|
1316
|
-
};
|
|
1317
|
-
|
|
1318
|
-
exports.__wbg_new_with_args_02cbc439ce3fd7db = function(arg0, arg1, arg2, arg3) {
|
|
1319
|
-
const ret = new Function(getStringFromWasm0(arg0, arg1), getStringFromWasm0(arg2, arg3));
|
|
1320
|
-
return ret;
|
|
1321
|
-
};
|
|
1322
|
-
|
|
1323
|
-
exports.__wbg_new_with_length_01aa0dc35aa13543 = function(arg0) {
|
|
1324
|
-
const ret = new Uint8Array(arg0 >>> 0);
|
|
1325
|
-
return ret;
|
|
1326
|
-
};
|
|
1327
|
-
|
|
1328
|
-
exports.__wbg_new_with_str_and_init_0ae7728b6ec367b1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1329
|
-
const ret = new Request(getStringFromWasm0(arg0, arg1), arg2);
|
|
1330
|
-
return ret;
|
|
1331
|
-
}, arguments) };
|
|
1332
|
-
|
|
1333
|
-
exports.__wbg_next_020810e0ae8ebcb0 = function() { return handleError(function (arg0) {
|
|
1334
|
-
const ret = arg0.next();
|
|
1335
|
-
return ret;
|
|
1336
|
-
}, arguments) };
|
|
1337
|
-
|
|
1338
|
-
exports.__wbg_next_2c826fe5dfec6b6a = function(arg0) {
|
|
1339
|
-
const ret = arg0.next;
|
|
1340
|
-
return ret;
|
|
1341
|
-
};
|
|
1342
|
-
|
|
1343
|
-
exports.__wbg_node_905d3e251edff8a2 = function(arg0) {
|
|
1344
|
-
const ret = arg0.node;
|
|
1345
|
-
return ret;
|
|
1346
|
-
};
|
|
1347
|
-
|
|
1348
|
-
exports.__wbg_policyevaluationerror_new = function(arg0) {
|
|
1349
|
-
const ret = PolicyEvaluationError.__wrap(arg0);
|
|
1350
|
-
return ret;
|
|
1351
|
-
};
|
|
1352
|
-
|
|
1353
|
-
exports.__wbg_process_dc0fbacc7c1c06f7 = function(arg0) {
|
|
1354
|
-
const ret = arg0.process;
|
|
1355
|
-
return ret;
|
|
1356
|
-
};
|
|
1357
|
-
|
|
1358
|
-
exports.__wbg_prototypesetcall_2a6620b6922694b2 = function(arg0, arg1, arg2) {
|
|
1359
|
-
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), arg2);
|
|
1360
|
-
};
|
|
1361
|
-
|
|
1362
|
-
exports.__wbg_push_df81a39d04db858c = function(arg0, arg1) {
|
|
1363
|
-
const ret = arg0.push(arg1);
|
|
1364
|
-
return ret;
|
|
1365
|
-
};
|
|
1366
|
-
|
|
1367
|
-
exports.__wbg_queueMicrotask_34d692c25c47d05b = function(arg0) {
|
|
1368
|
-
const ret = arg0.queueMicrotask;
|
|
1369
|
-
return ret;
|
|
1370
|
-
};
|
|
1371
|
-
|
|
1372
|
-
exports.__wbg_queueMicrotask_9d76cacb20c84d58 = function(arg0) {
|
|
1373
|
-
queueMicrotask(arg0);
|
|
1374
|
-
};
|
|
1375
|
-
|
|
1376
|
-
exports.__wbg_randomFillSync_ac0988aba3254290 = function() { return handleError(function (arg0, arg1) {
|
|
1377
|
-
arg0.randomFillSync(arg1);
|
|
1378
|
-
}, arguments) };
|
|
1379
|
-
|
|
1380
|
-
exports.__wbg_require_60cc747a6bc5215a = function() { return handleError(function () {
|
|
1381
|
-
const ret = module.require;
|
|
1382
|
-
return ret;
|
|
1383
|
-
}, arguments) };
|
|
1384
|
-
|
|
1385
|
-
exports.__wbg_resolve_caf97c30b83f7053 = function(arg0) {
|
|
1386
|
-
const ret = Promise.resolve(arg0);
|
|
1387
|
-
return ret;
|
|
1388
|
-
};
|
|
1389
|
-
|
|
1390
|
-
exports.__wbg_setTimeout_7bb3429662ab1e70 = function(arg0, arg1) {
|
|
1391
|
-
const ret = setTimeout(arg0, arg1);
|
|
1392
|
-
return ret;
|
|
1393
|
-
};
|
|
1394
|
-
|
|
1395
|
-
exports.__wbg_set_3f1d0b984ed272ed = function(arg0, arg1, arg2) {
|
|
1396
|
-
arg0[arg1] = arg2;
|
|
1397
|
-
};
|
|
1398
|
-
|
|
1399
|
-
exports.__wbg_set_907fb406c34a251d = function(arg0, arg1, arg2) {
|
|
1400
|
-
const ret = arg0.set(arg1, arg2);
|
|
1401
|
-
return ret;
|
|
1402
|
-
};
|
|
1403
|
-
|
|
1404
|
-
exports.__wbg_set_body_3c365989753d61f4 = function(arg0, arg1) {
|
|
1405
|
-
arg0.body = arg1;
|
|
1406
|
-
};
|
|
1407
|
-
|
|
1408
|
-
exports.__wbg_set_c213c871859d6500 = function(arg0, arg1, arg2) {
|
|
1409
|
-
arg0[arg1 >>> 0] = arg2;
|
|
1410
|
-
};
|
|
1411
|
-
|
|
1412
|
-
exports.__wbg_set_c2abbebe8b9ebee1 = function() { return handleError(function (arg0, arg1, arg2) {
|
|
1413
|
-
const ret = Reflect.set(arg0, arg1, arg2);
|
|
1414
|
-
return ret;
|
|
1415
|
-
}, arguments) };
|
|
1416
|
-
|
|
1417
|
-
exports.__wbg_set_cache_2f9deb19b92b81e3 = function(arg0, arg1) {
|
|
1418
|
-
arg0.cache = __wbindgen_enum_RequestCache[arg1];
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
exports.__wbg_set_credentials_f621cd2d85c0c228 = function(arg0, arg1) {
|
|
1422
|
-
arg0.credentials = __wbindgen_enum_RequestCredentials[arg1];
|
|
1423
|
-
};
|
|
1424
|
-
|
|
1425
|
-
exports.__wbg_set_headers_6926da238cd32ee4 = function(arg0, arg1) {
|
|
1426
|
-
arg0.headers = arg1;
|
|
1427
|
-
};
|
|
1428
|
-
|
|
1429
|
-
exports.__wbg_set_method_c02d8cbbe204ac2d = function(arg0, arg1, arg2) {
|
|
1430
|
-
arg0.method = getStringFromWasm0(arg1, arg2);
|
|
1431
|
-
};
|
|
1432
|
-
|
|
1433
|
-
exports.__wbg_set_mode_52ef73cfa79639cb = function(arg0, arg1) {
|
|
1434
|
-
arg0.mode = __wbindgen_enum_RequestMode[arg1];
|
|
1435
|
-
};
|
|
1436
|
-
|
|
1437
|
-
exports.__wbg_set_signal_dda2cf7ccb6bee0f = function(arg0, arg1) {
|
|
1438
|
-
arg0.signal = arg1;
|
|
1439
|
-
};
|
|
1440
|
-
|
|
1441
|
-
exports.__wbg_signal_4db5aa055bf9eb9a = function(arg0) {
|
|
1442
|
-
const ret = arg0.signal;
|
|
1443
|
-
return ret;
|
|
1444
|
-
};
|
|
1445
|
-
|
|
1446
|
-
exports.__wbg_static_accessor_GLOBAL_89e1d9ac6a1b250e = function() {
|
|
1447
|
-
const ret = typeof global === 'undefined' ? null : global;
|
|
1448
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1449
|
-
};
|
|
1450
|
-
|
|
1451
|
-
exports.__wbg_static_accessor_GLOBAL_THIS_8b530f326a9e48ac = function() {
|
|
1452
|
-
const ret = typeof globalThis === 'undefined' ? null : globalThis;
|
|
1453
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1454
|
-
};
|
|
1455
|
-
|
|
1456
|
-
exports.__wbg_static_accessor_SELF_6fdf4b64710cc91b = function() {
|
|
1457
|
-
const ret = typeof self === 'undefined' ? null : self;
|
|
1458
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
exports.__wbg_static_accessor_WINDOW_b45bfc5a37f6cfa2 = function() {
|
|
1462
|
-
const ret = typeof window === 'undefined' ? null : window;
|
|
1463
|
-
return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
|
|
1464
|
-
};
|
|
1465
|
-
|
|
1466
|
-
exports.__wbg_status_de7eed5a7a5bfd5d = function(arg0) {
|
|
1467
|
-
const ret = arg0.status;
|
|
1468
|
-
return ret;
|
|
1469
|
-
};
|
|
1470
|
-
|
|
1471
|
-
exports.__wbg_stringify_b5fb28f6465d9c3e = function() { return handleError(function (arg0) {
|
|
1472
|
-
const ret = JSON.stringify(arg0);
|
|
1473
|
-
return ret;
|
|
1474
|
-
}, arguments) };
|
|
1475
|
-
|
|
1476
|
-
exports.__wbg_subarray_480600f3d6a9f26c = function(arg0, arg1, arg2) {
|
|
1477
|
-
const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
|
|
1478
|
-
return ret;
|
|
1479
|
-
};
|
|
1480
|
-
|
|
1481
|
-
exports.__wbg_text_dc33c15c17bdfb52 = function() { return handleError(function (arg0) {
|
|
1482
|
-
const ret = arg0.text();
|
|
1483
|
-
return ret;
|
|
1484
|
-
}, arguments) };
|
|
1485
|
-
|
|
1486
|
-
exports.__wbg_then_4f46f6544e6b4a28 = function(arg0, arg1) {
|
|
1487
|
-
const ret = arg0.then(arg1);
|
|
1488
|
-
return ret;
|
|
1489
|
-
};
|
|
1490
|
-
|
|
1491
|
-
exports.__wbg_then_70d05cf780a18d77 = function(arg0, arg1, arg2) {
|
|
1492
|
-
const ret = arg0.then(arg1, arg2);
|
|
1493
|
-
return ret;
|
|
1494
|
-
};
|
|
1495
|
-
|
|
1496
|
-
exports.__wbg_trace_15baa8999e3f2ed1 = function(arg0) {
|
|
1497
|
-
console.trace(...arg0);
|
|
1498
|
-
};
|
|
1499
|
-
|
|
1500
|
-
exports.__wbg_url_b36d2a5008eb056f = function(arg0, arg1) {
|
|
1501
|
-
const ret = arg1.url;
|
|
1502
|
-
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
1503
|
-
const len1 = WASM_VECTOR_LEN;
|
|
1504
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
1505
|
-
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
1506
|
-
};
|
|
1507
|
-
|
|
1508
|
-
exports.__wbg_value_692627309814bb8c = function(arg0) {
|
|
1509
|
-
const ret = arg0.value;
|
|
1510
|
-
return ret;
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
exports.__wbg_versions_c01dfd4722a88165 = function(arg0) {
|
|
1514
|
-
const ret = arg0.versions;
|
|
1515
|
-
return ret;
|
|
1516
|
-
};
|
|
1517
|
-
|
|
1518
|
-
exports.__wbg_warn_a2d80c28bcdb1933 = function(arg0) {
|
|
1519
|
-
console.warn(...arg0);
|
|
1520
|
-
};
|
|
1521
|
-
|
|
1522
|
-
exports.__wbindgen_cast_02fea57424c85e3c = function(arg0, arg1) {
|
|
1523
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 561, function: Function { arguments: [Externref], shim_idx: 562, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1524
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h4fff4cc5f82a04c0, wasm_bindgen__convert__closures_____invoke__h6327561d424f9a15);
|
|
1525
|
-
return ret;
|
|
1526
|
-
};
|
|
1527
|
-
|
|
1528
|
-
exports.__wbindgen_cast_2241b6af4c4b2941 = function(arg0, arg1) {
|
|
1529
|
-
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
1530
|
-
const ret = getStringFromWasm0(arg0, arg1);
|
|
1531
|
-
return ret;
|
|
1532
|
-
};
|
|
1533
|
-
|
|
1534
|
-
exports.__wbindgen_cast_4625c577ab2ec9ee = function(arg0) {
|
|
1535
|
-
// Cast intrinsic for `U64 -> Externref`.
|
|
1536
|
-
const ret = BigInt.asUintN(64, arg0);
|
|
1537
|
-
return ret;
|
|
1538
|
-
};
|
|
1539
|
-
|
|
1540
|
-
exports.__wbindgen_cast_67365bd7b36f80c7 = function(arg0, arg1) {
|
|
1541
|
-
// Cast intrinsic for `Closure(Closure { dtor_idx: 517, function: Function { arguments: [], shim_idx: 518, ret: Unit, inner_ret: Some(Unit) }, mutable: true }) -> Externref`.
|
|
1542
|
-
const ret = makeMutClosure(arg0, arg1, wasm.wasm_bindgen__closure__destroy__h8149dcdd225949c1, wasm_bindgen__convert__closures_____invoke__h1ef9cb20a66113c0);
|
|
1543
|
-
return ret;
|
|
1544
|
-
};
|
|
1545
|
-
|
|
1546
|
-
exports.__wbindgen_cast_9ae0607507abb057 = function(arg0) {
|
|
1547
|
-
// Cast intrinsic for `I64 -> Externref`.
|
|
1548
|
-
const ret = arg0;
|
|
1549
|
-
return ret;
|
|
1550
|
-
};
|
|
1513
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1514
|
+
module_or_path = fetch(module_or_path);
|
|
1515
|
+
}
|
|
1551
1516
|
|
|
1552
|
-
|
|
1553
|
-
// Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8Array")`.
|
|
1554
|
-
const ret = getArrayU8FromWasm0(arg0, arg1);
|
|
1555
|
-
return ret;
|
|
1556
|
-
};
|
|
1517
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1557
1518
|
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
const ret = arg0;
|
|
1561
|
-
return ret;
|
|
1562
|
-
};
|
|
1563
|
-
|
|
1564
|
-
exports.__wbindgen_init_externref_table = function() {
|
|
1565
|
-
const table = wasm.__wbindgen_externrefs;
|
|
1566
|
-
const offset = table.grow(4);
|
|
1567
|
-
table.set(0, undefined);
|
|
1568
|
-
table.set(offset + 0, undefined);
|
|
1569
|
-
table.set(offset + 1, null);
|
|
1570
|
-
table.set(offset + 2, true);
|
|
1571
|
-
table.set(offset + 3, false);
|
|
1572
|
-
;
|
|
1573
|
-
};
|
|
1574
|
-
|
|
1575
|
-
const wasmPath = `${__dirname}/cedarling_wasm_bg.wasm`;
|
|
1576
|
-
const wasmBytes = require('fs').readFileSync(wasmPath);
|
|
1577
|
-
const wasmModule = new WebAssembly.Module(wasmBytes);
|
|
1578
|
-
const wasm = exports.__wasm = new WebAssembly.Instance(wasmModule, imports).exports;
|
|
1579
|
-
|
|
1580
|
-
wasm.__wbindgen_start();
|
|
1519
|
+
return __wbg_finalize_init(instance, module);
|
|
1520
|
+
}
|
|
1581
1521
|
|
|
1522
|
+
export { initSync };
|
|
1523
|
+
export default __wbg_init;
|