@@ -4,6 +4,26 @@ export function __wbg_set_wasm(val) {
4
4
}
5
5
6
6
7
+ const heap = new Array ( 128 ) . fill ( undefined ) ;
8
+
9
+ heap . push ( undefined , null , true , false ) ;
10
+
11
+ function getObject ( idx ) { return heap [ idx ] ; }
12
+
13
+ let heap_next = heap . length ;
14
+
15
+ function dropObject ( idx ) {
16
+ if ( idx < 132 ) return ;
17
+ heap [ idx ] = heap_next ;
18
+ heap_next = idx ;
19
+ }
20
+
21
+ function takeObject ( idx ) {
22
+ const ret = getObject ( idx ) ;
23
+ dropObject ( idx ) ;
24
+ return ret ;
25
+ }
26
+
7
27
const lTextDecoder = typeof TextDecoder === 'undefined' ? ( 0 , module . require ) ( 'util' ) . TextDecoder : TextDecoder ;
8
28
9
29
let cachedTextDecoder = new lTextDecoder ( 'utf-8' , { ignoreBOM : true , fatal : true } ) ;
@@ -23,12 +43,6 @@ function getStringFromWasm0(ptr, len) {
23
43
return cachedTextDecoder . decode ( getUint8Memory0 ( ) . subarray ( ptr , ptr + len ) ) ;
24
44
}
25
45
26
- const heap = new Array ( 128 ) . fill ( undefined ) ;
27
-
28
- heap . push ( undefined , null , true , false ) ;
29
-
30
- let heap_next = heap . length ;
31
-
32
46
function addHeapObject ( obj ) {
33
47
if ( heap_next === heap . length ) heap . push ( heap . length + 1 ) ;
34
48
const idx = heap_next ;
@@ -38,8 +52,6 @@ function addHeapObject(obj) {
38
52
return idx ;
39
53
}
40
54
41
- function getObject ( idx ) { return heap [ idx ] ; }
42
-
43
55
let WASM_VECTOR_LEN = 0 ;
44
56
45
57
const lTextEncoder = typeof TextEncoder === 'undefined' ? ( 0 , module . require ) ( 'util' ) . TextEncoder : TextEncoder ;
@@ -106,18 +118,6 @@ function getInt32Memory0() {
106
118
return cachedInt32Memory0 ;
107
119
}
108
120
109
- function dropObject ( idx ) {
110
- if ( idx < 132 ) return ;
111
- heap [ idx ] = heap_next ;
112
- heap_next = idx ;
113
- }
114
-
115
- function takeObject ( idx ) {
116
- const ret = getObject ( idx ) ;
117
- dropObject ( idx ) ;
118
- return ret ;
119
- }
120
-
121
121
function debugString ( val ) {
122
122
// primitive types
123
123
const type = typeof val ;
@@ -3817,8 +3817,12 @@ export class ZorroScalar {
3817
3817
}
3818
3818
}
3819
3819
3820
- export function __wbindgen_json_parse ( arg0 , arg1 ) {
3821
- const ret = JSON . parse ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
3820
+ export function __wbindgen_object_drop_ref ( arg0 ) {
3821
+ takeObject ( arg0 ) ;
3822
+ } ;
3823
+
3824
+ export function __wbindgen_string_new ( arg0 , arg1 ) {
3825
+ const ret = getStringFromWasm0 ( arg0 , arg1 ) ;
3822
3826
return addHeapObject ( ret ) ;
3823
3827
} ;
3824
3828
@@ -3831,17 +3835,8 @@ export function __wbindgen_json_serialize(arg0, arg1) {
3831
3835
getInt32Memory0 ( ) [ arg0 / 4 + 0 ] = ptr0 ;
3832
3836
} ;
3833
3837
3834
- export function __wbindgen_object_drop_ref ( arg0 ) {
3835
- takeObject ( arg0 ) ;
3836
- } ;
3837
-
3838
- export function __wbindgen_string_new ( arg0 , arg1 ) {
3839
- const ret = getStringFromWasm0 ( arg0 , arg1 ) ;
3840
- return addHeapObject ( ret ) ;
3841
- } ;
3842
-
3843
- export function __wbindgen_object_clone_ref ( arg0 ) {
3844
- const ret = getObject ( arg0 ) ;
3838
+ export function __wbindgen_json_parse ( arg0 , arg1 ) {
3839
+ const ret = JSON . parse ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
3845
3840
return addHeapObject ( ret ) ;
3846
3841
} ;
3847
3842
@@ -3850,15 +3845,12 @@ export function __wbg_now_c644db5194be8437(arg0) {
3850
3845
return ret ;
3851
3846
} ;
3852
3847
3853
- export function __wbg_getRandomValues_37fa2ca9e4e07fab ( ) { return handleError ( function ( arg0 , arg1 ) {
3854
- getObject ( arg0 ) . getRandomValues ( getObject ( arg1 ) ) ;
3855
- } , arguments ) } ;
3856
-
3857
- export function __wbg_randomFillSync_dc1e9a60c158336d ( ) { return handleError ( function ( arg0 , arg1 ) {
3858
- getObject ( arg0 ) . randomFillSync ( takeObject ( arg1 ) ) ;
3859
- } , arguments ) } ;
3848
+ export function __wbindgen_object_clone_ref ( arg0 ) {
3849
+ const ret = getObject ( arg0 ) ;
3850
+ return addHeapObject ( ret ) ;
3851
+ } ;
3860
3852
3861
- export function __wbg_crypto_c48a774b022d20ac ( arg0 ) {
3853
+ export function __wbg_crypto_d05b68a3572bb8ca ( arg0 ) {
3862
3854
const ret = getObject ( arg0 ) . crypto ;
3863
3855
return addHeapObject ( ret ) ;
3864
3856
} ;
@@ -3869,17 +3861,17 @@ export function __wbindgen_is_object(arg0) {
3869
3861
return ret ;
3870
3862
} ;
3871
3863
3872
- export function __wbg_process_298734cf255a885d ( arg0 ) {
3864
+ export function __wbg_process_b02b3570280d0366 ( arg0 ) {
3873
3865
const ret = getObject ( arg0 ) . process ;
3874
3866
return addHeapObject ( ret ) ;
3875
3867
} ;
3876
3868
3877
- export function __wbg_versions_e2e78e134e3e5d01 ( arg0 ) {
3869
+ export function __wbg_versions_c1cb42213cedf0f5 ( arg0 ) {
3878
3870
const ret = getObject ( arg0 ) . versions ;
3879
3871
return addHeapObject ( ret ) ;
3880
3872
} ;
3881
3873
3882
- export function __wbg_node_1cd7a5d853dbea79 ( arg0 ) {
3874
+ export function __wbg_node_43b1089f407e4ec2 ( arg0 ) {
3883
3875
const ret = getObject ( arg0 ) . node ;
3884
3876
return addHeapObject ( ret ) ;
3885
3877
} ;
@@ -3889,12 +3881,12 @@ export function __wbindgen_is_string(arg0) {
3889
3881
return ret ;
3890
3882
} ;
3891
3883
3892
- export function __wbg_msCrypto_bcb970640f50a1e8 ( arg0 ) {
3884
+ export function __wbg_msCrypto_10fc94afee92bd76 ( arg0 ) {
3893
3885
const ret = getObject ( arg0 ) . msCrypto ;
3894
3886
return addHeapObject ( ret ) ;
3895
3887
} ;
3896
3888
3897
- export function __wbg_require_8f08ceecec0f4fee ( ) { return handleError ( function ( ) {
3889
+ export function __wbg_require_9a7e0f667ead4995 ( ) { return handleError ( function ( ) {
3898
3890
const ret = module . require ;
3899
3891
return addHeapObject ( ret ) ;
3900
3892
} , arguments ) } ;
@@ -3904,13 +3896,13 @@ export function __wbindgen_is_function(arg0) {
3904
3896
return ret ;
3905
3897
} ;
3906
3898
3907
- export function __wbg_randomFillSync_85b3f4c52c56c313 ( arg0 , arg1 , arg2 ) {
3908
- getObject ( arg0 ) . randomFillSync ( getArrayU8FromWasm0 ( arg1 , arg2 ) ) ;
3909
- } ;
3899
+ export function __wbg_randomFillSync_b70ccbdf4926a99d ( ) { return handleError ( function ( arg0 , arg1 ) {
3900
+ getObject ( arg0 ) . randomFillSync ( takeObject ( arg1 ) ) ;
3901
+ } , arguments ) } ;
3910
3902
3911
- export function __wbg_getRandomValues_cd175915511f705e ( arg0 , arg1 ) {
3903
+ export function __wbg_getRandomValues_7e42b4fb8779dc6d ( ) { return handleError ( function ( arg0 , arg1 ) {
3912
3904
getObject ( arg0 ) . getRandomValues ( getObject ( arg1 ) ) ;
3913
- } ;
3905
+ } , arguments ) } ;
3914
3906
3915
3907
export function __wbg_self_7eede1f4488bf346 ( ) { return handleError ( function ( ) {
3916
3908
const ret = self . self ;
@@ -3947,6 +3939,14 @@ export function __wbg_getRandomValues_307049345d0bd88c(arg0) {
3947
3939
return addHeapObject ( ret ) ;
3948
3940
} ;
3949
3941
3942
+ export function __wbg_getRandomValues_cd175915511f705e ( arg0 , arg1 ) {
3943
+ getObject ( arg0 ) . getRandomValues ( getObject ( arg1 ) ) ;
3944
+ } ;
3945
+
3946
+ export function __wbg_randomFillSync_85b3f4c52c56c313 ( arg0 , arg1 , arg2 ) {
3947
+ getObject ( arg0 ) . randomFillSync ( getArrayU8FromWasm0 ( arg1 , arg2 ) ) ;
3948
+ } ;
3949
+
3950
3950
export function __wbg_newnoargs_2b8b6bd7753c76ba ( arg0 , arg1 ) {
3951
3951
const ret = new Function ( getStringFromWasm0 ( arg0 , arg1 ) ) ;
3952
3952
return addHeapObject ( ret ) ;
0 commit comments