@xcodekit/xcode-wasm 0.6.1 → 0.6.3
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/node-wrapper.mjs +5 -0
- package/package.json +5 -8
- package/xcode.d.ts +66 -0
- package/xcode.js +1209 -6
- package/xcode_bg.wasm +0 -0
- package/node-wrapper.js +0 -48
- package/xcode_bg.js +0 -1113
package/xcode.js
CHANGED
|
@@ -1,9 +1,1212 @@
|
|
|
1
1
|
/* @ts-self-types="./xcode.d.ts" */
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
/**
|
|
4
|
+
* High-level project manipulation — stays in WASM memory.
|
|
5
|
+
*/
|
|
6
|
+
export class XcodeProject {
|
|
7
|
+
__destroy_into_raw() {
|
|
8
|
+
const ptr = this.__wbg_ptr;
|
|
9
|
+
this.__wbg_ptr = 0;
|
|
10
|
+
XcodeProjectFinalization.unregister(this);
|
|
11
|
+
return ptr;
|
|
12
|
+
}
|
|
13
|
+
free() {
|
|
14
|
+
const ptr = this.__destroy_into_raw();
|
|
15
|
+
wasm.__wbg_xcodeproject_free(ptr, 0);
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @param {string} phase_uuid
|
|
19
|
+
* @param {string} file_ref_uuid
|
|
20
|
+
* @returns {string | undefined}
|
|
21
|
+
*/
|
|
22
|
+
addBuildFile(phase_uuid, file_ref_uuid) {
|
|
23
|
+
try {
|
|
24
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
25
|
+
const ptr0 = passStringToWasm0(phase_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
26
|
+
const len0 = WASM_VECTOR_LEN;
|
|
27
|
+
const ptr1 = passStringToWasm0(file_ref_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
28
|
+
const len1 = WASM_VECTOR_LEN;
|
|
29
|
+
wasm.xcodeproject_addBuildFile(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
30
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
31
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
32
|
+
let v3;
|
|
33
|
+
if (r0 !== 0) {
|
|
34
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
35
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
36
|
+
}
|
|
37
|
+
return v3;
|
|
38
|
+
} finally {
|
|
39
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* @param {string} target_uuid
|
|
44
|
+
* @param {string} depends_on
|
|
45
|
+
* @returns {string | undefined}
|
|
46
|
+
*/
|
|
47
|
+
addDependency(target_uuid, depends_on) {
|
|
48
|
+
try {
|
|
49
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
50
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
51
|
+
const len0 = WASM_VECTOR_LEN;
|
|
52
|
+
const ptr1 = passStringToWasm0(depends_on, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
53
|
+
const len1 = WASM_VECTOR_LEN;
|
|
54
|
+
wasm.xcodeproject_addDependency(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
55
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
56
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
57
|
+
let v3;
|
|
58
|
+
if (r0 !== 0) {
|
|
59
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
60
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
61
|
+
}
|
|
62
|
+
return v3;
|
|
63
|
+
} finally {
|
|
64
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* @param {string} group_uuid
|
|
69
|
+
* @param {string} path
|
|
70
|
+
* @returns {string | undefined}
|
|
71
|
+
*/
|
|
72
|
+
addFile(group_uuid, path) {
|
|
73
|
+
try {
|
|
74
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
75
|
+
const ptr0 = passStringToWasm0(group_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
76
|
+
const len0 = WASM_VECTOR_LEN;
|
|
77
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
78
|
+
const len1 = WASM_VECTOR_LEN;
|
|
79
|
+
wasm.xcodeproject_addFile(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
80
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
81
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
82
|
+
let v3;
|
|
83
|
+
if (r0 !== 0) {
|
|
84
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
85
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
86
|
+
}
|
|
87
|
+
return v3;
|
|
88
|
+
} finally {
|
|
89
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* @param {string} target_uuid
|
|
94
|
+
* @param {string} path
|
|
95
|
+
* @returns {string | undefined}
|
|
96
|
+
*/
|
|
97
|
+
addFileSystemSyncGroup(target_uuid, path) {
|
|
98
|
+
try {
|
|
99
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
100
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
101
|
+
const len0 = WASM_VECTOR_LEN;
|
|
102
|
+
const ptr1 = passStringToWasm0(path, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
103
|
+
const len1 = WASM_VECTOR_LEN;
|
|
104
|
+
wasm.xcodeproject_addFileSystemSyncGroup(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
105
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
106
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
107
|
+
let v3;
|
|
108
|
+
if (r0 !== 0) {
|
|
109
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
110
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
111
|
+
}
|
|
112
|
+
return v3;
|
|
113
|
+
} finally {
|
|
114
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* @param {string} target_uuid
|
|
119
|
+
* @param {string} framework_name
|
|
120
|
+
* @returns {string | undefined}
|
|
121
|
+
*/
|
|
122
|
+
addFramework(target_uuid, framework_name) {
|
|
123
|
+
try {
|
|
124
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
125
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
126
|
+
const len0 = WASM_VECTOR_LEN;
|
|
127
|
+
const ptr1 = passStringToWasm0(framework_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
128
|
+
const len1 = WASM_VECTOR_LEN;
|
|
129
|
+
wasm.xcodeproject_addFramework(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
130
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
131
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
132
|
+
let v3;
|
|
133
|
+
if (r0 !== 0) {
|
|
134
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
135
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
136
|
+
}
|
|
137
|
+
return v3;
|
|
138
|
+
} finally {
|
|
139
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* @param {string} parent_uuid
|
|
144
|
+
* @param {string} name
|
|
145
|
+
* @returns {string | undefined}
|
|
146
|
+
*/
|
|
147
|
+
addGroup(parent_uuid, name) {
|
|
148
|
+
try {
|
|
149
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
150
|
+
const ptr0 = passStringToWasm0(parent_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
151
|
+
const len0 = WASM_VECTOR_LEN;
|
|
152
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
153
|
+
const len1 = WASM_VECTOR_LEN;
|
|
154
|
+
wasm.xcodeproject_addGroup(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
155
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
156
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
157
|
+
let v3;
|
|
158
|
+
if (r0 !== 0) {
|
|
159
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
160
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
161
|
+
}
|
|
162
|
+
return v3;
|
|
163
|
+
} finally {
|
|
164
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* @returns {bigint}
|
|
169
|
+
*/
|
|
170
|
+
get archiveVersion() {
|
|
171
|
+
const ret = wasm.xcodeproject_archiveVersion(this.__wbg_ptr);
|
|
172
|
+
return ret;
|
|
173
|
+
}
|
|
174
|
+
/**
|
|
175
|
+
* @param {string} name
|
|
176
|
+
* @param {string} product_type
|
|
177
|
+
* @param {string} bundle_id
|
|
178
|
+
* @returns {string | undefined}
|
|
179
|
+
*/
|
|
180
|
+
createNativeTarget(name, product_type, bundle_id) {
|
|
181
|
+
try {
|
|
182
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
183
|
+
const ptr0 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
184
|
+
const len0 = WASM_VECTOR_LEN;
|
|
185
|
+
const ptr1 = passStringToWasm0(product_type, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
186
|
+
const len1 = WASM_VECTOR_LEN;
|
|
187
|
+
const ptr2 = passStringToWasm0(bundle_id, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
188
|
+
const len2 = WASM_VECTOR_LEN;
|
|
189
|
+
wasm.xcodeproject_createNativeTarget(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
190
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
191
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
192
|
+
let v4;
|
|
193
|
+
if (r0 !== 0) {
|
|
194
|
+
v4 = getStringFromWasm0(r0, r1).slice();
|
|
195
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
196
|
+
}
|
|
197
|
+
return v4;
|
|
198
|
+
} finally {
|
|
199
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @param {string} host
|
|
204
|
+
* @param {string} extension
|
|
205
|
+
* @returns {string | undefined}
|
|
206
|
+
*/
|
|
207
|
+
embedExtension(host, extension) {
|
|
208
|
+
try {
|
|
209
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
210
|
+
const ptr0 = passStringToWasm0(host, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
211
|
+
const len0 = WASM_VECTOR_LEN;
|
|
212
|
+
const ptr1 = passStringToWasm0(extension, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
213
|
+
const len1 = WASM_VECTOR_LEN;
|
|
214
|
+
wasm.xcodeproject_embedExtension(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
215
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
216
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
217
|
+
let v3;
|
|
218
|
+
if (r0 !== 0) {
|
|
219
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
220
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
221
|
+
}
|
|
222
|
+
return v3;
|
|
223
|
+
} finally {
|
|
224
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
/**
|
|
228
|
+
* @param {string} target_uuid
|
|
229
|
+
* @param {string} phase_isa
|
|
230
|
+
* @returns {string | undefined}
|
|
231
|
+
*/
|
|
232
|
+
ensureBuildPhase(target_uuid, phase_isa) {
|
|
233
|
+
try {
|
|
234
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
235
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
236
|
+
const len0 = WASM_VECTOR_LEN;
|
|
237
|
+
const ptr1 = passStringToWasm0(phase_isa, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
238
|
+
const len1 = WASM_VECTOR_LEN;
|
|
239
|
+
wasm.xcodeproject_ensureBuildPhase(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
240
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
241
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
242
|
+
let v3;
|
|
243
|
+
if (r0 !== 0) {
|
|
244
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
245
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
246
|
+
}
|
|
247
|
+
return v3;
|
|
248
|
+
} finally {
|
|
249
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* @param {string | null} [platform]
|
|
254
|
+
* @returns {string | undefined}
|
|
255
|
+
*/
|
|
256
|
+
findMainAppTarget(platform) {
|
|
257
|
+
try {
|
|
258
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
259
|
+
var ptr0 = isLikeNone(platform) ? 0 : passStringToWasm0(platform, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
260
|
+
var len0 = WASM_VECTOR_LEN;
|
|
261
|
+
wasm.xcodeproject_findMainAppTarget(retptr, this.__wbg_ptr, ptr0, len0);
|
|
262
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
263
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
264
|
+
let v2;
|
|
265
|
+
if (r0 !== 0) {
|
|
266
|
+
v2 = getStringFromWasm0(r0, r1).slice();
|
|
267
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
268
|
+
}
|
|
269
|
+
return v2;
|
|
270
|
+
} finally {
|
|
271
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
272
|
+
}
|
|
273
|
+
}
|
|
274
|
+
/**
|
|
275
|
+
* @param {string} isa
|
|
276
|
+
* @returns {string[]}
|
|
277
|
+
*/
|
|
278
|
+
findObjectsByIsa(isa) {
|
|
279
|
+
try {
|
|
280
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
281
|
+
const ptr0 = passStringToWasm0(isa, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
282
|
+
const len0 = WASM_VECTOR_LEN;
|
|
283
|
+
wasm.xcodeproject_findObjectsByIsa(retptr, this.__wbg_ptr, ptr0, len0);
|
|
284
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
285
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
286
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
287
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
288
|
+
return v2;
|
|
289
|
+
} finally {
|
|
290
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* @returns {string}
|
|
295
|
+
*/
|
|
296
|
+
findOrphanedReferences() {
|
|
297
|
+
let deferred1_0;
|
|
298
|
+
let deferred1_1;
|
|
299
|
+
try {
|
|
300
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
301
|
+
wasm.xcodeproject_findOrphanedReferences(retptr, this.__wbg_ptr);
|
|
302
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
303
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
304
|
+
deferred1_0 = r0;
|
|
305
|
+
deferred1_1 = r1;
|
|
306
|
+
return getStringFromWasm0(r0, r1);
|
|
307
|
+
} finally {
|
|
308
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
309
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* @param {string} target_uuid
|
|
314
|
+
* @param {string} key
|
|
315
|
+
* @returns {string | undefined}
|
|
316
|
+
*/
|
|
317
|
+
getBuildSetting(target_uuid, key) {
|
|
318
|
+
try {
|
|
319
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
320
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
321
|
+
const len0 = WASM_VECTOR_LEN;
|
|
322
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
323
|
+
const len1 = WASM_VECTOR_LEN;
|
|
324
|
+
wasm.xcodeproject_getBuildSetting(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
325
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
326
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
327
|
+
let v3;
|
|
328
|
+
if (r0 !== 0) {
|
|
329
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
330
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
331
|
+
}
|
|
332
|
+
return v3;
|
|
333
|
+
} finally {
|
|
334
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* @param {string} group_uuid
|
|
339
|
+
* @returns {string[]}
|
|
340
|
+
*/
|
|
341
|
+
getGroupChildren(group_uuid) {
|
|
342
|
+
try {
|
|
343
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
344
|
+
const ptr0 = passStringToWasm0(group_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
345
|
+
const len0 = WASM_VECTOR_LEN;
|
|
346
|
+
wasm.xcodeproject_getGroupChildren(retptr, this.__wbg_ptr, ptr0, len0);
|
|
347
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
348
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
349
|
+
var v2 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
350
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
351
|
+
return v2;
|
|
352
|
+
} finally {
|
|
353
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
/**
|
|
357
|
+
* @returns {string[]}
|
|
358
|
+
*/
|
|
359
|
+
getNativeTargets() {
|
|
360
|
+
try {
|
|
361
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
362
|
+
wasm.xcodeproject_getNativeTargets(retptr, this.__wbg_ptr);
|
|
363
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
364
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
365
|
+
var v1 = getArrayJsValueFromWasm0(r0, r1).slice();
|
|
366
|
+
wasm.__wbindgen_export4(r0, r1 * 4, 4);
|
|
367
|
+
return v1;
|
|
368
|
+
} finally {
|
|
369
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
/**
|
|
373
|
+
* @param {string} uuid
|
|
374
|
+
* @param {string} key
|
|
375
|
+
* @returns {string | undefined}
|
|
376
|
+
*/
|
|
377
|
+
getObjectProperty(uuid, key) {
|
|
378
|
+
try {
|
|
379
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
380
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
381
|
+
const len0 = WASM_VECTOR_LEN;
|
|
382
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
383
|
+
const len1 = WASM_VECTOR_LEN;
|
|
384
|
+
wasm.xcodeproject_getObjectProperty(retptr, this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
385
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
386
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
387
|
+
let v3;
|
|
388
|
+
if (r0 !== 0) {
|
|
389
|
+
v3 = getStringFromWasm0(r0, r1).slice();
|
|
390
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
391
|
+
}
|
|
392
|
+
return v3;
|
|
393
|
+
} finally {
|
|
394
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* @param {string} target_uuid
|
|
399
|
+
* @returns {string | undefined}
|
|
400
|
+
*/
|
|
401
|
+
getTargetName(target_uuid) {
|
|
402
|
+
try {
|
|
403
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
404
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
405
|
+
const len0 = WASM_VECTOR_LEN;
|
|
406
|
+
wasm.xcodeproject_getTargetName(retptr, this.__wbg_ptr, ptr0, len0);
|
|
407
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
408
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
409
|
+
let v2;
|
|
410
|
+
if (r0 !== 0) {
|
|
411
|
+
v2 = getStringFromWasm0(r0, r1).slice();
|
|
412
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
413
|
+
}
|
|
414
|
+
return v2;
|
|
415
|
+
} finally {
|
|
416
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
/**
|
|
420
|
+
* @param {string} seed
|
|
421
|
+
* @returns {string}
|
|
422
|
+
*/
|
|
423
|
+
getUniqueId(seed) {
|
|
424
|
+
let deferred2_0;
|
|
425
|
+
let deferred2_1;
|
|
426
|
+
try {
|
|
427
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
428
|
+
const ptr0 = passStringToWasm0(seed, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
429
|
+
const len0 = WASM_VECTOR_LEN;
|
|
430
|
+
wasm.xcodeproject_getUniqueId(retptr, this.__wbg_ptr, ptr0, len0);
|
|
431
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
432
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
433
|
+
deferred2_0 = r0;
|
|
434
|
+
deferred2_1 = r1;
|
|
435
|
+
return getStringFromWasm0(r0, r1);
|
|
436
|
+
} finally {
|
|
437
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
438
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
439
|
+
}
|
|
440
|
+
}
|
|
441
|
+
/**
|
|
442
|
+
* @returns {string | undefined}
|
|
443
|
+
*/
|
|
444
|
+
get mainGroupUuid() {
|
|
445
|
+
try {
|
|
446
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
447
|
+
wasm.xcodeproject_mainGroupUuid(retptr, this.__wbg_ptr);
|
|
448
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
449
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
450
|
+
let v1;
|
|
451
|
+
if (r0 !== 0) {
|
|
452
|
+
v1 = getStringFromWasm0(r0, r1).slice();
|
|
453
|
+
wasm.__wbindgen_export4(r0, r1 * 1, 1);
|
|
454
|
+
}
|
|
455
|
+
return v1;
|
|
456
|
+
} finally {
|
|
457
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* Parse a .pbxproj string into an XcodeProject.
|
|
462
|
+
* @param {string} content
|
|
463
|
+
*/
|
|
464
|
+
constructor(content) {
|
|
465
|
+
try {
|
|
466
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
467
|
+
const ptr0 = passStringToWasm0(content, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
468
|
+
const len0 = WASM_VECTOR_LEN;
|
|
469
|
+
wasm.xcodeproject_new(retptr, ptr0, len0);
|
|
470
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
471
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
472
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
473
|
+
if (r2) {
|
|
474
|
+
throw takeObject(r1);
|
|
475
|
+
}
|
|
476
|
+
this.__wbg_ptr = r0 >>> 0;
|
|
477
|
+
XcodeProjectFinalization.register(this, this.__wbg_ptr, this);
|
|
478
|
+
return this;
|
|
479
|
+
} finally {
|
|
480
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
/**
|
|
484
|
+
* @returns {bigint}
|
|
485
|
+
*/
|
|
486
|
+
get objectVersion() {
|
|
487
|
+
const ret = wasm.xcodeproject_objectVersion(this.__wbg_ptr);
|
|
488
|
+
return ret;
|
|
489
|
+
}
|
|
490
|
+
/**
|
|
491
|
+
* @param {string} target_uuid
|
|
492
|
+
* @param {string} key
|
|
493
|
+
* @returns {boolean}
|
|
494
|
+
*/
|
|
495
|
+
removeBuildSetting(target_uuid, key) {
|
|
496
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
497
|
+
const len0 = WASM_VECTOR_LEN;
|
|
498
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
499
|
+
const len1 = WASM_VECTOR_LEN;
|
|
500
|
+
const ret = wasm.xcodeproject_removeBuildSetting(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
501
|
+
return ret !== 0;
|
|
502
|
+
}
|
|
503
|
+
/**
|
|
504
|
+
* Rename a target and cascade through the project (group paths, product refs, proxies).
|
|
505
|
+
* @param {string} target_uuid
|
|
506
|
+
* @param {string} old_name
|
|
507
|
+
* @param {string} new_name
|
|
508
|
+
* @returns {boolean}
|
|
509
|
+
*/
|
|
510
|
+
renameTarget(target_uuid, old_name, new_name) {
|
|
511
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
512
|
+
const len0 = WASM_VECTOR_LEN;
|
|
513
|
+
const ptr1 = passStringToWasm0(old_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
514
|
+
const len1 = WASM_VECTOR_LEN;
|
|
515
|
+
const ptr2 = passStringToWasm0(new_name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
516
|
+
const len2 = WASM_VECTOR_LEN;
|
|
517
|
+
const ret = wasm.xcodeproject_renameTarget(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
518
|
+
return ret !== 0;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* @param {string} target_uuid
|
|
522
|
+
* @param {string} key
|
|
523
|
+
* @param {string} value
|
|
524
|
+
* @returns {boolean}
|
|
525
|
+
*/
|
|
526
|
+
setBuildSetting(target_uuid, key, value) {
|
|
527
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
528
|
+
const len0 = WASM_VECTOR_LEN;
|
|
529
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
530
|
+
const len1 = WASM_VECTOR_LEN;
|
|
531
|
+
const ptr2 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
532
|
+
const len2 = WASM_VECTOR_LEN;
|
|
533
|
+
const ret = wasm.xcodeproject_setBuildSetting(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
534
|
+
return ret !== 0;
|
|
535
|
+
}
|
|
536
|
+
/**
|
|
537
|
+
* @param {string} uuid
|
|
538
|
+
* @param {string} key
|
|
539
|
+
* @param {string} value
|
|
540
|
+
* @returns {boolean}
|
|
541
|
+
*/
|
|
542
|
+
setObjectProperty(uuid, key, value) {
|
|
543
|
+
const ptr0 = passStringToWasm0(uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
544
|
+
const len0 = WASM_VECTOR_LEN;
|
|
545
|
+
const ptr1 = passStringToWasm0(key, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
546
|
+
const len1 = WASM_VECTOR_LEN;
|
|
547
|
+
const ptr2 = passStringToWasm0(value, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
548
|
+
const len2 = WASM_VECTOR_LEN;
|
|
549
|
+
const ret = wasm.xcodeproject_setObjectProperty(this.__wbg_ptr, ptr0, len0, ptr1, len1, ptr2, len2);
|
|
550
|
+
return ret !== 0;
|
|
551
|
+
}
|
|
552
|
+
/**
|
|
553
|
+
* @param {string} target_uuid
|
|
554
|
+
* @param {string} name
|
|
555
|
+
* @returns {boolean}
|
|
556
|
+
*/
|
|
557
|
+
setTargetName(target_uuid, name) {
|
|
558
|
+
const ptr0 = passStringToWasm0(target_uuid, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
559
|
+
const len0 = WASM_VECTOR_LEN;
|
|
560
|
+
const ptr1 = passStringToWasm0(name, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
561
|
+
const len1 = WASM_VECTOR_LEN;
|
|
562
|
+
const ret = wasm.xcodeproject_setTargetName(this.__wbg_ptr, ptr0, len0, ptr1, len1);
|
|
563
|
+
return ret !== 0;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
* Serialize the project back to .pbxproj format.
|
|
567
|
+
* @returns {string}
|
|
568
|
+
*/
|
|
569
|
+
toBuild() {
|
|
570
|
+
let deferred1_0;
|
|
571
|
+
let deferred1_1;
|
|
572
|
+
try {
|
|
573
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
574
|
+
wasm.xcodeproject_toBuild(retptr, this.__wbg_ptr);
|
|
575
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
576
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
577
|
+
deferred1_0 = r0;
|
|
578
|
+
deferred1_1 = r1;
|
|
579
|
+
return getStringFromWasm0(r0, r1);
|
|
580
|
+
} finally {
|
|
581
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
582
|
+
wasm.__wbindgen_export4(deferred1_0, deferred1_1, 1);
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
/**
|
|
586
|
+
* Convert the project to a JS object.
|
|
587
|
+
* @returns {any}
|
|
588
|
+
*/
|
|
589
|
+
toJSON() {
|
|
590
|
+
try {
|
|
591
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
592
|
+
wasm.xcodeproject_toJSON(retptr, this.__wbg_ptr);
|
|
593
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
594
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
595
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
596
|
+
if (r2) {
|
|
597
|
+
throw takeObject(r1);
|
|
598
|
+
}
|
|
599
|
+
return takeObject(r0);
|
|
600
|
+
} finally {
|
|
601
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
602
|
+
}
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
if (Symbol.dispose) XcodeProject.prototype[Symbol.dispose] = XcodeProject.prototype.free;
|
|
6
606
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
}
|
|
607
|
+
/**
|
|
608
|
+
* Serialize a JS object back to .pbxproj format.
|
|
609
|
+
* @param {any} project
|
|
610
|
+
* @returns {string}
|
|
611
|
+
*/
|
|
612
|
+
export function build(project) {
|
|
613
|
+
let deferred2_0;
|
|
614
|
+
let deferred2_1;
|
|
615
|
+
try {
|
|
616
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
617
|
+
wasm.build(retptr, addHeapObject(project));
|
|
618
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
619
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
620
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
621
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
622
|
+
var ptr1 = r0;
|
|
623
|
+
var len1 = r1;
|
|
624
|
+
if (r3) {
|
|
625
|
+
ptr1 = 0; len1 = 0;
|
|
626
|
+
throw takeObject(r2);
|
|
627
|
+
}
|
|
628
|
+
deferred2_0 = ptr1;
|
|
629
|
+
deferred2_1 = len1;
|
|
630
|
+
return getStringFromWasm0(ptr1, len1);
|
|
631
|
+
} finally {
|
|
632
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
633
|
+
wasm.__wbindgen_export4(deferred2_0, deferred2_1, 1);
|
|
634
|
+
}
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* Parse a .pbxproj string into a JS object.
|
|
639
|
+
* @param {string} text
|
|
640
|
+
* @returns {any}
|
|
641
|
+
*/
|
|
642
|
+
export function parse(text) {
|
|
643
|
+
try {
|
|
644
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
645
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
646
|
+
const len0 = WASM_VECTOR_LEN;
|
|
647
|
+
wasm.parse(retptr, ptr0, len0);
|
|
648
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
649
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
650
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
651
|
+
if (r2) {
|
|
652
|
+
throw takeObject(r1);
|
|
653
|
+
}
|
|
654
|
+
return takeObject(r0);
|
|
655
|
+
} finally {
|
|
656
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
/**
|
|
661
|
+
* Parse and immediately re-serialize a .pbxproj string.
|
|
662
|
+
* @param {string} text
|
|
663
|
+
* @returns {string}
|
|
664
|
+
*/
|
|
665
|
+
export function parseAndBuild(text) {
|
|
666
|
+
let deferred3_0;
|
|
667
|
+
let deferred3_1;
|
|
668
|
+
try {
|
|
669
|
+
const retptr = wasm.__wbindgen_add_to_stack_pointer(-16);
|
|
670
|
+
const ptr0 = passStringToWasm0(text, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
671
|
+
const len0 = WASM_VECTOR_LEN;
|
|
672
|
+
wasm.parseAndBuild(retptr, ptr0, len0);
|
|
673
|
+
var r0 = getDataViewMemory0().getInt32(retptr + 4 * 0, true);
|
|
674
|
+
var r1 = getDataViewMemory0().getInt32(retptr + 4 * 1, true);
|
|
675
|
+
var r2 = getDataViewMemory0().getInt32(retptr + 4 * 2, true);
|
|
676
|
+
var r3 = getDataViewMemory0().getInt32(retptr + 4 * 3, true);
|
|
677
|
+
var ptr2 = r0;
|
|
678
|
+
var len2 = r1;
|
|
679
|
+
if (r3) {
|
|
680
|
+
ptr2 = 0; len2 = 0;
|
|
681
|
+
throw takeObject(r2);
|
|
682
|
+
}
|
|
683
|
+
deferred3_0 = ptr2;
|
|
684
|
+
deferred3_1 = len2;
|
|
685
|
+
return getStringFromWasm0(ptr2, len2);
|
|
686
|
+
} finally {
|
|
687
|
+
wasm.__wbindgen_add_to_stack_pointer(16);
|
|
688
|
+
wasm.__wbindgen_export4(deferred3_0, deferred3_1, 1);
|
|
689
|
+
}
|
|
690
|
+
}
|
|
691
|
+
|
|
692
|
+
function __wbg_get_imports() {
|
|
693
|
+
const import0 = {
|
|
694
|
+
__proto__: null,
|
|
695
|
+
__wbg_Error_8c4e43fe74559d73: function(arg0, arg1) {
|
|
696
|
+
const ret = Error(getStringFromWasm0(arg0, arg1));
|
|
697
|
+
return addHeapObject(ret);
|
|
698
|
+
},
|
|
699
|
+
__wbg_String_8f0eb39a4a4c2f66: function(arg0, arg1) {
|
|
700
|
+
const ret = String(getObject(arg1));
|
|
701
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
702
|
+
const len1 = WASM_VECTOR_LEN;
|
|
703
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
704
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
705
|
+
},
|
|
706
|
+
__wbg___wbindgen_bigint_get_as_i64_8fcf4ce7f1ca72a2: function(arg0, arg1) {
|
|
707
|
+
const v = getObject(arg1);
|
|
708
|
+
const ret = typeof(v) === 'bigint' ? v : undefined;
|
|
709
|
+
getDataViewMemory0().setBigInt64(arg0 + 8 * 1, isLikeNone(ret) ? BigInt(0) : ret, true);
|
|
710
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
711
|
+
},
|
|
712
|
+
__wbg___wbindgen_boolean_get_bbbb1c18aa2f5e25: function(arg0) {
|
|
713
|
+
const v = getObject(arg0);
|
|
714
|
+
const ret = typeof(v) === 'boolean' ? v : undefined;
|
|
715
|
+
return isLikeNone(ret) ? 0xFFFFFF : ret ? 1 : 0;
|
|
716
|
+
},
|
|
717
|
+
__wbg___wbindgen_debug_string_0bc8482c6e3508ae: function(arg0, arg1) {
|
|
718
|
+
const ret = debugString(getObject(arg1));
|
|
719
|
+
const ptr1 = passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
720
|
+
const len1 = WASM_VECTOR_LEN;
|
|
721
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
722
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
723
|
+
},
|
|
724
|
+
__wbg___wbindgen_in_47fa6863be6f2f25: function(arg0, arg1) {
|
|
725
|
+
const ret = getObject(arg0) in getObject(arg1);
|
|
726
|
+
return ret;
|
|
727
|
+
},
|
|
728
|
+
__wbg___wbindgen_is_bigint_31b12575b56f32fc: function(arg0) {
|
|
729
|
+
const ret = typeof(getObject(arg0)) === 'bigint';
|
|
730
|
+
return ret;
|
|
731
|
+
},
|
|
732
|
+
__wbg___wbindgen_is_function_0095a73b8b156f76: function(arg0) {
|
|
733
|
+
const ret = typeof(getObject(arg0)) === 'function';
|
|
734
|
+
return ret;
|
|
735
|
+
},
|
|
736
|
+
__wbg___wbindgen_is_object_5ae8e5880f2c1fbd: function(arg0) {
|
|
737
|
+
const val = getObject(arg0);
|
|
738
|
+
const ret = typeof(val) === 'object' && val !== null;
|
|
739
|
+
return ret;
|
|
740
|
+
},
|
|
741
|
+
__wbg___wbindgen_is_string_cd444516edc5b180: function(arg0) {
|
|
742
|
+
const ret = typeof(getObject(arg0)) === 'string';
|
|
743
|
+
return ret;
|
|
744
|
+
},
|
|
745
|
+
__wbg___wbindgen_jsval_eq_11888390b0186270: function(arg0, arg1) {
|
|
746
|
+
const ret = getObject(arg0) === getObject(arg1);
|
|
747
|
+
return ret;
|
|
748
|
+
},
|
|
749
|
+
__wbg___wbindgen_jsval_loose_eq_9dd77d8cd6671811: function(arg0, arg1) {
|
|
750
|
+
const ret = getObject(arg0) == getObject(arg1);
|
|
751
|
+
return ret;
|
|
752
|
+
},
|
|
753
|
+
__wbg___wbindgen_number_get_8ff4255516ccad3e: function(arg0, arg1) {
|
|
754
|
+
const obj = getObject(arg1);
|
|
755
|
+
const ret = typeof(obj) === 'number' ? obj : undefined;
|
|
756
|
+
getDataViewMemory0().setFloat64(arg0 + 8 * 1, isLikeNone(ret) ? 0 : ret, true);
|
|
757
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, !isLikeNone(ret), true);
|
|
758
|
+
},
|
|
759
|
+
__wbg___wbindgen_string_get_72fb696202c56729: function(arg0, arg1) {
|
|
760
|
+
const obj = getObject(arg1);
|
|
761
|
+
const ret = typeof(obj) === 'string' ? obj : undefined;
|
|
762
|
+
var ptr1 = isLikeNone(ret) ? 0 : passStringToWasm0(ret, wasm.__wbindgen_export, wasm.__wbindgen_export2);
|
|
763
|
+
var len1 = WASM_VECTOR_LEN;
|
|
764
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 1, len1, true);
|
|
765
|
+
getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
|
|
766
|
+
},
|
|
767
|
+
__wbg___wbindgen_throw_be289d5034ed271b: function(arg0, arg1) {
|
|
768
|
+
throw new Error(getStringFromWasm0(arg0, arg1));
|
|
769
|
+
},
|
|
770
|
+
__wbg_call_389efe28435a9388: function() { return handleError(function (arg0, arg1) {
|
|
771
|
+
const ret = getObject(arg0).call(getObject(arg1));
|
|
772
|
+
return addHeapObject(ret);
|
|
773
|
+
}, arguments); },
|
|
774
|
+
__wbg_done_57b39ecd9addfe81: function(arg0) {
|
|
775
|
+
const ret = getObject(arg0).done;
|
|
776
|
+
return ret;
|
|
777
|
+
},
|
|
778
|
+
__wbg_entries_58c7934c745daac7: function(arg0) {
|
|
779
|
+
const ret = Object.entries(getObject(arg0));
|
|
780
|
+
return addHeapObject(ret);
|
|
781
|
+
},
|
|
782
|
+
__wbg_get_9b94d73e6221f75c: function(arg0, arg1) {
|
|
783
|
+
const ret = getObject(arg0)[arg1 >>> 0];
|
|
784
|
+
return addHeapObject(ret);
|
|
785
|
+
},
|
|
786
|
+
__wbg_get_b3ed3ad4be2bc8ac: function() { return handleError(function (arg0, arg1) {
|
|
787
|
+
const ret = Reflect.get(getObject(arg0), getObject(arg1));
|
|
788
|
+
return addHeapObject(ret);
|
|
789
|
+
}, arguments); },
|
|
790
|
+
__wbg_instanceof_ArrayBuffer_c367199e2fa2aa04: function(arg0) {
|
|
791
|
+
let result;
|
|
792
|
+
try {
|
|
793
|
+
result = getObject(arg0) instanceof ArrayBuffer;
|
|
794
|
+
} catch (_) {
|
|
795
|
+
result = false;
|
|
796
|
+
}
|
|
797
|
+
const ret = result;
|
|
798
|
+
return ret;
|
|
799
|
+
},
|
|
800
|
+
__wbg_instanceof_Map_53af74335dec57f4: function(arg0) {
|
|
801
|
+
let result;
|
|
802
|
+
try {
|
|
803
|
+
result = getObject(arg0) instanceof Map;
|
|
804
|
+
} catch (_) {
|
|
805
|
+
result = false;
|
|
806
|
+
}
|
|
807
|
+
const ret = result;
|
|
808
|
+
return ret;
|
|
809
|
+
},
|
|
810
|
+
__wbg_instanceof_Uint8Array_9b9075935c74707c: function(arg0) {
|
|
811
|
+
let result;
|
|
812
|
+
try {
|
|
813
|
+
result = getObject(arg0) instanceof Uint8Array;
|
|
814
|
+
} catch (_) {
|
|
815
|
+
result = false;
|
|
816
|
+
}
|
|
817
|
+
const ret = result;
|
|
818
|
+
return ret;
|
|
819
|
+
},
|
|
820
|
+
__wbg_isArray_d314bb98fcf08331: function(arg0) {
|
|
821
|
+
const ret = Array.isArray(getObject(arg0));
|
|
822
|
+
return ret;
|
|
823
|
+
},
|
|
824
|
+
__wbg_isSafeInteger_bfbc7332a9768d2a: function(arg0) {
|
|
825
|
+
const ret = Number.isSafeInteger(getObject(arg0));
|
|
826
|
+
return ret;
|
|
827
|
+
},
|
|
828
|
+
__wbg_iterator_6ff6560ca1568e55: function() {
|
|
829
|
+
const ret = Symbol.iterator;
|
|
830
|
+
return addHeapObject(ret);
|
|
831
|
+
},
|
|
832
|
+
__wbg_length_32ed9a279acd054c: function(arg0) {
|
|
833
|
+
const ret = getObject(arg0).length;
|
|
834
|
+
return ret;
|
|
835
|
+
},
|
|
836
|
+
__wbg_length_35a7bace40f36eac: function(arg0) {
|
|
837
|
+
const ret = getObject(arg0).length;
|
|
838
|
+
return ret;
|
|
839
|
+
},
|
|
840
|
+
__wbg_new_361308b2356cecd0: function() {
|
|
841
|
+
const ret = new Object();
|
|
842
|
+
return addHeapObject(ret);
|
|
843
|
+
},
|
|
844
|
+
__wbg_new_3eb36ae241fe6f44: function() {
|
|
845
|
+
const ret = new Array();
|
|
846
|
+
return addHeapObject(ret);
|
|
847
|
+
},
|
|
848
|
+
__wbg_new_dca287b076112a51: function() {
|
|
849
|
+
const ret = new Map();
|
|
850
|
+
return addHeapObject(ret);
|
|
851
|
+
},
|
|
852
|
+
__wbg_new_dd2b680c8bf6ae29: function(arg0) {
|
|
853
|
+
const ret = new Uint8Array(getObject(arg0));
|
|
854
|
+
return addHeapObject(ret);
|
|
855
|
+
},
|
|
856
|
+
__wbg_next_3482f54c49e8af19: function() { return handleError(function (arg0) {
|
|
857
|
+
const ret = getObject(arg0).next();
|
|
858
|
+
return addHeapObject(ret);
|
|
859
|
+
}, arguments); },
|
|
860
|
+
__wbg_next_418f80d8f5303233: function(arg0) {
|
|
861
|
+
const ret = getObject(arg0).next;
|
|
862
|
+
return addHeapObject(ret);
|
|
863
|
+
},
|
|
864
|
+
__wbg_prototypesetcall_bdcdcc5842e4d77d: function(arg0, arg1, arg2) {
|
|
865
|
+
Uint8Array.prototype.set.call(getArrayU8FromWasm0(arg0, arg1), getObject(arg2));
|
|
866
|
+
},
|
|
867
|
+
__wbg_set_1eb0999cf5d27fc8: function(arg0, arg1, arg2) {
|
|
868
|
+
const ret = getObject(arg0).set(getObject(arg1), getObject(arg2));
|
|
869
|
+
return addHeapObject(ret);
|
|
870
|
+
},
|
|
871
|
+
__wbg_set_3f1d0b984ed272ed: function(arg0, arg1, arg2) {
|
|
872
|
+
getObject(arg0)[takeObject(arg1)] = takeObject(arg2);
|
|
873
|
+
},
|
|
874
|
+
__wbg_set_f43e577aea94465b: function(arg0, arg1, arg2) {
|
|
875
|
+
getObject(arg0)[arg1 >>> 0] = takeObject(arg2);
|
|
876
|
+
},
|
|
877
|
+
__wbg_value_0546255b415e96c1: function(arg0) {
|
|
878
|
+
const ret = getObject(arg0).value;
|
|
879
|
+
return addHeapObject(ret);
|
|
880
|
+
},
|
|
881
|
+
__wbindgen_cast_0000000000000001: function(arg0) {
|
|
882
|
+
// Cast intrinsic for `F64 -> Externref`.
|
|
883
|
+
const ret = arg0;
|
|
884
|
+
return addHeapObject(ret);
|
|
885
|
+
},
|
|
886
|
+
__wbindgen_cast_0000000000000002: function(arg0) {
|
|
887
|
+
// Cast intrinsic for `I64 -> Externref`.
|
|
888
|
+
const ret = arg0;
|
|
889
|
+
return addHeapObject(ret);
|
|
890
|
+
},
|
|
891
|
+
__wbindgen_cast_0000000000000003: function(arg0, arg1) {
|
|
892
|
+
// Cast intrinsic for `Ref(String) -> Externref`.
|
|
893
|
+
const ret = getStringFromWasm0(arg0, arg1);
|
|
894
|
+
return addHeapObject(ret);
|
|
895
|
+
},
|
|
896
|
+
__wbindgen_cast_0000000000000004: function(arg0) {
|
|
897
|
+
// Cast intrinsic for `U64 -> Externref`.
|
|
898
|
+
const ret = BigInt.asUintN(64, arg0);
|
|
899
|
+
return addHeapObject(ret);
|
|
900
|
+
},
|
|
901
|
+
__wbindgen_object_drop_ref: function(arg0) {
|
|
902
|
+
takeObject(arg0);
|
|
903
|
+
},
|
|
904
|
+
};
|
|
905
|
+
return {
|
|
906
|
+
__proto__: null,
|
|
907
|
+
"./xcode_bg.js": import0,
|
|
908
|
+
};
|
|
909
|
+
}
|
|
910
|
+
|
|
911
|
+
const XcodeProjectFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
912
|
+
? { register: () => {}, unregister: () => {} }
|
|
913
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_xcodeproject_free(ptr >>> 0, 1));
|
|
914
|
+
|
|
915
|
+
function addHeapObject(obj) {
|
|
916
|
+
if (heap_next === heap.length) heap.push(heap.length + 1);
|
|
917
|
+
const idx = heap_next;
|
|
918
|
+
heap_next = heap[idx];
|
|
919
|
+
|
|
920
|
+
heap[idx] = obj;
|
|
921
|
+
return idx;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
function debugString(val) {
|
|
925
|
+
// primitive types
|
|
926
|
+
const type = typeof val;
|
|
927
|
+
if (type == 'number' || type == 'boolean' || val == null) {
|
|
928
|
+
return `${val}`;
|
|
929
|
+
}
|
|
930
|
+
if (type == 'string') {
|
|
931
|
+
return `"${val}"`;
|
|
932
|
+
}
|
|
933
|
+
if (type == 'symbol') {
|
|
934
|
+
const description = val.description;
|
|
935
|
+
if (description == null) {
|
|
936
|
+
return 'Symbol';
|
|
937
|
+
} else {
|
|
938
|
+
return `Symbol(${description})`;
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
if (type == 'function') {
|
|
942
|
+
const name = val.name;
|
|
943
|
+
if (typeof name == 'string' && name.length > 0) {
|
|
944
|
+
return `Function(${name})`;
|
|
945
|
+
} else {
|
|
946
|
+
return 'Function';
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
// objects
|
|
950
|
+
if (Array.isArray(val)) {
|
|
951
|
+
const length = val.length;
|
|
952
|
+
let debug = '[';
|
|
953
|
+
if (length > 0) {
|
|
954
|
+
debug += debugString(val[0]);
|
|
955
|
+
}
|
|
956
|
+
for(let i = 1; i < length; i++) {
|
|
957
|
+
debug += ', ' + debugString(val[i]);
|
|
958
|
+
}
|
|
959
|
+
debug += ']';
|
|
960
|
+
return debug;
|
|
961
|
+
}
|
|
962
|
+
// Test for built-in
|
|
963
|
+
const builtInMatches = /\[object ([^\]]+)\]/.exec(toString.call(val));
|
|
964
|
+
let className;
|
|
965
|
+
if (builtInMatches && builtInMatches.length > 1) {
|
|
966
|
+
className = builtInMatches[1];
|
|
967
|
+
} else {
|
|
968
|
+
// Failed to match the standard '[object ClassName]'
|
|
969
|
+
return toString.call(val);
|
|
970
|
+
}
|
|
971
|
+
if (className == 'Object') {
|
|
972
|
+
// we're a user defined class or Object
|
|
973
|
+
// JSON.stringify avoids problems with cycles, and is generally much
|
|
974
|
+
// easier than looping through ownProperties of `val`.
|
|
975
|
+
try {
|
|
976
|
+
return 'Object(' + JSON.stringify(val) + ')';
|
|
977
|
+
} catch (_) {
|
|
978
|
+
return 'Object';
|
|
979
|
+
}
|
|
980
|
+
}
|
|
981
|
+
// errors
|
|
982
|
+
if (val instanceof Error) {
|
|
983
|
+
return `${val.name}: ${val.message}\n${val.stack}`;
|
|
984
|
+
}
|
|
985
|
+
// TODO we could test for more things here, like `Set`s and `Map`s.
|
|
986
|
+
return className;
|
|
987
|
+
}
|
|
988
|
+
|
|
989
|
+
function dropObject(idx) {
|
|
990
|
+
if (idx < 132) return;
|
|
991
|
+
heap[idx] = heap_next;
|
|
992
|
+
heap_next = idx;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
function getArrayJsValueFromWasm0(ptr, len) {
|
|
996
|
+
ptr = ptr >>> 0;
|
|
997
|
+
const mem = getDataViewMemory0();
|
|
998
|
+
const result = [];
|
|
999
|
+
for (let i = ptr; i < ptr + 4 * len; i += 4) {
|
|
1000
|
+
result.push(takeObject(mem.getUint32(i, true)));
|
|
1001
|
+
}
|
|
1002
|
+
return result;
|
|
1003
|
+
}
|
|
1004
|
+
|
|
1005
|
+
function getArrayU8FromWasm0(ptr, len) {
|
|
1006
|
+
ptr = ptr >>> 0;
|
|
1007
|
+
return getUint8ArrayMemory0().subarray(ptr / 1, ptr / 1 + len);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
let cachedDataViewMemory0 = null;
|
|
1011
|
+
function getDataViewMemory0() {
|
|
1012
|
+
if (cachedDataViewMemory0 === null || cachedDataViewMemory0.buffer.detached === true || (cachedDataViewMemory0.buffer.detached === undefined && cachedDataViewMemory0.buffer !== wasm.memory.buffer)) {
|
|
1013
|
+
cachedDataViewMemory0 = new DataView(wasm.memory.buffer);
|
|
1014
|
+
}
|
|
1015
|
+
return cachedDataViewMemory0;
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
function getStringFromWasm0(ptr, len) {
|
|
1019
|
+
ptr = ptr >>> 0;
|
|
1020
|
+
return decodeText(ptr, len);
|
|
1021
|
+
}
|
|
1022
|
+
|
|
1023
|
+
let cachedUint8ArrayMemory0 = null;
|
|
1024
|
+
function getUint8ArrayMemory0() {
|
|
1025
|
+
if (cachedUint8ArrayMemory0 === null || cachedUint8ArrayMemory0.byteLength === 0) {
|
|
1026
|
+
cachedUint8ArrayMemory0 = new Uint8Array(wasm.memory.buffer);
|
|
1027
|
+
}
|
|
1028
|
+
return cachedUint8ArrayMemory0;
|
|
1029
|
+
}
|
|
1030
|
+
|
|
1031
|
+
function getObject(idx) { return heap[idx]; }
|
|
1032
|
+
|
|
1033
|
+
function handleError(f, args) {
|
|
1034
|
+
try {
|
|
1035
|
+
return f.apply(this, args);
|
|
1036
|
+
} catch (e) {
|
|
1037
|
+
wasm.__wbindgen_export3(addHeapObject(e));
|
|
1038
|
+
}
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
let heap = new Array(128).fill(undefined);
|
|
1042
|
+
heap.push(undefined, null, true, false);
|
|
1043
|
+
|
|
1044
|
+
let heap_next = heap.length;
|
|
1045
|
+
|
|
1046
|
+
function isLikeNone(x) {
|
|
1047
|
+
return x === undefined || x === null;
|
|
1048
|
+
}
|
|
1049
|
+
|
|
1050
|
+
function passStringToWasm0(arg, malloc, realloc) {
|
|
1051
|
+
if (realloc === undefined) {
|
|
1052
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1053
|
+
const ptr = malloc(buf.length, 1) >>> 0;
|
|
1054
|
+
getUint8ArrayMemory0().subarray(ptr, ptr + buf.length).set(buf);
|
|
1055
|
+
WASM_VECTOR_LEN = buf.length;
|
|
1056
|
+
return ptr;
|
|
1057
|
+
}
|
|
1058
|
+
|
|
1059
|
+
let len = arg.length;
|
|
1060
|
+
let ptr = malloc(len, 1) >>> 0;
|
|
1061
|
+
|
|
1062
|
+
const mem = getUint8ArrayMemory0();
|
|
1063
|
+
|
|
1064
|
+
let offset = 0;
|
|
1065
|
+
|
|
1066
|
+
for (; offset < len; offset++) {
|
|
1067
|
+
const code = arg.charCodeAt(offset);
|
|
1068
|
+
if (code > 0x7F) break;
|
|
1069
|
+
mem[ptr + offset] = code;
|
|
1070
|
+
}
|
|
1071
|
+
if (offset !== len) {
|
|
1072
|
+
if (offset !== 0) {
|
|
1073
|
+
arg = arg.slice(offset);
|
|
1074
|
+
}
|
|
1075
|
+
ptr = realloc(ptr, len, len = offset + arg.length * 3, 1) >>> 0;
|
|
1076
|
+
const view = getUint8ArrayMemory0().subarray(ptr + offset, ptr + len);
|
|
1077
|
+
const ret = cachedTextEncoder.encodeInto(arg, view);
|
|
1078
|
+
|
|
1079
|
+
offset += ret.written;
|
|
1080
|
+
ptr = realloc(ptr, len, offset, 1) >>> 0;
|
|
1081
|
+
}
|
|
1082
|
+
|
|
1083
|
+
WASM_VECTOR_LEN = offset;
|
|
1084
|
+
return ptr;
|
|
1085
|
+
}
|
|
1086
|
+
|
|
1087
|
+
function takeObject(idx) {
|
|
1088
|
+
const ret = getObject(idx);
|
|
1089
|
+
dropObject(idx);
|
|
1090
|
+
return ret;
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
let cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1094
|
+
cachedTextDecoder.decode();
|
|
1095
|
+
const MAX_SAFARI_DECODE_BYTES = 2146435072;
|
|
1096
|
+
let numBytesDecoded = 0;
|
|
1097
|
+
function decodeText(ptr, len) {
|
|
1098
|
+
numBytesDecoded += len;
|
|
1099
|
+
if (numBytesDecoded >= MAX_SAFARI_DECODE_BYTES) {
|
|
1100
|
+
cachedTextDecoder = new TextDecoder('utf-8', { ignoreBOM: true, fatal: true });
|
|
1101
|
+
cachedTextDecoder.decode();
|
|
1102
|
+
numBytesDecoded = len;
|
|
1103
|
+
}
|
|
1104
|
+
return cachedTextDecoder.decode(getUint8ArrayMemory0().subarray(ptr, ptr + len));
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
const cachedTextEncoder = new TextEncoder();
|
|
1108
|
+
|
|
1109
|
+
if (!('encodeInto' in cachedTextEncoder)) {
|
|
1110
|
+
cachedTextEncoder.encodeInto = function (arg, view) {
|
|
1111
|
+
const buf = cachedTextEncoder.encode(arg);
|
|
1112
|
+
view.set(buf);
|
|
1113
|
+
return {
|
|
1114
|
+
read: arg.length,
|
|
1115
|
+
written: buf.length
|
|
1116
|
+
};
|
|
1117
|
+
};
|
|
1118
|
+
}
|
|
1119
|
+
|
|
1120
|
+
let WASM_VECTOR_LEN = 0;
|
|
1121
|
+
|
|
1122
|
+
let wasmModule, wasm;
|
|
1123
|
+
function __wbg_finalize_init(instance, module) {
|
|
1124
|
+
wasm = instance.exports;
|
|
1125
|
+
wasmModule = module;
|
|
1126
|
+
cachedDataViewMemory0 = null;
|
|
1127
|
+
cachedUint8ArrayMemory0 = null;
|
|
1128
|
+
return wasm;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
async function __wbg_load(module, imports) {
|
|
1132
|
+
if (typeof Response === 'function' && module instanceof Response) {
|
|
1133
|
+
if (typeof WebAssembly.instantiateStreaming === 'function') {
|
|
1134
|
+
try {
|
|
1135
|
+
return await WebAssembly.instantiateStreaming(module, imports);
|
|
1136
|
+
} catch (e) {
|
|
1137
|
+
const validResponse = module.ok && expectedResponseType(module.type);
|
|
1138
|
+
|
|
1139
|
+
if (validResponse && module.headers.get('Content-Type') !== 'application/wasm') {
|
|
1140
|
+
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);
|
|
1141
|
+
|
|
1142
|
+
} else { throw e; }
|
|
1143
|
+
}
|
|
1144
|
+
}
|
|
1145
|
+
|
|
1146
|
+
const bytes = await module.arrayBuffer();
|
|
1147
|
+
return await WebAssembly.instantiate(bytes, imports);
|
|
1148
|
+
} else {
|
|
1149
|
+
const instance = await WebAssembly.instantiate(module, imports);
|
|
1150
|
+
|
|
1151
|
+
if (instance instanceof WebAssembly.Instance) {
|
|
1152
|
+
return { instance, module };
|
|
1153
|
+
} else {
|
|
1154
|
+
return instance;
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
function expectedResponseType(type) {
|
|
1159
|
+
switch (type) {
|
|
1160
|
+
case 'basic': case 'cors': case 'default': return true;
|
|
1161
|
+
}
|
|
1162
|
+
return false;
|
|
1163
|
+
}
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
function initSync(module) {
|
|
1167
|
+
if (wasm !== undefined) return wasm;
|
|
1168
|
+
|
|
1169
|
+
|
|
1170
|
+
if (module !== undefined) {
|
|
1171
|
+
if (Object.getPrototypeOf(module) === Object.prototype) {
|
|
1172
|
+
({module} = module)
|
|
1173
|
+
} else {
|
|
1174
|
+
console.warn('using deprecated parameters for `initSync()`; pass a single object instead')
|
|
1175
|
+
}
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
const imports = __wbg_get_imports();
|
|
1179
|
+
if (!(module instanceof WebAssembly.Module)) {
|
|
1180
|
+
module = new WebAssembly.Module(module);
|
|
1181
|
+
}
|
|
1182
|
+
const instance = new WebAssembly.Instance(module, imports);
|
|
1183
|
+
return __wbg_finalize_init(instance, module);
|
|
1184
|
+
}
|
|
1185
|
+
|
|
1186
|
+
async function __wbg_init(module_or_path) {
|
|
1187
|
+
if (wasm !== undefined) return wasm;
|
|
1188
|
+
|
|
1189
|
+
|
|
1190
|
+
if (module_or_path !== undefined) {
|
|
1191
|
+
if (Object.getPrototypeOf(module_or_path) === Object.prototype) {
|
|
1192
|
+
({module_or_path} = module_or_path)
|
|
1193
|
+
} else {
|
|
1194
|
+
console.warn('using deprecated parameters for the initialization function; pass a single object instead')
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
if (module_or_path === undefined) {
|
|
1199
|
+
module_or_path = new URL('xcode_bg.wasm', import.meta.url);
|
|
1200
|
+
}
|
|
1201
|
+
const imports = __wbg_get_imports();
|
|
1202
|
+
|
|
1203
|
+
if (typeof module_or_path === 'string' || (typeof Request === 'function' && module_or_path instanceof Request) || (typeof URL === 'function' && module_or_path instanceof URL)) {
|
|
1204
|
+
module_or_path = fetch(module_or_path);
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
const { instance, module } = await __wbg_load(await module_or_path, imports);
|
|
1208
|
+
|
|
1209
|
+
return __wbg_finalize_init(instance, module);
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
export { initSync, __wbg_init as default };
|